@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250521.0 → 0.0.0-nightly-20250523.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 _0x11339b,Command as _0x2857bf}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1210a7,IconGooglePhotos as _0x51cc7e,IconGoogleDrive as _0xaafc63,IconFacebook as _0x382660,IconDropbox as _0x4f2a65,IconUploadcareLink as _0x35918a,IconUploadcareImageUpload as _0x3841fd,IconError as et,IconUploadcareImageEdit as _0x3b797a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3b326e,MenuBarMenuListItemButtonView as _0xb5a320,View as _0x911a6f,FocusCycler as _0x40b10c,Dialog as _0x594a43,DialogViewPosition as _0x3a8e21,SpinnerView as _0x425d0d,IconView as at,Notification as _0x10d740}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x23cd0c,DomEmitterMixin as _0x582cdd,global as _0x1106f9,getAncestors as _0x3a592e,ObservableMixin as _0x553190,createElement as _0x2e8876,uid as _0x2427cf}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3ae988}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3296af,info as _0x25a2d4}from'@uploadcare/upload-client';import*as _0x581df9 from'@uploadcare/file-uploader';var o=function(_0xd8d126){return _0xd8d126['Local']='local',_0xd8d126['URL']='url',_0xd8d126['Dropbox']='dropbox',_0xd8d126['GDrive']='gdrive',_0xd8d126['Facebook']='facebook',_0xd8d126['GPhotos']='gphotos',_0xd8d126['OneDrive']='onedrive',_0xd8d126;}({});function _(_0x718d1f,_0xfe8ff3,_0xff9b3a){const t=_0x718d1f['t'],_0x4ab078=_0x718d1f['t'];switch(_0xfe8ff3){case o['Local']:return{'text':_0x4ab078('Insert'===_0xff9b3a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4ab078('From\x20computer')};case o['URL']:return{'text':'Insert'===_0xff9b3a?_0x4ab078('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4ab078('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0xff9b3a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0xff9b3a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0xff9b3a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0xff9b3a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0xff9b3a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xfe8ff3;}}class e extends _0x11339b{['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 _0x5c013c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x561a8d;for(const _0x4626a9 in _0x5c013c){const _0x10024b=_0x4626a9,_0x40ef09=_0x5c013c[_0x10024b];if('uploadcareLicenseKeyValid'==_0x40ef09||'uploadcareLicenseKeyInvalid'==_0x40ef09||'uploadcareLicenseKeyExpired'==_0x40ef09||'uploadcareLicenseKeyDomainLimit'==_0x40ef09||'uploadcareLicenseKeyNotAllowed'==_0x40ef09||'uploadcareLicenseKeyEvaluationLimit'==_0x40ef09||'uploadcareLicenseKeyTrialLimit'==_0x40ef09||'uploadcareLicenseKeyUsageLimit'==_0x40ef09){delete _0x5c013c[_0x10024b],_0x561a8d=_0x40ef09,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x561a8d&&_0x5c013c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x561a8d&&_0x5c013c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x561a8d&&_0x5c013c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x561a8d&&_0x5c013c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x561a8d&&_0x5c013c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x561a8d&&_0x5c013c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x561a8d&&_0x5c013c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4dbe6f}=this,_0x5956ff=_0x4dbe6f['commands']['get']('uploadcare');if(!_0x5956ff)return;const _0x12fcdd=this['_normalizeConfigSourceList'](_0x4dbe6f['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x306015,_0xf18792)=>{const _0x5d8b5d=this['_getIntegrationKey'](_0xf18792['type']);return _0x306015[_0x5d8b5d]||(_0x306015[_0x5d8b5d]=[]),_0x306015[_0x5d8b5d]['push'](_0xf18792),_0x306015;},{});_0x4dbe6f['plugins']['has']('ImageInsertUI')&&_0x4dbe6f['commands']['get']('uploadcare')&&Object['entries'](_0x12fcdd)['forEach'](([_0x3c4608,_0x7d9ab3])=>{_0x4dbe6f['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3c4608,'observable':()=>_0x5956ff,'buttonViewCreator':()=>this['_createToolbarButton'](_0x7d9ab3),'formViewCreator':()=>this['_createDropdownButtons'](_0x7d9ab3),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x7d9ab3),'override':'assetManager'!==_0x3c4608});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x153e9f){const {locale:_0x54c9b9}=this['editor'];return _0x153e9f['map'](_0x295da0=>{const _0x3baa04=_(_0x54c9b9,_0x295da0,'Insert');switch(_0x295da0){case o['Local']:return{'icon':_0x3841fd,'type':o['Local'],..._0x3baa04};case o['URL']:return{'icon':_0x35918a,'type':o['URL'],..._0x3baa04};case o['Dropbox']:return{'icon':_0x4f2a65,'type':o['Dropbox'],..._0x3baa04};case o['Facebook']:return{'icon':_0x382660,'type':o['Facebook'],..._0x3baa04};case o['GDrive']:return{'icon':_0xaafc63,'type':o['GDrive'],..._0x3baa04};case o['GPhotos']:return{'icon':_0x51cc7e,'type':o['GPhotos'],..._0x3baa04};case o['OneDrive']:return{'icon':_0x1210a7,'type':o['OneDrive'],..._0x3baa04};}});}['_getIntegrationKey'](_0x3ab8c2){switch(_0x3ab8c2){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2cf55c,_0x432c50){const _0x2c8f35=this['editor'],_0x244ab5=new _0x2cf55c(_0x2c8f35['locale']),_0x3c3630=_0x2c8f35['commands']['get']('uploadcare');return _0x244ab5['bind']('isEnabled')['to'](_0x3c3630),_0x244ab5['on']('execute',()=>{_0x3c3630['execute'](_0x432c50);}),_0x244ab5;}['_createToolbarButton'](_0x308ba9){const {locale:_0x2bcead}=this['editor'],_0x465905=this['editor']['plugins']['get']('ImageInsertUI'),_0x3be14c=_0x308ba9[0x0],_0x1c1630=this['_createButton'](_0x3b326e,_0x3be14c['type']);return _0x1c1630['icon']=_0x3be14c['icon'],_0x1c1630['bind']('label')['to'](_0x465905,'isImageSelected',_0x173eed=>_(_0x2bcead,_0x3be14c['type'],_0x173eed?'Replace':'Insert')['text']),_0x1c1630['tooltip']=!0x0,_0x1c1630;}['_createDropdownButtons'](_0x3cfeda){const {locale:_0xff65e4}=this['editor'],_0x43917a=this['editor']['plugins']['get']('ImageInsertUI');return _0x3cfeda['map'](_0x2c9dd8=>{const _0x3ff85a=this['_createButton'](_0x3b326e,_0x2c9dd8['type']);return _0x3ff85a['withText']=!0x0,_0x3ff85a['icon']=_0x2c9dd8['icon'],_0x3ff85a['bind']('label')['to'](_0x43917a,'isImageSelected',_0x19a281=>_(_0xff65e4,_0x2c9dd8['type'],_0x19a281?'Replace':'Insert')['text']),_0x3ff85a;});}['_createMenuBarButtons'](_0x5e888c){return _0x5e888c['map'](_0xf4260=>{const _0x137d12=this['_createButton'](_0xb5a320,_0xf4260['type']);return _0x137d12['icon']=_0xf4260['icon'],_0x137d12['label']=_0xf4260['shortText'],_0x137d12;});}}class q extends _0x911a6f{['focusTracker'];['focusCycler'];constructor(_0x1c1197){super(_0x1c1197),this['focusTracker']=new _0x23cd0c(),this['focusCycler']=new _0x40b10c({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x4d88ab){super(_0x4d88ab),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0xf6b6e,_0x580c31){const _0x44405e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x51c08d=>_0x51c08d<=_0x580c31)['map'](_0x57faae=>_0xf6b6e['replace'](/\/$/,'')+'/-/resize/'+_0x57faae+'x/\x20'+_0x57faae+'w');return{'imageFallbackUrl':_0xf6b6e,'imageSources':[{'srcset':_0x44405e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x580c31+'px)\x20100vw,\x20'+_0x580c31+'px','type':'image/webp'}]};}function A(_0x5e403d,_0x1b97e8,_0x206bb5){const _0xf74aa2=_0x5e403d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xf74aa2?parseInt(_0xf74aa2[0x1],0xa):_0x1b97e8,'height':_0xf74aa2?parseInt(_0xf74aa2[0x2],0xa):_0x206bb5};}function m(_0x5a31f0,_0x2fa5a3){const _0x4424ae=Object['create'](_0x582cdd),_0x804dd1=_0x5a31f0['plugins']['get']('ImageUtils'),_0x51c5c3=_0x5a31f0['editing']['mapper']['toViewElement'](_0x2fa5a3),_0x53e1d1=_0x804dd1['findViewImgElement'](_0x51c5c3),_0xaa028=_0x5a31f0['editing']['view']['domConverter']['viewToDom'](_0x53e1d1),_0x353898=_0x2fa5a3['getAttribute']('width'),_0x18832e=_0x2fa5a3['getAttribute']('height'),_0x316984='image-processing';_0x5a31f0['editing']['view']['change'](_0x3af5e6=>{_0x3af5e6['addClass'](_0x316984,_0x51c5c3),_0x3af5e6['setStyle']('aspect-ratio',_0x353898+'/'+_0x18832e,_0x53e1d1);}),_0x4424ae['listenTo'](_0xaa028,'load',()=>{_0x4424ae['stopListening'](_0xaa028,'load'),_0x5a31f0['editing']['view']['change'](_0x24d4d1=>{_0x24d4d1['removeClass'](_0x316984,_0x51c5c3),_0x24d4d1['removeStyle']('aspect-ratio',_0x53e1d1);});});}function V(_0x5d4d2e){if(Array['isArray'](_0x5d4d2e)){const _0x56a95d=_0x5d4d2e['map'](V);return _0x3746d1=>_0x56a95d['some'](_0x505af2=>_0x505af2(_0x3746d1));}if('origin'==_0x5d4d2e){const _0x230e8f=_0x1106f9['window']['location']['origin'];return _0x4700c8=>new URL(_0x4700c8,_0x1106f9['document']['baseURI'])['origin']==_0x230e8f;}return'function'==typeof _0x5d4d2e?_0x5d4d2e:_0x5d4d2e instanceof RegExp?_0x3f8402=>!(!_0x3f8402['match'](_0x5d4d2e)&&!_0x3f8402['replace'](/^https?:\/\//,'')['match'](_0x5d4d2e)):()=>!0x1;}function F(_0x4a6e8b,_0x5b0909){return _0x3a592e(_0x4a6e8b['target'])['includes'](_0x5b0909);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x553190(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1a4496,_0x4a29c2,_0x4ceb44){super(),this['_editor']=_0x1a4496,this['_editing']=_0x4a29c2,this['_dialog']=_0x1a4496['plugins']['get'](_0x594a43),this['_api']=_0x4a29c2['ctxElement']['getAPI'](),this['_type']=_0x4ceb44,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:_0x308f20,model:_0x2ee1cf}=this['_editor'],_0x5c09d6=_0x2ee1cf['document']['selection']['getSelectedElement'](),_0x3de412=_0x5c09d6&&(_0x5c09d6['is']('element','imageBlock')||_0x5c09d6['is']('element','imageInline'));this['_formView']=new S(_0x308f20),this['_dialog']['show']({'id':'uploadCare','icon':_0x3841fd,'title':_(_0x308f20,this['_type'],_0x3de412?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3a8e21['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x238b62=>!F(_0x238b62,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x18c3d6}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x6a283a=>{const _0x3f5244=_0x18c3d6['length'];for(const _0x37512d of _0x18c3d6){const _0xe307e=_0x37512d===_0x18c3d6[_0x3f5244-0x1],{cdnUrl:_0xd92213,fileInfo:_0x13452b}=_0x37512d;if(!_0xd92213||!_0x13452b)continue;const {width:_0x2d7a4e,height:_0x99b920}=_0x13452b['imageInfo'],_0x2080c4=A(_0xd92213,_0x2d7a4e,_0x99b920),_0x464674=E(_0xd92213,_0x2080c4['width']),_0x3db256={'id':_0x13452b['uuid'],'type':'image','attributes':{'imageDimension':_0x2080c4,..._0x464674}};this['_insertAsset'](_0x3db256,_0xe307e,_0x6a283a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3f88f2=>{'idle'===_0x3f88f2['detail']['status']&&!_0x3f88f2['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x284a80,_0xae9705,_0x1dc18c){const _0x56ddcb=this['_editor']['model']['document']['selection'],_0x121a36=_0x56ddcb['getSelectedElement'](),_0x1b5818=!(!_0x121a36||!_0x121a36['is']('element','imageInline'));_0x1dc18c['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x284a80,_0x1b5818),_0xae9705||_0x1dc18c['setSelection'](_0x56ddcb['getLastPosition']());}['_insertImage'](_0x47c6ae,_0x1fe96b){const _0x450c32=this['_editor'],{imageDimension:_0x56d025,imageFallbackUrl:_0x4f862a,imageSources:_0x3be5ae}=_0x47c6ae['attributes'];_0x450c32['execute']('insertImage',{'imageType':_0x1fe96b?'imageInline':null,'source':{'uploadcareImageId':_0x47c6ae['id'],'src':_0x4f862a,'sources':_0x3be5ae,..._0x56d025}});}}class n extends _0x2857bf{['_editing'];['_controller']=null;static get['requires'](){return[_0x594a43,i];}constructor(_0x460e24){super(_0x460e24),this['_editing']=_0x460e24['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x6397fa){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x6397fa);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1a5a52,publicKey:_0x27b255,signal:_0x1df43c,onProgress:_0xc53bc8}){return _0x3296af(_0x1a5a52,{'publicKey':_0x27b255,'store':'auto','signal':_0x1df43c,'onProgress':_0xc53bc8});}static['getInfo'](_0x154e90,_0x63c7b4){return _0x25a2d4(_0x154e90,_0x63c7b4);}}class p extends _0x11339b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3ae988,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x517f38=this['editor'];if(!!!_0x517f38['config']['get']('uploadcare'))return;_0x517f38['plugins']['get'](_0x3ae988)['createUploadAdapter']=_0x6b92b9=>new x(_0x6b92b9,_0x517f38),_0x517f38['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x458ab4,{imageElement:_0x2fa721,data:_0x3aaff2})=>{_0x517f38['model']['change'](_0xe2fac8=>{_0xe2fac8['setAttribute']('uploadcareImageId',_0x3aaff2['uploadcareImageId'],_0x2fa721);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x4ad5be,_0x3a4be4){this['loader']=_0x4ad5be,this['editor']=_0x3a4be4,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x44eab7=this['editor']['config']['get']('uploadcare.pubkey'),_0x4f07e1=await this['loader']['file'];return C['upload']({'file':_0x4f07e1,'publicKey':_0x44eab7,'signal':this['controller']['signal'],'onProgress':_0x5c9a8d=>{_0x5c9a8d&&_0x5c9a8d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5c9a8d['value']);}})['then'](async _0x1c7065=>{const {imageFallbackUrl:_0x2f5436,imageSources:_0x2762fb}=E(_0x1c7065['cdnUrl'],_0x1c7065['imageInfo']['width']);return{'uploadcareImageId':_0x1c7065['uuid'],'default':_0x2f5436,'sources':_0x2762fb};})['catch'](()=>{const _0xec999b=t('Cannot\x20upload\x20file:')+('\x20'+_0x4f07e1['name']+'.');return Promise['reject'](_0xec999b);});}['abort'](){this['controller']['abort']();}}class i extends _0x11339b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x594a43];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x31a069=this['editor'];_0x31a069['commands']['add']('uploadcare',new n(_0x31a069));}['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 _0x23f6da=_0x1106f9['document']['querySelector']('input[uploadcare-file-input]');_0x23f6da&&_0x23f6da['remove']();}),async function(_0x1a3f6f){const _0x50f398=_0x44624c([0x74,0x75,0x55,0x4e,0x61,0x67,0x72,0x49,0x4b,0x6f,0x56,0x47,0x6a,0x62,0x44,0x54,0x69,0x45,0x34,0x32,0x4d,0x6e,0x78,0x73,0x57,0x66,0x77,0x4a,0x50,0x53,0x4f,0x51,0x33,0x38,0x31,0x6d,0x70,0x68,0x52,0x42,0x43,0x39,0x76,0x58,0x71,0x7a,0x48,0x63,0x5a,0x65,0x30,0x6c,0x6b,0x41,0x4c,0x64,0x37,0x46,0x59,0x79,0x36,0x35]),_0x5c3bdc=0x64278a2d,_0x866f1c=0x6420e255^_0x5c3bdc,_0x193f3b=window[_0x44624c([0x44,0x61,0x74,0x65])][_0x44624c([0x6e,0x6f,0x77])](),_0x371192=_0x1a3f6f[_0x44624c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3f6c7f=new window[(_0x44624c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11b693=>{_0x371192[_0x44624c([0x6f,0x6e,0x63,0x65])](_0x44624c([0x72,0x65,0x61,0x64,0x79]),_0x11b693);}),_0x566ca6={[_0x44624c([0x6b,0x74,0x79])]:_0x44624c([0x45,0x43]),[_0x44624c([0x75,0x73,0x65])]:_0x44624c([0x73,0x69,0x67]),[_0x44624c([0x63,0x72,0x76])]:_0x44624c([0x50,0x2d,0x32,0x35,0x36]),[_0x44624c([0x78])]:_0x44624c([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]),[_0x44624c([0x79])]:_0x44624c([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]),[_0x44624c([0x61,0x6c,0x67])]:_0x44624c([0x45,0x53,0x32,0x35,0x36])},_0x1dc128=_0x371192[_0x44624c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x44624c([0x67,0x65,0x74])](_0x44624c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x268364(){let _0x820ae3,_0x48fbaf=null,_0x546d6c=null;try{if(_0x1dc128==_0x44624c([0x47,0x50,0x4c]))return _0x44624c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x820ae3=_0x351083(),!_0x820ae3)return _0x44624c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x820ae3[_0x44624c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x546d6c=_0x5cbc06(_0x820ae3[_0x44624c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x820ae3[_0x44624c([0x6a,0x74,0x69])])),await _0x35b4f6()?_0x5e94b0()?_0x3b9016()?_0x44624c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x585343()?(_0x820ae3[_0x44624c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44624c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x48fbaf=_0x180691(_0x44624c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x820ae3[_0x44624c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44624c([0x74,0x72,0x69,0x61,0x6c])&&(_0x48fbaf=_0x180691(_0x44624c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1b834c()):_0x44624c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x44624c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x44624c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3d65e9){return _0x44624c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b9016(){const _0x34641a=[_0x44624c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x44624c([0x74,0x72,0x69,0x61,0x6c])][_0x44624c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x820ae3[_0x44624c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x193f3b/0x3e8:0xe10*_0x866f1c;return _0x820ae3[_0x44624c([0x65,0x78,0x70])]<_0x34641a;}function _0x5e94b0(){const _0x45fda6=_0x820ae3[_0x44624c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x45fda6&&(!!_0x45fda6[_0x44624c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44624c([0x2a]))||!!_0x45fda6[_0x44624c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44624c([0x55,0x50,0x4c,0x43])));}function _0x585343(){const _0x1920fd=_0x820ae3[_0x44624c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1920fd||0x0==_0x1920fd[_0x44624c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53568e}=new URL(window[_0x44624c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1920fd[_0x44624c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53568e))return!0x0;const _0x2e9cf6=_0x53568e[_0x44624c([0x73,0x70,0x6c,0x69,0x74])](_0x44624c([0x2e]));return _0x1920fd[_0x44624c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2fa322=>_0x2fa322[_0x44624c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44624c([0x2a])))[_0x44624c([0x6d,0x61,0x70])](_0x2d765a=>_0x2d765a[_0x44624c([0x73,0x70,0x6c,0x69,0x74])](_0x44624c([0x2e])))[_0x44624c([0x73,0x6f,0x6d,0x65])](_0x7aea05=>_0x2e9cf6[_0x44624c([0x65,0x76,0x65,0x72,0x79])]((_0xfdaa44,_0x4f441d)=>_0x7aea05[_0x4f441d]===_0xfdaa44||_0x7aea05[_0x4f441d]===_0x44624c([0x2a])));}function _0x1b834c(){return _0x48fbaf&&_0x546d6c?new window[(_0x44624c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x525772,_0x36f754)=>{_0x48fbaf[_0x44624c([0x74,0x68,0x65,0x6e])](_0x525772,_0x36f754),_0x546d6c[_0x44624c([0x74,0x68,0x65,0x6e])](_0x1dc37c=>{_0x1dc37c!=_0x44624c([0x56,0x61,0x6c,0x69,0x64])&&_0x525772(_0x1dc37c);},_0x36f754);}):_0x48fbaf||_0x546d6c||_0x44624c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5cbc06(_0x43ffff,_0x3595e8){return new window[(_0x44624c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f2a02=>{if(_0x109440())return _0x2f2a02(_0x44624c([0x56,0x61,0x6c,0x69,0x64]));_0x1162a3(),_0x371192[_0x44624c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x44624c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5e42db=!0x1;const _0x4469b4=_0x2427cf();function _0x552d8d(_0x27cf01){return!!_0x27cf01&&(typeof _0x27cf01===_0x44624c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x27cf01===_0x44624c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x27cf01[_0x44624c([0x74,0x68,0x65,0x6e])]===_0x44624c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x27cf01[_0x44624c([0x63,0x61,0x74,0x63,0x68])]===_0x44624c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f36bd(_0x1a8a2b){_0x4ac7d5(_0x1a8a2b)[_0x44624c([0x74,0x68,0x65,0x6e])](_0x206f43=>{if(!_0x206f43||_0x206f43[_0x44624c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x44624c([0x6f,0x6b]))return _0x44624c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3bf003(_0x1787fc(_0x4469b4+_0x3595e8))!=_0x206f43[_0x44624c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x44624c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x44624c([0x56,0x61,0x6c,0x69,0x64]);})[_0x44624c([0x74,0x68,0x65,0x6e])](_0x477992=>(_0x4181ca(),_0x477992),()=>{const _0x37d5cf=_0x1cb5e0();return null==_0x37d5cf?(_0x4181ca(),_0x44624c([0x56,0x61,0x6c,0x69,0x64])):_0x44624c(_0x193f3b-_0x37d5cf>(0x402b0e2d^_0x5c3bdc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x44624c([0x74,0x68,0x65,0x6e])](_0x2f2a02)[_0x44624c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2f2a02(_0x44624c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1cad94=0x641164ad^_0x5c3bdc;function _0x4181ca(){const _0x150750=_0x44624c([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bf003(_0x1787fc(_0x43ffff)),_0x3d7eb3=_0x45a62e(_0x3bf003(window[_0x44624c([0x4d,0x61,0x74,0x68])][_0x44624c([0x63,0x65,0x69,0x6c])](_0x193f3b/_0x1cad94)));window[_0x44624c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44624c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x150750,_0x3d7eb3);}function _0x1cb5e0(){const _0x1bf8ac=_0x44624c([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bf003(_0x1787fc(_0x43ffff)),_0x39d30f=window[_0x44624c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44624c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1bf8ac);return _0x39d30f?window[_0x44624c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45a62e(_0x39d30f),0x10)*_0x1cad94:null;}function _0x4ac7d5(_0x3f8e4f){return new window[(_0x44624c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x554be7,_0x767d41)=>{_0x3f8e4f[_0x44624c([0x74,0x68,0x65,0x6e])](_0x554be7,_0x767d41),window[_0x44624c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x767d41,0x64265eed^_0x5c3bdc);});}}_0x371192[_0x44624c([0x6f,0x6e])](_0x44624c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xa65262,_0x2cb060)=>{if(_0x2cb060[0x0]!=_0x43ffff)return _0x2f2a02(_0x44624c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2cb060[0x1]={..._0x2cb060[0x1],[_0x44624c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4469b4};},{[_0x44624c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44624c([0x68,0x69,0x67,0x68])}),_0x371192[_0x44624c([0x6f,0x6e])](_0x44624c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19b646=>{_0x552d8d(_0x19b646[_0x44624c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5e42db=!0x0,_0x4f36bd(_0x19b646[_0x44624c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x44624c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44624c([0x6c,0x6f,0x77])}),_0x3f6c7f[_0x44624c([0x74,0x68,0x65,0x6e])](()=>{_0x5e42db||_0x2f2a02(_0x44624c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x109440(){return _0x371192[_0x44624c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44624c([0x76,0x69,0x65,0x77])][_0x44624c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x44624c([0x61,0x75,0x74,0x6f]);}function _0x1162a3(){_0x371192[_0x44624c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44624c([0x76,0x69,0x65,0x77])][_0x44624c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x44624c([0x61,0x75,0x74,0x6f]);}}function _0x180691(_0x12785d){const _0x44cfc0=[new window[(_0x44624c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8f093c=>setTimeout(_0x8f093c,0x642eb4e1^_0x5c3bdc)),_0x3f6c7f[_0x44624c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x44624c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1eb57b=>{let _0x373e91=0x0;_0x371192[_0x44624c([0x6d,0x6f,0x64,0x65,0x6c])][_0x44624c([0x6f,0x6e])](_0x44624c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4b4014,_0x216768)=>{_0x216768[0x0][_0x44624c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x373e91++,_0x373e91==(0x64278bd5^_0x5c3bdc)&&(_0x1eb57b(),_0x4b4014[_0x44624c([0x6f,0x66,0x66])]());});}))];return window[_0x44624c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x44624c([0x72,0x61,0x63,0x65])](_0x44cfc0)[_0x44624c([0x74,0x68,0x65,0x6e])](()=>_0x12785d);}async function _0x3344d3(){await _0x3f6c7f,_0x371192[_0x44624c([0x6d,0x6f,0x64,0x65,0x6c])][_0x44624c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e9ac3,_0x371192[_0x44624c([0x6d,0x6f,0x64,0x65,0x6c])][_0x44624c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e9ac3,_0x371192[_0x44624c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x44624c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b0eae(_0x4afb1e){const _0x11aeff=_0x274d3d();_0x371192[_0x11aeff]=_0x44624c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4afb1e,_0x4afb1e!=_0x44624c([0x56,0x61,0x6c,0x69,0x64])&&_0x3344d3();}function _0x274d3d(){const _0x18d5d4=window[_0x44624c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x44624c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x44624c([0x6e,0x6f,0x77])]())[_0x44624c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x44624c([0x2e]),'');let _0x13a74a=_0x44624c([0x74]);for(let _0x231b6e=0x0;_0x231b6e<_0x18d5d4[_0x44624c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x231b6e+=0x2){let _0x5a5d22=window[_0x44624c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18d5d4[_0x44624c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x231b6e,_0x231b6e+0x2));_0x5a5d22>=_0x50f398[_0x44624c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5a5d22-=_0x50f398[_0x44624c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x13a74a+=_0x50f398[_0x5a5d22];}return _0x13a74a;}function _0x351083(){const _0x3d4c54=_0x1dc128[_0x44624c([0x73,0x70,0x6c,0x69,0x74])](_0x44624c([0x2e]));if(0x3!=_0x3d4c54[_0x44624c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x26256c(_0x3d4c54[0x1]);function _0x26256c(_0x520a4c){const _0x443eed=_0x5a69a2(_0x520a4c);return _0x443eed&&_0x189b17()?_0x443eed:null;function _0x189b17(){const _0x2a9427=_0x443eed[_0x44624c([0x6a,0x74,0x69])],_0x201024=window[_0x44624c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a9427[_0x44624c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2a9427[_0x44624c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x41c68d={..._0x443eed,[_0x44624c([0x6a,0x74,0x69])]:_0x2a9427[_0x44624c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2a9427[_0x44624c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x41c68d[_0x44624c([0x76,0x63])],_0x1787fc(_0x41c68d)==_0x201024;}}}async function _0x35b4f6(){let _0x5634ef=!0x0;try{const _0x3c8e73=_0x1dc128[_0x44624c([0x73,0x70,0x6c,0x69,0x74])](_0x44624c([0x2e])),[_0x47e151,_0x47a2d2,_0x5f37c0]=_0x3c8e73;return _0xd67bb(_0x47e151),await _0x15bfee(_0x47e151,_0x47a2d2,_0x5f37c0),_0x5634ef;}catch(_0x3eb310){return!0x1;}function _0xd67bb(_0x293134){const _0x4f416d=_0x5a69a2(_0x293134);_0x4f416d&&_0x4f416d[_0x44624c([0x61,0x6c,0x67])]==_0x44624c([0x45,0x53,0x32,0x35,0x36])||(_0x5634ef=!0x1);}async function _0x15bfee(_0x34900f,_0x3587b4,_0x5386b4){const _0x2fc242=window[_0x44624c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x44624c([0x66,0x72,0x6f,0x6d])](_0x51fcb1(_0x5386b4),_0x3617f2=>_0x3617f2[_0x44624c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4551b6=new window[(_0x44624c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x44624c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x34900f+_0x44624c([0x2e])+_0x3587b4),_0x338f3e=window[_0x44624c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x44624c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x338f3e)return;const _0x7291da=await _0x338f3e[_0x44624c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x44624c([0x6a,0x77,0x6b]),_0x566ca6,{[_0x44624c([0x6e,0x61,0x6d,0x65])]:_0x44624c([0x45,0x43,0x44,0x53,0x41]),[_0x44624c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x44624c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x44624c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x338f3e[_0x44624c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x44624c([0x6e,0x61,0x6d,0x65])]:_0x44624c([0x45,0x43,0x44,0x53,0x41]),[_0x44624c([0x68,0x61,0x73,0x68])]:{[_0x44624c([0x6e,0x61,0x6d,0x65])]:_0x44624c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x7291da,_0x2fc242,_0x4551b6)||(_0x5634ef=!0x1);}}function _0x5a69a2(_0x1bdf3d){return _0x1bdf3d[_0x44624c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x44624c([0x65,0x79]))?JSON[_0x44624c([0x70,0x61,0x72,0x73,0x65])](_0x51fcb1(_0x1bdf3d)):null;}function _0x51fcb1(_0x2e356e){return window[_0x44624c([0x61,0x74,0x6f,0x62])](_0x2e356e[_0x44624c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x44624c([0x2b]))[_0x44624c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x44624c([0x2f])));}function _0x1787fc(_0x34d91f){let _0x6d0ec=0x1505;function _0x2ce0ea(_0x24fcec){for(let _0x29d6ee=0x0;_0x29d6ee<_0x24fcec[_0x44624c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29d6ee++){const _0x2435ad=_0x24fcec[_0x44624c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x29d6ee);_0x6d0ec=(_0x6d0ec<<0x5)+_0x6d0ec+_0x2435ad,_0x6d0ec&=_0x6d0ec;}}function _0x4d2a4f(_0x111733){Array[_0x44624c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x111733)?_0x111733[_0x44624c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4d2a4f):_0x111733&&typeof _0x111733==_0x44624c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x44624c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x111733)[_0x44624c([0x73,0x6f,0x72,0x74])]()[_0x44624c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x597a37,_0xc7826d])=>{_0x2ce0ea(_0x597a37),_0x4d2a4f(_0xc7826d);}):_0x2ce0ea(window[_0x44624c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x111733));}return _0x4d2a4f(_0x34d91f),_0x6d0ec>>>0x0;}function _0x3bf003(_0x546d40){return _0x546d40[_0x44624c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x44624c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x44624c([0x30]));}function _0x45a62e(_0x29c74f){return _0x29c74f[_0x44624c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x44624c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x44624c([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e9ac3(){}function _0x44624c(_0x56d0f4){return _0x56d0f4['map'](_0x19bc1b=>String['fromCharCode'](_0x19bc1b))['join']('');}_0x1b0eae(await _0x268364());}(this);}['_initSchema'](){const _0x3bbe82=this['editor']['model']['schema'];_0x3bbe82['isRegistered']('imageBlock')&&_0x3bbe82['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3bbe82['isRegistered']('imageInline')&&_0x3bbe82['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x448ae0=this['editor'];_0x448ae0['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x448ae0['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x32947a=>_0x32947a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3499cf=_0x448ae0['commands']['get']('replaceImageSource');_0x3499cf&&this['listenTo'](_0x3499cf,'cleanupImage',(_0x48c48d,[_0x4bc335,_0x3312a5])=>{_0x4bc335['removeAttribute']('uploadcareImageId',_0x3312a5);});}['_initConfig'](){const _0x43931e=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5a5fd=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2e8876(_0x1106f9['document'],'uc-config',{..._0x43931e,'pubkey':_0x5a5fd,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x599c88=>{if('closeMax'==_0x599c88)return'#uc-icon-arrow-down';},_0x1106f9['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2e8876(_0x1106f9['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x1106f9['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5d506c=this['editor']['commands']['get']('insertImage');_0x5d506c&&this['listenTo'](_0x5d506c,'execute',()=>{const _0x53dacd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x53dacd&&_0x53dacd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x53dacd);});});const _0x333855=this['editor']['commands']['get']('uploadcareImageReplace');_0x333855&&this['listenTo'](_0x333855,'execute',()=>{const _0x20b3d4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x20b3d4&&_0x20b3d4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x20b3d4);});});}}class u extends _0x11339b{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x149630){super(_0x149630),_0x149630['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x581df9['defineComponents'](_0x581df9);}}class ta extends _0x911a6f{constructor(_0x228f58){super(_0x228f58);const t=_0x228f58['t'],_0x2711e9=this['bindTemplate'],_0x3b0eb9=new _0x425d0d();_0x3b0eb9['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':[_0x3b0eb9,{'text':_0x2711e9['to']('imageUploadProgress',_0x43c55d=>t('Loading\x20image...')+'\x20('+(_0x43c55d||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x911a6f{constructor(_0x388923){super(_0x388923);const t=_0x388923['t'];this['set']('errorType',null);const _0x2a596b=new _0x3b326e(_0x388923);_0x2a596b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2a596b['withText']=!0x0,_0x2a596b['class']='ck-button-action',_0x2a596b['on']('execute',()=>{this['fire']('retry');}),_0x2a596b['bind']('isVisible')['to'](this,'errorType',_0x2ddd9b=>'NotFound'!==_0x2ddd9b);const _0x41c539=new at();_0x41c539['content']=et,_0x41c539['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4f0a89=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':[_0x41c539,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4f0a89['to']('errorType',_0x505a27=>t('NotFound'!==_0x505a27?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2a596b]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x911a6f{constructor(_0x318a3a,_0x5bf8d3){super(_0x318a3a);const _0x12f77=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5bf8d3,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x12f77['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x257e91,_0x553bd5,_0x383c8d){super(_0x257e91),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x257e91),this['_errorView']=new rt(_0x257e91),this['_editingView']=new tt(_0x257e91,_0x383c8d),this['_focusableView']=new _0x911a6f(_0x257e91),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x553bd5),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'],_0x3404e3=>{this['_addUploadcareImageEditorListeners'](_0x3404e3);});}),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'](_0x955dfa,_0x30bc83){const _0x29d222='uc-cloud-image-editor',_0x56a832=_0x955dfa['querySelector'](_0x29d222);if(_0x56a832)return _0x30bc83(_0x56a832);const _0x53a1c9=new MutationObserver(_0x3d0dec=>{const _0x2157e7=_0x3d0dec['filter'](_0x41df8c=>_0x41df8c['target']===_0x955dfa&&_0x41df8c['addedNodes']['length']>0x0&&_0x41df8c['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x29d222);_0x2157e7['length']&&(_0x53a1c9['disconnect'](),_0x30bc83(_0x2157e7[0x0]['addedNodes'][0x0]));});_0x53a1c9['observe'](_0x955dfa,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x175ef3){_0x175ef3['addEventListener']('apply',_0x203cef=>{this['fire']('apply',{'imageSrc':_0x203cef['detail']['cdnUrl']});}),_0x175ef3['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x553190(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x48b4da,_0xa4c345,_0x3c2ba7){super(),this['_editor']=_0x48b4da,this['_dialog']=_0xa4c345,this['_imageElement']=_0x3c2ba7,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 _0x2dd247=this['_imageElement'],_0x6f6f49=_0x2dd247['getAttribute']('uploadcareImageId'),_0x3c7f5e=_0x2dd247['getAttribute']('src');if(_0x6f6f49)await this['_loadImageInfo'](_0x6f6f49,_0x3c7f5e);else{if(this['_imageCache']['has'](_0x3c7f5e)){const _0x1010c7=this['_imageCache']['get'](_0x3c7f5e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1010c7['url'],this['imageDimension']=_0x1010c7['dimension'],this['imageId']=_0x1010c7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x21d685}=this['_editor'],t=_0x21d685['t'],_0x1bceef=new Z(_0x21d685,this['imageStatus'],this['_attributes']);_0x1bceef['bind']('status')['to'](this,'imageStatus'),_0x1bceef['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1bceef['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1bceef['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1bceef,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3b797a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1bceef,'position':_0x3a8e21['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1bceef['focus']();},'onHide':()=>{_0x1bceef['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x41cfc0=>!F(_0x41cfc0,_0x1bceef['element'])}});}['_loadImageInfo'](_0x2cd807,_0x10b9ab){return C['getInfo'](_0x2cd807,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5c09d3=>{const {width:_0x33bb01,height:_0x549d62}=_0x5c09d3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x10b9ab,this['imageDimension']={'width':_0x33bb01,'height':_0x549d62},this['imageId']=_0x2cd807;})['catch'](_0x5c346d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5c346d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5e8098,_0x921684){return this['_getImageAsFile'](_0x5e8098)['then'](_0x1f078f=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x921684['signal'],'file':_0x1f078f,'onProgress':_0x2fa46f=>{_0x2fa46f&&_0x2fa46f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2fa46f['value']));}}))['then'](_0x21b14b=>{const {width:_0x4261a4,height:_0x9e61af}=_0x21b14b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x21b14b['cdnUrl'],this['imageDimension']={'width':_0x4261a4,'height':_0x9e61af},this['imageId']=_0x21b14b['uuid'],this['imageUploadProgress']=null;const _0xfd268=_0x5e8098['getAttribute']('src');this['_imageCache']['set'](_0xfd268,{'id':_0x21b14b['uuid'],'url':_0x21b14b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x472ace=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x472ace['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x805895,_0x13b1dd){_0x805895['on']('apply',(_0x29a4ef,_0x648583)=>{this['_replaceImage'](_0x13b1dd,_0x648583['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x805895['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x805895['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2c33f7,_0x2a554e,_0x1a7284){const _0x48be06=this['_editor'],{width:_0x4ce586,height:_0x309e2a}=A(_0x2a554e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2f02e7,imageSources:_0x3845e2}=E(_0x2a554e,_0x4ce586);_0x48be06['model']['change'](_0x1f15db=>{if('$graveyard'===_0x2c33f7['root']['rootName']){_0x48be06['execute']('insertImage',{'imageType':_0x2c33f7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2c33f7['getAttributes']()),'uploadcareImageId':_0x1a7284,'src':_0x2f02e7,'sources':_0x3845e2,'width':_0x4ce586,'height':_0x309e2a}});const _0x5dce52=_0x2c33f7['getChildren']();_0x2c33f7=_0x48be06['model']['document']['selection']['getSelectedElement']();for(const _0x161293 of _0x5dce52)_0x1f15db['append'](_0x1f15db['cloneElement'](_0x161293),_0x2c33f7);}else _0x1f15db['setSelection'](_0x2c33f7,'on'),_0x48be06['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2c33f7['getAttributes']()),'uploadcareImageId':_0x1a7284,'src':_0x2f02e7,'sources':_0x3845e2,'width':_0x4ce586,'height':_0x309e2a},_0x2c33f7);_0x1f15db['setSelection'](_0x2c33f7,'on');});}async['_getImageAsFile'](_0x200c7c){const _0x5c5723=_0x1106f9['window'],_0x4611be=_0x1106f9['document']['location']['href'],_0x213cd8=new _0x5c5723['URL'](_0x200c7c['getAttribute']('src'),_0x4611be);if('data:'===_0x213cd8['protocol']){const _0x1412e1=_0x213cd8['href']['split'](','),_0x5a6712=_0x1412e1[0x0]['match'](/:(.*?);/)[0x1],_0x31eed0=_0x5a6712['split']('/')[0x1],_0xe9bc5b=_0x5c5723['atob'](_0x1412e1[_0x1412e1['length']-0x1]);let _0x283829=_0xe9bc5b['length'];const _0x255afe=new _0x5c5723['Uint8Array'](_0x283829);for(;_0x283829--;)_0x255afe[_0x283829]=_0xe9bc5b['charCodeAt'](_0x283829);return new _0x5c5723['File']([_0x255afe],'image.'+_0x31eed0,{'type':_0x5a6712});}const _0x3f2431=_0x213cd8['href']['split']('/'),_0x34ed8a=_0x3f2431[_0x3f2431['length']-0x1],_0x58dd9f=_0x34ed8a['split']('.')[0x1];return _0x5c5723['fetch'](_0x213cd8['href'])['then'](_0x1608bc=>_0x1608bc['clone']()['blob']())['then'](_0x5ccf75=>new _0x5c5723['File']([_0x5ccf75],_0x34ed8a,{'type':'image/'+_0x58dd9f}));}}class J extends _0x2857bf{['imageEditController'];static get['requires'](){return[_0x594a43];}['_isEditable'];constructor(_0x4624ac){super(_0x4624ac),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x384c9d){const _0xe3c0f1=V(_0x384c9d);return _0x5da054=>!(!_0x5da054||!_0x5da054['is']('element','imageBlock')&&!_0x5da054['is']('element','imageInline'))&&(!!_0x5da054['hasAttribute']('uploadcareImageId')||!!_0x5da054['hasAttribute']('src')&&_0xe3c0f1(_0x5da054['getAttribute']('src')));}(_0x4624ac['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xdfd66b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xdfd66b);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x170c45=this['editor']['model']['document']['selection']['getSelectedElement']();_0x170c45&&(_0x170c45['is']('element','imageBlock')||_0x170c45['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x594a43),_0x170c45),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2857bf{['refresh'](){const _0x30a254=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x30a254&&(_0x30a254['is']('element','imageBlock')||_0x30a254['is']('element','imageInline')));}['execute'](_0x4885ea){const _0x4bfc4f=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x31cd36=>{_0x31cd36['setAttributes'](_0x4885ea,_0x4bfc4f),_0x31cd36['removeAttribute']('srcset',_0x4bfc4f),_0x31cd36['removeAttribute']('sizes',_0x4bfc4f);});}}class g extends _0x11339b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x10d740,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1da676}=this;_0x1da676['commands']['add']('uploadcareImageEdit',new J(_0x1da676)),_0x1da676['commands']['add']('uploadcareImageReplace',new O(_0x1da676));}}class j extends _0x11339b{['_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 _0x31bf56=this['editor'];_0x31bf56['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1f9210=>{const _0x14050b=_0x31bf56['commands']['get']('uploadcareImageEdit'),_0x218697=new _0x3b326e(_0x1f9210),t=_0x1f9210['t'];return _0x218697['set']({'icon':_0x3b797a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x218697['bind']('isEnabled')['to'](_0x14050b),_0x218697['bind']('isOn')['to'](_0x14050b,'isActive'),this['listenTo'](_0x218697,'execute',()=>{_0x31bf56['execute']('uploadcareImageEdit'),_0x31bf56['editing']['view']['focus']();}),_0x218697;}),this['_initConfig']();}['_initConfig'](){const _0x18e18a=_0x2e8876(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x18e18a),this['listenTo'](this['editor'],'destroy',()=>{_0x18e18a['remove']();});}}class P extends _0x11339b{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x4ccabe,Command as _0x1f121c}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4776e9,IconGooglePhotos as _0x148e31,IconGoogleDrive as _0x4d31d7,IconFacebook as _0x48d634,IconDropbox as _0x4c48cd,IconUploadcareLink as _0xb3ae16,IconUploadcareImageUpload as _0x225825,IconError as et,IconUploadcareImageEdit as _0x35790c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x171128,MenuBarMenuListItemButtonView as _0x4d6005,View as _0xeadad4,FocusCycler as _0x1379f7,Dialog as _0x113065,DialogViewPosition as _0xdb3862,SpinnerView as _0x57f954,IconView as at,Notification as _0x56e4cb}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1d74d3,DomEmitterMixin as _0x552dad,global as _0xd3f9e6,getAncestors as _0x3d8ce1,ObservableMixin as _0x1cfdc6,createElement as _0x92306,uid as _0x3c3dde}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x57679b}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x217590,info as _0x4a6334}from'@uploadcare/upload-client';import*as _0x50c149 from'@uploadcare/file-uploader';var o=function(_0x5bf381){return _0x5bf381['Local']='local',_0x5bf381['URL']='url',_0x5bf381['Dropbox']='dropbox',_0x5bf381['GDrive']='gdrive',_0x5bf381['Facebook']='facebook',_0x5bf381['GPhotos']='gphotos',_0x5bf381['OneDrive']='onedrive',_0x5bf381;}({});function _(_0x1a5987,_0x1d29f2,_0x1b7d5d){const t=_0x1a5987['t'],_0x2ab69d=_0x1a5987['t'];switch(_0x1d29f2){case o['Local']:return{'text':_0x2ab69d('Insert'===_0x1b7d5d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2ab69d('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x1b7d5d?_0x2ab69d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2ab69d('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x1b7d5d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x1b7d5d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x1b7d5d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x1b7d5d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x1b7d5d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1d29f2;}}class e extends _0x4ccabe{['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 _0x37c37=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x32b054;for(const _0x2031ee in _0x37c37){const _0xd5c972=_0x2031ee,_0x546dba=_0x37c37[_0xd5c972];if('uploadcareLicenseKeyValid'==_0x546dba||'uploadcareLicenseKeyInvalid'==_0x546dba||'uploadcareLicenseKeyExpired'==_0x546dba||'uploadcareLicenseKeyDomainLimit'==_0x546dba||'uploadcareLicenseKeyNotAllowed'==_0x546dba||'uploadcareLicenseKeyEvaluationLimit'==_0x546dba||'uploadcareLicenseKeyTrialLimit'==_0x546dba||'uploadcareLicenseKeyUsageLimit'==_0x546dba){delete _0x37c37[_0xd5c972],_0x32b054=_0x546dba,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x32b054&&_0x37c37['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x32b054&&_0x37c37['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x32b054&&_0x37c37['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x32b054&&_0x37c37['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x32b054&&_0x37c37['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x32b054&&_0x37c37['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x32b054&&_0x37c37['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x41abc1}=this,_0x2de904=_0x41abc1['commands']['get']('uploadcare');if(!_0x2de904)return;const _0x10d39c=this['_normalizeConfigSourceList'](_0x41abc1['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5d3b93,_0x43d566)=>{const _0x1b927b=this['_getIntegrationKey'](_0x43d566['type']);return _0x5d3b93[_0x1b927b]||(_0x5d3b93[_0x1b927b]=[]),_0x5d3b93[_0x1b927b]['push'](_0x43d566),_0x5d3b93;},{});_0x41abc1['plugins']['has']('ImageInsertUI')&&_0x41abc1['commands']['get']('uploadcare')&&Object['entries'](_0x10d39c)['forEach'](([_0x3b8dc4,_0x4a0687])=>{_0x41abc1['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3b8dc4,'observable':()=>_0x2de904,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4a0687),'formViewCreator':()=>this['_createDropdownButtons'](_0x4a0687),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4a0687),'override':'assetManager'!==_0x3b8dc4});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xa08805){const {locale:_0x9f0eb1}=this['editor'];return _0xa08805['map'](_0x455c1b=>{const _0x5de406=_(_0x9f0eb1,_0x455c1b,'Insert');switch(_0x455c1b){case o['Local']:return{'icon':_0x225825,'type':o['Local'],..._0x5de406};case o['URL']:return{'icon':_0xb3ae16,'type':o['URL'],..._0x5de406};case o['Dropbox']:return{'icon':_0x4c48cd,'type':o['Dropbox'],..._0x5de406};case o['Facebook']:return{'icon':_0x48d634,'type':o['Facebook'],..._0x5de406};case o['GDrive']:return{'icon':_0x4d31d7,'type':o['GDrive'],..._0x5de406};case o['GPhotos']:return{'icon':_0x148e31,'type':o['GPhotos'],..._0x5de406};case o['OneDrive']:return{'icon':_0x4776e9,'type':o['OneDrive'],..._0x5de406};}});}['_getIntegrationKey'](_0xfb97b6){switch(_0xfb97b6){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x409a20,_0x2c28a2){const _0x5d5150=this['editor'],_0x55360c=new _0x409a20(_0x5d5150['locale']),_0x5ab577=_0x5d5150['commands']['get']('uploadcare');return _0x55360c['bind']('isEnabled')['to'](_0x5ab577),_0x55360c['on']('execute',()=>{_0x5ab577['execute'](_0x2c28a2);}),_0x55360c;}['_createToolbarButton'](_0x51ed71){const {locale:_0x1f3c07}=this['editor'],_0x507154=this['editor']['plugins']['get']('ImageInsertUI'),_0x7e0987=_0x51ed71[0x0],_0x46b39b=this['_createButton'](_0x171128,_0x7e0987['type']);return _0x46b39b['icon']=_0x7e0987['icon'],_0x46b39b['bind']('label')['to'](_0x507154,'isImageSelected',_0x36147d=>_(_0x1f3c07,_0x7e0987['type'],_0x36147d?'Replace':'Insert')['text']),_0x46b39b['tooltip']=!0x0,_0x46b39b;}['_createDropdownButtons'](_0x446c18){const {locale:_0x4a6ae1}=this['editor'],_0x4d1648=this['editor']['plugins']['get']('ImageInsertUI');return _0x446c18['map'](_0x888e6e=>{const _0x521feb=this['_createButton'](_0x171128,_0x888e6e['type']);return _0x521feb['withText']=!0x0,_0x521feb['icon']=_0x888e6e['icon'],_0x521feb['bind']('label')['to'](_0x4d1648,'isImageSelected',_0x192ac0=>_(_0x4a6ae1,_0x888e6e['type'],_0x192ac0?'Replace':'Insert')['text']),_0x521feb;});}['_createMenuBarButtons'](_0x4529da){return _0x4529da['map'](_0x22fbc8=>{const _0x4d8f17=this['_createButton'](_0x4d6005,_0x22fbc8['type']);return _0x4d8f17['icon']=_0x22fbc8['icon'],_0x4d8f17['label']=_0x22fbc8['shortText'],_0x4d8f17;});}}class q extends _0xeadad4{['focusTracker'];['focusCycler'];constructor(_0x46d8de){super(_0x46d8de),this['focusTracker']=new _0x1d74d3(),this['focusCycler']=new _0x1379f7({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x262e50){super(_0x262e50),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x354a90,_0xf35bbe){const _0x5f7746=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x319663=>_0x319663<=_0xf35bbe)['map'](_0x2f191b=>_0x354a90['replace'](/\/$/,'')+'/-/resize/'+_0x2f191b+'x/\x20'+_0x2f191b+'w');return{'imageFallbackUrl':_0x354a90,'imageSources':[{'srcset':_0x5f7746['join'](',\x20'),'sizes':'(max-width:\x20'+_0xf35bbe+'px)\x20100vw,\x20'+_0xf35bbe+'px','type':'image/webp'}]};}function A(_0x12030d,_0x24ceff,_0x15b336){const _0x3e8023=_0x12030d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3e8023?parseInt(_0x3e8023[0x1],0xa):_0x24ceff,'height':_0x3e8023?parseInt(_0x3e8023[0x2],0xa):_0x15b336};}function m(_0x5c9257,_0x58069c){const _0x35c665=Object['create'](_0x552dad),_0x49889e=_0x5c9257['plugins']['get']('ImageUtils'),_0x5ce329=_0x5c9257['editing']['mapper']['toViewElement'](_0x58069c),_0xd3d95a=_0x49889e['findViewImgElement'](_0x5ce329),_0x2d7f08=_0x5c9257['editing']['view']['domConverter']['viewToDom'](_0xd3d95a),_0x12bf79=_0x58069c['getAttribute']('width'),_0x170b3e=_0x58069c['getAttribute']('height'),_0x45a575='image-processing';_0x5c9257['editing']['view']['change'](_0x1f8653=>{_0x1f8653['addClass'](_0x45a575,_0x5ce329),_0x1f8653['setStyle']('aspect-ratio',_0x12bf79+'/'+_0x170b3e,_0xd3d95a);}),_0x35c665['listenTo'](_0x2d7f08,'load',()=>{_0x35c665['stopListening'](_0x2d7f08,'load'),_0x5c9257['editing']['view']['change'](_0x2be4b8=>{_0x2be4b8['removeClass'](_0x45a575,_0x5ce329),_0x2be4b8['removeStyle']('aspect-ratio',_0xd3d95a);});});}function V(_0x282fba){if(Array['isArray'](_0x282fba)){const _0x2f0847=_0x282fba['map'](V);return _0x434cdb=>_0x2f0847['some'](_0x476d5b=>_0x476d5b(_0x434cdb));}if('origin'==_0x282fba){const _0x5b7451=_0xd3f9e6['window']['location']['origin'];return _0x57a15e=>new URL(_0x57a15e,_0xd3f9e6['document']['baseURI'])['origin']==_0x5b7451;}return'function'==typeof _0x282fba?_0x282fba:_0x282fba instanceof RegExp?_0x388528=>!(!_0x388528['match'](_0x282fba)&&!_0x388528['replace'](/^https?:\/\//,'')['match'](_0x282fba)):()=>!0x1;}function F(_0x3d8f5f,_0x4a4ef4){return _0x3d8ce1(_0x3d8f5f['target'])['includes'](_0x4a4ef4);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1cfdc6(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4a06f0,_0x541463,_0x98e65d){super(),this['_editor']=_0x4a06f0,this['_editing']=_0x541463,this['_dialog']=_0x4a06f0['plugins']['get'](_0x113065),this['_api']=_0x541463['ctxElement']['getAPI'](),this['_type']=_0x98e65d,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:_0x1ed826,model:_0x4e1016}=this['_editor'],_0x39e7f5=_0x4e1016['document']['selection']['getSelectedElement'](),_0x3460a2=_0x39e7f5&&(_0x39e7f5['is']('element','imageBlock')||_0x39e7f5['is']('element','imageInline'));this['_formView']=new S(_0x1ed826),this['_dialog']['show']({'id':'uploadCare','icon':_0x225825,'title':_(_0x1ed826,this['_type'],_0x3460a2?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xdb3862['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1f7cc8=>!F(_0x1f7cc8,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5db9da}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x35481e=>{const _0x459a8f=_0x5db9da['length'];for(const _0x255878 of _0x5db9da){const _0x475276=_0x255878===_0x5db9da[_0x459a8f-0x1],{cdnUrl:_0x2b1da7,fileInfo:_0x2fd328}=_0x255878;if(!_0x2b1da7||!_0x2fd328)continue;const {width:_0x4644b5,height:_0x3f8551}=_0x2fd328['imageInfo'],_0x11d08f=A(_0x2b1da7,_0x4644b5,_0x3f8551),_0xb4574c=E(_0x2b1da7,_0x11d08f['width']),_0x4337a9={'id':_0x2fd328['uuid'],'type':'image','attributes':{'imageDimension':_0x11d08f,..._0xb4574c}};this['_insertAsset'](_0x4337a9,_0x475276,_0x35481e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5d97b5=>{'idle'===_0x5d97b5['detail']['status']&&!_0x5d97b5['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x48881a,_0x321ca0,_0x810aa7){const _0x5a86b4=this['_editor']['model']['document']['selection'],_0x187634=_0x5a86b4['getSelectedElement'](),_0x24f4b7=!(!_0x187634||!_0x187634['is']('element','imageInline'));_0x810aa7['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x48881a,_0x24f4b7),_0x321ca0||_0x810aa7['setSelection'](_0x5a86b4['getLastPosition']());}['_insertImage'](_0x5c2a3d,_0x28d6a5){const _0x5def76=this['_editor'],{imageDimension:_0x2e903b,imageFallbackUrl:_0x183d5b,imageSources:_0x292276}=_0x5c2a3d['attributes'];_0x5def76['execute']('insertImage',{'imageType':_0x28d6a5?'imageInline':null,'source':{'uploadcareImageId':_0x5c2a3d['id'],'src':_0x183d5b,'sources':_0x292276,..._0x2e903b}});}}class n extends _0x1f121c{['_editing'];['_controller']=null;static get['requires'](){return[_0x113065,i];}constructor(_0x13c614){super(_0x13c614),this['_editing']=_0x13c614['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x56abf1){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x56abf1);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5d9019,publicKey:_0x33d023,signal:_0xff52f5,onProgress:_0x47d70c}){return _0x217590(_0x5d9019,{'publicKey':_0x33d023,'store':'auto','signal':_0xff52f5,'onProgress':_0x47d70c});}static['getInfo'](_0x5cee14,_0x1bff37){return _0x4a6334(_0x5cee14,_0x1bff37);}}class p extends _0x4ccabe{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x57679b,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x22d6bc=this['editor'];if(!!!_0x22d6bc['config']['get']('uploadcare'))return;_0x22d6bc['plugins']['get'](_0x57679b)['createUploadAdapter']=_0x4096b3=>new x(_0x4096b3,_0x22d6bc),_0x22d6bc['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xc6f681,{imageElement:_0x476184,data:_0x11b7b4})=>{_0x22d6bc['model']['change'](_0x3c9750=>{_0x3c9750['setAttribute']('uploadcareImageId',_0x11b7b4['uploadcareImageId'],_0x476184);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x3b173f,_0x2186be){this['loader']=_0x3b173f,this['editor']=_0x2186be,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x46a5fa=this['editor']['config']['get']('uploadcare.pubkey'),_0x3f7ec4=await this['loader']['file'];return C['upload']({'file':_0x3f7ec4,'publicKey':_0x46a5fa,'signal':this['controller']['signal'],'onProgress':_0x369619=>{_0x369619&&_0x369619['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x369619['value']);}})['then'](async _0xca707c=>{const {imageFallbackUrl:_0x29a16d,imageSources:_0x10124d}=E(_0xca707c['cdnUrl'],_0xca707c['imageInfo']['width']);return{'uploadcareImageId':_0xca707c['uuid'],'default':_0x29a16d,'sources':_0x10124d};})['catch'](()=>{const _0x3141dc=t('Cannot\x20upload\x20file:')+('\x20'+_0x3f7ec4['name']+'.');return Promise['reject'](_0x3141dc);});}['abort'](){this['controller']['abort']();}}class i extends _0x4ccabe{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x113065];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x398ae3=this['editor'];_0x398ae3['commands']['add']('uploadcare',new n(_0x398ae3));}['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 _0x42aef3=_0xd3f9e6['document']['querySelector']('input[uploadcare-file-input]');_0x42aef3&&_0x42aef3['remove']();}),async function(_0x3ae091){const _0x3f05ef=_0x43abe4([0x32,0x76,0x4d,0x4b,0x51,0x44,0x49,0x6d,0x56,0x77,0x34,0x42,0x6f,0x70,0x4c,0x30,0x5a,0x50,0x57,0x53,0x65,0x63,0x4e,0x6b,0x6e,0x35,0x39,0x45,0x72,0x62,0x4f,0x6a,0x36,0x59,0x54,0x73,0x61,0x48,0x55,0x38,0x69,0x58,0x47,0x46,0x79,0x37,0x31,0x68,0x64,0x71,0x78,0x66,0x67,0x52,0x33,0x75,0x43,0x4a,0x7a,0x74,0x41,0x6c]),_0xba4699=0x10876822,_0x34a2cb=0x1080008a^_0xba4699,_0x52ae4c=window[_0x43abe4([0x44,0x61,0x74,0x65])][_0x43abe4([0x6e,0x6f,0x77])](),_0x390a5f=_0x3ae091[_0x43abe4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa1018=new window[(_0x43abe4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33cc7a=>{_0x390a5f[_0x43abe4([0x6f,0x6e,0x63,0x65])](_0x43abe4([0x72,0x65,0x61,0x64,0x79]),_0x33cc7a);}),_0x2d998c={[_0x43abe4([0x6b,0x74,0x79])]:_0x43abe4([0x45,0x43]),[_0x43abe4([0x75,0x73,0x65])]:_0x43abe4([0x73,0x69,0x67]),[_0x43abe4([0x63,0x72,0x76])]:_0x43abe4([0x50,0x2d,0x32,0x35,0x36]),[_0x43abe4([0x78])]:_0x43abe4([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]),[_0x43abe4([0x79])]:_0x43abe4([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]),[_0x43abe4([0x61,0x6c,0x67])]:_0x43abe4([0x45,0x53,0x32,0x35,0x36])},_0x5df782=_0x390a5f[_0x43abe4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x43abe4([0x67,0x65,0x74])](_0x43abe4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xf00044(){let _0x458ed8,_0x45f449=null,_0x29dc52=null;try{if(_0x5df782==_0x43abe4([0x47,0x50,0x4c]))return _0x43abe4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x458ed8=_0x32a70b(),!_0x458ed8)return _0x43abe4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x458ed8[_0x43abe4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x29dc52=_0x26c694(_0x458ed8[_0x43abe4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x458ed8[_0x43abe4([0x6a,0x74,0x69])])),await _0x31f47c()?_0x15756f()?_0x38f2d0()?_0x43abe4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x344a5e()?(_0x458ed8[_0x43abe4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43abe4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x45f449=_0x5b00ec(_0x43abe4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x458ed8[_0x43abe4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43abe4([0x74,0x72,0x69,0x61,0x6c])&&(_0x45f449=_0x5b00ec(_0x43abe4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b0744()):_0x43abe4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x43abe4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x43abe4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x37924a){return _0x43abe4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x38f2d0(){const _0x583199=[_0x43abe4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x43abe4([0x74,0x72,0x69,0x61,0x6c])][_0x43abe4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x458ed8[_0x43abe4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x52ae4c/0x3e8:0xe10*_0x34a2cb;return _0x458ed8[_0x43abe4([0x65,0x78,0x70])]<_0x583199;}function _0x15756f(){const _0x520483=_0x458ed8[_0x43abe4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x520483&&(!!_0x520483[_0x43abe4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43abe4([0x2a]))||!!_0x520483[_0x43abe4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43abe4([0x55,0x50,0x4c,0x43])));}function _0x344a5e(){const _0x33aefa=_0x458ed8[_0x43abe4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x33aefa||0x0==_0x33aefa[_0x43abe4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4ffb9}=new URL(window[_0x43abe4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x33aefa[_0x43abe4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ffb9))return!0x0;const _0x4c1ff2=_0x4ffb9[_0x43abe4([0x73,0x70,0x6c,0x69,0x74])](_0x43abe4([0x2e]));return _0x33aefa[_0x43abe4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e36cd=>_0x4e36cd[_0x43abe4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43abe4([0x2a])))[_0x43abe4([0x6d,0x61,0x70])](_0x3b3f73=>_0x3b3f73[_0x43abe4([0x73,0x70,0x6c,0x69,0x74])](_0x43abe4([0x2e])))[_0x43abe4([0x73,0x6f,0x6d,0x65])](_0x438efd=>_0x4c1ff2[_0x43abe4([0x65,0x76,0x65,0x72,0x79])]((_0x3cc7f1,_0x1032ed)=>_0x438efd[_0x1032ed]===_0x3cc7f1||_0x438efd[_0x1032ed]===_0x43abe4([0x2a])));}function _0x4b0744(){return _0x45f449&&_0x29dc52?new window[(_0x43abe4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x353e25,_0x1e14ec)=>{_0x45f449[_0x43abe4([0x74,0x68,0x65,0x6e])](_0x353e25,_0x1e14ec),_0x29dc52[_0x43abe4([0x74,0x68,0x65,0x6e])](_0x1b9839=>{_0x1b9839!=_0x43abe4([0x56,0x61,0x6c,0x69,0x64])&&_0x353e25(_0x1b9839);},_0x1e14ec);}):_0x45f449||_0x29dc52||_0x43abe4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x26c694(_0xdd22b4,_0x3a3b2e){return new window[(_0x43abe4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xad48ea=>{if(_0x22f693())return _0xad48ea(_0x43abe4([0x56,0x61,0x6c,0x69,0x64]));_0x33ec1b(),_0x390a5f[_0x43abe4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x43abe4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5cb794=!0x1;const _0xaed93e=_0x3c3dde();function _0x53d5ba(_0x2493da){return!!_0x2493da&&(typeof _0x2493da===_0x43abe4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2493da===_0x43abe4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2493da[_0x43abe4([0x74,0x68,0x65,0x6e])]===_0x43abe4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2493da[_0x43abe4([0x63,0x61,0x74,0x63,0x68])]===_0x43abe4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4410b7(_0x210fb9){_0x272724(_0x210fb9)[_0x43abe4([0x74,0x68,0x65,0x6e])](_0x3dcf09=>{if(!_0x3dcf09||_0x3dcf09[_0x43abe4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x43abe4([0x6f,0x6b]))return _0x43abe4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1e4fa9(_0x5c43fb(_0xaed93e+_0x3a3b2e))!=_0x3dcf09[_0x43abe4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x43abe4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x43abe4([0x56,0x61,0x6c,0x69,0x64]);})[_0x43abe4([0x74,0x68,0x65,0x6e])](_0x3db5be=>(_0x2346d6(),_0x3db5be),()=>{const _0x3363e8=_0x2d8520();return null==_0x3363e8?(_0x2346d6(),_0x43abe4([0x56,0x61,0x6c,0x69,0x64])):_0x43abe4(_0x52ae4c-_0x3363e8>(0x348bec22^_0xba4699)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x43abe4([0x74,0x68,0x65,0x6e])](_0xad48ea)[_0x43abe4([0x63,0x61,0x74,0x63,0x68])](()=>{_0xad48ea(_0x43abe4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x58cda6=0x10b186a2^_0xba4699;function _0x2346d6(){const _0xa54e8f=_0x43abe4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e4fa9(_0x5c43fb(_0xdd22b4)),_0x59c42f=_0x2f3e10(_0x1e4fa9(window[_0x43abe4([0x4d,0x61,0x74,0x68])][_0x43abe4([0x63,0x65,0x69,0x6c])](_0x52ae4c/_0x58cda6)));window[_0x43abe4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43abe4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa54e8f,_0x59c42f);}function _0x2d8520(){const _0x40a901=_0x43abe4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e4fa9(_0x5c43fb(_0xdd22b4)),_0x3cc606=window[_0x43abe4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43abe4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40a901);return _0x3cc606?window[_0x43abe4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f3e10(_0x3cc606),0x10)*_0x58cda6:null;}function _0x272724(_0x1c0056){return new window[(_0x43abe4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7f1d7b,_0x2f71d5)=>{_0x1c0056[_0x43abe4([0x74,0x68,0x65,0x6e])](_0x7f1d7b,_0x2f71d5),window[_0x43abe4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f71d5,0x1086bce2^_0xba4699);});}}_0x390a5f[_0x43abe4([0x6f,0x6e])](_0x43abe4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x57ba5f,_0x108ee3)=>{if(_0x108ee3[0x0]!=_0xdd22b4)return _0xad48ea(_0x43abe4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x108ee3[0x1]={..._0x108ee3[0x1],[_0x43abe4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xaed93e};},{[_0x43abe4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43abe4([0x68,0x69,0x67,0x68])}),_0x390a5f[_0x43abe4([0x6f,0x6e])](_0x43abe4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5d0225=>{_0x53d5ba(_0x5d0225[_0x43abe4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5cb794=!0x0,_0x4410b7(_0x5d0225[_0x43abe4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x43abe4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43abe4([0x6c,0x6f,0x77])}),_0xa1018[_0x43abe4([0x74,0x68,0x65,0x6e])](()=>{_0x5cb794||_0xad48ea(_0x43abe4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x22f693(){return _0x390a5f[_0x43abe4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43abe4([0x76,0x69,0x65,0x77])][_0x43abe4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x43abe4([0x61,0x75,0x74,0x6f]);}function _0x33ec1b(){_0x390a5f[_0x43abe4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43abe4([0x76,0x69,0x65,0x77])][_0x43abe4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x43abe4([0x61,0x75,0x74,0x6f]);}}function _0x5b00ec(_0x2f70b9){const _0x1a6999=[new window[(_0x43abe4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13b5b2=>setTimeout(_0x13b5b2,0x108e56ee^_0xba4699)),_0xa1018[_0x43abe4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x43abe4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c8b68=>{let _0x40f986=0x0;_0x390a5f[_0x43abe4([0x6d,0x6f,0x64,0x65,0x6c])][_0x43abe4([0x6f,0x6e])](_0x43abe4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ca9ce,_0x56af16)=>{_0x56af16[0x0][_0x43abe4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x40f986++,_0x40f986==(0x108769da^_0xba4699)&&(_0x4c8b68(),_0x1ca9ce[_0x43abe4([0x6f,0x66,0x66])]());});}))];return window[_0x43abe4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x43abe4([0x72,0x61,0x63,0x65])](_0x1a6999)[_0x43abe4([0x74,0x68,0x65,0x6e])](()=>_0x2f70b9);}async function _0x4f14bd(){await _0xa1018,_0x390a5f[_0x43abe4([0x6d,0x6f,0x64,0x65,0x6c])][_0x43abe4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x380fd5,_0x390a5f[_0x43abe4([0x6d,0x6f,0x64,0x65,0x6c])][_0x43abe4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x380fd5,_0x390a5f[_0x43abe4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x43abe4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4f65e1(_0x3416fb){const _0x405ac1=_0x235c6c();_0x390a5f[_0x405ac1]=_0x43abe4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3416fb,_0x3416fb!=_0x43abe4([0x56,0x61,0x6c,0x69,0x64])&&_0x4f14bd();}function _0x235c6c(){const _0x29a41f=window[_0x43abe4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x43abe4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x43abe4([0x6e,0x6f,0x77])]())[_0x43abe4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x43abe4([0x2e]),'');let _0x259c4f=_0x43abe4([0x76]);for(let _0x40e923=0x0;_0x40e923<_0x29a41f[_0x43abe4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40e923+=0x2){let _0x1882f0=window[_0x43abe4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29a41f[_0x43abe4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40e923,_0x40e923+0x2));_0x1882f0>=_0x3f05ef[_0x43abe4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1882f0-=_0x3f05ef[_0x43abe4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x259c4f+=_0x3f05ef[_0x1882f0];}return _0x259c4f;}function _0x32a70b(){const _0x16efb9=_0x5df782[_0x43abe4([0x73,0x70,0x6c,0x69,0x74])](_0x43abe4([0x2e]));if(0x3!=_0x16efb9[_0x43abe4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3fd084(_0x16efb9[0x1]);function _0x3fd084(_0x25735d){const _0xcfe2d8=_0x2a365f(_0x25735d);return _0xcfe2d8&&_0x1d104f()?_0xcfe2d8:null;function _0x1d104f(){const _0x521c18=_0xcfe2d8[_0x43abe4([0x6a,0x74,0x69])],_0x261540=window[_0x43abe4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x521c18[_0x43abe4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x521c18[_0x43abe4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3d67f2={..._0xcfe2d8,[_0x43abe4([0x6a,0x74,0x69])]:_0x521c18[_0x43abe4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x521c18[_0x43abe4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3d67f2[_0x43abe4([0x76,0x63])],_0x5c43fb(_0x3d67f2)==_0x261540;}}}async function _0x31f47c(){let _0x28b828=!0x0;try{const _0x1aafc1=_0x5df782[_0x43abe4([0x73,0x70,0x6c,0x69,0x74])](_0x43abe4([0x2e])),[_0x4438c6,_0x3b1315,_0xe75fa1]=_0x1aafc1;return _0x523cbd(_0x4438c6),await _0x2064f3(_0x4438c6,_0x3b1315,_0xe75fa1),_0x28b828;}catch(_0x584046){return!0x1;}function _0x523cbd(_0x327aa9){const _0x1c914c=_0x2a365f(_0x327aa9);_0x1c914c&&_0x1c914c[_0x43abe4([0x61,0x6c,0x67])]==_0x43abe4([0x45,0x53,0x32,0x35,0x36])||(_0x28b828=!0x1);}async function _0x2064f3(_0x3de0df,_0x4d66d9,_0xae5d68){const _0x27c02d=window[_0x43abe4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x43abe4([0x66,0x72,0x6f,0x6d])](_0x1709a2(_0xae5d68),_0x4b6990=>_0x4b6990[_0x43abe4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x20a7c3=new window[(_0x43abe4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x43abe4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3de0df+_0x43abe4([0x2e])+_0x4d66d9),_0x31c79f=window[_0x43abe4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x43abe4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x31c79f)return;const _0x53ee96=await _0x31c79f[_0x43abe4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x43abe4([0x6a,0x77,0x6b]),_0x2d998c,{[_0x43abe4([0x6e,0x61,0x6d,0x65])]:_0x43abe4([0x45,0x43,0x44,0x53,0x41]),[_0x43abe4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x43abe4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x43abe4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x31c79f[_0x43abe4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x43abe4([0x6e,0x61,0x6d,0x65])]:_0x43abe4([0x45,0x43,0x44,0x53,0x41]),[_0x43abe4([0x68,0x61,0x73,0x68])]:{[_0x43abe4([0x6e,0x61,0x6d,0x65])]:_0x43abe4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x53ee96,_0x27c02d,_0x20a7c3)||(_0x28b828=!0x1);}}function _0x2a365f(_0x2d3fe1){return _0x2d3fe1[_0x43abe4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x43abe4([0x65,0x79]))?JSON[_0x43abe4([0x70,0x61,0x72,0x73,0x65])](_0x1709a2(_0x2d3fe1)):null;}function _0x1709a2(_0x57801f){return window[_0x43abe4([0x61,0x74,0x6f,0x62])](_0x57801f[_0x43abe4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x43abe4([0x2b]))[_0x43abe4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x43abe4([0x2f])));}function _0x5c43fb(_0x2b7f07){let _0x4f0633=0x1505;function _0x5bdf57(_0x1a9069){for(let _0x3cce29=0x0;_0x3cce29<_0x1a9069[_0x43abe4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3cce29++){const _0xde05ab=_0x1a9069[_0x43abe4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3cce29);_0x4f0633=(_0x4f0633<<0x5)+_0x4f0633+_0xde05ab,_0x4f0633&=_0x4f0633;}}function _0x2fe1bd(_0x47f2d6){Array[_0x43abe4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x47f2d6)?_0x47f2d6[_0x43abe4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2fe1bd):_0x47f2d6&&typeof _0x47f2d6==_0x43abe4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x43abe4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x47f2d6)[_0x43abe4([0x73,0x6f,0x72,0x74])]()[_0x43abe4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1998f4,_0x290a11])=>{_0x5bdf57(_0x1998f4),_0x2fe1bd(_0x290a11);}):_0x5bdf57(window[_0x43abe4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x47f2d6));}return _0x2fe1bd(_0x2b7f07),_0x4f0633>>>0x0;}function _0x1e4fa9(_0x5d37b4){return _0x5d37b4[_0x43abe4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x43abe4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x43abe4([0x30]));}function _0x2f3e10(_0x494c5b){return _0x494c5b[_0x43abe4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x43abe4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x43abe4([0x6a,0x6f,0x69,0x6e])]('');}function _0x380fd5(){}function _0x43abe4(_0x1ba43d){return _0x1ba43d['map'](_0x298d26=>String['fromCharCode'](_0x298d26))['join']('');}_0x4f65e1(await _0xf00044());}(this);}['_initSchema'](){const _0x1fa6bf=this['editor']['model']['schema'];_0x1fa6bf['isRegistered']('imageBlock')&&_0x1fa6bf['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1fa6bf['isRegistered']('imageInline')&&_0x1fa6bf['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x50c819=this['editor'];_0x50c819['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x50c819['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x298ced=>_0x298ced['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3c8519=_0x50c819['commands']['get']('replaceImageSource');_0x3c8519&&this['listenTo'](_0x3c8519,'cleanupImage',(_0x22bd62,[_0x5d3083,_0x7fd05d])=>{_0x5d3083['removeAttribute']('uploadcareImageId',_0x7fd05d);});}['_initConfig'](){const _0x566f4c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x118bab=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x92306(_0xd3f9e6['document'],'uc-config',{..._0x566f4c,'pubkey':_0x118bab,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x5cd6d8=>{if('closeMax'==_0x5cd6d8)return'#uc-icon-arrow-down';},_0xd3f9e6['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x92306(_0xd3f9e6['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xd3f9e6['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5cb503=this['editor']['commands']['get']('insertImage');_0x5cb503&&this['listenTo'](_0x5cb503,'execute',()=>{const _0x490dee=this['editor']['model']['document']['selection']['getSelectedElement']();_0x490dee&&_0x490dee['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x490dee);});});const _0x48d18d=this['editor']['commands']['get']('uploadcareImageReplace');_0x48d18d&&this['listenTo'](_0x48d18d,'execute',()=>{const _0xdc6043=this['editor']['model']['document']['selection']['getSelectedElement']();_0xdc6043&&_0xdc6043['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xdc6043);});});}}class u extends _0x4ccabe{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f638d){super(_0x1f638d),_0x1f638d['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x50c149['defineComponents'](_0x50c149);}}class ta extends _0xeadad4{constructor(_0x3d7aa9){super(_0x3d7aa9);const t=_0x3d7aa9['t'],_0x5bd6fb=this['bindTemplate'],_0x2034e7=new _0x57f954();_0x2034e7['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':[_0x2034e7,{'text':_0x5bd6fb['to']('imageUploadProgress',_0x5118ff=>t('Loading\x20image...')+'\x20('+(_0x5118ff||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0xeadad4{constructor(_0x5251e9){super(_0x5251e9);const t=_0x5251e9['t'];this['set']('errorType',null);const _0x4084b7=new _0x171128(_0x5251e9);_0x4084b7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4084b7['withText']=!0x0,_0x4084b7['class']='ck-button-action',_0x4084b7['on']('execute',()=>{this['fire']('retry');}),_0x4084b7['bind']('isVisible')['to'](this,'errorType',_0x180196=>'NotFound'!==_0x180196);const _0x2174b4=new at();_0x2174b4['content']=et,_0x2174b4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x153d6d=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':[_0x2174b4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x153d6d['to']('errorType',_0x5bf112=>t('NotFound'!==_0x5bf112?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4084b7]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0xeadad4{constructor(_0x45ea45,_0x13bff8){super(_0x45ea45);const _0x41b49b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x13bff8,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x41b49b['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x47524f,_0x489ee8,_0x22f383){super(_0x47524f),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x47524f),this['_errorView']=new rt(_0x47524f),this['_editingView']=new tt(_0x47524f,_0x22f383),this['_focusableView']=new _0xeadad4(_0x47524f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x489ee8),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'],_0x4e116e=>{this['_addUploadcareImageEditorListeners'](_0x4e116e);});}),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'](_0x313534,_0xd998b3){const _0x477b3d='uc-cloud-image-editor',_0x20d058=_0x313534['querySelector'](_0x477b3d);if(_0x20d058)return _0xd998b3(_0x20d058);const _0x21de29=new MutationObserver(_0x5f46da=>{const _0x1311b5=_0x5f46da['filter'](_0x5f4358=>_0x5f4358['target']===_0x313534&&_0x5f4358['addedNodes']['length']>0x0&&_0x5f4358['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x477b3d);_0x1311b5['length']&&(_0x21de29['disconnect'](),_0xd998b3(_0x1311b5[0x0]['addedNodes'][0x0]));});_0x21de29['observe'](_0x313534,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x23717f){_0x23717f['addEventListener']('apply',_0x3ab267=>{this['fire']('apply',{'imageSrc':_0x3ab267['detail']['cdnUrl']});}),_0x23717f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1cfdc6(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xc243aa,_0x248d10,_0x3e5c37){super(),this['_editor']=_0xc243aa,this['_dialog']=_0x248d10,this['_imageElement']=_0x3e5c37,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 _0x13756a=this['_imageElement'],_0x551882=_0x13756a['getAttribute']('uploadcareImageId'),_0x541c05=_0x13756a['getAttribute']('src');if(_0x551882)await this['_loadImageInfo'](_0x551882,_0x541c05);else{if(this['_imageCache']['has'](_0x541c05)){const _0x3b2216=this['_imageCache']['get'](_0x541c05);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3b2216['url'],this['imageDimension']=_0x3b2216['dimension'],this['imageId']=_0x3b2216['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4e2b6e}=this['_editor'],t=_0x4e2b6e['t'],_0x3d9733=new Z(_0x4e2b6e,this['imageStatus'],this['_attributes']);_0x3d9733['bind']('status')['to'](this,'imageStatus'),_0x3d9733['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3d9733['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3d9733['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3d9733,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x35790c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3d9733,'position':_0xdb3862['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3d9733['focus']();},'onHide':()=>{_0x3d9733['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1e9a35=>!F(_0x1e9a35,_0x3d9733['element'])}});}['_loadImageInfo'](_0x2ded6c,_0x642898){return C['getInfo'](_0x2ded6c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1fa689=>{const {width:_0x4b45a4,height:_0x368da0}=_0x1fa689['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x642898,this['imageDimension']={'width':_0x4b45a4,'height':_0x368da0},this['imageId']=_0x2ded6c;})['catch'](_0x26c5df=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x26c5df['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4268de,_0x4dc106){return this['_getImageAsFile'](_0x4268de)['then'](_0x72b635=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4dc106['signal'],'file':_0x72b635,'onProgress':_0x1df634=>{_0x1df634&&_0x1df634['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1df634['value']));}}))['then'](_0x471bce=>{const {width:_0x17a9ef,height:_0x483906}=_0x471bce['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x471bce['cdnUrl'],this['imageDimension']={'width':_0x17a9ef,'height':_0x483906},this['imageId']=_0x471bce['uuid'],this['imageUploadProgress']=null;const _0x525e26=_0x4268de['getAttribute']('src');this['_imageCache']['set'](_0x525e26,{'id':_0x471bce['uuid'],'url':_0x471bce['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x385b98=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x385b98['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3ef139,_0x255e29){_0x3ef139['on']('apply',(_0x2885c5,_0x526af1)=>{this['_replaceImage'](_0x255e29,_0x526af1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3ef139['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3ef139['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4e4ba2,_0x3bfcf2,_0x242b07){const _0x34795b=this['_editor'],{width:_0x1544e4,height:_0x1c0760}=A(_0x3bfcf2,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x412e21,imageSources:_0x4f3b36}=E(_0x3bfcf2,_0x1544e4);_0x34795b['model']['change'](_0x5f2e26=>{if('$graveyard'===_0x4e4ba2['root']['rootName']){_0x34795b['execute']('insertImage',{'imageType':_0x4e4ba2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4e4ba2['getAttributes']()),'uploadcareImageId':_0x242b07,'src':_0x412e21,'sources':_0x4f3b36,'width':_0x1544e4,'height':_0x1c0760}});const _0x188022=_0x4e4ba2['getChildren']();_0x4e4ba2=_0x34795b['model']['document']['selection']['getSelectedElement']();for(const _0x374918 of _0x188022)_0x5f2e26['append'](_0x5f2e26['cloneElement'](_0x374918),_0x4e4ba2);}else _0x5f2e26['setSelection'](_0x4e4ba2,'on'),_0x34795b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4e4ba2['getAttributes']()),'uploadcareImageId':_0x242b07,'src':_0x412e21,'sources':_0x4f3b36,'width':_0x1544e4,'height':_0x1c0760},_0x4e4ba2);_0x5f2e26['setSelection'](_0x4e4ba2,'on');});}async['_getImageAsFile'](_0x4d33ae){const _0x464569=_0xd3f9e6['window'],_0x1ba82d=_0xd3f9e6['document']['location']['href'],_0x1cf66d=new _0x464569['URL'](_0x4d33ae['getAttribute']('src'),_0x1ba82d);if('data:'===_0x1cf66d['protocol']){const _0x7fbf45=_0x1cf66d['href']['split'](','),_0x23ea45=_0x7fbf45[0x0]['match'](/:(.*?);/)[0x1],_0x46a0e8=_0x23ea45['split']('/')[0x1],_0x2df71d=_0x464569['atob'](_0x7fbf45[_0x7fbf45['length']-0x1]);let _0x6293a1=_0x2df71d['length'];const _0x360ac3=new _0x464569['Uint8Array'](_0x6293a1);for(;_0x6293a1--;)_0x360ac3[_0x6293a1]=_0x2df71d['charCodeAt'](_0x6293a1);return new _0x464569['File']([_0x360ac3],'image.'+_0x46a0e8,{'type':_0x23ea45});}const _0xc7516a=_0x1cf66d['href']['split']('/'),_0x2b3355=_0xc7516a[_0xc7516a['length']-0x1],_0x47feb6=_0x2b3355['split']('.')[0x1];return _0x464569['fetch'](_0x1cf66d['href'])['then'](_0x284e80=>_0x284e80['clone']()['blob']())['then'](_0x1d520e=>new _0x464569['File']([_0x1d520e],_0x2b3355,{'type':'image/'+_0x47feb6}));}}class J extends _0x1f121c{['imageEditController'];static get['requires'](){return[_0x113065];}['_isEditable'];constructor(_0x1a5c70){super(_0x1a5c70),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xfaf6e0){const _0x46996c=V(_0xfaf6e0);return _0x388695=>!(!_0x388695||!_0x388695['is']('element','imageBlock')&&!_0x388695['is']('element','imageInline'))&&(!!_0x388695['hasAttribute']('uploadcareImageId')||!!_0x388695['hasAttribute']('src')&&_0x46996c(_0x388695['getAttribute']('src')));}(_0x1a5c70['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4ba870=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4ba870);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x177698=this['editor']['model']['document']['selection']['getSelectedElement']();_0x177698&&(_0x177698['is']('element','imageBlock')||_0x177698['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x113065),_0x177698),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1f121c{['refresh'](){const _0x49325e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x49325e&&(_0x49325e['is']('element','imageBlock')||_0x49325e['is']('element','imageInline')));}['execute'](_0x226e38){const _0x3baa39=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x18fbab=>{_0x18fbab['setAttributes'](_0x226e38,_0x3baa39),_0x18fbab['removeAttribute']('srcset',_0x3baa39),_0x18fbab['removeAttribute']('sizes',_0x3baa39);});}}class g extends _0x4ccabe{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x56e4cb,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x56da84}=this;_0x56da84['commands']['add']('uploadcareImageEdit',new J(_0x56da84)),_0x56da84['commands']['add']('uploadcareImageReplace',new O(_0x56da84));}}class j extends _0x4ccabe{['_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 _0x30c468=this['editor'];_0x30c468['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4e47ad=>{const _0x3c30d2=_0x30c468['commands']['get']('uploadcareImageEdit'),_0x520f64=new _0x171128(_0x4e47ad),t=_0x4e47ad['t'];return _0x520f64['set']({'icon':_0x35790c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x520f64['bind']('isEnabled')['to'](_0x3c30d2),_0x520f64['bind']('isOn')['to'](_0x3c30d2,'isActive'),this['listenTo'](_0x520f64,'execute',()=>{_0x30c468['execute']('uploadcareImageEdit'),_0x30c468['editing']['view']['focus']();}),_0x520f64;}),this['_initConfig']();}['_initConfig'](){const _0x5e2be6=_0x92306(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5e2be6),this['listenTo'](this['editor'],'destroy',()=>{_0x5e2be6['remove']();});}}class P extends _0x4ccabe{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20250523.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-20250523.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250523.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250523.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250523.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250523.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250523.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250523.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250523.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.12.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.1"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1cb155=_0x4df1;(function(_0x2798a6,_0x30094a){const _0x31147b=_0x4df1,_0x1fa950=_0x2798a6();while(!![]){try{const _0x36aa83=parseInt(_0x31147b(0x17f))/0x1*(-parseInt(_0x31147b(0x178))/0x2)+parseInt(_0x31147b(0x15a))/0x3*(-parseInt(_0x31147b(0x16a))/0x4)+-parseInt(_0x31147b(0x17e))/0x5*(parseInt(_0x31147b(0x173))/0x6)+-parseInt(_0x31147b(0x195))/0x7+parseInt(_0x31147b(0x184))/0x8+parseInt(_0x31147b(0x14f))/0x9+-parseInt(_0x31147b(0x148))/0xa*(-parseInt(_0x31147b(0x163))/0xb);if(_0x36aa83===_0x30094a)break;else _0x1fa950['push'](_0x1fa950['shift']());}catch(_0x5e5f79){_0x1fa950['push'](_0x1fa950['shift']());}}}(_0x1ec1,0x4cf20));import{Plugin as _0x570fb5}from'ckeditor5/src/core.js';import{Dialog as _0x347733}from'ckeditor5/src/ui.js';function _0x4df1(_0x1073fd,_0x4a7f51){const _0x1ec15f=_0x1ec1();return _0x4df1=function(_0x4df121,_0x14cf08){_0x4df121=_0x4df121-0x147;let _0x3e7060=_0x1ec15f[_0x4df121];return _0x3e7060;},_0x4df1(_0x1073fd,_0x4a7f51);}function _0x1ec1(){const _0x297d16=['listenTo','closeMax','configElement','view','model','getSelectedElement','querySelector','afterInit','locale','PictureEditing','fromCharCode','add','UploadcareEditing','762468JupKsU','once','upcast','getAttribute','uploader','uploadcareImageReplace','get','uc-upload-ctx-provider','930wmNohb','downcast','\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','schema','cleanupImage','href','conversion','4407003THYGQG','remove','uploadcare','execute','extend','input[uploadcare-file-input]','elementToAttribute','insertImage','map','replaceImageSource','requires','3OHjMcb','join','ctxElement','render','_initConversion','uploadcareImageId','editing','iconHrefResolver','attributeToAttribute','18106tYeMTk','_initSchema','config','uc-config','uploadcare.uploader','destroy','imageInline','711916FChJDj','isOfficialPlugin','removeAttribute','isPremiumPlugin','#uc-icon-arrow-down','_initCtx','true','init','uploadcare.pubkey','3721428XqqkzM','_initImageProcessingIndicator','_configElement','_ctxElement','appendChild','1774RZJABX','editor','commands','isRegistered','data-uc-image-id','document','5fsTYGV','31YnRvNI','pluginName','for','selection','body','4856488jMbmvT','contentLanguage','_initConfig','imageBlock'];_0x1ec1=function(){return _0x297d16;};return _0x1ec1();}import{createElement as _0x41f27f,global as _0x2d4adb,uid as _0x59df05}from'ckeditor5/src/utils.js';import _0x180381 from'./uploadcarecommand.js';import _0x4a6f93 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1d8131}from'./utils/editingutils.js';export default class i extends _0x570fb5{[_0x1cb155(0x175)]=null;[_0x1cb155(0x176)]=null;static get[_0x1cb155(0x180)](){const _0x48a672=_0x1cb155;return _0x48a672(0x194);}static get[_0x1cb155(0x159)](){const _0x5a1553=_0x1cb155;return[_0x5a1553(0x191),_0x4a6f93,_0x347733];}static get[_0x1cb155(0x16b)](){return!0x0;}static get[_0x1cb155(0x16d)](){return!0x0;}get[_0x1cb155(0x18a)](){const _0x59fd25=_0x1cb155;return this[_0x59fd25(0x175)];}get[_0x1cb155(0x15c)](){const _0x29017e=_0x1cb155;return this[_0x29017e(0x176)];}[_0x1cb155(0x171)](){const _0x126e79=_0x1cb155,_0x7878b=this[_0x126e79(0x179)];_0x7878b[_0x126e79(0x17a)][_0x126e79(0x193)](_0x126e79(0x151),new _0x180381(_0x7878b));}[_0x1cb155(0x18f)](){const _0x411214=_0x1cb155;this[_0x411214(0x164)](),this[_0x411214(0x15e)](),this[_0x411214(0x186)](),this[_0x411214(0x16f)](),this[_0x411214(0x174)](),this[_0x411214(0x188)](this[_0x411214(0x179)],_0x411214(0x168),()=>{const _0x17c90f=_0x411214;this[_0x17c90f(0x175)]&&(this[_0x17c90f(0x175)][_0x17c90f(0x150)](),this[_0x17c90f(0x175)]=null),this[_0x17c90f(0x176)]&&(this[_0x17c90f(0x176)][_0x17c90f(0x150)](),this[_0x17c90f(0x176)]=null);const _0x3b28c8=_0x2d4adb[_0x17c90f(0x17d)][_0x17c90f(0x18e)](_0x17c90f(0x154));_0x3b28c8&&_0x3b28c8[_0x17c90f(0x150)]();}),async function(_0x568a53){const _0x3015a2=_0x8bf355([0x74,0x75,0x55,0x4e,0x61,0x67,0x72,0x49,0x4b,0x6f,0x56,0x47,0x6a,0x62,0x44,0x54,0x69,0x45,0x34,0x32,0x4d,0x6e,0x78,0x73,0x57,0x66,0x77,0x4a,0x50,0x53,0x4f,0x51,0x33,0x38,0x31,0x6d,0x70,0x68,0x52,0x42,0x43,0x39,0x76,0x58,0x71,0x7a,0x48,0x63,0x5a,0x65,0x30,0x6c,0x6b,0x41,0x4c,0x64,0x37,0x46,0x59,0x79,0x36,0x35]),_0x5dd0e9=0x64278a2d,_0x11ee30=0x6420e255^_0x5dd0e9,_0x28a36f=window[_0x8bf355([0x44,0x61,0x74,0x65])][_0x8bf355([0x6e,0x6f,0x77])](),_0x5c3d30=_0x568a53[_0x8bf355([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xaf52e9=new window[(_0x8bf355([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x103532=>{_0x5c3d30[_0x8bf355([0x6f,0x6e,0x63,0x65])](_0x8bf355([0x72,0x65,0x61,0x64,0x79]),_0x103532);}),_0x2120ca={[_0x8bf355([0x6b,0x74,0x79])]:_0x8bf355([0x45,0x43]),[_0x8bf355([0x75,0x73,0x65])]:_0x8bf355([0x73,0x69,0x67]),[_0x8bf355([0x63,0x72,0x76])]:_0x8bf355([0x50,0x2d,0x32,0x35,0x36]),[_0x8bf355([0x78])]:_0x8bf355([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]),[_0x8bf355([0x79])]:_0x8bf355([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]),[_0x8bf355([0x61,0x6c,0x67])]:_0x8bf355([0x45,0x53,0x32,0x35,0x36])},_0x5a3c48=_0x5c3d30[_0x8bf355([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x8bf355([0x67,0x65,0x74])](_0x8bf355([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x17814d(){let _0x3ed4de,_0x3598ff=null,_0x4287c2=null;try{if(_0x5a3c48==_0x8bf355([0x47,0x50,0x4c]))return _0x8bf355([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ed4de=_0x495100(),!_0x3ed4de)return _0x8bf355([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ed4de[_0x8bf355([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4287c2=_0x3bac36(_0x3ed4de[_0x8bf355([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ed4de[_0x8bf355([0x6a,0x74,0x69])])),await _0x25df25()?_0x5f071c()?_0xdd5c0f()?_0x8bf355([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x567109()?(_0x3ed4de[_0x8bf355([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8bf355([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3598ff=_0x4e9db2(_0x8bf355([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ed4de[_0x8bf355([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8bf355([0x74,0x72,0x69,0x61,0x6c])&&(_0x3598ff=_0x4e9db2(_0x8bf355([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x15d065()):_0x8bf355([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x8bf355([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x8bf355([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3f991f){return _0x8bf355([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xdd5c0f(){const _0x22b683=[_0x8bf355([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x8bf355([0x74,0x72,0x69,0x61,0x6c])][_0x8bf355([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ed4de[_0x8bf355([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x28a36f/0x3e8:0xe10*_0x11ee30;return _0x3ed4de[_0x8bf355([0x65,0x78,0x70])]<_0x22b683;}function _0x5f071c(){const _0x2571a9=_0x3ed4de[_0x8bf355([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2571a9&&(!!_0x2571a9[_0x8bf355([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8bf355([0x2a]))||!!_0x2571a9[_0x8bf355([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8bf355([0x55,0x50,0x4c,0x43])));}function _0x567109(){const _0x5a0615=_0x4df1,_0xdc6389=_0x3ed4de[_0x8bf355([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xdc6389||0x0==_0xdc6389[_0x8bf355([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x230fe4}=new URL(window[_0x8bf355([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5a0615(0x14d)]);if(_0xdc6389[_0x8bf355([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x230fe4))return!0x0;const _0x21d68c=_0x230fe4[_0x8bf355([0x73,0x70,0x6c,0x69,0x74])](_0x8bf355([0x2e]));return _0xdc6389[_0x8bf355([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d4294=>_0x5d4294[_0x8bf355([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8bf355([0x2a])))[_0x8bf355([0x6d,0x61,0x70])](_0x40b955=>_0x40b955[_0x8bf355([0x73,0x70,0x6c,0x69,0x74])](_0x8bf355([0x2e])))[_0x8bf355([0x73,0x6f,0x6d,0x65])](_0x45f59f=>_0x21d68c[_0x8bf355([0x65,0x76,0x65,0x72,0x79])]((_0x10f7b6,_0x1393c2)=>_0x45f59f[_0x1393c2]===_0x10f7b6||_0x45f59f[_0x1393c2]===_0x8bf355([0x2a])));}function _0x15d065(){return _0x3598ff&&_0x4287c2?new window[(_0x8bf355([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54c794,_0x30b4d6)=>{_0x3598ff[_0x8bf355([0x74,0x68,0x65,0x6e])](_0x54c794,_0x30b4d6),_0x4287c2[_0x8bf355([0x74,0x68,0x65,0x6e])](_0x2c4c1f=>{_0x2c4c1f!=_0x8bf355([0x56,0x61,0x6c,0x69,0x64])&&_0x54c794(_0x2c4c1f);},_0x30b4d6);}):_0x3598ff||_0x4287c2||_0x8bf355([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3bac36(_0x3e2418,_0xa2afe2){return new window[(_0x8bf355([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3293f2=>{if(_0x27ca95())return _0x3293f2(_0x8bf355([0x56,0x61,0x6c,0x69,0x64]));_0x30e0d1(),_0x5c3d30[_0x8bf355([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x8bf355([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x47f178=!0x1;const _0x38d6f2=_0x59df05();function _0x688c8d(_0x18893a){return!!_0x18893a&&(typeof _0x18893a===_0x8bf355([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x18893a===_0x8bf355([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x18893a[_0x8bf355([0x74,0x68,0x65,0x6e])]===_0x8bf355([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x18893a[_0x8bf355([0x63,0x61,0x74,0x63,0x68])]===_0x8bf355([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f6ab9(_0x24a13e){_0x4bbc92(_0x24a13e)[_0x8bf355([0x74,0x68,0x65,0x6e])](_0x15d297=>{if(!_0x15d297||_0x15d297[_0x8bf355([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x8bf355([0x6f,0x6b]))return _0x8bf355([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ca45e(_0x5ac901(_0x38d6f2+_0xa2afe2))!=_0x15d297[_0x8bf355([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x8bf355([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x8bf355([0x56,0x61,0x6c,0x69,0x64]);})[_0x8bf355([0x74,0x68,0x65,0x6e])](_0x8433b4=>(_0x493678(),_0x8433b4),()=>{const _0xa4092a=_0x52fbfb();return null==_0xa4092a?(_0x493678(),_0x8bf355([0x56,0x61,0x6c,0x69,0x64])):_0x8bf355(_0x28a36f-_0xa4092a>(0x402b0e2d^_0x5dd0e9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x8bf355([0x74,0x68,0x65,0x6e])](_0x3293f2)[_0x8bf355([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3293f2(_0x8bf355([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x175774=0x641164ad^_0x5dd0e9;function _0x493678(){const _0x3c09fd=_0x8bf355([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ca45e(_0x5ac901(_0x3e2418)),_0x256100=_0x271893(_0x4ca45e(window[_0x8bf355([0x4d,0x61,0x74,0x68])][_0x8bf355([0x63,0x65,0x69,0x6c])](_0x28a36f/_0x175774)));window[_0x8bf355([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8bf355([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c09fd,_0x256100);}function _0x52fbfb(){const _0x41bdb5=_0x8bf355([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ca45e(_0x5ac901(_0x3e2418)),_0x51a24a=window[_0x8bf355([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8bf355([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41bdb5);return _0x51a24a?window[_0x8bf355([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x271893(_0x51a24a),0x10)*_0x175774:null;}function _0x4bbc92(_0x2375d2){return new window[(_0x8bf355([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x79733c,_0xd80065)=>{_0x2375d2[_0x8bf355([0x74,0x68,0x65,0x6e])](_0x79733c,_0xd80065),window[_0x8bf355([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xd80065,0x64265eed^_0x5dd0e9);});}}_0x5c3d30[_0x8bf355([0x6f,0x6e])](_0x8bf355([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34f74f,_0x1cef8c)=>{if(_0x1cef8c[0x0]!=_0x3e2418)return _0x3293f2(_0x8bf355([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1cef8c[0x1]={..._0x1cef8c[0x1],[_0x8bf355([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x38d6f2};},{[_0x8bf355([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8bf355([0x68,0x69,0x67,0x68])}),_0x5c3d30[_0x8bf355([0x6f,0x6e])](_0x8bf355([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x243364=>{_0x688c8d(_0x243364[_0x8bf355([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x47f178=!0x0,_0x2f6ab9(_0x243364[_0x8bf355([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x8bf355([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8bf355([0x6c,0x6f,0x77])}),_0xaf52e9[_0x8bf355([0x74,0x68,0x65,0x6e])](()=>{_0x47f178||_0x3293f2(_0x8bf355([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x27ca95(){return _0x5c3d30[_0x8bf355([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8bf355([0x76,0x69,0x65,0x77])][_0x8bf355([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x8bf355([0x61,0x75,0x74,0x6f]);}function _0x30e0d1(){_0x5c3d30[_0x8bf355([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8bf355([0x76,0x69,0x65,0x77])][_0x8bf355([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8bf355([0x61,0x75,0x74,0x6f]);}}function _0x4e9db2(_0x37ce35){const _0x572b26=[new window[(_0x8bf355([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x151a21=>setTimeout(_0x151a21,0x642eb4e1^_0x5dd0e9)),_0xaf52e9[_0x8bf355([0x74,0x68,0x65,0x6e])](()=>new window[(_0x8bf355([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51b826=>{let _0x48d532=0x0;_0x5c3d30[_0x8bf355([0x6d,0x6f,0x64,0x65,0x6c])][_0x8bf355([0x6f,0x6e])](_0x8bf355([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x6a5549,_0x439759)=>{_0x439759[0x0][_0x8bf355([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x48d532++,_0x48d532==(0x64278bd5^_0x5dd0e9)&&(_0x51b826(),_0x6a5549[_0x8bf355([0x6f,0x66,0x66])]());});}))];return window[_0x8bf355([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8bf355([0x72,0x61,0x63,0x65])](_0x572b26)[_0x8bf355([0x74,0x68,0x65,0x6e])](()=>_0x37ce35);}async function _0x1f4730(){await _0xaf52e9,_0x5c3d30[_0x8bf355([0x6d,0x6f,0x64,0x65,0x6c])][_0x8bf355([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xe9ba45,_0x5c3d30[_0x8bf355([0x6d,0x6f,0x64,0x65,0x6c])][_0x8bf355([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xe9ba45,_0x5c3d30[_0x8bf355([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x8bf355([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1c69a6(_0x179b08){const _0x5396b7=_0x561f32();_0x5c3d30[_0x5396b7]=_0x8bf355([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x179b08,_0x179b08!=_0x8bf355([0x56,0x61,0x6c,0x69,0x64])&&_0x1f4730();}function _0x561f32(){const _0x52f0e4=window[_0x8bf355([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x8bf355([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x8bf355([0x6e,0x6f,0x77])]())[_0x8bf355([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x8bf355([0x2e]),'');let _0x2b6f1b=_0x8bf355([0x74]);for(let _0x3d95f9=0x0;_0x3d95f9<_0x52f0e4[_0x8bf355([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d95f9+=0x2){let _0x56436d=window[_0x8bf355([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52f0e4[_0x8bf355([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d95f9,_0x3d95f9+0x2));_0x56436d>=_0x3015a2[_0x8bf355([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x56436d-=_0x3015a2[_0x8bf355([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b6f1b+=_0x3015a2[_0x56436d];}return _0x2b6f1b;}function _0x495100(){const _0x532ad4=_0x5a3c48[_0x8bf355([0x73,0x70,0x6c,0x69,0x74])](_0x8bf355([0x2e]));if(0x3!=_0x532ad4[_0x8bf355([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4da760(_0x532ad4[0x1]);function _0x4da760(_0x5c0602){const _0xc75c4d=_0x36b31d(_0x5c0602);return _0xc75c4d&&_0x497cf5()?_0xc75c4d:null;function _0x497cf5(){const _0x5a1367=_0xc75c4d[_0x8bf355([0x6a,0x74,0x69])],_0x330985=window[_0x8bf355([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a1367[_0x8bf355([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a1367[_0x8bf355([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x53ef66={..._0xc75c4d,[_0x8bf355([0x6a,0x74,0x69])]:_0x5a1367[_0x8bf355([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5a1367[_0x8bf355([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x53ef66[_0x8bf355([0x76,0x63])],_0x5ac901(_0x53ef66)==_0x330985;}}}async function _0x25df25(){let _0x233c71=!0x0;try{const _0x415840=_0x5a3c48[_0x8bf355([0x73,0x70,0x6c,0x69,0x74])](_0x8bf355([0x2e])),[_0x14c12f,_0x20d0e4,_0x4c484a]=_0x415840;return _0x4950b4(_0x14c12f),await _0x2c8dca(_0x14c12f,_0x20d0e4,_0x4c484a),_0x233c71;}catch(_0x31a128){return!0x1;}function _0x4950b4(_0x19ce3c){const _0xd58810=_0x36b31d(_0x19ce3c);_0xd58810&&_0xd58810[_0x8bf355([0x61,0x6c,0x67])]==_0x8bf355([0x45,0x53,0x32,0x35,0x36])||(_0x233c71=!0x1);}async function _0x2c8dca(_0xe1ab95,_0x164295,_0x2cebd0){const _0xc605d3=window[_0x8bf355([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x8bf355([0x66,0x72,0x6f,0x6d])](_0x3b6a8e(_0x2cebd0),_0x197209=>_0x197209[_0x8bf355([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x516743=new window[(_0x8bf355([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x8bf355([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xe1ab95+_0x8bf355([0x2e])+_0x164295),_0x3b8f5d=window[_0x8bf355([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x8bf355([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b8f5d)return;const _0x282980=await _0x3b8f5d[_0x8bf355([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x8bf355([0x6a,0x77,0x6b]),_0x2120ca,{[_0x8bf355([0x6e,0x61,0x6d,0x65])]:_0x8bf355([0x45,0x43,0x44,0x53,0x41]),[_0x8bf355([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x8bf355([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x8bf355([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b8f5d[_0x8bf355([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x8bf355([0x6e,0x61,0x6d,0x65])]:_0x8bf355([0x45,0x43,0x44,0x53,0x41]),[_0x8bf355([0x68,0x61,0x73,0x68])]:{[_0x8bf355([0x6e,0x61,0x6d,0x65])]:_0x8bf355([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x282980,_0xc605d3,_0x516743)||(_0x233c71=!0x1);}}function _0x36b31d(_0x15b9b4){return _0x15b9b4[_0x8bf355([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x8bf355([0x65,0x79]))?JSON[_0x8bf355([0x70,0x61,0x72,0x73,0x65])](_0x3b6a8e(_0x15b9b4)):null;}function _0x3b6a8e(_0xefa539){return window[_0x8bf355([0x61,0x74,0x6f,0x62])](_0xefa539[_0x8bf355([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x8bf355([0x2b]))[_0x8bf355([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x8bf355([0x2f])));}function _0x5ac901(_0x19784b){let _0x374036=0x1505;function _0x3b9b11(_0x4d8562){for(let _0x147774=0x0;_0x147774<_0x4d8562[_0x8bf355([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x147774++){const _0x314f37=_0x4d8562[_0x8bf355([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x147774);_0x374036=(_0x374036<<0x5)+_0x374036+_0x314f37,_0x374036&=_0x374036;}}function _0x2f1249(_0x19b066){Array[_0x8bf355([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x19b066)?_0x19b066[_0x8bf355([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f1249):_0x19b066&&typeof _0x19b066==_0x8bf355([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x8bf355([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x19b066)[_0x8bf355([0x73,0x6f,0x72,0x74])]()[_0x8bf355([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x62cb34,_0x4c4ef4])=>{_0x3b9b11(_0x62cb34),_0x2f1249(_0x4c4ef4);}):_0x3b9b11(window[_0x8bf355([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x19b066));}return _0x2f1249(_0x19784b),_0x374036>>>0x0;}function _0x4ca45e(_0x4c580a){return _0x4c580a[_0x8bf355([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x8bf355([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x8bf355([0x30]));}function _0x271893(_0x45ce3c){return _0x45ce3c[_0x8bf355([0x73,0x70,0x6c,0x69,0x74])]('')[_0x8bf355([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x8bf355([0x6a,0x6f,0x69,0x6e])]('');}function _0xe9ba45(){}function _0x8bf355(_0x585bb8){const _0x4e1fde=_0x4df1;return _0x585bb8[_0x4e1fde(0x157)](_0x4c7afc=>String[_0x4e1fde(0x192)](_0x4c7afc))[_0x4e1fde(0x15b)]('');}_0x1c69a6(await _0x17814d());}(this);}[_0x1cb155(0x164)](){const _0x1bb180=_0x1cb155,_0x2ff2eb=this[_0x1bb180(0x179)][_0x1bb180(0x18c)][_0x1bb180(0x14b)];_0x2ff2eb[_0x1bb180(0x17b)](_0x1bb180(0x187))&&_0x2ff2eb[_0x1bb180(0x153)](_0x1bb180(0x187),{'allowAttributes':[_0x1bb180(0x15f)]}),_0x2ff2eb[_0x1bb180(0x17b)](_0x1bb180(0x169))&&_0x2ff2eb[_0x1bb180(0x153)](_0x1bb180(0x169),{'allowAttributes':[_0x1bb180(0x15f)]});}[_0x1cb155(0x15e)](){const _0x5ec604=_0x1cb155,_0x526357=this[_0x5ec604(0x179)];_0x526357[_0x5ec604(0x14e)][_0x5ec604(0x181)](_0x5ec604(0x149))[_0x5ec604(0x162)]({'model':_0x5ec604(0x15f),'view':_0x5ec604(0x17c)}),_0x526357[_0x5ec604(0x14e)][_0x5ec604(0x181)](_0x5ec604(0x197))[_0x5ec604(0x155)]({'model':{'key':_0x5ec604(0x15f),'value':_0x27b315=>_0x27b315[_0x5ec604(0x198)](_0x5ec604(0x17c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3d3466=_0x526357[_0x5ec604(0x17a)][_0x5ec604(0x19b)](_0x5ec604(0x158));_0x3d3466&&this[_0x5ec604(0x188)](_0x3d3466,_0x5ec604(0x14c),(_0xe9fb2f,[_0x11ee73,_0x21c4aa])=>{const _0xdda04b=_0x5ec604;_0x11ee73[_0xdda04b(0x16c)](_0xdda04b(0x15f),_0x21c4aa);});}[_0x1cb155(0x186)](){const _0x4942da=_0x1cb155,_0x3ee152=this[_0x4942da(0x179)][_0x4942da(0x165)][_0x4942da(0x19b)](_0x4942da(0x167))||{},_0xe87e3e=this[_0x4942da(0x179)][_0x4942da(0x165)][_0x4942da(0x19b)](_0x4942da(0x172))||'';this[_0x4942da(0x175)]=_0x41f27f(_0x2d4adb[_0x4942da(0x17d)],_0x4942da(0x166),{..._0x3ee152,'pubkey':_0xe87e3e,'ctx-name':_0x4942da(0x199),'sourceList':'','imgOnly':_0x4942da(0x170),'removeCopyright':_0x4942da(0x170),'localeName':this[_0x4942da(0x179)][_0x4942da(0x190)][_0x4942da(0x185)],'externalSourcesEmbedCss':_0x4942da(0x14a)}),this[_0x4942da(0x175)][_0x4942da(0x161)]=_0x47bb2f=>{const _0x4ddc64=_0x4942da;if(_0x4ddc64(0x189)==_0x47bb2f)return _0x4ddc64(0x16e);},_0x2d4adb[_0x4942da(0x17d)][_0x4942da(0x183)][_0x4942da(0x177)](this[_0x4942da(0x175)]);}[_0x1cb155(0x16f)](){const _0x2ff12f=_0x1cb155;this[_0x2ff12f(0x176)]=_0x41f27f(_0x2d4adb[_0x2ff12f(0x17d)],_0x2ff12f(0x147),{'ctx-name':_0x2ff12f(0x199)}),_0x2d4adb[_0x2ff12f(0x17d)][_0x2ff12f(0x183)][_0x2ff12f(0x177)](this[_0x2ff12f(0x176)]);}[_0x1cb155(0x174)](){const _0xa4eae0=_0x1cb155,_0x403aed=this[_0xa4eae0(0x179)][_0xa4eae0(0x17a)][_0xa4eae0(0x19b)](_0xa4eae0(0x156));_0x403aed&&this[_0xa4eae0(0x188)](_0x403aed,_0xa4eae0(0x152),()=>{const _0x81187d=_0xa4eae0,_0x45fa7e=this[_0x81187d(0x179)][_0x81187d(0x18c)][_0x81187d(0x17d)][_0x81187d(0x182)][_0x81187d(0x18d)]();_0x45fa7e&&_0x45fa7e[_0x81187d(0x198)](_0x81187d(0x15f))&&this[_0x81187d(0x179)][_0x81187d(0x160)][_0x81187d(0x18b)][_0x81187d(0x196)](_0x81187d(0x15d),()=>{const _0x4a8165=_0x81187d;_0x1d8131(this[_0x4a8165(0x179)],_0x45fa7e);});});const _0x2d816c=this[_0xa4eae0(0x179)][_0xa4eae0(0x17a)][_0xa4eae0(0x19b)](_0xa4eae0(0x19a));_0x2d816c&&this[_0xa4eae0(0x188)](_0x2d816c,_0xa4eae0(0x152),()=>{const _0x4ca528=_0xa4eae0,_0x53feff=this[_0x4ca528(0x179)][_0x4ca528(0x18c)][_0x4ca528(0x17d)][_0x4ca528(0x182)][_0x4ca528(0x18d)]();_0x53feff&&_0x53feff[_0x4ca528(0x198)](_0x4ca528(0x15f))&&this[_0x4ca528(0x179)][_0x4ca528(0x160)][_0x4ca528(0x18b)][_0x4ca528(0x196)](_0x4ca528(0x15d),()=>{const _0x217533=_0x4ca528;_0x1d8131(this[_0x217533(0x179)],_0x53feff);});});}}
|
|
23
|
+
const _0x3f3269=_0x490f;function _0x490f(_0x206e2c,_0x5a4182){const _0x3ab75e=_0x3ab7();return _0x490f=function(_0x490ff2,_0x35b110){_0x490ff2=_0x490ff2-0xae;let _0x4da872=_0x3ab75e[_0x490ff2];return _0x4da872;},_0x490f(_0x206e2c,_0x5a4182);}(function(_0x1def99,_0xaebe1d){const _0x35ed45=_0x490f,_0xc37968=_0x1def99();while(!![]){try{const _0x549284=parseInt(_0x35ed45(0xb8))/0x1*(parseInt(_0x35ed45(0xd7))/0x2)+-parseInt(_0x35ed45(0xae))/0x3+-parseInt(_0x35ed45(0xfe))/0x4*(parseInt(_0x35ed45(0xe9))/0x5)+parseInt(_0x35ed45(0xd1))/0x6+-parseInt(_0x35ed45(0xf3))/0x7+parseInt(_0x35ed45(0xbd))/0x8+-parseInt(_0x35ed45(0xe4))/0x9;if(_0x549284===_0xaebe1d)break;else _0xc37968['push'](_0xc37968['shift']());}catch(_0x2f44d9){_0xc37968['push'](_0xc37968['shift']());}}}(_0x3ab7,0x2f99e));import{Plugin as _0x227d74}from'ckeditor5/src/core.js';import{Dialog as _0x1c9a61}from'ckeditor5/src/ui.js';function _0x3ab7(){const _0x3434d3=['getAttribute','_initConfig','execute','config','upcast','true','editor','attributeToAttribute','1872315eggnFJ','document','ctxElement','input[uploadcare-file-input]','removeAttribute','47915mTFlgq','body','data-uc-image-id','uploadcare.uploader','conversion','get','closeMax','fromCharCode','selection','elementToAttribute','92085WvdmxX','appendChild','imageInline','insertImage','downcast','_configElement','_initConversion','_initSchema','#uc-icon-arrow-down','view','locale','40RFzxTl','init','contentLanguage','460995dEjgOA','uploadcareImageId','_initCtx','UploadcareEditing','isOfficialPlugin','listenTo','configElement','schema','extend','render','1fUjOwW','model','replaceImageSource','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','uc-config','558688opqgvk','iconHrefResolver','destroy','pluginName','commands','once','isRegistered','PictureEditing','join','_initImageProcessingIndicator','imageBlock','cleanupImage','_ctxElement','editing','isPremiumPlugin','href','uploadcare.pubkey','remove','for','uc-upload-ctx-provider','2065776VrjCiS','uploader','requires','querySelector','add','uploadcareImageReplace','503054qwQpoS','getSelectedElement','uploadcare','map','afterInit'];_0x3ab7=function(){return _0x3434d3;};return _0x3ab7();}import{createElement as _0x2802cf,global as _0x358b59,uid as _0x17eedd}from'ckeditor5/src/utils.js';import _0x458b58 from'./uploadcarecommand.js';import _0x136a52 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4cc0f8}from'./utils/editingutils.js';export default class i extends _0x227d74{[_0x3f3269(0xf8)]=null;[_0x3f3269(0xc9)]=null;static get[_0x3f3269(0xc0)](){const _0x3ca331=_0x3f3269;return _0x3ca331(0xb1);}static get[_0x3f3269(0xd3)](){const _0x434a06=_0x3f3269;return[_0x434a06(0xc4),_0x136a52,_0x1c9a61];}static get[_0x3f3269(0xb2)](){return!0x0;}static get[_0x3f3269(0xcb)](){return!0x0;}get[_0x3f3269(0xb4)](){const _0xe0ad54=_0x3f3269;return this[_0xe0ad54(0xf8)];}get[_0x3f3269(0xe6)](){const _0x206ac7=_0x3f3269;return this[_0x206ac7(0xc9)];}[_0x3f3269(0xff)](){const _0x54cf19=_0x3f3269,_0x5cef3f=this[_0x54cf19(0xe2)];_0x5cef3f[_0x54cf19(0xc1)][_0x54cf19(0xd5)](_0x54cf19(0xd9),new _0x458b58(_0x5cef3f));}[_0x3f3269(0xdb)](){const _0x5c5ac0=_0x3f3269;this[_0x5c5ac0(0xfa)](),this[_0x5c5ac0(0xf9)](),this[_0x5c5ac0(0xdd)](),this[_0x5c5ac0(0xb0)](),this[_0x5c5ac0(0xc6)](),this[_0x5c5ac0(0xb3)](this[_0x5c5ac0(0xe2)],_0x5c5ac0(0xbf),()=>{const _0x305c3b=_0x5c5ac0;this[_0x305c3b(0xf8)]&&(this[_0x305c3b(0xf8)][_0x305c3b(0xce)](),this[_0x305c3b(0xf8)]=null),this[_0x305c3b(0xc9)]&&(this[_0x305c3b(0xc9)][_0x305c3b(0xce)](),this[_0x305c3b(0xc9)]=null);const _0x3c4a15=_0x358b59[_0x305c3b(0xe5)][_0x305c3b(0xd4)](_0x305c3b(0xe7));_0x3c4a15&&_0x3c4a15[_0x305c3b(0xce)]();}),async function(_0x694b50){const _0x17ccf0=_0x14de27([0x32,0x76,0x4d,0x4b,0x51,0x44,0x49,0x6d,0x56,0x77,0x34,0x42,0x6f,0x70,0x4c,0x30,0x5a,0x50,0x57,0x53,0x65,0x63,0x4e,0x6b,0x6e,0x35,0x39,0x45,0x72,0x62,0x4f,0x6a,0x36,0x59,0x54,0x73,0x61,0x48,0x55,0x38,0x69,0x58,0x47,0x46,0x79,0x37,0x31,0x68,0x64,0x71,0x78,0x66,0x67,0x52,0x33,0x75,0x43,0x4a,0x7a,0x74,0x41,0x6c]),_0x2e6d4b=0x10876822,_0x237040=0x1080008a^_0x2e6d4b,_0x58c5eb=window[_0x14de27([0x44,0x61,0x74,0x65])][_0x14de27([0x6e,0x6f,0x77])](),_0x3e0411=_0x694b50[_0x14de27([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x42c071=new window[(_0x14de27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38596e=>{_0x3e0411[_0x14de27([0x6f,0x6e,0x63,0x65])](_0x14de27([0x72,0x65,0x61,0x64,0x79]),_0x38596e);}),_0x5e60fc={[_0x14de27([0x6b,0x74,0x79])]:_0x14de27([0x45,0x43]),[_0x14de27([0x75,0x73,0x65])]:_0x14de27([0x73,0x69,0x67]),[_0x14de27([0x63,0x72,0x76])]:_0x14de27([0x50,0x2d,0x32,0x35,0x36]),[_0x14de27([0x78])]:_0x14de27([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]),[_0x14de27([0x79])]:_0x14de27([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]),[_0x14de27([0x61,0x6c,0x67])]:_0x14de27([0x45,0x53,0x32,0x35,0x36])},_0x5b9e03=_0x3e0411[_0x14de27([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14de27([0x67,0x65,0x74])](_0x14de27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4566c6(){let _0x4a39f5,_0xe460b=null,_0x1e4ef5=null;try{if(_0x5b9e03==_0x14de27([0x47,0x50,0x4c]))return _0x14de27([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4a39f5=_0x117d0e(),!_0x4a39f5)return _0x14de27([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4a39f5[_0x14de27([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e4ef5=_0x306121(_0x4a39f5[_0x14de27([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4a39f5[_0x14de27([0x6a,0x74,0x69])])),await _0x5ae400()?_0x5c5ce2()?_0x47188e()?_0x14de27([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x42942d()?(_0x4a39f5[_0x14de27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14de27([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe460b=_0x3da08c(_0x14de27([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4a39f5[_0x14de27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14de27([0x74,0x72,0x69,0x61,0x6c])&&(_0xe460b=_0x3da08c(_0x14de27([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5738e8()):_0x14de27([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14de27([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14de27([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x53aee5){return _0x14de27([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47188e(){const _0x387a09=[_0x14de27([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14de27([0x74,0x72,0x69,0x61,0x6c])][_0x14de27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a39f5[_0x14de27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x58c5eb/0x3e8:0xe10*_0x237040;return _0x4a39f5[_0x14de27([0x65,0x78,0x70])]<_0x387a09;}function _0x5c5ce2(){const _0x490e06=_0x4a39f5[_0x14de27([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x490e06&&(!!_0x490e06[_0x14de27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14de27([0x2a]))||!!_0x490e06[_0x14de27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14de27([0x55,0x50,0x4c,0x43])));}function _0x42942d(){const _0x328d2d=_0x490f,_0x92a459=_0x4a39f5[_0x14de27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x92a459||0x0==_0x92a459[_0x14de27([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x151745}=new URL(window[_0x14de27([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x328d2d(0xcc)]);if(_0x92a459[_0x14de27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x151745))return!0x0;const _0xa7583c=_0x151745[_0x14de27([0x73,0x70,0x6c,0x69,0x74])](_0x14de27([0x2e]));return _0x92a459[_0x14de27([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2fd6ab=>_0x2fd6ab[_0x14de27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14de27([0x2a])))[_0x14de27([0x6d,0x61,0x70])](_0x42a48d=>_0x42a48d[_0x14de27([0x73,0x70,0x6c,0x69,0x74])](_0x14de27([0x2e])))[_0x14de27([0x73,0x6f,0x6d,0x65])](_0x1693fc=>_0xa7583c[_0x14de27([0x65,0x76,0x65,0x72,0x79])]((_0x3da4c7,_0x286d4e)=>_0x1693fc[_0x286d4e]===_0x3da4c7||_0x1693fc[_0x286d4e]===_0x14de27([0x2a])));}function _0x5738e8(){return _0xe460b&&_0x1e4ef5?new window[(_0x14de27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a12a3,_0x27dd2c)=>{_0xe460b[_0x14de27([0x74,0x68,0x65,0x6e])](_0x5a12a3,_0x27dd2c),_0x1e4ef5[_0x14de27([0x74,0x68,0x65,0x6e])](_0x5dd629=>{_0x5dd629!=_0x14de27([0x56,0x61,0x6c,0x69,0x64])&&_0x5a12a3(_0x5dd629);},_0x27dd2c);}):_0xe460b||_0x1e4ef5||_0x14de27([0x56,0x61,0x6c,0x69,0x64]);}}function _0x306121(_0x5218d5,_0x3aa1e4){return new window[(_0x14de27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ea6ba=>{if(_0x6ddfdf())return _0x3ea6ba(_0x14de27([0x56,0x61,0x6c,0x69,0x64]));_0x348b48(),_0x3e0411[_0x14de27([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14de27([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x463959=!0x1;const _0x392346=_0x17eedd();function _0x332a45(_0x512b86){return!!_0x512b86&&(typeof _0x512b86===_0x14de27([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x512b86===_0x14de27([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x512b86[_0x14de27([0x74,0x68,0x65,0x6e])]===_0x14de27([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x512b86[_0x14de27([0x63,0x61,0x74,0x63,0x68])]===_0x14de27([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x32aa3b(_0x130f8b){_0x2a5995(_0x130f8b)[_0x14de27([0x74,0x68,0x65,0x6e])](_0x46684e=>{if(!_0x46684e||_0x46684e[_0x14de27([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14de27([0x6f,0x6b]))return _0x14de27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd86249(_0x399eed(_0x392346+_0x3aa1e4))!=_0x46684e[_0x14de27([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14de27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14de27([0x56,0x61,0x6c,0x69,0x64]);})[_0x14de27([0x74,0x68,0x65,0x6e])](_0x2cd04e=>(_0x46f771(),_0x2cd04e),()=>{const _0x42d814=_0x247439();return null==_0x42d814?(_0x46f771(),_0x14de27([0x56,0x61,0x6c,0x69,0x64])):_0x14de27(_0x58c5eb-_0x42d814>(0x348bec22^_0x2e6d4b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14de27([0x74,0x68,0x65,0x6e])](_0x3ea6ba)[_0x14de27([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ea6ba(_0x14de27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x368547=0x10b186a2^_0x2e6d4b;function _0x46f771(){const _0x1d93e2=_0x14de27([0x6c,0x6c,0x63,0x74,0x2d])+_0xd86249(_0x399eed(_0x5218d5)),_0x46d29b=_0x411c62(_0xd86249(window[_0x14de27([0x4d,0x61,0x74,0x68])][_0x14de27([0x63,0x65,0x69,0x6c])](_0x58c5eb/_0x368547)));window[_0x14de27([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14de27([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d93e2,_0x46d29b);}function _0x247439(){const _0xe3d81d=_0x14de27([0x6c,0x6c,0x63,0x74,0x2d])+_0xd86249(_0x399eed(_0x5218d5)),_0x4fa606=window[_0x14de27([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14de27([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe3d81d);return _0x4fa606?window[_0x14de27([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x411c62(_0x4fa606),0x10)*_0x368547:null;}function _0x2a5995(_0xe9c2a6){return new window[(_0x14de27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23a812,_0x276af7)=>{_0xe9c2a6[_0x14de27([0x74,0x68,0x65,0x6e])](_0x23a812,_0x276af7),window[_0x14de27([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x276af7,0x1086bce2^_0x2e6d4b);});}}_0x3e0411[_0x14de27([0x6f,0x6e])](_0x14de27([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x21e1b2,_0x5a3e84)=>{if(_0x5a3e84[0x0]!=_0x5218d5)return _0x3ea6ba(_0x14de27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a3e84[0x1]={..._0x5a3e84[0x1],[_0x14de27([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x392346};},{[_0x14de27([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14de27([0x68,0x69,0x67,0x68])}),_0x3e0411[_0x14de27([0x6f,0x6e])](_0x14de27([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1f36e5=>{_0x332a45(_0x1f36e5[_0x14de27([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x463959=!0x0,_0x32aa3b(_0x1f36e5[_0x14de27([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14de27([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14de27([0x6c,0x6f,0x77])}),_0x42c071[_0x14de27([0x74,0x68,0x65,0x6e])](()=>{_0x463959||_0x3ea6ba(_0x14de27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6ddfdf(){return _0x3e0411[_0x14de27([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14de27([0x76,0x69,0x65,0x77])][_0x14de27([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14de27([0x61,0x75,0x74,0x6f]);}function _0x348b48(){_0x3e0411[_0x14de27([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14de27([0x76,0x69,0x65,0x77])][_0x14de27([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14de27([0x61,0x75,0x74,0x6f]);}}function _0x3da08c(_0x3f1605){const _0x4c5538=[new window[(_0x14de27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a9245=>setTimeout(_0x2a9245,0x108e56ee^_0x2e6d4b)),_0x42c071[_0x14de27([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14de27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x99ac7a=>{let _0x29f22e=0x0;_0x3e0411[_0x14de27([0x6d,0x6f,0x64,0x65,0x6c])][_0x14de27([0x6f,0x6e])](_0x14de27([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5867f0,_0x57b4c1)=>{_0x57b4c1[0x0][_0x14de27([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x29f22e++,_0x29f22e==(0x108769da^_0x2e6d4b)&&(_0x99ac7a(),_0x5867f0[_0x14de27([0x6f,0x66,0x66])]());});}))];return window[_0x14de27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14de27([0x72,0x61,0x63,0x65])](_0x4c5538)[_0x14de27([0x74,0x68,0x65,0x6e])](()=>_0x3f1605);}async function _0x587b52(){await _0x42c071,_0x3e0411[_0x14de27([0x6d,0x6f,0x64,0x65,0x6c])][_0x14de27([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f338e,_0x3e0411[_0x14de27([0x6d,0x6f,0x64,0x65,0x6c])][_0x14de27([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f338e,_0x3e0411[_0x14de27([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14de27([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2383cb(_0x5e0f37){const _0x2dd245=_0x1b6079();_0x3e0411[_0x2dd245]=_0x14de27([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5e0f37,_0x5e0f37!=_0x14de27([0x56,0x61,0x6c,0x69,0x64])&&_0x587b52();}function _0x1b6079(){const _0x5f4058=window[_0x14de27([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14de27([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14de27([0x6e,0x6f,0x77])]())[_0x14de27([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14de27([0x2e]),'');let _0x3fe7fb=_0x14de27([0x76]);for(let _0x1cc103=0x0;_0x1cc103<_0x5f4058[_0x14de27([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cc103+=0x2){let _0x318773=window[_0x14de27([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f4058[_0x14de27([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1cc103,_0x1cc103+0x2));_0x318773>=_0x17ccf0[_0x14de27([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x318773-=_0x17ccf0[_0x14de27([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3fe7fb+=_0x17ccf0[_0x318773];}return _0x3fe7fb;}function _0x117d0e(){const _0x30f379=_0x5b9e03[_0x14de27([0x73,0x70,0x6c,0x69,0x74])](_0x14de27([0x2e]));if(0x3!=_0x30f379[_0x14de27([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x409708(_0x30f379[0x1]);function _0x409708(_0x3d185c){const _0x566f0f=_0x3c569a(_0x3d185c);return _0x566f0f&&_0x378928()?_0x566f0f:null;function _0x378928(){const _0x4c5855=_0x566f0f[_0x14de27([0x6a,0x74,0x69])],_0x22693a=window[_0x14de27([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c5855[_0x14de27([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c5855[_0x14de27([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x27ae57={..._0x566f0f,[_0x14de27([0x6a,0x74,0x69])]:_0x4c5855[_0x14de27([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c5855[_0x14de27([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x27ae57[_0x14de27([0x76,0x63])],_0x399eed(_0x27ae57)==_0x22693a;}}}async function _0x5ae400(){let _0x59db57=!0x0;try{const _0x30f7d8=_0x5b9e03[_0x14de27([0x73,0x70,0x6c,0x69,0x74])](_0x14de27([0x2e])),[_0xe4c6d9,_0x32d746,_0x22f956]=_0x30f7d8;return _0x53f75c(_0xe4c6d9),await _0x38ec70(_0xe4c6d9,_0x32d746,_0x22f956),_0x59db57;}catch(_0xfcc33){return!0x1;}function _0x53f75c(_0x219ed6){const _0x26bc96=_0x3c569a(_0x219ed6);_0x26bc96&&_0x26bc96[_0x14de27([0x61,0x6c,0x67])]==_0x14de27([0x45,0x53,0x32,0x35,0x36])||(_0x59db57=!0x1);}async function _0x38ec70(_0x2afa74,_0x5ac19c,_0x492c93){const _0x46a250=window[_0x14de27([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14de27([0x66,0x72,0x6f,0x6d])](_0x27c66a(_0x492c93),_0x4f2cb7=>_0x4f2cb7[_0x14de27([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2e940e=new window[(_0x14de27([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14de27([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2afa74+_0x14de27([0x2e])+_0x5ac19c),_0x14c2e1=window[_0x14de27([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14de27([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x14c2e1)return;const _0x36d9ba=await _0x14c2e1[_0x14de27([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14de27([0x6a,0x77,0x6b]),_0x5e60fc,{[_0x14de27([0x6e,0x61,0x6d,0x65])]:_0x14de27([0x45,0x43,0x44,0x53,0x41]),[_0x14de27([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14de27([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14de27([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x14c2e1[_0x14de27([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14de27([0x6e,0x61,0x6d,0x65])]:_0x14de27([0x45,0x43,0x44,0x53,0x41]),[_0x14de27([0x68,0x61,0x73,0x68])]:{[_0x14de27([0x6e,0x61,0x6d,0x65])]:_0x14de27([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x36d9ba,_0x46a250,_0x2e940e)||(_0x59db57=!0x1);}}function _0x3c569a(_0x21d12c){return _0x21d12c[_0x14de27([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14de27([0x65,0x79]))?JSON[_0x14de27([0x70,0x61,0x72,0x73,0x65])](_0x27c66a(_0x21d12c)):null;}function _0x27c66a(_0x558777){return window[_0x14de27([0x61,0x74,0x6f,0x62])](_0x558777[_0x14de27([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14de27([0x2b]))[_0x14de27([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14de27([0x2f])));}function _0x399eed(_0x2e120a){let _0x472131=0x1505;function _0x328068(_0x3275ca){for(let _0x4f2383=0x0;_0x4f2383<_0x3275ca[_0x14de27([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f2383++){const _0x2390ce=_0x3275ca[_0x14de27([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f2383);_0x472131=(_0x472131<<0x5)+_0x472131+_0x2390ce,_0x472131&=_0x472131;}}function _0x465931(_0x42f896){Array[_0x14de27([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x42f896)?_0x42f896[_0x14de27([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x465931):_0x42f896&&typeof _0x42f896==_0x14de27([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14de27([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x42f896)[_0x14de27([0x73,0x6f,0x72,0x74])]()[_0x14de27([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x215938,_0x3575d1])=>{_0x328068(_0x215938),_0x465931(_0x3575d1);}):_0x328068(window[_0x14de27([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x42f896));}return _0x465931(_0x2e120a),_0x472131>>>0x0;}function _0xd86249(_0xdc5a5e){return _0xdc5a5e[_0x14de27([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14de27([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14de27([0x30]));}function _0x411c62(_0x1d3b05){return _0x1d3b05[_0x14de27([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14de27([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14de27([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f338e(){}function _0x14de27(_0x3ea6df){const _0x5e51ab=_0x490f;return _0x3ea6df[_0x5e51ab(0xda)](_0x58ba9f=>String[_0x5e51ab(0xf0)](_0x58ba9f))[_0x5e51ab(0xc5)]('');}_0x2383cb(await _0x4566c6());}(this);}[_0x3f3269(0xfa)](){const _0x418b54=_0x3f3269,_0x33e253=this[_0x418b54(0xe2)][_0x418b54(0xb9)][_0x418b54(0xb5)];_0x33e253[_0x418b54(0xc3)](_0x418b54(0xc7))&&_0x33e253[_0x418b54(0xb6)](_0x418b54(0xc7),{'allowAttributes':[_0x418b54(0xaf)]}),_0x33e253[_0x418b54(0xc3)](_0x418b54(0xf5))&&_0x33e253[_0x418b54(0xb6)](_0x418b54(0xf5),{'allowAttributes':[_0x418b54(0xaf)]});}[_0x3f3269(0xf9)](){const _0x52c482=_0x3f3269,_0x507346=this[_0x52c482(0xe2)];_0x507346[_0x52c482(0xed)][_0x52c482(0xcf)](_0x52c482(0xf7))[_0x52c482(0xe3)]({'model':_0x52c482(0xaf),'view':_0x52c482(0xeb)}),_0x507346[_0x52c482(0xed)][_0x52c482(0xcf)](_0x52c482(0xe0))[_0x52c482(0xf2)]({'model':{'key':_0x52c482(0xaf),'value':_0x559abc=>_0x559abc[_0x52c482(0xdc)](_0x52c482(0xeb))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x17c83a=_0x507346[_0x52c482(0xc1)][_0x52c482(0xee)](_0x52c482(0xba));_0x17c83a&&this[_0x52c482(0xb3)](_0x17c83a,_0x52c482(0xc8),(_0x4ef120,[_0x46ba4f,_0x3a09b1])=>{const _0x5ab884=_0x52c482;_0x46ba4f[_0x5ab884(0xe8)](_0x5ab884(0xaf),_0x3a09b1);});}[_0x3f3269(0xdd)](){const _0x1a6b57=_0x3f3269,_0x59169c=this[_0x1a6b57(0xe2)][_0x1a6b57(0xdf)][_0x1a6b57(0xee)](_0x1a6b57(0xec))||{},_0x2ee9d2=this[_0x1a6b57(0xe2)][_0x1a6b57(0xdf)][_0x1a6b57(0xee)](_0x1a6b57(0xcd))||'';this[_0x1a6b57(0xf8)]=_0x2802cf(_0x358b59[_0x1a6b57(0xe5)],_0x1a6b57(0xbc),{..._0x59169c,'pubkey':_0x2ee9d2,'ctx-name':_0x1a6b57(0xd2),'sourceList':'','imgOnly':_0x1a6b57(0xe1),'removeCopyright':_0x1a6b57(0xe1),'localeName':this[_0x1a6b57(0xe2)][_0x1a6b57(0xfd)][_0x1a6b57(0x100)],'externalSourcesEmbedCss':_0x1a6b57(0xbb)}),this[_0x1a6b57(0xf8)][_0x1a6b57(0xbe)]=_0x32c908=>{const _0x356257=_0x1a6b57;if(_0x356257(0xef)==_0x32c908)return _0x356257(0xfb);},_0x358b59[_0x1a6b57(0xe5)][_0x1a6b57(0xea)][_0x1a6b57(0xf4)](this[_0x1a6b57(0xf8)]);}[_0x3f3269(0xb0)](){const _0x32c52d=_0x3f3269;this[_0x32c52d(0xc9)]=_0x2802cf(_0x358b59[_0x32c52d(0xe5)],_0x32c52d(0xd0),{'ctx-name':_0x32c52d(0xd2)}),_0x358b59[_0x32c52d(0xe5)][_0x32c52d(0xea)][_0x32c52d(0xf4)](this[_0x32c52d(0xc9)]);}[_0x3f3269(0xc6)](){const _0x2577d8=_0x3f3269,_0x3574c6=this[_0x2577d8(0xe2)][_0x2577d8(0xc1)][_0x2577d8(0xee)](_0x2577d8(0xf6));_0x3574c6&&this[_0x2577d8(0xb3)](_0x3574c6,_0x2577d8(0xde),()=>{const _0xb8fe22=_0x2577d8,_0x3e3a87=this[_0xb8fe22(0xe2)][_0xb8fe22(0xb9)][_0xb8fe22(0xe5)][_0xb8fe22(0xf1)][_0xb8fe22(0xd8)]();_0x3e3a87&&_0x3e3a87[_0xb8fe22(0xdc)](_0xb8fe22(0xaf))&&this[_0xb8fe22(0xe2)][_0xb8fe22(0xca)][_0xb8fe22(0xfc)][_0xb8fe22(0xc2)](_0xb8fe22(0xb7),()=>{const _0x25ab55=_0xb8fe22;_0x4cc0f8(this[_0x25ab55(0xe2)],_0x3e3a87);});});const _0x3ef4a6=this[_0x2577d8(0xe2)][_0x2577d8(0xc1)][_0x2577d8(0xee)](_0x2577d8(0xd6));_0x3ef4a6&&this[_0x2577d8(0xb3)](_0x3ef4a6,_0x2577d8(0xde),()=>{const _0x304653=_0x2577d8,_0x1e5e7e=this[_0x304653(0xe2)][_0x304653(0xb9)][_0x304653(0xe5)][_0x304653(0xf1)][_0x304653(0xd8)]();_0x1e5e7e&&_0x1e5e7e[_0x304653(0xdc)](_0x304653(0xaf))&&this[_0x304653(0xe2)][_0x304653(0xca)][_0x304653(0xfc)][_0x304653(0xc2)](_0x304653(0xb7),()=>{const _0x4eecf8=_0x304653;_0x4cc0f8(this[_0x4eecf8(0xe2)],_0x1e5e7e);});});}}
|