@ckeditor/ckeditor5-uploadcare 45.0.0-alpha.3 → 45.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x4a10d,Command as _0x356a34}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x7a3d8,IconGooglePhotos as _0x3bd15f,IconGoogleDrive as _0x1c8d5d,IconFacebook as _0xf8ba5a,IconDropbox as _0x20eb75,IconUploadcareLink as _0x58bc4a,IconUploadcareImageUpload as _0x5de80d,IconError as et,IconUploadcareImageEdit as _0x31e1f3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x7b8817,MenuBarMenuListItemButtonView as _0x5440c0,View as _0x4d5fa9,FocusCycler as _0x377ba5,Dialog as _0xa8fec7,DialogViewPosition as _0xd04362,SpinnerView as _0x41628b,IconView as at,Notification as _0x4a47a8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2107a9,DomEmitterMixin as _0x389868,global as _0x5654e2,getAncestors as _0xb78d68,ObservableMixin as _0x4860f8,createElement as _0x189c4f,uid as _0x1ad438}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x50c30b}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x10eeed,info as _0x328c7b}from'@uploadcare/upload-client';import*as _0x3859c3 from'@uploadcare/file-uploader';var o=function(_0x53e392){return _0x53e392['Local']='local',_0x53e392['URL']='url',_0x53e392['Dropbox']='dropbox',_0x53e392['GDrive']='gdrive',_0x53e392['Facebook']='facebook',_0x53e392['GPhotos']='gphotos',_0x53e392['OneDrive']='onedrive',_0x53e392;}({});function _(_0x29ec7f,_0x37e7a9,_0x48a917){const t=_0x29ec7f['t'],_0x227c2c=_0x29ec7f['t'];switch(_0x37e7a9){case o['Local']:return{'text':_0x227c2c('Insert'===_0x48a917?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x227c2c('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x48a917?_0x227c2c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x227c2c('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x48a917?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x48a917?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x48a917?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x48a917?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x48a917?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x37e7a9;}}class e extends _0x4a10d{['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 _0x21879d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x43771c;for(const _0x1774b7 in _0x21879d){const _0x13a048=_0x1774b7,_0x55c671=_0x21879d[_0x13a048];if('uploadcareLicenseKeyValid'==_0x55c671||'uploadcareLicenseKeyInvalid'==_0x55c671||'uploadcareLicenseKeyExpired'==_0x55c671||'uploadcareLicenseKeyDomainLimit'==_0x55c671||'uploadcareLicenseKeyNotAllowed'==_0x55c671||'uploadcareLicenseKeyEvaluationLimit'==_0x55c671||'uploadcareLicenseKeyTrialLimit'==_0x55c671||'uploadcareLicenseKeyUsageLimit'==_0x55c671){delete _0x21879d[_0x13a048],_0x43771c=_0x55c671,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x43771c&&_0x21879d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x43771c&&_0x21879d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x43771c&&_0x21879d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x43771c&&_0x21879d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x43771c&&_0x21879d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x43771c&&_0x21879d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x43771c&&_0x21879d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x572c58}=this,_0x49cea1=_0x572c58['commands']['get']('uploadcare');if(!_0x49cea1)return;const _0x18a8da=this['_normalizeConfigSourceList'](_0x572c58['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x394a43,_0x442074)=>{const _0x111bba=this['_getIntegrationKey'](_0x442074['type']);return _0x394a43[_0x111bba]||(_0x394a43[_0x111bba]=[]),_0x394a43[_0x111bba]['push'](_0x442074),_0x394a43;},{});_0x572c58['plugins']['has']('ImageInsertUI')&&_0x572c58['commands']['get']('uploadcare')&&Object['entries'](_0x18a8da)['forEach'](([_0x44d7ac,_0x95df30])=>{_0x572c58['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x44d7ac,'observable':()=>_0x49cea1,'buttonViewCreator':()=>this['_createToolbarButton'](_0x95df30),'formViewCreator':()=>this['_createDropdownButtons'](_0x95df30),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x95df30),'override':'assetManager'!==_0x44d7ac});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x21bd0c){const {locale:_0x41caa9}=this['editor'];return _0x21bd0c['map'](_0x2dd401=>{const _0x4795b8=_(_0x41caa9,_0x2dd401,'Insert');switch(_0x2dd401){case o['Local']:return{'icon':_0x5de80d,'type':o['Local'],..._0x4795b8};case o['URL']:return{'icon':_0x58bc4a,'type':o['URL'],..._0x4795b8};case o['Dropbox']:return{'icon':_0x20eb75,'type':o['Dropbox'],..._0x4795b8};case o['Facebook']:return{'icon':_0xf8ba5a,'type':o['Facebook'],..._0x4795b8};case o['GDrive']:return{'icon':_0x1c8d5d,'type':o['GDrive'],..._0x4795b8};case o['GPhotos']:return{'icon':_0x3bd15f,'type':o['GPhotos'],..._0x4795b8};case o['OneDrive']:return{'icon':_0x7a3d8,'type':o['OneDrive'],..._0x4795b8};}});}['_getIntegrationKey'](_0x302b51){switch(_0x302b51){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3333ca,_0x421c76){const _0x387beb=this['editor'],_0x348c67=new _0x3333ca(_0x387beb['locale']),_0x5cee3b=_0x387beb['commands']['get']('uploadcare');return _0x348c67['bind']('isEnabled')['to'](_0x5cee3b),_0x348c67['on']('execute',()=>{_0x5cee3b['execute'](_0x421c76);}),_0x348c67;}['_createToolbarButton'](_0x2a4dc2){const {locale:_0x22e8b1}=this['editor'],_0x26829c=this['editor']['plugins']['get']('ImageInsertUI'),_0x530e4b=_0x2a4dc2[0x0],_0x2de7bb=this['_createButton'](_0x7b8817,_0x530e4b['type']);return _0x2de7bb['icon']=_0x530e4b['icon'],_0x2de7bb['bind']('label')['to'](_0x26829c,'isImageSelected',_0x47d55e=>_(_0x22e8b1,_0x530e4b['type'],_0x47d55e?'Replace':'Insert')['text']),_0x2de7bb['tooltip']=!0x0,_0x2de7bb;}['_createDropdownButtons'](_0x3612a2){const {locale:_0x42172a}=this['editor'],_0x5e554e=this['editor']['plugins']['get']('ImageInsertUI');return _0x3612a2['map'](_0x180897=>{const _0x988104=this['_createButton'](_0x7b8817,_0x180897['type']);return _0x988104['withText']=!0x0,_0x988104['icon']=_0x180897['icon'],_0x988104['bind']('label')['to'](_0x5e554e,'isImageSelected',_0x5337f6=>_(_0x42172a,_0x180897['type'],_0x5337f6?'Replace':'Insert')['text']),_0x988104;});}['_createMenuBarButtons'](_0x5a91e3){return _0x5a91e3['map'](_0x739e63=>{const _0x52f36b=this['_createButton'](_0x5440c0,_0x739e63['type']);return _0x52f36b['icon']=_0x739e63['icon'],_0x52f36b['label']=_0x739e63['shortText'],_0x52f36b;});}}class q extends _0x4d5fa9{['focusTracker'];['focusCycler'];constructor(_0x3d31df){super(_0x3d31df),this['focusTracker']=new _0x2107a9(),this['focusCycler']=new _0x377ba5({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x295804){super(_0x295804),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x26f177,_0x10ca44){const _0x5c8c43=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xc7ef88=>_0xc7ef88<=_0x10ca44)['map'](_0xc61a5=>_0x26f177['replace'](/\/$/,'')+'/-/resize/'+_0xc61a5+'x/\x20'+_0xc61a5+'w');return{'imageFallbackUrl':_0x26f177,'imageSources':[{'srcset':_0x5c8c43['join'](',\x20'),'sizes':'(max-width:\x20'+_0x10ca44+'px)\x20100vw,\x20'+_0x10ca44+'px','type':'image/webp'}]};}function A(_0x165b8e,_0x4a07f2,_0x583d98){const _0x4c1b80=_0x165b8e['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4c1b80?parseInt(_0x4c1b80[0x1],0xa):_0x4a07f2,'height':_0x4c1b80?parseInt(_0x4c1b80[0x2],0xa):_0x583d98};}function m(_0x9b4098,_0x2864dd){const _0x5cf26f=Object['create'](_0x389868),_0x273663=_0x9b4098['plugins']['get']('ImageUtils'),_0x3c1087=_0x9b4098['editing']['mapper']['toViewElement'](_0x2864dd),_0x49b04a=_0x273663['findViewImgElement'](_0x3c1087),_0x5b0478=_0x9b4098['editing']['view']['domConverter']['viewToDom'](_0x49b04a),_0x4b5685=_0x2864dd['getAttribute']('width'),_0x40b544=_0x2864dd['getAttribute']('height'),_0x114d39='image-processing';_0x9b4098['editing']['view']['change'](_0x11b968=>{_0x11b968['addClass'](_0x114d39,_0x3c1087),_0x11b968['setStyle']('aspect-ratio',_0x4b5685+'/'+_0x40b544,_0x49b04a);}),_0x5cf26f['listenTo'](_0x5b0478,'load',()=>{_0x5cf26f['stopListening'](_0x5b0478,'load'),_0x9b4098['editing']['view']['change'](_0x82f541=>{_0x82f541['removeClass'](_0x114d39,_0x3c1087),_0x82f541['removeStyle']('aspect-ratio',_0x49b04a);});});}function V(_0x5a37ac){if(Array['isArray'](_0x5a37ac)){const _0x5c5ce9=_0x5a37ac['map'](V);return _0x16e5ed=>_0x5c5ce9['some'](_0x442216=>_0x442216(_0x16e5ed));}if('origin'==_0x5a37ac){const _0xd4d629=_0x5654e2['window']['location']['origin'];return _0x163229=>new URL(_0x163229,_0x5654e2['document']['baseURI'])['origin']==_0xd4d629;}return'function'==typeof _0x5a37ac?_0x5a37ac:_0x5a37ac instanceof RegExp?_0x234a01=>!(!_0x234a01['match'](_0x5a37ac)&&!_0x234a01['replace'](/^https?:\/\//,'')['match'](_0x5a37ac)):()=>!0x1;}function F(_0x797ce8,_0xcd7b49){return _0xb78d68(_0x797ce8['target'])['includes'](_0xcd7b49);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x4860f8(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x444889,_0x35903a,_0xc0d461){super(),this['_editor']=_0x444889,this['_editing']=_0x35903a,this['_dialog']=_0x444889['plugins']['get'](_0xa8fec7),this['_api']=_0x35903a['ctxElement']['getAPI'](),this['_type']=_0xc0d461,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:_0x225929,model:_0x3660e2}=this['_editor'],_0x174265=_0x3660e2['document']['selection']['getSelectedElement'](),_0x2d0aa1=_0x174265&&(_0x174265['is']('element','imageBlock')||_0x174265['is']('element','imageInline'));this['_formView']=new S(_0x225929),this['_dialog']['show']({'id':'uploadCare','icon':_0x5de80d,'title':_(_0x225929,this['_type'],_0x2d0aa1?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xd04362['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5be7d7=>!F(_0x5be7d7,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2cc852}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5cc248=>{const _0x1ee718=_0x2cc852['length'];for(const _0x4188b2 of _0x2cc852){const _0x3c7761=_0x4188b2===_0x2cc852[_0x1ee718-0x1],{cdnUrl:_0x6c13d7,fileInfo:_0x1e057e}=_0x4188b2;if(!_0x6c13d7||!_0x1e057e)continue;const {width:_0x40c9e6,height:_0x469735}=_0x1e057e['imageInfo'],_0x40e1ab=A(_0x6c13d7,_0x40c9e6,_0x469735),_0x1376f6=E(_0x6c13d7,_0x40e1ab['width']),_0x3dc5e0={'id':_0x1e057e['uuid'],'type':'image','attributes':{'imageDimension':_0x40e1ab,..._0x1376f6}};this['_insertAsset'](_0x3dc5e0,_0x3c7761,_0x5cc248);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x59f853=>{'idle'===_0x59f853['detail']['status']&&!_0x59f853['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x18dbfe,_0x202a95,_0x32e1cb){const _0xdf6c56=this['_editor']['model']['document']['selection'],_0x2dbc32=_0xdf6c56['getSelectedElement'](),_0x5c63a9=!(!_0x2dbc32||!_0x2dbc32['is']('element','imageInline'));_0x32e1cb['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x18dbfe,_0x5c63a9),_0x202a95||_0x32e1cb['setSelection'](_0xdf6c56['getLastPosition']());}['_insertImage'](_0x2704cd,_0x4796be){const _0x151bdb=this['_editor'],{imageDimension:_0x2dbaad,imageFallbackUrl:_0x117b9b,imageSources:_0x52f5d7}=_0x2704cd['attributes'];_0x151bdb['execute']('insertImage',{'imageType':_0x4796be?'imageInline':null,'source':{'uploadcareImageId':_0x2704cd['id'],'src':_0x117b9b,'sources':_0x52f5d7,..._0x2dbaad}});}}class n extends _0x356a34{['_editing'];['_controller']=null;static get['requires'](){return[_0xa8fec7,i];}constructor(_0x2f9b96){super(_0x2f9b96),this['_editing']=_0x2f9b96['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x37ec32){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x37ec32);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x43f8cb,publicKey:_0x53da89,signal:_0x1b7bb0,onProgress:_0x1fb04a}){return _0x10eeed(_0x43f8cb,{'publicKey':_0x53da89,'store':'auto','signal':_0x1b7bb0,'onProgress':_0x1fb04a});}static['getInfo'](_0xdbea67,_0x1c0153){return _0x328c7b(_0xdbea67,_0x1c0153);}}class p extends _0x4a10d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x50c30b,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2f6162=this['editor'];if(!!!_0x2f6162['config']['get']('uploadcare'))return;_0x2f6162['plugins']['get'](_0x50c30b)['createUploadAdapter']=_0x1ffb26=>new x(_0x1ffb26,_0x2f6162),_0x2f6162['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x385266,{imageElement:_0x4eb8f0,data:_0x261610})=>{_0x2f6162['model']['change'](_0x278f06=>{_0x278f06['setAttribute']('uploadcareImageId',_0x261610['uploadcareImageId'],_0x4eb8f0);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x3134cc,_0x4e4045){this['loader']=_0x3134cc,this['editor']=_0x4e4045,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x465b9a=this['editor']['config']['get']('uploadcare.pubkey'),_0x4f3960=await this['loader']['file'];return C['upload']({'file':_0x4f3960,'publicKey':_0x465b9a,'signal':this['controller']['signal'],'onProgress':_0x199e00=>{_0x199e00&&_0x199e00['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x199e00['value']);}})['then'](async _0x78bd77=>{const {imageFallbackUrl:_0x31d02b,imageSources:_0x212c82}=E(_0x78bd77['cdnUrl'],_0x78bd77['imageInfo']['width']);return{'uploadcareImageId':_0x78bd77['uuid'],'default':_0x31d02b,'sources':_0x212c82};})['catch'](()=>{const _0x421c89=t('Cannot\x20upload\x20file:')+('\x20'+_0x4f3960['name']+'.');return Promise['reject'](_0x421c89);});}['abort'](){this['controller']['abort']();}}class i extends _0x4a10d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0xa8fec7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x3cef84=this['editor'];_0x3cef84['commands']['add']('uploadcare',new n(_0x3cef84));}['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 _0x16d14f=_0x5654e2['document']['querySelector']('input[uploadcare-file-input]');_0x16d14f&&_0x16d14f['remove']();}),async function(_0xc20389){const _0x13550f=_0x68d8a0([0x58,0x6a,0x4d,0x46,0x44,0x68,0x5a,0x31,0x4f,0x6c,0x63,0x69,0x6e,0x35,0x36,0x72,0x6b,0x6f,0x47,0x50,0x41,0x4c,0x78,0x49,0x30,0x39,0x65,0x54,0x59,0x7a,0x53,0x76,0x45,0x61,0x6d,0x38,0x74,0x51,0x37,0x56,0x4b,0x79,0x71,0x32,0x34,0x67,0x66,0x62,0x55,0x52,0x70,0x48,0x64,0x43,0x33,0x75,0x4a,0x77,0x73,0x57,0x4e,0x42]),_0x4f1471=0x4b3a6f5f,_0x8b574f=0x4b3d0cdf^_0x4f1471,_0x3f644a=window[_0x68d8a0([0x44,0x61,0x74,0x65])][_0x68d8a0([0x6e,0x6f,0x77])](),_0x2e97c0=_0xc20389[_0x68d8a0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b0aab=new window[(_0x68d8a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53dd07=>{_0x2e97c0[_0x68d8a0([0x6f,0x6e,0x63,0x65])](_0x68d8a0([0x72,0x65,0x61,0x64,0x79]),_0x53dd07);}),_0x300fa1={[_0x68d8a0([0x6b,0x74,0x79])]:_0x68d8a0([0x45,0x43]),[_0x68d8a0([0x75,0x73,0x65])]:_0x68d8a0([0x73,0x69,0x67]),[_0x68d8a0([0x63,0x72,0x76])]:_0x68d8a0([0x50,0x2d,0x32,0x35,0x36]),[_0x68d8a0([0x78])]:_0x68d8a0([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]),[_0x68d8a0([0x79])]:_0x68d8a0([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]),[_0x68d8a0([0x61,0x6c,0x67])]:_0x68d8a0([0x45,0x53,0x32,0x35,0x36])},_0x5dda9e=_0x2e97c0[_0x68d8a0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x68d8a0([0x67,0x65,0x74])](_0x68d8a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1bdd52(){let _0x1de98d,_0x523083=null,_0x205175=null;try{if(_0x5dda9e==_0x68d8a0([0x47,0x50,0x4c]))return _0x68d8a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1de98d=_0x524f91(),!_0x1de98d)return _0x68d8a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1de98d[_0x68d8a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x205175=_0x5d4704(_0x1de98d[_0x68d8a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1de98d[_0x68d8a0([0x6a,0x74,0x69])])),await _0x12bbb3()?_0xb7e0ea()?_0x507ad4()?_0x68d8a0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2fe9e2()?(_0x1de98d[_0x68d8a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x68d8a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x523083=_0x21d155(_0x68d8a0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1de98d[_0x68d8a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x68d8a0([0x74,0x72,0x69,0x61,0x6c])&&(_0x523083=_0x21d155(_0x68d8a0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x10940e()):_0x68d8a0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x68d8a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x68d8a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2469f3){return _0x68d8a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x507ad4(){const _0x194a79=[_0x68d8a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x68d8a0([0x74,0x72,0x69,0x61,0x6c])][_0x68d8a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1de98d[_0x68d8a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3f644a/0x3e8:0xe10*_0x8b574f;return _0x1de98d[_0x68d8a0([0x65,0x78,0x70])]<_0x194a79;}function _0xb7e0ea(){const _0x2cf6cf=_0x1de98d[_0x68d8a0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2cf6cf&&(!!_0x2cf6cf[_0x68d8a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x68d8a0([0x2a]))||!!_0x2cf6cf[_0x68d8a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x68d8a0([0x55,0x50,0x4c,0x43])));}function _0x2fe9e2(){const _0x468ec3=_0x1de98d[_0x68d8a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x468ec3||0x0==_0x468ec3[_0x68d8a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x34902b}=new URL(window[_0x68d8a0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x468ec3[_0x68d8a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34902b))return!0x0;const _0x1a26c7=_0x34902b[_0x68d8a0([0x73,0x70,0x6c,0x69,0x74])](_0x68d8a0([0x2e]));return _0x468ec3[_0x68d8a0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x547ca1=>_0x547ca1[_0x68d8a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x68d8a0([0x2a])))[_0x68d8a0([0x6d,0x61,0x70])](_0x50f6cb=>_0x50f6cb[_0x68d8a0([0x73,0x70,0x6c,0x69,0x74])](_0x68d8a0([0x2e])))[_0x68d8a0([0x73,0x6f,0x6d,0x65])](_0x32c2eb=>_0x1a26c7[_0x68d8a0([0x65,0x76,0x65,0x72,0x79])]((_0x3c3384,_0x3cdc9e)=>_0x32c2eb[_0x3cdc9e]===_0x3c3384||_0x32c2eb[_0x3cdc9e]===_0x68d8a0([0x2a])));}function _0x10940e(){return _0x523083&&_0x205175?new window[(_0x68d8a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39d05d,_0x5b38d8)=>{_0x523083[_0x68d8a0([0x74,0x68,0x65,0x6e])](_0x39d05d,_0x5b38d8),_0x205175[_0x68d8a0([0x74,0x68,0x65,0x6e])](_0x5dfd4e=>{_0x5dfd4e!=_0x68d8a0([0x56,0x61,0x6c,0x69,0x64])&&_0x39d05d(_0x5dfd4e);},_0x5b38d8);}):_0x523083||_0x205175||_0x68d8a0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5d4704(_0x391bb2,_0x33d93f){return new window[(_0x68d8a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25d7b0=>{if(_0x412f04())return _0x25d7b0(_0x68d8a0([0x56,0x61,0x6c,0x69,0x64]));_0x5c94ea(),_0x2e97c0[_0x68d8a0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x68d8a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19e1bf=!0x1;const _0x271bac=_0x1ad438();function _0x5e3d53(_0x513cc4){return!!_0x513cc4&&(typeof _0x513cc4===_0x68d8a0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x513cc4===_0x68d8a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x513cc4[_0x68d8a0([0x74,0x68,0x65,0x6e])]===_0x68d8a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x513cc4[_0x68d8a0([0x63,0x61,0x74,0x63,0x68])]===_0x68d8a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4fe480(_0x1eb68c){_0x4f3775(_0x1eb68c)[_0x68d8a0([0x74,0x68,0x65,0x6e])](_0x36a5c1=>{if(!_0x36a5c1||_0x36a5c1[_0x68d8a0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x68d8a0([0x6f,0x6b]))return _0x68d8a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a8052(_0x8455dc(_0x271bac+_0x33d93f))!=_0x36a5c1[_0x68d8a0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x68d8a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x68d8a0([0x56,0x61,0x6c,0x69,0x64]);})[_0x68d8a0([0x74,0x68,0x65,0x6e])](_0x2249d1=>(_0xced930(),_0x2249d1),()=>{const _0x34e7c4=_0xf92da2();return null==_0x34e7c4?(_0xced930(),_0x68d8a0([0x56,0x61,0x6c,0x69,0x64])):_0x68d8a0(_0x3f644a-_0x34e7c4>(0x6f36eb5f^_0x4f1471)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x68d8a0([0x74,0x68,0x65,0x6e])](_0x25d7b0)[_0x68d8a0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x25d7b0(_0x68d8a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x285c20=0x4b0c81df^_0x4f1471;function _0xced930(){const _0x395da1=_0x68d8a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a8052(_0x8455dc(_0x391bb2)),_0xb30d3a=_0x1125d1(_0x4a8052(window[_0x68d8a0([0x4d,0x61,0x74,0x68])][_0x68d8a0([0x63,0x65,0x69,0x6c])](_0x3f644a/_0x285c20)));window[_0x68d8a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x68d8a0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x395da1,_0xb30d3a);}function _0xf92da2(){const _0x45e4b4=_0x68d8a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a8052(_0x8455dc(_0x391bb2)),_0x5dcefe=window[_0x68d8a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x68d8a0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x45e4b4);return _0x5dcefe?window[_0x68d8a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1125d1(_0x5dcefe),0x10)*_0x285c20:null;}function _0x4f3775(_0x3d1312){return new window[(_0x68d8a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x523acc,_0x2726a0)=>{_0x3d1312[_0x68d8a0([0x74,0x68,0x65,0x6e])](_0x523acc,_0x2726a0),window[_0x68d8a0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2726a0,0x4b3bbb9f^_0x4f1471);});}}_0x2e97c0[_0x68d8a0([0x6f,0x6e])](_0x68d8a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x634b1c,_0x36170f)=>{if(_0x36170f[0x0]!=_0x391bb2)return _0x25d7b0(_0x68d8a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36170f[0x1]={..._0x36170f[0x1],[_0x68d8a0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x271bac};},{[_0x68d8a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x68d8a0([0x68,0x69,0x67,0x68])}),_0x2e97c0[_0x68d8a0([0x6f,0x6e])](_0x68d8a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x57638e=>{_0x5e3d53(_0x57638e[_0x68d8a0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19e1bf=!0x0,_0x4fe480(_0x57638e[_0x68d8a0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x68d8a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x68d8a0([0x6c,0x6f,0x77])}),_0x4b0aab[_0x68d8a0([0x74,0x68,0x65,0x6e])](()=>{_0x19e1bf||_0x25d7b0(_0x68d8a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x412f04(){return _0x2e97c0[_0x68d8a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x68d8a0([0x76,0x69,0x65,0x77])][_0x68d8a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x68d8a0([0x61,0x75,0x74,0x6f]);}function _0x5c94ea(){_0x2e97c0[_0x68d8a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x68d8a0([0x76,0x69,0x65,0x77])][_0x68d8a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x68d8a0([0x61,0x75,0x74,0x6f]);}}function _0x21d155(_0x8f2974){const _0x54421d=[new window[(_0x68d8a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31ed24=>setTimeout(_0x31ed24,0x4b335193^_0x4f1471)),_0x4b0aab[_0x68d8a0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x68d8a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ef63c=>{let _0x5def4b=0x0;_0x2e97c0[_0x68d8a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x68d8a0([0x6f,0x6e])](_0x68d8a0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x538c22,_0x577142)=>{_0x577142[0x0][_0x68d8a0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5def4b++,_0x5def4b==(0x4b3a6ea7^_0x4f1471)&&(_0x3ef63c(),_0x538c22[_0x68d8a0([0x6f,0x66,0x66])]());});}))];return window[_0x68d8a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x68d8a0([0x72,0x61,0x63,0x65])](_0x54421d)[_0x68d8a0([0x74,0x68,0x65,0x6e])](()=>_0x8f2974);}async function _0x1520ba(){await _0x4b0aab,_0x2e97c0[_0x68d8a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x68d8a0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51803e,_0x2e97c0[_0x68d8a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x68d8a0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51803e,_0x2e97c0[_0x68d8a0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x68d8a0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8b3344(_0x38bbef){const _0x34fa80=_0x3cdd9c();_0x2e97c0[_0x34fa80]=_0x68d8a0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x38bbef,_0x38bbef!=_0x68d8a0([0x56,0x61,0x6c,0x69,0x64])&&_0x1520ba();}function _0x3cdd9c(){const _0x4b9ba4=window[_0x68d8a0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x68d8a0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x68d8a0([0x6e,0x6f,0x77])]())[_0x68d8a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x68d8a0([0x2e]),'');let _0x142619=_0x68d8a0([0x58]);for(let _0x415bf7=0x0;_0x415bf7<_0x4b9ba4[_0x68d8a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x415bf7+=0x2){let _0x591aa9=window[_0x68d8a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b9ba4[_0x68d8a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x415bf7,_0x415bf7+0x2));_0x591aa9>=_0x13550f[_0x68d8a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x591aa9-=_0x13550f[_0x68d8a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x142619+=_0x13550f[_0x591aa9];}return _0x142619;}function _0x524f91(){const _0x294931=_0x5dda9e[_0x68d8a0([0x73,0x70,0x6c,0x69,0x74])](_0x68d8a0([0x2e]));if(0x3!=_0x294931[_0x68d8a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e7c81(_0x294931[0x1]);function _0x1e7c81(_0x3bf227){const _0x106526=_0x176271(_0x3bf227);return _0x106526&&_0x3c9db0()?_0x106526:null;function _0x3c9db0(){const _0x4fb83b=_0x106526[_0x68d8a0([0x6a,0x74,0x69])],_0x34b597=window[_0x68d8a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fb83b[_0x68d8a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fb83b[_0x68d8a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7ced84={..._0x106526,[_0x68d8a0([0x6a,0x74,0x69])]:_0x4fb83b[_0x68d8a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4fb83b[_0x68d8a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7ced84[_0x68d8a0([0x76,0x63])],_0x8455dc(_0x7ced84)==_0x34b597;}}}async function _0x12bbb3(){let _0x15a8f1=!0x0;try{const _0x3b88fb=_0x5dda9e[_0x68d8a0([0x73,0x70,0x6c,0x69,0x74])](_0x68d8a0([0x2e])),[_0x2d15c6,_0x2ecb8c,_0x16b51a]=_0x3b88fb;return _0x358c41(_0x2d15c6),await _0x451d30(_0x2d15c6,_0x2ecb8c,_0x16b51a),_0x15a8f1;}catch(_0x1839e3){return!0x1;}function _0x358c41(_0x4aaf92){const _0xbc3266=_0x176271(_0x4aaf92);_0xbc3266&&_0xbc3266[_0x68d8a0([0x61,0x6c,0x67])]==_0x68d8a0([0x45,0x53,0x32,0x35,0x36])||(_0x15a8f1=!0x1);}async function _0x451d30(_0x20953c,_0xfc22e1,_0x3cd126){const _0x1fafb5=window[_0x68d8a0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x68d8a0([0x66,0x72,0x6f,0x6d])](_0x1485cf(_0x3cd126),_0x34d0b5=>_0x34d0b5[_0x68d8a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5c30f1=new window[(_0x68d8a0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x68d8a0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x20953c+_0x68d8a0([0x2e])+_0xfc22e1),_0x5887d6=window[_0x68d8a0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x68d8a0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5887d6)return;const _0x3c67f2=await _0x5887d6[_0x68d8a0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x68d8a0([0x6a,0x77,0x6b]),_0x300fa1,{[_0x68d8a0([0x6e,0x61,0x6d,0x65])]:_0x68d8a0([0x45,0x43,0x44,0x53,0x41]),[_0x68d8a0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x68d8a0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x68d8a0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5887d6[_0x68d8a0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x68d8a0([0x6e,0x61,0x6d,0x65])]:_0x68d8a0([0x45,0x43,0x44,0x53,0x41]),[_0x68d8a0([0x68,0x61,0x73,0x68])]:{[_0x68d8a0([0x6e,0x61,0x6d,0x65])]:_0x68d8a0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3c67f2,_0x1fafb5,_0x5c30f1)||(_0x15a8f1=!0x1);}}function _0x176271(_0x1834ab){return _0x1834ab[_0x68d8a0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x68d8a0([0x65,0x79]))?JSON[_0x68d8a0([0x70,0x61,0x72,0x73,0x65])](_0x1485cf(_0x1834ab)):null;}function _0x1485cf(_0x110fb4){return window[_0x68d8a0([0x61,0x74,0x6f,0x62])](_0x110fb4[_0x68d8a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x68d8a0([0x2b]))[_0x68d8a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x68d8a0([0x2f])));}function _0x8455dc(_0x2db7ee){let _0x18f5d6=0x1505;function _0x379833(_0x2f4cfc){for(let _0x587bd5=0x0;_0x587bd5<_0x2f4cfc[_0x68d8a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x587bd5++){const _0x2967ee=_0x2f4cfc[_0x68d8a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x587bd5);_0x18f5d6=(_0x18f5d6<<0x5)+_0x18f5d6+_0x2967ee,_0x18f5d6&=_0x18f5d6;}}function _0x5902e1(_0x51821e){Array[_0x68d8a0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x51821e)?_0x51821e[_0x68d8a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5902e1):_0x51821e&&typeof _0x51821e==_0x68d8a0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x68d8a0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x51821e)[_0x68d8a0([0x73,0x6f,0x72,0x74])]()[_0x68d8a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e526f,_0x4570d2])=>{_0x379833(_0x5e526f),_0x5902e1(_0x4570d2);}):_0x379833(window[_0x68d8a0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x51821e));}return _0x5902e1(_0x2db7ee),_0x18f5d6>>>0x0;}function _0x4a8052(_0x292483){return _0x292483[_0x68d8a0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x68d8a0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x68d8a0([0x30]));}function _0x1125d1(_0x47339e){return _0x47339e[_0x68d8a0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x68d8a0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x68d8a0([0x6a,0x6f,0x69,0x6e])]('');}function _0x51803e(){}function _0x68d8a0(_0x19da28){return _0x19da28['map'](_0x557c40=>String['fromCharCode'](_0x557c40))['join']('');}_0x8b3344(await _0x1bdd52());}(this);}['_initSchema'](){const _0x36e450=this['editor']['model']['schema'];_0x36e450['isRegistered']('imageBlock')&&_0x36e450['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x36e450['isRegistered']('imageInline')&&_0x36e450['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5e164a=this['editor'];_0x5e164a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5e164a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x191da6=>_0x191da6['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2cfe9a=_0x5e164a['commands']['get']('replaceImageSource');_0x2cfe9a&&this['listenTo'](_0x2cfe9a,'cleanupImage',(_0x5ab4bf,[_0x4c2e77,_0x161888])=>{_0x4c2e77['removeAttribute']('uploadcareImageId',_0x161888);});}['_initConfig'](){const _0x1fe727=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3c4fbf=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x189c4f(_0x5654e2['document'],'uc-config',{..._0x1fe727,'pubkey':_0x3c4fbf,'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']=_0x2cf79f=>{if('closeMax'==_0x2cf79f)return'#uc-icon-arrow-down';},_0x5654e2['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x189c4f(_0x5654e2['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x5654e2['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3aef17=this['editor']['commands']['get']('insertImage');_0x3aef17&&this['listenTo'](_0x3aef17,'execute',()=>{const _0x407813=this['editor']['model']['document']['selection']['getSelectedElement']();_0x407813&&_0x407813['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x407813);});});const _0x22973f=this['editor']['commands']['get']('uploadcareImageReplace');_0x22973f&&this['listenTo'](_0x22973f,'execute',()=>{const _0x56385f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x56385f&&_0x56385f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x56385f);});});}}class u extends _0x4a10d{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2278f9){super(_0x2278f9),_0x2278f9['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x3859c3['defineComponents'](_0x3859c3);}}class ta extends _0x4d5fa9{constructor(_0x177ea2){super(_0x177ea2);const t=_0x177ea2['t'],_0x909d0a=this['bindTemplate'],_0x212913=new _0x41628b();_0x212913['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':[_0x212913,{'text':_0x909d0a['to']('imageUploadProgress',_0x46cbfb=>t('Loading\x20image...')+'\x20('+(_0x46cbfb||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x4d5fa9{constructor(_0x743474){super(_0x743474);const t=_0x743474['t'];this['set']('errorType',null);const _0x1190ea=new _0x7b8817(_0x743474);_0x1190ea['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1190ea['withText']=!0x0,_0x1190ea['class']='ck-button-action',_0x1190ea['on']('execute',()=>{this['fire']('retry');}),_0x1190ea['bind']('isVisible')['to'](this,'errorType',_0xe239c1=>'NotFound'!==_0xe239c1);const _0xb507ce=new at();_0xb507ce['content']=et,_0xb507ce['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3608dd=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':[_0xb507ce,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3608dd['to']('errorType',_0x59def6=>t('NotFound'!==_0x59def6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1190ea]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x4d5fa9{constructor(_0x9c45ae,_0x358015){super(_0x9c45ae);const _0x1b22bc=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x358015,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1b22bc['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x103215,_0x153903,_0x4fc799){super(_0x103215),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x103215),this['_errorView']=new rt(_0x103215),this['_editingView']=new tt(_0x103215,_0x4fc799),this['_focusableView']=new _0x4d5fa9(_0x103215),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x153903),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'],_0x3a7794=>{this['_addUploadcareImageEditorListeners'](_0x3a7794);});}),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'](_0x1bb368,_0x5bee98){const _0x291414='uc-cloud-image-editor',_0x30e2ad=_0x1bb368['querySelector'](_0x291414);if(_0x30e2ad)return _0x5bee98(_0x30e2ad);const _0x2db96e=new MutationObserver(_0x2f8f5e=>{const _0x1702a7=_0x2f8f5e['filter'](_0x153189=>_0x153189['target']===_0x1bb368&&_0x153189['addedNodes']['length']>0x0&&_0x153189['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x291414);_0x1702a7['length']&&(_0x2db96e['disconnect'](),_0x5bee98(_0x1702a7[0x0]['addedNodes'][0x0]));});_0x2db96e['observe'](_0x1bb368,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5f3c09){_0x5f3c09['addEventListener']('apply',_0x3482a9=>{this['fire']('apply',{'imageSrc':_0x3482a9['detail']['cdnUrl']});}),_0x5f3c09['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4860f8(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x292c1a,_0x395f3e,_0x51cba3){super(),this['_editor']=_0x292c1a,this['_dialog']=_0x395f3e,this['_imageElement']=_0x51cba3,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 _0x1de138=this['_imageElement'],_0x2964c4=_0x1de138['getAttribute']('uploadcareImageId'),_0x1d0318=_0x1de138['getAttribute']('src');if(_0x2964c4)await this['_loadImageInfo'](_0x2964c4,_0x1d0318);else{if(this['_imageCache']['has'](_0x1d0318)){const _0x4fc90d=this['_imageCache']['get'](_0x1d0318);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4fc90d['url'],this['imageDimension']=_0x4fc90d['dimension'],this['imageId']=_0x4fc90d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x56d711}=this['_editor'],t=_0x56d711['t'],_0x2dd506=new Z(_0x56d711,this['imageStatus'],this['_attributes']);_0x2dd506['bind']('status')['to'](this,'imageStatus'),_0x2dd506['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2dd506['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2dd506['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2dd506,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x31e1f3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2dd506,'position':_0xd04362['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2dd506['focus']();},'onHide':()=>{_0x2dd506['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x19bc11=>!F(_0x19bc11,_0x2dd506['element'])}});}['_loadImageInfo'](_0xc405a,_0x530fb8){return C['getInfo'](_0xc405a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x29ad16=>{const {width:_0x24b5a6,height:_0xccadde}=_0x29ad16['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x530fb8,this['imageDimension']={'width':_0x24b5a6,'height':_0xccadde},this['imageId']=_0xc405a;})['catch'](_0x1e7bf1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1e7bf1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x460b93,_0x4fc6e6){return this['_getImageAsFile'](_0x460b93)['then'](_0x488426=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4fc6e6['signal'],'file':_0x488426,'onProgress':_0x4682f3=>{_0x4682f3&&_0x4682f3['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4682f3['value']));}}))['then'](_0xf1b4af=>{const {width:_0xc1567a,height:_0x414ea4}=_0xf1b4af['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xf1b4af['cdnUrl'],this['imageDimension']={'width':_0xc1567a,'height':_0x414ea4},this['imageId']=_0xf1b4af['uuid'],this['imageUploadProgress']=null;const _0x2900f0=_0x460b93['getAttribute']('src');this['_imageCache']['set'](_0x2900f0,{'id':_0xf1b4af['uuid'],'url':_0xf1b4af['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5e0da5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5e0da5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3feaa0,_0x4182e8){_0x3feaa0['on']('apply',(_0x3391d6,_0x37ec6f)=>{this['_replaceImage'](_0x4182e8,_0x37ec6f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3feaa0['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3feaa0['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x444338,_0x2c2878,_0x33aa36){const _0x1c86c4=this['_editor'],{width:_0x55f9c0,height:_0x8c7af9}=A(_0x2c2878,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x163633,imageSources:_0x6699a3}=E(_0x2c2878,_0x55f9c0);_0x1c86c4['model']['change'](_0x2b0324=>{if('$graveyard'===_0x444338['root']['rootName']){_0x1c86c4['execute']('insertImage',{'imageType':_0x444338['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x444338['getAttributes']()),'uploadcareImageId':_0x33aa36,'src':_0x163633,'sources':_0x6699a3,'width':_0x55f9c0,'height':_0x8c7af9}});const _0x2f28b0=_0x444338['getChildren']();_0x444338=_0x1c86c4['model']['document']['selection']['getSelectedElement']();for(const _0x3f007a of _0x2f28b0)_0x2b0324['append'](_0x2b0324['cloneElement'](_0x3f007a),_0x444338);}else _0x2b0324['setSelection'](_0x444338,'on'),_0x1c86c4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x444338['getAttributes']()),'uploadcareImageId':_0x33aa36,'src':_0x163633,'sources':_0x6699a3,'width':_0x55f9c0,'height':_0x8c7af9},_0x444338);_0x2b0324['setSelection'](_0x444338,'on');});}async['_getImageAsFile'](_0x31935f){const _0x219575=_0x5654e2['window'],_0x3ed9de=_0x5654e2['document']['location']['href'],_0x56e783=new _0x219575['URL'](_0x31935f['getAttribute']('src'),_0x3ed9de);if('data:'===_0x56e783['protocol']){const _0x14ce99=_0x56e783['href']['split'](','),_0x52650a=_0x14ce99[0x0]['match'](/:(.*?);/)[0x1],_0x3ccf10=_0x52650a['split']('/')[0x1],_0x51f0a4=_0x219575['atob'](_0x14ce99[_0x14ce99['length']-0x1]);let _0x5b36b3=_0x51f0a4['length'];const _0x41c41d=new _0x219575['Uint8Array'](_0x5b36b3);for(;_0x5b36b3--;)_0x41c41d[_0x5b36b3]=_0x51f0a4['charCodeAt'](_0x5b36b3);return new _0x219575['File']([_0x41c41d],'image.'+_0x3ccf10,{'type':_0x52650a});}const _0x3551b2=_0x56e783['href']['split']('/'),_0x1ed9a2=_0x3551b2[_0x3551b2['length']-0x1],_0xc148dd=_0x1ed9a2['split']('.')[0x1];return _0x219575['fetch'](_0x56e783['href'])['then'](_0x1936c4=>_0x1936c4['clone']()['blob']())['then'](_0x52351d=>new _0x219575['File']([_0x52351d],_0x1ed9a2,{'type':'image/'+_0xc148dd}));}}class J extends _0x356a34{['imageEditController'];static get['requires'](){return[_0xa8fec7];}['_isEditable'];constructor(_0x115af1){super(_0x115af1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1cf948){const _0xa6586e=V(_0x1cf948);return _0x445d9b=>!(!_0x445d9b||!_0x445d9b['is']('element','imageBlock')&&!_0x445d9b['is']('element','imageInline'))&&(!!_0x445d9b['hasAttribute']('uploadcareImageId')||!!_0x445d9b['hasAttribute']('src')&&_0xa6586e(_0x445d9b['getAttribute']('src')));}(_0x115af1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x508813=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x508813);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1013ff=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1013ff&&(_0x1013ff['is']('element','imageBlock')||_0x1013ff['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0xa8fec7),_0x1013ff),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x356a34{['refresh'](){const _0x32c1f5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x32c1f5&&(_0x32c1f5['is']('element','imageBlock')||_0x32c1f5['is']('element','imageInline')));}['execute'](_0x2a6c80){const _0x4627cd=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x313f75=>{_0x313f75['setAttributes'](_0x2a6c80,_0x4627cd),_0x313f75['removeAttribute']('srcset',_0x4627cd),_0x313f75['removeAttribute']('sizes',_0x4627cd);});}}class g extends _0x4a10d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x4a47a8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xaa6309}=this;_0xaa6309['commands']['add']('uploadcareImageEdit',new J(_0xaa6309)),_0xaa6309['commands']['add']('uploadcareImageReplace',new O(_0xaa6309));}}class j extends _0x4a10d{['_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 _0x55d5=this['editor'];_0x55d5['ui']['componentFactory']['add']('uploadcareImageEdit',_0xfda2a0=>{const _0x385f6d=_0x55d5['commands']['get']('uploadcareImageEdit'),_0x27d5e6=new _0x7b8817(_0xfda2a0),t=_0xfda2a0['t'];return _0x27d5e6['set']({'icon':_0x31e1f3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x27d5e6['bind']('isEnabled')['to'](_0x385f6d),_0x27d5e6['bind']('isOn')['to'](_0x385f6d,'isActive'),this['listenTo'](_0x27d5e6,'execute',()=>{_0x55d5['execute']('uploadcareImageEdit'),_0x55d5['editing']['view']['focus']();}),_0x27d5e6;}),this['_initConfig']();}['_initConfig'](){const _0x5a621c=_0x189c4f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5a621c),this['listenTo'](this['editor'],'destroy',()=>{_0x5a621c['remove']();});}}class P extends _0x4a10d{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x3f832c,Command as _0x1cbf3c}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3afa1d,IconGooglePhotos as _0x25f90c,IconGoogleDrive as _0x35b20f,IconFacebook as _0xe1844e,IconDropbox as _0xfe20df,IconUploadcareLink as _0x3cdd92,IconUploadcareImageUpload as _0x32913c,IconError as et,IconUploadcareImageEdit as _0x598dbc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5481b9,MenuBarMenuListItemButtonView as _0x9227ba,View as _0x20cea7,FocusCycler as _0x516a18,Dialog as _0x1e0d7e,DialogViewPosition as _0x49163a,SpinnerView as _0x12628c,IconView as at,Notification as _0x55a996}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x138ef7,DomEmitterMixin as _0x376a86,global as _0x508d8c,getAncestors as _0xd4ccb2,ObservableMixin as _0x4014d4,createElement as _0x19b262,uid as _0x48ea72}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3d055f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3e08a9,info as _0x417c81}from'@uploadcare/upload-client';import*as _0x1575d6 from'@uploadcare/file-uploader';var o=function(_0x27420a){return _0x27420a['Local']='local',_0x27420a['URL']='url',_0x27420a['Dropbox']='dropbox',_0x27420a['GDrive']='gdrive',_0x27420a['Facebook']='facebook',_0x27420a['GPhotos']='gphotos',_0x27420a['OneDrive']='onedrive',_0x27420a;}({});function _(_0x5ea7e5,_0x3a8b52,_0x1be1da){const t=_0x5ea7e5['t'],_0x241748=_0x5ea7e5['t'];switch(_0x3a8b52){case o['Local']:return{'text':_0x241748('Insert'===_0x1be1da?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x241748('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x1be1da?_0x241748('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x241748('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x1be1da?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x1be1da?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x1be1da?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x1be1da?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x1be1da?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3a8b52;}}class e extends _0x3f832c{['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 _0x4ae565=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x41c5a9;for(const _0x2f6ff0 in _0x4ae565){const _0x146e75=_0x2f6ff0,_0x245c91=_0x4ae565[_0x146e75];if('uploadcareLicenseKeyValid'==_0x245c91||'uploadcareLicenseKeyInvalid'==_0x245c91||'uploadcareLicenseKeyExpired'==_0x245c91||'uploadcareLicenseKeyDomainLimit'==_0x245c91||'uploadcareLicenseKeyNotAllowed'==_0x245c91||'uploadcareLicenseKeyEvaluationLimit'==_0x245c91||'uploadcareLicenseKeyTrialLimit'==_0x245c91||'uploadcareLicenseKeyUsageLimit'==_0x245c91){delete _0x4ae565[_0x146e75],_0x41c5a9=_0x245c91,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x41c5a9&&_0x4ae565['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x41c5a9&&_0x4ae565['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x41c5a9&&_0x4ae565['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x41c5a9&&_0x4ae565['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x41c5a9&&_0x4ae565['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x41c5a9&&_0x4ae565['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x41c5a9&&_0x4ae565['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x13f4cd}=this,_0xcab98d=_0x13f4cd['commands']['get']('uploadcare');if(!_0xcab98d)return;const _0x511530=this['_normalizeConfigSourceList'](_0x13f4cd['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x27d046,_0x3d3905)=>{const _0x4705c0=this['_getIntegrationKey'](_0x3d3905['type']);return _0x27d046[_0x4705c0]||(_0x27d046[_0x4705c0]=[]),_0x27d046[_0x4705c0]['push'](_0x3d3905),_0x27d046;},{});_0x13f4cd['plugins']['has']('ImageInsertUI')&&_0x13f4cd['commands']['get']('uploadcare')&&Object['entries'](_0x511530)['forEach'](([_0x10813e,_0x16a924])=>{_0x13f4cd['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x10813e,'observable':()=>_0xcab98d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x16a924),'formViewCreator':()=>this['_createDropdownButtons'](_0x16a924),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x16a924),'override':'assetManager'!==_0x10813e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5dd7a5){const {locale:_0x496583}=this['editor'];return _0x5dd7a5['map'](_0x3eec4d=>{const _0x356f9a=_(_0x496583,_0x3eec4d,'Insert');switch(_0x3eec4d){case o['Local']:return{'icon':_0x32913c,'type':o['Local'],..._0x356f9a};case o['URL']:return{'icon':_0x3cdd92,'type':o['URL'],..._0x356f9a};case o['Dropbox']:return{'icon':_0xfe20df,'type':o['Dropbox'],..._0x356f9a};case o['Facebook']:return{'icon':_0xe1844e,'type':o['Facebook'],..._0x356f9a};case o['GDrive']:return{'icon':_0x35b20f,'type':o['GDrive'],..._0x356f9a};case o['GPhotos']:return{'icon':_0x25f90c,'type':o['GPhotos'],..._0x356f9a};case o['OneDrive']:return{'icon':_0x3afa1d,'type':o['OneDrive'],..._0x356f9a};}});}['_getIntegrationKey'](_0x243afa){switch(_0x243afa){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1a458b,_0x2dc7b9){const _0x190077=this['editor'],_0x143cb2=new _0x1a458b(_0x190077['locale']),_0x273fd6=_0x190077['commands']['get']('uploadcare');return _0x143cb2['bind']('isEnabled')['to'](_0x273fd6),_0x143cb2['on']('execute',()=>{_0x273fd6['execute'](_0x2dc7b9);}),_0x143cb2;}['_createToolbarButton'](_0x1422b9){const {locale:_0xbb8354}=this['editor'],_0x35c1a7=this['editor']['plugins']['get']('ImageInsertUI'),_0x49638d=_0x1422b9[0x0],_0x1ea159=this['_createButton'](_0x5481b9,_0x49638d['type']);return _0x1ea159['icon']=_0x49638d['icon'],_0x1ea159['bind']('label')['to'](_0x35c1a7,'isImageSelected',_0x578ed5=>_(_0xbb8354,_0x49638d['type'],_0x578ed5?'Replace':'Insert')['text']),_0x1ea159['tooltip']=!0x0,_0x1ea159;}['_createDropdownButtons'](_0x19473a){const {locale:_0x1997db}=this['editor'],_0x305a62=this['editor']['plugins']['get']('ImageInsertUI');return _0x19473a['map'](_0x4bf058=>{const _0x2a4e10=this['_createButton'](_0x5481b9,_0x4bf058['type']);return _0x2a4e10['withText']=!0x0,_0x2a4e10['icon']=_0x4bf058['icon'],_0x2a4e10['bind']('label')['to'](_0x305a62,'isImageSelected',_0x12068f=>_(_0x1997db,_0x4bf058['type'],_0x12068f?'Replace':'Insert')['text']),_0x2a4e10;});}['_createMenuBarButtons'](_0x5bfbc2){return _0x5bfbc2['map'](_0x2da64d=>{const _0x32ff93=this['_createButton'](_0x9227ba,_0x2da64d['type']);return _0x32ff93['icon']=_0x2da64d['icon'],_0x32ff93['label']=_0x2da64d['shortText'],_0x32ff93;});}}class q extends _0x20cea7{['focusTracker'];['focusCycler'];constructor(_0x482357){super(_0x482357),this['focusTracker']=new _0x138ef7(),this['focusCycler']=new _0x516a18({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x5aa84b){super(_0x5aa84b),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x46ace7,_0x28f1f){const _0x450880=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xd4a708=>_0xd4a708<=_0x28f1f)['map'](_0x4bbf40=>_0x46ace7['replace'](/\/$/,'')+'/-/resize/'+_0x4bbf40+'x/\x20'+_0x4bbf40+'w');return{'imageFallbackUrl':_0x46ace7,'imageSources':[{'srcset':_0x450880['join'](',\x20'),'sizes':'(max-width:\x20'+_0x28f1f+'px)\x20100vw,\x20'+_0x28f1f+'px','type':'image/webp'}]};}function A(_0x8f9765,_0x48a8da,_0x25ae26){const _0x48fda1=_0x8f9765['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x48fda1?parseInt(_0x48fda1[0x1],0xa):_0x48a8da,'height':_0x48fda1?parseInt(_0x48fda1[0x2],0xa):_0x25ae26};}function m(_0x3bb5d7,_0x1abddf){const _0x330b2f=Object['create'](_0x376a86),_0x4252bf=_0x3bb5d7['plugins']['get']('ImageUtils'),_0xfac19a=_0x3bb5d7['editing']['mapper']['toViewElement'](_0x1abddf),_0x2c9aaa=_0x4252bf['findViewImgElement'](_0xfac19a),_0x45f0da=_0x3bb5d7['editing']['view']['domConverter']['viewToDom'](_0x2c9aaa),_0x4ae4be=_0x1abddf['getAttribute']('width'),_0x295123=_0x1abddf['getAttribute']('height'),_0x46b3f1='image-processing';_0x3bb5d7['editing']['view']['change'](_0x4e4022=>{_0x4e4022['addClass'](_0x46b3f1,_0xfac19a),_0x4e4022['setStyle']('aspect-ratio',_0x4ae4be+'/'+_0x295123,_0x2c9aaa);}),_0x330b2f['listenTo'](_0x45f0da,'load',()=>{_0x330b2f['stopListening'](_0x45f0da,'load'),_0x3bb5d7['editing']['view']['change'](_0x1b5a61=>{_0x1b5a61['removeClass'](_0x46b3f1,_0xfac19a),_0x1b5a61['removeStyle']('aspect-ratio',_0x2c9aaa);});});}function V(_0x5164ba){if(Array['isArray'](_0x5164ba)){const _0x14e711=_0x5164ba['map'](V);return _0x58fc44=>_0x14e711['some'](_0x379839=>_0x379839(_0x58fc44));}if('origin'==_0x5164ba){const _0x39f587=_0x508d8c['window']['location']['origin'];return _0x2b9f5f=>new URL(_0x2b9f5f,_0x508d8c['document']['baseURI'])['origin']==_0x39f587;}return'function'==typeof _0x5164ba?_0x5164ba:_0x5164ba instanceof RegExp?_0x1e9387=>!(!_0x1e9387['match'](_0x5164ba)&&!_0x1e9387['replace'](/^https?:\/\//,'')['match'](_0x5164ba)):()=>!0x1;}function F(_0x34c89a,_0x55f58a){return _0xd4ccb2(_0x34c89a['target'])['includes'](_0x55f58a);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4014d4(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2bc40c,_0x4bf409,_0x3db1db){super(),this['_editor']=_0x2bc40c,this['_editing']=_0x4bf409,this['_dialog']=_0x2bc40c['plugins']['get'](_0x1e0d7e),this['_api']=_0x4bf409['ctxElement']['getAPI'](),this['_type']=_0x3db1db,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:_0x4f057d,model:_0x153fdd}=this['_editor'],_0x2357cb=_0x153fdd['document']['selection']['getSelectedElement'](),_0x55f72a=_0x2357cb&&(_0x2357cb['is']('element','imageBlock')||_0x2357cb['is']('element','imageInline'));this['_formView']=new S(_0x4f057d),this['_dialog']['show']({'id':'uploadCare','icon':_0x32913c,'title':_(_0x4f057d,this['_type'],_0x55f72a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x49163a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x269549=>!F(_0x269549,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4f104f}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x211a49=>{const _0x222472=_0x4f104f['length'];for(const _0x5e66ac of _0x4f104f){const _0x5e28c0=_0x5e66ac===_0x4f104f[_0x222472-0x1],{cdnUrl:_0x58d8de,fileInfo:_0x209fe0}=_0x5e66ac;if(!_0x58d8de||!_0x209fe0)continue;const {width:_0x2afc88,height:_0x4e433e}=_0x209fe0['imageInfo'],_0x2828bd=A(_0x58d8de,_0x2afc88,_0x4e433e),_0x3ae4ee=E(_0x58d8de,_0x2828bd['width']),_0x55d632={'id':_0x209fe0['uuid'],'type':'image','attributes':{'imageDimension':_0x2828bd,..._0x3ae4ee}};this['_insertAsset'](_0x55d632,_0x5e28c0,_0x211a49);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x38a689=>{'idle'===_0x38a689['detail']['status']&&!_0x38a689['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1172f6,_0x1503e6,_0x946a04){const _0x2e251e=this['_editor']['model']['document']['selection'],_0x44b999=_0x2e251e['getSelectedElement'](),_0x508ee5=!(!_0x44b999||!_0x44b999['is']('element','imageInline'));_0x946a04['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1172f6,_0x508ee5),_0x1503e6||_0x946a04['setSelection'](_0x2e251e['getLastPosition']());}['_insertImage'](_0x1d61ac,_0x3e0e61){const _0xaf64dc=this['_editor'],{imageDimension:_0x52d85d,imageFallbackUrl:_0x313a09,imageSources:_0x32bb6b}=_0x1d61ac['attributes'];_0xaf64dc['execute']('insertImage',{'imageType':_0x3e0e61?'imageInline':null,'source':{'uploadcareImageId':_0x1d61ac['id'],'src':_0x313a09,'sources':_0x32bb6b,..._0x52d85d}});}}class n extends _0x1cbf3c{['_editing'];['_controller']=null;static get['requires'](){return[_0x1e0d7e,i];}constructor(_0x3bcb98){super(_0x3bcb98),this['_editing']=_0x3bcb98['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x573dd5){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x573dd5);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x2fa67a,publicKey:_0x356e27,signal:_0x22e737,onProgress:_0x4b71fc}){return _0x3e08a9(_0x2fa67a,{'publicKey':_0x356e27,'store':'auto','signal':_0x22e737,'onProgress':_0x4b71fc});}static['getInfo'](_0x53fba1,_0x23743f){return _0x417c81(_0x53fba1,_0x23743f);}}class p extends _0x3f832c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3d055f,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x34d37a=this['editor'];if(!!!_0x34d37a['config']['get']('uploadcare'))return;_0x34d37a['plugins']['get'](_0x3d055f)['createUploadAdapter']=_0x1ad073=>new x(_0x1ad073,_0x34d37a),_0x34d37a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x111f66,{imageElement:_0x458a8c,data:_0x14fae3})=>{_0x34d37a['model']['change'](_0x4ba87a=>{_0x4ba87a['setAttribute']('uploadcareImageId',_0x14fae3['uploadcareImageId'],_0x458a8c);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x4d28da,_0x14c497){this['loader']=_0x4d28da,this['editor']=_0x14c497,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5b6815=this['editor']['config']['get']('uploadcare.pubkey'),_0x5cdac1=await this['loader']['file'];return C['upload']({'file':_0x5cdac1,'publicKey':_0x5b6815,'signal':this['controller']['signal'],'onProgress':_0x1952c5=>{_0x1952c5&&_0x1952c5['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1952c5['value']);}})['then'](async _0x2ef744=>{const {imageFallbackUrl:_0x4981bd,imageSources:_0x1a8f55}=E(_0x2ef744['cdnUrl'],_0x2ef744['imageInfo']['width']);return{'uploadcareImageId':_0x2ef744['uuid'],'default':_0x4981bd,'sources':_0x1a8f55};})['catch'](()=>{const _0x9ef1ac=t('Cannot\x20upload\x20file:')+('\x20'+_0x5cdac1['name']+'.');return Promise['reject'](_0x9ef1ac);});}['abort'](){this['controller']['abort']();}}class i extends _0x3f832c{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x1e0d7e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x3ac08c=this['editor'];_0x3ac08c['commands']['add']('uploadcare',new n(_0x3ac08c));}['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 _0x2fbdbf=_0x508d8c['document']['querySelector']('input[uploadcare-file-input]');_0x2fbdbf&&_0x2fbdbf['remove']();}),async function(_0x4a061e){const _0xcf43d3=_0x1f504d([0x52,0x39,0x48,0x42,0x57,0x4c,0x5a,0x6c,0x44,0x62,0x53,0x71,0x6a,0x68,0x78,0x59,0x61,0x33,0x38,0x7a,0x67,0x65,0x63,0x37,0x73,0x32,0x41,0x70,0x56,0x49,0x64,0x66,0x6d,0x4e,0x54,0x31,0x76,0x69,0x74,0x4f,0x43,0x72,0x6b,0x6f,0x4a,0x34,0x4b,0x77,0x58,0x51,0x46,0x35,0x6e,0x36,0x75,0x4d,0x79,0x45,0x47,0x50,0x30,0x55]),_0x267d25=0x516c9fbc,_0x30153d=0x516bfc24^_0x267d25,_0x1020d2=window[_0x1f504d([0x44,0x61,0x74,0x65])][_0x1f504d([0x6e,0x6f,0x77])](),_0x2985cf=_0x4a061e[_0x1f504d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x307aae=new window[(_0x1f504d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a86ae=>{_0x2985cf[_0x1f504d([0x6f,0x6e,0x63,0x65])](_0x1f504d([0x72,0x65,0x61,0x64,0x79]),_0x2a86ae);}),_0x577023={[_0x1f504d([0x6b,0x74,0x79])]:_0x1f504d([0x45,0x43]),[_0x1f504d([0x75,0x73,0x65])]:_0x1f504d([0x73,0x69,0x67]),[_0x1f504d([0x63,0x72,0x76])]:_0x1f504d([0x50,0x2d,0x32,0x35,0x36]),[_0x1f504d([0x78])]:_0x1f504d([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]),[_0x1f504d([0x79])]:_0x1f504d([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]),[_0x1f504d([0x61,0x6c,0x67])]:_0x1f504d([0x45,0x53,0x32,0x35,0x36])},_0x38b94b=_0x2985cf[_0x1f504d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f504d([0x67,0x65,0x74])](_0x1f504d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x64b07d(){let _0x6286ba,_0xeccdcb=null,_0x5039ef=null;try{if(_0x38b94b==_0x1f504d([0x47,0x50,0x4c]))return _0x1f504d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x6286ba=_0x379bfe(),!_0x6286ba)return _0x1f504d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x6286ba[_0x1f504d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5039ef=_0x1a5b5c(_0x6286ba[_0x1f504d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x6286ba[_0x1f504d([0x6a,0x74,0x69])])),await _0x487240()?_0x596953()?_0x5d44eb()?_0x1f504d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4894a7()?(_0x6286ba[_0x1f504d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f504d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xeccdcb=_0x5f3a31(_0x1f504d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x6286ba[_0x1f504d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f504d([0x74,0x72,0x69,0x61,0x6c])&&(_0xeccdcb=_0x5f3a31(_0x1f504d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x149dca()):_0x1f504d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f504d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f504d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4be0a0){return _0x1f504d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d44eb(){const _0x598a3c=[_0x1f504d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f504d([0x74,0x72,0x69,0x61,0x6c])][_0x1f504d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6286ba[_0x1f504d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1020d2/0x3e8:0xe10*_0x30153d;return _0x6286ba[_0x1f504d([0x65,0x78,0x70])]<_0x598a3c;}function _0x596953(){const _0x130be0=_0x6286ba[_0x1f504d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x130be0&&(!!_0x130be0[_0x1f504d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f504d([0x2a]))||!!_0x130be0[_0x1f504d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f504d([0x55,0x50,0x4c,0x43])));}function _0x4894a7(){const _0x403cb2=_0x6286ba[_0x1f504d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x403cb2||0x0==_0x403cb2[_0x1f504d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5bbbc3}=new URL(window[_0x1f504d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x403cb2[_0x1f504d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bbbc3))return!0x0;const _0x237710=_0x5bbbc3[_0x1f504d([0x73,0x70,0x6c,0x69,0x74])](_0x1f504d([0x2e]));return _0x403cb2[_0x1f504d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41ad25=>_0x41ad25[_0x1f504d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f504d([0x2a])))[_0x1f504d([0x6d,0x61,0x70])](_0x434c2c=>_0x434c2c[_0x1f504d([0x73,0x70,0x6c,0x69,0x74])](_0x1f504d([0x2e])))[_0x1f504d([0x73,0x6f,0x6d,0x65])](_0x31ec22=>_0x237710[_0x1f504d([0x65,0x76,0x65,0x72,0x79])]((_0x3477ea,_0x56d1b2)=>_0x31ec22[_0x56d1b2]===_0x3477ea||_0x31ec22[_0x56d1b2]===_0x1f504d([0x2a])));}function _0x149dca(){return _0xeccdcb&&_0x5039ef?new window[(_0x1f504d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x537158,_0x1199ad)=>{_0xeccdcb[_0x1f504d([0x74,0x68,0x65,0x6e])](_0x537158,_0x1199ad),_0x5039ef[_0x1f504d([0x74,0x68,0x65,0x6e])](_0x24f9cf=>{_0x24f9cf!=_0x1f504d([0x56,0x61,0x6c,0x69,0x64])&&_0x537158(_0x24f9cf);},_0x1199ad);}):_0xeccdcb||_0x5039ef||_0x1f504d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a5b5c(_0x3b2a67,_0x2091dd){return new window[(_0x1f504d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3029d7=>{if(_0x308849())return _0x3029d7(_0x1f504d([0x56,0x61,0x6c,0x69,0x64]));_0x2696d9(),_0x2985cf[_0x1f504d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f504d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b2f1e=!0x1;const _0x1dc402=_0x48ea72();function _0x1295cd(_0xecf373){return!!_0xecf373&&(typeof _0xecf373===_0x1f504d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xecf373===_0x1f504d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xecf373[_0x1f504d([0x74,0x68,0x65,0x6e])]===_0x1f504d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xecf373[_0x1f504d([0x63,0x61,0x74,0x63,0x68])]===_0x1f504d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x126828(_0x3bde35){_0x4eaf4c(_0x3bde35)[_0x1f504d([0x74,0x68,0x65,0x6e])](_0x4ea2cc=>{if(!_0x4ea2cc||_0x4ea2cc[_0x1f504d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f504d([0x6f,0x6b]))return _0x1f504d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x250d41(_0x1d61f3(_0x1dc402+_0x2091dd))!=_0x4ea2cc[_0x1f504d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f504d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f504d([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f504d([0x74,0x68,0x65,0x6e])](_0x92430d=>(_0x257210(),_0x92430d),()=>{const _0x3cadf4=_0x1adfb2();return null==_0x3cadf4?(_0x257210(),_0x1f504d([0x56,0x61,0x6c,0x69,0x64])):_0x1f504d(_0x1020d2-_0x3cadf4>(0x75601bbc^_0x267d25)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f504d([0x74,0x68,0x65,0x6e])](_0x3029d7)[_0x1f504d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3029d7(_0x1f504d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x472fe3=0x515a713c^_0x267d25;function _0x257210(){const _0x404d70=_0x1f504d([0x6c,0x6c,0x63,0x74,0x2d])+_0x250d41(_0x1d61f3(_0x3b2a67)),_0x5b69ea=_0x4cd1c9(_0x250d41(window[_0x1f504d([0x4d,0x61,0x74,0x68])][_0x1f504d([0x63,0x65,0x69,0x6c])](_0x1020d2/_0x472fe3)));window[_0x1f504d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f504d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x404d70,_0x5b69ea);}function _0x1adfb2(){const _0x5b5e3a=_0x1f504d([0x6c,0x6c,0x63,0x74,0x2d])+_0x250d41(_0x1d61f3(_0x3b2a67)),_0x19d0c7=window[_0x1f504d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f504d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b5e3a);return _0x19d0c7?window[_0x1f504d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cd1c9(_0x19d0c7),0x10)*_0x472fe3:null;}function _0x4eaf4c(_0x51004e){return new window[(_0x1f504d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50886e,_0x47cac9)=>{_0x51004e[_0x1f504d([0x74,0x68,0x65,0x6e])](_0x50886e,_0x47cac9),window[_0x1f504d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x47cac9,0x516d4b7c^_0x267d25);});}}_0x2985cf[_0x1f504d([0x6f,0x6e])](_0x1f504d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52038d,_0x15d065)=>{if(_0x15d065[0x0]!=_0x3b2a67)return _0x3029d7(_0x1f504d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x15d065[0x1]={..._0x15d065[0x1],[_0x1f504d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1dc402};},{[_0x1f504d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f504d([0x68,0x69,0x67,0x68])}),_0x2985cf[_0x1f504d([0x6f,0x6e])](_0x1f504d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5c4986=>{_0x1295cd(_0x5c4986[_0x1f504d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b2f1e=!0x0,_0x126828(_0x5c4986[_0x1f504d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f504d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f504d([0x6c,0x6f,0x77])}),_0x307aae[_0x1f504d([0x74,0x68,0x65,0x6e])](()=>{_0x5b2f1e||_0x3029d7(_0x1f504d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x308849(){return _0x2985cf[_0x1f504d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f504d([0x76,0x69,0x65,0x77])][_0x1f504d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f504d([0x61,0x75,0x74,0x6f]);}function _0x2696d9(){_0x2985cf[_0x1f504d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f504d([0x76,0x69,0x65,0x77])][_0x1f504d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f504d([0x61,0x75,0x74,0x6f]);}}function _0x5f3a31(_0x340867){const _0x5bfd2b=[new window[(_0x1f504d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cdd47=>setTimeout(_0x4cdd47,0x5165a170^_0x267d25)),_0x307aae[_0x1f504d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f504d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x489733=>{let _0x4e7d1a=0x0;_0x2985cf[_0x1f504d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f504d([0x6f,0x6e])](_0x1f504d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x41c334,_0x196183)=>{_0x196183[0x0][_0x1f504d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4e7d1a++,_0x4e7d1a==(0x516c9e44^_0x267d25)&&(_0x489733(),_0x41c334[_0x1f504d([0x6f,0x66,0x66])]());});}))];return window[_0x1f504d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f504d([0x72,0x61,0x63,0x65])](_0x5bfd2b)[_0x1f504d([0x74,0x68,0x65,0x6e])](()=>_0x340867);}async function _0x20951d(){await _0x307aae,_0x2985cf[_0x1f504d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f504d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c7398,_0x2985cf[_0x1f504d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f504d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c7398,_0x2985cf[_0x1f504d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f504d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4928c2(_0xd900b0){const _0x1b5aef=_0x158d9b();_0x2985cf[_0x1b5aef]=_0x1f504d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xd900b0,_0xd900b0!=_0x1f504d([0x56,0x61,0x6c,0x69,0x64])&&_0x20951d();}function _0x158d9b(){const _0x3f06ac=window[_0x1f504d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f504d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f504d([0x6e,0x6f,0x77])]())[_0x1f504d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f504d([0x2e]),'');let _0x148d53=_0x1f504d([0x52]);for(let _0x5a0561=0x0;_0x5a0561<_0x3f06ac[_0x1f504d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a0561+=0x2){let _0x569a50=window[_0x1f504d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f06ac[_0x1f504d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a0561,_0x5a0561+0x2));_0x569a50>=_0xcf43d3[_0x1f504d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x569a50-=_0xcf43d3[_0x1f504d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x148d53+=_0xcf43d3[_0x569a50];}return _0x148d53;}function _0x379bfe(){const _0xc0d97c=_0x38b94b[_0x1f504d([0x73,0x70,0x6c,0x69,0x74])](_0x1f504d([0x2e]));if(0x3!=_0xc0d97c[_0x1f504d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4bb0af(_0xc0d97c[0x1]);function _0x4bb0af(_0x38c8fb){const _0x18e701=_0x4c86ba(_0x38c8fb);return _0x18e701&&_0x3d9082()?_0x18e701:null;function _0x3d9082(){const _0x3ced5c=_0x18e701[_0x1f504d([0x6a,0x74,0x69])],_0x3fdee3=window[_0x1f504d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ced5c[_0x1f504d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ced5c[_0x1f504d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3fa1ac={..._0x18e701,[_0x1f504d([0x6a,0x74,0x69])]:_0x3ced5c[_0x1f504d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ced5c[_0x1f504d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3fa1ac[_0x1f504d([0x76,0x63])],_0x1d61f3(_0x3fa1ac)==_0x3fdee3;}}}async function _0x487240(){let _0x3055eb=!0x0;try{const _0x1a4b33=_0x38b94b[_0x1f504d([0x73,0x70,0x6c,0x69,0x74])](_0x1f504d([0x2e])),[_0x5a379f,_0x17cab3,_0x1128eb]=_0x1a4b33;return _0x280303(_0x5a379f),await _0x3b3148(_0x5a379f,_0x17cab3,_0x1128eb),_0x3055eb;}catch(_0x199b02){return!0x1;}function _0x280303(_0x4ff3df){const _0xc4fe52=_0x4c86ba(_0x4ff3df);_0xc4fe52&&_0xc4fe52[_0x1f504d([0x61,0x6c,0x67])]==_0x1f504d([0x45,0x53,0x32,0x35,0x36])||(_0x3055eb=!0x1);}async function _0x3b3148(_0x36a686,_0x318ada,_0x494e38){const _0x5a3aac=window[_0x1f504d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f504d([0x66,0x72,0x6f,0x6d])](_0x5e7c39(_0x494e38),_0x1022a2=>_0x1022a2[_0x1f504d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9ce764=new window[(_0x1f504d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f504d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x36a686+_0x1f504d([0x2e])+_0x318ada),_0xfc5305=window[_0x1f504d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f504d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xfc5305)return;const _0x3700c3=await _0xfc5305[_0x1f504d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f504d([0x6a,0x77,0x6b]),_0x577023,{[_0x1f504d([0x6e,0x61,0x6d,0x65])]:_0x1f504d([0x45,0x43,0x44,0x53,0x41]),[_0x1f504d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f504d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f504d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xfc5305[_0x1f504d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f504d([0x6e,0x61,0x6d,0x65])]:_0x1f504d([0x45,0x43,0x44,0x53,0x41]),[_0x1f504d([0x68,0x61,0x73,0x68])]:{[_0x1f504d([0x6e,0x61,0x6d,0x65])]:_0x1f504d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3700c3,_0x5a3aac,_0x9ce764)||(_0x3055eb=!0x1);}}function _0x4c86ba(_0x284fb2){return _0x284fb2[_0x1f504d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f504d([0x65,0x79]))?JSON[_0x1f504d([0x70,0x61,0x72,0x73,0x65])](_0x5e7c39(_0x284fb2)):null;}function _0x5e7c39(_0x2a3129){return window[_0x1f504d([0x61,0x74,0x6f,0x62])](_0x2a3129[_0x1f504d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f504d([0x2b]))[_0x1f504d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f504d([0x2f])));}function _0x1d61f3(_0x34db9e){let _0x36785a=0x1505;function _0x237a0e(_0x2eb4f8){for(let _0x2298b6=0x0;_0x2298b6<_0x2eb4f8[_0x1f504d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2298b6++){const _0x1b1646=_0x2eb4f8[_0x1f504d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2298b6);_0x36785a=(_0x36785a<<0x5)+_0x36785a+_0x1b1646,_0x36785a&=_0x36785a;}}function _0x3e81a7(_0x1761b8){Array[_0x1f504d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1761b8)?_0x1761b8[_0x1f504d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3e81a7):_0x1761b8&&typeof _0x1761b8==_0x1f504d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f504d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1761b8)[_0x1f504d([0x73,0x6f,0x72,0x74])]()[_0x1f504d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x19deb0,_0x295ac0])=>{_0x237a0e(_0x19deb0),_0x3e81a7(_0x295ac0);}):_0x237a0e(window[_0x1f504d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1761b8));}return _0x3e81a7(_0x34db9e),_0x36785a>>>0x0;}function _0x250d41(_0xe669db){return _0xe669db[_0x1f504d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f504d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f504d([0x30]));}function _0x4cd1c9(_0x1ae255){return _0x1ae255[_0x1f504d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f504d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f504d([0x6a,0x6f,0x69,0x6e])]('');}function _0x5c7398(){}function _0x1f504d(_0xe3f1ed){return _0xe3f1ed['map'](_0x190844=>String['fromCharCode'](_0x190844))['join']('');}_0x4928c2(await _0x64b07d());}(this);}['_initSchema'](){const _0x1aff39=this['editor']['model']['schema'];_0x1aff39['isRegistered']('imageBlock')&&_0x1aff39['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1aff39['isRegistered']('imageInline')&&_0x1aff39['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5c24da=this['editor'];_0x5c24da['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5c24da['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x53a905=>_0x53a905['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x22717d=_0x5c24da['commands']['get']('replaceImageSource');_0x22717d&&this['listenTo'](_0x22717d,'cleanupImage',(_0x5a69b0,[_0x3672ca,_0x2a4d23])=>{_0x3672ca['removeAttribute']('uploadcareImageId',_0x2a4d23);});}['_initConfig'](){const _0x20ee74=this['editor']['config']['get']('uploadcare.uploader')||{},_0x52ef93=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x19b262(_0x508d8c['document'],'uc-config',{..._0x20ee74,'pubkey':_0x52ef93,'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']=_0x217f1e=>{if('closeMax'==_0x217f1e)return'#uc-icon-arrow-down';},_0x508d8c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x19b262(_0x508d8c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x508d8c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xa58e05=this['editor']['commands']['get']('insertImage');_0xa58e05&&this['listenTo'](_0xa58e05,'execute',()=>{const _0x32c094=this['editor']['model']['document']['selection']['getSelectedElement']();_0x32c094&&_0x32c094['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x32c094);});});const _0x27853a=this['editor']['commands']['get']('uploadcareImageReplace');_0x27853a&&this['listenTo'](_0x27853a,'execute',()=>{const _0x5ae4b2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5ae4b2&&_0x5ae4b2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5ae4b2);});});}}class u extends _0x3f832c{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1927fa){super(_0x1927fa),_0x1927fa['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x1575d6['defineComponents'](_0x1575d6);}}class ta extends _0x20cea7{constructor(_0x45b10a){super(_0x45b10a);const t=_0x45b10a['t'],_0x29aa28=this['bindTemplate'],_0x326749=new _0x12628c();_0x326749['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':[_0x326749,{'text':_0x29aa28['to']('imageUploadProgress',_0x4ed8ee=>t('Loading\x20image...')+'\x20('+(_0x4ed8ee||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x20cea7{constructor(_0x17097d){super(_0x17097d);const t=_0x17097d['t'];this['set']('errorType',null);const _0x137a4b=new _0x5481b9(_0x17097d);_0x137a4b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x137a4b['withText']=!0x0,_0x137a4b['class']='ck-button-action',_0x137a4b['on']('execute',()=>{this['fire']('retry');}),_0x137a4b['bind']('isVisible')['to'](this,'errorType',_0xcf4b40=>'NotFound'!==_0xcf4b40);const _0x1e2c20=new at();_0x1e2c20['content']=et,_0x1e2c20['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4d2005=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':[_0x1e2c20,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4d2005['to']('errorType',_0x5c11cf=>t('NotFound'!==_0x5c11cf?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x137a4b]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x20cea7{constructor(_0x19633e,_0x30b037){super(_0x19633e);const _0x3a323d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x30b037,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3a323d['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x606bc,_0x458865,_0x4220d4){super(_0x606bc),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x606bc),this['_errorView']=new rt(_0x606bc),this['_editingView']=new tt(_0x606bc,_0x4220d4),this['_focusableView']=new _0x20cea7(_0x606bc),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x458865),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'],_0x12fdac=>{this['_addUploadcareImageEditorListeners'](_0x12fdac);});}),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'](_0x2affdb,_0x19dd86){const _0x1aa7e8='uc-cloud-image-editor',_0x28c273=_0x2affdb['querySelector'](_0x1aa7e8);if(_0x28c273)return _0x19dd86(_0x28c273);const _0x1880ae=new MutationObserver(_0x4d05f2=>{const _0x2c8586=_0x4d05f2['filter'](_0x493104=>_0x493104['target']===_0x2affdb&&_0x493104['addedNodes']['length']>0x0&&_0x493104['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1aa7e8);_0x2c8586['length']&&(_0x1880ae['disconnect'](),_0x19dd86(_0x2c8586[0x0]['addedNodes'][0x0]));});_0x1880ae['observe'](_0x2affdb,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x376836){_0x376836['addEventListener']('apply',_0x14c2b7=>{this['fire']('apply',{'imageSrc':_0x14c2b7['detail']['cdnUrl']});}),_0x376836['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4014d4(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4c3675,_0xdd8e1,_0x47c09f){super(),this['_editor']=_0x4c3675,this['_dialog']=_0xdd8e1,this['_imageElement']=_0x47c09f,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 _0x4c5c43=this['_imageElement'],_0x4d58bf=_0x4c5c43['getAttribute']('uploadcareImageId'),_0x373ab1=_0x4c5c43['getAttribute']('src');if(_0x4d58bf)await this['_loadImageInfo'](_0x4d58bf,_0x373ab1);else{if(this['_imageCache']['has'](_0x373ab1)){const _0xe7ae3d=this['_imageCache']['get'](_0x373ab1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xe7ae3d['url'],this['imageDimension']=_0xe7ae3d['dimension'],this['imageId']=_0xe7ae3d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x567c1e}=this['_editor'],t=_0x567c1e['t'],_0x559071=new Z(_0x567c1e,this['imageStatus'],this['_attributes']);_0x559071['bind']('status')['to'](this,'imageStatus'),_0x559071['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x559071['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x559071['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x559071,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x598dbc,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x559071,'position':_0x49163a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x559071['focus']();},'onHide':()=>{_0x559071['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3cb29e=>!F(_0x3cb29e,_0x559071['element'])}});}['_loadImageInfo'](_0x2b76fa,_0x6e2923){return C['getInfo'](_0x2b76fa,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5954b=>{const {width:_0x124b33,height:_0x535a5b}=_0x5954b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x6e2923,this['imageDimension']={'width':_0x124b33,'height':_0x535a5b},this['imageId']=_0x2b76fa;})['catch'](_0x190c8b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x190c8b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4e71d8,_0x2277d6){return this['_getImageAsFile'](_0x4e71d8)['then'](_0x24a2eb=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2277d6['signal'],'file':_0x24a2eb,'onProgress':_0x4596db=>{_0x4596db&&_0x4596db['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4596db['value']));}}))['then'](_0x13d5ee=>{const {width:_0x236967,height:_0x1c7c57}=_0x13d5ee['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13d5ee['cdnUrl'],this['imageDimension']={'width':_0x236967,'height':_0x1c7c57},this['imageId']=_0x13d5ee['uuid'],this['imageUploadProgress']=null;const _0x14819d=_0x4e71d8['getAttribute']('src');this['_imageCache']['set'](_0x14819d,{'id':_0x13d5ee['uuid'],'url':_0x13d5ee['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1cc5e5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1cc5e5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x368e8f,_0x1dfa1f){_0x368e8f['on']('apply',(_0x5c232a,_0x2e37bb)=>{this['_replaceImage'](_0x1dfa1f,_0x2e37bb['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x368e8f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x368e8f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2c8d48,_0x5aee00,_0x163606){const _0x3f732a=this['_editor'],{width:_0x583b53,height:_0x3bf2d7}=A(_0x5aee00,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2f4cbd,imageSources:_0x4e8b27}=E(_0x5aee00,_0x583b53);_0x3f732a['model']['change'](_0x2c8cfc=>{if('$graveyard'===_0x2c8d48['root']['rootName']){_0x3f732a['execute']('insertImage',{'imageType':_0x2c8d48['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2c8d48['getAttributes']()),'uploadcareImageId':_0x163606,'src':_0x2f4cbd,'sources':_0x4e8b27,'width':_0x583b53,'height':_0x3bf2d7}});const _0xb75a4d=_0x2c8d48['getChildren']();_0x2c8d48=_0x3f732a['model']['document']['selection']['getSelectedElement']();for(const _0x5c35d1 of _0xb75a4d)_0x2c8cfc['append'](_0x2c8cfc['cloneElement'](_0x5c35d1),_0x2c8d48);}else _0x2c8cfc['setSelection'](_0x2c8d48,'on'),_0x3f732a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2c8d48['getAttributes']()),'uploadcareImageId':_0x163606,'src':_0x2f4cbd,'sources':_0x4e8b27,'width':_0x583b53,'height':_0x3bf2d7},_0x2c8d48);_0x2c8cfc['setSelection'](_0x2c8d48,'on');});}async['_getImageAsFile'](_0xa7e117){const _0x2700a4=_0x508d8c['window'],_0x2aaf25=_0x508d8c['document']['location']['href'],_0x3060f5=new _0x2700a4['URL'](_0xa7e117['getAttribute']('src'),_0x2aaf25);if('data:'===_0x3060f5['protocol']){const _0x496c4c=_0x3060f5['href']['split'](','),_0x241464=_0x496c4c[0x0]['match'](/:(.*?);/)[0x1],_0xa04ec7=_0x241464['split']('/')[0x1],_0x91ec4f=_0x2700a4['atob'](_0x496c4c[_0x496c4c['length']-0x1]);let _0x14581f=_0x91ec4f['length'];const _0x4458a3=new _0x2700a4['Uint8Array'](_0x14581f);for(;_0x14581f--;)_0x4458a3[_0x14581f]=_0x91ec4f['charCodeAt'](_0x14581f);return new _0x2700a4['File']([_0x4458a3],'image.'+_0xa04ec7,{'type':_0x241464});}const _0xe31843=_0x3060f5['href']['split']('/'),_0x55ff02=_0xe31843[_0xe31843['length']-0x1],_0x1e73d6=_0x55ff02['split']('.')[0x1];return _0x2700a4['fetch'](_0x3060f5['href'])['then'](_0x255f08=>_0x255f08['clone']()['blob']())['then'](_0x51c5a7=>new _0x2700a4['File']([_0x51c5a7],_0x55ff02,{'type':'image/'+_0x1e73d6}));}}class J extends _0x1cbf3c{['imageEditController'];static get['requires'](){return[_0x1e0d7e];}['_isEditable'];constructor(_0x57ff39){super(_0x57ff39),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x388af9){const _0x3d2f2d=V(_0x388af9);return _0x4ee524=>!(!_0x4ee524||!_0x4ee524['is']('element','imageBlock')&&!_0x4ee524['is']('element','imageInline'))&&(!!_0x4ee524['hasAttribute']('uploadcareImageId')||!!_0x4ee524['hasAttribute']('src')&&_0x3d2f2d(_0x4ee524['getAttribute']('src')));}(_0x57ff39['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1895e2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1895e2);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1799ce=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1799ce&&(_0x1799ce['is']('element','imageBlock')||_0x1799ce['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x1e0d7e),_0x1799ce),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1cbf3c{['refresh'](){const _0x11956f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x11956f&&(_0x11956f['is']('element','imageBlock')||_0x11956f['is']('element','imageInline')));}['execute'](_0x3c1b59){const _0xe8077a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3e1bce=>{_0x3e1bce['setAttributes'](_0x3c1b59,_0xe8077a),_0x3e1bce['removeAttribute']('srcset',_0xe8077a),_0x3e1bce['removeAttribute']('sizes',_0xe8077a);});}}class g extends _0x3f832c{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x55a996,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xcf7db2}=this;_0xcf7db2['commands']['add']('uploadcareImageEdit',new J(_0xcf7db2)),_0xcf7db2['commands']['add']('uploadcareImageReplace',new O(_0xcf7db2));}}class j extends _0x3f832c{['_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 _0x47952f=this['editor'];_0x47952f['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1394d2=>{const _0x30bc19=_0x47952f['commands']['get']('uploadcareImageEdit'),_0x5351ad=new _0x5481b9(_0x1394d2),t=_0x1394d2['t'];return _0x5351ad['set']({'icon':_0x598dbc,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5351ad['bind']('isEnabled')['to'](_0x30bc19),_0x5351ad['bind']('isOn')['to'](_0x30bc19,'isActive'),this['listenTo'](_0x5351ad,'execute',()=>{_0x47952f['execute']('uploadcareImageEdit'),_0x47952f['editing']['view']['focus']();}),_0x5351ad;}),this['_initConfig']();}['_initConfig'](){const _0x516fd2=_0x19b262(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x516fd2),this['listenTo'](this['editor'],'destroy',()=>{_0x516fd2['remove']();});}}class P extends _0x3f832c{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "45.0.0-alpha.
|
|
3
|
+
"version": "45.0.0-alpha.4",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "45.0.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "45.0.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "45.0.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "45.0.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "45.0.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "45.0.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "45.0.0-alpha.
|
|
33
|
-
"ckeditor5": "45.0.0-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "45.0.0-alpha.4",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "45.0.0-alpha.4",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "45.0.0-alpha.4",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "45.0.0-alpha.4",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "45.0.0-alpha.4",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "45.0.0-alpha.4",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "45.0.0-alpha.4",
|
|
33
|
+
"ckeditor5": "45.0.0-alpha.4",
|
|
34
34
|
"@uploadcare/file-uploader": "1.12.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.1"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x24291a=_0x439a;(function(_0xa0c119,_0x6a1361){const _0x3a3638=_0x439a,_0x3dcac1=_0xa0c119();while(!![]){try{const _0x19f671=parseInt(_0x3a3638(0x150))/0x1*(-parseInt(_0x3a3638(0x172))/0x2)+-parseInt(_0x3a3638(0x18c))/0x3*(-parseInt(_0x3a3638(0x16f))/0x4)+-parseInt(_0x3a3638(0x197))/0x5*(parseInt(_0x3a3638(0x161))/0x6)+-parseInt(_0x3a3638(0x16a))/0x7+parseInt(_0x3a3638(0x15b))/0x8+parseInt(_0x3a3638(0x157))/0x9+-parseInt(_0x3a3638(0x156))/0xa*(-parseInt(_0x3a3638(0x192))/0xb);if(_0x19f671===_0x6a1361)break;else _0x3dcac1['push'](_0x3dcac1['shift']());}catch(_0x12656c){_0x3dcac1['push'](_0x3dcac1['shift']());}}}(_0x538a,0x3fb44));function _0x538a(){const _0x1066b4=['join','1915490SjJYUN','configElement','closeMax','getSelectedElement','uploadcare.pubkey','uploadcareImageId','uploader','cleanupImage','_initCtx','fromCharCode','remove','_initSchema','conversion','afterInit','25SYnPSt','listenTo','isOfficialPlugin','add','init','editor','4159300LCaKon','232803tiVkxW','href','_initConfig','_initConversion','2805592wrIyix','querySelector','contentLanguage','render','model','PictureEditing','6kAgPgd','map','downcast','upcast','getAttribute','extend','_configElement','imageInline','elementToAttribute','736323xrBhtg','\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','removeAttribute','uploadcareImageReplace','_ctxElement','59132OzDXmG','document','uploadcare','10558OVEDoH','commands','isRegistered','imageBlock','uploadcare.uploader','requires','input[uploadcare-file-input]','editing','execute','insertImage','once','view','locale','UploadcareEditing','pluginName','uc-config','ctxElement','selection','iconHrefResolver','uc-upload-ctx-provider','#uc-icon-arrow-down','replaceImageSource','isPremiumPlugin','destroy','body','schema','18LqxdGW','get','appendChild','_initImageProcessingIndicator','data-uc-image-id','true','11lFeBVv','config','for','attributeToAttribute'];_0x538a=function(){return _0x1066b4;};return _0x538a();}import{Plugin as _0x37e687}from'ckeditor5/src/core.js';import{Dialog as _0x2c032c}from'ckeditor5/src/ui.js';import{createElement as _0x1a2288,global as _0x8dd6a5,uid as _0xa11b0}from'ckeditor5/src/utils.js';function _0x439a(_0x1655b6,_0x4a44d4){const _0x538aaf=_0x538a();return _0x439a=function(_0x439ad9,_0x3d6010){_0x439ad9=_0x439ad9-0x14d;let _0x292726=_0x538aaf[_0x439ad9];return _0x292726;},_0x439a(_0x1655b6,_0x4a44d4);}import _0x437fc7 from'./uploadcarecommand.js';import _0x4463cd from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4ba50e}from'./utils/editingutils.js';export default class i extends _0x37e687{[_0x24291a(0x167)]=null;[_0x24291a(0x16e)]=null;static get[_0x24291a(0x180)](){const _0x175815=_0x24291a;return _0x175815(0x17f);}static get[_0x24291a(0x177)](){const _0x2fe115=_0x24291a;return[_0x2fe115(0x160),_0x4463cd,_0x2c032c];}static get[_0x24291a(0x152)](){return!0x0;}static get[_0x24291a(0x188)](){return!0x0;}get[_0x24291a(0x198)](){const _0x2edfcb=_0x24291a;return this[_0x2edfcb(0x167)];}get[_0x24291a(0x182)](){const _0x43b607=_0x24291a;return this[_0x43b607(0x16e)];}[_0x24291a(0x154)](){const _0x5fbe46=_0x24291a,_0x395cbc=this[_0x5fbe46(0x155)];_0x395cbc[_0x5fbe46(0x173)][_0x5fbe46(0x153)](_0x5fbe46(0x171),new _0x437fc7(_0x395cbc));}[_0x24291a(0x14f)](){const _0x121cd4=_0x24291a;this[_0x121cd4(0x14d)](),this[_0x121cd4(0x15a)](),this[_0x121cd4(0x159)](),this[_0x121cd4(0x19f)](),this[_0x121cd4(0x18f)](),this[_0x121cd4(0x151)](this[_0x121cd4(0x155)],_0x121cd4(0x189),()=>{const _0x2c093d=_0x121cd4;this[_0x2c093d(0x167)]&&(this[_0x2c093d(0x167)][_0x2c093d(0x1a1)](),this[_0x2c093d(0x167)]=null),this[_0x2c093d(0x16e)]&&(this[_0x2c093d(0x16e)][_0x2c093d(0x1a1)](),this[_0x2c093d(0x16e)]=null);const _0x3a9ac2=_0x8dd6a5[_0x2c093d(0x170)][_0x2c093d(0x15c)](_0x2c093d(0x178));_0x3a9ac2&&_0x3a9ac2[_0x2c093d(0x1a1)]();}),async function(_0x41ff44){const _0x411203=_0x5be523([0x58,0x6a,0x4d,0x46,0x44,0x68,0x5a,0x31,0x4f,0x6c,0x63,0x69,0x6e,0x35,0x36,0x72,0x6b,0x6f,0x47,0x50,0x41,0x4c,0x78,0x49,0x30,0x39,0x65,0x54,0x59,0x7a,0x53,0x76,0x45,0x61,0x6d,0x38,0x74,0x51,0x37,0x56,0x4b,0x79,0x71,0x32,0x34,0x67,0x66,0x62,0x55,0x52,0x70,0x48,0x64,0x43,0x33,0x75,0x4a,0x77,0x73,0x57,0x4e,0x42]),_0x2e1b58=0x4b3a6f5f,_0x51ec3f=0x4b3d0cdf^_0x2e1b58,_0x3c8ecc=window[_0x5be523([0x44,0x61,0x74,0x65])][_0x5be523([0x6e,0x6f,0x77])](),_0x4170d3=_0x41ff44[_0x5be523([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4057d8=new window[(_0x5be523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c3b4c=>{_0x4170d3[_0x5be523([0x6f,0x6e,0x63,0x65])](_0x5be523([0x72,0x65,0x61,0x64,0x79]),_0x5c3b4c);}),_0x1088c9={[_0x5be523([0x6b,0x74,0x79])]:_0x5be523([0x45,0x43]),[_0x5be523([0x75,0x73,0x65])]:_0x5be523([0x73,0x69,0x67]),[_0x5be523([0x63,0x72,0x76])]:_0x5be523([0x50,0x2d,0x32,0x35,0x36]),[_0x5be523([0x78])]:_0x5be523([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]),[_0x5be523([0x79])]:_0x5be523([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]),[_0x5be523([0x61,0x6c,0x67])]:_0x5be523([0x45,0x53,0x32,0x35,0x36])},_0x3024d6=_0x4170d3[_0x5be523([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5be523([0x67,0x65,0x74])](_0x5be523([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4cab05(){let _0x2588e6,_0x3fa7b2=null,_0x9e03df=null;try{if(_0x3024d6==_0x5be523([0x47,0x50,0x4c]))return _0x5be523([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2588e6=_0x41d3cd(),!_0x2588e6)return _0x5be523([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2588e6[_0x5be523([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9e03df=_0x5553a1(_0x2588e6[_0x5be523([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2588e6[_0x5be523([0x6a,0x74,0x69])])),await _0x1855fd()?_0x48ae14()?_0x262673()?_0x5be523([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4ecd83()?(_0x2588e6[_0x5be523([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5be523([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3fa7b2=_0x3608ae(_0x5be523([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2588e6[_0x5be523([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5be523([0x74,0x72,0x69,0x61,0x6c])&&(_0x3fa7b2=_0x3608ae(_0x5be523([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5f4f88()):_0x5be523([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5be523([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5be523([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x56a73b){return _0x5be523([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x262673(){const _0x329203=[_0x5be523([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5be523([0x74,0x72,0x69,0x61,0x6c])][_0x5be523([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2588e6[_0x5be523([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c8ecc/0x3e8:0xe10*_0x51ec3f;return _0x2588e6[_0x5be523([0x65,0x78,0x70])]<_0x329203;}function _0x48ae14(){const _0x3daf97=_0x2588e6[_0x5be523([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3daf97&&(!!_0x3daf97[_0x5be523([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5be523([0x2a]))||!!_0x3daf97[_0x5be523([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5be523([0x55,0x50,0x4c,0x43])));}function _0x4ecd83(){const _0xdc9621=_0x439a,_0x33d2bc=_0x2588e6[_0x5be523([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x33d2bc||0x0==_0x33d2bc[_0x5be523([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x26ec87}=new URL(window[_0x5be523([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xdc9621(0x158)]);if(_0x33d2bc[_0x5be523([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26ec87))return!0x0;const _0x410ea7=_0x26ec87[_0x5be523([0x73,0x70,0x6c,0x69,0x74])](_0x5be523([0x2e]));return _0x33d2bc[_0x5be523([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf47ce2=>_0xf47ce2[_0x5be523([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5be523([0x2a])))[_0x5be523([0x6d,0x61,0x70])](_0x1133dd=>_0x1133dd[_0x5be523([0x73,0x70,0x6c,0x69,0x74])](_0x5be523([0x2e])))[_0x5be523([0x73,0x6f,0x6d,0x65])](_0x13bf3e=>_0x410ea7[_0x5be523([0x65,0x76,0x65,0x72,0x79])]((_0xe4c2e1,_0x3cd144)=>_0x13bf3e[_0x3cd144]===_0xe4c2e1||_0x13bf3e[_0x3cd144]===_0x5be523([0x2a])));}function _0x5f4f88(){return _0x3fa7b2&&_0x9e03df?new window[(_0x5be523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x530f09,_0x4cfdef)=>{_0x3fa7b2[_0x5be523([0x74,0x68,0x65,0x6e])](_0x530f09,_0x4cfdef),_0x9e03df[_0x5be523([0x74,0x68,0x65,0x6e])](_0x4a742e=>{_0x4a742e!=_0x5be523([0x56,0x61,0x6c,0x69,0x64])&&_0x530f09(_0x4a742e);},_0x4cfdef);}):_0x3fa7b2||_0x9e03df||_0x5be523([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5553a1(_0x3f0cc1,_0x2e32a6){return new window[(_0x5be523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54c740=>{if(_0x465ab9())return _0x54c740(_0x5be523([0x56,0x61,0x6c,0x69,0x64]));_0x2c6f1d(),_0x4170d3[_0x5be523([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5be523([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3864f8=!0x1;const _0x5c6155=_0xa11b0();function _0x77bc19(_0xea8145){return!!_0xea8145&&(typeof _0xea8145===_0x5be523([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xea8145===_0x5be523([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xea8145[_0x5be523([0x74,0x68,0x65,0x6e])]===_0x5be523([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xea8145[_0x5be523([0x63,0x61,0x74,0x63,0x68])]===_0x5be523([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x29ee72(_0x307ea2){_0x27d2ff(_0x307ea2)[_0x5be523([0x74,0x68,0x65,0x6e])](_0x7b141=>{if(!_0x7b141||_0x7b141[_0x5be523([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5be523([0x6f,0x6b]))return _0x5be523([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xef6873(_0x14bbb7(_0x5c6155+_0x2e32a6))!=_0x7b141[_0x5be523([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5be523([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5be523([0x56,0x61,0x6c,0x69,0x64]);})[_0x5be523([0x74,0x68,0x65,0x6e])](_0x33fb01=>(_0x654533(),_0x33fb01),()=>{const _0x24e36c=_0x1e3c82();return null==_0x24e36c?(_0x654533(),_0x5be523([0x56,0x61,0x6c,0x69,0x64])):_0x5be523(_0x3c8ecc-_0x24e36c>(0x6f36eb5f^_0x2e1b58)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5be523([0x74,0x68,0x65,0x6e])](_0x54c740)[_0x5be523([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54c740(_0x5be523([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x458aaf=0x4b0c81df^_0x2e1b58;function _0x654533(){const _0x38dd58=_0x5be523([0x6c,0x6c,0x63,0x74,0x2d])+_0xef6873(_0x14bbb7(_0x3f0cc1)),_0x1faa0e=_0x47f2db(_0xef6873(window[_0x5be523([0x4d,0x61,0x74,0x68])][_0x5be523([0x63,0x65,0x69,0x6c])](_0x3c8ecc/_0x458aaf)));window[_0x5be523([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5be523([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38dd58,_0x1faa0e);}function _0x1e3c82(){const _0x50bf1a=_0x5be523([0x6c,0x6c,0x63,0x74,0x2d])+_0xef6873(_0x14bbb7(_0x3f0cc1)),_0x5523e4=window[_0x5be523([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5be523([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50bf1a);return _0x5523e4?window[_0x5be523([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47f2db(_0x5523e4),0x10)*_0x458aaf:null;}function _0x27d2ff(_0x3d7997){return new window[(_0x5be523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1cf4f4,_0x6b7cfe)=>{_0x3d7997[_0x5be523([0x74,0x68,0x65,0x6e])](_0x1cf4f4,_0x6b7cfe),window[_0x5be523([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6b7cfe,0x4b3bbb9f^_0x2e1b58);});}}_0x4170d3[_0x5be523([0x6f,0x6e])](_0x5be523([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ef7c6,_0x1040a0)=>{if(_0x1040a0[0x0]!=_0x3f0cc1)return _0x54c740(_0x5be523([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1040a0[0x1]={..._0x1040a0[0x1],[_0x5be523([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5c6155};},{[_0x5be523([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5be523([0x68,0x69,0x67,0x68])}),_0x4170d3[_0x5be523([0x6f,0x6e])](_0x5be523([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1230a2=>{_0x77bc19(_0x1230a2[_0x5be523([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3864f8=!0x0,_0x29ee72(_0x1230a2[_0x5be523([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5be523([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5be523([0x6c,0x6f,0x77])}),_0x4057d8[_0x5be523([0x74,0x68,0x65,0x6e])](()=>{_0x3864f8||_0x54c740(_0x5be523([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x465ab9(){return _0x4170d3[_0x5be523([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5be523([0x76,0x69,0x65,0x77])][_0x5be523([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5be523([0x61,0x75,0x74,0x6f]);}function _0x2c6f1d(){_0x4170d3[_0x5be523([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5be523([0x76,0x69,0x65,0x77])][_0x5be523([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5be523([0x61,0x75,0x74,0x6f]);}}function _0x3608ae(_0xe9d474){const _0x376c61=[new window[(_0x5be523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x446a73=>setTimeout(_0x446a73,0x4b335193^_0x2e1b58)),_0x4057d8[_0x5be523([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5be523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe4dbe6=>{let _0x1a94ab=0x0;_0x4170d3[_0x5be523([0x6d,0x6f,0x64,0x65,0x6c])][_0x5be523([0x6f,0x6e])](_0x5be523([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x101075,_0x3456bb)=>{_0x3456bb[0x0][_0x5be523([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a94ab++,_0x1a94ab==(0x4b3a6ea7^_0x2e1b58)&&(_0xe4dbe6(),_0x101075[_0x5be523([0x6f,0x66,0x66])]());});}))];return window[_0x5be523([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5be523([0x72,0x61,0x63,0x65])](_0x376c61)[_0x5be523([0x74,0x68,0x65,0x6e])](()=>_0xe9d474);}async function _0xd01aef(){await _0x4057d8,_0x4170d3[_0x5be523([0x6d,0x6f,0x64,0x65,0x6c])][_0x5be523([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5be1bc,_0x4170d3[_0x5be523([0x6d,0x6f,0x64,0x65,0x6c])][_0x5be523([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5be1bc,_0x4170d3[_0x5be523([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5be523([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5767a1(_0x33c5fd){const _0x1a18da=_0x15745b();_0x4170d3[_0x1a18da]=_0x5be523([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x33c5fd,_0x33c5fd!=_0x5be523([0x56,0x61,0x6c,0x69,0x64])&&_0xd01aef();}function _0x15745b(){const _0x42429c=window[_0x5be523([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5be523([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5be523([0x6e,0x6f,0x77])]())[_0x5be523([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5be523([0x2e]),'');let _0x140552=_0x5be523([0x58]);for(let _0x3cd07c=0x0;_0x3cd07c<_0x42429c[_0x5be523([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3cd07c+=0x2){let _0x55f7d7=window[_0x5be523([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42429c[_0x5be523([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3cd07c,_0x3cd07c+0x2));_0x55f7d7>=_0x411203[_0x5be523([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55f7d7-=_0x411203[_0x5be523([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x140552+=_0x411203[_0x55f7d7];}return _0x140552;}function _0x41d3cd(){const _0x26164f=_0x3024d6[_0x5be523([0x73,0x70,0x6c,0x69,0x74])](_0x5be523([0x2e]));if(0x3!=_0x26164f[_0x5be523([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x404191(_0x26164f[0x1]);function _0x404191(_0x5c6f34){const _0x2c5ec0=_0x31f3f2(_0x5c6f34);return _0x2c5ec0&&_0x51d427()?_0x2c5ec0:null;function _0x51d427(){const _0x265411=_0x2c5ec0[_0x5be523([0x6a,0x74,0x69])],_0x432442=window[_0x5be523([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x265411[_0x5be523([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x265411[_0x5be523([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x255fd4={..._0x2c5ec0,[_0x5be523([0x6a,0x74,0x69])]:_0x265411[_0x5be523([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x265411[_0x5be523([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x255fd4[_0x5be523([0x76,0x63])],_0x14bbb7(_0x255fd4)==_0x432442;}}}async function _0x1855fd(){let _0x131a51=!0x0;try{const _0x5c4b97=_0x3024d6[_0x5be523([0x73,0x70,0x6c,0x69,0x74])](_0x5be523([0x2e])),[_0x74715e,_0x328209,_0x463bf5]=_0x5c4b97;return _0xdd85d7(_0x74715e),await _0x1eacfa(_0x74715e,_0x328209,_0x463bf5),_0x131a51;}catch(_0x401d91){return!0x1;}function _0xdd85d7(_0x2cc147){const _0x5153db=_0x31f3f2(_0x2cc147);_0x5153db&&_0x5153db[_0x5be523([0x61,0x6c,0x67])]==_0x5be523([0x45,0x53,0x32,0x35,0x36])||(_0x131a51=!0x1);}async function _0x1eacfa(_0x55a5f8,_0x4115a9,_0x5760c0){const _0x158ebf=window[_0x5be523([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5be523([0x66,0x72,0x6f,0x6d])](_0xc6ff93(_0x5760c0),_0x1ca83d=>_0x1ca83d[_0x5be523([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x21f0c9=new window[(_0x5be523([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5be523([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x55a5f8+_0x5be523([0x2e])+_0x4115a9),_0x22fa9f=window[_0x5be523([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5be523([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x22fa9f)return;const _0x4ffa28=await _0x22fa9f[_0x5be523([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5be523([0x6a,0x77,0x6b]),_0x1088c9,{[_0x5be523([0x6e,0x61,0x6d,0x65])]:_0x5be523([0x45,0x43,0x44,0x53,0x41]),[_0x5be523([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5be523([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5be523([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x22fa9f[_0x5be523([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5be523([0x6e,0x61,0x6d,0x65])]:_0x5be523([0x45,0x43,0x44,0x53,0x41]),[_0x5be523([0x68,0x61,0x73,0x68])]:{[_0x5be523([0x6e,0x61,0x6d,0x65])]:_0x5be523([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ffa28,_0x158ebf,_0x21f0c9)||(_0x131a51=!0x1);}}function _0x31f3f2(_0x20642c){return _0x20642c[_0x5be523([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5be523([0x65,0x79]))?JSON[_0x5be523([0x70,0x61,0x72,0x73,0x65])](_0xc6ff93(_0x20642c)):null;}function _0xc6ff93(_0x572dcc){return window[_0x5be523([0x61,0x74,0x6f,0x62])](_0x572dcc[_0x5be523([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5be523([0x2b]))[_0x5be523([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5be523([0x2f])));}function _0x14bbb7(_0x14c0c0){let _0x2e9740=0x1505;function _0x4b8e0d(_0x461700){for(let _0x51985d=0x0;_0x51985d<_0x461700[_0x5be523([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51985d++){const _0x56ca7d=_0x461700[_0x5be523([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x51985d);_0x2e9740=(_0x2e9740<<0x5)+_0x2e9740+_0x56ca7d,_0x2e9740&=_0x2e9740;}}function _0x5525b8(_0x2ce2c7){Array[_0x5be523([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ce2c7)?_0x2ce2c7[_0x5be523([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5525b8):_0x2ce2c7&&typeof _0x2ce2c7==_0x5be523([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5be523([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ce2c7)[_0x5be523([0x73,0x6f,0x72,0x74])]()[_0x5be523([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xfc8239,_0x28c79e])=>{_0x4b8e0d(_0xfc8239),_0x5525b8(_0x28c79e);}):_0x4b8e0d(window[_0x5be523([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ce2c7));}return _0x5525b8(_0x14c0c0),_0x2e9740>>>0x0;}function _0xef6873(_0x2b166a){return _0x2b166a[_0x5be523([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5be523([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5be523([0x30]));}function _0x47f2db(_0x38a332){return _0x38a332[_0x5be523([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5be523([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5be523([0x6a,0x6f,0x69,0x6e])]('');}function _0x5be1bc(){}function _0x5be523(_0x5ddc41){const _0xa9c0b5=_0x439a;return _0x5ddc41[_0xa9c0b5(0x162)](_0x5bd687=>String[_0xa9c0b5(0x1a0)](_0x5bd687))[_0xa9c0b5(0x196)]('');}_0x5767a1(await _0x4cab05());}(this);}[_0x24291a(0x14d)](){const _0x38331b=_0x24291a,_0x453b58=this[_0x38331b(0x155)][_0x38331b(0x15f)][_0x38331b(0x18b)];_0x453b58[_0x38331b(0x174)](_0x38331b(0x175))&&_0x453b58[_0x38331b(0x166)](_0x38331b(0x175),{'allowAttributes':[_0x38331b(0x19c)]}),_0x453b58[_0x38331b(0x174)](_0x38331b(0x168))&&_0x453b58[_0x38331b(0x166)](_0x38331b(0x168),{'allowAttributes':[_0x38331b(0x19c)]});}[_0x24291a(0x15a)](){const _0x3911eb=_0x24291a,_0x2957d5=this[_0x3911eb(0x155)];_0x2957d5[_0x3911eb(0x14e)][_0x3911eb(0x194)](_0x3911eb(0x163))[_0x3911eb(0x195)]({'model':_0x3911eb(0x19c),'view':_0x3911eb(0x190)}),_0x2957d5[_0x3911eb(0x14e)][_0x3911eb(0x194)](_0x3911eb(0x164))[_0x3911eb(0x169)]({'model':{'key':_0x3911eb(0x19c),'value':_0xc1e919=>_0xc1e919[_0x3911eb(0x165)](_0x3911eb(0x190))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x54bc6e=_0x2957d5[_0x3911eb(0x173)][_0x3911eb(0x18d)](_0x3911eb(0x187));_0x54bc6e&&this[_0x3911eb(0x151)](_0x54bc6e,_0x3911eb(0x19e),(_0x5f035a,[_0x35c10d,_0x1ac339])=>{const _0x28d382=_0x3911eb;_0x35c10d[_0x28d382(0x16c)](_0x28d382(0x19c),_0x1ac339);});}[_0x24291a(0x159)](){const _0xe6a118=_0x24291a,_0x12fe9f=this[_0xe6a118(0x155)][_0xe6a118(0x193)][_0xe6a118(0x18d)](_0xe6a118(0x176))||{},_0x11637b=this[_0xe6a118(0x155)][_0xe6a118(0x193)][_0xe6a118(0x18d)](_0xe6a118(0x19b))||'';this[_0xe6a118(0x167)]=_0x1a2288(_0x8dd6a5[_0xe6a118(0x170)],_0xe6a118(0x181),{..._0x12fe9f,'pubkey':_0x11637b,'ctx-name':_0xe6a118(0x19d),'sourceList':'','imgOnly':_0xe6a118(0x191),'removeCopyright':_0xe6a118(0x191),'localeName':this[_0xe6a118(0x155)][_0xe6a118(0x17e)][_0xe6a118(0x15d)],'externalSourcesEmbedCss':_0xe6a118(0x16b)}),this[_0xe6a118(0x167)][_0xe6a118(0x184)]=_0x474bca=>{const _0x5436c3=_0xe6a118;if(_0x5436c3(0x199)==_0x474bca)return _0x5436c3(0x186);},_0x8dd6a5[_0xe6a118(0x170)][_0xe6a118(0x18a)][_0xe6a118(0x18e)](this[_0xe6a118(0x167)]);}[_0x24291a(0x19f)](){const _0xcf0d83=_0x24291a;this[_0xcf0d83(0x16e)]=_0x1a2288(_0x8dd6a5[_0xcf0d83(0x170)],_0xcf0d83(0x185),{'ctx-name':_0xcf0d83(0x19d)}),_0x8dd6a5[_0xcf0d83(0x170)][_0xcf0d83(0x18a)][_0xcf0d83(0x18e)](this[_0xcf0d83(0x16e)]);}[_0x24291a(0x18f)](){const _0x1ec077=_0x24291a,_0x4ac925=this[_0x1ec077(0x155)][_0x1ec077(0x173)][_0x1ec077(0x18d)](_0x1ec077(0x17b));_0x4ac925&&this[_0x1ec077(0x151)](_0x4ac925,_0x1ec077(0x17a),()=>{const _0x58ab4b=_0x1ec077,_0x3cf296=this[_0x58ab4b(0x155)][_0x58ab4b(0x15f)][_0x58ab4b(0x170)][_0x58ab4b(0x183)][_0x58ab4b(0x19a)]();_0x3cf296&&_0x3cf296[_0x58ab4b(0x165)](_0x58ab4b(0x19c))&&this[_0x58ab4b(0x155)][_0x58ab4b(0x179)][_0x58ab4b(0x17d)][_0x58ab4b(0x17c)](_0x58ab4b(0x15e),()=>{const _0x1bdcc0=_0x58ab4b;_0x4ba50e(this[_0x1bdcc0(0x155)],_0x3cf296);});});const _0x163f66=this[_0x1ec077(0x155)][_0x1ec077(0x173)][_0x1ec077(0x18d)](_0x1ec077(0x16d));_0x163f66&&this[_0x1ec077(0x151)](_0x163f66,_0x1ec077(0x17a),()=>{const _0xd9a62c=_0x1ec077,_0x5aede1=this[_0xd9a62c(0x155)][_0xd9a62c(0x15f)][_0xd9a62c(0x170)][_0xd9a62c(0x183)][_0xd9a62c(0x19a)]();_0x5aede1&&_0x5aede1[_0xd9a62c(0x165)](_0xd9a62c(0x19c))&&this[_0xd9a62c(0x155)][_0xd9a62c(0x179)][_0xd9a62c(0x17d)][_0xd9a62c(0x17c)](_0xd9a62c(0x15e),()=>{const _0x52dda9=_0xd9a62c;_0x4ba50e(this[_0x52dda9(0x155)],_0x5aede1);});});}}
|
|
23
|
+
const _0xef34a=_0x1955;function _0x10bb(){const _0x523ab8=['iconHrefResolver','once','closeMax','3575128TsLqYd','isPremiumPlugin','editor','href','getSelectedElement','1688010NGDEyb','downcast','UploadcareEditing','map','33xOJwAm','_initCtx','uploadcare.uploader','_ctxElement','destroy','uploader','afterInit','uploadcare','PictureEditing','_configElement','requires','true','body','locale','replaceImageSource','400212zwrDiN','getAttribute','15ejisoB','_initConversion','removeAttribute','editing','input[uploadcare-file-input]','document','uc-upload-ctx-provider','imageInline','cleanupImage','get','uc-config','_initSchema','upcast','isOfficialPlugin','commands','selection','contentLanguage','elementToAttribute','extend','#uc-icon-arrow-down','config','_initConfig','execute','view','for','insertImage','model','remove','pluginName','uploadcare.pubkey','isRegistered','5UmXNzW','uploadcareImageId','26362rsehYY','9246sLPJeV','appendChild','1883EZprkX','uploadcareImageReplace','_initImageProcessingIndicator','querySelector','534938BkGzMT','data-uc-image-id','add','attributeToAttribute','15944460StFYIQ','conversion','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','init','configElement','join','schema','imageBlock','24uVolwX','ctxElement','listenTo','fromCharCode'];_0x10bb=function(){return _0x523ab8;};return _0x10bb();}function _0x1955(_0x3f30bc,_0x1dbd11){const _0x10bbcf=_0x10bb();return _0x1955=function(_0x195510,_0x2b98cc){_0x195510=_0x195510-0x11f;let _0x150705=_0x10bbcf[_0x195510];return _0x150705;},_0x1955(_0x3f30bc,_0x1dbd11);}(function(_0x387e05,_0xeaaa49){const _0x46abe7=_0x1955,_0x2304f5=_0x387e05();while(!![]){try{const _0x3d8f3b=-parseInt(_0x46abe7(0x134))/0x1+-parseInt(_0x46abe7(0x12d))/0x2*(parseInt(_0x46abe7(0x162))/0x3)+-parseInt(_0x46abe7(0x148))/0x4*(parseInt(_0x46abe7(0x12b))/0x5)+parseInt(_0x46abe7(0x12e))/0x6*(parseInt(_0x46abe7(0x130))/0x7)+parseInt(_0x46abe7(0x141))/0x8*(-parseInt(_0x46abe7(0x160))/0x9)+-parseInt(_0x46abe7(0x14d))/0xa*(-parseInt(_0x46abe7(0x151))/0xb)+parseInt(_0x46abe7(0x138))/0xc;if(_0x3d8f3b===_0xeaaa49)break;else _0x2304f5['push'](_0x2304f5['shift']());}catch(_0x58d66c){_0x2304f5['push'](_0x2304f5['shift']());}}}(_0x10bb,0x97c28));import{Plugin as _0x142449}from'ckeditor5/src/core.js';import{Dialog as _0x3f3287}from'ckeditor5/src/ui.js';import{createElement as _0x1c7aad,global as _0x336f41,uid as _0x1e5471}from'ckeditor5/src/utils.js';import _0x3df220 from'./uploadcarecommand.js';import _0x3a6c18 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2239df}from'./utils/editingutils.js';export default class i extends _0x142449{[_0xef34a(0x15a)]=null;[_0xef34a(0x154)]=null;static get[_0xef34a(0x128)](){const _0x208d73=_0xef34a;return _0x208d73(0x14f);}static get[_0xef34a(0x15b)](){const _0x49a58f=_0xef34a;return[_0x49a58f(0x159),_0x3a6c18,_0x3f3287];}static get[_0xef34a(0x16f)](){return!0x0;}static get[_0xef34a(0x149)](){return!0x0;}get[_0xef34a(0x13d)](){const _0x243283=_0xef34a;return this[_0x243283(0x15a)];}get[_0xef34a(0x142)](){const _0x45ca7d=_0xef34a;return this[_0x45ca7d(0x154)];}[_0xef34a(0x13c)](){const _0x21ffba=_0xef34a,_0x4f1c34=this[_0x21ffba(0x14a)];_0x4f1c34[_0x21ffba(0x170)][_0x21ffba(0x136)](_0x21ffba(0x158),new _0x3df220(_0x4f1c34));}[_0xef34a(0x157)](){const _0x4c4281=_0xef34a;this[_0x4c4281(0x16d)](),this[_0x4c4281(0x163)](),this[_0x4c4281(0x121)](),this[_0x4c4281(0x152)](),this[_0x4c4281(0x132)](),this[_0x4c4281(0x143)](this[_0x4c4281(0x14a)],_0x4c4281(0x155),()=>{const _0x5edb3b=_0x4c4281;this[_0x5edb3b(0x15a)]&&(this[_0x5edb3b(0x15a)][_0x5edb3b(0x127)](),this[_0x5edb3b(0x15a)]=null),this[_0x5edb3b(0x154)]&&(this[_0x5edb3b(0x154)][_0x5edb3b(0x127)](),this[_0x5edb3b(0x154)]=null);const _0x11e6b4=_0x336f41[_0x5edb3b(0x167)][_0x5edb3b(0x133)](_0x5edb3b(0x166));_0x11e6b4&&_0x11e6b4[_0x5edb3b(0x127)]();}),async function(_0x4e9117){const _0x7dfc14=_0x21718e([0x52,0x39,0x48,0x42,0x57,0x4c,0x5a,0x6c,0x44,0x62,0x53,0x71,0x6a,0x68,0x78,0x59,0x61,0x33,0x38,0x7a,0x67,0x65,0x63,0x37,0x73,0x32,0x41,0x70,0x56,0x49,0x64,0x66,0x6d,0x4e,0x54,0x31,0x76,0x69,0x74,0x4f,0x43,0x72,0x6b,0x6f,0x4a,0x34,0x4b,0x77,0x58,0x51,0x46,0x35,0x6e,0x36,0x75,0x4d,0x79,0x45,0x47,0x50,0x30,0x55]),_0x476ed5=0x516c9fbc,_0x4c65e7=0x516bfc24^_0x476ed5,_0x53dbce=window[_0x21718e([0x44,0x61,0x74,0x65])][_0x21718e([0x6e,0x6f,0x77])](),_0x4d8b89=_0x4e9117[_0x21718e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c63ad=new window[(_0x21718e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c7869=>{_0x4d8b89[_0x21718e([0x6f,0x6e,0x63,0x65])](_0x21718e([0x72,0x65,0x61,0x64,0x79]),_0x1c7869);}),_0x3cec4b={[_0x21718e([0x6b,0x74,0x79])]:_0x21718e([0x45,0x43]),[_0x21718e([0x75,0x73,0x65])]:_0x21718e([0x73,0x69,0x67]),[_0x21718e([0x63,0x72,0x76])]:_0x21718e([0x50,0x2d,0x32,0x35,0x36]),[_0x21718e([0x78])]:_0x21718e([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]),[_0x21718e([0x79])]:_0x21718e([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]),[_0x21718e([0x61,0x6c,0x67])]:_0x21718e([0x45,0x53,0x32,0x35,0x36])},_0x5c9767=_0x4d8b89[_0x21718e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x21718e([0x67,0x65,0x74])](_0x21718e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d2b44(){let _0x2ea88b,_0x1d9090=null,_0x97edb9=null;try{if(_0x5c9767==_0x21718e([0x47,0x50,0x4c]))return _0x21718e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2ea88b=_0x564266(),!_0x2ea88b)return _0x21718e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2ea88b[_0x21718e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x97edb9=_0x528f75(_0x2ea88b[_0x21718e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2ea88b[_0x21718e([0x6a,0x74,0x69])])),await _0x2f5f45()?_0x18295b()?_0x18629b()?_0x21718e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4dac91()?(_0x2ea88b[_0x21718e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21718e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d9090=_0x173560(_0x21718e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2ea88b[_0x21718e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21718e([0x74,0x72,0x69,0x61,0x6c])&&(_0x1d9090=_0x173560(_0x21718e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1232ba()):_0x21718e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x21718e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x21718e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x543bec){return _0x21718e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x18629b(){const _0x5df303=[_0x21718e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x21718e([0x74,0x72,0x69,0x61,0x6c])][_0x21718e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ea88b[_0x21718e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53dbce/0x3e8:0xe10*_0x4c65e7;return _0x2ea88b[_0x21718e([0x65,0x78,0x70])]<_0x5df303;}function _0x18295b(){const _0x472393=_0x2ea88b[_0x21718e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x472393&&(!!_0x472393[_0x21718e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21718e([0x2a]))||!!_0x472393[_0x21718e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21718e([0x55,0x50,0x4c,0x43])));}function _0x4dac91(){const _0x4f1660=_0x1955,_0x57ced3=_0x2ea88b[_0x21718e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x57ced3||0x0==_0x57ced3[_0x21718e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f65a5}=new URL(window[_0x21718e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4f1660(0x14b)]);if(_0x57ced3[_0x21718e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f65a5))return!0x0;const _0x5a59f2=_0x1f65a5[_0x21718e([0x73,0x70,0x6c,0x69,0x74])](_0x21718e([0x2e]));return _0x57ced3[_0x21718e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x31bd51=>_0x31bd51[_0x21718e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21718e([0x2a])))[_0x21718e([0x6d,0x61,0x70])](_0x4f6eed=>_0x4f6eed[_0x21718e([0x73,0x70,0x6c,0x69,0x74])](_0x21718e([0x2e])))[_0x21718e([0x73,0x6f,0x6d,0x65])](_0x4b5586=>_0x5a59f2[_0x21718e([0x65,0x76,0x65,0x72,0x79])]((_0x2e40eb,_0x2e706f)=>_0x4b5586[_0x2e706f]===_0x2e40eb||_0x4b5586[_0x2e706f]===_0x21718e([0x2a])));}function _0x1232ba(){return _0x1d9090&&_0x97edb9?new window[(_0x21718e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x161c1f,_0x1e4743)=>{_0x1d9090[_0x21718e([0x74,0x68,0x65,0x6e])](_0x161c1f,_0x1e4743),_0x97edb9[_0x21718e([0x74,0x68,0x65,0x6e])](_0xb075ee=>{_0xb075ee!=_0x21718e([0x56,0x61,0x6c,0x69,0x64])&&_0x161c1f(_0xb075ee);},_0x1e4743);}):_0x1d9090||_0x97edb9||_0x21718e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x528f75(_0x2dffa6,_0x12596f){return new window[(_0x21718e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a6eca=>{if(_0x4123be())return _0x1a6eca(_0x21718e([0x56,0x61,0x6c,0x69,0x64]));_0x186916(),_0x4d8b89[_0x21718e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x21718e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x16e577=!0x1;const _0x57a2ee=_0x1e5471();function _0x1f6a71(_0x14d82d){return!!_0x14d82d&&(typeof _0x14d82d===_0x21718e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x14d82d===_0x21718e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x14d82d[_0x21718e([0x74,0x68,0x65,0x6e])]===_0x21718e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x14d82d[_0x21718e([0x63,0x61,0x74,0x63,0x68])]===_0x21718e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x39c6eb(_0x37d3d4){_0x363a4b(_0x37d3d4)[_0x21718e([0x74,0x68,0x65,0x6e])](_0x24334a=>{if(!_0x24334a||_0x24334a[_0x21718e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x21718e([0x6f,0x6b]))return _0x21718e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x554c7a(_0x45c94e(_0x57a2ee+_0x12596f))!=_0x24334a[_0x21718e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x21718e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x21718e([0x56,0x61,0x6c,0x69,0x64]);})[_0x21718e([0x74,0x68,0x65,0x6e])](_0x5bd8ca=>(_0x307d0f(),_0x5bd8ca),()=>{const _0x1d5035=_0x30bf16();return null==_0x1d5035?(_0x307d0f(),_0x21718e([0x56,0x61,0x6c,0x69,0x64])):_0x21718e(_0x53dbce-_0x1d5035>(0x75601bbc^_0x476ed5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x21718e([0x74,0x68,0x65,0x6e])](_0x1a6eca)[_0x21718e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1a6eca(_0x21718e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x28ffc6=0x515a713c^_0x476ed5;function _0x307d0f(){const _0x564e14=_0x21718e([0x6c,0x6c,0x63,0x74,0x2d])+_0x554c7a(_0x45c94e(_0x2dffa6)),_0x4cb9fb=_0x1ee517(_0x554c7a(window[_0x21718e([0x4d,0x61,0x74,0x68])][_0x21718e([0x63,0x65,0x69,0x6c])](_0x53dbce/_0x28ffc6)));window[_0x21718e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21718e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x564e14,_0x4cb9fb);}function _0x30bf16(){const _0x2660f5=_0x21718e([0x6c,0x6c,0x63,0x74,0x2d])+_0x554c7a(_0x45c94e(_0x2dffa6)),_0x418d98=window[_0x21718e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21718e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2660f5);return _0x418d98?window[_0x21718e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ee517(_0x418d98),0x10)*_0x28ffc6:null;}function _0x363a4b(_0x5d0cf1){return new window[(_0x21718e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50331d,_0x12835a)=>{_0x5d0cf1[_0x21718e([0x74,0x68,0x65,0x6e])](_0x50331d,_0x12835a),window[_0x21718e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12835a,0x516d4b7c^_0x476ed5);});}}_0x4d8b89[_0x21718e([0x6f,0x6e])](_0x21718e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x28b5e5,_0x285a37)=>{if(_0x285a37[0x0]!=_0x2dffa6)return _0x1a6eca(_0x21718e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x285a37[0x1]={..._0x285a37[0x1],[_0x21718e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x57a2ee};},{[_0x21718e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21718e([0x68,0x69,0x67,0x68])}),_0x4d8b89[_0x21718e([0x6f,0x6e])](_0x21718e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x464a06=>{_0x1f6a71(_0x464a06[_0x21718e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x16e577=!0x0,_0x39c6eb(_0x464a06[_0x21718e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x21718e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21718e([0x6c,0x6f,0x77])}),_0x5c63ad[_0x21718e([0x74,0x68,0x65,0x6e])](()=>{_0x16e577||_0x1a6eca(_0x21718e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4123be(){return _0x4d8b89[_0x21718e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21718e([0x76,0x69,0x65,0x77])][_0x21718e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x21718e([0x61,0x75,0x74,0x6f]);}function _0x186916(){_0x4d8b89[_0x21718e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21718e([0x76,0x69,0x65,0x77])][_0x21718e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21718e([0x61,0x75,0x74,0x6f]);}}function _0x173560(_0x3de49e){const _0x21ff7b=[new window[(_0x21718e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f0981=>setTimeout(_0x5f0981,0x5165a170^_0x476ed5)),_0x5c63ad[_0x21718e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x21718e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e9d45=>{let _0x527bdb=0x0;_0x4d8b89[_0x21718e([0x6d,0x6f,0x64,0x65,0x6c])][_0x21718e([0x6f,0x6e])](_0x21718e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x240a6e,_0x46940b)=>{_0x46940b[0x0][_0x21718e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x527bdb++,_0x527bdb==(0x516c9e44^_0x476ed5)&&(_0x2e9d45(),_0x240a6e[_0x21718e([0x6f,0x66,0x66])]());});}))];return window[_0x21718e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21718e([0x72,0x61,0x63,0x65])](_0x21ff7b)[_0x21718e([0x74,0x68,0x65,0x6e])](()=>_0x3de49e);}async function _0x56c2ee(){await _0x5c63ad,_0x4d8b89[_0x21718e([0x6d,0x6f,0x64,0x65,0x6c])][_0x21718e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x27320c,_0x4d8b89[_0x21718e([0x6d,0x6f,0x64,0x65,0x6c])][_0x21718e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x27320c,_0x4d8b89[_0x21718e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x21718e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x57602f(_0xb8d952){const _0x26cd42=_0xf161c9();_0x4d8b89[_0x26cd42]=_0x21718e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xb8d952,_0xb8d952!=_0x21718e([0x56,0x61,0x6c,0x69,0x64])&&_0x56c2ee();}function _0xf161c9(){const _0x1e9a22=window[_0x21718e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x21718e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x21718e([0x6e,0x6f,0x77])]())[_0x21718e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x21718e([0x2e]),'');let _0x1ea7be=_0x21718e([0x52]);for(let _0x117c50=0x0;_0x117c50<_0x1e9a22[_0x21718e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x117c50+=0x2){let _0x43449d=window[_0x21718e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e9a22[_0x21718e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x117c50,_0x117c50+0x2));_0x43449d>=_0x7dfc14[_0x21718e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x43449d-=_0x7dfc14[_0x21718e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ea7be+=_0x7dfc14[_0x43449d];}return _0x1ea7be;}function _0x564266(){const _0x1b3f96=_0x5c9767[_0x21718e([0x73,0x70,0x6c,0x69,0x74])](_0x21718e([0x2e]));if(0x3!=_0x1b3f96[_0x21718e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5087c4(_0x1b3f96[0x1]);function _0x5087c4(_0x58cb7b){const _0x19249d=_0x14831b(_0x58cb7b);return _0x19249d&&_0x43c585()?_0x19249d:null;function _0x43c585(){const _0xebec15=_0x19249d[_0x21718e([0x6a,0x74,0x69])],_0x585fa0=window[_0x21718e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xebec15[_0x21718e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xebec15[_0x21718e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4edcc8={..._0x19249d,[_0x21718e([0x6a,0x74,0x69])]:_0xebec15[_0x21718e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xebec15[_0x21718e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4edcc8[_0x21718e([0x76,0x63])],_0x45c94e(_0x4edcc8)==_0x585fa0;}}}async function _0x2f5f45(){let _0x4c8229=!0x0;try{const _0x36893f=_0x5c9767[_0x21718e([0x73,0x70,0x6c,0x69,0x74])](_0x21718e([0x2e])),[_0x416aab,_0x31ee5a,_0x548370]=_0x36893f;return _0x3498d2(_0x416aab),await _0x47a676(_0x416aab,_0x31ee5a,_0x548370),_0x4c8229;}catch(_0x283d93){return!0x1;}function _0x3498d2(_0x294968){const _0x1de46f=_0x14831b(_0x294968);_0x1de46f&&_0x1de46f[_0x21718e([0x61,0x6c,0x67])]==_0x21718e([0x45,0x53,0x32,0x35,0x36])||(_0x4c8229=!0x1);}async function _0x47a676(_0x569c1f,_0x20350b,_0x11c2f8){const _0xf4d5ec=window[_0x21718e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x21718e([0x66,0x72,0x6f,0x6d])](_0x4841d1(_0x11c2f8),_0x3706e5=>_0x3706e5[_0x21718e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c721e=new window[(_0x21718e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x21718e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x569c1f+_0x21718e([0x2e])+_0x20350b),_0x4b43e5=window[_0x21718e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x21718e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b43e5)return;const _0x100382=await _0x4b43e5[_0x21718e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x21718e([0x6a,0x77,0x6b]),_0x3cec4b,{[_0x21718e([0x6e,0x61,0x6d,0x65])]:_0x21718e([0x45,0x43,0x44,0x53,0x41]),[_0x21718e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x21718e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x21718e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b43e5[_0x21718e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x21718e([0x6e,0x61,0x6d,0x65])]:_0x21718e([0x45,0x43,0x44,0x53,0x41]),[_0x21718e([0x68,0x61,0x73,0x68])]:{[_0x21718e([0x6e,0x61,0x6d,0x65])]:_0x21718e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x100382,_0xf4d5ec,_0x4c721e)||(_0x4c8229=!0x1);}}function _0x14831b(_0x14ee19){return _0x14ee19[_0x21718e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x21718e([0x65,0x79]))?JSON[_0x21718e([0x70,0x61,0x72,0x73,0x65])](_0x4841d1(_0x14ee19)):null;}function _0x4841d1(_0x179bbb){return window[_0x21718e([0x61,0x74,0x6f,0x62])](_0x179bbb[_0x21718e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x21718e([0x2b]))[_0x21718e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x21718e([0x2f])));}function _0x45c94e(_0x20c993){let _0x460d29=0x1505;function _0x7e38fe(_0x5ceb01){for(let _0x39add6=0x0;_0x39add6<_0x5ceb01[_0x21718e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39add6++){const _0x435202=_0x5ceb01[_0x21718e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x39add6);_0x460d29=(_0x460d29<<0x5)+_0x460d29+_0x435202,_0x460d29&=_0x460d29;}}function _0x2afc15(_0x2f929c){Array[_0x21718e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2f929c)?_0x2f929c[_0x21718e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2afc15):_0x2f929c&&typeof _0x2f929c==_0x21718e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x21718e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2f929c)[_0x21718e([0x73,0x6f,0x72,0x74])]()[_0x21718e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x283590,_0x42b9d9])=>{_0x7e38fe(_0x283590),_0x2afc15(_0x42b9d9);}):_0x7e38fe(window[_0x21718e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2f929c));}return _0x2afc15(_0x20c993),_0x460d29>>>0x0;}function _0x554c7a(_0x39e6be){return _0x39e6be[_0x21718e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x21718e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x21718e([0x30]));}function _0x1ee517(_0x2b9801){return _0x2b9801[_0x21718e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x21718e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x21718e([0x6a,0x6f,0x69,0x6e])]('');}function _0x27320c(){}function _0x21718e(_0x3fa914){const _0xa0eec7=_0x1955;return _0x3fa914[_0xa0eec7(0x150)](_0x120318=>String[_0xa0eec7(0x144)](_0x120318))[_0xa0eec7(0x13e)]('');}_0x57602f(await _0x5d2b44());}(this);}[_0xef34a(0x16d)](){const _0x38acb7=_0xef34a,_0x2505c7=this[_0x38acb7(0x14a)][_0x38acb7(0x126)][_0x38acb7(0x13f)];_0x2505c7[_0x38acb7(0x12a)](_0x38acb7(0x140))&&_0x2505c7[_0x38acb7(0x174)](_0x38acb7(0x140),{'allowAttributes':[_0x38acb7(0x12c)]}),_0x2505c7[_0x38acb7(0x12a)](_0x38acb7(0x169))&&_0x2505c7[_0x38acb7(0x174)](_0x38acb7(0x169),{'allowAttributes':[_0x38acb7(0x12c)]});}[_0xef34a(0x163)](){const _0x3b401c=_0xef34a,_0x88667d=this[_0x3b401c(0x14a)];_0x88667d[_0x3b401c(0x139)][_0x3b401c(0x124)](_0x3b401c(0x14e))[_0x3b401c(0x137)]({'model':_0x3b401c(0x12c),'view':_0x3b401c(0x135)}),_0x88667d[_0x3b401c(0x139)][_0x3b401c(0x124)](_0x3b401c(0x16e))[_0x3b401c(0x173)]({'model':{'key':_0x3b401c(0x12c),'value':_0x5c6543=>_0x5c6543[_0x3b401c(0x161)](_0x3b401c(0x135))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2df817=_0x88667d[_0x3b401c(0x170)][_0x3b401c(0x16b)](_0x3b401c(0x15f));_0x2df817&&this[_0x3b401c(0x143)](_0x2df817,_0x3b401c(0x16a),(_0x2c7957,[_0x546498,_0x56b21e])=>{const _0x58cc56=_0x3b401c;_0x546498[_0x58cc56(0x164)](_0x58cc56(0x12c),_0x56b21e);});}[_0xef34a(0x121)](){const _0x3bed41=_0xef34a,_0x280803=this[_0x3bed41(0x14a)][_0x3bed41(0x120)][_0x3bed41(0x16b)](_0x3bed41(0x153))||{},_0x417196=this[_0x3bed41(0x14a)][_0x3bed41(0x120)][_0x3bed41(0x16b)](_0x3bed41(0x129))||'';this[_0x3bed41(0x15a)]=_0x1c7aad(_0x336f41[_0x3bed41(0x167)],_0x3bed41(0x16c),{..._0x280803,'pubkey':_0x417196,'ctx-name':_0x3bed41(0x156),'sourceList':'','imgOnly':_0x3bed41(0x15c),'removeCopyright':_0x3bed41(0x15c),'localeName':this[_0x3bed41(0x14a)][_0x3bed41(0x15e)][_0x3bed41(0x172)],'externalSourcesEmbedCss':_0x3bed41(0x13b)}),this[_0x3bed41(0x15a)][_0x3bed41(0x145)]=_0x15d28e=>{const _0x3be0bb=_0x3bed41;if(_0x3be0bb(0x147)==_0x15d28e)return _0x3be0bb(0x11f);},_0x336f41[_0x3bed41(0x167)][_0x3bed41(0x15d)][_0x3bed41(0x12f)](this[_0x3bed41(0x15a)]);}[_0xef34a(0x152)](){const _0x444f72=_0xef34a;this[_0x444f72(0x154)]=_0x1c7aad(_0x336f41[_0x444f72(0x167)],_0x444f72(0x168),{'ctx-name':_0x444f72(0x156)}),_0x336f41[_0x444f72(0x167)][_0x444f72(0x15d)][_0x444f72(0x12f)](this[_0x444f72(0x154)]);}[_0xef34a(0x132)](){const _0x2757ac=_0xef34a,_0x3a4c1f=this[_0x2757ac(0x14a)][_0x2757ac(0x170)][_0x2757ac(0x16b)](_0x2757ac(0x125));_0x3a4c1f&&this[_0x2757ac(0x143)](_0x3a4c1f,_0x2757ac(0x122),()=>{const _0x2cb069=_0x2757ac,_0x180fa0=this[_0x2cb069(0x14a)][_0x2cb069(0x126)][_0x2cb069(0x167)][_0x2cb069(0x171)][_0x2cb069(0x14c)]();_0x180fa0&&_0x180fa0[_0x2cb069(0x161)](_0x2cb069(0x12c))&&this[_0x2cb069(0x14a)][_0x2cb069(0x165)][_0x2cb069(0x123)][_0x2cb069(0x146)](_0x2cb069(0x13a),()=>{const _0x4f15da=_0x2cb069;_0x2239df(this[_0x4f15da(0x14a)],_0x180fa0);});});const _0x1b05c1=this[_0x2757ac(0x14a)][_0x2757ac(0x170)][_0x2757ac(0x16b)](_0x2757ac(0x131));_0x1b05c1&&this[_0x2757ac(0x143)](_0x1b05c1,_0x2757ac(0x122),()=>{const _0x2fc38c=_0x2757ac,_0x4927d9=this[_0x2fc38c(0x14a)][_0x2fc38c(0x126)][_0x2fc38c(0x167)][_0x2fc38c(0x171)][_0x2fc38c(0x14c)]();_0x4927d9&&_0x4927d9[_0x2fc38c(0x161)](_0x2fc38c(0x12c))&&this[_0x2fc38c(0x14a)][_0x2fc38c(0x165)][_0x2fc38c(0x123)][_0x2fc38c(0x146)](_0x2fc38c(0x13a),()=>{const _0xdf8982=_0x2fc38c;_0x2239df(this[_0xdf8982(0x14a)],_0x4927d9);});});}}
|