@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250401.0 → 0.0.0-nightly-20250402.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 _0x413ce8,Command as _0x37508d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x308a8a,IconGooglePhotos as _0x578856,IconGoogleDrive as _0x3fd062,IconFacebook as _0x5c8f75,IconDropbox as _0x26cb04,IconUploadcareLink as _0x28a694,IconUploadcareImageUpload as _0x37b866,IconError as et,IconUploadcareImageEdit as _0x531416}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x53bc92,MenuBarMenuListItemButtonView as _0x18c8c1,View as _0x8987f0,FocusCycler as _0x54d4f6,Dialog as _0x58cf1f,DialogViewPosition as _0x42eb0b,SpinnerView as _0x58aeeb,IconView as at,Notification as _0x2f92e6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3d94f4,DomEmitterMixin as _0x2bbaaa,global as _0xab614,getAncestors as _0x11182d,ObservableMixin as _0x94f254,createElement as _0x50d4fc,uid as _0x85dda9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5da506}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x35d025,info as _0x15ebf8}from'@uploadcare/upload-client';import*as _0x4c74d6 from'@uploadcare/file-uploader';var o=function(_0x4a3501){return _0x4a3501['Local']='local',_0x4a3501['URL']='url',_0x4a3501['Dropbox']='dropbox',_0x4a3501['GDrive']='gdrive',_0x4a3501['Facebook']='facebook',_0x4a3501['GPhotos']='gphotos',_0x4a3501['OneDrive']='onedrive',_0x4a3501;}({});function _(_0x2ac0c9,_0x4e696e,_0x49987c){const t=_0x2ac0c9['t'],_0x4957f5=_0x2ac0c9['t'];switch(_0x4e696e){case o['Local']:return{'text':_0x4957f5('Insert'===_0x49987c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4957f5('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x49987c?_0x4957f5('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4957f5('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x49987c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x49987c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x49987c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x49987c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x49987c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4e696e;}}class e extends _0x413ce8{['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 _0x16823a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5f19f7;for(const _0x50f2bd in _0x16823a){const _0x5efc90=_0x50f2bd,_0x106a54=_0x16823a[_0x5efc90];if('uploadcareLicenseKeyValid'==_0x106a54||'uploadcareLicenseKeyInvalid'==_0x106a54||'uploadcareLicenseKeyExpired'==_0x106a54||'uploadcareLicenseKeyDomainLimit'==_0x106a54||'uploadcareLicenseKeyNotAllowed'==_0x106a54||'uploadcareLicenseKeyEvaluationLimit'==_0x106a54||'uploadcareLicenseKeyTrialLimit'==_0x106a54||'uploadcareLicenseKeyUsageLimit'==_0x106a54){delete _0x16823a[_0x5efc90],_0x5f19f7=_0x106a54,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5f19f7&&_0x16823a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5f19f7&&_0x16823a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5f19f7&&_0x16823a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5f19f7&&_0x16823a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5f19f7&&_0x16823a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5f19f7&&_0x16823a['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5f19f7&&_0x16823a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xb2b683}=this,_0x43b10d=_0xb2b683['commands']['get']('uploadcare');if(!_0x43b10d)return;const _0x38731c=this['_normalizeConfigSourceList'](_0xb2b683['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x447dc6,_0x38b946)=>{const _0x468ea3=this['_getIntegrationKey'](_0x38b946['type']);return _0x447dc6[_0x468ea3]||(_0x447dc6[_0x468ea3]=[]),_0x447dc6[_0x468ea3]['push'](_0x38b946),_0x447dc6;},{});_0xb2b683['plugins']['has']('ImageInsertUI')&&_0xb2b683['commands']['get']('uploadcare')&&Object['entries'](_0x38731c)['forEach'](([_0x4b4551,_0x47fc12])=>{_0xb2b683['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4b4551,'observable':()=>_0x43b10d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x47fc12),'formViewCreator':()=>this['_createDropdownButtons'](_0x47fc12),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x47fc12),'override':'assetManager'!==_0x4b4551});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4a6c47){const {locale:_0x24f98c}=this['editor'];return _0x4a6c47['map'](_0x47d42a=>{const _0x1697d0=_(_0x24f98c,_0x47d42a,'Insert');switch(_0x47d42a){case o['Local']:return{'icon':_0x37b866,'type':o['Local'],..._0x1697d0};case o['URL']:return{'icon':_0x28a694,'type':o['URL'],..._0x1697d0};case o['Dropbox']:return{'icon':_0x26cb04,'type':o['Dropbox'],..._0x1697d0};case o['Facebook']:return{'icon':_0x5c8f75,'type':o['Facebook'],..._0x1697d0};case o['GDrive']:return{'icon':_0x3fd062,'type':o['GDrive'],..._0x1697d0};case o['GPhotos']:return{'icon':_0x578856,'type':o['GPhotos'],..._0x1697d0};case o['OneDrive']:return{'icon':_0x308a8a,'type':o['OneDrive'],..._0x1697d0};}});}['_getIntegrationKey'](_0x2f57d4){switch(_0x2f57d4){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x7b67fc,_0x3f4723){const _0xe0fb5b=this['editor'],_0x4fae7c=new _0x7b67fc(_0xe0fb5b['locale']),_0x437e18=_0xe0fb5b['commands']['get']('uploadcare');return _0x4fae7c['bind']('isEnabled')['to'](_0x437e18),_0x4fae7c['on']('execute',()=>{_0x437e18['execute'](_0x3f4723);}),_0x4fae7c;}['_createToolbarButton'](_0x237f94){const {locale:_0x56f214}=this['editor'],_0x102809=this['editor']['plugins']['get']('ImageInsertUI'),_0x4477bd=_0x237f94[0x0],_0x539224=this['_createButton'](_0x53bc92,_0x4477bd['type']);return _0x539224['icon']=_0x4477bd['icon'],_0x539224['bind']('label')['to'](_0x102809,'isImageSelected',_0x2d9026=>_(_0x56f214,_0x4477bd['type'],_0x2d9026?'Replace':'Insert')['text']),_0x539224['tooltip']=!0x0,_0x539224;}['_createDropdownButtons'](_0x52a6b5){const {locale:_0x47b455}=this['editor'],_0x5772ea=this['editor']['plugins']['get']('ImageInsertUI');return _0x52a6b5['map'](_0x54e402=>{const _0x3c5116=this['_createButton'](_0x53bc92,_0x54e402['type']);return _0x3c5116['withText']=!0x0,_0x3c5116['icon']=_0x54e402['icon'],_0x3c5116['bind']('label')['to'](_0x5772ea,'isImageSelected',_0x4e9376=>_(_0x47b455,_0x54e402['type'],_0x4e9376?'Replace':'Insert')['text']),_0x3c5116;});}['_createMenuBarButtons'](_0x4587be){return _0x4587be['map'](_0x5c9a63=>{const _0x4ff1b8=this['_createButton'](_0x18c8c1,_0x5c9a63['type']);return _0x4ff1b8['icon']=_0x5c9a63['icon'],_0x4ff1b8['label']=_0x5c9a63['shortText'],_0x4ff1b8;});}}class q extends _0x8987f0{['focusTracker'];['focusCycler'];constructor(_0x53f434){super(_0x53f434),this['focusTracker']=new _0x3d94f4(),this['focusCycler']=new _0x54d4f6({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x43a336){super(_0x43a336),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x57d0f1,_0x909d14){const _0x46edd8=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4fbb67=>_0x4fbb67<=_0x909d14)['map'](_0x1a01e4=>_0x57d0f1['replace'](/\/$/,'')+'/-/resize/'+_0x1a01e4+'x/\x20'+_0x1a01e4+'w');return{'imageFallbackUrl':_0x57d0f1,'imageSources':[{'srcset':_0x46edd8['join'](',\x20'),'sizes':'(max-width:\x20'+_0x909d14+'px)\x20100vw,\x20'+_0x909d14+'px','type':'image/webp'}]};}function A(_0x5817f3,_0x1daad3,_0xacbb9){const _0x73ac66=_0x5817f3['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x73ac66?parseInt(_0x73ac66[0x1],0xa):_0x1daad3,'height':_0x73ac66?parseInt(_0x73ac66[0x2],0xa):_0xacbb9};}function m(_0x46b36f,_0x1fa7e7){const _0x2af429=Object['create'](_0x2bbaaa),_0xadd732=_0x46b36f['plugins']['get']('ImageUtils'),_0x4d2ed7=_0x46b36f['editing']['mapper']['toViewElement'](_0x1fa7e7),_0x47067a=_0xadd732['findViewImgElement'](_0x4d2ed7),_0x9239d8=_0x46b36f['editing']['view']['domConverter']['viewToDom'](_0x47067a),_0x3f3783=_0x1fa7e7['getAttribute']('width'),_0x3d6828=_0x1fa7e7['getAttribute']('height'),_0x3c7f73='image-processing';_0x46b36f['editing']['view']['change'](_0x17856b=>{_0x17856b['addClass'](_0x3c7f73,_0x4d2ed7),_0x17856b['setStyle']('aspect-ratio',_0x3f3783+'/'+_0x3d6828,_0x47067a);}),_0x2af429['listenTo'](_0x9239d8,'load',()=>{_0x2af429['stopListening'](_0x9239d8,'load'),_0x46b36f['editing']['view']['change'](_0xb7c956=>{_0xb7c956['removeClass'](_0x3c7f73,_0x4d2ed7),_0xb7c956['removeStyle']('aspect-ratio',_0x47067a);});});}function R(_0x547116){if(Array['isArray'](_0x547116)){const _0x382696=_0x547116['map'](R);return _0x3315c0=>_0x382696['some'](_0x348b08=>_0x348b08(_0x3315c0));}if('origin'==_0x547116){const _0x506c48=_0xab614['window']['location']['origin'];return _0x333651=>new URL(_0x333651,_0xab614['document']['baseURI'])['origin']==_0x506c48;}return'function'==typeof _0x547116?_0x547116:_0x547116 instanceof RegExp?_0x424136=>!(!_0x424136['match'](_0x547116)&&!_0x424136['replace'](/^https?:\/\//,'')['match'](_0x547116)):()=>!0x1;}function F(_0x133cf5,_0xa6f84a){return _0x11182d(_0x133cf5['target'])['includes'](_0xa6f84a);}class l extends/* #__PURE__ -- @preserve */
24
- _0x94f254(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1931ea,_0x1a5f66,_0xe2ec5c){super(),this['_editor']=_0x1931ea,this['_editing']=_0x1a5f66,this['_dialog']=_0x1931ea['plugins']['get'](_0x58cf1f),this['_api']=_0x1a5f66['ctxElement']['getAPI'](),this['_type']=_0xe2ec5c,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:_0x5bc9fe,model:_0x1faf30}=this['_editor'],_0x1be5e4=_0x1faf30['document']['selection']['getSelectedElement'](),_0x6bcf05=_0x1be5e4&&(_0x1be5e4['is']('element','imageBlock')||_0x1be5e4['is']('element','imageInline'));this['_formView']=new S(_0x5bc9fe),this['_dialog']['show']({'id':'uploadCare','icon':_0x37b866,'title':_(_0x5bc9fe,this['_type'],_0x6bcf05?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x42eb0b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x266b2e=>!F(_0x266b2e,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4f80e5}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x33acb3=>{const _0x11faf1=_0x4f80e5['length'];for(const _0x18a9e5 of _0x4f80e5){const _0x4601d7=_0x18a9e5===_0x4f80e5[_0x11faf1-0x1],{cdnUrl:_0x5af903,fileInfo:_0x3db76c}=_0x18a9e5;if(!_0x5af903||!_0x3db76c)continue;const {width:_0x12202f,height:_0x1ef7a6}=_0x3db76c['imageInfo'],_0x53cbb7=A(_0x5af903,_0x12202f,_0x1ef7a6),_0x642bc8=E(_0x5af903,_0x53cbb7['width']),_0x26687a={'id':_0x3db76c['uuid'],'type':'image','attributes':{'imageDimension':_0x53cbb7,..._0x642bc8}};this['_insertAsset'](_0x26687a,_0x4601d7,_0x33acb3);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x51e088=>{'idle'===_0x51e088['detail']['status']&&!_0x51e088['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x100be8,_0x50b992,_0x518481){const _0x12c15e=this['_editor']['model']['document']['selection'],_0x5595ea=_0x12c15e['getSelectedElement'](),_0x5c570d=!(!_0x5595ea||!_0x5595ea['is']('element','imageInline'));_0x518481['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x100be8,_0x5c570d),_0x50b992||_0x518481['setSelection'](_0x12c15e['getLastPosition']());}['_insertImage'](_0x8788eb,_0x27366e){const _0x69b9a0=this['_editor'],{imageDimension:_0x163aa3,imageFallbackUrl:_0x2b05e4,imageSources:_0x493d0b}=_0x8788eb['attributes'];_0x69b9a0['execute']('insertImage',{'imageType':_0x27366e?'imageInline':null,'source':{'uploadcareImageId':_0x8788eb['id'],'src':_0x2b05e4,'sources':_0x493d0b,..._0x163aa3}});}}class n extends _0x37508d{['_editing'];['_controller']=null;static get['requires'](){return[_0x58cf1f,i];}constructor(_0x49bf06){super(_0x49bf06),this['_editing']=_0x49bf06['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xed885e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0xed885e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x72968,publicKey:_0x37ccca,signal:_0x3b7188,onProgress:_0x5e6aa0}){return _0x35d025(_0x72968,{'publicKey':_0x37ccca,'store':'auto','signal':_0x3b7188,'onProgress':_0x5e6aa0});}static['getInfo'](_0x4dface,_0x2438be){return _0x15ebf8(_0x4dface,_0x2438be);}}class p extends _0x413ce8{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5da506,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1006cf=this['editor'];if(!!!_0x1006cf['config']['get']('uploadcare'))return;_0x1006cf['plugins']['get'](_0x5da506)['createUploadAdapter']=_0x28553e=>new x(_0x28553e,_0x1006cf),_0x1006cf['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x37d1dd,{imageElement:_0x180a41,data:_0x5475e6})=>{_0x1006cf['model']['change'](_0x2414ed=>{_0x2414ed['setAttribute']('uploadcareImageId',_0x5475e6['uploadcareImageId'],_0x180a41);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x26ee0a,_0x1ffa03){this['loader']=_0x26ee0a,this['editor']=_0x1ffa03,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5a4c55=this['editor']['config']['get']('uploadcare.pubkey'),_0x4d6095=await this['loader']['file'];return C['upload']({'file':_0x4d6095,'publicKey':_0x5a4c55,'signal':this['controller']['signal'],'onProgress':_0x2a3d98=>{_0x2a3d98&&_0x2a3d98['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2a3d98['value']);}})['then'](async _0x101a79=>{const {imageFallbackUrl:_0x33a71d,imageSources:_0x4a58e3}=E(_0x101a79['cdnUrl'],_0x101a79['imageInfo']['width']);return{'uploadcareImageId':_0x101a79['uuid'],'default':_0x33a71d,'sources':_0x4a58e3};})['catch'](()=>{const _0xdb3ae7=t('Cannot\x20upload\x20file:')+('\x20'+_0x4d6095['name']+'.');return Promise['reject'](_0xdb3ae7);});}['abort'](){this['controller']['abort']();}}class i extends _0x413ce8{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x58cf1f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x27668f=this['editor'];_0x27668f['commands']['add']('uploadcare',new n(_0x27668f));}['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 _0x54c0ee=_0xab614['document']['querySelector']('input[uploadcare-file-input]');_0x54c0ee&&_0x54c0ee['remove']();}),async function(_0x35674d){const _0x4db530=_0xa47e10([0x33,0x4d,0x61,0x41,0x38,0x42,0x71,0x73,0x47,0x68,0x30,0x32,0x74,0x31,0x54,0x6f,0x65,0x6e,0x78,0x52,0x37,0x63,0x53,0x50,0x69,0x6a,0x34,0x51,0x5a,0x45,0x7a,0x4b,0x76,0x55,0x46,0x4e,0x48,0x77,0x67,0x4c,0x58,0x44,0x6c,0x6d,0x4f,0x49,0x64,0x43,0x75,0x62,0x79,0x70,0x57,0x72,0x59,0x36,0x4a,0x56,0x66,0x35,0x6b,0x39]),_0x17d3a5=0x5095edfa,_0x1dc8db=0x50928e32^_0x17d3a5,_0x20d06e=window[_0xa47e10([0x44,0x61,0x74,0x65])][_0xa47e10([0x6e,0x6f,0x77])](),_0xea07df=_0x35674d[_0xa47e10([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x135b78=new window[(_0xa47e10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x268742=>{_0xea07df[_0xa47e10([0x6f,0x6e,0x63,0x65])](_0xa47e10([0x72,0x65,0x61,0x64,0x79]),_0x268742);}),_0x216201={[_0xa47e10([0x6b,0x74,0x79])]:_0xa47e10([0x45,0x43]),[_0xa47e10([0x75,0x73,0x65])]:_0xa47e10([0x73,0x69,0x67]),[_0xa47e10([0x63,0x72,0x76])]:_0xa47e10([0x50,0x2d,0x32,0x35,0x36]),[_0xa47e10([0x78])]:_0xa47e10([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]),[_0xa47e10([0x79])]:_0xa47e10([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]),[_0xa47e10([0x61,0x6c,0x67])]:_0xa47e10([0x45,0x53,0x32,0x35,0x36])},_0x41d3ba=_0xea07df[_0xa47e10([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa47e10([0x67,0x65,0x74])](_0xa47e10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x275c5e(){let _0x1ae19c,_0x2437ee=null,_0x24234b=null;try{if(_0x41d3ba==_0xa47e10([0x47,0x50,0x4c]))return _0xa47e10([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1ae19c=_0x2dd3eb(),!_0x1ae19c)return _0xa47e10([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1ae19c[_0xa47e10([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x24234b=_0x55860e(_0x1ae19c[_0xa47e10([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1ae19c[_0xa47e10([0x6a,0x74,0x69])])),await _0x442544()?_0xd94c04()?_0x74ba1a()?_0xa47e10([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x405b5d()?(_0x1ae19c[_0xa47e10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa47e10([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2437ee=_0x29f6bb(_0xa47e10([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1ae19c[_0xa47e10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa47e10([0x74,0x72,0x69,0x61,0x6c])&&(_0x2437ee=_0x29f6bb(_0xa47e10([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xc4aabd()):_0xa47e10([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa47e10([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa47e10([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x45c25f){return _0xa47e10([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x74ba1a(){const _0x54a94d=[_0xa47e10([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa47e10([0x74,0x72,0x69,0x61,0x6c])][_0xa47e10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ae19c[_0xa47e10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x20d06e/0x3e8:0xe10*_0x1dc8db;return _0x1ae19c[_0xa47e10([0x65,0x78,0x70])]<_0x54a94d;}function _0xd94c04(){const _0xe7ffae=_0x1ae19c[_0xa47e10([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xe7ffae&&(!!_0xe7ffae[_0xa47e10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa47e10([0x2a]))||!!_0xe7ffae[_0xa47e10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa47e10([0x55,0x50,0x4c,0x43])));}function _0x405b5d(){const _0x1ef2d0=_0x1ae19c[_0xa47e10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1ef2d0||0x0==_0x1ef2d0[_0xa47e10([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4cc08d}=new URL(window[_0xa47e10([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1ef2d0[_0xa47e10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cc08d))return!0x0;const _0x8a4034=_0x4cc08d[_0xa47e10([0x73,0x70,0x6c,0x69,0x74])](_0xa47e10([0x2e]));return _0x1ef2d0[_0xa47e10([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20181b=>_0x20181b[_0xa47e10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa47e10([0x2a])))[_0xa47e10([0x6d,0x61,0x70])](_0x2cfc3f=>_0x2cfc3f[_0xa47e10([0x73,0x70,0x6c,0x69,0x74])](_0xa47e10([0x2e])))[_0xa47e10([0x73,0x6f,0x6d,0x65])](_0x1c4735=>_0x8a4034[_0xa47e10([0x65,0x76,0x65,0x72,0x79])]((_0x132ad2,_0x4aeddd)=>_0x1c4735[_0x4aeddd]===_0x132ad2||_0x1c4735[_0x4aeddd]===_0xa47e10([0x2a])));}function _0xc4aabd(){return _0x2437ee&&_0x24234b?new window[(_0xa47e10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d1914,_0x199667)=>{_0x2437ee[_0xa47e10([0x74,0x68,0x65,0x6e])](_0x1d1914,_0x199667),_0x24234b[_0xa47e10([0x74,0x68,0x65,0x6e])](_0x4f1464=>{_0x4f1464!=_0xa47e10([0x56,0x61,0x6c,0x69,0x64])&&_0x1d1914(_0x4f1464);},_0x199667);}):_0x2437ee||_0x24234b||_0xa47e10([0x56,0x61,0x6c,0x69,0x64]);}}function _0x55860e(_0x4ac093,_0x531603){return new window[(_0xa47e10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36a7fd=>{if(_0x3c2f8c())return _0x36a7fd(_0xa47e10([0x56,0x61,0x6c,0x69,0x64]));_0x20172a(),_0xea07df[_0xa47e10([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa47e10([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1af708=!0x1;const _0x186f3d=_0x85dda9();function _0x737669(_0x1f3806){return!!_0x1f3806&&(typeof _0x1f3806===_0xa47e10([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f3806===_0xa47e10([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f3806[_0xa47e10([0x74,0x68,0x65,0x6e])]===_0xa47e10([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f3806[_0xa47e10([0x63,0x61,0x74,0x63,0x68])]===_0xa47e10([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e0808(_0xd426f4){_0x395cd2(_0xd426f4)[_0xa47e10([0x74,0x68,0x65,0x6e])](_0x542f04=>{if(!_0x542f04||_0x542f04[_0xa47e10([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa47e10([0x6f,0x6b]))return _0xa47e10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x181c41(_0xe7142(_0x186f3d+_0x531603))!=_0x542f04[_0xa47e10([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa47e10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa47e10([0x56,0x61,0x6c,0x69,0x64]);})[_0xa47e10([0x74,0x68,0x65,0x6e])](_0x35549b=>(_0x5510af(),_0x35549b),()=>{const _0x2afe7a=_0x32d740();return null==_0x2afe7a?(_0x5510af(),_0xa47e10([0x56,0x61,0x6c,0x69,0x64])):_0xa47e10(_0x20d06e-_0x2afe7a>(0x749969fa^_0x17d3a5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa47e10([0x74,0x68,0x65,0x6e])](_0x36a7fd)[_0xa47e10([0x63,0x61,0x74,0x63,0x68])](()=>{_0x36a7fd(_0xa47e10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d0676=0x50a3037a^_0x17d3a5;function _0x5510af(){const _0x1792f8=_0xa47e10([0x6c,0x6c,0x63,0x74,0x2d])+_0x181c41(_0xe7142(_0x4ac093)),_0x263301=_0x3d7a28(_0x181c41(window[_0xa47e10([0x4d,0x61,0x74,0x68])][_0xa47e10([0x63,0x65,0x69,0x6c])](_0x20d06e/_0x5d0676)));window[_0xa47e10([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa47e10([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1792f8,_0x263301);}function _0x32d740(){const _0x249a9f=_0xa47e10([0x6c,0x6c,0x63,0x74,0x2d])+_0x181c41(_0xe7142(_0x4ac093)),_0x1e9271=window[_0xa47e10([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa47e10([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x249a9f);return _0x1e9271?window[_0xa47e10([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d7a28(_0x1e9271),0x10)*_0x5d0676:null;}function _0x395cd2(_0x11cac1){return new window[(_0xa47e10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c06da,_0x4e8be9)=>{_0x11cac1[_0xa47e10([0x74,0x68,0x65,0x6e])](_0x1c06da,_0x4e8be9),window[_0xa47e10([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e8be9,0x5094393a^_0x17d3a5);});}}_0xea07df[_0xa47e10([0x6f,0x6e])](_0xa47e10([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x43d78c,_0x3cb93c)=>{if(_0x3cb93c[0x0]!=_0x4ac093)return _0x36a7fd(_0xa47e10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3cb93c[0x1]={..._0x3cb93c[0x1],[_0xa47e10([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x186f3d};},{[_0xa47e10([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa47e10([0x68,0x69,0x67,0x68])}),_0xea07df[_0xa47e10([0x6f,0x6e])](_0xa47e10([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x240109=>{_0x737669(_0x240109[_0xa47e10([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1af708=!0x0,_0x1e0808(_0x240109[_0xa47e10([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa47e10([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa47e10([0x6c,0x6f,0x77])}),_0x135b78[_0xa47e10([0x74,0x68,0x65,0x6e])](()=>{_0x1af708||_0x36a7fd(_0xa47e10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c2f8c(){return _0xea07df[_0xa47e10([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa47e10([0x76,0x69,0x65,0x77])][_0xa47e10([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa47e10([0x61,0x75,0x74,0x6f]);}function _0x20172a(){_0xea07df[_0xa47e10([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa47e10([0x76,0x69,0x65,0x77])][_0xa47e10([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa47e10([0x61,0x75,0x74,0x6f]);}}function _0x29f6bb(_0x30ec66){const _0x1d83ce=[new window[(_0xa47e10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17745e=>setTimeout(_0x17745e,0x509cd336^_0x17d3a5)),_0x135b78[_0xa47e10([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa47e10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58f50a=>{let _0x13dfe9=0x0;_0xea07df[_0xa47e10([0x6d,0x6f,0x64,0x65,0x6c])][_0xa47e10([0x6f,0x6e])](_0xa47e10([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x6996a3,_0x30d88d)=>{_0x30d88d[0x0][_0xa47e10([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x13dfe9++,_0x13dfe9==(0x5095ec02^_0x17d3a5)&&(_0x58f50a(),_0x6996a3[_0xa47e10([0x6f,0x66,0x66])]());});}))];return window[_0xa47e10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa47e10([0x72,0x61,0x63,0x65])](_0x1d83ce)[_0xa47e10([0x74,0x68,0x65,0x6e])](()=>_0x30ec66);}async function _0x3bc1d7(){await _0x135b78,_0xea07df[_0xa47e10([0x6d,0x6f,0x64,0x65,0x6c])][_0xa47e10([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x175663,_0xea07df[_0xa47e10([0x6d,0x6f,0x64,0x65,0x6c])][_0xa47e10([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x175663,_0xea07df[_0xa47e10([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa47e10([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x42cbf6(_0x5e30c8){const _0x35f191=_0x9ddb0();_0xea07df[_0x35f191]=_0xa47e10([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5e30c8,_0x5e30c8!=_0xa47e10([0x56,0x61,0x6c,0x69,0x64])&&_0x3bc1d7();}function _0x9ddb0(){const _0x2bd199=window[_0xa47e10([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa47e10([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa47e10([0x6e,0x6f,0x77])]())[_0xa47e10([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa47e10([0x2e]),'');let _0x17be3c=_0xa47e10([0x4d]);for(let _0xe5618b=0x0;_0xe5618b<_0x2bd199[_0xa47e10([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe5618b+=0x2){let _0x1c812f=window[_0xa47e10([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bd199[_0xa47e10([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe5618b,_0xe5618b+0x2));_0x1c812f>=_0x4db530[_0xa47e10([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1c812f-=_0x4db530[_0xa47e10([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17be3c+=_0x4db530[_0x1c812f];}return _0x17be3c;}function _0x2dd3eb(){const _0x1931df=_0x41d3ba[_0xa47e10([0x73,0x70,0x6c,0x69,0x74])](_0xa47e10([0x2e]));if(0x3!=_0x1931df[_0xa47e10([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5a8947(_0x1931df[0x1]);function _0x5a8947(_0x4c4807){const _0x447fb2=_0x5f5593(_0x4c4807);return _0x447fb2&&_0x59be8c()?_0x447fb2:null;function _0x59be8c(){const _0x155b58=_0x447fb2[_0xa47e10([0x6a,0x74,0x69])],_0x521b63=window[_0xa47e10([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x155b58[_0xa47e10([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x155b58[_0xa47e10([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x549539={..._0x447fb2,[_0xa47e10([0x6a,0x74,0x69])]:_0x155b58[_0xa47e10([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x155b58[_0xa47e10([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x549539[_0xa47e10([0x76,0x63])],_0xe7142(_0x549539)==_0x521b63;}}}async function _0x442544(){let _0x5cc60c=!0x0;try{const _0x3757c8=_0x41d3ba[_0xa47e10([0x73,0x70,0x6c,0x69,0x74])](_0xa47e10([0x2e])),[_0x33660b,_0x27c192,_0x1af6c7]=_0x3757c8;return _0x5ffc9d(_0x33660b),await _0x53fa17(_0x33660b,_0x27c192,_0x1af6c7),_0x5cc60c;}catch(_0x1d5f98){return!0x1;}function _0x5ffc9d(_0x77d8d5){const _0x4eb186=_0x5f5593(_0x77d8d5);_0x4eb186&&_0x4eb186[_0xa47e10([0x61,0x6c,0x67])]==_0xa47e10([0x45,0x53,0x32,0x35,0x36])||(_0x5cc60c=!0x1);}async function _0x53fa17(_0x5261f5,_0x2499e0,_0x4e15e4){const _0x4ca833=window[_0xa47e10([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa47e10([0x66,0x72,0x6f,0x6d])](_0x2b3300(_0x4e15e4),_0x54fe42=>_0x54fe42[_0xa47e10([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x15aa07=new window[(_0xa47e10([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa47e10([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5261f5+_0xa47e10([0x2e])+_0x2499e0),_0x2a56c9=window[_0xa47e10([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa47e10([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a56c9)return;const _0x4a3c30=await _0x2a56c9[_0xa47e10([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa47e10([0x6a,0x77,0x6b]),_0x216201,{[_0xa47e10([0x6e,0x61,0x6d,0x65])]:_0xa47e10([0x45,0x43,0x44,0x53,0x41]),[_0xa47e10([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa47e10([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa47e10([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a56c9[_0xa47e10([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa47e10([0x6e,0x61,0x6d,0x65])]:_0xa47e10([0x45,0x43,0x44,0x53,0x41]),[_0xa47e10([0x68,0x61,0x73,0x68])]:{[_0xa47e10([0x6e,0x61,0x6d,0x65])]:_0xa47e10([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a3c30,_0x4ca833,_0x15aa07)||(_0x5cc60c=!0x1);}}function _0x5f5593(_0x18b396){return _0x18b396[_0xa47e10([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa47e10([0x65,0x79]))?JSON[_0xa47e10([0x70,0x61,0x72,0x73,0x65])](_0x2b3300(_0x18b396)):null;}function _0x2b3300(_0x35b467){return window[_0xa47e10([0x61,0x74,0x6f,0x62])](_0x35b467[_0xa47e10([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa47e10([0x2b]))[_0xa47e10([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa47e10([0x2f])));}function _0xe7142(_0xc4b47e){let _0x52755f=0x1505;function _0x5eead3(_0x327eff){for(let _0xe8e2ac=0x0;_0xe8e2ac<_0x327eff[_0xa47e10([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe8e2ac++){const _0x5a0bc0=_0x327eff[_0xa47e10([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe8e2ac);_0x52755f=(_0x52755f<<0x5)+_0x52755f+_0x5a0bc0,_0x52755f&=_0x52755f;}}function _0x15bdae(_0x7806f5){Array[_0xa47e10([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x7806f5)?_0x7806f5[_0xa47e10([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x15bdae):_0x7806f5&&typeof _0x7806f5==_0xa47e10([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa47e10([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x7806f5)[_0xa47e10([0x73,0x6f,0x72,0x74])]()[_0xa47e10([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x51800b,_0x1a1161])=>{_0x5eead3(_0x51800b),_0x15bdae(_0x1a1161);}):_0x5eead3(window[_0xa47e10([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x7806f5));}return _0x15bdae(_0xc4b47e),_0x52755f>>>0x0;}function _0x181c41(_0x5298fe){return _0x5298fe[_0xa47e10([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa47e10([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa47e10([0x30]));}function _0x3d7a28(_0x3b304e){return _0x3b304e[_0xa47e10([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa47e10([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa47e10([0x6a,0x6f,0x69,0x6e])]('');}function _0x175663(){}function _0xa47e10(_0x1f3fd0){return _0x1f3fd0['map'](_0x424367=>String['fromCharCode'](_0x424367))['join']('');}_0x42cbf6(await _0x275c5e());}(this);}['_initSchema'](){const _0xd2aa4b=this['editor']['model']['schema'];_0xd2aa4b['isRegistered']('imageBlock')&&_0xd2aa4b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xd2aa4b['isRegistered']('imageInline')&&_0xd2aa4b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x46b84f=this['editor'];_0x46b84f['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x46b84f['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x14684d=>_0x14684d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2ef677=_0x46b84f['commands']['get']('replaceImageSource');_0x2ef677&&this['listenTo'](_0x2ef677,'cleanupImage',(_0x26e977,[_0x42005f,_0x5595f6])=>{_0x42005f['removeAttribute']('uploadcareImageId',_0x5595f6);});}['_initConfig'](){const _0x22bdde=this['editor']['config']['get']('uploadcare.uploader')||{},_0xe09211=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x50d4fc(_0xab614['document'],'uc-config',{..._0x22bdde,'pubkey':_0xe09211,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x129421=>{if('closeMax'==_0x129421)return'#uc-icon-arrow-down';},_0xab614['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x50d4fc(_0xab614['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xab614['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x35451d=this['editor']['commands']['get']('insertImage');_0x35451d&&this['listenTo'](_0x35451d,'execute',()=>{const _0x456920=this['editor']['model']['document']['selection']['getSelectedElement']();_0x456920&&_0x456920['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x456920);});});const _0x5b9f12=this['editor']['commands']['get']('uploadcareImageReplace');_0x5b9f12&&this['listenTo'](_0x5b9f12,'execute',()=>{const _0x3bc668=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3bc668&&_0x3bc668['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3bc668);});});}}class u extends _0x413ce8{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a3e82){super(_0x1a3e82),_0x1a3e82['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x4c74d6['defineComponents'](_0x4c74d6);}}class ta extends _0x8987f0{constructor(_0x19775c){super(_0x19775c);const t=_0x19775c['t'],_0x5e7892=this['bindTemplate'],_0x50794a=new _0x58aeeb();_0x50794a['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':[_0x50794a,{'text':_0x5e7892['to']('imageUploadProgress',_0x481916=>t('Loading\x20image...')+'\x20('+(_0x481916||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x8987f0{constructor(_0x5b304a){super(_0x5b304a);const t=_0x5b304a['t'];this['set']('errorType',null);const _0x503b46=new _0x53bc92(_0x5b304a);_0x503b46['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x503b46['withText']=!0x0,_0x503b46['class']='ck-button-action',_0x503b46['on']('execute',()=>{this['fire']('retry');}),_0x503b46['bind']('isVisible')['to'](this,'errorType',_0x18b260=>'NotFound'!==_0x18b260);const _0x2f0a71=new at();_0x2f0a71['content']=et,_0x2f0a71['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4f7632=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':[_0x2f0a71,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4f7632['to']('errorType',_0x5dcaf4=>t('NotFound'!==_0x5dcaf4?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x503b46]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x8987f0{constructor(_0x4cabbf,_0x8e35e7){super(_0x4cabbf);const _0x4233dd=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x8e35e7,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4233dd['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5b00b1,_0x533209,_0x1d0142){super(_0x5b00b1),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x5b00b1),this['_errorView']=new rt(_0x5b00b1),this['_editingView']=new tt(_0x5b00b1,_0x1d0142),this['_focusableView']=new _0x8987f0(_0x5b00b1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x533209),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'],_0x10ca3a=>{this['_addUploadcareImageEditorListeners'](_0x10ca3a);});}),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'](_0x58b810,_0x535b2d){const _0x21b489='uc-cloud-image-editor',_0x192c26=_0x58b810['querySelector'](_0x21b489);if(_0x192c26)return _0x535b2d(_0x192c26);const _0x57a026=new MutationObserver(_0x256e9a=>{const _0x579902=_0x256e9a['filter'](_0x2b6ed7=>_0x2b6ed7['target']===_0x58b810&&_0x2b6ed7['addedNodes']['length']>0x0&&_0x2b6ed7['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x21b489);_0x579902['length']&&(_0x57a026['disconnect'](),_0x535b2d(_0x579902[0x0]['addedNodes'][0x0]));});_0x57a026['observe'](_0x58b810,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x26fa64){_0x26fa64['addEventListener']('apply',_0x5b0af0=>{this['fire']('apply',{'imageSrc':_0x5b0af0['detail']['cdnUrl']});}),_0x26fa64['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class O extends/* #__PURE__ -- @preserve */
25
- _0x94f254(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x12f662,_0x4a909f,_0x3e5358){super(),this['_editor']=_0x12f662,this['_dialog']=_0x4a909f,this['_imageElement']=_0x3e5358,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 _0x400c4d=this['_imageElement'],_0x20ecb6=_0x400c4d['getAttribute']('uploadcareImageId'),_0x5c1736=_0x400c4d['getAttribute']('src');if(_0x20ecb6)await this['_loadImageInfo'](_0x20ecb6,_0x5c1736);else{if(this['_imageCache']['has'](_0x5c1736)){const _0x525548=this['_imageCache']['get'](_0x5c1736);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x525548['url'],this['imageDimension']=_0x525548['dimension'],this['imageId']=_0x525548['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3e7798}=this['_editor'],t=_0x3e7798['t'],_0x491ea5=new Z(_0x3e7798,this['imageStatus'],this['_attributes']);_0x491ea5['bind']('status')['to'](this,'imageStatus'),_0x491ea5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x491ea5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x491ea5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x491ea5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x531416,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x491ea5,'position':_0x42eb0b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x491ea5['focus']();},'onHide':()=>{_0x491ea5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5e826c=>!F(_0x5e826c,_0x491ea5['element'])}});}['_loadImageInfo'](_0x14c8b9,_0x3c3b52){return C['getInfo'](_0x14c8b9,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2639f3=>{const {width:_0x1eba90,height:_0x5ef56d}=_0x2639f3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c3b52,this['imageDimension']={'width':_0x1eba90,'height':_0x5ef56d},this['imageId']=_0x14c8b9;})['catch'](_0x28524e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x28524e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x585784,_0xd01b62){return this['_getImageAsFile'](_0x585784)['then'](_0x53b304=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xd01b62['signal'],'file':_0x53b304,'onProgress':_0x57c8a0=>{_0x57c8a0&&_0x57c8a0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x57c8a0['value']));}}))['then'](_0x2e796d=>{const {width:_0x591a8a,height:_0x2f2cdf}=_0x2e796d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2e796d['cdnUrl'],this['imageDimension']={'width':_0x591a8a,'height':_0x2f2cdf},this['imageId']=_0x2e796d['uuid'],this['imageUploadProgress']=null;const _0x58e116=_0x585784['getAttribute']('src');this['_imageCache']['set'](_0x58e116,{'id':_0x2e796d['uuid'],'url':_0x2e796d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x43a650=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x43a650['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x20ab81,_0x30adcf){_0x20ab81['on']('apply',(_0x3deecc,_0x20e202)=>{this['_replaceImage'](_0x30adcf,_0x20e202['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x20ab81['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x20ab81['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x539cf4,_0x14d68d,_0xe3c648){const _0x32e57a=this['_editor'],{width:_0x17db86,height:_0x4dd01b}=A(_0x14d68d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1d6913,imageSources:_0x42249d}=E(_0x14d68d,_0x17db86);_0x32e57a['model']['change'](_0x1d9464=>{if('$graveyard'===_0x539cf4['root']['rootName']){_0x32e57a['execute']('insertImage',{'imageType':_0x539cf4['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x539cf4['getAttributes']()),'uploadcareImageId':_0xe3c648,'src':_0x1d6913,'sources':_0x42249d,'width':_0x17db86,'height':_0x4dd01b}});const _0x422d3b=_0x539cf4['getChildren']();_0x539cf4=_0x32e57a['model']['document']['selection']['getSelectedElement']();for(const _0x412b68 of _0x422d3b)_0x1d9464['append'](_0x1d9464['cloneElement'](_0x412b68),_0x539cf4);}else _0x1d9464['setSelection'](_0x539cf4,'on'),_0x32e57a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x539cf4['getAttributes']()),'uploadcareImageId':_0xe3c648,'src':_0x1d6913,'sources':_0x42249d,'width':_0x17db86,'height':_0x4dd01b},_0x539cf4);_0x1d9464['setSelection'](_0x539cf4,'on');});}async['_getImageAsFile'](_0xed6874){const _0x12660e=_0xab614['window'],_0x16dbc2=_0xab614['document']['location']['href'],_0xbc1b9b=new _0x12660e['URL'](_0xed6874['getAttribute']('src'),_0x16dbc2);if('data:'===_0xbc1b9b['protocol']){const _0x527cfe=_0xbc1b9b['href']['split'](','),_0xf044cf=_0x527cfe[0x0]['match'](/:(.*?);/)[0x1],_0x495729=_0xf044cf['split']('/')[0x1],_0x4f571d=_0x12660e['atob'](_0x527cfe[_0x527cfe['length']-0x1]);let _0x20217f=_0x4f571d['length'];const _0x15795c=new _0x12660e['Uint8Array'](_0x20217f);for(;_0x20217f--;)_0x15795c[_0x20217f]=_0x4f571d['charCodeAt'](_0x20217f);return new _0x12660e['File']([_0x15795c],'image.'+_0x495729,{'type':_0xf044cf});}const _0x5a09d6=_0xbc1b9b['href']['split']('/'),_0x4acd14=_0x5a09d6[_0x5a09d6['length']-0x1],_0xf52db5=_0x4acd14['split']('.')[0x1];return _0x12660e['fetch'](_0xbc1b9b['href'])['then'](_0x7d009c=>_0x7d009c['clone']()['blob']())['then'](_0x134ef2=>new _0x12660e['File']([_0x134ef2],_0x4acd14,{'type':'image/'+_0xf52db5}));}}class V extends _0x37508d{['imageEditController'];static get['requires'](){return[_0x58cf1f];}['_isEditable'];constructor(_0x56c4a2){super(_0x56c4a2),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4302b7){const _0x22bff6=R(_0x4302b7);return _0x1c2c6b=>!(!_0x1c2c6b||!_0x1c2c6b['is']('element','imageBlock')&&!_0x1c2c6b['is']('element','imageInline'))&&(!!_0x1c2c6b['hasAttribute']('uploadcareImageId')||!!_0x1c2c6b['hasAttribute']('src')&&_0x22bff6(_0x1c2c6b['getAttribute']('src')));}(_0x56c4a2['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xbd0e94=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xbd0e94);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x152e83=this['editor']['model']['document']['selection']['getSelectedElement']();_0x152e83&&(_0x152e83['is']('element','imageBlock')||_0x152e83['is']('element','imageInline'))&&(this['imageEditController']=new O(this['editor'],this['editor']['plugins']['get'](_0x58cf1f),_0x152e83),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class X extends _0x37508d{['refresh'](){const _0x221141=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x221141&&(_0x221141['is']('element','imageBlock')||_0x221141['is']('element','imageInline')));}['execute'](_0x4a086a){const _0x5e073d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x164903=>{_0x164903['setAttributes'](_0x4a086a,_0x5e073d),_0x164903['removeAttribute']('srcset',_0x5e073d),_0x164903['removeAttribute']('sizes',_0x5e073d);});}}class g extends _0x413ce8{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x2f92e6,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x9b5a93}=this;_0x9b5a93['commands']['add']('uploadcareImageEdit',new V(_0x9b5a93)),_0x9b5a93['commands']['add']('uploadcareImageReplace',new X(_0x9b5a93));}}class j extends _0x413ce8{['_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 _0x212d59=this['editor'];_0x212d59['ui']['componentFactory']['add']('uploadcareImageEdit',_0x47a4b9=>{const _0x5caf8e=_0x212d59['commands']['get']('uploadcareImageEdit'),_0x2d4e0c=new _0x53bc92(_0x47a4b9),t=_0x47a4b9['t'];return _0x2d4e0c['set']({'icon':_0x531416,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2d4e0c['bind']('isEnabled')['to'](_0x5caf8e),_0x2d4e0c['bind']('isOn')['to'](_0x5caf8e,'isActive'),this['listenTo'](_0x2d4e0c,'execute',()=>{_0x212d59['execute']('uploadcareImageEdit'),_0x212d59['editing']['view']['focus']();}),_0x2d4e0c;}),this['_initConfig']();}['_initConfig'](){const _0x2ffc43=_0x50d4fc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2ffc43),this['listenTo'](this['editor'],'destroy',()=>{_0x2ffc43['remove']();});}}class P extends _0x413ce8{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
23
+ import{Plugin as _0x4ea000,Command as _0xc4f8ac}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x13a1ce,IconGooglePhotos as _0x970829,IconGoogleDrive as _0x1d09e0,IconFacebook as _0x5f2a05,IconDropbox as _0x1d3c04,IconUploadcareLink as _0x3ed039,IconUploadcareImageUpload as _0x1de36c,IconError as et,IconUploadcareImageEdit as _0xcc4bda}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4aa3de,MenuBarMenuListItemButtonView as _0xb9d8e9,View as _0x53e6cd,FocusCycler as _0x19c5e1,Dialog as _0x229546,DialogViewPosition as _0x1abee9,SpinnerView as _0x3fba93,IconView as at,Notification as _0x53017a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x33c466,DomEmitterMixin as _0x1bba4d,global as _0x51bda0,getAncestors as _0x3fccd7,ObservableMixin as _0x4fca61,createElement as _0x3fb6af,uid as _0x3e5792}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1036e9}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x36aecd,info as _0x293c06}from'@uploadcare/upload-client';import*as _0x270be8 from'@uploadcare/file-uploader';var o=function(_0x5c1383){return _0x5c1383['Local']='local',_0x5c1383['URL']='url',_0x5c1383['Dropbox']='dropbox',_0x5c1383['GDrive']='gdrive',_0x5c1383['Facebook']='facebook',_0x5c1383['GPhotos']='gphotos',_0x5c1383['OneDrive']='onedrive',_0x5c1383;}({});function _(_0x306f33,_0x516a10,_0x3f5c25){const t=_0x306f33['t'],_0x484c3e=_0x306f33['t'];switch(_0x516a10){case o['Local']:return{'text':_0x484c3e('Insert'===_0x3f5c25?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x484c3e('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x3f5c25?_0x484c3e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x484c3e('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x3f5c25?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x3f5c25?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x3f5c25?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x3f5c25?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x3f5c25?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x516a10;}}class e extends _0x4ea000{['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 _0x4f811e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x6fc35b;for(const _0x46fa64 in _0x4f811e){const _0x2b06ea=_0x46fa64,_0x2474ff=_0x4f811e[_0x2b06ea];if('uploadcareLicenseKeyValid'==_0x2474ff||'uploadcareLicenseKeyInvalid'==_0x2474ff||'uploadcareLicenseKeyExpired'==_0x2474ff||'uploadcareLicenseKeyDomainLimit'==_0x2474ff||'uploadcareLicenseKeyNotAllowed'==_0x2474ff||'uploadcareLicenseKeyEvaluationLimit'==_0x2474ff||'uploadcareLicenseKeyTrialLimit'==_0x2474ff||'uploadcareLicenseKeyUsageLimit'==_0x2474ff){delete _0x4f811e[_0x2b06ea],_0x6fc35b=_0x2474ff,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x6fc35b&&_0x4f811e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x6fc35b&&_0x4f811e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x6fc35b&&_0x4f811e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x6fc35b&&_0x4f811e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x6fc35b&&_0x4f811e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x6fc35b&&_0x4f811e['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x6fc35b&&_0x4f811e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x44f22a}=this,_0x29e2e1=_0x44f22a['commands']['get']('uploadcare');if(!_0x29e2e1)return;const _0x557480=this['_normalizeConfigSourceList'](_0x44f22a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x33051e,_0x3bb45d)=>{const _0x247650=this['_getIntegrationKey'](_0x3bb45d['type']);return _0x33051e[_0x247650]||(_0x33051e[_0x247650]=[]),_0x33051e[_0x247650]['push'](_0x3bb45d),_0x33051e;},{});_0x44f22a['plugins']['has']('ImageInsertUI')&&_0x44f22a['commands']['get']('uploadcare')&&Object['entries'](_0x557480)['forEach'](([_0x409382,_0x1e0d61])=>{_0x44f22a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x409382,'observable':()=>_0x29e2e1,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1e0d61),'formViewCreator':()=>this['_createDropdownButtons'](_0x1e0d61),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1e0d61),'override':'assetManager'!==_0x409382});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x36f6e7){const {locale:_0x1b388d}=this['editor'];return _0x36f6e7['map'](_0x13eb1b=>{const _0x24444c=_(_0x1b388d,_0x13eb1b,'Insert');switch(_0x13eb1b){case o['Local']:return{'icon':_0x1de36c,'type':o['Local'],..._0x24444c};case o['URL']:return{'icon':_0x3ed039,'type':o['URL'],..._0x24444c};case o['Dropbox']:return{'icon':_0x1d3c04,'type':o['Dropbox'],..._0x24444c};case o['Facebook']:return{'icon':_0x5f2a05,'type':o['Facebook'],..._0x24444c};case o['GDrive']:return{'icon':_0x1d09e0,'type':o['GDrive'],..._0x24444c};case o['GPhotos']:return{'icon':_0x970829,'type':o['GPhotos'],..._0x24444c};case o['OneDrive']:return{'icon':_0x13a1ce,'type':o['OneDrive'],..._0x24444c};}});}['_getIntegrationKey'](_0x422e58){switch(_0x422e58){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xa4ae0d,_0x4476e5){const _0x37e8cb=this['editor'],_0x1f5174=new _0xa4ae0d(_0x37e8cb['locale']),_0x3b7121=_0x37e8cb['commands']['get']('uploadcare');return _0x1f5174['bind']('isEnabled')['to'](_0x3b7121),_0x1f5174['on']('execute',()=>{_0x3b7121['execute'](_0x4476e5);}),_0x1f5174;}['_createToolbarButton'](_0x5c12a9){const {locale:_0xe8f786}=this['editor'],_0x21945c=this['editor']['plugins']['get']('ImageInsertUI'),_0x8dee38=_0x5c12a9[0x0],_0x5cbe6c=this['_createButton'](_0x4aa3de,_0x8dee38['type']);return _0x5cbe6c['icon']=_0x8dee38['icon'],_0x5cbe6c['bind']('label')['to'](_0x21945c,'isImageSelected',_0x4af830=>_(_0xe8f786,_0x8dee38['type'],_0x4af830?'Replace':'Insert')['text']),_0x5cbe6c['tooltip']=!0x0,_0x5cbe6c;}['_createDropdownButtons'](_0x1e9a4c){const {locale:_0x237fb8}=this['editor'],_0x12fcd1=this['editor']['plugins']['get']('ImageInsertUI');return _0x1e9a4c['map'](_0x2501fd=>{const _0x378b0d=this['_createButton'](_0x4aa3de,_0x2501fd['type']);return _0x378b0d['withText']=!0x0,_0x378b0d['icon']=_0x2501fd['icon'],_0x378b0d['bind']('label')['to'](_0x12fcd1,'isImageSelected',_0x353e32=>_(_0x237fb8,_0x2501fd['type'],_0x353e32?'Replace':'Insert')['text']),_0x378b0d;});}['_createMenuBarButtons'](_0x201372){return _0x201372['map'](_0x1b198c=>{const _0x1e922b=this['_createButton'](_0xb9d8e9,_0x1b198c['type']);return _0x1e922b['icon']=_0x1b198c['icon'],_0x1e922b['label']=_0x1b198c['shortText'],_0x1e922b;});}}class q extends _0x53e6cd{['focusTracker'];['focusCycler'];constructor(_0x266849){super(_0x266849),this['focusTracker']=new _0x33c466(),this['focusCycler']=new _0x19c5e1({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x5d64c2){super(_0x5d64c2),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x5eb700,_0x382a54){const _0x16abf9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x56f7a6=>_0x56f7a6<=_0x382a54)['map'](_0x141ff7=>_0x5eb700['replace'](/\/$/,'')+'/-/resize/'+_0x141ff7+'x/\x20'+_0x141ff7+'w');return{'imageFallbackUrl':_0x5eb700,'imageSources':[{'srcset':_0x16abf9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x382a54+'px)\x20100vw,\x20'+_0x382a54+'px','type':'image/webp'}]};}function A(_0x5ea0db,_0x19ba6a,_0x96f1b4){const _0x391b67=_0x5ea0db['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x391b67?parseInt(_0x391b67[0x1],0xa):_0x19ba6a,'height':_0x391b67?parseInt(_0x391b67[0x2],0xa):_0x96f1b4};}function m(_0x531dd1,_0x39f516){const _0x18ab91=Object['create'](_0x1bba4d),_0x3e5df5=_0x531dd1['plugins']['get']('ImageUtils'),_0x210dbc=_0x531dd1['editing']['mapper']['toViewElement'](_0x39f516),_0x7e0343=_0x3e5df5['findViewImgElement'](_0x210dbc),_0x23b0ab=_0x531dd1['editing']['view']['domConverter']['viewToDom'](_0x7e0343),_0x22e1cb=_0x39f516['getAttribute']('width'),_0x3da679=_0x39f516['getAttribute']('height'),_0x4794f2='image-processing';_0x531dd1['editing']['view']['change'](_0x34a01c=>{_0x34a01c['addClass'](_0x4794f2,_0x210dbc),_0x34a01c['setStyle']('aspect-ratio',_0x22e1cb+'/'+_0x3da679,_0x7e0343);}),_0x18ab91['listenTo'](_0x23b0ab,'load',()=>{_0x18ab91['stopListening'](_0x23b0ab,'load'),_0x531dd1['editing']['view']['change'](_0xf6e9c3=>{_0xf6e9c3['removeClass'](_0x4794f2,_0x210dbc),_0xf6e9c3['removeStyle']('aspect-ratio',_0x7e0343);});});}function V(_0x21082b){if(Array['isArray'](_0x21082b)){const _0x737027=_0x21082b['map'](V);return _0x400e15=>_0x737027['some'](_0x20a1e1=>_0x20a1e1(_0x400e15));}if('origin'==_0x21082b){const _0x898efc=_0x51bda0['window']['location']['origin'];return _0x286058=>new URL(_0x286058,_0x51bda0['document']['baseURI'])['origin']==_0x898efc;}return'function'==typeof _0x21082b?_0x21082b:_0x21082b instanceof RegExp?_0x4f42e0=>!(!_0x4f42e0['match'](_0x21082b)&&!_0x4f42e0['replace'](/^https?:\/\//,'')['match'](_0x21082b)):()=>!0x1;}function F(_0xf57359,_0x5a6541){return _0x3fccd7(_0xf57359['target'])['includes'](_0x5a6541);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x4fca61(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5aabb6,_0x46539d,_0x157a94){super(),this['_editor']=_0x5aabb6,this['_editing']=_0x46539d,this['_dialog']=_0x5aabb6['plugins']['get'](_0x229546),this['_api']=_0x46539d['ctxElement']['getAPI'](),this['_type']=_0x157a94,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:_0x4c0b77,model:_0x39eebf}=this['_editor'],_0x1b796a=_0x39eebf['document']['selection']['getSelectedElement'](),_0x5ecad6=_0x1b796a&&(_0x1b796a['is']('element','imageBlock')||_0x1b796a['is']('element','imageInline'));this['_formView']=new S(_0x4c0b77),this['_dialog']['show']({'id':'uploadCare','icon':_0x1de36c,'title':_(_0x4c0b77,this['_type'],_0x5ecad6?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1abee9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1e4ccf=>!F(_0x1e4ccf,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4e9282}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x588c8d=>{const _0x59d575=_0x4e9282['length'];for(const _0x42230e of _0x4e9282){const _0x47ffa1=_0x42230e===_0x4e9282[_0x59d575-0x1],{cdnUrl:_0x4eb8eb,fileInfo:_0x63cb9f}=_0x42230e;if(!_0x4eb8eb||!_0x63cb9f)continue;const {width:_0x428bea,height:_0x29919e}=_0x63cb9f['imageInfo'],_0x4facb8=A(_0x4eb8eb,_0x428bea,_0x29919e),_0x55bd36=E(_0x4eb8eb,_0x4facb8['width']),_0x14e19a={'id':_0x63cb9f['uuid'],'type':'image','attributes':{'imageDimension':_0x4facb8,..._0x55bd36}};this['_insertAsset'](_0x14e19a,_0x47ffa1,_0x588c8d);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xf908d4=>{'idle'===_0xf908d4['detail']['status']&&!_0xf908d4['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1af9c6,_0xca9378,_0x40a850){const _0x4ffa00=this['_editor']['model']['document']['selection'],_0x5e6fae=_0x4ffa00['getSelectedElement'](),_0x469b7c=!(!_0x5e6fae||!_0x5e6fae['is']('element','imageInline'));_0x40a850['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1af9c6,_0x469b7c),_0xca9378||_0x40a850['setSelection'](_0x4ffa00['getLastPosition']());}['_insertImage'](_0x4c89e9,_0x3450bc){const _0x192a42=this['_editor'],{imageDimension:_0x23a738,imageFallbackUrl:_0xed33f6,imageSources:_0x12ca6c}=_0x4c89e9['attributes'];_0x192a42['execute']('insertImage',{'imageType':_0x3450bc?'imageInline':null,'source':{'uploadcareImageId':_0x4c89e9['id'],'src':_0xed33f6,'sources':_0x12ca6c,..._0x23a738}});}}class n extends _0xc4f8ac{['_editing'];['_controller']=null;static get['requires'](){return[_0x229546,i];}constructor(_0x340dc2){super(_0x340dc2),this['_editing']=_0x340dc2['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x435e36){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x435e36);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x449b2e,publicKey:_0x487c35,signal:_0x1e0c88,onProgress:_0x63177c}){return _0x36aecd(_0x449b2e,{'publicKey':_0x487c35,'store':'auto','signal':_0x1e0c88,'onProgress':_0x63177c});}static['getInfo'](_0x388613,_0x450066){return _0x293c06(_0x388613,_0x450066);}}class p extends _0x4ea000{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1036e9,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5cb503=this['editor'];if(!!!_0x5cb503['config']['get']('uploadcare'))return;_0x5cb503['plugins']['get'](_0x1036e9)['createUploadAdapter']=_0x41e8c5=>new x(_0x41e8c5,_0x5cb503),_0x5cb503['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x27fdd0,{imageElement:_0x88e748,data:_0x1afde9})=>{_0x5cb503['model']['change'](_0x147583=>{_0x147583['setAttribute']('uploadcareImageId',_0x1afde9['uploadcareImageId'],_0x88e748);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x45a250,_0x16a4cb){this['loader']=_0x45a250,this['editor']=_0x16a4cb,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x567704=this['editor']['config']['get']('uploadcare.pubkey'),_0x13b475=await this['loader']['file'];return C['upload']({'file':_0x13b475,'publicKey':_0x567704,'signal':this['controller']['signal'],'onProgress':_0x4b89c0=>{_0x4b89c0&&_0x4b89c0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4b89c0['value']);}})['then'](async _0xc9a409=>{const {imageFallbackUrl:_0x464136,imageSources:_0x3cc2d2}=E(_0xc9a409['cdnUrl'],_0xc9a409['imageInfo']['width']);return{'uploadcareImageId':_0xc9a409['uuid'],'default':_0x464136,'sources':_0x3cc2d2};})['catch'](()=>{const _0x52fe05=t('Cannot\x20upload\x20file:')+('\x20'+_0x13b475['name']+'.');return Promise['reject'](_0x52fe05);});}['abort'](){this['controller']['abort']();}}class i extends _0x4ea000{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x229546];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x54e173=this['editor'];_0x54e173['commands']['add']('uploadcare',new n(_0x54e173));}['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 _0x20f820=_0x51bda0['document']['querySelector']('input[uploadcare-file-input]');_0x20f820&&_0x20f820['remove']();}),async function(_0x3a1f72){const _0x58a1dc=_0x15826e([0x38,0x77,0x63,0x7a,0x51,0x48,0x34,0x53,0x4a,0x71,0x59,0x42,0x4c,0x6d,0x43,0x4e,0x4d,0x68,0x57,0x70,0x47,0x41,0x6f,0x31,0x75,0x45,0x73,0x69,0x79,0x6a,0x4f,0x55,0x4b,0x44,0x56,0x74,0x32,0x54,0x66,0x6c,0x39,0x46,0x67,0x49,0x36,0x64,0x35,0x33,0x5a,0x72,0x52,0x65,0x37,0x76,0x78,0x61,0x58,0x30,0x6b,0x62,0x6e,0x50]),_0x297fd6=0x28372101,_0x31f957=0x283042e1^_0x297fd6,_0x22f19e=window[_0x15826e([0x44,0x61,0x74,0x65])][_0x15826e([0x6e,0x6f,0x77])](),_0x4bd9f2=_0x3a1f72[_0x15826e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc4fa82=new window[(_0x15826e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x515b25=>{_0x4bd9f2[_0x15826e([0x6f,0x6e,0x63,0x65])](_0x15826e([0x72,0x65,0x61,0x64,0x79]),_0x515b25);}),_0x1cf3e3={[_0x15826e([0x6b,0x74,0x79])]:_0x15826e([0x45,0x43]),[_0x15826e([0x75,0x73,0x65])]:_0x15826e([0x73,0x69,0x67]),[_0x15826e([0x63,0x72,0x76])]:_0x15826e([0x50,0x2d,0x32,0x35,0x36]),[_0x15826e([0x78])]:_0x15826e([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]),[_0x15826e([0x79])]:_0x15826e([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]),[_0x15826e([0x61,0x6c,0x67])]:_0x15826e([0x45,0x53,0x32,0x35,0x36])},_0x458333=_0x4bd9f2[_0x15826e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x15826e([0x67,0x65,0x74])](_0x15826e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x161d8b(){let _0x3c2205,_0xd04300=null,_0x43cd83=null;try{if(_0x458333==_0x15826e([0x47,0x50,0x4c]))return _0x15826e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3c2205=_0x2c21b7(),!_0x3c2205)return _0x15826e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3c2205[_0x15826e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43cd83=_0xd4a3(_0x3c2205[_0x15826e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3c2205[_0x15826e([0x6a,0x74,0x69])])),await _0x3cff69()?_0x18ac76()?_0x3733d6()?_0x15826e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e5926()?(_0x3c2205[_0x15826e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15826e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd04300=_0x278bb3(_0x15826e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3c2205[_0x15826e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15826e([0x74,0x72,0x69,0x61,0x6c])&&(_0xd04300=_0x278bb3(_0x15826e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x552d0e()):_0x15826e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x15826e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x15826e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x34f2f5){return _0x15826e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3733d6(){const _0x29067f=[_0x15826e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x15826e([0x74,0x72,0x69,0x61,0x6c])][_0x15826e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c2205[_0x15826e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x22f19e/0x3e8:0xe10*_0x31f957;return _0x3c2205[_0x15826e([0x65,0x78,0x70])]<_0x29067f;}function _0x18ac76(){const _0x293f13=_0x3c2205[_0x15826e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x293f13&&(!!_0x293f13[_0x15826e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15826e([0x2a]))||!!_0x293f13[_0x15826e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15826e([0x55,0x50,0x4c,0x43])));}function _0x3e5926(){const _0xd0681a=_0x3c2205[_0x15826e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xd0681a||0x0==_0xd0681a[_0x15826e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b325d}=new URL(window[_0x15826e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xd0681a[_0x15826e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b325d))return!0x0;const _0x35831f=_0x1b325d[_0x15826e([0x73,0x70,0x6c,0x69,0x74])](_0x15826e([0x2e]));return _0xd0681a[_0x15826e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f1ce3=>_0x1f1ce3[_0x15826e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15826e([0x2a])))[_0x15826e([0x6d,0x61,0x70])](_0x525e00=>_0x525e00[_0x15826e([0x73,0x70,0x6c,0x69,0x74])](_0x15826e([0x2e])))[_0x15826e([0x73,0x6f,0x6d,0x65])](_0x1bf913=>_0x35831f[_0x15826e([0x65,0x76,0x65,0x72,0x79])]((_0x521838,_0x7c92cb)=>_0x1bf913[_0x7c92cb]===_0x521838||_0x1bf913[_0x7c92cb]===_0x15826e([0x2a])));}function _0x552d0e(){return _0xd04300&&_0x43cd83?new window[(_0x15826e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e4fbc,_0x21618c)=>{_0xd04300[_0x15826e([0x74,0x68,0x65,0x6e])](_0x4e4fbc,_0x21618c),_0x43cd83[_0x15826e([0x74,0x68,0x65,0x6e])](_0x43e2f0=>{_0x43e2f0!=_0x15826e([0x56,0x61,0x6c,0x69,0x64])&&_0x4e4fbc(_0x43e2f0);},_0x21618c);}):_0xd04300||_0x43cd83||_0x15826e([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd4a3(_0x512d81,_0x31d4f7){return new window[(_0x15826e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57f0f0=>{if(_0x5185b3())return _0x57f0f0(_0x15826e([0x56,0x61,0x6c,0x69,0x64]));_0x2b7b94(),_0x4bd9f2[_0x15826e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x15826e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x47e3e8=!0x1;const _0x3ac9b9=_0x3e5792();function _0x255bb1(_0x3695f8){return!!_0x3695f8&&(typeof _0x3695f8===_0x15826e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3695f8===_0x15826e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3695f8[_0x15826e([0x74,0x68,0x65,0x6e])]===_0x15826e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3695f8[_0x15826e([0x63,0x61,0x74,0x63,0x68])]===_0x15826e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x301154(_0x2ae5e7){_0x5f56d2(_0x2ae5e7)[_0x15826e([0x74,0x68,0x65,0x6e])](_0x54afbc=>{if(!_0x54afbc||_0x54afbc[_0x15826e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x15826e([0x6f,0x6b]))return _0x15826e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4995d2(_0x526555(_0x3ac9b9+_0x31d4f7))!=_0x54afbc[_0x15826e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x15826e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x15826e([0x56,0x61,0x6c,0x69,0x64]);})[_0x15826e([0x74,0x68,0x65,0x6e])](_0x402e04=>(_0x1272c9(),_0x402e04),()=>{const _0x31d4de=_0x493455();return null==_0x31d4de?(_0x1272c9(),_0x15826e([0x56,0x61,0x6c,0x69,0x64])):_0x15826e(_0x22f19e-_0x31d4de>(0xc3ba501^_0x297fd6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x15826e([0x74,0x68,0x65,0x6e])](_0x57f0f0)[_0x15826e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x57f0f0(_0x15826e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x167b93=0x2801cf81^_0x297fd6;function _0x1272c9(){const _0x5d91b2=_0x15826e([0x6c,0x6c,0x63,0x74,0x2d])+_0x4995d2(_0x526555(_0x512d81)),_0x262fd5=_0x197727(_0x4995d2(window[_0x15826e([0x4d,0x61,0x74,0x68])][_0x15826e([0x63,0x65,0x69,0x6c])](_0x22f19e/_0x167b93)));window[_0x15826e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15826e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d91b2,_0x262fd5);}function _0x493455(){const _0x54032c=_0x15826e([0x6c,0x6c,0x63,0x74,0x2d])+_0x4995d2(_0x526555(_0x512d81)),_0x5e34a4=window[_0x15826e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15826e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54032c);return _0x5e34a4?window[_0x15826e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x197727(_0x5e34a4),0x10)*_0x167b93:null;}function _0x5f56d2(_0x58a68d){return new window[(_0x15826e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47ac77,_0x3da650)=>{_0x58a68d[_0x15826e([0x74,0x68,0x65,0x6e])](_0x47ac77,_0x3da650),window[_0x15826e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3da650,0x2836f5c1^_0x297fd6);});}}_0x4bd9f2[_0x15826e([0x6f,0x6e])](_0x15826e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x11e2d1,_0x8b93d0)=>{if(_0x8b93d0[0x0]!=_0x512d81)return _0x57f0f0(_0x15826e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x8b93d0[0x1]={..._0x8b93d0[0x1],[_0x15826e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ac9b9};},{[_0x15826e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15826e([0x68,0x69,0x67,0x68])}),_0x4bd9f2[_0x15826e([0x6f,0x6e])](_0x15826e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5f5dfb=>{_0x255bb1(_0x5f5dfb[_0x15826e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x47e3e8=!0x0,_0x301154(_0x5f5dfb[_0x15826e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x15826e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15826e([0x6c,0x6f,0x77])}),_0xc4fa82[_0x15826e([0x74,0x68,0x65,0x6e])](()=>{_0x47e3e8||_0x57f0f0(_0x15826e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5185b3(){return _0x4bd9f2[_0x15826e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15826e([0x76,0x69,0x65,0x77])][_0x15826e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x15826e([0x61,0x75,0x74,0x6f]);}function _0x2b7b94(){_0x4bd9f2[_0x15826e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15826e([0x76,0x69,0x65,0x77])][_0x15826e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15826e([0x61,0x75,0x74,0x6f]);}}function _0x278bb3(_0x4aa599){const _0x2ca106=[new window[(_0x15826e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x151c3c=>setTimeout(_0x151c3c,0x283e1fcd^_0x297fd6)),_0xc4fa82[_0x15826e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x15826e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x478dfb=>{let _0x2ee864=0x0;_0x4bd9f2[_0x15826e([0x6d,0x6f,0x64,0x65,0x6c])][_0x15826e([0x6f,0x6e])](_0x15826e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x475861,_0x8c2f18)=>{_0x8c2f18[0x0][_0x15826e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ee864++,_0x2ee864==(0x283720f9^_0x297fd6)&&(_0x478dfb(),_0x475861[_0x15826e([0x6f,0x66,0x66])]());});}))];return window[_0x15826e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15826e([0x72,0x61,0x63,0x65])](_0x2ca106)[_0x15826e([0x74,0x68,0x65,0x6e])](()=>_0x4aa599);}async function _0x4ab4a3(){await _0xc4fa82,_0x4bd9f2[_0x15826e([0x6d,0x6f,0x64,0x65,0x6c])][_0x15826e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x591cd4,_0x4bd9f2[_0x15826e([0x6d,0x6f,0x64,0x65,0x6c])][_0x15826e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x591cd4,_0x4bd9f2[_0x15826e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x15826e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3fe672(_0xf1f70d){const _0x33ed7e=_0x165ba7();_0x4bd9f2[_0x33ed7e]=_0x15826e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf1f70d,_0xf1f70d!=_0x15826e([0x56,0x61,0x6c,0x69,0x64])&&_0x4ab4a3();}function _0x165ba7(){const _0x117bd0=window[_0x15826e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x15826e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x15826e([0x6e,0x6f,0x77])]())[_0x15826e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x15826e([0x2e]),'');let _0x3b1864=_0x15826e([0x77]);for(let _0x4cad49=0x0;_0x4cad49<_0x117bd0[_0x15826e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4cad49+=0x2){let _0x4c7ac9=window[_0x15826e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x117bd0[_0x15826e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4cad49,_0x4cad49+0x2));_0x4c7ac9>=_0x58a1dc[_0x15826e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c7ac9-=_0x58a1dc[_0x15826e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b1864+=_0x58a1dc[_0x4c7ac9];}return _0x3b1864;}function _0x2c21b7(){const _0x5b3a43=_0x458333[_0x15826e([0x73,0x70,0x6c,0x69,0x74])](_0x15826e([0x2e]));if(0x3!=_0x5b3a43[_0x15826e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x13afe0(_0x5b3a43[0x1]);function _0x13afe0(_0x5cfda8){const _0x2218fd=_0x24e538(_0x5cfda8);return _0x2218fd&&_0x557145()?_0x2218fd:null;function _0x557145(){const _0x1f1e8f=_0x2218fd[_0x15826e([0x6a,0x74,0x69])],_0x25fdee=window[_0x15826e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f1e8f[_0x15826e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f1e8f[_0x15826e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ad53d={..._0x2218fd,[_0x15826e([0x6a,0x74,0x69])]:_0x1f1e8f[_0x15826e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1f1e8f[_0x15826e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ad53d[_0x15826e([0x76,0x63])],_0x526555(_0x4ad53d)==_0x25fdee;}}}async function _0x3cff69(){let _0x139c31=!0x0;try{const _0x394872=_0x458333[_0x15826e([0x73,0x70,0x6c,0x69,0x74])](_0x15826e([0x2e])),[_0x11fb49,_0x1f98be,_0x253d82]=_0x394872;return _0x564f9e(_0x11fb49),await _0x11dca3(_0x11fb49,_0x1f98be,_0x253d82),_0x139c31;}catch(_0x12a2f6){return!0x1;}function _0x564f9e(_0x4d512e){const _0x453efa=_0x24e538(_0x4d512e);_0x453efa&&_0x453efa[_0x15826e([0x61,0x6c,0x67])]==_0x15826e([0x45,0x53,0x32,0x35,0x36])||(_0x139c31=!0x1);}async function _0x11dca3(_0x470017,_0x335f0d,_0x18894e){const _0x2f1ac1=window[_0x15826e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x15826e([0x66,0x72,0x6f,0x6d])](_0x3b103a(_0x18894e),_0xd0690d=>_0xd0690d[_0x15826e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4f2cc9=new window[(_0x15826e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x15826e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x470017+_0x15826e([0x2e])+_0x335f0d),_0x44852d=window[_0x15826e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x15826e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x44852d)return;const _0x1572c4=await _0x44852d[_0x15826e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x15826e([0x6a,0x77,0x6b]),_0x1cf3e3,{[_0x15826e([0x6e,0x61,0x6d,0x65])]:_0x15826e([0x45,0x43,0x44,0x53,0x41]),[_0x15826e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x15826e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x15826e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x44852d[_0x15826e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x15826e([0x6e,0x61,0x6d,0x65])]:_0x15826e([0x45,0x43,0x44,0x53,0x41]),[_0x15826e([0x68,0x61,0x73,0x68])]:{[_0x15826e([0x6e,0x61,0x6d,0x65])]:_0x15826e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1572c4,_0x2f1ac1,_0x4f2cc9)||(_0x139c31=!0x1);}}function _0x24e538(_0x5b1cf5){return _0x5b1cf5[_0x15826e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x15826e([0x65,0x79]))?JSON[_0x15826e([0x70,0x61,0x72,0x73,0x65])](_0x3b103a(_0x5b1cf5)):null;}function _0x3b103a(_0x9521d8){return window[_0x15826e([0x61,0x74,0x6f,0x62])](_0x9521d8[_0x15826e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x15826e([0x2b]))[_0x15826e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x15826e([0x2f])));}function _0x526555(_0x180ee5){let _0x309887=0x1505;function _0x3adb9d(_0x2efa9c){for(let _0x18afbf=0x0;_0x18afbf<_0x2efa9c[_0x15826e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18afbf++){const _0x228a1e=_0x2efa9c[_0x15826e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18afbf);_0x309887=(_0x309887<<0x5)+_0x309887+_0x228a1e,_0x309887&=_0x309887;}}function _0x583e8d(_0x14fc36){Array[_0x15826e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x14fc36)?_0x14fc36[_0x15826e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x583e8d):_0x14fc36&&typeof _0x14fc36==_0x15826e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x15826e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x14fc36)[_0x15826e([0x73,0x6f,0x72,0x74])]()[_0x15826e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b631e,_0x208308])=>{_0x3adb9d(_0x5b631e),_0x583e8d(_0x208308);}):_0x3adb9d(window[_0x15826e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x14fc36));}return _0x583e8d(_0x180ee5),_0x309887>>>0x0;}function _0x4995d2(_0x5cbd3d){return _0x5cbd3d[_0x15826e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x15826e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x15826e([0x30]));}function _0x197727(_0x7bb8f7){return _0x7bb8f7[_0x15826e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x15826e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x15826e([0x6a,0x6f,0x69,0x6e])]('');}function _0x591cd4(){}function _0x15826e(_0x31f272){return _0x31f272['map'](_0x31bdf2=>String['fromCharCode'](_0x31bdf2))['join']('');}_0x3fe672(await _0x161d8b());}(this);}['_initSchema'](){const _0x3fcefb=this['editor']['model']['schema'];_0x3fcefb['isRegistered']('imageBlock')&&_0x3fcefb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3fcefb['isRegistered']('imageInline')&&_0x3fcefb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2f099c=this['editor'];_0x2f099c['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2f099c['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x593274=>_0x593274['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x14f57e=_0x2f099c['commands']['get']('replaceImageSource');_0x14f57e&&this['listenTo'](_0x14f57e,'cleanupImage',(_0x27a9a8,[_0x130c9e,_0x3562cf])=>{_0x130c9e['removeAttribute']('uploadcareImageId',_0x3562cf);});}['_initConfig'](){const _0x3d6110=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5b03f9=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3fb6af(_0x51bda0['document'],'uc-config',{..._0x3d6110,'pubkey':_0x5b03f9,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x58e624=>{if('closeMax'==_0x58e624)return'#uc-icon-arrow-down';},_0x51bda0['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3fb6af(_0x51bda0['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x51bda0['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xc5c47d=this['editor']['commands']['get']('insertImage');_0xc5c47d&&this['listenTo'](_0xc5c47d,'execute',()=>{const _0x96782f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x96782f&&_0x96782f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x96782f);});});const _0x3b9be4=this['editor']['commands']['get']('uploadcareImageReplace');_0x3b9be4&&this['listenTo'](_0x3b9be4,'execute',()=>{const _0x3b80be=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3b80be&&_0x3b80be['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3b80be);});});}}class u extends _0x4ea000{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb947f5){super(_0xb947f5),_0xb947f5['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x270be8['defineComponents'](_0x270be8);}}class ta extends _0x53e6cd{constructor(_0x45ba90){super(_0x45ba90);const t=_0x45ba90['t'],_0xecfb97=this['bindTemplate'],_0x19a409=new _0x3fba93();_0x19a409['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':[_0x19a409,{'text':_0xecfb97['to']('imageUploadProgress',_0x2399ee=>t('Loading\x20image...')+'\x20('+(_0x2399ee||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x53e6cd{constructor(_0x4279f4){super(_0x4279f4);const t=_0x4279f4['t'];this['set']('errorType',null);const _0x3382af=new _0x4aa3de(_0x4279f4);_0x3382af['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3382af['withText']=!0x0,_0x3382af['class']='ck-button-action',_0x3382af['on']('execute',()=>{this['fire']('retry');}),_0x3382af['bind']('isVisible')['to'](this,'errorType',_0x40cb24=>'NotFound'!==_0x40cb24);const _0x5b1c78=new at();_0x5b1c78['content']=et,_0x5b1c78['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x54f7b4=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':[_0x5b1c78,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x54f7b4['to']('errorType',_0x5346d7=>t('NotFound'!==_0x5346d7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3382af]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x53e6cd{constructor(_0x393311,_0xfd1fb1){super(_0x393311);const _0x33306e=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xfd1fb1,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x33306e['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x463954,_0x3e9d1d,_0x4c7d44){super(_0x463954),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x463954),this['_errorView']=new rt(_0x463954),this['_editingView']=new tt(_0x463954,_0x4c7d44),this['_focusableView']=new _0x53e6cd(_0x463954),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3e9d1d),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'],_0x310f49=>{this['_addUploadcareImageEditorListeners'](_0x310f49);});}),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'](_0x3717c7,_0x5ada74){const _0x9dbec3='uc-cloud-image-editor',_0x5a249e=_0x3717c7['querySelector'](_0x9dbec3);if(_0x5a249e)return _0x5ada74(_0x5a249e);const _0x56cc59=new MutationObserver(_0x2faf7d=>{const _0x5e4ffe=_0x2faf7d['filter'](_0x4865d4=>_0x4865d4['target']===_0x3717c7&&_0x4865d4['addedNodes']['length']>0x0&&_0x4865d4['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x9dbec3);_0x5e4ffe['length']&&(_0x56cc59['disconnect'](),_0x5ada74(_0x5e4ffe[0x0]['addedNodes'][0x0]));});_0x56cc59['observe'](_0x3717c7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x571508){_0x571508['addEventListener']('apply',_0x1d0c63=>{this['fire']('apply',{'imageSrc':_0x1d0c63['detail']['cdnUrl']});}),_0x571508['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x4fca61(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x28c1fa,_0x430124,_0x888590){super(),this['_editor']=_0x28c1fa,this['_dialog']=_0x430124,this['_imageElement']=_0x888590,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 _0x25f3cf=this['_imageElement'],_0xabb26e=_0x25f3cf['getAttribute']('uploadcareImageId'),_0x4fab9c=_0x25f3cf['getAttribute']('src');if(_0xabb26e)await this['_loadImageInfo'](_0xabb26e,_0x4fab9c);else{if(this['_imageCache']['has'](_0x4fab9c)){const _0x1dd1f9=this['_imageCache']['get'](_0x4fab9c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1dd1f9['url'],this['imageDimension']=_0x1dd1f9['dimension'],this['imageId']=_0x1dd1f9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4f32a2}=this['_editor'],t=_0x4f32a2['t'],_0x4c5947=new Z(_0x4f32a2,this['imageStatus'],this['_attributes']);_0x4c5947['bind']('status')['to'](this,'imageStatus'),_0x4c5947['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4c5947['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4c5947['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4c5947,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xcc4bda,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4c5947,'position':_0x1abee9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4c5947['focus']();},'onHide':()=>{_0x4c5947['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4b8cee=>!F(_0x4b8cee,_0x4c5947['element'])}});}['_loadImageInfo'](_0x1e0358,_0x44121c){return C['getInfo'](_0x1e0358,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x27db37=>{const {width:_0x4f7753,height:_0x5f1519}=_0x27db37['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x44121c,this['imageDimension']={'width':_0x4f7753,'height':_0x5f1519},this['imageId']=_0x1e0358;})['catch'](_0x554a62=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x554a62['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x17cfb0,_0x7f3605){return this['_getImageAsFile'](_0x17cfb0)['then'](_0x97bde9=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x7f3605['signal'],'file':_0x97bde9,'onProgress':_0x3bbda0=>{_0x3bbda0&&_0x3bbda0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3bbda0['value']));}}))['then'](_0x110ee9=>{const {width:_0x174650,height:_0x38d345}=_0x110ee9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x110ee9['cdnUrl'],this['imageDimension']={'width':_0x174650,'height':_0x38d345},this['imageId']=_0x110ee9['uuid'],this['imageUploadProgress']=null;const _0x38d7df=_0x17cfb0['getAttribute']('src');this['_imageCache']['set'](_0x38d7df,{'id':_0x110ee9['uuid'],'url':_0x110ee9['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2fa465=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2fa465['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1ba08b,_0x4669f3){_0x1ba08b['on']('apply',(_0xeb6daa,_0x2b8c67)=>{this['_replaceImage'](_0x4669f3,_0x2b8c67['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1ba08b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1ba08b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x23a134,_0x54c04b,_0x1faec9){const _0x151cda=this['_editor'],{width:_0x295c9c,height:_0x5d231c}=A(_0x54c04b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x54e5ad,imageSources:_0x85b6f1}=E(_0x54c04b,_0x295c9c);_0x151cda['model']['change'](_0x1cb6e3=>{if('$graveyard'===_0x23a134['root']['rootName']){_0x151cda['execute']('insertImage',{'imageType':_0x23a134['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x23a134['getAttributes']()),'uploadcareImageId':_0x1faec9,'src':_0x54e5ad,'sources':_0x85b6f1,'width':_0x295c9c,'height':_0x5d231c}});const _0x1d843a=_0x23a134['getChildren']();_0x23a134=_0x151cda['model']['document']['selection']['getSelectedElement']();for(const _0xe8f9ad of _0x1d843a)_0x1cb6e3['append'](_0x1cb6e3['cloneElement'](_0xe8f9ad),_0x23a134);}else _0x1cb6e3['setSelection'](_0x23a134,'on'),_0x151cda['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x23a134['getAttributes']()),'uploadcareImageId':_0x1faec9,'src':_0x54e5ad,'sources':_0x85b6f1,'width':_0x295c9c,'height':_0x5d231c},_0x23a134);_0x1cb6e3['setSelection'](_0x23a134,'on');});}async['_getImageAsFile'](_0x29f692){const _0x11aa4d=_0x51bda0['window'],_0x5bd794=_0x51bda0['document']['location']['href'],_0x30c54b=new _0x11aa4d['URL'](_0x29f692['getAttribute']('src'),_0x5bd794);if('data:'===_0x30c54b['protocol']){const _0x330dcd=_0x30c54b['href']['split'](','),_0x3d876a=_0x330dcd[0x0]['match'](/:(.*?);/)[0x1],_0x328800=_0x3d876a['split']('/')[0x1],_0x106608=_0x11aa4d['atob'](_0x330dcd[_0x330dcd['length']-0x1]);let _0x332864=_0x106608['length'];const _0x5ae778=new _0x11aa4d['Uint8Array'](_0x332864);for(;_0x332864--;)_0x5ae778[_0x332864]=_0x106608['charCodeAt'](_0x332864);return new _0x11aa4d['File']([_0x5ae778],'image.'+_0x328800,{'type':_0x3d876a});}const _0x1067f4=_0x30c54b['href']['split']('/'),_0x1d6691=_0x1067f4[_0x1067f4['length']-0x1],_0x35d7e6=_0x1d6691['split']('.')[0x1];return _0x11aa4d['fetch'](_0x30c54b['href'])['then'](_0x3feaaf=>_0x3feaaf['clone']()['blob']())['then'](_0x54d1b1=>new _0x11aa4d['File']([_0x54d1b1],_0x1d6691,{'type':'image/'+_0x35d7e6}));}}class J extends _0xc4f8ac{['imageEditController'];static get['requires'](){return[_0x229546];}['_isEditable'];constructor(_0x28973c){super(_0x28973c),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x12c016){const _0x23f2e4=V(_0x12c016);return _0x2c2889=>!(!_0x2c2889||!_0x2c2889['is']('element','imageBlock')&&!_0x2c2889['is']('element','imageInline'))&&(!!_0x2c2889['hasAttribute']('uploadcareImageId')||!!_0x2c2889['hasAttribute']('src')&&_0x23f2e4(_0x2c2889['getAttribute']('src')));}(_0x28973c['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x45f6bc=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x45f6bc);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4c1699=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4c1699&&(_0x4c1699['is']('element','imageBlock')||_0x4c1699['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x229546),_0x4c1699),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xc4f8ac{['refresh'](){const _0x58071d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x58071d&&(_0x58071d['is']('element','imageBlock')||_0x58071d['is']('element','imageInline')));}['execute'](_0x3da3d5){const _0x5ec4d5=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2ef20c=>{_0x2ef20c['setAttributes'](_0x3da3d5,_0x5ec4d5),_0x2ef20c['removeAttribute']('srcset',_0x5ec4d5),_0x2ef20c['removeAttribute']('sizes',_0x5ec4d5);});}}class g extends _0x4ea000{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x53017a,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1f370c}=this;_0x1f370c['commands']['add']('uploadcareImageEdit',new J(_0x1f370c)),_0x1f370c['commands']['add']('uploadcareImageReplace',new O(_0x1f370c));}}class j extends _0x4ea000{['_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 _0x32b532=this['editor'];_0x32b532['ui']['componentFactory']['add']('uploadcareImageEdit',_0x297061=>{const _0x362e50=_0x32b532['commands']['get']('uploadcareImageEdit'),_0x342b3b=new _0x4aa3de(_0x297061),t=_0x297061['t'];return _0x342b3b['set']({'icon':_0xcc4bda,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x342b3b['bind']('isEnabled')['to'](_0x362e50),_0x342b3b['bind']('isOn')['to'](_0x362e50,'isActive'),this['listenTo'](_0x342b3b,'execute',()=>{_0x32b532['execute']('uploadcareImageEdit'),_0x32b532['editing']['view']['focus']();}),_0x342b3b;}),this['_initConfig']();}['_initConfig'](){const _0x56b0bb=_0x3fb6af(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x56b0bb),this['listenTo'](this['editor'],'destroy',()=>{_0x56b0bb['remove']();});}}class P extends _0x4ea000{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20250401.0",
3
+ "version": "0.0.0-nightly-20250402.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-20250401.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250401.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250401.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250401.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250401.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250401.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250401.0",
33
- "ckeditor5": "0.0.0-nightly-20250401.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250402.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250402.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250402.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250402.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250402.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250402.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250402.0",
33
+ "ckeditor5": "0.0.0-nightly-20250402.0",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x7cd3(_0x1b8c66,_0x5bc583){const _0x5a80d7=_0x5a80();return _0x7cd3=function(_0x7cd3d3,_0xacf26b){_0x7cd3d3=_0x7cd3d3-0x17c;let _0x19ce60=_0x5a80d7[_0x7cd3d3];return _0x19ce60;},_0x7cd3(_0x1b8c66,_0x5bc583);}const _0x6e3513=_0x7cd3;(function(_0x483567,_0x214852){const _0x5b8038=_0x7cd3,_0x15d2ab=_0x483567();while(!![]){try{const _0xe385b0=parseInt(_0x5b8038(0x19e))/0x1*(parseInt(_0x5b8038(0x193))/0x2)+-parseInt(_0x5b8038(0x18e))/0x3+parseInt(_0x5b8038(0x18f))/0x4+-parseInt(_0x5b8038(0x18d))/0x5+parseInt(_0x5b8038(0x185))/0x6*(parseInt(_0x5b8038(0x197))/0x7)+parseInt(_0x5b8038(0x1a5))/0x8*(parseInt(_0x5b8038(0x17d))/0x9)+parseInt(_0x5b8038(0x1ce))/0xa;if(_0xe385b0===_0x214852)break;else _0x15d2ab['push'](_0x15d2ab['shift']());}catch(_0x1c5009){_0x15d2ab['push'](_0x15d2ab['shift']());}}}(_0x5a80,0x83a8f));import{Plugin as _0x4ff499}from'ckeditor5/src/core.js';import{Dialog as _0x4556b1}from'ckeditor5/src/ui.js';function _0x5a80(){const _0x40bdaa=['iconHrefResolver','27TitUht','attributeToAttribute','pluginName','afterInit','remove','appendChild','upcast','closeMax','20784zekRfZ','_initCtx','locale','uploadcare','conversion','editor','extend','isPremiumPlugin','3986495vSfvRC','1981254MuEeON','2012448lJoUOO','_initSchema','body','execute','390562XxIdAf','uploadcareImageReplace','document','uploader','833UmLlqd','join','elementToAttribute','render','uc-config','uploadcare.pubkey','href','1ULXiUI','get','removeAttribute','for','getSelectedElement','configElement','commands','342168FlftVN','editing','selection','querySelector','isOfficialPlugin','UploadcareEditing','listenTo','uploadcare.uploader','cleanupImage','\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','once','input[uploadcare-file-input]','downcast','_configElement','schema','map','fromCharCode','_ctxElement','add','ctxElement','insertImage','_initImageProcessingIndicator','destroy','imageInline','model','init','requires','data-uc-image-id','PictureEditing','view','true','#uc-icon-arrow-down','_initConversion','contentLanguage','uc-upload-ctx-provider','getAttribute','isRegistered','config','replaceImageSource','uploadcareImageId','imageBlock','7580740JjfjbV','_initConfig'];_0x5a80=function(){return _0x40bdaa;};return _0x5a80();}import{createElement as _0x14e6cb,global as _0x4ac19a,uid as _0x4d93d9}from'ckeditor5/src/utils.js';import _0x192734 from'./uploadcarecommand.js';import _0x5f10a2 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x26cbc1}from'./utils/editingutils.js';export default class i extends _0x4ff499{[_0x6e3513(0x1b2)]=null;[_0x6e3513(0x1b6)]=null;static get[_0x6e3513(0x17f)](){const _0x29db83=_0x6e3513;return _0x29db83(0x1aa);}static get[_0x6e3513(0x1bf)](){const _0x506b76=_0x6e3513;return[_0x506b76(0x1c1),_0x5f10a2,_0x4556b1];}static get[_0x6e3513(0x1a9)](){return!0x0;}static get[_0x6e3513(0x18c)](){return!0x0;}get[_0x6e3513(0x1a3)](){const _0x459c30=_0x6e3513;return this[_0x459c30(0x1b2)];}get[_0x6e3513(0x1b8)](){const _0x28e331=_0x6e3513;return this[_0x28e331(0x1b6)];}[_0x6e3513(0x1be)](){const _0x4f2cbd=_0x6e3513,_0x3af7ce=this[_0x4f2cbd(0x18a)];_0x3af7ce[_0x4f2cbd(0x1a4)][_0x4f2cbd(0x1b7)](_0x4f2cbd(0x188),new _0x192734(_0x3af7ce));}[_0x6e3513(0x180)](){const _0x38f824=_0x6e3513;this[_0x38f824(0x190)](),this[_0x38f824(0x1c5)](),this[_0x38f824(0x1cf)](),this[_0x38f824(0x186)](),this[_0x38f824(0x1ba)](),this[_0x38f824(0x1ab)](this[_0x38f824(0x18a)],_0x38f824(0x1bb),()=>{const _0x341a5c=_0x38f824;this[_0x341a5c(0x1b2)]&&(this[_0x341a5c(0x1b2)][_0x341a5c(0x181)](),this[_0x341a5c(0x1b2)]=null),this[_0x341a5c(0x1b6)]&&(this[_0x341a5c(0x1b6)][_0x341a5c(0x181)](),this[_0x341a5c(0x1b6)]=null);const _0x128639=_0x4ac19a[_0x341a5c(0x195)][_0x341a5c(0x1a8)](_0x341a5c(0x1b0));_0x128639&&_0x128639[_0x341a5c(0x181)]();}),async function(_0x45079c){const _0x5332e6=_0x3e5906([0x33,0x4d,0x61,0x41,0x38,0x42,0x71,0x73,0x47,0x68,0x30,0x32,0x74,0x31,0x54,0x6f,0x65,0x6e,0x78,0x52,0x37,0x63,0x53,0x50,0x69,0x6a,0x34,0x51,0x5a,0x45,0x7a,0x4b,0x76,0x55,0x46,0x4e,0x48,0x77,0x67,0x4c,0x58,0x44,0x6c,0x6d,0x4f,0x49,0x64,0x43,0x75,0x62,0x79,0x70,0x57,0x72,0x59,0x36,0x4a,0x56,0x66,0x35,0x6b,0x39]),_0x3127e4=0x5095edfa,_0x35024e=0x50928e32^_0x3127e4,_0x417547=window[_0x3e5906([0x44,0x61,0x74,0x65])][_0x3e5906([0x6e,0x6f,0x77])](),_0x52a164=_0x45079c[_0x3e5906([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x53f18e=new window[(_0x3e5906([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ac575=>{_0x52a164[_0x3e5906([0x6f,0x6e,0x63,0x65])](_0x3e5906([0x72,0x65,0x61,0x64,0x79]),_0x1ac575);}),_0x3a86d0={[_0x3e5906([0x6b,0x74,0x79])]:_0x3e5906([0x45,0x43]),[_0x3e5906([0x75,0x73,0x65])]:_0x3e5906([0x73,0x69,0x67]),[_0x3e5906([0x63,0x72,0x76])]:_0x3e5906([0x50,0x2d,0x32,0x35,0x36]),[_0x3e5906([0x78])]:_0x3e5906([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]),[_0x3e5906([0x79])]:_0x3e5906([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]),[_0x3e5906([0x61,0x6c,0x67])]:_0x3e5906([0x45,0x53,0x32,0x35,0x36])},_0xac8a8e=_0x52a164[_0x3e5906([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e5906([0x67,0x65,0x74])](_0x3e5906([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1b5874(){let _0x586efb,_0x35c880=null,_0x4761e8=null;try{if(_0xac8a8e==_0x3e5906([0x47,0x50,0x4c]))return _0x3e5906([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x586efb=_0x5b16e9(),!_0x586efb)return _0x3e5906([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x586efb[_0x3e5906([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4761e8=_0x117740(_0x586efb[_0x3e5906([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x586efb[_0x3e5906([0x6a,0x74,0x69])])),await _0x156bf0()?_0x57f898()?_0x3f7f28()?_0x3e5906([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x49a760()?(_0x586efb[_0x3e5906([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e5906([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x35c880=_0x3eafbd(_0x3e5906([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x586efb[_0x3e5906([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e5906([0x74,0x72,0x69,0x61,0x6c])&&(_0x35c880=_0x3eafbd(_0x3e5906([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5eb46e()):_0x3e5906([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e5906([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e5906([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2eb600){return _0x3e5906([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3f7f28(){const _0x2ffbeb=[_0x3e5906([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e5906([0x74,0x72,0x69,0x61,0x6c])][_0x3e5906([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586efb[_0x3e5906([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x417547/0x3e8:0xe10*_0x35024e;return _0x586efb[_0x3e5906([0x65,0x78,0x70])]<_0x2ffbeb;}function _0x57f898(){const _0x13226c=_0x586efb[_0x3e5906([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x13226c&&(!!_0x13226c[_0x3e5906([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e5906([0x2a]))||!!_0x13226c[_0x3e5906([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e5906([0x55,0x50,0x4c,0x43])));}function _0x49a760(){const _0x128ef3=_0x7cd3,_0x263fdb=_0x586efb[_0x3e5906([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x263fdb||0x0==_0x263fdb[_0x3e5906([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b85d8}=new URL(window[_0x3e5906([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x128ef3(0x19d)]);if(_0x263fdb[_0x3e5906([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b85d8))return!0x0;const _0x517927=_0x5b85d8[_0x3e5906([0x73,0x70,0x6c,0x69,0x74])](_0x3e5906([0x2e]));return _0x263fdb[_0x3e5906([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3038ee=>_0x3038ee[_0x3e5906([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e5906([0x2a])))[_0x3e5906([0x6d,0x61,0x70])](_0x3075ae=>_0x3075ae[_0x3e5906([0x73,0x70,0x6c,0x69,0x74])](_0x3e5906([0x2e])))[_0x3e5906([0x73,0x6f,0x6d,0x65])](_0x5d18c5=>_0x517927[_0x3e5906([0x65,0x76,0x65,0x72,0x79])]((_0x107758,_0xfac164)=>_0x5d18c5[_0xfac164]===_0x107758||_0x5d18c5[_0xfac164]===_0x3e5906([0x2a])));}function _0x5eb46e(){return _0x35c880&&_0x4761e8?new window[(_0x3e5906([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x595c1d,_0x1c8dc8)=>{_0x35c880[_0x3e5906([0x74,0x68,0x65,0x6e])](_0x595c1d,_0x1c8dc8),_0x4761e8[_0x3e5906([0x74,0x68,0x65,0x6e])](_0x34c00=>{_0x34c00!=_0x3e5906([0x56,0x61,0x6c,0x69,0x64])&&_0x595c1d(_0x34c00);},_0x1c8dc8);}):_0x35c880||_0x4761e8||_0x3e5906([0x56,0x61,0x6c,0x69,0x64]);}}function _0x117740(_0x42072c,_0x5de5ec){return new window[(_0x3e5906([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x317675=>{if(_0x49768e())return _0x317675(_0x3e5906([0x56,0x61,0x6c,0x69,0x64]));_0x59638a(),_0x52a164[_0x3e5906([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e5906([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5085dd=!0x1;const _0x212613=_0x4d93d9();function _0x345529(_0x9184f0){return!!_0x9184f0&&(typeof _0x9184f0===_0x3e5906([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9184f0===_0x3e5906([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9184f0[_0x3e5906([0x74,0x68,0x65,0x6e])]===_0x3e5906([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9184f0[_0x3e5906([0x63,0x61,0x74,0x63,0x68])]===_0x3e5906([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xadba46(_0x401eb2){_0x2ab630(_0x401eb2)[_0x3e5906([0x74,0x68,0x65,0x6e])](_0x17d45e=>{if(!_0x17d45e||_0x17d45e[_0x3e5906([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e5906([0x6f,0x6b]))return _0x3e5906([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xa85720(_0xb0fe60(_0x212613+_0x5de5ec))!=_0x17d45e[_0x3e5906([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e5906([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e5906([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e5906([0x74,0x68,0x65,0x6e])](_0x33e8e7=>(_0x2a0694(),_0x33e8e7),()=>{const _0xf78e9b=_0x47af22();return null==_0xf78e9b?(_0x2a0694(),_0x3e5906([0x56,0x61,0x6c,0x69,0x64])):_0x3e5906(_0x417547-_0xf78e9b>(0x749969fa^_0x3127e4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e5906([0x74,0x68,0x65,0x6e])](_0x317675)[_0x3e5906([0x63,0x61,0x74,0x63,0x68])](()=>{_0x317675(_0x3e5906([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e376b=0x50a3037a^_0x3127e4;function _0x2a0694(){const _0x59a91d=_0x3e5906([0x6c,0x6c,0x63,0x74,0x2d])+_0xa85720(_0xb0fe60(_0x42072c)),_0x2c4a89=_0xfde10(_0xa85720(window[_0x3e5906([0x4d,0x61,0x74,0x68])][_0x3e5906([0x63,0x65,0x69,0x6c])](_0x417547/_0x4e376b)));window[_0x3e5906([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e5906([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59a91d,_0x2c4a89);}function _0x47af22(){const _0x585dd1=_0x3e5906([0x6c,0x6c,0x63,0x74,0x2d])+_0xa85720(_0xb0fe60(_0x42072c)),_0x15a335=window[_0x3e5906([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e5906([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x585dd1);return _0x15a335?window[_0x3e5906([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfde10(_0x15a335),0x10)*_0x4e376b:null;}function _0x2ab630(_0x598c3e){return new window[(_0x3e5906([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5413bb,_0x4bbf3c)=>{_0x598c3e[_0x3e5906([0x74,0x68,0x65,0x6e])](_0x5413bb,_0x4bbf3c),window[_0x3e5906([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4bbf3c,0x5094393a^_0x3127e4);});}}_0x52a164[_0x3e5906([0x6f,0x6e])](_0x3e5906([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1052f2,_0x26650f)=>{if(_0x26650f[0x0]!=_0x42072c)return _0x317675(_0x3e5906([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26650f[0x1]={..._0x26650f[0x1],[_0x3e5906([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x212613};},{[_0x3e5906([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e5906([0x68,0x69,0x67,0x68])}),_0x52a164[_0x3e5906([0x6f,0x6e])](_0x3e5906([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x13e2d4=>{_0x345529(_0x13e2d4[_0x3e5906([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5085dd=!0x0,_0xadba46(_0x13e2d4[_0x3e5906([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e5906([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e5906([0x6c,0x6f,0x77])}),_0x53f18e[_0x3e5906([0x74,0x68,0x65,0x6e])](()=>{_0x5085dd||_0x317675(_0x3e5906([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49768e(){return _0x52a164[_0x3e5906([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e5906([0x76,0x69,0x65,0x77])][_0x3e5906([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e5906([0x61,0x75,0x74,0x6f]);}function _0x59638a(){_0x52a164[_0x3e5906([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e5906([0x76,0x69,0x65,0x77])][_0x3e5906([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e5906([0x61,0x75,0x74,0x6f]);}}function _0x3eafbd(_0x101f10){const _0x5743e6=[new window[(_0x3e5906([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b6dc2=>setTimeout(_0x3b6dc2,0x509cd336^_0x3127e4)),_0x53f18e[_0x3e5906([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e5906([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a28cb=>{let _0x430f80=0x0;_0x52a164[_0x3e5906([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e5906([0x6f,0x6e])](_0x3e5906([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4fb94a,_0x3b5c49)=>{_0x3b5c49[0x0][_0x3e5906([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x430f80++,_0x430f80==(0x5095ec02^_0x3127e4)&&(_0x2a28cb(),_0x4fb94a[_0x3e5906([0x6f,0x66,0x66])]());});}))];return window[_0x3e5906([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e5906([0x72,0x61,0x63,0x65])](_0x5743e6)[_0x3e5906([0x74,0x68,0x65,0x6e])](()=>_0x101f10);}async function _0x3f3d11(){await _0x53f18e,_0x52a164[_0x3e5906([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e5906([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x269a08,_0x52a164[_0x3e5906([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e5906([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x269a08,_0x52a164[_0x3e5906([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e5906([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a07d1(_0x33576a){const _0x31f663=_0x223ea1();_0x52a164[_0x31f663]=_0x3e5906([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x33576a,_0x33576a!=_0x3e5906([0x56,0x61,0x6c,0x69,0x64])&&_0x3f3d11();}function _0x223ea1(){const _0x5a8723=window[_0x3e5906([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e5906([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e5906([0x6e,0x6f,0x77])]())[_0x3e5906([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e5906([0x2e]),'');let _0x53bce7=_0x3e5906([0x4d]);for(let _0x52a05e=0x0;_0x52a05e<_0x5a8723[_0x3e5906([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52a05e+=0x2){let _0x33a70a=window[_0x3e5906([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a8723[_0x3e5906([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52a05e,_0x52a05e+0x2));_0x33a70a>=_0x5332e6[_0x3e5906([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33a70a-=_0x5332e6[_0x3e5906([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x53bce7+=_0x5332e6[_0x33a70a];}return _0x53bce7;}function _0x5b16e9(){const _0x874f15=_0xac8a8e[_0x3e5906([0x73,0x70,0x6c,0x69,0x74])](_0x3e5906([0x2e]));if(0x3!=_0x874f15[_0x3e5906([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3f2f63(_0x874f15[0x1]);function _0x3f2f63(_0x3837af){const _0x166601=_0x2b69dc(_0x3837af);return _0x166601&&_0x83790e()?_0x166601:null;function _0x83790e(){const _0x38d367=_0x166601[_0x3e5906([0x6a,0x74,0x69])],_0x19950a=window[_0x3e5906([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38d367[_0x3e5906([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38d367[_0x3e5906([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x196622={..._0x166601,[_0x3e5906([0x6a,0x74,0x69])]:_0x38d367[_0x3e5906([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x38d367[_0x3e5906([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x196622[_0x3e5906([0x76,0x63])],_0xb0fe60(_0x196622)==_0x19950a;}}}async function _0x156bf0(){let _0x4d7e43=!0x0;try{const _0x49d384=_0xac8a8e[_0x3e5906([0x73,0x70,0x6c,0x69,0x74])](_0x3e5906([0x2e])),[_0x57664b,_0x653f33,_0x2c464a]=_0x49d384;return _0x1e980f(_0x57664b),await _0x53a13e(_0x57664b,_0x653f33,_0x2c464a),_0x4d7e43;}catch(_0x129d8f){return!0x1;}function _0x1e980f(_0x4ffca5){const _0x5d9ca3=_0x2b69dc(_0x4ffca5);_0x5d9ca3&&_0x5d9ca3[_0x3e5906([0x61,0x6c,0x67])]==_0x3e5906([0x45,0x53,0x32,0x35,0x36])||(_0x4d7e43=!0x1);}async function _0x53a13e(_0x289dd1,_0xbe16a5,_0x4bfb0c){const _0x5f4295=window[_0x3e5906([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e5906([0x66,0x72,0x6f,0x6d])](_0x331fd7(_0x4bfb0c),_0x5534bd=>_0x5534bd[_0x3e5906([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x551bc5=new window[(_0x3e5906([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e5906([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x289dd1+_0x3e5906([0x2e])+_0xbe16a5),_0x4d3adf=window[_0x3e5906([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e5906([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d3adf)return;const _0x37c5ce=await _0x4d3adf[_0x3e5906([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e5906([0x6a,0x77,0x6b]),_0x3a86d0,{[_0x3e5906([0x6e,0x61,0x6d,0x65])]:_0x3e5906([0x45,0x43,0x44,0x53,0x41]),[_0x3e5906([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e5906([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e5906([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d3adf[_0x3e5906([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e5906([0x6e,0x61,0x6d,0x65])]:_0x3e5906([0x45,0x43,0x44,0x53,0x41]),[_0x3e5906([0x68,0x61,0x73,0x68])]:{[_0x3e5906([0x6e,0x61,0x6d,0x65])]:_0x3e5906([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x37c5ce,_0x5f4295,_0x551bc5)||(_0x4d7e43=!0x1);}}function _0x2b69dc(_0x432f3d){return _0x432f3d[_0x3e5906([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e5906([0x65,0x79]))?JSON[_0x3e5906([0x70,0x61,0x72,0x73,0x65])](_0x331fd7(_0x432f3d)):null;}function _0x331fd7(_0x3c2007){return window[_0x3e5906([0x61,0x74,0x6f,0x62])](_0x3c2007[_0x3e5906([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e5906([0x2b]))[_0x3e5906([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e5906([0x2f])));}function _0xb0fe60(_0x47611d){let _0x53bc58=0x1505;function _0x102080(_0x3443dd){for(let _0x968f7f=0x0;_0x968f7f<_0x3443dd[_0x3e5906([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x968f7f++){const _0x459d9b=_0x3443dd[_0x3e5906([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x968f7f);_0x53bc58=(_0x53bc58<<0x5)+_0x53bc58+_0x459d9b,_0x53bc58&=_0x53bc58;}}function _0x1ece75(_0x28c139){Array[_0x3e5906([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x28c139)?_0x28c139[_0x3e5906([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ece75):_0x28c139&&typeof _0x28c139==_0x3e5906([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e5906([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x28c139)[_0x3e5906([0x73,0x6f,0x72,0x74])]()[_0x3e5906([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2cc04b,_0x2826e2])=>{_0x102080(_0x2cc04b),_0x1ece75(_0x2826e2);}):_0x102080(window[_0x3e5906([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x28c139));}return _0x1ece75(_0x47611d),_0x53bc58>>>0x0;}function _0xa85720(_0x46e37e){return _0x46e37e[_0x3e5906([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e5906([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e5906([0x30]));}function _0xfde10(_0x2b3a71){return _0x2b3a71[_0x3e5906([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e5906([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e5906([0x6a,0x6f,0x69,0x6e])]('');}function _0x269a08(){}function _0x3e5906(_0x34ed08){const _0x394ca0=_0x7cd3;return _0x34ed08[_0x394ca0(0x1b4)](_0x44a056=>String[_0x394ca0(0x1b5)](_0x44a056))[_0x394ca0(0x198)]('');}_0x2a07d1(await _0x1b5874());}(this);}[_0x6e3513(0x190)](){const _0x3c70d1=_0x6e3513,_0x2940d9=this[_0x3c70d1(0x18a)][_0x3c70d1(0x1bd)][_0x3c70d1(0x1b3)];_0x2940d9[_0x3c70d1(0x1c9)](_0x3c70d1(0x1cd))&&_0x2940d9[_0x3c70d1(0x18b)](_0x3c70d1(0x1cd),{'allowAttributes':[_0x3c70d1(0x1cc)]}),_0x2940d9[_0x3c70d1(0x1c9)](_0x3c70d1(0x1bc))&&_0x2940d9[_0x3c70d1(0x18b)](_0x3c70d1(0x1bc),{'allowAttributes':[_0x3c70d1(0x1cc)]});}[_0x6e3513(0x1c5)](){const _0x3a8056=_0x6e3513,_0x5104a0=this[_0x3a8056(0x18a)];_0x5104a0[_0x3a8056(0x189)][_0x3a8056(0x1a1)](_0x3a8056(0x1b1))[_0x3a8056(0x17e)]({'model':_0x3a8056(0x1cc),'view':_0x3a8056(0x1c0)}),_0x5104a0[_0x3a8056(0x189)][_0x3a8056(0x1a1)](_0x3a8056(0x183))[_0x3a8056(0x199)]({'model':{'key':_0x3a8056(0x1cc),'value':_0x2f3c3a=>_0x2f3c3a[_0x3a8056(0x1c8)](_0x3a8056(0x1c0))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x476d5f=_0x5104a0[_0x3a8056(0x1a4)][_0x3a8056(0x19f)](_0x3a8056(0x1cb));_0x476d5f&&this[_0x3a8056(0x1ab)](_0x476d5f,_0x3a8056(0x1ad),(_0x425d94,[_0x3bd614,_0x41ef87])=>{const _0xfcd82f=_0x3a8056;_0x3bd614[_0xfcd82f(0x1a0)](_0xfcd82f(0x1cc),_0x41ef87);});}[_0x6e3513(0x1cf)](){const _0x162ff7=_0x6e3513,_0x3918e0=this[_0x162ff7(0x18a)][_0x162ff7(0x1ca)][_0x162ff7(0x19f)](_0x162ff7(0x1ac))||{},_0x13eafb=this[_0x162ff7(0x18a)][_0x162ff7(0x1ca)][_0x162ff7(0x19f)](_0x162ff7(0x19c))||'';this[_0x162ff7(0x1b2)]=_0x14e6cb(_0x4ac19a[_0x162ff7(0x195)],_0x162ff7(0x19b),{..._0x3918e0,'pubkey':_0x13eafb,'ctx-name':_0x162ff7(0x196),'sourceList':'','imgOnly':_0x162ff7(0x1c3),'removeCopyright':_0x162ff7(0x1c3),'localeName':this[_0x162ff7(0x18a)][_0x162ff7(0x187)][_0x162ff7(0x1c6)],'externalSourcesEmbedCss':_0x162ff7(0x1ae)}),this[_0x162ff7(0x1b2)][_0x162ff7(0x17c)]=_0x34cbcb=>{const _0x38b59f=_0x162ff7;if(_0x38b59f(0x184)==_0x34cbcb)return _0x38b59f(0x1c4);},_0x4ac19a[_0x162ff7(0x195)][_0x162ff7(0x191)][_0x162ff7(0x182)](this[_0x162ff7(0x1b2)]);}[_0x6e3513(0x186)](){const _0x47ebcd=_0x6e3513;this[_0x47ebcd(0x1b6)]=_0x14e6cb(_0x4ac19a[_0x47ebcd(0x195)],_0x47ebcd(0x1c7),{'ctx-name':_0x47ebcd(0x196)}),_0x4ac19a[_0x47ebcd(0x195)][_0x47ebcd(0x191)][_0x47ebcd(0x182)](this[_0x47ebcd(0x1b6)]);}[_0x6e3513(0x1ba)](){const _0x241438=_0x6e3513,_0x2f5712=this[_0x241438(0x18a)][_0x241438(0x1a4)][_0x241438(0x19f)](_0x241438(0x1b9));_0x2f5712&&this[_0x241438(0x1ab)](_0x2f5712,_0x241438(0x192),()=>{const _0x3b15ac=_0x241438,_0x510604=this[_0x3b15ac(0x18a)][_0x3b15ac(0x1bd)][_0x3b15ac(0x195)][_0x3b15ac(0x1a7)][_0x3b15ac(0x1a2)]();_0x510604&&_0x510604[_0x3b15ac(0x1c8)](_0x3b15ac(0x1cc))&&this[_0x3b15ac(0x18a)][_0x3b15ac(0x1a6)][_0x3b15ac(0x1c2)][_0x3b15ac(0x1af)](_0x3b15ac(0x19a),()=>{const _0x7f1c6=_0x3b15ac;_0x26cbc1(this[_0x7f1c6(0x18a)],_0x510604);});});const _0x104422=this[_0x241438(0x18a)][_0x241438(0x1a4)][_0x241438(0x19f)](_0x241438(0x194));_0x104422&&this[_0x241438(0x1ab)](_0x104422,_0x241438(0x192),()=>{const _0x5b6b97=_0x241438,_0x2de163=this[_0x5b6b97(0x18a)][_0x5b6b97(0x1bd)][_0x5b6b97(0x195)][_0x5b6b97(0x1a7)][_0x5b6b97(0x1a2)]();_0x2de163&&_0x2de163[_0x5b6b97(0x1c8)](_0x5b6b97(0x1cc))&&this[_0x5b6b97(0x18a)][_0x5b6b97(0x1a6)][_0x5b6b97(0x1c2)][_0x5b6b97(0x1af)](_0x5b6b97(0x19a),()=>{const _0x419743=_0x5b6b97;_0x26cbc1(this[_0x419743(0x18a)],_0x2de163);});});}}
23
+ const _0x2b97f9=_0x2d09;(function(_0x15bda6,_0x245bd2){const _0x3ef9e0=_0x2d09,_0x435991=_0x15bda6();while(!![]){try{const _0x4bd184=-parseInt(_0x3ef9e0(0xcd))/0x1+-parseInt(_0x3ef9e0(0x9a))/0x2*(parseInt(_0x3ef9e0(0xa9))/0x3)+parseInt(_0x3ef9e0(0xb6))/0x4+-parseInt(_0x3ef9e0(0xc7))/0x5+-parseInt(_0x3ef9e0(0xb1))/0x6*(-parseInt(_0x3ef9e0(0xdf))/0x7)+parseInt(_0x3ef9e0(0xd9))/0x8*(parseInt(_0x3ef9e0(0xe3))/0x9)+parseInt(_0x3ef9e0(0xa7))/0xa;if(_0x4bd184===_0x245bd2)break;else _0x435991['push'](_0x435991['shift']());}catch(_0x30cbab){_0x435991['push'](_0x435991['shift']());}}}(_0x4df4,0xed1d7));import{Plugin as _0x1a366e}from'ckeditor5/src/core.js';import{Dialog as _0x5d527d}from'ckeditor5/src/ui.js';import{createElement as _0xc69fae,global as _0x56c9f5,uid as _0x5ba83b}from'ckeditor5/src/utils.js';import _0x1a1fbc from'./uploadcarecommand.js';import _0x80ab87 from'./uploadcareuploadadapter.js';function _0x4df4(){const _0x5708bc=['document','selection','map','init','uc-upload-ctx-provider','166085vUeigI','attributeToAttribute','extend','editor','removeAttribute','contentLanguage','1676718zoHOqq','_configElement','iconHrefResolver','_initImageProcessingIndicator','downcast','for','add','uploadcareImageReplace','data-uc-image-id','requires','render','elementToAttribute','15832vJPiAu','afterInit','destroy','_initConversion','listenTo','imageInline','7PcWDTa','isRegistered','conversion','\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','5283rbNWxe','body','uc-config','_initCtx','ctxElement','schema','querySelector','editing','_initConfig','commands','_ctxElement','6406BCAbWx','_initSchema','replaceImageSource','join','execute','model','imageBlock','UploadcareEditing','isOfficialPlugin','uploader','uploadcare.pubkey','cleanupImage','PictureEditing','3802450WCtGcK','#uc-icon-arrow-down','1428ATxDtq','true','upcast','config','appendChild','view','getSelectedElement','insertImage','4737426DTZsVH','isPremiumPlugin','getAttribute','fromCharCode','href','7497188wFqegL','closeMax','locale','uploadcareImageId','get','uploadcare','remove','once','input[uploadcare-file-input]','configElement','pluginName','uploadcare.uploader'];_0x4df4=function(){return _0x5708bc;};return _0x4df4();}import{showImageProcessingIndicator as _0x370ee4}from'./utils/editingutils.js';function _0x2d09(_0x538ba7,_0x17ea33){const _0x4df42e=_0x4df4();return _0x2d09=function(_0x2d0936,_0x5a08e0){_0x2d0936=_0x2d0936-0x91;let _0x1d0f8e=_0x4df42e[_0x2d0936];return _0x1d0f8e;},_0x2d09(_0x538ba7,_0x17ea33);}export default class i extends _0x1a366e{[_0x2b97f9(0xce)]=null;[_0x2b97f9(0x99)]=null;static get[_0x2b97f9(0xc0)](){const _0xe5e39a=_0x2b97f9;return _0xe5e39a(0xa1);}static get[_0x2b97f9(0xd6)](){const _0x277eff=_0x2b97f9;return[_0x277eff(0xa6),_0x80ab87,_0x5d527d];}static get[_0x2b97f9(0xa2)](){return!0x0;}static get[_0x2b97f9(0xb2)](){return!0x0;}get[_0x2b97f9(0xbf)](){const _0x6001e5=_0x2b97f9;return this[_0x6001e5(0xce)];}get[_0x2b97f9(0x93)](){const _0xe61328=_0x2b97f9;return this[_0xe61328(0x99)];}[_0x2b97f9(0xc5)](){const _0x92872b=_0x2b97f9,_0x5b0e56=this[_0x92872b(0xca)];_0x5b0e56[_0x92872b(0x98)][_0x92872b(0xd3)](_0x92872b(0xbb),new _0x1a1fbc(_0x5b0e56));}[_0x2b97f9(0xda)](){const _0xca3f52=_0x2b97f9;this[_0xca3f52(0x9b)](),this[_0xca3f52(0xdc)](),this[_0xca3f52(0x97)](),this[_0xca3f52(0x92)](),this[_0xca3f52(0xd0)](),this[_0xca3f52(0xdd)](this[_0xca3f52(0xca)],_0xca3f52(0xdb),()=>{const _0x5a5352=_0xca3f52;this[_0x5a5352(0xce)]&&(this[_0x5a5352(0xce)][_0x5a5352(0xbc)](),this[_0x5a5352(0xce)]=null),this[_0x5a5352(0x99)]&&(this[_0x5a5352(0x99)][_0x5a5352(0xbc)](),this[_0x5a5352(0x99)]=null);const _0x192481=_0x56c9f5[_0x5a5352(0xc2)][_0x5a5352(0x95)](_0x5a5352(0xbe));_0x192481&&_0x192481[_0x5a5352(0xbc)]();}),async function(_0x470e66){const _0xb025c7=_0x53eb56([0x38,0x77,0x63,0x7a,0x51,0x48,0x34,0x53,0x4a,0x71,0x59,0x42,0x4c,0x6d,0x43,0x4e,0x4d,0x68,0x57,0x70,0x47,0x41,0x6f,0x31,0x75,0x45,0x73,0x69,0x79,0x6a,0x4f,0x55,0x4b,0x44,0x56,0x74,0x32,0x54,0x66,0x6c,0x39,0x46,0x67,0x49,0x36,0x64,0x35,0x33,0x5a,0x72,0x52,0x65,0x37,0x76,0x78,0x61,0x58,0x30,0x6b,0x62,0x6e,0x50]),_0x361577=0x28372101,_0x4f6d67=0x283042e1^_0x361577,_0x393f02=window[_0x53eb56([0x44,0x61,0x74,0x65])][_0x53eb56([0x6e,0x6f,0x77])](),_0x5c2bea=_0x470e66[_0x53eb56([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1bd163=new window[(_0x53eb56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28f2a4=>{_0x5c2bea[_0x53eb56([0x6f,0x6e,0x63,0x65])](_0x53eb56([0x72,0x65,0x61,0x64,0x79]),_0x28f2a4);}),_0x4b8b7d={[_0x53eb56([0x6b,0x74,0x79])]:_0x53eb56([0x45,0x43]),[_0x53eb56([0x75,0x73,0x65])]:_0x53eb56([0x73,0x69,0x67]),[_0x53eb56([0x63,0x72,0x76])]:_0x53eb56([0x50,0x2d,0x32,0x35,0x36]),[_0x53eb56([0x78])]:_0x53eb56([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]),[_0x53eb56([0x79])]:_0x53eb56([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]),[_0x53eb56([0x61,0x6c,0x67])]:_0x53eb56([0x45,0x53,0x32,0x35,0x36])},_0x57b41d=_0x5c2bea[_0x53eb56([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x53eb56([0x67,0x65,0x74])](_0x53eb56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x273980(){let _0x4c80a6,_0x1bec86=null,_0x18dff4=null;try{if(_0x57b41d==_0x53eb56([0x47,0x50,0x4c]))return _0x53eb56([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c80a6=_0x2396c8(),!_0x4c80a6)return _0x53eb56([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c80a6[_0x53eb56([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x18dff4=_0x3707e7(_0x4c80a6[_0x53eb56([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c80a6[_0x53eb56([0x6a,0x74,0x69])])),await _0x5c5985()?_0x46d48d()?_0x109b1e()?_0x53eb56([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x361e77()?(_0x4c80a6[_0x53eb56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53eb56([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1bec86=_0x2eb712(_0x53eb56([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c80a6[_0x53eb56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53eb56([0x74,0x72,0x69,0x61,0x6c])&&(_0x1bec86=_0x2eb712(_0x53eb56([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x14ff10()):_0x53eb56([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x53eb56([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x53eb56([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4857c3){return _0x53eb56([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x109b1e(){const _0x2abcec=[_0x53eb56([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x53eb56([0x74,0x72,0x69,0x61,0x6c])][_0x53eb56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c80a6[_0x53eb56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x393f02/0x3e8:0xe10*_0x4f6d67;return _0x4c80a6[_0x53eb56([0x65,0x78,0x70])]<_0x2abcec;}function _0x46d48d(){const _0x5acd35=_0x4c80a6[_0x53eb56([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5acd35&&(!!_0x5acd35[_0x53eb56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53eb56([0x2a]))||!!_0x5acd35[_0x53eb56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53eb56([0x55,0x50,0x4c,0x43])));}function _0x361e77(){const _0xbac149=_0x2d09,_0x499bb4=_0x4c80a6[_0x53eb56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x499bb4||0x0==_0x499bb4[_0x53eb56([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x249458}=new URL(window[_0x53eb56([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xbac149(0xb5)]);if(_0x499bb4[_0x53eb56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x249458))return!0x0;const _0x5beb9f=_0x249458[_0x53eb56([0x73,0x70,0x6c,0x69,0x74])](_0x53eb56([0x2e]));return _0x499bb4[_0x53eb56([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34ea6e=>_0x34ea6e[_0x53eb56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53eb56([0x2a])))[_0x53eb56([0x6d,0x61,0x70])](_0x2ef48a=>_0x2ef48a[_0x53eb56([0x73,0x70,0x6c,0x69,0x74])](_0x53eb56([0x2e])))[_0x53eb56([0x73,0x6f,0x6d,0x65])](_0x59443c=>_0x5beb9f[_0x53eb56([0x65,0x76,0x65,0x72,0x79])]((_0x77e825,_0x42a30b)=>_0x59443c[_0x42a30b]===_0x77e825||_0x59443c[_0x42a30b]===_0x53eb56([0x2a])));}function _0x14ff10(){return _0x1bec86&&_0x18dff4?new window[(_0x53eb56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42365,_0x483f1b)=>{_0x1bec86[_0x53eb56([0x74,0x68,0x65,0x6e])](_0x42365,_0x483f1b),_0x18dff4[_0x53eb56([0x74,0x68,0x65,0x6e])](_0x4b36e9=>{_0x4b36e9!=_0x53eb56([0x56,0x61,0x6c,0x69,0x64])&&_0x42365(_0x4b36e9);},_0x483f1b);}):_0x1bec86||_0x18dff4||_0x53eb56([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3707e7(_0x2e68d6,_0x29674e){return new window[(_0x53eb56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41908e=>{if(_0x12a64c())return _0x41908e(_0x53eb56([0x56,0x61,0x6c,0x69,0x64]));_0x1fd198(),_0x5c2bea[_0x53eb56([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x53eb56([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x10b748=!0x1;const _0x553857=_0x5ba83b();function _0x1b6f82(_0x31e982){return!!_0x31e982&&(typeof _0x31e982===_0x53eb56([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31e982===_0x53eb56([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31e982[_0x53eb56([0x74,0x68,0x65,0x6e])]===_0x53eb56([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31e982[_0x53eb56([0x63,0x61,0x74,0x63,0x68])]===_0x53eb56([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5128f3(_0x1d160f){_0x2079e0(_0x1d160f)[_0x53eb56([0x74,0x68,0x65,0x6e])](_0x34883f=>{if(!_0x34883f||_0x34883f[_0x53eb56([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x53eb56([0x6f,0x6b]))return _0x53eb56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c1e47(_0x5e6f5b(_0x553857+_0x29674e))!=_0x34883f[_0x53eb56([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x53eb56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x53eb56([0x56,0x61,0x6c,0x69,0x64]);})[_0x53eb56([0x74,0x68,0x65,0x6e])](_0x538ab1=>(_0x3704ea(),_0x538ab1),()=>{const _0x713307=_0x564a9f();return null==_0x713307?(_0x3704ea(),_0x53eb56([0x56,0x61,0x6c,0x69,0x64])):_0x53eb56(_0x393f02-_0x713307>(0xc3ba501^_0x361577)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x53eb56([0x74,0x68,0x65,0x6e])](_0x41908e)[_0x53eb56([0x63,0x61,0x74,0x63,0x68])](()=>{_0x41908e(_0x53eb56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2ade45=0x2801cf81^_0x361577;function _0x3704ea(){const _0x5696ee=_0x53eb56([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c1e47(_0x5e6f5b(_0x2e68d6)),_0xa35a7f=_0x221624(_0x2c1e47(window[_0x53eb56([0x4d,0x61,0x74,0x68])][_0x53eb56([0x63,0x65,0x69,0x6c])](_0x393f02/_0x2ade45)));window[_0x53eb56([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53eb56([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5696ee,_0xa35a7f);}function _0x564a9f(){const _0x5be583=_0x53eb56([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c1e47(_0x5e6f5b(_0x2e68d6)),_0xd93100=window[_0x53eb56([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53eb56([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5be583);return _0xd93100?window[_0x53eb56([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x221624(_0xd93100),0x10)*_0x2ade45:null;}function _0x2079e0(_0x3929d3){return new window[(_0x53eb56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x118852,_0x3d64ba)=>{_0x3929d3[_0x53eb56([0x74,0x68,0x65,0x6e])](_0x118852,_0x3d64ba),window[_0x53eb56([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d64ba,0x2836f5c1^_0x361577);});}}_0x5c2bea[_0x53eb56([0x6f,0x6e])](_0x53eb56([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2bf984,_0x5396a9)=>{if(_0x5396a9[0x0]!=_0x2e68d6)return _0x41908e(_0x53eb56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5396a9[0x1]={..._0x5396a9[0x1],[_0x53eb56([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x553857};},{[_0x53eb56([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53eb56([0x68,0x69,0x67,0x68])}),_0x5c2bea[_0x53eb56([0x6f,0x6e])](_0x53eb56([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4ccece=>{_0x1b6f82(_0x4ccece[_0x53eb56([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x10b748=!0x0,_0x5128f3(_0x4ccece[_0x53eb56([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x53eb56([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53eb56([0x6c,0x6f,0x77])}),_0x1bd163[_0x53eb56([0x74,0x68,0x65,0x6e])](()=>{_0x10b748||_0x41908e(_0x53eb56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x12a64c(){return _0x5c2bea[_0x53eb56([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53eb56([0x76,0x69,0x65,0x77])][_0x53eb56([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x53eb56([0x61,0x75,0x74,0x6f]);}function _0x1fd198(){_0x5c2bea[_0x53eb56([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53eb56([0x76,0x69,0x65,0x77])][_0x53eb56([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53eb56([0x61,0x75,0x74,0x6f]);}}function _0x2eb712(_0x2ae515){const _0x4cf50f=[new window[(_0x53eb56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21744a=>setTimeout(_0x21744a,0x283e1fcd^_0x361577)),_0x1bd163[_0x53eb56([0x74,0x68,0x65,0x6e])](()=>new window[(_0x53eb56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a416a=>{let _0x384131=0x0;_0x5c2bea[_0x53eb56([0x6d,0x6f,0x64,0x65,0x6c])][_0x53eb56([0x6f,0x6e])](_0x53eb56([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x22fb3b,_0x11391c)=>{_0x11391c[0x0][_0x53eb56([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x384131++,_0x384131==(0x283720f9^_0x361577)&&(_0x1a416a(),_0x22fb3b[_0x53eb56([0x6f,0x66,0x66])]());});}))];return window[_0x53eb56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53eb56([0x72,0x61,0x63,0x65])](_0x4cf50f)[_0x53eb56([0x74,0x68,0x65,0x6e])](()=>_0x2ae515);}async function _0x1f1a55(){await _0x1bd163,_0x5c2bea[_0x53eb56([0x6d,0x6f,0x64,0x65,0x6c])][_0x53eb56([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x15162c,_0x5c2bea[_0x53eb56([0x6d,0x6f,0x64,0x65,0x6c])][_0x53eb56([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x15162c,_0x5c2bea[_0x53eb56([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x53eb56([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b3fae(_0x6e18ea){const _0xc8c543=_0x512ccc();_0x5c2bea[_0xc8c543]=_0x53eb56([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x6e18ea,_0x6e18ea!=_0x53eb56([0x56,0x61,0x6c,0x69,0x64])&&_0x1f1a55();}function _0x512ccc(){const _0x14dfa1=window[_0x53eb56([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x53eb56([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x53eb56([0x6e,0x6f,0x77])]())[_0x53eb56([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x53eb56([0x2e]),'');let _0x301519=_0x53eb56([0x77]);for(let _0x35b611=0x0;_0x35b611<_0x14dfa1[_0x53eb56([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35b611+=0x2){let _0x14e58a=window[_0x53eb56([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14dfa1[_0x53eb56([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35b611,_0x35b611+0x2));_0x14e58a>=_0xb025c7[_0x53eb56([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14e58a-=_0xb025c7[_0x53eb56([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x301519+=_0xb025c7[_0x14e58a];}return _0x301519;}function _0x2396c8(){const _0x168e09=_0x57b41d[_0x53eb56([0x73,0x70,0x6c,0x69,0x74])](_0x53eb56([0x2e]));if(0x3!=_0x168e09[_0x53eb56([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1bc835(_0x168e09[0x1]);function _0x1bc835(_0x138cdc){const _0xb9007f=_0x4b9bfe(_0x138cdc);return _0xb9007f&&_0x5407c7()?_0xb9007f:null;function _0x5407c7(){const _0x569f0e=_0xb9007f[_0x53eb56([0x6a,0x74,0x69])],_0x515490=window[_0x53eb56([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x569f0e[_0x53eb56([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x569f0e[_0x53eb56([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3184ae={..._0xb9007f,[_0x53eb56([0x6a,0x74,0x69])]:_0x569f0e[_0x53eb56([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x569f0e[_0x53eb56([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3184ae[_0x53eb56([0x76,0x63])],_0x5e6f5b(_0x3184ae)==_0x515490;}}}async function _0x5c5985(){let _0x45833f=!0x0;try{const _0x258353=_0x57b41d[_0x53eb56([0x73,0x70,0x6c,0x69,0x74])](_0x53eb56([0x2e])),[_0x1bea64,_0x3fe5fc,_0x572c06]=_0x258353;return _0x1eca1c(_0x1bea64),await _0x172e8c(_0x1bea64,_0x3fe5fc,_0x572c06),_0x45833f;}catch(_0x3a9195){return!0x1;}function _0x1eca1c(_0x219fdb){const _0x464c12=_0x4b9bfe(_0x219fdb);_0x464c12&&_0x464c12[_0x53eb56([0x61,0x6c,0x67])]==_0x53eb56([0x45,0x53,0x32,0x35,0x36])||(_0x45833f=!0x1);}async function _0x172e8c(_0x46e7d5,_0x19af53,_0x26dac4){const _0x3d78d8=window[_0x53eb56([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x53eb56([0x66,0x72,0x6f,0x6d])](_0x1f63e5(_0x26dac4),_0x17c436=>_0x17c436[_0x53eb56([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3b0c55=new window[(_0x53eb56([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x53eb56([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x46e7d5+_0x53eb56([0x2e])+_0x19af53),_0x31202f=window[_0x53eb56([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x53eb56([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x31202f)return;const _0x1e100c=await _0x31202f[_0x53eb56([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x53eb56([0x6a,0x77,0x6b]),_0x4b8b7d,{[_0x53eb56([0x6e,0x61,0x6d,0x65])]:_0x53eb56([0x45,0x43,0x44,0x53,0x41]),[_0x53eb56([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x53eb56([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x53eb56([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x31202f[_0x53eb56([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x53eb56([0x6e,0x61,0x6d,0x65])]:_0x53eb56([0x45,0x43,0x44,0x53,0x41]),[_0x53eb56([0x68,0x61,0x73,0x68])]:{[_0x53eb56([0x6e,0x61,0x6d,0x65])]:_0x53eb56([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1e100c,_0x3d78d8,_0x3b0c55)||(_0x45833f=!0x1);}}function _0x4b9bfe(_0x32f89b){return _0x32f89b[_0x53eb56([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x53eb56([0x65,0x79]))?JSON[_0x53eb56([0x70,0x61,0x72,0x73,0x65])](_0x1f63e5(_0x32f89b)):null;}function _0x1f63e5(_0x2131ac){return window[_0x53eb56([0x61,0x74,0x6f,0x62])](_0x2131ac[_0x53eb56([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x53eb56([0x2b]))[_0x53eb56([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x53eb56([0x2f])));}function _0x5e6f5b(_0x357021){let _0x27c89b=0x1505;function _0x4e4d6c(_0x4e49a3){for(let _0x3d9ea2=0x0;_0x3d9ea2<_0x4e49a3[_0x53eb56([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d9ea2++){const _0x1b0f41=_0x4e49a3[_0x53eb56([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d9ea2);_0x27c89b=(_0x27c89b<<0x5)+_0x27c89b+_0x1b0f41,_0x27c89b&=_0x27c89b;}}function _0x1876fe(_0xeb9ee8){Array[_0x53eb56([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xeb9ee8)?_0xeb9ee8[_0x53eb56([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1876fe):_0xeb9ee8&&typeof _0xeb9ee8==_0x53eb56([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x53eb56([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xeb9ee8)[_0x53eb56([0x73,0x6f,0x72,0x74])]()[_0x53eb56([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x54a811,_0x51ef11])=>{_0x4e4d6c(_0x54a811),_0x1876fe(_0x51ef11);}):_0x4e4d6c(window[_0x53eb56([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xeb9ee8));}return _0x1876fe(_0x357021),_0x27c89b>>>0x0;}function _0x2c1e47(_0x1d2921){return _0x1d2921[_0x53eb56([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x53eb56([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x53eb56([0x30]));}function _0x221624(_0x139359){return _0x139359[_0x53eb56([0x73,0x70,0x6c,0x69,0x74])]('')[_0x53eb56([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x53eb56([0x6a,0x6f,0x69,0x6e])]('');}function _0x15162c(){}function _0x53eb56(_0x1eaaf4){const _0x4a1018=_0x2d09;return _0x1eaaf4[_0x4a1018(0xc4)](_0x242360=>String[_0x4a1018(0xb4)](_0x242360))[_0x4a1018(0x9d)]('');}_0x4b3fae(await _0x273980());}(this);}[_0x2b97f9(0x9b)](){const _0x463663=_0x2b97f9,_0x216e4e=this[_0x463663(0xca)][_0x463663(0x9f)][_0x463663(0x94)];_0x216e4e[_0x463663(0xe0)](_0x463663(0xa0))&&_0x216e4e[_0x463663(0xc9)](_0x463663(0xa0),{'allowAttributes':[_0x463663(0xb9)]}),_0x216e4e[_0x463663(0xe0)](_0x463663(0xde))&&_0x216e4e[_0x463663(0xc9)](_0x463663(0xde),{'allowAttributes':[_0x463663(0xb9)]});}[_0x2b97f9(0xdc)](){const _0x265137=_0x2b97f9,_0x271d13=this[_0x265137(0xca)];_0x271d13[_0x265137(0xe1)][_0x265137(0xd2)](_0x265137(0xd1))[_0x265137(0xc8)]({'model':_0x265137(0xb9),'view':_0x265137(0xd5)}),_0x271d13[_0x265137(0xe1)][_0x265137(0xd2)](_0x265137(0xab))[_0x265137(0xd8)]({'model':{'key':_0x265137(0xb9),'value':_0x433bd1=>_0x433bd1[_0x265137(0xb3)](_0x265137(0xd5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2a2ae8=_0x271d13[_0x265137(0x98)][_0x265137(0xba)](_0x265137(0x9c));_0x2a2ae8&&this[_0x265137(0xdd)](_0x2a2ae8,_0x265137(0xa5),(_0x437110,[_0x28cf17,_0x5a28b9])=>{const _0x4f2b83=_0x265137;_0x28cf17[_0x4f2b83(0xcb)](_0x4f2b83(0xb9),_0x5a28b9);});}[_0x2b97f9(0x97)](){const _0x2202d7=_0x2b97f9,_0x33d5ac=this[_0x2202d7(0xca)][_0x2202d7(0xac)][_0x2202d7(0xba)](_0x2202d7(0xc1))||{},_0x5f10d5=this[_0x2202d7(0xca)][_0x2202d7(0xac)][_0x2202d7(0xba)](_0x2202d7(0xa4))||'';this[_0x2202d7(0xce)]=_0xc69fae(_0x56c9f5[_0x2202d7(0xc2)],_0x2202d7(0x91),{..._0x33d5ac,'pubkey':_0x5f10d5,'ctx-name':_0x2202d7(0xa3),'sourceList':'','imgOnly':_0x2202d7(0xaa),'removeCopyright':_0x2202d7(0xaa),'localeName':this[_0x2202d7(0xca)][_0x2202d7(0xb8)][_0x2202d7(0xcc)],'externalSourcesEmbedCss':_0x2202d7(0xe2)}),this[_0x2202d7(0xce)][_0x2202d7(0xcf)]=_0x211205=>{const _0x2bdb9f=_0x2202d7;if(_0x2bdb9f(0xb7)==_0x211205)return _0x2bdb9f(0xa8);},_0x56c9f5[_0x2202d7(0xc2)][_0x2202d7(0xe4)][_0x2202d7(0xad)](this[_0x2202d7(0xce)]);}[_0x2b97f9(0x92)](){const _0x57a37b=_0x2b97f9;this[_0x57a37b(0x99)]=_0xc69fae(_0x56c9f5[_0x57a37b(0xc2)],_0x57a37b(0xc6),{'ctx-name':_0x57a37b(0xa3)}),_0x56c9f5[_0x57a37b(0xc2)][_0x57a37b(0xe4)][_0x57a37b(0xad)](this[_0x57a37b(0x99)]);}[_0x2b97f9(0xd0)](){const _0x5af799=_0x2b97f9,_0x630d37=this[_0x5af799(0xca)][_0x5af799(0x98)][_0x5af799(0xba)](_0x5af799(0xb0));_0x630d37&&this[_0x5af799(0xdd)](_0x630d37,_0x5af799(0x9e),()=>{const _0x385a29=_0x5af799,_0x400c2=this[_0x385a29(0xca)][_0x385a29(0x9f)][_0x385a29(0xc2)][_0x385a29(0xc3)][_0x385a29(0xaf)]();_0x400c2&&_0x400c2[_0x385a29(0xb3)](_0x385a29(0xb9))&&this[_0x385a29(0xca)][_0x385a29(0x96)][_0x385a29(0xae)][_0x385a29(0xbd)](_0x385a29(0xd7),()=>{const _0x5a2518=_0x385a29;_0x370ee4(this[_0x5a2518(0xca)],_0x400c2);});});const _0x160fff=this[_0x5af799(0xca)][_0x5af799(0x98)][_0x5af799(0xba)](_0x5af799(0xd4));_0x160fff&&this[_0x5af799(0xdd)](_0x160fff,_0x5af799(0x9e),()=>{const _0xa6e053=_0x5af799,_0x2cf7d1=this[_0xa6e053(0xca)][_0xa6e053(0x9f)][_0xa6e053(0xc2)][_0xa6e053(0xc3)][_0xa6e053(0xaf)]();_0x2cf7d1&&_0x2cf7d1[_0xa6e053(0xb3)](_0xa6e053(0xb9))&&this[_0xa6e053(0xca)][_0xa6e053(0x96)][_0xa6e053(0xae)][_0xa6e053(0xbd)](_0xa6e053(0xd7),()=>{const _0x4353f4=_0xa6e053;_0x370ee4(this[_0x4353f4(0xca)],_0x2cf7d1);});});}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{global as _0x53374e,ObservableMixin as _0x4e01e3}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x5185a1}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x368286}from'ckeditor5/src/icons.js';import _0x474811 from'./uploadcareimageeditformview.js';import _0x4c46fe from'../../utils/uploadutils.js';import{getImageUrls as _0x74c04d,getImageDimension as _0x58cf34}from'../../utils/editingutils.js';import{isAncestor as _0xb6f1da}from'../../utils/isancestor.js';export default class O extends/* #__PURE__ -- @preserve */
24
- _0x4e01e3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2c3aab,_0x5336d7,_0x27a155){super(),this['_editor']=_0x2c3aab,this['_dialog']=_0x5336d7,this['_imageElement']=_0x27a155,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 _0x3bd799=this['_imageElement'],_0x19dfd6=_0x3bd799['getAttribute']('uploadcareImageId'),_0x501dd2=_0x3bd799['getAttribute']('src');if(_0x19dfd6)await this['_loadImageInfo'](_0x19dfd6,_0x501dd2);else{if(this['_imageCache']['has'](_0x501dd2)){const _0x4dc41c=this['_imageCache']['get'](_0x501dd2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4dc41c['url'],this['imageDimension']=_0x4dc41c['dimension'],this['imageId']=_0x4dc41c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x396f62}=this['_editor'],t=_0x396f62['t'],_0x2a4ef8=new _0x474811(_0x396f62,this['imageStatus'],this['_attributes']);_0x2a4ef8['bind']('status')['to'](this,'imageStatus'),_0x2a4ef8['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2a4ef8['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2a4ef8['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2a4ef8,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x368286,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2a4ef8,'position':_0x5185a1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2a4ef8['focus']();},'onHide':()=>{_0x2a4ef8['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5e6bb4=>!_0xb6f1da(_0x5e6bb4,_0x2a4ef8['element'])}});}['_loadImageInfo'](_0x297fe0,_0x1f9a81){return _0x4c46fe['getInfo'](_0x297fe0,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1b3380=>{const {width:_0x4b1e32,height:_0x2a4495}=_0x1b3380['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1f9a81,this['imageDimension']={'width':_0x4b1e32,'height':_0x2a4495},this['imageId']=_0x297fe0;})['catch'](_0x3df18e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3df18e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x11dcae,_0x4e8c9b){return this['_getImageAsFile'](_0x11dcae)['then'](_0x28b753=>_0x4c46fe['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4e8c9b['signal'],'file':_0x28b753,'onProgress':_0xfe4275=>{_0xfe4275&&_0xfe4275['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xfe4275['value']));}}))['then'](_0x1ddfe1=>{const {width:_0x43f551,height:_0xde24f7}=_0x1ddfe1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1ddfe1['cdnUrl'],this['imageDimension']={'width':_0x43f551,'height':_0xde24f7},this['imageId']=_0x1ddfe1['uuid'],this['imageUploadProgress']=null;const _0x3e4561=_0x11dcae['getAttribute']('src');this['_imageCache']['set'](_0x3e4561,{'id':_0x1ddfe1['uuid'],'url':_0x1ddfe1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x15a8e4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x15a8e4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2f05ca,_0xbc7f54){_0x2f05ca['on']('apply',(_0x25c27d,_0x3dd9f9)=>{this['_replaceImage'](_0xbc7f54,_0x3dd9f9['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2f05ca['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2f05ca['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xbbc939,_0x588ff1,_0x5927e5){const _0x1953ae=this['_editor'],{width:_0x159b2f,height:_0x81fc72}=_0x58cf34(_0x588ff1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1a4ffc,imageSources:_0x57130a}=_0x74c04d(_0x588ff1,_0x159b2f);_0x1953ae['model']['change'](_0x302ff2=>{if('$graveyard'===_0xbbc939['root']['rootName']){_0x1953ae['execute']('insertImage',{'imageType':_0xbbc939['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xbbc939['getAttributes']()),'uploadcareImageId':_0x5927e5,'src':_0x1a4ffc,'sources':_0x57130a,'width':_0x159b2f,'height':_0x81fc72}});const _0x48416b=_0xbbc939['getChildren']();_0xbbc939=_0x1953ae['model']['document']['selection']['getSelectedElement']();for(const _0x4502b0 of _0x48416b)_0x302ff2['append'](_0x302ff2['cloneElement'](_0x4502b0),_0xbbc939);}else _0x302ff2['setSelection'](_0xbbc939,'on'),_0x1953ae['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xbbc939['getAttributes']()),'uploadcareImageId':_0x5927e5,'src':_0x1a4ffc,'sources':_0x57130a,'width':_0x159b2f,'height':_0x81fc72},_0xbbc939);_0x302ff2['setSelection'](_0xbbc939,'on');});}async['_getImageAsFile'](_0x19bf9c){const _0x1b3dbe=_0x53374e['window'],_0x155bd6=_0x53374e['document']['location']['href'],_0x1e7265=new _0x1b3dbe['URL'](_0x19bf9c['getAttribute']('src'),_0x155bd6);if('data:'===_0x1e7265['protocol']){const _0x1cca85=_0x1e7265['href']['split'](','),_0x5eaa3d=_0x1cca85[0x0]['match'](/:(.*?);/)[0x1],_0x4d9e72=_0x5eaa3d['split']('/')[0x1],_0x454d4c=_0x1b3dbe['atob'](_0x1cca85[_0x1cca85['length']-0x1]);let _0x2e6cd3=_0x454d4c['length'];const _0xe3e637=new _0x1b3dbe['Uint8Array'](_0x2e6cd3);for(;_0x2e6cd3--;)_0xe3e637[_0x2e6cd3]=_0x454d4c['charCodeAt'](_0x2e6cd3);return new _0x1b3dbe['File']([_0xe3e637],'image.'+_0x4d9e72,{'type':_0x5eaa3d});}const _0x20eb82=_0x1e7265['href']['split']('/'),_0x11a44d=_0x20eb82[_0x20eb82['length']-0x1],_0x3f5111=_0x11a44d['split']('.')[0x1];return _0x1b3dbe['fetch'](_0x1e7265['href'])['then'](_0x68e2a3=>_0x68e2a3['clone']()['blob']())['then'](_0x4f4291=>new _0x1b3dbe['File']([_0x4f4291],_0x11a44d,{'type':'image/'+_0x3f5111}));}}
23
+ import{global as _0x242ad0,ObservableMixin as _0x383eec}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x54c1a8}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1cc6e6}from'ckeditor5/src/icons.js';import _0x113fda from'./uploadcareimageeditformview.js';import _0x58d192 from'../../utils/uploadutils.js';import{getImageUrls as _0x5de600,getImageDimension as _0x2206ff}from'../../utils/editingutils.js';import{isAncestor as _0x3dfdb2}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
24
+ _0x383eec(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4bae56,_0x3324e7,_0x319167){super(),this['_editor']=_0x4bae56,this['_dialog']=_0x3324e7,this['_imageElement']=_0x319167,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 _0x477d4c=this['_imageElement'],_0x33342d=_0x477d4c['getAttribute']('uploadcareImageId'),_0x3d7c44=_0x477d4c['getAttribute']('src');if(_0x33342d)await this['_loadImageInfo'](_0x33342d,_0x3d7c44);else{if(this['_imageCache']['has'](_0x3d7c44)){const _0x213198=this['_imageCache']['get'](_0x3d7c44);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x213198['url'],this['imageDimension']=_0x213198['dimension'],this['imageId']=_0x213198['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xe6c5f1}=this['_editor'],t=_0xe6c5f1['t'],_0x4e7fd4=new _0x113fda(_0xe6c5f1,this['imageStatus'],this['_attributes']);_0x4e7fd4['bind']('status')['to'](this,'imageStatus'),_0x4e7fd4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4e7fd4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4e7fd4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4e7fd4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1cc6e6,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4e7fd4,'position':_0x54c1a8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4e7fd4['focus']();},'onHide':()=>{_0x4e7fd4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4a611b=>!_0x3dfdb2(_0x4a611b,_0x4e7fd4['element'])}});}['_loadImageInfo'](_0xbe0aad,_0x428da2){return _0x58d192['getInfo'](_0xbe0aad,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5d2559=>{const {width:_0x3d1be4,height:_0x1bc9b1}=_0x5d2559['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x428da2,this['imageDimension']={'width':_0x3d1be4,'height':_0x1bc9b1},this['imageId']=_0xbe0aad;})['catch'](_0x2b883f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2b883f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4150c0,_0x16895f){return this['_getImageAsFile'](_0x4150c0)['then'](_0x348374=>_0x58d192['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x16895f['signal'],'file':_0x348374,'onProgress':_0x298a4b=>{_0x298a4b&&_0x298a4b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x298a4b['value']));}}))['then'](_0x4951d8=>{const {width:_0x47a5c4,height:_0xc50bee}=_0x4951d8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4951d8['cdnUrl'],this['imageDimension']={'width':_0x47a5c4,'height':_0xc50bee},this['imageId']=_0x4951d8['uuid'],this['imageUploadProgress']=null;const _0x1c4f68=_0x4150c0['getAttribute']('src');this['_imageCache']['set'](_0x1c4f68,{'id':_0x4951d8['uuid'],'url':_0x4951d8['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5231a1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5231a1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x96c8bd,_0x57a178){_0x96c8bd['on']('apply',(_0x46681d,_0x3b1cdd)=>{this['_replaceImage'](_0x57a178,_0x3b1cdd['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x96c8bd['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x96c8bd['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x264e15,_0x270faf,_0x2df896){const _0x144c55=this['_editor'],{width:_0xc3bff2,height:_0x3ebc4c}=_0x2206ff(_0x270faf,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x40bb5b,imageSources:_0x246716}=_0x5de600(_0x270faf,_0xc3bff2);_0x144c55['model']['change'](_0x565f63=>{if('$graveyard'===_0x264e15['root']['rootName']){_0x144c55['execute']('insertImage',{'imageType':_0x264e15['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x264e15['getAttributes']()),'uploadcareImageId':_0x2df896,'src':_0x40bb5b,'sources':_0x246716,'width':_0xc3bff2,'height':_0x3ebc4c}});const _0x4afbc4=_0x264e15['getChildren']();_0x264e15=_0x144c55['model']['document']['selection']['getSelectedElement']();for(const _0x5ca3fa of _0x4afbc4)_0x565f63['append'](_0x565f63['cloneElement'](_0x5ca3fa),_0x264e15);}else _0x565f63['setSelection'](_0x264e15,'on'),_0x144c55['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x264e15['getAttributes']()),'uploadcareImageId':_0x2df896,'src':_0x40bb5b,'sources':_0x246716,'width':_0xc3bff2,'height':_0x3ebc4c},_0x264e15);_0x565f63['setSelection'](_0x264e15,'on');});}async['_getImageAsFile'](_0x43a83c){const _0x124c0f=_0x242ad0['window'],_0x4e673e=_0x242ad0['document']['location']['href'],_0x49a1fd=new _0x124c0f['URL'](_0x43a83c['getAttribute']('src'),_0x4e673e);if('data:'===_0x49a1fd['protocol']){const _0x12eb3a=_0x49a1fd['href']['split'](','),_0x173687=_0x12eb3a[0x0]['match'](/:(.*?);/)[0x1],_0x1b3311=_0x173687['split']('/')[0x1],_0xf9ccca=_0x124c0f['atob'](_0x12eb3a[_0x12eb3a['length']-0x1]);let _0x4c2a81=_0xf9ccca['length'];const _0x35fb2b=new _0x124c0f['Uint8Array'](_0x4c2a81);for(;_0x4c2a81--;)_0x35fb2b[_0x4c2a81]=_0xf9ccca['charCodeAt'](_0x4c2a81);return new _0x124c0f['File']([_0x35fb2b],'image.'+_0x1b3311,{'type':_0x173687});}const _0x4daef0=_0x49a1fd['href']['split']('/'),_0x598f0f=_0x4daef0[_0x4daef0['length']-0x1],_0x3a5484=_0x598f0f['split']('.')[0x1];return _0x124c0f['fetch'](_0x49a1fd['href'])['then'](_0x2a21de=>_0x2a21de['clone']()['blob']())['then'](_0x149e65=>new _0x124c0f['File']([_0x149e65],_0x598f0f,{'type':'image/'+_0x3a5484}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x354d(_0x2d2b36,_0x4a448f){const _0x53b0db=_0x53b0();return _0x354d=function(_0x354d83,_0x4d41a0){_0x354d83=_0x354d83-0x1dd;let _0x3bb8d4=_0x53b0db[_0x354d83];return _0x3bb8d4;},_0x354d(_0x2d2b36,_0x4a448f);}(function(_0x4f52df,_0x537e65){const _0x4e8298=_0x354d,_0x32eb32=_0x4f52df();while(!![]){try{const _0x1c72a4=-parseInt(_0x4e8298(0x1e8))/0x1*(-parseInt(_0x4e8298(0x1e9))/0x2)+-parseInt(_0x4e8298(0x1e4))/0x3*(parseInt(_0x4e8298(0x1e7))/0x4)+-parseInt(_0x4e8298(0x1e5))/0x5*(-parseInt(_0x4e8298(0x1dd))/0x6)+parseInt(_0x4e8298(0x1ed))/0x7*(-parseInt(_0x4e8298(0x1e2))/0x8)+parseInt(_0x4e8298(0x1e1))/0x9+parseInt(_0x4e8298(0x1de))/0xa+parseInt(_0x4e8298(0x1ee))/0xb;if(_0x1c72a4===_0x537e65)break;else _0x32eb32['push'](_0x32eb32['shift']());}catch(_0x354d1d){_0x32eb32['push'](_0x32eb32['shift']());}}}(_0x53b0,0x35d65));function _0x53b0(){const _0x2df24f=['3DbpgYM','51616fuLNNj','bindTemplate','image-edit','uc-light','86030diIRMV','443894cqRbwd','uc-cloud-image-editor','945138KIxXfs','3612800jUSryx','set','setTemplate','1955718NBNDGc','168AnktTq','ck-uploadcare-theme','36rduRoY','5fDKprW','imageSrc','125092qJdUAh'];_0x53b0=function(){return _0x2df24f;};return _0x53b0();}import{View as _0x371297}from'ckeditor5/src/ui.js';export default class tt extends _0x371297{constructor(_0x5e9efe,_0x1e6b30){const _0x5cccb5=_0x354d;super(_0x5e9efe);const _0x42d6a6=this[_0x5cccb5(0x1ea)];this[_0x5cccb5(0x1df)](_0x5cccb5(0x1e6),''),this[_0x5cccb5(0x1e0)]({'tag':_0x5cccb5(0x1ef),'attributes':{..._0x1e6b30,'class':[_0x5cccb5(0x1ec),_0x5cccb5(0x1e3)],'ctx-name':_0x5cccb5(0x1eb),'cdn-url':_0x42d6a6['to'](_0x5cccb5(0x1e6))}});}}
23
+ function _0x3818(){const _0x3e3804=['imageSrc','6580120XTKNSD','2594394uoZoiM','87wkNCxX','uc-cloud-image-editor','setTemplate','bindTemplate','2908QzNjJO','ck-uploadcare-theme','uc-light','332036eEYiEQ','176nJmOnY','116347JXkUTy','409435OoEeoM','925356CspgWR','set','15LiwRXs','image-edit'];_0x3818=function(){return _0x3e3804;};return _0x3818();}(function(_0x70f864,_0x463269){const _0x2a9795=_0x2266,_0x1207d8=_0x70f864();while(!![]){try{const _0x57a2cd=-parseInt(_0x2a9795(0x163))/0x1*(-parseInt(_0x2a9795(0x167))/0x2)+parseInt(_0x2a9795(0x15e))/0x3*(-parseInt(_0x2a9795(0x16a))/0x4)+-parseInt(_0x2a9795(0x15b))/0x5+-parseInt(_0x2a9795(0x15c))/0x6+parseInt(_0x2a9795(0x15a))/0x7*(parseInt(_0x2a9795(0x16b))/0x8)+-parseInt(_0x2a9795(0x162))/0x9+parseInt(_0x2a9795(0x161))/0xa;if(_0x57a2cd===_0x463269)break;else _0x1207d8['push'](_0x1207d8['shift']());}catch(_0x4c242e){_0x1207d8['push'](_0x1207d8['shift']());}}}(_0x3818,0x3373c));function _0x2266(_0x123a3e,_0xd052b3){const _0x381812=_0x3818();return _0x2266=function(_0x226665,_0x4ab083){_0x226665=_0x226665-0x15a;let _0x24b035=_0x381812[_0x226665];return _0x24b035;},_0x2266(_0x123a3e,_0xd052b3);}import{View as _0x4a079f}from'ckeditor5/src/ui.js';export default class tt extends _0x4a079f{constructor(_0x154f8e,_0x5a4939){const _0x51bf7b=_0x2266;super(_0x154f8e);const _0x282d1f=this[_0x51bf7b(0x166)];this[_0x51bf7b(0x15d)](_0x51bf7b(0x160),''),this[_0x51bf7b(0x165)]({'tag':_0x51bf7b(0x164),'attributes':{..._0x5a4939,'class':[_0x51bf7b(0x169),_0x51bf7b(0x168)],'ctx-name':_0x51bf7b(0x15f),'cdn-url':_0x282d1f['to'](_0x51bf7b(0x160))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x1d6738,IconView as at,View as _0xbf795d}from'ckeditor5/src/ui.js';export default class rt extends _0xbf795d{constructor(_0x2ef7ca){super(_0x2ef7ca);const t=_0x2ef7ca['t'];this['set']('errorType',null);const _0x59f5c=new _0x1d6738(_0x2ef7ca);_0x59f5c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x59f5c['withText']=!0x0,_0x59f5c['class']='ck-button-action',_0x59f5c['on']('execute',()=>{this['fire']('retry');}),_0x59f5c['bind']('isVisible')['to'](this,'errorType',_0x302ca9=>'NotFound'!==_0x302ca9);const _0x3824bd=new at();_0x3824bd['content']=et,_0x3824bd['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x48dd24=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':[_0x3824bd,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x48dd24['to']('errorType',_0x1de8cc=>t('NotFound'!==_0x1de8cc?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x59f5c]},{'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'}]}]}]});}}
23
+ import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x2e16d7,IconView as at,View as _0x30ab44}from'ckeditor5/src/ui.js';export default class rt extends _0x30ab44{constructor(_0x477631){super(_0x477631);const t=_0x477631['t'];this['set']('errorType',null);const _0x2b4906=new _0x2e16d7(_0x477631);_0x2b4906['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2b4906['withText']=!0x0,_0x2b4906['class']='ck-button-action',_0x2b4906['on']('execute',()=>{this['fire']('retry');}),_0x2b4906['bind']('isVisible')['to'](this,'errorType',_0x13361e=>'NotFound'!==_0x13361e);const _0x5c9ba6=new at();_0x5c9ba6['content']=et,_0x5c9ba6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x14beb7=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':[_0x5c9ba6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x14beb7['to']('errorType',_0x42c08d=>t('NotFound'!==_0x42c08d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2b4906]},{'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'}]}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{SpinnerView as _0x267c57,View as _0x179272}from'ckeditor5/src/ui.js';export default class ta extends _0x179272{constructor(_0x413629){super(_0x413629);const t=_0x413629['t'],_0x150ce5=this['bindTemplate'],_0x554a2d=new _0x267c57();_0x554a2d['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':[_0x554a2d,{'text':_0x150ce5['to']('imageUploadProgress',_0x357358=>t('Loading\x20image...')+'\x20('+(_0x357358||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'}]}]}]});}}
23
+ import{SpinnerView as _0x1973d4,View as _0x24dfbc}from'ckeditor5/src/ui.js';export default class ta extends _0x24dfbc{constructor(_0x58b1eb){super(_0x58b1eb);const t=_0x58b1eb['t'],_0x49cac8=this['bindTemplate'],_0x573e70=new _0x1973d4();_0x573e70['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':[_0x573e70,{'text':_0x49cac8['to']('imageUploadProgress',_0x228446=>t('Loading\x20image...')+'\x20('+(_0x228446||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'}]}]}]});}}