@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260110.0 → 0.0.0-nightly-20260111.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 _0x174ff2,Command as _0x3ed0fb}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x30f582,IconGooglePhotos as _0x2b1019,IconGoogleDrive as _0x326721,IconFacebook as _0x18bad0,IconDropbox as _0x29e3a4,IconUploadcareLink as _0x4d82d9,IconUploadcareImageUpload as _0x330af9,IconError as _0x4b99ea,IconUploadcareImageEdit as _0x231882}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x317920,MenuBarMenuListItemButtonView as _0x279be1,View as _0x490215,FocusCycler as _0x10595c,Dialog as _0x271a7a,DialogViewPosition as _0x2860bd,SpinnerView as _0x3504ba,IconView as _0x1450ba,Notification as _0x28e4cb}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xeb071f,DomEmitterMixin as _0x39e80d,global as _0x5153d6,getAncestors as _0x59aef6,ObservableMixin as _0x3a593b,uid as _0xaa1dc5,createElement as _0x38904e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3b3b36}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x53f90f,info as _0x192060}from'@uploadcare/upload-client';import*as _0x2e6195 from'@uploadcare/file-uploader';var i=function(_0x4cb5fa){return _0x4cb5fa['Local']='local',_0x4cb5fa['URL']='url',_0x4cb5fa['Dropbox']='dropbox',_0x4cb5fa['GDrive']='gdrive',_0x4cb5fa['Facebook']='facebook',_0x4cb5fa['GPhotos']='gphotos',_0x4cb5fa['OneDrive']='onedrive',_0x4cb5fa;}({});function _(_0x3c7a43,_0x526945,_0x3c661f){const t=_0x3c7a43['t'],_0x2a9f1b=_0x3c7a43['t'];switch(_0x526945){case i['Local']:return{'text':_0x2a9f1b('Insert'===_0x3c661f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2a9f1b('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3c661f?_0x2a9f1b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2a9f1b('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3c661f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3c661f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3c661f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3c661f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3c661f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x526945;}}class e extends _0x174ff2{['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 _0x353b07=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x40168c;for(const _0x209272 in _0x353b07){const _0x181726=_0x209272,_0xb0e11=_0x353b07[_0x181726];if('uploadcareLicenseKeyValid'==_0xb0e11||'uploadcareLicenseKeyInvalid'==_0xb0e11||'uploadcareLicenseKeyExpired'==_0xb0e11||'uploadcareLicenseKeyDomainLimit'==_0xb0e11||'uploadcareLicenseKeyNotAllowed'==_0xb0e11||'uploadcareLicenseKeyEvaluationLimit'==_0xb0e11||'uploadcareLicenseKeyUsageLimit'==_0xb0e11){delete _0x353b07[_0x181726],_0x40168c=_0xb0e11,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x40168c&&_0x353b07['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x40168c&&_0x353b07['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x40168c&&_0x353b07['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x40168c&&_0x353b07['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x40168c&&_0x353b07['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x40168c&&_0x353b07['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x28caa6}=this,_0x202ba=_0x28caa6['commands']['get']('uploadcare');if(!_0x202ba)return;const _0x43bb27=this['_normalizeConfigSourceList'](_0x28caa6['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x204024,_0x383c08)=>{const _0x5c04b9=this['_getIntegrationKey'](_0x383c08['type']);return _0x204024[_0x5c04b9]||(_0x204024[_0x5c04b9]=[]),_0x204024[_0x5c04b9]['push'](_0x383c08),_0x204024;},{});_0x28caa6['plugins']['has']('ImageInsertUI')&&_0x28caa6['commands']['get']('uploadcare')&&Object['entries'](_0x43bb27)['forEach'](([_0xc9d0f2,_0x29e654])=>{_0x28caa6['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xc9d0f2,'observable':()=>_0x202ba,'buttonViewCreator':()=>this['_createToolbarButton'](_0x29e654),'formViewCreator':()=>this['_createDropdownButtons'](_0x29e654),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x29e654),'override':'assetManager'!==_0xc9d0f2});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3ea0ad){const {locale:_0xed8c73}=this['editor'];return _0x3ea0ad['map'](_0x1734e6=>{const _0xdab0f=_(_0xed8c73,_0x1734e6,'Insert');switch(_0x1734e6){case i['Local']:return{'icon':_0x330af9,'type':i['Local'],..._0xdab0f};case i['URL']:return{'icon':_0x4d82d9,'type':i['URL'],..._0xdab0f};case i['Dropbox']:return{'icon':_0x29e3a4,'type':i['Dropbox'],..._0xdab0f};case i['Facebook']:return{'icon':_0x18bad0,'type':i['Facebook'],..._0xdab0f};case i['GDrive']:return{'icon':_0x326721,'type':i['GDrive'],..._0xdab0f};case i['GPhotos']:return{'icon':_0x2b1019,'type':i['GPhotos'],..._0xdab0f};case i['OneDrive']:return{'icon':_0x30f582,'type':i['OneDrive'],..._0xdab0f};}});}['_getIntegrationKey'](_0x27c28c){switch(_0x27c28c){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3845b9,_0x25cbfd){const _0x30111d=this['editor'],_0x655330=new _0x3845b9(_0x30111d['locale']),_0xc481c6=_0x30111d['commands']['get']('uploadcare');return _0x655330['bind']('isEnabled')['to'](_0xc481c6),_0x655330['on']('execute',()=>{_0xc481c6['execute'](_0x25cbfd);}),_0x655330;}['_createToolbarButton'](_0x33f6b8){const {locale:_0x2628cf}=this['editor'],_0x4d7b85=this['editor']['plugins']['get']('ImageInsertUI'),_0x2a95f1=_0x33f6b8[0x0],_0x533785=this['_createButton'](_0x317920,_0x2a95f1['type']);return _0x533785['icon']=_0x2a95f1['icon'],_0x533785['bind']('label')['to'](_0x4d7b85,'isImageSelected',_0x1be1f2=>_(_0x2628cf,_0x2a95f1['type'],_0x1be1f2?'Replace':'Insert')['text']),_0x533785['tooltip']=!0x0,_0x533785;}['_createDropdownButtons'](_0x157d39){const {locale:_0x27201f}=this['editor'],_0x2de8bf=this['editor']['plugins']['get']('ImageInsertUI');return _0x157d39['map'](_0x3a9281=>{const _0x30dbca=this['_createButton'](_0x317920,_0x3a9281['type']);return _0x30dbca['withText']=!0x0,_0x30dbca['icon']=_0x3a9281['icon'],_0x30dbca['bind']('label')['to'](_0x2de8bf,'isImageSelected',_0x205879=>_(_0x27201f,_0x3a9281['type'],_0x205879?'Replace':'Insert')['text']),_0x30dbca;});}['_createMenuBarButtons'](_0x3d771b){return _0x3d771b['map'](_0xb2fa79=>{const _0x2a3c52=this['_createButton'](_0x279be1,_0xb2fa79['type']);return _0x2a3c52['icon']=_0xb2fa79['icon'],_0x2a3c52['label']=_0xb2fa79['shortText'],_0x2a3c52;});}}class F extends _0x490215{['focusTracker'];['focusCycler'];constructor(_0x408a60){super(_0x408a60),this['focusTracker']=new _0xeb071f(),this['focusCycler']=new _0x10595c({'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(_0x3cb88c,_0x2fbb06){super(_0x3cb88c),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-'+_0x2fbb06}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x564a46,_0x2dd7c7){const _0x3749cc=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x20a0e8=>_0x20a0e8<=_0x2dd7c7)['map'](_0x5e171e=>_0x564a46['replace'](/\/$/,'')+'/-/resize/'+_0x5e171e+'x/\x20'+_0x5e171e+'w');return{'imageFallbackUrl':_0x564a46,'imageSources':[{'srcset':_0x3749cc['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2dd7c7+'px)\x20100vw,\x20'+_0x2dd7c7+'px','type':'image/webp'}]};}function S(_0xd09216,_0x5713b0,_0x16544d){const _0x4ab494=_0xd09216['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4ab494?parseInt(_0x4ab494[0x1],0xa):_0x5713b0,'height':_0x4ab494?parseInt(_0x4ab494[0x2],0xa):_0x16544d};}function p(_0x2d4d6d,_0x43ab9d){const _0x10182e=new(_0x39e80d())(),_0x1cda7f=_0x2d4d6d['plugins']['get']('ImageUtils'),_0x28f54a=_0x2d4d6d['editing']['mapper']['toViewElement'](_0x43ab9d),_0x1c1301=_0x1cda7f['findViewImgElement'](_0x28f54a),_0x5268fe=_0x2d4d6d['editing']['view']['domConverter']['viewToDom'](_0x1c1301),_0x23884c=_0x43ab9d['getAttribute']('width'),_0x3738cb=_0x43ab9d['getAttribute']('height'),_0x34c02c='image-processing';_0x2d4d6d['editing']['view']['change'](_0x1a8721=>{_0x1a8721['addClass'](_0x34c02c,_0x28f54a),_0x1a8721['setStyle']('aspect-ratio',_0x23884c+'/'+_0x3738cb,_0x1c1301);}),_0x10182e['listenTo'](_0x5268fe,'load',()=>{_0x10182e['stopListening'](_0x5268fe,'load'),_0x2d4d6d['editing']['view']['change'](_0x447edc=>{_0x447edc['removeClass'](_0x34c02c,_0x28f54a),_0x447edc['removeStyle']('aspect-ratio',_0x1c1301);});});}function G(_0x5bbfdb){if(Array['isArray'](_0x5bbfdb)){const _0x449dd3=_0x5bbfdb['map'](G);return _0x592fc7=>_0x449dd3['some'](_0x149087=>_0x149087(_0x592fc7));}if('origin'==_0x5bbfdb){const _0x313840=_0x5153d6['window']['location']['origin'];return _0x4c87dd=>new URL(_0x4c87dd,_0x5153d6['document']['baseURI'])['origin']==_0x313840;}return'function'==typeof _0x5bbfdb?_0x5bbfdb:_0x5bbfdb instanceof RegExp?_0x3a0fb5=>!(!_0x3a0fb5['match'](_0x5bbfdb)&&!_0x3a0fb5['replace'](/^https?:\/\//,'')['match'](_0x5bbfdb)):()=>!0x1;}function A(_0x55c8ad,_0x15076b){return _0x59aef6(_0x55c8ad['target'])['includes'](_0x15076b);}class n extends/* #__PURE__ -- @preserve */
24
- _0x3a593b(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x365ff1,_0x2a8e17,_0x4bb082){super(),this['_editor']=_0x365ff1,this['_editing']=_0x2a8e17,this['_dialog']=_0x365ff1['plugins']['get'](_0x271a7a),this['_api']=_0x2a8e17['ctxElement']['getAPI'](),this['_type']=_0x4bb082,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:_0x2e24fb,model:_0x33a0ac}=this['_editor'],_0x1ca5a9=_0x33a0ac['document']['selection']['getSelectedElement'](),_0x17bef7=_0x1ca5a9&&(_0x1ca5a9['is']('element','imageBlock')||_0x1ca5a9['is']('element','imageInline'));this['_formView']=new x(_0x2e24fb,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x330af9,'title':_(_0x2e24fb,this['_type'],_0x17bef7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2860bd['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x284514=>!A(_0x284514,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x10db58}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x56e7b5=>{const _0x4cfa02=_0x10db58['length'];for(const _0x5750c4 of _0x10db58){const _0x3ce547=_0x5750c4===_0x10db58[_0x4cfa02-0x1],{cdnUrl:_0xfb33a4,fileInfo:_0x217b9e}=_0x5750c4;if(!_0xfb33a4||!_0x217b9e)continue;const {width:_0x40048b,height:_0x454317}=_0x217b9e['imageInfo'],_0x19fda2=S(_0xfb33a4,_0x40048b,_0x454317),_0x98fc37=C(_0xfb33a4,_0x19fda2['width']),_0x57cb45={'id':_0x217b9e['uuid'],'type':'image','attributes':{'imageDimension':_0x19fda2,..._0x98fc37}};this['_insertAsset'](_0x57cb45,_0x3ce547,_0x56e7b5);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x20966f=>{'idle'===_0x20966f['detail']['status']&&!_0x20966f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x44bf65,_0x2702a6,_0x44d865){const _0x35c8c9=this['_editor']['model']['document']['selection'],_0x23e61e=_0x35c8c9['getSelectedElement'](),_0x5628b3=!(!_0x23e61e||!_0x23e61e['is']('element','imageInline'));_0x44d865['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x44bf65,_0x5628b3),_0x2702a6||_0x44d865['setSelection'](_0x35c8c9['getLastPosition']());}['_insertImage'](_0x7ac5d3,_0xd9a511){const _0x2b1e11=this['_editor'],{imageDimension:_0x94c16c,imageFallbackUrl:_0x512f7b,imageSources:_0xb3f126}=_0x7ac5d3['attributes'];_0x2b1e11['execute']('insertImage',{'imageType':_0xd9a511?'imageInline':null,'source':{'uploadcareImageId':_0x7ac5d3['id'],'src':_0x512f7b,'sources':_0xb3f126,..._0x94c16c}});}}class w extends _0x3ed0fb{['_editing'];['_controller']=null;static get['requires'](){return[_0x271a7a,o];}constructor(_0x40112d){super(_0x40112d),this['_editing']=_0x40112d['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x114b52){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x114b52);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x52734a,..._0x5868bf}){return _0x53f90f(_0x52734a,_0x5868bf);}static['getInfo'](_0x1fa460,_0x3bbbde){return _0x192060(_0x1fa460,_0x3bbbde);}}class f extends _0x174ff2{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3b3b36,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x535c7d=this['editor'];if(!!!_0x535c7d['config']['get']('uploadcare'))return;_0x535c7d['plugins']['get'](_0x3b3b36)['createUploadAdapter']=_0x3b049e=>new k(_0x3b049e,_0x535c7d),_0x535c7d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1d86a5,{imageElement:_0x3d7fad,data:_0x49bc58})=>{_0x535c7d['model']['change'](_0x5a7be4=>{_0x5a7be4['setAttribute']('uploadcareImageId',_0x49bc58['uploadcareImageId'],_0x3d7fad);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x35a83,_0xff4235){this['loader']=_0x35a83,this['editor']=_0xff4235,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x25d2f7=await this['loader']['file'];return j['upload']({'file':_0x25d2f7,'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':_0x38827d=>{_0x38827d&&_0x38827d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x38827d['value']);}})['then'](async _0x951341=>{const {imageFallbackUrl:_0x41feae,imageSources:_0x2d624f}=C(_0x951341['cdnUrl'],_0x951341['imageInfo']['width']);return{'uploadcareImageId':_0x951341['uuid'],'default':_0x41feae,'sources':_0x2d624f};})['catch'](()=>{const _0x496af8=t('Cannot\x20upload\x20file:')+('\x20'+_0x25d2f7['name']+'.');return Promise['reject'](_0x496af8);});}['abort'](){this['controller']['abort']();}}class o extends _0x174ff2{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x271a7a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x329bfd){super(_0x329bfd),this['ucContextId']=_0xaa1dc5();}['init'](){const _0x5637cf=this['editor'];_0x5637cf['commands']['add']('uploadcare',new w(_0x5637cf));}['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 _0x1fa6ae=_0x5153d6['document']['querySelector']('input[uploadcare-file-input]');_0x1fa6ae&&_0x1fa6ae['remove']();}),async function(_0x38f9ec){const _0x15e85e=_0x35d83a([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]),_0x34ea6a=0x535f8c3a,_0x302c4f=0x5358f252^_0x34ea6a,_0x588a40=window[_0x35d83a([0x44,0x61,0x74,0x65])][_0x35d83a([0x6e,0x6f,0x77])](),_0x604a00=_0x38f9ec[_0x35d83a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x565538=new window[(_0x35d83a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3774b9=>{_0x604a00[_0x35d83a([0x6f,0x6e,0x63,0x65])](_0x35d83a([0x72,0x65,0x61,0x64,0x79]),_0x3774b9);}),_0x27cfd3={[_0x35d83a([0x6b,0x74,0x79])]:_0x35d83a([0x45,0x43]),[_0x35d83a([0x75,0x73,0x65])]:_0x35d83a([0x73,0x69,0x67]),[_0x35d83a([0x63,0x72,0x76])]:_0x35d83a([0x50,0x2d,0x32,0x35,0x36]),[_0x35d83a([0x78])]:_0x35d83a([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]),[_0x35d83a([0x79])]:_0x35d83a([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]),[_0x35d83a([0x61,0x6c,0x67])]:_0x35d83a([0x45,0x53,0x32,0x35,0x36])},_0xf0df1=_0x604a00[_0x35d83a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x35d83a([0x67,0x65,0x74])](_0x35d83a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x599adb(){let _0x4003ab,_0x2a6066=null,_0xdd07ab=null;try{if(_0xf0df1==_0x35d83a([0x47,0x50,0x4c]))return _0x35d83a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4003ab=_0x1de68f(),!_0x4003ab)return _0x35d83a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4003ab[_0x35d83a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xdd07ab=_0x39b64b(_0x4003ab[_0x35d83a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4003ab[_0x35d83a([0x6a,0x74,0x69])])),await _0x1b2cf7()?_0x6b3fa0()?_0x481932()?_0x35d83a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x562934()?(_0x4003ab[_0x35d83a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x35d83a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2a6066=_0x1c3614(_0x35d83a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x56b5d0()):_0x35d83a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x35d83a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x35d83a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x35d83a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x481932(){const _0x2e6be9=[_0x35d83a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x35d83a([0x74,0x72,0x69,0x61,0x6c])][_0x35d83a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4003ab[_0x35d83a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x588a40/0x3e8:0xe10*_0x302c4f;return _0x4003ab[_0x35d83a([0x65,0x78,0x70])]<_0x2e6be9;}function _0x6b3fa0(){const _0x2696d8=_0x4003ab[_0x35d83a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2696d8&&(!!_0x2696d8[_0x35d83a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35d83a([0x2a]))||!!_0x2696d8[_0x35d83a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35d83a([0x55,0x50,0x4c,0x43])));}function _0x562934(){const _0x2400b2=_0x4003ab[_0x35d83a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2400b2||0x0==_0x2400b2[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5179b3}=new URL(window[_0x35d83a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2400b2[_0x35d83a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5179b3))return!0x0;const _0x34f355=_0x5179b3[_0x35d83a([0x73,0x70,0x6c,0x69,0x74])](_0x35d83a([0x2e]));return _0x2400b2[_0x35d83a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54136b=>_0x54136b[_0x35d83a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35d83a([0x2a])))[_0x35d83a([0x6d,0x61,0x70])](_0x27c45a=>_0x27c45a[_0x35d83a([0x73,0x70,0x6c,0x69,0x74])](_0x35d83a([0x2e])))[_0x35d83a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b3e5a=>_0x1b3e5a[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x34f355[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x35d83a([0x6d,0x61,0x70])](_0x44a92d=>Array(_0x34f355[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x44a92d[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x35d83a([0x66,0x69,0x6c,0x6c])](_0x44a92d[0x0]===_0x35d83a([0x2a])?_0x35d83a([0x2a]):'')[_0x35d83a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x44a92d))[_0x35d83a([0x73,0x6f,0x6d,0x65])](_0x4f657e=>_0x34f355[_0x35d83a([0x65,0x76,0x65,0x72,0x79])]((_0x264b58,_0x12c84e)=>_0x4f657e[_0x12c84e]===_0x264b58||_0x4f657e[_0x12c84e]===_0x35d83a([0x2a])));}function _0x56b5d0(){return _0x2a6066&&_0xdd07ab?new window[(_0x35d83a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x512be2,_0x457c93)=>{_0x2a6066[_0x35d83a([0x74,0x68,0x65,0x6e])](_0x512be2,_0x457c93),_0xdd07ab[_0x35d83a([0x74,0x68,0x65,0x6e])](_0x6e7e94=>{_0x6e7e94!=_0x35d83a([0x56,0x61,0x6c,0x69,0x64])&&_0x512be2(_0x6e7e94);},_0x457c93);}):_0x2a6066||_0xdd07ab||_0x35d83a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x39b64b(_0x5a4132,_0x3ee14e){return new window[(_0x35d83a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4af639=>{if(_0x296e07())return _0x4af639(_0x35d83a([0x56,0x61,0x6c,0x69,0x64]));_0x23d124(),_0x604a00[_0x35d83a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x35d83a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5a0a77=!0x1;const _0x3e13af=_0xaa1dc5();function _0x5d54d5(_0x1d1618){return!!_0x1d1618&&(typeof _0x1d1618===_0x35d83a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d1618===_0x35d83a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d1618[_0x35d83a([0x74,0x68,0x65,0x6e])]===_0x35d83a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d1618[_0x35d83a([0x63,0x61,0x74,0x63,0x68])]===_0x35d83a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x235a3c(_0x3a1857){_0x38885d(_0x3a1857)[_0x35d83a([0x74,0x68,0x65,0x6e])](_0x567763=>{if(!_0x567763||_0x567763[_0x35d83a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x35d83a([0x6f,0x6b]))return _0x35d83a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2ff916(_0x3c614e(_0x3e13af+_0x3ee14e))!=_0x567763[_0x35d83a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x35d83a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x35d83a([0x56,0x61,0x6c,0x69,0x64]);})[_0x35d83a([0x74,0x68,0x65,0x6e])](_0x35a6a2=>(_0x2b50d9(),_0x35a6a2),()=>{const _0x244e8d=_0x33b256();return null==_0x244e8d?(_0x2b50d9(),_0x35d83a([0x56,0x61,0x6c,0x69,0x64])):_0x35d83a(_0x588a40-_0x244e8d>(0x7753083a^_0x34ea6a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x35d83a([0x74,0x68,0x65,0x6e])](_0x4af639)[_0x35d83a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4af639(_0x35d83a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x428478=0x536962ba^_0x34ea6a;function _0x2b50d9(){const _0x5d3d85=_0x35d83a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ff916(_0x3c614e(_0x5a4132)),_0x4fc7a3=_0x39a27c(_0x2ff916(window[_0x35d83a([0x4d,0x61,0x74,0x68])][_0x35d83a([0x63,0x65,0x69,0x6c])](_0x588a40/_0x428478)));window[_0x35d83a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35d83a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d3d85,_0x4fc7a3);}function _0x33b256(){const _0x4e0470=_0x35d83a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ff916(_0x3c614e(_0x5a4132)),_0x223a86=window[_0x35d83a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35d83a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e0470);return _0x223a86?window[_0x35d83a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39a27c(_0x223a86),0x10)*_0x428478:null;}function _0x38885d(_0x297dec){return new window[(_0x35d83a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d20e3,_0x2d7e0a)=>{_0x297dec[_0x35d83a([0x74,0x68,0x65,0x6e])](_0x3d20e3,_0x2d7e0a),window[_0x35d83a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d7e0a,0x535e58fa^_0x34ea6a);});}}_0x604a00[_0x35d83a([0x6f,0x6e])](_0x35d83a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x352f10,_0x590f72)=>{if(_0x590f72[0x0]!=_0x5a4132)return _0x4af639(_0x35d83a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x590f72[0x1]={..._0x590f72[0x1],[_0x35d83a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e13af};},{[_0x35d83a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35d83a([0x68,0x69,0x67,0x68])}),_0x604a00[_0x35d83a([0x6f,0x6e])](_0x35d83a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1608bb=>{_0x5d54d5(_0x1608bb[_0x35d83a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5a0a77=!0x0,_0x235a3c(_0x1608bb[_0x35d83a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x35d83a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35d83a([0x6c,0x6f,0x77])}),_0x565538[_0x35d83a([0x74,0x68,0x65,0x6e])](()=>{_0x5a0a77||_0x4af639(_0x35d83a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x296e07(){return _0x604a00[_0x35d83a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35d83a([0x76,0x69,0x65,0x77])][_0x35d83a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x35d83a([0x61,0x75,0x74,0x6f]);}function _0x23d124(){_0x604a00[_0x35d83a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35d83a([0x76,0x69,0x65,0x77])][_0x35d83a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x35d83a([0x61,0x75,0x74,0x6f]);}}function _0x1c3614(_0x43d7b4){const _0x45ebcb=[new window[(_0x35d83a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29fbb0=>setTimeout(_0x29fbb0,0x5356b2f6^_0x34ea6a)),_0x565538[_0x35d83a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x35d83a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32d54f=>{let _0x354123=0x0;_0x604a00[_0x35d83a([0x6d,0x6f,0x64,0x65,0x6c])][_0x35d83a([0x6f,0x6e])](_0x35d83a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3d775,_0x5569bd)=>{_0x5569bd[0x0][_0x35d83a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x354123++,_0x354123==(0x535f89d2^_0x34ea6a)&&(_0x32d54f(),_0x3d775[_0x35d83a([0x6f,0x66,0x66])]());});}))];return window[_0x35d83a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x35d83a([0x72,0x61,0x63,0x65])](_0x45ebcb)[_0x35d83a([0x74,0x68,0x65,0x6e])](()=>_0x43d7b4);}async function _0x3e737a(){await _0x565538,_0x604a00[_0x35d83a([0x6d,0x6f,0x64,0x65,0x6c])][_0x35d83a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x18fc86,_0x604a00[_0x35d83a([0x6d,0x6f,0x64,0x65,0x6c])][_0x35d83a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x18fc86,_0x604a00[_0x35d83a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x35d83a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e0af5(_0x2c0a76){const _0x1fb937=_0x2a5dc6();_0x604a00[_0x1fb937]=_0x35d83a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2c0a76,_0x2c0a76!=_0x35d83a([0x56,0x61,0x6c,0x69,0x64])&&_0x3e737a();}function _0x2a5dc6(){const _0x1e46c5=window[_0x35d83a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x35d83a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x35d83a([0x6e,0x6f,0x77])]())[_0x35d83a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x35d83a([0x2e]),'');let _0x4f4fce=_0x35d83a([0x68]);for(let _0x25a421=0x0;_0x25a421<_0x1e46c5[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25a421+=0x2){let _0x3a21c0=window[_0x35d83a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e46c5[_0x35d83a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25a421,_0x25a421+0x2));_0x3a21c0>=_0x15e85e[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3a21c0-=_0x15e85e[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f4fce+=_0x15e85e[_0x3a21c0];}return _0x4f4fce;}function _0x1de68f(){const _0x4eea5e=_0xf0df1[_0x35d83a([0x73,0x70,0x6c,0x69,0x74])](_0x35d83a([0x2e]));if(0x3!=_0x4eea5e[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3bc758(_0x4eea5e[0x1]);function _0x3bc758(_0x403b22){const _0x1f6b15=_0x56bdf1(_0x403b22);return _0x1f6b15&&_0x338a30()?_0x1f6b15:null;function _0x338a30(){const _0x7bbd03=_0x1f6b15[_0x35d83a([0x6a,0x74,0x69])],_0x382133=window[_0x35d83a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7bbd03[_0x35d83a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7bbd03[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d3651={..._0x1f6b15,[_0x35d83a([0x6a,0x74,0x69])]:_0x7bbd03[_0x35d83a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x7bbd03[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d3651[_0x35d83a([0x76,0x63])],_0x3c614e(_0x4d3651)==_0x382133;}}}async function _0x1b2cf7(){let _0x1de938=!0x0;try{const _0x1e9c6f=_0xf0df1[_0x35d83a([0x73,0x70,0x6c,0x69,0x74])](_0x35d83a([0x2e])),[_0x5d94e0,_0x350bb3,_0x5d7213]=_0x1e9c6f;return _0x4e9c05(_0x5d94e0),await _0x32cbb0(_0x5d94e0,_0x350bb3,_0x5d7213),_0x1de938;}catch{return!0x1;}function _0x4e9c05(_0x5e4747){const _0x2230c8=_0x56bdf1(_0x5e4747);_0x2230c8&&_0x2230c8[_0x35d83a([0x61,0x6c,0x67])]==_0x35d83a([0x45,0x53,0x32,0x35,0x36])||(_0x1de938=!0x1);}async function _0x32cbb0(_0x9febd2,_0x21b260,_0x3c57bf){const _0x578ea1=window[_0x35d83a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x35d83a([0x66,0x72,0x6f,0x6d])](_0x59f30b(_0x3c57bf),_0x1f5382=>_0x1f5382[_0x35d83a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xb3d6f8=new window[(_0x35d83a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x35d83a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x9febd2+_0x35d83a([0x2e])+_0x21b260),_0x1ac74a=window[_0x35d83a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x35d83a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ac74a)return;const _0x5a09e1=await _0x1ac74a[_0x35d83a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x35d83a([0x6a,0x77,0x6b]),_0x27cfd3,{[_0x35d83a([0x6e,0x61,0x6d,0x65])]:_0x35d83a([0x45,0x43,0x44,0x53,0x41]),[_0x35d83a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x35d83a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x35d83a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ac74a[_0x35d83a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x35d83a([0x6e,0x61,0x6d,0x65])]:_0x35d83a([0x45,0x43,0x44,0x53,0x41]),[_0x35d83a([0x68,0x61,0x73,0x68])]:{[_0x35d83a([0x6e,0x61,0x6d,0x65])]:_0x35d83a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5a09e1,_0x578ea1,_0xb3d6f8)||(_0x1de938=!0x1);}}function _0x56bdf1(_0xbac85a){return _0xbac85a[_0x35d83a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x35d83a([0x65,0x79]))?JSON[_0x35d83a([0x70,0x61,0x72,0x73,0x65])](_0x59f30b(_0xbac85a)):null;}function _0x59f30b(_0xd2f803){return window[_0x35d83a([0x61,0x74,0x6f,0x62])](_0xd2f803[_0x35d83a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x35d83a([0x2b]))[_0x35d83a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x35d83a([0x2f])));}function _0x3c614e(_0x1f9111){let _0x2bb44b=0x1505;function _0xc42fa2(_0x5aeb81){for(let _0x478645=0x0;_0x478645<_0x5aeb81[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x478645++){const _0x4f62a0=_0x5aeb81[_0x35d83a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x478645);_0x2bb44b=(_0x2bb44b<<0x5)+_0x2bb44b+_0x4f62a0,_0x2bb44b&=_0x2bb44b;}}function _0x57d0d9(_0x3de2ea){Array[_0x35d83a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3de2ea)?_0x3de2ea[_0x35d83a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x57d0d9):_0x3de2ea&&typeof _0x3de2ea==_0x35d83a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x35d83a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3de2ea)[_0x35d83a([0x73,0x6f,0x72,0x74])]()[_0x35d83a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c5665,_0xfaea80])=>{_0xc42fa2(_0x3c5665),_0x57d0d9(_0xfaea80);}):_0xc42fa2(window[_0x35d83a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3de2ea));}return _0x57d0d9(_0x1f9111),_0x2bb44b>>>0x0;}function _0x2ff916(_0x213234){return _0x213234[_0x35d83a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x35d83a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x35d83a([0x30]));}function _0x39a27c(_0x59eb2f){return _0x59eb2f[_0x35d83a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x35d83a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x35d83a([0x6a,0x6f,0x69,0x6e])]('');}function _0x18fc86(){}function _0x35d83a(_0x16934d){return _0x16934d['map'](_0x226571=>String['fromCharCode'](_0x226571))['join']('');}_0x4e0af5(await _0x599adb());}(this);}['_initSchema'](){const _0xc75799=this['editor']['model']['schema'];_0xc75799['isRegistered']('imageBlock')&&_0xc75799['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xc75799['isRegistered']('imageInline')&&_0xc75799['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2e8b24=this['editor'];_0x2e8b24['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2e8b24['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x50372a=>_0x50372a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5f5cd5=_0x2e8b24['commands']['get']('replaceImageSource');_0x5f5cd5&&this['listenTo'](_0x5f5cd5,'cleanupImage',(_0x41067a,[_0xdbf325,_0x43018f])=>{_0xdbf325['removeAttribute']('uploadcareImageId',_0x43018f);});}['_initConfig'](){const _0x33f60b=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1ae35d=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x38904e(_0x5153d6['document'],'uc-config',{..._0x33f60b,'pubkey':_0x1ae35d,'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']=_0x110cdc=>{if('closeMax'==_0x110cdc)return'#uc-icon-arrow-down';},_0x5153d6['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x38904e(_0x5153d6['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5153d6['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2c026c=this['editor']['commands']['get']('insertImage');_0x2c026c&&this['listenTo'](_0x2c026c,'execute',()=>{const _0x1d173f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1d173f&&_0x1d173f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1d173f);});});const _0x27312b=this['editor']['commands']['get']('uploadcareImageReplace');_0x27312b&&this['listenTo'](_0x27312b,'execute',()=>{const _0x485243=this['editor']['model']['document']['selection']['getSelectedElement']();_0x485243&&_0x485243['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x485243);});});}}class tt extends _0x174ff2{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b2f72){super(_0x1b2f72),_0x1b2f72['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2e6195['defineComponents'](_0x2e6195),this['_defineLocale']();}['_defineLocale'](){const _0x5159ff=this['editor']['config']['get']('uploadcare.locale'),_0x5ac249=this['editor']['locale']['contentLanguage'];_0x5159ff&&_0x2e6195['defineLocale'](_0x5ac249,_0x5159ff);}}class ii extends _0x490215{constructor(_0x4b5203){super(_0x4b5203);const t=_0x4b5203['t'],_0x574350=this['bindTemplate'],_0x596287=new _0x3504ba();_0x596287['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':[_0x596287,{'text':_0x574350['to']('imageUploadProgress',_0x1d8182=>t('Loading\x20image...')+'\x20('+(_0x1d8182||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 _0x490215{constructor(_0x4a129c){super(_0x4a129c);const t=_0x4a129c['t'];this['set']('errorType',null);const _0x51bbac=new _0x317920(_0x4a129c);_0x51bbac['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x51bbac['withText']=!0x0,_0x51bbac['class']='ck-button-action',_0x51bbac['on']('execute',()=>{this['fire']('retry');}),_0x51bbac['bind']('isVisible')['to'](this,'errorType',_0x2be274=>'NotFound'!==_0x2be274);const _0xf905b1=new _0x1450ba();_0xf905b1['content']=_0x4b99ea,_0xf905b1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x57e91b=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':[_0xf905b1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x57e91b['to']('errorType',_0x37dfbb=>t('NotFound'!==_0x37dfbb?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x51bbac]},{'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 _0x490215{constructor(_0x120ce8,_0x164369){super(_0x120ce8);const _0x2dc0d8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x164369,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2dc0d8['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xc46d04,_0x477228,_0x5cc32f){super(_0xc46d04),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xc46d04),this['_errorView']=new ti(_0xc46d04),this['_editingView']=new ei(_0xc46d04,_0x5cc32f),this['_focusableView']=new _0x490215(_0xc46d04),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x477228),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'],_0x384493=>{this['_addUploadcareImageEditorListeners'](_0x384493);});}),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'](_0x1a65ab,_0x2316b0){const _0x244270='uc-cloud-image-editor',_0x1cc12c=_0x1a65ab['querySelector'](_0x244270);if(_0x1cc12c)return _0x2316b0(_0x1cc12c);const _0x13622a=new MutationObserver(_0x441787=>{const _0x5314b9=_0x441787['filter'](_0x37911b=>_0x37911b['target']===_0x1a65ab&&_0x37911b['addedNodes']['length']>0x0&&_0x37911b['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x244270);_0x5314b9['length']&&(_0x13622a['disconnect'](),_0x2316b0(_0x5314b9[0x0]['addedNodes'][0x0]));});_0x13622a['observe'](_0x1a65ab,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x406a17){_0x406a17['addEventListener']('apply',_0x1733d4=>{this['fire']('apply',{'imageSrc':_0x1733d4['detail']['cdnUrl']});}),_0x406a17['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x3a593b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x34a247,_0x2fe250,_0x386aa9){super(),this['_editor']=_0x34a247,this['_dialog']=_0x2fe250,this['_imageElement']=_0x386aa9,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 _0x547cd1=this['_imageElement'],_0x50aa35=_0x547cd1['getAttribute']('uploadcareImageId'),_0x2f8ee6=_0x547cd1['getAttribute']('src');if(_0x50aa35)await this['_loadImageInfo'](_0x50aa35,_0x2f8ee6);else{if(this['_imageCache']['has'](_0x2f8ee6)){const _0x841746=this['_imageCache']['get'](_0x2f8ee6);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x841746['url'],this['imageDimension']=_0x841746['dimension'],this['imageId']=_0x841746['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xfd4605}=this['_editor'],t=_0xfd4605['t'],_0x4409ac=new X(_0xfd4605,this['imageStatus'],this['_attributes']);_0x4409ac['bind']('status')['to'](this,'imageStatus'),_0x4409ac['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4409ac['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4409ac['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4409ac,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x231882,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4409ac,'position':_0x2860bd['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4409ac['focus']();},'onHide':()=>{_0x4409ac['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xdb9154=>!A(_0xdb9154,_0x4409ac['element'])}});}['_loadImageInfo'](_0x356ef5,_0x31b640){return j['getInfo'](_0x356ef5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x424371=>{const {width:_0x48eb95,height:_0x5357ce}=_0x424371['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x31b640,this['imageDimension']={'width':_0x48eb95,'height':_0x5357ce},this['imageId']=_0x356ef5;})['catch'](_0x1b9ac9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1b9ac9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2d3e05,_0x2e03ae){return this['_getImageAsFile'](_0x2d3e05)['then'](_0x4e6ccb=>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':_0x2e03ae['signal'],'file':_0x4e6ccb,'onProgress':_0x343d01=>{_0x343d01&&_0x343d01['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x343d01['value']));}}))['then'](_0x58d23f=>{const {width:_0xbde3ae,height:_0x20c9c3}=_0x58d23f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x58d23f['cdnUrl'],this['imageDimension']={'width':_0xbde3ae,'height':_0x20c9c3},this['imageId']=_0x58d23f['uuid'],this['imageUploadProgress']=null;const _0x282fe5=_0x2d3e05['getAttribute']('src');this['_imageCache']['set'](_0x282fe5,{'id':_0x58d23f['uuid'],'url':_0x58d23f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x460c65=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x460c65['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x41d2a8,_0x813203){_0x41d2a8['on']('apply',(_0x3729fd,_0x3362ae)=>{this['_replaceImage'](_0x813203,_0x3362ae['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x41d2a8['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x41d2a8['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2fd5fb,_0x226365,_0x558b34){const _0x243263=this['_editor'],{width:_0x25e588,height:_0x584603}=S(_0x226365,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3fddce,imageSources:_0x38cfdd}=C(_0x226365,_0x25e588);_0x243263['model']['change'](_0x22bfa9=>{if('$graveyard'===_0x2fd5fb['root']['rootName']){_0x243263['execute']('insertImage',{'imageType':_0x2fd5fb['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2fd5fb['getAttributes']()),'uploadcareImageId':_0x558b34,'src':_0x3fddce,'sources':_0x38cfdd,'width':_0x25e588,'height':_0x584603}});const _0x19469d=_0x2fd5fb['getChildren']();_0x2fd5fb=_0x243263['model']['document']['selection']['getSelectedElement']();for(const _0x12421c of _0x19469d)_0x22bfa9['append'](_0x22bfa9['cloneElement'](_0x12421c),_0x2fd5fb);}else _0x22bfa9['setSelection'](_0x2fd5fb,'on'),_0x243263['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2fd5fb['getAttributes']()),'uploadcareImageId':_0x558b34,'src':_0x3fddce,'sources':_0x38cfdd,'width':_0x25e588,'height':_0x584603},_0x2fd5fb);_0x22bfa9['setSelection'](_0x2fd5fb,'on');});}async['_getImageAsFile'](_0x16485d){const _0x2c19d2=_0x5153d6['window'],_0x3442a9=_0x5153d6['document']['location']['href'],_0xe69982=new _0x2c19d2['URL'](_0x16485d['getAttribute']('src'),_0x3442a9);if('data:'===_0xe69982['protocol']){const _0x779977=_0xe69982['href']['split'](','),_0x37271b=_0x779977[0x0]['match'](/:(.*?);/)[0x1],_0x4d73a6=_0x37271b['split']('/')[0x1],_0x19c153=_0x2c19d2['atob'](_0x779977[_0x779977['length']-0x1]);let _0x28bad5=_0x19c153['length'];const _0x5d7aa5=new _0x2c19d2['Uint8Array'](_0x28bad5);for(;_0x28bad5--;)_0x5d7aa5[_0x28bad5]=_0x19c153['charCodeAt'](_0x28bad5);return new _0x2c19d2['File']([_0x5d7aa5],'image.'+_0x4d73a6,{'type':_0x37271b});}const _0x29e1fd=_0xe69982['href']['split']('/'),_0x5a1eab=_0x29e1fd[_0x29e1fd['length']-0x1],_0x349e65=_0x5a1eab['split']('.')[0x1];return _0x2c19d2['fetch'](_0xe69982['href'])['then'](_0x368377=>_0x368377['clone']()['blob']())['then'](_0x534ad1=>new _0x2c19d2['File']([_0x534ad1],_0x5a1eab,{'type':'image/'+_0x349e65}));}}class O extends _0x3ed0fb{['imageEditController'];static get['requires'](){return[_0x271a7a];}['_isEditable'];constructor(_0x888109){super(_0x888109),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x473497){const _0x2815be=G(_0x473497);return _0x14e644=>!(!_0x14e644||!_0x14e644['is']('element','imageBlock')&&!_0x14e644['is']('element','imageInline'))&&(!!_0x14e644['hasAttribute']('uploadcareImageId')||!!_0x14e644['hasAttribute']('src')&&_0x2815be(_0x14e644['getAttribute']('src')));}(_0x888109['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x107a4d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x107a4d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x51c5b0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x51c5b0&&(_0x51c5b0['is']('element','imageBlock')||_0x51c5b0['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x271a7a),_0x51c5b0),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x3ed0fb{['refresh'](){const _0x1778f7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1778f7&&(_0x1778f7['is']('element','imageBlock')||_0x1778f7['is']('element','imageInline')));}['execute'](_0x32bcf2){const _0x4e756e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x247b74=>{_0x247b74['setAttributes'](_0x32bcf2,_0x4e756e),_0x247b74['removeAttribute']('srcset',_0x4e756e),_0x247b74['removeAttribute']('sizes',_0x4e756e);});}}class m extends _0x174ff2{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x28e4cb,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3878d7}=this;_0x3878d7['commands']['add']('uploadcareImageEdit',new O(_0x3878d7)),_0x3878d7['commands']['add']('uploadcareImageReplace',new R(_0x3878d7));}}class g extends _0x174ff2{['_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 _0x4cc23d=this['editor'];_0x4cc23d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4b8aa0=>{const _0x3f5cb6=_0x4cc23d['commands']['get']('uploadcareImageEdit'),_0x54336a=new _0x317920(_0x4b8aa0),t=_0x4b8aa0['t'];return _0x54336a['set']({'icon':_0x231882,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x54336a['bind']('isEnabled')['to'](_0x3f5cb6),_0x54336a['bind']('isOn')['to'](_0x3f5cb6,'isActive'),this['listenTo'](_0x54336a,'execute',()=>{_0x4cc23d['execute']('uploadcareImageEdit'),_0x4cc23d['editing']['view']['focus']();}),_0x54336a;}),this['_initConfig']();}['_initConfig'](){const _0x2e4ec3=_0x38904e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2e4ec3),this['listenTo'](this['editor'],'destroy',()=>{_0x2e4ec3['remove']();});}}class et extends _0x174ff2{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 _0x53e594,Command as _0x3d5f59}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3bf33f,IconGooglePhotos as _0x46bdee,IconGoogleDrive as _0x4e9925,IconFacebook as _0x24b028,IconDropbox as _0x248759,IconUploadcareLink as _0x114006,IconUploadcareImageUpload as _0x5b8cfa,IconError as _0x5440f8,IconUploadcareImageEdit as _0x39c048}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x28b5fa,MenuBarMenuListItemButtonView as _0x26777b,View as _0x4f922f,FocusCycler as _0x344e12,Dialog as _0x4d37fc,DialogViewPosition as _0x7fd479,SpinnerView as _0x30edda,IconView as _0x26591f,Notification as _0x515009}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x353302,DomEmitterMixin as _0x1e9ec0,global as _0x1eb88f,getAncestors as _0x1bf4b3,ObservableMixin as _0x4f6cbb,uid as _0x50fb5f,createElement as _0x4183e6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1bff2a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5d947b,info as _0x2ff0d4}from'@uploadcare/upload-client';import*as _0xc82fbc from'@uploadcare/file-uploader';var i=function(_0x547a52){return _0x547a52['Local']='local',_0x547a52['URL']='url',_0x547a52['Dropbox']='dropbox',_0x547a52['GDrive']='gdrive',_0x547a52['Facebook']='facebook',_0x547a52['GPhotos']='gphotos',_0x547a52['OneDrive']='onedrive',_0x547a52;}({});function _(_0x57d20f,_0x6afa1f,_0x4d18a0){const t=_0x57d20f['t'],_0x34b359=_0x57d20f['t'];switch(_0x6afa1f){case i['Local']:return{'text':_0x34b359('Insert'===_0x4d18a0?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x34b359('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x4d18a0?_0x34b359('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x34b359('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x4d18a0?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x4d18a0?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x4d18a0?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x4d18a0?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x4d18a0?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x6afa1f;}}class e extends _0x53e594{['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 _0x451967=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x31508e;for(const _0x58940f in _0x451967){const _0x2956b3=_0x58940f,_0x2ee56e=_0x451967[_0x2956b3];if('uploadcareLicenseKeyValid'==_0x2ee56e||'uploadcareLicenseKeyInvalid'==_0x2ee56e||'uploadcareLicenseKeyExpired'==_0x2ee56e||'uploadcareLicenseKeyDomainLimit'==_0x2ee56e||'uploadcareLicenseKeyNotAllowed'==_0x2ee56e||'uploadcareLicenseKeyEvaluationLimit'==_0x2ee56e||'uploadcareLicenseKeyUsageLimit'==_0x2ee56e){delete _0x451967[_0x2956b3],_0x31508e=_0x2ee56e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x31508e&&_0x451967['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x31508e&&_0x451967['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x31508e&&_0x451967['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x31508e&&_0x451967['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x31508e&&_0x451967['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x31508e&&_0x451967['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x32817f}=this,_0x27a34d=_0x32817f['commands']['get']('uploadcare');if(!_0x27a34d)return;const _0x44692d=this['_normalizeConfigSourceList'](_0x32817f['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x38328b,_0x4fe4bf)=>{const _0x41369e=this['_getIntegrationKey'](_0x4fe4bf['type']);return _0x38328b[_0x41369e]||(_0x38328b[_0x41369e]=[]),_0x38328b[_0x41369e]['push'](_0x4fe4bf),_0x38328b;},{});_0x32817f['plugins']['has']('ImageInsertUI')&&_0x32817f['commands']['get']('uploadcare')&&Object['entries'](_0x44692d)['forEach'](([_0x3d4123,_0x5abcaf])=>{_0x32817f['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3d4123,'observable':()=>_0x27a34d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5abcaf),'formViewCreator':()=>this['_createDropdownButtons'](_0x5abcaf),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5abcaf),'override':'assetManager'!==_0x3d4123});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xae379d){const {locale:_0x5bff9e}=this['editor'];return _0xae379d['map'](_0x157934=>{const _0x135e4b=_(_0x5bff9e,_0x157934,'Insert');switch(_0x157934){case i['Local']:return{'icon':_0x5b8cfa,'type':i['Local'],..._0x135e4b};case i['URL']:return{'icon':_0x114006,'type':i['URL'],..._0x135e4b};case i['Dropbox']:return{'icon':_0x248759,'type':i['Dropbox'],..._0x135e4b};case i['Facebook']:return{'icon':_0x24b028,'type':i['Facebook'],..._0x135e4b};case i['GDrive']:return{'icon':_0x4e9925,'type':i['GDrive'],..._0x135e4b};case i['GPhotos']:return{'icon':_0x46bdee,'type':i['GPhotos'],..._0x135e4b};case i['OneDrive']:return{'icon':_0x3bf33f,'type':i['OneDrive'],..._0x135e4b};}});}['_getIntegrationKey'](_0x561d7f){switch(_0x561d7f){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x26ba54,_0x5e0424){const _0x58b3fc=this['editor'],_0x5248f4=new _0x26ba54(_0x58b3fc['locale']),_0x47583c=_0x58b3fc['commands']['get']('uploadcare');return _0x5248f4['bind']('isEnabled')['to'](_0x47583c),_0x5248f4['on']('execute',()=>{_0x47583c['execute'](_0x5e0424);}),_0x5248f4;}['_createToolbarButton'](_0x330333){const {locale:_0x458a8d}=this['editor'],_0x5698b3=this['editor']['plugins']['get']('ImageInsertUI'),_0xb34c96=_0x330333[0x0],_0x1866ba=this['_createButton'](_0x28b5fa,_0xb34c96['type']);return _0x1866ba['icon']=_0xb34c96['icon'],_0x1866ba['bind']('label')['to'](_0x5698b3,'isImageSelected',_0x751b4=>_(_0x458a8d,_0xb34c96['type'],_0x751b4?'Replace':'Insert')['text']),_0x1866ba['tooltip']=!0x0,_0x1866ba;}['_createDropdownButtons'](_0x1a4083){const {locale:_0x3274b0}=this['editor'],_0x370dfe=this['editor']['plugins']['get']('ImageInsertUI');return _0x1a4083['map'](_0x175f9a=>{const _0xd936fa=this['_createButton'](_0x28b5fa,_0x175f9a['type']);return _0xd936fa['withText']=!0x0,_0xd936fa['icon']=_0x175f9a['icon'],_0xd936fa['bind']('label')['to'](_0x370dfe,'isImageSelected',_0x15674b=>_(_0x3274b0,_0x175f9a['type'],_0x15674b?'Replace':'Insert')['text']),_0xd936fa;});}['_createMenuBarButtons'](_0x48d820){return _0x48d820['map'](_0x8aeb48=>{const _0xd48a5c=this['_createButton'](_0x26777b,_0x8aeb48['type']);return _0xd48a5c['icon']=_0x8aeb48['icon'],_0xd48a5c['label']=_0x8aeb48['shortText'],_0xd48a5c;});}}class F extends _0x4f922f{['focusTracker'];['focusCycler'];constructor(_0x473996){super(_0x473996),this['focusTracker']=new _0x353302(),this['focusCycler']=new _0x344e12({'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(_0x432388,_0x3f9a45){super(_0x432388),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-'+_0x3f9a45}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x41ecd3,_0x989277){const _0x155cf4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x32b2b1=>_0x32b2b1<=_0x989277)['map'](_0x363250=>_0x41ecd3['replace'](/\/$/,'')+'/-/resize/'+_0x363250+'x/\x20'+_0x363250+'w');return{'imageFallbackUrl':_0x41ecd3,'imageSources':[{'srcset':_0x155cf4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x989277+'px)\x20100vw,\x20'+_0x989277+'px','type':'image/webp'}]};}function S(_0x4a0233,_0x40367f,_0x32b28c){const _0x241202=_0x4a0233['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x241202?parseInt(_0x241202[0x1],0xa):_0x40367f,'height':_0x241202?parseInt(_0x241202[0x2],0xa):_0x32b28c};}function p(_0x9b52bd,_0x4ac1d8){const _0x1867c1=new(_0x1e9ec0())(),_0x4a63b9=_0x9b52bd['plugins']['get']('ImageUtils'),_0x15d8d4=_0x9b52bd['editing']['mapper']['toViewElement'](_0x4ac1d8),_0xf2b120=_0x4a63b9['findViewImgElement'](_0x15d8d4),_0x13152d=_0x9b52bd['editing']['view']['domConverter']['viewToDom'](_0xf2b120),_0x15a79a=_0x4ac1d8['getAttribute']('width'),_0x528035=_0x4ac1d8['getAttribute']('height'),_0xe8a503='image-processing';_0x9b52bd['editing']['view']['change'](_0x52a2e0=>{_0x52a2e0['addClass'](_0xe8a503,_0x15d8d4),_0x52a2e0['setStyle']('aspect-ratio',_0x15a79a+'/'+_0x528035,_0xf2b120);}),_0x1867c1['listenTo'](_0x13152d,'load',()=>{_0x1867c1['stopListening'](_0x13152d,'load'),_0x9b52bd['editing']['view']['change'](_0x373fe3=>{_0x373fe3['removeClass'](_0xe8a503,_0x15d8d4),_0x373fe3['removeStyle']('aspect-ratio',_0xf2b120);});});}function G(_0x4e67e9){if(Array['isArray'](_0x4e67e9)){const _0x525e59=_0x4e67e9['map'](G);return _0x967d77=>_0x525e59['some'](_0xa20a2a=>_0xa20a2a(_0x967d77));}if('origin'==_0x4e67e9){const _0x53124b=_0x1eb88f['window']['location']['origin'];return _0x157eb6=>new URL(_0x157eb6,_0x1eb88f['document']['baseURI'])['origin']==_0x53124b;}return'function'==typeof _0x4e67e9?_0x4e67e9:_0x4e67e9 instanceof RegExp?_0x3128f8=>!(!_0x3128f8['match'](_0x4e67e9)&&!_0x3128f8['replace'](/^https?:\/\//,'')['match'](_0x4e67e9)):()=>!0x1;}function A(_0x41a2a9,_0x4a0cb7){return _0x1bf4b3(_0x41a2a9['target'])['includes'](_0x4a0cb7);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x4f6cbb(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3ee718,_0x3a9102,_0x271481){super(),this['_editor']=_0x3ee718,this['_editing']=_0x3a9102,this['_dialog']=_0x3ee718['plugins']['get'](_0x4d37fc),this['_api']=_0x3a9102['ctxElement']['getAPI'](),this['_type']=_0x271481,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:_0x49a9dc,model:_0x3dad04}=this['_editor'],_0x2a63cb=_0x3dad04['document']['selection']['getSelectedElement'](),_0xa7fc95=_0x2a63cb&&(_0x2a63cb['is']('element','imageBlock')||_0x2a63cb['is']('element','imageInline'));this['_formView']=new x(_0x49a9dc,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5b8cfa,'title':_(_0x49a9dc,this['_type'],_0xa7fc95?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x7fd479['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xdacd5c=>!A(_0xdacd5c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1d0399}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x423f5e=>{const _0x2ff374=_0x1d0399['length'];for(const _0x1d7329 of _0x1d0399){const _0x11c64d=_0x1d7329===_0x1d0399[_0x2ff374-0x1],{cdnUrl:_0x5495c6,fileInfo:_0x25dc55}=_0x1d7329;if(!_0x5495c6||!_0x25dc55)continue;const {width:_0x34e5ea,height:_0x589810}=_0x25dc55['imageInfo'],_0x569709=S(_0x5495c6,_0x34e5ea,_0x589810),_0x47307d=C(_0x5495c6,_0x569709['width']),_0x40924b={'id':_0x25dc55['uuid'],'type':'image','attributes':{'imageDimension':_0x569709,..._0x47307d}};this['_insertAsset'](_0x40924b,_0x11c64d,_0x423f5e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1d4193=>{'idle'===_0x1d4193['detail']['status']&&!_0x1d4193['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x21f611,_0x4e539c,_0x23de2c){const _0x1732d1=this['_editor']['model']['document']['selection'],_0x5187f5=_0x1732d1['getSelectedElement'](),_0x36269b=!(!_0x5187f5||!_0x5187f5['is']('element','imageInline'));_0x23de2c['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x21f611,_0x36269b),_0x4e539c||_0x23de2c['setSelection'](_0x1732d1['getLastPosition']());}['_insertImage'](_0x41e385,_0x2b24df){const _0x1d0896=this['_editor'],{imageDimension:_0x42441d,imageFallbackUrl:_0x372eb8,imageSources:_0x48441a}=_0x41e385['attributes'];_0x1d0896['execute']('insertImage',{'imageType':_0x2b24df?'imageInline':null,'source':{'uploadcareImageId':_0x41e385['id'],'src':_0x372eb8,'sources':_0x48441a,..._0x42441d}});}}class w extends _0x3d5f59{['_editing'];['_controller']=null;static get['requires'](){return[_0x4d37fc,o];}constructor(_0x2da521){super(_0x2da521),this['_editing']=_0x2da521['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x26b1b3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x26b1b3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x14526a,..._0x35b1bb}){return _0x5d947b(_0x14526a,_0x35b1bb);}static['getInfo'](_0x5498e0,_0x18f21c){return _0x2ff0d4(_0x5498e0,_0x18f21c);}}class f extends _0x53e594{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1bff2a,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x554bb1=this['editor'];if(!!!_0x554bb1['config']['get']('uploadcare'))return;_0x554bb1['plugins']['get'](_0x1bff2a)['createUploadAdapter']=_0x451f34=>new k(_0x451f34,_0x554bb1),_0x554bb1['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4e93c5,{imageElement:_0x140d91,data:_0x416d84})=>{_0x554bb1['model']['change'](_0x6cc1a9=>{_0x6cc1a9['setAttribute']('uploadcareImageId',_0x416d84['uploadcareImageId'],_0x140d91);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1ea078,_0x588dba){this['loader']=_0x1ea078,this['editor']=_0x588dba,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x145b07=await this['loader']['file'];return j['upload']({'file':_0x145b07,'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':_0xeac298=>{_0xeac298&&_0xeac298['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xeac298['value']);}})['then'](async _0x5b2578=>{const {imageFallbackUrl:_0xdbf25b,imageSources:_0x2fc3da}=C(_0x5b2578['cdnUrl'],_0x5b2578['imageInfo']['width']);return{'uploadcareImageId':_0x5b2578['uuid'],'default':_0xdbf25b,'sources':_0x2fc3da};})['catch'](()=>{const _0x4d4b84=t('Cannot\x20upload\x20file:')+('\x20'+_0x145b07['name']+'.');return Promise['reject'](_0x4d4b84);});}['abort'](){this['controller']['abort']();}}class o extends _0x53e594{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4d37fc];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x370fcd){super(_0x370fcd),this['ucContextId']=_0x50fb5f();}['init'](){const _0x4c02f4=this['editor'];_0x4c02f4['commands']['add']('uploadcare',new w(_0x4c02f4));}['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 _0x4791c6=_0x1eb88f['document']['querySelector']('input[uploadcare-file-input]');_0x4791c6&&_0x4791c6['remove']();}),async function(_0x3c10a1){const _0x305403=_0xf91295([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]),_0x5ae313=0x535f8c3a,_0x42d439=0x5358f2ba^_0x5ae313,_0x45e327=window[_0xf91295([0x44,0x61,0x74,0x65])][_0xf91295([0x6e,0x6f,0x77])](),_0x2913d5=_0x3c10a1[_0xf91295([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4d7a07=new window[(_0xf91295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e4545=>{_0x2913d5[_0xf91295([0x6f,0x6e,0x63,0x65])](_0xf91295([0x72,0x65,0x61,0x64,0x79]),_0x1e4545);}),_0x2e8eba={[_0xf91295([0x6b,0x74,0x79])]:_0xf91295([0x45,0x43]),[_0xf91295([0x75,0x73,0x65])]:_0xf91295([0x73,0x69,0x67]),[_0xf91295([0x63,0x72,0x76])]:_0xf91295([0x50,0x2d,0x32,0x35,0x36]),[_0xf91295([0x78])]:_0xf91295([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]),[_0xf91295([0x79])]:_0xf91295([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]),[_0xf91295([0x61,0x6c,0x67])]:_0xf91295([0x45,0x53,0x32,0x35,0x36])},_0xa2e6f7=_0x2913d5[_0xf91295([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf91295([0x67,0x65,0x74])](_0xf91295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x47a696(){let _0x34c157,_0x554f90=null,_0x489da1=null;try{if(_0xa2e6f7==_0xf91295([0x47,0x50,0x4c]))return _0xf91295([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34c157=_0x2b72c8(),!_0x34c157)return _0xf91295([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34c157[_0xf91295([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x489da1=_0xcab084(_0x34c157[_0xf91295([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34c157[_0xf91295([0x6a,0x74,0x69])])),await _0x2bb415()?_0x29bb90()?_0x3d159f()?_0xf91295([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2a4794()?(_0x34c157[_0xf91295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf91295([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x554f90=_0x4ccf5b(_0xf91295([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb66c98()):_0xf91295([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf91295([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf91295([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xf91295([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3d159f(){const _0x2bdeb1=[_0xf91295([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf91295([0x74,0x72,0x69,0x61,0x6c])][_0xf91295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34c157[_0xf91295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x45e327/0x3e8:0xe10*_0x42d439;return _0x34c157[_0xf91295([0x65,0x78,0x70])]<_0x2bdeb1;}function _0x29bb90(){const _0x146345=_0x34c157[_0xf91295([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x146345&&(!!_0x146345[_0xf91295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf91295([0x2a]))||!!_0x146345[_0xf91295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf91295([0x55,0x50,0x4c,0x43])));}function _0x2a4794(){const _0x2e18cc=_0x34c157[_0xf91295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e18cc||0x0==_0x2e18cc[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x434e0e}=new URL(window[_0xf91295([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2e18cc[_0xf91295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x434e0e))return!0x0;const _0x20eefa=_0x434e0e[_0xf91295([0x73,0x70,0x6c,0x69,0x74])](_0xf91295([0x2e]));return _0x2e18cc[_0xf91295([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x367c76=>_0x367c76[_0xf91295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf91295([0x2a])))[_0xf91295([0x6d,0x61,0x70])](_0xe03187=>_0xe03187[_0xf91295([0x73,0x70,0x6c,0x69,0x74])](_0xf91295([0x2e])))[_0xf91295([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x190689=>_0x190689[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x20eefa[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf91295([0x6d,0x61,0x70])](_0x175ebf=>Array(_0x20eefa[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x175ebf[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf91295([0x66,0x69,0x6c,0x6c])](_0x175ebf[0x0]===_0xf91295([0x2a])?_0xf91295([0x2a]):'')[_0xf91295([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x175ebf))[_0xf91295([0x73,0x6f,0x6d,0x65])](_0x30eabf=>_0x20eefa[_0xf91295([0x65,0x76,0x65,0x72,0x79])]((_0x49da3a,_0x4958b2)=>_0x30eabf[_0x4958b2]===_0x49da3a||_0x30eabf[_0x4958b2]===_0xf91295([0x2a])));}function _0xb66c98(){return _0x554f90&&_0x489da1?new window[(_0xf91295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59006c,_0x3bc665)=>{_0x554f90[_0xf91295([0x74,0x68,0x65,0x6e])](_0x59006c,_0x3bc665),_0x489da1[_0xf91295([0x74,0x68,0x65,0x6e])](_0x3ac1aa=>{_0x3ac1aa!=_0xf91295([0x56,0x61,0x6c,0x69,0x64])&&_0x59006c(_0x3ac1aa);},_0x3bc665);}):_0x554f90||_0x489da1||_0xf91295([0x56,0x61,0x6c,0x69,0x64]);}}function _0xcab084(_0x55a67c,_0x293892){return new window[(_0xf91295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23d53d=>{if(_0x584547())return _0x23d53d(_0xf91295([0x56,0x61,0x6c,0x69,0x64]));_0x2fb734(),_0x2913d5[_0xf91295([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf91295([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x39b1db=!0x1;const _0x3e4c34=_0x50fb5f();function _0x278a79(_0x28885d){return!!_0x28885d&&(typeof _0x28885d===_0xf91295([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x28885d===_0xf91295([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x28885d[_0xf91295([0x74,0x68,0x65,0x6e])]===_0xf91295([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x28885d[_0xf91295([0x63,0x61,0x74,0x63,0x68])]===_0xf91295([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1899b1(_0x1a5790){_0x1e91f9(_0x1a5790)[_0xf91295([0x74,0x68,0x65,0x6e])](_0x28af11=>{if(!_0x28af11||_0x28af11[_0xf91295([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf91295([0x6f,0x6b]))return _0xf91295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x249e11(_0x30eca5(_0x3e4c34+_0x293892))!=_0x28af11[_0xf91295([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf91295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf91295([0x56,0x61,0x6c,0x69,0x64]);})[_0xf91295([0x74,0x68,0x65,0x6e])](_0x51e902=>(_0x175a22(),_0x51e902),()=>{const _0x48d99a=_0x1e4480();return null==_0x48d99a?(_0x175a22(),_0xf91295([0x56,0x61,0x6c,0x69,0x64])):_0xf91295(_0x45e327-_0x48d99a>(0x7753083a^_0x5ae313)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf91295([0x74,0x68,0x65,0x6e])](_0x23d53d)[_0xf91295([0x63,0x61,0x74,0x63,0x68])](()=>{_0x23d53d(_0xf91295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5cb02a=0x536962ba^_0x5ae313;function _0x175a22(){const _0x246577=_0xf91295([0x6c,0x6c,0x63,0x74,0x2d])+_0x249e11(_0x30eca5(_0x55a67c)),_0x48fb49=_0x518e0d(_0x249e11(window[_0xf91295([0x4d,0x61,0x74,0x68])][_0xf91295([0x63,0x65,0x69,0x6c])](_0x45e327/_0x5cb02a)));window[_0xf91295([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf91295([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x246577,_0x48fb49);}function _0x1e4480(){const _0x1b11a2=_0xf91295([0x6c,0x6c,0x63,0x74,0x2d])+_0x249e11(_0x30eca5(_0x55a67c)),_0xe624c0=window[_0xf91295([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf91295([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b11a2);return _0xe624c0?window[_0xf91295([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x518e0d(_0xe624c0),0x10)*_0x5cb02a:null;}function _0x1e91f9(_0xdbed5a){return new window[(_0xf91295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2aa6ac,_0x1fbbfa)=>{_0xdbed5a[_0xf91295([0x74,0x68,0x65,0x6e])](_0x2aa6ac,_0x1fbbfa),window[_0xf91295([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1fbbfa,0x535e58fa^_0x5ae313);});}}_0x2913d5[_0xf91295([0x6f,0x6e])](_0xf91295([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x397c1b,_0x73a167)=>{if(_0x73a167[0x0]!=_0x55a67c)return _0x23d53d(_0xf91295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x73a167[0x1]={..._0x73a167[0x1],[_0xf91295([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e4c34};},{[_0xf91295([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf91295([0x68,0x69,0x67,0x68])}),_0x2913d5[_0xf91295([0x6f,0x6e])](_0xf91295([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b0c96=>{_0x278a79(_0x3b0c96[_0xf91295([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x39b1db=!0x0,_0x1899b1(_0x3b0c96[_0xf91295([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf91295([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf91295([0x6c,0x6f,0x77])}),_0x4d7a07[_0xf91295([0x74,0x68,0x65,0x6e])](()=>{_0x39b1db||_0x23d53d(_0xf91295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x584547(){return _0x2913d5[_0xf91295([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf91295([0x76,0x69,0x65,0x77])][_0xf91295([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf91295([0x61,0x75,0x74,0x6f]);}function _0x2fb734(){_0x2913d5[_0xf91295([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf91295([0x76,0x69,0x65,0x77])][_0xf91295([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf91295([0x61,0x75,0x74,0x6f]);}}function _0x4ccf5b(_0x4e9d8f){const _0x55cb0d=[new window[(_0xf91295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24fd55=>setTimeout(_0x24fd55,0x5356b2f6^_0x5ae313)),_0x4d7a07[_0xf91295([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf91295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xacb3e1=>{let _0x1b42c3=0x0;_0x2913d5[_0xf91295([0x6d,0x6f,0x64,0x65,0x6c])][_0xf91295([0x6f,0x6e])](_0xf91295([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4e29fa,_0x1f8844)=>{_0x1f8844[0x0][_0xf91295([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1b42c3++,_0x1b42c3==(0x535f89d2^_0x5ae313)&&(_0xacb3e1(),_0x4e29fa[_0xf91295([0x6f,0x66,0x66])]());});}))];return window[_0xf91295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf91295([0x72,0x61,0x63,0x65])](_0x55cb0d)[_0xf91295([0x74,0x68,0x65,0x6e])](()=>_0x4e9d8f);}async function _0x1104e5(){await _0x4d7a07,_0x2913d5[_0xf91295([0x6d,0x6f,0x64,0x65,0x6c])][_0xf91295([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x26764e,_0x2913d5[_0xf91295([0x6d,0x6f,0x64,0x65,0x6c])][_0xf91295([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x26764e,_0x2913d5[_0xf91295([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf91295([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x66633b(_0x1c8cf8){const _0x4ea21a=_0x1aeea5();_0x2913d5[_0x4ea21a]=_0xf91295([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c8cf8,_0x1c8cf8!=_0xf91295([0x56,0x61,0x6c,0x69,0x64])&&_0x1104e5();}function _0x1aeea5(){const _0x353598=window[_0xf91295([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf91295([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf91295([0x6e,0x6f,0x77])]())[_0xf91295([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf91295([0x2e]),'');let _0x11b9fe=_0xf91295([0x68]);for(let _0xa94fad=0x0;_0xa94fad<_0x353598[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa94fad+=0x2){let _0x4b087e=window[_0xf91295([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x353598[_0xf91295([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa94fad,_0xa94fad+0x2));_0x4b087e>=_0x305403[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4b087e-=_0x305403[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11b9fe+=_0x305403[_0x4b087e];}return _0x11b9fe;}function _0x2b72c8(){const _0x146964=_0xa2e6f7[_0xf91295([0x73,0x70,0x6c,0x69,0x74])](_0xf91295([0x2e]));if(0x3!=_0x146964[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x257edf(_0x146964[0x1]);function _0x257edf(_0x51e673){const _0x5b3671=_0x1cb2cd(_0x51e673);return _0x5b3671&&_0x1d3058()?_0x5b3671:null;function _0x1d3058(){const _0x50a256=_0x5b3671[_0xf91295([0x6a,0x74,0x69])],_0x286765=window[_0xf91295([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50a256[_0xf91295([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50a256[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x42b8b2={..._0x5b3671,[_0xf91295([0x6a,0x74,0x69])]:_0x50a256[_0xf91295([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x50a256[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x42b8b2[_0xf91295([0x76,0x63])],_0x30eca5(_0x42b8b2)==_0x286765;}}}async function _0x2bb415(){let _0x3483df=!0x0;try{const _0x5583f1=_0xa2e6f7[_0xf91295([0x73,0x70,0x6c,0x69,0x74])](_0xf91295([0x2e])),[_0x3f016,_0x4a813a,_0x2bf227]=_0x5583f1;return _0x39caf2(_0x3f016),await _0x72e586(_0x3f016,_0x4a813a,_0x2bf227),_0x3483df;}catch{return!0x1;}function _0x39caf2(_0x4e0c4e){const _0x2053ac=_0x1cb2cd(_0x4e0c4e);_0x2053ac&&_0x2053ac[_0xf91295([0x61,0x6c,0x67])]==_0xf91295([0x45,0x53,0x32,0x35,0x36])||(_0x3483df=!0x1);}async function _0x72e586(_0x56ec16,_0x28ba89,_0x284040){const _0x483977=window[_0xf91295([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf91295([0x66,0x72,0x6f,0x6d])](_0x20165b(_0x284040),_0x3c0c15=>_0x3c0c15[_0xf91295([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x26fbb0=new window[(_0xf91295([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf91295([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x56ec16+_0xf91295([0x2e])+_0x28ba89),_0x5d62e9=window[_0xf91295([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf91295([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5d62e9)return;const _0x535515=await _0x5d62e9[_0xf91295([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf91295([0x6a,0x77,0x6b]),_0x2e8eba,{[_0xf91295([0x6e,0x61,0x6d,0x65])]:_0xf91295([0x45,0x43,0x44,0x53,0x41]),[_0xf91295([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf91295([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf91295([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5d62e9[_0xf91295([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf91295([0x6e,0x61,0x6d,0x65])]:_0xf91295([0x45,0x43,0x44,0x53,0x41]),[_0xf91295([0x68,0x61,0x73,0x68])]:{[_0xf91295([0x6e,0x61,0x6d,0x65])]:_0xf91295([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x535515,_0x483977,_0x26fbb0)||(_0x3483df=!0x1);}}function _0x1cb2cd(_0x4ad5be){return _0x4ad5be[_0xf91295([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf91295([0x65,0x79]))?JSON[_0xf91295([0x70,0x61,0x72,0x73,0x65])](_0x20165b(_0x4ad5be)):null;}function _0x20165b(_0x344551){return window[_0xf91295([0x61,0x74,0x6f,0x62])](_0x344551[_0xf91295([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf91295([0x2b]))[_0xf91295([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf91295([0x2f])));}function _0x30eca5(_0x4cc90f){let _0x45f4d1=0x1505;function _0x3c4bca(_0x511731){for(let _0x5457b3=0x0;_0x5457b3<_0x511731[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5457b3++){const _0x507593=_0x511731[_0xf91295([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5457b3);_0x45f4d1=(_0x45f4d1<<0x5)+_0x45f4d1+_0x507593,_0x45f4d1&=_0x45f4d1;}}function _0x2d2c37(_0x1ad747){Array[_0xf91295([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ad747)?_0x1ad747[_0xf91295([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2d2c37):_0x1ad747&&typeof _0x1ad747==_0xf91295([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf91295([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ad747)[_0xf91295([0x73,0x6f,0x72,0x74])]()[_0xf91295([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2ced54,_0x755b1c])=>{_0x3c4bca(_0x2ced54),_0x2d2c37(_0x755b1c);}):_0x3c4bca(window[_0xf91295([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ad747));}return _0x2d2c37(_0x4cc90f),_0x45f4d1>>>0x0;}function _0x249e11(_0xb6f283){return _0xb6f283[_0xf91295([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf91295([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf91295([0x30]));}function _0x518e0d(_0x293f73){return _0x293f73[_0xf91295([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf91295([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf91295([0x6a,0x6f,0x69,0x6e])]('');}function _0x26764e(){}function _0xf91295(_0x5be65b){return _0x5be65b['map'](_0x41f576=>String['fromCharCode'](_0x41f576))['join']('');}_0x66633b(await _0x47a696());}(this);}['_initSchema'](){const _0x557e71=this['editor']['model']['schema'];_0x557e71['isRegistered']('imageBlock')&&_0x557e71['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x557e71['isRegistered']('imageInline')&&_0x557e71['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x177e8c=this['editor'];_0x177e8c['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x177e8c['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x55345c=>_0x55345c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4a3310=_0x177e8c['commands']['get']('replaceImageSource');_0x4a3310&&this['listenTo'](_0x4a3310,'cleanupImage',(_0x5aacba,[_0x3cb80c,_0x49cc38])=>{_0x3cb80c['removeAttribute']('uploadcareImageId',_0x49cc38);});}['_initConfig'](){const _0xe61069=this['editor']['config']['get']('uploadcare.uploader')||{},_0x575743=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4183e6(_0x1eb88f['document'],'uc-config',{..._0xe61069,'pubkey':_0x575743,'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']=_0x36ede4=>{if('closeMax'==_0x36ede4)return'#uc-icon-arrow-down';},_0x1eb88f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4183e6(_0x1eb88f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1eb88f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x461364=this['editor']['commands']['get']('insertImage');_0x461364&&this['listenTo'](_0x461364,'execute',()=>{const _0x5077c2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5077c2&&_0x5077c2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5077c2);});});const _0x1b0115=this['editor']['commands']['get']('uploadcareImageReplace');_0x1b0115&&this['listenTo'](_0x1b0115,'execute',()=>{const _0x4d2685=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4d2685&&_0x4d2685['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4d2685);});});}}class tt extends _0x53e594{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd661f2){super(_0xd661f2),_0xd661f2['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xc82fbc['defineComponents'](_0xc82fbc),this['_defineLocale']();}['_defineLocale'](){const _0x253830=this['editor']['config']['get']('uploadcare.locale'),_0x4380c6=this['editor']['locale']['contentLanguage'];_0x253830&&_0xc82fbc['defineLocale'](_0x4380c6,_0x253830);}}class ii extends _0x4f922f{constructor(_0x445ac7){super(_0x445ac7);const t=_0x445ac7['t'],_0x4ce767=this['bindTemplate'],_0x694fb=new _0x30edda();_0x694fb['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':[_0x694fb,{'text':_0x4ce767['to']('imageUploadProgress',_0x2307ce=>t('Loading\x20image...')+'\x20('+(_0x2307ce||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 _0x4f922f{constructor(_0x4e21a3){super(_0x4e21a3);const t=_0x4e21a3['t'];this['set']('errorType',null);const _0x355735=new _0x28b5fa(_0x4e21a3);_0x355735['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x355735['withText']=!0x0,_0x355735['class']='ck-button-action',_0x355735['on']('execute',()=>{this['fire']('retry');}),_0x355735['bind']('isVisible')['to'](this,'errorType',_0x2d368c=>'NotFound'!==_0x2d368c);const _0x4e5ef1=new _0x26591f();_0x4e5ef1['content']=_0x5440f8,_0x4e5ef1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x53d411=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':[_0x4e5ef1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x53d411['to']('errorType',_0x27cc34=>t('NotFound'!==_0x27cc34?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x355735]},{'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 _0x4f922f{constructor(_0x5ef622,_0x33efcc){super(_0x5ef622);const _0x3fc165=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x33efcc,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3fc165['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x41dbc1,_0x1d6abd,_0xcdc0a2){super(_0x41dbc1),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x41dbc1),this['_errorView']=new ti(_0x41dbc1),this['_editingView']=new ei(_0x41dbc1,_0xcdc0a2),this['_focusableView']=new _0x4f922f(_0x41dbc1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1d6abd),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'],_0x543fff=>{this['_addUploadcareImageEditorListeners'](_0x543fff);});}),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'](_0x27205b,_0x52e359){const _0xa0b556='uc-cloud-image-editor',_0xb177c7=_0x27205b['querySelector'](_0xa0b556);if(_0xb177c7)return _0x52e359(_0xb177c7);const _0x4a3dc5=new MutationObserver(_0x50dea9=>{const _0x41733e=_0x50dea9['filter'](_0x385cc0=>_0x385cc0['target']===_0x27205b&&_0x385cc0['addedNodes']['length']>0x0&&_0x385cc0['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xa0b556);_0x41733e['length']&&(_0x4a3dc5['disconnect'](),_0x52e359(_0x41733e[0x0]['addedNodes'][0x0]));});_0x4a3dc5['observe'](_0x27205b,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2d3b01){_0x2d3b01['addEventListener']('apply',_0x1b0feb=>{this['fire']('apply',{'imageSrc':_0x1b0feb['detail']['cdnUrl']});}),_0x2d3b01['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x4f6cbb(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x45fda1,_0x4f326f,_0x1fbc8f){super(),this['_editor']=_0x45fda1,this['_dialog']=_0x4f326f,this['_imageElement']=_0x1fbc8f,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 _0x29fe7b=this['_imageElement'],_0x389663=_0x29fe7b['getAttribute']('uploadcareImageId'),_0x1cec62=_0x29fe7b['getAttribute']('src');if(_0x389663)await this['_loadImageInfo'](_0x389663,_0x1cec62);else{if(this['_imageCache']['has'](_0x1cec62)){const _0x31c235=this['_imageCache']['get'](_0x1cec62);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x31c235['url'],this['imageDimension']=_0x31c235['dimension'],this['imageId']=_0x31c235['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x29de06}=this['_editor'],t=_0x29de06['t'],_0xf106bc=new X(_0x29de06,this['imageStatus'],this['_attributes']);_0xf106bc['bind']('status')['to'](this,'imageStatus'),_0xf106bc['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xf106bc['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xf106bc['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xf106bc,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x39c048,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xf106bc,'position':_0x7fd479['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xf106bc['focus']();},'onHide':()=>{_0xf106bc['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x58ebee=>!A(_0x58ebee,_0xf106bc['element'])}});}['_loadImageInfo'](_0x23d8ad,_0x570337){return j['getInfo'](_0x23d8ad,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x913474=>{const {width:_0x15e1b3,height:_0x4c1c6d}=_0x913474['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x570337,this['imageDimension']={'width':_0x15e1b3,'height':_0x4c1c6d},this['imageId']=_0x23d8ad;})['catch'](_0xaecbd0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xaecbd0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4138c9,_0x4ec1a5){return this['_getImageAsFile'](_0x4138c9)['then'](_0x357a53=>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':_0x4ec1a5['signal'],'file':_0x357a53,'onProgress':_0x383953=>{_0x383953&&_0x383953['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x383953['value']));}}))['then'](_0x34c3d3=>{const {width:_0x272095,height:_0x24e622}=_0x34c3d3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34c3d3['cdnUrl'],this['imageDimension']={'width':_0x272095,'height':_0x24e622},this['imageId']=_0x34c3d3['uuid'],this['imageUploadProgress']=null;const _0x29dc31=_0x4138c9['getAttribute']('src');this['_imageCache']['set'](_0x29dc31,{'id':_0x34c3d3['uuid'],'url':_0x34c3d3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x427114=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x427114['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xefbb92,_0x194e3b){_0xefbb92['on']('apply',(_0x1521e5,_0x5b4b9f)=>{this['_replaceImage'](_0x194e3b,_0x5b4b9f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xefbb92['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xefbb92['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x46d985,_0x6ded9e,_0xd7f209){const _0x387524=this['_editor'],{width:_0x51e025,height:_0x56679a}=S(_0x6ded9e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x30d159,imageSources:_0x2c4e0f}=C(_0x6ded9e,_0x51e025);_0x387524['model']['change'](_0x826f42=>{if('$graveyard'===_0x46d985['root']['rootName']){_0x387524['execute']('insertImage',{'imageType':_0x46d985['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x46d985['getAttributes']()),'uploadcareImageId':_0xd7f209,'src':_0x30d159,'sources':_0x2c4e0f,'width':_0x51e025,'height':_0x56679a}});const _0x20d00b=_0x46d985['getChildren']();_0x46d985=_0x387524['model']['document']['selection']['getSelectedElement']();for(const _0x1272d1 of _0x20d00b)_0x826f42['append'](_0x826f42['cloneElement'](_0x1272d1),_0x46d985);}else _0x826f42['setSelection'](_0x46d985,'on'),_0x387524['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x46d985['getAttributes']()),'uploadcareImageId':_0xd7f209,'src':_0x30d159,'sources':_0x2c4e0f,'width':_0x51e025,'height':_0x56679a},_0x46d985);_0x826f42['setSelection'](_0x46d985,'on');});}async['_getImageAsFile'](_0x3079f9){const _0x41ceb9=_0x1eb88f['window'],_0x259dc8=_0x1eb88f['document']['location']['href'],_0x5b01f5=new _0x41ceb9['URL'](_0x3079f9['getAttribute']('src'),_0x259dc8);if('data:'===_0x5b01f5['protocol']){const _0x1d8988=_0x5b01f5['href']['split'](','),_0x1dc74a=_0x1d8988[0x0]['match'](/:(.*?);/)[0x1],_0x2471f7=_0x1dc74a['split']('/')[0x1],_0x4b6c5f=_0x41ceb9['atob'](_0x1d8988[_0x1d8988['length']-0x1]);let _0x167cb4=_0x4b6c5f['length'];const _0x5bd619=new _0x41ceb9['Uint8Array'](_0x167cb4);for(;_0x167cb4--;)_0x5bd619[_0x167cb4]=_0x4b6c5f['charCodeAt'](_0x167cb4);return new _0x41ceb9['File']([_0x5bd619],'image.'+_0x2471f7,{'type':_0x1dc74a});}const _0x18f4be=_0x5b01f5['href']['split']('/'),_0x2e2e82=_0x18f4be[_0x18f4be['length']-0x1],_0x52a7f8=_0x2e2e82['split']('.')[0x1];return _0x41ceb9['fetch'](_0x5b01f5['href'])['then'](_0x173e1b=>_0x173e1b['clone']()['blob']())['then'](_0x34f856=>new _0x41ceb9['File']([_0x34f856],_0x2e2e82,{'type':'image/'+_0x52a7f8}));}}class O extends _0x3d5f59{['imageEditController'];static get['requires'](){return[_0x4d37fc];}['_isEditable'];constructor(_0x3ddac1){super(_0x3ddac1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1dbdfd){const _0x1098a9=G(_0x1dbdfd);return _0x276918=>!(!_0x276918||!_0x276918['is']('element','imageBlock')&&!_0x276918['is']('element','imageInline'))&&(!!_0x276918['hasAttribute']('uploadcareImageId')||!!_0x276918['hasAttribute']('src')&&_0x1098a9(_0x276918['getAttribute']('src')));}(_0x3ddac1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4f1602=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4f1602);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x497703=this['editor']['model']['document']['selection']['getSelectedElement']();_0x497703&&(_0x497703['is']('element','imageBlock')||_0x497703['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4d37fc),_0x497703),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x3d5f59{['refresh'](){const _0x5e1b9c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5e1b9c&&(_0x5e1b9c['is']('element','imageBlock')||_0x5e1b9c['is']('element','imageInline')));}['execute'](_0x499b57){const _0x5f52b0=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5ccc87=>{_0x5ccc87['setAttributes'](_0x499b57,_0x5f52b0),_0x5ccc87['removeAttribute']('srcset',_0x5f52b0),_0x5ccc87['removeAttribute']('sizes',_0x5f52b0);});}}class m extends _0x53e594{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x515009,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x33f7cd}=this;_0x33f7cd['commands']['add']('uploadcareImageEdit',new O(_0x33f7cd)),_0x33f7cd['commands']['add']('uploadcareImageReplace',new R(_0x33f7cd));}}class g extends _0x53e594{['_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 _0xac1e79=this['editor'];_0xac1e79['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4f2c90=>{const _0x154be1=_0xac1e79['commands']['get']('uploadcareImageEdit'),_0x173be2=new _0x28b5fa(_0x4f2c90),t=_0x4f2c90['t'];return _0x173be2['set']({'icon':_0x39c048,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x173be2['bind']('isEnabled')['to'](_0x154be1),_0x173be2['bind']('isOn')['to'](_0x154be1,'isActive'),this['listenTo'](_0x173be2,'execute',()=>{_0xac1e79['execute']('uploadcareImageEdit'),_0xac1e79['editing']['view']['focus']();}),_0x173be2;}),this['_initConfig']();}['_initConfig'](){const _0x6d777b=_0x4183e6(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x6d777b),this['listenTo'](this['editor'],'destroy',()=>{_0x6d777b['remove']();});}}class et extends _0x53e594{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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20260110.0",
3
+ "version": "0.0.0-nightly-20260111.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-20260110.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20260110.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20260110.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20260110.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20260110.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20260110.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20260110.0",
33
- "ckeditor5": "0.0.0-nightly-20260110.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20260111.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20260111.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20260111.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20260111.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20260111.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20260111.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20260111.0",
33
+ "ckeditor5": "0.0.0-nightly-20260111.0",
34
34
  "@uploadcare/file-uploader": "1.24.5",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b9035=_0x112e;(function(_0x2f3773,_0x318645){const _0x58a161=_0x112e,_0x376680=_0x2f3773();while(!![]){try{const _0x515de6=parseInt(_0x58a161(0xe7))/0x1+-parseInt(_0x58a161(0xf7))/0x2+-parseInt(_0x58a161(0x115))/0x3*(parseInt(_0x58a161(0x129))/0x4)+-parseInt(_0x58a161(0xe2))/0x5+-parseInt(_0x58a161(0xfb))/0x6+-parseInt(_0x58a161(0xd9))/0x7+-parseInt(_0x58a161(0xe5))/0x8*(-parseInt(_0x58a161(0xfa))/0x9);if(_0x515de6===_0x318645)break;else _0x376680['push'](_0x376680['shift']());}catch(_0x8d7b7b){_0x376680['push'](_0x376680['shift']());}}}(_0x54e8,0x86a84));import{Plugin as _0x1befe7}from'ckeditor5/src/core.js';import{Dialog as _0xadac9}from'ckeditor5/src/ui.js';import{createElement as _0x31bdbb,global as _0x1bd3f1,uid as _0x1bdfee}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x257369}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2faac2}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x8e1ea8}from'./utils/editingutils.js';function _0x112e(_0x52a355,_0x230f42){const _0x54e821=_0x54e8();return _0x112e=function(_0x112ef8,_0x1353fb){_0x112ef8=_0x112ef8-0xd8;let _0x3acf97=_0x54e821[_0x112ef8];return _0x3acf97;},_0x112e(_0x52a355,_0x230f42);}export class UploadcareEditing extends _0x1befe7{[_0x4b9035(0x116)]=null;[_0x4b9035(0xe0)]=null;static get[_0x4b9035(0x10f)](){const _0x1c699d=_0x4b9035;return _0x1c699d(0x108);}static get[_0x4b9035(0x11a)](){const _0x2cd65c=_0x4b9035;return[_0x2cd65c(0x119),_0x2faac2,_0xadac9];}static get[_0x4b9035(0x12b)](){return!0x0;}static get[_0x4b9035(0x125)](){return!0x0;}[_0x4b9035(0x11d)];get[_0x4b9035(0xeb)](){const _0x49ba15=_0x4b9035;return this[_0x49ba15(0x116)];}get[_0x4b9035(0xdb)](){const _0x5a4347=_0x4b9035;return this[_0x5a4347(0xe0)];}constructor(_0x3b9d55){const _0x5b909a=_0x4b9035;super(_0x3b9d55),this[_0x5b909a(0x11d)]=_0x1bdfee();}[_0x4b9035(0xfe)](){const _0x36fac7=_0x4b9035,_0x323f23=this[_0x36fac7(0xee)];_0x323f23[_0x36fac7(0xe1)][_0x36fac7(0x100)](_0x36fac7(0x102),new _0x257369(_0x323f23));}[_0x4b9035(0xec)](){const _0x51ac6b=_0x4b9035;this[_0x51ac6b(0xdc)](),this[_0x51ac6b(0x117)](),this[_0x51ac6b(0x127)](),this[_0x51ac6b(0x122)](),this[_0x51ac6b(0xe3)](),this[_0x51ac6b(0x121)](this[_0x51ac6b(0xee)],_0x51ac6b(0xf9),()=>{const _0x5c2269=_0x51ac6b;this[_0x5c2269(0x116)]&&(this[_0x5c2269(0x116)][_0x5c2269(0x10e)](),this[_0x5c2269(0x116)]=null),this[_0x5c2269(0xe0)]&&(this[_0x5c2269(0xe0)][_0x5c2269(0x10e)](),this[_0x5c2269(0xe0)]=null);const _0x194162=_0x1bd3f1[_0x5c2269(0xf3)][_0x5c2269(0x109)](_0x5c2269(0x111));_0x194162&&_0x194162[_0x5c2269(0x10e)]();}),async function(_0x5a8b28){const _0x5df5bc=_0x2b478e([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]),_0x585917=0x535f8c3a,_0x1a0651=0x5358f252^_0x585917,_0x4ca15f=window[_0x2b478e([0x44,0x61,0x74,0x65])][_0x2b478e([0x6e,0x6f,0x77])](),_0x35c504=_0x5a8b28[_0x2b478e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x111c4a=new window[(_0x2b478e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22c096=>{_0x35c504[_0x2b478e([0x6f,0x6e,0x63,0x65])](_0x2b478e([0x72,0x65,0x61,0x64,0x79]),_0x22c096);}),_0x30060c={[_0x2b478e([0x6b,0x74,0x79])]:_0x2b478e([0x45,0x43]),[_0x2b478e([0x75,0x73,0x65])]:_0x2b478e([0x73,0x69,0x67]),[_0x2b478e([0x63,0x72,0x76])]:_0x2b478e([0x50,0x2d,0x32,0x35,0x36]),[_0x2b478e([0x78])]:_0x2b478e([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]),[_0x2b478e([0x79])]:_0x2b478e([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]),[_0x2b478e([0x61,0x6c,0x67])]:_0x2b478e([0x45,0x53,0x32,0x35,0x36])},_0x2019be=_0x35c504[_0x2b478e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b478e([0x67,0x65,0x74])](_0x2b478e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a10e2(){let _0x37db59,_0x581fb5=null,_0x5a0701=null;try{if(_0x2019be==_0x2b478e([0x47,0x50,0x4c]))return _0x2b478e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x37db59=_0x51656f(),!_0x37db59)return _0x2b478e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x37db59[_0x2b478e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a0701=_0x1c38df(_0x37db59[_0x2b478e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x37db59[_0x2b478e([0x6a,0x74,0x69])])),await _0x1ff893()?_0x1206f4()?_0x2cd684()?_0x2b478e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47128e()?(_0x37db59[_0x2b478e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b478e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x581fb5=_0x5dc519(_0x2b478e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x415daa()):_0x2b478e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b478e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b478e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b478e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2cd684(){const _0x473ff6=[_0x2b478e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b478e([0x74,0x72,0x69,0x61,0x6c])][_0x2b478e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37db59[_0x2b478e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4ca15f/0x3e8:0xe10*_0x1a0651;return _0x37db59[_0x2b478e([0x65,0x78,0x70])]<_0x473ff6;}function _0x1206f4(){const _0x203340=_0x37db59[_0x2b478e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x203340&&(!!_0x203340[_0x2b478e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b478e([0x2a]))||!!_0x203340[_0x2b478e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b478e([0x55,0x50,0x4c,0x43])));}function _0x47128e(){const _0x31df19=_0x112e,_0x34bb1a=_0x37db59[_0x2b478e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x34bb1a||0x0==_0x34bb1a[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x34c712}=new URL(window[_0x2b478e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x31df19(0x10d)]);if(_0x34bb1a[_0x2b478e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34c712))return!0x0;const _0x405e7b=_0x34c712[_0x2b478e([0x73,0x70,0x6c,0x69,0x74])](_0x2b478e([0x2e]));return _0x34bb1a[_0x2b478e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1bc9a7=>_0x1bc9a7[_0x2b478e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b478e([0x2a])))[_0x2b478e([0x6d,0x61,0x70])](_0x5cb752=>_0x5cb752[_0x2b478e([0x73,0x70,0x6c,0x69,0x74])](_0x2b478e([0x2e])))[_0x2b478e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x44f7c5=>_0x44f7c5[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x405e7b[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b478e([0x6d,0x61,0x70])](_0x3d6514=>Array(_0x405e7b[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3d6514[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b478e([0x66,0x69,0x6c,0x6c])](_0x3d6514[0x0]===_0x2b478e([0x2a])?_0x2b478e([0x2a]):'')[_0x2b478e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3d6514))[_0x2b478e([0x73,0x6f,0x6d,0x65])](_0x51c1ff=>_0x405e7b[_0x2b478e([0x65,0x76,0x65,0x72,0x79])]((_0x48b84e,_0x1791f9)=>_0x51c1ff[_0x1791f9]===_0x48b84e||_0x51c1ff[_0x1791f9]===_0x2b478e([0x2a])));}function _0x415daa(){return _0x581fb5&&_0x5a0701?new window[(_0x2b478e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ad923,_0x3a8caa)=>{_0x581fb5[_0x2b478e([0x74,0x68,0x65,0x6e])](_0x3ad923,_0x3a8caa),_0x5a0701[_0x2b478e([0x74,0x68,0x65,0x6e])](_0x502203=>{_0x502203!=_0x2b478e([0x56,0x61,0x6c,0x69,0x64])&&_0x3ad923(_0x502203);},_0x3a8caa);}):_0x581fb5||_0x5a0701||_0x2b478e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c38df(_0x2aa0e3,_0x3fc80b){return new window[(_0x2b478e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x242e39=>{if(_0x26f902())return _0x242e39(_0x2b478e([0x56,0x61,0x6c,0x69,0x64]));_0x54c82e(),_0x35c504[_0x2b478e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b478e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2d534d=!0x1;const _0x519f92=_0x1bdfee();function _0x4bd89a(_0x4226e4){return!!_0x4226e4&&(typeof _0x4226e4===_0x2b478e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4226e4===_0x2b478e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4226e4[_0x2b478e([0x74,0x68,0x65,0x6e])]===_0x2b478e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4226e4[_0x2b478e([0x63,0x61,0x74,0x63,0x68])]===_0x2b478e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xcd451e(_0x2b80e5){_0x2cd65f(_0x2b80e5)[_0x2b478e([0x74,0x68,0x65,0x6e])](_0x1f58b0=>{if(!_0x1f58b0||_0x1f58b0[_0x2b478e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b478e([0x6f,0x6b]))return _0x2b478e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x364e37(_0x153220(_0x519f92+_0x3fc80b))!=_0x1f58b0[_0x2b478e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b478e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b478e([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b478e([0x74,0x68,0x65,0x6e])](_0x59696d=>(_0x3fec51(),_0x59696d),()=>{const _0x222ffc=_0x3c49ad();return null==_0x222ffc?(_0x3fec51(),_0x2b478e([0x56,0x61,0x6c,0x69,0x64])):_0x2b478e(_0x4ca15f-_0x222ffc>(0x7753083a^_0x585917)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b478e([0x74,0x68,0x65,0x6e])](_0x242e39)[_0x2b478e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x242e39(_0x2b478e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ec518=0x536962ba^_0x585917;function _0x3fec51(){const _0x2105a3=_0x2b478e([0x6c,0x6c,0x63,0x74,0x2d])+_0x364e37(_0x153220(_0x2aa0e3)),_0x90a6d1=_0x4c7375(_0x364e37(window[_0x2b478e([0x4d,0x61,0x74,0x68])][_0x2b478e([0x63,0x65,0x69,0x6c])](_0x4ca15f/_0x5ec518)));window[_0x2b478e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b478e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2105a3,_0x90a6d1);}function _0x3c49ad(){const _0x2c500f=_0x2b478e([0x6c,0x6c,0x63,0x74,0x2d])+_0x364e37(_0x153220(_0x2aa0e3)),_0x479e2e=window[_0x2b478e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b478e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c500f);return _0x479e2e?window[_0x2b478e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c7375(_0x479e2e),0x10)*_0x5ec518:null;}function _0x2cd65f(_0x50a4d1){return new window[(_0x2b478e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f439b,_0x50a278)=>{_0x50a4d1[_0x2b478e([0x74,0x68,0x65,0x6e])](_0x4f439b,_0x50a278),window[_0x2b478e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x50a278,0x535e58fa^_0x585917);});}}_0x35c504[_0x2b478e([0x6f,0x6e])](_0x2b478e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f6372,_0x498272)=>{if(_0x498272[0x0]!=_0x2aa0e3)return _0x242e39(_0x2b478e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x498272[0x1]={..._0x498272[0x1],[_0x2b478e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x519f92};},{[_0x2b478e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b478e([0x68,0x69,0x67,0x68])}),_0x35c504[_0x2b478e([0x6f,0x6e])](_0x2b478e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x477679=>{_0x4bd89a(_0x477679[_0x2b478e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2d534d=!0x0,_0xcd451e(_0x477679[_0x2b478e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b478e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b478e([0x6c,0x6f,0x77])}),_0x111c4a[_0x2b478e([0x74,0x68,0x65,0x6e])](()=>{_0x2d534d||_0x242e39(_0x2b478e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x26f902(){return _0x35c504[_0x2b478e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b478e([0x76,0x69,0x65,0x77])][_0x2b478e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b478e([0x61,0x75,0x74,0x6f]);}function _0x54c82e(){_0x35c504[_0x2b478e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b478e([0x76,0x69,0x65,0x77])][_0x2b478e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b478e([0x61,0x75,0x74,0x6f]);}}function _0x5dc519(_0x517569){const _0x5ca037=[new window[(_0x2b478e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54a389=>setTimeout(_0x54a389,0x5356b2f6^_0x585917)),_0x111c4a[_0x2b478e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b478e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a2d2c=>{let _0x2be205=0x0;_0x35c504[_0x2b478e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b478e([0x6f,0x6e])](_0x2b478e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x27f306,_0x5515a4)=>{_0x5515a4[0x0][_0x2b478e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2be205++,_0x2be205==(0x535f89d2^_0x585917)&&(_0x4a2d2c(),_0x27f306[_0x2b478e([0x6f,0x66,0x66])]());});}))];return window[_0x2b478e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b478e([0x72,0x61,0x63,0x65])](_0x5ca037)[_0x2b478e([0x74,0x68,0x65,0x6e])](()=>_0x517569);}async function _0x1cfa6a(){await _0x111c4a,_0x35c504[_0x2b478e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b478e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xbcf771,_0x35c504[_0x2b478e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b478e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xbcf771,_0x35c504[_0x2b478e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b478e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x42ef0f(_0x603000){const _0x2803a4=_0x1b86e9();_0x35c504[_0x2803a4]=_0x2b478e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x603000,_0x603000!=_0x2b478e([0x56,0x61,0x6c,0x69,0x64])&&_0x1cfa6a();}function _0x1b86e9(){const _0x4b765f=window[_0x2b478e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b478e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b478e([0x6e,0x6f,0x77])]())[_0x2b478e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b478e([0x2e]),'');let _0x3a1d43=_0x2b478e([0x68]);for(let _0xe6c965=0x0;_0xe6c965<_0x4b765f[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe6c965+=0x2){let _0x5f43b0=window[_0x2b478e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b765f[_0x2b478e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe6c965,_0xe6c965+0x2));_0x5f43b0>=_0x5df5bc[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5f43b0-=_0x5df5bc[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3a1d43+=_0x5df5bc[_0x5f43b0];}return _0x3a1d43;}function _0x51656f(){const _0x18920e=_0x2019be[_0x2b478e([0x73,0x70,0x6c,0x69,0x74])](_0x2b478e([0x2e]));if(0x3!=_0x18920e[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x374444(_0x18920e[0x1]);function _0x374444(_0x3e245f){const _0x30a406=_0x3802d3(_0x3e245f);return _0x30a406&&_0x46baf3()?_0x30a406:null;function _0x46baf3(){const _0x5911f7=_0x30a406[_0x2b478e([0x6a,0x74,0x69])],_0x36f96c=window[_0x2b478e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5911f7[_0x2b478e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5911f7[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x366ff9={..._0x30a406,[_0x2b478e([0x6a,0x74,0x69])]:_0x5911f7[_0x2b478e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5911f7[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x366ff9[_0x2b478e([0x76,0x63])],_0x153220(_0x366ff9)==_0x36f96c;}}}async function _0x1ff893(){let _0x39e75e=!0x0;try{const _0x281e4f=_0x2019be[_0x2b478e([0x73,0x70,0x6c,0x69,0x74])](_0x2b478e([0x2e])),[_0x429001,_0x502a38,_0x443b50]=_0x281e4f;return _0x51632c(_0x429001),await _0x2ac060(_0x429001,_0x502a38,_0x443b50),_0x39e75e;}catch{return!0x1;}function _0x51632c(_0xf09b74){const _0x574b64=_0x3802d3(_0xf09b74);_0x574b64&&_0x574b64[_0x2b478e([0x61,0x6c,0x67])]==_0x2b478e([0x45,0x53,0x32,0x35,0x36])||(_0x39e75e=!0x1);}async function _0x2ac060(_0x337224,_0xc3e761,_0x5aee1a){const _0x3480ae=window[_0x2b478e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b478e([0x66,0x72,0x6f,0x6d])](_0x2561f9(_0x5aee1a),_0x3103d7=>_0x3103d7[_0x2b478e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x289a51=new window[(_0x2b478e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b478e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x337224+_0x2b478e([0x2e])+_0xc3e761),_0x334cca=window[_0x2b478e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b478e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x334cca)return;const _0x470e39=await _0x334cca[_0x2b478e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b478e([0x6a,0x77,0x6b]),_0x30060c,{[_0x2b478e([0x6e,0x61,0x6d,0x65])]:_0x2b478e([0x45,0x43,0x44,0x53,0x41]),[_0x2b478e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b478e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b478e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x334cca[_0x2b478e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b478e([0x6e,0x61,0x6d,0x65])]:_0x2b478e([0x45,0x43,0x44,0x53,0x41]),[_0x2b478e([0x68,0x61,0x73,0x68])]:{[_0x2b478e([0x6e,0x61,0x6d,0x65])]:_0x2b478e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x470e39,_0x3480ae,_0x289a51)||(_0x39e75e=!0x1);}}function _0x3802d3(_0x20a964){return _0x20a964[_0x2b478e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b478e([0x65,0x79]))?JSON[_0x2b478e([0x70,0x61,0x72,0x73,0x65])](_0x2561f9(_0x20a964)):null;}function _0x2561f9(_0x27724f){return window[_0x2b478e([0x61,0x74,0x6f,0x62])](_0x27724f[_0x2b478e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b478e([0x2b]))[_0x2b478e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b478e([0x2f])));}function _0x153220(_0x3ef857){let _0x4d5ee5=0x1505;function _0x27b010(_0xc3d15){for(let _0x5d96d6=0x0;_0x5d96d6<_0xc3d15[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d96d6++){const _0x2392c5=_0xc3d15[_0x2b478e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5d96d6);_0x4d5ee5=(_0x4d5ee5<<0x5)+_0x4d5ee5+_0x2392c5,_0x4d5ee5&=_0x4d5ee5;}}function _0x1a0db3(_0x2ab5bb){Array[_0x2b478e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ab5bb)?_0x2ab5bb[_0x2b478e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a0db3):_0x2ab5bb&&typeof _0x2ab5bb==_0x2b478e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b478e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ab5bb)[_0x2b478e([0x73,0x6f,0x72,0x74])]()[_0x2b478e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40887a,_0x3619e6])=>{_0x27b010(_0x40887a),_0x1a0db3(_0x3619e6);}):_0x27b010(window[_0x2b478e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ab5bb));}return _0x1a0db3(_0x3ef857),_0x4d5ee5>>>0x0;}function _0x364e37(_0x42c514){return _0x42c514[_0x2b478e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b478e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b478e([0x30]));}function _0x4c7375(_0x1b4daf){return _0x1b4daf[_0x2b478e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b478e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b478e([0x6a,0x6f,0x69,0x6e])]('');}function _0xbcf771(){}function _0x2b478e(_0x579d77){const _0x4e67bd=_0x112e;return _0x579d77[_0x4e67bd(0xed)](_0x4e1ede=>String[_0x4e67bd(0x11e)](_0x4e1ede))[_0x4e67bd(0xf1)]('');}_0x42ef0f(await _0x2a10e2());}(this);}[_0x4b9035(0xdc)](){const _0x13272e=_0x4b9035,_0x3916c4=this[_0x13272e(0xee)][_0x13272e(0x112)][_0x13272e(0xe6)];_0x3916c4[_0x13272e(0x10a)](_0x13272e(0x10c))&&_0x3916c4[_0x13272e(0x105)](_0x13272e(0x10c),{'allowAttributes':[_0x13272e(0xda)]}),_0x3916c4[_0x13272e(0x10a)](_0x13272e(0xe9))&&_0x3916c4[_0x13272e(0x105)](_0x13272e(0xe9),{'allowAttributes':[_0x13272e(0xda)]});}[_0x4b9035(0x117)](){const _0x8bcc82=_0x4b9035,_0x30c0d4=this[_0x8bcc82(0xee)];_0x30c0d4[_0x8bcc82(0xdd)][_0x8bcc82(0x128)](_0x8bcc82(0x120))[_0x8bcc82(0x12a)]({'model':_0x8bcc82(0xda),'view':_0x8bcc82(0xfc)}),_0x30c0d4[_0x8bcc82(0xdd)][_0x8bcc82(0x128)](_0x8bcc82(0x110))[_0x8bcc82(0x10b)]({'model':{'key':_0x8bcc82(0xda),'value':_0x5744d5=>_0x5744d5[_0x8bcc82(0xf0)](_0x8bcc82(0xfc))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2cfa21=_0x30c0d4[_0x8bcc82(0xe1)][_0x8bcc82(0xef)](_0x8bcc82(0xf4));_0x2cfa21&&this[_0x8bcc82(0x121)](_0x2cfa21,_0x8bcc82(0x11b),(_0x228548,[_0x2bcc8c,_0x4bfc97])=>{const _0x461364=_0x8bcc82;_0x2bcc8c[_0x461364(0xf2)](_0x461364(0xda),_0x4bfc97);});}[_0x4b9035(0x127)](){const _0x325358=_0x4b9035,_0x208f50=this[_0x325358(0xee)][_0x325358(0x106)][_0x325358(0xef)](_0x325358(0x126))||{},_0x623764=this[_0x325358(0xee)][_0x325358(0x106)][_0x325358(0xef)](_0x325358(0xea))||'';this[_0x325358(0x116)]=_0x31bdbb(_0x1bd3f1[_0x325358(0xf3)],_0x325358(0xf8),{..._0x208f50,'pubkey':_0x623764,'ctx-name':_0x325358(0xf6)+this[_0x325358(0x11d)],'sourceList':'','imgOnly':_0x325358(0x118),'removeCopyright':_0x325358(0x118),'localeName':this[_0x325358(0xee)][_0x325358(0xdf)][_0x325358(0x103)],'externalSourcesEmbedCss':_0x325358(0x107)}),this[_0x325358(0x116)][_0x325358(0xde)]=_0x1ead87=>{const _0x467262=_0x325358;if(_0x467262(0xe8)==_0x1ead87)return _0x467262(0xe4);},_0x1bd3f1[_0x325358(0xf3)][_0x325358(0xf5)][_0x325358(0x104)](this[_0x325358(0x116)]);}[_0x4b9035(0x122)](){const _0x23c1b7=_0x4b9035;this[_0x23c1b7(0xe0)]=_0x31bdbb(_0x1bd3f1[_0x23c1b7(0xf3)],_0x23c1b7(0x113),{'ctx-name':_0x23c1b7(0xf6)+this[_0x23c1b7(0x11d)]}),_0x1bd3f1[_0x23c1b7(0xf3)][_0x23c1b7(0xf5)][_0x23c1b7(0x104)](this[_0x23c1b7(0xe0)]);}[_0x4b9035(0xe3)](){const _0x40f7c5=_0x4b9035,_0xcc25f9=this[_0x40f7c5(0xee)][_0x40f7c5(0xe1)][_0x40f7c5(0xef)](_0x40f7c5(0x123));_0xcc25f9&&this[_0x40f7c5(0x121)](_0xcc25f9,_0x40f7c5(0xfd),()=>{const _0x22be1a=_0x40f7c5,_0x29ec97=this[_0x22be1a(0xee)][_0x22be1a(0x112)][_0x22be1a(0xf3)][_0x22be1a(0x114)][_0x22be1a(0x11f)]();_0x29ec97&&_0x29ec97[_0x22be1a(0xf0)](_0x22be1a(0xda))&&this[_0x22be1a(0xee)][_0x22be1a(0x101)][_0x22be1a(0xd8)][_0x22be1a(0x124)](_0x22be1a(0xff),()=>{const _0xd49a3c=_0x22be1a;_0x8e1ea8(this[_0xd49a3c(0xee)],_0x29ec97);});});const _0x491d46=this[_0x40f7c5(0xee)][_0x40f7c5(0xe1)][_0x40f7c5(0xef)](_0x40f7c5(0x11c));_0x491d46&&this[_0x40f7c5(0x121)](_0x491d46,_0x40f7c5(0xfd),()=>{const _0x21fce8=_0x40f7c5,_0x5cfd31=this[_0x21fce8(0xee)][_0x21fce8(0x112)][_0x21fce8(0xf3)][_0x21fce8(0x114)][_0x21fce8(0x11f)]();_0x5cfd31&&_0x5cfd31[_0x21fce8(0xf0)](_0x21fce8(0xda))&&this[_0x21fce8(0xee)][_0x21fce8(0x101)][_0x21fce8(0xd8)][_0x21fce8(0x124)](_0x21fce8(0xff),()=>{const _0x47669e=_0x21fce8;_0x8e1ea8(this[_0x47669e(0xee)],_0x5cfd31);});});}}function _0x54e8(){const _0x5d120c=['model','uc-upload-ctx-provider','selection','4164yVlFRo','_configElement','_initConversion','true','PictureEditing','requires','cleanupImage','uploadcareImageReplace','ucContextId','fromCharCode','getSelectedElement','downcast','listenTo','_initCtx','insertImage','once','isPremiumPlugin','uploadcare.uploader','_initConfig','for','1124MTvNBz','attributeToAttribute','isOfficialPlugin','view','3136742lBzPfg','uploadcareImageId','ctxElement','_initSchema','conversion','iconHrefResolver','locale','_ctxElement','commands','1014835VDIsUx','_initImageProcessingIndicator','#uc-icon-arrow-down','400aDfhJP','schema','870941HQlOrq','closeMax','imageInline','uploadcare.pubkey','configElement','afterInit','map','editor','get','getAttribute','join','removeAttribute','document','replaceImageSource','body','uploader-','945250wPqLlS','uc-config','destroy','284913HgTtMa','2331054JCtbRb','data-uc-image-id','execute','init','render','add','editing','uploadcare','contentLanguage','appendChild','extend','config','\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','UploadcareEditing','querySelector','isRegistered','elementToAttribute','imageBlock','href','remove','pluginName','upcast','input[uploadcare-file-input]'];_0x54e8=function(){return _0x5d120c;};return _0x54e8();}
23
+ const _0xfb1053=_0x5257;(function(_0x516eb3,_0x5abcf1){const _0x46b759=_0x5257,_0x138b5b=_0x516eb3();while(!![]){try{const _0x47913e=-parseInt(_0x46b759(0x1f5))/0x1+parseInt(_0x46b759(0x1ec))/0x2+parseInt(_0x46b759(0x210))/0x3*(parseInt(_0x46b759(0x1dd))/0x4)+parseInt(_0x46b759(0x200))/0x5*(parseInt(_0x46b759(0x1c6))/0x6)+parseInt(_0x46b759(0x1e7))/0x7*(parseInt(_0x46b759(0x1e8))/0x8)+parseInt(_0x46b759(0x1c3))/0x9+parseInt(_0x46b759(0x1c5))/0xa*(-parseInt(_0x46b759(0x208))/0xb);if(_0x47913e===_0x5abcf1)break;else _0x138b5b['push'](_0x138b5b['shift']());}catch(_0x4e16e0){_0x138b5b['push'](_0x138b5b['shift']());}}}(_0x1080,0x3fc2a));function _0x1080(){const _0x5a5420=['ucContextId','querySelector','view','getAttribute','164815JwBhjl','init','model','\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','href','commands','true','schema','11xYxkmM','join','contentLanguage','input[uploadcare-file-input]','downcast','locale','editor','attributeToAttribute','15cHWjrc','elementToAttribute','_configElement','destroy','remove','imageBlock','uploader-','afterInit','uploadcareImageReplace','2998755QwzWSt','isPremiumPlugin','3793190SlWhFC','6UdZMbR','requires','data-uc-image-id','configElement','appendChild','config','conversion','#uc-icon-arrow-down','replaceImageSource','document','get','body','UploadcareEditing','uploadcare','uploadcareImageId','_ctxElement','_initCtx','execute','ctxElement','imageInline','map','removeAttribute','once','231780DUgfkI','upcast','insertImage','_initConversion','fromCharCode','listenTo','editing','uploadcare.uploader','isOfficialPlugin','closeMax','49VJbmCS','15032WOyrvc','isRegistered','pluginName','cleanupImage','279466KCOOBC','_initSchema','uc-upload-ctx-provider','uc-config','extend','_initConfig','render','getSelectedElement','uploadcare.pubkey','168288juCfmj','for','_initImageProcessingIndicator','selection','iconHrefResolver','add','PictureEditing'];_0x1080=function(){return _0x5a5420;};return _0x1080();}import{Plugin as _0x36c488}from'ckeditor5/src/core.js';import{Dialog as _0x1c1c75}from'ckeditor5/src/ui.js';import{createElement as _0x2e7ab8,global as _0x3b6cb3,uid as _0x4a600b}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0xbb9ed0}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x337618}from'./uploadcareuploadadapter.js';function _0x5257(_0x4535ac,_0x1b1972){const _0x10800b=_0x1080();return _0x5257=function(_0x525720,_0x2c0ec3){_0x525720=_0x525720-0x1c3;let _0x1c61dc=_0x10800b[_0x525720];return _0x1c61dc;},_0x5257(_0x4535ac,_0x1b1972);}import{showImageProcessingIndicator as _0x596c78}from'./utils/editingutils.js';export class UploadcareEditing extends _0x36c488{[_0xfb1053(0x212)]=null;[_0xfb1053(0x1d5)]=null;static get[_0xfb1053(0x1ea)](){const _0x47c55f=_0xfb1053;return _0x47c55f(0x1d2);}static get[_0xfb1053(0x1c7)](){const _0x2bccae=_0xfb1053;return[_0x2bccae(0x1fb),_0x337618,_0x1c1c75];}static get[_0xfb1053(0x1e5)](){return!0x0;}static get[_0xfb1053(0x1c4)](){return!0x0;}[_0xfb1053(0x1fc)];get[_0xfb1053(0x1c9)](){const _0x1e0411=_0xfb1053;return this[_0x1e0411(0x212)];}get[_0xfb1053(0x1d8)](){const _0x47830c=_0xfb1053;return this[_0x47830c(0x1d5)];}constructor(_0x5cf6fd){const _0x3717ff=_0xfb1053;super(_0x5cf6fd),this[_0x3717ff(0x1fc)]=_0x4a600b();}[_0xfb1053(0x201)](){const _0x4f7343=_0xfb1053,_0x342ca4=this[_0x4f7343(0x20e)];_0x342ca4[_0x4f7343(0x205)][_0x4f7343(0x1fa)](_0x4f7343(0x1d3),new _0xbb9ed0(_0x342ca4));}[_0xfb1053(0x217)](){const _0x5c817a=_0xfb1053;this[_0x5c817a(0x1ed)](),this[_0x5c817a(0x1e0)](),this[_0x5c817a(0x1f1)](),this[_0x5c817a(0x1d6)](),this[_0x5c817a(0x1f7)](),this[_0x5c817a(0x1e2)](this[_0x5c817a(0x20e)],_0x5c817a(0x213),()=>{const _0xc66d5a=_0x5c817a;this[_0xc66d5a(0x212)]&&(this[_0xc66d5a(0x212)][_0xc66d5a(0x214)](),this[_0xc66d5a(0x212)]=null),this[_0xc66d5a(0x1d5)]&&(this[_0xc66d5a(0x1d5)][_0xc66d5a(0x214)](),this[_0xc66d5a(0x1d5)]=null);const _0xb6ac69=_0x3b6cb3[_0xc66d5a(0x1cf)][_0xc66d5a(0x1fd)](_0xc66d5a(0x20b));_0xb6ac69&&_0xb6ac69[_0xc66d5a(0x214)]();}),async function(_0x4f3f41){const _0x1845a7=_0x2b7189([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]),_0x29d815=0x535f8c3a,_0x2c9c7c=0x5358f2ba^_0x29d815,_0x2293c2=window[_0x2b7189([0x44,0x61,0x74,0x65])][_0x2b7189([0x6e,0x6f,0x77])](),_0x479c4c=_0x4f3f41[_0x2b7189([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x127484=new window[(_0x2b7189([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10f0e8=>{_0x479c4c[_0x2b7189([0x6f,0x6e,0x63,0x65])](_0x2b7189([0x72,0x65,0x61,0x64,0x79]),_0x10f0e8);}),_0x1fc155={[_0x2b7189([0x6b,0x74,0x79])]:_0x2b7189([0x45,0x43]),[_0x2b7189([0x75,0x73,0x65])]:_0x2b7189([0x73,0x69,0x67]),[_0x2b7189([0x63,0x72,0x76])]:_0x2b7189([0x50,0x2d,0x32,0x35,0x36]),[_0x2b7189([0x78])]:_0x2b7189([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]),[_0x2b7189([0x79])]:_0x2b7189([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]),[_0x2b7189([0x61,0x6c,0x67])]:_0x2b7189([0x45,0x53,0x32,0x35,0x36])},_0x4095d7=_0x479c4c[_0x2b7189([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b7189([0x67,0x65,0x74])](_0x2b7189([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1636b3(){let _0x441b7f,_0x1605ae=null,_0x72d446=null;try{if(_0x4095d7==_0x2b7189([0x47,0x50,0x4c]))return _0x2b7189([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x441b7f=_0x614873(),!_0x441b7f)return _0x2b7189([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x441b7f[_0x2b7189([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x72d446=_0x416a9c(_0x441b7f[_0x2b7189([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x441b7f[_0x2b7189([0x6a,0x74,0x69])])),await _0x332560()?_0x19bffe()?_0x3b9f51()?_0x2b7189([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4152d6()?(_0x441b7f[_0x2b7189([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b7189([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1605ae=_0x1881a3(_0x2b7189([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xcb1896()):_0x2b7189([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b7189([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b7189([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b7189([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b9f51(){const _0xe184fb=[_0x2b7189([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b7189([0x74,0x72,0x69,0x61,0x6c])][_0x2b7189([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x441b7f[_0x2b7189([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2293c2/0x3e8:0xe10*_0x2c9c7c;return _0x441b7f[_0x2b7189([0x65,0x78,0x70])]<_0xe184fb;}function _0x19bffe(){const _0x128123=_0x441b7f[_0x2b7189([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x128123&&(!!_0x128123[_0x2b7189([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7189([0x2a]))||!!_0x128123[_0x2b7189([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7189([0x55,0x50,0x4c,0x43])));}function _0x4152d6(){const _0x5c7b98=_0x5257,_0x5aaeac=_0x441b7f[_0x2b7189([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5aaeac||0x0==_0x5aaeac[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2eb9e6}=new URL(window[_0x2b7189([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5c7b98(0x204)]);if(_0x5aaeac[_0x2b7189([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eb9e6))return!0x0;const _0x16b82b=_0x2eb9e6[_0x2b7189([0x73,0x70,0x6c,0x69,0x74])](_0x2b7189([0x2e]));return _0x5aaeac[_0x2b7189([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4aa445=>_0x4aa445[_0x2b7189([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7189([0x2a])))[_0x2b7189([0x6d,0x61,0x70])](_0xfa25d4=>_0xfa25d4[_0x2b7189([0x73,0x70,0x6c,0x69,0x74])](_0x2b7189([0x2e])))[_0x2b7189([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe5b283=>_0xe5b283[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x16b82b[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b7189([0x6d,0x61,0x70])](_0x3574f1=>Array(_0x16b82b[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3574f1[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b7189([0x66,0x69,0x6c,0x6c])](_0x3574f1[0x0]===_0x2b7189([0x2a])?_0x2b7189([0x2a]):'')[_0x2b7189([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3574f1))[_0x2b7189([0x73,0x6f,0x6d,0x65])](_0x57dd1c=>_0x16b82b[_0x2b7189([0x65,0x76,0x65,0x72,0x79])]((_0x3f0f37,_0x4cc13f)=>_0x57dd1c[_0x4cc13f]===_0x3f0f37||_0x57dd1c[_0x4cc13f]===_0x2b7189([0x2a])));}function _0xcb1896(){return _0x1605ae&&_0x72d446?new window[(_0x2b7189([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1bac1c,_0x5e01f3)=>{_0x1605ae[_0x2b7189([0x74,0x68,0x65,0x6e])](_0x1bac1c,_0x5e01f3),_0x72d446[_0x2b7189([0x74,0x68,0x65,0x6e])](_0x5cd4f8=>{_0x5cd4f8!=_0x2b7189([0x56,0x61,0x6c,0x69,0x64])&&_0x1bac1c(_0x5cd4f8);},_0x5e01f3);}):_0x1605ae||_0x72d446||_0x2b7189([0x56,0x61,0x6c,0x69,0x64]);}}function _0x416a9c(_0x2f2b86,_0x5d26fe){return new window[(_0x2b7189([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26dce4=>{if(_0x3ca122())return _0x26dce4(_0x2b7189([0x56,0x61,0x6c,0x69,0x64]));_0x154697(),_0x479c4c[_0x2b7189([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b7189([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17e98f=!0x1;const _0x5d834a=_0x4a600b();function _0x1c4ec4(_0x151e85){return!!_0x151e85&&(typeof _0x151e85===_0x2b7189([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x151e85===_0x2b7189([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x151e85[_0x2b7189([0x74,0x68,0x65,0x6e])]===_0x2b7189([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x151e85[_0x2b7189([0x63,0x61,0x74,0x63,0x68])]===_0x2b7189([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x17b0a7(_0x4bab29){_0x4146f4(_0x4bab29)[_0x2b7189([0x74,0x68,0x65,0x6e])](_0xbace89=>{if(!_0xbace89||_0xbace89[_0x2b7189([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b7189([0x6f,0x6b]))return _0x2b7189([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3394fe(_0x1c5310(_0x5d834a+_0x5d26fe))!=_0xbace89[_0x2b7189([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b7189([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b7189([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b7189([0x74,0x68,0x65,0x6e])](_0x39cb0d=>(_0x2bba7e(),_0x39cb0d),()=>{const _0x37a9e0=_0x4ff652();return null==_0x37a9e0?(_0x2bba7e(),_0x2b7189([0x56,0x61,0x6c,0x69,0x64])):_0x2b7189(_0x2293c2-_0x37a9e0>(0x7753083a^_0x29d815)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b7189([0x74,0x68,0x65,0x6e])](_0x26dce4)[_0x2b7189([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26dce4(_0x2b7189([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c0e0f=0x536962ba^_0x29d815;function _0x2bba7e(){const _0x5203be=_0x2b7189([0x6c,0x6c,0x63,0x74,0x2d])+_0x3394fe(_0x1c5310(_0x2f2b86)),_0x352d97=_0x39e0de(_0x3394fe(window[_0x2b7189([0x4d,0x61,0x74,0x68])][_0x2b7189([0x63,0x65,0x69,0x6c])](_0x2293c2/_0x3c0e0f)));window[_0x2b7189([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b7189([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5203be,_0x352d97);}function _0x4ff652(){const _0x109019=_0x2b7189([0x6c,0x6c,0x63,0x74,0x2d])+_0x3394fe(_0x1c5310(_0x2f2b86)),_0x2963c3=window[_0x2b7189([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b7189([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x109019);return _0x2963c3?window[_0x2b7189([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39e0de(_0x2963c3),0x10)*_0x3c0e0f:null;}function _0x4146f4(_0x54c804){return new window[(_0x2b7189([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b9c2f,_0x30137a)=>{_0x54c804[_0x2b7189([0x74,0x68,0x65,0x6e])](_0x5b9c2f,_0x30137a),window[_0x2b7189([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x30137a,0x535e58fa^_0x29d815);});}}_0x479c4c[_0x2b7189([0x6f,0x6e])](_0x2b7189([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42d54b,_0x122f95)=>{if(_0x122f95[0x0]!=_0x2f2b86)return _0x26dce4(_0x2b7189([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x122f95[0x1]={..._0x122f95[0x1],[_0x2b7189([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d834a};},{[_0x2b7189([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b7189([0x68,0x69,0x67,0x68])}),_0x479c4c[_0x2b7189([0x6f,0x6e])](_0x2b7189([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19dd4b=>{_0x1c4ec4(_0x19dd4b[_0x2b7189([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17e98f=!0x0,_0x17b0a7(_0x19dd4b[_0x2b7189([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b7189([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b7189([0x6c,0x6f,0x77])}),_0x127484[_0x2b7189([0x74,0x68,0x65,0x6e])](()=>{_0x17e98f||_0x26dce4(_0x2b7189([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3ca122(){return _0x479c4c[_0x2b7189([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b7189([0x76,0x69,0x65,0x77])][_0x2b7189([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b7189([0x61,0x75,0x74,0x6f]);}function _0x154697(){_0x479c4c[_0x2b7189([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b7189([0x76,0x69,0x65,0x77])][_0x2b7189([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b7189([0x61,0x75,0x74,0x6f]);}}function _0x1881a3(_0xd23cd2){const _0x11ef84=[new window[(_0x2b7189([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b4804=>setTimeout(_0x5b4804,0x5356b2f6^_0x29d815)),_0x127484[_0x2b7189([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b7189([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17d780=>{let _0x2d1b7e=0x0;_0x479c4c[_0x2b7189([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7189([0x6f,0x6e])](_0x2b7189([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x476071,_0x514b52)=>{_0x514b52[0x0][_0x2b7189([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d1b7e++,_0x2d1b7e==(0x535f89d2^_0x29d815)&&(_0x17d780(),_0x476071[_0x2b7189([0x6f,0x66,0x66])]());});}))];return window[_0x2b7189([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b7189([0x72,0x61,0x63,0x65])](_0x11ef84)[_0x2b7189([0x74,0x68,0x65,0x6e])](()=>_0xd23cd2);}async function _0x3656bd(){await _0x127484,_0x479c4c[_0x2b7189([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7189([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d3259,_0x479c4c[_0x2b7189([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7189([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d3259,_0x479c4c[_0x2b7189([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b7189([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1f26a2(_0x2bc953){const _0x5eedd1=_0x3cc95d();_0x479c4c[_0x5eedd1]=_0x2b7189([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2bc953,_0x2bc953!=_0x2b7189([0x56,0x61,0x6c,0x69,0x64])&&_0x3656bd();}function _0x3cc95d(){const _0x34c3bc=window[_0x2b7189([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b7189([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b7189([0x6e,0x6f,0x77])]())[_0x2b7189([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b7189([0x2e]),'');let _0xdb9230=_0x2b7189([0x68]);for(let _0x29cb5c=0x0;_0x29cb5c<_0x34c3bc[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29cb5c+=0x2){let _0x55df26=window[_0x2b7189([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34c3bc[_0x2b7189([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29cb5c,_0x29cb5c+0x2));_0x55df26>=_0x1845a7[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55df26-=_0x1845a7[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xdb9230+=_0x1845a7[_0x55df26];}return _0xdb9230;}function _0x614873(){const _0x225608=_0x4095d7[_0x2b7189([0x73,0x70,0x6c,0x69,0x74])](_0x2b7189([0x2e]));if(0x3!=_0x225608[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x593e33(_0x225608[0x1]);function _0x593e33(_0x549e2c){const _0x5d88a9=_0x4e4911(_0x549e2c);return _0x5d88a9&&_0x4ee4fd()?_0x5d88a9:null;function _0x4ee4fd(){const _0x336512=_0x5d88a9[_0x2b7189([0x6a,0x74,0x69])],_0x4d1910=window[_0x2b7189([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x336512[_0x2b7189([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x336512[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xf99d4a={..._0x5d88a9,[_0x2b7189([0x6a,0x74,0x69])]:_0x336512[_0x2b7189([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x336512[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xf99d4a[_0x2b7189([0x76,0x63])],_0x1c5310(_0xf99d4a)==_0x4d1910;}}}async function _0x332560(){let _0x13ad93=!0x0;try{const _0x55b09c=_0x4095d7[_0x2b7189([0x73,0x70,0x6c,0x69,0x74])](_0x2b7189([0x2e])),[_0x397d98,_0x4a10ff,_0x22eca3]=_0x55b09c;return _0x4f51b2(_0x397d98),await _0x99ca6b(_0x397d98,_0x4a10ff,_0x22eca3),_0x13ad93;}catch{return!0x1;}function _0x4f51b2(_0x1d41a3){const _0x26c011=_0x4e4911(_0x1d41a3);_0x26c011&&_0x26c011[_0x2b7189([0x61,0x6c,0x67])]==_0x2b7189([0x45,0x53,0x32,0x35,0x36])||(_0x13ad93=!0x1);}async function _0x99ca6b(_0x224af6,_0x1c5f6f,_0x3a9214){const _0x517636=window[_0x2b7189([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b7189([0x66,0x72,0x6f,0x6d])](_0x142456(_0x3a9214),_0x56836c=>_0x56836c[_0x2b7189([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x7011c7=new window[(_0x2b7189([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b7189([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x224af6+_0x2b7189([0x2e])+_0x1c5f6f),_0x411beb=window[_0x2b7189([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b7189([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x411beb)return;const _0x6dbb85=await _0x411beb[_0x2b7189([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b7189([0x6a,0x77,0x6b]),_0x1fc155,{[_0x2b7189([0x6e,0x61,0x6d,0x65])]:_0x2b7189([0x45,0x43,0x44,0x53,0x41]),[_0x2b7189([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b7189([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b7189([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x411beb[_0x2b7189([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b7189([0x6e,0x61,0x6d,0x65])]:_0x2b7189([0x45,0x43,0x44,0x53,0x41]),[_0x2b7189([0x68,0x61,0x73,0x68])]:{[_0x2b7189([0x6e,0x61,0x6d,0x65])]:_0x2b7189([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x6dbb85,_0x517636,_0x7011c7)||(_0x13ad93=!0x1);}}function _0x4e4911(_0x434beb){return _0x434beb[_0x2b7189([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b7189([0x65,0x79]))?JSON[_0x2b7189([0x70,0x61,0x72,0x73,0x65])](_0x142456(_0x434beb)):null;}function _0x142456(_0x61acea){return window[_0x2b7189([0x61,0x74,0x6f,0x62])](_0x61acea[_0x2b7189([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b7189([0x2b]))[_0x2b7189([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b7189([0x2f])));}function _0x1c5310(_0x496856){let _0xcf4197=0x1505;function _0x5f4025(_0x132972){for(let _0x295a49=0x0;_0x295a49<_0x132972[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x295a49++){const _0x491887=_0x132972[_0x2b7189([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x295a49);_0xcf4197=(_0xcf4197<<0x5)+_0xcf4197+_0x491887,_0xcf4197&=_0xcf4197;}}function _0x39ee40(_0x4bf865){Array[_0x2b7189([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4bf865)?_0x4bf865[_0x2b7189([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x39ee40):_0x4bf865&&typeof _0x4bf865==_0x2b7189([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b7189([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4bf865)[_0x2b7189([0x73,0x6f,0x72,0x74])]()[_0x2b7189([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16abc6,_0x52fdf4])=>{_0x5f4025(_0x16abc6),_0x39ee40(_0x52fdf4);}):_0x5f4025(window[_0x2b7189([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4bf865));}return _0x39ee40(_0x496856),_0xcf4197>>>0x0;}function _0x3394fe(_0x59bf79){return _0x59bf79[_0x2b7189([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b7189([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b7189([0x30]));}function _0x39e0de(_0x1b0183){return _0x1b0183[_0x2b7189([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b7189([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b7189([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d3259(){}function _0x2b7189(_0x3dfe4e){const _0x12e708=_0x5257;return _0x3dfe4e[_0x12e708(0x1da)](_0x3cf4f7=>String[_0x12e708(0x1e1)](_0x3cf4f7))[_0x12e708(0x209)]('');}_0x1f26a2(await _0x1636b3());}(this);}[_0xfb1053(0x1ed)](){const _0x53fd6b=_0xfb1053,_0x32b104=this[_0x53fd6b(0x20e)][_0x53fd6b(0x202)][_0x53fd6b(0x207)];_0x32b104[_0x53fd6b(0x1e9)](_0x53fd6b(0x215))&&_0x32b104[_0x53fd6b(0x1f0)](_0x53fd6b(0x215),{'allowAttributes':[_0x53fd6b(0x1d4)]}),_0x32b104[_0x53fd6b(0x1e9)](_0x53fd6b(0x1d9))&&_0x32b104[_0x53fd6b(0x1f0)](_0x53fd6b(0x1d9),{'allowAttributes':[_0x53fd6b(0x1d4)]});}[_0xfb1053(0x1e0)](){const _0x3f3150=_0xfb1053,_0x4f853f=this[_0x3f3150(0x20e)];_0x4f853f[_0x3f3150(0x1cc)][_0x3f3150(0x1f6)](_0x3f3150(0x20c))[_0x3f3150(0x20f)]({'model':_0x3f3150(0x1d4),'view':_0x3f3150(0x1c8)}),_0x4f853f[_0x3f3150(0x1cc)][_0x3f3150(0x1f6)](_0x3f3150(0x1de))[_0x3f3150(0x211)]({'model':{'key':_0x3f3150(0x1d4),'value':_0x56391a=>_0x56391a[_0x3f3150(0x1ff)](_0x3f3150(0x1c8))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x23babc=_0x4f853f[_0x3f3150(0x205)][_0x3f3150(0x1d0)](_0x3f3150(0x1ce));_0x23babc&&this[_0x3f3150(0x1e2)](_0x23babc,_0x3f3150(0x1eb),(_0x152483,[_0x205f23,_0xd44d4d])=>{const _0x156a5e=_0x3f3150;_0x205f23[_0x156a5e(0x1db)](_0x156a5e(0x1d4),_0xd44d4d);});}[_0xfb1053(0x1f1)](){const _0x548fd2=_0xfb1053,_0x733f35=this[_0x548fd2(0x20e)][_0x548fd2(0x1cb)][_0x548fd2(0x1d0)](_0x548fd2(0x1e4))||{},_0x2f1f05=this[_0x548fd2(0x20e)][_0x548fd2(0x1cb)][_0x548fd2(0x1d0)](_0x548fd2(0x1f4))||'';this[_0x548fd2(0x212)]=_0x2e7ab8(_0x3b6cb3[_0x548fd2(0x1cf)],_0x548fd2(0x1ef),{..._0x733f35,'pubkey':_0x2f1f05,'ctx-name':_0x548fd2(0x216)+this[_0x548fd2(0x1fc)],'sourceList':'','imgOnly':_0x548fd2(0x206),'removeCopyright':_0x548fd2(0x206),'localeName':this[_0x548fd2(0x20e)][_0x548fd2(0x20d)][_0x548fd2(0x20a)],'externalSourcesEmbedCss':_0x548fd2(0x203)}),this[_0x548fd2(0x212)][_0x548fd2(0x1f9)]=_0x5be43f=>{const _0x13fd1c=_0x548fd2;if(_0x13fd1c(0x1e6)==_0x5be43f)return _0x13fd1c(0x1cd);},_0x3b6cb3[_0x548fd2(0x1cf)][_0x548fd2(0x1d1)][_0x548fd2(0x1ca)](this[_0x548fd2(0x212)]);}[_0xfb1053(0x1d6)](){const _0xe35143=_0xfb1053;this[_0xe35143(0x1d5)]=_0x2e7ab8(_0x3b6cb3[_0xe35143(0x1cf)],_0xe35143(0x1ee),{'ctx-name':_0xe35143(0x216)+this[_0xe35143(0x1fc)]}),_0x3b6cb3[_0xe35143(0x1cf)][_0xe35143(0x1d1)][_0xe35143(0x1ca)](this[_0xe35143(0x1d5)]);}[_0xfb1053(0x1f7)](){const _0x1bdb60=_0xfb1053,_0x5e7909=this[_0x1bdb60(0x20e)][_0x1bdb60(0x205)][_0x1bdb60(0x1d0)](_0x1bdb60(0x1df));_0x5e7909&&this[_0x1bdb60(0x1e2)](_0x5e7909,_0x1bdb60(0x1d7),()=>{const _0x695351=_0x1bdb60,_0x39d7bf=this[_0x695351(0x20e)][_0x695351(0x202)][_0x695351(0x1cf)][_0x695351(0x1f8)][_0x695351(0x1f3)]();_0x39d7bf&&_0x39d7bf[_0x695351(0x1ff)](_0x695351(0x1d4))&&this[_0x695351(0x20e)][_0x695351(0x1e3)][_0x695351(0x1fe)][_0x695351(0x1dc)](_0x695351(0x1f2),()=>{const _0x3353a3=_0x695351;_0x596c78(this[_0x3353a3(0x20e)],_0x39d7bf);});});const _0x393efb=this[_0x1bdb60(0x20e)][_0x1bdb60(0x205)][_0x1bdb60(0x1d0)](_0x1bdb60(0x218));_0x393efb&&this[_0x1bdb60(0x1e2)](_0x393efb,_0x1bdb60(0x1d7),()=>{const _0x5988a0=_0x1bdb60,_0x340dc8=this[_0x5988a0(0x20e)][_0x5988a0(0x202)][_0x5988a0(0x1cf)][_0x5988a0(0x1f8)][_0x5988a0(0x1f3)]();_0x340dc8&&_0x340dc8[_0x5988a0(0x1ff)](_0x5988a0(0x1d4))&&this[_0x5988a0(0x20e)][_0x5988a0(0x1e3)][_0x5988a0(0x1fe)][_0x5988a0(0x1dc)](_0x5988a0(0x1f2),()=>{const _0xe84468=_0x5988a0;_0x596c78(this[_0xe84468(0x20e)],_0x340dc8);});});}}