@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250615.0 → 0.0.0-nightly-20250616.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 _0x22599c,Command as _0x9a602d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x270a1a,IconGooglePhotos as _0x460d83,IconGoogleDrive as _0xabdc76,IconFacebook as _0xa771b3,IconDropbox as _0x55a602,IconUploadcareLink as _0x21725b,IconUploadcareImageUpload as _0x312e22,IconError as _0x25d758,IconUploadcareImageEdit as _0x12a505}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1e52fd,MenuBarMenuListItemButtonView as _0x31d451,View as _0x5a89c8,FocusCycler as _0x508a30,Dialog as _0x222a52,DialogViewPosition as _0x5ac068,SpinnerView as _0x365e5a,IconView as _0xe361fc,Notification as _0x4ad192}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1bd8e3,DomEmitterMixin as _0x4b390e,global as _0x40cabf,getAncestors as _0x398d75,ObservableMixin as _0x58e818,createElement as _0x4111db,uid as _0x1c4547}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3816f0}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x481806,info as _0x42cdbd}from'@uploadcare/upload-client';import*as _0x1fffdd from'@uploadcare/file-uploader';var i=function(_0x2438ae){return _0x2438ae['Local']='local',_0x2438ae['URL']='url',_0x2438ae['Dropbox']='dropbox',_0x2438ae['GDrive']='gdrive',_0x2438ae['Facebook']='facebook',_0x2438ae['GPhotos']='gphotos',_0x2438ae['OneDrive']='onedrive',_0x2438ae;}({});function _(_0x2d8cfc,_0x50cb47,_0x445177){const t=_0x2d8cfc['t'],_0x1b3b0c=_0x2d8cfc['t'];switch(_0x50cb47){case i['Local']:return{'text':_0x1b3b0c('Insert'===_0x445177?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1b3b0c('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x445177?_0x1b3b0c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1b3b0c('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x445177?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x445177?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x445177?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x445177?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x445177?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x50cb47;}}class e extends _0x22599c{['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 _0x18b482=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b6fa8;for(const _0x387b59 in _0x18b482){const _0x5dc304=_0x387b59,_0x5e2320=_0x18b482[_0x5dc304];if('uploadcareLicenseKeyValid'==_0x5e2320||'uploadcareLicenseKeyInvalid'==_0x5e2320||'uploadcareLicenseKeyExpired'==_0x5e2320||'uploadcareLicenseKeyDomainLimit'==_0x5e2320||'uploadcareLicenseKeyNotAllowed'==_0x5e2320||'uploadcareLicenseKeyEvaluationLimit'==_0x5e2320||'uploadcareLicenseKeyTrialLimit'==_0x5e2320||'uploadcareLicenseKeyUsageLimit'==_0x5e2320){delete _0x18b482[_0x5dc304],_0x2b6fa8=_0x5e2320,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2b6fa8&&_0x18b482['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2b6fa8&&_0x18b482['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2b6fa8&&_0x18b482['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2b6fa8&&_0x18b482['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2b6fa8&&_0x18b482['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2b6fa8&&_0x18b482['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2b6fa8&&_0x18b482['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x7e1a1d}=this,_0x4b6cc1=_0x7e1a1d['commands']['get']('uploadcare');if(!_0x4b6cc1)return;const _0x2e5bf3=this['_normalizeConfigSourceList'](_0x7e1a1d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x553f5f,_0x2cd430)=>{const _0x2f61eb=this['_getIntegrationKey'](_0x2cd430['type']);return _0x553f5f[_0x2f61eb]||(_0x553f5f[_0x2f61eb]=[]),_0x553f5f[_0x2f61eb]['push'](_0x2cd430),_0x553f5f;},{});_0x7e1a1d['plugins']['has']('ImageInsertUI')&&_0x7e1a1d['commands']['get']('uploadcare')&&Object['entries'](_0x2e5bf3)['forEach'](([_0x18b492,_0x708e66])=>{_0x7e1a1d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x18b492,'observable':()=>_0x4b6cc1,'buttonViewCreator':()=>this['_createToolbarButton'](_0x708e66),'formViewCreator':()=>this['_createDropdownButtons'](_0x708e66),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x708e66),'override':'assetManager'!==_0x18b492});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4224a2){const {locale:_0x39fde6}=this['editor'];return _0x4224a2['map'](_0x5a9242=>{const _0x1b3100=_(_0x39fde6,_0x5a9242,'Insert');switch(_0x5a9242){case i['Local']:return{'icon':_0x312e22,'type':i['Local'],..._0x1b3100};case i['URL']:return{'icon':_0x21725b,'type':i['URL'],..._0x1b3100};case i['Dropbox']:return{'icon':_0x55a602,'type':i['Dropbox'],..._0x1b3100};case i['Facebook']:return{'icon':_0xa771b3,'type':i['Facebook'],..._0x1b3100};case i['GDrive']:return{'icon':_0xabdc76,'type':i['GDrive'],..._0x1b3100};case i['GPhotos']:return{'icon':_0x460d83,'type':i['GPhotos'],..._0x1b3100};case i['OneDrive']:return{'icon':_0x270a1a,'type':i['OneDrive'],..._0x1b3100};}});}['_getIntegrationKey'](_0x1a1da0){switch(_0x1a1da0){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x508858,_0x4f57f7){const _0x3768f2=this['editor'],_0x162aba=new _0x508858(_0x3768f2['locale']),_0x200355=_0x3768f2['commands']['get']('uploadcare');return _0x162aba['bind']('isEnabled')['to'](_0x200355),_0x162aba['on']('execute',()=>{_0x200355['execute'](_0x4f57f7);}),_0x162aba;}['_createToolbarButton'](_0x39cc1c){const {locale:_0x3c1840}=this['editor'],_0x2e1a43=this['editor']['plugins']['get']('ImageInsertUI'),_0x3db63a=_0x39cc1c[0x0],_0x3c54ca=this['_createButton'](_0x1e52fd,_0x3db63a['type']);return _0x3c54ca['icon']=_0x3db63a['icon'],_0x3c54ca['bind']('label')['to'](_0x2e1a43,'isImageSelected',_0x261b9b=>_(_0x3c1840,_0x3db63a['type'],_0x261b9b?'Replace':'Insert')['text']),_0x3c54ca['tooltip']=!0x0,_0x3c54ca;}['_createDropdownButtons'](_0x4489dc){const {locale:_0x4d4dd4}=this['editor'],_0x3e5ffe=this['editor']['plugins']['get']('ImageInsertUI');return _0x4489dc['map'](_0x5b44c0=>{const _0x320491=this['_createButton'](_0x1e52fd,_0x5b44c0['type']);return _0x320491['withText']=!0x0,_0x320491['icon']=_0x5b44c0['icon'],_0x320491['bind']('label')['to'](_0x3e5ffe,'isImageSelected',_0x30cc21=>_(_0x4d4dd4,_0x5b44c0['type'],_0x30cc21?'Replace':'Insert')['text']),_0x320491;});}['_createMenuBarButtons'](_0x278bd0){return _0x278bd0['map'](_0xb53c3=>{const _0x3967b4=this['_createButton'](_0x31d451,_0xb53c3['type']);return _0x3967b4['icon']=_0xb53c3['icon'],_0x3967b4['label']=_0xb53c3['shortText'],_0x3967b4;});}}class F extends _0x5a89c8{['focusTracker'];['focusCycler'];constructor(_0x1222fd){super(_0x1222fd),this['focusTracker']=new _0x1bd8e3(),this['focusCycler']=new _0x508a30({'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(_0x1df680){super(_0x1df680),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x57e799,_0x54f905){const _0x52c2f3=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x11aaf5=>_0x11aaf5<=_0x54f905)['map'](_0x197c8b=>_0x57e799['replace'](/\/$/,'')+'/-/resize/'+_0x197c8b+'x/\x20'+_0x197c8b+'w');return{'imageFallbackUrl':_0x57e799,'imageSources':[{'srcset':_0x52c2f3['join'](',\x20'),'sizes':'(max-width:\x20'+_0x54f905+'px)\x20100vw,\x20'+_0x54f905+'px','type':'image/webp'}]};}function C(_0x29c1e5,_0x1151ce,_0xa5269e){const _0x16a336=_0x29c1e5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x16a336?parseInt(_0x16a336[0x1],0xa):_0x1151ce,'height':_0x16a336?parseInt(_0x16a336[0x2],0xa):_0xa5269e};}function p(_0x285fa0,_0x3194a3){const _0xdd6338=new(_0x4b390e())(),_0x41f2ef=_0x285fa0['plugins']['get']('ImageUtils'),_0x58de68=_0x285fa0['editing']['mapper']['toViewElement'](_0x3194a3),_0x1caf1d=_0x41f2ef['findViewImgElement'](_0x58de68),_0x36386f=_0x285fa0['editing']['view']['domConverter']['viewToDom'](_0x1caf1d),_0x215593=_0x3194a3['getAttribute']('width'),_0x2b5a2c=_0x3194a3['getAttribute']('height'),_0x33a74d='image-processing';_0x285fa0['editing']['view']['change'](_0xed9f2f=>{_0xed9f2f['addClass'](_0x33a74d,_0x58de68),_0xed9f2f['setStyle']('aspect-ratio',_0x215593+'/'+_0x2b5a2c,_0x1caf1d);}),_0xdd6338['listenTo'](_0x36386f,'load',()=>{_0xdd6338['stopListening'](_0x36386f,'load'),_0x285fa0['editing']['view']['change'](_0x34cf68=>{_0x34cf68['removeClass'](_0x33a74d,_0x58de68),_0x34cf68['removeStyle']('aspect-ratio',_0x1caf1d);});});}function G(_0x4bb615){if(Array['isArray'](_0x4bb615)){const _0x51dd23=_0x4bb615['map'](G);return _0xdb5726=>_0x51dd23['some'](_0x100b81=>_0x100b81(_0xdb5726));}if('origin'==_0x4bb615){const _0x1a7289=_0x40cabf['window']['location']['origin'];return _0x15660e=>new URL(_0x15660e,_0x40cabf['document']['baseURI'])['origin']==_0x1a7289;}return'function'==typeof _0x4bb615?_0x4bb615:_0x4bb615 instanceof RegExp?_0x135c95=>!(!_0x135c95['match'](_0x4bb615)&&!_0x135c95['replace'](/^https?:\/\//,'')['match'](_0x4bb615)):()=>!0x1;}function S(_0xb71662,_0x502b94){return _0x398d75(_0xb71662['target'])['includes'](_0x502b94);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x58e818(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x240230,_0x1abf0c,_0x413932){super(),this['_editor']=_0x240230,this['_editing']=_0x1abf0c,this['_dialog']=_0x240230['plugins']['get'](_0x222a52),this['_api']=_0x1abf0c['ctxElement']['getAPI'](),this['_type']=_0x413932,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:_0x254918,model:_0x1db1d6}=this['_editor'],_0x135b5c=_0x1db1d6['document']['selection']['getSelectedElement'](),_0x27a168=_0x135b5c&&(_0x135b5c['is']('element','imageBlock')||_0x135b5c['is']('element','imageInline'));this['_formView']=new x(_0x254918),this['_dialog']['show']({'id':'uploadCare','icon':_0x312e22,'title':_(_0x254918,this['_type'],_0x27a168?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5ac068['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x57c081=>!S(_0x57c081,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xcf337}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5d8daf=>{const _0x5e527e=_0xcf337['length'];for(const _0x2d3d32 of _0xcf337){const _0x4233dc=_0x2d3d32===_0xcf337[_0x5e527e-0x1],{cdnUrl:_0x3fdcc0,fileInfo:_0x29a767}=_0x2d3d32;if(!_0x3fdcc0||!_0x29a767)continue;const {width:_0x295700,height:_0x103080}=_0x29a767['imageInfo'],_0x5a195e=C(_0x3fdcc0,_0x295700,_0x103080),_0x2c0116=k(_0x3fdcc0,_0x5a195e['width']),_0x414e54={'id':_0x29a767['uuid'],'type':'image','attributes':{'imageDimension':_0x5a195e,..._0x2c0116}};this['_insertAsset'](_0x414e54,_0x4233dc,_0x5d8daf);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x353b2d=>{'idle'===_0x353b2d['detail']['status']&&!_0x353b2d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x25a1a9,_0x29849c,_0x31bfec){const _0x54e89b=this['_editor']['model']['document']['selection'],_0xfccd14=_0x54e89b['getSelectedElement'](),_0x40ce7b=!(!_0xfccd14||!_0xfccd14['is']('element','imageInline'));_0x31bfec['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x25a1a9,_0x40ce7b),_0x29849c||_0x31bfec['setSelection'](_0x54e89b['getLastPosition']());}['_insertImage'](_0x5541b2,_0x360136){const _0x10edc4=this['_editor'],{imageDimension:_0x270dee,imageFallbackUrl:_0x361115,imageSources:_0x14d227}=_0x5541b2['attributes'];_0x10edc4['execute']('insertImage',{'imageType':_0x360136?'imageInline':null,'source':{'uploadcareImageId':_0x5541b2['id'],'src':_0x361115,'sources':_0x14d227,..._0x270dee}});}}class w extends _0x9a602d{['_editing'];['_controller']=null;static get['requires'](){return[_0x222a52,o];}constructor(_0xa276e7){super(_0xa276e7),this['_editing']=_0xa276e7['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xf8061){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xf8061);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x13269b,publicKey:_0x2c4672,signal:_0x20b925,onProgress:_0x28ce5e}){return _0x481806(_0x13269b,{'publicKey':_0x2c4672,'store':'auto','signal':_0x20b925,'onProgress':_0x28ce5e});}static['getInfo'](_0x3f29f1,_0x3a758e){return _0x42cdbd(_0x3f29f1,_0x3a758e);}}class f extends _0x22599c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3816f0,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1d7a31=this['editor'];if(!!!_0x1d7a31['config']['get']('uploadcare'))return;_0x1d7a31['plugins']['get'](_0x3816f0)['createUploadAdapter']=_0x6ba39a=>new A(_0x6ba39a,_0x1d7a31),_0x1d7a31['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1f3fd6,{imageElement:_0xedd5cc,data:_0x40ee92})=>{_0x1d7a31['model']['change'](_0x37d3e3=>{_0x37d3e3['setAttribute']('uploadcareImageId',_0x40ee92['uploadcareImageId'],_0xedd5cc);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x1c4bbc,_0x3cb9c1){this['loader']=_0x1c4bbc,this['editor']=_0x3cb9c1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x34f801=this['editor']['config']['get']('uploadcare.pubkey'),_0x5db061=await this['loader']['file'];return j['upload']({'file':_0x5db061,'publicKey':_0x34f801,'signal':this['controller']['signal'],'onProgress':_0x18bf1c=>{_0x18bf1c&&_0x18bf1c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x18bf1c['value']);}})['then'](async _0x2b6a28=>{const {imageFallbackUrl:_0x211521,imageSources:_0x1ef400}=k(_0x2b6a28['cdnUrl'],_0x2b6a28['imageInfo']['width']);return{'uploadcareImageId':_0x2b6a28['uuid'],'default':_0x211521,'sources':_0x1ef400};})['catch'](()=>{const _0x4ca475=t('Cannot\x20upload\x20file:')+('\x20'+_0x5db061['name']+'.');return Promise['reject'](_0x4ca475);});}['abort'](){this['controller']['abort']();}}class o extends _0x22599c{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x222a52];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x413acb=this['editor'];_0x413acb['commands']['add']('uploadcare',new w(_0x413acb));}['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 _0x134165=_0x40cabf['document']['querySelector']('input[uploadcare-file-input]');_0x134165&&_0x134165['remove']();}),async function(_0x55a9c2){const _0x1ead6e=_0x1e7199([0x56,0x5a,0x50,0x46,0x70,0x45,0x64,0x7a,0x65,0x71,0x4c,0x6d,0x36,0x37,0x74,0x6c,0x54,0x55,0x52,0x57,0x77,0x61,0x33,0x51,0x42,0x69,0x32,0x6b,0x31,0x53,0x68,0x4d,0x6a,0x43,0x79,0x48,0x35,0x47,0x4a,0x34,0x49,0x4e,0x39,0x58,0x4b,0x66,0x72,0x73,0x4f,0x38,0x78,0x41,0x76,0x67,0x75,0x59,0x30,0x63,0x62,0x44,0x6f,0x6e]),_0x5cb9d4=0x676da686,_0x56fb27=0x676acc56^_0x5cb9d4,_0x4824b9=window[_0x1e7199([0x44,0x61,0x74,0x65])][_0x1e7199([0x6e,0x6f,0x77])](),_0x1f8ee1=_0x55a9c2[_0x1e7199([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa04b1=new window[(_0x1e7199([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x283d17=>{_0x1f8ee1[_0x1e7199([0x6f,0x6e,0x63,0x65])](_0x1e7199([0x72,0x65,0x61,0x64,0x79]),_0x283d17);}),_0x204c2c={[_0x1e7199([0x6b,0x74,0x79])]:_0x1e7199([0x45,0x43]),[_0x1e7199([0x75,0x73,0x65])]:_0x1e7199([0x73,0x69,0x67]),[_0x1e7199([0x63,0x72,0x76])]:_0x1e7199([0x50,0x2d,0x32,0x35,0x36]),[_0x1e7199([0x78])]:_0x1e7199([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]),[_0x1e7199([0x79])]:_0x1e7199([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]),[_0x1e7199([0x61,0x6c,0x67])]:_0x1e7199([0x45,0x53,0x32,0x35,0x36])},_0x57bd62=_0x1f8ee1[_0x1e7199([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e7199([0x67,0x65,0x74])](_0x1e7199([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5a72d5(){let _0x3049bc,_0x3144dc=null,_0x585c93=null;try{if(_0x57bd62==_0x1e7199([0x47,0x50,0x4c]))return _0x1e7199([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3049bc=_0x5db312(),!_0x3049bc)return _0x1e7199([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3049bc[_0x1e7199([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x585c93=_0x4c5ab7(_0x3049bc[_0x1e7199([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3049bc[_0x1e7199([0x6a,0x74,0x69])])),await _0x5b9e09()?_0x20da4d()?_0x3c635c()?_0x1e7199([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x71b95()?(_0x3049bc[_0x1e7199([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e7199([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3144dc=_0x43e1cf(_0x1e7199([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3049bc[_0x1e7199([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e7199([0x74,0x72,0x69,0x61,0x6c])&&(_0x3144dc=_0x43e1cf(_0x1e7199([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x35e30c()):_0x1e7199([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e7199([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e7199([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e7199([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3c635c(){const _0x8fa0f3=[_0x1e7199([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e7199([0x74,0x72,0x69,0x61,0x6c])][_0x1e7199([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3049bc[_0x1e7199([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4824b9/0x3e8:0xe10*_0x56fb27;return _0x3049bc[_0x1e7199([0x65,0x78,0x70])]<_0x8fa0f3;}function _0x20da4d(){const _0x4413b6=_0x3049bc[_0x1e7199([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4413b6&&(!!_0x4413b6[_0x1e7199([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e7199([0x2a]))||!!_0x4413b6[_0x1e7199([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e7199([0x55,0x50,0x4c,0x43])));}function _0x71b95(){const _0x365bef=_0x3049bc[_0x1e7199([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x365bef||0x0==_0x365bef[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2368de}=new URL(window[_0x1e7199([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x365bef[_0x1e7199([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2368de))return!0x0;const _0x11deb8=_0x2368de[_0x1e7199([0x73,0x70,0x6c,0x69,0x74])](_0x1e7199([0x2e]));return _0x365bef[_0x1e7199([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x337260=>_0x337260[_0x1e7199([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e7199([0x2a])))[_0x1e7199([0x6d,0x61,0x70])](_0x5b98cb=>_0x5b98cb[_0x1e7199([0x73,0x70,0x6c,0x69,0x74])](_0x1e7199([0x2e])))[_0x1e7199([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26ce16=>_0x26ce16[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x11deb8[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e7199([0x6d,0x61,0x70])](_0x5457f4=>Array(_0x11deb8[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5457f4[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e7199([0x66,0x69,0x6c,0x6c])](_0x5457f4[0x0]===_0x1e7199([0x2a])?_0x1e7199([0x2a]):'')[_0x1e7199([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5457f4))[_0x1e7199([0x73,0x6f,0x6d,0x65])](_0x3b4bef=>_0x11deb8[_0x1e7199([0x65,0x76,0x65,0x72,0x79])]((_0x4bca63,_0x4f3ea6)=>_0x3b4bef[_0x4f3ea6]===_0x4bca63||_0x3b4bef[_0x4f3ea6]===_0x1e7199([0x2a])));}function _0x35e30c(){return _0x3144dc&&_0x585c93?new window[(_0x1e7199([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x384592,_0x16f0be)=>{_0x3144dc[_0x1e7199([0x74,0x68,0x65,0x6e])](_0x384592,_0x16f0be),_0x585c93[_0x1e7199([0x74,0x68,0x65,0x6e])](_0x5d12af=>{_0x5d12af!=_0x1e7199([0x56,0x61,0x6c,0x69,0x64])&&_0x384592(_0x5d12af);},_0x16f0be);}):_0x3144dc||_0x585c93||_0x1e7199([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c5ab7(_0x24f458,_0x1b68e3){return new window[(_0x1e7199([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58914f=>{if(_0x42feb4())return _0x58914f(_0x1e7199([0x56,0x61,0x6c,0x69,0x64]));_0x945235(),_0x1f8ee1[_0x1e7199([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e7199([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x34a0e1=!0x1;const _0x8d181a=_0x1c4547();function _0x791c96(_0x3f84cc){return!!_0x3f84cc&&(typeof _0x3f84cc===_0x1e7199([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3f84cc===_0x1e7199([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3f84cc[_0x1e7199([0x74,0x68,0x65,0x6e])]===_0x1e7199([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3f84cc[_0x1e7199([0x63,0x61,0x74,0x63,0x68])]===_0x1e7199([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2561d1(_0x890aac){_0x3c4661(_0x890aac)[_0x1e7199([0x74,0x68,0x65,0x6e])](_0x3b4215=>{if(!_0x3b4215||_0x3b4215[_0x1e7199([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e7199([0x6f,0x6b]))return _0x1e7199([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x54eb03(_0x3cc736(_0x8d181a+_0x1b68e3))!=_0x3b4215[_0x1e7199([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e7199([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e7199([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e7199([0x74,0x68,0x65,0x6e])](_0x19bba5=>(_0x54eb75(),_0x19bba5),()=>{const _0x31c040=_0x28049a();return null==_0x31c040?(_0x54eb75(),_0x1e7199([0x56,0x61,0x6c,0x69,0x64])):_0x1e7199(_0x4824b9-_0x31c040>(0x43612286^_0x5cb9d4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e7199([0x74,0x68,0x65,0x6e])](_0x58914f)[_0x1e7199([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58914f(_0x1e7199([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x529e1=0x675b4806^_0x5cb9d4;function _0x54eb75(){const _0x10a358=_0x1e7199([0x6c,0x6c,0x63,0x74,0x2d])+_0x54eb03(_0x3cc736(_0x24f458)),_0x210273=_0x1f774a(_0x54eb03(window[_0x1e7199([0x4d,0x61,0x74,0x68])][_0x1e7199([0x63,0x65,0x69,0x6c])](_0x4824b9/_0x529e1)));window[_0x1e7199([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e7199([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10a358,_0x210273);}function _0x28049a(){const _0x57a8fe=_0x1e7199([0x6c,0x6c,0x63,0x74,0x2d])+_0x54eb03(_0x3cc736(_0x24f458)),_0x4042fa=window[_0x1e7199([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e7199([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57a8fe);return _0x4042fa?window[_0x1e7199([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f774a(_0x4042fa),0x10)*_0x529e1:null;}function _0x3c4661(_0x2c9167){return new window[(_0x1e7199([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44b5c9,_0x43c47c)=>{_0x2c9167[_0x1e7199([0x74,0x68,0x65,0x6e])](_0x44b5c9,_0x43c47c),window[_0x1e7199([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x43c47c,0x676c7246^_0x5cb9d4);});}}_0x1f8ee1[_0x1e7199([0x6f,0x6e])](_0x1e7199([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xe01d57,_0x10b58b)=>{if(_0x10b58b[0x0]!=_0x24f458)return _0x58914f(_0x1e7199([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10b58b[0x1]={..._0x10b58b[0x1],[_0x1e7199([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x8d181a};},{[_0x1e7199([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e7199([0x68,0x69,0x67,0x68])}),_0x1f8ee1[_0x1e7199([0x6f,0x6e])](_0x1e7199([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x12873a=>{_0x791c96(_0x12873a[_0x1e7199([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x34a0e1=!0x0,_0x2561d1(_0x12873a[_0x1e7199([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e7199([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e7199([0x6c,0x6f,0x77])}),_0xa04b1[_0x1e7199([0x74,0x68,0x65,0x6e])](()=>{_0x34a0e1||_0x58914f(_0x1e7199([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x42feb4(){return _0x1f8ee1[_0x1e7199([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e7199([0x76,0x69,0x65,0x77])][_0x1e7199([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e7199([0x61,0x75,0x74,0x6f]);}function _0x945235(){_0x1f8ee1[_0x1e7199([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e7199([0x76,0x69,0x65,0x77])][_0x1e7199([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e7199([0x61,0x75,0x74,0x6f]);}}function _0x43e1cf(_0x58bb33){const _0x445ceb=[new window[(_0x1e7199([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30d762=>setTimeout(_0x30d762,0x6764984a^_0x5cb9d4)),_0xa04b1[_0x1e7199([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e7199([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ee8e4=>{let _0x17dac1=0x0;_0x1f8ee1[_0x1e7199([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e7199([0x6f,0x6e])](_0x1e7199([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x460466,_0x33f72b)=>{_0x33f72b[0x0][_0x1e7199([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x17dac1++,_0x17dac1==(0x676da77e^_0x5cb9d4)&&(_0x2ee8e4(),_0x460466[_0x1e7199([0x6f,0x66,0x66])]());});}))];return window[_0x1e7199([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e7199([0x72,0x61,0x63,0x65])](_0x445ceb)[_0x1e7199([0x74,0x68,0x65,0x6e])](()=>_0x58bb33);}async function _0xd1b237(){await _0xa04b1,_0x1f8ee1[_0x1e7199([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e7199([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36346f,_0x1f8ee1[_0x1e7199([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e7199([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36346f,_0x1f8ee1[_0x1e7199([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e7199([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x562a46(_0x589567){const _0x470e86=_0x25a714();_0x1f8ee1[_0x470e86]=_0x1e7199([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x589567,_0x589567!=_0x1e7199([0x56,0x61,0x6c,0x69,0x64])&&_0xd1b237();}function _0x25a714(){const _0x2456b5=window[_0x1e7199([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e7199([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e7199([0x6e,0x6f,0x77])]())[_0x1e7199([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e7199([0x2e]),'');let _0x4630c7=_0x1e7199([0x56]);for(let _0x4fa984=0x0;_0x4fa984<_0x2456b5[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fa984+=0x2){let _0x102e39=window[_0x1e7199([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2456b5[_0x1e7199([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fa984,_0x4fa984+0x2));_0x102e39>=_0x1ead6e[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x102e39-=_0x1ead6e[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4630c7+=_0x1ead6e[_0x102e39];}return _0x4630c7;}function _0x5db312(){const _0x141eb2=_0x57bd62[_0x1e7199([0x73,0x70,0x6c,0x69,0x74])](_0x1e7199([0x2e]));if(0x3!=_0x141eb2[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40494d(_0x141eb2[0x1]);function _0x40494d(_0x2abaf8){const _0x367355=_0x54a0f8(_0x2abaf8);return _0x367355&&_0x6ea3ce()?_0x367355:null;function _0x6ea3ce(){const _0x25eec3=_0x367355[_0x1e7199([0x6a,0x74,0x69])],_0x56bce0=window[_0x1e7199([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25eec3[_0x1e7199([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25eec3[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1cbf57={..._0x367355,[_0x1e7199([0x6a,0x74,0x69])]:_0x25eec3[_0x1e7199([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x25eec3[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1cbf57[_0x1e7199([0x76,0x63])],_0x3cc736(_0x1cbf57)==_0x56bce0;}}}async function _0x5b9e09(){let _0x4ed571=!0x0;try{const _0x471d6b=_0x57bd62[_0x1e7199([0x73,0x70,0x6c,0x69,0x74])](_0x1e7199([0x2e])),[_0x1b0131,_0x284c6c,_0x43f58e]=_0x471d6b;return _0x596566(_0x1b0131),await _0x51f5f1(_0x1b0131,_0x284c6c,_0x43f58e),_0x4ed571;}catch{return!0x1;}function _0x596566(_0x23c140){const _0x27174a=_0x54a0f8(_0x23c140);_0x27174a&&_0x27174a[_0x1e7199([0x61,0x6c,0x67])]==_0x1e7199([0x45,0x53,0x32,0x35,0x36])||(_0x4ed571=!0x1);}async function _0x51f5f1(_0x10d8be,_0x5035cb,_0x307c64){const _0x38c39a=window[_0x1e7199([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e7199([0x66,0x72,0x6f,0x6d])](_0x448d6f(_0x307c64),_0x33245e=>_0x33245e[_0x1e7199([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x29bf65=new window[(_0x1e7199([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e7199([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x10d8be+_0x1e7199([0x2e])+_0x5035cb),_0x33b2a5=window[_0x1e7199([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e7199([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x33b2a5)return;const _0x23190b=await _0x33b2a5[_0x1e7199([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e7199([0x6a,0x77,0x6b]),_0x204c2c,{[_0x1e7199([0x6e,0x61,0x6d,0x65])]:_0x1e7199([0x45,0x43,0x44,0x53,0x41]),[_0x1e7199([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e7199([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e7199([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x33b2a5[_0x1e7199([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e7199([0x6e,0x61,0x6d,0x65])]:_0x1e7199([0x45,0x43,0x44,0x53,0x41]),[_0x1e7199([0x68,0x61,0x73,0x68])]:{[_0x1e7199([0x6e,0x61,0x6d,0x65])]:_0x1e7199([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23190b,_0x38c39a,_0x29bf65)||(_0x4ed571=!0x1);}}function _0x54a0f8(_0xfb31ae){return _0xfb31ae[_0x1e7199([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e7199([0x65,0x79]))?JSON[_0x1e7199([0x70,0x61,0x72,0x73,0x65])](_0x448d6f(_0xfb31ae)):null;}function _0x448d6f(_0x53a010){return window[_0x1e7199([0x61,0x74,0x6f,0x62])](_0x53a010[_0x1e7199([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e7199([0x2b]))[_0x1e7199([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e7199([0x2f])));}function _0x3cc736(_0x25a75e){let _0x3bb685=0x1505;function _0xf55390(_0x210ac2){for(let _0xf2234d=0x0;_0xf2234d<_0x210ac2[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf2234d++){const _0x162035=_0x210ac2[_0x1e7199([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf2234d);_0x3bb685=(_0x3bb685<<0x5)+_0x3bb685+_0x162035,_0x3bb685&=_0x3bb685;}}function _0x3f540b(_0x4d32db){Array[_0x1e7199([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d32db)?_0x4d32db[_0x1e7199([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f540b):_0x4d32db&&typeof _0x4d32db==_0x1e7199([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e7199([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d32db)[_0x1e7199([0x73,0x6f,0x72,0x74])]()[_0x1e7199([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5bb3d9,_0x658213])=>{_0xf55390(_0x5bb3d9),_0x3f540b(_0x658213);}):_0xf55390(window[_0x1e7199([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d32db));}return _0x3f540b(_0x25a75e),_0x3bb685>>>0x0;}function _0x54eb03(_0x286342){return _0x286342[_0x1e7199([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e7199([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e7199([0x30]));}function _0x1f774a(_0x1e39d5){return _0x1e39d5[_0x1e7199([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e7199([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e7199([0x6a,0x6f,0x69,0x6e])]('');}function _0x36346f(){}function _0x1e7199(_0x63bda5){return _0x63bda5['map'](_0x295203=>String['fromCharCode'](_0x295203))['join']('');}_0x562a46(await _0x5a72d5());}(this);}['_initSchema'](){const _0x527fa9=this['editor']['model']['schema'];_0x527fa9['isRegistered']('imageBlock')&&_0x527fa9['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x527fa9['isRegistered']('imageInline')&&_0x527fa9['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x506ded=this['editor'];_0x506ded['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x506ded['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x584650=>_0x584650['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2dce08=_0x506ded['commands']['get']('replaceImageSource');_0x2dce08&&this['listenTo'](_0x2dce08,'cleanupImage',(_0x519232,[_0x2d49d4,_0x3e2e28])=>{_0x2d49d4['removeAttribute']('uploadcareImageId',_0x3e2e28);});}['_initConfig'](){const _0x5f397d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x28c0f0=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4111db(_0x40cabf['document'],'uc-config',{..._0x5f397d,'pubkey':_0x28c0f0,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4c9da6=>{if('closeMax'==_0x4c9da6)return'#uc-icon-arrow-down';},_0x40cabf['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4111db(_0x40cabf['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x40cabf['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2bc7ba=this['editor']['commands']['get']('insertImage');_0x2bc7ba&&this['listenTo'](_0x2bc7ba,'execute',()=>{const _0x117258=this['editor']['model']['document']['selection']['getSelectedElement']();_0x117258&&_0x117258['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x117258);});});const _0x1075ff=this['editor']['commands']['get']('uploadcareImageReplace');_0x1075ff&&this['listenTo'](_0x1075ff,'execute',()=>{const _0x8e3b47=this['editor']['model']['document']['selection']['getSelectedElement']();_0x8e3b47&&_0x8e3b47['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x8e3b47);});});}}class tt extends _0x22599c{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xae6b7e){super(_0xae6b7e),_0xae6b7e['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x1fffdd['defineComponents'](_0x1fffdd);}}class ii extends _0x5a89c8{constructor(_0x4f6e44){super(_0x4f6e44);const t=_0x4f6e44['t'],_0x2f93b9=this['bindTemplate'],_0x4e9983=new _0x365e5a();_0x4e9983['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':[_0x4e9983,{'text':_0x2f93b9['to']('imageUploadProgress',_0x15f1c9=>t('Loading\x20image...')+'\x20('+(_0x15f1c9||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 _0x5a89c8{constructor(_0x4f99b8){super(_0x4f99b8);const t=_0x4f99b8['t'];this['set']('errorType',null);const _0x576015=new _0x1e52fd(_0x4f99b8);_0x576015['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x576015['withText']=!0x0,_0x576015['class']='ck-button-action',_0x576015['on']('execute',()=>{this['fire']('retry');}),_0x576015['bind']('isVisible')['to'](this,'errorType',_0x13c49e=>'NotFound'!==_0x13c49e);const _0x418e6c=new _0xe361fc();_0x418e6c['content']=_0x25d758,_0x418e6c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3c0fb8=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':[_0x418e6c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3c0fb8['to']('errorType',_0x2bc070=>t('NotFound'!==_0x2bc070?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x576015]},{'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 _0x5a89c8{constructor(_0x1c09a5,_0x4968c1){super(_0x1c09a5);const _0x38f27c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4968c1,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x38f27c['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1decaa,_0x351767,_0xbf356b){super(_0x1decaa),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1decaa),this['_errorView']=new ti(_0x1decaa),this['_editingView']=new ei(_0x1decaa,_0xbf356b),this['_focusableView']=new _0x5a89c8(_0x1decaa),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x351767),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'],_0x36d9e6=>{this['_addUploadcareImageEditorListeners'](_0x36d9e6);});}),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'](_0x1998b9,_0x1bbb28){const _0x1c840c='uc-cloud-image-editor',_0x135747=_0x1998b9['querySelector'](_0x1c840c);if(_0x135747)return _0x1bbb28(_0x135747);const _0x2d9464=new MutationObserver(_0x308ad4=>{const _0x407e0e=_0x308ad4['filter'](_0x4167b2=>_0x4167b2['target']===_0x1998b9&&_0x4167b2['addedNodes']['length']>0x0&&_0x4167b2['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1c840c);_0x407e0e['length']&&(_0x2d9464['disconnect'](),_0x1bbb28(_0x407e0e[0x0]['addedNodes'][0x0]));});_0x2d9464['observe'](_0x1998b9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x230b1e){_0x230b1e['addEventListener']('apply',_0x34526c=>{this['fire']('apply',{'imageSrc':_0x34526c['detail']['cdnUrl']});}),_0x230b1e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x58e818(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x27356c,_0x22c43e,_0x80cf0d){super(),this['_editor']=_0x27356c,this['_dialog']=_0x22c43e,this['_imageElement']=_0x80cf0d,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 _0x43da9e=this['_imageElement'],_0x474ab0=_0x43da9e['getAttribute']('uploadcareImageId'),_0x34c40b=_0x43da9e['getAttribute']('src');if(_0x474ab0)await this['_loadImageInfo'](_0x474ab0,_0x34c40b);else{if(this['_imageCache']['has'](_0x34c40b)){const _0x282eb6=this['_imageCache']['get'](_0x34c40b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x282eb6['url'],this['imageDimension']=_0x282eb6['dimension'],this['imageId']=_0x282eb6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2b64b5}=this['_editor'],t=_0x2b64b5['t'],_0x4cf611=new X(_0x2b64b5,this['imageStatus'],this['_attributes']);_0x4cf611['bind']('status')['to'](this,'imageStatus'),_0x4cf611['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4cf611['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4cf611['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4cf611,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x12a505,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4cf611,'position':_0x5ac068['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4cf611['focus']();},'onHide':()=>{_0x4cf611['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x546c88=>!S(_0x546c88,_0x4cf611['element'])}});}['_loadImageInfo'](_0x43382b,_0x698a22){return j['getInfo'](_0x43382b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4516a0=>{const {width:_0x3d8849,height:_0xaf91e1}=_0x4516a0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x698a22,this['imageDimension']={'width':_0x3d8849,'height':_0xaf91e1},this['imageId']=_0x43382b;})['catch'](_0x17afe7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x17afe7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5428ce,_0x1c6527){return this['_getImageAsFile'](_0x5428ce)['then'](_0x1103a5=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1c6527['signal'],'file':_0x1103a5,'onProgress':_0xfcff85=>{_0xfcff85&&_0xfcff85['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xfcff85['value']));}}))['then'](_0x4d34a0=>{const {width:_0x11ef7d,height:_0x4c6e97}=_0x4d34a0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4d34a0['cdnUrl'],this['imageDimension']={'width':_0x11ef7d,'height':_0x4c6e97},this['imageId']=_0x4d34a0['uuid'],this['imageUploadProgress']=null;const _0x443e50=_0x5428ce['getAttribute']('src');this['_imageCache']['set'](_0x443e50,{'id':_0x4d34a0['uuid'],'url':_0x4d34a0['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3b8bab=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3b8bab['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x568b3f,_0x20b8bb){_0x568b3f['on']('apply',(_0x111d2e,_0x3423a7)=>{this['_replaceImage'](_0x20b8bb,_0x3423a7['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x568b3f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x568b3f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xf69f60,_0x1a734c,_0x252594){const _0x49ea5c=this['_editor'],{width:_0x17ecd0,height:_0x39de9a}=C(_0x1a734c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4ec3f1,imageSources:_0x4205cd}=k(_0x1a734c,_0x17ecd0);_0x49ea5c['model']['change'](_0x470b5d=>{if('$graveyard'===_0xf69f60['root']['rootName']){_0x49ea5c['execute']('insertImage',{'imageType':_0xf69f60['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xf69f60['getAttributes']()),'uploadcareImageId':_0x252594,'src':_0x4ec3f1,'sources':_0x4205cd,'width':_0x17ecd0,'height':_0x39de9a}});const _0x23bfd9=_0xf69f60['getChildren']();_0xf69f60=_0x49ea5c['model']['document']['selection']['getSelectedElement']();for(const _0x23fae2 of _0x23bfd9)_0x470b5d['append'](_0x470b5d['cloneElement'](_0x23fae2),_0xf69f60);}else _0x470b5d['setSelection'](_0xf69f60,'on'),_0x49ea5c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xf69f60['getAttributes']()),'uploadcareImageId':_0x252594,'src':_0x4ec3f1,'sources':_0x4205cd,'width':_0x17ecd0,'height':_0x39de9a},_0xf69f60);_0x470b5d['setSelection'](_0xf69f60,'on');});}async['_getImageAsFile'](_0x359926){const _0xb182d8=_0x40cabf['window'],_0x1c8970=_0x40cabf['document']['location']['href'],_0x59d375=new _0xb182d8['URL'](_0x359926['getAttribute']('src'),_0x1c8970);if('data:'===_0x59d375['protocol']){const _0x19a096=_0x59d375['href']['split'](','),_0x5646ed=_0x19a096[0x0]['match'](/:(.*?);/)[0x1],_0x3b2150=_0x5646ed['split']('/')[0x1],_0x17d6c0=_0xb182d8['atob'](_0x19a096[_0x19a096['length']-0x1]);let _0xa94078=_0x17d6c0['length'];const _0x312a81=new _0xb182d8['Uint8Array'](_0xa94078);for(;_0xa94078--;)_0x312a81[_0xa94078]=_0x17d6c0['charCodeAt'](_0xa94078);return new _0xb182d8['File']([_0x312a81],'image.'+_0x3b2150,{'type':_0x5646ed});}const _0x4e69e8=_0x59d375['href']['split']('/'),_0x3d69e5=_0x4e69e8[_0x4e69e8['length']-0x1],_0x4e730b=_0x3d69e5['split']('.')[0x1];return _0xb182d8['fetch'](_0x59d375['href'])['then'](_0x203cbb=>_0x203cbb['clone']()['blob']())['then'](_0x1848ff=>new _0xb182d8['File']([_0x1848ff],_0x3d69e5,{'type':'image/'+_0x4e730b}));}}class O extends _0x9a602d{['imageEditController'];static get['requires'](){return[_0x222a52];}['_isEditable'];constructor(_0x5cf26a){super(_0x5cf26a),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xef4c0){const _0x4bc419=G(_0xef4c0);return _0xbb1118=>!(!_0xbb1118||!_0xbb1118['is']('element','imageBlock')&&!_0xbb1118['is']('element','imageInline'))&&(!!_0xbb1118['hasAttribute']('uploadcareImageId')||!!_0xbb1118['hasAttribute']('src')&&_0x4bc419(_0xbb1118['getAttribute']('src')));}(_0x5cf26a['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x157ea1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x157ea1);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5c2044=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5c2044&&(_0x5c2044['is']('element','imageBlock')||_0x5c2044['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x222a52),_0x5c2044),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x9a602d{['refresh'](){const _0x556847=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x556847&&(_0x556847['is']('element','imageBlock')||_0x556847['is']('element','imageInline')));}['execute'](_0xdbb9f3){const _0xf0e092=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4c8239=>{_0x4c8239['setAttributes'](_0xdbb9f3,_0xf0e092),_0x4c8239['removeAttribute']('srcset',_0xf0e092),_0x4c8239['removeAttribute']('sizes',_0xf0e092);});}}class m extends _0x22599c{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4ad192,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4a658}=this;_0x4a658['commands']['add']('uploadcareImageEdit',new O(_0x4a658)),_0x4a658['commands']['add']('uploadcareImageReplace',new R(_0x4a658));}}class g extends _0x22599c{['_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 _0x52db22=this['editor'];_0x52db22['ui']['componentFactory']['add']('uploadcareImageEdit',_0x39672b=>{const _0x58ed18=_0x52db22['commands']['get']('uploadcareImageEdit'),_0x3047de=new _0x1e52fd(_0x39672b),t=_0x39672b['t'];return _0x3047de['set']({'icon':_0x12a505,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3047de['bind']('isEnabled')['to'](_0x58ed18),_0x3047de['bind']('isOn')['to'](_0x58ed18,'isActive'),this['listenTo'](_0x3047de,'execute',()=>{_0x52db22['execute']('uploadcareImageEdit'),_0x52db22['editing']['view']['focus']();}),_0x3047de;}),this['_initConfig']();}['_initConfig'](){const _0x30ab8b=_0x4111db(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x30ab8b),this['listenTo'](this['editor'],'destroy',()=>{_0x30ab8b['remove']();});}}class et extends _0x22599c{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x4a984b,Command as _0x36d961}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x7caaf5,IconGooglePhotos as _0x38e42,IconGoogleDrive as _0x60fcbd,IconFacebook as _0x14bef6,IconDropbox as _0x4e41bb,IconUploadcareLink as _0x483d77,IconUploadcareImageUpload as _0xf280e8,IconError as _0x4cfd49,IconUploadcareImageEdit as _0xcc08}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4a1729,MenuBarMenuListItemButtonView as _0x3bcc21,View as _0x429902,FocusCycler as _0x73b108,Dialog as _0x2269f1,DialogViewPosition as _0x466743,SpinnerView as _0x2d73c2,IconView as _0x115457,Notification as _0x50d031}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x419141,DomEmitterMixin as _0x1ad474,global as _0x1769cf,getAncestors as _0x48bda9,ObservableMixin as _0xe99d8f,createElement as _0x949c90,uid as _0x4b6330}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x44bcdd}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xc2d213,info as _0x100881}from'@uploadcare/upload-client';import*as _0x3e6419 from'@uploadcare/file-uploader';var i=function(_0x24b105){return _0x24b105['Local']='local',_0x24b105['URL']='url',_0x24b105['Dropbox']='dropbox',_0x24b105['GDrive']='gdrive',_0x24b105['Facebook']='facebook',_0x24b105['GPhotos']='gphotos',_0x24b105['OneDrive']='onedrive',_0x24b105;}({});function _(_0x53ec2e,_0x4153b1,_0x46158b){const t=_0x53ec2e['t'],_0x1dfe7e=_0x53ec2e['t'];switch(_0x4153b1){case i['Local']:return{'text':_0x1dfe7e('Insert'===_0x46158b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1dfe7e('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x46158b?_0x1dfe7e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1dfe7e('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x46158b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x46158b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x46158b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x46158b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x46158b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4153b1;}}class e extends _0x4a984b{['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 _0x1ac49b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5d325e;for(const _0x2e595e in _0x1ac49b){const _0x97bfdf=_0x2e595e,_0x259e53=_0x1ac49b[_0x97bfdf];if('uploadcareLicenseKeyValid'==_0x259e53||'uploadcareLicenseKeyInvalid'==_0x259e53||'uploadcareLicenseKeyExpired'==_0x259e53||'uploadcareLicenseKeyDomainLimit'==_0x259e53||'uploadcareLicenseKeyNotAllowed'==_0x259e53||'uploadcareLicenseKeyEvaluationLimit'==_0x259e53||'uploadcareLicenseKeyTrialLimit'==_0x259e53||'uploadcareLicenseKeyUsageLimit'==_0x259e53){delete _0x1ac49b[_0x97bfdf],_0x5d325e=_0x259e53,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5d325e&&_0x1ac49b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5d325e&&_0x1ac49b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5d325e&&_0x1ac49b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5d325e&&_0x1ac49b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5d325e&&_0x1ac49b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5d325e&&_0x1ac49b['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5d325e&&_0x1ac49b['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3511d7}=this,_0x24246d=_0x3511d7['commands']['get']('uploadcare');if(!_0x24246d)return;const _0x1cabf8=this['_normalizeConfigSourceList'](_0x3511d7['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x194f30,_0x38f6f3)=>{const _0x24c8eb=this['_getIntegrationKey'](_0x38f6f3['type']);return _0x194f30[_0x24c8eb]||(_0x194f30[_0x24c8eb]=[]),_0x194f30[_0x24c8eb]['push'](_0x38f6f3),_0x194f30;},{});_0x3511d7['plugins']['has']('ImageInsertUI')&&_0x3511d7['commands']['get']('uploadcare')&&Object['entries'](_0x1cabf8)['forEach'](([_0x2ca9ce,_0x2e3134])=>{_0x3511d7['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2ca9ce,'observable':()=>_0x24246d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2e3134),'formViewCreator':()=>this['_createDropdownButtons'](_0x2e3134),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2e3134),'override':'assetManager'!==_0x2ca9ce});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x138646){const {locale:_0x5ded1f}=this['editor'];return _0x138646['map'](_0x2368e3=>{const _0x527c42=_(_0x5ded1f,_0x2368e3,'Insert');switch(_0x2368e3){case i['Local']:return{'icon':_0xf280e8,'type':i['Local'],..._0x527c42};case i['URL']:return{'icon':_0x483d77,'type':i['URL'],..._0x527c42};case i['Dropbox']:return{'icon':_0x4e41bb,'type':i['Dropbox'],..._0x527c42};case i['Facebook']:return{'icon':_0x14bef6,'type':i['Facebook'],..._0x527c42};case i['GDrive']:return{'icon':_0x60fcbd,'type':i['GDrive'],..._0x527c42};case i['GPhotos']:return{'icon':_0x38e42,'type':i['GPhotos'],..._0x527c42};case i['OneDrive']:return{'icon':_0x7caaf5,'type':i['OneDrive'],..._0x527c42};}});}['_getIntegrationKey'](_0x59a8ac){switch(_0x59a8ac){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2dcf7e,_0x128965){const _0x1bfbc4=this['editor'],_0x2de8b7=new _0x2dcf7e(_0x1bfbc4['locale']),_0xbef31c=_0x1bfbc4['commands']['get']('uploadcare');return _0x2de8b7['bind']('isEnabled')['to'](_0xbef31c),_0x2de8b7['on']('execute',()=>{_0xbef31c['execute'](_0x128965);}),_0x2de8b7;}['_createToolbarButton'](_0x3e75d5){const {locale:_0x3fbf56}=this['editor'],_0x138e3d=this['editor']['plugins']['get']('ImageInsertUI'),_0x4f58ff=_0x3e75d5[0x0],_0x43aeb8=this['_createButton'](_0x4a1729,_0x4f58ff['type']);return _0x43aeb8['icon']=_0x4f58ff['icon'],_0x43aeb8['bind']('label')['to'](_0x138e3d,'isImageSelected',_0x3a5406=>_(_0x3fbf56,_0x4f58ff['type'],_0x3a5406?'Replace':'Insert')['text']),_0x43aeb8['tooltip']=!0x0,_0x43aeb8;}['_createDropdownButtons'](_0xeec8db){const {locale:_0x4ce5b9}=this['editor'],_0x39d191=this['editor']['plugins']['get']('ImageInsertUI');return _0xeec8db['map'](_0x51b328=>{const _0x3286b7=this['_createButton'](_0x4a1729,_0x51b328['type']);return _0x3286b7['withText']=!0x0,_0x3286b7['icon']=_0x51b328['icon'],_0x3286b7['bind']('label')['to'](_0x39d191,'isImageSelected',_0x42a3b0=>_(_0x4ce5b9,_0x51b328['type'],_0x42a3b0?'Replace':'Insert')['text']),_0x3286b7;});}['_createMenuBarButtons'](_0x36359e){return _0x36359e['map'](_0x18eb48=>{const _0x16ba1a=this['_createButton'](_0x3bcc21,_0x18eb48['type']);return _0x16ba1a['icon']=_0x18eb48['icon'],_0x16ba1a['label']=_0x18eb48['shortText'],_0x16ba1a;});}}class F extends _0x429902{['focusTracker'];['focusCycler'];constructor(_0x319348){super(_0x319348),this['focusTracker']=new _0x419141(),this['focusCycler']=new _0x73b108({'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(_0x269a74){super(_0x269a74),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x1fef8a,_0x32eb50){const _0x66e704=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4a1fda=>_0x4a1fda<=_0x32eb50)['map'](_0x1ba4fc=>_0x1fef8a['replace'](/\/$/,'')+'/-/resize/'+_0x1ba4fc+'x/\x20'+_0x1ba4fc+'w');return{'imageFallbackUrl':_0x1fef8a,'imageSources':[{'srcset':_0x66e704['join'](',\x20'),'sizes':'(max-width:\x20'+_0x32eb50+'px)\x20100vw,\x20'+_0x32eb50+'px','type':'image/webp'}]};}function C(_0x56c1cd,_0xce087d,_0x749148){const _0x585386=_0x56c1cd['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x585386?parseInt(_0x585386[0x1],0xa):_0xce087d,'height':_0x585386?parseInt(_0x585386[0x2],0xa):_0x749148};}function p(_0x590410,_0x160a92){const _0x51b88b=new(_0x1ad474())(),_0x213b39=_0x590410['plugins']['get']('ImageUtils'),_0x574884=_0x590410['editing']['mapper']['toViewElement'](_0x160a92),_0x176a9c=_0x213b39['findViewImgElement'](_0x574884),_0xf0ae58=_0x590410['editing']['view']['domConverter']['viewToDom'](_0x176a9c),_0x5ef1cd=_0x160a92['getAttribute']('width'),_0x74fd2f=_0x160a92['getAttribute']('height'),_0x4dbd83='image-processing';_0x590410['editing']['view']['change'](_0x1df317=>{_0x1df317['addClass'](_0x4dbd83,_0x574884),_0x1df317['setStyle']('aspect-ratio',_0x5ef1cd+'/'+_0x74fd2f,_0x176a9c);}),_0x51b88b['listenTo'](_0xf0ae58,'load',()=>{_0x51b88b['stopListening'](_0xf0ae58,'load'),_0x590410['editing']['view']['change'](_0x5cd850=>{_0x5cd850['removeClass'](_0x4dbd83,_0x574884),_0x5cd850['removeStyle']('aspect-ratio',_0x176a9c);});});}function G(_0x32164b){if(Array['isArray'](_0x32164b)){const _0x50adac=_0x32164b['map'](G);return _0x59688d=>_0x50adac['some'](_0x459d87=>_0x459d87(_0x59688d));}if('origin'==_0x32164b){const _0x15aaef=_0x1769cf['window']['location']['origin'];return _0x2d19d0=>new URL(_0x2d19d0,_0x1769cf['document']['baseURI'])['origin']==_0x15aaef;}return'function'==typeof _0x32164b?_0x32164b:_0x32164b instanceof RegExp?_0x43c60e=>!(!_0x43c60e['match'](_0x32164b)&&!_0x43c60e['replace'](/^https?:\/\//,'')['match'](_0x32164b)):()=>!0x1;}function S(_0x565f2b,_0xbd679){return _0x48bda9(_0x565f2b['target'])['includes'](_0xbd679);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xe99d8f(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1ffee9,_0x27517a,_0x368fc8){super(),this['_editor']=_0x1ffee9,this['_editing']=_0x27517a,this['_dialog']=_0x1ffee9['plugins']['get'](_0x2269f1),this['_api']=_0x27517a['ctxElement']['getAPI'](),this['_type']=_0x368fc8,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:_0x16cb8c,model:_0x3bfedb}=this['_editor'],_0x186ec4=_0x3bfedb['document']['selection']['getSelectedElement'](),_0x1ee5c5=_0x186ec4&&(_0x186ec4['is']('element','imageBlock')||_0x186ec4['is']('element','imageInline'));this['_formView']=new x(_0x16cb8c),this['_dialog']['show']({'id':'uploadCare','icon':_0xf280e8,'title':_(_0x16cb8c,this['_type'],_0x1ee5c5?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x466743['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x34a65e=>!S(_0x34a65e,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x296fb0}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1d4c8e=>{const _0x540bbd=_0x296fb0['length'];for(const _0x3e29fd of _0x296fb0){const _0x36300b=_0x3e29fd===_0x296fb0[_0x540bbd-0x1],{cdnUrl:_0x18da78,fileInfo:_0x32385d}=_0x3e29fd;if(!_0x18da78||!_0x32385d)continue;const {width:_0xa89ce5,height:_0x535937}=_0x32385d['imageInfo'],_0x3c13d7=C(_0x18da78,_0xa89ce5,_0x535937),_0xc4f39c=k(_0x18da78,_0x3c13d7['width']),_0x39c421={'id':_0x32385d['uuid'],'type':'image','attributes':{'imageDimension':_0x3c13d7,..._0xc4f39c}};this['_insertAsset'](_0x39c421,_0x36300b,_0x1d4c8e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2a1a7f=>{'idle'===_0x2a1a7f['detail']['status']&&!_0x2a1a7f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x229e66,_0x1fd604,_0x4ad25f){const _0x2c8b08=this['_editor']['model']['document']['selection'],_0x1dd3a7=_0x2c8b08['getSelectedElement'](),_0x168345=!(!_0x1dd3a7||!_0x1dd3a7['is']('element','imageInline'));_0x4ad25f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x229e66,_0x168345),_0x1fd604||_0x4ad25f['setSelection'](_0x2c8b08['getLastPosition']());}['_insertImage'](_0x2d8180,_0x4bec63){const _0x4f73c2=this['_editor'],{imageDimension:_0x2d3189,imageFallbackUrl:_0x14f11a,imageSources:_0x2207fd}=_0x2d8180['attributes'];_0x4f73c2['execute']('insertImage',{'imageType':_0x4bec63?'imageInline':null,'source':{'uploadcareImageId':_0x2d8180['id'],'src':_0x14f11a,'sources':_0x2207fd,..._0x2d3189}});}}class w extends _0x36d961{['_editing'];['_controller']=null;static get['requires'](){return[_0x2269f1,o];}constructor(_0x5a7e2b){super(_0x5a7e2b),this['_editing']=_0x5a7e2b['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x330202){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x330202);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x38a6c5,publicKey:_0x16fa82,signal:_0x81a1aa,onProgress:_0x725cda}){return _0xc2d213(_0x38a6c5,{'publicKey':_0x16fa82,'store':'auto','signal':_0x81a1aa,'onProgress':_0x725cda});}static['getInfo'](_0x4372d8,_0x458456){return _0x100881(_0x4372d8,_0x458456);}}class f extends _0x4a984b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x44bcdd,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x413ceb=this['editor'];if(!!!_0x413ceb['config']['get']('uploadcare'))return;_0x413ceb['plugins']['get'](_0x44bcdd)['createUploadAdapter']=_0x267bcf=>new A(_0x267bcf,_0x413ceb),_0x413ceb['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2dd49b,{imageElement:_0x2b3cb1,data:_0x1e12fd})=>{_0x413ceb['model']['change'](_0x2f8edf=>{_0x2f8edf['setAttribute']('uploadcareImageId',_0x1e12fd['uploadcareImageId'],_0x2b3cb1);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x1eee3f,_0xf19ab7){this['loader']=_0x1eee3f,this['editor']=_0xf19ab7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x121f77=this['editor']['config']['get']('uploadcare.pubkey'),_0x5004ef=await this['loader']['file'];return j['upload']({'file':_0x5004ef,'publicKey':_0x121f77,'signal':this['controller']['signal'],'onProgress':_0x13d4b7=>{_0x13d4b7&&_0x13d4b7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x13d4b7['value']);}})['then'](async _0x501a9c=>{const {imageFallbackUrl:_0x3e8872,imageSources:_0x4f8471}=k(_0x501a9c['cdnUrl'],_0x501a9c['imageInfo']['width']);return{'uploadcareImageId':_0x501a9c['uuid'],'default':_0x3e8872,'sources':_0x4f8471};})['catch'](()=>{const _0x1a97e4=t('Cannot\x20upload\x20file:')+('\x20'+_0x5004ef['name']+'.');return Promise['reject'](_0x1a97e4);});}['abort'](){this['controller']['abort']();}}class o extends _0x4a984b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2269f1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x59ab7e=this['editor'];_0x59ab7e['commands']['add']('uploadcare',new w(_0x59ab7e));}['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 _0x3c4870=_0x1769cf['document']['querySelector']('input[uploadcare-file-input]');_0x3c4870&&_0x3c4870['remove']();}),async function(_0x179310){const _0x1897f9=_0x3b8aff([0x46,0x64,0x61,0x72,0x57,0x53,0x66,0x6a,0x31,0x78,0x4e,0x62,0x4f,0x74,0x45,0x77,0x48,0x4d,0x39,0x6e,0x7a,0x32,0x35,0x73,0x51,0x75,0x76,0x42,0x4c,0x50,0x44,0x58,0x41,0x30,0x47,0x4a,0x49,0x63,0x59,0x6c,0x79,0x43,0x55,0x4b,0x5a,0x36,0x69,0x52,0x56,0x71,0x6d,0x6f,0x34,0x54,0x68,0x38,0x6b,0x67,0x70,0x37,0x65,0x33]),_0x50b599=0x7b37c444,_0x1a6e01=0x7b30aeac^_0x50b599,_0x5602b1=window[_0x3b8aff([0x44,0x61,0x74,0x65])][_0x3b8aff([0x6e,0x6f,0x77])](),_0x87ca50=_0x179310[_0x3b8aff([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59293f=new window[(_0x3b8aff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e39d0=>{_0x87ca50[_0x3b8aff([0x6f,0x6e,0x63,0x65])](_0x3b8aff([0x72,0x65,0x61,0x64,0x79]),_0x5e39d0);}),_0x4a1f2e={[_0x3b8aff([0x6b,0x74,0x79])]:_0x3b8aff([0x45,0x43]),[_0x3b8aff([0x75,0x73,0x65])]:_0x3b8aff([0x73,0x69,0x67]),[_0x3b8aff([0x63,0x72,0x76])]:_0x3b8aff([0x50,0x2d,0x32,0x35,0x36]),[_0x3b8aff([0x78])]:_0x3b8aff([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]),[_0x3b8aff([0x79])]:_0x3b8aff([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]),[_0x3b8aff([0x61,0x6c,0x67])]:_0x3b8aff([0x45,0x53,0x32,0x35,0x36])},_0x3197bf=_0x87ca50[_0x3b8aff([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b8aff([0x67,0x65,0x74])](_0x3b8aff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x350ae0(){let _0x89dc09,_0x18a097=null,_0x62e2f0=null;try{if(_0x3197bf==_0x3b8aff([0x47,0x50,0x4c]))return _0x3b8aff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x89dc09=_0x1b566f(),!_0x89dc09)return _0x3b8aff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x89dc09[_0x3b8aff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x62e2f0=_0x2f65e0(_0x89dc09[_0x3b8aff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x89dc09[_0x3b8aff([0x6a,0x74,0x69])])),await _0x3dcc5a()?_0x2bde76()?_0x69e368()?_0x3b8aff([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x15c40d()?(_0x89dc09[_0x3b8aff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b8aff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x18a097=_0x1951f6(_0x3b8aff([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x89dc09[_0x3b8aff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b8aff([0x74,0x72,0x69,0x61,0x6c])&&(_0x18a097=_0x1951f6(_0x3b8aff([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ccfc2()):_0x3b8aff([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b8aff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b8aff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b8aff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x69e368(){const _0x10b80b=[_0x3b8aff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b8aff([0x74,0x72,0x69,0x61,0x6c])][_0x3b8aff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x89dc09[_0x3b8aff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5602b1/0x3e8:0xe10*_0x1a6e01;return _0x89dc09[_0x3b8aff([0x65,0x78,0x70])]<_0x10b80b;}function _0x2bde76(){const _0x2e36eb=_0x89dc09[_0x3b8aff([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2e36eb&&(!!_0x2e36eb[_0x3b8aff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8aff([0x2a]))||!!_0x2e36eb[_0x3b8aff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8aff([0x55,0x50,0x4c,0x43])));}function _0x15c40d(){const _0x536b58=_0x89dc09[_0x3b8aff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x536b58||0x0==_0x536b58[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3fdd13}=new URL(window[_0x3b8aff([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x536b58[_0x3b8aff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fdd13))return!0x0;const _0x2cebd0=_0x3fdd13[_0x3b8aff([0x73,0x70,0x6c,0x69,0x74])](_0x3b8aff([0x2e]));return _0x536b58[_0x3b8aff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46c259=>_0x46c259[_0x3b8aff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8aff([0x2a])))[_0x3b8aff([0x6d,0x61,0x70])](_0xcd8737=>_0xcd8737[_0x3b8aff([0x73,0x70,0x6c,0x69,0x74])](_0x3b8aff([0x2e])))[_0x3b8aff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1468f2=>_0x1468f2[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2cebd0[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b8aff([0x6d,0x61,0x70])](_0x27517e=>Array(_0x2cebd0[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27517e[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b8aff([0x66,0x69,0x6c,0x6c])](_0x27517e[0x0]===_0x3b8aff([0x2a])?_0x3b8aff([0x2a]):'')[_0x3b8aff([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27517e))[_0x3b8aff([0x73,0x6f,0x6d,0x65])](_0x34db92=>_0x2cebd0[_0x3b8aff([0x65,0x76,0x65,0x72,0x79])]((_0x2e65ea,_0x4c62a1)=>_0x34db92[_0x4c62a1]===_0x2e65ea||_0x34db92[_0x4c62a1]===_0x3b8aff([0x2a])));}function _0x5ccfc2(){return _0x18a097&&_0x62e2f0?new window[(_0x3b8aff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ad25c,_0x572157)=>{_0x18a097[_0x3b8aff([0x74,0x68,0x65,0x6e])](_0x1ad25c,_0x572157),_0x62e2f0[_0x3b8aff([0x74,0x68,0x65,0x6e])](_0x39f7c8=>{_0x39f7c8!=_0x3b8aff([0x56,0x61,0x6c,0x69,0x64])&&_0x1ad25c(_0x39f7c8);},_0x572157);}):_0x18a097||_0x62e2f0||_0x3b8aff([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f65e0(_0x1c3650,_0x4283a8){return new window[(_0x3b8aff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1253ab=>{if(_0x72dbf1())return _0x1253ab(_0x3b8aff([0x56,0x61,0x6c,0x69,0x64]));_0xb81f1e(),_0x87ca50[_0x3b8aff([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b8aff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c5dfd=!0x1;const _0x5b673f=_0x4b6330();function _0x16a463(_0x413954){return!!_0x413954&&(typeof _0x413954===_0x3b8aff([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x413954===_0x3b8aff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x413954[_0x3b8aff([0x74,0x68,0x65,0x6e])]===_0x3b8aff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x413954[_0x3b8aff([0x63,0x61,0x74,0x63,0x68])]===_0x3b8aff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x175012(_0x5cd995){_0x3f135f(_0x5cd995)[_0x3b8aff([0x74,0x68,0x65,0x6e])](_0x5c2068=>{if(!_0x5c2068||_0x5c2068[_0x3b8aff([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b8aff([0x6f,0x6b]))return _0x3b8aff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b066d(_0x18d0bb(_0x5b673f+_0x4283a8))!=_0x5c2068[_0x3b8aff([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b8aff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b8aff([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b8aff([0x74,0x68,0x65,0x6e])](_0x264519=>(_0x4b28a3(),_0x264519),()=>{const _0x2bf728=_0x7f7fc8();return null==_0x2bf728?(_0x4b28a3(),_0x3b8aff([0x56,0x61,0x6c,0x69,0x64])):_0x3b8aff(_0x5602b1-_0x2bf728>(0x5f3b4044^_0x50b599)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b8aff([0x74,0x68,0x65,0x6e])](_0x1253ab)[_0x3b8aff([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1253ab(_0x3b8aff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1eb0d9=0x7b012ac4^_0x50b599;function _0x4b28a3(){const _0x3841b7=_0x3b8aff([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b066d(_0x18d0bb(_0x1c3650)),_0x5f4b67=_0x124cd7(_0x5b066d(window[_0x3b8aff([0x4d,0x61,0x74,0x68])][_0x3b8aff([0x63,0x65,0x69,0x6c])](_0x5602b1/_0x1eb0d9)));window[_0x3b8aff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b8aff([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3841b7,_0x5f4b67);}function _0x7f7fc8(){const _0x5b507d=_0x3b8aff([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b066d(_0x18d0bb(_0x1c3650)),_0x934666=window[_0x3b8aff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b8aff([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b507d);return _0x934666?window[_0x3b8aff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x124cd7(_0x934666),0x10)*_0x1eb0d9:null;}function _0x3f135f(_0x2afafe){return new window[(_0x3b8aff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x100bc0,_0x145c8a)=>{_0x2afafe[_0x3b8aff([0x74,0x68,0x65,0x6e])](_0x100bc0,_0x145c8a),window[_0x3b8aff([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x145c8a,0x7b361084^_0x50b599);});}}_0x87ca50[_0x3b8aff([0x6f,0x6e])](_0x3b8aff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x36faef,_0x12e81e)=>{if(_0x12e81e[0x0]!=_0x1c3650)return _0x1253ab(_0x3b8aff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12e81e[0x1]={..._0x12e81e[0x1],[_0x3b8aff([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5b673f};},{[_0x3b8aff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b8aff([0x68,0x69,0x67,0x68])}),_0x87ca50[_0x3b8aff([0x6f,0x6e])](_0x3b8aff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3f235c=>{_0x16a463(_0x3f235c[_0x3b8aff([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c5dfd=!0x0,_0x175012(_0x3f235c[_0x3b8aff([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b8aff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b8aff([0x6c,0x6f,0x77])}),_0x59293f[_0x3b8aff([0x74,0x68,0x65,0x6e])](()=>{_0x5c5dfd||_0x1253ab(_0x3b8aff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x72dbf1(){return _0x87ca50[_0x3b8aff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b8aff([0x76,0x69,0x65,0x77])][_0x3b8aff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b8aff([0x61,0x75,0x74,0x6f]);}function _0xb81f1e(){_0x87ca50[_0x3b8aff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b8aff([0x76,0x69,0x65,0x77])][_0x3b8aff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b8aff([0x61,0x75,0x74,0x6f]);}}function _0x1951f6(_0x1fd6fe){const _0xfc5068=[new window[(_0x3b8aff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x463a6b=>setTimeout(_0x463a6b,0x7b3efa88^_0x50b599)),_0x59293f[_0x3b8aff([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b8aff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x229f88=>{let _0x209f60=0x0;_0x87ca50[_0x3b8aff([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b8aff([0x6f,0x6e])](_0x3b8aff([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4287cf,_0x2aec1f)=>{_0x2aec1f[0x0][_0x3b8aff([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x209f60++,_0x209f60==(0x7b37c5bc^_0x50b599)&&(_0x229f88(),_0x4287cf[_0x3b8aff([0x6f,0x66,0x66])]());});}))];return window[_0x3b8aff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b8aff([0x72,0x61,0x63,0x65])](_0xfc5068)[_0x3b8aff([0x74,0x68,0x65,0x6e])](()=>_0x1fd6fe);}async function _0x258521(){await _0x59293f,_0x87ca50[_0x3b8aff([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b8aff([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7f779e,_0x87ca50[_0x3b8aff([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b8aff([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7f779e,_0x87ca50[_0x3b8aff([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b8aff([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5d5456(_0xc5f1a5){const _0x476e7e=_0x7aaa45();_0x87ca50[_0x476e7e]=_0x3b8aff([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xc5f1a5,_0xc5f1a5!=_0x3b8aff([0x56,0x61,0x6c,0x69,0x64])&&_0x258521();}function _0x7aaa45(){const _0x8bc546=window[_0x3b8aff([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b8aff([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b8aff([0x6e,0x6f,0x77])]())[_0x3b8aff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b8aff([0x2e]),'');let _0x1b37bc=_0x3b8aff([0x46]);for(let _0x3b5d54=0x0;_0x3b5d54<_0x8bc546[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b5d54+=0x2){let _0xf5b18d=window[_0x3b8aff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8bc546[_0x3b8aff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b5d54,_0x3b5d54+0x2));_0xf5b18d>=_0x1897f9[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf5b18d-=_0x1897f9[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1b37bc+=_0x1897f9[_0xf5b18d];}return _0x1b37bc;}function _0x1b566f(){const _0x480687=_0x3197bf[_0x3b8aff([0x73,0x70,0x6c,0x69,0x74])](_0x3b8aff([0x2e]));if(0x3!=_0x480687[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x553524(_0x480687[0x1]);function _0x553524(_0x2aec5f){const _0x5ae8c9=_0x40193d(_0x2aec5f);return _0x5ae8c9&&_0x3736d1()?_0x5ae8c9:null;function _0x3736d1(){const _0x31419c=_0x5ae8c9[_0x3b8aff([0x6a,0x74,0x69])],_0x576ffd=window[_0x3b8aff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31419c[_0x3b8aff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31419c[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5519b4={..._0x5ae8c9,[_0x3b8aff([0x6a,0x74,0x69])]:_0x31419c[_0x3b8aff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31419c[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5519b4[_0x3b8aff([0x76,0x63])],_0x18d0bb(_0x5519b4)==_0x576ffd;}}}async function _0x3dcc5a(){let _0x182808=!0x0;try{const _0x16a83f=_0x3197bf[_0x3b8aff([0x73,0x70,0x6c,0x69,0x74])](_0x3b8aff([0x2e])),[_0x195c74,_0x538363,_0x315090]=_0x16a83f;return _0x492494(_0x195c74),await _0x42833d(_0x195c74,_0x538363,_0x315090),_0x182808;}catch{return!0x1;}function _0x492494(_0x30dc38){const _0x238d56=_0x40193d(_0x30dc38);_0x238d56&&_0x238d56[_0x3b8aff([0x61,0x6c,0x67])]==_0x3b8aff([0x45,0x53,0x32,0x35,0x36])||(_0x182808=!0x1);}async function _0x42833d(_0x26b7ef,_0x38e4c0,_0xe0b06){const _0x3eaff2=window[_0x3b8aff([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b8aff([0x66,0x72,0x6f,0x6d])](_0x18db24(_0xe0b06),_0x237857=>_0x237857[_0x3b8aff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x253b9d=new window[(_0x3b8aff([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b8aff([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x26b7ef+_0x3b8aff([0x2e])+_0x38e4c0),_0x4ca5ae=window[_0x3b8aff([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b8aff([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4ca5ae)return;const _0x56114c=await _0x4ca5ae[_0x3b8aff([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b8aff([0x6a,0x77,0x6b]),_0x4a1f2e,{[_0x3b8aff([0x6e,0x61,0x6d,0x65])]:_0x3b8aff([0x45,0x43,0x44,0x53,0x41]),[_0x3b8aff([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b8aff([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b8aff([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4ca5ae[_0x3b8aff([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b8aff([0x6e,0x61,0x6d,0x65])]:_0x3b8aff([0x45,0x43,0x44,0x53,0x41]),[_0x3b8aff([0x68,0x61,0x73,0x68])]:{[_0x3b8aff([0x6e,0x61,0x6d,0x65])]:_0x3b8aff([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x56114c,_0x3eaff2,_0x253b9d)||(_0x182808=!0x1);}}function _0x40193d(_0x4d1798){return _0x4d1798[_0x3b8aff([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b8aff([0x65,0x79]))?JSON[_0x3b8aff([0x70,0x61,0x72,0x73,0x65])](_0x18db24(_0x4d1798)):null;}function _0x18db24(_0x2da08b){return window[_0x3b8aff([0x61,0x74,0x6f,0x62])](_0x2da08b[_0x3b8aff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b8aff([0x2b]))[_0x3b8aff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b8aff([0x2f])));}function _0x18d0bb(_0x4201ae){let _0x25c340=0x1505;function _0x2c5ebb(_0x710888){for(let _0x1aa990=0x0;_0x1aa990<_0x710888[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1aa990++){const _0x590966=_0x710888[_0x3b8aff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1aa990);_0x25c340=(_0x25c340<<0x5)+_0x25c340+_0x590966,_0x25c340&=_0x25c340;}}function _0x33c5cf(_0x24a578){Array[_0x3b8aff([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x24a578)?_0x24a578[_0x3b8aff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x33c5cf):_0x24a578&&typeof _0x24a578==_0x3b8aff([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b8aff([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x24a578)[_0x3b8aff([0x73,0x6f,0x72,0x74])]()[_0x3b8aff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4d7b69,_0x5a6dbb])=>{_0x2c5ebb(_0x4d7b69),_0x33c5cf(_0x5a6dbb);}):_0x2c5ebb(window[_0x3b8aff([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x24a578));}return _0x33c5cf(_0x4201ae),_0x25c340>>>0x0;}function _0x5b066d(_0x538110){return _0x538110[_0x3b8aff([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b8aff([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b8aff([0x30]));}function _0x124cd7(_0x28229d){return _0x28229d[_0x3b8aff([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b8aff([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b8aff([0x6a,0x6f,0x69,0x6e])]('');}function _0x7f779e(){}function _0x3b8aff(_0x54c067){return _0x54c067['map'](_0x4355ad=>String['fromCharCode'](_0x4355ad))['join']('');}_0x5d5456(await _0x350ae0());}(this);}['_initSchema'](){const _0x36b826=this['editor']['model']['schema'];_0x36b826['isRegistered']('imageBlock')&&_0x36b826['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x36b826['isRegistered']('imageInline')&&_0x36b826['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x39d9c1=this['editor'];_0x39d9c1['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x39d9c1['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4b01eb=>_0x4b01eb['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2d42f3=_0x39d9c1['commands']['get']('replaceImageSource');_0x2d42f3&&this['listenTo'](_0x2d42f3,'cleanupImage',(_0x1d9000,[_0x154a91,_0x1e5d7b])=>{_0x154a91['removeAttribute']('uploadcareImageId',_0x1e5d7b);});}['_initConfig'](){const _0x38a221=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2cc966=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x949c90(_0x1769cf['document'],'uc-config',{..._0x38a221,'pubkey':_0x2cc966,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x48c7f0=>{if('closeMax'==_0x48c7f0)return'#uc-icon-arrow-down';},_0x1769cf['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x949c90(_0x1769cf['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x1769cf['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x56741a=this['editor']['commands']['get']('insertImage');_0x56741a&&this['listenTo'](_0x56741a,'execute',()=>{const _0xbfaf7=this['editor']['model']['document']['selection']['getSelectedElement']();_0xbfaf7&&_0xbfaf7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xbfaf7);});});const _0x194637=this['editor']['commands']['get']('uploadcareImageReplace');_0x194637&&this['listenTo'](_0x194637,'execute',()=>{const _0x208e67=this['editor']['model']['document']['selection']['getSelectedElement']();_0x208e67&&_0x208e67['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x208e67);});});}}class tt extends _0x4a984b{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf8b493){super(_0xf8b493),_0xf8b493['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3e6419['defineComponents'](_0x3e6419);}}class ii extends _0x429902{constructor(_0x4106b5){super(_0x4106b5);const t=_0x4106b5['t'],_0x52d6ee=this['bindTemplate'],_0x1d3c9d=new _0x2d73c2();_0x1d3c9d['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':[_0x1d3c9d,{'text':_0x52d6ee['to']('imageUploadProgress',_0x5e1021=>t('Loading\x20image...')+'\x20('+(_0x5e1021||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 _0x429902{constructor(_0x585ae8){super(_0x585ae8);const t=_0x585ae8['t'];this['set']('errorType',null);const _0x3de2c0=new _0x4a1729(_0x585ae8);_0x3de2c0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3de2c0['withText']=!0x0,_0x3de2c0['class']='ck-button-action',_0x3de2c0['on']('execute',()=>{this['fire']('retry');}),_0x3de2c0['bind']('isVisible')['to'](this,'errorType',_0xc876ee=>'NotFound'!==_0xc876ee);const _0x21540d=new _0x115457();_0x21540d['content']=_0x4cfd49,_0x21540d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1e246a=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':[_0x21540d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1e246a['to']('errorType',_0x3a3375=>t('NotFound'!==_0x3a3375?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3de2c0]},{'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 _0x429902{constructor(_0x254d88,_0x31fd86){super(_0x254d88);const _0xfe585d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x31fd86,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xfe585d['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2f9643,_0x568efc,_0x42fd92){super(_0x2f9643),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2f9643),this['_errorView']=new ti(_0x2f9643),this['_editingView']=new ei(_0x2f9643,_0x42fd92),this['_focusableView']=new _0x429902(_0x2f9643),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x568efc),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'],_0x5cabd3=>{this['_addUploadcareImageEditorListeners'](_0x5cabd3);});}),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'](_0x23c560,_0x1e2027){const _0xbec7ea='uc-cloud-image-editor',_0x32a06f=_0x23c560['querySelector'](_0xbec7ea);if(_0x32a06f)return _0x1e2027(_0x32a06f);const _0x4c2d20=new MutationObserver(_0x17f54a=>{const _0x1fa07e=_0x17f54a['filter'](_0x58e8bf=>_0x58e8bf['target']===_0x23c560&&_0x58e8bf['addedNodes']['length']>0x0&&_0x58e8bf['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xbec7ea);_0x1fa07e['length']&&(_0x4c2d20['disconnect'](),_0x1e2027(_0x1fa07e[0x0]['addedNodes'][0x0]));});_0x4c2d20['observe'](_0x23c560,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2a8df3){_0x2a8df3['addEventListener']('apply',_0x2c665c=>{this['fire']('apply',{'imageSrc':_0x2c665c['detail']['cdnUrl']});}),_0x2a8df3['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xe99d8f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x14c77c,_0x5bbfbd,_0xd41ecf){super(),this['_editor']=_0x14c77c,this['_dialog']=_0x5bbfbd,this['_imageElement']=_0xd41ecf,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 _0x2dfa28=this['_imageElement'],_0x2b60ec=_0x2dfa28['getAttribute']('uploadcareImageId'),_0x2fc393=_0x2dfa28['getAttribute']('src');if(_0x2b60ec)await this['_loadImageInfo'](_0x2b60ec,_0x2fc393);else{if(this['_imageCache']['has'](_0x2fc393)){const _0x2171fc=this['_imageCache']['get'](_0x2fc393);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2171fc['url'],this['imageDimension']=_0x2171fc['dimension'],this['imageId']=_0x2171fc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x498629}=this['_editor'],t=_0x498629['t'],_0xcd910e=new X(_0x498629,this['imageStatus'],this['_attributes']);_0xcd910e['bind']('status')['to'](this,'imageStatus'),_0xcd910e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xcd910e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xcd910e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xcd910e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xcc08,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xcd910e,'position':_0x466743['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xcd910e['focus']();},'onHide':()=>{_0xcd910e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2cacf7=>!S(_0x2cacf7,_0xcd910e['element'])}});}['_loadImageInfo'](_0x260eab,_0x27eb0d){return j['getInfo'](_0x260eab,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x6e12ab=>{const {width:_0x474ed2,height:_0x470a31}=_0x6e12ab['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x27eb0d,this['imageDimension']={'width':_0x474ed2,'height':_0x470a31},this['imageId']=_0x260eab;})['catch'](_0x2ed65c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2ed65c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1d4ca2,_0x3240b6){return this['_getImageAsFile'](_0x1d4ca2)['then'](_0x40df35=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3240b6['signal'],'file':_0x40df35,'onProgress':_0x5ddea3=>{_0x5ddea3&&_0x5ddea3['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5ddea3['value']));}}))['then'](_0x52422c=>{const {width:_0x554301,height:_0x5b3c15}=_0x52422c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x52422c['cdnUrl'],this['imageDimension']={'width':_0x554301,'height':_0x5b3c15},this['imageId']=_0x52422c['uuid'],this['imageUploadProgress']=null;const _0x3e4400=_0x1d4ca2['getAttribute']('src');this['_imageCache']['set'](_0x3e4400,{'id':_0x52422c['uuid'],'url':_0x52422c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x597ac7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x597ac7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1dad78,_0x3bdcaf){_0x1dad78['on']('apply',(_0x8027a4,_0x48c3be)=>{this['_replaceImage'](_0x3bdcaf,_0x48c3be['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1dad78['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1dad78['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2bdde4,_0xffaa76,_0x20c1da){const _0x3cc8b5=this['_editor'],{width:_0x4613a7,height:_0x53a068}=C(_0xffaa76,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x35aa2b,imageSources:_0x14a9f4}=k(_0xffaa76,_0x4613a7);_0x3cc8b5['model']['change'](_0x4dbae1=>{if('$graveyard'===_0x2bdde4['root']['rootName']){_0x3cc8b5['execute']('insertImage',{'imageType':_0x2bdde4['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2bdde4['getAttributes']()),'uploadcareImageId':_0x20c1da,'src':_0x35aa2b,'sources':_0x14a9f4,'width':_0x4613a7,'height':_0x53a068}});const _0x17d996=_0x2bdde4['getChildren']();_0x2bdde4=_0x3cc8b5['model']['document']['selection']['getSelectedElement']();for(const _0x117224 of _0x17d996)_0x4dbae1['append'](_0x4dbae1['cloneElement'](_0x117224),_0x2bdde4);}else _0x4dbae1['setSelection'](_0x2bdde4,'on'),_0x3cc8b5['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2bdde4['getAttributes']()),'uploadcareImageId':_0x20c1da,'src':_0x35aa2b,'sources':_0x14a9f4,'width':_0x4613a7,'height':_0x53a068},_0x2bdde4);_0x4dbae1['setSelection'](_0x2bdde4,'on');});}async['_getImageAsFile'](_0x359082){const _0x22a426=_0x1769cf['window'],_0x49b5c6=_0x1769cf['document']['location']['href'],_0x4195e1=new _0x22a426['URL'](_0x359082['getAttribute']('src'),_0x49b5c6);if('data:'===_0x4195e1['protocol']){const _0x20984d=_0x4195e1['href']['split'](','),_0x2fb848=_0x20984d[0x0]['match'](/:(.*?);/)[0x1],_0x3371ee=_0x2fb848['split']('/')[0x1],_0x5f423c=_0x22a426['atob'](_0x20984d[_0x20984d['length']-0x1]);let _0x2a9da6=_0x5f423c['length'];const _0x5d5276=new _0x22a426['Uint8Array'](_0x2a9da6);for(;_0x2a9da6--;)_0x5d5276[_0x2a9da6]=_0x5f423c['charCodeAt'](_0x2a9da6);return new _0x22a426['File']([_0x5d5276],'image.'+_0x3371ee,{'type':_0x2fb848});}const _0x55a924=_0x4195e1['href']['split']('/'),_0x200e53=_0x55a924[_0x55a924['length']-0x1],_0x357b1a=_0x200e53['split']('.')[0x1];return _0x22a426['fetch'](_0x4195e1['href'])['then'](_0x3df313=>_0x3df313['clone']()['blob']())['then'](_0x95e4af=>new _0x22a426['File']([_0x95e4af],_0x200e53,{'type':'image/'+_0x357b1a}));}}class O extends _0x36d961{['imageEditController'];static get['requires'](){return[_0x2269f1];}['_isEditable'];constructor(_0x3062f3){super(_0x3062f3),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5ed6d2){const _0x362870=G(_0x5ed6d2);return _0x57615a=>!(!_0x57615a||!_0x57615a['is']('element','imageBlock')&&!_0x57615a['is']('element','imageInline'))&&(!!_0x57615a['hasAttribute']('uploadcareImageId')||!!_0x57615a['hasAttribute']('src')&&_0x362870(_0x57615a['getAttribute']('src')));}(_0x3062f3['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x182f9d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x182f9d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1b4489=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1b4489&&(_0x1b4489['is']('element','imageBlock')||_0x1b4489['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2269f1),_0x1b4489),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x36d961{['refresh'](){const _0x6b3391=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x6b3391&&(_0x6b3391['is']('element','imageBlock')||_0x6b3391['is']('element','imageInline')));}['execute'](_0x3854c4){const _0x7fdcd5=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x448a3d=>{_0x448a3d['setAttributes'](_0x3854c4,_0x7fdcd5),_0x448a3d['removeAttribute']('srcset',_0x7fdcd5),_0x448a3d['removeAttribute']('sizes',_0x7fdcd5);});}}class m extends _0x4a984b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x50d031,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x38d12e}=this;_0x38d12e['commands']['add']('uploadcareImageEdit',new O(_0x38d12e)),_0x38d12e['commands']['add']('uploadcareImageReplace',new R(_0x38d12e));}}class g extends _0x4a984b{['_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 _0x9388a6=this['editor'];_0x9388a6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x22a407=>{const _0x2ed168=_0x9388a6['commands']['get']('uploadcareImageEdit'),_0x1e5f5a=new _0x4a1729(_0x22a407),t=_0x22a407['t'];return _0x1e5f5a['set']({'icon':_0xcc08,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1e5f5a['bind']('isEnabled')['to'](_0x2ed168),_0x1e5f5a['bind']('isOn')['to'](_0x2ed168,'isActive'),this['listenTo'](_0x1e5f5a,'execute',()=>{_0x9388a6['execute']('uploadcareImageEdit'),_0x9388a6['editing']['view']['focus']();}),_0x1e5f5a;}),this['_initConfig']();}['_initConfig'](){const _0x1d0086=_0x949c90(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1d0086),this['listenTo'](this['editor'],'destroy',()=>{_0x1d0086['remove']();});}}class et extends _0x4a984b{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
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-20250616.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-20250616.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250616.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250616.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250616.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250616.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250616.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250616.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250616.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.16.2",
|
|
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 _0x4c3ba5=_0x5bb4;function _0x5d2a(){const _0xbbc54b=['href','pluginName','selection','_configElement','45xtpYpe','12913542uqGcWi','fromCharCode','_initConfig','isPremiumPlugin','_initSchema','removeAttribute','document','imageInline','querySelector','uploadcare.uploader','appendChild','isRegistered','attributeToAttribute','12456GzcQXA','uploadcareImageReplace','afterInit','map','closeMax','schema','downcast','isOfficialPlugin','ctxElement','_initImageProcessingIndicator','for','config','once','body','locale','destroy','elementToAttribute','extend','contentLanguage','2DgxKfX','iconHrefResolver','listenTo','_ctxElement','3004656HCkWSv','getAttribute','remove','359185SFjeEl','join','configElement','input[uploadcare-file-input]','replaceImageSource','conversion','uploader','getSelectedElement','1200882IhIkAb','uc-upload-ctx-provider','insertImage','upcast','get','uploadcareImageId','editing','requires','init','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','_initCtx','_initConversion','view','imageBlock','cleanupImage','data-uc-image-id','true','model','commands','uploadcare','1505686XDaFlV','add','3068094ojBcqo','render','editor','UploadcareEditing','execute','PictureEditing','#uc-icon-arrow-down','uploadcare.pubkey'];_0x5d2a=function(){return _0xbbc54b;};return _0x5d2a();}(function(_0x329185,_0x3795e2){const _0x303e26=_0x5bb4,_0x5c71a2=_0x329185();while(!![]){try{const _0x239e1c=parseInt(_0x303e26(0xd1))/0x1*(parseInt(_0x303e26(0xca))/0x2)+-parseInt(_0x303e26(0xd9))/0x3+-parseInt(_0x303e26(0xb7))/0x4*(parseInt(_0x303e26(0xa9))/0x5)+-parseInt(_0x303e26(0x9d))/0x6+-parseInt(_0x303e26(0x9b))/0x7+-parseInt(_0x303e26(0xce))/0x8+parseInt(_0x303e26(0xaa))/0x9;if(_0x239e1c===_0x3795e2)break;else _0x5c71a2['push'](_0x5c71a2['shift']());}catch(_0x3eedfa){_0x5c71a2['push'](_0x5c71a2['shift']());}}}(_0x5d2a,0x405fa));import{Plugin as _0x20311e}from'ckeditor5/src/core.js';import{Dialog as _0x248cd0}from'ckeditor5/src/ui.js';import{createElement as _0x1a6a1d,global as _0x5472f4,uid as _0x1d5226}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2c52ac}from'./uploadcarecommand.js';function _0x5bb4(_0x5d4f2c,_0x3ad184){const _0x5d2afc=_0x5d2a();return _0x5bb4=function(_0x5bb41a,_0x5b8e97){_0x5bb41a=_0x5bb41a-0x88;let _0x30c976=_0x5d2afc[_0x5bb41a];return _0x30c976;},_0x5bb4(_0x5d4f2c,_0x3ad184);}import{UploadcareUploadAdapter as _0x3ce7ad}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x29cfbd}from'./utils/editingutils.js';export class UploadcareEditing extends _0x20311e{[_0x4c3ba5(0xa8)]=null;[_0x4c3ba5(0xcd)]=null;static get[_0x4c3ba5(0xa6)](){const _0x349d4c=_0x4c3ba5;return _0x349d4c(0xa0);}static get[_0x4c3ba5(0x8d)](){const _0x1d30ce=_0x4c3ba5;return[_0x1d30ce(0xa2),_0x3ce7ad,_0x248cd0];}static get[_0x4c3ba5(0xbe)](){return!0x0;}static get[_0x4c3ba5(0xad)](){return!0x0;}get[_0x4c3ba5(0xd3)](){const _0x56ab10=_0x4c3ba5;return this[_0x56ab10(0xa8)];}get[_0x4c3ba5(0xbf)](){const _0x4aceb7=_0x4c3ba5;return this[_0x4aceb7(0xcd)];}[_0x4c3ba5(0x8e)](){const _0x4cdced=_0x4c3ba5,_0x52e868=this[_0x4cdced(0x9f)];_0x52e868[_0x4cdced(0x99)][_0x4cdced(0x9c)](_0x4cdced(0x9a),new _0x2c52ac(_0x52e868));}[_0x4c3ba5(0xb9)](){const _0x58be44=_0x4c3ba5;this[_0x58be44(0xae)](),this[_0x58be44(0x92)](),this[_0x58be44(0xac)](),this[_0x58be44(0x91)](),this[_0x58be44(0xc0)](),this[_0x58be44(0xcc)](this[_0x58be44(0x9f)],_0x58be44(0xc6),()=>{const _0x39ebb9=_0x58be44;this[_0x39ebb9(0xa8)]&&(this[_0x39ebb9(0xa8)][_0x39ebb9(0xd0)](),this[_0x39ebb9(0xa8)]=null),this[_0x39ebb9(0xcd)]&&(this[_0x39ebb9(0xcd)][_0x39ebb9(0xd0)](),this[_0x39ebb9(0xcd)]=null);const _0x2bc605=_0x5472f4[_0x39ebb9(0xb0)][_0x39ebb9(0xb2)](_0x39ebb9(0xd4));_0x2bc605&&_0x2bc605[_0x39ebb9(0xd0)]();}),async function(_0x3005d1){const _0x2b5b53=_0xd26c5e([0x56,0x5a,0x50,0x46,0x70,0x45,0x64,0x7a,0x65,0x71,0x4c,0x6d,0x36,0x37,0x74,0x6c,0x54,0x55,0x52,0x57,0x77,0x61,0x33,0x51,0x42,0x69,0x32,0x6b,0x31,0x53,0x68,0x4d,0x6a,0x43,0x79,0x48,0x35,0x47,0x4a,0x34,0x49,0x4e,0x39,0x58,0x4b,0x66,0x72,0x73,0x4f,0x38,0x78,0x41,0x76,0x67,0x75,0x59,0x30,0x63,0x62,0x44,0x6f,0x6e]),_0xfa859d=0x676da686,_0x5c3e0d=0x676acc56^_0xfa859d,_0x4547b7=window[_0xd26c5e([0x44,0x61,0x74,0x65])][_0xd26c5e([0x6e,0x6f,0x77])](),_0x4e9899=_0x3005d1[_0xd26c5e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ca22f=new window[(_0xd26c5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x817ef0=>{_0x4e9899[_0xd26c5e([0x6f,0x6e,0x63,0x65])](_0xd26c5e([0x72,0x65,0x61,0x64,0x79]),_0x817ef0);}),_0x130f9b={[_0xd26c5e([0x6b,0x74,0x79])]:_0xd26c5e([0x45,0x43]),[_0xd26c5e([0x75,0x73,0x65])]:_0xd26c5e([0x73,0x69,0x67]),[_0xd26c5e([0x63,0x72,0x76])]:_0xd26c5e([0x50,0x2d,0x32,0x35,0x36]),[_0xd26c5e([0x78])]:_0xd26c5e([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]),[_0xd26c5e([0x79])]:_0xd26c5e([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]),[_0xd26c5e([0x61,0x6c,0x67])]:_0xd26c5e([0x45,0x53,0x32,0x35,0x36])},_0x13408e=_0x4e9899[_0xd26c5e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd26c5e([0x67,0x65,0x74])](_0xd26c5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4112ec(){let _0x4af4d8,_0x25f9e8=null,_0x28e4e9=null;try{if(_0x13408e==_0xd26c5e([0x47,0x50,0x4c]))return _0xd26c5e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4af4d8=_0x59f0d3(),!_0x4af4d8)return _0xd26c5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4af4d8[_0xd26c5e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x28e4e9=_0x268aea(_0x4af4d8[_0xd26c5e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4af4d8[_0xd26c5e([0x6a,0x74,0x69])])),await _0x36f997()?_0x2d352d()?_0x942e6a()?_0xd26c5e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4aa13d()?(_0x4af4d8[_0xd26c5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd26c5e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x25f9e8=_0x144b0d(_0xd26c5e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4af4d8[_0xd26c5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd26c5e([0x74,0x72,0x69,0x61,0x6c])&&(_0x25f9e8=_0x144b0d(_0xd26c5e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4bf481()):_0xd26c5e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd26c5e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd26c5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xd26c5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x942e6a(){const _0x1c21a5=[_0xd26c5e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd26c5e([0x74,0x72,0x69,0x61,0x6c])][_0xd26c5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af4d8[_0xd26c5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4547b7/0x3e8:0xe10*_0x5c3e0d;return _0x4af4d8[_0xd26c5e([0x65,0x78,0x70])]<_0x1c21a5;}function _0x2d352d(){const _0xcba79=_0x4af4d8[_0xd26c5e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xcba79&&(!!_0xcba79[_0xd26c5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd26c5e([0x2a]))||!!_0xcba79[_0xd26c5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd26c5e([0x55,0x50,0x4c,0x43])));}function _0x4aa13d(){const _0x21f0c9=_0x5bb4,_0x2f3ad4=_0x4af4d8[_0xd26c5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2f3ad4||0x0==_0x2f3ad4[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x39d160}=new URL(window[_0xd26c5e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x21f0c9(0xa5)]);if(_0x2f3ad4[_0xd26c5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39d160))return!0x0;const _0xf1cae8=_0x39d160[_0xd26c5e([0x73,0x70,0x6c,0x69,0x74])](_0xd26c5e([0x2e]));return _0x2f3ad4[_0xd26c5e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ca0f2=>_0x3ca0f2[_0xd26c5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd26c5e([0x2a])))[_0xd26c5e([0x6d,0x61,0x70])](_0x4adf53=>_0x4adf53[_0xd26c5e([0x73,0x70,0x6c,0x69,0x74])](_0xd26c5e([0x2e])))[_0xd26c5e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5015f7=>_0x5015f7[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf1cae8[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd26c5e([0x6d,0x61,0x70])](_0x3f50a1=>Array(_0xf1cae8[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3f50a1[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd26c5e([0x66,0x69,0x6c,0x6c])](_0x3f50a1[0x0]===_0xd26c5e([0x2a])?_0xd26c5e([0x2a]):'')[_0xd26c5e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3f50a1))[_0xd26c5e([0x73,0x6f,0x6d,0x65])](_0x24e111=>_0xf1cae8[_0xd26c5e([0x65,0x76,0x65,0x72,0x79])]((_0x1320bf,_0x4b0bec)=>_0x24e111[_0x4b0bec]===_0x1320bf||_0x24e111[_0x4b0bec]===_0xd26c5e([0x2a])));}function _0x4bf481(){return _0x25f9e8&&_0x28e4e9?new window[(_0xd26c5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d6ab0,_0x26fc82)=>{_0x25f9e8[_0xd26c5e([0x74,0x68,0x65,0x6e])](_0x4d6ab0,_0x26fc82),_0x28e4e9[_0xd26c5e([0x74,0x68,0x65,0x6e])](_0x38c43a=>{_0x38c43a!=_0xd26c5e([0x56,0x61,0x6c,0x69,0x64])&&_0x4d6ab0(_0x38c43a);},_0x26fc82);}):_0x25f9e8||_0x28e4e9||_0xd26c5e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x268aea(_0x36c192,_0x1d36e9){return new window[(_0xd26c5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29d3e7=>{if(_0x325888())return _0x29d3e7(_0xd26c5e([0x56,0x61,0x6c,0x69,0x64]));_0x5edad2(),_0x4e9899[_0xd26c5e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd26c5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x117c65=!0x1;const _0x50abc6=_0x1d5226();function _0xbffb9e(_0x365176){return!!_0x365176&&(typeof _0x365176===_0xd26c5e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x365176===_0xd26c5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x365176[_0xd26c5e([0x74,0x68,0x65,0x6e])]===_0xd26c5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x365176[_0xd26c5e([0x63,0x61,0x74,0x63,0x68])]===_0xd26c5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a660e(_0x4dbbc5){_0x10bd95(_0x4dbbc5)[_0xd26c5e([0x74,0x68,0x65,0x6e])](_0x1195e0=>{if(!_0x1195e0||_0x1195e0[_0xd26c5e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd26c5e([0x6f,0x6b]))return _0xd26c5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xccb89c(_0x1c6f42(_0x50abc6+_0x1d36e9))!=_0x1195e0[_0xd26c5e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd26c5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd26c5e([0x56,0x61,0x6c,0x69,0x64]);})[_0xd26c5e([0x74,0x68,0x65,0x6e])](_0x4be2f8=>(_0x35096e(),_0x4be2f8),()=>{const _0x131c47=_0x11e11c();return null==_0x131c47?(_0x35096e(),_0xd26c5e([0x56,0x61,0x6c,0x69,0x64])):_0xd26c5e(_0x4547b7-_0x131c47>(0x43612286^_0xfa859d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd26c5e([0x74,0x68,0x65,0x6e])](_0x29d3e7)[_0xd26c5e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x29d3e7(_0xd26c5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1fbe31=0x675b4806^_0xfa859d;function _0x35096e(){const _0x5410a9=_0xd26c5e([0x6c,0x6c,0x63,0x74,0x2d])+_0xccb89c(_0x1c6f42(_0x36c192)),_0x4f012f=_0x3f374b(_0xccb89c(window[_0xd26c5e([0x4d,0x61,0x74,0x68])][_0xd26c5e([0x63,0x65,0x69,0x6c])](_0x4547b7/_0x1fbe31)));window[_0xd26c5e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd26c5e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5410a9,_0x4f012f);}function _0x11e11c(){const _0x5a7b8a=_0xd26c5e([0x6c,0x6c,0x63,0x74,0x2d])+_0xccb89c(_0x1c6f42(_0x36c192)),_0x45548a=window[_0xd26c5e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd26c5e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a7b8a);return _0x45548a?window[_0xd26c5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f374b(_0x45548a),0x10)*_0x1fbe31:null;}function _0x10bd95(_0x171fc6){return new window[(_0xd26c5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11be01,_0x31b156)=>{_0x171fc6[_0xd26c5e([0x74,0x68,0x65,0x6e])](_0x11be01,_0x31b156),window[_0xd26c5e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x31b156,0x676c7246^_0xfa859d);});}}_0x4e9899[_0xd26c5e([0x6f,0x6e])](_0xd26c5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1933f1,_0x1082b8)=>{if(_0x1082b8[0x0]!=_0x36c192)return _0x29d3e7(_0xd26c5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1082b8[0x1]={..._0x1082b8[0x1],[_0xd26c5e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x50abc6};},{[_0xd26c5e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd26c5e([0x68,0x69,0x67,0x68])}),_0x4e9899[_0xd26c5e([0x6f,0x6e])](_0xd26c5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2fc072=>{_0xbffb9e(_0x2fc072[_0xd26c5e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x117c65=!0x0,_0x2a660e(_0x2fc072[_0xd26c5e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd26c5e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd26c5e([0x6c,0x6f,0x77])}),_0x4ca22f[_0xd26c5e([0x74,0x68,0x65,0x6e])](()=>{_0x117c65||_0x29d3e7(_0xd26c5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x325888(){return _0x4e9899[_0xd26c5e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd26c5e([0x76,0x69,0x65,0x77])][_0xd26c5e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd26c5e([0x61,0x75,0x74,0x6f]);}function _0x5edad2(){_0x4e9899[_0xd26c5e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd26c5e([0x76,0x69,0x65,0x77])][_0xd26c5e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd26c5e([0x61,0x75,0x74,0x6f]);}}function _0x144b0d(_0x39040b){const _0x25e223=[new window[(_0xd26c5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4da6dc=>setTimeout(_0x4da6dc,0x6764984a^_0xfa859d)),_0x4ca22f[_0xd26c5e([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd26c5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23a06b=>{let _0x2142b4=0x0;_0x4e9899[_0xd26c5e([0x6d,0x6f,0x64,0x65,0x6c])][_0xd26c5e([0x6f,0x6e])](_0xd26c5e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x514876,_0x3120c3)=>{_0x3120c3[0x0][_0xd26c5e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2142b4++,_0x2142b4==(0x676da77e^_0xfa859d)&&(_0x23a06b(),_0x514876[_0xd26c5e([0x6f,0x66,0x66])]());});}))];return window[_0xd26c5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd26c5e([0x72,0x61,0x63,0x65])](_0x25e223)[_0xd26c5e([0x74,0x68,0x65,0x6e])](()=>_0x39040b);}async function _0x450e70(){await _0x4ca22f,_0x4e9899[_0xd26c5e([0x6d,0x6f,0x64,0x65,0x6c])][_0xd26c5e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c3e8a,_0x4e9899[_0xd26c5e([0x6d,0x6f,0x64,0x65,0x6c])][_0xd26c5e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c3e8a,_0x4e9899[_0xd26c5e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd26c5e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b684d(_0x25ab93){const _0x8ff9b2=_0x35df22();_0x4e9899[_0x8ff9b2]=_0xd26c5e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x25ab93,_0x25ab93!=_0xd26c5e([0x56,0x61,0x6c,0x69,0x64])&&_0x450e70();}function _0x35df22(){const _0x4f259b=window[_0xd26c5e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd26c5e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd26c5e([0x6e,0x6f,0x77])]())[_0xd26c5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd26c5e([0x2e]),'');let _0x2e1de4=_0xd26c5e([0x56]);for(let _0x969512=0x0;_0x969512<_0x4f259b[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x969512+=0x2){let _0x2f5449=window[_0xd26c5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f259b[_0xd26c5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x969512,_0x969512+0x2));_0x2f5449>=_0x2b5b53[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f5449-=_0x2b5b53[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e1de4+=_0x2b5b53[_0x2f5449];}return _0x2e1de4;}function _0x59f0d3(){const _0x4974f9=_0x13408e[_0xd26c5e([0x73,0x70,0x6c,0x69,0x74])](_0xd26c5e([0x2e]));if(0x3!=_0x4974f9[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x14459c(_0x4974f9[0x1]);function _0x14459c(_0x35e1df){const _0x357ce2=_0x1a8634(_0x35e1df);return _0x357ce2&&_0xd6e25a()?_0x357ce2:null;function _0xd6e25a(){const _0x23e97d=_0x357ce2[_0xd26c5e([0x6a,0x74,0x69])],_0x4c60a=window[_0xd26c5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23e97d[_0xd26c5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23e97d[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x47d603={..._0x357ce2,[_0xd26c5e([0x6a,0x74,0x69])]:_0x23e97d[_0xd26c5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23e97d[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x47d603[_0xd26c5e([0x76,0x63])],_0x1c6f42(_0x47d603)==_0x4c60a;}}}async function _0x36f997(){let _0x52331f=!0x0;try{const _0x568ab7=_0x13408e[_0xd26c5e([0x73,0x70,0x6c,0x69,0x74])](_0xd26c5e([0x2e])),[_0x3e3cb6,_0x2a38f7,_0x4a956a]=_0x568ab7;return _0x31b080(_0x3e3cb6),await _0x1ff3e1(_0x3e3cb6,_0x2a38f7,_0x4a956a),_0x52331f;}catch{return!0x1;}function _0x31b080(_0x2f54e0){const _0x15a221=_0x1a8634(_0x2f54e0);_0x15a221&&_0x15a221[_0xd26c5e([0x61,0x6c,0x67])]==_0xd26c5e([0x45,0x53,0x32,0x35,0x36])||(_0x52331f=!0x1);}async function _0x1ff3e1(_0x1d3a53,_0x43eab2,_0x1bf12e){const _0xc01157=window[_0xd26c5e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd26c5e([0x66,0x72,0x6f,0x6d])](_0x4daf84(_0x1bf12e),_0x315aa5=>_0x315aa5[_0xd26c5e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x36fd89=new window[(_0xd26c5e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd26c5e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d3a53+_0xd26c5e([0x2e])+_0x43eab2),_0x2ae84e=window[_0xd26c5e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd26c5e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ae84e)return;const _0x1c5649=await _0x2ae84e[_0xd26c5e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd26c5e([0x6a,0x77,0x6b]),_0x130f9b,{[_0xd26c5e([0x6e,0x61,0x6d,0x65])]:_0xd26c5e([0x45,0x43,0x44,0x53,0x41]),[_0xd26c5e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd26c5e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd26c5e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ae84e[_0xd26c5e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd26c5e([0x6e,0x61,0x6d,0x65])]:_0xd26c5e([0x45,0x43,0x44,0x53,0x41]),[_0xd26c5e([0x68,0x61,0x73,0x68])]:{[_0xd26c5e([0x6e,0x61,0x6d,0x65])]:_0xd26c5e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c5649,_0xc01157,_0x36fd89)||(_0x52331f=!0x1);}}function _0x1a8634(_0x16d755){return _0x16d755[_0xd26c5e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd26c5e([0x65,0x79]))?JSON[_0xd26c5e([0x70,0x61,0x72,0x73,0x65])](_0x4daf84(_0x16d755)):null;}function _0x4daf84(_0x5502a){return window[_0xd26c5e([0x61,0x74,0x6f,0x62])](_0x5502a[_0xd26c5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd26c5e([0x2b]))[_0xd26c5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd26c5e([0x2f])));}function _0x1c6f42(_0x4f9423){let _0x37295e=0x1505;function _0x4e1bf4(_0x45ae68){for(let _0xc135c8=0x0;_0xc135c8<_0x45ae68[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc135c8++){const _0x382d45=_0x45ae68[_0xd26c5e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc135c8);_0x37295e=(_0x37295e<<0x5)+_0x37295e+_0x382d45,_0x37295e&=_0x37295e;}}function _0x5523d7(_0x589867){Array[_0xd26c5e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x589867)?_0x589867[_0xd26c5e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5523d7):_0x589867&&typeof _0x589867==_0xd26c5e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd26c5e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x589867)[_0xd26c5e([0x73,0x6f,0x72,0x74])]()[_0xd26c5e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x23669b,_0x4b842f])=>{_0x4e1bf4(_0x23669b),_0x5523d7(_0x4b842f);}):_0x4e1bf4(window[_0xd26c5e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x589867));}return _0x5523d7(_0x4f9423),_0x37295e>>>0x0;}function _0xccb89c(_0xed263e){return _0xed263e[_0xd26c5e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd26c5e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd26c5e([0x30]));}function _0x3f374b(_0x1217cb){return _0x1217cb[_0xd26c5e([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd26c5e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd26c5e([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c3e8a(){}function _0xd26c5e(_0x453067){const _0x1dc8d8=_0x5bb4;return _0x453067[_0x1dc8d8(0xba)](_0x3ee9aa=>String[_0x1dc8d8(0xab)](_0x3ee9aa))[_0x1dc8d8(0xd2)]('');}_0x5b684d(await _0x4112ec());}(this);}[_0x4c3ba5(0xae)](){const _0x16d00b=_0x4c3ba5,_0xfbaacb=this[_0x16d00b(0x9f)][_0x16d00b(0x98)][_0x16d00b(0xbc)];_0xfbaacb[_0x16d00b(0xb5)](_0x16d00b(0x94))&&_0xfbaacb[_0x16d00b(0xc8)](_0x16d00b(0x94),{'allowAttributes':[_0x16d00b(0x8b)]}),_0xfbaacb[_0x16d00b(0xb5)](_0x16d00b(0xb1))&&_0xfbaacb[_0x16d00b(0xc8)](_0x16d00b(0xb1),{'allowAttributes':[_0x16d00b(0x8b)]});}[_0x4c3ba5(0x92)](){const _0x4290da=_0x4c3ba5,_0x227799=this[_0x4290da(0x9f)];_0x227799[_0x4290da(0xd6)][_0x4290da(0xc1)](_0x4290da(0xbd))[_0x4290da(0xb6)]({'model':_0x4290da(0x8b),'view':_0x4290da(0x96)}),_0x227799[_0x4290da(0xd6)][_0x4290da(0xc1)](_0x4290da(0x89))[_0x4290da(0xc7)]({'model':{'key':_0x4290da(0x8b),'value':_0x3048db=>_0x3048db[_0x4290da(0xcf)](_0x4290da(0x96))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x15f01b=_0x227799[_0x4290da(0x99)][_0x4290da(0x8a)](_0x4290da(0xd5));_0x15f01b&&this[_0x4290da(0xcc)](_0x15f01b,_0x4290da(0x95),(_0x148702,[_0x271967,_0x36d05f])=>{const _0x286618=_0x4290da;_0x271967[_0x286618(0xaf)](_0x286618(0x8b),_0x36d05f);});}[_0x4c3ba5(0xac)](){const _0x593a54=_0x4c3ba5,_0x576737=this[_0x593a54(0x9f)][_0x593a54(0xc2)][_0x593a54(0x8a)](_0x593a54(0xb3))||{},_0x123dc9=this[_0x593a54(0x9f)][_0x593a54(0xc2)][_0x593a54(0x8a)](_0x593a54(0xa4))||'';this[_0x593a54(0xa8)]=_0x1a6a1d(_0x5472f4[_0x593a54(0xb0)],_0x593a54(0x8f),{..._0x576737,'pubkey':_0x123dc9,'ctx-name':_0x593a54(0xd7),'sourceList':'','imgOnly':_0x593a54(0x97),'removeCopyright':_0x593a54(0x97),'localeName':this[_0x593a54(0x9f)][_0x593a54(0xc5)][_0x593a54(0xc9)],'externalSourcesEmbedCss':_0x593a54(0x90)}),this[_0x593a54(0xa8)][_0x593a54(0xcb)]=_0x4d9d9b=>{const _0x41f47e=_0x593a54;if(_0x41f47e(0xbb)==_0x4d9d9b)return _0x41f47e(0xa3);},_0x5472f4[_0x593a54(0xb0)][_0x593a54(0xc4)][_0x593a54(0xb4)](this[_0x593a54(0xa8)]);}[_0x4c3ba5(0x91)](){const _0xf915ca=_0x4c3ba5;this[_0xf915ca(0xcd)]=_0x1a6a1d(_0x5472f4[_0xf915ca(0xb0)],_0xf915ca(0xda),{'ctx-name':_0xf915ca(0xd7)}),_0x5472f4[_0xf915ca(0xb0)][_0xf915ca(0xc4)][_0xf915ca(0xb4)](this[_0xf915ca(0xcd)]);}[_0x4c3ba5(0xc0)](){const _0x414666=_0x4c3ba5,_0x5302c8=this[_0x414666(0x9f)][_0x414666(0x99)][_0x414666(0x8a)](_0x414666(0x88));_0x5302c8&&this[_0x414666(0xcc)](_0x5302c8,_0x414666(0xa1),()=>{const _0x45220c=_0x414666,_0x5ac779=this[_0x45220c(0x9f)][_0x45220c(0x98)][_0x45220c(0xb0)][_0x45220c(0xa7)][_0x45220c(0xd8)]();_0x5ac779&&_0x5ac779[_0x45220c(0xcf)](_0x45220c(0x8b))&&this[_0x45220c(0x9f)][_0x45220c(0x8c)][_0x45220c(0x93)][_0x45220c(0xc3)](_0x45220c(0x9e),()=>{const _0xab1d71=_0x45220c;_0x29cfbd(this[_0xab1d71(0x9f)],_0x5ac779);});});const _0x5ab5c2=this[_0x414666(0x9f)][_0x414666(0x99)][_0x414666(0x8a)](_0x414666(0xb8));_0x5ab5c2&&this[_0x414666(0xcc)](_0x5ab5c2,_0x414666(0xa1),()=>{const _0x57f531=_0x414666,_0x4ffe17=this[_0x57f531(0x9f)][_0x57f531(0x98)][_0x57f531(0xb0)][_0x57f531(0xa7)][_0x57f531(0xd8)]();_0x4ffe17&&_0x4ffe17[_0x57f531(0xcf)](_0x57f531(0x8b))&&this[_0x57f531(0x9f)][_0x57f531(0x8c)][_0x57f531(0x93)][_0x57f531(0xc3)](_0x57f531(0x9e),()=>{const _0x5b9d89=_0x57f531;_0x29cfbd(this[_0x5b9d89(0x9f)],_0x4ffe17);});});}}
|
|
23
|
+
const _0x3664ac=_0x3f1c;function _0x5db6(){const _0x449f36=['remove','uploadcareImageId','iconHrefResolver','href','3553072QGKPim','1885374uybKKk','uploadcare.pubkey','add','_initCtx','join','view','uc-config','commands','uploadcareImageReplace','_ctxElement','isOfficialPlugin','7LoDwom','1780FSjERR','selection','isRegistered','downcast','imageInline','#uc-icon-arrow-down','_initImageProcessingIndicator','uc-upload-ctx-provider','_initConfig','_initConversion','schema','830756gpSDMZ','once','get','for','isPremiumPlugin','conversion','config','init','uploader','pluginName','configElement','querySelector','removeAttribute','4895OlJStk','editor','fromCharCode','94981tlUdwI','elementToAttribute','afterInit','requires','upcast','body','extend','true','execute','4148160SEmZiP','getSelectedElement','listenTo','destroy','closeMax','appendChild','data-uc-image-id','90fHHFnB','attributeToAttribute','render','\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','replaceImageSource','imageBlock','getAttribute','_initSchema','cleanupImage','PictureEditing','insertImage','uploadcare.uploader','input[uploadcare-file-input]','locale','uploadcare','contentLanguage','1558449xmlBOs','_configElement','document','ctxElement','model','editing','map','UploadcareEditing'];_0x5db6=function(){return _0x449f36;};return _0x5db6();}(function(_0xfeab9,_0x479e0d){const _0x4aae55=_0x3f1c,_0x3401ee=_0xfeab9();while(!![]){try{const _0x2fb178=parseInt(_0x4aae55(0x16a))/0x1+-parseInt(_0x4aae55(0x15a))/0x2+-parseInt(_0x4aae55(0x143))/0x3+-parseInt(_0x4aae55(0x14f))/0x4*(parseInt(_0x4aae55(0x167))/0x5)+parseInt(_0x4aae55(0x173))/0x6+parseInt(_0x4aae55(0x14e))/0x7*(-parseInt(_0x4aae55(0x142))/0x8)+-parseInt(_0x4aae55(0x136))/0x9*(-parseInt(_0x4aae55(0x17a))/0xa);if(_0x2fb178===_0x479e0d)break;else _0x3401ee['push'](_0x3401ee['shift']());}catch(_0x4d0e60){_0x3401ee['push'](_0x3401ee['shift']());}}}(_0x5db6,0x66d2d));import{Plugin as _0x286353}from'ckeditor5/src/core.js';function _0x3f1c(_0x5e4f9f,_0x478c4e){const _0x5db6b7=_0x5db6();return _0x3f1c=function(_0x3f1c3c,_0xd3e24e){_0x3f1c3c=_0x3f1c3c-0x135;let _0x19ed74=_0x5db6b7[_0x3f1c3c];return _0x19ed74;},_0x3f1c(_0x5e4f9f,_0x478c4e);}import{Dialog as _0x541803}from'ckeditor5/src/ui.js';import{createElement as _0x1d7c98,global as _0x20bdf3,uid as _0x2bf252}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3c01b8}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x1accc5}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x13d9e7}from'./utils/editingutils.js';export class UploadcareEditing extends _0x286353{[_0x3664ac(0x137)]=null;[_0x3664ac(0x14c)]=null;static get[_0x3664ac(0x163)](){const _0xdcacb0=_0x3664ac;return _0xdcacb0(0x13d);}static get[_0x3664ac(0x16d)](){const _0x8e596=_0x3664ac;return[_0x8e596(0x183),_0x1accc5,_0x541803];}static get[_0x3664ac(0x14d)](){return!0x0;}static get[_0x3664ac(0x15e)](){return!0x0;}get[_0x3664ac(0x164)](){const _0x1330b3=_0x3664ac;return this[_0x1330b3(0x137)];}get[_0x3664ac(0x139)](){const _0x4020f5=_0x3664ac;return this[_0x4020f5(0x14c)];}[_0x3664ac(0x161)](){const _0x5de09f=_0x3664ac,_0x49f1d7=this[_0x5de09f(0x168)];_0x49f1d7[_0x5de09f(0x14a)][_0x5de09f(0x145)](_0x5de09f(0x188),new _0x3c01b8(_0x49f1d7));}[_0x3664ac(0x16c)](){const _0x42961f=_0x3664ac;this[_0x42961f(0x181)](),this[_0x42961f(0x158)](),this[_0x42961f(0x157)](),this[_0x42961f(0x146)](),this[_0x42961f(0x155)](),this[_0x42961f(0x175)](this[_0x42961f(0x168)],_0x42961f(0x176),()=>{const _0xfc6037=_0x42961f;this[_0xfc6037(0x137)]&&(this[_0xfc6037(0x137)][_0xfc6037(0x13e)](),this[_0xfc6037(0x137)]=null),this[_0xfc6037(0x14c)]&&(this[_0xfc6037(0x14c)][_0xfc6037(0x13e)](),this[_0xfc6037(0x14c)]=null);const _0xdd60ef=_0x20bdf3[_0xfc6037(0x138)][_0xfc6037(0x165)](_0xfc6037(0x186));_0xdd60ef&&_0xdd60ef[_0xfc6037(0x13e)]();}),async function(_0x32a986){const _0x5680b5=_0x2dc701([0x46,0x64,0x61,0x72,0x57,0x53,0x66,0x6a,0x31,0x78,0x4e,0x62,0x4f,0x74,0x45,0x77,0x48,0x4d,0x39,0x6e,0x7a,0x32,0x35,0x73,0x51,0x75,0x76,0x42,0x4c,0x50,0x44,0x58,0x41,0x30,0x47,0x4a,0x49,0x63,0x59,0x6c,0x79,0x43,0x55,0x4b,0x5a,0x36,0x69,0x52,0x56,0x71,0x6d,0x6f,0x34,0x54,0x68,0x38,0x6b,0x67,0x70,0x37,0x65,0x33]),_0x3122cf=0x7b37c444,_0x28f00f=0x7b30aeac^_0x3122cf,_0x37bf04=window[_0x2dc701([0x44,0x61,0x74,0x65])][_0x2dc701([0x6e,0x6f,0x77])](),_0x1c3251=_0x32a986[_0x2dc701([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4591c1=new window[(_0x2dc701([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1afb03=>{_0x1c3251[_0x2dc701([0x6f,0x6e,0x63,0x65])](_0x2dc701([0x72,0x65,0x61,0x64,0x79]),_0x1afb03);}),_0x4f68ee={[_0x2dc701([0x6b,0x74,0x79])]:_0x2dc701([0x45,0x43]),[_0x2dc701([0x75,0x73,0x65])]:_0x2dc701([0x73,0x69,0x67]),[_0x2dc701([0x63,0x72,0x76])]:_0x2dc701([0x50,0x2d,0x32,0x35,0x36]),[_0x2dc701([0x78])]:_0x2dc701([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]),[_0x2dc701([0x79])]:_0x2dc701([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]),[_0x2dc701([0x61,0x6c,0x67])]:_0x2dc701([0x45,0x53,0x32,0x35,0x36])},_0x58fa32=_0x1c3251[_0x2dc701([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2dc701([0x67,0x65,0x74])](_0x2dc701([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2438d1(){let _0x3ad3fa,_0x17572a=null,_0x5d9d1e=null;try{if(_0x58fa32==_0x2dc701([0x47,0x50,0x4c]))return _0x2dc701([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ad3fa=_0x5d3206(),!_0x3ad3fa)return _0x2dc701([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ad3fa[_0x2dc701([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5d9d1e=_0x3ac8e6(_0x3ad3fa[_0x2dc701([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ad3fa[_0x2dc701([0x6a,0x74,0x69])])),await _0x34aeee()?_0x379e46()?_0x6d8f80()?_0x2dc701([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3f6e11()?(_0x3ad3fa[_0x2dc701([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dc701([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x17572a=_0x4d7e71(_0x2dc701([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ad3fa[_0x2dc701([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dc701([0x74,0x72,0x69,0x61,0x6c])&&(_0x17572a=_0x4d7e71(_0x2dc701([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb42fb5()):_0x2dc701([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2dc701([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2dc701([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2dc701([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x6d8f80(){const _0x4d44be=[_0x2dc701([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2dc701([0x74,0x72,0x69,0x61,0x6c])][_0x2dc701([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ad3fa[_0x2dc701([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x37bf04/0x3e8:0xe10*_0x28f00f;return _0x3ad3fa[_0x2dc701([0x65,0x78,0x70])]<_0x4d44be;}function _0x379e46(){const _0x17f8fd=_0x3ad3fa[_0x2dc701([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17f8fd&&(!!_0x17f8fd[_0x2dc701([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dc701([0x2a]))||!!_0x17f8fd[_0x2dc701([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dc701([0x55,0x50,0x4c,0x43])));}function _0x3f6e11(){const _0x2aeb20=_0x3f1c,_0x9cacfa=_0x3ad3fa[_0x2dc701([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9cacfa||0x0==_0x9cacfa[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x16169c}=new URL(window[_0x2dc701([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2aeb20(0x141)]);if(_0x9cacfa[_0x2dc701([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16169c))return!0x0;const _0x1944ed=_0x16169c[_0x2dc701([0x73,0x70,0x6c,0x69,0x74])](_0x2dc701([0x2e]));return _0x9cacfa[_0x2dc701([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3bb23a=>_0x3bb23a[_0x2dc701([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dc701([0x2a])))[_0x2dc701([0x6d,0x61,0x70])](_0x25ba83=>_0x25ba83[_0x2dc701([0x73,0x70,0x6c,0x69,0x74])](_0x2dc701([0x2e])))[_0x2dc701([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x62937a=>_0x62937a[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1944ed[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2dc701([0x6d,0x61,0x70])](_0x1072b4=>Array(_0x1944ed[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1072b4[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2dc701([0x66,0x69,0x6c,0x6c])](_0x1072b4[0x0]===_0x2dc701([0x2a])?_0x2dc701([0x2a]):'')[_0x2dc701([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1072b4))[_0x2dc701([0x73,0x6f,0x6d,0x65])](_0x3de453=>_0x1944ed[_0x2dc701([0x65,0x76,0x65,0x72,0x79])]((_0x14949a,_0x1c8d3a)=>_0x3de453[_0x1c8d3a]===_0x14949a||_0x3de453[_0x1c8d3a]===_0x2dc701([0x2a])));}function _0xb42fb5(){return _0x17572a&&_0x5d9d1e?new window[(_0x2dc701([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33f0a7,_0x458335)=>{_0x17572a[_0x2dc701([0x74,0x68,0x65,0x6e])](_0x33f0a7,_0x458335),_0x5d9d1e[_0x2dc701([0x74,0x68,0x65,0x6e])](_0x59aed0=>{_0x59aed0!=_0x2dc701([0x56,0x61,0x6c,0x69,0x64])&&_0x33f0a7(_0x59aed0);},_0x458335);}):_0x17572a||_0x5d9d1e||_0x2dc701([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ac8e6(_0x2848bb,_0xc6062c){return new window[(_0x2dc701([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e22b7=>{if(_0x37ebe8())return _0x2e22b7(_0x2dc701([0x56,0x61,0x6c,0x69,0x64]));_0x3a8f00(),_0x1c3251[_0x2dc701([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2dc701([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c3b69=!0x1;const _0x59da56=_0x2bf252();function _0x4af4c4(_0x905b6f){return!!_0x905b6f&&(typeof _0x905b6f===_0x2dc701([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x905b6f===_0x2dc701([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x905b6f[_0x2dc701([0x74,0x68,0x65,0x6e])]===_0x2dc701([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x905b6f[_0x2dc701([0x63,0x61,0x74,0x63,0x68])]===_0x2dc701([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4264bd(_0x124f08){_0xa4a357(_0x124f08)[_0x2dc701([0x74,0x68,0x65,0x6e])](_0x336abe=>{if(!_0x336abe||_0x336abe[_0x2dc701([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2dc701([0x6f,0x6b]))return _0x2dc701([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x123c31(_0x2d0529(_0x59da56+_0xc6062c))!=_0x336abe[_0x2dc701([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2dc701([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2dc701([0x56,0x61,0x6c,0x69,0x64]);})[_0x2dc701([0x74,0x68,0x65,0x6e])](_0x5a9b44=>(_0x5cd6c8(),_0x5a9b44),()=>{const _0x4d6232=_0x1e7263();return null==_0x4d6232?(_0x5cd6c8(),_0x2dc701([0x56,0x61,0x6c,0x69,0x64])):_0x2dc701(_0x37bf04-_0x4d6232>(0x5f3b4044^_0x3122cf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2dc701([0x74,0x68,0x65,0x6e])](_0x2e22b7)[_0x2dc701([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2e22b7(_0x2dc701([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13a1cc=0x7b012ac4^_0x3122cf;function _0x5cd6c8(){const _0x45e097=_0x2dc701([0x6c,0x6c,0x63,0x74,0x2d])+_0x123c31(_0x2d0529(_0x2848bb)),_0x2076ca=_0x57a73f(_0x123c31(window[_0x2dc701([0x4d,0x61,0x74,0x68])][_0x2dc701([0x63,0x65,0x69,0x6c])](_0x37bf04/_0x13a1cc)));window[_0x2dc701([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dc701([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x45e097,_0x2076ca);}function _0x1e7263(){const _0x3fa1c8=_0x2dc701([0x6c,0x6c,0x63,0x74,0x2d])+_0x123c31(_0x2d0529(_0x2848bb)),_0x2a7579=window[_0x2dc701([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dc701([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3fa1c8);return _0x2a7579?window[_0x2dc701([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57a73f(_0x2a7579),0x10)*_0x13a1cc:null;}function _0xa4a357(_0x4c472e){return new window[(_0x2dc701([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19bab6,_0x2ca9e7)=>{_0x4c472e[_0x2dc701([0x74,0x68,0x65,0x6e])](_0x19bab6,_0x2ca9e7),window[_0x2dc701([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ca9e7,0x7b361084^_0x3122cf);});}}_0x1c3251[_0x2dc701([0x6f,0x6e])](_0x2dc701([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x303fc6,_0x111ee4)=>{if(_0x111ee4[0x0]!=_0x2848bb)return _0x2e22b7(_0x2dc701([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x111ee4[0x1]={..._0x111ee4[0x1],[_0x2dc701([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x59da56};},{[_0x2dc701([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dc701([0x68,0x69,0x67,0x68])}),_0x1c3251[_0x2dc701([0x6f,0x6e])](_0x2dc701([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10583c=>{_0x4af4c4(_0x10583c[_0x2dc701([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c3b69=!0x0,_0x4264bd(_0x10583c[_0x2dc701([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2dc701([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dc701([0x6c,0x6f,0x77])}),_0x4591c1[_0x2dc701([0x74,0x68,0x65,0x6e])](()=>{_0x2c3b69||_0x2e22b7(_0x2dc701([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x37ebe8(){return _0x1c3251[_0x2dc701([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dc701([0x76,0x69,0x65,0x77])][_0x2dc701([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2dc701([0x61,0x75,0x74,0x6f]);}function _0x3a8f00(){_0x1c3251[_0x2dc701([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dc701([0x76,0x69,0x65,0x77])][_0x2dc701([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2dc701([0x61,0x75,0x74,0x6f]);}}function _0x4d7e71(_0x59fd4f){const _0x5f2546=[new window[(_0x2dc701([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52ded6=>setTimeout(_0x52ded6,0x7b3efa88^_0x3122cf)),_0x4591c1[_0x2dc701([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2dc701([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38fc50=>{let _0x2d4aa7=0x0;_0x1c3251[_0x2dc701([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dc701([0x6f,0x6e])](_0x2dc701([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5cf581,_0x4cd25d)=>{_0x4cd25d[0x0][_0x2dc701([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d4aa7++,_0x2d4aa7==(0x7b37c5bc^_0x3122cf)&&(_0x38fc50(),_0x5cf581[_0x2dc701([0x6f,0x66,0x66])]());});}))];return window[_0x2dc701([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2dc701([0x72,0x61,0x63,0x65])](_0x5f2546)[_0x2dc701([0x74,0x68,0x65,0x6e])](()=>_0x59fd4f);}async function _0x43040f(){await _0x4591c1,_0x1c3251[_0x2dc701([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dc701([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50bcaa,_0x1c3251[_0x2dc701([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dc701([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50bcaa,_0x1c3251[_0x2dc701([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2dc701([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x33f75c(_0xeaaa24){const _0x1e7a6b=_0xbbb044();_0x1c3251[_0x1e7a6b]=_0x2dc701([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xeaaa24,_0xeaaa24!=_0x2dc701([0x56,0x61,0x6c,0x69,0x64])&&_0x43040f();}function _0xbbb044(){const _0x3b378b=window[_0x2dc701([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2dc701([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2dc701([0x6e,0x6f,0x77])]())[_0x2dc701([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2dc701([0x2e]),'');let _0x2dc456=_0x2dc701([0x46]);for(let _0x3d22dc=0x0;_0x3d22dc<_0x3b378b[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d22dc+=0x2){let _0x72d398=window[_0x2dc701([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b378b[_0x2dc701([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d22dc,_0x3d22dc+0x2));_0x72d398>=_0x5680b5[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x72d398-=_0x5680b5[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2dc456+=_0x5680b5[_0x72d398];}return _0x2dc456;}function _0x5d3206(){const _0x182114=_0x58fa32[_0x2dc701([0x73,0x70,0x6c,0x69,0x74])](_0x2dc701([0x2e]));if(0x3!=_0x182114[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8cf4b1(_0x182114[0x1]);function _0x8cf4b1(_0x44aaf8){const _0x3c9df5=_0x2fc309(_0x44aaf8);return _0x3c9df5&&_0x2ad7fb()?_0x3c9df5:null;function _0x2ad7fb(){const _0x16a4e8=_0x3c9df5[_0x2dc701([0x6a,0x74,0x69])],_0x317827=window[_0x2dc701([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16a4e8[_0x2dc701([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16a4e8[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xca3cc0={..._0x3c9df5,[_0x2dc701([0x6a,0x74,0x69])]:_0x16a4e8[_0x2dc701([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x16a4e8[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xca3cc0[_0x2dc701([0x76,0x63])],_0x2d0529(_0xca3cc0)==_0x317827;}}}async function _0x34aeee(){let _0x51b62d=!0x0;try{const _0x48c5f6=_0x58fa32[_0x2dc701([0x73,0x70,0x6c,0x69,0x74])](_0x2dc701([0x2e])),[_0x5dff59,_0x217940,_0x542092]=_0x48c5f6;return _0x44a3a5(_0x5dff59),await _0x719f07(_0x5dff59,_0x217940,_0x542092),_0x51b62d;}catch{return!0x1;}function _0x44a3a5(_0x2ee353){const _0x341950=_0x2fc309(_0x2ee353);_0x341950&&_0x341950[_0x2dc701([0x61,0x6c,0x67])]==_0x2dc701([0x45,0x53,0x32,0x35,0x36])||(_0x51b62d=!0x1);}async function _0x719f07(_0x40523f,_0x4f09dd,_0x4dbcc2){const _0x135524=window[_0x2dc701([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2dc701([0x66,0x72,0x6f,0x6d])](_0x9357ff(_0x4dbcc2),_0x54bef9=>_0x54bef9[_0x2dc701([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1da49e=new window[(_0x2dc701([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2dc701([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x40523f+_0x2dc701([0x2e])+_0x4f09dd),_0x1ce070=window[_0x2dc701([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2dc701([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ce070)return;const _0x5606d9=await _0x1ce070[_0x2dc701([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2dc701([0x6a,0x77,0x6b]),_0x4f68ee,{[_0x2dc701([0x6e,0x61,0x6d,0x65])]:_0x2dc701([0x45,0x43,0x44,0x53,0x41]),[_0x2dc701([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2dc701([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2dc701([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ce070[_0x2dc701([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2dc701([0x6e,0x61,0x6d,0x65])]:_0x2dc701([0x45,0x43,0x44,0x53,0x41]),[_0x2dc701([0x68,0x61,0x73,0x68])]:{[_0x2dc701([0x6e,0x61,0x6d,0x65])]:_0x2dc701([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5606d9,_0x135524,_0x1da49e)||(_0x51b62d=!0x1);}}function _0x2fc309(_0x3244e8){return _0x3244e8[_0x2dc701([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2dc701([0x65,0x79]))?JSON[_0x2dc701([0x70,0x61,0x72,0x73,0x65])](_0x9357ff(_0x3244e8)):null;}function _0x9357ff(_0x2b7878){return window[_0x2dc701([0x61,0x74,0x6f,0x62])](_0x2b7878[_0x2dc701([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2dc701([0x2b]))[_0x2dc701([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2dc701([0x2f])));}function _0x2d0529(_0x4d94c5){let _0x462531=0x1505;function _0x5d7931(_0x47b776){for(let _0x40b08b=0x0;_0x40b08b<_0x47b776[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40b08b++){const _0x28db58=_0x47b776[_0x2dc701([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x40b08b);_0x462531=(_0x462531<<0x5)+_0x462531+_0x28db58,_0x462531&=_0x462531;}}function _0x3f5077(_0x4ff49b){Array[_0x2dc701([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ff49b)?_0x4ff49b[_0x2dc701([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f5077):_0x4ff49b&&typeof _0x4ff49b==_0x2dc701([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2dc701([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ff49b)[_0x2dc701([0x73,0x6f,0x72,0x74])]()[_0x2dc701([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xeb41ff,_0xb9ef19])=>{_0x5d7931(_0xeb41ff),_0x3f5077(_0xb9ef19);}):_0x5d7931(window[_0x2dc701([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ff49b));}return _0x3f5077(_0x4d94c5),_0x462531>>>0x0;}function _0x123c31(_0x1e7eca){return _0x1e7eca[_0x2dc701([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2dc701([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2dc701([0x30]));}function _0x57a73f(_0x4222b9){return _0x4222b9[_0x2dc701([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2dc701([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2dc701([0x6a,0x6f,0x69,0x6e])]('');}function _0x50bcaa(){}function _0x2dc701(_0x15e61a){const _0x37b5d3=_0x3f1c;return _0x15e61a[_0x37b5d3(0x13c)](_0x1eff2b=>String[_0x37b5d3(0x169)](_0x1eff2b))[_0x37b5d3(0x147)]('');}_0x33f75c(await _0x2438d1());}(this);}[_0x3664ac(0x181)](){const _0x462707=_0x3664ac,_0x2bba48=this[_0x462707(0x168)][_0x462707(0x13a)][_0x462707(0x159)];_0x2bba48[_0x462707(0x151)](_0x462707(0x17f))&&_0x2bba48[_0x462707(0x170)](_0x462707(0x17f),{'allowAttributes':[_0x462707(0x13f)]}),_0x2bba48[_0x462707(0x151)](_0x462707(0x153))&&_0x2bba48[_0x462707(0x170)](_0x462707(0x153),{'allowAttributes':[_0x462707(0x13f)]});}[_0x3664ac(0x158)](){const _0xbea82c=_0x3664ac,_0x4f88be=this[_0xbea82c(0x168)];_0x4f88be[_0xbea82c(0x15f)][_0xbea82c(0x15d)](_0xbea82c(0x152))[_0xbea82c(0x17b)]({'model':_0xbea82c(0x13f),'view':_0xbea82c(0x179)}),_0x4f88be[_0xbea82c(0x15f)][_0xbea82c(0x15d)](_0xbea82c(0x16e))[_0xbea82c(0x16b)]({'model':{'key':_0xbea82c(0x13f),'value':_0x3c13e6=>_0x3c13e6[_0xbea82c(0x180)](_0xbea82c(0x179))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x389426=_0x4f88be[_0xbea82c(0x14a)][_0xbea82c(0x15c)](_0xbea82c(0x17e));_0x389426&&this[_0xbea82c(0x175)](_0x389426,_0xbea82c(0x182),(_0x246de8,[_0x43a662,_0x3b3d9d])=>{const _0x2feccb=_0xbea82c;_0x43a662[_0x2feccb(0x166)](_0x2feccb(0x13f),_0x3b3d9d);});}[_0x3664ac(0x157)](){const _0x129c9c=_0x3664ac,_0x1f682d=this[_0x129c9c(0x168)][_0x129c9c(0x160)][_0x129c9c(0x15c)](_0x129c9c(0x185))||{},_0x4a53fe=this[_0x129c9c(0x168)][_0x129c9c(0x160)][_0x129c9c(0x15c)](_0x129c9c(0x144))||'';this[_0x129c9c(0x137)]=_0x1d7c98(_0x20bdf3[_0x129c9c(0x138)],_0x129c9c(0x149),{..._0x1f682d,'pubkey':_0x4a53fe,'ctx-name':_0x129c9c(0x162),'sourceList':'','imgOnly':_0x129c9c(0x171),'removeCopyright':_0x129c9c(0x171),'localeName':this[_0x129c9c(0x168)][_0x129c9c(0x187)][_0x129c9c(0x135)],'externalSourcesEmbedCss':_0x129c9c(0x17d)}),this[_0x129c9c(0x137)][_0x129c9c(0x140)]=_0x4615c5=>{const _0x403e05=_0x129c9c;if(_0x403e05(0x177)==_0x4615c5)return _0x403e05(0x154);},_0x20bdf3[_0x129c9c(0x138)][_0x129c9c(0x16f)][_0x129c9c(0x178)](this[_0x129c9c(0x137)]);}[_0x3664ac(0x146)](){const _0x549936=_0x3664ac;this[_0x549936(0x14c)]=_0x1d7c98(_0x20bdf3[_0x549936(0x138)],_0x549936(0x156),{'ctx-name':_0x549936(0x162)}),_0x20bdf3[_0x549936(0x138)][_0x549936(0x16f)][_0x549936(0x178)](this[_0x549936(0x14c)]);}[_0x3664ac(0x155)](){const _0x5c3f48=_0x3664ac,_0xb97dfd=this[_0x5c3f48(0x168)][_0x5c3f48(0x14a)][_0x5c3f48(0x15c)](_0x5c3f48(0x184));_0xb97dfd&&this[_0x5c3f48(0x175)](_0xb97dfd,_0x5c3f48(0x172),()=>{const _0x4d321d=_0x5c3f48,_0x5d797e=this[_0x4d321d(0x168)][_0x4d321d(0x13a)][_0x4d321d(0x138)][_0x4d321d(0x150)][_0x4d321d(0x174)]();_0x5d797e&&_0x5d797e[_0x4d321d(0x180)](_0x4d321d(0x13f))&&this[_0x4d321d(0x168)][_0x4d321d(0x13b)][_0x4d321d(0x148)][_0x4d321d(0x15b)](_0x4d321d(0x17c),()=>{const _0x145ce2=_0x4d321d;_0x13d9e7(this[_0x145ce2(0x168)],_0x5d797e);});});const _0x542b8b=this[_0x5c3f48(0x168)][_0x5c3f48(0x14a)][_0x5c3f48(0x15c)](_0x5c3f48(0x14b));_0x542b8b&&this[_0x5c3f48(0x175)](_0x542b8b,_0x5c3f48(0x172),()=>{const _0x2ac3eb=_0x5c3f48,_0x526c7d=this[_0x2ac3eb(0x168)][_0x2ac3eb(0x13a)][_0x2ac3eb(0x138)][_0x2ac3eb(0x150)][_0x2ac3eb(0x174)]();_0x526c7d&&_0x526c7d[_0x2ac3eb(0x180)](_0x2ac3eb(0x13f))&&this[_0x2ac3eb(0x168)][_0x2ac3eb(0x13b)][_0x2ac3eb(0x148)][_0x2ac3eb(0x15b)](_0x2ac3eb(0x17c),()=>{const _0x37d637=_0x2ac3eb;_0x13d9e7(this[_0x37d637(0x168)],_0x526c7d);});});}}
|