@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250913.0 → 0.0.0-nightly-20250914.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 _0x410655,Command as _0x39bc0a}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x308d51,IconGooglePhotos as _0x19ae0e,IconGoogleDrive as _0xeaba76,IconFacebook as _0x213e3b,IconDropbox as _0x3aa4a0,IconUploadcareLink as _0x165489,IconUploadcareImageUpload as _0xf12aab,IconError as _0x163483,IconUploadcareImageEdit as _0x374fa4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2496db,MenuBarMenuListItemButtonView as _0x57845b,View as _0x2dd2e5,FocusCycler as _0x1af3a4,Dialog as _0x125dfd,DialogViewPosition as _0x48452b,SpinnerView as _0x367117,IconView as _0x2a5661,Notification as _0x5dabd7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x7ac162,DomEmitterMixin as _0x40a160,global as _0x2108e5,getAncestors as _0x6cad9c,ObservableMixin as _0x457555,uid as _0x53dcea,createElement as _0x1ec7e9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x12b56b}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x34160c,info as _0x3696dc}from'@uploadcare/upload-client';import*as _0x1df1f4 from'@uploadcare/file-uploader';var i=function(_0x3a8775){return _0x3a8775['Local']='local',_0x3a8775['URL']='url',_0x3a8775['Dropbox']='dropbox',_0x3a8775['GDrive']='gdrive',_0x3a8775['Facebook']='facebook',_0x3a8775['GPhotos']='gphotos',_0x3a8775['OneDrive']='onedrive',_0x3a8775;}({});function _(_0x279e8e,_0x499911,_0x474797){const t=_0x279e8e['t'],_0x1636e4=_0x279e8e['t'];switch(_0x499911){case i['Local']:return{'text':_0x1636e4('Insert'===_0x474797?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1636e4('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x474797?_0x1636e4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1636e4('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x474797?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x474797?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x474797?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x474797?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x474797?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x499911;}}class e extends _0x410655{['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 _0x4538ed=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x336f8b;for(const _0x33e397 in _0x4538ed){const _0x47e026=_0x33e397,_0x432ffe=_0x4538ed[_0x47e026];if('uploadcareLicenseKeyValid'==_0x432ffe||'uploadcareLicenseKeyInvalid'==_0x432ffe||'uploadcareLicenseKeyExpired'==_0x432ffe||'uploadcareLicenseKeyDomainLimit'==_0x432ffe||'uploadcareLicenseKeyNotAllowed'==_0x432ffe||'uploadcareLicenseKeyEvaluationLimit'==_0x432ffe||'uploadcareLicenseKeyTrialLimit'==_0x432ffe||'uploadcareLicenseKeyUsageLimit'==_0x432ffe){delete _0x4538ed[_0x47e026],_0x336f8b=_0x432ffe,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x336f8b&&_0x4538ed['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x336f8b&&_0x4538ed['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x336f8b&&_0x4538ed['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x336f8b&&_0x4538ed['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x336f8b&&_0x4538ed['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x336f8b&&_0x4538ed['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x336f8b&&_0x4538ed['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x520377}=this,_0x209279=_0x520377['commands']['get']('uploadcare');if(!_0x209279)return;const _0x433643=this['_normalizeConfigSourceList'](_0x520377['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5c4433,_0x4a3013)=>{const _0x31a3a5=this['_getIntegrationKey'](_0x4a3013['type']);return _0x5c4433[_0x31a3a5]||(_0x5c4433[_0x31a3a5]=[]),_0x5c4433[_0x31a3a5]['push'](_0x4a3013),_0x5c4433;},{});_0x520377['plugins']['has']('ImageInsertUI')&&_0x520377['commands']['get']('uploadcare')&&Object['entries'](_0x433643)['forEach'](([_0x22c888,_0x3f8ac0])=>{_0x520377['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x22c888,'observable':()=>_0x209279,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3f8ac0),'formViewCreator':()=>this['_createDropdownButtons'](_0x3f8ac0),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3f8ac0),'override':'assetManager'!==_0x22c888});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xb679a6){const {locale:_0x488ec7}=this['editor'];return _0xb679a6['map'](_0x57b279=>{const _0x455e46=_(_0x488ec7,_0x57b279,'Insert');switch(_0x57b279){case i['Local']:return{'icon':_0xf12aab,'type':i['Local'],..._0x455e46};case i['URL']:return{'icon':_0x165489,'type':i['URL'],..._0x455e46};case i['Dropbox']:return{'icon':_0x3aa4a0,'type':i['Dropbox'],..._0x455e46};case i['Facebook']:return{'icon':_0x213e3b,'type':i['Facebook'],..._0x455e46};case i['GDrive']:return{'icon':_0xeaba76,'type':i['GDrive'],..._0x455e46};case i['GPhotos']:return{'icon':_0x19ae0e,'type':i['GPhotos'],..._0x455e46};case i['OneDrive']:return{'icon':_0x308d51,'type':i['OneDrive'],..._0x455e46};}});}['_getIntegrationKey'](_0x474796){switch(_0x474796){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x14b9d3,_0x3f2fda){const _0x110e79=this['editor'],_0x3b7455=new _0x14b9d3(_0x110e79['locale']),_0x28c197=_0x110e79['commands']['get']('uploadcare');return _0x3b7455['bind']('isEnabled')['to'](_0x28c197),_0x3b7455['on']('execute',()=>{_0x28c197['execute'](_0x3f2fda);}),_0x3b7455;}['_createToolbarButton'](_0x2b7be8){const {locale:_0x2e1902}=this['editor'],_0x57a846=this['editor']['plugins']['get']('ImageInsertUI'),_0x25b47=_0x2b7be8[0x0],_0x9bf782=this['_createButton'](_0x2496db,_0x25b47['type']);return _0x9bf782['icon']=_0x25b47['icon'],_0x9bf782['bind']('label')['to'](_0x57a846,'isImageSelected',_0x52706e=>_(_0x2e1902,_0x25b47['type'],_0x52706e?'Replace':'Insert')['text']),_0x9bf782['tooltip']=!0x0,_0x9bf782;}['_createDropdownButtons'](_0x3b545c){const {locale:_0x17356d}=this['editor'],_0x284d77=this['editor']['plugins']['get']('ImageInsertUI');return _0x3b545c['map'](_0x4b98a1=>{const _0x469d12=this['_createButton'](_0x2496db,_0x4b98a1['type']);return _0x469d12['withText']=!0x0,_0x469d12['icon']=_0x4b98a1['icon'],_0x469d12['bind']('label')['to'](_0x284d77,'isImageSelected',_0x540c3a=>_(_0x17356d,_0x4b98a1['type'],_0x540c3a?'Replace':'Insert')['text']),_0x469d12;});}['_createMenuBarButtons'](_0x4f43eb){return _0x4f43eb['map'](_0x1bb823=>{const _0x368ba2=this['_createButton'](_0x57845b,_0x1bb823['type']);return _0x368ba2['icon']=_0x1bb823['icon'],_0x368ba2['label']=_0x1bb823['shortText'],_0x368ba2;});}}class F extends _0x2dd2e5{['focusTracker'];['focusCycler'];constructor(_0x34d449){super(_0x34d449),this['focusTracker']=new _0x7ac162(),this['focusCycler']=new _0x1af3a4({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x35505d,_0x5d2b3a){super(_0x35505d),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-'+_0x5d2b3a}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5190f2,_0x259061){const _0x4fdd61=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1b24fd=>_0x1b24fd<=_0x259061)['map'](_0x36f100=>_0x5190f2['replace'](/\/$/,'')+'/-/resize/'+_0x36f100+'x/\x20'+_0x36f100+'w');return{'imageFallbackUrl':_0x5190f2,'imageSources':[{'srcset':_0x4fdd61['join'](',\x20'),'sizes':'(max-width:\x20'+_0x259061+'px)\x20100vw,\x20'+_0x259061+'px','type':'image/webp'}]};}function S(_0x1ddacc,_0x3079d9,_0x334385){const _0x24c529=_0x1ddacc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x24c529?parseInt(_0x24c529[0x1],0xa):_0x3079d9,'height':_0x24c529?parseInt(_0x24c529[0x2],0xa):_0x334385};}function p(_0x4c8ab5,_0x3b2151){const _0x1d944e=new(_0x40a160())(),_0x483b05=_0x4c8ab5['plugins']['get']('ImageUtils'),_0x151539=_0x4c8ab5['editing']['mapper']['toViewElement'](_0x3b2151),_0x21e983=_0x483b05['findViewImgElement'](_0x151539),_0x49ac28=_0x4c8ab5['editing']['view']['domConverter']['viewToDom'](_0x21e983),_0x3233b7=_0x3b2151['getAttribute']('width'),_0x237067=_0x3b2151['getAttribute']('height'),_0x3c9948='image-processing';_0x4c8ab5['editing']['view']['change'](_0x3fa88f=>{_0x3fa88f['addClass'](_0x3c9948,_0x151539),_0x3fa88f['setStyle']('aspect-ratio',_0x3233b7+'/'+_0x237067,_0x21e983);}),_0x1d944e['listenTo'](_0x49ac28,'load',()=>{_0x1d944e['stopListening'](_0x49ac28,'load'),_0x4c8ab5['editing']['view']['change'](_0x1533c9=>{_0x1533c9['removeClass'](_0x3c9948,_0x151539),_0x1533c9['removeStyle']('aspect-ratio',_0x21e983);});});}function G(_0x409db4){if(Array['isArray'](_0x409db4)){const _0x538e78=_0x409db4['map'](G);return _0x1e254c=>_0x538e78['some'](_0xd3841e=>_0xd3841e(_0x1e254c));}if('origin'==_0x409db4){const _0x571be3=_0x2108e5['window']['location']['origin'];return _0x1c05b2=>new URL(_0x1c05b2,_0x2108e5['document']['baseURI'])['origin']==_0x571be3;}return'function'==typeof _0x409db4?_0x409db4:_0x409db4 instanceof RegExp?_0x11b74f=>!(!_0x11b74f['match'](_0x409db4)&&!_0x11b74f['replace'](/^https?:\/\//,'')['match'](_0x409db4)):()=>!0x1;}function A(_0x2a2cd4,_0x1e9f97){return _0x6cad9c(_0x2a2cd4['target'])['includes'](_0x1e9f97);}class n extends/* #__PURE__ -- @preserve */
24
- _0x457555(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3802b0,_0x4d54cd,_0x49099a){super(),this['_editor']=_0x3802b0,this['_editing']=_0x4d54cd,this['_dialog']=_0x3802b0['plugins']['get'](_0x125dfd),this['_api']=_0x4d54cd['ctxElement']['getAPI'](),this['_type']=_0x49099a,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:_0x1fb966,model:_0x45f858}=this['_editor'],_0x4c9ebd=_0x45f858['document']['selection']['getSelectedElement'](),_0xf1af0c=_0x4c9ebd&&(_0x4c9ebd['is']('element','imageBlock')||_0x4c9ebd['is']('element','imageInline'));this['_formView']=new x(_0x1fb966,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xf12aab,'title':_(_0x1fb966,this['_type'],_0xf1af0c?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x48452b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5c24ef=>!A(_0x5c24ef,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2837d6}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5b90fb=>{const _0x5791f8=_0x2837d6['length'];for(const _0x536a4b of _0x2837d6){const _0x5cbefa=_0x536a4b===_0x2837d6[_0x5791f8-0x1],{cdnUrl:_0x17ea06,fileInfo:_0x253e24}=_0x536a4b;if(!_0x17ea06||!_0x253e24)continue;const {width:_0x26bd3d,height:_0x320a69}=_0x253e24['imageInfo'],_0x38ab29=S(_0x17ea06,_0x26bd3d,_0x320a69),_0x3c4831=C(_0x17ea06,_0x38ab29['width']),_0x218ebe={'id':_0x253e24['uuid'],'type':'image','attributes':{'imageDimension':_0x38ab29,..._0x3c4831}};this['_insertAsset'](_0x218ebe,_0x5cbefa,_0x5b90fb);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xeed07e=>{'idle'===_0xeed07e['detail']['status']&&!_0xeed07e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5dc614,_0x552c86,_0x1743b7){const _0x482382=this['_editor']['model']['document']['selection'],_0x1ac425=_0x482382['getSelectedElement'](),_0x45e706=!(!_0x1ac425||!_0x1ac425['is']('element','imageInline'));_0x1743b7['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5dc614,_0x45e706),_0x552c86||_0x1743b7['setSelection'](_0x482382['getLastPosition']());}['_insertImage'](_0xce5448,_0x21c5b3){const _0x542abd=this['_editor'],{imageDimension:_0x4bab33,imageFallbackUrl:_0x300730,imageSources:_0x4493f3}=_0xce5448['attributes'];_0x542abd['execute']('insertImage',{'imageType':_0x21c5b3?'imageInline':null,'source':{'uploadcareImageId':_0xce5448['id'],'src':_0x300730,'sources':_0x4493f3,..._0x4bab33}});}}class w extends _0x39bc0a{['_editing'];['_controller']=null;static get['requires'](){return[_0x125dfd,o];}constructor(_0x1c18c8){super(_0x1c18c8),this['_editing']=_0x1c18c8['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x15366e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x15366e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xc6deeb,..._0x35eb14}){return _0x34160c(_0xc6deeb,_0x35eb14);}static['getInfo'](_0x31ec05,_0x2b23a7){return _0x3696dc(_0x31ec05,_0x2b23a7);}}class f extends _0x410655{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x12b56b,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4427d1=this['editor'];if(!!!_0x4427d1['config']['get']('uploadcare'))return;_0x4427d1['plugins']['get'](_0x12b56b)['createUploadAdapter']=_0x5ac258=>new k(_0x5ac258,_0x4427d1),_0x4427d1['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5c68ff,{imageElement:_0x3771c3,data:_0x2d776e})=>{_0x4427d1['model']['change'](_0x226db5=>{_0x226db5['setAttribute']('uploadcareImageId',_0x2d776e['uploadcareImageId'],_0x3771c3);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1424c9,_0x4082ee){this['loader']=_0x1424c9,this['editor']=_0x4082ee,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3b7f29=await this['loader']['file'];return j['upload']({'file':_0x3b7f29,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x3be240=>{_0x3be240&&_0x3be240['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3be240['value']);}})['then'](async _0x1bc975=>{const {imageFallbackUrl:_0x2c91f4,imageSources:_0x4f3ea5}=C(_0x1bc975['cdnUrl'],_0x1bc975['imageInfo']['width']);return{'uploadcareImageId':_0x1bc975['uuid'],'default':_0x2c91f4,'sources':_0x4f3ea5};})['catch'](()=>{const _0x1ea8f8=t('Cannot\x20upload\x20file:')+('\x20'+_0x3b7f29['name']+'.');return Promise['reject'](_0x1ea8f8);});}['abort'](){this['controller']['abort']();}}class o extends _0x410655{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x125dfd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x158a6f){super(_0x158a6f),this['ucContextId']=_0x53dcea();}['init'](){const _0x305a2b=this['editor'];_0x305a2b['commands']['add']('uploadcare',new w(_0x305a2b));}['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 _0xc5c66a=_0x2108e5['document']['querySelector']('input[uploadcare-file-input]');_0xc5c66a&&_0xc5c66a['remove']();}),async function(_0x33be8b){const _0x15beee=_0x4a1869([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x4e8b7b=0x3d8d0df,_0x51b6a7=0x3dfa39f^_0x4e8b7b,_0x497dc2=window[_0x4a1869([0x44,0x61,0x74,0x65])][_0x4a1869([0x6e,0x6f,0x77])](),_0x34497a=_0x33be8b[_0x4a1869([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x273b14=new window[(_0x4a1869([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x486f75=>{_0x34497a[_0x4a1869([0x6f,0x6e,0x63,0x65])](_0x4a1869([0x72,0x65,0x61,0x64,0x79]),_0x486f75);}),_0x37b21e={[_0x4a1869([0x6b,0x74,0x79])]:_0x4a1869([0x45,0x43]),[_0x4a1869([0x75,0x73,0x65])]:_0x4a1869([0x73,0x69,0x67]),[_0x4a1869([0x63,0x72,0x76])]:_0x4a1869([0x50,0x2d,0x32,0x35,0x36]),[_0x4a1869([0x78])]:_0x4a1869([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]),[_0x4a1869([0x79])]:_0x4a1869([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]),[_0x4a1869([0x61,0x6c,0x67])]:_0x4a1869([0x45,0x53,0x32,0x35,0x36])},_0x2fd21d=_0x34497a[_0x4a1869([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4a1869([0x67,0x65,0x74])](_0x4a1869([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x48753e(){let _0xe3adc6,_0x4ec3fd=null,_0xcb6b54=null;try{if(_0x2fd21d==_0x4a1869([0x47,0x50,0x4c]))return _0x4a1869([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xe3adc6=_0x3d65c6(),!_0xe3adc6)return _0x4a1869([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xe3adc6[_0x4a1869([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xcb6b54=_0x87727f(_0xe3adc6[_0x4a1869([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xe3adc6[_0x4a1869([0x6a,0x74,0x69])])),await _0x3eaf31()?_0x43ad44()?_0x31a716()?_0x4a1869([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x49890e()?(_0xe3adc6[_0x4a1869([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a1869([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4ec3fd=_0x3c1ec9(_0x4a1869([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xe3adc6[_0x4a1869([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a1869([0x74,0x72,0x69,0x61,0x6c])&&(_0x4ec3fd=_0x3c1ec9(_0x4a1869([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x309035()):_0x4a1869([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4a1869([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4a1869([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4a1869([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x31a716(){const _0x4a4c0e=[_0x4a1869([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4a1869([0x74,0x72,0x69,0x61,0x6c])][_0x4a1869([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe3adc6[_0x4a1869([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x497dc2/0x3e8:0xe10*_0x51b6a7;return _0xe3adc6[_0x4a1869([0x65,0x78,0x70])]<_0x4a4c0e;}function _0x43ad44(){const _0x1593a1=_0xe3adc6[_0x4a1869([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1593a1&&(!!_0x1593a1[_0x4a1869([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a1869([0x2a]))||!!_0x1593a1[_0x4a1869([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a1869([0x55,0x50,0x4c,0x43])));}function _0x49890e(){const _0x214b9c=_0xe3adc6[_0x4a1869([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x214b9c||0x0==_0x214b9c[_0x4a1869([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x37f4c3}=new URL(window[_0x4a1869([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x214b9c[_0x4a1869([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37f4c3))return!0x0;const _0x19c516=_0x37f4c3[_0x4a1869([0x73,0x70,0x6c,0x69,0x74])](_0x4a1869([0x2e]));return _0x214b9c[_0x4a1869([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30dbfc=>_0x30dbfc[_0x4a1869([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a1869([0x2a])))[_0x4a1869([0x6d,0x61,0x70])](_0x52d924=>_0x52d924[_0x4a1869([0x73,0x70,0x6c,0x69,0x74])](_0x4a1869([0x2e])))[_0x4a1869([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19ecb2=>_0x19ecb2[_0x4a1869([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x19c516[_0x4a1869([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a1869([0x6d,0x61,0x70])](_0x29243e=>Array(_0x19c516[_0x4a1869([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x29243e[_0x4a1869([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a1869([0x66,0x69,0x6c,0x6c])](_0x29243e[0x0]===_0x4a1869([0x2a])?_0x4a1869([0x2a]):'')[_0x4a1869([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x29243e))[_0x4a1869([0x73,0x6f,0x6d,0x65])](_0x4b4700=>_0x19c516[_0x4a1869([0x65,0x76,0x65,0x72,0x79])]((_0x25ad8d,_0x158c47)=>_0x4b4700[_0x158c47]===_0x25ad8d||_0x4b4700[_0x158c47]===_0x4a1869([0x2a])));}function _0x309035(){return _0x4ec3fd&&_0xcb6b54?new window[(_0x4a1869([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5f47dc,_0x19a8b4)=>{_0x4ec3fd[_0x4a1869([0x74,0x68,0x65,0x6e])](_0x5f47dc,_0x19a8b4),_0xcb6b54[_0x4a1869([0x74,0x68,0x65,0x6e])](_0x9c2f90=>{_0x9c2f90!=_0x4a1869([0x56,0x61,0x6c,0x69,0x64])&&_0x5f47dc(_0x9c2f90);},_0x19a8b4);}):_0x4ec3fd||_0xcb6b54||_0x4a1869([0x56,0x61,0x6c,0x69,0x64]);}}function _0x87727f(_0x4f4880,_0x2c4334){return new window[(_0x4a1869([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bc961=>{if(_0x326bfc())return _0x3bc961(_0x4a1869([0x56,0x61,0x6c,0x69,0x64]));_0x364fe0(),_0x34497a[_0x4a1869([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4a1869([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b3569=!0x1;const _0xb89b25=_0x53dcea();function _0xc8d209(_0x21d1fd){return!!_0x21d1fd&&(typeof _0x21d1fd===_0x4a1869([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21d1fd===_0x4a1869([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21d1fd[_0x4a1869([0x74,0x68,0x65,0x6e])]===_0x4a1869([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21d1fd[_0x4a1869([0x63,0x61,0x74,0x63,0x68])]===_0x4a1869([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4941e3(_0x128c75){_0x5a2be0(_0x128c75)[_0x4a1869([0x74,0x68,0x65,0x6e])](_0x5c46b3=>{if(!_0x5c46b3||_0x5c46b3[_0x4a1869([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4a1869([0x6f,0x6b]))return _0x4a1869([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5cde2e(_0x5d7de7(_0xb89b25+_0x2c4334))!=_0x5c46b3[_0x4a1869([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4a1869([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4a1869([0x56,0x61,0x6c,0x69,0x64]);})[_0x4a1869([0x74,0x68,0x65,0x6e])](_0x1ce566=>(_0x3256ce(),_0x1ce566),()=>{const _0x57bf1d=_0x3716ab();return null==_0x57bf1d?(_0x3256ce(),_0x4a1869([0x56,0x61,0x6c,0x69,0x64])):_0x4a1869(_0x497dc2-_0x57bf1d>(0x27d454df^_0x4e8b7b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4a1869([0x74,0x68,0x65,0x6e])](_0x3bc961)[_0x4a1869([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3bc961(_0x4a1869([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x408089=0x3ee3e5f^_0x4e8b7b;function _0x3256ce(){const _0x457b1f=_0x4a1869([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cde2e(_0x5d7de7(_0x4f4880)),_0x4f44c3=_0x34fee9(_0x5cde2e(window[_0x4a1869([0x4d,0x61,0x74,0x68])][_0x4a1869([0x63,0x65,0x69,0x6c])](_0x497dc2/_0x408089)));window[_0x4a1869([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a1869([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x457b1f,_0x4f44c3);}function _0x3716ab(){const _0x243738=_0x4a1869([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cde2e(_0x5d7de7(_0x4f4880)),_0x1be43c=window[_0x4a1869([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a1869([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x243738);return _0x1be43c?window[_0x4a1869([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34fee9(_0x1be43c),0x10)*_0x408089:null;}function _0x5a2be0(_0x55eddc){return new window[(_0x4a1869([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e9fcc,_0x4fb1da)=>{_0x55eddc[_0x4a1869([0x74,0x68,0x65,0x6e])](_0x5e9fcc,_0x4fb1da),window[_0x4a1869([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4fb1da,0x3d9041f^_0x4e8b7b);});}}_0x34497a[_0x4a1869([0x6f,0x6e])](_0x4a1869([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f0b92,_0x182719)=>{if(_0x182719[0x0]!=_0x4f4880)return _0x3bc961(_0x4a1869([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x182719[0x1]={..._0x182719[0x1],[_0x4a1869([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb89b25};},{[_0x4a1869([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a1869([0x68,0x69,0x67,0x68])}),_0x34497a[_0x4a1869([0x6f,0x6e])](_0x4a1869([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5db0b1=>{_0xc8d209(_0x5db0b1[_0x4a1869([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b3569=!0x0,_0x4941e3(_0x5db0b1[_0x4a1869([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4a1869([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a1869([0x6c,0x6f,0x77])}),_0x273b14[_0x4a1869([0x74,0x68,0x65,0x6e])](()=>{_0x2b3569||_0x3bc961(_0x4a1869([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x326bfc(){return _0x34497a[_0x4a1869([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a1869([0x76,0x69,0x65,0x77])][_0x4a1869([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4a1869([0x61,0x75,0x74,0x6f]);}function _0x364fe0(){_0x34497a[_0x4a1869([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a1869([0x76,0x69,0x65,0x77])][_0x4a1869([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4a1869([0x61,0x75,0x74,0x6f]);}}function _0x3c1ec9(_0x37d9b8){const _0x338b48=[new window[(_0x4a1869([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x287d7e=>setTimeout(_0x287d7e,0x3d1ee13^_0x4e8b7b)),_0x273b14[_0x4a1869([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4a1869([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4af580=>{let _0x1d39c2=0x0;_0x34497a[_0x4a1869([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a1869([0x6f,0x6e])](_0x4a1869([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4925b8,_0x2f0cd2)=>{_0x2f0cd2[0x0][_0x4a1869([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1d39c2++,_0x1d39c2==(0x3d8d127^_0x4e8b7b)&&(_0x4af580(),_0x4925b8[_0x4a1869([0x6f,0x66,0x66])]());});}))];return window[_0x4a1869([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4a1869([0x72,0x61,0x63,0x65])](_0x338b48)[_0x4a1869([0x74,0x68,0x65,0x6e])](()=>_0x37d9b8);}async function _0x2f7e0e(){await _0x273b14,_0x34497a[_0x4a1869([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a1869([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x69066b,_0x34497a[_0x4a1869([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a1869([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x69066b,_0x34497a[_0x4a1869([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4a1869([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x420ef9(_0x4893a6){const _0x5cf855=_0x4a10bc();_0x34497a[_0x5cf855]=_0x4a1869([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4893a6,_0x4893a6!=_0x4a1869([0x56,0x61,0x6c,0x69,0x64])&&_0x2f7e0e();}function _0x4a10bc(){const _0x4be9e4=window[_0x4a1869([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4a1869([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4a1869([0x6e,0x6f,0x77])]())[_0x4a1869([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4a1869([0x2e]),'');let _0xe73467=_0x4a1869([0x52]);for(let _0x29b8dd=0x0;_0x29b8dd<_0x4be9e4[_0x4a1869([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29b8dd+=0x2){let _0x96afe9=window[_0x4a1869([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4be9e4[_0x4a1869([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29b8dd,_0x29b8dd+0x2));_0x96afe9>=_0x15beee[_0x4a1869([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x96afe9-=_0x15beee[_0x4a1869([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xe73467+=_0x15beee[_0x96afe9];}return _0xe73467;}function _0x3d65c6(){const _0x4e429d=_0x2fd21d[_0x4a1869([0x73,0x70,0x6c,0x69,0x74])](_0x4a1869([0x2e]));if(0x3!=_0x4e429d[_0x4a1869([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x53d3fa(_0x4e429d[0x1]);function _0x53d3fa(_0x22631a){const _0x21dfb1=_0x29db36(_0x22631a);return _0x21dfb1&&_0x1bfd8f()?_0x21dfb1:null;function _0x1bfd8f(){const _0x5628a7=_0x21dfb1[_0x4a1869([0x6a,0x74,0x69])],_0x4440dc=window[_0x4a1869([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5628a7[_0x4a1869([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5628a7[_0x4a1869([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x219aae={..._0x21dfb1,[_0x4a1869([0x6a,0x74,0x69])]:_0x5628a7[_0x4a1869([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5628a7[_0x4a1869([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x219aae[_0x4a1869([0x76,0x63])],_0x5d7de7(_0x219aae)==_0x4440dc;}}}async function _0x3eaf31(){let _0x3befad=!0x0;try{const _0x2e8222=_0x2fd21d[_0x4a1869([0x73,0x70,0x6c,0x69,0x74])](_0x4a1869([0x2e])),[_0x2a8c7e,_0x5e95da,_0x2fa65e]=_0x2e8222;return _0xbe1d56(_0x2a8c7e),await _0x101eea(_0x2a8c7e,_0x5e95da,_0x2fa65e),_0x3befad;}catch{return!0x1;}function _0xbe1d56(_0x44ae7a){const _0x53211d=_0x29db36(_0x44ae7a);_0x53211d&&_0x53211d[_0x4a1869([0x61,0x6c,0x67])]==_0x4a1869([0x45,0x53,0x32,0x35,0x36])||(_0x3befad=!0x1);}async function _0x101eea(_0x3b704e,_0x3c6099,_0x132d0a){const _0x4c1500=window[_0x4a1869([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4a1869([0x66,0x72,0x6f,0x6d])](_0x120023(_0x132d0a),_0x51258b=>_0x51258b[_0x4a1869([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2ddb42=new window[(_0x4a1869([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4a1869([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b704e+_0x4a1869([0x2e])+_0x3c6099),_0x41151e=window[_0x4a1869([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4a1869([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x41151e)return;const _0x867c5d=await _0x41151e[_0x4a1869([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4a1869([0x6a,0x77,0x6b]),_0x37b21e,{[_0x4a1869([0x6e,0x61,0x6d,0x65])]:_0x4a1869([0x45,0x43,0x44,0x53,0x41]),[_0x4a1869([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4a1869([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4a1869([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x41151e[_0x4a1869([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4a1869([0x6e,0x61,0x6d,0x65])]:_0x4a1869([0x45,0x43,0x44,0x53,0x41]),[_0x4a1869([0x68,0x61,0x73,0x68])]:{[_0x4a1869([0x6e,0x61,0x6d,0x65])]:_0x4a1869([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x867c5d,_0x4c1500,_0x2ddb42)||(_0x3befad=!0x1);}}function _0x29db36(_0x4f1b74){return _0x4f1b74[_0x4a1869([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4a1869([0x65,0x79]))?JSON[_0x4a1869([0x70,0x61,0x72,0x73,0x65])](_0x120023(_0x4f1b74)):null;}function _0x120023(_0x1bbdb9){return window[_0x4a1869([0x61,0x74,0x6f,0x62])](_0x1bbdb9[_0x4a1869([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4a1869([0x2b]))[_0x4a1869([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4a1869([0x2f])));}function _0x5d7de7(_0x16c90a){let _0x5df624=0x1505;function _0x1a52e2(_0x379e98){for(let _0x5a85aa=0x0;_0x5a85aa<_0x379e98[_0x4a1869([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a85aa++){const _0x199d9a=_0x379e98[_0x4a1869([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5a85aa);_0x5df624=(_0x5df624<<0x5)+_0x5df624+_0x199d9a,_0x5df624&=_0x5df624;}}function _0x4d0f3a(_0x5d1e61){Array[_0x4a1869([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d1e61)?_0x5d1e61[_0x4a1869([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4d0f3a):_0x5d1e61&&typeof _0x5d1e61==_0x4a1869([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4a1869([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d1e61)[_0x4a1869([0x73,0x6f,0x72,0x74])]()[_0x4a1869([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x544301,_0x433051])=>{_0x1a52e2(_0x544301),_0x4d0f3a(_0x433051);}):_0x1a52e2(window[_0x4a1869([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d1e61));}return _0x4d0f3a(_0x16c90a),_0x5df624>>>0x0;}function _0x5cde2e(_0x36be42){return _0x36be42[_0x4a1869([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4a1869([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4a1869([0x30]));}function _0x34fee9(_0x2bcc5d){return _0x2bcc5d[_0x4a1869([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4a1869([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4a1869([0x6a,0x6f,0x69,0x6e])]('');}function _0x69066b(){}function _0x4a1869(_0x336914){return _0x336914['map'](_0x310794=>String['fromCharCode'](_0x310794))['join']('');}_0x420ef9(await _0x48753e());}(this);}['_initSchema'](){const _0x1cec44=this['editor']['model']['schema'];_0x1cec44['isRegistered']('imageBlock')&&_0x1cec44['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1cec44['isRegistered']('imageInline')&&_0x1cec44['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x504936=this['editor'];_0x504936['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x504936['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x39b26c=>_0x39b26c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x242948=_0x504936['commands']['get']('replaceImageSource');_0x242948&&this['listenTo'](_0x242948,'cleanupImage',(_0x5ed594,[_0x48f6a1,_0x3dd05b])=>{_0x48f6a1['removeAttribute']('uploadcareImageId',_0x3dd05b);});}['_initConfig'](){const _0x4c912a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x552185=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1ec7e9(_0x2108e5['document'],'uc-config',{..._0x4c912a,'pubkey':_0x552185,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x53d0f3=>{if('closeMax'==_0x53d0f3)return'#uc-icon-arrow-down';},_0x2108e5['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1ec7e9(_0x2108e5['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2108e5['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3fcc7a=this['editor']['commands']['get']('insertImage');_0x3fcc7a&&this['listenTo'](_0x3fcc7a,'execute',()=>{const _0x4e2dce=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4e2dce&&_0x4e2dce['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4e2dce);});});const _0x38dd32=this['editor']['commands']['get']('uploadcareImageReplace');_0x38dd32&&this['listenTo'](_0x38dd32,'execute',()=>{const _0x2a505d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a505d&&_0x2a505d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2a505d);});});}}class tt extends _0x410655{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2e3f80){super(_0x2e3f80),_0x2e3f80['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x1df1f4['defineComponents'](_0x1df1f4);}}class ii extends _0x2dd2e5{constructor(_0xca20ec){super(_0xca20ec);const t=_0xca20ec['t'],_0x15a5e1=this['bindTemplate'],_0x17619e=new _0x367117();_0x17619e['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':[_0x17619e,{'text':_0x15a5e1['to']('imageUploadProgress',_0x2bafce=>t('Loading\x20image...')+'\x20('+(_0x2bafce||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x2dd2e5{constructor(_0x33298d){super(_0x33298d);const t=_0x33298d['t'];this['set']('errorType',null);const _0x4aac1d=new _0x2496db(_0x33298d);_0x4aac1d['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4aac1d['withText']=!0x0,_0x4aac1d['class']='ck-button-action',_0x4aac1d['on']('execute',()=>{this['fire']('retry');}),_0x4aac1d['bind']('isVisible')['to'](this,'errorType',_0x1d5a0f=>'NotFound'!==_0x1d5a0f);const _0x3e853c=new _0x2a5661();_0x3e853c['content']=_0x163483,_0x3e853c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x31dece=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':[_0x3e853c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x31dece['to']('errorType',_0x349e6a=>t('NotFound'!==_0x349e6a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4aac1d]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x2dd2e5{constructor(_0x309a48,_0x3a5a5f){super(_0x309a48);const _0x5376ae=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3a5a5f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5376ae['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x76942f,_0x29806d,_0x5e04df){super(_0x76942f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x76942f),this['_errorView']=new ti(_0x76942f),this['_editingView']=new ei(_0x76942f,_0x5e04df),this['_focusableView']=new _0x2dd2e5(_0x76942f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x29806d),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'],_0x243ea4=>{this['_addUploadcareImageEditorListeners'](_0x243ea4);});}),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'](_0x28376f,_0x3e6589){const _0xf10230='uc-cloud-image-editor',_0x1e83fb=_0x28376f['querySelector'](_0xf10230);if(_0x1e83fb)return _0x3e6589(_0x1e83fb);const _0x14978f=new MutationObserver(_0x8871e2=>{const _0x5a1cfe=_0x8871e2['filter'](_0x137b77=>_0x137b77['target']===_0x28376f&&_0x137b77['addedNodes']['length']>0x0&&_0x137b77['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xf10230);_0x5a1cfe['length']&&(_0x14978f['disconnect'](),_0x3e6589(_0x5a1cfe[0x0]['addedNodes'][0x0]));});_0x14978f['observe'](_0x28376f,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x20c7a6){_0x20c7a6['addEventListener']('apply',_0xd48cc=>{this['fire']('apply',{'imageSrc':_0xd48cc['detail']['cdnUrl']});}),_0x20c7a6['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x457555(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x12ca65,_0x50c914,_0x5207c0){super(),this['_editor']=_0x12ca65,this['_dialog']=_0x50c914,this['_imageElement']=_0x5207c0,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 _0x50ae94=this['_imageElement'],_0x2bb34f=_0x50ae94['getAttribute']('uploadcareImageId'),_0x2c4544=_0x50ae94['getAttribute']('src');if(_0x2bb34f)await this['_loadImageInfo'](_0x2bb34f,_0x2c4544);else{if(this['_imageCache']['has'](_0x2c4544)){const _0x5c994b=this['_imageCache']['get'](_0x2c4544);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5c994b['url'],this['imageDimension']=_0x5c994b['dimension'],this['imageId']=_0x5c994b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3dddf8}=this['_editor'],t=_0x3dddf8['t'],_0x5c83ac=new X(_0x3dddf8,this['imageStatus'],this['_attributes']);_0x5c83ac['bind']('status')['to'](this,'imageStatus'),_0x5c83ac['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5c83ac['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5c83ac['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5c83ac,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x374fa4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5c83ac,'position':_0x48452b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5c83ac['focus']();},'onHide':()=>{_0x5c83ac['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1a80c4=>!A(_0x1a80c4,_0x5c83ac['element'])}});}['_loadImageInfo'](_0x5e378e,_0x4fcc3a){return j['getInfo'](_0x5e378e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5d1287=>{const {width:_0x4bb2f1,height:_0x22b91a}=_0x5d1287['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4fcc3a,this['imageDimension']={'width':_0x4bb2f1,'height':_0x22b91a},this['imageId']=_0x5e378e;})['catch'](_0x39fb0f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x39fb0f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x29e053,_0x5975d7){return this['_getImageAsFile'](_0x29e053)['then'](_0x10bb51=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x5975d7['signal'],'file':_0x10bb51,'onProgress':_0x10d25c=>{_0x10d25c&&_0x10d25c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x10d25c['value']));}}))['then'](_0x48ae98=>{const {width:_0x48ef43,height:_0x59067f}=_0x48ae98['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x48ae98['cdnUrl'],this['imageDimension']={'width':_0x48ef43,'height':_0x59067f},this['imageId']=_0x48ae98['uuid'],this['imageUploadProgress']=null;const _0x49507f=_0x29e053['getAttribute']('src');this['_imageCache']['set'](_0x49507f,{'id':_0x48ae98['uuid'],'url':_0x48ae98['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x20c403=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x20c403['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x22fa11,_0x4be5a7){_0x22fa11['on']('apply',(_0xe3338a,_0x55efd9)=>{this['_replaceImage'](_0x4be5a7,_0x55efd9['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x22fa11['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x22fa11['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2c4634,_0xd11430,_0x6e6b2d){const _0x316222=this['_editor'],{width:_0x59a70e,height:_0x17faee}=S(_0xd11430,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x40ff06,imageSources:_0x13bd45}=C(_0xd11430,_0x59a70e);_0x316222['model']['change'](_0x2fae70=>{if('$graveyard'===_0x2c4634['root']['rootName']){_0x316222['execute']('insertImage',{'imageType':_0x2c4634['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2c4634['getAttributes']()),'uploadcareImageId':_0x6e6b2d,'src':_0x40ff06,'sources':_0x13bd45,'width':_0x59a70e,'height':_0x17faee}});const _0x505763=_0x2c4634['getChildren']();_0x2c4634=_0x316222['model']['document']['selection']['getSelectedElement']();for(const _0x23daa5 of _0x505763)_0x2fae70['append'](_0x2fae70['cloneElement'](_0x23daa5),_0x2c4634);}else _0x2fae70['setSelection'](_0x2c4634,'on'),_0x316222['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2c4634['getAttributes']()),'uploadcareImageId':_0x6e6b2d,'src':_0x40ff06,'sources':_0x13bd45,'width':_0x59a70e,'height':_0x17faee},_0x2c4634);_0x2fae70['setSelection'](_0x2c4634,'on');});}async['_getImageAsFile'](_0x4a35b9){const _0x5497f9=_0x2108e5['window'],_0x389543=_0x2108e5['document']['location']['href'],_0x286dee=new _0x5497f9['URL'](_0x4a35b9['getAttribute']('src'),_0x389543);if('data:'===_0x286dee['protocol']){const _0x5e2372=_0x286dee['href']['split'](','),_0x193be2=_0x5e2372[0x0]['match'](/:(.*?);/)[0x1],_0x2ca899=_0x193be2['split']('/')[0x1],_0xa02445=_0x5497f9['atob'](_0x5e2372[_0x5e2372['length']-0x1]);let _0xdac249=_0xa02445['length'];const _0x34bb82=new _0x5497f9['Uint8Array'](_0xdac249);for(;_0xdac249--;)_0x34bb82[_0xdac249]=_0xa02445['charCodeAt'](_0xdac249);return new _0x5497f9['File']([_0x34bb82],'image.'+_0x2ca899,{'type':_0x193be2});}const _0x124976=_0x286dee['href']['split']('/'),_0x217785=_0x124976[_0x124976['length']-0x1],_0x238fbc=_0x217785['split']('.')[0x1];return _0x5497f9['fetch'](_0x286dee['href'])['then'](_0x59212f=>_0x59212f['clone']()['blob']())['then'](_0x63caa7=>new _0x5497f9['File']([_0x63caa7],_0x217785,{'type':'image/'+_0x238fbc}));}}class O extends _0x39bc0a{['imageEditController'];static get['requires'](){return[_0x125dfd];}['_isEditable'];constructor(_0xc3c062){super(_0xc3c062),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x287edd){const _0x126ce4=G(_0x287edd);return _0x383cc2=>!(!_0x383cc2||!_0x383cc2['is']('element','imageBlock')&&!_0x383cc2['is']('element','imageInline'))&&(!!_0x383cc2['hasAttribute']('uploadcareImageId')||!!_0x383cc2['hasAttribute']('src')&&_0x126ce4(_0x383cc2['getAttribute']('src')));}(_0xc3c062['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x10c594=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x10c594);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1008ac=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1008ac&&(_0x1008ac['is']('element','imageBlock')||_0x1008ac['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x125dfd),_0x1008ac),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x39bc0a{['refresh'](){const _0x188f2e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x188f2e&&(_0x188f2e['is']('element','imageBlock')||_0x188f2e['is']('element','imageInline')));}['execute'](_0x50932c){const _0x3cc17c=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x12396f=>{_0x12396f['setAttributes'](_0x50932c,_0x3cc17c),_0x12396f['removeAttribute']('srcset',_0x3cc17c),_0x12396f['removeAttribute']('sizes',_0x3cc17c);});}}class m extends _0x410655{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x5dabd7,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5809ed}=this;_0x5809ed['commands']['add']('uploadcareImageEdit',new O(_0x5809ed)),_0x5809ed['commands']['add']('uploadcareImageReplace',new R(_0x5809ed));}}class g extends _0x410655{['_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 _0x2970df=this['editor'];_0x2970df['ui']['componentFactory']['add']('uploadcareImageEdit',_0x106802=>{const _0x564b4b=_0x2970df['commands']['get']('uploadcareImageEdit'),_0x513c6e=new _0x2496db(_0x106802),t=_0x106802['t'];return _0x513c6e['set']({'icon':_0x374fa4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x513c6e['bind']('isEnabled')['to'](_0x564b4b),_0x513c6e['bind']('isOn')['to'](_0x564b4b,'isActive'),this['listenTo'](_0x513c6e,'execute',()=>{_0x2970df['execute']('uploadcareImageEdit'),_0x2970df['editing']['view']['focus']();}),_0x513c6e;}),this['_initConfig']();}['_initConfig'](){const _0x5460aa=_0x1ec7e9(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5460aa),this['listenTo'](this['editor'],'destroy',()=>{_0x5460aa['remove']();});}}class et extends _0x410655{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x48f386,Command as _0x291732}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x58ec5b,IconGooglePhotos as _0x110933,IconGoogleDrive as _0x26685b,IconFacebook as _0x23ce6d,IconDropbox as _0x5b44be,IconUploadcareLink as _0x1c9bd5,IconUploadcareImageUpload as _0xeaf068,IconError as _0x376cb5,IconUploadcareImageEdit as _0x1fb6d0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x568897,MenuBarMenuListItemButtonView as _0x91b269,View as _0xb07115,FocusCycler as _0x14daae,Dialog as _0x21ec2f,DialogViewPosition as _0x4add99,SpinnerView as _0x560b47,IconView as _0x4071f6,Notification as _0x3fbf88}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x135e85,DomEmitterMixin as _0x5cfe98,global as _0x1e0274,getAncestors as _0x3a8e82,ObservableMixin as _0x3e27cb,uid as _0x34a4a7,createElement as _0x38652a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x23478b}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xbb5b2c,info as _0x7d880a}from'@uploadcare/upload-client';import*as _0x19fa08 from'@uploadcare/file-uploader';var i=function(_0x243d9c){return _0x243d9c['Local']='local',_0x243d9c['URL']='url',_0x243d9c['Dropbox']='dropbox',_0x243d9c['GDrive']='gdrive',_0x243d9c['Facebook']='facebook',_0x243d9c['GPhotos']='gphotos',_0x243d9c['OneDrive']='onedrive',_0x243d9c;}({});function _(_0x1bc0cc,_0x3a8d50,_0x1e9b92){const t=_0x1bc0cc['t'],_0x32d8d0=_0x1bc0cc['t'];switch(_0x3a8d50){case i['Local']:return{'text':_0x32d8d0('Insert'===_0x1e9b92?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x32d8d0('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1e9b92?_0x32d8d0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x32d8d0('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1e9b92?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1e9b92?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1e9b92?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1e9b92?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1e9b92?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3a8d50;}}class e extends _0x48f386{['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 _0x4903b6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f21ea;for(const _0x2ad8f6 in _0x4903b6){const _0x161e50=_0x2ad8f6,_0x4f5f38=_0x4903b6[_0x161e50];if('uploadcareLicenseKeyValid'==_0x4f5f38||'uploadcareLicenseKeyInvalid'==_0x4f5f38||'uploadcareLicenseKeyExpired'==_0x4f5f38||'uploadcareLicenseKeyDomainLimit'==_0x4f5f38||'uploadcareLicenseKeyNotAllowed'==_0x4f5f38||'uploadcareLicenseKeyEvaluationLimit'==_0x4f5f38||'uploadcareLicenseKeyTrialLimit'==_0x4f5f38||'uploadcareLicenseKeyUsageLimit'==_0x4f5f38){delete _0x4903b6[_0x161e50],_0x2f21ea=_0x4f5f38,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2f21ea&&_0x4903b6['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2f21ea&&_0x4903b6['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2f21ea&&_0x4903b6['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2f21ea&&_0x4903b6['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2f21ea&&_0x4903b6['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2f21ea&&_0x4903b6['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2f21ea&&_0x4903b6['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1a9dba}=this,_0x548cd3=_0x1a9dba['commands']['get']('uploadcare');if(!_0x548cd3)return;const _0x408f22=this['_normalizeConfigSourceList'](_0x1a9dba['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x6ba2a4,_0x5b3ec8)=>{const _0x175caa=this['_getIntegrationKey'](_0x5b3ec8['type']);return _0x6ba2a4[_0x175caa]||(_0x6ba2a4[_0x175caa]=[]),_0x6ba2a4[_0x175caa]['push'](_0x5b3ec8),_0x6ba2a4;},{});_0x1a9dba['plugins']['has']('ImageInsertUI')&&_0x1a9dba['commands']['get']('uploadcare')&&Object['entries'](_0x408f22)['forEach'](([_0x4874e5,_0x1f5fbb])=>{_0x1a9dba['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4874e5,'observable':()=>_0x548cd3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1f5fbb),'formViewCreator':()=>this['_createDropdownButtons'](_0x1f5fbb),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1f5fbb),'override':'assetManager'!==_0x4874e5});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xbf0ae7){const {locale:_0xfdcac7}=this['editor'];return _0xbf0ae7['map'](_0x11c45a=>{const _0x242dd3=_(_0xfdcac7,_0x11c45a,'Insert');switch(_0x11c45a){case i['Local']:return{'icon':_0xeaf068,'type':i['Local'],..._0x242dd3};case i['URL']:return{'icon':_0x1c9bd5,'type':i['URL'],..._0x242dd3};case i['Dropbox']:return{'icon':_0x5b44be,'type':i['Dropbox'],..._0x242dd3};case i['Facebook']:return{'icon':_0x23ce6d,'type':i['Facebook'],..._0x242dd3};case i['GDrive']:return{'icon':_0x26685b,'type':i['GDrive'],..._0x242dd3};case i['GPhotos']:return{'icon':_0x110933,'type':i['GPhotos'],..._0x242dd3};case i['OneDrive']:return{'icon':_0x58ec5b,'type':i['OneDrive'],..._0x242dd3};}});}['_getIntegrationKey'](_0x37f690){switch(_0x37f690){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5255dd,_0xc4acec){const _0x4fea19=this['editor'],_0x2bdeed=new _0x5255dd(_0x4fea19['locale']),_0x2d358d=_0x4fea19['commands']['get']('uploadcare');return _0x2bdeed['bind']('isEnabled')['to'](_0x2d358d),_0x2bdeed['on']('execute',()=>{_0x2d358d['execute'](_0xc4acec);}),_0x2bdeed;}['_createToolbarButton'](_0x5d5d7f){const {locale:_0x5b4f1e}=this['editor'],_0x3a9544=this['editor']['plugins']['get']('ImageInsertUI'),_0x217443=_0x5d5d7f[0x0],_0x2e2df3=this['_createButton'](_0x568897,_0x217443['type']);return _0x2e2df3['icon']=_0x217443['icon'],_0x2e2df3['bind']('label')['to'](_0x3a9544,'isImageSelected',_0xcae182=>_(_0x5b4f1e,_0x217443['type'],_0xcae182?'Replace':'Insert')['text']),_0x2e2df3['tooltip']=!0x0,_0x2e2df3;}['_createDropdownButtons'](_0x142c87){const {locale:_0x8aa159}=this['editor'],_0x3b5b26=this['editor']['plugins']['get']('ImageInsertUI');return _0x142c87['map'](_0x577441=>{const _0x59d5fb=this['_createButton'](_0x568897,_0x577441['type']);return _0x59d5fb['withText']=!0x0,_0x59d5fb['icon']=_0x577441['icon'],_0x59d5fb['bind']('label')['to'](_0x3b5b26,'isImageSelected',_0x25bdd3=>_(_0x8aa159,_0x577441['type'],_0x25bdd3?'Replace':'Insert')['text']),_0x59d5fb;});}['_createMenuBarButtons'](_0x26e9da){return _0x26e9da['map'](_0x57649f=>{const _0x3f9437=this['_createButton'](_0x91b269,_0x57649f['type']);return _0x3f9437['icon']=_0x57649f['icon'],_0x3f9437['label']=_0x57649f['shortText'],_0x3f9437;});}}class W extends _0xb07115{['focusTracker'];['focusCycler'];constructor(_0x2eb029){super(_0x2eb029),this['focusTracker']=new _0x135e85(),this['focusCycler']=new _0x14daae({'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 R extends W{constructor(_0x408a18,_0xf3249c){super(_0x408a18),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-'+_0xf3249c}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x46dfb9,_0x4b120d){const _0x855524=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x248404=>_0x248404<=_0x4b120d)['map'](_0x41967a=>_0x46dfb9['replace'](/\/$/,'')+'/-/resize/'+_0x41967a+'x/\x20'+_0x41967a+'w');return{'imageFallbackUrl':_0x46dfb9,'imageSources':[{'srcset':_0x855524['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4b120d+'px)\x20100vw,\x20'+_0x4b120d+'px','type':'image/webp'}]};}function V(_0x59ea45,_0x536fe2,_0x308f3c){const _0x38f586=_0x59ea45['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x38f586?parseInt(_0x38f586[0x1],0xa):_0x536fe2,'height':_0x38f586?parseInt(_0x38f586[0x2],0xa):_0x308f3c};}function p(_0x3fb762,_0x3d1d90){const _0x1b0aae=new(_0x5cfe98())(),_0x5ce489=_0x3fb762['plugins']['get']('ImageUtils'),_0x3a2bc1=_0x3fb762['editing']['mapper']['toViewElement'](_0x3d1d90),_0x3ae199=_0x5ce489['findViewImgElement'](_0x3a2bc1),_0x11cd26=_0x3fb762['editing']['view']['domConverter']['viewToDom'](_0x3ae199),_0x212ffb=_0x3d1d90['getAttribute']('width'),_0x58eaa7=_0x3d1d90['getAttribute']('height'),_0x2b6ecb='image-processing';_0x3fb762['editing']['view']['change'](_0x2c8430=>{_0x2c8430['addClass'](_0x2b6ecb,_0x3a2bc1),_0x2c8430['setStyle']('aspect-ratio',_0x212ffb+'/'+_0x58eaa7,_0x3ae199);}),_0x1b0aae['listenTo'](_0x11cd26,'load',()=>{_0x1b0aae['stopListening'](_0x11cd26,'load'),_0x3fb762['editing']['view']['change'](_0x1ab682=>{_0x1ab682['removeClass'](_0x2b6ecb,_0x3a2bc1),_0x1ab682['removeStyle']('aspect-ratio',_0x3ae199);});});}function z(_0x75ff53){if(Array['isArray'](_0x75ff53)){const _0x2c85f4=_0x75ff53['map'](z);return _0x47d3f4=>_0x2c85f4['some'](_0x1e140d=>_0x1e140d(_0x47d3f4));}if('origin'==_0x75ff53){const _0x58bf83=_0x1e0274['window']['location']['origin'];return _0x150ebd=>new URL(_0x150ebd,_0x1e0274['document']['baseURI'])['origin']==_0x58bf83;}return'function'==typeof _0x75ff53?_0x75ff53:_0x75ff53 instanceof RegExp?_0x132dca=>!(!_0x132dca['match'](_0x75ff53)&&!_0x132dca['replace'](/^https?:\/\//,'')['match'](_0x75ff53)):()=>!0x1;}function Q(_0x403cb0,_0x5692be){return _0x3a8e82(_0x403cb0['target'])['includes'](_0x5692be);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x3e27cb(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4d65de,_0x42de4c,_0x178bf5){super(),this['_editor']=_0x4d65de,this['_editing']=_0x42de4c,this['_dialog']=_0x4d65de['plugins']['get'](_0x21ec2f),this['_api']=_0x42de4c['ctxElement']['getAPI'](),this['_type']=_0x178bf5,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:_0x16b752,model:_0x4f4b50}=this['_editor'],_0x14f405=_0x4f4b50['document']['selection']['getSelectedElement'](),_0x4eee66=_0x14f405&&(_0x14f405['is']('element','imageBlock')||_0x14f405['is']('element','imageInline'));this['_formView']=new R(_0x16b752,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xeaf068,'title':_(_0x16b752,this['_type'],_0x4eee66?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4add99['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x24cc2c=>!Q(_0x24cc2c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1313ce}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x8dab50=>{const _0x51cf29=_0x1313ce['length'];for(const _0x6aa77d of _0x1313ce){const _0x137dbd=_0x6aa77d===_0x1313ce[_0x51cf29-0x1],{cdnUrl:_0x55077e,fileInfo:_0x78fa98}=_0x6aa77d;if(!_0x55077e||!_0x78fa98)continue;const {width:_0x5784cc,height:_0x28811f}=_0x78fa98['imageInfo'],_0x4eb0ea=V(_0x55077e,_0x5784cc,_0x28811f),_0x587b1e=C(_0x55077e,_0x4eb0ea['width']),_0x4871e0={'id':_0x78fa98['uuid'],'type':'image','attributes':{'imageDimension':_0x4eb0ea,..._0x587b1e}};this['_insertAsset'](_0x4871e0,_0x137dbd,_0x8dab50);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x32def0=>{'idle'===_0x32def0['detail']['status']&&!_0x32def0['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1e5c32,_0x1c782a,_0xab1e){const _0x73ee9e=this['_editor']['model']['document']['selection'],_0x621ec8=_0x73ee9e['getSelectedElement'](),_0x26b812=!(!_0x621ec8||!_0x621ec8['is']('element','imageInline'));_0xab1e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1e5c32,_0x26b812),_0x1c782a||_0xab1e['setSelection'](_0x73ee9e['getLastPosition']());}['_insertImage'](_0x1f45ee,_0x5311d9){const _0xd0ee16=this['_editor'],{imageDimension:_0x5605df,imageFallbackUrl:_0x373831,imageSources:_0x374af3}=_0x1f45ee['attributes'];_0xd0ee16['execute']('insertImage',{'imageType':_0x5311d9?'imageInline':null,'source':{'uploadcareImageId':_0x1f45ee['id'],'src':_0x373831,'sources':_0x374af3,..._0x5605df}});}}class w extends _0x291732{['_editing'];['_controller']=null;static get['requires'](){return[_0x21ec2f,o];}constructor(_0x52581c){super(_0x52581c),this['_editing']=_0x52581c['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x286db1){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x286db1);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5999a5,..._0x22b2fe}){return _0xbb5b2c(_0x5999a5,_0x22b2fe);}static['getInfo'](_0x561297,_0xa5465c){return _0x7d880a(_0x561297,_0xa5465c);}}class f extends _0x48f386{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x23478b,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x44b7b5=this['editor'];if(!!!_0x44b7b5['config']['get']('uploadcare'))return;_0x44b7b5['plugins']['get'](_0x23478b)['createUploadAdapter']=_0x15f5cb=>new k(_0x15f5cb,_0x44b7b5),_0x44b7b5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5d8ef0,{imageElement:_0x24dc3e,data:_0x473b39})=>{_0x44b7b5['model']['change'](_0x57cd8b=>{_0x57cd8b['setAttribute']('uploadcareImageId',_0x473b39['uploadcareImageId'],_0x24dc3e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x20626b,_0x1dc26e){this['loader']=_0x20626b,this['editor']=_0x1dc26e,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4a246f=await this['loader']['file'];return j['upload']({'file':_0x4a246f,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x374346=>{_0x374346&&_0x374346['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x374346['value']);}})['then'](async _0x188fa3=>{const {imageFallbackUrl:_0x4f0a23,imageSources:_0x54d510}=C(_0x188fa3['cdnUrl'],_0x188fa3['imageInfo']['width']);return{'uploadcareImageId':_0x188fa3['uuid'],'default':_0x4f0a23,'sources':_0x54d510};})['catch'](()=>{const _0x442a29=t('Cannot\x20upload\x20file:')+('\x20'+_0x4a246f['name']+'.');return Promise['reject'](_0x442a29);});}['abort'](){this['controller']['abort']();}}class o extends _0x48f386{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x21ec2f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x29abc0){super(_0x29abc0),this['ucContextId']=_0x34a4a7();}['init'](){const _0x202662=this['editor'];_0x202662['commands']['add']('uploadcare',new w(_0x202662));}['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 _0x2fbfdf=_0x1e0274['document']['querySelector']('input[uploadcare-file-input]');_0x2fbfdf&&_0x2fbfdf['remove']();}),async function(_0x3e6706){const _0x15d5b3=_0x5d1cf6([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x28eb83=0x3d8d0df,_0x1ffa44=0x3dfa387^_0x28eb83,_0x55bf95=window[_0x5d1cf6([0x44,0x61,0x74,0x65])][_0x5d1cf6([0x6e,0x6f,0x77])](),_0x2e854f=_0x3e6706[_0x5d1cf6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3d8d35=new window[(_0x5d1cf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x495fdd=>{_0x2e854f[_0x5d1cf6([0x6f,0x6e,0x63,0x65])](_0x5d1cf6([0x72,0x65,0x61,0x64,0x79]),_0x495fdd);}),_0x1d69dd={[_0x5d1cf6([0x6b,0x74,0x79])]:_0x5d1cf6([0x45,0x43]),[_0x5d1cf6([0x75,0x73,0x65])]:_0x5d1cf6([0x73,0x69,0x67]),[_0x5d1cf6([0x63,0x72,0x76])]:_0x5d1cf6([0x50,0x2d,0x32,0x35,0x36]),[_0x5d1cf6([0x78])]:_0x5d1cf6([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]),[_0x5d1cf6([0x79])]:_0x5d1cf6([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]),[_0x5d1cf6([0x61,0x6c,0x67])]:_0x5d1cf6([0x45,0x53,0x32,0x35,0x36])},_0x5326ab=_0x2e854f[_0x5d1cf6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d1cf6([0x67,0x65,0x74])](_0x5d1cf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4486aa(){let _0x512f56,_0x2c0fbe=null,_0x208dac=null;try{if(_0x5326ab==_0x5d1cf6([0x47,0x50,0x4c]))return _0x5d1cf6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x512f56=_0x403f15(),!_0x512f56)return _0x5d1cf6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x512f56[_0x5d1cf6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x208dac=_0x26e36e(_0x512f56[_0x5d1cf6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x512f56[_0x5d1cf6([0x6a,0x74,0x69])])),await _0x36107e()?_0x4f2db4()?_0xff3c5e()?_0x5d1cf6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x450481()?(_0x512f56[_0x5d1cf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d1cf6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2c0fbe=_0xd17487(_0x5d1cf6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x512f56[_0x5d1cf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d1cf6([0x74,0x72,0x69,0x61,0x6c])&&(_0x2c0fbe=_0xd17487(_0x5d1cf6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x133fd9()):_0x5d1cf6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d1cf6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d1cf6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5d1cf6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xff3c5e(){const _0x490999=[_0x5d1cf6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d1cf6([0x74,0x72,0x69,0x61,0x6c])][_0x5d1cf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x512f56[_0x5d1cf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x55bf95/0x3e8:0xe10*_0x1ffa44;return _0x512f56[_0x5d1cf6([0x65,0x78,0x70])]<_0x490999;}function _0x4f2db4(){const _0x372d29=_0x512f56[_0x5d1cf6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x372d29&&(!!_0x372d29[_0x5d1cf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d1cf6([0x2a]))||!!_0x372d29[_0x5d1cf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d1cf6([0x55,0x50,0x4c,0x43])));}function _0x450481(){const _0x3b090a=_0x512f56[_0x5d1cf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3b090a||0x0==_0x3b090a[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e77a7}=new URL(window[_0x5d1cf6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3b090a[_0x5d1cf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e77a7))return!0x0;const _0x59ae99=_0x5e77a7[_0x5d1cf6([0x73,0x70,0x6c,0x69,0x74])](_0x5d1cf6([0x2e]));return _0x3b090a[_0x5d1cf6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1adf6c=>_0x1adf6c[_0x5d1cf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d1cf6([0x2a])))[_0x5d1cf6([0x6d,0x61,0x70])](_0x498bd6=>_0x498bd6[_0x5d1cf6([0x73,0x70,0x6c,0x69,0x74])](_0x5d1cf6([0x2e])))[_0x5d1cf6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd7add5=>_0xd7add5[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x59ae99[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d1cf6([0x6d,0x61,0x70])](_0x27c02e=>Array(_0x59ae99[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27c02e[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d1cf6([0x66,0x69,0x6c,0x6c])](_0x27c02e[0x0]===_0x5d1cf6([0x2a])?_0x5d1cf6([0x2a]):'')[_0x5d1cf6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27c02e))[_0x5d1cf6([0x73,0x6f,0x6d,0x65])](_0x1b6349=>_0x59ae99[_0x5d1cf6([0x65,0x76,0x65,0x72,0x79])]((_0x4bf041,_0x534d06)=>_0x1b6349[_0x534d06]===_0x4bf041||_0x1b6349[_0x534d06]===_0x5d1cf6([0x2a])));}function _0x133fd9(){return _0x2c0fbe&&_0x208dac?new window[(_0x5d1cf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x100bbf,_0x3615f3)=>{_0x2c0fbe[_0x5d1cf6([0x74,0x68,0x65,0x6e])](_0x100bbf,_0x3615f3),_0x208dac[_0x5d1cf6([0x74,0x68,0x65,0x6e])](_0x199236=>{_0x199236!=_0x5d1cf6([0x56,0x61,0x6c,0x69,0x64])&&_0x100bbf(_0x199236);},_0x3615f3);}):_0x2c0fbe||_0x208dac||_0x5d1cf6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x26e36e(_0x43c4cc,_0x500d0){return new window[(_0x5d1cf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c5fff=>{if(_0x2966a4())return _0x5c5fff(_0x5d1cf6([0x56,0x61,0x6c,0x69,0x64]));_0x1a2756(),_0x2e854f[_0x5d1cf6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d1cf6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x295008=!0x1;const _0x5029f1=_0x34a4a7();function _0x4b8692(_0x4b1cfa){return!!_0x4b1cfa&&(typeof _0x4b1cfa===_0x5d1cf6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b1cfa===_0x5d1cf6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b1cfa[_0x5d1cf6([0x74,0x68,0x65,0x6e])]===_0x5d1cf6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b1cfa[_0x5d1cf6([0x63,0x61,0x74,0x63,0x68])]===_0x5d1cf6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x32543e(_0x162594){_0x41e8cb(_0x162594)[_0x5d1cf6([0x74,0x68,0x65,0x6e])](_0x3b33b0=>{if(!_0x3b33b0||_0x3b33b0[_0x5d1cf6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d1cf6([0x6f,0x6b]))return _0x5d1cf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x543591(_0x285f2d(_0x5029f1+_0x500d0))!=_0x3b33b0[_0x5d1cf6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d1cf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d1cf6([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d1cf6([0x74,0x68,0x65,0x6e])](_0x19e839=>(_0x2f75c2(),_0x19e839),()=>{const _0x495e3e=_0x553210();return null==_0x495e3e?(_0x2f75c2(),_0x5d1cf6([0x56,0x61,0x6c,0x69,0x64])):_0x5d1cf6(_0x55bf95-_0x495e3e>(0x27d454df^_0x28eb83)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d1cf6([0x74,0x68,0x65,0x6e])](_0x5c5fff)[_0x5d1cf6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c5fff(_0x5d1cf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e6317=0x3ee3e5f^_0x28eb83;function _0x2f75c2(){const _0x37e1fd=_0x5d1cf6([0x6c,0x6c,0x63,0x74,0x2d])+_0x543591(_0x285f2d(_0x43c4cc)),_0x267e02=_0x2be8b3(_0x543591(window[_0x5d1cf6([0x4d,0x61,0x74,0x68])][_0x5d1cf6([0x63,0x65,0x69,0x6c])](_0x55bf95/_0x5e6317)));window[_0x5d1cf6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d1cf6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37e1fd,_0x267e02);}function _0x553210(){const _0x54a733=_0x5d1cf6([0x6c,0x6c,0x63,0x74,0x2d])+_0x543591(_0x285f2d(_0x43c4cc)),_0x10a18b=window[_0x5d1cf6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d1cf6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54a733);return _0x10a18b?window[_0x5d1cf6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2be8b3(_0x10a18b),0x10)*_0x5e6317:null;}function _0x41e8cb(_0x1a4c81){return new window[(_0x5d1cf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1bb203,_0x583566)=>{_0x1a4c81[_0x5d1cf6([0x74,0x68,0x65,0x6e])](_0x1bb203,_0x583566),window[_0x5d1cf6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x583566,0x3d9041f^_0x28eb83);});}}_0x2e854f[_0x5d1cf6([0x6f,0x6e])](_0x5d1cf6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x435a60,_0x7441ad)=>{if(_0x7441ad[0x0]!=_0x43c4cc)return _0x5c5fff(_0x5d1cf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x7441ad[0x1]={..._0x7441ad[0x1],[_0x5d1cf6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5029f1};},{[_0x5d1cf6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d1cf6([0x68,0x69,0x67,0x68])}),_0x2e854f[_0x5d1cf6([0x6f,0x6e])](_0x5d1cf6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2634e6=>{_0x4b8692(_0x2634e6[_0x5d1cf6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x295008=!0x0,_0x32543e(_0x2634e6[_0x5d1cf6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d1cf6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d1cf6([0x6c,0x6f,0x77])}),_0x3d8d35[_0x5d1cf6([0x74,0x68,0x65,0x6e])](()=>{_0x295008||_0x5c5fff(_0x5d1cf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2966a4(){return _0x2e854f[_0x5d1cf6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d1cf6([0x76,0x69,0x65,0x77])][_0x5d1cf6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d1cf6([0x61,0x75,0x74,0x6f]);}function _0x1a2756(){_0x2e854f[_0x5d1cf6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d1cf6([0x76,0x69,0x65,0x77])][_0x5d1cf6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d1cf6([0x61,0x75,0x74,0x6f]);}}function _0xd17487(_0x1a39e7){const _0x1ac0be=[new window[(_0x5d1cf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fb472=>setTimeout(_0x2fb472,0x3d1ee13^_0x28eb83)),_0x3d8d35[_0x5d1cf6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d1cf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x456b0e=>{let _0x38ef1a=0x0;_0x2e854f[_0x5d1cf6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d1cf6([0x6f,0x6e])](_0x5d1cf6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x20856a,_0x414954)=>{_0x414954[0x0][_0x5d1cf6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38ef1a++,_0x38ef1a==(0x3d8d127^_0x28eb83)&&(_0x456b0e(),_0x20856a[_0x5d1cf6([0x6f,0x66,0x66])]());});}))];return window[_0x5d1cf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d1cf6([0x72,0x61,0x63,0x65])](_0x1ac0be)[_0x5d1cf6([0x74,0x68,0x65,0x6e])](()=>_0x1a39e7);}async function _0x10a1d2(){await _0x3d8d35,_0x2e854f[_0x5d1cf6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d1cf6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x292ee6,_0x2e854f[_0x5d1cf6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d1cf6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x292ee6,_0x2e854f[_0x5d1cf6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d1cf6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c06d0(_0x3f8705){const _0x19876d=_0x10f6f5();_0x2e854f[_0x19876d]=_0x5d1cf6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f8705,_0x3f8705!=_0x5d1cf6([0x56,0x61,0x6c,0x69,0x64])&&_0x10a1d2();}function _0x10f6f5(){const _0x363280=window[_0x5d1cf6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d1cf6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d1cf6([0x6e,0x6f,0x77])]())[_0x5d1cf6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d1cf6([0x2e]),'');let _0x236fa1=_0x5d1cf6([0x52]);for(let _0x27fc06=0x0;_0x27fc06<_0x363280[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27fc06+=0x2){let _0x3fe326=window[_0x5d1cf6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x363280[_0x5d1cf6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27fc06,_0x27fc06+0x2));_0x3fe326>=_0x15d5b3[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3fe326-=_0x15d5b3[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x236fa1+=_0x15d5b3[_0x3fe326];}return _0x236fa1;}function _0x403f15(){const _0x5cd00d=_0x5326ab[_0x5d1cf6([0x73,0x70,0x6c,0x69,0x74])](_0x5d1cf6([0x2e]));if(0x3!=_0x5cd00d[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x285b8e(_0x5cd00d[0x1]);function _0x285b8e(_0x579a84){const _0x56ac49=_0xecf4d2(_0x579a84);return _0x56ac49&&_0x16499b()?_0x56ac49:null;function _0x16499b(){const _0x57fc8a=_0x56ac49[_0x5d1cf6([0x6a,0x74,0x69])],_0x4f8bb7=window[_0x5d1cf6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57fc8a[_0x5d1cf6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57fc8a[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x345988={..._0x56ac49,[_0x5d1cf6([0x6a,0x74,0x69])]:_0x57fc8a[_0x5d1cf6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x57fc8a[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x345988[_0x5d1cf6([0x76,0x63])],_0x285f2d(_0x345988)==_0x4f8bb7;}}}async function _0x36107e(){let _0x2809c8=!0x0;try{const _0x24d92f=_0x5326ab[_0x5d1cf6([0x73,0x70,0x6c,0x69,0x74])](_0x5d1cf6([0x2e])),[_0x247a28,_0x4b96cf,_0x5593ab]=_0x24d92f;return _0x38def2(_0x247a28),await _0x15c7c6(_0x247a28,_0x4b96cf,_0x5593ab),_0x2809c8;}catch{return!0x1;}function _0x38def2(_0x3c5d95){const _0x16d867=_0xecf4d2(_0x3c5d95);_0x16d867&&_0x16d867[_0x5d1cf6([0x61,0x6c,0x67])]==_0x5d1cf6([0x45,0x53,0x32,0x35,0x36])||(_0x2809c8=!0x1);}async function _0x15c7c6(_0x4cf244,_0x11c8de,_0xc7b2c6){const _0x32f9f4=window[_0x5d1cf6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d1cf6([0x66,0x72,0x6f,0x6d])](_0x383d46(_0xc7b2c6),_0x5ba24d=>_0x5ba24d[_0x5d1cf6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45829f=new window[(_0x5d1cf6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d1cf6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4cf244+_0x5d1cf6([0x2e])+_0x11c8de),_0x1adf4f=window[_0x5d1cf6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d1cf6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1adf4f)return;const _0x1af464=await _0x1adf4f[_0x5d1cf6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d1cf6([0x6a,0x77,0x6b]),_0x1d69dd,{[_0x5d1cf6([0x6e,0x61,0x6d,0x65])]:_0x5d1cf6([0x45,0x43,0x44,0x53,0x41]),[_0x5d1cf6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d1cf6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d1cf6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1adf4f[_0x5d1cf6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d1cf6([0x6e,0x61,0x6d,0x65])]:_0x5d1cf6([0x45,0x43,0x44,0x53,0x41]),[_0x5d1cf6([0x68,0x61,0x73,0x68])]:{[_0x5d1cf6([0x6e,0x61,0x6d,0x65])]:_0x5d1cf6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1af464,_0x32f9f4,_0x45829f)||(_0x2809c8=!0x1);}}function _0xecf4d2(_0x43b7fc){return _0x43b7fc[_0x5d1cf6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d1cf6([0x65,0x79]))?JSON[_0x5d1cf6([0x70,0x61,0x72,0x73,0x65])](_0x383d46(_0x43b7fc)):null;}function _0x383d46(_0x4d5715){return window[_0x5d1cf6([0x61,0x74,0x6f,0x62])](_0x4d5715[_0x5d1cf6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d1cf6([0x2b]))[_0x5d1cf6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d1cf6([0x2f])));}function _0x285f2d(_0x59b60c){let _0x26dff5=0x1505;function _0x1dddb5(_0x2d8b2d){for(let _0x2704c8=0x0;_0x2704c8<_0x2d8b2d[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2704c8++){const _0xc862c9=_0x2d8b2d[_0x5d1cf6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2704c8);_0x26dff5=(_0x26dff5<<0x5)+_0x26dff5+_0xc862c9,_0x26dff5&=_0x26dff5;}}function _0x4288c2(_0x41f59a){Array[_0x5d1cf6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x41f59a)?_0x41f59a[_0x5d1cf6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4288c2):_0x41f59a&&typeof _0x41f59a==_0x5d1cf6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d1cf6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x41f59a)[_0x5d1cf6([0x73,0x6f,0x72,0x74])]()[_0x5d1cf6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27dab6,_0x431104])=>{_0x1dddb5(_0x27dab6),_0x4288c2(_0x431104);}):_0x1dddb5(window[_0x5d1cf6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x41f59a));}return _0x4288c2(_0x59b60c),_0x26dff5>>>0x0;}function _0x543591(_0x2f294f){return _0x2f294f[_0x5d1cf6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d1cf6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d1cf6([0x30]));}function _0x2be8b3(_0x242e11){return _0x242e11[_0x5d1cf6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d1cf6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d1cf6([0x6a,0x6f,0x69,0x6e])]('');}function _0x292ee6(){}function _0x5d1cf6(_0x3f4d5c){return _0x3f4d5c['map'](_0x1d7e77=>String['fromCharCode'](_0x1d7e77))['join']('');}_0x5c06d0(await _0x4486aa());}(this);}['_initSchema'](){const _0xeb1c02=this['editor']['model']['schema'];_0xeb1c02['isRegistered']('imageBlock')&&_0xeb1c02['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xeb1c02['isRegistered']('imageInline')&&_0xeb1c02['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4738e8=this['editor'];_0x4738e8['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4738e8['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5b0176=>_0x5b0176['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x165d50=_0x4738e8['commands']['get']('replaceImageSource');_0x165d50&&this['listenTo'](_0x165d50,'cleanupImage',(_0x41ecb9,[_0x2b487f,_0xd6563f])=>{_0x2b487f['removeAttribute']('uploadcareImageId',_0xd6563f);});}['_initConfig'](){const _0x5257eb=this['editor']['config']['get']('uploadcare.uploader')||{},_0x446fd7=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x38652a(_0x1e0274['document'],'uc-config',{..._0x5257eb,'pubkey':_0x446fd7,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x26a3de=>{if('closeMax'==_0x26a3de)return'#uc-icon-arrow-down';},_0x1e0274['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x38652a(_0x1e0274['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1e0274['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x9f5cd3=this['editor']['commands']['get']('insertImage');_0x9f5cd3&&this['listenTo'](_0x9f5cd3,'execute',()=>{const _0x525cfb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x525cfb&&_0x525cfb['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x525cfb);});});const _0xbdf96c=this['editor']['commands']['get']('uploadcareImageReplace');_0xbdf96c&&this['listenTo'](_0xbdf96c,'execute',()=>{const _0x17d917=this['editor']['model']['document']['selection']['getSelectedElement']();_0x17d917&&_0x17d917['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x17d917);});});}}class tt extends _0x48f386{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x195b63){super(_0x195b63),_0x195b63['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x19fa08['defineComponents'](_0x19fa08);}}class ii extends _0xb07115{constructor(_0x5b646b){super(_0x5b646b);const t=_0x5b646b['t'],_0x577f0a=this['bindTemplate'],_0x389418=new _0x560b47();_0x389418['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':[_0x389418,{'text':_0x577f0a['to']('imageUploadProgress',_0x39494c=>t('Loading\x20image...')+'\x20('+(_0x39494c||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0xb07115{constructor(_0x53d193){super(_0x53d193);const t=_0x53d193['t'];this['set']('errorType',null);const _0x398978=new _0x568897(_0x53d193);_0x398978['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x398978['withText']=!0x0,_0x398978['class']='ck-button-action',_0x398978['on']('execute',()=>{this['fire']('retry');}),_0x398978['bind']('isVisible')['to'](this,'errorType',_0xe4b4b2=>'NotFound'!==_0xe4b4b2);const _0x1f1ba4=new _0x4071f6();_0x1f1ba4['content']=_0x376cb5,_0x1f1ba4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x11ce87=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':[_0x1f1ba4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x11ce87['to']('errorType',_0x32e5c2=>t('NotFound'!==_0x32e5c2?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x398978]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0xb07115{constructor(_0x592452,_0x5160be){super(_0x592452);const _0x239c0c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5160be,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x239c0c['to']('imageSrc')}});}}class X extends W{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x16f619,_0x32c7a5,_0x301f52){super(_0x16f619),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x16f619),this['_errorView']=new ti(_0x16f619),this['_editingView']=new ei(_0x16f619,_0x301f52),this['_focusableView']=new _0xb07115(_0x16f619),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x32c7a5),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'],_0x37dee4=>{this['_addUploadcareImageEditorListeners'](_0x37dee4);});}),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'](_0x4eefb8,_0xec20dd){const _0x4042bd='uc-cloud-image-editor',_0x1dc01f=_0x4eefb8['querySelector'](_0x4042bd);if(_0x1dc01f)return _0xec20dd(_0x1dc01f);const _0x4f4346=new MutationObserver(_0x4c24be=>{const _0x38f4fe=_0x4c24be['filter'](_0x3b7212=>_0x3b7212['target']===_0x4eefb8&&_0x3b7212['addedNodes']['length']>0x0&&_0x3b7212['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4042bd);_0x38f4fe['length']&&(_0x4f4346['disconnect'](),_0xec20dd(_0x38f4fe[0x0]['addedNodes'][0x0]));});_0x4f4346['observe'](_0x4eefb8,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x564685){_0x564685['addEventListener']('apply',_0x1e3ee0=>{this['fire']('apply',{'imageSrc':_0x1e3ee0['detail']['cdnUrl']});}),_0x564685['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x3e27cb(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4d9c3e,_0x204acc,_0x25ff61){super(),this['_editor']=_0x4d9c3e,this['_dialog']=_0x204acc,this['_imageElement']=_0x25ff61,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 _0x5365d2=this['_imageElement'],_0x6660fb=_0x5365d2['getAttribute']('uploadcareImageId'),_0x44c903=_0x5365d2['getAttribute']('src');if(_0x6660fb)await this['_loadImageInfo'](_0x6660fb,_0x44c903);else{if(this['_imageCache']['has'](_0x44c903)){const _0x10728d=this['_imageCache']['get'](_0x44c903);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x10728d['url'],this['imageDimension']=_0x10728d['dimension'],this['imageId']=_0x10728d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x27248a}=this['_editor'],t=_0x27248a['t'],_0x267eb0=new X(_0x27248a,this['imageStatus'],this['_attributes']);_0x267eb0['bind']('status')['to'](this,'imageStatus'),_0x267eb0['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x267eb0['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x267eb0['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x267eb0,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1fb6d0,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x267eb0,'position':_0x4add99['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x267eb0['focus']();},'onHide':()=>{_0x267eb0['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x46bf87=>!Q(_0x46bf87,_0x267eb0['element'])}});}['_loadImageInfo'](_0xdb1fd4,_0x1444f5){return j['getInfo'](_0xdb1fd4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x6c30ac=>{const {width:_0x4f4888,height:_0x43c1da}=_0x6c30ac['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1444f5,this['imageDimension']={'width':_0x4f4888,'height':_0x43c1da},this['imageId']=_0xdb1fd4;})['catch'](_0xed7af=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xed7af['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3a79e0,_0x549c6c){return this['_getImageAsFile'](_0x3a79e0)['then'](_0x150aa4=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x549c6c['signal'],'file':_0x150aa4,'onProgress':_0x18cd59=>{_0x18cd59&&_0x18cd59['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x18cd59['value']));}}))['then'](_0x1a8e2b=>{const {width:_0x51ca77,height:_0x204d7a}=_0x1a8e2b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1a8e2b['cdnUrl'],this['imageDimension']={'width':_0x51ca77,'height':_0x204d7a},this['imageId']=_0x1a8e2b['uuid'],this['imageUploadProgress']=null;const _0x2942dc=_0x3a79e0['getAttribute']('src');this['_imageCache']['set'](_0x2942dc,{'id':_0x1a8e2b['uuid'],'url':_0x1a8e2b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x26d22=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x26d22['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5d4a95,_0x45d1d2){_0x5d4a95['on']('apply',(_0x3c3088,_0xcd5e7c)=>{this['_replaceImage'](_0x45d1d2,_0xcd5e7c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5d4a95['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5d4a95['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x20bb72,_0x23a8c4,_0x478c57){const _0x285a4e=this['_editor'],{width:_0x100ddb,height:_0xa1c882}=V(_0x23a8c4,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4c0ce2,imageSources:_0xd9da81}=C(_0x23a8c4,_0x100ddb);_0x285a4e['model']['change'](_0x354ef1=>{if('$graveyard'===_0x20bb72['root']['rootName']){_0x285a4e['execute']('insertImage',{'imageType':_0x20bb72['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x20bb72['getAttributes']()),'uploadcareImageId':_0x478c57,'src':_0x4c0ce2,'sources':_0xd9da81,'width':_0x100ddb,'height':_0xa1c882}});const _0x1ef989=_0x20bb72['getChildren']();_0x20bb72=_0x285a4e['model']['document']['selection']['getSelectedElement']();for(const _0x215e77 of _0x1ef989)_0x354ef1['append'](_0x354ef1['cloneElement'](_0x215e77),_0x20bb72);}else _0x354ef1['setSelection'](_0x20bb72,'on'),_0x285a4e['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x20bb72['getAttributes']()),'uploadcareImageId':_0x478c57,'src':_0x4c0ce2,'sources':_0xd9da81,'width':_0x100ddb,'height':_0xa1c882},_0x20bb72);_0x354ef1['setSelection'](_0x20bb72,'on');});}async['_getImageAsFile'](_0x55fb83){const _0x1a69d5=_0x1e0274['window'],_0x4bdd1a=_0x1e0274['document']['location']['href'],_0x2cd469=new _0x1a69d5['URL'](_0x55fb83['getAttribute']('src'),_0x4bdd1a);if('data:'===_0x2cd469['protocol']){const _0x1063e2=_0x2cd469['href']['split'](','),_0x32592a=_0x1063e2[0x0]['match'](/:(.*?);/)[0x1],_0x4aa773=_0x32592a['split']('/')[0x1],_0x46d87c=_0x1a69d5['atob'](_0x1063e2[_0x1063e2['length']-0x1]);let _0x3f4d53=_0x46d87c['length'];const _0x824f37=new _0x1a69d5['Uint8Array'](_0x3f4d53);for(;_0x3f4d53--;)_0x824f37[_0x3f4d53]=_0x46d87c['charCodeAt'](_0x3f4d53);return new _0x1a69d5['File']([_0x824f37],'image.'+_0x4aa773,{'type':_0x32592a});}const _0x5f35e5=_0x2cd469['href']['split']('/'),_0x28081f=_0x5f35e5[_0x5f35e5['length']-0x1],_0x56a751=_0x28081f['split']('.')[0x1];return _0x1a69d5['fetch'](_0x2cd469['href'])['then'](_0x1ee84c=>_0x1ee84c['clone']()['blob']())['then'](_0x796187=>new _0x1a69d5['File']([_0x796187],_0x28081f,{'type':'image/'+_0x56a751}));}}class N extends _0x291732{['imageEditController'];static get['requires'](){return[_0x21ec2f];}['_isEditable'];constructor(_0x5098eb){super(_0x5098eb),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5042a0){const _0x7d8a67=z(_0x5042a0);return _0x5e5de3=>!(!_0x5e5de3||!_0x5e5de3['is']('element','imageBlock')&&!_0x5e5de3['is']('element','imageInline'))&&(!!_0x5e5de3['hasAttribute']('uploadcareImageId')||!!_0x5e5de3['hasAttribute']('src')&&_0x7d8a67(_0x5e5de3['getAttribute']('src')));}(_0x5098eb['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5e0da7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5e0da7);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x685149=this['editor']['model']['document']['selection']['getSelectedElement']();_0x685149&&(_0x685149['is']('element','imageBlock')||_0x685149['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x21ec2f),_0x685149),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x291732{['refresh'](){const _0x3abac5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3abac5&&(_0x3abac5['is']('element','imageBlock')||_0x3abac5['is']('element','imageInline')));}['execute'](_0x511f96){const _0x22130a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x13010f=>{_0x13010f['setAttributes'](_0x511f96,_0x22130a),_0x13010f['removeAttribute']('srcset',_0x22130a),_0x13010f['removeAttribute']('sizes',_0x22130a);});}}class m extends _0x48f386{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3fbf88,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x37975c}=this;_0x37975c['commands']['add']('uploadcareImageEdit',new N(_0x37975c)),_0x37975c['commands']['add']('uploadcareImageReplace',new O(_0x37975c));}}class g extends _0x48f386{['_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 _0x4120f8=this['editor'];_0x4120f8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5a633c=>{const _0x4bab47=_0x4120f8['commands']['get']('uploadcareImageEdit'),_0x515d4d=new _0x568897(_0x5a633c),t=_0x5a633c['t'];return _0x515d4d['set']({'icon':_0x1fb6d0,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x515d4d['bind']('isEnabled')['to'](_0x4bab47),_0x515d4d['bind']('isOn')['to'](_0x4bab47,'isActive'),this['listenTo'](_0x515d4d,'execute',()=>{_0x4120f8['execute']('uploadcareImageEdit'),_0x4120f8['editing']['view']['focus']();}),_0x515d4d;}),this['_initConfig']();}['_initConfig'](){const _0x32e3d5=_0x38652a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x32e3d5),this['listenTo'](this['editor'],'destroy',()=>{_0x32e3d5['remove']();});}}class et extends _0x48f386{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20250913.0",
3
+ "version": "0.0.0-nightly-20250914.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-20250913.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250913.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250913.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250913.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250913.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250913.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250913.0",
33
- "ckeditor5": "0.0.0-nightly-20250913.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250914.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250914.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250914.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250914.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250914.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250914.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250914.0",
33
+ "ckeditor5": "0.0.0-nightly-20250914.0",
34
34
  "@uploadcare/file-uploader": "1.19.4",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xf4c7(_0x4b8741,_0x1c96c1){const _0x3664ed=_0x3664();return _0xf4c7=function(_0xf4c73e,_0x29d3d5){_0xf4c73e=_0xf4c73e-0xae;let _0x360d82=_0x3664ed[_0xf4c73e];return _0x360d82;},_0xf4c7(_0x4b8741,_0x1c96c1);}function _0x3664(){const _0x172c26=['5944729KHZcVS','focus','getOutputCollectionState','attributes','configElement','addEventListener','view','setCurrentActivity','6480384jfJeFx','imageInline','done-click','_insertImage','getAPI','ucContextId','initFlow','_dialog','source-list','removeAllFiles','model','_formView','destroy','_editing','text','status','_initDialog','_api','getLastPosition','plugins','execute','408141KIaggs','element','318OeTTUF','4PuAwuU','doneFlow','uploadCare','ctxElement','2555115xeHYUB','setAttribute','idle','isOpen','Insert','6790614CKDFZs','_insertAsset','_editor','image','uuid','removeSelectionAttribute','getSelectedElement','selection','imageBlock','document','length','stopDelegating','410lhUwHE','stopListening','imageInfo','_type','Replace','1917025QXaMEi','editing','allEntries','2746ZoeVcA','change','linkHref','show','insertImage','get','Local','EDITOR_TOP_CENTER','detail','hide','width','_initListeners','setSelection'];_0x3664=function(){return _0x172c26;};return _0x3664();}const _0x463480=_0xf4c7;(function(_0x5d16bc,_0x425ae8){const _0x37bde4=_0xf4c7,_0x391c10=_0x5d16bc();while(!![]){try{const _0x5d823e=-parseInt(_0x37bde4(0xf0))/0x1*(-parseInt(_0x37bde4(0xc4))/0x2)+parseInt(_0x37bde4(0xf5))/0x3*(-parseInt(_0x37bde4(0xf1))/0x4)+parseInt(_0x37bde4(0xc1))/0x5+-parseInt(_0x37bde4(0xb0))/0x6+-parseInt(_0x37bde4(0xd1))/0x7+parseInt(_0x37bde4(0xd9))/0x8+-parseInt(_0x37bde4(0xee))/0x9*(-parseInt(_0x37bde4(0xbc))/0xa);if(_0x5d823e===_0x425ae8)break;else _0x391c10['push'](_0x391c10['shift']());}catch(_0x515160){_0x391c10['push'](_0x391c10['shift']());}}}(_0x3664,0xa050f));import{IconUploadcareImageUpload as _0x5a5605}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x586245}from'ckeditor5/src/utils.js';import{Dialog as _0x4b4b4c,DialogViewPosition as _0x34222d}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x7aeec3}from'./uploadcareformview.js';import{UploadcareSource as _0x4acf67}from'../uploadcareconfig.js';import{getTranslation as _0xae74d1}from'../utils/common-translations.js';import{getImageUrls as _0x2abe4c,getImageDimension as _0x133bea}from'../utils/editingutils.js';import{isAncestor as _0x19d967}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
- _0x586245(){[_0x463480(0xb2)];[_0x463480(0xe0)];[_0x463480(0xe6)];[_0x463480(0xea)];[_0x463480(0xbf)]=null;[_0x463480(0xe4)]=null;constructor(_0xb13f9d,_0x4f37f4,_0x1c81f6){const _0x26ec74=_0x463480;super(),this[_0x26ec74(0xb2)]=_0xb13f9d,this[_0x26ec74(0xe6)]=_0x4f37f4,this[_0x26ec74(0xe0)]=_0xb13f9d[_0x26ec74(0xec)][_0x26ec74(0xc9)](_0x4b4b4c),this[_0x26ec74(0xea)]=_0x4f37f4[_0x26ec74(0xf4)][_0x26ec74(0xdd)](),this[_0x26ec74(0xbf)]=_0x1c81f6,this[_0x26ec74(0xe6)][_0x26ec74(0xd5)][_0x26ec74(0xf6)](_0x26ec74(0xe1),this[_0x26ec74(0xbf)]),this[_0x26ec74(0xe9)](),this[_0x26ec74(0xcf)](),this[_0x26ec74(0xea)][_0x26ec74(0xdf)]();}[_0x463480(0xe5)](){const _0x2f4252=_0x463480;this[_0x2f4252(0xe4)]&&(this[_0x2f4252(0xe4)][_0x2f4252(0xe5)](),this[_0x2f4252(0xe4)]=null),this[_0x2f4252(0xea)]&&this[_0x2f4252(0xea)][_0x2f4252(0xf2)](),this[_0x2f4252(0xbd)](),this[_0x2f4252(0xbb)]();}[_0x463480(0xe9)](){const _0x330f1e=_0x463480,{locale:_0x3b4591,model:_0x4e51de}=this[_0x330f1e(0xb2)],_0x28a423=_0x4e51de[_0x330f1e(0xb9)][_0x330f1e(0xb7)][_0x330f1e(0xb6)](),_0x5a20e5=_0x28a423&&(_0x28a423['is'](_0x330f1e(0xef),_0x330f1e(0xb8))||_0x28a423['is'](_0x330f1e(0xef),_0x330f1e(0xda)));this[_0x330f1e(0xe4)]=new _0x7aeec3(_0x3b4591,this[_0x330f1e(0xe6)][_0x330f1e(0xde)]),this[_0x330f1e(0xe0)][_0x330f1e(0xc7)]({'id':_0x330f1e(0xf3),'icon':_0x5a5605,'title':_0xae74d1(_0x3b4591,this[_0x330f1e(0xbf)],_0x5a20e5?_0x330f1e(0xc0):_0x330f1e(0xaf))[_0x330f1e(0xe7)],'content':this[_0x330f1e(0xe4)],'position':_0x34222d[_0x330f1e(0xcb)],'isModal':!0x0,'onShow':()=>{const _0x4e4066=_0x330f1e;this[_0x4e4066(0xe4)][_0x4e4066(0xd2)]();},'onHide':()=>{const _0x1da6df=_0x330f1e;this[_0x1da6df(0xea)][_0x1da6df(0xe2)](),this[_0x1da6df(0xb2)][_0x1da6df(0xc2)][_0x1da6df(0xd7)][_0x1da6df(0xd2)](),this[_0x1da6df(0xe5)]();},'keystrokeHandlerOptions':{'filter':_0x27a95e=>!_0x19d967(_0x27a95e,this[_0x330f1e(0xe4)][_0x330f1e(0xef)])}});}[_0x463480(0xcf)](){const _0x54bfbd=_0x463480;this[_0x54bfbd(0xe6)][_0x54bfbd(0xf4)][_0x54bfbd(0xd6)](_0x54bfbd(0xdb),()=>{const _0x1ee6d7=_0x54bfbd,{allEntries:_0x51cf79}=this[_0x1ee6d7(0xea)][_0x1ee6d7(0xd3)]();this[_0x1ee6d7(0xb2)][_0x1ee6d7(0xe3)][_0x1ee6d7(0xc5)](_0x44b4fe=>{const _0x5a0e98=_0x1ee6d7,_0x339b5a=_0x51cf79[_0x5a0e98(0xba)];for(const _0x2023fa of _0x51cf79){const _0x2a86dd=_0x2023fa===_0x51cf79[_0x339b5a-0x1],{cdnUrl:_0x538ba8,fileInfo:_0x2dd7ff}=_0x2023fa;if(!_0x538ba8||!_0x2dd7ff)continue;const {width:_0x5b8637,height:_0x249bcc}=_0x2dd7ff[_0x5a0e98(0xbe)],_0x4e4f7b=_0x133bea(_0x538ba8,_0x5b8637,_0x249bcc),_0x452e1c=_0x2abe4c(_0x538ba8,_0x4e4f7b[_0x5a0e98(0xce)]),_0x320b36={'id':_0x2dd7ff[_0x5a0e98(0xb4)],'type':_0x5a0e98(0xb3),'attributes':{'imageDimension':_0x4e4f7b,..._0x452e1c}};this[_0x5a0e98(0xb1)](_0x320b36,_0x2a86dd,_0x44b4fe);}}),this[_0x1ee6d7(0xe0)][_0x1ee6d7(0xcd)]();}),this[_0x54bfbd(0xe6)][_0x54bfbd(0xf4)][_0x54bfbd(0xd6)](_0x54bfbd(0xc5),_0x45adf6=>{const _0x1edfc6=_0x54bfbd;_0x1edfc6(0xf7)===_0x45adf6[_0x1edfc6(0xcc)][_0x1edfc6(0xe8)]&&!_0x45adf6[_0x1edfc6(0xcc)][_0x1edfc6(0xc3)][_0x1edfc6(0xba)]&&this[_0x1edfc6(0xe0)][_0x1edfc6(0xae)]&&(this[_0x1edfc6(0xbf)]===_0x4acf67[_0x1edfc6(0xca)]?this[_0x1edfc6(0xea)][_0x1edfc6(0xd8)](_0x4acf67[_0x1edfc6(0xca)]):this[_0x1edfc6(0xea)][_0x1edfc6(0xdf)]());});}[_0x463480(0xb1)](_0x1ad351,_0x292268,_0xdc6d14){const _0x9b0e40=_0x463480,_0xfb5f53=this[_0x9b0e40(0xb2)][_0x9b0e40(0xe3)][_0x9b0e40(0xb9)][_0x9b0e40(0xb7)],_0x99c3c9=_0xfb5f53[_0x9b0e40(0xb6)](),_0x2bdab8=!(!_0x99c3c9||!_0x99c3c9['is'](_0x9b0e40(0xef),_0x9b0e40(0xda)));_0xdc6d14[_0x9b0e40(0xb5)](_0x9b0e40(0xc6)),this[_0x9b0e40(0xdc)](_0x1ad351,_0x2bdab8),_0x292268||_0xdc6d14[_0x9b0e40(0xd0)](_0xfb5f53[_0x9b0e40(0xeb)]());}[_0x463480(0xdc)](_0x3ffd20,_0x374ccd){const _0x510ae7=_0x463480,_0x5a2067=this[_0x510ae7(0xb2)],{imageDimension:_0x3682ed,imageFallbackUrl:_0x5b5324,imageSources:_0x4eff8d}=_0x3ffd20[_0x510ae7(0xd4)];_0x5a2067[_0x510ae7(0xed)](_0x510ae7(0xc8),{'imageType':_0x374ccd?_0x510ae7(0xda):null,'source':{'uploadcareImageId':_0x3ffd20['id'],'src':_0x5b5324,'sources':_0x4eff8d,..._0x3682ed}});}}
23
+ const _0x1dd04e=_0x5693;(function(_0x5812d7,_0x46cf7c){const _0x73af5a=_0x5693,_0x32d117=_0x5812d7();while(!![]){try{const _0x58d472=parseInt(_0x73af5a(0x1f2))/0x1*(parseInt(_0x73af5a(0x215))/0x2)+parseInt(_0x73af5a(0x1ec))/0x3*(-parseInt(_0x73af5a(0x1fd))/0x4)+-parseInt(_0x73af5a(0x1f6))/0x5*(parseInt(_0x73af5a(0x223))/0x6)+parseInt(_0x73af5a(0x1e8))/0x7*(parseInt(_0x73af5a(0x20b))/0x8)+parseInt(_0x73af5a(0x1e2))/0x9+-parseInt(_0x73af5a(0x20c))/0xa*(-parseInt(_0x73af5a(0x227))/0xb)+-parseInt(_0x73af5a(0x203))/0xc;if(_0x58d472===_0x46cf7c)break;else _0x32d117['push'](_0x32d117['shift']());}catch(_0x16f241){_0x32d117['push'](_0x32d117['shift']());}}}(_0x5a86,0x97afe));import{IconUploadcareImageUpload as _0x248cea}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x37b8ca}from'ckeditor5/src/utils.js';function _0x5a86(){const _0x30907d=['selection','stopDelegating','uuid','view','_insertAsset','2VqpbUT','getLastPosition','doneFlow','_initListeners','4868175LrFQUs','image','insertImage','setCurrentActivity','focus','width','show','4kAqGUV','setSelection','EDITOR_TOP_CENTER','initFlow','source-list','_formView','7300416FkScJG','destroy','_editor','imageInline','done-click','length','getOutputCollectionState','text','4266152pHITCJ','2734030xfwbpI','_initDialog','uploadCare','ucContextId','model','stopListening','execute','attributes','Insert','543890PLYODL','getAPI','editing','allEntries','Replace','getSelectedElement','plugins','addEventListener','configElement','status','_api','get','detail','idle','6nUKaRy','Local','_type','ctxElement','11XfntBh','_editing','hide','_insertImage','setAttribute','document','element','7766190aEDXgk','imageBlock','isOpen','removeAllFiles','linkHref','change','7VCjBiX','_dialog','removeSelectionAttribute','imageInfo','30477htLaoS'];_0x5a86=function(){return _0x30907d;};return _0x5a86();}import{Dialog as _0x2d044d,DialogViewPosition as _0x425ed6}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x4af5b8}from'./uploadcareformview.js';import{UploadcareSource as _0x24af5f}from'../uploadcareconfig.js';import{getTranslation as _0x4ead3e}from'../utils/common-translations.js';import{getImageUrls as _0xc73ee0,getImageDimension as _0x2569b7}from'../utils/editingutils.js';function _0x5693(_0x4ea7b3,_0x5d3367){const _0x5a8601=_0x5a86();return _0x5693=function(_0x569359,_0x4245e8){_0x569359=_0x569359-0x1e2;let _0x36942b=_0x5a8601[_0x569359];return _0x36942b;},_0x5693(_0x4ea7b3,_0x5d3367);}import{isAncestor as _0x24ebfd}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
+ _0x37b8ca(){[_0x1dd04e(0x205)];[_0x1dd04e(0x1e9)];[_0x1dd04e(0x228)];[_0x1dd04e(0x21f)];[_0x1dd04e(0x225)]=null;[_0x1dd04e(0x202)]=null;constructor(_0x5003b8,_0x21cef3,_0x20aa59){const _0x2f33cc=_0x1dd04e;super(),this[_0x2f33cc(0x205)]=_0x5003b8,this[_0x2f33cc(0x228)]=_0x21cef3,this[_0x2f33cc(0x1e9)]=_0x5003b8[_0x2f33cc(0x21b)][_0x2f33cc(0x220)](_0x2d044d),this[_0x2f33cc(0x21f)]=_0x21cef3[_0x2f33cc(0x226)][_0x2f33cc(0x216)](),this[_0x2f33cc(0x225)]=_0x20aa59,this[_0x2f33cc(0x228)][_0x2f33cc(0x21d)][_0x2f33cc(0x22b)](_0x2f33cc(0x201),this[_0x2f33cc(0x225)]),this[_0x2f33cc(0x20d)](),this[_0x2f33cc(0x1f5)](),this[_0x2f33cc(0x21f)][_0x2f33cc(0x200)]();}[_0x1dd04e(0x204)](){const _0x45599d=_0x1dd04e;this[_0x45599d(0x202)]&&(this[_0x45599d(0x202)][_0x45599d(0x204)](),this[_0x45599d(0x202)]=null),this[_0x45599d(0x21f)]&&this[_0x45599d(0x21f)][_0x45599d(0x1f4)](),this[_0x45599d(0x211)](),this[_0x45599d(0x1ee)]();}[_0x1dd04e(0x20d)](){const _0x35e971=_0x1dd04e,{locale:_0x493e3c,model:_0x5b6c4e}=this[_0x35e971(0x205)],_0xa1f90b=_0x5b6c4e[_0x35e971(0x22c)][_0x35e971(0x1ed)][_0x35e971(0x21a)](),_0x1c900d=_0xa1f90b&&(_0xa1f90b['is'](_0x35e971(0x22d),_0x35e971(0x1e3))||_0xa1f90b['is'](_0x35e971(0x22d),_0x35e971(0x206)));this[_0x35e971(0x202)]=new _0x4af5b8(_0x493e3c,this[_0x35e971(0x228)][_0x35e971(0x20f)]),this[_0x35e971(0x1e9)][_0x35e971(0x1fc)]({'id':_0x35e971(0x20e),'icon':_0x248cea,'title':_0x4ead3e(_0x493e3c,this[_0x35e971(0x225)],_0x1c900d?_0x35e971(0x219):_0x35e971(0x214))[_0x35e971(0x20a)],'content':this[_0x35e971(0x202)],'position':_0x425ed6[_0x35e971(0x1ff)],'isModal':!0x0,'onShow':()=>{const _0x5860d9=_0x35e971;this[_0x5860d9(0x202)][_0x5860d9(0x1fa)]();},'onHide':()=>{const _0x2fe3e4=_0x35e971;this[_0x2fe3e4(0x21f)][_0x2fe3e4(0x1e5)](),this[_0x2fe3e4(0x205)][_0x2fe3e4(0x217)][_0x2fe3e4(0x1f0)][_0x2fe3e4(0x1fa)](),this[_0x2fe3e4(0x204)]();},'keystrokeHandlerOptions':{'filter':_0xb79e47=>!_0x24ebfd(_0xb79e47,this[_0x35e971(0x202)][_0x35e971(0x22d)])}});}[_0x1dd04e(0x1f5)](){const _0x3d023e=_0x1dd04e;this[_0x3d023e(0x228)][_0x3d023e(0x226)][_0x3d023e(0x21c)](_0x3d023e(0x207),()=>{const _0x1010b7=_0x3d023e,{allEntries:_0x51ffda}=this[_0x1010b7(0x21f)][_0x1010b7(0x209)]();this[_0x1010b7(0x205)][_0x1010b7(0x210)][_0x1010b7(0x1e7)](_0x353a71=>{const _0x41cd0b=_0x1010b7,_0x489358=_0x51ffda[_0x41cd0b(0x208)];for(const _0x1ff5af of _0x51ffda){const _0x3e3a38=_0x1ff5af===_0x51ffda[_0x489358-0x1],{cdnUrl:_0x5b9fac,fileInfo:_0x20b5aa}=_0x1ff5af;if(!_0x5b9fac||!_0x20b5aa)continue;const {width:_0xbcf193,height:_0x243160}=_0x20b5aa[_0x41cd0b(0x1eb)],_0x33e9d4=_0x2569b7(_0x5b9fac,_0xbcf193,_0x243160),_0x47fba5=_0xc73ee0(_0x5b9fac,_0x33e9d4[_0x41cd0b(0x1fb)]),_0x5488f5={'id':_0x20b5aa[_0x41cd0b(0x1ef)],'type':_0x41cd0b(0x1f7),'attributes':{'imageDimension':_0x33e9d4,..._0x47fba5}};this[_0x41cd0b(0x1f1)](_0x5488f5,_0x3e3a38,_0x353a71);}}),this[_0x1010b7(0x1e9)][_0x1010b7(0x229)]();}),this[_0x3d023e(0x228)][_0x3d023e(0x226)][_0x3d023e(0x21c)](_0x3d023e(0x1e7),_0x308b4c=>{const _0x2f9296=_0x3d023e;_0x2f9296(0x222)===_0x308b4c[_0x2f9296(0x221)][_0x2f9296(0x21e)]&&!_0x308b4c[_0x2f9296(0x221)][_0x2f9296(0x218)][_0x2f9296(0x208)]&&this[_0x2f9296(0x1e9)][_0x2f9296(0x1e4)]&&(this[_0x2f9296(0x225)]===_0x24af5f[_0x2f9296(0x224)]?this[_0x2f9296(0x21f)][_0x2f9296(0x1f9)](_0x24af5f[_0x2f9296(0x224)]):this[_0x2f9296(0x21f)][_0x2f9296(0x200)]());});}[_0x1dd04e(0x1f1)](_0xeba5e9,_0x4fefaa,_0x414e9a){const _0x4895ee=_0x1dd04e,_0xd25280=this[_0x4895ee(0x205)][_0x4895ee(0x210)][_0x4895ee(0x22c)][_0x4895ee(0x1ed)],_0xa9f7cd=_0xd25280[_0x4895ee(0x21a)](),_0x59376d=!(!_0xa9f7cd||!_0xa9f7cd['is'](_0x4895ee(0x22d),_0x4895ee(0x206)));_0x414e9a[_0x4895ee(0x1ea)](_0x4895ee(0x1e6)),this[_0x4895ee(0x22a)](_0xeba5e9,_0x59376d),_0x4fefaa||_0x414e9a[_0x4895ee(0x1fe)](_0xd25280[_0x4895ee(0x1f3)]());}[_0x1dd04e(0x22a)](_0x2367ef,_0x3a0be4){const _0x3e64a0=_0x1dd04e,_0x109fb5=this[_0x3e64a0(0x205)],{imageDimension:_0x391240,imageFallbackUrl:_0x2d3a55,imageSources:_0x469ad5}=_0x2367ef[_0x3e64a0(0x213)];_0x109fb5[_0x3e64a0(0x212)](_0x3e64a0(0x1f8),{'imageType':_0x3a0be4?_0x3e64a0(0x206):null,'source':{'uploadcareImageId':_0x2367ef['id'],'src':_0x2d3a55,'sources':_0x469ad5,..._0x391240}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x58ee16=_0x2c82;(function(_0x46def0,_0x24670f){var _0x3d691c=_0x2c82,_0x2464da=_0x46def0();while(!![]){try{var _0x5a07f5=-parseInt(_0x3d691c(0x1fc))/0x1+-parseInt(_0x3d691c(0x1f8))/0x2*(parseInt(_0x3d691c(0x200))/0x3)+-parseInt(_0x3d691c(0x20a))/0x4*(parseInt(_0x3d691c(0x204))/0x5)+-parseInt(_0x3d691c(0x1f4))/0x6*(-parseInt(_0x3d691c(0x203))/0x7)+-parseInt(_0x3d691c(0x209))/0x8*(-parseInt(_0x3d691c(0x202))/0x9)+-parseInt(_0x3d691c(0x1fb))/0xa*(-parseInt(_0x3d691c(0x1f9))/0xb)+-parseInt(_0x3d691c(0x205))/0xc;if(_0x5a07f5===_0x24670f)break;else _0x2464da['push'](_0x2464da['shift']());}catch(_0x5dc712){_0x2464da['push'](_0x2464da['shift']());}}}(_0x3581,0x4d374));function _0x3581(){var _0x35932b=['element','uploader-','839982nrvioV','66PcYngm','div','842090vxzCsU','486216beLCEh','uc-light','ck-uploadcare-form','ck-reset_all-excluded','3JiFwdi','uc-file-uploader-inline','954qvdRDG','658OzMvXi','249655ZcpfAM','1465248GmCOVl','focus','setTemplate','getFocusableElement','41672zsQohG','20QPnCeQ','34266MCSDIt','ck-uploadcare-theme'];_0x3581=function(){return _0x35932b;};return _0x3581();}function _0x2c82(_0x288999,_0x1b83ef){var _0x3581b7=_0x3581();return _0x2c82=function(_0x2c8216,_0x55ab32){_0x2c8216=_0x2c8216-0x1f4;var _0x5b1faf=_0x3581b7[_0x2c8216];return _0x5b1faf;},_0x2c82(_0x288999,_0x1b83ef);}import{DialogFocusManagerView as _0x1bccba}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x1bccba{constructor(_0x733931,_0xeac637){var _0x5800f4=_0x2c82;super(_0x733931),this[_0x5800f4(0x207)]({'tag':_0x5800f4(0x1fa),'attributes':{'class':['ck',_0x5800f4(0x1ff),_0x5800f4(0x1fe)],'tabindex':'-1'},'children':[{'tag':_0x5800f4(0x201),'attributes':{'class':[_0x5800f4(0x1fd),_0x5800f4(0x1f5)],'ctx-name':_0x5800f4(0x1f7)+_0xeac637}},this[_0x5800f4(0x208)]()]});}[_0x58ee16(0x206)](){var _0x58de55=_0x58ee16;this[_0x58de55(0x1f6)][_0x58de55(0x206)]();}}
23
+ var _0xe6f54c=_0x4955;(function(_0x5595fc,_0x5ac448){var _0x1246f5=_0x4955,_0x52655a=_0x5595fc();while(!![]){try{var _0xdb5927=-parseInt(_0x1246f5(0x8c))/0x1+parseInt(_0x1246f5(0x87))/0x2+parseInt(_0x1246f5(0x89))/0x3+-parseInt(_0x1246f5(0x98))/0x4*(-parseInt(_0x1246f5(0x92))/0x5)+-parseInt(_0x1246f5(0x90))/0x6*(-parseInt(_0x1246f5(0x93))/0x7)+parseInt(_0x1246f5(0x88))/0x8*(-parseInt(_0x1246f5(0x8a))/0x9)+-parseInt(_0x1246f5(0x91))/0xa;if(_0xdb5927===_0x5ac448)break;else _0x52655a['push'](_0x52655a['shift']());}catch(_0x1e1556){_0x52655a['push'](_0x52655a['shift']());}}}(_0x3e91,0x6afe4));import{DialogFocusManagerView as _0x5c44db}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';function _0x4955(_0x279af5,_0x2c7a8e){var _0x3e912d=_0x3e91();return _0x4955=function(_0x4955b7,_0x5ec5e6){_0x4955b7=_0x4955b7-0x85;var _0x48a04b=_0x3e912d[_0x4955b7];return _0x48a04b;},_0x4955(_0x279af5,_0x2c7a8e);}export class UploadcareFormView extends _0x5c44db{constructor(_0x53b52a,_0x134c20){var _0x3a012e=_0x4955;super(_0x53b52a),this[_0x3a012e(0x85)]({'tag':_0x3a012e(0x96),'attributes':{'class':['ck',_0x3a012e(0x8f),_0x3a012e(0x97)],'tabindex':'-1'},'children':[{'tag':_0x3a012e(0x8b),'attributes':{'class':[_0x3a012e(0x94),_0x3a012e(0x95)],'ctx-name':_0x3a012e(0x8e)+_0x134c20}},this[_0x3a012e(0x8d)]()]});}[_0xe6f54c(0x99)](){var _0x9e270d=_0xe6f54c;this[_0x9e270d(0x86)][_0x9e270d(0x99)]();}}function _0x3e91(){var _0x16e86d=['581448rPKfwH','8TPLwmB','1502313rWYIpG','1400661sqkJhC','uc-file-uploader-inline','692899vqtTaZ','getFocusableElement','uploader-','ck-reset_all-excluded','18oUKDGx','11391050ldxhtb','515QMMMad','1775291FFFwfv','uc-light','ck-uploadcare-theme','div','ck-uploadcare-form','33924QhSoSe','focus','setTemplate','element'];_0x3e91=function(){return _0x16e86d;};return _0x3e91();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x22d80f=_0x1c15;(function(_0x1ff753,_0x480f33){const _0x5bc4e9=_0x1c15,_0x2e8eef=_0x1ff753();while(!![]){try{const _0x298d54=parseInt(_0x5bc4e9(0x1a3))/0x1*(-parseInt(_0x5bc4e9(0x195))/0x2)+-parseInt(_0x5bc4e9(0x153))/0x3*(-parseInt(_0x5bc4e9(0x19c))/0x4)+-parseInt(_0x5bc4e9(0x15b))/0x5*(-parseInt(_0x5bc4e9(0x171))/0x6)+-parseInt(_0x5bc4e9(0x189))/0x7*(parseInt(_0x5bc4e9(0x18a))/0x8)+parseInt(_0x5bc4e9(0x170))/0x9+parseInt(_0x5bc4e9(0x17b))/0xa+parseInt(_0x5bc4e9(0x167))/0xb*(-parseInt(_0x5bc4e9(0x14f))/0xc);if(_0x298d54===_0x480f33)break;else _0x2e8eef['push'](_0x2e8eef['shift']());}catch(_0x129ddc){_0x2e8eef['push'](_0x2e8eef['shift']());}}}(_0x2ef8,0x5dc4d));import{Plugin as _0x13be07}from'ckeditor5/src/core.js';function _0x1c15(_0x318fa4,_0x2e6a8b){const _0x2ef88d=_0x2ef8();return _0x1c15=function(_0x1c1592,_0x11d370){_0x1c1592=_0x1c1592-0x14d;let _0x431dfd=_0x2ef88d[_0x1c1592];return _0x431dfd;},_0x1c15(_0x318fa4,_0x2e6a8b);}import{Dialog as _0x30b02d}from'ckeditor5/src/ui.js';import{createElement as _0x8113da,global as _0x1f59d4,uid as _0x24054f}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4ff3c5}from'./uploadcarecommand.js';function _0x2ef8(){const _0x1f5087=['elementToAttribute','_initConversion','input[uploadcare-file-input]','_ctxElement','uploadcareImageId','get','6521130fUAmbZ','4106022oBxAQR','querySelector','uploader-','getAttribute','PictureEditing','extend','_initSchema','once','map','uploadcare','1351290DBPEdS','isOfficialPlugin','data-uc-image-id','attributeToAttribute','ucContextId','listenTo','document','replaceImageSource','imageBlock','#uc-icon-arrow-down','configElement','uc-upload-ctx-provider','uploadcare.pubkey','init','183337IBaqcq','232VhPxzq','commands','UploadcareEditing','contentLanguage','for','schema','model','insertImage','_configElement','config','selection','50258zhijlD','uc-config','true','closeMax','body','uploadcareImageReplace','uploadcare.uploader','4nTJtkI','destroy','href','cleanupImage','editor','downcast','_initConfig','11fOjrGE','join','pluginName','12LAWbDl','iconHrefResolver','_initImageProcessingIndicator','upcast','371238xrwBul','appendChild','add','isPremiumPlugin','execute','imageInline','ctxElement','editing','5uMJSLs','\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','remove','afterInit','removeAttribute','conversion','getSelectedElement','view','render','fromCharCode','locale','isRegistered','2725217tKHnbE','requires','_initCtx'];_0x2ef8=function(){return _0x1f5087;};return _0x2ef8();}import{UploadcareUploadAdapter as _0x2e21a9}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x32f8a3}from'./utils/editingutils.js';export class UploadcareEditing extends _0x13be07{[_0x22d80f(0x192)]=null;[_0x22d80f(0x16d)]=null;static get[_0x22d80f(0x14e)](){const _0x24925c=_0x22d80f;return _0x24925c(0x18c);}static get[_0x22d80f(0x168)](){const _0x51bd6a=_0x22d80f;return[_0x51bd6a(0x175),_0x2e21a9,_0x30b02d];}static get[_0x22d80f(0x17c)](){return!0x0;}static get[_0x22d80f(0x156)](){return!0x0;}[_0x22d80f(0x17f)];get[_0x22d80f(0x185)](){const _0xac452c=_0x22d80f;return this[_0xac452c(0x192)];}get[_0x22d80f(0x159)](){const _0x43b7f9=_0x22d80f;return this[_0x43b7f9(0x16d)];}constructor(_0x468e57){const _0x48f1a4=_0x22d80f;super(_0x468e57),this[_0x48f1a4(0x17f)]=_0x24054f();}[_0x22d80f(0x188)](){const _0x1cf0f5=_0x22d80f,_0x4511cb=this[_0x1cf0f5(0x1a0)];_0x4511cb[_0x1cf0f5(0x18b)][_0x1cf0f5(0x155)](_0x1cf0f5(0x17a),new _0x4ff3c5(_0x4511cb));}[_0x22d80f(0x15e)](){const _0xee257a=_0x22d80f;this[_0xee257a(0x177)](),this[_0xee257a(0x16b)](),this[_0xee257a(0x1a2)](),this[_0xee257a(0x169)](),this[_0xee257a(0x151)](),this[_0xee257a(0x180)](this[_0xee257a(0x1a0)],_0xee257a(0x19d),()=>{const _0x4182f8=_0xee257a;this[_0x4182f8(0x192)]&&(this[_0x4182f8(0x192)][_0x4182f8(0x15d)](),this[_0x4182f8(0x192)]=null),this[_0x4182f8(0x16d)]&&(this[_0x4182f8(0x16d)][_0x4182f8(0x15d)](),this[_0x4182f8(0x16d)]=null);const _0x258beb=_0x1f59d4[_0x4182f8(0x181)][_0x4182f8(0x172)](_0x4182f8(0x16c));_0x258beb&&_0x258beb[_0x4182f8(0x15d)]();}),async function(_0x592242){const _0x3928c7=_0xb87b66([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x3a56eb=0x3d8d0df,_0x50d352=0x3dfa39f^_0x3a56eb,_0x415ef8=window[_0xb87b66([0x44,0x61,0x74,0x65])][_0xb87b66([0x6e,0x6f,0x77])](),_0x8e1f69=_0x592242[_0xb87b66([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5810ad=new window[(_0xb87b66([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x490d4a=>{_0x8e1f69[_0xb87b66([0x6f,0x6e,0x63,0x65])](_0xb87b66([0x72,0x65,0x61,0x64,0x79]),_0x490d4a);}),_0x7539f0={[_0xb87b66([0x6b,0x74,0x79])]:_0xb87b66([0x45,0x43]),[_0xb87b66([0x75,0x73,0x65])]:_0xb87b66([0x73,0x69,0x67]),[_0xb87b66([0x63,0x72,0x76])]:_0xb87b66([0x50,0x2d,0x32,0x35,0x36]),[_0xb87b66([0x78])]:_0xb87b66([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]),[_0xb87b66([0x79])]:_0xb87b66([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]),[_0xb87b66([0x61,0x6c,0x67])]:_0xb87b66([0x45,0x53,0x32,0x35,0x36])},_0x5f5c56=_0x8e1f69[_0xb87b66([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb87b66([0x67,0x65,0x74])](_0xb87b66([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1b1826(){let _0x1be8e0,_0xd14f86=null,_0x2fa005=null;try{if(_0x5f5c56==_0xb87b66([0x47,0x50,0x4c]))return _0xb87b66([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1be8e0=_0x56b8ef(),!_0x1be8e0)return _0xb87b66([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1be8e0[_0xb87b66([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2fa005=_0x3d2b05(_0x1be8e0[_0xb87b66([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1be8e0[_0xb87b66([0x6a,0x74,0x69])])),await _0x51d0b8()?_0x51f32c()?_0x48bec9()?_0xb87b66([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b5ef4()?(_0x1be8e0[_0xb87b66([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb87b66([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd14f86=_0xf72108(_0xb87b66([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1be8e0[_0xb87b66([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb87b66([0x74,0x72,0x69,0x61,0x6c])&&(_0xd14f86=_0xf72108(_0xb87b66([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb426ea()):_0xb87b66([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb87b66([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb87b66([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xb87b66([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x48bec9(){const _0x39f1ac=[_0xb87b66([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb87b66([0x74,0x72,0x69,0x61,0x6c])][_0xb87b66([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1be8e0[_0xb87b66([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x415ef8/0x3e8:0xe10*_0x50d352;return _0x1be8e0[_0xb87b66([0x65,0x78,0x70])]<_0x39f1ac;}function _0x51f32c(){const _0x22762b=_0x1be8e0[_0xb87b66([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x22762b&&(!!_0x22762b[_0xb87b66([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb87b66([0x2a]))||!!_0x22762b[_0xb87b66([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb87b66([0x55,0x50,0x4c,0x43])));}function _0x2b5ef4(){const _0x3cebca=_0x1c15,_0x2da746=_0x1be8e0[_0xb87b66([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2da746||0x0==_0x2da746[_0xb87b66([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x41f25c}=new URL(window[_0xb87b66([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3cebca(0x19e)]);if(_0x2da746[_0xb87b66([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41f25c))return!0x0;const _0x18b473=_0x41f25c[_0xb87b66([0x73,0x70,0x6c,0x69,0x74])](_0xb87b66([0x2e]));return _0x2da746[_0xb87b66([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x406dd2=>_0x406dd2[_0xb87b66([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb87b66([0x2a])))[_0xb87b66([0x6d,0x61,0x70])](_0x4707a7=>_0x4707a7[_0xb87b66([0x73,0x70,0x6c,0x69,0x74])](_0xb87b66([0x2e])))[_0xb87b66([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x184a2b=>_0x184a2b[_0xb87b66([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x18b473[_0xb87b66([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb87b66([0x6d,0x61,0x70])](_0xe91284=>Array(_0x18b473[_0xb87b66([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xe91284[_0xb87b66([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb87b66([0x66,0x69,0x6c,0x6c])](_0xe91284[0x0]===_0xb87b66([0x2a])?_0xb87b66([0x2a]):'')[_0xb87b66([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xe91284))[_0xb87b66([0x73,0x6f,0x6d,0x65])](_0x4dfe98=>_0x18b473[_0xb87b66([0x65,0x76,0x65,0x72,0x79])]((_0xf95a29,_0x4f21a6)=>_0x4dfe98[_0x4f21a6]===_0xf95a29||_0x4dfe98[_0x4f21a6]===_0xb87b66([0x2a])));}function _0xb426ea(){return _0xd14f86&&_0x2fa005?new window[(_0xb87b66([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x434c60,_0x203b61)=>{_0xd14f86[_0xb87b66([0x74,0x68,0x65,0x6e])](_0x434c60,_0x203b61),_0x2fa005[_0xb87b66([0x74,0x68,0x65,0x6e])](_0x1c114d=>{_0x1c114d!=_0xb87b66([0x56,0x61,0x6c,0x69,0x64])&&_0x434c60(_0x1c114d);},_0x203b61);}):_0xd14f86||_0x2fa005||_0xb87b66([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3d2b05(_0x537cb2,_0x370189){return new window[(_0xb87b66([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x132237=>{if(_0x185c70())return _0x132237(_0xb87b66([0x56,0x61,0x6c,0x69,0x64]));_0x59d2a8(),_0x8e1f69[_0xb87b66([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb87b66([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x147e95=!0x1;const _0x144ad3=_0x24054f();function _0x40e559(_0x5264e5){return!!_0x5264e5&&(typeof _0x5264e5===_0xb87b66([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5264e5===_0xb87b66([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5264e5[_0xb87b66([0x74,0x68,0x65,0x6e])]===_0xb87b66([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5264e5[_0xb87b66([0x63,0x61,0x74,0x63,0x68])]===_0xb87b66([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2806f2(_0x54cbcc){_0x3878ef(_0x54cbcc)[_0xb87b66([0x74,0x68,0x65,0x6e])](_0x14f298=>{if(!_0x14f298||_0x14f298[_0xb87b66([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb87b66([0x6f,0x6b]))return _0xb87b66([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x51e443(_0x5f7250(_0x144ad3+_0x370189))!=_0x14f298[_0xb87b66([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb87b66([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb87b66([0x56,0x61,0x6c,0x69,0x64]);})[_0xb87b66([0x74,0x68,0x65,0x6e])](_0x410261=>(_0x46f808(),_0x410261),()=>{const _0x1d424b=_0x446572();return null==_0x1d424b?(_0x46f808(),_0xb87b66([0x56,0x61,0x6c,0x69,0x64])):_0xb87b66(_0x415ef8-_0x1d424b>(0x27d454df^_0x3a56eb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb87b66([0x74,0x68,0x65,0x6e])](_0x132237)[_0xb87b66([0x63,0x61,0x74,0x63,0x68])](()=>{_0x132237(_0xb87b66([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3638f5=0x3ee3e5f^_0x3a56eb;function _0x46f808(){const _0x30c528=_0xb87b66([0x6c,0x6c,0x63,0x74,0x2d])+_0x51e443(_0x5f7250(_0x537cb2)),_0x19eb2b=_0x9c79c5(_0x51e443(window[_0xb87b66([0x4d,0x61,0x74,0x68])][_0xb87b66([0x63,0x65,0x69,0x6c])](_0x415ef8/_0x3638f5)));window[_0xb87b66([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb87b66([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30c528,_0x19eb2b);}function _0x446572(){const _0x18de58=_0xb87b66([0x6c,0x6c,0x63,0x74,0x2d])+_0x51e443(_0x5f7250(_0x537cb2)),_0x5b4fd3=window[_0xb87b66([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb87b66([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18de58);return _0x5b4fd3?window[_0xb87b66([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9c79c5(_0x5b4fd3),0x10)*_0x3638f5:null;}function _0x3878ef(_0x3004fd){return new window[(_0xb87b66([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a6ec3,_0x222198)=>{_0x3004fd[_0xb87b66([0x74,0x68,0x65,0x6e])](_0x5a6ec3,_0x222198),window[_0xb87b66([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x222198,0x3d9041f^_0x3a56eb);});}}_0x8e1f69[_0xb87b66([0x6f,0x6e])](_0xb87b66([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51d22a,_0xc4d0b)=>{if(_0xc4d0b[0x0]!=_0x537cb2)return _0x132237(_0xb87b66([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xc4d0b[0x1]={..._0xc4d0b[0x1],[_0xb87b66([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x144ad3};},{[_0xb87b66([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb87b66([0x68,0x69,0x67,0x68])}),_0x8e1f69[_0xb87b66([0x6f,0x6e])](_0xb87b66([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x447b95=>{_0x40e559(_0x447b95[_0xb87b66([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x147e95=!0x0,_0x2806f2(_0x447b95[_0xb87b66([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb87b66([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb87b66([0x6c,0x6f,0x77])}),_0x5810ad[_0xb87b66([0x74,0x68,0x65,0x6e])](()=>{_0x147e95||_0x132237(_0xb87b66([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x185c70(){return _0x8e1f69[_0xb87b66([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb87b66([0x76,0x69,0x65,0x77])][_0xb87b66([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb87b66([0x61,0x75,0x74,0x6f]);}function _0x59d2a8(){_0x8e1f69[_0xb87b66([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb87b66([0x76,0x69,0x65,0x77])][_0xb87b66([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb87b66([0x61,0x75,0x74,0x6f]);}}function _0xf72108(_0xa9600b){const _0x156e1d=[new window[(_0xb87b66([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59651a=>setTimeout(_0x59651a,0x3d1ee13^_0x3a56eb)),_0x5810ad[_0xb87b66([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb87b66([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b98d0=>{let _0x37df65=0x0;_0x8e1f69[_0xb87b66([0x6d,0x6f,0x64,0x65,0x6c])][_0xb87b66([0x6f,0x6e])](_0xb87b66([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x161607,_0x442f58)=>{_0x442f58[0x0][_0xb87b66([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x37df65++,_0x37df65==(0x3d8d127^_0x3a56eb)&&(_0x1b98d0(),_0x161607[_0xb87b66([0x6f,0x66,0x66])]());});}))];return window[_0xb87b66([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb87b66([0x72,0x61,0x63,0x65])](_0x156e1d)[_0xb87b66([0x74,0x68,0x65,0x6e])](()=>_0xa9600b);}async function _0x2c3d12(){await _0x5810ad,_0x8e1f69[_0xb87b66([0x6d,0x6f,0x64,0x65,0x6c])][_0xb87b66([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x490996,_0x8e1f69[_0xb87b66([0x6d,0x6f,0x64,0x65,0x6c])][_0xb87b66([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x490996,_0x8e1f69[_0xb87b66([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb87b66([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1d848b(_0x9be6e4){const _0x1c1ca0=_0x3acb7a();_0x8e1f69[_0x1c1ca0]=_0xb87b66([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x9be6e4,_0x9be6e4!=_0xb87b66([0x56,0x61,0x6c,0x69,0x64])&&_0x2c3d12();}function _0x3acb7a(){const _0x320deb=window[_0xb87b66([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb87b66([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb87b66([0x6e,0x6f,0x77])]())[_0xb87b66([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb87b66([0x2e]),'');let _0x11416a=_0xb87b66([0x52]);for(let _0x413030=0x0;_0x413030<_0x320deb[_0xb87b66([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x413030+=0x2){let _0x1f3f88=window[_0xb87b66([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x320deb[_0xb87b66([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x413030,_0x413030+0x2));_0x1f3f88>=_0x3928c7[_0xb87b66([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1f3f88-=_0x3928c7[_0xb87b66([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11416a+=_0x3928c7[_0x1f3f88];}return _0x11416a;}function _0x56b8ef(){const _0x21f6d8=_0x5f5c56[_0xb87b66([0x73,0x70,0x6c,0x69,0x74])](_0xb87b66([0x2e]));if(0x3!=_0x21f6d8[_0xb87b66([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x174550(_0x21f6d8[0x1]);function _0x174550(_0x519ba4){const _0x17c394=_0x230f56(_0x519ba4);return _0x17c394&&_0x278fda()?_0x17c394:null;function _0x278fda(){const _0x465353=_0x17c394[_0xb87b66([0x6a,0x74,0x69])],_0x472663=window[_0xb87b66([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x465353[_0xb87b66([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x465353[_0xb87b66([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x45a914={..._0x17c394,[_0xb87b66([0x6a,0x74,0x69])]:_0x465353[_0xb87b66([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x465353[_0xb87b66([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x45a914[_0xb87b66([0x76,0x63])],_0x5f7250(_0x45a914)==_0x472663;}}}async function _0x51d0b8(){let _0x3b1e5c=!0x0;try{const _0x31a1d1=_0x5f5c56[_0xb87b66([0x73,0x70,0x6c,0x69,0x74])](_0xb87b66([0x2e])),[_0xd44a09,_0x3df7bf,_0x56b504]=_0x31a1d1;return _0x12d7e3(_0xd44a09),await _0x728746(_0xd44a09,_0x3df7bf,_0x56b504),_0x3b1e5c;}catch{return!0x1;}function _0x12d7e3(_0x2f57d4){const _0xb9b851=_0x230f56(_0x2f57d4);_0xb9b851&&_0xb9b851[_0xb87b66([0x61,0x6c,0x67])]==_0xb87b66([0x45,0x53,0x32,0x35,0x36])||(_0x3b1e5c=!0x1);}async function _0x728746(_0x517ed3,_0x4c0db8,_0xf0e0fe){const _0x1879e8=window[_0xb87b66([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb87b66([0x66,0x72,0x6f,0x6d])](_0x5372ed(_0xf0e0fe),_0x292231=>_0x292231[_0xb87b66([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x56af35=new window[(_0xb87b66([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb87b66([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x517ed3+_0xb87b66([0x2e])+_0x4c0db8),_0x7add08=window[_0xb87b66([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb87b66([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7add08)return;const _0x27878f=await _0x7add08[_0xb87b66([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb87b66([0x6a,0x77,0x6b]),_0x7539f0,{[_0xb87b66([0x6e,0x61,0x6d,0x65])]:_0xb87b66([0x45,0x43,0x44,0x53,0x41]),[_0xb87b66([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb87b66([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb87b66([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7add08[_0xb87b66([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb87b66([0x6e,0x61,0x6d,0x65])]:_0xb87b66([0x45,0x43,0x44,0x53,0x41]),[_0xb87b66([0x68,0x61,0x73,0x68])]:{[_0xb87b66([0x6e,0x61,0x6d,0x65])]:_0xb87b66([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x27878f,_0x1879e8,_0x56af35)||(_0x3b1e5c=!0x1);}}function _0x230f56(_0x4a1164){return _0x4a1164[_0xb87b66([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb87b66([0x65,0x79]))?JSON[_0xb87b66([0x70,0x61,0x72,0x73,0x65])](_0x5372ed(_0x4a1164)):null;}function _0x5372ed(_0x5f4676){return window[_0xb87b66([0x61,0x74,0x6f,0x62])](_0x5f4676[_0xb87b66([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb87b66([0x2b]))[_0xb87b66([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb87b66([0x2f])));}function _0x5f7250(_0xba8223){let _0x12db5c=0x1505;function _0x29f0c3(_0x116df1){for(let _0x2bd790=0x0;_0x2bd790<_0x116df1[_0xb87b66([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bd790++){const _0x451943=_0x116df1[_0xb87b66([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2bd790);_0x12db5c=(_0x12db5c<<0x5)+_0x12db5c+_0x451943,_0x12db5c&=_0x12db5c;}}function _0x36c653(_0x3d0cb0){Array[_0xb87b66([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3d0cb0)?_0x3d0cb0[_0xb87b66([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36c653):_0x3d0cb0&&typeof _0x3d0cb0==_0xb87b66([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb87b66([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3d0cb0)[_0xb87b66([0x73,0x6f,0x72,0x74])]()[_0xb87b66([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4b061f,_0xccc29e])=>{_0x29f0c3(_0x4b061f),_0x36c653(_0xccc29e);}):_0x29f0c3(window[_0xb87b66([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3d0cb0));}return _0x36c653(_0xba8223),_0x12db5c>>>0x0;}function _0x51e443(_0x547707){return _0x547707[_0xb87b66([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb87b66([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb87b66([0x30]));}function _0x9c79c5(_0x4ce5ef){return _0x4ce5ef[_0xb87b66([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb87b66([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb87b66([0x6a,0x6f,0x69,0x6e])]('');}function _0x490996(){}function _0xb87b66(_0x2e53c9){const _0x143159=_0x1c15;return _0x2e53c9[_0x143159(0x179)](_0x428cac=>String[_0x143159(0x164)](_0x428cac))[_0x143159(0x14d)]('');}_0x1d848b(await _0x1b1826());}(this);}[_0x22d80f(0x177)](){const _0x74d651=_0x22d80f,_0x1de4d1=this[_0x74d651(0x1a0)][_0x74d651(0x190)][_0x74d651(0x18f)];_0x1de4d1[_0x74d651(0x166)](_0x74d651(0x183))&&_0x1de4d1[_0x74d651(0x176)](_0x74d651(0x183),{'allowAttributes':[_0x74d651(0x16e)]}),_0x1de4d1[_0x74d651(0x166)](_0x74d651(0x158))&&_0x1de4d1[_0x74d651(0x176)](_0x74d651(0x158),{'allowAttributes':[_0x74d651(0x16e)]});}[_0x22d80f(0x16b)](){const _0x3e5c3e=_0x22d80f,_0x360034=this[_0x3e5c3e(0x1a0)];_0x360034[_0x3e5c3e(0x160)][_0x3e5c3e(0x18e)](_0x3e5c3e(0x1a1))[_0x3e5c3e(0x17e)]({'model':_0x3e5c3e(0x16e),'view':_0x3e5c3e(0x17d)}),_0x360034[_0x3e5c3e(0x160)][_0x3e5c3e(0x18e)](_0x3e5c3e(0x152))[_0x3e5c3e(0x16a)]({'model':{'key':_0x3e5c3e(0x16e),'value':_0x3ac7f0=>_0x3ac7f0[_0x3e5c3e(0x174)](_0x3e5c3e(0x17d))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x83d4a2=_0x360034[_0x3e5c3e(0x18b)][_0x3e5c3e(0x16f)](_0x3e5c3e(0x182));_0x83d4a2&&this[_0x3e5c3e(0x180)](_0x83d4a2,_0x3e5c3e(0x19f),(_0x42e59a,[_0x893504,_0x4cd5b1])=>{const _0x58c374=_0x3e5c3e;_0x893504[_0x58c374(0x15f)](_0x58c374(0x16e),_0x4cd5b1);});}[_0x22d80f(0x1a2)](){const _0x1445d8=_0x22d80f,_0x3c3f04=this[_0x1445d8(0x1a0)][_0x1445d8(0x193)][_0x1445d8(0x16f)](_0x1445d8(0x19b))||{},_0x400d81=this[_0x1445d8(0x1a0)][_0x1445d8(0x193)][_0x1445d8(0x16f)](_0x1445d8(0x187))||'';this[_0x1445d8(0x192)]=_0x8113da(_0x1f59d4[_0x1445d8(0x181)],_0x1445d8(0x196),{..._0x3c3f04,'pubkey':_0x400d81,'ctx-name':_0x1445d8(0x173)+this[_0x1445d8(0x17f)],'sourceList':'','imgOnly':_0x1445d8(0x197),'removeCopyright':_0x1445d8(0x197),'localeName':this[_0x1445d8(0x1a0)][_0x1445d8(0x165)][_0x1445d8(0x18d)],'externalSourcesEmbedCss':_0x1445d8(0x15c)}),this[_0x1445d8(0x192)][_0x1445d8(0x150)]=_0xcab82f=>{const _0x114515=_0x1445d8;if(_0x114515(0x198)==_0xcab82f)return _0x114515(0x184);},_0x1f59d4[_0x1445d8(0x181)][_0x1445d8(0x199)][_0x1445d8(0x154)](this[_0x1445d8(0x192)]);}[_0x22d80f(0x169)](){const _0x335746=_0x22d80f;this[_0x335746(0x16d)]=_0x8113da(_0x1f59d4[_0x335746(0x181)],_0x335746(0x186),{'ctx-name':_0x335746(0x173)+this[_0x335746(0x17f)]}),_0x1f59d4[_0x335746(0x181)][_0x335746(0x199)][_0x335746(0x154)](this[_0x335746(0x16d)]);}[_0x22d80f(0x151)](){const _0xa029be=_0x22d80f,_0x34dd1b=this[_0xa029be(0x1a0)][_0xa029be(0x18b)][_0xa029be(0x16f)](_0xa029be(0x191));_0x34dd1b&&this[_0xa029be(0x180)](_0x34dd1b,_0xa029be(0x157),()=>{const _0x5aa0a5=_0xa029be,_0x5be790=this[_0x5aa0a5(0x1a0)][_0x5aa0a5(0x190)][_0x5aa0a5(0x181)][_0x5aa0a5(0x194)][_0x5aa0a5(0x161)]();_0x5be790&&_0x5be790[_0x5aa0a5(0x174)](_0x5aa0a5(0x16e))&&this[_0x5aa0a5(0x1a0)][_0x5aa0a5(0x15a)][_0x5aa0a5(0x162)][_0x5aa0a5(0x178)](_0x5aa0a5(0x163),()=>{const _0x29d115=_0x5aa0a5;_0x32f8a3(this[_0x29d115(0x1a0)],_0x5be790);});});const _0x9bef38=this[_0xa029be(0x1a0)][_0xa029be(0x18b)][_0xa029be(0x16f)](_0xa029be(0x19a));_0x9bef38&&this[_0xa029be(0x180)](_0x9bef38,_0xa029be(0x157),()=>{const _0x361622=_0xa029be,_0x27ac47=this[_0x361622(0x1a0)][_0x361622(0x190)][_0x361622(0x181)][_0x361622(0x194)][_0x361622(0x161)]();_0x27ac47&&_0x27ac47[_0x361622(0x174)](_0x361622(0x16e))&&this[_0x361622(0x1a0)][_0x361622(0x15a)][_0x361622(0x162)][_0x361622(0x178)](_0x361622(0x163),()=>{const _0xa7dbaf=_0x361622;_0x32f8a3(this[_0xa7dbaf(0x1a0)],_0x27ac47);});});}}
23
+ const _0x1e3100=_0x1ff5;(function(_0x3a5428,_0xe341ee){const _0x3ea184=_0x1ff5,_0x550f05=_0x3a5428();while(!![]){try{const _0x10c05d=-parseInt(_0x3ea184(0x150))/0x1*(-parseInt(_0x3ea184(0x11e))/0x2)+parseInt(_0x3ea184(0x10e))/0x3*(-parseInt(_0x3ea184(0x113))/0x4)+parseInt(_0x3ea184(0xff))/0x5*(-parseInt(_0x3ea184(0x10b))/0x6)+-parseInt(_0x3ea184(0x13a))/0x7*(parseInt(_0x3ea184(0x125))/0x8)+-parseInt(_0x3ea184(0x104))/0x9*(-parseInt(_0x3ea184(0x12a))/0xa)+-parseInt(_0x3ea184(0x10f))/0xb+-parseInt(_0x3ea184(0x108))/0xc*(-parseInt(_0x3ea184(0x100))/0xd);if(_0x10c05d===_0xe341ee)break;else _0x550f05['push'](_0x550f05['shift']());}catch(_0x1fd15f){_0x550f05['push'](_0x550f05['shift']());}}}(_0x112b,0x3c0ad));function _0x1ff5(_0x2aaf4a,_0x1d36c3){const _0x112b4e=_0x112b();return _0x1ff5=function(_0x1ff567,_0x2ce7be){_0x1ff567=_0x1ff567-0xff;let _0xad5845=_0x112b4e[_0x1ff567];return _0xad5845;},_0x1ff5(_0x2aaf4a,_0x1d36c3);}import{Plugin as _0x18781a}from'ckeditor5/src/core.js';import{Dialog as _0x18bd7b}from'ckeditor5/src/ui.js';import{createElement as _0x5117b0,global as _0x185e88,uid as _0x25c1e8}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x51d1fd}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4661da}from'./uploadcareuploadadapter.js';function _0x112b(){const _0x54c92d=['render','input[uploadcare-file-input]','uc-config','destroy','href','getSelectedElement','3055577ICpvMg','uploadcareImageId','add','PictureEditing','fromCharCode','schema','requires','configElement','uc-upload-ctx-provider','_initSchema','once','view','config','_ctxElement','_initImageProcessingIndicator','isOfficialPlugin','execute','appendChild','isPremiumPlugin','extend','_configElement','afterInit','5573pLstOD','join','querySelector','editing','#uc-icon-arrow-down','map','model','25NzLSmd','13yecmle','ucContextId','init','listenTo','2284065ojIOrS','insertImage','document','contentLanguage','13113372DJhOUH','conversion','_initCtx','391836ArvFqc','uploadcare.uploader','iconHrefResolver','276666HDXLtr','146168QVqiTa','isRegistered','data-uc-image-id','imageBlock','16LFIvKi','imageInline','uploadcareImageReplace','closeMax','replaceImageSource','editor','removeAttribute','_initConversion','elementToAttribute','cleanupImage','pluginName','16Bfbvnn','\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','ctxElement','upcast','attributeToAttribute','commands','locale','8OjuWtq','uploader-','getAttribute','downcast','get','10oAzRft','remove','uploadcare.pubkey','selection','UploadcareEditing','body','_initConfig','for','true','uploadcare'];_0x112b=function(){return _0x54c92d;};return _0x112b();}import{showImageProcessingIndicator as _0x237a58}from'./utils/editingutils.js';export class UploadcareEditing extends _0x18781a{[_0x1e3100(0x14e)]=null;[_0x1e3100(0x147)]=null;static get[_0x1e3100(0x11d)](){const _0x13514d=_0x1e3100;return _0x13514d(0x12e);}static get[_0x1e3100(0x140)](){const _0x1d9430=_0x1e3100;return[_0x1d9430(0x13d),_0x4661da,_0x18bd7b];}static get[_0x1e3100(0x149)](){return!0x0;}static get[_0x1e3100(0x14c)](){return!0x0;}[_0x1e3100(0x101)];get[_0x1e3100(0x141)](){const _0x606a29=_0x1e3100;return this[_0x606a29(0x14e)];}get[_0x1e3100(0x120)](){const _0x4b74b8=_0x1e3100;return this[_0x4b74b8(0x147)];}constructor(_0x34db92){const _0x5b8574=_0x1e3100;super(_0x34db92),this[_0x5b8574(0x101)]=_0x25c1e8();}[_0x1e3100(0x102)](){const _0x514f7c=_0x1e3100,_0x28ed5c=this[_0x514f7c(0x118)];_0x28ed5c[_0x514f7c(0x123)][_0x514f7c(0x13c)](_0x514f7c(0x133),new _0x51d1fd(_0x28ed5c));}[_0x1e3100(0x14f)](){const _0x3bd602=_0x1e3100;this[_0x3bd602(0x143)](),this[_0x3bd602(0x11a)](),this[_0x3bd602(0x130)](),this[_0x3bd602(0x10a)](),this[_0x3bd602(0x148)](),this[_0x3bd602(0x103)](this[_0x3bd602(0x118)],_0x3bd602(0x137),()=>{const _0xe8b928=_0x3bd602;this[_0xe8b928(0x14e)]&&(this[_0xe8b928(0x14e)][_0xe8b928(0x12b)](),this[_0xe8b928(0x14e)]=null),this[_0xe8b928(0x147)]&&(this[_0xe8b928(0x147)][_0xe8b928(0x12b)](),this[_0xe8b928(0x147)]=null);const _0x19f38b=_0x185e88[_0xe8b928(0x106)][_0xe8b928(0x152)](_0xe8b928(0x135));_0x19f38b&&_0x19f38b[_0xe8b928(0x12b)]();}),async function(_0xa4bf53){const _0x1438ab=_0x172796([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x104a47=0x3d8d0df,_0x2e4ef4=0x3dfa387^_0x104a47,_0x43c4a9=window[_0x172796([0x44,0x61,0x74,0x65])][_0x172796([0x6e,0x6f,0x77])](),_0x532d61=_0xa4bf53[_0x172796([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x296905=new window[(_0x172796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe0170a=>{_0x532d61[_0x172796([0x6f,0x6e,0x63,0x65])](_0x172796([0x72,0x65,0x61,0x64,0x79]),_0xe0170a);}),_0x4548dd={[_0x172796([0x6b,0x74,0x79])]:_0x172796([0x45,0x43]),[_0x172796([0x75,0x73,0x65])]:_0x172796([0x73,0x69,0x67]),[_0x172796([0x63,0x72,0x76])]:_0x172796([0x50,0x2d,0x32,0x35,0x36]),[_0x172796([0x78])]:_0x172796([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]),[_0x172796([0x79])]:_0x172796([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]),[_0x172796([0x61,0x6c,0x67])]:_0x172796([0x45,0x53,0x32,0x35,0x36])},_0x4ea591=_0x532d61[_0x172796([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x172796([0x67,0x65,0x74])](_0x172796([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x200d51(){let _0x260532,_0x39239c=null,_0x38df1c=null;try{if(_0x4ea591==_0x172796([0x47,0x50,0x4c]))return _0x172796([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x260532=_0x8b941e(),!_0x260532)return _0x172796([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x260532[_0x172796([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38df1c=_0x368e79(_0x260532[_0x172796([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x260532[_0x172796([0x6a,0x74,0x69])])),await _0xe4706a()?_0x4f1286()?_0x3fff24()?_0x172796([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x408224()?(_0x260532[_0x172796([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x172796([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39239c=_0x19c1da(_0x172796([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x260532[_0x172796([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x172796([0x74,0x72,0x69,0x61,0x6c])&&(_0x39239c=_0x19c1da(_0x172796([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3352d8()):_0x172796([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x172796([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x172796([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x172796([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3fff24(){const _0x35ed00=[_0x172796([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x172796([0x74,0x72,0x69,0x61,0x6c])][_0x172796([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x260532[_0x172796([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x43c4a9/0x3e8:0xe10*_0x2e4ef4;return _0x260532[_0x172796([0x65,0x78,0x70])]<_0x35ed00;}function _0x4f1286(){const _0x81b332=_0x260532[_0x172796([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x81b332&&(!!_0x81b332[_0x172796([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x172796([0x2a]))||!!_0x81b332[_0x172796([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x172796([0x55,0x50,0x4c,0x43])));}function _0x408224(){const _0x3afa3c=_0x1ff5,_0x39d7c4=_0x260532[_0x172796([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x39d7c4||0x0==_0x39d7c4[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x15ac63}=new URL(window[_0x172796([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3afa3c(0x138)]);if(_0x39d7c4[_0x172796([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15ac63))return!0x0;const _0xd433a3=_0x15ac63[_0x172796([0x73,0x70,0x6c,0x69,0x74])](_0x172796([0x2e]));return _0x39d7c4[_0x172796([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27f759=>_0x27f759[_0x172796([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x172796([0x2a])))[_0x172796([0x6d,0x61,0x70])](_0x65ecd6=>_0x65ecd6[_0x172796([0x73,0x70,0x6c,0x69,0x74])](_0x172796([0x2e])))[_0x172796([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e30ed=>_0x5e30ed[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xd433a3[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x172796([0x6d,0x61,0x70])](_0x5c75c7=>Array(_0xd433a3[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5c75c7[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x172796([0x66,0x69,0x6c,0x6c])](_0x5c75c7[0x0]===_0x172796([0x2a])?_0x172796([0x2a]):'')[_0x172796([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5c75c7))[_0x172796([0x73,0x6f,0x6d,0x65])](_0x3d97f3=>_0xd433a3[_0x172796([0x65,0x76,0x65,0x72,0x79])]((_0x4575fa,_0x587d61)=>_0x3d97f3[_0x587d61]===_0x4575fa||_0x3d97f3[_0x587d61]===_0x172796([0x2a])));}function _0x3352d8(){return _0x39239c&&_0x38df1c?new window[(_0x172796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3cf926,_0x11abf1)=>{_0x39239c[_0x172796([0x74,0x68,0x65,0x6e])](_0x3cf926,_0x11abf1),_0x38df1c[_0x172796([0x74,0x68,0x65,0x6e])](_0x3dd923=>{_0x3dd923!=_0x172796([0x56,0x61,0x6c,0x69,0x64])&&_0x3cf926(_0x3dd923);},_0x11abf1);}):_0x39239c||_0x38df1c||_0x172796([0x56,0x61,0x6c,0x69,0x64]);}}function _0x368e79(_0x5ac088,_0x215709){return new window[(_0x172796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24e900=>{if(_0xf8f604())return _0x24e900(_0x172796([0x56,0x61,0x6c,0x69,0x64]));_0x2f7712(),_0x532d61[_0x172796([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x172796([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x21d0a5=!0x1;const _0x45d3d7=_0x25c1e8();function _0xc1fb02(_0x298c74){return!!_0x298c74&&(typeof _0x298c74===_0x172796([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x298c74===_0x172796([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x298c74[_0x172796([0x74,0x68,0x65,0x6e])]===_0x172796([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x298c74[_0x172796([0x63,0x61,0x74,0x63,0x68])]===_0x172796([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x362bb5(_0x5e7de4){_0x5d0970(_0x5e7de4)[_0x172796([0x74,0x68,0x65,0x6e])](_0x192893=>{if(!_0x192893||_0x192893[_0x172796([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x172796([0x6f,0x6b]))return _0x172796([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x106550(_0x4b5925(_0x45d3d7+_0x215709))!=_0x192893[_0x172796([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x172796([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x172796([0x56,0x61,0x6c,0x69,0x64]);})[_0x172796([0x74,0x68,0x65,0x6e])](_0x5bb017=>(_0x18c062(),_0x5bb017),()=>{const _0x390225=_0x131262();return null==_0x390225?(_0x18c062(),_0x172796([0x56,0x61,0x6c,0x69,0x64])):_0x172796(_0x43c4a9-_0x390225>(0x27d454df^_0x104a47)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x172796([0x74,0x68,0x65,0x6e])](_0x24e900)[_0x172796([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24e900(_0x172796([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x49804a=0x3ee3e5f^_0x104a47;function _0x18c062(){const _0x3d33f2=_0x172796([0x6c,0x6c,0x63,0x74,0x2d])+_0x106550(_0x4b5925(_0x5ac088)),_0x25ee4b=_0x19acd5(_0x106550(window[_0x172796([0x4d,0x61,0x74,0x68])][_0x172796([0x63,0x65,0x69,0x6c])](_0x43c4a9/_0x49804a)));window[_0x172796([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x172796([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d33f2,_0x25ee4b);}function _0x131262(){const _0x2892de=_0x172796([0x6c,0x6c,0x63,0x74,0x2d])+_0x106550(_0x4b5925(_0x5ac088)),_0x5465a9=window[_0x172796([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x172796([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2892de);return _0x5465a9?window[_0x172796([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19acd5(_0x5465a9),0x10)*_0x49804a:null;}function _0x5d0970(_0x455cef){return new window[(_0x172796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd0916b,_0xe6e56d)=>{_0x455cef[_0x172796([0x74,0x68,0x65,0x6e])](_0xd0916b,_0xe6e56d),window[_0x172796([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe6e56d,0x3d9041f^_0x104a47);});}}_0x532d61[_0x172796([0x6f,0x6e])](_0x172796([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x176ad7,_0x5e148c)=>{if(_0x5e148c[0x0]!=_0x5ac088)return _0x24e900(_0x172796([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5e148c[0x1]={..._0x5e148c[0x1],[_0x172796([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45d3d7};},{[_0x172796([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x172796([0x68,0x69,0x67,0x68])}),_0x532d61[_0x172796([0x6f,0x6e])](_0x172796([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x20c392=>{_0xc1fb02(_0x20c392[_0x172796([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x21d0a5=!0x0,_0x362bb5(_0x20c392[_0x172796([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x172796([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x172796([0x6c,0x6f,0x77])}),_0x296905[_0x172796([0x74,0x68,0x65,0x6e])](()=>{_0x21d0a5||_0x24e900(_0x172796([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xf8f604(){return _0x532d61[_0x172796([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x172796([0x76,0x69,0x65,0x77])][_0x172796([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x172796([0x61,0x75,0x74,0x6f]);}function _0x2f7712(){_0x532d61[_0x172796([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x172796([0x76,0x69,0x65,0x77])][_0x172796([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x172796([0x61,0x75,0x74,0x6f]);}}function _0x19c1da(_0x331aa3){const _0x5ea326=[new window[(_0x172796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d0462=>setTimeout(_0x3d0462,0x3d1ee13^_0x104a47)),_0x296905[_0x172796([0x74,0x68,0x65,0x6e])](()=>new window[(_0x172796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34ae22=>{let _0x11ac36=0x0;_0x532d61[_0x172796([0x6d,0x6f,0x64,0x65,0x6c])][_0x172796([0x6f,0x6e])](_0x172796([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4ff0d7,_0x403353)=>{_0x403353[0x0][_0x172796([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x11ac36++,_0x11ac36==(0x3d8d127^_0x104a47)&&(_0x34ae22(),_0x4ff0d7[_0x172796([0x6f,0x66,0x66])]());});}))];return window[_0x172796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x172796([0x72,0x61,0x63,0x65])](_0x5ea326)[_0x172796([0x74,0x68,0x65,0x6e])](()=>_0x331aa3);}async function _0x2987ba(){await _0x296905,_0x532d61[_0x172796([0x6d,0x6f,0x64,0x65,0x6c])][_0x172796([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x291026,_0x532d61[_0x172796([0x6d,0x6f,0x64,0x65,0x6c])][_0x172796([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x291026,_0x532d61[_0x172796([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x172796([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5352f3(_0xa9f981){const _0x248769=_0x36efb4();_0x532d61[_0x248769]=_0x172796([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xa9f981,_0xa9f981!=_0x172796([0x56,0x61,0x6c,0x69,0x64])&&_0x2987ba();}function _0x36efb4(){const _0x22490b=window[_0x172796([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x172796([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x172796([0x6e,0x6f,0x77])]())[_0x172796([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x172796([0x2e]),'');let _0x4abb74=_0x172796([0x52]);for(let _0x50c297=0x0;_0x50c297<_0x22490b[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50c297+=0x2){let _0x7ca253=window[_0x172796([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22490b[_0x172796([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50c297,_0x50c297+0x2));_0x7ca253>=_0x1438ab[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x7ca253-=_0x1438ab[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4abb74+=_0x1438ab[_0x7ca253];}return _0x4abb74;}function _0x8b941e(){const _0x3d4532=_0x4ea591[_0x172796([0x73,0x70,0x6c,0x69,0x74])](_0x172796([0x2e]));if(0x3!=_0x3d4532[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x534909(_0x3d4532[0x1]);function _0x534909(_0x21667f){const _0x469fb8=_0x15f4a5(_0x21667f);return _0x469fb8&&_0x539f1d()?_0x469fb8:null;function _0x539f1d(){const _0x4a1e6c=_0x469fb8[_0x172796([0x6a,0x74,0x69])],_0x175446=window[_0x172796([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a1e6c[_0x172796([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a1e6c[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7d7bf5={..._0x469fb8,[_0x172796([0x6a,0x74,0x69])]:_0x4a1e6c[_0x172796([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a1e6c[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7d7bf5[_0x172796([0x76,0x63])],_0x4b5925(_0x7d7bf5)==_0x175446;}}}async function _0xe4706a(){let _0x2311db=!0x0;try{const _0x2d6127=_0x4ea591[_0x172796([0x73,0x70,0x6c,0x69,0x74])](_0x172796([0x2e])),[_0x5a37a7,_0x1b5b74,_0x5f5217]=_0x2d6127;return _0x4ffccd(_0x5a37a7),await _0x5a8d08(_0x5a37a7,_0x1b5b74,_0x5f5217),_0x2311db;}catch{return!0x1;}function _0x4ffccd(_0x575c0a){const _0x5be2eb=_0x15f4a5(_0x575c0a);_0x5be2eb&&_0x5be2eb[_0x172796([0x61,0x6c,0x67])]==_0x172796([0x45,0x53,0x32,0x35,0x36])||(_0x2311db=!0x1);}async function _0x5a8d08(_0x556c90,_0x2ca847,_0x260a3d){const _0x4fd21d=window[_0x172796([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x172796([0x66,0x72,0x6f,0x6d])](_0x81c53f(_0x260a3d),_0x382a56=>_0x382a56[_0x172796([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x51105e=new window[(_0x172796([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x172796([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x556c90+_0x172796([0x2e])+_0x2ca847),_0x11ddff=window[_0x172796([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x172796([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x11ddff)return;const _0x440a93=await _0x11ddff[_0x172796([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x172796([0x6a,0x77,0x6b]),_0x4548dd,{[_0x172796([0x6e,0x61,0x6d,0x65])]:_0x172796([0x45,0x43,0x44,0x53,0x41]),[_0x172796([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x172796([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x172796([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x11ddff[_0x172796([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x172796([0x6e,0x61,0x6d,0x65])]:_0x172796([0x45,0x43,0x44,0x53,0x41]),[_0x172796([0x68,0x61,0x73,0x68])]:{[_0x172796([0x6e,0x61,0x6d,0x65])]:_0x172796([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x440a93,_0x4fd21d,_0x51105e)||(_0x2311db=!0x1);}}function _0x15f4a5(_0x12cf1b){return _0x12cf1b[_0x172796([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x172796([0x65,0x79]))?JSON[_0x172796([0x70,0x61,0x72,0x73,0x65])](_0x81c53f(_0x12cf1b)):null;}function _0x81c53f(_0x230993){return window[_0x172796([0x61,0x74,0x6f,0x62])](_0x230993[_0x172796([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x172796([0x2b]))[_0x172796([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x172796([0x2f])));}function _0x4b5925(_0x3f4f5e){let _0x322157=0x1505;function _0x3aab80(_0x53790b){for(let _0x45bf63=0x0;_0x45bf63<_0x53790b[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45bf63++){const _0x4d59c1=_0x53790b[_0x172796([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x45bf63);_0x322157=(_0x322157<<0x5)+_0x322157+_0x4d59c1,_0x322157&=_0x322157;}}function _0x4e8da1(_0x3a7989){Array[_0x172796([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a7989)?_0x3a7989[_0x172796([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e8da1):_0x3a7989&&typeof _0x3a7989==_0x172796([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x172796([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a7989)[_0x172796([0x73,0x6f,0x72,0x74])]()[_0x172796([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4a6a40,_0x46a89c])=>{_0x3aab80(_0x4a6a40),_0x4e8da1(_0x46a89c);}):_0x3aab80(window[_0x172796([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a7989));}return _0x4e8da1(_0x3f4f5e),_0x322157>>>0x0;}function _0x106550(_0x2578ea){return _0x2578ea[_0x172796([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x172796([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x172796([0x30]));}function _0x19acd5(_0x2f8750){return _0x2f8750[_0x172796([0x73,0x70,0x6c,0x69,0x74])]('')[_0x172796([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x172796([0x6a,0x6f,0x69,0x6e])]('');}function _0x291026(){}function _0x172796(_0x5a8db8){const _0x2b9db1=_0x1ff5;return _0x5a8db8[_0x2b9db1(0x155)](_0x2d5002=>String[_0x2b9db1(0x13e)](_0x2d5002))[_0x2b9db1(0x151)]('');}_0x5352f3(await _0x200d51());}(this);}[_0x1e3100(0x143)](){const _0x461896=_0x1e3100,_0x2f4246=this[_0x461896(0x118)][_0x461896(0x156)][_0x461896(0x13f)];_0x2f4246[_0x461896(0x110)](_0x461896(0x112))&&_0x2f4246[_0x461896(0x14d)](_0x461896(0x112),{'allowAttributes':[_0x461896(0x13b)]}),_0x2f4246[_0x461896(0x110)](_0x461896(0x114))&&_0x2f4246[_0x461896(0x14d)](_0x461896(0x114),{'allowAttributes':[_0x461896(0x13b)]});}[_0x1e3100(0x11a)](){const _0x580d55=_0x1e3100,_0x5b17c9=this[_0x580d55(0x118)];_0x5b17c9[_0x580d55(0x109)][_0x580d55(0x131)](_0x580d55(0x128))[_0x580d55(0x122)]({'model':_0x580d55(0x13b),'view':_0x580d55(0x111)}),_0x5b17c9[_0x580d55(0x109)][_0x580d55(0x131)](_0x580d55(0x121))[_0x580d55(0x11b)]({'model':{'key':_0x580d55(0x13b),'value':_0x59b62f=>_0x59b62f[_0x580d55(0x127)](_0x580d55(0x111))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5ba66c=_0x5b17c9[_0x580d55(0x123)][_0x580d55(0x129)](_0x580d55(0x117));_0x5ba66c&&this[_0x580d55(0x103)](_0x5ba66c,_0x580d55(0x11c),(_0x40439c,[_0x1d131b,_0x3a37ee])=>{const _0x25541d=_0x580d55;_0x1d131b[_0x25541d(0x119)](_0x25541d(0x13b),_0x3a37ee);});}[_0x1e3100(0x130)](){const _0x55a35c=_0x1e3100,_0x8b4f51=this[_0x55a35c(0x118)][_0x55a35c(0x146)][_0x55a35c(0x129)](_0x55a35c(0x10c))||{},_0x573a3a=this[_0x55a35c(0x118)][_0x55a35c(0x146)][_0x55a35c(0x129)](_0x55a35c(0x12c))||'';this[_0x55a35c(0x14e)]=_0x5117b0(_0x185e88[_0x55a35c(0x106)],_0x55a35c(0x136),{..._0x8b4f51,'pubkey':_0x573a3a,'ctx-name':_0x55a35c(0x126)+this[_0x55a35c(0x101)],'sourceList':'','imgOnly':_0x55a35c(0x132),'removeCopyright':_0x55a35c(0x132),'localeName':this[_0x55a35c(0x118)][_0x55a35c(0x124)][_0x55a35c(0x107)],'externalSourcesEmbedCss':_0x55a35c(0x11f)}),this[_0x55a35c(0x14e)][_0x55a35c(0x10d)]=_0x485da8=>{const _0x83f678=_0x55a35c;if(_0x83f678(0x116)==_0x485da8)return _0x83f678(0x154);},_0x185e88[_0x55a35c(0x106)][_0x55a35c(0x12f)][_0x55a35c(0x14b)](this[_0x55a35c(0x14e)]);}[_0x1e3100(0x10a)](){const _0x2e83a5=_0x1e3100;this[_0x2e83a5(0x147)]=_0x5117b0(_0x185e88[_0x2e83a5(0x106)],_0x2e83a5(0x142),{'ctx-name':_0x2e83a5(0x126)+this[_0x2e83a5(0x101)]}),_0x185e88[_0x2e83a5(0x106)][_0x2e83a5(0x12f)][_0x2e83a5(0x14b)](this[_0x2e83a5(0x147)]);}[_0x1e3100(0x148)](){const _0x3c2674=_0x1e3100,_0x2241ef=this[_0x3c2674(0x118)][_0x3c2674(0x123)][_0x3c2674(0x129)](_0x3c2674(0x105));_0x2241ef&&this[_0x3c2674(0x103)](_0x2241ef,_0x3c2674(0x14a),()=>{const _0x560fe3=_0x3c2674,_0x5a5092=this[_0x560fe3(0x118)][_0x560fe3(0x156)][_0x560fe3(0x106)][_0x560fe3(0x12d)][_0x560fe3(0x139)]();_0x5a5092&&_0x5a5092[_0x560fe3(0x127)](_0x560fe3(0x13b))&&this[_0x560fe3(0x118)][_0x560fe3(0x153)][_0x560fe3(0x145)][_0x560fe3(0x144)](_0x560fe3(0x134),()=>{const _0x5db0f7=_0x560fe3;_0x237a58(this[_0x5db0f7(0x118)],_0x5a5092);});});const _0x578204=this[_0x3c2674(0x118)][_0x3c2674(0x123)][_0x3c2674(0x129)](_0x3c2674(0x115));_0x578204&&this[_0x3c2674(0x103)](_0x578204,_0x3c2674(0x14a),()=>{const _0x3836af=_0x3c2674,_0xd89cc=this[_0x3836af(0x118)][_0x3836af(0x156)][_0x3836af(0x106)][_0x3836af(0x12d)][_0x3836af(0x139)]();_0xd89cc&&_0xd89cc[_0x3836af(0x127)](_0x3836af(0x13b))&&this[_0x3836af(0x118)][_0x3836af(0x153)][_0x3836af(0x145)][_0x3836af(0x144)](_0x3836af(0x134),()=>{const _0x2a7af7=_0x3836af;_0x237a58(this[_0x2a7af7(0x118)],_0xd89cc);});});}}