@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250406.0 → 0.0.0-nightly-20250407.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x1dd4a0,Command as _0x3f38b4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4635ec,IconGooglePhotos as _0x5114cc,IconGoogleDrive as _0x4bc24a,IconFacebook as _0x1724ea,IconDropbox as _0x3f6ebe,IconUploadcareLink as _0x2542bf,IconUploadcareImageUpload as _0x511ef4,IconError as et,IconUploadcareImageEdit as _0x56a8ab}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x16b6ef,MenuBarMenuListItemButtonView as _0x4ea981,View as _0x1fa2e2,FocusCycler as _0x47f75a,Dialog as _0x5c5908,DialogViewPosition as _0x1c3d19,SpinnerView as _0x11ebe3,IconView as at,Notification as _0x43e758}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4569b8,DomEmitterMixin as _0x3626f0,global as _0x1cff4f,getAncestors as _0x16f5be,ObservableMixin as _0x31b995,createElement as _0x379973,uid as _0x4c5b6b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3ac3a5}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x40ee51,info as _0x2d12c3}from'@uploadcare/upload-client';import*as _0x44de83 from'@uploadcare/file-uploader';var o=function(_0x18275c){return _0x18275c['Local']='local',_0x18275c['URL']='url',_0x18275c['Dropbox']='dropbox',_0x18275c['GDrive']='gdrive',_0x18275c['Facebook']='facebook',_0x18275c['GPhotos']='gphotos',_0x18275c['OneDrive']='onedrive',_0x18275c;}({});function _(_0x4664aa,_0x4f4380,_0x404f28){const t=_0x4664aa['t'],_0x2d0237=_0x4664aa['t'];switch(_0x4f4380){case o['Local']:return{'text':_0x2d0237('Insert'===_0x404f28?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2d0237('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x404f28?_0x2d0237('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2d0237('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x404f28?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x404f28?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x404f28?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x404f28?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x404f28?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4f4380;}}class e extends _0x1dd4a0{['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 _0x5c6ef9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x34daf3;for(const _0x369c78 in _0x5c6ef9){const _0x1eb2f1=_0x369c78,_0x339ffe=_0x5c6ef9[_0x1eb2f1];if('uploadcareLicenseKeyValid'==_0x339ffe||'uploadcareLicenseKeyInvalid'==_0x339ffe||'uploadcareLicenseKeyExpired'==_0x339ffe||'uploadcareLicenseKeyDomainLimit'==_0x339ffe||'uploadcareLicenseKeyNotAllowed'==_0x339ffe||'uploadcareLicenseKeyEvaluationLimit'==_0x339ffe||'uploadcareLicenseKeyTrialLimit'==_0x339ffe||'uploadcareLicenseKeyUsageLimit'==_0x339ffe){delete _0x5c6ef9[_0x1eb2f1],_0x34daf3=_0x339ffe,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x24db7d}=this,_0x28f5a7=_0x24db7d['commands']['get']('uploadcare');if(!_0x28f5a7)return;const _0x18e1c9=this['_normalizeConfigSourceList'](_0x24db7d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x599e63,_0x15a01b)=>{const _0x58595b=this['_getIntegrationKey'](_0x15a01b['type']);return _0x599e63[_0x58595b]||(_0x599e63[_0x58595b]=[]),_0x599e63[_0x58595b]['push'](_0x15a01b),_0x599e63;},{});_0x24db7d['plugins']['has']('ImageInsertUI')&&_0x24db7d['commands']['get']('uploadcare')&&Object['entries'](_0x18e1c9)['forEach'](([_0x1ade82,_0x11ee8b])=>{_0x24db7d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1ade82,'observable':()=>_0x28f5a7,'buttonViewCreator':()=>this['_createToolbarButton'](_0x11ee8b),'formViewCreator':()=>this['_createDropdownButtons'](_0x11ee8b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x11ee8b),'override':'assetManager'!==_0x1ade82});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3c80dd){const {locale:_0x3a696b}=this['editor'];return _0x3c80dd['map'](_0x47ace3=>{const _0x40fa1b=_(_0x3a696b,_0x47ace3,'Insert');switch(_0x47ace3){case o['Local']:return{'icon':_0x511ef4,'type':o['Local'],..._0x40fa1b};case o['URL']:return{'icon':_0x2542bf,'type':o['URL'],..._0x40fa1b};case o['Dropbox']:return{'icon':_0x3f6ebe,'type':o['Dropbox'],..._0x40fa1b};case o['Facebook']:return{'icon':_0x1724ea,'type':o['Facebook'],..._0x40fa1b};case o['GDrive']:return{'icon':_0x4bc24a,'type':o['GDrive'],..._0x40fa1b};case o['GPhotos']:return{'icon':_0x5114cc,'type':o['GPhotos'],..._0x40fa1b};case o['OneDrive']:return{'icon':_0x4635ec,'type':o['OneDrive'],..._0x40fa1b};}});}['_getIntegrationKey'](_0x2ce3ff){switch(_0x2ce3ff){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4a7585,_0x2babdd){const _0xedcd72=this['editor'],_0x150ce1=new _0x4a7585(_0xedcd72['locale']),_0x6a59ae=_0xedcd72['commands']['get']('uploadcare');return _0x150ce1['bind']('isEnabled')['to'](_0x6a59ae),_0x150ce1['on']('execute',()=>{_0x6a59ae['execute'](_0x2babdd);}),_0x150ce1;}['_createToolbarButton'](_0x56ae6a){const {locale:_0xac7d54}=this['editor'],_0x1aed11=this['editor']['plugins']['get']('ImageInsertUI'),_0x2be731=_0x56ae6a[0x0],_0x16edba=this['_createButton'](_0x16b6ef,_0x2be731['type']);return _0x16edba['icon']=_0x2be731['icon'],_0x16edba['bind']('label')['to'](_0x1aed11,'isImageSelected',_0x246d04=>_(_0xac7d54,_0x2be731['type'],_0x246d04?'Replace':'Insert')['text']),_0x16edba['tooltip']=!0x0,_0x16edba;}['_createDropdownButtons'](_0x598ccc){const {locale:_0x311086}=this['editor'],_0x52d8c1=this['editor']['plugins']['get']('ImageInsertUI');return _0x598ccc['map'](_0x31c46b=>{const _0x4b1816=this['_createButton'](_0x16b6ef,_0x31c46b['type']);return _0x4b1816['withText']=!0x0,_0x4b1816['icon']=_0x31c46b['icon'],_0x4b1816['bind']('label')['to'](_0x52d8c1,'isImageSelected',_0x51ad66=>_(_0x311086,_0x31c46b['type'],_0x51ad66?'Replace':'Insert')['text']),_0x4b1816;});}['_createMenuBarButtons'](_0x3192b3){return _0x3192b3['map'](_0x5b7d5f=>{const _0x4039f1=this['_createButton'](_0x4ea981,_0x5b7d5f['type']);return _0x4039f1['icon']=_0x5b7d5f['icon'],_0x4039f1['label']=_0x5b7d5f['shortText'],_0x4039f1;});}}class q extends _0x1fa2e2{['focusTracker'];['focusCycler'];constructor(_0x4c64d2){super(_0x4c64d2),this['focusTracker']=new _0x4569b8(),this['focusCycler']=new _0x47f75a({'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(_0x670eae){super(_0x670eae),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(_0x5cbcfd,_0x5e397a){const _0x99959=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2f7e47=>_0x2f7e47<=_0x5e397a)['map'](_0x116375=>_0x5cbcfd['replace'](/\/$/,'')+'/-/resize/'+_0x116375+'x/\x20'+_0x116375+'w');return{'imageFallbackUrl':_0x5cbcfd,'imageSources':[{'srcset':_0x99959['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5e397a+'px)\x20100vw,\x20'+_0x5e397a+'px','type':'image/webp'}]};}function A(_0xa2af93,_0x5d40d3,_0x5c658b){const _0x22a137=_0xa2af93['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x22a137?parseInt(_0x22a137[0x1],0xa):_0x5d40d3,'height':_0x22a137?parseInt(_0x22a137[0x2],0xa):_0x5c658b};}function m(_0x9c870c,_0x555675){const _0x3cb6c5=Object['create'](_0x3626f0),_0x4983c5=_0x9c870c['plugins']['get']('ImageUtils'),_0x47aeef=_0x9c870c['editing']['mapper']['toViewElement'](_0x555675),_0x32aad4=_0x4983c5['findViewImgElement'](_0x47aeef),_0x56be74=_0x9c870c['editing']['view']['domConverter']['viewToDom'](_0x32aad4),_0x26cbad=_0x555675['getAttribute']('width'),_0x4a63cf=_0x555675['getAttribute']('height'),_0x4f8003='image-processing';_0x9c870c['editing']['view']['change'](_0x329590=>{_0x329590['addClass'](_0x4f8003,_0x47aeef),_0x329590['setStyle']('aspect-ratio',_0x26cbad+'/'+_0x4a63cf,_0x32aad4);}),_0x3cb6c5['listenTo'](_0x56be74,'load',()=>{_0x3cb6c5['stopListening'](_0x56be74,'load'),_0x9c870c['editing']['view']['change'](_0x400509=>{_0x400509['removeClass'](_0x4f8003,_0x47aeef),_0x400509['removeStyle']('aspect-ratio',_0x32aad4);});});}function V(_0x33459f){if(Array['isArray'](_0x33459f)){const _0x59073b=_0x33459f['map'](V);return _0x33d372=>_0x59073b['some'](_0x3f407e=>_0x3f407e(_0x33d372));}if('origin'==_0x33459f){const _0x59d4f8=_0x1cff4f['window']['location']['origin'];return _0x4149e9=>new URL(_0x4149e9,_0x1cff4f['document']['baseURI'])['origin']==_0x59d4f8;}return'function'==typeof _0x33459f?_0x33459f:_0x33459f instanceof RegExp?_0x3fc669=>!(!_0x3fc669['match'](_0x33459f)&&!_0x3fc669['replace'](/^https?:\/\//,'')['match'](_0x33459f)):()=>!0x1;}function F(_0x2ff5ce,_0x2ec18e){return _0x16f5be(_0x2ff5ce['target'])['includes'](_0x2ec18e);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x31b995(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xd61ffc,_0x4d3d36,_0x5ae613){super(),this['_editor']=_0xd61ffc,this['_editing']=_0x4d3d36,this['_dialog']=_0xd61ffc['plugins']['get'](_0x5c5908),this['_api']=_0x4d3d36['ctxElement']['getAPI'](),this['_type']=_0x5ae613,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:_0x1a2d6b,model:_0x5c0780}=this['_editor'],_0x63e331=_0x5c0780['document']['selection']['getSelectedElement'](),_0x1cdade=_0x63e331&&(_0x63e331['is']('element','imageBlock')||_0x63e331['is']('element','imageInline'));this['_formView']=new S(_0x1a2d6b),this['_dialog']['show']({'id':'uploadCare','icon':_0x511ef4,'title':_(_0x1a2d6b,this['_type'],_0x1cdade?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1c3d19['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x36a11f=>!F(_0x36a11f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3874ed}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x54f9c9=>{const _0x3a6dd2=_0x3874ed['length'];for(const _0x4aa22a of _0x3874ed){const _0x51b5a8=_0x4aa22a===_0x3874ed[_0x3a6dd2-0x1],{cdnUrl:_0x54b33c,fileInfo:_0x157349}=_0x4aa22a;if(!_0x54b33c||!_0x157349)continue;const {width:_0x3485fd,height:_0x3c31ef}=_0x157349['imageInfo'],_0x1af81e=A(_0x54b33c,_0x3485fd,_0x3c31ef),_0x49aca7=E(_0x54b33c,_0x1af81e['width']),_0x35d3bd={'id':_0x157349['uuid'],'type':'image','attributes':{'imageDimension':_0x1af81e,..._0x49aca7}};this['_insertAsset'](_0x35d3bd,_0x51b5a8,_0x54f9c9);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x22ec39=>{'idle'===_0x22ec39['detail']['status']&&!_0x22ec39['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4015a9,_0x35e60c,_0x204fae){const _0xe4f2e2=this['_editor']['model']['document']['selection'],_0x432264=_0xe4f2e2['getSelectedElement'](),_0x5b0879=!(!_0x432264||!_0x432264['is']('element','imageInline'));_0x204fae['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4015a9,_0x5b0879),_0x35e60c||_0x204fae['setSelection'](_0xe4f2e2['getLastPosition']());}['_insertImage'](_0x239fcf,_0x2b502b){const _0xb1fa61=this['_editor'],{imageDimension:_0x57a5fa,imageFallbackUrl:_0x27a583,imageSources:_0x8c6962}=_0x239fcf['attributes'];_0xb1fa61['execute']('insertImage',{'imageType':_0x2b502b?'imageInline':null,'source':{'uploadcareImageId':_0x239fcf['id'],'src':_0x27a583,'sources':_0x8c6962,..._0x57a5fa}});}}class n extends _0x3f38b4{['_editing'];['_controller']=null;static get['requires'](){return[_0x5c5908,i];}constructor(_0x149f28){super(_0x149f28),this['_editing']=_0x149f28['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2115ae){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x2115ae);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1b6250,publicKey:_0xf3c293,signal:_0x39bd3d,onProgress:_0x56196c}){return _0x40ee51(_0x1b6250,{'publicKey':_0xf3c293,'store':'auto','signal':_0x39bd3d,'onProgress':_0x56196c});}static['getInfo'](_0x1f7336,_0x48d234){return _0x2d12c3(_0x1f7336,_0x48d234);}}class p extends _0x1dd4a0{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3ac3a5,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x8c4cde=this['editor'];if(!!!_0x8c4cde['config']['get']('uploadcare'))return;_0x8c4cde['plugins']['get'](_0x3ac3a5)['createUploadAdapter']=_0x1136e7=>new x(_0x1136e7,_0x8c4cde),_0x8c4cde['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x344fa0,{imageElement:_0x4bdbe3,data:_0x4a5d47})=>{_0x8c4cde['model']['change'](_0x3d1d90=>{_0x3d1d90['setAttribute']('uploadcareImageId',_0x4a5d47['uploadcareImageId'],_0x4bdbe3);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x557b78,_0x1eabeb){this['loader']=_0x557b78,this['editor']=_0x1eabeb,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1af6cd=this['editor']['config']['get']('uploadcare.pubkey'),_0x341486=await this['loader']['file'];return C['upload']({'file':_0x341486,'publicKey':_0x1af6cd,'signal':this['controller']['signal'],'onProgress':_0x410561=>{_0x410561&&_0x410561['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x410561['value']);}})['then'](async _0x484416=>{const {imageFallbackUrl:_0x326d53,imageSources:_0x133d97}=E(_0x484416['cdnUrl'],_0x484416['imageInfo']['width']);return{'uploadcareImageId':_0x484416['uuid'],'default':_0x326d53,'sources':_0x133d97};})['catch'](()=>{const _0x21de68=t('Cannot\x20upload\x20file:')+('\x20'+_0x341486['name']+'.');return Promise['reject'](_0x21de68);});}['abort'](){this['controller']['abort']();}}class i extends _0x1dd4a0{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x5c5908];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x96568a=this['editor'];_0x96568a['commands']['add']('uploadcare',new n(_0x96568a));}['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 _0x5d0e5e=_0x1cff4f['document']['querySelector']('input[uploadcare-file-input]');_0x5d0e5e&&_0x5d0e5e['remove']();}),async function(_0x299808){const _0x2809a2=_0x2296f5([0x4f,0x7a,0x6c,0x5a,0x30,0x56,0x52,0x49,0x39,0x50,0x4e,0x54,0x66,0x31,0x36,0x53,0x78,0x43,0x35,0x69,0x63,0x6b,0x4d,0x4c,0x55,0x46,0x73,0x71,0x79,0x41,0x58,0x6e,0x6a,0x67,0x47,0x61,0x76,0x37,0x48,0x32,0x72,0x33,0x6f,0x44,0x65,0x4b,0x4a,0x34,0x75,0x64,0x57,0x68,0x6d,0x59,0x51,0x42,0x45,0x62,0x38,0x77,0x70,0x74]),_0x30a921=0x3bcbc51c,_0x239c79=0x3bcca15c^_0x30a921,_0xdf3596=window[_0x2296f5([0x44,0x61,0x74,0x65])][_0x2296f5([0x6e,0x6f,0x77])](),_0x3bc9ba=_0x299808[_0x2296f5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1b3e9d=new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32904a=>{_0x3bc9ba[_0x2296f5([0x6f,0x6e,0x63,0x65])](_0x2296f5([0x72,0x65,0x61,0x64,0x79]),_0x32904a);}),_0x10a639={[_0x2296f5([0x6b,0x74,0x79])]:_0x2296f5([0x45,0x43]),[_0x2296f5([0x75,0x73,0x65])]:_0x2296f5([0x73,0x69,0x67]),[_0x2296f5([0x63,0x72,0x76])]:_0x2296f5([0x50,0x2d,0x32,0x35,0x36]),[_0x2296f5([0x78])]:_0x2296f5([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]),[_0x2296f5([0x79])]:_0x2296f5([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]),[_0x2296f5([0x61,0x6c,0x67])]:_0x2296f5([0x45,0x53,0x32,0x35,0x36])},_0x4e016a=_0x3bc9ba[_0x2296f5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2296f5([0x67,0x65,0x74])](_0x2296f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x52f8a5(){let _0x5c00ed,_0x449399=null,_0x1660dd=null;try{if(_0x4e016a==_0x2296f5([0x47,0x50,0x4c]))return _0x2296f5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5c00ed=_0x27f7da(),!_0x5c00ed)return _0x2296f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5c00ed[_0x2296f5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1660dd=_0x23462e(_0x5c00ed[_0x2296f5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5c00ed[_0x2296f5([0x6a,0x74,0x69])])),await _0x2c084e()?_0x4e61f3()?_0x400561()?_0x2296f5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1831f8()?(_0x5c00ed[_0x2296f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2296f5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x449399=_0x374308(_0x2296f5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5c00ed[_0x2296f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2296f5([0x74,0x72,0x69,0x61,0x6c])&&(_0x449399=_0x374308(_0x2296f5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x24e63f()):_0x2296f5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2296f5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2296f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4a2790){return _0x2296f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x400561(){const _0x51aac7=[_0x2296f5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2296f5([0x74,0x72,0x69,0x61,0x6c])][_0x2296f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c00ed[_0x2296f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xdf3596/0x3e8:0xe10*_0x239c79;return _0x5c00ed[_0x2296f5([0x65,0x78,0x70])]<_0x51aac7;}function _0x4e61f3(){const _0x36ce85=_0x5c00ed[_0x2296f5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x36ce85&&(!!_0x36ce85[_0x2296f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2296f5([0x2a]))||!!_0x36ce85[_0x2296f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2296f5([0x55,0x50,0x4c,0x43])));}function _0x1831f8(){const _0x3d1391=_0x5c00ed[_0x2296f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3d1391||0x0==_0x3d1391[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc992f4}=new URL(window[_0x2296f5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3d1391[_0x2296f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc992f4))return!0x0;const _0x3470c4=_0xc992f4[_0x2296f5([0x73,0x70,0x6c,0x69,0x74])](_0x2296f5([0x2e]));return _0x3d1391[_0x2296f5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b8ad3=>_0x2b8ad3[_0x2296f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2296f5([0x2a])))[_0x2296f5([0x6d,0x61,0x70])](_0x3abc04=>_0x3abc04[_0x2296f5([0x73,0x70,0x6c,0x69,0x74])](_0x2296f5([0x2e])))[_0x2296f5([0x73,0x6f,0x6d,0x65])](_0x5a7a95=>_0x3470c4[_0x2296f5([0x65,0x76,0x65,0x72,0x79])]((_0x5cdd18,_0x26a624)=>_0x5a7a95[_0x26a624]===_0x5cdd18||_0x5a7a95[_0x26a624]===_0x2296f5([0x2a])));}function _0x24e63f(){return _0x449399&&_0x1660dd?new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c8751,_0x216f8d)=>{_0x449399[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x3c8751,_0x216f8d),_0x1660dd[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x447fb8=>{_0x447fb8!=_0x2296f5([0x56,0x61,0x6c,0x69,0x64])&&_0x3c8751(_0x447fb8);},_0x216f8d);}):_0x449399||_0x1660dd||_0x2296f5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x23462e(_0x286e17,_0x5bb5a6){return new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x92571f=>{if(_0xc2d07b())return _0x92571f(_0x2296f5([0x56,0x61,0x6c,0x69,0x64]));_0x1907ab(),_0x3bc9ba[_0x2296f5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2296f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4f5d15=!0x1;const _0x3e5327=_0x4c5b6b();function _0x559e55(_0x437e45){return!!_0x437e45&&(typeof _0x437e45===_0x2296f5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x437e45===_0x2296f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x437e45[_0x2296f5([0x74,0x68,0x65,0x6e])]===_0x2296f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x437e45[_0x2296f5([0x63,0x61,0x74,0x63,0x68])]===_0x2296f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4be237(_0x5abaaf){_0x34ed4d(_0x5abaaf)[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x55ce11=>{if(!_0x55ce11||_0x55ce11[_0x2296f5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2296f5([0x6f,0x6b]))return _0x2296f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xec165a(_0x2d87d7(_0x3e5327+_0x5bb5a6))!=_0x55ce11[_0x2296f5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2296f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2296f5([0x56,0x61,0x6c,0x69,0x64]);})[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x41a0ec=>(_0x25d563(),_0x41a0ec),()=>{const _0x57581a=_0x32420e();return null==_0x57581a?(_0x25d563(),_0x2296f5([0x56,0x61,0x6c,0x69,0x64])):_0x2296f5(_0xdf3596-_0x57581a>(0x1fc7411c^_0x30a921)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x92571f)[_0x2296f5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x92571f(_0x2296f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x39fe39=0x3bfd2b9c^_0x30a921;function _0x25d563(){const _0x4ded9b=_0x2296f5([0x6c,0x6c,0x63,0x74,0x2d])+_0xec165a(_0x2d87d7(_0x286e17)),_0x2c1fb3=_0x3ecc64(_0xec165a(window[_0x2296f5([0x4d,0x61,0x74,0x68])][_0x2296f5([0x63,0x65,0x69,0x6c])](_0xdf3596/_0x39fe39)));window[_0x2296f5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2296f5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ded9b,_0x2c1fb3);}function _0x32420e(){const _0x44b4c=_0x2296f5([0x6c,0x6c,0x63,0x74,0x2d])+_0xec165a(_0x2d87d7(_0x286e17)),_0x3d8aa1=window[_0x2296f5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2296f5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44b4c);return _0x3d8aa1?window[_0x2296f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ecc64(_0x3d8aa1),0x10)*_0x39fe39:null;}function _0x34ed4d(_0x25ed76){return new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4990b8,_0xa29e66)=>{_0x25ed76[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x4990b8,_0xa29e66),window[_0x2296f5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa29e66,0x3bca11dc^_0x30a921);});}}_0x3bc9ba[_0x2296f5([0x6f,0x6e])](_0x2296f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x594111,_0x528abb)=>{if(_0x528abb[0x0]!=_0x286e17)return _0x92571f(_0x2296f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x528abb[0x1]={..._0x528abb[0x1],[_0x2296f5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e5327};},{[_0x2296f5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2296f5([0x68,0x69,0x67,0x68])}),_0x3bc9ba[_0x2296f5([0x6f,0x6e])](_0x2296f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2bb89d=>{_0x559e55(_0x2bb89d[_0x2296f5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4f5d15=!0x0,_0x4be237(_0x2bb89d[_0x2296f5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2296f5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2296f5([0x6c,0x6f,0x77])}),_0x1b3e9d[_0x2296f5([0x74,0x68,0x65,0x6e])](()=>{_0x4f5d15||_0x92571f(_0x2296f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc2d07b(){return _0x3bc9ba[_0x2296f5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2296f5([0x76,0x69,0x65,0x77])][_0x2296f5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2296f5([0x61,0x75,0x74,0x6f]);}function _0x1907ab(){_0x3bc9ba[_0x2296f5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2296f5([0x76,0x69,0x65,0x77])][_0x2296f5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2296f5([0x61,0x75,0x74,0x6f]);}}function _0x374308(_0x3bc433){const _0x3a0323=[new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28bb29=>setTimeout(_0x28bb29,0x3bc2fbd0^_0x30a921)),_0x1b3e9d[_0x2296f5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x261653=>{let _0x6600a5=0x0;_0x3bc9ba[_0x2296f5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2296f5([0x6f,0x6e])](_0x2296f5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x226a6f,_0x1958ca)=>{_0x1958ca[0x0][_0x2296f5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x6600a5++,_0x6600a5==(0x3bcbc4e4^_0x30a921)&&(_0x261653(),_0x226a6f[_0x2296f5([0x6f,0x66,0x66])]());});}))];return window[_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2296f5([0x72,0x61,0x63,0x65])](_0x3a0323)[_0x2296f5([0x74,0x68,0x65,0x6e])](()=>_0x3bc433);}async function _0xe6f264(){await _0x1b3e9d,_0x3bc9ba[_0x2296f5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2296f5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c272a,_0x3bc9ba[_0x2296f5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2296f5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c272a,_0x3bc9ba[_0x2296f5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2296f5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x273394(_0x4a4b5a){const _0x6ebdee=_0x202764();_0x3bc9ba[_0x6ebdee]=_0x2296f5([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4a4b5a,_0x4a4b5a!=_0x2296f5([0x56,0x61,0x6c,0x69,0x64])&&_0xe6f264();}function _0x202764(){const _0x23efcc=window[_0x2296f5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2296f5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2296f5([0x6e,0x6f,0x77])]())[_0x2296f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2296f5([0x2e]),'');let _0x5c5c7a=_0x2296f5([0x4f]);for(let _0x1ae4c5=0x0;_0x1ae4c5<_0x23efcc[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ae4c5+=0x2){let _0x3fe59d=window[_0x2296f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23efcc[_0x2296f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ae4c5,_0x1ae4c5+0x2));_0x3fe59d>=_0x2809a2[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3fe59d-=_0x2809a2[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5c5c7a+=_0x2809a2[_0x3fe59d];}return _0x5c5c7a;}function _0x27f7da(){const _0xbef4cd=_0x4e016a[_0x2296f5([0x73,0x70,0x6c,0x69,0x74])](_0x2296f5([0x2e]));if(0x3!=_0xbef4cd[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x191320(_0xbef4cd[0x1]);function _0x191320(_0x2fecc6){const _0x14dc51=_0xedf7f4(_0x2fecc6);return _0x14dc51&&_0x5c7027()?_0x14dc51:null;function _0x5c7027(){const _0x5dbbc7=_0x14dc51[_0x2296f5([0x6a,0x74,0x69])],_0x12857e=window[_0x2296f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dbbc7[_0x2296f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dbbc7[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc25daa={..._0x14dc51,[_0x2296f5([0x6a,0x74,0x69])]:_0x5dbbc7[_0x2296f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5dbbc7[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc25daa[_0x2296f5([0x76,0x63])],_0x2d87d7(_0xc25daa)==_0x12857e;}}}async function _0x2c084e(){let _0x672588=!0x0;try{const _0x6509f9=_0x4e016a[_0x2296f5([0x73,0x70,0x6c,0x69,0x74])](_0x2296f5([0x2e])),[_0x1effe2,_0x49f419,_0x32415b]=_0x6509f9;return _0x56adde(_0x1effe2),await _0x57e4d8(_0x1effe2,_0x49f419,_0x32415b),_0x672588;}catch(_0x48fa90){return!0x1;}function _0x56adde(_0x36610e){const _0x1f58a8=_0xedf7f4(_0x36610e);_0x1f58a8&&_0x1f58a8[_0x2296f5([0x61,0x6c,0x67])]==_0x2296f5([0x45,0x53,0x32,0x35,0x36])||(_0x672588=!0x1);}async function _0x57e4d8(_0x157fd0,_0x4e7e3f,_0x1aa553){const _0x352362=window[_0x2296f5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2296f5([0x66,0x72,0x6f,0x6d])](_0x498867(_0x1aa553),_0x165395=>_0x165395[_0x2296f5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x504df3=new window[(_0x2296f5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2296f5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x157fd0+_0x2296f5([0x2e])+_0x4e7e3f),_0x6fb1c=window[_0x2296f5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2296f5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6fb1c)return;const _0x1a776f=await _0x6fb1c[_0x2296f5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2296f5([0x6a,0x77,0x6b]),_0x10a639,{[_0x2296f5([0x6e,0x61,0x6d,0x65])]:_0x2296f5([0x45,0x43,0x44,0x53,0x41]),[_0x2296f5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2296f5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2296f5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6fb1c[_0x2296f5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2296f5([0x6e,0x61,0x6d,0x65])]:_0x2296f5([0x45,0x43,0x44,0x53,0x41]),[_0x2296f5([0x68,0x61,0x73,0x68])]:{[_0x2296f5([0x6e,0x61,0x6d,0x65])]:_0x2296f5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a776f,_0x352362,_0x504df3)||(_0x672588=!0x1);}}function _0xedf7f4(_0x50796e){return _0x50796e[_0x2296f5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2296f5([0x65,0x79]))?JSON[_0x2296f5([0x70,0x61,0x72,0x73,0x65])](_0x498867(_0x50796e)):null;}function _0x498867(_0x24fb9c){return window[_0x2296f5([0x61,0x74,0x6f,0x62])](_0x24fb9c[_0x2296f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2296f5([0x2b]))[_0x2296f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2296f5([0x2f])));}function _0x2d87d7(_0x129d6c){let _0x5542da=0x1505;function _0x398712(_0x40129d){for(let _0x2c8a4b=0x0;_0x2c8a4b<_0x40129d[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c8a4b++){const _0x353f58=_0x40129d[_0x2296f5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c8a4b);_0x5542da=(_0x5542da<<0x5)+_0x5542da+_0x353f58,_0x5542da&=_0x5542da;}}function _0x115170(_0x1562bc){Array[_0x2296f5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1562bc)?_0x1562bc[_0x2296f5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x115170):_0x1562bc&&typeof _0x1562bc==_0x2296f5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2296f5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1562bc)[_0x2296f5([0x73,0x6f,0x72,0x74])]()[_0x2296f5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xdeed05,_0x322595])=>{_0x398712(_0xdeed05),_0x115170(_0x322595);}):_0x398712(window[_0x2296f5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1562bc));}return _0x115170(_0x129d6c),_0x5542da>>>0x0;}function _0xec165a(_0x2fed1e){return _0x2fed1e[_0x2296f5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2296f5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2296f5([0x30]));}function _0x3ecc64(_0x3a1142){return _0x3a1142[_0x2296f5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2296f5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2296f5([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c272a(){}function _0x2296f5(_0x475217){return _0x475217['map'](_0x44f032=>String['fromCharCode'](_0x44f032))['join']('');}_0x273394(await _0x52f8a5());}(this);}['_initSchema'](){const _0x26ce7a=this['editor']['model']['schema'];_0x26ce7a['isRegistered']('imageBlock')&&_0x26ce7a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x26ce7a['isRegistered']('imageInline')&&_0x26ce7a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4d6fb3=this['editor'];_0x4d6fb3['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4d6fb3['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4eb29=>_0x4eb29['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4e14e6=_0x4d6fb3['commands']['get']('replaceImageSource');_0x4e14e6&&this['listenTo'](_0x4e14e6,'cleanupImage',(_0x2dad59,[_0x1c5ede,_0x4ccf86])=>{_0x1c5ede['removeAttribute']('uploadcareImageId',_0x4ccf86);});}['_initConfig'](){const _0x59266a=this['editor']['config']['get']('uploadcare.uploader')||{},_0xc14d05=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x379973(_0x1cff4f['document'],'uc-config',{..._0x59266a,'pubkey':_0xc14d05,'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']=_0x13927e=>{if('closeMax'==_0x13927e)return'#uc-icon-arrow-down';},_0x1cff4f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x379973(_0x1cff4f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x1cff4f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x53f16e=this['editor']['commands']['get']('insertImage');_0x53f16e&&this['listenTo'](_0x53f16e,'execute',()=>{const _0x24d448=this['editor']['model']['document']['selection']['getSelectedElement']();_0x24d448&&_0x24d448['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x24d448);});});const _0x4ee7a8=this['editor']['commands']['get']('uploadcareImageReplace');_0x4ee7a8&&this['listenTo'](_0x4ee7a8,'execute',()=>{const _0x595132=this['editor']['model']['document']['selection']['getSelectedElement']();_0x595132&&_0x595132['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x595132);});});}}class u extends _0x1dd4a0{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3499ec){super(_0x3499ec),_0x3499ec['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x44de83['defineComponents'](_0x44de83);}}class ta extends _0x1fa2e2{constructor(_0x2d7ba7){super(_0x2d7ba7);const t=_0x2d7ba7['t'],_0x27ce46=this['bindTemplate'],_0x513e5f=new _0x11ebe3();_0x513e5f['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':[_0x513e5f,{'text':_0x27ce46['to']('imageUploadProgress',_0x3fdded=>t('Loading\x20image...')+'\x20('+(_0x3fdded||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 _0x1fa2e2{constructor(_0x410c87){super(_0x410c87);const t=_0x410c87['t'];this['set']('errorType',null);const _0x583d53=new _0x16b6ef(_0x410c87);_0x583d53['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x583d53['withText']=!0x0,_0x583d53['class']='ck-button-action',_0x583d53['on']('execute',()=>{this['fire']('retry');}),_0x583d53['bind']('isVisible')['to'](this,'errorType',_0x3114ab=>'NotFound'!==_0x3114ab);const _0x3ed5b0=new at();_0x3ed5b0['content']=et,_0x3ed5b0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x11415e=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':[_0x3ed5b0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x11415e['to']('errorType',_0x4db2cb=>t('NotFound'!==_0x4db2cb?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x583d53]},{'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 _0x1fa2e2{constructor(_0x17391b,_0x1863ff){super(_0x17391b);const _0x29436d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1863ff,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x29436d['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2ffe31,_0x23f942,_0x2d3b6f){super(_0x2ffe31),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x2ffe31),this['_errorView']=new rt(_0x2ffe31),this['_editingView']=new tt(_0x2ffe31,_0x2d3b6f),this['_focusableView']=new _0x1fa2e2(_0x2ffe31),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x23f942),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'],_0x23f2d8=>{this['_addUploadcareImageEditorListeners'](_0x23f2d8);});}),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'](_0x2395c5,_0x38ff9a){const _0x5ebbe4='uc-cloud-image-editor',_0x25d9e9=_0x2395c5['querySelector'](_0x5ebbe4);if(_0x25d9e9)return _0x38ff9a(_0x25d9e9);const _0x58a3be=new MutationObserver(_0x4f073c=>{const _0x5d9bcf=_0x4f073c['filter'](_0x502e95=>_0x502e95['target']===_0x2395c5&&_0x502e95['addedNodes']['length']>0x0&&_0x502e95['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5ebbe4);_0x5d9bcf['length']&&(_0x58a3be['disconnect'](),_0x38ff9a(_0x5d9bcf[0x0]['addedNodes'][0x0]));});_0x58a3be['observe'](_0x2395c5,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x42d7ba){_0x42d7ba['addEventListener']('apply',_0x1e88ea=>{this['fire']('apply',{'imageSrc':_0x1e88ea['detail']['cdnUrl']});}),_0x42d7ba['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x31b995(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5302a5,_0xbc0ae5,_0x8371d6){super(),this['_editor']=_0x5302a5,this['_dialog']=_0xbc0ae5,this['_imageElement']=_0x8371d6,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 _0x52a2dd=this['_imageElement'],_0x10ae4a=_0x52a2dd['getAttribute']('uploadcareImageId'),_0xef33f8=_0x52a2dd['getAttribute']('src');if(_0x10ae4a)await this['_loadImageInfo'](_0x10ae4a,_0xef33f8);else{if(this['_imageCache']['has'](_0xef33f8)){const _0x544db0=this['_imageCache']['get'](_0xef33f8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x544db0['url'],this['imageDimension']=_0x544db0['dimension'],this['imageId']=_0x544db0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x47073b}=this['_editor'],t=_0x47073b['t'],_0x8b1491=new Z(_0x47073b,this['imageStatus'],this['_attributes']);_0x8b1491['bind']('status')['to'](this,'imageStatus'),_0x8b1491['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x8b1491['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x8b1491['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x8b1491,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x56a8ab,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x8b1491,'position':_0x1c3d19['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x8b1491['focus']();},'onHide':()=>{_0x8b1491['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x588a12=>!F(_0x588a12,_0x8b1491['element'])}});}['_loadImageInfo'](_0x3aa8e8,_0x2d2c6e){return C['getInfo'](_0x3aa8e8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x549c70=>{const {width:_0x5ecaa7,height:_0x44c8b8}=_0x549c70['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2d2c6e,this['imageDimension']={'width':_0x5ecaa7,'height':_0x44c8b8},this['imageId']=_0x3aa8e8;})['catch'](_0xcae8a2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xcae8a2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x52ba99,_0x40df70){return this['_getImageAsFile'](_0x52ba99)['then'](_0xca12f7=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x40df70['signal'],'file':_0xca12f7,'onProgress':_0x3d6f68=>{_0x3d6f68&&_0x3d6f68['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3d6f68['value']));}}))['then'](_0x14955c=>{const {width:_0x359d1a,height:_0x32ceef}=_0x14955c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14955c['cdnUrl'],this['imageDimension']={'width':_0x359d1a,'height':_0x32ceef},this['imageId']=_0x14955c['uuid'],this['imageUploadProgress']=null;const _0x3f0b7e=_0x52ba99['getAttribute']('src');this['_imageCache']['set'](_0x3f0b7e,{'id':_0x14955c['uuid'],'url':_0x14955c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x46bde6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x46bde6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xd19539,_0x5e0b6f){_0xd19539['on']('apply',(_0x57b3f4,_0x20e8cd)=>{this['_replaceImage'](_0x5e0b6f,_0x20e8cd['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xd19539['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xd19539['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3fe5c9,_0x39ba6f,_0x366895){const _0x9da0e4=this['_editor'],{width:_0x258452,height:_0x59bff1}=A(_0x39ba6f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x16a1a4,imageSources:_0x19299e}=E(_0x39ba6f,_0x258452);_0x9da0e4['model']['change'](_0xf7d8d7=>{if('$graveyard'===_0x3fe5c9['root']['rootName']){_0x9da0e4['execute']('insertImage',{'imageType':_0x3fe5c9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3fe5c9['getAttributes']()),'uploadcareImageId':_0x366895,'src':_0x16a1a4,'sources':_0x19299e,'width':_0x258452,'height':_0x59bff1}});const _0x510199=_0x3fe5c9['getChildren']();_0x3fe5c9=_0x9da0e4['model']['document']['selection']['getSelectedElement']();for(const _0x599273 of _0x510199)_0xf7d8d7['append'](_0xf7d8d7['cloneElement'](_0x599273),_0x3fe5c9);}else _0xf7d8d7['setSelection'](_0x3fe5c9,'on'),_0x9da0e4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3fe5c9['getAttributes']()),'uploadcareImageId':_0x366895,'src':_0x16a1a4,'sources':_0x19299e,'width':_0x258452,'height':_0x59bff1},_0x3fe5c9);_0xf7d8d7['setSelection'](_0x3fe5c9,'on');});}async['_getImageAsFile'](_0x2f8747){const _0x3dfdb3=_0x1cff4f['window'],_0x3d5368=_0x1cff4f['document']['location']['href'],_0x124949=new _0x3dfdb3['URL'](_0x2f8747['getAttribute']('src'),_0x3d5368);if('data:'===_0x124949['protocol']){const _0x454616=_0x124949['href']['split'](','),_0x30b387=_0x454616[0x0]['match'](/:(.*?);/)[0x1],_0x432e81=_0x30b387['split']('/')[0x1],_0x30df7a=_0x3dfdb3['atob'](_0x454616[_0x454616['length']-0x1]);let _0x12e878=_0x30df7a['length'];const _0x3d73a6=new _0x3dfdb3['Uint8Array'](_0x12e878);for(;_0x12e878--;)_0x3d73a6[_0x12e878]=_0x30df7a['charCodeAt'](_0x12e878);return new _0x3dfdb3['File']([_0x3d73a6],'image.'+_0x432e81,{'type':_0x30b387});}const _0x19c1b3=_0x124949['href']['split']('/'),_0x16fbf4=_0x19c1b3[_0x19c1b3['length']-0x1],_0x110dac=_0x16fbf4['split']('.')[0x1];return _0x3dfdb3['fetch'](_0x124949['href'])['then'](_0x3b5034=>_0x3b5034['clone']()['blob']())['then'](_0x4f377f=>new _0x3dfdb3['File']([_0x4f377f],_0x16fbf4,{'type':'image/'+_0x110dac}));}}class J extends _0x3f38b4{['imageEditController'];static get['requires'](){return[_0x5c5908];}['_isEditable'];constructor(_0x99f578){super(_0x99f578),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x112ed3){const _0x3f448d=V(_0x112ed3);return _0x48b6aa=>!(!_0x48b6aa||!_0x48b6aa['is']('element','imageBlock')&&!_0x48b6aa['is']('element','imageInline'))&&(!!_0x48b6aa['hasAttribute']('uploadcareImageId')||!!_0x48b6aa['hasAttribute']('src')&&_0x3f448d(_0x48b6aa['getAttribute']('src')));}(_0x99f578['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5548b6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5548b6);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x559455=this['editor']['model']['document']['selection']['getSelectedElement']();_0x559455&&(_0x559455['is']('element','imageBlock')||_0x559455['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x5c5908),_0x559455),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3f38b4{['refresh'](){const _0x26f0b7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x26f0b7&&(_0x26f0b7['is']('element','imageBlock')||_0x26f0b7['is']('element','imageInline')));}['execute'](_0x2e89f2){const _0x36a679=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x295ae0=>{_0x295ae0['setAttributes'](_0x2e89f2,_0x36a679),_0x295ae0['removeAttribute']('srcset',_0x36a679),_0x295ae0['removeAttribute']('sizes',_0x36a679);});}}class g extends _0x1dd4a0{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x43e758,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x291ce8}=this;_0x291ce8['commands']['add']('uploadcareImageEdit',new J(_0x291ce8)),_0x291ce8['commands']['add']('uploadcareImageReplace',new O(_0x291ce8));}}class j extends _0x1dd4a0{['_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 _0xff4561=this['editor'];_0xff4561['ui']['componentFactory']['add']('uploadcareImageEdit',_0x100334=>{const _0x558767=_0xff4561['commands']['get']('uploadcareImageEdit'),_0x143343=new _0x16b6ef(_0x100334),t=_0x100334['t'];return _0x143343['set']({'icon':_0x56a8ab,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x143343['bind']('isEnabled')['to'](_0x558767),_0x143343['bind']('isOn')['to'](_0x558767,'isActive'),this['listenTo'](_0x143343,'execute',()=>{_0xff4561['execute']('uploadcareImageEdit'),_0xff4561['editing']['view']['focus']();}),_0x143343;}),this['_initConfig']();}['_initConfig'](){const _0x480b96=_0x379973(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x480b96),this['listenTo'](this['editor'],'destroy',()=>{_0x480b96['remove']();});}}class P extends _0x1dd4a0{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 _0x158ad0,Command as _0x23c797}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1da223,IconGooglePhotos as _0x4821ea,IconGoogleDrive as _0x5e1d23,IconFacebook as _0x73a3a,IconDropbox as _0xa3caa9,IconUploadcareLink as _0x4fd177,IconUploadcareImageUpload as _0x48ad3c,IconError as et,IconUploadcareImageEdit as _0x2448e4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x580994,MenuBarMenuListItemButtonView as _0x2bfa1a,View as _0x3d46de,FocusCycler as _0x9c206a,Dialog as _0x3c3d76,DialogViewPosition as _0x56eec3,SpinnerView as _0x562916,IconView as at,Notification as _0x32da36}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x49f1ee,DomEmitterMixin as _0x238a1f,global as _0x5e7795,getAncestors as _0x5ef214,ObservableMixin as _0x39dab1,createElement as _0xaa7494,uid as _0x23a027}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x35d6dc}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3847fb,info as _0x3e0be5}from'@uploadcare/upload-client';import*as _0x401f88 from'@uploadcare/file-uploader';var o=function(_0x123af3){return _0x123af3['Local']='local',_0x123af3['URL']='url',_0x123af3['Dropbox']='dropbox',_0x123af3['GDrive']='gdrive',_0x123af3['Facebook']='facebook',_0x123af3['GPhotos']='gphotos',_0x123af3['OneDrive']='onedrive',_0x123af3;}({});function _(_0x320840,_0x51fd44,_0x4e4e8a){const t=_0x320840['t'],_0x17bfb7=_0x320840['t'];switch(_0x51fd44){case o['Local']:return{'text':_0x17bfb7('Insert'===_0x4e4e8a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x17bfb7('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x4e4e8a?_0x17bfb7('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x17bfb7('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x4e4e8a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x4e4e8a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x4e4e8a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x4e4e8a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x4e4e8a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x51fd44;}}class e extends _0x158ad0{['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 _0x2c2532=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x242847;for(const _0x265bfb in _0x2c2532){const _0x12b86d=_0x265bfb,_0x2a04cb=_0x2c2532[_0x12b86d];if('uploadcareLicenseKeyValid'==_0x2a04cb||'uploadcareLicenseKeyInvalid'==_0x2a04cb||'uploadcareLicenseKeyExpired'==_0x2a04cb||'uploadcareLicenseKeyDomainLimit'==_0x2a04cb||'uploadcareLicenseKeyNotAllowed'==_0x2a04cb||'uploadcareLicenseKeyEvaluationLimit'==_0x2a04cb||'uploadcareLicenseKeyTrialLimit'==_0x2a04cb||'uploadcareLicenseKeyUsageLimit'==_0x2a04cb){delete _0x2c2532[_0x12b86d],_0x242847=_0x2a04cb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x242847&&_0x2c2532['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x242847&&_0x2c2532['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x242847&&_0x2c2532['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x242847&&_0x2c2532['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x242847&&_0x2c2532['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x242847&&_0x2c2532['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x242847&&_0x2c2532['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x149db7}=this,_0x1194ca=_0x149db7['commands']['get']('uploadcare');if(!_0x1194ca)return;const _0x5e1ca5=this['_normalizeConfigSourceList'](_0x149db7['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4caaeb,_0x2c3236)=>{const _0x482dd4=this['_getIntegrationKey'](_0x2c3236['type']);return _0x4caaeb[_0x482dd4]||(_0x4caaeb[_0x482dd4]=[]),_0x4caaeb[_0x482dd4]['push'](_0x2c3236),_0x4caaeb;},{});_0x149db7['plugins']['has']('ImageInsertUI')&&_0x149db7['commands']['get']('uploadcare')&&Object['entries'](_0x5e1ca5)['forEach'](([_0x15e8a1,_0x2d50a9])=>{_0x149db7['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x15e8a1,'observable':()=>_0x1194ca,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2d50a9),'formViewCreator':()=>this['_createDropdownButtons'](_0x2d50a9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2d50a9),'override':'assetManager'!==_0x15e8a1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4f4771){const {locale:_0x4fb67a}=this['editor'];return _0x4f4771['map'](_0x14c5cb=>{const _0x45e415=_(_0x4fb67a,_0x14c5cb,'Insert');switch(_0x14c5cb){case o['Local']:return{'icon':_0x48ad3c,'type':o['Local'],..._0x45e415};case o['URL']:return{'icon':_0x4fd177,'type':o['URL'],..._0x45e415};case o['Dropbox']:return{'icon':_0xa3caa9,'type':o['Dropbox'],..._0x45e415};case o['Facebook']:return{'icon':_0x73a3a,'type':o['Facebook'],..._0x45e415};case o['GDrive']:return{'icon':_0x5e1d23,'type':o['GDrive'],..._0x45e415};case o['GPhotos']:return{'icon':_0x4821ea,'type':o['GPhotos'],..._0x45e415};case o['OneDrive']:return{'icon':_0x1da223,'type':o['OneDrive'],..._0x45e415};}});}['_getIntegrationKey'](_0x5be23d){switch(_0x5be23d){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4301a1,_0x49cd4f){const _0x4452b8=this['editor'],_0x227f7b=new _0x4301a1(_0x4452b8['locale']),_0x4795a0=_0x4452b8['commands']['get']('uploadcare');return _0x227f7b['bind']('isEnabled')['to'](_0x4795a0),_0x227f7b['on']('execute',()=>{_0x4795a0['execute'](_0x49cd4f);}),_0x227f7b;}['_createToolbarButton'](_0x49ac0c){const {locale:_0x31c6e5}=this['editor'],_0x1b84a5=this['editor']['plugins']['get']('ImageInsertUI'),_0x44aaa4=_0x49ac0c[0x0],_0x1abae3=this['_createButton'](_0x580994,_0x44aaa4['type']);return _0x1abae3['icon']=_0x44aaa4['icon'],_0x1abae3['bind']('label')['to'](_0x1b84a5,'isImageSelected',_0x1cc71a=>_(_0x31c6e5,_0x44aaa4['type'],_0x1cc71a?'Replace':'Insert')['text']),_0x1abae3['tooltip']=!0x0,_0x1abae3;}['_createDropdownButtons'](_0x1d55ee){const {locale:_0x459486}=this['editor'],_0x394236=this['editor']['plugins']['get']('ImageInsertUI');return _0x1d55ee['map'](_0x2ecbb4=>{const _0x47b31c=this['_createButton'](_0x580994,_0x2ecbb4['type']);return _0x47b31c['withText']=!0x0,_0x47b31c['icon']=_0x2ecbb4['icon'],_0x47b31c['bind']('label')['to'](_0x394236,'isImageSelected',_0x9d3389=>_(_0x459486,_0x2ecbb4['type'],_0x9d3389?'Replace':'Insert')['text']),_0x47b31c;});}['_createMenuBarButtons'](_0x5dfc7c){return _0x5dfc7c['map'](_0x17da5f=>{const _0x284760=this['_createButton'](_0x2bfa1a,_0x17da5f['type']);return _0x284760['icon']=_0x17da5f['icon'],_0x284760['label']=_0x17da5f['shortText'],_0x284760;});}}class q extends _0x3d46de{['focusTracker'];['focusCycler'];constructor(_0x575fa2){super(_0x575fa2),this['focusTracker']=new _0x49f1ee(),this['focusCycler']=new _0x9c206a({'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(_0xb590a3){super(_0xb590a3),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(_0x568fe6,_0x3e9c17){const _0x2ae62e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x54a5f7=>_0x54a5f7<=_0x3e9c17)['map'](_0x462560=>_0x568fe6['replace'](/\/$/,'')+'/-/resize/'+_0x462560+'x/\x20'+_0x462560+'w');return{'imageFallbackUrl':_0x568fe6,'imageSources':[{'srcset':_0x2ae62e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3e9c17+'px)\x20100vw,\x20'+_0x3e9c17+'px','type':'image/webp'}]};}function A(_0x3efb1a,_0x50b3b6,_0x1fd71e){const _0x2a9572=_0x3efb1a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2a9572?parseInt(_0x2a9572[0x1],0xa):_0x50b3b6,'height':_0x2a9572?parseInt(_0x2a9572[0x2],0xa):_0x1fd71e};}function m(_0x151ee6,_0x52db30){const _0x1cae09=Object['create'](_0x238a1f),_0x271cf0=_0x151ee6['plugins']['get']('ImageUtils'),_0x2196cc=_0x151ee6['editing']['mapper']['toViewElement'](_0x52db30),_0x148603=_0x271cf0['findViewImgElement'](_0x2196cc),_0x48a518=_0x151ee6['editing']['view']['domConverter']['viewToDom'](_0x148603),_0x30a394=_0x52db30['getAttribute']('width'),_0x3c78d1=_0x52db30['getAttribute']('height'),_0x2517c7='image-processing';_0x151ee6['editing']['view']['change'](_0x2d155f=>{_0x2d155f['addClass'](_0x2517c7,_0x2196cc),_0x2d155f['setStyle']('aspect-ratio',_0x30a394+'/'+_0x3c78d1,_0x148603);}),_0x1cae09['listenTo'](_0x48a518,'load',()=>{_0x1cae09['stopListening'](_0x48a518,'load'),_0x151ee6['editing']['view']['change'](_0x43a528=>{_0x43a528['removeClass'](_0x2517c7,_0x2196cc),_0x43a528['removeStyle']('aspect-ratio',_0x148603);});});}function V(_0x5d2e2f){if(Array['isArray'](_0x5d2e2f)){const _0x39cf8e=_0x5d2e2f['map'](V);return _0x46051c=>_0x39cf8e['some'](_0x5d316f=>_0x5d316f(_0x46051c));}if('origin'==_0x5d2e2f){const _0x1de048=_0x5e7795['window']['location']['origin'];return _0x2a53de=>new URL(_0x2a53de,_0x5e7795['document']['baseURI'])['origin']==_0x1de048;}return'function'==typeof _0x5d2e2f?_0x5d2e2f:_0x5d2e2f instanceof RegExp?_0x32b21f=>!(!_0x32b21f['match'](_0x5d2e2f)&&!_0x32b21f['replace'](/^https?:\/\//,'')['match'](_0x5d2e2f)):()=>!0x1;}function F(_0x2b7d99,_0x285401){return _0x5ef214(_0x2b7d99['target'])['includes'](_0x285401);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x39dab1(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5dac95,_0x27c141,_0x592397){super(),this['_editor']=_0x5dac95,this['_editing']=_0x27c141,this['_dialog']=_0x5dac95['plugins']['get'](_0x3c3d76),this['_api']=_0x27c141['ctxElement']['getAPI'](),this['_type']=_0x592397,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:_0x16995b,model:_0x1f7895}=this['_editor'],_0x4488ca=_0x1f7895['document']['selection']['getSelectedElement'](),_0x2acf0f=_0x4488ca&&(_0x4488ca['is']('element','imageBlock')||_0x4488ca['is']('element','imageInline'));this['_formView']=new S(_0x16995b),this['_dialog']['show']({'id':'uploadCare','icon':_0x48ad3c,'title':_(_0x16995b,this['_type'],_0x2acf0f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x56eec3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3d08c0=>!F(_0x3d08c0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x129ffa}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1bf19f=>{const _0x595031=_0x129ffa['length'];for(const _0x4f949d of _0x129ffa){const _0x52463f=_0x4f949d===_0x129ffa[_0x595031-0x1],{cdnUrl:_0x3d1171,fileInfo:_0x34fd15}=_0x4f949d;if(!_0x3d1171||!_0x34fd15)continue;const {width:_0x40de05,height:_0x33dbb3}=_0x34fd15['imageInfo'],_0x24e82c=A(_0x3d1171,_0x40de05,_0x33dbb3),_0x5e0599=E(_0x3d1171,_0x24e82c['width']),_0x37fa64={'id':_0x34fd15['uuid'],'type':'image','attributes':{'imageDimension':_0x24e82c,..._0x5e0599}};this['_insertAsset'](_0x37fa64,_0x52463f,_0x1bf19f);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x443d37=>{'idle'===_0x443d37['detail']['status']&&!_0x443d37['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2beea3,_0x47e9e9,_0x5579f2){const _0x516920=this['_editor']['model']['document']['selection'],_0x2fc47f=_0x516920['getSelectedElement'](),_0x555876=!(!_0x2fc47f||!_0x2fc47f['is']('element','imageInline'));_0x5579f2['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2beea3,_0x555876),_0x47e9e9||_0x5579f2['setSelection'](_0x516920['getLastPosition']());}['_insertImage'](_0x14de3e,_0x3400d5){const _0x2f8e16=this['_editor'],{imageDimension:_0x3598fc,imageFallbackUrl:_0x4f2403,imageSources:_0x5c0598}=_0x14de3e['attributes'];_0x2f8e16['execute']('insertImage',{'imageType':_0x3400d5?'imageInline':null,'source':{'uploadcareImageId':_0x14de3e['id'],'src':_0x4f2403,'sources':_0x5c0598,..._0x3598fc}});}}class n extends _0x23c797{['_editing'];['_controller']=null;static get['requires'](){return[_0x3c3d76,i];}constructor(_0x4bb064){super(_0x4bb064),this['_editing']=_0x4bb064['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x274b8c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x274b8c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x13a298,publicKey:_0x1236f3,signal:_0x63908d,onProgress:_0x5b59ec}){return _0x3847fb(_0x13a298,{'publicKey':_0x1236f3,'store':'auto','signal':_0x63908d,'onProgress':_0x5b59ec});}static['getInfo'](_0x1cd5a1,_0xeadc3e){return _0x3e0be5(_0x1cd5a1,_0xeadc3e);}}class p extends _0x158ad0{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x35d6dc,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x447a36=this['editor'];if(!!!_0x447a36['config']['get']('uploadcare'))return;_0x447a36['plugins']['get'](_0x35d6dc)['createUploadAdapter']=_0x478ae3=>new x(_0x478ae3,_0x447a36),_0x447a36['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x7a27dc,{imageElement:_0x504ba6,data:_0x585bd5})=>{_0x447a36['model']['change'](_0x5a6cc4=>{_0x5a6cc4['setAttribute']('uploadcareImageId',_0x585bd5['uploadcareImageId'],_0x504ba6);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x4cea23,_0xc60d85){this['loader']=_0x4cea23,this['editor']=_0xc60d85,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2802b9=this['editor']['config']['get']('uploadcare.pubkey'),_0x37a0d4=await this['loader']['file'];return C['upload']({'file':_0x37a0d4,'publicKey':_0x2802b9,'signal':this['controller']['signal'],'onProgress':_0x2bd916=>{_0x2bd916&&_0x2bd916['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2bd916['value']);}})['then'](async _0x289121=>{const {imageFallbackUrl:_0x694856,imageSources:_0x27fd70}=E(_0x289121['cdnUrl'],_0x289121['imageInfo']['width']);return{'uploadcareImageId':_0x289121['uuid'],'default':_0x694856,'sources':_0x27fd70};})['catch'](()=>{const _0x3e6ffc=t('Cannot\x20upload\x20file:')+('\x20'+_0x37a0d4['name']+'.');return Promise['reject'](_0x3e6ffc);});}['abort'](){this['controller']['abort']();}}class i extends _0x158ad0{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3c3d76];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x3dfbc2=this['editor'];_0x3dfbc2['commands']['add']('uploadcare',new n(_0x3dfbc2));}['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 _0x266654=_0x5e7795['document']['querySelector']('input[uploadcare-file-input]');_0x266654&&_0x266654['remove']();}),async function(_0x5a21fb){const _0x3709a6=_0x8296a9([0x47,0x38,0x55,0x49,0x43,0x52,0x4b,0x33,0x65,0x4c,0x53,0x32,0x6c,0x66,0x69,0x50,0x57,0x74,0x56,0x68,0x4a,0x36,0x44,0x76,0x59,0x48,0x63,0x31,0x6a,0x77,0x54,0x37,0x45,0x78,0x79,0x64,0x30,0x61,0x75,0x4d,0x6f,0x35,0x6d,0x41,0x6b,0x46,0x4e,0x51,0x4f,0x34,0x7a,0x58,0x39,0x42,0x67,0x70,0x5a,0x62,0x71,0x6e,0x72,0x73]),_0x10161a=0x1c670cf0,_0xfccc0a=0x1c6068a8^_0x10161a,_0x33372b=window[_0x8296a9([0x44,0x61,0x74,0x65])][_0x8296a9([0x6e,0x6f,0x77])](),_0x4a49e9=_0x5a21fb[_0x8296a9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a71df=new window[(_0x8296a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x311c14=>{_0x4a49e9[_0x8296a9([0x6f,0x6e,0x63,0x65])](_0x8296a9([0x72,0x65,0x61,0x64,0x79]),_0x311c14);}),_0x127107={[_0x8296a9([0x6b,0x74,0x79])]:_0x8296a9([0x45,0x43]),[_0x8296a9([0x75,0x73,0x65])]:_0x8296a9([0x73,0x69,0x67]),[_0x8296a9([0x63,0x72,0x76])]:_0x8296a9([0x50,0x2d,0x32,0x35,0x36]),[_0x8296a9([0x78])]:_0x8296a9([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]),[_0x8296a9([0x79])]:_0x8296a9([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]),[_0x8296a9([0x61,0x6c,0x67])]:_0x8296a9([0x45,0x53,0x32,0x35,0x36])},_0x8bd996=_0x4a49e9[_0x8296a9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x8296a9([0x67,0x65,0x74])](_0x8296a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x502415(){let _0x2053f7,_0x172fe5=null,_0x4baf37=null;try{if(_0x8bd996==_0x8296a9([0x47,0x50,0x4c]))return _0x8296a9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2053f7=_0x24da03(),!_0x2053f7)return _0x8296a9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2053f7[_0x8296a9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4baf37=_0x582ea1(_0x2053f7[_0x8296a9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2053f7[_0x8296a9([0x6a,0x74,0x69])])),await _0x382149()?_0x3cf047()?_0x8a20e3()?_0x8296a9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3852ea()?(_0x2053f7[_0x8296a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8296a9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x172fe5=_0x355fdc(_0x8296a9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2053f7[_0x8296a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8296a9([0x74,0x72,0x69,0x61,0x6c])&&(_0x172fe5=_0x355fdc(_0x8296a9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c0673()):_0x8296a9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x8296a9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x8296a9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x59d1d3){return _0x8296a9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x8a20e3(){const _0x5f31cb=[_0x8296a9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x8296a9([0x74,0x72,0x69,0x61,0x6c])][_0x8296a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2053f7[_0x8296a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33372b/0x3e8:0xe10*_0xfccc0a;return _0x2053f7[_0x8296a9([0x65,0x78,0x70])]<_0x5f31cb;}function _0x3cf047(){const _0x365289=_0x2053f7[_0x8296a9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x365289&&(!!_0x365289[_0x8296a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8296a9([0x2a]))||!!_0x365289[_0x8296a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8296a9([0x55,0x50,0x4c,0x43])));}function _0x3852ea(){const _0x3e6017=_0x2053f7[_0x8296a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3e6017||0x0==_0x3e6017[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4baa22}=new URL(window[_0x8296a9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3e6017[_0x8296a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4baa22))return!0x0;const _0x42eaec=_0x4baa22[_0x8296a9([0x73,0x70,0x6c,0x69,0x74])](_0x8296a9([0x2e]));return _0x3e6017[_0x8296a9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x390e21=>_0x390e21[_0x8296a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8296a9([0x2a])))[_0x8296a9([0x6d,0x61,0x70])](_0x4bee48=>_0x4bee48[_0x8296a9([0x73,0x70,0x6c,0x69,0x74])](_0x8296a9([0x2e])))[_0x8296a9([0x73,0x6f,0x6d,0x65])](_0x1baf1e=>_0x42eaec[_0x8296a9([0x65,0x76,0x65,0x72,0x79])]((_0x14af9c,_0x47284d)=>_0x1baf1e[_0x47284d]===_0x14af9c||_0x1baf1e[_0x47284d]===_0x8296a9([0x2a])));}function _0x4c0673(){return _0x172fe5&&_0x4baf37?new window[(_0x8296a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22f853,_0x5af66f)=>{_0x172fe5[_0x8296a9([0x74,0x68,0x65,0x6e])](_0x22f853,_0x5af66f),_0x4baf37[_0x8296a9([0x74,0x68,0x65,0x6e])](_0x140ca9=>{_0x140ca9!=_0x8296a9([0x56,0x61,0x6c,0x69,0x64])&&_0x22f853(_0x140ca9);},_0x5af66f);}):_0x172fe5||_0x4baf37||_0x8296a9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x582ea1(_0x3ff182,_0x463e63){return new window[(_0x8296a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x314201=>{if(_0x3ad6c7())return _0x314201(_0x8296a9([0x56,0x61,0x6c,0x69,0x64]));_0xdd5cfc(),_0x4a49e9[_0x8296a9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x8296a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x469661=!0x1;const _0x343ffb=_0x23a027();function _0x47cac0(_0x2211c7){return!!_0x2211c7&&(typeof _0x2211c7===_0x8296a9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2211c7===_0x8296a9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2211c7[_0x8296a9([0x74,0x68,0x65,0x6e])]===_0x8296a9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2211c7[_0x8296a9([0x63,0x61,0x74,0x63,0x68])]===_0x8296a9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2bccc7(_0x30d912){_0x2fc30e(_0x30d912)[_0x8296a9([0x74,0x68,0x65,0x6e])](_0x130669=>{if(!_0x130669||_0x130669[_0x8296a9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x8296a9([0x6f,0x6b]))return _0x8296a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xbbd9aa(_0x174cdd(_0x343ffb+_0x463e63))!=_0x130669[_0x8296a9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x8296a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x8296a9([0x56,0x61,0x6c,0x69,0x64]);})[_0x8296a9([0x74,0x68,0x65,0x6e])](_0x5c5563=>(_0x18d0e7(),_0x5c5563),()=>{const _0x31b690=_0x50badc();return null==_0x31b690?(_0x18d0e7(),_0x8296a9([0x56,0x61,0x6c,0x69,0x64])):_0x8296a9(_0x33372b-_0x31b690>(0x386b88f0^_0x10161a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x8296a9([0x74,0x68,0x65,0x6e])](_0x314201)[_0x8296a9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x314201(_0x8296a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3548c5=0x1c51e270^_0x10161a;function _0x18d0e7(){const _0x78812c=_0x8296a9([0x6c,0x6c,0x63,0x74,0x2d])+_0xbbd9aa(_0x174cdd(_0x3ff182)),_0x22bcab=_0x3dd361(_0xbbd9aa(window[_0x8296a9([0x4d,0x61,0x74,0x68])][_0x8296a9([0x63,0x65,0x69,0x6c])](_0x33372b/_0x3548c5)));window[_0x8296a9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8296a9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x78812c,_0x22bcab);}function _0x50badc(){const _0x654de=_0x8296a9([0x6c,0x6c,0x63,0x74,0x2d])+_0xbbd9aa(_0x174cdd(_0x3ff182)),_0x596381=window[_0x8296a9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8296a9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x654de);return _0x596381?window[_0x8296a9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dd361(_0x596381),0x10)*_0x3548c5:null;}function _0x2fc30e(_0x234b76){return new window[(_0x8296a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4bded9,_0x36e4a0)=>{_0x234b76[_0x8296a9([0x74,0x68,0x65,0x6e])](_0x4bded9,_0x36e4a0),window[_0x8296a9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x36e4a0,0x1c66d830^_0x10161a);});}}_0x4a49e9[_0x8296a9([0x6f,0x6e])](_0x8296a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x35d309,_0x37ed84)=>{if(_0x37ed84[0x0]!=_0x3ff182)return _0x314201(_0x8296a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37ed84[0x1]={..._0x37ed84[0x1],[_0x8296a9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x343ffb};},{[_0x8296a9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8296a9([0x68,0x69,0x67,0x68])}),_0x4a49e9[_0x8296a9([0x6f,0x6e])](_0x8296a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x57e56e=>{_0x47cac0(_0x57e56e[_0x8296a9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x469661=!0x0,_0x2bccc7(_0x57e56e[_0x8296a9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x8296a9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8296a9([0x6c,0x6f,0x77])}),_0x4a71df[_0x8296a9([0x74,0x68,0x65,0x6e])](()=>{_0x469661||_0x314201(_0x8296a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3ad6c7(){return _0x4a49e9[_0x8296a9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8296a9([0x76,0x69,0x65,0x77])][_0x8296a9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x8296a9([0x61,0x75,0x74,0x6f]);}function _0xdd5cfc(){_0x4a49e9[_0x8296a9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8296a9([0x76,0x69,0x65,0x77])][_0x8296a9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8296a9([0x61,0x75,0x74,0x6f]);}}function _0x355fdc(_0x28d36f){const _0x482c73=[new window[(_0x8296a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b7956=>setTimeout(_0x1b7956,0x1c6e323c^_0x10161a)),_0x4a71df[_0x8296a9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x8296a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x221728=>{let _0x4a829a=0x0;_0x4a49e9[_0x8296a9([0x6d,0x6f,0x64,0x65,0x6c])][_0x8296a9([0x6f,0x6e])](_0x8296a9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a898a,_0x3c9696)=>{_0x3c9696[0x0][_0x8296a9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a829a++,_0x4a829a==(0x1c670d08^_0x10161a)&&(_0x221728(),_0x4a898a[_0x8296a9([0x6f,0x66,0x66])]());});}))];return window[_0x8296a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8296a9([0x72,0x61,0x63,0x65])](_0x482c73)[_0x8296a9([0x74,0x68,0x65,0x6e])](()=>_0x28d36f);}async function _0x3b8336(){await _0x4a71df,_0x4a49e9[_0x8296a9([0x6d,0x6f,0x64,0x65,0x6c])][_0x8296a9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x197e60,_0x4a49e9[_0x8296a9([0x6d,0x6f,0x64,0x65,0x6c])][_0x8296a9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x197e60,_0x4a49e9[_0x8296a9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x8296a9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1d9114(_0x2fa3b0){const _0x49860b=_0x44c22a();_0x4a49e9[_0x49860b]=_0x8296a9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2fa3b0,_0x2fa3b0!=_0x8296a9([0x56,0x61,0x6c,0x69,0x64])&&_0x3b8336();}function _0x44c22a(){const _0x56186a=window[_0x8296a9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x8296a9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x8296a9([0x6e,0x6f,0x77])]())[_0x8296a9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x8296a9([0x2e]),'');let _0x36ecf9=_0x8296a9([0x47]);for(let _0x180fc8=0x0;_0x180fc8<_0x56186a[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x180fc8+=0x2){let _0x2f10cb=window[_0x8296a9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56186a[_0x8296a9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x180fc8,_0x180fc8+0x2));_0x2f10cb>=_0x3709a6[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f10cb-=_0x3709a6[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x36ecf9+=_0x3709a6[_0x2f10cb];}return _0x36ecf9;}function _0x24da03(){const _0x572f70=_0x8bd996[_0x8296a9([0x73,0x70,0x6c,0x69,0x74])](_0x8296a9([0x2e]));if(0x3!=_0x572f70[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d309d(_0x572f70[0x1]);function _0x3d309d(_0x20aa3e){const _0x1698c6=_0x3340ad(_0x20aa3e);return _0x1698c6&&_0x47b2df()?_0x1698c6:null;function _0x47b2df(){const _0x2262de=_0x1698c6[_0x8296a9([0x6a,0x74,0x69])],_0x5b32eb=window[_0x8296a9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2262de[_0x8296a9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2262de[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xda5f6d={..._0x1698c6,[_0x8296a9([0x6a,0x74,0x69])]:_0x2262de[_0x8296a9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2262de[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xda5f6d[_0x8296a9([0x76,0x63])],_0x174cdd(_0xda5f6d)==_0x5b32eb;}}}async function _0x382149(){let _0xd3c05c=!0x0;try{const _0x2627dd=_0x8bd996[_0x8296a9([0x73,0x70,0x6c,0x69,0x74])](_0x8296a9([0x2e])),[_0xd9417f,_0x229c58,_0x401e21]=_0x2627dd;return _0x46edc9(_0xd9417f),await _0x32e203(_0xd9417f,_0x229c58,_0x401e21),_0xd3c05c;}catch(_0x443259){return!0x1;}function _0x46edc9(_0x33bc11){const _0x2fde79=_0x3340ad(_0x33bc11);_0x2fde79&&_0x2fde79[_0x8296a9([0x61,0x6c,0x67])]==_0x8296a9([0x45,0x53,0x32,0x35,0x36])||(_0xd3c05c=!0x1);}async function _0x32e203(_0x12b128,_0x36759e,_0x5605e1){const _0x55c241=window[_0x8296a9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x8296a9([0x66,0x72,0x6f,0x6d])](_0x12d2ef(_0x5605e1),_0x302635=>_0x302635[_0x8296a9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x11d423=new window[(_0x8296a9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x8296a9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x12b128+_0x8296a9([0x2e])+_0x36759e),_0x286c7d=window[_0x8296a9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x8296a9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x286c7d)return;const _0x11ccaf=await _0x286c7d[_0x8296a9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x8296a9([0x6a,0x77,0x6b]),_0x127107,{[_0x8296a9([0x6e,0x61,0x6d,0x65])]:_0x8296a9([0x45,0x43,0x44,0x53,0x41]),[_0x8296a9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x8296a9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x8296a9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x286c7d[_0x8296a9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x8296a9([0x6e,0x61,0x6d,0x65])]:_0x8296a9([0x45,0x43,0x44,0x53,0x41]),[_0x8296a9([0x68,0x61,0x73,0x68])]:{[_0x8296a9([0x6e,0x61,0x6d,0x65])]:_0x8296a9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11ccaf,_0x55c241,_0x11d423)||(_0xd3c05c=!0x1);}}function _0x3340ad(_0x4004d4){return _0x4004d4[_0x8296a9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x8296a9([0x65,0x79]))?JSON[_0x8296a9([0x70,0x61,0x72,0x73,0x65])](_0x12d2ef(_0x4004d4)):null;}function _0x12d2ef(_0x40af2c){return window[_0x8296a9([0x61,0x74,0x6f,0x62])](_0x40af2c[_0x8296a9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x8296a9([0x2b]))[_0x8296a9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x8296a9([0x2f])));}function _0x174cdd(_0x3a6e05){let _0x279025=0x1505;function _0x490e6e(_0x47b73d){for(let _0x476af7=0x0;_0x476af7<_0x47b73d[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x476af7++){const _0x294515=_0x47b73d[_0x8296a9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x476af7);_0x279025=(_0x279025<<0x5)+_0x279025+_0x294515,_0x279025&=_0x279025;}}function _0x299c44(_0x31337b){Array[_0x8296a9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31337b)?_0x31337b[_0x8296a9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x299c44):_0x31337b&&typeof _0x31337b==_0x8296a9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x8296a9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31337b)[_0x8296a9([0x73,0x6f,0x72,0x74])]()[_0x8296a9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x302297,_0x3218dd])=>{_0x490e6e(_0x302297),_0x299c44(_0x3218dd);}):_0x490e6e(window[_0x8296a9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31337b));}return _0x299c44(_0x3a6e05),_0x279025>>>0x0;}function _0xbbd9aa(_0x37719b){return _0x37719b[_0x8296a9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x8296a9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x8296a9([0x30]));}function _0x3dd361(_0x43a973){return _0x43a973[_0x8296a9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x8296a9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x8296a9([0x6a,0x6f,0x69,0x6e])]('');}function _0x197e60(){}function _0x8296a9(_0x5aa047){return _0x5aa047['map'](_0x5db3c4=>String['fromCharCode'](_0x5db3c4))['join']('');}_0x1d9114(await _0x502415());}(this);}['_initSchema'](){const _0x2e6e7e=this['editor']['model']['schema'];_0x2e6e7e['isRegistered']('imageBlock')&&_0x2e6e7e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2e6e7e['isRegistered']('imageInline')&&_0x2e6e7e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5561ae=this['editor'];_0x5561ae['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5561ae['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x576d6a=>_0x576d6a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4be603=_0x5561ae['commands']['get']('replaceImageSource');_0x4be603&&this['listenTo'](_0x4be603,'cleanupImage',(_0x3f1f2f,[_0x44d766,_0xa486c])=>{_0x44d766['removeAttribute']('uploadcareImageId',_0xa486c);});}['_initConfig'](){const _0x23e14f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x40ac56=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xaa7494(_0x5e7795['document'],'uc-config',{..._0x23e14f,'pubkey':_0x40ac56,'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']=_0x257aec=>{if('closeMax'==_0x257aec)return'#uc-icon-arrow-down';},_0x5e7795['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xaa7494(_0x5e7795['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x5e7795['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4cb1e9=this['editor']['commands']['get']('insertImage');_0x4cb1e9&&this['listenTo'](_0x4cb1e9,'execute',()=>{const _0x3396b9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3396b9&&_0x3396b9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3396b9);});});const _0x218e37=this['editor']['commands']['get']('uploadcareImageReplace');_0x218e37&&this['listenTo'](_0x218e37,'execute',()=>{const _0x1038a3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1038a3&&_0x1038a3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1038a3);});});}}class u extends _0x158ad0{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25c198){super(_0x25c198),_0x25c198['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x401f88['defineComponents'](_0x401f88);}}class ta extends _0x3d46de{constructor(_0xce959f){super(_0xce959f);const t=_0xce959f['t'],_0x292022=this['bindTemplate'],_0x3174b2=new _0x562916();_0x3174b2['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':[_0x3174b2,{'text':_0x292022['to']('imageUploadProgress',_0x32d1ea=>t('Loading\x20image...')+'\x20('+(_0x32d1ea||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 _0x3d46de{constructor(_0x3ca337){super(_0x3ca337);const t=_0x3ca337['t'];this['set']('errorType',null);const _0x34a5b7=new _0x580994(_0x3ca337);_0x34a5b7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x34a5b7['withText']=!0x0,_0x34a5b7['class']='ck-button-action',_0x34a5b7['on']('execute',()=>{this['fire']('retry');}),_0x34a5b7['bind']('isVisible')['to'](this,'errorType',_0x15d4b0=>'NotFound'!==_0x15d4b0);const _0x245eba=new at();_0x245eba['content']=et,_0x245eba['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4ecd84=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':[_0x245eba,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4ecd84['to']('errorType',_0x13f161=>t('NotFound'!==_0x13f161?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x34a5b7]},{'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 _0x3d46de{constructor(_0x296f64,_0x473018){super(_0x296f64);const _0x5842ab=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x473018,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5842ab['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x431bbc,_0x592470,_0x54a76d){super(_0x431bbc),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x431bbc),this['_errorView']=new rt(_0x431bbc),this['_editingView']=new tt(_0x431bbc,_0x54a76d),this['_focusableView']=new _0x3d46de(_0x431bbc),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x592470),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'],_0x58f25b=>{this['_addUploadcareImageEditorListeners'](_0x58f25b);});}),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'](_0x57b417,_0x25d5d8){const _0x43dbe0='uc-cloud-image-editor',_0x10ec43=_0x57b417['querySelector'](_0x43dbe0);if(_0x10ec43)return _0x25d5d8(_0x10ec43);const _0x89b62d=new MutationObserver(_0x356276=>{const _0x2baa28=_0x356276['filter'](_0x8c6fb0=>_0x8c6fb0['target']===_0x57b417&&_0x8c6fb0['addedNodes']['length']>0x0&&_0x8c6fb0['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x43dbe0);_0x2baa28['length']&&(_0x89b62d['disconnect'](),_0x25d5d8(_0x2baa28[0x0]['addedNodes'][0x0]));});_0x89b62d['observe'](_0x57b417,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x19d8de){_0x19d8de['addEventListener']('apply',_0x5b12ce=>{this['fire']('apply',{'imageSrc':_0x5b12ce['detail']['cdnUrl']});}),_0x19d8de['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x39dab1(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xb798d3,_0x3c2783,_0x54e637){super(),this['_editor']=_0xb798d3,this['_dialog']=_0x3c2783,this['_imageElement']=_0x54e637,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 _0x16de84=this['_imageElement'],_0x172aba=_0x16de84['getAttribute']('uploadcareImageId'),_0x5062d4=_0x16de84['getAttribute']('src');if(_0x172aba)await this['_loadImageInfo'](_0x172aba,_0x5062d4);else{if(this['_imageCache']['has'](_0x5062d4)){const _0x3c360d=this['_imageCache']['get'](_0x5062d4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c360d['url'],this['imageDimension']=_0x3c360d['dimension'],this['imageId']=_0x3c360d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4e8a69}=this['_editor'],t=_0x4e8a69['t'],_0x2fbdca=new Z(_0x4e8a69,this['imageStatus'],this['_attributes']);_0x2fbdca['bind']('status')['to'](this,'imageStatus'),_0x2fbdca['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2fbdca['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2fbdca['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2fbdca,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2448e4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2fbdca,'position':_0x56eec3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2fbdca['focus']();},'onHide':()=>{_0x2fbdca['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x591d0c=>!F(_0x591d0c,_0x2fbdca['element'])}});}['_loadImageInfo'](_0x5538c1,_0x53ebc6){return C['getInfo'](_0x5538c1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x566bf4=>{const {width:_0x14ef2f,height:_0x4b004a}=_0x566bf4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x53ebc6,this['imageDimension']={'width':_0x14ef2f,'height':_0x4b004a},this['imageId']=_0x5538c1;})['catch'](_0x5bd194=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5bd194['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x199561,_0x4ccbcd){return this['_getImageAsFile'](_0x199561)['then'](_0x5e6f77=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4ccbcd['signal'],'file':_0x5e6f77,'onProgress':_0x38315d=>{_0x38315d&&_0x38315d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x38315d['value']));}}))['then'](_0x5f3c67=>{const {width:_0x2d56e7,height:_0x805e82}=_0x5f3c67['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5f3c67['cdnUrl'],this['imageDimension']={'width':_0x2d56e7,'height':_0x805e82},this['imageId']=_0x5f3c67['uuid'],this['imageUploadProgress']=null;const _0xb08af6=_0x199561['getAttribute']('src');this['_imageCache']['set'](_0xb08af6,{'id':_0x5f3c67['uuid'],'url':_0x5f3c67['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1338b6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1338b6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xa8ad5f,_0x5daff6){_0xa8ad5f['on']('apply',(_0x1cdb49,_0x377ea4)=>{this['_replaceImage'](_0x5daff6,_0x377ea4['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xa8ad5f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xa8ad5f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2d80e3,_0x26f22e,_0x1c6697){const _0x339a4a=this['_editor'],{width:_0x29309f,height:_0x3e8653}=A(_0x26f22e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x11b093,imageSources:_0x5bb91f}=E(_0x26f22e,_0x29309f);_0x339a4a['model']['change'](_0x10978d=>{if('$graveyard'===_0x2d80e3['root']['rootName']){_0x339a4a['execute']('insertImage',{'imageType':_0x2d80e3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2d80e3['getAttributes']()),'uploadcareImageId':_0x1c6697,'src':_0x11b093,'sources':_0x5bb91f,'width':_0x29309f,'height':_0x3e8653}});const _0x468a6d=_0x2d80e3['getChildren']();_0x2d80e3=_0x339a4a['model']['document']['selection']['getSelectedElement']();for(const _0x38b27f of _0x468a6d)_0x10978d['append'](_0x10978d['cloneElement'](_0x38b27f),_0x2d80e3);}else _0x10978d['setSelection'](_0x2d80e3,'on'),_0x339a4a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2d80e3['getAttributes']()),'uploadcareImageId':_0x1c6697,'src':_0x11b093,'sources':_0x5bb91f,'width':_0x29309f,'height':_0x3e8653},_0x2d80e3);_0x10978d['setSelection'](_0x2d80e3,'on');});}async['_getImageAsFile'](_0x9f7bf1){const _0x5abfeb=_0x5e7795['window'],_0x435214=_0x5e7795['document']['location']['href'],_0x2edfb4=new _0x5abfeb['URL'](_0x9f7bf1['getAttribute']('src'),_0x435214);if('data:'===_0x2edfb4['protocol']){const _0x505c72=_0x2edfb4['href']['split'](','),_0x53c658=_0x505c72[0x0]['match'](/:(.*?);/)[0x1],_0x1be401=_0x53c658['split']('/')[0x1],_0x4bdeff=_0x5abfeb['atob'](_0x505c72[_0x505c72['length']-0x1]);let _0x2322ed=_0x4bdeff['length'];const _0x2b9cfd=new _0x5abfeb['Uint8Array'](_0x2322ed);for(;_0x2322ed--;)_0x2b9cfd[_0x2322ed]=_0x4bdeff['charCodeAt'](_0x2322ed);return new _0x5abfeb['File']([_0x2b9cfd],'image.'+_0x1be401,{'type':_0x53c658});}const _0x4c1d36=_0x2edfb4['href']['split']('/'),_0x14628b=_0x4c1d36[_0x4c1d36['length']-0x1],_0x22e42a=_0x14628b['split']('.')[0x1];return _0x5abfeb['fetch'](_0x2edfb4['href'])['then'](_0x36311d=>_0x36311d['clone']()['blob']())['then'](_0x46fbae=>new _0x5abfeb['File']([_0x46fbae],_0x14628b,{'type':'image/'+_0x22e42a}));}}class J extends _0x23c797{['imageEditController'];static get['requires'](){return[_0x3c3d76];}['_isEditable'];constructor(_0xe4dbd9){super(_0xe4dbd9),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4af184){const _0x4e8d32=V(_0x4af184);return _0x2f4e0c=>!(!_0x2f4e0c||!_0x2f4e0c['is']('element','imageBlock')&&!_0x2f4e0c['is']('element','imageInline'))&&(!!_0x2f4e0c['hasAttribute']('uploadcareImageId')||!!_0x2f4e0c['hasAttribute']('src')&&_0x4e8d32(_0x2f4e0c['getAttribute']('src')));}(_0xe4dbd9['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1fd292=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1fd292);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5a2418=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5a2418&&(_0x5a2418['is']('element','imageBlock')||_0x5a2418['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x3c3d76),_0x5a2418),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x23c797{['refresh'](){const _0x326184=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x326184&&(_0x326184['is']('element','imageBlock')||_0x326184['is']('element','imageInline')));}['execute'](_0x204d5b){const _0x340e49=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x14f9b5=>{_0x14f9b5['setAttributes'](_0x204d5b,_0x340e49),_0x14f9b5['removeAttribute']('srcset',_0x340e49),_0x14f9b5['removeAttribute']('sizes',_0x340e49);});}}class g extends _0x158ad0{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x32da36,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x257c75}=this;_0x257c75['commands']['add']('uploadcareImageEdit',new J(_0x257c75)),_0x257c75['commands']['add']('uploadcareImageReplace',new O(_0x257c75));}}class j extends _0x158ad0{['_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 _0x481128=this['editor'];_0x481128['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2596e8=>{const _0x46e4b8=_0x481128['commands']['get']('uploadcareImageEdit'),_0x5ee97d=new _0x580994(_0x2596e8),t=_0x2596e8['t'];return _0x5ee97d['set']({'icon':_0x2448e4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5ee97d['bind']('isEnabled')['to'](_0x46e4b8),_0x5ee97d['bind']('isOn')['to'](_0x46e4b8,'isActive'),this['listenTo'](_0x5ee97d,'execute',()=>{_0x481128['execute']('uploadcareImageEdit'),_0x481128['editing']['view']['focus']();}),_0x5ee97d;}),this['_initConfig']();}['_initConfig'](){const _0x259c9e=_0xaa7494(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x259c9e),this['listenTo'](this['editor'],'destroy',()=>{_0x259c9e['remove']();});}}class P extends _0x158ad0{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": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20250407.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20250407.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250407.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250407.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250407.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250407.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250407.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250407.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250407.0",
|
|
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 _0x227719=_0x1f73;(function(_0x357def,_0xa63f12){const _0x161f89=_0x1f73,_0x356c3b=_0x357def();while(!![]){try{const _0x4cd4e3=parseInt(_0x161f89(0x167))/0x1*(-parseInt(_0x161f89(0x1a2))/0x2)+-parseInt(_0x161f89(0x170))/0x3+parseInt(_0x161f89(0x169))/0x4+parseInt(_0x161f89(0x178))/0x5*(parseInt(_0x161f89(0x163))/0x6)+-parseInt(_0x161f89(0x1b4))/0x7*(-parseInt(_0x161f89(0x19b))/0x8)+parseInt(_0x161f89(0x17c))/0x9*(-parseInt(_0x161f89(0x166))/0xa)+-parseInt(_0x161f89(0x1ab))/0xb*(-parseInt(_0x161f89(0x16f))/0xc);if(_0x4cd4e3===_0xa63f12)break;else _0x356c3b['push'](_0x356c3b['shift']());}catch(_0x28184b){_0x356c3b['push'](_0x356c3b['shift']());}}}(_0x1b44,0x2b942));import{Plugin as _0x37f1be}from'ckeditor5/src/core.js';import{Dialog as _0x139994}from'ckeditor5/src/ui.js';import{createElement as _0x11e4e8,global as _0x2fcac4,uid as _0x42b553}from'ckeditor5/src/utils.js';import _0x2c3884 from'./uploadcarecommand.js';function _0x1b44(){const _0x4ac84e=['view','870mqAjar','removeAttribute','schema','20HxXcXN','3CnogNf','attributeToAttribute','617728ITECJS','config','listenTo','contentLanguage','iconHrefResolver','_initSchema','363624cPoZGA','849960DGpnxG','uploadcareImageReplace','href','afterInit','uploader','querySelector','execute','appendChild','6975ImXXnO','getAttribute','join','isPremiumPlugin','561474gwlCvD','upcast','_initConfig','imageBlock','body','_initConversion','uc-config','uploadcare.pubkey','extend','PictureEditing','uploadcare.uploader','selection','insertImage','configElement','document','#uc-icon-arrow-down','_configElement','map','uploadcareImageId','closeMax','editor','editing','locale','elementToAttribute','imageInline','once','render','conversion','UploadcareEditing','remove','pluginName','1240224mPRhhA','data-uc-image-id','uploadcare','model','for','init','replaceImageSource','134254mGQuJY','_ctxElement','requires','true','isOfficialPlugin','input[uploadcare-file-input]','fromCharCode','get','commands','44waqemR','downcast','ctxElement','getSelectedElement','destroy','add','cleanupImage','_initCtx','_initImageProcessingIndicator','14wPVMDn','isRegistered','uc-upload-ctx-provider','\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'];_0x1b44=function(){return _0x4ac84e;};return _0x1b44();}import _0x30a3f9 from'./uploadcareuploadadapter.js';function _0x1f73(_0x261a39,_0x1e4e74){const _0x1b44b2=_0x1b44();return _0x1f73=function(_0x1f7381,_0x24803b){_0x1f7381=_0x1f7381-0x15f;let _0xca2a23=_0x1b44b2[_0x1f7381];return _0xca2a23;},_0x1f73(_0x261a39,_0x1e4e74);}import{showImageProcessingIndicator as _0x134534}from'./utils/editingutils.js';export default class i extends _0x37f1be{[_0x227719(0x18c)]=null;[_0x227719(0x1a3)]=null;static get[_0x227719(0x19a)](){const _0x547a57=_0x227719;return _0x547a57(0x198);}static get[_0x227719(0x1a4)](){const _0x25a6ce=_0x227719;return[_0x25a6ce(0x185),_0x30a3f9,_0x139994];}static get[_0x227719(0x1a6)](){return!0x0;}static get[_0x227719(0x17b)](){return!0x0;}get[_0x227719(0x189)](){const _0x322a91=_0x227719;return this[_0x322a91(0x18c)];}get[_0x227719(0x1ad)](){const _0x420fe5=_0x227719;return this[_0x420fe5(0x1a3)];}[_0x227719(0x1a0)](){const _0x5823f5=_0x227719,_0x25783a=this[_0x5823f5(0x190)];_0x25783a[_0x5823f5(0x1aa)][_0x5823f5(0x1b0)](_0x5823f5(0x19d),new _0x2c3884(_0x25783a));}[_0x227719(0x173)](){const _0x4c06e6=_0x227719;this[_0x4c06e6(0x16e)](),this[_0x4c06e6(0x181)](),this[_0x4c06e6(0x17e)](),this[_0x4c06e6(0x1b2)](),this[_0x4c06e6(0x1b3)](),this[_0x4c06e6(0x16b)](this[_0x4c06e6(0x190)],_0x4c06e6(0x1af),()=>{const _0x1b1273=_0x4c06e6;this[_0x1b1273(0x18c)]&&(this[_0x1b1273(0x18c)][_0x1b1273(0x199)](),this[_0x1b1273(0x18c)]=null),this[_0x1b1273(0x1a3)]&&(this[_0x1b1273(0x1a3)][_0x1b1273(0x199)](),this[_0x1b1273(0x1a3)]=null);const _0x5c6a14=_0x2fcac4[_0x1b1273(0x18a)][_0x1b1273(0x175)](_0x1b1273(0x1a7));_0x5c6a14&&_0x5c6a14[_0x1b1273(0x199)]();}),async function(_0x1ad8d5){const _0x4cd1d8=_0x541020([0x4f,0x7a,0x6c,0x5a,0x30,0x56,0x52,0x49,0x39,0x50,0x4e,0x54,0x66,0x31,0x36,0x53,0x78,0x43,0x35,0x69,0x63,0x6b,0x4d,0x4c,0x55,0x46,0x73,0x71,0x79,0x41,0x58,0x6e,0x6a,0x67,0x47,0x61,0x76,0x37,0x48,0x32,0x72,0x33,0x6f,0x44,0x65,0x4b,0x4a,0x34,0x75,0x64,0x57,0x68,0x6d,0x59,0x51,0x42,0x45,0x62,0x38,0x77,0x70,0x74]),_0x4a8f7c=0x3bcbc51c,_0x5d1399=0x3bcca15c^_0x4a8f7c,_0x487344=window[_0x541020([0x44,0x61,0x74,0x65])][_0x541020([0x6e,0x6f,0x77])](),_0xfe70ca=_0x1ad8d5[_0x541020([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a0580=new window[(_0x541020([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59f60d=>{_0xfe70ca[_0x541020([0x6f,0x6e,0x63,0x65])](_0x541020([0x72,0x65,0x61,0x64,0x79]),_0x59f60d);}),_0x4aa0ef={[_0x541020([0x6b,0x74,0x79])]:_0x541020([0x45,0x43]),[_0x541020([0x75,0x73,0x65])]:_0x541020([0x73,0x69,0x67]),[_0x541020([0x63,0x72,0x76])]:_0x541020([0x50,0x2d,0x32,0x35,0x36]),[_0x541020([0x78])]:_0x541020([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]),[_0x541020([0x79])]:_0x541020([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]),[_0x541020([0x61,0x6c,0x67])]:_0x541020([0x45,0x53,0x32,0x35,0x36])},_0x43d5a3=_0xfe70ca[_0x541020([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x541020([0x67,0x65,0x74])](_0x541020([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6adee5(){let _0x35d53e,_0x37a73c=null,_0x2bcc11=null;try{if(_0x43d5a3==_0x541020([0x47,0x50,0x4c]))return _0x541020([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x35d53e=_0x44f330(),!_0x35d53e)return _0x541020([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x35d53e[_0x541020([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2bcc11=_0x5eaa04(_0x35d53e[_0x541020([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x35d53e[_0x541020([0x6a,0x74,0x69])])),await _0x4f13bb()?_0x349a2f()?_0x245f2a()?_0x541020([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x45907a()?(_0x35d53e[_0x541020([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x541020([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x37a73c=_0x21f8c9(_0x541020([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x35d53e[_0x541020([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x541020([0x74,0x72,0x69,0x61,0x6c])&&(_0x37a73c=_0x21f8c9(_0x541020([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x230469()):_0x541020([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x541020([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x541020([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x46ecb0){return _0x541020([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x245f2a(){const _0x4211d5=[_0x541020([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x541020([0x74,0x72,0x69,0x61,0x6c])][_0x541020([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35d53e[_0x541020([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x487344/0x3e8:0xe10*_0x5d1399;return _0x35d53e[_0x541020([0x65,0x78,0x70])]<_0x4211d5;}function _0x349a2f(){const _0x367162=_0x35d53e[_0x541020([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x367162&&(!!_0x367162[_0x541020([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x541020([0x2a]))||!!_0x367162[_0x541020([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x541020([0x55,0x50,0x4c,0x43])));}function _0x45907a(){const _0x599c61=_0x1f73,_0x2ba88a=_0x35d53e[_0x541020([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ba88a||0x0==_0x2ba88a[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x38f01d}=new URL(window[_0x541020([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x599c61(0x172)]);if(_0x2ba88a[_0x541020([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f01d))return!0x0;const _0x38c328=_0x38f01d[_0x541020([0x73,0x70,0x6c,0x69,0x74])](_0x541020([0x2e]));return _0x2ba88a[_0x541020([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18e410=>_0x18e410[_0x541020([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x541020([0x2a])))[_0x541020([0x6d,0x61,0x70])](_0x3fe9d3=>_0x3fe9d3[_0x541020([0x73,0x70,0x6c,0x69,0x74])](_0x541020([0x2e])))[_0x541020([0x73,0x6f,0x6d,0x65])](_0x1c649b=>_0x38c328[_0x541020([0x65,0x76,0x65,0x72,0x79])]((_0x579083,_0x14f7e8)=>_0x1c649b[_0x14f7e8]===_0x579083||_0x1c649b[_0x14f7e8]===_0x541020([0x2a])));}function _0x230469(){return _0x37a73c&&_0x2bcc11?new window[(_0x541020([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x281f2b,_0x93ac)=>{_0x37a73c[_0x541020([0x74,0x68,0x65,0x6e])](_0x281f2b,_0x93ac),_0x2bcc11[_0x541020([0x74,0x68,0x65,0x6e])](_0x391310=>{_0x391310!=_0x541020([0x56,0x61,0x6c,0x69,0x64])&&_0x281f2b(_0x391310);},_0x93ac);}):_0x37a73c||_0x2bcc11||_0x541020([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5eaa04(_0x5ee28d,_0x3d487a){return new window[(_0x541020([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x496239=>{if(_0x2ecf5e())return _0x496239(_0x541020([0x56,0x61,0x6c,0x69,0x64]));_0x41c310(),_0xfe70ca[_0x541020([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x541020([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x533359=!0x1;const _0x24cad9=_0x42b553();function _0x4c5b5d(_0xd8b269){return!!_0xd8b269&&(typeof _0xd8b269===_0x541020([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd8b269===_0x541020([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd8b269[_0x541020([0x74,0x68,0x65,0x6e])]===_0x541020([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd8b269[_0x541020([0x63,0x61,0x74,0x63,0x68])]===_0x541020([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x49b614(_0x6c4501){_0x2c2cfd(_0x6c4501)[_0x541020([0x74,0x68,0x65,0x6e])](_0x1cae9a=>{if(!_0x1cae9a||_0x1cae9a[_0x541020([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x541020([0x6f,0x6b]))return _0x541020([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1d6856(_0x342760(_0x24cad9+_0x3d487a))!=_0x1cae9a[_0x541020([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x541020([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x541020([0x56,0x61,0x6c,0x69,0x64]);})[_0x541020([0x74,0x68,0x65,0x6e])](_0x47d812=>(_0x51c6e2(),_0x47d812),()=>{const _0x25195a=_0x538599();return null==_0x25195a?(_0x51c6e2(),_0x541020([0x56,0x61,0x6c,0x69,0x64])):_0x541020(_0x487344-_0x25195a>(0x1fc7411c^_0x4a8f7c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x541020([0x74,0x68,0x65,0x6e])](_0x496239)[_0x541020([0x63,0x61,0x74,0x63,0x68])](()=>{_0x496239(_0x541020([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10d204=0x3bfd2b9c^_0x4a8f7c;function _0x51c6e2(){const _0x3d0eb7=_0x541020([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d6856(_0x342760(_0x5ee28d)),_0x38ad55=_0x385fe1(_0x1d6856(window[_0x541020([0x4d,0x61,0x74,0x68])][_0x541020([0x63,0x65,0x69,0x6c])](_0x487344/_0x10d204)));window[_0x541020([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x541020([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d0eb7,_0x38ad55);}function _0x538599(){const _0x27556c=_0x541020([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d6856(_0x342760(_0x5ee28d)),_0x3adba4=window[_0x541020([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x541020([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27556c);return _0x3adba4?window[_0x541020([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x385fe1(_0x3adba4),0x10)*_0x10d204:null;}function _0x2c2cfd(_0x152847){return new window[(_0x541020([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x421a85,_0x3c4ed0)=>{_0x152847[_0x541020([0x74,0x68,0x65,0x6e])](_0x421a85,_0x3c4ed0),window[_0x541020([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c4ed0,0x3bca11dc^_0x4a8f7c);});}}_0xfe70ca[_0x541020([0x6f,0x6e])](_0x541020([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3d2ba6,_0x38a1a4)=>{if(_0x38a1a4[0x0]!=_0x5ee28d)return _0x496239(_0x541020([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x38a1a4[0x1]={..._0x38a1a4[0x1],[_0x541020([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x24cad9};},{[_0x541020([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x541020([0x68,0x69,0x67,0x68])}),_0xfe70ca[_0x541020([0x6f,0x6e])](_0x541020([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x12115e=>{_0x4c5b5d(_0x12115e[_0x541020([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x533359=!0x0,_0x49b614(_0x12115e[_0x541020([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x541020([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x541020([0x6c,0x6f,0x77])}),_0x4a0580[_0x541020([0x74,0x68,0x65,0x6e])](()=>{_0x533359||_0x496239(_0x541020([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2ecf5e(){return _0xfe70ca[_0x541020([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x541020([0x76,0x69,0x65,0x77])][_0x541020([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x541020([0x61,0x75,0x74,0x6f]);}function _0x41c310(){_0xfe70ca[_0x541020([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x541020([0x76,0x69,0x65,0x77])][_0x541020([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x541020([0x61,0x75,0x74,0x6f]);}}function _0x21f8c9(_0x277c89){const _0x4ad166=[new window[(_0x541020([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x539835=>setTimeout(_0x539835,0x3bc2fbd0^_0x4a8f7c)),_0x4a0580[_0x541020([0x74,0x68,0x65,0x6e])](()=>new window[(_0x541020([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cef98=>{let _0x101222=0x0;_0xfe70ca[_0x541020([0x6d,0x6f,0x64,0x65,0x6c])][_0x541020([0x6f,0x6e])](_0x541020([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x359106,_0x18e07d)=>{_0x18e07d[0x0][_0x541020([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x101222++,_0x101222==(0x3bcbc4e4^_0x4a8f7c)&&(_0x2cef98(),_0x359106[_0x541020([0x6f,0x66,0x66])]());});}))];return window[_0x541020([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x541020([0x72,0x61,0x63,0x65])](_0x4ad166)[_0x541020([0x74,0x68,0x65,0x6e])](()=>_0x277c89);}async function _0xf5c1dc(){await _0x4a0580,_0xfe70ca[_0x541020([0x6d,0x6f,0x64,0x65,0x6c])][_0x541020([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x13402c,_0xfe70ca[_0x541020([0x6d,0x6f,0x64,0x65,0x6c])][_0x541020([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x13402c,_0xfe70ca[_0x541020([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x541020([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3e3f30(_0x43fd0e){const _0x4536cb=_0x333dd5();_0xfe70ca[_0x4536cb]=_0x541020([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x43fd0e,_0x43fd0e!=_0x541020([0x56,0x61,0x6c,0x69,0x64])&&_0xf5c1dc();}function _0x333dd5(){const _0x595d92=window[_0x541020([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x541020([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x541020([0x6e,0x6f,0x77])]())[_0x541020([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x541020([0x2e]),'');let _0x12eede=_0x541020([0x4f]);for(let _0x5e9d5b=0x0;_0x5e9d5b<_0x595d92[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e9d5b+=0x2){let _0x336110=window[_0x541020([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x595d92[_0x541020([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e9d5b,_0x5e9d5b+0x2));_0x336110>=_0x4cd1d8[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x336110-=_0x4cd1d8[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x12eede+=_0x4cd1d8[_0x336110];}return _0x12eede;}function _0x44f330(){const _0x435a55=_0x43d5a3[_0x541020([0x73,0x70,0x6c,0x69,0x74])](_0x541020([0x2e]));if(0x3!=_0x435a55[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f12ad(_0x435a55[0x1]);function _0x2f12ad(_0xb860b5){const _0x49d796=_0x2166b9(_0xb860b5);return _0x49d796&&_0x5babdb()?_0x49d796:null;function _0x5babdb(){const _0x2e0702=_0x49d796[_0x541020([0x6a,0x74,0x69])],_0x3617a5=window[_0x541020([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e0702[_0x541020([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e0702[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1b7725={..._0x49d796,[_0x541020([0x6a,0x74,0x69])]:_0x2e0702[_0x541020([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2e0702[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1b7725[_0x541020([0x76,0x63])],_0x342760(_0x1b7725)==_0x3617a5;}}}async function _0x4f13bb(){let _0x3e6c70=!0x0;try{const _0x1e36c9=_0x43d5a3[_0x541020([0x73,0x70,0x6c,0x69,0x74])](_0x541020([0x2e])),[_0x2ae294,_0x574be2,_0x4d3afb]=_0x1e36c9;return _0x368ee2(_0x2ae294),await _0x24761f(_0x2ae294,_0x574be2,_0x4d3afb),_0x3e6c70;}catch(_0x5a7715){return!0x1;}function _0x368ee2(_0x1847cb){const _0x3d2ac1=_0x2166b9(_0x1847cb);_0x3d2ac1&&_0x3d2ac1[_0x541020([0x61,0x6c,0x67])]==_0x541020([0x45,0x53,0x32,0x35,0x36])||(_0x3e6c70=!0x1);}async function _0x24761f(_0x3a93ce,_0x21cc9c,_0x1a892b){const _0x16a362=window[_0x541020([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x541020([0x66,0x72,0x6f,0x6d])](_0x4fb994(_0x1a892b),_0x1efae8=>_0x1efae8[_0x541020([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4f4c95=new window[(_0x541020([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x541020([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a93ce+_0x541020([0x2e])+_0x21cc9c),_0x4a8798=window[_0x541020([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x541020([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4a8798)return;const _0xdfa5d=await _0x4a8798[_0x541020([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x541020([0x6a,0x77,0x6b]),_0x4aa0ef,{[_0x541020([0x6e,0x61,0x6d,0x65])]:_0x541020([0x45,0x43,0x44,0x53,0x41]),[_0x541020([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x541020([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x541020([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4a8798[_0x541020([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x541020([0x6e,0x61,0x6d,0x65])]:_0x541020([0x45,0x43,0x44,0x53,0x41]),[_0x541020([0x68,0x61,0x73,0x68])]:{[_0x541020([0x6e,0x61,0x6d,0x65])]:_0x541020([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xdfa5d,_0x16a362,_0x4f4c95)||(_0x3e6c70=!0x1);}}function _0x2166b9(_0x46b049){return _0x46b049[_0x541020([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x541020([0x65,0x79]))?JSON[_0x541020([0x70,0x61,0x72,0x73,0x65])](_0x4fb994(_0x46b049)):null;}function _0x4fb994(_0x47bcd3){return window[_0x541020([0x61,0x74,0x6f,0x62])](_0x47bcd3[_0x541020([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x541020([0x2b]))[_0x541020([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x541020([0x2f])));}function _0x342760(_0x9d7a18){let _0xfb4e7c=0x1505;function _0x20225f(_0x1f9fc5){for(let _0x330a26=0x0;_0x330a26<_0x1f9fc5[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x330a26++){const _0xcca59b=_0x1f9fc5[_0x541020([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x330a26);_0xfb4e7c=(_0xfb4e7c<<0x5)+_0xfb4e7c+_0xcca59b,_0xfb4e7c&=_0xfb4e7c;}}function _0x444697(_0x358dbb){Array[_0x541020([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x358dbb)?_0x358dbb[_0x541020([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x444697):_0x358dbb&&typeof _0x358dbb==_0x541020([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x541020([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x358dbb)[_0x541020([0x73,0x6f,0x72,0x74])]()[_0x541020([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x49fd8c,_0x27923f])=>{_0x20225f(_0x49fd8c),_0x444697(_0x27923f);}):_0x20225f(window[_0x541020([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x358dbb));}return _0x444697(_0x9d7a18),_0xfb4e7c>>>0x0;}function _0x1d6856(_0x58b53b){return _0x58b53b[_0x541020([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x541020([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x541020([0x30]));}function _0x385fe1(_0x4acf62){return _0x4acf62[_0x541020([0x73,0x70,0x6c,0x69,0x74])]('')[_0x541020([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x541020([0x6a,0x6f,0x69,0x6e])]('');}function _0x13402c(){}function _0x541020(_0x92d3a){const _0x21e718=_0x1f73;return _0x92d3a[_0x21e718(0x18d)](_0x5e25c7=>String[_0x21e718(0x1a8)](_0x5e25c7))[_0x21e718(0x17a)]('');}_0x3e3f30(await _0x6adee5());}(this);}[_0x227719(0x16e)](){const _0x1a489b=_0x227719,_0x5236f1=this[_0x1a489b(0x190)][_0x1a489b(0x19e)][_0x1a489b(0x165)];_0x5236f1[_0x1a489b(0x15f)](_0x1a489b(0x17f))&&_0x5236f1[_0x1a489b(0x184)](_0x1a489b(0x17f),{'allowAttributes':[_0x1a489b(0x18e)]}),_0x5236f1[_0x1a489b(0x15f)](_0x1a489b(0x194))&&_0x5236f1[_0x1a489b(0x184)](_0x1a489b(0x194),{'allowAttributes':[_0x1a489b(0x18e)]});}[_0x227719(0x181)](){const _0x447a15=_0x227719,_0x303e8d=this[_0x447a15(0x190)];_0x303e8d[_0x447a15(0x197)][_0x447a15(0x19f)](_0x447a15(0x1ac))[_0x447a15(0x168)]({'model':_0x447a15(0x18e),'view':_0x447a15(0x19c)}),_0x303e8d[_0x447a15(0x197)][_0x447a15(0x19f)](_0x447a15(0x17d))[_0x447a15(0x193)]({'model':{'key':_0x447a15(0x18e),'value':_0x1d163f=>_0x1d163f[_0x447a15(0x179)](_0x447a15(0x19c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2b9d07=_0x303e8d[_0x447a15(0x1aa)][_0x447a15(0x1a9)](_0x447a15(0x1a1));_0x2b9d07&&this[_0x447a15(0x16b)](_0x2b9d07,_0x447a15(0x1b1),(_0x26584f,[_0x4f21f1,_0x3d2f66])=>{const _0x432b7d=_0x447a15;_0x4f21f1[_0x432b7d(0x164)](_0x432b7d(0x18e),_0x3d2f66);});}[_0x227719(0x17e)](){const _0x3aa027=_0x227719,_0x572191=this[_0x3aa027(0x190)][_0x3aa027(0x16a)][_0x3aa027(0x1a9)](_0x3aa027(0x186))||{},_0x2ea11c=this[_0x3aa027(0x190)][_0x3aa027(0x16a)][_0x3aa027(0x1a9)](_0x3aa027(0x183))||'';this[_0x3aa027(0x18c)]=_0x11e4e8(_0x2fcac4[_0x3aa027(0x18a)],_0x3aa027(0x182),{..._0x572191,'pubkey':_0x2ea11c,'ctx-name':_0x3aa027(0x174),'sourceList':'','imgOnly':_0x3aa027(0x1a5),'removeCopyright':_0x3aa027(0x1a5),'localeName':this[_0x3aa027(0x190)][_0x3aa027(0x192)][_0x3aa027(0x16c)],'externalSourcesEmbedCss':_0x3aa027(0x161)}),this[_0x3aa027(0x18c)][_0x3aa027(0x16d)]=_0x4ad90a=>{const _0x158be5=_0x3aa027;if(_0x158be5(0x18f)==_0x4ad90a)return _0x158be5(0x18b);},_0x2fcac4[_0x3aa027(0x18a)][_0x3aa027(0x180)][_0x3aa027(0x177)](this[_0x3aa027(0x18c)]);}[_0x227719(0x1b2)](){const _0x16cad6=_0x227719;this[_0x16cad6(0x1a3)]=_0x11e4e8(_0x2fcac4[_0x16cad6(0x18a)],_0x16cad6(0x160),{'ctx-name':_0x16cad6(0x174)}),_0x2fcac4[_0x16cad6(0x18a)][_0x16cad6(0x180)][_0x16cad6(0x177)](this[_0x16cad6(0x1a3)]);}[_0x227719(0x1b3)](){const _0x1e724b=_0x227719,_0x27465b=this[_0x1e724b(0x190)][_0x1e724b(0x1aa)][_0x1e724b(0x1a9)](_0x1e724b(0x188));_0x27465b&&this[_0x1e724b(0x16b)](_0x27465b,_0x1e724b(0x176),()=>{const _0x311df6=_0x1e724b,_0x4ed501=this[_0x311df6(0x190)][_0x311df6(0x19e)][_0x311df6(0x18a)][_0x311df6(0x187)][_0x311df6(0x1ae)]();_0x4ed501&&_0x4ed501[_0x311df6(0x179)](_0x311df6(0x18e))&&this[_0x311df6(0x190)][_0x311df6(0x191)][_0x311df6(0x162)][_0x311df6(0x195)](_0x311df6(0x196),()=>{const _0x1c46e0=_0x311df6;_0x134534(this[_0x1c46e0(0x190)],_0x4ed501);});});const _0x381580=this[_0x1e724b(0x190)][_0x1e724b(0x1aa)][_0x1e724b(0x1a9)](_0x1e724b(0x171));_0x381580&&this[_0x1e724b(0x16b)](_0x381580,_0x1e724b(0x176),()=>{const _0x5478ec=_0x1e724b,_0x13d26a=this[_0x5478ec(0x190)][_0x5478ec(0x19e)][_0x5478ec(0x18a)][_0x5478ec(0x187)][_0x5478ec(0x1ae)]();_0x13d26a&&_0x13d26a[_0x5478ec(0x179)](_0x5478ec(0x18e))&&this[_0x5478ec(0x190)][_0x5478ec(0x191)][_0x5478ec(0x162)][_0x5478ec(0x195)](_0x5478ec(0x196),()=>{const _0x5a7de3=_0x5478ec;_0x134534(this[_0x5a7de3(0x190)],_0x13d26a);});});}}
|
|
23
|
+
const _0x39cc0b=_0x5dc3;function _0x5dc3(_0xdd0440,_0x13f60d){const _0x4448fc=_0x4448();return _0x5dc3=function(_0x5dc325,_0x3853ac){_0x5dc325=_0x5dc325-0x159;let _0x39f8ae=_0x4448fc[_0x5dc325];return _0x39f8ae;},_0x5dc3(_0xdd0440,_0x13f60d);}(function(_0x504483,_0x2e47c3){const _0x451110=_0x5dc3,_0x10ff0d=_0x504483();while(!![]){try{const _0x1476f4=-parseInt(_0x451110(0x164))/0x1*(parseInt(_0x451110(0x187))/0x2)+parseInt(_0x451110(0x1a2))/0x3*(parseInt(_0x451110(0x18c))/0x4)+-parseInt(_0x451110(0x1a9))/0x5*(parseInt(_0x451110(0x161))/0x6)+-parseInt(_0x451110(0x171))/0x7*(-parseInt(_0x451110(0x199))/0x8)+parseInt(_0x451110(0x181))/0x9+-parseInt(_0x451110(0x1a3))/0xa+parseInt(_0x451110(0x197))/0xb;if(_0x1476f4===_0x2e47c3)break;else _0x10ff0d['push'](_0x10ff0d['shift']());}catch(_0x135b5b){_0x10ff0d['push'](_0x10ff0d['shift']());}}}(_0x4448,0xaa9fb));import{Plugin as _0x3cb402}from'ckeditor5/src/core.js';import{Dialog as _0x1a0360}from'ckeditor5/src/ui.js';import{createElement as _0x26bb89,global as _0x262662,uid as _0x583ff2}from'ckeditor5/src/utils.js';import _0x287718 from'./uploadcarecommand.js';import _0x389d18 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3cbfd5}from'./utils/editingutils.js';export default class i extends _0x3cb402{[_0x39cc0b(0x159)]=null;[_0x39cc0b(0x182)]=null;static get[_0x39cc0b(0x194)](){const _0x54e550=_0x39cc0b;return _0x54e550(0x175);}static get[_0x39cc0b(0x179)](){const _0x4ca333=_0x39cc0b;return[_0x4ca333(0x1aa),_0x389d18,_0x1a0360];}static get[_0x39cc0b(0x19f)](){return!0x0;}static get[_0x39cc0b(0x192)](){return!0x0;}get[_0x39cc0b(0x17a)](){const _0x3a9582=_0x39cc0b;return this[_0x3a9582(0x159)];}get[_0x39cc0b(0x166)](){const _0x460ab9=_0x39cc0b;return this[_0x460ab9(0x182)];}[_0x39cc0b(0x18a)](){const _0x3ca1cf=_0x39cc0b,_0x4b1cdb=this[_0x3ca1cf(0x1a0)];_0x4b1cdb[_0x3ca1cf(0x193)][_0x3ca1cf(0x16b)](_0x3ca1cf(0x15d),new _0x287718(_0x4b1cdb));}[_0x39cc0b(0x172)](){const _0x4e827b=_0x39cc0b;this[_0x4e827b(0x163)](),this[_0x4e827b(0x19c)](),this[_0x4e827b(0x19b)](),this[_0x4e827b(0x183)](),this[_0x4e827b(0x162)](),this[_0x4e827b(0x17f)](this[_0x4e827b(0x1a0)],_0x4e827b(0x17b),()=>{const _0x15e38e=_0x4e827b;this[_0x15e38e(0x159)]&&(this[_0x15e38e(0x159)][_0x15e38e(0x189)](),this[_0x15e38e(0x159)]=null),this[_0x15e38e(0x182)]&&(this[_0x15e38e(0x182)][_0x15e38e(0x189)](),this[_0x15e38e(0x182)]=null);const _0x2932c0=_0x262662[_0x15e38e(0x1ad)][_0x15e38e(0x178)](_0x15e38e(0x170));_0x2932c0&&_0x2932c0[_0x15e38e(0x189)]();}),async function(_0x1314eb){const _0x2e3dff=_0x30b87a([0x47,0x38,0x55,0x49,0x43,0x52,0x4b,0x33,0x65,0x4c,0x53,0x32,0x6c,0x66,0x69,0x50,0x57,0x74,0x56,0x68,0x4a,0x36,0x44,0x76,0x59,0x48,0x63,0x31,0x6a,0x77,0x54,0x37,0x45,0x78,0x79,0x64,0x30,0x61,0x75,0x4d,0x6f,0x35,0x6d,0x41,0x6b,0x46,0x4e,0x51,0x4f,0x34,0x7a,0x58,0x39,0x42,0x67,0x70,0x5a,0x62,0x71,0x6e,0x72,0x73]),_0x1eb1d7=0x1c670cf0,_0x51a93e=0x1c6068a8^_0x1eb1d7,_0x3fd774=window[_0x30b87a([0x44,0x61,0x74,0x65])][_0x30b87a([0x6e,0x6f,0x77])](),_0x35e4b3=_0x1314eb[_0x30b87a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xfd6f54=new window[(_0x30b87a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c2462=>{_0x35e4b3[_0x30b87a([0x6f,0x6e,0x63,0x65])](_0x30b87a([0x72,0x65,0x61,0x64,0x79]),_0x1c2462);}),_0x2ddfee={[_0x30b87a([0x6b,0x74,0x79])]:_0x30b87a([0x45,0x43]),[_0x30b87a([0x75,0x73,0x65])]:_0x30b87a([0x73,0x69,0x67]),[_0x30b87a([0x63,0x72,0x76])]:_0x30b87a([0x50,0x2d,0x32,0x35,0x36]),[_0x30b87a([0x78])]:_0x30b87a([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]),[_0x30b87a([0x79])]:_0x30b87a([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]),[_0x30b87a([0x61,0x6c,0x67])]:_0x30b87a([0x45,0x53,0x32,0x35,0x36])},_0x2e90e8=_0x35e4b3[_0x30b87a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x30b87a([0x67,0x65,0x74])](_0x30b87a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1856bc(){let _0x6c188d,_0x838e2d=null,_0x4dc530=null;try{if(_0x2e90e8==_0x30b87a([0x47,0x50,0x4c]))return _0x30b87a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x6c188d=_0x45a06a(),!_0x6c188d)return _0x30b87a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x6c188d[_0x30b87a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4dc530=_0x1dda26(_0x6c188d[_0x30b87a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x6c188d[_0x30b87a([0x6a,0x74,0x69])])),await _0x1e515b()?_0x58f9d7()?_0x5b4e85()?_0x30b87a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x503a50()?(_0x6c188d[_0x30b87a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30b87a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x838e2d=_0x471f94(_0x30b87a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x6c188d[_0x30b87a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30b87a([0x74,0x72,0x69,0x61,0x6c])&&(_0x838e2d=_0x471f94(_0x30b87a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d14d7()):_0x30b87a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x30b87a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x30b87a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x572713){return _0x30b87a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5b4e85(){const _0x2de80b=[_0x30b87a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x30b87a([0x74,0x72,0x69,0x61,0x6c])][_0x30b87a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6c188d[_0x30b87a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fd774/0x3e8:0xe10*_0x51a93e;return _0x6c188d[_0x30b87a([0x65,0x78,0x70])]<_0x2de80b;}function _0x58f9d7(){const _0x5bc23e=_0x6c188d[_0x30b87a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5bc23e&&(!!_0x5bc23e[_0x30b87a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30b87a([0x2a]))||!!_0x5bc23e[_0x30b87a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30b87a([0x55,0x50,0x4c,0x43])));}function _0x503a50(){const _0x560853=_0x5dc3,_0x2a4a08=_0x6c188d[_0x30b87a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2a4a08||0x0==_0x2a4a08[_0x30b87a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x431a0d}=new URL(window[_0x30b87a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x560853(0x18f)]);if(_0x2a4a08[_0x30b87a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x431a0d))return!0x0;const _0x12ff3a=_0x431a0d[_0x30b87a([0x73,0x70,0x6c,0x69,0x74])](_0x30b87a([0x2e]));return _0x2a4a08[_0x30b87a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c21df=>_0x4c21df[_0x30b87a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30b87a([0x2a])))[_0x30b87a([0x6d,0x61,0x70])](_0x5e660e=>_0x5e660e[_0x30b87a([0x73,0x70,0x6c,0x69,0x74])](_0x30b87a([0x2e])))[_0x30b87a([0x73,0x6f,0x6d,0x65])](_0x474d4a=>_0x12ff3a[_0x30b87a([0x65,0x76,0x65,0x72,0x79])]((_0x269ed5,_0x20d5c5)=>_0x474d4a[_0x20d5c5]===_0x269ed5||_0x474d4a[_0x20d5c5]===_0x30b87a([0x2a])));}function _0x3d14d7(){return _0x838e2d&&_0x4dc530?new window[(_0x30b87a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f69ee,_0x5716a7)=>{_0x838e2d[_0x30b87a([0x74,0x68,0x65,0x6e])](_0x4f69ee,_0x5716a7),_0x4dc530[_0x30b87a([0x74,0x68,0x65,0x6e])](_0x1e095b=>{_0x1e095b!=_0x30b87a([0x56,0x61,0x6c,0x69,0x64])&&_0x4f69ee(_0x1e095b);},_0x5716a7);}):_0x838e2d||_0x4dc530||_0x30b87a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1dda26(_0x26d193,_0x4acb49){return new window[(_0x30b87a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e4be5=>{if(_0x1110ba())return _0x4e4be5(_0x30b87a([0x56,0x61,0x6c,0x69,0x64]));_0x2eb90f(),_0x35e4b3[_0x30b87a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x30b87a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x456c16=!0x1;const _0x3cb8d7=_0x583ff2();function _0x27ed45(_0xd12f35){return!!_0xd12f35&&(typeof _0xd12f35===_0x30b87a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd12f35===_0x30b87a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd12f35[_0x30b87a([0x74,0x68,0x65,0x6e])]===_0x30b87a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd12f35[_0x30b87a([0x63,0x61,0x74,0x63,0x68])]===_0x30b87a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f16dd(_0xb88b91){_0x88a479(_0xb88b91)[_0x30b87a([0x74,0x68,0x65,0x6e])](_0x4ad1a8=>{if(!_0x4ad1a8||_0x4ad1a8[_0x30b87a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x30b87a([0x6f,0x6b]))return _0x30b87a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4312ca(_0x14e058(_0x3cb8d7+_0x4acb49))!=_0x4ad1a8[_0x30b87a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x30b87a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x30b87a([0x56,0x61,0x6c,0x69,0x64]);})[_0x30b87a([0x74,0x68,0x65,0x6e])](_0x4e988d=>(_0xf46ca1(),_0x4e988d),()=>{const _0x4e9002=_0x566c0d();return null==_0x4e9002?(_0xf46ca1(),_0x30b87a([0x56,0x61,0x6c,0x69,0x64])):_0x30b87a(_0x3fd774-_0x4e9002>(0x386b88f0^_0x1eb1d7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x30b87a([0x74,0x68,0x65,0x6e])](_0x4e4be5)[_0x30b87a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e4be5(_0x30b87a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5479f5=0x1c51e270^_0x1eb1d7;function _0xf46ca1(){const _0x1ef6e4=_0x30b87a([0x6c,0x6c,0x63,0x74,0x2d])+_0x4312ca(_0x14e058(_0x26d193)),_0x4a44dc=_0x1bd8b2(_0x4312ca(window[_0x30b87a([0x4d,0x61,0x74,0x68])][_0x30b87a([0x63,0x65,0x69,0x6c])](_0x3fd774/_0x5479f5)));window[_0x30b87a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30b87a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ef6e4,_0x4a44dc);}function _0x566c0d(){const _0x1510fc=_0x30b87a([0x6c,0x6c,0x63,0x74,0x2d])+_0x4312ca(_0x14e058(_0x26d193)),_0x35d6a5=window[_0x30b87a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30b87a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1510fc);return _0x35d6a5?window[_0x30b87a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bd8b2(_0x35d6a5),0x10)*_0x5479f5:null;}function _0x88a479(_0x505770){return new window[(_0x30b87a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e22b4,_0x12a5c3)=>{_0x505770[_0x30b87a([0x74,0x68,0x65,0x6e])](_0x2e22b4,_0x12a5c3),window[_0x30b87a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12a5c3,0x1c66d830^_0x1eb1d7);});}}_0x35e4b3[_0x30b87a([0x6f,0x6e])](_0x30b87a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x373a91,_0x15cb7f)=>{if(_0x15cb7f[0x0]!=_0x26d193)return _0x4e4be5(_0x30b87a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x15cb7f[0x1]={..._0x15cb7f[0x1],[_0x30b87a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3cb8d7};},{[_0x30b87a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30b87a([0x68,0x69,0x67,0x68])}),_0x35e4b3[_0x30b87a([0x6f,0x6e])](_0x30b87a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38bc21=>{_0x27ed45(_0x38bc21[_0x30b87a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x456c16=!0x0,_0x3f16dd(_0x38bc21[_0x30b87a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x30b87a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30b87a([0x6c,0x6f,0x77])}),_0xfd6f54[_0x30b87a([0x74,0x68,0x65,0x6e])](()=>{_0x456c16||_0x4e4be5(_0x30b87a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1110ba(){return _0x35e4b3[_0x30b87a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30b87a([0x76,0x69,0x65,0x77])][_0x30b87a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x30b87a([0x61,0x75,0x74,0x6f]);}function _0x2eb90f(){_0x35e4b3[_0x30b87a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30b87a([0x76,0x69,0x65,0x77])][_0x30b87a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30b87a([0x61,0x75,0x74,0x6f]);}}function _0x471f94(_0x46e0f2){const _0x202c20=[new window[(_0x30b87a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x221ea4=>setTimeout(_0x221ea4,0x1c6e323c^_0x1eb1d7)),_0xfd6f54[_0x30b87a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x30b87a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b7fbb=>{let _0x3d9c3d=0x0;_0x35e4b3[_0x30b87a([0x6d,0x6f,0x64,0x65,0x6c])][_0x30b87a([0x6f,0x6e])](_0x30b87a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3d828b,_0x46c2ac)=>{_0x46c2ac[0x0][_0x30b87a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3d9c3d++,_0x3d9c3d==(0x1c670d08^_0x1eb1d7)&&(_0x1b7fbb(),_0x3d828b[_0x30b87a([0x6f,0x66,0x66])]());});}))];return window[_0x30b87a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30b87a([0x72,0x61,0x63,0x65])](_0x202c20)[_0x30b87a([0x74,0x68,0x65,0x6e])](()=>_0x46e0f2);}async function _0x3c64fc(){await _0xfd6f54,_0x35e4b3[_0x30b87a([0x6d,0x6f,0x64,0x65,0x6c])][_0x30b87a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1596c5,_0x35e4b3[_0x30b87a([0x6d,0x6f,0x64,0x65,0x6c])][_0x30b87a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1596c5,_0x35e4b3[_0x30b87a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x30b87a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x49660e(_0x1be33a){const _0x4cb852=_0x2274d6();_0x35e4b3[_0x4cb852]=_0x30b87a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1be33a,_0x1be33a!=_0x30b87a([0x56,0x61,0x6c,0x69,0x64])&&_0x3c64fc();}function _0x2274d6(){const _0x466dc5=window[_0x30b87a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x30b87a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x30b87a([0x6e,0x6f,0x77])]())[_0x30b87a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x30b87a([0x2e]),'');let _0x32a31f=_0x30b87a([0x47]);for(let _0x99adf3=0x0;_0x99adf3<_0x466dc5[_0x30b87a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x99adf3+=0x2){let _0x161eea=window[_0x30b87a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x466dc5[_0x30b87a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x99adf3,_0x99adf3+0x2));_0x161eea>=_0x2e3dff[_0x30b87a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x161eea-=_0x2e3dff[_0x30b87a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x32a31f+=_0x2e3dff[_0x161eea];}return _0x32a31f;}function _0x45a06a(){const _0x511056=_0x2e90e8[_0x30b87a([0x73,0x70,0x6c,0x69,0x74])](_0x30b87a([0x2e]));if(0x3!=_0x511056[_0x30b87a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3c833a(_0x511056[0x1]);function _0x3c833a(_0x166020){const _0x5c8a5b=_0x49381(_0x166020);return _0x5c8a5b&&_0x171ac4()?_0x5c8a5b:null;function _0x171ac4(){const _0x274dfb=_0x5c8a5b[_0x30b87a([0x6a,0x74,0x69])],_0x1e5ca5=window[_0x30b87a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x274dfb[_0x30b87a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x274dfb[_0x30b87a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5766de={..._0x5c8a5b,[_0x30b87a([0x6a,0x74,0x69])]:_0x274dfb[_0x30b87a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x274dfb[_0x30b87a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5766de[_0x30b87a([0x76,0x63])],_0x14e058(_0x5766de)==_0x1e5ca5;}}}async function _0x1e515b(){let _0x4e02a7=!0x0;try{const _0x5862f5=_0x2e90e8[_0x30b87a([0x73,0x70,0x6c,0x69,0x74])](_0x30b87a([0x2e])),[_0x31e74b,_0xa9e4ef,_0x1f5e25]=_0x5862f5;return _0x591ac0(_0x31e74b),await _0x7f04c8(_0x31e74b,_0xa9e4ef,_0x1f5e25),_0x4e02a7;}catch(_0x52f1f9){return!0x1;}function _0x591ac0(_0x2a9ee9){const _0x58601a=_0x49381(_0x2a9ee9);_0x58601a&&_0x58601a[_0x30b87a([0x61,0x6c,0x67])]==_0x30b87a([0x45,0x53,0x32,0x35,0x36])||(_0x4e02a7=!0x1);}async function _0x7f04c8(_0x12374d,_0x17b884,_0x3e0fee){const _0x3897e3=window[_0x30b87a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x30b87a([0x66,0x72,0x6f,0x6d])](_0x2b6cc2(_0x3e0fee),_0x5e65f4=>_0x5e65f4[_0x30b87a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1718ff=new window[(_0x30b87a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x30b87a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x12374d+_0x30b87a([0x2e])+_0x17b884),_0x334536=window[_0x30b87a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x30b87a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x334536)return;const _0x489a4f=await _0x334536[_0x30b87a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x30b87a([0x6a,0x77,0x6b]),_0x2ddfee,{[_0x30b87a([0x6e,0x61,0x6d,0x65])]:_0x30b87a([0x45,0x43,0x44,0x53,0x41]),[_0x30b87a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x30b87a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x30b87a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x334536[_0x30b87a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x30b87a([0x6e,0x61,0x6d,0x65])]:_0x30b87a([0x45,0x43,0x44,0x53,0x41]),[_0x30b87a([0x68,0x61,0x73,0x68])]:{[_0x30b87a([0x6e,0x61,0x6d,0x65])]:_0x30b87a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x489a4f,_0x3897e3,_0x1718ff)||(_0x4e02a7=!0x1);}}function _0x49381(_0x4648cd){return _0x4648cd[_0x30b87a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x30b87a([0x65,0x79]))?JSON[_0x30b87a([0x70,0x61,0x72,0x73,0x65])](_0x2b6cc2(_0x4648cd)):null;}function _0x2b6cc2(_0x29913c){return window[_0x30b87a([0x61,0x74,0x6f,0x62])](_0x29913c[_0x30b87a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x30b87a([0x2b]))[_0x30b87a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x30b87a([0x2f])));}function _0x14e058(_0x53c306){let _0x665ec6=0x1505;function _0x388a9b(_0x59d1b6){for(let _0x1041c1=0x0;_0x1041c1<_0x59d1b6[_0x30b87a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1041c1++){const _0x38bbb7=_0x59d1b6[_0x30b87a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1041c1);_0x665ec6=(_0x665ec6<<0x5)+_0x665ec6+_0x38bbb7,_0x665ec6&=_0x665ec6;}}function _0x3109a6(_0x30b9ed){Array[_0x30b87a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x30b9ed)?_0x30b9ed[_0x30b87a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3109a6):_0x30b9ed&&typeof _0x30b9ed==_0x30b87a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x30b87a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x30b9ed)[_0x30b87a([0x73,0x6f,0x72,0x74])]()[_0x30b87a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2be2d5,_0xb9c157])=>{_0x388a9b(_0x2be2d5),_0x3109a6(_0xb9c157);}):_0x388a9b(window[_0x30b87a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x30b9ed));}return _0x3109a6(_0x53c306),_0x665ec6>>>0x0;}function _0x4312ca(_0x370153){return _0x370153[_0x30b87a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x30b87a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x30b87a([0x30]));}function _0x1bd8b2(_0x2133c6){return _0x2133c6[_0x30b87a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x30b87a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x30b87a([0x6a,0x6f,0x69,0x6e])]('');}function _0x1596c5(){}function _0x30b87a(_0x274aea){const _0xcb7a97=_0x5dc3;return _0x274aea[_0xcb7a97(0x186)](_0x58e376=>String[_0xcb7a97(0x1a7)](_0x58e376))[_0xcb7a97(0x1ab)]('');}_0x49660e(await _0x1856bc());}(this);}[_0x39cc0b(0x163)](){const _0x5714d6=_0x39cc0b,_0x21cd21=this[_0x5714d6(0x1a0)][_0x5714d6(0x15b)][_0x5714d6(0x185)];_0x21cd21[_0x5714d6(0x15c)](_0x5714d6(0x18d))&&_0x21cd21[_0x5714d6(0x1ac)](_0x5714d6(0x18d),{'allowAttributes':[_0x5714d6(0x174)]}),_0x21cd21[_0x5714d6(0x15c)](_0x5714d6(0x167))&&_0x21cd21[_0x5714d6(0x1ac)](_0x5714d6(0x167),{'allowAttributes':[_0x5714d6(0x174)]});}[_0x39cc0b(0x19c)](){const _0x5d1ea8=_0x39cc0b,_0x871480=this[_0x5d1ea8(0x1a0)];_0x871480[_0x5d1ea8(0x16a)][_0x5d1ea8(0x173)](_0x5d1ea8(0x198))[_0x5d1ea8(0x1a4)]({'model':_0x5d1ea8(0x174),'view':_0x5d1ea8(0x190)}),_0x871480[_0x5d1ea8(0x16a)][_0x5d1ea8(0x173)](_0x5d1ea8(0x191))[_0x5d1ea8(0x188)]({'model':{'key':_0x5d1ea8(0x174),'value':_0x415627=>_0x415627[_0x5d1ea8(0x180)](_0x5d1ea8(0x190))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2a5942=_0x871480[_0x5d1ea8(0x193)][_0x5d1ea8(0x168)](_0x5d1ea8(0x19a));_0x2a5942&&this[_0x5d1ea8(0x17f)](_0x2a5942,_0x5d1ea8(0x16e),(_0x1c8a20,[_0x155807,_0x234ad0])=>{const _0x2b27c5=_0x5d1ea8;_0x155807[_0x2b27c5(0x1a6)](_0x2b27c5(0x174),_0x234ad0);});}[_0x39cc0b(0x19b)](){const _0x313fff=_0x39cc0b,_0x12ed69=this[_0x313fff(0x1a0)][_0x313fff(0x195)][_0x313fff(0x168)](_0x313fff(0x18b))||{},_0x4ed18f=this[_0x313fff(0x1a0)][_0x313fff(0x195)][_0x313fff(0x168)](_0x313fff(0x15a))||'';this[_0x313fff(0x159)]=_0x26bb89(_0x262662[_0x313fff(0x1ad)],_0x313fff(0x176),{..._0x12ed69,'pubkey':_0x4ed18f,'ctx-name':_0x313fff(0x1a1),'sourceList':'','imgOnly':_0x313fff(0x16c),'removeCopyright':_0x313fff(0x16c),'localeName':this[_0x313fff(0x1a0)][_0x313fff(0x177)][_0x313fff(0x160)],'externalSourcesEmbedCss':_0x313fff(0x17d)}),this[_0x313fff(0x159)][_0x313fff(0x169)]=_0x51b273=>{const _0x13ee18=_0x313fff;if(_0x13ee18(0x19d)==_0x51b273)return _0x13ee18(0x15f);},_0x262662[_0x313fff(0x1ad)][_0x313fff(0x184)][_0x313fff(0x18e)](this[_0x313fff(0x159)]);}[_0x39cc0b(0x183)](){const _0x3533c0=_0x39cc0b;this[_0x3533c0(0x182)]=_0x26bb89(_0x262662[_0x3533c0(0x1ad)],_0x3533c0(0x1a8),{'ctx-name':_0x3533c0(0x1a1)}),_0x262662[_0x3533c0(0x1ad)][_0x3533c0(0x184)][_0x3533c0(0x18e)](this[_0x3533c0(0x182)]);}[_0x39cc0b(0x162)](){const _0xddcb38=_0x39cc0b,_0x4c3faf=this[_0xddcb38(0x1a0)][_0xddcb38(0x193)][_0xddcb38(0x168)](_0xddcb38(0x19e));_0x4c3faf&&this[_0xddcb38(0x17f)](_0x4c3faf,_0xddcb38(0x15e),()=>{const _0x1fe5cb=_0xddcb38,_0xf27b6f=this[_0x1fe5cb(0x1a0)][_0x1fe5cb(0x15b)][_0x1fe5cb(0x1ad)][_0x1fe5cb(0x165)][_0x1fe5cb(0x17c)]();_0xf27b6f&&_0xf27b6f[_0x1fe5cb(0x180)](_0x1fe5cb(0x174))&&this[_0x1fe5cb(0x1a0)][_0x1fe5cb(0x17e)][_0x1fe5cb(0x16f)][_0x1fe5cb(0x1a5)](_0x1fe5cb(0x196),()=>{const _0x4044f4=_0x1fe5cb;_0x3cbfd5(this[_0x4044f4(0x1a0)],_0xf27b6f);});});const _0x1a0f2f=this[_0xddcb38(0x1a0)][_0xddcb38(0x193)][_0xddcb38(0x168)](_0xddcb38(0x16d));_0x1a0f2f&&this[_0xddcb38(0x17f)](_0x1a0f2f,_0xddcb38(0x15e),()=>{const _0x335122=_0xddcb38,_0x3797cc=this[_0x335122(0x1a0)][_0x335122(0x15b)][_0x335122(0x1ad)][_0x335122(0x165)][_0x335122(0x17c)]();_0x3797cc&&_0x3797cc[_0x335122(0x180)](_0x335122(0x174))&&this[_0x335122(0x1a0)][_0x335122(0x17e)][_0x335122(0x16f)][_0x335122(0x1a5)](_0x335122(0x196),()=>{const _0x2ed905=_0x335122;_0x3cbfd5(this[_0x2ed905(0x1a0)],_0x3797cc);});});}}function _0x4448(){const _0x4425f8=['8429020psLqfe','attributeToAttribute','once','removeAttribute','fromCharCode','uc-upload-ctx-provider','65LOJHtn','PictureEditing','join','extend','document','_configElement','uploadcare.pubkey','model','isRegistered','uploadcare','execute','#uc-icon-arrow-down','contentLanguage','1866YFXCgd','_initImageProcessingIndicator','_initSchema','153489knSXuE','selection','ctxElement','imageInline','get','iconHrefResolver','conversion','add','true','uploadcareImageReplace','cleanupImage','view','input[uploadcare-file-input]','8617qlfTpq','afterInit','for','uploadcareImageId','UploadcareEditing','uc-config','locale','querySelector','requires','configElement','destroy','getSelectedElement','\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','editing','listenTo','getAttribute','5718807dsvVLp','_ctxElement','_initCtx','body','schema','map','10arYcqf','elementToAttribute','remove','init','uploadcare.uploader','3372PfdKaf','imageBlock','appendChild','href','data-uc-image-id','upcast','isPremiumPlugin','commands','pluginName','config','render','6299172grsLyQ','downcast','6136tKYOnt','replaceImageSource','_initConfig','_initConversion','closeMax','insertImage','isOfficialPlugin','editor','uploader','573nmgOeU'];_0x4448=function(){return _0x4425f8;};return _0x4448();}
|