@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250420.0 → 0.0.0-nightly-20250421.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 _0x3364da,Command as _0x56586c}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3747a3,IconGooglePhotos as _0x1de4f2,IconGoogleDrive as _0x24f9d0,IconFacebook as _0x282921,IconDropbox as _0x32ace1,IconUploadcareLink as _0x1a4bc0,IconUploadcareImageUpload as _0x39e4ef,IconError as et,IconUploadcareImageEdit as _0x63ddd2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1e4dbe,MenuBarMenuListItemButtonView as _0xd446b5,View as _0x1f8171,FocusCycler as _0x4853b9,Dialog as _0x519e77,DialogViewPosition as _0x2b4795,SpinnerView as _0x399cd1,IconView as at,Notification as _0x3c5717}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xd04ef8,DomEmitterMixin as _0x3d12af,global as _0x5c5795,getAncestors as _0x4b8384,ObservableMixin as _0x2d1207,createElement as _0x5f20d7,uid as _0x496501}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x154a69}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5e3943,info as _0x5a100f}from'@uploadcare/upload-client';import*as _0x297f65 from'@uploadcare/file-uploader';var o=function(_0x3dbe29){return _0x3dbe29['Local']='local',_0x3dbe29['URL']='url',_0x3dbe29['Dropbox']='dropbox',_0x3dbe29['GDrive']='gdrive',_0x3dbe29['Facebook']='facebook',_0x3dbe29['GPhotos']='gphotos',_0x3dbe29['OneDrive']='onedrive',_0x3dbe29;}({});function _(_0x324a84,_0x397b25,_0x438f4b){const t=_0x324a84['t'],_0x145366=_0x324a84['t'];switch(_0x397b25){case o['Local']:return{'text':_0x145366('Insert'===_0x438f4b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x145366('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x438f4b?_0x145366('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x145366('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x438f4b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x438f4b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x438f4b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x438f4b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x438f4b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x397b25;}}class e extends _0x3364da{['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 _0x12be54=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1261c2;for(const _0x2b683c in _0x12be54){const _0x11b171=_0x2b683c,_0x1e41bb=_0x12be54[_0x11b171];if('uploadcareLicenseKeyValid'==_0x1e41bb||'uploadcareLicenseKeyInvalid'==_0x1e41bb||'uploadcareLicenseKeyExpired'==_0x1e41bb||'uploadcareLicenseKeyDomainLimit'==_0x1e41bb||'uploadcareLicenseKeyNotAllowed'==_0x1e41bb||'uploadcareLicenseKeyEvaluationLimit'==_0x1e41bb||'uploadcareLicenseKeyTrialLimit'==_0x1e41bb||'uploadcareLicenseKeyUsageLimit'==_0x1e41bb){delete _0x12be54[_0x11b171],_0x1261c2=_0x1e41bb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1261c2&&_0x12be54['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1261c2&&_0x12be54['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1261c2&&_0x12be54['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1261c2&&_0x12be54['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1261c2&&_0x12be54['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1261c2&&_0x12be54['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1261c2&&_0x12be54['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4da7b4}=this,_0x3ba6f6=_0x4da7b4['commands']['get']('uploadcare');if(!_0x3ba6f6)return;const _0x2c627c=this['_normalizeConfigSourceList'](_0x4da7b4['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3bfb17,_0x23c9b2)=>{const _0x1b214b=this['_getIntegrationKey'](_0x23c9b2['type']);return _0x3bfb17[_0x1b214b]||(_0x3bfb17[_0x1b214b]=[]),_0x3bfb17[_0x1b214b]['push'](_0x23c9b2),_0x3bfb17;},{});_0x4da7b4['plugins']['has']('ImageInsertUI')&&_0x4da7b4['commands']['get']('uploadcare')&&Object['entries'](_0x2c627c)['forEach'](([_0x5062a2,_0x3ea70b])=>{_0x4da7b4['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5062a2,'observable':()=>_0x3ba6f6,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3ea70b),'formViewCreator':()=>this['_createDropdownButtons'](_0x3ea70b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3ea70b),'override':'assetManager'!==_0x5062a2});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xc65b30){const {locale:_0xa792c3}=this['editor'];return _0xc65b30['map'](_0xfc6169=>{const _0x4a8a49=_(_0xa792c3,_0xfc6169,'Insert');switch(_0xfc6169){case o['Local']:return{'icon':_0x39e4ef,'type':o['Local'],..._0x4a8a49};case o['URL']:return{'icon':_0x1a4bc0,'type':o['URL'],..._0x4a8a49};case o['Dropbox']:return{'icon':_0x32ace1,'type':o['Dropbox'],..._0x4a8a49};case o['Facebook']:return{'icon':_0x282921,'type':o['Facebook'],..._0x4a8a49};case o['GDrive']:return{'icon':_0x24f9d0,'type':o['GDrive'],..._0x4a8a49};case o['GPhotos']:return{'icon':_0x1de4f2,'type':o['GPhotos'],..._0x4a8a49};case o['OneDrive']:return{'icon':_0x3747a3,'type':o['OneDrive'],..._0x4a8a49};}});}['_getIntegrationKey'](_0x6c3973){switch(_0x6c3973){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5d5f26,_0x2db1b1){const _0xe39db7=this['editor'],_0x508c93=new _0x5d5f26(_0xe39db7['locale']),_0x52138d=_0xe39db7['commands']['get']('uploadcare');return _0x508c93['bind']('isEnabled')['to'](_0x52138d),_0x508c93['on']('execute',()=>{_0x52138d['execute'](_0x2db1b1);}),_0x508c93;}['_createToolbarButton'](_0x3096a1){const {locale:_0x54db28}=this['editor'],_0x3d30df=this['editor']['plugins']['get']('ImageInsertUI'),_0x54010a=_0x3096a1[0x0],_0x139ed7=this['_createButton'](_0x1e4dbe,_0x54010a['type']);return _0x139ed7['icon']=_0x54010a['icon'],_0x139ed7['bind']('label')['to'](_0x3d30df,'isImageSelected',_0x134fb5=>_(_0x54db28,_0x54010a['type'],_0x134fb5?'Replace':'Insert')['text']),_0x139ed7['tooltip']=!0x0,_0x139ed7;}['_createDropdownButtons'](_0x5be771){const {locale:_0x5a553d}=this['editor'],_0x27eb0c=this['editor']['plugins']['get']('ImageInsertUI');return _0x5be771['map'](_0x204313=>{const _0x53f418=this['_createButton'](_0x1e4dbe,_0x204313['type']);return _0x53f418['withText']=!0x0,_0x53f418['icon']=_0x204313['icon'],_0x53f418['bind']('label')['to'](_0x27eb0c,'isImageSelected',_0x5534c6=>_(_0x5a553d,_0x204313['type'],_0x5534c6?'Replace':'Insert')['text']),_0x53f418;});}['_createMenuBarButtons'](_0x1eb10f){return _0x1eb10f['map'](_0x3cb94b=>{const _0x3ddb4f=this['_createButton'](_0xd446b5,_0x3cb94b['type']);return _0x3ddb4f['icon']=_0x3cb94b['icon'],_0x3ddb4f['label']=_0x3cb94b['shortText'],_0x3ddb4f;});}}class q extends _0x1f8171{['focusTracker'];['focusCycler'];constructor(_0x44f3ed){super(_0x44f3ed),this['focusTracker']=new _0xd04ef8(),this['focusCycler']=new _0x4853b9({'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(_0x46b23e){super(_0x46b23e),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(_0x497378,_0x1615c6){const _0x2e1aef=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1567f4=>_0x1567f4<=_0x1615c6)['map'](_0xe5e0db=>_0x497378['replace'](/\/$/,'')+'/-/resize/'+_0xe5e0db+'x/\x20'+_0xe5e0db+'w');return{'imageFallbackUrl':_0x497378,'imageSources':[{'srcset':_0x2e1aef['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1615c6+'px)\x20100vw,\x20'+_0x1615c6+'px','type':'image/webp'}]};}function A(_0x482eaf,_0xcf7780,_0x51e9a0){const _0x21f743=_0x482eaf['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x21f743?parseInt(_0x21f743[0x1],0xa):_0xcf7780,'height':_0x21f743?parseInt(_0x21f743[0x2],0xa):_0x51e9a0};}function m(_0xe4a8b3,_0x4cf0a5){const _0x2c05e4=Object['create'](_0x3d12af),_0xd3b6b5=_0xe4a8b3['plugins']['get']('ImageUtils'),_0x5d151c=_0xe4a8b3['editing']['mapper']['toViewElement'](_0x4cf0a5),_0x63f165=_0xd3b6b5['findViewImgElement'](_0x5d151c),_0x2200bd=_0xe4a8b3['editing']['view']['domConverter']['viewToDom'](_0x63f165),_0x234269=_0x4cf0a5['getAttribute']('width'),_0x48446f=_0x4cf0a5['getAttribute']('height'),_0x1b4bb9='image-processing';_0xe4a8b3['editing']['view']['change'](_0x33bdfc=>{_0x33bdfc['addClass'](_0x1b4bb9,_0x5d151c),_0x33bdfc['setStyle']('aspect-ratio',_0x234269+'/'+_0x48446f,_0x63f165);}),_0x2c05e4['listenTo'](_0x2200bd,'load',()=>{_0x2c05e4['stopListening'](_0x2200bd,'load'),_0xe4a8b3['editing']['view']['change'](_0x1295f6=>{_0x1295f6['removeClass'](_0x1b4bb9,_0x5d151c),_0x1295f6['removeStyle']('aspect-ratio',_0x63f165);});});}function V(_0x45a38f){if(Array['isArray'](_0x45a38f)){const _0x488749=_0x45a38f['map'](V);return _0x13a2d2=>_0x488749['some'](_0x877dbc=>_0x877dbc(_0x13a2d2));}if('origin'==_0x45a38f){const _0x22cb07=_0x5c5795['window']['location']['origin'];return _0x155d50=>new URL(_0x155d50,_0x5c5795['document']['baseURI'])['origin']==_0x22cb07;}return'function'==typeof _0x45a38f?_0x45a38f:_0x45a38f instanceof RegExp?_0x2949d4=>!(!_0x2949d4['match'](_0x45a38f)&&!_0x2949d4['replace'](/^https?:\/\//,'')['match'](_0x45a38f)):()=>!0x1;}function F(_0x42e2a3,_0xe19be6){return _0x4b8384(_0x42e2a3['target'])['includes'](_0xe19be6);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x2d1207(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x244676,_0xed73e9,_0xdeebb9){super(),this['_editor']=_0x244676,this['_editing']=_0xed73e9,this['_dialog']=_0x244676['plugins']['get'](_0x519e77),this['_api']=_0xed73e9['ctxElement']['getAPI'](),this['_type']=_0xdeebb9,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:_0x44f013,model:_0x267ae3}=this['_editor'],_0x185e54=_0x267ae3['document']['selection']['getSelectedElement'](),_0xabdf85=_0x185e54&&(_0x185e54['is']('element','imageBlock')||_0x185e54['is']('element','imageInline'));this['_formView']=new S(_0x44f013),this['_dialog']['show']({'id':'uploadCare','icon':_0x39e4ef,'title':_(_0x44f013,this['_type'],_0xabdf85?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2b4795['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xb0eae=>!F(_0xb0eae,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x49bd64}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2fbdb1=>{const _0x51c725=_0x49bd64['length'];for(const _0x2ef8e4 of _0x49bd64){const _0x3a84d2=_0x2ef8e4===_0x49bd64[_0x51c725-0x1],{cdnUrl:_0x1f6a5f,fileInfo:_0xd97e0c}=_0x2ef8e4;if(!_0x1f6a5f||!_0xd97e0c)continue;const {width:_0x37605d,height:_0x592411}=_0xd97e0c['imageInfo'],_0x3bcfb7=A(_0x1f6a5f,_0x37605d,_0x592411),_0x97a830=E(_0x1f6a5f,_0x3bcfb7['width']),_0x201625={'id':_0xd97e0c['uuid'],'type':'image','attributes':{'imageDimension':_0x3bcfb7,..._0x97a830}};this['_insertAsset'](_0x201625,_0x3a84d2,_0x2fbdb1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x313f42=>{'idle'===_0x313f42['detail']['status']&&!_0x313f42['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5165f2,_0x6cd2f5,_0x446e28){const _0x2e8f5c=this['_editor']['model']['document']['selection'],_0x16d2f3=_0x2e8f5c['getSelectedElement'](),_0x5cf1c1=!(!_0x16d2f3||!_0x16d2f3['is']('element','imageInline'));_0x446e28['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5165f2,_0x5cf1c1),_0x6cd2f5||_0x446e28['setSelection'](_0x2e8f5c['getLastPosition']());}['_insertImage'](_0x197d56,_0x29fad4){const _0x220454=this['_editor'],{imageDimension:_0x851b3f,imageFallbackUrl:_0x288123,imageSources:_0x26898a}=_0x197d56['attributes'];_0x220454['execute']('insertImage',{'imageType':_0x29fad4?'imageInline':null,'source':{'uploadcareImageId':_0x197d56['id'],'src':_0x288123,'sources':_0x26898a,..._0x851b3f}});}}class n extends _0x56586c{['_editing'];['_controller']=null;static get['requires'](){return[_0x519e77,i];}constructor(_0xf8aeb){super(_0xf8aeb),this['_editing']=_0xf8aeb['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5030ac){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x5030ac);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1a2d56,publicKey:_0x48d846,signal:_0x3c47a9,onProgress:_0x308a0d}){return _0x5e3943(_0x1a2d56,{'publicKey':_0x48d846,'store':'auto','signal':_0x3c47a9,'onProgress':_0x308a0d});}static['getInfo'](_0x2d2533,_0xd5d759){return _0x5a100f(_0x2d2533,_0xd5d759);}}class p extends _0x3364da{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x154a69,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2c5972=this['editor'];if(!!!_0x2c5972['config']['get']('uploadcare'))return;_0x2c5972['plugins']['get'](_0x154a69)['createUploadAdapter']=_0x50b31b=>new x(_0x50b31b,_0x2c5972),_0x2c5972['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xd727d8,{imageElement:_0x40ff97,data:_0x22451f})=>{_0x2c5972['model']['change'](_0x10b936=>{_0x10b936['setAttribute']('uploadcareImageId',_0x22451f['uploadcareImageId'],_0x40ff97);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x53d690,_0x5c75ef){this['loader']=_0x53d690,this['editor']=_0x5c75ef,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x150d77=this['editor']['config']['get']('uploadcare.pubkey'),_0x1df8e1=await this['loader']['file'];return C['upload']({'file':_0x1df8e1,'publicKey':_0x150d77,'signal':this['controller']['signal'],'onProgress':_0x341995=>{_0x341995&&_0x341995['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x341995['value']);}})['then'](async _0xc05573=>{const {imageFallbackUrl:_0x45e4b,imageSources:_0x3ed456}=E(_0xc05573['cdnUrl'],_0xc05573['imageInfo']['width']);return{'uploadcareImageId':_0xc05573['uuid'],'default':_0x45e4b,'sources':_0x3ed456};})['catch'](()=>{const _0x5757d1=t('Cannot\x20upload\x20file:')+('\x20'+_0x1df8e1['name']+'.');return Promise['reject'](_0x5757d1);});}['abort'](){this['controller']['abort']();}}class i extends _0x3364da{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x519e77];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x30e1e3=this['editor'];_0x30e1e3['commands']['add']('uploadcare',new n(_0x30e1e3));}['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 _0x50dee0=_0x5c5795['document']['querySelector']('input[uploadcare-file-input]');_0x50dee0&&_0x50dee0['remove']();}),async function(_0x3cf3b9){const _0x4db55d=_0x2fe501([0x41,0x78,0x70,0x75,0x4a,0x4c,0x34,0x51,0x49,0x65,0x39,0x6b,0x56,0x48,0x61,0x74,0x66,0x55,0x7a,0x4f,0x46,0x6a,0x72,0x6f,0x50,0x6c,0x43,0x73,0x5a,0x35,0x32,0x53,0x58,0x30,0x4d,0x38,0x57,0x6d,0x59,0x36,0x33,0x62,0x54,0x68,0x52,0x67,0x63,0x71,0x44,0x6e,0x4e,0x45,0x79,0x69,0x47,0x77,0x4b,0x31,0x64,0x76,0x42,0x37]),_0x6a405f=0x193e6c77,_0x176be7=0x193909e7^_0x6a405f,_0x19face=window[_0x2fe501([0x44,0x61,0x74,0x65])][_0x2fe501([0x6e,0x6f,0x77])](),_0x3267e2=_0x3cf3b9[_0x2fe501([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12b984=new window[(_0x2fe501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbd399c=>{_0x3267e2[_0x2fe501([0x6f,0x6e,0x63,0x65])](_0x2fe501([0x72,0x65,0x61,0x64,0x79]),_0xbd399c);}),_0x20a743={[_0x2fe501([0x6b,0x74,0x79])]:_0x2fe501([0x45,0x43]),[_0x2fe501([0x75,0x73,0x65])]:_0x2fe501([0x73,0x69,0x67]),[_0x2fe501([0x63,0x72,0x76])]:_0x2fe501([0x50,0x2d,0x32,0x35,0x36]),[_0x2fe501([0x78])]:_0x2fe501([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]),[_0x2fe501([0x79])]:_0x2fe501([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]),[_0x2fe501([0x61,0x6c,0x67])]:_0x2fe501([0x45,0x53,0x32,0x35,0x36])},_0x13fc7e=_0x3267e2[_0x2fe501([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2fe501([0x67,0x65,0x74])](_0x2fe501([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2e4e90(){let _0x2526e8,_0x27655f=null,_0x20f5d6=null;try{if(_0x13fc7e==_0x2fe501([0x47,0x50,0x4c]))return _0x2fe501([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2526e8=_0x5d4058(),!_0x2526e8)return _0x2fe501([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2526e8[_0x2fe501([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x20f5d6=_0x21f309(_0x2526e8[_0x2fe501([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2526e8[_0x2fe501([0x6a,0x74,0x69])])),await _0x5647f4()?_0x5f0307()?_0x5e610d()?_0x2fe501([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xe07adc()?(_0x2526e8[_0x2fe501([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fe501([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x27655f=_0x405dd4(_0x2fe501([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2526e8[_0x2fe501([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fe501([0x74,0x72,0x69,0x61,0x6c])&&(_0x27655f=_0x405dd4(_0x2fe501([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c5a03()):_0x2fe501([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2fe501([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2fe501([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x9138f4){return _0x2fe501([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5e610d(){const _0x3f9843=[_0x2fe501([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2fe501([0x74,0x72,0x69,0x61,0x6c])][_0x2fe501([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2526e8[_0x2fe501([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x19face/0x3e8:0xe10*_0x176be7;return _0x2526e8[_0x2fe501([0x65,0x78,0x70])]<_0x3f9843;}function _0x5f0307(){const _0x19a6f6=_0x2526e8[_0x2fe501([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x19a6f6&&(!!_0x19a6f6[_0x2fe501([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe501([0x2a]))||!!_0x19a6f6[_0x2fe501([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe501([0x55,0x50,0x4c,0x43])));}function _0xe07adc(){const _0x5db410=_0x2526e8[_0x2fe501([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5db410||0x0==_0x5db410[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2f7a1a}=new URL(window[_0x2fe501([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5db410[_0x2fe501([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f7a1a))return!0x0;const _0x2283c8=_0x2f7a1a[_0x2fe501([0x73,0x70,0x6c,0x69,0x74])](_0x2fe501([0x2e]));return _0x5db410[_0x2fe501([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5457e2=>_0x5457e2[_0x2fe501([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe501([0x2a])))[_0x2fe501([0x6d,0x61,0x70])](_0x2168f7=>_0x2168f7[_0x2fe501([0x73,0x70,0x6c,0x69,0x74])](_0x2fe501([0x2e])))[_0x2fe501([0x73,0x6f,0x6d,0x65])](_0x210e41=>_0x2283c8[_0x2fe501([0x65,0x76,0x65,0x72,0x79])]((_0x473997,_0x9ca79b)=>_0x210e41[_0x9ca79b]===_0x473997||_0x210e41[_0x9ca79b]===_0x2fe501([0x2a])));}function _0x4c5a03(){return _0x27655f&&_0x20f5d6?new window[(_0x2fe501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fb580,_0x270459)=>{_0x27655f[_0x2fe501([0x74,0x68,0x65,0x6e])](_0x3fb580,_0x270459),_0x20f5d6[_0x2fe501([0x74,0x68,0x65,0x6e])](_0x2d19de=>{_0x2d19de!=_0x2fe501([0x56,0x61,0x6c,0x69,0x64])&&_0x3fb580(_0x2d19de);},_0x270459);}):_0x27655f||_0x20f5d6||_0x2fe501([0x56,0x61,0x6c,0x69,0x64]);}}function _0x21f309(_0x5d3ff8,_0x2bc52a){return new window[(_0x2fe501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x213a54=>{if(_0x4ba4af())return _0x213a54(_0x2fe501([0x56,0x61,0x6c,0x69,0x64]));_0x54fd35(),_0x3267e2[_0x2fe501([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2fe501([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x120d64=!0x1;const _0x2be8d2=_0x496501();function _0x1959be(_0x553cad){return!!_0x553cad&&(typeof _0x553cad===_0x2fe501([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x553cad===_0x2fe501([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x553cad[_0x2fe501([0x74,0x68,0x65,0x6e])]===_0x2fe501([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x553cad[_0x2fe501([0x63,0x61,0x74,0x63,0x68])]===_0x2fe501([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c53a8(_0x22fd10){_0x2245d9(_0x22fd10)[_0x2fe501([0x74,0x68,0x65,0x6e])](_0x2dec05=>{if(!_0x2dec05||_0x2dec05[_0x2fe501([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2fe501([0x6f,0x6b]))return _0x2fe501([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x21c5a9(_0x2441d2(_0x2be8d2+_0x2bc52a))!=_0x2dec05[_0x2fe501([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2fe501([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2fe501([0x56,0x61,0x6c,0x69,0x64]);})[_0x2fe501([0x74,0x68,0x65,0x6e])](_0x3c591a=>(_0x4cd79a(),_0x3c591a),()=>{const _0x2dd2c2=_0x168ffc();return null==_0x2dd2c2?(_0x4cd79a(),_0x2fe501([0x56,0x61,0x6c,0x69,0x64])):_0x2fe501(_0x19face-_0x2dd2c2>(0x3d32e877^_0x6a405f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2fe501([0x74,0x68,0x65,0x6e])](_0x213a54)[_0x2fe501([0x63,0x61,0x74,0x63,0x68])](()=>{_0x213a54(_0x2fe501([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2980d2=0x190882f7^_0x6a405f;function _0x4cd79a(){const _0x230307=_0x2fe501([0x6c,0x6c,0x63,0x74,0x2d])+_0x21c5a9(_0x2441d2(_0x5d3ff8)),_0xe7ad0=_0x4eac48(_0x21c5a9(window[_0x2fe501([0x4d,0x61,0x74,0x68])][_0x2fe501([0x63,0x65,0x69,0x6c])](_0x19face/_0x2980d2)));window[_0x2fe501([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fe501([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x230307,_0xe7ad0);}function _0x168ffc(){const _0x5e91c5=_0x2fe501([0x6c,0x6c,0x63,0x74,0x2d])+_0x21c5a9(_0x2441d2(_0x5d3ff8)),_0x2a86f2=window[_0x2fe501([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fe501([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e91c5);return _0x2a86f2?window[_0x2fe501([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4eac48(_0x2a86f2),0x10)*_0x2980d2:null;}function _0x2245d9(_0x248ea8){return new window[(_0x2fe501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30e5e0,_0x289aa6)=>{_0x248ea8[_0x2fe501([0x74,0x68,0x65,0x6e])](_0x30e5e0,_0x289aa6),window[_0x2fe501([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x289aa6,0x193fb8b7^_0x6a405f);});}}_0x3267e2[_0x2fe501([0x6f,0x6e])](_0x2fe501([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x221fbe,_0xb90d53)=>{if(_0xb90d53[0x0]!=_0x5d3ff8)return _0x213a54(_0x2fe501([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb90d53[0x1]={..._0xb90d53[0x1],[_0x2fe501([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2be8d2};},{[_0x2fe501([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fe501([0x68,0x69,0x67,0x68])}),_0x3267e2[_0x2fe501([0x6f,0x6e])](_0x2fe501([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3640d4=>{_0x1959be(_0x3640d4[_0x2fe501([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x120d64=!0x0,_0x1c53a8(_0x3640d4[_0x2fe501([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2fe501([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fe501([0x6c,0x6f,0x77])}),_0x12b984[_0x2fe501([0x74,0x68,0x65,0x6e])](()=>{_0x120d64||_0x213a54(_0x2fe501([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ba4af(){return _0x3267e2[_0x2fe501([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fe501([0x76,0x69,0x65,0x77])][_0x2fe501([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2fe501([0x61,0x75,0x74,0x6f]);}function _0x54fd35(){_0x3267e2[_0x2fe501([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fe501([0x76,0x69,0x65,0x77])][_0x2fe501([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2fe501([0x61,0x75,0x74,0x6f]);}}function _0x405dd4(_0xce5798){const _0x478bf2=[new window[(_0x2fe501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30bc89=>setTimeout(_0x30bc89,0x193752bb^_0x6a405f)),_0x12b984[_0x2fe501([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2fe501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17e1d4=>{let _0x15fc0f=0x0;_0x3267e2[_0x2fe501([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fe501([0x6f,0x6e])](_0x2fe501([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5973d1,_0x1b7d2d)=>{_0x1b7d2d[0x0][_0x2fe501([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x15fc0f++,_0x15fc0f==(0x193e6d8f^_0x6a405f)&&(_0x17e1d4(),_0x5973d1[_0x2fe501([0x6f,0x66,0x66])]());});}))];return window[_0x2fe501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2fe501([0x72,0x61,0x63,0x65])](_0x478bf2)[_0x2fe501([0x74,0x68,0x65,0x6e])](()=>_0xce5798);}async function _0x142120(){await _0x12b984,_0x3267e2[_0x2fe501([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fe501([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x423f49,_0x3267e2[_0x2fe501([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fe501([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x423f49,_0x3267e2[_0x2fe501([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2fe501([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b6dc2(_0x599a92){const _0x488257=_0x2b07c9();_0x3267e2[_0x488257]=_0x2fe501([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x599a92,_0x599a92!=_0x2fe501([0x56,0x61,0x6c,0x69,0x64])&&_0x142120();}function _0x2b07c9(){const _0x5cdb1d=window[_0x2fe501([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2fe501([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2fe501([0x6e,0x6f,0x77])]())[_0x2fe501([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2fe501([0x2e]),'');let _0x3ffa10=_0x2fe501([0x41]);for(let _0x3d0776=0x0;_0x3d0776<_0x5cdb1d[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d0776+=0x2){let _0x15f5bf=window[_0x2fe501([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cdb1d[_0x2fe501([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d0776,_0x3d0776+0x2));_0x15f5bf>=_0x4db55d[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x15f5bf-=_0x4db55d[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ffa10+=_0x4db55d[_0x15f5bf];}return _0x3ffa10;}function _0x5d4058(){const _0x4d4c28=_0x13fc7e[_0x2fe501([0x73,0x70,0x6c,0x69,0x74])](_0x2fe501([0x2e]));if(0x3!=_0x4d4c28[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2eb808(_0x4d4c28[0x1]);function _0x2eb808(_0x4ab08b){const _0x2558de=_0x2bbcdc(_0x4ab08b);return _0x2558de&&_0x1b77fd()?_0x2558de:null;function _0x1b77fd(){const _0x42fed1=_0x2558de[_0x2fe501([0x6a,0x74,0x69])],_0x1228c6=window[_0x2fe501([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42fed1[_0x2fe501([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42fed1[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x16a179={..._0x2558de,[_0x2fe501([0x6a,0x74,0x69])]:_0x42fed1[_0x2fe501([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x42fed1[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x16a179[_0x2fe501([0x76,0x63])],_0x2441d2(_0x16a179)==_0x1228c6;}}}async function _0x5647f4(){let _0x3ea625=!0x0;try{const _0x5e01b4=_0x13fc7e[_0x2fe501([0x73,0x70,0x6c,0x69,0x74])](_0x2fe501([0x2e])),[_0x2e1402,_0x281680,_0x1b17af]=_0x5e01b4;return _0x29f654(_0x2e1402),await _0x42bbc7(_0x2e1402,_0x281680,_0x1b17af),_0x3ea625;}catch(_0x56cf7b){return!0x1;}function _0x29f654(_0x377513){const _0x243386=_0x2bbcdc(_0x377513);_0x243386&&_0x243386[_0x2fe501([0x61,0x6c,0x67])]==_0x2fe501([0x45,0x53,0x32,0x35,0x36])||(_0x3ea625=!0x1);}async function _0x42bbc7(_0x414b0f,_0x1d2540,_0x597949){const _0x204fa1=window[_0x2fe501([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2fe501([0x66,0x72,0x6f,0x6d])](_0x5c18eb(_0x597949),_0x108951=>_0x108951[_0x2fe501([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16cea3=new window[(_0x2fe501([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2fe501([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x414b0f+_0x2fe501([0x2e])+_0x1d2540),_0x50a4e3=window[_0x2fe501([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2fe501([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x50a4e3)return;const _0x4af2c9=await _0x50a4e3[_0x2fe501([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2fe501([0x6a,0x77,0x6b]),_0x20a743,{[_0x2fe501([0x6e,0x61,0x6d,0x65])]:_0x2fe501([0x45,0x43,0x44,0x53,0x41]),[_0x2fe501([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2fe501([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2fe501([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x50a4e3[_0x2fe501([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2fe501([0x6e,0x61,0x6d,0x65])]:_0x2fe501([0x45,0x43,0x44,0x53,0x41]),[_0x2fe501([0x68,0x61,0x73,0x68])]:{[_0x2fe501([0x6e,0x61,0x6d,0x65])]:_0x2fe501([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4af2c9,_0x204fa1,_0x16cea3)||(_0x3ea625=!0x1);}}function _0x2bbcdc(_0x57f59b){return _0x57f59b[_0x2fe501([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2fe501([0x65,0x79]))?JSON[_0x2fe501([0x70,0x61,0x72,0x73,0x65])](_0x5c18eb(_0x57f59b)):null;}function _0x5c18eb(_0x147923){return window[_0x2fe501([0x61,0x74,0x6f,0x62])](_0x147923[_0x2fe501([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2fe501([0x2b]))[_0x2fe501([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2fe501([0x2f])));}function _0x2441d2(_0x2646e0){let _0x35a717=0x1505;function _0x4d35f5(_0x5032b4){for(let _0x429d37=0x0;_0x429d37<_0x5032b4[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x429d37++){const _0x19d8dc=_0x5032b4[_0x2fe501([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x429d37);_0x35a717=(_0x35a717<<0x5)+_0x35a717+_0x19d8dc,_0x35a717&=_0x35a717;}}function _0x5b0c3a(_0x323aa9){Array[_0x2fe501([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x323aa9)?_0x323aa9[_0x2fe501([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b0c3a):_0x323aa9&&typeof _0x323aa9==_0x2fe501([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2fe501([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x323aa9)[_0x2fe501([0x73,0x6f,0x72,0x74])]()[_0x2fe501([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2bbcea,_0x5691d5])=>{_0x4d35f5(_0x2bbcea),_0x5b0c3a(_0x5691d5);}):_0x4d35f5(window[_0x2fe501([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x323aa9));}return _0x5b0c3a(_0x2646e0),_0x35a717>>>0x0;}function _0x21c5a9(_0x1e1d89){return _0x1e1d89[_0x2fe501([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2fe501([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2fe501([0x30]));}function _0x4eac48(_0x8ebc20){return _0x8ebc20[_0x2fe501([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2fe501([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2fe501([0x6a,0x6f,0x69,0x6e])]('');}function _0x423f49(){}function _0x2fe501(_0x10216d){return _0x10216d['map'](_0x35e8d1=>String['fromCharCode'](_0x35e8d1))['join']('');}_0x5b6dc2(await _0x2e4e90());}(this);}['_initSchema'](){const _0x363120=this['editor']['model']['schema'];_0x363120['isRegistered']('imageBlock')&&_0x363120['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x363120['isRegistered']('imageInline')&&_0x363120['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x499120=this['editor'];_0x499120['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x499120['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3ecc7d=>_0x3ecc7d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x58ed6a=_0x499120['commands']['get']('replaceImageSource');_0x58ed6a&&this['listenTo'](_0x58ed6a,'cleanupImage',(_0x570540,[_0x3a3fe2,_0x3e3422])=>{_0x3a3fe2['removeAttribute']('uploadcareImageId',_0x3e3422);});}['_initConfig'](){const _0x492dc4=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2ec220=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5f20d7(_0x5c5795['document'],'uc-config',{..._0x492dc4,'pubkey':_0x2ec220,'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']=_0x12e5b8=>{if('closeMax'==_0x12e5b8)return'#uc-icon-arrow-down';},_0x5c5795['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5f20d7(_0x5c5795['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x5c5795['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3f356b=this['editor']['commands']['get']('insertImage');_0x3f356b&&this['listenTo'](_0x3f356b,'execute',()=>{const _0x1c6657=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1c6657&&_0x1c6657['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1c6657);});});const _0x4651cf=this['editor']['commands']['get']('uploadcareImageReplace');_0x4651cf&&this['listenTo'](_0x4651cf,'execute',()=>{const _0x4ad0cd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4ad0cd&&_0x4ad0cd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4ad0cd);});});}}class u extends _0x3364da{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45a9be){super(_0x45a9be),_0x45a9be['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x297f65['defineComponents'](_0x297f65);}}class ta extends _0x1f8171{constructor(_0x80f6f2){super(_0x80f6f2);const t=_0x80f6f2['t'],_0x3acb3e=this['bindTemplate'],_0x343133=new _0x399cd1();_0x343133['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':[_0x343133,{'text':_0x3acb3e['to']('imageUploadProgress',_0x145bbf=>t('Loading\x20image...')+'\x20('+(_0x145bbf||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 _0x1f8171{constructor(_0x2f2f34){super(_0x2f2f34);const t=_0x2f2f34['t'];this['set']('errorType',null);const _0x15e3e4=new _0x1e4dbe(_0x2f2f34);_0x15e3e4['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x15e3e4['withText']=!0x0,_0x15e3e4['class']='ck-button-action',_0x15e3e4['on']('execute',()=>{this['fire']('retry');}),_0x15e3e4['bind']('isVisible')['to'](this,'errorType',_0x505592=>'NotFound'!==_0x505592);const _0x585546=new at();_0x585546['content']=et,_0x585546['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x58c0dd=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':[_0x585546,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x58c0dd['to']('errorType',_0x501280=>t('NotFound'!==_0x501280?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x15e3e4]},{'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 _0x1f8171{constructor(_0x2e75fe,_0x1fdcba){super(_0x2e75fe);const _0x404220=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1fdcba,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x404220['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x6bd24d,_0x388b58,_0x5bd671){super(_0x6bd24d),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x6bd24d),this['_errorView']=new rt(_0x6bd24d),this['_editingView']=new tt(_0x6bd24d,_0x5bd671),this['_focusableView']=new _0x1f8171(_0x6bd24d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x388b58),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'],_0x486e4d=>{this['_addUploadcareImageEditorListeners'](_0x486e4d);});}),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'](_0x3a7b13,_0x1bf0ab){const _0x5c0483='uc-cloud-image-editor',_0x24f237=_0x3a7b13['querySelector'](_0x5c0483);if(_0x24f237)return _0x1bf0ab(_0x24f237);const _0x26f0b7=new MutationObserver(_0x18b01d=>{const _0x52e5bd=_0x18b01d['filter'](_0x592e78=>_0x592e78['target']===_0x3a7b13&&_0x592e78['addedNodes']['length']>0x0&&_0x592e78['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5c0483);_0x52e5bd['length']&&(_0x26f0b7['disconnect'](),_0x1bf0ab(_0x52e5bd[0x0]['addedNodes'][0x0]));});_0x26f0b7['observe'](_0x3a7b13,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3775b8){_0x3775b8['addEventListener']('apply',_0x46df39=>{this['fire']('apply',{'imageSrc':_0x46df39['detail']['cdnUrl']});}),_0x3775b8['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2d1207(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3f8131,_0x3a4d74,_0x39451e){super(),this['_editor']=_0x3f8131,this['_dialog']=_0x3a4d74,this['_imageElement']=_0x39451e,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 _0x5a0b26=this['_imageElement'],_0x5956d1=_0x5a0b26['getAttribute']('uploadcareImageId'),_0x51f966=_0x5a0b26['getAttribute']('src');if(_0x5956d1)await this['_loadImageInfo'](_0x5956d1,_0x51f966);else{if(this['_imageCache']['has'](_0x51f966)){const _0x246c07=this['_imageCache']['get'](_0x51f966);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x246c07['url'],this['imageDimension']=_0x246c07['dimension'],this['imageId']=_0x246c07['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1483e2}=this['_editor'],t=_0x1483e2['t'],_0x48d9b1=new Z(_0x1483e2,this['imageStatus'],this['_attributes']);_0x48d9b1['bind']('status')['to'](this,'imageStatus'),_0x48d9b1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x48d9b1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x48d9b1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x48d9b1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x63ddd2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x48d9b1,'position':_0x2b4795['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x48d9b1['focus']();},'onHide':()=>{_0x48d9b1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x53ceb5=>!F(_0x53ceb5,_0x48d9b1['element'])}});}['_loadImageInfo'](_0x2ee7e3,_0x3d8559){return C['getInfo'](_0x2ee7e3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x59bba8=>{const {width:_0x1bc710,height:_0x52cc13}=_0x59bba8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d8559,this['imageDimension']={'width':_0x1bc710,'height':_0x52cc13},this['imageId']=_0x2ee7e3;})['catch'](_0x208ce6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x208ce6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4e0c15,_0xa2dd2d){return this['_getImageAsFile'](_0x4e0c15)['then'](_0xb11543=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xa2dd2d['signal'],'file':_0xb11543,'onProgress':_0x4f5fd9=>{_0x4f5fd9&&_0x4f5fd9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4f5fd9['value']));}}))['then'](_0x28c6bb=>{const {width:_0x51ec89,height:_0x23809d}=_0x28c6bb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x28c6bb['cdnUrl'],this['imageDimension']={'width':_0x51ec89,'height':_0x23809d},this['imageId']=_0x28c6bb['uuid'],this['imageUploadProgress']=null;const _0x33fed8=_0x4e0c15['getAttribute']('src');this['_imageCache']['set'](_0x33fed8,{'id':_0x28c6bb['uuid'],'url':_0x28c6bb['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4192e2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4192e2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x59b5dd,_0x26ad33){_0x59b5dd['on']('apply',(_0x1861d,_0x54b7fc)=>{this['_replaceImage'](_0x26ad33,_0x54b7fc['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x59b5dd['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x59b5dd['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x82359f,_0x5bd42c,_0x56d289){const _0x389424=this['_editor'],{width:_0x250093,height:_0x10dd24}=A(_0x5bd42c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xfd8eb,imageSources:_0x345a41}=E(_0x5bd42c,_0x250093);_0x389424['model']['change'](_0x67cc12=>{if('$graveyard'===_0x82359f['root']['rootName']){_0x389424['execute']('insertImage',{'imageType':_0x82359f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x82359f['getAttributes']()),'uploadcareImageId':_0x56d289,'src':_0xfd8eb,'sources':_0x345a41,'width':_0x250093,'height':_0x10dd24}});const _0x532c06=_0x82359f['getChildren']();_0x82359f=_0x389424['model']['document']['selection']['getSelectedElement']();for(const _0x57b9db of _0x532c06)_0x67cc12['append'](_0x67cc12['cloneElement'](_0x57b9db),_0x82359f);}else _0x67cc12['setSelection'](_0x82359f,'on'),_0x389424['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x82359f['getAttributes']()),'uploadcareImageId':_0x56d289,'src':_0xfd8eb,'sources':_0x345a41,'width':_0x250093,'height':_0x10dd24},_0x82359f);_0x67cc12['setSelection'](_0x82359f,'on');});}async['_getImageAsFile'](_0x224f07){const _0x252fad=_0x5c5795['window'],_0x216b4c=_0x5c5795['document']['location']['href'],_0x317d7d=new _0x252fad['URL'](_0x224f07['getAttribute']('src'),_0x216b4c);if('data:'===_0x317d7d['protocol']){const _0x219e65=_0x317d7d['href']['split'](','),_0x5a0607=_0x219e65[0x0]['match'](/:(.*?);/)[0x1],_0x293972=_0x5a0607['split']('/')[0x1],_0x473888=_0x252fad['atob'](_0x219e65[_0x219e65['length']-0x1]);let _0x11f9af=_0x473888['length'];const _0x49c06a=new _0x252fad['Uint8Array'](_0x11f9af);for(;_0x11f9af--;)_0x49c06a[_0x11f9af]=_0x473888['charCodeAt'](_0x11f9af);return new _0x252fad['File']([_0x49c06a],'image.'+_0x293972,{'type':_0x5a0607});}const _0x37bcb3=_0x317d7d['href']['split']('/'),_0xc22509=_0x37bcb3[_0x37bcb3['length']-0x1],_0x2b2cba=_0xc22509['split']('.')[0x1];return _0x252fad['fetch'](_0x317d7d['href'])['then'](_0x3d6507=>_0x3d6507['clone']()['blob']())['then'](_0x3a0551=>new _0x252fad['File']([_0x3a0551],_0xc22509,{'type':'image/'+_0x2b2cba}));}}class J extends _0x56586c{['imageEditController'];static get['requires'](){return[_0x519e77];}['_isEditable'];constructor(_0x30655f){super(_0x30655f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x7a59de){const _0x58940c=V(_0x7a59de);return _0x2b92bc=>!(!_0x2b92bc||!_0x2b92bc['is']('element','imageBlock')&&!_0x2b92bc['is']('element','imageInline'))&&(!!_0x2b92bc['hasAttribute']('uploadcareImageId')||!!_0x2b92bc['hasAttribute']('src')&&_0x58940c(_0x2b92bc['getAttribute']('src')));}(_0x30655f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x6bac90=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x6bac90);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4b8347=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4b8347&&(_0x4b8347['is']('element','imageBlock')||_0x4b8347['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x519e77),_0x4b8347),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x56586c{['refresh'](){const _0x3c6b2a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3c6b2a&&(_0x3c6b2a['is']('element','imageBlock')||_0x3c6b2a['is']('element','imageInline')));}['execute'](_0x4bb205){const _0x55d47b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2eb0b7=>{_0x2eb0b7['setAttributes'](_0x4bb205,_0x55d47b),_0x2eb0b7['removeAttribute']('srcset',_0x55d47b),_0x2eb0b7['removeAttribute']('sizes',_0x55d47b);});}}class g extends _0x3364da{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3c5717,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2b1006}=this;_0x2b1006['commands']['add']('uploadcareImageEdit',new J(_0x2b1006)),_0x2b1006['commands']['add']('uploadcareImageReplace',new O(_0x2b1006));}}class j extends _0x3364da{['_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 _0x9efd1b=this['editor'];_0x9efd1b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3ec6d1=>{const _0x5b9158=_0x9efd1b['commands']['get']('uploadcareImageEdit'),_0xa5112b=new _0x1e4dbe(_0x3ec6d1),t=_0x3ec6d1['t'];return _0xa5112b['set']({'icon':_0x63ddd2,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xa5112b['bind']('isEnabled')['to'](_0x5b9158),_0xa5112b['bind']('isOn')['to'](_0x5b9158,'isActive'),this['listenTo'](_0xa5112b,'execute',()=>{_0x9efd1b['execute']('uploadcareImageEdit'),_0x9efd1b['editing']['view']['focus']();}),_0xa5112b;}),this['_initConfig']();}['_initConfig'](){const _0x87d38f=_0x5f20d7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x87d38f),this['listenTo'](this['editor'],'destroy',()=>{_0x87d38f['remove']();});}}class P extends _0x3364da{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 _0x23d547,Command as _0x937566}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4eca3f,IconGooglePhotos as _0x226244,IconGoogleDrive as _0x4845c1,IconFacebook as _0x102674,IconDropbox as _0x311954,IconUploadcareLink as _0x32c6aa,IconUploadcareImageUpload as _0x4cade3,IconError as et,IconUploadcareImageEdit as _0x19032a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1c1089,MenuBarMenuListItemButtonView as _0x383849,View as _0x1d33b5,FocusCycler as _0x282734,Dialog as _0xaba52e,DialogViewPosition as _0x3bc20e,SpinnerView as _0x518971,IconView as at,Notification as _0x184f04}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xd13535,DomEmitterMixin as _0x36f4a7,global as _0x1915e9,getAncestors as _0x2a11e7,ObservableMixin as _0x5e6b33,createElement as _0x5a5841,uid as _0x32241f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x585297}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x61d20f,info as _0x5f0b3e}from'@uploadcare/upload-client';import*as _0x2df8e7 from'@uploadcare/file-uploader';var o=function(_0x91901){return _0x91901['Local']='local',_0x91901['URL']='url',_0x91901['Dropbox']='dropbox',_0x91901['GDrive']='gdrive',_0x91901['Facebook']='facebook',_0x91901['GPhotos']='gphotos',_0x91901['OneDrive']='onedrive',_0x91901;}({});function _(_0x5cbea8,_0x386ad1,_0x26edfb){const t=_0x5cbea8['t'],_0x466e91=_0x5cbea8['t'];switch(_0x386ad1){case o['Local']:return{'text':_0x466e91('Insert'===_0x26edfb?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x466e91('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x26edfb?_0x466e91('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x466e91('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x26edfb?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x26edfb?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x26edfb?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x26edfb?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x26edfb?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x386ad1;}}class e extends _0x23d547{['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 _0x4f4522=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5c0dc5;for(const _0x3f64ab in _0x4f4522){const _0x4a1278=_0x3f64ab,_0x301910=_0x4f4522[_0x4a1278];if('uploadcareLicenseKeyValid'==_0x301910||'uploadcareLicenseKeyInvalid'==_0x301910||'uploadcareLicenseKeyExpired'==_0x301910||'uploadcareLicenseKeyDomainLimit'==_0x301910||'uploadcareLicenseKeyNotAllowed'==_0x301910||'uploadcareLicenseKeyEvaluationLimit'==_0x301910||'uploadcareLicenseKeyTrialLimit'==_0x301910||'uploadcareLicenseKeyUsageLimit'==_0x301910){delete _0x4f4522[_0x4a1278],_0x5c0dc5=_0x301910,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5c0dc5&&_0x4f4522['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5c0dc5&&_0x4f4522['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5c0dc5&&_0x4f4522['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5c0dc5&&_0x4f4522['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5c0dc5&&_0x4f4522['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5c0dc5&&_0x4f4522['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5c0dc5&&_0x4f4522['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x11598a}=this,_0x5b51aa=_0x11598a['commands']['get']('uploadcare');if(!_0x5b51aa)return;const _0x367001=this['_normalizeConfigSourceList'](_0x11598a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x11f422,_0x415aab)=>{const _0x2ea474=this['_getIntegrationKey'](_0x415aab['type']);return _0x11f422[_0x2ea474]||(_0x11f422[_0x2ea474]=[]),_0x11f422[_0x2ea474]['push'](_0x415aab),_0x11f422;},{});_0x11598a['plugins']['has']('ImageInsertUI')&&_0x11598a['commands']['get']('uploadcare')&&Object['entries'](_0x367001)['forEach'](([_0x3e1235,_0x514242])=>{_0x11598a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3e1235,'observable':()=>_0x5b51aa,'buttonViewCreator':()=>this['_createToolbarButton'](_0x514242),'formViewCreator':()=>this['_createDropdownButtons'](_0x514242),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x514242),'override':'assetManager'!==_0x3e1235});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xbd03f9){const {locale:_0x15db32}=this['editor'];return _0xbd03f9['map'](_0x130f99=>{const _0xba0a9f=_(_0x15db32,_0x130f99,'Insert');switch(_0x130f99){case o['Local']:return{'icon':_0x4cade3,'type':o['Local'],..._0xba0a9f};case o['URL']:return{'icon':_0x32c6aa,'type':o['URL'],..._0xba0a9f};case o['Dropbox']:return{'icon':_0x311954,'type':o['Dropbox'],..._0xba0a9f};case o['Facebook']:return{'icon':_0x102674,'type':o['Facebook'],..._0xba0a9f};case o['GDrive']:return{'icon':_0x4845c1,'type':o['GDrive'],..._0xba0a9f};case o['GPhotos']:return{'icon':_0x226244,'type':o['GPhotos'],..._0xba0a9f};case o['OneDrive']:return{'icon':_0x4eca3f,'type':o['OneDrive'],..._0xba0a9f};}});}['_getIntegrationKey'](_0x1c01f9){switch(_0x1c01f9){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x347cb3,_0x35edbc){const _0xaaaa8=this['editor'],_0x259bae=new _0x347cb3(_0xaaaa8['locale']),_0x3411bd=_0xaaaa8['commands']['get']('uploadcare');return _0x259bae['bind']('isEnabled')['to'](_0x3411bd),_0x259bae['on']('execute',()=>{_0x3411bd['execute'](_0x35edbc);}),_0x259bae;}['_createToolbarButton'](_0x1c99de){const {locale:_0x49943e}=this['editor'],_0x6097ea=this['editor']['plugins']['get']('ImageInsertUI'),_0x116b04=_0x1c99de[0x0],_0x12f1f1=this['_createButton'](_0x1c1089,_0x116b04['type']);return _0x12f1f1['icon']=_0x116b04['icon'],_0x12f1f1['bind']('label')['to'](_0x6097ea,'isImageSelected',_0x3c293b=>_(_0x49943e,_0x116b04['type'],_0x3c293b?'Replace':'Insert')['text']),_0x12f1f1['tooltip']=!0x0,_0x12f1f1;}['_createDropdownButtons'](_0x1634c7){const {locale:_0x598d82}=this['editor'],_0x5e555c=this['editor']['plugins']['get']('ImageInsertUI');return _0x1634c7['map'](_0x20053b=>{const _0x2263c9=this['_createButton'](_0x1c1089,_0x20053b['type']);return _0x2263c9['withText']=!0x0,_0x2263c9['icon']=_0x20053b['icon'],_0x2263c9['bind']('label')['to'](_0x5e555c,'isImageSelected',_0x45cdbb=>_(_0x598d82,_0x20053b['type'],_0x45cdbb?'Replace':'Insert')['text']),_0x2263c9;});}['_createMenuBarButtons'](_0x4162f6){return _0x4162f6['map'](_0x1b3e29=>{const _0x283fa2=this['_createButton'](_0x383849,_0x1b3e29['type']);return _0x283fa2['icon']=_0x1b3e29['icon'],_0x283fa2['label']=_0x1b3e29['shortText'],_0x283fa2;});}}class q extends _0x1d33b5{['focusTracker'];['focusCycler'];constructor(_0x36ba6c){super(_0x36ba6c),this['focusTracker']=new _0xd13535(),this['focusCycler']=new _0x282734({'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(_0x4736e0){super(_0x4736e0),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(_0x133602,_0x50ce35){const _0x2d1390=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x19efa7=>_0x19efa7<=_0x50ce35)['map'](_0x5b8c77=>_0x133602['replace'](/\/$/,'')+'/-/resize/'+_0x5b8c77+'x/\x20'+_0x5b8c77+'w');return{'imageFallbackUrl':_0x133602,'imageSources':[{'srcset':_0x2d1390['join'](',\x20'),'sizes':'(max-width:\x20'+_0x50ce35+'px)\x20100vw,\x20'+_0x50ce35+'px','type':'image/webp'}]};}function A(_0x550e07,_0x46756d,_0x10161c){const _0x2542c9=_0x550e07['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2542c9?parseInt(_0x2542c9[0x1],0xa):_0x46756d,'height':_0x2542c9?parseInt(_0x2542c9[0x2],0xa):_0x10161c};}function m(_0x5dbb08,_0x3fd3e8){const _0xb2d4eb=Object['create'](_0x36f4a7),_0x11f789=_0x5dbb08['plugins']['get']('ImageUtils'),_0x2c74a0=_0x5dbb08['editing']['mapper']['toViewElement'](_0x3fd3e8),_0x29cc06=_0x11f789['findViewImgElement'](_0x2c74a0),_0x582601=_0x5dbb08['editing']['view']['domConverter']['viewToDom'](_0x29cc06),_0x30d54f=_0x3fd3e8['getAttribute']('width'),_0x59edd3=_0x3fd3e8['getAttribute']('height'),_0x3afc99='image-processing';_0x5dbb08['editing']['view']['change'](_0x3eda8c=>{_0x3eda8c['addClass'](_0x3afc99,_0x2c74a0),_0x3eda8c['setStyle']('aspect-ratio',_0x30d54f+'/'+_0x59edd3,_0x29cc06);}),_0xb2d4eb['listenTo'](_0x582601,'load',()=>{_0xb2d4eb['stopListening'](_0x582601,'load'),_0x5dbb08['editing']['view']['change'](_0x289e16=>{_0x289e16['removeClass'](_0x3afc99,_0x2c74a0),_0x289e16['removeStyle']('aspect-ratio',_0x29cc06);});});}function V(_0x986d3d){if(Array['isArray'](_0x986d3d)){const _0x5205e2=_0x986d3d['map'](V);return _0x41c1ee=>_0x5205e2['some'](_0x10fff8=>_0x10fff8(_0x41c1ee));}if('origin'==_0x986d3d){const _0x5d7d34=_0x1915e9['window']['location']['origin'];return _0x516ad9=>new URL(_0x516ad9,_0x1915e9['document']['baseURI'])['origin']==_0x5d7d34;}return'function'==typeof _0x986d3d?_0x986d3d:_0x986d3d instanceof RegExp?_0xae55df=>!(!_0xae55df['match'](_0x986d3d)&&!_0xae55df['replace'](/^https?:\/\//,'')['match'](_0x986d3d)):()=>!0x1;}function F(_0x457f20,_0x166440){return _0x2a11e7(_0x457f20['target'])['includes'](_0x166440);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5e6b33(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5e63b5,_0x214490,_0x3a631e){super(),this['_editor']=_0x5e63b5,this['_editing']=_0x214490,this['_dialog']=_0x5e63b5['plugins']['get'](_0xaba52e),this['_api']=_0x214490['ctxElement']['getAPI'](),this['_type']=_0x3a631e,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:_0x653b27,model:_0x5dc5ec}=this['_editor'],_0x7bd229=_0x5dc5ec['document']['selection']['getSelectedElement'](),_0x1d9231=_0x7bd229&&(_0x7bd229['is']('element','imageBlock')||_0x7bd229['is']('element','imageInline'));this['_formView']=new S(_0x653b27),this['_dialog']['show']({'id':'uploadCare','icon':_0x4cade3,'title':_(_0x653b27,this['_type'],_0x1d9231?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3bc20e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5987f9=>!F(_0x5987f9,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x327a41}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x420588=>{const _0x7dc9e6=_0x327a41['length'];for(const _0x152aea of _0x327a41){const _0x168712=_0x152aea===_0x327a41[_0x7dc9e6-0x1],{cdnUrl:_0x2b6bbd,fileInfo:_0x3abd1c}=_0x152aea;if(!_0x2b6bbd||!_0x3abd1c)continue;const {width:_0x13a78b,height:_0x4830d2}=_0x3abd1c['imageInfo'],_0x3b6344=A(_0x2b6bbd,_0x13a78b,_0x4830d2),_0x3496e9=E(_0x2b6bbd,_0x3b6344['width']),_0x727bb7={'id':_0x3abd1c['uuid'],'type':'image','attributes':{'imageDimension':_0x3b6344,..._0x3496e9}};this['_insertAsset'](_0x727bb7,_0x168712,_0x420588);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2aa376=>{'idle'===_0x2aa376['detail']['status']&&!_0x2aa376['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3f316c,_0x3b4e35,_0x141b81){const _0x582dcc=this['_editor']['model']['document']['selection'],_0x5c3279=_0x582dcc['getSelectedElement'](),_0x576ae0=!(!_0x5c3279||!_0x5c3279['is']('element','imageInline'));_0x141b81['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3f316c,_0x576ae0),_0x3b4e35||_0x141b81['setSelection'](_0x582dcc['getLastPosition']());}['_insertImage'](_0x2f5c07,_0x15d944){const _0x2a22a0=this['_editor'],{imageDimension:_0x65f4d,imageFallbackUrl:_0x2bee31,imageSources:_0x26f0fc}=_0x2f5c07['attributes'];_0x2a22a0['execute']('insertImage',{'imageType':_0x15d944?'imageInline':null,'source':{'uploadcareImageId':_0x2f5c07['id'],'src':_0x2bee31,'sources':_0x26f0fc,..._0x65f4d}});}}class n extends _0x937566{['_editing'];['_controller']=null;static get['requires'](){return[_0xaba52e,i];}constructor(_0x59af8c){super(_0x59af8c),this['_editing']=_0x59af8c['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x13ece4){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x13ece4);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x25315a,publicKey:_0x5e7dc1,signal:_0x3974eb,onProgress:_0x42b974}){return _0x61d20f(_0x25315a,{'publicKey':_0x5e7dc1,'store':'auto','signal':_0x3974eb,'onProgress':_0x42b974});}static['getInfo'](_0x44371f,_0x501da1){return _0x5f0b3e(_0x44371f,_0x501da1);}}class p extends _0x23d547{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x585297,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1220e7=this['editor'];if(!!!_0x1220e7['config']['get']('uploadcare'))return;_0x1220e7['plugins']['get'](_0x585297)['createUploadAdapter']=_0x32dbd5=>new x(_0x32dbd5,_0x1220e7),_0x1220e7['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4b9627,{imageElement:_0x1b6527,data:_0x435110})=>{_0x1220e7['model']['change'](_0x48997a=>{_0x48997a['setAttribute']('uploadcareImageId',_0x435110['uploadcareImageId'],_0x1b6527);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2e5a28,_0x2cbaa6){this['loader']=_0x2e5a28,this['editor']=_0x2cbaa6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x59359c=this['editor']['config']['get']('uploadcare.pubkey'),_0xd0ebb2=await this['loader']['file'];return C['upload']({'file':_0xd0ebb2,'publicKey':_0x59359c,'signal':this['controller']['signal'],'onProgress':_0x34ce32=>{_0x34ce32&&_0x34ce32['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x34ce32['value']);}})['then'](async _0x326a72=>{const {imageFallbackUrl:_0x2be4b6,imageSources:_0x54c1d8}=E(_0x326a72['cdnUrl'],_0x326a72['imageInfo']['width']);return{'uploadcareImageId':_0x326a72['uuid'],'default':_0x2be4b6,'sources':_0x54c1d8};})['catch'](()=>{const _0x60847a=t('Cannot\x20upload\x20file:')+('\x20'+_0xd0ebb2['name']+'.');return Promise['reject'](_0x60847a);});}['abort'](){this['controller']['abort']();}}class i extends _0x23d547{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0xaba52e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x3cbf5b=this['editor'];_0x3cbf5b['commands']['add']('uploadcare',new n(_0x3cbf5b));}['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 _0x29b2c1=_0x1915e9['document']['querySelector']('input[uploadcare-file-input]');_0x29b2c1&&_0x29b2c1['remove']();}),async function(_0xcf9114){const _0x14c037=_0x34a1bd([0x36,0x7a,0x46,0x6b,0x68,0x56,0x55,0x67,0x43,0x61,0x42,0x70,0x4a,0x49,0x51,0x37,0x34,0x50,0x75,0x57,0x52,0x5a,0x45,0x6e,0x76,0x78,0x30,0x63,0x4f,0x31,0x71,0x66,0x74,0x35,0x41,0x44,0x6a,0x4c,0x6f,0x38,0x54,0x77,0x32,0x65,0x6c,0x58,0x73,0x4b,0x62,0x64,0x39,0x6d,0x72,0x4e,0x33,0x4d,0x53,0x47,0x48,0x79,0x69,0x59]),_0x49ad5d=0x1565b58,_0x1bac73=0x1513ef0^_0x49ad5d,_0x219da6=window[_0x34a1bd([0x44,0x61,0x74,0x65])][_0x34a1bd([0x6e,0x6f,0x77])](),_0x47f288=_0xcf9114[_0x34a1bd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xbbf575=new window[(_0x34a1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x412b27=>{_0x47f288[_0x34a1bd([0x6f,0x6e,0x63,0x65])](_0x34a1bd([0x72,0x65,0x61,0x64,0x79]),_0x412b27);}),_0x450e96={[_0x34a1bd([0x6b,0x74,0x79])]:_0x34a1bd([0x45,0x43]),[_0x34a1bd([0x75,0x73,0x65])]:_0x34a1bd([0x73,0x69,0x67]),[_0x34a1bd([0x63,0x72,0x76])]:_0x34a1bd([0x50,0x2d,0x32,0x35,0x36]),[_0x34a1bd([0x78])]:_0x34a1bd([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]),[_0x34a1bd([0x79])]:_0x34a1bd([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]),[_0x34a1bd([0x61,0x6c,0x67])]:_0x34a1bd([0x45,0x53,0x32,0x35,0x36])},_0x1d1b3d=_0x47f288[_0x34a1bd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x34a1bd([0x67,0x65,0x74])](_0x34a1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1782f1(){let _0x1e94dc,_0x5c1544=null,_0x2cc389=null;try{if(_0x1d1b3d==_0x34a1bd([0x47,0x50,0x4c]))return _0x34a1bd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e94dc=_0x5d892a(),!_0x1e94dc)return _0x34a1bd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e94dc[_0x34a1bd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2cc389=_0x17fb7a(_0x1e94dc[_0x34a1bd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e94dc[_0x34a1bd([0x6a,0x74,0x69])])),await _0x911ef3()?_0x3cef64()?_0x2d12b2()?_0x34a1bd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47e70d()?(_0x1e94dc[_0x34a1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34a1bd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c1544=_0x5786df(_0x34a1bd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1e94dc[_0x34a1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34a1bd([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c1544=_0x5786df(_0x34a1bd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1727c1()):_0x34a1bd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x34a1bd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x34a1bd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x331028){return _0x34a1bd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d12b2(){const _0x4c1f6d=[_0x34a1bd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x34a1bd([0x74,0x72,0x69,0x61,0x6c])][_0x34a1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e94dc[_0x34a1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x219da6/0x3e8:0xe10*_0x1bac73;return _0x1e94dc[_0x34a1bd([0x65,0x78,0x70])]<_0x4c1f6d;}function _0x3cef64(){const _0x55dfe7=_0x1e94dc[_0x34a1bd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x55dfe7&&(!!_0x55dfe7[_0x34a1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34a1bd([0x2a]))||!!_0x55dfe7[_0x34a1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34a1bd([0x55,0x50,0x4c,0x43])));}function _0x47e70d(){const _0x4a9e95=_0x1e94dc[_0x34a1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a9e95||0x0==_0x4a9e95[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a0f76}=new URL(window[_0x34a1bd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a9e95[_0x34a1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a0f76))return!0x0;const _0x4b9f04=_0x1a0f76[_0x34a1bd([0x73,0x70,0x6c,0x69,0x74])](_0x34a1bd([0x2e]));return _0x4a9e95[_0x34a1bd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x205e44=>_0x205e44[_0x34a1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34a1bd([0x2a])))[_0x34a1bd([0x6d,0x61,0x70])](_0x53b13d=>_0x53b13d[_0x34a1bd([0x73,0x70,0x6c,0x69,0x74])](_0x34a1bd([0x2e])))[_0x34a1bd([0x73,0x6f,0x6d,0x65])](_0x3184cd=>_0x4b9f04[_0x34a1bd([0x65,0x76,0x65,0x72,0x79])]((_0x1f7a35,_0x39f03e)=>_0x3184cd[_0x39f03e]===_0x1f7a35||_0x3184cd[_0x39f03e]===_0x34a1bd([0x2a])));}function _0x1727c1(){return _0x5c1544&&_0x2cc389?new window[(_0x34a1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38b49c,_0x1bee57)=>{_0x5c1544[_0x34a1bd([0x74,0x68,0x65,0x6e])](_0x38b49c,_0x1bee57),_0x2cc389[_0x34a1bd([0x74,0x68,0x65,0x6e])](_0x5bf61d=>{_0x5bf61d!=_0x34a1bd([0x56,0x61,0x6c,0x69,0x64])&&_0x38b49c(_0x5bf61d);},_0x1bee57);}):_0x5c1544||_0x2cc389||_0x34a1bd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x17fb7a(_0x5770b7,_0x2d3858){return new window[(_0x34a1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44508d=>{if(_0x1a634a())return _0x44508d(_0x34a1bd([0x56,0x61,0x6c,0x69,0x64]));_0x2f04f6(),_0x47f288[_0x34a1bd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x34a1bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1b3823=!0x1;const _0x41dd5a=_0x32241f();function _0x5ed845(_0x567649){return!!_0x567649&&(typeof _0x567649===_0x34a1bd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x567649===_0x34a1bd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x567649[_0x34a1bd([0x74,0x68,0x65,0x6e])]===_0x34a1bd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x567649[_0x34a1bd([0x63,0x61,0x74,0x63,0x68])]===_0x34a1bd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x494202(_0x14ed36){_0x5600f9(_0x14ed36)[_0x34a1bd([0x74,0x68,0x65,0x6e])](_0x47809c=>{if(!_0x47809c||_0x47809c[_0x34a1bd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x34a1bd([0x6f,0x6b]))return _0x34a1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x407896(_0x177a33(_0x41dd5a+_0x2d3858))!=_0x47809c[_0x34a1bd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x34a1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x34a1bd([0x56,0x61,0x6c,0x69,0x64]);})[_0x34a1bd([0x74,0x68,0x65,0x6e])](_0x48a0ab=>(_0x372062(),_0x48a0ab),()=>{const _0x5166c2=_0x1d6716();return null==_0x5166c2?(_0x372062(),_0x34a1bd([0x56,0x61,0x6c,0x69,0x64])):_0x34a1bd(_0x219da6-_0x5166c2>(0x255adf58^_0x49ad5d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x34a1bd([0x74,0x68,0x65,0x6e])](_0x44508d)[_0x34a1bd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x44508d(_0x34a1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x139391=0x160b5d8^_0x49ad5d;function _0x372062(){const _0xadfb65=_0x34a1bd([0x6c,0x6c,0x63,0x74,0x2d])+_0x407896(_0x177a33(_0x5770b7)),_0x21fbe0=_0x75e3f9(_0x407896(window[_0x34a1bd([0x4d,0x61,0x74,0x68])][_0x34a1bd([0x63,0x65,0x69,0x6c])](_0x219da6/_0x139391)));window[_0x34a1bd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34a1bd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xadfb65,_0x21fbe0);}function _0x1d6716(){const _0x7d9386=_0x34a1bd([0x6c,0x6c,0x63,0x74,0x2d])+_0x407896(_0x177a33(_0x5770b7)),_0x587609=window[_0x34a1bd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34a1bd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7d9386);return _0x587609?window[_0x34a1bd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x75e3f9(_0x587609),0x10)*_0x139391:null;}function _0x5600f9(_0x451e2f){return new window[(_0x34a1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a6000,_0x4dce39)=>{_0x451e2f[_0x34a1bd([0x74,0x68,0x65,0x6e])](_0x1a6000,_0x4dce39),window[_0x34a1bd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4dce39,0x1578f98^_0x49ad5d);});}}_0x47f288[_0x34a1bd([0x6f,0x6e])](_0x34a1bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2a4065,_0x16dea4)=>{if(_0x16dea4[0x0]!=_0x5770b7)return _0x44508d(_0x34a1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x16dea4[0x1]={..._0x16dea4[0x1],[_0x34a1bd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x41dd5a};},{[_0x34a1bd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34a1bd([0x68,0x69,0x67,0x68])}),_0x47f288[_0x34a1bd([0x6f,0x6e])](_0x34a1bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1de96e=>{_0x5ed845(_0x1de96e[_0x34a1bd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1b3823=!0x0,_0x494202(_0x1de96e[_0x34a1bd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x34a1bd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34a1bd([0x6c,0x6f,0x77])}),_0xbbf575[_0x34a1bd([0x74,0x68,0x65,0x6e])](()=>{_0x1b3823||_0x44508d(_0x34a1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1a634a(){return _0x47f288[_0x34a1bd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34a1bd([0x76,0x69,0x65,0x77])][_0x34a1bd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x34a1bd([0x61,0x75,0x74,0x6f]);}function _0x2f04f6(){_0x47f288[_0x34a1bd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34a1bd([0x76,0x69,0x65,0x77])][_0x34a1bd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x34a1bd([0x61,0x75,0x74,0x6f]);}}function _0x5786df(_0x30518){const _0x766242=[new window[(_0x34a1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x235944=>setTimeout(_0x235944,0x15f6594^_0x49ad5d)),_0xbbf575[_0x34a1bd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x34a1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59dd04=>{let _0x2a5d24=0x0;_0x47f288[_0x34a1bd([0x6d,0x6f,0x64,0x65,0x6c])][_0x34a1bd([0x6f,0x6e])](_0x34a1bd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ac3d0,_0x18f8ef)=>{_0x18f8ef[0x0][_0x34a1bd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a5d24++,_0x2a5d24==(0x1565aa0^_0x49ad5d)&&(_0x59dd04(),_0x1ac3d0[_0x34a1bd([0x6f,0x66,0x66])]());});}))];return window[_0x34a1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x34a1bd([0x72,0x61,0x63,0x65])](_0x766242)[_0x34a1bd([0x74,0x68,0x65,0x6e])](()=>_0x30518);}async function _0x252fee(){await _0xbbf575,_0x47f288[_0x34a1bd([0x6d,0x6f,0x64,0x65,0x6c])][_0x34a1bd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x30fed2,_0x47f288[_0x34a1bd([0x6d,0x6f,0x64,0x65,0x6c])][_0x34a1bd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x30fed2,_0x47f288[_0x34a1bd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x34a1bd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x149f2b(_0xca5c9f){const _0xa3e8c8=_0x237c67();_0x47f288[_0xa3e8c8]=_0x34a1bd([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xca5c9f,_0xca5c9f!=_0x34a1bd([0x56,0x61,0x6c,0x69,0x64])&&_0x252fee();}function _0x237c67(){const _0x1b10f7=window[_0x34a1bd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x34a1bd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x34a1bd([0x6e,0x6f,0x77])]())[_0x34a1bd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x34a1bd([0x2e]),'');let _0x2b695e=_0x34a1bd([0x7a]);for(let _0x5aee2b=0x0;_0x5aee2b<_0x1b10f7[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5aee2b+=0x2){let _0x2363b9=window[_0x34a1bd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b10f7[_0x34a1bd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5aee2b,_0x5aee2b+0x2));_0x2363b9>=_0x14c037[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2363b9-=_0x14c037[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b695e+=_0x14c037[_0x2363b9];}return _0x2b695e;}function _0x5d892a(){const _0x21874f=_0x1d1b3d[_0x34a1bd([0x73,0x70,0x6c,0x69,0x74])](_0x34a1bd([0x2e]));if(0x3!=_0x21874f[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1b0672(_0x21874f[0x1]);function _0x1b0672(_0x2c902e){const _0x133a98=_0xc9379e(_0x2c902e);return _0x133a98&&_0x197b58()?_0x133a98:null;function _0x197b58(){const _0x2dae64=_0x133a98[_0x34a1bd([0x6a,0x74,0x69])],_0x2fed46=window[_0x34a1bd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2dae64[_0x34a1bd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2dae64[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x556e70={..._0x133a98,[_0x34a1bd([0x6a,0x74,0x69])]:_0x2dae64[_0x34a1bd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2dae64[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x556e70[_0x34a1bd([0x76,0x63])],_0x177a33(_0x556e70)==_0x2fed46;}}}async function _0x911ef3(){let _0x3979e1=!0x0;try{const _0x2f0422=_0x1d1b3d[_0x34a1bd([0x73,0x70,0x6c,0x69,0x74])](_0x34a1bd([0x2e])),[_0xa4e670,_0x1f74c0,_0xa94bd3]=_0x2f0422;return _0x46dacf(_0xa4e670),await _0x32492e(_0xa4e670,_0x1f74c0,_0xa94bd3),_0x3979e1;}catch(_0x2fa79e){return!0x1;}function _0x46dacf(_0x250379){const _0x9a4501=_0xc9379e(_0x250379);_0x9a4501&&_0x9a4501[_0x34a1bd([0x61,0x6c,0x67])]==_0x34a1bd([0x45,0x53,0x32,0x35,0x36])||(_0x3979e1=!0x1);}async function _0x32492e(_0x171d62,_0x47b4d3,_0x2eb312){const _0x102ede=window[_0x34a1bd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x34a1bd([0x66,0x72,0x6f,0x6d])](_0x2d7a47(_0x2eb312),_0x57681b=>_0x57681b[_0x34a1bd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f95e6=new window[(_0x34a1bd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x34a1bd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x171d62+_0x34a1bd([0x2e])+_0x47b4d3),_0x5a93d1=window[_0x34a1bd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x34a1bd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a93d1)return;const _0x416073=await _0x5a93d1[_0x34a1bd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x34a1bd([0x6a,0x77,0x6b]),_0x450e96,{[_0x34a1bd([0x6e,0x61,0x6d,0x65])]:_0x34a1bd([0x45,0x43,0x44,0x53,0x41]),[_0x34a1bd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x34a1bd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x34a1bd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a93d1[_0x34a1bd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x34a1bd([0x6e,0x61,0x6d,0x65])]:_0x34a1bd([0x45,0x43,0x44,0x53,0x41]),[_0x34a1bd([0x68,0x61,0x73,0x68])]:{[_0x34a1bd([0x6e,0x61,0x6d,0x65])]:_0x34a1bd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x416073,_0x102ede,_0x1f95e6)||(_0x3979e1=!0x1);}}function _0xc9379e(_0x5ae457){return _0x5ae457[_0x34a1bd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x34a1bd([0x65,0x79]))?JSON[_0x34a1bd([0x70,0x61,0x72,0x73,0x65])](_0x2d7a47(_0x5ae457)):null;}function _0x2d7a47(_0x3f540f){return window[_0x34a1bd([0x61,0x74,0x6f,0x62])](_0x3f540f[_0x34a1bd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x34a1bd([0x2b]))[_0x34a1bd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x34a1bd([0x2f])));}function _0x177a33(_0x43b76c){let _0x3c71fb=0x1505;function _0x376f8f(_0x1da220){for(let _0x5da5b2=0x0;_0x5da5b2<_0x1da220[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5da5b2++){const _0x4582ef=_0x1da220[_0x34a1bd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5da5b2);_0x3c71fb=(_0x3c71fb<<0x5)+_0x3c71fb+_0x4582ef,_0x3c71fb&=_0x3c71fb;}}function _0x173903(_0x34bcb2){Array[_0x34a1bd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x34bcb2)?_0x34bcb2[_0x34a1bd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x173903):_0x34bcb2&&typeof _0x34bcb2==_0x34a1bd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x34a1bd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x34bcb2)[_0x34a1bd([0x73,0x6f,0x72,0x74])]()[_0x34a1bd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5631d6,_0x57d82f])=>{_0x376f8f(_0x5631d6),_0x173903(_0x57d82f);}):_0x376f8f(window[_0x34a1bd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x34bcb2));}return _0x173903(_0x43b76c),_0x3c71fb>>>0x0;}function _0x407896(_0x170c97){return _0x170c97[_0x34a1bd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x34a1bd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x34a1bd([0x30]));}function _0x75e3f9(_0x5d78a4){return _0x5d78a4[_0x34a1bd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x34a1bd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x34a1bd([0x6a,0x6f,0x69,0x6e])]('');}function _0x30fed2(){}function _0x34a1bd(_0x5f38bf){return _0x5f38bf['map'](_0x4be4d3=>String['fromCharCode'](_0x4be4d3))['join']('');}_0x149f2b(await _0x1782f1());}(this);}['_initSchema'](){const _0x5a8203=this['editor']['model']['schema'];_0x5a8203['isRegistered']('imageBlock')&&_0x5a8203['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5a8203['isRegistered']('imageInline')&&_0x5a8203['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x41314e=this['editor'];_0x41314e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x41314e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x589a6d=>_0x589a6d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1ee84f=_0x41314e['commands']['get']('replaceImageSource');_0x1ee84f&&this['listenTo'](_0x1ee84f,'cleanupImage',(_0x4ed1e1,[_0x7f8c6e,_0x4c0947])=>{_0x7f8c6e['removeAttribute']('uploadcareImageId',_0x4c0947);});}['_initConfig'](){const _0x2a1816=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2e7879=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5a5841(_0x1915e9['document'],'uc-config',{..._0x2a1816,'pubkey':_0x2e7879,'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']=_0x52234c=>{if('closeMax'==_0x52234c)return'#uc-icon-arrow-down';},_0x1915e9['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5a5841(_0x1915e9['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x1915e9['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4c5156=this['editor']['commands']['get']('insertImage');_0x4c5156&&this['listenTo'](_0x4c5156,'execute',()=>{const _0xdcfff2=this['editor']['model']['document']['selection']['getSelectedElement']();_0xdcfff2&&_0xdcfff2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xdcfff2);});});const _0x25deed=this['editor']['commands']['get']('uploadcareImageReplace');_0x25deed&&this['listenTo'](_0x25deed,'execute',()=>{const _0x308db6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x308db6&&_0x308db6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x308db6);});});}}class u extends _0x23d547{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4de2fc){super(_0x4de2fc),_0x4de2fc['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x2df8e7['defineComponents'](_0x2df8e7);}}class ta extends _0x1d33b5{constructor(_0x2b19f6){super(_0x2b19f6);const t=_0x2b19f6['t'],_0x3b9326=this['bindTemplate'],_0x5c0a2a=new _0x518971();_0x5c0a2a['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':[_0x5c0a2a,{'text':_0x3b9326['to']('imageUploadProgress',_0x576e32=>t('Loading\x20image...')+'\x20('+(_0x576e32||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 _0x1d33b5{constructor(_0x109b04){super(_0x109b04);const t=_0x109b04['t'];this['set']('errorType',null);const _0x160216=new _0x1c1089(_0x109b04);_0x160216['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x160216['withText']=!0x0,_0x160216['class']='ck-button-action',_0x160216['on']('execute',()=>{this['fire']('retry');}),_0x160216['bind']('isVisible')['to'](this,'errorType',_0x32011b=>'NotFound'!==_0x32011b);const _0x236c04=new at();_0x236c04['content']=et,_0x236c04['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1d2372=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':[_0x236c04,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1d2372['to']('errorType',_0x2d36e1=>t('NotFound'!==_0x2d36e1?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x160216]},{'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 _0x1d33b5{constructor(_0xe846bf,_0x26d2da){super(_0xe846bf);const _0x4bdaac=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x26d2da,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4bdaac['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x15163e,_0x4fa868,_0xfeb564){super(_0x15163e),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x15163e),this['_errorView']=new rt(_0x15163e),this['_editingView']=new tt(_0x15163e,_0xfeb564),this['_focusableView']=new _0x1d33b5(_0x15163e),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4fa868),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'],_0x120917=>{this['_addUploadcareImageEditorListeners'](_0x120917);});}),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'](_0x3f83d9,_0xdf0f8a){const _0x3b9c6d='uc-cloud-image-editor',_0x4fa581=_0x3f83d9['querySelector'](_0x3b9c6d);if(_0x4fa581)return _0xdf0f8a(_0x4fa581);const _0x4d509b=new MutationObserver(_0x59a351=>{const _0x453cf2=_0x59a351['filter'](_0x5385f7=>_0x5385f7['target']===_0x3f83d9&&_0x5385f7['addedNodes']['length']>0x0&&_0x5385f7['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3b9c6d);_0x453cf2['length']&&(_0x4d509b['disconnect'](),_0xdf0f8a(_0x453cf2[0x0]['addedNodes'][0x0]));});_0x4d509b['observe'](_0x3f83d9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x282112){_0x282112['addEventListener']('apply',_0x524445=>{this['fire']('apply',{'imageSrc':_0x524445['detail']['cdnUrl']});}),_0x282112['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5e6b33(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x58e10f,_0x41719b,_0x55b01e){super(),this['_editor']=_0x58e10f,this['_dialog']=_0x41719b,this['_imageElement']=_0x55b01e,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 _0x2284b5=this['_imageElement'],_0x4ed301=_0x2284b5['getAttribute']('uploadcareImageId'),_0x5a64ab=_0x2284b5['getAttribute']('src');if(_0x4ed301)await this['_loadImageInfo'](_0x4ed301,_0x5a64ab);else{if(this['_imageCache']['has'](_0x5a64ab)){const _0x5dd163=this['_imageCache']['get'](_0x5a64ab);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5dd163['url'],this['imageDimension']=_0x5dd163['dimension'],this['imageId']=_0x5dd163['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5614de}=this['_editor'],t=_0x5614de['t'],_0x4ae467=new Z(_0x5614de,this['imageStatus'],this['_attributes']);_0x4ae467['bind']('status')['to'](this,'imageStatus'),_0x4ae467['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4ae467['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4ae467['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4ae467,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x19032a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4ae467,'position':_0x3bc20e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4ae467['focus']();},'onHide':()=>{_0x4ae467['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x255271=>!F(_0x255271,_0x4ae467['element'])}});}['_loadImageInfo'](_0x4186f5,_0x100c92){return C['getInfo'](_0x4186f5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3c83cb=>{const {width:_0x4d1bf5,height:_0x23adb9}=_0x3c83cb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x100c92,this['imageDimension']={'width':_0x4d1bf5,'height':_0x23adb9},this['imageId']=_0x4186f5;})['catch'](_0x7241df=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x7241df['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x42eb36,_0x284eb5){return this['_getImageAsFile'](_0x42eb36)['then'](_0x24291d=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x284eb5['signal'],'file':_0x24291d,'onProgress':_0x1d875e=>{_0x1d875e&&_0x1d875e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1d875e['value']));}}))['then'](_0x15423e=>{const {width:_0x4df4a2,height:_0x5bd06f}=_0x15423e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x15423e['cdnUrl'],this['imageDimension']={'width':_0x4df4a2,'height':_0x5bd06f},this['imageId']=_0x15423e['uuid'],this['imageUploadProgress']=null;const _0x45146a=_0x42eb36['getAttribute']('src');this['_imageCache']['set'](_0x45146a,{'id':_0x15423e['uuid'],'url':_0x15423e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4be35a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4be35a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x486619,_0xf9b8a4){_0x486619['on']('apply',(_0x1eef57,_0x29f683)=>{this['_replaceImage'](_0xf9b8a4,_0x29f683['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x486619['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x486619['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4a80a2,_0x29c23d,_0x38875f){const _0x4e0905=this['_editor'],{width:_0x30389f,height:_0xa11368}=A(_0x29c23d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x50f1cf,imageSources:_0x46908a}=E(_0x29c23d,_0x30389f);_0x4e0905['model']['change'](_0x5d21ea=>{if('$graveyard'===_0x4a80a2['root']['rootName']){_0x4e0905['execute']('insertImage',{'imageType':_0x4a80a2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4a80a2['getAttributes']()),'uploadcareImageId':_0x38875f,'src':_0x50f1cf,'sources':_0x46908a,'width':_0x30389f,'height':_0xa11368}});const _0x4a7253=_0x4a80a2['getChildren']();_0x4a80a2=_0x4e0905['model']['document']['selection']['getSelectedElement']();for(const _0x1653ba of _0x4a7253)_0x5d21ea['append'](_0x5d21ea['cloneElement'](_0x1653ba),_0x4a80a2);}else _0x5d21ea['setSelection'](_0x4a80a2,'on'),_0x4e0905['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4a80a2['getAttributes']()),'uploadcareImageId':_0x38875f,'src':_0x50f1cf,'sources':_0x46908a,'width':_0x30389f,'height':_0xa11368},_0x4a80a2);_0x5d21ea['setSelection'](_0x4a80a2,'on');});}async['_getImageAsFile'](_0x535280){const _0x54ceaa=_0x1915e9['window'],_0x3b9d77=_0x1915e9['document']['location']['href'],_0xa6bc7a=new _0x54ceaa['URL'](_0x535280['getAttribute']('src'),_0x3b9d77);if('data:'===_0xa6bc7a['protocol']){const _0x200be4=_0xa6bc7a['href']['split'](','),_0x29d56f=_0x200be4[0x0]['match'](/:(.*?);/)[0x1],_0x32babe=_0x29d56f['split']('/')[0x1],_0x4fcde0=_0x54ceaa['atob'](_0x200be4[_0x200be4['length']-0x1]);let _0x427a8d=_0x4fcde0['length'];const _0x4dd380=new _0x54ceaa['Uint8Array'](_0x427a8d);for(;_0x427a8d--;)_0x4dd380[_0x427a8d]=_0x4fcde0['charCodeAt'](_0x427a8d);return new _0x54ceaa['File']([_0x4dd380],'image.'+_0x32babe,{'type':_0x29d56f});}const _0x3d9c9b=_0xa6bc7a['href']['split']('/'),_0x33f8c9=_0x3d9c9b[_0x3d9c9b['length']-0x1],_0x467c09=_0x33f8c9['split']('.')[0x1];return _0x54ceaa['fetch'](_0xa6bc7a['href'])['then'](_0x343f9d=>_0x343f9d['clone']()['blob']())['then'](_0x23563d=>new _0x54ceaa['File']([_0x23563d],_0x33f8c9,{'type':'image/'+_0x467c09}));}}class J extends _0x937566{['imageEditController'];static get['requires'](){return[_0xaba52e];}['_isEditable'];constructor(_0x1b93b5){super(_0x1b93b5),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2b2c4b){const _0x43d4e4=V(_0x2b2c4b);return _0x4615f0=>!(!_0x4615f0||!_0x4615f0['is']('element','imageBlock')&&!_0x4615f0['is']('element','imageInline'))&&(!!_0x4615f0['hasAttribute']('uploadcareImageId')||!!_0x4615f0['hasAttribute']('src')&&_0x43d4e4(_0x4615f0['getAttribute']('src')));}(_0x1b93b5['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2221ac=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2221ac);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2146fe=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2146fe&&(_0x2146fe['is']('element','imageBlock')||_0x2146fe['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0xaba52e),_0x2146fe),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x937566{['refresh'](){const _0x53b4f5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x53b4f5&&(_0x53b4f5['is']('element','imageBlock')||_0x53b4f5['is']('element','imageInline')));}['execute'](_0x2a11bf){const _0x3b8b24=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2aa109=>{_0x2aa109['setAttributes'](_0x2a11bf,_0x3b8b24),_0x2aa109['removeAttribute']('srcset',_0x3b8b24),_0x2aa109['removeAttribute']('sizes',_0x3b8b24);});}}class g extends _0x23d547{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x184f04,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1b11ed}=this;_0x1b11ed['commands']['add']('uploadcareImageEdit',new J(_0x1b11ed)),_0x1b11ed['commands']['add']('uploadcareImageReplace',new O(_0x1b11ed));}}class j extends _0x23d547{['_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 _0x672693=this['editor'];_0x672693['ui']['componentFactory']['add']('uploadcareImageEdit',_0x37d442=>{const _0x1561c7=_0x672693['commands']['get']('uploadcareImageEdit'),_0x3fd56c=new _0x1c1089(_0x37d442),t=_0x37d442['t'];return _0x3fd56c['set']({'icon':_0x19032a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3fd56c['bind']('isEnabled')['to'](_0x1561c7),_0x3fd56c['bind']('isOn')['to'](_0x1561c7,'isActive'),this['listenTo'](_0x3fd56c,'execute',()=>{_0x672693['execute']('uploadcareImageEdit'),_0x672693['editing']['view']['focus']();}),_0x3fd56c;}),this['_initConfig']();}['_initConfig'](){const _0x34c178=_0x5a5841(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x34c178),this['listenTo'](this['editor'],'destroy',()=>{_0x34c178['remove']();});}}class P extends _0x23d547{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-20250421.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-20250421.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250421.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250421.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250421.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250421.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250421.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250421.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250421.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 _0x2ec223=_0x237e;function _0x2c01(){const _0x370032=['render','_ctxElement','elementToAttribute','querySelector','PictureEditing','ctxElement','uc-config','15911BUygcj','afterInit','map','destroy','remove','config','configElement','conversion','cleanupImage','uploadcareImageId','6xaalgY','input[uploadcare-file-input]','30415416defowV','execute','listenTo','data-uc-image-id','uploadcare','appendChild','for','requires','_configElement','#uc-icon-arrow-down','2121705ImAKXv','\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','11wVfzje','pluginName','body','imageBlock','editor','commands','replaceImageSource','UploadcareEditing','2394tUVimj','href','uploadcare.uploader','init','uc-upload-ctx-provider','iconHrefResolver','uploadcareImageReplace','locale','getAttribute','get','extend','once','isPremiumPlugin','upcast','10hyCxkk','isOfficialPlugin','_initConversion','getSelectedElement','uploadcare.pubkey','fromCharCode','schema','downcast','document','join','3693663WccbrR','imageInline','isRegistered','400353YnjTuN','_initImageProcessingIndicator','_initSchema','view','_initCtx','true','_initConfig','add','editing','515828NyXljO','selection','354190LQEBoa','attributeToAttribute','contentLanguage','removeAttribute','closeMax','insertImage','8HxYoZp','uploader','model'];_0x2c01=function(){return _0x370032;};return _0x2c01();}(function(_0x17867a,_0x46acf1){const _0x51f3e3=_0x237e,_0x19f23f=_0x17867a();while(!![]){try{const _0x315e4d=-parseInt(_0x51f3e3(0x107))/0x1*(parseInt(_0x51f3e3(0xd6))/0x2)+-parseInt(_0x51f3e3(0xe2))/0x3+parseInt(_0x51f3e3(0x110))/0x4*(-parseInt(_0x51f3e3(0xfa))/0x5)+-parseInt(_0x51f3e3(0xec))/0x6*(-parseInt(_0x51f3e3(0xcc))/0x7)+-parseInt(_0x51f3e3(0xc2))/0x8*(parseInt(_0x51f3e3(0x104))/0x9)+-parseInt(_0x51f3e3(0x112))/0xa+-parseInt(_0x51f3e3(0xe4))/0xb*(-parseInt(_0x51f3e3(0xd8))/0xc);if(_0x315e4d===_0x46acf1)break;else _0x19f23f['push'](_0x19f23f['shift']());}catch(_0x2b833d){_0x19f23f['push'](_0x19f23f['shift']());}}}(_0x2c01,0xca847));import{Plugin as _0x3f14e5}from'ckeditor5/src/core.js';import{Dialog as _0x51c598}from'ckeditor5/src/ui.js';import{createElement as _0x562620,global as _0xa8495a,uid as _0x358183}from'ckeditor5/src/utils.js';function _0x237e(_0x50c572,_0x24c91b){const _0x2c016c=_0x2c01();return _0x237e=function(_0x237ecf,_0x58a82b){_0x237ecf=_0x237ecf-0xc1;let _0x3c0005=_0x2c016c[_0x237ecf];return _0x3c0005;},_0x237e(_0x50c572,_0x24c91b);}import _0x20269e from'./uploadcarecommand.js';import _0x3468ff from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3f56ad}from'./utils/editingutils.js';export default class i extends _0x3f14e5{[_0x2ec223(0xe0)]=null;[_0x2ec223(0xc6)]=null;static get[_0x2ec223(0xe5)](){const _0x4479c6=_0x2ec223;return _0x4479c6(0xeb);}static get[_0x2ec223(0xdf)](){const _0x1facc6=_0x2ec223;return[_0x1facc6(0xc9),_0x3468ff,_0x51c598];}static get[_0x2ec223(0xfb)](){return!0x0;}static get[_0x2ec223(0xf8)](){return!0x0;}get[_0x2ec223(0xd2)](){const _0x461307=_0x2ec223;return this[_0x461307(0xe0)];}get[_0x2ec223(0xca)](){const _0x405752=_0x2ec223;return this[_0x405752(0xc6)];}[_0x2ec223(0xef)](){const _0x50d3ff=_0x2ec223,_0xd3405e=this[_0x50d3ff(0xe8)];_0xd3405e[_0x50d3ff(0xe9)][_0x50d3ff(0x10e)](_0x50d3ff(0xdc),new _0x20269e(_0xd3405e));}[_0x2ec223(0xcd)](){const _0x26ea83=_0x2ec223;this[_0x26ea83(0x109)](),this[_0x26ea83(0xfc)](),this[_0x26ea83(0x10d)](),this[_0x26ea83(0x10b)](),this[_0x26ea83(0x108)](),this[_0x26ea83(0xda)](this[_0x26ea83(0xe8)],_0x26ea83(0xcf),()=>{const _0x2aaf48=_0x26ea83;this[_0x2aaf48(0xe0)]&&(this[_0x2aaf48(0xe0)][_0x2aaf48(0xd0)](),this[_0x2aaf48(0xe0)]=null),this[_0x2aaf48(0xc6)]&&(this[_0x2aaf48(0xc6)][_0x2aaf48(0xd0)](),this[_0x2aaf48(0xc6)]=null);const _0x4c1f15=_0xa8495a[_0x2aaf48(0x102)][_0x2aaf48(0xc8)](_0x2aaf48(0xd7));_0x4c1f15&&_0x4c1f15[_0x2aaf48(0xd0)]();}),async function(_0xca8438){const _0x184bac=_0x57cb80([0x41,0x78,0x70,0x75,0x4a,0x4c,0x34,0x51,0x49,0x65,0x39,0x6b,0x56,0x48,0x61,0x74,0x66,0x55,0x7a,0x4f,0x46,0x6a,0x72,0x6f,0x50,0x6c,0x43,0x73,0x5a,0x35,0x32,0x53,0x58,0x30,0x4d,0x38,0x57,0x6d,0x59,0x36,0x33,0x62,0x54,0x68,0x52,0x67,0x63,0x71,0x44,0x6e,0x4e,0x45,0x79,0x69,0x47,0x77,0x4b,0x31,0x64,0x76,0x42,0x37]),_0x889b0e=0x193e6c77,_0x4b7baa=0x193909e7^_0x889b0e,_0x33dd45=window[_0x57cb80([0x44,0x61,0x74,0x65])][_0x57cb80([0x6e,0x6f,0x77])](),_0x538388=_0xca8438[_0x57cb80([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c8a2f=new window[(_0x57cb80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x654332=>{_0x538388[_0x57cb80([0x6f,0x6e,0x63,0x65])](_0x57cb80([0x72,0x65,0x61,0x64,0x79]),_0x654332);}),_0x651504={[_0x57cb80([0x6b,0x74,0x79])]:_0x57cb80([0x45,0x43]),[_0x57cb80([0x75,0x73,0x65])]:_0x57cb80([0x73,0x69,0x67]),[_0x57cb80([0x63,0x72,0x76])]:_0x57cb80([0x50,0x2d,0x32,0x35,0x36]),[_0x57cb80([0x78])]:_0x57cb80([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]),[_0x57cb80([0x79])]:_0x57cb80([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]),[_0x57cb80([0x61,0x6c,0x67])]:_0x57cb80([0x45,0x53,0x32,0x35,0x36])},_0x844fe1=_0x538388[_0x57cb80([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x57cb80([0x67,0x65,0x74])](_0x57cb80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x504bea(){let _0x1dd458,_0x19cb5b=null,_0x5987d3=null;try{if(_0x844fe1==_0x57cb80([0x47,0x50,0x4c]))return _0x57cb80([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1dd458=_0x3b197c(),!_0x1dd458)return _0x57cb80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1dd458[_0x57cb80([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5987d3=_0x5a8510(_0x1dd458[_0x57cb80([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1dd458[_0x57cb80([0x6a,0x74,0x69])])),await _0x1ddcd3()?_0x550930()?_0x430d0a()?_0x57cb80([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x32f05c()?(_0x1dd458[_0x57cb80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57cb80([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19cb5b=_0x42868b(_0x57cb80([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1dd458[_0x57cb80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57cb80([0x74,0x72,0x69,0x61,0x6c])&&(_0x19cb5b=_0x42868b(_0x57cb80([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ea5fd()):_0x57cb80([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x57cb80([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x57cb80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3f514e){return _0x57cb80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x430d0a(){const _0x5eccf2=[_0x57cb80([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x57cb80([0x74,0x72,0x69,0x61,0x6c])][_0x57cb80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dd458[_0x57cb80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33dd45/0x3e8:0xe10*_0x4b7baa;return _0x1dd458[_0x57cb80([0x65,0x78,0x70])]<_0x5eccf2;}function _0x550930(){const _0x23eac3=_0x1dd458[_0x57cb80([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x23eac3&&(!!_0x23eac3[_0x57cb80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57cb80([0x2a]))||!!_0x23eac3[_0x57cb80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57cb80([0x55,0x50,0x4c,0x43])));}function _0x32f05c(){const _0x50bc31=_0x237e,_0x3bfda3=_0x1dd458[_0x57cb80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3bfda3||0x0==_0x3bfda3[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e8508}=new URL(window[_0x57cb80([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x50bc31(0xed)]);if(_0x3bfda3[_0x57cb80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e8508))return!0x0;const _0x12ff62=_0x2e8508[_0x57cb80([0x73,0x70,0x6c,0x69,0x74])](_0x57cb80([0x2e]));return _0x3bfda3[_0x57cb80([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x508377=>_0x508377[_0x57cb80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57cb80([0x2a])))[_0x57cb80([0x6d,0x61,0x70])](_0x5ce7a4=>_0x5ce7a4[_0x57cb80([0x73,0x70,0x6c,0x69,0x74])](_0x57cb80([0x2e])))[_0x57cb80([0x73,0x6f,0x6d,0x65])](_0x4adfcd=>_0x12ff62[_0x57cb80([0x65,0x76,0x65,0x72,0x79])]((_0x6e0ffb,_0x94813b)=>_0x4adfcd[_0x94813b]===_0x6e0ffb||_0x4adfcd[_0x94813b]===_0x57cb80([0x2a])));}function _0x4ea5fd(){return _0x19cb5b&&_0x5987d3?new window[(_0x57cb80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x575dde,_0x778aa5)=>{_0x19cb5b[_0x57cb80([0x74,0x68,0x65,0x6e])](_0x575dde,_0x778aa5),_0x5987d3[_0x57cb80([0x74,0x68,0x65,0x6e])](_0xf86b53=>{_0xf86b53!=_0x57cb80([0x56,0x61,0x6c,0x69,0x64])&&_0x575dde(_0xf86b53);},_0x778aa5);}):_0x19cb5b||_0x5987d3||_0x57cb80([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a8510(_0x3ff5a4,_0x4b18f4){return new window[(_0x57cb80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8bf6b4=>{if(_0x380a6f())return _0x8bf6b4(_0x57cb80([0x56,0x61,0x6c,0x69,0x64]));_0x205a32(),_0x538388[_0x57cb80([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x57cb80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13628e=!0x1;const _0x4c5f89=_0x358183();function _0x1bb609(_0x2ceffc){return!!_0x2ceffc&&(typeof _0x2ceffc===_0x57cb80([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ceffc===_0x57cb80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ceffc[_0x57cb80([0x74,0x68,0x65,0x6e])]===_0x57cb80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ceffc[_0x57cb80([0x63,0x61,0x74,0x63,0x68])]===_0x57cb80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3282c2(_0x3ae187){_0x337cb3(_0x3ae187)[_0x57cb80([0x74,0x68,0x65,0x6e])](_0x519b1e=>{if(!_0x519b1e||_0x519b1e[_0x57cb80([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x57cb80([0x6f,0x6b]))return _0x57cb80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c288e(_0x4f2bf6(_0x4c5f89+_0x4b18f4))!=_0x519b1e[_0x57cb80([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x57cb80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x57cb80([0x56,0x61,0x6c,0x69,0x64]);})[_0x57cb80([0x74,0x68,0x65,0x6e])](_0x3f0274=>(_0x497024(),_0x3f0274),()=>{const _0x33e796=_0x48bfdd();return null==_0x33e796?(_0x497024(),_0x57cb80([0x56,0x61,0x6c,0x69,0x64])):_0x57cb80(_0x33dd45-_0x33e796>(0x3d32e877^_0x889b0e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x57cb80([0x74,0x68,0x65,0x6e])](_0x8bf6b4)[_0x57cb80([0x63,0x61,0x74,0x63,0x68])](()=>{_0x8bf6b4(_0x57cb80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2bed7d=0x190882f7^_0x889b0e;function _0x497024(){const _0x5075d9=_0x57cb80([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c288e(_0x4f2bf6(_0x3ff5a4)),_0x144145=_0x57332b(_0x1c288e(window[_0x57cb80([0x4d,0x61,0x74,0x68])][_0x57cb80([0x63,0x65,0x69,0x6c])](_0x33dd45/_0x2bed7d)));window[_0x57cb80([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57cb80([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5075d9,_0x144145);}function _0x48bfdd(){const _0x4f877c=_0x57cb80([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c288e(_0x4f2bf6(_0x3ff5a4)),_0x103928=window[_0x57cb80([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57cb80([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f877c);return _0x103928?window[_0x57cb80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57332b(_0x103928),0x10)*_0x2bed7d:null;}function _0x337cb3(_0x4f3a9a){return new window[(_0x57cb80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x166235,_0x4cc2a5)=>{_0x4f3a9a[_0x57cb80([0x74,0x68,0x65,0x6e])](_0x166235,_0x4cc2a5),window[_0x57cb80([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4cc2a5,0x193fb8b7^_0x889b0e);});}}_0x538388[_0x57cb80([0x6f,0x6e])](_0x57cb80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2406fa,_0xa15de6)=>{if(_0xa15de6[0x0]!=_0x3ff5a4)return _0x8bf6b4(_0x57cb80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa15de6[0x1]={..._0xa15de6[0x1],[_0x57cb80([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c5f89};},{[_0x57cb80([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57cb80([0x68,0x69,0x67,0x68])}),_0x538388[_0x57cb80([0x6f,0x6e])](_0x57cb80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x165ff0=>{_0x1bb609(_0x165ff0[_0x57cb80([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13628e=!0x0,_0x3282c2(_0x165ff0[_0x57cb80([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x57cb80([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57cb80([0x6c,0x6f,0x77])}),_0x1c8a2f[_0x57cb80([0x74,0x68,0x65,0x6e])](()=>{_0x13628e||_0x8bf6b4(_0x57cb80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x380a6f(){return _0x538388[_0x57cb80([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57cb80([0x76,0x69,0x65,0x77])][_0x57cb80([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x57cb80([0x61,0x75,0x74,0x6f]);}function _0x205a32(){_0x538388[_0x57cb80([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57cb80([0x76,0x69,0x65,0x77])][_0x57cb80([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x57cb80([0x61,0x75,0x74,0x6f]);}}function _0x42868b(_0x4339c3){const _0x55ea7f=[new window[(_0x57cb80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2272f0=>setTimeout(_0x2272f0,0x193752bb^_0x889b0e)),_0x1c8a2f[_0x57cb80([0x74,0x68,0x65,0x6e])](()=>new window[(_0x57cb80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3323ae=>{let _0x4215eb=0x0;_0x538388[_0x57cb80([0x6d,0x6f,0x64,0x65,0x6c])][_0x57cb80([0x6f,0x6e])](_0x57cb80([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd14963,_0x3854b2)=>{_0x3854b2[0x0][_0x57cb80([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4215eb++,_0x4215eb==(0x193e6d8f^_0x889b0e)&&(_0x3323ae(),_0xd14963[_0x57cb80([0x6f,0x66,0x66])]());});}))];return window[_0x57cb80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x57cb80([0x72,0x61,0x63,0x65])](_0x55ea7f)[_0x57cb80([0x74,0x68,0x65,0x6e])](()=>_0x4339c3);}async function _0x54f286(){await _0x1c8a2f,_0x538388[_0x57cb80([0x6d,0x6f,0x64,0x65,0x6c])][_0x57cb80([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4278f2,_0x538388[_0x57cb80([0x6d,0x6f,0x64,0x65,0x6c])][_0x57cb80([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4278f2,_0x538388[_0x57cb80([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x57cb80([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x464e96(_0x3d044a){const _0x20fdd2=_0x52cf57();_0x538388[_0x20fdd2]=_0x57cb80([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3d044a,_0x3d044a!=_0x57cb80([0x56,0x61,0x6c,0x69,0x64])&&_0x54f286();}function _0x52cf57(){const _0x3e5d42=window[_0x57cb80([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x57cb80([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x57cb80([0x6e,0x6f,0x77])]())[_0x57cb80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x57cb80([0x2e]),'');let _0x1b4680=_0x57cb80([0x41]);for(let _0x497344=0x0;_0x497344<_0x3e5d42[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x497344+=0x2){let _0x541af1=window[_0x57cb80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e5d42[_0x57cb80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x497344,_0x497344+0x2));_0x541af1>=_0x184bac[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x541af1-=_0x184bac[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1b4680+=_0x184bac[_0x541af1];}return _0x1b4680;}function _0x3b197c(){const _0x272f7d=_0x844fe1[_0x57cb80([0x73,0x70,0x6c,0x69,0x74])](_0x57cb80([0x2e]));if(0x3!=_0x272f7d[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x27bb2a(_0x272f7d[0x1]);function _0x27bb2a(_0x200e77){const _0x2ad648=_0x46e150(_0x200e77);return _0x2ad648&&_0x1fad1c()?_0x2ad648:null;function _0x1fad1c(){const _0xa633a2=_0x2ad648[_0x57cb80([0x6a,0x74,0x69])],_0x3ec137=window[_0x57cb80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa633a2[_0x57cb80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa633a2[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xa1b65b={..._0x2ad648,[_0x57cb80([0x6a,0x74,0x69])]:_0xa633a2[_0x57cb80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa633a2[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xa1b65b[_0x57cb80([0x76,0x63])],_0x4f2bf6(_0xa1b65b)==_0x3ec137;}}}async function _0x1ddcd3(){let _0x1bb23a=!0x0;try{const _0x223942=_0x844fe1[_0x57cb80([0x73,0x70,0x6c,0x69,0x74])](_0x57cb80([0x2e])),[_0x196e87,_0x18d853,_0x33da21]=_0x223942;return _0x59fdf1(_0x196e87),await _0x414539(_0x196e87,_0x18d853,_0x33da21),_0x1bb23a;}catch(_0x1591a1){return!0x1;}function _0x59fdf1(_0x1f6c9c){const _0x41eb2b=_0x46e150(_0x1f6c9c);_0x41eb2b&&_0x41eb2b[_0x57cb80([0x61,0x6c,0x67])]==_0x57cb80([0x45,0x53,0x32,0x35,0x36])||(_0x1bb23a=!0x1);}async function _0x414539(_0x43a2de,_0x27efcf,_0x3634b5){const _0x2e8efc=window[_0x57cb80([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x57cb80([0x66,0x72,0x6f,0x6d])](_0xfe2f29(_0x3634b5),_0x4cbfb8=>_0x4cbfb8[_0x57cb80([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x92e8ba=new window[(_0x57cb80([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x57cb80([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x43a2de+_0x57cb80([0x2e])+_0x27efcf),_0x167e6e=window[_0x57cb80([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x57cb80([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x167e6e)return;const _0x2cbb8c=await _0x167e6e[_0x57cb80([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x57cb80([0x6a,0x77,0x6b]),_0x651504,{[_0x57cb80([0x6e,0x61,0x6d,0x65])]:_0x57cb80([0x45,0x43,0x44,0x53,0x41]),[_0x57cb80([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x57cb80([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x57cb80([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x167e6e[_0x57cb80([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x57cb80([0x6e,0x61,0x6d,0x65])]:_0x57cb80([0x45,0x43,0x44,0x53,0x41]),[_0x57cb80([0x68,0x61,0x73,0x68])]:{[_0x57cb80([0x6e,0x61,0x6d,0x65])]:_0x57cb80([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2cbb8c,_0x2e8efc,_0x92e8ba)||(_0x1bb23a=!0x1);}}function _0x46e150(_0x4b98d1){return _0x4b98d1[_0x57cb80([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x57cb80([0x65,0x79]))?JSON[_0x57cb80([0x70,0x61,0x72,0x73,0x65])](_0xfe2f29(_0x4b98d1)):null;}function _0xfe2f29(_0x27e508){return window[_0x57cb80([0x61,0x74,0x6f,0x62])](_0x27e508[_0x57cb80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x57cb80([0x2b]))[_0x57cb80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x57cb80([0x2f])));}function _0x4f2bf6(_0x152807){let _0x208732=0x1505;function _0x5d8f08(_0x50909a){for(let _0x2f1eae=0x0;_0x2f1eae<_0x50909a[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f1eae++){const _0x50dca5=_0x50909a[_0x57cb80([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f1eae);_0x208732=(_0x208732<<0x5)+_0x208732+_0x50dca5,_0x208732&=_0x208732;}}function _0x39e944(_0x25f29f){Array[_0x57cb80([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x25f29f)?_0x25f29f[_0x57cb80([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x39e944):_0x25f29f&&typeof _0x25f29f==_0x57cb80([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x57cb80([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x25f29f)[_0x57cb80([0x73,0x6f,0x72,0x74])]()[_0x57cb80([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x21a15a,_0x2e93c8])=>{_0x5d8f08(_0x21a15a),_0x39e944(_0x2e93c8);}):_0x5d8f08(window[_0x57cb80([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x25f29f));}return _0x39e944(_0x152807),_0x208732>>>0x0;}function _0x1c288e(_0x349018){return _0x349018[_0x57cb80([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x57cb80([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x57cb80([0x30]));}function _0x57332b(_0x199534){return _0x199534[_0x57cb80([0x73,0x70,0x6c,0x69,0x74])]('')[_0x57cb80([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x57cb80([0x6a,0x6f,0x69,0x6e])]('');}function _0x4278f2(){}function _0x57cb80(_0x477422){const _0x4b7102=_0x237e;return _0x477422[_0x4b7102(0xce)](_0x1d9c51=>String[_0x4b7102(0xff)](_0x1d9c51))[_0x4b7102(0x103)]('');}_0x464e96(await _0x504bea());}(this);}[_0x2ec223(0x109)](){const _0xd472e3=_0x2ec223,_0x3d5450=this[_0xd472e3(0xe8)][_0xd472e3(0xc4)][_0xd472e3(0x100)];_0x3d5450[_0xd472e3(0x106)](_0xd472e3(0xe7))&&_0x3d5450[_0xd472e3(0xf6)](_0xd472e3(0xe7),{'allowAttributes':[_0xd472e3(0xd5)]}),_0x3d5450[_0xd472e3(0x106)](_0xd472e3(0x105))&&_0x3d5450[_0xd472e3(0xf6)](_0xd472e3(0x105),{'allowAttributes':[_0xd472e3(0xd5)]});}[_0x2ec223(0xfc)](){const _0x21ea39=_0x2ec223,_0x117453=this[_0x21ea39(0xe8)];_0x117453[_0x21ea39(0xd3)][_0x21ea39(0xde)](_0x21ea39(0x101))[_0x21ea39(0x113)]({'model':_0x21ea39(0xd5),'view':_0x21ea39(0xdb)}),_0x117453[_0x21ea39(0xd3)][_0x21ea39(0xde)](_0x21ea39(0xf9))[_0x21ea39(0xc7)]({'model':{'key':_0x21ea39(0xd5),'value':_0x1345ac=>_0x1345ac[_0x21ea39(0xf4)](_0x21ea39(0xdb))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2532ac=_0x117453[_0x21ea39(0xe9)][_0x21ea39(0xf5)](_0x21ea39(0xea));_0x2532ac&&this[_0x21ea39(0xda)](_0x2532ac,_0x21ea39(0xd4),(_0x3d7527,[_0x4fdc49,_0x2732c5])=>{const _0x15c634=_0x21ea39;_0x4fdc49[_0x15c634(0x115)](_0x15c634(0xd5),_0x2732c5);});}[_0x2ec223(0x10d)](){const _0x19dad4=_0x2ec223,_0x97bd99=this[_0x19dad4(0xe8)][_0x19dad4(0xd1)][_0x19dad4(0xf5)](_0x19dad4(0xee))||{},_0x4353e4=this[_0x19dad4(0xe8)][_0x19dad4(0xd1)][_0x19dad4(0xf5)](_0x19dad4(0xfe))||'';this[_0x19dad4(0xe0)]=_0x562620(_0xa8495a[_0x19dad4(0x102)],_0x19dad4(0xcb),{..._0x97bd99,'pubkey':_0x4353e4,'ctx-name':_0x19dad4(0xc3),'sourceList':'','imgOnly':_0x19dad4(0x10c),'removeCopyright':_0x19dad4(0x10c),'localeName':this[_0x19dad4(0xe8)][_0x19dad4(0xf3)][_0x19dad4(0x114)],'externalSourcesEmbedCss':_0x19dad4(0xe3)}),this[_0x19dad4(0xe0)][_0x19dad4(0xf1)]=_0x412592=>{const _0x267dc3=_0x19dad4;if(_0x267dc3(0x116)==_0x412592)return _0x267dc3(0xe1);},_0xa8495a[_0x19dad4(0x102)][_0x19dad4(0xe6)][_0x19dad4(0xdd)](this[_0x19dad4(0xe0)]);}[_0x2ec223(0x10b)](){const _0x49e35d=_0x2ec223;this[_0x49e35d(0xc6)]=_0x562620(_0xa8495a[_0x49e35d(0x102)],_0x49e35d(0xf0),{'ctx-name':_0x49e35d(0xc3)}),_0xa8495a[_0x49e35d(0x102)][_0x49e35d(0xe6)][_0x49e35d(0xdd)](this[_0x49e35d(0xc6)]);}[_0x2ec223(0x108)](){const _0x239c8f=_0x2ec223,_0x4a3d12=this[_0x239c8f(0xe8)][_0x239c8f(0xe9)][_0x239c8f(0xf5)](_0x239c8f(0xc1));_0x4a3d12&&this[_0x239c8f(0xda)](_0x4a3d12,_0x239c8f(0xd9),()=>{const _0x4d7765=_0x239c8f,_0x2eebf8=this[_0x4d7765(0xe8)][_0x4d7765(0xc4)][_0x4d7765(0x102)][_0x4d7765(0x111)][_0x4d7765(0xfd)]();_0x2eebf8&&_0x2eebf8[_0x4d7765(0xf4)](_0x4d7765(0xd5))&&this[_0x4d7765(0xe8)][_0x4d7765(0x10f)][_0x4d7765(0x10a)][_0x4d7765(0xf7)](_0x4d7765(0xc5),()=>{const _0x532751=_0x4d7765;_0x3f56ad(this[_0x532751(0xe8)],_0x2eebf8);});});const _0x31c4ae=this[_0x239c8f(0xe8)][_0x239c8f(0xe9)][_0x239c8f(0xf5)](_0x239c8f(0xf2));_0x31c4ae&&this[_0x239c8f(0xda)](_0x31c4ae,_0x239c8f(0xd9),()=>{const _0x230aae=_0x239c8f,_0x576119=this[_0x230aae(0xe8)][_0x230aae(0xc4)][_0x230aae(0x102)][_0x230aae(0x111)][_0x230aae(0xfd)]();_0x576119&&_0x576119[_0x230aae(0xf4)](_0x230aae(0xd5))&&this[_0x230aae(0xe8)][_0x230aae(0x10f)][_0x230aae(0x10a)][_0x230aae(0xf7)](_0x230aae(0xc5),()=>{const _0x416d85=_0x230aae;_0x3f56ad(this[_0x416d85(0xe8)],_0x576119);});});}}
|
|
23
|
+
const _0x294fa8=_0x26be;(function(_0x1879aa,_0xf5bf2c){const _0x427098=_0x26be,_0x2eb555=_0x1879aa();while(!![]){try{const _0x4dd48b=-parseInt(_0x427098(0x1c0))/0x1*(-parseInt(_0x427098(0x1d3))/0x2)+parseInt(_0x427098(0x19e))/0x3*(-parseInt(_0x427098(0x1ba))/0x4)+parseInt(_0x427098(0x1bf))/0x5+parseInt(_0x427098(0x1e6))/0x6*(-parseInt(_0x427098(0x1de))/0x7)+parseInt(_0x427098(0x1d0))/0x8+-parseInt(_0x427098(0x19d))/0x9+-parseInt(_0x427098(0x1af))/0xa*(-parseInt(_0x427098(0x1c6))/0xb);if(_0x4dd48b===_0xf5bf2c)break;else _0x2eb555['push'](_0x2eb555['shift']());}catch(_0x47d64c){_0x2eb555['push'](_0x2eb555['shift']());}}}(_0x1742,0x95174));import{Plugin as _0x4793f4}from'ckeditor5/src/core.js';import{Dialog as _0x23f545}from'ckeditor5/src/ui.js';import{createElement as _0x519d94,global as _0x7a6a50,uid as _0x4def38}from'ckeditor5/src/utils.js';import _0x328c28 from'./uploadcarecommand.js';function _0x26be(_0x50cf78,_0x35f406){const _0x174288=_0x1742();return _0x26be=function(_0x26be09,_0x28da4b){_0x26be09=_0x26be09-0x195;let _0x192b9e=_0x174288[_0x26be09];return _0x192b9e;},_0x26be(_0x50cf78,_0x35f406);}import _0x4549d2 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3fa925}from'./utils/editingutils.js';function _0x1742(){const _0x4c55d5=['_initConversion','selection','for','uploader','uc-config','init','appendChild','listenTo','uploadcare','7620904XnXiKZ','removeAttribute','_initSchema','117194uOZUhF','_ctxElement','editor','isRegistered','PictureEditing','schema','getAttribute','conversion','querySelector','isPremiumPlugin','requires','224gpgbjL','afterInit','closeMax','uc-upload-ctx-provider','remove','once','elementToAttribute','destroy','228192ZbvmTj','href','body','editing','uploadcareImageId','cleanupImage','true','_initConfig','uploadcare.pubkey','downcast','config','extend','8466174muYKTF','10809tdEZHA','_configElement','document','uploadcare.uploader','upcast','map','data-uc-image-id','get','attributeToAttribute','commands','ctxElement','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','replaceImageSource','execute','_initImageProcessingIndicator','_initCtx','5710gZkAqC','contentLanguage','iconHrefResolver','locale','insertImage','UploadcareEditing','imageBlock','fromCharCode','view','add','join','348eOCqLK','model','uploadcareImageReplace','configElement','render','1237320MWwtBS','17WGsScn','#uc-icon-arrow-down','isOfficialPlugin','pluginName','input[uploadcare-file-input]','imageInline','17061HHCDMm'];_0x1742=function(){return _0x4c55d5;};return _0x1742();}export default class i extends _0x4793f4{[_0x294fa8(0x19f)]=null;[_0x294fa8(0x1d4)]=null;static get[_0x294fa8(0x1c3)](){const _0x1feb79=_0x294fa8;return _0x1feb79(0x1b4);}static get[_0x294fa8(0x1dd)](){const _0x3c260d=_0x294fa8;return[_0x3c260d(0x1d7),_0x4549d2,_0x23f545];}static get[_0x294fa8(0x1c2)](){return!0x0;}static get[_0x294fa8(0x1dc)](){return!0x0;}get[_0x294fa8(0x1bd)](){const _0x35583a=_0x294fa8;return this[_0x35583a(0x19f)];}get[_0x294fa8(0x1a8)](){const _0x304575=_0x294fa8;return this[_0x304575(0x1d4)];}[_0x294fa8(0x1cc)](){const _0x2a8d36=_0x294fa8,_0x4e0598=this[_0x2a8d36(0x1d5)];_0x4e0598[_0x2a8d36(0x1a7)][_0x2a8d36(0x1b8)](_0x2a8d36(0x1cf),new _0x328c28(_0x4e0598));}[_0x294fa8(0x1df)](){const _0x14f2bc=_0x294fa8;this[_0x14f2bc(0x1d2)](),this[_0x14f2bc(0x1c7)](),this[_0x14f2bc(0x198)](),this[_0x14f2bc(0x1ae)](),this[_0x14f2bc(0x1ad)](),this[_0x14f2bc(0x1ce)](this[_0x14f2bc(0x1d5)],_0x14f2bc(0x1e5),()=>{const _0x38faba=_0x14f2bc;this[_0x38faba(0x19f)]&&(this[_0x38faba(0x19f)][_0x38faba(0x1e2)](),this[_0x38faba(0x19f)]=null),this[_0x38faba(0x1d4)]&&(this[_0x38faba(0x1d4)][_0x38faba(0x1e2)](),this[_0x38faba(0x1d4)]=null);const _0xf26104=_0x7a6a50[_0x38faba(0x1a0)][_0x38faba(0x1db)](_0x38faba(0x1c4));_0xf26104&&_0xf26104[_0x38faba(0x1e2)]();}),async function(_0x1fe856){const _0x3d808b=_0x272361([0x36,0x7a,0x46,0x6b,0x68,0x56,0x55,0x67,0x43,0x61,0x42,0x70,0x4a,0x49,0x51,0x37,0x34,0x50,0x75,0x57,0x52,0x5a,0x45,0x6e,0x76,0x78,0x30,0x63,0x4f,0x31,0x71,0x66,0x74,0x35,0x41,0x44,0x6a,0x4c,0x6f,0x38,0x54,0x77,0x32,0x65,0x6c,0x58,0x73,0x4b,0x62,0x64,0x39,0x6d,0x72,0x4e,0x33,0x4d,0x53,0x47,0x48,0x79,0x69,0x59]),_0x5f5155=0x1565b58,_0x1e45be=0x1513ef0^_0x5f5155,_0x508195=window[_0x272361([0x44,0x61,0x74,0x65])][_0x272361([0x6e,0x6f,0x77])](),_0x28c0ac=_0x1fe856[_0x272361([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5d17ef=new window[(_0x272361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3489c2=>{_0x28c0ac[_0x272361([0x6f,0x6e,0x63,0x65])](_0x272361([0x72,0x65,0x61,0x64,0x79]),_0x3489c2);}),_0x44d8a8={[_0x272361([0x6b,0x74,0x79])]:_0x272361([0x45,0x43]),[_0x272361([0x75,0x73,0x65])]:_0x272361([0x73,0x69,0x67]),[_0x272361([0x63,0x72,0x76])]:_0x272361([0x50,0x2d,0x32,0x35,0x36]),[_0x272361([0x78])]:_0x272361([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]),[_0x272361([0x79])]:_0x272361([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]),[_0x272361([0x61,0x6c,0x67])]:_0x272361([0x45,0x53,0x32,0x35,0x36])},_0xbaa9ef=_0x28c0ac[_0x272361([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x272361([0x67,0x65,0x74])](_0x272361([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x43fa92(){let _0x54cf7d,_0x13fe88=null,_0x3cac93=null;try{if(_0xbaa9ef==_0x272361([0x47,0x50,0x4c]))return _0x272361([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x54cf7d=_0x443092(),!_0x54cf7d)return _0x272361([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x54cf7d[_0x272361([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3cac93=_0x385c30(_0x54cf7d[_0x272361([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x54cf7d[_0x272361([0x6a,0x74,0x69])])),await _0x5b7c72()?_0x1ea3a7()?_0x3c99d7()?_0x272361([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x9e3025()?(_0x54cf7d[_0x272361([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x272361([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x13fe88=_0x5cb1de(_0x272361([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x54cf7d[_0x272361([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x272361([0x74,0x72,0x69,0x61,0x6c])&&(_0x13fe88=_0x5cb1de(_0x272361([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f2188()):_0x272361([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x272361([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x272361([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2ff110){return _0x272361([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3c99d7(){const _0x2a7e84=[_0x272361([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x272361([0x74,0x72,0x69,0x61,0x6c])][_0x272361([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54cf7d[_0x272361([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x508195/0x3e8:0xe10*_0x1e45be;return _0x54cf7d[_0x272361([0x65,0x78,0x70])]<_0x2a7e84;}function _0x1ea3a7(){const _0x47f70e=_0x54cf7d[_0x272361([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x47f70e&&(!!_0x47f70e[_0x272361([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x272361([0x2a]))||!!_0x47f70e[_0x272361([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x272361([0x55,0x50,0x4c,0x43])));}function _0x9e3025(){const _0x2ecfa2=_0x26be,_0x8cc022=_0x54cf7d[_0x272361([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x8cc022||0x0==_0x8cc022[_0x272361([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x11e041}=new URL(window[_0x272361([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2ecfa2(0x1e7)]);if(_0x8cc022[_0x272361([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11e041))return!0x0;const _0x2621db=_0x11e041[_0x272361([0x73,0x70,0x6c,0x69,0x74])](_0x272361([0x2e]));return _0x8cc022[_0x272361([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b466b=>_0x3b466b[_0x272361([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x272361([0x2a])))[_0x272361([0x6d,0x61,0x70])](_0x2ae1ab=>_0x2ae1ab[_0x272361([0x73,0x70,0x6c,0x69,0x74])](_0x272361([0x2e])))[_0x272361([0x73,0x6f,0x6d,0x65])](_0x3f28f4=>_0x2621db[_0x272361([0x65,0x76,0x65,0x72,0x79])]((_0x371d0d,_0x1c4585)=>_0x3f28f4[_0x1c4585]===_0x371d0d||_0x3f28f4[_0x1c4585]===_0x272361([0x2a])));}function _0x1f2188(){return _0x13fe88&&_0x3cac93?new window[(_0x272361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f692c,_0xbdf8a0)=>{_0x13fe88[_0x272361([0x74,0x68,0x65,0x6e])](_0x1f692c,_0xbdf8a0),_0x3cac93[_0x272361([0x74,0x68,0x65,0x6e])](_0x31640a=>{_0x31640a!=_0x272361([0x56,0x61,0x6c,0x69,0x64])&&_0x1f692c(_0x31640a);},_0xbdf8a0);}):_0x13fe88||_0x3cac93||_0x272361([0x56,0x61,0x6c,0x69,0x64]);}}function _0x385c30(_0x4047d5,_0x17350c){return new window[(_0x272361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b4e70=>{if(_0x29238a())return _0x1b4e70(_0x272361([0x56,0x61,0x6c,0x69,0x64]));_0x220982(),_0x28c0ac[_0x272361([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x272361([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c8a2a=!0x1;const _0x225b53=_0x4def38();function _0x3b24e8(_0x32bfca){return!!_0x32bfca&&(typeof _0x32bfca===_0x272361([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x32bfca===_0x272361([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x32bfca[_0x272361([0x74,0x68,0x65,0x6e])]===_0x272361([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x32bfca[_0x272361([0x63,0x61,0x74,0x63,0x68])]===_0x272361([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x328345(_0x33d259){_0x24a17e(_0x33d259)[_0x272361([0x74,0x68,0x65,0x6e])](_0x30c7bb=>{if(!_0x30c7bb||_0x30c7bb[_0x272361([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x272361([0x6f,0x6b]))return _0x272361([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x403bdf(_0x11b45d(_0x225b53+_0x17350c))!=_0x30c7bb[_0x272361([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x272361([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x272361([0x56,0x61,0x6c,0x69,0x64]);})[_0x272361([0x74,0x68,0x65,0x6e])](_0x22d2de=>(_0x5b8de0(),_0x22d2de),()=>{const _0x32d993=_0x5793e3();return null==_0x32d993?(_0x5b8de0(),_0x272361([0x56,0x61,0x6c,0x69,0x64])):_0x272361(_0x508195-_0x32d993>(0x255adf58^_0x5f5155)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x272361([0x74,0x68,0x65,0x6e])](_0x1b4e70)[_0x272361([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b4e70(_0x272361([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x91ecef=0x160b5d8^_0x5f5155;function _0x5b8de0(){const _0x1ffd2c=_0x272361([0x6c,0x6c,0x63,0x74,0x2d])+_0x403bdf(_0x11b45d(_0x4047d5)),_0x181e6d=_0x18ec53(_0x403bdf(window[_0x272361([0x4d,0x61,0x74,0x68])][_0x272361([0x63,0x65,0x69,0x6c])](_0x508195/_0x91ecef)));window[_0x272361([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x272361([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ffd2c,_0x181e6d);}function _0x5793e3(){const _0x3b9f07=_0x272361([0x6c,0x6c,0x63,0x74,0x2d])+_0x403bdf(_0x11b45d(_0x4047d5)),_0x249341=window[_0x272361([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x272361([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b9f07);return _0x249341?window[_0x272361([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18ec53(_0x249341),0x10)*_0x91ecef:null;}function _0x24a17e(_0x2ae412){return new window[(_0x272361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4815c9,_0x56ff14)=>{_0x2ae412[_0x272361([0x74,0x68,0x65,0x6e])](_0x4815c9,_0x56ff14),window[_0x272361([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x56ff14,0x1578f98^_0x5f5155);});}}_0x28c0ac[_0x272361([0x6f,0x6e])](_0x272361([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1404f9,_0x4719cb)=>{if(_0x4719cb[0x0]!=_0x4047d5)return _0x1b4e70(_0x272361([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4719cb[0x1]={..._0x4719cb[0x1],[_0x272361([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x225b53};},{[_0x272361([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x272361([0x68,0x69,0x67,0x68])}),_0x28c0ac[_0x272361([0x6f,0x6e])](_0x272361([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x52119b=>{_0x3b24e8(_0x52119b[_0x272361([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c8a2a=!0x0,_0x328345(_0x52119b[_0x272361([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x272361([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x272361([0x6c,0x6f,0x77])}),_0x5d17ef[_0x272361([0x74,0x68,0x65,0x6e])](()=>{_0x2c8a2a||_0x1b4e70(_0x272361([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x29238a(){return _0x28c0ac[_0x272361([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x272361([0x76,0x69,0x65,0x77])][_0x272361([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x272361([0x61,0x75,0x74,0x6f]);}function _0x220982(){_0x28c0ac[_0x272361([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x272361([0x76,0x69,0x65,0x77])][_0x272361([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x272361([0x61,0x75,0x74,0x6f]);}}function _0x5cb1de(_0x59919c){const _0x9edadd=[new window[(_0x272361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x155acd=>setTimeout(_0x155acd,0x15f6594^_0x5f5155)),_0x5d17ef[_0x272361([0x74,0x68,0x65,0x6e])](()=>new window[(_0x272361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a544f=>{let _0x3a09ff=0x0;_0x28c0ac[_0x272361([0x6d,0x6f,0x64,0x65,0x6c])][_0x272361([0x6f,0x6e])](_0x272361([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x28e814,_0x1d77b7)=>{_0x1d77b7[0x0][_0x272361([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a09ff++,_0x3a09ff==(0x1565aa0^_0x5f5155)&&(_0x5a544f(),_0x28e814[_0x272361([0x6f,0x66,0x66])]());});}))];return window[_0x272361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x272361([0x72,0x61,0x63,0x65])](_0x9edadd)[_0x272361([0x74,0x68,0x65,0x6e])](()=>_0x59919c);}async function _0x2e1d36(){await _0x5d17ef,_0x28c0ac[_0x272361([0x6d,0x6f,0x64,0x65,0x6c])][_0x272361([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a1ad0,_0x28c0ac[_0x272361([0x6d,0x6f,0x64,0x65,0x6c])][_0x272361([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a1ad0,_0x28c0ac[_0x272361([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x272361([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3e578d(_0x1ef8f3){const _0x544982=_0x2cfae1();_0x28c0ac[_0x544982]=_0x272361([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1ef8f3,_0x1ef8f3!=_0x272361([0x56,0x61,0x6c,0x69,0x64])&&_0x2e1d36();}function _0x2cfae1(){const _0x60817=window[_0x272361([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x272361([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x272361([0x6e,0x6f,0x77])]())[_0x272361([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x272361([0x2e]),'');let _0x467b68=_0x272361([0x7a]);for(let _0x2db7fb=0x0;_0x2db7fb<_0x60817[_0x272361([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2db7fb+=0x2){let _0x192785=window[_0x272361([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x60817[_0x272361([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2db7fb,_0x2db7fb+0x2));_0x192785>=_0x3d808b[_0x272361([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x192785-=_0x3d808b[_0x272361([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x467b68+=_0x3d808b[_0x192785];}return _0x467b68;}function _0x443092(){const _0x449eb0=_0xbaa9ef[_0x272361([0x73,0x70,0x6c,0x69,0x74])](_0x272361([0x2e]));if(0x3!=_0x449eb0[_0x272361([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x266d84(_0x449eb0[0x1]);function _0x266d84(_0x163727){const _0x222016=_0x54e5ff(_0x163727);return _0x222016&&_0x52bda8()?_0x222016:null;function _0x52bda8(){const _0x41cbb4=_0x222016[_0x272361([0x6a,0x74,0x69])],_0x50c78e=window[_0x272361([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41cbb4[_0x272361([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41cbb4[_0x272361([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57408d={..._0x222016,[_0x272361([0x6a,0x74,0x69])]:_0x41cbb4[_0x272361([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x41cbb4[_0x272361([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57408d[_0x272361([0x76,0x63])],_0x11b45d(_0x57408d)==_0x50c78e;}}}async function _0x5b7c72(){let _0x56a5f1=!0x0;try{const _0x463024=_0xbaa9ef[_0x272361([0x73,0x70,0x6c,0x69,0x74])](_0x272361([0x2e])),[_0x4496bf,_0x10ee1f,_0xc30e6d]=_0x463024;return _0x3c9281(_0x4496bf),await _0x27c5b1(_0x4496bf,_0x10ee1f,_0xc30e6d),_0x56a5f1;}catch(_0x22e62b){return!0x1;}function _0x3c9281(_0x553977){const _0x5a2f5e=_0x54e5ff(_0x553977);_0x5a2f5e&&_0x5a2f5e[_0x272361([0x61,0x6c,0x67])]==_0x272361([0x45,0x53,0x32,0x35,0x36])||(_0x56a5f1=!0x1);}async function _0x27c5b1(_0x4dc3c6,_0xe79933,_0x5889ce){const _0x3db953=window[_0x272361([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x272361([0x66,0x72,0x6f,0x6d])](_0x338294(_0x5889ce),_0x217906=>_0x217906[_0x272361([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x210723=new window[(_0x272361([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x272361([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4dc3c6+_0x272361([0x2e])+_0xe79933),_0x5999c5=window[_0x272361([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x272361([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5999c5)return;const _0x16e20f=await _0x5999c5[_0x272361([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x272361([0x6a,0x77,0x6b]),_0x44d8a8,{[_0x272361([0x6e,0x61,0x6d,0x65])]:_0x272361([0x45,0x43,0x44,0x53,0x41]),[_0x272361([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x272361([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x272361([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5999c5[_0x272361([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x272361([0x6e,0x61,0x6d,0x65])]:_0x272361([0x45,0x43,0x44,0x53,0x41]),[_0x272361([0x68,0x61,0x73,0x68])]:{[_0x272361([0x6e,0x61,0x6d,0x65])]:_0x272361([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x16e20f,_0x3db953,_0x210723)||(_0x56a5f1=!0x1);}}function _0x54e5ff(_0x1f1a01){return _0x1f1a01[_0x272361([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x272361([0x65,0x79]))?JSON[_0x272361([0x70,0x61,0x72,0x73,0x65])](_0x338294(_0x1f1a01)):null;}function _0x338294(_0x4e47bc){return window[_0x272361([0x61,0x74,0x6f,0x62])](_0x4e47bc[_0x272361([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x272361([0x2b]))[_0x272361([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x272361([0x2f])));}function _0x11b45d(_0x441b3c){let _0x13f46b=0x1505;function _0x485483(_0x116e92){for(let _0x5beb7d=0x0;_0x5beb7d<_0x116e92[_0x272361([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5beb7d++){const _0x559929=_0x116e92[_0x272361([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5beb7d);_0x13f46b=(_0x13f46b<<0x5)+_0x13f46b+_0x559929,_0x13f46b&=_0x13f46b;}}function _0x4381b1(_0xca6be){Array[_0x272361([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xca6be)?_0xca6be[_0x272361([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4381b1):_0xca6be&&typeof _0xca6be==_0x272361([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x272361([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xca6be)[_0x272361([0x73,0x6f,0x72,0x74])]()[_0x272361([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x623c9f,_0x5b3c00])=>{_0x485483(_0x623c9f),_0x4381b1(_0x5b3c00);}):_0x485483(window[_0x272361([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xca6be));}return _0x4381b1(_0x441b3c),_0x13f46b>>>0x0;}function _0x403bdf(_0x122cf7){return _0x122cf7[_0x272361([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x272361([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x272361([0x30]));}function _0x18ec53(_0x5c5f69){return _0x5c5f69[_0x272361([0x73,0x70,0x6c,0x69,0x74])]('')[_0x272361([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x272361([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a1ad0(){}function _0x272361(_0x2f3479){const _0x1c5b1a=_0x26be;return _0x2f3479[_0x1c5b1a(0x1a3)](_0x2adfb7=>String[_0x1c5b1a(0x1b6)](_0x2adfb7))[_0x1c5b1a(0x1b9)]('');}_0x3e578d(await _0x43fa92());}(this);}[_0x294fa8(0x1d2)](){const _0x3db2b6=_0x294fa8,_0x3b0acf=this[_0x3db2b6(0x1d5)][_0x3db2b6(0x1bb)][_0x3db2b6(0x1d8)];_0x3b0acf[_0x3db2b6(0x1d6)](_0x3db2b6(0x1b5))&&_0x3b0acf[_0x3db2b6(0x19c)](_0x3db2b6(0x1b5),{'allowAttributes':[_0x3db2b6(0x195)]}),_0x3b0acf[_0x3db2b6(0x1d6)](_0x3db2b6(0x1c5))&&_0x3b0acf[_0x3db2b6(0x19c)](_0x3db2b6(0x1c5),{'allowAttributes':[_0x3db2b6(0x195)]});}[_0x294fa8(0x1c7)](){const _0x1199fe=_0x294fa8,_0x50ed4f=this[_0x1199fe(0x1d5)];_0x50ed4f[_0x1199fe(0x1da)][_0x1199fe(0x1c9)](_0x1199fe(0x19a))[_0x1199fe(0x1a6)]({'model':_0x1199fe(0x195),'view':_0x1199fe(0x1a4)}),_0x50ed4f[_0x1199fe(0x1da)][_0x1199fe(0x1c9)](_0x1199fe(0x1a2))[_0x1199fe(0x1e4)]({'model':{'key':_0x1199fe(0x195),'value':_0x52f3b9=>_0x52f3b9[_0x1199fe(0x1d9)](_0x1199fe(0x1a4))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5f2a0f=_0x50ed4f[_0x1199fe(0x1a7)][_0x1199fe(0x1a5)](_0x1199fe(0x1ab));_0x5f2a0f&&this[_0x1199fe(0x1ce)](_0x5f2a0f,_0x1199fe(0x196),(_0x267074,[_0x498fd5,_0x19b5ac])=>{const _0x172a54=_0x1199fe;_0x498fd5[_0x172a54(0x1d1)](_0x172a54(0x195),_0x19b5ac);});}[_0x294fa8(0x198)](){const _0x2dd71a=_0x294fa8,_0x5dc327=this[_0x2dd71a(0x1d5)][_0x2dd71a(0x19b)][_0x2dd71a(0x1a5)](_0x2dd71a(0x1a1))||{},_0x31ee62=this[_0x2dd71a(0x1d5)][_0x2dd71a(0x19b)][_0x2dd71a(0x1a5)](_0x2dd71a(0x199))||'';this[_0x2dd71a(0x19f)]=_0x519d94(_0x7a6a50[_0x2dd71a(0x1a0)],_0x2dd71a(0x1cb),{..._0x5dc327,'pubkey':_0x31ee62,'ctx-name':_0x2dd71a(0x1ca),'sourceList':'','imgOnly':_0x2dd71a(0x197),'removeCopyright':_0x2dd71a(0x197),'localeName':this[_0x2dd71a(0x1d5)][_0x2dd71a(0x1b2)][_0x2dd71a(0x1b0)],'externalSourcesEmbedCss':_0x2dd71a(0x1aa)}),this[_0x2dd71a(0x19f)][_0x2dd71a(0x1b1)]=_0x59582f=>{const _0x353dae=_0x2dd71a;if(_0x353dae(0x1e0)==_0x59582f)return _0x353dae(0x1c1);},_0x7a6a50[_0x2dd71a(0x1a0)][_0x2dd71a(0x1e8)][_0x2dd71a(0x1cd)](this[_0x2dd71a(0x19f)]);}[_0x294fa8(0x1ae)](){const _0xb64ee3=_0x294fa8;this[_0xb64ee3(0x1d4)]=_0x519d94(_0x7a6a50[_0xb64ee3(0x1a0)],_0xb64ee3(0x1e1),{'ctx-name':_0xb64ee3(0x1ca)}),_0x7a6a50[_0xb64ee3(0x1a0)][_0xb64ee3(0x1e8)][_0xb64ee3(0x1cd)](this[_0xb64ee3(0x1d4)]);}[_0x294fa8(0x1ad)](){const _0x2055a3=_0x294fa8,_0x5b9725=this[_0x2055a3(0x1d5)][_0x2055a3(0x1a7)][_0x2055a3(0x1a5)](_0x2055a3(0x1b3));_0x5b9725&&this[_0x2055a3(0x1ce)](_0x5b9725,_0x2055a3(0x1ac),()=>{const _0x1101a3=_0x2055a3,_0x40077e=this[_0x1101a3(0x1d5)][_0x1101a3(0x1bb)][_0x1101a3(0x1a0)][_0x1101a3(0x1c8)][_0x1101a3(0x1a9)]();_0x40077e&&_0x40077e[_0x1101a3(0x1d9)](_0x1101a3(0x195))&&this[_0x1101a3(0x1d5)][_0x1101a3(0x1e9)][_0x1101a3(0x1b7)][_0x1101a3(0x1e3)](_0x1101a3(0x1be),()=>{const _0x41de32=_0x1101a3;_0x3fa925(this[_0x41de32(0x1d5)],_0x40077e);});});const _0x546056=this[_0x2055a3(0x1d5)][_0x2055a3(0x1a7)][_0x2055a3(0x1a5)](_0x2055a3(0x1bc));_0x546056&&this[_0x2055a3(0x1ce)](_0x546056,_0x2055a3(0x1ac),()=>{const _0x14981e=_0x2055a3,_0x490c6a=this[_0x14981e(0x1d5)][_0x14981e(0x1bb)][_0x14981e(0x1a0)][_0x14981e(0x1c8)][_0x14981e(0x1a9)]();_0x490c6a&&_0x490c6a[_0x14981e(0x1d9)](_0x14981e(0x195))&&this[_0x14981e(0x1d5)][_0x14981e(0x1e9)][_0x14981e(0x1b7)][_0x14981e(0x1e3)](_0x14981e(0x1be),()=>{const _0x321330=_0x14981e;_0x3fa925(this[_0x321330(0x1d5)],_0x490c6a);});});}}
|