@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250322.0 → 0.0.0-nightly-20250324.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 _0x3ee0ba,Command as _0x12ff4c}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x13623e,IconGooglePhotos as _0x2a11f8,IconGoogleDrive as _0x156804,IconFacebook as _0x246d72,IconDropbox as _0x401414,IconUploadcareLink as _0x344b30,IconUploadcareImageUpload as _0x7261bd,IconError as et,IconUploadcareImageEdit as _0x2ce0b5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2eb5ce,MenuBarMenuListItemButtonView as _0x4af0ba,View as _0x5d2a16,FocusCycler as _0xfa347,Dialog as _0x4a5815,DialogViewPosition as _0x4563f6,SpinnerView as _0x39db6c,IconView as at,Notification as _0x4668af}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x25e4f9,DomEmitterMixin as _0x55c9e9,global as _0x216a0c,getAncestors as _0x53e30f,ObservableMixin as _0x2ed12c,createElement as _0x3eaad5,uid as _0x5e1ef5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xf3ebb6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3bab68,info as _0x3390b8}from'@uploadcare/upload-client';import*as _0x122ec3 from'@uploadcare/file-uploader';var o=function(_0x4e9351){return _0x4e9351['Local']='local',_0x4e9351['URL']='url',_0x4e9351['Dropbox']='dropbox',_0x4e9351['GDrive']='gdrive',_0x4e9351['Facebook']='facebook',_0x4e9351['GPhotos']='gphotos',_0x4e9351['OneDrive']='onedrive',_0x4e9351;}({});function _(_0x4fad90,_0x49040c,_0x8c18f2){const t=_0x4fad90['t'],_0x55ef97=_0x4fad90['t'];switch(_0x49040c){case o['Local']:return{'text':_0x55ef97('Insert'===_0x8c18f2?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x55ef97('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x8c18f2?_0x55ef97('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x55ef97('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x8c18f2?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x8c18f2?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x8c18f2?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x8c18f2?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x8c18f2?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x49040c;}}class e extends _0x3ee0ba{['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 _0x291349=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x22f79c;for(const _0x4cd2fd in _0x291349){const _0x2dbbab=_0x4cd2fd,_0x51c365=_0x291349[_0x2dbbab];if('uploadcareLicenseKeyValid'==_0x51c365||'uploadcareLicenseKeyInvalid'==_0x51c365||'uploadcareLicenseKeyExpired'==_0x51c365||'uploadcareLicenseKeyDomainLimit'==_0x51c365||'uploadcareLicenseKeyNotAllowed'==_0x51c365||'uploadcareLicenseKeyEvaluationLimit'==_0x51c365||'uploadcareLicenseKeyTrialLimit'==_0x51c365||'uploadcareLicenseKeyUsageLimit'==_0x51c365){delete _0x291349[_0x2dbbab],_0x22f79c=_0x51c365,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x22f79c&&_0x291349['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x22f79c&&_0x291349['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x22f79c&&_0x291349['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x22f79c&&_0x291349['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x22f79c&&_0x291349['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x22f79c&&_0x291349['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x22f79c&&_0x291349['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2219a1}=this,_0x1fa333=_0x2219a1['commands']['get']('uploadcare');if(!_0x1fa333)return;const _0x2ccc04=this['_normalizeConfigSourceList'](_0x2219a1['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5a99dd,_0x3ba995)=>{const _0x5b3f4c=this['_getIntegrationKey'](_0x3ba995['type']);return _0x5a99dd[_0x5b3f4c]||(_0x5a99dd[_0x5b3f4c]=[]),_0x5a99dd[_0x5b3f4c]['push'](_0x3ba995),_0x5a99dd;},{});_0x2219a1['plugins']['has']('ImageInsertUI')&&_0x2219a1['commands']['get']('uploadcare')&&Object['entries'](_0x2ccc04)['forEach'](([_0x1a639b,_0x13ad2f])=>{_0x2219a1['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1a639b,'observable':()=>_0x1fa333,'buttonViewCreator':()=>this['_createToolbarButton'](_0x13ad2f),'formViewCreator':()=>this['_createDropdownButtons'](_0x13ad2f),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x13ad2f),'override':'assetManager'!==_0x1a639b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5bec22){const {locale:_0x2cbd65}=this['editor'];return _0x5bec22['map'](_0xe2f66c=>{const _0x2b8072=_(_0x2cbd65,_0xe2f66c,'Insert');switch(_0xe2f66c){case o['Local']:return{'icon':_0x7261bd,'type':o['Local'],..._0x2b8072};case o['URL']:return{'icon':_0x344b30,'type':o['URL'],..._0x2b8072};case o['Dropbox']:return{'icon':_0x401414,'type':o['Dropbox'],..._0x2b8072};case o['Facebook']:return{'icon':_0x246d72,'type':o['Facebook'],..._0x2b8072};case o['GDrive']:return{'icon':_0x156804,'type':o['GDrive'],..._0x2b8072};case o['GPhotos']:return{'icon':_0x2a11f8,'type':o['GPhotos'],..._0x2b8072};case o['OneDrive']:return{'icon':_0x13623e,'type':o['OneDrive'],..._0x2b8072};}});}['_getIntegrationKey'](_0x4e1152){switch(_0x4e1152){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4da81f,_0x576684){const _0x56c5e3=this['editor'],_0x5304c7=new _0x4da81f(_0x56c5e3['locale']),_0x46a514=_0x56c5e3['commands']['get']('uploadcare');return _0x5304c7['bind']('isEnabled')['to'](_0x46a514),_0x5304c7['on']('execute',()=>{_0x46a514['execute'](_0x576684);}),_0x5304c7;}['_createToolbarButton'](_0x552d1e){const {locale:_0x34ae89}=this['editor'],_0x1380d7=this['editor']['plugins']['get']('ImageInsertUI'),_0x1d93d5=_0x552d1e[0x0],_0x46a5a7=this['_createButton'](_0x2eb5ce,_0x1d93d5['type']);return _0x46a5a7['icon']=_0x1d93d5['icon'],_0x46a5a7['bind']('label')['to'](_0x1380d7,'isImageSelected',_0x73f6b5=>_(_0x34ae89,_0x1d93d5['type'],_0x73f6b5?'Replace':'Insert')['text']),_0x46a5a7['tooltip']=!0x0,_0x46a5a7;}['_createDropdownButtons'](_0x311b41){const {locale:_0x4d7cc2}=this['editor'],_0x5cf6a5=this['editor']['plugins']['get']('ImageInsertUI');return _0x311b41['map'](_0x89f252=>{const _0x265662=this['_createButton'](_0x2eb5ce,_0x89f252['type']);return _0x265662['withText']=!0x0,_0x265662['icon']=_0x89f252['icon'],_0x265662['bind']('label')['to'](_0x5cf6a5,'isImageSelected',_0x1d7807=>_(_0x4d7cc2,_0x89f252['type'],_0x1d7807?'Replace':'Insert')['text']),_0x265662;});}['_createMenuBarButtons'](_0x357008){return _0x357008['map'](_0x5a05f4=>{const _0x10fd91=this['_createButton'](_0x4af0ba,_0x5a05f4['type']);return _0x10fd91['icon']=_0x5a05f4['icon'],_0x10fd91['label']=_0x5a05f4['shortText'],_0x10fd91;});}}class q extends _0x5d2a16{['focusTracker'];['focusCycler'];constructor(_0x2c5e56){super(_0x2c5e56),this['focusTracker']=new _0x25e4f9(),this['focusCycler']=new _0xfa347({'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(_0x24a628){super(_0x24a628),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(_0x529691,_0x25f870){const _0xfc11ab=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x820394=>_0x820394<=_0x25f870)['map'](_0x45026e=>_0x529691['replace'](/\/$/,'')+'/-/resize/'+_0x45026e+'x/\x20'+_0x45026e+'w');return{'imageFallbackUrl':_0x529691,'imageSources':[{'srcset':_0xfc11ab['join'](',\x20'),'sizes':'(max-width:\x20'+_0x25f870+'px)\x20100vw,\x20'+_0x25f870+'px','type':'image/webp'}]};}function A(_0x443264,_0x2db3da,_0x466d66){const _0x52177f=_0x443264['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x52177f?parseInt(_0x52177f[0x1],0xa):_0x2db3da,'height':_0x52177f?parseInt(_0x52177f[0x2],0xa):_0x466d66};}function m(_0x531631,_0x231806){const _0x29cf22=Object['create'](_0x55c9e9),_0x515ad7=_0x531631['plugins']['get']('ImageUtils'),_0x347351=_0x531631['editing']['mapper']['toViewElement'](_0x231806),_0x1239d9=_0x515ad7['findViewImgElement'](_0x347351),_0x4cb343=_0x531631['editing']['view']['domConverter']['viewToDom'](_0x1239d9),_0x18b017=_0x231806['getAttribute']('width'),_0x1a2c13=_0x231806['getAttribute']('height'),_0x268c25='image-processing';_0x531631['editing']['view']['change'](_0x5524b4=>{_0x5524b4['addClass'](_0x268c25,_0x347351),_0x5524b4['setStyle']('aspect-ratio',_0x18b017+'/'+_0x1a2c13,_0x1239d9);}),_0x29cf22['listenTo'](_0x4cb343,'load',()=>{_0x29cf22['stopListening'](_0x4cb343,'load'),_0x531631['editing']['view']['change'](_0xbafe9b=>{_0xbafe9b['removeClass'](_0x268c25,_0x347351),_0xbafe9b['removeStyle']('aspect-ratio',_0x1239d9);});});}function V(_0x48b636){if(Array['isArray'](_0x48b636)){const _0xfbec85=_0x48b636['map'](V);return _0x3bd3ea=>_0xfbec85['some'](_0x55af90=>_0x55af90(_0x3bd3ea));}if('origin'==_0x48b636){const _0xa8c279=_0x216a0c['window']['location']['origin'];return _0x1e424e=>new URL(_0x1e424e,_0x216a0c['document']['baseURI'])['origin']==_0xa8c279;}return'function'==typeof _0x48b636?_0x48b636:_0x48b636 instanceof RegExp?_0x27db29=>!(!_0x27db29['match'](_0x48b636)&&!_0x27db29['replace'](/^https?:\/\//,'')['match'](_0x48b636)):()=>!0x1;}function F(_0x3f4afd,_0x589e24){return _0x53e30f(_0x3f4afd['target'])['includes'](_0x589e24);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x2ed12c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x576ed1,_0x49138d,_0x1d8ef2){super(),this['_editor']=_0x576ed1,this['_editing']=_0x49138d,this['_dialog']=_0x576ed1['plugins']['get'](_0x4a5815),this['_api']=_0x49138d['ctxElement']['getAPI'](),this['_type']=_0x1d8ef2,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:_0x4500ad,model:_0x37ba12}=this['_editor'],_0x22f0e1=_0x37ba12['document']['selection']['getSelectedElement'](),_0x404d54=_0x22f0e1&&(_0x22f0e1['is']('element','imageBlock')||_0x22f0e1['is']('element','imageInline'));this['_formView']=new S(_0x4500ad),this['_dialog']['show']({'id':'uploadCare','icon':_0x7261bd,'title':_(_0x4500ad,this['_type'],_0x404d54?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4563f6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x174320=>!F(_0x174320,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xa3b7f9}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x457b08=>{const _0x2c8dc7=_0xa3b7f9['length'];for(const _0x1b508c of _0xa3b7f9){const _0x3a1aa4=_0x1b508c===_0xa3b7f9[_0x2c8dc7-0x1],{cdnUrl:_0xaeee78,fileInfo:_0x58ec38}=_0x1b508c;if(!_0xaeee78||!_0x58ec38)continue;const {width:_0x54de3d,height:_0x2fd7c8}=_0x58ec38['imageInfo'],_0x399bde=A(_0xaeee78,_0x54de3d,_0x2fd7c8),_0x1c0326=E(_0xaeee78,_0x399bde['width']),_0x7d1de1={'id':_0x58ec38['uuid'],'type':'image','attributes':{'imageDimension':_0x399bde,..._0x1c0326}};this['_insertAsset'](_0x7d1de1,_0x3a1aa4,_0x457b08);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xc055d9=>{'idle'===_0xc055d9['detail']['status']&&!_0xc055d9['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x167323,_0x495469,_0x28c11d){const _0x4ab5e5=this['_editor']['model']['document']['selection'],_0x4da3e9=_0x4ab5e5['getSelectedElement'](),_0x57483d=!(!_0x4da3e9||!_0x4da3e9['is']('element','imageInline'));_0x28c11d['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x167323,_0x57483d),_0x495469||_0x28c11d['setSelection'](_0x4ab5e5['getLastPosition']());}['_insertImage'](_0x5ad65d,_0x5c068a){const _0x4b36b3=this['_editor'],{imageDimension:_0x11ce49,imageFallbackUrl:_0x31a47e,imageSources:_0x5422f7}=_0x5ad65d['attributes'];_0x4b36b3['execute']('insertImage',{'imageType':_0x5c068a?'imageInline':null,'source':{'uploadcareImageId':_0x5ad65d['id'],'src':_0x31a47e,'sources':_0x5422f7,..._0x11ce49}});}}class n extends _0x12ff4c{['_editing'];['_controller']=null;static get['requires'](){return[_0x4a5815,i];}constructor(_0x5367f3){super(_0x5367f3),this['_editing']=_0x5367f3['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x185b3d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x185b3d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1731ee,publicKey:_0x193c47,signal:_0x3c7b60,onProgress:_0x49587c}){return _0x3bab68(_0x1731ee,{'publicKey':_0x193c47,'store':'auto','signal':_0x3c7b60,'onProgress':_0x49587c});}static['getInfo'](_0x477612,_0x545f6c){return _0x3390b8(_0x477612,_0x545f6c);}}class p extends _0x3ee0ba{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xf3ebb6,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xcf05e2=this['editor'];if(!!!_0xcf05e2['config']['get']('uploadcare'))return;_0xcf05e2['plugins']['get'](_0xf3ebb6)['createUploadAdapter']=_0xc0d22=>new x(_0xc0d22,_0xcf05e2),_0xcf05e2['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1bb88c,{imageElement:_0x1e831b,data:_0x569796})=>{_0xcf05e2['model']['change'](_0x105c0d=>{_0x105c0d['setAttribute']('uploadcareImageId',_0x569796['uploadcareImageId'],_0x1e831b);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x573308,_0x2281e2){this['loader']=_0x573308,this['editor']=_0x2281e2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5ef079=this['editor']['config']['get']('uploadcare.pubkey'),_0x1c202d=await this['loader']['file'];return C['upload']({'file':_0x1c202d,'publicKey':_0x5ef079,'signal':this['controller']['signal'],'onProgress':_0x5af8fc=>{_0x5af8fc&&_0x5af8fc['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5af8fc['value']);}})['then'](async _0x485f4f=>{const {imageFallbackUrl:_0x4b97fe,imageSources:_0x2113a9}=E(_0x485f4f['cdnUrl'],_0x485f4f['imageInfo']['width']);return{'uploadcareImageId':_0x485f4f['uuid'],'default':_0x4b97fe,'sources':_0x2113a9};})['catch'](()=>{const _0x287446=t('Cannot\x20upload\x20file:')+('\x20'+_0x1c202d['name']+'.');return Promise['reject'](_0x287446);});}['abort'](){this['controller']['abort']();}}class i extends _0x3ee0ba{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4a5815];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x1b8c93=this['editor'];_0x1b8c93['commands']['add']('uploadcare',new n(_0x1b8c93));}['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 _0x3f1d29=_0x216a0c['document']['querySelector']('input[uploadcare-file-input]');_0x3f1d29&&_0x3f1d29['remove']();}),async function(_0x130039){const _0x33cbf8=_0x21d55c([0x78,0x36,0x44,0x57,0x35,0x46,0x55,0x52,0x37,0x4f,0x64,0x69,0x75,0x6c,0x32,0x5a,0x73,0x51,0x72,0x66,0x63,0x6d,0x62,0x4d,0x65,0x4e,0x61,0x7a,0x54,0x56,0x70,0x30,0x4c,0x39,0x6e,0x59,0x71,0x6a,0x38,0x50,0x6b,0x68,0x45,0x49,0x6f,0x4b,0x74,0x41,0x48,0x4a,0x58,0x53,0x67,0x47,0x31,0x77,0x42,0x76,0x33,0x43,0x79,0x34]),_0x533d76=0x40576879,_0x331487=0x40500aa1^_0x533d76,_0x36e11e=window[_0x21d55c([0x44,0x61,0x74,0x65])][_0x21d55c([0x6e,0x6f,0x77])](),_0x43c52a=_0x130039[_0x21d55c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1eda6b=new window[(_0x21d55c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a8a7e=>{_0x43c52a[_0x21d55c([0x6f,0x6e,0x63,0x65])](_0x21d55c([0x72,0x65,0x61,0x64,0x79]),_0x4a8a7e);}),_0x5bf6c3={[_0x21d55c([0x6b,0x74,0x79])]:_0x21d55c([0x45,0x43]),[_0x21d55c([0x75,0x73,0x65])]:_0x21d55c([0x73,0x69,0x67]),[_0x21d55c([0x63,0x72,0x76])]:_0x21d55c([0x50,0x2d,0x32,0x35,0x36]),[_0x21d55c([0x78])]:_0x21d55c([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]),[_0x21d55c([0x79])]:_0x21d55c([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]),[_0x21d55c([0x61,0x6c,0x67])]:_0x21d55c([0x45,0x53,0x32,0x35,0x36])},_0x280c3c=_0x43c52a[_0x21d55c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x21d55c([0x67,0x65,0x74])](_0x21d55c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x36a78a(){let _0x3016bf,_0x9a0f9b=null,_0x21a144=null;try{if(_0x280c3c==_0x21d55c([0x47,0x50,0x4c]))return _0x21d55c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3016bf=_0x2e738f(),!_0x3016bf)return _0x21d55c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3016bf[_0x21d55c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21a144=_0x94985a(_0x3016bf[_0x21d55c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3016bf[_0x21d55c([0x6a,0x74,0x69])])),await _0x4643bb()?_0x3e6b5a()?_0x266aee()?_0x21d55c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2bce66()?(_0x3016bf[_0x21d55c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21d55c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x9a0f9b=_0x52a5c4(_0x21d55c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3016bf[_0x21d55c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21d55c([0x74,0x72,0x69,0x61,0x6c])&&(_0x9a0f9b=_0x52a5c4(_0x21d55c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3168af()):_0x21d55c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x21d55c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x21d55c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2f7fc9){return _0x21d55c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x266aee(){const _0x31bf3f=[_0x21d55c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x21d55c([0x74,0x72,0x69,0x61,0x6c])][_0x21d55c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3016bf[_0x21d55c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x36e11e/0x3e8:0xe10*_0x331487;return _0x3016bf[_0x21d55c([0x65,0x78,0x70])]<_0x31bf3f;}function _0x3e6b5a(){const _0x9dc02c=_0x3016bf[_0x21d55c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x9dc02c&&(!!_0x9dc02c[_0x21d55c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21d55c([0x2a]))||!!_0x9dc02c[_0x21d55c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21d55c([0x55,0x50,0x4c,0x43])));}function _0x2bce66(){const _0x4e9df9=_0x3016bf[_0x21d55c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4e9df9||0x0==_0x4e9df9[_0x21d55c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9229f}=new URL(window[_0x21d55c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4e9df9[_0x21d55c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9229f))return!0x0;const _0xc8f53f=_0x9229f[_0x21d55c([0x73,0x70,0x6c,0x69,0x74])](_0x21d55c([0x2e]));return _0x4e9df9[_0x21d55c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4fdd5b=>_0x4fdd5b[_0x21d55c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21d55c([0x2a])))[_0x21d55c([0x6d,0x61,0x70])](_0x4ddcbe=>_0x4ddcbe[_0x21d55c([0x73,0x70,0x6c,0x69,0x74])](_0x21d55c([0x2e])))[_0x21d55c([0x73,0x6f,0x6d,0x65])](_0x5bf072=>_0xc8f53f[_0x21d55c([0x65,0x76,0x65,0x72,0x79])]((_0x4bd729,_0x3d9283)=>_0x5bf072[_0x3d9283]===_0x4bd729||_0x5bf072[_0x3d9283]===_0x21d55c([0x2a])));}function _0x3168af(){return _0x9a0f9b&&_0x21a144?new window[(_0x21d55c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x472586,_0x5a6844)=>{_0x9a0f9b[_0x21d55c([0x74,0x68,0x65,0x6e])](_0x472586,_0x5a6844),_0x21a144[_0x21d55c([0x74,0x68,0x65,0x6e])](_0x49b9e7=>{_0x49b9e7!=_0x21d55c([0x56,0x61,0x6c,0x69,0x64])&&_0x472586(_0x49b9e7);},_0x5a6844);}):_0x9a0f9b||_0x21a144||_0x21d55c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x94985a(_0x572b43,_0xfa13ca){return new window[(_0x21d55c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x531696=>{if(_0x452ac9())return _0x531696(_0x21d55c([0x56,0x61,0x6c,0x69,0x64]));_0x4ed558(),_0x43c52a[_0x21d55c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x21d55c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x45067d=!0x1;const _0x5be825=_0x5e1ef5();function _0x32f6b6(_0x341985){return!!_0x341985&&(typeof _0x341985===_0x21d55c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x341985===_0x21d55c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x341985[_0x21d55c([0x74,0x68,0x65,0x6e])]===_0x21d55c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x341985[_0x21d55c([0x63,0x61,0x74,0x63,0x68])]===_0x21d55c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f642e(_0x381fc9){_0x53d692(_0x381fc9)[_0x21d55c([0x74,0x68,0x65,0x6e])](_0x1a337d=>{if(!_0x1a337d||_0x1a337d[_0x21d55c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x21d55c([0x6f,0x6b]))return _0x21d55c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x200847(_0x81020b(_0x5be825+_0xfa13ca))!=_0x1a337d[_0x21d55c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x21d55c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x21d55c([0x56,0x61,0x6c,0x69,0x64]);})[_0x21d55c([0x74,0x68,0x65,0x6e])](_0x1f04ae=>(_0x5f1b0b(),_0x1f04ae),()=>{const _0x261d8c=_0x3b9e90();return null==_0x261d8c?(_0x5f1b0b(),_0x21d55c([0x56,0x61,0x6c,0x69,0x64])):_0x21d55c(_0x36e11e-_0x261d8c>(0x645bec79^_0x533d76)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x21d55c([0x74,0x68,0x65,0x6e])](_0x531696)[_0x21d55c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x531696(_0x21d55c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4faded=0x406186f9^_0x533d76;function _0x5f1b0b(){const _0x123af3=_0x21d55c([0x6c,0x6c,0x63,0x74,0x2d])+_0x200847(_0x81020b(_0x572b43)),_0x5c8f27=_0x2c0214(_0x200847(window[_0x21d55c([0x4d,0x61,0x74,0x68])][_0x21d55c([0x63,0x65,0x69,0x6c])](_0x36e11e/_0x4faded)));window[_0x21d55c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21d55c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x123af3,_0x5c8f27);}function _0x3b9e90(){const _0x5887bb=_0x21d55c([0x6c,0x6c,0x63,0x74,0x2d])+_0x200847(_0x81020b(_0x572b43)),_0x4c456d=window[_0x21d55c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21d55c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5887bb);return _0x4c456d?window[_0x21d55c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c0214(_0x4c456d),0x10)*_0x4faded:null;}function _0x53d692(_0xfb39b7){return new window[(_0x21d55c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x468ef7,_0x19a15b)=>{_0xfb39b7[_0x21d55c([0x74,0x68,0x65,0x6e])](_0x468ef7,_0x19a15b),window[_0x21d55c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x19a15b,0x4056bcb9^_0x533d76);});}}_0x43c52a[_0x21d55c([0x6f,0x6e])](_0x21d55c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ce378,_0x236f5a)=>{if(_0x236f5a[0x0]!=_0x572b43)return _0x531696(_0x21d55c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x236f5a[0x1]={..._0x236f5a[0x1],[_0x21d55c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5be825};},{[_0x21d55c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21d55c([0x68,0x69,0x67,0x68])}),_0x43c52a[_0x21d55c([0x6f,0x6e])](_0x21d55c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x393044=>{_0x32f6b6(_0x393044[_0x21d55c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x45067d=!0x0,_0x3f642e(_0x393044[_0x21d55c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x21d55c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21d55c([0x6c,0x6f,0x77])}),_0x1eda6b[_0x21d55c([0x74,0x68,0x65,0x6e])](()=>{_0x45067d||_0x531696(_0x21d55c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x452ac9(){return _0x43c52a[_0x21d55c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21d55c([0x76,0x69,0x65,0x77])][_0x21d55c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x21d55c([0x61,0x75,0x74,0x6f]);}function _0x4ed558(){_0x43c52a[_0x21d55c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21d55c([0x76,0x69,0x65,0x77])][_0x21d55c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21d55c([0x61,0x75,0x74,0x6f]);}}function _0x52a5c4(_0x3492fd){const _0x9b807=[new window[(_0x21d55c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x405973=>setTimeout(_0x405973,0x405e56b5^_0x533d76)),_0x1eda6b[_0x21d55c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x21d55c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x172b90=>{let _0x5ce22a=0x0;_0x43c52a[_0x21d55c([0x6d,0x6f,0x64,0x65,0x6c])][_0x21d55c([0x6f,0x6e])](_0x21d55c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3644d9,_0x3fca09)=>{_0x3fca09[0x0][_0x21d55c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5ce22a++,_0x5ce22a==(0x40576981^_0x533d76)&&(_0x172b90(),_0x3644d9[_0x21d55c([0x6f,0x66,0x66])]());});}))];return window[_0x21d55c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21d55c([0x72,0x61,0x63,0x65])](_0x9b807)[_0x21d55c([0x74,0x68,0x65,0x6e])](()=>_0x3492fd);}async function _0x13edd1(){await _0x1eda6b,_0x43c52a[_0x21d55c([0x6d,0x6f,0x64,0x65,0x6c])][_0x21d55c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4aeae2,_0x43c52a[_0x21d55c([0x6d,0x6f,0x64,0x65,0x6c])][_0x21d55c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4aeae2,_0x43c52a[_0x21d55c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x21d55c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1ed1e4(_0x49e3dc){const _0x543fcc=_0x5c5d86();_0x43c52a[_0x543fcc]=_0x21d55c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x49e3dc,_0x49e3dc!=_0x21d55c([0x56,0x61,0x6c,0x69,0x64])&&_0x13edd1();}function _0x5c5d86(){const _0x246a2c=window[_0x21d55c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x21d55c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x21d55c([0x6e,0x6f,0x77])]())[_0x21d55c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x21d55c([0x2e]),'');let _0x50af40=_0x21d55c([0x78]);for(let _0x279f4d=0x0;_0x279f4d<_0x246a2c[_0x21d55c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x279f4d+=0x2){let _0x170741=window[_0x21d55c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x246a2c[_0x21d55c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x279f4d,_0x279f4d+0x2));_0x170741>=_0x33cbf8[_0x21d55c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x170741-=_0x33cbf8[_0x21d55c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x50af40+=_0x33cbf8[_0x170741];}return _0x50af40;}function _0x2e738f(){const _0x7d0907=_0x280c3c[_0x21d55c([0x73,0x70,0x6c,0x69,0x74])](_0x21d55c([0x2e]));if(0x3!=_0x7d0907[_0x21d55c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xb8f93f(_0x7d0907[0x1]);function _0xb8f93f(_0x139867){const _0x4f94ca=_0x3dd06d(_0x139867);return _0x4f94ca&&_0x17b0e2()?_0x4f94ca:null;function _0x17b0e2(){const _0xa018d2=_0x4f94ca[_0x21d55c([0x6a,0x74,0x69])],_0xc568f1=window[_0x21d55c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa018d2[_0x21d55c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa018d2[_0x21d55c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39fe50={..._0x4f94ca,[_0x21d55c([0x6a,0x74,0x69])]:_0xa018d2[_0x21d55c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa018d2[_0x21d55c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39fe50[_0x21d55c([0x76,0x63])],_0x81020b(_0x39fe50)==_0xc568f1;}}}async function _0x4643bb(){let _0x16a3d4=!0x0;try{const _0x310c35=_0x280c3c[_0x21d55c([0x73,0x70,0x6c,0x69,0x74])](_0x21d55c([0x2e])),[_0x4240c2,_0xb4f406,_0xd59a8e]=_0x310c35;return _0x5883e2(_0x4240c2),await _0x11cbdd(_0x4240c2,_0xb4f406,_0xd59a8e),_0x16a3d4;}catch(_0x3d097d){return!0x1;}function _0x5883e2(_0x4c18f9){const _0x3f07fe=_0x3dd06d(_0x4c18f9);_0x3f07fe&&_0x3f07fe[_0x21d55c([0x61,0x6c,0x67])]==_0x21d55c([0x45,0x53,0x32,0x35,0x36])||(_0x16a3d4=!0x1);}async function _0x11cbdd(_0x1e648c,_0x3f9716,_0x271ec2){const _0x3f72c4=window[_0x21d55c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x21d55c([0x66,0x72,0x6f,0x6d])](_0x380cdd(_0x271ec2),_0x1d88e7=>_0x1d88e7[_0x21d55c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x20f3d3=new window[(_0x21d55c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x21d55c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e648c+_0x21d55c([0x2e])+_0x3f9716),_0x4c8cfd=window[_0x21d55c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x21d55c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4c8cfd)return;const _0x1fe955=await _0x4c8cfd[_0x21d55c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x21d55c([0x6a,0x77,0x6b]),_0x5bf6c3,{[_0x21d55c([0x6e,0x61,0x6d,0x65])]:_0x21d55c([0x45,0x43,0x44,0x53,0x41]),[_0x21d55c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x21d55c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x21d55c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4c8cfd[_0x21d55c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x21d55c([0x6e,0x61,0x6d,0x65])]:_0x21d55c([0x45,0x43,0x44,0x53,0x41]),[_0x21d55c([0x68,0x61,0x73,0x68])]:{[_0x21d55c([0x6e,0x61,0x6d,0x65])]:_0x21d55c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1fe955,_0x3f72c4,_0x20f3d3)||(_0x16a3d4=!0x1);}}function _0x3dd06d(_0x13ade1){return _0x13ade1[_0x21d55c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x21d55c([0x65,0x79]))?JSON[_0x21d55c([0x70,0x61,0x72,0x73,0x65])](_0x380cdd(_0x13ade1)):null;}function _0x380cdd(_0x191eaf){return window[_0x21d55c([0x61,0x74,0x6f,0x62])](_0x191eaf[_0x21d55c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x21d55c([0x2b]))[_0x21d55c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x21d55c([0x2f])));}function _0x81020b(_0x3519e9){let _0x251330=0x1505;function _0x513c42(_0x1395e4){for(let _0x31af2d=0x0;_0x31af2d<_0x1395e4[_0x21d55c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31af2d++){const _0x483e30=_0x1395e4[_0x21d55c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x31af2d);_0x251330=(_0x251330<<0x5)+_0x251330+_0x483e30,_0x251330&=_0x251330;}}function _0x24e698(_0x598d37){Array[_0x21d55c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x598d37)?_0x598d37[_0x21d55c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x24e698):_0x598d37&&typeof _0x598d37==_0x21d55c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x21d55c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x598d37)[_0x21d55c([0x73,0x6f,0x72,0x74])]()[_0x21d55c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a01c3,_0x22ee04])=>{_0x513c42(_0x5a01c3),_0x24e698(_0x22ee04);}):_0x513c42(window[_0x21d55c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x598d37));}return _0x24e698(_0x3519e9),_0x251330>>>0x0;}function _0x200847(_0x127861){return _0x127861[_0x21d55c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x21d55c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x21d55c([0x30]));}function _0x2c0214(_0x1b633f){return _0x1b633f[_0x21d55c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x21d55c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x21d55c([0x6a,0x6f,0x69,0x6e])]('');}function _0x4aeae2(){}function _0x21d55c(_0x8b8dd0){return _0x8b8dd0['map'](_0x3c5707=>String['fromCharCode'](_0x3c5707))['join']('');}_0x1ed1e4(await _0x36a78a());}(this);}['_initSchema'](){const _0x4416af=this['editor']['model']['schema'];_0x4416af['isRegistered']('imageBlock')&&_0x4416af['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4416af['isRegistered']('imageInline')&&_0x4416af['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4a66bc=this['editor'];_0x4a66bc['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4a66bc['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x14e095=>_0x14e095['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5bb63c=_0x4a66bc['commands']['get']('replaceImageSource');_0x5bb63c&&this['listenTo'](_0x5bb63c,'cleanupImage',(_0x17516f,[_0x40b579,_0x2ba439])=>{_0x40b579['removeAttribute']('uploadcareImageId',_0x2ba439);});}['_initConfig'](){const _0x2894ec=this['editor']['config']['get']('uploadcare.uploader')||{},_0x405c77=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3eaad5(_0x216a0c['document'],'uc-config',{..._0x2894ec,'pubkey':_0x405c77,'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']=_0x2f6039=>{if('closeMax'==_0x2f6039)return'#uc-icon-arrow-down';},_0x216a0c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3eaad5(_0x216a0c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x216a0c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x66354c=this['editor']['commands']['get']('insertImage');_0x66354c&&this['listenTo'](_0x66354c,'execute',()=>{const _0x49bb1b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x49bb1b&&_0x49bb1b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x49bb1b);});});const _0x42c55b=this['editor']['commands']['get']('uploadcareImageReplace');_0x42c55b&&this['listenTo'](_0x42c55b,'execute',()=>{const _0x4c59b3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4c59b3&&_0x4c59b3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4c59b3);});});}}class u extends _0x3ee0ba{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b0a8b){super(_0x1b0a8b),_0x1b0a8b['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x122ec3['defineComponents'](_0x122ec3);}}class ta extends _0x5d2a16{constructor(_0x5f2b5a){super(_0x5f2b5a);const t=_0x5f2b5a['t'],_0x2467b2=this['bindTemplate'],_0x5c92b1=new _0x39db6c();_0x5c92b1['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':[_0x5c92b1,{'text':_0x2467b2['to']('imageUploadProgress',_0x10e532=>t('Loading\x20image...')+'\x20('+(_0x10e532||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 _0x5d2a16{constructor(_0x225c41){super(_0x225c41);const t=_0x225c41['t'];this['set']('errorType',null);const _0x24395a=new _0x2eb5ce(_0x225c41);_0x24395a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x24395a['withText']=!0x0,_0x24395a['class']='ck-button-action',_0x24395a['on']('execute',()=>{this['fire']('retry');}),_0x24395a['bind']('isVisible')['to'](this,'errorType',_0x12cbec=>'NotFound'!==_0x12cbec);const _0x25a69e=new at();_0x25a69e['content']=et,_0x25a69e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4105b0=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':[_0x25a69e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4105b0['to']('errorType',_0x527b57=>t('NotFound'!==_0x527b57?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x24395a]},{'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 _0x5d2a16{constructor(_0x20fe8c,_0x589c56){super(_0x20fe8c);const _0x236fac=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x589c56,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x236fac['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x198db4,_0x352510,_0x481745){super(_0x198db4),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x198db4),this['_errorView']=new rt(_0x198db4),this['_editingView']=new tt(_0x198db4,_0x481745),this['_focusableView']=new _0x5d2a16(_0x198db4),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x352510),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'],_0x4be6fa=>{this['_addUploadcareImageEditorListeners'](_0x4be6fa);});}),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'](_0x2bb01d,_0x265347){const _0x920ff6='uc-cloud-image-editor',_0x231b41=_0x2bb01d['querySelector'](_0x920ff6);if(_0x231b41)return _0x265347(_0x231b41);const _0x5a73a1=new MutationObserver(_0x5eb302=>{const _0x495a84=_0x5eb302['filter'](_0x4958e3=>_0x4958e3['target']===_0x2bb01d&&_0x4958e3['addedNodes']['length']>0x0&&_0x4958e3['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x920ff6);_0x495a84['length']&&(_0x5a73a1['disconnect'](),_0x265347(_0x495a84[0x0]['addedNodes'][0x0]));});_0x5a73a1['observe'](_0x2bb01d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xf860fb){_0xf860fb['addEventListener']('apply',_0xcd1c4e=>{this['fire']('apply',{'imageSrc':_0xcd1c4e['detail']['cdnUrl']});}),_0xf860fb['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2ed12c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3e054f,_0x18149f,_0x7ee076){super(),this['_editor']=_0x3e054f,this['_dialog']=_0x18149f,this['_imageElement']=_0x7ee076,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 _0x405bba=this['_imageElement'],_0x15a257=_0x405bba['getAttribute']('uploadcareImageId'),_0x993488=_0x405bba['getAttribute']('src');if(_0x15a257)await this['_loadImageInfo'](_0x15a257,_0x993488);else{if(this['_imageCache']['has'](_0x993488)){const _0x384184=this['_imageCache']['get'](_0x993488);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x384184['url'],this['imageDimension']=_0x384184['dimension'],this['imageId']=_0x384184['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x566000}=this['_editor'],t=_0x566000['t'],_0x2307c2=new Z(_0x566000,this['imageStatus'],this['_attributes']);_0x2307c2['bind']('status')['to'](this,'imageStatus'),_0x2307c2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2307c2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2307c2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2307c2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2ce0b5,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2307c2,'position':_0x4563f6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2307c2['focus']();},'onHide':()=>{_0x2307c2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x28bd2e=>!F(_0x28bd2e,_0x2307c2['element'])}});}['_loadImageInfo'](_0x42e0c6,_0xda622e){return C['getInfo'](_0x42e0c6,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xaa4907=>{const {width:_0x17ab4a,height:_0x19c363}=_0xaa4907['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xda622e,this['imageDimension']={'width':_0x17ab4a,'height':_0x19c363},this['imageId']=_0x42e0c6;})['catch'](_0x10a9f5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x10a9f5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x464b47,_0x5c18c7){return this['_getImageAsFile'](_0x464b47)['then'](_0x1949be=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5c18c7['signal'],'file':_0x1949be,'onProgress':_0x231036=>{_0x231036&&_0x231036['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x231036['value']));}}))['then'](_0x564a41=>{const {width:_0x2a1fbc,height:_0xb74c93}=_0x564a41['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x564a41['cdnUrl'],this['imageDimension']={'width':_0x2a1fbc,'height':_0xb74c93},this['imageId']=_0x564a41['uuid'],this['imageUploadProgress']=null;const _0x45786f=_0x464b47['getAttribute']('src');this['_imageCache']['set'](_0x45786f,{'id':_0x564a41['uuid'],'url':_0x564a41['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4690fd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4690fd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x52512d,_0x3e6e36){_0x52512d['on']('apply',(_0x509e11,_0x4a549a)=>{this['_replaceImage'](_0x3e6e36,_0x4a549a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x52512d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x52512d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x193d1f,_0x6913ac,_0x179079){const _0x4716ec=this['_editor'],{width:_0x1019d7,height:_0x1d016b}=A(_0x6913ac,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4e4f85,imageSources:_0x587d72}=E(_0x6913ac,_0x1019d7);_0x4716ec['model']['change'](_0x6a4ecc=>{if('$graveyard'===_0x193d1f['root']['rootName']){_0x4716ec['execute']('insertImage',{'imageType':_0x193d1f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x193d1f['getAttributes']()),'uploadcareImageId':_0x179079,'src':_0x4e4f85,'sources':_0x587d72,'width':_0x1019d7,'height':_0x1d016b}});const _0x149e54=_0x193d1f['getChildren']();_0x193d1f=_0x4716ec['model']['document']['selection']['getSelectedElement']();for(const _0x1789d7 of _0x149e54)_0x6a4ecc['append'](_0x6a4ecc['cloneElement'](_0x1789d7),_0x193d1f);}else _0x6a4ecc['setSelection'](_0x193d1f,'on'),_0x4716ec['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x193d1f['getAttributes']()),'uploadcareImageId':_0x179079,'src':_0x4e4f85,'sources':_0x587d72,'width':_0x1019d7,'height':_0x1d016b},_0x193d1f);_0x6a4ecc['setSelection'](_0x193d1f,'on');});}async['_getImageAsFile'](_0x2ef3ad){const _0x16ca4=_0x216a0c['window'],_0x50319a=_0x216a0c['document']['location']['href'],_0x3495ea=new _0x16ca4['URL'](_0x2ef3ad['getAttribute']('src'),_0x50319a);if('data:'===_0x3495ea['protocol']){const _0xba3362=_0x3495ea['href']['split'](','),_0x4477a2=_0xba3362[0x0]['match'](/:(.*?);/)[0x1],_0x1a08bf=_0x4477a2['split']('/')[0x1],_0x2f0ac0=_0x16ca4['atob'](_0xba3362[_0xba3362['length']-0x1]);let _0x1387b1=_0x2f0ac0['length'];const _0x225eef=new _0x16ca4['Uint8Array'](_0x1387b1);for(;_0x1387b1--;)_0x225eef[_0x1387b1]=_0x2f0ac0['charCodeAt'](_0x1387b1);return new _0x16ca4['File']([_0x225eef],'image.'+_0x1a08bf,{'type':_0x4477a2});}const _0x39dfab=_0x3495ea['href']['split']('/'),_0x2659d4=_0x39dfab[_0x39dfab['length']-0x1],_0x4ec591=_0x2659d4['split']('.')[0x1];return _0x16ca4['fetch'](_0x3495ea['href'])['then'](_0x5b8443=>_0x5b8443['clone']()['blob']())['then'](_0x39bfd2=>new _0x16ca4['File']([_0x39bfd2],_0x2659d4,{'type':'image/'+_0x4ec591}));}}class J extends _0x12ff4c{['imageEditController'];static get['requires'](){return[_0x4a5815];}['_isEditable'];constructor(_0x5d4256){super(_0x5d4256),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x445c1a){const _0x538e68=V(_0x445c1a);return _0x16d8a1=>!(!_0x16d8a1||!_0x16d8a1['is']('element','imageBlock')&&!_0x16d8a1['is']('element','imageInline'))&&(!!_0x16d8a1['hasAttribute']('uploadcareImageId')||!!_0x16d8a1['hasAttribute']('src')&&_0x538e68(_0x16d8a1['getAttribute']('src')));}(_0x5d4256['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x905d52=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x905d52);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x59b9da=this['editor']['model']['document']['selection']['getSelectedElement']();_0x59b9da&&(_0x59b9da['is']('element','imageBlock')||_0x59b9da['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x4a5815),_0x59b9da),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x12ff4c{['refresh'](){const _0x4ef0a8=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4ef0a8&&(_0x4ef0a8['is']('element','imageBlock')||_0x4ef0a8['is']('element','imageInline')));}['execute'](_0x3d6758){const _0x164cff=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x540111=>{_0x540111['setAttributes'](_0x3d6758,_0x164cff),_0x540111['removeAttribute']('srcset',_0x164cff),_0x540111['removeAttribute']('sizes',_0x164cff);});}}class g extends _0x3ee0ba{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x4668af,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x26e3b7}=this;_0x26e3b7['commands']['add']('uploadcareImageEdit',new J(_0x26e3b7)),_0x26e3b7['commands']['add']('uploadcareImageReplace',new O(_0x26e3b7));}}class j extends _0x3ee0ba{['_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 _0x3722c3=this['editor'];_0x3722c3['ui']['componentFactory']['add']('uploadcareImageEdit',_0x29436a=>{const _0x502afb=_0x3722c3['commands']['get']('uploadcareImageEdit'),_0x25cee4=new _0x2eb5ce(_0x29436a),t=_0x29436a['t'];return _0x25cee4['set']({'icon':_0x2ce0b5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x25cee4['bind']('isEnabled')['to'](_0x502afb),_0x25cee4['bind']('isOn')['to'](_0x502afb,'isActive'),this['listenTo'](_0x25cee4,'execute',()=>{_0x3722c3['execute']('uploadcareImageEdit'),_0x3722c3['editing']['view']['focus']();}),_0x25cee4;}),this['_initConfig']();}['_initConfig'](){const _0x17cc4b=_0x3eaad5(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x17cc4b),this['listenTo'](this['editor'],'destroy',()=>{_0x17cc4b['remove']();});}}class P extends _0x3ee0ba{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 _0x4a19cf,Command as _0x57883d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x33d607,IconGooglePhotos as _0x3a1e78,IconGoogleDrive as _0x2c9209,IconFacebook as _0x28d37a,IconDropbox as _0x4e0e75,IconUploadcareLink as _0x1e6251,IconUploadcareImageUpload as _0x37cb79,IconError as et,IconUploadcareImageEdit as _0x396f50}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x26c0bc,MenuBarMenuListItemButtonView as _0x47f142,View as _0x2937b2,FocusCycler as _0x555437,Dialog as _0x55c9e9,DialogViewPosition as _0x37fc59,SpinnerView as _0x2a925e,IconView as at,Notification as _0x47446f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1c958c,DomEmitterMixin as _0x322d66,global as _0x17dc19,getAncestors as _0x322b22,ObservableMixin as _0x482088,createElement as _0x1868bf,uid as _0x303b12}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x7bcd1b}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x531c2d,info as _0x344276}from'@uploadcare/upload-client';import*as _0x1b0418 from'@uploadcare/file-uploader';var o=function(_0x92bc4f){return _0x92bc4f['Local']='local',_0x92bc4f['URL']='url',_0x92bc4f['Dropbox']='dropbox',_0x92bc4f['GDrive']='gdrive',_0x92bc4f['Facebook']='facebook',_0x92bc4f['GPhotos']='gphotos',_0x92bc4f['OneDrive']='onedrive',_0x92bc4f;}({});function _(_0x3e1fca,_0x4bae28,_0x405f45){const t=_0x3e1fca['t'],_0xf4458b=_0x3e1fca['t'];switch(_0x4bae28){case o['Local']:return{'text':_0xf4458b('Insert'===_0x405f45?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xf4458b('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x405f45?_0xf4458b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xf4458b('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x405f45?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x405f45?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x405f45?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x405f45?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x405f45?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4bae28;}}class e extends _0x4a19cf{['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 _0x511a40=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x41b10d;for(const _0x2ba760 in _0x511a40){const _0x521f81=_0x2ba760,_0x5a4ef1=_0x511a40[_0x521f81];if('uploadcareLicenseKeyValid'==_0x5a4ef1||'uploadcareLicenseKeyInvalid'==_0x5a4ef1||'uploadcareLicenseKeyExpired'==_0x5a4ef1||'uploadcareLicenseKeyDomainLimit'==_0x5a4ef1||'uploadcareLicenseKeyNotAllowed'==_0x5a4ef1||'uploadcareLicenseKeyEvaluationLimit'==_0x5a4ef1||'uploadcareLicenseKeyTrialLimit'==_0x5a4ef1||'uploadcareLicenseKeyUsageLimit'==_0x5a4ef1){delete _0x511a40[_0x521f81],_0x41b10d=_0x5a4ef1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x41b10d&&_0x511a40['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x41b10d&&_0x511a40['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x41b10d&&_0x511a40['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x41b10d&&_0x511a40['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x41b10d&&_0x511a40['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x41b10d&&_0x511a40['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x41b10d&&_0x511a40['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5c6b03}=this,_0x2a80ba=_0x5c6b03['commands']['get']('uploadcare');if(!_0x2a80ba)return;const _0xdb6e9d=this['_normalizeConfigSourceList'](_0x5c6b03['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2dee37,_0x52c2f7)=>{const _0x1e85c6=this['_getIntegrationKey'](_0x52c2f7['type']);return _0x2dee37[_0x1e85c6]||(_0x2dee37[_0x1e85c6]=[]),_0x2dee37[_0x1e85c6]['push'](_0x52c2f7),_0x2dee37;},{});_0x5c6b03['plugins']['has']('ImageInsertUI')&&_0x5c6b03['commands']['get']('uploadcare')&&Object['entries'](_0xdb6e9d)['forEach'](([_0x392201,_0x507ce6])=>{_0x5c6b03['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x392201,'observable':()=>_0x2a80ba,'buttonViewCreator':()=>this['_createToolbarButton'](_0x507ce6),'formViewCreator':()=>this['_createDropdownButtons'](_0x507ce6),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x507ce6),'override':'assetManager'!==_0x392201});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x585916){const {locale:_0x12e420}=this['editor'];return _0x585916['map'](_0x5309cb=>{const _0xdc8912=_(_0x12e420,_0x5309cb,'Insert');switch(_0x5309cb){case o['Local']:return{'icon':_0x37cb79,'type':o['Local'],..._0xdc8912};case o['URL']:return{'icon':_0x1e6251,'type':o['URL'],..._0xdc8912};case o['Dropbox']:return{'icon':_0x4e0e75,'type':o['Dropbox'],..._0xdc8912};case o['Facebook']:return{'icon':_0x28d37a,'type':o['Facebook'],..._0xdc8912};case o['GDrive']:return{'icon':_0x2c9209,'type':o['GDrive'],..._0xdc8912};case o['GPhotos']:return{'icon':_0x3a1e78,'type':o['GPhotos'],..._0xdc8912};case o['OneDrive']:return{'icon':_0x33d607,'type':o['OneDrive'],..._0xdc8912};}});}['_getIntegrationKey'](_0x167692){switch(_0x167692){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5a6913,_0x1b47fa){const _0x5e3d62=this['editor'],_0x3bebcb=new _0x5a6913(_0x5e3d62['locale']),_0x44ce6e=_0x5e3d62['commands']['get']('uploadcare');return _0x3bebcb['bind']('isEnabled')['to'](_0x44ce6e),_0x3bebcb['on']('execute',()=>{_0x44ce6e['execute'](_0x1b47fa);}),_0x3bebcb;}['_createToolbarButton'](_0x42c1ca){const {locale:_0x10defb}=this['editor'],_0x44120b=this['editor']['plugins']['get']('ImageInsertUI'),_0x200063=_0x42c1ca[0x0],_0x4fa03e=this['_createButton'](_0x26c0bc,_0x200063['type']);return _0x4fa03e['icon']=_0x200063['icon'],_0x4fa03e['bind']('label')['to'](_0x44120b,'isImageSelected',_0x17dc58=>_(_0x10defb,_0x200063['type'],_0x17dc58?'Replace':'Insert')['text']),_0x4fa03e['tooltip']=!0x0,_0x4fa03e;}['_createDropdownButtons'](_0x4bb739){const {locale:_0x2da717}=this['editor'],_0x3573ae=this['editor']['plugins']['get']('ImageInsertUI');return _0x4bb739['map'](_0x2faeb8=>{const _0x3d6d38=this['_createButton'](_0x26c0bc,_0x2faeb8['type']);return _0x3d6d38['withText']=!0x0,_0x3d6d38['icon']=_0x2faeb8['icon'],_0x3d6d38['bind']('label')['to'](_0x3573ae,'isImageSelected',_0x1c7df2=>_(_0x2da717,_0x2faeb8['type'],_0x1c7df2?'Replace':'Insert')['text']),_0x3d6d38;});}['_createMenuBarButtons'](_0x2c4030){return _0x2c4030['map'](_0x20b65e=>{const _0x5a676f=this['_createButton'](_0x47f142,_0x20b65e['type']);return _0x5a676f['icon']=_0x20b65e['icon'],_0x5a676f['label']=_0x20b65e['shortText'],_0x5a676f;});}}class q extends _0x2937b2{['focusTracker'];['focusCycler'];constructor(_0x449560){super(_0x449560),this['focusTracker']=new _0x1c958c(),this['focusCycler']=new _0x555437({'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(_0x2df30a){super(_0x2df30a),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(_0x28965b,_0x22a006){const _0xbb622a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xd84b28=>_0xd84b28<=_0x22a006)['map'](_0x53a740=>_0x28965b['replace'](/\/$/,'')+'/-/resize/'+_0x53a740+'x/\x20'+_0x53a740+'w');return{'imageFallbackUrl':_0x28965b,'imageSources':[{'srcset':_0xbb622a['join'](',\x20'),'sizes':'(max-width:\x20'+_0x22a006+'px)\x20100vw,\x20'+_0x22a006+'px','type':'image/webp'}]};}function A(_0x50f3c0,_0x248dd6,_0x4e516e){const _0x1c7f05=_0x50f3c0['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1c7f05?parseInt(_0x1c7f05[0x1],0xa):_0x248dd6,'height':_0x1c7f05?parseInt(_0x1c7f05[0x2],0xa):_0x4e516e};}function m(_0xa8251,_0x3c26d4){const _0x416270=Object['create'](_0x322d66),_0x1d4b7a=_0xa8251['plugins']['get']('ImageUtils'),_0x5a9064=_0xa8251['editing']['mapper']['toViewElement'](_0x3c26d4),_0x2a2f4a=_0x1d4b7a['findViewImgElement'](_0x5a9064),_0x2016d5=_0xa8251['editing']['view']['domConverter']['viewToDom'](_0x2a2f4a),_0x5c3fd3=_0x3c26d4['getAttribute']('width'),_0x11473f=_0x3c26d4['getAttribute']('height'),_0x55b651='image-processing';_0xa8251['editing']['view']['change'](_0x161be9=>{_0x161be9['addClass'](_0x55b651,_0x5a9064),_0x161be9['setStyle']('aspect-ratio',_0x5c3fd3+'/'+_0x11473f,_0x2a2f4a);}),_0x416270['listenTo'](_0x2016d5,'load',()=>{_0x416270['stopListening'](_0x2016d5,'load'),_0xa8251['editing']['view']['change'](_0x3f3331=>{_0x3f3331['removeClass'](_0x55b651,_0x5a9064),_0x3f3331['removeStyle']('aspect-ratio',_0x2a2f4a);});});}function V(_0x44a7e3){if(Array['isArray'](_0x44a7e3)){const _0x2ac891=_0x44a7e3['map'](V);return _0x301651=>_0x2ac891['some'](_0x421ec2=>_0x421ec2(_0x301651));}if('origin'==_0x44a7e3){const _0x53b182=_0x17dc19['window']['location']['origin'];return _0x42c303=>new URL(_0x42c303,_0x17dc19['document']['baseURI'])['origin']==_0x53b182;}return'function'==typeof _0x44a7e3?_0x44a7e3:_0x44a7e3 instanceof RegExp?_0x1a9731=>!(!_0x1a9731['match'](_0x44a7e3)&&!_0x1a9731['replace'](/^https?:\/\//,'')['match'](_0x44a7e3)):()=>!0x1;}function F(_0x5645e8,_0x46e6cb){return _0x322b22(_0x5645e8['target'])['includes'](_0x46e6cb);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x482088(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5dc49d,_0x4d3443,_0x495495){super(),this['_editor']=_0x5dc49d,this['_editing']=_0x4d3443,this['_dialog']=_0x5dc49d['plugins']['get'](_0x55c9e9),this['_api']=_0x4d3443['ctxElement']['getAPI'](),this['_type']=_0x495495,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:_0x30320e,model:_0xb25e34}=this['_editor'],_0x424bf2=_0xb25e34['document']['selection']['getSelectedElement'](),_0x170ebf=_0x424bf2&&(_0x424bf2['is']('element','imageBlock')||_0x424bf2['is']('element','imageInline'));this['_formView']=new S(_0x30320e),this['_dialog']['show']({'id':'uploadCare','icon':_0x37cb79,'title':_(_0x30320e,this['_type'],_0x170ebf?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x37fc59['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1b04c6=>!F(_0x1b04c6,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2e58fe}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x43a0f1=>{const _0x51e26a=_0x2e58fe['length'];for(const _0x2da591 of _0x2e58fe){const _0x434f87=_0x2da591===_0x2e58fe[_0x51e26a-0x1],{cdnUrl:_0x4ed361,fileInfo:_0x9480e9}=_0x2da591;if(!_0x4ed361||!_0x9480e9)continue;const {width:_0x4fb1ae,height:_0x3d1837}=_0x9480e9['imageInfo'],_0x4e9933=A(_0x4ed361,_0x4fb1ae,_0x3d1837),_0x53b3b2=E(_0x4ed361,_0x4e9933['width']),_0x532d9a={'id':_0x9480e9['uuid'],'type':'image','attributes':{'imageDimension':_0x4e9933,..._0x53b3b2}};this['_insertAsset'](_0x532d9a,_0x434f87,_0x43a0f1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x56368b=>{'idle'===_0x56368b['detail']['status']&&!_0x56368b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x444b12,_0x2c14af,_0x3af710){const _0x283a66=this['_editor']['model']['document']['selection'],_0x2d7d46=_0x283a66['getSelectedElement'](),_0x3385b5=!(!_0x2d7d46||!_0x2d7d46['is']('element','imageInline'));_0x3af710['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x444b12,_0x3385b5),_0x2c14af||_0x3af710['setSelection'](_0x283a66['getLastPosition']());}['_insertImage'](_0x17ee0a,_0x3b9211){const _0x204f70=this['_editor'],{imageDimension:_0x5bc1ac,imageFallbackUrl:_0x555c07,imageSources:_0x161eef}=_0x17ee0a['attributes'];_0x204f70['execute']('insertImage',{'imageType':_0x3b9211?'imageInline':null,'source':{'uploadcareImageId':_0x17ee0a['id'],'src':_0x555c07,'sources':_0x161eef,..._0x5bc1ac}});}}class n extends _0x57883d{['_editing'];['_controller']=null;static get['requires'](){return[_0x55c9e9,i];}constructor(_0x1f37a4){super(_0x1f37a4),this['_editing']=_0x1f37a4['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3598b8){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x3598b8);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x44103d,publicKey:_0x581098,signal:_0x1dec97,onProgress:_0x382f7c}){return _0x531c2d(_0x44103d,{'publicKey':_0x581098,'store':'auto','signal':_0x1dec97,'onProgress':_0x382f7c});}static['getInfo'](_0x4dc834,_0x20ead0){return _0x344276(_0x4dc834,_0x20ead0);}}class p extends _0x4a19cf{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x7bcd1b,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5636ff=this['editor'];if(!!!_0x5636ff['config']['get']('uploadcare'))return;_0x5636ff['plugins']['get'](_0x7bcd1b)['createUploadAdapter']=_0x507b40=>new x(_0x507b40,_0x5636ff),_0x5636ff['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x43326d,{imageElement:_0x41d576,data:_0x35c7fd})=>{_0x5636ff['model']['change'](_0x816bb5=>{_0x816bb5['setAttribute']('uploadcareImageId',_0x35c7fd['uploadcareImageId'],_0x41d576);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x1b9bf3,_0x1708dd){this['loader']=_0x1b9bf3,this['editor']=_0x1708dd,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x58e823=this['editor']['config']['get']('uploadcare.pubkey'),_0x3ed9c9=await this['loader']['file'];return C['upload']({'file':_0x3ed9c9,'publicKey':_0x58e823,'signal':this['controller']['signal'],'onProgress':_0x18d02b=>{_0x18d02b&&_0x18d02b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x18d02b['value']);}})['then'](async _0x5e35c2=>{const {imageFallbackUrl:_0x47f230,imageSources:_0x315ecd}=E(_0x5e35c2['cdnUrl'],_0x5e35c2['imageInfo']['width']);return{'uploadcareImageId':_0x5e35c2['uuid'],'default':_0x47f230,'sources':_0x315ecd};})['catch'](()=>{const _0xaf9d9d=t('Cannot\x20upload\x20file:')+('\x20'+_0x3ed9c9['name']+'.');return Promise['reject'](_0xaf9d9d);});}['abort'](){this['controller']['abort']();}}class i extends _0x4a19cf{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x55c9e9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x34a6f0=this['editor'];_0x34a6f0['commands']['add']('uploadcare',new n(_0x34a6f0));}['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 _0x5409e5=_0x17dc19['document']['querySelector']('input[uploadcare-file-input]');_0x5409e5&&_0x5409e5['remove']();}),async function(_0x520423){const _0x1c3c5a=_0x2b9e57([0x37,0x78,0x52,0x30,0x51,0x6f,0x43,0x6b,0x4e,0x54,0x34,0x6e,0x70,0x33,0x56,0x45,0x63,0x75,0x31,0x36,0x46,0x71,0x7a,0x6c,0x44,0x64,0x62,0x59,0x57,0x58,0x49,0x32,0x48,0x73,0x41,0x77,0x38,0x4c,0x55,0x5a,0x4a,0x76,0x66,0x61,0x68,0x6a,0x4f,0x6d,0x79,0x50,0x35,0x47,0x39,0x72,0x69,0x42,0x74,0x67,0x4d,0x65,0x53,0x4b]),_0x5714db=0x44a93de8,_0x597ceb=0x44ae5ee0^_0x5714db,_0x25b620=window[_0x2b9e57([0x44,0x61,0x74,0x65])][_0x2b9e57([0x6e,0x6f,0x77])](),_0x5e8c33=_0x520423[_0x2b9e57([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3c7d65=new window[(_0x2b9e57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x228d60=>{_0x5e8c33[_0x2b9e57([0x6f,0x6e,0x63,0x65])](_0x2b9e57([0x72,0x65,0x61,0x64,0x79]),_0x228d60);}),_0x5541a3={[_0x2b9e57([0x6b,0x74,0x79])]:_0x2b9e57([0x45,0x43]),[_0x2b9e57([0x75,0x73,0x65])]:_0x2b9e57([0x73,0x69,0x67]),[_0x2b9e57([0x63,0x72,0x76])]:_0x2b9e57([0x50,0x2d,0x32,0x35,0x36]),[_0x2b9e57([0x78])]:_0x2b9e57([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]),[_0x2b9e57([0x79])]:_0x2b9e57([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]),[_0x2b9e57([0x61,0x6c,0x67])]:_0x2b9e57([0x45,0x53,0x32,0x35,0x36])},_0x65da85=_0x5e8c33[_0x2b9e57([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b9e57([0x67,0x65,0x74])](_0x2b9e57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x9bfa38(){let _0x16b3e3,_0x19180=null,_0xd541ca=null;try{if(_0x65da85==_0x2b9e57([0x47,0x50,0x4c]))return _0x2b9e57([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16b3e3=_0x386b91(),!_0x16b3e3)return _0x2b9e57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x16b3e3[_0x2b9e57([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd541ca=_0x3983f2(_0x16b3e3[_0x2b9e57([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16b3e3[_0x2b9e57([0x6a,0x74,0x69])])),await _0x35caa1()?_0x16e6e0()?_0xa90553()?_0x2b9e57([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d8496()?(_0x16b3e3[_0x2b9e57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b9e57([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19180=_0x1cf9a0(_0x2b9e57([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x16b3e3[_0x2b9e57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b9e57([0x74,0x72,0x69,0x61,0x6c])&&(_0x19180=_0x1cf9a0(_0x2b9e57([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x23a259()):_0x2b9e57([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b9e57([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b9e57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x53003b){return _0x2b9e57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xa90553(){const _0x3d145c=[_0x2b9e57([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b9e57([0x74,0x72,0x69,0x61,0x6c])][_0x2b9e57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16b3e3[_0x2b9e57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x25b620/0x3e8:0xe10*_0x597ceb;return _0x16b3e3[_0x2b9e57([0x65,0x78,0x70])]<_0x3d145c;}function _0x16e6e0(){const _0x2bc7e8=_0x16b3e3[_0x2b9e57([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2bc7e8&&(!!_0x2bc7e8[_0x2b9e57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b9e57([0x2a]))||!!_0x2bc7e8[_0x2b9e57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b9e57([0x55,0x50,0x4c,0x43])));}function _0x5d8496(){const _0x5c51b3=_0x16b3e3[_0x2b9e57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c51b3||0x0==_0x5c51b3[_0x2b9e57([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9e1193}=new URL(window[_0x2b9e57([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5c51b3[_0x2b9e57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9e1193))return!0x0;const _0x391d71=_0x9e1193[_0x2b9e57([0x73,0x70,0x6c,0x69,0x74])](_0x2b9e57([0x2e]));return _0x5c51b3[_0x2b9e57([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1bd14c=>_0x1bd14c[_0x2b9e57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b9e57([0x2a])))[_0x2b9e57([0x6d,0x61,0x70])](_0x2068fa=>_0x2068fa[_0x2b9e57([0x73,0x70,0x6c,0x69,0x74])](_0x2b9e57([0x2e])))[_0x2b9e57([0x73,0x6f,0x6d,0x65])](_0x3eeb6a=>_0x391d71[_0x2b9e57([0x65,0x76,0x65,0x72,0x79])]((_0x256dfe,_0x2e549a)=>_0x3eeb6a[_0x2e549a]===_0x256dfe||_0x3eeb6a[_0x2e549a]===_0x2b9e57([0x2a])));}function _0x23a259(){return _0x19180&&_0xd541ca?new window[(_0x2b9e57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b6343,_0x4b9958)=>{_0x19180[_0x2b9e57([0x74,0x68,0x65,0x6e])](_0x3b6343,_0x4b9958),_0xd541ca[_0x2b9e57([0x74,0x68,0x65,0x6e])](_0x9e2810=>{_0x9e2810!=_0x2b9e57([0x56,0x61,0x6c,0x69,0x64])&&_0x3b6343(_0x9e2810);},_0x4b9958);}):_0x19180||_0xd541ca||_0x2b9e57([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3983f2(_0x4b4bac,_0x21e920){return new window[(_0x2b9e57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcf023e=>{if(_0x5469fa())return _0xcf023e(_0x2b9e57([0x56,0x61,0x6c,0x69,0x64]));_0x413621(),_0x5e8c33[_0x2b9e57([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b9e57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1e8541=!0x1;const _0x38c240=_0x303b12();function _0x1b7e21(_0x49f49c){return!!_0x49f49c&&(typeof _0x49f49c===_0x2b9e57([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x49f49c===_0x2b9e57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x49f49c[_0x2b9e57([0x74,0x68,0x65,0x6e])]===_0x2b9e57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x49f49c[_0x2b9e57([0x63,0x61,0x74,0x63,0x68])]===_0x2b9e57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x115cd8(_0x28ba8d){_0x5bca28(_0x28ba8d)[_0x2b9e57([0x74,0x68,0x65,0x6e])](_0x3a754d=>{if(!_0x3a754d||_0x3a754d[_0x2b9e57([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b9e57([0x6f,0x6b]))return _0x2b9e57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x42966d(_0xca3e(_0x38c240+_0x21e920))!=_0x3a754d[_0x2b9e57([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b9e57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b9e57([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b9e57([0x74,0x68,0x65,0x6e])](_0x36007f=>(_0x1cbe96(),_0x36007f),()=>{const _0x465165=_0x4bb41d();return null==_0x465165?(_0x1cbe96(),_0x2b9e57([0x56,0x61,0x6c,0x69,0x64])):_0x2b9e57(_0x25b620-_0x465165>(0x60a5b9e8^_0x5714db)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b9e57([0x74,0x68,0x65,0x6e])](_0xcf023e)[_0x2b9e57([0x63,0x61,0x74,0x63,0x68])](()=>{_0xcf023e(_0x2b9e57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x21fa92=0x449fd368^_0x5714db;function _0x1cbe96(){const _0x37b900=_0x2b9e57([0x6c,0x6c,0x63,0x74,0x2d])+_0x42966d(_0xca3e(_0x4b4bac)),_0x3ff78a=_0x591a84(_0x42966d(window[_0x2b9e57([0x4d,0x61,0x74,0x68])][_0x2b9e57([0x63,0x65,0x69,0x6c])](_0x25b620/_0x21fa92)));window[_0x2b9e57([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b9e57([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37b900,_0x3ff78a);}function _0x4bb41d(){const _0xb513f8=_0x2b9e57([0x6c,0x6c,0x63,0x74,0x2d])+_0x42966d(_0xca3e(_0x4b4bac)),_0x2ea488=window[_0x2b9e57([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b9e57([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb513f8);return _0x2ea488?window[_0x2b9e57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x591a84(_0x2ea488),0x10)*_0x21fa92:null;}function _0x5bca28(_0x58eea2){return new window[(_0x2b9e57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44d7a7,_0x13f233)=>{_0x58eea2[_0x2b9e57([0x74,0x68,0x65,0x6e])](_0x44d7a7,_0x13f233),window[_0x2b9e57([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x13f233,0x44a8e928^_0x5714db);});}}_0x5e8c33[_0x2b9e57([0x6f,0x6e])](_0x2b9e57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x57a4f4,_0x44a469)=>{if(_0x44a469[0x0]!=_0x4b4bac)return _0xcf023e(_0x2b9e57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44a469[0x1]={..._0x44a469[0x1],[_0x2b9e57([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x38c240};},{[_0x2b9e57([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b9e57([0x68,0x69,0x67,0x68])}),_0x5e8c33[_0x2b9e57([0x6f,0x6e])](_0x2b9e57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a3554=>{_0x1b7e21(_0x2a3554[_0x2b9e57([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1e8541=!0x0,_0x115cd8(_0x2a3554[_0x2b9e57([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b9e57([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b9e57([0x6c,0x6f,0x77])}),_0x3c7d65[_0x2b9e57([0x74,0x68,0x65,0x6e])](()=>{_0x1e8541||_0xcf023e(_0x2b9e57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5469fa(){return _0x5e8c33[_0x2b9e57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b9e57([0x76,0x69,0x65,0x77])][_0x2b9e57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b9e57([0x61,0x75,0x74,0x6f]);}function _0x413621(){_0x5e8c33[_0x2b9e57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b9e57([0x76,0x69,0x65,0x77])][_0x2b9e57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b9e57([0x61,0x75,0x74,0x6f]);}}function _0x1cf9a0(_0x2fd544){const _0x5c35ca=[new window[(_0x2b9e57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46a34e=>setTimeout(_0x46a34e,0x44a00324^_0x5714db)),_0x3c7d65[_0x2b9e57([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b9e57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30172d=>{let _0x23ea09=0x0;_0x5e8c33[_0x2b9e57([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b9e57([0x6f,0x6e])](_0x2b9e57([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3c5a68,_0x476c9d)=>{_0x476c9d[0x0][_0x2b9e57([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x23ea09++,_0x23ea09==(0x44a93c10^_0x5714db)&&(_0x30172d(),_0x3c5a68[_0x2b9e57([0x6f,0x66,0x66])]());});}))];return window[_0x2b9e57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b9e57([0x72,0x61,0x63,0x65])](_0x5c35ca)[_0x2b9e57([0x74,0x68,0x65,0x6e])](()=>_0x2fd544);}async function _0x7829aa(){await _0x3c7d65,_0x5e8c33[_0x2b9e57([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b9e57([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3b1675,_0x5e8c33[_0x2b9e57([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b9e57([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3b1675,_0x5e8c33[_0x2b9e57([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b9e57([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x555142(_0x4a677b){const _0x570e5d=_0x1d9b86();_0x5e8c33[_0x570e5d]=_0x2b9e57([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4a677b,_0x4a677b!=_0x2b9e57([0x56,0x61,0x6c,0x69,0x64])&&_0x7829aa();}function _0x1d9b86(){const _0x5945ea=window[_0x2b9e57([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b9e57([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b9e57([0x6e,0x6f,0x77])]())[_0x2b9e57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b9e57([0x2e]),'');let _0x3cd43e=_0x2b9e57([0x78]);for(let _0x4b9071=0x0;_0x4b9071<_0x5945ea[_0x2b9e57([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b9071+=0x2){let _0x30e678=window[_0x2b9e57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5945ea[_0x2b9e57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b9071,_0x4b9071+0x2));_0x30e678>=_0x1c3c5a[_0x2b9e57([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x30e678-=_0x1c3c5a[_0x2b9e57([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3cd43e+=_0x1c3c5a[_0x30e678];}return _0x3cd43e;}function _0x386b91(){const _0x1e3a03=_0x65da85[_0x2b9e57([0x73,0x70,0x6c,0x69,0x74])](_0x2b9e57([0x2e]));if(0x3!=_0x1e3a03[_0x2b9e57([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2027c0(_0x1e3a03[0x1]);function _0x2027c0(_0x4d924d){const _0xed50e0=_0x1c9937(_0x4d924d);return _0xed50e0&&_0x4cd7ff()?_0xed50e0:null;function _0x4cd7ff(){const _0x385811=_0xed50e0[_0x2b9e57([0x6a,0x74,0x69])],_0x34e2dc=window[_0x2b9e57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x385811[_0x2b9e57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x385811[_0x2b9e57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x469798={..._0xed50e0,[_0x2b9e57([0x6a,0x74,0x69])]:_0x385811[_0x2b9e57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x385811[_0x2b9e57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x469798[_0x2b9e57([0x76,0x63])],_0xca3e(_0x469798)==_0x34e2dc;}}}async function _0x35caa1(){let _0x5d7569=!0x0;try{const _0x215226=_0x65da85[_0x2b9e57([0x73,0x70,0x6c,0x69,0x74])](_0x2b9e57([0x2e])),[_0x5e6197,_0x3b4fdf,_0x5ea3ca]=_0x215226;return _0x37f21d(_0x5e6197),await _0x4ff969(_0x5e6197,_0x3b4fdf,_0x5ea3ca),_0x5d7569;}catch(_0x3ae411){return!0x1;}function _0x37f21d(_0x7b7d14){const _0x3e8c00=_0x1c9937(_0x7b7d14);_0x3e8c00&&_0x3e8c00[_0x2b9e57([0x61,0x6c,0x67])]==_0x2b9e57([0x45,0x53,0x32,0x35,0x36])||(_0x5d7569=!0x1);}async function _0x4ff969(_0x37ea5a,_0x2c24d7,_0x4d1ebb){const _0x579ae4=window[_0x2b9e57([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b9e57([0x66,0x72,0x6f,0x6d])](_0x11a5fb(_0x4d1ebb),_0x158810=>_0x158810[_0x2b9e57([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x717bef=new window[(_0x2b9e57([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b9e57([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x37ea5a+_0x2b9e57([0x2e])+_0x2c24d7),_0x1e9d20=window[_0x2b9e57([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b9e57([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1e9d20)return;const _0x1311af=await _0x1e9d20[_0x2b9e57([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b9e57([0x6a,0x77,0x6b]),_0x5541a3,{[_0x2b9e57([0x6e,0x61,0x6d,0x65])]:_0x2b9e57([0x45,0x43,0x44,0x53,0x41]),[_0x2b9e57([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b9e57([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b9e57([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1e9d20[_0x2b9e57([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b9e57([0x6e,0x61,0x6d,0x65])]:_0x2b9e57([0x45,0x43,0x44,0x53,0x41]),[_0x2b9e57([0x68,0x61,0x73,0x68])]:{[_0x2b9e57([0x6e,0x61,0x6d,0x65])]:_0x2b9e57([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1311af,_0x579ae4,_0x717bef)||(_0x5d7569=!0x1);}}function _0x1c9937(_0x1bb455){return _0x1bb455[_0x2b9e57([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b9e57([0x65,0x79]))?JSON[_0x2b9e57([0x70,0x61,0x72,0x73,0x65])](_0x11a5fb(_0x1bb455)):null;}function _0x11a5fb(_0x6931ba){return window[_0x2b9e57([0x61,0x74,0x6f,0x62])](_0x6931ba[_0x2b9e57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b9e57([0x2b]))[_0x2b9e57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b9e57([0x2f])));}function _0xca3e(_0x16fd00){let _0x3c9cb5=0x1505;function _0xac458d(_0x4a4476){for(let _0x158c1d=0x0;_0x158c1d<_0x4a4476[_0x2b9e57([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x158c1d++){const _0x33343d=_0x4a4476[_0x2b9e57([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x158c1d);_0x3c9cb5=(_0x3c9cb5<<0x5)+_0x3c9cb5+_0x33343d,_0x3c9cb5&=_0x3c9cb5;}}function _0xd9f21f(_0x5a530b){Array[_0x2b9e57([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5a530b)?_0x5a530b[_0x2b9e57([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd9f21f):_0x5a530b&&typeof _0x5a530b==_0x2b9e57([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b9e57([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5a530b)[_0x2b9e57([0x73,0x6f,0x72,0x74])]()[_0x2b9e57([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x234e77,_0x5a5b3d])=>{_0xac458d(_0x234e77),_0xd9f21f(_0x5a5b3d);}):_0xac458d(window[_0x2b9e57([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5a530b));}return _0xd9f21f(_0x16fd00),_0x3c9cb5>>>0x0;}function _0x42966d(_0x59379d){return _0x59379d[_0x2b9e57([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b9e57([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b9e57([0x30]));}function _0x591a84(_0xa539a0){return _0xa539a0[_0x2b9e57([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b9e57([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b9e57([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b1675(){}function _0x2b9e57(_0x770525){return _0x770525['map'](_0x2da56d=>String['fromCharCode'](_0x2da56d))['join']('');}_0x555142(await _0x9bfa38());}(this);}['_initSchema'](){const _0x1f2581=this['editor']['model']['schema'];_0x1f2581['isRegistered']('imageBlock')&&_0x1f2581['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1f2581['isRegistered']('imageInline')&&_0x1f2581['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5bcdd2=this['editor'];_0x5bcdd2['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5bcdd2['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4cc12c=>_0x4cc12c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x74d99b=_0x5bcdd2['commands']['get']('replaceImageSource');_0x74d99b&&this['listenTo'](_0x74d99b,'cleanupImage',(_0x1c9ca9,[_0x27ad93,_0x291dea])=>{_0x27ad93['removeAttribute']('uploadcareImageId',_0x291dea);});}['_initConfig'](){const _0x36620f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x85a878=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1868bf(_0x17dc19['document'],'uc-config',{..._0x36620f,'pubkey':_0x85a878,'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']=_0x1c374e=>{if('closeMax'==_0x1c374e)return'#uc-icon-arrow-down';},_0x17dc19['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1868bf(_0x17dc19['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x17dc19['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2e2db9=this['editor']['commands']['get']('insertImage');_0x2e2db9&&this['listenTo'](_0x2e2db9,'execute',()=>{const _0x11468f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x11468f&&_0x11468f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x11468f);});});const _0x2810c0=this['editor']['commands']['get']('uploadcareImageReplace');_0x2810c0&&this['listenTo'](_0x2810c0,'execute',()=>{const _0x378c92=this['editor']['model']['document']['selection']['getSelectedElement']();_0x378c92&&_0x378c92['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x378c92);});});}}class u extends _0x4a19cf{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x184c4e){super(_0x184c4e),_0x184c4e['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x1b0418['defineComponents'](_0x1b0418);}}class ta extends _0x2937b2{constructor(_0x1ebb08){super(_0x1ebb08);const t=_0x1ebb08['t'],_0x2cf10d=this['bindTemplate'],_0x3d272d=new _0x2a925e();_0x3d272d['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':[_0x3d272d,{'text':_0x2cf10d['to']('imageUploadProgress',_0x57928e=>t('Loading\x20image...')+'\x20('+(_0x57928e||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 _0x2937b2{constructor(_0x9175d2){super(_0x9175d2);const t=_0x9175d2['t'];this['set']('errorType',null);const _0x3d2f60=new _0x26c0bc(_0x9175d2);_0x3d2f60['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3d2f60['withText']=!0x0,_0x3d2f60['class']='ck-button-action',_0x3d2f60['on']('execute',()=>{this['fire']('retry');}),_0x3d2f60['bind']('isVisible')['to'](this,'errorType',_0x2bac92=>'NotFound'!==_0x2bac92);const _0x429576=new at();_0x429576['content']=et,_0x429576['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2beef7=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':[_0x429576,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2beef7['to']('errorType',_0x38fa43=>t('NotFound'!==_0x38fa43?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3d2f60]},{'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 _0x2937b2{constructor(_0xb1f409,_0x46423e){super(_0xb1f409);const _0x389410=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x46423e,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x389410['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3a822d,_0x4dbfc9,_0xb6b01){super(_0x3a822d),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x3a822d),this['_errorView']=new rt(_0x3a822d),this['_editingView']=new tt(_0x3a822d,_0xb6b01),this['_focusableView']=new _0x2937b2(_0x3a822d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4dbfc9),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'],_0x573bc7=>{this['_addUploadcareImageEditorListeners'](_0x573bc7);});}),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'](_0x1636bc,_0x4bc411){const _0x75d7f6='uc-cloud-image-editor',_0x360f56=_0x1636bc['querySelector'](_0x75d7f6);if(_0x360f56)return _0x4bc411(_0x360f56);const _0x59bb30=new MutationObserver(_0x16081e=>{const _0x3c02d7=_0x16081e['filter'](_0x184c5c=>_0x184c5c['target']===_0x1636bc&&_0x184c5c['addedNodes']['length']>0x0&&_0x184c5c['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x75d7f6);_0x3c02d7['length']&&(_0x59bb30['disconnect'](),_0x4bc411(_0x3c02d7[0x0]['addedNodes'][0x0]));});_0x59bb30['observe'](_0x1636bc,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x351ee8){_0x351ee8['addEventListener']('apply',_0x5730dc=>{this['fire']('apply',{'imageSrc':_0x5730dc['detail']['cdnUrl']});}),_0x351ee8['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x482088(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5066a2,_0x5531f3,_0x2866e2){super(),this['_editor']=_0x5066a2,this['_dialog']=_0x5531f3,this['_imageElement']=_0x2866e2,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 _0x4aba06=this['_imageElement'],_0x1d32af=_0x4aba06['getAttribute']('uploadcareImageId'),_0x56f3f1=_0x4aba06['getAttribute']('src');if(_0x1d32af)await this['_loadImageInfo'](_0x1d32af,_0x56f3f1);else{if(this['_imageCache']['has'](_0x56f3f1)){const _0x57f8f7=this['_imageCache']['get'](_0x56f3f1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x57f8f7['url'],this['imageDimension']=_0x57f8f7['dimension'],this['imageId']=_0x57f8f7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x500ea6}=this['_editor'],t=_0x500ea6['t'],_0x414bff=new Z(_0x500ea6,this['imageStatus'],this['_attributes']);_0x414bff['bind']('status')['to'](this,'imageStatus'),_0x414bff['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x414bff['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x414bff['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x414bff,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x396f50,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x414bff,'position':_0x37fc59['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x414bff['focus']();},'onHide':()=>{_0x414bff['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x443c1c=>!F(_0x443c1c,_0x414bff['element'])}});}['_loadImageInfo'](_0x5921c1,_0x5c217a){return C['getInfo'](_0x5921c1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4d3d1c=>{const {width:_0x3c4015,height:_0x31d1d7}=_0x4d3d1c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5c217a,this['imageDimension']={'width':_0x3c4015,'height':_0x31d1d7},this['imageId']=_0x5921c1;})['catch'](_0x5c7291=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5c7291['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x8a24ca,_0x304aa9){return this['_getImageAsFile'](_0x8a24ca)['then'](_0x5d2a8e=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x304aa9['signal'],'file':_0x5d2a8e,'onProgress':_0x163dd5=>{_0x163dd5&&_0x163dd5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x163dd5['value']));}}))['then'](_0x107711=>{const {width:_0x20e6a4,height:_0x1eea02}=_0x107711['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x107711['cdnUrl'],this['imageDimension']={'width':_0x20e6a4,'height':_0x1eea02},this['imageId']=_0x107711['uuid'],this['imageUploadProgress']=null;const _0x546d4e=_0x8a24ca['getAttribute']('src');this['_imageCache']['set'](_0x546d4e,{'id':_0x107711['uuid'],'url':_0x107711['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xf51679=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xf51679['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x21acbf,_0x446150){_0x21acbf['on']('apply',(_0x5267cf,_0x684cca)=>{this['_replaceImage'](_0x446150,_0x684cca['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x21acbf['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x21acbf['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x94ebf3,_0x5c8df9,_0xa2b1ce){const _0x5b3548=this['_editor'],{width:_0x457a0d,height:_0x45bdb8}=A(_0x5c8df9,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1b45af,imageSources:_0x46821d}=E(_0x5c8df9,_0x457a0d);_0x5b3548['model']['change'](_0x155c97=>{if('$graveyard'===_0x94ebf3['root']['rootName']){_0x5b3548['execute']('insertImage',{'imageType':_0x94ebf3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x94ebf3['getAttributes']()),'uploadcareImageId':_0xa2b1ce,'src':_0x1b45af,'sources':_0x46821d,'width':_0x457a0d,'height':_0x45bdb8}});const _0x55cf51=_0x94ebf3['getChildren']();_0x94ebf3=_0x5b3548['model']['document']['selection']['getSelectedElement']();for(const _0x33f8ab of _0x55cf51)_0x155c97['append'](_0x155c97['cloneElement'](_0x33f8ab),_0x94ebf3);}else _0x155c97['setSelection'](_0x94ebf3,'on'),_0x5b3548['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x94ebf3['getAttributes']()),'uploadcareImageId':_0xa2b1ce,'src':_0x1b45af,'sources':_0x46821d,'width':_0x457a0d,'height':_0x45bdb8},_0x94ebf3);_0x155c97['setSelection'](_0x94ebf3,'on');});}async['_getImageAsFile'](_0x353623){const _0x49b4d0=_0x17dc19['window'],_0x57c242=_0x17dc19['document']['location']['href'],_0x635e1d=new _0x49b4d0['URL'](_0x353623['getAttribute']('src'),_0x57c242);if('data:'===_0x635e1d['protocol']){const _0x4f0e85=_0x635e1d['href']['split'](','),_0x1f3b42=_0x4f0e85[0x0]['match'](/:(.*?);/)[0x1],_0x668852=_0x1f3b42['split']('/')[0x1],_0x3954fd=_0x49b4d0['atob'](_0x4f0e85[_0x4f0e85['length']-0x1]);let _0x110097=_0x3954fd['length'];const _0x344202=new _0x49b4d0['Uint8Array'](_0x110097);for(;_0x110097--;)_0x344202[_0x110097]=_0x3954fd['charCodeAt'](_0x110097);return new _0x49b4d0['File']([_0x344202],'image.'+_0x668852,{'type':_0x1f3b42});}const _0xd135af=_0x635e1d['href']['split']('/'),_0x11a6e3=_0xd135af[_0xd135af['length']-0x1],_0x251c6b=_0x11a6e3['split']('.')[0x1];return _0x49b4d0['fetch'](_0x635e1d['href'])['then'](_0x102d0a=>_0x102d0a['clone']()['blob']())['then'](_0x522fd6=>new _0x49b4d0['File']([_0x522fd6],_0x11a6e3,{'type':'image/'+_0x251c6b}));}}class J extends _0x57883d{['imageEditController'];static get['requires'](){return[_0x55c9e9];}['_isEditable'];constructor(_0x345f30){super(_0x345f30),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x135fc4){const _0x2091e6=V(_0x135fc4);return _0x744f47=>!(!_0x744f47||!_0x744f47['is']('element','imageBlock')&&!_0x744f47['is']('element','imageInline'))&&(!!_0x744f47['hasAttribute']('uploadcareImageId')||!!_0x744f47['hasAttribute']('src')&&_0x2091e6(_0x744f47['getAttribute']('src')));}(_0x345f30['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xfecf97=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xfecf97);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3b6a85=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3b6a85&&(_0x3b6a85['is']('element','imageBlock')||_0x3b6a85['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x55c9e9),_0x3b6a85),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x57883d{['refresh'](){const _0x738793=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x738793&&(_0x738793['is']('element','imageBlock')||_0x738793['is']('element','imageInline')));}['execute'](_0x5b63e0){const _0x2e38dc=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x146f8f=>{_0x146f8f['setAttributes'](_0x5b63e0,_0x2e38dc),_0x146f8f['removeAttribute']('srcset',_0x2e38dc),_0x146f8f['removeAttribute']('sizes',_0x2e38dc);});}}class g extends _0x4a19cf{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x47446f,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x45f17b}=this;_0x45f17b['commands']['add']('uploadcareImageEdit',new J(_0x45f17b)),_0x45f17b['commands']['add']('uploadcareImageReplace',new O(_0x45f17b));}}class j extends _0x4a19cf{['_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 _0x4081df=this['editor'];_0x4081df['ui']['componentFactory']['add']('uploadcareImageEdit',_0x497aa7=>{const _0x1fbaf9=_0x4081df['commands']['get']('uploadcareImageEdit'),_0x415a09=new _0x26c0bc(_0x497aa7),t=_0x497aa7['t'];return _0x415a09['set']({'icon':_0x396f50,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x415a09['bind']('isEnabled')['to'](_0x1fbaf9),_0x415a09['bind']('isOn')['to'](_0x1fbaf9,'isActive'),this['listenTo'](_0x415a09,'execute',()=>{_0x4081df['execute']('uploadcareImageEdit'),_0x4081df['editing']['view']['focus']();}),_0x415a09;}),this['_initConfig']();}['_initConfig'](){const _0x5d16bd=_0x1868bf(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5d16bd),this['listenTo'](this['editor'],'destroy',()=>{_0x5d16bd['remove']();});}}class P extends _0x4a19cf{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-20250324.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-20250324.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250324.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250324.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250324.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250324.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250324.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250324.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250324.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 _0x47fcf2=_0x4928;(function(_0x5eed02,_0x568d70){const _0x640e1b=_0x4928,_0x4b7cfe=_0x5eed02();while(!![]){try{const _0x427b7a=parseInt(_0x640e1b(0xa8))/0x1+parseInt(_0x640e1b(0x7d))/0x2*(parseInt(_0x640e1b(0xbd))/0x3)+-parseInt(_0x640e1b(0xb0))/0x4*(-parseInt(_0x640e1b(0xad))/0x5)+-parseInt(_0x640e1b(0x83))/0x6+-parseInt(_0x640e1b(0x8d))/0x7*(-parseInt(_0x640e1b(0x82))/0x8)+parseInt(_0x640e1b(0x78))/0x9*(-parseInt(_0x640e1b(0xb7))/0xa)+parseInt(_0x640e1b(0xa0))/0xb*(-parseInt(_0x640e1b(0xb8))/0xc);if(_0x427b7a===_0x568d70)break;else _0x4b7cfe['push'](_0x4b7cfe['shift']());}catch(_0x429965){_0x4b7cfe['push'](_0x4b7cfe['shift']());}}}(_0x3202,0xc8676));import{Plugin as _0x41fdcf}from'ckeditor5/src/core.js';function _0x4928(_0x67bd95,_0x1de1d9){const _0x3202a8=_0x3202();return _0x4928=function(_0x4928d5,_0x291ff9){_0x4928d5=_0x4928d5-0x6e;let _0x22d066=_0x3202a8[_0x4928d5];return _0x22d066;},_0x4928(_0x67bd95,_0x1de1d9);}import{Dialog as _0x3c9141}from'ckeditor5/src/ui.js';import{createElement as _0x15e105,global as _0x30ecc1,uid as _0x2c81cf}from'ckeditor5/src/utils.js';import _0x39a313 from'./uploadcarecommand.js';import _0x8bb793 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x41721f}from'./utils/editingutils.js';export default class i extends _0x41fdcf{[_0x47fcf2(0xb1)]=null;[_0x47fcf2(0xbe)]=null;static get[_0x47fcf2(0x9b)](){const _0x457900=_0x47fcf2;return _0x457900(0xbf);}static get[_0x47fcf2(0xa7)](){const _0xa984b4=_0x47fcf2;return[_0xa984b4(0xaf),_0x8bb793,_0x3c9141];}static get[_0x47fcf2(0x8e)](){return!0x0;}static get[_0x47fcf2(0x8f)](){return!0x0;}get[_0x47fcf2(0x91)](){const _0x12cc80=_0x47fcf2;return this[_0x12cc80(0xb1)];}get[_0x47fcf2(0x89)](){const _0x2e0cc1=_0x47fcf2;return this[_0x2e0cc1(0xbe)];}[_0x47fcf2(0x75)](){const _0x579288=_0x47fcf2,_0x23f823=this[_0x579288(0xa5)];_0x23f823[_0x579288(0xba)][_0x579288(0xa2)](_0x579288(0xac),new _0x39a313(_0x23f823));}[_0x47fcf2(0xab)](){const _0x312e2d=_0x47fcf2;this[_0x312e2d(0x79)](),this[_0x312e2d(0x7e)](),this[_0x312e2d(0xc0)](),this[_0x312e2d(0x86)](),this[_0x312e2d(0x7c)](),this[_0x312e2d(0x7a)](this[_0x312e2d(0xa5)],_0x312e2d(0x8c),()=>{const _0x3f0615=_0x312e2d;this[_0x3f0615(0xb1)]&&(this[_0x3f0615(0xb1)][_0x3f0615(0x7f)](),this[_0x3f0615(0xb1)]=null),this[_0x3f0615(0xbe)]&&(this[_0x3f0615(0xbe)][_0x3f0615(0x7f)](),this[_0x3f0615(0xbe)]=null);const _0x34a981=_0x30ecc1[_0x3f0615(0x6f)][_0x3f0615(0xb2)](_0x3f0615(0xae));_0x34a981&&_0x34a981[_0x3f0615(0x7f)]();}),async function(_0x41e131){const _0x15f5ff=_0x31cb98([0x78,0x36,0x44,0x57,0x35,0x46,0x55,0x52,0x37,0x4f,0x64,0x69,0x75,0x6c,0x32,0x5a,0x73,0x51,0x72,0x66,0x63,0x6d,0x62,0x4d,0x65,0x4e,0x61,0x7a,0x54,0x56,0x70,0x30,0x4c,0x39,0x6e,0x59,0x71,0x6a,0x38,0x50,0x6b,0x68,0x45,0x49,0x6f,0x4b,0x74,0x41,0x48,0x4a,0x58,0x53,0x67,0x47,0x31,0x77,0x42,0x76,0x33,0x43,0x79,0x34]),_0x327c09=0x40576879,_0x1ab22e=0x40500aa1^_0x327c09,_0x47309d=window[_0x31cb98([0x44,0x61,0x74,0x65])][_0x31cb98([0x6e,0x6f,0x77])](),_0x10bf2d=_0x41e131[_0x31cb98([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x17204c=new window[(_0x31cb98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x101f94=>{_0x10bf2d[_0x31cb98([0x6f,0x6e,0x63,0x65])](_0x31cb98([0x72,0x65,0x61,0x64,0x79]),_0x101f94);}),_0x490a7c={[_0x31cb98([0x6b,0x74,0x79])]:_0x31cb98([0x45,0x43]),[_0x31cb98([0x75,0x73,0x65])]:_0x31cb98([0x73,0x69,0x67]),[_0x31cb98([0x63,0x72,0x76])]:_0x31cb98([0x50,0x2d,0x32,0x35,0x36]),[_0x31cb98([0x78])]:_0x31cb98([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]),[_0x31cb98([0x79])]:_0x31cb98([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]),[_0x31cb98([0x61,0x6c,0x67])]:_0x31cb98([0x45,0x53,0x32,0x35,0x36])},_0x375ddc=_0x10bf2d[_0x31cb98([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x31cb98([0x67,0x65,0x74])](_0x31cb98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x402737(){let _0x3cc341,_0x4ae8af=null,_0x43b1e9=null;try{if(_0x375ddc==_0x31cb98([0x47,0x50,0x4c]))return _0x31cb98([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3cc341=_0x2ff5b6(),!_0x3cc341)return _0x31cb98([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3cc341[_0x31cb98([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43b1e9=_0x3508f1(_0x3cc341[_0x31cb98([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3cc341[_0x31cb98([0x6a,0x74,0x69])])),await _0x17ba58()?_0x1989a4()?_0x28f31b()?_0x31cb98([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c726e()?(_0x3cc341[_0x31cb98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31cb98([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4ae8af=_0x58d309(_0x31cb98([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3cc341[_0x31cb98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31cb98([0x74,0x72,0x69,0x61,0x6c])&&(_0x4ae8af=_0x58d309(_0x31cb98([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x57272f()):_0x31cb98([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x31cb98([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x31cb98([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x453e6f){return _0x31cb98([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x28f31b(){const _0x5d69dd=[_0x31cb98([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x31cb98([0x74,0x72,0x69,0x61,0x6c])][_0x31cb98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cc341[_0x31cb98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x47309d/0x3e8:0xe10*_0x1ab22e;return _0x3cc341[_0x31cb98([0x65,0x78,0x70])]<_0x5d69dd;}function _0x1989a4(){const _0x58bb5d=_0x3cc341[_0x31cb98([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x58bb5d&&(!!_0x58bb5d[_0x31cb98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31cb98([0x2a]))||!!_0x58bb5d[_0x31cb98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31cb98([0x55,0x50,0x4c,0x43])));}function _0x2c726e(){const _0x4cf566=_0x4928,_0x8735ce=_0x3cc341[_0x31cb98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x8735ce||0x0==_0x8735ce[_0x31cb98([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e308b}=new URL(window[_0x31cb98([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4cf566(0x95)]);if(_0x8735ce[_0x31cb98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e308b))return!0x0;const _0x448074=_0x1e308b[_0x31cb98([0x73,0x70,0x6c,0x69,0x74])](_0x31cb98([0x2e]));return _0x8735ce[_0x31cb98([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x599c6d=>_0x599c6d[_0x31cb98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31cb98([0x2a])))[_0x31cb98([0x6d,0x61,0x70])](_0xeb5ea8=>_0xeb5ea8[_0x31cb98([0x73,0x70,0x6c,0x69,0x74])](_0x31cb98([0x2e])))[_0x31cb98([0x73,0x6f,0x6d,0x65])](_0x854f1e=>_0x448074[_0x31cb98([0x65,0x76,0x65,0x72,0x79])]((_0x539238,_0x5a7b1d)=>_0x854f1e[_0x5a7b1d]===_0x539238||_0x854f1e[_0x5a7b1d]===_0x31cb98([0x2a])));}function _0x57272f(){return _0x4ae8af&&_0x43b1e9?new window[(_0x31cb98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35fe28,_0x416b5b)=>{_0x4ae8af[_0x31cb98([0x74,0x68,0x65,0x6e])](_0x35fe28,_0x416b5b),_0x43b1e9[_0x31cb98([0x74,0x68,0x65,0x6e])](_0x350313=>{_0x350313!=_0x31cb98([0x56,0x61,0x6c,0x69,0x64])&&_0x35fe28(_0x350313);},_0x416b5b);}):_0x4ae8af||_0x43b1e9||_0x31cb98([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3508f1(_0x22c405,_0x4f5400){return new window[(_0x31cb98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38e360=>{if(_0x2f78da())return _0x38e360(_0x31cb98([0x56,0x61,0x6c,0x69,0x64]));_0x4814b3(),_0x10bf2d[_0x31cb98([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x31cb98([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2517e8=!0x1;const _0x468913=_0x2c81cf();function _0x4cc0e0(_0x6dfa29){return!!_0x6dfa29&&(typeof _0x6dfa29===_0x31cb98([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6dfa29===_0x31cb98([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6dfa29[_0x31cb98([0x74,0x68,0x65,0x6e])]===_0x31cb98([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6dfa29[_0x31cb98([0x63,0x61,0x74,0x63,0x68])]===_0x31cb98([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f1d63(_0x1a0101){_0x261916(_0x1a0101)[_0x31cb98([0x74,0x68,0x65,0x6e])](_0x311cd9=>{if(!_0x311cd9||_0x311cd9[_0x31cb98([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x31cb98([0x6f,0x6b]))return _0x31cb98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c6d52(_0x4aaaba(_0x468913+_0x4f5400))!=_0x311cd9[_0x31cb98([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x31cb98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x31cb98([0x56,0x61,0x6c,0x69,0x64]);})[_0x31cb98([0x74,0x68,0x65,0x6e])](_0x3ee375=>(_0xda54f(),_0x3ee375),()=>{const _0x20ae01=_0xde2aaf();return null==_0x20ae01?(_0xda54f(),_0x31cb98([0x56,0x61,0x6c,0x69,0x64])):_0x31cb98(_0x47309d-_0x20ae01>(0x645bec79^_0x327c09)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x31cb98([0x74,0x68,0x65,0x6e])](_0x38e360)[_0x31cb98([0x63,0x61,0x74,0x63,0x68])](()=>{_0x38e360(_0x31cb98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x38be80=0x406186f9^_0x327c09;function _0xda54f(){const _0x3cadfc=_0x31cb98([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c6d52(_0x4aaaba(_0x22c405)),_0x2cb84b=_0x6d3175(_0x1c6d52(window[_0x31cb98([0x4d,0x61,0x74,0x68])][_0x31cb98([0x63,0x65,0x69,0x6c])](_0x47309d/_0x38be80)));window[_0x31cb98([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31cb98([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cadfc,_0x2cb84b);}function _0xde2aaf(){const _0x31dd00=_0x31cb98([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c6d52(_0x4aaaba(_0x22c405)),_0x5a773a=window[_0x31cb98([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31cb98([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31dd00);return _0x5a773a?window[_0x31cb98([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6d3175(_0x5a773a),0x10)*_0x38be80:null;}function _0x261916(_0xae2e43){return new window[(_0x31cb98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28b5c1,_0x3e5a4f)=>{_0xae2e43[_0x31cb98([0x74,0x68,0x65,0x6e])](_0x28b5c1,_0x3e5a4f),window[_0x31cb98([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3e5a4f,0x4056bcb9^_0x327c09);});}}_0x10bf2d[_0x31cb98([0x6f,0x6e])](_0x31cb98([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2634d0,_0x378e57)=>{if(_0x378e57[0x0]!=_0x22c405)return _0x38e360(_0x31cb98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x378e57[0x1]={..._0x378e57[0x1],[_0x31cb98([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x468913};},{[_0x31cb98([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31cb98([0x68,0x69,0x67,0x68])}),_0x10bf2d[_0x31cb98([0x6f,0x6e])](_0x31cb98([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x320a10=>{_0x4cc0e0(_0x320a10[_0x31cb98([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2517e8=!0x0,_0x1f1d63(_0x320a10[_0x31cb98([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x31cb98([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31cb98([0x6c,0x6f,0x77])}),_0x17204c[_0x31cb98([0x74,0x68,0x65,0x6e])](()=>{_0x2517e8||_0x38e360(_0x31cb98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2f78da(){return _0x10bf2d[_0x31cb98([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31cb98([0x76,0x69,0x65,0x77])][_0x31cb98([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x31cb98([0x61,0x75,0x74,0x6f]);}function _0x4814b3(){_0x10bf2d[_0x31cb98([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31cb98([0x76,0x69,0x65,0x77])][_0x31cb98([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31cb98([0x61,0x75,0x74,0x6f]);}}function _0x58d309(_0x5acbde){const _0x2af40e=[new window[(_0x31cb98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e0965=>setTimeout(_0x5e0965,0x405e56b5^_0x327c09)),_0x17204c[_0x31cb98([0x74,0x68,0x65,0x6e])](()=>new window[(_0x31cb98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25c0ea=>{let _0x2abbbf=0x0;_0x10bf2d[_0x31cb98([0x6d,0x6f,0x64,0x65,0x6c])][_0x31cb98([0x6f,0x6e])](_0x31cb98([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2dba38,_0x1098c6)=>{_0x1098c6[0x0][_0x31cb98([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2abbbf++,_0x2abbbf==(0x40576981^_0x327c09)&&(_0x25c0ea(),_0x2dba38[_0x31cb98([0x6f,0x66,0x66])]());});}))];return window[_0x31cb98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31cb98([0x72,0x61,0x63,0x65])](_0x2af40e)[_0x31cb98([0x74,0x68,0x65,0x6e])](()=>_0x5acbde);}async function _0x1b52b6(){await _0x17204c,_0x10bf2d[_0x31cb98([0x6d,0x6f,0x64,0x65,0x6c])][_0x31cb98([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x504cbb,_0x10bf2d[_0x31cb98([0x6d,0x6f,0x64,0x65,0x6c])][_0x31cb98([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x504cbb,_0x10bf2d[_0x31cb98([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x31cb98([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x277e0f(_0x52c00a){const _0x2a8db4=_0x5d8299();_0x10bf2d[_0x2a8db4]=_0x31cb98([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x52c00a,_0x52c00a!=_0x31cb98([0x56,0x61,0x6c,0x69,0x64])&&_0x1b52b6();}function _0x5d8299(){const _0x3ddd82=window[_0x31cb98([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x31cb98([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x31cb98([0x6e,0x6f,0x77])]())[_0x31cb98([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x31cb98([0x2e]),'');let _0x278e3e=_0x31cb98([0x78]);for(let _0x2970ba=0x0;_0x2970ba<_0x3ddd82[_0x31cb98([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2970ba+=0x2){let _0x462e2d=window[_0x31cb98([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ddd82[_0x31cb98([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2970ba,_0x2970ba+0x2));_0x462e2d>=_0x15f5ff[_0x31cb98([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x462e2d-=_0x15f5ff[_0x31cb98([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x278e3e+=_0x15f5ff[_0x462e2d];}return _0x278e3e;}function _0x2ff5b6(){const _0xa2c9b7=_0x375ddc[_0x31cb98([0x73,0x70,0x6c,0x69,0x74])](_0x31cb98([0x2e]));if(0x3!=_0xa2c9b7[_0x31cb98([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3c5704(_0xa2c9b7[0x1]);function _0x3c5704(_0x45740f){const _0x3caca4=_0xe8182a(_0x45740f);return _0x3caca4&&_0xb4e821()?_0x3caca4:null;function _0xb4e821(){const _0x226bed=_0x3caca4[_0x31cb98([0x6a,0x74,0x69])],_0x2c6344=window[_0x31cb98([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x226bed[_0x31cb98([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x226bed[_0x31cb98([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xdad6a5={..._0x3caca4,[_0x31cb98([0x6a,0x74,0x69])]:_0x226bed[_0x31cb98([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x226bed[_0x31cb98([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xdad6a5[_0x31cb98([0x76,0x63])],_0x4aaaba(_0xdad6a5)==_0x2c6344;}}}async function _0x17ba58(){let _0x423ffe=!0x0;try{const _0x2eb2fc=_0x375ddc[_0x31cb98([0x73,0x70,0x6c,0x69,0x74])](_0x31cb98([0x2e])),[_0x4f1129,_0x1b660d,_0x59b0c0]=_0x2eb2fc;return _0x1cc184(_0x4f1129),await _0x37f5ac(_0x4f1129,_0x1b660d,_0x59b0c0),_0x423ffe;}catch(_0x2cb7ba){return!0x1;}function _0x1cc184(_0x4a692a){const _0x5dcebf=_0xe8182a(_0x4a692a);_0x5dcebf&&_0x5dcebf[_0x31cb98([0x61,0x6c,0x67])]==_0x31cb98([0x45,0x53,0x32,0x35,0x36])||(_0x423ffe=!0x1);}async function _0x37f5ac(_0x226a79,_0x3da423,_0x32830e){const _0x4f32be=window[_0x31cb98([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x31cb98([0x66,0x72,0x6f,0x6d])](_0x389cc3(_0x32830e),_0x1a493c=>_0x1a493c[_0x31cb98([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x273a79=new window[(_0x31cb98([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x31cb98([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x226a79+_0x31cb98([0x2e])+_0x3da423),_0x4f53bb=window[_0x31cb98([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x31cb98([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f53bb)return;const _0x3f6556=await _0x4f53bb[_0x31cb98([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x31cb98([0x6a,0x77,0x6b]),_0x490a7c,{[_0x31cb98([0x6e,0x61,0x6d,0x65])]:_0x31cb98([0x45,0x43,0x44,0x53,0x41]),[_0x31cb98([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x31cb98([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x31cb98([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f53bb[_0x31cb98([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x31cb98([0x6e,0x61,0x6d,0x65])]:_0x31cb98([0x45,0x43,0x44,0x53,0x41]),[_0x31cb98([0x68,0x61,0x73,0x68])]:{[_0x31cb98([0x6e,0x61,0x6d,0x65])]:_0x31cb98([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f6556,_0x4f32be,_0x273a79)||(_0x423ffe=!0x1);}}function _0xe8182a(_0x65f692){return _0x65f692[_0x31cb98([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x31cb98([0x65,0x79]))?JSON[_0x31cb98([0x70,0x61,0x72,0x73,0x65])](_0x389cc3(_0x65f692)):null;}function _0x389cc3(_0x162585){return window[_0x31cb98([0x61,0x74,0x6f,0x62])](_0x162585[_0x31cb98([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x31cb98([0x2b]))[_0x31cb98([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x31cb98([0x2f])));}function _0x4aaaba(_0x3d9427){let _0x3095c2=0x1505;function _0xd0b3b5(_0x264ad4){for(let _0x122581=0x0;_0x122581<_0x264ad4[_0x31cb98([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x122581++){const _0x5206c0=_0x264ad4[_0x31cb98([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x122581);_0x3095c2=(_0x3095c2<<0x5)+_0x3095c2+_0x5206c0,_0x3095c2&=_0x3095c2;}}function _0x38f143(_0x4e7e91){Array[_0x31cb98([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4e7e91)?_0x4e7e91[_0x31cb98([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x38f143):_0x4e7e91&&typeof _0x4e7e91==_0x31cb98([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x31cb98([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4e7e91)[_0x31cb98([0x73,0x6f,0x72,0x74])]()[_0x31cb98([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2bc93d,_0x3f853c])=>{_0xd0b3b5(_0x2bc93d),_0x38f143(_0x3f853c);}):_0xd0b3b5(window[_0x31cb98([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4e7e91));}return _0x38f143(_0x3d9427),_0x3095c2>>>0x0;}function _0x1c6d52(_0x25649e){return _0x25649e[_0x31cb98([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x31cb98([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x31cb98([0x30]));}function _0x6d3175(_0xc09a60){return _0xc09a60[_0x31cb98([0x73,0x70,0x6c,0x69,0x74])]('')[_0x31cb98([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x31cb98([0x6a,0x6f,0x69,0x6e])]('');}function _0x504cbb(){}function _0x31cb98(_0x81fb29){const _0x155a53=_0x4928;return _0x81fb29[_0x155a53(0x96)](_0x324f05=>String[_0x155a53(0xaa)](_0x324f05))[_0x155a53(0x8a)]('');}_0x277e0f(await _0x402737());}(this);}[_0x47fcf2(0x79)](){const _0x5d8c54=_0x47fcf2,_0x2b82ae=this[_0x5d8c54(0xa5)][_0x5d8c54(0xb5)][_0x5d8c54(0x71)];_0x2b82ae[_0x5d8c54(0x72)](_0x5d8c54(0x9f))&&_0x2b82ae[_0x5d8c54(0xb4)](_0x5d8c54(0x9f),{'allowAttributes':[_0x5d8c54(0x70)]}),_0x2b82ae[_0x5d8c54(0x72)](_0x5d8c54(0x9c))&&_0x2b82ae[_0x5d8c54(0xb4)](_0x5d8c54(0x9c),{'allowAttributes':[_0x5d8c54(0x70)]});}[_0x47fcf2(0x7e)](){const _0x361530=_0x47fcf2,_0x17733a=this[_0x361530(0xa5)];_0x17733a[_0x361530(0x76)][_0x361530(0x7b)](_0x361530(0x73))[_0x361530(0xc3)]({'model':_0x361530(0x70),'view':_0x361530(0xbc)}),_0x17733a[_0x361530(0x76)][_0x361530(0x7b)](_0x361530(0x81))[_0x361530(0xb6)]({'model':{'key':_0x361530(0x70),'value':_0x56fc2e=>_0x56fc2e[_0x361530(0xc1)](_0x361530(0xbc))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x44be28=_0x17733a[_0x361530(0xba)][_0x361530(0x85)](_0x361530(0x9a));_0x44be28&&this[_0x361530(0x7a)](_0x44be28,_0x361530(0xb3),(_0x4eae45,[_0x5ab40c,_0x4df2f2])=>{const _0x4a3282=_0x361530;_0x5ab40c[_0x4a3282(0xa9)](_0x4a3282(0x70),_0x4df2f2);});}[_0x47fcf2(0xc0)](){const _0x45a068=_0x47fcf2,_0x1ed64e=this[_0x45a068(0xa5)][_0x45a068(0x90)][_0x45a068(0x85)](_0x45a068(0x9d))||{},_0x50cfa9=this[_0x45a068(0xa5)][_0x45a068(0x90)][_0x45a068(0x85)](_0x45a068(0xa3))||'';this[_0x45a068(0xb1)]=_0x15e105(_0x30ecc1[_0x45a068(0x6f)],_0x45a068(0xbb),{..._0x1ed64e,'pubkey':_0x50cfa9,'ctx-name':_0x45a068(0xa6),'sourceList':'','imgOnly':_0x45a068(0x8b),'removeCopyright':_0x45a068(0x8b),'localeName':this[_0x45a068(0xa5)][_0x45a068(0x93)][_0x45a068(0x80)],'externalSourcesEmbedCss':_0x45a068(0x97)}),this[_0x45a068(0xb1)][_0x45a068(0x94)]=_0x4097bf=>{const _0x6b394a=_0x45a068;if(_0x6b394a(0x77)==_0x4097bf)return _0x6b394a(0x9e);},_0x30ecc1[_0x45a068(0x6f)][_0x45a068(0x92)][_0x45a068(0xa1)](this[_0x45a068(0xb1)]);}[_0x47fcf2(0x86)](){const _0x364058=_0x47fcf2;this[_0x364058(0xbe)]=_0x15e105(_0x30ecc1[_0x364058(0x6f)],_0x364058(0x87),{'ctx-name':_0x364058(0xa6)}),_0x30ecc1[_0x364058(0x6f)][_0x364058(0x92)][_0x364058(0xa1)](this[_0x364058(0xbe)]);}[_0x47fcf2(0x7c)](){const _0x26bf1b=_0x47fcf2,_0xddc10b=this[_0x26bf1b(0xa5)][_0x26bf1b(0xba)][_0x26bf1b(0x85)](_0x26bf1b(0x99));_0xddc10b&&this[_0x26bf1b(0x7a)](_0xddc10b,_0x26bf1b(0x84),()=>{const _0x43e3ec=_0x26bf1b,_0x32b8b8=this[_0x43e3ec(0xa5)][_0x43e3ec(0xb5)][_0x43e3ec(0x6f)][_0x43e3ec(0x6e)][_0x43e3ec(0xc2)]();_0x32b8b8&&_0x32b8b8[_0x43e3ec(0xc1)](_0x43e3ec(0x70))&&this[_0x43e3ec(0xa5)][_0x43e3ec(0x88)][_0x43e3ec(0xa4)][_0x43e3ec(0x74)](_0x43e3ec(0x98),()=>{const _0x39bfc6=_0x43e3ec;_0x41721f(this[_0x39bfc6(0xa5)],_0x32b8b8);});});const _0x5cc262=this[_0x26bf1b(0xa5)][_0x26bf1b(0xba)][_0x26bf1b(0x85)](_0x26bf1b(0xb9));_0x5cc262&&this[_0x26bf1b(0x7a)](_0x5cc262,_0x26bf1b(0x84),()=>{const _0xb2b43b=_0x26bf1b,_0x6a1dc=this[_0xb2b43b(0xa5)][_0xb2b43b(0xb5)][_0xb2b43b(0x6f)][_0xb2b43b(0x6e)][_0xb2b43b(0xc2)]();_0x6a1dc&&_0x6a1dc[_0xb2b43b(0xc1)](_0xb2b43b(0x70))&&this[_0xb2b43b(0xa5)][_0xb2b43b(0x88)][_0xb2b43b(0xa4)][_0xb2b43b(0x74)](_0xb2b43b(0x98),()=>{const _0x29d6ef=_0xb2b43b;_0x41721f(this[_0x29d6ef(0xa5)],_0x6a1dc);});});}}function _0x3202(){const _0x1afdf6=['_initConversion','remove','contentLanguage','upcast','848ZOesoE','5554458oWZdjW','execute','get','_initCtx','uc-upload-ctx-provider','editing','ctxElement','join','true','destroy','73787JXjvDz','isOfficialPlugin','isPremiumPlugin','config','configElement','body','locale','iconHrefResolver','href','map','\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','render','insertImage','replaceImageSource','pluginName','imageInline','uploadcare.uploader','#uc-icon-arrow-down','imageBlock','243650HvFRED','appendChild','add','uploadcare.pubkey','view','editor','uploader','requires','1491410VbfapJ','removeAttribute','fromCharCode','afterInit','uploadcare','855micDfs','input[uploadcare-file-input]','PictureEditing','27480EmBSTN','_configElement','querySelector','cleanupImage','extend','model','elementToAttribute','910uIubfu','636XAKjYo','uploadcareImageReplace','commands','uc-config','data-uc-image-id','3201RQuJpe','_ctxElement','UploadcareEditing','_initConfig','getAttribute','getSelectedElement','attributeToAttribute','selection','document','uploadcareImageId','schema','isRegistered','downcast','once','init','conversion','closeMax','158058FOxWXD','_initSchema','listenTo','for','_initImageProcessingIndicator','1378KbIOtC'];_0x3202=function(){return _0x1afdf6;};return _0x3202();}
|
|
23
|
+
const _0x511c47=_0x29d0;(function(_0x230d05,_0x2e1cf3){const _0x39d644=_0x29d0,_0x3dec60=_0x230d05();while(!![]){try{const _0x431a0f=-parseInt(_0x39d644(0x19b))/0x1+-parseInt(_0x39d644(0x1ab))/0x2+-parseInt(_0x39d644(0x1b1))/0x3*(parseInt(_0x39d644(0x171))/0x4)+parseInt(_0x39d644(0x1a2))/0x5*(parseInt(_0x39d644(0x17a))/0x6)+parseInt(_0x39d644(0x193))/0x7*(parseInt(_0x39d644(0x1a8))/0x8)+-parseInt(_0x39d644(0x175))/0x9+parseInt(_0x39d644(0x182))/0xa;if(_0x431a0f===_0x2e1cf3)break;else _0x3dec60['push'](_0x3dec60['shift']());}catch(_0x308ae0){_0x3dec60['push'](_0x3dec60['shift']());}}}(_0x18be,0xad07a));import{Plugin as _0x2a58ed}from'ckeditor5/src/core.js';function _0x18be(){const _0x4302c9=['data-uc-image-id','322ygBaIL','isPremiumPlugin','join','conversion','for','appendChild','imageInline','body','899237pphTqd','editor','_configElement','listenTo','_initImageProcessingIndicator','model','uploadcare.uploader','1159255OnSMQM','configElement','getAttribute','pluginName','input[uploadcare-file-input]','render','199624hoptHm','isRegistered','uploadcare.pubkey','75802wIZnHy','config','closeMax','execute','ctxElement','removeAttribute','16425wcdvaq','uploadcareImageId','requires','getSelectedElement','uc-upload-ctx-provider','view','uploadcare','editing','href','destroy','once','commands','extend','document','contentLanguage','iconHrefResolver','PictureEditing','downcast','querySelector','_initConversion','172uqUUXy','uploadcareImageReplace','locale','imageBlock','10881738rGXXXt','_initSchema','get','schema','_initConfig','30Lyklau','true','_initCtx','elementToAttribute','add','UploadcareEditing','_ctxElement','map','7832820ttbdAl','fromCharCode','selection','uc-config','init','isOfficialPlugin','insertImage','uploader','remove','upcast','attributeToAttribute','cleanupImage','replaceImageSource','afterInit','#uc-icon-arrow-down','\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'];_0x18be=function(){return _0x4302c9;};return _0x18be();}import{Dialog as _0x30506b}from'ckeditor5/src/ui.js';import{createElement as _0x372192,global as _0xabf1a1,uid as _0x453fd5}from'ckeditor5/src/utils.js';import _0x3b0416 from'./uploadcarecommand.js';import _0x2194c9 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5bc06c}from'./utils/editingutils.js';function _0x29d0(_0x599c20,_0x2817a5){const _0x18be52=_0x18be();return _0x29d0=function(_0x29d062,_0x35b91b){_0x29d062=_0x29d062-0x16c;let _0x188a2b=_0x18be52[_0x29d062];return _0x188a2b;},_0x29d0(_0x599c20,_0x2817a5);}export default class i extends _0x2a58ed{[_0x511c47(0x19d)]=null;[_0x511c47(0x180)]=null;static get[_0x511c47(0x1a5)](){const _0x1a2819=_0x511c47;return _0x1a2819(0x17f);}static get[_0x511c47(0x1b3)](){const _0x1c22ab=_0x511c47;return[_0x1c22ab(0x16d),_0x2194c9,_0x30506b];}static get[_0x511c47(0x187)](){return!0x0;}static get[_0x511c47(0x194)](){return!0x0;}get[_0x511c47(0x1a3)](){const _0x5cbf81=_0x511c47;return this[_0x5cbf81(0x19d)];}get[_0x511c47(0x1af)](){const _0x542d8c=_0x511c47;return this[_0x542d8c(0x180)];}[_0x511c47(0x186)](){const _0x33ae18=_0x511c47,_0x44b624=this[_0x33ae18(0x19c)];_0x44b624[_0x33ae18(0x1bc)][_0x33ae18(0x17e)](_0x33ae18(0x1b7),new _0x3b0416(_0x44b624));}[_0x511c47(0x18f)](){const _0xf7f7ec=_0x511c47;this[_0xf7f7ec(0x176)](),this[_0xf7f7ec(0x170)](),this[_0xf7f7ec(0x179)](),this[_0xf7f7ec(0x17c)](),this[_0xf7f7ec(0x19f)](),this[_0xf7f7ec(0x19e)](this[_0xf7f7ec(0x19c)],_0xf7f7ec(0x1ba),()=>{const _0x2c4329=_0xf7f7ec;this[_0x2c4329(0x19d)]&&(this[_0x2c4329(0x19d)][_0x2c4329(0x18a)](),this[_0x2c4329(0x19d)]=null),this[_0x2c4329(0x180)]&&(this[_0x2c4329(0x180)][_0x2c4329(0x18a)](),this[_0x2c4329(0x180)]=null);const _0x3b1a6f=_0xabf1a1[_0x2c4329(0x1be)][_0x2c4329(0x16f)](_0x2c4329(0x1a6));_0x3b1a6f&&_0x3b1a6f[_0x2c4329(0x18a)]();}),async function(_0x1848c2){const _0x1a9620=_0x12cd26([0x37,0x78,0x52,0x30,0x51,0x6f,0x43,0x6b,0x4e,0x54,0x34,0x6e,0x70,0x33,0x56,0x45,0x63,0x75,0x31,0x36,0x46,0x71,0x7a,0x6c,0x44,0x64,0x62,0x59,0x57,0x58,0x49,0x32,0x48,0x73,0x41,0x77,0x38,0x4c,0x55,0x5a,0x4a,0x76,0x66,0x61,0x68,0x6a,0x4f,0x6d,0x79,0x50,0x35,0x47,0x39,0x72,0x69,0x42,0x74,0x67,0x4d,0x65,0x53,0x4b]),_0x59ff0c=0x44a93de8,_0x42b035=0x44ae5ee0^_0x59ff0c,_0x3f352d=window[_0x12cd26([0x44,0x61,0x74,0x65])][_0x12cd26([0x6e,0x6f,0x77])](),_0x2719e0=_0x1848c2[_0x12cd26([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x545409=new window[(_0x12cd26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb2e690=>{_0x2719e0[_0x12cd26([0x6f,0x6e,0x63,0x65])](_0x12cd26([0x72,0x65,0x61,0x64,0x79]),_0xb2e690);}),_0x3a9c7d={[_0x12cd26([0x6b,0x74,0x79])]:_0x12cd26([0x45,0x43]),[_0x12cd26([0x75,0x73,0x65])]:_0x12cd26([0x73,0x69,0x67]),[_0x12cd26([0x63,0x72,0x76])]:_0x12cd26([0x50,0x2d,0x32,0x35,0x36]),[_0x12cd26([0x78])]:_0x12cd26([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]),[_0x12cd26([0x79])]:_0x12cd26([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]),[_0x12cd26([0x61,0x6c,0x67])]:_0x12cd26([0x45,0x53,0x32,0x35,0x36])},_0x2dce28=_0x2719e0[_0x12cd26([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x12cd26([0x67,0x65,0x74])](_0x12cd26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x593dda(){let _0x110c07,_0x3b942a=null,_0x5caa15=null;try{if(_0x2dce28==_0x12cd26([0x47,0x50,0x4c]))return _0x12cd26([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x110c07=_0x1c4af6(),!_0x110c07)return _0x12cd26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x110c07[_0x12cd26([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5caa15=_0x1b5a24(_0x110c07[_0x12cd26([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x110c07[_0x12cd26([0x6a,0x74,0x69])])),await _0x7d7f2b()?_0x31181c()?_0x46b42b()?_0x12cd26([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3f3630()?(_0x110c07[_0x12cd26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12cd26([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b942a=_0xc7829e(_0x12cd26([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x110c07[_0x12cd26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12cd26([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b942a=_0xc7829e(_0x12cd26([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2500c4()):_0x12cd26([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x12cd26([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x12cd26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x446f4d){return _0x12cd26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x46b42b(){const _0x172628=[_0x12cd26([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x12cd26([0x74,0x72,0x69,0x61,0x6c])][_0x12cd26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x110c07[_0x12cd26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3f352d/0x3e8:0xe10*_0x42b035;return _0x110c07[_0x12cd26([0x65,0x78,0x70])]<_0x172628;}function _0x31181c(){const _0x4441f4=_0x110c07[_0x12cd26([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4441f4&&(!!_0x4441f4[_0x12cd26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12cd26([0x2a]))||!!_0x4441f4[_0x12cd26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12cd26([0x55,0x50,0x4c,0x43])));}function _0x3f3630(){const _0x1003e4=_0x29d0,_0xd30d1f=_0x110c07[_0x12cd26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xd30d1f||0x0==_0xd30d1f[_0x12cd26([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa0fd33}=new URL(window[_0x12cd26([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1003e4(0x1b9)]);if(_0xd30d1f[_0x12cd26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa0fd33))return!0x0;const _0x3429ca=_0xa0fd33[_0x12cd26([0x73,0x70,0x6c,0x69,0x74])](_0x12cd26([0x2e]));return _0xd30d1f[_0x12cd26([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10b11f=>_0x10b11f[_0x12cd26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12cd26([0x2a])))[_0x12cd26([0x6d,0x61,0x70])](_0x2d9f8a=>_0x2d9f8a[_0x12cd26([0x73,0x70,0x6c,0x69,0x74])](_0x12cd26([0x2e])))[_0x12cd26([0x73,0x6f,0x6d,0x65])](_0x3564a2=>_0x3429ca[_0x12cd26([0x65,0x76,0x65,0x72,0x79])]((_0x33ccf9,_0x3aa085)=>_0x3564a2[_0x3aa085]===_0x33ccf9||_0x3564a2[_0x3aa085]===_0x12cd26([0x2a])));}function _0x2500c4(){return _0x3b942a&&_0x5caa15?new window[(_0x12cd26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50dce2,_0x597411)=>{_0x3b942a[_0x12cd26([0x74,0x68,0x65,0x6e])](_0x50dce2,_0x597411),_0x5caa15[_0x12cd26([0x74,0x68,0x65,0x6e])](_0x4649d4=>{_0x4649d4!=_0x12cd26([0x56,0x61,0x6c,0x69,0x64])&&_0x50dce2(_0x4649d4);},_0x597411);}):_0x3b942a||_0x5caa15||_0x12cd26([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b5a24(_0x3d9bec,_0x2d5d0f){return new window[(_0x12cd26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xba5770=>{if(_0x1ffa8f())return _0xba5770(_0x12cd26([0x56,0x61,0x6c,0x69,0x64]));_0x3b5f17(),_0x2719e0[_0x12cd26([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x12cd26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3de3c9=!0x1;const _0x5d50be=_0x453fd5();function _0x12e364(_0x251528){return!!_0x251528&&(typeof _0x251528===_0x12cd26([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x251528===_0x12cd26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x251528[_0x12cd26([0x74,0x68,0x65,0x6e])]===_0x12cd26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x251528[_0x12cd26([0x63,0x61,0x74,0x63,0x68])]===_0x12cd26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x312d4a(_0x9ee918){_0x5a5d44(_0x9ee918)[_0x12cd26([0x74,0x68,0x65,0x6e])](_0x37a6ca=>{if(!_0x37a6ca||_0x37a6ca[_0x12cd26([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x12cd26([0x6f,0x6b]))return _0x12cd26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x43b4fc(_0x5c9c43(_0x5d50be+_0x2d5d0f))!=_0x37a6ca[_0x12cd26([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x12cd26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x12cd26([0x56,0x61,0x6c,0x69,0x64]);})[_0x12cd26([0x74,0x68,0x65,0x6e])](_0x41444e=>(_0xc86c0c(),_0x41444e),()=>{const _0xc3605c=_0x5212c9();return null==_0xc3605c?(_0xc86c0c(),_0x12cd26([0x56,0x61,0x6c,0x69,0x64])):_0x12cd26(_0x3f352d-_0xc3605c>(0x60a5b9e8^_0x59ff0c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x12cd26([0x74,0x68,0x65,0x6e])](_0xba5770)[_0x12cd26([0x63,0x61,0x74,0x63,0x68])](()=>{_0xba5770(_0x12cd26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x36c92a=0x449fd368^_0x59ff0c;function _0xc86c0c(){const _0x306f36=_0x12cd26([0x6c,0x6c,0x63,0x74,0x2d])+_0x43b4fc(_0x5c9c43(_0x3d9bec)),_0xe5a81=_0x88fece(_0x43b4fc(window[_0x12cd26([0x4d,0x61,0x74,0x68])][_0x12cd26([0x63,0x65,0x69,0x6c])](_0x3f352d/_0x36c92a)));window[_0x12cd26([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12cd26([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x306f36,_0xe5a81);}function _0x5212c9(){const _0x1310df=_0x12cd26([0x6c,0x6c,0x63,0x74,0x2d])+_0x43b4fc(_0x5c9c43(_0x3d9bec)),_0x892aa9=window[_0x12cd26([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12cd26([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1310df);return _0x892aa9?window[_0x12cd26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x88fece(_0x892aa9),0x10)*_0x36c92a:null;}function _0x5a5d44(_0x2b9ec8){return new window[(_0x12cd26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf9ec87,_0x325214)=>{_0x2b9ec8[_0x12cd26([0x74,0x68,0x65,0x6e])](_0xf9ec87,_0x325214),window[_0x12cd26([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x325214,0x44a8e928^_0x59ff0c);});}}_0x2719e0[_0x12cd26([0x6f,0x6e])](_0x12cd26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2bdaba,_0x36e5a2)=>{if(_0x36e5a2[0x0]!=_0x3d9bec)return _0xba5770(_0x12cd26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36e5a2[0x1]={..._0x36e5a2[0x1],[_0x12cd26([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d50be};},{[_0x12cd26([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12cd26([0x68,0x69,0x67,0x68])}),_0x2719e0[_0x12cd26([0x6f,0x6e])](_0x12cd26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x530e88=>{_0x12e364(_0x530e88[_0x12cd26([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3de3c9=!0x0,_0x312d4a(_0x530e88[_0x12cd26([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x12cd26([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12cd26([0x6c,0x6f,0x77])}),_0x545409[_0x12cd26([0x74,0x68,0x65,0x6e])](()=>{_0x3de3c9||_0xba5770(_0x12cd26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1ffa8f(){return _0x2719e0[_0x12cd26([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12cd26([0x76,0x69,0x65,0x77])][_0x12cd26([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x12cd26([0x61,0x75,0x74,0x6f]);}function _0x3b5f17(){_0x2719e0[_0x12cd26([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12cd26([0x76,0x69,0x65,0x77])][_0x12cd26([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x12cd26([0x61,0x75,0x74,0x6f]);}}function _0xc7829e(_0x2e5f98){const _0x25cadb=[new window[(_0x12cd26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1154cc=>setTimeout(_0x1154cc,0x44a00324^_0x59ff0c)),_0x545409[_0x12cd26([0x74,0x68,0x65,0x6e])](()=>new window[(_0x12cd26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31d03c=>{let _0x15dbcb=0x0;_0x2719e0[_0x12cd26([0x6d,0x6f,0x64,0x65,0x6c])][_0x12cd26([0x6f,0x6e])](_0x12cd26([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x166cb3,_0x382cb5)=>{_0x382cb5[0x0][_0x12cd26([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x15dbcb++,_0x15dbcb==(0x44a93c10^_0x59ff0c)&&(_0x31d03c(),_0x166cb3[_0x12cd26([0x6f,0x66,0x66])]());});}))];return window[_0x12cd26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x12cd26([0x72,0x61,0x63,0x65])](_0x25cadb)[_0x12cd26([0x74,0x68,0x65,0x6e])](()=>_0x2e5f98);}async function _0x287cd4(){await _0x545409,_0x2719e0[_0x12cd26([0x6d,0x6f,0x64,0x65,0x6c])][_0x12cd26([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x8982ce,_0x2719e0[_0x12cd26([0x6d,0x6f,0x64,0x65,0x6c])][_0x12cd26([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x8982ce,_0x2719e0[_0x12cd26([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x12cd26([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x417994(_0x596291){const _0x5cea24=_0x5b6093();_0x2719e0[_0x5cea24]=_0x12cd26([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x596291,_0x596291!=_0x12cd26([0x56,0x61,0x6c,0x69,0x64])&&_0x287cd4();}function _0x5b6093(){const _0x4faa70=window[_0x12cd26([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x12cd26([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x12cd26([0x6e,0x6f,0x77])]())[_0x12cd26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x12cd26([0x2e]),'');let _0x569bf9=_0x12cd26([0x78]);for(let _0x21546a=0x0;_0x21546a<_0x4faa70[_0x12cd26([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x21546a+=0x2){let _0x5c4f91=window[_0x12cd26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4faa70[_0x12cd26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x21546a,_0x21546a+0x2));_0x5c4f91>=_0x1a9620[_0x12cd26([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c4f91-=_0x1a9620[_0x12cd26([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x569bf9+=_0x1a9620[_0x5c4f91];}return _0x569bf9;}function _0x1c4af6(){const _0x3ea963=_0x2dce28[_0x12cd26([0x73,0x70,0x6c,0x69,0x74])](_0x12cd26([0x2e]));if(0x3!=_0x3ea963[_0x12cd26([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x55ed23(_0x3ea963[0x1]);function _0x55ed23(_0x5f1573){const _0x1350e2=_0x36a252(_0x5f1573);return _0x1350e2&&_0x566721()?_0x1350e2:null;function _0x566721(){const _0x1d933c=_0x1350e2[_0x12cd26([0x6a,0x74,0x69])],_0x1eca3d=window[_0x12cd26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d933c[_0x12cd26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d933c[_0x12cd26([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x358ef8={..._0x1350e2,[_0x12cd26([0x6a,0x74,0x69])]:_0x1d933c[_0x12cd26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1d933c[_0x12cd26([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x358ef8[_0x12cd26([0x76,0x63])],_0x5c9c43(_0x358ef8)==_0x1eca3d;}}}async function _0x7d7f2b(){let _0x8a9514=!0x0;try{const _0x5bce8b=_0x2dce28[_0x12cd26([0x73,0x70,0x6c,0x69,0x74])](_0x12cd26([0x2e])),[_0x1d399e,_0x237333,_0x17bbda]=_0x5bce8b;return _0x5e2148(_0x1d399e),await _0x2f420d(_0x1d399e,_0x237333,_0x17bbda),_0x8a9514;}catch(_0x12189c){return!0x1;}function _0x5e2148(_0x4723be){const _0xa1f125=_0x36a252(_0x4723be);_0xa1f125&&_0xa1f125[_0x12cd26([0x61,0x6c,0x67])]==_0x12cd26([0x45,0x53,0x32,0x35,0x36])||(_0x8a9514=!0x1);}async function _0x2f420d(_0x3b59d9,_0x467630,_0x547808){const _0x3a9998=window[_0x12cd26([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x12cd26([0x66,0x72,0x6f,0x6d])](_0xba9283(_0x547808),_0x3582c8=>_0x3582c8[_0x12cd26([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xcf9a74=new window[(_0x12cd26([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x12cd26([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b59d9+_0x12cd26([0x2e])+_0x467630),_0x4d763d=window[_0x12cd26([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x12cd26([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d763d)return;const _0x593b48=await _0x4d763d[_0x12cd26([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x12cd26([0x6a,0x77,0x6b]),_0x3a9c7d,{[_0x12cd26([0x6e,0x61,0x6d,0x65])]:_0x12cd26([0x45,0x43,0x44,0x53,0x41]),[_0x12cd26([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x12cd26([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x12cd26([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d763d[_0x12cd26([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x12cd26([0x6e,0x61,0x6d,0x65])]:_0x12cd26([0x45,0x43,0x44,0x53,0x41]),[_0x12cd26([0x68,0x61,0x73,0x68])]:{[_0x12cd26([0x6e,0x61,0x6d,0x65])]:_0x12cd26([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x593b48,_0x3a9998,_0xcf9a74)||(_0x8a9514=!0x1);}}function _0x36a252(_0x1df35d){return _0x1df35d[_0x12cd26([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x12cd26([0x65,0x79]))?JSON[_0x12cd26([0x70,0x61,0x72,0x73,0x65])](_0xba9283(_0x1df35d)):null;}function _0xba9283(_0x893ab6){return window[_0x12cd26([0x61,0x74,0x6f,0x62])](_0x893ab6[_0x12cd26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x12cd26([0x2b]))[_0x12cd26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x12cd26([0x2f])));}function _0x5c9c43(_0x1b509a){let _0x4acf27=0x1505;function _0x573cee(_0x448249){for(let _0x92de9d=0x0;_0x92de9d<_0x448249[_0x12cd26([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x92de9d++){const _0x1ad0f3=_0x448249[_0x12cd26([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x92de9d);_0x4acf27=(_0x4acf27<<0x5)+_0x4acf27+_0x1ad0f3,_0x4acf27&=_0x4acf27;}}function _0x4a32a1(_0x339d11){Array[_0x12cd26([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x339d11)?_0x339d11[_0x12cd26([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4a32a1):_0x339d11&&typeof _0x339d11==_0x12cd26([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x12cd26([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x339d11)[_0x12cd26([0x73,0x6f,0x72,0x74])]()[_0x12cd26([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ae863,_0x14b323])=>{_0x573cee(_0x1ae863),_0x4a32a1(_0x14b323);}):_0x573cee(window[_0x12cd26([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x339d11));}return _0x4a32a1(_0x1b509a),_0x4acf27>>>0x0;}function _0x43b4fc(_0x5d37f4){return _0x5d37f4[_0x12cd26([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x12cd26([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x12cd26([0x30]));}function _0x88fece(_0x6ddb30){return _0x6ddb30[_0x12cd26([0x73,0x70,0x6c,0x69,0x74])]('')[_0x12cd26([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x12cd26([0x6a,0x6f,0x69,0x6e])]('');}function _0x8982ce(){}function _0x12cd26(_0x2f958c){const _0x578fb1=_0x29d0;return _0x2f958c[_0x578fb1(0x181)](_0x550d10=>String[_0x578fb1(0x183)](_0x550d10))[_0x578fb1(0x195)]('');}_0x417994(await _0x593dda());}(this);}[_0x511c47(0x176)](){const _0x4ad18f=_0x511c47,_0x3ab508=this[_0x4ad18f(0x19c)][_0x4ad18f(0x1a0)][_0x4ad18f(0x178)];_0x3ab508[_0x4ad18f(0x1a9)](_0x4ad18f(0x174))&&_0x3ab508[_0x4ad18f(0x1bd)](_0x4ad18f(0x174),{'allowAttributes':[_0x4ad18f(0x1b2)]}),_0x3ab508[_0x4ad18f(0x1a9)](_0x4ad18f(0x199))&&_0x3ab508[_0x4ad18f(0x1bd)](_0x4ad18f(0x199),{'allowAttributes':[_0x4ad18f(0x1b2)]});}[_0x511c47(0x170)](){const _0x373916=_0x511c47,_0x4eb744=this[_0x373916(0x19c)];_0x4eb744[_0x373916(0x196)][_0x373916(0x197)](_0x373916(0x16e))[_0x373916(0x18c)]({'model':_0x373916(0x1b2),'view':_0x373916(0x192)}),_0x4eb744[_0x373916(0x196)][_0x373916(0x197)](_0x373916(0x18b))[_0x373916(0x17d)]({'model':{'key':_0x373916(0x1b2),'value':_0x439a08=>_0x439a08[_0x373916(0x1a4)](_0x373916(0x192))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1f308f=_0x4eb744[_0x373916(0x1bc)][_0x373916(0x177)](_0x373916(0x18e));_0x1f308f&&this[_0x373916(0x19e)](_0x1f308f,_0x373916(0x18d),(_0xe32b57,[_0x3ad351,_0x54d2c7])=>{const _0x26260d=_0x373916;_0x3ad351[_0x26260d(0x1b0)](_0x26260d(0x1b2),_0x54d2c7);});}[_0x511c47(0x179)](){const _0x5bbaf5=_0x511c47,_0x7c8385=this[_0x5bbaf5(0x19c)][_0x5bbaf5(0x1ac)][_0x5bbaf5(0x177)](_0x5bbaf5(0x1a1))||{},_0x22fa21=this[_0x5bbaf5(0x19c)][_0x5bbaf5(0x1ac)][_0x5bbaf5(0x177)](_0x5bbaf5(0x1aa))||'';this[_0x5bbaf5(0x19d)]=_0x372192(_0xabf1a1[_0x5bbaf5(0x1be)],_0x5bbaf5(0x185),{..._0x7c8385,'pubkey':_0x22fa21,'ctx-name':_0x5bbaf5(0x189),'sourceList':'','imgOnly':_0x5bbaf5(0x17b),'removeCopyright':_0x5bbaf5(0x17b),'localeName':this[_0x5bbaf5(0x19c)][_0x5bbaf5(0x173)][_0x5bbaf5(0x1bf)],'externalSourcesEmbedCss':_0x5bbaf5(0x191)}),this[_0x5bbaf5(0x19d)][_0x5bbaf5(0x16c)]=_0xddcae7=>{const _0x56164a=_0x5bbaf5;if(_0x56164a(0x1ad)==_0xddcae7)return _0x56164a(0x190);},_0xabf1a1[_0x5bbaf5(0x1be)][_0x5bbaf5(0x19a)][_0x5bbaf5(0x198)](this[_0x5bbaf5(0x19d)]);}[_0x511c47(0x17c)](){const _0x389ef9=_0x511c47;this[_0x389ef9(0x180)]=_0x372192(_0xabf1a1[_0x389ef9(0x1be)],_0x389ef9(0x1b5),{'ctx-name':_0x389ef9(0x189)}),_0xabf1a1[_0x389ef9(0x1be)][_0x389ef9(0x19a)][_0x389ef9(0x198)](this[_0x389ef9(0x180)]);}[_0x511c47(0x19f)](){const _0x4342d0=_0x511c47,_0x1c4e47=this[_0x4342d0(0x19c)][_0x4342d0(0x1bc)][_0x4342d0(0x177)](_0x4342d0(0x188));_0x1c4e47&&this[_0x4342d0(0x19e)](_0x1c4e47,_0x4342d0(0x1ae),()=>{const _0x3c6818=_0x4342d0,_0x49b64d=this[_0x3c6818(0x19c)][_0x3c6818(0x1a0)][_0x3c6818(0x1be)][_0x3c6818(0x184)][_0x3c6818(0x1b4)]();_0x49b64d&&_0x49b64d[_0x3c6818(0x1a4)](_0x3c6818(0x1b2))&&this[_0x3c6818(0x19c)][_0x3c6818(0x1b8)][_0x3c6818(0x1b6)][_0x3c6818(0x1bb)](_0x3c6818(0x1a7),()=>{const _0x45e419=_0x3c6818;_0x5bc06c(this[_0x45e419(0x19c)],_0x49b64d);});});const _0x5836af=this[_0x4342d0(0x19c)][_0x4342d0(0x1bc)][_0x4342d0(0x177)](_0x4342d0(0x172));_0x5836af&&this[_0x4342d0(0x19e)](_0x5836af,_0x4342d0(0x1ae),()=>{const _0x48377c=_0x4342d0,_0x24ebb2=this[_0x48377c(0x19c)][_0x48377c(0x1a0)][_0x48377c(0x1be)][_0x48377c(0x184)][_0x48377c(0x1b4)]();_0x24ebb2&&_0x24ebb2[_0x48377c(0x1a4)](_0x48377c(0x1b2))&&this[_0x48377c(0x19c)][_0x48377c(0x1b8)][_0x48377c(0x1b6)][_0x48377c(0x1bb)](_0x48377c(0x1a7),()=>{const _0xd58c83=_0x48377c;_0x5bc06c(this[_0xd58c83(0x19c)],_0x24ebb2);});});}}
|