@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251224.0 → 0.0.0-nightly-next-20251225.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 _0x46c5ec,Command as _0x622180}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xe1c54f,IconGooglePhotos as _0x4048d3,IconGoogleDrive as _0x3d31dc,IconFacebook as _0x48e11f,IconDropbox as _0x154a65,IconUploadcareLink as _0x34a848,IconUploadcareImageUpload as _0x2579db,IconError as _0x22ef4f,IconUploadcareImageEdit as _0x992e1c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x26c389,MenuBarMenuListItemButtonView as _0x23da69,View as _0x714fe1,FocusCycler as _0x2a7ef9,Dialog as _0x14bbf1,DialogViewPosition as _0x1f0409,SpinnerView as _0x124564,IconView as _0x52aa43,Notification as _0x3e0411}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5792cc,DomEmitterMixin as _0x588647,global as _0x4b89d5,getAncestors as _0x15b22f,ObservableMixin as _0x3b712b,uid as _0x3bb7a6,createElement as _0x4f54f7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x173971}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x35c5cd,info as _0x51020d}from'@uploadcare/upload-client';import*as _0x4fae09 from'@uploadcare/file-uploader';var i=function(_0x53fe97){return _0x53fe97['Local']='local',_0x53fe97['URL']='url',_0x53fe97['Dropbox']='dropbox',_0x53fe97['GDrive']='gdrive',_0x53fe97['Facebook']='facebook',_0x53fe97['GPhotos']='gphotos',_0x53fe97['OneDrive']='onedrive',_0x53fe97;}({});function _(_0x1ccfef,_0x1a58f3,_0x575186){const t=_0x1ccfef['t'],_0x1789d4=_0x1ccfef['t'];switch(_0x1a58f3){case i['Local']:return{'text':_0x1789d4('Insert'===_0x575186?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1789d4('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x575186?_0x1789d4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1789d4('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x575186?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x575186?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x575186?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x575186?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x575186?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1a58f3;}}class e extends _0x46c5ec{['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 _0x56fc31=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1a7070;for(const _0x5a30af in _0x56fc31){const _0x113cc7=_0x5a30af,_0x22af10=_0x56fc31[_0x113cc7];if('uploadcareLicenseKeyValid'==_0x22af10||'uploadcareLicenseKeyInvalid'==_0x22af10||'uploadcareLicenseKeyExpired'==_0x22af10||'uploadcareLicenseKeyDomainLimit'==_0x22af10||'uploadcareLicenseKeyNotAllowed'==_0x22af10||'uploadcareLicenseKeyEvaluationLimit'==_0x22af10||'uploadcareLicenseKeyTrialLimit'==_0x22af10||'uploadcareLicenseKeyUsageLimit'==_0x22af10){delete _0x56fc31[_0x113cc7],_0x1a7070=_0x22af10,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1a7070&&_0x56fc31['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1a7070&&_0x56fc31['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1a7070&&_0x56fc31['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1a7070&&_0x56fc31['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1a7070&&_0x56fc31['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1a7070&&_0x56fc31['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1a7070&&_0x56fc31['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1cd2be}=this,_0x11fc8b=_0x1cd2be['commands']['get']('uploadcare');if(!_0x11fc8b)return;const _0x407351=this['_normalizeConfigSourceList'](_0x1cd2be['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x509a3b,_0x262bdf)=>{const _0x2abb5a=this['_getIntegrationKey'](_0x262bdf['type']);return _0x509a3b[_0x2abb5a]||(_0x509a3b[_0x2abb5a]=[]),_0x509a3b[_0x2abb5a]['push'](_0x262bdf),_0x509a3b;},{});_0x1cd2be['plugins']['has']('ImageInsertUI')&&_0x1cd2be['commands']['get']('uploadcare')&&Object['entries'](_0x407351)['forEach'](([_0x21346b,_0x5cf3df])=>{_0x1cd2be['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x21346b,'observable':()=>_0x11fc8b,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5cf3df),'formViewCreator':()=>this['_createDropdownButtons'](_0x5cf3df),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5cf3df),'override':'assetManager'!==_0x21346b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5e763f){const {locale:_0x4f6b66}=this['editor'];return _0x5e763f['map'](_0x148813=>{const _0xda25a4=_(_0x4f6b66,_0x148813,'Insert');switch(_0x148813){case i['Local']:return{'icon':_0x2579db,'type':i['Local'],..._0xda25a4};case i['URL']:return{'icon':_0x34a848,'type':i['URL'],..._0xda25a4};case i['Dropbox']:return{'icon':_0x154a65,'type':i['Dropbox'],..._0xda25a4};case i['Facebook']:return{'icon':_0x48e11f,'type':i['Facebook'],..._0xda25a4};case i['GDrive']:return{'icon':_0x3d31dc,'type':i['GDrive'],..._0xda25a4};case i['GPhotos']:return{'icon':_0x4048d3,'type':i['GPhotos'],..._0xda25a4};case i['OneDrive']:return{'icon':_0xe1c54f,'type':i['OneDrive'],..._0xda25a4};}});}['_getIntegrationKey'](_0x46cdd7){switch(_0x46cdd7){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2e7eed,_0x5864fa){const _0x2fd203=this['editor'],_0x2c792b=new _0x2e7eed(_0x2fd203['locale']),_0x2f8407=_0x2fd203['commands']['get']('uploadcare');return _0x2c792b['bind']('isEnabled')['to'](_0x2f8407),_0x2c792b['on']('execute',()=>{_0x2f8407['execute'](_0x5864fa);}),_0x2c792b;}['_createToolbarButton'](_0x3d15a7){const {locale:_0x2ec617}=this['editor'],_0x4a5753=this['editor']['plugins']['get']('ImageInsertUI'),_0x2e2d73=_0x3d15a7[0x0],_0x229571=this['_createButton'](_0x26c389,_0x2e2d73['type']);return _0x229571['icon']=_0x2e2d73['icon'],_0x229571['bind']('label')['to'](_0x4a5753,'isImageSelected',_0x59d475=>_(_0x2ec617,_0x2e2d73['type'],_0x59d475?'Replace':'Insert')['text']),_0x229571['tooltip']=!0x0,_0x229571;}['_createDropdownButtons'](_0x391117){const {locale:_0x270f11}=this['editor'],_0x44a8d1=this['editor']['plugins']['get']('ImageInsertUI');return _0x391117['map'](_0x30ebc1=>{const _0x3112f1=this['_createButton'](_0x26c389,_0x30ebc1['type']);return _0x3112f1['withText']=!0x0,_0x3112f1['icon']=_0x30ebc1['icon'],_0x3112f1['bind']('label')['to'](_0x44a8d1,'isImageSelected',_0x3866ba=>_(_0x270f11,_0x30ebc1['type'],_0x3866ba?'Replace':'Insert')['text']),_0x3112f1;});}['_createMenuBarButtons'](_0x3f89d8){return _0x3f89d8['map'](_0x4fa659=>{const _0xbfd304=this['_createButton'](_0x23da69,_0x4fa659['type']);return _0xbfd304['icon']=_0x4fa659['icon'],_0xbfd304['label']=_0x4fa659['shortText'],_0xbfd304;});}}class F extends _0x714fe1{['focusTracker'];['focusCycler'];constructor(_0x484d86){super(_0x484d86),this['focusTracker']=new _0x5792cc(),this['focusCycler']=new _0x2a7ef9({'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(_0x357350,_0x5b60a1){super(_0x357350),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-'+_0x5b60a1}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x24d20c,_0x328677){const _0x284593=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4f9f71=>_0x4f9f71<=_0x328677)['map'](_0x337764=>_0x24d20c['replace'](/\/$/,'')+'/-/resize/'+_0x337764+'x/\x20'+_0x337764+'w');return{'imageFallbackUrl':_0x24d20c,'imageSources':[{'srcset':_0x284593['join'](',\x20'),'sizes':'(max-width:\x20'+_0x328677+'px)\x20100vw,\x20'+_0x328677+'px','type':'image/webp'}]};}function S(_0x3ca2ba,_0x2d1c6a,_0x5c6688){const _0x158e33=_0x3ca2ba['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x158e33?parseInt(_0x158e33[0x1],0xa):_0x2d1c6a,'height':_0x158e33?parseInt(_0x158e33[0x2],0xa):_0x5c6688};}function p(_0x583969,_0x2c3e29){const _0x1675a8=new(_0x588647())(),_0x5b21f3=_0x583969['plugins']['get']('ImageUtils'),_0x411976=_0x583969['editing']['mapper']['toViewElement'](_0x2c3e29),_0x3d2ae4=_0x5b21f3['findViewImgElement'](_0x411976),_0x1a7665=_0x583969['editing']['view']['domConverter']['viewToDom'](_0x3d2ae4),_0x50d7b3=_0x2c3e29['getAttribute']('width'),_0x525ab9=_0x2c3e29['getAttribute']('height'),_0x22cf45='image-processing';_0x583969['editing']['view']['change'](_0x23dde3=>{_0x23dde3['addClass'](_0x22cf45,_0x411976),_0x23dde3['setStyle']('aspect-ratio',_0x50d7b3+'/'+_0x525ab9,_0x3d2ae4);}),_0x1675a8['listenTo'](_0x1a7665,'load',()=>{_0x1675a8['stopListening'](_0x1a7665,'load'),_0x583969['editing']['view']['change'](_0x26e894=>{_0x26e894['removeClass'](_0x22cf45,_0x411976),_0x26e894['removeStyle']('aspect-ratio',_0x3d2ae4);});});}function G(_0x17dc95){if(Array['isArray'](_0x17dc95)){const _0x3ca2ec=_0x17dc95['map'](G);return _0x4c098b=>_0x3ca2ec['some'](_0x26c07b=>_0x26c07b(_0x4c098b));}if('origin'==_0x17dc95){const _0x3d2bd7=_0x4b89d5['window']['location']['origin'];return _0x3a446d=>new URL(_0x3a446d,_0x4b89d5['document']['baseURI'])['origin']==_0x3d2bd7;}return'function'==typeof _0x17dc95?_0x17dc95:_0x17dc95 instanceof RegExp?_0x187334=>!(!_0x187334['match'](_0x17dc95)&&!_0x187334['replace'](/^https?:\/\//,'')['match'](_0x17dc95)):()=>!0x1;}function A(_0x4640e4,_0x5a0561){return _0x15b22f(_0x4640e4['target'])['includes'](_0x5a0561);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3b712b(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x14e002,_0x1bb212,_0x123a87){super(),this['_editor']=_0x14e002,this['_editing']=_0x1bb212,this['_dialog']=_0x14e002['plugins']['get'](_0x14bbf1),this['_api']=_0x1bb212['ctxElement']['getAPI'](),this['_type']=_0x123a87,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:_0x37212a,model:_0x5dbe50}=this['_editor'],_0x4d3512=_0x5dbe50['document']['selection']['getSelectedElement'](),_0x256e1f=_0x4d3512&&(_0x4d3512['is']('element','imageBlock')||_0x4d3512['is']('element','imageInline'));this['_formView']=new x(_0x37212a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2579db,'title':_(_0x37212a,this['_type'],_0x256e1f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1f0409['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3f4143=>!A(_0x3f4143,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1570b1}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x7b1eb2=>{const _0x16d672=_0x1570b1['length'];for(const _0x2a68a6 of _0x1570b1){const _0x5bb7c1=_0x2a68a6===_0x1570b1[_0x16d672-0x1],{cdnUrl:_0x160231,fileInfo:_0x160841}=_0x2a68a6;if(!_0x160231||!_0x160841)continue;const {width:_0x2007ca,height:_0x11ead4}=_0x160841['imageInfo'],_0x4f621f=S(_0x160231,_0x2007ca,_0x11ead4),_0x33ffd4=C(_0x160231,_0x4f621f['width']),_0x7db24={'id':_0x160841['uuid'],'type':'image','attributes':{'imageDimension':_0x4f621f,..._0x33ffd4}};this['_insertAsset'](_0x7db24,_0x5bb7c1,_0x7b1eb2);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x226420=>{'idle'===_0x226420['detail']['status']&&!_0x226420['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xe445af,_0x51608a,_0x14361b){const _0x111343=this['_editor']['model']['document']['selection'],_0x659cb5=_0x111343['getSelectedElement'](),_0x40b8ac=!(!_0x659cb5||!_0x659cb5['is']('element','imageInline'));_0x14361b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xe445af,_0x40b8ac),_0x51608a||_0x14361b['setSelection'](_0x111343['getLastPosition']());}['_insertImage'](_0xe9f967,_0x87c89f){const _0xe8b32a=this['_editor'],{imageDimension:_0x3ef315,imageFallbackUrl:_0xc852f,imageSources:_0x5bc7e1}=_0xe9f967['attributes'];_0xe8b32a['execute']('insertImage',{'imageType':_0x87c89f?'imageInline':null,'source':{'uploadcareImageId':_0xe9f967['id'],'src':_0xc852f,'sources':_0x5bc7e1,..._0x3ef315}});}}class w extends _0x622180{['_editing'];['_controller']=null;static get['requires'](){return[_0x14bbf1,o];}constructor(_0x10e6ad){super(_0x10e6ad),this['_editing']=_0x10e6ad['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x38090e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x38090e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5786e7,..._0x1ef7c4}){return _0x35c5cd(_0x5786e7,_0x1ef7c4);}static['getInfo'](_0x2ebaa6,_0x11b162){return _0x51020d(_0x2ebaa6,_0x11b162);}}class f extends _0x46c5ec{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x173971,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x52de14=this['editor'];if(!!!_0x52de14['config']['get']('uploadcare'))return;_0x52de14['plugins']['get'](_0x173971)['createUploadAdapter']=_0x4885b4=>new k(_0x4885b4,_0x52de14),_0x52de14['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x49d0b3,{imageElement:_0x47672e,data:_0x263b36})=>{_0x52de14['model']['change'](_0x10867d=>{_0x10867d['setAttribute']('uploadcareImageId',_0x263b36['uploadcareImageId'],_0x47672e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xaead87,_0x5081e8){this['loader']=_0xaead87,this['editor']=_0x5081e8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5c13d2=await this['loader']['file'];return j['upload']({'file':_0x5c13d2,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x597750=>{_0x597750&&_0x597750['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x597750['value']);}})['then'](async _0xa64229=>{const {imageFallbackUrl:_0x681094,imageSources:_0x24ebd6}=C(_0xa64229['cdnUrl'],_0xa64229['imageInfo']['width']);return{'uploadcareImageId':_0xa64229['uuid'],'default':_0x681094,'sources':_0x24ebd6};})['catch'](()=>{const _0x4aed62=t('Cannot\x20upload\x20file:')+('\x20'+_0x5c13d2['name']+'.');return Promise['reject'](_0x4aed62);});}['abort'](){this['controller']['abort']();}}class o extends _0x46c5ec{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x14bbf1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x28b57c){super(_0x28b57c),this['ucContextId']=_0x3bb7a6();}['init'](){const _0x12e113=this['editor'];_0x12e113['commands']['add']('uploadcare',new w(_0x12e113));}['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 _0x44d340=_0x4b89d5['document']['querySelector']('input[uploadcare-file-input]');_0x44d340&&_0x44d340['remove']();}),async function(_0x2ab34d){const _0x1f9a20=_0x13e7ab([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x5269be=0x535f8c3a,_0x1f5f35=0x5358f0ea^_0x5269be,_0x550ea9=window[_0x13e7ab([0x44,0x61,0x74,0x65])][_0x13e7ab([0x6e,0x6f,0x77])](),_0x4fe158=_0x2ab34d[_0x13e7ab([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2538dc=new window[(_0x13e7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x378007=>{_0x4fe158[_0x13e7ab([0x6f,0x6e,0x63,0x65])](_0x13e7ab([0x72,0x65,0x61,0x64,0x79]),_0x378007);}),_0x1be432={[_0x13e7ab([0x6b,0x74,0x79])]:_0x13e7ab([0x45,0x43]),[_0x13e7ab([0x75,0x73,0x65])]:_0x13e7ab([0x73,0x69,0x67]),[_0x13e7ab([0x63,0x72,0x76])]:_0x13e7ab([0x50,0x2d,0x32,0x35,0x36]),[_0x13e7ab([0x78])]:_0x13e7ab([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]),[_0x13e7ab([0x79])]:_0x13e7ab([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]),[_0x13e7ab([0x61,0x6c,0x67])]:_0x13e7ab([0x45,0x53,0x32,0x35,0x36])},_0x2d3662=_0x4fe158[_0x13e7ab([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13e7ab([0x67,0x65,0x74])](_0x13e7ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x38835d(){let _0x47b936,_0x2d68bb=null,_0x360bad=null;try{if(_0x2d3662==_0x13e7ab([0x47,0x50,0x4c]))return _0x13e7ab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47b936=_0x208822(),!_0x47b936)return _0x13e7ab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x47b936[_0x13e7ab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x360bad=_0xe45029(_0x47b936[_0x13e7ab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47b936[_0x13e7ab([0x6a,0x74,0x69])])),await _0x597bc()?_0x5ca7ac()?_0x567d83()?_0x13e7ab([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xe267b7()?(_0x47b936[_0x13e7ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13e7ab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2d68bb=_0x1a2ad(_0x13e7ab([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x47b936[_0x13e7ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13e7ab([0x74,0x72,0x69,0x61,0x6c])&&(_0x2d68bb=_0x1a2ad(_0x13e7ab([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x217687()):_0x13e7ab([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13e7ab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13e7ab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x13e7ab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x567d83(){const _0x6deaa8=[_0x13e7ab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13e7ab([0x74,0x72,0x69,0x61,0x6c])][_0x13e7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47b936[_0x13e7ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x550ea9/0x3e8:0xe10*_0x1f5f35;return _0x47b936[_0x13e7ab([0x65,0x78,0x70])]<_0x6deaa8;}function _0x5ca7ac(){const _0x21ace9=_0x47b936[_0x13e7ab([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x21ace9&&(!!_0x21ace9[_0x13e7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13e7ab([0x2a]))||!!_0x21ace9[_0x13e7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13e7ab([0x55,0x50,0x4c,0x43])));}function _0xe267b7(){const _0x3df8bf=_0x47b936[_0x13e7ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3df8bf||0x0==_0x3df8bf[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xd3aa8f}=new URL(window[_0x13e7ab([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3df8bf[_0x13e7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd3aa8f))return!0x0;const _0x37faf4=_0xd3aa8f[_0x13e7ab([0x73,0x70,0x6c,0x69,0x74])](_0x13e7ab([0x2e]));return _0x3df8bf[_0x13e7ab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x571371=>_0x571371[_0x13e7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13e7ab([0x2a])))[_0x13e7ab([0x6d,0x61,0x70])](_0x59c561=>_0x59c561[_0x13e7ab([0x73,0x70,0x6c,0x69,0x74])](_0x13e7ab([0x2e])))[_0x13e7ab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1109fd=>_0x1109fd[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x37faf4[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13e7ab([0x6d,0x61,0x70])](_0x5c4e26=>Array(_0x37faf4[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5c4e26[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13e7ab([0x66,0x69,0x6c,0x6c])](_0x5c4e26[0x0]===_0x13e7ab([0x2a])?_0x13e7ab([0x2a]):'')[_0x13e7ab([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5c4e26))[_0x13e7ab([0x73,0x6f,0x6d,0x65])](_0x3432a5=>_0x37faf4[_0x13e7ab([0x65,0x76,0x65,0x72,0x79])]((_0x286678,_0x2ec3dd)=>_0x3432a5[_0x2ec3dd]===_0x286678||_0x3432a5[_0x2ec3dd]===_0x13e7ab([0x2a])));}function _0x217687(){return _0x2d68bb&&_0x360bad?new window[(_0x13e7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e7308,_0x5f5b76)=>{_0x2d68bb[_0x13e7ab([0x74,0x68,0x65,0x6e])](_0x2e7308,_0x5f5b76),_0x360bad[_0x13e7ab([0x74,0x68,0x65,0x6e])](_0x4956a9=>{_0x4956a9!=_0x13e7ab([0x56,0x61,0x6c,0x69,0x64])&&_0x2e7308(_0x4956a9);},_0x5f5b76);}):_0x2d68bb||_0x360bad||_0x13e7ab([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe45029(_0x14dfa7,_0x2404d0){return new window[(_0x13e7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d2171=>{if(_0x561b12())return _0x4d2171(_0x13e7ab([0x56,0x61,0x6c,0x69,0x64]));_0x2471dd(),_0x4fe158[_0x13e7ab([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13e7ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x578e36=!0x1;const _0x46cc81=_0x3bb7a6();function _0x346576(_0x539095){return!!_0x539095&&(typeof _0x539095===_0x13e7ab([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x539095===_0x13e7ab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x539095[_0x13e7ab([0x74,0x68,0x65,0x6e])]===_0x13e7ab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x539095[_0x13e7ab([0x63,0x61,0x74,0x63,0x68])]===_0x13e7ab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4dc113(_0x1edfd5){_0x10693d(_0x1edfd5)[_0x13e7ab([0x74,0x68,0x65,0x6e])](_0x1a44a7=>{if(!_0x1a44a7||_0x1a44a7[_0x13e7ab([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13e7ab([0x6f,0x6b]))return _0x13e7ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x24c4b8(_0x2e75fe(_0x46cc81+_0x2404d0))!=_0x1a44a7[_0x13e7ab([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13e7ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13e7ab([0x56,0x61,0x6c,0x69,0x64]);})[_0x13e7ab([0x74,0x68,0x65,0x6e])](_0x572b83=>(_0x546629(),_0x572b83),()=>{const _0xb4699d=_0x156592();return null==_0xb4699d?(_0x546629(),_0x13e7ab([0x56,0x61,0x6c,0x69,0x64])):_0x13e7ab(_0x550ea9-_0xb4699d>(0x7753083a^_0x5269be)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13e7ab([0x74,0x68,0x65,0x6e])](_0x4d2171)[_0x13e7ab([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d2171(_0x13e7ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6eb9f4=0x536962ba^_0x5269be;function _0x546629(){const _0x10a9ca=_0x13e7ab([0x6c,0x6c,0x63,0x74,0x2d])+_0x24c4b8(_0x2e75fe(_0x14dfa7)),_0x5181c8=_0x124f98(_0x24c4b8(window[_0x13e7ab([0x4d,0x61,0x74,0x68])][_0x13e7ab([0x63,0x65,0x69,0x6c])](_0x550ea9/_0x6eb9f4)));window[_0x13e7ab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13e7ab([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10a9ca,_0x5181c8);}function _0x156592(){const _0x3143ec=_0x13e7ab([0x6c,0x6c,0x63,0x74,0x2d])+_0x24c4b8(_0x2e75fe(_0x14dfa7)),_0x4eb146=window[_0x13e7ab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13e7ab([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3143ec);return _0x4eb146?window[_0x13e7ab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x124f98(_0x4eb146),0x10)*_0x6eb9f4:null;}function _0x10693d(_0x1a4dfb){return new window[(_0x13e7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cf262,_0x8fc93b)=>{_0x1a4dfb[_0x13e7ab([0x74,0x68,0x65,0x6e])](_0x2cf262,_0x8fc93b),window[_0x13e7ab([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8fc93b,0x535e58fa^_0x5269be);});}}_0x4fe158[_0x13e7ab([0x6f,0x6e])](_0x13e7ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19021a,_0x360540)=>{if(_0x360540[0x0]!=_0x14dfa7)return _0x4d2171(_0x13e7ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x360540[0x1]={..._0x360540[0x1],[_0x13e7ab([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x46cc81};},{[_0x13e7ab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13e7ab([0x68,0x69,0x67,0x68])}),_0x4fe158[_0x13e7ab([0x6f,0x6e])](_0x13e7ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f67b2=>{_0x346576(_0x4f67b2[_0x13e7ab([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x578e36=!0x0,_0x4dc113(_0x4f67b2[_0x13e7ab([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13e7ab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13e7ab([0x6c,0x6f,0x77])}),_0x2538dc[_0x13e7ab([0x74,0x68,0x65,0x6e])](()=>{_0x578e36||_0x4d2171(_0x13e7ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x561b12(){return _0x4fe158[_0x13e7ab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13e7ab([0x76,0x69,0x65,0x77])][_0x13e7ab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13e7ab([0x61,0x75,0x74,0x6f]);}function _0x2471dd(){_0x4fe158[_0x13e7ab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13e7ab([0x76,0x69,0x65,0x77])][_0x13e7ab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13e7ab([0x61,0x75,0x74,0x6f]);}}function _0x1a2ad(_0x280ea1){const _0x5724b1=[new window[(_0x13e7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3afae2=>setTimeout(_0x3afae2,0x5356b2f6^_0x5269be)),_0x2538dc[_0x13e7ab([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13e7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ff0c6=>{let _0x4eeef9=0x0;_0x4fe158[_0x13e7ab([0x6d,0x6f,0x64,0x65,0x6c])][_0x13e7ab([0x6f,0x6e])](_0x13e7ab([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x176a03,_0x55fc6f)=>{_0x55fc6f[0x0][_0x13e7ab([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4eeef9++,_0x4eeef9==(0x535f89d2^_0x5269be)&&(_0x2ff0c6(),_0x176a03[_0x13e7ab([0x6f,0x66,0x66])]());});}))];return window[_0x13e7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13e7ab([0x72,0x61,0x63,0x65])](_0x5724b1)[_0x13e7ab([0x74,0x68,0x65,0x6e])](()=>_0x280ea1);}async function _0x492bef(){await _0x2538dc,_0x4fe158[_0x13e7ab([0x6d,0x6f,0x64,0x65,0x6c])][_0x13e7ab([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c80df,_0x4fe158[_0x13e7ab([0x6d,0x6f,0x64,0x65,0x6c])][_0x13e7ab([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c80df,_0x4fe158[_0x13e7ab([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13e7ab([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2be6ba(_0x4d0d76){const _0x18ec7e=_0x5c74a0();_0x4fe158[_0x18ec7e]=_0x13e7ab([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4d0d76,_0x4d0d76!=_0x13e7ab([0x56,0x61,0x6c,0x69,0x64])&&_0x492bef();}function _0x5c74a0(){const _0x3208e1=window[_0x13e7ab([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13e7ab([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13e7ab([0x6e,0x6f,0x77])]())[_0x13e7ab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13e7ab([0x2e]),'');let _0x331419=_0x13e7ab([0x68]);for(let _0x3139a7=0x0;_0x3139a7<_0x3208e1[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3139a7+=0x2){let _0xcf5f38=window[_0x13e7ab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3208e1[_0x13e7ab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3139a7,_0x3139a7+0x2));_0xcf5f38>=_0x1f9a20[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xcf5f38-=_0x1f9a20[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x331419+=_0x1f9a20[_0xcf5f38];}return _0x331419;}function _0x208822(){const _0x443796=_0x2d3662[_0x13e7ab([0x73,0x70,0x6c,0x69,0x74])](_0x13e7ab([0x2e]));if(0x3!=_0x443796[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x364ad2(_0x443796[0x1]);function _0x364ad2(_0x21fb40){const _0x4940d7=_0x38224c(_0x21fb40);return _0x4940d7&&_0x4e7415()?_0x4940d7:null;function _0x4e7415(){const _0x8fa7f6=_0x4940d7[_0x13e7ab([0x6a,0x74,0x69])],_0x20303b=window[_0x13e7ab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8fa7f6[_0x13e7ab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8fa7f6[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x687a1c={..._0x4940d7,[_0x13e7ab([0x6a,0x74,0x69])]:_0x8fa7f6[_0x13e7ab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8fa7f6[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x687a1c[_0x13e7ab([0x76,0x63])],_0x2e75fe(_0x687a1c)==_0x20303b;}}}async function _0x597bc(){let _0x1efe1e=!0x0;try{const _0x22b582=_0x2d3662[_0x13e7ab([0x73,0x70,0x6c,0x69,0x74])](_0x13e7ab([0x2e])),[_0x51817c,_0x140396,_0x599ca8]=_0x22b582;return _0x7ebceb(_0x51817c),await _0x586be8(_0x51817c,_0x140396,_0x599ca8),_0x1efe1e;}catch{return!0x1;}function _0x7ebceb(_0x531233){const _0x42671a=_0x38224c(_0x531233);_0x42671a&&_0x42671a[_0x13e7ab([0x61,0x6c,0x67])]==_0x13e7ab([0x45,0x53,0x32,0x35,0x36])||(_0x1efe1e=!0x1);}async function _0x586be8(_0x495c9e,_0x1ef1ef,_0x3d0cf0){const _0x38ae89=window[_0x13e7ab([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13e7ab([0x66,0x72,0x6f,0x6d])](_0x558499(_0x3d0cf0),_0x21ecb8=>_0x21ecb8[_0x13e7ab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d0d0f=new window[(_0x13e7ab([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13e7ab([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x495c9e+_0x13e7ab([0x2e])+_0x1ef1ef),_0x4cff65=window[_0x13e7ab([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13e7ab([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4cff65)return;const _0x4eca5c=await _0x4cff65[_0x13e7ab([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13e7ab([0x6a,0x77,0x6b]),_0x1be432,{[_0x13e7ab([0x6e,0x61,0x6d,0x65])]:_0x13e7ab([0x45,0x43,0x44,0x53,0x41]),[_0x13e7ab([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13e7ab([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13e7ab([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4cff65[_0x13e7ab([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13e7ab([0x6e,0x61,0x6d,0x65])]:_0x13e7ab([0x45,0x43,0x44,0x53,0x41]),[_0x13e7ab([0x68,0x61,0x73,0x68])]:{[_0x13e7ab([0x6e,0x61,0x6d,0x65])]:_0x13e7ab([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4eca5c,_0x38ae89,_0x5d0d0f)||(_0x1efe1e=!0x1);}}function _0x38224c(_0x46e118){return _0x46e118[_0x13e7ab([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13e7ab([0x65,0x79]))?JSON[_0x13e7ab([0x70,0x61,0x72,0x73,0x65])](_0x558499(_0x46e118)):null;}function _0x558499(_0xc62977){return window[_0x13e7ab([0x61,0x74,0x6f,0x62])](_0xc62977[_0x13e7ab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13e7ab([0x2b]))[_0x13e7ab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13e7ab([0x2f])));}function _0x2e75fe(_0x272d15){let _0x14aec1=0x1505;function _0x5152a9(_0x11a9bb){for(let _0x399a37=0x0;_0x399a37<_0x11a9bb[_0x13e7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x399a37++){const _0xdfd397=_0x11a9bb[_0x13e7ab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x399a37);_0x14aec1=(_0x14aec1<<0x5)+_0x14aec1+_0xdfd397,_0x14aec1&=_0x14aec1;}}function _0x3952b3(_0x276115){Array[_0x13e7ab([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x276115)?_0x276115[_0x13e7ab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3952b3):_0x276115&&typeof _0x276115==_0x13e7ab([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13e7ab([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x276115)[_0x13e7ab([0x73,0x6f,0x72,0x74])]()[_0x13e7ab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x394b7e,_0x5016d3])=>{_0x5152a9(_0x394b7e),_0x3952b3(_0x5016d3);}):_0x5152a9(window[_0x13e7ab([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x276115));}return _0x3952b3(_0x272d15),_0x14aec1>>>0x0;}function _0x24c4b8(_0x394c23){return _0x394c23[_0x13e7ab([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13e7ab([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13e7ab([0x30]));}function _0x124f98(_0x439239){return _0x439239[_0x13e7ab([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13e7ab([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13e7ab([0x6a,0x6f,0x69,0x6e])]('');}function _0x2c80df(){}function _0x13e7ab(_0x279cf){return _0x279cf['map'](_0x13330b=>String['fromCharCode'](_0x13330b))['join']('');}_0x2be6ba(await _0x38835d());}(this);}['_initSchema'](){const _0x5c1f81=this['editor']['model']['schema'];_0x5c1f81['isRegistered']('imageBlock')&&_0x5c1f81['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5c1f81['isRegistered']('imageInline')&&_0x5c1f81['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x21dc57=this['editor'];_0x21dc57['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x21dc57['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x18b4eb=>_0x18b4eb['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5eb5e8=_0x21dc57['commands']['get']('replaceImageSource');_0x5eb5e8&&this['listenTo'](_0x5eb5e8,'cleanupImage',(_0x1e9ea0,[_0x437bc1,_0x1c75a7])=>{_0x437bc1['removeAttribute']('uploadcareImageId',_0x1c75a7);});}['_initConfig'](){const _0x423127=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5cfa12=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4f54f7(_0x4b89d5['document'],'uc-config',{..._0x423127,'pubkey':_0x5cfa12,'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']=_0x79ab94=>{if('closeMax'==_0x79ab94)return'#uc-icon-arrow-down';},_0x4b89d5['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4f54f7(_0x4b89d5['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4b89d5['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1bcdee=this['editor']['commands']['get']('insertImage');_0x1bcdee&&this['listenTo'](_0x1bcdee,'execute',()=>{const _0x2a4eab=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a4eab&&_0x2a4eab['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2a4eab);});});const _0x4069c6=this['editor']['commands']['get']('uploadcareImageReplace');_0x4069c6&&this['listenTo'](_0x4069c6,'execute',()=>{const _0x165f01=this['editor']['model']['document']['selection']['getSelectedElement']();_0x165f01&&_0x165f01['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x165f01);});});}}class tt extends _0x46c5ec{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3157a4){super(_0x3157a4),_0x3157a4['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4fae09['defineComponents'](_0x4fae09),this['_defineLocale']();}['_defineLocale'](){const _0x237ea8=this['editor']['config']['get']('uploadcare.locale'),_0x385ff2=this['editor']['locale']['contentLanguage'];_0x237ea8&&_0x4fae09['defineLocale'](_0x385ff2,_0x237ea8);}}class ii extends _0x714fe1{constructor(_0x36feb4){super(_0x36feb4);const t=_0x36feb4['t'],_0xfd9bb9=this['bindTemplate'],_0x56de91=new _0x124564();_0x56de91['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':[_0x56de91,{'text':_0xfd9bb9['to']('imageUploadProgress',_0x2d6514=>t('Loading\x20image...')+'\x20('+(_0x2d6514||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 _0x714fe1{constructor(_0x1e748b){super(_0x1e748b);const t=_0x1e748b['t'];this['set']('errorType',null);const _0x18835c=new _0x26c389(_0x1e748b);_0x18835c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x18835c['withText']=!0x0,_0x18835c['class']='ck-button-action',_0x18835c['on']('execute',()=>{this['fire']('retry');}),_0x18835c['bind']('isVisible')['to'](this,'errorType',_0x51dc93=>'NotFound'!==_0x51dc93);const _0x3c896f=new _0x52aa43();_0x3c896f['content']=_0x22ef4f,_0x3c896f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2f7115=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':[_0x3c896f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2f7115['to']('errorType',_0x4c10e3=>t('NotFound'!==_0x4c10e3?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x18835c]},{'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 _0x714fe1{constructor(_0x4e3662,_0x15b279){super(_0x4e3662);const _0x4cfd8e=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x15b279,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4cfd8e['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1dcaad,_0x3e2d31,_0x2d02b5){super(_0x1dcaad),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1dcaad),this['_errorView']=new ti(_0x1dcaad),this['_editingView']=new ei(_0x1dcaad,_0x2d02b5),this['_focusableView']=new _0x714fe1(_0x1dcaad),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3e2d31),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'],_0x1331f6=>{this['_addUploadcareImageEditorListeners'](_0x1331f6);});}),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'](_0x485371,_0x55e633){const _0x4a1b92='uc-cloud-image-editor',_0x5d2ab4=_0x485371['querySelector'](_0x4a1b92);if(_0x5d2ab4)return _0x55e633(_0x5d2ab4);const _0x48c2f5=new MutationObserver(_0x3d8e32=>{const _0x496ec4=_0x3d8e32['filter'](_0x57df92=>_0x57df92['target']===_0x485371&&_0x57df92['addedNodes']['length']>0x0&&_0x57df92['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4a1b92);_0x496ec4['length']&&(_0x48c2f5['disconnect'](),_0x55e633(_0x496ec4[0x0]['addedNodes'][0x0]));});_0x48c2f5['observe'](_0x485371,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4f965f){_0x4f965f['addEventListener']('apply',_0xa15fba=>{this['fire']('apply',{'imageSrc':_0xa15fba['detail']['cdnUrl']});}),_0x4f965f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3b712b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x46cacb,_0x38ce13,_0x39f36e){super(),this['_editor']=_0x46cacb,this['_dialog']=_0x38ce13,this['_imageElement']=_0x39f36e,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 _0x24481f=this['_imageElement'],_0x47907a=_0x24481f['getAttribute']('uploadcareImageId'),_0x3b3b82=_0x24481f['getAttribute']('src');if(_0x47907a)await this['_loadImageInfo'](_0x47907a,_0x3b3b82);else{if(this['_imageCache']['has'](_0x3b3b82)){const _0x5e0d0a=this['_imageCache']['get'](_0x3b3b82);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5e0d0a['url'],this['imageDimension']=_0x5e0d0a['dimension'],this['imageId']=_0x5e0d0a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x53efa4}=this['_editor'],t=_0x53efa4['t'],_0x50ef19=new X(_0x53efa4,this['imageStatus'],this['_attributes']);_0x50ef19['bind']('status')['to'](this,'imageStatus'),_0x50ef19['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x50ef19['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x50ef19['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x50ef19,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x992e1c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x50ef19,'position':_0x1f0409['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x50ef19['focus']();},'onHide':()=>{_0x50ef19['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x34991a=>!A(_0x34991a,_0x50ef19['element'])}});}['_loadImageInfo'](_0x1f3269,_0x1b4608){return j['getInfo'](_0x1f3269,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x16f36a=>{const {width:_0x425ba,height:_0x5e1aac}=_0x16f36a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b4608,this['imageDimension']={'width':_0x425ba,'height':_0x5e1aac},this['imageId']=_0x1f3269;})['catch'](_0x322e2d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x322e2d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x47d73b,_0x1988d9){return this['_getImageAsFile'](_0x47d73b)['then'](_0x2f90b7=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x1988d9['signal'],'file':_0x2f90b7,'onProgress':_0xa4d58b=>{_0xa4d58b&&_0xa4d58b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xa4d58b['value']));}}))['then'](_0x2f962c=>{const {width:_0x2c91f6,height:_0x1f25f3}=_0x2f962c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2f962c['cdnUrl'],this['imageDimension']={'width':_0x2c91f6,'height':_0x1f25f3},this['imageId']=_0x2f962c['uuid'],this['imageUploadProgress']=null;const _0x35bc57=_0x47d73b['getAttribute']('src');this['_imageCache']['set'](_0x35bc57,{'id':_0x2f962c['uuid'],'url':_0x2f962c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x481eda=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x481eda['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x33e54e,_0x24182d){_0x33e54e['on']('apply',(_0x1cc1b2,_0x4866b2)=>{this['_replaceImage'](_0x24182d,_0x4866b2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x33e54e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x33e54e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4d3248,_0xe6d716,_0xe6fd4c){const _0x10e82a=this['_editor'],{width:_0x531ee4,height:_0x28318d}=S(_0xe6d716,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x515697,imageSources:_0x571914}=C(_0xe6d716,_0x531ee4);_0x10e82a['model']['change'](_0x1575b1=>{if('$graveyard'===_0x4d3248['root']['rootName']){_0x10e82a['execute']('insertImage',{'imageType':_0x4d3248['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4d3248['getAttributes']()),'uploadcareImageId':_0xe6fd4c,'src':_0x515697,'sources':_0x571914,'width':_0x531ee4,'height':_0x28318d}});const _0x4d9dde=_0x4d3248['getChildren']();_0x4d3248=_0x10e82a['model']['document']['selection']['getSelectedElement']();for(const _0x321e3c of _0x4d9dde)_0x1575b1['append'](_0x1575b1['cloneElement'](_0x321e3c),_0x4d3248);}else _0x1575b1['setSelection'](_0x4d3248,'on'),_0x10e82a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4d3248['getAttributes']()),'uploadcareImageId':_0xe6fd4c,'src':_0x515697,'sources':_0x571914,'width':_0x531ee4,'height':_0x28318d},_0x4d3248);_0x1575b1['setSelection'](_0x4d3248,'on');});}async['_getImageAsFile'](_0x1bdebc){const _0x443f91=_0x4b89d5['window'],_0x3006b6=_0x4b89d5['document']['location']['href'],_0x326dd9=new _0x443f91['URL'](_0x1bdebc['getAttribute']('src'),_0x3006b6);if('data:'===_0x326dd9['protocol']){const _0x81122d=_0x326dd9['href']['split'](','),_0x34932d=_0x81122d[0x0]['match'](/:(.*?);/)[0x1],_0x4ca7e8=_0x34932d['split']('/')[0x1],_0x4c0eb8=_0x443f91['atob'](_0x81122d[_0x81122d['length']-0x1]);let _0x2a72e6=_0x4c0eb8['length'];const _0x542181=new _0x443f91['Uint8Array'](_0x2a72e6);for(;_0x2a72e6--;)_0x542181[_0x2a72e6]=_0x4c0eb8['charCodeAt'](_0x2a72e6);return new _0x443f91['File']([_0x542181],'image.'+_0x4ca7e8,{'type':_0x34932d});}const _0xc8e544=_0x326dd9['href']['split']('/'),_0x23865b=_0xc8e544[_0xc8e544['length']-0x1],_0x290df9=_0x23865b['split']('.')[0x1];return _0x443f91['fetch'](_0x326dd9['href'])['then'](_0x119157=>_0x119157['clone']()['blob']())['then'](_0x110254=>new _0x443f91['File']([_0x110254],_0x23865b,{'type':'image/'+_0x290df9}));}}class O extends _0x622180{['imageEditController'];static get['requires'](){return[_0x14bbf1];}['_isEditable'];constructor(_0x3f2eca){super(_0x3f2eca),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2e5efd){const _0x5e5247=G(_0x2e5efd);return _0x31d770=>!(!_0x31d770||!_0x31d770['is']('element','imageBlock')&&!_0x31d770['is']('element','imageInline'))&&(!!_0x31d770['hasAttribute']('uploadcareImageId')||!!_0x31d770['hasAttribute']('src')&&_0x5e5247(_0x31d770['getAttribute']('src')));}(_0x3f2eca['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xbcb428=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xbcb428);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1a5ae7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1a5ae7&&(_0x1a5ae7['is']('element','imageBlock')||_0x1a5ae7['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x14bbf1),_0x1a5ae7),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x622180{['refresh'](){const _0x1d4152=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1d4152&&(_0x1d4152['is']('element','imageBlock')||_0x1d4152['is']('element','imageInline')));}['execute'](_0x5233d7){const _0x2e4c1b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x34fd7d=>{_0x34fd7d['setAttributes'](_0x5233d7,_0x2e4c1b),_0x34fd7d['removeAttribute']('srcset',_0x2e4c1b),_0x34fd7d['removeAttribute']('sizes',_0x2e4c1b);});}}class m extends _0x46c5ec{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3e0411,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3aba33}=this;_0x3aba33['commands']['add']('uploadcareImageEdit',new O(_0x3aba33)),_0x3aba33['commands']['add']('uploadcareImageReplace',new R(_0x3aba33));}}class g extends _0x46c5ec{['_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 _0x3bc80b=this['editor'];_0x3bc80b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5c0dea=>{const _0xa1c7f3=_0x3bc80b['commands']['get']('uploadcareImageEdit'),_0x2af03f=new _0x26c389(_0x5c0dea),t=_0x5c0dea['t'];return _0x2af03f['set']({'icon':_0x992e1c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2af03f['bind']('isEnabled')['to'](_0xa1c7f3),_0x2af03f['bind']('isOn')['to'](_0xa1c7f3,'isActive'),this['listenTo'](_0x2af03f,'execute',()=>{_0x3bc80b['execute']('uploadcareImageEdit'),_0x3bc80b['editing']['view']['focus']();}),_0x2af03f;}),this['_initConfig']();}['_initConfig'](){const _0x14346c=_0x4f54f7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x14346c),this['listenTo'](this['editor'],'destroy',()=>{_0x14346c['remove']();});}}class et extends _0x46c5ec{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 _0x185545,Command as _0x7579d8}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x59c3c5,IconGooglePhotos as _0x284a26,IconGoogleDrive as _0x4bdc98,IconFacebook as _0x42a1cd,IconDropbox as _0x47f62c,IconUploadcareLink as _0x12a7de,IconUploadcareImageUpload as _0x59323,IconError as _0x47d799,IconUploadcareImageEdit as _0x214805}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x346bd7,MenuBarMenuListItemButtonView as _0x332cb5,View as _0x26bb6f,FocusCycler as _0x477e28,Dialog as _0x66662a,DialogViewPosition as _0x2a850d,SpinnerView as _0x4f8135,IconView as _0x212f64,Notification as _0x1aafb3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x556d24,DomEmitterMixin as _0x97d326,global as _0xf5db7e,getAncestors as _0x45328d,ObservableMixin as _0x3a0571,uid as _0x3cade6,createElement as _0x1eb9c3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x9839b2}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x494e68,info as _0x534141}from'@uploadcare/upload-client';import*as _0x185374 from'@uploadcare/file-uploader';var i=function(_0x2afde5){return _0x2afde5['Local']='local',_0x2afde5['URL']='url',_0x2afde5['Dropbox']='dropbox',_0x2afde5['GDrive']='gdrive',_0x2afde5['Facebook']='facebook',_0x2afde5['GPhotos']='gphotos',_0x2afde5['OneDrive']='onedrive',_0x2afde5;}({});function _(_0x5a62d7,_0x139f90,_0x26ff5e){const t=_0x5a62d7['t'],_0x20e1a7=_0x5a62d7['t'];switch(_0x139f90){case i['Local']:return{'text':_0x20e1a7('Insert'===_0x26ff5e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x20e1a7('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x26ff5e?_0x20e1a7('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x20e1a7('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x26ff5e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x26ff5e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x26ff5e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x26ff5e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x26ff5e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x139f90;}}class e extends _0x185545{['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 _0x21bffe=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1fc100;for(const _0x2248e5 in _0x21bffe){const _0x17a915=_0x2248e5,_0xf5bdce=_0x21bffe[_0x17a915];if('uploadcareLicenseKeyValid'==_0xf5bdce||'uploadcareLicenseKeyInvalid'==_0xf5bdce||'uploadcareLicenseKeyExpired'==_0xf5bdce||'uploadcareLicenseKeyDomainLimit'==_0xf5bdce||'uploadcareLicenseKeyNotAllowed'==_0xf5bdce||'uploadcareLicenseKeyEvaluationLimit'==_0xf5bdce||'uploadcareLicenseKeyTrialLimit'==_0xf5bdce||'uploadcareLicenseKeyUsageLimit'==_0xf5bdce){delete _0x21bffe[_0x17a915],_0x1fc100=_0xf5bdce,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1fc100&&_0x21bffe['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1fc100&&_0x21bffe['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1fc100&&_0x21bffe['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1fc100&&_0x21bffe['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1fc100&&_0x21bffe['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1fc100&&_0x21bffe['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1fc100&&_0x21bffe['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5d5d56}=this,_0x17e192=_0x5d5d56['commands']['get']('uploadcare');if(!_0x17e192)return;const _0x333f71=this['_normalizeConfigSourceList'](_0x5d5d56['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x280cc2,_0x46d969)=>{const _0x425489=this['_getIntegrationKey'](_0x46d969['type']);return _0x280cc2[_0x425489]||(_0x280cc2[_0x425489]=[]),_0x280cc2[_0x425489]['push'](_0x46d969),_0x280cc2;},{});_0x5d5d56['plugins']['has']('ImageInsertUI')&&_0x5d5d56['commands']['get']('uploadcare')&&Object['entries'](_0x333f71)['forEach'](([_0x364714,_0x5d6145])=>{_0x5d5d56['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x364714,'observable':()=>_0x17e192,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5d6145),'formViewCreator':()=>this['_createDropdownButtons'](_0x5d6145),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5d6145),'override':'assetManager'!==_0x364714});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4ed2e5){const {locale:_0x122f3a}=this['editor'];return _0x4ed2e5['map'](_0x118616=>{const _0x5a9d3f=_(_0x122f3a,_0x118616,'Insert');switch(_0x118616){case i['Local']:return{'icon':_0x59323,'type':i['Local'],..._0x5a9d3f};case i['URL']:return{'icon':_0x12a7de,'type':i['URL'],..._0x5a9d3f};case i['Dropbox']:return{'icon':_0x47f62c,'type':i['Dropbox'],..._0x5a9d3f};case i['Facebook']:return{'icon':_0x42a1cd,'type':i['Facebook'],..._0x5a9d3f};case i['GDrive']:return{'icon':_0x4bdc98,'type':i['GDrive'],..._0x5a9d3f};case i['GPhotos']:return{'icon':_0x284a26,'type':i['GPhotos'],..._0x5a9d3f};case i['OneDrive']:return{'icon':_0x59c3c5,'type':i['OneDrive'],..._0x5a9d3f};}});}['_getIntegrationKey'](_0x4f4177){switch(_0x4f4177){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1cfe3f,_0x35650d){const _0x17e7af=this['editor'],_0xd803d8=new _0x1cfe3f(_0x17e7af['locale']),_0x1c9eb8=_0x17e7af['commands']['get']('uploadcare');return _0xd803d8['bind']('isEnabled')['to'](_0x1c9eb8),_0xd803d8['on']('execute',()=>{_0x1c9eb8['execute'](_0x35650d);}),_0xd803d8;}['_createToolbarButton'](_0x56f092){const {locale:_0x534612}=this['editor'],_0x20fb6b=this['editor']['plugins']['get']('ImageInsertUI'),_0x39a4b5=_0x56f092[0x0],_0x285ae9=this['_createButton'](_0x346bd7,_0x39a4b5['type']);return _0x285ae9['icon']=_0x39a4b5['icon'],_0x285ae9['bind']('label')['to'](_0x20fb6b,'isImageSelected',_0x4398a6=>_(_0x534612,_0x39a4b5['type'],_0x4398a6?'Replace':'Insert')['text']),_0x285ae9['tooltip']=!0x0,_0x285ae9;}['_createDropdownButtons'](_0xd8bef3){const {locale:_0x2fd065}=this['editor'],_0x302077=this['editor']['plugins']['get']('ImageInsertUI');return _0xd8bef3['map'](_0x47fa7d=>{const _0x37638d=this['_createButton'](_0x346bd7,_0x47fa7d['type']);return _0x37638d['withText']=!0x0,_0x37638d['icon']=_0x47fa7d['icon'],_0x37638d['bind']('label')['to'](_0x302077,'isImageSelected',_0x195ff5=>_(_0x2fd065,_0x47fa7d['type'],_0x195ff5?'Replace':'Insert')['text']),_0x37638d;});}['_createMenuBarButtons'](_0x20ea90){return _0x20ea90['map'](_0x2964d0=>{const _0x4ffb35=this['_createButton'](_0x332cb5,_0x2964d0['type']);return _0x4ffb35['icon']=_0x2964d0['icon'],_0x4ffb35['label']=_0x2964d0['shortText'],_0x4ffb35;});}}class F extends _0x26bb6f{['focusTracker'];['focusCycler'];constructor(_0x4d9957){super(_0x4d9957),this['focusTracker']=new _0x556d24(),this['focusCycler']=new _0x477e28({'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(_0x155d01,_0x49a045){super(_0x155d01),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-'+_0x49a045}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x77fce3,_0x451492){const _0x499e2e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x269f80=>_0x269f80<=_0x451492)['map'](_0x339c04=>_0x77fce3['replace'](/\/$/,'')+'/-/resize/'+_0x339c04+'x/\x20'+_0x339c04+'w');return{'imageFallbackUrl':_0x77fce3,'imageSources':[{'srcset':_0x499e2e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x451492+'px)\x20100vw,\x20'+_0x451492+'px','type':'image/webp'}]};}function S(_0x225cef,_0x62e328,_0x5d073d){const _0x4edfd7=_0x225cef['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4edfd7?parseInt(_0x4edfd7[0x1],0xa):_0x62e328,'height':_0x4edfd7?parseInt(_0x4edfd7[0x2],0xa):_0x5d073d};}function p(_0x307cdc,_0x46d592){const _0x11f1c1=new(_0x97d326())(),_0x702dee=_0x307cdc['plugins']['get']('ImageUtils'),_0x36f43b=_0x307cdc['editing']['mapper']['toViewElement'](_0x46d592),_0x132999=_0x702dee['findViewImgElement'](_0x36f43b),_0xdc4aab=_0x307cdc['editing']['view']['domConverter']['viewToDom'](_0x132999),_0x3bcd1f=_0x46d592['getAttribute']('width'),_0xfd34df=_0x46d592['getAttribute']('height'),_0x2c5e40='image-processing';_0x307cdc['editing']['view']['change'](_0x161902=>{_0x161902['addClass'](_0x2c5e40,_0x36f43b),_0x161902['setStyle']('aspect-ratio',_0x3bcd1f+'/'+_0xfd34df,_0x132999);}),_0x11f1c1['listenTo'](_0xdc4aab,'load',()=>{_0x11f1c1['stopListening'](_0xdc4aab,'load'),_0x307cdc['editing']['view']['change'](_0x2ffe70=>{_0x2ffe70['removeClass'](_0x2c5e40,_0x36f43b),_0x2ffe70['removeStyle']('aspect-ratio',_0x132999);});});}function G(_0x5a32a1){if(Array['isArray'](_0x5a32a1)){const _0x3ee123=_0x5a32a1['map'](G);return _0x3bb4b8=>_0x3ee123['some'](_0x21ad83=>_0x21ad83(_0x3bb4b8));}if('origin'==_0x5a32a1){const _0x4fa5d2=_0xf5db7e['window']['location']['origin'];return _0x3a5671=>new URL(_0x3a5671,_0xf5db7e['document']['baseURI'])['origin']==_0x4fa5d2;}return'function'==typeof _0x5a32a1?_0x5a32a1:_0x5a32a1 instanceof RegExp?_0x279d9d=>!(!_0x279d9d['match'](_0x5a32a1)&&!_0x279d9d['replace'](/^https?:\/\//,'')['match'](_0x5a32a1)):()=>!0x1;}function A(_0x590592,_0x12507a){return _0x45328d(_0x590592['target'])['includes'](_0x12507a);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3a0571(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3c080b,_0x3e4f4a,_0x386c8f){super(),this['_editor']=_0x3c080b,this['_editing']=_0x3e4f4a,this['_dialog']=_0x3c080b['plugins']['get'](_0x66662a),this['_api']=_0x3e4f4a['ctxElement']['getAPI'](),this['_type']=_0x386c8f,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:_0x5c6b20,model:_0x37d393}=this['_editor'],_0x5ea914=_0x37d393['document']['selection']['getSelectedElement'](),_0x54f473=_0x5ea914&&(_0x5ea914['is']('element','imageBlock')||_0x5ea914['is']('element','imageInline'));this['_formView']=new x(_0x5c6b20,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x59323,'title':_(_0x5c6b20,this['_type'],_0x54f473?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2a850d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1d977b=>!A(_0x1d977b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x28d326}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x125b0e=>{const _0x46b534=_0x28d326['length'];for(const _0x2038c7 of _0x28d326){const _0xf0bf47=_0x2038c7===_0x28d326[_0x46b534-0x1],{cdnUrl:_0x52e259,fileInfo:_0x208284}=_0x2038c7;if(!_0x52e259||!_0x208284)continue;const {width:_0x4491e2,height:_0x4f8767}=_0x208284['imageInfo'],_0x44bc73=S(_0x52e259,_0x4491e2,_0x4f8767),_0x55a672=C(_0x52e259,_0x44bc73['width']),_0x1c3e19={'id':_0x208284['uuid'],'type':'image','attributes':{'imageDimension':_0x44bc73,..._0x55a672}};this['_insertAsset'](_0x1c3e19,_0xf0bf47,_0x125b0e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5d104b=>{'idle'===_0x5d104b['detail']['status']&&!_0x5d104b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4efea5,_0xdeea75,_0x5ca8ae){const _0x45b548=this['_editor']['model']['document']['selection'],_0x38515a=_0x45b548['getSelectedElement'](),_0x31c7fe=!(!_0x38515a||!_0x38515a['is']('element','imageInline'));_0x5ca8ae['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4efea5,_0x31c7fe),_0xdeea75||_0x5ca8ae['setSelection'](_0x45b548['getLastPosition']());}['_insertImage'](_0x25c9a8,_0x49d6de){const _0x34868c=this['_editor'],{imageDimension:_0x44eea8,imageFallbackUrl:_0x2d1cf0,imageSources:_0x3b47d7}=_0x25c9a8['attributes'];_0x34868c['execute']('insertImage',{'imageType':_0x49d6de?'imageInline':null,'source':{'uploadcareImageId':_0x25c9a8['id'],'src':_0x2d1cf0,'sources':_0x3b47d7,..._0x44eea8}});}}class w extends _0x7579d8{['_editing'];['_controller']=null;static get['requires'](){return[_0x66662a,o];}constructor(_0x9e7d63){super(_0x9e7d63),this['_editing']=_0x9e7d63['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4926a2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x4926a2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x40dfc3,..._0x3aa5c2}){return _0x494e68(_0x40dfc3,_0x3aa5c2);}static['getInfo'](_0x3601b0,_0x2ed1bf){return _0x534141(_0x3601b0,_0x2ed1bf);}}class f extends _0x185545{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x9839b2,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5ba5ba=this['editor'];if(!!!_0x5ba5ba['config']['get']('uploadcare'))return;_0x5ba5ba['plugins']['get'](_0x9839b2)['createUploadAdapter']=_0x5535ae=>new k(_0x5535ae,_0x5ba5ba),_0x5ba5ba['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x57e784,{imageElement:_0x5a969e,data:_0x304a44})=>{_0x5ba5ba['model']['change'](_0x3178e5=>{_0x3178e5['setAttribute']('uploadcareImageId',_0x304a44['uploadcareImageId'],_0x5a969e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x23570f,_0x1d93de){this['loader']=_0x23570f,this['editor']=_0x1d93de,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4dbfd3=await this['loader']['file'];return j['upload']({'file':_0x4dbfd3,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1f4561=>{_0x1f4561&&_0x1f4561['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1f4561['value']);}})['then'](async _0x5871bb=>{const {imageFallbackUrl:_0x471907,imageSources:_0x4e7d36}=C(_0x5871bb['cdnUrl'],_0x5871bb['imageInfo']['width']);return{'uploadcareImageId':_0x5871bb['uuid'],'default':_0x471907,'sources':_0x4e7d36};})['catch'](()=>{const _0x40e618=t('Cannot\x20upload\x20file:')+('\x20'+_0x4dbfd3['name']+'.');return Promise['reject'](_0x40e618);});}['abort'](){this['controller']['abort']();}}class o extends _0x185545{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x66662a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5368a2){super(_0x5368a2),this['ucContextId']=_0x3cade6();}['init'](){const _0x3e4e5e=this['editor'];_0x3e4e5e['commands']['add']('uploadcare',new w(_0x3e4e5e));}['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 _0x2fac7d=_0xf5db7e['document']['querySelector']('input[uploadcare-file-input]');_0x2fac7d&&_0x2fac7d['remove']();}),async function(_0x40af24){const _0x26f77f=_0x144be2([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x18793b=0x535f8c3a,_0xbd1c99=0x5358f0d2^_0x18793b,_0x3017bd=window[_0x144be2([0x44,0x61,0x74,0x65])][_0x144be2([0x6e,0x6f,0x77])](),_0x769cc9=_0x40af24[_0x144be2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xf0a1fc=new window[(_0x144be2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1677c7=>{_0x769cc9[_0x144be2([0x6f,0x6e,0x63,0x65])](_0x144be2([0x72,0x65,0x61,0x64,0x79]),_0x1677c7);}),_0x259829={[_0x144be2([0x6b,0x74,0x79])]:_0x144be2([0x45,0x43]),[_0x144be2([0x75,0x73,0x65])]:_0x144be2([0x73,0x69,0x67]),[_0x144be2([0x63,0x72,0x76])]:_0x144be2([0x50,0x2d,0x32,0x35,0x36]),[_0x144be2([0x78])]:_0x144be2([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]),[_0x144be2([0x79])]:_0x144be2([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]),[_0x144be2([0x61,0x6c,0x67])]:_0x144be2([0x45,0x53,0x32,0x35,0x36])},_0x459226=_0x769cc9[_0x144be2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x144be2([0x67,0x65,0x74])](_0x144be2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xfb2543(){let _0x55b101,_0x3b2e0e=null,_0xcf22d5=null;try{if(_0x459226==_0x144be2([0x47,0x50,0x4c]))return _0x144be2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x55b101=_0x540462(),!_0x55b101)return _0x144be2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x55b101[_0x144be2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xcf22d5=_0x15ac55(_0x55b101[_0x144be2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x55b101[_0x144be2([0x6a,0x74,0x69])])),await _0x2b895d()?_0x333b1e()?_0x246fac()?_0x144be2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x22eb19()?(_0x55b101[_0x144be2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x144be2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b2e0e=_0x55477e(_0x144be2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x55b101[_0x144be2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x144be2([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b2e0e=_0x55477e(_0x144be2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d850b()):_0x144be2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x144be2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x144be2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x144be2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x246fac(){const _0x457f3f=[_0x144be2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x144be2([0x74,0x72,0x69,0x61,0x6c])][_0x144be2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55b101[_0x144be2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3017bd/0x3e8:0xe10*_0xbd1c99;return _0x55b101[_0x144be2([0x65,0x78,0x70])]<_0x457f3f;}function _0x333b1e(){const _0x1aa8c3=_0x55b101[_0x144be2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1aa8c3&&(!!_0x1aa8c3[_0x144be2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x144be2([0x2a]))||!!_0x1aa8c3[_0x144be2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x144be2([0x55,0x50,0x4c,0x43])));}function _0x22eb19(){const _0x11d3dc=_0x55b101[_0x144be2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11d3dc||0x0==_0x11d3dc[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4fbc27}=new URL(window[_0x144be2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x11d3dc[_0x144be2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fbc27))return!0x0;const _0x534000=_0x4fbc27[_0x144be2([0x73,0x70,0x6c,0x69,0x74])](_0x144be2([0x2e]));return _0x11d3dc[_0x144be2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x325986=>_0x325986[_0x144be2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x144be2([0x2a])))[_0x144be2([0x6d,0x61,0x70])](_0x13c053=>_0x13c053[_0x144be2([0x73,0x70,0x6c,0x69,0x74])](_0x144be2([0x2e])))[_0x144be2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a26b5=>_0x4a26b5[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x534000[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x144be2([0x6d,0x61,0x70])](_0x4deda9=>Array(_0x534000[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4deda9[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x144be2([0x66,0x69,0x6c,0x6c])](_0x4deda9[0x0]===_0x144be2([0x2a])?_0x144be2([0x2a]):'')[_0x144be2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4deda9))[_0x144be2([0x73,0x6f,0x6d,0x65])](_0x4583b5=>_0x534000[_0x144be2([0x65,0x76,0x65,0x72,0x79])]((_0xf85051,_0x495583)=>_0x4583b5[_0x495583]===_0xf85051||_0x4583b5[_0x495583]===_0x144be2([0x2a])));}function _0x3d850b(){return _0x3b2e0e&&_0xcf22d5?new window[(_0x144be2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b0cfd,_0x53df73)=>{_0x3b2e0e[_0x144be2([0x74,0x68,0x65,0x6e])](_0x3b0cfd,_0x53df73),_0xcf22d5[_0x144be2([0x74,0x68,0x65,0x6e])](_0x5f768e=>{_0x5f768e!=_0x144be2([0x56,0x61,0x6c,0x69,0x64])&&_0x3b0cfd(_0x5f768e);},_0x53df73);}):_0x3b2e0e||_0xcf22d5||_0x144be2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15ac55(_0x5437ba,_0x28aba0){return new window[(_0x144be2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58ea43=>{if(_0x54694a())return _0x58ea43(_0x144be2([0x56,0x61,0x6c,0x69,0x64]));_0x8d21ac(),_0x769cc9[_0x144be2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x144be2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d46ea=!0x1;const _0x113af5=_0x3cade6();function _0x1e50b9(_0x5968bf){return!!_0x5968bf&&(typeof _0x5968bf===_0x144be2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5968bf===_0x144be2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5968bf[_0x144be2([0x74,0x68,0x65,0x6e])]===_0x144be2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5968bf[_0x144be2([0x63,0x61,0x74,0x63,0x68])]===_0x144be2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3fa90d(_0x27a57a){_0x1c5fe3(_0x27a57a)[_0x144be2([0x74,0x68,0x65,0x6e])](_0x1660b6=>{if(!_0x1660b6||_0x1660b6[_0x144be2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x144be2([0x6f,0x6b]))return _0x144be2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x35d208(_0x6ccdbd(_0x113af5+_0x28aba0))!=_0x1660b6[_0x144be2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x144be2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x144be2([0x56,0x61,0x6c,0x69,0x64]);})[_0x144be2([0x74,0x68,0x65,0x6e])](_0x55a8d7=>(_0x23734c(),_0x55a8d7),()=>{const _0x4c0f0f=_0x43ce27();return null==_0x4c0f0f?(_0x23734c(),_0x144be2([0x56,0x61,0x6c,0x69,0x64])):_0x144be2(_0x3017bd-_0x4c0f0f>(0x7753083a^_0x18793b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x144be2([0x74,0x68,0x65,0x6e])](_0x58ea43)[_0x144be2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58ea43(_0x144be2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3054ab=0x536962ba^_0x18793b;function _0x23734c(){const _0x4b461f=_0x144be2([0x6c,0x6c,0x63,0x74,0x2d])+_0x35d208(_0x6ccdbd(_0x5437ba)),_0x2798a9=_0x1185eb(_0x35d208(window[_0x144be2([0x4d,0x61,0x74,0x68])][_0x144be2([0x63,0x65,0x69,0x6c])](_0x3017bd/_0x3054ab)));window[_0x144be2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x144be2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b461f,_0x2798a9);}function _0x43ce27(){const _0x334177=_0x144be2([0x6c,0x6c,0x63,0x74,0x2d])+_0x35d208(_0x6ccdbd(_0x5437ba)),_0x3f1fc0=window[_0x144be2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x144be2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x334177);return _0x3f1fc0?window[_0x144be2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1185eb(_0x3f1fc0),0x10)*_0x3054ab:null;}function _0x1c5fe3(_0x4f0669){return new window[(_0x144be2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f36ec,_0x4c8251)=>{_0x4f0669[_0x144be2([0x74,0x68,0x65,0x6e])](_0x2f36ec,_0x4c8251),window[_0x144be2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4c8251,0x535e58fa^_0x18793b);});}}_0x769cc9[_0x144be2([0x6f,0x6e])](_0x144be2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52478d,_0x52c312)=>{if(_0x52c312[0x0]!=_0x5437ba)return _0x58ea43(_0x144be2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x52c312[0x1]={..._0x52c312[0x1],[_0x144be2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x113af5};},{[_0x144be2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x144be2([0x68,0x69,0x67,0x68])}),_0x769cc9[_0x144be2([0x6f,0x6e])](_0x144be2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ef48f=>{_0x1e50b9(_0x2ef48f[_0x144be2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d46ea=!0x0,_0x3fa90d(_0x2ef48f[_0x144be2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x144be2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x144be2([0x6c,0x6f,0x77])}),_0xf0a1fc[_0x144be2([0x74,0x68,0x65,0x6e])](()=>{_0x5d46ea||_0x58ea43(_0x144be2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x54694a(){return _0x769cc9[_0x144be2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x144be2([0x76,0x69,0x65,0x77])][_0x144be2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x144be2([0x61,0x75,0x74,0x6f]);}function _0x8d21ac(){_0x769cc9[_0x144be2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x144be2([0x76,0x69,0x65,0x77])][_0x144be2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x144be2([0x61,0x75,0x74,0x6f]);}}function _0x55477e(_0x38de70){const _0x3e7fb7=[new window[(_0x144be2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45a2e4=>setTimeout(_0x45a2e4,0x5356b2f6^_0x18793b)),_0xf0a1fc[_0x144be2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x144be2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3598eb=>{let _0x1f4d16=0x0;_0x769cc9[_0x144be2([0x6d,0x6f,0x64,0x65,0x6c])][_0x144be2([0x6f,0x6e])](_0x144be2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x36c329,_0x574149)=>{_0x574149[0x0][_0x144be2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1f4d16++,_0x1f4d16==(0x535f89d2^_0x18793b)&&(_0x3598eb(),_0x36c329[_0x144be2([0x6f,0x66,0x66])]());});}))];return window[_0x144be2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x144be2([0x72,0x61,0x63,0x65])](_0x3e7fb7)[_0x144be2([0x74,0x68,0x65,0x6e])](()=>_0x38de70);}async function _0x251109(){await _0xf0a1fc,_0x769cc9[_0x144be2([0x6d,0x6f,0x64,0x65,0x6c])][_0x144be2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x68c6dc,_0x769cc9[_0x144be2([0x6d,0x6f,0x64,0x65,0x6c])][_0x144be2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x68c6dc,_0x769cc9[_0x144be2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x144be2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b4cfc(_0x3a54c7){const _0x1885c5=_0x5ea3b5();_0x769cc9[_0x1885c5]=_0x144be2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3a54c7,_0x3a54c7!=_0x144be2([0x56,0x61,0x6c,0x69,0x64])&&_0x251109();}function _0x5ea3b5(){const _0x49f534=window[_0x144be2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x144be2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x144be2([0x6e,0x6f,0x77])]())[_0x144be2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x144be2([0x2e]),'');let _0x32d6df=_0x144be2([0x68]);for(let _0x3fada4=0x0;_0x3fada4<_0x49f534[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3fada4+=0x2){let _0x496a4f=window[_0x144be2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49f534[_0x144be2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3fada4,_0x3fada4+0x2));_0x496a4f>=_0x26f77f[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x496a4f-=_0x26f77f[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x32d6df+=_0x26f77f[_0x496a4f];}return _0x32d6df;}function _0x540462(){const _0x3f6630=_0x459226[_0x144be2([0x73,0x70,0x6c,0x69,0x74])](_0x144be2([0x2e]));if(0x3!=_0x3f6630[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40653a(_0x3f6630[0x1]);function _0x40653a(_0x2e0d0c){const _0x120213=_0x2f2b29(_0x2e0d0c);return _0x120213&&_0x2e2413()?_0x120213:null;function _0x2e2413(){const _0x45956e=_0x120213[_0x144be2([0x6a,0x74,0x69])],_0x5645eb=window[_0x144be2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45956e[_0x144be2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45956e[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d077b={..._0x120213,[_0x144be2([0x6a,0x74,0x69])]:_0x45956e[_0x144be2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x45956e[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d077b[_0x144be2([0x76,0x63])],_0x6ccdbd(_0x1d077b)==_0x5645eb;}}}async function _0x2b895d(){let _0x2a4d39=!0x0;try{const _0x3920c7=_0x459226[_0x144be2([0x73,0x70,0x6c,0x69,0x74])](_0x144be2([0x2e])),[_0x5d67aa,_0x4b16fc,_0x4866db]=_0x3920c7;return _0x3412d6(_0x5d67aa),await _0x3afd65(_0x5d67aa,_0x4b16fc,_0x4866db),_0x2a4d39;}catch{return!0x1;}function _0x3412d6(_0x13307e){const _0x1bc3b0=_0x2f2b29(_0x13307e);_0x1bc3b0&&_0x1bc3b0[_0x144be2([0x61,0x6c,0x67])]==_0x144be2([0x45,0x53,0x32,0x35,0x36])||(_0x2a4d39=!0x1);}async function _0x3afd65(_0x301e2f,_0xc235,_0x24bd6c){const _0x4bd217=window[_0x144be2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x144be2([0x66,0x72,0x6f,0x6d])](_0x3b6b11(_0x24bd6c),_0x43d2a4=>_0x43d2a4[_0x144be2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x175c71=new window[(_0x144be2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x144be2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x301e2f+_0x144be2([0x2e])+_0xc235),_0x47c83f=window[_0x144be2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x144be2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x47c83f)return;const _0x1b2aff=await _0x47c83f[_0x144be2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x144be2([0x6a,0x77,0x6b]),_0x259829,{[_0x144be2([0x6e,0x61,0x6d,0x65])]:_0x144be2([0x45,0x43,0x44,0x53,0x41]),[_0x144be2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x144be2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x144be2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x47c83f[_0x144be2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x144be2([0x6e,0x61,0x6d,0x65])]:_0x144be2([0x45,0x43,0x44,0x53,0x41]),[_0x144be2([0x68,0x61,0x73,0x68])]:{[_0x144be2([0x6e,0x61,0x6d,0x65])]:_0x144be2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1b2aff,_0x4bd217,_0x175c71)||(_0x2a4d39=!0x1);}}function _0x2f2b29(_0x33dfa8){return _0x33dfa8[_0x144be2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x144be2([0x65,0x79]))?JSON[_0x144be2([0x70,0x61,0x72,0x73,0x65])](_0x3b6b11(_0x33dfa8)):null;}function _0x3b6b11(_0x512d4e){return window[_0x144be2([0x61,0x74,0x6f,0x62])](_0x512d4e[_0x144be2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x144be2([0x2b]))[_0x144be2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x144be2([0x2f])));}function _0x6ccdbd(_0x1edc53){let _0x25efe3=0x1505;function _0x494ee3(_0xf62970){for(let _0x5b2e28=0x0;_0x5b2e28<_0xf62970[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b2e28++){const _0x1bde61=_0xf62970[_0x144be2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5b2e28);_0x25efe3=(_0x25efe3<<0x5)+_0x25efe3+_0x1bde61,_0x25efe3&=_0x25efe3;}}function _0x17051a(_0x47537b){Array[_0x144be2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x47537b)?_0x47537b[_0x144be2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x17051a):_0x47537b&&typeof _0x47537b==_0x144be2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x144be2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x47537b)[_0x144be2([0x73,0x6f,0x72,0x74])]()[_0x144be2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x22cb54,_0x14a0ef])=>{_0x494ee3(_0x22cb54),_0x17051a(_0x14a0ef);}):_0x494ee3(window[_0x144be2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x47537b));}return _0x17051a(_0x1edc53),_0x25efe3>>>0x0;}function _0x35d208(_0x168a8e){return _0x168a8e[_0x144be2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x144be2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x144be2([0x30]));}function _0x1185eb(_0x2c3fd7){return _0x2c3fd7[_0x144be2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x144be2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x144be2([0x6a,0x6f,0x69,0x6e])]('');}function _0x68c6dc(){}function _0x144be2(_0x4f41ff){return _0x4f41ff['map'](_0x163a11=>String['fromCharCode'](_0x163a11))['join']('');}_0x5b4cfc(await _0xfb2543());}(this);}['_initSchema'](){const _0x394f1b=this['editor']['model']['schema'];_0x394f1b['isRegistered']('imageBlock')&&_0x394f1b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x394f1b['isRegistered']('imageInline')&&_0x394f1b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1fdbeb=this['editor'];_0x1fdbeb['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1fdbeb['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5b4e52=>_0x5b4e52['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5088c0=_0x1fdbeb['commands']['get']('replaceImageSource');_0x5088c0&&this['listenTo'](_0x5088c0,'cleanupImage',(_0x5e0889,[_0x57e422,_0x2409ed])=>{_0x57e422['removeAttribute']('uploadcareImageId',_0x2409ed);});}['_initConfig'](){const _0x22a6b7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3d3501=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1eb9c3(_0xf5db7e['document'],'uc-config',{..._0x22a6b7,'pubkey':_0x3d3501,'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']=_0x3c1157=>{if('closeMax'==_0x3c1157)return'#uc-icon-arrow-down';},_0xf5db7e['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1eb9c3(_0xf5db7e['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0xf5db7e['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x31afe5=this['editor']['commands']['get']('insertImage');_0x31afe5&&this['listenTo'](_0x31afe5,'execute',()=>{const _0x8b0b21=this['editor']['model']['document']['selection']['getSelectedElement']();_0x8b0b21&&_0x8b0b21['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x8b0b21);});});const _0x41aaf=this['editor']['commands']['get']('uploadcareImageReplace');_0x41aaf&&this['listenTo'](_0x41aaf,'execute',()=>{const _0x40becf=this['editor']['model']['document']['selection']['getSelectedElement']();_0x40becf&&_0x40becf['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x40becf);});});}}class tt extends _0x185545{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10acd0){super(_0x10acd0),_0x10acd0['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x185374['defineComponents'](_0x185374),this['_defineLocale']();}['_defineLocale'](){const _0x27848c=this['editor']['config']['get']('uploadcare.locale'),_0x148417=this['editor']['locale']['contentLanguage'];_0x27848c&&_0x185374['defineLocale'](_0x148417,_0x27848c);}}class ii extends _0x26bb6f{constructor(_0x40e94f){super(_0x40e94f);const t=_0x40e94f['t'],_0x43c8d0=this['bindTemplate'],_0x148de6=new _0x4f8135();_0x148de6['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':[_0x148de6,{'text':_0x43c8d0['to']('imageUploadProgress',_0x45b21=>t('Loading\x20image...')+'\x20('+(_0x45b21||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 _0x26bb6f{constructor(_0x5478bb){super(_0x5478bb);const t=_0x5478bb['t'];this['set']('errorType',null);const _0x21fdd8=new _0x346bd7(_0x5478bb);_0x21fdd8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x21fdd8['withText']=!0x0,_0x21fdd8['class']='ck-button-action',_0x21fdd8['on']('execute',()=>{this['fire']('retry');}),_0x21fdd8['bind']('isVisible')['to'](this,'errorType',_0x99ac78=>'NotFound'!==_0x99ac78);const _0x335eed=new _0x212f64();_0x335eed['content']=_0x47d799,_0x335eed['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x18de08=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':[_0x335eed,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x18de08['to']('errorType',_0x308abe=>t('NotFound'!==_0x308abe?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x21fdd8]},{'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 _0x26bb6f{constructor(_0x49c449,_0x24b7b4){super(_0x49c449);const _0x4e144f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x24b7b4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4e144f['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x56ef0a,_0x526dd3,_0x1d54a4){super(_0x56ef0a),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x56ef0a),this['_errorView']=new ti(_0x56ef0a),this['_editingView']=new ei(_0x56ef0a,_0x1d54a4),this['_focusableView']=new _0x26bb6f(_0x56ef0a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x526dd3),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'],_0x5dfb2f=>{this['_addUploadcareImageEditorListeners'](_0x5dfb2f);});}),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'](_0x212af1,_0x357210){const _0x9ec5c7='uc-cloud-image-editor',_0x2c03aa=_0x212af1['querySelector'](_0x9ec5c7);if(_0x2c03aa)return _0x357210(_0x2c03aa);const _0xbab8d9=new MutationObserver(_0x5e464f=>{const _0x5665c5=_0x5e464f['filter'](_0x4006c9=>_0x4006c9['target']===_0x212af1&&_0x4006c9['addedNodes']['length']>0x0&&_0x4006c9['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x9ec5c7);_0x5665c5['length']&&(_0xbab8d9['disconnect'](),_0x357210(_0x5665c5[0x0]['addedNodes'][0x0]));});_0xbab8d9['observe'](_0x212af1,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3a33bf){_0x3a33bf['addEventListener']('apply',_0x3736ed=>{this['fire']('apply',{'imageSrc':_0x3736ed['detail']['cdnUrl']});}),_0x3a33bf['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3a0571(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2eef1c,_0x4d22ed,_0x59d759){super(),this['_editor']=_0x2eef1c,this['_dialog']=_0x4d22ed,this['_imageElement']=_0x59d759,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 _0x533bf0=this['_imageElement'],_0x284d2a=_0x533bf0['getAttribute']('uploadcareImageId'),_0x44ac3d=_0x533bf0['getAttribute']('src');if(_0x284d2a)await this['_loadImageInfo'](_0x284d2a,_0x44ac3d);else{if(this['_imageCache']['has'](_0x44ac3d)){const _0x5129c3=this['_imageCache']['get'](_0x44ac3d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5129c3['url'],this['imageDimension']=_0x5129c3['dimension'],this['imageId']=_0x5129c3['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x54accc}=this['_editor'],t=_0x54accc['t'],_0x11bf49=new X(_0x54accc,this['imageStatus'],this['_attributes']);_0x11bf49['bind']('status')['to'](this,'imageStatus'),_0x11bf49['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x11bf49['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x11bf49['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x11bf49,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x214805,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x11bf49,'position':_0x2a850d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x11bf49['focus']();},'onHide':()=>{_0x11bf49['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x19b2b4=>!A(_0x19b2b4,_0x11bf49['element'])}});}['_loadImageInfo'](_0x4ed0ef,_0x5e1129){return j['getInfo'](_0x4ed0ef,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2e3253=>{const {width:_0x11f8e6,height:_0x3067ac}=_0x2e3253['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5e1129,this['imageDimension']={'width':_0x11f8e6,'height':_0x3067ac},this['imageId']=_0x4ed0ef;})['catch'](_0x17d8f2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x17d8f2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2c0e5b,_0x4ab59a){return this['_getImageAsFile'](_0x2c0e5b)['then'](_0x4141fa=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x4ab59a['signal'],'file':_0x4141fa,'onProgress':_0x5702c6=>{_0x5702c6&&_0x5702c6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5702c6['value']));}}))['then'](_0x8ee712=>{const {width:_0x2369a0,height:_0x150ac5}=_0x8ee712['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x8ee712['cdnUrl'],this['imageDimension']={'width':_0x2369a0,'height':_0x150ac5},this['imageId']=_0x8ee712['uuid'],this['imageUploadProgress']=null;const _0x426aef=_0x2c0e5b['getAttribute']('src');this['_imageCache']['set'](_0x426aef,{'id':_0x8ee712['uuid'],'url':_0x8ee712['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5d444f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5d444f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4ad15f,_0x513834){_0x4ad15f['on']('apply',(_0x2a5cec,_0x17765c)=>{this['_replaceImage'](_0x513834,_0x17765c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4ad15f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4ad15f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x45f294,_0x483cf3,_0xcb164){const _0x28cf24=this['_editor'],{width:_0x1618dc,height:_0x364baf}=S(_0x483cf3,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3e906b,imageSources:_0x120990}=C(_0x483cf3,_0x1618dc);_0x28cf24['model']['change'](_0x3dd244=>{if('$graveyard'===_0x45f294['root']['rootName']){_0x28cf24['execute']('insertImage',{'imageType':_0x45f294['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x45f294['getAttributes']()),'uploadcareImageId':_0xcb164,'src':_0x3e906b,'sources':_0x120990,'width':_0x1618dc,'height':_0x364baf}});const _0x5b17f3=_0x45f294['getChildren']();_0x45f294=_0x28cf24['model']['document']['selection']['getSelectedElement']();for(const _0xbcb7c5 of _0x5b17f3)_0x3dd244['append'](_0x3dd244['cloneElement'](_0xbcb7c5),_0x45f294);}else _0x3dd244['setSelection'](_0x45f294,'on'),_0x28cf24['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x45f294['getAttributes']()),'uploadcareImageId':_0xcb164,'src':_0x3e906b,'sources':_0x120990,'width':_0x1618dc,'height':_0x364baf},_0x45f294);_0x3dd244['setSelection'](_0x45f294,'on');});}async['_getImageAsFile'](_0xf776d3){const _0x26404d=_0xf5db7e['window'],_0x13f1e9=_0xf5db7e['document']['location']['href'],_0x2d7145=new _0x26404d['URL'](_0xf776d3['getAttribute']('src'),_0x13f1e9);if('data:'===_0x2d7145['protocol']){const _0x57c8f9=_0x2d7145['href']['split'](','),_0x110fe2=_0x57c8f9[0x0]['match'](/:(.*?);/)[0x1],_0x27b82f=_0x110fe2['split']('/')[0x1],_0x1a97fa=_0x26404d['atob'](_0x57c8f9[_0x57c8f9['length']-0x1]);let _0x1350c3=_0x1a97fa['length'];const _0x3bc322=new _0x26404d['Uint8Array'](_0x1350c3);for(;_0x1350c3--;)_0x3bc322[_0x1350c3]=_0x1a97fa['charCodeAt'](_0x1350c3);return new _0x26404d['File']([_0x3bc322],'image.'+_0x27b82f,{'type':_0x110fe2});}const _0x26060a=_0x2d7145['href']['split']('/'),_0x84f689=_0x26060a[_0x26060a['length']-0x1],_0x5b1fa4=_0x84f689['split']('.')[0x1];return _0x26404d['fetch'](_0x2d7145['href'])['then'](_0x51840b=>_0x51840b['clone']()['blob']())['then'](_0x2aa5ad=>new _0x26404d['File']([_0x2aa5ad],_0x84f689,{'type':'image/'+_0x5b1fa4}));}}class O extends _0x7579d8{['imageEditController'];static get['requires'](){return[_0x66662a];}['_isEditable'];constructor(_0x4bc276){super(_0x4bc276),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x25ddbe){const _0x5269c2=G(_0x25ddbe);return _0x115eea=>!(!_0x115eea||!_0x115eea['is']('element','imageBlock')&&!_0x115eea['is']('element','imageInline'))&&(!!_0x115eea['hasAttribute']('uploadcareImageId')||!!_0x115eea['hasAttribute']('src')&&_0x5269c2(_0x115eea['getAttribute']('src')));}(_0x4bc276['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5849f1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5849f1);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x505114=this['editor']['model']['document']['selection']['getSelectedElement']();_0x505114&&(_0x505114['is']('element','imageBlock')||_0x505114['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x66662a),_0x505114),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x7579d8{['refresh'](){const _0x5dbeaf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5dbeaf&&(_0x5dbeaf['is']('element','imageBlock')||_0x5dbeaf['is']('element','imageInline')));}['execute'](_0x1b71d8){const _0x3989c4=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x462a1d=>{_0x462a1d['setAttributes'](_0x1b71d8,_0x3989c4),_0x462a1d['removeAttribute']('srcset',_0x3989c4),_0x462a1d['removeAttribute']('sizes',_0x3989c4);});}}class m extends _0x185545{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1aafb3,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x119f89}=this;_0x119f89['commands']['add']('uploadcareImageEdit',new O(_0x119f89)),_0x119f89['commands']['add']('uploadcareImageReplace',new R(_0x119f89));}}class g extends _0x185545{['_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 _0x114607=this['editor'];_0x114607['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5bdcf8=>{const _0x39efdc=_0x114607['commands']['get']('uploadcareImageEdit'),_0x370c14=new _0x346bd7(_0x5bdcf8),t=_0x5bdcf8['t'];return _0x370c14['set']({'icon':_0x214805,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x370c14['bind']('isEnabled')['to'](_0x39efdc),_0x370c14['bind']('isOn')['to'](_0x39efdc,'isActive'),this['listenTo'](_0x370c14,'execute',()=>{_0x114607['execute']('uploadcareImageEdit'),_0x114607['editing']['view']['focus']();}),_0x370c14;}),this['_initConfig']();}['_initConfig'](){const _0x23f214=_0x1eb9c3(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x23f214),this['listenTo'](this['editor'],'destroy',()=>{_0x23f214['remove']();});}}class et extends _0x185545{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-next-
|
|
3
|
+
"version": "0.0.0-nightly-next-20251225.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-next-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-next-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-next-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20251225.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20251225.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20251225.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20251225.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20251225.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20251225.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20251225.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-next-20251225.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.24.5",
|
|
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 _0x1b8d5a=_0x13ee;(function(_0x4ade49,_0x1dfe34){const _0x351da1=_0x13ee,_0x24f201=_0x4ade49();while(!![]){try{const _0x5aa1c4=parseInt(_0x351da1(0x154))/0x1*(-parseInt(_0x351da1(0x166))/0x2)+-parseInt(_0x351da1(0x161))/0x3*(-parseInt(_0x351da1(0x15c))/0x4)+-parseInt(_0x351da1(0x17f))/0x5*(-parseInt(_0x351da1(0x195))/0x6)+parseInt(_0x351da1(0x14d))/0x7+parseInt(_0x351da1(0x150))/0x8*(-parseInt(_0x351da1(0x155))/0x9)+-parseInt(_0x351da1(0x151))/0xa*(-parseInt(_0x351da1(0x147))/0xb)+parseInt(_0x351da1(0x16e))/0xc*(-parseInt(_0x351da1(0x153))/0xd);if(_0x5aa1c4===_0x1dfe34)break;else _0x24f201['push'](_0x24f201['shift']());}catch(_0x19d2cb){_0x24f201['push'](_0x24f201['shift']());}}}(_0x352d,0xa20a4));import{Plugin as _0x13107b}from'ckeditor5/src/core.js';import{Dialog as _0x20fa34}from'ckeditor5/src/ui.js';function _0x352d(){const _0x287fbf=['get','attributeToAttribute','4782RKqgMW','execute','cleanupImage','_configElement','render','uc-upload-ctx-provider','remove','href','_initConfig','fromCharCode','33JVFWbi','destroy','replaceImageSource','\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','uploadcare','ctxElement','5883164qwpUcb','listenTo','map','544vchjkG','2953850FnxYXS','ucContextId','11596tqxOwb','58435GdRoZp','27774qasftu','join','config','_initImageProcessingIndicator','imageInline','_initCtx','editing','10468tMvCXT','_initSchema','selection','once','data-uc-image-id','1011GBzQZT','isPremiumPlugin','afterInit','pluginName','insertImage','36qGMevN','PictureEditing','removeAttribute','requires','input[uploadcare-file-input]','true','getAttribute','_ctxElement','15216iRoMqD','querySelector','model','appendChild','uploadcareImageId','conversion','configElement','elementToAttribute','extend','document','uploadcare.uploader','isRegistered','uploadcare.pubkey','view','for','UploadcareEditing','editor','2810faXGlQ','iconHrefResolver','uc-config','locale','_initConversion','downcast','body','isOfficialPlugin','imageBlock','upcast','schema','uploadcareImageReplace','#uc-icon-arrow-down','uploader-','init','getSelectedElement','commands','add','closeMax','contentLanguage'];_0x352d=function(){return _0x287fbf;};return _0x352d();}import{createElement as _0x16e442,global as _0x460fc6,uid as _0xd4c9cb}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4f68d0}from'./uploadcarecommand.js';function _0x13ee(_0x15ad8d,_0x30534c){const _0x352df8=_0x352d();return _0x13ee=function(_0x13ee0c,_0x1e44af){_0x13ee0c=_0x13ee0c-0x146;let _0x50016d=_0x352df8[_0x13ee0c];return _0x50016d;},_0x13ee(_0x15ad8d,_0x30534c);}import{UploadcareUploadAdapter as _0x3be658}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1ba488}from'./utils/editingutils.js';export class UploadcareEditing extends _0x13107b{[_0x1b8d5a(0x198)]=null;[_0x1b8d5a(0x16d)]=null;static get[_0x1b8d5a(0x164)](){const _0x25825a=_0x1b8d5a;return _0x25825a(0x17d);}static get[_0x1b8d5a(0x169)](){const _0x5091a3=_0x1b8d5a;return[_0x5091a3(0x167),_0x3be658,_0x20fa34];}static get[_0x1b8d5a(0x186)](){return!0x0;}static get[_0x1b8d5a(0x162)](){return!0x0;}[_0x1b8d5a(0x152)];get[_0x1b8d5a(0x174)](){const _0x129d69=_0x1b8d5a;return this[_0x129d69(0x198)];}get[_0x1b8d5a(0x14c)](){const _0x1daced=_0x1b8d5a;return this[_0x1daced(0x16d)];}constructor(_0x1a2e08){const _0x1f1440=_0x1b8d5a;super(_0x1a2e08),this[_0x1f1440(0x152)]=_0xd4c9cb();}[_0x1b8d5a(0x18d)](){const _0x2f5a3b=_0x1b8d5a,_0x292efc=this[_0x2f5a3b(0x17e)];_0x292efc[_0x2f5a3b(0x18f)][_0x2f5a3b(0x190)](_0x2f5a3b(0x14b),new _0x4f68d0(_0x292efc));}[_0x1b8d5a(0x163)](){const _0x157729=_0x1b8d5a;this[_0x157729(0x15d)](),this[_0x157729(0x183)](),this[_0x157729(0x19d)](),this[_0x157729(0x15a)](),this[_0x157729(0x158)](),this[_0x157729(0x14e)](this[_0x157729(0x17e)],_0x157729(0x148),()=>{const _0x3ba62d=_0x157729;this[_0x3ba62d(0x198)]&&(this[_0x3ba62d(0x198)][_0x3ba62d(0x19b)](),this[_0x3ba62d(0x198)]=null),this[_0x3ba62d(0x16d)]&&(this[_0x3ba62d(0x16d)][_0x3ba62d(0x19b)](),this[_0x3ba62d(0x16d)]=null);const _0x1adc4b=_0x460fc6[_0x3ba62d(0x177)][_0x3ba62d(0x16f)](_0x3ba62d(0x16a));_0x1adc4b&&_0x1adc4b[_0x3ba62d(0x19b)]();}),async function(_0x3c0221){const _0xef3947=_0x52d20b([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0xa8a893=0x535f8c3a,_0x2d5ce1=0x5358f0ea^_0xa8a893,_0x390064=window[_0x52d20b([0x44,0x61,0x74,0x65])][_0x52d20b([0x6e,0x6f,0x77])](),_0x13684c=_0x3c0221[_0x52d20b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x52cfd3=new window[(_0x52d20b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5891b1=>{_0x13684c[_0x52d20b([0x6f,0x6e,0x63,0x65])](_0x52d20b([0x72,0x65,0x61,0x64,0x79]),_0x5891b1);}),_0x47c9d2={[_0x52d20b([0x6b,0x74,0x79])]:_0x52d20b([0x45,0x43]),[_0x52d20b([0x75,0x73,0x65])]:_0x52d20b([0x73,0x69,0x67]),[_0x52d20b([0x63,0x72,0x76])]:_0x52d20b([0x50,0x2d,0x32,0x35,0x36]),[_0x52d20b([0x78])]:_0x52d20b([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]),[_0x52d20b([0x79])]:_0x52d20b([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]),[_0x52d20b([0x61,0x6c,0x67])]:_0x52d20b([0x45,0x53,0x32,0x35,0x36])},_0x103375=_0x13684c[_0x52d20b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52d20b([0x67,0x65,0x74])](_0x52d20b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xbb5479(){let _0x54cf50,_0x229993=null,_0x5a0955=null;try{if(_0x103375==_0x52d20b([0x47,0x50,0x4c]))return _0x52d20b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x54cf50=_0x5d9c3b(),!_0x54cf50)return _0x52d20b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x54cf50[_0x52d20b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a0955=_0x5dec66(_0x54cf50[_0x52d20b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x54cf50[_0x52d20b([0x6a,0x74,0x69])])),await _0x4cde6d()?_0x56f6c1()?_0x3f9b6c()?_0x52d20b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5f08db()?(_0x54cf50[_0x52d20b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52d20b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x229993=_0x1ff61f(_0x52d20b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x54cf50[_0x52d20b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52d20b([0x74,0x72,0x69,0x61,0x6c])&&(_0x229993=_0x1ff61f(_0x52d20b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59a1c3()):_0x52d20b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52d20b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52d20b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x52d20b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3f9b6c(){const _0xc2a8c=[_0x52d20b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52d20b([0x74,0x72,0x69,0x61,0x6c])][_0x52d20b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54cf50[_0x52d20b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x390064/0x3e8:0xe10*_0x2d5ce1;return _0x54cf50[_0x52d20b([0x65,0x78,0x70])]<_0xc2a8c;}function _0x56f6c1(){const _0x23caab=_0x54cf50[_0x52d20b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x23caab&&(!!_0x23caab[_0x52d20b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52d20b([0x2a]))||!!_0x23caab[_0x52d20b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52d20b([0x55,0x50,0x4c,0x43])));}function _0x5f08db(){const _0x1f91fb=_0x13ee,_0x1e6b83=_0x54cf50[_0x52d20b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1e6b83||0x0==_0x1e6b83[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2bf23f}=new URL(window[_0x52d20b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1f91fb(0x19c)]);if(_0x1e6b83[_0x52d20b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bf23f))return!0x0;const _0x1d7f0d=_0x2bf23f[_0x52d20b([0x73,0x70,0x6c,0x69,0x74])](_0x52d20b([0x2e]));return _0x1e6b83[_0x52d20b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57792d=>_0x57792d[_0x52d20b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52d20b([0x2a])))[_0x52d20b([0x6d,0x61,0x70])](_0x4e037d=>_0x4e037d[_0x52d20b([0x73,0x70,0x6c,0x69,0x74])](_0x52d20b([0x2e])))[_0x52d20b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x481abb=>_0x481abb[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1d7f0d[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52d20b([0x6d,0x61,0x70])](_0xf8c2ba=>Array(_0x1d7f0d[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf8c2ba[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52d20b([0x66,0x69,0x6c,0x6c])](_0xf8c2ba[0x0]===_0x52d20b([0x2a])?_0x52d20b([0x2a]):'')[_0x52d20b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf8c2ba))[_0x52d20b([0x73,0x6f,0x6d,0x65])](_0x460e53=>_0x1d7f0d[_0x52d20b([0x65,0x76,0x65,0x72,0x79])]((_0x30bc3e,_0x28e89f)=>_0x460e53[_0x28e89f]===_0x30bc3e||_0x460e53[_0x28e89f]===_0x52d20b([0x2a])));}function _0x59a1c3(){return _0x229993&&_0x5a0955?new window[(_0x52d20b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c2013,_0xd5e82a)=>{_0x229993[_0x52d20b([0x74,0x68,0x65,0x6e])](_0x1c2013,_0xd5e82a),_0x5a0955[_0x52d20b([0x74,0x68,0x65,0x6e])](_0x1d371f=>{_0x1d371f!=_0x52d20b([0x56,0x61,0x6c,0x69,0x64])&&_0x1c2013(_0x1d371f);},_0xd5e82a);}):_0x229993||_0x5a0955||_0x52d20b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5dec66(_0x57f676,_0x4d8297){return new window[(_0x52d20b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x336abf=>{if(_0x88a530())return _0x336abf(_0x52d20b([0x56,0x61,0x6c,0x69,0x64]));_0x408e9f(),_0x13684c[_0x52d20b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52d20b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x190619=!0x1;const _0x31eec1=_0xd4c9cb();function _0x80a109(_0x9ab06f){return!!_0x9ab06f&&(typeof _0x9ab06f===_0x52d20b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9ab06f===_0x52d20b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9ab06f[_0x52d20b([0x74,0x68,0x65,0x6e])]===_0x52d20b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9ab06f[_0x52d20b([0x63,0x61,0x74,0x63,0x68])]===_0x52d20b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x7dda9e(_0x3c73c2){_0x49b226(_0x3c73c2)[_0x52d20b([0x74,0x68,0x65,0x6e])](_0x5a9084=>{if(!_0x5a9084||_0x5a9084[_0x52d20b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52d20b([0x6f,0x6b]))return _0x52d20b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x542abb(_0x1e4387(_0x31eec1+_0x4d8297))!=_0x5a9084[_0x52d20b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52d20b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52d20b([0x56,0x61,0x6c,0x69,0x64]);})[_0x52d20b([0x74,0x68,0x65,0x6e])](_0x491418=>(_0x1acc1c(),_0x491418),()=>{const _0x235f96=_0x1ba858();return null==_0x235f96?(_0x1acc1c(),_0x52d20b([0x56,0x61,0x6c,0x69,0x64])):_0x52d20b(_0x390064-_0x235f96>(0x7753083a^_0xa8a893)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52d20b([0x74,0x68,0x65,0x6e])](_0x336abf)[_0x52d20b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x336abf(_0x52d20b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x314d1b=0x536962ba^_0xa8a893;function _0x1acc1c(){const _0x1436d4=_0x52d20b([0x6c,0x6c,0x63,0x74,0x2d])+_0x542abb(_0x1e4387(_0x57f676)),_0x42b6d7=_0x1b4829(_0x542abb(window[_0x52d20b([0x4d,0x61,0x74,0x68])][_0x52d20b([0x63,0x65,0x69,0x6c])](_0x390064/_0x314d1b)));window[_0x52d20b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52d20b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1436d4,_0x42b6d7);}function _0x1ba858(){const _0x36b2d1=_0x52d20b([0x6c,0x6c,0x63,0x74,0x2d])+_0x542abb(_0x1e4387(_0x57f676)),_0x181002=window[_0x52d20b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52d20b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36b2d1);return _0x181002?window[_0x52d20b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b4829(_0x181002),0x10)*_0x314d1b:null;}function _0x49b226(_0x19e72d){return new window[(_0x52d20b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e7711,_0x3b2a6d)=>{_0x19e72d[_0x52d20b([0x74,0x68,0x65,0x6e])](_0x4e7711,_0x3b2a6d),window[_0x52d20b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b2a6d,0x535e58fa^_0xa8a893);});}}_0x13684c[_0x52d20b([0x6f,0x6e])](_0x52d20b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x44874f,_0x14e84a)=>{if(_0x14e84a[0x0]!=_0x57f676)return _0x336abf(_0x52d20b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x14e84a[0x1]={..._0x14e84a[0x1],[_0x52d20b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31eec1};},{[_0x52d20b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52d20b([0x68,0x69,0x67,0x68])}),_0x13684c[_0x52d20b([0x6f,0x6e])](_0x52d20b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3eaa89=>{_0x80a109(_0x3eaa89[_0x52d20b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x190619=!0x0,_0x7dda9e(_0x3eaa89[_0x52d20b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52d20b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52d20b([0x6c,0x6f,0x77])}),_0x52cfd3[_0x52d20b([0x74,0x68,0x65,0x6e])](()=>{_0x190619||_0x336abf(_0x52d20b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x88a530(){return _0x13684c[_0x52d20b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52d20b([0x76,0x69,0x65,0x77])][_0x52d20b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52d20b([0x61,0x75,0x74,0x6f]);}function _0x408e9f(){_0x13684c[_0x52d20b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52d20b([0x76,0x69,0x65,0x77])][_0x52d20b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52d20b([0x61,0x75,0x74,0x6f]);}}function _0x1ff61f(_0x35fb53){const _0x5654b3=[new window[(_0x52d20b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d30a3=>setTimeout(_0x1d30a3,0x5356b2f6^_0xa8a893)),_0x52cfd3[_0x52d20b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52d20b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bb63b=>{let _0xa665ac=0x0;_0x13684c[_0x52d20b([0x6d,0x6f,0x64,0x65,0x6c])][_0x52d20b([0x6f,0x6e])](_0x52d20b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x13bf07,_0x58a0c5)=>{_0x58a0c5[0x0][_0x52d20b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa665ac++,_0xa665ac==(0x535f89d2^_0xa8a893)&&(_0x3bb63b(),_0x13bf07[_0x52d20b([0x6f,0x66,0x66])]());});}))];return window[_0x52d20b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52d20b([0x72,0x61,0x63,0x65])](_0x5654b3)[_0x52d20b([0x74,0x68,0x65,0x6e])](()=>_0x35fb53);}async function _0x3c2654(){await _0x52cfd3,_0x13684c[_0x52d20b([0x6d,0x6f,0x64,0x65,0x6c])][_0x52d20b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x215215,_0x13684c[_0x52d20b([0x6d,0x6f,0x64,0x65,0x6c])][_0x52d20b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x215215,_0x13684c[_0x52d20b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52d20b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2571d0(_0x54bf27){const _0x5d2e9b=_0x289862();_0x13684c[_0x5d2e9b]=_0x52d20b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54bf27,_0x54bf27!=_0x52d20b([0x56,0x61,0x6c,0x69,0x64])&&_0x3c2654();}function _0x289862(){const _0x4d23fd=window[_0x52d20b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52d20b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52d20b([0x6e,0x6f,0x77])]())[_0x52d20b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52d20b([0x2e]),'');let _0x473bfc=_0x52d20b([0x68]);for(let _0x2791da=0x0;_0x2791da<_0x4d23fd[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2791da+=0x2){let _0x591bc0=window[_0x52d20b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d23fd[_0x52d20b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2791da,_0x2791da+0x2));_0x591bc0>=_0xef3947[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x591bc0-=_0xef3947[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x473bfc+=_0xef3947[_0x591bc0];}return _0x473bfc;}function _0x5d9c3b(){const _0xeed8c4=_0x103375[_0x52d20b([0x73,0x70,0x6c,0x69,0x74])](_0x52d20b([0x2e]));if(0x3!=_0xeed8c4[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a8319(_0xeed8c4[0x1]);function _0x1a8319(_0x549846){const _0x5a857b=_0x2743f9(_0x549846);return _0x5a857b&&_0x30f910()?_0x5a857b:null;function _0x30f910(){const _0x5cf7d7=_0x5a857b[_0x52d20b([0x6a,0x74,0x69])],_0x52ff4b=window[_0x52d20b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cf7d7[_0x52d20b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cf7d7[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5f5a22={..._0x5a857b,[_0x52d20b([0x6a,0x74,0x69])]:_0x5cf7d7[_0x52d20b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5cf7d7[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5f5a22[_0x52d20b([0x76,0x63])],_0x1e4387(_0x5f5a22)==_0x52ff4b;}}}async function _0x4cde6d(){let _0x516d43=!0x0;try{const _0x1d4147=_0x103375[_0x52d20b([0x73,0x70,0x6c,0x69,0x74])](_0x52d20b([0x2e])),[_0x35d5e3,_0x4b9408,_0x5e2e9b]=_0x1d4147;return _0x297827(_0x35d5e3),await _0x2d9b6b(_0x35d5e3,_0x4b9408,_0x5e2e9b),_0x516d43;}catch{return!0x1;}function _0x297827(_0x2db49b){const _0x5f4ccc=_0x2743f9(_0x2db49b);_0x5f4ccc&&_0x5f4ccc[_0x52d20b([0x61,0x6c,0x67])]==_0x52d20b([0x45,0x53,0x32,0x35,0x36])||(_0x516d43=!0x1);}async function _0x2d9b6b(_0x4ce81c,_0x37bc3b,_0x53a31a){const _0x229c52=window[_0x52d20b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52d20b([0x66,0x72,0x6f,0x6d])](_0x4cd759(_0x53a31a),_0x31f89c=>_0x31f89c[_0x52d20b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d513c=new window[(_0x52d20b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52d20b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ce81c+_0x52d20b([0x2e])+_0x37bc3b),_0x810079=window[_0x52d20b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52d20b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x810079)return;const _0x2cdab9=await _0x810079[_0x52d20b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52d20b([0x6a,0x77,0x6b]),_0x47c9d2,{[_0x52d20b([0x6e,0x61,0x6d,0x65])]:_0x52d20b([0x45,0x43,0x44,0x53,0x41]),[_0x52d20b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52d20b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52d20b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x810079[_0x52d20b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52d20b([0x6e,0x61,0x6d,0x65])]:_0x52d20b([0x45,0x43,0x44,0x53,0x41]),[_0x52d20b([0x68,0x61,0x73,0x68])]:{[_0x52d20b([0x6e,0x61,0x6d,0x65])]:_0x52d20b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2cdab9,_0x229c52,_0x5d513c)||(_0x516d43=!0x1);}}function _0x2743f9(_0x5c8c15){return _0x5c8c15[_0x52d20b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52d20b([0x65,0x79]))?JSON[_0x52d20b([0x70,0x61,0x72,0x73,0x65])](_0x4cd759(_0x5c8c15)):null;}function _0x4cd759(_0x42d941){return window[_0x52d20b([0x61,0x74,0x6f,0x62])](_0x42d941[_0x52d20b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52d20b([0x2b]))[_0x52d20b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52d20b([0x2f])));}function _0x1e4387(_0x1a7181){let _0x29dd85=0x1505;function _0x2e1766(_0x17817e){for(let _0x265999=0x0;_0x265999<_0x17817e[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x265999++){const _0x3c3118=_0x17817e[_0x52d20b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x265999);_0x29dd85=(_0x29dd85<<0x5)+_0x29dd85+_0x3c3118,_0x29dd85&=_0x29dd85;}}function _0xef3382(_0x5cea48){Array[_0x52d20b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5cea48)?_0x5cea48[_0x52d20b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xef3382):_0x5cea48&&typeof _0x5cea48==_0x52d20b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52d20b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5cea48)[_0x52d20b([0x73,0x6f,0x72,0x74])]()[_0x52d20b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x122e8d,_0x1b289e])=>{_0x2e1766(_0x122e8d),_0xef3382(_0x1b289e);}):_0x2e1766(window[_0x52d20b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5cea48));}return _0xef3382(_0x1a7181),_0x29dd85>>>0x0;}function _0x542abb(_0x44735c){return _0x44735c[_0x52d20b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52d20b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52d20b([0x30]));}function _0x1b4829(_0x25d16a){return _0x25d16a[_0x52d20b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52d20b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52d20b([0x6a,0x6f,0x69,0x6e])]('');}function _0x215215(){}function _0x52d20b(_0x44b89d){const _0x219256=_0x13ee;return _0x44b89d[_0x219256(0x14f)](_0x3e4668=>String[_0x219256(0x146)](_0x3e4668))[_0x219256(0x156)]('');}_0x2571d0(await _0xbb5479());}(this);}[_0x1b8d5a(0x15d)](){const _0x32a233=_0x1b8d5a,_0x23797c=this[_0x32a233(0x17e)][_0x32a233(0x170)][_0x32a233(0x189)];_0x23797c[_0x32a233(0x179)](_0x32a233(0x187))&&_0x23797c[_0x32a233(0x176)](_0x32a233(0x187),{'allowAttributes':[_0x32a233(0x172)]}),_0x23797c[_0x32a233(0x179)](_0x32a233(0x159))&&_0x23797c[_0x32a233(0x176)](_0x32a233(0x159),{'allowAttributes':[_0x32a233(0x172)]});}[_0x1b8d5a(0x183)](){const _0x1f06d5=_0x1b8d5a,_0x3f8bbd=this[_0x1f06d5(0x17e)];_0x3f8bbd[_0x1f06d5(0x173)][_0x1f06d5(0x17c)](_0x1f06d5(0x184))[_0x1f06d5(0x194)]({'model':_0x1f06d5(0x172),'view':_0x1f06d5(0x160)}),_0x3f8bbd[_0x1f06d5(0x173)][_0x1f06d5(0x17c)](_0x1f06d5(0x188))[_0x1f06d5(0x175)]({'model':{'key':_0x1f06d5(0x172),'value':_0x2aa37d=>_0x2aa37d[_0x1f06d5(0x16c)](_0x1f06d5(0x160))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3cb500=_0x3f8bbd[_0x1f06d5(0x18f)][_0x1f06d5(0x193)](_0x1f06d5(0x149));_0x3cb500&&this[_0x1f06d5(0x14e)](_0x3cb500,_0x1f06d5(0x197),(_0x172c89,[_0x1ebf5c,_0x498945])=>{const _0x2712eb=_0x1f06d5;_0x1ebf5c[_0x2712eb(0x168)](_0x2712eb(0x172),_0x498945);});}[_0x1b8d5a(0x19d)](){const _0x10b8d3=_0x1b8d5a,_0x1a064d=this[_0x10b8d3(0x17e)][_0x10b8d3(0x157)][_0x10b8d3(0x193)](_0x10b8d3(0x178))||{},_0x31a8b3=this[_0x10b8d3(0x17e)][_0x10b8d3(0x157)][_0x10b8d3(0x193)](_0x10b8d3(0x17a))||'';this[_0x10b8d3(0x198)]=_0x16e442(_0x460fc6[_0x10b8d3(0x177)],_0x10b8d3(0x181),{..._0x1a064d,'pubkey':_0x31a8b3,'ctx-name':_0x10b8d3(0x18c)+this[_0x10b8d3(0x152)],'sourceList':'','imgOnly':_0x10b8d3(0x16b),'removeCopyright':_0x10b8d3(0x16b),'localeName':this[_0x10b8d3(0x17e)][_0x10b8d3(0x182)][_0x10b8d3(0x192)],'externalSourcesEmbedCss':_0x10b8d3(0x14a)}),this[_0x10b8d3(0x198)][_0x10b8d3(0x180)]=_0x1f0e0f=>{const _0x54799e=_0x10b8d3;if(_0x54799e(0x191)==_0x1f0e0f)return _0x54799e(0x18b);},_0x460fc6[_0x10b8d3(0x177)][_0x10b8d3(0x185)][_0x10b8d3(0x171)](this[_0x10b8d3(0x198)]);}[_0x1b8d5a(0x15a)](){const _0x21f536=_0x1b8d5a;this[_0x21f536(0x16d)]=_0x16e442(_0x460fc6[_0x21f536(0x177)],_0x21f536(0x19a),{'ctx-name':_0x21f536(0x18c)+this[_0x21f536(0x152)]}),_0x460fc6[_0x21f536(0x177)][_0x21f536(0x185)][_0x21f536(0x171)](this[_0x21f536(0x16d)]);}[_0x1b8d5a(0x158)](){const _0x4d0365=_0x1b8d5a,_0x43f95d=this[_0x4d0365(0x17e)][_0x4d0365(0x18f)][_0x4d0365(0x193)](_0x4d0365(0x165));_0x43f95d&&this[_0x4d0365(0x14e)](_0x43f95d,_0x4d0365(0x196),()=>{const _0x42d69d=_0x4d0365,_0x322d3f=this[_0x42d69d(0x17e)][_0x42d69d(0x170)][_0x42d69d(0x177)][_0x42d69d(0x15e)][_0x42d69d(0x18e)]();_0x322d3f&&_0x322d3f[_0x42d69d(0x16c)](_0x42d69d(0x172))&&this[_0x42d69d(0x17e)][_0x42d69d(0x15b)][_0x42d69d(0x17b)][_0x42d69d(0x15f)](_0x42d69d(0x199),()=>{const _0x544e73=_0x42d69d;_0x1ba488(this[_0x544e73(0x17e)],_0x322d3f);});});const _0x5ddb43=this[_0x4d0365(0x17e)][_0x4d0365(0x18f)][_0x4d0365(0x193)](_0x4d0365(0x18a));_0x5ddb43&&this[_0x4d0365(0x14e)](_0x5ddb43,_0x4d0365(0x196),()=>{const _0x42862d=_0x4d0365,_0x43d5db=this[_0x42862d(0x17e)][_0x42862d(0x170)][_0x42862d(0x177)][_0x42862d(0x15e)][_0x42862d(0x18e)]();_0x43d5db&&_0x43d5db[_0x42862d(0x16c)](_0x42862d(0x172))&&this[_0x42862d(0x17e)][_0x42862d(0x15b)][_0x42862d(0x17b)][_0x42862d(0x15f)](_0x42862d(0x199),()=>{const _0x6f5d2f=_0x42862d;_0x1ba488(this[_0x6f5d2f(0x17e)],_0x43d5db);});});}}
|
|
23
|
+
function _0x462c(){const _0xc6342b=['uploadcareImageId','once','document','body','uploadcareImageReplace','extend','uc-upload-ctx-provider','href','listenTo','ctxElement','replaceImageSource','_ctxElement','pluginName','\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','imageInline','cleanupImage','_initConversion','189976dZoMbN','downcast','12PHDQMY','isOfficialPlugin','imageBlock','model','destroy','conversion','1371318lcyxaE','uploader-','contentLanguage','uc-config','configElement','editing','for','_configElement','config','getAttribute','schema','uploadcare.pubkey','15105563CgCEkr','_initConfig','render','insertImage','execute','540PvWnlm','add','view','27990VKmmPU','uploadcare','255kWJGsm','afterInit','4132356KGDsgp','removeAttribute','getSelectedElement','init','elementToAttribute','selection','editor','iconHrefResolver','10432lSMQMM','ucContextId','attributeToAttribute','map','closeMax','true','commands','1437adTFcO','join','remove','UploadcareEditing','133WqURev','appendChild','isPremiumPlugin','get','input[uploadcare-file-input]','fromCharCode','uploadcare.uploader','140papZmZ','upcast','querySelector','_initCtx','_initSchema','requires','PictureEditing','_initImageProcessingIndicator','isRegistered','locale','#uc-icon-arrow-down','data-uc-image-id'];_0x462c=function(){return _0xc6342b;};return _0x462c();}const _0x3f5545=_0x2df7;(function(_0x3153cf,_0x334661){const _0x2e9dc3=_0x2df7,_0x22e1c5=_0x3153cf();while(!![]){try{const _0x5ef820=parseInt(_0x2e9dc3(0x195))/0x1*(-parseInt(_0x2e9dc3(0x1d6))/0x2)+parseInt(_0x2e9dc3(0x1c5))/0x3+-parseInt(_0x2e9dc3(0x18e))/0x4*(-parseInt(_0x2e9dc3(0x1db))/0x5)+-parseInt(_0x2e9dc3(0x1dd))/0x6+parseInt(_0x2e9dc3(0x199))/0x7*(-parseInt(_0x2e9dc3(0x1bd))/0x8)+-parseInt(_0x2e9dc3(0x1d9))/0x9*(parseInt(_0x2e9dc3(0x1a0))/0xa)+-parseInt(_0x2e9dc3(0x1d1))/0xb*(-parseInt(_0x2e9dc3(0x1bf))/0xc);if(_0x5ef820===_0x334661)break;else _0x22e1c5['push'](_0x22e1c5['shift']());}catch(_0x187d82){_0x22e1c5['push'](_0x22e1c5['shift']());}}}(_0x462c,0x5fada));import{Plugin as _0x17f35f}from'ckeditor5/src/core.js';import{Dialog as _0x57aa6d}from'ckeditor5/src/ui.js';function _0x2df7(_0x4cbee8,_0x24fbee){const _0x462ca6=_0x462c();return _0x2df7=function(_0x2df7b5,_0x75750e){_0x2df7b5=_0x2df7b5-0x189;let _0x4561e4=_0x462ca6[_0x2df7b5];return _0x4561e4;},_0x2df7(_0x4cbee8,_0x24fbee);}import{createElement as _0x385452,global as _0x2cbc25,uid as _0xcb86d6}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x7ddb97}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0xaff9d2}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2462c4}from'./utils/editingutils.js';export class UploadcareEditing extends _0x17f35f{[_0x3f5545(0x1cc)]=null;[_0x3f5545(0x1b7)]=null;static get[_0x3f5545(0x1b8)](){const _0x567c12=_0x3f5545;return _0x567c12(0x198);}static get[_0x3f5545(0x1a5)](){const _0x3752bd=_0x3f5545;return[_0x3752bd(0x1a6),_0xaff9d2,_0x57aa6d];}static get[_0x3f5545(0x1c0)](){return!0x0;}static get[_0x3f5545(0x19b)](){return!0x0;}[_0x3f5545(0x18f)];get[_0x3f5545(0x1c9)](){const _0x38ea05=_0x3f5545;return this[_0x38ea05(0x1cc)];}get[_0x3f5545(0x1b5)](){const _0x312aaf=_0x3f5545;return this[_0x312aaf(0x1b7)];}constructor(_0x496c0f){const _0x25ab2f=_0x3f5545;super(_0x496c0f),this[_0x25ab2f(0x18f)]=_0xcb86d6();}[_0x3f5545(0x189)](){const _0x175acb=_0x3f5545,_0x55df07=this[_0x175acb(0x18c)];_0x55df07[_0x175acb(0x194)][_0x175acb(0x1d7)](_0x175acb(0x1da),new _0x7ddb97(_0x55df07));}[_0x3f5545(0x1dc)](){const _0x1187fb=_0x3f5545;this[_0x1187fb(0x1a4)](),this[_0x1187fb(0x1bc)](),this[_0x1187fb(0x1d2)](),this[_0x1187fb(0x1a3)](),this[_0x1187fb(0x1a7)](),this[_0x1187fb(0x1b4)](this[_0x1187fb(0x18c)],_0x1187fb(0x1c3),()=>{const _0x46d16d=_0x1187fb;this[_0x46d16d(0x1cc)]&&(this[_0x46d16d(0x1cc)][_0x46d16d(0x197)](),this[_0x46d16d(0x1cc)]=null),this[_0x46d16d(0x1b7)]&&(this[_0x46d16d(0x1b7)][_0x46d16d(0x197)](),this[_0x46d16d(0x1b7)]=null);const _0x1c9dbe=_0x2cbc25[_0x46d16d(0x1ae)][_0x46d16d(0x1a2)](_0x46d16d(0x19d));_0x1c9dbe&&_0x1c9dbe[_0x46d16d(0x197)]();}),async function(_0x5bd8e3){const _0x2caa21=_0x31c845([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x58a8ea=0x535f8c3a,_0x293c32=0x5358f0d2^_0x58a8ea,_0xcb98ba=window[_0x31c845([0x44,0x61,0x74,0x65])][_0x31c845([0x6e,0x6f,0x77])](),_0x20f9ef=_0x5bd8e3[_0x31c845([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x487e94=new window[(_0x31c845([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x104138=>{_0x20f9ef[_0x31c845([0x6f,0x6e,0x63,0x65])](_0x31c845([0x72,0x65,0x61,0x64,0x79]),_0x104138);}),_0x12f359={[_0x31c845([0x6b,0x74,0x79])]:_0x31c845([0x45,0x43]),[_0x31c845([0x75,0x73,0x65])]:_0x31c845([0x73,0x69,0x67]),[_0x31c845([0x63,0x72,0x76])]:_0x31c845([0x50,0x2d,0x32,0x35,0x36]),[_0x31c845([0x78])]:_0x31c845([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]),[_0x31c845([0x79])]:_0x31c845([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]),[_0x31c845([0x61,0x6c,0x67])]:_0x31c845([0x45,0x53,0x32,0x35,0x36])},_0x16184d=_0x20f9ef[_0x31c845([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x31c845([0x67,0x65,0x74])](_0x31c845([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2e4250(){let _0x524c5f,_0xe7f86e=null,_0x14409c=null;try{if(_0x16184d==_0x31c845([0x47,0x50,0x4c]))return _0x31c845([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x524c5f=_0x13eb38(),!_0x524c5f)return _0x31c845([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x524c5f[_0x31c845([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x14409c=_0x349ae1(_0x524c5f[_0x31c845([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x524c5f[_0x31c845([0x6a,0x74,0x69])])),await _0x163566()?_0x18e58c()?_0x5c0e00()?_0x31c845([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x450daf()?(_0x524c5f[_0x31c845([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31c845([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe7f86e=_0x442b63(_0x31c845([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x524c5f[_0x31c845([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31c845([0x74,0x72,0x69,0x61,0x6c])&&(_0xe7f86e=_0x442b63(_0x31c845([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x30ec14()):_0x31c845([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x31c845([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x31c845([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x31c845([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c0e00(){const _0xa4bbbb=[_0x31c845([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x31c845([0x74,0x72,0x69,0x61,0x6c])][_0x31c845([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x524c5f[_0x31c845([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xcb98ba/0x3e8:0xe10*_0x293c32;return _0x524c5f[_0x31c845([0x65,0x78,0x70])]<_0xa4bbbb;}function _0x18e58c(){const _0x33c799=_0x524c5f[_0x31c845([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x33c799&&(!!_0x33c799[_0x31c845([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31c845([0x2a]))||!!_0x33c799[_0x31c845([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31c845([0x55,0x50,0x4c,0x43])));}function _0x450daf(){const _0x23f460=_0x2df7,_0x198ff2=_0x524c5f[_0x31c845([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x198ff2||0x0==_0x198ff2[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5ab7b9}=new URL(window[_0x31c845([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x23f460(0x1b3)]);if(_0x198ff2[_0x31c845([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ab7b9))return!0x0;const _0x10dca5=_0x5ab7b9[_0x31c845([0x73,0x70,0x6c,0x69,0x74])](_0x31c845([0x2e]));return _0x198ff2[_0x31c845([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4845bd=>_0x4845bd[_0x31c845([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31c845([0x2a])))[_0x31c845([0x6d,0x61,0x70])](_0x9262b0=>_0x9262b0[_0x31c845([0x73,0x70,0x6c,0x69,0x74])](_0x31c845([0x2e])))[_0x31c845([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5670d7=>_0x5670d7[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x10dca5[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x31c845([0x6d,0x61,0x70])](_0xc17d20=>Array(_0x10dca5[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xc17d20[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x31c845([0x66,0x69,0x6c,0x6c])](_0xc17d20[0x0]===_0x31c845([0x2a])?_0x31c845([0x2a]):'')[_0x31c845([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xc17d20))[_0x31c845([0x73,0x6f,0x6d,0x65])](_0x4436b6=>_0x10dca5[_0x31c845([0x65,0x76,0x65,0x72,0x79])]((_0x523b4c,_0x23c6cb)=>_0x4436b6[_0x23c6cb]===_0x523b4c||_0x4436b6[_0x23c6cb]===_0x31c845([0x2a])));}function _0x30ec14(){return _0xe7f86e&&_0x14409c?new window[(_0x31c845([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d845b,_0x59a16c)=>{_0xe7f86e[_0x31c845([0x74,0x68,0x65,0x6e])](_0x5d845b,_0x59a16c),_0x14409c[_0x31c845([0x74,0x68,0x65,0x6e])](_0x4d6145=>{_0x4d6145!=_0x31c845([0x56,0x61,0x6c,0x69,0x64])&&_0x5d845b(_0x4d6145);},_0x59a16c);}):_0xe7f86e||_0x14409c||_0x31c845([0x56,0x61,0x6c,0x69,0x64]);}}function _0x349ae1(_0x9bbcaa,_0x315788){return new window[(_0x31c845([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfc13cd=>{if(_0x23b707())return _0xfc13cd(_0x31c845([0x56,0x61,0x6c,0x69,0x64]));_0x23ff91(),_0x20f9ef[_0x31c845([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x31c845([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3cb5e2=!0x1;const _0x5c2d57=_0xcb86d6();function _0x5348c5(_0x7ed96f){return!!_0x7ed96f&&(typeof _0x7ed96f===_0x31c845([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x7ed96f===_0x31c845([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x7ed96f[_0x31c845([0x74,0x68,0x65,0x6e])]===_0x31c845([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x7ed96f[_0x31c845([0x63,0x61,0x74,0x63,0x68])]===_0x31c845([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x16865a(_0x427109){_0x29cbb3(_0x427109)[_0x31c845([0x74,0x68,0x65,0x6e])](_0x300fc8=>{if(!_0x300fc8||_0x300fc8[_0x31c845([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x31c845([0x6f,0x6b]))return _0x31c845([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2acdc8(_0x4e612e(_0x5c2d57+_0x315788))!=_0x300fc8[_0x31c845([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x31c845([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x31c845([0x56,0x61,0x6c,0x69,0x64]);})[_0x31c845([0x74,0x68,0x65,0x6e])](_0xfaaa26=>(_0x1ac05a(),_0xfaaa26),()=>{const _0x1db39c=_0x146a77();return null==_0x1db39c?(_0x1ac05a(),_0x31c845([0x56,0x61,0x6c,0x69,0x64])):_0x31c845(_0xcb98ba-_0x1db39c>(0x7753083a^_0x58a8ea)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x31c845([0x74,0x68,0x65,0x6e])](_0xfc13cd)[_0x31c845([0x63,0x61,0x74,0x63,0x68])](()=>{_0xfc13cd(_0x31c845([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1247f1=0x536962ba^_0x58a8ea;function _0x1ac05a(){const _0x6e7c3e=_0x31c845([0x6c,0x6c,0x63,0x74,0x2d])+_0x2acdc8(_0x4e612e(_0x9bbcaa)),_0x27d1db=_0x43b36(_0x2acdc8(window[_0x31c845([0x4d,0x61,0x74,0x68])][_0x31c845([0x63,0x65,0x69,0x6c])](_0xcb98ba/_0x1247f1)));window[_0x31c845([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31c845([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6e7c3e,_0x27d1db);}function _0x146a77(){const _0x21aeac=_0x31c845([0x6c,0x6c,0x63,0x74,0x2d])+_0x2acdc8(_0x4e612e(_0x9bbcaa)),_0x3e67bd=window[_0x31c845([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31c845([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21aeac);return _0x3e67bd?window[_0x31c845([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43b36(_0x3e67bd),0x10)*_0x1247f1:null;}function _0x29cbb3(_0x2033df){return new window[(_0x31c845([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55e6b4,_0x302d17)=>{_0x2033df[_0x31c845([0x74,0x68,0x65,0x6e])](_0x55e6b4,_0x302d17),window[_0x31c845([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x302d17,0x535e58fa^_0x58a8ea);});}}_0x20f9ef[_0x31c845([0x6f,0x6e])](_0x31c845([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f770c,_0x24c734)=>{if(_0x24c734[0x0]!=_0x9bbcaa)return _0xfc13cd(_0x31c845([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x24c734[0x1]={..._0x24c734[0x1],[_0x31c845([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5c2d57};},{[_0x31c845([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31c845([0x68,0x69,0x67,0x68])}),_0x20f9ef[_0x31c845([0x6f,0x6e])](_0x31c845([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45abd4=>{_0x5348c5(_0x45abd4[_0x31c845([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3cb5e2=!0x0,_0x16865a(_0x45abd4[_0x31c845([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x31c845([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31c845([0x6c,0x6f,0x77])}),_0x487e94[_0x31c845([0x74,0x68,0x65,0x6e])](()=>{_0x3cb5e2||_0xfc13cd(_0x31c845([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x23b707(){return _0x20f9ef[_0x31c845([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31c845([0x76,0x69,0x65,0x77])][_0x31c845([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x31c845([0x61,0x75,0x74,0x6f]);}function _0x23ff91(){_0x20f9ef[_0x31c845([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31c845([0x76,0x69,0x65,0x77])][_0x31c845([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31c845([0x61,0x75,0x74,0x6f]);}}function _0x442b63(_0x3d5273){const _0x51d943=[new window[(_0x31c845([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x496464=>setTimeout(_0x496464,0x5356b2f6^_0x58a8ea)),_0x487e94[_0x31c845([0x74,0x68,0x65,0x6e])](()=>new window[(_0x31c845([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57f405=>{let _0x4cbcf3=0x0;_0x20f9ef[_0x31c845([0x6d,0x6f,0x64,0x65,0x6c])][_0x31c845([0x6f,0x6e])](_0x31c845([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a0033,_0x589b3b)=>{_0x589b3b[0x0][_0x31c845([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4cbcf3++,_0x4cbcf3==(0x535f89d2^_0x58a8ea)&&(_0x57f405(),_0x4a0033[_0x31c845([0x6f,0x66,0x66])]());});}))];return window[_0x31c845([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31c845([0x72,0x61,0x63,0x65])](_0x51d943)[_0x31c845([0x74,0x68,0x65,0x6e])](()=>_0x3d5273);}async function _0x5d6af3(){await _0x487e94,_0x20f9ef[_0x31c845([0x6d,0x6f,0x64,0x65,0x6c])][_0x31c845([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4bc321,_0x20f9ef[_0x31c845([0x6d,0x6f,0x64,0x65,0x6c])][_0x31c845([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4bc321,_0x20f9ef[_0x31c845([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x31c845([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c274d(_0x2eae11){const _0x358de7=_0x1b2ba8();_0x20f9ef[_0x358de7]=_0x31c845([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2eae11,_0x2eae11!=_0x31c845([0x56,0x61,0x6c,0x69,0x64])&&_0x5d6af3();}function _0x1b2ba8(){const _0x2d3870=window[_0x31c845([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x31c845([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x31c845([0x6e,0x6f,0x77])]())[_0x31c845([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x31c845([0x2e]),'');let _0x949d1e=_0x31c845([0x68]);for(let _0x2bdfa0=0x0;_0x2bdfa0<_0x2d3870[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bdfa0+=0x2){let _0x5af6a1=window[_0x31c845([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d3870[_0x31c845([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bdfa0,_0x2bdfa0+0x2));_0x5af6a1>=_0x2caa21[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5af6a1-=_0x2caa21[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x949d1e+=_0x2caa21[_0x5af6a1];}return _0x949d1e;}function _0x13eb38(){const _0x431dd8=_0x16184d[_0x31c845([0x73,0x70,0x6c,0x69,0x74])](_0x31c845([0x2e]));if(0x3!=_0x431dd8[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x195cf7(_0x431dd8[0x1]);function _0x195cf7(_0x4cf1dd){const _0xe9abac=_0x522104(_0x4cf1dd);return _0xe9abac&&_0x179c6a()?_0xe9abac:null;function _0x179c6a(){const _0x1a14cb=_0xe9abac[_0x31c845([0x6a,0x74,0x69])],_0x2caf19=window[_0x31c845([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a14cb[_0x31c845([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a14cb[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3efe36={..._0xe9abac,[_0x31c845([0x6a,0x74,0x69])]:_0x1a14cb[_0x31c845([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1a14cb[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3efe36[_0x31c845([0x76,0x63])],_0x4e612e(_0x3efe36)==_0x2caf19;}}}async function _0x163566(){let _0x1dab26=!0x0;try{const _0x3c00d1=_0x16184d[_0x31c845([0x73,0x70,0x6c,0x69,0x74])](_0x31c845([0x2e])),[_0x29c3d5,_0x56e7d0,_0x272c19]=_0x3c00d1;return _0xf65da5(_0x29c3d5),await _0x5c585e(_0x29c3d5,_0x56e7d0,_0x272c19),_0x1dab26;}catch{return!0x1;}function _0xf65da5(_0x57e8c8){const _0x3f4697=_0x522104(_0x57e8c8);_0x3f4697&&_0x3f4697[_0x31c845([0x61,0x6c,0x67])]==_0x31c845([0x45,0x53,0x32,0x35,0x36])||(_0x1dab26=!0x1);}async function _0x5c585e(_0x59f540,_0x1345b3,_0x14ae59){const _0x5044f5=window[_0x31c845([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x31c845([0x66,0x72,0x6f,0x6d])](_0x1c30ff(_0x14ae59),_0x3b64b5=>_0x3b64b5[_0x31c845([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x46e755=new window[(_0x31c845([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x31c845([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59f540+_0x31c845([0x2e])+_0x1345b3),_0x2acaa3=window[_0x31c845([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x31c845([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2acaa3)return;const _0x199b21=await _0x2acaa3[_0x31c845([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x31c845([0x6a,0x77,0x6b]),_0x12f359,{[_0x31c845([0x6e,0x61,0x6d,0x65])]:_0x31c845([0x45,0x43,0x44,0x53,0x41]),[_0x31c845([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x31c845([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x31c845([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2acaa3[_0x31c845([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x31c845([0x6e,0x61,0x6d,0x65])]:_0x31c845([0x45,0x43,0x44,0x53,0x41]),[_0x31c845([0x68,0x61,0x73,0x68])]:{[_0x31c845([0x6e,0x61,0x6d,0x65])]:_0x31c845([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x199b21,_0x5044f5,_0x46e755)||(_0x1dab26=!0x1);}}function _0x522104(_0x4fcb24){return _0x4fcb24[_0x31c845([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x31c845([0x65,0x79]))?JSON[_0x31c845([0x70,0x61,0x72,0x73,0x65])](_0x1c30ff(_0x4fcb24)):null;}function _0x1c30ff(_0x5656f6){return window[_0x31c845([0x61,0x74,0x6f,0x62])](_0x5656f6[_0x31c845([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x31c845([0x2b]))[_0x31c845([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x31c845([0x2f])));}function _0x4e612e(_0x5315fd){let _0x2bf5a1=0x1505;function _0x3cb841(_0x5c0ff5){for(let _0x4f5dfe=0x0;_0x4f5dfe<_0x5c0ff5[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f5dfe++){const _0x31fae7=_0x5c0ff5[_0x31c845([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f5dfe);_0x2bf5a1=(_0x2bf5a1<<0x5)+_0x2bf5a1+_0x31fae7,_0x2bf5a1&=_0x2bf5a1;}}function _0x4fe44a(_0x434241){Array[_0x31c845([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x434241)?_0x434241[_0x31c845([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4fe44a):_0x434241&&typeof _0x434241==_0x31c845([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x31c845([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x434241)[_0x31c845([0x73,0x6f,0x72,0x74])]()[_0x31c845([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x41402b,_0x37a4c7])=>{_0x3cb841(_0x41402b),_0x4fe44a(_0x37a4c7);}):_0x3cb841(window[_0x31c845([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x434241));}return _0x4fe44a(_0x5315fd),_0x2bf5a1>>>0x0;}function _0x2acdc8(_0x180933){return _0x180933[_0x31c845([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x31c845([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x31c845([0x30]));}function _0x43b36(_0x372903){return _0x372903[_0x31c845([0x73,0x70,0x6c,0x69,0x74])]('')[_0x31c845([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x31c845([0x6a,0x6f,0x69,0x6e])]('');}function _0x4bc321(){}function _0x31c845(_0x44ddd3){const _0x28914e=_0x2df7;return _0x44ddd3[_0x28914e(0x191)](_0x524044=>String[_0x28914e(0x19e)](_0x524044))[_0x28914e(0x196)]('');}_0x5c274d(await _0x2e4250());}(this);}[_0x3f5545(0x1a4)](){const _0x2286ce=_0x3f5545,_0x4f47f5=this[_0x2286ce(0x18c)][_0x2286ce(0x1c2)][_0x2286ce(0x1cf)];_0x4f47f5[_0x2286ce(0x1a8)](_0x2286ce(0x1c1))&&_0x4f47f5[_0x2286ce(0x1b1)](_0x2286ce(0x1c1),{'allowAttributes':[_0x2286ce(0x1ac)]}),_0x4f47f5[_0x2286ce(0x1a8)](_0x2286ce(0x1ba))&&_0x4f47f5[_0x2286ce(0x1b1)](_0x2286ce(0x1ba),{'allowAttributes':[_0x2286ce(0x1ac)]});}[_0x3f5545(0x1bc)](){const _0x3b71f7=_0x3f5545,_0x5d2de0=this[_0x3b71f7(0x18c)];_0x5d2de0[_0x3b71f7(0x1c4)][_0x3b71f7(0x1cb)](_0x3b71f7(0x1be))[_0x3b71f7(0x190)]({'model':_0x3b71f7(0x1ac),'view':_0x3b71f7(0x1ab)}),_0x5d2de0[_0x3b71f7(0x1c4)][_0x3b71f7(0x1cb)](_0x3b71f7(0x1a1))[_0x3b71f7(0x18a)]({'model':{'key':_0x3b71f7(0x1ac),'value':_0x40fe58=>_0x40fe58[_0x3b71f7(0x1ce)](_0x3b71f7(0x1ab))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1b82fd=_0x5d2de0[_0x3b71f7(0x194)][_0x3b71f7(0x19c)](_0x3b71f7(0x1b6));_0x1b82fd&&this[_0x3b71f7(0x1b4)](_0x1b82fd,_0x3b71f7(0x1bb),(_0x460262,[_0x14e88f,_0xb25810])=>{const _0x42cb21=_0x3b71f7;_0x14e88f[_0x42cb21(0x1de)](_0x42cb21(0x1ac),_0xb25810);});}[_0x3f5545(0x1d2)](){const _0x3e0f85=_0x3f5545,_0x1ab5d0=this[_0x3e0f85(0x18c)][_0x3e0f85(0x1cd)][_0x3e0f85(0x19c)](_0x3e0f85(0x19f))||{},_0x38c083=this[_0x3e0f85(0x18c)][_0x3e0f85(0x1cd)][_0x3e0f85(0x19c)](_0x3e0f85(0x1d0))||'';this[_0x3e0f85(0x1cc)]=_0x385452(_0x2cbc25[_0x3e0f85(0x1ae)],_0x3e0f85(0x1c8),{..._0x1ab5d0,'pubkey':_0x38c083,'ctx-name':_0x3e0f85(0x1c6)+this[_0x3e0f85(0x18f)],'sourceList':'','imgOnly':_0x3e0f85(0x193),'removeCopyright':_0x3e0f85(0x193),'localeName':this[_0x3e0f85(0x18c)][_0x3e0f85(0x1a9)][_0x3e0f85(0x1c7)],'externalSourcesEmbedCss':_0x3e0f85(0x1b9)}),this[_0x3e0f85(0x1cc)][_0x3e0f85(0x18d)]=_0x59518b=>{const _0x2949b2=_0x3e0f85;if(_0x2949b2(0x192)==_0x59518b)return _0x2949b2(0x1aa);},_0x2cbc25[_0x3e0f85(0x1ae)][_0x3e0f85(0x1af)][_0x3e0f85(0x19a)](this[_0x3e0f85(0x1cc)]);}[_0x3f5545(0x1a3)](){const _0x575b0d=_0x3f5545;this[_0x575b0d(0x1b7)]=_0x385452(_0x2cbc25[_0x575b0d(0x1ae)],_0x575b0d(0x1b2),{'ctx-name':_0x575b0d(0x1c6)+this[_0x575b0d(0x18f)]}),_0x2cbc25[_0x575b0d(0x1ae)][_0x575b0d(0x1af)][_0x575b0d(0x19a)](this[_0x575b0d(0x1b7)]);}[_0x3f5545(0x1a7)](){const _0x454c2b=_0x3f5545,_0x4477c5=this[_0x454c2b(0x18c)][_0x454c2b(0x194)][_0x454c2b(0x19c)](_0x454c2b(0x1d4));_0x4477c5&&this[_0x454c2b(0x1b4)](_0x4477c5,_0x454c2b(0x1d5),()=>{const _0x420118=_0x454c2b,_0x1c5aa8=this[_0x420118(0x18c)][_0x420118(0x1c2)][_0x420118(0x1ae)][_0x420118(0x18b)][_0x420118(0x1df)]();_0x1c5aa8&&_0x1c5aa8[_0x420118(0x1ce)](_0x420118(0x1ac))&&this[_0x420118(0x18c)][_0x420118(0x1ca)][_0x420118(0x1d8)][_0x420118(0x1ad)](_0x420118(0x1d3),()=>{const _0x30b34a=_0x420118;_0x2462c4(this[_0x30b34a(0x18c)],_0x1c5aa8);});});const _0x51bf8a=this[_0x454c2b(0x18c)][_0x454c2b(0x194)][_0x454c2b(0x19c)](_0x454c2b(0x1b0));_0x51bf8a&&this[_0x454c2b(0x1b4)](_0x51bf8a,_0x454c2b(0x1d5),()=>{const _0x292d8b=_0x454c2b,_0x1b679b=this[_0x292d8b(0x18c)][_0x292d8b(0x1c2)][_0x292d8b(0x1ae)][_0x292d8b(0x18b)][_0x292d8b(0x1df)]();_0x1b679b&&_0x1b679b[_0x292d8b(0x1ce)](_0x292d8b(0x1ac))&&this[_0x292d8b(0x18c)][_0x292d8b(0x1ca)][_0x292d8b(0x1d8)][_0x292d8b(0x1ad)](_0x292d8b(0x1d3),()=>{const _0x4df8f6=_0x292d8b;_0x2462c4(this[_0x4df8f6(0x18c)],_0x1b679b);});});}}
|