@ckeditor/ckeditor5-uploadcare 45.1.0-alpha.3 → 45.1.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x46108d,Command as _0x1fb8a4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3fc145,IconGooglePhotos as _0x393224,IconGoogleDrive as _0x218a63,IconFacebook as _0x419e5b,IconDropbox as _0x5e153d,IconUploadcareLink as _0x325b84,IconUploadcareImageUpload as _0x1ca542,IconError as et,IconUploadcareImageEdit as _0x1747b9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x271c32,MenuBarMenuListItemButtonView as _0x1c9cf5,View as _0x1d3b0d,FocusCycler as _0x51b23f,Dialog as _0x35bec4,DialogViewPosition as _0x235f27,SpinnerView as _0x3a5a3f,IconView as at,Notification as _0x5b606b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x45fe6a,DomEmitterMixin as _0x2d0d95,global as _0x5e2af2,getAncestors as _0x563ba5,ObservableMixin as _0x279a61,createElement as _0x5d2e18,uid as _0x1d6996}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x8032f6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5c1b39,info as _0x5b6f00}from'@uploadcare/upload-client';import*as _0x3e0bc2 from'@uploadcare/file-uploader';var o=function(_0x1d5cb4){return _0x1d5cb4['Local']='local',_0x1d5cb4['URL']='url',_0x1d5cb4['Dropbox']='dropbox',_0x1d5cb4['GDrive']='gdrive',_0x1d5cb4['Facebook']='facebook',_0x1d5cb4['GPhotos']='gphotos',_0x1d5cb4['OneDrive']='onedrive',_0x1d5cb4;}({});function _(_0x66d09b,_0x20a7f8,_0x516622){const t=_0x66d09b['t'],_0x4f6e6a=_0x66d09b['t'];switch(_0x20a7f8){case o['Local']:return{'text':_0x4f6e6a('Insert'===_0x516622?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4f6e6a('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x516622?_0x4f6e6a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4f6e6a('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x516622?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x516622?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x516622?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x516622?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x516622?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x20a7f8;}}class e extends _0x46108d{['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 _0x2a7b1a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2de668;for(const _0x30c286 in _0x2a7b1a){const _0x37c0b8=_0x30c286,_0x4a2e4b=_0x2a7b1a[_0x37c0b8];if('uploadcareLicenseKeyValid'==_0x4a2e4b||'uploadcareLicenseKeyInvalid'==_0x4a2e4b||'uploadcareLicenseKeyExpired'==_0x4a2e4b||'uploadcareLicenseKeyDomainLimit'==_0x4a2e4b||'uploadcareLicenseKeyNotAllowed'==_0x4a2e4b||'uploadcareLicenseKeyEvaluationLimit'==_0x4a2e4b||'uploadcareLicenseKeyTrialLimit'==_0x4a2e4b||'uploadcareLicenseKeyUsageLimit'==_0x4a2e4b){delete _0x2a7b1a[_0x37c0b8],_0x2de668=_0x4a2e4b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2de668&&_0x2a7b1a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2de668&&_0x2a7b1a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2de668&&_0x2a7b1a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2de668&&_0x2a7b1a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2de668&&_0x2a7b1a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2de668&&_0x2a7b1a['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2de668&&_0x2a7b1a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x311417}=this,_0x1e486d=_0x311417['commands']['get']('uploadcare');if(!_0x1e486d)return;const _0x3b5640=this['_normalizeConfigSourceList'](_0x311417['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x53b4c6,_0x25c7e1)=>{const _0x34f5c1=this['_getIntegrationKey'](_0x25c7e1['type']);return _0x53b4c6[_0x34f5c1]||(_0x53b4c6[_0x34f5c1]=[]),_0x53b4c6[_0x34f5c1]['push'](_0x25c7e1),_0x53b4c6;},{});_0x311417['plugins']['has']('ImageInsertUI')&&_0x311417['commands']['get']('uploadcare')&&Object['entries'](_0x3b5640)['forEach'](([_0xa9dc9d,_0x400937])=>{_0x311417['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xa9dc9d,'observable':()=>_0x1e486d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x400937),'formViewCreator':()=>this['_createDropdownButtons'](_0x400937),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x400937),'override':'assetManager'!==_0xa9dc9d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x33651c){const {locale:_0x11b38b}=this['editor'];return _0x33651c['map'](_0xc5ba6d=>{const _0x294e43=_(_0x11b38b,_0xc5ba6d,'Insert');switch(_0xc5ba6d){case o['Local']:return{'icon':_0x1ca542,'type':o['Local'],..._0x294e43};case o['URL']:return{'icon':_0x325b84,'type':o['URL'],..._0x294e43};case o['Dropbox']:return{'icon':_0x5e153d,'type':o['Dropbox'],..._0x294e43};case o['Facebook']:return{'icon':_0x419e5b,'type':o['Facebook'],..._0x294e43};case o['GDrive']:return{'icon':_0x218a63,'type':o['GDrive'],..._0x294e43};case o['GPhotos']:return{'icon':_0x393224,'type':o['GPhotos'],..._0x294e43};case o['OneDrive']:return{'icon':_0x3fc145,'type':o['OneDrive'],..._0x294e43};}});}['_getIntegrationKey'](_0x1a3854){switch(_0x1a3854){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x52d573,_0xcd7d3a){const _0x2b0f12=this['editor'],_0x97d313=new _0x52d573(_0x2b0f12['locale']),_0x1feb27=_0x2b0f12['commands']['get']('uploadcare');return _0x97d313['bind']('isEnabled')['to'](_0x1feb27),_0x97d313['on']('execute',()=>{_0x1feb27['execute'](_0xcd7d3a);}),_0x97d313;}['_createToolbarButton'](_0x5533e3){const {locale:_0x1cfdea}=this['editor'],_0x4b241f=this['editor']['plugins']['get']('ImageInsertUI'),_0x72a7b3=_0x5533e3[0x0],_0x479208=this['_createButton'](_0x271c32,_0x72a7b3['type']);return _0x479208['icon']=_0x72a7b3['icon'],_0x479208['bind']('label')['to'](_0x4b241f,'isImageSelected',_0x29f01b=>_(_0x1cfdea,_0x72a7b3['type'],_0x29f01b?'Replace':'Insert')['text']),_0x479208['tooltip']=!0x0,_0x479208;}['_createDropdownButtons'](_0x3e4bf5){const {locale:_0x17aea8}=this['editor'],_0x19c55c=this['editor']['plugins']['get']('ImageInsertUI');return _0x3e4bf5['map'](_0x18a0bb=>{const _0x3c0bbc=this['_createButton'](_0x271c32,_0x18a0bb['type']);return _0x3c0bbc['withText']=!0x0,_0x3c0bbc['icon']=_0x18a0bb['icon'],_0x3c0bbc['bind']('label')['to'](_0x19c55c,'isImageSelected',_0xe520f=>_(_0x17aea8,_0x18a0bb['type'],_0xe520f?'Replace':'Insert')['text']),_0x3c0bbc;});}['_createMenuBarButtons'](_0x284ca6){return _0x284ca6['map'](_0x593dbd=>{const _0x15f647=this['_createButton'](_0x1c9cf5,_0x593dbd['type']);return _0x15f647['icon']=_0x593dbd['icon'],_0x15f647['label']=_0x593dbd['shortText'],_0x15f647;});}}class q extends _0x1d3b0d{['focusTracker'];['focusCycler'];constructor(_0x25547d){super(_0x25547d),this['focusTracker']=new _0x45fe6a(),this['focusCycler']=new _0x51b23f({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x34a1c0){super(_0x34a1c0),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x2f79b5,_0x1c32d6){const _0x8fbdb6=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x370342=>_0x370342<=_0x1c32d6)['map'](_0x31a64e=>_0x2f79b5['replace'](/\/$/,'')+'/-/resize/'+_0x31a64e+'x/\x20'+_0x31a64e+'w');return{'imageFallbackUrl':_0x2f79b5,'imageSources':[{'srcset':_0x8fbdb6['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1c32d6+'px)\x20100vw,\x20'+_0x1c32d6+'px','type':'image/webp'}]};}function A(_0x6da59f,_0x349d24,_0x3237f5){const _0x303063=_0x6da59f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x303063?parseInt(_0x303063[0x1],0xa):_0x349d24,'height':_0x303063?parseInt(_0x303063[0x2],0xa):_0x3237f5};}function m(_0x545198,_0x15c7dc){const _0x29cdbd=Object['create'](_0x2d0d95),_0x23f3c7=_0x545198['plugins']['get']('ImageUtils'),_0x2d52a9=_0x545198['editing']['mapper']['toViewElement'](_0x15c7dc),_0x2619ff=_0x23f3c7['findViewImgElement'](_0x2d52a9),_0x2c7d16=_0x545198['editing']['view']['domConverter']['viewToDom'](_0x2619ff),_0x22056e=_0x15c7dc['getAttribute']('width'),_0x17866e=_0x15c7dc['getAttribute']('height'),_0x1b735c='image-processing';_0x545198['editing']['view']['change'](_0x23256d=>{_0x23256d['addClass'](_0x1b735c,_0x2d52a9),_0x23256d['setStyle']('aspect-ratio',_0x22056e+'/'+_0x17866e,_0x2619ff);}),_0x29cdbd['listenTo'](_0x2c7d16,'load',()=>{_0x29cdbd['stopListening'](_0x2c7d16,'load'),_0x545198['editing']['view']['change'](_0x1a09a0=>{_0x1a09a0['removeClass'](_0x1b735c,_0x2d52a9),_0x1a09a0['removeStyle']('aspect-ratio',_0x2619ff);});});}function V(_0x2138b8){if(Array['isArray'](_0x2138b8)){const _0x1a95f6=_0x2138b8['map'](V);return _0x344d6c=>_0x1a95f6['some'](_0x2f3e90=>_0x2f3e90(_0x344d6c));}if('origin'==_0x2138b8){const _0x5eb1a6=_0x5e2af2['window']['location']['origin'];return _0x41352f=>new URL(_0x41352f,_0x5e2af2['document']['baseURI'])['origin']==_0x5eb1a6;}return'function'==typeof _0x2138b8?_0x2138b8:_0x2138b8 instanceof RegExp?_0x2747fe=>!(!_0x2747fe['match'](_0x2138b8)&&!_0x2747fe['replace'](/^https?:\/\//,'')['match'](_0x2138b8)):()=>!0x1;}function F(_0x444e77,_0x3f0072){return _0x563ba5(_0x444e77['target'])['includes'](_0x3f0072);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x279a61(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x53faa2,_0x5316ca,_0x87c01){super(),this['_editor']=_0x53faa2,this['_editing']=_0x5316ca,this['_dialog']=_0x53faa2['plugins']['get'](_0x35bec4),this['_api']=_0x5316ca['ctxElement']['getAPI'](),this['_type']=_0x87c01,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:_0x45ff28,model:_0xdc78b8}=this['_editor'],_0x28e426=_0xdc78b8['document']['selection']['getSelectedElement'](),_0x3b89df=_0x28e426&&(_0x28e426['is']('element','imageBlock')||_0x28e426['is']('element','imageInline'));this['_formView']=new S(_0x45ff28),this['_dialog']['show']({'id':'uploadCare','icon':_0x1ca542,'title':_(_0x45ff28,this['_type'],_0x3b89df?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x235f27['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1b1c4c=>!F(_0x1b1c4c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x116a32}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x416483=>{const _0x302b96=_0x116a32['length'];for(const _0x52c862 of _0x116a32){const _0x161aef=_0x52c862===_0x116a32[_0x302b96-0x1],{cdnUrl:_0x57eae6,fileInfo:_0x539b28}=_0x52c862;if(!_0x57eae6||!_0x539b28)continue;const {width:_0x4f6aa2,height:_0x5ea6a6}=_0x539b28['imageInfo'],_0x2d8e6c=A(_0x57eae6,_0x4f6aa2,_0x5ea6a6),_0x19de84=E(_0x57eae6,_0x2d8e6c['width']),_0x1ee0ae={'id':_0x539b28['uuid'],'type':'image','attributes':{'imageDimension':_0x2d8e6c,..._0x19de84}};this['_insertAsset'](_0x1ee0ae,_0x161aef,_0x416483);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1293f3=>{'idle'===_0x1293f3['detail']['status']&&!_0x1293f3['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x137a24,_0x5c7519,_0x4dcc23){const _0x5121ba=this['_editor']['model']['document']['selection'],_0x27d706=_0x5121ba['getSelectedElement'](),_0x62bcc6=!(!_0x27d706||!_0x27d706['is']('element','imageInline'));_0x4dcc23['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x137a24,_0x62bcc6),_0x5c7519||_0x4dcc23['setSelection'](_0x5121ba['getLastPosition']());}['_insertImage'](_0x5306d1,_0x10fca9){const _0xded555=this['_editor'],{imageDimension:_0x4e859f,imageFallbackUrl:_0x27f9a7,imageSources:_0xc5ee97}=_0x5306d1['attributes'];_0xded555['execute']('insertImage',{'imageType':_0x10fca9?'imageInline':null,'source':{'uploadcareImageId':_0x5306d1['id'],'src':_0x27f9a7,'sources':_0xc5ee97,..._0x4e859f}});}}class n extends _0x1fb8a4{['_editing'];['_controller']=null;static get['requires'](){return[_0x35bec4,i];}constructor(_0x49842f){super(_0x49842f),this['_editing']=_0x49842f['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4f18ff){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x4f18ff);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x127072,publicKey:_0x374803,signal:_0x429ca0,onProgress:_0x1ea595}){return _0x5c1b39(_0x127072,{'publicKey':_0x374803,'store':'auto','signal':_0x429ca0,'onProgress':_0x1ea595});}static['getInfo'](_0xa7d37c,_0x2013db){return _0x5b6f00(_0xa7d37c,_0x2013db);}}class p extends _0x46108d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x8032f6,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1ea541=this['editor'];if(!!!_0x1ea541['config']['get']('uploadcare'))return;_0x1ea541['plugins']['get'](_0x8032f6)['createUploadAdapter']=_0x235c2=>new x(_0x235c2,_0x1ea541),_0x1ea541['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x344f9d,{imageElement:_0x114f4a,data:_0x3d3de4})=>{_0x1ea541['model']['change'](_0x434186=>{_0x434186['setAttribute']('uploadcareImageId',_0x3d3de4['uploadcareImageId'],_0x114f4a);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x5eeaa3,_0x7026f0){this['loader']=_0x5eeaa3,this['editor']=_0x7026f0,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1c476d=this['editor']['config']['get']('uploadcare.pubkey'),_0x120311=await this['loader']['file'];return C['upload']({'file':_0x120311,'publicKey':_0x1c476d,'signal':this['controller']['signal'],'onProgress':_0x3a10da=>{_0x3a10da&&_0x3a10da['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3a10da['value']);}})['then'](async _0x2e0e92=>{const {imageFallbackUrl:_0x3d9812,imageSources:_0x3274d0}=E(_0x2e0e92['cdnUrl'],_0x2e0e92['imageInfo']['width']);return{'uploadcareImageId':_0x2e0e92['uuid'],'default':_0x3d9812,'sources':_0x3274d0};})['catch'](()=>{const _0x2d2da3=t('Cannot\x20upload\x20file:')+('\x20'+_0x120311['name']+'.');return Promise['reject'](_0x2d2da3);});}['abort'](){this['controller']['abort']();}}class i extends _0x46108d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x35bec4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x56aab9=this['editor'];_0x56aab9['commands']['add']('uploadcare',new n(_0x56aab9));}['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 _0x178f19=_0x5e2af2['document']['querySelector']('input[uploadcare-file-input]');_0x178f19&&_0x178f19['remove']();}),async function(_0x3f36b8){const _0x543e3c=_0x53db9a([0x6b,0x47,0x7a,0x78,0x75,0x36,0x74,0x76,0x4b,0x79,0x66,0x52,0x63,0x64,0x4a,0x39,0x71,0x73,0x35,0x50,0x59,0x6c,0x38,0x58,0x43,0x62,0x53,0x37,0x69,0x56,0x46,0x45,0x70,0x77,0x31,0x72,0x4c,0x55,0x51,0x33,0x4d,0x57,0x44,0x5a,0x49,0x6f,0x41,0x32,0x48,0x34,0x68,0x4f,0x4e,0x6d,0x30,0x54,0x6a,0x65,0x67,0x6e,0x61,0x42]),_0x3c4f09=0x6dcfc38,_0x23c325=0x6db9b48^_0x3c4f09,_0x33688f=window[_0x53db9a([0x44,0x61,0x74,0x65])][_0x53db9a([0x6e,0x6f,0x77])](),_0x23cf51=_0x3f36b8[_0x53db9a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x585818=new window[(_0x53db9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45a0f4=>{_0x23cf51[_0x53db9a([0x6f,0x6e,0x63,0x65])](_0x53db9a([0x72,0x65,0x61,0x64,0x79]),_0x45a0f4);}),_0x3582e3={[_0x53db9a([0x6b,0x74,0x79])]:_0x53db9a([0x45,0x43]),[_0x53db9a([0x75,0x73,0x65])]:_0x53db9a([0x73,0x69,0x67]),[_0x53db9a([0x63,0x72,0x76])]:_0x53db9a([0x50,0x2d,0x32,0x35,0x36]),[_0x53db9a([0x78])]:_0x53db9a([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]),[_0x53db9a([0x79])]:_0x53db9a([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]),[_0x53db9a([0x61,0x6c,0x67])]:_0x53db9a([0x45,0x53,0x32,0x35,0x36])},_0x1df593=_0x23cf51[_0x53db9a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x53db9a([0x67,0x65,0x74])](_0x53db9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x26446a(){let _0x324246,_0x590da5=null,_0x2bd70a=null;try{if(_0x1df593==_0x53db9a([0x47,0x50,0x4c]))return _0x53db9a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x324246=_0x19f0ad(),!_0x324246)return _0x53db9a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x324246[_0x53db9a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2bd70a=_0x491fd3(_0x324246[_0x53db9a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x324246[_0x53db9a([0x6a,0x74,0x69])])),await _0x34e35b()?_0x26ecd1()?_0x3c9173()?_0x53db9a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x317e8d()?(_0x324246[_0x53db9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53db9a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x590da5=_0x5701b3(_0x53db9a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x324246[_0x53db9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53db9a([0x74,0x72,0x69,0x61,0x6c])&&(_0x590da5=_0x5701b3(_0x53db9a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x12719c()):_0x53db9a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x53db9a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x53db9a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x95fce){return _0x53db9a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3c9173(){const _0x2806c7=[_0x53db9a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x53db9a([0x74,0x72,0x69,0x61,0x6c])][_0x53db9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x324246[_0x53db9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33688f/0x3e8:0xe10*_0x23c325;return _0x324246[_0x53db9a([0x65,0x78,0x70])]<_0x2806c7;}function _0x26ecd1(){const _0x22a394=_0x324246[_0x53db9a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x22a394&&(!!_0x22a394[_0x53db9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53db9a([0x2a]))||!!_0x22a394[_0x53db9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53db9a([0x55,0x50,0x4c,0x43])));}function _0x317e8d(){const _0x3e3cee=_0x324246[_0x53db9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3e3cee||0x0==_0x3e3cee[_0x53db9a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x24a449}=new URL(window[_0x53db9a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3e3cee[_0x53db9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24a449))return!0x0;const _0x544ce4=_0x24a449[_0x53db9a([0x73,0x70,0x6c,0x69,0x74])](_0x53db9a([0x2e]));return _0x3e3cee[_0x53db9a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x295f0d=>_0x295f0d[_0x53db9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53db9a([0x2a])))[_0x53db9a([0x6d,0x61,0x70])](_0x1f959a=>_0x1f959a[_0x53db9a([0x73,0x70,0x6c,0x69,0x74])](_0x53db9a([0x2e])))[_0x53db9a([0x73,0x6f,0x6d,0x65])](_0x85a25e=>_0x544ce4[_0x53db9a([0x65,0x76,0x65,0x72,0x79])]((_0x4ed6af,_0x2976a4)=>_0x85a25e[_0x2976a4]===_0x4ed6af||_0x85a25e[_0x2976a4]===_0x53db9a([0x2a])));}function _0x12719c(){return _0x590da5&&_0x2bd70a?new window[(_0x53db9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x231127,_0x26b061)=>{_0x590da5[_0x53db9a([0x74,0x68,0x65,0x6e])](_0x231127,_0x26b061),_0x2bd70a[_0x53db9a([0x74,0x68,0x65,0x6e])](_0x56734e=>{_0x56734e!=_0x53db9a([0x56,0x61,0x6c,0x69,0x64])&&_0x231127(_0x56734e);},_0x26b061);}):_0x590da5||_0x2bd70a||_0x53db9a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x491fd3(_0x9502dc,_0x147928){return new window[(_0x53db9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21fa04=>{if(_0x117502())return _0x21fa04(_0x53db9a([0x56,0x61,0x6c,0x69,0x64]));_0x264a55(),_0x23cf51[_0x53db9a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x53db9a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ecce0=!0x1;const _0x17db4d=_0x1d6996();function _0x281b40(_0x41ea57){return!!_0x41ea57&&(typeof _0x41ea57===_0x53db9a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x41ea57===_0x53db9a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x41ea57[_0x53db9a([0x74,0x68,0x65,0x6e])]===_0x53db9a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x41ea57[_0x53db9a([0x63,0x61,0x74,0x63,0x68])]===_0x53db9a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x21bdb8(_0x3dcdc9){_0x24801c(_0x3dcdc9)[_0x53db9a([0x74,0x68,0x65,0x6e])](_0x314bb6=>{if(!_0x314bb6||_0x314bb6[_0x53db9a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x53db9a([0x6f,0x6b]))return _0x53db9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x382ac9(_0x58123a(_0x17db4d+_0x147928))!=_0x314bb6[_0x53db9a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x53db9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x53db9a([0x56,0x61,0x6c,0x69,0x64]);})[_0x53db9a([0x74,0x68,0x65,0x6e])](_0x240667=>(_0x2a360b(),_0x240667),()=>{const _0x11c6e4=_0x2878b5();return null==_0x11c6e4?(_0x2a360b(),_0x53db9a([0x56,0x61,0x6c,0x69,0x64])):_0x53db9a(_0x33688f-_0x11c6e4>(0x22d07838^_0x3c4f09)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x53db9a([0x74,0x68,0x65,0x6e])](_0x21fa04)[_0x53db9a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x21fa04(_0x53db9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1c031a=0x6ea12b8^_0x3c4f09;function _0x2a360b(){const _0x3635ec=_0x53db9a([0x6c,0x6c,0x63,0x74,0x2d])+_0x382ac9(_0x58123a(_0x9502dc)),_0x528b26=_0x60bed1(_0x382ac9(window[_0x53db9a([0x4d,0x61,0x74,0x68])][_0x53db9a([0x63,0x65,0x69,0x6c])](_0x33688f/_0x1c031a)));window[_0x53db9a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53db9a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3635ec,_0x528b26);}function _0x2878b5(){const _0x16484b=_0x53db9a([0x6c,0x6c,0x63,0x74,0x2d])+_0x382ac9(_0x58123a(_0x9502dc)),_0x127400=window[_0x53db9a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53db9a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16484b);return _0x127400?window[_0x53db9a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x60bed1(_0x127400),0x10)*_0x1c031a:null;}function _0x24801c(_0xf8628d){return new window[(_0x53db9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x116e75,_0x4ec01f)=>{_0xf8628d[_0x53db9a([0x74,0x68,0x65,0x6e])](_0x116e75,_0x4ec01f),window[_0x53db9a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4ec01f,0x6dd28f8^_0x3c4f09);});}}_0x23cf51[_0x53db9a([0x6f,0x6e])](_0x53db9a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5d0a50,_0x59393a)=>{if(_0x59393a[0x0]!=_0x9502dc)return _0x21fa04(_0x53db9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x59393a[0x1]={..._0x59393a[0x1],[_0x53db9a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x17db4d};},{[_0x53db9a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53db9a([0x68,0x69,0x67,0x68])}),_0x23cf51[_0x53db9a([0x6f,0x6e])](_0x53db9a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x131478=>{_0x281b40(_0x131478[_0x53db9a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ecce0=!0x0,_0x21bdb8(_0x131478[_0x53db9a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x53db9a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53db9a([0x6c,0x6f,0x77])}),_0x585818[_0x53db9a([0x74,0x68,0x65,0x6e])](()=>{_0x4ecce0||_0x21fa04(_0x53db9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x117502(){return _0x23cf51[_0x53db9a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53db9a([0x76,0x69,0x65,0x77])][_0x53db9a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x53db9a([0x61,0x75,0x74,0x6f]);}function _0x264a55(){_0x23cf51[_0x53db9a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53db9a([0x76,0x69,0x65,0x77])][_0x53db9a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53db9a([0x61,0x75,0x74,0x6f]);}}function _0x5701b3(_0x22c944){const _0x8f279d=[new window[(_0x53db9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aff16=>setTimeout(_0x3aff16,0x6d5c2f4^_0x3c4f09)),_0x585818[_0x53db9a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x53db9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12ccae=>{let _0xe3afc5=0x0;_0x23cf51[_0x53db9a([0x6d,0x6f,0x64,0x65,0x6c])][_0x53db9a([0x6f,0x6e])](_0x53db9a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x59ede6,_0x9ef2cd)=>{_0x9ef2cd[0x0][_0x53db9a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe3afc5++,_0xe3afc5==(0x6dcfdc0^_0x3c4f09)&&(_0x12ccae(),_0x59ede6[_0x53db9a([0x6f,0x66,0x66])]());});}))];return window[_0x53db9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53db9a([0x72,0x61,0x63,0x65])](_0x8f279d)[_0x53db9a([0x74,0x68,0x65,0x6e])](()=>_0x22c944);}async function _0x153f78(){await _0x585818,_0x23cf51[_0x53db9a([0x6d,0x6f,0x64,0x65,0x6c])][_0x53db9a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x480e12,_0x23cf51[_0x53db9a([0x6d,0x6f,0x64,0x65,0x6c])][_0x53db9a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x480e12,_0x23cf51[_0x53db9a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x53db9a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x33dd13(_0x441dca){const _0x439bd7=_0x7015b1();_0x23cf51[_0x439bd7]=_0x53db9a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x441dca,_0x441dca!=_0x53db9a([0x56,0x61,0x6c,0x69,0x64])&&_0x153f78();}function _0x7015b1(){const _0x22e373=window[_0x53db9a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x53db9a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x53db9a([0x6e,0x6f,0x77])]())[_0x53db9a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x53db9a([0x2e]),'');let _0x53b971=_0x53db9a([0x6b]);for(let _0x4d4597=0x0;_0x4d4597<_0x22e373[_0x53db9a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d4597+=0x2){let _0x51cef5=window[_0x53db9a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22e373[_0x53db9a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d4597,_0x4d4597+0x2));_0x51cef5>=_0x543e3c[_0x53db9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x51cef5-=_0x543e3c[_0x53db9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x53b971+=_0x543e3c[_0x51cef5];}return _0x53b971;}function _0x19f0ad(){const _0x1d4933=_0x1df593[_0x53db9a([0x73,0x70,0x6c,0x69,0x74])](_0x53db9a([0x2e]));if(0x3!=_0x1d4933[_0x53db9a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x41e941(_0x1d4933[0x1]);function _0x41e941(_0x4a5f76){const _0x37c3a1=_0x5dcbc5(_0x4a5f76);return _0x37c3a1&&_0x4f51bb()?_0x37c3a1:null;function _0x4f51bb(){const _0x48d2d9=_0x37c3a1[_0x53db9a([0x6a,0x74,0x69])],_0x5138cc=window[_0x53db9a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48d2d9[_0x53db9a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48d2d9[_0x53db9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5ad405={..._0x37c3a1,[_0x53db9a([0x6a,0x74,0x69])]:_0x48d2d9[_0x53db9a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x48d2d9[_0x53db9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5ad405[_0x53db9a([0x76,0x63])],_0x58123a(_0x5ad405)==_0x5138cc;}}}async function _0x34e35b(){let _0x19b57c=!0x0;try{const _0x33d3aa=_0x1df593[_0x53db9a([0x73,0x70,0x6c,0x69,0x74])](_0x53db9a([0x2e])),[_0x3bea6e,_0x58938c,_0x1a1b0a]=_0x33d3aa;return _0x320cbb(_0x3bea6e),await _0x3f58bc(_0x3bea6e,_0x58938c,_0x1a1b0a),_0x19b57c;}catch(_0x425bd8){return!0x1;}function _0x320cbb(_0x3c2bdd){const _0x2e4995=_0x5dcbc5(_0x3c2bdd);_0x2e4995&&_0x2e4995[_0x53db9a([0x61,0x6c,0x67])]==_0x53db9a([0x45,0x53,0x32,0x35,0x36])||(_0x19b57c=!0x1);}async function _0x3f58bc(_0x413293,_0x28acf3,_0x85add0){const _0x4e6333=window[_0x53db9a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x53db9a([0x66,0x72,0x6f,0x6d])](_0x577c9c(_0x85add0),_0xe9d7c0=>_0xe9d7c0[_0x53db9a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1d4c5b=new window[(_0x53db9a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x53db9a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x413293+_0x53db9a([0x2e])+_0x28acf3),_0x28128f=window[_0x53db9a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x53db9a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x28128f)return;const _0x220a60=await _0x28128f[_0x53db9a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x53db9a([0x6a,0x77,0x6b]),_0x3582e3,{[_0x53db9a([0x6e,0x61,0x6d,0x65])]:_0x53db9a([0x45,0x43,0x44,0x53,0x41]),[_0x53db9a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x53db9a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x53db9a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x28128f[_0x53db9a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x53db9a([0x6e,0x61,0x6d,0x65])]:_0x53db9a([0x45,0x43,0x44,0x53,0x41]),[_0x53db9a([0x68,0x61,0x73,0x68])]:{[_0x53db9a([0x6e,0x61,0x6d,0x65])]:_0x53db9a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x220a60,_0x4e6333,_0x1d4c5b)||(_0x19b57c=!0x1);}}function _0x5dcbc5(_0x235658){return _0x235658[_0x53db9a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x53db9a([0x65,0x79]))?JSON[_0x53db9a([0x70,0x61,0x72,0x73,0x65])](_0x577c9c(_0x235658)):null;}function _0x577c9c(_0x5db4cc){return window[_0x53db9a([0x61,0x74,0x6f,0x62])](_0x5db4cc[_0x53db9a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x53db9a([0x2b]))[_0x53db9a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x53db9a([0x2f])));}function _0x58123a(_0x42bc63){let _0x2014a9=0x1505;function _0x34406c(_0x133b05){for(let _0x3b0e1a=0x0;_0x3b0e1a<_0x133b05[_0x53db9a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b0e1a++){const _0x2cdc2a=_0x133b05[_0x53db9a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3b0e1a);_0x2014a9=(_0x2014a9<<0x5)+_0x2014a9+_0x2cdc2a,_0x2014a9&=_0x2014a9;}}function _0x2fd83c(_0x3a8a27){Array[_0x53db9a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a8a27)?_0x3a8a27[_0x53db9a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2fd83c):_0x3a8a27&&typeof _0x3a8a27==_0x53db9a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x53db9a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a8a27)[_0x53db9a([0x73,0x6f,0x72,0x74])]()[_0x53db9a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40d20e,_0x118401])=>{_0x34406c(_0x40d20e),_0x2fd83c(_0x118401);}):_0x34406c(window[_0x53db9a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a8a27));}return _0x2fd83c(_0x42bc63),_0x2014a9>>>0x0;}function _0x382ac9(_0x29b3f9){return _0x29b3f9[_0x53db9a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x53db9a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x53db9a([0x30]));}function _0x60bed1(_0x56234a){return _0x56234a[_0x53db9a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x53db9a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x53db9a([0x6a,0x6f,0x69,0x6e])]('');}function _0x480e12(){}function _0x53db9a(_0x3dd530){return _0x3dd530['map'](_0x539c3d=>String['fromCharCode'](_0x539c3d))['join']('');}_0x33dd13(await _0x26446a());}(this);}['_initSchema'](){const _0x6774a6=this['editor']['model']['schema'];_0x6774a6['isRegistered']('imageBlock')&&_0x6774a6['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x6774a6['isRegistered']('imageInline')&&_0x6774a6['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x13746a=this['editor'];_0x13746a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x13746a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x41731a=>_0x41731a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x293c1c=_0x13746a['commands']['get']('replaceImageSource');_0x293c1c&&this['listenTo'](_0x293c1c,'cleanupImage',(_0x4d4608,[_0x573cf3,_0x3d1091])=>{_0x573cf3['removeAttribute']('uploadcareImageId',_0x3d1091);});}['_initConfig'](){const _0x2e4cd9=this['editor']['config']['get']('uploadcare.uploader')||{},_0x200cd3=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5d2e18(_0x5e2af2['document'],'uc-config',{..._0x2e4cd9,'pubkey':_0x200cd3,'ctx-name':'uploader','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']=_0x52173e=>{if('closeMax'==_0x52173e)return'#uc-icon-arrow-down';},_0x5e2af2['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5d2e18(_0x5e2af2['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x5e2af2['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4e0373=this['editor']['commands']['get']('insertImage');_0x4e0373&&this['listenTo'](_0x4e0373,'execute',()=>{const _0x122511=this['editor']['model']['document']['selection']['getSelectedElement']();_0x122511&&_0x122511['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x122511);});});const _0x3ded2b=this['editor']['commands']['get']('uploadcareImageReplace');_0x3ded2b&&this['listenTo'](_0x3ded2b,'execute',()=>{const _0x2297e7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2297e7&&_0x2297e7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2297e7);});});}}class u extends _0x46108d{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b3418){super(_0x4b3418),_0x4b3418['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x3e0bc2['defineComponents'](_0x3e0bc2);}}class ta extends _0x1d3b0d{constructor(_0x3cb5b2){super(_0x3cb5b2);const t=_0x3cb5b2['t'],_0x5a42d8=this['bindTemplate'],_0x20e72c=new _0x3a5a3f();_0x20e72c['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':[_0x20e72c,{'text':_0x5a42d8['to']('imageUploadProgress',_0x3c15ed=>t('Loading\x20image...')+'\x20('+(_0x3c15ed||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 rt extends _0x1d3b0d{constructor(_0x52631e){super(_0x52631e);const t=_0x52631e['t'];this['set']('errorType',null);const _0x5917e0=new _0x271c32(_0x52631e);_0x5917e0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5917e0['withText']=!0x0,_0x5917e0['class']='ck-button-action',_0x5917e0['on']('execute',()=>{this['fire']('retry');}),_0x5917e0['bind']('isVisible')['to'](this,'errorType',_0xe4455d=>'NotFound'!==_0xe4455d);const _0x1ddce8=new at();_0x1ddce8['content']=et,_0x1ddce8['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1a686c=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':[_0x1ddce8,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1a686c['to']('errorType',_0x21b5e7=>t('NotFound'!==_0x21b5e7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5917e0]},{'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 tt extends _0x1d3b0d{constructor(_0x1317a1,_0x38db43){super(_0x1317a1);const _0x261b89=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x38db43,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x261b89['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5365a8,_0x3a3ec2,_0xc395f3){super(_0x5365a8),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x5365a8),this['_errorView']=new rt(_0x5365a8),this['_editingView']=new tt(_0x5365a8,_0xc395f3),this['_focusableView']=new _0x1d3b0d(_0x5365a8),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3a3ec2),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'],_0x2704c0=>{this['_addUploadcareImageEditorListeners'](_0x2704c0);});}),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'](_0x408d79,_0x2b389a){const _0x5810c6='uc-cloud-image-editor',_0x101486=_0x408d79['querySelector'](_0x5810c6);if(_0x101486)return _0x2b389a(_0x101486);const _0x1f485d=new MutationObserver(_0x210b79=>{const _0x992cf5=_0x210b79['filter'](_0xc1c5ac=>_0xc1c5ac['target']===_0x408d79&&_0xc1c5ac['addedNodes']['length']>0x0&&_0xc1c5ac['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5810c6);_0x992cf5['length']&&(_0x1f485d['disconnect'](),_0x2b389a(_0x992cf5[0x0]['addedNodes'][0x0]));});_0x1f485d['observe'](_0x408d79,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5d5424){_0x5d5424['addEventListener']('apply',_0x54e12c=>{this['fire']('apply',{'imageSrc':_0x54e12c['detail']['cdnUrl']});}),_0x5d5424['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x279a61(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1549a5,_0x17d278,_0x2274b2){super(),this['_editor']=_0x1549a5,this['_dialog']=_0x17d278,this['_imageElement']=_0x2274b2,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 _0x3fd069=this['_imageElement'],_0x165764=_0x3fd069['getAttribute']('uploadcareImageId'),_0xdf2151=_0x3fd069['getAttribute']('src');if(_0x165764)await this['_loadImageInfo'](_0x165764,_0xdf2151);else{if(this['_imageCache']['has'](_0xdf2151)){const _0x57c095=this['_imageCache']['get'](_0xdf2151);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x57c095['url'],this['imageDimension']=_0x57c095['dimension'],this['imageId']=_0x57c095['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3320be}=this['_editor'],t=_0x3320be['t'],_0x44e07c=new Z(_0x3320be,this['imageStatus'],this['_attributes']);_0x44e07c['bind']('status')['to'](this,'imageStatus'),_0x44e07c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x44e07c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x44e07c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x44e07c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1747b9,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x44e07c,'position':_0x235f27['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x44e07c['focus']();},'onHide':()=>{_0x44e07c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x42cdfb=>!F(_0x42cdfb,_0x44e07c['element'])}});}['_loadImageInfo'](_0x5757cd,_0x33d405){return C['getInfo'](_0x5757cd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x31178e=>{const {width:_0x296cb4,height:_0x727a2d}=_0x31178e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33d405,this['imageDimension']={'width':_0x296cb4,'height':_0x727a2d},this['imageId']=_0x5757cd;})['catch'](_0x49b291=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x49b291['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x211030,_0x2ece61){return this['_getImageAsFile'](_0x211030)['then'](_0x5e1fc1=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2ece61['signal'],'file':_0x5e1fc1,'onProgress':_0xeca0fd=>{_0xeca0fd&&_0xeca0fd['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xeca0fd['value']));}}))['then'](_0x426819=>{const {width:_0x4e3d4d,height:_0x184ede}=_0x426819['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x426819['cdnUrl'],this['imageDimension']={'width':_0x4e3d4d,'height':_0x184ede},this['imageId']=_0x426819['uuid'],this['imageUploadProgress']=null;const _0x341009=_0x211030['getAttribute']('src');this['_imageCache']['set'](_0x341009,{'id':_0x426819['uuid'],'url':_0x426819['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x12f810=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x12f810['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xebb969,_0x44c498){_0xebb969['on']('apply',(_0x203e6b,_0x5dca08)=>{this['_replaceImage'](_0x44c498,_0x5dca08['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xebb969['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xebb969['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5bb821,_0x39b91f,_0x269976){const _0x40acb8=this['_editor'],{width:_0x3ad30c,height:_0x5879f}=A(_0x39b91f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2d5665,imageSources:_0x2e725c}=E(_0x39b91f,_0x3ad30c);_0x40acb8['model']['change'](_0x1e2859=>{if('$graveyard'===_0x5bb821['root']['rootName']){_0x40acb8['execute']('insertImage',{'imageType':_0x5bb821['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5bb821['getAttributes']()),'uploadcareImageId':_0x269976,'src':_0x2d5665,'sources':_0x2e725c,'width':_0x3ad30c,'height':_0x5879f}});const _0x500d31=_0x5bb821['getChildren']();_0x5bb821=_0x40acb8['model']['document']['selection']['getSelectedElement']();for(const _0x2cdc0f of _0x500d31)_0x1e2859['append'](_0x1e2859['cloneElement'](_0x2cdc0f),_0x5bb821);}else _0x1e2859['setSelection'](_0x5bb821,'on'),_0x40acb8['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5bb821['getAttributes']()),'uploadcareImageId':_0x269976,'src':_0x2d5665,'sources':_0x2e725c,'width':_0x3ad30c,'height':_0x5879f},_0x5bb821);_0x1e2859['setSelection'](_0x5bb821,'on');});}async['_getImageAsFile'](_0x5070e3){const _0x5a033c=_0x5e2af2['window'],_0x8ff581=_0x5e2af2['document']['location']['href'],_0x1ac34b=new _0x5a033c['URL'](_0x5070e3['getAttribute']('src'),_0x8ff581);if('data:'===_0x1ac34b['protocol']){const _0x1ac11e=_0x1ac34b['href']['split'](','),_0x4f85fc=_0x1ac11e[0x0]['match'](/:(.*?);/)[0x1],_0xa870c=_0x4f85fc['split']('/')[0x1],_0xcc0789=_0x5a033c['atob'](_0x1ac11e[_0x1ac11e['length']-0x1]);let _0x383880=_0xcc0789['length'];const _0x209fcb=new _0x5a033c['Uint8Array'](_0x383880);for(;_0x383880--;)_0x209fcb[_0x383880]=_0xcc0789['charCodeAt'](_0x383880);return new _0x5a033c['File']([_0x209fcb],'image.'+_0xa870c,{'type':_0x4f85fc});}const _0x354b5d=_0x1ac34b['href']['split']('/'),_0x70eef2=_0x354b5d[_0x354b5d['length']-0x1],_0x16c670=_0x70eef2['split']('.')[0x1];return _0x5a033c['fetch'](_0x1ac34b['href'])['then'](_0x5a39a0=>_0x5a39a0['clone']()['blob']())['then'](_0x5c06b9=>new _0x5a033c['File']([_0x5c06b9],_0x70eef2,{'type':'image/'+_0x16c670}));}}class J extends _0x1fb8a4{['imageEditController'];static get['requires'](){return[_0x35bec4];}['_isEditable'];constructor(_0x596378){super(_0x596378),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x903738){const _0x2fbb45=V(_0x903738);return _0x1fa121=>!(!_0x1fa121||!_0x1fa121['is']('element','imageBlock')&&!_0x1fa121['is']('element','imageInline'))&&(!!_0x1fa121['hasAttribute']('uploadcareImageId')||!!_0x1fa121['hasAttribute']('src')&&_0x2fbb45(_0x1fa121['getAttribute']('src')));}(_0x596378['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x8e32c6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x8e32c6);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2a9258=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a9258&&(_0x2a9258['is']('element','imageBlock')||_0x2a9258['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x35bec4),_0x2a9258),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1fb8a4{['refresh'](){const _0x20b5f6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x20b5f6&&(_0x20b5f6['is']('element','imageBlock')||_0x20b5f6['is']('element','imageInline')));}['execute'](_0x37ca9c){const _0x51d88b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x275ed4=>{_0x275ed4['setAttributes'](_0x37ca9c,_0x51d88b),_0x275ed4['removeAttribute']('srcset',_0x51d88b),_0x275ed4['removeAttribute']('sizes',_0x51d88b);});}}class g extends _0x46108d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x5b606b,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x772d0b}=this;_0x772d0b['commands']['add']('uploadcareImageEdit',new J(_0x772d0b)),_0x772d0b['commands']['add']('uploadcareImageReplace',new O(_0x772d0b));}}class j extends _0x46108d{['_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 _0x567cd6=this['editor'];_0x567cd6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2b23c7=>{const _0x4095f8=_0x567cd6['commands']['get']('uploadcareImageEdit'),_0x3cdff6=new _0x271c32(_0x2b23c7),t=_0x2b23c7['t'];return _0x3cdff6['set']({'icon':_0x1747b9,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3cdff6['bind']('isEnabled')['to'](_0x4095f8),_0x3cdff6['bind']('isOn')['to'](_0x4095f8,'isActive'),this['listenTo'](_0x3cdff6,'execute',()=>{_0x567cd6['execute']('uploadcareImageEdit'),_0x567cd6['editing']['view']['focus']();}),_0x3cdff6;}),this['_initConfig']();}['_initConfig'](){const _0x1c41eb=_0x5d2e18(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1c41eb),this['listenTo'](this['editor'],'destroy',()=>{_0x1c41eb['remove']();});}}class P extends _0x46108d{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x346009,Command as _0xfe0b04}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x575425,IconGooglePhotos as _0x492fcc,IconGoogleDrive as _0x3e589a,IconFacebook as _0x352a62,IconDropbox as _0x36ff64,IconUploadcareLink as _0x4e4891,IconUploadcareImageUpload as _0xe780fd,IconError as et,IconUploadcareImageEdit as _0x3d0a90}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x6245c7,MenuBarMenuListItemButtonView as _0x44317d,View as _0x396167,FocusCycler as _0x50114d,Dialog as _0x5beb81,DialogViewPosition as _0x43adb5,SpinnerView as _0x37bdcb,IconView as at,Notification as _0x44616c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4f975b,DomEmitterMixin as _0x4fe34c,global as _0xfc21a3,getAncestors as _0x3764ad,ObservableMixin as _0x28dd8c,createElement as _0x52c709,uid as _0x131c4f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x23de0e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x138f5a,info as _0x383da7}from'@uploadcare/upload-client';import*as _0x1bc5d5 from'@uploadcare/file-uploader';var o=function(_0x397ef6){return _0x397ef6['Local']='local',_0x397ef6['URL']='url',_0x397ef6['Dropbox']='dropbox',_0x397ef6['GDrive']='gdrive',_0x397ef6['Facebook']='facebook',_0x397ef6['GPhotos']='gphotos',_0x397ef6['OneDrive']='onedrive',_0x397ef6;}({});function _(_0x54fcbe,_0x574acc,_0x3ebb40){const t=_0x54fcbe['t'],_0x53b424=_0x54fcbe['t'];switch(_0x574acc){case o['Local']:return{'text':_0x53b424('Insert'===_0x3ebb40?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x53b424('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x3ebb40?_0x53b424('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x53b424('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x3ebb40?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x3ebb40?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x3ebb40?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x3ebb40?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x3ebb40?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x574acc;}}class e extends _0x346009{['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 _0x327548=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4232ea;for(const _0x5485bd in _0x327548){const _0x2dab02=_0x5485bd,_0x28b55f=_0x327548[_0x2dab02];if('uploadcareLicenseKeyValid'==_0x28b55f||'uploadcareLicenseKeyInvalid'==_0x28b55f||'uploadcareLicenseKeyExpired'==_0x28b55f||'uploadcareLicenseKeyDomainLimit'==_0x28b55f||'uploadcareLicenseKeyNotAllowed'==_0x28b55f||'uploadcareLicenseKeyEvaluationLimit'==_0x28b55f||'uploadcareLicenseKeyTrialLimit'==_0x28b55f||'uploadcareLicenseKeyUsageLimit'==_0x28b55f){delete _0x327548[_0x2dab02],_0x4232ea=_0x28b55f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4232ea&&_0x327548['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4232ea&&_0x327548['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4232ea&&_0x327548['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4232ea&&_0x327548['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4232ea&&_0x327548['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4232ea&&_0x327548['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4232ea&&_0x327548['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x541371}=this,_0x2cb497=_0x541371['commands']['get']('uploadcare');if(!_0x2cb497)return;const _0x3a4d1a=this['_normalizeConfigSourceList'](_0x541371['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xd5ed7a,_0x4f5c1d)=>{const _0x5bf492=this['_getIntegrationKey'](_0x4f5c1d['type']);return _0xd5ed7a[_0x5bf492]||(_0xd5ed7a[_0x5bf492]=[]),_0xd5ed7a[_0x5bf492]['push'](_0x4f5c1d),_0xd5ed7a;},{});_0x541371['plugins']['has']('ImageInsertUI')&&_0x541371['commands']['get']('uploadcare')&&Object['entries'](_0x3a4d1a)['forEach'](([_0x2dbaa0,_0x29aa38])=>{_0x541371['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2dbaa0,'observable':()=>_0x2cb497,'buttonViewCreator':()=>this['_createToolbarButton'](_0x29aa38),'formViewCreator':()=>this['_createDropdownButtons'](_0x29aa38),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x29aa38),'override':'assetManager'!==_0x2dbaa0});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x380cba){const {locale:_0x2e681d}=this['editor'];return _0x380cba['map'](_0x44e72e=>{const _0xfb6683=_(_0x2e681d,_0x44e72e,'Insert');switch(_0x44e72e){case o['Local']:return{'icon':_0xe780fd,'type':o['Local'],..._0xfb6683};case o['URL']:return{'icon':_0x4e4891,'type':o['URL'],..._0xfb6683};case o['Dropbox']:return{'icon':_0x36ff64,'type':o['Dropbox'],..._0xfb6683};case o['Facebook']:return{'icon':_0x352a62,'type':o['Facebook'],..._0xfb6683};case o['GDrive']:return{'icon':_0x3e589a,'type':o['GDrive'],..._0xfb6683};case o['GPhotos']:return{'icon':_0x492fcc,'type':o['GPhotos'],..._0xfb6683};case o['OneDrive']:return{'icon':_0x575425,'type':o['OneDrive'],..._0xfb6683};}});}['_getIntegrationKey'](_0x37fddb){switch(_0x37fddb){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x10c7eb,_0xa1b673){const _0x3c70ce=this['editor'],_0x41ccb0=new _0x10c7eb(_0x3c70ce['locale']),_0x43ef1b=_0x3c70ce['commands']['get']('uploadcare');return _0x41ccb0['bind']('isEnabled')['to'](_0x43ef1b),_0x41ccb0['on']('execute',()=>{_0x43ef1b['execute'](_0xa1b673);}),_0x41ccb0;}['_createToolbarButton'](_0x49dad4){const {locale:_0x8659aa}=this['editor'],_0x5722c3=this['editor']['plugins']['get']('ImageInsertUI'),_0x59a599=_0x49dad4[0x0],_0x25fea4=this['_createButton'](_0x6245c7,_0x59a599['type']);return _0x25fea4['icon']=_0x59a599['icon'],_0x25fea4['bind']('label')['to'](_0x5722c3,'isImageSelected',_0x563062=>_(_0x8659aa,_0x59a599['type'],_0x563062?'Replace':'Insert')['text']),_0x25fea4['tooltip']=!0x0,_0x25fea4;}['_createDropdownButtons'](_0x4a1856){const {locale:_0x3bdeb4}=this['editor'],_0x45a42a=this['editor']['plugins']['get']('ImageInsertUI');return _0x4a1856['map'](_0x19654b=>{const _0x523c38=this['_createButton'](_0x6245c7,_0x19654b['type']);return _0x523c38['withText']=!0x0,_0x523c38['icon']=_0x19654b['icon'],_0x523c38['bind']('label')['to'](_0x45a42a,'isImageSelected',_0x3338cf=>_(_0x3bdeb4,_0x19654b['type'],_0x3338cf?'Replace':'Insert')['text']),_0x523c38;});}['_createMenuBarButtons'](_0x59059b){return _0x59059b['map'](_0x4bdec8=>{const _0x550875=this['_createButton'](_0x44317d,_0x4bdec8['type']);return _0x550875['icon']=_0x4bdec8['icon'],_0x550875['label']=_0x4bdec8['shortText'],_0x550875;});}}class q extends _0x396167{['focusTracker'];['focusCycler'];constructor(_0x4fcc4d){super(_0x4fcc4d),this['focusTracker']=new _0x4f975b(),this['focusCycler']=new _0x50114d({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0xa369dc){super(_0xa369dc),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x43604a,_0xfdc98f){const _0x29d120=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4fbea3=>_0x4fbea3<=_0xfdc98f)['map'](_0x1f064e=>_0x43604a['replace'](/\/$/,'')+'/-/resize/'+_0x1f064e+'x/\x20'+_0x1f064e+'w');return{'imageFallbackUrl':_0x43604a,'imageSources':[{'srcset':_0x29d120['join'](',\x20'),'sizes':'(max-width:\x20'+_0xfdc98f+'px)\x20100vw,\x20'+_0xfdc98f+'px','type':'image/webp'}]};}function A(_0x1d0ea4,_0x15a67b,_0x281807){const _0x2c4cac=_0x1d0ea4['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2c4cac?parseInt(_0x2c4cac[0x1],0xa):_0x15a67b,'height':_0x2c4cac?parseInt(_0x2c4cac[0x2],0xa):_0x281807};}function m(_0x6ab10a,_0x514e3f){const _0x366ac7=Object['create'](_0x4fe34c),_0x6aec6b=_0x6ab10a['plugins']['get']('ImageUtils'),_0x1d6db2=_0x6ab10a['editing']['mapper']['toViewElement'](_0x514e3f),_0x2b6183=_0x6aec6b['findViewImgElement'](_0x1d6db2),_0x3afb85=_0x6ab10a['editing']['view']['domConverter']['viewToDom'](_0x2b6183),_0x36306e=_0x514e3f['getAttribute']('width'),_0x23730d=_0x514e3f['getAttribute']('height'),_0x45d399='image-processing';_0x6ab10a['editing']['view']['change'](_0xc6dc5a=>{_0xc6dc5a['addClass'](_0x45d399,_0x1d6db2),_0xc6dc5a['setStyle']('aspect-ratio',_0x36306e+'/'+_0x23730d,_0x2b6183);}),_0x366ac7['listenTo'](_0x3afb85,'load',()=>{_0x366ac7['stopListening'](_0x3afb85,'load'),_0x6ab10a['editing']['view']['change'](_0x42157d=>{_0x42157d['removeClass'](_0x45d399,_0x1d6db2),_0x42157d['removeStyle']('aspect-ratio',_0x2b6183);});});}function V(_0x97beda){if(Array['isArray'](_0x97beda)){const _0x5db2f2=_0x97beda['map'](V);return _0x23f7a0=>_0x5db2f2['some'](_0x4d6b62=>_0x4d6b62(_0x23f7a0));}if('origin'==_0x97beda){const _0x5a0915=_0xfc21a3['window']['location']['origin'];return _0x1648eb=>new URL(_0x1648eb,_0xfc21a3['document']['baseURI'])['origin']==_0x5a0915;}return'function'==typeof _0x97beda?_0x97beda:_0x97beda instanceof RegExp?_0x383e1e=>!(!_0x383e1e['match'](_0x97beda)&&!_0x383e1e['replace'](/^https?:\/\//,'')['match'](_0x97beda)):()=>!0x1;}function F(_0x2d9ff7,_0x2f0d6e){return _0x3764ad(_0x2d9ff7['target'])['includes'](_0x2f0d6e);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x28dd8c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5b974a,_0x5fa0b3,_0x5796bf){super(),this['_editor']=_0x5b974a,this['_editing']=_0x5fa0b3,this['_dialog']=_0x5b974a['plugins']['get'](_0x5beb81),this['_api']=_0x5fa0b3['ctxElement']['getAPI'](),this['_type']=_0x5796bf,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:_0x247b7a,model:_0x369953}=this['_editor'],_0x3437ef=_0x369953['document']['selection']['getSelectedElement'](),_0x49792d=_0x3437ef&&(_0x3437ef['is']('element','imageBlock')||_0x3437ef['is']('element','imageInline'));this['_formView']=new S(_0x247b7a),this['_dialog']['show']({'id':'uploadCare','icon':_0xe780fd,'title':_(_0x247b7a,this['_type'],_0x49792d?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x43adb5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x29256c=>!F(_0x29256c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3c3df3}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x564378=>{const _0x14e2ed=_0x3c3df3['length'];for(const _0xc72b8 of _0x3c3df3){const _0x56b4e6=_0xc72b8===_0x3c3df3[_0x14e2ed-0x1],{cdnUrl:_0xb31cc2,fileInfo:_0xfdcafb}=_0xc72b8;if(!_0xb31cc2||!_0xfdcafb)continue;const {width:_0x4de5f4,height:_0x2dd3c6}=_0xfdcafb['imageInfo'],_0x27e7bc=A(_0xb31cc2,_0x4de5f4,_0x2dd3c6),_0x4b65f6=E(_0xb31cc2,_0x27e7bc['width']),_0x38011d={'id':_0xfdcafb['uuid'],'type':'image','attributes':{'imageDimension':_0x27e7bc,..._0x4b65f6}};this['_insertAsset'](_0x38011d,_0x56b4e6,_0x564378);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x382aad=>{'idle'===_0x382aad['detail']['status']&&!_0x382aad['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5c9888,_0x336171,_0x2e79f0){const _0x35d23e=this['_editor']['model']['document']['selection'],_0x54a382=_0x35d23e['getSelectedElement'](),_0x537416=!(!_0x54a382||!_0x54a382['is']('element','imageInline'));_0x2e79f0['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5c9888,_0x537416),_0x336171||_0x2e79f0['setSelection'](_0x35d23e['getLastPosition']());}['_insertImage'](_0x34800c,_0x521d23){const _0x533f42=this['_editor'],{imageDimension:_0x794d5a,imageFallbackUrl:_0x13230b,imageSources:_0x28582a}=_0x34800c['attributes'];_0x533f42['execute']('insertImage',{'imageType':_0x521d23?'imageInline':null,'source':{'uploadcareImageId':_0x34800c['id'],'src':_0x13230b,'sources':_0x28582a,..._0x794d5a}});}}class n extends _0xfe0b04{['_editing'];['_controller']=null;static get['requires'](){return[_0x5beb81,i];}constructor(_0x11d1f1){super(_0x11d1f1),this['_editing']=_0x11d1f1['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x55720e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x55720e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x34bca0,publicKey:_0x31a5a5,signal:_0x59bcd4,onProgress:_0x24d6fe}){return _0x138f5a(_0x34bca0,{'publicKey':_0x31a5a5,'store':'auto','signal':_0x59bcd4,'onProgress':_0x24d6fe});}static['getInfo'](_0x5d78e3,_0xecd759){return _0x383da7(_0x5d78e3,_0xecd759);}}class p extends _0x346009{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x23de0e,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x631095=this['editor'];if(!!!_0x631095['config']['get']('uploadcare'))return;_0x631095['plugins']['get'](_0x23de0e)['createUploadAdapter']=_0xbf9f14=>new x(_0xbf9f14,_0x631095),_0x631095['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x6579b5,{imageElement:_0x4e1f8d,data:_0x14998a})=>{_0x631095['model']['change'](_0x4daaff=>{_0x4daaff['setAttribute']('uploadcareImageId',_0x14998a['uploadcareImageId'],_0x4e1f8d);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x36f63e,_0x39afc2){this['loader']=_0x36f63e,this['editor']=_0x39afc2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x55e5c4=this['editor']['config']['get']('uploadcare.pubkey'),_0x416dba=await this['loader']['file'];return C['upload']({'file':_0x416dba,'publicKey':_0x55e5c4,'signal':this['controller']['signal'],'onProgress':_0x421e03=>{_0x421e03&&_0x421e03['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x421e03['value']);}})['then'](async _0x565634=>{const {imageFallbackUrl:_0x15a136,imageSources:_0x447a40}=E(_0x565634['cdnUrl'],_0x565634['imageInfo']['width']);return{'uploadcareImageId':_0x565634['uuid'],'default':_0x15a136,'sources':_0x447a40};})['catch'](()=>{const _0x4e1c02=t('Cannot\x20upload\x20file:')+('\x20'+_0x416dba['name']+'.');return Promise['reject'](_0x4e1c02);});}['abort'](){this['controller']['abort']();}}class i extends _0x346009{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x5beb81];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x247f6b=this['editor'];_0x247f6b['commands']['add']('uploadcare',new n(_0x247f6b));}['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 _0x5677f7=_0xfc21a3['document']['querySelector']('input[uploadcare-file-input]');_0x5677f7&&_0x5677f7['remove']();}),async function(_0x44b2aa){const _0x596b81=_0x3c1a18([0x5a,0x31,0x39,0x30,0x54,0x4e,0x79,0x49,0x6e,0x77,0x50,0x33,0x6f,0x4f,0x67,0x46,0x68,0x44,0x6c,0x47,0x56,0x37,0x70,0x58,0x48,0x42,0x7a,0x65,0x75,0x43,0x6a,0x57,0x72,0x51,0x59,0x4a,0x52,0x6b,0x32,0x41,0x53,0x76,0x63,0x78,0x36,0x45,0x74,0x55,0x73,0x69,0x62,0x4c,0x71,0x35,0x4d,0x66,0x34,0x38,0x64,0x4b,0x6d,0x61]),_0x276282=0x65b24ccd,_0xb1b3=0x65b52b6d^_0x276282,_0x52f366=window[_0x3c1a18([0x44,0x61,0x74,0x65])][_0x3c1a18([0x6e,0x6f,0x77])](),_0x52951e=_0x44b2aa[_0x3c1a18([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47351b=new window[(_0x3c1a18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43b982=>{_0x52951e[_0x3c1a18([0x6f,0x6e,0x63,0x65])](_0x3c1a18([0x72,0x65,0x61,0x64,0x79]),_0x43b982);}),_0x10e414={[_0x3c1a18([0x6b,0x74,0x79])]:_0x3c1a18([0x45,0x43]),[_0x3c1a18([0x75,0x73,0x65])]:_0x3c1a18([0x73,0x69,0x67]),[_0x3c1a18([0x63,0x72,0x76])]:_0x3c1a18([0x50,0x2d,0x32,0x35,0x36]),[_0x3c1a18([0x78])]:_0x3c1a18([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]),[_0x3c1a18([0x79])]:_0x3c1a18([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]),[_0x3c1a18([0x61,0x6c,0x67])]:_0x3c1a18([0x45,0x53,0x32,0x35,0x36])},_0x46fbb6=_0x52951e[_0x3c1a18([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c1a18([0x67,0x65,0x74])](_0x3c1a18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5cf2d6(){let _0x529f6b,_0x34a2a5=null,_0x234c18=null;try{if(_0x46fbb6==_0x3c1a18([0x47,0x50,0x4c]))return _0x3c1a18([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x529f6b=_0x4b9f3a(),!_0x529f6b)return _0x3c1a18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x529f6b[_0x3c1a18([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x234c18=_0x5e9fd2(_0x529f6b[_0x3c1a18([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x529f6b[_0x3c1a18([0x6a,0x74,0x69])])),await _0x2b4b91()?_0x21a8b4()?_0x4c79d4()?_0x3c1a18([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x21219a()?(_0x529f6b[_0x3c1a18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c1a18([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34a2a5=_0x2a610d(_0x3c1a18([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x529f6b[_0x3c1a18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c1a18([0x74,0x72,0x69,0x61,0x6c])&&(_0x34a2a5=_0x2a610d(_0x3c1a18([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4a2a0e()):_0x3c1a18([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c1a18([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c1a18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x28af4f){return _0x3c1a18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4c79d4(){const _0x325474=[_0x3c1a18([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c1a18([0x74,0x72,0x69,0x61,0x6c])][_0x3c1a18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x529f6b[_0x3c1a18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x52f366/0x3e8:0xe10*_0xb1b3;return _0x529f6b[_0x3c1a18([0x65,0x78,0x70])]<_0x325474;}function _0x21a8b4(){const _0x1c89d1=_0x529f6b[_0x3c1a18([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1c89d1&&(!!_0x1c89d1[_0x3c1a18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c1a18([0x2a]))||!!_0x1c89d1[_0x3c1a18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c1a18([0x55,0x50,0x4c,0x43])));}function _0x21219a(){const _0x5a12ef=_0x529f6b[_0x3c1a18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a12ef||0x0==_0x5a12ef[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58943f}=new URL(window[_0x3c1a18([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5a12ef[_0x3c1a18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58943f))return!0x0;const _0x47b0f4=_0x58943f[_0x3c1a18([0x73,0x70,0x6c,0x69,0x74])](_0x3c1a18([0x2e]));return _0x5a12ef[_0x3c1a18([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4cbc7c=>_0x4cbc7c[_0x3c1a18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c1a18([0x2a])))[_0x3c1a18([0x6d,0x61,0x70])](_0x61b386=>_0x61b386[_0x3c1a18([0x73,0x70,0x6c,0x69,0x74])](_0x3c1a18([0x2e])))[_0x3c1a18([0x73,0x6f,0x6d,0x65])](_0x4e96f6=>_0x47b0f4[_0x3c1a18([0x65,0x76,0x65,0x72,0x79])]((_0xb488b8,_0x67dcd6)=>_0x4e96f6[_0x67dcd6]===_0xb488b8||_0x4e96f6[_0x67dcd6]===_0x3c1a18([0x2a])));}function _0x4a2a0e(){return _0x34a2a5&&_0x234c18?new window[(_0x3c1a18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x418456,_0x34a566)=>{_0x34a2a5[_0x3c1a18([0x74,0x68,0x65,0x6e])](_0x418456,_0x34a566),_0x234c18[_0x3c1a18([0x74,0x68,0x65,0x6e])](_0x457159=>{_0x457159!=_0x3c1a18([0x56,0x61,0x6c,0x69,0x64])&&_0x418456(_0x457159);},_0x34a566);}):_0x34a2a5||_0x234c18||_0x3c1a18([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e9fd2(_0x47b57f,_0x57a481){return new window[(_0x3c1a18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54c710=>{if(_0x1d3af3())return _0x54c710(_0x3c1a18([0x56,0x61,0x6c,0x69,0x64]));_0x2b869c(),_0x52951e[_0x3c1a18([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c1a18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x232199=!0x1;const _0x4a3ec3=_0x131c4f();function _0x4230ab(_0x2ae25c){return!!_0x2ae25c&&(typeof _0x2ae25c===_0x3c1a18([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ae25c===_0x3c1a18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ae25c[_0x3c1a18([0x74,0x68,0x65,0x6e])]===_0x3c1a18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ae25c[_0x3c1a18([0x63,0x61,0x74,0x63,0x68])]===_0x3c1a18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5dcb2c(_0x37cb5a){_0x4e03bf(_0x37cb5a)[_0x3c1a18([0x74,0x68,0x65,0x6e])](_0x2d1ce6=>{if(!_0x2d1ce6||_0x2d1ce6[_0x3c1a18([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c1a18([0x6f,0x6b]))return _0x3c1a18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3dea5a(_0x53befc(_0x4a3ec3+_0x57a481))!=_0x2d1ce6[_0x3c1a18([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c1a18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c1a18([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c1a18([0x74,0x68,0x65,0x6e])](_0x25ae89=>(_0x4e19f3(),_0x25ae89),()=>{const _0x57720f=_0x15f8ae();return null==_0x57720f?(_0x4e19f3(),_0x3c1a18([0x56,0x61,0x6c,0x69,0x64])):_0x3c1a18(_0x52f366-_0x57720f>(0x41bec8cd^_0x276282)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c1a18([0x74,0x68,0x65,0x6e])](_0x54c710)[_0x3c1a18([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54c710(_0x3c1a18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x36e91e=0x6584a24d^_0x276282;function _0x4e19f3(){const _0x55d981=_0x3c1a18([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dea5a(_0x53befc(_0x47b57f)),_0x102451=_0x1858f5(_0x3dea5a(window[_0x3c1a18([0x4d,0x61,0x74,0x68])][_0x3c1a18([0x63,0x65,0x69,0x6c])](_0x52f366/_0x36e91e)));window[_0x3c1a18([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c1a18([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55d981,_0x102451);}function _0x15f8ae(){const _0x489e30=_0x3c1a18([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dea5a(_0x53befc(_0x47b57f)),_0x1d30bd=window[_0x3c1a18([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c1a18([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x489e30);return _0x1d30bd?window[_0x3c1a18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1858f5(_0x1d30bd),0x10)*_0x36e91e:null;}function _0x4e03bf(_0x3f6f6e){return new window[(_0x3c1a18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe0163a,_0x10409b)=>{_0x3f6f6e[_0x3c1a18([0x74,0x68,0x65,0x6e])](_0xe0163a,_0x10409b),window[_0x3c1a18([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x10409b,0x65b3980d^_0x276282);});}}_0x52951e[_0x3c1a18([0x6f,0x6e])](_0x3c1a18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x18f03b,_0x209e7d)=>{if(_0x209e7d[0x0]!=_0x47b57f)return _0x54c710(_0x3c1a18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x209e7d[0x1]={..._0x209e7d[0x1],[_0x3c1a18([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a3ec3};},{[_0x3c1a18([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c1a18([0x68,0x69,0x67,0x68])}),_0x52951e[_0x3c1a18([0x6f,0x6e])](_0x3c1a18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x12ae0b=>{_0x4230ab(_0x12ae0b[_0x3c1a18([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x232199=!0x0,_0x5dcb2c(_0x12ae0b[_0x3c1a18([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c1a18([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c1a18([0x6c,0x6f,0x77])}),_0x47351b[_0x3c1a18([0x74,0x68,0x65,0x6e])](()=>{_0x232199||_0x54c710(_0x3c1a18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1d3af3(){return _0x52951e[_0x3c1a18([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c1a18([0x76,0x69,0x65,0x77])][_0x3c1a18([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c1a18([0x61,0x75,0x74,0x6f]);}function _0x2b869c(){_0x52951e[_0x3c1a18([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c1a18([0x76,0x69,0x65,0x77])][_0x3c1a18([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c1a18([0x61,0x75,0x74,0x6f]);}}function _0x2a610d(_0x53da6e){const _0x3e2ef8=[new window[(_0x3c1a18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26c84a=>setTimeout(_0x26c84a,0x65bb7201^_0x276282)),_0x47351b[_0x3c1a18([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c1a18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x387407=>{let _0x1184e0=0x0;_0x52951e[_0x3c1a18([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c1a18([0x6f,0x6e])](_0x3c1a18([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x54f8ee,_0x20fe00)=>{_0x20fe00[0x0][_0x3c1a18([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1184e0++,_0x1184e0==(0x65b24d35^_0x276282)&&(_0x387407(),_0x54f8ee[_0x3c1a18([0x6f,0x66,0x66])]());});}))];return window[_0x3c1a18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c1a18([0x72,0x61,0x63,0x65])](_0x3e2ef8)[_0x3c1a18([0x74,0x68,0x65,0x6e])](()=>_0x53da6e);}async function _0x917264(){await _0x47351b,_0x52951e[_0x3c1a18([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c1a18([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x31ec38,_0x52951e[_0x3c1a18([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c1a18([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x31ec38,_0x52951e[_0x3c1a18([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c1a18([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x34fe38(_0x5f30e2){const _0x320369=_0x3387c4();_0x52951e[_0x320369]=_0x3c1a18([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5f30e2,_0x5f30e2!=_0x3c1a18([0x56,0x61,0x6c,0x69,0x64])&&_0x917264();}function _0x3387c4(){const _0x29f210=window[_0x3c1a18([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c1a18([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c1a18([0x6e,0x6f,0x77])]())[_0x3c1a18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c1a18([0x2e]),'');let _0x4f47e6=_0x3c1a18([0x5a]);for(let _0x22d7f8=0x0;_0x22d7f8<_0x29f210[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22d7f8+=0x2){let _0x40af97=window[_0x3c1a18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29f210[_0x3c1a18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22d7f8,_0x22d7f8+0x2));_0x40af97>=_0x596b81[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x40af97-=_0x596b81[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f47e6+=_0x596b81[_0x40af97];}return _0x4f47e6;}function _0x4b9f3a(){const _0x2f8b70=_0x46fbb6[_0x3c1a18([0x73,0x70,0x6c,0x69,0x74])](_0x3c1a18([0x2e]));if(0x3!=_0x2f8b70[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1360d6(_0x2f8b70[0x1]);function _0x1360d6(_0x20a881){const _0x388fbd=_0x57d682(_0x20a881);return _0x388fbd&&_0x2ce60f()?_0x388fbd:null;function _0x2ce60f(){const _0x5445a6=_0x388fbd[_0x3c1a18([0x6a,0x74,0x69])],_0x631c6f=window[_0x3c1a18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5445a6[_0x3c1a18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5445a6[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x45291d={..._0x388fbd,[_0x3c1a18([0x6a,0x74,0x69])]:_0x5445a6[_0x3c1a18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5445a6[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x45291d[_0x3c1a18([0x76,0x63])],_0x53befc(_0x45291d)==_0x631c6f;}}}async function _0x2b4b91(){let _0xdd980c=!0x0;try{const _0x455fe6=_0x46fbb6[_0x3c1a18([0x73,0x70,0x6c,0x69,0x74])](_0x3c1a18([0x2e])),[_0x1a440c,_0x50966d,_0x44a8e2]=_0x455fe6;return _0x11b2c0(_0x1a440c),await _0x20af26(_0x1a440c,_0x50966d,_0x44a8e2),_0xdd980c;}catch(_0x405530){return!0x1;}function _0x11b2c0(_0x52ec65){const _0x5ad05f=_0x57d682(_0x52ec65);_0x5ad05f&&_0x5ad05f[_0x3c1a18([0x61,0x6c,0x67])]==_0x3c1a18([0x45,0x53,0x32,0x35,0x36])||(_0xdd980c=!0x1);}async function _0x20af26(_0xeae732,_0xbc134a,_0xd6f397){const _0x49c15f=window[_0x3c1a18([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c1a18([0x66,0x72,0x6f,0x6d])](_0x37cdcc(_0xd6f397),_0xca002e=>_0xca002e[_0x3c1a18([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x103f08=new window[(_0x3c1a18([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c1a18([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xeae732+_0x3c1a18([0x2e])+_0xbc134a),_0x2233ba=window[_0x3c1a18([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c1a18([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2233ba)return;const _0x423570=await _0x2233ba[_0x3c1a18([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c1a18([0x6a,0x77,0x6b]),_0x10e414,{[_0x3c1a18([0x6e,0x61,0x6d,0x65])]:_0x3c1a18([0x45,0x43,0x44,0x53,0x41]),[_0x3c1a18([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c1a18([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c1a18([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2233ba[_0x3c1a18([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c1a18([0x6e,0x61,0x6d,0x65])]:_0x3c1a18([0x45,0x43,0x44,0x53,0x41]),[_0x3c1a18([0x68,0x61,0x73,0x68])]:{[_0x3c1a18([0x6e,0x61,0x6d,0x65])]:_0x3c1a18([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x423570,_0x49c15f,_0x103f08)||(_0xdd980c=!0x1);}}function _0x57d682(_0x22356d){return _0x22356d[_0x3c1a18([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c1a18([0x65,0x79]))?JSON[_0x3c1a18([0x70,0x61,0x72,0x73,0x65])](_0x37cdcc(_0x22356d)):null;}function _0x37cdcc(_0x3c11ee){return window[_0x3c1a18([0x61,0x74,0x6f,0x62])](_0x3c11ee[_0x3c1a18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c1a18([0x2b]))[_0x3c1a18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c1a18([0x2f])));}function _0x53befc(_0x3f0833){let _0x3f030c=0x1505;function _0x3e6e14(_0x429a00){for(let _0x26576f=0x0;_0x26576f<_0x429a00[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26576f++){const _0x10f0ba=_0x429a00[_0x3c1a18([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26576f);_0x3f030c=(_0x3f030c<<0x5)+_0x3f030c+_0x10f0ba,_0x3f030c&=_0x3f030c;}}function _0x31e491(_0x4ac9ad){Array[_0x3c1a18([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ac9ad)?_0x4ac9ad[_0x3c1a18([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x31e491):_0x4ac9ad&&typeof _0x4ac9ad==_0x3c1a18([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c1a18([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ac9ad)[_0x3c1a18([0x73,0x6f,0x72,0x74])]()[_0x3c1a18([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1de3dc,_0x4c4131])=>{_0x3e6e14(_0x1de3dc),_0x31e491(_0x4c4131);}):_0x3e6e14(window[_0x3c1a18([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ac9ad));}return _0x31e491(_0x3f0833),_0x3f030c>>>0x0;}function _0x3dea5a(_0x587b93){return _0x587b93[_0x3c1a18([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c1a18([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c1a18([0x30]));}function _0x1858f5(_0x180995){return _0x180995[_0x3c1a18([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c1a18([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c1a18([0x6a,0x6f,0x69,0x6e])]('');}function _0x31ec38(){}function _0x3c1a18(_0x4f03bc){return _0x4f03bc['map'](_0x25f6f8=>String['fromCharCode'](_0x25f6f8))['join']('');}_0x34fe38(await _0x5cf2d6());}(this);}['_initSchema'](){const _0x19d4d4=this['editor']['model']['schema'];_0x19d4d4['isRegistered']('imageBlock')&&_0x19d4d4['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x19d4d4['isRegistered']('imageInline')&&_0x19d4d4['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x27d735=this['editor'];_0x27d735['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x27d735['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x571ec8=>_0x571ec8['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x488765=_0x27d735['commands']['get']('replaceImageSource');_0x488765&&this['listenTo'](_0x488765,'cleanupImage',(_0x599025,[_0xd7b718,_0xb14687])=>{_0xd7b718['removeAttribute']('uploadcareImageId',_0xb14687);});}['_initConfig'](){const _0x4a2e05=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2b8696=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x52c709(_0xfc21a3['document'],'uc-config',{..._0x4a2e05,'pubkey':_0x2b8696,'ctx-name':'uploader','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']=_0x4e786=>{if('closeMax'==_0x4e786)return'#uc-icon-arrow-down';},_0xfc21a3['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x52c709(_0xfc21a3['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xfc21a3['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3d532e=this['editor']['commands']['get']('insertImage');_0x3d532e&&this['listenTo'](_0x3d532e,'execute',()=>{const _0x555aca=this['editor']['model']['document']['selection']['getSelectedElement']();_0x555aca&&_0x555aca['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x555aca);});});const _0x461cc3=this['editor']['commands']['get']('uploadcareImageReplace');_0x461cc3&&this['listenTo'](_0x461cc3,'execute',()=>{const _0x87958b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x87958b&&_0x87958b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x87958b);});});}}class u extends _0x346009{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b4da4){super(_0x3b4da4),_0x3b4da4['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x1bc5d5['defineComponents'](_0x1bc5d5);}}class ta extends _0x396167{constructor(_0xd3c23d){super(_0xd3c23d);const t=_0xd3c23d['t'],_0x114152=this['bindTemplate'],_0x40a2c0=new _0x37bdcb();_0x40a2c0['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':[_0x40a2c0,{'text':_0x114152['to']('imageUploadProgress',_0x434d8f=>t('Loading\x20image...')+'\x20('+(_0x434d8f||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 rt extends _0x396167{constructor(_0x25aa8e){super(_0x25aa8e);const t=_0x25aa8e['t'];this['set']('errorType',null);const _0x23050a=new _0x6245c7(_0x25aa8e);_0x23050a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x23050a['withText']=!0x0,_0x23050a['class']='ck-button-action',_0x23050a['on']('execute',()=>{this['fire']('retry');}),_0x23050a['bind']('isVisible')['to'](this,'errorType',_0x29ffdf=>'NotFound'!==_0x29ffdf);const _0x4f538b=new at();_0x4f538b['content']=et,_0x4f538b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3fba28=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':[_0x4f538b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3fba28['to']('errorType',_0x7ba6a=>t('NotFound'!==_0x7ba6a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x23050a]},{'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 tt extends _0x396167{constructor(_0xc313b3,_0x9a2c4d){super(_0xc313b3);const _0x54307f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x9a2c4d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x54307f['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xea4906,_0x3be932,_0x3561ac){super(_0xea4906),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0xea4906),this['_errorView']=new rt(_0xea4906),this['_editingView']=new tt(_0xea4906,_0x3561ac),this['_focusableView']=new _0x396167(_0xea4906),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3be932),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'],_0x1ababf=>{this['_addUploadcareImageEditorListeners'](_0x1ababf);});}),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'](_0x56ad89,_0x43af83){const _0x110ae4='uc-cloud-image-editor',_0x42102f=_0x56ad89['querySelector'](_0x110ae4);if(_0x42102f)return _0x43af83(_0x42102f);const _0x12824e=new MutationObserver(_0x15863e=>{const _0x18f432=_0x15863e['filter'](_0x36364b=>_0x36364b['target']===_0x56ad89&&_0x36364b['addedNodes']['length']>0x0&&_0x36364b['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x110ae4);_0x18f432['length']&&(_0x12824e['disconnect'](),_0x43af83(_0x18f432[0x0]['addedNodes'][0x0]));});_0x12824e['observe'](_0x56ad89,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2112b8){_0x2112b8['addEventListener']('apply',_0x3605ae=>{this['fire']('apply',{'imageSrc':_0x3605ae['detail']['cdnUrl']});}),_0x2112b8['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x28dd8c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x382520,_0x217e68,_0x45c58f){super(),this['_editor']=_0x382520,this['_dialog']=_0x217e68,this['_imageElement']=_0x45c58f,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 _0x29213c=this['_imageElement'],_0x56ef50=_0x29213c['getAttribute']('uploadcareImageId'),_0x115ba1=_0x29213c['getAttribute']('src');if(_0x56ef50)await this['_loadImageInfo'](_0x56ef50,_0x115ba1);else{if(this['_imageCache']['has'](_0x115ba1)){const _0x316edc=this['_imageCache']['get'](_0x115ba1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x316edc['url'],this['imageDimension']=_0x316edc['dimension'],this['imageId']=_0x316edc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x139500}=this['_editor'],t=_0x139500['t'],_0x12cff2=new Z(_0x139500,this['imageStatus'],this['_attributes']);_0x12cff2['bind']('status')['to'](this,'imageStatus'),_0x12cff2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x12cff2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x12cff2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x12cff2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3d0a90,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x12cff2,'position':_0x43adb5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x12cff2['focus']();},'onHide':()=>{_0x12cff2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xe61edb=>!F(_0xe61edb,_0x12cff2['element'])}});}['_loadImageInfo'](_0x5aced9,_0x4328d0){return C['getInfo'](_0x5aced9,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x360d86=>{const {width:_0x279c02,height:_0x2f2ad1}=_0x360d86['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4328d0,this['imageDimension']={'width':_0x279c02,'height':_0x2f2ad1},this['imageId']=_0x5aced9;})['catch'](_0x4a72c6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4a72c6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x110c06,_0x3f89dd){return this['_getImageAsFile'](_0x110c06)['then'](_0x33cb19=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3f89dd['signal'],'file':_0x33cb19,'onProgress':_0x1fe4e7=>{_0x1fe4e7&&_0x1fe4e7['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1fe4e7['value']));}}))['then'](_0x17c29e=>{const {width:_0x27be4f,height:_0x386425}=_0x17c29e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17c29e['cdnUrl'],this['imageDimension']={'width':_0x27be4f,'height':_0x386425},this['imageId']=_0x17c29e['uuid'],this['imageUploadProgress']=null;const _0x339552=_0x110c06['getAttribute']('src');this['_imageCache']['set'](_0x339552,{'id':_0x17c29e['uuid'],'url':_0x17c29e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xbc82d7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xbc82d7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3c217b,_0x2d850f){_0x3c217b['on']('apply',(_0x3f9efa,_0x5cf8b6)=>{this['_replaceImage'](_0x2d850f,_0x5cf8b6['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3c217b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3c217b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1af6bf,_0x7983cb,_0x13a149){const _0x12697d=this['_editor'],{width:_0x2c655e,height:_0x7e045}=A(_0x7983cb,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4a1e77,imageSources:_0x33f19d}=E(_0x7983cb,_0x2c655e);_0x12697d['model']['change'](_0x1d4d0c=>{if('$graveyard'===_0x1af6bf['root']['rootName']){_0x12697d['execute']('insertImage',{'imageType':_0x1af6bf['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1af6bf['getAttributes']()),'uploadcareImageId':_0x13a149,'src':_0x4a1e77,'sources':_0x33f19d,'width':_0x2c655e,'height':_0x7e045}});const _0x23ae3b=_0x1af6bf['getChildren']();_0x1af6bf=_0x12697d['model']['document']['selection']['getSelectedElement']();for(const _0x10aace of _0x23ae3b)_0x1d4d0c['append'](_0x1d4d0c['cloneElement'](_0x10aace),_0x1af6bf);}else _0x1d4d0c['setSelection'](_0x1af6bf,'on'),_0x12697d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1af6bf['getAttributes']()),'uploadcareImageId':_0x13a149,'src':_0x4a1e77,'sources':_0x33f19d,'width':_0x2c655e,'height':_0x7e045},_0x1af6bf);_0x1d4d0c['setSelection'](_0x1af6bf,'on');});}async['_getImageAsFile'](_0xc0cbe9){const _0x317468=_0xfc21a3['window'],_0x1c7c5c=_0xfc21a3['document']['location']['href'],_0x10359d=new _0x317468['URL'](_0xc0cbe9['getAttribute']('src'),_0x1c7c5c);if('data:'===_0x10359d['protocol']){const _0x41497e=_0x10359d['href']['split'](','),_0x5e942a=_0x41497e[0x0]['match'](/:(.*?);/)[0x1],_0x45b57f=_0x5e942a['split']('/')[0x1],_0x24cd37=_0x317468['atob'](_0x41497e[_0x41497e['length']-0x1]);let _0x5e701b=_0x24cd37['length'];const _0x217eee=new _0x317468['Uint8Array'](_0x5e701b);for(;_0x5e701b--;)_0x217eee[_0x5e701b]=_0x24cd37['charCodeAt'](_0x5e701b);return new _0x317468['File']([_0x217eee],'image.'+_0x45b57f,{'type':_0x5e942a});}const _0x18c2c5=_0x10359d['href']['split']('/'),_0x5d5408=_0x18c2c5[_0x18c2c5['length']-0x1],_0x5e5a7a=_0x5d5408['split']('.')[0x1];return _0x317468['fetch'](_0x10359d['href'])['then'](_0x440493=>_0x440493['clone']()['blob']())['then'](_0x1282a0=>new _0x317468['File']([_0x1282a0],_0x5d5408,{'type':'image/'+_0x5e5a7a}));}}class J extends _0xfe0b04{['imageEditController'];static get['requires'](){return[_0x5beb81];}['_isEditable'];constructor(_0x2fb198){super(_0x2fb198),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x185130){const _0x4ac2ed=V(_0x185130);return _0x61b1ac=>!(!_0x61b1ac||!_0x61b1ac['is']('element','imageBlock')&&!_0x61b1ac['is']('element','imageInline'))&&(!!_0x61b1ac['hasAttribute']('uploadcareImageId')||!!_0x61b1ac['hasAttribute']('src')&&_0x4ac2ed(_0x61b1ac['getAttribute']('src')));}(_0x2fb198['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x382629=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x382629);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x42daba=this['editor']['model']['document']['selection']['getSelectedElement']();_0x42daba&&(_0x42daba['is']('element','imageBlock')||_0x42daba['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x5beb81),_0x42daba),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xfe0b04{['refresh'](){const _0x20bd50=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x20bd50&&(_0x20bd50['is']('element','imageBlock')||_0x20bd50['is']('element','imageInline')));}['execute'](_0x356900){const _0x24b428=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x6e0ee4=>{_0x6e0ee4['setAttributes'](_0x356900,_0x24b428),_0x6e0ee4['removeAttribute']('srcset',_0x24b428),_0x6e0ee4['removeAttribute']('sizes',_0x24b428);});}}class g extends _0x346009{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x44616c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3f5ceb}=this;_0x3f5ceb['commands']['add']('uploadcareImageEdit',new J(_0x3f5ceb)),_0x3f5ceb['commands']['add']('uploadcareImageReplace',new O(_0x3f5ceb));}}class j extends _0x346009{['_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 _0x759e1e=this['editor'];_0x759e1e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4f3e1b=>{const _0x4a1caf=_0x759e1e['commands']['get']('uploadcareImageEdit'),_0x2fcf26=new _0x6245c7(_0x4f3e1b),t=_0x4f3e1b['t'];return _0x2fcf26['set']({'icon':_0x3d0a90,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2fcf26['bind']('isEnabled')['to'](_0x4a1caf),_0x2fcf26['bind']('isOn')['to'](_0x4a1caf,'isActive'),this['listenTo'](_0x2fcf26,'execute',()=>{_0x759e1e['execute']('uploadcareImageEdit'),_0x759e1e['editing']['view']['focus']();}),_0x2fcf26;}),this['_initConfig']();}['_initConfig'](){const _0x4ea24a=_0x52c709(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4ea24a),this['listenTo'](this['editor'],'destroy',()=>{_0x4ea24a['remove']();});}}class P extends _0x346009{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "45.1.0-alpha.
|
|
3
|
+
"version": "45.1.0-alpha.5",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "45.1.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "45.1.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "45.1.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "45.1.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "45.1.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "45.1.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "45.1.0-alpha.
|
|
33
|
-
"ckeditor5": "45.1.0-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "45.1.0-alpha.5",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "45.1.0-alpha.5",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "45.1.0-alpha.5",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "45.1.0-alpha.5",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "45.1.0-alpha.5",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "45.1.0-alpha.5",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "45.1.0-alpha.5",
|
|
33
|
+
"ckeditor5": "45.1.0-alpha.5",
|
|
34
34
|
"@uploadcare/file-uploader": "1.12.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.1"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x353952=_0x1450;(function(_0x549928,_0x388988){const _0x2aca4c=_0x1450,_0x5c4d77=_0x549928();while(!![]){try{const _0x2986b8=parseInt(_0x2aca4c(0xca))/0x1*(-parseInt(_0x2aca4c(0xe2))/0x2)+parseInt(_0x2aca4c(0xdb))/0x3+parseInt(_0x2aca4c(0xf8))/0x4*(parseInt(_0x2aca4c(0xe5))/0x5)+-parseInt(_0x2aca4c(0xef))/0x6+parseInt(_0x2aca4c(0xd8))/0x7*(-parseInt(_0x2aca4c(0xda))/0x8)+parseInt(_0x2aca4c(0xc8))/0x9*(-parseInt(_0x2aca4c(0xd9))/0xa)+parseInt(_0x2aca4c(0xc3))/0xb;if(_0x2986b8===_0x388988)break;else _0x5c4d77['push'](_0x5c4d77['shift']());}catch(_0x53743e){_0x5c4d77['push'](_0x5c4d77['shift']());}}}(_0x2833,0xf3630));import{Plugin as _0x3440d8}from'ckeditor5/src/core.js';import{Dialog as _0x3dc469}from'ckeditor5/src/ui.js';import{createElement as _0x215a46,global as _0x485e95,uid as _0x1dc6d9}from'ckeditor5/src/utils.js';import _0x4be9c4 from'./uploadcarecommand.js';function _0x2833(){const _0x18f004=['_ctxElement','getSelectedElement','closeMax','40447561uLonGX','attributeToAttribute','commands','uc-config','destroy','9546417nutlPI','extend','15JQSgCg','UploadcareEditing','downcast','view','selection','replaceImageSource','_initConfig','PictureEditing','isRegistered','map','once','imageInline','locale','afterInit','287sIeENl','10HXiOxN','285016ZraAHx','1999665zhcOjq','uploadcareImageReplace','uploadcare','appendChild','_configElement','fromCharCode','_initImageProcessingIndicator','243730OovWme','\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','listenTo','345yskcVk','uploadcare.uploader','for','_initConversion','true','isPremiumPlugin','contentLanguage','isOfficialPlugin','#uc-icon-arrow-down','schema','5859798ekJirQ','href','pluginName','input[uploadcare-file-input]','elementToAttribute','iconHrefResolver','configElement','execute','uploadcare.pubkey','114744yliHnx','join','remove','insertImage','uploader','cleanupImage','editing','uc-upload-ctx-provider','requires','_initCtx','document','getAttribute','config','querySelector','ctxElement','get','conversion','removeAttribute','upcast','model','data-uc-image-id','add','_initSchema','uploadcareImageId','editor','init','body','render','imageBlock'];_0x2833=function(){return _0x18f004;};return _0x2833();}import _0x10e2b1 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x42d47f}from'./utils/editingutils.js';function _0x1450(_0x62ba23,_0x4d65b7){const _0x28330c=_0x2833();return _0x1450=function(_0x14503e,_0x5d87b6){_0x14503e=_0x14503e-0xbb;let _0x53b63d=_0x28330c[_0x14503e];return _0x53b63d;},_0x1450(_0x62ba23,_0x4d65b7);}export default class i extends _0x3440d8{[_0x353952(0xdf)]=null;[_0x353952(0xc0)]=null;static get[_0x353952(0xf1)](){const _0x176bd2=_0x353952;return _0x176bd2(0xcb);}static get[_0x353952(0x100)](){const _0x1ea69d=_0x353952;return[_0x1ea69d(0xd1),_0x10e2b1,_0x3dc469];}static get[_0x353952(0xec)](){return!0x0;}static get[_0x353952(0xea)](){return!0x0;}get[_0x353952(0xf5)](){const _0x564659=_0x353952;return this[_0x564659(0xdf)];}get[_0x353952(0x106)](){const _0x4bd5dc=_0x353952;return this[_0x4bd5dc(0xc0)];}[_0x353952(0xbc)](){const _0x23a4db=_0x353952,_0xa71b85=this[_0x23a4db(0xbb)];_0xa71b85[_0x23a4db(0xc5)][_0x23a4db(0x10d)](_0x23a4db(0xdd),new _0x4be9c4(_0xa71b85));}[_0x353952(0xd7)](){const _0x8c06bf=_0x353952;this[_0x8c06bf(0x10e)](),this[_0x8c06bf(0xe8)](),this[_0x8c06bf(0xd0)](),this[_0x8c06bf(0x101)](),this[_0x8c06bf(0xe1)](),this[_0x8c06bf(0xe4)](this[_0x8c06bf(0xbb)],_0x8c06bf(0xc7),()=>{const _0x383235=_0x8c06bf;this[_0x383235(0xdf)]&&(this[_0x383235(0xdf)][_0x383235(0xfa)](),this[_0x383235(0xdf)]=null),this[_0x383235(0xc0)]&&(this[_0x383235(0xc0)][_0x383235(0xfa)](),this[_0x383235(0xc0)]=null);const _0x545592=_0x485e95[_0x383235(0x102)][_0x383235(0x105)](_0x383235(0xf2));_0x545592&&_0x545592[_0x383235(0xfa)]();}),async function(_0x176f7b){const _0x4fc556=_0x59cb3a([0x6b,0x47,0x7a,0x78,0x75,0x36,0x74,0x76,0x4b,0x79,0x66,0x52,0x63,0x64,0x4a,0x39,0x71,0x73,0x35,0x50,0x59,0x6c,0x38,0x58,0x43,0x62,0x53,0x37,0x69,0x56,0x46,0x45,0x70,0x77,0x31,0x72,0x4c,0x55,0x51,0x33,0x4d,0x57,0x44,0x5a,0x49,0x6f,0x41,0x32,0x48,0x34,0x68,0x4f,0x4e,0x6d,0x30,0x54,0x6a,0x65,0x67,0x6e,0x61,0x42]),_0x4d6cce=0x6dcfc38,_0x1bc7de=0x6db9b48^_0x4d6cce,_0xd8a8ed=window[_0x59cb3a([0x44,0x61,0x74,0x65])][_0x59cb3a([0x6e,0x6f,0x77])](),_0x5bafbf=_0x176f7b[_0x59cb3a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x427865=new window[(_0x59cb3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x569deb=>{_0x5bafbf[_0x59cb3a([0x6f,0x6e,0x63,0x65])](_0x59cb3a([0x72,0x65,0x61,0x64,0x79]),_0x569deb);}),_0xc4fccb={[_0x59cb3a([0x6b,0x74,0x79])]:_0x59cb3a([0x45,0x43]),[_0x59cb3a([0x75,0x73,0x65])]:_0x59cb3a([0x73,0x69,0x67]),[_0x59cb3a([0x63,0x72,0x76])]:_0x59cb3a([0x50,0x2d,0x32,0x35,0x36]),[_0x59cb3a([0x78])]:_0x59cb3a([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]),[_0x59cb3a([0x79])]:_0x59cb3a([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]),[_0x59cb3a([0x61,0x6c,0x67])]:_0x59cb3a([0x45,0x53,0x32,0x35,0x36])},_0x210587=_0x5bafbf[_0x59cb3a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59cb3a([0x67,0x65,0x74])](_0x59cb3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x764d93(){let _0x4a5219,_0x2f0a98=null,_0x51dd4b=null;try{if(_0x210587==_0x59cb3a([0x47,0x50,0x4c]))return _0x59cb3a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4a5219=_0x2514da(),!_0x4a5219)return _0x59cb3a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4a5219[_0x59cb3a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x51dd4b=_0x20152b(_0x4a5219[_0x59cb3a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4a5219[_0x59cb3a([0x6a,0x74,0x69])])),await _0x1297cf()?_0x12605c()?_0x235057()?_0x59cb3a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x28f7d8()?(_0x4a5219[_0x59cb3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59cb3a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2f0a98=_0x3b4412(_0x59cb3a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4a5219[_0x59cb3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59cb3a([0x74,0x72,0x69,0x61,0x6c])&&(_0x2f0a98=_0x3b4412(_0x59cb3a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5002e1()):_0x59cb3a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59cb3a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59cb3a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xd61180){return _0x59cb3a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x235057(){const _0x1dc140=[_0x59cb3a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59cb3a([0x74,0x72,0x69,0x61,0x6c])][_0x59cb3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a5219[_0x59cb3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd8a8ed/0x3e8:0xe10*_0x1bc7de;return _0x4a5219[_0x59cb3a([0x65,0x78,0x70])]<_0x1dc140;}function _0x12605c(){const _0xea6c2d=_0x4a5219[_0x59cb3a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xea6c2d&&(!!_0xea6c2d[_0x59cb3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59cb3a([0x2a]))||!!_0xea6c2d[_0x59cb3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59cb3a([0x55,0x50,0x4c,0x43])));}function _0x28f7d8(){const _0x280de0=_0x1450,_0x163184=_0x4a5219[_0x59cb3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x163184||0x0==_0x163184[_0x59cb3a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4b9daa}=new URL(window[_0x59cb3a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x280de0(0xf0)]);if(_0x163184[_0x59cb3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b9daa))return!0x0;const _0x2e4d81=_0x4b9daa[_0x59cb3a([0x73,0x70,0x6c,0x69,0x74])](_0x59cb3a([0x2e]));return _0x163184[_0x59cb3a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xabc5eb=>_0xabc5eb[_0x59cb3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59cb3a([0x2a])))[_0x59cb3a([0x6d,0x61,0x70])](_0x22e7ef=>_0x22e7ef[_0x59cb3a([0x73,0x70,0x6c,0x69,0x74])](_0x59cb3a([0x2e])))[_0x59cb3a([0x73,0x6f,0x6d,0x65])](_0x162a69=>_0x2e4d81[_0x59cb3a([0x65,0x76,0x65,0x72,0x79])]((_0x1a93c4,_0xc8fa79)=>_0x162a69[_0xc8fa79]===_0x1a93c4||_0x162a69[_0xc8fa79]===_0x59cb3a([0x2a])));}function _0x5002e1(){return _0x2f0a98&&_0x51dd4b?new window[(_0x59cb3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59fe16,_0x140baf)=>{_0x2f0a98[_0x59cb3a([0x74,0x68,0x65,0x6e])](_0x59fe16,_0x140baf),_0x51dd4b[_0x59cb3a([0x74,0x68,0x65,0x6e])](_0xffde15=>{_0xffde15!=_0x59cb3a([0x56,0x61,0x6c,0x69,0x64])&&_0x59fe16(_0xffde15);},_0x140baf);}):_0x2f0a98||_0x51dd4b||_0x59cb3a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x20152b(_0xc7f6b1,_0x521fec){return new window[(_0x59cb3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bc872=>{if(_0x3ae655())return _0x2bc872(_0x59cb3a([0x56,0x61,0x6c,0x69,0x64]));_0x2ffd48(),_0x5bafbf[_0x59cb3a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59cb3a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x18549a=!0x1;const _0x1cd9a3=_0x1dc6d9();function _0x105e80(_0x541e2a){return!!_0x541e2a&&(typeof _0x541e2a===_0x59cb3a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x541e2a===_0x59cb3a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x541e2a[_0x59cb3a([0x74,0x68,0x65,0x6e])]===_0x59cb3a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x541e2a[_0x59cb3a([0x63,0x61,0x74,0x63,0x68])]===_0x59cb3a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1494cb(_0x36fffb){_0x101273(_0x36fffb)[_0x59cb3a([0x74,0x68,0x65,0x6e])](_0x9fcf0e=>{if(!_0x9fcf0e||_0x9fcf0e[_0x59cb3a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59cb3a([0x6f,0x6b]))return _0x59cb3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x19f1e1(_0x31edc4(_0x1cd9a3+_0x521fec))!=_0x9fcf0e[_0x59cb3a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59cb3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59cb3a([0x56,0x61,0x6c,0x69,0x64]);})[_0x59cb3a([0x74,0x68,0x65,0x6e])](_0x3d81ea=>(_0x53f860(),_0x3d81ea),()=>{const _0x34c04a=_0x42c395();return null==_0x34c04a?(_0x53f860(),_0x59cb3a([0x56,0x61,0x6c,0x69,0x64])):_0x59cb3a(_0xd8a8ed-_0x34c04a>(0x22d07838^_0x4d6cce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59cb3a([0x74,0x68,0x65,0x6e])](_0x2bc872)[_0x59cb3a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2bc872(_0x59cb3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x580d36=0x6ea12b8^_0x4d6cce;function _0x53f860(){const _0x393c6d=_0x59cb3a([0x6c,0x6c,0x63,0x74,0x2d])+_0x19f1e1(_0x31edc4(_0xc7f6b1)),_0x3694bd=_0x24dcd4(_0x19f1e1(window[_0x59cb3a([0x4d,0x61,0x74,0x68])][_0x59cb3a([0x63,0x65,0x69,0x6c])](_0xd8a8ed/_0x580d36)));window[_0x59cb3a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59cb3a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x393c6d,_0x3694bd);}function _0x42c395(){const _0x1c67c5=_0x59cb3a([0x6c,0x6c,0x63,0x74,0x2d])+_0x19f1e1(_0x31edc4(_0xc7f6b1)),_0x2cd798=window[_0x59cb3a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59cb3a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c67c5);return _0x2cd798?window[_0x59cb3a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24dcd4(_0x2cd798),0x10)*_0x580d36:null;}function _0x101273(_0x42fe98){return new window[(_0x59cb3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x163c60,_0x4353d6)=>{_0x42fe98[_0x59cb3a([0x74,0x68,0x65,0x6e])](_0x163c60,_0x4353d6),window[_0x59cb3a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4353d6,0x6dd28f8^_0x4d6cce);});}}_0x5bafbf[_0x59cb3a([0x6f,0x6e])](_0x59cb3a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c75e7,_0x3d946c)=>{if(_0x3d946c[0x0]!=_0xc7f6b1)return _0x2bc872(_0x59cb3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d946c[0x1]={..._0x3d946c[0x1],[_0x59cb3a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1cd9a3};},{[_0x59cb3a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59cb3a([0x68,0x69,0x67,0x68])}),_0x5bafbf[_0x59cb3a([0x6f,0x6e])](_0x59cb3a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ef0be=>{_0x105e80(_0x3ef0be[_0x59cb3a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x18549a=!0x0,_0x1494cb(_0x3ef0be[_0x59cb3a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59cb3a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59cb3a([0x6c,0x6f,0x77])}),_0x427865[_0x59cb3a([0x74,0x68,0x65,0x6e])](()=>{_0x18549a||_0x2bc872(_0x59cb3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3ae655(){return _0x5bafbf[_0x59cb3a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59cb3a([0x76,0x69,0x65,0x77])][_0x59cb3a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59cb3a([0x61,0x75,0x74,0x6f]);}function _0x2ffd48(){_0x5bafbf[_0x59cb3a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59cb3a([0x76,0x69,0x65,0x77])][_0x59cb3a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59cb3a([0x61,0x75,0x74,0x6f]);}}function _0x3b4412(_0x270c6b){const _0x556254=[new window[(_0x59cb3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22ed2d=>setTimeout(_0x22ed2d,0x6d5c2f4^_0x4d6cce)),_0x427865[_0x59cb3a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59cb3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x416338=>{let _0x33766c=0x0;_0x5bafbf[_0x59cb3a([0x6d,0x6f,0x64,0x65,0x6c])][_0x59cb3a([0x6f,0x6e])](_0x59cb3a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x53688b,_0x2571cb)=>{_0x2571cb[0x0][_0x59cb3a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x33766c++,_0x33766c==(0x6dcfdc0^_0x4d6cce)&&(_0x416338(),_0x53688b[_0x59cb3a([0x6f,0x66,0x66])]());});}))];return window[_0x59cb3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59cb3a([0x72,0x61,0x63,0x65])](_0x556254)[_0x59cb3a([0x74,0x68,0x65,0x6e])](()=>_0x270c6b);}async function _0x54fc57(){await _0x427865,_0x5bafbf[_0x59cb3a([0x6d,0x6f,0x64,0x65,0x6c])][_0x59cb3a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4e21b3,_0x5bafbf[_0x59cb3a([0x6d,0x6f,0x64,0x65,0x6c])][_0x59cb3a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4e21b3,_0x5bafbf[_0x59cb3a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59cb3a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3cd27e(_0x432e87){const _0x438622=_0x1c92dc();_0x5bafbf[_0x438622]=_0x59cb3a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x432e87,_0x432e87!=_0x59cb3a([0x56,0x61,0x6c,0x69,0x64])&&_0x54fc57();}function _0x1c92dc(){const _0x40dbbf=window[_0x59cb3a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59cb3a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59cb3a([0x6e,0x6f,0x77])]())[_0x59cb3a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59cb3a([0x2e]),'');let _0x2903e3=_0x59cb3a([0x6b]);for(let _0x54c8c0=0x0;_0x54c8c0<_0x40dbbf[_0x59cb3a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54c8c0+=0x2){let _0x2e14a8=window[_0x59cb3a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40dbbf[_0x59cb3a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54c8c0,_0x54c8c0+0x2));_0x2e14a8>=_0x4fc556[_0x59cb3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2e14a8-=_0x4fc556[_0x59cb3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2903e3+=_0x4fc556[_0x2e14a8];}return _0x2903e3;}function _0x2514da(){const _0x4431d9=_0x210587[_0x59cb3a([0x73,0x70,0x6c,0x69,0x74])](_0x59cb3a([0x2e]));if(0x3!=_0x4431d9[_0x59cb3a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x182eaf(_0x4431d9[0x1]);function _0x182eaf(_0x543368){const _0x1ba153=_0x26cfd2(_0x543368);return _0x1ba153&&_0x5b3633()?_0x1ba153:null;function _0x5b3633(){const _0x4f8953=_0x1ba153[_0x59cb3a([0x6a,0x74,0x69])],_0x1b44c4=window[_0x59cb3a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f8953[_0x59cb3a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f8953[_0x59cb3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e704a={..._0x1ba153,[_0x59cb3a([0x6a,0x74,0x69])]:_0x4f8953[_0x59cb3a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4f8953[_0x59cb3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e704a[_0x59cb3a([0x76,0x63])],_0x31edc4(_0x4e704a)==_0x1b44c4;}}}async function _0x1297cf(){let _0x44bbd7=!0x0;try{const _0x1cf793=_0x210587[_0x59cb3a([0x73,0x70,0x6c,0x69,0x74])](_0x59cb3a([0x2e])),[_0x216383,_0x28d362,_0x330975]=_0x1cf793;return _0x46e03f(_0x216383),await _0x92c45(_0x216383,_0x28d362,_0x330975),_0x44bbd7;}catch(_0x2ae857){return!0x1;}function _0x46e03f(_0x2d094d){const _0x473304=_0x26cfd2(_0x2d094d);_0x473304&&_0x473304[_0x59cb3a([0x61,0x6c,0x67])]==_0x59cb3a([0x45,0x53,0x32,0x35,0x36])||(_0x44bbd7=!0x1);}async function _0x92c45(_0x35edd4,_0xf45efe,_0x36fb36){const _0x532339=window[_0x59cb3a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59cb3a([0x66,0x72,0x6f,0x6d])](_0x59ea9b(_0x36fb36),_0xaa9e8a=>_0xaa9e8a[_0x59cb3a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9ef4ee=new window[(_0x59cb3a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59cb3a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x35edd4+_0x59cb3a([0x2e])+_0xf45efe),_0x508b8b=window[_0x59cb3a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59cb3a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x508b8b)return;const _0x833777=await _0x508b8b[_0x59cb3a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59cb3a([0x6a,0x77,0x6b]),_0xc4fccb,{[_0x59cb3a([0x6e,0x61,0x6d,0x65])]:_0x59cb3a([0x45,0x43,0x44,0x53,0x41]),[_0x59cb3a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59cb3a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59cb3a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x508b8b[_0x59cb3a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59cb3a([0x6e,0x61,0x6d,0x65])]:_0x59cb3a([0x45,0x43,0x44,0x53,0x41]),[_0x59cb3a([0x68,0x61,0x73,0x68])]:{[_0x59cb3a([0x6e,0x61,0x6d,0x65])]:_0x59cb3a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x833777,_0x532339,_0x9ef4ee)||(_0x44bbd7=!0x1);}}function _0x26cfd2(_0x2b7623){return _0x2b7623[_0x59cb3a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59cb3a([0x65,0x79]))?JSON[_0x59cb3a([0x70,0x61,0x72,0x73,0x65])](_0x59ea9b(_0x2b7623)):null;}function _0x59ea9b(_0x11ffc2){return window[_0x59cb3a([0x61,0x74,0x6f,0x62])](_0x11ffc2[_0x59cb3a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59cb3a([0x2b]))[_0x59cb3a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59cb3a([0x2f])));}function _0x31edc4(_0x524ccd){let _0x5e64f2=0x1505;function _0x4dfb72(_0x1e73dc){for(let _0x20757b=0x0;_0x20757b<_0x1e73dc[_0x59cb3a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20757b++){const _0x5b97c6=_0x1e73dc[_0x59cb3a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x20757b);_0x5e64f2=(_0x5e64f2<<0x5)+_0x5e64f2+_0x5b97c6,_0x5e64f2&=_0x5e64f2;}}function _0x89a5b(_0x1ef43e){Array[_0x59cb3a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ef43e)?_0x1ef43e[_0x59cb3a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x89a5b):_0x1ef43e&&typeof _0x1ef43e==_0x59cb3a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59cb3a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ef43e)[_0x59cb3a([0x73,0x6f,0x72,0x74])]()[_0x59cb3a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27cb90,_0x2e690e])=>{_0x4dfb72(_0x27cb90),_0x89a5b(_0x2e690e);}):_0x4dfb72(window[_0x59cb3a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ef43e));}return _0x89a5b(_0x524ccd),_0x5e64f2>>>0x0;}function _0x19f1e1(_0x55a178){return _0x55a178[_0x59cb3a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59cb3a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59cb3a([0x30]));}function _0x24dcd4(_0x4228ea){return _0x4228ea[_0x59cb3a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59cb3a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59cb3a([0x6a,0x6f,0x69,0x6e])]('');}function _0x4e21b3(){}function _0x59cb3a(_0x30cab2){const _0x285ed4=_0x1450;return _0x30cab2[_0x285ed4(0xd3)](_0x3928cc=>String[_0x285ed4(0xe0)](_0x3928cc))[_0x285ed4(0xf9)]('');}_0x3cd27e(await _0x764d93());}(this);}[_0x353952(0x10e)](){const _0x185f81=_0x353952,_0x3251c0=this[_0x185f81(0xbb)][_0x185f81(0x10b)][_0x185f81(0xee)];_0x3251c0[_0x185f81(0xd2)](_0x185f81(0xbf))&&_0x3251c0[_0x185f81(0xc9)](_0x185f81(0xbf),{'allowAttributes':[_0x185f81(0x10f)]}),_0x3251c0[_0x185f81(0xd2)](_0x185f81(0xd5))&&_0x3251c0[_0x185f81(0xc9)](_0x185f81(0xd5),{'allowAttributes':[_0x185f81(0x10f)]});}[_0x353952(0xe8)](){const _0x16d5f2=_0x353952,_0x15ff2b=this[_0x16d5f2(0xbb)];_0x15ff2b[_0x16d5f2(0x108)][_0x16d5f2(0xe7)](_0x16d5f2(0xcc))[_0x16d5f2(0xc4)]({'model':_0x16d5f2(0x10f),'view':_0x16d5f2(0x10c)}),_0x15ff2b[_0x16d5f2(0x108)][_0x16d5f2(0xe7)](_0x16d5f2(0x10a))[_0x16d5f2(0xf3)]({'model':{'key':_0x16d5f2(0x10f),'value':_0x3a4b1b=>_0x3a4b1b[_0x16d5f2(0x103)](_0x16d5f2(0x10c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5cc3a1=_0x15ff2b[_0x16d5f2(0xc5)][_0x16d5f2(0x107)](_0x16d5f2(0xcf));_0x5cc3a1&&this[_0x16d5f2(0xe4)](_0x5cc3a1,_0x16d5f2(0xfd),(_0x764b5,[_0x160fc4,_0x2c97ce])=>{const _0x2cf911=_0x16d5f2;_0x160fc4[_0x2cf911(0x109)](_0x2cf911(0x10f),_0x2c97ce);});}[_0x353952(0xd0)](){const _0xb2de5a=_0x353952,_0x587b3a=this[_0xb2de5a(0xbb)][_0xb2de5a(0x104)][_0xb2de5a(0x107)](_0xb2de5a(0xe6))||{},_0x42416b=this[_0xb2de5a(0xbb)][_0xb2de5a(0x104)][_0xb2de5a(0x107)](_0xb2de5a(0xf7))||'';this[_0xb2de5a(0xdf)]=_0x215a46(_0x485e95[_0xb2de5a(0x102)],_0xb2de5a(0xc6),{..._0x587b3a,'pubkey':_0x42416b,'ctx-name':_0xb2de5a(0xfc),'sourceList':'','imgOnly':_0xb2de5a(0xe9),'removeCopyright':_0xb2de5a(0xe9),'localeName':this[_0xb2de5a(0xbb)][_0xb2de5a(0xd6)][_0xb2de5a(0xeb)],'externalSourcesEmbedCss':_0xb2de5a(0xe3)}),this[_0xb2de5a(0xdf)][_0xb2de5a(0xf4)]=_0x1715ef=>{const _0x394e9d=_0xb2de5a;if(_0x394e9d(0xc2)==_0x1715ef)return _0x394e9d(0xed);},_0x485e95[_0xb2de5a(0x102)][_0xb2de5a(0xbd)][_0xb2de5a(0xde)](this[_0xb2de5a(0xdf)]);}[_0x353952(0x101)](){const _0x216b97=_0x353952;this[_0x216b97(0xc0)]=_0x215a46(_0x485e95[_0x216b97(0x102)],_0x216b97(0xff),{'ctx-name':_0x216b97(0xfc)}),_0x485e95[_0x216b97(0x102)][_0x216b97(0xbd)][_0x216b97(0xde)](this[_0x216b97(0xc0)]);}[_0x353952(0xe1)](){const _0xbf1596=_0x353952,_0x3ccf29=this[_0xbf1596(0xbb)][_0xbf1596(0xc5)][_0xbf1596(0x107)](_0xbf1596(0xfb));_0x3ccf29&&this[_0xbf1596(0xe4)](_0x3ccf29,_0xbf1596(0xf6),()=>{const _0x14c797=_0xbf1596,_0x8d9a38=this[_0x14c797(0xbb)][_0x14c797(0x10b)][_0x14c797(0x102)][_0x14c797(0xce)][_0x14c797(0xc1)]();_0x8d9a38&&_0x8d9a38[_0x14c797(0x103)](_0x14c797(0x10f))&&this[_0x14c797(0xbb)][_0x14c797(0xfe)][_0x14c797(0xcd)][_0x14c797(0xd4)](_0x14c797(0xbe),()=>{const _0x1ae32e=_0x14c797;_0x42d47f(this[_0x1ae32e(0xbb)],_0x8d9a38);});});const _0x2e407e=this[_0xbf1596(0xbb)][_0xbf1596(0xc5)][_0xbf1596(0x107)](_0xbf1596(0xdc));_0x2e407e&&this[_0xbf1596(0xe4)](_0x2e407e,_0xbf1596(0xf6),()=>{const _0x455d0f=_0xbf1596,_0x1670fb=this[_0x455d0f(0xbb)][_0x455d0f(0x10b)][_0x455d0f(0x102)][_0x455d0f(0xce)][_0x455d0f(0xc1)]();_0x1670fb&&_0x1670fb[_0x455d0f(0x103)](_0x455d0f(0x10f))&&this[_0x455d0f(0xbb)][_0x455d0f(0xfe)][_0x455d0f(0xcd)][_0x455d0f(0xd4)](_0x455d0f(0xbe),()=>{const _0x1d9642=_0x455d0f;_0x42d47f(this[_0x1d9642(0xbb)],_0x1670fb);});});}}
|
|
23
|
+
const _0x562a78=_0x341c;(function(_0x18ba93,_0x5c38ad){const _0x1ca0e7=_0x341c,_0x52ba72=_0x18ba93();while(!![]){try{const _0x48890c=parseInt(_0x1ca0e7(0x13a))/0x1*(parseInt(_0x1ca0e7(0x142))/0x2)+-parseInt(_0x1ca0e7(0x12f))/0x3+parseInt(_0x1ca0e7(0x145))/0x4*(-parseInt(_0x1ca0e7(0x137))/0x5)+-parseInt(_0x1ca0e7(0x173))/0x6*(-parseInt(_0x1ca0e7(0x158))/0x7)+-parseInt(_0x1ca0e7(0x131))/0x8+-parseInt(_0x1ca0e7(0x127))/0x9*(-parseInt(_0x1ca0e7(0x149))/0xa)+-parseInt(_0x1ca0e7(0x167))/0xb*(-parseInt(_0x1ca0e7(0x132))/0xc);if(_0x48890c===_0x5c38ad)break;else _0x52ba72['push'](_0x52ba72['shift']());}catch(_0x11ac47){_0x52ba72['push'](_0x52ba72['shift']());}}}(_0x53c2,0x5eeba));import{Plugin as _0x46dc4e}from'ckeditor5/src/core.js';import{Dialog as _0x230e78}from'ckeditor5/src/ui.js';import{createElement as _0x356fb4,global as _0x579542,uid as _0x1b46d6}from'ckeditor5/src/utils.js';function _0x341c(_0x45f2f8,_0x44036b){const _0x53c242=_0x53c2();return _0x341c=function(_0x341c35,_0x51c40e){_0x341c35=_0x341c35-0x11e;let _0x294e8f=_0x53c242[_0x341c35];return _0x294e8f;},_0x341c(_0x45f2f8,_0x44036b);}import _0x164e4e from'./uploadcarecommand.js';import _0x3bfda7 from'./uploadcareuploadadapter.js';function _0x53c2(){const _0x19bbb1=['uploadcare','href','5fDZBSI','imageBlock','afterInit','636703WLzmeD','upcast','requires','selection','closeMax','isPremiumPlugin','insertImage','for','2jMZKpL','uploadcare.uploader','iconHrefResolver','2271176jSSZQj','_initCtx','fromCharCode','schema','2510XccPJq','true','PictureEditing','attributeToAttribute','document','_initImageProcessingIndicator','elementToAttribute','_ctxElement','data-uc-image-id','editor','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','config','replaceImageSource','editing','add','779457omouZe','get','join','querySelector','uploadcareImageReplace','listenTo','configElement','once','isRegistered','uploadcareImageId','_configElement','uploader','extend','uc-config','commands','4262005WumyHG','render','_initConfig','downcast','pluginName','model','cleanupImage','contentLanguage','uc-upload-ctx-provider','ctxElement','map','input[uploadcare-file-input]','18YiRfVU','_initSchema','_initConversion','#uc-icon-arrow-down','conversion','locale','UploadcareEditing','appendChild','init','destroy','5949QuYKRG','remove','isOfficialPlugin','imageInline','view','removeAttribute','getAttribute','body','1522698BccCkT','execute','3579384QUFhZk','24jwnKhU','uploadcare.pubkey','getSelectedElement'];_0x53c2=function(){return _0x19bbb1;};return _0x53c2();}import{showImageProcessingIndicator as _0x3d5b27}from'./utils/editingutils.js';export default class i extends _0x46dc4e{[_0x562a78(0x162)]=null;[_0x562a78(0x150)]=null;static get[_0x562a78(0x16b)](){const _0x30b648=_0x562a78;return _0x30b648(0x123);}static get[_0x562a78(0x13c)](){const _0x3b0935=_0x562a78;return[_0x3b0935(0x14b),_0x3bfda7,_0x230e78];}static get[_0x562a78(0x129)](){return!0x0;}static get[_0x562a78(0x13f)](){return!0x0;}get[_0x562a78(0x15e)](){const _0x937a8a=_0x562a78;return this[_0x937a8a(0x162)];}get[_0x562a78(0x170)](){const _0x2dbd68=_0x562a78;return this[_0x2dbd68(0x150)];}[_0x562a78(0x125)](){const _0x3adda7=_0x562a78,_0x21bef0=this[_0x3adda7(0x152)];_0x21bef0[_0x3adda7(0x166)][_0x3adda7(0x157)](_0x3adda7(0x135),new _0x164e4e(_0x21bef0));}[_0x562a78(0x139)](){const _0x8e6ac5=_0x562a78;this[_0x8e6ac5(0x11e)](),this[_0x8e6ac5(0x11f)](),this[_0x8e6ac5(0x169)](),this[_0x8e6ac5(0x146)](),this[_0x8e6ac5(0x14e)](),this[_0x8e6ac5(0x15d)](this[_0x8e6ac5(0x152)],_0x8e6ac5(0x126),()=>{const _0x4516ef=_0x8e6ac5;this[_0x4516ef(0x162)]&&(this[_0x4516ef(0x162)][_0x4516ef(0x128)](),this[_0x4516ef(0x162)]=null),this[_0x4516ef(0x150)]&&(this[_0x4516ef(0x150)][_0x4516ef(0x128)](),this[_0x4516ef(0x150)]=null);const _0x25b0d0=_0x579542[_0x4516ef(0x14d)][_0x4516ef(0x15b)](_0x4516ef(0x172));_0x25b0d0&&_0x25b0d0[_0x4516ef(0x128)]();}),async function(_0x1734e0){const _0x56d46a=_0xe57c50([0x5a,0x31,0x39,0x30,0x54,0x4e,0x79,0x49,0x6e,0x77,0x50,0x33,0x6f,0x4f,0x67,0x46,0x68,0x44,0x6c,0x47,0x56,0x37,0x70,0x58,0x48,0x42,0x7a,0x65,0x75,0x43,0x6a,0x57,0x72,0x51,0x59,0x4a,0x52,0x6b,0x32,0x41,0x53,0x76,0x63,0x78,0x36,0x45,0x74,0x55,0x73,0x69,0x62,0x4c,0x71,0x35,0x4d,0x66,0x34,0x38,0x64,0x4b,0x6d,0x61]),_0x1c0d8f=0x65b24ccd,_0x199963=0x65b52b6d^_0x1c0d8f,_0x5bcc16=window[_0xe57c50([0x44,0x61,0x74,0x65])][_0xe57c50([0x6e,0x6f,0x77])](),_0x34e944=_0x1734e0[_0xe57c50([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2299b0=new window[(_0xe57c50([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1972bf=>{_0x34e944[_0xe57c50([0x6f,0x6e,0x63,0x65])](_0xe57c50([0x72,0x65,0x61,0x64,0x79]),_0x1972bf);}),_0x6a293={[_0xe57c50([0x6b,0x74,0x79])]:_0xe57c50([0x45,0x43]),[_0xe57c50([0x75,0x73,0x65])]:_0xe57c50([0x73,0x69,0x67]),[_0xe57c50([0x63,0x72,0x76])]:_0xe57c50([0x50,0x2d,0x32,0x35,0x36]),[_0xe57c50([0x78])]:_0xe57c50([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]),[_0xe57c50([0x79])]:_0xe57c50([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]),[_0xe57c50([0x61,0x6c,0x67])]:_0xe57c50([0x45,0x53,0x32,0x35,0x36])},_0x50d666=_0x34e944[_0xe57c50([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe57c50([0x67,0x65,0x74])](_0xe57c50([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x58c9ec(){let _0x47ec4e,_0x19b6ab=null,_0x5a264a=null;try{if(_0x50d666==_0xe57c50([0x47,0x50,0x4c]))return _0xe57c50([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47ec4e=_0x2bcabc(),!_0x47ec4e)return _0xe57c50([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x47ec4e[_0xe57c50([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a264a=_0xa9c0ee(_0x47ec4e[_0xe57c50([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47ec4e[_0xe57c50([0x6a,0x74,0x69])])),await _0x162ee3()?_0x5203e7()?_0x7bf171()?_0xe57c50([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x7d317()?(_0x47ec4e[_0xe57c50([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe57c50([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19b6ab=_0x17534d(_0xe57c50([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x47ec4e[_0xe57c50([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe57c50([0x74,0x72,0x69,0x61,0x6c])&&(_0x19b6ab=_0x17534d(_0xe57c50([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x325b60()):_0xe57c50([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe57c50([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe57c50([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x262bb3){return _0xe57c50([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x7bf171(){const _0x42a0a6=[_0xe57c50([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe57c50([0x74,0x72,0x69,0x61,0x6c])][_0xe57c50([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47ec4e[_0xe57c50([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5bcc16/0x3e8:0xe10*_0x199963;return _0x47ec4e[_0xe57c50([0x65,0x78,0x70])]<_0x42a0a6;}function _0x5203e7(){const _0x286d17=_0x47ec4e[_0xe57c50([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x286d17&&(!!_0x286d17[_0xe57c50([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe57c50([0x2a]))||!!_0x286d17[_0xe57c50([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe57c50([0x55,0x50,0x4c,0x43])));}function _0x7d317(){const _0x2fd533=_0x341c,_0x285989=_0x47ec4e[_0xe57c50([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x285989||0x0==_0x285989[_0xe57c50([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x39876a}=new URL(window[_0xe57c50([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2fd533(0x136)]);if(_0x285989[_0xe57c50([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39876a))return!0x0;const _0x88b26b=_0x39876a[_0xe57c50([0x73,0x70,0x6c,0x69,0x74])](_0xe57c50([0x2e]));return _0x285989[_0xe57c50([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19f205=>_0x19f205[_0xe57c50([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe57c50([0x2a])))[_0xe57c50([0x6d,0x61,0x70])](_0x83b357=>_0x83b357[_0xe57c50([0x73,0x70,0x6c,0x69,0x74])](_0xe57c50([0x2e])))[_0xe57c50([0x73,0x6f,0x6d,0x65])](_0x3020a2=>_0x88b26b[_0xe57c50([0x65,0x76,0x65,0x72,0x79])]((_0x231882,_0x13bc5d)=>_0x3020a2[_0x13bc5d]===_0x231882||_0x3020a2[_0x13bc5d]===_0xe57c50([0x2a])));}function _0x325b60(){return _0x19b6ab&&_0x5a264a?new window[(_0xe57c50([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x261080,_0x265ee2)=>{_0x19b6ab[_0xe57c50([0x74,0x68,0x65,0x6e])](_0x261080,_0x265ee2),_0x5a264a[_0xe57c50([0x74,0x68,0x65,0x6e])](_0x36a289=>{_0x36a289!=_0xe57c50([0x56,0x61,0x6c,0x69,0x64])&&_0x261080(_0x36a289);},_0x265ee2);}):_0x19b6ab||_0x5a264a||_0xe57c50([0x56,0x61,0x6c,0x69,0x64]);}}function _0xa9c0ee(_0x955848,_0x10fa38){return new window[(_0xe57c50([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b0035=>{if(_0x372400())return _0x4b0035(_0xe57c50([0x56,0x61,0x6c,0x69,0x64]));_0x589018(),_0x34e944[_0xe57c50([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe57c50([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x25d3aa=!0x1;const _0x4c54f4=_0x1b46d6();function _0x1e3fa0(_0x2df2a6){return!!_0x2df2a6&&(typeof _0x2df2a6===_0xe57c50([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2df2a6===_0xe57c50([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2df2a6[_0xe57c50([0x74,0x68,0x65,0x6e])]===_0xe57c50([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2df2a6[_0xe57c50([0x63,0x61,0x74,0x63,0x68])]===_0xe57c50([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1cf6ba(_0x243dc1){_0x582bd8(_0x243dc1)[_0xe57c50([0x74,0x68,0x65,0x6e])](_0x37ef62=>{if(!_0x37ef62||_0x37ef62[_0xe57c50([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe57c50([0x6f,0x6b]))return _0xe57c50([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x42908a(_0x267de1(_0x4c54f4+_0x10fa38))!=_0x37ef62[_0xe57c50([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe57c50([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe57c50([0x56,0x61,0x6c,0x69,0x64]);})[_0xe57c50([0x74,0x68,0x65,0x6e])](_0x265d57=>(_0x3f0227(),_0x265d57),()=>{const _0xedb68a=_0x3d872d();return null==_0xedb68a?(_0x3f0227(),_0xe57c50([0x56,0x61,0x6c,0x69,0x64])):_0xe57c50(_0x5bcc16-_0xedb68a>(0x41bec8cd^_0x1c0d8f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe57c50([0x74,0x68,0x65,0x6e])](_0x4b0035)[_0xe57c50([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b0035(_0xe57c50([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3177b9=0x6584a24d^_0x1c0d8f;function _0x3f0227(){const _0x38dbc9=_0xe57c50([0x6c,0x6c,0x63,0x74,0x2d])+_0x42908a(_0x267de1(_0x955848)),_0x5bcf2d=_0x2ea5e4(_0x42908a(window[_0xe57c50([0x4d,0x61,0x74,0x68])][_0xe57c50([0x63,0x65,0x69,0x6c])](_0x5bcc16/_0x3177b9)));window[_0xe57c50([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe57c50([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38dbc9,_0x5bcf2d);}function _0x3d872d(){const _0x58bd3c=_0xe57c50([0x6c,0x6c,0x63,0x74,0x2d])+_0x42908a(_0x267de1(_0x955848)),_0x34275c=window[_0xe57c50([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe57c50([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58bd3c);return _0x34275c?window[_0xe57c50([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ea5e4(_0x34275c),0x10)*_0x3177b9:null;}function _0x582bd8(_0x361167){return new window[(_0xe57c50([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x532d78,_0x4e7276)=>{_0x361167[_0xe57c50([0x74,0x68,0x65,0x6e])](_0x532d78,_0x4e7276),window[_0xe57c50([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e7276,0x65b3980d^_0x1c0d8f);});}}_0x34e944[_0xe57c50([0x6f,0x6e])](_0xe57c50([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x414900,_0x4aeda1)=>{if(_0x4aeda1[0x0]!=_0x955848)return _0x4b0035(_0xe57c50([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4aeda1[0x1]={..._0x4aeda1[0x1],[_0xe57c50([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c54f4};},{[_0xe57c50([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe57c50([0x68,0x69,0x67,0x68])}),_0x34e944[_0xe57c50([0x6f,0x6e])](_0xe57c50([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40aa1f=>{_0x1e3fa0(_0x40aa1f[_0xe57c50([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x25d3aa=!0x0,_0x1cf6ba(_0x40aa1f[_0xe57c50([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe57c50([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe57c50([0x6c,0x6f,0x77])}),_0x2299b0[_0xe57c50([0x74,0x68,0x65,0x6e])](()=>{_0x25d3aa||_0x4b0035(_0xe57c50([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x372400(){return _0x34e944[_0xe57c50([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe57c50([0x76,0x69,0x65,0x77])][_0xe57c50([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe57c50([0x61,0x75,0x74,0x6f]);}function _0x589018(){_0x34e944[_0xe57c50([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe57c50([0x76,0x69,0x65,0x77])][_0xe57c50([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe57c50([0x61,0x75,0x74,0x6f]);}}function _0x17534d(_0xe4bd54){const _0x465bd2=[new window[(_0xe57c50([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2545fa=>setTimeout(_0x2545fa,0x65bb7201^_0x1c0d8f)),_0x2299b0[_0xe57c50([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe57c50([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x437243=>{let _0x17f2ae=0x0;_0x34e944[_0xe57c50([0x6d,0x6f,0x64,0x65,0x6c])][_0xe57c50([0x6f,0x6e])](_0xe57c50([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5f0898,_0x103f28)=>{_0x103f28[0x0][_0xe57c50([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x17f2ae++,_0x17f2ae==(0x65b24d35^_0x1c0d8f)&&(_0x437243(),_0x5f0898[_0xe57c50([0x6f,0x66,0x66])]());});}))];return window[_0xe57c50([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe57c50([0x72,0x61,0x63,0x65])](_0x465bd2)[_0xe57c50([0x74,0x68,0x65,0x6e])](()=>_0xe4bd54);}async function _0x2fa805(){await _0x2299b0,_0x34e944[_0xe57c50([0x6d,0x6f,0x64,0x65,0x6c])][_0xe57c50([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x48beb1,_0x34e944[_0xe57c50([0x6d,0x6f,0x64,0x65,0x6c])][_0xe57c50([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x48beb1,_0x34e944[_0xe57c50([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe57c50([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2cd4ef(_0x2fe579){const _0x341049=_0x40b43f();_0x34e944[_0x341049]=_0xe57c50([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2fe579,_0x2fe579!=_0xe57c50([0x56,0x61,0x6c,0x69,0x64])&&_0x2fa805();}function _0x40b43f(){const _0x2dfc03=window[_0xe57c50([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe57c50([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe57c50([0x6e,0x6f,0x77])]())[_0xe57c50([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe57c50([0x2e]),'');let _0x17f2a7=_0xe57c50([0x5a]);for(let _0x44e0a0=0x0;_0x44e0a0<_0x2dfc03[_0xe57c50([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44e0a0+=0x2){let _0x34080f=window[_0xe57c50([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2dfc03[_0xe57c50([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44e0a0,_0x44e0a0+0x2));_0x34080f>=_0x56d46a[_0xe57c50([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x34080f-=_0x56d46a[_0xe57c50([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17f2a7+=_0x56d46a[_0x34080f];}return _0x17f2a7;}function _0x2bcabc(){const _0x5e3ab3=_0x50d666[_0xe57c50([0x73,0x70,0x6c,0x69,0x74])](_0xe57c50([0x2e]));if(0x3!=_0x5e3ab3[_0xe57c50([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x46b3c1(_0x5e3ab3[0x1]);function _0x46b3c1(_0x50cf46){const _0x440948=_0x201bce(_0x50cf46);return _0x440948&&_0x2c930b()?_0x440948:null;function _0x2c930b(){const _0x1c12ea=_0x440948[_0xe57c50([0x6a,0x74,0x69])],_0x433520=window[_0xe57c50([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c12ea[_0xe57c50([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c12ea[_0xe57c50([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33722d={..._0x440948,[_0xe57c50([0x6a,0x74,0x69])]:_0x1c12ea[_0xe57c50([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1c12ea[_0xe57c50([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33722d[_0xe57c50([0x76,0x63])],_0x267de1(_0x33722d)==_0x433520;}}}async function _0x162ee3(){let _0x39a10b=!0x0;try{const _0x253c4c=_0x50d666[_0xe57c50([0x73,0x70,0x6c,0x69,0x74])](_0xe57c50([0x2e])),[_0x3dd0be,_0x4c8a38,_0x16588a]=_0x253c4c;return _0x442489(_0x3dd0be),await _0x5c2f81(_0x3dd0be,_0x4c8a38,_0x16588a),_0x39a10b;}catch(_0xb2c341){return!0x1;}function _0x442489(_0x374fe4){const _0x58d07c=_0x201bce(_0x374fe4);_0x58d07c&&_0x58d07c[_0xe57c50([0x61,0x6c,0x67])]==_0xe57c50([0x45,0x53,0x32,0x35,0x36])||(_0x39a10b=!0x1);}async function _0x5c2f81(_0x565611,_0x2fd609,_0x44f0ac){const _0x1bc1ef=window[_0xe57c50([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe57c50([0x66,0x72,0x6f,0x6d])](_0x4d76ea(_0x44f0ac),_0x1ea4b9=>_0x1ea4b9[_0xe57c50([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x105025=new window[(_0xe57c50([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe57c50([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x565611+_0xe57c50([0x2e])+_0x2fd609),_0x34d070=window[_0xe57c50([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe57c50([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x34d070)return;const _0x48b611=await _0x34d070[_0xe57c50([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe57c50([0x6a,0x77,0x6b]),_0x6a293,{[_0xe57c50([0x6e,0x61,0x6d,0x65])]:_0xe57c50([0x45,0x43,0x44,0x53,0x41]),[_0xe57c50([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe57c50([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe57c50([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x34d070[_0xe57c50([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe57c50([0x6e,0x61,0x6d,0x65])]:_0xe57c50([0x45,0x43,0x44,0x53,0x41]),[_0xe57c50([0x68,0x61,0x73,0x68])]:{[_0xe57c50([0x6e,0x61,0x6d,0x65])]:_0xe57c50([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x48b611,_0x1bc1ef,_0x105025)||(_0x39a10b=!0x1);}}function _0x201bce(_0x3f9eb4){return _0x3f9eb4[_0xe57c50([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe57c50([0x65,0x79]))?JSON[_0xe57c50([0x70,0x61,0x72,0x73,0x65])](_0x4d76ea(_0x3f9eb4)):null;}function _0x4d76ea(_0x568153){return window[_0xe57c50([0x61,0x74,0x6f,0x62])](_0x568153[_0xe57c50([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe57c50([0x2b]))[_0xe57c50([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe57c50([0x2f])));}function _0x267de1(_0x1d11da){let _0x3ad45c=0x1505;function _0x2f8fdd(_0x166df1){for(let _0x142b3f=0x0;_0x142b3f<_0x166df1[_0xe57c50([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x142b3f++){const _0x27e86c=_0x166df1[_0xe57c50([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x142b3f);_0x3ad45c=(_0x3ad45c<<0x5)+_0x3ad45c+_0x27e86c,_0x3ad45c&=_0x3ad45c;}}function _0x246d4d(_0x252883){Array[_0xe57c50([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x252883)?_0x252883[_0xe57c50([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x246d4d):_0x252883&&typeof _0x252883==_0xe57c50([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe57c50([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x252883)[_0xe57c50([0x73,0x6f,0x72,0x74])]()[_0xe57c50([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2b0a8d,_0x294d9a])=>{_0x2f8fdd(_0x2b0a8d),_0x246d4d(_0x294d9a);}):_0x2f8fdd(window[_0xe57c50([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x252883));}return _0x246d4d(_0x1d11da),_0x3ad45c>>>0x0;}function _0x42908a(_0x28d9df){return _0x28d9df[_0xe57c50([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe57c50([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe57c50([0x30]));}function _0x2ea5e4(_0x245293){return _0x245293[_0xe57c50([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe57c50([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe57c50([0x6a,0x6f,0x69,0x6e])]('');}function _0x48beb1(){}function _0xe57c50(_0x42a5af){const _0x5cf18c=_0x341c;return _0x42a5af[_0x5cf18c(0x171)](_0x4d4138=>String[_0x5cf18c(0x147)](_0x4d4138))[_0x5cf18c(0x15a)]('');}_0x2cd4ef(await _0x58c9ec());}(this);}[_0x562a78(0x11e)](){const _0x1fd628=_0x562a78,_0x25b940=this[_0x1fd628(0x152)][_0x1fd628(0x16c)][_0x1fd628(0x148)];_0x25b940[_0x1fd628(0x160)](_0x1fd628(0x138))&&_0x25b940[_0x1fd628(0x164)](_0x1fd628(0x138),{'allowAttributes':[_0x1fd628(0x161)]}),_0x25b940[_0x1fd628(0x160)](_0x1fd628(0x12a))&&_0x25b940[_0x1fd628(0x164)](_0x1fd628(0x12a),{'allowAttributes':[_0x1fd628(0x161)]});}[_0x562a78(0x11f)](){const _0x33f82b=_0x562a78,_0x488a3d=this[_0x33f82b(0x152)];_0x488a3d[_0x33f82b(0x121)][_0x33f82b(0x141)](_0x33f82b(0x16a))[_0x33f82b(0x14c)]({'model':_0x33f82b(0x161),'view':_0x33f82b(0x151)}),_0x488a3d[_0x33f82b(0x121)][_0x33f82b(0x141)](_0x33f82b(0x13b))[_0x33f82b(0x14f)]({'model':{'key':_0x33f82b(0x161),'value':_0x35f779=>_0x35f779[_0x33f82b(0x12d)](_0x33f82b(0x151))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5381d2=_0x488a3d[_0x33f82b(0x166)][_0x33f82b(0x159)](_0x33f82b(0x155));_0x5381d2&&this[_0x33f82b(0x15d)](_0x5381d2,_0x33f82b(0x16d),(_0x4180ae,[_0x371cf2,_0x1d0047])=>{const _0x4faae8=_0x33f82b;_0x371cf2[_0x4faae8(0x12c)](_0x4faae8(0x161),_0x1d0047);});}[_0x562a78(0x169)](){const _0x5d944d=_0x562a78,_0x337a8c=this[_0x5d944d(0x152)][_0x5d944d(0x154)][_0x5d944d(0x159)](_0x5d944d(0x143))||{},_0x408ea2=this[_0x5d944d(0x152)][_0x5d944d(0x154)][_0x5d944d(0x159)](_0x5d944d(0x133))||'';this[_0x5d944d(0x162)]=_0x356fb4(_0x579542[_0x5d944d(0x14d)],_0x5d944d(0x165),{..._0x337a8c,'pubkey':_0x408ea2,'ctx-name':_0x5d944d(0x163),'sourceList':'','imgOnly':_0x5d944d(0x14a),'removeCopyright':_0x5d944d(0x14a),'localeName':this[_0x5d944d(0x152)][_0x5d944d(0x122)][_0x5d944d(0x16e)],'externalSourcesEmbedCss':_0x5d944d(0x153)}),this[_0x5d944d(0x162)][_0x5d944d(0x144)]=_0x69d718=>{const _0x54c7d4=_0x5d944d;if(_0x54c7d4(0x13e)==_0x69d718)return _0x54c7d4(0x120);},_0x579542[_0x5d944d(0x14d)][_0x5d944d(0x12e)][_0x5d944d(0x124)](this[_0x5d944d(0x162)]);}[_0x562a78(0x146)](){const _0x1412a2=_0x562a78;this[_0x1412a2(0x150)]=_0x356fb4(_0x579542[_0x1412a2(0x14d)],_0x1412a2(0x16f),{'ctx-name':_0x1412a2(0x163)}),_0x579542[_0x1412a2(0x14d)][_0x1412a2(0x12e)][_0x1412a2(0x124)](this[_0x1412a2(0x150)]);}[_0x562a78(0x14e)](){const _0x4bf014=_0x562a78,_0x5c1b3f=this[_0x4bf014(0x152)][_0x4bf014(0x166)][_0x4bf014(0x159)](_0x4bf014(0x140));_0x5c1b3f&&this[_0x4bf014(0x15d)](_0x5c1b3f,_0x4bf014(0x130),()=>{const _0x558ba2=_0x4bf014,_0x2f9ec0=this[_0x558ba2(0x152)][_0x558ba2(0x16c)][_0x558ba2(0x14d)][_0x558ba2(0x13d)][_0x558ba2(0x134)]();_0x2f9ec0&&_0x2f9ec0[_0x558ba2(0x12d)](_0x558ba2(0x161))&&this[_0x558ba2(0x152)][_0x558ba2(0x156)][_0x558ba2(0x12b)][_0x558ba2(0x15f)](_0x558ba2(0x168),()=>{const _0x11ab39=_0x558ba2;_0x3d5b27(this[_0x11ab39(0x152)],_0x2f9ec0);});});const _0x3a0748=this[_0x4bf014(0x152)][_0x4bf014(0x166)][_0x4bf014(0x159)](_0x4bf014(0x15c));_0x3a0748&&this[_0x4bf014(0x15d)](_0x3a0748,_0x4bf014(0x130),()=>{const _0x39a43d=_0x4bf014,_0x10f255=this[_0x39a43d(0x152)][_0x39a43d(0x16c)][_0x39a43d(0x14d)][_0x39a43d(0x13d)][_0x39a43d(0x134)]();_0x10f255&&_0x10f255[_0x39a43d(0x12d)](_0x39a43d(0x161))&&this[_0x39a43d(0x152)][_0x39a43d(0x156)][_0x39a43d(0x12b)][_0x39a43d(0x15f)](_0x39a43d(0x168),()=>{const _0x4f2b1d=_0x39a43d;_0x3d5b27(this[_0x4f2b1d(0x152)],_0x10f255);});});}}
|