@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20260104.0 → 0.0.0-nightly-next-20260105.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 _0x1eb42f,Command as _0x1b6628}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x311341,IconGooglePhotos as _0x3757d8,IconGoogleDrive as _0x4ccfa7,IconFacebook as _0x4e9d98,IconDropbox as _0x1980a9,IconUploadcareLink as _0x43a45c,IconUploadcareImageUpload as _0x305e34,IconError as _0xf4a164,IconUploadcareImageEdit as _0x2b5f05}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1b73cf,MenuBarMenuListItemButtonView as _0xb62d23,View as _0x330511,FocusCycler as _0x216d75,Dialog as _0x20eb2c,DialogViewPosition as _0x2915d5,SpinnerView as _0x320917,IconView as _0x50fb93,Notification as _0x16ed00}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3794c3,DomEmitterMixin as _0x4ceaca,global as _0x57318e,getAncestors as _0x15f677,ObservableMixin as _0x10cec6,uid as _0x3d9af7,createElement as _0x3a69f0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2f0a80}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4c6983,info as _0x56a9cc}from'@uploadcare/upload-client';import*as _0x2dab71 from'@uploadcare/file-uploader';var i=function(_0x59bc8f){return _0x59bc8f['Local']='local',_0x59bc8f['URL']='url',_0x59bc8f['Dropbox']='dropbox',_0x59bc8f['GDrive']='gdrive',_0x59bc8f['Facebook']='facebook',_0x59bc8f['GPhotos']='gphotos',_0x59bc8f['OneDrive']='onedrive',_0x59bc8f;}({});function _(_0x264cb4,_0x54f072,_0x4ca5c0){const t=_0x264cb4['t'],_0x2d46c9=_0x264cb4['t'];switch(_0x54f072){case i['Local']:return{'text':_0x2d46c9('Insert'===_0x4ca5c0?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2d46c9('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x4ca5c0?_0x2d46c9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2d46c9('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x4ca5c0?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x4ca5c0?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x4ca5c0?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x4ca5c0?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x4ca5c0?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x54f072;}}class e extends _0x1eb42f{['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 _0x2e14b1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x56fa2c;for(const _0x2859ea in _0x2e14b1){const _0x334b04=_0x2859ea,_0x1361a1=_0x2e14b1[_0x334b04];if('uploadcareLicenseKeyValid'==_0x1361a1||'uploadcareLicenseKeyInvalid'==_0x1361a1||'uploadcareLicenseKeyExpired'==_0x1361a1||'uploadcareLicenseKeyDomainLimit'==_0x1361a1||'uploadcareLicenseKeyNotAllowed'==_0x1361a1||'uploadcareLicenseKeyEvaluationLimit'==_0x1361a1||'uploadcareLicenseKeyTrialLimit'==_0x1361a1||'uploadcareLicenseKeyUsageLimit'==_0x1361a1){delete _0x2e14b1[_0x334b04],_0x56fa2c=_0x1361a1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x56fa2c&&_0x2e14b1['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x56fa2c&&_0x2e14b1['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x56fa2c&&_0x2e14b1['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x56fa2c&&_0x2e14b1['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x56fa2c&&_0x2e14b1['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x56fa2c&&_0x2e14b1['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x56fa2c&&_0x2e14b1['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x52d4fe}=this,_0x37e39d=_0x52d4fe['commands']['get']('uploadcare');if(!_0x37e39d)return;const _0x354efc=this['_normalizeConfigSourceList'](_0x52d4fe['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x28401e,_0x1e1960)=>{const _0x4d2075=this['_getIntegrationKey'](_0x1e1960['type']);return _0x28401e[_0x4d2075]||(_0x28401e[_0x4d2075]=[]),_0x28401e[_0x4d2075]['push'](_0x1e1960),_0x28401e;},{});_0x52d4fe['plugins']['has']('ImageInsertUI')&&_0x52d4fe['commands']['get']('uploadcare')&&Object['entries'](_0x354efc)['forEach'](([_0x176fc7,_0x35e9ff])=>{_0x52d4fe['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x176fc7,'observable':()=>_0x37e39d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x35e9ff),'formViewCreator':()=>this['_createDropdownButtons'](_0x35e9ff),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x35e9ff),'override':'assetManager'!==_0x176fc7});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4bc6ef){const {locale:_0xdece64}=this['editor'];return _0x4bc6ef['map'](_0x5ef73f=>{const _0x42459d=_(_0xdece64,_0x5ef73f,'Insert');switch(_0x5ef73f){case i['Local']:return{'icon':_0x305e34,'type':i['Local'],..._0x42459d};case i['URL']:return{'icon':_0x43a45c,'type':i['URL'],..._0x42459d};case i['Dropbox']:return{'icon':_0x1980a9,'type':i['Dropbox'],..._0x42459d};case i['Facebook']:return{'icon':_0x4e9d98,'type':i['Facebook'],..._0x42459d};case i['GDrive']:return{'icon':_0x4ccfa7,'type':i['GDrive'],..._0x42459d};case i['GPhotos']:return{'icon':_0x3757d8,'type':i['GPhotos'],..._0x42459d};case i['OneDrive']:return{'icon':_0x311341,'type':i['OneDrive'],..._0x42459d};}});}['_getIntegrationKey'](_0x54120e){switch(_0x54120e){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x33710d,_0x48e0cd){const _0x2a68b0=this['editor'],_0x325e8b=new _0x33710d(_0x2a68b0['locale']),_0x4b138e=_0x2a68b0['commands']['get']('uploadcare');return _0x325e8b['bind']('isEnabled')['to'](_0x4b138e),_0x325e8b['on']('execute',()=>{_0x4b138e['execute'](_0x48e0cd);}),_0x325e8b;}['_createToolbarButton'](_0x415451){const {locale:_0x33dfd2}=this['editor'],_0x568603=this['editor']['plugins']['get']('ImageInsertUI'),_0x35806e=_0x415451[0x0],_0x373fe7=this['_createButton'](_0x1b73cf,_0x35806e['type']);return _0x373fe7['icon']=_0x35806e['icon'],_0x373fe7['bind']('label')['to'](_0x568603,'isImageSelected',_0x1b2611=>_(_0x33dfd2,_0x35806e['type'],_0x1b2611?'Replace':'Insert')['text']),_0x373fe7['tooltip']=!0x0,_0x373fe7;}['_createDropdownButtons'](_0x473456){const {locale:_0x56d7e2}=this['editor'],_0x2acbbb=this['editor']['plugins']['get']('ImageInsertUI');return _0x473456['map'](_0x38d843=>{const _0x5a6377=this['_createButton'](_0x1b73cf,_0x38d843['type']);return _0x5a6377['withText']=!0x0,_0x5a6377['icon']=_0x38d843['icon'],_0x5a6377['bind']('label')['to'](_0x2acbbb,'isImageSelected',_0x4c0799=>_(_0x56d7e2,_0x38d843['type'],_0x4c0799?'Replace':'Insert')['text']),_0x5a6377;});}['_createMenuBarButtons'](_0xd774f3){return _0xd774f3['map'](_0x161b21=>{const _0x3776dd=this['_createButton'](_0xb62d23,_0x161b21['type']);return _0x3776dd['icon']=_0x161b21['icon'],_0x3776dd['label']=_0x161b21['shortText'],_0x3776dd;});}}class F extends _0x330511{['focusTracker'];['focusCycler'];constructor(_0x2b7148){super(_0x2b7148),this['focusTracker']=new _0x3794c3(),this['focusCycler']=new _0x216d75({'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(_0x9a9302,_0x3c7eec){super(_0x9a9302),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-'+_0x3c7eec}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x38e586,_0x54dd20){const _0x4eef9e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x12e5e8=>_0x12e5e8<=_0x54dd20)['map'](_0x2d67df=>_0x38e586['replace'](/\/$/,'')+'/-/resize/'+_0x2d67df+'x/\x20'+_0x2d67df+'w');return{'imageFallbackUrl':_0x38e586,'imageSources':[{'srcset':_0x4eef9e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x54dd20+'px)\x20100vw,\x20'+_0x54dd20+'px','type':'image/webp'}]};}function S(_0x3faaa8,_0x311b0f,_0x540c2f){const _0x5da988=_0x3faaa8['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5da988?parseInt(_0x5da988[0x1],0xa):_0x311b0f,'height':_0x5da988?parseInt(_0x5da988[0x2],0xa):_0x540c2f};}function p(_0x3fa2d2,_0x5f358b){const _0x8ce34c=new(_0x4ceaca())(),_0x21eab7=_0x3fa2d2['plugins']['get']('ImageUtils'),_0x4f38c7=_0x3fa2d2['editing']['mapper']['toViewElement'](_0x5f358b),_0x4530d2=_0x21eab7['findViewImgElement'](_0x4f38c7),_0x185f85=_0x3fa2d2['editing']['view']['domConverter']['viewToDom'](_0x4530d2),_0x52aed5=_0x5f358b['getAttribute']('width'),_0xb861ab=_0x5f358b['getAttribute']('height'),_0xf1ba92='image-processing';_0x3fa2d2['editing']['view']['change'](_0x482689=>{_0x482689['addClass'](_0xf1ba92,_0x4f38c7),_0x482689['setStyle']('aspect-ratio',_0x52aed5+'/'+_0xb861ab,_0x4530d2);}),_0x8ce34c['listenTo'](_0x185f85,'load',()=>{_0x8ce34c['stopListening'](_0x185f85,'load'),_0x3fa2d2['editing']['view']['change'](_0x21507a=>{_0x21507a['removeClass'](_0xf1ba92,_0x4f38c7),_0x21507a['removeStyle']('aspect-ratio',_0x4530d2);});});}function G(_0x219ad4){if(Array['isArray'](_0x219ad4)){const _0x18b8d8=_0x219ad4['map'](G);return _0x44af1f=>_0x18b8d8['some'](_0x2b7c6f=>_0x2b7c6f(_0x44af1f));}if('origin'==_0x219ad4){const _0x3330a6=_0x57318e['window']['location']['origin'];return _0x426379=>new URL(_0x426379,_0x57318e['document']['baseURI'])['origin']==_0x3330a6;}return'function'==typeof _0x219ad4?_0x219ad4:_0x219ad4 instanceof RegExp?_0x46f64c=>!(!_0x46f64c['match'](_0x219ad4)&&!_0x46f64c['replace'](/^https?:\/\//,'')['match'](_0x219ad4)):()=>!0x1;}function A(_0x4a533a,_0x14df0a){return _0x15f677(_0x4a533a['target'])['includes'](_0x14df0a);}class n extends/* #__PURE__ -- @preserve */
24
- _0x10cec6(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1f615e,_0x2cb7e9,_0x8d741){super(),this['_editor']=_0x1f615e,this['_editing']=_0x2cb7e9,this['_dialog']=_0x1f615e['plugins']['get'](_0x20eb2c),this['_api']=_0x2cb7e9['ctxElement']['getAPI'](),this['_type']=_0x8d741,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:_0x5f17ec,model:_0x446a3a}=this['_editor'],_0xed2c1e=_0x446a3a['document']['selection']['getSelectedElement'](),_0x441da7=_0xed2c1e&&(_0xed2c1e['is']('element','imageBlock')||_0xed2c1e['is']('element','imageInline'));this['_formView']=new x(_0x5f17ec,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x305e34,'title':_(_0x5f17ec,this['_type'],_0x441da7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2915d5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x448292=>!A(_0x448292,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x221999}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x415ab1=>{const _0x2817da=_0x221999['length'];for(const _0x2d39fc of _0x221999){const _0x362b3d=_0x2d39fc===_0x221999[_0x2817da-0x1],{cdnUrl:_0x798aed,fileInfo:_0x2ff1dc}=_0x2d39fc;if(!_0x798aed||!_0x2ff1dc)continue;const {width:_0x5dd0dd,height:_0x574ea5}=_0x2ff1dc['imageInfo'],_0x1c60de=S(_0x798aed,_0x5dd0dd,_0x574ea5),_0x135c3e=C(_0x798aed,_0x1c60de['width']),_0x1a6199={'id':_0x2ff1dc['uuid'],'type':'image','attributes':{'imageDimension':_0x1c60de,..._0x135c3e}};this['_insertAsset'](_0x1a6199,_0x362b3d,_0x415ab1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x41c351=>{'idle'===_0x41c351['detail']['status']&&!_0x41c351['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x21fc85,_0x28c35d,_0x1e0ec5){const _0x704e6d=this['_editor']['model']['document']['selection'],_0x5edd76=_0x704e6d['getSelectedElement'](),_0x50af4e=!(!_0x5edd76||!_0x5edd76['is']('element','imageInline'));_0x1e0ec5['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x21fc85,_0x50af4e),_0x28c35d||_0x1e0ec5['setSelection'](_0x704e6d['getLastPosition']());}['_insertImage'](_0x216bc6,_0x3a231e){const _0x5c4134=this['_editor'],{imageDimension:_0x3f0f3a,imageFallbackUrl:_0x311b83,imageSources:_0x541ef3}=_0x216bc6['attributes'];_0x5c4134['execute']('insertImage',{'imageType':_0x3a231e?'imageInline':null,'source':{'uploadcareImageId':_0x216bc6['id'],'src':_0x311b83,'sources':_0x541ef3,..._0x3f0f3a}});}}class w extends _0x1b6628{['_editing'];['_controller']=null;static get['requires'](){return[_0x20eb2c,o];}constructor(_0x3fbb20){super(_0x3fbb20),this['_editing']=_0x3fbb20['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2fadba){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2fadba);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x463aaf,..._0x2c4fc3}){return _0x4c6983(_0x463aaf,_0x2c4fc3);}static['getInfo'](_0x5b1011,_0xcccb5d){return _0x56a9cc(_0x5b1011,_0xcccb5d);}}class f extends _0x1eb42f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2f0a80,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3770b0=this['editor'];if(!!!_0x3770b0['config']['get']('uploadcare'))return;_0x3770b0['plugins']['get'](_0x2f0a80)['createUploadAdapter']=_0x256eb8=>new k(_0x256eb8,_0x3770b0),_0x3770b0['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2389e4,{imageElement:_0x25696c,data:_0x4b6f38})=>{_0x3770b0['model']['change'](_0x35f9e6=>{_0x35f9e6['setAttribute']('uploadcareImageId',_0x4b6f38['uploadcareImageId'],_0x25696c);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x40ea5b,_0x9abb3){this['loader']=_0x40ea5b,this['editor']=_0x9abb3,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5dee3e=await this['loader']['file'];return j['upload']({'file':_0x5dee3e,'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':_0x4b81ef=>{_0x4b81ef&&_0x4b81ef['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4b81ef['value']);}})['then'](async _0x1709ac=>{const {imageFallbackUrl:_0x10e5de,imageSources:_0x2a044d}=C(_0x1709ac['cdnUrl'],_0x1709ac['imageInfo']['width']);return{'uploadcareImageId':_0x1709ac['uuid'],'default':_0x10e5de,'sources':_0x2a044d};})['catch'](()=>{const _0x55d9e4=t('Cannot\x20upload\x20file:')+('\x20'+_0x5dee3e['name']+'.');return Promise['reject'](_0x55d9e4);});}['abort'](){this['controller']['abort']();}}class o extends _0x1eb42f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x20eb2c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x489d94){super(_0x489d94),this['ucContextId']=_0x3d9af7();}['init'](){const _0x51b95a=this['editor'];_0x51b95a['commands']['add']('uploadcare',new w(_0x51b95a));}['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 _0x35346e=_0x57318e['document']['querySelector']('input[uploadcare-file-input]');_0x35346e&&_0x35346e['remove']();}),async function(_0x10b974){const _0x31552c=_0x3e0e4c([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x227379=0x535f8c3a,_0x155cfd=0x5358f1e2^_0x227379,_0x11069a=window[_0x3e0e4c([0x44,0x61,0x74,0x65])][_0x3e0e4c([0x6e,0x6f,0x77])](),_0x2756ac=_0x10b974[_0x3e0e4c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3af322=new window[(_0x3e0e4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e1b86=>{_0x2756ac[_0x3e0e4c([0x6f,0x6e,0x63,0x65])](_0x3e0e4c([0x72,0x65,0x61,0x64,0x79]),_0x4e1b86);}),_0x5d7148={[_0x3e0e4c([0x6b,0x74,0x79])]:_0x3e0e4c([0x45,0x43]),[_0x3e0e4c([0x75,0x73,0x65])]:_0x3e0e4c([0x73,0x69,0x67]),[_0x3e0e4c([0x63,0x72,0x76])]:_0x3e0e4c([0x50,0x2d,0x32,0x35,0x36]),[_0x3e0e4c([0x78])]:_0x3e0e4c([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]),[_0x3e0e4c([0x79])]:_0x3e0e4c([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]),[_0x3e0e4c([0x61,0x6c,0x67])]:_0x3e0e4c([0x45,0x53,0x32,0x35,0x36])},_0x29166a=_0x2756ac[_0x3e0e4c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e0e4c([0x67,0x65,0x74])](_0x3e0e4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b6bde(){let _0x30452c,_0xade206=null,_0x2a8497=null;try{if(_0x29166a==_0x3e0e4c([0x47,0x50,0x4c]))return _0x3e0e4c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x30452c=_0x1d56b0(),!_0x30452c)return _0x3e0e4c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x30452c[_0x3e0e4c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a8497=_0x385cf0(_0x30452c[_0x3e0e4c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x30452c[_0x3e0e4c([0x6a,0x74,0x69])])),await _0x11bf42()?_0x2ae1c7()?_0x5c1e73()?_0x3e0e4c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4cc64a()?(_0x30452c[_0x3e0e4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e0e4c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xade206=_0x27ab21(_0x3e0e4c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x30452c[_0x3e0e4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e0e4c([0x74,0x72,0x69,0x61,0x6c])&&(_0xade206=_0x27ab21(_0x3e0e4c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x33e558()):_0x3e0e4c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e0e4c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e0e4c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3e0e4c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c1e73(){const _0x3e82c4=[_0x3e0e4c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e0e4c([0x74,0x72,0x69,0x61,0x6c])][_0x3e0e4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30452c[_0x3e0e4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x11069a/0x3e8:0xe10*_0x155cfd;return _0x30452c[_0x3e0e4c([0x65,0x78,0x70])]<_0x3e82c4;}function _0x2ae1c7(){const _0x308175=_0x30452c[_0x3e0e4c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x308175&&(!!_0x308175[_0x3e0e4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0e4c([0x2a]))||!!_0x308175[_0x3e0e4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0e4c([0x55,0x50,0x4c,0x43])));}function _0x4cc64a(){const _0x3f14c6=_0x30452c[_0x3e0e4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3f14c6||0x0==_0x3f14c6[_0x3e0e4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3c14c5}=new URL(window[_0x3e0e4c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3f14c6[_0x3e0e4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c14c5))return!0x0;const _0x9df8eb=_0x3c14c5[_0x3e0e4c([0x73,0x70,0x6c,0x69,0x74])](_0x3e0e4c([0x2e]));return _0x3f14c6[_0x3e0e4c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e81ab=>_0x1e81ab[_0x3e0e4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0e4c([0x2a])))[_0x3e0e4c([0x6d,0x61,0x70])](_0x434386=>_0x434386[_0x3e0e4c([0x73,0x70,0x6c,0x69,0x74])](_0x3e0e4c([0x2e])))[_0x3e0e4c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa5e813=>_0xa5e813[_0x3e0e4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x9df8eb[_0x3e0e4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e0e4c([0x6d,0x61,0x70])](_0x18d20e=>Array(_0x9df8eb[_0x3e0e4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x18d20e[_0x3e0e4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e0e4c([0x66,0x69,0x6c,0x6c])](_0x18d20e[0x0]===_0x3e0e4c([0x2a])?_0x3e0e4c([0x2a]):'')[_0x3e0e4c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x18d20e))[_0x3e0e4c([0x73,0x6f,0x6d,0x65])](_0x495fd9=>_0x9df8eb[_0x3e0e4c([0x65,0x76,0x65,0x72,0x79])]((_0x32c5a5,_0x39ae5c)=>_0x495fd9[_0x39ae5c]===_0x32c5a5||_0x495fd9[_0x39ae5c]===_0x3e0e4c([0x2a])));}function _0x33e558(){return _0xade206&&_0x2a8497?new window[(_0x3e0e4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x424122,_0x552f4a)=>{_0xade206[_0x3e0e4c([0x74,0x68,0x65,0x6e])](_0x424122,_0x552f4a),_0x2a8497[_0x3e0e4c([0x74,0x68,0x65,0x6e])](_0xc1da62=>{_0xc1da62!=_0x3e0e4c([0x56,0x61,0x6c,0x69,0x64])&&_0x424122(_0xc1da62);},_0x552f4a);}):_0xade206||_0x2a8497||_0x3e0e4c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x385cf0(_0x1ed73e,_0x17a49c){return new window[(_0x3e0e4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2049b0=>{if(_0x423897())return _0x2049b0(_0x3e0e4c([0x56,0x61,0x6c,0x69,0x64]));_0x37563(),_0x2756ac[_0x3e0e4c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e0e4c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x50d8a1=!0x1;const _0x136b7b=_0x3d9af7();function _0x401090(_0x3b4ecb){return!!_0x3b4ecb&&(typeof _0x3b4ecb===_0x3e0e4c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3b4ecb===_0x3e0e4c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3b4ecb[_0x3e0e4c([0x74,0x68,0x65,0x6e])]===_0x3e0e4c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3b4ecb[_0x3e0e4c([0x63,0x61,0x74,0x63,0x68])]===_0x3e0e4c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46fdca(_0x347873){_0x4a5978(_0x347873)[_0x3e0e4c([0x74,0x68,0x65,0x6e])](_0x559b5b=>{if(!_0x559b5b||_0x559b5b[_0x3e0e4c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e0e4c([0x6f,0x6b]))return _0x3e0e4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ffdac(_0xa23695(_0x136b7b+_0x17a49c))!=_0x559b5b[_0x3e0e4c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e0e4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e0e4c([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e0e4c([0x74,0x68,0x65,0x6e])](_0x53b6b5=>(_0x6b04c(),_0x53b6b5),()=>{const _0x356229=_0x55fce4();return null==_0x356229?(_0x6b04c(),_0x3e0e4c([0x56,0x61,0x6c,0x69,0x64])):_0x3e0e4c(_0x11069a-_0x356229>(0x7753083a^_0x227379)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e0e4c([0x74,0x68,0x65,0x6e])](_0x2049b0)[_0x3e0e4c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2049b0(_0x3e0e4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x412fa9=0x536962ba^_0x227379;function _0x6b04c(){const _0x14810f=_0x3e0e4c([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ffdac(_0xa23695(_0x1ed73e)),_0x8b7683=_0x83358f(_0x4ffdac(window[_0x3e0e4c([0x4d,0x61,0x74,0x68])][_0x3e0e4c([0x63,0x65,0x69,0x6c])](_0x11069a/_0x412fa9)));window[_0x3e0e4c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e0e4c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14810f,_0x8b7683);}function _0x55fce4(){const _0x22ca6b=_0x3e0e4c([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ffdac(_0xa23695(_0x1ed73e)),_0x17c8ff=window[_0x3e0e4c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e0e4c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22ca6b);return _0x17c8ff?window[_0x3e0e4c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x83358f(_0x17c8ff),0x10)*_0x412fa9:null;}function _0x4a5978(_0x2da891){return new window[(_0x3e0e4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x49fb5b,_0x456f7c)=>{_0x2da891[_0x3e0e4c([0x74,0x68,0x65,0x6e])](_0x49fb5b,_0x456f7c),window[_0x3e0e4c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x456f7c,0x535e58fa^_0x227379);});}}_0x2756ac[_0x3e0e4c([0x6f,0x6e])](_0x3e0e4c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3b980b,_0x5a7a17)=>{if(_0x5a7a17[0x0]!=_0x1ed73e)return _0x2049b0(_0x3e0e4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a7a17[0x1]={..._0x5a7a17[0x1],[_0x3e0e4c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x136b7b};},{[_0x3e0e4c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e0e4c([0x68,0x69,0x67,0x68])}),_0x2756ac[_0x3e0e4c([0x6f,0x6e])](_0x3e0e4c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a389c=>{_0x401090(_0x1a389c[_0x3e0e4c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x50d8a1=!0x0,_0x46fdca(_0x1a389c[_0x3e0e4c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e0e4c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e0e4c([0x6c,0x6f,0x77])}),_0x3af322[_0x3e0e4c([0x74,0x68,0x65,0x6e])](()=>{_0x50d8a1||_0x2049b0(_0x3e0e4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x423897(){return _0x2756ac[_0x3e0e4c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e0e4c([0x76,0x69,0x65,0x77])][_0x3e0e4c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e0e4c([0x61,0x75,0x74,0x6f]);}function _0x37563(){_0x2756ac[_0x3e0e4c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e0e4c([0x76,0x69,0x65,0x77])][_0x3e0e4c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e0e4c([0x61,0x75,0x74,0x6f]);}}function _0x27ab21(_0x5cac3b){const _0x320d70=[new window[(_0x3e0e4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x129493=>setTimeout(_0x129493,0x5356b2f6^_0x227379)),_0x3af322[_0x3e0e4c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e0e4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4454b7=>{let _0x393f4f=0x0;_0x2756ac[_0x3e0e4c([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e0e4c([0x6f,0x6e])](_0x3e0e4c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x229144,_0x40d74d)=>{_0x40d74d[0x0][_0x3e0e4c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x393f4f++,_0x393f4f==(0x535f89d2^_0x227379)&&(_0x4454b7(),_0x229144[_0x3e0e4c([0x6f,0x66,0x66])]());});}))];return window[_0x3e0e4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e0e4c([0x72,0x61,0x63,0x65])](_0x320d70)[_0x3e0e4c([0x74,0x68,0x65,0x6e])](()=>_0x5cac3b);}async function _0xf4ba9e(){await _0x3af322,_0x2756ac[_0x3e0e4c([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e0e4c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ce51d,_0x2756ac[_0x3e0e4c([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e0e4c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ce51d,_0x2756ac[_0x3e0e4c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e0e4c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1bd750(_0x3b3751){const _0x816670=_0x4e5f11();_0x2756ac[_0x816670]=_0x3e0e4c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3b3751,_0x3b3751!=_0x3e0e4c([0x56,0x61,0x6c,0x69,0x64])&&_0xf4ba9e();}function _0x4e5f11(){const _0x165215=window[_0x3e0e4c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e0e4c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e0e4c([0x6e,0x6f,0x77])]())[_0x3e0e4c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e0e4c([0x2e]),'');let _0x57cc0d=_0x3e0e4c([0x68]);for(let _0x1e85b7=0x0;_0x1e85b7<_0x165215[_0x3e0e4c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e85b7+=0x2){let _0x3ccdce=window[_0x3e0e4c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x165215[_0x3e0e4c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e85b7,_0x1e85b7+0x2));_0x3ccdce>=_0x31552c[_0x3e0e4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ccdce-=_0x31552c[_0x3e0e4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x57cc0d+=_0x31552c[_0x3ccdce];}return _0x57cc0d;}function _0x1d56b0(){const _0x28be67=_0x29166a[_0x3e0e4c([0x73,0x70,0x6c,0x69,0x74])](_0x3e0e4c([0x2e]));if(0x3!=_0x28be67[_0x3e0e4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1aee47(_0x28be67[0x1]);function _0x1aee47(_0x389cdc){const _0x3bd48c=_0x1f5c6b(_0x389cdc);return _0x3bd48c&&_0x1deb2d()?_0x3bd48c:null;function _0x1deb2d(){const _0x14c89d=_0x3bd48c[_0x3e0e4c([0x6a,0x74,0x69])],_0x36290a=window[_0x3e0e4c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14c89d[_0x3e0e4c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14c89d[_0x3e0e4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x871c29={..._0x3bd48c,[_0x3e0e4c([0x6a,0x74,0x69])]:_0x14c89d[_0x3e0e4c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x14c89d[_0x3e0e4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x871c29[_0x3e0e4c([0x76,0x63])],_0xa23695(_0x871c29)==_0x36290a;}}}async function _0x11bf42(){let _0x4ebdce=!0x0;try{const _0x4c5d51=_0x29166a[_0x3e0e4c([0x73,0x70,0x6c,0x69,0x74])](_0x3e0e4c([0x2e])),[_0x3efcd4,_0x3b81ef,_0x12db52]=_0x4c5d51;return _0xe06feb(_0x3efcd4),await _0x328586(_0x3efcd4,_0x3b81ef,_0x12db52),_0x4ebdce;}catch{return!0x1;}function _0xe06feb(_0xf6cd57){const _0x29b6d3=_0x1f5c6b(_0xf6cd57);_0x29b6d3&&_0x29b6d3[_0x3e0e4c([0x61,0x6c,0x67])]==_0x3e0e4c([0x45,0x53,0x32,0x35,0x36])||(_0x4ebdce=!0x1);}async function _0x328586(_0x563d67,_0x23abbc,_0x416329){const _0x72e9f3=window[_0x3e0e4c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e0e4c([0x66,0x72,0x6f,0x6d])](_0x565dc9(_0x416329),_0x33d416=>_0x33d416[_0x3e0e4c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a76b3=new window[(_0x3e0e4c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e0e4c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x563d67+_0x3e0e4c([0x2e])+_0x23abbc),_0x125516=window[_0x3e0e4c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e0e4c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x125516)return;const _0x51e393=await _0x125516[_0x3e0e4c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e0e4c([0x6a,0x77,0x6b]),_0x5d7148,{[_0x3e0e4c([0x6e,0x61,0x6d,0x65])]:_0x3e0e4c([0x45,0x43,0x44,0x53,0x41]),[_0x3e0e4c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e0e4c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e0e4c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x125516[_0x3e0e4c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e0e4c([0x6e,0x61,0x6d,0x65])]:_0x3e0e4c([0x45,0x43,0x44,0x53,0x41]),[_0x3e0e4c([0x68,0x61,0x73,0x68])]:{[_0x3e0e4c([0x6e,0x61,0x6d,0x65])]:_0x3e0e4c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51e393,_0x72e9f3,_0x5a76b3)||(_0x4ebdce=!0x1);}}function _0x1f5c6b(_0xbfb6d0){return _0xbfb6d0[_0x3e0e4c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e0e4c([0x65,0x79]))?JSON[_0x3e0e4c([0x70,0x61,0x72,0x73,0x65])](_0x565dc9(_0xbfb6d0)):null;}function _0x565dc9(_0x4c2072){return window[_0x3e0e4c([0x61,0x74,0x6f,0x62])](_0x4c2072[_0x3e0e4c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e0e4c([0x2b]))[_0x3e0e4c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e0e4c([0x2f])));}function _0xa23695(_0x171680){let _0x40a07d=0x1505;function _0x3731ca(_0x56d005){for(let _0x3f71ad=0x0;_0x3f71ad<_0x56d005[_0x3e0e4c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f71ad++){const _0x4514da=_0x56d005[_0x3e0e4c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3f71ad);_0x40a07d=(_0x40a07d<<0x5)+_0x40a07d+_0x4514da,_0x40a07d&=_0x40a07d;}}function _0x383c0f(_0x2dea4b){Array[_0x3e0e4c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2dea4b)?_0x2dea4b[_0x3e0e4c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x383c0f):_0x2dea4b&&typeof _0x2dea4b==_0x3e0e4c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e0e4c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2dea4b)[_0x3e0e4c([0x73,0x6f,0x72,0x74])]()[_0x3e0e4c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e19ba,_0x2c926e])=>{_0x3731ca(_0x1e19ba),_0x383c0f(_0x2c926e);}):_0x3731ca(window[_0x3e0e4c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2dea4b));}return _0x383c0f(_0x171680),_0x40a07d>>>0x0;}function _0x4ffdac(_0x480fa0){return _0x480fa0[_0x3e0e4c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e0e4c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e0e4c([0x30]));}function _0x83358f(_0x29ace8){return _0x29ace8[_0x3e0e4c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e0e4c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e0e4c([0x6a,0x6f,0x69,0x6e])]('');}function _0x4ce51d(){}function _0x3e0e4c(_0x2d3a89){return _0x2d3a89['map'](_0x18e5f5=>String['fromCharCode'](_0x18e5f5))['join']('');}_0x1bd750(await _0x3b6bde());}(this);}['_initSchema'](){const _0x183292=this['editor']['model']['schema'];_0x183292['isRegistered']('imageBlock')&&_0x183292['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x183292['isRegistered']('imageInline')&&_0x183292['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x11cf93=this['editor'];_0x11cf93['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x11cf93['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x34a45d=>_0x34a45d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1fe940=_0x11cf93['commands']['get']('replaceImageSource');_0x1fe940&&this['listenTo'](_0x1fe940,'cleanupImage',(_0x5cb2f4,[_0x100fa8,_0x621ddd])=>{_0x100fa8['removeAttribute']('uploadcareImageId',_0x621ddd);});}['_initConfig'](){const _0x414087=this['editor']['config']['get']('uploadcare.uploader')||{},_0x428fa3=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3a69f0(_0x57318e['document'],'uc-config',{..._0x414087,'pubkey':_0x428fa3,'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']=_0x31d869=>{if('closeMax'==_0x31d869)return'#uc-icon-arrow-down';},_0x57318e['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3a69f0(_0x57318e['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x57318e['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x39f294=this['editor']['commands']['get']('insertImage');_0x39f294&&this['listenTo'](_0x39f294,'execute',()=>{const _0x57b62e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x57b62e&&_0x57b62e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x57b62e);});});const _0x5614c0=this['editor']['commands']['get']('uploadcareImageReplace');_0x5614c0&&this['listenTo'](_0x5614c0,'execute',()=>{const _0x44e8b9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x44e8b9&&_0x44e8b9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x44e8b9);});});}}class tt extends _0x1eb42f{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x419003){super(_0x419003),_0x419003['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2dab71['defineComponents'](_0x2dab71),this['_defineLocale']();}['_defineLocale'](){const _0x287e8a=this['editor']['config']['get']('uploadcare.locale'),_0x570655=this['editor']['locale']['contentLanguage'];_0x287e8a&&_0x2dab71['defineLocale'](_0x570655,_0x287e8a);}}class ii extends _0x330511{constructor(_0x2bb23a){super(_0x2bb23a);const t=_0x2bb23a['t'],_0x503cd4=this['bindTemplate'],_0x54a569=new _0x320917();_0x54a569['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':[_0x54a569,{'text':_0x503cd4['to']('imageUploadProgress',_0x2c65f1=>t('Loading\x20image...')+'\x20('+(_0x2c65f1||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 _0x330511{constructor(_0x10b1b3){super(_0x10b1b3);const t=_0x10b1b3['t'];this['set']('errorType',null);const _0x12de28=new _0x1b73cf(_0x10b1b3);_0x12de28['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x12de28['withText']=!0x0,_0x12de28['class']='ck-button-action',_0x12de28['on']('execute',()=>{this['fire']('retry');}),_0x12de28['bind']('isVisible')['to'](this,'errorType',_0x4f81b8=>'NotFound'!==_0x4f81b8);const _0x2bcef8=new _0x50fb93();_0x2bcef8['content']=_0xf4a164,_0x2bcef8['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2b4b57=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':[_0x2bcef8,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2b4b57['to']('errorType',_0xfb3b0d=>t('NotFound'!==_0xfb3b0d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x12de28]},{'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 _0x330511{constructor(_0x19bc2c,_0x21ead9){super(_0x19bc2c);const _0x3ff633=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x21ead9,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3ff633['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x34ea07,_0x194562,_0x3c42ea){super(_0x34ea07),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x34ea07),this['_errorView']=new ti(_0x34ea07),this['_editingView']=new ei(_0x34ea07,_0x3c42ea),this['_focusableView']=new _0x330511(_0x34ea07),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x194562),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'],_0xcc7b30=>{this['_addUploadcareImageEditorListeners'](_0xcc7b30);});}),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'](_0x3b286e,_0x349e3b){const _0x413327='uc-cloud-image-editor',_0x18e418=_0x3b286e['querySelector'](_0x413327);if(_0x18e418)return _0x349e3b(_0x18e418);const _0x47f32b=new MutationObserver(_0x2e774d=>{const _0x208c30=_0x2e774d['filter'](_0x2392a5=>_0x2392a5['target']===_0x3b286e&&_0x2392a5['addedNodes']['length']>0x0&&_0x2392a5['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x413327);_0x208c30['length']&&(_0x47f32b['disconnect'](),_0x349e3b(_0x208c30[0x0]['addedNodes'][0x0]));});_0x47f32b['observe'](_0x3b286e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x41b201){_0x41b201['addEventListener']('apply',_0x3d4549=>{this['fire']('apply',{'imageSrc':_0x3d4549['detail']['cdnUrl']});}),_0x41b201['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x10cec6(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x16ab30,_0x2ad631,_0xdeb706){super(),this['_editor']=_0x16ab30,this['_dialog']=_0x2ad631,this['_imageElement']=_0xdeb706,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 _0x3595af=this['_imageElement'],_0x487fc5=_0x3595af['getAttribute']('uploadcareImageId'),_0x2eb5c6=_0x3595af['getAttribute']('src');if(_0x487fc5)await this['_loadImageInfo'](_0x487fc5,_0x2eb5c6);else{if(this['_imageCache']['has'](_0x2eb5c6)){const _0x4c41ba=this['_imageCache']['get'](_0x2eb5c6);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c41ba['url'],this['imageDimension']=_0x4c41ba['dimension'],this['imageId']=_0x4c41ba['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x282ca5}=this['_editor'],t=_0x282ca5['t'],_0x1697e7=new X(_0x282ca5,this['imageStatus'],this['_attributes']);_0x1697e7['bind']('status')['to'](this,'imageStatus'),_0x1697e7['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1697e7['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1697e7['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1697e7,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2b5f05,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1697e7,'position':_0x2915d5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1697e7['focus']();},'onHide':()=>{_0x1697e7['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5b3420=>!A(_0x5b3420,_0x1697e7['element'])}});}['_loadImageInfo'](_0x512f63,_0x226506){return j['getInfo'](_0x512f63,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x16045b=>{const {width:_0x1b38b2,height:_0x3e65dd}=_0x16045b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x226506,this['imageDimension']={'width':_0x1b38b2,'height':_0x3e65dd},this['imageId']=_0x512f63;})['catch'](_0xf34f8b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xf34f8b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5c6938,_0x4a43ab){return this['_getImageAsFile'](_0x5c6938)['then'](_0x47b2b5=>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':_0x4a43ab['signal'],'file':_0x47b2b5,'onProgress':_0x5175d7=>{_0x5175d7&&_0x5175d7['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5175d7['value']));}}))['then'](_0x2175e9=>{const {width:_0x128e2e,height:_0x1aedb8}=_0x2175e9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2175e9['cdnUrl'],this['imageDimension']={'width':_0x128e2e,'height':_0x1aedb8},this['imageId']=_0x2175e9['uuid'],this['imageUploadProgress']=null;const _0x157753=_0x5c6938['getAttribute']('src');this['_imageCache']['set'](_0x157753,{'id':_0x2175e9['uuid'],'url':_0x2175e9['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x539500=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x539500['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3cae50,_0x11c791){_0x3cae50['on']('apply',(_0x26884e,_0x35f271)=>{this['_replaceImage'](_0x11c791,_0x35f271['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3cae50['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3cae50['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x565ca7,_0x1f1358,_0xb36250){const _0x10ad18=this['_editor'],{width:_0x309ec8,height:_0xb4028e}=S(_0x1f1358,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1d0d09,imageSources:_0x2bc547}=C(_0x1f1358,_0x309ec8);_0x10ad18['model']['change'](_0x2f5718=>{if('$graveyard'===_0x565ca7['root']['rootName']){_0x10ad18['execute']('insertImage',{'imageType':_0x565ca7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x565ca7['getAttributes']()),'uploadcareImageId':_0xb36250,'src':_0x1d0d09,'sources':_0x2bc547,'width':_0x309ec8,'height':_0xb4028e}});const _0x49488c=_0x565ca7['getChildren']();_0x565ca7=_0x10ad18['model']['document']['selection']['getSelectedElement']();for(const _0x2b16e3 of _0x49488c)_0x2f5718['append'](_0x2f5718['cloneElement'](_0x2b16e3),_0x565ca7);}else _0x2f5718['setSelection'](_0x565ca7,'on'),_0x10ad18['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x565ca7['getAttributes']()),'uploadcareImageId':_0xb36250,'src':_0x1d0d09,'sources':_0x2bc547,'width':_0x309ec8,'height':_0xb4028e},_0x565ca7);_0x2f5718['setSelection'](_0x565ca7,'on');});}async['_getImageAsFile'](_0x47516f){const _0x394f13=_0x57318e['window'],_0x14b71d=_0x57318e['document']['location']['href'],_0xd957df=new _0x394f13['URL'](_0x47516f['getAttribute']('src'),_0x14b71d);if('data:'===_0xd957df['protocol']){const _0x5f04db=_0xd957df['href']['split'](','),_0x11b58d=_0x5f04db[0x0]['match'](/:(.*?);/)[0x1],_0x2c4edc=_0x11b58d['split']('/')[0x1],_0x4eb355=_0x394f13['atob'](_0x5f04db[_0x5f04db['length']-0x1]);let _0x3d62e5=_0x4eb355['length'];const _0x2e58a7=new _0x394f13['Uint8Array'](_0x3d62e5);for(;_0x3d62e5--;)_0x2e58a7[_0x3d62e5]=_0x4eb355['charCodeAt'](_0x3d62e5);return new _0x394f13['File']([_0x2e58a7],'image.'+_0x2c4edc,{'type':_0x11b58d});}const _0x3480af=_0xd957df['href']['split']('/'),_0x1d9bdb=_0x3480af[_0x3480af['length']-0x1],_0x3d8439=_0x1d9bdb['split']('.')[0x1];return _0x394f13['fetch'](_0xd957df['href'])['then'](_0x468c26=>_0x468c26['clone']()['blob']())['then'](_0x4d6660=>new _0x394f13['File']([_0x4d6660],_0x1d9bdb,{'type':'image/'+_0x3d8439}));}}class O extends _0x1b6628{['imageEditController'];static get['requires'](){return[_0x20eb2c];}['_isEditable'];constructor(_0x1a823b){super(_0x1a823b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x51a780){const _0x18d312=G(_0x51a780);return _0x4b941b=>!(!_0x4b941b||!_0x4b941b['is']('element','imageBlock')&&!_0x4b941b['is']('element','imageInline'))&&(!!_0x4b941b['hasAttribute']('uploadcareImageId')||!!_0x4b941b['hasAttribute']('src')&&_0x18d312(_0x4b941b['getAttribute']('src')));}(_0x1a823b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x276a79=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x276a79);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x510ce0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x510ce0&&(_0x510ce0['is']('element','imageBlock')||_0x510ce0['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x20eb2c),_0x510ce0),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x1b6628{['refresh'](){const _0x3f653a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3f653a&&(_0x3f653a['is']('element','imageBlock')||_0x3f653a['is']('element','imageInline')));}['execute'](_0x18f2c5){const _0x33080a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x170998=>{_0x170998['setAttributes'](_0x18f2c5,_0x33080a),_0x170998['removeAttribute']('srcset',_0x33080a),_0x170998['removeAttribute']('sizes',_0x33080a);});}}class m extends _0x1eb42f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x16ed00,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x165d00}=this;_0x165d00['commands']['add']('uploadcareImageEdit',new O(_0x165d00)),_0x165d00['commands']['add']('uploadcareImageReplace',new R(_0x165d00));}}class g extends _0x1eb42f{['_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 _0x40196c=this['editor'];_0x40196c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4c524e=>{const _0x5d66a7=_0x40196c['commands']['get']('uploadcareImageEdit'),_0x5c07b2=new _0x1b73cf(_0x4c524e),t=_0x4c524e['t'];return _0x5c07b2['set']({'icon':_0x2b5f05,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5c07b2['bind']('isEnabled')['to'](_0x5d66a7),_0x5c07b2['bind']('isOn')['to'](_0x5d66a7,'isActive'),this['listenTo'](_0x5c07b2,'execute',()=>{_0x40196c['execute']('uploadcareImageEdit'),_0x40196c['editing']['view']['focus']();}),_0x5c07b2;}),this['_initConfig']();}['_initConfig'](){const _0x3644af=_0x3a69f0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3644af),this['listenTo'](this['editor'],'destroy',()=>{_0x3644af['remove']();});}}class et extends _0x1eb42f{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 _0x26298a,Command as _0x2f71fe}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xcdd4e2,IconGooglePhotos as _0xbe40f,IconGoogleDrive as _0x174a4a,IconFacebook as _0x271657,IconDropbox as _0x1cc948,IconUploadcareLink as _0xfdba2e,IconUploadcareImageUpload as _0x21039e,IconError as _0x109435,IconUploadcareImageEdit as _0x31c427}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x20eb05,MenuBarMenuListItemButtonView as _0x3b32fa,View as _0x3c633e,FocusCycler as _0x2d1cdd,Dialog as _0x2d272c,DialogViewPosition as _0x29b8da,SpinnerView as _0x47bd20,IconView as _0x10fc9d,Notification as _0x36b556}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5e8cb3,DomEmitterMixin as _0x528f1e,global as _0x3b163d,getAncestors as _0xde8f8b,ObservableMixin as _0x1549c3,uid as _0x3e4bc9,createElement as _0xf43621}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1ddf6f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x14d16d,info as _0x55c6e9}from'@uploadcare/upload-client';import*as _0x2443b2 from'@uploadcare/file-uploader';var i=function(_0x5dde4a){return _0x5dde4a['Local']='local',_0x5dde4a['URL']='url',_0x5dde4a['Dropbox']='dropbox',_0x5dde4a['GDrive']='gdrive',_0x5dde4a['Facebook']='facebook',_0x5dde4a['GPhotos']='gphotos',_0x5dde4a['OneDrive']='onedrive',_0x5dde4a;}({});function _(_0x3a9f8b,_0x40f595,_0x212141){const t=_0x3a9f8b['t'],_0x6b77d3=_0x3a9f8b['t'];switch(_0x40f595){case i['Local']:return{'text':_0x6b77d3('Insert'===_0x212141?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x6b77d3('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x212141?_0x6b77d3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x6b77d3('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x212141?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x212141?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x212141?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x212141?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x212141?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x40f595;}}class e extends _0x26298a{['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 _0x3ad480=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x437df8;for(const _0x39b3bd in _0x3ad480){const _0x5c490a=_0x39b3bd,_0x3c530b=_0x3ad480[_0x5c490a];if('uploadcareLicenseKeyValid'==_0x3c530b||'uploadcareLicenseKeyInvalid'==_0x3c530b||'uploadcareLicenseKeyExpired'==_0x3c530b||'uploadcareLicenseKeyDomainLimit'==_0x3c530b||'uploadcareLicenseKeyNotAllowed'==_0x3c530b||'uploadcareLicenseKeyEvaluationLimit'==_0x3c530b||'uploadcareLicenseKeyTrialLimit'==_0x3c530b||'uploadcareLicenseKeyUsageLimit'==_0x3c530b){delete _0x3ad480[_0x5c490a],_0x437df8=_0x3c530b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x437df8&&_0x3ad480['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x437df8&&_0x3ad480['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x437df8&&_0x3ad480['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x437df8&&_0x3ad480['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x437df8&&_0x3ad480['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x437df8&&_0x3ad480['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x437df8&&_0x3ad480['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5b5a3f}=this,_0x4e0170=_0x5b5a3f['commands']['get']('uploadcare');if(!_0x4e0170)return;const _0x5591a6=this['_normalizeConfigSourceList'](_0x5b5a3f['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4a4fe5,_0x3fea8a)=>{const _0x58a2b9=this['_getIntegrationKey'](_0x3fea8a['type']);return _0x4a4fe5[_0x58a2b9]||(_0x4a4fe5[_0x58a2b9]=[]),_0x4a4fe5[_0x58a2b9]['push'](_0x3fea8a),_0x4a4fe5;},{});_0x5b5a3f['plugins']['has']('ImageInsertUI')&&_0x5b5a3f['commands']['get']('uploadcare')&&Object['entries'](_0x5591a6)['forEach'](([_0x14e1ee,_0x47261b])=>{_0x5b5a3f['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x14e1ee,'observable':()=>_0x4e0170,'buttonViewCreator':()=>this['_createToolbarButton'](_0x47261b),'formViewCreator':()=>this['_createDropdownButtons'](_0x47261b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x47261b),'override':'assetManager'!==_0x14e1ee});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x524504){const {locale:_0x490eac}=this['editor'];return _0x524504['map'](_0x20336f=>{const _0xd3d1d5=_(_0x490eac,_0x20336f,'Insert');switch(_0x20336f){case i['Local']:return{'icon':_0x21039e,'type':i['Local'],..._0xd3d1d5};case i['URL']:return{'icon':_0xfdba2e,'type':i['URL'],..._0xd3d1d5};case i['Dropbox']:return{'icon':_0x1cc948,'type':i['Dropbox'],..._0xd3d1d5};case i['Facebook']:return{'icon':_0x271657,'type':i['Facebook'],..._0xd3d1d5};case i['GDrive']:return{'icon':_0x174a4a,'type':i['GDrive'],..._0xd3d1d5};case i['GPhotos']:return{'icon':_0xbe40f,'type':i['GPhotos'],..._0xd3d1d5};case i['OneDrive']:return{'icon':_0xcdd4e2,'type':i['OneDrive'],..._0xd3d1d5};}});}['_getIntegrationKey'](_0x48864f){switch(_0x48864f){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x57e251,_0x3263fd){const _0x52577=this['editor'],_0xfbce1f=new _0x57e251(_0x52577['locale']),_0x4c0b7e=_0x52577['commands']['get']('uploadcare');return _0xfbce1f['bind']('isEnabled')['to'](_0x4c0b7e),_0xfbce1f['on']('execute',()=>{_0x4c0b7e['execute'](_0x3263fd);}),_0xfbce1f;}['_createToolbarButton'](_0x78b11e){const {locale:_0x28a58d}=this['editor'],_0x1230f7=this['editor']['plugins']['get']('ImageInsertUI'),_0x4472ac=_0x78b11e[0x0],_0x17c6aa=this['_createButton'](_0x20eb05,_0x4472ac['type']);return _0x17c6aa['icon']=_0x4472ac['icon'],_0x17c6aa['bind']('label')['to'](_0x1230f7,'isImageSelected',_0x353f5c=>_(_0x28a58d,_0x4472ac['type'],_0x353f5c?'Replace':'Insert')['text']),_0x17c6aa['tooltip']=!0x0,_0x17c6aa;}['_createDropdownButtons'](_0xde15f6){const {locale:_0x5b903d}=this['editor'],_0x3a09ab=this['editor']['plugins']['get']('ImageInsertUI');return _0xde15f6['map'](_0x1d1b8c=>{const _0x4e2458=this['_createButton'](_0x20eb05,_0x1d1b8c['type']);return _0x4e2458['withText']=!0x0,_0x4e2458['icon']=_0x1d1b8c['icon'],_0x4e2458['bind']('label')['to'](_0x3a09ab,'isImageSelected',_0x425a34=>_(_0x5b903d,_0x1d1b8c['type'],_0x425a34?'Replace':'Insert')['text']),_0x4e2458;});}['_createMenuBarButtons'](_0x49612b){return _0x49612b['map'](_0x2148eb=>{const _0x298e0c=this['_createButton'](_0x3b32fa,_0x2148eb['type']);return _0x298e0c['icon']=_0x2148eb['icon'],_0x298e0c['label']=_0x2148eb['shortText'],_0x298e0c;});}}class V extends _0x3c633e{['focusTracker'];['focusCycler'];constructor(_0x88c285){super(_0x88c285),this['focusTracker']=new _0x5e8cb3(),this['focusCycler']=new _0x2d1cdd({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends V{constructor(_0x3736ef,_0x2956e7){super(_0x3736ef),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-'+_0x2956e7}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3de865,_0x40ab93){const _0x59b2b5=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x379b71=>_0x379b71<=_0x40ab93)['map'](_0x886235=>_0x3de865['replace'](/\/$/,'')+'/-/resize/'+_0x886235+'x/\x20'+_0x886235+'w');return{'imageFallbackUrl':_0x3de865,'imageSources':[{'srcset':_0x59b2b5['join'](',\x20'),'sizes':'(max-width:\x20'+_0x40ab93+'px)\x20100vw,\x20'+_0x40ab93+'px','type':'image/webp'}]};}function F(_0x1a9c4b,_0x48e384,_0x135883){const _0x36d5a4=_0x1a9c4b['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x36d5a4?parseInt(_0x36d5a4[0x1],0xa):_0x48e384,'height':_0x36d5a4?parseInt(_0x36d5a4[0x2],0xa):_0x135883};}function p(_0x10e9c0,_0x46157b){const _0x305b8b=new(_0x528f1e())(),_0x46f7cb=_0x10e9c0['plugins']['get']('ImageUtils'),_0xa3d196=_0x10e9c0['editing']['mapper']['toViewElement'](_0x46157b),_0x357608=_0x46f7cb['findViewImgElement'](_0xa3d196),_0x11ef5e=_0x10e9c0['editing']['view']['domConverter']['viewToDom'](_0x357608),_0x1969ee=_0x46157b['getAttribute']('width'),_0xcc88e2=_0x46157b['getAttribute']('height'),_0x4f0929='image-processing';_0x10e9c0['editing']['view']['change'](_0x15ef11=>{_0x15ef11['addClass'](_0x4f0929,_0xa3d196),_0x15ef11['setStyle']('aspect-ratio',_0x1969ee+'/'+_0xcc88e2,_0x357608);}),_0x305b8b['listenTo'](_0x11ef5e,'load',()=>{_0x305b8b['stopListening'](_0x11ef5e,'load'),_0x10e9c0['editing']['view']['change'](_0x4e423d=>{_0x4e423d['removeClass'](_0x4f0929,_0xa3d196),_0x4e423d['removeStyle']('aspect-ratio',_0x357608);});});}function R(_0x1e3ab0){if(Array['isArray'](_0x1e3ab0)){const _0x4333d9=_0x1e3ab0['map'](R);return _0x356186=>_0x4333d9['some'](_0x840ca2=>_0x840ca2(_0x356186));}if('origin'==_0x1e3ab0){const _0x4a71d8=_0x3b163d['window']['location']['origin'];return _0x5e50fa=>new URL(_0x5e50fa,_0x3b163d['document']['baseURI'])['origin']==_0x4a71d8;}return'function'==typeof _0x1e3ab0?_0x1e3ab0:_0x1e3ab0 instanceof RegExp?_0x5cab6e=>!(!_0x5cab6e['match'](_0x1e3ab0)&&!_0x5cab6e['replace'](/^https?:\/\//,'')['match'](_0x1e3ab0)):()=>!0x1;}function M(_0x243e35,_0x5243ea){return _0xde8f8b(_0x243e35['target'])['includes'](_0x5243ea);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x1549c3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x99b6e4,_0x28f667,_0x483ab0){super(),this['_editor']=_0x99b6e4,this['_editing']=_0x28f667,this['_dialog']=_0x99b6e4['plugins']['get'](_0x2d272c),this['_api']=_0x28f667['ctxElement']['getAPI'](),this['_type']=_0x483ab0,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:_0x264cda,model:_0x5407a1}=this['_editor'],_0x54cfd8=_0x5407a1['document']['selection']['getSelectedElement'](),_0xe5b91c=_0x54cfd8&&(_0x54cfd8['is']('element','imageBlock')||_0x54cfd8['is']('element','imageInline'));this['_formView']=new S(_0x264cda,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x21039e,'title':_(_0x264cda,this['_type'],_0xe5b91c?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x29b8da['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4d2477=>!M(_0x4d2477,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x32d950}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3fb89e=>{const _0x28a979=_0x32d950['length'];for(const _0x119450 of _0x32d950){const _0x394b44=_0x119450===_0x32d950[_0x28a979-0x1],{cdnUrl:_0x3afaef,fileInfo:_0xdd0e95}=_0x119450;if(!_0x3afaef||!_0xdd0e95)continue;const {width:_0x1af5da,height:_0x3e287c}=_0xdd0e95['imageInfo'],_0x3d30ed=F(_0x3afaef,_0x1af5da,_0x3e287c),_0x23229a=C(_0x3afaef,_0x3d30ed['width']),_0x1fcac6={'id':_0xdd0e95['uuid'],'type':'image','attributes':{'imageDimension':_0x3d30ed,..._0x23229a}};this['_insertAsset'](_0x1fcac6,_0x394b44,_0x3fb89e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3e800c=>{'idle'===_0x3e800c['detail']['status']&&!_0x3e800c['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x30c9bf,_0x3a32c6,_0x193849){const _0x4753c1=this['_editor']['model']['document']['selection'],_0x1b6508=_0x4753c1['getSelectedElement'](),_0x4294ae=!(!_0x1b6508||!_0x1b6508['is']('element','imageInline'));_0x193849['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x30c9bf,_0x4294ae),_0x3a32c6||_0x193849['setSelection'](_0x4753c1['getLastPosition']());}['_insertImage'](_0x5be3d1,_0x38da2){const _0x2e8924=this['_editor'],{imageDimension:_0x130ab4,imageFallbackUrl:_0x1a72ab,imageSources:_0x221979}=_0x5be3d1['attributes'];_0x2e8924['execute']('insertImage',{'imageType':_0x38da2?'imageInline':null,'source':{'uploadcareImageId':_0x5be3d1['id'],'src':_0x1a72ab,'sources':_0x221979,..._0x130ab4}});}}class w extends _0x2f71fe{['_editing'];['_controller']=null;static get['requires'](){return[_0x2d272c,o];}constructor(_0x378cad){super(_0x378cad),this['_editing']=_0x378cad['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x7b2b77){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x7b2b77);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x51e57d,..._0x38692a}){return _0x14d16d(_0x51e57d,_0x38692a);}static['getInfo'](_0x224b05,_0x5ea326){return _0x55c6e9(_0x224b05,_0x5ea326);}}class f extends _0x26298a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1ddf6f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x27431f=this['editor'];if(!!!_0x27431f['config']['get']('uploadcare'))return;_0x27431f['plugins']['get'](_0x1ddf6f)['createUploadAdapter']=_0x2b9c96=>new k(_0x2b9c96,_0x27431f),_0x27431f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x16165c,{imageElement:_0xe275d0,data:_0x517a65})=>{_0x27431f['model']['change'](_0x4f35d9=>{_0x4f35d9['setAttribute']('uploadcareImageId',_0x517a65['uploadcareImageId'],_0xe275d0);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x3bf9de,_0x131597){this['loader']=_0x3bf9de,this['editor']=_0x131597,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5e1db0=await this['loader']['file'];return j['upload']({'file':_0x5e1db0,'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':_0x3db02a=>{_0x3db02a&&_0x3db02a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3db02a['value']);}})['then'](async _0x463bf3=>{const {imageFallbackUrl:_0x2fcf16,imageSources:_0x57d4a0}=C(_0x463bf3['cdnUrl'],_0x463bf3['imageInfo']['width']);return{'uploadcareImageId':_0x463bf3['uuid'],'default':_0x2fcf16,'sources':_0x57d4a0};})['catch'](()=>{const _0x43518b=t('Cannot\x20upload\x20file:')+('\x20'+_0x5e1db0['name']+'.');return Promise['reject'](_0x43518b);});}['abort'](){this['controller']['abort']();}}class o extends _0x26298a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2d272c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x43cf89){super(_0x43cf89),this['ucContextId']=_0x3e4bc9();}['init'](){const _0x22bb64=this['editor'];_0x22bb64['commands']['add']('uploadcare',new w(_0x22bb64));}['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 _0x229085=_0x3b163d['document']['querySelector']('input[uploadcare-file-input]');_0x229085&&_0x229085['remove']();}),async function(_0x425218){const _0x3da3f0=_0x77190c([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x324f6f=0x535f8c3a,_0x95e329=0x5358f1ca^_0x324f6f,_0x351511=window[_0x77190c([0x44,0x61,0x74,0x65])][_0x77190c([0x6e,0x6f,0x77])](),_0x404a31=_0x425218[_0x77190c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x202055=new window[(_0x77190c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3066f3=>{_0x404a31[_0x77190c([0x6f,0x6e,0x63,0x65])](_0x77190c([0x72,0x65,0x61,0x64,0x79]),_0x3066f3);}),_0x5f5b1e={[_0x77190c([0x6b,0x74,0x79])]:_0x77190c([0x45,0x43]),[_0x77190c([0x75,0x73,0x65])]:_0x77190c([0x73,0x69,0x67]),[_0x77190c([0x63,0x72,0x76])]:_0x77190c([0x50,0x2d,0x32,0x35,0x36]),[_0x77190c([0x78])]:_0x77190c([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]),[_0x77190c([0x79])]:_0x77190c([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]),[_0x77190c([0x61,0x6c,0x67])]:_0x77190c([0x45,0x53,0x32,0x35,0x36])},_0x4aea65=_0x404a31[_0x77190c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x77190c([0x67,0x65,0x74])](_0x77190c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a1d05(){let _0x5f3e41,_0x42f177=null,_0x197b50=null;try{if(_0x4aea65==_0x77190c([0x47,0x50,0x4c]))return _0x77190c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5f3e41=_0x556d9a(),!_0x5f3e41)return _0x77190c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5f3e41[_0x77190c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x197b50=_0x28ca7e(_0x5f3e41[_0x77190c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5f3e41[_0x77190c([0x6a,0x74,0x69])])),await _0x2b6249()?_0x29eead()?_0x1c66da()?_0x77190c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x15d52e()?(_0x5f3e41[_0x77190c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x77190c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42f177=_0x56c226(_0x77190c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5f3e41[_0x77190c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x77190c([0x74,0x72,0x69,0x61,0x6c])&&(_0x42f177=_0x56c226(_0x77190c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x26a125()):_0x77190c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x77190c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x77190c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x77190c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c66da(){const _0x32b0a5=[_0x77190c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x77190c([0x74,0x72,0x69,0x61,0x6c])][_0x77190c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f3e41[_0x77190c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x351511/0x3e8:0xe10*_0x95e329;return _0x5f3e41[_0x77190c([0x65,0x78,0x70])]<_0x32b0a5;}function _0x29eead(){const _0xa6b208=_0x5f3e41[_0x77190c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xa6b208&&(!!_0xa6b208[_0x77190c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x77190c([0x2a]))||!!_0xa6b208[_0x77190c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x77190c([0x55,0x50,0x4c,0x43])));}function _0x15d52e(){const _0x3700ed=_0x5f3e41[_0x77190c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3700ed||0x0==_0x3700ed[_0x77190c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x148e6a}=new URL(window[_0x77190c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3700ed[_0x77190c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x148e6a))return!0x0;const _0x2c3cf5=_0x148e6a[_0x77190c([0x73,0x70,0x6c,0x69,0x74])](_0x77190c([0x2e]));return _0x3700ed[_0x77190c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x170977=>_0x170977[_0x77190c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x77190c([0x2a])))[_0x77190c([0x6d,0x61,0x70])](_0x2caeef=>_0x2caeef[_0x77190c([0x73,0x70,0x6c,0x69,0x74])](_0x77190c([0x2e])))[_0x77190c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x263e48=>_0x263e48[_0x77190c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2c3cf5[_0x77190c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x77190c([0x6d,0x61,0x70])](_0x4467d2=>Array(_0x2c3cf5[_0x77190c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4467d2[_0x77190c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x77190c([0x66,0x69,0x6c,0x6c])](_0x4467d2[0x0]===_0x77190c([0x2a])?_0x77190c([0x2a]):'')[_0x77190c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4467d2))[_0x77190c([0x73,0x6f,0x6d,0x65])](_0x301af3=>_0x2c3cf5[_0x77190c([0x65,0x76,0x65,0x72,0x79])]((_0x188d36,_0x5b4108)=>_0x301af3[_0x5b4108]===_0x188d36||_0x301af3[_0x5b4108]===_0x77190c([0x2a])));}function _0x26a125(){return _0x42f177&&_0x197b50?new window[(_0x77190c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x27bd33,_0x54b334)=>{_0x42f177[_0x77190c([0x74,0x68,0x65,0x6e])](_0x27bd33,_0x54b334),_0x197b50[_0x77190c([0x74,0x68,0x65,0x6e])](_0x7eb35d=>{_0x7eb35d!=_0x77190c([0x56,0x61,0x6c,0x69,0x64])&&_0x27bd33(_0x7eb35d);},_0x54b334);}):_0x42f177||_0x197b50||_0x77190c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28ca7e(_0x2795b1,_0x33b2dd){return new window[(_0x77190c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4116d4=>{if(_0x10c3cf())return _0x4116d4(_0x77190c([0x56,0x61,0x6c,0x69,0x64]));_0x4e8825(),_0x404a31[_0x77190c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x77190c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x404839=!0x1;const _0x9a9add=_0x3e4bc9();function _0x2f9dc8(_0x16a238){return!!_0x16a238&&(typeof _0x16a238===_0x77190c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x16a238===_0x77190c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x16a238[_0x77190c([0x74,0x68,0x65,0x6e])]===_0x77190c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x16a238[_0x77190c([0x63,0x61,0x74,0x63,0x68])]===_0x77190c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x196470(_0x1c6d7a){_0x5ce29b(_0x1c6d7a)[_0x77190c([0x74,0x68,0x65,0x6e])](_0x185752=>{if(!_0x185752||_0x185752[_0x77190c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x77190c([0x6f,0x6b]))return _0x77190c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x56f2e8(_0x221962(_0x9a9add+_0x33b2dd))!=_0x185752[_0x77190c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x77190c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x77190c([0x56,0x61,0x6c,0x69,0x64]);})[_0x77190c([0x74,0x68,0x65,0x6e])](_0x1bb772=>(_0x21d5bf(),_0x1bb772),()=>{const _0x319692=_0x4db22f();return null==_0x319692?(_0x21d5bf(),_0x77190c([0x56,0x61,0x6c,0x69,0x64])):_0x77190c(_0x351511-_0x319692>(0x7753083a^_0x324f6f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x77190c([0x74,0x68,0x65,0x6e])](_0x4116d4)[_0x77190c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4116d4(_0x77190c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1be21f=0x536962ba^_0x324f6f;function _0x21d5bf(){const _0x448bbc=_0x77190c([0x6c,0x6c,0x63,0x74,0x2d])+_0x56f2e8(_0x221962(_0x2795b1)),_0x122a5e=_0x179502(_0x56f2e8(window[_0x77190c([0x4d,0x61,0x74,0x68])][_0x77190c([0x63,0x65,0x69,0x6c])](_0x351511/_0x1be21f)));window[_0x77190c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x77190c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x448bbc,_0x122a5e);}function _0x4db22f(){const _0x1191dd=_0x77190c([0x6c,0x6c,0x63,0x74,0x2d])+_0x56f2e8(_0x221962(_0x2795b1)),_0x2a0eb0=window[_0x77190c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x77190c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1191dd);return _0x2a0eb0?window[_0x77190c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x179502(_0x2a0eb0),0x10)*_0x1be21f:null;}function _0x5ce29b(_0x3e924e){return new window[(_0x77190c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5f451c,_0x2bf986)=>{_0x3e924e[_0x77190c([0x74,0x68,0x65,0x6e])](_0x5f451c,_0x2bf986),window[_0x77190c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2bf986,0x535e58fa^_0x324f6f);});}}_0x404a31[_0x77190c([0x6f,0x6e])](_0x77190c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a48b8,_0x2785c1)=>{if(_0x2785c1[0x0]!=_0x2795b1)return _0x4116d4(_0x77190c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2785c1[0x1]={..._0x2785c1[0x1],[_0x77190c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x9a9add};},{[_0x77190c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x77190c([0x68,0x69,0x67,0x68])}),_0x404a31[_0x77190c([0x6f,0x6e])](_0x77190c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x595978=>{_0x2f9dc8(_0x595978[_0x77190c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x404839=!0x0,_0x196470(_0x595978[_0x77190c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x77190c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x77190c([0x6c,0x6f,0x77])}),_0x202055[_0x77190c([0x74,0x68,0x65,0x6e])](()=>{_0x404839||_0x4116d4(_0x77190c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10c3cf(){return _0x404a31[_0x77190c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x77190c([0x76,0x69,0x65,0x77])][_0x77190c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x77190c([0x61,0x75,0x74,0x6f]);}function _0x4e8825(){_0x404a31[_0x77190c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x77190c([0x76,0x69,0x65,0x77])][_0x77190c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x77190c([0x61,0x75,0x74,0x6f]);}}function _0x56c226(_0xd15485){const _0x2ffe29=[new window[(_0x77190c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e1bda=>setTimeout(_0x1e1bda,0x5356b2f6^_0x324f6f)),_0x202055[_0x77190c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x77190c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ea32e=>{let _0x9a0bd=0x0;_0x404a31[_0x77190c([0x6d,0x6f,0x64,0x65,0x6c])][_0x77190c([0x6f,0x6e])](_0x77190c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d5f0a,_0x4734cc)=>{_0x4734cc[0x0][_0x77190c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x9a0bd++,_0x9a0bd==(0x535f89d2^_0x324f6f)&&(_0x3ea32e(),_0x5d5f0a[_0x77190c([0x6f,0x66,0x66])]());});}))];return window[_0x77190c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x77190c([0x72,0x61,0x63,0x65])](_0x2ffe29)[_0x77190c([0x74,0x68,0x65,0x6e])](()=>_0xd15485);}async function _0x3763d4(){await _0x202055,_0x404a31[_0x77190c([0x6d,0x6f,0x64,0x65,0x6c])][_0x77190c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3e5983,_0x404a31[_0x77190c([0x6d,0x6f,0x64,0x65,0x6c])][_0x77190c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3e5983,_0x404a31[_0x77190c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x77190c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xfef9ea(_0x4c1398){const _0x7073ad=_0x1fb1d8();_0x404a31[_0x7073ad]=_0x77190c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c1398,_0x4c1398!=_0x77190c([0x56,0x61,0x6c,0x69,0x64])&&_0x3763d4();}function _0x1fb1d8(){const _0x205322=window[_0x77190c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x77190c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x77190c([0x6e,0x6f,0x77])]())[_0x77190c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x77190c([0x2e]),'');let _0x4f12fb=_0x77190c([0x68]);for(let _0x1e29b5=0x0;_0x1e29b5<_0x205322[_0x77190c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e29b5+=0x2){let _0x58bcf9=window[_0x77190c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x205322[_0x77190c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e29b5,_0x1e29b5+0x2));_0x58bcf9>=_0x3da3f0[_0x77190c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x58bcf9-=_0x3da3f0[_0x77190c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f12fb+=_0x3da3f0[_0x58bcf9];}return _0x4f12fb;}function _0x556d9a(){const _0x46b974=_0x4aea65[_0x77190c([0x73,0x70,0x6c,0x69,0x74])](_0x77190c([0x2e]));if(0x3!=_0x46b974[_0x77190c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x31263d(_0x46b974[0x1]);function _0x31263d(_0xfea8dc){const _0x100ec0=_0x8158df(_0xfea8dc);return _0x100ec0&&_0x165235()?_0x100ec0:null;function _0x165235(){const _0x3a1659=_0x100ec0[_0x77190c([0x6a,0x74,0x69])],_0x5bb1c6=window[_0x77190c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a1659[_0x77190c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a1659[_0x77190c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33b2e8={..._0x100ec0,[_0x77190c([0x6a,0x74,0x69])]:_0x3a1659[_0x77190c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3a1659[_0x77190c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33b2e8[_0x77190c([0x76,0x63])],_0x221962(_0x33b2e8)==_0x5bb1c6;}}}async function _0x2b6249(){let _0x4af494=!0x0;try{const _0x235c1b=_0x4aea65[_0x77190c([0x73,0x70,0x6c,0x69,0x74])](_0x77190c([0x2e])),[_0x3c60e2,_0x353967,_0x78d043]=_0x235c1b;return _0x3c1400(_0x3c60e2),await _0x3f06d4(_0x3c60e2,_0x353967,_0x78d043),_0x4af494;}catch{return!0x1;}function _0x3c1400(_0x5a2764){const _0x4a8512=_0x8158df(_0x5a2764);_0x4a8512&&_0x4a8512[_0x77190c([0x61,0x6c,0x67])]==_0x77190c([0x45,0x53,0x32,0x35,0x36])||(_0x4af494=!0x1);}async function _0x3f06d4(_0x42cb43,_0x204f95,_0x3117c2){const _0x18deb9=window[_0x77190c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x77190c([0x66,0x72,0x6f,0x6d])](_0x5460fb(_0x3117c2),_0x3fa07b=>_0x3fa07b[_0x77190c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x180ac3=new window[(_0x77190c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x77190c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x42cb43+_0x77190c([0x2e])+_0x204f95),_0x15b24d=window[_0x77190c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x77190c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x15b24d)return;const _0x3f042c=await _0x15b24d[_0x77190c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x77190c([0x6a,0x77,0x6b]),_0x5f5b1e,{[_0x77190c([0x6e,0x61,0x6d,0x65])]:_0x77190c([0x45,0x43,0x44,0x53,0x41]),[_0x77190c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x77190c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x77190c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x15b24d[_0x77190c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x77190c([0x6e,0x61,0x6d,0x65])]:_0x77190c([0x45,0x43,0x44,0x53,0x41]),[_0x77190c([0x68,0x61,0x73,0x68])]:{[_0x77190c([0x6e,0x61,0x6d,0x65])]:_0x77190c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f042c,_0x18deb9,_0x180ac3)||(_0x4af494=!0x1);}}function _0x8158df(_0x36efef){return _0x36efef[_0x77190c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x77190c([0x65,0x79]))?JSON[_0x77190c([0x70,0x61,0x72,0x73,0x65])](_0x5460fb(_0x36efef)):null;}function _0x5460fb(_0x46d820){return window[_0x77190c([0x61,0x74,0x6f,0x62])](_0x46d820[_0x77190c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x77190c([0x2b]))[_0x77190c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x77190c([0x2f])));}function _0x221962(_0x36b5fe){let _0x460879=0x1505;function _0x198a67(_0x54da6c){for(let _0x11904c=0x0;_0x11904c<_0x54da6c[_0x77190c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11904c++){const _0x36bb26=_0x54da6c[_0x77190c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x11904c);_0x460879=(_0x460879<<0x5)+_0x460879+_0x36bb26,_0x460879&=_0x460879;}}function _0x4db109(_0x15b947){Array[_0x77190c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x15b947)?_0x15b947[_0x77190c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4db109):_0x15b947&&typeof _0x15b947==_0x77190c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x77190c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x15b947)[_0x77190c([0x73,0x6f,0x72,0x74])]()[_0x77190c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x41a4fc,_0x2e33f7])=>{_0x198a67(_0x41a4fc),_0x4db109(_0x2e33f7);}):_0x198a67(window[_0x77190c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x15b947));}return _0x4db109(_0x36b5fe),_0x460879>>>0x0;}function _0x56f2e8(_0x3efbae){return _0x3efbae[_0x77190c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x77190c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x77190c([0x30]));}function _0x179502(_0x337711){return _0x337711[_0x77190c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x77190c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x77190c([0x6a,0x6f,0x69,0x6e])]('');}function _0x3e5983(){}function _0x77190c(_0x347092){return _0x347092['map'](_0x4aefdb=>String['fromCharCode'](_0x4aefdb))['join']('');}_0xfef9ea(await _0x3a1d05());}(this);}['_initSchema'](){const _0x36ed90=this['editor']['model']['schema'];_0x36ed90['isRegistered']('imageBlock')&&_0x36ed90['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x36ed90['isRegistered']('imageInline')&&_0x36ed90['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1f15c9=this['editor'];_0x1f15c9['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1f15c9['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x16dca9=>_0x16dca9['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x549c9b=_0x1f15c9['commands']['get']('replaceImageSource');_0x549c9b&&this['listenTo'](_0x549c9b,'cleanupImage',(_0x5ca385,[_0x4f9b55,_0x547e1e])=>{_0x4f9b55['removeAttribute']('uploadcareImageId',_0x547e1e);});}['_initConfig'](){const _0x39a5c0=this['editor']['config']['get']('uploadcare.uploader')||{},_0x17c9ee=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xf43621(_0x3b163d['document'],'uc-config',{..._0x39a5c0,'pubkey':_0x17c9ee,'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']=_0x593c7b=>{if('closeMax'==_0x593c7b)return'#uc-icon-arrow-down';},_0x3b163d['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xf43621(_0x3b163d['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3b163d['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x35a2ac=this['editor']['commands']['get']('insertImage');_0x35a2ac&&this['listenTo'](_0x35a2ac,'execute',()=>{const _0x19524e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x19524e&&_0x19524e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x19524e);});});const _0x4cb267=this['editor']['commands']['get']('uploadcareImageReplace');_0x4cb267&&this['listenTo'](_0x4cb267,'execute',()=>{const _0x4f91f7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4f91f7&&_0x4f91f7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4f91f7);});});}}class tt extends _0x26298a{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ab0e9){super(_0x4ab0e9),_0x4ab0e9['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2443b2['defineComponents'](_0x2443b2),this['_defineLocale']();}['_defineLocale'](){const _0xf00ddd=this['editor']['config']['get']('uploadcare.locale'),_0x249a6a=this['editor']['locale']['contentLanguage'];_0xf00ddd&&_0x2443b2['defineLocale'](_0x249a6a,_0xf00ddd);}}class ii extends _0x3c633e{constructor(_0x22e7ca){super(_0x22e7ca);const t=_0x22e7ca['t'],_0x134087=this['bindTemplate'],_0x4e7dfc=new _0x47bd20();_0x4e7dfc['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':[_0x4e7dfc,{'text':_0x134087['to']('imageUploadProgress',_0x307994=>t('Loading\x20image...')+'\x20('+(_0x307994||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 _0x3c633e{constructor(_0x3d721b){super(_0x3d721b);const t=_0x3d721b['t'];this['set']('errorType',null);const _0x17c1f4=new _0x20eb05(_0x3d721b);_0x17c1f4['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x17c1f4['withText']=!0x0,_0x17c1f4['class']='ck-button-action',_0x17c1f4['on']('execute',()=>{this['fire']('retry');}),_0x17c1f4['bind']('isVisible')['to'](this,'errorType',_0x201796=>'NotFound'!==_0x201796);const _0x4e3dbd=new _0x10fc9d();_0x4e3dbd['content']=_0x109435,_0x4e3dbd['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x21529d=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':[_0x4e3dbd,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x21529d['to']('errorType',_0x3af02f=>t('NotFound'!==_0x3af02f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x17c1f4]},{'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 _0x3c633e{constructor(_0x44144d,_0x415776){super(_0x44144d);const _0x52868f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x415776,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x52868f['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x26570c,_0x585c6c,_0x280dc4){super(_0x26570c),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x26570c),this['_errorView']=new ti(_0x26570c),this['_editingView']=new ei(_0x26570c,_0x280dc4),this['_focusableView']=new _0x3c633e(_0x26570c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x585c6c),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'],_0x2d846d=>{this['_addUploadcareImageEditorListeners'](_0x2d846d);});}),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'](_0x6d7bd7,_0x42012d){const _0x1a6bf9='uc-cloud-image-editor',_0x44b932=_0x6d7bd7['querySelector'](_0x1a6bf9);if(_0x44b932)return _0x42012d(_0x44b932);const _0x3990b6=new MutationObserver(_0x545f4b=>{const _0x1c418f=_0x545f4b['filter'](_0x111ba2=>_0x111ba2['target']===_0x6d7bd7&&_0x111ba2['addedNodes']['length']>0x0&&_0x111ba2['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1a6bf9);_0x1c418f['length']&&(_0x3990b6['disconnect'](),_0x42012d(_0x1c418f[0x0]['addedNodes'][0x0]));});_0x3990b6['observe'](_0x6d7bd7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1c0304){_0x1c0304['addEventListener']('apply',_0x49bc1b=>{this['fire']('apply',{'imageSrc':_0x49bc1b['detail']['cdnUrl']});}),_0x1c0304['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x1549c3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5dbfd4,_0x390277,_0x580dd0){super(),this['_editor']=_0x5dbfd4,this['_dialog']=_0x390277,this['_imageElement']=_0x580dd0,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 _0x36fbd8=this['_imageElement'],_0x35f81b=_0x36fbd8['getAttribute']('uploadcareImageId'),_0x4461c2=_0x36fbd8['getAttribute']('src');if(_0x35f81b)await this['_loadImageInfo'](_0x35f81b,_0x4461c2);else{if(this['_imageCache']['has'](_0x4461c2)){const _0x15eda4=this['_imageCache']['get'](_0x4461c2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x15eda4['url'],this['imageDimension']=_0x15eda4['dimension'],this['imageId']=_0x15eda4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x125a8c}=this['_editor'],t=_0x125a8c['t'],_0x21668c=new X(_0x125a8c,this['imageStatus'],this['_attributes']);_0x21668c['bind']('status')['to'](this,'imageStatus'),_0x21668c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x21668c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x21668c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x21668c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x31c427,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x21668c,'position':_0x29b8da['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x21668c['focus']();},'onHide':()=>{_0x21668c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x482fec=>!M(_0x482fec,_0x21668c['element'])}});}['_loadImageInfo'](_0x2ed593,_0x49a079){return j['getInfo'](_0x2ed593,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x22b435=>{const {width:_0xe8bb4a,height:_0x2582e8}=_0x22b435['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x49a079,this['imageDimension']={'width':_0xe8bb4a,'height':_0x2582e8},this['imageId']=_0x2ed593;})['catch'](_0x5b1ba=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5b1ba['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x54149a,_0x4b66f4){return this['_getImageAsFile'](_0x54149a)['then'](_0x1e949a=>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':_0x4b66f4['signal'],'file':_0x1e949a,'onProgress':_0x560a99=>{_0x560a99&&_0x560a99['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x560a99['value']));}}))['then'](_0x59f9df=>{const {width:_0x4daaf9,height:_0x59c59f}=_0x59f9df['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x59f9df['cdnUrl'],this['imageDimension']={'width':_0x4daaf9,'height':_0x59c59f},this['imageId']=_0x59f9df['uuid'],this['imageUploadProgress']=null;const _0x1c6ef4=_0x54149a['getAttribute']('src');this['_imageCache']['set'](_0x1c6ef4,{'id':_0x59f9df['uuid'],'url':_0x59f9df['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3cceb8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3cceb8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x136127,_0xcb8101){_0x136127['on']('apply',(_0x1de88b,_0x258e34)=>{this['_replaceImage'](_0xcb8101,_0x258e34['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x136127['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x136127['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x63f9bc,_0x51d0b6,_0x31e35f){const _0x28dbdc=this['_editor'],{width:_0x32d2d1,height:_0x2a834a}=F(_0x51d0b6,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x43c2c5,imageSources:_0x269960}=C(_0x51d0b6,_0x32d2d1);_0x28dbdc['model']['change'](_0x17a55c=>{if('$graveyard'===_0x63f9bc['root']['rootName']){_0x28dbdc['execute']('insertImage',{'imageType':_0x63f9bc['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x63f9bc['getAttributes']()),'uploadcareImageId':_0x31e35f,'src':_0x43c2c5,'sources':_0x269960,'width':_0x32d2d1,'height':_0x2a834a}});const _0x5a54f6=_0x63f9bc['getChildren']();_0x63f9bc=_0x28dbdc['model']['document']['selection']['getSelectedElement']();for(const _0x4d0544 of _0x5a54f6)_0x17a55c['append'](_0x17a55c['cloneElement'](_0x4d0544),_0x63f9bc);}else _0x17a55c['setSelection'](_0x63f9bc,'on'),_0x28dbdc['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x63f9bc['getAttributes']()),'uploadcareImageId':_0x31e35f,'src':_0x43c2c5,'sources':_0x269960,'width':_0x32d2d1,'height':_0x2a834a},_0x63f9bc);_0x17a55c['setSelection'](_0x63f9bc,'on');});}async['_getImageAsFile'](_0xb1fbaa){const _0x40be2e=_0x3b163d['window'],_0x45a85d=_0x3b163d['document']['location']['href'],_0x19b39d=new _0x40be2e['URL'](_0xb1fbaa['getAttribute']('src'),_0x45a85d);if('data:'===_0x19b39d['protocol']){const _0xc41666=_0x19b39d['href']['split'](','),_0x537c61=_0xc41666[0x0]['match'](/:(.*?);/)[0x1],_0x23feb1=_0x537c61['split']('/')[0x1],_0x11574e=_0x40be2e['atob'](_0xc41666[_0xc41666['length']-0x1]);let _0x461938=_0x11574e['length'];const _0x3d3678=new _0x40be2e['Uint8Array'](_0x461938);for(;_0x461938--;)_0x3d3678[_0x461938]=_0x11574e['charCodeAt'](_0x461938);return new _0x40be2e['File']([_0x3d3678],'image.'+_0x23feb1,{'type':_0x537c61});}const _0x443bd5=_0x19b39d['href']['split']('/'),_0x41bb74=_0x443bd5[_0x443bd5['length']-0x1],_0x40a08f=_0x41bb74['split']('.')[0x1];return _0x40be2e['fetch'](_0x19b39d['href'])['then'](_0x23d974=>_0x23d974['clone']()['blob']())['then'](_0x76579b=>new _0x40be2e['File']([_0x76579b],_0x41bb74,{'type':'image/'+_0x40a08f}));}}class N extends _0x2f71fe{['imageEditController'];static get['requires'](){return[_0x2d272c];}['_isEditable'];constructor(_0x2d076c){super(_0x2d076c),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1fc9e9){const _0x3bec51=R(_0x1fc9e9);return _0x4599a9=>!(!_0x4599a9||!_0x4599a9['is']('element','imageBlock')&&!_0x4599a9['is']('element','imageInline'))&&(!!_0x4599a9['hasAttribute']('uploadcareImageId')||!!_0x4599a9['hasAttribute']('src')&&_0x3bec51(_0x4599a9['getAttribute']('src')));}(_0x2d076c['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x406e53=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x406e53);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x12887c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x12887c&&(_0x12887c['is']('element','imageBlock')||_0x12887c['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2d272c),_0x12887c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2f71fe{['refresh'](){const _0x257d71=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x257d71&&(_0x257d71['is']('element','imageBlock')||_0x257d71['is']('element','imageInline')));}['execute'](_0x1bb0b6){const _0x84cffb=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2d524e=>{_0x2d524e['setAttributes'](_0x1bb0b6,_0x84cffb),_0x2d524e['removeAttribute']('srcset',_0x84cffb),_0x2d524e['removeAttribute']('sizes',_0x84cffb);});}}class m extends _0x26298a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x36b556,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xddd4ee}=this;_0xddd4ee['commands']['add']('uploadcareImageEdit',new N(_0xddd4ee)),_0xddd4ee['commands']['add']('uploadcareImageReplace',new O(_0xddd4ee));}}class g extends _0x26298a{['_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 _0x4a52d4=this['editor'];_0x4a52d4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1a0891=>{const _0xac5159=_0x4a52d4['commands']['get']('uploadcareImageEdit'),_0x21d66f=new _0x20eb05(_0x1a0891),t=_0x1a0891['t'];return _0x21d66f['set']({'icon':_0x31c427,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x21d66f['bind']('isEnabled')['to'](_0xac5159),_0x21d66f['bind']('isOn')['to'](_0xac5159,'isActive'),this['listenTo'](_0x21d66f,'execute',()=>{_0x4a52d4['execute']('uploadcareImageEdit'),_0x4a52d4['editing']['view']['focus']();}),_0x21d66f;}),this['_initConfig']();}['_initConfig'](){const _0xb9ee0b=_0xf43621(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xb9ee0b),this['listenTo'](this['editor'],'destroy',()=>{_0xb9ee0b['remove']();});}}class et extends _0x26298a{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-next-20260104.0",
3
+ "version": "0.0.0-nightly-next-20260105.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-next-20260104.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20260104.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20260104.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20260104.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20260104.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20260104.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20260104.0",
33
- "ckeditor5": "0.0.0-nightly-next-20260104.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20260105.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20260105.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20260105.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20260105.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20260105.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20260105.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20260105.0",
33
+ "ckeditor5": "0.0.0-nightly-next-20260105.0",
34
34
  "@uploadcare/file-uploader": "1.24.5",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b9a99=_0x52af;(function(_0xb14a4c,_0x2f0ee0){const _0xef9bdb=_0x52af,_0x571331=_0xb14a4c();while(!![]){try{const _0x42774b=-parseInt(_0xef9bdb(0xb2))/0x1+parseInt(_0xef9bdb(0xcf))/0x2+parseInt(_0xef9bdb(0xd6))/0x3+parseInt(_0xef9bdb(0xb8))/0x4*(-parseInt(_0xef9bdb(0xf2))/0x5)+parseInt(_0xef9bdb(0xe4))/0x6+-parseInt(_0xef9bdb(0xbd))/0x7+-parseInt(_0xef9bdb(0xd0))/0x8*(-parseInt(_0xef9bdb(0xf6))/0x9);if(_0x42774b===_0x2f0ee0)break;else _0x571331['push'](_0x571331['shift']());}catch(_0x1625e2){_0x571331['push'](_0x571331['shift']());}}}(_0x1899,0x40c61));import{IconUploadcareImageUpload as _0x510955}from'ckeditor5/src/icons.js';function _0x52af(_0x6e802a,_0xf00bdb){const _0x189997=_0x1899();return _0x52af=function(_0x52af98,_0x408943){_0x52af98=_0x52af98-0xb2;let _0x5b396f=_0x189997[_0x52af98];return _0x5b396f;},_0x52af(_0x6e802a,_0xf00bdb);}import{ObservableMixin as _0x202757}from'ckeditor5/src/utils.js';function _0x1899(){const _0x3faacf=['editing','setCurrentActivity','uploadCare','getLastPosition','ucContextId','getOutputCollectionState','hide','Local','Insert','isOpen','configElement','detail','show','136056xGeZpQ','8hljiYY','setAttribute','_formView','attributes','_insertImage','_initDialog','1116063EAcqoe','allEntries','insertImage','idle','source-list','execute','imageBlock','imageInfo','plugins','setSelection','text','EDITOR_TOP_CENTER','stopListening','status','1417254bkIuuQ','stopDelegating','_dialog','_insertAsset','image','ctxElement','selection','_editing','getAPI','_initListeners','done-click','_api','element','view','15280WoIkAc','get','_type','removeAllFiles','3445425jwwvih','initFlow','change','Replace','getSelectedElement','27761TFhyQd','linkHref','removeSelectionAttribute','doneFlow','length','uuid','488GJyKQt','model','addEventListener','destroy','_editor','2752239hDIVOY','width','imageInline','focus','document'];_0x1899=function(){return _0x3faacf;};return _0x1899();}import{Dialog as _0x3da25e,DialogViewPosition as _0x4be946}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x14946b}from'./uploadcareformview.js';import{UploadcareSource as _0x9015cb}from'../uploadcareconfig.js';import{getTranslation as _0x3d3339}from'../utils/common-translations.js';import{getImageUrls as _0xef242c,getImageDimension as _0x20f7f4}from'../utils/editingutils.js';import{isAncestor as _0x4f974e}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
- _0x202757(){[_0x2b9a99(0xbc)];[_0x2b9a99(0xe6)];[_0x2b9a99(0xeb)];[_0x2b9a99(0xef)];[_0x2b9a99(0xf4)]=null;[_0x2b9a99(0xd2)]=null;constructor(_0x1f4c15,_0x510631,_0x55322c){const _0x2485fa=_0x2b9a99;super(),this[_0x2485fa(0xbc)]=_0x1f4c15,this[_0x2485fa(0xeb)]=_0x510631,this[_0x2485fa(0xe6)]=_0x1f4c15[_0x2485fa(0xde)][_0x2485fa(0xf3)](_0x3da25e),this[_0x2485fa(0xef)]=_0x510631[_0x2485fa(0xe9)][_0x2485fa(0xec)](),this[_0x2485fa(0xf4)]=_0x55322c,this[_0x2485fa(0xeb)][_0x2485fa(0xcc)][_0x2485fa(0xd1)](_0x2485fa(0xda),this[_0x2485fa(0xf4)]),this[_0x2485fa(0xd5)](),this[_0x2485fa(0xed)](),this[_0x2485fa(0xef)][_0x2485fa(0xf7)]();}[_0x2b9a99(0xbb)](){const _0xd156b1=_0x2b9a99;this[_0xd156b1(0xd2)]&&(this[_0xd156b1(0xd2)][_0xd156b1(0xbb)](),this[_0xd156b1(0xd2)]=null),this[_0xd156b1(0xef)]&&this[_0xd156b1(0xef)][_0xd156b1(0xb5)](),this[_0xd156b1(0xe2)](),this[_0xd156b1(0xe5)]();}[_0x2b9a99(0xd5)](){const _0x34596d=_0x2b9a99,{locale:_0x2af8fa,model:_0x1e34b8}=this[_0x34596d(0xbc)],_0x139365=_0x1e34b8[_0x34596d(0xc1)][_0x34596d(0xea)][_0x34596d(0xfa)](),_0xbd4396=_0x139365&&(_0x139365['is'](_0x34596d(0xf0),_0x34596d(0xdc))||_0x139365['is'](_0x34596d(0xf0),_0x34596d(0xbf)));this[_0x34596d(0xd2)]=new _0x14946b(_0x2af8fa,this[_0x34596d(0xeb)][_0x34596d(0xc6)]),this[_0x34596d(0xe6)][_0x34596d(0xce)]({'id':_0x34596d(0xc4),'icon':_0x510955,'title':_0x3d3339(_0x2af8fa,this[_0x34596d(0xf4)],_0xbd4396?_0x34596d(0xf9):_0x34596d(0xca))[_0x34596d(0xe0)],'content':this[_0x34596d(0xd2)],'position':_0x4be946[_0x34596d(0xe1)],'isModal':!0x0,'onShow':()=>{const _0x2f7c67=_0x34596d;this[_0x2f7c67(0xd2)][_0x2f7c67(0xc0)]();},'onHide':()=>{const _0x448acd=_0x34596d;this[_0x448acd(0xef)][_0x448acd(0xf5)](),this[_0x448acd(0xbc)][_0x448acd(0xc2)][_0x448acd(0xf1)][_0x448acd(0xc0)](),this[_0x448acd(0xbb)]();},'keystrokeHandlerOptions':{'filter':_0x1a250b=>!_0x4f974e(_0x1a250b,this[_0x34596d(0xd2)][_0x34596d(0xf0)])}});}[_0x2b9a99(0xed)](){const _0xdcf4cf=_0x2b9a99;this[_0xdcf4cf(0xeb)][_0xdcf4cf(0xe9)][_0xdcf4cf(0xba)](_0xdcf4cf(0xee),()=>{const _0x168c30=_0xdcf4cf,{allEntries:_0x3bcc06}=this[_0x168c30(0xef)][_0x168c30(0xc7)]();this[_0x168c30(0xbc)][_0x168c30(0xb9)][_0x168c30(0xf8)](_0x55f16a=>{const _0x4824e2=_0x168c30,_0x498dd7=_0x3bcc06[_0x4824e2(0xb6)];for(const _0x501dfb of _0x3bcc06){const _0x1b948e=_0x501dfb===_0x3bcc06[_0x498dd7-0x1],{cdnUrl:_0x2597ba,fileInfo:_0x370bf8}=_0x501dfb;if(!_0x2597ba||!_0x370bf8)continue;const {width:_0x1813e8,height:_0x2e7308}=_0x370bf8[_0x4824e2(0xdd)],_0x5795b4=_0x20f7f4(_0x2597ba,_0x1813e8,_0x2e7308),_0x4b3920=_0xef242c(_0x2597ba,_0x5795b4[_0x4824e2(0xbe)]),_0x428107={'id':_0x370bf8[_0x4824e2(0xb7)],'type':_0x4824e2(0xe8),'attributes':{'imageDimension':_0x5795b4,..._0x4b3920}};this[_0x4824e2(0xe7)](_0x428107,_0x1b948e,_0x55f16a);}}),this[_0x168c30(0xe6)][_0x168c30(0xc8)]();}),this[_0xdcf4cf(0xeb)][_0xdcf4cf(0xe9)][_0xdcf4cf(0xba)](_0xdcf4cf(0xf8),_0x4655da=>{const _0x554ebd=_0xdcf4cf;_0x554ebd(0xd9)===_0x4655da[_0x554ebd(0xcd)][_0x554ebd(0xe3)]&&!_0x4655da[_0x554ebd(0xcd)][_0x554ebd(0xd7)][_0x554ebd(0xb6)]&&this[_0x554ebd(0xe6)][_0x554ebd(0xcb)]&&(this[_0x554ebd(0xf4)]===_0x9015cb[_0x554ebd(0xc9)]?this[_0x554ebd(0xef)][_0x554ebd(0xc3)](_0x9015cb[_0x554ebd(0xc9)]):this[_0x554ebd(0xef)][_0x554ebd(0xf7)]());});}[_0x2b9a99(0xe7)](_0xc83ffa,_0x1d6fb6,_0x25f853){const _0x36a70e=_0x2b9a99,_0x1b0f89=this[_0x36a70e(0xbc)][_0x36a70e(0xb9)][_0x36a70e(0xc1)][_0x36a70e(0xea)],_0x426718=_0x1b0f89[_0x36a70e(0xfa)](),_0x4035ee=!(!_0x426718||!_0x426718['is'](_0x36a70e(0xf0),_0x36a70e(0xbf)));_0x25f853[_0x36a70e(0xb4)](_0x36a70e(0xb3)),this[_0x36a70e(0xd4)](_0xc83ffa,_0x4035ee),_0x1d6fb6||_0x25f853[_0x36a70e(0xdf)](_0x1b0f89[_0x36a70e(0xc5)]());}[_0x2b9a99(0xd4)](_0x2588dd,_0x5e8b1a){const _0x2abd70=_0x2b9a99,_0x16d9f1=this[_0x2abd70(0xbc)],{imageDimension:_0x39d89d,imageFallbackUrl:_0x55971b,imageSources:_0x15a78f}=_0x2588dd[_0x2abd70(0xd3)];_0x16d9f1[_0x2abd70(0xdb)](_0x2abd70(0xd8),{'imageType':_0x5e8b1a?_0x2abd70(0xbf):null,'source':{'uploadcareImageId':_0x2588dd['id'],'src':_0x55971b,'sources':_0x15a78f,..._0x39d89d}});}}
23
+ const _0x1eecdd=_0x38dd;(function(_0x5b671e,_0x331d2b){const _0x583357=_0x38dd,_0x5c5c5f=_0x5b671e();while(!![]){try{const _0x2f59a2=-parseInt(_0x583357(0x210))/0x1*(parseInt(_0x583357(0x21b))/0x2)+parseInt(_0x583357(0x202))/0x3*(-parseInt(_0x583357(0x1df))/0x4)+-parseInt(_0x583357(0x1e6))/0x5+parseInt(_0x583357(0x20f))/0x6*(parseInt(_0x583357(0x20d))/0x7)+parseInt(_0x583357(0x203))/0x8*(-parseInt(_0x583357(0x20e))/0x9)+parseInt(_0x583357(0x1f9))/0xa+parseInt(_0x583357(0x21d))/0xb;if(_0x2f59a2===_0x331d2b)break;else _0x5c5c5f['push'](_0x5c5c5f['shift']());}catch(_0x431d67){_0x5c5c5f['push'](_0x5c5c5f['shift']());}}}(_0x3d4b,0x8ecc9));import{IconUploadcareImageUpload as _0x35ad12}from'ckeditor5/src/icons.js';function _0x3d4b(){const _0x223ce2=['idle','text','removeSelectionAttribute','setAttribute','focus','initFlow','Replace','change','50RVXKwj','imageBlock','29680926gCInSm','_api','EDITOR_TOP_CENTER','allEntries','image','getAPI','_initDialog','status','getSelectedElement','_insertImage','isOpen','setCurrentActivity','get','1134968TLldkW','attributes','hide','_initListeners','ctxElement','linkHref','getLastPosition','641625fEdNKa','addEventListener','element','done-click','source-list','insertImage','removeAllFiles','stopDelegating','imageInline','configElement','Insert','_dialog','view','_type','length','getOutputCollectionState','doneFlow','ucContextId','width','1035080XTqssm','model','show','plugins','uuid','Local','selection','setSelection','_editing','6HiRgof','62880DQKTbQ','_insertAsset','_formView','execute','document','uploadCare','editing','stopListening','detail','destroy','506009mkGDCG','1332JDFKnl','60EzNeJl','43226xyqELd','_editor','imageInfo'];_0x3d4b=function(){return _0x223ce2;};return _0x3d4b();}function _0x38dd(_0x48aee7,_0x6f288){const _0x3d4b68=_0x3d4b();return _0x38dd=function(_0x38dd48,_0xaac84){_0x38dd48=_0x38dd48-0x1d9;let _0x4ea480=_0x3d4b68[_0x38dd48];return _0x4ea480;},_0x38dd(_0x48aee7,_0x6f288);}import{ObservableMixin as _0x541d38}from'ckeditor5/src/utils.js';import{Dialog as _0x5d80d1,DialogViewPosition as _0x15d774}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x395b46}from'./uploadcareformview.js';import{UploadcareSource as _0x1b5eb1}from'../uploadcareconfig.js';import{getTranslation as _0x161b1d}from'../utils/common-translations.js';import{getImageUrls as _0xcbcc78,getImageDimension as _0x2110c7}from'../utils/editingutils.js';import{isAncestor as _0x16e3b4}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
+ _0x541d38(){[_0x1eecdd(0x211)];[_0x1eecdd(0x1f1)];[_0x1eecdd(0x201)];[_0x1eecdd(0x21e)];[_0x1eecdd(0x1f3)]=null;[_0x1eecdd(0x205)]=null;constructor(_0x57c31b,_0x4acbd8,_0x239e19){const _0x1d4585=_0x1eecdd;super(),this[_0x1d4585(0x211)]=_0x57c31b,this[_0x1d4585(0x201)]=_0x4acbd8,this[_0x1d4585(0x1f1)]=_0x57c31b[_0x1d4585(0x1fc)][_0x1d4585(0x1de)](_0x5d80d1),this[_0x1d4585(0x21e)]=_0x4acbd8[_0x1d4585(0x1e3)][_0x1d4585(0x222)](),this[_0x1d4585(0x1f3)]=_0x239e19,this[_0x1d4585(0x201)][_0x1d4585(0x1ef)][_0x1d4585(0x216)](_0x1d4585(0x1ea),this[_0x1d4585(0x1f3)]),this[_0x1d4585(0x223)](),this[_0x1d4585(0x1e2)](),this[_0x1d4585(0x21e)][_0x1d4585(0x218)]();}[_0x1eecdd(0x20c)](){const _0x3716e6=_0x1eecdd;this[_0x3716e6(0x205)]&&(this[_0x3716e6(0x205)][_0x3716e6(0x20c)](),this[_0x3716e6(0x205)]=null),this[_0x3716e6(0x21e)]&&this[_0x3716e6(0x21e)][_0x3716e6(0x1f6)](),this[_0x3716e6(0x20a)](),this[_0x3716e6(0x1ed)]();}[_0x1eecdd(0x223)](){const _0x236eb0=_0x1eecdd,{locale:_0x2b6392,model:_0x58656b}=this[_0x236eb0(0x211)],_0x3172b4=_0x58656b[_0x236eb0(0x207)][_0x236eb0(0x1ff)][_0x236eb0(0x1da)](),_0x1d72d7=_0x3172b4&&(_0x3172b4['is'](_0x236eb0(0x1e8),_0x236eb0(0x21c))||_0x3172b4['is'](_0x236eb0(0x1e8),_0x236eb0(0x1ee)));this[_0x236eb0(0x205)]=new _0x395b46(_0x2b6392,this[_0x236eb0(0x201)][_0x236eb0(0x1f7)]),this[_0x236eb0(0x1f1)][_0x236eb0(0x1fb)]({'id':_0x236eb0(0x208),'icon':_0x35ad12,'title':_0x161b1d(_0x2b6392,this[_0x236eb0(0x1f3)],_0x1d72d7?_0x236eb0(0x219):_0x236eb0(0x1f0))[_0x236eb0(0x214)],'content':this[_0x236eb0(0x205)],'position':_0x15d774[_0x236eb0(0x21f)],'isModal':!0x0,'onShow':()=>{const _0x5826c2=_0x236eb0;this[_0x5826c2(0x205)][_0x5826c2(0x217)]();},'onHide':()=>{const _0x47d929=_0x236eb0;this[_0x47d929(0x21e)][_0x47d929(0x1ec)](),this[_0x47d929(0x211)][_0x47d929(0x209)][_0x47d929(0x1f2)][_0x47d929(0x217)](),this[_0x47d929(0x20c)]();},'keystrokeHandlerOptions':{'filter':_0x4a8fd4=>!_0x16e3b4(_0x4a8fd4,this[_0x236eb0(0x205)][_0x236eb0(0x1e8)])}});}[_0x1eecdd(0x1e2)](){const _0x52ff8c=_0x1eecdd;this[_0x52ff8c(0x201)][_0x52ff8c(0x1e3)][_0x52ff8c(0x1e7)](_0x52ff8c(0x1e9),()=>{const _0x1a5107=_0x52ff8c,{allEntries:_0x2f16de}=this[_0x1a5107(0x21e)][_0x1a5107(0x1f5)]();this[_0x1a5107(0x211)][_0x1a5107(0x1fa)][_0x1a5107(0x21a)](_0x45633b=>{const _0x32487d=_0x1a5107,_0x245f93=_0x2f16de[_0x32487d(0x1f4)];for(const _0x37f766 of _0x2f16de){const _0x33247f=_0x37f766===_0x2f16de[_0x245f93-0x1],{cdnUrl:_0x11b610,fileInfo:_0x1a5e04}=_0x37f766;if(!_0x11b610||!_0x1a5e04)continue;const {width:_0x3fa5a1,height:_0x30be1e}=_0x1a5e04[_0x32487d(0x212)],_0x3188ef=_0x2110c7(_0x11b610,_0x3fa5a1,_0x30be1e),_0x4dc5de=_0xcbcc78(_0x11b610,_0x3188ef[_0x32487d(0x1f8)]),_0x45d4e2={'id':_0x1a5e04[_0x32487d(0x1fd)],'type':_0x32487d(0x221),'attributes':{'imageDimension':_0x3188ef,..._0x4dc5de}};this[_0x32487d(0x204)](_0x45d4e2,_0x33247f,_0x45633b);}}),this[_0x1a5107(0x1f1)][_0x1a5107(0x1e1)]();}),this[_0x52ff8c(0x201)][_0x52ff8c(0x1e3)][_0x52ff8c(0x1e7)](_0x52ff8c(0x21a),_0x18f35a=>{const _0x33e490=_0x52ff8c;_0x33e490(0x213)===_0x18f35a[_0x33e490(0x20b)][_0x33e490(0x1d9)]&&!_0x18f35a[_0x33e490(0x20b)][_0x33e490(0x220)][_0x33e490(0x1f4)]&&this[_0x33e490(0x1f1)][_0x33e490(0x1dc)]&&(this[_0x33e490(0x1f3)]===_0x1b5eb1[_0x33e490(0x1fe)]?this[_0x33e490(0x21e)][_0x33e490(0x1dd)](_0x1b5eb1[_0x33e490(0x1fe)]):this[_0x33e490(0x21e)][_0x33e490(0x218)]());});}[_0x1eecdd(0x204)](_0x3cb78d,_0x13b853,_0x548056){const _0x57cfc3=_0x1eecdd,_0x719cb6=this[_0x57cfc3(0x211)][_0x57cfc3(0x1fa)][_0x57cfc3(0x207)][_0x57cfc3(0x1ff)],_0x18251e=_0x719cb6[_0x57cfc3(0x1da)](),_0x30dcbf=!(!_0x18251e||!_0x18251e['is'](_0x57cfc3(0x1e8),_0x57cfc3(0x1ee)));_0x548056[_0x57cfc3(0x215)](_0x57cfc3(0x1e4)),this[_0x57cfc3(0x1db)](_0x3cb78d,_0x30dcbf),_0x13b853||_0x548056[_0x57cfc3(0x200)](_0x719cb6[_0x57cfc3(0x1e5)]());}[_0x1eecdd(0x1db)](_0x1985cf,_0x5e37ce){const _0x32b96e=_0x1eecdd,_0x4042db=this[_0x32b96e(0x211)],{imageDimension:_0x5bd302,imageFallbackUrl:_0x577b46,imageSources:_0x1f6ebf}=_0x1985cf[_0x32b96e(0x1e0)];_0x4042db[_0x32b96e(0x206)](_0x32b96e(0x1eb),{'imageType':_0x5e37ce?_0x32b96e(0x1ee):null,'source':{'uploadcareImageId':_0x1985cf['id'],'src':_0x577b46,'sources':_0x1f6ebf,..._0x5bd302}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1d81(_0x41ee77,_0x5a2d10){var _0x2e8c98=_0x2e8c();return _0x1d81=function(_0x1d814b,_0x4ecfbc){_0x1d814b=_0x1d814b-0x83;var _0x3dc07f=_0x2e8c98[_0x1d814b];return _0x3dc07f;},_0x1d81(_0x41ee77,_0x5a2d10);}var _0x643d84=_0x1d81;(function(_0x35ba43,_0x2322fb){var _0x4a6dda=_0x1d81,_0x163085=_0x35ba43();while(!![]){try{var _0x54b75a=parseInt(_0x4a6dda(0x86))/0x1+parseInt(_0x4a6dda(0x8b))/0x2*(parseInt(_0x4a6dda(0x95))/0x3)+-parseInt(_0x4a6dda(0x97))/0x4+parseInt(_0x4a6dda(0x87))/0x5+-parseInt(_0x4a6dda(0x8f))/0x6+parseInt(_0x4a6dda(0x8c))/0x7*(parseInt(_0x4a6dda(0x88))/0x8)+parseInt(_0x4a6dda(0x89))/0x9*(-parseInt(_0x4a6dda(0x83))/0xa);if(_0x54b75a===_0x2322fb)break;else _0x163085['push'](_0x163085['shift']());}catch(_0x1bcdeb){_0x163085['push'](_0x163085['shift']());}}}(_0x2e8c,0xbbfcb));import{DialogFocusManagerView as _0x5e3f28}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x5e3f28{constructor(_0x47c668,_0x90d4f4){var _0x29c7af=_0x1d81;super(_0x47c668),this[_0x29c7af(0x96)]({'tag':_0x29c7af(0x90),'attributes':{'class':['ck',_0x29c7af(0x93),_0x29c7af(0x84)],'tabindex':'-1'},'children':[{'tag':_0x29c7af(0x85),'attributes':{'class':[_0x29c7af(0x91),_0x29c7af(0x94)],'ctx-name':_0x29c7af(0x8a)+_0x90d4f4}},this[_0x29c7af(0x8d)]()]});}[_0x643d84(0x92)](){var _0x3e70ec=_0x643d84;this[_0x3e70ec(0x8e)][_0x3e70ec(0x92)]();}}function _0x2e8c(){var _0x554403=['div','uc-light','focus','ck-reset_all-excluded','ck-uploadcare-theme','264630PyZEBC','setTemplate','6015056UREukw','27475430lUbAUL','ck-uploadcare-form','uc-file-uploader-inline','983849mZzEVD','7430605FjhcTU','8633512BkuGOF','9zkBRIC','uploader-','34QULuKL','7XDshek','getFocusableElement','element','164562xiwGep'];_0x2e8c=function(){return _0x554403;};return _0x2e8c();}
23
+ function _0x8bdd(){var _0x3f616d=['focus','6772200quuFXh','getFocusableElement','ck-uploadcare-form','setTemplate','2380EElLGk','91086JTQjaL','div','ck-reset_all-excluded','24sRQgoQ','uploader-','40746PyetsW','105FVGxDI','uc-light','3002510LOwFjz','6864057DifrIc','ck-uploadcare-theme','229493zhqNUP','258612brtYMT','58oDsPFq','element','uc-file-uploader-inline'];_0x8bdd=function(){return _0x3f616d;};return _0x8bdd();}function _0x4b06(_0x11958a,_0x200797){var _0x8bddfe=_0x8bdd();return _0x4b06=function(_0x4b06c7,_0x341a55){_0x4b06c7=_0x4b06c7-0x18f;var _0x3208c0=_0x8bddfe[_0x4b06c7];return _0x3208c0;},_0x4b06(_0x11958a,_0x200797);}var _0x58a5f8=_0x4b06;(function(_0x1828c7,_0x21bdac){var _0x1ab323=_0x4b06,_0x2bf189=_0x1828c7();while(!![]){try{var _0x4f6805=parseInt(_0x1ab323(0x19e))/0x1*(-parseInt(_0x1ab323(0x190))/0x2)+-parseInt(_0x1ab323(0x19c))/0x3*(parseInt(_0x1ab323(0x18f))/0x4)+-parseInt(_0x1ab323(0x1a1))/0x5+parseInt(_0x1ab323(0x199))/0x6*(-parseInt(_0x1ab323(0x19f))/0x7)+-parseInt(_0x1ab323(0x194))/0x8+-parseInt(_0x1ab323(0x1a2))/0x9+-parseInt(_0x1ab323(0x198))/0xa*(-parseInt(_0x1ab323(0x1a4))/0xb);if(_0x4f6805===_0x21bdac)break;else _0x2bf189['push'](_0x2bf189['shift']());}catch(_0x404f77){_0x2bf189['push'](_0x2bf189['shift']());}}}(_0x8bdd,0xca6c1));import{DialogFocusManagerView as _0x1ee4f9}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x1ee4f9{constructor(_0x23a58b,_0x256512){var _0x18cf83=_0x4b06;super(_0x23a58b),this[_0x18cf83(0x197)]({'tag':_0x18cf83(0x19a),'attributes':{'class':['ck',_0x18cf83(0x19b),_0x18cf83(0x196)],'tabindex':'-1'},'children':[{'tag':_0x18cf83(0x192),'attributes':{'class':[_0x18cf83(0x1a0),_0x18cf83(0x1a3)],'ctx-name':_0x18cf83(0x19d)+_0x256512}},this[_0x18cf83(0x195)]()]});}[_0x58a5f8(0x193)](){var _0x4cb010=_0x58a5f8;this[_0x4cb010(0x191)][_0x4cb010(0x193)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x376094=_0x55aa;(function(_0x46e3fb,_0x257f7e){const _0x4c14c2=_0x55aa,_0x2d3a87=_0x46e3fb();while(!![]){try{const _0x301b0c=parseInt(_0x4c14c2(0x184))/0x1+parseInt(_0x4c14c2(0x16a))/0x2+parseInt(_0x4c14c2(0x167))/0x3+-parseInt(_0x4c14c2(0x19a))/0x4*(parseInt(_0x4c14c2(0x1b2))/0x5)+parseInt(_0x4c14c2(0x164))/0x6*(parseInt(_0x4c14c2(0x19f))/0x7)+parseInt(_0x4c14c2(0x199))/0x8*(-parseInt(_0x4c14c2(0x1a0))/0x9)+-parseInt(_0x4c14c2(0x162))/0xa*(parseInt(_0x4c14c2(0x17c))/0xb);if(_0x301b0c===_0x257f7e)break;else _0x2d3a87['push'](_0x2d3a87['shift']());}catch(_0x56462f){_0x2d3a87['push'](_0x2d3a87['shift']());}}}(_0x39f7,0x8c002));import{Plugin as _0x57a6fa}from'ckeditor5/src/core.js';import{Dialog as _0x35c0df}from'ckeditor5/src/ui.js';function _0x39f7(){const _0x3eb80c=['uc-config','_initSchema','selection','96341yTfrAs','9270sXynqx','appendChild','input[uploadcare-file-input]','isOfficialPlugin','for','commands','document','ucContextId','data-uc-image-id','config','once','conversion','locale','destroy','_initConversion','attributeToAttribute','uc-upload-ctx-provider','_configElement','12605tRzHhd','elementToAttribute','requires','replaceImageSource','join','map','7459060TIofLL','upcast','474UfbDHe','imageBlock','querySelector','3089109FFkodM','uploadcare.uploader','\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','1838436ptSJVj','add','render','ctxElement','fromCharCode','uploadcare.pubkey','true','_initConfig','remove','schema','listenTo','_initCtx','isPremiumPlugin','init','href','configElement','editor','get','22GcLUOv','afterInit','getSelectedElement','isRegistered','_initImageProcessingIndicator','uploadcareImageId','execute','uploadcare','340997bkCwuv','downcast','_ctxElement','iconHrefResolver','getAttribute','UploadcareEditing','#uc-icon-arrow-down','contentLanguage','view','editing','insertImage','body','closeMax','uploadcareImageReplace','pluginName','uploader-','PictureEditing','extend','cleanupImage','removeAttribute','imageInline','8408kutKeh','364ztpzOY','model'];_0x39f7=function(){return _0x3eb80c;};return _0x39f7();}import{createElement as _0x3be59a,global as _0x70ec66,uid as _0x4d65ff}from'ckeditor5/src/utils.js';function _0x55aa(_0x21d10b,_0x21161a){const _0x39f708=_0x39f7();return _0x55aa=function(_0x55aadb,_0x19e4a3){_0x55aadb=_0x55aadb-0x160;let _0xab0807=_0x39f708[_0x55aadb];return _0xab0807;},_0x55aa(_0x21d10b,_0x21161a);}import{UploadcareCommand as _0x4bcb60}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2ad8d3}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4a2f34}from'./utils/editingutils.js';export class UploadcareEditing extends _0x57a6fa{[_0x376094(0x1b1)]=null;[_0x376094(0x186)]=null;static get[_0x376094(0x192)](){const _0x2b15a0=_0x376094;return _0x2b15a0(0x189);}static get[_0x376094(0x1b4)](){const _0xdc2a7c=_0x376094;return[_0xdc2a7c(0x194),_0x2ad8d3,_0x35c0df];}static get[_0x376094(0x1a3)](){return!0x0;}static get[_0x376094(0x176)](){return!0x0;}[_0x376094(0x1a7)];get[_0x376094(0x179)](){const _0x1ca3e0=_0x376094;return this[_0x1ca3e0(0x1b1)];}get[_0x376094(0x16d)](){const _0x14ded7=_0x376094;return this[_0x14ded7(0x186)];}constructor(_0x91767b){const _0x2fcdc7=_0x376094;super(_0x91767b),this[_0x2fcdc7(0x1a7)]=_0x4d65ff();}[_0x376094(0x177)](){const _0x3dd974=_0x376094,_0x1406ef=this[_0x3dd974(0x17a)];_0x1406ef[_0x3dd974(0x1a5)][_0x3dd974(0x16b)](_0x3dd974(0x183),new _0x4bcb60(_0x1406ef));}[_0x376094(0x17d)](){const _0x10d9b0=_0x376094;this[_0x10d9b0(0x19d)](),this[_0x10d9b0(0x1ae)](),this[_0x10d9b0(0x171)](),this[_0x10d9b0(0x175)](),this[_0x10d9b0(0x180)](),this[_0x10d9b0(0x174)](this[_0x10d9b0(0x17a)],_0x10d9b0(0x1ad),()=>{const _0x2b6253=_0x10d9b0;this[_0x2b6253(0x1b1)]&&(this[_0x2b6253(0x1b1)][_0x2b6253(0x172)](),this[_0x2b6253(0x1b1)]=null),this[_0x2b6253(0x186)]&&(this[_0x2b6253(0x186)][_0x2b6253(0x172)](),this[_0x2b6253(0x186)]=null);const _0x55d063=_0x70ec66[_0x2b6253(0x1a6)][_0x2b6253(0x166)](_0x2b6253(0x1a2));_0x55d063&&_0x55d063[_0x2b6253(0x172)]();}),async function(_0x38e05e){const _0x1d3690=_0x821afc([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x550aaa=0x535f8c3a,_0x2806a6=0x5358f1e2^_0x550aaa,_0x4ee221=window[_0x821afc([0x44,0x61,0x74,0x65])][_0x821afc([0x6e,0x6f,0x77])](),_0xc8ba29=_0x38e05e[_0x821afc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x512477=new window[(_0x821afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x572e9f=>{_0xc8ba29[_0x821afc([0x6f,0x6e,0x63,0x65])](_0x821afc([0x72,0x65,0x61,0x64,0x79]),_0x572e9f);}),_0x3d5f9b={[_0x821afc([0x6b,0x74,0x79])]:_0x821afc([0x45,0x43]),[_0x821afc([0x75,0x73,0x65])]:_0x821afc([0x73,0x69,0x67]),[_0x821afc([0x63,0x72,0x76])]:_0x821afc([0x50,0x2d,0x32,0x35,0x36]),[_0x821afc([0x78])]:_0x821afc([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]),[_0x821afc([0x79])]:_0x821afc([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]),[_0x821afc([0x61,0x6c,0x67])]:_0x821afc([0x45,0x53,0x32,0x35,0x36])},_0xa15b81=_0xc8ba29[_0x821afc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x821afc([0x67,0x65,0x74])](_0x821afc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3967d4(){let _0x5232e4,_0x4034b1=null,_0x452393=null;try{if(_0xa15b81==_0x821afc([0x47,0x50,0x4c]))return _0x821afc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5232e4=_0x4fdd0b(),!_0x5232e4)return _0x821afc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5232e4[_0x821afc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x452393=_0x15a3af(_0x5232e4[_0x821afc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5232e4[_0x821afc([0x6a,0x74,0x69])])),await _0x331965()?_0x5126ab()?_0x135613()?_0x821afc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x38e7c5()?(_0x5232e4[_0x821afc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x821afc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4034b1=_0x2bcf35(_0x821afc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5232e4[_0x821afc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x821afc([0x74,0x72,0x69,0x61,0x6c])&&(_0x4034b1=_0x2bcf35(_0x821afc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e8541()):_0x821afc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x821afc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x821afc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x821afc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x135613(){const _0x52647a=[_0x821afc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x821afc([0x74,0x72,0x69,0x61,0x6c])][_0x821afc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5232e4[_0x821afc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4ee221/0x3e8:0xe10*_0x2806a6;return _0x5232e4[_0x821afc([0x65,0x78,0x70])]<_0x52647a;}function _0x5126ab(){const _0x289131=_0x5232e4[_0x821afc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x289131&&(!!_0x289131[_0x821afc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x821afc([0x2a]))||!!_0x289131[_0x821afc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x821afc([0x55,0x50,0x4c,0x43])));}function _0x38e7c5(){const _0x4719c9=_0x55aa,_0x5e563e=_0x5232e4[_0x821afc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e563e||0x0==_0x5e563e[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b4680}=new URL(window[_0x821afc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4719c9(0x178)]);if(_0x5e563e[_0x821afc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b4680))return!0x0;const _0x4168b5=_0x2b4680[_0x821afc([0x73,0x70,0x6c,0x69,0x74])](_0x821afc([0x2e]));return _0x5e563e[_0x821afc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x756ae7=>_0x756ae7[_0x821afc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x821afc([0x2a])))[_0x821afc([0x6d,0x61,0x70])](_0xd5a3f9=>_0xd5a3f9[_0x821afc([0x73,0x70,0x6c,0x69,0x74])](_0x821afc([0x2e])))[_0x821afc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x410d55=>_0x410d55[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4168b5[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x821afc([0x6d,0x61,0x70])](_0x3295ac=>Array(_0x4168b5[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3295ac[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x821afc([0x66,0x69,0x6c,0x6c])](_0x3295ac[0x0]===_0x821afc([0x2a])?_0x821afc([0x2a]):'')[_0x821afc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3295ac))[_0x821afc([0x73,0x6f,0x6d,0x65])](_0xc2af84=>_0x4168b5[_0x821afc([0x65,0x76,0x65,0x72,0x79])]((_0x814bac,_0x46fef1)=>_0xc2af84[_0x46fef1]===_0x814bac||_0xc2af84[_0x46fef1]===_0x821afc([0x2a])));}function _0x4e8541(){return _0x4034b1&&_0x452393?new window[(_0x821afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x742172,_0x119867)=>{_0x4034b1[_0x821afc([0x74,0x68,0x65,0x6e])](_0x742172,_0x119867),_0x452393[_0x821afc([0x74,0x68,0x65,0x6e])](_0x3bc19f=>{_0x3bc19f!=_0x821afc([0x56,0x61,0x6c,0x69,0x64])&&_0x742172(_0x3bc19f);},_0x119867);}):_0x4034b1||_0x452393||_0x821afc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15a3af(_0x18e588,_0x69a7ce){return new window[(_0x821afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28847e=>{if(_0x4ba2ce())return _0x28847e(_0x821afc([0x56,0x61,0x6c,0x69,0x64]));_0x1f814a(),_0xc8ba29[_0x821afc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x821afc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3a7489=!0x1;const _0x440f1b=_0x4d65ff();function _0x4b0a08(_0x668c75){return!!_0x668c75&&(typeof _0x668c75===_0x821afc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x668c75===_0x821afc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x668c75[_0x821afc([0x74,0x68,0x65,0x6e])]===_0x821afc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x668c75[_0x821afc([0x63,0x61,0x74,0x63,0x68])]===_0x821afc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ff84c(_0x38daa1){_0x581e6b(_0x38daa1)[_0x821afc([0x74,0x68,0x65,0x6e])](_0x48291f=>{if(!_0x48291f||_0x48291f[_0x821afc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x821afc([0x6f,0x6b]))return _0x821afc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x28e8f5(_0x239ba5(_0x440f1b+_0x69a7ce))!=_0x48291f[_0x821afc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x821afc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x821afc([0x56,0x61,0x6c,0x69,0x64]);})[_0x821afc([0x74,0x68,0x65,0x6e])](_0x18f3ac=>(_0x8cf220(),_0x18f3ac),()=>{const _0x6ab554=_0x311e72();return null==_0x6ab554?(_0x8cf220(),_0x821afc([0x56,0x61,0x6c,0x69,0x64])):_0x821afc(_0x4ee221-_0x6ab554>(0x7753083a^_0x550aaa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x821afc([0x74,0x68,0x65,0x6e])](_0x28847e)[_0x821afc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x28847e(_0x821afc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d64f9=0x536962ba^_0x550aaa;function _0x8cf220(){const _0x5f3d04=_0x821afc([0x6c,0x6c,0x63,0x74,0x2d])+_0x28e8f5(_0x239ba5(_0x18e588)),_0x28c74a=_0x1d30f0(_0x28e8f5(window[_0x821afc([0x4d,0x61,0x74,0x68])][_0x821afc([0x63,0x65,0x69,0x6c])](_0x4ee221/_0x5d64f9)));window[_0x821afc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x821afc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5f3d04,_0x28c74a);}function _0x311e72(){const _0x4f1b04=_0x821afc([0x6c,0x6c,0x63,0x74,0x2d])+_0x28e8f5(_0x239ba5(_0x18e588)),_0x5334b4=window[_0x821afc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x821afc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f1b04);return _0x5334b4?window[_0x821afc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d30f0(_0x5334b4),0x10)*_0x5d64f9:null;}function _0x581e6b(_0x4d826d){return new window[(_0x821afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38dc7b,_0x4605ea)=>{_0x4d826d[_0x821afc([0x74,0x68,0x65,0x6e])](_0x38dc7b,_0x4605ea),window[_0x821afc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4605ea,0x535e58fa^_0x550aaa);});}}_0xc8ba29[_0x821afc([0x6f,0x6e])](_0x821afc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb6b412,_0x4a0899)=>{if(_0x4a0899[0x0]!=_0x18e588)return _0x28847e(_0x821afc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a0899[0x1]={..._0x4a0899[0x1],[_0x821afc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x440f1b};},{[_0x821afc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x821afc([0x68,0x69,0x67,0x68])}),_0xc8ba29[_0x821afc([0x6f,0x6e])](_0x821afc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4588b7=>{_0x4b0a08(_0x4588b7[_0x821afc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3a7489=!0x0,_0x4ff84c(_0x4588b7[_0x821afc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x821afc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x821afc([0x6c,0x6f,0x77])}),_0x512477[_0x821afc([0x74,0x68,0x65,0x6e])](()=>{_0x3a7489||_0x28847e(_0x821afc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ba2ce(){return _0xc8ba29[_0x821afc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x821afc([0x76,0x69,0x65,0x77])][_0x821afc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x821afc([0x61,0x75,0x74,0x6f]);}function _0x1f814a(){_0xc8ba29[_0x821afc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x821afc([0x76,0x69,0x65,0x77])][_0x821afc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x821afc([0x61,0x75,0x74,0x6f]);}}function _0x2bcf35(_0x4979ac){const _0x5b3eed=[new window[(_0x821afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x131c5b=>setTimeout(_0x131c5b,0x5356b2f6^_0x550aaa)),_0x512477[_0x821afc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x821afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1833be=>{let _0x513bd1=0x0;_0xc8ba29[_0x821afc([0x6d,0x6f,0x64,0x65,0x6c])][_0x821afc([0x6f,0x6e])](_0x821afc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3a93e6,_0x596d90)=>{_0x596d90[0x0][_0x821afc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x513bd1++,_0x513bd1==(0x535f89d2^_0x550aaa)&&(_0x1833be(),_0x3a93e6[_0x821afc([0x6f,0x66,0x66])]());});}))];return window[_0x821afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x821afc([0x72,0x61,0x63,0x65])](_0x5b3eed)[_0x821afc([0x74,0x68,0x65,0x6e])](()=>_0x4979ac);}async function _0x40247b(){await _0x512477,_0xc8ba29[_0x821afc([0x6d,0x6f,0x64,0x65,0x6c])][_0x821afc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50ca84,_0xc8ba29[_0x821afc([0x6d,0x6f,0x64,0x65,0x6c])][_0x821afc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50ca84,_0xc8ba29[_0x821afc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x821afc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2979b4(_0x496432){const _0x5f2878=_0x5dfc2d();_0xc8ba29[_0x5f2878]=_0x821afc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x496432,_0x496432!=_0x821afc([0x56,0x61,0x6c,0x69,0x64])&&_0x40247b();}function _0x5dfc2d(){const _0x2cc63f=window[_0x821afc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x821afc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x821afc([0x6e,0x6f,0x77])]())[_0x821afc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x821afc([0x2e]),'');let _0x4f4c6a=_0x821afc([0x68]);for(let _0x43669d=0x0;_0x43669d<_0x2cc63f[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43669d+=0x2){let _0x9ede59=window[_0x821afc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cc63f[_0x821afc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43669d,_0x43669d+0x2));_0x9ede59>=_0x1d3690[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x9ede59-=_0x1d3690[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f4c6a+=_0x1d3690[_0x9ede59];}return _0x4f4c6a;}function _0x4fdd0b(){const _0x5468d0=_0xa15b81[_0x821afc([0x73,0x70,0x6c,0x69,0x74])](_0x821afc([0x2e]));if(0x3!=_0x5468d0[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x90b656(_0x5468d0[0x1]);function _0x90b656(_0x3f7d19){const _0x397bed=_0x5c6f34(_0x3f7d19);return _0x397bed&&_0x2e1d9a()?_0x397bed:null;function _0x2e1d9a(){const _0x480063=_0x397bed[_0x821afc([0x6a,0x74,0x69])],_0x22dada=window[_0x821afc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x480063[_0x821afc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x480063[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xbc24a2={..._0x397bed,[_0x821afc([0x6a,0x74,0x69])]:_0x480063[_0x821afc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x480063[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xbc24a2[_0x821afc([0x76,0x63])],_0x239ba5(_0xbc24a2)==_0x22dada;}}}async function _0x331965(){let _0x30feb0=!0x0;try{const _0x236c82=_0xa15b81[_0x821afc([0x73,0x70,0x6c,0x69,0x74])](_0x821afc([0x2e])),[_0x25f77b,_0x3de70c,_0x58d512]=_0x236c82;return _0x40d5d3(_0x25f77b),await _0x195961(_0x25f77b,_0x3de70c,_0x58d512),_0x30feb0;}catch{return!0x1;}function _0x40d5d3(_0x1082a7){const _0x5eb68c=_0x5c6f34(_0x1082a7);_0x5eb68c&&_0x5eb68c[_0x821afc([0x61,0x6c,0x67])]==_0x821afc([0x45,0x53,0x32,0x35,0x36])||(_0x30feb0=!0x1);}async function _0x195961(_0xcfd2bd,_0x27e5b7,_0x287efa){const _0x14d432=window[_0x821afc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x821afc([0x66,0x72,0x6f,0x6d])](_0x14f775(_0x287efa),_0x4dec12=>_0x4dec12[_0x821afc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2aa179=new window[(_0x821afc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x821afc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xcfd2bd+_0x821afc([0x2e])+_0x27e5b7),_0x4fd1a6=window[_0x821afc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x821afc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4fd1a6)return;const _0x4ec7c1=await _0x4fd1a6[_0x821afc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x821afc([0x6a,0x77,0x6b]),_0x3d5f9b,{[_0x821afc([0x6e,0x61,0x6d,0x65])]:_0x821afc([0x45,0x43,0x44,0x53,0x41]),[_0x821afc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x821afc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x821afc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4fd1a6[_0x821afc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x821afc([0x6e,0x61,0x6d,0x65])]:_0x821afc([0x45,0x43,0x44,0x53,0x41]),[_0x821afc([0x68,0x61,0x73,0x68])]:{[_0x821afc([0x6e,0x61,0x6d,0x65])]:_0x821afc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ec7c1,_0x14d432,_0x2aa179)||(_0x30feb0=!0x1);}}function _0x5c6f34(_0x2ac241){return _0x2ac241[_0x821afc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x821afc([0x65,0x79]))?JSON[_0x821afc([0x70,0x61,0x72,0x73,0x65])](_0x14f775(_0x2ac241)):null;}function _0x14f775(_0xf15433){return window[_0x821afc([0x61,0x74,0x6f,0x62])](_0xf15433[_0x821afc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x821afc([0x2b]))[_0x821afc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x821afc([0x2f])));}function _0x239ba5(_0x1d8a1c){let _0x346f89=0x1505;function _0x5eff99(_0x40259f){for(let _0x253b4a=0x0;_0x253b4a<_0x40259f[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x253b4a++){const _0x4624ad=_0x40259f[_0x821afc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x253b4a);_0x346f89=(_0x346f89<<0x5)+_0x346f89+_0x4624ad,_0x346f89&=_0x346f89;}}function _0x25c6f9(_0x357541){Array[_0x821afc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x357541)?_0x357541[_0x821afc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x25c6f9):_0x357541&&typeof _0x357541==_0x821afc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x821afc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x357541)[_0x821afc([0x73,0x6f,0x72,0x74])]()[_0x821afc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4b868f,_0x347758])=>{_0x5eff99(_0x4b868f),_0x25c6f9(_0x347758);}):_0x5eff99(window[_0x821afc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x357541));}return _0x25c6f9(_0x1d8a1c),_0x346f89>>>0x0;}function _0x28e8f5(_0x59e828){return _0x59e828[_0x821afc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x821afc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x821afc([0x30]));}function _0x1d30f0(_0x4564f3){return _0x4564f3[_0x821afc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x821afc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x821afc([0x6a,0x6f,0x69,0x6e])]('');}function _0x50ca84(){}function _0x821afc(_0x41e636){const _0x27d05a=_0x55aa;return _0x41e636[_0x27d05a(0x161)](_0x58a858=>String[_0x27d05a(0x16e)](_0x58a858))[_0x27d05a(0x160)]('');}_0x2979b4(await _0x3967d4());}(this);}[_0x376094(0x19d)](){const _0x3d1dc6=_0x376094,_0x2cc32d=this[_0x3d1dc6(0x17a)][_0x3d1dc6(0x19b)][_0x3d1dc6(0x173)];_0x2cc32d[_0x3d1dc6(0x17f)](_0x3d1dc6(0x165))&&_0x2cc32d[_0x3d1dc6(0x195)](_0x3d1dc6(0x165),{'allowAttributes':[_0x3d1dc6(0x181)]}),_0x2cc32d[_0x3d1dc6(0x17f)](_0x3d1dc6(0x198))&&_0x2cc32d[_0x3d1dc6(0x195)](_0x3d1dc6(0x198),{'allowAttributes':[_0x3d1dc6(0x181)]});}[_0x376094(0x1ae)](){const _0x287bca=_0x376094,_0x574fac=this[_0x287bca(0x17a)];_0x574fac[_0x287bca(0x1ab)][_0x287bca(0x1a4)](_0x287bca(0x185))[_0x287bca(0x1af)]({'model':_0x287bca(0x181),'view':_0x287bca(0x1a8)}),_0x574fac[_0x287bca(0x1ab)][_0x287bca(0x1a4)](_0x287bca(0x163))[_0x287bca(0x1b3)]({'model':{'key':_0x287bca(0x181),'value':_0x370b50=>_0x370b50[_0x287bca(0x188)](_0x287bca(0x1a8))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5d102e=_0x574fac[_0x287bca(0x1a5)][_0x287bca(0x17b)](_0x287bca(0x1b5));_0x5d102e&&this[_0x287bca(0x174)](_0x5d102e,_0x287bca(0x196),(_0x43a5c4,[_0x4043f0,_0x3bde62])=>{const _0x4d68ac=_0x287bca;_0x4043f0[_0x4d68ac(0x197)](_0x4d68ac(0x181),_0x3bde62);});}[_0x376094(0x171)](){const _0x35d5c5=_0x376094,_0x25b522=this[_0x35d5c5(0x17a)][_0x35d5c5(0x1a9)][_0x35d5c5(0x17b)](_0x35d5c5(0x168))||{},_0x445cf5=this[_0x35d5c5(0x17a)][_0x35d5c5(0x1a9)][_0x35d5c5(0x17b)](_0x35d5c5(0x16f))||'';this[_0x35d5c5(0x1b1)]=_0x3be59a(_0x70ec66[_0x35d5c5(0x1a6)],_0x35d5c5(0x19c),{..._0x25b522,'pubkey':_0x445cf5,'ctx-name':_0x35d5c5(0x193)+this[_0x35d5c5(0x1a7)],'sourceList':'','imgOnly':_0x35d5c5(0x170),'removeCopyright':_0x35d5c5(0x170),'localeName':this[_0x35d5c5(0x17a)][_0x35d5c5(0x1ac)][_0x35d5c5(0x18b)],'externalSourcesEmbedCss':_0x35d5c5(0x169)}),this[_0x35d5c5(0x1b1)][_0x35d5c5(0x187)]=_0x20db24=>{const _0x3c49ae=_0x35d5c5;if(_0x3c49ae(0x190)==_0x20db24)return _0x3c49ae(0x18a);},_0x70ec66[_0x35d5c5(0x1a6)][_0x35d5c5(0x18f)][_0x35d5c5(0x1a1)](this[_0x35d5c5(0x1b1)]);}[_0x376094(0x175)](){const _0x1b6166=_0x376094;this[_0x1b6166(0x186)]=_0x3be59a(_0x70ec66[_0x1b6166(0x1a6)],_0x1b6166(0x1b0),{'ctx-name':_0x1b6166(0x193)+this[_0x1b6166(0x1a7)]}),_0x70ec66[_0x1b6166(0x1a6)][_0x1b6166(0x18f)][_0x1b6166(0x1a1)](this[_0x1b6166(0x186)]);}[_0x376094(0x180)](){const _0x26b056=_0x376094,_0x250476=this[_0x26b056(0x17a)][_0x26b056(0x1a5)][_0x26b056(0x17b)](_0x26b056(0x18e));_0x250476&&this[_0x26b056(0x174)](_0x250476,_0x26b056(0x182),()=>{const _0x283afa=_0x26b056,_0x147eac=this[_0x283afa(0x17a)][_0x283afa(0x19b)][_0x283afa(0x1a6)][_0x283afa(0x19e)][_0x283afa(0x17e)]();_0x147eac&&_0x147eac[_0x283afa(0x188)](_0x283afa(0x181))&&this[_0x283afa(0x17a)][_0x283afa(0x18d)][_0x283afa(0x18c)][_0x283afa(0x1aa)](_0x283afa(0x16c),()=>{const _0x20e3cd=_0x283afa;_0x4a2f34(this[_0x20e3cd(0x17a)],_0x147eac);});});const _0x53ad32=this[_0x26b056(0x17a)][_0x26b056(0x1a5)][_0x26b056(0x17b)](_0x26b056(0x191));_0x53ad32&&this[_0x26b056(0x174)](_0x53ad32,_0x26b056(0x182),()=>{const _0x41ce65=_0x26b056,_0x7bf69c=this[_0x41ce65(0x17a)][_0x41ce65(0x19b)][_0x41ce65(0x1a6)][_0x41ce65(0x19e)][_0x41ce65(0x17e)]();_0x7bf69c&&_0x7bf69c[_0x41ce65(0x188)](_0x41ce65(0x181))&&this[_0x41ce65(0x17a)][_0x41ce65(0x18d)][_0x41ce65(0x18c)][_0x41ce65(0x1aa)](_0x41ce65(0x16c),()=>{const _0x587724=_0x41ce65;_0x4a2f34(this[_0x587724(0x17a)],_0x7bf69c);});});}}
23
+ const _0x4d6a0d=_0x2a06;function _0x2f1c(){const _0x248c18=['commands','downcast','contentLanguage','configElement','uploadcareImageId','data-uc-image-id','4puLJPa','execute','ucContextId','imageBlock','2CommXL','view','editor','5605555cJTsND','UploadcareEditing','init','editing','_initConversion','uc-config','uploadcare.uploader','imageInline','once','selection','upcast','querySelector','3848rpfkCZ','appendChild','_initCtx','elementToAttribute','isPremiumPlugin','_ctxElement','closeMax','5557032YygFJc','4519452IGnxLq','extend','replaceImageSource','_initImageProcessingIndicator','add','fromCharCode','join','getAttribute','uploader-','9247YoCfKw','getSelectedElement','model','uc-upload-ctx-provider','remove','afterInit','schema','requires','destroy','957851SlUMkD','insertImage','_initSchema','#uc-icon-arrow-down','2218107pzvvHh','true','pluginName','config','removeAttribute','25772879AhjJxo','input[uploadcare-file-input]','render','10fULvph','document','uploadcareImageReplace','uploadcare.pubkey','_initConfig','listenTo','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','isRegistered','PictureEditing','locale','iconHrefResolver','cleanupImage','attributeToAttribute','uploadcare','body','get','for','map','isOfficialPlugin','_configElement','href','conversion','ctxElement'];_0x2f1c=function(){return _0x248c18;};return _0x2f1c();}(function(_0x3a818c,_0x373fb7){const _0x13e1f5=_0x2a06,_0x88fcfb=_0x3a818c();while(!![]){try{const _0x1f1db5=parseInt(_0x13e1f5(0x164))/0x1*(-parseInt(_0x13e1f5(0x13b))/0x2)+parseInt(_0x13e1f5(0x168))/0x3*(parseInt(_0x13e1f5(0x18d))/0x4)+parseInt(_0x13e1f5(0x13e))/0x5+parseInt(_0x13e1f5(0x152))/0x6+parseInt(_0x13e1f5(0x15b))/0x7*(parseInt(_0x13e1f5(0x14a))/0x8)+parseInt(_0x13e1f5(0x151))/0x9+-parseInt(_0x13e1f5(0x170))/0xa*(parseInt(_0x13e1f5(0x16d))/0xb);if(_0x1f1db5===_0x373fb7)break;else _0x88fcfb['push'](_0x88fcfb['shift']());}catch(_0x1050bc){_0x88fcfb['push'](_0x88fcfb['shift']());}}}(_0x2f1c,0x8a1e3));import{Plugin as _0xecf7e8}from'ckeditor5/src/core.js';import{Dialog as _0x1fdeb8}from'ckeditor5/src/ui.js';import{createElement as _0x3a842a,global as _0x3ced27,uid as _0x406430}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5ced74}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x27b222}from'./uploadcareuploadadapter.js';function _0x2a06(_0x5bba01,_0x48137c){const _0x2f1c61=_0x2f1c();return _0x2a06=function(_0x2a0681,_0x705002){_0x2a0681=_0x2a0681-0x139;let _0x472c19=_0x2f1c61[_0x2a0681];return _0x472c19;},_0x2a06(_0x5bba01,_0x48137c);}import{showImageProcessingIndicator as _0x503da2}from'./utils/editingutils.js';export class UploadcareEditing extends _0xecf7e8{[_0x4d6a0d(0x183)]=null;[_0x4d6a0d(0x14f)]=null;static get[_0x4d6a0d(0x16a)](){const _0x143726=_0x4d6a0d;return _0x143726(0x13f);}static get[_0x4d6a0d(0x162)](){const _0x4bcd5a=_0x4d6a0d;return[_0x4bcd5a(0x178),_0x27b222,_0x1fdeb8];}static get[_0x4d6a0d(0x182)](){return!0x0;}static get[_0x4d6a0d(0x14e)](){return!0x0;}[_0x4d6a0d(0x139)];get[_0x4d6a0d(0x18a)](){const _0x2ebb6b=_0x4d6a0d;return this[_0x2ebb6b(0x183)];}get[_0x4d6a0d(0x186)](){const _0x4c9a55=_0x4d6a0d;return this[_0x4c9a55(0x14f)];}constructor(_0x1d754f){const _0xc6a7b0=_0x4d6a0d;super(_0x1d754f),this[_0xc6a7b0(0x139)]=_0x406430();}[_0x4d6a0d(0x140)](){const _0x2e0a70=_0x4d6a0d,_0x44a852=this[_0x2e0a70(0x13d)];_0x44a852[_0x2e0a70(0x187)][_0x2e0a70(0x156)](_0x2e0a70(0x17d),new _0x5ced74(_0x44a852));}[_0x4d6a0d(0x160)](){const _0x53f40c=_0x4d6a0d;this[_0x53f40c(0x166)](),this[_0x53f40c(0x142)](),this[_0x53f40c(0x174)](),this[_0x53f40c(0x14c)](),this[_0x53f40c(0x155)](),this[_0x53f40c(0x175)](this[_0x53f40c(0x13d)],_0x53f40c(0x163),()=>{const _0x4c4d4a=_0x53f40c;this[_0x4c4d4a(0x183)]&&(this[_0x4c4d4a(0x183)][_0x4c4d4a(0x15f)](),this[_0x4c4d4a(0x183)]=null),this[_0x4c4d4a(0x14f)]&&(this[_0x4c4d4a(0x14f)][_0x4c4d4a(0x15f)](),this[_0x4c4d4a(0x14f)]=null);const _0x56abaa=_0x3ced27[_0x4c4d4a(0x171)][_0x4c4d4a(0x149)](_0x4c4d4a(0x16e));_0x56abaa&&_0x56abaa[_0x4c4d4a(0x15f)]();}),async function(_0x34fc33){const _0x5ef54b=_0x2f8119([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0xe1b460=0x535f8c3a,_0x3e6d70=0x5358f1ca^_0xe1b460,_0x11f478=window[_0x2f8119([0x44,0x61,0x74,0x65])][_0x2f8119([0x6e,0x6f,0x77])](),_0x391b91=_0x34fc33[_0x2f8119([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c76b2=new window[(_0x2f8119([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a84a8=>{_0x391b91[_0x2f8119([0x6f,0x6e,0x63,0x65])](_0x2f8119([0x72,0x65,0x61,0x64,0x79]),_0x5a84a8);}),_0x2c6b88={[_0x2f8119([0x6b,0x74,0x79])]:_0x2f8119([0x45,0x43]),[_0x2f8119([0x75,0x73,0x65])]:_0x2f8119([0x73,0x69,0x67]),[_0x2f8119([0x63,0x72,0x76])]:_0x2f8119([0x50,0x2d,0x32,0x35,0x36]),[_0x2f8119([0x78])]:_0x2f8119([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]),[_0x2f8119([0x79])]:_0x2f8119([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]),[_0x2f8119([0x61,0x6c,0x67])]:_0x2f8119([0x45,0x53,0x32,0x35,0x36])},_0x408d91=_0x391b91[_0x2f8119([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f8119([0x67,0x65,0x74])](_0x2f8119([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c0fb2(){let _0x12f04c,_0x52a4a9=null,_0x3aa38e=null;try{if(_0x408d91==_0x2f8119([0x47,0x50,0x4c]))return _0x2f8119([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x12f04c=_0x18c66f(),!_0x12f04c)return _0x2f8119([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x12f04c[_0x2f8119([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3aa38e=_0x1fea45(_0x12f04c[_0x2f8119([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x12f04c[_0x2f8119([0x6a,0x74,0x69])])),await _0x47817e()?_0x599b6f()?_0x2c133f()?_0x2f8119([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x45e493()?(_0x12f04c[_0x2f8119([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f8119([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x52a4a9=_0x13bf8b(_0x2f8119([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x12f04c[_0x2f8119([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f8119([0x74,0x72,0x69,0x61,0x6c])&&(_0x52a4a9=_0x13bf8b(_0x2f8119([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a672b()):_0x2f8119([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f8119([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f8119([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2f8119([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2c133f(){const _0x3906a2=[_0x2f8119([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f8119([0x74,0x72,0x69,0x61,0x6c])][_0x2f8119([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12f04c[_0x2f8119([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x11f478/0x3e8:0xe10*_0x3e6d70;return _0x12f04c[_0x2f8119([0x65,0x78,0x70])]<_0x3906a2;}function _0x599b6f(){const _0x756314=_0x12f04c[_0x2f8119([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x756314&&(!!_0x756314[_0x2f8119([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f8119([0x2a]))||!!_0x756314[_0x2f8119([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f8119([0x55,0x50,0x4c,0x43])));}function _0x45e493(){const _0x4d32ee=_0x2a06,_0xb6921f=_0x12f04c[_0x2f8119([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb6921f||0x0==_0xb6921f[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x463ddf}=new URL(window[_0x2f8119([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4d32ee(0x184)]);if(_0xb6921f[_0x2f8119([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x463ddf))return!0x0;const _0x508ac5=_0x463ddf[_0x2f8119([0x73,0x70,0x6c,0x69,0x74])](_0x2f8119([0x2e]));return _0xb6921f[_0x2f8119([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x116ab4=>_0x116ab4[_0x2f8119([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f8119([0x2a])))[_0x2f8119([0x6d,0x61,0x70])](_0x46bb13=>_0x46bb13[_0x2f8119([0x73,0x70,0x6c,0x69,0x74])](_0x2f8119([0x2e])))[_0x2f8119([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10a1e3=>_0x10a1e3[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x508ac5[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f8119([0x6d,0x61,0x70])](_0x1a3951=>Array(_0x508ac5[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1a3951[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f8119([0x66,0x69,0x6c,0x6c])](_0x1a3951[0x0]===_0x2f8119([0x2a])?_0x2f8119([0x2a]):'')[_0x2f8119([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1a3951))[_0x2f8119([0x73,0x6f,0x6d,0x65])](_0x247efc=>_0x508ac5[_0x2f8119([0x65,0x76,0x65,0x72,0x79])]((_0x1aff3a,_0x18a3b6)=>_0x247efc[_0x18a3b6]===_0x1aff3a||_0x247efc[_0x18a3b6]===_0x2f8119([0x2a])));}function _0x5a672b(){return _0x52a4a9&&_0x3aa38e?new window[(_0x2f8119([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22a10b,_0x12fd44)=>{_0x52a4a9[_0x2f8119([0x74,0x68,0x65,0x6e])](_0x22a10b,_0x12fd44),_0x3aa38e[_0x2f8119([0x74,0x68,0x65,0x6e])](_0x29a3df=>{_0x29a3df!=_0x2f8119([0x56,0x61,0x6c,0x69,0x64])&&_0x22a10b(_0x29a3df);},_0x12fd44);}):_0x52a4a9||_0x3aa38e||_0x2f8119([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1fea45(_0x4928d1,_0x16e42c){return new window[(_0x2f8119([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53afdf=>{if(_0xed3e11())return _0x53afdf(_0x2f8119([0x56,0x61,0x6c,0x69,0x64]));_0x352bbe(),_0x391b91[_0x2f8119([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f8119([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3db2a6=!0x1;const _0x310611=_0x406430();function _0x42f95e(_0x494011){return!!_0x494011&&(typeof _0x494011===_0x2f8119([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x494011===_0x2f8119([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x494011[_0x2f8119([0x74,0x68,0x65,0x6e])]===_0x2f8119([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x494011[_0x2f8119([0x63,0x61,0x74,0x63,0x68])]===_0x2f8119([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x510f6d(_0x5df6ce){_0x144913(_0x5df6ce)[_0x2f8119([0x74,0x68,0x65,0x6e])](_0x40c3b3=>{if(!_0x40c3b3||_0x40c3b3[_0x2f8119([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f8119([0x6f,0x6b]))return _0x2f8119([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xda6dec(_0x9d51d4(_0x310611+_0x16e42c))!=_0x40c3b3[_0x2f8119([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f8119([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f8119([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f8119([0x74,0x68,0x65,0x6e])](_0x28d13b=>(_0x23ebcf(),_0x28d13b),()=>{const _0x1b4d2a=_0x5b9d4c();return null==_0x1b4d2a?(_0x23ebcf(),_0x2f8119([0x56,0x61,0x6c,0x69,0x64])):_0x2f8119(_0x11f478-_0x1b4d2a>(0x7753083a^_0xe1b460)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f8119([0x74,0x68,0x65,0x6e])](_0x53afdf)[_0x2f8119([0x63,0x61,0x74,0x63,0x68])](()=>{_0x53afdf(_0x2f8119([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x396e72=0x536962ba^_0xe1b460;function _0x23ebcf(){const _0x4c5c0a=_0x2f8119([0x6c,0x6c,0x63,0x74,0x2d])+_0xda6dec(_0x9d51d4(_0x4928d1)),_0x121db6=_0x221ab3(_0xda6dec(window[_0x2f8119([0x4d,0x61,0x74,0x68])][_0x2f8119([0x63,0x65,0x69,0x6c])](_0x11f478/_0x396e72)));window[_0x2f8119([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f8119([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c5c0a,_0x121db6);}function _0x5b9d4c(){const _0x15329c=_0x2f8119([0x6c,0x6c,0x63,0x74,0x2d])+_0xda6dec(_0x9d51d4(_0x4928d1)),_0x2ab563=window[_0x2f8119([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f8119([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15329c);return _0x2ab563?window[_0x2f8119([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x221ab3(_0x2ab563),0x10)*_0x396e72:null;}function _0x144913(_0x2076f7){return new window[(_0x2f8119([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52e11a,_0x446eb6)=>{_0x2076f7[_0x2f8119([0x74,0x68,0x65,0x6e])](_0x52e11a,_0x446eb6),window[_0x2f8119([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x446eb6,0x535e58fa^_0xe1b460);});}}_0x391b91[_0x2f8119([0x6f,0x6e])](_0x2f8119([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3d9969,_0x43feef)=>{if(_0x43feef[0x0]!=_0x4928d1)return _0x53afdf(_0x2f8119([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x43feef[0x1]={..._0x43feef[0x1],[_0x2f8119([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x310611};},{[_0x2f8119([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f8119([0x68,0x69,0x67,0x68])}),_0x391b91[_0x2f8119([0x6f,0x6e])](_0x2f8119([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d83c6=>{_0x42f95e(_0x3d83c6[_0x2f8119([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3db2a6=!0x0,_0x510f6d(_0x3d83c6[_0x2f8119([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f8119([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f8119([0x6c,0x6f,0x77])}),_0x1c76b2[_0x2f8119([0x74,0x68,0x65,0x6e])](()=>{_0x3db2a6||_0x53afdf(_0x2f8119([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xed3e11(){return _0x391b91[_0x2f8119([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f8119([0x76,0x69,0x65,0x77])][_0x2f8119([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f8119([0x61,0x75,0x74,0x6f]);}function _0x352bbe(){_0x391b91[_0x2f8119([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f8119([0x76,0x69,0x65,0x77])][_0x2f8119([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f8119([0x61,0x75,0x74,0x6f]);}}function _0x13bf8b(_0x19deaf){const _0x29f76d=[new window[(_0x2f8119([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c9858=>setTimeout(_0x4c9858,0x5356b2f6^_0xe1b460)),_0x1c76b2[_0x2f8119([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f8119([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53e3f4=>{let _0xe8f5b0=0x0;_0x391b91[_0x2f8119([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f8119([0x6f,0x6e])](_0x2f8119([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x59c003,_0x230e86)=>{_0x230e86[0x0][_0x2f8119([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe8f5b0++,_0xe8f5b0==(0x535f89d2^_0xe1b460)&&(_0x53e3f4(),_0x59c003[_0x2f8119([0x6f,0x66,0x66])]());});}))];return window[_0x2f8119([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f8119([0x72,0x61,0x63,0x65])](_0x29f76d)[_0x2f8119([0x74,0x68,0x65,0x6e])](()=>_0x19deaf);}async function _0x292c60(){await _0x1c76b2,_0x391b91[_0x2f8119([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f8119([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2485be,_0x391b91[_0x2f8119([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f8119([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2485be,_0x391b91[_0x2f8119([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f8119([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5cd0d7(_0x5d9436){const _0x55b46c=_0x5a533e();_0x391b91[_0x55b46c]=_0x2f8119([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d9436,_0x5d9436!=_0x2f8119([0x56,0x61,0x6c,0x69,0x64])&&_0x292c60();}function _0x5a533e(){const _0x4ebd48=window[_0x2f8119([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f8119([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f8119([0x6e,0x6f,0x77])]())[_0x2f8119([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f8119([0x2e]),'');let _0x334508=_0x2f8119([0x68]);for(let _0x27a212=0x0;_0x27a212<_0x4ebd48[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27a212+=0x2){let _0xb449ac=window[_0x2f8119([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ebd48[_0x2f8119([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27a212,_0x27a212+0x2));_0xb449ac>=_0x5ef54b[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb449ac-=_0x5ef54b[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x334508+=_0x5ef54b[_0xb449ac];}return _0x334508;}function _0x18c66f(){const _0x41d9fb=_0x408d91[_0x2f8119([0x73,0x70,0x6c,0x69,0x74])](_0x2f8119([0x2e]));if(0x3!=_0x41d9fb[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xe9822b(_0x41d9fb[0x1]);function _0xe9822b(_0x214a1a){const _0x32b703=_0x5b158e(_0x214a1a);return _0x32b703&&_0x4290c4()?_0x32b703:null;function _0x4290c4(){const _0x2b8bf3=_0x32b703[_0x2f8119([0x6a,0x74,0x69])],_0x17ddac=window[_0x2f8119([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b8bf3[_0x2f8119([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b8bf3[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d1b87={..._0x32b703,[_0x2f8119([0x6a,0x74,0x69])]:_0x2b8bf3[_0x2f8119([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b8bf3[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d1b87[_0x2f8119([0x76,0x63])],_0x9d51d4(_0x2d1b87)==_0x17ddac;}}}async function _0x47817e(){let _0x43200f=!0x0;try{const _0x19106d=_0x408d91[_0x2f8119([0x73,0x70,0x6c,0x69,0x74])](_0x2f8119([0x2e])),[_0xa90250,_0x167ef9,_0x5e2de4]=_0x19106d;return _0x260374(_0xa90250),await _0x14a028(_0xa90250,_0x167ef9,_0x5e2de4),_0x43200f;}catch{return!0x1;}function _0x260374(_0x5e6520){const _0x28a6aa=_0x5b158e(_0x5e6520);_0x28a6aa&&_0x28a6aa[_0x2f8119([0x61,0x6c,0x67])]==_0x2f8119([0x45,0x53,0x32,0x35,0x36])||(_0x43200f=!0x1);}async function _0x14a028(_0x204610,_0x4f79b1,_0x3e232c){const _0x5397f3=window[_0x2f8119([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f8119([0x66,0x72,0x6f,0x6d])](_0x2cd892(_0x3e232c),_0x18e22a=>_0x18e22a[_0x2f8119([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x20ca54=new window[(_0x2f8119([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f8119([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x204610+_0x2f8119([0x2e])+_0x4f79b1),_0x2cc056=window[_0x2f8119([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f8119([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2cc056)return;const _0x21be06=await _0x2cc056[_0x2f8119([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f8119([0x6a,0x77,0x6b]),_0x2c6b88,{[_0x2f8119([0x6e,0x61,0x6d,0x65])]:_0x2f8119([0x45,0x43,0x44,0x53,0x41]),[_0x2f8119([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f8119([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f8119([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2cc056[_0x2f8119([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f8119([0x6e,0x61,0x6d,0x65])]:_0x2f8119([0x45,0x43,0x44,0x53,0x41]),[_0x2f8119([0x68,0x61,0x73,0x68])]:{[_0x2f8119([0x6e,0x61,0x6d,0x65])]:_0x2f8119([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x21be06,_0x5397f3,_0x20ca54)||(_0x43200f=!0x1);}}function _0x5b158e(_0x423826){return _0x423826[_0x2f8119([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f8119([0x65,0x79]))?JSON[_0x2f8119([0x70,0x61,0x72,0x73,0x65])](_0x2cd892(_0x423826)):null;}function _0x2cd892(_0x285271){return window[_0x2f8119([0x61,0x74,0x6f,0x62])](_0x285271[_0x2f8119([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f8119([0x2b]))[_0x2f8119([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f8119([0x2f])));}function _0x9d51d4(_0x25ed58){let _0xa2d79a=0x1505;function _0x3fa235(_0x484bf4){for(let _0x452b3d=0x0;_0x452b3d<_0x484bf4[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x452b3d++){const _0x436ea9=_0x484bf4[_0x2f8119([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x452b3d);_0xa2d79a=(_0xa2d79a<<0x5)+_0xa2d79a+_0x436ea9,_0xa2d79a&=_0xa2d79a;}}function _0x7f9997(_0xfc8ec2){Array[_0x2f8119([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xfc8ec2)?_0xfc8ec2[_0x2f8119([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7f9997):_0xfc8ec2&&typeof _0xfc8ec2==_0x2f8119([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f8119([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xfc8ec2)[_0x2f8119([0x73,0x6f,0x72,0x74])]()[_0x2f8119([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x449cae,_0x24bd21])=>{_0x3fa235(_0x449cae),_0x7f9997(_0x24bd21);}):_0x3fa235(window[_0x2f8119([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xfc8ec2));}return _0x7f9997(_0x25ed58),_0xa2d79a>>>0x0;}function _0xda6dec(_0x3d5b08){return _0x3d5b08[_0x2f8119([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f8119([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f8119([0x30]));}function _0x221ab3(_0x4f504f){return _0x4f504f[_0x2f8119([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f8119([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f8119([0x6a,0x6f,0x69,0x6e])]('');}function _0x2485be(){}function _0x2f8119(_0x45706d){const _0x296188=_0x2a06;return _0x45706d[_0x296188(0x181)](_0x9df452=>String[_0x296188(0x157)](_0x9df452))[_0x296188(0x158)]('');}_0x5cd0d7(await _0x3c0fb2());}(this);}[_0x4d6a0d(0x166)](){const _0x2d411c=_0x4d6a0d,_0x7e974=this[_0x2d411c(0x13d)][_0x2d411c(0x15d)][_0x2d411c(0x161)];_0x7e974[_0x2d411c(0x177)](_0x2d411c(0x13a))&&_0x7e974[_0x2d411c(0x153)](_0x2d411c(0x13a),{'allowAttributes':[_0x2d411c(0x18b)]}),_0x7e974[_0x2d411c(0x177)](_0x2d411c(0x145))&&_0x7e974[_0x2d411c(0x153)](_0x2d411c(0x145),{'allowAttributes':[_0x2d411c(0x18b)]});}[_0x4d6a0d(0x142)](){const _0x55836b=_0x4d6a0d,_0x196ceb=this[_0x55836b(0x13d)];_0x196ceb[_0x55836b(0x185)][_0x55836b(0x180)](_0x55836b(0x188))[_0x55836b(0x17c)]({'model':_0x55836b(0x18b),'view':_0x55836b(0x18c)}),_0x196ceb[_0x55836b(0x185)][_0x55836b(0x180)](_0x55836b(0x148))[_0x55836b(0x14d)]({'model':{'key':_0x55836b(0x18b),'value':_0x22a5dd=>_0x22a5dd[_0x55836b(0x159)](_0x55836b(0x18c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x182d26=_0x196ceb[_0x55836b(0x187)][_0x55836b(0x17f)](_0x55836b(0x154));_0x182d26&&this[_0x55836b(0x175)](_0x182d26,_0x55836b(0x17b),(_0x5f238b,[_0x1cf2c4,_0x146c1a])=>{const _0xb5b253=_0x55836b;_0x1cf2c4[_0xb5b253(0x16c)](_0xb5b253(0x18b),_0x146c1a);});}[_0x4d6a0d(0x174)](){const _0x3e72e7=_0x4d6a0d,_0x5c4903=this[_0x3e72e7(0x13d)][_0x3e72e7(0x16b)][_0x3e72e7(0x17f)](_0x3e72e7(0x144))||{},_0x64c8bd=this[_0x3e72e7(0x13d)][_0x3e72e7(0x16b)][_0x3e72e7(0x17f)](_0x3e72e7(0x173))||'';this[_0x3e72e7(0x183)]=_0x3a842a(_0x3ced27[_0x3e72e7(0x171)],_0x3e72e7(0x143),{..._0x5c4903,'pubkey':_0x64c8bd,'ctx-name':_0x3e72e7(0x15a)+this[_0x3e72e7(0x139)],'sourceList':'','imgOnly':_0x3e72e7(0x169),'removeCopyright':_0x3e72e7(0x169),'localeName':this[_0x3e72e7(0x13d)][_0x3e72e7(0x179)][_0x3e72e7(0x189)],'externalSourcesEmbedCss':_0x3e72e7(0x176)}),this[_0x3e72e7(0x183)][_0x3e72e7(0x17a)]=_0x16e680=>{const _0x5bfb86=_0x3e72e7;if(_0x5bfb86(0x150)==_0x16e680)return _0x5bfb86(0x167);},_0x3ced27[_0x3e72e7(0x171)][_0x3e72e7(0x17e)][_0x3e72e7(0x14b)](this[_0x3e72e7(0x183)]);}[_0x4d6a0d(0x14c)](){const _0x212da4=_0x4d6a0d;this[_0x212da4(0x14f)]=_0x3a842a(_0x3ced27[_0x212da4(0x171)],_0x212da4(0x15e),{'ctx-name':_0x212da4(0x15a)+this[_0x212da4(0x139)]}),_0x3ced27[_0x212da4(0x171)][_0x212da4(0x17e)][_0x212da4(0x14b)](this[_0x212da4(0x14f)]);}[_0x4d6a0d(0x155)](){const _0xf4e80f=_0x4d6a0d,_0x48f3a7=this[_0xf4e80f(0x13d)][_0xf4e80f(0x187)][_0xf4e80f(0x17f)](_0xf4e80f(0x165));_0x48f3a7&&this[_0xf4e80f(0x175)](_0x48f3a7,_0xf4e80f(0x18e),()=>{const _0x3c1c0e=_0xf4e80f,_0x2fc1cc=this[_0x3c1c0e(0x13d)][_0x3c1c0e(0x15d)][_0x3c1c0e(0x171)][_0x3c1c0e(0x147)][_0x3c1c0e(0x15c)]();_0x2fc1cc&&_0x2fc1cc[_0x3c1c0e(0x159)](_0x3c1c0e(0x18b))&&this[_0x3c1c0e(0x13d)][_0x3c1c0e(0x141)][_0x3c1c0e(0x13c)][_0x3c1c0e(0x146)](_0x3c1c0e(0x16f),()=>{const _0x5bc694=_0x3c1c0e;_0x503da2(this[_0x5bc694(0x13d)],_0x2fc1cc);});});const _0x2af56e=this[_0xf4e80f(0x13d)][_0xf4e80f(0x187)][_0xf4e80f(0x17f)](_0xf4e80f(0x172));_0x2af56e&&this[_0xf4e80f(0x175)](_0x2af56e,_0xf4e80f(0x18e),()=>{const _0x4e8b95=_0xf4e80f,_0x434000=this[_0x4e8b95(0x13d)][_0x4e8b95(0x15d)][_0x4e8b95(0x171)][_0x4e8b95(0x147)][_0x4e8b95(0x15c)]();_0x434000&&_0x434000[_0x4e8b95(0x159)](_0x4e8b95(0x18b))&&this[_0x4e8b95(0x13d)][_0x4e8b95(0x141)][_0x4e8b95(0x13c)][_0x4e8b95(0x146)](_0x4e8b95(0x16f),()=>{const _0x2137e2=_0x4e8b95;_0x503da2(this[_0x2137e2(0x13d)],_0x434000);});});}}