@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250920.0 → 0.0.0-nightly-20250921.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 _0x108b89,Command as _0x33bd10}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x8a6980,IconGooglePhotos as _0x32845b,IconGoogleDrive as _0x4cf376,IconFacebook as _0x30d35a,IconDropbox as _0x14879a,IconUploadcareLink as _0x107ab1,IconUploadcareImageUpload as _0x5299d2,IconError as _0x4da509,IconUploadcareImageEdit as _0x1e82f3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xd4b68c,MenuBarMenuListItemButtonView as _0x21602b,View as _0x2ff5d5,FocusCycler as _0x4fd6e0,Dialog as _0x11b1e1,DialogViewPosition as _0x31fe82,SpinnerView as _0x88d7a6,IconView as _0xeb9607,Notification as _0x293896}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x42b0cf,DomEmitterMixin as _0x596efd,global as _0x255c88,getAncestors as _0x53174c,ObservableMixin as _0x5d44f0,uid as _0x19b48d,createElement as _0x28a297}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x40e81f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1a72e0,info as _0x4565d4}from'@uploadcare/upload-client';import*as _0xb07fa0 from'@uploadcare/file-uploader';var i=function(_0x5d1595){return _0x5d1595['Local']='local',_0x5d1595['URL']='url',_0x5d1595['Dropbox']='dropbox',_0x5d1595['GDrive']='gdrive',_0x5d1595['Facebook']='facebook',_0x5d1595['GPhotos']='gphotos',_0x5d1595['OneDrive']='onedrive',_0x5d1595;}({});function _(_0x485eee,_0x2d0945,_0xcdeebd){const t=_0x485eee['t'],_0x5b7cff=_0x485eee['t'];switch(_0x2d0945){case i['Local']:return{'text':_0x5b7cff('Insert'===_0xcdeebd?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5b7cff('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xcdeebd?_0x5b7cff('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5b7cff('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xcdeebd?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xcdeebd?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xcdeebd?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xcdeebd?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xcdeebd?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2d0945;}}class e extends _0x108b89{['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 _0x232cff=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x49b099;for(const _0x3f6392 in _0x232cff){const _0x34bba2=_0x3f6392,_0xf6d923=_0x232cff[_0x34bba2];if('uploadcareLicenseKeyValid'==_0xf6d923||'uploadcareLicenseKeyInvalid'==_0xf6d923||'uploadcareLicenseKeyExpired'==_0xf6d923||'uploadcareLicenseKeyDomainLimit'==_0xf6d923||'uploadcareLicenseKeyNotAllowed'==_0xf6d923||'uploadcareLicenseKeyEvaluationLimit'==_0xf6d923||'uploadcareLicenseKeyTrialLimit'==_0xf6d923||'uploadcareLicenseKeyUsageLimit'==_0xf6d923){delete _0x232cff[_0x34bba2],_0x49b099=_0xf6d923,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x49b099&&_0x232cff['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x49b099&&_0x232cff['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x49b099&&_0x232cff['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x49b099&&_0x232cff['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x49b099&&_0x232cff['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x49b099&&_0x232cff['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x49b099&&_0x232cff['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5211ff}=this,_0x11cb94=_0x5211ff['commands']['get']('uploadcare');if(!_0x11cb94)return;const _0x28aa91=this['_normalizeConfigSourceList'](_0x5211ff['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2dc76b,_0x464b61)=>{const _0xc51c51=this['_getIntegrationKey'](_0x464b61['type']);return _0x2dc76b[_0xc51c51]||(_0x2dc76b[_0xc51c51]=[]),_0x2dc76b[_0xc51c51]['push'](_0x464b61),_0x2dc76b;},{});_0x5211ff['plugins']['has']('ImageInsertUI')&&_0x5211ff['commands']['get']('uploadcare')&&Object['entries'](_0x28aa91)['forEach'](([_0x26d9c6,_0x5c58d0])=>{_0x5211ff['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x26d9c6,'observable':()=>_0x11cb94,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5c58d0),'formViewCreator':()=>this['_createDropdownButtons'](_0x5c58d0),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5c58d0),'override':'assetManager'!==_0x26d9c6});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2fe786){const {locale:_0x55f941}=this['editor'];return _0x2fe786['map'](_0x1e6b86=>{const _0x5db8ec=_(_0x55f941,_0x1e6b86,'Insert');switch(_0x1e6b86){case i['Local']:return{'icon':_0x5299d2,'type':i['Local'],..._0x5db8ec};case i['URL']:return{'icon':_0x107ab1,'type':i['URL'],..._0x5db8ec};case i['Dropbox']:return{'icon':_0x14879a,'type':i['Dropbox'],..._0x5db8ec};case i['Facebook']:return{'icon':_0x30d35a,'type':i['Facebook'],..._0x5db8ec};case i['GDrive']:return{'icon':_0x4cf376,'type':i['GDrive'],..._0x5db8ec};case i['GPhotos']:return{'icon':_0x32845b,'type':i['GPhotos'],..._0x5db8ec};case i['OneDrive']:return{'icon':_0x8a6980,'type':i['OneDrive'],..._0x5db8ec};}});}['_getIntegrationKey'](_0x3ce3df){switch(_0x3ce3df){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1df32b,_0x5e717c){const _0x2cf2a9=this['editor'],_0x768ccb=new _0x1df32b(_0x2cf2a9['locale']),_0x171c07=_0x2cf2a9['commands']['get']('uploadcare');return _0x768ccb['bind']('isEnabled')['to'](_0x171c07),_0x768ccb['on']('execute',()=>{_0x171c07['execute'](_0x5e717c);}),_0x768ccb;}['_createToolbarButton'](_0x307d2b){const {locale:_0x3e953a}=this['editor'],_0x35a573=this['editor']['plugins']['get']('ImageInsertUI'),_0x3aa6af=_0x307d2b[0x0],_0x2d7080=this['_createButton'](_0xd4b68c,_0x3aa6af['type']);return _0x2d7080['icon']=_0x3aa6af['icon'],_0x2d7080['bind']('label')['to'](_0x35a573,'isImageSelected',_0x687a02=>_(_0x3e953a,_0x3aa6af['type'],_0x687a02?'Replace':'Insert')['text']),_0x2d7080['tooltip']=!0x0,_0x2d7080;}['_createDropdownButtons'](_0x5dcc20){const {locale:_0x1acba2}=this['editor'],_0x227e67=this['editor']['plugins']['get']('ImageInsertUI');return _0x5dcc20['map'](_0xe9321c=>{const _0x14e146=this['_createButton'](_0xd4b68c,_0xe9321c['type']);return _0x14e146['withText']=!0x0,_0x14e146['icon']=_0xe9321c['icon'],_0x14e146['bind']('label')['to'](_0x227e67,'isImageSelected',_0x376d95=>_(_0x1acba2,_0xe9321c['type'],_0x376d95?'Replace':'Insert')['text']),_0x14e146;});}['_createMenuBarButtons'](_0x3189d3){return _0x3189d3['map'](_0x3b5fa6=>{const _0x2c1313=this['_createButton'](_0x21602b,_0x3b5fa6['type']);return _0x2c1313['icon']=_0x3b5fa6['icon'],_0x2c1313['label']=_0x3b5fa6['shortText'],_0x2c1313;});}}class F extends _0x2ff5d5{['focusTracker'];['focusCycler'];constructor(_0x5725ed){super(_0x5725ed),this['focusTracker']=new _0x42b0cf(),this['focusCycler']=new _0x4fd6e0({'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(_0x7d8794,_0x276c96){super(_0x7d8794),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-'+_0x276c96}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x585ea5,_0xa6a661){const _0x228ea0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x312950=>_0x312950<=_0xa6a661)['map'](_0x895fde=>_0x585ea5['replace'](/\/$/,'')+'/-/resize/'+_0x895fde+'x/\x20'+_0x895fde+'w');return{'imageFallbackUrl':_0x585ea5,'imageSources':[{'srcset':_0x228ea0['join'](',\x20'),'sizes':'(max-width:\x20'+_0xa6a661+'px)\x20100vw,\x20'+_0xa6a661+'px','type':'image/webp'}]};}function S(_0x202fec,_0xae859a,_0xf2351c){const _0x1c0a52=_0x202fec['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1c0a52?parseInt(_0x1c0a52[0x1],0xa):_0xae859a,'height':_0x1c0a52?parseInt(_0x1c0a52[0x2],0xa):_0xf2351c};}function p(_0x1f8a47,_0x1a5100){const _0x209d6c=new(_0x596efd())(),_0x2502cf=_0x1f8a47['plugins']['get']('ImageUtils'),_0x3a8ede=_0x1f8a47['editing']['mapper']['toViewElement'](_0x1a5100),_0x47b15e=_0x2502cf['findViewImgElement'](_0x3a8ede),_0x31f6f9=_0x1f8a47['editing']['view']['domConverter']['viewToDom'](_0x47b15e),_0x50db90=_0x1a5100['getAttribute']('width'),_0x3c9214=_0x1a5100['getAttribute']('height'),_0x36ff0a='image-processing';_0x1f8a47['editing']['view']['change'](_0x3d371a=>{_0x3d371a['addClass'](_0x36ff0a,_0x3a8ede),_0x3d371a['setStyle']('aspect-ratio',_0x50db90+'/'+_0x3c9214,_0x47b15e);}),_0x209d6c['listenTo'](_0x31f6f9,'load',()=>{_0x209d6c['stopListening'](_0x31f6f9,'load'),_0x1f8a47['editing']['view']['change'](_0x28dd8b=>{_0x28dd8b['removeClass'](_0x36ff0a,_0x3a8ede),_0x28dd8b['removeStyle']('aspect-ratio',_0x47b15e);});});}function G(_0xf37830){if(Array['isArray'](_0xf37830)){const _0x83dd12=_0xf37830['map'](G);return _0x2b540b=>_0x83dd12['some'](_0x2c5ffe=>_0x2c5ffe(_0x2b540b));}if('origin'==_0xf37830){const _0x251056=_0x255c88['window']['location']['origin'];return _0xe7a983=>new URL(_0xe7a983,_0x255c88['document']['baseURI'])['origin']==_0x251056;}return'function'==typeof _0xf37830?_0xf37830:_0xf37830 instanceof RegExp?_0x239e6e=>!(!_0x239e6e['match'](_0xf37830)&&!_0x239e6e['replace'](/^https?:\/\//,'')['match'](_0xf37830)):()=>!0x1;}function A(_0x418189,_0x42ec23){return _0x53174c(_0x418189['target'])['includes'](_0x42ec23);}class n extends/* #__PURE__ -- @preserve */
24
- _0x5d44f0(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x437de9,_0x2ff38c,_0x3823d2){super(),this['_editor']=_0x437de9,this['_editing']=_0x2ff38c,this['_dialog']=_0x437de9['plugins']['get'](_0x11b1e1),this['_api']=_0x2ff38c['ctxElement']['getAPI'](),this['_type']=_0x3823d2,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:_0x35ba8a,model:_0x29848a}=this['_editor'],_0x41188f=_0x29848a['document']['selection']['getSelectedElement'](),_0x1882ed=_0x41188f&&(_0x41188f['is']('element','imageBlock')||_0x41188f['is']('element','imageInline'));this['_formView']=new x(_0x35ba8a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5299d2,'title':_(_0x35ba8a,this['_type'],_0x1882ed?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x31fe82['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4dd9e4=>!A(_0x4dd9e4,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x12e96b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1028f2=>{const _0x23f784=_0x12e96b['length'];for(const _0x21f43e of _0x12e96b){const _0xf5fed4=_0x21f43e===_0x12e96b[_0x23f784-0x1],{cdnUrl:_0x537afd,fileInfo:_0x230250}=_0x21f43e;if(!_0x537afd||!_0x230250)continue;const {width:_0x161da5,height:_0x425d63}=_0x230250['imageInfo'],_0x46e517=S(_0x537afd,_0x161da5,_0x425d63),_0x467dad=C(_0x537afd,_0x46e517['width']),_0x24e556={'id':_0x230250['uuid'],'type':'image','attributes':{'imageDimension':_0x46e517,..._0x467dad}};this['_insertAsset'](_0x24e556,_0xf5fed4,_0x1028f2);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x42158d=>{'idle'===_0x42158d['detail']['status']&&!_0x42158d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x109f37,_0x5c1ce8,_0x5e2d7b){const _0xaf10a3=this['_editor']['model']['document']['selection'],_0x99dc46=_0xaf10a3['getSelectedElement'](),_0x19f9ac=!(!_0x99dc46||!_0x99dc46['is']('element','imageInline'));_0x5e2d7b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x109f37,_0x19f9ac),_0x5c1ce8||_0x5e2d7b['setSelection'](_0xaf10a3['getLastPosition']());}['_insertImage'](_0x3b235d,_0x482b00){const _0x466abe=this['_editor'],{imageDimension:_0x28b29d,imageFallbackUrl:_0x5b526f,imageSources:_0x49ee17}=_0x3b235d['attributes'];_0x466abe['execute']('insertImage',{'imageType':_0x482b00?'imageInline':null,'source':{'uploadcareImageId':_0x3b235d['id'],'src':_0x5b526f,'sources':_0x49ee17,..._0x28b29d}});}}class w extends _0x33bd10{['_editing'];['_controller']=null;static get['requires'](){return[_0x11b1e1,o];}constructor(_0x5c7437){super(_0x5c7437),this['_editing']=_0x5c7437['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2cb995){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2cb995);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xcb4033,..._0x3af75d}){return _0x1a72e0(_0xcb4033,_0x3af75d);}static['getInfo'](_0x3a83ec,_0x139f20){return _0x4565d4(_0x3a83ec,_0x139f20);}}class f extends _0x108b89{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x40e81f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x583125=this['editor'];if(!!!_0x583125['config']['get']('uploadcare'))return;_0x583125['plugins']['get'](_0x40e81f)['createUploadAdapter']=_0x59a479=>new k(_0x59a479,_0x583125),_0x583125['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x32e1ab,{imageElement:_0x4a2ad4,data:_0x4ddc94})=>{_0x583125['model']['change'](_0x33ca31=>{_0x33ca31['setAttribute']('uploadcareImageId',_0x4ddc94['uploadcareImageId'],_0x4a2ad4);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5a661d,_0x54cc0f){this['loader']=_0x5a661d,this['editor']=_0x54cc0f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x9d89f7=await this['loader']['file'];return j['upload']({'file':_0x9d89f7,'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':_0x48eb25=>{_0x48eb25&&_0x48eb25['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x48eb25['value']);}})['then'](async _0x4180dd=>{const {imageFallbackUrl:_0x552b03,imageSources:_0x2a2804}=C(_0x4180dd['cdnUrl'],_0x4180dd['imageInfo']['width']);return{'uploadcareImageId':_0x4180dd['uuid'],'default':_0x552b03,'sources':_0x2a2804};})['catch'](()=>{const _0x3fb6b0=t('Cannot\x20upload\x20file:')+('\x20'+_0x9d89f7['name']+'.');return Promise['reject'](_0x3fb6b0);});}['abort'](){this['controller']['abort']();}}class o extends _0x108b89{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x11b1e1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3ca3ac){super(_0x3ca3ac),this['ucContextId']=_0x19b48d();}['init'](){const _0x45f9d6=this['editor'];_0x45f9d6['commands']['add']('uploadcare',new w(_0x45f9d6));}['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 _0x1aa8b4=_0x255c88['document']['querySelector']('input[uploadcare-file-input]');_0x1aa8b4&&_0x1aa8b4['remove']();}),async function(_0x9073b3){const _0x330121=_0x1477b4([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x47c2f2=0x3d8d0df,_0x2e03cc=0x3dfa337^_0x47c2f2,_0x3fe41a=window[_0x1477b4([0x44,0x61,0x74,0x65])][_0x1477b4([0x6e,0x6f,0x77])](),_0x1d33d2=_0x9073b3[_0x1477b4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c9a0d=new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23063b=>{_0x1d33d2[_0x1477b4([0x6f,0x6e,0x63,0x65])](_0x1477b4([0x72,0x65,0x61,0x64,0x79]),_0x23063b);}),_0x166697={[_0x1477b4([0x6b,0x74,0x79])]:_0x1477b4([0x45,0x43]),[_0x1477b4([0x75,0x73,0x65])]:_0x1477b4([0x73,0x69,0x67]),[_0x1477b4([0x63,0x72,0x76])]:_0x1477b4([0x50,0x2d,0x32,0x35,0x36]),[_0x1477b4([0x78])]:_0x1477b4([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]),[_0x1477b4([0x79])]:_0x1477b4([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]),[_0x1477b4([0x61,0x6c,0x67])]:_0x1477b4([0x45,0x53,0x32,0x35,0x36])},_0x46755a=_0x1d33d2[_0x1477b4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1477b4([0x67,0x65,0x74])](_0x1477b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4d33c3(){let _0x17a9f4,_0x59e565=null,_0x58dd0e=null;try{if(_0x46755a==_0x1477b4([0x47,0x50,0x4c]))return _0x1477b4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x17a9f4=_0x5084ea(),!_0x17a9f4)return _0x1477b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x17a9f4[_0x1477b4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x58dd0e=_0x507b98(_0x17a9f4[_0x1477b4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x17a9f4[_0x1477b4([0x6a,0x74,0x69])])),await _0x363e77()?_0x607500()?_0x291b44()?_0x1477b4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x485255()?(_0x17a9f4[_0x1477b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1477b4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59e565=_0x378169(_0x1477b4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x17a9f4[_0x1477b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1477b4([0x74,0x72,0x69,0x61,0x6c])&&(_0x59e565=_0x378169(_0x1477b4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x487e5f()):_0x1477b4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1477b4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1477b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1477b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x291b44(){const _0x25cda6=[_0x1477b4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1477b4([0x74,0x72,0x69,0x61,0x6c])][_0x1477b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17a9f4[_0x1477b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fe41a/0x3e8:0xe10*_0x2e03cc;return _0x17a9f4[_0x1477b4([0x65,0x78,0x70])]<_0x25cda6;}function _0x607500(){const _0x1d9d08=_0x17a9f4[_0x1477b4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1d9d08&&(!!_0x1d9d08[_0x1477b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1477b4([0x2a]))||!!_0x1d9d08[_0x1477b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1477b4([0x55,0x50,0x4c,0x43])));}function _0x485255(){const _0x242e30=_0x17a9f4[_0x1477b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x242e30||0x0==_0x242e30[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x44fa73}=new URL(window[_0x1477b4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x242e30[_0x1477b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44fa73))return!0x0;const _0x2a39f1=_0x44fa73[_0x1477b4([0x73,0x70,0x6c,0x69,0x74])](_0x1477b4([0x2e]));return _0x242e30[_0x1477b4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f4f64=>_0x3f4f64[_0x1477b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1477b4([0x2a])))[_0x1477b4([0x6d,0x61,0x70])](_0x467103=>_0x467103[_0x1477b4([0x73,0x70,0x6c,0x69,0x74])](_0x1477b4([0x2e])))[_0x1477b4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x171ab7=>_0x171ab7[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2a39f1[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1477b4([0x6d,0x61,0x70])](_0xc098c4=>Array(_0x2a39f1[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xc098c4[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1477b4([0x66,0x69,0x6c,0x6c])](_0xc098c4[0x0]===_0x1477b4([0x2a])?_0x1477b4([0x2a]):'')[_0x1477b4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xc098c4))[_0x1477b4([0x73,0x6f,0x6d,0x65])](_0x13a190=>_0x2a39f1[_0x1477b4([0x65,0x76,0x65,0x72,0x79])]((_0x596b83,_0x3b3c81)=>_0x13a190[_0x3b3c81]===_0x596b83||_0x13a190[_0x3b3c81]===_0x1477b4([0x2a])));}function _0x487e5f(){return _0x59e565&&_0x58dd0e?new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x116067,_0x30abc9)=>{_0x59e565[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x116067,_0x30abc9),_0x58dd0e[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x211194=>{_0x211194!=_0x1477b4([0x56,0x61,0x6c,0x69,0x64])&&_0x116067(_0x211194);},_0x30abc9);}):_0x59e565||_0x58dd0e||_0x1477b4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x507b98(_0x421121,_0x27a54d){return new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x127730=>{if(_0x28aaf7())return _0x127730(_0x1477b4([0x56,0x61,0x6c,0x69,0x64]));_0x48a339(),_0x1d33d2[_0x1477b4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1477b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x31608c=!0x1;const _0x5a0d76=_0x19b48d();function _0x3552da(_0xb2b050){return!!_0xb2b050&&(typeof _0xb2b050===_0x1477b4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb2b050===_0x1477b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb2b050[_0x1477b4([0x74,0x68,0x65,0x6e])]===_0x1477b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb2b050[_0x1477b4([0x63,0x61,0x74,0x63,0x68])]===_0x1477b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x365974(_0x6d1371){_0x3ff4af(_0x6d1371)[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x2f9df2=>{if(!_0x2f9df2||_0x2f9df2[_0x1477b4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1477b4([0x6f,0x6b]))return _0x1477b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x45bb61(_0x2c2904(_0x5a0d76+_0x27a54d))!=_0x2f9df2[_0x1477b4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1477b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1477b4([0x56,0x61,0x6c,0x69,0x64]);})[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x4b9094=>(_0x4bb0a6(),_0x4b9094),()=>{const _0x39f036=_0x2be099();return null==_0x39f036?(_0x4bb0a6(),_0x1477b4([0x56,0x61,0x6c,0x69,0x64])):_0x1477b4(_0x3fe41a-_0x39f036>(0x27d454df^_0x47c2f2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x127730)[_0x1477b4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x127730(_0x1477b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x336ddf=0x3ee3e5f^_0x47c2f2;function _0x4bb0a6(){const _0x1bb0d0=_0x1477b4([0x6c,0x6c,0x63,0x74,0x2d])+_0x45bb61(_0x2c2904(_0x421121)),_0x18e725=_0x27bad1(_0x45bb61(window[_0x1477b4([0x4d,0x61,0x74,0x68])][_0x1477b4([0x63,0x65,0x69,0x6c])](_0x3fe41a/_0x336ddf)));window[_0x1477b4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1477b4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1bb0d0,_0x18e725);}function _0x2be099(){const _0x14cfa2=_0x1477b4([0x6c,0x6c,0x63,0x74,0x2d])+_0x45bb61(_0x2c2904(_0x421121)),_0xab7e18=window[_0x1477b4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1477b4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14cfa2);return _0xab7e18?window[_0x1477b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27bad1(_0xab7e18),0x10)*_0x336ddf:null;}function _0x3ff4af(_0x2917a0){return new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16dd05,_0x1f0e1f)=>{_0x2917a0[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x16dd05,_0x1f0e1f),window[_0x1477b4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f0e1f,0x3d9041f^_0x47c2f2);});}}_0x1d33d2[_0x1477b4([0x6f,0x6e])](_0x1477b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x95c10a,_0x5d7008)=>{if(_0x5d7008[0x0]!=_0x421121)return _0x127730(_0x1477b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d7008[0x1]={..._0x5d7008[0x1],[_0x1477b4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a0d76};},{[_0x1477b4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1477b4([0x68,0x69,0x67,0x68])}),_0x1d33d2[_0x1477b4([0x6f,0x6e])](_0x1477b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x186897=>{_0x3552da(_0x186897[_0x1477b4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x31608c=!0x0,_0x365974(_0x186897[_0x1477b4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1477b4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1477b4([0x6c,0x6f,0x77])}),_0x1c9a0d[_0x1477b4([0x74,0x68,0x65,0x6e])](()=>{_0x31608c||_0x127730(_0x1477b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x28aaf7(){return _0x1d33d2[_0x1477b4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1477b4([0x76,0x69,0x65,0x77])][_0x1477b4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1477b4([0x61,0x75,0x74,0x6f]);}function _0x48a339(){_0x1d33d2[_0x1477b4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1477b4([0x76,0x69,0x65,0x77])][_0x1477b4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1477b4([0x61,0x75,0x74,0x6f]);}}function _0x378169(_0x4a15be){const _0x5c80df=[new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x69eb78=>setTimeout(_0x69eb78,0x3d1ee13^_0x47c2f2)),_0x1c9a0d[_0x1477b4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x584237=>{let _0x301a54=0x0;_0x1d33d2[_0x1477b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1477b4([0x6f,0x6e])](_0x1477b4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x368ae7,_0x16e1ec)=>{_0x16e1ec[0x0][_0x1477b4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x301a54++,_0x301a54==(0x3d8d127^_0x47c2f2)&&(_0x584237(),_0x368ae7[_0x1477b4([0x6f,0x66,0x66])]());});}))];return window[_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1477b4([0x72,0x61,0x63,0x65])](_0x5c80df)[_0x1477b4([0x74,0x68,0x65,0x6e])](()=>_0x4a15be);}async function _0x138b47(){await _0x1c9a0d,_0x1d33d2[_0x1477b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1477b4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x58fe4e,_0x1d33d2[_0x1477b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1477b4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x58fe4e,_0x1d33d2[_0x1477b4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1477b4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ed7aa(_0x5cf009){const _0x33de44=_0x4a8a6c();_0x1d33d2[_0x33de44]=_0x1477b4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5cf009,_0x5cf009!=_0x1477b4([0x56,0x61,0x6c,0x69,0x64])&&_0x138b47();}function _0x4a8a6c(){const _0x3036fa=window[_0x1477b4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1477b4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1477b4([0x6e,0x6f,0x77])]())[_0x1477b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1477b4([0x2e]),'');let _0x59997c=_0x1477b4([0x52]);for(let _0xcbf5ec=0x0;_0xcbf5ec<_0x3036fa[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcbf5ec+=0x2){let _0x560e90=window[_0x1477b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3036fa[_0x1477b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcbf5ec,_0xcbf5ec+0x2));_0x560e90>=_0x330121[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x560e90-=_0x330121[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x59997c+=_0x330121[_0x560e90];}return _0x59997c;}function _0x5084ea(){const _0x352af1=_0x46755a[_0x1477b4([0x73,0x70,0x6c,0x69,0x74])](_0x1477b4([0x2e]));if(0x3!=_0x352af1[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x43b727(_0x352af1[0x1]);function _0x43b727(_0x2a6de0){const _0x136345=_0x239ee6(_0x2a6de0);return _0x136345&&_0xf89870()?_0x136345:null;function _0xf89870(){const _0x212f47=_0x136345[_0x1477b4([0x6a,0x74,0x69])],_0x549d14=window[_0x1477b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x212f47[_0x1477b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x212f47[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x36f0a8={..._0x136345,[_0x1477b4([0x6a,0x74,0x69])]:_0x212f47[_0x1477b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x212f47[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x36f0a8[_0x1477b4([0x76,0x63])],_0x2c2904(_0x36f0a8)==_0x549d14;}}}async function _0x363e77(){let _0x270251=!0x0;try{const _0x42abb6=_0x46755a[_0x1477b4([0x73,0x70,0x6c,0x69,0x74])](_0x1477b4([0x2e])),[_0x577eff,_0x3c3d06,_0x3a0c2a]=_0x42abb6;return _0x28ef6f(_0x577eff),await _0x15a183(_0x577eff,_0x3c3d06,_0x3a0c2a),_0x270251;}catch{return!0x1;}function _0x28ef6f(_0x5b6f8e){const _0x26ac7b=_0x239ee6(_0x5b6f8e);_0x26ac7b&&_0x26ac7b[_0x1477b4([0x61,0x6c,0x67])]==_0x1477b4([0x45,0x53,0x32,0x35,0x36])||(_0x270251=!0x1);}async function _0x15a183(_0x196ca3,_0x10bf6f,_0x4bafc6){const _0x615366=window[_0x1477b4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1477b4([0x66,0x72,0x6f,0x6d])](_0x200161(_0x4bafc6),_0x6625fc=>_0x6625fc[_0x1477b4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x165321=new window[(_0x1477b4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1477b4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x196ca3+_0x1477b4([0x2e])+_0x10bf6f),_0x1007f6=window[_0x1477b4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1477b4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1007f6)return;const _0x232952=await _0x1007f6[_0x1477b4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1477b4([0x6a,0x77,0x6b]),_0x166697,{[_0x1477b4([0x6e,0x61,0x6d,0x65])]:_0x1477b4([0x45,0x43,0x44,0x53,0x41]),[_0x1477b4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1477b4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1477b4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1007f6[_0x1477b4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1477b4([0x6e,0x61,0x6d,0x65])]:_0x1477b4([0x45,0x43,0x44,0x53,0x41]),[_0x1477b4([0x68,0x61,0x73,0x68])]:{[_0x1477b4([0x6e,0x61,0x6d,0x65])]:_0x1477b4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x232952,_0x615366,_0x165321)||(_0x270251=!0x1);}}function _0x239ee6(_0x3cb163){return _0x3cb163[_0x1477b4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1477b4([0x65,0x79]))?JSON[_0x1477b4([0x70,0x61,0x72,0x73,0x65])](_0x200161(_0x3cb163)):null;}function _0x200161(_0xc91dd2){return window[_0x1477b4([0x61,0x74,0x6f,0x62])](_0xc91dd2[_0x1477b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1477b4([0x2b]))[_0x1477b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1477b4([0x2f])));}function _0x2c2904(_0x2393b5){let _0x124f6e=0x1505;function _0x4f2427(_0x182015){for(let _0x4e49e8=0x0;_0x4e49e8<_0x182015[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e49e8++){const _0x7f016f=_0x182015[_0x1477b4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e49e8);_0x124f6e=(_0x124f6e<<0x5)+_0x124f6e+_0x7f016f,_0x124f6e&=_0x124f6e;}}function _0x4bbf98(_0x43c380){Array[_0x1477b4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x43c380)?_0x43c380[_0x1477b4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4bbf98):_0x43c380&&typeof _0x43c380==_0x1477b4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1477b4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x43c380)[_0x1477b4([0x73,0x6f,0x72,0x74])]()[_0x1477b4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3dd54d,_0x2e6d7a])=>{_0x4f2427(_0x3dd54d),_0x4bbf98(_0x2e6d7a);}):_0x4f2427(window[_0x1477b4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x43c380));}return _0x4bbf98(_0x2393b5),_0x124f6e>>>0x0;}function _0x45bb61(_0x3725eb){return _0x3725eb[_0x1477b4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1477b4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1477b4([0x30]));}function _0x27bad1(_0x3c7324){return _0x3c7324[_0x1477b4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1477b4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1477b4([0x6a,0x6f,0x69,0x6e])]('');}function _0x58fe4e(){}function _0x1477b4(_0x5e3afd){return _0x5e3afd['map'](_0x2a0419=>String['fromCharCode'](_0x2a0419))['join']('');}_0x5ed7aa(await _0x4d33c3());}(this);}['_initSchema'](){const _0x311e3b=this['editor']['model']['schema'];_0x311e3b['isRegistered']('imageBlock')&&_0x311e3b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x311e3b['isRegistered']('imageInline')&&_0x311e3b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2b3016=this['editor'];_0x2b3016['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2b3016['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1dcd4a=>_0x1dcd4a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xf5eab2=_0x2b3016['commands']['get']('replaceImageSource');_0xf5eab2&&this['listenTo'](_0xf5eab2,'cleanupImage',(_0x37d651,[_0x480f5f,_0x41f8b3])=>{_0x480f5f['removeAttribute']('uploadcareImageId',_0x41f8b3);});}['_initConfig'](){const _0x562eeb=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1299fd=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x28a297(_0x255c88['document'],'uc-config',{..._0x562eeb,'pubkey':_0x1299fd,'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']=_0x552fbd=>{if('closeMax'==_0x552fbd)return'#uc-icon-arrow-down';},_0x255c88['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x28a297(_0x255c88['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x255c88['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x54b806=this['editor']['commands']['get']('insertImage');_0x54b806&&this['listenTo'](_0x54b806,'execute',()=>{const _0x1d3573=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1d3573&&_0x1d3573['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1d3573);});});const _0x2012f3=this['editor']['commands']['get']('uploadcareImageReplace');_0x2012f3&&this['listenTo'](_0x2012f3,'execute',()=>{const _0x13a747=this['editor']['model']['document']['selection']['getSelectedElement']();_0x13a747&&_0x13a747['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x13a747);});});}}class tt extends _0x108b89{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51d265){super(_0x51d265),_0x51d265['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xb07fa0['defineComponents'](_0xb07fa0);}}class ii extends _0x2ff5d5{constructor(_0xbdfe7a){super(_0xbdfe7a);const t=_0xbdfe7a['t'],_0x40c480=this['bindTemplate'],_0x50b219=new _0x88d7a6();_0x50b219['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':[_0x50b219,{'text':_0x40c480['to']('imageUploadProgress',_0x3ff03e=>t('Loading\x20image...')+'\x20('+(_0x3ff03e||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 _0x2ff5d5{constructor(_0x7e2173){super(_0x7e2173);const t=_0x7e2173['t'];this['set']('errorType',null);const _0x5889dc=new _0xd4b68c(_0x7e2173);_0x5889dc['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5889dc['withText']=!0x0,_0x5889dc['class']='ck-button-action',_0x5889dc['on']('execute',()=>{this['fire']('retry');}),_0x5889dc['bind']('isVisible')['to'](this,'errorType',_0x5d414a=>'NotFound'!==_0x5d414a);const _0x579cb6=new _0xeb9607();_0x579cb6['content']=_0x4da509,_0x579cb6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x36fa8e=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':[_0x579cb6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x36fa8e['to']('errorType',_0x425367=>t('NotFound'!==_0x425367?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5889dc]},{'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 _0x2ff5d5{constructor(_0x16b3ae,_0x524bd7){super(_0x16b3ae);const _0x1c57d3=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x524bd7,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1c57d3['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x409292,_0x45fc3e,_0x45d599){super(_0x409292),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x409292),this['_errorView']=new ti(_0x409292),this['_editingView']=new ei(_0x409292,_0x45d599),this['_focusableView']=new _0x2ff5d5(_0x409292),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x45fc3e),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'],_0x462a55=>{this['_addUploadcareImageEditorListeners'](_0x462a55);});}),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'](_0x19247d,_0xc2674b){const _0x167425='uc-cloud-image-editor',_0x611270=_0x19247d['querySelector'](_0x167425);if(_0x611270)return _0xc2674b(_0x611270);const _0x552e20=new MutationObserver(_0x1eda8b=>{const _0x101578=_0x1eda8b['filter'](_0x16f3bc=>_0x16f3bc['target']===_0x19247d&&_0x16f3bc['addedNodes']['length']>0x0&&_0x16f3bc['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x167425);_0x101578['length']&&(_0x552e20['disconnect'](),_0xc2674b(_0x101578[0x0]['addedNodes'][0x0]));});_0x552e20['observe'](_0x19247d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x50934d){_0x50934d['addEventListener']('apply',_0x551867=>{this['fire']('apply',{'imageSrc':_0x551867['detail']['cdnUrl']});}),_0x50934d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x5d44f0(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xb3d916,_0x575cf1,_0x56351a){super(),this['_editor']=_0xb3d916,this['_dialog']=_0x575cf1,this['_imageElement']=_0x56351a,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 _0x505c9e=this['_imageElement'],_0x4defb2=_0x505c9e['getAttribute']('uploadcareImageId'),_0x297844=_0x505c9e['getAttribute']('src');if(_0x4defb2)await this['_loadImageInfo'](_0x4defb2,_0x297844);else{if(this['_imageCache']['has'](_0x297844)){const _0x38d3c5=this['_imageCache']['get'](_0x297844);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x38d3c5['url'],this['imageDimension']=_0x38d3c5['dimension'],this['imageId']=_0x38d3c5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x30fe39}=this['_editor'],t=_0x30fe39['t'],_0xa55a54=new X(_0x30fe39,this['imageStatus'],this['_attributes']);_0xa55a54['bind']('status')['to'](this,'imageStatus'),_0xa55a54['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xa55a54['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xa55a54['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xa55a54,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1e82f3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xa55a54,'position':_0x31fe82['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xa55a54['focus']();},'onHide':()=>{_0xa55a54['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3102d2=>!A(_0x3102d2,_0xa55a54['element'])}});}['_loadImageInfo'](_0x273d2d,_0x4e1a75){return j['getInfo'](_0x273d2d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3a6938=>{const {width:_0x3b5493,height:_0x1eea11}=_0x3a6938['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4e1a75,this['imageDimension']={'width':_0x3b5493,'height':_0x1eea11},this['imageId']=_0x273d2d;})['catch'](_0x2c53cf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2c53cf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x462193,_0x2a4fdf){return this['_getImageAsFile'](_0x462193)['then'](_0x5dd178=>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':_0x2a4fdf['signal'],'file':_0x5dd178,'onProgress':_0x2c5f9a=>{_0x2c5f9a&&_0x2c5f9a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2c5f9a['value']));}}))['then'](_0x173999=>{const {width:_0x1ca504,height:_0x4fd69c}=_0x173999['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x173999['cdnUrl'],this['imageDimension']={'width':_0x1ca504,'height':_0x4fd69c},this['imageId']=_0x173999['uuid'],this['imageUploadProgress']=null;const _0x56a1d4=_0x462193['getAttribute']('src');this['_imageCache']['set'](_0x56a1d4,{'id':_0x173999['uuid'],'url':_0x173999['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3c0fdd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3c0fdd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x54e850,_0x1a9a4b){_0x54e850['on']('apply',(_0x11f7ac,_0x284734)=>{this['_replaceImage'](_0x1a9a4b,_0x284734['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x54e850['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x54e850['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2ef11b,_0x449f6a,_0x2cb921){const _0x57393f=this['_editor'],{width:_0x287b01,height:_0x1c94d3}=S(_0x449f6a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x33e578,imageSources:_0x3b8084}=C(_0x449f6a,_0x287b01);_0x57393f['model']['change'](_0x10d538=>{if('$graveyard'===_0x2ef11b['root']['rootName']){_0x57393f['execute']('insertImage',{'imageType':_0x2ef11b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2ef11b['getAttributes']()),'uploadcareImageId':_0x2cb921,'src':_0x33e578,'sources':_0x3b8084,'width':_0x287b01,'height':_0x1c94d3}});const _0x2633c6=_0x2ef11b['getChildren']();_0x2ef11b=_0x57393f['model']['document']['selection']['getSelectedElement']();for(const _0x35c621 of _0x2633c6)_0x10d538['append'](_0x10d538['cloneElement'](_0x35c621),_0x2ef11b);}else _0x10d538['setSelection'](_0x2ef11b,'on'),_0x57393f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2ef11b['getAttributes']()),'uploadcareImageId':_0x2cb921,'src':_0x33e578,'sources':_0x3b8084,'width':_0x287b01,'height':_0x1c94d3},_0x2ef11b);_0x10d538['setSelection'](_0x2ef11b,'on');});}async['_getImageAsFile'](_0x172263){const _0x1d6402=_0x255c88['window'],_0x4ebbab=_0x255c88['document']['location']['href'],_0x88763d=new _0x1d6402['URL'](_0x172263['getAttribute']('src'),_0x4ebbab);if('data:'===_0x88763d['protocol']){const _0x256361=_0x88763d['href']['split'](','),_0x310169=_0x256361[0x0]['match'](/:(.*?);/)[0x1],_0x460c39=_0x310169['split']('/')[0x1],_0x2b65b9=_0x1d6402['atob'](_0x256361[_0x256361['length']-0x1]);let _0x52b245=_0x2b65b9['length'];const _0x21517b=new _0x1d6402['Uint8Array'](_0x52b245);for(;_0x52b245--;)_0x21517b[_0x52b245]=_0x2b65b9['charCodeAt'](_0x52b245);return new _0x1d6402['File']([_0x21517b],'image.'+_0x460c39,{'type':_0x310169});}const _0x1b5645=_0x88763d['href']['split']('/'),_0x551374=_0x1b5645[_0x1b5645['length']-0x1],_0x35fcf7=_0x551374['split']('.')[0x1];return _0x1d6402['fetch'](_0x88763d['href'])['then'](_0x4c6958=>_0x4c6958['clone']()['blob']())['then'](_0x193b20=>new _0x1d6402['File']([_0x193b20],_0x551374,{'type':'image/'+_0x35fcf7}));}}class O extends _0x33bd10{['imageEditController'];static get['requires'](){return[_0x11b1e1];}['_isEditable'];constructor(_0x24e2cb){super(_0x24e2cb),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2f1ee3){const _0x1ced89=G(_0x2f1ee3);return _0x2f554f=>!(!_0x2f554f||!_0x2f554f['is']('element','imageBlock')&&!_0x2f554f['is']('element','imageInline'))&&(!!_0x2f554f['hasAttribute']('uploadcareImageId')||!!_0x2f554f['hasAttribute']('src')&&_0x1ced89(_0x2f554f['getAttribute']('src')));}(_0x24e2cb['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x17e57c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x17e57c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5b2d4a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5b2d4a&&(_0x5b2d4a['is']('element','imageBlock')||_0x5b2d4a['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x11b1e1),_0x5b2d4a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x33bd10{['refresh'](){const _0x1d4b2f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1d4b2f&&(_0x1d4b2f['is']('element','imageBlock')||_0x1d4b2f['is']('element','imageInline')));}['execute'](_0x4f9cd2){const _0x4c22f9=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2123d7=>{_0x2123d7['setAttributes'](_0x4f9cd2,_0x4c22f9),_0x2123d7['removeAttribute']('srcset',_0x4c22f9),_0x2123d7['removeAttribute']('sizes',_0x4c22f9);});}}class m extends _0x108b89{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x293896,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4ee921}=this;_0x4ee921['commands']['add']('uploadcareImageEdit',new O(_0x4ee921)),_0x4ee921['commands']['add']('uploadcareImageReplace',new R(_0x4ee921));}}class g extends _0x108b89{['_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 _0x2f0c99=this['editor'];_0x2f0c99['ui']['componentFactory']['add']('uploadcareImageEdit',_0x998bfb=>{const _0x11ee8d=_0x2f0c99['commands']['get']('uploadcareImageEdit'),_0x3355bb=new _0xd4b68c(_0x998bfb),t=_0x998bfb['t'];return _0x3355bb['set']({'icon':_0x1e82f3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3355bb['bind']('isEnabled')['to'](_0x11ee8d),_0x3355bb['bind']('isOn')['to'](_0x11ee8d,'isActive'),this['listenTo'](_0x3355bb,'execute',()=>{_0x2f0c99['execute']('uploadcareImageEdit'),_0x2f0c99['editing']['view']['focus']();}),_0x3355bb;}),this['_initConfig']();}['_initConfig'](){const _0x1d1727=_0x28a297(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1d1727),this['listenTo'](this['editor'],'destroy',()=>{_0x1d1727['remove']();});}}class et extends _0x108b89{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 _0x7e36d9,Command as _0x131bcf}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x55b81b,IconGooglePhotos as _0x271b90,IconGoogleDrive as _0x5c6253,IconFacebook as _0x3abd6b,IconDropbox as _0x239cc5,IconUploadcareLink as _0x4e0ca1,IconUploadcareImageUpload as _0x2a6800,IconError as _0x281f89,IconUploadcareImageEdit as _0x37f45c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x19dd91,MenuBarMenuListItemButtonView as _0x50613f,View as _0x3511ae,FocusCycler as _0x20728b,Dialog as _0x43377a,DialogViewPosition as _0x5e8274,SpinnerView as _0x51ce7b,IconView as _0x3e32d6,Notification as _0x238cd8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2fc920,DomEmitterMixin as _0x4b25ed,global as _0x4a05f8,getAncestors as _0x10f532,ObservableMixin as _0x4a7605,uid as _0x14e977,createElement as _0x389e16}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x510314}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5a5fe5,info as _0x3273c8}from'@uploadcare/upload-client';import*as _0x10d61a from'@uploadcare/file-uploader';var i=function(_0x38692f){return _0x38692f['Local']='local',_0x38692f['URL']='url',_0x38692f['Dropbox']='dropbox',_0x38692f['GDrive']='gdrive',_0x38692f['Facebook']='facebook',_0x38692f['GPhotos']='gphotos',_0x38692f['OneDrive']='onedrive',_0x38692f;}({});function _(_0x1e049c,_0x6d8a6c,_0x3a7f22){const t=_0x1e049c['t'],_0x7c8a5=_0x1e049c['t'];switch(_0x6d8a6c){case i['Local']:return{'text':_0x7c8a5('Insert'===_0x3a7f22?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x7c8a5('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3a7f22?_0x7c8a5('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x7c8a5('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3a7f22?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3a7f22?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3a7f22?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3a7f22?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3a7f22?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x6d8a6c;}}class e extends _0x7e36d9{['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 _0x315321=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x79a999;for(const _0x58dd4a in _0x315321){const _0x217333=_0x58dd4a,_0x2e0bdf=_0x315321[_0x217333];if('uploadcareLicenseKeyValid'==_0x2e0bdf||'uploadcareLicenseKeyInvalid'==_0x2e0bdf||'uploadcareLicenseKeyExpired'==_0x2e0bdf||'uploadcareLicenseKeyDomainLimit'==_0x2e0bdf||'uploadcareLicenseKeyNotAllowed'==_0x2e0bdf||'uploadcareLicenseKeyEvaluationLimit'==_0x2e0bdf||'uploadcareLicenseKeyTrialLimit'==_0x2e0bdf||'uploadcareLicenseKeyUsageLimit'==_0x2e0bdf){delete _0x315321[_0x217333],_0x79a999=_0x2e0bdf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x79a999&&_0x315321['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x79a999&&_0x315321['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x79a999&&_0x315321['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x79a999&&_0x315321['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x79a999&&_0x315321['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x79a999&&_0x315321['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x79a999&&_0x315321['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2e4965}=this,_0x3df0f7=_0x2e4965['commands']['get']('uploadcare');if(!_0x3df0f7)return;const _0x434873=this['_normalizeConfigSourceList'](_0x2e4965['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x54a60e,_0x3e3fc6)=>{const _0x155934=this['_getIntegrationKey'](_0x3e3fc6['type']);return _0x54a60e[_0x155934]||(_0x54a60e[_0x155934]=[]),_0x54a60e[_0x155934]['push'](_0x3e3fc6),_0x54a60e;},{});_0x2e4965['plugins']['has']('ImageInsertUI')&&_0x2e4965['commands']['get']('uploadcare')&&Object['entries'](_0x434873)['forEach'](([_0x25f217,_0x1dec62])=>{_0x2e4965['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x25f217,'observable':()=>_0x3df0f7,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1dec62),'formViewCreator':()=>this['_createDropdownButtons'](_0x1dec62),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1dec62),'override':'assetManager'!==_0x25f217});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x378142){const {locale:_0x1ef480}=this['editor'];return _0x378142['map'](_0x51144b=>{const _0x264ed4=_(_0x1ef480,_0x51144b,'Insert');switch(_0x51144b){case i['Local']:return{'icon':_0x2a6800,'type':i['Local'],..._0x264ed4};case i['URL']:return{'icon':_0x4e0ca1,'type':i['URL'],..._0x264ed4};case i['Dropbox']:return{'icon':_0x239cc5,'type':i['Dropbox'],..._0x264ed4};case i['Facebook']:return{'icon':_0x3abd6b,'type':i['Facebook'],..._0x264ed4};case i['GDrive']:return{'icon':_0x5c6253,'type':i['GDrive'],..._0x264ed4};case i['GPhotos']:return{'icon':_0x271b90,'type':i['GPhotos'],..._0x264ed4};case i['OneDrive']:return{'icon':_0x55b81b,'type':i['OneDrive'],..._0x264ed4};}});}['_getIntegrationKey'](_0x3d8074){switch(_0x3d8074){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x73061,_0x2c5b04){const _0x4ed196=this['editor'],_0x265a16=new _0x73061(_0x4ed196['locale']),_0x204c8b=_0x4ed196['commands']['get']('uploadcare');return _0x265a16['bind']('isEnabled')['to'](_0x204c8b),_0x265a16['on']('execute',()=>{_0x204c8b['execute'](_0x2c5b04);}),_0x265a16;}['_createToolbarButton'](_0x1dc0ba){const {locale:_0x3b0177}=this['editor'],_0x41c3ec=this['editor']['plugins']['get']('ImageInsertUI'),_0x20a138=_0x1dc0ba[0x0],_0x520d86=this['_createButton'](_0x19dd91,_0x20a138['type']);return _0x520d86['icon']=_0x20a138['icon'],_0x520d86['bind']('label')['to'](_0x41c3ec,'isImageSelected',_0x473682=>_(_0x3b0177,_0x20a138['type'],_0x473682?'Replace':'Insert')['text']),_0x520d86['tooltip']=!0x0,_0x520d86;}['_createDropdownButtons'](_0x4daaca){const {locale:_0x18f6d9}=this['editor'],_0x138cfd=this['editor']['plugins']['get']('ImageInsertUI');return _0x4daaca['map'](_0x2a4279=>{const _0x2ef012=this['_createButton'](_0x19dd91,_0x2a4279['type']);return _0x2ef012['withText']=!0x0,_0x2ef012['icon']=_0x2a4279['icon'],_0x2ef012['bind']('label')['to'](_0x138cfd,'isImageSelected',_0x38a77a=>_(_0x18f6d9,_0x2a4279['type'],_0x38a77a?'Replace':'Insert')['text']),_0x2ef012;});}['_createMenuBarButtons'](_0x2905b4){return _0x2905b4['map'](_0x3d4d01=>{const _0x4095d7=this['_createButton'](_0x50613f,_0x3d4d01['type']);return _0x4095d7['icon']=_0x3d4d01['icon'],_0x4095d7['label']=_0x3d4d01['shortText'],_0x4095d7;});}}class W extends _0x3511ae{['focusTracker'];['focusCycler'];constructor(_0x5c65ae){super(_0x5c65ae),this['focusTracker']=new _0x2fc920(),this['focusCycler']=new _0x20728b({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class R extends W{constructor(_0x522f5e,_0x37c18d){super(_0x522f5e),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-'+_0x37c18d}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x284c07,_0x3adeb1){const _0x319cd8=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5d11f2=>_0x5d11f2<=_0x3adeb1)['map'](_0x8a5345=>_0x284c07['replace'](/\/$/,'')+'/-/resize/'+_0x8a5345+'x/\x20'+_0x8a5345+'w');return{'imageFallbackUrl':_0x284c07,'imageSources':[{'srcset':_0x319cd8['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3adeb1+'px)\x20100vw,\x20'+_0x3adeb1+'px','type':'image/webp'}]};}function V(_0x3bdfda,_0x52699c,_0x278183){const _0x22d5bc=_0x3bdfda['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x22d5bc?parseInt(_0x22d5bc[0x1],0xa):_0x52699c,'height':_0x22d5bc?parseInt(_0x22d5bc[0x2],0xa):_0x278183};}function p(_0x3c0730,_0x2e7a45){const _0xcbe2c6=new(_0x4b25ed())(),_0x1b6b3f=_0x3c0730['plugins']['get']('ImageUtils'),_0x16011d=_0x3c0730['editing']['mapper']['toViewElement'](_0x2e7a45),_0x84c1c1=_0x1b6b3f['findViewImgElement'](_0x16011d),_0x3caf3e=_0x3c0730['editing']['view']['domConverter']['viewToDom'](_0x84c1c1),_0x5f1a3d=_0x2e7a45['getAttribute']('width'),_0x8f7359=_0x2e7a45['getAttribute']('height'),_0x5cb506='image-processing';_0x3c0730['editing']['view']['change'](_0xe8a78=>{_0xe8a78['addClass'](_0x5cb506,_0x16011d),_0xe8a78['setStyle']('aspect-ratio',_0x5f1a3d+'/'+_0x8f7359,_0x84c1c1);}),_0xcbe2c6['listenTo'](_0x3caf3e,'load',()=>{_0xcbe2c6['stopListening'](_0x3caf3e,'load'),_0x3c0730['editing']['view']['change'](_0x2b914d=>{_0x2b914d['removeClass'](_0x5cb506,_0x16011d),_0x2b914d['removeStyle']('aspect-ratio',_0x84c1c1);});});}function z(_0x435c27){if(Array['isArray'](_0x435c27)){const _0x5eb5f4=_0x435c27['map'](z);return _0x4a9cd7=>_0x5eb5f4['some'](_0x346045=>_0x346045(_0x4a9cd7));}if('origin'==_0x435c27){const _0x5e295c=_0x4a05f8['window']['location']['origin'];return _0x54361c=>new URL(_0x54361c,_0x4a05f8['document']['baseURI'])['origin']==_0x5e295c;}return'function'==typeof _0x435c27?_0x435c27:_0x435c27 instanceof RegExp?_0x2fab6b=>!(!_0x2fab6b['match'](_0x435c27)&&!_0x2fab6b['replace'](/^https?:\/\//,'')['match'](_0x435c27)):()=>!0x1;}function Q(_0xa1a198,_0x28e0){return _0x10f532(_0xa1a198['target'])['includes'](_0x28e0);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x4a7605(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3f8018,_0x4b48b4,_0x4edf4a){super(),this['_editor']=_0x3f8018,this['_editing']=_0x4b48b4,this['_dialog']=_0x3f8018['plugins']['get'](_0x43377a),this['_api']=_0x4b48b4['ctxElement']['getAPI'](),this['_type']=_0x4edf4a,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:_0x5ea629,model:_0x188e21}=this['_editor'],_0x4fa82=_0x188e21['document']['selection']['getSelectedElement'](),_0x4012e9=_0x4fa82&&(_0x4fa82['is']('element','imageBlock')||_0x4fa82['is']('element','imageInline'));this['_formView']=new R(_0x5ea629,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2a6800,'title':_(_0x5ea629,this['_type'],_0x4012e9?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5e8274['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4ae52e=>!Q(_0x4ae52e,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x285654}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5b15f0=>{const _0x5d964a=_0x285654['length'];for(const _0x4e95d8 of _0x285654){const _0x3718d0=_0x4e95d8===_0x285654[_0x5d964a-0x1],{cdnUrl:_0x5593e0,fileInfo:_0x1924dd}=_0x4e95d8;if(!_0x5593e0||!_0x1924dd)continue;const {width:_0x4c02c6,height:_0x4b6b92}=_0x1924dd['imageInfo'],_0x58b153=V(_0x5593e0,_0x4c02c6,_0x4b6b92),_0x3cdb49=C(_0x5593e0,_0x58b153['width']),_0x3c7d3d={'id':_0x1924dd['uuid'],'type':'image','attributes':{'imageDimension':_0x58b153,..._0x3cdb49}};this['_insertAsset'](_0x3c7d3d,_0x3718d0,_0x5b15f0);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1c58b2=>{'idle'===_0x1c58b2['detail']['status']&&!_0x1c58b2['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x11603b,_0x22399f,_0xfd1ff1){const _0x5e0f5d=this['_editor']['model']['document']['selection'],_0x52a551=_0x5e0f5d['getSelectedElement'](),_0x12033b=!(!_0x52a551||!_0x52a551['is']('element','imageInline'));_0xfd1ff1['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x11603b,_0x12033b),_0x22399f||_0xfd1ff1['setSelection'](_0x5e0f5d['getLastPosition']());}['_insertImage'](_0x40b40e,_0x4f5a86){const _0x1c675c=this['_editor'],{imageDimension:_0x4ad7f0,imageFallbackUrl:_0x2896bd,imageSources:_0x12c59f}=_0x40b40e['attributes'];_0x1c675c['execute']('insertImage',{'imageType':_0x4f5a86?'imageInline':null,'source':{'uploadcareImageId':_0x40b40e['id'],'src':_0x2896bd,'sources':_0x12c59f,..._0x4ad7f0}});}}class w extends _0x131bcf{['_editing'];['_controller']=null;static get['requires'](){return[_0x43377a,o];}constructor(_0x4a5b9d){super(_0x4a5b9d),this['_editing']=_0x4a5b9d['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x162058){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x162058);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x48bb36,..._0x1d0858}){return _0x5a5fe5(_0x48bb36,_0x1d0858);}static['getInfo'](_0x550fa1,_0x4f09f2){return _0x3273c8(_0x550fa1,_0x4f09f2);}}class f extends _0x7e36d9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x510314,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4a9ef6=this['editor'];if(!!!_0x4a9ef6['config']['get']('uploadcare'))return;_0x4a9ef6['plugins']['get'](_0x510314)['createUploadAdapter']=_0x1a139f=>new k(_0x1a139f,_0x4a9ef6),_0x4a9ef6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2bf82e,{imageElement:_0x2df768,data:_0x147125})=>{_0x4a9ef6['model']['change'](_0x41c6ee=>{_0x41c6ee['setAttribute']('uploadcareImageId',_0x147125['uploadcareImageId'],_0x2df768);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5dc5f1,_0x43d11){this['loader']=_0x5dc5f1,this['editor']=_0x43d11,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x20a9e4=await this['loader']['file'];return j['upload']({'file':_0x20a9e4,'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':_0x319d84=>{_0x319d84&&_0x319d84['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x319d84['value']);}})['then'](async _0x383f07=>{const {imageFallbackUrl:_0x5782b0,imageSources:_0x2be460}=C(_0x383f07['cdnUrl'],_0x383f07['imageInfo']['width']);return{'uploadcareImageId':_0x383f07['uuid'],'default':_0x5782b0,'sources':_0x2be460};})['catch'](()=>{const _0x36402f=t('Cannot\x20upload\x20file:')+('\x20'+_0x20a9e4['name']+'.');return Promise['reject'](_0x36402f);});}['abort'](){this['controller']['abort']();}}class o extends _0x7e36d9{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x43377a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x28af52){super(_0x28af52),this['ucContextId']=_0x14e977();}['init'](){const _0x1c2d3b=this['editor'];_0x1c2d3b['commands']['add']('uploadcare',new w(_0x1c2d3b));}['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 _0x122781=_0x4a05f8['document']['querySelector']('input[uploadcare-file-input]');_0x122781&&_0x122781['remove']();}),async function(_0x13eb09){const _0x59ec2b=_0x22ac9d([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x215335=0x3d8d0df,_0x2c55f9=0x3dfa4df^_0x215335,_0x58d979=window[_0x22ac9d([0x44,0x61,0x74,0x65])][_0x22ac9d([0x6e,0x6f,0x77])](),_0x1a6ec8=_0x13eb09[_0x22ac9d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30dc26=new window[(_0x22ac9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c4953=>{_0x1a6ec8[_0x22ac9d([0x6f,0x6e,0x63,0x65])](_0x22ac9d([0x72,0x65,0x61,0x64,0x79]),_0x3c4953);}),_0x5a4da2={[_0x22ac9d([0x6b,0x74,0x79])]:_0x22ac9d([0x45,0x43]),[_0x22ac9d([0x75,0x73,0x65])]:_0x22ac9d([0x73,0x69,0x67]),[_0x22ac9d([0x63,0x72,0x76])]:_0x22ac9d([0x50,0x2d,0x32,0x35,0x36]),[_0x22ac9d([0x78])]:_0x22ac9d([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]),[_0x22ac9d([0x79])]:_0x22ac9d([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]),[_0x22ac9d([0x61,0x6c,0x67])]:_0x22ac9d([0x45,0x53,0x32,0x35,0x36])},_0x3bfe59=_0x1a6ec8[_0x22ac9d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x22ac9d([0x67,0x65,0x74])](_0x22ac9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x47d1af(){let _0x4464cb,_0x534fb2=null,_0x429e8a=null;try{if(_0x3bfe59==_0x22ac9d([0x47,0x50,0x4c]))return _0x22ac9d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4464cb=_0x4e131c(),!_0x4464cb)return _0x22ac9d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4464cb[_0x22ac9d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x429e8a=_0x456629(_0x4464cb[_0x22ac9d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4464cb[_0x22ac9d([0x6a,0x74,0x69])])),await _0x26253f()?_0x521af0()?_0x45b9e8()?_0x22ac9d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x36023d()?(_0x4464cb[_0x22ac9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22ac9d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x534fb2=_0x28e570(_0x22ac9d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4464cb[_0x22ac9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22ac9d([0x74,0x72,0x69,0x61,0x6c])&&(_0x534fb2=_0x28e570(_0x22ac9d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3edd4e()):_0x22ac9d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x22ac9d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x22ac9d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x22ac9d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x45b9e8(){const _0x3dd6e4=[_0x22ac9d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x22ac9d([0x74,0x72,0x69,0x61,0x6c])][_0x22ac9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4464cb[_0x22ac9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x58d979/0x3e8:0xe10*_0x2c55f9;return _0x4464cb[_0x22ac9d([0x65,0x78,0x70])]<_0x3dd6e4;}function _0x521af0(){const _0x566ecb=_0x4464cb[_0x22ac9d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x566ecb&&(!!_0x566ecb[_0x22ac9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ac9d([0x2a]))||!!_0x566ecb[_0x22ac9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ac9d([0x55,0x50,0x4c,0x43])));}function _0x36023d(){const _0x216b57=_0x4464cb[_0x22ac9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x216b57||0x0==_0x216b57[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc25dc9}=new URL(window[_0x22ac9d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x216b57[_0x22ac9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc25dc9))return!0x0;const _0xa241cd=_0xc25dc9[_0x22ac9d([0x73,0x70,0x6c,0x69,0x74])](_0x22ac9d([0x2e]));return _0x216b57[_0x22ac9d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29c484=>_0x29c484[_0x22ac9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ac9d([0x2a])))[_0x22ac9d([0x6d,0x61,0x70])](_0x3baefd=>_0x3baefd[_0x22ac9d([0x73,0x70,0x6c,0x69,0x74])](_0x22ac9d([0x2e])))[_0x22ac9d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x390d49=>_0x390d49[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xa241cd[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22ac9d([0x6d,0x61,0x70])](_0x15afd0=>Array(_0xa241cd[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x15afd0[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22ac9d([0x66,0x69,0x6c,0x6c])](_0x15afd0[0x0]===_0x22ac9d([0x2a])?_0x22ac9d([0x2a]):'')[_0x22ac9d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x15afd0))[_0x22ac9d([0x73,0x6f,0x6d,0x65])](_0x167646=>_0xa241cd[_0x22ac9d([0x65,0x76,0x65,0x72,0x79])]((_0xbfcf7d,_0x2c4530)=>_0x167646[_0x2c4530]===_0xbfcf7d||_0x167646[_0x2c4530]===_0x22ac9d([0x2a])));}function _0x3edd4e(){return _0x534fb2&&_0x429e8a?new window[(_0x22ac9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d6795,_0x201614)=>{_0x534fb2[_0x22ac9d([0x74,0x68,0x65,0x6e])](_0x2d6795,_0x201614),_0x429e8a[_0x22ac9d([0x74,0x68,0x65,0x6e])](_0x58806f=>{_0x58806f!=_0x22ac9d([0x56,0x61,0x6c,0x69,0x64])&&_0x2d6795(_0x58806f);},_0x201614);}):_0x534fb2||_0x429e8a||_0x22ac9d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x456629(_0x3abe4d,_0x2f26f8){return new window[(_0x22ac9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x282eb0=>{if(_0x5c103d())return _0x282eb0(_0x22ac9d([0x56,0x61,0x6c,0x69,0x64]));_0x5acf78(),_0x1a6ec8[_0x22ac9d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x22ac9d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1e0534=!0x1;const _0x59e25a=_0x14e977();function _0x5936d4(_0x22acc8){return!!_0x22acc8&&(typeof _0x22acc8===_0x22ac9d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x22acc8===_0x22ac9d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x22acc8[_0x22ac9d([0x74,0x68,0x65,0x6e])]===_0x22ac9d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x22acc8[_0x22ac9d([0x63,0x61,0x74,0x63,0x68])]===_0x22ac9d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c41e7(_0x1c3ab7){_0x46701f(_0x1c3ab7)[_0x22ac9d([0x74,0x68,0x65,0x6e])](_0x503556=>{if(!_0x503556||_0x503556[_0x22ac9d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x22ac9d([0x6f,0x6b]))return _0x22ac9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x8af6d9(_0xb309a2(_0x59e25a+_0x2f26f8))!=_0x503556[_0x22ac9d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x22ac9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x22ac9d([0x56,0x61,0x6c,0x69,0x64]);})[_0x22ac9d([0x74,0x68,0x65,0x6e])](_0xc554ab=>(_0x5d5d6d(),_0xc554ab),()=>{const _0x4b7ffa=_0x517bd5();return null==_0x4b7ffa?(_0x5d5d6d(),_0x22ac9d([0x56,0x61,0x6c,0x69,0x64])):_0x22ac9d(_0x58d979-_0x4b7ffa>(0x27d454df^_0x215335)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x22ac9d([0x74,0x68,0x65,0x6e])](_0x282eb0)[_0x22ac9d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x282eb0(_0x22ac9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d612d=0x3ee3e5f^_0x215335;function _0x5d5d6d(){const _0x3e2243=_0x22ac9d([0x6c,0x6c,0x63,0x74,0x2d])+_0x8af6d9(_0xb309a2(_0x3abe4d)),_0x3fae5f=_0x326378(_0x8af6d9(window[_0x22ac9d([0x4d,0x61,0x74,0x68])][_0x22ac9d([0x63,0x65,0x69,0x6c])](_0x58d979/_0x3d612d)));window[_0x22ac9d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22ac9d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e2243,_0x3fae5f);}function _0x517bd5(){const _0x370e96=_0x22ac9d([0x6c,0x6c,0x63,0x74,0x2d])+_0x8af6d9(_0xb309a2(_0x3abe4d)),_0x1bb8b5=window[_0x22ac9d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22ac9d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x370e96);return _0x1bb8b5?window[_0x22ac9d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x326378(_0x1bb8b5),0x10)*_0x3d612d:null;}function _0x46701f(_0x3a1086){return new window[(_0x22ac9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18e218,_0x20caa2)=>{_0x3a1086[_0x22ac9d([0x74,0x68,0x65,0x6e])](_0x18e218,_0x20caa2),window[_0x22ac9d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20caa2,0x3d9041f^_0x215335);});}}_0x1a6ec8[_0x22ac9d([0x6f,0x6e])](_0x22ac9d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x454a8a,_0x20f6f7)=>{if(_0x20f6f7[0x0]!=_0x3abe4d)return _0x282eb0(_0x22ac9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20f6f7[0x1]={..._0x20f6f7[0x1],[_0x22ac9d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x59e25a};},{[_0x22ac9d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22ac9d([0x68,0x69,0x67,0x68])}),_0x1a6ec8[_0x22ac9d([0x6f,0x6e])](_0x22ac9d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a8252=>{_0x5936d4(_0x2a8252[_0x22ac9d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1e0534=!0x0,_0x2c41e7(_0x2a8252[_0x22ac9d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x22ac9d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22ac9d([0x6c,0x6f,0x77])}),_0x30dc26[_0x22ac9d([0x74,0x68,0x65,0x6e])](()=>{_0x1e0534||_0x282eb0(_0x22ac9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c103d(){return _0x1a6ec8[_0x22ac9d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22ac9d([0x76,0x69,0x65,0x77])][_0x22ac9d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x22ac9d([0x61,0x75,0x74,0x6f]);}function _0x5acf78(){_0x1a6ec8[_0x22ac9d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22ac9d([0x76,0x69,0x65,0x77])][_0x22ac9d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22ac9d([0x61,0x75,0x74,0x6f]);}}function _0x28e570(_0x4748f8){const _0x591bbb=[new window[(_0x22ac9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fa158=>setTimeout(_0x2fa158,0x3d1ee13^_0x215335)),_0x30dc26[_0x22ac9d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x22ac9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfe9cf4=>{let _0x28e7fb=0x0;_0x1a6ec8[_0x22ac9d([0x6d,0x6f,0x64,0x65,0x6c])][_0x22ac9d([0x6f,0x6e])](_0x22ac9d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x363bdb,_0xb0509a)=>{_0xb0509a[0x0][_0x22ac9d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x28e7fb++,_0x28e7fb==(0x3d8d127^_0x215335)&&(_0xfe9cf4(),_0x363bdb[_0x22ac9d([0x6f,0x66,0x66])]());});}))];return window[_0x22ac9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22ac9d([0x72,0x61,0x63,0x65])](_0x591bbb)[_0x22ac9d([0x74,0x68,0x65,0x6e])](()=>_0x4748f8);}async function _0x5e670d(){await _0x30dc26,_0x1a6ec8[_0x22ac9d([0x6d,0x6f,0x64,0x65,0x6c])][_0x22ac9d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2477ba,_0x1a6ec8[_0x22ac9d([0x6d,0x6f,0x64,0x65,0x6c])][_0x22ac9d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2477ba,_0x1a6ec8[_0x22ac9d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x22ac9d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x429a1f(_0x31f24b){const _0x238325=_0x80b8ea();_0x1a6ec8[_0x238325]=_0x22ac9d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x31f24b,_0x31f24b!=_0x22ac9d([0x56,0x61,0x6c,0x69,0x64])&&_0x5e670d();}function _0x80b8ea(){const _0x29a516=window[_0x22ac9d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x22ac9d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x22ac9d([0x6e,0x6f,0x77])]())[_0x22ac9d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x22ac9d([0x2e]),'');let _0x26b5c7=_0x22ac9d([0x52]);for(let _0x270750=0x0;_0x270750<_0x29a516[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x270750+=0x2){let _0x43cc84=window[_0x22ac9d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29a516[_0x22ac9d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x270750,_0x270750+0x2));_0x43cc84>=_0x59ec2b[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x43cc84-=_0x59ec2b[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26b5c7+=_0x59ec2b[_0x43cc84];}return _0x26b5c7;}function _0x4e131c(){const _0x55027=_0x3bfe59[_0x22ac9d([0x73,0x70,0x6c,0x69,0x74])](_0x22ac9d([0x2e]));if(0x3!=_0x55027[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4665be(_0x55027[0x1]);function _0x4665be(_0x490152){const _0x61cf50=_0x4fb778(_0x490152);return _0x61cf50&&_0xd1ca52()?_0x61cf50:null;function _0xd1ca52(){const _0x1792a8=_0x61cf50[_0x22ac9d([0x6a,0x74,0x69])],_0xedf601=window[_0x22ac9d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1792a8[_0x22ac9d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1792a8[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x526134={..._0x61cf50,[_0x22ac9d([0x6a,0x74,0x69])]:_0x1792a8[_0x22ac9d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1792a8[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x526134[_0x22ac9d([0x76,0x63])],_0xb309a2(_0x526134)==_0xedf601;}}}async function _0x26253f(){let _0x191d7b=!0x0;try{const _0x72d98e=_0x3bfe59[_0x22ac9d([0x73,0x70,0x6c,0x69,0x74])](_0x22ac9d([0x2e])),[_0x2f0a81,_0x2ed514,_0x1e812e]=_0x72d98e;return _0x5453e9(_0x2f0a81),await _0x1cd124(_0x2f0a81,_0x2ed514,_0x1e812e),_0x191d7b;}catch{return!0x1;}function _0x5453e9(_0x51db91){const _0x594ed7=_0x4fb778(_0x51db91);_0x594ed7&&_0x594ed7[_0x22ac9d([0x61,0x6c,0x67])]==_0x22ac9d([0x45,0x53,0x32,0x35,0x36])||(_0x191d7b=!0x1);}async function _0x1cd124(_0x43e68c,_0x5e5f25,_0x2d4bbe){const _0x2bafcd=window[_0x22ac9d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x22ac9d([0x66,0x72,0x6f,0x6d])](_0x5751b9(_0x2d4bbe),_0x1f870a=>_0x1f870a[_0x22ac9d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xa498f7=new window[(_0x22ac9d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x22ac9d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x43e68c+_0x22ac9d([0x2e])+_0x5e5f25),_0x26ba30=window[_0x22ac9d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x22ac9d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x26ba30)return;const _0x9e871c=await _0x26ba30[_0x22ac9d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x22ac9d([0x6a,0x77,0x6b]),_0x5a4da2,{[_0x22ac9d([0x6e,0x61,0x6d,0x65])]:_0x22ac9d([0x45,0x43,0x44,0x53,0x41]),[_0x22ac9d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x22ac9d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x22ac9d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x26ba30[_0x22ac9d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x22ac9d([0x6e,0x61,0x6d,0x65])]:_0x22ac9d([0x45,0x43,0x44,0x53,0x41]),[_0x22ac9d([0x68,0x61,0x73,0x68])]:{[_0x22ac9d([0x6e,0x61,0x6d,0x65])]:_0x22ac9d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x9e871c,_0x2bafcd,_0xa498f7)||(_0x191d7b=!0x1);}}function _0x4fb778(_0x22cb97){return _0x22cb97[_0x22ac9d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x22ac9d([0x65,0x79]))?JSON[_0x22ac9d([0x70,0x61,0x72,0x73,0x65])](_0x5751b9(_0x22cb97)):null;}function _0x5751b9(_0x40e5a6){return window[_0x22ac9d([0x61,0x74,0x6f,0x62])](_0x40e5a6[_0x22ac9d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x22ac9d([0x2b]))[_0x22ac9d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x22ac9d([0x2f])));}function _0xb309a2(_0x39010b){let _0x20d21a=0x1505;function _0x5dfc60(_0x42e89b){for(let _0x4a4a04=0x0;_0x4a4a04<_0x42e89b[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a4a04++){const _0xe76b8b=_0x42e89b[_0x22ac9d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4a4a04);_0x20d21a=(_0x20d21a<<0x5)+_0x20d21a+_0xe76b8b,_0x20d21a&=_0x20d21a;}}function _0x15df91(_0x378cb4){Array[_0x22ac9d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x378cb4)?_0x378cb4[_0x22ac9d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x15df91):_0x378cb4&&typeof _0x378cb4==_0x22ac9d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x22ac9d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x378cb4)[_0x22ac9d([0x73,0x6f,0x72,0x74])]()[_0x22ac9d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e412c,_0x5c93ee])=>{_0x5dfc60(_0x2e412c),_0x15df91(_0x5c93ee);}):_0x5dfc60(window[_0x22ac9d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x378cb4));}return _0x15df91(_0x39010b),_0x20d21a>>>0x0;}function _0x8af6d9(_0x4a1a27){return _0x4a1a27[_0x22ac9d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x22ac9d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x22ac9d([0x30]));}function _0x326378(_0x2fab46){return _0x2fab46[_0x22ac9d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x22ac9d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x22ac9d([0x6a,0x6f,0x69,0x6e])]('');}function _0x2477ba(){}function _0x22ac9d(_0x4b6bf6){return _0x4b6bf6['map'](_0x59cf40=>String['fromCharCode'](_0x59cf40))['join']('');}_0x429a1f(await _0x47d1af());}(this);}['_initSchema'](){const _0x27db95=this['editor']['model']['schema'];_0x27db95['isRegistered']('imageBlock')&&_0x27db95['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x27db95['isRegistered']('imageInline')&&_0x27db95['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x9d9a99=this['editor'];_0x9d9a99['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x9d9a99['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x681083=>_0x681083['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1e6fd3=_0x9d9a99['commands']['get']('replaceImageSource');_0x1e6fd3&&this['listenTo'](_0x1e6fd3,'cleanupImage',(_0x3e48cf,[_0x523c6c,_0xcf2fca])=>{_0x523c6c['removeAttribute']('uploadcareImageId',_0xcf2fca);});}['_initConfig'](){const _0x7dcffb=this['editor']['config']['get']('uploadcare.uploader')||{},_0x189b0b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x389e16(_0x4a05f8['document'],'uc-config',{..._0x7dcffb,'pubkey':_0x189b0b,'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']=_0x2ffb4b=>{if('closeMax'==_0x2ffb4b)return'#uc-icon-arrow-down';},_0x4a05f8['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x389e16(_0x4a05f8['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4a05f8['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5176ca=this['editor']['commands']['get']('insertImage');_0x5176ca&&this['listenTo'](_0x5176ca,'execute',()=>{const _0x25cf85=this['editor']['model']['document']['selection']['getSelectedElement']();_0x25cf85&&_0x25cf85['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x25cf85);});});const _0xf54c63=this['editor']['commands']['get']('uploadcareImageReplace');_0xf54c63&&this['listenTo'](_0xf54c63,'execute',()=>{const _0x26bcd0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x26bcd0&&_0x26bcd0['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x26bcd0);});});}}class tt extends _0x7e36d9{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xeb4895){super(_0xeb4895),_0xeb4895['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x10d61a['defineComponents'](_0x10d61a);}}class ii extends _0x3511ae{constructor(_0x25df89){super(_0x25df89);const t=_0x25df89['t'],_0x3fb29b=this['bindTemplate'],_0x492d1c=new _0x51ce7b();_0x492d1c['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':[_0x492d1c,{'text':_0x3fb29b['to']('imageUploadProgress',_0x2ef0f9=>t('Loading\x20image...')+'\x20('+(_0x2ef0f9||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 _0x3511ae{constructor(_0x15e764){super(_0x15e764);const t=_0x15e764['t'];this['set']('errorType',null);const _0x793485=new _0x19dd91(_0x15e764);_0x793485['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x793485['withText']=!0x0,_0x793485['class']='ck-button-action',_0x793485['on']('execute',()=>{this['fire']('retry');}),_0x793485['bind']('isVisible')['to'](this,'errorType',_0x2d5566=>'NotFound'!==_0x2d5566);const _0x3b5bc7=new _0x3e32d6();_0x3b5bc7['content']=_0x281f89,_0x3b5bc7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x54a965=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':[_0x3b5bc7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x54a965['to']('errorType',_0x3df479=>t('NotFound'!==_0x3df479?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x793485]},{'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 _0x3511ae{constructor(_0x25893f,_0x2a39b5){super(_0x25893f);const _0x22fea2=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2a39b5,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x22fea2['to']('imageSrc')}});}}class X extends W{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x25fce7,_0x281751,_0x2dff99){super(_0x25fce7),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x25fce7),this['_errorView']=new ti(_0x25fce7),this['_editingView']=new ei(_0x25fce7,_0x2dff99),this['_focusableView']=new _0x3511ae(_0x25fce7),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x281751),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'],_0x13373d=>{this['_addUploadcareImageEditorListeners'](_0x13373d);});}),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'](_0x5d9e0e,_0x50cb54){const _0x5b9785='uc-cloud-image-editor',_0x37883e=_0x5d9e0e['querySelector'](_0x5b9785);if(_0x37883e)return _0x50cb54(_0x37883e);const _0x5da897=new MutationObserver(_0x319df8=>{const _0x390bab=_0x319df8['filter'](_0x38ac85=>_0x38ac85['target']===_0x5d9e0e&&_0x38ac85['addedNodes']['length']>0x0&&_0x38ac85['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5b9785);_0x390bab['length']&&(_0x5da897['disconnect'](),_0x50cb54(_0x390bab[0x0]['addedNodes'][0x0]));});_0x5da897['observe'](_0x5d9e0e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x132851){_0x132851['addEventListener']('apply',_0x4b77ad=>{this['fire']('apply',{'imageSrc':_0x4b77ad['detail']['cdnUrl']});}),_0x132851['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x4a7605(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x40467e,_0x12b62e,_0x51564e){super(),this['_editor']=_0x40467e,this['_dialog']=_0x12b62e,this['_imageElement']=_0x51564e,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 _0x49ca35=this['_imageElement'],_0x2443f6=_0x49ca35['getAttribute']('uploadcareImageId'),_0x680803=_0x49ca35['getAttribute']('src');if(_0x2443f6)await this['_loadImageInfo'](_0x2443f6,_0x680803);else{if(this['_imageCache']['has'](_0x680803)){const _0x40f24e=this['_imageCache']['get'](_0x680803);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x40f24e['url'],this['imageDimension']=_0x40f24e['dimension'],this['imageId']=_0x40f24e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2e163c}=this['_editor'],t=_0x2e163c['t'],_0x197634=new X(_0x2e163c,this['imageStatus'],this['_attributes']);_0x197634['bind']('status')['to'](this,'imageStatus'),_0x197634['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x197634['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x197634['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x197634,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x37f45c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x197634,'position':_0x5e8274['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x197634['focus']();},'onHide':()=>{_0x197634['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x19a8b5=>!Q(_0x19a8b5,_0x197634['element'])}});}['_loadImageInfo'](_0x9b921f,_0x1eb093){return j['getInfo'](_0x9b921f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0xc1984=>{const {width:_0x52bcc8,height:_0x503ddd}=_0xc1984['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1eb093,this['imageDimension']={'width':_0x52bcc8,'height':_0x503ddd},this['imageId']=_0x9b921f;})['catch'](_0x874632=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x874632['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4b5e55,_0xee2931){return this['_getImageAsFile'](_0x4b5e55)['then'](_0x582fa7=>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':_0xee2931['signal'],'file':_0x582fa7,'onProgress':_0x32ddfa=>{_0x32ddfa&&_0x32ddfa['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x32ddfa['value']));}}))['then'](_0x573984=>{const {width:_0x264e14,height:_0x2362c6}=_0x573984['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x573984['cdnUrl'],this['imageDimension']={'width':_0x264e14,'height':_0x2362c6},this['imageId']=_0x573984['uuid'],this['imageUploadProgress']=null;const _0xce286=_0x4b5e55['getAttribute']('src');this['_imageCache']['set'](_0xce286,{'id':_0x573984['uuid'],'url':_0x573984['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x152ebf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x152ebf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4f56b6,_0x5d15c7){_0x4f56b6['on']('apply',(_0x502511,_0x5ddddd)=>{this['_replaceImage'](_0x5d15c7,_0x5ddddd['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4f56b6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4f56b6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xc6cbdb,_0x3c4f74,_0x2a5967){const _0x587336=this['_editor'],{width:_0x12c058,height:_0x35925f}=V(_0x3c4f74,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x358dab,imageSources:_0x5ced45}=C(_0x3c4f74,_0x12c058);_0x587336['model']['change'](_0x3f233f=>{if('$graveyard'===_0xc6cbdb['root']['rootName']){_0x587336['execute']('insertImage',{'imageType':_0xc6cbdb['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xc6cbdb['getAttributes']()),'uploadcareImageId':_0x2a5967,'src':_0x358dab,'sources':_0x5ced45,'width':_0x12c058,'height':_0x35925f}});const _0x4e6864=_0xc6cbdb['getChildren']();_0xc6cbdb=_0x587336['model']['document']['selection']['getSelectedElement']();for(const _0x263b17 of _0x4e6864)_0x3f233f['append'](_0x3f233f['cloneElement'](_0x263b17),_0xc6cbdb);}else _0x3f233f['setSelection'](_0xc6cbdb,'on'),_0x587336['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xc6cbdb['getAttributes']()),'uploadcareImageId':_0x2a5967,'src':_0x358dab,'sources':_0x5ced45,'width':_0x12c058,'height':_0x35925f},_0xc6cbdb);_0x3f233f['setSelection'](_0xc6cbdb,'on');});}async['_getImageAsFile'](_0x271333){const _0x24334d=_0x4a05f8['window'],_0x2e0381=_0x4a05f8['document']['location']['href'],_0x59c200=new _0x24334d['URL'](_0x271333['getAttribute']('src'),_0x2e0381);if('data:'===_0x59c200['protocol']){const _0x2819cc=_0x59c200['href']['split'](','),_0x3991c9=_0x2819cc[0x0]['match'](/:(.*?);/)[0x1],_0x58b456=_0x3991c9['split']('/')[0x1],_0x484780=_0x24334d['atob'](_0x2819cc[_0x2819cc['length']-0x1]);let _0x15bf64=_0x484780['length'];const _0x463066=new _0x24334d['Uint8Array'](_0x15bf64);for(;_0x15bf64--;)_0x463066[_0x15bf64]=_0x484780['charCodeAt'](_0x15bf64);return new _0x24334d['File']([_0x463066],'image.'+_0x58b456,{'type':_0x3991c9});}const _0x626bca=_0x59c200['href']['split']('/'),_0x220eaf=_0x626bca[_0x626bca['length']-0x1],_0x3fc069=_0x220eaf['split']('.')[0x1];return _0x24334d['fetch'](_0x59c200['href'])['then'](_0x4bdcce=>_0x4bdcce['clone']()['blob']())['then'](_0x3e3433=>new _0x24334d['File']([_0x3e3433],_0x220eaf,{'type':'image/'+_0x3fc069}));}}class N extends _0x131bcf{['imageEditController'];static get['requires'](){return[_0x43377a];}['_isEditable'];constructor(_0xbefd6e){super(_0xbefd6e),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x26b13b){const _0x49220e=z(_0x26b13b);return _0x55210c=>!(!_0x55210c||!_0x55210c['is']('element','imageBlock')&&!_0x55210c['is']('element','imageInline'))&&(!!_0x55210c['hasAttribute']('uploadcareImageId')||!!_0x55210c['hasAttribute']('src')&&_0x49220e(_0x55210c['getAttribute']('src')));}(_0xbefd6e['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x20cd7e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x20cd7e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xbb5332=this['editor']['model']['document']['selection']['getSelectedElement']();_0xbb5332&&(_0xbb5332['is']('element','imageBlock')||_0xbb5332['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x43377a),_0xbb5332),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x131bcf{['refresh'](){const _0xb4c597=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xb4c597&&(_0xb4c597['is']('element','imageBlock')||_0xb4c597['is']('element','imageInline')));}['execute'](_0x1a9905){const _0x5afa79=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xc29f4a=>{_0xc29f4a['setAttributes'](_0x1a9905,_0x5afa79),_0xc29f4a['removeAttribute']('srcset',_0x5afa79),_0xc29f4a['removeAttribute']('sizes',_0x5afa79);});}}class m extends _0x7e36d9{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x238cd8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x416be8}=this;_0x416be8['commands']['add']('uploadcareImageEdit',new N(_0x416be8)),_0x416be8['commands']['add']('uploadcareImageReplace',new O(_0x416be8));}}class g extends _0x7e36d9{['_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 _0x2a9ace=this['editor'];_0x2a9ace['ui']['componentFactory']['add']('uploadcareImageEdit',_0x46099b=>{const _0x55de39=_0x2a9ace['commands']['get']('uploadcareImageEdit'),_0x3b7504=new _0x19dd91(_0x46099b),t=_0x46099b['t'];return _0x3b7504['set']({'icon':_0x37f45c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3b7504['bind']('isEnabled')['to'](_0x55de39),_0x3b7504['bind']('isOn')['to'](_0x55de39,'isActive'),this['listenTo'](_0x3b7504,'execute',()=>{_0x2a9ace['execute']('uploadcareImageEdit'),_0x2a9ace['editing']['view']['focus']();}),_0x3b7504;}),this['_initConfig']();}['_initConfig'](){const _0x53e613=_0x389e16(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x53e613),this['listenTo'](this['editor'],'destroy',()=>{_0x53e613['remove']();});}}class et extends _0x7e36d9{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20250920.0",
3
+ "version": "0.0.0-nightly-20250921.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-20250920.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250920.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250920.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250920.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250920.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250920.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250920.0",
33
- "ckeditor5": "0.0.0-nightly-20250920.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250921.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250921.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250921.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250921.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250921.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250921.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250921.0",
33
+ "ckeditor5": "0.0.0-nightly-20250921.0",
34
34
  "@uploadcare/file-uploader": "1.19.4",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2148fc=_0x5d2b;(function(_0x26ca95,_0x48c6ce){const _0x907194=_0x5d2b,_0x759e5d=_0x26ca95();while(!![]){try{const _0xe9fc48=parseInt(_0x907194(0x1c4))/0x1*(-parseInt(_0x907194(0x1a2))/0x2)+parseInt(_0x907194(0x1ce))/0x3+-parseInt(_0x907194(0x1d8))/0x4*(parseInt(_0x907194(0x1d6))/0x5)+parseInt(_0x907194(0x1bc))/0x6*(parseInt(_0x907194(0x199))/0x7)+parseInt(_0x907194(0x1e0))/0x8*(-parseInt(_0x907194(0x1ac))/0x9)+parseInt(_0x907194(0x1bb))/0xa*(-parseInt(_0x907194(0x1be))/0xb)+parseInt(_0x907194(0x1ca))/0xc;if(_0xe9fc48===_0x48c6ce)break;else _0x759e5d['push'](_0x759e5d['shift']());}catch(_0x56275e){_0x759e5d['push'](_0x759e5d['shift']());}}}(_0x3faa,0x84428));function _0x5d2b(_0x2b531d,_0x10f6dd){const _0x3faa92=_0x3faa();return _0x5d2b=function(_0x5d2b3e,_0x2662ef){_0x5d2b3e=_0x5d2b3e-0x195;let _0x295eac=_0x3faa92[_0x5d2b3e];return _0x295eac;},_0x5d2b(_0x2b531d,_0x10f6dd);}import{IconUploadcareImageUpload as _0x69a48d}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x4d8611}from'ckeditor5/src/utils.js';import{Dialog as _0x5339d2,DialogViewPosition as _0x1c64ca}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x4c6f31}from'./uploadcareformview.js';import{UploadcareSource as _0x4c9daf}from'../uploadcareconfig.js';import{getTranslation as _0x51189a}from'../utils/common-translations.js';function _0x3faa(){const _0x52d3bc=['document','linkHref','stopListening','image','removeSelectionAttribute','_initDialog','8860OuNvaj','6MfhUVm','_insertAsset','7447WjjtjB','width','stopDelegating','get','_api','doneFlow','3559xuQKWn','imageInfo','source-list','show','plugins','_dialog','13313820vVAadl','_initListeners','hide','element','687750XrOqDI','setAttribute','getLastPosition','length','selection','EDITOR_TOP_CENTER','attributes','allEntries','26585gMvcpw','_formView','60gxpSFf','ctxElement','setCurrentActivity','text','detail','getOutputCollectionState','Replace','uuid','90872UQQnVP','status','ucContextId','change','Insert','4975474NOYyYD','destroy','insertImage','idle','done-click','imageBlock','isOpen','editing','Local','242UXUxbH','imageInline','getAPI','_editing','_insertImage','execute','focus','setSelection','removeAllFiles','uploadCare','315NhWRWl','configElement','initFlow','getSelectedElement','model','_type','addEventListener','_editor','view'];_0x3faa=function(){return _0x52d3bc;};return _0x3faa();}import{getImageUrls as _0x19ad13,getImageDimension as _0x267cf8}from'../utils/editingutils.js';import{isAncestor as _0x2485d7}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
- _0x4d8611(){[_0x2148fc(0x1b3)];[_0x2148fc(0x1c9)];[_0x2148fc(0x1a5)];[_0x2148fc(0x1c2)];[_0x2148fc(0x1b1)]=null;[_0x2148fc(0x1d7)]=null;constructor(_0x31a414,_0x235f0e,_0x482897){const _0x1a0631=_0x2148fc;super(),this[_0x1a0631(0x1b3)]=_0x31a414,this[_0x1a0631(0x1a5)]=_0x235f0e,this[_0x1a0631(0x1c9)]=_0x31a414[_0x1a0631(0x1c8)][_0x1a0631(0x1c1)](_0x5339d2),this[_0x1a0631(0x1c2)]=_0x235f0e[_0x1a0631(0x1d9)][_0x1a0631(0x1a4)](),this[_0x1a0631(0x1b1)]=_0x482897,this[_0x1a0631(0x1a5)][_0x1a0631(0x1ad)][_0x1a0631(0x1cf)](_0x1a0631(0x1c6),this[_0x1a0631(0x1b1)]),this[_0x1a0631(0x1ba)](),this[_0x1a0631(0x1cb)](),this[_0x1a0631(0x1c2)][_0x1a0631(0x1ae)]();}[_0x2148fc(0x19a)](){const _0x200bb3=_0x2148fc;this[_0x200bb3(0x1d7)]&&(this[_0x200bb3(0x1d7)][_0x200bb3(0x19a)](),this[_0x200bb3(0x1d7)]=null),this[_0x200bb3(0x1c2)]&&this[_0x200bb3(0x1c2)][_0x200bb3(0x1c3)](),this[_0x200bb3(0x1b7)](),this[_0x200bb3(0x1c0)]();}[_0x2148fc(0x1ba)](){const _0x13949b=_0x2148fc,{locale:_0x3d4496,model:_0x5051a9}=this[_0x13949b(0x1b3)],_0x7e4788=_0x5051a9[_0x13949b(0x1b5)][_0x13949b(0x1d2)][_0x13949b(0x1af)](),_0x155fb9=_0x7e4788&&(_0x7e4788['is'](_0x13949b(0x1cd),_0x13949b(0x19e))||_0x7e4788['is'](_0x13949b(0x1cd),_0x13949b(0x1a3)));this[_0x13949b(0x1d7)]=new _0x4c6f31(_0x3d4496,this[_0x13949b(0x1a5)][_0x13949b(0x196)]),this[_0x13949b(0x1c9)][_0x13949b(0x1c7)]({'id':_0x13949b(0x1ab),'icon':_0x69a48d,'title':_0x51189a(_0x3d4496,this[_0x13949b(0x1b1)],_0x155fb9?_0x13949b(0x1de):_0x13949b(0x198))[_0x13949b(0x1db)],'content':this[_0x13949b(0x1d7)],'position':_0x1c64ca[_0x13949b(0x1d3)],'isModal':!0x0,'onShow':()=>{const _0x1682f7=_0x13949b;this[_0x1682f7(0x1d7)][_0x1682f7(0x1a8)]();},'onHide':()=>{const _0x5339c2=_0x13949b;this[_0x5339c2(0x1c2)][_0x5339c2(0x1aa)](),this[_0x5339c2(0x1b3)][_0x5339c2(0x1a0)][_0x5339c2(0x1b4)][_0x5339c2(0x1a8)](),this[_0x5339c2(0x19a)]();},'keystrokeHandlerOptions':{'filter':_0x5be5ec=>!_0x2485d7(_0x5be5ec,this[_0x13949b(0x1d7)][_0x13949b(0x1cd)])}});}[_0x2148fc(0x1cb)](){const _0x3a8b82=_0x2148fc;this[_0x3a8b82(0x1a5)][_0x3a8b82(0x1d9)][_0x3a8b82(0x1b2)](_0x3a8b82(0x19d),()=>{const _0x4afdab=_0x3a8b82,{allEntries:_0x3430cf}=this[_0x4afdab(0x1c2)][_0x4afdab(0x1dd)]();this[_0x4afdab(0x1b3)][_0x4afdab(0x1b0)][_0x4afdab(0x197)](_0xe5ea48=>{const _0x3983de=_0x4afdab,_0x1b5451=_0x3430cf[_0x3983de(0x1d1)];for(const _0x3d92f5 of _0x3430cf){const _0x1169b9=_0x3d92f5===_0x3430cf[_0x1b5451-0x1],{cdnUrl:_0x2126ed,fileInfo:_0x1ff607}=_0x3d92f5;if(!_0x2126ed||!_0x1ff607)continue;const {width:_0x345669,height:_0x23844f}=_0x1ff607[_0x3983de(0x1c5)],_0x2f6a02=_0x267cf8(_0x2126ed,_0x345669,_0x23844f),_0x29c611=_0x19ad13(_0x2126ed,_0x2f6a02[_0x3983de(0x1bf)]),_0x1c5553={'id':_0x1ff607[_0x3983de(0x1df)],'type':_0x3983de(0x1b8),'attributes':{'imageDimension':_0x2f6a02,..._0x29c611}};this[_0x3983de(0x1bd)](_0x1c5553,_0x1169b9,_0xe5ea48);}}),this[_0x4afdab(0x1c9)][_0x4afdab(0x1cc)]();}),this[_0x3a8b82(0x1a5)][_0x3a8b82(0x1d9)][_0x3a8b82(0x1b2)](_0x3a8b82(0x197),_0x3cad50=>{const _0x93a7df=_0x3a8b82;_0x93a7df(0x19c)===_0x3cad50[_0x93a7df(0x1dc)][_0x93a7df(0x195)]&&!_0x3cad50[_0x93a7df(0x1dc)][_0x93a7df(0x1d5)][_0x93a7df(0x1d1)]&&this[_0x93a7df(0x1c9)][_0x93a7df(0x19f)]&&(this[_0x93a7df(0x1b1)]===_0x4c9daf[_0x93a7df(0x1a1)]?this[_0x93a7df(0x1c2)][_0x93a7df(0x1da)](_0x4c9daf[_0x93a7df(0x1a1)]):this[_0x93a7df(0x1c2)][_0x93a7df(0x1ae)]());});}[_0x2148fc(0x1bd)](_0x457d11,_0x1dffbd,_0x4f1df6){const _0x6156f2=_0x2148fc,_0x211b5b=this[_0x6156f2(0x1b3)][_0x6156f2(0x1b0)][_0x6156f2(0x1b5)][_0x6156f2(0x1d2)],_0x26d5ca=_0x211b5b[_0x6156f2(0x1af)](),_0x10225a=!(!_0x26d5ca||!_0x26d5ca['is'](_0x6156f2(0x1cd),_0x6156f2(0x1a3)));_0x4f1df6[_0x6156f2(0x1b9)](_0x6156f2(0x1b6)),this[_0x6156f2(0x1a6)](_0x457d11,_0x10225a),_0x1dffbd||_0x4f1df6[_0x6156f2(0x1a9)](_0x211b5b[_0x6156f2(0x1d0)]());}[_0x2148fc(0x1a6)](_0x3a0dc6,_0x34a562){const _0x35be21=_0x2148fc,_0x2440c8=this[_0x35be21(0x1b3)],{imageDimension:_0x32d1ec,imageFallbackUrl:_0x5a03bb,imageSources:_0x33b43d}=_0x3a0dc6[_0x35be21(0x1d4)];_0x2440c8[_0x35be21(0x1a7)](_0x35be21(0x19b),{'imageType':_0x34a562?_0x35be21(0x1a3):null,'source':{'uploadcareImageId':_0x3a0dc6['id'],'src':_0x5a03bb,'sources':_0x33b43d,..._0x32d1ec}});}}
23
+ const _0xbc1a2d=_0xe4cc;(function(_0x47acac,_0x1732eb){const _0x21fb83=_0xe4cc,_0x4622b1=_0x47acac();while(!![]){try{const _0x18624f=parseInt(_0x21fb83(0x172))/0x1*(-parseInt(_0x21fb83(0x1ab))/0x2)+-parseInt(_0x21fb83(0x184))/0x3*(parseInt(_0x21fb83(0x180))/0x4)+parseInt(_0x21fb83(0x1b2))/0x5+-parseInt(_0x21fb83(0x1a4))/0x6+parseInt(_0x21fb83(0x18b))/0x7+-parseInt(_0x21fb83(0x194))/0x8+-parseInt(_0x21fb83(0x1ac))/0x9*(-parseInt(_0x21fb83(0x1ae))/0xa);if(_0x18624f===_0x1732eb)break;else _0x4622b1['push'](_0x4622b1['shift']());}catch(_0x317a80){_0x4622b1['push'](_0x4622b1['shift']());}}}(_0xd455,0x56d02));import{IconUploadcareImageUpload as _0x3b044f}from'ckeditor5/src/icons.js';function _0xe4cc(_0x38c1d1,_0x3bb4ed){const _0xd4550b=_0xd455();return _0xe4cc=function(_0xe4cc26,_0x2d3e6c){_0xe4cc26=_0xe4cc26-0x172;let _0x3e3a44=_0xd4550b[_0xe4cc26];return _0x3e3a44;},_0xe4cc(_0x38c1d1,_0x3bb4ed);}import{ObservableMixin as _0x450dce}from'ckeditor5/src/utils.js';import{Dialog as _0x3c269a,DialogViewPosition as _0x180f9c}from'ckeditor5/src/ui.js';function _0xd455(){const _0x16cf59=['216ORgXQk','allEntries','get','width','1305vJIrqS','isOpen','_api','setSelection','addEventListener','setCurrentActivity','insertImage','528766ZuNxNE','image','Insert','imageBlock','stopDelegating','element','EDITOR_TOP_CENTER','destroy','getSelectedElement','1398656ztBQeM','_dialog','selection','show','getOutputCollectionState','status','_formView','view','uuid','focus','_type','idle','change','getLastPosition','_insertImage','removeAllFiles','3573090PASSsc','plugins','_insertAsset','execute','getAPI','linkHref','ctxElement','58CDPpfV','216QZIpYL','text','398790ooNfGx','editing','ucContextId','document','3343440swOKud','setAttribute','Local','_editor','_initListeners','_editing','_initDialog','done-click','imageInline','model','19031pFJjpo','detail','configElement','length','uploadCare','stopListening','imageInfo','hide','initFlow','removeSelectionAttribute','source-list','attributes','doneFlow','Replace'];_0xd455=function(){return _0x16cf59;};return _0xd455();}import{UploadcareFormView as _0x11b965}from'./uploadcareformview.js';import{UploadcareSource as _0x2aa873}from'../uploadcareconfig.js';import{getTranslation as _0x1a7434}from'../utils/common-translations.js';import{getImageUrls as _0x20d7d2,getImageDimension as _0x10ea94}from'../utils/editingutils.js';import{isAncestor as _0x1855a3}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
+ _0x450dce(){[_0xbc1a2d(0x1b5)];[_0xbc1a2d(0x195)];[_0xbc1a2d(0x1b7)];[_0xbc1a2d(0x186)];[_0xbc1a2d(0x19e)]=null;[_0xbc1a2d(0x19a)]=null;constructor(_0x54fc4b,_0x199ebc,_0x2c8920){const _0x5d971c=_0xbc1a2d;super(),this[_0x5d971c(0x1b5)]=_0x54fc4b,this[_0x5d971c(0x1b7)]=_0x199ebc,this[_0x5d971c(0x195)]=_0x54fc4b[_0x5d971c(0x1a5)][_0x5d971c(0x182)](_0x3c269a),this[_0x5d971c(0x186)]=_0x199ebc[_0x5d971c(0x1aa)][_0x5d971c(0x1a8)](),this[_0x5d971c(0x19e)]=_0x2c8920,this[_0x5d971c(0x1b7)][_0x5d971c(0x174)][_0x5d971c(0x1b3)](_0x5d971c(0x17c),this[_0x5d971c(0x19e)]),this[_0x5d971c(0x1b8)](),this[_0x5d971c(0x1b6)](),this[_0x5d971c(0x186)][_0x5d971c(0x17a)]();}[_0xbc1a2d(0x192)](){const _0x1d720b=_0xbc1a2d;this[_0x1d720b(0x19a)]&&(this[_0x1d720b(0x19a)][_0x1d720b(0x192)](),this[_0x1d720b(0x19a)]=null),this[_0x1d720b(0x186)]&&this[_0x1d720b(0x186)][_0x1d720b(0x17e)](),this[_0x1d720b(0x177)](),this[_0x1d720b(0x18f)]();}[_0xbc1a2d(0x1b8)](){const _0x25c0af=_0xbc1a2d,{locale:_0x3813fa,model:_0x2a10c3}=this[_0x25c0af(0x1b5)],_0x389beb=_0x2a10c3[_0x25c0af(0x1b1)][_0x25c0af(0x196)][_0x25c0af(0x193)](),_0x342974=_0x389beb&&(_0x389beb['is'](_0x25c0af(0x190),_0x25c0af(0x18e))||_0x389beb['is'](_0x25c0af(0x190),_0x25c0af(0x1ba)));this[_0x25c0af(0x19a)]=new _0x11b965(_0x3813fa,this[_0x25c0af(0x1b7)][_0x25c0af(0x1b0)]),this[_0x25c0af(0x195)][_0x25c0af(0x197)]({'id':_0x25c0af(0x176),'icon':_0x3b044f,'title':_0x1a7434(_0x3813fa,this[_0x25c0af(0x19e)],_0x342974?_0x25c0af(0x17f):_0x25c0af(0x18d))[_0x25c0af(0x1ad)],'content':this[_0x25c0af(0x19a)],'position':_0x180f9c[_0x25c0af(0x191)],'isModal':!0x0,'onShow':()=>{const _0x303f30=_0x25c0af;this[_0x303f30(0x19a)][_0x303f30(0x19d)]();},'onHide':()=>{const _0x5efead=_0x25c0af;this[_0x5efead(0x186)][_0x5efead(0x1a3)](),this[_0x5efead(0x1b5)][_0x5efead(0x1af)][_0x5efead(0x19b)][_0x5efead(0x19d)](),this[_0x5efead(0x192)]();},'keystrokeHandlerOptions':{'filter':_0x5016a0=>!_0x1855a3(_0x5016a0,this[_0x25c0af(0x19a)][_0x25c0af(0x190)])}});}[_0xbc1a2d(0x1b6)](){const _0x7d1683=_0xbc1a2d;this[_0x7d1683(0x1b7)][_0x7d1683(0x1aa)][_0x7d1683(0x188)](_0x7d1683(0x1b9),()=>{const _0xc1809f=_0x7d1683,{allEntries:_0x1e35a5}=this[_0xc1809f(0x186)][_0xc1809f(0x198)]();this[_0xc1809f(0x1b5)][_0xc1809f(0x1bb)][_0xc1809f(0x1a0)](_0x2a6d83=>{const _0x3e1c67=_0xc1809f,_0x1b7be1=_0x1e35a5[_0x3e1c67(0x175)];for(const _0x454e9d of _0x1e35a5){const _0x14b295=_0x454e9d===_0x1e35a5[_0x1b7be1-0x1],{cdnUrl:_0x4ac865,fileInfo:_0x29fb9e}=_0x454e9d;if(!_0x4ac865||!_0x29fb9e)continue;const {width:_0x29fbb2,height:_0x4d84a7}=_0x29fb9e[_0x3e1c67(0x178)],_0x185216=_0x10ea94(_0x4ac865,_0x29fbb2,_0x4d84a7),_0x2834bd=_0x20d7d2(_0x4ac865,_0x185216[_0x3e1c67(0x183)]),_0x47add3={'id':_0x29fb9e[_0x3e1c67(0x19c)],'type':_0x3e1c67(0x18c),'attributes':{'imageDimension':_0x185216,..._0x2834bd}};this[_0x3e1c67(0x1a6)](_0x47add3,_0x14b295,_0x2a6d83);}}),this[_0xc1809f(0x195)][_0xc1809f(0x179)]();}),this[_0x7d1683(0x1b7)][_0x7d1683(0x1aa)][_0x7d1683(0x188)](_0x7d1683(0x1a0),_0x1ed7d3=>{const _0x4b913c=_0x7d1683;_0x4b913c(0x19f)===_0x1ed7d3[_0x4b913c(0x173)][_0x4b913c(0x199)]&&!_0x1ed7d3[_0x4b913c(0x173)][_0x4b913c(0x181)][_0x4b913c(0x175)]&&this[_0x4b913c(0x195)][_0x4b913c(0x185)]&&(this[_0x4b913c(0x19e)]===_0x2aa873[_0x4b913c(0x1b4)]?this[_0x4b913c(0x186)][_0x4b913c(0x189)](_0x2aa873[_0x4b913c(0x1b4)]):this[_0x4b913c(0x186)][_0x4b913c(0x17a)]());});}[_0xbc1a2d(0x1a6)](_0x330f24,_0x2d1d5f,_0x1acbfc){const _0x3dd47a=_0xbc1a2d,_0x3cb241=this[_0x3dd47a(0x1b5)][_0x3dd47a(0x1bb)][_0x3dd47a(0x1b1)][_0x3dd47a(0x196)],_0x9a8c7b=_0x3cb241[_0x3dd47a(0x193)](),_0x8fcc79=!(!_0x9a8c7b||!_0x9a8c7b['is'](_0x3dd47a(0x190),_0x3dd47a(0x1ba)));_0x1acbfc[_0x3dd47a(0x17b)](_0x3dd47a(0x1a9)),this[_0x3dd47a(0x1a2)](_0x330f24,_0x8fcc79),_0x2d1d5f||_0x1acbfc[_0x3dd47a(0x187)](_0x3cb241[_0x3dd47a(0x1a1)]());}[_0xbc1a2d(0x1a2)](_0x32d863,_0x52571f){const _0x271999=_0xbc1a2d,_0x364a3c=this[_0x271999(0x1b5)],{imageDimension:_0x4773dd,imageFallbackUrl:_0x47cc42,imageSources:_0xfbf89a}=_0x32d863[_0x271999(0x17d)];_0x364a3c[_0x271999(0x1a7)](_0x271999(0x18a),{'imageType':_0x52571f?_0x271999(0x1ba):null,'source':{'uploadcareImageId':_0x32d863['id'],'src':_0x47cc42,'sources':_0xfbf89a,..._0x4773dd}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1b1696=_0x5302;(function(_0x52daf1,_0x573b84){var _0x2e6673=_0x5302,_0xc44cfc=_0x52daf1();while(!![]){try{var _0x2e9cb0=-parseInt(_0x2e6673(0x9d))/0x1+-parseInt(_0x2e6673(0xa6))/0x2+-parseInt(_0x2e6673(0xa7))/0x3+-parseInt(_0x2e6673(0x9b))/0x4+parseInt(_0x2e6673(0x99))/0x5+-parseInt(_0x2e6673(0x97))/0x6+-parseInt(_0x2e6673(0x95))/0x7*(-parseInt(_0x2e6673(0xa5))/0x8);if(_0x2e9cb0===_0x573b84)break;else _0xc44cfc['push'](_0xc44cfc['shift']());}catch(_0x4be825){_0xc44cfc['push'](_0xc44cfc['shift']());}}}(_0x3737,0x3b236));import{DialogFocusManagerView as _0x234bb6}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';function _0x5302(_0x53f6ab,_0xd82e3a){var _0x373795=_0x3737();return _0x5302=function(_0x530226,_0x19c8e5){_0x530226=_0x530226-0x95;var _0x178376=_0x373795[_0x530226];return _0x178376;},_0x5302(_0x53f6ab,_0xd82e3a);}export class UploadcareFormView extends _0x234bb6{constructor(_0x36d3c7,_0x11b0c4){var _0x273b7d=_0x5302;super(_0x36d3c7),this[_0x273b7d(0x98)]({'tag':_0x273b7d(0x9f),'attributes':{'class':['ck',_0x273b7d(0xa1),_0x273b7d(0x9c)],'tabindex':'-1'},'children':[{'tag':_0x273b7d(0x96),'attributes':{'class':[_0x273b7d(0x9e),_0x273b7d(0xa4)],'ctx-name':_0x273b7d(0xa3)+_0x11b0c4}},this[_0x273b7d(0xa2)]()]});}[_0x1b1696(0xa0)](){var _0x119162=_0x1b1696;this[_0x119162(0x9a)][_0x119162(0xa0)]();}}function _0x3737(){var _0x3b3e2c=['277968Xsnwco','ck-uploadcare-form','6590ftNrat','uc-light','div','focus','ck-reset_all-excluded','getFocusableElement','uploader-','ck-uploadcare-theme','1448gvhEPr','695682rOlXAR','215991IwOJtz','26383QkXFzy','uc-file-uploader-inline','2358504SiRlIF','setTemplate','2245225TkVnjU','element'];_0x3737=function(){return _0x3b3e2c;};return _0x3737();}
23
+ function _0x597c(_0x3fbd02,_0x4eddd2){var _0x4b1619=_0x4b16();return _0x597c=function(_0x597cea,_0x19ed0e){_0x597cea=_0x597cea-0x1bf;var _0x14729d=_0x4b1619[_0x597cea];return _0x14729d;},_0x597c(_0x3fbd02,_0x4eddd2);}var _0x278033=_0x597c;(function(_0xf59522,_0x52d3cb){var _0x40bc29=_0x597c,_0x466744=_0xf59522();while(!![]){try{var _0x324218=parseInt(_0x40bc29(0x1cf))/0x1+-parseInt(_0x40bc29(0x1ce))/0x2*(-parseInt(_0x40bc29(0x1d2))/0x3)+-parseInt(_0x40bc29(0x1cb))/0x4+parseInt(_0x40bc29(0x1cd))/0x5*(parseInt(_0x40bc29(0x1c3))/0x6)+-parseInt(_0x40bc29(0x1c2))/0x7*(-parseInt(_0x40bc29(0x1d0))/0x8)+-parseInt(_0x40bc29(0x1d1))/0x9*(parseInt(_0x40bc29(0x1c9))/0xa)+-parseInt(_0x40bc29(0x1d4))/0xb;if(_0x324218===_0x52d3cb)break;else _0x466744['push'](_0x466744['shift']());}catch(_0x5603a4){_0x466744['push'](_0x466744['shift']());}}}(_0x4b16,0xdb8b9));import{DialogFocusManagerView as _0x2faa35}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';function _0x4b16(){var _0x4af6b6=['uc-light','478205KpALlD','3442696DEELzX','448795DfAkIa','8WYMcvU','2008035lWVgfH','3KRgcaJ','getFocusableElement','16787353DhTZGu','ck-uploadcare-theme','element','ck-uploadcare-form','1592556KLEFgl','102lKiiww','div','setTemplate','ck-reset_all-excluded','uc-file-uploader-inline','focus','50rjOnMa','uploader-','1930372OwgEmj'];_0x4b16=function(){return _0x4af6b6;};return _0x4b16();}export class UploadcareFormView extends _0x2faa35{constructor(_0x5b4b38,_0x6b3f9c){var _0x32e139=_0x597c;super(_0x5b4b38),this[_0x32e139(0x1c5)]({'tag':_0x32e139(0x1c4),'attributes':{'class':['ck',_0x32e139(0x1c6),_0x32e139(0x1c1)],'tabindex':'-1'},'children':[{'tag':_0x32e139(0x1c7),'attributes':{'class':[_0x32e139(0x1cc),_0x32e139(0x1bf)],'ctx-name':_0x32e139(0x1ca)+_0x6b3f9c}},this[_0x32e139(0x1d3)]()]});}[_0x278033(0x1c8)](){var _0x573740=_0x278033;this[_0x573740(0x1c0)][_0x573740(0x1c8)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3639e5=_0x4d99;(function(_0x286731,_0x17684b){const _0x4427b5=_0x4d99,_0x2093f6=_0x286731();while(!![]){try{const _0x4ee11e=parseInt(_0x4427b5(0x20d))/0x1+-parseInt(_0x4427b5(0x21b))/0x2+-parseInt(_0x4427b5(0x201))/0x3*(-parseInt(_0x4427b5(0x204))/0x4)+parseInt(_0x4427b5(0x21c))/0x5*(parseInt(_0x4427b5(0x212))/0x6)+parseInt(_0x4427b5(0x216))/0x7*(-parseInt(_0x4427b5(0x1f6))/0x8)+parseInt(_0x4427b5(0x1e5))/0x9*(parseInt(_0x4427b5(0x1ff))/0xa)+parseInt(_0x4427b5(0x233))/0xb;if(_0x4ee11e===_0x17684b)break;else _0x2093f6['push'](_0x2093f6['shift']());}catch(_0x1d846a){_0x2093f6['push'](_0x2093f6['shift']());}}}(_0x5999,0x83d13));import{Plugin as _0x18fb37}from'ckeditor5/src/core.js';import{Dialog as _0x155aa7}from'ckeditor5/src/ui.js';function _0x5999(){const _0x31be5e=['_initCtx','listenTo','data-uc-image-id','getSelectedElement','_initImageProcessingIndicator','input[uploadcare-file-input]','model','contentLanguage','_initConfig','for','367389KLWIcX','replaceImageSource','uploadcare','uploadcareImageReplace','upcast','uploadcare.pubkey','UploadcareEditing','attributeToAttribute','6156ECeCCZ','appendChild','insertImage','schema','config','requires','once','cleanupImage','_ctxElement','commands','configElement','getAttribute','isRegistered','editor','imageInline','extend','uploadcareImageId','5781808Nlvwxc','uc-config','pluginName','join','_initConversion','ctxElement','fromCharCode','closeMax','get','8850eMXHTv','ucContextId','3459mVAAvE','uploader-','_configElement','748lsvHMO','selection','isOfficialPlugin','locale','href','\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','init','conversion','iconHrefResolver','665896rvpEsQ','editing','downcast','elementToAttribute','removeAttribute','817428ENZaqs','uc-upload-ctx-provider','body','destroy','7dBNskj','afterInit','remove','view','true','787670ybDlPg','5PxvHvf','document','_initSchema','render','execute','isPremiumPlugin','#uc-icon-arrow-down','imageBlock','querySelector','uploadcare.uploader','PictureEditing','map','add'];_0x5999=function(){return _0x31be5e;};return _0x5999();}import{createElement as _0x827abf,global as _0x26e4c6,uid as _0x5599b2}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0xdfefa2}from'./uploadcarecommand.js';function _0x4d99(_0x3ca680,_0x3035bd){const _0x59999d=_0x5999();return _0x4d99=function(_0x4d993e,_0x24ac06){_0x4d993e=_0x4d993e-0x1e3;let _0x528f65=_0x59999d[_0x4d993e];return _0x528f65;},_0x4d99(_0x3ca680,_0x3035bd);}import{UploadcareUploadAdapter as _0x5b6970}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3609ac}from'./utils/editingutils.js';export class UploadcareEditing extends _0x18fb37{[_0x3639e5(0x203)]=null;[_0x3639e5(0x1ed)]=null;static get[_0x3639e5(0x1f8)](){const _0x4e926a=_0x3639e5;return _0x4e926a(0x1e3);}static get[_0x3639e5(0x1ea)](){const _0x29104b=_0x3639e5;return[_0x29104b(0x226),_0x5b6970,_0x155aa7];}static get[_0x3639e5(0x206)](){return!0x0;}static get[_0x3639e5(0x221)](){return!0x0;}[_0x3639e5(0x200)];get[_0x3639e5(0x1ef)](){const _0x408da3=_0x3639e5;return this[_0x408da3(0x203)];}get[_0x3639e5(0x1fb)](){const _0x4c211c=_0x3639e5;return this[_0x4c211c(0x1ed)];}constructor(_0xf48835){const _0x4d3503=_0x3639e5;super(_0xf48835),this[_0x4d3503(0x200)]=_0x5599b2();}[_0x3639e5(0x20a)](){const _0x1f66bf=_0x3639e5,_0x13d2c4=this[_0x1f66bf(0x1f2)];_0x13d2c4[_0x1f66bf(0x1ee)][_0x1f66bf(0x228)](_0x1f66bf(0x235),new _0xdfefa2(_0x13d2c4));}[_0x3639e5(0x217)](){const _0x27a868=_0x3639e5;this[_0x27a868(0x21e)](),this[_0x27a868(0x1fa)](),this[_0x27a868(0x231)](),this[_0x27a868(0x229)](),this[_0x27a868(0x22d)](),this[_0x27a868(0x22a)](this[_0x27a868(0x1f2)],_0x27a868(0x215),()=>{const _0x430580=_0x27a868;this[_0x430580(0x203)]&&(this[_0x430580(0x203)][_0x430580(0x218)](),this[_0x430580(0x203)]=null),this[_0x430580(0x1ed)]&&(this[_0x430580(0x1ed)][_0x430580(0x218)](),this[_0x430580(0x1ed)]=null);const _0x373a18=_0x26e4c6[_0x430580(0x21d)][_0x430580(0x224)](_0x430580(0x22e));_0x373a18&&_0x373a18[_0x430580(0x218)]();}),async function(_0x220ed8){const _0x3d957e=_0x55ad62([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x2daa1f=0x3d8d0df,_0x32cbd3=0x3dfa337^_0x2daa1f,_0x2eeb0d=window[_0x55ad62([0x44,0x61,0x74,0x65])][_0x55ad62([0x6e,0x6f,0x77])](),_0x2c1670=_0x220ed8[_0x55ad62([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x230395=new window[(_0x55ad62([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b696a=>{_0x2c1670[_0x55ad62([0x6f,0x6e,0x63,0x65])](_0x55ad62([0x72,0x65,0x61,0x64,0x79]),_0x5b696a);}),_0x1365ed={[_0x55ad62([0x6b,0x74,0x79])]:_0x55ad62([0x45,0x43]),[_0x55ad62([0x75,0x73,0x65])]:_0x55ad62([0x73,0x69,0x67]),[_0x55ad62([0x63,0x72,0x76])]:_0x55ad62([0x50,0x2d,0x32,0x35,0x36]),[_0x55ad62([0x78])]:_0x55ad62([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]),[_0x55ad62([0x79])]:_0x55ad62([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]),[_0x55ad62([0x61,0x6c,0x67])]:_0x55ad62([0x45,0x53,0x32,0x35,0x36])},_0x4e8381=_0x2c1670[_0x55ad62([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x55ad62([0x67,0x65,0x74])](_0x55ad62([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x280954(){let _0x50f955,_0x353fef=null,_0x5e689f=null;try{if(_0x4e8381==_0x55ad62([0x47,0x50,0x4c]))return _0x55ad62([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50f955=_0x52b0b5(),!_0x50f955)return _0x55ad62([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x50f955[_0x55ad62([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e689f=_0x520a04(_0x50f955[_0x55ad62([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50f955[_0x55ad62([0x6a,0x74,0x69])])),await _0x50b01d()?_0x3a321d()?_0xfad95f()?_0x55ad62([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3f6d6b()?(_0x50f955[_0x55ad62([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55ad62([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x353fef=_0x2819d0(_0x55ad62([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x50f955[_0x55ad62([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55ad62([0x74,0x72,0x69,0x61,0x6c])&&(_0x353fef=_0x2819d0(_0x55ad62([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2cd3ff()):_0x55ad62([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x55ad62([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x55ad62([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x55ad62([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xfad95f(){const _0x2be44a=[_0x55ad62([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x55ad62([0x74,0x72,0x69,0x61,0x6c])][_0x55ad62([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50f955[_0x55ad62([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2eeb0d/0x3e8:0xe10*_0x32cbd3;return _0x50f955[_0x55ad62([0x65,0x78,0x70])]<_0x2be44a;}function _0x3a321d(){const _0x15790e=_0x50f955[_0x55ad62([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x15790e&&(!!_0x15790e[_0x55ad62([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55ad62([0x2a]))||!!_0x15790e[_0x55ad62([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55ad62([0x55,0x50,0x4c,0x43])));}function _0x3f6d6b(){const _0x1de3fe=_0x4d99,_0x16cfc7=_0x50f955[_0x55ad62([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x16cfc7||0x0==_0x16cfc7[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x6e177b}=new URL(window[_0x55ad62([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1de3fe(0x208)]);if(_0x16cfc7[_0x55ad62([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6e177b))return!0x0;const _0x289faa=_0x6e177b[_0x55ad62([0x73,0x70,0x6c,0x69,0x74])](_0x55ad62([0x2e]));return _0x16cfc7[_0x55ad62([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45376d=>_0x45376d[_0x55ad62([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55ad62([0x2a])))[_0x55ad62([0x6d,0x61,0x70])](_0x3cafae=>_0x3cafae[_0x55ad62([0x73,0x70,0x6c,0x69,0x74])](_0x55ad62([0x2e])))[_0x55ad62([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1bcdf3=>_0x1bcdf3[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x289faa[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x55ad62([0x6d,0x61,0x70])](_0x37887c=>Array(_0x289faa[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x37887c[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x55ad62([0x66,0x69,0x6c,0x6c])](_0x37887c[0x0]===_0x55ad62([0x2a])?_0x55ad62([0x2a]):'')[_0x55ad62([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x37887c))[_0x55ad62([0x73,0x6f,0x6d,0x65])](_0x4850b7=>_0x289faa[_0x55ad62([0x65,0x76,0x65,0x72,0x79])]((_0x59e190,_0x358751)=>_0x4850b7[_0x358751]===_0x59e190||_0x4850b7[_0x358751]===_0x55ad62([0x2a])));}function _0x2cd3ff(){return _0x353fef&&_0x5e689f?new window[(_0x55ad62([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c57b8,_0x1d4354)=>{_0x353fef[_0x55ad62([0x74,0x68,0x65,0x6e])](_0x3c57b8,_0x1d4354),_0x5e689f[_0x55ad62([0x74,0x68,0x65,0x6e])](_0x2d9452=>{_0x2d9452!=_0x55ad62([0x56,0x61,0x6c,0x69,0x64])&&_0x3c57b8(_0x2d9452);},_0x1d4354);}):_0x353fef||_0x5e689f||_0x55ad62([0x56,0x61,0x6c,0x69,0x64]);}}function _0x520a04(_0x8fc042,_0x160239){return new window[(_0x55ad62([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x460ab3=>{if(_0x5dfc3b())return _0x460ab3(_0x55ad62([0x56,0x61,0x6c,0x69,0x64]));_0x27deca(),_0x2c1670[_0x55ad62([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x55ad62([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2abf80=!0x1;const _0x1727eb=_0x5599b2();function _0x1bdd42(_0x459798){return!!_0x459798&&(typeof _0x459798===_0x55ad62([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x459798===_0x55ad62([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x459798[_0x55ad62([0x74,0x68,0x65,0x6e])]===_0x55ad62([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x459798[_0x55ad62([0x63,0x61,0x74,0x63,0x68])]===_0x55ad62([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5855e(_0x13ddb4){_0x432877(_0x13ddb4)[_0x55ad62([0x74,0x68,0x65,0x6e])](_0x50c95f=>{if(!_0x50c95f||_0x50c95f[_0x55ad62([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x55ad62([0x6f,0x6b]))return _0x55ad62([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x302777(_0x3108b6(_0x1727eb+_0x160239))!=_0x50c95f[_0x55ad62([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x55ad62([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x55ad62([0x56,0x61,0x6c,0x69,0x64]);})[_0x55ad62([0x74,0x68,0x65,0x6e])](_0x5f54ff=>(_0x1d4cf2(),_0x5f54ff),()=>{const _0xc8a4db=_0x690075();return null==_0xc8a4db?(_0x1d4cf2(),_0x55ad62([0x56,0x61,0x6c,0x69,0x64])):_0x55ad62(_0x2eeb0d-_0xc8a4db>(0x27d454df^_0x2daa1f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x55ad62([0x74,0x68,0x65,0x6e])](_0x460ab3)[_0x55ad62([0x63,0x61,0x74,0x63,0x68])](()=>{_0x460ab3(_0x55ad62([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5a5198=0x3ee3e5f^_0x2daa1f;function _0x1d4cf2(){const _0x2f2def=_0x55ad62([0x6c,0x6c,0x63,0x74,0x2d])+_0x302777(_0x3108b6(_0x8fc042)),_0xc34852=_0x2ed6aa(_0x302777(window[_0x55ad62([0x4d,0x61,0x74,0x68])][_0x55ad62([0x63,0x65,0x69,0x6c])](_0x2eeb0d/_0x5a5198)));window[_0x55ad62([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55ad62([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f2def,_0xc34852);}function _0x690075(){const _0x35002a=_0x55ad62([0x6c,0x6c,0x63,0x74,0x2d])+_0x302777(_0x3108b6(_0x8fc042)),_0x6a2ab3=window[_0x55ad62([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55ad62([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35002a);return _0x6a2ab3?window[_0x55ad62([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ed6aa(_0x6a2ab3),0x10)*_0x5a5198:null;}function _0x432877(_0x5adab7){return new window[(_0x55ad62([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x34f30b,_0x15e437)=>{_0x5adab7[_0x55ad62([0x74,0x68,0x65,0x6e])](_0x34f30b,_0x15e437),window[_0x55ad62([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15e437,0x3d9041f^_0x2daa1f);});}}_0x2c1670[_0x55ad62([0x6f,0x6e])](_0x55ad62([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c7e8d,_0x24e7ad)=>{if(_0x24e7ad[0x0]!=_0x8fc042)return _0x460ab3(_0x55ad62([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x24e7ad[0x1]={..._0x24e7ad[0x1],[_0x55ad62([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1727eb};},{[_0x55ad62([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55ad62([0x68,0x69,0x67,0x68])}),_0x2c1670[_0x55ad62([0x6f,0x6e])](_0x55ad62([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x104297=>{_0x1bdd42(_0x104297[_0x55ad62([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2abf80=!0x0,_0x5855e(_0x104297[_0x55ad62([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x55ad62([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55ad62([0x6c,0x6f,0x77])}),_0x230395[_0x55ad62([0x74,0x68,0x65,0x6e])](()=>{_0x2abf80||_0x460ab3(_0x55ad62([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5dfc3b(){return _0x2c1670[_0x55ad62([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55ad62([0x76,0x69,0x65,0x77])][_0x55ad62([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x55ad62([0x61,0x75,0x74,0x6f]);}function _0x27deca(){_0x2c1670[_0x55ad62([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55ad62([0x76,0x69,0x65,0x77])][_0x55ad62([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x55ad62([0x61,0x75,0x74,0x6f]);}}function _0x2819d0(_0x1ebd91){const _0x1801c4=[new window[(_0x55ad62([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x322c43=>setTimeout(_0x322c43,0x3d1ee13^_0x2daa1f)),_0x230395[_0x55ad62([0x74,0x68,0x65,0x6e])](()=>new window[(_0x55ad62([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb8d090=>{let _0x182158=0x0;_0x2c1670[_0x55ad62([0x6d,0x6f,0x64,0x65,0x6c])][_0x55ad62([0x6f,0x6e])](_0x55ad62([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1bc2b6,_0x3949db)=>{_0x3949db[0x0][_0x55ad62([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x182158++,_0x182158==(0x3d8d127^_0x2daa1f)&&(_0xb8d090(),_0x1bc2b6[_0x55ad62([0x6f,0x66,0x66])]());});}))];return window[_0x55ad62([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x55ad62([0x72,0x61,0x63,0x65])](_0x1801c4)[_0x55ad62([0x74,0x68,0x65,0x6e])](()=>_0x1ebd91);}async function _0x4ddbb0(){await _0x230395,_0x2c1670[_0x55ad62([0x6d,0x6f,0x64,0x65,0x6c])][_0x55ad62([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x342a93,_0x2c1670[_0x55ad62([0x6d,0x6f,0x64,0x65,0x6c])][_0x55ad62([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x342a93,_0x2c1670[_0x55ad62([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x55ad62([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35e466(_0x2162dc){const _0x4ff993=_0x38cd71();_0x2c1670[_0x4ff993]=_0x55ad62([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2162dc,_0x2162dc!=_0x55ad62([0x56,0x61,0x6c,0x69,0x64])&&_0x4ddbb0();}function _0x38cd71(){const _0x1cebf1=window[_0x55ad62([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x55ad62([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x55ad62([0x6e,0x6f,0x77])]())[_0x55ad62([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x55ad62([0x2e]),'');let _0x83cee1=_0x55ad62([0x52]);for(let _0xc6c339=0x0;_0xc6c339<_0x1cebf1[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc6c339+=0x2){let _0x4a4fce=window[_0x55ad62([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cebf1[_0x55ad62([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc6c339,_0xc6c339+0x2));_0x4a4fce>=_0x3d957e[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4a4fce-=_0x3d957e[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x83cee1+=_0x3d957e[_0x4a4fce];}return _0x83cee1;}function _0x52b0b5(){const _0x29c81d=_0x4e8381[_0x55ad62([0x73,0x70,0x6c,0x69,0x74])](_0x55ad62([0x2e]));if(0x3!=_0x29c81d[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1339f9(_0x29c81d[0x1]);function _0x1339f9(_0x7bb86d){const _0x2be691=_0x419174(_0x7bb86d);return _0x2be691&&_0x5cb860()?_0x2be691:null;function _0x5cb860(){const _0x490982=_0x2be691[_0x55ad62([0x6a,0x74,0x69])],_0x20b909=window[_0x55ad62([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x490982[_0x55ad62([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x490982[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x44d2c9={..._0x2be691,[_0x55ad62([0x6a,0x74,0x69])]:_0x490982[_0x55ad62([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x490982[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x44d2c9[_0x55ad62([0x76,0x63])],_0x3108b6(_0x44d2c9)==_0x20b909;}}}async function _0x50b01d(){let _0x47e42f=!0x0;try{const _0x54bc0b=_0x4e8381[_0x55ad62([0x73,0x70,0x6c,0x69,0x74])](_0x55ad62([0x2e])),[_0x4ece8d,_0x382d05,_0x3267a1]=_0x54bc0b;return _0x2da91e(_0x4ece8d),await _0x18edc1(_0x4ece8d,_0x382d05,_0x3267a1),_0x47e42f;}catch{return!0x1;}function _0x2da91e(_0x2566c1){const _0x5c816=_0x419174(_0x2566c1);_0x5c816&&_0x5c816[_0x55ad62([0x61,0x6c,0x67])]==_0x55ad62([0x45,0x53,0x32,0x35,0x36])||(_0x47e42f=!0x1);}async function _0x18edc1(_0x4296e1,_0x42a8d5,_0x3ee14c){const _0x363ee3=window[_0x55ad62([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x55ad62([0x66,0x72,0x6f,0x6d])](_0x544f68(_0x3ee14c),_0x55a4b0=>_0x55a4b0[_0x55ad62([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d8944=new window[(_0x55ad62([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x55ad62([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4296e1+_0x55ad62([0x2e])+_0x42a8d5),_0x534bfd=window[_0x55ad62([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x55ad62([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x534bfd)return;const _0x887fe7=await _0x534bfd[_0x55ad62([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x55ad62([0x6a,0x77,0x6b]),_0x1365ed,{[_0x55ad62([0x6e,0x61,0x6d,0x65])]:_0x55ad62([0x45,0x43,0x44,0x53,0x41]),[_0x55ad62([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x55ad62([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x55ad62([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x534bfd[_0x55ad62([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x55ad62([0x6e,0x61,0x6d,0x65])]:_0x55ad62([0x45,0x43,0x44,0x53,0x41]),[_0x55ad62([0x68,0x61,0x73,0x68])]:{[_0x55ad62([0x6e,0x61,0x6d,0x65])]:_0x55ad62([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x887fe7,_0x363ee3,_0x5d8944)||(_0x47e42f=!0x1);}}function _0x419174(_0x492353){return _0x492353[_0x55ad62([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x55ad62([0x65,0x79]))?JSON[_0x55ad62([0x70,0x61,0x72,0x73,0x65])](_0x544f68(_0x492353)):null;}function _0x544f68(_0x3e693c){return window[_0x55ad62([0x61,0x74,0x6f,0x62])](_0x3e693c[_0x55ad62([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x55ad62([0x2b]))[_0x55ad62([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x55ad62([0x2f])));}function _0x3108b6(_0x470079){let _0x5ae06e=0x1505;function _0x50e05b(_0x481269){for(let _0x55d1ff=0x0;_0x55d1ff<_0x481269[_0x55ad62([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55d1ff++){const _0x56d3ac=_0x481269[_0x55ad62([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55d1ff);_0x5ae06e=(_0x5ae06e<<0x5)+_0x5ae06e+_0x56d3ac,_0x5ae06e&=_0x5ae06e;}}function _0x1135f8(_0x346112){Array[_0x55ad62([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x346112)?_0x346112[_0x55ad62([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1135f8):_0x346112&&typeof _0x346112==_0x55ad62([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x55ad62([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x346112)[_0x55ad62([0x73,0x6f,0x72,0x74])]()[_0x55ad62([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2b75ee,_0x4de6fb])=>{_0x50e05b(_0x2b75ee),_0x1135f8(_0x4de6fb);}):_0x50e05b(window[_0x55ad62([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x346112));}return _0x1135f8(_0x470079),_0x5ae06e>>>0x0;}function _0x302777(_0x195a88){return _0x195a88[_0x55ad62([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x55ad62([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x55ad62([0x30]));}function _0x2ed6aa(_0x17954b){return _0x17954b[_0x55ad62([0x73,0x70,0x6c,0x69,0x74])]('')[_0x55ad62([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x55ad62([0x6a,0x6f,0x69,0x6e])]('');}function _0x342a93(){}function _0x55ad62(_0x1b422f){const _0x578fc1=_0x4d99;return _0x1b422f[_0x578fc1(0x227)](_0x37ed1f=>String[_0x578fc1(0x1fc)](_0x37ed1f))[_0x578fc1(0x1f9)]('');}_0x35e466(await _0x280954());}(this);}[_0x3639e5(0x21e)](){const _0x1e272d=_0x3639e5,_0xb33c36=this[_0x1e272d(0x1f2)][_0x1e272d(0x22f)][_0x1e272d(0x1e8)];_0xb33c36[_0x1e272d(0x1f1)](_0x1e272d(0x223))&&_0xb33c36[_0x1e272d(0x1f4)](_0x1e272d(0x223),{'allowAttributes':[_0x1e272d(0x1f5)]}),_0xb33c36[_0x1e272d(0x1f1)](_0x1e272d(0x1f3))&&_0xb33c36[_0x1e272d(0x1f4)](_0x1e272d(0x1f3),{'allowAttributes':[_0x1e272d(0x1f5)]});}[_0x3639e5(0x1fa)](){const _0x17aeff=_0x3639e5,_0x5f330f=this[_0x17aeff(0x1f2)];_0x5f330f[_0x17aeff(0x20b)][_0x17aeff(0x232)](_0x17aeff(0x20f))[_0x17aeff(0x1e4)]({'model':_0x17aeff(0x1f5),'view':_0x17aeff(0x22b)}),_0x5f330f[_0x17aeff(0x20b)][_0x17aeff(0x232)](_0x17aeff(0x237))[_0x17aeff(0x210)]({'model':{'key':_0x17aeff(0x1f5),'value':_0x5e80a5=>_0x5e80a5[_0x17aeff(0x1f0)](_0x17aeff(0x22b))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4e87f7=_0x5f330f[_0x17aeff(0x1ee)][_0x17aeff(0x1fe)](_0x17aeff(0x234));_0x4e87f7&&this[_0x17aeff(0x22a)](_0x4e87f7,_0x17aeff(0x1ec),(_0x568242,[_0x47b991,_0x59c104])=>{const _0x4c3aa9=_0x17aeff;_0x47b991[_0x4c3aa9(0x211)](_0x4c3aa9(0x1f5),_0x59c104);});}[_0x3639e5(0x231)](){const _0x28d119=_0x3639e5,_0x3c59db=this[_0x28d119(0x1f2)][_0x28d119(0x1e9)][_0x28d119(0x1fe)](_0x28d119(0x225))||{},_0x1f14e7=this[_0x28d119(0x1f2)][_0x28d119(0x1e9)][_0x28d119(0x1fe)](_0x28d119(0x238))||'';this[_0x28d119(0x203)]=_0x827abf(_0x26e4c6[_0x28d119(0x21d)],_0x28d119(0x1f7),{..._0x3c59db,'pubkey':_0x1f14e7,'ctx-name':_0x28d119(0x202)+this[_0x28d119(0x200)],'sourceList':'','imgOnly':_0x28d119(0x21a),'removeCopyright':_0x28d119(0x21a),'localeName':this[_0x28d119(0x1f2)][_0x28d119(0x207)][_0x28d119(0x230)],'externalSourcesEmbedCss':_0x28d119(0x209)}),this[_0x28d119(0x203)][_0x28d119(0x20c)]=_0x341b27=>{const _0x2deea4=_0x28d119;if(_0x2deea4(0x1fd)==_0x341b27)return _0x2deea4(0x222);},_0x26e4c6[_0x28d119(0x21d)][_0x28d119(0x214)][_0x28d119(0x1e6)](this[_0x28d119(0x203)]);}[_0x3639e5(0x229)](){const _0x21dd0f=_0x3639e5;this[_0x21dd0f(0x1ed)]=_0x827abf(_0x26e4c6[_0x21dd0f(0x21d)],_0x21dd0f(0x213),{'ctx-name':_0x21dd0f(0x202)+this[_0x21dd0f(0x200)]}),_0x26e4c6[_0x21dd0f(0x21d)][_0x21dd0f(0x214)][_0x21dd0f(0x1e6)](this[_0x21dd0f(0x1ed)]);}[_0x3639e5(0x22d)](){const _0x4cd009=_0x3639e5,_0x161f5c=this[_0x4cd009(0x1f2)][_0x4cd009(0x1ee)][_0x4cd009(0x1fe)](_0x4cd009(0x1e7));_0x161f5c&&this[_0x4cd009(0x22a)](_0x161f5c,_0x4cd009(0x220),()=>{const _0x3a7c1b=_0x4cd009,_0x5a0912=this[_0x3a7c1b(0x1f2)][_0x3a7c1b(0x22f)][_0x3a7c1b(0x21d)][_0x3a7c1b(0x205)][_0x3a7c1b(0x22c)]();_0x5a0912&&_0x5a0912[_0x3a7c1b(0x1f0)](_0x3a7c1b(0x1f5))&&this[_0x3a7c1b(0x1f2)][_0x3a7c1b(0x20e)][_0x3a7c1b(0x219)][_0x3a7c1b(0x1eb)](_0x3a7c1b(0x21f),()=>{const _0x53d303=_0x3a7c1b;_0x3609ac(this[_0x53d303(0x1f2)],_0x5a0912);});});const _0x21de87=this[_0x4cd009(0x1f2)][_0x4cd009(0x1ee)][_0x4cd009(0x1fe)](_0x4cd009(0x236));_0x21de87&&this[_0x4cd009(0x22a)](_0x21de87,_0x4cd009(0x220),()=>{const _0xa90d07=_0x4cd009,_0x43a822=this[_0xa90d07(0x1f2)][_0xa90d07(0x22f)][_0xa90d07(0x21d)][_0xa90d07(0x205)][_0xa90d07(0x22c)]();_0x43a822&&_0x43a822[_0xa90d07(0x1f0)](_0xa90d07(0x1f5))&&this[_0xa90d07(0x1f2)][_0xa90d07(0x20e)][_0xa90d07(0x219)][_0xa90d07(0x1eb)](_0xa90d07(0x21f),()=>{const _0x30d5d9=_0xa90d07;_0x3609ac(this[_0x30d5d9(0x1f2)],_0x43a822);});});}}
23
+ const _0x2517ff=_0x58ce;(function(_0x15d92e,_0xa724c4){const _0x2521ba=_0x58ce,_0x1839d7=_0x15d92e();while(!![]){try{const _0x16d95f=parseInt(_0x2521ba(0x1b6))/0x1+-parseInt(_0x2521ba(0x194))/0x2*(parseInt(_0x2521ba(0x1ac))/0x3)+-parseInt(_0x2521ba(0x1b4))/0x4*(-parseInt(_0x2521ba(0x16f))/0x5)+parseInt(_0x2521ba(0x182))/0x6+parseInt(_0x2521ba(0x199))/0x7+parseInt(_0x2521ba(0x1b8))/0x8+-parseInt(_0x2521ba(0x174))/0x9;if(_0x16d95f===_0xa724c4)break;else _0x1839d7['push'](_0x1839d7['shift']());}catch(_0x2b999a){_0x1839d7['push'](_0x1839d7['shift']());}}}(_0x136d,0x3d6c7));import{Plugin as _0xd99538}from'ckeditor5/src/core.js';import{Dialog as _0x4f6c26}from'ckeditor5/src/ui.js';import{createElement as _0x39762e,global as _0x3d572f,uid as _0x417ff9}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x365375}from'./uploadcarecommand.js';function _0x136d(){const _0x25174d=['pluginName','PictureEditing','elementToAttribute','_initSchema','_ctxElement','#uc-icon-arrow-down','true','removeAttribute','config','input[uploadcare-file-input]','listenTo','cleanupImage','_initConversion','2456616vfacFB','view','uploadcare.pubkey','editing','contentLanguage','imageInline','closeMax','extend','destroy','execute','getSelectedElement','remove','schema','upcast','locale','uploader-','uploadcare.uploader','for','15898gCtKIU','fromCharCode','ctxElement','editor','uc-upload-ctx-provider','2123240pNozAs','commands','_initCtx','ucContextId','_initImageProcessingIndicator','uploadcareImageId','insertImage','afterInit','get','document','model','imageBlock','map','uploadcare','render','_initConfig','downcast','uc-config','join','75KXrwsD','body','getAttribute','isPremiumPlugin','add','isOfficialPlugin','UploadcareEditing','_configElement','14552yftYRR','replaceImageSource','291179JGaJpH','conversion','3634200asbIzz','data-uc-image-id','configElement','init','uploadcareImageReplace','once','requires','selection','attributeToAttribute','appendChild','isRegistered','115MPvpAz','\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','querySelector','iconHrefResolver','9824112lqeETv'];_0x136d=function(){return _0x25174d;};return _0x136d();}function _0x58ce(_0x48498c,_0x1e3c5f){const _0x136ddf=_0x136d();return _0x58ce=function(_0x58cede,_0x5439cb){_0x58cede=_0x58cede-0x166;let _0x49ed18=_0x136ddf[_0x58cede];return _0x49ed18;},_0x58ce(_0x48498c,_0x1e3c5f);}import{UploadcareUploadAdapter as _0x13fec0}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x242ca4}from'./utils/editingutils.js';export class UploadcareEditing extends _0xd99538{[_0x2517ff(0x1b3)]=null;[_0x2517ff(0x179)]=null;static get[_0x2517ff(0x175)](){const _0x4b5874=_0x2517ff;return _0x4b5874(0x1b2);}static get[_0x2517ff(0x16a)](){const _0x524c2a=_0x2517ff;return[_0x524c2a(0x176),_0x13fec0,_0x4f6c26];}static get[_0x2517ff(0x1b1)](){return!0x0;}static get[_0x2517ff(0x1af)](){return!0x0;}[_0x2517ff(0x19c)];get[_0x2517ff(0x166)](){const _0x3a1f96=_0x2517ff;return this[_0x3a1f96(0x1b3)];}get[_0x2517ff(0x196)](){const _0x234f85=_0x2517ff;return this[_0x234f85(0x179)];}constructor(_0x37a4cd){const _0x114a65=_0x2517ff;super(_0x37a4cd),this[_0x114a65(0x19c)]=_0x417ff9();}[_0x2517ff(0x167)](){const _0x5007e6=_0x2517ff,_0x5833e8=this[_0x5007e6(0x197)];_0x5833e8[_0x5007e6(0x19a)][_0x5007e6(0x1b0)](_0x5007e6(0x1a6),new _0x365375(_0x5833e8));}[_0x2517ff(0x1a0)](){const _0x37188f=_0x2517ff;this[_0x37188f(0x178)](),this[_0x37188f(0x181)](),this[_0x37188f(0x1a8)](),this[_0x37188f(0x19b)](),this[_0x37188f(0x19d)](),this[_0x37188f(0x17f)](this[_0x37188f(0x197)],_0x37188f(0x18a),()=>{const _0x37901a=_0x37188f;this[_0x37901a(0x1b3)]&&(this[_0x37901a(0x1b3)][_0x37901a(0x18d)](),this[_0x37901a(0x1b3)]=null),this[_0x37901a(0x179)]&&(this[_0x37901a(0x179)][_0x37901a(0x18d)](),this[_0x37901a(0x179)]=null);const _0x66b99e=_0x3d572f[_0x37901a(0x1a2)][_0x37901a(0x172)](_0x37901a(0x17e));_0x66b99e&&_0x66b99e[_0x37901a(0x18d)]();}),async function(_0x36ca59){const _0x9f4c60=_0x1cb8d4([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x10ac02=0x3d8d0df,_0x28bce0=0x3dfa4df^_0x10ac02,_0x1ec45a=window[_0x1cb8d4([0x44,0x61,0x74,0x65])][_0x1cb8d4([0x6e,0x6f,0x77])](),_0x331c3c=_0x36ca59[_0x1cb8d4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x46c911=new window[(_0x1cb8d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c5b4e=>{_0x331c3c[_0x1cb8d4([0x6f,0x6e,0x63,0x65])](_0x1cb8d4([0x72,0x65,0x61,0x64,0x79]),_0x5c5b4e);}),_0x44c5ac={[_0x1cb8d4([0x6b,0x74,0x79])]:_0x1cb8d4([0x45,0x43]),[_0x1cb8d4([0x75,0x73,0x65])]:_0x1cb8d4([0x73,0x69,0x67]),[_0x1cb8d4([0x63,0x72,0x76])]:_0x1cb8d4([0x50,0x2d,0x32,0x35,0x36]),[_0x1cb8d4([0x78])]:_0x1cb8d4([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]),[_0x1cb8d4([0x79])]:_0x1cb8d4([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]),[_0x1cb8d4([0x61,0x6c,0x67])]:_0x1cb8d4([0x45,0x53,0x32,0x35,0x36])},_0x46784a=_0x331c3c[_0x1cb8d4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1cb8d4([0x67,0x65,0x74])](_0x1cb8d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x59e7e7(){let _0x76754e,_0x541c9d=null,_0x5643d3=null;try{if(_0x46784a==_0x1cb8d4([0x47,0x50,0x4c]))return _0x1cb8d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x76754e=_0x328a98(),!_0x76754e)return _0x1cb8d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x76754e[_0x1cb8d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5643d3=_0x3a113d(_0x76754e[_0x1cb8d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x76754e[_0x1cb8d4([0x6a,0x74,0x69])])),await _0x31a5ad()?_0x12cea4()?_0x1ab403()?_0x1cb8d4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1cb3c9()?(_0x76754e[_0x1cb8d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1cb8d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x541c9d=_0x23162f(_0x1cb8d4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x76754e[_0x1cb8d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1cb8d4([0x74,0x72,0x69,0x61,0x6c])&&(_0x541c9d=_0x23162f(_0x1cb8d4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22df10()):_0x1cb8d4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1cb8d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1cb8d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1cb8d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ab403(){const _0x485d5f=[_0x1cb8d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1cb8d4([0x74,0x72,0x69,0x61,0x6c])][_0x1cb8d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76754e[_0x1cb8d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ec45a/0x3e8:0xe10*_0x28bce0;return _0x76754e[_0x1cb8d4([0x65,0x78,0x70])]<_0x485d5f;}function _0x12cea4(){const _0x3476c8=_0x76754e[_0x1cb8d4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3476c8&&(!!_0x3476c8[_0x1cb8d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb8d4([0x2a]))||!!_0x3476c8[_0x1cb8d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb8d4([0x55,0x50,0x4c,0x43])));}function _0x1cb3c9(){const _0x576117=_0x58ce,_0x41b00f=_0x76754e[_0x1cb8d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x41b00f||0x0==_0x41b00f[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4be203}=new URL(window[_0x1cb8d4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x576117(0x171)]);if(_0x41b00f[_0x1cb8d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4be203))return!0x0;const _0xf0c973=_0x4be203[_0x1cb8d4([0x73,0x70,0x6c,0x69,0x74])](_0x1cb8d4([0x2e]));return _0x41b00f[_0x1cb8d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x434a61=>_0x434a61[_0x1cb8d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb8d4([0x2a])))[_0x1cb8d4([0x6d,0x61,0x70])](_0x4cb9e9=>_0x4cb9e9[_0x1cb8d4([0x73,0x70,0x6c,0x69,0x74])](_0x1cb8d4([0x2e])))[_0x1cb8d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f0148=>_0x4f0148[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf0c973[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1cb8d4([0x6d,0x61,0x70])](_0x2d1b15=>Array(_0xf0c973[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2d1b15[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1cb8d4([0x66,0x69,0x6c,0x6c])](_0x2d1b15[0x0]===_0x1cb8d4([0x2a])?_0x1cb8d4([0x2a]):'')[_0x1cb8d4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2d1b15))[_0x1cb8d4([0x73,0x6f,0x6d,0x65])](_0x5e5b7b=>_0xf0c973[_0x1cb8d4([0x65,0x76,0x65,0x72,0x79])]((_0x13ab87,_0x356a3b)=>_0x5e5b7b[_0x356a3b]===_0x13ab87||_0x5e5b7b[_0x356a3b]===_0x1cb8d4([0x2a])));}function _0x22df10(){return _0x541c9d&&_0x5643d3?new window[(_0x1cb8d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x138dae,_0x420ba0)=>{_0x541c9d[_0x1cb8d4([0x74,0x68,0x65,0x6e])](_0x138dae,_0x420ba0),_0x5643d3[_0x1cb8d4([0x74,0x68,0x65,0x6e])](_0x190b31=>{_0x190b31!=_0x1cb8d4([0x56,0x61,0x6c,0x69,0x64])&&_0x138dae(_0x190b31);},_0x420ba0);}):_0x541c9d||_0x5643d3||_0x1cb8d4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a113d(_0x1813d9,_0x2ed250){return new window[(_0x1cb8d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b9aac=>{if(_0x393c41())return _0x4b9aac(_0x1cb8d4([0x56,0x61,0x6c,0x69,0x64]));_0x2057ba(),_0x331c3c[_0x1cb8d4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1cb8d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x56784d=!0x1;const _0x428ad9=_0x417ff9();function _0x52f7ac(_0x291027){return!!_0x291027&&(typeof _0x291027===_0x1cb8d4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x291027===_0x1cb8d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x291027[_0x1cb8d4([0x74,0x68,0x65,0x6e])]===_0x1cb8d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x291027[_0x1cb8d4([0x63,0x61,0x74,0x63,0x68])]===_0x1cb8d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x18b7de(_0x36181a){_0xb45e1a(_0x36181a)[_0x1cb8d4([0x74,0x68,0x65,0x6e])](_0x55f894=>{if(!_0x55f894||_0x55f894[_0x1cb8d4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1cb8d4([0x6f,0x6b]))return _0x1cb8d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d68c8(_0x4e9e69(_0x428ad9+_0x2ed250))!=_0x55f894[_0x1cb8d4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1cb8d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1cb8d4([0x56,0x61,0x6c,0x69,0x64]);})[_0x1cb8d4([0x74,0x68,0x65,0x6e])](_0xa828d9=>(_0x4ecccf(),_0xa828d9),()=>{const _0x233967=_0x32d6eb();return null==_0x233967?(_0x4ecccf(),_0x1cb8d4([0x56,0x61,0x6c,0x69,0x64])):_0x1cb8d4(_0x1ec45a-_0x233967>(0x27d454df^_0x10ac02)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1cb8d4([0x74,0x68,0x65,0x6e])](_0x4b9aac)[_0x1cb8d4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b9aac(_0x1cb8d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10c9c1=0x3ee3e5f^_0x10ac02;function _0x4ecccf(){const _0x526660=_0x1cb8d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d68c8(_0x4e9e69(_0x1813d9)),_0x29086f=_0x14a007(_0x3d68c8(window[_0x1cb8d4([0x4d,0x61,0x74,0x68])][_0x1cb8d4([0x63,0x65,0x69,0x6c])](_0x1ec45a/_0x10c9c1)));window[_0x1cb8d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1cb8d4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x526660,_0x29086f);}function _0x32d6eb(){const _0xf076f0=_0x1cb8d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d68c8(_0x4e9e69(_0x1813d9)),_0x18ebe8=window[_0x1cb8d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1cb8d4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf076f0);return _0x18ebe8?window[_0x1cb8d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14a007(_0x18ebe8),0x10)*_0x10c9c1:null;}function _0xb45e1a(_0xd76f4b){return new window[(_0x1cb8d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18ec2f,_0x35cd34)=>{_0xd76f4b[_0x1cb8d4([0x74,0x68,0x65,0x6e])](_0x18ec2f,_0x35cd34),window[_0x1cb8d4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35cd34,0x3d9041f^_0x10ac02);});}}_0x331c3c[_0x1cb8d4([0x6f,0x6e])](_0x1cb8d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f7b5d,_0x163d9c)=>{if(_0x163d9c[0x0]!=_0x1813d9)return _0x4b9aac(_0x1cb8d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x163d9c[0x1]={..._0x163d9c[0x1],[_0x1cb8d4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x428ad9};},{[_0x1cb8d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1cb8d4([0x68,0x69,0x67,0x68])}),_0x331c3c[_0x1cb8d4([0x6f,0x6e])](_0x1cb8d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d9708=>{_0x52f7ac(_0x3d9708[_0x1cb8d4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x56784d=!0x0,_0x18b7de(_0x3d9708[_0x1cb8d4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1cb8d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1cb8d4([0x6c,0x6f,0x77])}),_0x46c911[_0x1cb8d4([0x74,0x68,0x65,0x6e])](()=>{_0x56784d||_0x4b9aac(_0x1cb8d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x393c41(){return _0x331c3c[_0x1cb8d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1cb8d4([0x76,0x69,0x65,0x77])][_0x1cb8d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1cb8d4([0x61,0x75,0x74,0x6f]);}function _0x2057ba(){_0x331c3c[_0x1cb8d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1cb8d4([0x76,0x69,0x65,0x77])][_0x1cb8d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1cb8d4([0x61,0x75,0x74,0x6f]);}}function _0x23162f(_0x7c6ce8){const _0x381a46=[new window[(_0x1cb8d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ba402=>setTimeout(_0x5ba402,0x3d1ee13^_0x10ac02)),_0x46c911[_0x1cb8d4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1cb8d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dd38f=>{let _0x2ea72c=0x0;_0x331c3c[_0x1cb8d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cb8d4([0x6f,0x6e])](_0x1cb8d4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x33513b,_0x20c07b)=>{_0x20c07b[0x0][_0x1cb8d4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ea72c++,_0x2ea72c==(0x3d8d127^_0x10ac02)&&(_0x2dd38f(),_0x33513b[_0x1cb8d4([0x6f,0x66,0x66])]());});}))];return window[_0x1cb8d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1cb8d4([0x72,0x61,0x63,0x65])](_0x381a46)[_0x1cb8d4([0x74,0x68,0x65,0x6e])](()=>_0x7c6ce8);}async function _0x7090e1(){await _0x46c911,_0x331c3c[_0x1cb8d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cb8d4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1473a7,_0x331c3c[_0x1cb8d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cb8d4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1473a7,_0x331c3c[_0x1cb8d4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1cb8d4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x443cc2(_0x26f768){const _0x64ff56=_0x5601e3();_0x331c3c[_0x64ff56]=_0x1cb8d4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x26f768,_0x26f768!=_0x1cb8d4([0x56,0x61,0x6c,0x69,0x64])&&_0x7090e1();}function _0x5601e3(){const _0x472655=window[_0x1cb8d4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1cb8d4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1cb8d4([0x6e,0x6f,0x77])]())[_0x1cb8d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1cb8d4([0x2e]),'');let _0x10afd5=_0x1cb8d4([0x52]);for(let _0x3b1533=0x0;_0x3b1533<_0x472655[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b1533+=0x2){let _0x549055=window[_0x1cb8d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x472655[_0x1cb8d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b1533,_0x3b1533+0x2));_0x549055>=_0x9f4c60[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x549055-=_0x9f4c60[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x10afd5+=_0x9f4c60[_0x549055];}return _0x10afd5;}function _0x328a98(){const _0x566579=_0x46784a[_0x1cb8d4([0x73,0x70,0x6c,0x69,0x74])](_0x1cb8d4([0x2e]));if(0x3!=_0x566579[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3794b4(_0x566579[0x1]);function _0x3794b4(_0x32cc48){const _0x1ba4f4=_0x376d69(_0x32cc48);return _0x1ba4f4&&_0x116c42()?_0x1ba4f4:null;function _0x116c42(){const _0x531600=_0x1ba4f4[_0x1cb8d4([0x6a,0x74,0x69])],_0x2b645e=window[_0x1cb8d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x531600[_0x1cb8d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x531600[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e9de8={..._0x1ba4f4,[_0x1cb8d4([0x6a,0x74,0x69])]:_0x531600[_0x1cb8d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x531600[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e9de8[_0x1cb8d4([0x76,0x63])],_0x4e9e69(_0x4e9de8)==_0x2b645e;}}}async function _0x31a5ad(){let _0x11240c=!0x0;try{const _0x165259=_0x46784a[_0x1cb8d4([0x73,0x70,0x6c,0x69,0x74])](_0x1cb8d4([0x2e])),[_0x57339b,_0xb21a96,_0x508725]=_0x165259;return _0x278638(_0x57339b),await _0x213db1(_0x57339b,_0xb21a96,_0x508725),_0x11240c;}catch{return!0x1;}function _0x278638(_0x3731b6){const _0x2d3aef=_0x376d69(_0x3731b6);_0x2d3aef&&_0x2d3aef[_0x1cb8d4([0x61,0x6c,0x67])]==_0x1cb8d4([0x45,0x53,0x32,0x35,0x36])||(_0x11240c=!0x1);}async function _0x213db1(_0x2c75d4,_0x22e0c5,_0x3b2c83){const _0x345ffc=window[_0x1cb8d4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1cb8d4([0x66,0x72,0x6f,0x6d])](_0x189726(_0x3b2c83),_0x384d07=>_0x384d07[_0x1cb8d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a9a1c=new window[(_0x1cb8d4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1cb8d4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c75d4+_0x1cb8d4([0x2e])+_0x22e0c5),_0x4a9c90=window[_0x1cb8d4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1cb8d4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4a9c90)return;const _0x291755=await _0x4a9c90[_0x1cb8d4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1cb8d4([0x6a,0x77,0x6b]),_0x44c5ac,{[_0x1cb8d4([0x6e,0x61,0x6d,0x65])]:_0x1cb8d4([0x45,0x43,0x44,0x53,0x41]),[_0x1cb8d4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1cb8d4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1cb8d4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4a9c90[_0x1cb8d4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1cb8d4([0x6e,0x61,0x6d,0x65])]:_0x1cb8d4([0x45,0x43,0x44,0x53,0x41]),[_0x1cb8d4([0x68,0x61,0x73,0x68])]:{[_0x1cb8d4([0x6e,0x61,0x6d,0x65])]:_0x1cb8d4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x291755,_0x345ffc,_0x5a9a1c)||(_0x11240c=!0x1);}}function _0x376d69(_0x1c5aa1){return _0x1c5aa1[_0x1cb8d4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1cb8d4([0x65,0x79]))?JSON[_0x1cb8d4([0x70,0x61,0x72,0x73,0x65])](_0x189726(_0x1c5aa1)):null;}function _0x189726(_0x4a1e31){return window[_0x1cb8d4([0x61,0x74,0x6f,0x62])](_0x4a1e31[_0x1cb8d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1cb8d4([0x2b]))[_0x1cb8d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1cb8d4([0x2f])));}function _0x4e9e69(_0x11d94a){let _0x1e2bd7=0x1505;function _0xef145a(_0x2723db){for(let _0x31f4b5=0x0;_0x31f4b5<_0x2723db[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31f4b5++){const _0x63cd88=_0x2723db[_0x1cb8d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x31f4b5);_0x1e2bd7=(_0x1e2bd7<<0x5)+_0x1e2bd7+_0x63cd88,_0x1e2bd7&=_0x1e2bd7;}}function _0x2f63c0(_0x31291c){Array[_0x1cb8d4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31291c)?_0x31291c[_0x1cb8d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f63c0):_0x31291c&&typeof _0x31291c==_0x1cb8d4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1cb8d4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31291c)[_0x1cb8d4([0x73,0x6f,0x72,0x74])]()[_0x1cb8d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1001eb,_0x3aec58])=>{_0xef145a(_0x1001eb),_0x2f63c0(_0x3aec58);}):_0xef145a(window[_0x1cb8d4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31291c));}return _0x2f63c0(_0x11d94a),_0x1e2bd7>>>0x0;}function _0x3d68c8(_0x3ca5e7){return _0x3ca5e7[_0x1cb8d4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1cb8d4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1cb8d4([0x30]));}function _0x14a007(_0x37e24e){return _0x37e24e[_0x1cb8d4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1cb8d4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1cb8d4([0x6a,0x6f,0x69,0x6e])]('');}function _0x1473a7(){}function _0x1cb8d4(_0x744866){const _0x53dae8=_0x58ce;return _0x744866[_0x53dae8(0x1a5)](_0x426a9d=>String[_0x53dae8(0x195)](_0x426a9d))[_0x53dae8(0x1ab)]('');}_0x443cc2(await _0x59e7e7());}(this);}[_0x2517ff(0x178)](){const _0x1f7d03=_0x2517ff,_0xfcdfd2=this[_0x1f7d03(0x197)][_0x1f7d03(0x1a3)][_0x1f7d03(0x18e)];_0xfcdfd2[_0x1f7d03(0x16e)](_0x1f7d03(0x1a4))&&_0xfcdfd2[_0x1f7d03(0x189)](_0x1f7d03(0x1a4),{'allowAttributes':[_0x1f7d03(0x19e)]}),_0xfcdfd2[_0x1f7d03(0x16e)](_0x1f7d03(0x187))&&_0xfcdfd2[_0x1f7d03(0x189)](_0x1f7d03(0x187),{'allowAttributes':[_0x1f7d03(0x19e)]});}[_0x2517ff(0x181)](){const _0x59e6c1=_0x2517ff,_0x2b7a4f=this[_0x59e6c1(0x197)];_0x2b7a4f[_0x59e6c1(0x1b7)][_0x59e6c1(0x193)](_0x59e6c1(0x1a9))[_0x59e6c1(0x16c)]({'model':_0x59e6c1(0x19e),'view':_0x59e6c1(0x1b9)}),_0x2b7a4f[_0x59e6c1(0x1b7)][_0x59e6c1(0x193)](_0x59e6c1(0x18f))[_0x59e6c1(0x177)]({'model':{'key':_0x59e6c1(0x19e),'value':_0x5c39a3=>_0x5c39a3[_0x59e6c1(0x1ae)](_0x59e6c1(0x1b9))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x259ce4=_0x2b7a4f[_0x59e6c1(0x19a)][_0x59e6c1(0x1a1)](_0x59e6c1(0x1b5));_0x259ce4&&this[_0x59e6c1(0x17f)](_0x259ce4,_0x59e6c1(0x180),(_0x1cb1a2,[_0x3463cd,_0x4f9a39])=>{const _0x373813=_0x59e6c1;_0x3463cd[_0x373813(0x17c)](_0x373813(0x19e),_0x4f9a39);});}[_0x2517ff(0x1a8)](){const _0x5a2a1a=_0x2517ff,_0x42a09a=this[_0x5a2a1a(0x197)][_0x5a2a1a(0x17d)][_0x5a2a1a(0x1a1)](_0x5a2a1a(0x192))||{},_0x1c1af9=this[_0x5a2a1a(0x197)][_0x5a2a1a(0x17d)][_0x5a2a1a(0x1a1)](_0x5a2a1a(0x184))||'';this[_0x5a2a1a(0x1b3)]=_0x39762e(_0x3d572f[_0x5a2a1a(0x1a2)],_0x5a2a1a(0x1aa),{..._0x42a09a,'pubkey':_0x1c1af9,'ctx-name':_0x5a2a1a(0x191)+this[_0x5a2a1a(0x19c)],'sourceList':'','imgOnly':_0x5a2a1a(0x17b),'removeCopyright':_0x5a2a1a(0x17b),'localeName':this[_0x5a2a1a(0x197)][_0x5a2a1a(0x190)][_0x5a2a1a(0x186)],'externalSourcesEmbedCss':_0x5a2a1a(0x170)}),this[_0x5a2a1a(0x1b3)][_0x5a2a1a(0x173)]=_0x172177=>{const _0x4707fa=_0x5a2a1a;if(_0x4707fa(0x188)==_0x172177)return _0x4707fa(0x17a);},_0x3d572f[_0x5a2a1a(0x1a2)][_0x5a2a1a(0x1ad)][_0x5a2a1a(0x16d)](this[_0x5a2a1a(0x1b3)]);}[_0x2517ff(0x19b)](){const _0xabfc18=_0x2517ff;this[_0xabfc18(0x179)]=_0x39762e(_0x3d572f[_0xabfc18(0x1a2)],_0xabfc18(0x198),{'ctx-name':_0xabfc18(0x191)+this[_0xabfc18(0x19c)]}),_0x3d572f[_0xabfc18(0x1a2)][_0xabfc18(0x1ad)][_0xabfc18(0x16d)](this[_0xabfc18(0x179)]);}[_0x2517ff(0x19d)](){const _0x2e218d=_0x2517ff,_0x2268d0=this[_0x2e218d(0x197)][_0x2e218d(0x19a)][_0x2e218d(0x1a1)](_0x2e218d(0x19f));_0x2268d0&&this[_0x2e218d(0x17f)](_0x2268d0,_0x2e218d(0x18b),()=>{const _0x615547=_0x2e218d,_0x410fc9=this[_0x615547(0x197)][_0x615547(0x1a3)][_0x615547(0x1a2)][_0x615547(0x16b)][_0x615547(0x18c)]();_0x410fc9&&_0x410fc9[_0x615547(0x1ae)](_0x615547(0x19e))&&this[_0x615547(0x197)][_0x615547(0x185)][_0x615547(0x183)][_0x615547(0x169)](_0x615547(0x1a7),()=>{const _0x2f3c14=_0x615547;_0x242ca4(this[_0x2f3c14(0x197)],_0x410fc9);});});const _0x31550b=this[_0x2e218d(0x197)][_0x2e218d(0x19a)][_0x2e218d(0x1a1)](_0x2e218d(0x168));_0x31550b&&this[_0x2e218d(0x17f)](_0x31550b,_0x2e218d(0x18b),()=>{const _0x405e40=_0x2e218d,_0x1c92bb=this[_0x405e40(0x197)][_0x405e40(0x1a3)][_0x405e40(0x1a2)][_0x405e40(0x16b)][_0x405e40(0x18c)]();_0x1c92bb&&_0x1c92bb[_0x405e40(0x1ae)](_0x405e40(0x19e))&&this[_0x405e40(0x197)][_0x405e40(0x185)][_0x405e40(0x183)][_0x405e40(0x169)](_0x405e40(0x1a7),()=>{const _0x49e5ea=_0x405e40;_0x242ca4(this[_0x49e5ea(0x197)],_0x1c92bb);});});}}