@ckeditor/ckeditor5-uploadcare 45.0.0-alpha.10 → 45.0.0-alpha.11

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 _0x1ea684,Command as _0x116f96}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x34ed8d,IconGooglePhotos as _0x1c9e88,IconGoogleDrive as _0x257d56,IconFacebook as _0x3fcc2a,IconDropbox as _0x1c4d83,IconUploadcareLink as _0x7e2265,IconUploadcareImageUpload as _0x25ba5c,IconError as et,IconUploadcareImageEdit as _0x4a1503}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x41db23,MenuBarMenuListItemButtonView as _0x24f8e0,View as _0x15b594,FocusCycler as _0x396d0a,Dialog as _0x1c3622,DialogViewPosition as _0x4b51b9,SpinnerView as _0xf8fcb3,IconView as at,Notification as _0x525d53}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4ad3cf,DomEmitterMixin as _0x5a42ec,global as _0x1cdeb7,getAncestors as _0x16836b,ObservableMixin as _0x3284b9,createElement as _0x76639e,uid as _0x419551}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x25c78c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x203273,info as _0x4d0433}from'@uploadcare/upload-client';import*as _0x44e753 from'@uploadcare/file-uploader';var o=function(_0x1ec809){return _0x1ec809['Local']='local',_0x1ec809['URL']='url',_0x1ec809['Dropbox']='dropbox',_0x1ec809['GDrive']='gdrive',_0x1ec809['Facebook']='facebook',_0x1ec809['GPhotos']='gphotos',_0x1ec809['OneDrive']='onedrive',_0x1ec809;}({});function _(_0x3e1c7a,_0x552698,_0x458baf){const t=_0x3e1c7a['t'],_0x176052=_0x3e1c7a['t'];switch(_0x552698){case o['Local']:return{'text':_0x176052('Insert'===_0x458baf?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x176052('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x458baf?_0x176052('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x176052('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x458baf?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x458baf?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x458baf?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x458baf?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x458baf?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x552698;}}class e extends _0x1ea684{['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 _0x38f27f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2c4340;for(const _0x312d39 in _0x38f27f){const _0x3d32b2=_0x312d39,_0xefbef8=_0x38f27f[_0x3d32b2];if('uploadcareLicenseKeyValid'==_0xefbef8||'uploadcareLicenseKeyInvalid'==_0xefbef8||'uploadcareLicenseKeyExpired'==_0xefbef8||'uploadcareLicenseKeyDomainLimit'==_0xefbef8||'uploadcareLicenseKeyNotAllowed'==_0xefbef8||'uploadcareLicenseKeyEvaluationLimit'==_0xefbef8||'uploadcareLicenseKeyTrialLimit'==_0xefbef8||'uploadcareLicenseKeyUsageLimit'==_0xefbef8){delete _0x38f27f[_0x3d32b2],_0x2c4340=_0xefbef8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2c4340&&_0x38f27f['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2c4340&&_0x38f27f['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2c4340&&_0x38f27f['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2c4340&&_0x38f27f['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2c4340&&_0x38f27f['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2c4340&&_0x38f27f['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2c4340&&_0x38f27f['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x9dab85}=this,_0x437650=_0x9dab85['commands']['get']('uploadcare');if(!_0x437650)return;const _0x40e997=this['_normalizeConfigSourceList'](_0x9dab85['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x21545e,_0xc7858f)=>{const _0x3fb109=this['_getIntegrationKey'](_0xc7858f['type']);return _0x21545e[_0x3fb109]||(_0x21545e[_0x3fb109]=[]),_0x21545e[_0x3fb109]['push'](_0xc7858f),_0x21545e;},{});_0x9dab85['plugins']['has']('ImageInsertUI')&&_0x9dab85['commands']['get']('uploadcare')&&Object['entries'](_0x40e997)['forEach'](([_0x19a36b,_0x3f6b48])=>{_0x9dab85['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x19a36b,'observable':()=>_0x437650,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3f6b48),'formViewCreator':()=>this['_createDropdownButtons'](_0x3f6b48),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3f6b48),'override':'assetManager'!==_0x19a36b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3a0ce7){const {locale:_0x1150bb}=this['editor'];return _0x3a0ce7['map'](_0x268615=>{const _0x2dd5a2=_(_0x1150bb,_0x268615,'Insert');switch(_0x268615){case o['Local']:return{'icon':_0x25ba5c,'type':o['Local'],..._0x2dd5a2};case o['URL']:return{'icon':_0x7e2265,'type':o['URL'],..._0x2dd5a2};case o['Dropbox']:return{'icon':_0x1c4d83,'type':o['Dropbox'],..._0x2dd5a2};case o['Facebook']:return{'icon':_0x3fcc2a,'type':o['Facebook'],..._0x2dd5a2};case o['GDrive']:return{'icon':_0x257d56,'type':o['GDrive'],..._0x2dd5a2};case o['GPhotos']:return{'icon':_0x1c9e88,'type':o['GPhotos'],..._0x2dd5a2};case o['OneDrive']:return{'icon':_0x34ed8d,'type':o['OneDrive'],..._0x2dd5a2};}});}['_getIntegrationKey'](_0x327ae2){switch(_0x327ae2){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5adbce,_0x41e0df){const _0x35c2ee=this['editor'],_0x43dba2=new _0x5adbce(_0x35c2ee['locale']),_0x3a0682=_0x35c2ee['commands']['get']('uploadcare');return _0x43dba2['bind']('isEnabled')['to'](_0x3a0682),_0x43dba2['on']('execute',()=>{_0x3a0682['execute'](_0x41e0df);}),_0x43dba2;}['_createToolbarButton'](_0x5c329b){const {locale:_0x116b99}=this['editor'],_0xcc213e=this['editor']['plugins']['get']('ImageInsertUI'),_0x42bb4b=_0x5c329b[0x0],_0x559b5c=this['_createButton'](_0x41db23,_0x42bb4b['type']);return _0x559b5c['icon']=_0x42bb4b['icon'],_0x559b5c['bind']('label')['to'](_0xcc213e,'isImageSelected',_0x3d9784=>_(_0x116b99,_0x42bb4b['type'],_0x3d9784?'Replace':'Insert')['text']),_0x559b5c['tooltip']=!0x0,_0x559b5c;}['_createDropdownButtons'](_0x5374f8){const {locale:_0x287de5}=this['editor'],_0x49cc67=this['editor']['plugins']['get']('ImageInsertUI');return _0x5374f8['map'](_0x269621=>{const _0x4f58fe=this['_createButton'](_0x41db23,_0x269621['type']);return _0x4f58fe['withText']=!0x0,_0x4f58fe['icon']=_0x269621['icon'],_0x4f58fe['bind']('label')['to'](_0x49cc67,'isImageSelected',_0x58bc7d=>_(_0x287de5,_0x269621['type'],_0x58bc7d?'Replace':'Insert')['text']),_0x4f58fe;});}['_createMenuBarButtons'](_0x14e3ab){return _0x14e3ab['map'](_0xa9fee4=>{const _0x3d5d2b=this['_createButton'](_0x24f8e0,_0xa9fee4['type']);return _0x3d5d2b['icon']=_0xa9fee4['icon'],_0x3d5d2b['label']=_0xa9fee4['shortText'],_0x3d5d2b;});}}class q extends _0x15b594{['focusTracker'];['focusCycler'];constructor(_0x1d9fec){super(_0x1d9fec),this['focusTracker']=new _0x4ad3cf(),this['focusCycler']=new _0x396d0a({'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(_0x25accb){super(_0x25accb),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(_0x176fb5,_0x3f0dfc){const _0x59745c=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x31eb48=>_0x31eb48<=_0x3f0dfc)['map'](_0x5aaeed=>_0x176fb5['replace'](/\/$/,'')+'/-/resize/'+_0x5aaeed+'x/\x20'+_0x5aaeed+'w');return{'imageFallbackUrl':_0x176fb5,'imageSources':[{'srcset':_0x59745c['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3f0dfc+'px)\x20100vw,\x20'+_0x3f0dfc+'px','type':'image/webp'}]};}function A(_0x51f30d,_0xe989ed,_0x11dcbf){const _0x33a0ca=_0x51f30d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x33a0ca?parseInt(_0x33a0ca[0x1],0xa):_0xe989ed,'height':_0x33a0ca?parseInt(_0x33a0ca[0x2],0xa):_0x11dcbf};}function m(_0x3d2c47,_0x53e6f6){const _0x2ce211=Object['create'](_0x5a42ec),_0x34876d=_0x3d2c47['plugins']['get']('ImageUtils'),_0x5b0d37=_0x3d2c47['editing']['mapper']['toViewElement'](_0x53e6f6),_0x2056be=_0x34876d['findViewImgElement'](_0x5b0d37),_0x21a3f1=_0x3d2c47['editing']['view']['domConverter']['viewToDom'](_0x2056be),_0x9faca3=_0x53e6f6['getAttribute']('width'),_0x41cb66=_0x53e6f6['getAttribute']('height'),_0x38ac6d='image-processing';_0x3d2c47['editing']['view']['change'](_0xe304b4=>{_0xe304b4['addClass'](_0x38ac6d,_0x5b0d37),_0xe304b4['setStyle']('aspect-ratio',_0x9faca3+'/'+_0x41cb66,_0x2056be);}),_0x2ce211['listenTo'](_0x21a3f1,'load',()=>{_0x2ce211['stopListening'](_0x21a3f1,'load'),_0x3d2c47['editing']['view']['change'](_0x171f6c=>{_0x171f6c['removeClass'](_0x38ac6d,_0x5b0d37),_0x171f6c['removeStyle']('aspect-ratio',_0x2056be);});});}function V(_0xe5d45a){if(Array['isArray'](_0xe5d45a)){const _0x39aaad=_0xe5d45a['map'](V);return _0x49f5f2=>_0x39aaad['some'](_0x1a3293=>_0x1a3293(_0x49f5f2));}if('origin'==_0xe5d45a){const _0x1bc30d=_0x1cdeb7['window']['location']['origin'];return _0x506164=>new URL(_0x506164,_0x1cdeb7['document']['baseURI'])['origin']==_0x1bc30d;}return'function'==typeof _0xe5d45a?_0xe5d45a:_0xe5d45a instanceof RegExp?_0x26f1e3=>!(!_0x26f1e3['match'](_0xe5d45a)&&!_0x26f1e3['replace'](/^https?:\/\//,'')['match'](_0xe5d45a)):()=>!0x1;}function F(_0x1ef350,_0x7264a4){return _0x16836b(_0x1ef350['target'])['includes'](_0x7264a4);}class l extends/* #__PURE__ -- @preserve */
24
- _0x3284b9(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x18b720,_0x162328,_0x5cb149){super(),this['_editor']=_0x18b720,this['_editing']=_0x162328,this['_dialog']=_0x18b720['plugins']['get'](_0x1c3622),this['_api']=_0x162328['ctxElement']['getAPI'](),this['_type']=_0x5cb149,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:_0xfc1d01,model:_0x4cea2d}=this['_editor'],_0x55d5ac=_0x4cea2d['document']['selection']['getSelectedElement'](),_0x1989ac=_0x55d5ac&&(_0x55d5ac['is']('element','imageBlock')||_0x55d5ac['is']('element','imageInline'));this['_formView']=new S(_0xfc1d01),this['_dialog']['show']({'id':'uploadCare','icon':_0x25ba5c,'title':_(_0xfc1d01,this['_type'],_0x1989ac?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4b51b9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2bbb08=>!F(_0x2bbb08,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x37948e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1c113f=>{const _0x573f6a=_0x37948e['length'];for(const _0xeedfa5 of _0x37948e){const _0x393ab3=_0xeedfa5===_0x37948e[_0x573f6a-0x1],{cdnUrl:_0x13af07,fileInfo:_0x54ad8b}=_0xeedfa5;if(!_0x13af07||!_0x54ad8b)continue;const {width:_0x296f66,height:_0x12a7be}=_0x54ad8b['imageInfo'],_0x1ce2cb=A(_0x13af07,_0x296f66,_0x12a7be),_0x54d4d2=E(_0x13af07,_0x1ce2cb['width']),_0x313c07={'id':_0x54ad8b['uuid'],'type':'image','attributes':{'imageDimension':_0x1ce2cb,..._0x54d4d2}};this['_insertAsset'](_0x313c07,_0x393ab3,_0x1c113f);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xbd74de=>{'idle'===_0xbd74de['detail']['status']&&!_0xbd74de['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xdd4143,_0x578f94,_0x21d1dd){const _0x50808f=this['_editor']['model']['document']['selection'],_0x2fcf64=_0x50808f['getSelectedElement'](),_0x238bcf=!(!_0x2fcf64||!_0x2fcf64['is']('element','imageInline'));_0x21d1dd['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xdd4143,_0x238bcf),_0x578f94||_0x21d1dd['setSelection'](_0x50808f['getLastPosition']());}['_insertImage'](_0x338a2a,_0x4d88c3){const _0x1458cd=this['_editor'],{imageDimension:_0x52bb12,imageFallbackUrl:_0x1bad4d,imageSources:_0x269516}=_0x338a2a['attributes'];_0x1458cd['execute']('insertImage',{'imageType':_0x4d88c3?'imageInline':null,'source':{'uploadcareImageId':_0x338a2a['id'],'src':_0x1bad4d,'sources':_0x269516,..._0x52bb12}});}}class n extends _0x116f96{['_editing'];['_controller']=null;static get['requires'](){return[_0x1c3622,i];}constructor(_0x4ed62b){super(_0x4ed62b),this['_editing']=_0x4ed62b['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x54317c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x54317c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x8591d5,publicKey:_0x45700c,signal:_0x204243,onProgress:_0x884cf3}){return _0x203273(_0x8591d5,{'publicKey':_0x45700c,'store':'auto','signal':_0x204243,'onProgress':_0x884cf3});}static['getInfo'](_0x41e6c0,_0x39016a){return _0x4d0433(_0x41e6c0,_0x39016a);}}class p extends _0x1ea684{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x25c78c,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4643bf=this['editor'];if(!!!_0x4643bf['config']['get']('uploadcare'))return;_0x4643bf['plugins']['get'](_0x25c78c)['createUploadAdapter']=_0x44027e=>new x(_0x44027e,_0x4643bf),_0x4643bf['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x29c6e0,{imageElement:_0x18618d,data:_0x39a9dc})=>{_0x4643bf['model']['change'](_0x4dfc6e=>{_0x4dfc6e['setAttribute']('uploadcareImageId',_0x39a9dc['uploadcareImageId'],_0x18618d);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x14b0ea,_0x58346a){this['loader']=_0x14b0ea,this['editor']=_0x58346a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x35bfb0=this['editor']['config']['get']('uploadcare.pubkey'),_0x477203=await this['loader']['file'];return C['upload']({'file':_0x477203,'publicKey':_0x35bfb0,'signal':this['controller']['signal'],'onProgress':_0x1726b9=>{_0x1726b9&&_0x1726b9['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1726b9['value']);}})['then'](async _0x3d0a8b=>{const {imageFallbackUrl:_0xa14f72,imageSources:_0x3bafa1}=E(_0x3d0a8b['cdnUrl'],_0x3d0a8b['imageInfo']['width']);return{'uploadcareImageId':_0x3d0a8b['uuid'],'default':_0xa14f72,'sources':_0x3bafa1};})['catch'](()=>{const _0x547e02=t('Cannot\x20upload\x20file:')+('\x20'+_0x477203['name']+'.');return Promise['reject'](_0x547e02);});}['abort'](){this['controller']['abort']();}}class i extends _0x1ea684{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x1c3622];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x56989d=this['editor'];_0x56989d['commands']['add']('uploadcare',new n(_0x56989d));}['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 _0x115807=_0x1cdeb7['document']['querySelector']('input[uploadcare-file-input]');_0x115807&&_0x115807['remove']();}),async function(_0x429c46){const _0x40ad9f=_0x3e0e14([0x6a,0x4f,0x77,0x76,0x55,0x53,0x58,0x43,0x57,0x78,0x5a,0x36,0x79,0x30,0x61,0x72,0x45,0x44,0x6c,0x4a,0x50,0x4e,0x75,0x39,0x37,0x38,0x33,0x42,0x32,0x56,0x63,0x66,0x49,0x59,0x54,0x73,0x6e,0x47,0x35,0x41,0x4b,0x69,0x67,0x31,0x52,0x4d,0x7a,0x48,0x65,0x70,0x71,0x46,0x68,0x6d,0x64,0x34,0x74,0x6f,0x6b,0x4c,0x62,0x51]),_0x17a952=0x504ac03c,_0x270fab=0x504da414^_0x17a952,_0x3c9024=window[_0x3e0e14([0x44,0x61,0x74,0x65])][_0x3e0e14([0x6e,0x6f,0x77])](),_0x1def2b=_0x429c46[_0x3e0e14([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d940d=new window[(_0x3e0e14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ce9a2=>{_0x1def2b[_0x3e0e14([0x6f,0x6e,0x63,0x65])](_0x3e0e14([0x72,0x65,0x61,0x64,0x79]),_0x1ce9a2);}),_0x5921d7={[_0x3e0e14([0x6b,0x74,0x79])]:_0x3e0e14([0x45,0x43]),[_0x3e0e14([0x75,0x73,0x65])]:_0x3e0e14([0x73,0x69,0x67]),[_0x3e0e14([0x63,0x72,0x76])]:_0x3e0e14([0x50,0x2d,0x32,0x35,0x36]),[_0x3e0e14([0x78])]:_0x3e0e14([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]),[_0x3e0e14([0x79])]:_0x3e0e14([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]),[_0x3e0e14([0x61,0x6c,0x67])]:_0x3e0e14([0x45,0x53,0x32,0x35,0x36])},_0x5da21f=_0x1def2b[_0x3e0e14([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e0e14([0x67,0x65,0x74])](_0x3e0e14([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5bbc7a(){let _0x12d261,_0x4f680b=null,_0x426f9e=null;try{if(_0x5da21f==_0x3e0e14([0x47,0x50,0x4c]))return _0x3e0e14([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x12d261=_0x506038(),!_0x12d261)return _0x3e0e14([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x12d261[_0x3e0e14([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x426f9e=_0x4eb325(_0x12d261[_0x3e0e14([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x12d261[_0x3e0e14([0x6a,0x74,0x69])])),await _0x1d88bc()?_0x38359c()?_0x5a0be4()?_0x3e0e14([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xdb41f1()?(_0x12d261[_0x3e0e14([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e0e14([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f680b=_0x45f984(_0x3e0e14([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x12d261[_0x3e0e14([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e0e14([0x74,0x72,0x69,0x61,0x6c])&&(_0x4f680b=_0x45f984(_0x3e0e14([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x224e6d()):_0x3e0e14([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e0e14([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e0e14([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2e418e){return _0x3e0e14([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5a0be4(){const _0x1a86f0=[_0x3e0e14([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e0e14([0x74,0x72,0x69,0x61,0x6c])][_0x3e0e14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12d261[_0x3e0e14([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c9024/0x3e8:0xe10*_0x270fab;return _0x12d261[_0x3e0e14([0x65,0x78,0x70])]<_0x1a86f0;}function _0x38359c(){const _0x5cd1ca=_0x12d261[_0x3e0e14([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5cd1ca&&(!!_0x5cd1ca[_0x3e0e14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0e14([0x2a]))||!!_0x5cd1ca[_0x3e0e14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0e14([0x55,0x50,0x4c,0x43])));}function _0xdb41f1(){const _0x5979af=_0x12d261[_0x3e0e14([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5979af||0x0==_0x5979af[_0x3e0e14([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x25e1d1}=new URL(window[_0x3e0e14([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5979af[_0x3e0e14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25e1d1))return!0x0;const _0x5a774b=_0x25e1d1[_0x3e0e14([0x73,0x70,0x6c,0x69,0x74])](_0x3e0e14([0x2e]));return _0x5979af[_0x3e0e14([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e3c77=>_0x3e3c77[_0x3e0e14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0e14([0x2a])))[_0x3e0e14([0x6d,0x61,0x70])](_0x4ce2cd=>_0x4ce2cd[_0x3e0e14([0x73,0x70,0x6c,0x69,0x74])](_0x3e0e14([0x2e])))[_0x3e0e14([0x73,0x6f,0x6d,0x65])](_0xac2377=>_0x5a774b[_0x3e0e14([0x65,0x76,0x65,0x72,0x79])]((_0xb6a60b,_0x3c5883)=>_0xac2377[_0x3c5883]===_0xb6a60b||_0xac2377[_0x3c5883]===_0x3e0e14([0x2a])));}function _0x224e6d(){return _0x4f680b&&_0x426f9e?new window[(_0x3e0e14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1df12a,_0x1bcf77)=>{_0x4f680b[_0x3e0e14([0x74,0x68,0x65,0x6e])](_0x1df12a,_0x1bcf77),_0x426f9e[_0x3e0e14([0x74,0x68,0x65,0x6e])](_0x57a627=>{_0x57a627!=_0x3e0e14([0x56,0x61,0x6c,0x69,0x64])&&_0x1df12a(_0x57a627);},_0x1bcf77);}):_0x4f680b||_0x426f9e||_0x3e0e14([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4eb325(_0x3f8f6c,_0x55f4ec){return new window[(_0x3e0e14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e790c=>{if(_0x359148())return _0x1e790c(_0x3e0e14([0x56,0x61,0x6c,0x69,0x64]));_0x5f9127(),_0x1def2b[_0x3e0e14([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e0e14([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1da3a3=!0x1;const _0x51663d=_0x419551();function _0x2b44ad(_0x523748){return!!_0x523748&&(typeof _0x523748===_0x3e0e14([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x523748===_0x3e0e14([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x523748[_0x3e0e14([0x74,0x68,0x65,0x6e])]===_0x3e0e14([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x523748[_0x3e0e14([0x63,0x61,0x74,0x63,0x68])]===_0x3e0e14([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x14db79(_0x3d92f6){_0x34afb4(_0x3d92f6)[_0x3e0e14([0x74,0x68,0x65,0x6e])](_0x41dffe=>{if(!_0x41dffe||_0x41dffe[_0x3e0e14([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e0e14([0x6f,0x6b]))return _0x3e0e14([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x565b3e(_0x287940(_0x51663d+_0x55f4ec))!=_0x41dffe[_0x3e0e14([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e0e14([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e0e14([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e0e14([0x74,0x68,0x65,0x6e])](_0x3f1e65=>(_0x1a08a3(),_0x3f1e65),()=>{const _0x56b1a4=_0x4fb615();return null==_0x56b1a4?(_0x1a08a3(),_0x3e0e14([0x56,0x61,0x6c,0x69,0x64])):_0x3e0e14(_0x3c9024-_0x56b1a4>(0x7446443c^_0x17a952)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e0e14([0x74,0x68,0x65,0x6e])](_0x1e790c)[_0x3e0e14([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e790c(_0x3e0e14([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x585ba6=0x507c2ebc^_0x17a952;function _0x1a08a3(){const _0x43b3be=_0x3e0e14([0x6c,0x6c,0x63,0x74,0x2d])+_0x565b3e(_0x287940(_0x3f8f6c)),_0x4d4e04=_0x243cc0(_0x565b3e(window[_0x3e0e14([0x4d,0x61,0x74,0x68])][_0x3e0e14([0x63,0x65,0x69,0x6c])](_0x3c9024/_0x585ba6)));window[_0x3e0e14([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e0e14([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43b3be,_0x4d4e04);}function _0x4fb615(){const _0x579dfe=_0x3e0e14([0x6c,0x6c,0x63,0x74,0x2d])+_0x565b3e(_0x287940(_0x3f8f6c)),_0x555367=window[_0x3e0e14([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e0e14([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x579dfe);return _0x555367?window[_0x3e0e14([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x243cc0(_0x555367),0x10)*_0x585ba6:null;}function _0x34afb4(_0x13dcd0){return new window[(_0x3e0e14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53b4c7,_0x6d1b60)=>{_0x13dcd0[_0x3e0e14([0x74,0x68,0x65,0x6e])](_0x53b4c7,_0x6d1b60),window[_0x3e0e14([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6d1b60,0x504b14fc^_0x17a952);});}}_0x1def2b[_0x3e0e14([0x6f,0x6e])](_0x3e0e14([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x837551,_0x22b481)=>{if(_0x22b481[0x0]!=_0x3f8f6c)return _0x1e790c(_0x3e0e14([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22b481[0x1]={..._0x22b481[0x1],[_0x3e0e14([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x51663d};},{[_0x3e0e14([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e0e14([0x68,0x69,0x67,0x68])}),_0x1def2b[_0x3e0e14([0x6f,0x6e])](_0x3e0e14([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17a7ef=>{_0x2b44ad(_0x17a7ef[_0x3e0e14([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1da3a3=!0x0,_0x14db79(_0x17a7ef[_0x3e0e14([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e0e14([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e0e14([0x6c,0x6f,0x77])}),_0x1d940d[_0x3e0e14([0x74,0x68,0x65,0x6e])](()=>{_0x1da3a3||_0x1e790c(_0x3e0e14([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x359148(){return _0x1def2b[_0x3e0e14([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e0e14([0x76,0x69,0x65,0x77])][_0x3e0e14([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e0e14([0x61,0x75,0x74,0x6f]);}function _0x5f9127(){_0x1def2b[_0x3e0e14([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e0e14([0x76,0x69,0x65,0x77])][_0x3e0e14([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e0e14([0x61,0x75,0x74,0x6f]);}}function _0x45f984(_0x104de8){const _0x9e7c1a=[new window[(_0x3e0e14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15a006=>setTimeout(_0x15a006,0x5043fef0^_0x17a952)),_0x1d940d[_0x3e0e14([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e0e14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x127074=>{let _0x22d25a=0x0;_0x1def2b[_0x3e0e14([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e0e14([0x6f,0x6e])](_0x3e0e14([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x22b4ed,_0x5561e0)=>{_0x5561e0[0x0][_0x3e0e14([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x22d25a++,_0x22d25a==(0x504ac1c4^_0x17a952)&&(_0x127074(),_0x22b4ed[_0x3e0e14([0x6f,0x66,0x66])]());});}))];return window[_0x3e0e14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e0e14([0x72,0x61,0x63,0x65])](_0x9e7c1a)[_0x3e0e14([0x74,0x68,0x65,0x6e])](()=>_0x104de8);}async function _0x5df3f7(){await _0x1d940d,_0x1def2b[_0x3e0e14([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e0e14([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1a4515,_0x1def2b[_0x3e0e14([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e0e14([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1a4515,_0x1def2b[_0x3e0e14([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e0e14([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e038d(_0x83f68a){const _0x47441b=_0x259b48();_0x1def2b[_0x47441b]=_0x3e0e14([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x83f68a,_0x83f68a!=_0x3e0e14([0x56,0x61,0x6c,0x69,0x64])&&_0x5df3f7();}function _0x259b48(){const _0x4ccdfe=window[_0x3e0e14([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e0e14([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e0e14([0x6e,0x6f,0x77])]())[_0x3e0e14([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e0e14([0x2e]),'');let _0x220a55=_0x3e0e14([0x6a]);for(let _0x1d136e=0x0;_0x1d136e<_0x4ccdfe[_0x3e0e14([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d136e+=0x2){let _0x736095=window[_0x3e0e14([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ccdfe[_0x3e0e14([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d136e,_0x1d136e+0x2));_0x736095>=_0x40ad9f[_0x3e0e14([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x736095-=_0x40ad9f[_0x3e0e14([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x220a55+=_0x40ad9f[_0x736095];}return _0x220a55;}function _0x506038(){const _0x400057=_0x5da21f[_0x3e0e14([0x73,0x70,0x6c,0x69,0x74])](_0x3e0e14([0x2e]));if(0x3!=_0x400057[_0x3e0e14([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x436725(_0x400057[0x1]);function _0x436725(_0x5ac58e){const _0x58a722=_0x2524ff(_0x5ac58e);return _0x58a722&&_0x6996ce()?_0x58a722:null;function _0x6996ce(){const _0x59a839=_0x58a722[_0x3e0e14([0x6a,0x74,0x69])],_0x3047b7=window[_0x3e0e14([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59a839[_0x3e0e14([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59a839[_0x3e0e14([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39d1bc={..._0x58a722,[_0x3e0e14([0x6a,0x74,0x69])]:_0x59a839[_0x3e0e14([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x59a839[_0x3e0e14([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39d1bc[_0x3e0e14([0x76,0x63])],_0x287940(_0x39d1bc)==_0x3047b7;}}}async function _0x1d88bc(){let _0x3a1bb0=!0x0;try{const _0x3b4ba8=_0x5da21f[_0x3e0e14([0x73,0x70,0x6c,0x69,0x74])](_0x3e0e14([0x2e])),[_0x61ab30,_0x1a7282,_0x1896d5]=_0x3b4ba8;return _0x5d4ba5(_0x61ab30),await _0x5a1fdb(_0x61ab30,_0x1a7282,_0x1896d5),_0x3a1bb0;}catch(_0x2c0cf6){return!0x1;}function _0x5d4ba5(_0x37bff7){const _0x280670=_0x2524ff(_0x37bff7);_0x280670&&_0x280670[_0x3e0e14([0x61,0x6c,0x67])]==_0x3e0e14([0x45,0x53,0x32,0x35,0x36])||(_0x3a1bb0=!0x1);}async function _0x5a1fdb(_0xfcad30,_0x564792,_0x3a6f2d){const _0x4fc9d4=window[_0x3e0e14([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e0e14([0x66,0x72,0x6f,0x6d])](_0x2d4aa4(_0x3a6f2d),_0x1bcf38=>_0x1bcf38[_0x3e0e14([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x287586=new window[(_0x3e0e14([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e0e14([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xfcad30+_0x3e0e14([0x2e])+_0x564792),_0x13b527=window[_0x3e0e14([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e0e14([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x13b527)return;const _0xe6488f=await _0x13b527[_0x3e0e14([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e0e14([0x6a,0x77,0x6b]),_0x5921d7,{[_0x3e0e14([0x6e,0x61,0x6d,0x65])]:_0x3e0e14([0x45,0x43,0x44,0x53,0x41]),[_0x3e0e14([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e0e14([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e0e14([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x13b527[_0x3e0e14([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e0e14([0x6e,0x61,0x6d,0x65])]:_0x3e0e14([0x45,0x43,0x44,0x53,0x41]),[_0x3e0e14([0x68,0x61,0x73,0x68])]:{[_0x3e0e14([0x6e,0x61,0x6d,0x65])]:_0x3e0e14([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xe6488f,_0x4fc9d4,_0x287586)||(_0x3a1bb0=!0x1);}}function _0x2524ff(_0x36c15a){return _0x36c15a[_0x3e0e14([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e0e14([0x65,0x79]))?JSON[_0x3e0e14([0x70,0x61,0x72,0x73,0x65])](_0x2d4aa4(_0x36c15a)):null;}function _0x2d4aa4(_0x5d56e6){return window[_0x3e0e14([0x61,0x74,0x6f,0x62])](_0x5d56e6[_0x3e0e14([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e0e14([0x2b]))[_0x3e0e14([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e0e14([0x2f])));}function _0x287940(_0x419332){let _0x53e9ab=0x1505;function _0x3533cb(_0x3fc852){for(let _0x5c9ab1=0x0;_0x5c9ab1<_0x3fc852[_0x3e0e14([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c9ab1++){const _0x2df074=_0x3fc852[_0x3e0e14([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c9ab1);_0x53e9ab=(_0x53e9ab<<0x5)+_0x53e9ab+_0x2df074,_0x53e9ab&=_0x53e9ab;}}function _0x22fcdc(_0x147d3a){Array[_0x3e0e14([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x147d3a)?_0x147d3a[_0x3e0e14([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x22fcdc):_0x147d3a&&typeof _0x147d3a==_0x3e0e14([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e0e14([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x147d3a)[_0x3e0e14([0x73,0x6f,0x72,0x74])]()[_0x3e0e14([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4e5971,_0x4aa9d4])=>{_0x3533cb(_0x4e5971),_0x22fcdc(_0x4aa9d4);}):_0x3533cb(window[_0x3e0e14([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x147d3a));}return _0x22fcdc(_0x419332),_0x53e9ab>>>0x0;}function _0x565b3e(_0x57244e){return _0x57244e[_0x3e0e14([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e0e14([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e0e14([0x30]));}function _0x243cc0(_0x1bc851){return _0x1bc851[_0x3e0e14([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e0e14([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e0e14([0x6a,0x6f,0x69,0x6e])]('');}function _0x1a4515(){}function _0x3e0e14(_0x1ab4fb){return _0x1ab4fb['map'](_0x31d7f0=>String['fromCharCode'](_0x31d7f0))['join']('');}_0x5e038d(await _0x5bbc7a());}(this);}['_initSchema'](){const _0x560989=this['editor']['model']['schema'];_0x560989['isRegistered']('imageBlock')&&_0x560989['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x560989['isRegistered']('imageInline')&&_0x560989['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x20af9f=this['editor'];_0x20af9f['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x20af9f['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5f47c6=>_0x5f47c6['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x26a270=_0x20af9f['commands']['get']('replaceImageSource');_0x26a270&&this['listenTo'](_0x26a270,'cleanupImage',(_0x3e6f9f,[_0xf0a40e,_0x3f70b8])=>{_0xf0a40e['removeAttribute']('uploadcareImageId',_0x3f70b8);});}['_initConfig'](){const _0x3af031=this['editor']['config']['get']('uploadcare.uploader')||{},_0x25a24a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x76639e(_0x1cdeb7['document'],'uc-config',{..._0x3af031,'pubkey':_0x25a24a,'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']=_0x4c81c7=>{if('closeMax'==_0x4c81c7)return'#uc-icon-arrow-down';},_0x1cdeb7['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x76639e(_0x1cdeb7['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x1cdeb7['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4a2524=this['editor']['commands']['get']('insertImage');_0x4a2524&&this['listenTo'](_0x4a2524,'execute',()=>{const _0x2cf9fa=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2cf9fa&&_0x2cf9fa['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2cf9fa);});});const _0x1f2d21=this['editor']['commands']['get']('uploadcareImageReplace');_0x1f2d21&&this['listenTo'](_0x1f2d21,'execute',()=>{const _0x41dda0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x41dda0&&_0x41dda0['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x41dda0);});});}}class u extends _0x1ea684{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4eaf7a){super(_0x4eaf7a),_0x4eaf7a['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x44e753['defineComponents'](_0x44e753);}}class ta extends _0x15b594{constructor(_0x11a391){super(_0x11a391);const t=_0x11a391['t'],_0x406b70=this['bindTemplate'],_0x2f80be=new _0xf8fcb3();_0x2f80be['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':[_0x2f80be,{'text':_0x406b70['to']('imageUploadProgress',_0x27870b=>t('Loading\x20image...')+'\x20('+(_0x27870b||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 _0x15b594{constructor(_0x2ccc5f){super(_0x2ccc5f);const t=_0x2ccc5f['t'];this['set']('errorType',null);const _0x9f87c3=new _0x41db23(_0x2ccc5f);_0x9f87c3['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x9f87c3['withText']=!0x0,_0x9f87c3['class']='ck-button-action',_0x9f87c3['on']('execute',()=>{this['fire']('retry');}),_0x9f87c3['bind']('isVisible')['to'](this,'errorType',_0x2687dc=>'NotFound'!==_0x2687dc);const _0x27602f=new at();_0x27602f['content']=et,_0x27602f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x195fd7=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':[_0x27602f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x195fd7['to']('errorType',_0x4e0918=>t('NotFound'!==_0x4e0918?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x9f87c3]},{'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 _0x15b594{constructor(_0x28cd22,_0x5c1684){super(_0x28cd22);const _0x233fe9=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5c1684,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x233fe9['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xc80601,_0x2c3d70,_0x14ebd){super(_0xc80601),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0xc80601),this['_errorView']=new rt(_0xc80601),this['_editingView']=new tt(_0xc80601,_0x14ebd),this['_focusableView']=new _0x15b594(_0xc80601),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2c3d70),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'],_0x15be29=>{this['_addUploadcareImageEditorListeners'](_0x15be29);});}),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'](_0x33ae43,_0x3783eb){const _0x5bdaa7='uc-cloud-image-editor',_0x3a6260=_0x33ae43['querySelector'](_0x5bdaa7);if(_0x3a6260)return _0x3783eb(_0x3a6260);const _0x502f12=new MutationObserver(_0x164d86=>{const _0x46d580=_0x164d86['filter'](_0x59e457=>_0x59e457['target']===_0x33ae43&&_0x59e457['addedNodes']['length']>0x0&&_0x59e457['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5bdaa7);_0x46d580['length']&&(_0x502f12['disconnect'](),_0x3783eb(_0x46d580[0x0]['addedNodes'][0x0]));});_0x502f12['observe'](_0x33ae43,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x260961){_0x260961['addEventListener']('apply',_0x4ad96f=>{this['fire']('apply',{'imageSrc':_0x4ad96f['detail']['cdnUrl']});}),_0x260961['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x3284b9(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x303034,_0x57ad65,_0x5ad739){super(),this['_editor']=_0x303034,this['_dialog']=_0x57ad65,this['_imageElement']=_0x5ad739,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 _0x51c710=this['_imageElement'],_0x5be057=_0x51c710['getAttribute']('uploadcareImageId'),_0x4fced1=_0x51c710['getAttribute']('src');if(_0x5be057)await this['_loadImageInfo'](_0x5be057,_0x4fced1);else{if(this['_imageCache']['has'](_0x4fced1)){const _0x43ead1=this['_imageCache']['get'](_0x4fced1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x43ead1['url'],this['imageDimension']=_0x43ead1['dimension'],this['imageId']=_0x43ead1['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x21756c}=this['_editor'],t=_0x21756c['t'],_0x13926b=new Z(_0x21756c,this['imageStatus'],this['_attributes']);_0x13926b['bind']('status')['to'](this,'imageStatus'),_0x13926b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x13926b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x13926b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x13926b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4a1503,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x13926b,'position':_0x4b51b9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x13926b['focus']();},'onHide':()=>{_0x13926b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1b014b=>!F(_0x1b014b,_0x13926b['element'])}});}['_loadImageInfo'](_0x19726e,_0x5668ba){return C['getInfo'](_0x19726e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x370339=>{const {width:_0x2e23e7,height:_0x24d9f0}=_0x370339['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5668ba,this['imageDimension']={'width':_0x2e23e7,'height':_0x24d9f0},this['imageId']=_0x19726e;})['catch'](_0x2398e5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2398e5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x555594,_0x599eac){return this['_getImageAsFile'](_0x555594)['then'](_0x3fd887=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x599eac['signal'],'file':_0x3fd887,'onProgress':_0x27017c=>{_0x27017c&&_0x27017c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x27017c['value']));}}))['then'](_0x16d449=>{const {width:_0x2d7091,height:_0x4c38bd}=_0x16d449['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x16d449['cdnUrl'],this['imageDimension']={'width':_0x2d7091,'height':_0x4c38bd},this['imageId']=_0x16d449['uuid'],this['imageUploadProgress']=null;const _0x2e7d55=_0x555594['getAttribute']('src');this['_imageCache']['set'](_0x2e7d55,{'id':_0x16d449['uuid'],'url':_0x16d449['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x42fce5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x42fce5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x7efe60,_0x1c9cb1){_0x7efe60['on']('apply',(_0x38dfb1,_0x5d2570)=>{this['_replaceImage'](_0x1c9cb1,_0x5d2570['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x7efe60['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x7efe60['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x290f04,_0x517433,_0x56a35e){const _0x76a133=this['_editor'],{width:_0x5aceaa,height:_0x11eb8b}=A(_0x517433,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x285bf3,imageSources:_0x5e63e2}=E(_0x517433,_0x5aceaa);_0x76a133['model']['change'](_0x48a48d=>{if('$graveyard'===_0x290f04['root']['rootName']){_0x76a133['execute']('insertImage',{'imageType':_0x290f04['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x290f04['getAttributes']()),'uploadcareImageId':_0x56a35e,'src':_0x285bf3,'sources':_0x5e63e2,'width':_0x5aceaa,'height':_0x11eb8b}});const _0x239bed=_0x290f04['getChildren']();_0x290f04=_0x76a133['model']['document']['selection']['getSelectedElement']();for(const _0xab0093 of _0x239bed)_0x48a48d['append'](_0x48a48d['cloneElement'](_0xab0093),_0x290f04);}else _0x48a48d['setSelection'](_0x290f04,'on'),_0x76a133['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x290f04['getAttributes']()),'uploadcareImageId':_0x56a35e,'src':_0x285bf3,'sources':_0x5e63e2,'width':_0x5aceaa,'height':_0x11eb8b},_0x290f04);_0x48a48d['setSelection'](_0x290f04,'on');});}async['_getImageAsFile'](_0x25fc3a){const _0x3faedd=_0x1cdeb7['window'],_0x4015d3=_0x1cdeb7['document']['location']['href'],_0x29f0a7=new _0x3faedd['URL'](_0x25fc3a['getAttribute']('src'),_0x4015d3);if('data:'===_0x29f0a7['protocol']){const _0x410fa9=_0x29f0a7['href']['split'](','),_0x5e2579=_0x410fa9[0x0]['match'](/:(.*?);/)[0x1],_0x2c054b=_0x5e2579['split']('/')[0x1],_0x1cf47e=_0x3faedd['atob'](_0x410fa9[_0x410fa9['length']-0x1]);let _0x463da7=_0x1cf47e['length'];const _0x2ffe36=new _0x3faedd['Uint8Array'](_0x463da7);for(;_0x463da7--;)_0x2ffe36[_0x463da7]=_0x1cf47e['charCodeAt'](_0x463da7);return new _0x3faedd['File']([_0x2ffe36],'image.'+_0x2c054b,{'type':_0x5e2579});}const _0x369c2f=_0x29f0a7['href']['split']('/'),_0x116683=_0x369c2f[_0x369c2f['length']-0x1],_0x17b586=_0x116683['split']('.')[0x1];return _0x3faedd['fetch'](_0x29f0a7['href'])['then'](_0x366049=>_0x366049['clone']()['blob']())['then'](_0x273e2e=>new _0x3faedd['File']([_0x273e2e],_0x116683,{'type':'image/'+_0x17b586}));}}class J extends _0x116f96{['imageEditController'];static get['requires'](){return[_0x1c3622];}['_isEditable'];constructor(_0x3ae546){super(_0x3ae546),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x55a581){const _0x505098=V(_0x55a581);return _0x3a1cf6=>!(!_0x3a1cf6||!_0x3a1cf6['is']('element','imageBlock')&&!_0x3a1cf6['is']('element','imageInline'))&&(!!_0x3a1cf6['hasAttribute']('uploadcareImageId')||!!_0x3a1cf6['hasAttribute']('src')&&_0x505098(_0x3a1cf6['getAttribute']('src')));}(_0x3ae546['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2f637d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2f637d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1af169=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1af169&&(_0x1af169['is']('element','imageBlock')||_0x1af169['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x1c3622),_0x1af169),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x116f96{['refresh'](){const _0x115aee=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x115aee&&(_0x115aee['is']('element','imageBlock')||_0x115aee['is']('element','imageInline')));}['execute'](_0x3c5461){const _0x5c47d2=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x156030=>{_0x156030['setAttributes'](_0x3c5461,_0x5c47d2),_0x156030['removeAttribute']('srcset',_0x5c47d2),_0x156030['removeAttribute']('sizes',_0x5c47d2);});}}class g extends _0x1ea684{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x525d53,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1b4910}=this;_0x1b4910['commands']['add']('uploadcareImageEdit',new J(_0x1b4910)),_0x1b4910['commands']['add']('uploadcareImageReplace',new O(_0x1b4910));}}class j extends _0x1ea684{['_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 _0x11484b=this['editor'];_0x11484b['ui']['componentFactory']['add']('uploadcareImageEdit',_0xe3097a=>{const _0xf8ba50=_0x11484b['commands']['get']('uploadcareImageEdit'),_0x5bdf35=new _0x41db23(_0xe3097a),t=_0xe3097a['t'];return _0x5bdf35['set']({'icon':_0x4a1503,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5bdf35['bind']('isEnabled')['to'](_0xf8ba50),_0x5bdf35['bind']('isOn')['to'](_0xf8ba50,'isActive'),this['listenTo'](_0x5bdf35,'execute',()=>{_0x11484b['execute']('uploadcareImageEdit'),_0x11484b['editing']['view']['focus']();}),_0x5bdf35;}),this['_initConfig']();}['_initConfig'](){const _0x3d6ecb=_0x76639e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3d6ecb),this['listenTo'](this['editor'],'destroy',()=>{_0x3d6ecb['remove']();});}}class P extends _0x1ea684{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 _0x4b1643,Command as _0x72aed9}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1eae0c,IconGooglePhotos as _0x59aa6f,IconGoogleDrive as _0x47bb7b,IconFacebook as _0x3397b9,IconDropbox as _0x53a1d1,IconUploadcareLink as _0x4d4b91,IconUploadcareImageUpload as _0x58afa9,IconError as et,IconUploadcareImageEdit as _0x293e12}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2fe36f,MenuBarMenuListItemButtonView as _0x3562b1,View as _0x4eb252,FocusCycler as _0xbd3c46,Dialog as _0x21b59c,DialogViewPosition as _0x3b991b,SpinnerView as _0x12eb5f,IconView as at,Notification as _0x5c0c66}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x222885,DomEmitterMixin as _0x3db2fd,global as _0x530f25,getAncestors as _0x57bc4c,ObservableMixin as _0x42a206,createElement as _0x545e04,uid as _0x37397e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x54dfa8}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x23dd83,info as _0x5cf94c}from'@uploadcare/upload-client';import*as _0xa708e2 from'@uploadcare/file-uploader';var o=function(_0x2ccfa4){return _0x2ccfa4['Local']='local',_0x2ccfa4['URL']='url',_0x2ccfa4['Dropbox']='dropbox',_0x2ccfa4['GDrive']='gdrive',_0x2ccfa4['Facebook']='facebook',_0x2ccfa4['GPhotos']='gphotos',_0x2ccfa4['OneDrive']='onedrive',_0x2ccfa4;}({});function _(_0x3cd052,_0x129f5c,_0x1a6698){const t=_0x3cd052['t'],_0x1cd3b1=_0x3cd052['t'];switch(_0x129f5c){case o['Local']:return{'text':_0x1cd3b1('Insert'===_0x1a6698?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1cd3b1('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x1a6698?_0x1cd3b1('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1cd3b1('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x1a6698?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x1a6698?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x1a6698?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x1a6698?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x1a6698?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x129f5c;}}class e extends _0x4b1643{['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 _0x17f148=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1358b5;for(const _0x2fa73f in _0x17f148){const _0x4d2a11=_0x2fa73f,_0x5243fc=_0x17f148[_0x4d2a11];if('uploadcareLicenseKeyValid'==_0x5243fc||'uploadcareLicenseKeyInvalid'==_0x5243fc||'uploadcareLicenseKeyExpired'==_0x5243fc||'uploadcareLicenseKeyDomainLimit'==_0x5243fc||'uploadcareLicenseKeyNotAllowed'==_0x5243fc||'uploadcareLicenseKeyEvaluationLimit'==_0x5243fc||'uploadcareLicenseKeyTrialLimit'==_0x5243fc||'uploadcareLicenseKeyUsageLimit'==_0x5243fc){delete _0x17f148[_0x4d2a11],_0x1358b5=_0x5243fc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1358b5&&_0x17f148['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1358b5&&_0x17f148['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1358b5&&_0x17f148['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1358b5&&_0x17f148['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1358b5&&_0x17f148['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1358b5&&_0x17f148['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1358b5&&_0x17f148['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x28c461}=this,_0x3bac19=_0x28c461['commands']['get']('uploadcare');if(!_0x3bac19)return;const _0x3c3eee=this['_normalizeConfigSourceList'](_0x28c461['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x9904fd,_0x3bee97)=>{const _0x4bf7c0=this['_getIntegrationKey'](_0x3bee97['type']);return _0x9904fd[_0x4bf7c0]||(_0x9904fd[_0x4bf7c0]=[]),_0x9904fd[_0x4bf7c0]['push'](_0x3bee97),_0x9904fd;},{});_0x28c461['plugins']['has']('ImageInsertUI')&&_0x28c461['commands']['get']('uploadcare')&&Object['entries'](_0x3c3eee)['forEach'](([_0x2fec2e,_0x46b204])=>{_0x28c461['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2fec2e,'observable':()=>_0x3bac19,'buttonViewCreator':()=>this['_createToolbarButton'](_0x46b204),'formViewCreator':()=>this['_createDropdownButtons'](_0x46b204),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x46b204),'override':'assetManager'!==_0x2fec2e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x320379){const {locale:_0x2f57d3}=this['editor'];return _0x320379['map'](_0x3e184c=>{const _0x25fec0=_(_0x2f57d3,_0x3e184c,'Insert');switch(_0x3e184c){case o['Local']:return{'icon':_0x58afa9,'type':o['Local'],..._0x25fec0};case o['URL']:return{'icon':_0x4d4b91,'type':o['URL'],..._0x25fec0};case o['Dropbox']:return{'icon':_0x53a1d1,'type':o['Dropbox'],..._0x25fec0};case o['Facebook']:return{'icon':_0x3397b9,'type':o['Facebook'],..._0x25fec0};case o['GDrive']:return{'icon':_0x47bb7b,'type':o['GDrive'],..._0x25fec0};case o['GPhotos']:return{'icon':_0x59aa6f,'type':o['GPhotos'],..._0x25fec0};case o['OneDrive']:return{'icon':_0x1eae0c,'type':o['OneDrive'],..._0x25fec0};}});}['_getIntegrationKey'](_0x52cea1){switch(_0x52cea1){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2d5476,_0x241b68){const _0x2fea14=this['editor'],_0x31a1d5=new _0x2d5476(_0x2fea14['locale']),_0x3adeb2=_0x2fea14['commands']['get']('uploadcare');return _0x31a1d5['bind']('isEnabled')['to'](_0x3adeb2),_0x31a1d5['on']('execute',()=>{_0x3adeb2['execute'](_0x241b68);}),_0x31a1d5;}['_createToolbarButton'](_0xa1a854){const {locale:_0x1bf177}=this['editor'],_0xc71383=this['editor']['plugins']['get']('ImageInsertUI'),_0x3adb9f=_0xa1a854[0x0],_0x5e893a=this['_createButton'](_0x2fe36f,_0x3adb9f['type']);return _0x5e893a['icon']=_0x3adb9f['icon'],_0x5e893a['bind']('label')['to'](_0xc71383,'isImageSelected',_0x26453c=>_(_0x1bf177,_0x3adb9f['type'],_0x26453c?'Replace':'Insert')['text']),_0x5e893a['tooltip']=!0x0,_0x5e893a;}['_createDropdownButtons'](_0x4d3e51){const {locale:_0x4e97b1}=this['editor'],_0x2784c5=this['editor']['plugins']['get']('ImageInsertUI');return _0x4d3e51['map'](_0x160d88=>{const _0x11de5f=this['_createButton'](_0x2fe36f,_0x160d88['type']);return _0x11de5f['withText']=!0x0,_0x11de5f['icon']=_0x160d88['icon'],_0x11de5f['bind']('label')['to'](_0x2784c5,'isImageSelected',_0x8cb483=>_(_0x4e97b1,_0x160d88['type'],_0x8cb483?'Replace':'Insert')['text']),_0x11de5f;});}['_createMenuBarButtons'](_0x2df625){return _0x2df625['map'](_0x3e3f3c=>{const _0x3a9df4=this['_createButton'](_0x3562b1,_0x3e3f3c['type']);return _0x3a9df4['icon']=_0x3e3f3c['icon'],_0x3a9df4['label']=_0x3e3f3c['shortText'],_0x3a9df4;});}}class q extends _0x4eb252{['focusTracker'];['focusCycler'];constructor(_0x21e558){super(_0x21e558),this['focusTracker']=new _0x222885(),this['focusCycler']=new _0xbd3c46({'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(_0x11aa1f){super(_0x11aa1f),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(_0x31ac20,_0x1a6b04){const _0x6e2319=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3dd068=>_0x3dd068<=_0x1a6b04)['map'](_0x30d1a2=>_0x31ac20['replace'](/\/$/,'')+'/-/resize/'+_0x30d1a2+'x/\x20'+_0x30d1a2+'w');return{'imageFallbackUrl':_0x31ac20,'imageSources':[{'srcset':_0x6e2319['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1a6b04+'px)\x20100vw,\x20'+_0x1a6b04+'px','type':'image/webp'}]};}function A(_0x1d3ec2,_0x493cad,_0x5e4d48){const _0x1fb817=_0x1d3ec2['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1fb817?parseInt(_0x1fb817[0x1],0xa):_0x493cad,'height':_0x1fb817?parseInt(_0x1fb817[0x2],0xa):_0x5e4d48};}function m(_0x2ec2ae,_0x314087){const _0x3b5d1a=Object['create'](_0x3db2fd),_0x366cae=_0x2ec2ae['plugins']['get']('ImageUtils'),_0x5e549b=_0x2ec2ae['editing']['mapper']['toViewElement'](_0x314087),_0x1e35aa=_0x366cae['findViewImgElement'](_0x5e549b),_0xc5ee5=_0x2ec2ae['editing']['view']['domConverter']['viewToDom'](_0x1e35aa),_0x4e86d8=_0x314087['getAttribute']('width'),_0x361579=_0x314087['getAttribute']('height'),_0x30f9fe='image-processing';_0x2ec2ae['editing']['view']['change'](_0x1b75de=>{_0x1b75de['addClass'](_0x30f9fe,_0x5e549b),_0x1b75de['setStyle']('aspect-ratio',_0x4e86d8+'/'+_0x361579,_0x1e35aa);}),_0x3b5d1a['listenTo'](_0xc5ee5,'load',()=>{_0x3b5d1a['stopListening'](_0xc5ee5,'load'),_0x2ec2ae['editing']['view']['change'](_0x5d7d1b=>{_0x5d7d1b['removeClass'](_0x30f9fe,_0x5e549b),_0x5d7d1b['removeStyle']('aspect-ratio',_0x1e35aa);});});}function R(_0x443178){if(Array['isArray'](_0x443178)){const _0x2d5cf0=_0x443178['map'](R);return _0x5c573f=>_0x2d5cf0['some'](_0x2936f0=>_0x2936f0(_0x5c573f));}if('origin'==_0x443178){const _0x1d0cc1=_0x530f25['window']['location']['origin'];return _0x22e665=>new URL(_0x22e665,_0x530f25['document']['baseURI'])['origin']==_0x1d0cc1;}return'function'==typeof _0x443178?_0x443178:_0x443178 instanceof RegExp?_0x3e769a=>!(!_0x3e769a['match'](_0x443178)&&!_0x3e769a['replace'](/^https?:\/\//,'')['match'](_0x443178)):()=>!0x1;}function F(_0x255cba,_0x1f50dd){return _0x57bc4c(_0x255cba['target'])['includes'](_0x1f50dd);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x42a206(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5641fb,_0xf0d447,_0x1c56e5){super(),this['_editor']=_0x5641fb,this['_editing']=_0xf0d447,this['_dialog']=_0x5641fb['plugins']['get'](_0x21b59c),this['_api']=_0xf0d447['ctxElement']['getAPI'](),this['_type']=_0x1c56e5,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:_0x27b26c,model:_0x5d9ef6}=this['_editor'],_0x343b3a=_0x5d9ef6['document']['selection']['getSelectedElement'](),_0x4ba2fd=_0x343b3a&&(_0x343b3a['is']('element','imageBlock')||_0x343b3a['is']('element','imageInline'));this['_formView']=new S(_0x27b26c),this['_dialog']['show']({'id':'uploadCare','icon':_0x58afa9,'title':_(_0x27b26c,this['_type'],_0x4ba2fd?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3b991b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x44be3a=>!F(_0x44be3a,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1f97ee}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x14b6bd=>{const _0x4b3760=_0x1f97ee['length'];for(const _0x304ce4 of _0x1f97ee){const _0x5c284b=_0x304ce4===_0x1f97ee[_0x4b3760-0x1],{cdnUrl:_0x5e4c97,fileInfo:_0x28dd6a}=_0x304ce4;if(!_0x5e4c97||!_0x28dd6a)continue;const {width:_0x158cfa,height:_0x297a2b}=_0x28dd6a['imageInfo'],_0xfd2cd6=A(_0x5e4c97,_0x158cfa,_0x297a2b),_0x17be8d=E(_0x5e4c97,_0xfd2cd6['width']),_0x33a065={'id':_0x28dd6a['uuid'],'type':'image','attributes':{'imageDimension':_0xfd2cd6,..._0x17be8d}};this['_insertAsset'](_0x33a065,_0x5c284b,_0x14b6bd);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2bd005=>{'idle'===_0x2bd005['detail']['status']&&!_0x2bd005['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x23a258,_0x21cd29,_0x150b7f){const _0x35d3af=this['_editor']['model']['document']['selection'],_0x2efd02=_0x35d3af['getSelectedElement'](),_0x565a3a=!(!_0x2efd02||!_0x2efd02['is']('element','imageInline'));_0x150b7f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x23a258,_0x565a3a),_0x21cd29||_0x150b7f['setSelection'](_0x35d3af['getLastPosition']());}['_insertImage'](_0x24ef22,_0x3430f1){const _0xe9c366=this['_editor'],{imageDimension:_0x2b6090,imageFallbackUrl:_0x3eb70c,imageSources:_0x3a0bd6}=_0x24ef22['attributes'];_0xe9c366['execute']('insertImage',{'imageType':_0x3430f1?'imageInline':null,'source':{'uploadcareImageId':_0x24ef22['id'],'src':_0x3eb70c,'sources':_0x3a0bd6,..._0x2b6090}});}}class n extends _0x72aed9{['_editing'];['_controller']=null;static get['requires'](){return[_0x21b59c,i];}constructor(_0x83d885){super(_0x83d885),this['_editing']=_0x83d885['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x180b2b){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x180b2b);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1eadc5,publicKey:_0x1c39c2,signal:_0x538dc3,onProgress:_0x4b7a8c}){return _0x23dd83(_0x1eadc5,{'publicKey':_0x1c39c2,'store':'auto','signal':_0x538dc3,'onProgress':_0x4b7a8c});}static['getInfo'](_0x19aad,_0x41518b){return _0x5cf94c(_0x19aad,_0x41518b);}}class p extends _0x4b1643{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x54dfa8,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2e39a7=this['editor'];if(!!!_0x2e39a7['config']['get']('uploadcare'))return;_0x2e39a7['plugins']['get'](_0x54dfa8)['createUploadAdapter']=_0x3b4b79=>new x(_0x3b4b79,_0x2e39a7),_0x2e39a7['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x31486a,{imageElement:_0x363095,data:_0x2ba21b})=>{_0x2e39a7['model']['change'](_0x9322b2=>{_0x9322b2['setAttribute']('uploadcareImageId',_0x2ba21b['uploadcareImageId'],_0x363095);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x3ce9c4,_0x506e09){this['loader']=_0x3ce9c4,this['editor']=_0x506e09,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1f45d3=this['editor']['config']['get']('uploadcare.pubkey'),_0x2aee9e=await this['loader']['file'];return C['upload']({'file':_0x2aee9e,'publicKey':_0x1f45d3,'signal':this['controller']['signal'],'onProgress':_0x2ce2ed=>{_0x2ce2ed&&_0x2ce2ed['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2ce2ed['value']);}})['then'](async _0x4bee98=>{const {imageFallbackUrl:_0xe89006,imageSources:_0x8dd458}=E(_0x4bee98['cdnUrl'],_0x4bee98['imageInfo']['width']);return{'uploadcareImageId':_0x4bee98['uuid'],'default':_0xe89006,'sources':_0x8dd458};})['catch'](()=>{const _0x4b828a=t('Cannot\x20upload\x20file:')+('\x20'+_0x2aee9e['name']+'.');return Promise['reject'](_0x4b828a);});}['abort'](){this['controller']['abort']();}}class i extends _0x4b1643{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x21b59c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x5ea3bf=this['editor'];_0x5ea3bf['commands']['add']('uploadcare',new n(_0x5ea3bf));}['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 _0x2f49a4=_0x530f25['document']['querySelector']('input[uploadcare-file-input]');_0x2f49a4&&_0x2f49a4['remove']();}),async function(_0x1133e5){const _0x5d4fc8=_0x1988ac([0x65,0x31,0x6d,0x43,0x70,0x4f,0x48,0x6a,0x64,0x6e,0x6f,0x51,0x44,0x6b,0x46,0x56,0x74,0x4a,0x58,0x69,0x75,0x68,0x76,0x52,0x61,0x38,0x37,0x34,0x47,0x55,0x35,0x67,0x78,0x71,0x49,0x66,0x5a,0x4c,0x63,0x50,0x73,0x7a,0x41,0x62,0x30,0x42,0x53,0x57,0x4b,0x54,0x36,0x6c,0x32,0x59,0x4d,0x4e,0x45,0x77,0x72,0x33,0x39,0x79]),_0x24c191=0x79a48d67,_0x6ad93a=0x79a3e927^_0x24c191,_0x458722=window[_0x1988ac([0x44,0x61,0x74,0x65])][_0x1988ac([0x6e,0x6f,0x77])](),_0x555aa9=_0x1133e5[_0x1988ac([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x17b2a2=new window[(_0x1988ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a6513=>{_0x555aa9[_0x1988ac([0x6f,0x6e,0x63,0x65])](_0x1988ac([0x72,0x65,0x61,0x64,0x79]),_0x1a6513);}),_0x34a140={[_0x1988ac([0x6b,0x74,0x79])]:_0x1988ac([0x45,0x43]),[_0x1988ac([0x75,0x73,0x65])]:_0x1988ac([0x73,0x69,0x67]),[_0x1988ac([0x63,0x72,0x76])]:_0x1988ac([0x50,0x2d,0x32,0x35,0x36]),[_0x1988ac([0x78])]:_0x1988ac([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]),[_0x1988ac([0x79])]:_0x1988ac([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]),[_0x1988ac([0x61,0x6c,0x67])]:_0x1988ac([0x45,0x53,0x32,0x35,0x36])},_0x4ae53f=_0x555aa9[_0x1988ac([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1988ac([0x67,0x65,0x74])](_0x1988ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x14c5b9(){let _0x515388,_0x27e3d4=null,_0x57a72c=null;try{if(_0x4ae53f==_0x1988ac([0x47,0x50,0x4c]))return _0x1988ac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x515388=_0xfbe3b7(),!_0x515388)return _0x1988ac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x515388[_0x1988ac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x57a72c=_0x28c7d2(_0x515388[_0x1988ac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x515388[_0x1988ac([0x6a,0x74,0x69])])),await _0x5b465b()?_0x4d994e()?_0x26375b()?_0x1988ac([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e06f2()?(_0x515388[_0x1988ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1988ac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x27e3d4=_0x4ce457(_0x1988ac([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x515388[_0x1988ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1988ac([0x74,0x72,0x69,0x61,0x6c])&&(_0x27e3d4=_0x4ce457(_0x1988ac([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f20bd()):_0x1988ac([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1988ac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1988ac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1c21a9){return _0x1988ac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x26375b(){const _0x3f80f4=[_0x1988ac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1988ac([0x74,0x72,0x69,0x61,0x6c])][_0x1988ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x515388[_0x1988ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x458722/0x3e8:0xe10*_0x6ad93a;return _0x515388[_0x1988ac([0x65,0x78,0x70])]<_0x3f80f4;}function _0x4d994e(){const _0x146bf5=_0x515388[_0x1988ac([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x146bf5&&(!!_0x146bf5[_0x1988ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1988ac([0x2a]))||!!_0x146bf5[_0x1988ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1988ac([0x55,0x50,0x4c,0x43])));}function _0x3e06f2(){const _0x2ab5ac=_0x515388[_0x1988ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ab5ac||0x0==_0x2ab5ac[_0x1988ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1363d0}=new URL(window[_0x1988ac([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2ab5ac[_0x1988ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1363d0))return!0x0;const _0x3de00c=_0x1363d0[_0x1988ac([0x73,0x70,0x6c,0x69,0x74])](_0x1988ac([0x2e]));return _0x2ab5ac[_0x1988ac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4584de=>_0x4584de[_0x1988ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1988ac([0x2a])))[_0x1988ac([0x6d,0x61,0x70])](_0x2885b1=>_0x2885b1[_0x1988ac([0x73,0x70,0x6c,0x69,0x74])](_0x1988ac([0x2e])))[_0x1988ac([0x73,0x6f,0x6d,0x65])](_0x345530=>_0x3de00c[_0x1988ac([0x65,0x76,0x65,0x72,0x79])]((_0xb8aaf8,_0x2abb05)=>_0x345530[_0x2abb05]===_0xb8aaf8||_0x345530[_0x2abb05]===_0x1988ac([0x2a])));}function _0x2f20bd(){return _0x27e3d4&&_0x57a72c?new window[(_0x1988ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x29b4d5,_0x540c87)=>{_0x27e3d4[_0x1988ac([0x74,0x68,0x65,0x6e])](_0x29b4d5,_0x540c87),_0x57a72c[_0x1988ac([0x74,0x68,0x65,0x6e])](_0x3edba2=>{_0x3edba2!=_0x1988ac([0x56,0x61,0x6c,0x69,0x64])&&_0x29b4d5(_0x3edba2);},_0x540c87);}):_0x27e3d4||_0x57a72c||_0x1988ac([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28c7d2(_0x45bb57,_0x46c683){return new window[(_0x1988ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x396ff6=>{if(_0x339f3c())return _0x396ff6(_0x1988ac([0x56,0x61,0x6c,0x69,0x64]));_0x21eac2(),_0x555aa9[_0x1988ac([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1988ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x514918=!0x1;const _0x5c1312=_0x37397e();function _0x114cb6(_0x3a58a6){return!!_0x3a58a6&&(typeof _0x3a58a6===_0x1988ac([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3a58a6===_0x1988ac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3a58a6[_0x1988ac([0x74,0x68,0x65,0x6e])]===_0x1988ac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3a58a6[_0x1988ac([0x63,0x61,0x74,0x63,0x68])]===_0x1988ac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x9e06e6(_0x40791){_0x503553(_0x40791)[_0x1988ac([0x74,0x68,0x65,0x6e])](_0x45b290=>{if(!_0x45b290||_0x45b290[_0x1988ac([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1988ac([0x6f,0x6b]))return _0x1988ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x895736(_0x3490e5(_0x5c1312+_0x46c683))!=_0x45b290[_0x1988ac([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1988ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1988ac([0x56,0x61,0x6c,0x69,0x64]);})[_0x1988ac([0x74,0x68,0x65,0x6e])](_0x431c5c=>(_0x336a08(),_0x431c5c),()=>{const _0xe0892f=_0x2f2c9f();return null==_0xe0892f?(_0x336a08(),_0x1988ac([0x56,0x61,0x6c,0x69,0x64])):_0x1988ac(_0x458722-_0xe0892f>(0x5da80967^_0x24c191)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1988ac([0x74,0x68,0x65,0x6e])](_0x396ff6)[_0x1988ac([0x63,0x61,0x74,0x63,0x68])](()=>{_0x396ff6(_0x1988ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4f703d=0x799263e7^_0x24c191;function _0x336a08(){const _0x524d3d=_0x1988ac([0x6c,0x6c,0x63,0x74,0x2d])+_0x895736(_0x3490e5(_0x45bb57)),_0x2f651e=_0x180524(_0x895736(window[_0x1988ac([0x4d,0x61,0x74,0x68])][_0x1988ac([0x63,0x65,0x69,0x6c])](_0x458722/_0x4f703d)));window[_0x1988ac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1988ac([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x524d3d,_0x2f651e);}function _0x2f2c9f(){const _0x33078f=_0x1988ac([0x6c,0x6c,0x63,0x74,0x2d])+_0x895736(_0x3490e5(_0x45bb57)),_0x447d75=window[_0x1988ac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1988ac([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33078f);return _0x447d75?window[_0x1988ac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x180524(_0x447d75),0x10)*_0x4f703d:null;}function _0x503553(_0x2c3ed4){return new window[(_0x1988ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9b40c,_0x3ccb45)=>{_0x2c3ed4[_0x1988ac([0x74,0x68,0x65,0x6e])](_0x9b40c,_0x3ccb45),window[_0x1988ac([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3ccb45,0x79a559a7^_0x24c191);});}}_0x555aa9[_0x1988ac([0x6f,0x6e])](_0x1988ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5579f6,_0x351851)=>{if(_0x351851[0x0]!=_0x45bb57)return _0x396ff6(_0x1988ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x351851[0x1]={..._0x351851[0x1],[_0x1988ac([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5c1312};},{[_0x1988ac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1988ac([0x68,0x69,0x67,0x68])}),_0x555aa9[_0x1988ac([0x6f,0x6e])](_0x1988ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55949a=>{_0x114cb6(_0x55949a[_0x1988ac([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x514918=!0x0,_0x9e06e6(_0x55949a[_0x1988ac([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1988ac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1988ac([0x6c,0x6f,0x77])}),_0x17b2a2[_0x1988ac([0x74,0x68,0x65,0x6e])](()=>{_0x514918||_0x396ff6(_0x1988ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x339f3c(){return _0x555aa9[_0x1988ac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1988ac([0x76,0x69,0x65,0x77])][_0x1988ac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1988ac([0x61,0x75,0x74,0x6f]);}function _0x21eac2(){_0x555aa9[_0x1988ac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1988ac([0x76,0x69,0x65,0x77])][_0x1988ac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1988ac([0x61,0x75,0x74,0x6f]);}}function _0x4ce457(_0x2a628e){const _0x230adf=[new window[(_0x1988ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5763f7=>setTimeout(_0x5763f7,0x79adb3ab^_0x24c191)),_0x17b2a2[_0x1988ac([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1988ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42f1c4=>{let _0x3a41c9=0x0;_0x555aa9[_0x1988ac([0x6d,0x6f,0x64,0x65,0x6c])][_0x1988ac([0x6f,0x6e])](_0x1988ac([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x10bf71,_0x50711d)=>{_0x50711d[0x0][_0x1988ac([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a41c9++,_0x3a41c9==(0x79a48c9f^_0x24c191)&&(_0x42f1c4(),_0x10bf71[_0x1988ac([0x6f,0x66,0x66])]());});}))];return window[_0x1988ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1988ac([0x72,0x61,0x63,0x65])](_0x230adf)[_0x1988ac([0x74,0x68,0x65,0x6e])](()=>_0x2a628e);}async function _0x5391d2(){await _0x17b2a2,_0x555aa9[_0x1988ac([0x6d,0x6f,0x64,0x65,0x6c])][_0x1988ac([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4f75f0,_0x555aa9[_0x1988ac([0x6d,0x6f,0x64,0x65,0x6c])][_0x1988ac([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4f75f0,_0x555aa9[_0x1988ac([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1988ac([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f7959(_0x2a9345){const _0x33cea2=_0x4be907();_0x555aa9[_0x33cea2]=_0x1988ac([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a9345,_0x2a9345!=_0x1988ac([0x56,0x61,0x6c,0x69,0x64])&&_0x5391d2();}function _0x4be907(){const _0x57965a=window[_0x1988ac([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1988ac([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1988ac([0x6e,0x6f,0x77])]())[_0x1988ac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1988ac([0x2e]),'');let _0x2bd110=_0x1988ac([0x65]);for(let _0x5e37ad=0x0;_0x5e37ad<_0x57965a[_0x1988ac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e37ad+=0x2){let _0x5d993d=window[_0x1988ac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57965a[_0x1988ac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e37ad,_0x5e37ad+0x2));_0x5d993d>=_0x5d4fc8[_0x1988ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d993d-=_0x5d4fc8[_0x1988ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2bd110+=_0x5d4fc8[_0x5d993d];}return _0x2bd110;}function _0xfbe3b7(){const _0x462430=_0x4ae53f[_0x1988ac([0x73,0x70,0x6c,0x69,0x74])](_0x1988ac([0x2e]));if(0x3!=_0x462430[_0x1988ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x26020e(_0x462430[0x1]);function _0x26020e(_0x1260d9){const _0x5ddd45=_0x140978(_0x1260d9);return _0x5ddd45&&_0xe6b755()?_0x5ddd45:null;function _0xe6b755(){const _0x3deba3=_0x5ddd45[_0x1988ac([0x6a,0x74,0x69])],_0xe83dd0=window[_0x1988ac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3deba3[_0x1988ac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3deba3[_0x1988ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d85d2={..._0x5ddd45,[_0x1988ac([0x6a,0x74,0x69])]:_0x3deba3[_0x1988ac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3deba3[_0x1988ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d85d2[_0x1988ac([0x76,0x63])],_0x3490e5(_0x2d85d2)==_0xe83dd0;}}}async function _0x5b465b(){let _0x261723=!0x0;try{const _0x5975fe=_0x4ae53f[_0x1988ac([0x73,0x70,0x6c,0x69,0x74])](_0x1988ac([0x2e])),[_0x472df5,_0x510569,_0x33c8e9]=_0x5975fe;return _0x1cf830(_0x472df5),await _0x3d09ee(_0x472df5,_0x510569,_0x33c8e9),_0x261723;}catch(_0x44358c){return!0x1;}function _0x1cf830(_0x533a14){const _0x5dd0a1=_0x140978(_0x533a14);_0x5dd0a1&&_0x5dd0a1[_0x1988ac([0x61,0x6c,0x67])]==_0x1988ac([0x45,0x53,0x32,0x35,0x36])||(_0x261723=!0x1);}async function _0x3d09ee(_0x4ec933,_0x1b20da,_0xe1d2f4){const _0x4ef77c=window[_0x1988ac([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1988ac([0x66,0x72,0x6f,0x6d])](_0x277f0c(_0xe1d2f4),_0x3d15d0=>_0x3d15d0[_0x1988ac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x387142=new window[(_0x1988ac([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1988ac([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ec933+_0x1988ac([0x2e])+_0x1b20da),_0x2b4b62=window[_0x1988ac([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1988ac([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2b4b62)return;const _0x366daa=await _0x2b4b62[_0x1988ac([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1988ac([0x6a,0x77,0x6b]),_0x34a140,{[_0x1988ac([0x6e,0x61,0x6d,0x65])]:_0x1988ac([0x45,0x43,0x44,0x53,0x41]),[_0x1988ac([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1988ac([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1988ac([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2b4b62[_0x1988ac([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1988ac([0x6e,0x61,0x6d,0x65])]:_0x1988ac([0x45,0x43,0x44,0x53,0x41]),[_0x1988ac([0x68,0x61,0x73,0x68])]:{[_0x1988ac([0x6e,0x61,0x6d,0x65])]:_0x1988ac([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x366daa,_0x4ef77c,_0x387142)||(_0x261723=!0x1);}}function _0x140978(_0x16b350){return _0x16b350[_0x1988ac([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1988ac([0x65,0x79]))?JSON[_0x1988ac([0x70,0x61,0x72,0x73,0x65])](_0x277f0c(_0x16b350)):null;}function _0x277f0c(_0xd06cf){return window[_0x1988ac([0x61,0x74,0x6f,0x62])](_0xd06cf[_0x1988ac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1988ac([0x2b]))[_0x1988ac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1988ac([0x2f])));}function _0x3490e5(_0xcd3d2b){let _0x4fee23=0x1505;function _0x4755bd(_0x23ad8b){for(let _0x427414=0x0;_0x427414<_0x23ad8b[_0x1988ac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x427414++){const _0x3d49bc=_0x23ad8b[_0x1988ac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x427414);_0x4fee23=(_0x4fee23<<0x5)+_0x4fee23+_0x3d49bc,_0x4fee23&=_0x4fee23;}}function _0x153734(_0x497902){Array[_0x1988ac([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x497902)?_0x497902[_0x1988ac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x153734):_0x497902&&typeof _0x497902==_0x1988ac([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1988ac([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x497902)[_0x1988ac([0x73,0x6f,0x72,0x74])]()[_0x1988ac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x150c43,_0x483706])=>{_0x4755bd(_0x150c43),_0x153734(_0x483706);}):_0x4755bd(window[_0x1988ac([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x497902));}return _0x153734(_0xcd3d2b),_0x4fee23>>>0x0;}function _0x895736(_0xb300b7){return _0xb300b7[_0x1988ac([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1988ac([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1988ac([0x30]));}function _0x180524(_0x5d605d){return _0x5d605d[_0x1988ac([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1988ac([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1988ac([0x6a,0x6f,0x69,0x6e])]('');}function _0x4f75f0(){}function _0x1988ac(_0x146a31){return _0x146a31['map'](_0x1b47f1=>String['fromCharCode'](_0x1b47f1))['join']('');}_0x3f7959(await _0x14c5b9());}(this);}['_initSchema'](){const _0x3e194a=this['editor']['model']['schema'];_0x3e194a['isRegistered']('imageBlock')&&_0x3e194a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3e194a['isRegistered']('imageInline')&&_0x3e194a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x114089=this['editor'];_0x114089['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x114089['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4c305a=>_0x4c305a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5cfa38=_0x114089['commands']['get']('replaceImageSource');_0x5cfa38&&this['listenTo'](_0x5cfa38,'cleanupImage',(_0x37a23d,[_0x37f4ac,_0x59bc70])=>{_0x37f4ac['removeAttribute']('uploadcareImageId',_0x59bc70);});}['_initConfig'](){const _0x3c12f6=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1c6dfe=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x545e04(_0x530f25['document'],'uc-config',{..._0x3c12f6,'pubkey':_0x1c6dfe,'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']=_0x1c928c=>{if('closeMax'==_0x1c928c)return'#uc-icon-arrow-down';},_0x530f25['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x545e04(_0x530f25['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x530f25['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2abb58=this['editor']['commands']['get']('insertImage');_0x2abb58&&this['listenTo'](_0x2abb58,'execute',()=>{const _0x102d30=this['editor']['model']['document']['selection']['getSelectedElement']();_0x102d30&&_0x102d30['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x102d30);});});const _0x5ee37b=this['editor']['commands']['get']('uploadcareImageReplace');_0x5ee37b&&this['listenTo'](_0x5ee37b,'execute',()=>{const _0x57dfeb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x57dfeb&&_0x57dfeb['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x57dfeb);});});}}class u extends _0x4b1643{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x544705){super(_0x544705),_0x544705['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0xa708e2['defineComponents'](_0xa708e2);}}class ta extends _0x4eb252{constructor(_0x20eb90){super(_0x20eb90);const t=_0x20eb90['t'],_0x328e2c=this['bindTemplate'],_0xb95656=new _0x12eb5f();_0xb95656['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':[_0xb95656,{'text':_0x328e2c['to']('imageUploadProgress',_0xcde10a=>t('Loading\x20image...')+'\x20('+(_0xcde10a||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 _0x4eb252{constructor(_0x50f3a8){super(_0x50f3a8);const t=_0x50f3a8['t'];this['set']('errorType',null);const _0x4383ef=new _0x2fe36f(_0x50f3a8);_0x4383ef['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4383ef['withText']=!0x0,_0x4383ef['class']='ck-button-action',_0x4383ef['on']('execute',()=>{this['fire']('retry');}),_0x4383ef['bind']('isVisible')['to'](this,'errorType',_0x23c617=>'NotFound'!==_0x23c617);const _0x5d9d5d=new at();_0x5d9d5d['content']=et,_0x5d9d5d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2753a1=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':[_0x5d9d5d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2753a1['to']('errorType',_0x51566a=>t('NotFound'!==_0x51566a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4383ef]},{'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 _0x4eb252{constructor(_0x569c67,_0x182e71){super(_0x569c67);const _0x14ceaa=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x182e71,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x14ceaa['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x318ef1,_0x547232,_0x50097b){super(_0x318ef1),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x318ef1),this['_errorView']=new rt(_0x318ef1),this['_editingView']=new tt(_0x318ef1,_0x50097b),this['_focusableView']=new _0x4eb252(_0x318ef1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x547232),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'],_0x104ccf=>{this['_addUploadcareImageEditorListeners'](_0x104ccf);});}),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'](_0x5e8ce2,_0x16cda7){const _0x53d298='uc-cloud-image-editor',_0x2fd0e3=_0x5e8ce2['querySelector'](_0x53d298);if(_0x2fd0e3)return _0x16cda7(_0x2fd0e3);const _0x273e73=new MutationObserver(_0x2af926=>{const _0x12f832=_0x2af926['filter'](_0x1374bc=>_0x1374bc['target']===_0x5e8ce2&&_0x1374bc['addedNodes']['length']>0x0&&_0x1374bc['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x53d298);_0x12f832['length']&&(_0x273e73['disconnect'](),_0x16cda7(_0x12f832[0x0]['addedNodes'][0x0]));});_0x273e73['observe'](_0x5e8ce2,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x19b75c){_0x19b75c['addEventListener']('apply',_0x26571f=>{this['fire']('apply',{'imageSrc':_0x26571f['detail']['cdnUrl']});}),_0x19b75c['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class O extends/* #__PURE__ -- @preserve */
25
+ _0x42a206(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x53dcf3,_0x1b0168,_0x1fe963){super(),this['_editor']=_0x53dcf3,this['_dialog']=_0x1b0168,this['_imageElement']=_0x1fe963,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 _0x3f4797=this['_imageElement'],_0x177410=_0x3f4797['getAttribute']('uploadcareImageId'),_0x1cd6ce=_0x3f4797['getAttribute']('src');if(_0x177410)await this['_loadImageInfo'](_0x177410,_0x1cd6ce);else{if(this['_imageCache']['has'](_0x1cd6ce)){const _0x3fd6c1=this['_imageCache']['get'](_0x1cd6ce);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3fd6c1['url'],this['imageDimension']=_0x3fd6c1['dimension'],this['imageId']=_0x3fd6c1['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x52f4b7}=this['_editor'],t=_0x52f4b7['t'],_0x2d6291=new Z(_0x52f4b7,this['imageStatus'],this['_attributes']);_0x2d6291['bind']('status')['to'](this,'imageStatus'),_0x2d6291['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2d6291['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2d6291['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2d6291,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x293e12,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2d6291,'position':_0x3b991b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2d6291['focus']();},'onHide':()=>{_0x2d6291['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2b2441=>!F(_0x2b2441,_0x2d6291['element'])}});}['_loadImageInfo'](_0x3b78e7,_0x127062){return C['getInfo'](_0x3b78e7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2a89e2=>{const {width:_0x210bc8,height:_0x100ac4}=_0x2a89e2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x127062,this['imageDimension']={'width':_0x210bc8,'height':_0x100ac4},this['imageId']=_0x3b78e7;})['catch'](_0x36245b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x36245b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5344d0,_0x26b11b){return this['_getImageAsFile'](_0x5344d0)['then'](_0x46716f=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x26b11b['signal'],'file':_0x46716f,'onProgress':_0x1186d3=>{_0x1186d3&&_0x1186d3['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1186d3['value']));}}))['then'](_0x56ccaf=>{const {width:_0x4b1e75,height:_0x3478be}=_0x56ccaf['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x56ccaf['cdnUrl'],this['imageDimension']={'width':_0x4b1e75,'height':_0x3478be},this['imageId']=_0x56ccaf['uuid'],this['imageUploadProgress']=null;const _0xdae2f3=_0x5344d0['getAttribute']('src');this['_imageCache']['set'](_0xdae2f3,{'id':_0x56ccaf['uuid'],'url':_0x56ccaf['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x22673a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x22673a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x117fe8,_0xbf5dd6){_0x117fe8['on']('apply',(_0x293e5c,_0x4971cb)=>{this['_replaceImage'](_0xbf5dd6,_0x4971cb['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x117fe8['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x117fe8['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x25d4ef,_0x5bf45a,_0x24d3c1){const _0x51df0b=this['_editor'],{width:_0x5cf1d1,height:_0xae46e9}=A(_0x5bf45a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xe5752e,imageSources:_0x4f9e31}=E(_0x5bf45a,_0x5cf1d1);_0x51df0b['model']['change'](_0x5da03d=>{if('$graveyard'===_0x25d4ef['root']['rootName']){_0x51df0b['execute']('insertImage',{'imageType':_0x25d4ef['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x25d4ef['getAttributes']()),'uploadcareImageId':_0x24d3c1,'src':_0xe5752e,'sources':_0x4f9e31,'width':_0x5cf1d1,'height':_0xae46e9}});const _0x1990bb=_0x25d4ef['getChildren']();_0x25d4ef=_0x51df0b['model']['document']['selection']['getSelectedElement']();for(const _0x299ce6 of _0x1990bb)_0x5da03d['append'](_0x5da03d['cloneElement'](_0x299ce6),_0x25d4ef);}else _0x5da03d['setSelection'](_0x25d4ef,'on'),_0x51df0b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x25d4ef['getAttributes']()),'uploadcareImageId':_0x24d3c1,'src':_0xe5752e,'sources':_0x4f9e31,'width':_0x5cf1d1,'height':_0xae46e9},_0x25d4ef);_0x5da03d['setSelection'](_0x25d4ef,'on');});}async['_getImageAsFile'](_0x25a191){const _0x2d9693=_0x530f25['window'],_0x136dc0=_0x530f25['document']['location']['href'],_0x814334=new _0x2d9693['URL'](_0x25a191['getAttribute']('src'),_0x136dc0);if('data:'===_0x814334['protocol']){const _0x3817ac=_0x814334['href']['split'](','),_0x5cc0d4=_0x3817ac[0x0]['match'](/:(.*?);/)[0x1],_0xae1073=_0x5cc0d4['split']('/')[0x1],_0x394c4e=_0x2d9693['atob'](_0x3817ac[_0x3817ac['length']-0x1]);let _0x38b195=_0x394c4e['length'];const _0x305150=new _0x2d9693['Uint8Array'](_0x38b195);for(;_0x38b195--;)_0x305150[_0x38b195]=_0x394c4e['charCodeAt'](_0x38b195);return new _0x2d9693['File']([_0x305150],'image.'+_0xae1073,{'type':_0x5cc0d4});}const _0x4edb9c=_0x814334['href']['split']('/'),_0x53393c=_0x4edb9c[_0x4edb9c['length']-0x1],_0x43aa12=_0x53393c['split']('.')[0x1];return _0x2d9693['fetch'](_0x814334['href'])['then'](_0xe9be15=>_0xe9be15['clone']()['blob']())['then'](_0x23966a=>new _0x2d9693['File']([_0x23966a],_0x53393c,{'type':'image/'+_0x43aa12}));}}class V extends _0x72aed9{['imageEditController'];static get['requires'](){return[_0x21b59c];}['_isEditable'];constructor(_0x257368){super(_0x257368),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5a8cc6){const _0x164b41=R(_0x5a8cc6);return _0x368d53=>!(!_0x368d53||!_0x368d53['is']('element','imageBlock')&&!_0x368d53['is']('element','imageInline'))&&(!!_0x368d53['hasAttribute']('uploadcareImageId')||!!_0x368d53['hasAttribute']('src')&&_0x164b41(_0x368d53['getAttribute']('src')));}(_0x257368['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3b0136=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3b0136);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x29ab2f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x29ab2f&&(_0x29ab2f['is']('element','imageBlock')||_0x29ab2f['is']('element','imageInline'))&&(this['imageEditController']=new O(this['editor'],this['editor']['plugins']['get'](_0x21b59c),_0x29ab2f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class X extends _0x72aed9{['refresh'](){const _0x34b3ab=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x34b3ab&&(_0x34b3ab['is']('element','imageBlock')||_0x34b3ab['is']('element','imageInline')));}['execute'](_0x166e31){const _0x520050=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5cea34=>{_0x5cea34['setAttributes'](_0x166e31,_0x520050),_0x5cea34['removeAttribute']('srcset',_0x520050),_0x5cea34['removeAttribute']('sizes',_0x520050);});}}class g extends _0x4b1643{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x5c0c66,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3ce206}=this;_0x3ce206['commands']['add']('uploadcareImageEdit',new V(_0x3ce206)),_0x3ce206['commands']['add']('uploadcareImageReplace',new X(_0x3ce206));}}class j extends _0x4b1643{['_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 _0x1177d3=this['editor'];_0x1177d3['ui']['componentFactory']['add']('uploadcareImageEdit',_0x29e23a=>{const _0x1424c9=_0x1177d3['commands']['get']('uploadcareImageEdit'),_0x38d95d=new _0x2fe36f(_0x29e23a),t=_0x29e23a['t'];return _0x38d95d['set']({'icon':_0x293e12,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x38d95d['bind']('isEnabled')['to'](_0x1424c9),_0x38d95d['bind']('isOn')['to'](_0x1424c9,'isActive'),this['listenTo'](_0x38d95d,'execute',()=>{_0x1177d3['execute']('uploadcareImageEdit'),_0x1177d3['editing']['view']['focus']();}),_0x38d95d;}),this['_initConfig']();}['_initConfig'](){const _0x3b2fa6=_0x545e04(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3b2fa6),this['listenTo'](this['editor'],'destroy',()=>{_0x3b2fa6['remove']();});}}class P extends _0x4b1643{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": "45.0.0-alpha.10",
3
+ "version": "45.0.0-alpha.11",
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": "45.0.0-alpha.10",
27
- "@ckeditor/ckeditor5-icons": "45.0.0-alpha.10",
28
- "@ckeditor/ckeditor5-image": "45.0.0-alpha.10",
29
- "@ckeditor/ckeditor5-theme-lark": "45.0.0-alpha.10",
30
- "@ckeditor/ckeditor5-ui": "45.0.0-alpha.10",
31
- "@ckeditor/ckeditor5-upload": "45.0.0-alpha.10",
32
- "@ckeditor/ckeditor5-utils": "45.0.0-alpha.10",
33
- "ckeditor5": "45.0.0-alpha.10",
26
+ "@ckeditor/ckeditor5-core": "45.0.0-alpha.11",
27
+ "@ckeditor/ckeditor5-icons": "45.0.0-alpha.11",
28
+ "@ckeditor/ckeditor5-image": "45.0.0-alpha.11",
29
+ "@ckeditor/ckeditor5-theme-lark": "45.0.0-alpha.11",
30
+ "@ckeditor/ckeditor5-ui": "45.0.0-alpha.11",
31
+ "@ckeditor/ckeditor5-upload": "45.0.0-alpha.11",
32
+ "@ckeditor/ckeditor5-utils": "45.0.0-alpha.11",
33
+ "ckeditor5": "45.0.0-alpha.11",
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
- const _0x121a47=_0x581b;(function(_0x2fbab1,_0x5f0451){const _0x16393a=_0x581b,_0x44a37a=_0x2fbab1();while(!![]){try{const _0x5acdc5=parseInt(_0x16393a(0x19a))/0x1+-parseInt(_0x16393a(0x1be))/0x2+-parseInt(_0x16393a(0x1c8))/0x3+parseInt(_0x16393a(0x1d6))/0x4*(-parseInt(_0x16393a(0x195))/0x5)+parseInt(_0x16393a(0x1af))/0x6*(parseInt(_0x16393a(0x1b8))/0x7)+parseInt(_0x16393a(0x1dc))/0x8+-parseInt(_0x16393a(0x1d0))/0x9*(-parseInt(_0x16393a(0x1a2))/0xa);if(_0x5acdc5===_0x5f0451)break;else _0x44a37a['push'](_0x44a37a['shift']());}catch(_0x372433){_0x44a37a['push'](_0x44a37a['shift']());}}}(_0x1595,0x2b72c));import{Plugin as _0x1d5723}from'ckeditor5/src/core.js';function _0x1595(){const _0x4c8275=['uploader','PictureEditing','init','imageBlock','attributeToAttribute','replaceImageSource','querySelector','18lpAzWB','_initCtx','execute','downcast','get','join','124fCUnxM','isPremiumPlugin','uploadcareImageReplace','\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','#uc-icon-arrow-down','removeAttribute','391512EzGTjC','once','afterInit','imageInline','href','requires','view','body','_initConversion','uploadcare.pubkey','uc-config','conversion','uploadcare.uploader','15485DWFpFa','cleanupImage','listenTo','map','getAttribute','44293xVHoqS','uc-upload-ctx-provider','extend','document','configElement','_ctxElement','iconHrefResolver','input[uploadcare-file-input]','256030KdAGgw','_initConfig','pluginName','_configElement','model','UploadcareEditing','editing','destroy','data-uc-image-id','schema','_initImageProcessingIndicator','true','uploadcareImageId','12JeikaB','isOfficialPlugin','getSelectedElement','closeMax','isRegistered','uploadcare','contentLanguage','_initSchema','upcast','1185856jgkijq','config','for','insertImage','editor','ctxElement','182854LKwRKt','remove','commands','elementToAttribute','add','locale','render','selection','fromCharCode','appendChild','353568sSganC'];_0x1595=function(){return _0x4c8275;};return _0x1595();}function _0x581b(_0x2a9375,_0x867f1e){const _0x159501=_0x1595();return _0x581b=function(_0x581bdb,_0x164320){_0x581bdb=_0x581bdb-0x18b;let _0x3cdbc7=_0x159501[_0x581bdb];return _0x3cdbc7;},_0x581b(_0x2a9375,_0x867f1e);}import{Dialog as _0x24d032}from'ckeditor5/src/ui.js';import{createElement as _0x365870,global as _0x2ee5f1,uid as _0x4664c4}from'ckeditor5/src/utils.js';import _0x2a7bd1 from'./uploadcarecommand.js';import _0x3d5521 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3ef294}from'./utils/editingutils.js';export default class i extends _0x1d5723{[_0x121a47(0x1a5)]=null;[_0x121a47(0x19f)]=null;static get[_0x121a47(0x1a4)](){const _0x5b96a6=_0x121a47;return _0x5b96a6(0x1a7);}static get[_0x121a47(0x18d)](){const _0x1632b5=_0x121a47;return[_0x1632b5(0x1ca),_0x3d5521,_0x24d032];}static get[_0x121a47(0x1b0)](){return!0x0;}static get[_0x121a47(0x1d7)](){return!0x0;}get[_0x121a47(0x19e)](){const _0xb3f0b5=_0x121a47;return this[_0xb3f0b5(0x1a5)];}get[_0x121a47(0x1bd)](){const _0x53d445=_0x121a47;return this[_0x53d445(0x19f)];}[_0x121a47(0x1cb)](){const _0x46dea3=_0x121a47,_0x2025cc=this[_0x46dea3(0x1bc)];_0x2025cc[_0x46dea3(0x1c0)][_0x46dea3(0x1c2)](_0x46dea3(0x1b4),new _0x2a7bd1(_0x2025cc));}[_0x121a47(0x1de)](){const _0xcbb987=_0x121a47;this[_0xcbb987(0x1b6)](),this[_0xcbb987(0x190)](),this[_0xcbb987(0x1a3)](),this[_0xcbb987(0x1d1)](),this[_0xcbb987(0x1ac)](),this[_0xcbb987(0x197)](this[_0xcbb987(0x1bc)],_0xcbb987(0x1a9),()=>{const _0x4f3a34=_0xcbb987;this[_0x4f3a34(0x1a5)]&&(this[_0x4f3a34(0x1a5)][_0x4f3a34(0x1bf)](),this[_0x4f3a34(0x1a5)]=null),this[_0x4f3a34(0x19f)]&&(this[_0x4f3a34(0x19f)][_0x4f3a34(0x1bf)](),this[_0x4f3a34(0x19f)]=null);const _0x3a92d0=_0x2ee5f1[_0x4f3a34(0x19d)][_0x4f3a34(0x1cf)](_0x4f3a34(0x1a1));_0x3a92d0&&_0x3a92d0[_0x4f3a34(0x1bf)]();}),async function(_0x43b5be){const _0x383618=_0x58e9d9([0x6a,0x4f,0x77,0x76,0x55,0x53,0x58,0x43,0x57,0x78,0x5a,0x36,0x79,0x30,0x61,0x72,0x45,0x44,0x6c,0x4a,0x50,0x4e,0x75,0x39,0x37,0x38,0x33,0x42,0x32,0x56,0x63,0x66,0x49,0x59,0x54,0x73,0x6e,0x47,0x35,0x41,0x4b,0x69,0x67,0x31,0x52,0x4d,0x7a,0x48,0x65,0x70,0x71,0x46,0x68,0x6d,0x64,0x34,0x74,0x6f,0x6b,0x4c,0x62,0x51]),_0x1b8433=0x504ac03c,_0x596b58=0x504da414^_0x1b8433,_0x26c48a=window[_0x58e9d9([0x44,0x61,0x74,0x65])][_0x58e9d9([0x6e,0x6f,0x77])](),_0x54de97=_0x43b5be[_0x58e9d9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3158c0=new window[(_0x58e9d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59028d=>{_0x54de97[_0x58e9d9([0x6f,0x6e,0x63,0x65])](_0x58e9d9([0x72,0x65,0x61,0x64,0x79]),_0x59028d);}),_0x1ae4bf={[_0x58e9d9([0x6b,0x74,0x79])]:_0x58e9d9([0x45,0x43]),[_0x58e9d9([0x75,0x73,0x65])]:_0x58e9d9([0x73,0x69,0x67]),[_0x58e9d9([0x63,0x72,0x76])]:_0x58e9d9([0x50,0x2d,0x32,0x35,0x36]),[_0x58e9d9([0x78])]:_0x58e9d9([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]),[_0x58e9d9([0x79])]:_0x58e9d9([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]),[_0x58e9d9([0x61,0x6c,0x67])]:_0x58e9d9([0x45,0x53,0x32,0x35,0x36])},_0x21f9f2=_0x54de97[_0x58e9d9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x58e9d9([0x67,0x65,0x74])](_0x58e9d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1a9a0a(){let _0x22b854,_0x39eded=null,_0x158617=null;try{if(_0x21f9f2==_0x58e9d9([0x47,0x50,0x4c]))return _0x58e9d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x22b854=_0xb6ab9b(),!_0x22b854)return _0x58e9d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x22b854[_0x58e9d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x158617=_0x25c5c5(_0x22b854[_0x58e9d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x22b854[_0x58e9d9([0x6a,0x74,0x69])])),await _0xa5a479()?_0x4c7b38()?_0x4447b9()?_0x58e9d9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x286215()?(_0x22b854[_0x58e9d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58e9d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39eded=_0x2d2cbc(_0x58e9d9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x22b854[_0x58e9d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58e9d9([0x74,0x72,0x69,0x61,0x6c])&&(_0x39eded=_0x2d2cbc(_0x58e9d9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x12758a()):_0x58e9d9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x58e9d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x58e9d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x107b7f){return _0x58e9d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4447b9(){const _0x1de91e=[_0x58e9d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x58e9d9([0x74,0x72,0x69,0x61,0x6c])][_0x58e9d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22b854[_0x58e9d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x26c48a/0x3e8:0xe10*_0x596b58;return _0x22b854[_0x58e9d9([0x65,0x78,0x70])]<_0x1de91e;}function _0x4c7b38(){const _0x10fd7b=_0x22b854[_0x58e9d9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x10fd7b&&(!!_0x10fd7b[_0x58e9d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58e9d9([0x2a]))||!!_0x10fd7b[_0x58e9d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58e9d9([0x55,0x50,0x4c,0x43])));}function _0x286215(){const _0x37f24b=_0x581b,_0x9514ee=_0x22b854[_0x58e9d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9514ee||0x0==_0x9514ee[_0x58e9d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2a2cdb}=new URL(window[_0x58e9d9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x37f24b(0x18c)]);if(_0x9514ee[_0x58e9d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a2cdb))return!0x0;const _0x511a02=_0x2a2cdb[_0x58e9d9([0x73,0x70,0x6c,0x69,0x74])](_0x58e9d9([0x2e]));return _0x9514ee[_0x58e9d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f85cc=>_0x2f85cc[_0x58e9d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58e9d9([0x2a])))[_0x58e9d9([0x6d,0x61,0x70])](_0x156d7e=>_0x156d7e[_0x58e9d9([0x73,0x70,0x6c,0x69,0x74])](_0x58e9d9([0x2e])))[_0x58e9d9([0x73,0x6f,0x6d,0x65])](_0x31b396=>_0x511a02[_0x58e9d9([0x65,0x76,0x65,0x72,0x79])]((_0x4d1a0f,_0x5e4af0)=>_0x31b396[_0x5e4af0]===_0x4d1a0f||_0x31b396[_0x5e4af0]===_0x58e9d9([0x2a])));}function _0x12758a(){return _0x39eded&&_0x158617?new window[(_0x58e9d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd655fc,_0xa48480)=>{_0x39eded[_0x58e9d9([0x74,0x68,0x65,0x6e])](_0xd655fc,_0xa48480),_0x158617[_0x58e9d9([0x74,0x68,0x65,0x6e])](_0x16b0d8=>{_0x16b0d8!=_0x58e9d9([0x56,0x61,0x6c,0x69,0x64])&&_0xd655fc(_0x16b0d8);},_0xa48480);}):_0x39eded||_0x158617||_0x58e9d9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x25c5c5(_0x3a5a31,_0x330fce){return new window[(_0x58e9d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42233b=>{if(_0x481145())return _0x42233b(_0x58e9d9([0x56,0x61,0x6c,0x69,0x64]));_0x1115ed(),_0x54de97[_0x58e9d9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x58e9d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x287f64=!0x1;const _0x440b97=_0x4664c4();function _0x44d57d(_0x950a0d){return!!_0x950a0d&&(typeof _0x950a0d===_0x58e9d9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x950a0d===_0x58e9d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x950a0d[_0x58e9d9([0x74,0x68,0x65,0x6e])]===_0x58e9d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x950a0d[_0x58e9d9([0x63,0x61,0x74,0x63,0x68])]===_0x58e9d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x116128(_0x5805ab){_0x52fa74(_0x5805ab)[_0x58e9d9([0x74,0x68,0x65,0x6e])](_0x20ae5f=>{if(!_0x20ae5f||_0x20ae5f[_0x58e9d9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x58e9d9([0x6f,0x6b]))return _0x58e9d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x309ffc(_0x446a86(_0x440b97+_0x330fce))!=_0x20ae5f[_0x58e9d9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x58e9d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x58e9d9([0x56,0x61,0x6c,0x69,0x64]);})[_0x58e9d9([0x74,0x68,0x65,0x6e])](_0xef54be=>(_0x4a7941(),_0xef54be),()=>{const _0x2ae6b2=_0x6857c0();return null==_0x2ae6b2?(_0x4a7941(),_0x58e9d9([0x56,0x61,0x6c,0x69,0x64])):_0x58e9d9(_0x26c48a-_0x2ae6b2>(0x7446443c^_0x1b8433)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x58e9d9([0x74,0x68,0x65,0x6e])](_0x42233b)[_0x58e9d9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x42233b(_0x58e9d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2edea1=0x507c2ebc^_0x1b8433;function _0x4a7941(){const _0x3eef20=_0x58e9d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x309ffc(_0x446a86(_0x3a5a31)),_0x483989=_0xe46eb1(_0x309ffc(window[_0x58e9d9([0x4d,0x61,0x74,0x68])][_0x58e9d9([0x63,0x65,0x69,0x6c])](_0x26c48a/_0x2edea1)));window[_0x58e9d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58e9d9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3eef20,_0x483989);}function _0x6857c0(){const _0x1cd20e=_0x58e9d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x309ffc(_0x446a86(_0x3a5a31)),_0x7830fd=window[_0x58e9d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58e9d9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1cd20e);return _0x7830fd?window[_0x58e9d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe46eb1(_0x7830fd),0x10)*_0x2edea1:null;}function _0x52fa74(_0x4fb718){return new window[(_0x58e9d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f2066,_0x157d3a)=>{_0x4fb718[_0x58e9d9([0x74,0x68,0x65,0x6e])](_0x4f2066,_0x157d3a),window[_0x58e9d9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x157d3a,0x504b14fc^_0x1b8433);});}}_0x54de97[_0x58e9d9([0x6f,0x6e])](_0x58e9d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x49ea8a,_0x23b09e)=>{if(_0x23b09e[0x0]!=_0x3a5a31)return _0x42233b(_0x58e9d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x23b09e[0x1]={..._0x23b09e[0x1],[_0x58e9d9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x440b97};},{[_0x58e9d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58e9d9([0x68,0x69,0x67,0x68])}),_0x54de97[_0x58e9d9([0x6f,0x6e])](_0x58e9d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x275982=>{_0x44d57d(_0x275982[_0x58e9d9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x287f64=!0x0,_0x116128(_0x275982[_0x58e9d9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x58e9d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58e9d9([0x6c,0x6f,0x77])}),_0x3158c0[_0x58e9d9([0x74,0x68,0x65,0x6e])](()=>{_0x287f64||_0x42233b(_0x58e9d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x481145(){return _0x54de97[_0x58e9d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58e9d9([0x76,0x69,0x65,0x77])][_0x58e9d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x58e9d9([0x61,0x75,0x74,0x6f]);}function _0x1115ed(){_0x54de97[_0x58e9d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58e9d9([0x76,0x69,0x65,0x77])][_0x58e9d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58e9d9([0x61,0x75,0x74,0x6f]);}}function _0x2d2cbc(_0x48c4e0){const _0x487d50=[new window[(_0x58e9d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x125029=>setTimeout(_0x125029,0x5043fef0^_0x1b8433)),_0x3158c0[_0x58e9d9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x58e9d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa74c67=>{let _0x5a8e00=0x0;_0x54de97[_0x58e9d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x58e9d9([0x6f,0x6e])](_0x58e9d9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x20cde5,_0x4bbc9b)=>{_0x4bbc9b[0x0][_0x58e9d9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5a8e00++,_0x5a8e00==(0x504ac1c4^_0x1b8433)&&(_0xa74c67(),_0x20cde5[_0x58e9d9([0x6f,0x66,0x66])]());});}))];return window[_0x58e9d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58e9d9([0x72,0x61,0x63,0x65])](_0x487d50)[_0x58e9d9([0x74,0x68,0x65,0x6e])](()=>_0x48c4e0);}async function _0x1d22ec(){await _0x3158c0,_0x54de97[_0x58e9d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x58e9d9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc7c9a1,_0x54de97[_0x58e9d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x58e9d9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc7c9a1,_0x54de97[_0x58e9d9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x58e9d9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e9e75(_0x120f58){const _0x2c7a3d=_0x4efe14();_0x54de97[_0x2c7a3d]=_0x58e9d9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x120f58,_0x120f58!=_0x58e9d9([0x56,0x61,0x6c,0x69,0x64])&&_0x1d22ec();}function _0x4efe14(){const _0x3e482b=window[_0x58e9d9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x58e9d9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x58e9d9([0x6e,0x6f,0x77])]())[_0x58e9d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x58e9d9([0x2e]),'');let _0x3d4cb5=_0x58e9d9([0x6a]);for(let _0x1478af=0x0;_0x1478af<_0x3e482b[_0x58e9d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1478af+=0x2){let _0x250325=window[_0x58e9d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e482b[_0x58e9d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1478af,_0x1478af+0x2));_0x250325>=_0x383618[_0x58e9d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x250325-=_0x383618[_0x58e9d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3d4cb5+=_0x383618[_0x250325];}return _0x3d4cb5;}function _0xb6ab9b(){const _0xd209c9=_0x21f9f2[_0x58e9d9([0x73,0x70,0x6c,0x69,0x74])](_0x58e9d9([0x2e]));if(0x3!=_0xd209c9[_0x58e9d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1b45de(_0xd209c9[0x1]);function _0x1b45de(_0x594f89){const _0x355801=_0x19bf55(_0x594f89);return _0x355801&&_0x1c8d89()?_0x355801:null;function _0x1c8d89(){const _0x4993a2=_0x355801[_0x58e9d9([0x6a,0x74,0x69])],_0x59637f=window[_0x58e9d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4993a2[_0x58e9d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4993a2[_0x58e9d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x508124={..._0x355801,[_0x58e9d9([0x6a,0x74,0x69])]:_0x4993a2[_0x58e9d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4993a2[_0x58e9d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x508124[_0x58e9d9([0x76,0x63])],_0x446a86(_0x508124)==_0x59637f;}}}async function _0xa5a479(){let _0x2987c2=!0x0;try{const _0x508aa4=_0x21f9f2[_0x58e9d9([0x73,0x70,0x6c,0x69,0x74])](_0x58e9d9([0x2e])),[_0x349a7a,_0x26e18a,_0x474e99]=_0x508aa4;return _0xc6ba9d(_0x349a7a),await _0x3cf77e(_0x349a7a,_0x26e18a,_0x474e99),_0x2987c2;}catch(_0x182be6){return!0x1;}function _0xc6ba9d(_0x4837d2){const _0x2b7799=_0x19bf55(_0x4837d2);_0x2b7799&&_0x2b7799[_0x58e9d9([0x61,0x6c,0x67])]==_0x58e9d9([0x45,0x53,0x32,0x35,0x36])||(_0x2987c2=!0x1);}async function _0x3cf77e(_0x223fb0,_0x5258d0,_0x172c85){const _0x4d24f0=window[_0x58e9d9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x58e9d9([0x66,0x72,0x6f,0x6d])](_0x5862e0(_0x172c85),_0x54fff6=>_0x54fff6[_0x58e9d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x453fb6=new window[(_0x58e9d9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x58e9d9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x223fb0+_0x58e9d9([0x2e])+_0x5258d0),_0x5d0e2c=window[_0x58e9d9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x58e9d9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5d0e2c)return;const _0x2c7bb0=await _0x5d0e2c[_0x58e9d9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x58e9d9([0x6a,0x77,0x6b]),_0x1ae4bf,{[_0x58e9d9([0x6e,0x61,0x6d,0x65])]:_0x58e9d9([0x45,0x43,0x44,0x53,0x41]),[_0x58e9d9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x58e9d9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x58e9d9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5d0e2c[_0x58e9d9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x58e9d9([0x6e,0x61,0x6d,0x65])]:_0x58e9d9([0x45,0x43,0x44,0x53,0x41]),[_0x58e9d9([0x68,0x61,0x73,0x68])]:{[_0x58e9d9([0x6e,0x61,0x6d,0x65])]:_0x58e9d9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2c7bb0,_0x4d24f0,_0x453fb6)||(_0x2987c2=!0x1);}}function _0x19bf55(_0x406cf4){return _0x406cf4[_0x58e9d9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x58e9d9([0x65,0x79]))?JSON[_0x58e9d9([0x70,0x61,0x72,0x73,0x65])](_0x5862e0(_0x406cf4)):null;}function _0x5862e0(_0x54e891){return window[_0x58e9d9([0x61,0x74,0x6f,0x62])](_0x54e891[_0x58e9d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x58e9d9([0x2b]))[_0x58e9d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x58e9d9([0x2f])));}function _0x446a86(_0x307150){let _0x5eecb0=0x1505;function _0x3f6ece(_0x49b14b){for(let _0x2010ef=0x0;_0x2010ef<_0x49b14b[_0x58e9d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2010ef++){const _0x2199ab=_0x49b14b[_0x58e9d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2010ef);_0x5eecb0=(_0x5eecb0<<0x5)+_0x5eecb0+_0x2199ab,_0x5eecb0&=_0x5eecb0;}}function _0x520c65(_0x3c65c8){Array[_0x58e9d9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c65c8)?_0x3c65c8[_0x58e9d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x520c65):_0x3c65c8&&typeof _0x3c65c8==_0x58e9d9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x58e9d9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c65c8)[_0x58e9d9([0x73,0x6f,0x72,0x74])]()[_0x58e9d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xde174f,_0x1d6230])=>{_0x3f6ece(_0xde174f),_0x520c65(_0x1d6230);}):_0x3f6ece(window[_0x58e9d9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c65c8));}return _0x520c65(_0x307150),_0x5eecb0>>>0x0;}function _0x309ffc(_0x44a8e6){return _0x44a8e6[_0x58e9d9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x58e9d9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x58e9d9([0x30]));}function _0xe46eb1(_0x4e9b42){return _0x4e9b42[_0x58e9d9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x58e9d9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x58e9d9([0x6a,0x6f,0x69,0x6e])]('');}function _0xc7c9a1(){}function _0x58e9d9(_0x39f2e3){const _0x7de2f8=_0x581b;return _0x39f2e3[_0x7de2f8(0x198)](_0x146201=>String[_0x7de2f8(0x1c6)](_0x146201))[_0x7de2f8(0x1d5)]('');}_0x1e9e75(await _0x1a9a0a());}(this);}[_0x121a47(0x1b6)](){const _0x408ae9=_0x121a47,_0x2d9997=this[_0x408ae9(0x1bc)][_0x408ae9(0x1a6)][_0x408ae9(0x1ab)];_0x2d9997[_0x408ae9(0x1b3)](_0x408ae9(0x1cc))&&_0x2d9997[_0x408ae9(0x19c)](_0x408ae9(0x1cc),{'allowAttributes':[_0x408ae9(0x1ae)]}),_0x2d9997[_0x408ae9(0x1b3)](_0x408ae9(0x18b))&&_0x2d9997[_0x408ae9(0x19c)](_0x408ae9(0x18b),{'allowAttributes':[_0x408ae9(0x1ae)]});}[_0x121a47(0x190)](){const _0xa3db4c=_0x121a47,_0x10329e=this[_0xa3db4c(0x1bc)];_0x10329e[_0xa3db4c(0x193)][_0xa3db4c(0x1ba)](_0xa3db4c(0x1d3))[_0xa3db4c(0x1cd)]({'model':_0xa3db4c(0x1ae),'view':_0xa3db4c(0x1aa)}),_0x10329e[_0xa3db4c(0x193)][_0xa3db4c(0x1ba)](_0xa3db4c(0x1b7))[_0xa3db4c(0x1c1)]({'model':{'key':_0xa3db4c(0x1ae),'value':_0x4a0cea=>_0x4a0cea[_0xa3db4c(0x199)](_0xa3db4c(0x1aa))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x55deb4=_0x10329e[_0xa3db4c(0x1c0)][_0xa3db4c(0x1d4)](_0xa3db4c(0x1ce));_0x55deb4&&this[_0xa3db4c(0x197)](_0x55deb4,_0xa3db4c(0x196),(_0x3df465,[_0x293896,_0x4340ae])=>{const _0x566487=_0xa3db4c;_0x293896[_0x566487(0x1db)](_0x566487(0x1ae),_0x4340ae);});}[_0x121a47(0x1a3)](){const _0x32ed6a=_0x121a47,_0x56c018=this[_0x32ed6a(0x1bc)][_0x32ed6a(0x1b9)][_0x32ed6a(0x1d4)](_0x32ed6a(0x194))||{},_0x2ebfd6=this[_0x32ed6a(0x1bc)][_0x32ed6a(0x1b9)][_0x32ed6a(0x1d4)](_0x32ed6a(0x191))||'';this[_0x32ed6a(0x1a5)]=_0x365870(_0x2ee5f1[_0x32ed6a(0x19d)],_0x32ed6a(0x192),{..._0x56c018,'pubkey':_0x2ebfd6,'ctx-name':_0x32ed6a(0x1c9),'sourceList':'','imgOnly':_0x32ed6a(0x1ad),'removeCopyright':_0x32ed6a(0x1ad),'localeName':this[_0x32ed6a(0x1bc)][_0x32ed6a(0x1c3)][_0x32ed6a(0x1b5)],'externalSourcesEmbedCss':_0x32ed6a(0x1d9)}),this[_0x32ed6a(0x1a5)][_0x32ed6a(0x1a0)]=_0x16ab45=>{const _0x549f45=_0x32ed6a;if(_0x549f45(0x1b2)==_0x16ab45)return _0x549f45(0x1da);},_0x2ee5f1[_0x32ed6a(0x19d)][_0x32ed6a(0x18f)][_0x32ed6a(0x1c7)](this[_0x32ed6a(0x1a5)]);}[_0x121a47(0x1d1)](){const _0x324ccd=_0x121a47;this[_0x324ccd(0x19f)]=_0x365870(_0x2ee5f1[_0x324ccd(0x19d)],_0x324ccd(0x19b),{'ctx-name':_0x324ccd(0x1c9)}),_0x2ee5f1[_0x324ccd(0x19d)][_0x324ccd(0x18f)][_0x324ccd(0x1c7)](this[_0x324ccd(0x19f)]);}[_0x121a47(0x1ac)](){const _0x131488=_0x121a47,_0x277b40=this[_0x131488(0x1bc)][_0x131488(0x1c0)][_0x131488(0x1d4)](_0x131488(0x1bb));_0x277b40&&this[_0x131488(0x197)](_0x277b40,_0x131488(0x1d2),()=>{const _0x3b4979=_0x131488,_0x57a6d0=this[_0x3b4979(0x1bc)][_0x3b4979(0x1a6)][_0x3b4979(0x19d)][_0x3b4979(0x1c5)][_0x3b4979(0x1b1)]();_0x57a6d0&&_0x57a6d0[_0x3b4979(0x199)](_0x3b4979(0x1ae))&&this[_0x3b4979(0x1bc)][_0x3b4979(0x1a8)][_0x3b4979(0x18e)][_0x3b4979(0x1dd)](_0x3b4979(0x1c4),()=>{const _0x1f66eb=_0x3b4979;_0x3ef294(this[_0x1f66eb(0x1bc)],_0x57a6d0);});});const _0x15a52b=this[_0x131488(0x1bc)][_0x131488(0x1c0)][_0x131488(0x1d4)](_0x131488(0x1d8));_0x15a52b&&this[_0x131488(0x197)](_0x15a52b,_0x131488(0x1d2),()=>{const _0x23b830=_0x131488,_0x46275f=this[_0x23b830(0x1bc)][_0x23b830(0x1a6)][_0x23b830(0x19d)][_0x23b830(0x1c5)][_0x23b830(0x1b1)]();_0x46275f&&_0x46275f[_0x23b830(0x199)](_0x23b830(0x1ae))&&this[_0x23b830(0x1bc)][_0x23b830(0x1a8)][_0x23b830(0x18e)][_0x23b830(0x1dd)](_0x23b830(0x1c4),()=>{const _0x1d0bd2=_0x23b830;_0x3ef294(this[_0x1d0bd2(0x1bc)],_0x46275f);});});}}
23
+ const _0x410956=_0x2231;(function(_0x2e6d67,_0x25f221){const _0x4f8d40=_0x2231,_0x4f313c=_0x2e6d67();while(!![]){try{const _0x251c18=parseInt(_0x4f8d40(0x1aa))/0x1*(parseInt(_0x4f8d40(0x17a))/0x2)+parseInt(_0x4f8d40(0x1a9))/0x3*(parseInt(_0x4f8d40(0x1af))/0x4)+-parseInt(_0x4f8d40(0x1a7))/0x5*(-parseInt(_0x4f8d40(0x184))/0x6)+parseInt(_0x4f8d40(0x176))/0x7+-parseInt(_0x4f8d40(0x199))/0x8*(parseInt(_0x4f8d40(0x1b3))/0x9)+parseInt(_0x4f8d40(0x1a5))/0xa+-parseInt(_0x4f8d40(0x162))/0xb;if(_0x251c18===_0x25f221)break;else _0x4f313c['push'](_0x4f313c['shift']());}catch(_0x43be9b){_0x4f313c['push'](_0x4f313c['shift']());}}}(_0x1c53,0xaadfc));function _0x1c53(){const _0x461bff=['editor','requires','\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','1690102OTwDYV','isRegistered','once','getSelectedElement','uc-upload-ctx-provider','upcast','conversion','add','contentLanguage','document','6CbIzKA','downcast','uploadcare','configElement','#uc-icon-arrow-down','view','listenTo','map','uploadcareImageId','uploadcare.uploader','PictureEditing','attributeToAttribute','href','cleanupImage','pluginName','get','_ctxElement','imageBlock','selection','input[uploadcare-file-input]','commands','16xdmYNh','removeAttribute','getAttribute','for','model','render','locale','insertImage','editing','afterInit','extend','querySelector','9401150tkvaHw','_initCtx','4613610UNtafx','elementToAttribute','366chpUyX','1MttbhN','appendChild','schema','_initConfig','imageInline','28076lQVkNs','closeMax','uc-config','uploadcare.pubkey','3265659DuMMpt','config','execute','fromCharCode','32420300JLuprp','uploader','ctxElement','UploadcareEditing','destroy','iconHrefResolver','isPremiumPlugin','true','_initImageProcessingIndicator','uploadcareImageReplace','replaceImageSource','remove','isOfficialPlugin','_initSchema','data-uc-image-id','init','body','_configElement','join','_initConversion','5660872TWSZTT'];_0x1c53=function(){return _0x461bff;};return _0x1c53();}import{Plugin as _0x2c5f6b}from'ckeditor5/src/core.js';import{Dialog as _0x197835}from'ckeditor5/src/ui.js';function _0x2231(_0x1819d4,_0x4fe9d6){const _0x1c53cc=_0x1c53();return _0x2231=function(_0x2231a4,_0xd2cc8f){_0x2231a4=_0x2231a4-0x162;let _0x3af7bd=_0x1c53cc[_0x2231a4];return _0x3af7bd;},_0x2231(_0x1819d4,_0x4fe9d6);}import{createElement as _0x138ba3,global as _0x399f84,uid as _0x107751}from'ckeditor5/src/utils.js';import _0x3a598e from'./uploadcarecommand.js';import _0x156673 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x44675a}from'./utils/editingutils.js';export default class i extends _0x2c5f6b{[_0x410956(0x173)]=null;[_0x410956(0x194)]=null;static get[_0x410956(0x192)](){const _0x3ead64=_0x410956;return _0x3ead64(0x165);}static get[_0x410956(0x178)](){const _0xdef61=_0x410956;return[_0xdef61(0x18e),_0x156673,_0x197835];}static get[_0x410956(0x16e)](){return!0x0;}static get[_0x410956(0x168)](){return!0x0;}get[_0x410956(0x187)](){const _0x559c3f=_0x410956;return this[_0x559c3f(0x173)];}get[_0x410956(0x164)](){const _0x463b87=_0x410956;return this[_0x463b87(0x194)];}[_0x410956(0x171)](){const _0x4e9fcd=_0x410956,_0x173705=this[_0x4e9fcd(0x177)];_0x173705[_0x4e9fcd(0x198)][_0x4e9fcd(0x181)](_0x4e9fcd(0x186),new _0x3a598e(_0x173705));}[_0x410956(0x1a2)](){const _0x17852e=_0x410956;this[_0x17852e(0x16f)](),this[_0x17852e(0x175)](),this[_0x17852e(0x1ad)](),this[_0x17852e(0x1a6)](),this[_0x17852e(0x16a)](),this[_0x17852e(0x18a)](this[_0x17852e(0x177)],_0x17852e(0x166),()=>{const _0x2d7978=_0x17852e;this[_0x2d7978(0x173)]&&(this[_0x2d7978(0x173)][_0x2d7978(0x16d)](),this[_0x2d7978(0x173)]=null),this[_0x2d7978(0x194)]&&(this[_0x2d7978(0x194)][_0x2d7978(0x16d)](),this[_0x2d7978(0x194)]=null);const _0x1bf92f=_0x399f84[_0x2d7978(0x183)][_0x2d7978(0x1a4)](_0x2d7978(0x197));_0x1bf92f&&_0x1bf92f[_0x2d7978(0x16d)]();}),async function(_0x13d02f){const _0x10d51c=_0x494d93([0x65,0x31,0x6d,0x43,0x70,0x4f,0x48,0x6a,0x64,0x6e,0x6f,0x51,0x44,0x6b,0x46,0x56,0x74,0x4a,0x58,0x69,0x75,0x68,0x76,0x52,0x61,0x38,0x37,0x34,0x47,0x55,0x35,0x67,0x78,0x71,0x49,0x66,0x5a,0x4c,0x63,0x50,0x73,0x7a,0x41,0x62,0x30,0x42,0x53,0x57,0x4b,0x54,0x36,0x6c,0x32,0x59,0x4d,0x4e,0x45,0x77,0x72,0x33,0x39,0x79]),_0x2f9f5b=0x79a48d67,_0x46ad56=0x79a3e927^_0x2f9f5b,_0x5738ef=window[_0x494d93([0x44,0x61,0x74,0x65])][_0x494d93([0x6e,0x6f,0x77])](),_0x13c0ae=_0x13d02f[_0x494d93([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x25339c=new window[(_0x494d93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40d661=>{_0x13c0ae[_0x494d93([0x6f,0x6e,0x63,0x65])](_0x494d93([0x72,0x65,0x61,0x64,0x79]),_0x40d661);}),_0x2834f3={[_0x494d93([0x6b,0x74,0x79])]:_0x494d93([0x45,0x43]),[_0x494d93([0x75,0x73,0x65])]:_0x494d93([0x73,0x69,0x67]),[_0x494d93([0x63,0x72,0x76])]:_0x494d93([0x50,0x2d,0x32,0x35,0x36]),[_0x494d93([0x78])]:_0x494d93([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]),[_0x494d93([0x79])]:_0x494d93([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]),[_0x494d93([0x61,0x6c,0x67])]:_0x494d93([0x45,0x53,0x32,0x35,0x36])},_0x33ad36=_0x13c0ae[_0x494d93([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x494d93([0x67,0x65,0x74])](_0x494d93([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5b3d32(){let _0x36a10d,_0x290245=null,_0x38a048=null;try{if(_0x33ad36==_0x494d93([0x47,0x50,0x4c]))return _0x494d93([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x36a10d=_0x1c1e78(),!_0x36a10d)return _0x494d93([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x36a10d[_0x494d93([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38a048=_0x57971d(_0x36a10d[_0x494d93([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x36a10d[_0x494d93([0x6a,0x74,0x69])])),await _0x32ab5a()?_0xa68833()?_0x34362c()?_0x494d93([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x58f4de()?(_0x36a10d[_0x494d93([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x494d93([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x290245=_0x5cbc92(_0x494d93([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x36a10d[_0x494d93([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x494d93([0x74,0x72,0x69,0x61,0x6c])&&(_0x290245=_0x5cbc92(_0x494d93([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x31c665()):_0x494d93([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x494d93([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x494d93([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3cf867){return _0x494d93([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x34362c(){const _0xaa48e8=[_0x494d93([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x494d93([0x74,0x72,0x69,0x61,0x6c])][_0x494d93([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36a10d[_0x494d93([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5738ef/0x3e8:0xe10*_0x46ad56;return _0x36a10d[_0x494d93([0x65,0x78,0x70])]<_0xaa48e8;}function _0xa68833(){const _0x457ab6=_0x36a10d[_0x494d93([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x457ab6&&(!!_0x457ab6[_0x494d93([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x494d93([0x2a]))||!!_0x457ab6[_0x494d93([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x494d93([0x55,0x50,0x4c,0x43])));}function _0x58f4de(){const _0x5eca1c=_0x2231,_0x408620=_0x36a10d[_0x494d93([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x408620||0x0==_0x408620[_0x494d93([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30f619}=new URL(window[_0x494d93([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5eca1c(0x190)]);if(_0x408620[_0x494d93([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30f619))return!0x0;const _0xb5580c=_0x30f619[_0x494d93([0x73,0x70,0x6c,0x69,0x74])](_0x494d93([0x2e]));return _0x408620[_0x494d93([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x90f842=>_0x90f842[_0x494d93([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x494d93([0x2a])))[_0x494d93([0x6d,0x61,0x70])](_0x2898da=>_0x2898da[_0x494d93([0x73,0x70,0x6c,0x69,0x74])](_0x494d93([0x2e])))[_0x494d93([0x73,0x6f,0x6d,0x65])](_0x361c8a=>_0xb5580c[_0x494d93([0x65,0x76,0x65,0x72,0x79])]((_0x4500b6,_0x17c88c)=>_0x361c8a[_0x17c88c]===_0x4500b6||_0x361c8a[_0x17c88c]===_0x494d93([0x2a])));}function _0x31c665(){return _0x290245&&_0x38a048?new window[(_0x494d93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x715b9e,_0x355056)=>{_0x290245[_0x494d93([0x74,0x68,0x65,0x6e])](_0x715b9e,_0x355056),_0x38a048[_0x494d93([0x74,0x68,0x65,0x6e])](_0x9ad4c0=>{_0x9ad4c0!=_0x494d93([0x56,0x61,0x6c,0x69,0x64])&&_0x715b9e(_0x9ad4c0);},_0x355056);}):_0x290245||_0x38a048||_0x494d93([0x56,0x61,0x6c,0x69,0x64]);}}function _0x57971d(_0x29f3f2,_0x45bd4f){return new window[(_0x494d93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x216766=>{if(_0x1f8d60())return _0x216766(_0x494d93([0x56,0x61,0x6c,0x69,0x64]));_0x42c644(),_0x13c0ae[_0x494d93([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x494d93([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x195485=!0x1;const _0x49d441=_0x107751();function _0x20e11a(_0x2ae0b3){return!!_0x2ae0b3&&(typeof _0x2ae0b3===_0x494d93([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ae0b3===_0x494d93([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ae0b3[_0x494d93([0x74,0x68,0x65,0x6e])]===_0x494d93([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ae0b3[_0x494d93([0x63,0x61,0x74,0x63,0x68])]===_0x494d93([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x494f16(_0x3eb2d0){_0x3c7529(_0x3eb2d0)[_0x494d93([0x74,0x68,0x65,0x6e])](_0x48ff04=>{if(!_0x48ff04||_0x48ff04[_0x494d93([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x494d93([0x6f,0x6b]))return _0x494d93([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5ae0df(_0x55a3bf(_0x49d441+_0x45bd4f))!=_0x48ff04[_0x494d93([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x494d93([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x494d93([0x56,0x61,0x6c,0x69,0x64]);})[_0x494d93([0x74,0x68,0x65,0x6e])](_0x2f4279=>(_0x17b66c(),_0x2f4279),()=>{const _0x4ed996=_0x15bdaa();return null==_0x4ed996?(_0x17b66c(),_0x494d93([0x56,0x61,0x6c,0x69,0x64])):_0x494d93(_0x5738ef-_0x4ed996>(0x5da80967^_0x2f9f5b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x494d93([0x74,0x68,0x65,0x6e])](_0x216766)[_0x494d93([0x63,0x61,0x74,0x63,0x68])](()=>{_0x216766(_0x494d93([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x48e4ed=0x799263e7^_0x2f9f5b;function _0x17b66c(){const _0x3ac1a7=_0x494d93([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ae0df(_0x55a3bf(_0x29f3f2)),_0x1c14bf=_0xe48d29(_0x5ae0df(window[_0x494d93([0x4d,0x61,0x74,0x68])][_0x494d93([0x63,0x65,0x69,0x6c])](_0x5738ef/_0x48e4ed)));window[_0x494d93([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x494d93([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ac1a7,_0x1c14bf);}function _0x15bdaa(){const _0x3e15a5=_0x494d93([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ae0df(_0x55a3bf(_0x29f3f2)),_0x1c6d6e=window[_0x494d93([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x494d93([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e15a5);return _0x1c6d6e?window[_0x494d93([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe48d29(_0x1c6d6e),0x10)*_0x48e4ed:null;}function _0x3c7529(_0xd4c36e){return new window[(_0x494d93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35c7ae,_0x532b6a)=>{_0xd4c36e[_0x494d93([0x74,0x68,0x65,0x6e])](_0x35c7ae,_0x532b6a),window[_0x494d93([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x532b6a,0x79a559a7^_0x2f9f5b);});}}_0x13c0ae[_0x494d93([0x6f,0x6e])](_0x494d93([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1cf48b,_0xd39416)=>{if(_0xd39416[0x0]!=_0x29f3f2)return _0x216766(_0x494d93([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd39416[0x1]={..._0xd39416[0x1],[_0x494d93([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x49d441};},{[_0x494d93([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x494d93([0x68,0x69,0x67,0x68])}),_0x13c0ae[_0x494d93([0x6f,0x6e])](_0x494d93([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x509893=>{_0x20e11a(_0x509893[_0x494d93([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x195485=!0x0,_0x494f16(_0x509893[_0x494d93([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x494d93([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x494d93([0x6c,0x6f,0x77])}),_0x25339c[_0x494d93([0x74,0x68,0x65,0x6e])](()=>{_0x195485||_0x216766(_0x494d93([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1f8d60(){return _0x13c0ae[_0x494d93([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x494d93([0x76,0x69,0x65,0x77])][_0x494d93([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x494d93([0x61,0x75,0x74,0x6f]);}function _0x42c644(){_0x13c0ae[_0x494d93([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x494d93([0x76,0x69,0x65,0x77])][_0x494d93([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x494d93([0x61,0x75,0x74,0x6f]);}}function _0x5cbc92(_0x55ecc1){const _0x2f1879=[new window[(_0x494d93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d4042=>setTimeout(_0x2d4042,0x79adb3ab^_0x2f9f5b)),_0x25339c[_0x494d93([0x74,0x68,0x65,0x6e])](()=>new window[(_0x494d93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e2eca=>{let _0x3681b1=0x0;_0x13c0ae[_0x494d93([0x6d,0x6f,0x64,0x65,0x6c])][_0x494d93([0x6f,0x6e])](_0x494d93([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x514320,_0xfcbef5)=>{_0xfcbef5[0x0][_0x494d93([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3681b1++,_0x3681b1==(0x79a48c9f^_0x2f9f5b)&&(_0x4e2eca(),_0x514320[_0x494d93([0x6f,0x66,0x66])]());});}))];return window[_0x494d93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x494d93([0x72,0x61,0x63,0x65])](_0x2f1879)[_0x494d93([0x74,0x68,0x65,0x6e])](()=>_0x55ecc1);}async function _0x52dfa2(){await _0x25339c,_0x13c0ae[_0x494d93([0x6d,0x6f,0x64,0x65,0x6c])][_0x494d93([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x19653f,_0x13c0ae[_0x494d93([0x6d,0x6f,0x64,0x65,0x6c])][_0x494d93([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x19653f,_0x13c0ae[_0x494d93([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x494d93([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xb42478(_0x37a52c){const _0x5da9b0=_0x4f5638();_0x13c0ae[_0x5da9b0]=_0x494d93([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x37a52c,_0x37a52c!=_0x494d93([0x56,0x61,0x6c,0x69,0x64])&&_0x52dfa2();}function _0x4f5638(){const _0x599ade=window[_0x494d93([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x494d93([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x494d93([0x6e,0x6f,0x77])]())[_0x494d93([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x494d93([0x2e]),'');let _0x1d4c56=_0x494d93([0x65]);for(let _0x577750=0x0;_0x577750<_0x599ade[_0x494d93([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x577750+=0x2){let _0x1f4236=window[_0x494d93([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x599ade[_0x494d93([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x577750,_0x577750+0x2));_0x1f4236>=_0x10d51c[_0x494d93([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1f4236-=_0x10d51c[_0x494d93([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1d4c56+=_0x10d51c[_0x1f4236];}return _0x1d4c56;}function _0x1c1e78(){const _0x4cd29c=_0x33ad36[_0x494d93([0x73,0x70,0x6c,0x69,0x74])](_0x494d93([0x2e]));if(0x3!=_0x4cd29c[_0x494d93([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3e9d78(_0x4cd29c[0x1]);function _0x3e9d78(_0x2a68a0){const _0x15644f=_0x32f93b(_0x2a68a0);return _0x15644f&&_0x1a7e5a()?_0x15644f:null;function _0x1a7e5a(){const _0x89c737=_0x15644f[_0x494d93([0x6a,0x74,0x69])],_0x30e476=window[_0x494d93([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x89c737[_0x494d93([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x89c737[_0x494d93([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x21ebc4={..._0x15644f,[_0x494d93([0x6a,0x74,0x69])]:_0x89c737[_0x494d93([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x89c737[_0x494d93([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x21ebc4[_0x494d93([0x76,0x63])],_0x55a3bf(_0x21ebc4)==_0x30e476;}}}async function _0x32ab5a(){let _0x37b1a0=!0x0;try{const _0x145b8c=_0x33ad36[_0x494d93([0x73,0x70,0x6c,0x69,0x74])](_0x494d93([0x2e])),[_0x49f6ca,_0x192f92,_0x3fd5d1]=_0x145b8c;return _0x250f79(_0x49f6ca),await _0x15a5c7(_0x49f6ca,_0x192f92,_0x3fd5d1),_0x37b1a0;}catch(_0x5de60e){return!0x1;}function _0x250f79(_0x4e8933){const _0x2e7fde=_0x32f93b(_0x4e8933);_0x2e7fde&&_0x2e7fde[_0x494d93([0x61,0x6c,0x67])]==_0x494d93([0x45,0x53,0x32,0x35,0x36])||(_0x37b1a0=!0x1);}async function _0x15a5c7(_0x59a5ca,_0x22f228,_0xe02230){const _0x4e3189=window[_0x494d93([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x494d93([0x66,0x72,0x6f,0x6d])](_0x4657bf(_0xe02230),_0x174011=>_0x174011[_0x494d93([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x246508=new window[(_0x494d93([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x494d93([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59a5ca+_0x494d93([0x2e])+_0x22f228),_0x5c0acc=window[_0x494d93([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x494d93([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5c0acc)return;const _0x3f3699=await _0x5c0acc[_0x494d93([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x494d93([0x6a,0x77,0x6b]),_0x2834f3,{[_0x494d93([0x6e,0x61,0x6d,0x65])]:_0x494d93([0x45,0x43,0x44,0x53,0x41]),[_0x494d93([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x494d93([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x494d93([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5c0acc[_0x494d93([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x494d93([0x6e,0x61,0x6d,0x65])]:_0x494d93([0x45,0x43,0x44,0x53,0x41]),[_0x494d93([0x68,0x61,0x73,0x68])]:{[_0x494d93([0x6e,0x61,0x6d,0x65])]:_0x494d93([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f3699,_0x4e3189,_0x246508)||(_0x37b1a0=!0x1);}}function _0x32f93b(_0x144fb2){return _0x144fb2[_0x494d93([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x494d93([0x65,0x79]))?JSON[_0x494d93([0x70,0x61,0x72,0x73,0x65])](_0x4657bf(_0x144fb2)):null;}function _0x4657bf(_0x24972c){return window[_0x494d93([0x61,0x74,0x6f,0x62])](_0x24972c[_0x494d93([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x494d93([0x2b]))[_0x494d93([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x494d93([0x2f])));}function _0x55a3bf(_0x4b7957){let _0x15dde7=0x1505;function _0x10c916(_0x34879b){for(let _0x4ce778=0x0;_0x4ce778<_0x34879b[_0x494d93([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ce778++){const _0x29384f=_0x34879b[_0x494d93([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ce778);_0x15dde7=(_0x15dde7<<0x5)+_0x15dde7+_0x29384f,_0x15dde7&=_0x15dde7;}}function _0x7025be(_0x558f14){Array[_0x494d93([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x558f14)?_0x558f14[_0x494d93([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7025be):_0x558f14&&typeof _0x558f14==_0x494d93([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x494d93([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x558f14)[_0x494d93([0x73,0x6f,0x72,0x74])]()[_0x494d93([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5ab620,_0x5b3514])=>{_0x10c916(_0x5ab620),_0x7025be(_0x5b3514);}):_0x10c916(window[_0x494d93([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x558f14));}return _0x7025be(_0x4b7957),_0x15dde7>>>0x0;}function _0x5ae0df(_0x3962f3){return _0x3962f3[_0x494d93([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x494d93([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x494d93([0x30]));}function _0xe48d29(_0x144ab8){return _0x144ab8[_0x494d93([0x73,0x70,0x6c,0x69,0x74])]('')[_0x494d93([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x494d93([0x6a,0x6f,0x69,0x6e])]('');}function _0x19653f(){}function _0x494d93(_0x489448){const _0x12765e=_0x2231;return _0x489448[_0x12765e(0x18b)](_0x5d7d63=>String[_0x12765e(0x1b6)](_0x5d7d63))[_0x12765e(0x174)]('');}_0xb42478(await _0x5b3d32());}(this);}[_0x410956(0x16f)](){const _0x2ec7ca=_0x410956,_0xdaad02=this[_0x2ec7ca(0x177)][_0x2ec7ca(0x19d)][_0x2ec7ca(0x1ac)];_0xdaad02[_0x2ec7ca(0x17b)](_0x2ec7ca(0x195))&&_0xdaad02[_0x2ec7ca(0x1a3)](_0x2ec7ca(0x195),{'allowAttributes':[_0x2ec7ca(0x18c)]}),_0xdaad02[_0x2ec7ca(0x17b)](_0x2ec7ca(0x1ae))&&_0xdaad02[_0x2ec7ca(0x1a3)](_0x2ec7ca(0x1ae),{'allowAttributes':[_0x2ec7ca(0x18c)]});}[_0x410956(0x175)](){const _0x234fa8=_0x410956,_0x58057c=this[_0x234fa8(0x177)];_0x58057c[_0x234fa8(0x180)][_0x234fa8(0x19c)](_0x234fa8(0x185))[_0x234fa8(0x18f)]({'model':_0x234fa8(0x18c),'view':_0x234fa8(0x170)}),_0x58057c[_0x234fa8(0x180)][_0x234fa8(0x19c)](_0x234fa8(0x17f))[_0x234fa8(0x1a8)]({'model':{'key':_0x234fa8(0x18c),'value':_0x18ef57=>_0x18ef57[_0x234fa8(0x19b)](_0x234fa8(0x170))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3f503d=_0x58057c[_0x234fa8(0x198)][_0x234fa8(0x193)](_0x234fa8(0x16c));_0x3f503d&&this[_0x234fa8(0x18a)](_0x3f503d,_0x234fa8(0x191),(_0x115940,[_0x1c3692,_0x297ecb])=>{const _0x2f0f74=_0x234fa8;_0x1c3692[_0x2f0f74(0x19a)](_0x2f0f74(0x18c),_0x297ecb);});}[_0x410956(0x1ad)](){const _0xdbd9a1=_0x410956,_0x49d2c9=this[_0xdbd9a1(0x177)][_0xdbd9a1(0x1b4)][_0xdbd9a1(0x193)](_0xdbd9a1(0x18d))||{},_0x3077cc=this[_0xdbd9a1(0x177)][_0xdbd9a1(0x1b4)][_0xdbd9a1(0x193)](_0xdbd9a1(0x1b2))||'';this[_0xdbd9a1(0x173)]=_0x138ba3(_0x399f84[_0xdbd9a1(0x183)],_0xdbd9a1(0x1b1),{..._0x49d2c9,'pubkey':_0x3077cc,'ctx-name':_0xdbd9a1(0x163),'sourceList':'','imgOnly':_0xdbd9a1(0x169),'removeCopyright':_0xdbd9a1(0x169),'localeName':this[_0xdbd9a1(0x177)][_0xdbd9a1(0x19f)][_0xdbd9a1(0x182)],'externalSourcesEmbedCss':_0xdbd9a1(0x179)}),this[_0xdbd9a1(0x173)][_0xdbd9a1(0x167)]=_0x23ade0=>{const _0x5ab412=_0xdbd9a1;if(_0x5ab412(0x1b0)==_0x23ade0)return _0x5ab412(0x188);},_0x399f84[_0xdbd9a1(0x183)][_0xdbd9a1(0x172)][_0xdbd9a1(0x1ab)](this[_0xdbd9a1(0x173)]);}[_0x410956(0x1a6)](){const _0x108442=_0x410956;this[_0x108442(0x194)]=_0x138ba3(_0x399f84[_0x108442(0x183)],_0x108442(0x17e),{'ctx-name':_0x108442(0x163)}),_0x399f84[_0x108442(0x183)][_0x108442(0x172)][_0x108442(0x1ab)](this[_0x108442(0x194)]);}[_0x410956(0x16a)](){const _0x41e955=_0x410956,_0x1ac7bd=this[_0x41e955(0x177)][_0x41e955(0x198)][_0x41e955(0x193)](_0x41e955(0x1a0));_0x1ac7bd&&this[_0x41e955(0x18a)](_0x1ac7bd,_0x41e955(0x1b5),()=>{const _0x12a47c=_0x41e955,_0x2ec207=this[_0x12a47c(0x177)][_0x12a47c(0x19d)][_0x12a47c(0x183)][_0x12a47c(0x196)][_0x12a47c(0x17d)]();_0x2ec207&&_0x2ec207[_0x12a47c(0x19b)](_0x12a47c(0x18c))&&this[_0x12a47c(0x177)][_0x12a47c(0x1a1)][_0x12a47c(0x189)][_0x12a47c(0x17c)](_0x12a47c(0x19e),()=>{const _0xd6b598=_0x12a47c;_0x44675a(this[_0xd6b598(0x177)],_0x2ec207);});});const _0x2f8340=this[_0x41e955(0x177)][_0x41e955(0x198)][_0x41e955(0x193)](_0x41e955(0x16b));_0x2f8340&&this[_0x41e955(0x18a)](_0x2f8340,_0x41e955(0x1b5),()=>{const _0xabce63=_0x41e955,_0x538c4e=this[_0xabce63(0x177)][_0xabce63(0x19d)][_0xabce63(0x183)][_0xabce63(0x196)][_0xabce63(0x17d)]();_0x538c4e&&_0x538c4e[_0xabce63(0x19b)](_0xabce63(0x18c))&&this[_0xabce63(0x177)][_0xabce63(0x1a1)][_0xabce63(0x189)][_0xabce63(0x17c)](_0xabce63(0x19e),()=>{const _0x2e27e9=_0xabce63;_0x44675a(this[_0x2e27e9(0x177)],_0x538c4e);});});}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{global as _0x4ccebf,ObservableMixin as _0xef915d}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1624e8}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xc66f92}from'ckeditor5/src/icons.js';import _0x581737 from'./uploadcareimageeditformview.js';import _0x486ef2 from'../../utils/uploadutils.js';import{getImageUrls as _0x23e8b0,getImageDimension as _0x426ff1}from'../../utils/editingutils.js';import{isAncestor as _0x22c265}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
24
- _0xef915d(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x572bd4,_0x2070d2,_0x2b9847){super(),this['_editor']=_0x572bd4,this['_dialog']=_0x2070d2,this['_imageElement']=_0x2b9847,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 _0x545794=this['_imageElement'],_0x2bd22f=_0x545794['getAttribute']('uploadcareImageId'),_0xc0e5dd=_0x545794['getAttribute']('src');if(_0x2bd22f)await this['_loadImageInfo'](_0x2bd22f,_0xc0e5dd);else{if(this['_imageCache']['has'](_0xc0e5dd)){const _0x5e6f6c=this['_imageCache']['get'](_0xc0e5dd);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5e6f6c['url'],this['imageDimension']=_0x5e6f6c['dimension'],this['imageId']=_0x5e6f6c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xaf55c4}=this['_editor'],t=_0xaf55c4['t'],_0x1a2840=new _0x581737(_0xaf55c4,this['imageStatus'],this['_attributes']);_0x1a2840['bind']('status')['to'](this,'imageStatus'),_0x1a2840['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1a2840['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1a2840['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1a2840,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xc66f92,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1a2840,'position':_0x1624e8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1a2840['focus']();},'onHide':()=>{_0x1a2840['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xa7e881=>!_0x22c265(_0xa7e881,_0x1a2840['element'])}});}['_loadImageInfo'](_0x5345aa,_0x497bd1){return _0x486ef2['getInfo'](_0x5345aa,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x31a72f=>{const {width:_0x57023f,height:_0x3d8cfb}=_0x31a72f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x497bd1,this['imageDimension']={'width':_0x57023f,'height':_0x3d8cfb},this['imageId']=_0x5345aa;})['catch'](_0xe446ed=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xe446ed['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x43d1e9,_0x4f43e2){return this['_getImageAsFile'](_0x43d1e9)['then'](_0x45a390=>_0x486ef2['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4f43e2['signal'],'file':_0x45a390,'onProgress':_0x2b0d73=>{_0x2b0d73&&_0x2b0d73['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2b0d73['value']));}}))['then'](_0xbd290c=>{const {width:_0xf8329,height:_0x446eec}=_0xbd290c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xbd290c['cdnUrl'],this['imageDimension']={'width':_0xf8329,'height':_0x446eec},this['imageId']=_0xbd290c['uuid'],this['imageUploadProgress']=null;const _0x5d157c=_0x43d1e9['getAttribute']('src');this['_imageCache']['set'](_0x5d157c,{'id':_0xbd290c['uuid'],'url':_0xbd290c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xd3e782=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xd3e782['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3e7c9b,_0x4b898a){_0x3e7c9b['on']('apply',(_0x26fe7b,_0x13a751)=>{this['_replaceImage'](_0x4b898a,_0x13a751['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3e7c9b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3e7c9b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x210e8a,_0x1a30a4,_0x183382){const _0x5b40f1=this['_editor'],{width:_0x2b2d20,height:_0x5b6888}=_0x426ff1(_0x1a30a4,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xa6675b,imageSources:_0x1fe80a}=_0x23e8b0(_0x1a30a4,_0x2b2d20);_0x5b40f1['model']['change'](_0x5a1ba8=>{if('$graveyard'===_0x210e8a['root']['rootName']){_0x5b40f1['execute']('insertImage',{'imageType':_0x210e8a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x210e8a['getAttributes']()),'uploadcareImageId':_0x183382,'src':_0xa6675b,'sources':_0x1fe80a,'width':_0x2b2d20,'height':_0x5b6888}});const _0x3cd1a7=_0x210e8a['getChildren']();_0x210e8a=_0x5b40f1['model']['document']['selection']['getSelectedElement']();for(const _0x569d71 of _0x3cd1a7)_0x5a1ba8['append'](_0x5a1ba8['cloneElement'](_0x569d71),_0x210e8a);}else _0x5a1ba8['setSelection'](_0x210e8a,'on'),_0x5b40f1['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x210e8a['getAttributes']()),'uploadcareImageId':_0x183382,'src':_0xa6675b,'sources':_0x1fe80a,'width':_0x2b2d20,'height':_0x5b6888},_0x210e8a);_0x5a1ba8['setSelection'](_0x210e8a,'on');});}async['_getImageAsFile'](_0x2220f9){const _0x49b545=_0x4ccebf['window'],_0x3470cf=_0x4ccebf['document']['location']['href'],_0x5e949e=new _0x49b545['URL'](_0x2220f9['getAttribute']('src'),_0x3470cf);if('data:'===_0x5e949e['protocol']){const _0x515f98=_0x5e949e['href']['split'](','),_0x13afd8=_0x515f98[0x0]['match'](/:(.*?);/)[0x1],_0x5389ba=_0x13afd8['split']('/')[0x1],_0x45ec6a=_0x49b545['atob'](_0x515f98[_0x515f98['length']-0x1]);let _0x2efaf=_0x45ec6a['length'];const _0x419bb1=new _0x49b545['Uint8Array'](_0x2efaf);for(;_0x2efaf--;)_0x419bb1[_0x2efaf]=_0x45ec6a['charCodeAt'](_0x2efaf);return new _0x49b545['File']([_0x419bb1],'image.'+_0x5389ba,{'type':_0x13afd8});}const _0x5baa45=_0x5e949e['href']['split']('/'),_0x2d91a0=_0x5baa45[_0x5baa45['length']-0x1],_0x49c309=_0x2d91a0['split']('.')[0x1];return _0x49b545['fetch'](_0x5e949e['href'])['then'](_0x5f3a73=>_0x5f3a73['clone']()['blob']())['then'](_0x473c5d=>new _0x49b545['File']([_0x473c5d],_0x2d91a0,{'type':'image/'+_0x49c309}));}}
23
+ import{global as _0x20410f,ObservableMixin as _0x3639de}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2fe0fa}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x382179}from'ckeditor5/src/icons.js';import _0x173f2a from'./uploadcareimageeditformview.js';import _0x43aafe from'../../utils/uploadutils.js';import{getImageUrls as _0x4a427e,getImageDimension as _0x5e27ce}from'../../utils/editingutils.js';import{isAncestor as _0x96645b}from'../../utils/isancestor.js';export default class O extends/* #__PURE__ -- @preserve */
24
+ _0x3639de(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x409e28,_0x1be5f9,_0xed53e9){super(),this['_editor']=_0x409e28,this['_dialog']=_0x1be5f9,this['_imageElement']=_0xed53e9,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 _0x338125=this['_imageElement'],_0x4cc58a=_0x338125['getAttribute']('uploadcareImageId'),_0x517d5c=_0x338125['getAttribute']('src');if(_0x4cc58a)await this['_loadImageInfo'](_0x4cc58a,_0x517d5c);else{if(this['_imageCache']['has'](_0x517d5c)){const _0x472d83=this['_imageCache']['get'](_0x517d5c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x472d83['url'],this['imageDimension']=_0x472d83['dimension'],this['imageId']=_0x472d83['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x42dc69}=this['_editor'],t=_0x42dc69['t'],_0x160e8c=new _0x173f2a(_0x42dc69,this['imageStatus'],this['_attributes']);_0x160e8c['bind']('status')['to'](this,'imageStatus'),_0x160e8c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x160e8c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x160e8c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x160e8c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x382179,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x160e8c,'position':_0x2fe0fa['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x160e8c['focus']();},'onHide':()=>{_0x160e8c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3d341a=>!_0x96645b(_0x3d341a,_0x160e8c['element'])}});}['_loadImageInfo'](_0x5490b4,_0x2843bb){return _0x43aafe['getInfo'](_0x5490b4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xcd7a97=>{const {width:_0x47b98d,height:_0x52183c}=_0xcd7a97['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2843bb,this['imageDimension']={'width':_0x47b98d,'height':_0x52183c},this['imageId']=_0x5490b4;})['catch'](_0x3f4a42=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3f4a42['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x7f76c4,_0x158cff){return this['_getImageAsFile'](_0x7f76c4)['then'](_0x3587bd=>_0x43aafe['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x158cff['signal'],'file':_0x3587bd,'onProgress':_0x2738ff=>{_0x2738ff&&_0x2738ff['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2738ff['value']));}}))['then'](_0x4c77d5=>{const {width:_0x1440d4,height:_0x387c9c}=_0x4c77d5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c77d5['cdnUrl'],this['imageDimension']={'width':_0x1440d4,'height':_0x387c9c},this['imageId']=_0x4c77d5['uuid'],this['imageUploadProgress']=null;const _0x573f3f=_0x7f76c4['getAttribute']('src');this['_imageCache']['set'](_0x573f3f,{'id':_0x4c77d5['uuid'],'url':_0x4c77d5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3a1d16=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3a1d16['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x56ab53,_0x1b84bd){_0x56ab53['on']('apply',(_0xf049cd,_0x5939fd)=>{this['_replaceImage'](_0x1b84bd,_0x5939fd['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x56ab53['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x56ab53['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x339ec2,_0x5ca6cc,_0x398e77){const _0x59c3ee=this['_editor'],{width:_0x2ddf62,height:_0x2287d6}=_0x5e27ce(_0x5ca6cc,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x52bad1,imageSources:_0x2dc089}=_0x4a427e(_0x5ca6cc,_0x2ddf62);_0x59c3ee['model']['change'](_0x496cf2=>{if('$graveyard'===_0x339ec2['root']['rootName']){_0x59c3ee['execute']('insertImage',{'imageType':_0x339ec2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x339ec2['getAttributes']()),'uploadcareImageId':_0x398e77,'src':_0x52bad1,'sources':_0x2dc089,'width':_0x2ddf62,'height':_0x2287d6}});const _0x13500c=_0x339ec2['getChildren']();_0x339ec2=_0x59c3ee['model']['document']['selection']['getSelectedElement']();for(const _0x4822da of _0x13500c)_0x496cf2['append'](_0x496cf2['cloneElement'](_0x4822da),_0x339ec2);}else _0x496cf2['setSelection'](_0x339ec2,'on'),_0x59c3ee['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x339ec2['getAttributes']()),'uploadcareImageId':_0x398e77,'src':_0x52bad1,'sources':_0x2dc089,'width':_0x2ddf62,'height':_0x2287d6},_0x339ec2);_0x496cf2['setSelection'](_0x339ec2,'on');});}async['_getImageAsFile'](_0x131ee1){const _0x131f7f=_0x20410f['window'],_0x575eb6=_0x20410f['document']['location']['href'],_0x3d7777=new _0x131f7f['URL'](_0x131ee1['getAttribute']('src'),_0x575eb6);if('data:'===_0x3d7777['protocol']){const _0x52b6de=_0x3d7777['href']['split'](','),_0xe12b95=_0x52b6de[0x0]['match'](/:(.*?);/)[0x1],_0x597658=_0xe12b95['split']('/')[0x1],_0x374c96=_0x131f7f['atob'](_0x52b6de[_0x52b6de['length']-0x1]);let _0x4000f2=_0x374c96['length'];const _0x1fccc7=new _0x131f7f['Uint8Array'](_0x4000f2);for(;_0x4000f2--;)_0x1fccc7[_0x4000f2]=_0x374c96['charCodeAt'](_0x4000f2);return new _0x131f7f['File']([_0x1fccc7],'image.'+_0x597658,{'type':_0xe12b95});}const _0x1d25da=_0x3d7777['href']['split']('/'),_0x301428=_0x1d25da[_0x1d25da['length']-0x1],_0x45c87b=_0x301428['split']('.')[0x1];return _0x131f7f['fetch'](_0x3d7777['href'])['then'](_0x3deafc=>_0x3deafc['clone']()['blob']())['then'](_0x14e798=>new _0x131f7f['File']([_0x14e798],_0x301428,{'type':'image/'+_0x45c87b}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4a96(_0x206ee9,_0x190303){const _0x5acdbe=_0x5acd();return _0x4a96=function(_0x4a964c,_0x1d4a29){_0x4a964c=_0x4a964c-0xb3;let _0x4a8369=_0x5acdbe[_0x4a964c];return _0x4a8369;},_0x4a96(_0x206ee9,_0x190303);}function _0x5acd(){const _0x439bdf=['995751BZoorU','39795ViTral','6287785KevUMA','ck-uploadcare-theme','14XcbYxk','set','bindTemplate','241544xGrwtR','102HrgqFI','395096QSpEjQ','944140SQoZCy','2554398nKqDKw','setTemplate','image-edit','imageSrc','uc-light','uc-cloud-image-editor'];_0x5acd=function(){return _0x439bdf;};return _0x5acd();}(function(_0x23a170,_0xb25320){const _0x25b127=_0x4a96,_0x1e07de=_0x23a170();while(!![]){try{const _0x34f0e4=-parseInt(_0x25b127(0xbc))/0x1+-parseInt(_0x25b127(0xbb))/0x2*(-parseInt(_0x25b127(0xb4))/0x3)+-parseInt(_0x25b127(0xbd))/0x4+parseInt(_0x25b127(0xb5))/0x5+-parseInt(_0x25b127(0xbe))/0x6+-parseInt(_0x25b127(0xb7))/0x7*(parseInt(_0x25b127(0xba))/0x8)+parseInt(_0x25b127(0xb3))/0x9;if(_0x34f0e4===_0xb25320)break;else _0x1e07de['push'](_0x1e07de['shift']());}catch(_0x42e523){_0x1e07de['push'](_0x1e07de['shift']());}}}(_0x5acd,0xe26e5));import{View as _0xa2595b}from'ckeditor5/src/ui.js';export default class tt extends _0xa2595b{constructor(_0x5d085d,_0x20edef){const _0x174819=_0x4a96;super(_0x5d085d);const _0x91d2d8=this[_0x174819(0xb9)];this[_0x174819(0xb8)](_0x174819(0xc1),''),this[_0x174819(0xbf)]({'tag':_0x174819(0xc3),'attributes':{..._0x20edef,'class':[_0x174819(0xc2),_0x174819(0xb6)],'ctx-name':_0x174819(0xc0),'cdn-url':_0x91d2d8['to'](_0x174819(0xc1))}});}}
23
+ function _0x5f0d(_0x35e053,_0x1f2738){const _0x585e0e=_0x585e();return _0x5f0d=function(_0x5f0d31,_0x4ade9b){_0x5f0d31=_0x5f0d31-0x15c;let _0x2a108c=_0x585e0e[_0x5f0d31];return _0x2a108c;},_0x5f0d(_0x35e053,_0x1f2738);}(function(_0x789e99,_0x316b67){const _0x123965=_0x5f0d,_0xf58454=_0x789e99();while(!![]){try{const _0x370c2f=parseInt(_0x123965(0x15e))/0x1*(-parseInt(_0x123965(0x169))/0x2)+-parseInt(_0x123965(0x164))/0x3+-parseInt(_0x123965(0x160))/0x4*(parseInt(_0x123965(0x16a))/0x5)+parseInt(_0x123965(0x16b))/0x6*(-parseInt(_0x123965(0x168))/0x7)+parseInt(_0x123965(0x165))/0x8+parseInt(_0x123965(0x166))/0x9*(-parseInt(_0x123965(0x167))/0xa)+parseInt(_0x123965(0x162))/0xb;if(_0x370c2f===_0x316b67)break;else _0xf58454['push'](_0xf58454['shift']());}catch(_0x15f44f){_0xf58454['push'](_0xf58454['shift']());}}}(_0x585e,0x74661));function _0x585e(){const _0x10863d=['43630uZJFsz','125766tiZDFW','uc-light','uc-cloud-image-editor','setTemplate','ck-uploadcare-theme','imageSrc','1eHSBkS','bindTemplate','140NUTJtr','set','19310544kxNZRF','image-edit','329526KGpUCB','7182008ndbaSX','333uaMgie','3820cuviFk','301bzhIgl','1691554pbsPBn'];_0x585e=function(){return _0x10863d;};return _0x585e();}import{View as _0x229175}from'ckeditor5/src/ui.js';export default class tt extends _0x229175{constructor(_0x28a50b,_0x6c688e){const _0x4da712=_0x5f0d;super(_0x28a50b);const _0x30b480=this[_0x4da712(0x15f)];this[_0x4da712(0x161)](_0x4da712(0x15d),''),this[_0x4da712(0x16e)]({'tag':_0x4da712(0x16d),'attributes':{..._0x6c688e,'class':[_0x4da712(0x16c),_0x4da712(0x15c)],'ctx-name':_0x4da712(0x163),'cdn-url':_0x30b480['to'](_0x4da712(0x15d))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x3cb000,IconView as at,View as _0x24ed59}from'ckeditor5/src/ui.js';export default class rt extends _0x24ed59{constructor(_0x13a273){super(_0x13a273);const t=_0x13a273['t'];this['set']('errorType',null);const _0x6c52d7=new _0x3cb000(_0x13a273);_0x6c52d7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x6c52d7['withText']=!0x0,_0x6c52d7['class']='ck-button-action',_0x6c52d7['on']('execute',()=>{this['fire']('retry');}),_0x6c52d7['bind']('isVisible')['to'](this,'errorType',_0x563027=>'NotFound'!==_0x563027);const _0xd90949=new at();_0xd90949['content']=et,_0xd90949['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x52d22a=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':[_0xd90949,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x52d22a['to']('errorType',_0x1ca0a9=>t('NotFound'!==_0x1ca0a9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x6c52d7]},{'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 _0x409029,IconView as at,View as _0x1893ba}from'ckeditor5/src/ui.js';export default class rt extends _0x1893ba{constructor(_0x314f30){super(_0x314f30);const t=_0x314f30['t'];this['set']('errorType',null);const _0x215997=new _0x409029(_0x314f30);_0x215997['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x215997['withText']=!0x0,_0x215997['class']='ck-button-action',_0x215997['on']('execute',()=>{this['fire']('retry');}),_0x215997['bind']('isVisible')['to'](this,'errorType',_0x3f2af=>'NotFound'!==_0x3f2af);const _0x28d4fa=new at();_0x28d4fa['content']=et,_0x28d4fa['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4950ed=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':[_0x28d4fa,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4950ed['to']('errorType',_0x377178=>t('NotFound'!==_0x377178?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x215997]},{'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 _0x802ab0,View as _0x2dd971}from'ckeditor5/src/ui.js';export default class ta extends _0x2dd971{constructor(_0x22d67e){super(_0x22d67e);const t=_0x22d67e['t'],_0x291b59=this['bindTemplate'],_0x928c0c=new _0x802ab0();_0x928c0c['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':[_0x928c0c,{'text':_0x291b59['to']('imageUploadProgress',_0x881284=>t('Loading\x20image...')+'\x20('+(_0x881284||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 _0x4b1341,View as _0x43f37e}from'ckeditor5/src/ui.js';export default class ta extends _0x43f37e{constructor(_0x1a5feb){super(_0x1a5feb);const t=_0x1a5feb['t'],_0xcafb84=this['bindTemplate'],_0x29814d=new _0x4b1341();_0x29814d['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':[_0x29814d,{'text':_0xcafb84['to']('imageUploadProgress',_0x139978=>t('Loading\x20image...')+'\x20('+(_0x139978||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'}]}]}]});}}