@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250822.0 → 0.0.0-nightly-20250825.0
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 _0x14e24a,Command as _0x393c08}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5d99cb,IconGooglePhotos as _0x16d81e,IconGoogleDrive as _0x560993,IconFacebook as _0x32cbef,IconDropbox as _0x58f9c1,IconUploadcareLink as _0x3d03fa,IconUploadcareImageUpload as _0x3c78c8,IconError as _0x172c85,IconUploadcareImageEdit as _0x11b062}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1886b2,MenuBarMenuListItemButtonView as _0x467fe6,View as _0xef9a0b,FocusCycler as _0x49cd3b,Dialog as _0x42096c,DialogViewPosition as _0x54b529,SpinnerView as _0x55baf8,IconView as _0x398ea8,Notification as _0x2bc626}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x41f066,DomEmitterMixin as _0x4357a3,global as _0x401f8c,getAncestors as _0x16cc78,ObservableMixin as _0x1ea966,uid as _0x10fbae,createElement as _0x27308e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5ed43f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x316d3b,info as _0x191aaa}from'@uploadcare/upload-client';import*as _0x327dc9 from'@uploadcare/file-uploader';var i=function(_0x2bc971){return _0x2bc971['Local']='local',_0x2bc971['URL']='url',_0x2bc971['Dropbox']='dropbox',_0x2bc971['GDrive']='gdrive',_0x2bc971['Facebook']='facebook',_0x2bc971['GPhotos']='gphotos',_0x2bc971['OneDrive']='onedrive',_0x2bc971;}({});function _(_0x40f637,_0xe4dab3,_0x659c6d){const t=_0x40f637['t'],_0x3003d8=_0x40f637['t'];switch(_0xe4dab3){case i['Local']:return{'text':_0x3003d8('Insert'===_0x659c6d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3003d8('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x659c6d?_0x3003d8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3003d8('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x659c6d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x659c6d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x659c6d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x659c6d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x659c6d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xe4dab3;}}class e extends _0x14e24a{['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 _0x5e4429=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3e26ad;for(const _0x4d20e5 in _0x5e4429){const _0x42ee77=_0x4d20e5,_0x181a5c=_0x5e4429[_0x42ee77];if('uploadcareLicenseKeyValid'==_0x181a5c||'uploadcareLicenseKeyInvalid'==_0x181a5c||'uploadcareLicenseKeyExpired'==_0x181a5c||'uploadcareLicenseKeyDomainLimit'==_0x181a5c||'uploadcareLicenseKeyNotAllowed'==_0x181a5c||'uploadcareLicenseKeyEvaluationLimit'==_0x181a5c||'uploadcareLicenseKeyTrialLimit'==_0x181a5c||'uploadcareLicenseKeyUsageLimit'==_0x181a5c){delete _0x5e4429[_0x42ee77],_0x3e26ad=_0x181a5c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3e26ad&&_0x5e4429['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3e26ad&&_0x5e4429['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3e26ad&&_0x5e4429['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3e26ad&&_0x5e4429['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3e26ad&&_0x5e4429['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3e26ad&&_0x5e4429['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3e26ad&&_0x5e4429['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x338643}=this,_0x5cba73=_0x338643['commands']['get']('uploadcare');if(!_0x5cba73)return;const _0x5589c6=this['_normalizeConfigSourceList'](_0x338643['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xf55894,_0x226cc5)=>{const _0x20fc24=this['_getIntegrationKey'](_0x226cc5['type']);return _0xf55894[_0x20fc24]||(_0xf55894[_0x20fc24]=[]),_0xf55894[_0x20fc24]['push'](_0x226cc5),_0xf55894;},{});_0x338643['plugins']['has']('ImageInsertUI')&&_0x338643['commands']['get']('uploadcare')&&Object['entries'](_0x5589c6)['forEach'](([_0x2b59c7,_0x5f298d])=>{_0x338643['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2b59c7,'observable':()=>_0x5cba73,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5f298d),'formViewCreator':()=>this['_createDropdownButtons'](_0x5f298d),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5f298d),'override':'assetManager'!==_0x2b59c7});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x40efd4){const {locale:_0x14142d}=this['editor'];return _0x40efd4['map'](_0x27d88e=>{const _0x2f257=_(_0x14142d,_0x27d88e,'Insert');switch(_0x27d88e){case i['Local']:return{'icon':_0x3c78c8,'type':i['Local'],..._0x2f257};case i['URL']:return{'icon':_0x3d03fa,'type':i['URL'],..._0x2f257};case i['Dropbox']:return{'icon':_0x58f9c1,'type':i['Dropbox'],..._0x2f257};case i['Facebook']:return{'icon':_0x32cbef,'type':i['Facebook'],..._0x2f257};case i['GDrive']:return{'icon':_0x560993,'type':i['GDrive'],..._0x2f257};case i['GPhotos']:return{'icon':_0x16d81e,'type':i['GPhotos'],..._0x2f257};case i['OneDrive']:return{'icon':_0x5d99cb,'type':i['OneDrive'],..._0x2f257};}});}['_getIntegrationKey'](_0x2bdb73){switch(_0x2bdb73){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x206747,_0x4d122f){const _0x405c11=this['editor'],_0xa15c9=new _0x206747(_0x405c11['locale']),_0x15e916=_0x405c11['commands']['get']('uploadcare');return _0xa15c9['bind']('isEnabled')['to'](_0x15e916),_0xa15c9['on']('execute',()=>{_0x15e916['execute'](_0x4d122f);}),_0xa15c9;}['_createToolbarButton'](_0x252a0e){const {locale:_0x5763d6}=this['editor'],_0x3a6d81=this['editor']['plugins']['get']('ImageInsertUI'),_0x19de61=_0x252a0e[0x0],_0x5cadd2=this['_createButton'](_0x1886b2,_0x19de61['type']);return _0x5cadd2['icon']=_0x19de61['icon'],_0x5cadd2['bind']('label')['to'](_0x3a6d81,'isImageSelected',_0x17c4a1=>_(_0x5763d6,_0x19de61['type'],_0x17c4a1?'Replace':'Insert')['text']),_0x5cadd2['tooltip']=!0x0,_0x5cadd2;}['_createDropdownButtons'](_0x8f9b3d){const {locale:_0x23633c}=this['editor'],_0x389d58=this['editor']['plugins']['get']('ImageInsertUI');return _0x8f9b3d['map'](_0x45fd60=>{const _0x5a5cde=this['_createButton'](_0x1886b2,_0x45fd60['type']);return _0x5a5cde['withText']=!0x0,_0x5a5cde['icon']=_0x45fd60['icon'],_0x5a5cde['bind']('label')['to'](_0x389d58,'isImageSelected',_0x1e1891=>_(_0x23633c,_0x45fd60['type'],_0x1e1891?'Replace':'Insert')['text']),_0x5a5cde;});}['_createMenuBarButtons'](_0x3cf65d){return _0x3cf65d['map'](_0x1b33bd=>{const _0x2cc969=this['_createButton'](_0x467fe6,_0x1b33bd['type']);return _0x2cc969['icon']=_0x1b33bd['icon'],_0x2cc969['label']=_0x1b33bd['shortText'],_0x2cc969;});}}class F extends _0xef9a0b{['focusTracker'];['focusCycler'];constructor(_0x20c84b){super(_0x20c84b),this['focusTracker']=new _0x41f066(),this['focusCycler']=new _0x49cd3b({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x5552b5,_0x4c54d1){super(_0x5552b5),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-'+_0x4c54d1}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x3c1968,_0x17486b){const _0x49ecd2=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3909ad=>_0x3909ad<=_0x17486b)['map'](_0x21deda=>_0x3c1968['replace'](/\/$/,'')+'/-/resize/'+_0x21deda+'x/\x20'+_0x21deda+'w');return{'imageFallbackUrl':_0x3c1968,'imageSources':[{'srcset':_0x49ecd2['join'](',\x20'),'sizes':'(max-width:\x20'+_0x17486b+'px)\x20100vw,\x20'+_0x17486b+'px','type':'image/webp'}]};}function C(_0x14ee23,_0x599b99,_0xe5243d){const _0x45efe3=_0x14ee23['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x45efe3?parseInt(_0x45efe3[0x1],0xa):_0x599b99,'height':_0x45efe3?parseInt(_0x45efe3[0x2],0xa):_0xe5243d};}function p(_0x3e34e2,_0x356109){const _0x280ac1=new(_0x4357a3())(),_0x8b6d1f=_0x3e34e2['plugins']['get']('ImageUtils'),_0x111f63=_0x3e34e2['editing']['mapper']['toViewElement'](_0x356109),_0x34f5c6=_0x8b6d1f['findViewImgElement'](_0x111f63),_0x73d9ba=_0x3e34e2['editing']['view']['domConverter']['viewToDom'](_0x34f5c6),_0x19bc42=_0x356109['getAttribute']('width'),_0x166fb8=_0x356109['getAttribute']('height'),_0x24f360='image-processing';_0x3e34e2['editing']['view']['change'](_0x3ee4f9=>{_0x3ee4f9['addClass'](_0x24f360,_0x111f63),_0x3ee4f9['setStyle']('aspect-ratio',_0x19bc42+'/'+_0x166fb8,_0x34f5c6);}),_0x280ac1['listenTo'](_0x73d9ba,'load',()=>{_0x280ac1['stopListening'](_0x73d9ba,'load'),_0x3e34e2['editing']['view']['change'](_0x401ee0=>{_0x401ee0['removeClass'](_0x24f360,_0x111f63),_0x401ee0['removeStyle']('aspect-ratio',_0x34f5c6);});});}function z(_0x20f013){if(Array['isArray'](_0x20f013)){const _0x66e284=_0x20f013['map'](z);return _0x2a6d90=>_0x66e284['some'](_0x58561e=>_0x58561e(_0x2a6d90));}if('origin'==_0x20f013){const _0x52fb10=_0x401f8c['window']['location']['origin'];return _0x2bdc1a=>new URL(_0x2bdc1a,_0x401f8c['document']['baseURI'])['origin']==_0x52fb10;}return'function'==typeof _0x20f013?_0x20f013:_0x20f013 instanceof RegExp?_0x18138a=>!(!_0x18138a['match'](_0x20f013)&&!_0x18138a['replace'](/^https?:\/\//,'')['match'](_0x20f013)):()=>!0x1;}function S(_0x250b2e,_0xc09a5a){return _0x16cc78(_0x250b2e['target'])['includes'](_0xc09a5a);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x1ea966(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xf2944,_0x375dea,_0x26587f){super(),this['_editor']=_0xf2944,this['_editing']=_0x375dea,this['_dialog']=_0xf2944['plugins']['get'](_0x42096c),this['_api']=_0x375dea['ctxElement']['getAPI'](),this['_type']=_0x26587f,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:_0x482e24,model:_0xa529f8}=this['_editor'],_0x3a7107=_0xa529f8['document']['selection']['getSelectedElement'](),_0x270859=_0x3a7107&&(_0x3a7107['is']('element','imageBlock')||_0x3a7107['is']('element','imageInline'));this['_formView']=new x(_0x482e24,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3c78c8,'title':_(_0x482e24,this['_type'],_0x270859?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x54b529['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xae6314=>!S(_0xae6314,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x533ddd}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2d4d0e=>{const _0x3f9022=_0x533ddd['length'];for(const _0x58a8bc of _0x533ddd){const _0xafa4ee=_0x58a8bc===_0x533ddd[_0x3f9022-0x1],{cdnUrl:_0x259a20,fileInfo:_0x326db2}=_0x58a8bc;if(!_0x259a20||!_0x326db2)continue;const {width:_0x19fcfa,height:_0x3cd302}=_0x326db2['imageInfo'],_0x3b3474=C(_0x259a20,_0x19fcfa,_0x3cd302),_0x53f2f6=k(_0x259a20,_0x3b3474['width']),_0x2c0da2={'id':_0x326db2['uuid'],'type':'image','attributes':{'imageDimension':_0x3b3474,..._0x53f2f6}};this['_insertAsset'](_0x2c0da2,_0xafa4ee,_0x2d4d0e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x20314d=>{'idle'===_0x20314d['detail']['status']&&!_0x20314d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4ee68f,_0x1450f7,_0x10380b){const _0x1dbace=this['_editor']['model']['document']['selection'],_0x29f030=_0x1dbace['getSelectedElement'](),_0x57a63a=!(!_0x29f030||!_0x29f030['is']('element','imageInline'));_0x10380b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4ee68f,_0x57a63a),_0x1450f7||_0x10380b['setSelection'](_0x1dbace['getLastPosition']());}['_insertImage'](_0x211704,_0x439589){const _0x599859=this['_editor'],{imageDimension:_0x45db25,imageFallbackUrl:_0x520ec2,imageSources:_0x374704}=_0x211704['attributes'];_0x599859['execute']('insertImage',{'imageType':_0x439589?'imageInline':null,'source':{'uploadcareImageId':_0x211704['id'],'src':_0x520ec2,'sources':_0x374704,..._0x45db25}});}}class w extends _0x393c08{['_editing'];['_controller']=null;static get['requires'](){return[_0x42096c,o];}constructor(_0x46ea70){super(_0x46ea70),this['_editing']=_0x46ea70['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x59de67){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x59de67);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x37966f,publicKey:_0x2cd029,signal:_0x5eff6a,onProgress:_0xa96d18}){return _0x316d3b(_0x37966f,{'publicKey':_0x2cd029,'store':'auto','signal':_0x5eff6a,'onProgress':_0xa96d18});}static['getInfo'](_0x2e4fee,_0x10646e){return _0x191aaa(_0x2e4fee,_0x10646e);}}class f extends _0x14e24a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5ed43f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x299129=this['editor'];if(!!!_0x299129['config']['get']('uploadcare'))return;_0x299129['plugins']['get'](_0x5ed43f)['createUploadAdapter']=_0x3e5ce2=>new A(_0x3e5ce2,_0x299129),_0x299129['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x34bfdb,{imageElement:_0x453fc4,data:_0x3ecdb9})=>{_0x299129['model']['change'](_0x3dc5f6=>{_0x3dc5f6['setAttribute']('uploadcareImageId',_0x3ecdb9['uploadcareImageId'],_0x453fc4);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x3b094a,_0xa80ff0){this['loader']=_0x3b094a,this['editor']=_0xa80ff0,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x41470=this['editor']['config']['get']('uploadcare.pubkey'),_0x39a838=await this['loader']['file'];return j['upload']({'file':_0x39a838,'publicKey':_0x41470,'signal':this['controller']['signal'],'onProgress':_0x5665e1=>{_0x5665e1&&_0x5665e1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5665e1['value']);}})['then'](async _0x184653=>{const {imageFallbackUrl:_0x2bdb52,imageSources:_0x5ece9b}=k(_0x184653['cdnUrl'],_0x184653['imageInfo']['width']);return{'uploadcareImageId':_0x184653['uuid'],'default':_0x2bdb52,'sources':_0x5ece9b};})['catch'](()=>{const _0xcc4017=t('Cannot\x20upload\x20file:')+('\x20'+_0x39a838['name']+'.');return Promise['reject'](_0xcc4017);});}['abort'](){this['controller']['abort']();}}class o extends _0x14e24a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x42096c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x83ccd3){super(_0x83ccd3),this['ucContextId']=_0x10fbae();}['init'](){const _0x316bab=this['editor'];_0x316bab['commands']['add']('uploadcare',new w(_0x316bab));}['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 _0x50f8aa=_0x401f8c['document']['querySelector']('input[uploadcare-file-input]');_0x50f8aa&&_0x50f8aa['remove']();}),async function(_0x2495f2){const _0xcb4d10=_0x699727([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x3ad21b=0x3d8d0df,_0x10a123=0x3dfa1ef^_0x3ad21b,_0x2e8bc6=window[_0x699727([0x44,0x61,0x74,0x65])][_0x699727([0x6e,0x6f,0x77])](),_0x1d6f08=_0x2495f2[_0x699727([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58cdf1=new window[(_0x699727([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x201830=>{_0x1d6f08[_0x699727([0x6f,0x6e,0x63,0x65])](_0x699727([0x72,0x65,0x61,0x64,0x79]),_0x201830);}),_0x111a08={[_0x699727([0x6b,0x74,0x79])]:_0x699727([0x45,0x43]),[_0x699727([0x75,0x73,0x65])]:_0x699727([0x73,0x69,0x67]),[_0x699727([0x63,0x72,0x76])]:_0x699727([0x50,0x2d,0x32,0x35,0x36]),[_0x699727([0x78])]:_0x699727([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]),[_0x699727([0x79])]:_0x699727([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]),[_0x699727([0x61,0x6c,0x67])]:_0x699727([0x45,0x53,0x32,0x35,0x36])},_0x20bc70=_0x1d6f08[_0x699727([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x699727([0x67,0x65,0x74])](_0x699727([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x174111(){let _0x71f109,_0x220246=null,_0x123658=null;try{if(_0x20bc70==_0x699727([0x47,0x50,0x4c]))return _0x699727([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x71f109=_0x4579ab(),!_0x71f109)return _0x699727([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x71f109[_0x699727([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x123658=_0x40d4ff(_0x71f109[_0x699727([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x71f109[_0x699727([0x6a,0x74,0x69])])),await _0x4906d8()?_0x1f8c7b()?_0x1dead0()?_0x699727([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x35fafe()?(_0x71f109[_0x699727([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x699727([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x220246=_0x1de072(_0x699727([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x71f109[_0x699727([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x699727([0x74,0x72,0x69,0x61,0x6c])&&(_0x220246=_0x1de072(_0x699727([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x118939()):_0x699727([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x699727([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x699727([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x699727([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1dead0(){const _0x5dedd4=[_0x699727([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x699727([0x74,0x72,0x69,0x61,0x6c])][_0x699727([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x71f109[_0x699727([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2e8bc6/0x3e8:0xe10*_0x10a123;return _0x71f109[_0x699727([0x65,0x78,0x70])]<_0x5dedd4;}function _0x1f8c7b(){const _0x417c05=_0x71f109[_0x699727([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x417c05&&(!!_0x417c05[_0x699727([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x699727([0x2a]))||!!_0x417c05[_0x699727([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x699727([0x55,0x50,0x4c,0x43])));}function _0x35fafe(){const _0x3147f9=_0x71f109[_0x699727([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3147f9||0x0==_0x3147f9[_0x699727([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a20a0}=new URL(window[_0x699727([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3147f9[_0x699727([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a20a0))return!0x0;const _0x350143=_0x3a20a0[_0x699727([0x73,0x70,0x6c,0x69,0x74])](_0x699727([0x2e]));return _0x3147f9[_0x699727([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x291f53=>_0x291f53[_0x699727([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x699727([0x2a])))[_0x699727([0x6d,0x61,0x70])](_0x29f16c=>_0x29f16c[_0x699727([0x73,0x70,0x6c,0x69,0x74])](_0x699727([0x2e])))[_0x699727([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x55d7a6=>_0x55d7a6[_0x699727([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x350143[_0x699727([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x699727([0x6d,0x61,0x70])](_0x388842=>Array(_0x350143[_0x699727([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x388842[_0x699727([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x699727([0x66,0x69,0x6c,0x6c])](_0x388842[0x0]===_0x699727([0x2a])?_0x699727([0x2a]):'')[_0x699727([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x388842))[_0x699727([0x73,0x6f,0x6d,0x65])](_0x17fcee=>_0x350143[_0x699727([0x65,0x76,0x65,0x72,0x79])]((_0x4177d7,_0xb05516)=>_0x17fcee[_0xb05516]===_0x4177d7||_0x17fcee[_0xb05516]===_0x699727([0x2a])));}function _0x118939(){return _0x220246&&_0x123658?new window[(_0x699727([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xaad7a6,_0x2045bf)=>{_0x220246[_0x699727([0x74,0x68,0x65,0x6e])](_0xaad7a6,_0x2045bf),_0x123658[_0x699727([0x74,0x68,0x65,0x6e])](_0x41d472=>{_0x41d472!=_0x699727([0x56,0x61,0x6c,0x69,0x64])&&_0xaad7a6(_0x41d472);},_0x2045bf);}):_0x220246||_0x123658||_0x699727([0x56,0x61,0x6c,0x69,0x64]);}}function _0x40d4ff(_0x3b9fc7,_0x293140){return new window[(_0x699727([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x597dfa=>{if(_0x10fb6b())return _0x597dfa(_0x699727([0x56,0x61,0x6c,0x69,0x64]));_0x42af62(),_0x1d6f08[_0x699727([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x699727([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c642f=!0x1;const _0x1c78e7=_0x10fbae();function _0x4f20b7(_0x79215){return!!_0x79215&&(typeof _0x79215===_0x699727([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x79215===_0x699727([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x79215[_0x699727([0x74,0x68,0x65,0x6e])]===_0x699727([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x79215[_0x699727([0x63,0x61,0x74,0x63,0x68])]===_0x699727([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x44749e(_0x5d010e){_0x4b24a4(_0x5d010e)[_0x699727([0x74,0x68,0x65,0x6e])](_0x2d1d70=>{if(!_0x2d1d70||_0x2d1d70[_0x699727([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x699727([0x6f,0x6b]))return _0x699727([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2b14bb(_0x1a3bc5(_0x1c78e7+_0x293140))!=_0x2d1d70[_0x699727([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x699727([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x699727([0x56,0x61,0x6c,0x69,0x64]);})[_0x699727([0x74,0x68,0x65,0x6e])](_0x589e5e=>(_0x1b8ecc(),_0x589e5e),()=>{const _0x26f915=_0x4bfbd7();return null==_0x26f915?(_0x1b8ecc(),_0x699727([0x56,0x61,0x6c,0x69,0x64])):_0x699727(_0x2e8bc6-_0x26f915>(0x27d454df^_0x3ad21b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x699727([0x74,0x68,0x65,0x6e])](_0x597dfa)[_0x699727([0x63,0x61,0x74,0x63,0x68])](()=>{_0x597dfa(_0x699727([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d284c=0x3ee3e5f^_0x3ad21b;function _0x1b8ecc(){const _0x17aadd=_0x699727([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b14bb(_0x1a3bc5(_0x3b9fc7)),_0x298dea=_0x24f8a8(_0x2b14bb(window[_0x699727([0x4d,0x61,0x74,0x68])][_0x699727([0x63,0x65,0x69,0x6c])](_0x2e8bc6/_0x5d284c)));window[_0x699727([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x699727([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17aadd,_0x298dea);}function _0x4bfbd7(){const _0x5eeaed=_0x699727([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b14bb(_0x1a3bc5(_0x3b9fc7)),_0x4bf8fd=window[_0x699727([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x699727([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5eeaed);return _0x4bf8fd?window[_0x699727([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24f8a8(_0x4bf8fd),0x10)*_0x5d284c:null;}function _0x4b24a4(_0x327e67){return new window[(_0x699727([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2bcc53,_0x3e0c69)=>{_0x327e67[_0x699727([0x74,0x68,0x65,0x6e])](_0x2bcc53,_0x3e0c69),window[_0x699727([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3e0c69,0x3d9041f^_0x3ad21b);});}}_0x1d6f08[_0x699727([0x6f,0x6e])](_0x699727([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4432a6,_0x325438)=>{if(_0x325438[0x0]!=_0x3b9fc7)return _0x597dfa(_0x699727([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x325438[0x1]={..._0x325438[0x1],[_0x699727([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c78e7};},{[_0x699727([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x699727([0x68,0x69,0x67,0x68])}),_0x1d6f08[_0x699727([0x6f,0x6e])](_0x699727([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x189211=>{_0x4f20b7(_0x189211[_0x699727([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c642f=!0x0,_0x44749e(_0x189211[_0x699727([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x699727([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x699727([0x6c,0x6f,0x77])}),_0x58cdf1[_0x699727([0x74,0x68,0x65,0x6e])](()=>{_0x2c642f||_0x597dfa(_0x699727([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10fb6b(){return _0x1d6f08[_0x699727([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x699727([0x76,0x69,0x65,0x77])][_0x699727([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x699727([0x61,0x75,0x74,0x6f]);}function _0x42af62(){_0x1d6f08[_0x699727([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x699727([0x76,0x69,0x65,0x77])][_0x699727([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x699727([0x61,0x75,0x74,0x6f]);}}function _0x1de072(_0x2d9a05){const _0x278ec1=[new window[(_0x699727([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10421b=>setTimeout(_0x10421b,0x3d1ee13^_0x3ad21b)),_0x58cdf1[_0x699727([0x74,0x68,0x65,0x6e])](()=>new window[(_0x699727([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b3bc2=>{let _0x3f169f=0x0;_0x1d6f08[_0x699727([0x6d,0x6f,0x64,0x65,0x6c])][_0x699727([0x6f,0x6e])](_0x699727([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x16e012,_0xfd462f)=>{_0xfd462f[0x0][_0x699727([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f169f++,_0x3f169f==(0x3d8d127^_0x3ad21b)&&(_0x2b3bc2(),_0x16e012[_0x699727([0x6f,0x66,0x66])]());});}))];return window[_0x699727([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x699727([0x72,0x61,0x63,0x65])](_0x278ec1)[_0x699727([0x74,0x68,0x65,0x6e])](()=>_0x2d9a05);}async function _0x533fd3(){await _0x58cdf1,_0x1d6f08[_0x699727([0x6d,0x6f,0x64,0x65,0x6c])][_0x699727([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2b69d8,_0x1d6f08[_0x699727([0x6d,0x6f,0x64,0x65,0x6c])][_0x699727([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2b69d8,_0x1d6f08[_0x699727([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x699727([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x77c09a(_0x22c824){const _0x2192c7=_0x2ae996();_0x1d6f08[_0x2192c7]=_0x699727([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x22c824,_0x22c824!=_0x699727([0x56,0x61,0x6c,0x69,0x64])&&_0x533fd3();}function _0x2ae996(){const _0x16e3d4=window[_0x699727([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x699727([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x699727([0x6e,0x6f,0x77])]())[_0x699727([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x699727([0x2e]),'');let _0xe1a57a=_0x699727([0x52]);for(let _0xc53bc5=0x0;_0xc53bc5<_0x16e3d4[_0x699727([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc53bc5+=0x2){let _0xe94388=window[_0x699727([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16e3d4[_0x699727([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc53bc5,_0xc53bc5+0x2));_0xe94388>=_0xcb4d10[_0x699727([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe94388-=_0xcb4d10[_0x699727([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xe1a57a+=_0xcb4d10[_0xe94388];}return _0xe1a57a;}function _0x4579ab(){const _0x3cb564=_0x20bc70[_0x699727([0x73,0x70,0x6c,0x69,0x74])](_0x699727([0x2e]));if(0x3!=_0x3cb564[_0x699727([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x150363(_0x3cb564[0x1]);function _0x150363(_0x589461){const _0x111fd3=_0x5d8944(_0x589461);return _0x111fd3&&_0x5e8a17()?_0x111fd3:null;function _0x5e8a17(){const _0x352bf6=_0x111fd3[_0x699727([0x6a,0x74,0x69])],_0x4a6271=window[_0x699727([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x352bf6[_0x699727([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x352bf6[_0x699727([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3c2653={..._0x111fd3,[_0x699727([0x6a,0x74,0x69])]:_0x352bf6[_0x699727([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x352bf6[_0x699727([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3c2653[_0x699727([0x76,0x63])],_0x1a3bc5(_0x3c2653)==_0x4a6271;}}}async function _0x4906d8(){let _0x3fe972=!0x0;try{const _0x23bb11=_0x20bc70[_0x699727([0x73,0x70,0x6c,0x69,0x74])](_0x699727([0x2e])),[_0xf930f6,_0x559d60,_0x5f0d7c]=_0x23bb11;return _0x2ba831(_0xf930f6),await _0x571540(_0xf930f6,_0x559d60,_0x5f0d7c),_0x3fe972;}catch{return!0x1;}function _0x2ba831(_0x113f7b){const _0x17f76f=_0x5d8944(_0x113f7b);_0x17f76f&&_0x17f76f[_0x699727([0x61,0x6c,0x67])]==_0x699727([0x45,0x53,0x32,0x35,0x36])||(_0x3fe972=!0x1);}async function _0x571540(_0x25f56a,_0x3ed6b5,_0x20e833){const _0x235656=window[_0x699727([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x699727([0x66,0x72,0x6f,0x6d])](_0x3985e9(_0x20e833),_0xc08b2e=>_0xc08b2e[_0x699727([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x36bb21=new window[(_0x699727([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x699727([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x25f56a+_0x699727([0x2e])+_0x3ed6b5),_0xd5d48a=window[_0x699727([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x699727([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xd5d48a)return;const _0x34517e=await _0xd5d48a[_0x699727([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x699727([0x6a,0x77,0x6b]),_0x111a08,{[_0x699727([0x6e,0x61,0x6d,0x65])]:_0x699727([0x45,0x43,0x44,0x53,0x41]),[_0x699727([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x699727([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x699727([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xd5d48a[_0x699727([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x699727([0x6e,0x61,0x6d,0x65])]:_0x699727([0x45,0x43,0x44,0x53,0x41]),[_0x699727([0x68,0x61,0x73,0x68])]:{[_0x699727([0x6e,0x61,0x6d,0x65])]:_0x699727([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34517e,_0x235656,_0x36bb21)||(_0x3fe972=!0x1);}}function _0x5d8944(_0x53c5b3){return _0x53c5b3[_0x699727([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x699727([0x65,0x79]))?JSON[_0x699727([0x70,0x61,0x72,0x73,0x65])](_0x3985e9(_0x53c5b3)):null;}function _0x3985e9(_0x31ced0){return window[_0x699727([0x61,0x74,0x6f,0x62])](_0x31ced0[_0x699727([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x699727([0x2b]))[_0x699727([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x699727([0x2f])));}function _0x1a3bc5(_0x3e2a2e){let _0x27791a=0x1505;function _0x4215e3(_0x4607eb){for(let _0xf3d819=0x0;_0xf3d819<_0x4607eb[_0x699727([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf3d819++){const _0x5804e2=_0x4607eb[_0x699727([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf3d819);_0x27791a=(_0x27791a<<0x5)+_0x27791a+_0x5804e2,_0x27791a&=_0x27791a;}}function _0x531e1a(_0x3d8bcc){Array[_0x699727([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3d8bcc)?_0x3d8bcc[_0x699727([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x531e1a):_0x3d8bcc&&typeof _0x3d8bcc==_0x699727([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x699727([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3d8bcc)[_0x699727([0x73,0x6f,0x72,0x74])]()[_0x699727([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e72b1,_0x10c41e])=>{_0x4215e3(_0x5e72b1),_0x531e1a(_0x10c41e);}):_0x4215e3(window[_0x699727([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3d8bcc));}return _0x531e1a(_0x3e2a2e),_0x27791a>>>0x0;}function _0x2b14bb(_0x4e29d1){return _0x4e29d1[_0x699727([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x699727([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x699727([0x30]));}function _0x24f8a8(_0x5570ad){return _0x5570ad[_0x699727([0x73,0x70,0x6c,0x69,0x74])]('')[_0x699727([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x699727([0x6a,0x6f,0x69,0x6e])]('');}function _0x2b69d8(){}function _0x699727(_0x18c208){return _0x18c208['map'](_0x1c7e59=>String['fromCharCode'](_0x1c7e59))['join']('');}_0x77c09a(await _0x174111());}(this);}['_initSchema'](){const _0x5d47d0=this['editor']['model']['schema'];_0x5d47d0['isRegistered']('imageBlock')&&_0x5d47d0['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5d47d0['isRegistered']('imageInline')&&_0x5d47d0['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xebf204=this['editor'];_0xebf204['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xebf204['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1e9bbd=>_0x1e9bbd['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2f5c99=_0xebf204['commands']['get']('replaceImageSource');_0x2f5c99&&this['listenTo'](_0x2f5c99,'cleanupImage',(_0x539f2f,[_0x4a200a,_0x84c1c1])=>{_0x4a200a['removeAttribute']('uploadcareImageId',_0x84c1c1);});}['_initConfig'](){const _0x5d3851=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5f0bb3=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x27308e(_0x401f8c['document'],'uc-config',{..._0x5d3851,'pubkey':_0x5f0bb3,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x1a8e66=>{if('closeMax'==_0x1a8e66)return'#uc-icon-arrow-down';},_0x401f8c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x27308e(_0x401f8c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x401f8c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1ef49b=this['editor']['commands']['get']('insertImage');_0x1ef49b&&this['listenTo'](_0x1ef49b,'execute',()=>{const _0x289951=this['editor']['model']['document']['selection']['getSelectedElement']();_0x289951&&_0x289951['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x289951);});});const _0x41eb10=this['editor']['commands']['get']('uploadcareImageReplace');_0x41eb10&&this['listenTo'](_0x41eb10,'execute',()=>{const _0x3bec6e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3bec6e&&_0x3bec6e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3bec6e);});});}}class tt extends _0x14e24a{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9ed2ad){super(_0x9ed2ad),_0x9ed2ad['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x327dc9['defineComponents'](_0x327dc9);}}class ii extends _0xef9a0b{constructor(_0x5a59b4){super(_0x5a59b4);const t=_0x5a59b4['t'],_0x456956=this['bindTemplate'],_0x1a3fed=new _0x55baf8();_0x1a3fed['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':[_0x1a3fed,{'text':_0x456956['to']('imageUploadProgress',_0xe42279=>t('Loading\x20image...')+'\x20('+(_0xe42279||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0xef9a0b{constructor(_0x2e93d0){super(_0x2e93d0);const t=_0x2e93d0['t'];this['set']('errorType',null);const _0x248e88=new _0x1886b2(_0x2e93d0);_0x248e88['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x248e88['withText']=!0x0,_0x248e88['class']='ck-button-action',_0x248e88['on']('execute',()=>{this['fire']('retry');}),_0x248e88['bind']('isVisible')['to'](this,'errorType',_0x8a7224=>'NotFound'!==_0x8a7224);const _0x36f45e=new _0x398ea8();_0x36f45e['content']=_0x172c85,_0x36f45e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x40a658=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':[_0x36f45e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x40a658['to']('errorType',_0x21e9a9=>t('NotFound'!==_0x21e9a9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x248e88]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0xef9a0b{constructor(_0x45e974,_0x34e49a){super(_0x45e974);const _0x550bcc=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x34e49a,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x550bcc['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5e1c4f,_0x2f10e5,_0x484fda){super(_0x5e1c4f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x5e1c4f),this['_errorView']=new ti(_0x5e1c4f),this['_editingView']=new ei(_0x5e1c4f,_0x484fda),this['_focusableView']=new _0xef9a0b(_0x5e1c4f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2f10e5),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'],_0x208d35=>{this['_addUploadcareImageEditorListeners'](_0x208d35);});}),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'](_0xc2121c,_0x26bb53){const _0xc3a0c1='uc-cloud-image-editor',_0x586156=_0xc2121c['querySelector'](_0xc3a0c1);if(_0x586156)return _0x26bb53(_0x586156);const _0x5abb7e=new MutationObserver(_0x675e82=>{const _0x3401d5=_0x675e82['filter'](_0x358620=>_0x358620['target']===_0xc2121c&&_0x358620['addedNodes']['length']>0x0&&_0x358620['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xc3a0c1);_0x3401d5['length']&&(_0x5abb7e['disconnect'](),_0x26bb53(_0x3401d5[0x0]['addedNodes'][0x0]));});_0x5abb7e['observe'](_0xc2121c,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x375d85){_0x375d85['addEventListener']('apply',_0xf40c00=>{this['fire']('apply',{'imageSrc':_0xf40c00['detail']['cdnUrl']});}),_0x375d85['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1ea966(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x119d45,_0x2e0d0a,_0x3e36b0){super(),this['_editor']=_0x119d45,this['_dialog']=_0x2e0d0a,this['_imageElement']=_0x3e36b0,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 _0x331d43=this['_imageElement'],_0x599c87=_0x331d43['getAttribute']('uploadcareImageId'),_0x4384e5=_0x331d43['getAttribute']('src');if(_0x599c87)await this['_loadImageInfo'](_0x599c87,_0x4384e5);else{if(this['_imageCache']['has'](_0x4384e5)){const _0xee2556=this['_imageCache']['get'](_0x4384e5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xee2556['url'],this['imageDimension']=_0xee2556['dimension'],this['imageId']=_0xee2556['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x404046}=this['_editor'],t=_0x404046['t'],_0x1a1572=new X(_0x404046,this['imageStatus'],this['_attributes']);_0x1a1572['bind']('status')['to'](this,'imageStatus'),_0x1a1572['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1a1572['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1a1572['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1a1572,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x11b062,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1a1572,'position':_0x54b529['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1a1572['focus']();},'onHide':()=>{_0x1a1572['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x41d7ed=>!S(_0x41d7ed,_0x1a1572['element'])}});}['_loadImageInfo'](_0x47bec7,_0xfa5ad3){return j['getInfo'](_0x47bec7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x466f82=>{const {width:_0x54e212,height:_0x10e4f3}=_0x466f82['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xfa5ad3,this['imageDimension']={'width':_0x54e212,'height':_0x10e4f3},this['imageId']=_0x47bec7;})['catch'](_0x57732e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x57732e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2b700d,_0x3218c0){return this['_getImageAsFile'](_0x2b700d)['then'](_0x4cf66a=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3218c0['signal'],'file':_0x4cf66a,'onProgress':_0x1b6d30=>{_0x1b6d30&&_0x1b6d30['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1b6d30['value']));}}))['then'](_0x53a3d5=>{const {width:_0x235972,height:_0x3207f8}=_0x53a3d5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x53a3d5['cdnUrl'],this['imageDimension']={'width':_0x235972,'height':_0x3207f8},this['imageId']=_0x53a3d5['uuid'],this['imageUploadProgress']=null;const _0x13cbb2=_0x2b700d['getAttribute']('src');this['_imageCache']['set'](_0x13cbb2,{'id':_0x53a3d5['uuid'],'url':_0x53a3d5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3ff031=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3ff031['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x306496,_0xd97055){_0x306496['on']('apply',(_0x2a5e00,_0xfbe9b6)=>{this['_replaceImage'](_0xd97055,_0xfbe9b6['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x306496['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x306496['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3782db,_0x3149b8,_0x2cb181){const _0x1e21fb=this['_editor'],{width:_0x1f4a7e,height:_0x4711a3}=C(_0x3149b8,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x41daa7,imageSources:_0x222175}=k(_0x3149b8,_0x1f4a7e);_0x1e21fb['model']['change'](_0x37e4d2=>{if('$graveyard'===_0x3782db['root']['rootName']){_0x1e21fb['execute']('insertImage',{'imageType':_0x3782db['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3782db['getAttributes']()),'uploadcareImageId':_0x2cb181,'src':_0x41daa7,'sources':_0x222175,'width':_0x1f4a7e,'height':_0x4711a3}});const _0x210241=_0x3782db['getChildren']();_0x3782db=_0x1e21fb['model']['document']['selection']['getSelectedElement']();for(const _0x37e7e7 of _0x210241)_0x37e4d2['append'](_0x37e4d2['cloneElement'](_0x37e7e7),_0x3782db);}else _0x37e4d2['setSelection'](_0x3782db,'on'),_0x1e21fb['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3782db['getAttributes']()),'uploadcareImageId':_0x2cb181,'src':_0x41daa7,'sources':_0x222175,'width':_0x1f4a7e,'height':_0x4711a3},_0x3782db);_0x37e4d2['setSelection'](_0x3782db,'on');});}async['_getImageAsFile'](_0x27d30c){const _0x8700dd=_0x401f8c['window'],_0x4c02dc=_0x401f8c['document']['location']['href'],_0x373131=new _0x8700dd['URL'](_0x27d30c['getAttribute']('src'),_0x4c02dc);if('data:'===_0x373131['protocol']){const _0x198a9e=_0x373131['href']['split'](','),_0x1600da=_0x198a9e[0x0]['match'](/:(.*?);/)[0x1],_0x573daf=_0x1600da['split']('/')[0x1],_0x598e9d=_0x8700dd['atob'](_0x198a9e[_0x198a9e['length']-0x1]);let _0x473231=_0x598e9d['length'];const _0x165959=new _0x8700dd['Uint8Array'](_0x473231);for(;_0x473231--;)_0x165959[_0x473231]=_0x598e9d['charCodeAt'](_0x473231);return new _0x8700dd['File']([_0x165959],'image.'+_0x573daf,{'type':_0x1600da});}const _0x255b78=_0x373131['href']['split']('/'),_0x453fa2=_0x255b78[_0x255b78['length']-0x1],_0x4e84eb=_0x453fa2['split']('.')[0x1];return _0x8700dd['fetch'](_0x373131['href'])['then'](_0x19f6d6=>_0x19f6d6['clone']()['blob']())['then'](_0x4c98ff=>new _0x8700dd['File']([_0x4c98ff],_0x453fa2,{'type':'image/'+_0x4e84eb}));}}class Q extends _0x393c08{['imageEditController'];static get['requires'](){return[_0x42096c];}['_isEditable'];constructor(_0x31fcef){super(_0x31fcef),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x131f17){const _0x2b42ed=z(_0x131f17);return _0x5f4ac0=>!(!_0x5f4ac0||!_0x5f4ac0['is']('element','imageBlock')&&!_0x5f4ac0['is']('element','imageInline'))&&(!!_0x5f4ac0['hasAttribute']('uploadcareImageId')||!!_0x5f4ac0['hasAttribute']('src')&&_0x2b42ed(_0x5f4ac0['getAttribute']('src')));}(_0x31fcef['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x20b23d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x20b23d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x232bca=this['editor']['model']['document']['selection']['getSelectedElement']();_0x232bca&&(_0x232bca['is']('element','imageBlock')||_0x232bca['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x42096c),_0x232bca),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x393c08{['refresh'](){const _0x4c04fe=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4c04fe&&(_0x4c04fe['is']('element','imageBlock')||_0x4c04fe['is']('element','imageInline')));}['execute'](_0x5594bd){const _0x152873=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3068df=>{_0x3068df['setAttributes'](_0x5594bd,_0x152873),_0x3068df['removeAttribute']('srcset',_0x152873),_0x3068df['removeAttribute']('sizes',_0x152873);});}}class m extends _0x14e24a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2bc626,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xd6fdd9}=this;_0xd6fdd9['commands']['add']('uploadcareImageEdit',new Q(_0xd6fdd9)),_0xd6fdd9['commands']['add']('uploadcareImageReplace',new V(_0xd6fdd9));}}class g extends _0x14e24a{['_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 _0x1f3b98=this['editor'];_0x1f3b98['ui']['componentFactory']['add']('uploadcareImageEdit',_0x51187a=>{const _0x3d2428=_0x1f3b98['commands']['get']('uploadcareImageEdit'),_0x44220d=new _0x1886b2(_0x51187a),t=_0x51187a['t'];return _0x44220d['set']({'icon':_0x11b062,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x44220d['bind']('isEnabled')['to'](_0x3d2428),_0x44220d['bind']('isOn')['to'](_0x3d2428,'isActive'),this['listenTo'](_0x44220d,'execute',()=>{_0x1f3b98['execute']('uploadcareImageEdit'),_0x1f3b98['editing']['view']['focus']();}),_0x44220d;}),this['_initConfig']();}['_initConfig'](){const _0xa3b37=_0x27308e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xa3b37),this['listenTo'](this['editor'],'destroy',()=>{_0xa3b37['remove']();});}}class et extends _0x14e24a{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x1560bd,Command as _0x1b6101}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5bbada,IconGooglePhotos as _0x2d4c4c,IconGoogleDrive as _0x5ca1be,IconFacebook as _0x299f5,IconDropbox as _0x2f9be1,IconUploadcareLink as _0x4423ad,IconUploadcareImageUpload as _0x207154,IconError as _0x570e18,IconUploadcareImageEdit as _0x465540}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x29ddbc,MenuBarMenuListItemButtonView as _0x249578,View as _0x4a2bf8,FocusCycler as _0x2466c4,Dialog as _0x32f184,DialogViewPosition as _0x106366,SpinnerView as _0x53f103,IconView as _0x195035,Notification as _0x2be181}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4295f4,DomEmitterMixin as _0x555603,global as _0x45b4c7,getAncestors as _0x52a737,ObservableMixin as _0x2a1f66,uid as _0x55acdf,createElement as _0x2ea3d3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x173cf6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2fa558,info as _0x23ff02}from'@uploadcare/upload-client';import*as _0x325f20 from'@uploadcare/file-uploader';var i=function(_0x2d5444){return _0x2d5444['Local']='local',_0x2d5444['URL']='url',_0x2d5444['Dropbox']='dropbox',_0x2d5444['GDrive']='gdrive',_0x2d5444['Facebook']='facebook',_0x2d5444['GPhotos']='gphotos',_0x2d5444['OneDrive']='onedrive',_0x2d5444;}({});function _(_0x379b74,_0x458d91,_0x5a1187){const t=_0x379b74['t'],_0x4c66ea=_0x379b74['t'];switch(_0x458d91){case i['Local']:return{'text':_0x4c66ea('Insert'===_0x5a1187?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4c66ea('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x5a1187?_0x4c66ea('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4c66ea('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x5a1187?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x5a1187?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x5a1187?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x5a1187?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x5a1187?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x458d91;}}class e extends _0x1560bd{['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 _0x54139b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x733571;for(const _0x10149e in _0x54139b){const _0x4f5b9c=_0x10149e,_0x3845e9=_0x54139b[_0x4f5b9c];if('uploadcareLicenseKeyValid'==_0x3845e9||'uploadcareLicenseKeyInvalid'==_0x3845e9||'uploadcareLicenseKeyExpired'==_0x3845e9||'uploadcareLicenseKeyDomainLimit'==_0x3845e9||'uploadcareLicenseKeyNotAllowed'==_0x3845e9||'uploadcareLicenseKeyEvaluationLimit'==_0x3845e9||'uploadcareLicenseKeyTrialLimit'==_0x3845e9||'uploadcareLicenseKeyUsageLimit'==_0x3845e9){delete _0x54139b[_0x4f5b9c],_0x733571=_0x3845e9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x733571&&_0x54139b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x733571&&_0x54139b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x733571&&_0x54139b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x733571&&_0x54139b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x733571&&_0x54139b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x733571&&_0x54139b['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x733571&&_0x54139b['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1e25b4}=this,_0x548013=_0x1e25b4['commands']['get']('uploadcare');if(!_0x548013)return;const _0x37b1ad=this['_normalizeConfigSourceList'](_0x1e25b4['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x14ad99,_0x51d388)=>{const _0x5f3ea5=this['_getIntegrationKey'](_0x51d388['type']);return _0x14ad99[_0x5f3ea5]||(_0x14ad99[_0x5f3ea5]=[]),_0x14ad99[_0x5f3ea5]['push'](_0x51d388),_0x14ad99;},{});_0x1e25b4['plugins']['has']('ImageInsertUI')&&_0x1e25b4['commands']['get']('uploadcare')&&Object['entries'](_0x37b1ad)['forEach'](([_0x22f2d4,_0x110d99])=>{_0x1e25b4['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x22f2d4,'observable':()=>_0x548013,'buttonViewCreator':()=>this['_createToolbarButton'](_0x110d99),'formViewCreator':()=>this['_createDropdownButtons'](_0x110d99),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x110d99),'override':'assetManager'!==_0x22f2d4});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x599a6e){const {locale:_0x50e1ec}=this['editor'];return _0x599a6e['map'](_0x2d5363=>{const _0x5d5d42=_(_0x50e1ec,_0x2d5363,'Insert');switch(_0x2d5363){case i['Local']:return{'icon':_0x207154,'type':i['Local'],..._0x5d5d42};case i['URL']:return{'icon':_0x4423ad,'type':i['URL'],..._0x5d5d42};case i['Dropbox']:return{'icon':_0x2f9be1,'type':i['Dropbox'],..._0x5d5d42};case i['Facebook']:return{'icon':_0x299f5,'type':i['Facebook'],..._0x5d5d42};case i['GDrive']:return{'icon':_0x5ca1be,'type':i['GDrive'],..._0x5d5d42};case i['GPhotos']:return{'icon':_0x2d4c4c,'type':i['GPhotos'],..._0x5d5d42};case i['OneDrive']:return{'icon':_0x5bbada,'type':i['OneDrive'],..._0x5d5d42};}});}['_getIntegrationKey'](_0x5bed88){switch(_0x5bed88){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3d954a,_0x53d5ca){const _0x58898f=this['editor'],_0x37dce1=new _0x3d954a(_0x58898f['locale']),_0x3ca3d3=_0x58898f['commands']['get']('uploadcare');return _0x37dce1['bind']('isEnabled')['to'](_0x3ca3d3),_0x37dce1['on']('execute',()=>{_0x3ca3d3['execute'](_0x53d5ca);}),_0x37dce1;}['_createToolbarButton'](_0x35ecac){const {locale:_0x1cef1b}=this['editor'],_0x29c1a6=this['editor']['plugins']['get']('ImageInsertUI'),_0x215b0d=_0x35ecac[0x0],_0x55c269=this['_createButton'](_0x29ddbc,_0x215b0d['type']);return _0x55c269['icon']=_0x215b0d['icon'],_0x55c269['bind']('label')['to'](_0x29c1a6,'isImageSelected',_0x105474=>_(_0x1cef1b,_0x215b0d['type'],_0x105474?'Replace':'Insert')['text']),_0x55c269['tooltip']=!0x0,_0x55c269;}['_createDropdownButtons'](_0x76dcc7){const {locale:_0x2acbad}=this['editor'],_0x40ab41=this['editor']['plugins']['get']('ImageInsertUI');return _0x76dcc7['map'](_0x525cb9=>{const _0x467e67=this['_createButton'](_0x29ddbc,_0x525cb9['type']);return _0x467e67['withText']=!0x0,_0x467e67['icon']=_0x525cb9['icon'],_0x467e67['bind']('label')['to'](_0x40ab41,'isImageSelected',_0x5158a6=>_(_0x2acbad,_0x525cb9['type'],_0x5158a6?'Replace':'Insert')['text']),_0x467e67;});}['_createMenuBarButtons'](_0xc9e004){return _0xc9e004['map'](_0xcf6cc9=>{const _0x2e3526=this['_createButton'](_0x249578,_0xcf6cc9['type']);return _0x2e3526['icon']=_0xcf6cc9['icon'],_0x2e3526['label']=_0xcf6cc9['shortText'],_0x2e3526;});}}class F extends _0x4a2bf8{['focusTracker'];['focusCycler'];constructor(_0x285a46){super(_0x285a46),this['focusTracker']=new _0x4295f4(),this['focusCycler']=new _0x2466c4({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x234253,_0x2e8f29){super(_0x234253),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-'+_0x2e8f29}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x5534ed,_0x19a83d){const _0x5d8ee7=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x118277=>_0x118277<=_0x19a83d)['map'](_0xf7dbf2=>_0x5534ed['replace'](/\/$/,'')+'/-/resize/'+_0xf7dbf2+'x/\x20'+_0xf7dbf2+'w');return{'imageFallbackUrl':_0x5534ed,'imageSources':[{'srcset':_0x5d8ee7['join'](',\x20'),'sizes':'(max-width:\x20'+_0x19a83d+'px)\x20100vw,\x20'+_0x19a83d+'px','type':'image/webp'}]};}function C(_0x5e4ebc,_0x3bec42,_0x293f30){const _0x162322=_0x5e4ebc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x162322?parseInt(_0x162322[0x1],0xa):_0x3bec42,'height':_0x162322?parseInt(_0x162322[0x2],0xa):_0x293f30};}function p(_0xe949e1,_0x5abcbc){const _0x2c6d4f=new(_0x555603())(),_0x975d47=_0xe949e1['plugins']['get']('ImageUtils'),_0x3151f4=_0xe949e1['editing']['mapper']['toViewElement'](_0x5abcbc),_0x1a505b=_0x975d47['findViewImgElement'](_0x3151f4),_0x346615=_0xe949e1['editing']['view']['domConverter']['viewToDom'](_0x1a505b),_0x10a565=_0x5abcbc['getAttribute']('width'),_0x1ef501=_0x5abcbc['getAttribute']('height'),_0x1fb834='image-processing';_0xe949e1['editing']['view']['change'](_0xfef607=>{_0xfef607['addClass'](_0x1fb834,_0x3151f4),_0xfef607['setStyle']('aspect-ratio',_0x10a565+'/'+_0x1ef501,_0x1a505b);}),_0x2c6d4f['listenTo'](_0x346615,'load',()=>{_0x2c6d4f['stopListening'](_0x346615,'load'),_0xe949e1['editing']['view']['change'](_0x5d9239=>{_0x5d9239['removeClass'](_0x1fb834,_0x3151f4),_0x5d9239['removeStyle']('aspect-ratio',_0x1a505b);});});}function z(_0x1a7fce){if(Array['isArray'](_0x1a7fce)){const _0x178505=_0x1a7fce['map'](z);return _0x2f5a10=>_0x178505['some'](_0x1990a6=>_0x1990a6(_0x2f5a10));}if('origin'==_0x1a7fce){const _0x5dfd91=_0x45b4c7['window']['location']['origin'];return _0x130a70=>new URL(_0x130a70,_0x45b4c7['document']['baseURI'])['origin']==_0x5dfd91;}return'function'==typeof _0x1a7fce?_0x1a7fce:_0x1a7fce instanceof RegExp?_0x3e0343=>!(!_0x3e0343['match'](_0x1a7fce)&&!_0x3e0343['replace'](/^https?:\/\//,'')['match'](_0x1a7fce)):()=>!0x1;}function S(_0x5bb87d,_0x4cea95){return _0x52a737(_0x5bb87d['target'])['includes'](_0x4cea95);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2a1f66(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x21806d,_0x10848a,_0x5cc9b7){super(),this['_editor']=_0x21806d,this['_editing']=_0x10848a,this['_dialog']=_0x21806d['plugins']['get'](_0x32f184),this['_api']=_0x10848a['ctxElement']['getAPI'](),this['_type']=_0x5cc9b7,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:_0x1b3099,model:_0x9b188d}=this['_editor'],_0x35f497=_0x9b188d['document']['selection']['getSelectedElement'](),_0x3b09d3=_0x35f497&&(_0x35f497['is']('element','imageBlock')||_0x35f497['is']('element','imageInline'));this['_formView']=new x(_0x1b3099,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x207154,'title':_(_0x1b3099,this['_type'],_0x3b09d3?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x106366['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x723652=>!S(_0x723652,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5d9fdc}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3a8a62=>{const _0x588891=_0x5d9fdc['length'];for(const _0x385675 of _0x5d9fdc){const _0x58809a=_0x385675===_0x5d9fdc[_0x588891-0x1],{cdnUrl:_0x2537a4,fileInfo:_0xb26d22}=_0x385675;if(!_0x2537a4||!_0xb26d22)continue;const {width:_0x2ee34b,height:_0x772e7c}=_0xb26d22['imageInfo'],_0x2a5c3c=C(_0x2537a4,_0x2ee34b,_0x772e7c),_0x4ad9d7=k(_0x2537a4,_0x2a5c3c['width']),_0x428bcb={'id':_0xb26d22['uuid'],'type':'image','attributes':{'imageDimension':_0x2a5c3c,..._0x4ad9d7}};this['_insertAsset'](_0x428bcb,_0x58809a,_0x3a8a62);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x835728=>{'idle'===_0x835728['detail']['status']&&!_0x835728['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1adf51,_0x5a773d,_0x5b88b5){const _0x3180b9=this['_editor']['model']['document']['selection'],_0x3e9271=_0x3180b9['getSelectedElement'](),_0x1ac22e=!(!_0x3e9271||!_0x3e9271['is']('element','imageInline'));_0x5b88b5['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1adf51,_0x1ac22e),_0x5a773d||_0x5b88b5['setSelection'](_0x3180b9['getLastPosition']());}['_insertImage'](_0x2cc4dd,_0x237284){const _0x4dbc89=this['_editor'],{imageDimension:_0x34a60f,imageFallbackUrl:_0x17eb90,imageSources:_0x1966dd}=_0x2cc4dd['attributes'];_0x4dbc89['execute']('insertImage',{'imageType':_0x237284?'imageInline':null,'source':{'uploadcareImageId':_0x2cc4dd['id'],'src':_0x17eb90,'sources':_0x1966dd,..._0x34a60f}});}}class w extends _0x1b6101{['_editing'];['_controller']=null;static get['requires'](){return[_0x32f184,o];}constructor(_0x583465){super(_0x583465),this['_editing']=_0x583465['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xd19a16){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xd19a16);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xd9c6f9,publicKey:_0x2176a3,signal:_0x42ce8f,onProgress:_0x43592e}){return _0x2fa558(_0xd9c6f9,{'publicKey':_0x2176a3,'store':'auto','signal':_0x42ce8f,'onProgress':_0x43592e});}static['getInfo'](_0x177ee8,_0x552349){return _0x23ff02(_0x177ee8,_0x552349);}}class f extends _0x1560bd{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x173cf6,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x265b76=this['editor'];if(!!!_0x265b76['config']['get']('uploadcare'))return;_0x265b76['plugins']['get'](_0x173cf6)['createUploadAdapter']=_0x86d6f8=>new A(_0x86d6f8,_0x265b76),_0x265b76['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x58ef94,{imageElement:_0x25d9f2,data:_0x5815eb})=>{_0x265b76['model']['change'](_0x2ccc59=>{_0x2ccc59['setAttribute']('uploadcareImageId',_0x5815eb['uploadcareImageId'],_0x25d9f2);});});}}class A{['loader'];['editor'];['controller'];constructor(_0xaae450,_0x142d8a){this['loader']=_0xaae450,this['editor']=_0x142d8a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x341b82=this['editor']['config']['get']('uploadcare.pubkey'),_0xf9ffd6=await this['loader']['file'];return j['upload']({'file':_0xf9ffd6,'publicKey':_0x341b82,'signal':this['controller']['signal'],'onProgress':_0x4c8c71=>{_0x4c8c71&&_0x4c8c71['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4c8c71['value']);}})['then'](async _0xf0e9bc=>{const {imageFallbackUrl:_0x111707,imageSources:_0x36c3a9}=k(_0xf0e9bc['cdnUrl'],_0xf0e9bc['imageInfo']['width']);return{'uploadcareImageId':_0xf0e9bc['uuid'],'default':_0x111707,'sources':_0x36c3a9};})['catch'](()=>{const _0x236f18=t('Cannot\x20upload\x20file:')+('\x20'+_0xf9ffd6['name']+'.');return Promise['reject'](_0x236f18);});}['abort'](){this['controller']['abort']();}}class o extends _0x1560bd{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x32f184];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x36924b){super(_0x36924b),this['ucContextId']=_0x55acdf();}['init'](){const _0x597c7c=this['editor'];_0x597c7c['commands']['add']('uploadcare',new w(_0x597c7c));}['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 _0x44520b=_0x45b4c7['document']['querySelector']('input[uploadcare-file-input]');_0x44520b&&_0x44520b['remove']();}),async function(_0x5e7df8){const _0x3146b3=_0x36b055([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x4d1451=0x3d8d0df,_0x41f83b=0x3dfa1a7^_0x4d1451,_0x931414=window[_0x36b055([0x44,0x61,0x74,0x65])][_0x36b055([0x6e,0x6f,0x77])](),_0x11f6e0=_0x5e7df8[_0x36b055([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ca7db=new window[(_0x36b055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x268eaa=>{_0x11f6e0[_0x36b055([0x6f,0x6e,0x63,0x65])](_0x36b055([0x72,0x65,0x61,0x64,0x79]),_0x268eaa);}),_0x4fcb7e={[_0x36b055([0x6b,0x74,0x79])]:_0x36b055([0x45,0x43]),[_0x36b055([0x75,0x73,0x65])]:_0x36b055([0x73,0x69,0x67]),[_0x36b055([0x63,0x72,0x76])]:_0x36b055([0x50,0x2d,0x32,0x35,0x36]),[_0x36b055([0x78])]:_0x36b055([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]),[_0x36b055([0x79])]:_0x36b055([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]),[_0x36b055([0x61,0x6c,0x67])]:_0x36b055([0x45,0x53,0x32,0x35,0x36])},_0x39b0f6=_0x11f6e0[_0x36b055([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x36b055([0x67,0x65,0x74])](_0x36b055([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x52fe1c(){let _0x1d35a8,_0x341eea=null,_0x394d38=null;try{if(_0x39b0f6==_0x36b055([0x47,0x50,0x4c]))return _0x36b055([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d35a8=_0x2c32f7(),!_0x1d35a8)return _0x36b055([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d35a8[_0x36b055([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x394d38=_0x13f31d(_0x1d35a8[_0x36b055([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d35a8[_0x36b055([0x6a,0x74,0x69])])),await _0x1cd67a()?_0x1a10d6()?_0x5cf7c5()?_0x36b055([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x36b4df()?(_0x1d35a8[_0x36b055([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x36b055([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x341eea=_0x1d96ec(_0x36b055([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1d35a8[_0x36b055([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x36b055([0x74,0x72,0x69,0x61,0x6c])&&(_0x341eea=_0x1d96ec(_0x36b055([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x571465()):_0x36b055([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x36b055([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x36b055([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x36b055([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5cf7c5(){const _0x39063f=[_0x36b055([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x36b055([0x74,0x72,0x69,0x61,0x6c])][_0x36b055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d35a8[_0x36b055([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x931414/0x3e8:0xe10*_0x41f83b;return _0x1d35a8[_0x36b055([0x65,0x78,0x70])]<_0x39063f;}function _0x1a10d6(){const _0x7be7cd=_0x1d35a8[_0x36b055([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x7be7cd&&(!!_0x7be7cd[_0x36b055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36b055([0x2a]))||!!_0x7be7cd[_0x36b055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36b055([0x55,0x50,0x4c,0x43])));}function _0x36b4df(){const _0xce460f=_0x1d35a8[_0x36b055([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xce460f||0x0==_0xce460f[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5f3e59}=new URL(window[_0x36b055([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xce460f[_0x36b055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f3e59))return!0x0;const _0x2f4f53=_0x5f3e59[_0x36b055([0x73,0x70,0x6c,0x69,0x74])](_0x36b055([0x2e]));return _0xce460f[_0x36b055([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf8405a=>_0xf8405a[_0x36b055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36b055([0x2a])))[_0x36b055([0x6d,0x61,0x70])](_0x143dba=>_0x143dba[_0x36b055([0x73,0x70,0x6c,0x69,0x74])](_0x36b055([0x2e])))[_0x36b055([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x379a7a=>_0x379a7a[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2f4f53[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x36b055([0x6d,0x61,0x70])](_0x200dc7=>Array(_0x2f4f53[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x200dc7[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x36b055([0x66,0x69,0x6c,0x6c])](_0x200dc7[0x0]===_0x36b055([0x2a])?_0x36b055([0x2a]):'')[_0x36b055([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x200dc7))[_0x36b055([0x73,0x6f,0x6d,0x65])](_0x4f7380=>_0x2f4f53[_0x36b055([0x65,0x76,0x65,0x72,0x79])]((_0x5e4d12,_0x1264b2)=>_0x4f7380[_0x1264b2]===_0x5e4d12||_0x4f7380[_0x1264b2]===_0x36b055([0x2a])));}function _0x571465(){return _0x341eea&&_0x394d38?new window[(_0x36b055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x27f2a8,_0x538f1f)=>{_0x341eea[_0x36b055([0x74,0x68,0x65,0x6e])](_0x27f2a8,_0x538f1f),_0x394d38[_0x36b055([0x74,0x68,0x65,0x6e])](_0x48fc85=>{_0x48fc85!=_0x36b055([0x56,0x61,0x6c,0x69,0x64])&&_0x27f2a8(_0x48fc85);},_0x538f1f);}):_0x341eea||_0x394d38||_0x36b055([0x56,0x61,0x6c,0x69,0x64]);}}function _0x13f31d(_0x1632de,_0x5580c3){return new window[(_0x36b055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x701f34=>{if(_0x4ff768())return _0x701f34(_0x36b055([0x56,0x61,0x6c,0x69,0x64]));_0x226fdd(),_0x11f6e0[_0x36b055([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x36b055([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1997b2=!0x1;const _0x1db32f=_0x55acdf();function _0x25b96a(_0xa74d52){return!!_0xa74d52&&(typeof _0xa74d52===_0x36b055([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa74d52===_0x36b055([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa74d52[_0x36b055([0x74,0x68,0x65,0x6e])]===_0x36b055([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa74d52[_0x36b055([0x63,0x61,0x74,0x63,0x68])]===_0x36b055([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1226f8(_0x20a40b){_0x54628f(_0x20a40b)[_0x36b055([0x74,0x68,0x65,0x6e])](_0xeb0b8=>{if(!_0xeb0b8||_0xeb0b8[_0x36b055([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x36b055([0x6f,0x6b]))return _0x36b055([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x526fab(_0x47add1(_0x1db32f+_0x5580c3))!=_0xeb0b8[_0x36b055([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x36b055([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x36b055([0x56,0x61,0x6c,0x69,0x64]);})[_0x36b055([0x74,0x68,0x65,0x6e])](_0xe194a1=>(_0x2bab4b(),_0xe194a1),()=>{const _0x12f6b1=_0x1809b5();return null==_0x12f6b1?(_0x2bab4b(),_0x36b055([0x56,0x61,0x6c,0x69,0x64])):_0x36b055(_0x931414-_0x12f6b1>(0x27d454df^_0x4d1451)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x36b055([0x74,0x68,0x65,0x6e])](_0x701f34)[_0x36b055([0x63,0x61,0x74,0x63,0x68])](()=>{_0x701f34(_0x36b055([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4ebe76=0x3ee3e5f^_0x4d1451;function _0x2bab4b(){const _0x200559=_0x36b055([0x6c,0x6c,0x63,0x74,0x2d])+_0x526fab(_0x47add1(_0x1632de)),_0x519cbb=_0x153664(_0x526fab(window[_0x36b055([0x4d,0x61,0x74,0x68])][_0x36b055([0x63,0x65,0x69,0x6c])](_0x931414/_0x4ebe76)));window[_0x36b055([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36b055([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x200559,_0x519cbb);}function _0x1809b5(){const _0x4a604e=_0x36b055([0x6c,0x6c,0x63,0x74,0x2d])+_0x526fab(_0x47add1(_0x1632de)),_0x1e065e=window[_0x36b055([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36b055([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a604e);return _0x1e065e?window[_0x36b055([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x153664(_0x1e065e),0x10)*_0x4ebe76:null;}function _0x54628f(_0x4543a7){return new window[(_0x36b055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a29a1,_0x52ef4d)=>{_0x4543a7[_0x36b055([0x74,0x68,0x65,0x6e])](_0x2a29a1,_0x52ef4d),window[_0x36b055([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x52ef4d,0x3d9041f^_0x4d1451);});}}_0x11f6e0[_0x36b055([0x6f,0x6e])](_0x36b055([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x44ecf6,_0x3d814f)=>{if(_0x3d814f[0x0]!=_0x1632de)return _0x701f34(_0x36b055([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d814f[0x1]={..._0x3d814f[0x1],[_0x36b055([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1db32f};},{[_0x36b055([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36b055([0x68,0x69,0x67,0x68])}),_0x11f6e0[_0x36b055([0x6f,0x6e])](_0x36b055([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x24994f=>{_0x25b96a(_0x24994f[_0x36b055([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1997b2=!0x0,_0x1226f8(_0x24994f[_0x36b055([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x36b055([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36b055([0x6c,0x6f,0x77])}),_0x3ca7db[_0x36b055([0x74,0x68,0x65,0x6e])](()=>{_0x1997b2||_0x701f34(_0x36b055([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ff768(){return _0x11f6e0[_0x36b055([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36b055([0x76,0x69,0x65,0x77])][_0x36b055([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x36b055([0x61,0x75,0x74,0x6f]);}function _0x226fdd(){_0x11f6e0[_0x36b055([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36b055([0x76,0x69,0x65,0x77])][_0x36b055([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x36b055([0x61,0x75,0x74,0x6f]);}}function _0x1d96ec(_0x263c1f){const _0x413c9f=[new window[(_0x36b055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e6c47=>setTimeout(_0x5e6c47,0x3d1ee13^_0x4d1451)),_0x3ca7db[_0x36b055([0x74,0x68,0x65,0x6e])](()=>new window[(_0x36b055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b8949=>{let _0x484af4=0x0;_0x11f6e0[_0x36b055([0x6d,0x6f,0x64,0x65,0x6c])][_0x36b055([0x6f,0x6e])](_0x36b055([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xe509ff,_0x417fe8)=>{_0x417fe8[0x0][_0x36b055([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x484af4++,_0x484af4==(0x3d8d127^_0x4d1451)&&(_0x4b8949(),_0xe509ff[_0x36b055([0x6f,0x66,0x66])]());});}))];return window[_0x36b055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x36b055([0x72,0x61,0x63,0x65])](_0x413c9f)[_0x36b055([0x74,0x68,0x65,0x6e])](()=>_0x263c1f);}async function _0x19943b(){await _0x3ca7db,_0x11f6e0[_0x36b055([0x6d,0x6f,0x64,0x65,0x6c])][_0x36b055([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f3260,_0x11f6e0[_0x36b055([0x6d,0x6f,0x64,0x65,0x6c])][_0x36b055([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f3260,_0x11f6e0[_0x36b055([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x36b055([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x293c8e(_0x66d985){const _0x4ef2a1=_0x38fa4e();_0x11f6e0[_0x4ef2a1]=_0x36b055([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x66d985,_0x66d985!=_0x36b055([0x56,0x61,0x6c,0x69,0x64])&&_0x19943b();}function _0x38fa4e(){const _0x390d16=window[_0x36b055([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x36b055([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x36b055([0x6e,0x6f,0x77])]())[_0x36b055([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x36b055([0x2e]),'');let _0x498e3d=_0x36b055([0x52]);for(let _0x56b454=0x0;_0x56b454<_0x390d16[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56b454+=0x2){let _0x5f3816=window[_0x36b055([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x390d16[_0x36b055([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56b454,_0x56b454+0x2));_0x5f3816>=_0x3146b3[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5f3816-=_0x3146b3[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x498e3d+=_0x3146b3[_0x5f3816];}return _0x498e3d;}function _0x2c32f7(){const _0x25dfe0=_0x39b0f6[_0x36b055([0x73,0x70,0x6c,0x69,0x74])](_0x36b055([0x2e]));if(0x3!=_0x25dfe0[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5f4917(_0x25dfe0[0x1]);function _0x5f4917(_0x1674ba){const _0x27e124=_0x116809(_0x1674ba);return _0x27e124&&_0x2f3ef1()?_0x27e124:null;function _0x2f3ef1(){const _0x395ede=_0x27e124[_0x36b055([0x6a,0x74,0x69])],_0x54ad6d=window[_0x36b055([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x395ede[_0x36b055([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x395ede[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e9524={..._0x27e124,[_0x36b055([0x6a,0x74,0x69])]:_0x395ede[_0x36b055([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x395ede[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e9524[_0x36b055([0x76,0x63])],_0x47add1(_0x4e9524)==_0x54ad6d;}}}async function _0x1cd67a(){let _0x26e099=!0x0;try{const _0x13db79=_0x39b0f6[_0x36b055([0x73,0x70,0x6c,0x69,0x74])](_0x36b055([0x2e])),[_0x4702c6,_0x4599dc,_0xb980f1]=_0x13db79;return _0x4eaa7e(_0x4702c6),await _0x3c61db(_0x4702c6,_0x4599dc,_0xb980f1),_0x26e099;}catch{return!0x1;}function _0x4eaa7e(_0x4303df){const _0x37eff4=_0x116809(_0x4303df);_0x37eff4&&_0x37eff4[_0x36b055([0x61,0x6c,0x67])]==_0x36b055([0x45,0x53,0x32,0x35,0x36])||(_0x26e099=!0x1);}async function _0x3c61db(_0x347143,_0x2fe817,_0x1d59a3){const _0x3c4fe6=window[_0x36b055([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x36b055([0x66,0x72,0x6f,0x6d])](_0x10501f(_0x1d59a3),_0x4915de=>_0x4915de[_0x36b055([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x277758=new window[(_0x36b055([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x36b055([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x347143+_0x36b055([0x2e])+_0x2fe817),_0x334754=window[_0x36b055([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x36b055([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x334754)return;const _0x5dcc2b=await _0x334754[_0x36b055([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x36b055([0x6a,0x77,0x6b]),_0x4fcb7e,{[_0x36b055([0x6e,0x61,0x6d,0x65])]:_0x36b055([0x45,0x43,0x44,0x53,0x41]),[_0x36b055([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x36b055([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x36b055([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x334754[_0x36b055([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x36b055([0x6e,0x61,0x6d,0x65])]:_0x36b055([0x45,0x43,0x44,0x53,0x41]),[_0x36b055([0x68,0x61,0x73,0x68])]:{[_0x36b055([0x6e,0x61,0x6d,0x65])]:_0x36b055([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5dcc2b,_0x3c4fe6,_0x277758)||(_0x26e099=!0x1);}}function _0x116809(_0x421540){return _0x421540[_0x36b055([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x36b055([0x65,0x79]))?JSON[_0x36b055([0x70,0x61,0x72,0x73,0x65])](_0x10501f(_0x421540)):null;}function _0x10501f(_0x3a906f){return window[_0x36b055([0x61,0x74,0x6f,0x62])](_0x3a906f[_0x36b055([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x36b055([0x2b]))[_0x36b055([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x36b055([0x2f])));}function _0x47add1(_0x2df886){let _0x2465d9=0x1505;function _0x4ed0a2(_0x31ef05){for(let _0xfe3cd6=0x0;_0xfe3cd6<_0x31ef05[_0x36b055([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xfe3cd6++){const _0xed1ade=_0x31ef05[_0x36b055([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xfe3cd6);_0x2465d9=(_0x2465d9<<0x5)+_0x2465d9+_0xed1ade,_0x2465d9&=_0x2465d9;}}function _0x14ecba(_0x1c8301){Array[_0x36b055([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1c8301)?_0x1c8301[_0x36b055([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14ecba):_0x1c8301&&typeof _0x1c8301==_0x36b055([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x36b055([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1c8301)[_0x36b055([0x73,0x6f,0x72,0x74])]()[_0x36b055([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x28962b,_0x5a6e0c])=>{_0x4ed0a2(_0x28962b),_0x14ecba(_0x5a6e0c);}):_0x4ed0a2(window[_0x36b055([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1c8301));}return _0x14ecba(_0x2df886),_0x2465d9>>>0x0;}function _0x526fab(_0x2c1b03){return _0x2c1b03[_0x36b055([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x36b055([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x36b055([0x30]));}function _0x153664(_0xf84c28){return _0xf84c28[_0x36b055([0x73,0x70,0x6c,0x69,0x74])]('')[_0x36b055([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x36b055([0x6a,0x6f,0x69,0x6e])]('');}function _0x3f3260(){}function _0x36b055(_0x4e7b84){return _0x4e7b84['map'](_0x28a0bc=>String['fromCharCode'](_0x28a0bc))['join']('');}_0x293c8e(await _0x52fe1c());}(this);}['_initSchema'](){const _0x2061f4=this['editor']['model']['schema'];_0x2061f4['isRegistered']('imageBlock')&&_0x2061f4['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2061f4['isRegistered']('imageInline')&&_0x2061f4['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5afbbc=this['editor'];_0x5afbbc['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5afbbc['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x400338=>_0x400338['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5bc224=_0x5afbbc['commands']['get']('replaceImageSource');_0x5bc224&&this['listenTo'](_0x5bc224,'cleanupImage',(_0x2a2515,[_0x5d8d26,_0x12472e])=>{_0x5d8d26['removeAttribute']('uploadcareImageId',_0x12472e);});}['_initConfig'](){const _0x37d9b8=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5ca031=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2ea3d3(_0x45b4c7['document'],'uc-config',{..._0x37d9b8,'pubkey':_0x5ca031,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x126088=>{if('closeMax'==_0x126088)return'#uc-icon-arrow-down';},_0x45b4c7['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2ea3d3(_0x45b4c7['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x45b4c7['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x43c054=this['editor']['commands']['get']('insertImage');_0x43c054&&this['listenTo'](_0x43c054,'execute',()=>{const _0x2722c3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2722c3&&_0x2722c3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2722c3);});});const _0x5f4995=this['editor']['commands']['get']('uploadcareImageReplace');_0x5f4995&&this['listenTo'](_0x5f4995,'execute',()=>{const _0x1a27de=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1a27de&&_0x1a27de['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1a27de);});});}}class tt extends _0x1560bd{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x398c28){super(_0x398c28),_0x398c28['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x325f20['defineComponents'](_0x325f20);}}class ii extends _0x4a2bf8{constructor(_0x45df40){super(_0x45df40);const t=_0x45df40['t'],_0x285046=this['bindTemplate'],_0x404f1b=new _0x53f103();_0x404f1b['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':[_0x404f1b,{'text':_0x285046['to']('imageUploadProgress',_0x2a25c5=>t('Loading\x20image...')+'\x20('+(_0x2a25c5||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x4a2bf8{constructor(_0x360459){super(_0x360459);const t=_0x360459['t'];this['set']('errorType',null);const _0x18b147=new _0x29ddbc(_0x360459);_0x18b147['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x18b147['withText']=!0x0,_0x18b147['class']='ck-button-action',_0x18b147['on']('execute',()=>{this['fire']('retry');}),_0x18b147['bind']('isVisible')['to'](this,'errorType',_0x1ce04d=>'NotFound'!==_0x1ce04d);const _0x2201ce=new _0x195035();_0x2201ce['content']=_0x570e18,_0x2201ce['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4b9c28=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':[_0x2201ce,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4b9c28['to']('errorType',_0x57cc41=>t('NotFound'!==_0x57cc41?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x18b147]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x4a2bf8{constructor(_0x131649,_0x40e1a6){super(_0x131649);const _0x7cce91=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x40e1a6,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x7cce91['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xf9c57b,_0x2bc9da,_0x10bb40){super(_0xf9c57b),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xf9c57b),this['_errorView']=new ti(_0xf9c57b),this['_editingView']=new ei(_0xf9c57b,_0x10bb40),this['_focusableView']=new _0x4a2bf8(_0xf9c57b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2bc9da),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'],_0x553bb2=>{this['_addUploadcareImageEditorListeners'](_0x553bb2);});}),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'](_0x5063f0,_0x334045){const _0x1e8221='uc-cloud-image-editor',_0xbd2f6d=_0x5063f0['querySelector'](_0x1e8221);if(_0xbd2f6d)return _0x334045(_0xbd2f6d);const _0x39e963=new MutationObserver(_0x4a4a60=>{const _0x341787=_0x4a4a60['filter'](_0x29d8c1=>_0x29d8c1['target']===_0x5063f0&&_0x29d8c1['addedNodes']['length']>0x0&&_0x29d8c1['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1e8221);_0x341787['length']&&(_0x39e963['disconnect'](),_0x334045(_0x341787[0x0]['addedNodes'][0x0]));});_0x39e963['observe'](_0x5063f0,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xa995b){_0xa995b['addEventListener']('apply',_0x5b1649=>{this['fire']('apply',{'imageSrc':_0x5b1649['detail']['cdnUrl']});}),_0xa995b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2a1f66(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x8b1c5c,_0xb50fe0,_0x4d029d){super(),this['_editor']=_0x8b1c5c,this['_dialog']=_0xb50fe0,this['_imageElement']=_0x4d029d,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 _0x404409=this['_imageElement'],_0x317ccf=_0x404409['getAttribute']('uploadcareImageId'),_0x2ed516=_0x404409['getAttribute']('src');if(_0x317ccf)await this['_loadImageInfo'](_0x317ccf,_0x2ed516);else{if(this['_imageCache']['has'](_0x2ed516)){const _0x40e2cc=this['_imageCache']['get'](_0x2ed516);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x40e2cc['url'],this['imageDimension']=_0x40e2cc['dimension'],this['imageId']=_0x40e2cc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x20260f}=this['_editor'],t=_0x20260f['t'],_0x4e05c2=new X(_0x20260f,this['imageStatus'],this['_attributes']);_0x4e05c2['bind']('status')['to'](this,'imageStatus'),_0x4e05c2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4e05c2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4e05c2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4e05c2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x465540,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4e05c2,'position':_0x106366['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4e05c2['focus']();},'onHide':()=>{_0x4e05c2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x51626e=>!S(_0x51626e,_0x4e05c2['element'])}});}['_loadImageInfo'](_0x25a837,_0x1b78f6){return j['getInfo'](_0x25a837,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x54c895=>{const {width:_0x581b05,height:_0xf1c9b0}=_0x54c895['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b78f6,this['imageDimension']={'width':_0x581b05,'height':_0xf1c9b0},this['imageId']=_0x25a837;})['catch'](_0x59fa57=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x59fa57['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x51b056,_0x2b3a75){return this['_getImageAsFile'](_0x51b056)['then'](_0x12f949=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2b3a75['signal'],'file':_0x12f949,'onProgress':_0x5b6fde=>{_0x5b6fde&&_0x5b6fde['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5b6fde['value']));}}))['then'](_0x178400=>{const {width:_0x327f2e,height:_0x4e16c0}=_0x178400['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x178400['cdnUrl'],this['imageDimension']={'width':_0x327f2e,'height':_0x4e16c0},this['imageId']=_0x178400['uuid'],this['imageUploadProgress']=null;const _0x23396c=_0x51b056['getAttribute']('src');this['_imageCache']['set'](_0x23396c,{'id':_0x178400['uuid'],'url':_0x178400['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3bef34=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3bef34['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2a94e9,_0x14c969){_0x2a94e9['on']('apply',(_0x51de45,_0xcff662)=>{this['_replaceImage'](_0x14c969,_0xcff662['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2a94e9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2a94e9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5824b6,_0x572b03,_0x98a467){const _0x21e0ef=this['_editor'],{width:_0xd9d5f3,height:_0x35d39a}=C(_0x572b03,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3cbb05,imageSources:_0x22c321}=k(_0x572b03,_0xd9d5f3);_0x21e0ef['model']['change'](_0x471c80=>{if('$graveyard'===_0x5824b6['root']['rootName']){_0x21e0ef['execute']('insertImage',{'imageType':_0x5824b6['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5824b6['getAttributes']()),'uploadcareImageId':_0x98a467,'src':_0x3cbb05,'sources':_0x22c321,'width':_0xd9d5f3,'height':_0x35d39a}});const _0x169fa0=_0x5824b6['getChildren']();_0x5824b6=_0x21e0ef['model']['document']['selection']['getSelectedElement']();for(const _0x115f62 of _0x169fa0)_0x471c80['append'](_0x471c80['cloneElement'](_0x115f62),_0x5824b6);}else _0x471c80['setSelection'](_0x5824b6,'on'),_0x21e0ef['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5824b6['getAttributes']()),'uploadcareImageId':_0x98a467,'src':_0x3cbb05,'sources':_0x22c321,'width':_0xd9d5f3,'height':_0x35d39a},_0x5824b6);_0x471c80['setSelection'](_0x5824b6,'on');});}async['_getImageAsFile'](_0x241aa6){const _0x242010=_0x45b4c7['window'],_0x545330=_0x45b4c7['document']['location']['href'],_0x2e61b1=new _0x242010['URL'](_0x241aa6['getAttribute']('src'),_0x545330);if('data:'===_0x2e61b1['protocol']){const _0x45d889=_0x2e61b1['href']['split'](','),_0x3ae1ed=_0x45d889[0x0]['match'](/:(.*?);/)[0x1],_0x2e6402=_0x3ae1ed['split']('/')[0x1],_0x5ef9d6=_0x242010['atob'](_0x45d889[_0x45d889['length']-0x1]);let _0x4bdf35=_0x5ef9d6['length'];const _0x5c0683=new _0x242010['Uint8Array'](_0x4bdf35);for(;_0x4bdf35--;)_0x5c0683[_0x4bdf35]=_0x5ef9d6['charCodeAt'](_0x4bdf35);return new _0x242010['File']([_0x5c0683],'image.'+_0x2e6402,{'type':_0x3ae1ed});}const _0x5b043d=_0x2e61b1['href']['split']('/'),_0x58726a=_0x5b043d[_0x5b043d['length']-0x1],_0x36483e=_0x58726a['split']('.')[0x1];return _0x242010['fetch'](_0x2e61b1['href'])['then'](_0x79a0f3=>_0x79a0f3['clone']()['blob']())['then'](_0x3265ef=>new _0x242010['File']([_0x3265ef],_0x58726a,{'type':'image/'+_0x36483e}));}}class Q extends _0x1b6101{['imageEditController'];static get['requires'](){return[_0x32f184];}['_isEditable'];constructor(_0x141130){super(_0x141130),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xa5687f){const _0x4acf8b=z(_0xa5687f);return _0x4a4774=>!(!_0x4a4774||!_0x4a4774['is']('element','imageBlock')&&!_0x4a4774['is']('element','imageInline'))&&(!!_0x4a4774['hasAttribute']('uploadcareImageId')||!!_0x4a4774['hasAttribute']('src')&&_0x4acf8b(_0x4a4774['getAttribute']('src')));}(_0x141130['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x696825=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x696825);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xea1a6b=this['editor']['model']['document']['selection']['getSelectedElement']();_0xea1a6b&&(_0xea1a6b['is']('element','imageBlock')||_0xea1a6b['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x32f184),_0xea1a6b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x1b6101{['refresh'](){const _0x28cf43=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x28cf43&&(_0x28cf43['is']('element','imageBlock')||_0x28cf43['is']('element','imageInline')));}['execute'](_0x90543){const _0x2d1d42=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x19d7e4=>{_0x19d7e4['setAttributes'](_0x90543,_0x2d1d42),_0x19d7e4['removeAttribute']('srcset',_0x2d1d42),_0x19d7e4['removeAttribute']('sizes',_0x2d1d42);});}}class m extends _0x1560bd{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2be181,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2c55ca}=this;_0x2c55ca['commands']['add']('uploadcareImageEdit',new Q(_0x2c55ca)),_0x2c55ca['commands']['add']('uploadcareImageReplace',new V(_0x2c55ca));}}class g extends _0x1560bd{['_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 _0x15698b=this['editor'];_0x15698b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x54037d=>{const _0x234fe6=_0x15698b['commands']['get']('uploadcareImageEdit'),_0x12a527=new _0x29ddbc(_0x54037d),t=_0x54037d['t'];return _0x12a527['set']({'icon':_0x465540,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x12a527['bind']('isEnabled')['to'](_0x234fe6),_0x12a527['bind']('isOn')['to'](_0x234fe6,'isActive'),this['listenTo'](_0x12a527,'execute',()=>{_0x15698b['execute']('uploadcareImageEdit'),_0x15698b['editing']['view']['focus']();}),_0x12a527;}),this['_initConfig']();}['_initConfig'](){const _0x4831a1=_0x2ea3d3(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4831a1),this['listenTo'](this['editor'],'destroy',()=>{_0x4831a1['remove']();});}}class et extends _0x1560bd{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20250825.0",
|
|
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": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20250825.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250825.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250825.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250825.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250825.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250825.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250825.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250825.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.17.1",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3f25d9=_0x360d;(function(_0x58857f,_0x5ea535){const _0x1749a4=_0x360d,_0x383c4b=_0x58857f();while(!![]){try{const _0x225aeb=-parseInt(_0x1749a4(0x1b7))/0x1+-parseInt(_0x1749a4(0x1b5))/0x2+parseInt(_0x1749a4(0x1bd))/0x3*(parseInt(_0x1749a4(0x1cf))/0x4)+parseInt(_0x1749a4(0x1c1))/0x5*(-parseInt(_0x1749a4(0x1f4))/0x6)+-parseInt(_0x1749a4(0x1ad))/0x7*(-parseInt(_0x1749a4(0x1e0))/0x8)+parseInt(_0x1749a4(0x1eb))/0x9+parseInt(_0x1749a4(0x1e2))/0xa;if(_0x225aeb===_0x5ea535)break;else _0x383c4b['push'](_0x383c4b['shift']());}catch(_0x3e8f69){_0x383c4b['push'](_0x383c4b['shift']());}}}(_0x1143,0x435b8));import{Plugin as _0x599cde}from'ckeditor5/src/core.js';function _0x1143(){const _0x129237=['map','3828636OmKkGg','commands','querySelector','fromCharCode','ucContextId','conversion','config','render','802652srkMog','ctxElement','449285lTQLCU','iconHrefResolver','_initConversion','uploadcare.pubkey','#uc-icon-arrow-down','editor','69NxAlTv','init','downcast','destroy','5HhOeJh','input[uploadcare-file-input]','href','model','uc-upload-ctx-provider','remove','configElement','_initCtx','editing','removeAttribute','once','extend','listenTo','add','6388WcjQLm','_ctxElement','uc-config','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','schema','get','uploadcare','view','attributeToAttribute','closeMax','_initImageProcessingIndicator','uploadcareImageReplace','for','_configElement','true','document','pluginName','8yKlXKm','contentLanguage','5576180mGTjKX','uploadcareImageId','insertImage','afterInit','appendChild','uploader-','requires','join','imageInline','165600MehwCU','uploadcare.uploader','elementToAttribute','isOfficialPlugin','execute','data-uc-image-id','upcast','isRegistered','getAttribute','199140nKhNRG','_initConfig','isPremiumPlugin','imageBlock','locale','_initSchema','body','selection','cleanupImage','PictureEditing','getSelectedElement','replaceImageSource','UploadcareEditing'];_0x1143=function(){return _0x129237;};return _0x1143();}function _0x360d(_0x35beb8,_0x17b05c){const _0x11435e=_0x1143();return _0x360d=function(_0x360d7f,_0x40e3eb){_0x360d7f=_0x360d7f-0x1aa;let _0x50cc8c=_0x11435e[_0x360d7f];return _0x50cc8c;},_0x360d(_0x35beb8,_0x17b05c);}import{Dialog as _0x1f4e8f}from'ckeditor5/src/ui.js';import{createElement as _0xb23164,global as _0x590b1e,uid as _0x30e52c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0xf57ad4}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4ec0a8}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4d4593}from'./utils/editingutils.js';export class UploadcareEditing extends _0x599cde{[_0x3f25d9(0x1dc)]=null;[_0x3f25d9(0x1d0)]=null;static get[_0x3f25d9(0x1df)](){const _0x5ef7b5=_0x3f25d9;return _0x5ef7b5(0x1ab);}static get[_0x3f25d9(0x1e8)](){const _0x3ff99f=_0x3f25d9;return[_0x3ff99f(0x1fd),_0x4ec0a8,_0x1f4e8f];}static get[_0x3f25d9(0x1ee)](){return!0x0;}static get[_0x3f25d9(0x1f6)](){return!0x0;}[_0x3f25d9(0x1b1)];get[_0x3f25d9(0x1c7)](){const _0x3ad763=_0x3f25d9;return this[_0x3ad763(0x1dc)];}get[_0x3f25d9(0x1b6)](){const _0x516b82=_0x3f25d9;return this[_0x516b82(0x1d0)];}constructor(_0x1fec2e){const _0x120d7c=_0x3f25d9;super(_0x1fec2e),this[_0x120d7c(0x1b1)]=_0x30e52c();}[_0x3f25d9(0x1be)](){const _0x4628a5=_0x3f25d9,_0x2725cc=this[_0x4628a5(0x1bc)];_0x2725cc[_0x4628a5(0x1ae)][_0x4628a5(0x1ce)](_0x4628a5(0x1d5),new _0xf57ad4(_0x2725cc));}[_0x3f25d9(0x1e5)](){const _0x3f77d5=_0x3f25d9;this[_0x3f77d5(0x1f9)](),this[_0x3f77d5(0x1b9)](),this[_0x3f77d5(0x1f5)](),this[_0x3f77d5(0x1c8)](),this[_0x3f77d5(0x1d9)](),this[_0x3f77d5(0x1cd)](this[_0x3f77d5(0x1bc)],_0x3f77d5(0x1c0),()=>{const _0x1fb970=_0x3f77d5;this[_0x1fb970(0x1dc)]&&(this[_0x1fb970(0x1dc)][_0x1fb970(0x1c6)](),this[_0x1fb970(0x1dc)]=null),this[_0x1fb970(0x1d0)]&&(this[_0x1fb970(0x1d0)][_0x1fb970(0x1c6)](),this[_0x1fb970(0x1d0)]=null);const _0x1ed00f=_0x590b1e[_0x1fb970(0x1de)][_0x1fb970(0x1af)](_0x1fb970(0x1c2));_0x1ed00f&&_0x1ed00f[_0x1fb970(0x1c6)]();}),async function(_0x333b15){const _0x3ddd91=_0x42c2d7([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x4156ce=0x3d8d0df,_0x1a8802=0x3dfa1ef^_0x4156ce,_0x2d175e=window[_0x42c2d7([0x44,0x61,0x74,0x65])][_0x42c2d7([0x6e,0x6f,0x77])](),_0x6ac6a5=_0x333b15[_0x42c2d7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x594a10=new window[(_0x42c2d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x61cc54=>{_0x6ac6a5[_0x42c2d7([0x6f,0x6e,0x63,0x65])](_0x42c2d7([0x72,0x65,0x61,0x64,0x79]),_0x61cc54);}),_0x2effc9={[_0x42c2d7([0x6b,0x74,0x79])]:_0x42c2d7([0x45,0x43]),[_0x42c2d7([0x75,0x73,0x65])]:_0x42c2d7([0x73,0x69,0x67]),[_0x42c2d7([0x63,0x72,0x76])]:_0x42c2d7([0x50,0x2d,0x32,0x35,0x36]),[_0x42c2d7([0x78])]:_0x42c2d7([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]),[_0x42c2d7([0x79])]:_0x42c2d7([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]),[_0x42c2d7([0x61,0x6c,0x67])]:_0x42c2d7([0x45,0x53,0x32,0x35,0x36])},_0x520453=_0x6ac6a5[_0x42c2d7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x42c2d7([0x67,0x65,0x74])](_0x42c2d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x41a965(){let _0x11ce45,_0x264a85=null,_0x83c9d1=null;try{if(_0x520453==_0x42c2d7([0x47,0x50,0x4c]))return _0x42c2d7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11ce45=_0x28c9f1(),!_0x11ce45)return _0x42c2d7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11ce45[_0x42c2d7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x83c9d1=_0x107b8c(_0x11ce45[_0x42c2d7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11ce45[_0x42c2d7([0x6a,0x74,0x69])])),await _0x6264ed()?_0x5d30c2()?_0x14fdef()?_0x42c2d7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5269bd()?(_0x11ce45[_0x42c2d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42c2d7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x264a85=_0x448f3a(_0x42c2d7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x11ce45[_0x42c2d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42c2d7([0x74,0x72,0x69,0x61,0x6c])&&(_0x264a85=_0x448f3a(_0x42c2d7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e67a0()):_0x42c2d7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x42c2d7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x42c2d7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x42c2d7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x14fdef(){const _0x314daf=[_0x42c2d7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x42c2d7([0x74,0x72,0x69,0x61,0x6c])][_0x42c2d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11ce45[_0x42c2d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d175e/0x3e8:0xe10*_0x1a8802;return _0x11ce45[_0x42c2d7([0x65,0x78,0x70])]<_0x314daf;}function _0x5d30c2(){const _0xd528bf=_0x11ce45[_0x42c2d7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xd528bf&&(!!_0xd528bf[_0x42c2d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42c2d7([0x2a]))||!!_0xd528bf[_0x42c2d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42c2d7([0x55,0x50,0x4c,0x43])));}function _0x5269bd(){const _0x3e2aca=_0x360d,_0x107b3b=_0x11ce45[_0x42c2d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x107b3b||0x0==_0x107b3b[_0x42c2d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3319b0}=new URL(window[_0x42c2d7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3e2aca(0x1c3)]);if(_0x107b3b[_0x42c2d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3319b0))return!0x0;const _0x3b91f6=_0x3319b0[_0x42c2d7([0x73,0x70,0x6c,0x69,0x74])](_0x42c2d7([0x2e]));return _0x107b3b[_0x42c2d7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13f96f=>_0x13f96f[_0x42c2d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42c2d7([0x2a])))[_0x42c2d7([0x6d,0x61,0x70])](_0x5476f9=>_0x5476f9[_0x42c2d7([0x73,0x70,0x6c,0x69,0x74])](_0x42c2d7([0x2e])))[_0x42c2d7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x465ecf=>_0x465ecf[_0x42c2d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3b91f6[_0x42c2d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42c2d7([0x6d,0x61,0x70])](_0xb3be9b=>Array(_0x3b91f6[_0x42c2d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xb3be9b[_0x42c2d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42c2d7([0x66,0x69,0x6c,0x6c])](_0xb3be9b[0x0]===_0x42c2d7([0x2a])?_0x42c2d7([0x2a]):'')[_0x42c2d7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xb3be9b))[_0x42c2d7([0x73,0x6f,0x6d,0x65])](_0x800d1e=>_0x3b91f6[_0x42c2d7([0x65,0x76,0x65,0x72,0x79])]((_0x99cdac,_0x2dd6d4)=>_0x800d1e[_0x2dd6d4]===_0x99cdac||_0x800d1e[_0x2dd6d4]===_0x42c2d7([0x2a])));}function _0x1e67a0(){return _0x264a85&&_0x83c9d1?new window[(_0x42c2d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31a627,_0x7386f6)=>{_0x264a85[_0x42c2d7([0x74,0x68,0x65,0x6e])](_0x31a627,_0x7386f6),_0x83c9d1[_0x42c2d7([0x74,0x68,0x65,0x6e])](_0x465a66=>{_0x465a66!=_0x42c2d7([0x56,0x61,0x6c,0x69,0x64])&&_0x31a627(_0x465a66);},_0x7386f6);}):_0x264a85||_0x83c9d1||_0x42c2d7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x107b8c(_0x54eb5e,_0x187fcf){return new window[(_0x42c2d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10693c=>{if(_0x2ea2d5())return _0x10693c(_0x42c2d7([0x56,0x61,0x6c,0x69,0x64]));_0x508e4d(),_0x6ac6a5[_0x42c2d7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x42c2d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x547fe9=!0x1;const _0x2b7879=_0x30e52c();function _0x1a1abc(_0x1bacd8){return!!_0x1bacd8&&(typeof _0x1bacd8===_0x42c2d7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1bacd8===_0x42c2d7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1bacd8[_0x42c2d7([0x74,0x68,0x65,0x6e])]===_0x42c2d7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1bacd8[_0x42c2d7([0x63,0x61,0x74,0x63,0x68])]===_0x42c2d7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x7a05bd(_0x2f1688){_0x318608(_0x2f1688)[_0x42c2d7([0x74,0x68,0x65,0x6e])](_0x15f1f8=>{if(!_0x15f1f8||_0x15f1f8[_0x42c2d7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x42c2d7([0x6f,0x6b]))return _0x42c2d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1d53ab(_0x4179f2(_0x2b7879+_0x187fcf))!=_0x15f1f8[_0x42c2d7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x42c2d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x42c2d7([0x56,0x61,0x6c,0x69,0x64]);})[_0x42c2d7([0x74,0x68,0x65,0x6e])](_0x7d2442=>(_0x360b98(),_0x7d2442),()=>{const _0x491ab1=_0x85d2e9();return null==_0x491ab1?(_0x360b98(),_0x42c2d7([0x56,0x61,0x6c,0x69,0x64])):_0x42c2d7(_0x2d175e-_0x491ab1>(0x27d454df^_0x4156ce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x42c2d7([0x74,0x68,0x65,0x6e])](_0x10693c)[_0x42c2d7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x10693c(_0x42c2d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4260d7=0x3ee3e5f^_0x4156ce;function _0x360b98(){const _0x3c1d3f=_0x42c2d7([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d53ab(_0x4179f2(_0x54eb5e)),_0x19f94c=_0x222633(_0x1d53ab(window[_0x42c2d7([0x4d,0x61,0x74,0x68])][_0x42c2d7([0x63,0x65,0x69,0x6c])](_0x2d175e/_0x4260d7)));window[_0x42c2d7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42c2d7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c1d3f,_0x19f94c);}function _0x85d2e9(){const _0x163b51=_0x42c2d7([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d53ab(_0x4179f2(_0x54eb5e)),_0x259e99=window[_0x42c2d7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42c2d7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x163b51);return _0x259e99?window[_0x42c2d7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x222633(_0x259e99),0x10)*_0x4260d7:null;}function _0x318608(_0x35cac0){return new window[(_0x42c2d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53a4c0,_0x36002f)=>{_0x35cac0[_0x42c2d7([0x74,0x68,0x65,0x6e])](_0x53a4c0,_0x36002f),window[_0x42c2d7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x36002f,0x3d9041f^_0x4156ce);});}}_0x6ac6a5[_0x42c2d7([0x6f,0x6e])](_0x42c2d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x577977,_0x297333)=>{if(_0x297333[0x0]!=_0x54eb5e)return _0x10693c(_0x42c2d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x297333[0x1]={..._0x297333[0x1],[_0x42c2d7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b7879};},{[_0x42c2d7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42c2d7([0x68,0x69,0x67,0x68])}),_0x6ac6a5[_0x42c2d7([0x6f,0x6e])](_0x42c2d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x194de1=>{_0x1a1abc(_0x194de1[_0x42c2d7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x547fe9=!0x0,_0x7a05bd(_0x194de1[_0x42c2d7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x42c2d7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42c2d7([0x6c,0x6f,0x77])}),_0x594a10[_0x42c2d7([0x74,0x68,0x65,0x6e])](()=>{_0x547fe9||_0x10693c(_0x42c2d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2ea2d5(){return _0x6ac6a5[_0x42c2d7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42c2d7([0x76,0x69,0x65,0x77])][_0x42c2d7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x42c2d7([0x61,0x75,0x74,0x6f]);}function _0x508e4d(){_0x6ac6a5[_0x42c2d7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42c2d7([0x76,0x69,0x65,0x77])][_0x42c2d7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42c2d7([0x61,0x75,0x74,0x6f]);}}function _0x448f3a(_0x1fb9d8){const _0x32e19c=[new window[(_0x42c2d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f2bad=>setTimeout(_0x4f2bad,0x3d1ee13^_0x4156ce)),_0x594a10[_0x42c2d7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x42c2d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31c24a=>{let _0x52db44=0x0;_0x6ac6a5[_0x42c2d7([0x6d,0x6f,0x64,0x65,0x6c])][_0x42c2d7([0x6f,0x6e])](_0x42c2d7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x14529f,_0x13a790)=>{_0x13a790[0x0][_0x42c2d7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x52db44++,_0x52db44==(0x3d8d127^_0x4156ce)&&(_0x31c24a(),_0x14529f[_0x42c2d7([0x6f,0x66,0x66])]());});}))];return window[_0x42c2d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42c2d7([0x72,0x61,0x63,0x65])](_0x32e19c)[_0x42c2d7([0x74,0x68,0x65,0x6e])](()=>_0x1fb9d8);}async function _0x2522be(){await _0x594a10,_0x6ac6a5[_0x42c2d7([0x6d,0x6f,0x64,0x65,0x6c])][_0x42c2d7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ebf54,_0x6ac6a5[_0x42c2d7([0x6d,0x6f,0x64,0x65,0x6c])][_0x42c2d7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ebf54,_0x6ac6a5[_0x42c2d7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x42c2d7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3facef(_0x542b2f){const _0x3b9042=_0x145013();_0x6ac6a5[_0x3b9042]=_0x42c2d7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x542b2f,_0x542b2f!=_0x42c2d7([0x56,0x61,0x6c,0x69,0x64])&&_0x2522be();}function _0x145013(){const _0x9a7c91=window[_0x42c2d7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x42c2d7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x42c2d7([0x6e,0x6f,0x77])]())[_0x42c2d7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x42c2d7([0x2e]),'');let _0x1f1f91=_0x42c2d7([0x52]);for(let _0x42b558=0x0;_0x42b558<_0x9a7c91[_0x42c2d7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42b558+=0x2){let _0x2af58e=window[_0x42c2d7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9a7c91[_0x42c2d7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42b558,_0x42b558+0x2));_0x2af58e>=_0x3ddd91[_0x42c2d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2af58e-=_0x3ddd91[_0x42c2d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f1f91+=_0x3ddd91[_0x2af58e];}return _0x1f1f91;}function _0x28c9f1(){const _0x4bcc4e=_0x520453[_0x42c2d7([0x73,0x70,0x6c,0x69,0x74])](_0x42c2d7([0x2e]));if(0x3!=_0x4bcc4e[_0x42c2d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d534b(_0x4bcc4e[0x1]);function _0x3d534b(_0x49cfc5){const _0x52551b=_0x2fd7f8(_0x49cfc5);return _0x52551b&&_0x2584f2()?_0x52551b:null;function _0x2584f2(){const _0x2a07c1=_0x52551b[_0x42c2d7([0x6a,0x74,0x69])],_0x5f0c90=window[_0x42c2d7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a07c1[_0x42c2d7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2a07c1[_0x42c2d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x85af60={..._0x52551b,[_0x42c2d7([0x6a,0x74,0x69])]:_0x2a07c1[_0x42c2d7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2a07c1[_0x42c2d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x85af60[_0x42c2d7([0x76,0x63])],_0x4179f2(_0x85af60)==_0x5f0c90;}}}async function _0x6264ed(){let _0x4f2598=!0x0;try{const _0x4678c6=_0x520453[_0x42c2d7([0x73,0x70,0x6c,0x69,0x74])](_0x42c2d7([0x2e])),[_0xbd4df,_0x239f91,_0x57d6b1]=_0x4678c6;return _0xa38517(_0xbd4df),await _0x16a14c(_0xbd4df,_0x239f91,_0x57d6b1),_0x4f2598;}catch{return!0x1;}function _0xa38517(_0x4f2860){const _0x1a9890=_0x2fd7f8(_0x4f2860);_0x1a9890&&_0x1a9890[_0x42c2d7([0x61,0x6c,0x67])]==_0x42c2d7([0x45,0x53,0x32,0x35,0x36])||(_0x4f2598=!0x1);}async function _0x16a14c(_0x5cbf99,_0x482ce6,_0x352544){const _0x5f00c9=window[_0x42c2d7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x42c2d7([0x66,0x72,0x6f,0x6d])](_0x2c967a(_0x352544),_0x19d20c=>_0x19d20c[_0x42c2d7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3d0937=new window[(_0x42c2d7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x42c2d7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5cbf99+_0x42c2d7([0x2e])+_0x482ce6),_0x353c61=window[_0x42c2d7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x42c2d7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x353c61)return;const _0x3ba391=await _0x353c61[_0x42c2d7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x42c2d7([0x6a,0x77,0x6b]),_0x2effc9,{[_0x42c2d7([0x6e,0x61,0x6d,0x65])]:_0x42c2d7([0x45,0x43,0x44,0x53,0x41]),[_0x42c2d7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x42c2d7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x42c2d7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x353c61[_0x42c2d7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x42c2d7([0x6e,0x61,0x6d,0x65])]:_0x42c2d7([0x45,0x43,0x44,0x53,0x41]),[_0x42c2d7([0x68,0x61,0x73,0x68])]:{[_0x42c2d7([0x6e,0x61,0x6d,0x65])]:_0x42c2d7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3ba391,_0x5f00c9,_0x3d0937)||(_0x4f2598=!0x1);}}function _0x2fd7f8(_0x5d73b8){return _0x5d73b8[_0x42c2d7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x42c2d7([0x65,0x79]))?JSON[_0x42c2d7([0x70,0x61,0x72,0x73,0x65])](_0x2c967a(_0x5d73b8)):null;}function _0x2c967a(_0x5dd9f0){return window[_0x42c2d7([0x61,0x74,0x6f,0x62])](_0x5dd9f0[_0x42c2d7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x42c2d7([0x2b]))[_0x42c2d7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x42c2d7([0x2f])));}function _0x4179f2(_0x4c0336){let _0x3f1dba=0x1505;function _0xd29d9c(_0x3db17d){for(let _0x17c679=0x0;_0x17c679<_0x3db17d[_0x42c2d7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17c679++){const _0x19cf0b=_0x3db17d[_0x42c2d7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x17c679);_0x3f1dba=(_0x3f1dba<<0x5)+_0x3f1dba+_0x19cf0b,_0x3f1dba&=_0x3f1dba;}}function _0x1f60c0(_0x332206){Array[_0x42c2d7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x332206)?_0x332206[_0x42c2d7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f60c0):_0x332206&&typeof _0x332206==_0x42c2d7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x42c2d7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x332206)[_0x42c2d7([0x73,0x6f,0x72,0x74])]()[_0x42c2d7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5440ad,_0x2b326f])=>{_0xd29d9c(_0x5440ad),_0x1f60c0(_0x2b326f);}):_0xd29d9c(window[_0x42c2d7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x332206));}return _0x1f60c0(_0x4c0336),_0x3f1dba>>>0x0;}function _0x1d53ab(_0xd7dbe9){return _0xd7dbe9[_0x42c2d7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x42c2d7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x42c2d7([0x30]));}function _0x222633(_0x43dc21){return _0x43dc21[_0x42c2d7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x42c2d7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x42c2d7([0x6a,0x6f,0x69,0x6e])]('');}function _0x4ebf54(){}function _0x42c2d7(_0x4f6ceb){const _0x16e5f9=_0x360d;return _0x4f6ceb[_0x16e5f9(0x1ac)](_0xa113a6=>String[_0x16e5f9(0x1b0)](_0xa113a6))[_0x16e5f9(0x1e9)]('');}_0x3facef(await _0x41a965());}(this);}[_0x3f25d9(0x1f9)](){const _0x51acac=_0x3f25d9,_0x56e52b=this[_0x51acac(0x1bc)][_0x51acac(0x1c4)][_0x51acac(0x1d3)];_0x56e52b[_0x51acac(0x1f2)](_0x51acac(0x1f7))&&_0x56e52b[_0x51acac(0x1cc)](_0x51acac(0x1f7),{'allowAttributes':[_0x51acac(0x1e3)]}),_0x56e52b[_0x51acac(0x1f2)](_0x51acac(0x1ea))&&_0x56e52b[_0x51acac(0x1cc)](_0x51acac(0x1ea),{'allowAttributes':[_0x51acac(0x1e3)]});}[_0x3f25d9(0x1b9)](){const _0x3db5b6=_0x3f25d9,_0x357fd9=this[_0x3db5b6(0x1bc)];_0x357fd9[_0x3db5b6(0x1b2)][_0x3db5b6(0x1db)](_0x3db5b6(0x1bf))[_0x3db5b6(0x1d7)]({'model':_0x3db5b6(0x1e3),'view':_0x3db5b6(0x1f0)}),_0x357fd9[_0x3db5b6(0x1b2)][_0x3db5b6(0x1db)](_0x3db5b6(0x1f1))[_0x3db5b6(0x1ed)]({'model':{'key':_0x3db5b6(0x1e3),'value':_0x390451=>_0x390451[_0x3db5b6(0x1f3)](_0x3db5b6(0x1f0))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1a08fb=_0x357fd9[_0x3db5b6(0x1ae)][_0x3db5b6(0x1d4)](_0x3db5b6(0x1aa));_0x1a08fb&&this[_0x3db5b6(0x1cd)](_0x1a08fb,_0x3db5b6(0x1fc),(_0x2b62a9,[_0x156193,_0x160a89])=>{const _0x1cb553=_0x3db5b6;_0x156193[_0x1cb553(0x1ca)](_0x1cb553(0x1e3),_0x160a89);});}[_0x3f25d9(0x1f5)](){const _0x192b00=_0x3f25d9,_0x397e7c=this[_0x192b00(0x1bc)][_0x192b00(0x1b3)][_0x192b00(0x1d4)](_0x192b00(0x1ec))||{},_0x180b6d=this[_0x192b00(0x1bc)][_0x192b00(0x1b3)][_0x192b00(0x1d4)](_0x192b00(0x1ba))||'';this[_0x192b00(0x1dc)]=_0xb23164(_0x590b1e[_0x192b00(0x1de)],_0x192b00(0x1d1),{..._0x397e7c,'pubkey':_0x180b6d,'ctx-name':_0x192b00(0x1e7)+this[_0x192b00(0x1b1)],'sourceList':'','imgOnly':_0x192b00(0x1dd),'removeCopyright':_0x192b00(0x1dd),'localeName':this[_0x192b00(0x1bc)][_0x192b00(0x1f8)][_0x192b00(0x1e1)],'externalSourcesEmbedCss':_0x192b00(0x1d2)}),this[_0x192b00(0x1dc)][_0x192b00(0x1b8)]=_0x37a0d6=>{const _0xda76bf=_0x192b00;if(_0xda76bf(0x1d8)==_0x37a0d6)return _0xda76bf(0x1bb);},_0x590b1e[_0x192b00(0x1de)][_0x192b00(0x1fa)][_0x192b00(0x1e6)](this[_0x192b00(0x1dc)]);}[_0x3f25d9(0x1c8)](){const _0x5a16bb=_0x3f25d9;this[_0x5a16bb(0x1d0)]=_0xb23164(_0x590b1e[_0x5a16bb(0x1de)],_0x5a16bb(0x1c5),{'ctx-name':_0x5a16bb(0x1e7)+this[_0x5a16bb(0x1b1)]}),_0x590b1e[_0x5a16bb(0x1de)][_0x5a16bb(0x1fa)][_0x5a16bb(0x1e6)](this[_0x5a16bb(0x1d0)]);}[_0x3f25d9(0x1d9)](){const _0x3e58c3=_0x3f25d9,_0x2eaac3=this[_0x3e58c3(0x1bc)][_0x3e58c3(0x1ae)][_0x3e58c3(0x1d4)](_0x3e58c3(0x1e4));_0x2eaac3&&this[_0x3e58c3(0x1cd)](_0x2eaac3,_0x3e58c3(0x1ef),()=>{const _0x1e41c9=_0x3e58c3,_0x2effed=this[_0x1e41c9(0x1bc)][_0x1e41c9(0x1c4)][_0x1e41c9(0x1de)][_0x1e41c9(0x1fb)][_0x1e41c9(0x1fe)]();_0x2effed&&_0x2effed[_0x1e41c9(0x1f3)](_0x1e41c9(0x1e3))&&this[_0x1e41c9(0x1bc)][_0x1e41c9(0x1c9)][_0x1e41c9(0x1d6)][_0x1e41c9(0x1cb)](_0x1e41c9(0x1b4),()=>{const _0x31526d=_0x1e41c9;_0x4d4593(this[_0x31526d(0x1bc)],_0x2effed);});});const _0x7e35db=this[_0x3e58c3(0x1bc)][_0x3e58c3(0x1ae)][_0x3e58c3(0x1d4)](_0x3e58c3(0x1da));_0x7e35db&&this[_0x3e58c3(0x1cd)](_0x7e35db,_0x3e58c3(0x1ef),()=>{const _0x47eab6=_0x3e58c3,_0x5960ce=this[_0x47eab6(0x1bc)][_0x47eab6(0x1c4)][_0x47eab6(0x1de)][_0x47eab6(0x1fb)][_0x47eab6(0x1fe)]();_0x5960ce&&_0x5960ce[_0x47eab6(0x1f3)](_0x47eab6(0x1e3))&&this[_0x47eab6(0x1bc)][_0x47eab6(0x1c9)][_0x47eab6(0x1d6)][_0x47eab6(0x1cb)](_0x47eab6(0x1b4),()=>{const _0x5567d6=_0x47eab6;_0x4d4593(this[_0x5567d6(0x1bc)],_0x5960ce);});});}}
|
|
23
|
+
function _0x4329(_0x114b52,_0x5be498){const _0x44ed88=_0x44ed();return _0x4329=function(_0x432975,_0x191804){_0x432975=_0x432975-0x184;let _0x3744df=_0x44ed88[_0x432975];return _0x3744df;},_0x4329(_0x114b52,_0x5be498);}const _0x266ee0=_0x4329;(function(_0x593d97,_0x33a001){const _0x1c2e60=_0x4329,_0x363f00=_0x593d97();while(!![]){try{const _0x58f651=-parseInt(_0x1c2e60(0x187))/0x1+parseInt(_0x1c2e60(0x1bc))/0x2*(parseInt(_0x1c2e60(0x184))/0x3)+parseInt(_0x1c2e60(0x193))/0x4*(parseInt(_0x1c2e60(0x1c1))/0x5)+-parseInt(_0x1c2e60(0x1ab))/0x6*(-parseInt(_0x1c2e60(0x1c7))/0x7)+-parseInt(_0x1c2e60(0x1c2))/0x8*(parseInt(_0x1c2e60(0x186))/0x9)+-parseInt(_0x1c2e60(0x1cc))/0xa+parseInt(_0x1c2e60(0x1a8))/0xb;if(_0x58f651===_0x33a001)break;else _0x363f00['push'](_0x363f00['shift']());}catch(_0x569fff){_0x363f00['push'](_0x363f00['shift']());}}}(_0x44ed,0xc5957));import{Plugin as _0x202095}from'ckeditor5/src/core.js';import{Dialog as _0x162fd0}from'ckeditor5/src/ui.js';import{createElement as _0x4580e8,global as _0x333496,uid as _0x12626e}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2edd42}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2d127f}from'./uploadcareuploadadapter.js';function _0x44ed(){const _0x9dbc09=['ctxElement','execute','appendChild','uc-config','replaceImageSource','uploadcare.uploader','1093066dMzTCu','isOfficialPlugin','isPremiumPlugin','_ctxElement','selection','365JAterS','2928uWJRJa','isRegistered','#uc-icon-arrow-down','requires','config','259zZYUnU','ucContextId','imageBlock','removeAttribute','document','10869780wIopLI','_initConfig','map','view','get','add','join','listenTo','commands','once','init','iconHrefResolver','input[uploadcare-file-input]','uploadcare.pubkey','3AppPhV','extend','37404AtpMqf','748244EZwxUy','uploader-','render','imageInline','querySelector','cleanupImage','_initConversion','UploadcareEditing','elementToAttribute','afterInit','fromCharCode','data-uc-image-id','85456FNdRAp','remove','insertImage','contentLanguage','for','editor','locale','\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','model','body','PictureEditing','upcast','destroy','uploadcare','pluginName','uploadcareImageReplace','schema','configElement','_initImageProcessingIndicator','getSelectedElement','closeMax','18457285DnAArN','_configElement','uploadcareImageId','61878KyJPTc','_initCtx','editing','_initSchema','true','downcast','attributeToAttribute','href','getAttribute','uc-upload-ctx-provider','conversion'];_0x44ed=function(){return _0x9dbc09;};return _0x44ed();}import{showImageProcessingIndicator as _0x4677bf}from'./utils/editingutils.js';export class UploadcareEditing extends _0x202095{[_0x266ee0(0x1a9)]=null;[_0x266ee0(0x1bf)]=null;static get[_0x266ee0(0x1a1)](){const _0x56e46d=_0x266ee0;return _0x56e46d(0x18e);}static get[_0x266ee0(0x1c5)](){const _0x3e327c=_0x266ee0;return[_0x3e327c(0x19d),_0x2d127f,_0x162fd0];}static get[_0x266ee0(0x1bd)](){return!0x0;}static get[_0x266ee0(0x1be)](){return!0x0;}[_0x266ee0(0x1c8)];get[_0x266ee0(0x1a4)](){const _0x1402c4=_0x266ee0;return this[_0x1402c4(0x1a9)];}get[_0x266ee0(0x1b6)](){const _0x219aff=_0x266ee0;return this[_0x219aff(0x1bf)];}constructor(_0x2b624e){const _0x1a5f05=_0x266ee0;super(_0x2b624e),this[_0x1a5f05(0x1c8)]=_0x12626e();}[_0x266ee0(0x1d6)](){const _0x264bfd=_0x266ee0,_0xe275ff=this[_0x264bfd(0x198)];_0xe275ff[_0x264bfd(0x1d4)][_0x264bfd(0x1d1)](_0x264bfd(0x1a0),new _0x2edd42(_0xe275ff));}[_0x266ee0(0x190)](){const _0x2b0ea4=_0x266ee0;this[_0x2b0ea4(0x1ae)](),this[_0x2b0ea4(0x18d)](),this[_0x2b0ea4(0x1cd)](),this[_0x2b0ea4(0x1ac)](),this[_0x2b0ea4(0x1a5)](),this[_0x2b0ea4(0x1d3)](this[_0x2b0ea4(0x198)],_0x2b0ea4(0x19f),()=>{const _0x17dca9=_0x2b0ea4;this[_0x17dca9(0x1a9)]&&(this[_0x17dca9(0x1a9)][_0x17dca9(0x194)](),this[_0x17dca9(0x1a9)]=null),this[_0x17dca9(0x1bf)]&&(this[_0x17dca9(0x1bf)][_0x17dca9(0x194)](),this[_0x17dca9(0x1bf)]=null);const _0x3fcec7=_0x333496[_0x17dca9(0x1cb)][_0x17dca9(0x18b)](_0x17dca9(0x1d8));_0x3fcec7&&_0x3fcec7[_0x17dca9(0x194)]();}),async function(_0x1b5802){const _0x14eefa=_0x9eea5b([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x45391a=0x3d8d0df,_0x40942e=0x3dfa1a7^_0x45391a,_0x31d089=window[_0x9eea5b([0x44,0x61,0x74,0x65])][_0x9eea5b([0x6e,0x6f,0x77])](),_0x315cf7=_0x1b5802[_0x9eea5b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x388bb5=new window[(_0x9eea5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c1b11=>{_0x315cf7[_0x9eea5b([0x6f,0x6e,0x63,0x65])](_0x9eea5b([0x72,0x65,0x61,0x64,0x79]),_0x4c1b11);}),_0x208881={[_0x9eea5b([0x6b,0x74,0x79])]:_0x9eea5b([0x45,0x43]),[_0x9eea5b([0x75,0x73,0x65])]:_0x9eea5b([0x73,0x69,0x67]),[_0x9eea5b([0x63,0x72,0x76])]:_0x9eea5b([0x50,0x2d,0x32,0x35,0x36]),[_0x9eea5b([0x78])]:_0x9eea5b([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]),[_0x9eea5b([0x79])]:_0x9eea5b([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]),[_0x9eea5b([0x61,0x6c,0x67])]:_0x9eea5b([0x45,0x53,0x32,0x35,0x36])},_0x2af6f4=_0x315cf7[_0x9eea5b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x9eea5b([0x67,0x65,0x74])](_0x9eea5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1e925f(){let _0x2dc88a,_0x307f66=null,_0x174657=null;try{if(_0x2af6f4==_0x9eea5b([0x47,0x50,0x4c]))return _0x9eea5b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2dc88a=_0x10c172(),!_0x2dc88a)return _0x9eea5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2dc88a[_0x9eea5b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x174657=_0x3e9c38(_0x2dc88a[_0x9eea5b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2dc88a[_0x9eea5b([0x6a,0x74,0x69])])),await _0x537000()?_0x275e63()?_0x520edd()?_0x9eea5b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x25f4bb()?(_0x2dc88a[_0x9eea5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9eea5b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x307f66=_0x242597(_0x9eea5b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2dc88a[_0x9eea5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9eea5b([0x74,0x72,0x69,0x61,0x6c])&&(_0x307f66=_0x242597(_0x9eea5b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2458f2()):_0x9eea5b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x9eea5b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x9eea5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x9eea5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x520edd(){const _0x53c010=[_0x9eea5b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x9eea5b([0x74,0x72,0x69,0x61,0x6c])][_0x9eea5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dc88a[_0x9eea5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x31d089/0x3e8:0xe10*_0x40942e;return _0x2dc88a[_0x9eea5b([0x65,0x78,0x70])]<_0x53c010;}function _0x275e63(){const _0x56f803=_0x2dc88a[_0x9eea5b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x56f803&&(!!_0x56f803[_0x9eea5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9eea5b([0x2a]))||!!_0x56f803[_0x9eea5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9eea5b([0x55,0x50,0x4c,0x43])));}function _0x25f4bb(){const _0x37c26e=_0x4329,_0x297bd4=_0x2dc88a[_0x9eea5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x297bd4||0x0==_0x297bd4[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x25748a}=new URL(window[_0x9eea5b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x37c26e(0x1b2)]);if(_0x297bd4[_0x9eea5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25748a))return!0x0;const _0x3f50af=_0x25748a[_0x9eea5b([0x73,0x70,0x6c,0x69,0x74])](_0x9eea5b([0x2e]));return _0x297bd4[_0x9eea5b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29f484=>_0x29f484[_0x9eea5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9eea5b([0x2a])))[_0x9eea5b([0x6d,0x61,0x70])](_0x4384b8=>_0x4384b8[_0x9eea5b([0x73,0x70,0x6c,0x69,0x74])](_0x9eea5b([0x2e])))[_0x9eea5b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x329bb9=>_0x329bb9[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3f50af[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9eea5b([0x6d,0x61,0x70])](_0x42aae7=>Array(_0x3f50af[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x42aae7[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9eea5b([0x66,0x69,0x6c,0x6c])](_0x42aae7[0x0]===_0x9eea5b([0x2a])?_0x9eea5b([0x2a]):'')[_0x9eea5b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x42aae7))[_0x9eea5b([0x73,0x6f,0x6d,0x65])](_0xa93200=>_0x3f50af[_0x9eea5b([0x65,0x76,0x65,0x72,0x79])]((_0x3d3a19,_0xa88f43)=>_0xa93200[_0xa88f43]===_0x3d3a19||_0xa93200[_0xa88f43]===_0x9eea5b([0x2a])));}function _0x2458f2(){return _0x307f66&&_0x174657?new window[(_0x9eea5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x562721,_0x4e3654)=>{_0x307f66[_0x9eea5b([0x74,0x68,0x65,0x6e])](_0x562721,_0x4e3654),_0x174657[_0x9eea5b([0x74,0x68,0x65,0x6e])](_0x2a733b=>{_0x2a733b!=_0x9eea5b([0x56,0x61,0x6c,0x69,0x64])&&_0x562721(_0x2a733b);},_0x4e3654);}):_0x307f66||_0x174657||_0x9eea5b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3e9c38(_0x9aa2ba,_0x3c03db){return new window[(_0x9eea5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5238a4=>{if(_0x52471b())return _0x5238a4(_0x9eea5b([0x56,0x61,0x6c,0x69,0x64]));_0x55d93e(),_0x315cf7[_0x9eea5b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x9eea5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2fa6ea=!0x1;const _0x41ebba=_0x12626e();function _0x2391ab(_0x5a2a94){return!!_0x5a2a94&&(typeof _0x5a2a94===_0x9eea5b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a2a94===_0x9eea5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a2a94[_0x9eea5b([0x74,0x68,0x65,0x6e])]===_0x9eea5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a2a94[_0x9eea5b([0x63,0x61,0x74,0x63,0x68])]===_0x9eea5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a813a(_0x4e93ad){_0x25150c(_0x4e93ad)[_0x9eea5b([0x74,0x68,0x65,0x6e])](_0x2cc89f=>{if(!_0x2cc89f||_0x2cc89f[_0x9eea5b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x9eea5b([0x6f,0x6b]))return _0x9eea5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x181bef(_0x14efdf(_0x41ebba+_0x3c03db))!=_0x2cc89f[_0x9eea5b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x9eea5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x9eea5b([0x56,0x61,0x6c,0x69,0x64]);})[_0x9eea5b([0x74,0x68,0x65,0x6e])](_0x339ff9=>(_0x2a8b6d(),_0x339ff9),()=>{const _0x1b104d=_0x218607();return null==_0x1b104d?(_0x2a8b6d(),_0x9eea5b([0x56,0x61,0x6c,0x69,0x64])):_0x9eea5b(_0x31d089-_0x1b104d>(0x27d454df^_0x45391a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x9eea5b([0x74,0x68,0x65,0x6e])](_0x5238a4)[_0x9eea5b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5238a4(_0x9eea5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x44f428=0x3ee3e5f^_0x45391a;function _0x2a8b6d(){const _0x4ae5a7=_0x9eea5b([0x6c,0x6c,0x63,0x74,0x2d])+_0x181bef(_0x14efdf(_0x9aa2ba)),_0x4e54ec=_0x33dd14(_0x181bef(window[_0x9eea5b([0x4d,0x61,0x74,0x68])][_0x9eea5b([0x63,0x65,0x69,0x6c])](_0x31d089/_0x44f428)));window[_0x9eea5b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9eea5b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ae5a7,_0x4e54ec);}function _0x218607(){const _0xc0c80=_0x9eea5b([0x6c,0x6c,0x63,0x74,0x2d])+_0x181bef(_0x14efdf(_0x9aa2ba)),_0x474170=window[_0x9eea5b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9eea5b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc0c80);return _0x474170?window[_0x9eea5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33dd14(_0x474170),0x10)*_0x44f428:null;}function _0x25150c(_0x1465c1){return new window[(_0x9eea5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56313f,_0x3d4a1d)=>{_0x1465c1[_0x9eea5b([0x74,0x68,0x65,0x6e])](_0x56313f,_0x3d4a1d),window[_0x9eea5b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d4a1d,0x3d9041f^_0x45391a);});}}_0x315cf7[_0x9eea5b([0x6f,0x6e])](_0x9eea5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x49066a,_0x57768b)=>{if(_0x57768b[0x0]!=_0x9aa2ba)return _0x5238a4(_0x9eea5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x57768b[0x1]={..._0x57768b[0x1],[_0x9eea5b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x41ebba};},{[_0x9eea5b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9eea5b([0x68,0x69,0x67,0x68])}),_0x315cf7[_0x9eea5b([0x6f,0x6e])](_0x9eea5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x553900=>{_0x2391ab(_0x553900[_0x9eea5b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2fa6ea=!0x0,_0x2a813a(_0x553900[_0x9eea5b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x9eea5b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9eea5b([0x6c,0x6f,0x77])}),_0x388bb5[_0x9eea5b([0x74,0x68,0x65,0x6e])](()=>{_0x2fa6ea||_0x5238a4(_0x9eea5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x52471b(){return _0x315cf7[_0x9eea5b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9eea5b([0x76,0x69,0x65,0x77])][_0x9eea5b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x9eea5b([0x61,0x75,0x74,0x6f]);}function _0x55d93e(){_0x315cf7[_0x9eea5b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9eea5b([0x76,0x69,0x65,0x77])][_0x9eea5b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9eea5b([0x61,0x75,0x74,0x6f]);}}function _0x242597(_0x24392d){const _0x577e45=[new window[(_0x9eea5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ef0c5=>setTimeout(_0x5ef0c5,0x3d1ee13^_0x45391a)),_0x388bb5[_0x9eea5b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x9eea5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7820f8=>{let _0x38264d=0x0;_0x315cf7[_0x9eea5b([0x6d,0x6f,0x64,0x65,0x6c])][_0x9eea5b([0x6f,0x6e])](_0x9eea5b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1f0100,_0x557173)=>{_0x557173[0x0][_0x9eea5b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38264d++,_0x38264d==(0x3d8d127^_0x45391a)&&(_0x7820f8(),_0x1f0100[_0x9eea5b([0x6f,0x66,0x66])]());});}))];return window[_0x9eea5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9eea5b([0x72,0x61,0x63,0x65])](_0x577e45)[_0x9eea5b([0x74,0x68,0x65,0x6e])](()=>_0x24392d);}async function _0x305f8a(){await _0x388bb5,_0x315cf7[_0x9eea5b([0x6d,0x6f,0x64,0x65,0x6c])][_0x9eea5b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x124915,_0x315cf7[_0x9eea5b([0x6d,0x6f,0x64,0x65,0x6c])][_0x9eea5b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x124915,_0x315cf7[_0x9eea5b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x9eea5b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4d3810(_0x531d6a){const _0x663e12=_0x414530();_0x315cf7[_0x663e12]=_0x9eea5b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x531d6a,_0x531d6a!=_0x9eea5b([0x56,0x61,0x6c,0x69,0x64])&&_0x305f8a();}function _0x414530(){const _0x4f30c4=window[_0x9eea5b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x9eea5b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x9eea5b([0x6e,0x6f,0x77])]())[_0x9eea5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x9eea5b([0x2e]),'');let _0x33d9de=_0x9eea5b([0x52]);for(let _0x3d2825=0x0;_0x3d2825<_0x4f30c4[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d2825+=0x2){let _0x491f7d=window[_0x9eea5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f30c4[_0x9eea5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d2825,_0x3d2825+0x2));_0x491f7d>=_0x14eefa[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x491f7d-=_0x14eefa[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x33d9de+=_0x14eefa[_0x491f7d];}return _0x33d9de;}function _0x10c172(){const _0x5c81d4=_0x2af6f4[_0x9eea5b([0x73,0x70,0x6c,0x69,0x74])](_0x9eea5b([0x2e]));if(0x3!=_0x5c81d4[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3980ef(_0x5c81d4[0x1]);function _0x3980ef(_0x10d12b){const _0x58ca75=_0x1f321b(_0x10d12b);return _0x58ca75&&_0x56eab5()?_0x58ca75:null;function _0x56eab5(){const _0x1ccfdc=_0x58ca75[_0x9eea5b([0x6a,0x74,0x69])],_0x22cb4b=window[_0x9eea5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ccfdc[_0x9eea5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ccfdc[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ae304={..._0x58ca75,[_0x9eea5b([0x6a,0x74,0x69])]:_0x1ccfdc[_0x9eea5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ccfdc[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ae304[_0x9eea5b([0x76,0x63])],_0x14efdf(_0x2ae304)==_0x22cb4b;}}}async function _0x537000(){let _0x58acf3=!0x0;try{const _0xa7150e=_0x2af6f4[_0x9eea5b([0x73,0x70,0x6c,0x69,0x74])](_0x9eea5b([0x2e])),[_0xae26b4,_0x26ade4,_0x19b5db]=_0xa7150e;return _0x1ee9ce(_0xae26b4),await _0x57c97b(_0xae26b4,_0x26ade4,_0x19b5db),_0x58acf3;}catch{return!0x1;}function _0x1ee9ce(_0x16e31a){const _0x3d6212=_0x1f321b(_0x16e31a);_0x3d6212&&_0x3d6212[_0x9eea5b([0x61,0x6c,0x67])]==_0x9eea5b([0x45,0x53,0x32,0x35,0x36])||(_0x58acf3=!0x1);}async function _0x57c97b(_0x24f720,_0x583a57,_0x10e751){const _0x4a2e63=window[_0x9eea5b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x9eea5b([0x66,0x72,0x6f,0x6d])](_0x1f2152(_0x10e751),_0x21f891=>_0x21f891[_0x9eea5b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x118b8a=new window[(_0x9eea5b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x9eea5b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24f720+_0x9eea5b([0x2e])+_0x583a57),_0x46e2ef=window[_0x9eea5b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x9eea5b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x46e2ef)return;const _0x1fdebc=await _0x46e2ef[_0x9eea5b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x9eea5b([0x6a,0x77,0x6b]),_0x208881,{[_0x9eea5b([0x6e,0x61,0x6d,0x65])]:_0x9eea5b([0x45,0x43,0x44,0x53,0x41]),[_0x9eea5b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x9eea5b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x9eea5b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x46e2ef[_0x9eea5b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x9eea5b([0x6e,0x61,0x6d,0x65])]:_0x9eea5b([0x45,0x43,0x44,0x53,0x41]),[_0x9eea5b([0x68,0x61,0x73,0x68])]:{[_0x9eea5b([0x6e,0x61,0x6d,0x65])]:_0x9eea5b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1fdebc,_0x4a2e63,_0x118b8a)||(_0x58acf3=!0x1);}}function _0x1f321b(_0x562cff){return _0x562cff[_0x9eea5b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x9eea5b([0x65,0x79]))?JSON[_0x9eea5b([0x70,0x61,0x72,0x73,0x65])](_0x1f2152(_0x562cff)):null;}function _0x1f2152(_0x50bcc6){return window[_0x9eea5b([0x61,0x74,0x6f,0x62])](_0x50bcc6[_0x9eea5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x9eea5b([0x2b]))[_0x9eea5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x9eea5b([0x2f])));}function _0x14efdf(_0x50a859){let _0x1dc34e=0x1505;function _0x2403b0(_0x2e7ad1){for(let _0x187366=0x0;_0x187366<_0x2e7ad1[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x187366++){const _0x27e53c=_0x2e7ad1[_0x9eea5b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x187366);_0x1dc34e=(_0x1dc34e<<0x5)+_0x1dc34e+_0x27e53c,_0x1dc34e&=_0x1dc34e;}}function _0x4a6b33(_0x109d49){Array[_0x9eea5b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x109d49)?_0x109d49[_0x9eea5b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4a6b33):_0x109d49&&typeof _0x109d49==_0x9eea5b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x9eea5b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x109d49)[_0x9eea5b([0x73,0x6f,0x72,0x74])]()[_0x9eea5b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4f864b,_0x1413aa])=>{_0x2403b0(_0x4f864b),_0x4a6b33(_0x1413aa);}):_0x2403b0(window[_0x9eea5b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x109d49));}return _0x4a6b33(_0x50a859),_0x1dc34e>>>0x0;}function _0x181bef(_0xebb983){return _0xebb983[_0x9eea5b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x9eea5b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x9eea5b([0x30]));}function _0x33dd14(_0x59044a){return _0x59044a[_0x9eea5b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x9eea5b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x9eea5b([0x6a,0x6f,0x69,0x6e])]('');}function _0x124915(){}function _0x9eea5b(_0x26ce2f){const _0x5778e1=_0x4329;return _0x26ce2f[_0x5778e1(0x1ce)](_0x51fbe7=>String[_0x5778e1(0x191)](_0x51fbe7))[_0x5778e1(0x1d2)]('');}_0x4d3810(await _0x1e925f());}(this);}[_0x266ee0(0x1ae)](){const _0x46b317=_0x266ee0,_0x545dca=this[_0x46b317(0x198)][_0x46b317(0x19b)][_0x46b317(0x1a3)];_0x545dca[_0x46b317(0x1c3)](_0x46b317(0x1c9))&&_0x545dca[_0x46b317(0x185)](_0x46b317(0x1c9),{'allowAttributes':[_0x46b317(0x1aa)]}),_0x545dca[_0x46b317(0x1c3)](_0x46b317(0x18a))&&_0x545dca[_0x46b317(0x185)](_0x46b317(0x18a),{'allowAttributes':[_0x46b317(0x1aa)]});}[_0x266ee0(0x18d)](){const _0x59730e=_0x266ee0,_0x5cf149=this[_0x59730e(0x198)];_0x5cf149[_0x59730e(0x1b5)][_0x59730e(0x197)](_0x59730e(0x1b0))[_0x59730e(0x1b1)]({'model':_0x59730e(0x1aa),'view':_0x59730e(0x192)}),_0x5cf149[_0x59730e(0x1b5)][_0x59730e(0x197)](_0x59730e(0x19e))[_0x59730e(0x18f)]({'model':{'key':_0x59730e(0x1aa),'value':_0x678e93=>_0x678e93[_0x59730e(0x1b3)](_0x59730e(0x192))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5afadf=_0x5cf149[_0x59730e(0x1d4)][_0x59730e(0x1d0)](_0x59730e(0x1ba));_0x5afadf&&this[_0x59730e(0x1d3)](_0x5afadf,_0x59730e(0x18c),(_0x1e99a2,[_0x598ca7,_0x27be38])=>{const _0xff53fb=_0x59730e;_0x598ca7[_0xff53fb(0x1ca)](_0xff53fb(0x1aa),_0x27be38);});}[_0x266ee0(0x1cd)](){const _0x535326=_0x266ee0,_0x28e23c=this[_0x535326(0x198)][_0x535326(0x1c6)][_0x535326(0x1d0)](_0x535326(0x1bb))||{},_0x5a3c56=this[_0x535326(0x198)][_0x535326(0x1c6)][_0x535326(0x1d0)](_0x535326(0x1d9))||'';this[_0x535326(0x1a9)]=_0x4580e8(_0x333496[_0x535326(0x1cb)],_0x535326(0x1b9),{..._0x28e23c,'pubkey':_0x5a3c56,'ctx-name':_0x535326(0x188)+this[_0x535326(0x1c8)],'sourceList':'','imgOnly':_0x535326(0x1af),'removeCopyright':_0x535326(0x1af),'localeName':this[_0x535326(0x198)][_0x535326(0x199)][_0x535326(0x196)],'externalSourcesEmbedCss':_0x535326(0x19a)}),this[_0x535326(0x1a9)][_0x535326(0x1d7)]=_0x2aa38d=>{const _0x10dcb7=_0x535326;if(_0x10dcb7(0x1a7)==_0x2aa38d)return _0x10dcb7(0x1c4);},_0x333496[_0x535326(0x1cb)][_0x535326(0x19c)][_0x535326(0x1b8)](this[_0x535326(0x1a9)]);}[_0x266ee0(0x1ac)](){const _0x11f54e=_0x266ee0;this[_0x11f54e(0x1bf)]=_0x4580e8(_0x333496[_0x11f54e(0x1cb)],_0x11f54e(0x1b4),{'ctx-name':_0x11f54e(0x188)+this[_0x11f54e(0x1c8)]}),_0x333496[_0x11f54e(0x1cb)][_0x11f54e(0x19c)][_0x11f54e(0x1b8)](this[_0x11f54e(0x1bf)]);}[_0x266ee0(0x1a5)](){const _0x3f1318=_0x266ee0,_0x448563=this[_0x3f1318(0x198)][_0x3f1318(0x1d4)][_0x3f1318(0x1d0)](_0x3f1318(0x195));_0x448563&&this[_0x3f1318(0x1d3)](_0x448563,_0x3f1318(0x1b7),()=>{const _0x1021eb=_0x3f1318,_0x252b4b=this[_0x1021eb(0x198)][_0x1021eb(0x19b)][_0x1021eb(0x1cb)][_0x1021eb(0x1c0)][_0x1021eb(0x1a6)]();_0x252b4b&&_0x252b4b[_0x1021eb(0x1b3)](_0x1021eb(0x1aa))&&this[_0x1021eb(0x198)][_0x1021eb(0x1ad)][_0x1021eb(0x1cf)][_0x1021eb(0x1d5)](_0x1021eb(0x189),()=>{const _0x339d17=_0x1021eb;_0x4677bf(this[_0x339d17(0x198)],_0x252b4b);});});const _0x2b7bdf=this[_0x3f1318(0x198)][_0x3f1318(0x1d4)][_0x3f1318(0x1d0)](_0x3f1318(0x1a2));_0x2b7bdf&&this[_0x3f1318(0x1d3)](_0x2b7bdf,_0x3f1318(0x1b7),()=>{const _0x10f818=_0x3f1318,_0x42e2a6=this[_0x10f818(0x198)][_0x10f818(0x19b)][_0x10f818(0x1cb)][_0x10f818(0x1c0)][_0x10f818(0x1a6)]();_0x42e2a6&&_0x42e2a6[_0x10f818(0x1b3)](_0x10f818(0x1aa))&&this[_0x10f818(0x198)][_0x10f818(0x1ad)][_0x10f818(0x1cf)][_0x10f818(0x1d5)](_0x10f818(0x189),()=>{const _0x1bfbcc=_0x10f818;_0x4677bf(this[_0x1bfbcc(0x198)],_0x42e2a6);});});}}
|