@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250315.0 → 0.0.0-nightly-20250316.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/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1057e3,Command as _0x2f1928}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x448b91,IconGooglePhotos as _0x18aaf7,IconGoogleDrive as _0x495ef6,IconFacebook as _0x1174ea,IconDropbox as _0xb36b88,IconUploadcareLink as _0x2f1e82,IconUploadcareImageUpload as _0x2dd753,IconError as et,IconUploadcareImageEdit as _0x51a8a0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2a083b,MenuBarMenuListItemButtonView as _0x72bd71,View as _0xcc6c4c,FocusCycler as _0x429312,Dialog as _0x1be972,DialogViewPosition as _0x853985,SpinnerView as _0x3c26c9,IconView as at,Notification as _0x438e89}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x50c3fd,DomEmitterMixin as _0x175f54,global as _0x45d370,getAncestors as _0xfdfb15,ObservableMixin as _0x3dbf28,createElement as _0x2b2096,uid as _0x18ddef}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4eb487}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x56a43c,info as _0x2818c0}from'@uploadcare/upload-client';import*as _0x5285e4 from'@uploadcare/file-uploader';var o=function(_0x137ca4){return _0x137ca4['Local']='local',_0x137ca4['URL']='url',_0x137ca4['Dropbox']='dropbox',_0x137ca4['GDrive']='gdrive',_0x137ca4['Facebook']='facebook',_0x137ca4['GPhotos']='gphotos',_0x137ca4['OneDrive']='onedrive',_0x137ca4;}({});function _(_0x3cc2f9,_0x38d96d,_0x5c6829){const t=_0x3cc2f9['t'],_0x445584=_0x3cc2f9['t'];switch(_0x38d96d){case o['Local']:return{'text':_0x445584('Insert'===_0x5c6829?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x445584('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x5c6829?_0x445584('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x445584('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x5c6829?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x5c6829?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x5c6829?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x5c6829?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x5c6829?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x38d96d;}}class e extends _0x1057e3{['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 _0x33f803=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x520887;for(const _0x9ce74 in _0x33f803){const _0x2548ac=_0x9ce74,_0x33cfe2=_0x33f803[_0x2548ac];if('uploadcareLicenseKeyValid'==_0x33cfe2||'uploadcareLicenseKeyInvalid'==_0x33cfe2||'uploadcareLicenseKeyExpired'==_0x33cfe2||'uploadcareLicenseKeyDomainLimit'==_0x33cfe2||'uploadcareLicenseKeyNotAllowed'==_0x33cfe2||'uploadcareLicenseKeyEvaluationLimit'==_0x33cfe2||'uploadcareLicenseKeyTrialLimit'==_0x33cfe2||'uploadcareLicenseKeyUsageLimit'==_0x33cfe2){delete _0x33f803[_0x2548ac],_0x520887=_0x33cfe2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x520887&&_0x33f803['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x520887&&_0x33f803['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x520887&&_0x33f803['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x520887&&_0x33f803['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x520887&&_0x33f803['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x520887&&_0x33f803['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x520887&&_0x33f803['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x35b8be}=this,_0x52ce4d=_0x35b8be['commands']['get']('uploadcare');if(!_0x52ce4d)return;const _0x3d7798=this['_normalizeConfigSourceList'](_0x35b8be['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5b11e4,_0x14d90d)=>{const _0x1524b4=this['_getIntegrationKey'](_0x14d90d['type']);return _0x5b11e4[_0x1524b4]||(_0x5b11e4[_0x1524b4]=[]),_0x5b11e4[_0x1524b4]['push'](_0x14d90d),_0x5b11e4;},{});_0x35b8be['plugins']['has']('ImageInsertUI')&&_0x35b8be['commands']['get']('uploadcare')&&Object['entries'](_0x3d7798)['forEach'](([_0x270d90,_0x49e0be])=>{_0x35b8be['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x270d90,'observable':()=>_0x52ce4d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x49e0be),'formViewCreator':()=>this['_createDropdownButtons'](_0x49e0be),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x49e0be),'override':'assetManager'!==_0x270d90});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x47b985){const {locale:_0x20be1b}=this['editor'];return _0x47b985['map'](_0x1b3b90=>{const _0x2cd5ce=_(_0x20be1b,_0x1b3b90,'Insert');switch(_0x1b3b90){case o['Local']:return{'icon':_0x2dd753,'type':o['Local'],..._0x2cd5ce};case o['URL']:return{'icon':_0x2f1e82,'type':o['URL'],..._0x2cd5ce};case o['Dropbox']:return{'icon':_0xb36b88,'type':o['Dropbox'],..._0x2cd5ce};case o['Facebook']:return{'icon':_0x1174ea,'type':o['Facebook'],..._0x2cd5ce};case o['GDrive']:return{'icon':_0x495ef6,'type':o['GDrive'],..._0x2cd5ce};case o['GPhotos']:return{'icon':_0x18aaf7,'type':o['GPhotos'],..._0x2cd5ce};case o['OneDrive']:return{'icon':_0x448b91,'type':o['OneDrive'],..._0x2cd5ce};}});}['_getIntegrationKey'](_0x371bc1){switch(_0x371bc1){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x32653f,_0x28c7da){const _0x5bcd4d=this['editor'],_0x1872da=new _0x32653f(_0x5bcd4d['locale']),_0xabaeb8=_0x5bcd4d['commands']['get']('uploadcare');return _0x1872da['bind']('isEnabled')['to'](_0xabaeb8),_0x1872da['on']('execute',()=>{_0xabaeb8['execute'](_0x28c7da);}),_0x1872da;}['_createToolbarButton'](_0x11000d){const {locale:_0x1c7d24}=this['editor'],_0x180677=this['editor']['plugins']['get']('ImageInsertUI'),_0xd83818=_0x11000d[0x0],_0x414a95=this['_createButton'](_0x2a083b,_0xd83818['type']);return _0x414a95['icon']=_0xd83818['icon'],_0x414a95['bind']('label')['to'](_0x180677,'isImageSelected',_0x4d656e=>_(_0x1c7d24,_0xd83818['type'],_0x4d656e?'Replace':'Insert')['text']),_0x414a95['tooltip']=!0x0,_0x414a95;}['_createDropdownButtons'](_0x15f599){const {locale:_0x56bd40}=this['editor'],_0x33cf46=this['editor']['plugins']['get']('ImageInsertUI');return _0x15f599['map'](_0x25741f=>{const _0x1d3e41=this['_createButton'](_0x2a083b,_0x25741f['type']);return _0x1d3e41['withText']=!0x0,_0x1d3e41['icon']=_0x25741f['icon'],_0x1d3e41['bind']('label')['to'](_0x33cf46,'isImageSelected',_0x1f4b62=>_(_0x56bd40,_0x25741f['type'],_0x1f4b62?'Replace':'Insert')['text']),_0x1d3e41;});}['_createMenuBarButtons'](_0x1c5b10){return _0x1c5b10['map'](_0x4d8986=>{const _0x573820=this['_createButton'](_0x72bd71,_0x4d8986['type']);return _0x573820['icon']=_0x4d8986['icon'],_0x573820['label']=_0x4d8986['shortText'],_0x573820;});}}class q extends _0xcc6c4c{['focusTracker'];['focusCycler'];constructor(_0xb047df){super(_0xb047df),this['focusTracker']=new _0x50c3fd(),this['focusCycler']=new _0x429312({'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(_0x31179d){super(_0x31179d),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(_0x5bcc90,_0x23bb8f){const _0x13adff=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1defd7=>_0x1defd7<=_0x23bb8f)['map'](_0x4425ea=>_0x5bcc90['replace'](/\/$/,'')+'/-/resize/'+_0x4425ea+'x/\x20'+_0x4425ea+'w');return{'imageFallbackUrl':_0x5bcc90,'imageSources':[{'srcset':_0x13adff['join'](',\x20'),'sizes':'(max-width:\x20'+_0x23bb8f+'px)\x20100vw,\x20'+_0x23bb8f+'px','type':'image/webp'}]};}function A(_0x416cd8,_0x3be6cf,_0x1b6a56){const _0x8f2fd=_0x416cd8['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x8f2fd?parseInt(_0x8f2fd[0x1],0xa):_0x3be6cf,'height':_0x8f2fd?parseInt(_0x8f2fd[0x2],0xa):_0x1b6a56};}function m(_0x5e99ff,_0x4ad938){const _0x45ab32=Object['create'](_0x175f54),_0x5f3ae2=_0x5e99ff['plugins']['get']('ImageUtils'),_0xa2cf=_0x5e99ff['editing']['mapper']['toViewElement'](_0x4ad938),_0x5dad6d=_0x5f3ae2['findViewImgElement'](_0xa2cf),_0x59a114=_0x5e99ff['editing']['view']['domConverter']['viewToDom'](_0x5dad6d),_0x5e16b3=_0x4ad938['getAttribute']('width'),_0x1c65ae=_0x4ad938['getAttribute']('height'),_0x4d1b5b='image-processing';_0x5e99ff['editing']['view']['change'](_0x2c3f40=>{_0x2c3f40['addClass'](_0x4d1b5b,_0xa2cf),_0x2c3f40['setStyle']('aspect-ratio',_0x5e16b3+'/'+_0x1c65ae,_0x5dad6d);}),_0x45ab32['listenTo'](_0x59a114,'load',()=>{_0x45ab32['stopListening'](_0x59a114,'load'),_0x5e99ff['editing']['view']['change'](_0x3fe27f=>{_0x3fe27f['removeClass'](_0x4d1b5b,_0xa2cf),_0x3fe27f['removeStyle']('aspect-ratio',_0x5dad6d);});});}function V(_0x4d22a0){if(Array['isArray'](_0x4d22a0)){const _0x1e1cf6=_0x4d22a0['map'](V);return _0x20cd16=>_0x1e1cf6['some'](_0x3915c0=>_0x3915c0(_0x20cd16));}if('origin'==_0x4d22a0){const _0x507143=_0x45d370['window']['location']['origin'];return _0xd26127=>new URL(_0xd26127,_0x45d370['document']['baseURI'])['origin']==_0x507143;}return'function'==typeof _0x4d22a0?_0x4d22a0:_0x4d22a0 instanceof RegExp?_0x2c708c=>!(!_0x2c708c['match'](_0x4d22a0)&&!_0x2c708c['replace'](/^https?:\/\//,'')['match'](_0x4d22a0)):()=>!0x1;}function F(_0x2153dc,_0x590fda){return _0xfdfb15(_0x2153dc['target'])['includes'](_0x590fda);}class l extends/* #__PURE__ -- @preserve */
24
- _0x3dbf28(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x50b183,_0x279ca4,_0x21bda2){super(),this['_editor']=_0x50b183,this['_editing']=_0x279ca4,this['_dialog']=_0x50b183['plugins']['get'](_0x1be972),this['_api']=_0x279ca4['ctxElement']['getAPI'](),this['_type']=_0x21bda2,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:_0x448a74,model:_0x2fabfc}=this['_editor'],_0x56e798=_0x2fabfc['document']['selection']['getSelectedElement'](),_0x30e0d8=_0x56e798&&(_0x56e798['is']('element','imageBlock')||_0x56e798['is']('element','imageInline'));this['_formView']=new S(_0x448a74),this['_dialog']['show']({'id':'uploadCare','icon':_0x2dd753,'title':_(_0x448a74,this['_type'],_0x30e0d8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x853985['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1dd718=>!F(_0x1dd718,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5d36a9}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3e81e4=>{const _0x3a9adc=_0x5d36a9['length'];for(const _0x50f1af of _0x5d36a9){const _0x59422c=_0x50f1af===_0x5d36a9[_0x3a9adc-0x1],{cdnUrl:_0x1bc861,fileInfo:_0x578523}=_0x50f1af;if(!_0x1bc861||!_0x578523)continue;const {width:_0x18dcea,height:_0x42d795}=_0x578523['imageInfo'],_0x38bf7c=A(_0x1bc861,_0x18dcea,_0x42d795),_0x18ffc1=E(_0x1bc861,_0x38bf7c['width']),_0x297264={'id':_0x578523['uuid'],'type':'image','attributes':{'imageDimension':_0x38bf7c,..._0x18ffc1}};this['_insertAsset'](_0x297264,_0x59422c,_0x3e81e4);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xbe78d6=>{'idle'===_0xbe78d6['detail']['status']&&!_0xbe78d6['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x38e045,_0x15901e,_0x491040){const _0x2a58bd=this['_editor']['model']['document']['selection'],_0x2c645f=_0x2a58bd['getSelectedElement'](),_0x4906b1=!(!_0x2c645f||!_0x2c645f['is']('element','imageInline'));_0x491040['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x38e045,_0x4906b1),_0x15901e||_0x491040['setSelection'](_0x2a58bd['getLastPosition']());}['_insertImage'](_0x25f52f,_0x383cc8){const _0x430e39=this['_editor'],{imageDimension:_0x1d5e18,imageFallbackUrl:_0x30e9d2,imageSources:_0x5dbbcc}=_0x25f52f['attributes'];_0x430e39['execute']('insertImage',{'imageType':_0x383cc8?'imageInline':null,'source':{'uploadcareImageId':_0x25f52f['id'],'src':_0x30e9d2,'sources':_0x5dbbcc,..._0x1d5e18}});}}class n extends _0x2f1928{['_editing'];['_controller']=null;static get['requires'](){return[_0x1be972,i];}constructor(_0x26e5c7){super(_0x26e5c7),this['_editing']=_0x26e5c7['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x177ca8){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x177ca8);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x2d3991,publicKey:_0x4d8807,signal:_0x20f17e,onProgress:_0x1b7553}){return _0x56a43c(_0x2d3991,{'publicKey':_0x4d8807,'store':'auto','signal':_0x20f17e,'onProgress':_0x1b7553});}static['getInfo'](_0x54af40,_0x309944){return _0x2818c0(_0x54af40,_0x309944);}}class p extends _0x1057e3{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4eb487,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xd056a0=this['editor'];if(!!!_0xd056a0['config']['get']('uploadcare'))return;_0xd056a0['plugins']['get'](_0x4eb487)['createUploadAdapter']=_0x4baf91=>new x(_0x4baf91,_0xd056a0),_0xd056a0['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x53f2c9,{imageElement:_0x370e85,data:_0x16a4fe})=>{_0xd056a0['model']['change'](_0x134346=>{_0x134346['setAttribute']('uploadcareImageId',_0x16a4fe['uploadcareImageId'],_0x370e85);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x4f968a,_0x119d68){this['loader']=_0x4f968a,this['editor']=_0x119d68,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2a3ae2=this['editor']['config']['get']('uploadcare.pubkey'),_0x24209f=await this['loader']['file'];return C['upload']({'file':_0x24209f,'publicKey':_0x2a3ae2,'signal':this['controller']['signal'],'onProgress':_0x367ff8=>{_0x367ff8&&_0x367ff8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x367ff8['value']);}})['then'](async _0xe45aae=>{const {imageFallbackUrl:_0x1ef5f8,imageSources:_0x462210}=E(_0xe45aae['cdnUrl'],_0xe45aae['imageInfo']['width']);return{'uploadcareImageId':_0xe45aae['uuid'],'default':_0x1ef5f8,'sources':_0x462210};})['catch'](()=>{const _0x32b289=t('Cannot\x20upload\x20file:')+('\x20'+_0x24209f['name']+'.');return Promise['reject'](_0x32b289);});}['abort'](){this['controller']['abort']();}}class i extends _0x1057e3{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x1be972];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x2c5e01=this['editor'];_0x2c5e01['commands']['add']('uploadcare',new n(_0x2c5e01));}['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 _0x3b827c=_0x45d370['document']['querySelector']('input[uploadcare-file-input]');_0x3b827c&&_0x3b827c['remove']();}),async function(_0x1e9c94){const _0x14c685=_0xb6d979([0x6e,0x4e,0x57,0x79,0x6a,0x6d,0x4d,0x4b,0x50,0x68,0x75,0x52,0x42,0x59,0x47,0x5a,0x70,0x64,0x51,0x43,0x6b,0x44,0x71,0x69,0x4a,0x4f,0x65,0x63,0x58,0x6f,0x76,0x35,0x39,0x34,0x73,0x53,0x46,0x31,0x56,0x30,0x32,0x77,0x33,0x37,0x62,0x4c,0x78,0x38,0x41,0x67,0x61,0x7a,0x54,0x74,0x45,0x36,0x6c,0x55,0x49,0x66,0x48,0x72]),_0x219e5e=0x2b8ef94d,_0x14b0e1=0x2b899b7d^_0x219e5e,_0x437ec5=window[_0xb6d979([0x44,0x61,0x74,0x65])][_0xb6d979([0x6e,0x6f,0x77])](),_0x10d438=_0x1e9c94[_0xb6d979([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x294abd=new window[(_0xb6d979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dce42=>{_0x10d438[_0xb6d979([0x6f,0x6e,0x63,0x65])](_0xb6d979([0x72,0x65,0x61,0x64,0x79]),_0x4dce42);}),_0x59640c={[_0xb6d979([0x6b,0x74,0x79])]:_0xb6d979([0x45,0x43]),[_0xb6d979([0x75,0x73,0x65])]:_0xb6d979([0x73,0x69,0x67]),[_0xb6d979([0x63,0x72,0x76])]:_0xb6d979([0x50,0x2d,0x32,0x35,0x36]),[_0xb6d979([0x78])]:_0xb6d979([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]),[_0xb6d979([0x79])]:_0xb6d979([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]),[_0xb6d979([0x61,0x6c,0x67])]:_0xb6d979([0x45,0x53,0x32,0x35,0x36])},_0x38834d=_0x10d438[_0xb6d979([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb6d979([0x67,0x65,0x74])](_0xb6d979([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3623af(){let _0x5ca305,_0x40b9d4=null,_0x2d25c5=null;try{if(_0x38834d==_0xb6d979([0x47,0x50,0x4c]))return _0xb6d979([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ca305=_0x19c9bf(),!_0x5ca305)return _0xb6d979([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5ca305[_0xb6d979([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d25c5=_0x5b9e8e(_0x5ca305[_0xb6d979([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ca305[_0xb6d979([0x6a,0x74,0x69])])),await _0x4ea8f1()?_0x166343()?_0x1e323f()?_0xb6d979([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5bbfba()?(_0x5ca305[_0xb6d979([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb6d979([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x40b9d4=_0xb11a68(_0xb6d979([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5ca305[_0xb6d979([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb6d979([0x74,0x72,0x69,0x61,0x6c])&&(_0x40b9d4=_0xb11a68(_0xb6d979([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x152fcf()):_0xb6d979([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb6d979([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb6d979([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x25bab3){return _0xb6d979([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e323f(){const _0x1cc656=[_0xb6d979([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb6d979([0x74,0x72,0x69,0x61,0x6c])][_0xb6d979([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ca305[_0xb6d979([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x437ec5/0x3e8:0xe10*_0x14b0e1;return _0x5ca305[_0xb6d979([0x65,0x78,0x70])]<_0x1cc656;}function _0x166343(){const _0x2f55ca=_0x5ca305[_0xb6d979([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2f55ca&&(!!_0x2f55ca[_0xb6d979([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb6d979([0x2a]))||!!_0x2f55ca[_0xb6d979([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb6d979([0x55,0x50,0x4c,0x43])));}function _0x5bbfba(){const _0x4c36f1=_0x5ca305[_0xb6d979([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4c36f1||0x0==_0x4c36f1[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x746f68}=new URL(window[_0xb6d979([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4c36f1[_0xb6d979([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x746f68))return!0x0;const _0x111e20=_0x746f68[_0xb6d979([0x73,0x70,0x6c,0x69,0x74])](_0xb6d979([0x2e]));return _0x4c36f1[_0xb6d979([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4907e2=>_0x4907e2[_0xb6d979([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb6d979([0x2a])))[_0xb6d979([0x6d,0x61,0x70])](_0x255480=>_0x255480[_0xb6d979([0x73,0x70,0x6c,0x69,0x74])](_0xb6d979([0x2e])))[_0xb6d979([0x73,0x6f,0x6d,0x65])](_0x3e5f8f=>_0x111e20[_0xb6d979([0x65,0x76,0x65,0x72,0x79])]((_0x4b64cc,_0x72f278)=>_0x3e5f8f[_0x72f278]===_0x4b64cc||_0x3e5f8f[_0x72f278]===_0xb6d979([0x2a])));}function _0x152fcf(){return _0x40b9d4&&_0x2d25c5?new window[(_0xb6d979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a086e,_0x5f3ebc)=>{_0x40b9d4[_0xb6d979([0x74,0x68,0x65,0x6e])](_0x5a086e,_0x5f3ebc),_0x2d25c5[_0xb6d979([0x74,0x68,0x65,0x6e])](_0x18705f=>{_0x18705f!=_0xb6d979([0x56,0x61,0x6c,0x69,0x64])&&_0x5a086e(_0x18705f);},_0x5f3ebc);}):_0x40b9d4||_0x2d25c5||_0xb6d979([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5b9e8e(_0x1e54c8,_0x21f4c2){return new window[(_0xb6d979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24731b=>{if(_0x42a0a4())return _0x24731b(_0xb6d979([0x56,0x61,0x6c,0x69,0x64]));_0x2ce401(),_0x10d438[_0xb6d979([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb6d979([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1761fa=!0x1;const _0x198f32=_0x18ddef();function _0x263db9(_0x5591ea){return!!_0x5591ea&&(typeof _0x5591ea===_0xb6d979([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5591ea===_0xb6d979([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5591ea[_0xb6d979([0x74,0x68,0x65,0x6e])]===_0xb6d979([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5591ea[_0xb6d979([0x63,0x61,0x74,0x63,0x68])]===_0xb6d979([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x10528c(_0x347e9f){_0x2344ea(_0x347e9f)[_0xb6d979([0x74,0x68,0x65,0x6e])](_0x5f019e=>{if(!_0x5f019e||_0x5f019e[_0xb6d979([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb6d979([0x6f,0x6b]))return _0xb6d979([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x13d4ed(_0x5e71f6(_0x198f32+_0x21f4c2))!=_0x5f019e[_0xb6d979([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb6d979([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb6d979([0x56,0x61,0x6c,0x69,0x64]);})[_0xb6d979([0x74,0x68,0x65,0x6e])](_0x47e1fd=>(_0x349e9f(),_0x47e1fd),()=>{const _0x132c66=_0x23a651();return null==_0x132c66?(_0x349e9f(),_0xb6d979([0x56,0x61,0x6c,0x69,0x64])):_0xb6d979(_0x437ec5-_0x132c66>(0xf827d4d^_0x219e5e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb6d979([0x74,0x68,0x65,0x6e])](_0x24731b)[_0xb6d979([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24731b(_0xb6d979([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c8c55=0x2bb817cd^_0x219e5e;function _0x349e9f(){const _0x4fcc1e=_0xb6d979([0x6c,0x6c,0x63,0x74,0x2d])+_0x13d4ed(_0x5e71f6(_0x1e54c8)),_0x1fedf3=_0xbb36ce(_0x13d4ed(window[_0xb6d979([0x4d,0x61,0x74,0x68])][_0xb6d979([0x63,0x65,0x69,0x6c])](_0x437ec5/_0x2c8c55)));window[_0xb6d979([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb6d979([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fcc1e,_0x1fedf3);}function _0x23a651(){const _0x2c6374=_0xb6d979([0x6c,0x6c,0x63,0x74,0x2d])+_0x13d4ed(_0x5e71f6(_0x1e54c8)),_0xbc8acb=window[_0xb6d979([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb6d979([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c6374);return _0xbc8acb?window[_0xb6d979([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbb36ce(_0xbc8acb),0x10)*_0x2c8c55:null;}function _0x2344ea(_0x24b84f){return new window[(_0xb6d979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5864d0,_0x3547de)=>{_0x24b84f[_0xb6d979([0x74,0x68,0x65,0x6e])](_0x5864d0,_0x3547de),window[_0xb6d979([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3547de,0x2b8f2d8d^_0x219e5e);});}}_0x10d438[_0xb6d979([0x6f,0x6e])](_0xb6d979([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x273ff5,_0x31459b)=>{if(_0x31459b[0x0]!=_0x1e54c8)return _0x24731b(_0xb6d979([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x31459b[0x1]={..._0x31459b[0x1],[_0xb6d979([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x198f32};},{[_0xb6d979([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb6d979([0x68,0x69,0x67,0x68])}),_0x10d438[_0xb6d979([0x6f,0x6e])](_0xb6d979([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc88586=>{_0x263db9(_0xc88586[_0xb6d979([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1761fa=!0x0,_0x10528c(_0xc88586[_0xb6d979([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb6d979([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb6d979([0x6c,0x6f,0x77])}),_0x294abd[_0xb6d979([0x74,0x68,0x65,0x6e])](()=>{_0x1761fa||_0x24731b(_0xb6d979([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x42a0a4(){return _0x10d438[_0xb6d979([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb6d979([0x76,0x69,0x65,0x77])][_0xb6d979([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb6d979([0x61,0x75,0x74,0x6f]);}function _0x2ce401(){_0x10d438[_0xb6d979([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb6d979([0x76,0x69,0x65,0x77])][_0xb6d979([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb6d979([0x61,0x75,0x74,0x6f]);}}function _0xb11a68(_0x52922d){const _0xad38ac=[new window[(_0xb6d979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d138c=>setTimeout(_0x2d138c,0x2b87c781^_0x219e5e)),_0x294abd[_0xb6d979([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb6d979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21690e=>{let _0xb91c6=0x0;_0x10d438[_0xb6d979([0x6d,0x6f,0x64,0x65,0x6c])][_0xb6d979([0x6f,0x6e])](_0xb6d979([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d45d3,_0x42152d)=>{_0x42152d[0x0][_0xb6d979([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xb91c6++,_0xb91c6==(0x2b8ef8b5^_0x219e5e)&&(_0x21690e(),_0x1d45d3[_0xb6d979([0x6f,0x66,0x66])]());});}))];return window[_0xb6d979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb6d979([0x72,0x61,0x63,0x65])](_0xad38ac)[_0xb6d979([0x74,0x68,0x65,0x6e])](()=>_0x52922d);}async function _0x2bda4e(){await _0x294abd,_0x10d438[_0xb6d979([0x6d,0x6f,0x64,0x65,0x6c])][_0xb6d979([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4f3c17,_0x10d438[_0xb6d979([0x6d,0x6f,0x64,0x65,0x6c])][_0xb6d979([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4f3c17,_0x10d438[_0xb6d979([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb6d979([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x486a60(_0x109521){const _0xabafe4=_0x419fa8();_0x10d438[_0xabafe4]=_0xb6d979([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x109521,_0x109521!=_0xb6d979([0x56,0x61,0x6c,0x69,0x64])&&_0x2bda4e();}function _0x419fa8(){const _0x3b0fd9=window[_0xb6d979([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb6d979([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb6d979([0x6e,0x6f,0x77])]())[_0xb6d979([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb6d979([0x2e]),'');let _0x3abfac=_0xb6d979([0x6e]);for(let _0x3ae573=0x0;_0x3ae573<_0x3b0fd9[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ae573+=0x2){let _0x493f5e=window[_0xb6d979([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b0fd9[_0xb6d979([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ae573,_0x3ae573+0x2));_0x493f5e>=_0x14c685[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x493f5e-=_0x14c685[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3abfac+=_0x14c685[_0x493f5e];}return _0x3abfac;}function _0x19c9bf(){const _0x28b97d=_0x38834d[_0xb6d979([0x73,0x70,0x6c,0x69,0x74])](_0xb6d979([0x2e]));if(0x3!=_0x28b97d[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x226d7e(_0x28b97d[0x1]);function _0x226d7e(_0x400407){const _0x2f8b10=_0x115505(_0x400407);return _0x2f8b10&&_0x505cd9()?_0x2f8b10:null;function _0x505cd9(){const _0x529f08=_0x2f8b10[_0xb6d979([0x6a,0x74,0x69])],_0x412df0=window[_0xb6d979([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x529f08[_0xb6d979([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x529f08[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xf61f76={..._0x2f8b10,[_0xb6d979([0x6a,0x74,0x69])]:_0x529f08[_0xb6d979([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x529f08[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xf61f76[_0xb6d979([0x76,0x63])],_0x5e71f6(_0xf61f76)==_0x412df0;}}}async function _0x4ea8f1(){let _0x2a81a8=!0x0;try{const _0x291a0e=_0x38834d[_0xb6d979([0x73,0x70,0x6c,0x69,0x74])](_0xb6d979([0x2e])),[_0x10b397,_0x30e401,_0x5b7f13]=_0x291a0e;return _0x485cba(_0x10b397),await _0x11c1d4(_0x10b397,_0x30e401,_0x5b7f13),_0x2a81a8;}catch(_0x3c25d5){return!0x1;}function _0x485cba(_0x21acd1){const _0x2751f=_0x115505(_0x21acd1);_0x2751f&&_0x2751f[_0xb6d979([0x61,0x6c,0x67])]==_0xb6d979([0x45,0x53,0x32,0x35,0x36])||(_0x2a81a8=!0x1);}async function _0x11c1d4(_0x1b09e1,_0x5a6912,_0x2a5ac7){const _0x9402cb=window[_0xb6d979([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb6d979([0x66,0x72,0x6f,0x6d])](_0x4ed932(_0x2a5ac7),_0x49eaba=>_0x49eaba[_0xb6d979([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x238b5f=new window[(_0xb6d979([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb6d979([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1b09e1+_0xb6d979([0x2e])+_0x5a6912),_0x35fe1a=window[_0xb6d979([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb6d979([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x35fe1a)return;const _0x208c36=await _0x35fe1a[_0xb6d979([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb6d979([0x6a,0x77,0x6b]),_0x59640c,{[_0xb6d979([0x6e,0x61,0x6d,0x65])]:_0xb6d979([0x45,0x43,0x44,0x53,0x41]),[_0xb6d979([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb6d979([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb6d979([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x35fe1a[_0xb6d979([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb6d979([0x6e,0x61,0x6d,0x65])]:_0xb6d979([0x45,0x43,0x44,0x53,0x41]),[_0xb6d979([0x68,0x61,0x73,0x68])]:{[_0xb6d979([0x6e,0x61,0x6d,0x65])]:_0xb6d979([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x208c36,_0x9402cb,_0x238b5f)||(_0x2a81a8=!0x1);}}function _0x115505(_0x52cc20){return _0x52cc20[_0xb6d979([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb6d979([0x65,0x79]))?JSON[_0xb6d979([0x70,0x61,0x72,0x73,0x65])](_0x4ed932(_0x52cc20)):null;}function _0x4ed932(_0x2d3671){return window[_0xb6d979([0x61,0x74,0x6f,0x62])](_0x2d3671[_0xb6d979([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb6d979([0x2b]))[_0xb6d979([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb6d979([0x2f])));}function _0x5e71f6(_0x58cb85){let _0x645152=0x1505;function _0x4608b5(_0x5a26d7){for(let _0x26fd9a=0x0;_0x26fd9a<_0x5a26d7[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26fd9a++){const _0x5d0491=_0x5a26d7[_0xb6d979([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26fd9a);_0x645152=(_0x645152<<0x5)+_0x645152+_0x5d0491,_0x645152&=_0x645152;}}function _0x4f5bec(_0xb7c74d){Array[_0xb6d979([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb7c74d)?_0xb7c74d[_0xb6d979([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f5bec):_0xb7c74d&&typeof _0xb7c74d==_0xb6d979([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb6d979([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb7c74d)[_0xb6d979([0x73,0x6f,0x72,0x74])]()[_0xb6d979([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17af75,_0x405422])=>{_0x4608b5(_0x17af75),_0x4f5bec(_0x405422);}):_0x4608b5(window[_0xb6d979([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb7c74d));}return _0x4f5bec(_0x58cb85),_0x645152>>>0x0;}function _0x13d4ed(_0x4a0f82){return _0x4a0f82[_0xb6d979([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb6d979([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb6d979([0x30]));}function _0xbb36ce(_0x36128c){return _0x36128c[_0xb6d979([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb6d979([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb6d979([0x6a,0x6f,0x69,0x6e])]('');}function _0x4f3c17(){}function _0xb6d979(_0x466799){return _0x466799['map'](_0x29f8dc=>String['fromCharCode'](_0x29f8dc))['join']('');}_0x486a60(await _0x3623af());}(this);}['_initSchema'](){const _0x5f0c9b=this['editor']['model']['schema'];_0x5f0c9b['isRegistered']('imageBlock')&&_0x5f0c9b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5f0c9b['isRegistered']('imageInline')&&_0x5f0c9b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3edc0a=this['editor'];_0x3edc0a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3edc0a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x30860f=>_0x30860f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4e11b9=_0x3edc0a['commands']['get']('replaceImageSource');_0x4e11b9&&this['listenTo'](_0x4e11b9,'cleanupImage',(_0x45bc5c,[_0x4c0f98,_0x2830f0])=>{_0x4c0f98['removeAttribute']('uploadcareImageId',_0x2830f0);});}['_initConfig'](){const _0x53f3c7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x9a4530=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2b2096(_0x45d370['document'],'uc-config',{..._0x53f3c7,'pubkey':_0x9a4530,'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']=_0x46b7c9=>{if('closeMax'==_0x46b7c9)return'#uc-icon-arrow-down';},_0x45d370['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2b2096(_0x45d370['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x45d370['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5dedc3=this['editor']['commands']['get']('insertImage');_0x5dedc3&&this['listenTo'](_0x5dedc3,'execute',()=>{const _0x49b630=this['editor']['model']['document']['selection']['getSelectedElement']();_0x49b630&&_0x49b630['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x49b630);});});const _0x16f670=this['editor']['commands']['get']('uploadcareImageReplace');_0x16f670&&this['listenTo'](_0x16f670,'execute',()=>{const _0x3bc40c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3bc40c&&_0x3bc40c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3bc40c);});});}}class u extends _0x1057e3{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48d7af){super(_0x48d7af),_0x48d7af['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x5285e4['defineComponents'](_0x5285e4);}}class ta extends _0xcc6c4c{constructor(_0x2fb798){super(_0x2fb798);const t=_0x2fb798['t'],_0x1299ff=this['bindTemplate'],_0x54f660=new _0x3c26c9();_0x54f660['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':[_0x54f660,{'text':_0x1299ff['to']('imageUploadProgress',_0x503ae7=>t('Loading\x20image...')+'\x20('+(_0x503ae7||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 _0xcc6c4c{constructor(_0xa91cf5){super(_0xa91cf5);const t=_0xa91cf5['t'];this['set']('errorType',null);const _0x4d0542=new _0x2a083b(_0xa91cf5);_0x4d0542['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4d0542['withText']=!0x0,_0x4d0542['class']='ck-button-action',_0x4d0542['on']('execute',()=>{this['fire']('retry');}),_0x4d0542['bind']('isVisible')['to'](this,'errorType',_0x52d932=>'NotFound'!==_0x52d932);const _0x9b1104=new at();_0x9b1104['content']=et,_0x9b1104['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1cec6e=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':[_0x9b1104,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1cec6e['to']('errorType',_0x380e59=>t('NotFound'!==_0x380e59?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4d0542]},{'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 _0xcc6c4c{constructor(_0x486ca3,_0x2c06b9){super(_0x486ca3);const _0x53b939=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2c06b9,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x53b939['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3558dc,_0x46856b,_0x582cdd){super(_0x3558dc),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x3558dc),this['_errorView']=new rt(_0x3558dc),this['_editingView']=new tt(_0x3558dc,_0x582cdd),this['_focusableView']=new _0xcc6c4c(_0x3558dc),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x46856b),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'],_0x47e1da=>{this['_addUploadcareImageEditorListeners'](_0x47e1da);});}),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'](_0x3330a9,_0x44fa50){const _0x2bd72a='uc-cloud-image-editor',_0xd0ed7e=_0x3330a9['querySelector'](_0x2bd72a);if(_0xd0ed7e)return _0x44fa50(_0xd0ed7e);const _0x10ecf8=new MutationObserver(_0x1cb714=>{const _0x43da15=_0x1cb714['filter'](_0x33fb3f=>_0x33fb3f['target']===_0x3330a9&&_0x33fb3f['addedNodes']['length']>0x0&&_0x33fb3f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2bd72a);_0x43da15['length']&&(_0x10ecf8['disconnect'](),_0x44fa50(_0x43da15[0x0]['addedNodes'][0x0]));});_0x10ecf8['observe'](_0x3330a9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5901bf){_0x5901bf['addEventListener']('apply',_0x3d84c3=>{this['fire']('apply',{'imageSrc':_0x3d84c3['detail']['cdnUrl']});}),_0x5901bf['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x3dbf28(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2ae91e,_0x537459,_0x5c5afe){super(),this['_editor']=_0x2ae91e,this['_dialog']=_0x537459,this['_imageElement']=_0x5c5afe,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 _0x5d8c1b=this['_imageElement'],_0x329a2d=_0x5d8c1b['getAttribute']('uploadcareImageId'),_0x1f9fa7=_0x5d8c1b['getAttribute']('src');if(_0x329a2d)await this['_loadImageInfo'](_0x329a2d,_0x1f9fa7);else{if(this['_imageCache']['has'](_0x1f9fa7)){const _0x5330fc=this['_imageCache']['get'](_0x1f9fa7);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5330fc['url'],this['imageDimension']=_0x5330fc['dimension'],this['imageId']=_0x5330fc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x251100}=this['_editor'],t=_0x251100['t'],_0x5cb086=new Z(_0x251100,this['imageStatus'],this['_attributes']);_0x5cb086['bind']('status')['to'](this,'imageStatus'),_0x5cb086['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5cb086['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5cb086['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5cb086,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x51a8a0,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5cb086,'position':_0x853985['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5cb086['focus']();},'onHide':()=>{_0x5cb086['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x35e6bf=>!F(_0x35e6bf,_0x5cb086['element'])}});}['_loadImageInfo'](_0x12fe8c,_0x14fcab){return C['getInfo'](_0x12fe8c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5fd591=>{const {width:_0x90438d,height:_0xfed5ae}=_0x5fd591['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14fcab,this['imageDimension']={'width':_0x90438d,'height':_0xfed5ae},this['imageId']=_0x12fe8c;})['catch'](_0xfdef05=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xfdef05['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1fda1e,_0x43eb45){return this['_getImageAsFile'](_0x1fda1e)['then'](_0x1fbe5b=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x43eb45['signal'],'file':_0x1fbe5b,'onProgress':_0x1412ab=>{_0x1412ab&&_0x1412ab['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1412ab['value']));}}))['then'](_0x5a2c2f=>{const {width:_0x34dbc2,height:_0x39b5fc}=_0x5a2c2f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5a2c2f['cdnUrl'],this['imageDimension']={'width':_0x34dbc2,'height':_0x39b5fc},this['imageId']=_0x5a2c2f['uuid'],this['imageUploadProgress']=null;const _0x2bc2a3=_0x1fda1e['getAttribute']('src');this['_imageCache']['set'](_0x2bc2a3,{'id':_0x5a2c2f['uuid'],'url':_0x5a2c2f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4d10f3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4d10f3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5b8bd7,_0x3ea0b2){_0x5b8bd7['on']('apply',(_0x2ac4e3,_0x304c62)=>{this['_replaceImage'](_0x3ea0b2,_0x304c62['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5b8bd7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5b8bd7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2016b9,_0x45c2a6,_0x31ebde){const _0x7579d4=this['_editor'],{width:_0x206fff,height:_0x41d136}=A(_0x45c2a6,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x57992a,imageSources:_0x52e035}=E(_0x45c2a6,_0x206fff);_0x7579d4['model']['change'](_0x4aa9c5=>{if('$graveyard'===_0x2016b9['root']['rootName']){_0x7579d4['execute']('insertImage',{'imageType':_0x2016b9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2016b9['getAttributes']()),'uploadcareImageId':_0x31ebde,'src':_0x57992a,'sources':_0x52e035,'width':_0x206fff,'height':_0x41d136}});const _0x2809c2=_0x2016b9['getChildren']();_0x2016b9=_0x7579d4['model']['document']['selection']['getSelectedElement']();for(const _0x4d04fa of _0x2809c2)_0x4aa9c5['append'](_0x4aa9c5['cloneElement'](_0x4d04fa),_0x2016b9);}else _0x4aa9c5['setSelection'](_0x2016b9,'on'),_0x7579d4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2016b9['getAttributes']()),'uploadcareImageId':_0x31ebde,'src':_0x57992a,'sources':_0x52e035,'width':_0x206fff,'height':_0x41d136},_0x2016b9);_0x4aa9c5['setSelection'](_0x2016b9,'on');});}async['_getImageAsFile'](_0x2f63a5){const _0x539af4=_0x45d370['window'],_0x4f1121=_0x45d370['document']['location']['href'],_0x4f6fb8=new _0x539af4['URL'](_0x2f63a5['getAttribute']('src'),_0x4f1121);if('data:'===_0x4f6fb8['protocol']){const _0x5b0904=_0x4f6fb8['href']['split'](','),_0x8609ac=_0x5b0904[0x0]['match'](/:(.*?);/)[0x1],_0x343406=_0x8609ac['split']('/')[0x1],_0xf14d5d=_0x539af4['atob'](_0x5b0904[_0x5b0904['length']-0x1]);let _0x1f50c1=_0xf14d5d['length'];const _0x4624a9=new _0x539af4['Uint8Array'](_0x1f50c1);for(;_0x1f50c1--;)_0x4624a9[_0x1f50c1]=_0xf14d5d['charCodeAt'](_0x1f50c1);return new _0x539af4['File']([_0x4624a9],'image.'+_0x343406,{'type':_0x8609ac});}const _0x4cf81=_0x4f6fb8['href']['split']('/'),_0x59c67c=_0x4cf81[_0x4cf81['length']-0x1],_0x2f45f9=_0x59c67c['split']('.')[0x1];return _0x539af4['fetch'](_0x4f6fb8['href'])['then'](_0x400e09=>_0x400e09['clone']()['blob']())['then'](_0x50d3c7=>new _0x539af4['File']([_0x50d3c7],_0x59c67c,{'type':'image/'+_0x2f45f9}));}}class J extends _0x2f1928{['imageEditController'];static get['requires'](){return[_0x1be972];}['_isEditable'];constructor(_0x3bd836){super(_0x3bd836),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2aa3fb){const _0x5e6f87=V(_0x2aa3fb);return _0x35117f=>!(!_0x35117f||!_0x35117f['is']('element','imageBlock')&&!_0x35117f['is']('element','imageInline'))&&(!!_0x35117f['hasAttribute']('uploadcareImageId')||!!_0x35117f['hasAttribute']('src')&&_0x5e6f87(_0x35117f['getAttribute']('src')));}(_0x3bd836['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x6c239f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x6c239f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2757e8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2757e8&&(_0x2757e8['is']('element','imageBlock')||_0x2757e8['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x1be972),_0x2757e8),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2f1928{['refresh'](){const _0x1ee017=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1ee017&&(_0x1ee017['is']('element','imageBlock')||_0x1ee017['is']('element','imageInline')));}['execute'](_0x157e75){const _0x5e9acd=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x41cfd8=>{_0x41cfd8['setAttributes'](_0x157e75,_0x5e9acd),_0x41cfd8['removeAttribute']('srcset',_0x5e9acd),_0x41cfd8['removeAttribute']('sizes',_0x5e9acd);});}}class g extends _0x1057e3{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x438e89,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x250898}=this;_0x250898['commands']['add']('uploadcareImageEdit',new J(_0x250898)),_0x250898['commands']['add']('uploadcareImageReplace',new O(_0x250898));}}class j extends _0x1057e3{['_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 _0x22779a=this['editor'];_0x22779a['ui']['componentFactory']['add']('uploadcareImageEdit',_0x13af8d=>{const _0x1c6da9=_0x22779a['commands']['get']('uploadcareImageEdit'),_0x1eefbc=new _0x2a083b(_0x13af8d),t=_0x13af8d['t'];return _0x1eefbc['set']({'icon':_0x51a8a0,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1eefbc['bind']('isEnabled')['to'](_0x1c6da9),_0x1eefbc['bind']('isOn')['to'](_0x1c6da9,'isActive'),this['listenTo'](_0x1eefbc,'execute',()=>{_0x22779a['execute']('uploadcareImageEdit'),_0x22779a['editing']['view']['focus']();}),_0x1eefbc;}),this['_initConfig']();}['_initConfig'](){const _0x1472ed=_0x2b2096(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1472ed),this['listenTo'](this['editor'],'destroy',()=>{_0x1472ed['remove']();});}}class P extends _0x1057e3{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 _0x1db71b,Command as _0x483aa4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x833f13,IconGooglePhotos as _0x2569b6,IconGoogleDrive as _0x28e0eb,IconFacebook as _0x3c7ab6,IconDropbox as _0x23bc93,IconUploadcareLink as _0x32ce2c,IconUploadcareImageUpload as _0x224c52,IconError as et,IconUploadcareImageEdit as _0x24a903}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4fd5bd,MenuBarMenuListItemButtonView as _0x267cbc,View as _0x137075,FocusCycler as _0x16de9b,Dialog as _0x50810b,DialogViewPosition as _0x51031e,SpinnerView as _0x200ccc,IconView as at,Notification as _0x184cdd}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4fcb14,DomEmitterMixin as _0x3d65de,global as _0x226396,getAncestors as _0x2c5509,ObservableMixin as _0x2b3741,createElement as _0x56a980,uid as _0x1728c3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2fabd9}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2f2d3d,info as _0x5b83df}from'@uploadcare/upload-client';import*as _0x5e21e8 from'@uploadcare/file-uploader';var o=function(_0x102c43){return _0x102c43['Local']='local',_0x102c43['URL']='url',_0x102c43['Dropbox']='dropbox',_0x102c43['GDrive']='gdrive',_0x102c43['Facebook']='facebook',_0x102c43['GPhotos']='gphotos',_0x102c43['OneDrive']='onedrive',_0x102c43;}({});function _(_0x406ada,_0x509e6,_0x5aeda6){const t=_0x406ada['t'],_0x6cc901=_0x406ada['t'];switch(_0x509e6){case o['Local']:return{'text':_0x6cc901('Insert'===_0x5aeda6?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x6cc901('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x5aeda6?_0x6cc901('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x6cc901('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x5aeda6?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x5aeda6?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x5aeda6?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x5aeda6?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x5aeda6?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x509e6;}}class e extends _0x1db71b{['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 _0x21adb7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x432bd7;for(const _0x43a8d9 in _0x21adb7){const _0x1b62ff=_0x43a8d9,_0x40027d=_0x21adb7[_0x1b62ff];if('uploadcareLicenseKeyValid'==_0x40027d||'uploadcareLicenseKeyInvalid'==_0x40027d||'uploadcareLicenseKeyExpired'==_0x40027d||'uploadcareLicenseKeyDomainLimit'==_0x40027d||'uploadcareLicenseKeyNotAllowed'==_0x40027d||'uploadcareLicenseKeyEvaluationLimit'==_0x40027d||'uploadcareLicenseKeyTrialLimit'==_0x40027d||'uploadcareLicenseKeyUsageLimit'==_0x40027d){delete _0x21adb7[_0x1b62ff],_0x432bd7=_0x40027d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x432bd7&&_0x21adb7['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x432bd7&&_0x21adb7['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x432bd7&&_0x21adb7['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x432bd7&&_0x21adb7['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x432bd7&&_0x21adb7['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x432bd7&&_0x21adb7['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x432bd7&&_0x21adb7['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xcc1551}=this,_0x70572f=_0xcc1551['commands']['get']('uploadcare');if(!_0x70572f)return;const _0x16b147=this['_normalizeConfigSourceList'](_0xcc1551['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2d91e3,_0x4eec2d)=>{const _0x4d5cd8=this['_getIntegrationKey'](_0x4eec2d['type']);return _0x2d91e3[_0x4d5cd8]||(_0x2d91e3[_0x4d5cd8]=[]),_0x2d91e3[_0x4d5cd8]['push'](_0x4eec2d),_0x2d91e3;},{});_0xcc1551['plugins']['has']('ImageInsertUI')&&_0xcc1551['commands']['get']('uploadcare')&&Object['entries'](_0x16b147)['forEach'](([_0x504d2a,_0x31b9df])=>{_0xcc1551['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x504d2a,'observable':()=>_0x70572f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x31b9df),'formViewCreator':()=>this['_createDropdownButtons'](_0x31b9df),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x31b9df),'override':'assetManager'!==_0x504d2a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1f14cd){const {locale:_0x5c245a}=this['editor'];return _0x1f14cd['map'](_0x16950f=>{const _0x5deca8=_(_0x5c245a,_0x16950f,'Insert');switch(_0x16950f){case o['Local']:return{'icon':_0x224c52,'type':o['Local'],..._0x5deca8};case o['URL']:return{'icon':_0x32ce2c,'type':o['URL'],..._0x5deca8};case o['Dropbox']:return{'icon':_0x23bc93,'type':o['Dropbox'],..._0x5deca8};case o['Facebook']:return{'icon':_0x3c7ab6,'type':o['Facebook'],..._0x5deca8};case o['GDrive']:return{'icon':_0x28e0eb,'type':o['GDrive'],..._0x5deca8};case o['GPhotos']:return{'icon':_0x2569b6,'type':o['GPhotos'],..._0x5deca8};case o['OneDrive']:return{'icon':_0x833f13,'type':o['OneDrive'],..._0x5deca8};}});}['_getIntegrationKey'](_0x2efa4e){switch(_0x2efa4e){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x502f0b,_0x37244a){const _0x27309a=this['editor'],_0x5c1753=new _0x502f0b(_0x27309a['locale']),_0x215442=_0x27309a['commands']['get']('uploadcare');return _0x5c1753['bind']('isEnabled')['to'](_0x215442),_0x5c1753['on']('execute',()=>{_0x215442['execute'](_0x37244a);}),_0x5c1753;}['_createToolbarButton'](_0x19557e){const {locale:_0xdaa668}=this['editor'],_0x426cd1=this['editor']['plugins']['get']('ImageInsertUI'),_0x25e38b=_0x19557e[0x0],_0x256e90=this['_createButton'](_0x4fd5bd,_0x25e38b['type']);return _0x256e90['icon']=_0x25e38b['icon'],_0x256e90['bind']('label')['to'](_0x426cd1,'isImageSelected',_0x50cf65=>_(_0xdaa668,_0x25e38b['type'],_0x50cf65?'Replace':'Insert')['text']),_0x256e90['tooltip']=!0x0,_0x256e90;}['_createDropdownButtons'](_0x320806){const {locale:_0x174b54}=this['editor'],_0x15c1ee=this['editor']['plugins']['get']('ImageInsertUI');return _0x320806['map'](_0x426b44=>{const _0x5e6e6c=this['_createButton'](_0x4fd5bd,_0x426b44['type']);return _0x5e6e6c['withText']=!0x0,_0x5e6e6c['icon']=_0x426b44['icon'],_0x5e6e6c['bind']('label')['to'](_0x15c1ee,'isImageSelected',_0x50d7ad=>_(_0x174b54,_0x426b44['type'],_0x50d7ad?'Replace':'Insert')['text']),_0x5e6e6c;});}['_createMenuBarButtons'](_0x6498d7){return _0x6498d7['map'](_0xccdf87=>{const _0x328cf8=this['_createButton'](_0x267cbc,_0xccdf87['type']);return _0x328cf8['icon']=_0xccdf87['icon'],_0x328cf8['label']=_0xccdf87['shortText'],_0x328cf8;});}}class q extends _0x137075{['focusTracker'];['focusCycler'];constructor(_0x1aeed6){super(_0x1aeed6),this['focusTracker']=new _0x4fcb14(),this['focusCycler']=new _0x16de9b({'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(_0x2989bb){super(_0x2989bb),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(_0x366188,_0x3a62da){const _0x521d2f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x136b65=>_0x136b65<=_0x3a62da)['map'](_0x31773c=>_0x366188['replace'](/\/$/,'')+'/-/resize/'+_0x31773c+'x/\x20'+_0x31773c+'w');return{'imageFallbackUrl':_0x366188,'imageSources':[{'srcset':_0x521d2f['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3a62da+'px)\x20100vw,\x20'+_0x3a62da+'px','type':'image/webp'}]};}function A(_0x556d8a,_0x46beec,_0x19371b){const _0x170fe9=_0x556d8a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x170fe9?parseInt(_0x170fe9[0x1],0xa):_0x46beec,'height':_0x170fe9?parseInt(_0x170fe9[0x2],0xa):_0x19371b};}function m(_0x38e7b0,_0x820ab9){const _0x2609b4=Object['create'](_0x3d65de),_0xb966a5=_0x38e7b0['plugins']['get']('ImageUtils'),_0x11f398=_0x38e7b0['editing']['mapper']['toViewElement'](_0x820ab9),_0x47b85d=_0xb966a5['findViewImgElement'](_0x11f398),_0x543053=_0x38e7b0['editing']['view']['domConverter']['viewToDom'](_0x47b85d),_0x274f68=_0x820ab9['getAttribute']('width'),_0x18b0b0=_0x820ab9['getAttribute']('height'),_0x40afac='image-processing';_0x38e7b0['editing']['view']['change'](_0x561a8d=>{_0x561a8d['addClass'](_0x40afac,_0x11f398),_0x561a8d['setStyle']('aspect-ratio',_0x274f68+'/'+_0x18b0b0,_0x47b85d);}),_0x2609b4['listenTo'](_0x543053,'load',()=>{_0x2609b4['stopListening'](_0x543053,'load'),_0x38e7b0['editing']['view']['change'](_0x3edb39=>{_0x3edb39['removeClass'](_0x40afac,_0x11f398),_0x3edb39['removeStyle']('aspect-ratio',_0x47b85d);});});}function V(_0xc50be4){if(Array['isArray'](_0xc50be4)){const _0x5a093a=_0xc50be4['map'](V);return _0x365ca1=>_0x5a093a['some'](_0x2baf47=>_0x2baf47(_0x365ca1));}if('origin'==_0xc50be4){const _0x9e048b=_0x226396['window']['location']['origin'];return _0x2eb1dd=>new URL(_0x2eb1dd,_0x226396['document']['baseURI'])['origin']==_0x9e048b;}return'function'==typeof _0xc50be4?_0xc50be4:_0xc50be4 instanceof RegExp?_0x5d12ee=>!(!_0x5d12ee['match'](_0xc50be4)&&!_0x5d12ee['replace'](/^https?:\/\//,'')['match'](_0xc50be4)):()=>!0x1;}function F(_0x33b4ae,_0x9285c2){return _0x2c5509(_0x33b4ae['target'])['includes'](_0x9285c2);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x2b3741(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1a829e,_0x1be3d2,_0xc93bb2){super(),this['_editor']=_0x1a829e,this['_editing']=_0x1be3d2,this['_dialog']=_0x1a829e['plugins']['get'](_0x50810b),this['_api']=_0x1be3d2['ctxElement']['getAPI'](),this['_type']=_0xc93bb2,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:_0x153ac1,model:_0x212828}=this['_editor'],_0x103586=_0x212828['document']['selection']['getSelectedElement'](),_0x14e537=_0x103586&&(_0x103586['is']('element','imageBlock')||_0x103586['is']('element','imageInline'));this['_formView']=new S(_0x153ac1),this['_dialog']['show']({'id':'uploadCare','icon':_0x224c52,'title':_(_0x153ac1,this['_type'],_0x14e537?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x51031e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4988dd=>!F(_0x4988dd,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1b85b7}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x38fb11=>{const _0x645790=_0x1b85b7['length'];for(const _0x1e75dd of _0x1b85b7){const _0x12e810=_0x1e75dd===_0x1b85b7[_0x645790-0x1],{cdnUrl:_0x31f599,fileInfo:_0xb2b73b}=_0x1e75dd;if(!_0x31f599||!_0xb2b73b)continue;const {width:_0x6a49a9,height:_0x496a0c}=_0xb2b73b['imageInfo'],_0x357ceb=A(_0x31f599,_0x6a49a9,_0x496a0c),_0x447b8d=E(_0x31f599,_0x357ceb['width']),_0xfea201={'id':_0xb2b73b['uuid'],'type':'image','attributes':{'imageDimension':_0x357ceb,..._0x447b8d}};this['_insertAsset'](_0xfea201,_0x12e810,_0x38fb11);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xf25be7=>{'idle'===_0xf25be7['detail']['status']&&!_0xf25be7['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x72877,_0x480a10,_0x93e181){const _0x5de13e=this['_editor']['model']['document']['selection'],_0x4a04a3=_0x5de13e['getSelectedElement'](),_0x46e2b6=!(!_0x4a04a3||!_0x4a04a3['is']('element','imageInline'));_0x93e181['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x72877,_0x46e2b6),_0x480a10||_0x93e181['setSelection'](_0x5de13e['getLastPosition']());}['_insertImage'](_0x1adb1b,_0x135b29){const _0x1c744d=this['_editor'],{imageDimension:_0x5773e0,imageFallbackUrl:_0x1d4b4c,imageSources:_0xae41fc}=_0x1adb1b['attributes'];_0x1c744d['execute']('insertImage',{'imageType':_0x135b29?'imageInline':null,'source':{'uploadcareImageId':_0x1adb1b['id'],'src':_0x1d4b4c,'sources':_0xae41fc,..._0x5773e0}});}}class n extends _0x483aa4{['_editing'];['_controller']=null;static get['requires'](){return[_0x50810b,i];}constructor(_0x56c911){super(_0x56c911),this['_editing']=_0x56c911['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x542124){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x542124);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x4e955c,publicKey:_0x1213ab,signal:_0x333937,onProgress:_0x38d725}){return _0x2f2d3d(_0x4e955c,{'publicKey':_0x1213ab,'store':'auto','signal':_0x333937,'onProgress':_0x38d725});}static['getInfo'](_0x4f3ced,_0x39dbb7){return _0x5b83df(_0x4f3ced,_0x39dbb7);}}class p extends _0x1db71b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2fabd9,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5e0a20=this['editor'];if(!!!_0x5e0a20['config']['get']('uploadcare'))return;_0x5e0a20['plugins']['get'](_0x2fabd9)['createUploadAdapter']=_0x348314=>new x(_0x348314,_0x5e0a20),_0x5e0a20['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4cd672,{imageElement:_0x415c31,data:_0x5a803b})=>{_0x5e0a20['model']['change'](_0x3fb8c6=>{_0x3fb8c6['setAttribute']('uploadcareImageId',_0x5a803b['uploadcareImageId'],_0x415c31);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2f65ff,_0x33032c){this['loader']=_0x2f65ff,this['editor']=_0x33032c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1f806a=this['editor']['config']['get']('uploadcare.pubkey'),_0x575f29=await this['loader']['file'];return C['upload']({'file':_0x575f29,'publicKey':_0x1f806a,'signal':this['controller']['signal'],'onProgress':_0x529398=>{_0x529398&&_0x529398['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x529398['value']);}})['then'](async _0x1d58a7=>{const {imageFallbackUrl:_0x3c3d27,imageSources:_0x1e7e40}=E(_0x1d58a7['cdnUrl'],_0x1d58a7['imageInfo']['width']);return{'uploadcareImageId':_0x1d58a7['uuid'],'default':_0x3c3d27,'sources':_0x1e7e40};})['catch'](()=>{const _0x5e78df=t('Cannot\x20upload\x20file:')+('\x20'+_0x575f29['name']+'.');return Promise['reject'](_0x5e78df);});}['abort'](){this['controller']['abort']();}}class i extends _0x1db71b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x50810b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x366264=this['editor'];_0x366264['commands']['add']('uploadcare',new n(_0x366264));}['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 _0x11f3d3=_0x226396['document']['querySelector']('input[uploadcare-file-input]');_0x11f3d3&&_0x11f3d3['remove']();}),async function(_0x17d68d){const _0x2d7d4e=_0x949222([0x41,0x52,0x5a,0x30,0x53,0x55,0x6d,0x79,0x71,0x58,0x69,0x4a,0x49,0x4f,0x74,0x39,0x65,0x4b,0x63,0x43,0x67,0x47,0x6a,0x51,0x46,0x56,0x34,0x33,0x68,0x50,0x6b,0x66,0x7a,0x78,0x44,0x54,0x48,0x4c,0x37,0x32,0x45,0x72,0x59,0x6f,0x6e,0x75,0x73,0x57,0x31,0x36,0x4e,0x6c,0x77,0x42,0x76,0x4d,0x35,0x61,0x62,0x64,0x70,0x38]),_0xa03489=0x17c91055,_0x1304c2=0x17ce721d^_0xa03489,_0x13c754=window[_0x949222([0x44,0x61,0x74,0x65])][_0x949222([0x6e,0x6f,0x77])](),_0x297124=_0x17d68d[_0x949222([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x23511b=new window[(_0x949222([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b423d=>{_0x297124[_0x949222([0x6f,0x6e,0x63,0x65])](_0x949222([0x72,0x65,0x61,0x64,0x79]),_0x1b423d);}),_0x2879d9={[_0x949222([0x6b,0x74,0x79])]:_0x949222([0x45,0x43]),[_0x949222([0x75,0x73,0x65])]:_0x949222([0x73,0x69,0x67]),[_0x949222([0x63,0x72,0x76])]:_0x949222([0x50,0x2d,0x32,0x35,0x36]),[_0x949222([0x78])]:_0x949222([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]),[_0x949222([0x79])]:_0x949222([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]),[_0x949222([0x61,0x6c,0x67])]:_0x949222([0x45,0x53,0x32,0x35,0x36])},_0x12d77f=_0x297124[_0x949222([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x949222([0x67,0x65,0x74])](_0x949222([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2dfb35(){let _0x4b9f46,_0x41e796=null,_0x65ee02=null;try{if(_0x12d77f==_0x949222([0x47,0x50,0x4c]))return _0x949222([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b9f46=_0x15364a(),!_0x4b9f46)return _0x949222([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b9f46[_0x949222([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x65ee02=_0x3cf7b4(_0x4b9f46[_0x949222([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b9f46[_0x949222([0x6a,0x74,0x69])])),await _0x546101()?_0x2e2883()?_0x376195()?_0x949222([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x127b1f()?(_0x4b9f46[_0x949222([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x949222([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x41e796=_0x208e4e(_0x949222([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b9f46[_0x949222([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x949222([0x74,0x72,0x69,0x61,0x6c])&&(_0x41e796=_0x208e4e(_0x949222([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4fecb9()):_0x949222([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x949222([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x949222([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2c4cb2){return _0x949222([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x376195(){const _0x39282e=[_0x949222([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x949222([0x74,0x72,0x69,0x61,0x6c])][_0x949222([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b9f46[_0x949222([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x13c754/0x3e8:0xe10*_0x1304c2;return _0x4b9f46[_0x949222([0x65,0x78,0x70])]<_0x39282e;}function _0x2e2883(){const _0x332616=_0x4b9f46[_0x949222([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x332616&&(!!_0x332616[_0x949222([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x949222([0x2a]))||!!_0x332616[_0x949222([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x949222([0x55,0x50,0x4c,0x43])));}function _0x127b1f(){const _0x5bd986=_0x4b9f46[_0x949222([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5bd986||0x0==_0x5bd986[_0x949222([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc98458}=new URL(window[_0x949222([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5bd986[_0x949222([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc98458))return!0x0;const _0x553f4c=_0xc98458[_0x949222([0x73,0x70,0x6c,0x69,0x74])](_0x949222([0x2e]));return _0x5bd986[_0x949222([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4dd1e3=>_0x4dd1e3[_0x949222([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x949222([0x2a])))[_0x949222([0x6d,0x61,0x70])](_0xf9ef47=>_0xf9ef47[_0x949222([0x73,0x70,0x6c,0x69,0x74])](_0x949222([0x2e])))[_0x949222([0x73,0x6f,0x6d,0x65])](_0x70df8e=>_0x553f4c[_0x949222([0x65,0x76,0x65,0x72,0x79])]((_0x2d5286,_0x8df1a0)=>_0x70df8e[_0x8df1a0]===_0x2d5286||_0x70df8e[_0x8df1a0]===_0x949222([0x2a])));}function _0x4fecb9(){return _0x41e796&&_0x65ee02?new window[(_0x949222([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33009f,_0x4c973d)=>{_0x41e796[_0x949222([0x74,0x68,0x65,0x6e])](_0x33009f,_0x4c973d),_0x65ee02[_0x949222([0x74,0x68,0x65,0x6e])](_0xc8f601=>{_0xc8f601!=_0x949222([0x56,0x61,0x6c,0x69,0x64])&&_0x33009f(_0xc8f601);},_0x4c973d);}):_0x41e796||_0x65ee02||_0x949222([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3cf7b4(_0x247b86,_0x1dacce){return new window[(_0x949222([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ac8f4=>{if(_0x259817())return _0x3ac8f4(_0x949222([0x56,0x61,0x6c,0x69,0x64]));_0x3b6726(),_0x297124[_0x949222([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x949222([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x562cd5=!0x1;const _0x3023c0=_0x1728c3();function _0x53762f(_0x535201){return!!_0x535201&&(typeof _0x535201===_0x949222([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x535201===_0x949222([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x535201[_0x949222([0x74,0x68,0x65,0x6e])]===_0x949222([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x535201[_0x949222([0x63,0x61,0x74,0x63,0x68])]===_0x949222([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4bc0c6(_0x174c05){_0x31b905(_0x174c05)[_0x949222([0x74,0x68,0x65,0x6e])](_0x527c0f=>{if(!_0x527c0f||_0x527c0f[_0x949222([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x949222([0x6f,0x6b]))return _0x949222([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xccb59d(_0x5c51ed(_0x3023c0+_0x1dacce))!=_0x527c0f[_0x949222([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x949222([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x949222([0x56,0x61,0x6c,0x69,0x64]);})[_0x949222([0x74,0x68,0x65,0x6e])](_0x32238f=>(_0x204bd5(),_0x32238f),()=>{const _0x2b5587=_0x1a9d7e();return null==_0x2b5587?(_0x204bd5(),_0x949222([0x56,0x61,0x6c,0x69,0x64])):_0x949222(_0x13c754-_0x2b5587>(0x33c59455^_0xa03489)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x949222([0x74,0x68,0x65,0x6e])](_0x3ac8f4)[_0x949222([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ac8f4(_0x949222([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1accf2=0x17fffed5^_0xa03489;function _0x204bd5(){const _0x4e79a2=_0x949222([0x6c,0x6c,0x63,0x74,0x2d])+_0xccb59d(_0x5c51ed(_0x247b86)),_0x2ad05f=_0x4fdfdb(_0xccb59d(window[_0x949222([0x4d,0x61,0x74,0x68])][_0x949222([0x63,0x65,0x69,0x6c])](_0x13c754/_0x1accf2)));window[_0x949222([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x949222([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e79a2,_0x2ad05f);}function _0x1a9d7e(){const _0x38d796=_0x949222([0x6c,0x6c,0x63,0x74,0x2d])+_0xccb59d(_0x5c51ed(_0x247b86)),_0x218903=window[_0x949222([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x949222([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38d796);return _0x218903?window[_0x949222([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fdfdb(_0x218903),0x10)*_0x1accf2:null;}function _0x31b905(_0x20b5e5){return new window[(_0x949222([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d20de,_0x14996e)=>{_0x20b5e5[_0x949222([0x74,0x68,0x65,0x6e])](_0x5d20de,_0x14996e),window[_0x949222([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14996e,0x17c8c495^_0xa03489);});}}_0x297124[_0x949222([0x6f,0x6e])](_0x949222([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2e8e0f,_0xe43413)=>{if(_0xe43413[0x0]!=_0x247b86)return _0x3ac8f4(_0x949222([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe43413[0x1]={..._0xe43413[0x1],[_0x949222([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3023c0};},{[_0x949222([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x949222([0x68,0x69,0x67,0x68])}),_0x297124[_0x949222([0x6f,0x6e])](_0x949222([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1fda11=>{_0x53762f(_0x1fda11[_0x949222([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x562cd5=!0x0,_0x4bc0c6(_0x1fda11[_0x949222([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x949222([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x949222([0x6c,0x6f,0x77])}),_0x23511b[_0x949222([0x74,0x68,0x65,0x6e])](()=>{_0x562cd5||_0x3ac8f4(_0x949222([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x259817(){return _0x297124[_0x949222([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x949222([0x76,0x69,0x65,0x77])][_0x949222([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x949222([0x61,0x75,0x74,0x6f]);}function _0x3b6726(){_0x297124[_0x949222([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x949222([0x76,0x69,0x65,0x77])][_0x949222([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x949222([0x61,0x75,0x74,0x6f]);}}function _0x208e4e(_0xa9c8bf){const _0x3fe0f3=[new window[(_0x949222([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bc91c=>setTimeout(_0x3bc91c,0x17c02e99^_0xa03489)),_0x23511b[_0x949222([0x74,0x68,0x65,0x6e])](()=>new window[(_0x949222([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24c990=>{let _0x2f7ed7=0x0;_0x297124[_0x949222([0x6d,0x6f,0x64,0x65,0x6c])][_0x949222([0x6f,0x6e])](_0x949222([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x32ceab,_0x41f6c6)=>{_0x41f6c6[0x0][_0x949222([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2f7ed7++,_0x2f7ed7==(0x17c911ad^_0xa03489)&&(_0x24c990(),_0x32ceab[_0x949222([0x6f,0x66,0x66])]());});}))];return window[_0x949222([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x949222([0x72,0x61,0x63,0x65])](_0x3fe0f3)[_0x949222([0x74,0x68,0x65,0x6e])](()=>_0xa9c8bf);}async function _0x5b5c22(){await _0x23511b,_0x297124[_0x949222([0x6d,0x6f,0x64,0x65,0x6c])][_0x949222([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5aec2e,_0x297124[_0x949222([0x6d,0x6f,0x64,0x65,0x6c])][_0x949222([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5aec2e,_0x297124[_0x949222([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x949222([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xbbe635(_0x2be24c){const _0x13bf80=_0x31f106();_0x297124[_0x13bf80]=_0x949222([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2be24c,_0x2be24c!=_0x949222([0x56,0x61,0x6c,0x69,0x64])&&_0x5b5c22();}function _0x31f106(){const _0xe9a046=window[_0x949222([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x949222([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x949222([0x6e,0x6f,0x77])]())[_0x949222([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x949222([0x2e]),'');let _0x5f00c4=_0x949222([0x41]);for(let _0x41fb65=0x0;_0x41fb65<_0xe9a046[_0x949222([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x41fb65+=0x2){let _0x35f0a7=window[_0x949222([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe9a046[_0x949222([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41fb65,_0x41fb65+0x2));_0x35f0a7>=_0x2d7d4e[_0x949222([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x35f0a7-=_0x2d7d4e[_0x949222([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5f00c4+=_0x2d7d4e[_0x35f0a7];}return _0x5f00c4;}function _0x15364a(){const _0x346032=_0x12d77f[_0x949222([0x73,0x70,0x6c,0x69,0x74])](_0x949222([0x2e]));if(0x3!=_0x346032[_0x949222([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x49922d(_0x346032[0x1]);function _0x49922d(_0x54367d){const _0x2f0538=_0x2d9b65(_0x54367d);return _0x2f0538&&_0x2ede0c()?_0x2f0538:null;function _0x2ede0c(){const _0x5c4954=_0x2f0538[_0x949222([0x6a,0x74,0x69])],_0x466cb1=window[_0x949222([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c4954[_0x949222([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c4954[_0x949222([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1cf2bf={..._0x2f0538,[_0x949222([0x6a,0x74,0x69])]:_0x5c4954[_0x949222([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5c4954[_0x949222([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1cf2bf[_0x949222([0x76,0x63])],_0x5c51ed(_0x1cf2bf)==_0x466cb1;}}}async function _0x546101(){let _0x33a496=!0x0;try{const _0x4dded2=_0x12d77f[_0x949222([0x73,0x70,0x6c,0x69,0x74])](_0x949222([0x2e])),[_0x33ad22,_0x2c5104,_0x3dd608]=_0x4dded2;return _0x7ee111(_0x33ad22),await _0x262ddf(_0x33ad22,_0x2c5104,_0x3dd608),_0x33a496;}catch(_0x2674d6){return!0x1;}function _0x7ee111(_0x13e28e){const _0x46ecfc=_0x2d9b65(_0x13e28e);_0x46ecfc&&_0x46ecfc[_0x949222([0x61,0x6c,0x67])]==_0x949222([0x45,0x53,0x32,0x35,0x36])||(_0x33a496=!0x1);}async function _0x262ddf(_0x16e377,_0x54bccb,_0x59aa91){const _0x1589e3=window[_0x949222([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x949222([0x66,0x72,0x6f,0x6d])](_0x4451b7(_0x59aa91),_0x1d3eec=>_0x1d3eec[_0x949222([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4763e6=new window[(_0x949222([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x949222([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x16e377+_0x949222([0x2e])+_0x54bccb),_0x21c8dc=window[_0x949222([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x949222([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x21c8dc)return;const _0x2771cd=await _0x21c8dc[_0x949222([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x949222([0x6a,0x77,0x6b]),_0x2879d9,{[_0x949222([0x6e,0x61,0x6d,0x65])]:_0x949222([0x45,0x43,0x44,0x53,0x41]),[_0x949222([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x949222([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x949222([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x21c8dc[_0x949222([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x949222([0x6e,0x61,0x6d,0x65])]:_0x949222([0x45,0x43,0x44,0x53,0x41]),[_0x949222([0x68,0x61,0x73,0x68])]:{[_0x949222([0x6e,0x61,0x6d,0x65])]:_0x949222([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2771cd,_0x1589e3,_0x4763e6)||(_0x33a496=!0x1);}}function _0x2d9b65(_0x2a56cb){return _0x2a56cb[_0x949222([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x949222([0x65,0x79]))?JSON[_0x949222([0x70,0x61,0x72,0x73,0x65])](_0x4451b7(_0x2a56cb)):null;}function _0x4451b7(_0x3e7891){return window[_0x949222([0x61,0x74,0x6f,0x62])](_0x3e7891[_0x949222([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x949222([0x2b]))[_0x949222([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x949222([0x2f])));}function _0x5c51ed(_0x5b90a6){let _0x1a0199=0x1505;function _0x4f0fe2(_0x2b1c7d){for(let _0x265f10=0x0;_0x265f10<_0x2b1c7d[_0x949222([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x265f10++){const _0x5abc1f=_0x2b1c7d[_0x949222([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x265f10);_0x1a0199=(_0x1a0199<<0x5)+_0x1a0199+_0x5abc1f,_0x1a0199&=_0x1a0199;}}function _0xe0a2a9(_0x2ad7ce){Array[_0x949222([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ad7ce)?_0x2ad7ce[_0x949222([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xe0a2a9):_0x2ad7ce&&typeof _0x2ad7ce==_0x949222([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x949222([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ad7ce)[_0x949222([0x73,0x6f,0x72,0x74])]()[_0x949222([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3b6139,_0x5aad5e])=>{_0x4f0fe2(_0x3b6139),_0xe0a2a9(_0x5aad5e);}):_0x4f0fe2(window[_0x949222([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ad7ce));}return _0xe0a2a9(_0x5b90a6),_0x1a0199>>>0x0;}function _0xccb59d(_0x3b7be9){return _0x3b7be9[_0x949222([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x949222([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x949222([0x30]));}function _0x4fdfdb(_0x3dd231){return _0x3dd231[_0x949222([0x73,0x70,0x6c,0x69,0x74])]('')[_0x949222([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x949222([0x6a,0x6f,0x69,0x6e])]('');}function _0x5aec2e(){}function _0x949222(_0x5ad353){return _0x5ad353['map'](_0x398c12=>String['fromCharCode'](_0x398c12))['join']('');}_0xbbe635(await _0x2dfb35());}(this);}['_initSchema'](){const _0x453008=this['editor']['model']['schema'];_0x453008['isRegistered']('imageBlock')&&_0x453008['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x453008['isRegistered']('imageInline')&&_0x453008['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xcfc22=this['editor'];_0xcfc22['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xcfc22['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xddc323=>_0xddc323['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x131916=_0xcfc22['commands']['get']('replaceImageSource');_0x131916&&this['listenTo'](_0x131916,'cleanupImage',(_0x315da1,[_0x3a1002,_0x586250])=>{_0x3a1002['removeAttribute']('uploadcareImageId',_0x586250);});}['_initConfig'](){const _0x4158e5=this['editor']['config']['get']('uploadcare.uploader')||{},_0x347286=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x56a980(_0x226396['document'],'uc-config',{..._0x4158e5,'pubkey':_0x347286,'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']=_0x4e1ffa=>{if('closeMax'==_0x4e1ffa)return'#uc-icon-arrow-down';},_0x226396['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x56a980(_0x226396['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x226396['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x56f18b=this['editor']['commands']['get']('insertImage');_0x56f18b&&this['listenTo'](_0x56f18b,'execute',()=>{const _0x117484=this['editor']['model']['document']['selection']['getSelectedElement']();_0x117484&&_0x117484['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x117484);});});const _0x91b005=this['editor']['commands']['get']('uploadcareImageReplace');_0x91b005&&this['listenTo'](_0x91b005,'execute',()=>{const _0x127523=this['editor']['model']['document']['selection']['getSelectedElement']();_0x127523&&_0x127523['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x127523);});});}}class u extends _0x1db71b{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x441ca4){super(_0x441ca4),_0x441ca4['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x5e21e8['defineComponents'](_0x5e21e8);}}class ta extends _0x137075{constructor(_0xf19e9c){super(_0xf19e9c);const t=_0xf19e9c['t'],_0x22edc5=this['bindTemplate'],_0x1f3398=new _0x200ccc();_0x1f3398['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':[_0x1f3398,{'text':_0x22edc5['to']('imageUploadProgress',_0x11976d=>t('Loading\x20image...')+'\x20('+(_0x11976d||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 _0x137075{constructor(_0x5907e0){super(_0x5907e0);const t=_0x5907e0['t'];this['set']('errorType',null);const _0x31e84e=new _0x4fd5bd(_0x5907e0);_0x31e84e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x31e84e['withText']=!0x0,_0x31e84e['class']='ck-button-action',_0x31e84e['on']('execute',()=>{this['fire']('retry');}),_0x31e84e['bind']('isVisible')['to'](this,'errorType',_0x4250fc=>'NotFound'!==_0x4250fc);const _0x56a464=new at();_0x56a464['content']=et,_0x56a464['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x34f031=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':[_0x56a464,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x34f031['to']('errorType',_0x36eade=>t('NotFound'!==_0x36eade?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x31e84e]},{'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 _0x137075{constructor(_0x50a02d,_0x16ca36){super(_0x50a02d);const _0x34ac44=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x16ca36,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x34ac44['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3d5aa1,_0x30e2f9,_0x24e7ba){super(_0x3d5aa1),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x3d5aa1),this['_errorView']=new rt(_0x3d5aa1),this['_editingView']=new tt(_0x3d5aa1,_0x24e7ba),this['_focusableView']=new _0x137075(_0x3d5aa1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x30e2f9),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'],_0x33a66c=>{this['_addUploadcareImageEditorListeners'](_0x33a66c);});}),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'](_0x16b4d7,_0x552e17){const _0x5cbd78='uc-cloud-image-editor',_0x29fae4=_0x16b4d7['querySelector'](_0x5cbd78);if(_0x29fae4)return _0x552e17(_0x29fae4);const _0x2828b5=new MutationObserver(_0x5f1e70=>{const _0x2eceb=_0x5f1e70['filter'](_0x30051e=>_0x30051e['target']===_0x16b4d7&&_0x30051e['addedNodes']['length']>0x0&&_0x30051e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5cbd78);_0x2eceb['length']&&(_0x2828b5['disconnect'](),_0x552e17(_0x2eceb[0x0]['addedNodes'][0x0]));});_0x2828b5['observe'](_0x16b4d7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x205d10){_0x205d10['addEventListener']('apply',_0x48a70f=>{this['fire']('apply',{'imageSrc':_0x48a70f['detail']['cdnUrl']});}),_0x205d10['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x2b3741(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x15b22b,_0x5d4490,_0x433035){super(),this['_editor']=_0x15b22b,this['_dialog']=_0x5d4490,this['_imageElement']=_0x433035,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 _0x26b28f=this['_imageElement'],_0x387111=_0x26b28f['getAttribute']('uploadcareImageId'),_0x3f8774=_0x26b28f['getAttribute']('src');if(_0x387111)await this['_loadImageInfo'](_0x387111,_0x3f8774);else{if(this['_imageCache']['has'](_0x3f8774)){const _0x53f1ba=this['_imageCache']['get'](_0x3f8774);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x53f1ba['url'],this['imageDimension']=_0x53f1ba['dimension'],this['imageId']=_0x53f1ba['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1ca9e6}=this['_editor'],t=_0x1ca9e6['t'],_0x59608a=new Z(_0x1ca9e6,this['imageStatus'],this['_attributes']);_0x59608a['bind']('status')['to'](this,'imageStatus'),_0x59608a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x59608a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x59608a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x59608a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x24a903,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x59608a,'position':_0x51031e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x59608a['focus']();},'onHide':()=>{_0x59608a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2053b2=>!F(_0x2053b2,_0x59608a['element'])}});}['_loadImageInfo'](_0xbaf33d,_0x5c8977){return C['getInfo'](_0xbaf33d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3f73ba=>{const {width:_0x5161a3,height:_0x36c0a8}=_0x3f73ba['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5c8977,this['imageDimension']={'width':_0x5161a3,'height':_0x36c0a8},this['imageId']=_0xbaf33d;})['catch'](_0x3e0693=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3e0693['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x429612,_0x42e234){return this['_getImageAsFile'](_0x429612)['then'](_0x482a66=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x42e234['signal'],'file':_0x482a66,'onProgress':_0x19cc23=>{_0x19cc23&&_0x19cc23['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x19cc23['value']));}}))['then'](_0x4e19c1=>{const {width:_0x403dcb,height:_0x11bc97}=_0x4e19c1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4e19c1['cdnUrl'],this['imageDimension']={'width':_0x403dcb,'height':_0x11bc97},this['imageId']=_0x4e19c1['uuid'],this['imageUploadProgress']=null;const _0x7f0bb0=_0x429612['getAttribute']('src');this['_imageCache']['set'](_0x7f0bb0,{'id':_0x4e19c1['uuid'],'url':_0x4e19c1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x29e708=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x29e708['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1d764c,_0x4c6f47){_0x1d764c['on']('apply',(_0x15b34e,_0x2eb7c0)=>{this['_replaceImage'](_0x4c6f47,_0x2eb7c0['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1d764c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1d764c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x10139d,_0x660b60,_0x5bca9c){const _0x418d44=this['_editor'],{width:_0x2536f4,height:_0x16fa85}=A(_0x660b60,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x368fe1,imageSources:_0x434983}=E(_0x660b60,_0x2536f4);_0x418d44['model']['change'](_0x4099d0=>{if('$graveyard'===_0x10139d['root']['rootName']){_0x418d44['execute']('insertImage',{'imageType':_0x10139d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x10139d['getAttributes']()),'uploadcareImageId':_0x5bca9c,'src':_0x368fe1,'sources':_0x434983,'width':_0x2536f4,'height':_0x16fa85}});const _0x26c4b7=_0x10139d['getChildren']();_0x10139d=_0x418d44['model']['document']['selection']['getSelectedElement']();for(const _0x20f0d7 of _0x26c4b7)_0x4099d0['append'](_0x4099d0['cloneElement'](_0x20f0d7),_0x10139d);}else _0x4099d0['setSelection'](_0x10139d,'on'),_0x418d44['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x10139d['getAttributes']()),'uploadcareImageId':_0x5bca9c,'src':_0x368fe1,'sources':_0x434983,'width':_0x2536f4,'height':_0x16fa85},_0x10139d);_0x4099d0['setSelection'](_0x10139d,'on');});}async['_getImageAsFile'](_0x3b1047){const _0xfe5169=_0x226396['window'],_0x2c03d7=_0x226396['document']['location']['href'],_0x12f382=new _0xfe5169['URL'](_0x3b1047['getAttribute']('src'),_0x2c03d7);if('data:'===_0x12f382['protocol']){const _0x23b7ce=_0x12f382['href']['split'](','),_0x3fb3ad=_0x23b7ce[0x0]['match'](/:(.*?);/)[0x1],_0x5066fa=_0x3fb3ad['split']('/')[0x1],_0x95eeb3=_0xfe5169['atob'](_0x23b7ce[_0x23b7ce['length']-0x1]);let _0x3968c1=_0x95eeb3['length'];const _0x2002a9=new _0xfe5169['Uint8Array'](_0x3968c1);for(;_0x3968c1--;)_0x2002a9[_0x3968c1]=_0x95eeb3['charCodeAt'](_0x3968c1);return new _0xfe5169['File']([_0x2002a9],'image.'+_0x5066fa,{'type':_0x3fb3ad});}const _0x32b355=_0x12f382['href']['split']('/'),_0x20edd0=_0x32b355[_0x32b355['length']-0x1],_0x343e2f=_0x20edd0['split']('.')[0x1];return _0xfe5169['fetch'](_0x12f382['href'])['then'](_0x2e5d29=>_0x2e5d29['clone']()['blob']())['then'](_0x3b625e=>new _0xfe5169['File']([_0x3b625e],_0x20edd0,{'type':'image/'+_0x343e2f}));}}class J extends _0x483aa4{['imageEditController'];static get['requires'](){return[_0x50810b];}['_isEditable'];constructor(_0x420b27){super(_0x420b27),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x16db94){const _0x5e1d85=V(_0x16db94);return _0x66f09c=>!(!_0x66f09c||!_0x66f09c['is']('element','imageBlock')&&!_0x66f09c['is']('element','imageInline'))&&(!!_0x66f09c['hasAttribute']('uploadcareImageId')||!!_0x66f09c['hasAttribute']('src')&&_0x5e1d85(_0x66f09c['getAttribute']('src')));}(_0x420b27['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x245cb9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x245cb9);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x52e697=this['editor']['model']['document']['selection']['getSelectedElement']();_0x52e697&&(_0x52e697['is']('element','imageBlock')||_0x52e697['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x50810b),_0x52e697),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x483aa4{['refresh'](){const _0x1f78b6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1f78b6&&(_0x1f78b6['is']('element','imageBlock')||_0x1f78b6['is']('element','imageInline')));}['execute'](_0x107223){const _0x58c940=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x41d2e5=>{_0x41d2e5['setAttributes'](_0x107223,_0x58c940),_0x41d2e5['removeAttribute']('srcset',_0x58c940),_0x41d2e5['removeAttribute']('sizes',_0x58c940);});}}class g extends _0x1db71b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x184cdd,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3ef671}=this;_0x3ef671['commands']['add']('uploadcareImageEdit',new J(_0x3ef671)),_0x3ef671['commands']['add']('uploadcareImageReplace',new O(_0x3ef671));}}class j extends _0x1db71b{['_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 _0x590000=this['editor'];_0x590000['ui']['componentFactory']['add']('uploadcareImageEdit',_0xaa655f=>{const _0x1c40a0=_0x590000['commands']['get']('uploadcareImageEdit'),_0x47cebc=new _0x4fd5bd(_0xaa655f),t=_0xaa655f['t'];return _0x47cebc['set']({'icon':_0x24a903,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x47cebc['bind']('isEnabled')['to'](_0x1c40a0),_0x47cebc['bind']('isOn')['to'](_0x1c40a0,'isActive'),this['listenTo'](_0x47cebc,'execute',()=>{_0x590000['execute']('uploadcareImageEdit'),_0x590000['editing']['view']['focus']();}),_0x47cebc;}),this['_initConfig']();}['_initConfig'](){const _0x4ef7f4=_0x56a980(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4ef7f4),this['listenTo'](this['editor'],'destroy',()=>{_0x4ef7f4['remove']();});}}class P extends _0x1db71b{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-20250315.0",
3
+ "version": "0.0.0-nightly-20250316.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-20250315.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250315.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250315.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250315.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250315.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250315.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250315.0",
33
- "ckeditor5": "0.0.0-nightly-20250315.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250316.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250316.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250316.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250316.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250316.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250316.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250316.0",
33
+ "ckeditor5": "0.0.0-nightly-20250316.0",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd06d6d=_0x54f5;(function(_0x64e589,_0x2a4a0c){const _0x102ad0=_0x54f5,_0x29649f=_0x64e589();while(!![]){try{const _0x465db0=-parseInt(_0x102ad0(0x21c))/0x1*(parseInt(_0x102ad0(0x222))/0x2)+-parseInt(_0x102ad0(0x235))/0x3*(parseInt(_0x102ad0(0x1ea))/0x4)+parseInt(_0x102ad0(0x1e4))/0x5+parseInt(_0x102ad0(0x212))/0x6*(parseInt(_0x102ad0(0x204))/0x7)+parseInt(_0x102ad0(0x1e5))/0x8*(parseInt(_0x102ad0(0x22c))/0x9)+parseInt(_0x102ad0(0x232))/0xa*(parseInt(_0x102ad0(0x1f4))/0xb)+-parseInt(_0x102ad0(0x200))/0xc;if(_0x465db0===_0x2a4a0c)break;else _0x29649f['push'](_0x29649f['shift']());}catch(_0x5c60f4){_0x29649f['push'](_0x29649f['shift']());}}}(_0x1cef,0x2b925));function _0x1cef(){const _0x5ca3e2=['_initSchema','58448kiOvfz','getAttribute','schema','replaceImageSource','_initConfig','config','elementToAttribute','selection','isPremiumPlugin','get','43714CdgYWx','model','href','map','fromCharCode','uc-upload-ctx-provider','add','commands','extend','body','imageBlock','uploadcareImageId','3697392bFwgFj','once','isRegistered','_ctxElement','14xwRdvb','execute','conversion','view','afterInit','imageInline','downcast','uc-config','cleanupImage','uploadcareImageReplace','editing','configElement','pluginName','remove','465408RyebZK','insertImage','true','document','removeAttribute','iconHrefResolver','for','listenTo','appendChild','\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','3RHXZqG','destroy','ctxElement','input[uploadcare-file-input]','_initConversion','isOfficialPlugin','144562xOGSkR','PictureEditing','attributeToAttribute','getSelectedElement','join','UploadcareEditing','closeMax','requires','init','_initCtx','18ucwgSA','locale','_initImageProcessingIndicator','contentLanguage','uploadcare.pubkey','render','890ruHyUo','editor','#uc-icon-arrow-down','9KiysxO','upcast','data-uc-image-id','_configElement','uploader','238310CpNDVU','763120vRiTKd','uploadcare.uploader','uploadcare','querySelector'];_0x1cef=function(){return _0x5ca3e2;};return _0x1cef();}import{Plugin as _0x4091fb}from'ckeditor5/src/core.js';function _0x54f5(_0x1d765d,_0x324807){const _0x1cef28=_0x1cef();return _0x54f5=function(_0x54f5a9,_0x1ce8b1){_0x54f5a9=_0x54f5a9-0x1e2;let _0x3e1d67=_0x1cef28[_0x54f5a9];return _0x3e1d67;},_0x54f5(_0x1d765d,_0x324807);}import{Dialog as _0x1f51ea}from'ckeditor5/src/ui.js';import{createElement as _0x4faf68,global as _0x454713,uid as _0x47d84a}from'ckeditor5/src/utils.js';import _0xd0cf8b from'./uploadcarecommand.js';import _0x343b52 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x19b6f4}from'./utils/editingutils.js';export default class i extends _0x4091fb{[_0xd06d6d(0x1e2)]=null;[_0xd06d6d(0x203)]=null;static get[_0xd06d6d(0x210)](){const _0x3935c4=_0xd06d6d;return _0x3935c4(0x227);}static get[_0xd06d6d(0x229)](){const _0x364030=_0xd06d6d;return[_0x364030(0x223),_0x343b52,_0x1f51ea];}static get[_0xd06d6d(0x221)](){return!0x0;}static get[_0xd06d6d(0x1f2)](){return!0x0;}get[_0xd06d6d(0x20f)](){const _0x3b4473=_0xd06d6d;return this[_0x3b4473(0x1e2)];}get[_0xd06d6d(0x21e)](){const _0x305649=_0xd06d6d;return this[_0x305649(0x203)];}[_0xd06d6d(0x22a)](){const _0x4785b1=_0xd06d6d,_0x382248=this[_0x4785b1(0x233)];_0x382248[_0x4785b1(0x1fb)][_0x4785b1(0x1fa)](_0x4785b1(0x1e7),new _0xd0cf8b(_0x382248));}[_0xd06d6d(0x208)](){const _0x4485bb=_0xd06d6d;this[_0x4485bb(0x1e9)](),this[_0x4485bb(0x220)](),this[_0x4485bb(0x1ee)](),this[_0x4485bb(0x22b)](),this[_0x4485bb(0x22e)](),this[_0x4485bb(0x219)](this[_0x4485bb(0x233)],_0x4485bb(0x21d),()=>{const _0x1a8791=_0x4485bb;this[_0x1a8791(0x1e2)]&&(this[_0x1a8791(0x1e2)][_0x1a8791(0x211)](),this[_0x1a8791(0x1e2)]=null),this[_0x1a8791(0x203)]&&(this[_0x1a8791(0x203)][_0x1a8791(0x211)](),this[_0x1a8791(0x203)]=null);const _0x1ea530=_0x454713[_0x1a8791(0x215)][_0x1a8791(0x1e8)](_0x1a8791(0x21f));_0x1ea530&&_0x1ea530[_0x1a8791(0x211)]();}),async function(_0x4c0627){const _0x4da304=_0x261655([0x6e,0x4e,0x57,0x79,0x6a,0x6d,0x4d,0x4b,0x50,0x68,0x75,0x52,0x42,0x59,0x47,0x5a,0x70,0x64,0x51,0x43,0x6b,0x44,0x71,0x69,0x4a,0x4f,0x65,0x63,0x58,0x6f,0x76,0x35,0x39,0x34,0x73,0x53,0x46,0x31,0x56,0x30,0x32,0x77,0x33,0x37,0x62,0x4c,0x78,0x38,0x41,0x67,0x61,0x7a,0x54,0x74,0x45,0x36,0x6c,0x55,0x49,0x66,0x48,0x72]),_0x180071=0x2b8ef94d,_0x399843=0x2b899b7d^_0x180071,_0xa8df18=window[_0x261655([0x44,0x61,0x74,0x65])][_0x261655([0x6e,0x6f,0x77])](),_0x5a1f51=_0x4c0627[_0x261655([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b9ec4=new window[(_0x261655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x410d3a=>{_0x5a1f51[_0x261655([0x6f,0x6e,0x63,0x65])](_0x261655([0x72,0x65,0x61,0x64,0x79]),_0x410d3a);}),_0x3ca810={[_0x261655([0x6b,0x74,0x79])]:_0x261655([0x45,0x43]),[_0x261655([0x75,0x73,0x65])]:_0x261655([0x73,0x69,0x67]),[_0x261655([0x63,0x72,0x76])]:_0x261655([0x50,0x2d,0x32,0x35,0x36]),[_0x261655([0x78])]:_0x261655([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]),[_0x261655([0x79])]:_0x261655([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]),[_0x261655([0x61,0x6c,0x67])]:_0x261655([0x45,0x53,0x32,0x35,0x36])},_0x203769=_0x5a1f51[_0x261655([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x261655([0x67,0x65,0x74])](_0x261655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3147fb(){let _0x47f462,_0x5e9525=null,_0x35e594=null;try{if(_0x203769==_0x261655([0x47,0x50,0x4c]))return _0x261655([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47f462=_0x2d9ac8(),!_0x47f462)return _0x261655([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x47f462[_0x261655([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x35e594=_0x17e4d0(_0x47f462[_0x261655([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47f462[_0x261655([0x6a,0x74,0x69])])),await _0x189a68()?_0x5e0fc2()?_0x490f64()?_0x261655([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b76c5()?(_0x47f462[_0x261655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x261655([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e9525=_0x467844(_0x261655([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x47f462[_0x261655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x261655([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e9525=_0x467844(_0x261655([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x18256b()):_0x261655([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x261655([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x261655([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x114ae0){return _0x261655([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x490f64(){const _0x3a2210=[_0x261655([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x261655([0x74,0x72,0x69,0x61,0x6c])][_0x261655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47f462[_0x261655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa8df18/0x3e8:0xe10*_0x399843;return _0x47f462[_0x261655([0x65,0x78,0x70])]<_0x3a2210;}function _0x5e0fc2(){const _0x1b0b7a=_0x47f462[_0x261655([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b0b7a&&(!!_0x1b0b7a[_0x261655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x261655([0x2a]))||!!_0x1b0b7a[_0x261655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x261655([0x55,0x50,0x4c,0x43])));}function _0x2b76c5(){const _0x5c6da6=_0x54f5,_0x498ad6=_0x47f462[_0x261655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x498ad6||0x0==_0x498ad6[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x34a360}=new URL(window[_0x261655([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5c6da6(0x1f6)]);if(_0x498ad6[_0x261655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34a360))return!0x0;const _0x53cf1f=_0x34a360[_0x261655([0x73,0x70,0x6c,0x69,0x74])](_0x261655([0x2e]));return _0x498ad6[_0x261655([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x435323=>_0x435323[_0x261655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x261655([0x2a])))[_0x261655([0x6d,0x61,0x70])](_0x30878f=>_0x30878f[_0x261655([0x73,0x70,0x6c,0x69,0x74])](_0x261655([0x2e])))[_0x261655([0x73,0x6f,0x6d,0x65])](_0x258fd5=>_0x53cf1f[_0x261655([0x65,0x76,0x65,0x72,0x79])]((_0x2eac5e,_0x4f21a7)=>_0x258fd5[_0x4f21a7]===_0x2eac5e||_0x258fd5[_0x4f21a7]===_0x261655([0x2a])));}function _0x18256b(){return _0x5e9525&&_0x35e594?new window[(_0x261655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19b2e3,_0x23e000)=>{_0x5e9525[_0x261655([0x74,0x68,0x65,0x6e])](_0x19b2e3,_0x23e000),_0x35e594[_0x261655([0x74,0x68,0x65,0x6e])](_0x4782f9=>{_0x4782f9!=_0x261655([0x56,0x61,0x6c,0x69,0x64])&&_0x19b2e3(_0x4782f9);},_0x23e000);}):_0x5e9525||_0x35e594||_0x261655([0x56,0x61,0x6c,0x69,0x64]);}}function _0x17e4d0(_0x431c13,_0x221d6b){return new window[(_0x261655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d4fe2=>{if(_0x53371())return _0x2d4fe2(_0x261655([0x56,0x61,0x6c,0x69,0x64]));_0x1cdbf0(),_0x5a1f51[_0x261655([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x261655([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x9cf49b=!0x1;const _0xc890e0=_0x47d84a();function _0x2ceda8(_0x2af53e){return!!_0x2af53e&&(typeof _0x2af53e===_0x261655([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2af53e===_0x261655([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2af53e[_0x261655([0x74,0x68,0x65,0x6e])]===_0x261655([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2af53e[_0x261655([0x63,0x61,0x74,0x63,0x68])]===_0x261655([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xd16494(_0x350200){_0x37ab3d(_0x350200)[_0x261655([0x74,0x68,0x65,0x6e])](_0x5ed179=>{if(!_0x5ed179||_0x5ed179[_0x261655([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x261655([0x6f,0x6b]))return _0x261655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3f7b15(_0x2ddb98(_0xc890e0+_0x221d6b))!=_0x5ed179[_0x261655([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x261655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x261655([0x56,0x61,0x6c,0x69,0x64]);})[_0x261655([0x74,0x68,0x65,0x6e])](_0x2aadf2=>(_0x54ab65(),_0x2aadf2),()=>{const _0x31882e=_0x17d90e();return null==_0x31882e?(_0x54ab65(),_0x261655([0x56,0x61,0x6c,0x69,0x64])):_0x261655(_0xa8df18-_0x31882e>(0xf827d4d^_0x180071)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x261655([0x74,0x68,0x65,0x6e])](_0x2d4fe2)[_0x261655([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2d4fe2(_0x261655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12a3c5=0x2bb817cd^_0x180071;function _0x54ab65(){const _0x4baba3=_0x261655([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f7b15(_0x2ddb98(_0x431c13)),_0x2e1974=_0x5a5e4f(_0x3f7b15(window[_0x261655([0x4d,0x61,0x74,0x68])][_0x261655([0x63,0x65,0x69,0x6c])](_0xa8df18/_0x12a3c5)));window[_0x261655([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x261655([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4baba3,_0x2e1974);}function _0x17d90e(){const _0x3b9bfc=_0x261655([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f7b15(_0x2ddb98(_0x431c13)),_0x2d1f7a=window[_0x261655([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x261655([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b9bfc);return _0x2d1f7a?window[_0x261655([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a5e4f(_0x2d1f7a),0x10)*_0x12a3c5:null;}function _0x37ab3d(_0x52df66){return new window[(_0x261655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x527212,_0x255edc)=>{_0x52df66[_0x261655([0x74,0x68,0x65,0x6e])](_0x527212,_0x255edc),window[_0x261655([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x255edc,0x2b8f2d8d^_0x180071);});}}_0x5a1f51[_0x261655([0x6f,0x6e])](_0x261655([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x298ae2,_0xfbcd8c)=>{if(_0xfbcd8c[0x0]!=_0x431c13)return _0x2d4fe2(_0x261655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xfbcd8c[0x1]={..._0xfbcd8c[0x1],[_0x261655([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xc890e0};},{[_0x261655([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x261655([0x68,0x69,0x67,0x68])}),_0x5a1f51[_0x261655([0x6f,0x6e])](_0x261655([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x36ee06=>{_0x2ceda8(_0x36ee06[_0x261655([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x9cf49b=!0x0,_0xd16494(_0x36ee06[_0x261655([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x261655([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x261655([0x6c,0x6f,0x77])}),_0x2b9ec4[_0x261655([0x74,0x68,0x65,0x6e])](()=>{_0x9cf49b||_0x2d4fe2(_0x261655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x53371(){return _0x5a1f51[_0x261655([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x261655([0x76,0x69,0x65,0x77])][_0x261655([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x261655([0x61,0x75,0x74,0x6f]);}function _0x1cdbf0(){_0x5a1f51[_0x261655([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x261655([0x76,0x69,0x65,0x77])][_0x261655([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x261655([0x61,0x75,0x74,0x6f]);}}function _0x467844(_0x194b6d){const _0x36f934=[new window[(_0x261655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57f5de=>setTimeout(_0x57f5de,0x2b87c781^_0x180071)),_0x2b9ec4[_0x261655([0x74,0x68,0x65,0x6e])](()=>new window[(_0x261655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c3c2d=>{let _0x3b78ef=0x0;_0x5a1f51[_0x261655([0x6d,0x6f,0x64,0x65,0x6c])][_0x261655([0x6f,0x6e])](_0x261655([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d8055,_0x22c3b4)=>{_0x22c3b4[0x0][_0x261655([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3b78ef++,_0x3b78ef==(0x2b8ef8b5^_0x180071)&&(_0x4c3c2d(),_0x4d8055[_0x261655([0x6f,0x66,0x66])]());});}))];return window[_0x261655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x261655([0x72,0x61,0x63,0x65])](_0x36f934)[_0x261655([0x74,0x68,0x65,0x6e])](()=>_0x194b6d);}async function _0x566b46(){await _0x2b9ec4,_0x5a1f51[_0x261655([0x6d,0x6f,0x64,0x65,0x6c])][_0x261655([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3abf4b,_0x5a1f51[_0x261655([0x6d,0x6f,0x64,0x65,0x6c])][_0x261655([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3abf4b,_0x5a1f51[_0x261655([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x261655([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e3982(_0x2db38b){const _0x1e64ee=_0x2c2dc0();_0x5a1f51[_0x1e64ee]=_0x261655([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2db38b,_0x2db38b!=_0x261655([0x56,0x61,0x6c,0x69,0x64])&&_0x566b46();}function _0x2c2dc0(){const _0x344543=window[_0x261655([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x261655([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x261655([0x6e,0x6f,0x77])]())[_0x261655([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x261655([0x2e]),'');let _0x54ee06=_0x261655([0x6e]);for(let _0x46ae10=0x0;_0x46ae10<_0x344543[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46ae10+=0x2){let _0x34caac=window[_0x261655([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x344543[_0x261655([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46ae10,_0x46ae10+0x2));_0x34caac>=_0x4da304[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x34caac-=_0x4da304[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x54ee06+=_0x4da304[_0x34caac];}return _0x54ee06;}function _0x2d9ac8(){const _0x409e80=_0x203769[_0x261655([0x73,0x70,0x6c,0x69,0x74])](_0x261655([0x2e]));if(0x3!=_0x409e80[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4d163b(_0x409e80[0x1]);function _0x4d163b(_0x4e404e){const _0x360186=_0x3f8662(_0x4e404e);return _0x360186&&_0x5838f4()?_0x360186:null;function _0x5838f4(){const _0x2be33e=_0x360186[_0x261655([0x6a,0x74,0x69])],_0x4a5daf=window[_0x261655([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2be33e[_0x261655([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2be33e[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x158cbf={..._0x360186,[_0x261655([0x6a,0x74,0x69])]:_0x2be33e[_0x261655([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2be33e[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x158cbf[_0x261655([0x76,0x63])],_0x2ddb98(_0x158cbf)==_0x4a5daf;}}}async function _0x189a68(){let _0x1a6295=!0x0;try{const _0x11706e=_0x203769[_0x261655([0x73,0x70,0x6c,0x69,0x74])](_0x261655([0x2e])),[_0x35a0d4,_0x3e8f7c,_0x381672]=_0x11706e;return _0x1c0dee(_0x35a0d4),await _0x113140(_0x35a0d4,_0x3e8f7c,_0x381672),_0x1a6295;}catch(_0x1a4db2){return!0x1;}function _0x1c0dee(_0x5da90e){const _0x549de4=_0x3f8662(_0x5da90e);_0x549de4&&_0x549de4[_0x261655([0x61,0x6c,0x67])]==_0x261655([0x45,0x53,0x32,0x35,0x36])||(_0x1a6295=!0x1);}async function _0x113140(_0x5b15ed,_0x128bfc,_0x45b599){const _0x44baed=window[_0x261655([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x261655([0x66,0x72,0x6f,0x6d])](_0x3339f3(_0x45b599),_0x58c454=>_0x58c454[_0x261655([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x25536a=new window[(_0x261655([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x261655([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b15ed+_0x261655([0x2e])+_0x128bfc),_0x2d881c=window[_0x261655([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x261655([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d881c)return;const _0x434fc8=await _0x2d881c[_0x261655([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x261655([0x6a,0x77,0x6b]),_0x3ca810,{[_0x261655([0x6e,0x61,0x6d,0x65])]:_0x261655([0x45,0x43,0x44,0x53,0x41]),[_0x261655([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x261655([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x261655([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d881c[_0x261655([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x261655([0x6e,0x61,0x6d,0x65])]:_0x261655([0x45,0x43,0x44,0x53,0x41]),[_0x261655([0x68,0x61,0x73,0x68])]:{[_0x261655([0x6e,0x61,0x6d,0x65])]:_0x261655([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x434fc8,_0x44baed,_0x25536a)||(_0x1a6295=!0x1);}}function _0x3f8662(_0x13d1a9){return _0x13d1a9[_0x261655([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x261655([0x65,0x79]))?JSON[_0x261655([0x70,0x61,0x72,0x73,0x65])](_0x3339f3(_0x13d1a9)):null;}function _0x3339f3(_0x18f3d6){return window[_0x261655([0x61,0x74,0x6f,0x62])](_0x18f3d6[_0x261655([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x261655([0x2b]))[_0x261655([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x261655([0x2f])));}function _0x2ddb98(_0x2b58e3){let _0x586876=0x1505;function _0x5d10e3(_0x5e8050){for(let _0x4c9d7a=0x0;_0x4c9d7a<_0x5e8050[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c9d7a++){const _0x17f9bf=_0x5e8050[_0x261655([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c9d7a);_0x586876=(_0x586876<<0x5)+_0x586876+_0x17f9bf,_0x586876&=_0x586876;}}function _0x3b88c8(_0x2280df){Array[_0x261655([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2280df)?_0x2280df[_0x261655([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3b88c8):_0x2280df&&typeof _0x2280df==_0x261655([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x261655([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2280df)[_0x261655([0x73,0x6f,0x72,0x74])]()[_0x261655([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x417263,_0x464001])=>{_0x5d10e3(_0x417263),_0x3b88c8(_0x464001);}):_0x5d10e3(window[_0x261655([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2280df));}return _0x3b88c8(_0x2b58e3),_0x586876>>>0x0;}function _0x3f7b15(_0x1797e5){return _0x1797e5[_0x261655([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x261655([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x261655([0x30]));}function _0x5a5e4f(_0x2874ad){return _0x2874ad[_0x261655([0x73,0x70,0x6c,0x69,0x74])]('')[_0x261655([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x261655([0x6a,0x6f,0x69,0x6e])]('');}function _0x3abf4b(){}function _0x261655(_0x1af18f){const _0x1dc444=_0x54f5;return _0x1af18f[_0x1dc444(0x1f7)](_0x2216f3=>String[_0x1dc444(0x1f8)](_0x2216f3))[_0x1dc444(0x226)]('');}_0x1e3982(await _0x3147fb());}(this);}[_0xd06d6d(0x1e9)](){const _0x925a85=_0xd06d6d,_0x4e67ff=this[_0x925a85(0x233)][_0x925a85(0x1f5)][_0x925a85(0x1ec)];_0x4e67ff[_0x925a85(0x202)](_0x925a85(0x1fe))&&_0x4e67ff[_0x925a85(0x1fc)](_0x925a85(0x1fe),{'allowAttributes':[_0x925a85(0x1ff)]}),_0x4e67ff[_0x925a85(0x202)](_0x925a85(0x209))&&_0x4e67ff[_0x925a85(0x1fc)](_0x925a85(0x209),{'allowAttributes':[_0x925a85(0x1ff)]});}[_0xd06d6d(0x220)](){const _0x4e569c=_0xd06d6d,_0x2e786e=this[_0x4e569c(0x233)];_0x2e786e[_0x4e569c(0x206)][_0x4e569c(0x218)](_0x4e569c(0x20a))[_0x4e569c(0x224)]({'model':_0x4e569c(0x1ff),'view':_0x4e569c(0x237)}),_0x2e786e[_0x4e569c(0x206)][_0x4e569c(0x218)](_0x4e569c(0x236))[_0x4e569c(0x1f0)]({'model':{'key':_0x4e569c(0x1ff),'value':_0x88f58f=>_0x88f58f[_0x4e569c(0x1eb)](_0x4e569c(0x237))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2f20c2=_0x2e786e[_0x4e569c(0x1fb)][_0x4e569c(0x1f3)](_0x4e569c(0x1ed));_0x2f20c2&&this[_0x4e569c(0x219)](_0x2f20c2,_0x4e569c(0x20c),(_0xfa0ffa,[_0x2bba40,_0x62bd19])=>{const _0x3d49bb=_0x4e569c;_0x2bba40[_0x3d49bb(0x216)](_0x3d49bb(0x1ff),_0x62bd19);});}[_0xd06d6d(0x1ee)](){const _0x5befa2=_0xd06d6d,_0x453375=this[_0x5befa2(0x233)][_0x5befa2(0x1ef)][_0x5befa2(0x1f3)](_0x5befa2(0x1e6))||{},_0x24ae4e=this[_0x5befa2(0x233)][_0x5befa2(0x1ef)][_0x5befa2(0x1f3)](_0x5befa2(0x230))||'';this[_0x5befa2(0x1e2)]=_0x4faf68(_0x454713[_0x5befa2(0x215)],_0x5befa2(0x20b),{..._0x453375,'pubkey':_0x24ae4e,'ctx-name':_0x5befa2(0x1e3),'sourceList':'','imgOnly':_0x5befa2(0x214),'removeCopyright':_0x5befa2(0x214),'localeName':this[_0x5befa2(0x233)][_0x5befa2(0x22d)][_0x5befa2(0x22f)],'externalSourcesEmbedCss':_0x5befa2(0x21b)}),this[_0x5befa2(0x1e2)][_0x5befa2(0x217)]=_0x4b0223=>{const _0x25fcf6=_0x5befa2;if(_0x25fcf6(0x228)==_0x4b0223)return _0x25fcf6(0x234);},_0x454713[_0x5befa2(0x215)][_0x5befa2(0x1fd)][_0x5befa2(0x21a)](this[_0x5befa2(0x1e2)]);}[_0xd06d6d(0x22b)](){const _0x4aa3cb=_0xd06d6d;this[_0x4aa3cb(0x203)]=_0x4faf68(_0x454713[_0x4aa3cb(0x215)],_0x4aa3cb(0x1f9),{'ctx-name':_0x4aa3cb(0x1e3)}),_0x454713[_0x4aa3cb(0x215)][_0x4aa3cb(0x1fd)][_0x4aa3cb(0x21a)](this[_0x4aa3cb(0x203)]);}[_0xd06d6d(0x22e)](){const _0x2c96ea=_0xd06d6d,_0x266fa2=this[_0x2c96ea(0x233)][_0x2c96ea(0x1fb)][_0x2c96ea(0x1f3)](_0x2c96ea(0x213));_0x266fa2&&this[_0x2c96ea(0x219)](_0x266fa2,_0x2c96ea(0x205),()=>{const _0x4f12ff=_0x2c96ea,_0x3f7bce=this[_0x4f12ff(0x233)][_0x4f12ff(0x1f5)][_0x4f12ff(0x215)][_0x4f12ff(0x1f1)][_0x4f12ff(0x225)]();_0x3f7bce&&_0x3f7bce[_0x4f12ff(0x1eb)](_0x4f12ff(0x1ff))&&this[_0x4f12ff(0x233)][_0x4f12ff(0x20e)][_0x4f12ff(0x207)][_0x4f12ff(0x201)](_0x4f12ff(0x231),()=>{const _0x230a77=_0x4f12ff;_0x19b6f4(this[_0x230a77(0x233)],_0x3f7bce);});});const _0x2f3c4d=this[_0x2c96ea(0x233)][_0x2c96ea(0x1fb)][_0x2c96ea(0x1f3)](_0x2c96ea(0x20d));_0x2f3c4d&&this[_0x2c96ea(0x219)](_0x2f3c4d,_0x2c96ea(0x205),()=>{const _0x6ea86d=_0x2c96ea,_0x3fcc81=this[_0x6ea86d(0x233)][_0x6ea86d(0x1f5)][_0x6ea86d(0x215)][_0x6ea86d(0x1f1)][_0x6ea86d(0x225)]();_0x3fcc81&&_0x3fcc81[_0x6ea86d(0x1eb)](_0x6ea86d(0x1ff))&&this[_0x6ea86d(0x233)][_0x6ea86d(0x20e)][_0x6ea86d(0x207)][_0x6ea86d(0x201)](_0x6ea86d(0x231),()=>{const _0x207c4c=_0x6ea86d;_0x19b6f4(this[_0x207c4c(0x233)],_0x3fcc81);});});}}
23
+ const _0x1f1f94=_0x5a8f;(function(_0x2ec900,_0x33b9b4){const _0x1d0f29=_0x5a8f,_0x300701=_0x2ec900();while(!![]){try{const _0x1faf27=parseInt(_0x1d0f29(0x11a))/0x1*(-parseInt(_0x1d0f29(0x12a))/0x2)+-parseInt(_0x1d0f29(0x111))/0x3+parseInt(_0x1d0f29(0x10f))/0x4*(-parseInt(_0x1d0f29(0x124))/0x5)+-parseInt(_0x1d0f29(0x14b))/0x6*(-parseInt(_0x1d0f29(0x125))/0x7)+parseInt(_0x1d0f29(0x120))/0x8*(-parseInt(_0x1d0f29(0x106))/0x9)+parseInt(_0x1d0f29(0x102))/0xa+-parseInt(_0x1d0f29(0x108))/0xb*(-parseInt(_0x1d0f29(0x14f))/0xc);if(_0x1faf27===_0x33b9b4)break;else _0x300701['push'](_0x300701['shift']());}catch(_0x58ad61){_0x300701['push'](_0x300701['shift']());}}}(_0x32fb,0x4c52a));function _0x5a8f(_0x58a999,_0x5b3612){const _0x32fbc1=_0x32fb();return _0x5a8f=function(_0x5a8f05,_0x525c74){_0x5a8f05=_0x5a8f05-0x101;let _0x3449d7=_0x32fbc1[_0x5a8f05];return _0x3449d7;},_0x5a8f(_0x58a999,_0x5b3612);}function _0x32fb(){const _0x504323=['_initConversion','getAttribute','appendChild','\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','isRegistered','5fTSJLI','commands','requires','cleanupImage','for','contentLanguage','67072mzqTLW','configElement','editor','extend','25GryfTJ','77kyeLIs','body','uploadcareImageId','uploader','replaceImageSource','46238mUzrQI','upcast','imageBlock','destroy','locale','_ctxElement','_configElement','input[uploadcare-file-input]','querySelector','PictureEditing','fromCharCode','document','uc-upload-ctx-provider','iconHrefResolver','schema','selection','uploadcare.uploader','closeMax','editing','data-uc-image-id','view','attributeToAttribute','render','conversion','uploadcare','getSelectedElement','downcast','removeAttribute','model','map','join','true','remove','10182lvmNhn','isOfficialPlugin','uc-config','get','7707516onNgnC','_initConfig','afterInit','add','_initImageProcessingIndicator','ctxElement','href','execute','isPremiumPlugin','4998720VoFOOa','listenTo','once','pluginName','27vbVSrd','uploadcareImageReplace','11PnrCVL','insertImage','init','uploadcare.pubkey','config','elementToAttribute','#uc-icon-arrow-down','183364hPrYVm','UploadcareEditing','1434786JFCKZY','imageInline','_initCtx','_initSchema'];_0x32fb=function(){return _0x504323;};return _0x32fb();}import{Plugin as _0x5019a9}from'ckeditor5/src/core.js';import{Dialog as _0x2a6f70}from'ckeditor5/src/ui.js';import{createElement as _0x56c3f1,global as _0x5b4933,uid as _0x20bfbb}from'ckeditor5/src/utils.js';import _0xb6d3c8 from'./uploadcarecommand.js';import _0x213a98 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1c2cd4}from'./utils/editingutils.js';export default class i extends _0x5019a9{[_0x1f1f94(0x130)]=null;[_0x1f1f94(0x12f)]=null;static get[_0x1f1f94(0x105)](){const _0x14db16=_0x1f1f94;return _0x14db16(0x110);}static get[_0x1f1f94(0x11c)](){const _0xd2294d=_0x1f1f94;return[_0xd2294d(0x133),_0x213a98,_0x2a6f70];}static get[_0x1f1f94(0x14c)](){return!0x0;}static get[_0x1f1f94(0x101)](){return!0x0;}get[_0x1f1f94(0x121)](){const _0x41c4ee=_0x1f1f94;return this[_0x41c4ee(0x130)];}get[_0x1f1f94(0x154)](){const _0x2c6bde=_0x1f1f94;return this[_0x2c6bde(0x12f)];}[_0x1f1f94(0x10a)](){const _0x48a0c8=_0x1f1f94,_0x36ffc2=this[_0x48a0c8(0x122)];_0x36ffc2[_0x48a0c8(0x11b)][_0x48a0c8(0x152)](_0x48a0c8(0x142),new _0xb6d3c8(_0x36ffc2));}[_0x1f1f94(0x151)](){const _0x2ad644=_0x1f1f94;this[_0x2ad644(0x114)](),this[_0x2ad644(0x115)](),this[_0x2ad644(0x150)](),this[_0x2ad644(0x113)](),this[_0x2ad644(0x153)](),this[_0x2ad644(0x103)](this[_0x2ad644(0x122)],_0x2ad644(0x12d),()=>{const _0x395700=_0x2ad644;this[_0x395700(0x130)]&&(this[_0x395700(0x130)][_0x395700(0x14a)](),this[_0x395700(0x130)]=null),this[_0x395700(0x12f)]&&(this[_0x395700(0x12f)][_0x395700(0x14a)](),this[_0x395700(0x12f)]=null);const _0x38804e=_0x5b4933[_0x395700(0x135)][_0x395700(0x132)](_0x395700(0x131));_0x38804e&&_0x38804e[_0x395700(0x14a)]();}),async function(_0xac9f31){const _0x4b5d2d=_0x4adb5a([0x41,0x52,0x5a,0x30,0x53,0x55,0x6d,0x79,0x71,0x58,0x69,0x4a,0x49,0x4f,0x74,0x39,0x65,0x4b,0x63,0x43,0x67,0x47,0x6a,0x51,0x46,0x56,0x34,0x33,0x68,0x50,0x6b,0x66,0x7a,0x78,0x44,0x54,0x48,0x4c,0x37,0x32,0x45,0x72,0x59,0x6f,0x6e,0x75,0x73,0x57,0x31,0x36,0x4e,0x6c,0x77,0x42,0x76,0x4d,0x35,0x61,0x62,0x64,0x70,0x38]),_0x3aa768=0x17c91055,_0x5da6c2=0x17ce721d^_0x3aa768,_0x117130=window[_0x4adb5a([0x44,0x61,0x74,0x65])][_0x4adb5a([0x6e,0x6f,0x77])](),_0x303627=_0xac9f31[_0x4adb5a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x325433=new window[(_0x4adb5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c2fd1=>{_0x303627[_0x4adb5a([0x6f,0x6e,0x63,0x65])](_0x4adb5a([0x72,0x65,0x61,0x64,0x79]),_0x5c2fd1);}),_0x4b8bc2={[_0x4adb5a([0x6b,0x74,0x79])]:_0x4adb5a([0x45,0x43]),[_0x4adb5a([0x75,0x73,0x65])]:_0x4adb5a([0x73,0x69,0x67]),[_0x4adb5a([0x63,0x72,0x76])]:_0x4adb5a([0x50,0x2d,0x32,0x35,0x36]),[_0x4adb5a([0x78])]:_0x4adb5a([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]),[_0x4adb5a([0x79])]:_0x4adb5a([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]),[_0x4adb5a([0x61,0x6c,0x67])]:_0x4adb5a([0x45,0x53,0x32,0x35,0x36])},_0x14c720=_0x303627[_0x4adb5a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4adb5a([0x67,0x65,0x74])](_0x4adb5a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x46f333(){let _0x3e4c47,_0x18d8c5=null,_0x11a44d=null;try{if(_0x14c720==_0x4adb5a([0x47,0x50,0x4c]))return _0x4adb5a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e4c47=_0x256be9(),!_0x3e4c47)return _0x4adb5a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e4c47[_0x4adb5a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x11a44d=_0xea0279(_0x3e4c47[_0x4adb5a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e4c47[_0x4adb5a([0x6a,0x74,0x69])])),await _0x4865e0()?_0x4392ea()?_0x4d3d91()?_0x4adb5a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x12222f()?(_0x3e4c47[_0x4adb5a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4adb5a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x18d8c5=_0x33b9b3(_0x4adb5a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3e4c47[_0x4adb5a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4adb5a([0x74,0x72,0x69,0x61,0x6c])&&(_0x18d8c5=_0x33b9b3(_0x4adb5a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x453461()):_0x4adb5a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4adb5a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4adb5a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x20470f){return _0x4adb5a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d3d91(){const _0x309608=[_0x4adb5a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4adb5a([0x74,0x72,0x69,0x61,0x6c])][_0x4adb5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e4c47[_0x4adb5a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x117130/0x3e8:0xe10*_0x5da6c2;return _0x3e4c47[_0x4adb5a([0x65,0x78,0x70])]<_0x309608;}function _0x4392ea(){const _0x253499=_0x3e4c47[_0x4adb5a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x253499&&(!!_0x253499[_0x4adb5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4adb5a([0x2a]))||!!_0x253499[_0x4adb5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4adb5a([0x55,0x50,0x4c,0x43])));}function _0x12222f(){const _0x3cb071=_0x5a8f,_0x4ffe01=_0x3e4c47[_0x4adb5a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ffe01||0x0==_0x4ffe01[_0x4adb5a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xcb447e}=new URL(window[_0x4adb5a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3cb071(0x155)]);if(_0x4ffe01[_0x4adb5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcb447e))return!0x0;const _0x6a127a=_0xcb447e[_0x4adb5a([0x73,0x70,0x6c,0x69,0x74])](_0x4adb5a([0x2e]));return _0x4ffe01[_0x4adb5a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a9bee=>_0x1a9bee[_0x4adb5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4adb5a([0x2a])))[_0x4adb5a([0x6d,0x61,0x70])](_0x3b48b0=>_0x3b48b0[_0x4adb5a([0x73,0x70,0x6c,0x69,0x74])](_0x4adb5a([0x2e])))[_0x4adb5a([0x73,0x6f,0x6d,0x65])](_0x614b23=>_0x6a127a[_0x4adb5a([0x65,0x76,0x65,0x72,0x79])]((_0x4c4c24,_0x13ac09)=>_0x614b23[_0x13ac09]===_0x4c4c24||_0x614b23[_0x13ac09]===_0x4adb5a([0x2a])));}function _0x453461(){return _0x18d8c5&&_0x11a44d?new window[(_0x4adb5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5182e3,_0x20b262)=>{_0x18d8c5[_0x4adb5a([0x74,0x68,0x65,0x6e])](_0x5182e3,_0x20b262),_0x11a44d[_0x4adb5a([0x74,0x68,0x65,0x6e])](_0x7724dd=>{_0x7724dd!=_0x4adb5a([0x56,0x61,0x6c,0x69,0x64])&&_0x5182e3(_0x7724dd);},_0x20b262);}):_0x18d8c5||_0x11a44d||_0x4adb5a([0x56,0x61,0x6c,0x69,0x64]);}}function _0xea0279(_0xcc1931,_0x576852){return new window[(_0x4adb5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13d315=>{if(_0x248910())return _0x13d315(_0x4adb5a([0x56,0x61,0x6c,0x69,0x64]));_0x511f5f(),_0x303627[_0x4adb5a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4adb5a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c1d38=!0x1;const _0x514791=_0x20bfbb();function _0x70bb8b(_0x2b98e9){return!!_0x2b98e9&&(typeof _0x2b98e9===_0x4adb5a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b98e9===_0x4adb5a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b98e9[_0x4adb5a([0x74,0x68,0x65,0x6e])]===_0x4adb5a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b98e9[_0x4adb5a([0x63,0x61,0x74,0x63,0x68])]===_0x4adb5a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4b3538(_0x263588){_0x2c370c(_0x263588)[_0x4adb5a([0x74,0x68,0x65,0x6e])](_0x2fa16e=>{if(!_0x2fa16e||_0x2fa16e[_0x4adb5a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4adb5a([0x6f,0x6b]))return _0x4adb5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x90bb42(_0x15181d(_0x514791+_0x576852))!=_0x2fa16e[_0x4adb5a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4adb5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4adb5a([0x56,0x61,0x6c,0x69,0x64]);})[_0x4adb5a([0x74,0x68,0x65,0x6e])](_0x290d12=>(_0x325fbb(),_0x290d12),()=>{const _0x7a3305=_0x1a76b0();return null==_0x7a3305?(_0x325fbb(),_0x4adb5a([0x56,0x61,0x6c,0x69,0x64])):_0x4adb5a(_0x117130-_0x7a3305>(0x33c59455^_0x3aa768)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4adb5a([0x74,0x68,0x65,0x6e])](_0x13d315)[_0x4adb5a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x13d315(_0x4adb5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x595d8f=0x17fffed5^_0x3aa768;function _0x325fbb(){const _0x1ef237=_0x4adb5a([0x6c,0x6c,0x63,0x74,0x2d])+_0x90bb42(_0x15181d(_0xcc1931)),_0x6ff408=_0x49eab2(_0x90bb42(window[_0x4adb5a([0x4d,0x61,0x74,0x68])][_0x4adb5a([0x63,0x65,0x69,0x6c])](_0x117130/_0x595d8f)));window[_0x4adb5a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4adb5a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ef237,_0x6ff408);}function _0x1a76b0(){const _0x5387ba=_0x4adb5a([0x6c,0x6c,0x63,0x74,0x2d])+_0x90bb42(_0x15181d(_0xcc1931)),_0x1728a8=window[_0x4adb5a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4adb5a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5387ba);return _0x1728a8?window[_0x4adb5a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49eab2(_0x1728a8),0x10)*_0x595d8f:null;}function _0x2c370c(_0xfab149){return new window[(_0x4adb5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x27be75,_0x1c3a07)=>{_0xfab149[_0x4adb5a([0x74,0x68,0x65,0x6e])](_0x27be75,_0x1c3a07),window[_0x4adb5a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c3a07,0x17c8c495^_0x3aa768);});}}_0x303627[_0x4adb5a([0x6f,0x6e])](_0x4adb5a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5d3e6c,_0x377bf2)=>{if(_0x377bf2[0x0]!=_0xcc1931)return _0x13d315(_0x4adb5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x377bf2[0x1]={..._0x377bf2[0x1],[_0x4adb5a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x514791};},{[_0x4adb5a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4adb5a([0x68,0x69,0x67,0x68])}),_0x303627[_0x4adb5a([0x6f,0x6e])](_0x4adb5a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2325c6=>{_0x70bb8b(_0x2325c6[_0x4adb5a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c1d38=!0x0,_0x4b3538(_0x2325c6[_0x4adb5a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4adb5a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4adb5a([0x6c,0x6f,0x77])}),_0x325433[_0x4adb5a([0x74,0x68,0x65,0x6e])](()=>{_0x2c1d38||_0x13d315(_0x4adb5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x248910(){return _0x303627[_0x4adb5a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4adb5a([0x76,0x69,0x65,0x77])][_0x4adb5a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4adb5a([0x61,0x75,0x74,0x6f]);}function _0x511f5f(){_0x303627[_0x4adb5a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4adb5a([0x76,0x69,0x65,0x77])][_0x4adb5a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4adb5a([0x61,0x75,0x74,0x6f]);}}function _0x33b9b3(_0x545ca4){const _0x33d167=[new window[(_0x4adb5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4baad9=>setTimeout(_0x4baad9,0x17c02e99^_0x3aa768)),_0x325433[_0x4adb5a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4adb5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b2409=>{let _0x36c63f=0x0;_0x303627[_0x4adb5a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4adb5a([0x6f,0x6e])](_0x4adb5a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5cc8d9,_0xe56593)=>{_0xe56593[0x0][_0x4adb5a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x36c63f++,_0x36c63f==(0x17c911ad^_0x3aa768)&&(_0x5b2409(),_0x5cc8d9[_0x4adb5a([0x6f,0x66,0x66])]());});}))];return window[_0x4adb5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4adb5a([0x72,0x61,0x63,0x65])](_0x33d167)[_0x4adb5a([0x74,0x68,0x65,0x6e])](()=>_0x545ca4);}async function _0x50e6de(){await _0x325433,_0x303627[_0x4adb5a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4adb5a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x295444,_0x303627[_0x4adb5a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4adb5a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x295444,_0x303627[_0x4adb5a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4adb5a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x160866(_0x1f1a40){const _0x1a68a6=_0x177074();_0x303627[_0x1a68a6]=_0x4adb5a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1f1a40,_0x1f1a40!=_0x4adb5a([0x56,0x61,0x6c,0x69,0x64])&&_0x50e6de();}function _0x177074(){const _0x4befed=window[_0x4adb5a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4adb5a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4adb5a([0x6e,0x6f,0x77])]())[_0x4adb5a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4adb5a([0x2e]),'');let _0x4c07dc=_0x4adb5a([0x41]);for(let _0x5048ba=0x0;_0x5048ba<_0x4befed[_0x4adb5a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5048ba+=0x2){let _0x24c846=window[_0x4adb5a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4befed[_0x4adb5a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5048ba,_0x5048ba+0x2));_0x24c846>=_0x4b5d2d[_0x4adb5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x24c846-=_0x4b5d2d[_0x4adb5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4c07dc+=_0x4b5d2d[_0x24c846];}return _0x4c07dc;}function _0x256be9(){const _0x4879ae=_0x14c720[_0x4adb5a([0x73,0x70,0x6c,0x69,0x74])](_0x4adb5a([0x2e]));if(0x3!=_0x4879ae[_0x4adb5a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x947a27(_0x4879ae[0x1]);function _0x947a27(_0x54e654){const _0x5b5cf9=_0x335c24(_0x54e654);return _0x5b5cf9&&_0x70221()?_0x5b5cf9:null;function _0x70221(){const _0x411a23=_0x5b5cf9[_0x4adb5a([0x6a,0x74,0x69])],_0x4bfb90=window[_0x4adb5a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x411a23[_0x4adb5a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x411a23[_0x4adb5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x21f4d3={..._0x5b5cf9,[_0x4adb5a([0x6a,0x74,0x69])]:_0x411a23[_0x4adb5a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x411a23[_0x4adb5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x21f4d3[_0x4adb5a([0x76,0x63])],_0x15181d(_0x21f4d3)==_0x4bfb90;}}}async function _0x4865e0(){let _0x5927b4=!0x0;try{const _0x27e768=_0x14c720[_0x4adb5a([0x73,0x70,0x6c,0x69,0x74])](_0x4adb5a([0x2e])),[_0x604864,_0x4d0d05,_0x1289fa]=_0x27e768;return _0x400821(_0x604864),await _0x295eda(_0x604864,_0x4d0d05,_0x1289fa),_0x5927b4;}catch(_0xa2d34c){return!0x1;}function _0x400821(_0x5da9dd){const _0x33d7a4=_0x335c24(_0x5da9dd);_0x33d7a4&&_0x33d7a4[_0x4adb5a([0x61,0x6c,0x67])]==_0x4adb5a([0x45,0x53,0x32,0x35,0x36])||(_0x5927b4=!0x1);}async function _0x295eda(_0x3e8d8c,_0x1a8901,_0x541641){const _0x2c5f13=window[_0x4adb5a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4adb5a([0x66,0x72,0x6f,0x6d])](_0x455ddf(_0x541641),_0x6eddb8=>_0x6eddb8[_0x4adb5a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4eae9e=new window[(_0x4adb5a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4adb5a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3e8d8c+_0x4adb5a([0x2e])+_0x1a8901),_0x102cf4=window[_0x4adb5a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4adb5a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x102cf4)return;const _0x21c109=await _0x102cf4[_0x4adb5a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4adb5a([0x6a,0x77,0x6b]),_0x4b8bc2,{[_0x4adb5a([0x6e,0x61,0x6d,0x65])]:_0x4adb5a([0x45,0x43,0x44,0x53,0x41]),[_0x4adb5a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4adb5a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4adb5a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x102cf4[_0x4adb5a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4adb5a([0x6e,0x61,0x6d,0x65])]:_0x4adb5a([0x45,0x43,0x44,0x53,0x41]),[_0x4adb5a([0x68,0x61,0x73,0x68])]:{[_0x4adb5a([0x6e,0x61,0x6d,0x65])]:_0x4adb5a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x21c109,_0x2c5f13,_0x4eae9e)||(_0x5927b4=!0x1);}}function _0x335c24(_0x28bc73){return _0x28bc73[_0x4adb5a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4adb5a([0x65,0x79]))?JSON[_0x4adb5a([0x70,0x61,0x72,0x73,0x65])](_0x455ddf(_0x28bc73)):null;}function _0x455ddf(_0x3eb2e3){return window[_0x4adb5a([0x61,0x74,0x6f,0x62])](_0x3eb2e3[_0x4adb5a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4adb5a([0x2b]))[_0x4adb5a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4adb5a([0x2f])));}function _0x15181d(_0x48d4e1){let _0x4a3963=0x1505;function _0x5e4eb2(_0x1ee599){for(let _0x42fe98=0x0;_0x42fe98<_0x1ee599[_0x4adb5a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42fe98++){const _0x41397a=_0x1ee599[_0x4adb5a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x42fe98);_0x4a3963=(_0x4a3963<<0x5)+_0x4a3963+_0x41397a,_0x4a3963&=_0x4a3963;}}function _0x4045ae(_0x3f5513){Array[_0x4adb5a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3f5513)?_0x3f5513[_0x4adb5a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4045ae):_0x3f5513&&typeof _0x3f5513==_0x4adb5a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4adb5a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3f5513)[_0x4adb5a([0x73,0x6f,0x72,0x74])]()[_0x4adb5a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x346f93,_0x1fb97b])=>{_0x5e4eb2(_0x346f93),_0x4045ae(_0x1fb97b);}):_0x5e4eb2(window[_0x4adb5a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3f5513));}return _0x4045ae(_0x48d4e1),_0x4a3963>>>0x0;}function _0x90bb42(_0x2b6a0d){return _0x2b6a0d[_0x4adb5a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4adb5a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4adb5a([0x30]));}function _0x49eab2(_0x291a3a){return _0x291a3a[_0x4adb5a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4adb5a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4adb5a([0x6a,0x6f,0x69,0x6e])]('');}function _0x295444(){}function _0x4adb5a(_0x2faa81){const _0x58a4f6=_0x5a8f;return _0x2faa81[_0x58a4f6(0x147)](_0x33dfa2=>String[_0x58a4f6(0x134)](_0x33dfa2))[_0x58a4f6(0x148)]('');}_0x160866(await _0x46f333());}(this);}[_0x1f1f94(0x114)](){const _0x390168=_0x1f1f94,_0x2cc760=this[_0x390168(0x122)][_0x390168(0x146)][_0x390168(0x138)];_0x2cc760[_0x390168(0x119)](_0x390168(0x12c))&&_0x2cc760[_0x390168(0x123)](_0x390168(0x12c),{'allowAttributes':[_0x390168(0x127)]}),_0x2cc760[_0x390168(0x119)](_0x390168(0x112))&&_0x2cc760[_0x390168(0x123)](_0x390168(0x112),{'allowAttributes':[_0x390168(0x127)]});}[_0x1f1f94(0x115)](){const _0x5f0139=_0x1f1f94,_0x42526a=this[_0x5f0139(0x122)];_0x42526a[_0x5f0139(0x141)][_0x5f0139(0x11e)](_0x5f0139(0x144))[_0x5f0139(0x13f)]({'model':_0x5f0139(0x127),'view':_0x5f0139(0x13d)}),_0x42526a[_0x5f0139(0x141)][_0x5f0139(0x11e)](_0x5f0139(0x12b))[_0x5f0139(0x10d)]({'model':{'key':_0x5f0139(0x127),'value':_0x5af7d8=>_0x5af7d8[_0x5f0139(0x116)](_0x5f0139(0x13d))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xe652e8=_0x42526a[_0x5f0139(0x11b)][_0x5f0139(0x14e)](_0x5f0139(0x129));_0xe652e8&&this[_0x5f0139(0x103)](_0xe652e8,_0x5f0139(0x11d),(_0x23d7d6,[_0x4440d4,_0x16a499])=>{const _0x5d3fcd=_0x5f0139;_0x4440d4[_0x5d3fcd(0x145)](_0x5d3fcd(0x127),_0x16a499);});}[_0x1f1f94(0x150)](){const _0x1a5358=_0x1f1f94,_0x19a135=this[_0x1a5358(0x122)][_0x1a5358(0x10c)][_0x1a5358(0x14e)](_0x1a5358(0x13a))||{},_0x46453a=this[_0x1a5358(0x122)][_0x1a5358(0x10c)][_0x1a5358(0x14e)](_0x1a5358(0x10b))||'';this[_0x1a5358(0x130)]=_0x56c3f1(_0x5b4933[_0x1a5358(0x135)],_0x1a5358(0x14d),{..._0x19a135,'pubkey':_0x46453a,'ctx-name':_0x1a5358(0x128),'sourceList':'','imgOnly':_0x1a5358(0x149),'removeCopyright':_0x1a5358(0x149),'localeName':this[_0x1a5358(0x122)][_0x1a5358(0x12e)][_0x1a5358(0x11f)],'externalSourcesEmbedCss':_0x1a5358(0x118)}),this[_0x1a5358(0x130)][_0x1a5358(0x137)]=_0x1ddf3f=>{const _0x4706c4=_0x1a5358;if(_0x4706c4(0x13b)==_0x1ddf3f)return _0x4706c4(0x10e);},_0x5b4933[_0x1a5358(0x135)][_0x1a5358(0x126)][_0x1a5358(0x117)](this[_0x1a5358(0x130)]);}[_0x1f1f94(0x113)](){const _0x4c3b19=_0x1f1f94;this[_0x4c3b19(0x12f)]=_0x56c3f1(_0x5b4933[_0x4c3b19(0x135)],_0x4c3b19(0x136),{'ctx-name':_0x4c3b19(0x128)}),_0x5b4933[_0x4c3b19(0x135)][_0x4c3b19(0x126)][_0x4c3b19(0x117)](this[_0x4c3b19(0x12f)]);}[_0x1f1f94(0x153)](){const _0x26a7d2=_0x1f1f94,_0x4dfaf6=this[_0x26a7d2(0x122)][_0x26a7d2(0x11b)][_0x26a7d2(0x14e)](_0x26a7d2(0x109));_0x4dfaf6&&this[_0x26a7d2(0x103)](_0x4dfaf6,_0x26a7d2(0x156),()=>{const _0x28e66c=_0x26a7d2,_0x23f8fa=this[_0x28e66c(0x122)][_0x28e66c(0x146)][_0x28e66c(0x135)][_0x28e66c(0x139)][_0x28e66c(0x143)]();_0x23f8fa&&_0x23f8fa[_0x28e66c(0x116)](_0x28e66c(0x127))&&this[_0x28e66c(0x122)][_0x28e66c(0x13c)][_0x28e66c(0x13e)][_0x28e66c(0x104)](_0x28e66c(0x140),()=>{const _0x53f09f=_0x28e66c;_0x1c2cd4(this[_0x53f09f(0x122)],_0x23f8fa);});});const _0x7e73d5=this[_0x26a7d2(0x122)][_0x26a7d2(0x11b)][_0x26a7d2(0x14e)](_0x26a7d2(0x107));_0x7e73d5&&this[_0x26a7d2(0x103)](_0x7e73d5,_0x26a7d2(0x156),()=>{const _0x26158b=_0x26a7d2,_0x32e8fb=this[_0x26158b(0x122)][_0x26158b(0x146)][_0x26158b(0x135)][_0x26158b(0x139)][_0x26158b(0x143)]();_0x32e8fb&&_0x32e8fb[_0x26158b(0x116)](_0x26158b(0x127))&&this[_0x26158b(0x122)][_0x26158b(0x13c)][_0x26158b(0x13e)][_0x26158b(0x104)](_0x26158b(0x140),()=>{const _0x123837=_0x26158b;_0x1c2cd4(this[_0x123837(0x122)],_0x32e8fb);});});}}