@ckeditor/ckeditor5-uploadcare 45.1.0-alpha.3 → 45.1.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/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 _0x2252f4,Command as _0x53cd57}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x50aee0,IconGooglePhotos as _0x3bc49f,IconGoogleDrive as _0x1f6628,IconFacebook as _0x9866d3,IconDropbox as _0x45d2de,IconUploadcareLink as _0xfa8d69,IconUploadcareImageUpload as _0x103d4e,IconError as et,IconUploadcareImageEdit as _0x477390}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x14edb9,MenuBarMenuListItemButtonView as _0x1a880f,View as _0x2607b8,FocusCycler as _0x534244,Dialog as _0x4da01e,DialogViewPosition as _0x167e77,SpinnerView as _0x4de68d,IconView as at,Notification as _0x498d67}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4c5ff2,DomEmitterMixin as _0xdc0548,global as _0x4d3312,getAncestors as _0x39ff1a,ObservableMixin as _0x4bb07a,createElement as _0x50d96f,uid as _0x18dbf8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x344cd3}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1545d5,info as _0x3246e6}from'@uploadcare/upload-client';import*as _0x6af673 from'@uploadcare/file-uploader';var o=function(_0x5cf7de){return _0x5cf7de['Local']='local',_0x5cf7de['URL']='url',_0x5cf7de['Dropbox']='dropbox',_0x5cf7de['GDrive']='gdrive',_0x5cf7de['Facebook']='facebook',_0x5cf7de['GPhotos']='gphotos',_0x5cf7de['OneDrive']='onedrive',_0x5cf7de;}({});function _(_0x4c96ec,_0x22ab0d,_0x48c75d){const t=_0x4c96ec['t'],_0x94f1a3=_0x4c96ec['t'];switch(_0x22ab0d){case o['Local']:return{'text':_0x94f1a3('Insert'===_0x48c75d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x94f1a3('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x48c75d?_0x94f1a3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x94f1a3('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x48c75d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x48c75d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x48c75d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x48c75d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x48c75d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x22ab0d;}}class e extends _0x2252f4{['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 _0x51b606=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3e4b11;for(const _0x21c317 in _0x51b606){const _0x2ef38d=_0x21c317,_0x36bdb2=_0x51b606[_0x2ef38d];if('uploadcareLicenseKeyValid'==_0x36bdb2||'uploadcareLicenseKeyInvalid'==_0x36bdb2||'uploadcareLicenseKeyExpired'==_0x36bdb2||'uploadcareLicenseKeyDomainLimit'==_0x36bdb2||'uploadcareLicenseKeyNotAllowed'==_0x36bdb2||'uploadcareLicenseKeyEvaluationLimit'==_0x36bdb2||'uploadcareLicenseKeyTrialLimit'==_0x36bdb2||'uploadcareLicenseKeyUsageLimit'==_0x36bdb2){delete _0x51b606[_0x2ef38d],_0x3e4b11=_0x36bdb2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3e4b11&&_0x51b606['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3e4b11&&_0x51b606['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3e4b11&&_0x51b606['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3e4b11&&_0x51b606['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3e4b11&&_0x51b606['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3e4b11&&_0x51b606['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3e4b11&&_0x51b606['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x143d2c}=this,_0x3771c2=_0x143d2c['commands']['get']('uploadcare');if(!_0x3771c2)return;const _0x28067f=this['_normalizeConfigSourceList'](_0x143d2c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5cc018,_0xba523)=>{const _0xd2adc3=this['_getIntegrationKey'](_0xba523['type']);return _0x5cc018[_0xd2adc3]||(_0x5cc018[_0xd2adc3]=[]),_0x5cc018[_0xd2adc3]['push'](_0xba523),_0x5cc018;},{});_0x143d2c['plugins']['has']('ImageInsertUI')&&_0x143d2c['commands']['get']('uploadcare')&&Object['entries'](_0x28067f)['forEach'](([_0x2fcec5,_0x133a18])=>{_0x143d2c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2fcec5,'observable':()=>_0x3771c2,'buttonViewCreator':()=>this['_createToolbarButton'](_0x133a18),'formViewCreator':()=>this['_createDropdownButtons'](_0x133a18),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x133a18),'override':'assetManager'!==_0x2fcec5});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x28ec5e){const {locale:_0x3b3adb}=this['editor'];return _0x28ec5e['map'](_0x5a95fc=>{const _0x23987a=_(_0x3b3adb,_0x5a95fc,'Insert');switch(_0x5a95fc){case o['Local']:return{'icon':_0x103d4e,'type':o['Local'],..._0x23987a};case o['URL']:return{'icon':_0xfa8d69,'type':o['URL'],..._0x23987a};case o['Dropbox']:return{'icon':_0x45d2de,'type':o['Dropbox'],..._0x23987a};case o['Facebook']:return{'icon':_0x9866d3,'type':o['Facebook'],..._0x23987a};case o['GDrive']:return{'icon':_0x1f6628,'type':o['GDrive'],..._0x23987a};case o['GPhotos']:return{'icon':_0x3bc49f,'type':o['GPhotos'],..._0x23987a};case o['OneDrive']:return{'icon':_0x50aee0,'type':o['OneDrive'],..._0x23987a};}});}['_getIntegrationKey'](_0x29051c){switch(_0x29051c){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x45f277,_0x376eb2){const _0x1b737c=this['editor'],_0x5094a2=new _0x45f277(_0x1b737c['locale']),_0x1739ed=_0x1b737c['commands']['get']('uploadcare');return _0x5094a2['bind']('isEnabled')['to'](_0x1739ed),_0x5094a2['on']('execute',()=>{_0x1739ed['execute'](_0x376eb2);}),_0x5094a2;}['_createToolbarButton'](_0x27eaea){const {locale:_0x5c9a99}=this['editor'],_0x3cdf72=this['editor']['plugins']['get']('ImageInsertUI'),_0x5be92b=_0x27eaea[0x0],_0x21871a=this['_createButton'](_0x14edb9,_0x5be92b['type']);return _0x21871a['icon']=_0x5be92b['icon'],_0x21871a['bind']('label')['to'](_0x3cdf72,'isImageSelected',_0x343721=>_(_0x5c9a99,_0x5be92b['type'],_0x343721?'Replace':'Insert')['text']),_0x21871a['tooltip']=!0x0,_0x21871a;}['_createDropdownButtons'](_0x1058e8){const {locale:_0x32253f}=this['editor'],_0x1d3e50=this['editor']['plugins']['get']('ImageInsertUI');return _0x1058e8['map'](_0x1bdc80=>{const _0x30ddc5=this['_createButton'](_0x14edb9,_0x1bdc80['type']);return _0x30ddc5['withText']=!0x0,_0x30ddc5['icon']=_0x1bdc80['icon'],_0x30ddc5['bind']('label')['to'](_0x1d3e50,'isImageSelected',_0x56a1a7=>_(_0x32253f,_0x1bdc80['type'],_0x56a1a7?'Replace':'Insert')['text']),_0x30ddc5;});}['_createMenuBarButtons'](_0xb0fdbc){return _0xb0fdbc['map'](_0xb417fc=>{const _0x5b534b=this['_createButton'](_0x1a880f,_0xb417fc['type']);return _0x5b534b['icon']=_0xb417fc['icon'],_0x5b534b['label']=_0xb417fc['shortText'],_0x5b534b;});}}class q extends _0x2607b8{['focusTracker'];['focusCycler'];constructor(_0x4e2f62){super(_0x4e2f62),this['focusTracker']=new _0x4c5ff2(),this['focusCycler']=new _0x534244({'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(_0x1c912a){super(_0x1c912a),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(_0x64a5cc,_0xab618b){const _0x16990a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x14cbf7=>_0x14cbf7<=_0xab618b)['map'](_0x3b7900=>_0x64a5cc['replace'](/\/$/,'')+'/-/resize/'+_0x3b7900+'x/\x20'+_0x3b7900+'w');return{'imageFallbackUrl':_0x64a5cc,'imageSources':[{'srcset':_0x16990a['join'](',\x20'),'sizes':'(max-width:\x20'+_0xab618b+'px)\x20100vw,\x20'+_0xab618b+'px','type':'image/webp'}]};}function A(_0x35cad4,_0x3a2441,_0x429cc5){const _0x4f47df=_0x35cad4['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4f47df?parseInt(_0x4f47df[0x1],0xa):_0x3a2441,'height':_0x4f47df?parseInt(_0x4f47df[0x2],0xa):_0x429cc5};}function m(_0xde3142,_0x3e1e18){const _0x6b4321=Object['create'](_0xdc0548),_0xf13f83=_0xde3142['plugins']['get']('ImageUtils'),_0x3690cb=_0xde3142['editing']['mapper']['toViewElement'](_0x3e1e18),_0x251bae=_0xf13f83['findViewImgElement'](_0x3690cb),_0x2a8ca7=_0xde3142['editing']['view']['domConverter']['viewToDom'](_0x251bae),_0x2eec28=_0x3e1e18['getAttribute']('width'),_0x41bd57=_0x3e1e18['getAttribute']('height'),_0xb3af17='image-processing';_0xde3142['editing']['view']['change'](_0xa628d2=>{_0xa628d2['addClass'](_0xb3af17,_0x3690cb),_0xa628d2['setStyle']('aspect-ratio',_0x2eec28+'/'+_0x41bd57,_0x251bae);}),_0x6b4321['listenTo'](_0x2a8ca7,'load',()=>{_0x6b4321['stopListening'](_0x2a8ca7,'load'),_0xde3142['editing']['view']['change'](_0x346ed8=>{_0x346ed8['removeClass'](_0xb3af17,_0x3690cb),_0x346ed8['removeStyle']('aspect-ratio',_0x251bae);});});}function V(_0xc0dac){if(Array['isArray'](_0xc0dac)){const _0x2247f0=_0xc0dac['map'](V);return _0x1b6687=>_0x2247f0['some'](_0x310736=>_0x310736(_0x1b6687));}if('origin'==_0xc0dac){const _0x5702c6=_0x4d3312['window']['location']['origin'];return _0x15c677=>new URL(_0x15c677,_0x4d3312['document']['baseURI'])['origin']==_0x5702c6;}return'function'==typeof _0xc0dac?_0xc0dac:_0xc0dac instanceof RegExp?_0x1b8f2a=>!(!_0x1b8f2a['match'](_0xc0dac)&&!_0x1b8f2a['replace'](/^https?:\/\//,'')['match'](_0xc0dac)):()=>!0x1;}function F(_0x5aa5b7,_0x4b9d75){return _0x39ff1a(_0x5aa5b7['target'])['includes'](_0x4b9d75);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4bb07a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4b24a0,_0x4c5f0f,_0x286d61){super(),this['_editor']=_0x4b24a0,this['_editing']=_0x4c5f0f,this['_dialog']=_0x4b24a0['plugins']['get'](_0x4da01e),this['_api']=_0x4c5f0f['ctxElement']['getAPI'](),this['_type']=_0x286d61,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:_0x2a46df,model:_0x18faef}=this['_editor'],_0x4701cc=_0x18faef['document']['selection']['getSelectedElement'](),_0x1dcc33=_0x4701cc&&(_0x4701cc['is']('element','imageBlock')||_0x4701cc['is']('element','imageInline'));this['_formView']=new S(_0x2a46df),this['_dialog']['show']({'id':'uploadCare','icon':_0x103d4e,'title':_(_0x2a46df,this['_type'],_0x1dcc33?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x167e77['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x19e538=>!F(_0x19e538,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x22c649}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x36fc2a=>{const _0x335ea9=_0x22c649['length'];for(const _0x13726c of _0x22c649){const _0x5c024d=_0x13726c===_0x22c649[_0x335ea9-0x1],{cdnUrl:_0x251e4f,fileInfo:_0x480258}=_0x13726c;if(!_0x251e4f||!_0x480258)continue;const {width:_0x343faf,height:_0x10d52d}=_0x480258['imageInfo'],_0x3345df=A(_0x251e4f,_0x343faf,_0x10d52d),_0x4e1328=E(_0x251e4f,_0x3345df['width']),_0x580aad={'id':_0x480258['uuid'],'type':'image','attributes':{'imageDimension':_0x3345df,..._0x4e1328}};this['_insertAsset'](_0x580aad,_0x5c024d,_0x36fc2a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x427080=>{'idle'===_0x427080['detail']['status']&&!_0x427080['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1876df,_0x57cf56,_0x3933be){const _0x18459f=this['_editor']['model']['document']['selection'],_0x5b88bf=_0x18459f['getSelectedElement'](),_0x5b687a=!(!_0x5b88bf||!_0x5b88bf['is']('element','imageInline'));_0x3933be['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1876df,_0x5b687a),_0x57cf56||_0x3933be['setSelection'](_0x18459f['getLastPosition']());}['_insertImage'](_0x52240c,_0x17700e){const _0x587da5=this['_editor'],{imageDimension:_0xd1afb5,imageFallbackUrl:_0x1b3f10,imageSources:_0x9f561e}=_0x52240c['attributes'];_0x587da5['execute']('insertImage',{'imageType':_0x17700e?'imageInline':null,'source':{'uploadcareImageId':_0x52240c['id'],'src':_0x1b3f10,'sources':_0x9f561e,..._0xd1afb5}});}}class n extends _0x53cd57{['_editing'];['_controller']=null;static get['requires'](){return[_0x4da01e,i];}constructor(_0x53cee0){super(_0x53cee0),this['_editing']=_0x53cee0['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4ef333){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x4ef333);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5f49ca,publicKey:_0x53f0eb,signal:_0xd1dee6,onProgress:_0x31d9f7}){return _0x1545d5(_0x5f49ca,{'publicKey':_0x53f0eb,'store':'auto','signal':_0xd1dee6,'onProgress':_0x31d9f7});}static['getInfo'](_0x103989,_0x312d72){return _0x3246e6(_0x103989,_0x312d72);}}class p extends _0x2252f4{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x344cd3,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2751f3=this['editor'];if(!!!_0x2751f3['config']['get']('uploadcare'))return;_0x2751f3['plugins']['get'](_0x344cd3)['createUploadAdapter']=_0x1a790a=>new x(_0x1a790a,_0x2751f3),_0x2751f3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x280b79,{imageElement:_0x484bf8,data:_0x5649f0})=>{_0x2751f3['model']['change'](_0x51d9e2=>{_0x51d9e2['setAttribute']('uploadcareImageId',_0x5649f0['uploadcareImageId'],_0x484bf8);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x42b490,_0x4faef4){this['loader']=_0x42b490,this['editor']=_0x4faef4,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x199787=this['editor']['config']['get']('uploadcare.pubkey'),_0x6687fc=await this['loader']['file'];return C['upload']({'file':_0x6687fc,'publicKey':_0x199787,'signal':this['controller']['signal'],'onProgress':_0x53e4e9=>{_0x53e4e9&&_0x53e4e9['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x53e4e9['value']);}})['then'](async _0x576b12=>{const {imageFallbackUrl:_0x52ce70,imageSources:_0x8ff460}=E(_0x576b12['cdnUrl'],_0x576b12['imageInfo']['width']);return{'uploadcareImageId':_0x576b12['uuid'],'default':_0x52ce70,'sources':_0x8ff460};})['catch'](()=>{const _0x18b516=t('Cannot\x20upload\x20file:')+('\x20'+_0x6687fc['name']+'.');return Promise['reject'](_0x18b516);});}['abort'](){this['controller']['abort']();}}class i extends _0x2252f4{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4da01e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x4a9de4=this['editor'];_0x4a9de4['commands']['add']('uploadcare',new n(_0x4a9de4));}['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 _0x50a1e9=_0x4d3312['document']['querySelector']('input[uploadcare-file-input]');_0x50a1e9&&_0x50a1e9['remove']();}),async function(_0x5ab636){const _0x153313=_0x3cbe04([0x35,0x70,0x33,0x34,0x56,0x6c,0x74,0x64,0x5a,0x73,0x63,0x79,0x6f,0x49,0x69,0x61,0x68,0x65,0x32,0x44,0x4e,0x36,0x4a,0x72,0x6a,0x6e,0x66,0x67,0x50,0x4d,0x41,0x46,0x53,0x75,0x76,0x43,0x6b,0x54,0x31,0x42,0x78,0x4f,0x48,0x38,0x4c,0x6d,0x4b,0x51,0x45,0x57,0x58,0x47,0x30,0x52,0x77,0x39,0x37,0x59,0x7a,0x55,0x62,0x71]),_0x2cd523=0x5d94eb28,_0x1b44cf=0x5d938ca0^_0x2cd523,_0xc3b57c=window[_0x3cbe04([0x44,0x61,0x74,0x65])][_0x3cbe04([0x6e,0x6f,0x77])](),_0x5423f6=_0x5ab636[_0x3cbe04([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3553f4=new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ee09f=>{_0x5423f6[_0x3cbe04([0x6f,0x6e,0x63,0x65])](_0x3cbe04([0x72,0x65,0x61,0x64,0x79]),_0x2ee09f);}),_0x1b9512={[_0x3cbe04([0x6b,0x74,0x79])]:_0x3cbe04([0x45,0x43]),[_0x3cbe04([0x75,0x73,0x65])]:_0x3cbe04([0x73,0x69,0x67]),[_0x3cbe04([0x63,0x72,0x76])]:_0x3cbe04([0x50,0x2d,0x32,0x35,0x36]),[_0x3cbe04([0x78])]:_0x3cbe04([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]),[_0x3cbe04([0x79])]:_0x3cbe04([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]),[_0x3cbe04([0x61,0x6c,0x67])]:_0x3cbe04([0x45,0x53,0x32,0x35,0x36])},_0x111f18=_0x5423f6[_0x3cbe04([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3cbe04([0x67,0x65,0x74])](_0x3cbe04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x17f557(){let _0x55cde6,_0x35321a=null,_0x45909f=null;try{if(_0x111f18==_0x3cbe04([0x47,0x50,0x4c]))return _0x3cbe04([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x55cde6=_0xfc8a17(),!_0x55cde6)return _0x3cbe04([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x55cde6[_0x3cbe04([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x45909f=_0xe8ecd5(_0x55cde6[_0x3cbe04([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x55cde6[_0x3cbe04([0x6a,0x74,0x69])])),await _0x456334()?_0x49fa0a()?_0x46b651()?_0x3cbe04([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x34a69a()?(_0x55cde6[_0x3cbe04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3cbe04([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x35321a=_0x1c61da(_0x3cbe04([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x55cde6[_0x3cbe04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3cbe04([0x74,0x72,0x69,0x61,0x6c])&&(_0x35321a=_0x1c61da(_0x3cbe04([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ad7cb()):_0x3cbe04([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3cbe04([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3cbe04([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x13d8a3){return _0x3cbe04([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x46b651(){const _0x3f36b6=[_0x3cbe04([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3cbe04([0x74,0x72,0x69,0x61,0x6c])][_0x3cbe04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55cde6[_0x3cbe04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc3b57c/0x3e8:0xe10*_0x1b44cf;return _0x55cde6[_0x3cbe04([0x65,0x78,0x70])]<_0x3f36b6;}function _0x49fa0a(){const _0x519bf8=_0x55cde6[_0x3cbe04([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x519bf8&&(!!_0x519bf8[_0x3cbe04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cbe04([0x2a]))||!!_0x519bf8[_0x3cbe04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cbe04([0x55,0x50,0x4c,0x43])));}function _0x34a69a(){const _0x1d51a2=_0x55cde6[_0x3cbe04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1d51a2||0x0==_0x1d51a2[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x15b44e}=new URL(window[_0x3cbe04([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1d51a2[_0x3cbe04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15b44e))return!0x0;const _0x3d66bc=_0x15b44e[_0x3cbe04([0x73,0x70,0x6c,0x69,0x74])](_0x3cbe04([0x2e]));return _0x1d51a2[_0x3cbe04([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c47e5=>_0x3c47e5[_0x3cbe04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cbe04([0x2a])))[_0x3cbe04([0x6d,0x61,0x70])](_0x25b8e0=>_0x25b8e0[_0x3cbe04([0x73,0x70,0x6c,0x69,0x74])](_0x3cbe04([0x2e])))[_0x3cbe04([0x73,0x6f,0x6d,0x65])](_0x8ada1d=>_0x3d66bc[_0x3cbe04([0x65,0x76,0x65,0x72,0x79])]((_0x1258dd,_0x376ffd)=>_0x8ada1d[_0x376ffd]===_0x1258dd||_0x8ada1d[_0x376ffd]===_0x3cbe04([0x2a])));}function _0x5ad7cb(){return _0x35321a&&_0x45909f?new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54711d,_0x424ecc)=>{_0x35321a[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x54711d,_0x424ecc),_0x45909f[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x575977=>{_0x575977!=_0x3cbe04([0x56,0x61,0x6c,0x69,0x64])&&_0x54711d(_0x575977);},_0x424ecc);}):_0x35321a||_0x45909f||_0x3cbe04([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe8ecd5(_0x4f1e99,_0xb843ef){return new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5100e9=>{if(_0x2c8054())return _0x5100e9(_0x3cbe04([0x56,0x61,0x6c,0x69,0x64]));_0x2ecf21(),_0x5423f6[_0x3cbe04([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3cbe04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1823c8=!0x1;const _0x14dc96=_0x18dbf8();function _0x3c0543(_0x3fe6a0){return!!_0x3fe6a0&&(typeof _0x3fe6a0===_0x3cbe04([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3fe6a0===_0x3cbe04([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3fe6a0[_0x3cbe04([0x74,0x68,0x65,0x6e])]===_0x3cbe04([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3fe6a0[_0x3cbe04([0x63,0x61,0x74,0x63,0x68])]===_0x3cbe04([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3583c1(_0xfc8f96){_0x5c8981(_0xfc8f96)[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x5d3092=>{if(!_0x5d3092||_0x5d3092[_0x3cbe04([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3cbe04([0x6f,0x6b]))return _0x3cbe04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x56ddd1(_0x3276c4(_0x14dc96+_0xb843ef))!=_0x5d3092[_0x3cbe04([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3cbe04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3cbe04([0x56,0x61,0x6c,0x69,0x64]);})[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x432888=>(_0x1f5fd5(),_0x432888),()=>{const _0x30eacb=_0x511a20();return null==_0x30eacb?(_0x1f5fd5(),_0x3cbe04([0x56,0x61,0x6c,0x69,0x64])):_0x3cbe04(_0xc3b57c-_0x30eacb>(0x79986f28^_0x2cd523)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x5100e9)[_0x3cbe04([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5100e9(_0x3cbe04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3f14d6=0x5da205a8^_0x2cd523;function _0x1f5fd5(){const _0x2b6802=_0x3cbe04([0x6c,0x6c,0x63,0x74,0x2d])+_0x56ddd1(_0x3276c4(_0x4f1e99)),_0x54f2a3=_0x4cc77d(_0x56ddd1(window[_0x3cbe04([0x4d,0x61,0x74,0x68])][_0x3cbe04([0x63,0x65,0x69,0x6c])](_0xc3b57c/_0x3f14d6)));window[_0x3cbe04([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3cbe04([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b6802,_0x54f2a3);}function _0x511a20(){const _0x91e294=_0x3cbe04([0x6c,0x6c,0x63,0x74,0x2d])+_0x56ddd1(_0x3276c4(_0x4f1e99)),_0x21719e=window[_0x3cbe04([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3cbe04([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x91e294);return _0x21719e?window[_0x3cbe04([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cc77d(_0x21719e),0x10)*_0x3f14d6:null;}function _0x5c8981(_0x328fc4){return new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3311a1,_0xdbd427)=>{_0x328fc4[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x3311a1,_0xdbd427),window[_0x3cbe04([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xdbd427,0x5d953fe8^_0x2cd523);});}}_0x5423f6[_0x3cbe04([0x6f,0x6e])](_0x3cbe04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52ffd5,_0x210c92)=>{if(_0x210c92[0x0]!=_0x4f1e99)return _0x5100e9(_0x3cbe04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x210c92[0x1]={..._0x210c92[0x1],[_0x3cbe04([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14dc96};},{[_0x3cbe04([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3cbe04([0x68,0x69,0x67,0x68])}),_0x5423f6[_0x3cbe04([0x6f,0x6e])](_0x3cbe04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5db2bf=>{_0x3c0543(_0x5db2bf[_0x3cbe04([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1823c8=!0x0,_0x3583c1(_0x5db2bf[_0x3cbe04([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3cbe04([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3cbe04([0x6c,0x6f,0x77])}),_0x3553f4[_0x3cbe04([0x74,0x68,0x65,0x6e])](()=>{_0x1823c8||_0x5100e9(_0x3cbe04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c8054(){return _0x5423f6[_0x3cbe04([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3cbe04([0x76,0x69,0x65,0x77])][_0x3cbe04([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3cbe04([0x61,0x75,0x74,0x6f]);}function _0x2ecf21(){_0x5423f6[_0x3cbe04([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3cbe04([0x76,0x69,0x65,0x77])][_0x3cbe04([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3cbe04([0x61,0x75,0x74,0x6f]);}}function _0x1c61da(_0x36ccdf){const _0x5032db=[new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28292f=>setTimeout(_0x28292f,0x5d9dd5e4^_0x2cd523)),_0x3553f4[_0x3cbe04([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b35c3=>{let _0x2d9ae3=0x0;_0x5423f6[_0x3cbe04([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cbe04([0x6f,0x6e])](_0x3cbe04([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x40fac7,_0x28d42e)=>{_0x28d42e[0x0][_0x3cbe04([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d9ae3++,_0x2d9ae3==(0x5d94ead0^_0x2cd523)&&(_0x4b35c3(),_0x40fac7[_0x3cbe04([0x6f,0x66,0x66])]());});}))];return window[_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3cbe04([0x72,0x61,0x63,0x65])](_0x5032db)[_0x3cbe04([0x74,0x68,0x65,0x6e])](()=>_0x36ccdf);}async function _0x4cfe29(){await _0x3553f4,_0x5423f6[_0x3cbe04([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cbe04([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3073b2,_0x5423f6[_0x3cbe04([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cbe04([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3073b2,_0x5423f6[_0x3cbe04([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3cbe04([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b7541(_0x1bf69b){const _0x45a8c9=_0x25f6c9();_0x5423f6[_0x45a8c9]=_0x3cbe04([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1bf69b,_0x1bf69b!=_0x3cbe04([0x56,0x61,0x6c,0x69,0x64])&&_0x4cfe29();}function _0x25f6c9(){const _0x2436f5=window[_0x3cbe04([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3cbe04([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3cbe04([0x6e,0x6f,0x77])]())[_0x3cbe04([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3cbe04([0x2e]),'');let _0x47e1dc=_0x3cbe04([0x70]);for(let _0x2a4e0e=0x0;_0x2a4e0e<_0x2436f5[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a4e0e+=0x2){let _0x457a52=window[_0x3cbe04([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2436f5[_0x3cbe04([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2a4e0e,_0x2a4e0e+0x2));_0x457a52>=_0x153313[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x457a52-=_0x153313[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x47e1dc+=_0x153313[_0x457a52];}return _0x47e1dc;}function _0xfc8a17(){const _0x5c022c=_0x111f18[_0x3cbe04([0x73,0x70,0x6c,0x69,0x74])](_0x3cbe04([0x2e]));if(0x3!=_0x5c022c[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a29ff(_0x5c022c[0x1]);function _0x2a29ff(_0x1c8d0c){const _0x379cbd=_0x144b69(_0x1c8d0c);return _0x379cbd&&_0x5b6bee()?_0x379cbd:null;function _0x5b6bee(){const _0x24b755=_0x379cbd[_0x3cbe04([0x6a,0x74,0x69])],_0x547ba5=window[_0x3cbe04([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24b755[_0x3cbe04([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24b755[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5a50f4={..._0x379cbd,[_0x3cbe04([0x6a,0x74,0x69])]:_0x24b755[_0x3cbe04([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x24b755[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5a50f4[_0x3cbe04([0x76,0x63])],_0x3276c4(_0x5a50f4)==_0x547ba5;}}}async function _0x456334(){let _0x56340b=!0x0;try{const _0x40ee4e=_0x111f18[_0x3cbe04([0x73,0x70,0x6c,0x69,0x74])](_0x3cbe04([0x2e])),[_0x511820,_0x5d7de1,_0x319fd2]=_0x40ee4e;return _0x79bd0b(_0x511820),await _0x288c96(_0x511820,_0x5d7de1,_0x319fd2),_0x56340b;}catch(_0x80ccc6){return!0x1;}function _0x79bd0b(_0x10c878){const _0x7f007b=_0x144b69(_0x10c878);_0x7f007b&&_0x7f007b[_0x3cbe04([0x61,0x6c,0x67])]==_0x3cbe04([0x45,0x53,0x32,0x35,0x36])||(_0x56340b=!0x1);}async function _0x288c96(_0x2554c4,_0x2b886,_0xa6b1e2){const _0x455f2f=window[_0x3cbe04([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3cbe04([0x66,0x72,0x6f,0x6d])](_0x30d794(_0xa6b1e2),_0x351df4=>_0x351df4[_0x3cbe04([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x55cb96=new window[(_0x3cbe04([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3cbe04([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2554c4+_0x3cbe04([0x2e])+_0x2b886),_0x5587e8=window[_0x3cbe04([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3cbe04([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5587e8)return;const _0x30e86b=await _0x5587e8[_0x3cbe04([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3cbe04([0x6a,0x77,0x6b]),_0x1b9512,{[_0x3cbe04([0x6e,0x61,0x6d,0x65])]:_0x3cbe04([0x45,0x43,0x44,0x53,0x41]),[_0x3cbe04([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3cbe04([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3cbe04([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5587e8[_0x3cbe04([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3cbe04([0x6e,0x61,0x6d,0x65])]:_0x3cbe04([0x45,0x43,0x44,0x53,0x41]),[_0x3cbe04([0x68,0x61,0x73,0x68])]:{[_0x3cbe04([0x6e,0x61,0x6d,0x65])]:_0x3cbe04([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x30e86b,_0x455f2f,_0x55cb96)||(_0x56340b=!0x1);}}function _0x144b69(_0x273075){return _0x273075[_0x3cbe04([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3cbe04([0x65,0x79]))?JSON[_0x3cbe04([0x70,0x61,0x72,0x73,0x65])](_0x30d794(_0x273075)):null;}function _0x30d794(_0x5f1ab2){return window[_0x3cbe04([0x61,0x74,0x6f,0x62])](_0x5f1ab2[_0x3cbe04([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3cbe04([0x2b]))[_0x3cbe04([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3cbe04([0x2f])));}function _0x3276c4(_0x1dce16){let _0x359b48=0x1505;function _0xa2f500(_0x18cfa8){for(let _0x4bf801=0x0;_0x4bf801<_0x18cfa8[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bf801++){const _0x4dd6ed=_0x18cfa8[_0x3cbe04([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4bf801);_0x359b48=(_0x359b48<<0x5)+_0x359b48+_0x4dd6ed,_0x359b48&=_0x359b48;}}function _0x294939(_0x121b47){Array[_0x3cbe04([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x121b47)?_0x121b47[_0x3cbe04([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x294939):_0x121b47&&typeof _0x121b47==_0x3cbe04([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3cbe04([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x121b47)[_0x3cbe04([0x73,0x6f,0x72,0x74])]()[_0x3cbe04([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5ece0f,_0x240c94])=>{_0xa2f500(_0x5ece0f),_0x294939(_0x240c94);}):_0xa2f500(window[_0x3cbe04([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x121b47));}return _0x294939(_0x1dce16),_0x359b48>>>0x0;}function _0x56ddd1(_0x3d7550){return _0x3d7550[_0x3cbe04([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3cbe04([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3cbe04([0x30]));}function _0x4cc77d(_0x48626d){return _0x48626d[_0x3cbe04([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3cbe04([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3cbe04([0x6a,0x6f,0x69,0x6e])]('');}function _0x3073b2(){}function _0x3cbe04(_0x34b4a0){return _0x34b4a0['map'](_0x22a35c=>String['fromCharCode'](_0x22a35c))['join']('');}_0x3b7541(await _0x17f557());}(this);}['_initSchema'](){const _0x5b2097=this['editor']['model']['schema'];_0x5b2097['isRegistered']('imageBlock')&&_0x5b2097['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5b2097['isRegistered']('imageInline')&&_0x5b2097['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5a5b49=this['editor'];_0x5a5b49['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5a5b49['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4b0e9a=>_0x4b0e9a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2fc37e=_0x5a5b49['commands']['get']('replaceImageSource');_0x2fc37e&&this['listenTo'](_0x2fc37e,'cleanupImage',(_0x40ea3a,[_0x5d67dc,_0x20b0c2])=>{_0x5d67dc['removeAttribute']('uploadcareImageId',_0x20b0c2);});}['_initConfig'](){const _0x1d2f13=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3fd5dc=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x50d96f(_0x4d3312['document'],'uc-config',{..._0x1d2f13,'pubkey':_0x3fd5dc,'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']=_0x14279c=>{if('closeMax'==_0x14279c)return'#uc-icon-arrow-down';},_0x4d3312['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x50d96f(_0x4d3312['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4d3312['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x378755=this['editor']['commands']['get']('insertImage');_0x378755&&this['listenTo'](_0x378755,'execute',()=>{const _0x2e0f6c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2e0f6c&&_0x2e0f6c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2e0f6c);});});const _0xb7af17=this['editor']['commands']['get']('uploadcareImageReplace');_0xb7af17&&this['listenTo'](_0xb7af17,'execute',()=>{const _0x3cb45e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3cb45e&&_0x3cb45e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3cb45e);});});}}class u extends _0x2252f4{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c48a8){super(_0x5c48a8),_0x5c48a8['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x6af673['defineComponents'](_0x6af673);}}class ta extends _0x2607b8{constructor(_0xb892ec){super(_0xb892ec);const t=_0xb892ec['t'],_0x3cae24=this['bindTemplate'],_0x2e72ed=new _0x4de68d();_0x2e72ed['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':[_0x2e72ed,{'text':_0x3cae24['to']('imageUploadProgress',_0x49a491=>t('Loading\x20image...')+'\x20('+(_0x49a491||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 _0x2607b8{constructor(_0x38a76b){super(_0x38a76b);const t=_0x38a76b['t'];this['set']('errorType',null);const _0x39341a=new _0x14edb9(_0x38a76b);_0x39341a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x39341a['withText']=!0x0,_0x39341a['class']='ck-button-action',_0x39341a['on']('execute',()=>{this['fire']('retry');}),_0x39341a['bind']('isVisible')['to'](this,'errorType',_0x35b19f=>'NotFound'!==_0x35b19f);const _0x2f36be=new at();_0x2f36be['content']=et,_0x2f36be['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x11f55f=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':[_0x2f36be,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x11f55f['to']('errorType',_0x24831f=>t('NotFound'!==_0x24831f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x39341a]},{'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 _0x2607b8{constructor(_0x723fe6,_0x4cc246){super(_0x723fe6);const _0x3b2e8c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4cc246,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3b2e8c['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2dd8af,_0x30022e,_0x2eba89){super(_0x2dd8af),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x2dd8af),this['_errorView']=new rt(_0x2dd8af),this['_editingView']=new tt(_0x2dd8af,_0x2eba89),this['_focusableView']=new _0x2607b8(_0x2dd8af),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x30022e),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'],_0x1b727e=>{this['_addUploadcareImageEditorListeners'](_0x1b727e);});}),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'](_0x2e06d7,_0x38fe9a){const _0x3ac794='uc-cloud-image-editor',_0x346629=_0x2e06d7['querySelector'](_0x3ac794);if(_0x346629)return _0x38fe9a(_0x346629);const _0x1a80f3=new MutationObserver(_0x1ba176=>{const _0x23dfaa=_0x1ba176['filter'](_0x4af1d5=>_0x4af1d5['target']===_0x2e06d7&&_0x4af1d5['addedNodes']['length']>0x0&&_0x4af1d5['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3ac794);_0x23dfaa['length']&&(_0x1a80f3['disconnect'](),_0x38fe9a(_0x23dfaa[0x0]['addedNodes'][0x0]));});_0x1a80f3['observe'](_0x2e06d7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x138a77){_0x138a77['addEventListener']('apply',_0x543386=>{this['fire']('apply',{'imageSrc':_0x543386['detail']['cdnUrl']});}),_0x138a77['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4bb07a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x217987,_0x35f3b2,_0x1635c0){super(),this['_editor']=_0x217987,this['_dialog']=_0x35f3b2,this['_imageElement']=_0x1635c0,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 _0x5414ed=this['_imageElement'],_0x4ba950=_0x5414ed['getAttribute']('uploadcareImageId'),_0x4b26c9=_0x5414ed['getAttribute']('src');if(_0x4ba950)await this['_loadImageInfo'](_0x4ba950,_0x4b26c9);else{if(this['_imageCache']['has'](_0x4b26c9)){const _0x2aade4=this['_imageCache']['get'](_0x4b26c9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2aade4['url'],this['imageDimension']=_0x2aade4['dimension'],this['imageId']=_0x2aade4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x285e43}=this['_editor'],t=_0x285e43['t'],_0x493f5f=new Z(_0x285e43,this['imageStatus'],this['_attributes']);_0x493f5f['bind']('status')['to'](this,'imageStatus'),_0x493f5f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x493f5f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x493f5f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x493f5f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x477390,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x493f5f,'position':_0x167e77['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x493f5f['focus']();},'onHide':()=>{_0x493f5f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x32ff54=>!F(_0x32ff54,_0x493f5f['element'])}});}['_loadImageInfo'](_0x1c2eaf,_0x1be61f){return C['getInfo'](_0x1c2eaf,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4f1f4c=>{const {width:_0x12393d,height:_0xd42f9}=_0x4f1f4c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1be61f,this['imageDimension']={'width':_0x12393d,'height':_0xd42f9},this['imageId']=_0x1c2eaf;})['catch'](_0x3f8be1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3f8be1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5450c3,_0x26b715){return this['_getImageAsFile'](_0x5450c3)['then'](_0x512c54=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x26b715['signal'],'file':_0x512c54,'onProgress':_0x2137cf=>{_0x2137cf&&_0x2137cf['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2137cf['value']));}}))['then'](_0x4c380a=>{const {width:_0x401440,height:_0x187fd2}=_0x4c380a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c380a['cdnUrl'],this['imageDimension']={'width':_0x401440,'height':_0x187fd2},this['imageId']=_0x4c380a['uuid'],this['imageUploadProgress']=null;const _0x4fa16a=_0x5450c3['getAttribute']('src');this['_imageCache']['set'](_0x4fa16a,{'id':_0x4c380a['uuid'],'url':_0x4c380a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3a2658=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3a2658['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x660c2c,_0x1c71d4){_0x660c2c['on']('apply',(_0x3162f1,_0x3c915e)=>{this['_replaceImage'](_0x1c71d4,_0x3c915e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x660c2c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x660c2c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x9ccdfd,_0x3d3b90,_0x119b27){const _0x11cef7=this['_editor'],{width:_0x2b205a,height:_0x181000}=A(_0x3d3b90,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1f5264,imageSources:_0x189cdf}=E(_0x3d3b90,_0x2b205a);_0x11cef7['model']['change'](_0x282cf4=>{if('$graveyard'===_0x9ccdfd['root']['rootName']){_0x11cef7['execute']('insertImage',{'imageType':_0x9ccdfd['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x9ccdfd['getAttributes']()),'uploadcareImageId':_0x119b27,'src':_0x1f5264,'sources':_0x189cdf,'width':_0x2b205a,'height':_0x181000}});const _0x14863b=_0x9ccdfd['getChildren']();_0x9ccdfd=_0x11cef7['model']['document']['selection']['getSelectedElement']();for(const _0x1152ff of _0x14863b)_0x282cf4['append'](_0x282cf4['cloneElement'](_0x1152ff),_0x9ccdfd);}else _0x282cf4['setSelection'](_0x9ccdfd,'on'),_0x11cef7['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x9ccdfd['getAttributes']()),'uploadcareImageId':_0x119b27,'src':_0x1f5264,'sources':_0x189cdf,'width':_0x2b205a,'height':_0x181000},_0x9ccdfd);_0x282cf4['setSelection'](_0x9ccdfd,'on');});}async['_getImageAsFile'](_0x25c91a){const _0x471067=_0x4d3312['window'],_0x5e90e0=_0x4d3312['document']['location']['href'],_0x4b06fc=new _0x471067['URL'](_0x25c91a['getAttribute']('src'),_0x5e90e0);if('data:'===_0x4b06fc['protocol']){const _0x563382=_0x4b06fc['href']['split'](','),_0x5afc6c=_0x563382[0x0]['match'](/:(.*?);/)[0x1],_0x3f1ca9=_0x5afc6c['split']('/')[0x1],_0x47618b=_0x471067['atob'](_0x563382[_0x563382['length']-0x1]);let _0x5c2a3a=_0x47618b['length'];const _0x489357=new _0x471067['Uint8Array'](_0x5c2a3a);for(;_0x5c2a3a--;)_0x489357[_0x5c2a3a]=_0x47618b['charCodeAt'](_0x5c2a3a);return new _0x471067['File']([_0x489357],'image.'+_0x3f1ca9,{'type':_0x5afc6c});}const _0x511c7d=_0x4b06fc['href']['split']('/'),_0x1385af=_0x511c7d[_0x511c7d['length']-0x1],_0x59963d=_0x1385af['split']('.')[0x1];return _0x471067['fetch'](_0x4b06fc['href'])['then'](_0x18c4f0=>_0x18c4f0['clone']()['blob']())['then'](_0x25fd7f=>new _0x471067['File']([_0x25fd7f],_0x1385af,{'type':'image/'+_0x59963d}));}}class J extends _0x53cd57{['imageEditController'];static get['requires'](){return[_0x4da01e];}['_isEditable'];constructor(_0x4ca7e1){super(_0x4ca7e1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x43a80){const _0x435acf=V(_0x43a80);return _0x1138a8=>!(!_0x1138a8||!_0x1138a8['is']('element','imageBlock')&&!_0x1138a8['is']('element','imageInline'))&&(!!_0x1138a8['hasAttribute']('uploadcareImageId')||!!_0x1138a8['hasAttribute']('src')&&_0x435acf(_0x1138a8['getAttribute']('src')));}(_0x4ca7e1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5778c3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5778c3);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x25f122=this['editor']['model']['document']['selection']['getSelectedElement']();_0x25f122&&(_0x25f122['is']('element','imageBlock')||_0x25f122['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x4da01e),_0x25f122),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x53cd57{['refresh'](){const _0x1db25c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1db25c&&(_0x1db25c['is']('element','imageBlock')||_0x1db25c['is']('element','imageInline')));}['execute'](_0x27a782){const _0x39b2db=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xd11561=>{_0xd11561['setAttributes'](_0x27a782,_0x39b2db),_0xd11561['removeAttribute']('srcset',_0x39b2db),_0xd11561['removeAttribute']('sizes',_0x39b2db);});}}class g extends _0x2252f4{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x498d67,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x8d6a81}=this;_0x8d6a81['commands']['add']('uploadcareImageEdit',new J(_0x8d6a81)),_0x8d6a81['commands']['add']('uploadcareImageReplace',new O(_0x8d6a81));}}class j extends _0x2252f4{['_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 _0x57d548=this['editor'];_0x57d548['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1b6adb=>{const _0x1e5836=_0x57d548['commands']['get']('uploadcareImageEdit'),_0x2eee94=new _0x14edb9(_0x1b6adb),t=_0x1b6adb['t'];return _0x2eee94['set']({'icon':_0x477390,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2eee94['bind']('isEnabled')['to'](_0x1e5836),_0x2eee94['bind']('isOn')['to'](_0x1e5836,'isActive'),this['listenTo'](_0x2eee94,'execute',()=>{_0x57d548['execute']('uploadcareImageEdit'),_0x57d548['editing']['view']['focus']();}),_0x2eee94;}),this['_initConfig']();}['_initConfig'](){const _0x3ea38d=_0x50d96f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3ea38d),this['listenTo'](this['editor'],'destroy',()=>{_0x3ea38d['remove']();});}}class P extends _0x2252f4{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.4",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "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.4",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "45.1.0-alpha.4",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "45.1.0-alpha.4",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "45.1.0-alpha.4",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "45.1.0-alpha.4",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "45.1.0-alpha.4",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "45.1.0-alpha.4",
|
|
33
|
+
"ckeditor5": "45.1.0-alpha.4",
|
|
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 _0x3b88c4=_0x55b3;(function(_0x29087d,_0x2e51df){const _0x5377f8=_0x55b3,_0x1ba25d=_0x29087d();while(!![]){try{const _0x3f14c1=parseInt(_0x5377f8(0x16f))/0x1+-parseInt(_0x5377f8(0x156))/0x2*(-parseInt(_0x5377f8(0x15d))/0x3)+-parseInt(_0x5377f8(0x189))/0x4+parseInt(_0x5377f8(0x171))/0x5*(-parseInt(_0x5377f8(0x15e))/0x6)+-parseInt(_0x5377f8(0x16a))/0x7*(parseInt(_0x5377f8(0x16d))/0x8)+-parseInt(_0x5377f8(0x146))/0x9+parseInt(_0x5377f8(0x147))/0xa;if(_0x3f14c1===_0x2e51df)break;else _0x1ba25d['push'](_0x1ba25d['shift']());}catch(_0x8d83b6){_0x1ba25d['push'](_0x1ba25d['shift']());}}}(_0x47e2,0x32d80));import{Plugin as _0x24323c}from'ckeditor5/src/core.js';function _0x55b3(_0x68ae3e,_0x57f324){const _0x47e21e=_0x47e2();return _0x55b3=function(_0x55b3c9,_0x1cacbc){_0x55b3c9=_0x55b3c9-0x13a;let _0x4e8cf1=_0x47e21e[_0x55b3c9];return _0x4e8cf1;},_0x55b3(_0x68ae3e,_0x57f324);}import{Dialog as _0x1aeaf6}from'ckeditor5/src/ui.js';import{createElement as _0x4c239e,global as _0x3313a6,uid as _0x21b39c}from'ckeditor5/src/utils.js';import _0x132a16 from'./uploadcarecommand.js';import _0x24cec3 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x40bc5f}from'./utils/editingutils.js';function _0x47e2(){const _0x5a5664=['getSelectedElement','8xbidmR','configElement','302818rRDhcQ','for','218585xLVTeM','attributeToAttribute','ctxElement','commands','appendChild','init','_initCtx','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','_initConversion','uploadcareImageReplace','imageBlock','afterInit','input[uploadcare-file-input]','uploadcare.uploader','href','uploadcare.pubkey','closeMax','requires','render','uc-config','uploader','upcast','document','_configElement','584556BxNyQC','get','destroy','data-uc-image-id','editor','model','querySelector','PictureEditing','contentLanguage','uploadcareImageId','removeAttribute','downcast','isOfficialPlugin','getAttribute','extend','pluginName','uploadcare','764856KSSqbB','6148430UQUMtt','cleanupImage','schema','execute','body','conversion','config','isPremiumPlugin','uc-upload-ctx-provider','_initSchema','imageInline','selection','listenTo','elementToAttribute','map','68674qBPwog','once','#uc-icon-arrow-down','iconHrefResolver','_initImageProcessingIndicator','fromCharCode','_initConfig','3ajQHcE','54PFvrus','_ctxElement','replaceImageSource','remove','UploadcareEditing','view','insertImage','editing','true','locale','join','add','834162YmWPIh','isRegistered'];_0x47e2=function(){return _0x5a5664;};return _0x47e2();}export default class i extends _0x24323c{[_0x3b88c4(0x188)]=null;[_0x3b88c4(0x15f)]=null;static get[_0x3b88c4(0x144)](){const _0x156946=_0x3b88c4;return _0x156946(0x162);}static get[_0x3b88c4(0x182)](){const _0x21eb1a=_0x3b88c4;return[_0x21eb1a(0x13c),_0x24cec3,_0x1aeaf6];}static get[_0x3b88c4(0x141)](){return!0x0;}static get[_0x3b88c4(0x14e)](){return!0x0;}get[_0x3b88c4(0x16e)](){const _0x4dfb83=_0x3b88c4;return this[_0x4dfb83(0x188)];}get[_0x3b88c4(0x173)](){const _0x3a7a79=_0x3b88c4;return this[_0x3a7a79(0x15f)];}[_0x3b88c4(0x176)](){const _0x2e3877=_0x3b88c4,_0x5bf0c4=this[_0x2e3877(0x18d)];_0x5bf0c4[_0x2e3877(0x174)][_0x2e3877(0x169)](_0x2e3877(0x145),new _0x132a16(_0x5bf0c4));}[_0x3b88c4(0x17c)](){const _0x5192c6=_0x3b88c4;this[_0x5192c6(0x150)](),this[_0x5192c6(0x179)](),this[_0x5192c6(0x15c)](),this[_0x5192c6(0x177)](),this[_0x5192c6(0x15a)](),this[_0x5192c6(0x153)](this[_0x5192c6(0x18d)],_0x5192c6(0x18b),()=>{const _0x5b07c1=_0x5192c6;this[_0x5b07c1(0x188)]&&(this[_0x5b07c1(0x188)][_0x5b07c1(0x161)](),this[_0x5b07c1(0x188)]=null),this[_0x5b07c1(0x15f)]&&(this[_0x5b07c1(0x15f)][_0x5b07c1(0x161)](),this[_0x5b07c1(0x15f)]=null);const _0x40215c=_0x3313a6[_0x5b07c1(0x187)][_0x5b07c1(0x13b)](_0x5b07c1(0x17d));_0x40215c&&_0x40215c[_0x5b07c1(0x161)]();}),async function(_0x1a2a6f){const _0x121e6f=_0x4f1aa8([0x35,0x70,0x33,0x34,0x56,0x6c,0x74,0x64,0x5a,0x73,0x63,0x79,0x6f,0x49,0x69,0x61,0x68,0x65,0x32,0x44,0x4e,0x36,0x4a,0x72,0x6a,0x6e,0x66,0x67,0x50,0x4d,0x41,0x46,0x53,0x75,0x76,0x43,0x6b,0x54,0x31,0x42,0x78,0x4f,0x48,0x38,0x4c,0x6d,0x4b,0x51,0x45,0x57,0x58,0x47,0x30,0x52,0x77,0x39,0x37,0x59,0x7a,0x55,0x62,0x71]),_0x270685=0x5d94eb28,_0xb85e3f=0x5d938ca0^_0x270685,_0x168db3=window[_0x4f1aa8([0x44,0x61,0x74,0x65])][_0x4f1aa8([0x6e,0x6f,0x77])](),_0xdaa827=_0x1a2a6f[_0x4f1aa8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b388f=new window[(_0x4f1aa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x170ab0=>{_0xdaa827[_0x4f1aa8([0x6f,0x6e,0x63,0x65])](_0x4f1aa8([0x72,0x65,0x61,0x64,0x79]),_0x170ab0);}),_0x4d3dad={[_0x4f1aa8([0x6b,0x74,0x79])]:_0x4f1aa8([0x45,0x43]),[_0x4f1aa8([0x75,0x73,0x65])]:_0x4f1aa8([0x73,0x69,0x67]),[_0x4f1aa8([0x63,0x72,0x76])]:_0x4f1aa8([0x50,0x2d,0x32,0x35,0x36]),[_0x4f1aa8([0x78])]:_0x4f1aa8([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]),[_0x4f1aa8([0x79])]:_0x4f1aa8([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]),[_0x4f1aa8([0x61,0x6c,0x67])]:_0x4f1aa8([0x45,0x53,0x32,0x35,0x36])},_0x447d1c=_0xdaa827[_0x4f1aa8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f1aa8([0x67,0x65,0x74])](_0x4f1aa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1d9cbe(){let _0x44ee74,_0x340136=null,_0x275157=null;try{if(_0x447d1c==_0x4f1aa8([0x47,0x50,0x4c]))return _0x4f1aa8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x44ee74=_0x1fd37f(),!_0x44ee74)return _0x4f1aa8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x44ee74[_0x4f1aa8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x275157=_0x50500a(_0x44ee74[_0x4f1aa8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x44ee74[_0x4f1aa8([0x6a,0x74,0x69])])),await _0x3ab7e3()?_0x4ecb94()?_0x5489de()?_0x4f1aa8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a04a2()?(_0x44ee74[_0x4f1aa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f1aa8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x340136=_0x2fd5c5(_0x4f1aa8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x44ee74[_0x4f1aa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f1aa8([0x74,0x72,0x69,0x61,0x6c])&&(_0x340136=_0x2fd5c5(_0x4f1aa8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x17ceac()):_0x4f1aa8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f1aa8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f1aa8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x587b6d){return _0x4f1aa8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5489de(){const _0x12beb9=[_0x4f1aa8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f1aa8([0x74,0x72,0x69,0x61,0x6c])][_0x4f1aa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44ee74[_0x4f1aa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x168db3/0x3e8:0xe10*_0xb85e3f;return _0x44ee74[_0x4f1aa8([0x65,0x78,0x70])]<_0x12beb9;}function _0x4ecb94(){const _0x75f783=_0x44ee74[_0x4f1aa8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x75f783&&(!!_0x75f783[_0x4f1aa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f1aa8([0x2a]))||!!_0x75f783[_0x4f1aa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f1aa8([0x55,0x50,0x4c,0x43])));}function _0x4a04a2(){const _0x42d492=_0x55b3,_0x5f50ae=_0x44ee74[_0x4f1aa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5f50ae||0x0==_0x5f50ae[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x123cc1}=new URL(window[_0x4f1aa8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x42d492(0x17f)]);if(_0x5f50ae[_0x4f1aa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x123cc1))return!0x0;const _0x4207ee=_0x123cc1[_0x4f1aa8([0x73,0x70,0x6c,0x69,0x74])](_0x4f1aa8([0x2e]));return _0x5f50ae[_0x4f1aa8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x368c47=>_0x368c47[_0x4f1aa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f1aa8([0x2a])))[_0x4f1aa8([0x6d,0x61,0x70])](_0x35bd1a=>_0x35bd1a[_0x4f1aa8([0x73,0x70,0x6c,0x69,0x74])](_0x4f1aa8([0x2e])))[_0x4f1aa8([0x73,0x6f,0x6d,0x65])](_0x5f48e9=>_0x4207ee[_0x4f1aa8([0x65,0x76,0x65,0x72,0x79])]((_0x52949e,_0x53f222)=>_0x5f48e9[_0x53f222]===_0x52949e||_0x5f48e9[_0x53f222]===_0x4f1aa8([0x2a])));}function _0x17ceac(){return _0x340136&&_0x275157?new window[(_0x4f1aa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x333419,_0x5b8910)=>{_0x340136[_0x4f1aa8([0x74,0x68,0x65,0x6e])](_0x333419,_0x5b8910),_0x275157[_0x4f1aa8([0x74,0x68,0x65,0x6e])](_0x32d5d9=>{_0x32d5d9!=_0x4f1aa8([0x56,0x61,0x6c,0x69,0x64])&&_0x333419(_0x32d5d9);},_0x5b8910);}):_0x340136||_0x275157||_0x4f1aa8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x50500a(_0x3e1aeb,_0x1ca6bb){return new window[(_0x4f1aa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4699bc=>{if(_0x1a0f8c())return _0x4699bc(_0x4f1aa8([0x56,0x61,0x6c,0x69,0x64]));_0x2e95cc(),_0xdaa827[_0x4f1aa8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f1aa8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1c1bcc=!0x1;const _0x41a0ec=_0x21b39c();function _0x2c3bdf(_0x5ccebe){return!!_0x5ccebe&&(typeof _0x5ccebe===_0x4f1aa8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ccebe===_0x4f1aa8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ccebe[_0x4f1aa8([0x74,0x68,0x65,0x6e])]===_0x4f1aa8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ccebe[_0x4f1aa8([0x63,0x61,0x74,0x63,0x68])]===_0x4f1aa8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x40d58d(_0x50c91d){_0x1b126d(_0x50c91d)[_0x4f1aa8([0x74,0x68,0x65,0x6e])](_0x5c89d4=>{if(!_0x5c89d4||_0x5c89d4[_0x4f1aa8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f1aa8([0x6f,0x6b]))return _0x4f1aa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x222392(_0x30e2c6(_0x41a0ec+_0x1ca6bb))!=_0x5c89d4[_0x4f1aa8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f1aa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f1aa8([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f1aa8([0x74,0x68,0x65,0x6e])](_0x285a56=>(_0x360978(),_0x285a56),()=>{const _0x1d9ed2=_0x27f1e4();return null==_0x1d9ed2?(_0x360978(),_0x4f1aa8([0x56,0x61,0x6c,0x69,0x64])):_0x4f1aa8(_0x168db3-_0x1d9ed2>(0x79986f28^_0x270685)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f1aa8([0x74,0x68,0x65,0x6e])](_0x4699bc)[_0x4f1aa8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4699bc(_0x4f1aa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x269027=0x5da205a8^_0x270685;function _0x360978(){const _0x4510dd=_0x4f1aa8([0x6c,0x6c,0x63,0x74,0x2d])+_0x222392(_0x30e2c6(_0x3e1aeb)),_0x8d9edb=_0xabe0ad(_0x222392(window[_0x4f1aa8([0x4d,0x61,0x74,0x68])][_0x4f1aa8([0x63,0x65,0x69,0x6c])](_0x168db3/_0x269027)));window[_0x4f1aa8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f1aa8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4510dd,_0x8d9edb);}function _0x27f1e4(){const _0x26be45=_0x4f1aa8([0x6c,0x6c,0x63,0x74,0x2d])+_0x222392(_0x30e2c6(_0x3e1aeb)),_0x1e336c=window[_0x4f1aa8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f1aa8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26be45);return _0x1e336c?window[_0x4f1aa8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xabe0ad(_0x1e336c),0x10)*_0x269027:null;}function _0x1b126d(_0x22bbb4){return new window[(_0x4f1aa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3918e8,_0x34520f)=>{_0x22bbb4[_0x4f1aa8([0x74,0x68,0x65,0x6e])](_0x3918e8,_0x34520f),window[_0x4f1aa8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x34520f,0x5d953fe8^_0x270685);});}}_0xdaa827[_0x4f1aa8([0x6f,0x6e])](_0x4f1aa8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x46f806,_0x18065d)=>{if(_0x18065d[0x0]!=_0x3e1aeb)return _0x4699bc(_0x4f1aa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x18065d[0x1]={..._0x18065d[0x1],[_0x4f1aa8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x41a0ec};},{[_0x4f1aa8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f1aa8([0x68,0x69,0x67,0x68])}),_0xdaa827[_0x4f1aa8([0x6f,0x6e])](_0x4f1aa8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a8132=>{_0x2c3bdf(_0x1a8132[_0x4f1aa8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1c1bcc=!0x0,_0x40d58d(_0x1a8132[_0x4f1aa8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f1aa8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f1aa8([0x6c,0x6f,0x77])}),_0x4b388f[_0x4f1aa8([0x74,0x68,0x65,0x6e])](()=>{_0x1c1bcc||_0x4699bc(_0x4f1aa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1a0f8c(){return _0xdaa827[_0x4f1aa8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f1aa8([0x76,0x69,0x65,0x77])][_0x4f1aa8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f1aa8([0x61,0x75,0x74,0x6f]);}function _0x2e95cc(){_0xdaa827[_0x4f1aa8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f1aa8([0x76,0x69,0x65,0x77])][_0x4f1aa8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f1aa8([0x61,0x75,0x74,0x6f]);}}function _0x2fd5c5(_0x516032){const _0x2df04a=[new window[(_0x4f1aa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x126fbf=>setTimeout(_0x126fbf,0x5d9dd5e4^_0x270685)),_0x4b388f[_0x4f1aa8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f1aa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x470908=>{let _0x2fdb11=0x0;_0xdaa827[_0x4f1aa8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f1aa8([0x6f,0x6e])](_0x4f1aa8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d7d25,_0x42857a)=>{_0x42857a[0x0][_0x4f1aa8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2fdb11++,_0x2fdb11==(0x5d94ead0^_0x270685)&&(_0x470908(),_0x4d7d25[_0x4f1aa8([0x6f,0x66,0x66])]());});}))];return window[_0x4f1aa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f1aa8([0x72,0x61,0x63,0x65])](_0x2df04a)[_0x4f1aa8([0x74,0x68,0x65,0x6e])](()=>_0x516032);}async function _0x1934e1(){await _0x4b388f,_0xdaa827[_0x4f1aa8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f1aa8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7f05fe,_0xdaa827[_0x4f1aa8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f1aa8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7f05fe,_0xdaa827[_0x4f1aa8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f1aa8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x231cc2(_0x4c7268){const _0x184bb3=_0x48fd45();_0xdaa827[_0x184bb3]=_0x4f1aa8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c7268,_0x4c7268!=_0x4f1aa8([0x56,0x61,0x6c,0x69,0x64])&&_0x1934e1();}function _0x48fd45(){const _0x5b264b=window[_0x4f1aa8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f1aa8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f1aa8([0x6e,0x6f,0x77])]())[_0x4f1aa8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f1aa8([0x2e]),'');let _0x27edc5=_0x4f1aa8([0x70]);for(let _0x5e71d5=0x0;_0x5e71d5<_0x5b264b[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e71d5+=0x2){let _0x239a3b=window[_0x4f1aa8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b264b[_0x4f1aa8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e71d5,_0x5e71d5+0x2));_0x239a3b>=_0x121e6f[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x239a3b-=_0x121e6f[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x27edc5+=_0x121e6f[_0x239a3b];}return _0x27edc5;}function _0x1fd37f(){const _0x150a61=_0x447d1c[_0x4f1aa8([0x73,0x70,0x6c,0x69,0x74])](_0x4f1aa8([0x2e]));if(0x3!=_0x150a61[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a4de0(_0x150a61[0x1]);function _0x2a4de0(_0x3b7c03){const _0x1e302c=_0x15b0cb(_0x3b7c03);return _0x1e302c&&_0x5a87b5()?_0x1e302c:null;function _0x5a87b5(){const _0x5164a0=_0x1e302c[_0x4f1aa8([0x6a,0x74,0x69])],_0x131637=window[_0x4f1aa8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5164a0[_0x4f1aa8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5164a0[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5e01b5={..._0x1e302c,[_0x4f1aa8([0x6a,0x74,0x69])]:_0x5164a0[_0x4f1aa8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5164a0[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5e01b5[_0x4f1aa8([0x76,0x63])],_0x30e2c6(_0x5e01b5)==_0x131637;}}}async function _0x3ab7e3(){let _0x5ed08f=!0x0;try{const _0xe2b1ae=_0x447d1c[_0x4f1aa8([0x73,0x70,0x6c,0x69,0x74])](_0x4f1aa8([0x2e])),[_0x21e0a3,_0x5fc89d,_0x1a38d0]=_0xe2b1ae;return _0x56f5ea(_0x21e0a3),await _0xc77619(_0x21e0a3,_0x5fc89d,_0x1a38d0),_0x5ed08f;}catch(_0x3ee4ac){return!0x1;}function _0x56f5ea(_0xce7ac7){const _0x37c84c=_0x15b0cb(_0xce7ac7);_0x37c84c&&_0x37c84c[_0x4f1aa8([0x61,0x6c,0x67])]==_0x4f1aa8([0x45,0x53,0x32,0x35,0x36])||(_0x5ed08f=!0x1);}async function _0xc77619(_0x3f7c8f,_0x330156,_0x5ea553){const _0x20b677=window[_0x4f1aa8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f1aa8([0x66,0x72,0x6f,0x6d])](_0x5620a7(_0x5ea553),_0x2a3894=>_0x2a3894[_0x4f1aa8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2eeb15=new window[(_0x4f1aa8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f1aa8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3f7c8f+_0x4f1aa8([0x2e])+_0x330156),_0x3ea202=window[_0x4f1aa8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f1aa8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3ea202)return;const _0x444337=await _0x3ea202[_0x4f1aa8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f1aa8([0x6a,0x77,0x6b]),_0x4d3dad,{[_0x4f1aa8([0x6e,0x61,0x6d,0x65])]:_0x4f1aa8([0x45,0x43,0x44,0x53,0x41]),[_0x4f1aa8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f1aa8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f1aa8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3ea202[_0x4f1aa8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f1aa8([0x6e,0x61,0x6d,0x65])]:_0x4f1aa8([0x45,0x43,0x44,0x53,0x41]),[_0x4f1aa8([0x68,0x61,0x73,0x68])]:{[_0x4f1aa8([0x6e,0x61,0x6d,0x65])]:_0x4f1aa8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x444337,_0x20b677,_0x2eeb15)||(_0x5ed08f=!0x1);}}function _0x15b0cb(_0x5f46f6){return _0x5f46f6[_0x4f1aa8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f1aa8([0x65,0x79]))?JSON[_0x4f1aa8([0x70,0x61,0x72,0x73,0x65])](_0x5620a7(_0x5f46f6)):null;}function _0x5620a7(_0x539412){return window[_0x4f1aa8([0x61,0x74,0x6f,0x62])](_0x539412[_0x4f1aa8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f1aa8([0x2b]))[_0x4f1aa8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f1aa8([0x2f])));}function _0x30e2c6(_0x572fec){let _0x5e8f86=0x1505;function _0x715af(_0x5e7f77){for(let _0x4035cf=0x0;_0x4035cf<_0x5e7f77[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4035cf++){const _0x1e10f8=_0x5e7f77[_0x4f1aa8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4035cf);_0x5e8f86=(_0x5e8f86<<0x5)+_0x5e8f86+_0x1e10f8,_0x5e8f86&=_0x5e8f86;}}function _0x1b6cbc(_0xc269e){Array[_0x4f1aa8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc269e)?_0xc269e[_0x4f1aa8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1b6cbc):_0xc269e&&typeof _0xc269e==_0x4f1aa8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f1aa8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc269e)[_0x4f1aa8([0x73,0x6f,0x72,0x74])]()[_0x4f1aa8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x95ac4,_0x3833d1])=>{_0x715af(_0x95ac4),_0x1b6cbc(_0x3833d1);}):_0x715af(window[_0x4f1aa8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc269e));}return _0x1b6cbc(_0x572fec),_0x5e8f86>>>0x0;}function _0x222392(_0x438e92){return _0x438e92[_0x4f1aa8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f1aa8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f1aa8([0x30]));}function _0xabe0ad(_0x584b3b){return _0x584b3b[_0x4f1aa8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f1aa8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f1aa8([0x6a,0x6f,0x69,0x6e])]('');}function _0x7f05fe(){}function _0x4f1aa8(_0x76398f){const _0x477e7c=_0x55b3;return _0x76398f[_0x477e7c(0x155)](_0x36402b=>String[_0x477e7c(0x15b)](_0x36402b))[_0x477e7c(0x168)]('');}_0x231cc2(await _0x1d9cbe());}(this);}[_0x3b88c4(0x150)](){const _0x281dd1=_0x3b88c4,_0x3009e0=this[_0x281dd1(0x18d)][_0x281dd1(0x13a)][_0x281dd1(0x149)];_0x3009e0[_0x281dd1(0x16b)](_0x281dd1(0x17b))&&_0x3009e0[_0x281dd1(0x143)](_0x281dd1(0x17b),{'allowAttributes':[_0x281dd1(0x13e)]}),_0x3009e0[_0x281dd1(0x16b)](_0x281dd1(0x151))&&_0x3009e0[_0x281dd1(0x143)](_0x281dd1(0x151),{'allowAttributes':[_0x281dd1(0x13e)]});}[_0x3b88c4(0x179)](){const _0x3c3255=_0x3b88c4,_0x123914=this[_0x3c3255(0x18d)];_0x123914[_0x3c3255(0x14c)][_0x3c3255(0x170)](_0x3c3255(0x140))[_0x3c3255(0x172)]({'model':_0x3c3255(0x13e),'view':_0x3c3255(0x18c)}),_0x123914[_0x3c3255(0x14c)][_0x3c3255(0x170)](_0x3c3255(0x186))[_0x3c3255(0x154)]({'model':{'key':_0x3c3255(0x13e),'value':_0x454743=>_0x454743[_0x3c3255(0x142)](_0x3c3255(0x18c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x297601=_0x123914[_0x3c3255(0x174)][_0x3c3255(0x18a)](_0x3c3255(0x160));_0x297601&&this[_0x3c3255(0x153)](_0x297601,_0x3c3255(0x148),(_0x1c8ba1,[_0x1b5888,_0x3ef5af])=>{const _0x3c9ae1=_0x3c3255;_0x1b5888[_0x3c9ae1(0x13f)](_0x3c9ae1(0x13e),_0x3ef5af);});}[_0x3b88c4(0x15c)](){const _0xf0b20e=_0x3b88c4,_0x419e82=this[_0xf0b20e(0x18d)][_0xf0b20e(0x14d)][_0xf0b20e(0x18a)](_0xf0b20e(0x17e))||{},_0x325b31=this[_0xf0b20e(0x18d)][_0xf0b20e(0x14d)][_0xf0b20e(0x18a)](_0xf0b20e(0x180))||'';this[_0xf0b20e(0x188)]=_0x4c239e(_0x3313a6[_0xf0b20e(0x187)],_0xf0b20e(0x184),{..._0x419e82,'pubkey':_0x325b31,'ctx-name':_0xf0b20e(0x185),'sourceList':'','imgOnly':_0xf0b20e(0x166),'removeCopyright':_0xf0b20e(0x166),'localeName':this[_0xf0b20e(0x18d)][_0xf0b20e(0x167)][_0xf0b20e(0x13d)],'externalSourcesEmbedCss':_0xf0b20e(0x178)}),this[_0xf0b20e(0x188)][_0xf0b20e(0x159)]=_0x56c51c=>{const _0x55f2a9=_0xf0b20e;if(_0x55f2a9(0x181)==_0x56c51c)return _0x55f2a9(0x158);},_0x3313a6[_0xf0b20e(0x187)][_0xf0b20e(0x14b)][_0xf0b20e(0x175)](this[_0xf0b20e(0x188)]);}[_0x3b88c4(0x177)](){const _0x3c6a80=_0x3b88c4;this[_0x3c6a80(0x15f)]=_0x4c239e(_0x3313a6[_0x3c6a80(0x187)],_0x3c6a80(0x14f),{'ctx-name':_0x3c6a80(0x185)}),_0x3313a6[_0x3c6a80(0x187)][_0x3c6a80(0x14b)][_0x3c6a80(0x175)](this[_0x3c6a80(0x15f)]);}[_0x3b88c4(0x15a)](){const _0x5e6f76=_0x3b88c4,_0x3a63bf=this[_0x5e6f76(0x18d)][_0x5e6f76(0x174)][_0x5e6f76(0x18a)](_0x5e6f76(0x164));_0x3a63bf&&this[_0x5e6f76(0x153)](_0x3a63bf,_0x5e6f76(0x14a),()=>{const _0x5970ed=_0x5e6f76,_0x101044=this[_0x5970ed(0x18d)][_0x5970ed(0x13a)][_0x5970ed(0x187)][_0x5970ed(0x152)][_0x5970ed(0x16c)]();_0x101044&&_0x101044[_0x5970ed(0x142)](_0x5970ed(0x13e))&&this[_0x5970ed(0x18d)][_0x5970ed(0x165)][_0x5970ed(0x163)][_0x5970ed(0x157)](_0x5970ed(0x183),()=>{const _0x1d5af9=_0x5970ed;_0x40bc5f(this[_0x1d5af9(0x18d)],_0x101044);});});const _0xa657f8=this[_0x5e6f76(0x18d)][_0x5e6f76(0x174)][_0x5e6f76(0x18a)](_0x5e6f76(0x17a));_0xa657f8&&this[_0x5e6f76(0x153)](_0xa657f8,_0x5e6f76(0x14a),()=>{const _0x485eba=_0x5e6f76,_0x223d62=this[_0x485eba(0x18d)][_0x485eba(0x13a)][_0x485eba(0x187)][_0x485eba(0x152)][_0x485eba(0x16c)]();_0x223d62&&_0x223d62[_0x485eba(0x142)](_0x485eba(0x13e))&&this[_0x485eba(0x18d)][_0x485eba(0x165)][_0x485eba(0x163)][_0x485eba(0x157)](_0x485eba(0x183),()=>{const _0x3db88d=_0x485eba;_0x40bc5f(this[_0x3db88d(0x18d)],_0x223d62);});});}}
|