@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250628.0 → 0.0.0-nightly-20250629.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 _0x5c1fd7,Command as _0x1ceaf8}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1dec5b,IconGooglePhotos as _0x555626,IconGoogleDrive as _0x20ed83,IconFacebook as _0x4921f3,IconDropbox as _0xe3ce6c,IconUploadcareLink as _0xa94e2a,IconUploadcareImageUpload as _0x4dde00,IconError as _0x31f124,IconUploadcareImageEdit as _0x41ee57}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xe36893,MenuBarMenuListItemButtonView as _0x185e18,View as _0x435f57,FocusCycler as _0x17bf92,Dialog as _0xc45072,DialogViewPosition as _0x2d5004,SpinnerView as _0x4aa4c0,IconView as _0x1af99c,Notification as _0x78b19c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2a802e,DomEmitterMixin as _0x45791b,global as _0x1b28e5,getAncestors as _0x1bf414,ObservableMixin as _0x1c0941,uid as _0x285ee3,createElement as _0x5f1045}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x528a6e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x48a22d,info as _0x57a15d}from'@uploadcare/upload-client';import*as _0x3d9e79 from'@uploadcare/file-uploader';var i=function(_0x307a9f){return _0x307a9f['Local']='local',_0x307a9f['URL']='url',_0x307a9f['Dropbox']='dropbox',_0x307a9f['GDrive']='gdrive',_0x307a9f['Facebook']='facebook',_0x307a9f['GPhotos']='gphotos',_0x307a9f['OneDrive']='onedrive',_0x307a9f;}({});function _(_0x41288d,_0x340d25,_0x32cfea){const t=_0x41288d['t'],_0x2dc83f=_0x41288d['t'];switch(_0x340d25){case i['Local']:return{'text':_0x2dc83f('Insert'===_0x32cfea?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2dc83f('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x32cfea?_0x2dc83f('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2dc83f('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x32cfea?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x32cfea?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x32cfea?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x32cfea?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x32cfea?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x340d25;}}class e extends _0x5c1fd7{['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 _0x52224e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x414b4a;for(const _0x42f73e in _0x52224e){const _0x59faed=_0x42f73e,_0x5d5333=_0x52224e[_0x59faed];if('uploadcareLicenseKeyValid'==_0x5d5333||'uploadcareLicenseKeyInvalid'==_0x5d5333||'uploadcareLicenseKeyExpired'==_0x5d5333||'uploadcareLicenseKeyDomainLimit'==_0x5d5333||'uploadcareLicenseKeyNotAllowed'==_0x5d5333||'uploadcareLicenseKeyEvaluationLimit'==_0x5d5333||'uploadcareLicenseKeyTrialLimit'==_0x5d5333||'uploadcareLicenseKeyUsageLimit'==_0x5d5333){delete _0x52224e[_0x59faed],_0x414b4a=_0x5d5333,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x414b4a&&_0x52224e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x414b4a&&_0x52224e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x414b4a&&_0x52224e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x414b4a&&_0x52224e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x414b4a&&_0x52224e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x414b4a&&_0x52224e['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x414b4a&&_0x52224e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1fc312}=this,_0x52d8f9=_0x1fc312['commands']['get']('uploadcare');if(!_0x52d8f9)return;const _0x279060=this['_normalizeConfigSourceList'](_0x1fc312['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4d7e82,_0x38a18d)=>{const _0x21622f=this['_getIntegrationKey'](_0x38a18d['type']);return _0x4d7e82[_0x21622f]||(_0x4d7e82[_0x21622f]=[]),_0x4d7e82[_0x21622f]['push'](_0x38a18d),_0x4d7e82;},{});_0x1fc312['plugins']['has']('ImageInsertUI')&&_0x1fc312['commands']['get']('uploadcare')&&Object['entries'](_0x279060)['forEach'](([_0x4081d3,_0x179a73])=>{_0x1fc312['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4081d3,'observable':()=>_0x52d8f9,'buttonViewCreator':()=>this['_createToolbarButton'](_0x179a73),'formViewCreator':()=>this['_createDropdownButtons'](_0x179a73),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x179a73),'override':'assetManager'!==_0x4081d3});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x31350c){const {locale:_0x451130}=this['editor'];return _0x31350c['map'](_0x49a4f1=>{const _0x4ba888=_(_0x451130,_0x49a4f1,'Insert');switch(_0x49a4f1){case i['Local']:return{'icon':_0x4dde00,'type':i['Local'],..._0x4ba888};case i['URL']:return{'icon':_0xa94e2a,'type':i['URL'],..._0x4ba888};case i['Dropbox']:return{'icon':_0xe3ce6c,'type':i['Dropbox'],..._0x4ba888};case i['Facebook']:return{'icon':_0x4921f3,'type':i['Facebook'],..._0x4ba888};case i['GDrive']:return{'icon':_0x20ed83,'type':i['GDrive'],..._0x4ba888};case i['GPhotos']:return{'icon':_0x555626,'type':i['GPhotos'],..._0x4ba888};case i['OneDrive']:return{'icon':_0x1dec5b,'type':i['OneDrive'],..._0x4ba888};}});}['_getIntegrationKey'](_0x1b161b){switch(_0x1b161b){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1ea842,_0x132fdd){const _0x552581=this['editor'],_0x21758b=new _0x1ea842(_0x552581['locale']),_0xa4197f=_0x552581['commands']['get']('uploadcare');return _0x21758b['bind']('isEnabled')['to'](_0xa4197f),_0x21758b['on']('execute',()=>{_0xa4197f['execute'](_0x132fdd);}),_0x21758b;}['_createToolbarButton'](_0x908611){const {locale:_0x57e1bd}=this['editor'],_0xab0679=this['editor']['plugins']['get']('ImageInsertUI'),_0x210b79=_0x908611[0x0],_0x56f368=this['_createButton'](_0xe36893,_0x210b79['type']);return _0x56f368['icon']=_0x210b79['icon'],_0x56f368['bind']('label')['to'](_0xab0679,'isImageSelected',_0x4c7306=>_(_0x57e1bd,_0x210b79['type'],_0x4c7306?'Replace':'Insert')['text']),_0x56f368['tooltip']=!0x0,_0x56f368;}['_createDropdownButtons'](_0x1de5f4){const {locale:_0x3efe03}=this['editor'],_0x1ced4c=this['editor']['plugins']['get']('ImageInsertUI');return _0x1de5f4['map'](_0x250581=>{const _0x3e5256=this['_createButton'](_0xe36893,_0x250581['type']);return _0x3e5256['withText']=!0x0,_0x3e5256['icon']=_0x250581['icon'],_0x3e5256['bind']('label')['to'](_0x1ced4c,'isImageSelected',_0x38b65d=>_(_0x3efe03,_0x250581['type'],_0x38b65d?'Replace':'Insert')['text']),_0x3e5256;});}['_createMenuBarButtons'](_0x5c54df){return _0x5c54df['map'](_0x9a2bd9=>{const _0x23019e=this['_createButton'](_0x185e18,_0x9a2bd9['type']);return _0x23019e['icon']=_0x9a2bd9['icon'],_0x23019e['label']=_0x9a2bd9['shortText'],_0x23019e;});}}class F extends _0x435f57{['focusTracker'];['focusCycler'];constructor(_0x576229){super(_0x576229),this['focusTracker']=new _0x2a802e(),this['focusCycler']=new _0x17bf92({'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(_0x467200,_0xc8ceaf){super(_0x467200),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-'+_0xc8ceaf}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x2a342e,_0x56490d){const _0xc0ad7f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x42bd16=>_0x42bd16<=_0x56490d)['map'](_0x14ca8c=>_0x2a342e['replace'](/\/$/,'')+'/-/resize/'+_0x14ca8c+'x/\x20'+_0x14ca8c+'w');return{'imageFallbackUrl':_0x2a342e,'imageSources':[{'srcset':_0xc0ad7f['join'](',\x20'),'sizes':'(max-width:\x20'+_0x56490d+'px)\x20100vw,\x20'+_0x56490d+'px','type':'image/webp'}]};}function C(_0x415f67,_0xf3d90f,_0x4250ad){const _0x2de8df=_0x415f67['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2de8df?parseInt(_0x2de8df[0x1],0xa):_0xf3d90f,'height':_0x2de8df?parseInt(_0x2de8df[0x2],0xa):_0x4250ad};}function p(_0x241d31,_0x4794c5){const _0x2ffa93=new(_0x45791b())(),_0x58c362=_0x241d31['plugins']['get']('ImageUtils'),_0x5e725b=_0x241d31['editing']['mapper']['toViewElement'](_0x4794c5),_0xc3a90c=_0x58c362['findViewImgElement'](_0x5e725b),_0x5a0869=_0x241d31['editing']['view']['domConverter']['viewToDom'](_0xc3a90c),_0x12ba87=_0x4794c5['getAttribute']('width'),_0xc410bc=_0x4794c5['getAttribute']('height'),_0x29dcf1='image-processing';_0x241d31['editing']['view']['change'](_0xefd0a1=>{_0xefd0a1['addClass'](_0x29dcf1,_0x5e725b),_0xefd0a1['setStyle']('aspect-ratio',_0x12ba87+'/'+_0xc410bc,_0xc3a90c);}),_0x2ffa93['listenTo'](_0x5a0869,'load',()=>{_0x2ffa93['stopListening'](_0x5a0869,'load'),_0x241d31['editing']['view']['change'](_0x250e8a=>{_0x250e8a['removeClass'](_0x29dcf1,_0x5e725b),_0x250e8a['removeStyle']('aspect-ratio',_0xc3a90c);});});}function G(_0x2844d7){if(Array['isArray'](_0x2844d7)){const _0x499ce4=_0x2844d7['map'](G);return _0x47d706=>_0x499ce4['some'](_0x32b998=>_0x32b998(_0x47d706));}if('origin'==_0x2844d7){const _0x2b682d=_0x1b28e5['window']['location']['origin'];return _0x3ce0db=>new URL(_0x3ce0db,_0x1b28e5['document']['baseURI'])['origin']==_0x2b682d;}return'function'==typeof _0x2844d7?_0x2844d7:_0x2844d7 instanceof RegExp?_0x5b61a6=>!(!_0x5b61a6['match'](_0x2844d7)&&!_0x5b61a6['replace'](/^https?:\/\//,'')['match'](_0x2844d7)):()=>!0x1;}function S(_0x245f2e,_0x238145){return _0x1bf414(_0x245f2e['target'])['includes'](_0x238145);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x1c0941(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2367e1,_0x2ca59b,_0x4ce2d4){super(),this['_editor']=_0x2367e1,this['_editing']=_0x2ca59b,this['_dialog']=_0x2367e1['plugins']['get'](_0xc45072),this['_api']=_0x2ca59b['ctxElement']['getAPI'](),this['_type']=_0x4ce2d4,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:_0x387f82,model:_0x434f2b}=this['_editor'],_0x5d55ee=_0x434f2b['document']['selection']['getSelectedElement'](),_0x52f257=_0x5d55ee&&(_0x5d55ee['is']('element','imageBlock')||_0x5d55ee['is']('element','imageInline'));this['_formView']=new x(_0x387f82,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4dde00,'title':_(_0x387f82,this['_type'],_0x52f257?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2d5004['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5a0a83=>!S(_0x5a0a83,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x124169}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x363c0c=>{const _0x293a75=_0x124169['length'];for(const _0x27efbc of _0x124169){const _0x1e4219=_0x27efbc===_0x124169[_0x293a75-0x1],{cdnUrl:_0x7e5de7,fileInfo:_0x5555d9}=_0x27efbc;if(!_0x7e5de7||!_0x5555d9)continue;const {width:_0x3288c1,height:_0xc50808}=_0x5555d9['imageInfo'],_0x37198e=C(_0x7e5de7,_0x3288c1,_0xc50808),_0x475b8d=k(_0x7e5de7,_0x37198e['width']),_0x4a594c={'id':_0x5555d9['uuid'],'type':'image','attributes':{'imageDimension':_0x37198e,..._0x475b8d}};this['_insertAsset'](_0x4a594c,_0x1e4219,_0x363c0c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xb7584c=>{'idle'===_0xb7584c['detail']['status']&&!_0xb7584c['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x17cfde,_0x2d5acf,_0x5e259c){const _0x4bde30=this['_editor']['model']['document']['selection'],_0x27f5c8=_0x4bde30['getSelectedElement'](),_0x4ff082=!(!_0x27f5c8||!_0x27f5c8['is']('element','imageInline'));_0x5e259c['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x17cfde,_0x4ff082),_0x2d5acf||_0x5e259c['setSelection'](_0x4bde30['getLastPosition']());}['_insertImage'](_0x4d62c6,_0x5853ac){const _0x2a820c=this['_editor'],{imageDimension:_0xd01c4a,imageFallbackUrl:_0x2090f1,imageSources:_0x28d5d4}=_0x4d62c6['attributes'];_0x2a820c['execute']('insertImage',{'imageType':_0x5853ac?'imageInline':null,'source':{'uploadcareImageId':_0x4d62c6['id'],'src':_0x2090f1,'sources':_0x28d5d4,..._0xd01c4a}});}}class w extends _0x1ceaf8{['_editing'];['_controller']=null;static get['requires'](){return[_0xc45072,o];}constructor(_0x339feb){super(_0x339feb),this['_editing']=_0x339feb['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x229c64){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x229c64);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4f7131,publicKey:_0x50fe9b,signal:_0x247f59,onProgress:_0x59b47d}){return _0x48a22d(_0x4f7131,{'publicKey':_0x50fe9b,'store':'auto','signal':_0x247f59,'onProgress':_0x59b47d});}static['getInfo'](_0x26e34f,_0x5c4bab){return _0x57a15d(_0x26e34f,_0x5c4bab);}}class f extends _0x5c1fd7{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x528a6e,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1538ba=this['editor'];if(!!!_0x1538ba['config']['get']('uploadcare'))return;_0x1538ba['plugins']['get'](_0x528a6e)['createUploadAdapter']=_0x19404f=>new A(_0x19404f,_0x1538ba),_0x1538ba['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x44133d,{imageElement:_0x216c65,data:_0x499a0e})=>{_0x1538ba['model']['change'](_0xbdf28c=>{_0xbdf28c['setAttribute']('uploadcareImageId',_0x499a0e['uploadcareImageId'],_0x216c65);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x5e2426,_0x235882){this['loader']=_0x5e2426,this['editor']=_0x235882,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x21eb91=this['editor']['config']['get']('uploadcare.pubkey'),_0x1d9c0a=await this['loader']['file'];return j['upload']({'file':_0x1d9c0a,'publicKey':_0x21eb91,'signal':this['controller']['signal'],'onProgress':_0x5588e8=>{_0x5588e8&&_0x5588e8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5588e8['value']);}})['then'](async _0x408e30=>{const {imageFallbackUrl:_0x45cbc8,imageSources:_0x180001}=k(_0x408e30['cdnUrl'],_0x408e30['imageInfo']['width']);return{'uploadcareImageId':_0x408e30['uuid'],'default':_0x45cbc8,'sources':_0x180001};})['catch'](()=>{const _0x398aaa=t('Cannot\x20upload\x20file:')+('\x20'+_0x1d9c0a['name']+'.');return Promise['reject'](_0x398aaa);});}['abort'](){this['controller']['abort']();}}class o extends _0x5c1fd7{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0xc45072];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x369464){super(_0x369464),this['ucContextId']=_0x285ee3();}['init'](){const _0x3d5cc4=this['editor'];_0x3d5cc4['commands']['add']('uploadcare',new w(_0x3d5cc4));}['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 _0x28f1e7=_0x1b28e5['document']['querySelector']('input[uploadcare-file-input]');_0x28f1e7&&_0x28f1e7['remove']();}),async function(_0x5cbd3c){const _0x3a812d=_0x489f85([0x77,0x36,0x37,0x42,0x41,0x6d,0x6f,0x4c,0x53,0x52,0x30,0x78,0x4e,0x32,0x63,0x6b,0x55,0x69,0x79,0x6a,0x66,0x67,0x6c,0x31,0x38,0x64,0x72,0x65,0x35,0x58,0x44,0x5a,0x4a,0x59,0x48,0x56,0x75,0x51,0x43,0x4b,0x6e,0x73,0x7a,0x68,0x46,0x74,0x47,0x4f,0x70,0x50,0x62,0x49,0x54,0x45,0x71,0x39,0x76,0x61,0x34,0x33,0x4d,0x57]),_0x29640c=0x3368afbd,_0x2dbcfa=0x336fc3b5^_0x29640c,_0x18e4bb=window[_0x489f85([0x44,0x61,0x74,0x65])][_0x489f85([0x6e,0x6f,0x77])](),_0xe54d47=_0x5cbd3c[_0x489f85([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b01c5=new window[(_0x489f85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23316d=>{_0xe54d47[_0x489f85([0x6f,0x6e,0x63,0x65])](_0x489f85([0x72,0x65,0x61,0x64,0x79]),_0x23316d);}),_0x5c1463={[_0x489f85([0x6b,0x74,0x79])]:_0x489f85([0x45,0x43]),[_0x489f85([0x75,0x73,0x65])]:_0x489f85([0x73,0x69,0x67]),[_0x489f85([0x63,0x72,0x76])]:_0x489f85([0x50,0x2d,0x32,0x35,0x36]),[_0x489f85([0x78])]:_0x489f85([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]),[_0x489f85([0x79])]:_0x489f85([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]),[_0x489f85([0x61,0x6c,0x67])]:_0x489f85([0x45,0x53,0x32,0x35,0x36])},_0x18c726=_0xe54d47[_0x489f85([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x489f85([0x67,0x65,0x74])](_0x489f85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x125a49(){let _0x5bcce6,_0x48365c=null,_0x29f538=null;try{if(_0x18c726==_0x489f85([0x47,0x50,0x4c]))return _0x489f85([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5bcce6=_0x190e08(),!_0x5bcce6)return _0x489f85([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5bcce6[_0x489f85([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x29f538=_0x4cb0d9(_0x5bcce6[_0x489f85([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5bcce6[_0x489f85([0x6a,0x74,0x69])])),await _0x4924ec()?_0x708a62()?_0xe6df8()?_0x489f85([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xc62ea0()?(_0x5bcce6[_0x489f85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x489f85([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x48365c=_0x1a61be(_0x489f85([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5bcce6[_0x489f85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x489f85([0x74,0x72,0x69,0x61,0x6c])&&(_0x48365c=_0x1a61be(_0x489f85([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2cd1b8()):_0x489f85([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x489f85([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x489f85([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x489f85([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xe6df8(){const _0x367677=[_0x489f85([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x489f85([0x74,0x72,0x69,0x61,0x6c])][_0x489f85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bcce6[_0x489f85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x18e4bb/0x3e8:0xe10*_0x2dbcfa;return _0x5bcce6[_0x489f85([0x65,0x78,0x70])]<_0x367677;}function _0x708a62(){const _0x241358=_0x5bcce6[_0x489f85([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x241358&&(!!_0x241358[_0x489f85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x489f85([0x2a]))||!!_0x241358[_0x489f85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x489f85([0x55,0x50,0x4c,0x43])));}function _0xc62ea0(){const _0x2b2001=_0x5bcce6[_0x489f85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b2001||0x0==_0x2b2001[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x528e1b}=new URL(window[_0x489f85([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b2001[_0x489f85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x528e1b))return!0x0;const _0x1b656c=_0x528e1b[_0x489f85([0x73,0x70,0x6c,0x69,0x74])](_0x489f85([0x2e]));return _0x2b2001[_0x489f85([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb94505=>_0xb94505[_0x489f85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x489f85([0x2a])))[_0x489f85([0x6d,0x61,0x70])](_0x488d12=>_0x488d12[_0x489f85([0x73,0x70,0x6c,0x69,0x74])](_0x489f85([0x2e])))[_0x489f85([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x292846=>_0x292846[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1b656c[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x489f85([0x6d,0x61,0x70])](_0x394373=>Array(_0x1b656c[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x394373[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x489f85([0x66,0x69,0x6c,0x6c])](_0x394373[0x0]===_0x489f85([0x2a])?_0x489f85([0x2a]):'')[_0x489f85([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x394373))[_0x489f85([0x73,0x6f,0x6d,0x65])](_0x283706=>_0x1b656c[_0x489f85([0x65,0x76,0x65,0x72,0x79])]((_0x55b100,_0x59e1b7)=>_0x283706[_0x59e1b7]===_0x55b100||_0x283706[_0x59e1b7]===_0x489f85([0x2a])));}function _0x2cd1b8(){return _0x48365c&&_0x29f538?new window[(_0x489f85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x556aea,_0x1ad903)=>{_0x48365c[_0x489f85([0x74,0x68,0x65,0x6e])](_0x556aea,_0x1ad903),_0x29f538[_0x489f85([0x74,0x68,0x65,0x6e])](_0x30c74b=>{_0x30c74b!=_0x489f85([0x56,0x61,0x6c,0x69,0x64])&&_0x556aea(_0x30c74b);},_0x1ad903);}):_0x48365c||_0x29f538||_0x489f85([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4cb0d9(_0x2c9e87,_0x4e5aa3){return new window[(_0x489f85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb4950a=>{if(_0x590216())return _0xb4950a(_0x489f85([0x56,0x61,0x6c,0x69,0x64]));_0x5b29d7(),_0xe54d47[_0x489f85([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x489f85([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x23f1c3=!0x1;const _0x324038=_0x285ee3();function _0x5e20f4(_0x4db04f){return!!_0x4db04f&&(typeof _0x4db04f===_0x489f85([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4db04f===_0x489f85([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4db04f[_0x489f85([0x74,0x68,0x65,0x6e])]===_0x489f85([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4db04f[_0x489f85([0x63,0x61,0x74,0x63,0x68])]===_0x489f85([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x47e4b1(_0x592d54){_0xf2e2f(_0x592d54)[_0x489f85([0x74,0x68,0x65,0x6e])](_0x741f4e=>{if(!_0x741f4e||_0x741f4e[_0x489f85([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x489f85([0x6f,0x6b]))return _0x489f85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x16c4cd(_0x521396(_0x324038+_0x4e5aa3))!=_0x741f4e[_0x489f85([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x489f85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x489f85([0x56,0x61,0x6c,0x69,0x64]);})[_0x489f85([0x74,0x68,0x65,0x6e])](_0x3e9626=>(_0x737643(),_0x3e9626),()=>{const _0x2b0d30=_0x243db4();return null==_0x2b0d30?(_0x737643(),_0x489f85([0x56,0x61,0x6c,0x69,0x64])):_0x489f85(_0x18e4bb-_0x2b0d30>(0x17642bbd^_0x29640c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x489f85([0x74,0x68,0x65,0x6e])](_0xb4950a)[_0x489f85([0x63,0x61,0x74,0x63,0x68])](()=>{_0xb4950a(_0x489f85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59ca8b=0x335e413d^_0x29640c;function _0x737643(){const _0x137ee5=_0x489f85([0x6c,0x6c,0x63,0x74,0x2d])+_0x16c4cd(_0x521396(_0x2c9e87)),_0xa5d4d3=_0x4a21bf(_0x16c4cd(window[_0x489f85([0x4d,0x61,0x74,0x68])][_0x489f85([0x63,0x65,0x69,0x6c])](_0x18e4bb/_0x59ca8b)));window[_0x489f85([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x489f85([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x137ee5,_0xa5d4d3);}function _0x243db4(){const _0x28029a=_0x489f85([0x6c,0x6c,0x63,0x74,0x2d])+_0x16c4cd(_0x521396(_0x2c9e87)),_0x39a776=window[_0x489f85([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x489f85([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28029a);return _0x39a776?window[_0x489f85([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a21bf(_0x39a776),0x10)*_0x59ca8b:null;}function _0xf2e2f(_0x3dd990){return new window[(_0x489f85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47820e,_0x2e77fd)=>{_0x3dd990[_0x489f85([0x74,0x68,0x65,0x6e])](_0x47820e,_0x2e77fd),window[_0x489f85([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2e77fd,0x33697b7d^_0x29640c);});}}_0xe54d47[_0x489f85([0x6f,0x6e])](_0x489f85([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x418ae4,_0x3d53b8)=>{if(_0x3d53b8[0x0]!=_0x2c9e87)return _0xb4950a(_0x489f85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d53b8[0x1]={..._0x3d53b8[0x1],[_0x489f85([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x324038};},{[_0x489f85([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x489f85([0x68,0x69,0x67,0x68])}),_0xe54d47[_0x489f85([0x6f,0x6e])](_0x489f85([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4c24c0=>{_0x5e20f4(_0x4c24c0[_0x489f85([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x23f1c3=!0x0,_0x47e4b1(_0x4c24c0[_0x489f85([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x489f85([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x489f85([0x6c,0x6f,0x77])}),_0x5b01c5[_0x489f85([0x74,0x68,0x65,0x6e])](()=>{_0x23f1c3||_0xb4950a(_0x489f85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x590216(){return _0xe54d47[_0x489f85([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x489f85([0x76,0x69,0x65,0x77])][_0x489f85([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x489f85([0x61,0x75,0x74,0x6f]);}function _0x5b29d7(){_0xe54d47[_0x489f85([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x489f85([0x76,0x69,0x65,0x77])][_0x489f85([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x489f85([0x61,0x75,0x74,0x6f]);}}function _0x1a61be(_0x4fc4d0){const _0x22e76d=[new window[(_0x489f85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49c1c3=>setTimeout(_0x49c1c3,0x33619171^_0x29640c)),_0x5b01c5[_0x489f85([0x74,0x68,0x65,0x6e])](()=>new window[(_0x489f85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2787c5=>{let _0x25d2d8=0x0;_0xe54d47[_0x489f85([0x6d,0x6f,0x64,0x65,0x6c])][_0x489f85([0x6f,0x6e])](_0x489f85([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xf7a5a0,_0x18a34a)=>{_0x18a34a[0x0][_0x489f85([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x25d2d8++,_0x25d2d8==(0x3368ae45^_0x29640c)&&(_0x2787c5(),_0xf7a5a0[_0x489f85([0x6f,0x66,0x66])]());});}))];return window[_0x489f85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x489f85([0x72,0x61,0x63,0x65])](_0x22e76d)[_0x489f85([0x74,0x68,0x65,0x6e])](()=>_0x4fc4d0);}async function _0x1be196(){await _0x5b01c5,_0xe54d47[_0x489f85([0x6d,0x6f,0x64,0x65,0x6c])][_0x489f85([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d6e08,_0xe54d47[_0x489f85([0x6d,0x6f,0x64,0x65,0x6c])][_0x489f85([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d6e08,_0xe54d47[_0x489f85([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x489f85([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x239d08(_0x875570){const _0x57622c=_0x434f9f();_0xe54d47[_0x57622c]=_0x489f85([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x875570,_0x875570!=_0x489f85([0x56,0x61,0x6c,0x69,0x64])&&_0x1be196();}function _0x434f9f(){const _0x3fae2d=window[_0x489f85([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x489f85([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x489f85([0x6e,0x6f,0x77])]())[_0x489f85([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x489f85([0x2e]),'');let _0x3ce6a5=_0x489f85([0x77]);for(let _0x24be94=0x0;_0x24be94<_0x3fae2d[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24be94+=0x2){let _0x493191=window[_0x489f85([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fae2d[_0x489f85([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24be94,_0x24be94+0x2));_0x493191>=_0x3a812d[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x493191-=_0x3a812d[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ce6a5+=_0x3a812d[_0x493191];}return _0x3ce6a5;}function _0x190e08(){const _0x488690=_0x18c726[_0x489f85([0x73,0x70,0x6c,0x69,0x74])](_0x489f85([0x2e]));if(0x3!=_0x488690[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2d7da9(_0x488690[0x1]);function _0x2d7da9(_0x21ab7b){const _0x59f9a6=_0x485c4b(_0x21ab7b);return _0x59f9a6&&_0x588b18()?_0x59f9a6:null;function _0x588b18(){const _0x39ea5e=_0x59f9a6[_0x489f85([0x6a,0x74,0x69])],_0x1e3599=window[_0x489f85([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39ea5e[_0x489f85([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39ea5e[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x532082={..._0x59f9a6,[_0x489f85([0x6a,0x74,0x69])]:_0x39ea5e[_0x489f85([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x39ea5e[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x532082[_0x489f85([0x76,0x63])],_0x521396(_0x532082)==_0x1e3599;}}}async function _0x4924ec(){let _0xd154a=!0x0;try{const _0x429e5f=_0x18c726[_0x489f85([0x73,0x70,0x6c,0x69,0x74])](_0x489f85([0x2e])),[_0x372259,_0x59bf67,_0x347a06]=_0x429e5f;return _0x2f7b99(_0x372259),await _0x3cf723(_0x372259,_0x59bf67,_0x347a06),_0xd154a;}catch{return!0x1;}function _0x2f7b99(_0x1b7da0){const _0x490b73=_0x485c4b(_0x1b7da0);_0x490b73&&_0x490b73[_0x489f85([0x61,0x6c,0x67])]==_0x489f85([0x45,0x53,0x32,0x35,0x36])||(_0xd154a=!0x1);}async function _0x3cf723(_0x5257c9,_0x1bbe21,_0x4ff135){const _0x51ece3=window[_0x489f85([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x489f85([0x66,0x72,0x6f,0x6d])](_0x3b13f3(_0x4ff135),_0x4ba28c=>_0x4ba28c[_0x489f85([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2c37c0=new window[(_0x489f85([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x489f85([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5257c9+_0x489f85([0x2e])+_0x1bbe21),_0x28965a=window[_0x489f85([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x489f85([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x28965a)return;const _0x47eff0=await _0x28965a[_0x489f85([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x489f85([0x6a,0x77,0x6b]),_0x5c1463,{[_0x489f85([0x6e,0x61,0x6d,0x65])]:_0x489f85([0x45,0x43,0x44,0x53,0x41]),[_0x489f85([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x489f85([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x489f85([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x28965a[_0x489f85([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x489f85([0x6e,0x61,0x6d,0x65])]:_0x489f85([0x45,0x43,0x44,0x53,0x41]),[_0x489f85([0x68,0x61,0x73,0x68])]:{[_0x489f85([0x6e,0x61,0x6d,0x65])]:_0x489f85([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x47eff0,_0x51ece3,_0x2c37c0)||(_0xd154a=!0x1);}}function _0x485c4b(_0xec77c4){return _0xec77c4[_0x489f85([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x489f85([0x65,0x79]))?JSON[_0x489f85([0x70,0x61,0x72,0x73,0x65])](_0x3b13f3(_0xec77c4)):null;}function _0x3b13f3(_0xf33bf5){return window[_0x489f85([0x61,0x74,0x6f,0x62])](_0xf33bf5[_0x489f85([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x489f85([0x2b]))[_0x489f85([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x489f85([0x2f])));}function _0x521396(_0x33165b){let _0x17445b=0x1505;function _0x1c992d(_0x24b464){for(let _0x5a638b=0x0;_0x5a638b<_0x24b464[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a638b++){const _0x5c890e=_0x24b464[_0x489f85([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5a638b);_0x17445b=(_0x17445b<<0x5)+_0x17445b+_0x5c890e,_0x17445b&=_0x17445b;}}function _0x51f99d(_0x51b765){Array[_0x489f85([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x51b765)?_0x51b765[_0x489f85([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x51f99d):_0x51b765&&typeof _0x51b765==_0x489f85([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x489f85([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x51b765)[_0x489f85([0x73,0x6f,0x72,0x74])]()[_0x489f85([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ebb94,_0x169600])=>{_0x1c992d(_0x4ebb94),_0x51f99d(_0x169600);}):_0x1c992d(window[_0x489f85([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x51b765));}return _0x51f99d(_0x33165b),_0x17445b>>>0x0;}function _0x16c4cd(_0x4e7d17){return _0x4e7d17[_0x489f85([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x489f85([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x489f85([0x30]));}function _0x4a21bf(_0x2f4bba){return _0x2f4bba[_0x489f85([0x73,0x70,0x6c,0x69,0x74])]('')[_0x489f85([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x489f85([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d6e08(){}function _0x489f85(_0x1b579b){return _0x1b579b['map'](_0x10a0f4=>String['fromCharCode'](_0x10a0f4))['join']('');}_0x239d08(await _0x125a49());}(this);}['_initSchema'](){const _0x5c3fa1=this['editor']['model']['schema'];_0x5c3fa1['isRegistered']('imageBlock')&&_0x5c3fa1['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5c3fa1['isRegistered']('imageInline')&&_0x5c3fa1['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5663c9=this['editor'];_0x5663c9['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5663c9['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4755d2=>_0x4755d2['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x527fe5=_0x5663c9['commands']['get']('replaceImageSource');_0x527fe5&&this['listenTo'](_0x527fe5,'cleanupImage',(_0x49f8ee,[_0x5c09ea,_0x573358])=>{_0x5c09ea['removeAttribute']('uploadcareImageId',_0x573358);});}['_initConfig'](){const _0x2b72e7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x283275=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5f1045(_0x1b28e5['document'],'uc-config',{..._0x2b72e7,'pubkey':_0x283275,'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']=_0x37825f=>{if('closeMax'==_0x37825f)return'#uc-icon-arrow-down';},_0x1b28e5['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5f1045(_0x1b28e5['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1b28e5['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2b9689=this['editor']['commands']['get']('insertImage');_0x2b9689&&this['listenTo'](_0x2b9689,'execute',()=>{const _0x4634d0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4634d0&&_0x4634d0['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4634d0);});});const _0x5bb1c0=this['editor']['commands']['get']('uploadcareImageReplace');_0x5bb1c0&&this['listenTo'](_0x5bb1c0,'execute',()=>{const _0x2ae8df=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2ae8df&&_0x2ae8df['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2ae8df);});});}}class tt extends _0x5c1fd7{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a6fdc){super(_0x2a6fdc),_0x2a6fdc['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3d9e79['defineComponents'](_0x3d9e79);}}class ii extends _0x435f57{constructor(_0x5c11c7){super(_0x5c11c7);const t=_0x5c11c7['t'],_0x519c2e=this['bindTemplate'],_0x1e45c5=new _0x4aa4c0();_0x1e45c5['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':[_0x1e45c5,{'text':_0x519c2e['to']('imageUploadProgress',_0x472611=>t('Loading\x20image...')+'\x20('+(_0x472611||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 _0x435f57{constructor(_0x5cf60a){super(_0x5cf60a);const t=_0x5cf60a['t'];this['set']('errorType',null);const _0x21c9ff=new _0xe36893(_0x5cf60a);_0x21c9ff['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x21c9ff['withText']=!0x0,_0x21c9ff['class']='ck-button-action',_0x21c9ff['on']('execute',()=>{this['fire']('retry');}),_0x21c9ff['bind']('isVisible')['to'](this,'errorType',_0x302bf5=>'NotFound'!==_0x302bf5);const _0x3dcfd8=new _0x1af99c();_0x3dcfd8['content']=_0x31f124,_0x3dcfd8['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x53a9b4=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':[_0x3dcfd8,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x53a9b4['to']('errorType',_0x1608bc=>t('NotFound'!==_0x1608bc?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x21c9ff]},{'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 _0x435f57{constructor(_0x2341fd,_0x118063){super(_0x2341fd);const _0x3a0815=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x118063,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3a0815['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xff0e91,_0x252d23,_0x1c7902){super(_0xff0e91),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xff0e91),this['_errorView']=new ti(_0xff0e91),this['_editingView']=new ei(_0xff0e91,_0x1c7902),this['_focusableView']=new _0x435f57(_0xff0e91),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x252d23),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'],_0x36565f=>{this['_addUploadcareImageEditorListeners'](_0x36565f);});}),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'](_0x17749e,_0x25c302){const _0x11935a='uc-cloud-image-editor',_0x228d6e=_0x17749e['querySelector'](_0x11935a);if(_0x228d6e)return _0x25c302(_0x228d6e);const _0x3ff139=new MutationObserver(_0x6ddf50=>{const _0x410388=_0x6ddf50['filter'](_0x62c61a=>_0x62c61a['target']===_0x17749e&&_0x62c61a['addedNodes']['length']>0x0&&_0x62c61a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x11935a);_0x410388['length']&&(_0x3ff139['disconnect'](),_0x25c302(_0x410388[0x0]['addedNodes'][0x0]));});_0x3ff139['observe'](_0x17749e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x20d1d0){_0x20d1d0['addEventListener']('apply',_0x22a6d2=>{this['fire']('apply',{'imageSrc':_0x22a6d2['detail']['cdnUrl']});}),_0x20d1d0['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1c0941(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x337a9b,_0x313d39,_0x292448){super(),this['_editor']=_0x337a9b,this['_dialog']=_0x313d39,this['_imageElement']=_0x292448,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 _0x2736a5=this['_imageElement'],_0x176f8b=_0x2736a5['getAttribute']('uploadcareImageId'),_0x5cf14b=_0x2736a5['getAttribute']('src');if(_0x176f8b)await this['_loadImageInfo'](_0x176f8b,_0x5cf14b);else{if(this['_imageCache']['has'](_0x5cf14b)){const _0x40355f=this['_imageCache']['get'](_0x5cf14b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x40355f['url'],this['imageDimension']=_0x40355f['dimension'],this['imageId']=_0x40355f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x42534e}=this['_editor'],t=_0x42534e['t'],_0x2f0893=new X(_0x42534e,this['imageStatus'],this['_attributes']);_0x2f0893['bind']('status')['to'](this,'imageStatus'),_0x2f0893['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2f0893['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2f0893['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2f0893,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x41ee57,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2f0893,'position':_0x2d5004['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2f0893['focus']();},'onHide':()=>{_0x2f0893['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x98f1bf=>!S(_0x98f1bf,_0x2f0893['element'])}});}['_loadImageInfo'](_0x272b1c,_0x14ae33){return j['getInfo'](_0x272b1c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x431ccb=>{const {width:_0x136390,height:_0x1556b8}=_0x431ccb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14ae33,this['imageDimension']={'width':_0x136390,'height':_0x1556b8},this['imageId']=_0x272b1c;})['catch'](_0x438649=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x438649['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3b041c,_0x12a218){return this['_getImageAsFile'](_0x3b041c)['then'](_0x19a90c=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x12a218['signal'],'file':_0x19a90c,'onProgress':_0x652ef=>{_0x652ef&&_0x652ef['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x652ef['value']));}}))['then'](_0x3a9bf9=>{const {width:_0x352db4,height:_0x5751a3}=_0x3a9bf9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a9bf9['cdnUrl'],this['imageDimension']={'width':_0x352db4,'height':_0x5751a3},this['imageId']=_0x3a9bf9['uuid'],this['imageUploadProgress']=null;const _0x33c61c=_0x3b041c['getAttribute']('src');this['_imageCache']['set'](_0x33c61c,{'id':_0x3a9bf9['uuid'],'url':_0x3a9bf9['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x201ce1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x201ce1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5dca72,_0x26c1ad){_0x5dca72['on']('apply',(_0x5dfc16,_0x1669ab)=>{this['_replaceImage'](_0x26c1ad,_0x1669ab['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5dca72['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5dca72['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5e551d,_0x90896c,_0x17ba93){const _0x264759=this['_editor'],{width:_0x598a8d,height:_0x4f22e9}=C(_0x90896c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x53cf32,imageSources:_0x2d1b45}=k(_0x90896c,_0x598a8d);_0x264759['model']['change'](_0x5c2827=>{if('$graveyard'===_0x5e551d['root']['rootName']){_0x264759['execute']('insertImage',{'imageType':_0x5e551d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5e551d['getAttributes']()),'uploadcareImageId':_0x17ba93,'src':_0x53cf32,'sources':_0x2d1b45,'width':_0x598a8d,'height':_0x4f22e9}});const _0xebd191=_0x5e551d['getChildren']();_0x5e551d=_0x264759['model']['document']['selection']['getSelectedElement']();for(const _0x4cc18a of _0xebd191)_0x5c2827['append'](_0x5c2827['cloneElement'](_0x4cc18a),_0x5e551d);}else _0x5c2827['setSelection'](_0x5e551d,'on'),_0x264759['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5e551d['getAttributes']()),'uploadcareImageId':_0x17ba93,'src':_0x53cf32,'sources':_0x2d1b45,'width':_0x598a8d,'height':_0x4f22e9},_0x5e551d);_0x5c2827['setSelection'](_0x5e551d,'on');});}async['_getImageAsFile'](_0x618775){const _0x22ebf0=_0x1b28e5['window'],_0x381abe=_0x1b28e5['document']['location']['href'],_0x4b5825=new _0x22ebf0['URL'](_0x618775['getAttribute']('src'),_0x381abe);if('data:'===_0x4b5825['protocol']){const _0x2ef431=_0x4b5825['href']['split'](','),_0x421b8a=_0x2ef431[0x0]['match'](/:(.*?);/)[0x1],_0x2fb4ea=_0x421b8a['split']('/')[0x1],_0x37991d=_0x22ebf0['atob'](_0x2ef431[_0x2ef431['length']-0x1]);let _0x23cf22=_0x37991d['length'];const _0x53b2de=new _0x22ebf0['Uint8Array'](_0x23cf22);for(;_0x23cf22--;)_0x53b2de[_0x23cf22]=_0x37991d['charCodeAt'](_0x23cf22);return new _0x22ebf0['File']([_0x53b2de],'image.'+_0x2fb4ea,{'type':_0x421b8a});}const _0x310533=_0x4b5825['href']['split']('/'),_0x42b298=_0x310533[_0x310533['length']-0x1],_0x1ae2b6=_0x42b298['split']('.')[0x1];return _0x22ebf0['fetch'](_0x4b5825['href'])['then'](_0x4f872a=>_0x4f872a['clone']()['blob']())['then'](_0x21918a=>new _0x22ebf0['File']([_0x21918a],_0x42b298,{'type':'image/'+_0x1ae2b6}));}}class O extends _0x1ceaf8{['imageEditController'];static get['requires'](){return[_0xc45072];}['_isEditable'];constructor(_0x266e65){super(_0x266e65),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xa258fc){const _0x3232da=G(_0xa258fc);return _0x57226f=>!(!_0x57226f||!_0x57226f['is']('element','imageBlock')&&!_0x57226f['is']('element','imageInline'))&&(!!_0x57226f['hasAttribute']('uploadcareImageId')||!!_0x57226f['hasAttribute']('src')&&_0x3232da(_0x57226f['getAttribute']('src')));}(_0x266e65['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1fcbdf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1fcbdf);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x37f5c6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x37f5c6&&(_0x37f5c6['is']('element','imageBlock')||_0x37f5c6['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0xc45072),_0x37f5c6),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x1ceaf8{['refresh'](){const _0x2e3237=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2e3237&&(_0x2e3237['is']('element','imageBlock')||_0x2e3237['is']('element','imageInline')));}['execute'](_0x3dd7db){const _0x54fe09=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x422035=>{_0x422035['setAttributes'](_0x3dd7db,_0x54fe09),_0x422035['removeAttribute']('srcset',_0x54fe09),_0x422035['removeAttribute']('sizes',_0x54fe09);});}}class m extends _0x5c1fd7{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x78b19c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xb5330e}=this;_0xb5330e['commands']['add']('uploadcareImageEdit',new O(_0xb5330e)),_0xb5330e['commands']['add']('uploadcareImageReplace',new R(_0xb5330e));}}class g extends _0x5c1fd7{['_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 _0xea1df7=this['editor'];_0xea1df7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5c8d2f=>{const _0x580731=_0xea1df7['commands']['get']('uploadcareImageEdit'),_0x552938=new _0xe36893(_0x5c8d2f),t=_0x5c8d2f['t'];return _0x552938['set']({'icon':_0x41ee57,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x552938['bind']('isEnabled')['to'](_0x580731),_0x552938['bind']('isOn')['to'](_0x580731,'isActive'),this['listenTo'](_0x552938,'execute',()=>{_0xea1df7['execute']('uploadcareImageEdit'),_0xea1df7['editing']['view']['focus']();}),_0x552938;}),this['_initConfig']();}['_initConfig'](){const _0x405c72=_0x5f1045(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x405c72),this['listenTo'](this['editor'],'destroy',()=>{_0x405c72['remove']();});}}class et extends _0x5c1fd7{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 _0x20b168,Command as _0x15b2e5}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x219a0b,IconGooglePhotos as _0x216f1c,IconGoogleDrive as _0x402262,IconFacebook as _0x586eee,IconDropbox as _0x10c1a0,IconUploadcareLink as _0x1358ff,IconUploadcareImageUpload as _0x39e20e,IconError as _0x47e393,IconUploadcareImageEdit as _0x246a0e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4ad196,MenuBarMenuListItemButtonView as _0x5806a7,View as _0x478f1f,FocusCycler as _0x2a7f8c,Dialog as _0x337386,DialogViewPosition as _0x17f53a,SpinnerView as _0x271914,IconView as _0x300c79,Notification as _0x444149}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x33060f,DomEmitterMixin as _0x6c2bc6,global as _0x5df829,getAncestors as _0x588949,ObservableMixin as _0x572926,uid as _0x4268c0,createElement as _0x4ddb5a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x298334}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x19036c,info as _0x287068}from'@uploadcare/upload-client';import*as _0x1d805e from'@uploadcare/file-uploader';var i=function(_0x2b46b9){return _0x2b46b9['Local']='local',_0x2b46b9['URL']='url',_0x2b46b9['Dropbox']='dropbox',_0x2b46b9['GDrive']='gdrive',_0x2b46b9['Facebook']='facebook',_0x2b46b9['GPhotos']='gphotos',_0x2b46b9['OneDrive']='onedrive',_0x2b46b9;}({});function _(_0x40fef0,_0x437db6,_0x47c3ea){const t=_0x40fef0['t'],_0x50133b=_0x40fef0['t'];switch(_0x437db6){case i['Local']:return{'text':_0x50133b('Insert'===_0x47c3ea?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x50133b('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x47c3ea?_0x50133b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x50133b('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x47c3ea?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x47c3ea?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x47c3ea?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x47c3ea?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x47c3ea?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x437db6;}}class e extends _0x20b168{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4055fd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2281c3;for(const _0x2c075f in _0x4055fd){const _0x516b34=_0x2c075f,_0x256695=_0x4055fd[_0x516b34];if('uploadcareLicenseKeyValid'==_0x256695||'uploadcareLicenseKeyInvalid'==_0x256695||'uploadcareLicenseKeyExpired'==_0x256695||'uploadcareLicenseKeyDomainLimit'==_0x256695||'uploadcareLicenseKeyNotAllowed'==_0x256695||'uploadcareLicenseKeyEvaluationLimit'==_0x256695||'uploadcareLicenseKeyTrialLimit'==_0x256695||'uploadcareLicenseKeyUsageLimit'==_0x256695){delete _0x4055fd[_0x516b34],_0x2281c3=_0x256695,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2281c3&&_0x4055fd['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2281c3&&_0x4055fd['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2281c3&&_0x4055fd['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2281c3&&_0x4055fd['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2281c3&&_0x4055fd['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2281c3&&_0x4055fd['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2281c3&&_0x4055fd['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x21c1e2}=this,_0x414eba=_0x21c1e2['commands']['get']('uploadcare');if(!_0x414eba)return;const _0x4ccf24=this['_normalizeConfigSourceList'](_0x21c1e2['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2d0ce2,_0x244303)=>{const _0x42bb39=this['_getIntegrationKey'](_0x244303['type']);return _0x2d0ce2[_0x42bb39]||(_0x2d0ce2[_0x42bb39]=[]),_0x2d0ce2[_0x42bb39]['push'](_0x244303),_0x2d0ce2;},{});_0x21c1e2['plugins']['has']('ImageInsertUI')&&_0x21c1e2['commands']['get']('uploadcare')&&Object['entries'](_0x4ccf24)['forEach'](([_0x5c6436,_0x1dc6d4])=>{_0x21c1e2['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5c6436,'observable':()=>_0x414eba,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1dc6d4),'formViewCreator':()=>this['_createDropdownButtons'](_0x1dc6d4),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1dc6d4),'override':'assetManager'!==_0x5c6436});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x42eac){const {locale:_0x3dc5e0}=this['editor'];return _0x42eac['map'](_0x49a2b9=>{const _0x3a7993=_(_0x3dc5e0,_0x49a2b9,'Insert');switch(_0x49a2b9){case i['Local']:return{'icon':_0x39e20e,'type':i['Local'],..._0x3a7993};case i['URL']:return{'icon':_0x1358ff,'type':i['URL'],..._0x3a7993};case i['Dropbox']:return{'icon':_0x10c1a0,'type':i['Dropbox'],..._0x3a7993};case i['Facebook']:return{'icon':_0x586eee,'type':i['Facebook'],..._0x3a7993};case i['GDrive']:return{'icon':_0x402262,'type':i['GDrive'],..._0x3a7993};case i['GPhotos']:return{'icon':_0x216f1c,'type':i['GPhotos'],..._0x3a7993};case i['OneDrive']:return{'icon':_0x219a0b,'type':i['OneDrive'],..._0x3a7993};}});}['_getIntegrationKey'](_0xcac3af){switch(_0xcac3af){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x11244a,_0x524e56){const _0x56d333=this['editor'],_0x4c2c79=new _0x11244a(_0x56d333['locale']),_0xccd3e7=_0x56d333['commands']['get']('uploadcare');return _0x4c2c79['bind']('isEnabled')['to'](_0xccd3e7),_0x4c2c79['on']('execute',()=>{_0xccd3e7['execute'](_0x524e56);}),_0x4c2c79;}['_createToolbarButton'](_0x1ca16d){const {locale:_0x4ed110}=this['editor'],_0x4ce83d=this['editor']['plugins']['get']('ImageInsertUI'),_0x269e29=_0x1ca16d[0x0],_0x3c1089=this['_createButton'](_0x4ad196,_0x269e29['type']);return _0x3c1089['icon']=_0x269e29['icon'],_0x3c1089['bind']('label')['to'](_0x4ce83d,'isImageSelected',_0x232aa4=>_(_0x4ed110,_0x269e29['type'],_0x232aa4?'Replace':'Insert')['text']),_0x3c1089['tooltip']=!0x0,_0x3c1089;}['_createDropdownButtons'](_0x2ef297){const {locale:_0x15e573}=this['editor'],_0x5d63cc=this['editor']['plugins']['get']('ImageInsertUI');return _0x2ef297['map'](_0x95c370=>{const _0x2091c6=this['_createButton'](_0x4ad196,_0x95c370['type']);return _0x2091c6['withText']=!0x0,_0x2091c6['icon']=_0x95c370['icon'],_0x2091c6['bind']('label')['to'](_0x5d63cc,'isImageSelected',_0x4456bd=>_(_0x15e573,_0x95c370['type'],_0x4456bd?'Replace':'Insert')['text']),_0x2091c6;});}['_createMenuBarButtons'](_0xf83eab){return _0xf83eab['map'](_0x315844=>{const _0xa69f7e=this['_createButton'](_0x5806a7,_0x315844['type']);return _0xa69f7e['icon']=_0x315844['icon'],_0xa69f7e['label']=_0x315844['shortText'],_0xa69f7e;});}}class F extends _0x478f1f{['focusTracker'];['focusCycler'];constructor(_0x3b4d5f){super(_0x3b4d5f),this['focusTracker']=new _0x33060f(),this['focusCycler']=new _0x2a7f8c({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x1dd3da,_0x5dbe24){super(_0x1dd3da),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x5dbe24}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x52de94,_0x17b6b0){const _0x524c5d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x113d84=>_0x113d84<=_0x17b6b0)['map'](_0x24eba7=>_0x52de94['replace'](/\/$/,'')+'/-/resize/'+_0x24eba7+'x/\x20'+_0x24eba7+'w');return{'imageFallbackUrl':_0x52de94,'imageSources':[{'srcset':_0x524c5d['join'](',\x20'),'sizes':'(max-width:\x20'+_0x17b6b0+'px)\x20100vw,\x20'+_0x17b6b0+'px','type':'image/webp'}]};}function C(_0x5082ba,_0x25cd0c,_0x556f04){const _0x28d913=_0x5082ba['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x28d913?parseInt(_0x28d913[0x1],0xa):_0x25cd0c,'height':_0x28d913?parseInt(_0x28d913[0x2],0xa):_0x556f04};}function p(_0x5debf4,_0x47e020){const _0x40a0ac=new(_0x6c2bc6())(),_0x1070a9=_0x5debf4['plugins']['get']('ImageUtils'),_0x46edfb=_0x5debf4['editing']['mapper']['toViewElement'](_0x47e020),_0x383c32=_0x1070a9['findViewImgElement'](_0x46edfb),_0x174c11=_0x5debf4['editing']['view']['domConverter']['viewToDom'](_0x383c32),_0x1a37a6=_0x47e020['getAttribute']('width'),_0x3c6656=_0x47e020['getAttribute']('height'),_0x5f3ad0='image-processing';_0x5debf4['editing']['view']['change'](_0x384f2f=>{_0x384f2f['addClass'](_0x5f3ad0,_0x46edfb),_0x384f2f['setStyle']('aspect-ratio',_0x1a37a6+'/'+_0x3c6656,_0x383c32);}),_0x40a0ac['listenTo'](_0x174c11,'load',()=>{_0x40a0ac['stopListening'](_0x174c11,'load'),_0x5debf4['editing']['view']['change'](_0x1f1a1e=>{_0x1f1a1e['removeClass'](_0x5f3ad0,_0x46edfb),_0x1f1a1e['removeStyle']('aspect-ratio',_0x383c32);});});}function G(_0x2ff1e2){if(Array['isArray'](_0x2ff1e2)){const _0xc1a947=_0x2ff1e2['map'](G);return _0x4b2591=>_0xc1a947['some'](_0x5dba71=>_0x5dba71(_0x4b2591));}if('origin'==_0x2ff1e2){const _0x5ebb8f=_0x5df829['window']['location']['origin'];return _0x4145cc=>new URL(_0x4145cc,_0x5df829['document']['baseURI'])['origin']==_0x5ebb8f;}return'function'==typeof _0x2ff1e2?_0x2ff1e2:_0x2ff1e2 instanceof RegExp?_0x4c4f3d=>!(!_0x4c4f3d['match'](_0x2ff1e2)&&!_0x4c4f3d['replace'](/^https?:\/\//,'')['match'](_0x2ff1e2)):()=>!0x1;}function S(_0x473e8d,_0x5c3367){return _0x588949(_0x473e8d['target'])['includes'](_0x5c3367);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x572926(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x57197c,_0x3c15d3,_0xebdc6e){super(),this['_editor']=_0x57197c,this['_editing']=_0x3c15d3,this['_dialog']=_0x57197c['plugins']['get'](_0x337386),this['_api']=_0x3c15d3['ctxElement']['getAPI'](),this['_type']=_0xebdc6e,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x54ab5d,model:_0x505c34}=this['_editor'],_0x63f572=_0x505c34['document']['selection']['getSelectedElement'](),_0x3f4326=_0x63f572&&(_0x63f572['is']('element','imageBlock')||_0x63f572['is']('element','imageInline'));this['_formView']=new x(_0x54ab5d,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x39e20e,'title':_(_0x54ab5d,this['_type'],_0x3f4326?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x17f53a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5f0ed0=>!S(_0x5f0ed0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3492a4}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x48d452=>{const _0x516c9b=_0x3492a4['length'];for(const _0x1e8323 of _0x3492a4){const _0x1f0508=_0x1e8323===_0x3492a4[_0x516c9b-0x1],{cdnUrl:_0x1cf88a,fileInfo:_0xed2382}=_0x1e8323;if(!_0x1cf88a||!_0xed2382)continue;const {width:_0x3abae3,height:_0x2047c4}=_0xed2382['imageInfo'],_0x35a23d=C(_0x1cf88a,_0x3abae3,_0x2047c4),_0x49bbd9=k(_0x1cf88a,_0x35a23d['width']),_0x361884={'id':_0xed2382['uuid'],'type':'image','attributes':{'imageDimension':_0x35a23d,..._0x49bbd9}};this['_insertAsset'](_0x361884,_0x1f0508,_0x48d452);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3df215=>{'idle'===_0x3df215['detail']['status']&&!_0x3df215['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2ebfec,_0x369634,_0xd13c7d){const _0xf751f8=this['_editor']['model']['document']['selection'],_0x5f3b08=_0xf751f8['getSelectedElement'](),_0x440bd1=!(!_0x5f3b08||!_0x5f3b08['is']('element','imageInline'));_0xd13c7d['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2ebfec,_0x440bd1),_0x369634||_0xd13c7d['setSelection'](_0xf751f8['getLastPosition']());}['_insertImage'](_0x4c2a89,_0x4ef898){const _0x209eb5=this['_editor'],{imageDimension:_0x101b62,imageFallbackUrl:_0x545eef,imageSources:_0x5300bb}=_0x4c2a89['attributes'];_0x209eb5['execute']('insertImage',{'imageType':_0x4ef898?'imageInline':null,'source':{'uploadcareImageId':_0x4c2a89['id'],'src':_0x545eef,'sources':_0x5300bb,..._0x101b62}});}}class w extends _0x15b2e5{['_editing'];['_controller']=null;static get['requires'](){return[_0x337386,o];}constructor(_0x2a4a3a){super(_0x2a4a3a),this['_editing']=_0x2a4a3a['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4fe782){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x4fe782);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x198f1d,publicKey:_0x388a63,signal:_0x5570bf,onProgress:_0x11f966}){return _0x19036c(_0x198f1d,{'publicKey':_0x388a63,'store':'auto','signal':_0x5570bf,'onProgress':_0x11f966});}static['getInfo'](_0x4090db,_0x16667e){return _0x287068(_0x4090db,_0x16667e);}}class f extends _0x20b168{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x298334,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x303ce5=this['editor'];if(!!!_0x303ce5['config']['get']('uploadcare'))return;_0x303ce5['plugins']['get'](_0x298334)['createUploadAdapter']=_0x3fc444=>new A(_0x3fc444,_0x303ce5),_0x303ce5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1a5089,{imageElement:_0x2b192c,data:_0x5afd97})=>{_0x303ce5['model']['change'](_0x377490=>{_0x377490['setAttribute']('uploadcareImageId',_0x5afd97['uploadcareImageId'],_0x2b192c);});});}}class A{['loader'];['editor'];['controller'];constructor(_0xdf849d,_0x7cac35){this['loader']=_0xdf849d,this['editor']=_0x7cac35,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4baa62=this['editor']['config']['get']('uploadcare.pubkey'),_0x411f88=await this['loader']['file'];return j['upload']({'file':_0x411f88,'publicKey':_0x4baa62,'signal':this['controller']['signal'],'onProgress':_0x24468b=>{_0x24468b&&_0x24468b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x24468b['value']);}})['then'](async _0x4cd04e=>{const {imageFallbackUrl:_0x39683e,imageSources:_0x47251d}=k(_0x4cd04e['cdnUrl'],_0x4cd04e['imageInfo']['width']);return{'uploadcareImageId':_0x4cd04e['uuid'],'default':_0x39683e,'sources':_0x47251d};})['catch'](()=>{const _0x16a780=t('Cannot\x20upload\x20file:')+('\x20'+_0x411f88['name']+'.');return Promise['reject'](_0x16a780);});}['abort'](){this['controller']['abort']();}}class o extends _0x20b168{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x337386];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x567e1f){super(_0x567e1f),this['ucContextId']=_0x4268c0();}['init'](){const _0x53f441=this['editor'];_0x53f441['commands']['add']('uploadcare',new w(_0x53f441));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x574598=_0x5df829['document']['querySelector']('input[uploadcare-file-input]');_0x574598&&_0x574598['remove']();}),async function(_0x40703b){const _0x3661ab=_0xe3b853([0x33,0x72,0x79,0x56,0x62,0x7a,0x75,0x42,0x34,0x49,0x45,0x73,0x66,0x4b,0x48,0x30,0x6e,0x55,0x6d,0x44,0x58,0x59,0x39,0x52,0x6c,0x5a,0x51,0x61,0x46,0x36,0x47,0x4c,0x67,0x37,0x63,0x54,0x41,0x69,0x57,0x35,0x4a,0x77,0x74,0x53,0x38,0x32,0x43,0x76,0x71,0x4e,0x70,0x4d,0x4f,0x78,0x68,0x65,0x6a,0x31,0x50,0x64,0x6b,0x6f]),_0x4d0350=0x4b9707c4,_0x3983e9=0x4b906be4^_0x4d0350,_0xa3cbdb=window[_0xe3b853([0x44,0x61,0x74,0x65])][_0xe3b853([0x6e,0x6f,0x77])](),_0x33c56b=_0x40703b[_0xe3b853([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a01c0=new window[(_0xe3b853([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x327343=>{_0x33c56b[_0xe3b853([0x6f,0x6e,0x63,0x65])](_0xe3b853([0x72,0x65,0x61,0x64,0x79]),_0x327343);}),_0x1bad00={[_0xe3b853([0x6b,0x74,0x79])]:_0xe3b853([0x45,0x43]),[_0xe3b853([0x75,0x73,0x65])]:_0xe3b853([0x73,0x69,0x67]),[_0xe3b853([0x63,0x72,0x76])]:_0xe3b853([0x50,0x2d,0x32,0x35,0x36]),[_0xe3b853([0x78])]:_0xe3b853([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0xe3b853([0x79])]:_0xe3b853([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0xe3b853([0x61,0x6c,0x67])]:_0xe3b853([0x45,0x53,0x32,0x35,0x36])},_0x482431=_0x33c56b[_0xe3b853([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe3b853([0x67,0x65,0x74])](_0xe3b853([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5a2b08(){let _0x2657f3,_0x198730=null,_0x326670=null;try{if(_0x482431==_0xe3b853([0x47,0x50,0x4c]))return _0xe3b853([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2657f3=_0x527e84(),!_0x2657f3)return _0xe3b853([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2657f3[_0xe3b853([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x326670=_0x408b14(_0x2657f3[_0xe3b853([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2657f3[_0xe3b853([0x6a,0x74,0x69])])),await _0x1ea5cc()?_0x48a84b()?_0xf99005()?_0xe3b853([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x460da3()?(_0x2657f3[_0xe3b853([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe3b853([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x198730=_0x23fa20(_0xe3b853([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2657f3[_0xe3b853([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe3b853([0x74,0x72,0x69,0x61,0x6c])&&(_0x198730=_0x23fa20(_0xe3b853([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x359b45()):_0xe3b853([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe3b853([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe3b853([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xe3b853([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xf99005(){const _0x2f807d=[_0xe3b853([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe3b853([0x74,0x72,0x69,0x61,0x6c])][_0xe3b853([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2657f3[_0xe3b853([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa3cbdb/0x3e8:0xe10*_0x3983e9;return _0x2657f3[_0xe3b853([0x65,0x78,0x70])]<_0x2f807d;}function _0x48a84b(){const _0x13a390=_0x2657f3[_0xe3b853([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x13a390&&(!!_0x13a390[_0xe3b853([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe3b853([0x2a]))||!!_0x13a390[_0xe3b853([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe3b853([0x55,0x50,0x4c,0x43])));}function _0x460da3(){const _0x7657b5=_0x2657f3[_0xe3b853([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x7657b5||0x0==_0x7657b5[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3f9e59}=new URL(window[_0xe3b853([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x7657b5[_0xe3b853([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f9e59))return!0x0;const _0x35a9a5=_0x3f9e59[_0xe3b853([0x73,0x70,0x6c,0x69,0x74])](_0xe3b853([0x2e]));return _0x7657b5[_0xe3b853([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x547acf=>_0x547acf[_0xe3b853([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe3b853([0x2a])))[_0xe3b853([0x6d,0x61,0x70])](_0x14200c=>_0x14200c[_0xe3b853([0x73,0x70,0x6c,0x69,0x74])](_0xe3b853([0x2e])))[_0xe3b853([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e8358=>_0x5e8358[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x35a9a5[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe3b853([0x6d,0x61,0x70])](_0x3acf90=>Array(_0x35a9a5[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3acf90[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe3b853([0x66,0x69,0x6c,0x6c])](_0x3acf90[0x0]===_0xe3b853([0x2a])?_0xe3b853([0x2a]):'')[_0xe3b853([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3acf90))[_0xe3b853([0x73,0x6f,0x6d,0x65])](_0x5cf26b=>_0x35a9a5[_0xe3b853([0x65,0x76,0x65,0x72,0x79])]((_0x2a41ed,_0x58e2d4)=>_0x5cf26b[_0x58e2d4]===_0x2a41ed||_0x5cf26b[_0x58e2d4]===_0xe3b853([0x2a])));}function _0x359b45(){return _0x198730&&_0x326670?new window[(_0xe3b853([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a508b,_0x1c0278)=>{_0x198730[_0xe3b853([0x74,0x68,0x65,0x6e])](_0x2a508b,_0x1c0278),_0x326670[_0xe3b853([0x74,0x68,0x65,0x6e])](_0x1f2dd0=>{_0x1f2dd0!=_0xe3b853([0x56,0x61,0x6c,0x69,0x64])&&_0x2a508b(_0x1f2dd0);},_0x1c0278);}):_0x198730||_0x326670||_0xe3b853([0x56,0x61,0x6c,0x69,0x64]);}}function _0x408b14(_0x20e746,_0x2df988){return new window[(_0xe3b853([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x349ed1=>{if(_0x389071())return _0x349ed1(_0xe3b853([0x56,0x61,0x6c,0x69,0x64]));_0x103d3f(),_0x33c56b[_0xe3b853([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe3b853([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19f2db=!0x1;const _0x31c071=_0x4268c0();function _0x5f1315(_0x54cc29){return!!_0x54cc29&&(typeof _0x54cc29===_0xe3b853([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x54cc29===_0xe3b853([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x54cc29[_0xe3b853([0x74,0x68,0x65,0x6e])]===_0xe3b853([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x54cc29[_0xe3b853([0x63,0x61,0x74,0x63,0x68])]===_0xe3b853([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x51ab16(_0x7f215a){_0x4fe6f8(_0x7f215a)[_0xe3b853([0x74,0x68,0x65,0x6e])](_0x30f4c8=>{if(!_0x30f4c8||_0x30f4c8[_0xe3b853([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe3b853([0x6f,0x6b]))return _0xe3b853([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5299f7(_0xdd86c1(_0x31c071+_0x2df988))!=_0x30f4c8[_0xe3b853([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe3b853([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe3b853([0x56,0x61,0x6c,0x69,0x64]);})[_0xe3b853([0x74,0x68,0x65,0x6e])](_0x32006e=>(_0x39905a(),_0x32006e),()=>{const _0x5a5cd2=_0x3db615();return null==_0x5a5cd2?(_0x39905a(),_0xe3b853([0x56,0x61,0x6c,0x69,0x64])):_0xe3b853(_0xa3cbdb-_0x5a5cd2>(0x6f9b83c4^_0x4d0350)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe3b853([0x74,0x68,0x65,0x6e])](_0x349ed1)[_0xe3b853([0x63,0x61,0x74,0x63,0x68])](()=>{_0x349ed1(_0xe3b853([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1c806c=0x4ba1e944^_0x4d0350;function _0x39905a(){const _0x54153a=_0xe3b853([0x6c,0x6c,0x63,0x74,0x2d])+_0x5299f7(_0xdd86c1(_0x20e746)),_0xed82d6=_0x5ee186(_0x5299f7(window[_0xe3b853([0x4d,0x61,0x74,0x68])][_0xe3b853([0x63,0x65,0x69,0x6c])](_0xa3cbdb/_0x1c806c)));window[_0xe3b853([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe3b853([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54153a,_0xed82d6);}function _0x3db615(){const _0xc2ee8b=_0xe3b853([0x6c,0x6c,0x63,0x74,0x2d])+_0x5299f7(_0xdd86c1(_0x20e746)),_0x1d346a=window[_0xe3b853([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe3b853([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc2ee8b);return _0x1d346a?window[_0xe3b853([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ee186(_0x1d346a),0x10)*_0x1c806c:null;}function _0x4fe6f8(_0x486fb8){return new window[(_0xe3b853([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e8f9f,_0x16e67f)=>{_0x486fb8[_0xe3b853([0x74,0x68,0x65,0x6e])](_0x3e8f9f,_0x16e67f),window[_0xe3b853([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x16e67f,0x4b96d304^_0x4d0350);});}}_0x33c56b[_0xe3b853([0x6f,0x6e])](_0xe3b853([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5276da,_0x5ea1d2)=>{if(_0x5ea1d2[0x0]!=_0x20e746)return _0x349ed1(_0xe3b853([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5ea1d2[0x1]={..._0x5ea1d2[0x1],[_0xe3b853([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31c071};},{[_0xe3b853([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe3b853([0x68,0x69,0x67,0x68])}),_0x33c56b[_0xe3b853([0x6f,0x6e])](_0xe3b853([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc3ae02=>{_0x5f1315(_0xc3ae02[_0xe3b853([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19f2db=!0x0,_0x51ab16(_0xc3ae02[_0xe3b853([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe3b853([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe3b853([0x6c,0x6f,0x77])}),_0x5a01c0[_0xe3b853([0x74,0x68,0x65,0x6e])](()=>{_0x19f2db||_0x349ed1(_0xe3b853([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x389071(){return _0x33c56b[_0xe3b853([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe3b853([0x76,0x69,0x65,0x77])][_0xe3b853([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe3b853([0x61,0x75,0x74,0x6f]);}function _0x103d3f(){_0x33c56b[_0xe3b853([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe3b853([0x76,0x69,0x65,0x77])][_0xe3b853([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe3b853([0x61,0x75,0x74,0x6f]);}}function _0x23fa20(_0x365c5a){const _0xa58b24=[new window[(_0xe3b853([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x393a1f=>setTimeout(_0x393a1f,0x4b9e3908^_0x4d0350)),_0x5a01c0[_0xe3b853([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe3b853([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e08f7=>{let _0xb8ea9b=0x0;_0x33c56b[_0xe3b853([0x6d,0x6f,0x64,0x65,0x6c])][_0xe3b853([0x6f,0x6e])](_0xe3b853([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a6c78,_0x52d579)=>{_0x52d579[0x0][_0xe3b853([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xb8ea9b++,_0xb8ea9b==(0x4b97063c^_0x4d0350)&&(_0x4e08f7(),_0x1a6c78[_0xe3b853([0x6f,0x66,0x66])]());});}))];return window[_0xe3b853([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe3b853([0x72,0x61,0x63,0x65])](_0xa58b24)[_0xe3b853([0x74,0x68,0x65,0x6e])](()=>_0x365c5a);}async function _0xc63657(){await _0x5a01c0,_0x33c56b[_0xe3b853([0x6d,0x6f,0x64,0x65,0x6c])][_0xe3b853([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x144341,_0x33c56b[_0xe3b853([0x6d,0x6f,0x64,0x65,0x6c])][_0xe3b853([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x144341,_0x33c56b[_0xe3b853([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe3b853([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x280490(_0x18cb84){const _0x68d442=_0x444a95();_0x33c56b[_0x68d442]=_0xe3b853([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x18cb84,_0x18cb84!=_0xe3b853([0x56,0x61,0x6c,0x69,0x64])&&_0xc63657();}function _0x444a95(){const _0x1a1298=window[_0xe3b853([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe3b853([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe3b853([0x6e,0x6f,0x77])]())[_0xe3b853([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe3b853([0x2e]),'');let _0x3efd91=_0xe3b853([0x72]);for(let _0x6a3741=0x0;_0x6a3741<_0x1a1298[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x6a3741+=0x2){let _0x94ae21=window[_0xe3b853([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a1298[_0xe3b853([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6a3741,_0x6a3741+0x2));_0x94ae21>=_0x3661ab[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x94ae21-=_0x3661ab[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3efd91+=_0x3661ab[_0x94ae21];}return _0x3efd91;}function _0x527e84(){const _0x359d95=_0x482431[_0xe3b853([0x73,0x70,0x6c,0x69,0x74])](_0xe3b853([0x2e]));if(0x3!=_0x359d95[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x25c56f(_0x359d95[0x1]);function _0x25c56f(_0x1290fb){const _0x5000dd=_0x9b36b6(_0x1290fb);return _0x5000dd&&_0x352888()?_0x5000dd:null;function _0x352888(){const _0x54bd81=_0x5000dd[_0xe3b853([0x6a,0x74,0x69])],_0x2f1778=window[_0xe3b853([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54bd81[_0xe3b853([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54bd81[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x126c6d={..._0x5000dd,[_0xe3b853([0x6a,0x74,0x69])]:_0x54bd81[_0xe3b853([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x54bd81[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x126c6d[_0xe3b853([0x76,0x63])],_0xdd86c1(_0x126c6d)==_0x2f1778;}}}async function _0x1ea5cc(){let _0x4035bb=!0x0;try{const _0x301957=_0x482431[_0xe3b853([0x73,0x70,0x6c,0x69,0x74])](_0xe3b853([0x2e])),[_0x2fc5a0,_0x24a1c5,_0xef43c6]=_0x301957;return _0x116034(_0x2fc5a0),await _0x36037d(_0x2fc5a0,_0x24a1c5,_0xef43c6),_0x4035bb;}catch{return!0x1;}function _0x116034(_0x1bb8ce){const _0x19749c=_0x9b36b6(_0x1bb8ce);_0x19749c&&_0x19749c[_0xe3b853([0x61,0x6c,0x67])]==_0xe3b853([0x45,0x53,0x32,0x35,0x36])||(_0x4035bb=!0x1);}async function _0x36037d(_0x59d47a,_0x14cdcf,_0x2676cd){const _0x3e0e22=window[_0xe3b853([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe3b853([0x66,0x72,0x6f,0x6d])](_0x1152ca(_0x2676cd),_0x161223=>_0x161223[_0xe3b853([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ea59e=new window[(_0xe3b853([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe3b853([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59d47a+_0xe3b853([0x2e])+_0x14cdcf),_0x4cceca=window[_0xe3b853([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe3b853([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4cceca)return;const _0x949426=await _0x4cceca[_0xe3b853([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe3b853([0x6a,0x77,0x6b]),_0x1bad00,{[_0xe3b853([0x6e,0x61,0x6d,0x65])]:_0xe3b853([0x45,0x43,0x44,0x53,0x41]),[_0xe3b853([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe3b853([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe3b853([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4cceca[_0xe3b853([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe3b853([0x6e,0x61,0x6d,0x65])]:_0xe3b853([0x45,0x43,0x44,0x53,0x41]),[_0xe3b853([0x68,0x61,0x73,0x68])]:{[_0xe3b853([0x6e,0x61,0x6d,0x65])]:_0xe3b853([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x949426,_0x3e0e22,_0x5ea59e)||(_0x4035bb=!0x1);}}function _0x9b36b6(_0x478dee){return _0x478dee[_0xe3b853([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe3b853([0x65,0x79]))?JSON[_0xe3b853([0x70,0x61,0x72,0x73,0x65])](_0x1152ca(_0x478dee)):null;}function _0x1152ca(_0x54105c){return window[_0xe3b853([0x61,0x74,0x6f,0x62])](_0x54105c[_0xe3b853([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe3b853([0x2b]))[_0xe3b853([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe3b853([0x2f])));}function _0xdd86c1(_0x13dbec){let _0xb44547=0x1505;function _0x5f4bdb(_0x4e50a4){for(let _0x36b383=0x0;_0x36b383<_0x4e50a4[_0xe3b853([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36b383++){const _0x5cb2cb=_0x4e50a4[_0xe3b853([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x36b383);_0xb44547=(_0xb44547<<0x5)+_0xb44547+_0x5cb2cb,_0xb44547&=_0xb44547;}}function _0x497200(_0xb04178){Array[_0xe3b853([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb04178)?_0xb04178[_0xe3b853([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x497200):_0xb04178&&typeof _0xb04178==_0xe3b853([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe3b853([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb04178)[_0xe3b853([0x73,0x6f,0x72,0x74])]()[_0xe3b853([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1c7ebf,_0x58de55])=>{_0x5f4bdb(_0x1c7ebf),_0x497200(_0x58de55);}):_0x5f4bdb(window[_0xe3b853([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb04178));}return _0x497200(_0x13dbec),_0xb44547>>>0x0;}function _0x5299f7(_0x314e7d){return _0x314e7d[_0xe3b853([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe3b853([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe3b853([0x30]));}function _0x5ee186(_0x153a26){return _0x153a26[_0xe3b853([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe3b853([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe3b853([0x6a,0x6f,0x69,0x6e])]('');}function _0x144341(){}function _0xe3b853(_0x2665d2){return _0x2665d2['map'](_0x443158=>String['fromCharCode'](_0x443158))['join']('');}_0x280490(await _0x5a2b08());}(this);}['_initSchema'](){const _0x209905=this['editor']['model']['schema'];_0x209905['isRegistered']('imageBlock')&&_0x209905['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x209905['isRegistered']('imageInline')&&_0x209905['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x59bac8=this['editor'];_0x59bac8['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x59bac8['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x327579=>_0x327579['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4601aa=_0x59bac8['commands']['get']('replaceImageSource');_0x4601aa&&this['listenTo'](_0x4601aa,'cleanupImage',(_0x346a9b,[_0xfe829b,_0x1838b])=>{_0xfe829b['removeAttribute']('uploadcareImageId',_0x1838b);});}['_initConfig'](){const _0x5ca641=this['editor']['config']['get']('uploadcare.uploader')||{},_0x170b50=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4ddb5a(_0x5df829['document'],'uc-config',{..._0x5ca641,'pubkey':_0x170b50,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x166ea3=>{if('closeMax'==_0x166ea3)return'#uc-icon-arrow-down';},_0x5df829['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4ddb5a(_0x5df829['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5df829['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x56ec99=this['editor']['commands']['get']('insertImage');_0x56ec99&&this['listenTo'](_0x56ec99,'execute',()=>{const _0x553c4d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x553c4d&&_0x553c4d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x553c4d);});});const _0x1eb5c4=this['editor']['commands']['get']('uploadcareImageReplace');_0x1eb5c4&&this['listenTo'](_0x1eb5c4,'execute',()=>{const _0x392fff=this['editor']['model']['document']['selection']['getSelectedElement']();_0x392fff&&_0x392fff['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x392fff);});});}}class tt extends _0x20b168{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54a8fb){super(_0x54a8fb),_0x54a8fb['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x1d805e['defineComponents'](_0x1d805e);}}class ii extends _0x478f1f{constructor(_0x41a96e){super(_0x41a96e);const t=_0x41a96e['t'],_0x269ed3=this['bindTemplate'],_0x406732=new _0x271914();_0x406732['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x406732,{'text':_0x269ed3['to']('imageUploadProgress',_0x272055=>t('Loading\x20image...')+'\x20('+(_0x272055||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x478f1f{constructor(_0x554354){super(_0x554354);const t=_0x554354['t'];this['set']('errorType',null);const _0x2f448c=new _0x4ad196(_0x554354);_0x2f448c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2f448c['withText']=!0x0,_0x2f448c['class']='ck-button-action',_0x2f448c['on']('execute',()=>{this['fire']('retry');}),_0x2f448c['bind']('isVisible')['to'](this,'errorType',_0x377e6c=>'NotFound'!==_0x377e6c);const _0x2ccce3=new _0x300c79();_0x2ccce3['content']=_0x47e393,_0x2ccce3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x636e97=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x2ccce3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x636e97['to']('errorType',_0x52c497=>t('NotFound'!==_0x52c497?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2f448c]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x478f1f{constructor(_0x370b05,_0x4ec99e){super(_0x370b05);const _0x50c564=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4ec99e,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x50c564['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1e9dd3,_0x266eb9,_0x617830){super(_0x1e9dd3),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1e9dd3),this['_errorView']=new ti(_0x1e9dd3),this['_editingView']=new ei(_0x1e9dd3,_0x617830),this['_focusableView']=new _0x478f1f(_0x1e9dd3),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x266eb9),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x1dae8b=>{this['_addUploadcareImageEditorListeners'](_0x1dae8b);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x5724a2,_0x9489e5){const _0x1762bf='uc-cloud-image-editor',_0xd4d075=_0x5724a2['querySelector'](_0x1762bf);if(_0xd4d075)return _0x9489e5(_0xd4d075);const _0x39b72e=new MutationObserver(_0xa767fe=>{const _0xd7b386=_0xa767fe['filter'](_0x3234e8=>_0x3234e8['target']===_0x5724a2&&_0x3234e8['addedNodes']['length']>0x0&&_0x3234e8['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1762bf);_0xd7b386['length']&&(_0x39b72e['disconnect'](),_0x9489e5(_0xd7b386[0x0]['addedNodes'][0x0]));});_0x39b72e['observe'](_0x5724a2,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x132732){_0x132732['addEventListener']('apply',_0x447a23=>{this['fire']('apply',{'imageSrc':_0x447a23['detail']['cdnUrl']});}),_0x132732['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x572926(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x200147,_0x28ea04,_0xaf3058){super(),this['_editor']=_0x200147,this['_dialog']=_0x28ea04,this['_imageElement']=_0xaf3058,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x279fb5=this['_imageElement'],_0x10e5ba=_0x279fb5['getAttribute']('uploadcareImageId'),_0x3f0f1b=_0x279fb5['getAttribute']('src');if(_0x10e5ba)await this['_loadImageInfo'](_0x10e5ba,_0x3f0f1b);else{if(this['_imageCache']['has'](_0x3f0f1b)){const _0x3829f4=this['_imageCache']['get'](_0x3f0f1b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3829f4['url'],this['imageDimension']=_0x3829f4['dimension'],this['imageId']=_0x3829f4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x35ac37}=this['_editor'],t=_0x35ac37['t'],_0x5c26ac=new X(_0x35ac37,this['imageStatus'],this['_attributes']);_0x5c26ac['bind']('status')['to'](this,'imageStatus'),_0x5c26ac['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5c26ac['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5c26ac['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5c26ac,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x246a0e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5c26ac,'position':_0x17f53a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5c26ac['focus']();},'onHide':()=>{_0x5c26ac['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1af56=>!S(_0x1af56,_0x5c26ac['element'])}});}['_loadImageInfo'](_0x964ab4,_0x261d1b){return j['getInfo'](_0x964ab4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x17e033=>{const {width:_0x42cce8,height:_0x3b873b}=_0x17e033['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x261d1b,this['imageDimension']={'width':_0x42cce8,'height':_0x3b873b},this['imageId']=_0x964ab4;})['catch'](_0x4f5945=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4f5945['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x161b4c,_0x5042e2){return this['_getImageAsFile'](_0x161b4c)['then'](_0x4edbd2=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5042e2['signal'],'file':_0x4edbd2,'onProgress':_0x5f1e64=>{_0x5f1e64&&_0x5f1e64['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5f1e64['value']));}}))['then'](_0x34837d=>{const {width:_0x1dde65,height:_0x224ec3}=_0x34837d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34837d['cdnUrl'],this['imageDimension']={'width':_0x1dde65,'height':_0x224ec3},this['imageId']=_0x34837d['uuid'],this['imageUploadProgress']=null;const _0x2665f2=_0x161b4c['getAttribute']('src');this['_imageCache']['set'](_0x2665f2,{'id':_0x34837d['uuid'],'url':_0x34837d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3eac01=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3eac01['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3d0f2f,_0x16756b){_0x3d0f2f['on']('apply',(_0x5cd08f,_0x3f200c)=>{this['_replaceImage'](_0x16756b,_0x3f200c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3d0f2f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3d0f2f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xe00d9e,_0x222792,_0xb6c53f){const _0x48fd09=this['_editor'],{width:_0x550ebb,height:_0x54d776}=C(_0x222792,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x50d43e,imageSources:_0x5d650b}=k(_0x222792,_0x550ebb);_0x48fd09['model']['change'](_0x250209=>{if('$graveyard'===_0xe00d9e['root']['rootName']){_0x48fd09['execute']('insertImage',{'imageType':_0xe00d9e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xe00d9e['getAttributes']()),'uploadcareImageId':_0xb6c53f,'src':_0x50d43e,'sources':_0x5d650b,'width':_0x550ebb,'height':_0x54d776}});const _0x35ea99=_0xe00d9e['getChildren']();_0xe00d9e=_0x48fd09['model']['document']['selection']['getSelectedElement']();for(const _0x364c7b of _0x35ea99)_0x250209['append'](_0x250209['cloneElement'](_0x364c7b),_0xe00d9e);}else _0x250209['setSelection'](_0xe00d9e,'on'),_0x48fd09['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xe00d9e['getAttributes']()),'uploadcareImageId':_0xb6c53f,'src':_0x50d43e,'sources':_0x5d650b,'width':_0x550ebb,'height':_0x54d776},_0xe00d9e);_0x250209['setSelection'](_0xe00d9e,'on');});}async['_getImageAsFile'](_0x3157dc){const _0xc8759b=_0x5df829['window'],_0x12b721=_0x5df829['document']['location']['href'],_0x5409eb=new _0xc8759b['URL'](_0x3157dc['getAttribute']('src'),_0x12b721);if('data:'===_0x5409eb['protocol']){const _0x433c48=_0x5409eb['href']['split'](','),_0x530cf1=_0x433c48[0x0]['match'](/:(.*?);/)[0x1],_0x27113e=_0x530cf1['split']('/')[0x1],_0x2c8336=_0xc8759b['atob'](_0x433c48[_0x433c48['length']-0x1]);let _0x18a677=_0x2c8336['length'];const _0xa9a59f=new _0xc8759b['Uint8Array'](_0x18a677);for(;_0x18a677--;)_0xa9a59f[_0x18a677]=_0x2c8336['charCodeAt'](_0x18a677);return new _0xc8759b['File']([_0xa9a59f],'image.'+_0x27113e,{'type':_0x530cf1});}const _0x28dece=_0x5409eb['href']['split']('/'),_0x3a0466=_0x28dece[_0x28dece['length']-0x1],_0x1bef4d=_0x3a0466['split']('.')[0x1];return _0xc8759b['fetch'](_0x5409eb['href'])['then'](_0x11207d=>_0x11207d['clone']()['blob']())['then'](_0x26f757=>new _0xc8759b['File']([_0x26f757],_0x3a0466,{'type':'image/'+_0x1bef4d}));}}class O extends _0x15b2e5{['imageEditController'];static get['requires'](){return[_0x337386];}['_isEditable'];constructor(_0x411f12){super(_0x411f12),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xec2b64){const _0x5ba9cc=G(_0xec2b64);return _0x348a66=>!(!_0x348a66||!_0x348a66['is']('element','imageBlock')&&!_0x348a66['is']('element','imageInline'))&&(!!_0x348a66['hasAttribute']('uploadcareImageId')||!!_0x348a66['hasAttribute']('src')&&_0x5ba9cc(_0x348a66['getAttribute']('src')));}(_0x411f12['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x301d87=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x301d87);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x514d42=this['editor']['model']['document']['selection']['getSelectedElement']();_0x514d42&&(_0x514d42['is']('element','imageBlock')||_0x514d42['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x337386),_0x514d42),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x15b2e5{['refresh'](){const _0x28e215=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x28e215&&(_0x28e215['is']('element','imageBlock')||_0x28e215['is']('element','imageInline')));}['execute'](_0x174781){const _0x365327=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x55bdcf=>{_0x55bdcf['setAttributes'](_0x174781,_0x365327),_0x55bdcf['removeAttribute']('srcset',_0x365327),_0x55bdcf['removeAttribute']('sizes',_0x365327);});}}class m extends _0x20b168{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x444149,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3c9068}=this;_0x3c9068['commands']['add']('uploadcareImageEdit',new O(_0x3c9068)),_0x3c9068['commands']['add']('uploadcareImageReplace',new R(_0x3c9068));}}class g extends _0x20b168{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x335a71=this['editor'];_0x335a71['ui']['componentFactory']['add']('uploadcareImageEdit',_0x37832a=>{const _0x42cdcf=_0x335a71['commands']['get']('uploadcareImageEdit'),_0x2686a9=new _0x4ad196(_0x37832a),t=_0x37832a['t'];return _0x2686a9['set']({'icon':_0x246a0e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2686a9['bind']('isEnabled')['to'](_0x42cdcf),_0x2686a9['bind']('isOn')['to'](_0x42cdcf,'isActive'),this['listenTo'](_0x2686a9,'execute',()=>{_0x335a71['execute']('uploadcareImageEdit'),_0x335a71['editing']['view']['focus']();}),_0x2686a9;}),this['_initConfig']();}['_initConfig'](){const _0x3c078f=_0x4ddb5a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3c078f),this['listenTo'](this['editor'],'destroy',()=>{_0x3c078f['remove']();});}}class et extends _0x20b168{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20250629.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20250629.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250629.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250629.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250629.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250629.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250629.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250629.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250629.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.16.3-alpha.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xd02446=_0x1374;(function(_0x1aa859,_0xb7d8f9){const _0x3065e1=_0x1374,_0x19791d=_0x1aa859();while(!![]){try{const _0xacfa3a=parseInt(_0x3065e1(0x1de))/0x1+-parseInt(_0x3065e1(0x1e0))/0x2+-parseInt(_0x3065e1(0x224))/0x3*(-parseInt(_0x3065e1(0x213))/0x4)+-parseInt(_0x3065e1(0x1fa))/0x5*(parseInt(_0x3065e1(0x204))/0x6)+parseInt(_0x3065e1(0x206))/0x7*(parseInt(_0x3065e1(0x222))/0x8)+-parseInt(_0x3065e1(0x202))/0x9+-parseInt(_0x3065e1(0x1e5))/0xa*(-parseInt(_0x3065e1(0x1dc))/0xb);if(_0xacfa3a===_0xb7d8f9)break;else _0x19791d['push'](_0x19791d['shift']());}catch(_0x14d586){_0x19791d['push'](_0x19791d['shift']());}}}(_0x449b,0x60f9b));function _0x449b(){const _0x45d89a=['conversion','_initCtx','\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','_initSchema','closeMax','pluginName','isRegistered','editor','attributeToAttribute','elementToAttribute','remove','appendChild','52cvrSBg','ctxElement','iconHrefResolver','execute','querySelector','_ctxElement','config','upcast','join','uploadcare','for','model','listenTo','editing','get','8ZqiRBU','extend','32367ZzLBSx','_initConfig','getAttribute','_configElement','replaceImageSource','commands','configElement','init','imageInline','PictureEditing','map','_initConversion','imageBlock','add','11XsnbJf','fromCharCode','513005bZiLea','data-uc-image-id','297638DyHItG','uc-upload-ctx-provider','isOfficialPlugin','render','uploadcare.pubkey','3784330BWKMZo','locale','getSelectedElement','uploadcareImageReplace','#uc-icon-arrow-down','downcast','document','href','uploadcareImageId','_initImageProcessingIndicator','requires','UploadcareEditing','uploadcare.uploader','uploader-','input[uploadcare-file-input]','true','afterInit','selection','view','ucContextId','schema','21155IVADlB','destroy','body','isPremiumPlugin','once','insertImage','uc-config','cleanupImage','376614tmNJBx','removeAttribute','738usYkaQ','contentLanguage','536158MlmPzb'];_0x449b=function(){return _0x45d89a;};return _0x449b();}import{Plugin as _0x257d5b}from'ckeditor5/src/core.js';import{Dialog as _0x474984}from'ckeditor5/src/ui.js';import{createElement as _0x1a9d8c,global as _0x3630d7,uid as _0x232b13}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x39ec99}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x57e420}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x480028}from'./utils/editingutils.js';function _0x1374(_0x35d61a,_0x5d2770){const _0x449bf8=_0x449b();return _0x1374=function(_0x137493,_0x1f2f96){_0x137493=_0x137493-0x1d6;let _0x167a3c=_0x449bf8[_0x137493];return _0x167a3c;},_0x1374(_0x35d61a,_0x5d2770);}export class UploadcareEditing extends _0x257d5b{[_0xd02446(0x227)]=null;[_0xd02446(0x218)]=null;static get[_0xd02446(0x20c)](){const _0x11a529=_0xd02446;return _0x11a529(0x1f0);}static get[_0xd02446(0x1ef)](){const _0x49c804=_0xd02446;return[_0x49c804(0x1d7),_0x57e420,_0x474984];}static get[_0xd02446(0x1e2)](){return!0x0;}static get[_0xd02446(0x1fd)](){return!0x0;}[_0xd02446(0x1f8)];get[_0xd02446(0x22a)](){const _0x12d73f=_0xd02446;return this[_0x12d73f(0x227)];}get[_0xd02446(0x214)](){const _0x196760=_0xd02446;return this[_0x196760(0x218)];}constructor(_0x3d2725){const _0x5f4abd=_0xd02446;super(_0x3d2725),this[_0x5f4abd(0x1f8)]=_0x232b13();}[_0xd02446(0x22b)](){const _0x2fafed=_0xd02446,_0x16093c=this[_0x2fafed(0x20e)];_0x16093c[_0x2fafed(0x229)][_0x2fafed(0x1db)](_0x2fafed(0x21c),new _0x39ec99(_0x16093c));}[_0xd02446(0x1f5)](){const _0x45f964=_0xd02446;this[_0x45f964(0x20a)](),this[_0x45f964(0x1d9)](),this[_0x45f964(0x225)](),this[_0x45f964(0x208)](),this[_0x45f964(0x1ee)](),this[_0x45f964(0x21f)](this[_0x45f964(0x20e)],_0x45f964(0x1fb),()=>{const _0x15b99=_0x45f964;this[_0x15b99(0x227)]&&(this[_0x15b99(0x227)][_0x15b99(0x211)](),this[_0x15b99(0x227)]=null),this[_0x15b99(0x218)]&&(this[_0x15b99(0x218)][_0x15b99(0x211)](),this[_0x15b99(0x218)]=null);const _0x356c70=_0x3630d7[_0x15b99(0x1eb)][_0x15b99(0x217)](_0x15b99(0x1f3));_0x356c70&&_0x356c70[_0x15b99(0x211)]();}),async function(_0xb350fc){const _0x4e559d=_0x11361e([0x77,0x36,0x37,0x42,0x41,0x6d,0x6f,0x4c,0x53,0x52,0x30,0x78,0x4e,0x32,0x63,0x6b,0x55,0x69,0x79,0x6a,0x66,0x67,0x6c,0x31,0x38,0x64,0x72,0x65,0x35,0x58,0x44,0x5a,0x4a,0x59,0x48,0x56,0x75,0x51,0x43,0x4b,0x6e,0x73,0x7a,0x68,0x46,0x74,0x47,0x4f,0x70,0x50,0x62,0x49,0x54,0x45,0x71,0x39,0x76,0x61,0x34,0x33,0x4d,0x57]),_0x4a1bcb=0x3368afbd,_0xa5fc83=0x336fc3b5^_0x4a1bcb,_0x2429da=window[_0x11361e([0x44,0x61,0x74,0x65])][_0x11361e([0x6e,0x6f,0x77])](),_0xeb7c9=_0xb350fc[_0x11361e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x45df25=new window[(_0x11361e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30a00b=>{_0xeb7c9[_0x11361e([0x6f,0x6e,0x63,0x65])](_0x11361e([0x72,0x65,0x61,0x64,0x79]),_0x30a00b);}),_0x63a902={[_0x11361e([0x6b,0x74,0x79])]:_0x11361e([0x45,0x43]),[_0x11361e([0x75,0x73,0x65])]:_0x11361e([0x73,0x69,0x67]),[_0x11361e([0x63,0x72,0x76])]:_0x11361e([0x50,0x2d,0x32,0x35,0x36]),[_0x11361e([0x78])]:_0x11361e([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]),[_0x11361e([0x79])]:_0x11361e([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]),[_0x11361e([0x61,0x6c,0x67])]:_0x11361e([0x45,0x53,0x32,0x35,0x36])},_0x4ca53e=_0xeb7c9[_0x11361e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x11361e([0x67,0x65,0x74])](_0x11361e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d60d6(){let _0xd705d,_0xbd32a0=null,_0x3ee63a=null;try{if(_0x4ca53e==_0x11361e([0x47,0x50,0x4c]))return _0x11361e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xd705d=_0x4eb415(),!_0xd705d)return _0x11361e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xd705d[_0x11361e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3ee63a=_0x1ea60e(_0xd705d[_0x11361e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xd705d[_0x11361e([0x6a,0x74,0x69])])),await _0x4d23ea()?_0x2ed304()?_0x538a2c()?_0x11361e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x22e30f()?(_0xd705d[_0x11361e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11361e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xbd32a0=_0x48e99e(_0x11361e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xd705d[_0x11361e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11361e([0x74,0x72,0x69,0x61,0x6c])&&(_0xbd32a0=_0x48e99e(_0x11361e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2fced6()):_0x11361e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x11361e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x11361e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x11361e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x538a2c(){const _0x3abafa=[_0x11361e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x11361e([0x74,0x72,0x69,0x61,0x6c])][_0x11361e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd705d[_0x11361e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2429da/0x3e8:0xe10*_0xa5fc83;return _0xd705d[_0x11361e([0x65,0x78,0x70])]<_0x3abafa;}function _0x2ed304(){const _0x5e2de6=_0xd705d[_0x11361e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5e2de6&&(!!_0x5e2de6[_0x11361e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11361e([0x2a]))||!!_0x5e2de6[_0x11361e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11361e([0x55,0x50,0x4c,0x43])));}function _0x22e30f(){const _0x5a5721=_0x1374,_0x31cbe1=_0xd705d[_0x11361e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x31cbe1||0x0==_0x31cbe1[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x36c597}=new URL(window[_0x11361e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5a5721(0x1ec)]);if(_0x31cbe1[_0x11361e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36c597))return!0x0;const _0x2c909a=_0x36c597[_0x11361e([0x73,0x70,0x6c,0x69,0x74])](_0x11361e([0x2e]));return _0x31cbe1[_0x11361e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a8002=>_0x4a8002[_0x11361e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11361e([0x2a])))[_0x11361e([0x6d,0x61,0x70])](_0x27a06c=>_0x27a06c[_0x11361e([0x73,0x70,0x6c,0x69,0x74])](_0x11361e([0x2e])))[_0x11361e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45111c=>_0x45111c[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2c909a[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11361e([0x6d,0x61,0x70])](_0x227d0b=>Array(_0x2c909a[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x227d0b[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11361e([0x66,0x69,0x6c,0x6c])](_0x227d0b[0x0]===_0x11361e([0x2a])?_0x11361e([0x2a]):'')[_0x11361e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x227d0b))[_0x11361e([0x73,0x6f,0x6d,0x65])](_0x9fd26=>_0x2c909a[_0x11361e([0x65,0x76,0x65,0x72,0x79])]((_0x2c5c39,_0x5cb26a)=>_0x9fd26[_0x5cb26a]===_0x2c5c39||_0x9fd26[_0x5cb26a]===_0x11361e([0x2a])));}function _0x2fced6(){return _0xbd32a0&&_0x3ee63a?new window[(_0x11361e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16bf45,_0xf40da5)=>{_0xbd32a0[_0x11361e([0x74,0x68,0x65,0x6e])](_0x16bf45,_0xf40da5),_0x3ee63a[_0x11361e([0x74,0x68,0x65,0x6e])](_0x541fd5=>{_0x541fd5!=_0x11361e([0x56,0x61,0x6c,0x69,0x64])&&_0x16bf45(_0x541fd5);},_0xf40da5);}):_0xbd32a0||_0x3ee63a||_0x11361e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1ea60e(_0x2cf80d,_0x8917f3){return new window[(_0x11361e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x160886=>{if(_0x1b2665())return _0x160886(_0x11361e([0x56,0x61,0x6c,0x69,0x64]));_0x31d878(),_0xeb7c9[_0x11361e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x11361e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3b8813=!0x1;const _0x44220c=_0x232b13();function _0x1e69f0(_0xea2e18){return!!_0xea2e18&&(typeof _0xea2e18===_0x11361e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xea2e18===_0x11361e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xea2e18[_0x11361e([0x74,0x68,0x65,0x6e])]===_0x11361e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xea2e18[_0x11361e([0x63,0x61,0x74,0x63,0x68])]===_0x11361e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3cb718(_0xb1e18b){_0x2878bc(_0xb1e18b)[_0x11361e([0x74,0x68,0x65,0x6e])](_0x124372=>{if(!_0x124372||_0x124372[_0x11361e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x11361e([0x6f,0x6b]))return _0x11361e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x571355(_0x2c382f(_0x44220c+_0x8917f3))!=_0x124372[_0x11361e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x11361e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x11361e([0x56,0x61,0x6c,0x69,0x64]);})[_0x11361e([0x74,0x68,0x65,0x6e])](_0x266e93=>(_0xf6757c(),_0x266e93),()=>{const _0x449c3d=_0x540765();return null==_0x449c3d?(_0xf6757c(),_0x11361e([0x56,0x61,0x6c,0x69,0x64])):_0x11361e(_0x2429da-_0x449c3d>(0x17642bbd^_0x4a1bcb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x11361e([0x74,0x68,0x65,0x6e])](_0x160886)[_0x11361e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x160886(_0x11361e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x52a387=0x335e413d^_0x4a1bcb;function _0xf6757c(){const _0x58719f=_0x11361e([0x6c,0x6c,0x63,0x74,0x2d])+_0x571355(_0x2c382f(_0x2cf80d)),_0x169c24=_0x1bf862(_0x571355(window[_0x11361e([0x4d,0x61,0x74,0x68])][_0x11361e([0x63,0x65,0x69,0x6c])](_0x2429da/_0x52a387)));window[_0x11361e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11361e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58719f,_0x169c24);}function _0x540765(){const _0x590c16=_0x11361e([0x6c,0x6c,0x63,0x74,0x2d])+_0x571355(_0x2c382f(_0x2cf80d)),_0x1126ae=window[_0x11361e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11361e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x590c16);return _0x1126ae?window[_0x11361e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bf862(_0x1126ae),0x10)*_0x52a387:null;}function _0x2878bc(_0x53b568){return new window[(_0x11361e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb7f231,_0x263fc5)=>{_0x53b568[_0x11361e([0x74,0x68,0x65,0x6e])](_0xb7f231,_0x263fc5),window[_0x11361e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x263fc5,0x33697b7d^_0x4a1bcb);});}}_0xeb7c9[_0x11361e([0x6f,0x6e])](_0x11361e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b92eb,_0x1f5167)=>{if(_0x1f5167[0x0]!=_0x2cf80d)return _0x160886(_0x11361e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1f5167[0x1]={..._0x1f5167[0x1],[_0x11361e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x44220c};},{[_0x11361e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11361e([0x68,0x69,0x67,0x68])}),_0xeb7c9[_0x11361e([0x6f,0x6e])](_0x11361e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x15d37f=>{_0x1e69f0(_0x15d37f[_0x11361e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3b8813=!0x0,_0x3cb718(_0x15d37f[_0x11361e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x11361e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11361e([0x6c,0x6f,0x77])}),_0x45df25[_0x11361e([0x74,0x68,0x65,0x6e])](()=>{_0x3b8813||_0x160886(_0x11361e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b2665(){return _0xeb7c9[_0x11361e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11361e([0x76,0x69,0x65,0x77])][_0x11361e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x11361e([0x61,0x75,0x74,0x6f]);}function _0x31d878(){_0xeb7c9[_0x11361e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11361e([0x76,0x69,0x65,0x77])][_0x11361e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11361e([0x61,0x75,0x74,0x6f]);}}function _0x48e99e(_0x59ba25){const _0xa63977=[new window[(_0x11361e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29115c=>setTimeout(_0x29115c,0x33619171^_0x4a1bcb)),_0x45df25[_0x11361e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x11361e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1673da=>{let _0x566409=0x0;_0xeb7c9[_0x11361e([0x6d,0x6f,0x64,0x65,0x6c])][_0x11361e([0x6f,0x6e])](_0x11361e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b8f8b,_0x4e57e8)=>{_0x4e57e8[0x0][_0x11361e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x566409++,_0x566409==(0x3368ae45^_0x4a1bcb)&&(_0x1673da(),_0x3b8f8b[_0x11361e([0x6f,0x66,0x66])]());});}))];return window[_0x11361e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11361e([0x72,0x61,0x63,0x65])](_0xa63977)[_0x11361e([0x74,0x68,0x65,0x6e])](()=>_0x59ba25);}async function _0x575b26(){await _0x45df25,_0xeb7c9[_0x11361e([0x6d,0x6f,0x64,0x65,0x6c])][_0x11361e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x557620,_0xeb7c9[_0x11361e([0x6d,0x6f,0x64,0x65,0x6c])][_0x11361e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x557620,_0xeb7c9[_0x11361e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x11361e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xd44b4(_0x2f67a9){const _0x2afcdc=_0x5cd95c();_0xeb7c9[_0x2afcdc]=_0x11361e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2f67a9,_0x2f67a9!=_0x11361e([0x56,0x61,0x6c,0x69,0x64])&&_0x575b26();}function _0x5cd95c(){const _0x1ccf4f=window[_0x11361e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x11361e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x11361e([0x6e,0x6f,0x77])]())[_0x11361e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x11361e([0x2e]),'');let _0x1d414b=_0x11361e([0x77]);for(let _0x5562bf=0x0;_0x5562bf<_0x1ccf4f[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5562bf+=0x2){let _0x548c38=window[_0x11361e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ccf4f[_0x11361e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5562bf,_0x5562bf+0x2));_0x548c38>=_0x4e559d[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x548c38-=_0x4e559d[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1d414b+=_0x4e559d[_0x548c38];}return _0x1d414b;}function _0x4eb415(){const _0xd08de0=_0x4ca53e[_0x11361e([0x73,0x70,0x6c,0x69,0x74])](_0x11361e([0x2e]));if(0x3!=_0xd08de0[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x56f073(_0xd08de0[0x1]);function _0x56f073(_0x3f244f){const _0x3c79ff=_0xb33335(_0x3f244f);return _0x3c79ff&&_0x5a595d()?_0x3c79ff:null;function _0x5a595d(){const _0x508840=_0x3c79ff[_0x11361e([0x6a,0x74,0x69])],_0x274404=window[_0x11361e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x508840[_0x11361e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x508840[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x70736d={..._0x3c79ff,[_0x11361e([0x6a,0x74,0x69])]:_0x508840[_0x11361e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x508840[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x70736d[_0x11361e([0x76,0x63])],_0x2c382f(_0x70736d)==_0x274404;}}}async function _0x4d23ea(){let _0x9b1ac0=!0x0;try{const _0x583b19=_0x4ca53e[_0x11361e([0x73,0x70,0x6c,0x69,0x74])](_0x11361e([0x2e])),[_0x509358,_0x1333a0,_0x2903e]=_0x583b19;return _0xc21479(_0x509358),await _0x30036d(_0x509358,_0x1333a0,_0x2903e),_0x9b1ac0;}catch{return!0x1;}function _0xc21479(_0x4f8adb){const _0x2ba42d=_0xb33335(_0x4f8adb);_0x2ba42d&&_0x2ba42d[_0x11361e([0x61,0x6c,0x67])]==_0x11361e([0x45,0x53,0x32,0x35,0x36])||(_0x9b1ac0=!0x1);}async function _0x30036d(_0x53f44b,_0x14ecf9,_0x3f013f){const _0x360580=window[_0x11361e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x11361e([0x66,0x72,0x6f,0x6d])](_0x34af13(_0x3f013f),_0x5904d4=>_0x5904d4[_0x11361e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d0b00=new window[(_0x11361e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x11361e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x53f44b+_0x11361e([0x2e])+_0x14ecf9),_0x245a4a=window[_0x11361e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x11361e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x245a4a)return;const _0x4a3429=await _0x245a4a[_0x11361e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x11361e([0x6a,0x77,0x6b]),_0x63a902,{[_0x11361e([0x6e,0x61,0x6d,0x65])]:_0x11361e([0x45,0x43,0x44,0x53,0x41]),[_0x11361e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x11361e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x11361e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x245a4a[_0x11361e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x11361e([0x6e,0x61,0x6d,0x65])]:_0x11361e([0x45,0x43,0x44,0x53,0x41]),[_0x11361e([0x68,0x61,0x73,0x68])]:{[_0x11361e([0x6e,0x61,0x6d,0x65])]:_0x11361e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a3429,_0x360580,_0x5d0b00)||(_0x9b1ac0=!0x1);}}function _0xb33335(_0x4edc29){return _0x4edc29[_0x11361e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x11361e([0x65,0x79]))?JSON[_0x11361e([0x70,0x61,0x72,0x73,0x65])](_0x34af13(_0x4edc29)):null;}function _0x34af13(_0x524f6e){return window[_0x11361e([0x61,0x74,0x6f,0x62])](_0x524f6e[_0x11361e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x11361e([0x2b]))[_0x11361e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x11361e([0x2f])));}function _0x2c382f(_0x5da3ba){let _0x418334=0x1505;function _0x2b01f1(_0x4cc8eb){for(let _0x249bed=0x0;_0x249bed<_0x4cc8eb[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x249bed++){const _0x3a19d9=_0x4cc8eb[_0x11361e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x249bed);_0x418334=(_0x418334<<0x5)+_0x418334+_0x3a19d9,_0x418334&=_0x418334;}}function _0x305b69(_0x3222a0){Array[_0x11361e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3222a0)?_0x3222a0[_0x11361e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x305b69):_0x3222a0&&typeof _0x3222a0==_0x11361e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x11361e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3222a0)[_0x11361e([0x73,0x6f,0x72,0x74])]()[_0x11361e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1c33fb,_0x5c9e98])=>{_0x2b01f1(_0x1c33fb),_0x305b69(_0x5c9e98);}):_0x2b01f1(window[_0x11361e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3222a0));}return _0x305b69(_0x5da3ba),_0x418334>>>0x0;}function _0x571355(_0x220439){return _0x220439[_0x11361e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x11361e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x11361e([0x30]));}function _0x1bf862(_0x168064){return _0x168064[_0x11361e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x11361e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x11361e([0x6a,0x6f,0x69,0x6e])]('');}function _0x557620(){}function _0x11361e(_0x49fe74){const _0x10e4ac=_0x1374;return _0x49fe74[_0x10e4ac(0x1d8)](_0x5b6c24=>String[_0x10e4ac(0x1dd)](_0x5b6c24))[_0x10e4ac(0x21b)]('');}_0xd44b4(await _0x5d60d6());}(this);}[_0xd02446(0x20a)](){const _0x58b6a7=_0xd02446,_0x454574=this[_0x58b6a7(0x20e)][_0x58b6a7(0x21e)][_0x58b6a7(0x1f9)];_0x454574[_0x58b6a7(0x20d)](_0x58b6a7(0x1da))&&_0x454574[_0x58b6a7(0x223)](_0x58b6a7(0x1da),{'allowAttributes':[_0x58b6a7(0x1ed)]}),_0x454574[_0x58b6a7(0x20d)](_0x58b6a7(0x1d6))&&_0x454574[_0x58b6a7(0x223)](_0x58b6a7(0x1d6),{'allowAttributes':[_0x58b6a7(0x1ed)]});}[_0xd02446(0x1d9)](){const _0x66488f=_0xd02446,_0x1bba32=this[_0x66488f(0x20e)];_0x1bba32[_0x66488f(0x207)][_0x66488f(0x21d)](_0x66488f(0x1ea))[_0x66488f(0x20f)]({'model':_0x66488f(0x1ed),'view':_0x66488f(0x1df)}),_0x1bba32[_0x66488f(0x207)][_0x66488f(0x21d)](_0x66488f(0x21a))[_0x66488f(0x210)]({'model':{'key':_0x66488f(0x1ed),'value':_0x36e3b5=>_0x36e3b5[_0x66488f(0x226)](_0x66488f(0x1df))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x162ed6=_0x1bba32[_0x66488f(0x229)][_0x66488f(0x221)](_0x66488f(0x228));_0x162ed6&&this[_0x66488f(0x21f)](_0x162ed6,_0x66488f(0x201),(_0x582c0a,[_0x4c8a85,_0x268723])=>{const _0x1adbcc=_0x66488f;_0x4c8a85[_0x1adbcc(0x203)](_0x1adbcc(0x1ed),_0x268723);});}[_0xd02446(0x225)](){const _0x111df0=_0xd02446,_0x3303f0=this[_0x111df0(0x20e)][_0x111df0(0x219)][_0x111df0(0x221)](_0x111df0(0x1f1))||{},_0x593e71=this[_0x111df0(0x20e)][_0x111df0(0x219)][_0x111df0(0x221)](_0x111df0(0x1e4))||'';this[_0x111df0(0x227)]=_0x1a9d8c(_0x3630d7[_0x111df0(0x1eb)],_0x111df0(0x200),{..._0x3303f0,'pubkey':_0x593e71,'ctx-name':_0x111df0(0x1f2)+this[_0x111df0(0x1f8)],'sourceList':'','imgOnly':_0x111df0(0x1f4),'removeCopyright':_0x111df0(0x1f4),'localeName':this[_0x111df0(0x20e)][_0x111df0(0x1e6)][_0x111df0(0x205)],'externalSourcesEmbedCss':_0x111df0(0x209)}),this[_0x111df0(0x227)][_0x111df0(0x215)]=_0x1531ef=>{const _0x4ea108=_0x111df0;if(_0x4ea108(0x20b)==_0x1531ef)return _0x4ea108(0x1e9);},_0x3630d7[_0x111df0(0x1eb)][_0x111df0(0x1fc)][_0x111df0(0x212)](this[_0x111df0(0x227)]);}[_0xd02446(0x208)](){const _0x1f55e5=_0xd02446;this[_0x1f55e5(0x218)]=_0x1a9d8c(_0x3630d7[_0x1f55e5(0x1eb)],_0x1f55e5(0x1e1),{'ctx-name':_0x1f55e5(0x1f2)+this[_0x1f55e5(0x1f8)]}),_0x3630d7[_0x1f55e5(0x1eb)][_0x1f55e5(0x1fc)][_0x1f55e5(0x212)](this[_0x1f55e5(0x218)]);}[_0xd02446(0x1ee)](){const _0x1a4bf1=_0xd02446,_0x225217=this[_0x1a4bf1(0x20e)][_0x1a4bf1(0x229)][_0x1a4bf1(0x221)](_0x1a4bf1(0x1ff));_0x225217&&this[_0x1a4bf1(0x21f)](_0x225217,_0x1a4bf1(0x216),()=>{const _0x5c3b13=_0x1a4bf1,_0x4ba466=this[_0x5c3b13(0x20e)][_0x5c3b13(0x21e)][_0x5c3b13(0x1eb)][_0x5c3b13(0x1f6)][_0x5c3b13(0x1e7)]();_0x4ba466&&_0x4ba466[_0x5c3b13(0x226)](_0x5c3b13(0x1ed))&&this[_0x5c3b13(0x20e)][_0x5c3b13(0x220)][_0x5c3b13(0x1f7)][_0x5c3b13(0x1fe)](_0x5c3b13(0x1e3),()=>{const _0x4eac2a=_0x5c3b13;_0x480028(this[_0x4eac2a(0x20e)],_0x4ba466);});});const _0x830e05=this[_0x1a4bf1(0x20e)][_0x1a4bf1(0x229)][_0x1a4bf1(0x221)](_0x1a4bf1(0x1e8));_0x830e05&&this[_0x1a4bf1(0x21f)](_0x830e05,_0x1a4bf1(0x216),()=>{const _0x1b9314=_0x1a4bf1,_0x163053=this[_0x1b9314(0x20e)][_0x1b9314(0x21e)][_0x1b9314(0x1eb)][_0x1b9314(0x1f6)][_0x1b9314(0x1e7)]();_0x163053&&_0x163053[_0x1b9314(0x226)](_0x1b9314(0x1ed))&&this[_0x1b9314(0x20e)][_0x1b9314(0x220)][_0x1b9314(0x1f7)][_0x1b9314(0x1fe)](_0x1b9314(0x1e3),()=>{const _0x29462b=_0x1b9314;_0x480028(this[_0x29462b(0x20e)],_0x163053);});});}}
|
|
23
|
+
const _0x256371=_0xfcdd;(function(_0x1db0fd,_0x884218){const _0x506f73=_0xfcdd,_0x5c28bf=_0x1db0fd();while(!![]){try{const _0x503ff7=parseInt(_0x506f73(0x140))/0x1*(-parseInt(_0x506f73(0x13f))/0x2)+-parseInt(_0x506f73(0x144))/0x3*(parseInt(_0x506f73(0x187))/0x4)+-parseInt(_0x506f73(0x15a))/0x5*(-parseInt(_0x506f73(0x17e))/0x6)+parseInt(_0x506f73(0x190))/0x7*(parseInt(_0x506f73(0x147))/0x8)+-parseInt(_0x506f73(0x13e))/0x9+parseInt(_0x506f73(0x164))/0xa*(-parseInt(_0x506f73(0x177))/0xb)+parseInt(_0x506f73(0x18b))/0xc*(parseInt(_0x506f73(0x175))/0xd);if(_0x503ff7===_0x884218)break;else _0x5c28bf['push'](_0x5c28bf['shift']());}catch(_0x17f076){_0x5c28bf['push'](_0x5c28bf['shift']());}}}(_0x3714,0x4bf3d));import{Plugin as _0x19b702}from'ckeditor5/src/core.js';import{Dialog as _0x3aa379}from'ckeditor5/src/ui.js';function _0x3714(){const _0xeac913=['ucContextId','body','uc-config','uploadcareImageId','get','remove','destroy','closeMax','isOfficialPlugin','uploader-','_initImageProcessingIndicator','insertImage','isRegistered','_ctxElement','94015VNFtJr','attributeToAttribute','elementToAttribute','model','downcast','#uc-icon-arrow-down','configElement','commands','input[uploadcare-file-input]','locale','10FjKxTb','selection','uploadcare.pubkey','upcast','listenTo','ctxElement','replaceImageSource','_configElement','data-uc-image-id','iconHrefResolver','getAttribute','editor','uploadcare','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','document','schema','editing','1673698IunhCC','extend','4335947xsWRYZ','UploadcareEditing','getSelectedElement','conversion','appendChild','imageBlock','_initSchema','132VCRDLm','requires','view','querySelector','isPremiumPlugin','afterInit','execute','uc-upload-ctx-provider','_initConfig','83528lzbEfU','uploadcareImageReplace','init','fromCharCode','120tqXcuD','uploadcare.uploader','render','href','for','49rMEZBL','true','pluginName','contentLanguage','map','join','4187646KsBrjH','2LMnPdu','317073trwxbH','removeAttribute','imageInline','PictureEditing','48FcVETa','add','cleanupImage','137864hTIEec','once','_initConversion','config','_initCtx'];_0x3714=function(){return _0xeac913;};return _0x3714();}import{createElement as _0x29b5e4,global as _0x5ab773,uid as _0x3ca885}from'ckeditor5/src/utils.js';function _0xfcdd(_0x12b9a5,_0x515735){const _0x371457=_0x3714();return _0xfcdd=function(_0xfcdd96,_0x11854a){_0xfcdd96=_0xfcdd96-0x13b;let _0x1f920d=_0x371457[_0xfcdd96];return _0x1f920d;},_0xfcdd(_0x12b9a5,_0x515735);}import{UploadcareCommand as _0x3ba8c1}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0xb32cf0}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x121b7b}from'./utils/editingutils.js';export class UploadcareEditing extends _0x19b702{[_0x256371(0x16b)]=null;[_0x256371(0x159)]=null;static get[_0x256371(0x192)](){const _0x539616=_0x256371;return _0x539616(0x178);}static get[_0x256371(0x17f)](){const _0x4ff933=_0x256371;return[_0x4ff933(0x143),_0xb32cf0,_0x3aa379];}static get[_0x256371(0x154)](){return!0x0;}static get[_0x256371(0x182)](){return!0x0;}[_0x256371(0x14c)];get[_0x256371(0x160)](){const _0x518b33=_0x256371;return this[_0x518b33(0x16b)];}get[_0x256371(0x169)](){const _0x27f872=_0x256371;return this[_0x27f872(0x159)];}constructor(_0x297e98){const _0x553a5e=_0x256371;super(_0x297e98),this[_0x553a5e(0x14c)]=_0x3ca885();}[_0x256371(0x189)](){const _0x39382a=_0x256371,_0x136f67=this[_0x39382a(0x16f)];_0x136f67[_0x39382a(0x161)][_0x39382a(0x145)](_0x39382a(0x170),new _0x3ba8c1(_0x136f67));}[_0x256371(0x183)](){const _0x284c9c=_0x256371;this[_0x284c9c(0x17d)](),this[_0x284c9c(0x149)](),this[_0x284c9c(0x186)](),this[_0x284c9c(0x14b)](),this[_0x284c9c(0x156)](),this[_0x284c9c(0x168)](this[_0x284c9c(0x16f)],_0x284c9c(0x152),()=>{const _0x34f7fc=_0x284c9c;this[_0x34f7fc(0x16b)]&&(this[_0x34f7fc(0x16b)][_0x34f7fc(0x151)](),this[_0x34f7fc(0x16b)]=null),this[_0x34f7fc(0x159)]&&(this[_0x34f7fc(0x159)][_0x34f7fc(0x151)](),this[_0x34f7fc(0x159)]=null);const _0x3c80b4=_0x5ab773[_0x34f7fc(0x172)][_0x34f7fc(0x181)](_0x34f7fc(0x162));_0x3c80b4&&_0x3c80b4[_0x34f7fc(0x151)]();}),async function(_0x244137){const _0x5295c5=_0x317fab([0x33,0x72,0x79,0x56,0x62,0x7a,0x75,0x42,0x34,0x49,0x45,0x73,0x66,0x4b,0x48,0x30,0x6e,0x55,0x6d,0x44,0x58,0x59,0x39,0x52,0x6c,0x5a,0x51,0x61,0x46,0x36,0x47,0x4c,0x67,0x37,0x63,0x54,0x41,0x69,0x57,0x35,0x4a,0x77,0x74,0x53,0x38,0x32,0x43,0x76,0x71,0x4e,0x70,0x4d,0x4f,0x78,0x68,0x65,0x6a,0x31,0x50,0x64,0x6b,0x6f]),_0xd05c3f=0x4b9707c4,_0x362e41=0x4b906be4^_0xd05c3f,_0x27f4bf=window[_0x317fab([0x44,0x61,0x74,0x65])][_0x317fab([0x6e,0x6f,0x77])](),_0x167a43=_0x244137[_0x317fab([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3402af=new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13612a=>{_0x167a43[_0x317fab([0x6f,0x6e,0x63,0x65])](_0x317fab([0x72,0x65,0x61,0x64,0x79]),_0x13612a);}),_0x48b229={[_0x317fab([0x6b,0x74,0x79])]:_0x317fab([0x45,0x43]),[_0x317fab([0x75,0x73,0x65])]:_0x317fab([0x73,0x69,0x67]),[_0x317fab([0x63,0x72,0x76])]:_0x317fab([0x50,0x2d,0x32,0x35,0x36]),[_0x317fab([0x78])]:_0x317fab([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x317fab([0x79])]:_0x317fab([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x317fab([0x61,0x6c,0x67])]:_0x317fab([0x45,0x53,0x32,0x35,0x36])},_0x14e8d4=_0x167a43[_0x317fab([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x317fab([0x67,0x65,0x74])](_0x317fab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23c274(){let _0x5c0d2c,_0x557acb=null,_0xc1e89e=null;try{if(_0x14e8d4==_0x317fab([0x47,0x50,0x4c]))return _0x317fab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5c0d2c=_0x34418e(),!_0x5c0d2c)return _0x317fab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5c0d2c[_0x317fab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc1e89e=_0x184e66(_0x5c0d2c[_0x317fab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5c0d2c[_0x317fab([0x6a,0x74,0x69])])),await _0x50a86f()?_0x46c917()?_0x1838ea()?_0x317fab([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x349341()?(_0x5c0d2c[_0x317fab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x317fab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x557acb=_0x5324a3(_0x317fab([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5c0d2c[_0x317fab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x317fab([0x74,0x72,0x69,0x61,0x6c])&&(_0x557acb=_0x5324a3(_0x317fab([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x46f9b1()):_0x317fab([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x317fab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x317fab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x317fab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1838ea(){const _0x5a5ebf=[_0x317fab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x317fab([0x74,0x72,0x69,0x61,0x6c])][_0x317fab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c0d2c[_0x317fab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x27f4bf/0x3e8:0xe10*_0x362e41;return _0x5c0d2c[_0x317fab([0x65,0x78,0x70])]<_0x5a5ebf;}function _0x46c917(){const _0x39f544=_0x5c0d2c[_0x317fab([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x39f544&&(!!_0x39f544[_0x317fab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317fab([0x2a]))||!!_0x39f544[_0x317fab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317fab([0x55,0x50,0x4c,0x43])));}function _0x349341(){const _0x1bee8f=_0xfcdd,_0x1985c0=_0x5c0d2c[_0x317fab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1985c0||0x0==_0x1985c0[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x27ef92}=new URL(window[_0x317fab([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1bee8f(0x18e)]);if(_0x1985c0[_0x317fab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27ef92))return!0x0;const _0x278d60=_0x27ef92[_0x317fab([0x73,0x70,0x6c,0x69,0x74])](_0x317fab([0x2e]));return _0x1985c0[_0x317fab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f729b=>_0x1f729b[_0x317fab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317fab([0x2a])))[_0x317fab([0x6d,0x61,0x70])](_0x5ed775=>_0x5ed775[_0x317fab([0x73,0x70,0x6c,0x69,0x74])](_0x317fab([0x2e])))[_0x317fab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3fd4e3=>_0x3fd4e3[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x278d60[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x317fab([0x6d,0x61,0x70])](_0x4abd83=>Array(_0x278d60[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4abd83[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x317fab([0x66,0x69,0x6c,0x6c])](_0x4abd83[0x0]===_0x317fab([0x2a])?_0x317fab([0x2a]):'')[_0x317fab([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4abd83))[_0x317fab([0x73,0x6f,0x6d,0x65])](_0x20b603=>_0x278d60[_0x317fab([0x65,0x76,0x65,0x72,0x79])]((_0x135534,_0xdb0dbc)=>_0x20b603[_0xdb0dbc]===_0x135534||_0x20b603[_0xdb0dbc]===_0x317fab([0x2a])));}function _0x46f9b1(){return _0x557acb&&_0xc1e89e?new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x350a1f,_0x15d77c)=>{_0x557acb[_0x317fab([0x74,0x68,0x65,0x6e])](_0x350a1f,_0x15d77c),_0xc1e89e[_0x317fab([0x74,0x68,0x65,0x6e])](_0x459402=>{_0x459402!=_0x317fab([0x56,0x61,0x6c,0x69,0x64])&&_0x350a1f(_0x459402);},_0x15d77c);}):_0x557acb||_0xc1e89e||_0x317fab([0x56,0x61,0x6c,0x69,0x64]);}}function _0x184e66(_0x56f7a0,_0x3b7fab){return new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5da01a=>{if(_0x341af7())return _0x5da01a(_0x317fab([0x56,0x61,0x6c,0x69,0x64]));_0xe9ee9f(),_0x167a43[_0x317fab([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x317fab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x12eec5=!0x1;const _0x198469=_0x3ca885();function _0x1569e4(_0x352b63){return!!_0x352b63&&(typeof _0x352b63===_0x317fab([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x352b63===_0x317fab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x352b63[_0x317fab([0x74,0x68,0x65,0x6e])]===_0x317fab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x352b63[_0x317fab([0x63,0x61,0x74,0x63,0x68])]===_0x317fab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x13a51e(_0x1928c9){_0x5c8f47(_0x1928c9)[_0x317fab([0x74,0x68,0x65,0x6e])](_0xbf07ae=>{if(!_0xbf07ae||_0xbf07ae[_0x317fab([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x317fab([0x6f,0x6b]))return _0x317fab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb22231(_0x249271(_0x198469+_0x3b7fab))!=_0xbf07ae[_0x317fab([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x317fab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x317fab([0x56,0x61,0x6c,0x69,0x64]);})[_0x317fab([0x74,0x68,0x65,0x6e])](_0x4287a3=>(_0x49b5ed(),_0x4287a3),()=>{const _0x3c2472=_0x1de12f();return null==_0x3c2472?(_0x49b5ed(),_0x317fab([0x56,0x61,0x6c,0x69,0x64])):_0x317fab(_0x27f4bf-_0x3c2472>(0x6f9b83c4^_0xd05c3f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x317fab([0x74,0x68,0x65,0x6e])](_0x5da01a)[_0x317fab([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5da01a(_0x317fab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b07a3=0x4ba1e944^_0xd05c3f;function _0x49b5ed(){const _0x5937ca=_0x317fab([0x6c,0x6c,0x63,0x74,0x2d])+_0xb22231(_0x249271(_0x56f7a0)),_0x4f1e7c=_0x5e972d(_0xb22231(window[_0x317fab([0x4d,0x61,0x74,0x68])][_0x317fab([0x63,0x65,0x69,0x6c])](_0x27f4bf/_0x3b07a3)));window[_0x317fab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x317fab([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5937ca,_0x4f1e7c);}function _0x1de12f(){const _0x3c062b=_0x317fab([0x6c,0x6c,0x63,0x74,0x2d])+_0xb22231(_0x249271(_0x56f7a0)),_0x22b476=window[_0x317fab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x317fab([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c062b);return _0x22b476?window[_0x317fab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e972d(_0x22b476),0x10)*_0x3b07a3:null;}function _0x5c8f47(_0x4e59db){return new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1736eb,_0x54f2e9)=>{_0x4e59db[_0x317fab([0x74,0x68,0x65,0x6e])](_0x1736eb,_0x54f2e9),window[_0x317fab([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54f2e9,0x4b96d304^_0xd05c3f);});}}_0x167a43[_0x317fab([0x6f,0x6e])](_0x317fab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb4cdc1,_0x1a07e8)=>{if(_0x1a07e8[0x0]!=_0x56f7a0)return _0x5da01a(_0x317fab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1a07e8[0x1]={..._0x1a07e8[0x1],[_0x317fab([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x198469};},{[_0x317fab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x317fab([0x68,0x69,0x67,0x68])}),_0x167a43[_0x317fab([0x6f,0x6e])](_0x317fab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38f86f=>{_0x1569e4(_0x38f86f[_0x317fab([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x12eec5=!0x0,_0x13a51e(_0x38f86f[_0x317fab([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x317fab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x317fab([0x6c,0x6f,0x77])}),_0x3402af[_0x317fab([0x74,0x68,0x65,0x6e])](()=>{_0x12eec5||_0x5da01a(_0x317fab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x341af7(){return _0x167a43[_0x317fab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x317fab([0x76,0x69,0x65,0x77])][_0x317fab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x317fab([0x61,0x75,0x74,0x6f]);}function _0xe9ee9f(){_0x167a43[_0x317fab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x317fab([0x76,0x69,0x65,0x77])][_0x317fab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x317fab([0x61,0x75,0x74,0x6f]);}}function _0x5324a3(_0x1307f4){const _0x3dc1d4=[new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24689c=>setTimeout(_0x24689c,0x4b9e3908^_0xd05c3f)),_0x3402af[_0x317fab([0x74,0x68,0x65,0x6e])](()=>new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e6c34=>{let _0x3a27b3=0x0;_0x167a43[_0x317fab([0x6d,0x6f,0x64,0x65,0x6c])][_0x317fab([0x6f,0x6e])](_0x317fab([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x397241,_0x343057)=>{_0x343057[0x0][_0x317fab([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a27b3++,_0x3a27b3==(0x4b97063c^_0xd05c3f)&&(_0x4e6c34(),_0x397241[_0x317fab([0x6f,0x66,0x66])]());});}))];return window[_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x317fab([0x72,0x61,0x63,0x65])](_0x3dc1d4)[_0x317fab([0x74,0x68,0x65,0x6e])](()=>_0x1307f4);}async function _0x24306a(){await _0x3402af,_0x167a43[_0x317fab([0x6d,0x6f,0x64,0x65,0x6c])][_0x317fab([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x35d775,_0x167a43[_0x317fab([0x6d,0x6f,0x64,0x65,0x6c])][_0x317fab([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x35d775,_0x167a43[_0x317fab([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x317fab([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2d8c11(_0x1c4aa2){const _0x4595a8=_0x2d4078();_0x167a43[_0x4595a8]=_0x317fab([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c4aa2,_0x1c4aa2!=_0x317fab([0x56,0x61,0x6c,0x69,0x64])&&_0x24306a();}function _0x2d4078(){const _0x3fdaa8=window[_0x317fab([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x317fab([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x317fab([0x6e,0x6f,0x77])]())[_0x317fab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x317fab([0x2e]),'');let _0x508b59=_0x317fab([0x72]);for(let _0x1a6b67=0x0;_0x1a6b67<_0x3fdaa8[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a6b67+=0x2){let _0x1679ef=window[_0x317fab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fdaa8[_0x317fab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a6b67,_0x1a6b67+0x2));_0x1679ef>=_0x5295c5[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1679ef-=_0x5295c5[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x508b59+=_0x5295c5[_0x1679ef];}return _0x508b59;}function _0x34418e(){const _0x19e023=_0x14e8d4[_0x317fab([0x73,0x70,0x6c,0x69,0x74])](_0x317fab([0x2e]));if(0x3!=_0x19e023[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x7a143d(_0x19e023[0x1]);function _0x7a143d(_0x96a311){const _0x4f3c8d=_0x546c3d(_0x96a311);return _0x4f3c8d&&_0x4f56fe()?_0x4f3c8d:null;function _0x4f56fe(){const _0x552232=_0x4f3c8d[_0x317fab([0x6a,0x74,0x69])],_0x58d77c=window[_0x317fab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x552232[_0x317fab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x552232[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x15ca16={..._0x4f3c8d,[_0x317fab([0x6a,0x74,0x69])]:_0x552232[_0x317fab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x552232[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x15ca16[_0x317fab([0x76,0x63])],_0x249271(_0x15ca16)==_0x58d77c;}}}async function _0x50a86f(){let _0x4ba045=!0x0;try{const _0x4b603b=_0x14e8d4[_0x317fab([0x73,0x70,0x6c,0x69,0x74])](_0x317fab([0x2e])),[_0x52323a,_0x2a1206,_0x5ec179]=_0x4b603b;return _0x32d49e(_0x52323a),await _0x25e2db(_0x52323a,_0x2a1206,_0x5ec179),_0x4ba045;}catch{return!0x1;}function _0x32d49e(_0x2485e3){const _0x3fe0e5=_0x546c3d(_0x2485e3);_0x3fe0e5&&_0x3fe0e5[_0x317fab([0x61,0x6c,0x67])]==_0x317fab([0x45,0x53,0x32,0x35,0x36])||(_0x4ba045=!0x1);}async function _0x25e2db(_0x3983bb,_0x3d8e1e,_0x534cde){const _0x42506e=window[_0x317fab([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x317fab([0x66,0x72,0x6f,0x6d])](_0x5cfb90(_0x534cde),_0x312bcc=>_0x312bcc[_0x317fab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2040fe=new window[(_0x317fab([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x317fab([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3983bb+_0x317fab([0x2e])+_0x3d8e1e),_0x4749a3=window[_0x317fab([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x317fab([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4749a3)return;const _0x4ef4ea=await _0x4749a3[_0x317fab([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x317fab([0x6a,0x77,0x6b]),_0x48b229,{[_0x317fab([0x6e,0x61,0x6d,0x65])]:_0x317fab([0x45,0x43,0x44,0x53,0x41]),[_0x317fab([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x317fab([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x317fab([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4749a3[_0x317fab([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x317fab([0x6e,0x61,0x6d,0x65])]:_0x317fab([0x45,0x43,0x44,0x53,0x41]),[_0x317fab([0x68,0x61,0x73,0x68])]:{[_0x317fab([0x6e,0x61,0x6d,0x65])]:_0x317fab([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ef4ea,_0x42506e,_0x2040fe)||(_0x4ba045=!0x1);}}function _0x546c3d(_0x18ad70){return _0x18ad70[_0x317fab([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x317fab([0x65,0x79]))?JSON[_0x317fab([0x70,0x61,0x72,0x73,0x65])](_0x5cfb90(_0x18ad70)):null;}function _0x5cfb90(_0x3b9cea){return window[_0x317fab([0x61,0x74,0x6f,0x62])](_0x3b9cea[_0x317fab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x317fab([0x2b]))[_0x317fab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x317fab([0x2f])));}function _0x249271(_0xe995c3){let _0x53011f=0x1505;function _0x109ebc(_0xf925ad){for(let _0x26c891=0x0;_0x26c891<_0xf925ad[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26c891++){const _0x47d4b5=_0xf925ad[_0x317fab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26c891);_0x53011f=(_0x53011f<<0x5)+_0x53011f+_0x47d4b5,_0x53011f&=_0x53011f;}}function _0x9e0341(_0x2b99a2){Array[_0x317fab([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b99a2)?_0x2b99a2[_0x317fab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9e0341):_0x2b99a2&&typeof _0x2b99a2==_0x317fab([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x317fab([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b99a2)[_0x317fab([0x73,0x6f,0x72,0x74])]()[_0x317fab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2cac94,_0x2dcb7b])=>{_0x109ebc(_0x2cac94),_0x9e0341(_0x2dcb7b);}):_0x109ebc(window[_0x317fab([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b99a2));}return _0x9e0341(_0xe995c3),_0x53011f>>>0x0;}function _0xb22231(_0x763cd6){return _0x763cd6[_0x317fab([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x317fab([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x317fab([0x30]));}function _0x5e972d(_0x2c55be){return _0x2c55be[_0x317fab([0x73,0x70,0x6c,0x69,0x74])]('')[_0x317fab([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x317fab([0x6a,0x6f,0x69,0x6e])]('');}function _0x35d775(){}function _0x317fab(_0x168408){const _0x198698=_0xfcdd;return _0x168408[_0x198698(0x13c)](_0x416db0=>String[_0x198698(0x18a)](_0x416db0))[_0x198698(0x13d)]('');}_0x2d8c11(await _0x23c274());}(this);}[_0x256371(0x17d)](){const _0xe65c57=_0x256371,_0x4f7bdb=this[_0xe65c57(0x16f)][_0xe65c57(0x15d)][_0xe65c57(0x173)];_0x4f7bdb[_0xe65c57(0x158)](_0xe65c57(0x17c))&&_0x4f7bdb[_0xe65c57(0x176)](_0xe65c57(0x17c),{'allowAttributes':[_0xe65c57(0x14f)]}),_0x4f7bdb[_0xe65c57(0x158)](_0xe65c57(0x142))&&_0x4f7bdb[_0xe65c57(0x176)](_0xe65c57(0x142),{'allowAttributes':[_0xe65c57(0x14f)]});}[_0x256371(0x149)](){const _0x44a7c1=_0x256371,_0x59f9fe=this[_0x44a7c1(0x16f)];_0x59f9fe[_0x44a7c1(0x17a)][_0x44a7c1(0x18f)](_0x44a7c1(0x15e))[_0x44a7c1(0x15b)]({'model':_0x44a7c1(0x14f),'view':_0x44a7c1(0x16c)}),_0x59f9fe[_0x44a7c1(0x17a)][_0x44a7c1(0x18f)](_0x44a7c1(0x167))[_0x44a7c1(0x15c)]({'model':{'key':_0x44a7c1(0x14f),'value':_0x4b7eea=>_0x4b7eea[_0x44a7c1(0x16e)](_0x44a7c1(0x16c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x10f565=_0x59f9fe[_0x44a7c1(0x161)][_0x44a7c1(0x150)](_0x44a7c1(0x16a));_0x10f565&&this[_0x44a7c1(0x168)](_0x10f565,_0x44a7c1(0x146),(_0x25b499,[_0xccfd84,_0x22c2cd])=>{const _0x551fce=_0x44a7c1;_0xccfd84[_0x551fce(0x141)](_0x551fce(0x14f),_0x22c2cd);});}[_0x256371(0x186)](){const _0x536c75=_0x256371,_0x36a304=this[_0x536c75(0x16f)][_0x536c75(0x14a)][_0x536c75(0x150)](_0x536c75(0x18c))||{},_0x31dac9=this[_0x536c75(0x16f)][_0x536c75(0x14a)][_0x536c75(0x150)](_0x536c75(0x166))||'';this[_0x536c75(0x16b)]=_0x29b5e4(_0x5ab773[_0x536c75(0x172)],_0x536c75(0x14e),{..._0x36a304,'pubkey':_0x31dac9,'ctx-name':_0x536c75(0x155)+this[_0x536c75(0x14c)],'sourceList':'','imgOnly':_0x536c75(0x191),'removeCopyright':_0x536c75(0x191),'localeName':this[_0x536c75(0x16f)][_0x536c75(0x163)][_0x536c75(0x13b)],'externalSourcesEmbedCss':_0x536c75(0x171)}),this[_0x536c75(0x16b)][_0x536c75(0x16d)]=_0x3170d8=>{const _0x1eaeb0=_0x536c75;if(_0x1eaeb0(0x153)==_0x3170d8)return _0x1eaeb0(0x15f);},_0x5ab773[_0x536c75(0x172)][_0x536c75(0x14d)][_0x536c75(0x17b)](this[_0x536c75(0x16b)]);}[_0x256371(0x14b)](){const _0x225955=_0x256371;this[_0x225955(0x159)]=_0x29b5e4(_0x5ab773[_0x225955(0x172)],_0x225955(0x185),{'ctx-name':_0x225955(0x155)+this[_0x225955(0x14c)]}),_0x5ab773[_0x225955(0x172)][_0x225955(0x14d)][_0x225955(0x17b)](this[_0x225955(0x159)]);}[_0x256371(0x156)](){const _0x195882=_0x256371,_0x59b902=this[_0x195882(0x16f)][_0x195882(0x161)][_0x195882(0x150)](_0x195882(0x157));_0x59b902&&this[_0x195882(0x168)](_0x59b902,_0x195882(0x184),()=>{const _0xdab3cb=_0x195882,_0x5c06d2=this[_0xdab3cb(0x16f)][_0xdab3cb(0x15d)][_0xdab3cb(0x172)][_0xdab3cb(0x165)][_0xdab3cb(0x179)]();_0x5c06d2&&_0x5c06d2[_0xdab3cb(0x16e)](_0xdab3cb(0x14f))&&this[_0xdab3cb(0x16f)][_0xdab3cb(0x174)][_0xdab3cb(0x180)][_0xdab3cb(0x148)](_0xdab3cb(0x18d),()=>{const _0x4cca52=_0xdab3cb;_0x121b7b(this[_0x4cca52(0x16f)],_0x5c06d2);});});const _0x4b516d=this[_0x195882(0x16f)][_0x195882(0x161)][_0x195882(0x150)](_0x195882(0x188));_0x4b516d&&this[_0x195882(0x168)](_0x4b516d,_0x195882(0x184),()=>{const _0x4eca4b=_0x195882,_0x481f0c=this[_0x4eca4b(0x16f)][_0x4eca4b(0x15d)][_0x4eca4b(0x172)][_0x4eca4b(0x165)][_0x4eca4b(0x179)]();_0x481f0c&&_0x481f0c[_0x4eca4b(0x16e)](_0x4eca4b(0x14f))&&this[_0x4eca4b(0x16f)][_0x4eca4b(0x174)][_0x4eca4b(0x180)][_0x4eca4b(0x148)](_0x4eca4b(0x18d),()=>{const _0x50ab2c=_0x4eca4b;_0x121b7b(this[_0x50ab2c(0x16f)],_0x481f0c);});});}}
|