@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250629.0 → 0.0.0-nightly-20250630.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 _0x20b168,Command as _0x15b2e5}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x219a0b,IconGooglePhotos as _0x216f1c,IconGoogleDrive as _0x402262,IconFacebook as _0x586eee,IconDropbox as _0x10c1a0,IconUploadcareLink as _0x1358ff,IconUploadcareImageUpload as _0x39e20e,IconError as _0x47e393,IconUploadcareImageEdit as _0x246a0e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4ad196,MenuBarMenuListItemButtonView as _0x5806a7,View as _0x478f1f,FocusCycler as _0x2a7f8c,Dialog as _0x337386,DialogViewPosition as _0x17f53a,SpinnerView as _0x271914,IconView as _0x300c79,Notification as _0x444149}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x33060f,DomEmitterMixin as _0x6c2bc6,global as _0x5df829,getAncestors as _0x588949,ObservableMixin as _0x572926,uid as _0x4268c0,createElement as _0x4ddb5a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x298334}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x19036c,info as _0x287068}from'@uploadcare/upload-client';import*as _0x1d805e from'@uploadcare/file-uploader';var i=function(_0x2b46b9){return _0x2b46b9['Local']='local',_0x2b46b9['URL']='url',_0x2b46b9['Dropbox']='dropbox',_0x2b46b9['GDrive']='gdrive',_0x2b46b9['Facebook']='facebook',_0x2b46b9['GPhotos']='gphotos',_0x2b46b9['OneDrive']='onedrive',_0x2b46b9;}({});function _(_0x40fef0,_0x437db6,_0x47c3ea){const t=_0x40fef0['t'],_0x50133b=_0x40fef0['t'];switch(_0x437db6){case i['Local']:return{'text':_0x50133b('Insert'===_0x47c3ea?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x50133b('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x47c3ea?_0x50133b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x50133b('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x47c3ea?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x47c3ea?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x47c3ea?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x47c3ea?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x47c3ea?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x437db6;}}class e extends _0x20b168{['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 _0x4055fd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2281c3;for(const _0x2c075f in _0x4055fd){const _0x516b34=_0x2c075f,_0x256695=_0x4055fd[_0x516b34];if('uploadcareLicenseKeyValid'==_0x256695||'uploadcareLicenseKeyInvalid'==_0x256695||'uploadcareLicenseKeyExpired'==_0x256695||'uploadcareLicenseKeyDomainLimit'==_0x256695||'uploadcareLicenseKeyNotAllowed'==_0x256695||'uploadcareLicenseKeyEvaluationLimit'==_0x256695||'uploadcareLicenseKeyTrialLimit'==_0x256695||'uploadcareLicenseKeyUsageLimit'==_0x256695){delete _0x4055fd[_0x516b34],_0x2281c3=_0x256695,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2281c3&&_0x4055fd['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2281c3&&_0x4055fd['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2281c3&&_0x4055fd['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2281c3&&_0x4055fd['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2281c3&&_0x4055fd['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2281c3&&_0x4055fd['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2281c3&&_0x4055fd['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x21c1e2}=this,_0x414eba=_0x21c1e2['commands']['get']('uploadcare');if(!_0x414eba)return;const _0x4ccf24=this['_normalizeConfigSourceList'](_0x21c1e2['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2d0ce2,_0x244303)=>{const _0x42bb39=this['_getIntegrationKey'](_0x244303['type']);return _0x2d0ce2[_0x42bb39]||(_0x2d0ce2[_0x42bb39]=[]),_0x2d0ce2[_0x42bb39]['push'](_0x244303),_0x2d0ce2;},{});_0x21c1e2['plugins']['has']('ImageInsertUI')&&_0x21c1e2['commands']['get']('uploadcare')&&Object['entries'](_0x4ccf24)['forEach'](([_0x5c6436,_0x1dc6d4])=>{_0x21c1e2['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5c6436,'observable':()=>_0x414eba,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1dc6d4),'formViewCreator':()=>this['_createDropdownButtons'](_0x1dc6d4),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1dc6d4),'override':'assetManager'!==_0x5c6436});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x42eac){const {locale:_0x3dc5e0}=this['editor'];return _0x42eac['map'](_0x49a2b9=>{const _0x3a7993=_(_0x3dc5e0,_0x49a2b9,'Insert');switch(_0x49a2b9){case i['Local']:return{'icon':_0x39e20e,'type':i['Local'],..._0x3a7993};case i['URL']:return{'icon':_0x1358ff,'type':i['URL'],..._0x3a7993};case i['Dropbox']:return{'icon':_0x10c1a0,'type':i['Dropbox'],..._0x3a7993};case i['Facebook']:return{'icon':_0x586eee,'type':i['Facebook'],..._0x3a7993};case i['GDrive']:return{'icon':_0x402262,'type':i['GDrive'],..._0x3a7993};case i['GPhotos']:return{'icon':_0x216f1c,'type':i['GPhotos'],..._0x3a7993};case i['OneDrive']:return{'icon':_0x219a0b,'type':i['OneDrive'],..._0x3a7993};}});}['_getIntegrationKey'](_0xcac3af){switch(_0xcac3af){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x11244a,_0x524e56){const _0x56d333=this['editor'],_0x4c2c79=new _0x11244a(_0x56d333['locale']),_0xccd3e7=_0x56d333['commands']['get']('uploadcare');return _0x4c2c79['bind']('isEnabled')['to'](_0xccd3e7),_0x4c2c79['on']('execute',()=>{_0xccd3e7['execute'](_0x524e56);}),_0x4c2c79;}['_createToolbarButton'](_0x1ca16d){const {locale:_0x4ed110}=this['editor'],_0x4ce83d=this['editor']['plugins']['get']('ImageInsertUI'),_0x269e29=_0x1ca16d[0x0],_0x3c1089=this['_createButton'](_0x4ad196,_0x269e29['type']);return _0x3c1089['icon']=_0x269e29['icon'],_0x3c1089['bind']('label')['to'](_0x4ce83d,'isImageSelected',_0x232aa4=>_(_0x4ed110,_0x269e29['type'],_0x232aa4?'Replace':'Insert')['text']),_0x3c1089['tooltip']=!0x0,_0x3c1089;}['_createDropdownButtons'](_0x2ef297){const {locale:_0x15e573}=this['editor'],_0x5d63cc=this['editor']['plugins']['get']('ImageInsertUI');return _0x2ef297['map'](_0x95c370=>{const _0x2091c6=this['_createButton'](_0x4ad196,_0x95c370['type']);return _0x2091c6['withText']=!0x0,_0x2091c6['icon']=_0x95c370['icon'],_0x2091c6['bind']('label')['to'](_0x5d63cc,'isImageSelected',_0x4456bd=>_(_0x15e573,_0x95c370['type'],_0x4456bd?'Replace':'Insert')['text']),_0x2091c6;});}['_createMenuBarButtons'](_0xf83eab){return _0xf83eab['map'](_0x315844=>{const _0xa69f7e=this['_createButton'](_0x5806a7,_0x315844['type']);return _0xa69f7e['icon']=_0x315844['icon'],_0xa69f7e['label']=_0x315844['shortText'],_0xa69f7e;});}}class F extends _0x478f1f{['focusTracker'];['focusCycler'];constructor(_0x3b4d5f){super(_0x3b4d5f),this['focusTracker']=new _0x33060f(),this['focusCycler']=new _0x2a7f8c({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x1dd3da,_0x5dbe24){super(_0x1dd3da),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-'+_0x5dbe24}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x52de94,_0x17b6b0){const _0x524c5d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x113d84=>_0x113d84<=_0x17b6b0)['map'](_0x24eba7=>_0x52de94['replace'](/\/$/,'')+'/-/resize/'+_0x24eba7+'x/\x20'+_0x24eba7+'w');return{'imageFallbackUrl':_0x52de94,'imageSources':[{'srcset':_0x524c5d['join'](',\x20'),'sizes':'(max-width:\x20'+_0x17b6b0+'px)\x20100vw,\x20'+_0x17b6b0+'px','type':'image/webp'}]};}function C(_0x5082ba,_0x25cd0c,_0x556f04){const _0x28d913=_0x5082ba['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x28d913?parseInt(_0x28d913[0x1],0xa):_0x25cd0c,'height':_0x28d913?parseInt(_0x28d913[0x2],0xa):_0x556f04};}function p(_0x5debf4,_0x47e020){const _0x40a0ac=new(_0x6c2bc6())(),_0x1070a9=_0x5debf4['plugins']['get']('ImageUtils'),_0x46edfb=_0x5debf4['editing']['mapper']['toViewElement'](_0x47e020),_0x383c32=_0x1070a9['findViewImgElement'](_0x46edfb),_0x174c11=_0x5debf4['editing']['view']['domConverter']['viewToDom'](_0x383c32),_0x1a37a6=_0x47e020['getAttribute']('width'),_0x3c6656=_0x47e020['getAttribute']('height'),_0x5f3ad0='image-processing';_0x5debf4['editing']['view']['change'](_0x384f2f=>{_0x384f2f['addClass'](_0x5f3ad0,_0x46edfb),_0x384f2f['setStyle']('aspect-ratio',_0x1a37a6+'/'+_0x3c6656,_0x383c32);}),_0x40a0ac['listenTo'](_0x174c11,'load',()=>{_0x40a0ac['stopListening'](_0x174c11,'load'),_0x5debf4['editing']['view']['change'](_0x1f1a1e=>{_0x1f1a1e['removeClass'](_0x5f3ad0,_0x46edfb),_0x1f1a1e['removeStyle']('aspect-ratio',_0x383c32);});});}function G(_0x2ff1e2){if(Array['isArray'](_0x2ff1e2)){const _0xc1a947=_0x2ff1e2['map'](G);return _0x4b2591=>_0xc1a947['some'](_0x5dba71=>_0x5dba71(_0x4b2591));}if('origin'==_0x2ff1e2){const _0x5ebb8f=_0x5df829['window']['location']['origin'];return _0x4145cc=>new URL(_0x4145cc,_0x5df829['document']['baseURI'])['origin']==_0x5ebb8f;}return'function'==typeof _0x2ff1e2?_0x2ff1e2:_0x2ff1e2 instanceof RegExp?_0x4c4f3d=>!(!_0x4c4f3d['match'](_0x2ff1e2)&&!_0x4c4f3d['replace'](/^https?:\/\//,'')['match'](_0x2ff1e2)):()=>!0x1;}function S(_0x473e8d,_0x5c3367){return _0x588949(_0x473e8d['target'])['includes'](_0x5c3367);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x572926(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x57197c,_0x3c15d3,_0xebdc6e){super(),this['_editor']=_0x57197c,this['_editing']=_0x3c15d3,this['_dialog']=_0x57197c['plugins']['get'](_0x337386),this['_api']=_0x3c15d3['ctxElement']['getAPI'](),this['_type']=_0xebdc6e,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:_0x54ab5d,model:_0x505c34}=this['_editor'],_0x63f572=_0x505c34['document']['selection']['getSelectedElement'](),_0x3f4326=_0x63f572&&(_0x63f572['is']('element','imageBlock')||_0x63f572['is']('element','imageInline'));this['_formView']=new x(_0x54ab5d,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x39e20e,'title':_(_0x54ab5d,this['_type'],_0x3f4326?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x17f53a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5f0ed0=>!S(_0x5f0ed0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3492a4}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x48d452=>{const _0x516c9b=_0x3492a4['length'];for(const _0x1e8323 of _0x3492a4){const _0x1f0508=_0x1e8323===_0x3492a4[_0x516c9b-0x1],{cdnUrl:_0x1cf88a,fileInfo:_0xed2382}=_0x1e8323;if(!_0x1cf88a||!_0xed2382)continue;const {width:_0x3abae3,height:_0x2047c4}=_0xed2382['imageInfo'],_0x35a23d=C(_0x1cf88a,_0x3abae3,_0x2047c4),_0x49bbd9=k(_0x1cf88a,_0x35a23d['width']),_0x361884={'id':_0xed2382['uuid'],'type':'image','attributes':{'imageDimension':_0x35a23d,..._0x49bbd9}};this['_insertAsset'](_0x361884,_0x1f0508,_0x48d452);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3df215=>{'idle'===_0x3df215['detail']['status']&&!_0x3df215['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2ebfec,_0x369634,_0xd13c7d){const _0xf751f8=this['_editor']['model']['document']['selection'],_0x5f3b08=_0xf751f8['getSelectedElement'](),_0x440bd1=!(!_0x5f3b08||!_0x5f3b08['is']('element','imageInline'));_0xd13c7d['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2ebfec,_0x440bd1),_0x369634||_0xd13c7d['setSelection'](_0xf751f8['getLastPosition']());}['_insertImage'](_0x4c2a89,_0x4ef898){const _0x209eb5=this['_editor'],{imageDimension:_0x101b62,imageFallbackUrl:_0x545eef,imageSources:_0x5300bb}=_0x4c2a89['attributes'];_0x209eb5['execute']('insertImage',{'imageType':_0x4ef898?'imageInline':null,'source':{'uploadcareImageId':_0x4c2a89['id'],'src':_0x545eef,'sources':_0x5300bb,..._0x101b62}});}}class w extends _0x15b2e5{['_editing'];['_controller']=null;static get['requires'](){return[_0x337386,o];}constructor(_0x2a4a3a){super(_0x2a4a3a),this['_editing']=_0x2a4a3a['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4fe782){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x4fe782);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x198f1d,publicKey:_0x388a63,signal:_0x5570bf,onProgress:_0x11f966}){return _0x19036c(_0x198f1d,{'publicKey':_0x388a63,'store':'auto','signal':_0x5570bf,'onProgress':_0x11f966});}static['getInfo'](_0x4090db,_0x16667e){return _0x287068(_0x4090db,_0x16667e);}}class f extends _0x20b168{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x298334,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x303ce5=this['editor'];if(!!!_0x303ce5['config']['get']('uploadcare'))return;_0x303ce5['plugins']['get'](_0x298334)['createUploadAdapter']=_0x3fc444=>new A(_0x3fc444,_0x303ce5),_0x303ce5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1a5089,{imageElement:_0x2b192c,data:_0x5afd97})=>{_0x303ce5['model']['change'](_0x377490=>{_0x377490['setAttribute']('uploadcareImageId',_0x5afd97['uploadcareImageId'],_0x2b192c);});});}}class A{['loader'];['editor'];['controller'];constructor(_0xdf849d,_0x7cac35){this['loader']=_0xdf849d,this['editor']=_0x7cac35,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4baa62=this['editor']['config']['get']('uploadcare.pubkey'),_0x411f88=await this['loader']['file'];return j['upload']({'file':_0x411f88,'publicKey':_0x4baa62,'signal':this['controller']['signal'],'onProgress':_0x24468b=>{_0x24468b&&_0x24468b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x24468b['value']);}})['then'](async _0x4cd04e=>{const {imageFallbackUrl:_0x39683e,imageSources:_0x47251d}=k(_0x4cd04e['cdnUrl'],_0x4cd04e['imageInfo']['width']);return{'uploadcareImageId':_0x4cd04e['uuid'],'default':_0x39683e,'sources':_0x47251d};})['catch'](()=>{const _0x16a780=t('Cannot\x20upload\x20file:')+('\x20'+_0x411f88['name']+'.');return Promise['reject'](_0x16a780);});}['abort'](){this['controller']['abort']();}}class o extends _0x20b168{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x337386];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x567e1f){super(_0x567e1f),this['ucContextId']=_0x4268c0();}['init'](){const _0x53f441=this['editor'];_0x53f441['commands']['add']('uploadcare',new w(_0x53f441));}['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 _0x574598=_0x5df829['document']['querySelector']('input[uploadcare-file-input]');_0x574598&&_0x574598['remove']();}),async function(_0x40703b){const _0x3661ab=_0xe3b853([0x33,0x72,0x79,0x56,0x62,0x7a,0x75,0x42,0x34,0x49,0x45,0x73,0x66,0x4b,0x48,0x30,0x6e,0x55,0x6d,0x44,0x58,0x59,0x39,0x52,0x6c,0x5a,0x51,0x61,0x46,0x36,0x47,0x4c,0x67,0x37,0x63,0x54,0x41,0x69,0x57,0x35,0x4a,0x77,0x74,0x53,0x38,0x32,0x43,0x76,0x71,0x4e,0x70,0x4d,0x4f,0x78,0x68,0x65,0x6a,0x31,0x50,0x64,0x6b,0x6f]),_0x4d0350=0x4b9707c4,_0x3983e9=0x4b906be4^_0x4d0350,_0xa3cbdb=window[_0xe3b853([0x44,0x61,0x74,0x65])][_0xe3b853([0x6e,0x6f,0x77])](),_0x33c56b=_0x40703b[_0xe3b853([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a01c0=new window[(_0xe3b853([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x327343=>{_0x33c56b[_0xe3b853([0x6f,0x6e,0x63,0x65])](_0xe3b853([0x72,0x65,0x61,0x64,0x79]),_0x327343);}),_0x1bad00={[_0xe3b853([0x6b,0x74,0x79])]:_0xe3b853([0x45,0x43]),[_0xe3b853([0x75,0x73,0x65])]:_0xe3b853([0x73,0x69,0x67]),[_0xe3b853([0x63,0x72,0x76])]:_0xe3b853([0x50,0x2d,0x32,0x35,0x36]),[_0xe3b853([0x78])]:_0xe3b853([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]),[_0xe3b853([0x79])]:_0xe3b853([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]),[_0xe3b853([0x61,0x6c,0x67])]:_0xe3b853([0x45,0x53,0x32,0x35,0x36])},_0x482431=_0x33c56b[_0xe3b853([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe3b853([0x67,0x65,0x74])](_0xe3b853([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5a2b08(){let _0x2657f3,_0x198730=null,_0x326670=null;try{if(_0x482431==_0xe3b853([0x47,0x50,0x4c]))return _0xe3b853([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2657f3=_0x527e84(),!_0x2657f3)return _0xe3b853([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2657f3[_0xe3b853([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x326670=_0x408b14(_0x2657f3[_0xe3b853([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2657f3[_0xe3b853([0x6a,0x74,0x69])])),await _0x1ea5cc()?_0x48a84b()?_0xf99005()?_0xe3b853([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x460da3()?(_0x2657f3[_0xe3b853([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe3b853([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x198730=_0x23fa20(_0xe3b853([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2657f3[_0xe3b853([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe3b853([0x74,0x72,0x69,0x61,0x6c])&&(_0x198730=_0x23fa20(_0xe3b853([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x359b45()):_0xe3b853([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe3b853([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe3b853([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xe3b853([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xf99005(){const _0x2f807d=[_0xe3b853([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe3b853([0x74,0x72,0x69,0x61,0x6c])][_0xe3b853([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2657f3[_0xe3b853([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa3cbdb/0x3e8:0xe10*_0x3983e9;return _0x2657f3[_0xe3b853([0x65,0x78,0x70])]<_0x2f807d;}function _0x48a84b(){const _0x13a390=_0x2657f3[_0xe3b853([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x13a390&&(!!_0x13a390[_0xe3b853([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe3b853([0x2a]))||!!_0x13a390[_0xe3b853([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe3b853([0x55,0x50,0x4c,0x43])));}function _0x460da3(){const _0x7657b5=_0x2657f3[_0xe3b853([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x7657b5||0x0==_0x7657b5[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3f9e59}=new URL(window[_0xe3b853([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x7657b5[_0xe3b853([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f9e59))return!0x0;const _0x35a9a5=_0x3f9e59[_0xe3b853([0x73,0x70,0x6c,0x69,0x74])](_0xe3b853([0x2e]));return _0x7657b5[_0xe3b853([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x547acf=>_0x547acf[_0xe3b853([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe3b853([0x2a])))[_0xe3b853([0x6d,0x61,0x70])](_0x14200c=>_0x14200c[_0xe3b853([0x73,0x70,0x6c,0x69,0x74])](_0xe3b853([0x2e])))[_0xe3b853([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e8358=>_0x5e8358[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x35a9a5[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe3b853([0x6d,0x61,0x70])](_0x3acf90=>Array(_0x35a9a5[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3acf90[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe3b853([0x66,0x69,0x6c,0x6c])](_0x3acf90[0x0]===_0xe3b853([0x2a])?_0xe3b853([0x2a]):'')[_0xe3b853([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3acf90))[_0xe3b853([0x73,0x6f,0x6d,0x65])](_0x5cf26b=>_0x35a9a5[_0xe3b853([0x65,0x76,0x65,0x72,0x79])]((_0x2a41ed,_0x58e2d4)=>_0x5cf26b[_0x58e2d4]===_0x2a41ed||_0x5cf26b[_0x58e2d4]===_0xe3b853([0x2a])));}function _0x359b45(){return _0x198730&&_0x326670?new window[(_0xe3b853([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a508b,_0x1c0278)=>{_0x198730[_0xe3b853([0x74,0x68,0x65,0x6e])](_0x2a508b,_0x1c0278),_0x326670[_0xe3b853([0x74,0x68,0x65,0x6e])](_0x1f2dd0=>{_0x1f2dd0!=_0xe3b853([0x56,0x61,0x6c,0x69,0x64])&&_0x2a508b(_0x1f2dd0);},_0x1c0278);}):_0x198730||_0x326670||_0xe3b853([0x56,0x61,0x6c,0x69,0x64]);}}function _0x408b14(_0x20e746,_0x2df988){return new window[(_0xe3b853([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x349ed1=>{if(_0x389071())return _0x349ed1(_0xe3b853([0x56,0x61,0x6c,0x69,0x64]));_0x103d3f(),_0x33c56b[_0xe3b853([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe3b853([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19f2db=!0x1;const _0x31c071=_0x4268c0();function _0x5f1315(_0x54cc29){return!!_0x54cc29&&(typeof _0x54cc29===_0xe3b853([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x54cc29===_0xe3b853([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x54cc29[_0xe3b853([0x74,0x68,0x65,0x6e])]===_0xe3b853([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x54cc29[_0xe3b853([0x63,0x61,0x74,0x63,0x68])]===_0xe3b853([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x51ab16(_0x7f215a){_0x4fe6f8(_0x7f215a)[_0xe3b853([0x74,0x68,0x65,0x6e])](_0x30f4c8=>{if(!_0x30f4c8||_0x30f4c8[_0xe3b853([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe3b853([0x6f,0x6b]))return _0xe3b853([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5299f7(_0xdd86c1(_0x31c071+_0x2df988))!=_0x30f4c8[_0xe3b853([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe3b853([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe3b853([0x56,0x61,0x6c,0x69,0x64]);})[_0xe3b853([0x74,0x68,0x65,0x6e])](_0x32006e=>(_0x39905a(),_0x32006e),()=>{const _0x5a5cd2=_0x3db615();return null==_0x5a5cd2?(_0x39905a(),_0xe3b853([0x56,0x61,0x6c,0x69,0x64])):_0xe3b853(_0xa3cbdb-_0x5a5cd2>(0x6f9b83c4^_0x4d0350)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe3b853([0x74,0x68,0x65,0x6e])](_0x349ed1)[_0xe3b853([0x63,0x61,0x74,0x63,0x68])](()=>{_0x349ed1(_0xe3b853([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1c806c=0x4ba1e944^_0x4d0350;function _0x39905a(){const _0x54153a=_0xe3b853([0x6c,0x6c,0x63,0x74,0x2d])+_0x5299f7(_0xdd86c1(_0x20e746)),_0xed82d6=_0x5ee186(_0x5299f7(window[_0xe3b853([0x4d,0x61,0x74,0x68])][_0xe3b853([0x63,0x65,0x69,0x6c])](_0xa3cbdb/_0x1c806c)));window[_0xe3b853([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe3b853([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54153a,_0xed82d6);}function _0x3db615(){const _0xc2ee8b=_0xe3b853([0x6c,0x6c,0x63,0x74,0x2d])+_0x5299f7(_0xdd86c1(_0x20e746)),_0x1d346a=window[_0xe3b853([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe3b853([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc2ee8b);return _0x1d346a?window[_0xe3b853([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ee186(_0x1d346a),0x10)*_0x1c806c:null;}function _0x4fe6f8(_0x486fb8){return new window[(_0xe3b853([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e8f9f,_0x16e67f)=>{_0x486fb8[_0xe3b853([0x74,0x68,0x65,0x6e])](_0x3e8f9f,_0x16e67f),window[_0xe3b853([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x16e67f,0x4b96d304^_0x4d0350);});}}_0x33c56b[_0xe3b853([0x6f,0x6e])](_0xe3b853([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5276da,_0x5ea1d2)=>{if(_0x5ea1d2[0x0]!=_0x20e746)return _0x349ed1(_0xe3b853([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5ea1d2[0x1]={..._0x5ea1d2[0x1],[_0xe3b853([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31c071};},{[_0xe3b853([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe3b853([0x68,0x69,0x67,0x68])}),_0x33c56b[_0xe3b853([0x6f,0x6e])](_0xe3b853([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc3ae02=>{_0x5f1315(_0xc3ae02[_0xe3b853([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19f2db=!0x0,_0x51ab16(_0xc3ae02[_0xe3b853([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe3b853([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe3b853([0x6c,0x6f,0x77])}),_0x5a01c0[_0xe3b853([0x74,0x68,0x65,0x6e])](()=>{_0x19f2db||_0x349ed1(_0xe3b853([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x389071(){return _0x33c56b[_0xe3b853([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe3b853([0x76,0x69,0x65,0x77])][_0xe3b853([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe3b853([0x61,0x75,0x74,0x6f]);}function _0x103d3f(){_0x33c56b[_0xe3b853([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe3b853([0x76,0x69,0x65,0x77])][_0xe3b853([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe3b853([0x61,0x75,0x74,0x6f]);}}function _0x23fa20(_0x365c5a){const _0xa58b24=[new window[(_0xe3b853([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x393a1f=>setTimeout(_0x393a1f,0x4b9e3908^_0x4d0350)),_0x5a01c0[_0xe3b853([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe3b853([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e08f7=>{let _0xb8ea9b=0x0;_0x33c56b[_0xe3b853([0x6d,0x6f,0x64,0x65,0x6c])][_0xe3b853([0x6f,0x6e])](_0xe3b853([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a6c78,_0x52d579)=>{_0x52d579[0x0][_0xe3b853([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xb8ea9b++,_0xb8ea9b==(0x4b97063c^_0x4d0350)&&(_0x4e08f7(),_0x1a6c78[_0xe3b853([0x6f,0x66,0x66])]());});}))];return window[_0xe3b853([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe3b853([0x72,0x61,0x63,0x65])](_0xa58b24)[_0xe3b853([0x74,0x68,0x65,0x6e])](()=>_0x365c5a);}async function _0xc63657(){await _0x5a01c0,_0x33c56b[_0xe3b853([0x6d,0x6f,0x64,0x65,0x6c])][_0xe3b853([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x144341,_0x33c56b[_0xe3b853([0x6d,0x6f,0x64,0x65,0x6c])][_0xe3b853([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x144341,_0x33c56b[_0xe3b853([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe3b853([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x280490(_0x18cb84){const _0x68d442=_0x444a95();_0x33c56b[_0x68d442]=_0xe3b853([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x18cb84,_0x18cb84!=_0xe3b853([0x56,0x61,0x6c,0x69,0x64])&&_0xc63657();}function _0x444a95(){const _0x1a1298=window[_0xe3b853([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe3b853([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe3b853([0x6e,0x6f,0x77])]())[_0xe3b853([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe3b853([0x2e]),'');let _0x3efd91=_0xe3b853([0x72]);for(let _0x6a3741=0x0;_0x6a3741<_0x1a1298[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x6a3741+=0x2){let _0x94ae21=window[_0xe3b853([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a1298[_0xe3b853([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6a3741,_0x6a3741+0x2));_0x94ae21>=_0x3661ab[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x94ae21-=_0x3661ab[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3efd91+=_0x3661ab[_0x94ae21];}return _0x3efd91;}function _0x527e84(){const _0x359d95=_0x482431[_0xe3b853([0x73,0x70,0x6c,0x69,0x74])](_0xe3b853([0x2e]));if(0x3!=_0x359d95[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x25c56f(_0x359d95[0x1]);function _0x25c56f(_0x1290fb){const _0x5000dd=_0x9b36b6(_0x1290fb);return _0x5000dd&&_0x352888()?_0x5000dd:null;function _0x352888(){const _0x54bd81=_0x5000dd[_0xe3b853([0x6a,0x74,0x69])],_0x2f1778=window[_0xe3b853([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54bd81[_0xe3b853([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54bd81[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x126c6d={..._0x5000dd,[_0xe3b853([0x6a,0x74,0x69])]:_0x54bd81[_0xe3b853([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x54bd81[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x126c6d[_0xe3b853([0x76,0x63])],_0xdd86c1(_0x126c6d)==_0x2f1778;}}}async function _0x1ea5cc(){let _0x4035bb=!0x0;try{const _0x301957=_0x482431[_0xe3b853([0x73,0x70,0x6c,0x69,0x74])](_0xe3b853([0x2e])),[_0x2fc5a0,_0x24a1c5,_0xef43c6]=_0x301957;return _0x116034(_0x2fc5a0),await _0x36037d(_0x2fc5a0,_0x24a1c5,_0xef43c6),_0x4035bb;}catch{return!0x1;}function _0x116034(_0x1bb8ce){const _0x19749c=_0x9b36b6(_0x1bb8ce);_0x19749c&&_0x19749c[_0xe3b853([0x61,0x6c,0x67])]==_0xe3b853([0x45,0x53,0x32,0x35,0x36])||(_0x4035bb=!0x1);}async function _0x36037d(_0x59d47a,_0x14cdcf,_0x2676cd){const _0x3e0e22=window[_0xe3b853([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe3b853([0x66,0x72,0x6f,0x6d])](_0x1152ca(_0x2676cd),_0x161223=>_0x161223[_0xe3b853([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ea59e=new window[(_0xe3b853([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe3b853([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59d47a+_0xe3b853([0x2e])+_0x14cdcf),_0x4cceca=window[_0xe3b853([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe3b853([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4cceca)return;const _0x949426=await _0x4cceca[_0xe3b853([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe3b853([0x6a,0x77,0x6b]),_0x1bad00,{[_0xe3b853([0x6e,0x61,0x6d,0x65])]:_0xe3b853([0x45,0x43,0x44,0x53,0x41]),[_0xe3b853([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe3b853([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe3b853([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4cceca[_0xe3b853([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe3b853([0x6e,0x61,0x6d,0x65])]:_0xe3b853([0x45,0x43,0x44,0x53,0x41]),[_0xe3b853([0x68,0x61,0x73,0x68])]:{[_0xe3b853([0x6e,0x61,0x6d,0x65])]:_0xe3b853([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x949426,_0x3e0e22,_0x5ea59e)||(_0x4035bb=!0x1);}}function _0x9b36b6(_0x478dee){return _0x478dee[_0xe3b853([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe3b853([0x65,0x79]))?JSON[_0xe3b853([0x70,0x61,0x72,0x73,0x65])](_0x1152ca(_0x478dee)):null;}function _0x1152ca(_0x54105c){return window[_0xe3b853([0x61,0x74,0x6f,0x62])](_0x54105c[_0xe3b853([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe3b853([0x2b]))[_0xe3b853([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe3b853([0x2f])));}function _0xdd86c1(_0x13dbec){let _0xb44547=0x1505;function _0x5f4bdb(_0x4e50a4){for(let _0x36b383=0x0;_0x36b383<_0x4e50a4[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36b383++){const _0x5cb2cb=_0x4e50a4[_0xe3b853([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x36b383);_0xb44547=(_0xb44547<<0x5)+_0xb44547+_0x5cb2cb,_0xb44547&=_0xb44547;}}function _0x497200(_0xb04178){Array[_0xe3b853([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb04178)?_0xb04178[_0xe3b853([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x497200):_0xb04178&&typeof _0xb04178==_0xe3b853([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe3b853([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb04178)[_0xe3b853([0x73,0x6f,0x72,0x74])]()[_0xe3b853([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1c7ebf,_0x58de55])=>{_0x5f4bdb(_0x1c7ebf),_0x497200(_0x58de55);}):_0x5f4bdb(window[_0xe3b853([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb04178));}return _0x497200(_0x13dbec),_0xb44547>>>0x0;}function _0x5299f7(_0x314e7d){return _0x314e7d[_0xe3b853([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe3b853([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe3b853([0x30]));}function _0x5ee186(_0x153a26){return _0x153a26[_0xe3b853([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe3b853([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe3b853([0x6a,0x6f,0x69,0x6e])]('');}function _0x144341(){}function _0xe3b853(_0x2665d2){return _0x2665d2['map'](_0x443158=>String['fromCharCode'](_0x443158))['join']('');}_0x280490(await _0x5a2b08());}(this);}['_initSchema'](){const _0x209905=this['editor']['model']['schema'];_0x209905['isRegistered']('imageBlock')&&_0x209905['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x209905['isRegistered']('imageInline')&&_0x209905['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x59bac8=this['editor'];_0x59bac8['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x59bac8['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x327579=>_0x327579['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4601aa=_0x59bac8['commands']['get']('replaceImageSource');_0x4601aa&&this['listenTo'](_0x4601aa,'cleanupImage',(_0x346a9b,[_0xfe829b,_0x1838b])=>{_0xfe829b['removeAttribute']('uploadcareImageId',_0x1838b);});}['_initConfig'](){const _0x5ca641=this['editor']['config']['get']('uploadcare.uploader')||{},_0x170b50=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4ddb5a(_0x5df829['document'],'uc-config',{..._0x5ca641,'pubkey':_0x170b50,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x166ea3=>{if('closeMax'==_0x166ea3)return'#uc-icon-arrow-down';},_0x5df829['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4ddb5a(_0x5df829['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5df829['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x56ec99=this['editor']['commands']['get']('insertImage');_0x56ec99&&this['listenTo'](_0x56ec99,'execute',()=>{const _0x553c4d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x553c4d&&_0x553c4d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x553c4d);});});const _0x1eb5c4=this['editor']['commands']['get']('uploadcareImageReplace');_0x1eb5c4&&this['listenTo'](_0x1eb5c4,'execute',()=>{const _0x392fff=this['editor']['model']['document']['selection']['getSelectedElement']();_0x392fff&&_0x392fff['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x392fff);});});}}class tt extends _0x20b168{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54a8fb){super(_0x54a8fb),_0x54a8fb['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x1d805e['defineComponents'](_0x1d805e);}}class ii extends _0x478f1f{constructor(_0x41a96e){super(_0x41a96e);const t=_0x41a96e['t'],_0x269ed3=this['bindTemplate'],_0x406732=new _0x271914();_0x406732['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':[_0x406732,{'text':_0x269ed3['to']('imageUploadProgress',_0x272055=>t('Loading\x20image...')+'\x20('+(_0x272055||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x478f1f{constructor(_0x554354){super(_0x554354);const t=_0x554354['t'];this['set']('errorType',null);const _0x2f448c=new _0x4ad196(_0x554354);_0x2f448c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2f448c['withText']=!0x0,_0x2f448c['class']='ck-button-action',_0x2f448c['on']('execute',()=>{this['fire']('retry');}),_0x2f448c['bind']('isVisible')['to'](this,'errorType',_0x377e6c=>'NotFound'!==_0x377e6c);const _0x2ccce3=new _0x300c79();_0x2ccce3['content']=_0x47e393,_0x2ccce3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x636e97=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':[_0x2ccce3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x636e97['to']('errorType',_0x52c497=>t('NotFound'!==_0x52c497?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2f448c]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x478f1f{constructor(_0x370b05,_0x4ec99e){super(_0x370b05);const _0x50c564=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4ec99e,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x50c564['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1e9dd3,_0x266eb9,_0x617830){super(_0x1e9dd3),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1e9dd3),this['_errorView']=new ti(_0x1e9dd3),this['_editingView']=new ei(_0x1e9dd3,_0x617830),this['_focusableView']=new _0x478f1f(_0x1e9dd3),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x266eb9),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'],_0x1dae8b=>{this['_addUploadcareImageEditorListeners'](_0x1dae8b);});}),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'](_0x5724a2,_0x9489e5){const _0x1762bf='uc-cloud-image-editor',_0xd4d075=_0x5724a2['querySelector'](_0x1762bf);if(_0xd4d075)return _0x9489e5(_0xd4d075);const _0x39b72e=new MutationObserver(_0xa767fe=>{const _0xd7b386=_0xa767fe['filter'](_0x3234e8=>_0x3234e8['target']===_0x5724a2&&_0x3234e8['addedNodes']['length']>0x0&&_0x3234e8['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1762bf);_0xd7b386['length']&&(_0x39b72e['disconnect'](),_0x9489e5(_0xd7b386[0x0]['addedNodes'][0x0]));});_0x39b72e['observe'](_0x5724a2,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x132732){_0x132732['addEventListener']('apply',_0x447a23=>{this['fire']('apply',{'imageSrc':_0x447a23['detail']['cdnUrl']});}),_0x132732['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x572926(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x200147,_0x28ea04,_0xaf3058){super(),this['_editor']=_0x200147,this['_dialog']=_0x28ea04,this['_imageElement']=_0xaf3058,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 _0x279fb5=this['_imageElement'],_0x10e5ba=_0x279fb5['getAttribute']('uploadcareImageId'),_0x3f0f1b=_0x279fb5['getAttribute']('src');if(_0x10e5ba)await this['_loadImageInfo'](_0x10e5ba,_0x3f0f1b);else{if(this['_imageCache']['has'](_0x3f0f1b)){const _0x3829f4=this['_imageCache']['get'](_0x3f0f1b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3829f4['url'],this['imageDimension']=_0x3829f4['dimension'],this['imageId']=_0x3829f4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x35ac37}=this['_editor'],t=_0x35ac37['t'],_0x5c26ac=new X(_0x35ac37,this['imageStatus'],this['_attributes']);_0x5c26ac['bind']('status')['to'](this,'imageStatus'),_0x5c26ac['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5c26ac['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5c26ac['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5c26ac,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x246a0e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5c26ac,'position':_0x17f53a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5c26ac['focus']();},'onHide':()=>{_0x5c26ac['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1af56=>!S(_0x1af56,_0x5c26ac['element'])}});}['_loadImageInfo'](_0x964ab4,_0x261d1b){return j['getInfo'](_0x964ab4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x17e033=>{const {width:_0x42cce8,height:_0x3b873b}=_0x17e033['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x261d1b,this['imageDimension']={'width':_0x42cce8,'height':_0x3b873b},this['imageId']=_0x964ab4;})['catch'](_0x4f5945=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4f5945['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x161b4c,_0x5042e2){return this['_getImageAsFile'](_0x161b4c)['then'](_0x4edbd2=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5042e2['signal'],'file':_0x4edbd2,'onProgress':_0x5f1e64=>{_0x5f1e64&&_0x5f1e64['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5f1e64['value']));}}))['then'](_0x34837d=>{const {width:_0x1dde65,height:_0x224ec3}=_0x34837d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34837d['cdnUrl'],this['imageDimension']={'width':_0x1dde65,'height':_0x224ec3},this['imageId']=_0x34837d['uuid'],this['imageUploadProgress']=null;const _0x2665f2=_0x161b4c['getAttribute']('src');this['_imageCache']['set'](_0x2665f2,{'id':_0x34837d['uuid'],'url':_0x34837d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3eac01=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3eac01['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3d0f2f,_0x16756b){_0x3d0f2f['on']('apply',(_0x5cd08f,_0x3f200c)=>{this['_replaceImage'](_0x16756b,_0x3f200c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3d0f2f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3d0f2f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xe00d9e,_0x222792,_0xb6c53f){const _0x48fd09=this['_editor'],{width:_0x550ebb,height:_0x54d776}=C(_0x222792,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x50d43e,imageSources:_0x5d650b}=k(_0x222792,_0x550ebb);_0x48fd09['model']['change'](_0x250209=>{if('$graveyard'===_0xe00d9e['root']['rootName']){_0x48fd09['execute']('insertImage',{'imageType':_0xe00d9e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xe00d9e['getAttributes']()),'uploadcareImageId':_0xb6c53f,'src':_0x50d43e,'sources':_0x5d650b,'width':_0x550ebb,'height':_0x54d776}});const _0x35ea99=_0xe00d9e['getChildren']();_0xe00d9e=_0x48fd09['model']['document']['selection']['getSelectedElement']();for(const _0x364c7b of _0x35ea99)_0x250209['append'](_0x250209['cloneElement'](_0x364c7b),_0xe00d9e);}else _0x250209['setSelection'](_0xe00d9e,'on'),_0x48fd09['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xe00d9e['getAttributes']()),'uploadcareImageId':_0xb6c53f,'src':_0x50d43e,'sources':_0x5d650b,'width':_0x550ebb,'height':_0x54d776},_0xe00d9e);_0x250209['setSelection'](_0xe00d9e,'on');});}async['_getImageAsFile'](_0x3157dc){const _0xc8759b=_0x5df829['window'],_0x12b721=_0x5df829['document']['location']['href'],_0x5409eb=new _0xc8759b['URL'](_0x3157dc['getAttribute']('src'),_0x12b721);if('data:'===_0x5409eb['protocol']){const _0x433c48=_0x5409eb['href']['split'](','),_0x530cf1=_0x433c48[0x0]['match'](/:(.*?);/)[0x1],_0x27113e=_0x530cf1['split']('/')[0x1],_0x2c8336=_0xc8759b['atob'](_0x433c48[_0x433c48['length']-0x1]);let _0x18a677=_0x2c8336['length'];const _0xa9a59f=new _0xc8759b['Uint8Array'](_0x18a677);for(;_0x18a677--;)_0xa9a59f[_0x18a677]=_0x2c8336['charCodeAt'](_0x18a677);return new _0xc8759b['File']([_0xa9a59f],'image.'+_0x27113e,{'type':_0x530cf1});}const _0x28dece=_0x5409eb['href']['split']('/'),_0x3a0466=_0x28dece[_0x28dece['length']-0x1],_0x1bef4d=_0x3a0466['split']('.')[0x1];return _0xc8759b['fetch'](_0x5409eb['href'])['then'](_0x11207d=>_0x11207d['clone']()['blob']())['then'](_0x26f757=>new _0xc8759b['File']([_0x26f757],_0x3a0466,{'type':'image/'+_0x1bef4d}));}}class O extends _0x15b2e5{['imageEditController'];static get['requires'](){return[_0x337386];}['_isEditable'];constructor(_0x411f12){super(_0x411f12),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xec2b64){const _0x5ba9cc=G(_0xec2b64);return _0x348a66=>!(!_0x348a66||!_0x348a66['is']('element','imageBlock')&&!_0x348a66['is']('element','imageInline'))&&(!!_0x348a66['hasAttribute']('uploadcareImageId')||!!_0x348a66['hasAttribute']('src')&&_0x5ba9cc(_0x348a66['getAttribute']('src')));}(_0x411f12['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x301d87=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x301d87);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x514d42=this['editor']['model']['document']['selection']['getSelectedElement']();_0x514d42&&(_0x514d42['is']('element','imageBlock')||_0x514d42['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x337386),_0x514d42),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x15b2e5{['refresh'](){const _0x28e215=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x28e215&&(_0x28e215['is']('element','imageBlock')||_0x28e215['is']('element','imageInline')));}['execute'](_0x174781){const _0x365327=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x55bdcf=>{_0x55bdcf['setAttributes'](_0x174781,_0x365327),_0x55bdcf['removeAttribute']('srcset',_0x365327),_0x55bdcf['removeAttribute']('sizes',_0x365327);});}}class m extends _0x20b168{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x444149,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3c9068}=this;_0x3c9068['commands']['add']('uploadcareImageEdit',new O(_0x3c9068)),_0x3c9068['commands']['add']('uploadcareImageReplace',new R(_0x3c9068));}}class g extends _0x20b168{['_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 _0x335a71=this['editor'];_0x335a71['ui']['componentFactory']['add']('uploadcareImageEdit',_0x37832a=>{const _0x42cdcf=_0x335a71['commands']['get']('uploadcareImageEdit'),_0x2686a9=new _0x4ad196(_0x37832a),t=_0x37832a['t'];return _0x2686a9['set']({'icon':_0x246a0e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2686a9['bind']('isEnabled')['to'](_0x42cdcf),_0x2686a9['bind']('isOn')['to'](_0x42cdcf,'isActive'),this['listenTo'](_0x2686a9,'execute',()=>{_0x335a71['execute']('uploadcareImageEdit'),_0x335a71['editing']['view']['focus']();}),_0x2686a9;}),this['_initConfig']();}['_initConfig'](){const _0x3c078f=_0x4ddb5a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3c078f),this['listenTo'](this['editor'],'destroy',()=>{_0x3c078f['remove']();});}}class et extends _0x20b168{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x570584,Command as _0x31bcb9}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x88f31a,IconGooglePhotos as _0x84fbc,IconGoogleDrive as _0x1ac652,IconFacebook as _0x38dfa9,IconDropbox as _0x1b5d86,IconUploadcareLink as _0x10403a,IconUploadcareImageUpload as _0x5ca10f,IconError as _0x3ece53,IconUploadcareImageEdit as _0x27e0e8}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x359938,MenuBarMenuListItemButtonView as _0x55f733,View as _0x1fdb42,FocusCycler as _0x4469d4,Dialog as _0x6c8f89,DialogViewPosition as _0x3cd8f3,SpinnerView as _0x3cf05d,IconView as _0x462416,Notification as _0x25394d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x356e94,DomEmitterMixin as _0x3809ef,global as _0x312e58,getAncestors as _0xf8ac5b,ObservableMixin as _0x5d27aa,uid as _0x1acdf7,createElement as _0x3bc14f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x14be9e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x404a78,info as _0x4532db}from'@uploadcare/upload-client';import*as _0x52d687 from'@uploadcare/file-uploader';var i=function(_0x4065bb){return _0x4065bb['Local']='local',_0x4065bb['URL']='url',_0x4065bb['Dropbox']='dropbox',_0x4065bb['GDrive']='gdrive',_0x4065bb['Facebook']='facebook',_0x4065bb['GPhotos']='gphotos',_0x4065bb['OneDrive']='onedrive',_0x4065bb;}({});function _(_0x416266,_0x2eadd0,_0x2ddbdd){const t=_0x416266['t'],_0x5bab3a=_0x416266['t'];switch(_0x2eadd0){case i['Local']:return{'text':_0x5bab3a('Insert'===_0x2ddbdd?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5bab3a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x2ddbdd?_0x5bab3a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5bab3a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x2ddbdd?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x2ddbdd?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x2ddbdd?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x2ddbdd?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x2ddbdd?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2eadd0;}}class e extends _0x570584{['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 _0x4f35bb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x132186;for(const _0x4df0b2 in _0x4f35bb){const _0x28fe3d=_0x4df0b2,_0x397d3e=_0x4f35bb[_0x28fe3d];if('uploadcareLicenseKeyValid'==_0x397d3e||'uploadcareLicenseKeyInvalid'==_0x397d3e||'uploadcareLicenseKeyExpired'==_0x397d3e||'uploadcareLicenseKeyDomainLimit'==_0x397d3e||'uploadcareLicenseKeyNotAllowed'==_0x397d3e||'uploadcareLicenseKeyEvaluationLimit'==_0x397d3e||'uploadcareLicenseKeyTrialLimit'==_0x397d3e||'uploadcareLicenseKeyUsageLimit'==_0x397d3e){delete _0x4f35bb[_0x28fe3d],_0x132186=_0x397d3e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x132186&&_0x4f35bb['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x132186&&_0x4f35bb['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x132186&&_0x4f35bb['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x132186&&_0x4f35bb['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x132186&&_0x4f35bb['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x132186&&_0x4f35bb['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x132186&&_0x4f35bb['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x10d0c7}=this,_0x2158c7=_0x10d0c7['commands']['get']('uploadcare');if(!_0x2158c7)return;const _0x11b789=this['_normalizeConfigSourceList'](_0x10d0c7['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x49de37,_0x479f08)=>{const _0x316ef5=this['_getIntegrationKey'](_0x479f08['type']);return _0x49de37[_0x316ef5]||(_0x49de37[_0x316ef5]=[]),_0x49de37[_0x316ef5]['push'](_0x479f08),_0x49de37;},{});_0x10d0c7['plugins']['has']('ImageInsertUI')&&_0x10d0c7['commands']['get']('uploadcare')&&Object['entries'](_0x11b789)['forEach'](([_0x34a43e,_0x380e44])=>{_0x10d0c7['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x34a43e,'observable':()=>_0x2158c7,'buttonViewCreator':()=>this['_createToolbarButton'](_0x380e44),'formViewCreator':()=>this['_createDropdownButtons'](_0x380e44),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x380e44),'override':'assetManager'!==_0x34a43e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x228cc6){const {locale:_0x1c1cfc}=this['editor'];return _0x228cc6['map'](_0x1d21a6=>{const _0x5935a9=_(_0x1c1cfc,_0x1d21a6,'Insert');switch(_0x1d21a6){case i['Local']:return{'icon':_0x5ca10f,'type':i['Local'],..._0x5935a9};case i['URL']:return{'icon':_0x10403a,'type':i['URL'],..._0x5935a9};case i['Dropbox']:return{'icon':_0x1b5d86,'type':i['Dropbox'],..._0x5935a9};case i['Facebook']:return{'icon':_0x38dfa9,'type':i['Facebook'],..._0x5935a9};case i['GDrive']:return{'icon':_0x1ac652,'type':i['GDrive'],..._0x5935a9};case i['GPhotos']:return{'icon':_0x84fbc,'type':i['GPhotos'],..._0x5935a9};case i['OneDrive']:return{'icon':_0x88f31a,'type':i['OneDrive'],..._0x5935a9};}});}['_getIntegrationKey'](_0x5105ab){switch(_0x5105ab){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x25a174,_0x581b04){const _0xd5829c=this['editor'],_0x2b2c1f=new _0x25a174(_0xd5829c['locale']),_0x153cc9=_0xd5829c['commands']['get']('uploadcare');return _0x2b2c1f['bind']('isEnabled')['to'](_0x153cc9),_0x2b2c1f['on']('execute',()=>{_0x153cc9['execute'](_0x581b04);}),_0x2b2c1f;}['_createToolbarButton'](_0x104469){const {locale:_0x48f684}=this['editor'],_0x2896bc=this['editor']['plugins']['get']('ImageInsertUI'),_0x5697d9=_0x104469[0x0],_0x42a350=this['_createButton'](_0x359938,_0x5697d9['type']);return _0x42a350['icon']=_0x5697d9['icon'],_0x42a350['bind']('label')['to'](_0x2896bc,'isImageSelected',_0x5cdd10=>_(_0x48f684,_0x5697d9['type'],_0x5cdd10?'Replace':'Insert')['text']),_0x42a350['tooltip']=!0x0,_0x42a350;}['_createDropdownButtons'](_0x37672a){const {locale:_0x5503b8}=this['editor'],_0xa234b2=this['editor']['plugins']['get']('ImageInsertUI');return _0x37672a['map'](_0x25f1df=>{const _0x568ef2=this['_createButton'](_0x359938,_0x25f1df['type']);return _0x568ef2['withText']=!0x0,_0x568ef2['icon']=_0x25f1df['icon'],_0x568ef2['bind']('label')['to'](_0xa234b2,'isImageSelected',_0x4e3249=>_(_0x5503b8,_0x25f1df['type'],_0x4e3249?'Replace':'Insert')['text']),_0x568ef2;});}['_createMenuBarButtons'](_0x24a7d3){return _0x24a7d3['map'](_0x3860fa=>{const _0x49320b=this['_createButton'](_0x55f733,_0x3860fa['type']);return _0x49320b['icon']=_0x3860fa['icon'],_0x49320b['label']=_0x3860fa['shortText'],_0x49320b;});}}class F extends _0x1fdb42{['focusTracker'];['focusCycler'];constructor(_0x234fee){super(_0x234fee),this['focusTracker']=new _0x356e94(),this['focusCycler']=new _0x4469d4({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x53a489,_0x3439b6){super(_0x53a489),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-'+_0x3439b6}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x22eddc,_0x39ba88){const _0x3451f8=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xd01ad=>_0xd01ad<=_0x39ba88)['map'](_0x23918f=>_0x22eddc['replace'](/\/$/,'')+'/-/resize/'+_0x23918f+'x/\x20'+_0x23918f+'w');return{'imageFallbackUrl':_0x22eddc,'imageSources':[{'srcset':_0x3451f8['join'](',\x20'),'sizes':'(max-width:\x20'+_0x39ba88+'px)\x20100vw,\x20'+_0x39ba88+'px','type':'image/webp'}]};}function C(_0x11fad2,_0x53c37f,_0x595a99){const _0x8c0d08=_0x11fad2['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x8c0d08?parseInt(_0x8c0d08[0x1],0xa):_0x53c37f,'height':_0x8c0d08?parseInt(_0x8c0d08[0x2],0xa):_0x595a99};}function p(_0x19b6ed,_0x167cfd){const _0x1d8ea9=new(_0x3809ef())(),_0x120631=_0x19b6ed['plugins']['get']('ImageUtils'),_0x43f87f=_0x19b6ed['editing']['mapper']['toViewElement'](_0x167cfd),_0x1238e6=_0x120631['findViewImgElement'](_0x43f87f),_0x1b21ed=_0x19b6ed['editing']['view']['domConverter']['viewToDom'](_0x1238e6),_0x3d9782=_0x167cfd['getAttribute']('width'),_0x3405fe=_0x167cfd['getAttribute']('height'),_0x36f256='image-processing';_0x19b6ed['editing']['view']['change'](_0x347ddb=>{_0x347ddb['addClass'](_0x36f256,_0x43f87f),_0x347ddb['setStyle']('aspect-ratio',_0x3d9782+'/'+_0x3405fe,_0x1238e6);}),_0x1d8ea9['listenTo'](_0x1b21ed,'load',()=>{_0x1d8ea9['stopListening'](_0x1b21ed,'load'),_0x19b6ed['editing']['view']['change'](_0x13fba5=>{_0x13fba5['removeClass'](_0x36f256,_0x43f87f),_0x13fba5['removeStyle']('aspect-ratio',_0x1238e6);});});}function G(_0x5eda7c){if(Array['isArray'](_0x5eda7c)){const _0x403e70=_0x5eda7c['map'](G);return _0x31a50a=>_0x403e70['some'](_0x14a49b=>_0x14a49b(_0x31a50a));}if('origin'==_0x5eda7c){const _0x55ab16=_0x312e58['window']['location']['origin'];return _0x5f3118=>new URL(_0x5f3118,_0x312e58['document']['baseURI'])['origin']==_0x55ab16;}return'function'==typeof _0x5eda7c?_0x5eda7c:_0x5eda7c instanceof RegExp?_0x375fe1=>!(!_0x375fe1['match'](_0x5eda7c)&&!_0x375fe1['replace'](/^https?:\/\//,'')['match'](_0x5eda7c)):()=>!0x1;}function S(_0x334264,_0x3570a1){return _0xf8ac5b(_0x334264['target'])['includes'](_0x3570a1);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5d27aa(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x241c55,_0xeb874d,_0x31ba07){super(),this['_editor']=_0x241c55,this['_editing']=_0xeb874d,this['_dialog']=_0x241c55['plugins']['get'](_0x6c8f89),this['_api']=_0xeb874d['ctxElement']['getAPI'](),this['_type']=_0x31ba07,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:_0x5e79c9,model:_0x498faf}=this['_editor'],_0x574ae4=_0x498faf['document']['selection']['getSelectedElement'](),_0x11d810=_0x574ae4&&(_0x574ae4['is']('element','imageBlock')||_0x574ae4['is']('element','imageInline'));this['_formView']=new x(_0x5e79c9,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5ca10f,'title':_(_0x5e79c9,this['_type'],_0x11d810?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3cd8f3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x14e444=>!S(_0x14e444,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2bf403}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5e2084=>{const _0x348e5a=_0x2bf403['length'];for(const _0x34f2fb of _0x2bf403){const _0x594adf=_0x34f2fb===_0x2bf403[_0x348e5a-0x1],{cdnUrl:_0x5e386d,fileInfo:_0x40a15}=_0x34f2fb;if(!_0x5e386d||!_0x40a15)continue;const {width:_0x1afaab,height:_0x3cb86d}=_0x40a15['imageInfo'],_0x171e6f=C(_0x5e386d,_0x1afaab,_0x3cb86d),_0x2164b6=k(_0x5e386d,_0x171e6f['width']),_0x57dbe8={'id':_0x40a15['uuid'],'type':'image','attributes':{'imageDimension':_0x171e6f,..._0x2164b6}};this['_insertAsset'](_0x57dbe8,_0x594adf,_0x5e2084);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3e4964=>{'idle'===_0x3e4964['detail']['status']&&!_0x3e4964['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x47dac3,_0x10e02c,_0x3b1337){const _0x3d237b=this['_editor']['model']['document']['selection'],_0x50a461=_0x3d237b['getSelectedElement'](),_0x52d686=!(!_0x50a461||!_0x50a461['is']('element','imageInline'));_0x3b1337['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x47dac3,_0x52d686),_0x10e02c||_0x3b1337['setSelection'](_0x3d237b['getLastPosition']());}['_insertImage'](_0x1e14e0,_0x54d867){const _0x384760=this['_editor'],{imageDimension:_0x50e780,imageFallbackUrl:_0x1acf10,imageSources:_0x4f743a}=_0x1e14e0['attributes'];_0x384760['execute']('insertImage',{'imageType':_0x54d867?'imageInline':null,'source':{'uploadcareImageId':_0x1e14e0['id'],'src':_0x1acf10,'sources':_0x4f743a,..._0x50e780}});}}class w extends _0x31bcb9{['_editing'];['_controller']=null;static get['requires'](){return[_0x6c8f89,o];}constructor(_0x12f16c){super(_0x12f16c),this['_editing']=_0x12f16c['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x426074){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x426074);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x51b710,publicKey:_0x232f63,signal:_0x41ff62,onProgress:_0xf7f4d3}){return _0x404a78(_0x51b710,{'publicKey':_0x232f63,'store':'auto','signal':_0x41ff62,'onProgress':_0xf7f4d3});}static['getInfo'](_0x16c3d1,_0x554294){return _0x4532db(_0x16c3d1,_0x554294);}}class f extends _0x570584{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x14be9e,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2b53d5=this['editor'];if(!!!_0x2b53d5['config']['get']('uploadcare'))return;_0x2b53d5['plugins']['get'](_0x14be9e)['createUploadAdapter']=_0x2dfb28=>new A(_0x2dfb28,_0x2b53d5),_0x2b53d5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5d93c6,{imageElement:_0x189288,data:_0x3a5e02})=>{_0x2b53d5['model']['change'](_0x1f7951=>{_0x1f7951['setAttribute']('uploadcareImageId',_0x3a5e02['uploadcareImageId'],_0x189288);});});}}class A{['loader'];['editor'];['controller'];constructor(_0xc14127,_0x12d1de){this['loader']=_0xc14127,this['editor']=_0x12d1de,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xf9d837=this['editor']['config']['get']('uploadcare.pubkey'),_0x6efb9c=await this['loader']['file'];return j['upload']({'file':_0x6efb9c,'publicKey':_0xf9d837,'signal':this['controller']['signal'],'onProgress':_0x59e2ae=>{_0x59e2ae&&_0x59e2ae['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x59e2ae['value']);}})['then'](async _0x4de43a=>{const {imageFallbackUrl:_0x111dd3,imageSources:_0x4e79b7}=k(_0x4de43a['cdnUrl'],_0x4de43a['imageInfo']['width']);return{'uploadcareImageId':_0x4de43a['uuid'],'default':_0x111dd3,'sources':_0x4e79b7};})['catch'](()=>{const _0x13538d=t('Cannot\x20upload\x20file:')+('\x20'+_0x6efb9c['name']+'.');return Promise['reject'](_0x13538d);});}['abort'](){this['controller']['abort']();}}class o extends _0x570584{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x6c8f89];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x31b941){super(_0x31b941),this['ucContextId']=_0x1acdf7();}['init'](){const _0x1d86fe=this['editor'];_0x1d86fe['commands']['add']('uploadcare',new w(_0x1d86fe));}['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 _0x1d56c9=_0x312e58['document']['querySelector']('input[uploadcare-file-input]');_0x1d56c9&&_0x1d56c9['remove']();}),async function(_0x529cf1){const _0x50e054=_0x3e574d([0x74,0x44,0x38,0x35,0x30,0x70,0x46,0x63,0x77,0x43,0x65,0x5a,0x51,0x62,0x6c,0x53,0x31,0x68,0x4f,0x75,0x58,0x45,0x4c,0x54,0x48,0x73,0x76,0x6a,0x4b,0x36,0x6b,0x66,0x4e,0x50,0x55,0x69,0x37,0x33,0x6e,0x64,0x4d,0x47,0x61,0x32,0x4a,0x71,0x79,0x72,0x41,0x7a,0x42,0x49,0x78,0x59,0x34,0x56,0x52,0x39,0x6d,0x6f,0x57,0x67]),_0x63a70b=0x1fb4dc0c,_0x22ec5d=0x1fb3b034^_0x63a70b,_0x449585=window[_0x3e574d([0x44,0x61,0x74,0x65])][_0x3e574d([0x6e,0x6f,0x77])](),_0x5183a7=_0x529cf1[_0x3e574d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1bac81=new window[(_0x3e574d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34e1d9=>{_0x5183a7[_0x3e574d([0x6f,0x6e,0x63,0x65])](_0x3e574d([0x72,0x65,0x61,0x64,0x79]),_0x34e1d9);}),_0x2c94b5={[_0x3e574d([0x6b,0x74,0x79])]:_0x3e574d([0x45,0x43]),[_0x3e574d([0x75,0x73,0x65])]:_0x3e574d([0x73,0x69,0x67]),[_0x3e574d([0x63,0x72,0x76])]:_0x3e574d([0x50,0x2d,0x32,0x35,0x36]),[_0x3e574d([0x78])]:_0x3e574d([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]),[_0x3e574d([0x79])]:_0x3e574d([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]),[_0x3e574d([0x61,0x6c,0x67])]:_0x3e574d([0x45,0x53,0x32,0x35,0x36])},_0x3181cd=_0x5183a7[_0x3e574d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e574d([0x67,0x65,0x74])](_0x3e574d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x37bae5(){let _0x495fb3,_0x3cdd42=null,_0x2f1a17=null;try{if(_0x3181cd==_0x3e574d([0x47,0x50,0x4c]))return _0x3e574d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x495fb3=_0x2978be(),!_0x495fb3)return _0x3e574d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x495fb3[_0x3e574d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f1a17=_0x19d84c(_0x495fb3[_0x3e574d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x495fb3[_0x3e574d([0x6a,0x74,0x69])])),await _0x1c1982()?_0xd25db9()?_0x511b1e()?_0x3e574d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x586b28()?(_0x495fb3[_0x3e574d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e574d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3cdd42=_0x28e322(_0x3e574d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x495fb3[_0x3e574d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e574d([0x74,0x72,0x69,0x61,0x6c])&&(_0x3cdd42=_0x28e322(_0x3e574d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x6450bd()):_0x3e574d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e574d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e574d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3e574d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x511b1e(){const _0x2083e2=[_0x3e574d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e574d([0x74,0x72,0x69,0x61,0x6c])][_0x3e574d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x495fb3[_0x3e574d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x449585/0x3e8:0xe10*_0x22ec5d;return _0x495fb3[_0x3e574d([0x65,0x78,0x70])]<_0x2083e2;}function _0xd25db9(){const _0x4a999c=_0x495fb3[_0x3e574d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4a999c&&(!!_0x4a999c[_0x3e574d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e574d([0x2a]))||!!_0x4a999c[_0x3e574d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e574d([0x55,0x50,0x4c,0x43])));}function _0x586b28(){const _0x42f5f3=_0x495fb3[_0x3e574d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x42f5f3||0x0==_0x42f5f3[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2c9155}=new URL(window[_0x3e574d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x42f5f3[_0x3e574d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9155))return!0x0;const _0x47707d=_0x2c9155[_0x3e574d([0x73,0x70,0x6c,0x69,0x74])](_0x3e574d([0x2e]));return _0x42f5f3[_0x3e574d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x263d54=>_0x263d54[_0x3e574d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e574d([0x2a])))[_0x3e574d([0x6d,0x61,0x70])](_0x4ecf43=>_0x4ecf43[_0x3e574d([0x73,0x70,0x6c,0x69,0x74])](_0x3e574d([0x2e])))[_0x3e574d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x534cbb=>_0x534cbb[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x47707d[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e574d([0x6d,0x61,0x70])](_0x509d5a=>Array(_0x47707d[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x509d5a[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e574d([0x66,0x69,0x6c,0x6c])](_0x509d5a[0x0]===_0x3e574d([0x2a])?_0x3e574d([0x2a]):'')[_0x3e574d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x509d5a))[_0x3e574d([0x73,0x6f,0x6d,0x65])](_0x3321b=>_0x47707d[_0x3e574d([0x65,0x76,0x65,0x72,0x79])]((_0x296e5f,_0x54f935)=>_0x3321b[_0x54f935]===_0x296e5f||_0x3321b[_0x54f935]===_0x3e574d([0x2a])));}function _0x6450bd(){return _0x3cdd42&&_0x2f1a17?new window[(_0x3e574d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ae9f7,_0x407f88)=>{_0x3cdd42[_0x3e574d([0x74,0x68,0x65,0x6e])](_0x2ae9f7,_0x407f88),_0x2f1a17[_0x3e574d([0x74,0x68,0x65,0x6e])](_0x8f6972=>{_0x8f6972!=_0x3e574d([0x56,0x61,0x6c,0x69,0x64])&&_0x2ae9f7(_0x8f6972);},_0x407f88);}):_0x3cdd42||_0x2f1a17||_0x3e574d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19d84c(_0x198bb1,_0x41b2e5){return new window[(_0x3e574d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2774a3=>{if(_0x40c646())return _0x2774a3(_0x3e574d([0x56,0x61,0x6c,0x69,0x64]));_0x348d08(),_0x5183a7[_0x3e574d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e574d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x28ab54=!0x1;const _0x2ae31a=_0x1acdf7();function _0x1c8272(_0x255e2a){return!!_0x255e2a&&(typeof _0x255e2a===_0x3e574d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x255e2a===_0x3e574d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x255e2a[_0x3e574d([0x74,0x68,0x65,0x6e])]===_0x3e574d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x255e2a[_0x3e574d([0x63,0x61,0x74,0x63,0x68])]===_0x3e574d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x30a20d(_0x2b4fed){_0x483bda(_0x2b4fed)[_0x3e574d([0x74,0x68,0x65,0x6e])](_0x27bcbf=>{if(!_0x27bcbf||_0x27bcbf[_0x3e574d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e574d([0x6f,0x6b]))return _0x3e574d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x35ad74(_0x5ef8a5(_0x2ae31a+_0x41b2e5))!=_0x27bcbf[_0x3e574d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e574d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e574d([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e574d([0x74,0x68,0x65,0x6e])](_0x24ef49=>(_0x42f81f(),_0x24ef49),()=>{const _0x261985=_0x17acbe();return null==_0x261985?(_0x42f81f(),_0x3e574d([0x56,0x61,0x6c,0x69,0x64])):_0x3e574d(_0x449585-_0x261985>(0x3bb8580c^_0x63a70b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e574d([0x74,0x68,0x65,0x6e])](_0x2774a3)[_0x3e574d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2774a3(_0x3e574d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4b1834=0x1f82328c^_0x63a70b;function _0x42f81f(){const _0x4b8597=_0x3e574d([0x6c,0x6c,0x63,0x74,0x2d])+_0x35ad74(_0x5ef8a5(_0x198bb1)),_0xde824e=_0x4834b0(_0x35ad74(window[_0x3e574d([0x4d,0x61,0x74,0x68])][_0x3e574d([0x63,0x65,0x69,0x6c])](_0x449585/_0x4b1834)));window[_0x3e574d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e574d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b8597,_0xde824e);}function _0x17acbe(){const _0x4fd628=_0x3e574d([0x6c,0x6c,0x63,0x74,0x2d])+_0x35ad74(_0x5ef8a5(_0x198bb1)),_0x597270=window[_0x3e574d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e574d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fd628);return _0x597270?window[_0x3e574d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4834b0(_0x597270),0x10)*_0x4b1834:null;}function _0x483bda(_0x462c03){return new window[(_0x3e574d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30d575,_0x5958f1)=>{_0x462c03[_0x3e574d([0x74,0x68,0x65,0x6e])](_0x30d575,_0x5958f1),window[_0x3e574d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5958f1,0x1fb508cc^_0x63a70b);});}}_0x5183a7[_0x3e574d([0x6f,0x6e])](_0x3e574d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x217f36,_0x4830dd)=>{if(_0x4830dd[0x0]!=_0x198bb1)return _0x2774a3(_0x3e574d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4830dd[0x1]={..._0x4830dd[0x1],[_0x3e574d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2ae31a};},{[_0x3e574d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e574d([0x68,0x69,0x67,0x68])}),_0x5183a7[_0x3e574d([0x6f,0x6e])](_0x3e574d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x8dd17a=>{_0x1c8272(_0x8dd17a[_0x3e574d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x28ab54=!0x0,_0x30a20d(_0x8dd17a[_0x3e574d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e574d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e574d([0x6c,0x6f,0x77])}),_0x1bac81[_0x3e574d([0x74,0x68,0x65,0x6e])](()=>{_0x28ab54||_0x2774a3(_0x3e574d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x40c646(){return _0x5183a7[_0x3e574d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e574d([0x76,0x69,0x65,0x77])][_0x3e574d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e574d([0x61,0x75,0x74,0x6f]);}function _0x348d08(){_0x5183a7[_0x3e574d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e574d([0x76,0x69,0x65,0x77])][_0x3e574d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e574d([0x61,0x75,0x74,0x6f]);}}function _0x28e322(_0x38a7c1){const _0x3c24db=[new window[(_0x3e574d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x236bab=>setTimeout(_0x236bab,0x1fbde2c0^_0x63a70b)),_0x1bac81[_0x3e574d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e574d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b15b1=>{let _0x42ddce=0x0;_0x5183a7[_0x3e574d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e574d([0x6f,0x6e])](_0x3e574d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x19e03e,_0xff2e58)=>{_0xff2e58[0x0][_0x3e574d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x42ddce++,_0x42ddce==(0x1fb4ddf4^_0x63a70b)&&(_0x5b15b1(),_0x19e03e[_0x3e574d([0x6f,0x66,0x66])]());});}))];return window[_0x3e574d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e574d([0x72,0x61,0x63,0x65])](_0x3c24db)[_0x3e574d([0x74,0x68,0x65,0x6e])](()=>_0x38a7c1);}async function _0x26922c(){await _0x1bac81,_0x5183a7[_0x3e574d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e574d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f0433,_0x5183a7[_0x3e574d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e574d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f0433,_0x5183a7[_0x3e574d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e574d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x218db1(_0x38359f){const _0x319810=_0x5ef17e();_0x5183a7[_0x319810]=_0x3e574d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x38359f,_0x38359f!=_0x3e574d([0x56,0x61,0x6c,0x69,0x64])&&_0x26922c();}function _0x5ef17e(){const _0xf8d792=window[_0x3e574d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e574d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e574d([0x6e,0x6f,0x77])]())[_0x3e574d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e574d([0x2e]),'');let _0x4bd2be=_0x3e574d([0x74]);for(let _0x54544c=0x0;_0x54544c<_0xf8d792[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54544c+=0x2){let _0x126812=window[_0x3e574d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf8d792[_0x3e574d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54544c,_0x54544c+0x2));_0x126812>=_0x50e054[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x126812-=_0x50e054[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4bd2be+=_0x50e054[_0x126812];}return _0x4bd2be;}function _0x2978be(){const _0x1fd5c8=_0x3181cd[_0x3e574d([0x73,0x70,0x6c,0x69,0x74])](_0x3e574d([0x2e]));if(0x3!=_0x1fd5c8[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x218cb9(_0x1fd5c8[0x1]);function _0x218cb9(_0x5edd17){const _0x19dda5=_0x4dc582(_0x5edd17);return _0x19dda5&&_0x377e43()?_0x19dda5:null;function _0x377e43(){const _0x579f9f=_0x19dda5[_0x3e574d([0x6a,0x74,0x69])],_0x9746b3=window[_0x3e574d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x579f9f[_0x3e574d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x579f9f[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1671b9={..._0x19dda5,[_0x3e574d([0x6a,0x74,0x69])]:_0x579f9f[_0x3e574d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x579f9f[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1671b9[_0x3e574d([0x76,0x63])],_0x5ef8a5(_0x1671b9)==_0x9746b3;}}}async function _0x1c1982(){let _0x550600=!0x0;try{const _0x2aa0e6=_0x3181cd[_0x3e574d([0x73,0x70,0x6c,0x69,0x74])](_0x3e574d([0x2e])),[_0x4bc30e,_0x5f53c1,_0x2e559b]=_0x2aa0e6;return _0xa581e(_0x4bc30e),await _0x11e3c4(_0x4bc30e,_0x5f53c1,_0x2e559b),_0x550600;}catch{return!0x1;}function _0xa581e(_0x50409a){const _0x1b121e=_0x4dc582(_0x50409a);_0x1b121e&&_0x1b121e[_0x3e574d([0x61,0x6c,0x67])]==_0x3e574d([0x45,0x53,0x32,0x35,0x36])||(_0x550600=!0x1);}async function _0x11e3c4(_0x2f1ec4,_0x40b097,_0x46b3da){const _0x136452=window[_0x3e574d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e574d([0x66,0x72,0x6f,0x6d])](_0x485e23(_0x46b3da),_0x52be5b=>_0x52be5b[_0x3e574d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5e8487=new window[(_0x3e574d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e574d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2f1ec4+_0x3e574d([0x2e])+_0x40b097),_0x528005=window[_0x3e574d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e574d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x528005)return;const _0x1c6e6c=await _0x528005[_0x3e574d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e574d([0x6a,0x77,0x6b]),_0x2c94b5,{[_0x3e574d([0x6e,0x61,0x6d,0x65])]:_0x3e574d([0x45,0x43,0x44,0x53,0x41]),[_0x3e574d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e574d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e574d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x528005[_0x3e574d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e574d([0x6e,0x61,0x6d,0x65])]:_0x3e574d([0x45,0x43,0x44,0x53,0x41]),[_0x3e574d([0x68,0x61,0x73,0x68])]:{[_0x3e574d([0x6e,0x61,0x6d,0x65])]:_0x3e574d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c6e6c,_0x136452,_0x5e8487)||(_0x550600=!0x1);}}function _0x4dc582(_0x2042f7){return _0x2042f7[_0x3e574d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e574d([0x65,0x79]))?JSON[_0x3e574d([0x70,0x61,0x72,0x73,0x65])](_0x485e23(_0x2042f7)):null;}function _0x485e23(_0x2293d3){return window[_0x3e574d([0x61,0x74,0x6f,0x62])](_0x2293d3[_0x3e574d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e574d([0x2b]))[_0x3e574d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e574d([0x2f])));}function _0x5ef8a5(_0x47a8be){let _0x4f2b23=0x1505;function _0x34a407(_0x534e19){for(let _0x53c365=0x0;_0x53c365<_0x534e19[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53c365++){const _0x931db7=_0x534e19[_0x3e574d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x53c365);_0x4f2b23=(_0x4f2b23<<0x5)+_0x4f2b23+_0x931db7,_0x4f2b23&=_0x4f2b23;}}function _0x1bb49b(_0x42026b){Array[_0x3e574d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x42026b)?_0x42026b[_0x3e574d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1bb49b):_0x42026b&&typeof _0x42026b==_0x3e574d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e574d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x42026b)[_0x3e574d([0x73,0x6f,0x72,0x74])]()[_0x3e574d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e51c2,_0x2f1855])=>{_0x34a407(_0x1e51c2),_0x1bb49b(_0x2f1855);}):_0x34a407(window[_0x3e574d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x42026b));}return _0x1bb49b(_0x47a8be),_0x4f2b23>>>0x0;}function _0x35ad74(_0x165b05){return _0x165b05[_0x3e574d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e574d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e574d([0x30]));}function _0x4834b0(_0x16a4a3){return _0x16a4a3[_0x3e574d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e574d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e574d([0x6a,0x6f,0x69,0x6e])]('');}function _0x3f0433(){}function _0x3e574d(_0x1ff503){return _0x1ff503['map'](_0x13aecc=>String['fromCharCode'](_0x13aecc))['join']('');}_0x218db1(await _0x37bae5());}(this);}['_initSchema'](){const _0x279fd6=this['editor']['model']['schema'];_0x279fd6['isRegistered']('imageBlock')&&_0x279fd6['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x279fd6['isRegistered']('imageInline')&&_0x279fd6['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1c4887=this['editor'];_0x1c4887['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1c4887['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x892d19=>_0x892d19['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x40af54=_0x1c4887['commands']['get']('replaceImageSource');_0x40af54&&this['listenTo'](_0x40af54,'cleanupImage',(_0x361180,[_0x3fcec7,_0x2f80ed])=>{_0x3fcec7['removeAttribute']('uploadcareImageId',_0x2f80ed);});}['_initConfig'](){const _0x2229d7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x19a82e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3bc14f(_0x312e58['document'],'uc-config',{..._0x2229d7,'pubkey':_0x19a82e,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x45b051=>{if('closeMax'==_0x45b051)return'#uc-icon-arrow-down';},_0x312e58['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3bc14f(_0x312e58['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x312e58['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x255c6b=this['editor']['commands']['get']('insertImage');_0x255c6b&&this['listenTo'](_0x255c6b,'execute',()=>{const _0x2f2b32=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2f2b32&&_0x2f2b32['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2f2b32);});});const _0x5bf6c9=this['editor']['commands']['get']('uploadcareImageReplace');_0x5bf6c9&&this['listenTo'](_0x5bf6c9,'execute',()=>{const _0x8fe652=this['editor']['model']['document']['selection']['getSelectedElement']();_0x8fe652&&_0x8fe652['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x8fe652);});});}}class tt extends _0x570584{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e65b5){super(_0x5e65b5),_0x5e65b5['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x52d687['defineComponents'](_0x52d687);}}class ii extends _0x1fdb42{constructor(_0x205676){super(_0x205676);const t=_0x205676['t'],_0x2ac1fb=this['bindTemplate'],_0x29e0f3=new _0x3cf05d();_0x29e0f3['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':[_0x29e0f3,{'text':_0x2ac1fb['to']('imageUploadProgress',_0x3d84ab=>t('Loading\x20image...')+'\x20('+(_0x3d84ab||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x1fdb42{constructor(_0x1c7970){super(_0x1c7970);const t=_0x1c7970['t'];this['set']('errorType',null);const _0x3a3aca=new _0x359938(_0x1c7970);_0x3a3aca['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3a3aca['withText']=!0x0,_0x3a3aca['class']='ck-button-action',_0x3a3aca['on']('execute',()=>{this['fire']('retry');}),_0x3a3aca['bind']('isVisible')['to'](this,'errorType',_0x3e6e72=>'NotFound'!==_0x3e6e72);const _0x8295be=new _0x462416();_0x8295be['content']=_0x3ece53,_0x8295be['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x355346=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':[_0x8295be,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x355346['to']('errorType',_0x50293b=>t('NotFound'!==_0x50293b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3a3aca]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x1fdb42{constructor(_0x1623da,_0x18327d){super(_0x1623da);const _0x5a774b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x18327d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5a774b['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xdc1b2e,_0x12624e,_0x14a61d){super(_0xdc1b2e),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xdc1b2e),this['_errorView']=new ti(_0xdc1b2e),this['_editingView']=new ei(_0xdc1b2e,_0x14a61d),this['_focusableView']=new _0x1fdb42(_0xdc1b2e),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x12624e),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'],_0x328341=>{this['_addUploadcareImageEditorListeners'](_0x328341);});}),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'](_0x4a13a9,_0x54f8d5){const _0x5c343d='uc-cloud-image-editor',_0xdcee2f=_0x4a13a9['querySelector'](_0x5c343d);if(_0xdcee2f)return _0x54f8d5(_0xdcee2f);const _0x46d0b2=new MutationObserver(_0x55ea48=>{const _0x575394=_0x55ea48['filter'](_0x3994d7=>_0x3994d7['target']===_0x4a13a9&&_0x3994d7['addedNodes']['length']>0x0&&_0x3994d7['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5c343d);_0x575394['length']&&(_0x46d0b2['disconnect'](),_0x54f8d5(_0x575394[0x0]['addedNodes'][0x0]));});_0x46d0b2['observe'](_0x4a13a9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4699a5){_0x4699a5['addEventListener']('apply',_0x45a5fc=>{this['fire']('apply',{'imageSrc':_0x45a5fc['detail']['cdnUrl']});}),_0x4699a5['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5d27aa(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x31216b,_0x151aca,_0x22a35a){super(),this['_editor']=_0x31216b,this['_dialog']=_0x151aca,this['_imageElement']=_0x22a35a,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 _0x10d1bb=this['_imageElement'],_0xb84842=_0x10d1bb['getAttribute']('uploadcareImageId'),_0x36cc05=_0x10d1bb['getAttribute']('src');if(_0xb84842)await this['_loadImageInfo'](_0xb84842,_0x36cc05);else{if(this['_imageCache']['has'](_0x36cc05)){const _0x33428f=this['_imageCache']['get'](_0x36cc05);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33428f['url'],this['imageDimension']=_0x33428f['dimension'],this['imageId']=_0x33428f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1c883d}=this['_editor'],t=_0x1c883d['t'],_0x41ef22=new X(_0x1c883d,this['imageStatus'],this['_attributes']);_0x41ef22['bind']('status')['to'](this,'imageStatus'),_0x41ef22['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x41ef22['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x41ef22['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x41ef22,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x27e0e8,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x41ef22,'position':_0x3cd8f3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x41ef22['focus']();},'onHide':()=>{_0x41ef22['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x22cdbf=>!S(_0x22cdbf,_0x41ef22['element'])}});}['_loadImageInfo'](_0x139a1b,_0x33fb71){return j['getInfo'](_0x139a1b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5c1f35=>{const {width:_0x5816c3,height:_0x235574}=_0x5c1f35['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33fb71,this['imageDimension']={'width':_0x5816c3,'height':_0x235574},this['imageId']=_0x139a1b;})['catch'](_0x94bf5a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x94bf5a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4a93e3,_0x356af8){return this['_getImageAsFile'](_0x4a93e3)['then'](_0x37b5d4=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x356af8['signal'],'file':_0x37b5d4,'onProgress':_0x433fd2=>{_0x433fd2&&_0x433fd2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x433fd2['value']));}}))['then'](_0x1ab995=>{const {width:_0x33760f,height:_0xb0a09c}=_0x1ab995['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1ab995['cdnUrl'],this['imageDimension']={'width':_0x33760f,'height':_0xb0a09c},this['imageId']=_0x1ab995['uuid'],this['imageUploadProgress']=null;const _0x4a3358=_0x4a93e3['getAttribute']('src');this['_imageCache']['set'](_0x4a3358,{'id':_0x1ab995['uuid'],'url':_0x1ab995['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x254e55=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x254e55['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3f0fce,_0x127f47){_0x3f0fce['on']('apply',(_0x7ff897,_0x19f71f)=>{this['_replaceImage'](_0x127f47,_0x19f71f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3f0fce['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3f0fce['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2dfcd4,_0xdff10a,_0x2a7da3){const _0x5c7b05=this['_editor'],{width:_0x2a349d,height:_0x4669d7}=C(_0xdff10a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x157be1,imageSources:_0xc7b9d9}=k(_0xdff10a,_0x2a349d);_0x5c7b05['model']['change'](_0x12fd2b=>{if('$graveyard'===_0x2dfcd4['root']['rootName']){_0x5c7b05['execute']('insertImage',{'imageType':_0x2dfcd4['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2dfcd4['getAttributes']()),'uploadcareImageId':_0x2a7da3,'src':_0x157be1,'sources':_0xc7b9d9,'width':_0x2a349d,'height':_0x4669d7}});const _0x3310f1=_0x2dfcd4['getChildren']();_0x2dfcd4=_0x5c7b05['model']['document']['selection']['getSelectedElement']();for(const _0x251fd7 of _0x3310f1)_0x12fd2b['append'](_0x12fd2b['cloneElement'](_0x251fd7),_0x2dfcd4);}else _0x12fd2b['setSelection'](_0x2dfcd4,'on'),_0x5c7b05['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2dfcd4['getAttributes']()),'uploadcareImageId':_0x2a7da3,'src':_0x157be1,'sources':_0xc7b9d9,'width':_0x2a349d,'height':_0x4669d7},_0x2dfcd4);_0x12fd2b['setSelection'](_0x2dfcd4,'on');});}async['_getImageAsFile'](_0x2818d4){const _0x381c06=_0x312e58['window'],_0x2bd33a=_0x312e58['document']['location']['href'],_0x3a45b9=new _0x381c06['URL'](_0x2818d4['getAttribute']('src'),_0x2bd33a);if('data:'===_0x3a45b9['protocol']){const _0x5cf2af=_0x3a45b9['href']['split'](','),_0x4b979c=_0x5cf2af[0x0]['match'](/:(.*?);/)[0x1],_0x36a342=_0x4b979c['split']('/')[0x1],_0xec8f73=_0x381c06['atob'](_0x5cf2af[_0x5cf2af['length']-0x1]);let _0x4bb6ba=_0xec8f73['length'];const _0x492087=new _0x381c06['Uint8Array'](_0x4bb6ba);for(;_0x4bb6ba--;)_0x492087[_0x4bb6ba]=_0xec8f73['charCodeAt'](_0x4bb6ba);return new _0x381c06['File']([_0x492087],'image.'+_0x36a342,{'type':_0x4b979c});}const _0x443ad9=_0x3a45b9['href']['split']('/'),_0x19f97b=_0x443ad9[_0x443ad9['length']-0x1],_0x4b33ba=_0x19f97b['split']('.')[0x1];return _0x381c06['fetch'](_0x3a45b9['href'])['then'](_0x44454b=>_0x44454b['clone']()['blob']())['then'](_0x24ab6c=>new _0x381c06['File']([_0x24ab6c],_0x19f97b,{'type':'image/'+_0x4b33ba}));}}class O extends _0x31bcb9{['imageEditController'];static get['requires'](){return[_0x6c8f89];}['_isEditable'];constructor(_0x4a5845){super(_0x4a5845),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x56f3af){const _0x5ec358=G(_0x56f3af);return _0x1a8333=>!(!_0x1a8333||!_0x1a8333['is']('element','imageBlock')&&!_0x1a8333['is']('element','imageInline'))&&(!!_0x1a8333['hasAttribute']('uploadcareImageId')||!!_0x1a8333['hasAttribute']('src')&&_0x5ec358(_0x1a8333['getAttribute']('src')));}(_0x4a5845['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x37dfc3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x37dfc3);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4a3c9e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4a3c9e&&(_0x4a3c9e['is']('element','imageBlock')||_0x4a3c9e['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x6c8f89),_0x4a3c9e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x31bcb9{['refresh'](){const _0x7035da=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x7035da&&(_0x7035da['is']('element','imageBlock')||_0x7035da['is']('element','imageInline')));}['execute'](_0x4766e3){const _0x1a93c0=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2fccb6=>{_0x2fccb6['setAttributes'](_0x4766e3,_0x1a93c0),_0x2fccb6['removeAttribute']('srcset',_0x1a93c0),_0x2fccb6['removeAttribute']('sizes',_0x1a93c0);});}}class m extends _0x570584{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x25394d,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2174e4}=this;_0x2174e4['commands']['add']('uploadcareImageEdit',new O(_0x2174e4)),_0x2174e4['commands']['add']('uploadcareImageReplace',new R(_0x2174e4));}}class g extends _0x570584{['_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 _0x1791e2=this['editor'];_0x1791e2['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5041e6=>{const _0x41ace8=_0x1791e2['commands']['get']('uploadcareImageEdit'),_0xe7e5b0=new _0x359938(_0x5041e6),t=_0x5041e6['t'];return _0xe7e5b0['set']({'icon':_0x27e0e8,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xe7e5b0['bind']('isEnabled')['to'](_0x41ace8),_0xe7e5b0['bind']('isOn')['to'](_0x41ace8,'isActive'),this['listenTo'](_0xe7e5b0,'execute',()=>{_0x1791e2['execute']('uploadcareImageEdit'),_0x1791e2['editing']['view']['focus']();}),_0xe7e5b0;}),this['_initConfig']();}['_initConfig'](){const _0x4c637a=_0x3bc14f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4c637a),this['listenTo'](this['editor'],'destroy',()=>{_0x4c637a['remove']();});}}class et extends _0x570584{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20250630.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-20250630.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250630.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250630.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250630.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250630.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250630.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250630.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250630.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.16.3-alpha.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x256371=_0xfcdd;(function(_0x1db0fd,_0x884218){const _0x506f73=_0xfcdd,_0x5c28bf=_0x1db0fd();while(!![]){try{const _0x503ff7=parseInt(_0x506f73(0x140))/0x1*(-parseInt(_0x506f73(0x13f))/0x2)+-parseInt(_0x506f73(0x144))/0x3*(parseInt(_0x506f73(0x187))/0x4)+-parseInt(_0x506f73(0x15a))/0x5*(-parseInt(_0x506f73(0x17e))/0x6)+parseInt(_0x506f73(0x190))/0x7*(parseInt(_0x506f73(0x147))/0x8)+-parseInt(_0x506f73(0x13e))/0x9+parseInt(_0x506f73(0x164))/0xa*(-parseInt(_0x506f73(0x177))/0xb)+parseInt(_0x506f73(0x18b))/0xc*(parseInt(_0x506f73(0x175))/0xd);if(_0x503ff7===_0x884218)break;else _0x5c28bf['push'](_0x5c28bf['shift']());}catch(_0x17f076){_0x5c28bf['push'](_0x5c28bf['shift']());}}}(_0x3714,0x4bf3d));import{Plugin as _0x19b702}from'ckeditor5/src/core.js';import{Dialog as _0x3aa379}from'ckeditor5/src/ui.js';function _0x3714(){const _0xeac913=['ucContextId','body','uc-config','uploadcareImageId','get','remove','destroy','closeMax','isOfficialPlugin','uploader-','_initImageProcessingIndicator','insertImage','isRegistered','_ctxElement','94015VNFtJr','attributeToAttribute','elementToAttribute','model','downcast','#uc-icon-arrow-down','configElement','commands','input[uploadcare-file-input]','locale','10FjKxTb','selection','uploadcare.pubkey','upcast','listenTo','ctxElement','replaceImageSource','_configElement','data-uc-image-id','iconHrefResolver','getAttribute','editor','uploadcare','\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','document','schema','editing','1673698IunhCC','extend','4335947xsWRYZ','UploadcareEditing','getSelectedElement','conversion','appendChild','imageBlock','_initSchema','132VCRDLm','requires','view','querySelector','isPremiumPlugin','afterInit','execute','uc-upload-ctx-provider','_initConfig','83528lzbEfU','uploadcareImageReplace','init','fromCharCode','120tqXcuD','uploadcare.uploader','render','href','for','49rMEZBL','true','pluginName','contentLanguage','map','join','4187646KsBrjH','2LMnPdu','317073trwxbH','removeAttribute','imageInline','PictureEditing','48FcVETa','add','cleanupImage','137864hTIEec','once','_initConversion','config','_initCtx'];_0x3714=function(){return _0xeac913;};return _0x3714();}import{createElement as _0x29b5e4,global as _0x5ab773,uid as _0x3ca885}from'ckeditor5/src/utils.js';function _0xfcdd(_0x12b9a5,_0x515735){const _0x371457=_0x3714();return _0xfcdd=function(_0xfcdd96,_0x11854a){_0xfcdd96=_0xfcdd96-0x13b;let _0x1f920d=_0x371457[_0xfcdd96];return _0x1f920d;},_0xfcdd(_0x12b9a5,_0x515735);}import{UploadcareCommand as _0x3ba8c1}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0xb32cf0}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x121b7b}from'./utils/editingutils.js';export class UploadcareEditing extends _0x19b702{[_0x256371(0x16b)]=null;[_0x256371(0x159)]=null;static get[_0x256371(0x192)](){const _0x539616=_0x256371;return _0x539616(0x178);}static get[_0x256371(0x17f)](){const _0x4ff933=_0x256371;return[_0x4ff933(0x143),_0xb32cf0,_0x3aa379];}static get[_0x256371(0x154)](){return!0x0;}static get[_0x256371(0x182)](){return!0x0;}[_0x256371(0x14c)];get[_0x256371(0x160)](){const _0x518b33=_0x256371;return this[_0x518b33(0x16b)];}get[_0x256371(0x169)](){const _0x27f872=_0x256371;return this[_0x27f872(0x159)];}constructor(_0x297e98){const _0x553a5e=_0x256371;super(_0x297e98),this[_0x553a5e(0x14c)]=_0x3ca885();}[_0x256371(0x189)](){const _0x39382a=_0x256371,_0x136f67=this[_0x39382a(0x16f)];_0x136f67[_0x39382a(0x161)][_0x39382a(0x145)](_0x39382a(0x170),new _0x3ba8c1(_0x136f67));}[_0x256371(0x183)](){const _0x284c9c=_0x256371;this[_0x284c9c(0x17d)](),this[_0x284c9c(0x149)](),this[_0x284c9c(0x186)](),this[_0x284c9c(0x14b)](),this[_0x284c9c(0x156)](),this[_0x284c9c(0x168)](this[_0x284c9c(0x16f)],_0x284c9c(0x152),()=>{const _0x34f7fc=_0x284c9c;this[_0x34f7fc(0x16b)]&&(this[_0x34f7fc(0x16b)][_0x34f7fc(0x151)](),this[_0x34f7fc(0x16b)]=null),this[_0x34f7fc(0x159)]&&(this[_0x34f7fc(0x159)][_0x34f7fc(0x151)](),this[_0x34f7fc(0x159)]=null);const _0x3c80b4=_0x5ab773[_0x34f7fc(0x172)][_0x34f7fc(0x181)](_0x34f7fc(0x162));_0x3c80b4&&_0x3c80b4[_0x34f7fc(0x151)]();}),async function(_0x244137){const _0x5295c5=_0x317fab([0x33,0x72,0x79,0x56,0x62,0x7a,0x75,0x42,0x34,0x49,0x45,0x73,0x66,0x4b,0x48,0x30,0x6e,0x55,0x6d,0x44,0x58,0x59,0x39,0x52,0x6c,0x5a,0x51,0x61,0x46,0x36,0x47,0x4c,0x67,0x37,0x63,0x54,0x41,0x69,0x57,0x35,0x4a,0x77,0x74,0x53,0x38,0x32,0x43,0x76,0x71,0x4e,0x70,0x4d,0x4f,0x78,0x68,0x65,0x6a,0x31,0x50,0x64,0x6b,0x6f]),_0xd05c3f=0x4b9707c4,_0x362e41=0x4b906be4^_0xd05c3f,_0x27f4bf=window[_0x317fab([0x44,0x61,0x74,0x65])][_0x317fab([0x6e,0x6f,0x77])](),_0x167a43=_0x244137[_0x317fab([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3402af=new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13612a=>{_0x167a43[_0x317fab([0x6f,0x6e,0x63,0x65])](_0x317fab([0x72,0x65,0x61,0x64,0x79]),_0x13612a);}),_0x48b229={[_0x317fab([0x6b,0x74,0x79])]:_0x317fab([0x45,0x43]),[_0x317fab([0x75,0x73,0x65])]:_0x317fab([0x73,0x69,0x67]),[_0x317fab([0x63,0x72,0x76])]:_0x317fab([0x50,0x2d,0x32,0x35,0x36]),[_0x317fab([0x78])]:_0x317fab([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]),[_0x317fab([0x79])]:_0x317fab([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]),[_0x317fab([0x61,0x6c,0x67])]:_0x317fab([0x45,0x53,0x32,0x35,0x36])},_0x14e8d4=_0x167a43[_0x317fab([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x317fab([0x67,0x65,0x74])](_0x317fab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23c274(){let _0x5c0d2c,_0x557acb=null,_0xc1e89e=null;try{if(_0x14e8d4==_0x317fab([0x47,0x50,0x4c]))return _0x317fab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5c0d2c=_0x34418e(),!_0x5c0d2c)return _0x317fab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5c0d2c[_0x317fab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc1e89e=_0x184e66(_0x5c0d2c[_0x317fab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5c0d2c[_0x317fab([0x6a,0x74,0x69])])),await _0x50a86f()?_0x46c917()?_0x1838ea()?_0x317fab([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x349341()?(_0x5c0d2c[_0x317fab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x317fab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x557acb=_0x5324a3(_0x317fab([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5c0d2c[_0x317fab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x317fab([0x74,0x72,0x69,0x61,0x6c])&&(_0x557acb=_0x5324a3(_0x317fab([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x46f9b1()):_0x317fab([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x317fab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x317fab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x317fab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1838ea(){const _0x5a5ebf=[_0x317fab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x317fab([0x74,0x72,0x69,0x61,0x6c])][_0x317fab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c0d2c[_0x317fab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x27f4bf/0x3e8:0xe10*_0x362e41;return _0x5c0d2c[_0x317fab([0x65,0x78,0x70])]<_0x5a5ebf;}function _0x46c917(){const _0x39f544=_0x5c0d2c[_0x317fab([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x39f544&&(!!_0x39f544[_0x317fab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317fab([0x2a]))||!!_0x39f544[_0x317fab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317fab([0x55,0x50,0x4c,0x43])));}function _0x349341(){const _0x1bee8f=_0xfcdd,_0x1985c0=_0x5c0d2c[_0x317fab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1985c0||0x0==_0x1985c0[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x27ef92}=new URL(window[_0x317fab([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1bee8f(0x18e)]);if(_0x1985c0[_0x317fab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27ef92))return!0x0;const _0x278d60=_0x27ef92[_0x317fab([0x73,0x70,0x6c,0x69,0x74])](_0x317fab([0x2e]));return _0x1985c0[_0x317fab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f729b=>_0x1f729b[_0x317fab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317fab([0x2a])))[_0x317fab([0x6d,0x61,0x70])](_0x5ed775=>_0x5ed775[_0x317fab([0x73,0x70,0x6c,0x69,0x74])](_0x317fab([0x2e])))[_0x317fab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3fd4e3=>_0x3fd4e3[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x278d60[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x317fab([0x6d,0x61,0x70])](_0x4abd83=>Array(_0x278d60[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4abd83[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x317fab([0x66,0x69,0x6c,0x6c])](_0x4abd83[0x0]===_0x317fab([0x2a])?_0x317fab([0x2a]):'')[_0x317fab([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4abd83))[_0x317fab([0x73,0x6f,0x6d,0x65])](_0x20b603=>_0x278d60[_0x317fab([0x65,0x76,0x65,0x72,0x79])]((_0x135534,_0xdb0dbc)=>_0x20b603[_0xdb0dbc]===_0x135534||_0x20b603[_0xdb0dbc]===_0x317fab([0x2a])));}function _0x46f9b1(){return _0x557acb&&_0xc1e89e?new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x350a1f,_0x15d77c)=>{_0x557acb[_0x317fab([0x74,0x68,0x65,0x6e])](_0x350a1f,_0x15d77c),_0xc1e89e[_0x317fab([0x74,0x68,0x65,0x6e])](_0x459402=>{_0x459402!=_0x317fab([0x56,0x61,0x6c,0x69,0x64])&&_0x350a1f(_0x459402);},_0x15d77c);}):_0x557acb||_0xc1e89e||_0x317fab([0x56,0x61,0x6c,0x69,0x64]);}}function _0x184e66(_0x56f7a0,_0x3b7fab){return new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5da01a=>{if(_0x341af7())return _0x5da01a(_0x317fab([0x56,0x61,0x6c,0x69,0x64]));_0xe9ee9f(),_0x167a43[_0x317fab([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x317fab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x12eec5=!0x1;const _0x198469=_0x3ca885();function _0x1569e4(_0x352b63){return!!_0x352b63&&(typeof _0x352b63===_0x317fab([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x352b63===_0x317fab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x352b63[_0x317fab([0x74,0x68,0x65,0x6e])]===_0x317fab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x352b63[_0x317fab([0x63,0x61,0x74,0x63,0x68])]===_0x317fab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x13a51e(_0x1928c9){_0x5c8f47(_0x1928c9)[_0x317fab([0x74,0x68,0x65,0x6e])](_0xbf07ae=>{if(!_0xbf07ae||_0xbf07ae[_0x317fab([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x317fab([0x6f,0x6b]))return _0x317fab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb22231(_0x249271(_0x198469+_0x3b7fab))!=_0xbf07ae[_0x317fab([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x317fab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x317fab([0x56,0x61,0x6c,0x69,0x64]);})[_0x317fab([0x74,0x68,0x65,0x6e])](_0x4287a3=>(_0x49b5ed(),_0x4287a3),()=>{const _0x3c2472=_0x1de12f();return null==_0x3c2472?(_0x49b5ed(),_0x317fab([0x56,0x61,0x6c,0x69,0x64])):_0x317fab(_0x27f4bf-_0x3c2472>(0x6f9b83c4^_0xd05c3f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x317fab([0x74,0x68,0x65,0x6e])](_0x5da01a)[_0x317fab([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5da01a(_0x317fab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b07a3=0x4ba1e944^_0xd05c3f;function _0x49b5ed(){const _0x5937ca=_0x317fab([0x6c,0x6c,0x63,0x74,0x2d])+_0xb22231(_0x249271(_0x56f7a0)),_0x4f1e7c=_0x5e972d(_0xb22231(window[_0x317fab([0x4d,0x61,0x74,0x68])][_0x317fab([0x63,0x65,0x69,0x6c])](_0x27f4bf/_0x3b07a3)));window[_0x317fab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x317fab([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5937ca,_0x4f1e7c);}function _0x1de12f(){const _0x3c062b=_0x317fab([0x6c,0x6c,0x63,0x74,0x2d])+_0xb22231(_0x249271(_0x56f7a0)),_0x22b476=window[_0x317fab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x317fab([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c062b);return _0x22b476?window[_0x317fab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e972d(_0x22b476),0x10)*_0x3b07a3:null;}function _0x5c8f47(_0x4e59db){return new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1736eb,_0x54f2e9)=>{_0x4e59db[_0x317fab([0x74,0x68,0x65,0x6e])](_0x1736eb,_0x54f2e9),window[_0x317fab([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54f2e9,0x4b96d304^_0xd05c3f);});}}_0x167a43[_0x317fab([0x6f,0x6e])](_0x317fab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb4cdc1,_0x1a07e8)=>{if(_0x1a07e8[0x0]!=_0x56f7a0)return _0x5da01a(_0x317fab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1a07e8[0x1]={..._0x1a07e8[0x1],[_0x317fab([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x198469};},{[_0x317fab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x317fab([0x68,0x69,0x67,0x68])}),_0x167a43[_0x317fab([0x6f,0x6e])](_0x317fab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38f86f=>{_0x1569e4(_0x38f86f[_0x317fab([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x12eec5=!0x0,_0x13a51e(_0x38f86f[_0x317fab([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x317fab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x317fab([0x6c,0x6f,0x77])}),_0x3402af[_0x317fab([0x74,0x68,0x65,0x6e])](()=>{_0x12eec5||_0x5da01a(_0x317fab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x341af7(){return _0x167a43[_0x317fab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x317fab([0x76,0x69,0x65,0x77])][_0x317fab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x317fab([0x61,0x75,0x74,0x6f]);}function _0xe9ee9f(){_0x167a43[_0x317fab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x317fab([0x76,0x69,0x65,0x77])][_0x317fab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x317fab([0x61,0x75,0x74,0x6f]);}}function _0x5324a3(_0x1307f4){const _0x3dc1d4=[new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24689c=>setTimeout(_0x24689c,0x4b9e3908^_0xd05c3f)),_0x3402af[_0x317fab([0x74,0x68,0x65,0x6e])](()=>new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e6c34=>{let _0x3a27b3=0x0;_0x167a43[_0x317fab([0x6d,0x6f,0x64,0x65,0x6c])][_0x317fab([0x6f,0x6e])](_0x317fab([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x397241,_0x343057)=>{_0x343057[0x0][_0x317fab([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a27b3++,_0x3a27b3==(0x4b97063c^_0xd05c3f)&&(_0x4e6c34(),_0x397241[_0x317fab([0x6f,0x66,0x66])]());});}))];return window[_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x317fab([0x72,0x61,0x63,0x65])](_0x3dc1d4)[_0x317fab([0x74,0x68,0x65,0x6e])](()=>_0x1307f4);}async function _0x24306a(){await _0x3402af,_0x167a43[_0x317fab([0x6d,0x6f,0x64,0x65,0x6c])][_0x317fab([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x35d775,_0x167a43[_0x317fab([0x6d,0x6f,0x64,0x65,0x6c])][_0x317fab([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x35d775,_0x167a43[_0x317fab([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x317fab([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2d8c11(_0x1c4aa2){const _0x4595a8=_0x2d4078();_0x167a43[_0x4595a8]=_0x317fab([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c4aa2,_0x1c4aa2!=_0x317fab([0x56,0x61,0x6c,0x69,0x64])&&_0x24306a();}function _0x2d4078(){const _0x3fdaa8=window[_0x317fab([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x317fab([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x317fab([0x6e,0x6f,0x77])]())[_0x317fab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x317fab([0x2e]),'');let _0x508b59=_0x317fab([0x72]);for(let _0x1a6b67=0x0;_0x1a6b67<_0x3fdaa8[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a6b67+=0x2){let _0x1679ef=window[_0x317fab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fdaa8[_0x317fab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a6b67,_0x1a6b67+0x2));_0x1679ef>=_0x5295c5[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1679ef-=_0x5295c5[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x508b59+=_0x5295c5[_0x1679ef];}return _0x508b59;}function _0x34418e(){const _0x19e023=_0x14e8d4[_0x317fab([0x73,0x70,0x6c,0x69,0x74])](_0x317fab([0x2e]));if(0x3!=_0x19e023[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x7a143d(_0x19e023[0x1]);function _0x7a143d(_0x96a311){const _0x4f3c8d=_0x546c3d(_0x96a311);return _0x4f3c8d&&_0x4f56fe()?_0x4f3c8d:null;function _0x4f56fe(){const _0x552232=_0x4f3c8d[_0x317fab([0x6a,0x74,0x69])],_0x58d77c=window[_0x317fab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x552232[_0x317fab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x552232[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x15ca16={..._0x4f3c8d,[_0x317fab([0x6a,0x74,0x69])]:_0x552232[_0x317fab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x552232[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x15ca16[_0x317fab([0x76,0x63])],_0x249271(_0x15ca16)==_0x58d77c;}}}async function _0x50a86f(){let _0x4ba045=!0x0;try{const _0x4b603b=_0x14e8d4[_0x317fab([0x73,0x70,0x6c,0x69,0x74])](_0x317fab([0x2e])),[_0x52323a,_0x2a1206,_0x5ec179]=_0x4b603b;return _0x32d49e(_0x52323a),await _0x25e2db(_0x52323a,_0x2a1206,_0x5ec179),_0x4ba045;}catch{return!0x1;}function _0x32d49e(_0x2485e3){const _0x3fe0e5=_0x546c3d(_0x2485e3);_0x3fe0e5&&_0x3fe0e5[_0x317fab([0x61,0x6c,0x67])]==_0x317fab([0x45,0x53,0x32,0x35,0x36])||(_0x4ba045=!0x1);}async function _0x25e2db(_0x3983bb,_0x3d8e1e,_0x534cde){const _0x42506e=window[_0x317fab([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x317fab([0x66,0x72,0x6f,0x6d])](_0x5cfb90(_0x534cde),_0x312bcc=>_0x312bcc[_0x317fab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2040fe=new window[(_0x317fab([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x317fab([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3983bb+_0x317fab([0x2e])+_0x3d8e1e),_0x4749a3=window[_0x317fab([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x317fab([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4749a3)return;const _0x4ef4ea=await _0x4749a3[_0x317fab([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x317fab([0x6a,0x77,0x6b]),_0x48b229,{[_0x317fab([0x6e,0x61,0x6d,0x65])]:_0x317fab([0x45,0x43,0x44,0x53,0x41]),[_0x317fab([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x317fab([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x317fab([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4749a3[_0x317fab([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x317fab([0x6e,0x61,0x6d,0x65])]:_0x317fab([0x45,0x43,0x44,0x53,0x41]),[_0x317fab([0x68,0x61,0x73,0x68])]:{[_0x317fab([0x6e,0x61,0x6d,0x65])]:_0x317fab([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ef4ea,_0x42506e,_0x2040fe)||(_0x4ba045=!0x1);}}function _0x546c3d(_0x18ad70){return _0x18ad70[_0x317fab([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x317fab([0x65,0x79]))?JSON[_0x317fab([0x70,0x61,0x72,0x73,0x65])](_0x5cfb90(_0x18ad70)):null;}function _0x5cfb90(_0x3b9cea){return window[_0x317fab([0x61,0x74,0x6f,0x62])](_0x3b9cea[_0x317fab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x317fab([0x2b]))[_0x317fab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x317fab([0x2f])));}function _0x249271(_0xe995c3){let _0x53011f=0x1505;function _0x109ebc(_0xf925ad){for(let _0x26c891=0x0;_0x26c891<_0xf925ad[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26c891++){const _0x47d4b5=_0xf925ad[_0x317fab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26c891);_0x53011f=(_0x53011f<<0x5)+_0x53011f+_0x47d4b5,_0x53011f&=_0x53011f;}}function _0x9e0341(_0x2b99a2){Array[_0x317fab([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b99a2)?_0x2b99a2[_0x317fab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9e0341):_0x2b99a2&&typeof _0x2b99a2==_0x317fab([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x317fab([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b99a2)[_0x317fab([0x73,0x6f,0x72,0x74])]()[_0x317fab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2cac94,_0x2dcb7b])=>{_0x109ebc(_0x2cac94),_0x9e0341(_0x2dcb7b);}):_0x109ebc(window[_0x317fab([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b99a2));}return _0x9e0341(_0xe995c3),_0x53011f>>>0x0;}function _0xb22231(_0x763cd6){return _0x763cd6[_0x317fab([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x317fab([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x317fab([0x30]));}function _0x5e972d(_0x2c55be){return _0x2c55be[_0x317fab([0x73,0x70,0x6c,0x69,0x74])]('')[_0x317fab([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x317fab([0x6a,0x6f,0x69,0x6e])]('');}function _0x35d775(){}function _0x317fab(_0x168408){const _0x198698=_0xfcdd;return _0x168408[_0x198698(0x13c)](_0x416db0=>String[_0x198698(0x18a)](_0x416db0))[_0x198698(0x13d)]('');}_0x2d8c11(await _0x23c274());}(this);}[_0x256371(0x17d)](){const _0xe65c57=_0x256371,_0x4f7bdb=this[_0xe65c57(0x16f)][_0xe65c57(0x15d)][_0xe65c57(0x173)];_0x4f7bdb[_0xe65c57(0x158)](_0xe65c57(0x17c))&&_0x4f7bdb[_0xe65c57(0x176)](_0xe65c57(0x17c),{'allowAttributes':[_0xe65c57(0x14f)]}),_0x4f7bdb[_0xe65c57(0x158)](_0xe65c57(0x142))&&_0x4f7bdb[_0xe65c57(0x176)](_0xe65c57(0x142),{'allowAttributes':[_0xe65c57(0x14f)]});}[_0x256371(0x149)](){const _0x44a7c1=_0x256371,_0x59f9fe=this[_0x44a7c1(0x16f)];_0x59f9fe[_0x44a7c1(0x17a)][_0x44a7c1(0x18f)](_0x44a7c1(0x15e))[_0x44a7c1(0x15b)]({'model':_0x44a7c1(0x14f),'view':_0x44a7c1(0x16c)}),_0x59f9fe[_0x44a7c1(0x17a)][_0x44a7c1(0x18f)](_0x44a7c1(0x167))[_0x44a7c1(0x15c)]({'model':{'key':_0x44a7c1(0x14f),'value':_0x4b7eea=>_0x4b7eea[_0x44a7c1(0x16e)](_0x44a7c1(0x16c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x10f565=_0x59f9fe[_0x44a7c1(0x161)][_0x44a7c1(0x150)](_0x44a7c1(0x16a));_0x10f565&&this[_0x44a7c1(0x168)](_0x10f565,_0x44a7c1(0x146),(_0x25b499,[_0xccfd84,_0x22c2cd])=>{const _0x551fce=_0x44a7c1;_0xccfd84[_0x551fce(0x141)](_0x551fce(0x14f),_0x22c2cd);});}[_0x256371(0x186)](){const _0x536c75=_0x256371,_0x36a304=this[_0x536c75(0x16f)][_0x536c75(0x14a)][_0x536c75(0x150)](_0x536c75(0x18c))||{},_0x31dac9=this[_0x536c75(0x16f)][_0x536c75(0x14a)][_0x536c75(0x150)](_0x536c75(0x166))||'';this[_0x536c75(0x16b)]=_0x29b5e4(_0x5ab773[_0x536c75(0x172)],_0x536c75(0x14e),{..._0x36a304,'pubkey':_0x31dac9,'ctx-name':_0x536c75(0x155)+this[_0x536c75(0x14c)],'sourceList':'','imgOnly':_0x536c75(0x191),'removeCopyright':_0x536c75(0x191),'localeName':this[_0x536c75(0x16f)][_0x536c75(0x163)][_0x536c75(0x13b)],'externalSourcesEmbedCss':_0x536c75(0x171)}),this[_0x536c75(0x16b)][_0x536c75(0x16d)]=_0x3170d8=>{const _0x1eaeb0=_0x536c75;if(_0x1eaeb0(0x153)==_0x3170d8)return _0x1eaeb0(0x15f);},_0x5ab773[_0x536c75(0x172)][_0x536c75(0x14d)][_0x536c75(0x17b)](this[_0x536c75(0x16b)]);}[_0x256371(0x14b)](){const _0x225955=_0x256371;this[_0x225955(0x159)]=_0x29b5e4(_0x5ab773[_0x225955(0x172)],_0x225955(0x185),{'ctx-name':_0x225955(0x155)+this[_0x225955(0x14c)]}),_0x5ab773[_0x225955(0x172)][_0x225955(0x14d)][_0x225955(0x17b)](this[_0x225955(0x159)]);}[_0x256371(0x156)](){const _0x195882=_0x256371,_0x59b902=this[_0x195882(0x16f)][_0x195882(0x161)][_0x195882(0x150)](_0x195882(0x157));_0x59b902&&this[_0x195882(0x168)](_0x59b902,_0x195882(0x184),()=>{const _0xdab3cb=_0x195882,_0x5c06d2=this[_0xdab3cb(0x16f)][_0xdab3cb(0x15d)][_0xdab3cb(0x172)][_0xdab3cb(0x165)][_0xdab3cb(0x179)]();_0x5c06d2&&_0x5c06d2[_0xdab3cb(0x16e)](_0xdab3cb(0x14f))&&this[_0xdab3cb(0x16f)][_0xdab3cb(0x174)][_0xdab3cb(0x180)][_0xdab3cb(0x148)](_0xdab3cb(0x18d),()=>{const _0x4cca52=_0xdab3cb;_0x121b7b(this[_0x4cca52(0x16f)],_0x5c06d2);});});const _0x4b516d=this[_0x195882(0x16f)][_0x195882(0x161)][_0x195882(0x150)](_0x195882(0x188));_0x4b516d&&this[_0x195882(0x168)](_0x4b516d,_0x195882(0x184),()=>{const _0x4eca4b=_0x195882,_0x481f0c=this[_0x4eca4b(0x16f)][_0x4eca4b(0x15d)][_0x4eca4b(0x172)][_0x4eca4b(0x165)][_0x4eca4b(0x179)]();_0x481f0c&&_0x481f0c[_0x4eca4b(0x16e)](_0x4eca4b(0x14f))&&this[_0x4eca4b(0x16f)][_0x4eca4b(0x174)][_0x4eca4b(0x180)][_0x4eca4b(0x148)](_0x4eca4b(0x18d),()=>{const _0x50ab2c=_0x4eca4b;_0x121b7b(this[_0x50ab2c(0x16f)],_0x481f0c);});});}}
|
|
23
|
+
const _0x3ae05e=_0x237c;(function(_0x2f343e,_0x509a66){const _0x3f75a8=_0x237c,_0x5e8707=_0x2f343e();while(!![]){try{const _0x26b58a=parseInt(_0x3f75a8(0x1af))/0x1+-parseInt(_0x3f75a8(0x1e0))/0x2+parseInt(_0x3f75a8(0x1d9))/0x3*(-parseInt(_0x3f75a8(0x1d2))/0x4)+-parseInt(_0x3f75a8(0x1ca))/0x5+parseInt(_0x3f75a8(0x1d0))/0x6+-parseInt(_0x3f75a8(0x1de))/0x7*(-parseInt(_0x3f75a8(0x1e3))/0x8)+-parseInt(_0x3f75a8(0x1a9))/0x9*(parseInt(_0x3f75a8(0x1a4))/0xa);if(_0x26b58a===_0x509a66)break;else _0x5e8707['push'](_0x5e8707['shift']());}catch(_0xf78ad0){_0x5e8707['push'](_0x5e8707['shift']());}}}(_0x5650,0xc7300));import{Plugin as _0x5ddca3}from'ckeditor5/src/core.js';import{Dialog as _0x2dcca6}from'ckeditor5/src/ui.js';function _0x5650(){const _0x59b1e4=['listenTo','uploadcare.pubkey','config','add','data-uc-image-id','uc-config','input[uploadcare-file-input]','6763490OXdKJv','upcast','for','once','appendChild','document','7557276ZRcSTd','fromCharCode','66672gKVXhz','replaceImageSource','uploadcareImageId','_ctxElement','getAttribute','uploader-','locale','75bVplQT','_configElement','downcast','requires','remove','14uNpopL','get','1140734NaThjA','isOfficialPlugin','editor','3423592RksPDC','extend','elementToAttribute','imageBlock','map','attributeToAttribute','model','selection','view','_initCtx','afterInit','imageInline','editing','body','#uc-icon-arrow-down','init','_initSchema','schema','true','isRegistered','_initConversion','_initImageProcessingIndicator','1281230pucfgj','_initConfig','iconHrefResolver','conversion','uploadcare','27SuSIsn','join','uploadcareImageReplace','getSelectedElement','href','uploadcare.uploader','1424562zPKmSK','insertImage','contentLanguage','closeMax','commands','ctxElement','isPremiumPlugin','ucContextId','render','configElement','pluginName','execute','PictureEditing','querySelector','uc-upload-ctx-provider','UploadcareEditing','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','removeAttribute','destroy','cleanupImage'];_0x5650=function(){return _0x59b1e4;};return _0x5650();}import{createElement as _0x5e40ef,global as _0x2225d4,uid as _0x3c7766}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x13d5ec}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4e8869}from'./uploadcareuploadadapter.js';function _0x237c(_0x3b2912,_0x58b477){const _0x5650cc=_0x5650();return _0x237c=function(_0x237c7f,_0x1470b4){_0x237c7f=_0x237c7f-0x193;let _0x4a612f=_0x5650cc[_0x237c7f];return _0x4a612f;},_0x237c(_0x3b2912,_0x58b477);}import{showImageProcessingIndicator as _0x1cda05}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5ddca3{[_0x3ae05e(0x1da)]=null;[_0x3ae05e(0x1d5)]=null;static get[_0x3ae05e(0x1b9)](){const _0x21ed48=_0x3ae05e;return _0x21ed48(0x1be);}static get[_0x3ae05e(0x1dc)](){const _0x25eae9=_0x3ae05e;return[_0x25eae9(0x1bb),_0x4e8869,_0x2dcca6];}static get[_0x3ae05e(0x1e1)](){return!0x0;}static get[_0x3ae05e(0x1b5)](){return!0x0;}[_0x3ae05e(0x1b6)];get[_0x3ae05e(0x1b8)](){const _0x3247d3=_0x3ae05e;return this[_0x3247d3(0x1da)];}get[_0x3ae05e(0x1b4)](){const _0x547daf=_0x3ae05e;return this[_0x547daf(0x1d5)];}constructor(_0x52d8eb){const _0x59070b=_0x3ae05e;super(_0x52d8eb),this[_0x59070b(0x1b6)]=_0x3c7766();}[_0x3ae05e(0x19d)](){const _0x4f2e8a=_0x3ae05e,_0x5358ad=this[_0x4f2e8a(0x1e2)];_0x5358ad[_0x4f2e8a(0x1b3)][_0x4f2e8a(0x1c6)](_0x4f2e8a(0x1a8),new _0x13d5ec(_0x5358ad));}[_0x3ae05e(0x198)](){const _0x314f2d=_0x3ae05e;this[_0x314f2d(0x19e)](),this[_0x314f2d(0x1a2)](),this[_0x314f2d(0x1a5)](),this[_0x314f2d(0x197)](),this[_0x314f2d(0x1a3)](),this[_0x314f2d(0x1c3)](this[_0x314f2d(0x1e2)],_0x314f2d(0x1c1),()=>{const _0x862ab8=_0x314f2d;this[_0x862ab8(0x1da)]&&(this[_0x862ab8(0x1da)][_0x862ab8(0x1dd)](),this[_0x862ab8(0x1da)]=null),this[_0x862ab8(0x1d5)]&&(this[_0x862ab8(0x1d5)][_0x862ab8(0x1dd)](),this[_0x862ab8(0x1d5)]=null);const _0x5a80d8=_0x2225d4[_0x862ab8(0x1cf)][_0x862ab8(0x1bc)](_0x862ab8(0x1c9));_0x5a80d8&&_0x5a80d8[_0x862ab8(0x1dd)]();}),async function(_0x4e9d1e){const _0xdf6855=_0x3e6dee([0x74,0x44,0x38,0x35,0x30,0x70,0x46,0x63,0x77,0x43,0x65,0x5a,0x51,0x62,0x6c,0x53,0x31,0x68,0x4f,0x75,0x58,0x45,0x4c,0x54,0x48,0x73,0x76,0x6a,0x4b,0x36,0x6b,0x66,0x4e,0x50,0x55,0x69,0x37,0x33,0x6e,0x64,0x4d,0x47,0x61,0x32,0x4a,0x71,0x79,0x72,0x41,0x7a,0x42,0x49,0x78,0x59,0x34,0x56,0x52,0x39,0x6d,0x6f,0x57,0x67]),_0x8cb738=0x1fb4dc0c,_0x39d34f=0x1fb3b034^_0x8cb738,_0xb1ea52=window[_0x3e6dee([0x44,0x61,0x74,0x65])][_0x3e6dee([0x6e,0x6f,0x77])](),_0x118078=_0x4e9d1e[_0x3e6dee([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a9953=new window[(_0x3e6dee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x207be4=>{_0x118078[_0x3e6dee([0x6f,0x6e,0x63,0x65])](_0x3e6dee([0x72,0x65,0x61,0x64,0x79]),_0x207be4);}),_0x2254f4={[_0x3e6dee([0x6b,0x74,0x79])]:_0x3e6dee([0x45,0x43]),[_0x3e6dee([0x75,0x73,0x65])]:_0x3e6dee([0x73,0x69,0x67]),[_0x3e6dee([0x63,0x72,0x76])]:_0x3e6dee([0x50,0x2d,0x32,0x35,0x36]),[_0x3e6dee([0x78])]:_0x3e6dee([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]),[_0x3e6dee([0x79])]:_0x3e6dee([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]),[_0x3e6dee([0x61,0x6c,0x67])]:_0x3e6dee([0x45,0x53,0x32,0x35,0x36])},_0x307dd3=_0x118078[_0x3e6dee([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e6dee([0x67,0x65,0x74])](_0x3e6dee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x8288de(){let _0x4bfe87,_0xa6d8f7=null,_0x1f426d=null;try{if(_0x307dd3==_0x3e6dee([0x47,0x50,0x4c]))return _0x3e6dee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4bfe87=_0x3e46e2(),!_0x4bfe87)return _0x3e6dee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4bfe87[_0x3e6dee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f426d=_0x495f80(_0x4bfe87[_0x3e6dee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4bfe87[_0x3e6dee([0x6a,0x74,0x69])])),await _0x3f7808()?_0x32c097()?_0x574c7d()?_0x3e6dee([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3fe49d()?(_0x4bfe87[_0x3e6dee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e6dee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xa6d8f7=_0x32d4f2(_0x3e6dee([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4bfe87[_0x3e6dee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e6dee([0x74,0x72,0x69,0x61,0x6c])&&(_0xa6d8f7=_0x32d4f2(_0x3e6dee([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x873526()):_0x3e6dee([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e6dee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e6dee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3e6dee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x574c7d(){const _0x21ef1a=[_0x3e6dee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e6dee([0x74,0x72,0x69,0x61,0x6c])][_0x3e6dee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bfe87[_0x3e6dee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xb1ea52/0x3e8:0xe10*_0x39d34f;return _0x4bfe87[_0x3e6dee([0x65,0x78,0x70])]<_0x21ef1a;}function _0x32c097(){const _0x1c7237=_0x4bfe87[_0x3e6dee([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1c7237&&(!!_0x1c7237[_0x3e6dee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e6dee([0x2a]))||!!_0x1c7237[_0x3e6dee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e6dee([0x55,0x50,0x4c,0x43])));}function _0x3fe49d(){const _0x29d859=_0x237c,_0x4d48b7=_0x4bfe87[_0x3e6dee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4d48b7||0x0==_0x4d48b7[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x146a49}=new URL(window[_0x3e6dee([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x29d859(0x1ad)]);if(_0x4d48b7[_0x3e6dee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x146a49))return!0x0;const _0x1ad733=_0x146a49[_0x3e6dee([0x73,0x70,0x6c,0x69,0x74])](_0x3e6dee([0x2e]));return _0x4d48b7[_0x3e6dee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1326ac=>_0x1326ac[_0x3e6dee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e6dee([0x2a])))[_0x3e6dee([0x6d,0x61,0x70])](_0x200b5a=>_0x200b5a[_0x3e6dee([0x73,0x70,0x6c,0x69,0x74])](_0x3e6dee([0x2e])))[_0x3e6dee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d06f5=>_0x4d06f5[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ad733[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e6dee([0x6d,0x61,0x70])](_0x858afd=>Array(_0x1ad733[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x858afd[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e6dee([0x66,0x69,0x6c,0x6c])](_0x858afd[0x0]===_0x3e6dee([0x2a])?_0x3e6dee([0x2a]):'')[_0x3e6dee([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x858afd))[_0x3e6dee([0x73,0x6f,0x6d,0x65])](_0x5bd627=>_0x1ad733[_0x3e6dee([0x65,0x76,0x65,0x72,0x79])]((_0x39c01d,_0x2f599c)=>_0x5bd627[_0x2f599c]===_0x39c01d||_0x5bd627[_0x2f599c]===_0x3e6dee([0x2a])));}function _0x873526(){return _0xa6d8f7&&_0x1f426d?new window[(_0x3e6dee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x184293,_0x5d0705)=>{_0xa6d8f7[_0x3e6dee([0x74,0x68,0x65,0x6e])](_0x184293,_0x5d0705),_0x1f426d[_0x3e6dee([0x74,0x68,0x65,0x6e])](_0x50c2a6=>{_0x50c2a6!=_0x3e6dee([0x56,0x61,0x6c,0x69,0x64])&&_0x184293(_0x50c2a6);},_0x5d0705);}):_0xa6d8f7||_0x1f426d||_0x3e6dee([0x56,0x61,0x6c,0x69,0x64]);}}function _0x495f80(_0x36339a,_0x587bfd){return new window[(_0x3e6dee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x422a83=>{if(_0x567527())return _0x422a83(_0x3e6dee([0x56,0x61,0x6c,0x69,0x64]));_0x454dc3(),_0x118078[_0x3e6dee([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e6dee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4fd102=!0x1;const _0x43858f=_0x3c7766();function _0x1e7e1c(_0x11fe1d){return!!_0x11fe1d&&(typeof _0x11fe1d===_0x3e6dee([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x11fe1d===_0x3e6dee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x11fe1d[_0x3e6dee([0x74,0x68,0x65,0x6e])]===_0x3e6dee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x11fe1d[_0x3e6dee([0x63,0x61,0x74,0x63,0x68])]===_0x3e6dee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x531266(_0x422d8c){_0x4184d1(_0x422d8c)[_0x3e6dee([0x74,0x68,0x65,0x6e])](_0x4a26d6=>{if(!_0x4a26d6||_0x4a26d6[_0x3e6dee([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e6dee([0x6f,0x6b]))return _0x3e6dee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2b437f(_0x7af9d0(_0x43858f+_0x587bfd))!=_0x4a26d6[_0x3e6dee([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e6dee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e6dee([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e6dee([0x74,0x68,0x65,0x6e])](_0x17e4bf=>(_0x20ccc7(),_0x17e4bf),()=>{const _0xf9ad61=_0x1931b3();return null==_0xf9ad61?(_0x20ccc7(),_0x3e6dee([0x56,0x61,0x6c,0x69,0x64])):_0x3e6dee(_0xb1ea52-_0xf9ad61>(0x3bb8580c^_0x8cb738)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e6dee([0x74,0x68,0x65,0x6e])](_0x422a83)[_0x3e6dee([0x63,0x61,0x74,0x63,0x68])](()=>{_0x422a83(_0x3e6dee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x44af43=0x1f82328c^_0x8cb738;function _0x20ccc7(){const _0x31a61e=_0x3e6dee([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b437f(_0x7af9d0(_0x36339a)),_0x37709c=_0x2c1978(_0x2b437f(window[_0x3e6dee([0x4d,0x61,0x74,0x68])][_0x3e6dee([0x63,0x65,0x69,0x6c])](_0xb1ea52/_0x44af43)));window[_0x3e6dee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e6dee([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31a61e,_0x37709c);}function _0x1931b3(){const _0x10b639=_0x3e6dee([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b437f(_0x7af9d0(_0x36339a)),_0x39f798=window[_0x3e6dee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e6dee([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10b639);return _0x39f798?window[_0x3e6dee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c1978(_0x39f798),0x10)*_0x44af43:null;}function _0x4184d1(_0xec58cd){return new window[(_0x3e6dee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53d3f8,_0x238b70)=>{_0xec58cd[_0x3e6dee([0x74,0x68,0x65,0x6e])](_0x53d3f8,_0x238b70),window[_0x3e6dee([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x238b70,0x1fb508cc^_0x8cb738);});}}_0x118078[_0x3e6dee([0x6f,0x6e])](_0x3e6dee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e7ac1,_0x491884)=>{if(_0x491884[0x0]!=_0x36339a)return _0x422a83(_0x3e6dee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x491884[0x1]={..._0x491884[0x1],[_0x3e6dee([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x43858f};},{[_0x3e6dee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e6dee([0x68,0x69,0x67,0x68])}),_0x118078[_0x3e6dee([0x6f,0x6e])](_0x3e6dee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x487ece=>{_0x1e7e1c(_0x487ece[_0x3e6dee([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4fd102=!0x0,_0x531266(_0x487ece[_0x3e6dee([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e6dee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e6dee([0x6c,0x6f,0x77])}),_0x4a9953[_0x3e6dee([0x74,0x68,0x65,0x6e])](()=>{_0x4fd102||_0x422a83(_0x3e6dee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x567527(){return _0x118078[_0x3e6dee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e6dee([0x76,0x69,0x65,0x77])][_0x3e6dee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e6dee([0x61,0x75,0x74,0x6f]);}function _0x454dc3(){_0x118078[_0x3e6dee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e6dee([0x76,0x69,0x65,0x77])][_0x3e6dee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e6dee([0x61,0x75,0x74,0x6f]);}}function _0x32d4f2(_0xee9972){const _0x488a25=[new window[(_0x3e6dee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x84543c=>setTimeout(_0x84543c,0x1fbde2c0^_0x8cb738)),_0x4a9953[_0x3e6dee([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e6dee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x595f8e=>{let _0x461b71=0x0;_0x118078[_0x3e6dee([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e6dee([0x6f,0x6e])](_0x3e6dee([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a7b8c,_0x39a478)=>{_0x39a478[0x0][_0x3e6dee([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x461b71++,_0x461b71==(0x1fb4ddf4^_0x8cb738)&&(_0x595f8e(),_0x1a7b8c[_0x3e6dee([0x6f,0x66,0x66])]());});}))];return window[_0x3e6dee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e6dee([0x72,0x61,0x63,0x65])](_0x488a25)[_0x3e6dee([0x74,0x68,0x65,0x6e])](()=>_0xee9972);}async function _0x27aa85(){await _0x4a9953,_0x118078[_0x3e6dee([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e6dee([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33feb6,_0x118078[_0x3e6dee([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e6dee([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33feb6,_0x118078[_0x3e6dee([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e6dee([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x679b3c(_0x277487){const _0x5c933e=_0x257546();_0x118078[_0x5c933e]=_0x3e6dee([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x277487,_0x277487!=_0x3e6dee([0x56,0x61,0x6c,0x69,0x64])&&_0x27aa85();}function _0x257546(){const _0x438742=window[_0x3e6dee([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e6dee([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e6dee([0x6e,0x6f,0x77])]())[_0x3e6dee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e6dee([0x2e]),'');let _0xdf0a49=_0x3e6dee([0x74]);for(let _0x4d43dc=0x0;_0x4d43dc<_0x438742[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d43dc+=0x2){let _0x56a33a=window[_0x3e6dee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x438742[_0x3e6dee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d43dc,_0x4d43dc+0x2));_0x56a33a>=_0xdf6855[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x56a33a-=_0xdf6855[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xdf0a49+=_0xdf6855[_0x56a33a];}return _0xdf0a49;}function _0x3e46e2(){const _0x31eb37=_0x307dd3[_0x3e6dee([0x73,0x70,0x6c,0x69,0x74])](_0x3e6dee([0x2e]));if(0x3!=_0x31eb37[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1808a9(_0x31eb37[0x1]);function _0x1808a9(_0x18b7dd){const _0x51172f=_0x18ec67(_0x18b7dd);return _0x51172f&&_0x195269()?_0x51172f:null;function _0x195269(){const _0x4c3e48=_0x51172f[_0x3e6dee([0x6a,0x74,0x69])],_0xc9f7d4=window[_0x3e6dee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c3e48[_0x3e6dee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c3e48[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4356e6={..._0x51172f,[_0x3e6dee([0x6a,0x74,0x69])]:_0x4c3e48[_0x3e6dee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c3e48[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4356e6[_0x3e6dee([0x76,0x63])],_0x7af9d0(_0x4356e6)==_0xc9f7d4;}}}async function _0x3f7808(){let _0x4901f1=!0x0;try{const _0x210c26=_0x307dd3[_0x3e6dee([0x73,0x70,0x6c,0x69,0x74])](_0x3e6dee([0x2e])),[_0x14947a,_0x3a2d93,_0x55a984]=_0x210c26;return _0x23ca55(_0x14947a),await _0x3cb2b5(_0x14947a,_0x3a2d93,_0x55a984),_0x4901f1;}catch{return!0x1;}function _0x23ca55(_0xaa3adf){const _0x5f0791=_0x18ec67(_0xaa3adf);_0x5f0791&&_0x5f0791[_0x3e6dee([0x61,0x6c,0x67])]==_0x3e6dee([0x45,0x53,0x32,0x35,0x36])||(_0x4901f1=!0x1);}async function _0x3cb2b5(_0x5cc271,_0x164b91,_0x4aac37){const _0x2f3710=window[_0x3e6dee([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e6dee([0x66,0x72,0x6f,0x6d])](_0x15326a(_0x4aac37),_0x407d97=>_0x407d97[_0x3e6dee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xbba3c7=new window[(_0x3e6dee([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e6dee([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5cc271+_0x3e6dee([0x2e])+_0x164b91),_0x2aee71=window[_0x3e6dee([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e6dee([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2aee71)return;const _0xec2682=await _0x2aee71[_0x3e6dee([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e6dee([0x6a,0x77,0x6b]),_0x2254f4,{[_0x3e6dee([0x6e,0x61,0x6d,0x65])]:_0x3e6dee([0x45,0x43,0x44,0x53,0x41]),[_0x3e6dee([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e6dee([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e6dee([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2aee71[_0x3e6dee([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e6dee([0x6e,0x61,0x6d,0x65])]:_0x3e6dee([0x45,0x43,0x44,0x53,0x41]),[_0x3e6dee([0x68,0x61,0x73,0x68])]:{[_0x3e6dee([0x6e,0x61,0x6d,0x65])]:_0x3e6dee([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xec2682,_0x2f3710,_0xbba3c7)||(_0x4901f1=!0x1);}}function _0x18ec67(_0x4719c0){return _0x4719c0[_0x3e6dee([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e6dee([0x65,0x79]))?JSON[_0x3e6dee([0x70,0x61,0x72,0x73,0x65])](_0x15326a(_0x4719c0)):null;}function _0x15326a(_0x1f454d){return window[_0x3e6dee([0x61,0x74,0x6f,0x62])](_0x1f454d[_0x3e6dee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e6dee([0x2b]))[_0x3e6dee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e6dee([0x2f])));}function _0x7af9d0(_0x16100a){let _0x4ddf39=0x1505;function _0x456e96(_0x59c1f1){for(let _0x42604c=0x0;_0x42604c<_0x59c1f1[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42604c++){const _0x256533=_0x59c1f1[_0x3e6dee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x42604c);_0x4ddf39=(_0x4ddf39<<0x5)+_0x4ddf39+_0x256533,_0x4ddf39&=_0x4ddf39;}}function _0x3e1c50(_0x57af75){Array[_0x3e6dee([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x57af75)?_0x57af75[_0x3e6dee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3e1c50):_0x57af75&&typeof _0x57af75==_0x3e6dee([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e6dee([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x57af75)[_0x3e6dee([0x73,0x6f,0x72,0x74])]()[_0x3e6dee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x46d25b,_0x2abca2])=>{_0x456e96(_0x46d25b),_0x3e1c50(_0x2abca2);}):_0x456e96(window[_0x3e6dee([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x57af75));}return _0x3e1c50(_0x16100a),_0x4ddf39>>>0x0;}function _0x2b437f(_0x6733f3){return _0x6733f3[_0x3e6dee([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e6dee([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e6dee([0x30]));}function _0x2c1978(_0x18732a){return _0x18732a[_0x3e6dee([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e6dee([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e6dee([0x6a,0x6f,0x69,0x6e])]('');}function _0x33feb6(){}function _0x3e6dee(_0x52c477){const _0x380bb9=_0x237c;return _0x52c477[_0x380bb9(0x1e7)](_0x154110=>String[_0x380bb9(0x1d1)](_0x154110))[_0x380bb9(0x1aa)]('');}_0x679b3c(await _0x8288de());}(this);}[_0x3ae05e(0x19e)](){const _0x1b8c65=_0x3ae05e,_0x304020=this[_0x1b8c65(0x1e2)][_0x1b8c65(0x194)][_0x1b8c65(0x19f)];_0x304020[_0x1b8c65(0x1a1)](_0x1b8c65(0x1e6))&&_0x304020[_0x1b8c65(0x1e4)](_0x1b8c65(0x1e6),{'allowAttributes':[_0x1b8c65(0x1d4)]}),_0x304020[_0x1b8c65(0x1a1)](_0x1b8c65(0x199))&&_0x304020[_0x1b8c65(0x1e4)](_0x1b8c65(0x199),{'allowAttributes':[_0x1b8c65(0x1d4)]});}[_0x3ae05e(0x1a2)](){const _0x3a26f9=_0x3ae05e,_0x551436=this[_0x3a26f9(0x1e2)];_0x551436[_0x3a26f9(0x1a7)][_0x3a26f9(0x1cc)](_0x3a26f9(0x1db))[_0x3a26f9(0x193)]({'model':_0x3a26f9(0x1d4),'view':_0x3a26f9(0x1c7)}),_0x551436[_0x3a26f9(0x1a7)][_0x3a26f9(0x1cc)](_0x3a26f9(0x1cb))[_0x3a26f9(0x1e5)]({'model':{'key':_0x3a26f9(0x1d4),'value':_0x222860=>_0x222860[_0x3a26f9(0x1d6)](_0x3a26f9(0x1c7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x188a2d=_0x551436[_0x3a26f9(0x1b3)][_0x3a26f9(0x1df)](_0x3a26f9(0x1d3));_0x188a2d&&this[_0x3a26f9(0x1c3)](_0x188a2d,_0x3a26f9(0x1c2),(_0x5126df,[_0x219df1,_0x538e9b])=>{const _0x32d9c2=_0x3a26f9;_0x219df1[_0x32d9c2(0x1c0)](_0x32d9c2(0x1d4),_0x538e9b);});}[_0x3ae05e(0x1a5)](){const _0x352d6e=_0x3ae05e,_0x5f4b2f=this[_0x352d6e(0x1e2)][_0x352d6e(0x1c5)][_0x352d6e(0x1df)](_0x352d6e(0x1ae))||{},_0x72d277=this[_0x352d6e(0x1e2)][_0x352d6e(0x1c5)][_0x352d6e(0x1df)](_0x352d6e(0x1c4))||'';this[_0x352d6e(0x1da)]=_0x5e40ef(_0x2225d4[_0x352d6e(0x1cf)],_0x352d6e(0x1c8),{..._0x5f4b2f,'pubkey':_0x72d277,'ctx-name':_0x352d6e(0x1d7)+this[_0x352d6e(0x1b6)],'sourceList':'','imgOnly':_0x352d6e(0x1a0),'removeCopyright':_0x352d6e(0x1a0),'localeName':this[_0x352d6e(0x1e2)][_0x352d6e(0x1d8)][_0x352d6e(0x1b1)],'externalSourcesEmbedCss':_0x352d6e(0x1bf)}),this[_0x352d6e(0x1da)][_0x352d6e(0x1a6)]=_0x158157=>{const _0x433017=_0x352d6e;if(_0x433017(0x1b2)==_0x158157)return _0x433017(0x19c);},_0x2225d4[_0x352d6e(0x1cf)][_0x352d6e(0x19b)][_0x352d6e(0x1ce)](this[_0x352d6e(0x1da)]);}[_0x3ae05e(0x197)](){const _0x3e9303=_0x3ae05e;this[_0x3e9303(0x1d5)]=_0x5e40ef(_0x2225d4[_0x3e9303(0x1cf)],_0x3e9303(0x1bd),{'ctx-name':_0x3e9303(0x1d7)+this[_0x3e9303(0x1b6)]}),_0x2225d4[_0x3e9303(0x1cf)][_0x3e9303(0x19b)][_0x3e9303(0x1ce)](this[_0x3e9303(0x1d5)]);}[_0x3ae05e(0x1a3)](){const _0x425ce3=_0x3ae05e,_0x39237c=this[_0x425ce3(0x1e2)][_0x425ce3(0x1b3)][_0x425ce3(0x1df)](_0x425ce3(0x1b0));_0x39237c&&this[_0x425ce3(0x1c3)](_0x39237c,_0x425ce3(0x1ba),()=>{const _0x2e6ddc=_0x425ce3,_0x2f9f52=this[_0x2e6ddc(0x1e2)][_0x2e6ddc(0x194)][_0x2e6ddc(0x1cf)][_0x2e6ddc(0x195)][_0x2e6ddc(0x1ac)]();_0x2f9f52&&_0x2f9f52[_0x2e6ddc(0x1d6)](_0x2e6ddc(0x1d4))&&this[_0x2e6ddc(0x1e2)][_0x2e6ddc(0x19a)][_0x2e6ddc(0x196)][_0x2e6ddc(0x1cd)](_0x2e6ddc(0x1b7),()=>{const _0x4064a2=_0x2e6ddc;_0x1cda05(this[_0x4064a2(0x1e2)],_0x2f9f52);});});const _0x1c1d5a=this[_0x425ce3(0x1e2)][_0x425ce3(0x1b3)][_0x425ce3(0x1df)](_0x425ce3(0x1ab));_0x1c1d5a&&this[_0x425ce3(0x1c3)](_0x1c1d5a,_0x425ce3(0x1ba),()=>{const _0x1d8414=_0x425ce3,_0x22b327=this[_0x1d8414(0x1e2)][_0x1d8414(0x194)][_0x1d8414(0x1cf)][_0x1d8414(0x195)][_0x1d8414(0x1ac)]();_0x22b327&&_0x22b327[_0x1d8414(0x1d6)](_0x1d8414(0x1d4))&&this[_0x1d8414(0x1e2)][_0x1d8414(0x19a)][_0x1d8414(0x196)][_0x1d8414(0x1cd)](_0x1d8414(0x1b7),()=>{const _0x3ab0d2=_0x1d8414;_0x1cda05(this[_0x3ab0d2(0x1e2)],_0x22b327);});});}}
|