@ckeditor/ckeditor5-uploadcare 47.3.0-alpha.3 → 47.3.0-alpha.4
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/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x3628de,Command as _0x3931bd}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x27d929,IconGooglePhotos as _0x1ffaa8,IconGoogleDrive as _0x239f46,IconFacebook as _0xe41d33,IconDropbox as _0x3b82a7,IconUploadcareLink as _0x27b88b,IconUploadcareImageUpload as _0x38ffe4,IconError as _0x3b8cdb,IconUploadcareImageEdit as _0x36eeea}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x126a15,MenuBarMenuListItemButtonView as _0x3582cf,View as _0x3e6592,FocusCycler as _0x2badcb,Dialog as _0x31a4f4,DialogViewPosition as _0x11c100,SpinnerView as _0x13b698,IconView as _0x33c19a,Notification as _0x5ccb66}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x570695,DomEmitterMixin as _0x57def1,global as _0x48470a,getAncestors as _0x5dc5e5,ObservableMixin as _0x84acfd,uid as _0x1f1623,createElement as _0x1d236f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x317ef6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5db266,info as _0x3d0df3}from'@uploadcare/upload-client';import*as _0x4d63ba from'@uploadcare/file-uploader';var i=function(_0x52d5ae){return _0x52d5ae['Local']='local',_0x52d5ae['URL']='url',_0x52d5ae['Dropbox']='dropbox',_0x52d5ae['GDrive']='gdrive',_0x52d5ae['Facebook']='facebook',_0x52d5ae['GPhotos']='gphotos',_0x52d5ae['OneDrive']='onedrive',_0x52d5ae;}({});function _(_0x89dcbe,_0xb115f9,_0x404e67){const t=_0x89dcbe['t'],_0xeaafb1=_0x89dcbe['t'];switch(_0xb115f9){case i['Local']:return{'text':_0xeaafb1('Insert'===_0x404e67?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xeaafb1('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x404e67?_0xeaafb1('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xeaafb1('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x404e67?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x404e67?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x404e67?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x404e67?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x404e67?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xb115f9;}}class e extends _0x3628de{['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 _0x5ab670=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x542485;for(const _0x2a6611 in _0x5ab670){const _0x3614d9=_0x2a6611,_0x298c7e=_0x5ab670[_0x3614d9];if('uploadcareLicenseKeyValid'==_0x298c7e||'uploadcareLicenseKeyInvalid'==_0x298c7e||'uploadcareLicenseKeyExpired'==_0x298c7e||'uploadcareLicenseKeyDomainLimit'==_0x298c7e||'uploadcareLicenseKeyNotAllowed'==_0x298c7e||'uploadcareLicenseKeyEvaluationLimit'==_0x298c7e||'uploadcareLicenseKeyTrialLimit'==_0x298c7e||'uploadcareLicenseKeyUsageLimit'==_0x298c7e){delete _0x5ab670[_0x3614d9],_0x542485=_0x298c7e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x542485&&_0x5ab670['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x542485&&_0x5ab670['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x542485&&_0x5ab670['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x542485&&_0x5ab670['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x542485&&_0x5ab670['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x542485&&_0x5ab670['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x542485&&_0x5ab670['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5a9e75}=this,_0x3aafbb=_0x5a9e75['commands']['get']('uploadcare');if(!_0x3aafbb)return;const _0x1b05b5=this['_normalizeConfigSourceList'](_0x5a9e75['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5ae5e9,_0x5c828a)=>{const _0x192fe2=this['_getIntegrationKey'](_0x5c828a['type']);return _0x5ae5e9[_0x192fe2]||(_0x5ae5e9[_0x192fe2]=[]),_0x5ae5e9[_0x192fe2]['push'](_0x5c828a),_0x5ae5e9;},{});_0x5a9e75['plugins']['has']('ImageInsertUI')&&_0x5a9e75['commands']['get']('uploadcare')&&Object['entries'](_0x1b05b5)['forEach'](([_0x22a953,_0x29f5fe])=>{_0x5a9e75['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x22a953,'observable':()=>_0x3aafbb,'buttonViewCreator':()=>this['_createToolbarButton'](_0x29f5fe),'formViewCreator':()=>this['_createDropdownButtons'](_0x29f5fe),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x29f5fe),'override':'assetManager'!==_0x22a953});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x143ca7){const {locale:_0x308947}=this['editor'];return _0x143ca7['map'](_0x3be499=>{const _0x179ae1=_(_0x308947,_0x3be499,'Insert');switch(_0x3be499){case i['Local']:return{'icon':_0x38ffe4,'type':i['Local'],..._0x179ae1};case i['URL']:return{'icon':_0x27b88b,'type':i['URL'],..._0x179ae1};case i['Dropbox']:return{'icon':_0x3b82a7,'type':i['Dropbox'],..._0x179ae1};case i['Facebook']:return{'icon':_0xe41d33,'type':i['Facebook'],..._0x179ae1};case i['GDrive']:return{'icon':_0x239f46,'type':i['GDrive'],..._0x179ae1};case i['GPhotos']:return{'icon':_0x1ffaa8,'type':i['GPhotos'],..._0x179ae1};case i['OneDrive']:return{'icon':_0x27d929,'type':i['OneDrive'],..._0x179ae1};}});}['_getIntegrationKey'](_0x21e645){switch(_0x21e645){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4869a9,_0x27c1ad){const _0x3c263=this['editor'],_0x57f022=new _0x4869a9(_0x3c263['locale']),_0x5770ee=_0x3c263['commands']['get']('uploadcare');return _0x57f022['bind']('isEnabled')['to'](_0x5770ee),_0x57f022['on']('execute',()=>{_0x5770ee['execute'](_0x27c1ad);}),_0x57f022;}['_createToolbarButton'](_0x54e757){const {locale:_0x253d4e}=this['editor'],_0x26927a=this['editor']['plugins']['get']('ImageInsertUI'),_0x2e155c=_0x54e757[0x0],_0xc4d88c=this['_createButton'](_0x126a15,_0x2e155c['type']);return _0xc4d88c['icon']=_0x2e155c['icon'],_0xc4d88c['bind']('label')['to'](_0x26927a,'isImageSelected',_0x225589=>_(_0x253d4e,_0x2e155c['type'],_0x225589?'Replace':'Insert')['text']),_0xc4d88c['tooltip']=!0x0,_0xc4d88c;}['_createDropdownButtons'](_0x2754bc){const {locale:_0x1e3978}=this['editor'],_0xc3c185=this['editor']['plugins']['get']('ImageInsertUI');return _0x2754bc['map'](_0x1461cc=>{const _0x1bbbcd=this['_createButton'](_0x126a15,_0x1461cc['type']);return _0x1bbbcd['withText']=!0x0,_0x1bbbcd['icon']=_0x1461cc['icon'],_0x1bbbcd['bind']('label')['to'](_0xc3c185,'isImageSelected',_0x5ecf0a=>_(_0x1e3978,_0x1461cc['type'],_0x5ecf0a?'Replace':'Insert')['text']),_0x1bbbcd;});}['_createMenuBarButtons'](_0x3b4b2a){return _0x3b4b2a['map'](_0x2331d2=>{const _0x14c762=this['_createButton'](_0x3582cf,_0x2331d2['type']);return _0x14c762['icon']=_0x2331d2['icon'],_0x14c762['label']=_0x2331d2['shortText'],_0x14c762;});}}class F extends _0x3e6592{['focusTracker'];['focusCycler'];constructor(_0x54f2be){super(_0x54f2be),this['focusTracker']=new _0x570695(),this['focusCycler']=new _0x2badcb({'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(_0x1b6a85,_0x4ee327){super(_0x1b6a85),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-'+_0x4ee327}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x251114,_0x205094){const _0x215b30=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x104e9a=>_0x104e9a<=_0x205094)['map'](_0x3f0f98=>_0x251114['replace'](/\/$/,'')+'/-/resize/'+_0x3f0f98+'x/\x20'+_0x3f0f98+'w');return{'imageFallbackUrl':_0x251114,'imageSources':[{'srcset':_0x215b30['join'](',\x20'),'sizes':'(max-width:\x20'+_0x205094+'px)\x20100vw,\x20'+_0x205094+'px','type':'image/webp'}]};}function S(_0x13274f,_0x41f0b6,_0x26e474){const _0x34b425=_0x13274f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x34b425?parseInt(_0x34b425[0x1],0xa):_0x41f0b6,'height':_0x34b425?parseInt(_0x34b425[0x2],0xa):_0x26e474};}function p(_0x1ccf1c,_0x229c43){const _0x3afdb7=new(_0x57def1())(),_0x2fbebe=_0x1ccf1c['plugins']['get']('ImageUtils'),_0x155247=_0x1ccf1c['editing']['mapper']['toViewElement'](_0x229c43),_0x53b26f=_0x2fbebe['findViewImgElement'](_0x155247),_0x27e357=_0x1ccf1c['editing']['view']['domConverter']['viewToDom'](_0x53b26f),_0x41d440=_0x229c43['getAttribute']('width'),_0x5db09f=_0x229c43['getAttribute']('height'),_0x382ff1='image-processing';_0x1ccf1c['editing']['view']['change'](_0x3cf48c=>{_0x3cf48c['addClass'](_0x382ff1,_0x155247),_0x3cf48c['setStyle']('aspect-ratio',_0x41d440+'/'+_0x5db09f,_0x53b26f);}),_0x3afdb7['listenTo'](_0x27e357,'load',()=>{_0x3afdb7['stopListening'](_0x27e357,'load'),_0x1ccf1c['editing']['view']['change'](_0xebecdd=>{_0xebecdd['removeClass'](_0x382ff1,_0x155247),_0xebecdd['removeStyle']('aspect-ratio',_0x53b26f);});});}function z(_0x55fc26){if(Array['isArray'](_0x55fc26)){const _0xecd00=_0x55fc26['map'](z);return _0x39ced3=>_0xecd00['some'](_0x1c5844=>_0x1c5844(_0x39ced3));}if('origin'==_0x55fc26){const _0x3959d4=_0x48470a['window']['location']['origin'];return _0xd8495=>new URL(_0xd8495,_0x48470a['document']['baseURI'])['origin']==_0x3959d4;}return'function'==typeof _0x55fc26?_0x55fc26:_0x55fc26 instanceof RegExp?_0x2ebbc6=>!(!_0x2ebbc6['match'](_0x55fc26)&&!_0x2ebbc6['replace'](/^https?:\/\//,'')['match'](_0x55fc26)):()=>!0x1;}function A(_0x1a2a1e,_0x195ecb){return _0x5dc5e5(_0x1a2a1e['target'])['includes'](_0x195ecb);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x84acfd(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2b5bd2,_0x5dd853,_0x521671){super(),this['_editor']=_0x2b5bd2,this['_editing']=_0x5dd853,this['_dialog']=_0x2b5bd2['plugins']['get'](_0x31a4f4),this['_api']=_0x5dd853['ctxElement']['getAPI'](),this['_type']=_0x521671,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:_0x378a71,model:_0x2c3d5d}=this['_editor'],_0x47fa95=_0x2c3d5d['document']['selection']['getSelectedElement'](),_0x8f1075=_0x47fa95&&(_0x47fa95['is']('element','imageBlock')||_0x47fa95['is']('element','imageInline'));this['_formView']=new x(_0x378a71,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x38ffe4,'title':_(_0x378a71,this['_type'],_0x8f1075?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x11c100['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2af1b0=>!A(_0x2af1b0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x36e738}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xe27221=>{const _0x274b24=_0x36e738['length'];for(const _0x3980c6 of _0x36e738){const _0xfd84fa=_0x3980c6===_0x36e738[_0x274b24-0x1],{cdnUrl:_0xbbae11,fileInfo:_0x1cb755}=_0x3980c6;if(!_0xbbae11||!_0x1cb755)continue;const {width:_0x292aa3,height:_0x2f12bb}=_0x1cb755['imageInfo'],_0x27af94=S(_0xbbae11,_0x292aa3,_0x2f12bb),_0x5c17e6=C(_0xbbae11,_0x27af94['width']),_0x1f20dd={'id':_0x1cb755['uuid'],'type':'image','attributes':{'imageDimension':_0x27af94,..._0x5c17e6}};this['_insertAsset'](_0x1f20dd,_0xfd84fa,_0xe27221);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x79ddcd=>{'idle'===_0x79ddcd['detail']['status']&&!_0x79ddcd['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3e024c,_0x37016f,_0x224067){const _0x2835fe=this['_editor']['model']['document']['selection'],_0x5de5c7=_0x2835fe['getSelectedElement'](),_0x44c751=!(!_0x5de5c7||!_0x5de5c7['is']('element','imageInline'));_0x224067['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3e024c,_0x44c751),_0x37016f||_0x224067['setSelection'](_0x2835fe['getLastPosition']());}['_insertImage'](_0x441145,_0x14897b){const _0x3703c9=this['_editor'],{imageDimension:_0x5dd908,imageFallbackUrl:_0x44337a,imageSources:_0x349394}=_0x441145['attributes'];_0x3703c9['execute']('insertImage',{'imageType':_0x14897b?'imageInline':null,'source':{'uploadcareImageId':_0x441145['id'],'src':_0x44337a,'sources':_0x349394,..._0x5dd908}});}}class w extends _0x3931bd{['_editing'];['_controller']=null;static get['requires'](){return[_0x31a4f4,o];}constructor(_0x5154dc){super(_0x5154dc),this['_editing']=_0x5154dc['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x59623c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x59623c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x478d52,..._0x52ffa7}){return _0x5db266(_0x478d52,_0x52ffa7);}static['getInfo'](_0x4d5fbb,_0x578d1b){return _0x3d0df3(_0x4d5fbb,_0x578d1b);}}class f extends _0x3628de{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x317ef6,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1f39ca=this['editor'];if(!!!_0x1f39ca['config']['get']('uploadcare'))return;_0x1f39ca['plugins']['get'](_0x317ef6)['createUploadAdapter']=_0x215e10=>new k(_0x215e10,_0x1f39ca),_0x1f39ca['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x401585,{imageElement:_0x14d006,data:_0x45163c})=>{_0x1f39ca['model']['change'](_0x102ba8=>{_0x102ba8['setAttribute']('uploadcareImageId',_0x45163c['uploadcareImageId'],_0x14d006);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x189307,_0x20c76c){this['loader']=_0x189307,this['editor']=_0x20c76c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1ce26b=await this['loader']['file'];return j['upload']({'file':_0x1ce26b,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1360f2=>{_0x1360f2&&_0x1360f2['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1360f2['value']);}})['then'](async _0x3d8259=>{const {imageFallbackUrl:_0x3567e6,imageSources:_0x912b75}=C(_0x3d8259['cdnUrl'],_0x3d8259['imageInfo']['width']);return{'uploadcareImageId':_0x3d8259['uuid'],'default':_0x3567e6,'sources':_0x912b75};})['catch'](()=>{const _0x33351b=t('Cannot\x20upload\x20file:')+('\x20'+_0x1ce26b['name']+'.');return Promise['reject'](_0x33351b);});}['abort'](){this['controller']['abort']();}}class o extends _0x3628de{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x31a4f4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x50b9e5){super(_0x50b9e5),this['ucContextId']=_0x1f1623();}['init'](){const _0x39757e=this['editor'];_0x39757e['commands']['add']('uploadcare',new w(_0x39757e));}['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 _0x1e7916=_0x48470a['document']['querySelector']('input[uploadcare-file-input]');_0x1e7916&&_0x1e7916['remove']();}),async function(_0x2a6c28){const _0x382a4b=_0x488ceb([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x3371ca=0x535f8c3a,_0x527071=0x5358f642^_0x3371ca,_0x19d215=window[_0x488ceb([0x44,0x61,0x74,0x65])][_0x488ceb([0x6e,0x6f,0x77])](),_0x180a10=_0x2a6c28[_0x488ceb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x45c818=new window[(_0x488ceb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c8599=>{_0x180a10[_0x488ceb([0x6f,0x6e,0x63,0x65])](_0x488ceb([0x72,0x65,0x61,0x64,0x79]),_0x3c8599);}),_0x2b0ce1={[_0x488ceb([0x6b,0x74,0x79])]:_0x488ceb([0x45,0x43]),[_0x488ceb([0x75,0x73,0x65])]:_0x488ceb([0x73,0x69,0x67]),[_0x488ceb([0x63,0x72,0x76])]:_0x488ceb([0x50,0x2d,0x32,0x35,0x36]),[_0x488ceb([0x78])]:_0x488ceb([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]),[_0x488ceb([0x79])]:_0x488ceb([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]),[_0x488ceb([0x61,0x6c,0x67])]:_0x488ceb([0x45,0x53,0x32,0x35,0x36])},_0x506dec=_0x180a10[_0x488ceb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x488ceb([0x67,0x65,0x74])](_0x488ceb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x37694a(){let _0x443af1,_0x5a0094=null,_0x2d5bd7=null;try{if(_0x506dec==_0x488ceb([0x47,0x50,0x4c]))return _0x488ceb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x443af1=_0x3fc454(),!_0x443af1)return _0x488ceb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x443af1[_0x488ceb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d5bd7=_0x205894(_0x443af1[_0x488ceb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x443af1[_0x488ceb([0x6a,0x74,0x69])])),await _0x432918()?_0x4c6616()?_0x5365e0()?_0x488ceb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x41c675()?(_0x443af1[_0x488ceb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x488ceb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5a0094=_0x148620(_0x488ceb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x443af1[_0x488ceb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x488ceb([0x74,0x72,0x69,0x61,0x6c])&&(_0x5a0094=_0x148620(_0x488ceb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x28812d()):_0x488ceb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x488ceb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x488ceb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x488ceb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5365e0(){const _0x31519a=[_0x488ceb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x488ceb([0x74,0x72,0x69,0x61,0x6c])][_0x488ceb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x443af1[_0x488ceb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x19d215/0x3e8:0xe10*_0x527071;return _0x443af1[_0x488ceb([0x65,0x78,0x70])]<_0x31519a;}function _0x4c6616(){const _0x394d64=_0x443af1[_0x488ceb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x394d64&&(!!_0x394d64[_0x488ceb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x488ceb([0x2a]))||!!_0x394d64[_0x488ceb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x488ceb([0x55,0x50,0x4c,0x43])));}function _0x41c675(){const _0x5195a7=_0x443af1[_0x488ceb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5195a7||0x0==_0x5195a7[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x829a45}=new URL(window[_0x488ceb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5195a7[_0x488ceb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x829a45))return!0x0;const _0x3e63d3=_0x829a45[_0x488ceb([0x73,0x70,0x6c,0x69,0x74])](_0x488ceb([0x2e]));return _0x5195a7[_0x488ceb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb9fb33=>_0xb9fb33[_0x488ceb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x488ceb([0x2a])))[_0x488ceb([0x6d,0x61,0x70])](_0x1127d7=>_0x1127d7[_0x488ceb([0x73,0x70,0x6c,0x69,0x74])](_0x488ceb([0x2e])))[_0x488ceb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x263e2b=>_0x263e2b[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3e63d3[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x488ceb([0x6d,0x61,0x70])](_0x50362d=>Array(_0x3e63d3[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x50362d[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x488ceb([0x66,0x69,0x6c,0x6c])](_0x50362d[0x0]===_0x488ceb([0x2a])?_0x488ceb([0x2a]):'')[_0x488ceb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x50362d))[_0x488ceb([0x73,0x6f,0x6d,0x65])](_0x5111a0=>_0x3e63d3[_0x488ceb([0x65,0x76,0x65,0x72,0x79])]((_0x2802ed,_0x118588)=>_0x5111a0[_0x118588]===_0x2802ed||_0x5111a0[_0x118588]===_0x488ceb([0x2a])));}function _0x28812d(){return _0x5a0094&&_0x2d5bd7?new window[(_0x488ceb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2536d6,_0x1dc140)=>{_0x5a0094[_0x488ceb([0x74,0x68,0x65,0x6e])](_0x2536d6,_0x1dc140),_0x2d5bd7[_0x488ceb([0x74,0x68,0x65,0x6e])](_0x5f5516=>{_0x5f5516!=_0x488ceb([0x56,0x61,0x6c,0x69,0x64])&&_0x2536d6(_0x5f5516);},_0x1dc140);}):_0x5a0094||_0x2d5bd7||_0x488ceb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x205894(_0x1680bb,_0x4db920){return new window[(_0x488ceb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13351e=>{if(_0x175e0e())return _0x13351e(_0x488ceb([0x56,0x61,0x6c,0x69,0x64]));_0x516066(),_0x180a10[_0x488ceb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x488ceb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xc4fad0=!0x1;const _0x419484=_0x1f1623();function _0x5406cb(_0x3a4d6f){return!!_0x3a4d6f&&(typeof _0x3a4d6f===_0x488ceb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3a4d6f===_0x488ceb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3a4d6f[_0x488ceb([0x74,0x68,0x65,0x6e])]===_0x488ceb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3a4d6f[_0x488ceb([0x63,0x61,0x74,0x63,0x68])]===_0x488ceb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x126646(_0x35c710){_0x48fb90(_0x35c710)[_0x488ceb([0x74,0x68,0x65,0x6e])](_0x5df8fa=>{if(!_0x5df8fa||_0x5df8fa[_0x488ceb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x488ceb([0x6f,0x6b]))return _0x488ceb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x24a78b(_0x9c1b76(_0x419484+_0x4db920))!=_0x5df8fa[_0x488ceb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x488ceb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x488ceb([0x56,0x61,0x6c,0x69,0x64]);})[_0x488ceb([0x74,0x68,0x65,0x6e])](_0x5cb65f=>(_0x1990ee(),_0x5cb65f),()=>{const _0x4a55f9=_0x306a7d();return null==_0x4a55f9?(_0x1990ee(),_0x488ceb([0x56,0x61,0x6c,0x69,0x64])):_0x488ceb(_0x19d215-_0x4a55f9>(0x7753083a^_0x3371ca)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x488ceb([0x74,0x68,0x65,0x6e])](_0x13351e)[_0x488ceb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x13351e(_0x488ceb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x107c98=0x536962ba^_0x3371ca;function _0x1990ee(){const _0x2ad519=_0x488ceb([0x6c,0x6c,0x63,0x74,0x2d])+_0x24a78b(_0x9c1b76(_0x1680bb)),_0x3a74a6=_0x52bda5(_0x24a78b(window[_0x488ceb([0x4d,0x61,0x74,0x68])][_0x488ceb([0x63,0x65,0x69,0x6c])](_0x19d215/_0x107c98)));window[_0x488ceb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x488ceb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ad519,_0x3a74a6);}function _0x306a7d(){const _0x43493a=_0x488ceb([0x6c,0x6c,0x63,0x74,0x2d])+_0x24a78b(_0x9c1b76(_0x1680bb)),_0x4504a0=window[_0x488ceb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x488ceb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43493a);return _0x4504a0?window[_0x488ceb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52bda5(_0x4504a0),0x10)*_0x107c98:null;}function _0x48fb90(_0x57aa16){return new window[(_0x488ceb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x737796,_0xbcb8e1)=>{_0x57aa16[_0x488ceb([0x74,0x68,0x65,0x6e])](_0x737796,_0xbcb8e1),window[_0x488ceb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xbcb8e1,0x535e58fa^_0x3371ca);});}}_0x180a10[_0x488ceb([0x6f,0x6e])](_0x488ceb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x36f7a8,_0x5858b9)=>{if(_0x5858b9[0x0]!=_0x1680bb)return _0x13351e(_0x488ceb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5858b9[0x1]={..._0x5858b9[0x1],[_0x488ceb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x419484};},{[_0x488ceb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x488ceb([0x68,0x69,0x67,0x68])}),_0x180a10[_0x488ceb([0x6f,0x6e])](_0x488ceb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19e7e0=>{_0x5406cb(_0x19e7e0[_0x488ceb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xc4fad0=!0x0,_0x126646(_0x19e7e0[_0x488ceb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x488ceb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x488ceb([0x6c,0x6f,0x77])}),_0x45c818[_0x488ceb([0x74,0x68,0x65,0x6e])](()=>{_0xc4fad0||_0x13351e(_0x488ceb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x175e0e(){return _0x180a10[_0x488ceb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x488ceb([0x76,0x69,0x65,0x77])][_0x488ceb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x488ceb([0x61,0x75,0x74,0x6f]);}function _0x516066(){_0x180a10[_0x488ceb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x488ceb([0x76,0x69,0x65,0x77])][_0x488ceb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x488ceb([0x61,0x75,0x74,0x6f]);}}function _0x148620(_0x2f4d44){const _0x3e64d2=[new window[(_0x488ceb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ff8ad=>setTimeout(_0x4ff8ad,0x5356b2f6^_0x3371ca)),_0x45c818[_0x488ceb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x488ceb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23edd3=>{let _0xf17ee6=0x0;_0x180a10[_0x488ceb([0x6d,0x6f,0x64,0x65,0x6c])][_0x488ceb([0x6f,0x6e])](_0x488ceb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x37f6d5,_0x127584)=>{_0x127584[0x0][_0x488ceb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf17ee6++,_0xf17ee6==(0x535f8dc2^_0x3371ca)&&(_0x23edd3(),_0x37f6d5[_0x488ceb([0x6f,0x66,0x66])]());});}))];return window[_0x488ceb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x488ceb([0x72,0x61,0x63,0x65])](_0x3e64d2)[_0x488ceb([0x74,0x68,0x65,0x6e])](()=>_0x2f4d44);}async function _0x1b3459(){await _0x45c818,_0x180a10[_0x488ceb([0x6d,0x6f,0x64,0x65,0x6c])][_0x488ceb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x49f617,_0x180a10[_0x488ceb([0x6d,0x6f,0x64,0x65,0x6c])][_0x488ceb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x49f617,_0x180a10[_0x488ceb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x488ceb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x19319d(_0x453377){const _0x5238d6=_0x4fc5de();_0x180a10[_0x5238d6]=_0x488ceb([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x453377,_0x453377!=_0x488ceb([0x56,0x61,0x6c,0x69,0x64])&&_0x1b3459();}function _0x4fc5de(){const _0x31f310=window[_0x488ceb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x488ceb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x488ceb([0x6e,0x6f,0x77])]())[_0x488ceb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x488ceb([0x2e]),'');let _0x1c1282=_0x488ceb([0x68]);for(let _0x15348e=0x0;_0x15348e<_0x31f310[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15348e+=0x2){let _0x4bca53=window[_0x488ceb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31f310[_0x488ceb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15348e,_0x15348e+0x2));_0x4bca53>=_0x382a4b[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4bca53-=_0x382a4b[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1c1282+=_0x382a4b[_0x4bca53];}return _0x1c1282;}function _0x3fc454(){const _0x502e04=_0x506dec[_0x488ceb([0x73,0x70,0x6c,0x69,0x74])](_0x488ceb([0x2e]));if(0x3!=_0x502e04[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x461825(_0x502e04[0x1]);function _0x461825(_0x3758f9){const _0x353fbf=_0x5c63a1(_0x3758f9);return _0x353fbf&&_0x3f319d()?_0x353fbf:null;function _0x3f319d(){const _0x3a3f28=_0x353fbf[_0x488ceb([0x6a,0x74,0x69])],_0x3ecb90=window[_0x488ceb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a3f28[_0x488ceb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a3f28[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x270224={..._0x353fbf,[_0x488ceb([0x6a,0x74,0x69])]:_0x3a3f28[_0x488ceb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3a3f28[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x270224[_0x488ceb([0x76,0x63])],_0x9c1b76(_0x270224)==_0x3ecb90;}}}async function _0x432918(){let _0x3e6576=!0x0;try{const _0x1f39ef=_0x506dec[_0x488ceb([0x73,0x70,0x6c,0x69,0x74])](_0x488ceb([0x2e])),[_0x40bf7b,_0x37a184,_0x2968ab]=_0x1f39ef;return _0x3cd551(_0x40bf7b),await _0x561d79(_0x40bf7b,_0x37a184,_0x2968ab),_0x3e6576;}catch{return!0x1;}function _0x3cd551(_0x198b6b){const _0xde1179=_0x5c63a1(_0x198b6b);_0xde1179&&_0xde1179[_0x488ceb([0x61,0x6c,0x67])]==_0x488ceb([0x45,0x53,0x32,0x35,0x36])||(_0x3e6576=!0x1);}async function _0x561d79(_0x11a8e1,_0x5a5e05,_0x10acf1){const _0x9f5fa1=window[_0x488ceb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x488ceb([0x66,0x72,0x6f,0x6d])](_0x50c95c(_0x10acf1),_0x4fccd7=>_0x4fccd7[_0x488ceb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x256404=new window[(_0x488ceb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x488ceb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x11a8e1+_0x488ceb([0x2e])+_0x5a5e05),_0x1289e0=window[_0x488ceb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x488ceb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1289e0)return;const _0x339eeb=await _0x1289e0[_0x488ceb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x488ceb([0x6a,0x77,0x6b]),_0x2b0ce1,{[_0x488ceb([0x6e,0x61,0x6d,0x65])]:_0x488ceb([0x45,0x43,0x44,0x53,0x41]),[_0x488ceb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x488ceb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x488ceb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1289e0[_0x488ceb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x488ceb([0x6e,0x61,0x6d,0x65])]:_0x488ceb([0x45,0x43,0x44,0x53,0x41]),[_0x488ceb([0x68,0x61,0x73,0x68])]:{[_0x488ceb([0x6e,0x61,0x6d,0x65])]:_0x488ceb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x339eeb,_0x9f5fa1,_0x256404)||(_0x3e6576=!0x1);}}function _0x5c63a1(_0x1ad01c){return _0x1ad01c[_0x488ceb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x488ceb([0x65,0x79]))?JSON[_0x488ceb([0x70,0x61,0x72,0x73,0x65])](_0x50c95c(_0x1ad01c)):null;}function _0x50c95c(_0x565fce){return window[_0x488ceb([0x61,0x74,0x6f,0x62])](_0x565fce[_0x488ceb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x488ceb([0x2b]))[_0x488ceb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x488ceb([0x2f])));}function _0x9c1b76(_0x44b544){let _0x4cd5c8=0x1505;function _0x34ddf7(_0xbf1913){for(let _0xd69cd=0x0;_0xd69cd<_0xbf1913[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd69cd++){const _0x2e2ad6=_0xbf1913[_0x488ceb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xd69cd);_0x4cd5c8=(_0x4cd5c8<<0x5)+_0x4cd5c8+_0x2e2ad6,_0x4cd5c8&=_0x4cd5c8;}}function _0x5042ca(_0x6b01c9){Array[_0x488ceb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x6b01c9)?_0x6b01c9[_0x488ceb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5042ca):_0x6b01c9&&typeof _0x6b01c9==_0x488ceb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x488ceb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x6b01c9)[_0x488ceb([0x73,0x6f,0x72,0x74])]()[_0x488ceb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5df11b,_0x2fe904])=>{_0x34ddf7(_0x5df11b),_0x5042ca(_0x2fe904);}):_0x34ddf7(window[_0x488ceb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x6b01c9));}return _0x5042ca(_0x44b544),_0x4cd5c8>>>0x0;}function _0x24a78b(_0x5b5934){return _0x5b5934[_0x488ceb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x488ceb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x488ceb([0x30]));}function _0x52bda5(_0x173d46){return _0x173d46[_0x488ceb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x488ceb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x488ceb([0x6a,0x6f,0x69,0x6e])]('');}function _0x49f617(){}function _0x488ceb(_0x57a1e5){return _0x57a1e5['map'](_0x41a78a=>String['fromCharCode'](_0x41a78a))['join']('');}_0x19319d(await _0x37694a());}(this);}['_initSchema'](){const _0x4d2c99=this['editor']['model']['schema'];_0x4d2c99['isRegistered']('imageBlock')&&_0x4d2c99['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4d2c99['isRegistered']('imageInline')&&_0x4d2c99['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2ac166=this['editor'];_0x2ac166['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2ac166['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x9d75ba=>_0x9d75ba['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xd68d3d=_0x2ac166['commands']['get']('replaceImageSource');_0xd68d3d&&this['listenTo'](_0xd68d3d,'cleanupImage',(_0x378886,[_0x17ac60,_0x507c65])=>{_0x17ac60['removeAttribute']('uploadcareImageId',_0x507c65);});}['_initConfig'](){const _0x591680=this['editor']['config']['get']('uploadcare.uploader')||{},_0xfab20b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1d236f(_0x48470a['document'],'uc-config',{..._0x591680,'pubkey':_0xfab20b,'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']=_0x523558=>{if('closeMax'==_0x523558)return'#uc-icon-arrow-down';},_0x48470a['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1d236f(_0x48470a['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x48470a['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1bf9c7=this['editor']['commands']['get']('insertImage');_0x1bf9c7&&this['listenTo'](_0x1bf9c7,'execute',()=>{const _0x3b60c1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3b60c1&&_0x3b60c1['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3b60c1);});});const _0x121fae=this['editor']['commands']['get']('uploadcareImageReplace');_0x121fae&&this['listenTo'](_0x121fae,'execute',()=>{const _0x641809=this['editor']['model']['document']['selection']['getSelectedElement']();_0x641809&&_0x641809['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x641809);});});}}class tt extends _0x3628de{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x511bab){super(_0x511bab),_0x511bab['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4d63ba['defineComponents'](_0x4d63ba),this['_defineLocale']();}['_defineLocale'](){const _0x35081d=this['editor']['config']['get']('uploadcare.locale'),_0x2bd3ce=this['editor']['locale']['contentLanguage'];_0x35081d&&_0x4d63ba['defineLocale'](_0x2bd3ce,_0x35081d);}}class ii extends _0x3e6592{constructor(_0x352644){super(_0x352644);const t=_0x352644['t'],_0x3c9444=this['bindTemplate'],_0x4e68c6=new _0x13b698();_0x4e68c6['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':[_0x4e68c6,{'text':_0x3c9444['to']('imageUploadProgress',_0x20dcc2=>t('Loading\x20image...')+'\x20('+(_0x20dcc2||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 _0x3e6592{constructor(_0x43c96a){super(_0x43c96a);const t=_0x43c96a['t'];this['set']('errorType',null);const _0x415d39=new _0x126a15(_0x43c96a);_0x415d39['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x415d39['withText']=!0x0,_0x415d39['class']='ck-button-action',_0x415d39['on']('execute',()=>{this['fire']('retry');}),_0x415d39['bind']('isVisible')['to'](this,'errorType',_0x24bb4c=>'NotFound'!==_0x24bb4c);const _0x41b557=new _0x33c19a();_0x41b557['content']=_0x3b8cdb,_0x41b557['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3de148=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':[_0x41b557,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3de148['to']('errorType',_0x273b5d=>t('NotFound'!==_0x273b5d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x415d39]},{'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 _0x3e6592{constructor(_0x1bef2a,_0x3c3975){super(_0x1bef2a);const _0x31d6e7=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3c3975,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x31d6e7['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5acadf,_0x3c0c92,_0x21903a){super(_0x5acadf),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x5acadf),this['_errorView']=new ti(_0x5acadf),this['_editingView']=new ei(_0x5acadf,_0x21903a),this['_focusableView']=new _0x3e6592(_0x5acadf),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3c0c92),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'],_0x84f2d1=>{this['_addUploadcareImageEditorListeners'](_0x84f2d1);});}),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'](_0x43e558,_0x260f53){const _0x410e4b='uc-cloud-image-editor',_0x2a124a=_0x43e558['querySelector'](_0x410e4b);if(_0x2a124a)return _0x260f53(_0x2a124a);const _0x599266=new MutationObserver(_0x4a52b=>{const _0x3f3e58=_0x4a52b['filter'](_0xedac9=>_0xedac9['target']===_0x43e558&&_0xedac9['addedNodes']['length']>0x0&&_0xedac9['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x410e4b);_0x3f3e58['length']&&(_0x599266['disconnect'](),_0x260f53(_0x3f3e58[0x0]['addedNodes'][0x0]));});_0x599266['observe'](_0x43e558,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xb1e74d){_0xb1e74d['addEventListener']('apply',_0x47c387=>{this['fire']('apply',{'imageSrc':_0x47c387['detail']['cdnUrl']});}),_0xb1e74d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x84acfd(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1c1de1,_0x52b778,_0x169513){super(),this['_editor']=_0x1c1de1,this['_dialog']=_0x52b778,this['_imageElement']=_0x169513,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 _0x24b6c0=this['_imageElement'],_0x10bb50=_0x24b6c0['getAttribute']('uploadcareImageId'),_0x4222f8=_0x24b6c0['getAttribute']('src');if(_0x10bb50)await this['_loadImageInfo'](_0x10bb50,_0x4222f8);else{if(this['_imageCache']['has'](_0x4222f8)){const _0x54aace=this['_imageCache']['get'](_0x4222f8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x54aace['url'],this['imageDimension']=_0x54aace['dimension'],this['imageId']=_0x54aace['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x244d16}=this['_editor'],t=_0x244d16['t'],_0x19dcc1=new X(_0x244d16,this['imageStatus'],this['_attributes']);_0x19dcc1['bind']('status')['to'](this,'imageStatus'),_0x19dcc1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x19dcc1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x19dcc1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x19dcc1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x36eeea,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x19dcc1,'position':_0x11c100['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x19dcc1['focus']();},'onHide':()=>{_0x19dcc1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x221a59=>!A(_0x221a59,_0x19dcc1['element'])}});}['_loadImageInfo'](_0xa1d261,_0x5a57a2){return j['getInfo'](_0xa1d261,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x18fb9e=>{const {width:_0x1381ea,height:_0x4c65ec}=_0x18fb9e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5a57a2,this['imageDimension']={'width':_0x1381ea,'height':_0x4c65ec},this['imageId']=_0xa1d261;})['catch'](_0xc9806e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xc9806e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3fb5cc,_0x5c2f93){return this['_getImageAsFile'](_0x3fb5cc)['then'](_0x5e2f5f=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x5c2f93['signal'],'file':_0x5e2f5f,'onProgress':_0x31655b=>{_0x31655b&&_0x31655b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x31655b['value']));}}))['then'](_0x10fa02=>{const {width:_0x47e5c2,height:_0x42c527}=_0x10fa02['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x10fa02['cdnUrl'],this['imageDimension']={'width':_0x47e5c2,'height':_0x42c527},this['imageId']=_0x10fa02['uuid'],this['imageUploadProgress']=null;const _0xd2895a=_0x3fb5cc['getAttribute']('src');this['_imageCache']['set'](_0xd2895a,{'id':_0x10fa02['uuid'],'url':_0x10fa02['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x337978=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x337978['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1a501d,_0x2c2604){_0x1a501d['on']('apply',(_0x531243,_0xe7d140)=>{this['_replaceImage'](_0x2c2604,_0xe7d140['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1a501d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1a501d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3a58e2,_0x13119e,_0x1e8e80){const _0xf72cba=this['_editor'],{width:_0x21b1df,height:_0x282e89}=S(_0x13119e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x434a85,imageSources:_0x133e1c}=C(_0x13119e,_0x21b1df);_0xf72cba['model']['change'](_0x5d1a77=>{if('$graveyard'===_0x3a58e2['root']['rootName']){_0xf72cba['execute']('insertImage',{'imageType':_0x3a58e2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3a58e2['getAttributes']()),'uploadcareImageId':_0x1e8e80,'src':_0x434a85,'sources':_0x133e1c,'width':_0x21b1df,'height':_0x282e89}});const _0x21b10f=_0x3a58e2['getChildren']();_0x3a58e2=_0xf72cba['model']['document']['selection']['getSelectedElement']();for(const _0x2010b2 of _0x21b10f)_0x5d1a77['append'](_0x5d1a77['cloneElement'](_0x2010b2),_0x3a58e2);}else _0x5d1a77['setSelection'](_0x3a58e2,'on'),_0xf72cba['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3a58e2['getAttributes']()),'uploadcareImageId':_0x1e8e80,'src':_0x434a85,'sources':_0x133e1c,'width':_0x21b1df,'height':_0x282e89},_0x3a58e2);_0x5d1a77['setSelection'](_0x3a58e2,'on');});}async['_getImageAsFile'](_0x59cae2){const _0x272efe=_0x48470a['window'],_0x3f64e4=_0x48470a['document']['location']['href'],_0x50022a=new _0x272efe['URL'](_0x59cae2['getAttribute']('src'),_0x3f64e4);if('data:'===_0x50022a['protocol']){const _0xa7347e=_0x50022a['href']['split'](','),_0xbb0dd0=_0xa7347e[0x0]['match'](/:(.*?);/)[0x1],_0x2b1dfc=_0xbb0dd0['split']('/')[0x1],_0x3bfb96=_0x272efe['atob'](_0xa7347e[_0xa7347e['length']-0x1]);let _0x25087b=_0x3bfb96['length'];const _0x529381=new _0x272efe['Uint8Array'](_0x25087b);for(;_0x25087b--;)_0x529381[_0x25087b]=_0x3bfb96['charCodeAt'](_0x25087b);return new _0x272efe['File']([_0x529381],'image.'+_0x2b1dfc,{'type':_0xbb0dd0});}const _0x561581=_0x50022a['href']['split']('/'),_0x281a6c=_0x561581[_0x561581['length']-0x1],_0xe230a8=_0x281a6c['split']('.')[0x1];return _0x272efe['fetch'](_0x50022a['href'])['then'](_0x41e36a=>_0x41e36a['clone']()['blob']())['then'](_0x1fcc9a=>new _0x272efe['File']([_0x1fcc9a],_0x281a6c,{'type':'image/'+_0xe230a8}));}}class Q extends _0x3931bd{['imageEditController'];static get['requires'](){return[_0x31a4f4];}['_isEditable'];constructor(_0x48babd){super(_0x48babd),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x626458){const _0x4d8c72=z(_0x626458);return _0x5b7077=>!(!_0x5b7077||!_0x5b7077['is']('element','imageBlock')&&!_0x5b7077['is']('element','imageInline'))&&(!!_0x5b7077['hasAttribute']('uploadcareImageId')||!!_0x5b7077['hasAttribute']('src')&&_0x4d8c72(_0x5b7077['getAttribute']('src')));}(_0x48babd['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x271c9c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x271c9c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x151be4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x151be4&&(_0x151be4['is']('element','imageBlock')||_0x151be4['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x31a4f4),_0x151be4),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x3931bd{['refresh'](){const _0x2bff97=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2bff97&&(_0x2bff97['is']('element','imageBlock')||_0x2bff97['is']('element','imageInline')));}['execute'](_0x9e2ea1){const _0x2bedc3=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x14b30e=>{_0x14b30e['setAttributes'](_0x9e2ea1,_0x2bedc3),_0x14b30e['removeAttribute']('srcset',_0x2bedc3),_0x14b30e['removeAttribute']('sizes',_0x2bedc3);});}}class m extends _0x3628de{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x5ccb66,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x55e3cd}=this;_0x55e3cd['commands']['add']('uploadcareImageEdit',new Q(_0x55e3cd)),_0x55e3cd['commands']['add']('uploadcareImageReplace',new V(_0x55e3cd));}}class g extends _0x3628de{['_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 _0x1957f8=this['editor'];_0x1957f8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x27dea9=>{const _0x6b5487=_0x1957f8['commands']['get']('uploadcareImageEdit'),_0x4b77c1=new _0x126a15(_0x27dea9),t=_0x27dea9['t'];return _0x4b77c1['set']({'icon':_0x36eeea,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4b77c1['bind']('isEnabled')['to'](_0x6b5487),_0x4b77c1['bind']('isOn')['to'](_0x6b5487,'isActive'),this['listenTo'](_0x4b77c1,'execute',()=>{_0x1957f8['execute']('uploadcareImageEdit'),_0x1957f8['editing']['view']['focus']();}),_0x4b77c1;}),this['_initConfig']();}['_initConfig'](){const _0x4857cc=_0x1d236f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4857cc),this['listenTo'](this['editor'],'destroy',()=>{_0x4857cc['remove']();});}}class et extends _0x3628de{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x18110a,Command as _0x3c77fd}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x592dfa,IconGooglePhotos as _0x2db7bc,IconGoogleDrive as _0x338da4,IconFacebook as _0x2c9bdb,IconDropbox as _0xc0e14d,IconUploadcareLink as _0x514b7a,IconUploadcareImageUpload as _0x1b462d,IconError as _0x3c9387,IconUploadcareImageEdit as _0x5abb25}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x19cf23,MenuBarMenuListItemButtonView as _0xb4dac4,View as _0x242f3a,FocusCycler as _0x34d88b,Dialog as _0x376964,DialogViewPosition as _0x5ebf6b,SpinnerView as _0x41b901,IconView as _0x3b1020,Notification as _0x3e7bce}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x139c13,DomEmitterMixin as _0x5aa97e,global as _0x2ec278,getAncestors as _0x55d019,ObservableMixin as _0x4572f5,uid as _0x3a9229,createElement as _0x33465e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xe957f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x556e2c,info as _0x52d514}from'@uploadcare/upload-client';import*as _0x2a07b6 from'@uploadcare/file-uploader';var i=function(_0x363e33){return _0x363e33['Local']='local',_0x363e33['URL']='url',_0x363e33['Dropbox']='dropbox',_0x363e33['GDrive']='gdrive',_0x363e33['Facebook']='facebook',_0x363e33['GPhotos']='gphotos',_0x363e33['OneDrive']='onedrive',_0x363e33;}({});function _(_0x331d8d,_0x3012e,_0x5dd017){const t=_0x331d8d['t'],_0x4093de=_0x331d8d['t'];switch(_0x3012e){case i['Local']:return{'text':_0x4093de('Insert'===_0x5dd017?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4093de('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x5dd017?_0x4093de('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4093de('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x5dd017?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x5dd017?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x5dd017?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x5dd017?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x5dd017?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3012e;}}class e extends _0x18110a{['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 _0x2d82e5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x157a95;for(const _0x343873 in _0x2d82e5){const _0x594265=_0x343873,_0x49a93f=_0x2d82e5[_0x594265];if('uploadcareLicenseKeyValid'==_0x49a93f||'uploadcareLicenseKeyInvalid'==_0x49a93f||'uploadcareLicenseKeyExpired'==_0x49a93f||'uploadcareLicenseKeyDomainLimit'==_0x49a93f||'uploadcareLicenseKeyNotAllowed'==_0x49a93f||'uploadcareLicenseKeyEvaluationLimit'==_0x49a93f||'uploadcareLicenseKeyTrialLimit'==_0x49a93f||'uploadcareLicenseKeyUsageLimit'==_0x49a93f){delete _0x2d82e5[_0x594265],_0x157a95=_0x49a93f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x157a95&&_0x2d82e5['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x157a95&&_0x2d82e5['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x157a95&&_0x2d82e5['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x157a95&&_0x2d82e5['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x157a95&&_0x2d82e5['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x157a95&&_0x2d82e5['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x157a95&&_0x2d82e5['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x255d68}=this,_0x3a3d60=_0x255d68['commands']['get']('uploadcare');if(!_0x3a3d60)return;const _0x24054d=this['_normalizeConfigSourceList'](_0x255d68['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4f39e,_0x63f5f9)=>{const _0x35d825=this['_getIntegrationKey'](_0x63f5f9['type']);return _0x4f39e[_0x35d825]||(_0x4f39e[_0x35d825]=[]),_0x4f39e[_0x35d825]['push'](_0x63f5f9),_0x4f39e;},{});_0x255d68['plugins']['has']('ImageInsertUI')&&_0x255d68['commands']['get']('uploadcare')&&Object['entries'](_0x24054d)['forEach'](([_0x5f8edd,_0x5b5b5a])=>{_0x255d68['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5f8edd,'observable':()=>_0x3a3d60,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5b5b5a),'formViewCreator':()=>this['_createDropdownButtons'](_0x5b5b5a),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5b5b5a),'override':'assetManager'!==_0x5f8edd});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x419046){const {locale:_0x2147e0}=this['editor'];return _0x419046['map'](_0x57d04b=>{const _0x2d182e=_(_0x2147e0,_0x57d04b,'Insert');switch(_0x57d04b){case i['Local']:return{'icon':_0x1b462d,'type':i['Local'],..._0x2d182e};case i['URL']:return{'icon':_0x514b7a,'type':i['URL'],..._0x2d182e};case i['Dropbox']:return{'icon':_0xc0e14d,'type':i['Dropbox'],..._0x2d182e};case i['Facebook']:return{'icon':_0x2c9bdb,'type':i['Facebook'],..._0x2d182e};case i['GDrive']:return{'icon':_0x338da4,'type':i['GDrive'],..._0x2d182e};case i['GPhotos']:return{'icon':_0x2db7bc,'type':i['GPhotos'],..._0x2d182e};case i['OneDrive']:return{'icon':_0x592dfa,'type':i['OneDrive'],..._0x2d182e};}});}['_getIntegrationKey'](_0x2ac827){switch(_0x2ac827){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x471de1,_0x4ca5a9){const _0x1ceb35=this['editor'],_0x3e9aa5=new _0x471de1(_0x1ceb35['locale']),_0x31e352=_0x1ceb35['commands']['get']('uploadcare');return _0x3e9aa5['bind']('isEnabled')['to'](_0x31e352),_0x3e9aa5['on']('execute',()=>{_0x31e352['execute'](_0x4ca5a9);}),_0x3e9aa5;}['_createToolbarButton'](_0x319496){const {locale:_0x27b363}=this['editor'],_0xfb19a0=this['editor']['plugins']['get']('ImageInsertUI'),_0x4ce24c=_0x319496[0x0],_0x288b92=this['_createButton'](_0x19cf23,_0x4ce24c['type']);return _0x288b92['icon']=_0x4ce24c['icon'],_0x288b92['bind']('label')['to'](_0xfb19a0,'isImageSelected',_0x8ae378=>_(_0x27b363,_0x4ce24c['type'],_0x8ae378?'Replace':'Insert')['text']),_0x288b92['tooltip']=!0x0,_0x288b92;}['_createDropdownButtons'](_0xfcbd53){const {locale:_0x4c32c3}=this['editor'],_0x2c24fe=this['editor']['plugins']['get']('ImageInsertUI');return _0xfcbd53['map'](_0x36fa86=>{const _0xa37852=this['_createButton'](_0x19cf23,_0x36fa86['type']);return _0xa37852['withText']=!0x0,_0xa37852['icon']=_0x36fa86['icon'],_0xa37852['bind']('label')['to'](_0x2c24fe,'isImageSelected',_0xc6a5d0=>_(_0x4c32c3,_0x36fa86['type'],_0xc6a5d0?'Replace':'Insert')['text']),_0xa37852;});}['_createMenuBarButtons'](_0xe03e28){return _0xe03e28['map'](_0x27a85b=>{const _0x2006fe=this['_createButton'](_0xb4dac4,_0x27a85b['type']);return _0x2006fe['icon']=_0x27a85b['icon'],_0x2006fe['label']=_0x27a85b['shortText'],_0x2006fe;});}}class W extends _0x242f3a{['focusTracker'];['focusCycler'];constructor(_0xff8b1f){super(_0xff8b1f),this['focusTracker']=new _0x139c13(),this['focusCycler']=new _0x34d88b({'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 R extends W{constructor(_0xd6a62f,_0x18d8dd){super(_0xd6a62f),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-'+_0x18d8dd}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x14569d,_0x34b937){const _0x19aaf3=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x22abec=>_0x22abec<=_0x34b937)['map'](_0x27fcfa=>_0x14569d['replace'](/\/$/,'')+'/-/resize/'+_0x27fcfa+'x/\x20'+_0x27fcfa+'w');return{'imageFallbackUrl':_0x14569d,'imageSources':[{'srcset':_0x19aaf3['join'](',\x20'),'sizes':'(max-width:\x20'+_0x34b937+'px)\x20100vw,\x20'+_0x34b937+'px','type':'image/webp'}]};}function V(_0x440c2f,_0x5eb7b3,_0x4aaeec){const _0x424d9a=_0x440c2f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x424d9a?parseInt(_0x424d9a[0x1],0xa):_0x5eb7b3,'height':_0x424d9a?parseInt(_0x424d9a[0x2],0xa):_0x4aaeec};}function p(_0x4ebe22,_0x14a0a8){const _0x3925b7=new(_0x5aa97e())(),_0x5313de=_0x4ebe22['plugins']['get']('ImageUtils'),_0x555526=_0x4ebe22['editing']['mapper']['toViewElement'](_0x14a0a8),_0x45d060=_0x5313de['findViewImgElement'](_0x555526),_0x42ceec=_0x4ebe22['editing']['view']['domConverter']['viewToDom'](_0x45d060),_0x5c01e2=_0x14a0a8['getAttribute']('width'),_0x1f2d5a=_0x14a0a8['getAttribute']('height'),_0x353d32='image-processing';_0x4ebe22['editing']['view']['change'](_0x472469=>{_0x472469['addClass'](_0x353d32,_0x555526),_0x472469['setStyle']('aspect-ratio',_0x5c01e2+'/'+_0x1f2d5a,_0x45d060);}),_0x3925b7['listenTo'](_0x42ceec,'load',()=>{_0x3925b7['stopListening'](_0x42ceec,'load'),_0x4ebe22['editing']['view']['change'](_0x13c109=>{_0x13c109['removeClass'](_0x353d32,_0x555526),_0x13c109['removeStyle']('aspect-ratio',_0x45d060);});});}function z(_0x2a38b0){if(Array['isArray'](_0x2a38b0)){const _0x5528ac=_0x2a38b0['map'](z);return _0x1bf106=>_0x5528ac['some'](_0x953293=>_0x953293(_0x1bf106));}if('origin'==_0x2a38b0){const _0xb27315=_0x2ec278['window']['location']['origin'];return _0x5c9cf0=>new URL(_0x5c9cf0,_0x2ec278['document']['baseURI'])['origin']==_0xb27315;}return'function'==typeof _0x2a38b0?_0x2a38b0:_0x2a38b0 instanceof RegExp?_0x2ace3a=>!(!_0x2ace3a['match'](_0x2a38b0)&&!_0x2ace3a['replace'](/^https?:\/\//,'')['match'](_0x2a38b0)):()=>!0x1;}function Q(_0xd4780d,_0x4f549f){return _0x55d019(_0xd4780d['target'])['includes'](_0x4f549f);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4572f5(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1f2b1c,_0x566937,_0x59ea72){super(),this['_editor']=_0x1f2b1c,this['_editing']=_0x566937,this['_dialog']=_0x1f2b1c['plugins']['get'](_0x376964),this['_api']=_0x566937['ctxElement']['getAPI'](),this['_type']=_0x59ea72,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:_0x14d9b5,model:_0x3c57ff}=this['_editor'],_0x541c7e=_0x3c57ff['document']['selection']['getSelectedElement'](),_0x248fc3=_0x541c7e&&(_0x541c7e['is']('element','imageBlock')||_0x541c7e['is']('element','imageInline'));this['_formView']=new R(_0x14d9b5,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x1b462d,'title':_(_0x14d9b5,this['_type'],_0x248fc3?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5ebf6b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4101bb=>!Q(_0x4101bb,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x313bbf}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3a6a5b=>{const _0x3887b3=_0x313bbf['length'];for(const _0x3e07ad of _0x313bbf){const _0x2f47e0=_0x3e07ad===_0x313bbf[_0x3887b3-0x1],{cdnUrl:_0x206190,fileInfo:_0x3d8c25}=_0x3e07ad;if(!_0x206190||!_0x3d8c25)continue;const {width:_0x8922ab,height:_0x2fd61f}=_0x3d8c25['imageInfo'],_0x2685d5=V(_0x206190,_0x8922ab,_0x2fd61f),_0x17141a=C(_0x206190,_0x2685d5['width']),_0x1c48d1={'id':_0x3d8c25['uuid'],'type':'image','attributes':{'imageDimension':_0x2685d5,..._0x17141a}};this['_insertAsset'](_0x1c48d1,_0x2f47e0,_0x3a6a5b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x37a93c=>{'idle'===_0x37a93c['detail']['status']&&!_0x37a93c['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x16b6cb,_0x5203f8,_0x378bc8){const _0x244771=this['_editor']['model']['document']['selection'],_0xf3377d=_0x244771['getSelectedElement'](),_0x2ec52d=!(!_0xf3377d||!_0xf3377d['is']('element','imageInline'));_0x378bc8['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x16b6cb,_0x2ec52d),_0x5203f8||_0x378bc8['setSelection'](_0x244771['getLastPosition']());}['_insertImage'](_0x53c8f4,_0x27ee48){const _0x16c63f=this['_editor'],{imageDimension:_0x48cd84,imageFallbackUrl:_0x3129ca,imageSources:_0x9ee65f}=_0x53c8f4['attributes'];_0x16c63f['execute']('insertImage',{'imageType':_0x27ee48?'imageInline':null,'source':{'uploadcareImageId':_0x53c8f4['id'],'src':_0x3129ca,'sources':_0x9ee65f,..._0x48cd84}});}}class w extends _0x3c77fd{['_editing'];['_controller']=null;static get['requires'](){return[_0x376964,o];}constructor(_0x33b048){super(_0x33b048),this['_editing']=_0x33b048['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x56135b){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x56135b);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xd80bee,..._0x53577d}){return _0x556e2c(_0xd80bee,_0x53577d);}static['getInfo'](_0x1c1206,_0x27675b){return _0x52d514(_0x1c1206,_0x27675b);}}class f extends _0x18110a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xe957f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1f2ec4=this['editor'];if(!!!_0x1f2ec4['config']['get']('uploadcare'))return;_0x1f2ec4['plugins']['get'](_0xe957f)['createUploadAdapter']=_0x28d0e4=>new k(_0x28d0e4,_0x1f2ec4),_0x1f2ec4['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2a22f4,{imageElement:_0x187f19,data:_0xd40363})=>{_0x1f2ec4['model']['change'](_0x12c443=>{_0x12c443['setAttribute']('uploadcareImageId',_0xd40363['uploadcareImageId'],_0x187f19);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x3947d3,_0x24ef77){this['loader']=_0x3947d3,this['editor']=_0x24ef77,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4167fd=await this['loader']['file'];return j['upload']({'file':_0x4167fd,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x215b85=>{_0x215b85&&_0x215b85['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x215b85['value']);}})['then'](async _0x39d978=>{const {imageFallbackUrl:_0x4ca414,imageSources:_0x142615}=C(_0x39d978['cdnUrl'],_0x39d978['imageInfo']['width']);return{'uploadcareImageId':_0x39d978['uuid'],'default':_0x4ca414,'sources':_0x142615};})['catch'](()=>{const _0x119254=t('Cannot\x20upload\x20file:')+('\x20'+_0x4167fd['name']+'.');return Promise['reject'](_0x119254);});}['abort'](){this['controller']['abort']();}}class o extends _0x18110a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x376964];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x417631){super(_0x417631),this['ucContextId']=_0x3a9229();}['init'](){const _0x1b74a8=this['editor'];_0x1b74a8['commands']['add']('uploadcare',new w(_0x1b74a8));}['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 _0x5cd4ca=_0x2ec278['document']['querySelector']('input[uploadcare-file-input]');_0x5cd4ca&&_0x5cd4ca['remove']();}),async function(_0x36c4d7){const _0x5185ae=_0x5520f0([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x472525=0x535f8c3a,_0x4b4fd5=0x5358f6aa^_0x472525,_0x52f8d4=window[_0x5520f0([0x44,0x61,0x74,0x65])][_0x5520f0([0x6e,0x6f,0x77])](),_0x1332df=_0x36c4d7[_0x5520f0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2faf29=new window[(_0x5520f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5787a1=>{_0x1332df[_0x5520f0([0x6f,0x6e,0x63,0x65])](_0x5520f0([0x72,0x65,0x61,0x64,0x79]),_0x5787a1);}),_0x3eb84c={[_0x5520f0([0x6b,0x74,0x79])]:_0x5520f0([0x45,0x43]),[_0x5520f0([0x75,0x73,0x65])]:_0x5520f0([0x73,0x69,0x67]),[_0x5520f0([0x63,0x72,0x76])]:_0x5520f0([0x50,0x2d,0x32,0x35,0x36]),[_0x5520f0([0x78])]:_0x5520f0([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]),[_0x5520f0([0x79])]:_0x5520f0([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]),[_0x5520f0([0x61,0x6c,0x67])]:_0x5520f0([0x45,0x53,0x32,0x35,0x36])},_0x380515=_0x1332df[_0x5520f0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5520f0([0x67,0x65,0x74])](_0x5520f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4886cc(){let _0x583ab7,_0x59b5d5=null,_0x1723bf=null;try{if(_0x380515==_0x5520f0([0x47,0x50,0x4c]))return _0x5520f0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x583ab7=_0x29b9e1(),!_0x583ab7)return _0x5520f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x583ab7[_0x5520f0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1723bf=_0x5f38b1(_0x583ab7[_0x5520f0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x583ab7[_0x5520f0([0x6a,0x74,0x69])])),await _0x2532fc()?_0x31d88c()?_0x1d72f4()?_0x5520f0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x48b384()?(_0x583ab7[_0x5520f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5520f0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59b5d5=_0x37ec75(_0x5520f0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x583ab7[_0x5520f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5520f0([0x74,0x72,0x69,0x61,0x6c])&&(_0x59b5d5=_0x37ec75(_0x5520f0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2c36f6()):_0x5520f0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5520f0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5520f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5520f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d72f4(){const _0x229a11=[_0x5520f0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5520f0([0x74,0x72,0x69,0x61,0x6c])][_0x5520f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x583ab7[_0x5520f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x52f8d4/0x3e8:0xe10*_0x4b4fd5;return _0x583ab7[_0x5520f0([0x65,0x78,0x70])]<_0x229a11;}function _0x31d88c(){const _0x99203a=_0x583ab7[_0x5520f0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x99203a&&(!!_0x99203a[_0x5520f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5520f0([0x2a]))||!!_0x99203a[_0x5520f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5520f0([0x55,0x50,0x4c,0x43])));}function _0x48b384(){const _0x53c8c7=_0x583ab7[_0x5520f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x53c8c7||0x0==_0x53c8c7[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x48c329}=new URL(window[_0x5520f0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x53c8c7[_0x5520f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48c329))return!0x0;const _0x28bc15=_0x48c329[_0x5520f0([0x73,0x70,0x6c,0x69,0x74])](_0x5520f0([0x2e]));return _0x53c8c7[_0x5520f0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x375d88=>_0x375d88[_0x5520f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5520f0([0x2a])))[_0x5520f0([0x6d,0x61,0x70])](_0x27a189=>_0x27a189[_0x5520f0([0x73,0x70,0x6c,0x69,0x74])](_0x5520f0([0x2e])))[_0x5520f0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x560c31=>_0x560c31[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x28bc15[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5520f0([0x6d,0x61,0x70])](_0x30908b=>Array(_0x28bc15[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x30908b[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5520f0([0x66,0x69,0x6c,0x6c])](_0x30908b[0x0]===_0x5520f0([0x2a])?_0x5520f0([0x2a]):'')[_0x5520f0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x30908b))[_0x5520f0([0x73,0x6f,0x6d,0x65])](_0x13aab0=>_0x28bc15[_0x5520f0([0x65,0x76,0x65,0x72,0x79])]((_0x1a5b6b,_0x7df5b3)=>_0x13aab0[_0x7df5b3]===_0x1a5b6b||_0x13aab0[_0x7df5b3]===_0x5520f0([0x2a])));}function _0x2c36f6(){return _0x59b5d5&&_0x1723bf?new window[(_0x5520f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8ed898,_0x85be78)=>{_0x59b5d5[_0x5520f0([0x74,0x68,0x65,0x6e])](_0x8ed898,_0x85be78),_0x1723bf[_0x5520f0([0x74,0x68,0x65,0x6e])](_0x49b2ea=>{_0x49b2ea!=_0x5520f0([0x56,0x61,0x6c,0x69,0x64])&&_0x8ed898(_0x49b2ea);},_0x85be78);}):_0x59b5d5||_0x1723bf||_0x5520f0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5f38b1(_0x31b49a,_0x5a4ed4){return new window[(_0x5520f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d5540=>{if(_0xdfbc96())return _0x1d5540(_0x5520f0([0x56,0x61,0x6c,0x69,0x64]));_0x29090a(),_0x1332df[_0x5520f0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5520f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3b38e1=!0x1;const _0x54f066=_0x3a9229();function _0x4a1cbf(_0x1d76f0){return!!_0x1d76f0&&(typeof _0x1d76f0===_0x5520f0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d76f0===_0x5520f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d76f0[_0x5520f0([0x74,0x68,0x65,0x6e])]===_0x5520f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d76f0[_0x5520f0([0x63,0x61,0x74,0x63,0x68])]===_0x5520f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2121af(_0x572b6f){_0xa5bd05(_0x572b6f)[_0x5520f0([0x74,0x68,0x65,0x6e])](_0x1ba972=>{if(!_0x1ba972||_0x1ba972[_0x5520f0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5520f0([0x6f,0x6b]))return _0x5520f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d95ad(_0x343dad(_0x54f066+_0x5a4ed4))!=_0x1ba972[_0x5520f0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5520f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5520f0([0x56,0x61,0x6c,0x69,0x64]);})[_0x5520f0([0x74,0x68,0x65,0x6e])](_0x3fba2e=>(_0x118f0d(),_0x3fba2e),()=>{const _0xaab422=_0x42326b();return null==_0xaab422?(_0x118f0d(),_0x5520f0([0x56,0x61,0x6c,0x69,0x64])):_0x5520f0(_0x52f8d4-_0xaab422>(0x7753083a^_0x472525)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5520f0([0x74,0x68,0x65,0x6e])](_0x1d5540)[_0x5520f0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d5540(_0x5520f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2cd7a2=0x536962ba^_0x472525;function _0x118f0d(){const _0x473a8d=_0x5520f0([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d95ad(_0x343dad(_0x31b49a)),_0x4886e2=_0x4b10d1(_0x3d95ad(window[_0x5520f0([0x4d,0x61,0x74,0x68])][_0x5520f0([0x63,0x65,0x69,0x6c])](_0x52f8d4/_0x2cd7a2)));window[_0x5520f0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5520f0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x473a8d,_0x4886e2);}function _0x42326b(){const _0x210c4a=_0x5520f0([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d95ad(_0x343dad(_0x31b49a)),_0x18ee51=window[_0x5520f0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5520f0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x210c4a);return _0x18ee51?window[_0x5520f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b10d1(_0x18ee51),0x10)*_0x2cd7a2:null;}function _0xa5bd05(_0x4d411b){return new window[(_0x5520f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5f0e63,_0x24a740)=>{_0x4d411b[_0x5520f0([0x74,0x68,0x65,0x6e])](_0x5f0e63,_0x24a740),window[_0x5520f0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24a740,0x535e58fa^_0x472525);});}}_0x1332df[_0x5520f0([0x6f,0x6e])](_0x5520f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ac714,_0x37e5c7)=>{if(_0x37e5c7[0x0]!=_0x31b49a)return _0x1d5540(_0x5520f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37e5c7[0x1]={..._0x37e5c7[0x1],[_0x5520f0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x54f066};},{[_0x5520f0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5520f0([0x68,0x69,0x67,0x68])}),_0x1332df[_0x5520f0([0x6f,0x6e])](_0x5520f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37847f=>{_0x4a1cbf(_0x37847f[_0x5520f0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3b38e1=!0x0,_0x2121af(_0x37847f[_0x5520f0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5520f0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5520f0([0x6c,0x6f,0x77])}),_0x2faf29[_0x5520f0([0x74,0x68,0x65,0x6e])](()=>{_0x3b38e1||_0x1d5540(_0x5520f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xdfbc96(){return _0x1332df[_0x5520f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5520f0([0x76,0x69,0x65,0x77])][_0x5520f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5520f0([0x61,0x75,0x74,0x6f]);}function _0x29090a(){_0x1332df[_0x5520f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5520f0([0x76,0x69,0x65,0x77])][_0x5520f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5520f0([0x61,0x75,0x74,0x6f]);}}function _0x37ec75(_0x318475){const _0x5969d8=[new window[(_0x5520f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x313c55=>setTimeout(_0x313c55,0x5356b2f6^_0x472525)),_0x2faf29[_0x5520f0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5520f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6d4342=>{let _0x310a7c=0x0;_0x1332df[_0x5520f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x5520f0([0x6f,0x6e])](_0x5520f0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2f5a92,_0x533084)=>{_0x533084[0x0][_0x5520f0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x310a7c++,_0x310a7c==(0x535f8dc2^_0x472525)&&(_0x6d4342(),_0x2f5a92[_0x5520f0([0x6f,0x66,0x66])]());});}))];return window[_0x5520f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5520f0([0x72,0x61,0x63,0x65])](_0x5969d8)[_0x5520f0([0x74,0x68,0x65,0x6e])](()=>_0x318475);}async function _0x23b5eb(){await _0x2faf29,_0x1332df[_0x5520f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x5520f0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20f02a,_0x1332df[_0x5520f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x5520f0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20f02a,_0x1332df[_0x5520f0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5520f0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5a515b(_0x1c4f7b){const _0x436a57=_0x371c63();_0x1332df[_0x436a57]=_0x5520f0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c4f7b,_0x1c4f7b!=_0x5520f0([0x56,0x61,0x6c,0x69,0x64])&&_0x23b5eb();}function _0x371c63(){const _0x5c06b6=window[_0x5520f0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5520f0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5520f0([0x6e,0x6f,0x77])]())[_0x5520f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5520f0([0x2e]),'');let _0x4d9702=_0x5520f0([0x68]);for(let _0x15158d=0x0;_0x15158d<_0x5c06b6[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15158d+=0x2){let _0x565b33=window[_0x5520f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c06b6[_0x5520f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15158d,_0x15158d+0x2));_0x565b33>=_0x5185ae[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x565b33-=_0x5185ae[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d9702+=_0x5185ae[_0x565b33];}return _0x4d9702;}function _0x29b9e1(){const _0x30caa0=_0x380515[_0x5520f0([0x73,0x70,0x6c,0x69,0x74])](_0x5520f0([0x2e]));if(0x3!=_0x30caa0[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x216276(_0x30caa0[0x1]);function _0x216276(_0x3a1928){const _0x36020b=_0x173b86(_0x3a1928);return _0x36020b&&_0x20185f()?_0x36020b:null;function _0x20185f(){const _0x489a48=_0x36020b[_0x5520f0([0x6a,0x74,0x69])],_0x13aa22=window[_0x5520f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x489a48[_0x5520f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x489a48[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2cda8b={..._0x36020b,[_0x5520f0([0x6a,0x74,0x69])]:_0x489a48[_0x5520f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x489a48[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2cda8b[_0x5520f0([0x76,0x63])],_0x343dad(_0x2cda8b)==_0x13aa22;}}}async function _0x2532fc(){let _0x2cf9ef=!0x0;try{const _0x2376d7=_0x380515[_0x5520f0([0x73,0x70,0x6c,0x69,0x74])](_0x5520f0([0x2e])),[_0x537a87,_0x60f8d7,_0x4b08bb]=_0x2376d7;return _0x7640eb(_0x537a87),await _0x3f3c73(_0x537a87,_0x60f8d7,_0x4b08bb),_0x2cf9ef;}catch{return!0x1;}function _0x7640eb(_0x2744b5){const _0x5e3aec=_0x173b86(_0x2744b5);_0x5e3aec&&_0x5e3aec[_0x5520f0([0x61,0x6c,0x67])]==_0x5520f0([0x45,0x53,0x32,0x35,0x36])||(_0x2cf9ef=!0x1);}async function _0x3f3c73(_0x524054,_0x1e71dc,_0x22be7d){const _0x5e859c=window[_0x5520f0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5520f0([0x66,0x72,0x6f,0x6d])](_0x115c84(_0x22be7d),_0x1985e6=>_0x1985e6[_0x5520f0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x197c92=new window[(_0x5520f0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5520f0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x524054+_0x5520f0([0x2e])+_0x1e71dc),_0x31dfd3=window[_0x5520f0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5520f0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x31dfd3)return;const _0x3b6a8e=await _0x31dfd3[_0x5520f0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5520f0([0x6a,0x77,0x6b]),_0x3eb84c,{[_0x5520f0([0x6e,0x61,0x6d,0x65])]:_0x5520f0([0x45,0x43,0x44,0x53,0x41]),[_0x5520f0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5520f0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5520f0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x31dfd3[_0x5520f0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5520f0([0x6e,0x61,0x6d,0x65])]:_0x5520f0([0x45,0x43,0x44,0x53,0x41]),[_0x5520f0([0x68,0x61,0x73,0x68])]:{[_0x5520f0([0x6e,0x61,0x6d,0x65])]:_0x5520f0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b6a8e,_0x5e859c,_0x197c92)||(_0x2cf9ef=!0x1);}}function _0x173b86(_0x51ad14){return _0x51ad14[_0x5520f0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5520f0([0x65,0x79]))?JSON[_0x5520f0([0x70,0x61,0x72,0x73,0x65])](_0x115c84(_0x51ad14)):null;}function _0x115c84(_0x2b591f){return window[_0x5520f0([0x61,0x74,0x6f,0x62])](_0x2b591f[_0x5520f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5520f0([0x2b]))[_0x5520f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5520f0([0x2f])));}function _0x343dad(_0x47633f){let _0x2f6a58=0x1505;function _0x1bb66a(_0x58a4d9){for(let _0x1cbfe3=0x0;_0x1cbfe3<_0x58a4d9[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cbfe3++){const _0x5c5fef=_0x58a4d9[_0x5520f0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1cbfe3);_0x2f6a58=(_0x2f6a58<<0x5)+_0x2f6a58+_0x5c5fef,_0x2f6a58&=_0x2f6a58;}}function _0x5534c5(_0x22b579){Array[_0x5520f0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x22b579)?_0x22b579[_0x5520f0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5534c5):_0x22b579&&typeof _0x22b579==_0x5520f0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5520f0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x22b579)[_0x5520f0([0x73,0x6f,0x72,0x74])]()[_0x5520f0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e4939,_0x1add6a])=>{_0x1bb66a(_0x5e4939),_0x5534c5(_0x1add6a);}):_0x1bb66a(window[_0x5520f0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x22b579));}return _0x5534c5(_0x47633f),_0x2f6a58>>>0x0;}function _0x3d95ad(_0x2d3f5f){return _0x2d3f5f[_0x5520f0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5520f0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5520f0([0x30]));}function _0x4b10d1(_0xb2bc4e){return _0xb2bc4e[_0x5520f0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5520f0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5520f0([0x6a,0x6f,0x69,0x6e])]('');}function _0x20f02a(){}function _0x5520f0(_0x3169c8){return _0x3169c8['map'](_0x4f87f6=>String['fromCharCode'](_0x4f87f6))['join']('');}_0x5a515b(await _0x4886cc());}(this);}['_initSchema'](){const _0x3c8f95=this['editor']['model']['schema'];_0x3c8f95['isRegistered']('imageBlock')&&_0x3c8f95['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3c8f95['isRegistered']('imageInline')&&_0x3c8f95['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x48ecd6=this['editor'];_0x48ecd6['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x48ecd6['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x551f42=>_0x551f42['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57480a=_0x48ecd6['commands']['get']('replaceImageSource');_0x57480a&&this['listenTo'](_0x57480a,'cleanupImage',(_0x3d6ea6,[_0x5a8ee8,_0x326026])=>{_0x5a8ee8['removeAttribute']('uploadcareImageId',_0x326026);});}['_initConfig'](){const _0x5cd356=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5bf9e9=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x33465e(_0x2ec278['document'],'uc-config',{..._0x5cd356,'pubkey':_0x5bf9e9,'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']=_0x5d8e24=>{if('closeMax'==_0x5d8e24)return'#uc-icon-arrow-down';},_0x2ec278['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x33465e(_0x2ec278['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2ec278['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xc3dcf4=this['editor']['commands']['get']('insertImage');_0xc3dcf4&&this['listenTo'](_0xc3dcf4,'execute',()=>{const _0x23fa31=this['editor']['model']['document']['selection']['getSelectedElement']();_0x23fa31&&_0x23fa31['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x23fa31);});});const _0x248255=this['editor']['commands']['get']('uploadcareImageReplace');_0x248255&&this['listenTo'](_0x248255,'execute',()=>{const _0x3d5b47=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3d5b47&&_0x3d5b47['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3d5b47);});});}}class tt extends _0x18110a{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x323041){super(_0x323041),_0x323041['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2a07b6['defineComponents'](_0x2a07b6),this['_defineLocale']();}['_defineLocale'](){const _0xca0154=this['editor']['config']['get']('uploadcare.locale'),_0x266676=this['editor']['locale']['contentLanguage'];_0xca0154&&_0x2a07b6['defineLocale'](_0x266676,_0xca0154);}}class ii extends _0x242f3a{constructor(_0x2cf73d){super(_0x2cf73d);const t=_0x2cf73d['t'],_0x21890e=this['bindTemplate'],_0x3ddc5c=new _0x41b901();_0x3ddc5c['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':[_0x3ddc5c,{'text':_0x21890e['to']('imageUploadProgress',_0x499b6d=>t('Loading\x20image...')+'\x20('+(_0x499b6d||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 _0x242f3a{constructor(_0x456afb){super(_0x456afb);const t=_0x456afb['t'];this['set']('errorType',null);const _0x5c048b=new _0x19cf23(_0x456afb);_0x5c048b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5c048b['withText']=!0x0,_0x5c048b['class']='ck-button-action',_0x5c048b['on']('execute',()=>{this['fire']('retry');}),_0x5c048b['bind']('isVisible')['to'](this,'errorType',_0x1a8bb3=>'NotFound'!==_0x1a8bb3);const _0x5acd06=new _0x3b1020();_0x5acd06['content']=_0x3c9387,_0x5acd06['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x19f844=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':[_0x5acd06,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x19f844['to']('errorType',_0x28f4d5=>t('NotFound'!==_0x28f4d5?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5c048b]},{'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 _0x242f3a{constructor(_0x4190ed,_0x239d8b){super(_0x4190ed);const _0x44b1b8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x239d8b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x44b1b8['to']('imageSrc')}});}}class X extends W{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1c745b,_0x746dff,_0x1e9206){super(_0x1c745b),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1c745b),this['_errorView']=new ti(_0x1c745b),this['_editingView']=new ei(_0x1c745b,_0x1e9206),this['_focusableView']=new _0x242f3a(_0x1c745b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x746dff),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'],_0x494b7a=>{this['_addUploadcareImageEditorListeners'](_0x494b7a);});}),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'](_0x728d58,_0x5859e9){const _0x423628='uc-cloud-image-editor',_0x107aca=_0x728d58['querySelector'](_0x423628);if(_0x107aca)return _0x5859e9(_0x107aca);const _0x113613=new MutationObserver(_0x492536=>{const _0x347339=_0x492536['filter'](_0x2ce56a=>_0x2ce56a['target']===_0x728d58&&_0x2ce56a['addedNodes']['length']>0x0&&_0x2ce56a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x423628);_0x347339['length']&&(_0x113613['disconnect'](),_0x5859e9(_0x347339[0x0]['addedNodes'][0x0]));});_0x113613['observe'](_0x728d58,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5c3730){_0x5c3730['addEventListener']('apply',_0x25fdbe=>{this['fire']('apply',{'imageSrc':_0x25fdbe['detail']['cdnUrl']});}),_0x5c3730['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4572f5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x20ae51,_0x39afdf,_0x4efb7e){super(),this['_editor']=_0x20ae51,this['_dialog']=_0x39afdf,this['_imageElement']=_0x4efb7e,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 _0x56f71c=this['_imageElement'],_0xd6b2d=_0x56f71c['getAttribute']('uploadcareImageId'),_0x2b809e=_0x56f71c['getAttribute']('src');if(_0xd6b2d)await this['_loadImageInfo'](_0xd6b2d,_0x2b809e);else{if(this['_imageCache']['has'](_0x2b809e)){const _0x2561e0=this['_imageCache']['get'](_0x2b809e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2561e0['url'],this['imageDimension']=_0x2561e0['dimension'],this['imageId']=_0x2561e0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x25bcf2}=this['_editor'],t=_0x25bcf2['t'],_0xe572c=new X(_0x25bcf2,this['imageStatus'],this['_attributes']);_0xe572c['bind']('status')['to'](this,'imageStatus'),_0xe572c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xe572c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xe572c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xe572c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5abb25,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xe572c,'position':_0x5ebf6b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xe572c['focus']();},'onHide':()=>{_0xe572c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x58b3a9=>!Q(_0x58b3a9,_0xe572c['element'])}});}['_loadImageInfo'](_0xfc1b5,_0x310247){return j['getInfo'](_0xfc1b5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3f34eb=>{const {width:_0x23fbe7,height:_0x1d2e5d}=_0x3f34eb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x310247,this['imageDimension']={'width':_0x23fbe7,'height':_0x1d2e5d},this['imageId']=_0xfc1b5;})['catch'](_0x4714d3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4714d3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4335ea,_0x220a1f){return this['_getImageAsFile'](_0x4335ea)['then'](_0x17863f=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x220a1f['signal'],'file':_0x17863f,'onProgress':_0x114517=>{_0x114517&&_0x114517['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x114517['value']));}}))['then'](_0x1fd1a9=>{const {width:_0x5e6a95,height:_0x141336}=_0x1fd1a9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1fd1a9['cdnUrl'],this['imageDimension']={'width':_0x5e6a95,'height':_0x141336},this['imageId']=_0x1fd1a9['uuid'],this['imageUploadProgress']=null;const _0x171b80=_0x4335ea['getAttribute']('src');this['_imageCache']['set'](_0x171b80,{'id':_0x1fd1a9['uuid'],'url':_0x1fd1a9['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x549c6e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x549c6e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5f1a6e,_0x428a52){_0x5f1a6e['on']('apply',(_0x40ebd,_0x17e08)=>{this['_replaceImage'](_0x428a52,_0x17e08['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5f1a6e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5f1a6e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2323e4,_0x4d5998,_0xf7d6dc){const _0x3e9485=this['_editor'],{width:_0x2a2561,height:_0x30b194}=V(_0x4d5998,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x41abf,imageSources:_0x31ccf8}=C(_0x4d5998,_0x2a2561);_0x3e9485['model']['change'](_0x544b5e=>{if('$graveyard'===_0x2323e4['root']['rootName']){_0x3e9485['execute']('insertImage',{'imageType':_0x2323e4['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2323e4['getAttributes']()),'uploadcareImageId':_0xf7d6dc,'src':_0x41abf,'sources':_0x31ccf8,'width':_0x2a2561,'height':_0x30b194}});const _0x57ad28=_0x2323e4['getChildren']();_0x2323e4=_0x3e9485['model']['document']['selection']['getSelectedElement']();for(const _0x24cf6e of _0x57ad28)_0x544b5e['append'](_0x544b5e['cloneElement'](_0x24cf6e),_0x2323e4);}else _0x544b5e['setSelection'](_0x2323e4,'on'),_0x3e9485['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2323e4['getAttributes']()),'uploadcareImageId':_0xf7d6dc,'src':_0x41abf,'sources':_0x31ccf8,'width':_0x2a2561,'height':_0x30b194},_0x2323e4);_0x544b5e['setSelection'](_0x2323e4,'on');});}async['_getImageAsFile'](_0x32299d){const _0x30cb12=_0x2ec278['window'],_0x62f36f=_0x2ec278['document']['location']['href'],_0x66b7ce=new _0x30cb12['URL'](_0x32299d['getAttribute']('src'),_0x62f36f);if('data:'===_0x66b7ce['protocol']){const _0x216b51=_0x66b7ce['href']['split'](','),_0x484d30=_0x216b51[0x0]['match'](/:(.*?);/)[0x1],_0x56b235=_0x484d30['split']('/')[0x1],_0x51eba5=_0x30cb12['atob'](_0x216b51[_0x216b51['length']-0x1]);let _0x11c8a3=_0x51eba5['length'];const _0x4cd123=new _0x30cb12['Uint8Array'](_0x11c8a3);for(;_0x11c8a3--;)_0x4cd123[_0x11c8a3]=_0x51eba5['charCodeAt'](_0x11c8a3);return new _0x30cb12['File']([_0x4cd123],'image.'+_0x56b235,{'type':_0x484d30});}const _0x30ba0f=_0x66b7ce['href']['split']('/'),_0x389ce5=_0x30ba0f[_0x30ba0f['length']-0x1],_0x4fe371=_0x389ce5['split']('.')[0x1];return _0x30cb12['fetch'](_0x66b7ce['href'])['then'](_0xdce604=>_0xdce604['clone']()['blob']())['then'](_0x4bc52e=>new _0x30cb12['File']([_0x4bc52e],_0x389ce5,{'type':'image/'+_0x4fe371}));}}class N extends _0x3c77fd{['imageEditController'];static get['requires'](){return[_0x376964];}['_isEditable'];constructor(_0x10b0f4){super(_0x10b0f4),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3b9b05){const _0x2db499=z(_0x3b9b05);return _0x4ef893=>!(!_0x4ef893||!_0x4ef893['is']('element','imageBlock')&&!_0x4ef893['is']('element','imageInline'))&&(!!_0x4ef893['hasAttribute']('uploadcareImageId')||!!_0x4ef893['hasAttribute']('src')&&_0x2db499(_0x4ef893['getAttribute']('src')));}(_0x10b0f4['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3e7cca=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3e7cca);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2043f1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2043f1&&(_0x2043f1['is']('element','imageBlock')||_0x2043f1['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x376964),_0x2043f1),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3c77fd{['refresh'](){const _0x2782ef=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2782ef&&(_0x2782ef['is']('element','imageBlock')||_0x2782ef['is']('element','imageInline')));}['execute'](_0x12d821){const _0xcf6281=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1506e5=>{_0x1506e5['setAttributes'](_0x12d821,_0xcf6281),_0x1506e5['removeAttribute']('srcset',_0xcf6281),_0x1506e5['removeAttribute']('sizes',_0xcf6281);});}}class m extends _0x18110a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3e7bce,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x107074}=this;_0x107074['commands']['add']('uploadcareImageEdit',new N(_0x107074)),_0x107074['commands']['add']('uploadcareImageReplace',new O(_0x107074));}}class g extends _0x18110a{['_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 _0x1229c8=this['editor'];_0x1229c8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x151e12=>{const _0x3be2c5=_0x1229c8['commands']['get']('uploadcareImageEdit'),_0x57833e=new _0x19cf23(_0x151e12),t=_0x151e12['t'];return _0x57833e['set']({'icon':_0x5abb25,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x57833e['bind']('isEnabled')['to'](_0x3be2c5),_0x57833e['bind']('isOn')['to'](_0x3be2c5,'isActive'),this['listenTo'](_0x57833e,'execute',()=>{_0x1229c8['execute']('uploadcareImageEdit'),_0x1229c8['editing']['view']['focus']();}),_0x57833e;}),this['_initConfig']();}['_initConfig'](){const _0x431155=_0x33465e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x431155),this['listenTo'](this['editor'],'destroy',()=>{_0x431155['remove']();});}}class et extends _0x18110a{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": "47.3.0-alpha.
|
|
3
|
+
"version": "47.3.0-alpha.4",
|
|
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": "47.3.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "47.3.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "47.3.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "47.3.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "47.3.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "47.3.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "47.3.0-alpha.
|
|
33
|
-
"ckeditor5": "47.3.0-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "47.3.0-alpha.4",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "47.3.0-alpha.4",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "47.3.0-alpha.4",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "47.3.0-alpha.4",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "47.3.0-alpha.4",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "47.3.0-alpha.4",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "47.3.0-alpha.4",
|
|
33
|
+
"ckeditor5": "47.3.0-alpha.4",
|
|
34
34
|
"@uploadcare/file-uploader": "1.19.4",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x1e4165=_0x5345;(function(_0x3cc3a1,_0x171073){const _0x21bc3f=_0x5345,_0x45085e=_0x3cc3a1();while(!![]){try{const _0x3e35fc=-parseInt(_0x21bc3f(0x175))/0x1*(parseInt(_0x21bc3f(0x165))/0x2)+parseInt(_0x21bc3f(0x157))/0x3+parseInt(_0x21bc3f(0x18f))/0x4+-parseInt(_0x21bc3f(0x164))/0x5*(parseInt(_0x21bc3f(0x183))/0x6)+-parseInt(_0x21bc3f(0x198))/0x7*(-parseInt(_0x21bc3f(0x16d))/0x8)+-parseInt(_0x21bc3f(0x195))/0x9+parseInt(_0x21bc3f(0x189))/0xa;if(_0x3e35fc===_0x171073)break;else _0x45085e['push'](_0x45085e['shift']());}catch(_0xbbc21e){_0x45085e['push'](_0x45085e['shift']());}}}(_0x4137,0x62279));function _0x4137(){const _0x5cc97a=['show','linkHref','change','Replace','imageBlock','get','ctxElement','attributes','1491051aSIrWe','detail','uuid','_editor','EDITOR_TOP_CENTER','addEventListener','imageInline','document','uploadCare','length','execute','source-list','model','4195YvRUzI','950wqkRRW','editing','setAttribute','plugins','imageInfo','_api','configElement','selection','8cHiCHb','idle','doneFlow','_editing','removeAllFiles','destroy','removeSelectionAttribute','allEntries','147zuvwvh','_insertImage','Local','setSelection','status','setCurrentActivity','_formView','_type','initFlow','done-click','image','element','stopListening','text','4878MLocOn','stopDelegating','getSelectedElement','width','getLastPosition','getOutputCollectionState','6061550jtHnRo','_initListeners','_insertAsset','_initDialog','view','getAPI','640900DaMjoc','focus','ucContextId','isOpen','_dialog','insertImage','2750868BYfYXE','hide','Insert','1373596dwebkt'];_0x4137=function(){return _0x5cc97a;};return _0x4137();}import{IconUploadcareImageUpload as _0x30f7c7}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x3fa1b5}from'ckeditor5/src/utils.js';import{Dialog as _0x3dff47,DialogViewPosition as _0x3e364d}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x43507e}from'./uploadcareformview.js';import{UploadcareSource as _0x1a060c}from'../uploadcareconfig.js';import{getTranslation as _0x1b9c3b}from'../utils/common-translations.js';import{getImageUrls as _0x204936,getImageDimension as _0x5f4f52}from'../utils/editingutils.js';function _0x5345(_0x3fe32c,_0x9c93ac){const _0x4137e8=_0x4137();return _0x5345=function(_0x53450e,_0x561f80){_0x53450e=_0x53450e-0x152;let _0x3fc03f=_0x4137e8[_0x53450e];return _0x3fc03f;},_0x5345(_0x3fe32c,_0x9c93ac);}import{isAncestor as _0x20021b}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3fa1b5(){[_0x1e4165(0x15a)];[_0x1e4165(0x193)];[_0x1e4165(0x170)];[_0x1e4165(0x16a)];[_0x1e4165(0x17c)]=null;[_0x1e4165(0x17b)]=null;constructor(_0x24185a,_0x507bb9,_0x1c5b41){const _0x3a83cd=_0x1e4165;super(),this[_0x3a83cd(0x15a)]=_0x24185a,this[_0x3a83cd(0x170)]=_0x507bb9,this[_0x3a83cd(0x193)]=_0x24185a[_0x3a83cd(0x168)][_0x3a83cd(0x154)](_0x3dff47),this[_0x3a83cd(0x16a)]=_0x507bb9[_0x3a83cd(0x155)][_0x3a83cd(0x18e)](),this[_0x3a83cd(0x17c)]=_0x1c5b41,this[_0x3a83cd(0x170)][_0x3a83cd(0x16b)][_0x3a83cd(0x167)](_0x3a83cd(0x162),this[_0x3a83cd(0x17c)]),this[_0x3a83cd(0x18c)](),this[_0x3a83cd(0x18a)](),this[_0x3a83cd(0x16a)][_0x3a83cd(0x17d)]();}[_0x1e4165(0x172)](){const _0x3dde87=_0x1e4165;this[_0x3dde87(0x17b)]&&(this[_0x3dde87(0x17b)][_0x3dde87(0x172)](),this[_0x3dde87(0x17b)]=null),this[_0x3dde87(0x16a)]&&this[_0x3dde87(0x16a)][_0x3dde87(0x16f)](),this[_0x3dde87(0x181)](),this[_0x3dde87(0x184)]();}[_0x1e4165(0x18c)](){const _0x1bbe71=_0x1e4165,{locale:_0x290979,model:_0x3b8965}=this[_0x1bbe71(0x15a)],_0xf5d33a=_0x3b8965[_0x1bbe71(0x15e)][_0x1bbe71(0x16c)][_0x1bbe71(0x185)](),_0x2088c1=_0xf5d33a&&(_0xf5d33a['is'](_0x1bbe71(0x180),_0x1bbe71(0x153))||_0xf5d33a['is'](_0x1bbe71(0x180),_0x1bbe71(0x15d)));this[_0x1bbe71(0x17b)]=new _0x43507e(_0x290979,this[_0x1bbe71(0x170)][_0x1bbe71(0x191)]),this[_0x1bbe71(0x193)][_0x1bbe71(0x199)]({'id':_0x1bbe71(0x15f),'icon':_0x30f7c7,'title':_0x1b9c3b(_0x290979,this[_0x1bbe71(0x17c)],_0x2088c1?_0x1bbe71(0x152):_0x1bbe71(0x197))[_0x1bbe71(0x182)],'content':this[_0x1bbe71(0x17b)],'position':_0x3e364d[_0x1bbe71(0x15b)],'isModal':!0x0,'onShow':()=>{const _0x3d3b0b=_0x1bbe71;this[_0x3d3b0b(0x17b)][_0x3d3b0b(0x190)]();},'onHide':()=>{const _0x3ad61f=_0x1bbe71;this[_0x3ad61f(0x16a)][_0x3ad61f(0x171)](),this[_0x3ad61f(0x15a)][_0x3ad61f(0x166)][_0x3ad61f(0x18d)][_0x3ad61f(0x190)](),this[_0x3ad61f(0x172)]();},'keystrokeHandlerOptions':{'filter':_0x3bd545=>!_0x20021b(_0x3bd545,this[_0x1bbe71(0x17b)][_0x1bbe71(0x180)])}});}[_0x1e4165(0x18a)](){const _0x12b46d=_0x1e4165;this[_0x12b46d(0x170)][_0x12b46d(0x155)][_0x12b46d(0x15c)](_0x12b46d(0x17e),()=>{const _0xbbfaf5=_0x12b46d,{allEntries:_0x452fdd}=this[_0xbbfaf5(0x16a)][_0xbbfaf5(0x188)]();this[_0xbbfaf5(0x15a)][_0xbbfaf5(0x163)][_0xbbfaf5(0x19b)](_0x5e2e6d=>{const _0x27cec2=_0xbbfaf5,_0x3986b2=_0x452fdd[_0x27cec2(0x160)];for(const _0x28f537 of _0x452fdd){const _0x19f746=_0x28f537===_0x452fdd[_0x3986b2-0x1],{cdnUrl:_0x11c784,fileInfo:_0x256157}=_0x28f537;if(!_0x11c784||!_0x256157)continue;const {width:_0x3f8a87,height:_0x242f23}=_0x256157[_0x27cec2(0x169)],_0x4036bc=_0x5f4f52(_0x11c784,_0x3f8a87,_0x242f23),_0x383806=_0x204936(_0x11c784,_0x4036bc[_0x27cec2(0x186)]),_0x1101fb={'id':_0x256157[_0x27cec2(0x159)],'type':_0x27cec2(0x17f),'attributes':{'imageDimension':_0x4036bc,..._0x383806}};this[_0x27cec2(0x18b)](_0x1101fb,_0x19f746,_0x5e2e6d);}}),this[_0xbbfaf5(0x193)][_0xbbfaf5(0x196)]();}),this[_0x12b46d(0x170)][_0x12b46d(0x155)][_0x12b46d(0x15c)](_0x12b46d(0x19b),_0x187d0d=>{const _0x1d4ab4=_0x12b46d;_0x1d4ab4(0x16e)===_0x187d0d[_0x1d4ab4(0x158)][_0x1d4ab4(0x179)]&&!_0x187d0d[_0x1d4ab4(0x158)][_0x1d4ab4(0x174)][_0x1d4ab4(0x160)]&&this[_0x1d4ab4(0x193)][_0x1d4ab4(0x192)]&&(this[_0x1d4ab4(0x17c)]===_0x1a060c[_0x1d4ab4(0x177)]?this[_0x1d4ab4(0x16a)][_0x1d4ab4(0x17a)](_0x1a060c[_0x1d4ab4(0x177)]):this[_0x1d4ab4(0x16a)][_0x1d4ab4(0x17d)]());});}[_0x1e4165(0x18b)](_0x2df61d,_0x36d819,_0x5fe856){const _0x3b169d=_0x1e4165,_0x2fe892=this[_0x3b169d(0x15a)][_0x3b169d(0x163)][_0x3b169d(0x15e)][_0x3b169d(0x16c)],_0x10aee9=_0x2fe892[_0x3b169d(0x185)](),_0x25e3a4=!(!_0x10aee9||!_0x10aee9['is'](_0x3b169d(0x180),_0x3b169d(0x15d)));_0x5fe856[_0x3b169d(0x173)](_0x3b169d(0x19a)),this[_0x3b169d(0x176)](_0x2df61d,_0x25e3a4),_0x36d819||_0x5fe856[_0x3b169d(0x178)](_0x2fe892[_0x3b169d(0x187)]());}[_0x1e4165(0x176)](_0x47dbae,_0x1d28f5){const _0x41121a=_0x1e4165,_0x1e577c=this[_0x41121a(0x15a)],{imageDimension:_0x74add9,imageFallbackUrl:_0x5156a1,imageSources:_0x255832}=_0x47dbae[_0x41121a(0x156)];_0x1e577c[_0x41121a(0x161)](_0x41121a(0x194),{'imageType':_0x1d28f5?_0x41121a(0x15d):null,'source':{'uploadcareImageId':_0x47dbae['id'],'src':_0x5156a1,'sources':_0x255832,..._0x74add9}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3c29d0=_0x4bf1;function _0x4f4d(){var _0x5ad1fc=['12XwISjz','904389pEEaKY','16twhQmZ','329795gMCoPX','2ZnCOOf','ck-reset_all-excluded','ck-uploadcare-theme','750343nzqxWQ','uc-light','132jUBSDe','1531565yISacu','getFocusableElement','48vsLCmw','uploader-','focus','setTemplate','132993xjlRGO','ck-uploadcare-form','uc-file-uploader-inline','element','5157330xwvRMi','9011420NwGZIt','div'];_0x4f4d=function(){return _0x5ad1fc;};return _0x4f4d();}(function(_0x1ffc02,_0x244236){var _0x157246=_0x4bf1,_0x181e2b=_0x1ffc02();while(!![]){try{var _0x2f320d=-parseInt(_0x157246(0x1be))/0x1*(parseInt(_0x157246(0x1c1))/0x2)+parseInt(_0x157246(0x1ba))/0x3+parseInt(_0x157246(0x1bf))/0x4*(-parseInt(_0x157246(0x1c0))/0x5)+-parseInt(_0x157246(0x1bd))/0x6*(-parseInt(_0x157246(0x1c7))/0x7)+parseInt(_0x157246(0x1c9))/0x8*(parseInt(_0x157246(0x1cd))/0x9)+-parseInt(_0x157246(0x1bb))/0xa+-parseInt(_0x157246(0x1c4))/0xb*(-parseInt(_0x157246(0x1c6))/0xc);if(_0x2f320d===_0x244236)break;else _0x181e2b['push'](_0x181e2b['shift']());}catch(_0xde2f1){_0x181e2b['push'](_0x181e2b['shift']());}}}(_0x4f4d,0xe2282));import{DialogFocusManagerView as _0x40aecf}from'../utils/dialogfocusmanagerview.js';function _0x4bf1(_0x482f7b,_0x524f4c){var _0x4f4d35=_0x4f4d();return _0x4bf1=function(_0x4bf1c6,_0xd2a5a9){_0x4bf1c6=_0x4bf1c6-0x1b7;var _0x31f916=_0x4f4d35[_0x4bf1c6];return _0x31f916;},_0x4bf1(_0x482f7b,_0x524f4c);}import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x40aecf{constructor(_0x20e1e9,_0x494da8){var _0x338d99=_0x4bf1;super(_0x20e1e9),this[_0x338d99(0x1cc)]({'tag':_0x338d99(0x1bc),'attributes':{'class':['ck',_0x338d99(0x1c2),_0x338d99(0x1b7)],'tabindex':'-1'},'children':[{'tag':_0x338d99(0x1b8),'attributes':{'class':[_0x338d99(0x1c5),_0x338d99(0x1c3)],'ctx-name':_0x338d99(0x1ca)+_0x494da8}},this[_0x338d99(0x1c8)]()]});}[_0x3c29d0(0x1cb)](){var _0x2f49a4=_0x3c29d0;this[_0x2f49a4(0x1b9)][_0x2f49a4(0x1cb)]();}}
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1ae589=_0xb9ad;(function(_0x54ec6d,_0x5d9162){const _0x502aeb=_0xb9ad,_0x21fae4=_0x54ec6d();while(!![]){try{const _0x1a3170=parseInt(_0x502aeb(0xe7))/0x1+-parseInt(_0x502aeb(0xc5))/0x2+-parseInt(_0x502aeb(0x102))/0x3+-parseInt(_0x502aeb(0xbe))/0x4+-parseInt(_0x502aeb(0xdf))/0x5*(parseInt(_0x502aeb(0xbb))/0x6)+parseInt(_0x502aeb(0xbd))/0x7*(-parseInt(_0x502aeb(0x101))/0x8)+parseInt(_0x502aeb(0xc6))/0x9*(parseInt(_0x502aeb(0xb7))/0xa);if(_0x1a3170===_0x5d9162)break;else _0x21fae4['push'](_0x21fae4['shift']());}catch(_0x50e15e){_0x21fae4['push'](_0x21fae4['shift']());}}}(_0x15e4,0x73465));import{Plugin as _0x2d3f89}from'ckeditor5/src/core.js';function _0xb9ad(_0x3346fd,_0x12588d){const _0x15e4b2=_0x15e4();return _0xb9ad=function(_0xb9ad98,_0x43d31c){_0xb9ad98=_0xb9ad98-0xae;let _0x5db6a9=_0x15e4b2[_0xb9ad98];return _0x5db6a9;},_0xb9ad(_0x3346fd,_0x12588d);}import{Dialog as _0x24ca33}from'ckeditor5/src/ui.js';import{createElement as _0x256706,global as _0x55fafd,uid as _0x5d6555}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4eb190}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2095f4}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x426e71}from'./utils/editingutils.js';function _0x15e4(){const _0x442eca=['21954CiWcIH','extend','1083859sBpvUa','2875048zPAWPB','PictureEditing','config','render','uploadcare','isPremiumPlugin','getSelectedElement','317454rKExWY','18395577SuJbjd','_configElement','add','uploader-','view','uploadcareImageId','true','once','get','editing','init','iconHrefResolver','_ctxElement','UploadcareEditing','locale','downcast','ucContextId','join','commands','upcast','uc-upload-ctx-provider','editor','document','for','map','445uIWvrH','appendChild','_initConfig','#uc-icon-arrow-down','imageInline','contentLanguage','_initCtx','ctxElement','832852cQATGt','querySelector','attributeToAttribute','uploadcare.uploader','insertImage','input[uploadcare-file-input]','href','replaceImageSource','requires','destroy','_initSchema','uc-config','\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','_initConversion','execute','body','selection','model','cleanupImage','closeMax','afterInit','uploadcare.pubkey','getAttribute','uploadcareImageReplace','listenTo','fromCharCode','48tsyTxC','817434MSqdRl','remove','isOfficialPlugin','pluginName','removeAttribute','elementToAttribute','imageBlock','_initImageProcessingIndicator','conversion','data-uc-image-id','10xVQzge','schema','configElement','isRegistered'];_0x15e4=function(){return _0x442eca;};return _0x15e4();}export class UploadcareEditing extends _0x2d3f89{[_0x1ae589(0xc7)]=null;[_0x1ae589(0xd2)]=null;static get[_0x1ae589(0xb0)](){const _0x26a375=_0x1ae589;return _0x26a375(0xd3);}static get[_0x1ae589(0xef)](){const _0x2017aa=_0x1ae589;return[_0x2017aa(0xbf),_0x2095f4,_0x24ca33];}static get[_0x1ae589(0xaf)](){return!0x0;}static get[_0x1ae589(0xc3)](){return!0x0;}[_0x1ae589(0xd6)];get[_0x1ae589(0xb9)](){const _0x355f23=_0x1ae589;return this[_0x355f23(0xc7)];}get[_0x1ae589(0xe6)](){const _0x13c643=_0x1ae589;return this[_0x13c643(0xd2)];}constructor(_0x561c9a){const _0x49fd87=_0x1ae589;super(_0x561c9a),this[_0x49fd87(0xd6)]=_0x5d6555();}[_0x1ae589(0xd0)](){const _0x516a32=_0x1ae589,_0x1f046e=this[_0x516a32(0xdb)];_0x1f046e[_0x516a32(0xd8)][_0x516a32(0xc8)](_0x516a32(0xc2),new _0x4eb190(_0x1f046e));}[_0x1ae589(0xfb)](){const _0x40d7e3=_0x1ae589;this[_0x40d7e3(0xf1)](),this[_0x40d7e3(0xf4)](),this[_0x40d7e3(0xe1)](),this[_0x40d7e3(0xe5)](),this[_0x40d7e3(0xb4)](),this[_0x40d7e3(0xff)](this[_0x40d7e3(0xdb)],_0x40d7e3(0xf0),()=>{const _0x490e77=_0x40d7e3;this[_0x490e77(0xc7)]&&(this[_0x490e77(0xc7)][_0x490e77(0xae)](),this[_0x490e77(0xc7)]=null),this[_0x490e77(0xd2)]&&(this[_0x490e77(0xd2)][_0x490e77(0xae)](),this[_0x490e77(0xd2)]=null);const _0x49559b=_0x55fafd[_0x490e77(0xdc)][_0x490e77(0xe8)](_0x490e77(0xec));_0x49559b&&_0x49559b[_0x490e77(0xae)]();}),async function(_0xa50861){const _0x593ba6=_0x5ec48c([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x69faae=0x535f8c3a,_0x4fce47=0x5358f642^_0x69faae,_0x25f83c=window[_0x5ec48c([0x44,0x61,0x74,0x65])][_0x5ec48c([0x6e,0x6f,0x77])](),_0x2a1430=_0xa50861[_0x5ec48c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1fc6e1=new window[(_0x5ec48c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fe6f2=>{_0x2a1430[_0x5ec48c([0x6f,0x6e,0x63,0x65])](_0x5ec48c([0x72,0x65,0x61,0x64,0x79]),_0x4fe6f2);}),_0x92e777={[_0x5ec48c([0x6b,0x74,0x79])]:_0x5ec48c([0x45,0x43]),[_0x5ec48c([0x75,0x73,0x65])]:_0x5ec48c([0x73,0x69,0x67]),[_0x5ec48c([0x63,0x72,0x76])]:_0x5ec48c([0x50,0x2d,0x32,0x35,0x36]),[_0x5ec48c([0x78])]:_0x5ec48c([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]),[_0x5ec48c([0x79])]:_0x5ec48c([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]),[_0x5ec48c([0x61,0x6c,0x67])]:_0x5ec48c([0x45,0x53,0x32,0x35,0x36])},_0x3be18d=_0x2a1430[_0x5ec48c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5ec48c([0x67,0x65,0x74])](_0x5ec48c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4f6db9(){let _0x5d5685,_0x37673d=null,_0x2e97b3=null;try{if(_0x3be18d==_0x5ec48c([0x47,0x50,0x4c]))return _0x5ec48c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5d5685=_0x154748(),!_0x5d5685)return _0x5ec48c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5d5685[_0x5ec48c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e97b3=_0x1c4def(_0x5d5685[_0x5ec48c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5d5685[_0x5ec48c([0x6a,0x74,0x69])])),await _0x451905()?_0x153d1b()?_0x16ed68()?_0x5ec48c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3a8255()?(_0x5d5685[_0x5ec48c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ec48c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x37673d=_0x43c5f5(_0x5ec48c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5d5685[_0x5ec48c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ec48c([0x74,0x72,0x69,0x61,0x6c])&&(_0x37673d=_0x43c5f5(_0x5ec48c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5525ae()):_0x5ec48c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5ec48c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5ec48c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5ec48c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x16ed68(){const _0x11700d=[_0x5ec48c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5ec48c([0x74,0x72,0x69,0x61,0x6c])][_0x5ec48c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d5685[_0x5ec48c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x25f83c/0x3e8:0xe10*_0x4fce47;return _0x5d5685[_0x5ec48c([0x65,0x78,0x70])]<_0x11700d;}function _0x153d1b(){const _0x227c58=_0x5d5685[_0x5ec48c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x227c58&&(!!_0x227c58[_0x5ec48c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ec48c([0x2a]))||!!_0x227c58[_0x5ec48c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ec48c([0x55,0x50,0x4c,0x43])));}function _0x3a8255(){const _0x73c6e=_0xb9ad,_0xe0a6b=_0x5d5685[_0x5ec48c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe0a6b||0x0==_0xe0a6b[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x293a28}=new URL(window[_0x5ec48c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x73c6e(0xed)]);if(_0xe0a6b[_0x5ec48c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x293a28))return!0x0;const _0x562527=_0x293a28[_0x5ec48c([0x73,0x70,0x6c,0x69,0x74])](_0x5ec48c([0x2e]));return _0xe0a6b[_0x5ec48c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c1585=>_0x2c1585[_0x5ec48c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ec48c([0x2a])))[_0x5ec48c([0x6d,0x61,0x70])](_0x4ec045=>_0x4ec045[_0x5ec48c([0x73,0x70,0x6c,0x69,0x74])](_0x5ec48c([0x2e])))[_0x5ec48c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5560bf=>_0x5560bf[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x562527[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ec48c([0x6d,0x61,0x70])](_0x2f4c6a=>Array(_0x562527[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2f4c6a[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ec48c([0x66,0x69,0x6c,0x6c])](_0x2f4c6a[0x0]===_0x5ec48c([0x2a])?_0x5ec48c([0x2a]):'')[_0x5ec48c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2f4c6a))[_0x5ec48c([0x73,0x6f,0x6d,0x65])](_0x5ddb75=>_0x562527[_0x5ec48c([0x65,0x76,0x65,0x72,0x79])]((_0x392fe2,_0x4e4f8f)=>_0x5ddb75[_0x4e4f8f]===_0x392fe2||_0x5ddb75[_0x4e4f8f]===_0x5ec48c([0x2a])));}function _0x5525ae(){return _0x37673d&&_0x2e97b3?new window[(_0x5ec48c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x558741,_0x22fc7e)=>{_0x37673d[_0x5ec48c([0x74,0x68,0x65,0x6e])](_0x558741,_0x22fc7e),_0x2e97b3[_0x5ec48c([0x74,0x68,0x65,0x6e])](_0x2003ff=>{_0x2003ff!=_0x5ec48c([0x56,0x61,0x6c,0x69,0x64])&&_0x558741(_0x2003ff);},_0x22fc7e);}):_0x37673d||_0x2e97b3||_0x5ec48c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c4def(_0x512c38,_0x1e3326){return new window[(_0x5ec48c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1656d9=>{if(_0x4f5da6())return _0x1656d9(_0x5ec48c([0x56,0x61,0x6c,0x69,0x64]));_0x2e25f8(),_0x2a1430[_0x5ec48c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5ec48c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x100b93=!0x1;const _0x51b70a=_0x5d6555();function _0x2cc310(_0x6b1738){return!!_0x6b1738&&(typeof _0x6b1738===_0x5ec48c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6b1738===_0x5ec48c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6b1738[_0x5ec48c([0x74,0x68,0x65,0x6e])]===_0x5ec48c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6b1738[_0x5ec48c([0x63,0x61,0x74,0x63,0x68])]===_0x5ec48c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5b9a56(_0xa75205){_0x209a64(_0xa75205)[_0x5ec48c([0x74,0x68,0x65,0x6e])](_0x379f9a=>{if(!_0x379f9a||_0x379f9a[_0x5ec48c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5ec48c([0x6f,0x6b]))return _0x5ec48c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x30fcdf(_0x4979b7(_0x51b70a+_0x1e3326))!=_0x379f9a[_0x5ec48c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5ec48c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5ec48c([0x56,0x61,0x6c,0x69,0x64]);})[_0x5ec48c([0x74,0x68,0x65,0x6e])](_0x82d72f=>(_0x1bfa3c(),_0x82d72f),()=>{const _0x3a5493=_0x7dff0b();return null==_0x3a5493?(_0x1bfa3c(),_0x5ec48c([0x56,0x61,0x6c,0x69,0x64])):_0x5ec48c(_0x25f83c-_0x3a5493>(0x7753083a^_0x69faae)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5ec48c([0x74,0x68,0x65,0x6e])](_0x1656d9)[_0x5ec48c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1656d9(_0x5ec48c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x54ec09=0x536962ba^_0x69faae;function _0x1bfa3c(){const _0x3be837=_0x5ec48c([0x6c,0x6c,0x63,0x74,0x2d])+_0x30fcdf(_0x4979b7(_0x512c38)),_0x4c2074=_0x409d09(_0x30fcdf(window[_0x5ec48c([0x4d,0x61,0x74,0x68])][_0x5ec48c([0x63,0x65,0x69,0x6c])](_0x25f83c/_0x54ec09)));window[_0x5ec48c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ec48c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3be837,_0x4c2074);}function _0x7dff0b(){const _0x59757e=_0x5ec48c([0x6c,0x6c,0x63,0x74,0x2d])+_0x30fcdf(_0x4979b7(_0x512c38)),_0x476f88=window[_0x5ec48c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ec48c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59757e);return _0x476f88?window[_0x5ec48c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x409d09(_0x476f88),0x10)*_0x54ec09:null;}function _0x209a64(_0x27cbae){return new window[(_0x5ec48c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15ff38,_0x1a13f0)=>{_0x27cbae[_0x5ec48c([0x74,0x68,0x65,0x6e])](_0x15ff38,_0x1a13f0),window[_0x5ec48c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1a13f0,0x535e58fa^_0x69faae);});}}_0x2a1430[_0x5ec48c([0x6f,0x6e])](_0x5ec48c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc1ae9c,_0x34d20d)=>{if(_0x34d20d[0x0]!=_0x512c38)return _0x1656d9(_0x5ec48c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34d20d[0x1]={..._0x34d20d[0x1],[_0x5ec48c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x51b70a};},{[_0x5ec48c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ec48c([0x68,0x69,0x67,0x68])}),_0x2a1430[_0x5ec48c([0x6f,0x6e])](_0x5ec48c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4da787=>{_0x2cc310(_0x4da787[_0x5ec48c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x100b93=!0x0,_0x5b9a56(_0x4da787[_0x5ec48c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5ec48c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ec48c([0x6c,0x6f,0x77])}),_0x1fc6e1[_0x5ec48c([0x74,0x68,0x65,0x6e])](()=>{_0x100b93||_0x1656d9(_0x5ec48c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4f5da6(){return _0x2a1430[_0x5ec48c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ec48c([0x76,0x69,0x65,0x77])][_0x5ec48c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5ec48c([0x61,0x75,0x74,0x6f]);}function _0x2e25f8(){_0x2a1430[_0x5ec48c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ec48c([0x76,0x69,0x65,0x77])][_0x5ec48c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ec48c([0x61,0x75,0x74,0x6f]);}}function _0x43c5f5(_0x10c556){const _0x3eb9c6=[new window[(_0x5ec48c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a46e9=>setTimeout(_0x1a46e9,0x5356b2f6^_0x69faae)),_0x1fc6e1[_0x5ec48c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5ec48c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40c8ea=>{let _0x5606c5=0x0;_0x2a1430[_0x5ec48c([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ec48c([0x6f,0x6e])](_0x5ec48c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3844bf,_0x396340)=>{_0x396340[0x0][_0x5ec48c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5606c5++,_0x5606c5==(0x535f8dc2^_0x69faae)&&(_0x40c8ea(),_0x3844bf[_0x5ec48c([0x6f,0x66,0x66])]());});}))];return window[_0x5ec48c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ec48c([0x72,0x61,0x63,0x65])](_0x3eb9c6)[_0x5ec48c([0x74,0x68,0x65,0x6e])](()=>_0x10c556);}async function _0x55eb7b(){await _0x1fc6e1,_0x2a1430[_0x5ec48c([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ec48c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x389f27,_0x2a1430[_0x5ec48c([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ec48c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x389f27,_0x2a1430[_0x5ec48c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5ec48c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3e8dcf(_0x39311d){const _0x4776bf=_0x48ee05();_0x2a1430[_0x4776bf]=_0x5ec48c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x39311d,_0x39311d!=_0x5ec48c([0x56,0x61,0x6c,0x69,0x64])&&_0x55eb7b();}function _0x48ee05(){const _0x4ef324=window[_0x5ec48c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5ec48c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5ec48c([0x6e,0x6f,0x77])]())[_0x5ec48c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5ec48c([0x2e]),'');let _0x4a18fa=_0x5ec48c([0x68]);for(let _0x3b9c43=0x0;_0x3b9c43<_0x4ef324[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b9c43+=0x2){let _0x5136cf=window[_0x5ec48c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ef324[_0x5ec48c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b9c43,_0x3b9c43+0x2));_0x5136cf>=_0x593ba6[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5136cf-=_0x593ba6[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a18fa+=_0x593ba6[_0x5136cf];}return _0x4a18fa;}function _0x154748(){const _0x17f551=_0x3be18d[_0x5ec48c([0x73,0x70,0x6c,0x69,0x74])](_0x5ec48c([0x2e]));if(0x3!=_0x17f551[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d710e(_0x17f551[0x1]);function _0x1d710e(_0x3881b8){const _0x4df458=_0x3bf9de(_0x3881b8);return _0x4df458&&_0x191e55()?_0x4df458:null;function _0x191e55(){const _0x5afaac=_0x4df458[_0x5ec48c([0x6a,0x74,0x69])],_0x32b5e7=window[_0x5ec48c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5afaac[_0x5ec48c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5afaac[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57e900={..._0x4df458,[_0x5ec48c([0x6a,0x74,0x69])]:_0x5afaac[_0x5ec48c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5afaac[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57e900[_0x5ec48c([0x76,0x63])],_0x4979b7(_0x57e900)==_0x32b5e7;}}}async function _0x451905(){let _0x31a77a=!0x0;try{const _0x483e08=_0x3be18d[_0x5ec48c([0x73,0x70,0x6c,0x69,0x74])](_0x5ec48c([0x2e])),[_0x47013b,_0x502e81,_0x37a795]=_0x483e08;return _0x58839a(_0x47013b),await _0x2b80d3(_0x47013b,_0x502e81,_0x37a795),_0x31a77a;}catch{return!0x1;}function _0x58839a(_0x13148b){const _0x13681f=_0x3bf9de(_0x13148b);_0x13681f&&_0x13681f[_0x5ec48c([0x61,0x6c,0x67])]==_0x5ec48c([0x45,0x53,0x32,0x35,0x36])||(_0x31a77a=!0x1);}async function _0x2b80d3(_0x33c3cb,_0x5622c6,_0x461391){const _0x3f1b74=window[_0x5ec48c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5ec48c([0x66,0x72,0x6f,0x6d])](_0x56e382(_0x461391),_0x174ee7=>_0x174ee7[_0x5ec48c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2fbfb8=new window[(_0x5ec48c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5ec48c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x33c3cb+_0x5ec48c([0x2e])+_0x5622c6),_0x1552f8=window[_0x5ec48c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5ec48c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1552f8)return;const _0x33a32a=await _0x1552f8[_0x5ec48c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5ec48c([0x6a,0x77,0x6b]),_0x92e777,{[_0x5ec48c([0x6e,0x61,0x6d,0x65])]:_0x5ec48c([0x45,0x43,0x44,0x53,0x41]),[_0x5ec48c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5ec48c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5ec48c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1552f8[_0x5ec48c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5ec48c([0x6e,0x61,0x6d,0x65])]:_0x5ec48c([0x45,0x43,0x44,0x53,0x41]),[_0x5ec48c([0x68,0x61,0x73,0x68])]:{[_0x5ec48c([0x6e,0x61,0x6d,0x65])]:_0x5ec48c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x33a32a,_0x3f1b74,_0x2fbfb8)||(_0x31a77a=!0x1);}}function _0x3bf9de(_0x5badca){return _0x5badca[_0x5ec48c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5ec48c([0x65,0x79]))?JSON[_0x5ec48c([0x70,0x61,0x72,0x73,0x65])](_0x56e382(_0x5badca)):null;}function _0x56e382(_0x5e1cf8){return window[_0x5ec48c([0x61,0x74,0x6f,0x62])](_0x5e1cf8[_0x5ec48c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5ec48c([0x2b]))[_0x5ec48c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5ec48c([0x2f])));}function _0x4979b7(_0x4efcfd){let _0x320848=0x1505;function _0x28f7b2(_0x578cee){for(let _0x11effd=0x0;_0x11effd<_0x578cee[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11effd++){const _0x43213c=_0x578cee[_0x5ec48c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x11effd);_0x320848=(_0x320848<<0x5)+_0x320848+_0x43213c,_0x320848&=_0x320848;}}function _0x40a7ab(_0x14767d){Array[_0x5ec48c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x14767d)?_0x14767d[_0x5ec48c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x40a7ab):_0x14767d&&typeof _0x14767d==_0x5ec48c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5ec48c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x14767d)[_0x5ec48c([0x73,0x6f,0x72,0x74])]()[_0x5ec48c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x8836a4,_0x14e296])=>{_0x28f7b2(_0x8836a4),_0x40a7ab(_0x14e296);}):_0x28f7b2(window[_0x5ec48c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x14767d));}return _0x40a7ab(_0x4efcfd),_0x320848>>>0x0;}function _0x30fcdf(_0x3755e8){return _0x3755e8[_0x5ec48c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5ec48c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5ec48c([0x30]));}function _0x409d09(_0x3f4e6f){return _0x3f4e6f[_0x5ec48c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5ec48c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5ec48c([0x6a,0x6f,0x69,0x6e])]('');}function _0x389f27(){}function _0x5ec48c(_0x1cacfd){const _0x387897=_0xb9ad;return _0x1cacfd[_0x387897(0xde)](_0x169eca=>String[_0x387897(0x100)](_0x169eca))[_0x387897(0xd7)]('');}_0x3e8dcf(await _0x4f6db9());}(this);}[_0x1ae589(0xf1)](){const _0x2e8190=_0x1ae589,_0x20a093=this[_0x2e8190(0xdb)][_0x2e8190(0xf8)][_0x2e8190(0xb8)];_0x20a093[_0x2e8190(0xba)](_0x2e8190(0xb3))&&_0x20a093[_0x2e8190(0xbc)](_0x2e8190(0xb3),{'allowAttributes':[_0x2e8190(0xcb)]}),_0x20a093[_0x2e8190(0xba)](_0x2e8190(0xe3))&&_0x20a093[_0x2e8190(0xbc)](_0x2e8190(0xe3),{'allowAttributes':[_0x2e8190(0xcb)]});}[_0x1ae589(0xf4)](){const _0x5782ef=_0x1ae589,_0x44dd1e=this[_0x5782ef(0xdb)];_0x44dd1e[_0x5782ef(0xb5)][_0x5782ef(0xdd)](_0x5782ef(0xd5))[_0x5782ef(0xe9)]({'model':_0x5782ef(0xcb),'view':_0x5782ef(0xb6)}),_0x44dd1e[_0x5782ef(0xb5)][_0x5782ef(0xdd)](_0x5782ef(0xd9))[_0x5782ef(0xb2)]({'model':{'key':_0x5782ef(0xcb),'value':_0x128a78=>_0x128a78[_0x5782ef(0xfd)](_0x5782ef(0xb6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x502a5b=_0x44dd1e[_0x5782ef(0xd8)][_0x5782ef(0xce)](_0x5782ef(0xee));_0x502a5b&&this[_0x5782ef(0xff)](_0x502a5b,_0x5782ef(0xf9),(_0x3e5f5c,[_0x176d3f,_0x44d20c])=>{const _0x54cef9=_0x5782ef;_0x176d3f[_0x54cef9(0xb1)](_0x54cef9(0xcb),_0x44d20c);});}[_0x1ae589(0xe1)](){const _0x2d1d33=_0x1ae589,_0x128f2c=this[_0x2d1d33(0xdb)][_0x2d1d33(0xc0)][_0x2d1d33(0xce)](_0x2d1d33(0xea))||{},_0x2a66dd=this[_0x2d1d33(0xdb)][_0x2d1d33(0xc0)][_0x2d1d33(0xce)](_0x2d1d33(0xfc))||'';this[_0x2d1d33(0xc7)]=_0x256706(_0x55fafd[_0x2d1d33(0xdc)],_0x2d1d33(0xf2),{..._0x128f2c,'pubkey':_0x2a66dd,'ctx-name':_0x2d1d33(0xc9)+this[_0x2d1d33(0xd6)],'sourceList':'','imgOnly':_0x2d1d33(0xcc),'removeCopyright':_0x2d1d33(0xcc),'localeName':this[_0x2d1d33(0xdb)][_0x2d1d33(0xd4)][_0x2d1d33(0xe4)],'externalSourcesEmbedCss':_0x2d1d33(0xf3)}),this[_0x2d1d33(0xc7)][_0x2d1d33(0xd1)]=_0x2b0caa=>{const _0x4471da=_0x2d1d33;if(_0x4471da(0xfa)==_0x2b0caa)return _0x4471da(0xe2);},_0x55fafd[_0x2d1d33(0xdc)][_0x2d1d33(0xf6)][_0x2d1d33(0xe0)](this[_0x2d1d33(0xc7)]);}[_0x1ae589(0xe5)](){const _0x75d549=_0x1ae589;this[_0x75d549(0xd2)]=_0x256706(_0x55fafd[_0x75d549(0xdc)],_0x75d549(0xda),{'ctx-name':_0x75d549(0xc9)+this[_0x75d549(0xd6)]}),_0x55fafd[_0x75d549(0xdc)][_0x75d549(0xf6)][_0x75d549(0xe0)](this[_0x75d549(0xd2)]);}[_0x1ae589(0xb4)](){const _0x3b99c8=_0x1ae589,_0x212c8d=this[_0x3b99c8(0xdb)][_0x3b99c8(0xd8)][_0x3b99c8(0xce)](_0x3b99c8(0xeb));_0x212c8d&&this[_0x3b99c8(0xff)](_0x212c8d,_0x3b99c8(0xf5),()=>{const _0x1637cd=_0x3b99c8,_0x2a556f=this[_0x1637cd(0xdb)][_0x1637cd(0xf8)][_0x1637cd(0xdc)][_0x1637cd(0xf7)][_0x1637cd(0xc4)]();_0x2a556f&&_0x2a556f[_0x1637cd(0xfd)](_0x1637cd(0xcb))&&this[_0x1637cd(0xdb)][_0x1637cd(0xcf)][_0x1637cd(0xca)][_0x1637cd(0xcd)](_0x1637cd(0xc1),()=>{const _0x3d74d8=_0x1637cd;_0x426e71(this[_0x3d74d8(0xdb)],_0x2a556f);});});const _0x3035f3=this[_0x3b99c8(0xdb)][_0x3b99c8(0xd8)][_0x3b99c8(0xce)](_0x3b99c8(0xfe));_0x3035f3&&this[_0x3b99c8(0xff)](_0x3035f3,_0x3b99c8(0xf5),()=>{const _0x382795=_0x3b99c8,_0x3768dd=this[_0x382795(0xdb)][_0x382795(0xf8)][_0x382795(0xdc)][_0x382795(0xf7)][_0x382795(0xc4)]();_0x3768dd&&_0x3768dd[_0x382795(0xfd)](_0x382795(0xcb))&&this[_0x382795(0xdb)][_0x382795(0xcf)][_0x382795(0xca)][_0x382795(0xcd)](_0x382795(0xc1),()=>{const _0x15c281=_0x382795;_0x426e71(this[_0x15c281(0xdb)],_0x3768dd);});});}}
|
|
23
|
+
const _0x11732d=_0x5e8b;function _0x1abc(){const _0x5b3abb=['init','uc-upload-ctx-provider','for','document','uploadcare.pubkey','locale','uploadcare.uploader','getSelectedElement','commands','once','downcast','attributeToAttribute','isPremiumPlugin','destroy','_initImageProcessingIndicator','imageBlock','8055880tcUUsW','elementToAttribute','view','_initSchema','#uc-icon-arrow-down','render','closeMax','data-uc-image-id','uc-config','extend','fromCharCode','8990720TxulOz','configElement','insertImage','removeAttribute','2571682aeYnkk','ctxElement','editing','input[uploadcare-file-input]','config','true','_configElement','listenTo','4507988svPRXn','contentLanguage','uploadcareImageId','_initCtx','isOfficialPlugin','_ctxElement','editor','cleanupImage','_initConversion','map','1flEwbP','391038UKZsIg','model','href','_initConfig','\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','getAttribute','replaceImageSource','uploadcareImageReplace','PictureEditing','UploadcareEditing','requires','join','28264671WSqoiW','add','selection','pluginName','uploader-','remove','body','execute','conversion','appendChild','querySelector','ucContextId','imageInline','isRegistered','uploadcare','45byyrqQ','iconHrefResolver','1894122KkHBPM','get','upcast','afterInit','schema'];_0x1abc=function(){return _0x5b3abb;};return _0x1abc();}(function(_0x252785,_0x22fe42){const _0x350c6e=_0x5e8b,_0x4f7ca9=_0x252785();while(!![]){try{const _0x408a20=-parseInt(_0x350c6e(0xb8))/0x1*(parseInt(_0x350c6e(0xa6))/0x2)+-parseInt(_0x350c6e(0xd6))/0x3+-parseInt(_0x350c6e(0xae))/0x4+parseInt(_0x350c6e(0xd4))/0x5*(parseInt(_0x350c6e(0xb9))/0x6)+-parseInt(_0x350c6e(0xeb))/0x7+parseInt(_0x350c6e(0xf6))/0x8+parseInt(_0x350c6e(0xc5))/0x9;if(_0x408a20===_0x22fe42)break;else _0x4f7ca9['push'](_0x4f7ca9['shift']());}catch(_0x4fbdeb){_0x4f7ca9['push'](_0x4f7ca9['shift']());}}}(_0x1abc,0xa01f8));import{Plugin as _0x1d0116}from'ckeditor5/src/core.js';import{Dialog as _0x135e8b}from'ckeditor5/src/ui.js';import{createElement as _0x2cfefd,global as _0x3cbf60,uid as _0x2d38d6}from'ckeditor5/src/utils.js';function _0x5e8b(_0x297e99,_0x3d8826){const _0x1abcf6=_0x1abc();return _0x5e8b=function(_0x5e8bda,_0x59593a){_0x5e8bda=_0x5e8bda-0xa4;let _0x33f60d=_0x1abcf6[_0x5e8bda];return _0x33f60d;},_0x5e8b(_0x297e99,_0x3d8826);}import{UploadcareCommand as _0xa6a0f4}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x9b1604}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x303042}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1d0116{[_0x11732d(0xac)]=null;[_0x11732d(0xb3)]=null;static get[_0x11732d(0xc8)](){const _0x5dce35=_0x11732d;return _0x5dce35(0xc2);}static get[_0x11732d(0xc3)](){const _0x47791d=_0x11732d;return[_0x47791d(0xc1),_0x9b1604,_0x135e8b];}static get[_0x11732d(0xb2)](){return!0x0;}static get[_0x11732d(0xe7)](){return!0x0;}[_0x11732d(0xd0)];get[_0x11732d(0xf7)](){const _0x11d7a5=_0x11732d;return this[_0x11d7a5(0xac)];}get[_0x11732d(0xa7)](){const _0xd3eed9=_0x11732d;return this[_0xd3eed9(0xb3)];}constructor(_0x18b6a8){const _0x42e6ac=_0x11732d;super(_0x18b6a8),this[_0x42e6ac(0xd0)]=_0x2d38d6();}[_0x11732d(0xdb)](){const _0x1fc402=_0x11732d,_0x3bf70e=this[_0x1fc402(0xb4)];_0x3bf70e[_0x1fc402(0xe3)][_0x1fc402(0xc6)](_0x1fc402(0xd3),new _0xa6a0f4(_0x3bf70e));}[_0x11732d(0xd9)](){const _0x16f861=_0x11732d;this[_0x16f861(0xee)](),this[_0x16f861(0xb6)](),this[_0x16f861(0xbc)](),this[_0x16f861(0xb1)](),this[_0x16f861(0xe9)](),this[_0x16f861(0xad)](this[_0x16f861(0xb4)],_0x16f861(0xe8),()=>{const _0x28c89d=_0x16f861;this[_0x28c89d(0xac)]&&(this[_0x28c89d(0xac)][_0x28c89d(0xca)](),this[_0x28c89d(0xac)]=null),this[_0x28c89d(0xb3)]&&(this[_0x28c89d(0xb3)][_0x28c89d(0xca)](),this[_0x28c89d(0xb3)]=null);const _0x23b684=_0x3cbf60[_0x28c89d(0xde)][_0x28c89d(0xcf)](_0x28c89d(0xa9));_0x23b684&&_0x23b684[_0x28c89d(0xca)]();}),async function(_0x5cae09){const _0x180f30=_0x1e5c0b([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x3b7edd=0x535f8c3a,_0x565a63=0x5358f6aa^_0x3b7edd,_0x51f361=window[_0x1e5c0b([0x44,0x61,0x74,0x65])][_0x1e5c0b([0x6e,0x6f,0x77])](),_0x29a792=_0x5cae09[_0x1e5c0b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x10caab=new window[(_0x1e5c0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30058a=>{_0x29a792[_0x1e5c0b([0x6f,0x6e,0x63,0x65])](_0x1e5c0b([0x72,0x65,0x61,0x64,0x79]),_0x30058a);}),_0x105748={[_0x1e5c0b([0x6b,0x74,0x79])]:_0x1e5c0b([0x45,0x43]),[_0x1e5c0b([0x75,0x73,0x65])]:_0x1e5c0b([0x73,0x69,0x67]),[_0x1e5c0b([0x63,0x72,0x76])]:_0x1e5c0b([0x50,0x2d,0x32,0x35,0x36]),[_0x1e5c0b([0x78])]:_0x1e5c0b([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]),[_0x1e5c0b([0x79])]:_0x1e5c0b([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]),[_0x1e5c0b([0x61,0x6c,0x67])]:_0x1e5c0b([0x45,0x53,0x32,0x35,0x36])},_0x48b1cc=_0x29a792[_0x1e5c0b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e5c0b([0x67,0x65,0x74])](_0x1e5c0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3be5f9(){let _0x14d983,_0x57e8b3=null,_0x4d1c8f=null;try{if(_0x48b1cc==_0x1e5c0b([0x47,0x50,0x4c]))return _0x1e5c0b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14d983=_0x49b675(),!_0x14d983)return _0x1e5c0b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14d983[_0x1e5c0b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d1c8f=_0x190e4c(_0x14d983[_0x1e5c0b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14d983[_0x1e5c0b([0x6a,0x74,0x69])])),await _0x585ef8()?_0x326760()?_0x93c5fe()?_0x1e5c0b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x537f95()?(_0x14d983[_0x1e5c0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e5c0b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57e8b3=_0x1880cd(_0x1e5c0b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x14d983[_0x1e5c0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e5c0b([0x74,0x72,0x69,0x61,0x6c])&&(_0x57e8b3=_0x1880cd(_0x1e5c0b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x765ce0()):_0x1e5c0b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e5c0b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e5c0b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e5c0b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x93c5fe(){const _0x54519d=[_0x1e5c0b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e5c0b([0x74,0x72,0x69,0x61,0x6c])][_0x1e5c0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14d983[_0x1e5c0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51f361/0x3e8:0xe10*_0x565a63;return _0x14d983[_0x1e5c0b([0x65,0x78,0x70])]<_0x54519d;}function _0x326760(){const _0x538abf=_0x14d983[_0x1e5c0b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x538abf&&(!!_0x538abf[_0x1e5c0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e5c0b([0x2a]))||!!_0x538abf[_0x1e5c0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e5c0b([0x55,0x50,0x4c,0x43])));}function _0x537f95(){const _0x5821f2=_0x5e8b,_0x4097bf=_0x14d983[_0x1e5c0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4097bf||0x0==_0x4097bf[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x29f744}=new URL(window[_0x1e5c0b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5821f2(0xbb)]);if(_0x4097bf[_0x1e5c0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29f744))return!0x0;const _0xf629c4=_0x29f744[_0x1e5c0b([0x73,0x70,0x6c,0x69,0x74])](_0x1e5c0b([0x2e]));return _0x4097bf[_0x1e5c0b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43a042=>_0x43a042[_0x1e5c0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e5c0b([0x2a])))[_0x1e5c0b([0x6d,0x61,0x70])](_0x27c85f=>_0x27c85f[_0x1e5c0b([0x73,0x70,0x6c,0x69,0x74])](_0x1e5c0b([0x2e])))[_0x1e5c0b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52a86e=>_0x52a86e[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf629c4[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e5c0b([0x6d,0x61,0x70])](_0x44c036=>Array(_0xf629c4[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x44c036[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e5c0b([0x66,0x69,0x6c,0x6c])](_0x44c036[0x0]===_0x1e5c0b([0x2a])?_0x1e5c0b([0x2a]):'')[_0x1e5c0b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x44c036))[_0x1e5c0b([0x73,0x6f,0x6d,0x65])](_0x1d3d34=>_0xf629c4[_0x1e5c0b([0x65,0x76,0x65,0x72,0x79])]((_0x5dceed,_0x1047a3)=>_0x1d3d34[_0x1047a3]===_0x5dceed||_0x1d3d34[_0x1047a3]===_0x1e5c0b([0x2a])));}function _0x765ce0(){return _0x57e8b3&&_0x4d1c8f?new window[(_0x1e5c0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x135a3b,_0x4439f)=>{_0x57e8b3[_0x1e5c0b([0x74,0x68,0x65,0x6e])](_0x135a3b,_0x4439f),_0x4d1c8f[_0x1e5c0b([0x74,0x68,0x65,0x6e])](_0x5f013a=>{_0x5f013a!=_0x1e5c0b([0x56,0x61,0x6c,0x69,0x64])&&_0x135a3b(_0x5f013a);},_0x4439f);}):_0x57e8b3||_0x4d1c8f||_0x1e5c0b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x190e4c(_0x4c8093,_0x575476){return new window[(_0x1e5c0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d5066=>{if(_0x5ac28f())return _0x1d5066(_0x1e5c0b([0x56,0x61,0x6c,0x69,0x64]));_0x5cb8cd(),_0x29a792[_0x1e5c0b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e5c0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x533327=!0x1;const _0x4062f4=_0x2d38d6();function _0x128796(_0x453907){return!!_0x453907&&(typeof _0x453907===_0x1e5c0b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x453907===_0x1e5c0b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x453907[_0x1e5c0b([0x74,0x68,0x65,0x6e])]===_0x1e5c0b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x453907[_0x1e5c0b([0x63,0x61,0x74,0x63,0x68])]===_0x1e5c0b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x487881(_0x5886ac){_0x38bf18(_0x5886ac)[_0x1e5c0b([0x74,0x68,0x65,0x6e])](_0x2efe62=>{if(!_0x2efe62||_0x2efe62[_0x1e5c0b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e5c0b([0x6f,0x6b]))return _0x1e5c0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1e6c4b(_0x31e29c(_0x4062f4+_0x575476))!=_0x2efe62[_0x1e5c0b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e5c0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e5c0b([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e5c0b([0x74,0x68,0x65,0x6e])](_0x35d928=>(_0x19bf82(),_0x35d928),()=>{const _0x5eb4f0=_0x2b4e69();return null==_0x5eb4f0?(_0x19bf82(),_0x1e5c0b([0x56,0x61,0x6c,0x69,0x64])):_0x1e5c0b(_0x51f361-_0x5eb4f0>(0x7753083a^_0x3b7edd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e5c0b([0x74,0x68,0x65,0x6e])](_0x1d5066)[_0x1e5c0b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d5066(_0x1e5c0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2bfd37=0x536962ba^_0x3b7edd;function _0x19bf82(){const _0x4fcd0f=_0x1e5c0b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e6c4b(_0x31e29c(_0x4c8093)),_0x3f5d9d=_0x525ebb(_0x1e6c4b(window[_0x1e5c0b([0x4d,0x61,0x74,0x68])][_0x1e5c0b([0x63,0x65,0x69,0x6c])](_0x51f361/_0x2bfd37)));window[_0x1e5c0b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e5c0b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fcd0f,_0x3f5d9d);}function _0x2b4e69(){const _0x54d8a5=_0x1e5c0b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e6c4b(_0x31e29c(_0x4c8093)),_0x42cdda=window[_0x1e5c0b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e5c0b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54d8a5);return _0x42cdda?window[_0x1e5c0b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x525ebb(_0x42cdda),0x10)*_0x2bfd37:null;}function _0x38bf18(_0x42f408){return new window[(_0x1e5c0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x438822,_0x14b82b)=>{_0x42f408[_0x1e5c0b([0x74,0x68,0x65,0x6e])](_0x438822,_0x14b82b),window[_0x1e5c0b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14b82b,0x535e58fa^_0x3b7edd);});}}_0x29a792[_0x1e5c0b([0x6f,0x6e])](_0x1e5c0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f0168,_0xba0f73)=>{if(_0xba0f73[0x0]!=_0x4c8093)return _0x1d5066(_0x1e5c0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xba0f73[0x1]={..._0xba0f73[0x1],[_0x1e5c0b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4062f4};},{[_0x1e5c0b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e5c0b([0x68,0x69,0x67,0x68])}),_0x29a792[_0x1e5c0b([0x6f,0x6e])](_0x1e5c0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5be508=>{_0x128796(_0x5be508[_0x1e5c0b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x533327=!0x0,_0x487881(_0x5be508[_0x1e5c0b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e5c0b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e5c0b([0x6c,0x6f,0x77])}),_0x10caab[_0x1e5c0b([0x74,0x68,0x65,0x6e])](()=>{_0x533327||_0x1d5066(_0x1e5c0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5ac28f(){return _0x29a792[_0x1e5c0b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e5c0b([0x76,0x69,0x65,0x77])][_0x1e5c0b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e5c0b([0x61,0x75,0x74,0x6f]);}function _0x5cb8cd(){_0x29a792[_0x1e5c0b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e5c0b([0x76,0x69,0x65,0x77])][_0x1e5c0b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e5c0b([0x61,0x75,0x74,0x6f]);}}function _0x1880cd(_0x3bb85e){const _0x5c321b=[new window[(_0x1e5c0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c3160=>setTimeout(_0x2c3160,0x5356b2f6^_0x3b7edd)),_0x10caab[_0x1e5c0b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e5c0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x504b84=>{let _0x3719fe=0x0;_0x29a792[_0x1e5c0b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e5c0b([0x6f,0x6e])](_0x1e5c0b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x465faa,_0x21641f)=>{_0x21641f[0x0][_0x1e5c0b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3719fe++,_0x3719fe==(0x535f8dc2^_0x3b7edd)&&(_0x504b84(),_0x465faa[_0x1e5c0b([0x6f,0x66,0x66])]());});}))];return window[_0x1e5c0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e5c0b([0x72,0x61,0x63,0x65])](_0x5c321b)[_0x1e5c0b([0x74,0x68,0x65,0x6e])](()=>_0x3bb85e);}async function _0x5f39bc(){await _0x10caab,_0x29a792[_0x1e5c0b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e5c0b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3b781c,_0x29a792[_0x1e5c0b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e5c0b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3b781c,_0x29a792[_0x1e5c0b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e5c0b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x200f11(_0x1cad54){const _0x3eb342=_0xcc7a95();_0x29a792[_0x3eb342]=_0x1e5c0b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1cad54,_0x1cad54!=_0x1e5c0b([0x56,0x61,0x6c,0x69,0x64])&&_0x5f39bc();}function _0xcc7a95(){const _0x3f876d=window[_0x1e5c0b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e5c0b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e5c0b([0x6e,0x6f,0x77])]())[_0x1e5c0b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e5c0b([0x2e]),'');let _0x4180b0=_0x1e5c0b([0x68]);for(let _0x253294=0x0;_0x253294<_0x3f876d[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x253294+=0x2){let _0x4c0e9e=window[_0x1e5c0b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f876d[_0x1e5c0b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x253294,_0x253294+0x2));_0x4c0e9e>=_0x180f30[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c0e9e-=_0x180f30[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4180b0+=_0x180f30[_0x4c0e9e];}return _0x4180b0;}function _0x49b675(){const _0x295592=_0x48b1cc[_0x1e5c0b([0x73,0x70,0x6c,0x69,0x74])](_0x1e5c0b([0x2e]));if(0x3!=_0x295592[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x598673(_0x295592[0x1]);function _0x598673(_0x5d9b72){const _0x5d0019=_0x3d5197(_0x5d9b72);return _0x5d0019&&_0x5ebf68()?_0x5d0019:null;function _0x5ebf68(){const _0x31ffaf=_0x5d0019[_0x1e5c0b([0x6a,0x74,0x69])],_0x4f0a43=window[_0x1e5c0b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31ffaf[_0x1e5c0b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31ffaf[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48b37c={..._0x5d0019,[_0x1e5c0b([0x6a,0x74,0x69])]:_0x31ffaf[_0x1e5c0b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31ffaf[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48b37c[_0x1e5c0b([0x76,0x63])],_0x31e29c(_0x48b37c)==_0x4f0a43;}}}async function _0x585ef8(){let _0x127395=!0x0;try{const _0x3a56a6=_0x48b1cc[_0x1e5c0b([0x73,0x70,0x6c,0x69,0x74])](_0x1e5c0b([0x2e])),[_0x15db5a,_0x504dd9,_0x288e75]=_0x3a56a6;return _0x45410d(_0x15db5a),await _0x1974e0(_0x15db5a,_0x504dd9,_0x288e75),_0x127395;}catch{return!0x1;}function _0x45410d(_0x1f51e7){const _0x3154e3=_0x3d5197(_0x1f51e7);_0x3154e3&&_0x3154e3[_0x1e5c0b([0x61,0x6c,0x67])]==_0x1e5c0b([0x45,0x53,0x32,0x35,0x36])||(_0x127395=!0x1);}async function _0x1974e0(_0x202f89,_0x5030bd,_0x2f61c6){const _0x3d40f7=window[_0x1e5c0b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e5c0b([0x66,0x72,0x6f,0x6d])](_0x36e9ac(_0x2f61c6),_0x43abb0=>_0x43abb0[_0x1e5c0b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32fb7e=new window[(_0x1e5c0b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e5c0b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x202f89+_0x1e5c0b([0x2e])+_0x5030bd),_0x3f0a53=window[_0x1e5c0b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e5c0b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3f0a53)return;const _0x35489c=await _0x3f0a53[_0x1e5c0b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e5c0b([0x6a,0x77,0x6b]),_0x105748,{[_0x1e5c0b([0x6e,0x61,0x6d,0x65])]:_0x1e5c0b([0x45,0x43,0x44,0x53,0x41]),[_0x1e5c0b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e5c0b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e5c0b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3f0a53[_0x1e5c0b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e5c0b([0x6e,0x61,0x6d,0x65])]:_0x1e5c0b([0x45,0x43,0x44,0x53,0x41]),[_0x1e5c0b([0x68,0x61,0x73,0x68])]:{[_0x1e5c0b([0x6e,0x61,0x6d,0x65])]:_0x1e5c0b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x35489c,_0x3d40f7,_0x32fb7e)||(_0x127395=!0x1);}}function _0x3d5197(_0x304d13){return _0x304d13[_0x1e5c0b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e5c0b([0x65,0x79]))?JSON[_0x1e5c0b([0x70,0x61,0x72,0x73,0x65])](_0x36e9ac(_0x304d13)):null;}function _0x36e9ac(_0x24c461){return window[_0x1e5c0b([0x61,0x74,0x6f,0x62])](_0x24c461[_0x1e5c0b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e5c0b([0x2b]))[_0x1e5c0b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e5c0b([0x2f])));}function _0x31e29c(_0x5731ea){let _0x271eb7=0x1505;function _0x326c02(_0x5d3540){for(let _0x18a321=0x0;_0x18a321<_0x5d3540[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18a321++){const _0x1b914c=_0x5d3540[_0x1e5c0b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18a321);_0x271eb7=(_0x271eb7<<0x5)+_0x271eb7+_0x1b914c,_0x271eb7&=_0x271eb7;}}function _0x285c65(_0x5ddcac){Array[_0x1e5c0b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5ddcac)?_0x5ddcac[_0x1e5c0b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x285c65):_0x5ddcac&&typeof _0x5ddcac==_0x1e5c0b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e5c0b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5ddcac)[_0x1e5c0b([0x73,0x6f,0x72,0x74])]()[_0x1e5c0b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x139f2e,_0x20f333])=>{_0x326c02(_0x139f2e),_0x285c65(_0x20f333);}):_0x326c02(window[_0x1e5c0b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5ddcac));}return _0x285c65(_0x5731ea),_0x271eb7>>>0x0;}function _0x1e6c4b(_0x230b40){return _0x230b40[_0x1e5c0b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e5c0b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e5c0b([0x30]));}function _0x525ebb(_0x5eff9f){return _0x5eff9f[_0x1e5c0b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e5c0b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e5c0b([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b781c(){}function _0x1e5c0b(_0x379d9a){const _0x3ee5e0=_0x5e8b;return _0x379d9a[_0x3ee5e0(0xb7)](_0x5aa344=>String[_0x3ee5e0(0xf5)](_0x5aa344))[_0x3ee5e0(0xc4)]('');}_0x200f11(await _0x3be5f9());}(this);}[_0x11732d(0xee)](){const _0x2f7141=_0x11732d,_0x2e2642=this[_0x2f7141(0xb4)][_0x2f7141(0xba)][_0x2f7141(0xda)];_0x2e2642[_0x2f7141(0xd2)](_0x2f7141(0xea))&&_0x2e2642[_0x2f7141(0xf4)](_0x2f7141(0xea),{'allowAttributes':[_0x2f7141(0xb0)]}),_0x2e2642[_0x2f7141(0xd2)](_0x2f7141(0xd1))&&_0x2e2642[_0x2f7141(0xf4)](_0x2f7141(0xd1),{'allowAttributes':[_0x2f7141(0xb0)]});}[_0x11732d(0xb6)](){const _0xf87474=_0x11732d,_0x6c568c=this[_0xf87474(0xb4)];_0x6c568c[_0xf87474(0xcd)][_0xf87474(0xdd)](_0xf87474(0xe5))[_0xf87474(0xe6)]({'model':_0xf87474(0xb0),'view':_0xf87474(0xf2)}),_0x6c568c[_0xf87474(0xcd)][_0xf87474(0xdd)](_0xf87474(0xd8))[_0xf87474(0xec)]({'model':{'key':_0xf87474(0xb0),'value':_0x308845=>_0x308845[_0xf87474(0xbe)](_0xf87474(0xf2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x29e33d=_0x6c568c[_0xf87474(0xe3)][_0xf87474(0xd7)](_0xf87474(0xbf));_0x29e33d&&this[_0xf87474(0xad)](_0x29e33d,_0xf87474(0xb5),(_0x1338c5,[_0x556f34,_0x3dfa0e])=>{const _0x4ff0e1=_0xf87474;_0x556f34[_0x4ff0e1(0xa5)](_0x4ff0e1(0xb0),_0x3dfa0e);});}[_0x11732d(0xbc)](){const _0x4b21cd=_0x11732d,_0x7b1ae6=this[_0x4b21cd(0xb4)][_0x4b21cd(0xaa)][_0x4b21cd(0xd7)](_0x4b21cd(0xe1))||{},_0x1cad1c=this[_0x4b21cd(0xb4)][_0x4b21cd(0xaa)][_0x4b21cd(0xd7)](_0x4b21cd(0xdf))||'';this[_0x4b21cd(0xac)]=_0x2cfefd(_0x3cbf60[_0x4b21cd(0xde)],_0x4b21cd(0xf3),{..._0x7b1ae6,'pubkey':_0x1cad1c,'ctx-name':_0x4b21cd(0xc9)+this[_0x4b21cd(0xd0)],'sourceList':'','imgOnly':_0x4b21cd(0xab),'removeCopyright':_0x4b21cd(0xab),'localeName':this[_0x4b21cd(0xb4)][_0x4b21cd(0xe0)][_0x4b21cd(0xaf)],'externalSourcesEmbedCss':_0x4b21cd(0xbd)}),this[_0x4b21cd(0xac)][_0x4b21cd(0xd5)]=_0x57df33=>{const _0x4f2290=_0x4b21cd;if(_0x4f2290(0xf1)==_0x57df33)return _0x4f2290(0xef);},_0x3cbf60[_0x4b21cd(0xde)][_0x4b21cd(0xcb)][_0x4b21cd(0xce)](this[_0x4b21cd(0xac)]);}[_0x11732d(0xb1)](){const _0x3c86f5=_0x11732d;this[_0x3c86f5(0xb3)]=_0x2cfefd(_0x3cbf60[_0x3c86f5(0xde)],_0x3c86f5(0xdc),{'ctx-name':_0x3c86f5(0xc9)+this[_0x3c86f5(0xd0)]}),_0x3cbf60[_0x3c86f5(0xde)][_0x3c86f5(0xcb)][_0x3c86f5(0xce)](this[_0x3c86f5(0xb3)]);}[_0x11732d(0xe9)](){const _0x184960=_0x11732d,_0xfd63c7=this[_0x184960(0xb4)][_0x184960(0xe3)][_0x184960(0xd7)](_0x184960(0xa4));_0xfd63c7&&this[_0x184960(0xad)](_0xfd63c7,_0x184960(0xcc),()=>{const _0x285d3f=_0x184960,_0x336df3=this[_0x285d3f(0xb4)][_0x285d3f(0xba)][_0x285d3f(0xde)][_0x285d3f(0xc7)][_0x285d3f(0xe2)]();_0x336df3&&_0x336df3[_0x285d3f(0xbe)](_0x285d3f(0xb0))&&this[_0x285d3f(0xb4)][_0x285d3f(0xa8)][_0x285d3f(0xed)][_0x285d3f(0xe4)](_0x285d3f(0xf0),()=>{const _0x257b88=_0x285d3f;_0x303042(this[_0x257b88(0xb4)],_0x336df3);});});const _0x2f712f=this[_0x184960(0xb4)][_0x184960(0xe3)][_0x184960(0xd7)](_0x184960(0xc0));_0x2f712f&&this[_0x184960(0xad)](_0x2f712f,_0x184960(0xcc),()=>{const _0xadb8b1=_0x184960,_0x5218c6=this[_0xadb8b1(0xb4)][_0xadb8b1(0xba)][_0xadb8b1(0xde)][_0xadb8b1(0xc7)][_0xadb8b1(0xe2)]();_0x5218c6&&_0x5218c6[_0xadb8b1(0xbe)](_0xadb8b1(0xb0))&&this[_0xadb8b1(0xb4)][_0xadb8b1(0xa8)][_0xadb8b1(0xed)][_0xadb8b1(0xe4)](_0xadb8b1(0xf0),()=>{const _0x5c7193=_0xadb8b1;_0x303042(this[_0x5c7193(0xb4)],_0x5218c6);});});}}
|