@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260125.0 → 0.0.0-nightly-20260126.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x27fa93,Command as _0x45278d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x116a1a,IconGooglePhotos as _0x257269,IconGoogleDrive as _0xb02420,IconFacebook as _0x45f0c7,IconDropbox as _0x4b4286,IconUploadcareLink as _0x1983df,IconUploadcareImageUpload as _0x3638b3,IconError as _0x2e5b40,IconUploadcareImageEdit as _0xb51fd6}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x43235,MenuBarMenuListItemButtonView as _0x863b36,View as _0xb4225f,FocusCycler as _0x36bf49,Dialog as _0x3c0f0f,DialogViewPosition as _0x40af34,SpinnerView as _0x1d0767,IconView as _0x484228,Notification as _0x5c2864}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x20bc40,DomEmitterMixin as _0x44d3cc,global as _0x1312d8,getAncestors as _0x2af2bf,ObservableMixin as _0x523aa2,uid as _0x2a9b8d,createElement as _0x184083}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xaed829}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x402ae7,info as _0xf755cb}from'@uploadcare/upload-client';import*as _0x226517 from'@uploadcare/file-uploader';var i=function(_0x4b0412){return _0x4b0412['Local']='local',_0x4b0412['URL']='url',_0x4b0412['Dropbox']='dropbox',_0x4b0412['GDrive']='gdrive',_0x4b0412['Facebook']='facebook',_0x4b0412['GPhotos']='gphotos',_0x4b0412['OneDrive']='onedrive',_0x4b0412;}({});function _(_0x428fa7,_0xc79048,_0x3eec26){const t=_0x428fa7['t'],_0x16a6d8=_0x428fa7['t'];switch(_0xc79048){case i['Local']:return{'text':_0x16a6d8('Insert'===_0x3eec26?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x16a6d8('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3eec26?_0x16a6d8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x16a6d8('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3eec26?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3eec26?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3eec26?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3eec26?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3eec26?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xc79048;}}class e extends _0x27fa93{['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 _0x1792e3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x149b48;for(const _0x42bd64 in _0x1792e3){const _0x880371=_0x42bd64,_0x34318d=_0x1792e3[_0x880371];if('uploadcareLicenseKeyValid'==_0x34318d||'uploadcareLicenseKeyInvalid'==_0x34318d||'uploadcareLicenseKeyExpired'==_0x34318d||'uploadcareLicenseKeyDomainLimit'==_0x34318d||'uploadcareLicenseKeyNotAllowed'==_0x34318d||'uploadcareLicenseKeyEvaluationLimit'==_0x34318d||'uploadcareLicenseKeyUsageLimit'==_0x34318d){delete _0x1792e3[_0x880371],_0x149b48=_0x34318d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x149b48&&_0x1792e3['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x149b48&&_0x1792e3['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x149b48&&_0x1792e3['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x149b48&&_0x1792e3['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x149b48&&_0x1792e3['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x149b48&&_0x1792e3['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5372fc}=this,_0x37910d=_0x5372fc['commands']['get']('uploadcare');if(!_0x37910d)return;const _0x475864=this['_normalizeConfigSourceList'](_0x5372fc['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3188e6,_0x5166cf)=>{const _0x50d70c=this['_getIntegrationKey'](_0x5166cf['type']);return _0x3188e6[_0x50d70c]||(_0x3188e6[_0x50d70c]=[]),_0x3188e6[_0x50d70c]['push'](_0x5166cf),_0x3188e6;},{});_0x5372fc['plugins']['has']('ImageInsertUI')&&_0x5372fc['commands']['get']('uploadcare')&&Object['entries'](_0x475864)['forEach'](([_0x453dbd,_0x58b4b1])=>{_0x5372fc['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x453dbd,'observable':()=>_0x37910d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x58b4b1),'formViewCreator':()=>this['_createDropdownButtons'](_0x58b4b1),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x58b4b1),'override':'assetManager'!==_0x453dbd});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3793a4){const {locale:_0x1a0880}=this['editor'];return _0x3793a4['map'](_0x20470d=>{const _0x2e56f0=_(_0x1a0880,_0x20470d,'Insert');switch(_0x20470d){case i['Local']:return{'icon':_0x3638b3,'type':i['Local'],..._0x2e56f0};case i['URL']:return{'icon':_0x1983df,'type':i['URL'],..._0x2e56f0};case i['Dropbox']:return{'icon':_0x4b4286,'type':i['Dropbox'],..._0x2e56f0};case i['Facebook']:return{'icon':_0x45f0c7,'type':i['Facebook'],..._0x2e56f0};case i['GDrive']:return{'icon':_0xb02420,'type':i['GDrive'],..._0x2e56f0};case i['GPhotos']:return{'icon':_0x257269,'type':i['GPhotos'],..._0x2e56f0};case i['OneDrive']:return{'icon':_0x116a1a,'type':i['OneDrive'],..._0x2e56f0};}});}['_getIntegrationKey'](_0x166405){switch(_0x166405){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1f0cf7,_0x50bc5f){const _0x33376b=this['editor'],_0xcdc17e=new _0x1f0cf7(_0x33376b['locale']),_0x4097cd=_0x33376b['commands']['get']('uploadcare');return _0xcdc17e['bind']('isEnabled')['to'](_0x4097cd),_0xcdc17e['on']('execute',()=>{_0x4097cd['execute'](_0x50bc5f);}),_0xcdc17e;}['_createToolbarButton'](_0xf6e9af){const {locale:_0x53a007}=this['editor'],_0x176172=this['editor']['plugins']['get']('ImageInsertUI'),_0x356e9c=_0xf6e9af[0x0],_0x6dce08=this['_createButton'](_0x43235,_0x356e9c['type']);return _0x6dce08['icon']=_0x356e9c['icon'],_0x6dce08['bind']('label')['to'](_0x176172,'isImageSelected',_0x3ff6cf=>_(_0x53a007,_0x356e9c['type'],_0x3ff6cf?'Replace':'Insert')['text']),_0x6dce08['tooltip']=!0x0,_0x6dce08;}['_createDropdownButtons'](_0x59c8b6){const {locale:_0x2ddfce}=this['editor'],_0x3871e7=this['editor']['plugins']['get']('ImageInsertUI');return _0x59c8b6['map'](_0x548c27=>{const _0x4cfd9c=this['_createButton'](_0x43235,_0x548c27['type']);return _0x4cfd9c['withText']=!0x0,_0x4cfd9c['icon']=_0x548c27['icon'],_0x4cfd9c['bind']('label')['to'](_0x3871e7,'isImageSelected',_0x512b90=>_(_0x2ddfce,_0x548c27['type'],_0x512b90?'Replace':'Insert')['text']),_0x4cfd9c;});}['_createMenuBarButtons'](_0x1fcea9){return _0x1fcea9['map'](_0x52b8c3=>{const _0xdf4792=this['_createButton'](_0x863b36,_0x52b8c3['type']);return _0xdf4792['icon']=_0x52b8c3['icon'],_0xdf4792['label']=_0x52b8c3['shortText'],_0xdf4792;});}}class F extends _0xb4225f{['focusTracker'];['focusCycler'];constructor(_0x4e7343){super(_0x4e7343),this['focusTracker']=new _0x20bc40(),this['focusCycler']=new _0x36bf49({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x5c9b58,_0x1eda99){super(_0x5c9b58),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-'+_0x1eda99}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x46afc4,_0x5ec2b3){const _0x4dbf6f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x49f3de=>_0x49f3de<=_0x5ec2b3)['map'](_0x2b255f=>_0x46afc4['replace'](/\/$/,'')+'/-/resize/'+_0x2b255f+'x/\x20'+_0x2b255f+'w');return{'imageFallbackUrl':_0x46afc4,'imageSources':[{'srcset':_0x4dbf6f['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5ec2b3+'px)\x20100vw,\x20'+_0x5ec2b3+'px','type':'image/webp'}]};}function S(_0x57024a,_0x2a508b,_0x38995f){const _0x28eb2b=_0x57024a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x28eb2b?parseInt(_0x28eb2b[0x1],0xa):_0x2a508b,'height':_0x28eb2b?parseInt(_0x28eb2b[0x2],0xa):_0x38995f};}function p(_0x453919,_0x1657fa){const _0x251cd8=new(_0x44d3cc())(),_0x8a3438=_0x453919['plugins']['get']('ImageUtils'),_0x4ac1c2=_0x453919['editing']['mapper']['toViewElement'](_0x1657fa),_0x41710f=_0x8a3438['findViewImgElement'](_0x4ac1c2),_0x2c6c07=_0x453919['editing']['view']['domConverter']['viewToDom'](_0x41710f),_0x471b30=_0x1657fa['getAttribute']('width'),_0x12166b=_0x1657fa['getAttribute']('height'),_0x233e98='image-processing';_0x453919['editing']['view']['change'](_0x15719a=>{_0x15719a['addClass'](_0x233e98,_0x4ac1c2),_0x15719a['setStyle']('aspect-ratio',_0x471b30+'/'+_0x12166b,_0x41710f);}),_0x251cd8['listenTo'](_0x2c6c07,'load',()=>{_0x251cd8['stopListening'](_0x2c6c07,'load'),_0x453919['editing']['view']['change'](_0x5159c4=>{_0x5159c4['removeClass'](_0x233e98,_0x4ac1c2),_0x5159c4['removeStyle']('aspect-ratio',_0x41710f);});});}function G(_0x18b5b0){if(Array['isArray'](_0x18b5b0)){const _0x344f90=_0x18b5b0['map'](G);return _0x5e2204=>_0x344f90['some'](_0x29bf65=>_0x29bf65(_0x5e2204));}if('origin'==_0x18b5b0){const _0xccdad8=_0x1312d8['window']['location']['origin'];return _0x245ad7=>new URL(_0x245ad7,_0x1312d8['document']['baseURI'])['origin']==_0xccdad8;}return'function'==typeof _0x18b5b0?_0x18b5b0:_0x18b5b0 instanceof RegExp?_0x1937e6=>!(!_0x1937e6['match'](_0x18b5b0)&&!_0x1937e6['replace'](/^https?:\/\//,'')['match'](_0x18b5b0)):()=>!0x1;}function A(_0x57d107,_0x337b7d){return _0x2af2bf(_0x57d107['target'])['includes'](_0x337b7d);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x523aa2(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2e5066,_0x559454,_0x3a0c83){super(),this['_editor']=_0x2e5066,this['_editing']=_0x559454,this['_dialog']=_0x2e5066['plugins']['get'](_0x3c0f0f),this['_api']=_0x559454['ctxElement']['getAPI'](),this['_type']=_0x3a0c83,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:_0x1fcc96,model:_0x12cf7a}=this['_editor'],_0x2d974f=_0x12cf7a['document']['selection']['getSelectedElement'](),_0x5cb329=_0x2d974f&&(_0x2d974f['is']('element','imageBlock')||_0x2d974f['is']('element','imageInline'));this['_formView']=new x(_0x1fcc96,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3638b3,'title':_(_0x1fcc96,this['_type'],_0x5cb329?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x40af34['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xc06b82=>!A(_0xc06b82,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2f4fd0}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4554cc=>{const _0x4675c2=_0x2f4fd0['length'];for(const _0x4eaf5c of _0x2f4fd0){const _0x477f57=_0x4eaf5c===_0x2f4fd0[_0x4675c2-0x1],{cdnUrl:_0x2a114d,fileInfo:_0x3ae7bd}=_0x4eaf5c;if(!_0x2a114d||!_0x3ae7bd)continue;const {width:_0x5afe95,height:_0x4291ea}=_0x3ae7bd['imageInfo'],_0x5f5c37=S(_0x2a114d,_0x5afe95,_0x4291ea),_0x46c755=C(_0x2a114d,_0x5f5c37['width']),_0x125c45={'id':_0x3ae7bd['uuid'],'type':'image','attributes':{'imageDimension':_0x5f5c37,..._0x46c755}};this['_insertAsset'](_0x125c45,_0x477f57,_0x4554cc);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5b42a0=>{'idle'===_0x5b42a0['detail']['status']&&!_0x5b42a0['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x290442,_0x28ca07,_0x202346){const _0x270e69=this['_editor']['model']['document']['selection'],_0x3e2b3e=_0x270e69['getSelectedElement'](),_0x3adf7d=!(!_0x3e2b3e||!_0x3e2b3e['is']('element','imageInline'));_0x202346['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x290442,_0x3adf7d),_0x28ca07||_0x202346['setSelection'](_0x270e69['getLastPosition']());}['_insertImage'](_0x69a0c0,_0x29df2d){const _0x449cb2=this['_editor'],{imageDimension:_0x14fed5,imageFallbackUrl:_0x3cc4ce,imageSources:_0x30cbb0}=_0x69a0c0['attributes'];_0x449cb2['execute']('insertImage',{'imageType':_0x29df2d?'imageInline':null,'source':{'uploadcareImageId':_0x69a0c0['id'],'src':_0x3cc4ce,'sources':_0x30cbb0,..._0x14fed5}});}}class w extends _0x45278d{['_editing'];['_controller']=null;static get['requires'](){return[_0x3c0f0f,o];}constructor(_0x30408c){super(_0x30408c),this['_editing']=_0x30408c['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1ace59){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1ace59);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x43f3b5,..._0x5da492}){return _0x402ae7(_0x43f3b5,_0x5da492);}static['getInfo'](_0x37a13e,_0x4a5c50){return _0xf755cb(_0x37a13e,_0x4a5c50);}}class f extends _0x27fa93{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xaed829,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5d9e86=this['editor'];if(!!!_0x5d9e86['config']['get']('uploadcare'))return;_0x5d9e86['plugins']['get'](_0xaed829)['createUploadAdapter']=_0x4257e6=>new k(_0x4257e6,_0x5d9e86),_0x5d9e86['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xb97470,{imageElement:_0x335863,data:_0x26387a})=>{_0x5d9e86['model']['change'](_0x1f84c8=>{_0x1f84c8['setAttribute']('uploadcareImageId',_0x26387a['uploadcareImageId'],_0x335863);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x7cf7ce,_0x347925){this['loader']=_0x7cf7ce,this['editor']=_0x347925,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x28a994=await this['loader']['file'];return j['upload']({'file':_0x28a994,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x8c52aa=>{_0x8c52aa&&_0x8c52aa['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x8c52aa['value']);}})['then'](async _0x1882e9=>{const {imageFallbackUrl:_0x182558,imageSources:_0x35d2e8}=C(_0x1882e9['cdnUrl'],_0x1882e9['imageInfo']['width']);return{'uploadcareImageId':_0x1882e9['uuid'],'default':_0x182558,'sources':_0x35d2e8};})['catch'](()=>{const _0x1c7455=t('Cannot\x20upload\x20file:')+('\x20'+_0x28a994['name']+'.');return Promise['reject'](_0x1c7455);});}['abort'](){this['controller']['abort']();}}class o extends _0x27fa93{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x3c0f0f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x4602b9){super(_0x4602b9),this['ucContextId']=_0x2a9b8d();}['init'](){const _0x9b145f=this['editor'];_0x9b145f['commands']['add']('uploadcare',new w(_0x9b145f));}['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 _0x48f1ab=_0x1312d8['document']['querySelector']('input[uploadcare-file-input]');_0x48f1ab&&_0x48f1ab['remove']();}),async function(_0x3bd4f7){const _0x2315c5=_0x2781af([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1027ef=0x535f8c3a,_0x14239b=0x5358f3ea^_0x1027ef,_0xe874da=window[_0x2781af([0x44,0x61,0x74,0x65])][_0x2781af([0x6e,0x6f,0x77])](),_0x1f17c7=_0x3bd4f7[_0x2781af([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x31e215=new window[(_0x2781af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1100db=>{_0x1f17c7[_0x2781af([0x6f,0x6e,0x63,0x65])](_0x2781af([0x72,0x65,0x61,0x64,0x79]),_0x1100db);}),_0x5bfaf8={[_0x2781af([0x6b,0x74,0x79])]:_0x2781af([0x45,0x43]),[_0x2781af([0x75,0x73,0x65])]:_0x2781af([0x73,0x69,0x67]),[_0x2781af([0x63,0x72,0x76])]:_0x2781af([0x50,0x2d,0x32,0x35,0x36]),[_0x2781af([0x78])]:_0x2781af([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]),[_0x2781af([0x79])]:_0x2781af([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]),[_0x2781af([0x61,0x6c,0x67])]:_0x2781af([0x45,0x53,0x32,0x35,0x36])},_0x56cf04=_0x1f17c7[_0x2781af([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2781af([0x67,0x65,0x74])](_0x2781af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x152753(){let _0x333060,_0x47d85f=null,_0x5b863b=null;try{if(_0x56cf04==_0x2781af([0x47,0x50,0x4c]))return _0x2781af([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x333060=_0x168b9a(),!_0x333060)return _0x2781af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x333060[_0x2781af([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b863b=_0x1bb64b(_0x333060[_0x2781af([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x333060[_0x2781af([0x6a,0x74,0x69])])),await _0x32a4ee()?_0x1b34c9()?_0x53da4a()?_0x2781af([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x46ab35()?(_0x333060[_0x2781af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2781af([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x47d85f=_0x4d21db(_0x2781af([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c2a35()):_0x2781af([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2781af([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2781af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2781af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x53da4a(){const _0x6246aa=[_0x2781af([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2781af([0x74,0x72,0x69,0x61,0x6c])][_0x2781af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x333060[_0x2781af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe874da/0x3e8:0xe10*_0x14239b;return _0x333060[_0x2781af([0x65,0x78,0x70])]<_0x6246aa;}function _0x1b34c9(){const _0x59463c=_0x333060[_0x2781af([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x59463c&&(!!_0x59463c[_0x2781af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2781af([0x2a]))||!!_0x59463c[_0x2781af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2781af([0x55,0x50,0x4c,0x43])));}function _0x46ab35(){const _0x3310ef=_0x333060[_0x2781af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3310ef||0x0==_0x3310ef[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e7ca4}=new URL(window[_0x2781af([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3310ef[_0x2781af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e7ca4))return!0x0;const _0x5e3d68=_0x4e7ca4[_0x2781af([0x73,0x70,0x6c,0x69,0x74])](_0x2781af([0x2e]));return _0x3310ef[_0x2781af([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a1b47=>_0x1a1b47[_0x2781af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2781af([0x2a])))[_0x2781af([0x6d,0x61,0x70])](_0x19ede7=>_0x19ede7[_0x2781af([0x73,0x70,0x6c,0x69,0x74])](_0x2781af([0x2e])))[_0x2781af([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x51b524=>_0x51b524[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5e3d68[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2781af([0x6d,0x61,0x70])](_0x38a4ce=>Array(_0x5e3d68[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x38a4ce[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2781af([0x66,0x69,0x6c,0x6c])](_0x38a4ce[0x0]===_0x2781af([0x2a])?_0x2781af([0x2a]):'')[_0x2781af([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x38a4ce))[_0x2781af([0x73,0x6f,0x6d,0x65])](_0x157c92=>_0x5e3d68[_0x2781af([0x65,0x76,0x65,0x72,0x79])]((_0xfeaff8,_0x4214ad)=>_0x157c92[_0x4214ad]===_0xfeaff8||_0x157c92[_0x4214ad]===_0x2781af([0x2a])));}function _0x4c2a35(){return _0x47d85f&&_0x5b863b?new window[(_0x2781af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a6dea,_0x2630fb)=>{_0x47d85f[_0x2781af([0x74,0x68,0x65,0x6e])](_0x2a6dea,_0x2630fb),_0x5b863b[_0x2781af([0x74,0x68,0x65,0x6e])](_0x5c82a0=>{_0x5c82a0!=_0x2781af([0x56,0x61,0x6c,0x69,0x64])&&_0x2a6dea(_0x5c82a0);},_0x2630fb);}):_0x47d85f||_0x5b863b||_0x2781af([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1bb64b(_0x4b64c4,_0x5442fb){return new window[(_0x2781af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23fe7c=>{if(_0x1307e9())return _0x23fe7c(_0x2781af([0x56,0x61,0x6c,0x69,0x64]));_0x3043e9(),_0x1f17c7[_0x2781af([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2781af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2a6ba2=!0x1;const _0x289dbe=_0x2a9b8d();function _0x269a48(_0x2b6cec){return!!_0x2b6cec&&(typeof _0x2b6cec===_0x2781af([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b6cec===_0x2781af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b6cec[_0x2781af([0x74,0x68,0x65,0x6e])]===_0x2781af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b6cec[_0x2781af([0x63,0x61,0x74,0x63,0x68])]===_0x2781af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x595572(_0x143d8b){_0x408a84(_0x143d8b)[_0x2781af([0x74,0x68,0x65,0x6e])](_0x4ba9d6=>{if(!_0x4ba9d6||_0x4ba9d6[_0x2781af([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2781af([0x6f,0x6b]))return _0x2781af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1056bf(_0x4cc6fe(_0x289dbe+_0x5442fb))!=_0x4ba9d6[_0x2781af([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2781af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2781af([0x56,0x61,0x6c,0x69,0x64]);})[_0x2781af([0x74,0x68,0x65,0x6e])](_0x47c9d6=>(_0x426a4c(),_0x47c9d6),()=>{const _0x349e0c=_0x149351();return null==_0x349e0c?(_0x426a4c(),_0x2781af([0x56,0x61,0x6c,0x69,0x64])):_0x2781af(_0xe874da-_0x349e0c>(0x7753083a^_0x1027ef)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2781af([0x74,0x68,0x65,0x6e])](_0x23fe7c)[_0x2781af([0x63,0x61,0x74,0x63,0x68])](()=>{_0x23fe7c(_0x2781af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1af351=0x536962ba^_0x1027ef;function _0x426a4c(){const _0x216eda=_0x2781af([0x6c,0x6c,0x63,0x74,0x2d])+_0x1056bf(_0x4cc6fe(_0x4b64c4)),_0x207b7a=_0x3791ec(_0x1056bf(window[_0x2781af([0x4d,0x61,0x74,0x68])][_0x2781af([0x63,0x65,0x69,0x6c])](_0xe874da/_0x1af351)));window[_0x2781af([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2781af([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x216eda,_0x207b7a);}function _0x149351(){const _0x3c7cc5=_0x2781af([0x6c,0x6c,0x63,0x74,0x2d])+_0x1056bf(_0x4cc6fe(_0x4b64c4)),_0x28bc33=window[_0x2781af([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2781af([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c7cc5);return _0x28bc33?window[_0x2781af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3791ec(_0x28bc33),0x10)*_0x1af351:null;}function _0x408a84(_0x1cdee1){return new window[(_0x2781af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1205d4,_0xc19361)=>{_0x1cdee1[_0x2781af([0x74,0x68,0x65,0x6e])](_0x1205d4,_0xc19361),window[_0x2781af([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc19361,0x535e58fa^_0x1027ef);});}}_0x1f17c7[_0x2781af([0x6f,0x6e])](_0x2781af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b5ee5,_0x1b2dd9)=>{if(_0x1b2dd9[0x0]!=_0x4b64c4)return _0x23fe7c(_0x2781af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b2dd9[0x1]={..._0x1b2dd9[0x1],[_0x2781af([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x289dbe};},{[_0x2781af([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2781af([0x68,0x69,0x67,0x68])}),_0x1f17c7[_0x2781af([0x6f,0x6e])](_0x2781af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1f82d4=>{_0x269a48(_0x1f82d4[_0x2781af([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2a6ba2=!0x0,_0x595572(_0x1f82d4[_0x2781af([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2781af([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2781af([0x6c,0x6f,0x77])}),_0x31e215[_0x2781af([0x74,0x68,0x65,0x6e])](()=>{_0x2a6ba2||_0x23fe7c(_0x2781af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1307e9(){return _0x1f17c7[_0x2781af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2781af([0x76,0x69,0x65,0x77])][_0x2781af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2781af([0x61,0x75,0x74,0x6f]);}function _0x3043e9(){_0x1f17c7[_0x2781af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2781af([0x76,0x69,0x65,0x77])][_0x2781af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2781af([0x61,0x75,0x74,0x6f]);}}function _0x4d21db(_0x292b18){const _0x15f721=[new window[(_0x2781af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb722b0=>setTimeout(_0xb722b0,0x5356b2f6^_0x1027ef)),_0x31e215[_0x2781af([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2781af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36b886=>{let _0x789c3e=0x0;_0x1f17c7[_0x2781af([0x6d,0x6f,0x64,0x65,0x6c])][_0x2781af([0x6f,0x6e])](_0x2781af([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4c70b5,_0x1921e5)=>{_0x1921e5[0x0][_0x2781af([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x789c3e++,_0x789c3e==(0x535f89d2^_0x1027ef)&&(_0x36b886(),_0x4c70b5[_0x2781af([0x6f,0x66,0x66])]());});}))];return window[_0x2781af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2781af([0x72,0x61,0x63,0x65])](_0x15f721)[_0x2781af([0x74,0x68,0x65,0x6e])](()=>_0x292b18);}async function _0x5e91ec(){await _0x31e215,_0x1f17c7[_0x2781af([0x6d,0x6f,0x64,0x65,0x6c])][_0x2781af([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x480202,_0x1f17c7[_0x2781af([0x6d,0x6f,0x64,0x65,0x6c])][_0x2781af([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x480202,_0x1f17c7[_0x2781af([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2781af([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x599a55(_0x1eaea9){const _0x28959f=_0x1ce065();_0x1f17c7[_0x28959f]=_0x2781af([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1eaea9,_0x1eaea9!=_0x2781af([0x56,0x61,0x6c,0x69,0x64])&&_0x5e91ec();}function _0x1ce065(){const _0x501db2=window[_0x2781af([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2781af([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2781af([0x6e,0x6f,0x77])]())[_0x2781af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2781af([0x2e]),'');let _0x25aab7=_0x2781af([0x68]);for(let _0x154187=0x0;_0x154187<_0x501db2[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x154187+=0x2){let _0x325133=window[_0x2781af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x501db2[_0x2781af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x154187,_0x154187+0x2));_0x325133>=_0x2315c5[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x325133-=_0x2315c5[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x25aab7+=_0x2315c5[_0x325133];}return _0x25aab7;}function _0x168b9a(){const _0x3f3198=_0x56cf04[_0x2781af([0x73,0x70,0x6c,0x69,0x74])](_0x2781af([0x2e]));if(0x3!=_0x3f3198[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4d754e(_0x3f3198[0x1]);function _0x4d754e(_0x103049){const _0x52558c=_0x600e83(_0x103049);return _0x52558c&&_0x167f35()?_0x52558c:null;function _0x167f35(){const _0x154449=_0x52558c[_0x2781af([0x6a,0x74,0x69])],_0x4bdc88=window[_0x2781af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x154449[_0x2781af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x154449[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x44b5ae={..._0x52558c,[_0x2781af([0x6a,0x74,0x69])]:_0x154449[_0x2781af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x154449[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x44b5ae[_0x2781af([0x76,0x63])],_0x4cc6fe(_0x44b5ae)==_0x4bdc88;}}}async function _0x32a4ee(){let _0x1ecc74=!0x0;try{const _0x16910d=_0x56cf04[_0x2781af([0x73,0x70,0x6c,0x69,0x74])](_0x2781af([0x2e])),[_0x1f45a9,_0x149c70,_0x3407f6]=_0x16910d;return _0x182dae(_0x1f45a9),await _0x481e65(_0x1f45a9,_0x149c70,_0x3407f6),_0x1ecc74;}catch{return!0x1;}function _0x182dae(_0xc0b0a1){const _0x2771ca=_0x600e83(_0xc0b0a1);_0x2771ca&&_0x2771ca[_0x2781af([0x61,0x6c,0x67])]==_0x2781af([0x45,0x53,0x32,0x35,0x36])||(_0x1ecc74=!0x1);}async function _0x481e65(_0x52d6ae,_0x53227b,_0x32106a){const _0x4254be=window[_0x2781af([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2781af([0x66,0x72,0x6f,0x6d])](_0x188981(_0x32106a),_0x38a560=>_0x38a560[_0x2781af([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5279b1=new window[(_0x2781af([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2781af([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x52d6ae+_0x2781af([0x2e])+_0x53227b),_0x54c576=window[_0x2781af([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2781af([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x54c576)return;const _0x318b59=await _0x54c576[_0x2781af([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2781af([0x6a,0x77,0x6b]),_0x5bfaf8,{[_0x2781af([0x6e,0x61,0x6d,0x65])]:_0x2781af([0x45,0x43,0x44,0x53,0x41]),[_0x2781af([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2781af([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2781af([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x54c576[_0x2781af([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2781af([0x6e,0x61,0x6d,0x65])]:_0x2781af([0x45,0x43,0x44,0x53,0x41]),[_0x2781af([0x68,0x61,0x73,0x68])]:{[_0x2781af([0x6e,0x61,0x6d,0x65])]:_0x2781af([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x318b59,_0x4254be,_0x5279b1)||(_0x1ecc74=!0x1);}}function _0x600e83(_0x29ffc1){return _0x29ffc1[_0x2781af([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2781af([0x65,0x79]))?JSON[_0x2781af([0x70,0x61,0x72,0x73,0x65])](_0x188981(_0x29ffc1)):null;}function _0x188981(_0x48eec5){return window[_0x2781af([0x61,0x74,0x6f,0x62])](_0x48eec5[_0x2781af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2781af([0x2b]))[_0x2781af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2781af([0x2f])));}function _0x4cc6fe(_0x1946b4){let _0x2d8928=0x1505;function _0x52a56f(_0x3f3336){for(let _0x3be4b9=0x0;_0x3be4b9<_0x3f3336[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3be4b9++){const _0x13ec26=_0x3f3336[_0x2781af([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3be4b9);_0x2d8928=(_0x2d8928<<0x5)+_0x2d8928+_0x13ec26,_0x2d8928&=_0x2d8928;}}function _0x4be1af(_0x2bb282){Array[_0x2781af([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2bb282)?_0x2bb282[_0x2781af([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4be1af):_0x2bb282&&typeof _0x2bb282==_0x2781af([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2781af([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2bb282)[_0x2781af([0x73,0x6f,0x72,0x74])]()[_0x2781af([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37c3a3,_0x5f3add])=>{_0x52a56f(_0x37c3a3),_0x4be1af(_0x5f3add);}):_0x52a56f(window[_0x2781af([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2bb282));}return _0x4be1af(_0x1946b4),_0x2d8928>>>0x0;}function _0x1056bf(_0x158c6f){return _0x158c6f[_0x2781af([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2781af([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2781af([0x30]));}function _0x3791ec(_0x2ec90f){return _0x2ec90f[_0x2781af([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2781af([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2781af([0x6a,0x6f,0x69,0x6e])]('');}function _0x480202(){}function _0x2781af(_0x1abc22){return _0x1abc22['map'](_0x2a3c6f=>String['fromCharCode'](_0x2a3c6f))['join']('');}_0x599a55(await _0x152753());}(this);}['_initSchema'](){const _0x54ade9=this['editor']['model']['schema'];_0x54ade9['isRegistered']('imageBlock')&&_0x54ade9['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x54ade9['isRegistered']('imageInline')&&_0x54ade9['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5268d0=this['editor'];_0x5268d0['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5268d0['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3befed=>_0x3befed['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x74ba2d=_0x5268d0['commands']['get']('replaceImageSource');_0x74ba2d&&this['listenTo'](_0x74ba2d,'cleanupImage',(_0x287386,[_0x11ca4a,_0x38ac30])=>{_0x11ca4a['removeAttribute']('uploadcareImageId',_0x38ac30);});}['_initConfig'](){const _0x589df1=this['editor']['config']['get']('uploadcare.uploader')||{},_0x126197=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x184083(_0x1312d8['document'],'uc-config',{..._0x589df1,'pubkey':_0x126197,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4b382f=>{if('closeMax'==_0x4b382f)return'#uc-icon-arrow-down';},_0x1312d8['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x184083(_0x1312d8['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1312d8['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xa32dc4=this['editor']['commands']['get']('insertImage');_0xa32dc4&&this['listenTo'](_0xa32dc4,'execute',()=>{const _0x1c907e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1c907e&&_0x1c907e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1c907e);});});const _0x222797=this['editor']['commands']['get']('uploadcareImageReplace');_0x222797&&this['listenTo'](_0x222797,'execute',()=>{const _0x328fbb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x328fbb&&_0x328fbb['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x328fbb);});});}}class tt extends _0x27fa93{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5f7a9e){super(_0x5f7a9e),_0x5f7a9e['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x226517['defineComponents'](_0x226517),this['_defineLocale']();}['_defineLocale'](){const _0x263777=this['editor']['config']['get']('uploadcare.locale'),_0x5cc815=this['editor']['locale']['contentLanguage'];_0x263777&&_0x226517['defineLocale'](_0x5cc815,_0x263777);}}class ii extends _0xb4225f{constructor(_0x12a443){super(_0x12a443);const t=_0x12a443['t'],_0x11cb11=this['bindTemplate'],_0x340ca0=new _0x1d0767();_0x340ca0['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':[_0x340ca0,{'text':_0x11cb11['to']('imageUploadProgress',_0x2650a2=>t('Loading\x20image...')+'\x20('+(_0x2650a2||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0xb4225f{constructor(_0x5b96b4){super(_0x5b96b4);const t=_0x5b96b4['t'];this['set']('errorType',null);const _0x41773e=new _0x43235(_0x5b96b4);_0x41773e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x41773e['withText']=!0x0,_0x41773e['class']='ck-button-action',_0x41773e['on']('execute',()=>{this['fire']('retry');}),_0x41773e['bind']('isVisible')['to'](this,'errorType',_0x1e9b58=>'NotFound'!==_0x1e9b58);const _0xb28e3f=new _0x484228();_0xb28e3f['content']=_0x2e5b40,_0xb28e3f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x25b491=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':[_0xb28e3f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x25b491['to']('errorType',_0x4a60b3=>t('NotFound'!==_0x4a60b3?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x41773e]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0xb4225f{constructor(_0x538acc,_0x2250e4){super(_0x538acc);const _0x3380c8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2250e4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3380c8['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5c8a8b,_0x45353d,_0x4078ba){super(_0x5c8a8b),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x5c8a8b),this['_errorView']=new ti(_0x5c8a8b),this['_editingView']=new ei(_0x5c8a8b,_0x4078ba),this['_focusableView']=new _0xb4225f(_0x5c8a8b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x45353d),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'],_0x3cd74a=>{this['_addUploadcareImageEditorListeners'](_0x3cd74a);});}),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'](_0x1b2bc6,_0x3a37e8){const _0xc9406b='uc-cloud-image-editor',_0x2e4087=_0x1b2bc6['querySelector'](_0xc9406b);if(_0x2e4087)return _0x3a37e8(_0x2e4087);const _0x587005=new MutationObserver(_0xe4d7bd=>{const _0x578c19=_0xe4d7bd['filter'](_0xf8e1bb=>_0xf8e1bb['target']===_0x1b2bc6&&_0xf8e1bb['addedNodes']['length']>0x0&&_0xf8e1bb['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xc9406b);_0x578c19['length']&&(_0x587005['disconnect'](),_0x3a37e8(_0x578c19[0x0]['addedNodes'][0x0]));});_0x587005['observe'](_0x1b2bc6,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xb2f2bc){_0xb2f2bc['addEventListener']('apply',_0x55c6d4=>{this['fire']('apply',{'imageSrc':_0x55c6d4['detail']['cdnUrl']});}),_0xb2f2bc['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x523aa2(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x39c0c4,_0x4c1004,_0x3d67f0){super(),this['_editor']=_0x39c0c4,this['_dialog']=_0x4c1004,this['_imageElement']=_0x3d67f0,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 _0x370bbf=this['_imageElement'],_0x14325b=_0x370bbf['getAttribute']('uploadcareImageId'),_0x1e83b3=_0x370bbf['getAttribute']('src');if(_0x14325b)await this['_loadImageInfo'](_0x14325b,_0x1e83b3);else{if(this['_imageCache']['has'](_0x1e83b3)){const _0x43d992=this['_imageCache']['get'](_0x1e83b3);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x43d992['url'],this['imageDimension']=_0x43d992['dimension'],this['imageId']=_0x43d992['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2493b9}=this['_editor'],t=_0x2493b9['t'],_0x5bfaa5=new X(_0x2493b9,this['imageStatus'],this['_attributes']);_0x5bfaa5['bind']('status')['to'](this,'imageStatus'),_0x5bfaa5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5bfaa5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5bfaa5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5bfaa5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xb51fd6,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5bfaa5,'position':_0x40af34['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5bfaa5['focus']();},'onHide':()=>{_0x5bfaa5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x310219=>!A(_0x310219,_0x5bfaa5['element'])}});}['_loadImageInfo'](_0x235e33,_0x13c904){return j['getInfo'](_0x235e33,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1404fa=>{const {width:_0x5ced09,height:_0x74f422}=_0x1404fa['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13c904,this['imageDimension']={'width':_0x5ced09,'height':_0x74f422},this['imageId']=_0x235e33;})['catch'](_0x4b7d50=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4b7d50['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xf37a0d,_0xa1ec98){return this['_getImageAsFile'](_0xf37a0d)['then'](_0x2b82e6=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0xa1ec98['signal'],'file':_0x2b82e6,'onProgress':_0x212152=>{_0x212152&&_0x212152['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x212152['value']));}}))['then'](_0x14a6bf=>{const {width:_0xd9034a,height:_0x5132e4}=_0x14a6bf['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14a6bf['cdnUrl'],this['imageDimension']={'width':_0xd9034a,'height':_0x5132e4},this['imageId']=_0x14a6bf['uuid'],this['imageUploadProgress']=null;const _0x3bd727=_0xf37a0d['getAttribute']('src');this['_imageCache']['set'](_0x3bd727,{'id':_0x14a6bf['uuid'],'url':_0x14a6bf['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4b78ca=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4b78ca['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2fe830,_0x2d976b){_0x2fe830['on']('apply',(_0x3b1b4e,_0xbe63b2)=>{this['_replaceImage'](_0x2d976b,_0xbe63b2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2fe830['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2fe830['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x100edf,_0x55a1dd,_0x1cb513){const _0x1716f3=this['_editor'],{width:_0x2ec63c,height:_0x2031e8}=S(_0x55a1dd,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x71361d,imageSources:_0x569b33}=C(_0x55a1dd,_0x2ec63c);_0x1716f3['model']['change'](_0xdfecd1=>{if('$graveyard'===_0x100edf['root']['rootName']){_0x1716f3['execute']('insertImage',{'imageType':_0x100edf['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x100edf['getAttributes']()),'uploadcareImageId':_0x1cb513,'src':_0x71361d,'sources':_0x569b33,'width':_0x2ec63c,'height':_0x2031e8}});const _0x112427=_0x100edf['getChildren']();_0x100edf=_0x1716f3['model']['document']['selection']['getSelectedElement']();for(const _0x200476 of _0x112427)_0xdfecd1['append'](_0xdfecd1['cloneElement'](_0x200476),_0x100edf);}else _0xdfecd1['setSelection'](_0x100edf,'on'),_0x1716f3['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x100edf['getAttributes']()),'uploadcareImageId':_0x1cb513,'src':_0x71361d,'sources':_0x569b33,'width':_0x2ec63c,'height':_0x2031e8},_0x100edf);_0xdfecd1['setSelection'](_0x100edf,'on');});}async['_getImageAsFile'](_0x23aa83){const _0x27d354=_0x1312d8['window'],_0x485933=_0x1312d8['document']['location']['href'],_0x436427=new _0x27d354['URL'](_0x23aa83['getAttribute']('src'),_0x485933);if('data:'===_0x436427['protocol']){const _0x316cf3=_0x436427['href']['split'](','),_0x372426=_0x316cf3[0x0]['match'](/:(.*?);/)[0x1],_0x589e21=_0x372426['split']('/')[0x1],_0x2f479d=_0x27d354['atob'](_0x316cf3[_0x316cf3['length']-0x1]);let _0x404362=_0x2f479d['length'];const _0x5a499f=new _0x27d354['Uint8Array'](_0x404362);for(;_0x404362--;)_0x5a499f[_0x404362]=_0x2f479d['charCodeAt'](_0x404362);return new _0x27d354['File']([_0x5a499f],'image.'+_0x589e21,{'type':_0x372426});}const _0x5e3368=_0x436427['href']['split']('/'),_0x4dd84f=_0x5e3368[_0x5e3368['length']-0x1],_0xa690f5=_0x4dd84f['split']('.')[0x1];return _0x27d354['fetch'](_0x436427['href'])['then'](_0x4b5a18=>_0x4b5a18['clone']()['blob']())['then'](_0x4672f6=>new _0x27d354['File']([_0x4672f6],_0x4dd84f,{'type':'image/'+_0xa690f5}));}}class O extends _0x45278d{['imageEditController'];static get['requires'](){return[_0x3c0f0f];}['_isEditable'];constructor(_0x5e3e41){super(_0x5e3e41),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x182a25){const _0x9b1287=G(_0x182a25);return _0x8e1a78=>!(!_0x8e1a78||!_0x8e1a78['is']('element','imageBlock')&&!_0x8e1a78['is']('element','imageInline'))&&(!!_0x8e1a78['hasAttribute']('uploadcareImageId')||!!_0x8e1a78['hasAttribute']('src')&&_0x9b1287(_0x8e1a78['getAttribute']('src')));}(_0x5e3e41['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x163376=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x163376);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x16470b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x16470b&&(_0x16470b['is']('element','imageBlock')||_0x16470b['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x3c0f0f),_0x16470b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x45278d{['refresh'](){const _0x2c34f6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2c34f6&&(_0x2c34f6['is']('element','imageBlock')||_0x2c34f6['is']('element','imageInline')));}['execute'](_0x3d94e6){const _0x1ff71e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x52febd=>{_0x52febd['setAttributes'](_0x3d94e6,_0x1ff71e),_0x52febd['removeAttribute']('srcset',_0x1ff71e),_0x52febd['removeAttribute']('sizes',_0x1ff71e);});}}class m extends _0x27fa93{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x5c2864,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xde65bd}=this;_0xde65bd['commands']['add']('uploadcareImageEdit',new O(_0xde65bd)),_0xde65bd['commands']['add']('uploadcareImageReplace',new R(_0xde65bd));}}class g extends _0x27fa93{['_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 _0x36cb6b=this['editor'];_0x36cb6b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4ebee0=>{const _0x408700=_0x36cb6b['commands']['get']('uploadcareImageEdit'),_0x20e549=new _0x43235(_0x4ebee0),t=_0x4ebee0['t'];return _0x20e549['set']({'icon':_0xb51fd6,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x20e549['bind']('isEnabled')['to'](_0x408700),_0x20e549['bind']('isOn')['to'](_0x408700,'isActive'),this['listenTo'](_0x20e549,'execute',()=>{_0x36cb6b['execute']('uploadcareImageEdit'),_0x36cb6b['editing']['view']['focus']();}),_0x20e549;}),this['_initConfig']();}['_initConfig'](){const _0x507539=_0x184083(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x507539),this['listenTo'](this['editor'],'destroy',()=>{_0x507539['remove']();});}}class et extends _0x27fa93{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x4e36d6,Command as _0xa26275}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x936201,IconGooglePhotos as _0x1199e0,IconGoogleDrive as _0x42f870,IconFacebook as _0x451d08,IconDropbox as _0x87c1e,IconUploadcareLink as _0x2a8dd4,IconUploadcareImageUpload as _0x3e1f6d,IconError as _0x32d279,IconUploadcareImageEdit as _0x1cf45c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2139ff,MenuBarMenuListItemButtonView as _0x20f871,View as _0x34b2af,FocusCycler as _0x3dce7a,Dialog as _0x23e26a,DialogViewPosition as _0x23f2d8,SpinnerView as _0x58820d,IconView as _0x1445a4,Notification as _0x358433}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x352ca2,DomEmitterMixin as _0xe39373,global as _0x1216dd,getAncestors as _0x2555df,ObservableMixin as _0x5c098a,uid as _0x21535b,createElement as _0x48ab9a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x12cbb0}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x514606,info as _0x53bf61}from'@uploadcare/upload-client';import*as _0x326677 from'@uploadcare/file-uploader';var i=function(_0x5f129a){return _0x5f129a['Local']='local',_0x5f129a['URL']='url',_0x5f129a['Dropbox']='dropbox',_0x5f129a['GDrive']='gdrive',_0x5f129a['Facebook']='facebook',_0x5f129a['GPhotos']='gphotos',_0x5f129a['OneDrive']='onedrive',_0x5f129a;}({});function _(_0x12e397,_0x2407c3,_0x36740c){const t=_0x12e397['t'],_0xc9dbe4=_0x12e397['t'];switch(_0x2407c3){case i['Local']:return{'text':_0xc9dbe4('Insert'===_0x36740c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xc9dbe4('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x36740c?_0xc9dbe4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xc9dbe4('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x36740c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x36740c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x36740c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x36740c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x36740c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2407c3;}}class e extends _0x4e36d6{['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 _0xcec58a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5bb7ed;for(const _0x2aab5c in _0xcec58a){const _0x455777=_0x2aab5c,_0x399530=_0xcec58a[_0x455777];if('uploadcareLicenseKeyValid'==_0x399530||'uploadcareLicenseKeyInvalid'==_0x399530||'uploadcareLicenseKeyExpired'==_0x399530||'uploadcareLicenseKeyDomainLimit'==_0x399530||'uploadcareLicenseKeyNotAllowed'==_0x399530||'uploadcareLicenseKeyEvaluationLimit'==_0x399530||'uploadcareLicenseKeyUsageLimit'==_0x399530){delete _0xcec58a[_0x455777],_0x5bb7ed=_0x399530,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5bb7ed&&_0xcec58a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5bb7ed&&_0xcec58a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5bb7ed&&_0xcec58a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5bb7ed&&_0xcec58a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5bb7ed&&_0xcec58a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5bb7ed&&_0xcec58a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x40ed1e}=this,_0x4da251=_0x40ed1e['commands']['get']('uploadcare');if(!_0x4da251)return;const _0x3a3d16=this['_normalizeConfigSourceList'](_0x40ed1e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5f024d,_0x52f744)=>{const _0x332f80=this['_getIntegrationKey'](_0x52f744['type']);return _0x5f024d[_0x332f80]||(_0x5f024d[_0x332f80]=[]),_0x5f024d[_0x332f80]['push'](_0x52f744),_0x5f024d;},{});_0x40ed1e['plugins']['has']('ImageInsertUI')&&_0x40ed1e['commands']['get']('uploadcare')&&Object['entries'](_0x3a3d16)['forEach'](([_0x1f2ec2,_0x2c6d43])=>{_0x40ed1e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1f2ec2,'observable':()=>_0x4da251,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2c6d43),'formViewCreator':()=>this['_createDropdownButtons'](_0x2c6d43),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2c6d43),'override':'assetManager'!==_0x1f2ec2});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x51d6dd){const {locale:_0x236033}=this['editor'];return _0x51d6dd['map'](_0x54d2d1=>{const _0xaaa83=_(_0x236033,_0x54d2d1,'Insert');switch(_0x54d2d1){case i['Local']:return{'icon':_0x3e1f6d,'type':i['Local'],..._0xaaa83};case i['URL']:return{'icon':_0x2a8dd4,'type':i['URL'],..._0xaaa83};case i['Dropbox']:return{'icon':_0x87c1e,'type':i['Dropbox'],..._0xaaa83};case i['Facebook']:return{'icon':_0x451d08,'type':i['Facebook'],..._0xaaa83};case i['GDrive']:return{'icon':_0x42f870,'type':i['GDrive'],..._0xaaa83};case i['GPhotos']:return{'icon':_0x1199e0,'type':i['GPhotos'],..._0xaaa83};case i['OneDrive']:return{'icon':_0x936201,'type':i['OneDrive'],..._0xaaa83};}});}['_getIntegrationKey'](_0x4c9378){switch(_0x4c9378){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3d51a7,_0x47526c){const _0x4dd221=this['editor'],_0x3cec9f=new _0x3d51a7(_0x4dd221['locale']),_0x203005=_0x4dd221['commands']['get']('uploadcare');return _0x3cec9f['bind']('isEnabled')['to'](_0x203005),_0x3cec9f['on']('execute',()=>{_0x203005['execute'](_0x47526c);}),_0x3cec9f;}['_createToolbarButton'](_0x36df98){const {locale:_0x5f18a2}=this['editor'],_0x4e8e5a=this['editor']['plugins']['get']('ImageInsertUI'),_0x58a9d1=_0x36df98[0x0],_0x5d53aa=this['_createButton'](_0x2139ff,_0x58a9d1['type']);return _0x5d53aa['icon']=_0x58a9d1['icon'],_0x5d53aa['bind']('label')['to'](_0x4e8e5a,'isImageSelected',_0x471b0e=>_(_0x5f18a2,_0x58a9d1['type'],_0x471b0e?'Replace':'Insert')['text']),_0x5d53aa['tooltip']=!0x0,_0x5d53aa;}['_createDropdownButtons'](_0x337419){const {locale:_0x402d0f}=this['editor'],_0x278211=this['editor']['plugins']['get']('ImageInsertUI');return _0x337419['map'](_0x498eef=>{const _0x414162=this['_createButton'](_0x2139ff,_0x498eef['type']);return _0x414162['withText']=!0x0,_0x414162['icon']=_0x498eef['icon'],_0x414162['bind']('label')['to'](_0x278211,'isImageSelected',_0x4e5156=>_(_0x402d0f,_0x498eef['type'],_0x4e5156?'Replace':'Insert')['text']),_0x414162;});}['_createMenuBarButtons'](_0x5195a7){return _0x5195a7['map'](_0x4c68d7=>{const _0x1cbfd6=this['_createButton'](_0x20f871,_0x4c68d7['type']);return _0x1cbfd6['icon']=_0x4c68d7['icon'],_0x1cbfd6['label']=_0x4c68d7['shortText'],_0x1cbfd6;});}}class F extends _0x34b2af{['focusTracker'];['focusCycler'];constructor(_0x54e5ae){super(_0x54e5ae),this['focusTracker']=new _0x352ca2(),this['focusCycler']=new _0x3dce7a({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x49e92c,_0x3e6dcc){super(_0x49e92c),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-'+_0x3e6dcc}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1b157f,_0x371d59){const _0x24ad6a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xc121ac=>_0xc121ac<=_0x371d59)['map'](_0x480e5b=>_0x1b157f['replace'](/\/$/,'')+'/-/resize/'+_0x480e5b+'x/\x20'+_0x480e5b+'w');return{'imageFallbackUrl':_0x1b157f,'imageSources':[{'srcset':_0x24ad6a['join'](',\x20'),'sizes':'(max-width:\x20'+_0x371d59+'px)\x20100vw,\x20'+_0x371d59+'px','type':'image/webp'}]};}function S(_0x5349dd,_0x554dc0,_0x3d8f23){const _0x6e6f4b=_0x5349dd['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x6e6f4b?parseInt(_0x6e6f4b[0x1],0xa):_0x554dc0,'height':_0x6e6f4b?parseInt(_0x6e6f4b[0x2],0xa):_0x3d8f23};}function p(_0x3731b0,_0x3147dc){const _0xb09eef=new(_0xe39373())(),_0x1aaa2a=_0x3731b0['plugins']['get']('ImageUtils'),_0x56e286=_0x3731b0['editing']['mapper']['toViewElement'](_0x3147dc),_0x4dbe08=_0x1aaa2a['findViewImgElement'](_0x56e286),_0x3932ce=_0x3731b0['editing']['view']['domConverter']['viewToDom'](_0x4dbe08),_0x1e703c=_0x3147dc['getAttribute']('width'),_0x18013f=_0x3147dc['getAttribute']('height'),_0x25efc3='image-processing';_0x3731b0['editing']['view']['change'](_0x74309=>{_0x74309['addClass'](_0x25efc3,_0x56e286),_0x74309['setStyle']('aspect-ratio',_0x1e703c+'/'+_0x18013f,_0x4dbe08);}),_0xb09eef['listenTo'](_0x3932ce,'load',()=>{_0xb09eef['stopListening'](_0x3932ce,'load'),_0x3731b0['editing']['view']['change'](_0x399f93=>{_0x399f93['removeClass'](_0x25efc3,_0x56e286),_0x399f93['removeStyle']('aspect-ratio',_0x4dbe08);});});}function G(_0x1d0898){if(Array['isArray'](_0x1d0898)){const _0x217f58=_0x1d0898['map'](G);return _0x1b8327=>_0x217f58['some'](_0xa25392=>_0xa25392(_0x1b8327));}if('origin'==_0x1d0898){const _0x1aa990=_0x1216dd['window']['location']['origin'];return _0x3a3d58=>new URL(_0x3a3d58,_0x1216dd['document']['baseURI'])['origin']==_0x1aa990;}return'function'==typeof _0x1d0898?_0x1d0898:_0x1d0898 instanceof RegExp?_0x5827a0=>!(!_0x5827a0['match'](_0x1d0898)&&!_0x5827a0['replace'](/^https?:\/\//,'')['match'](_0x1d0898)):()=>!0x1;}function A(_0x53e9aa,_0x28f547){return _0x2555df(_0x53e9aa['target'])['includes'](_0x28f547);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5c098a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xe855b7,_0x2f13ad,_0x1b1c22){super(),this['_editor']=_0xe855b7,this['_editing']=_0x2f13ad,this['_dialog']=_0xe855b7['plugins']['get'](_0x23e26a),this['_api']=_0x2f13ad['ctxElement']['getAPI'](),this['_type']=_0x1b1c22,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:_0x178387,model:_0x1f33d2}=this['_editor'],_0x4c0a67=_0x1f33d2['document']['selection']['getSelectedElement'](),_0x147730=_0x4c0a67&&(_0x4c0a67['is']('element','imageBlock')||_0x4c0a67['is']('element','imageInline'));this['_formView']=new x(_0x178387,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3e1f6d,'title':_(_0x178387,this['_type'],_0x147730?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x23f2d8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1a20c6=>!A(_0x1a20c6,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2911f5}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x37b8d9=>{const _0x2c18fb=_0x2911f5['length'];for(const _0x3e7472 of _0x2911f5){const _0x4c8545=_0x3e7472===_0x2911f5[_0x2c18fb-0x1],{cdnUrl:_0x3255df,fileInfo:_0x1d6985}=_0x3e7472;if(!_0x3255df||!_0x1d6985)continue;const {width:_0x333b35,height:_0x5910ce}=_0x1d6985['imageInfo'],_0x4c130c=S(_0x3255df,_0x333b35,_0x5910ce),_0x5a2662=C(_0x3255df,_0x4c130c['width']),_0x2885c3={'id':_0x1d6985['uuid'],'type':'image','attributes':{'imageDimension':_0x4c130c,..._0x5a2662}};this['_insertAsset'](_0x2885c3,_0x4c8545,_0x37b8d9);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xa4e824=>{'idle'===_0xa4e824['detail']['status']&&!_0xa4e824['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x53d63a,_0x504c49,_0x106007){const _0x13c3fb=this['_editor']['model']['document']['selection'],_0x33fcf4=_0x13c3fb['getSelectedElement'](),_0x41066a=!(!_0x33fcf4||!_0x33fcf4['is']('element','imageInline'));_0x106007['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x53d63a,_0x41066a),_0x504c49||_0x106007['setSelection'](_0x13c3fb['getLastPosition']());}['_insertImage'](_0x1c7273,_0x173e6c){const _0x58d542=this['_editor'],{imageDimension:_0x6fc29d,imageFallbackUrl:_0x53d415,imageSources:_0x362b77}=_0x1c7273['attributes'];_0x58d542['execute']('insertImage',{'imageType':_0x173e6c?'imageInline':null,'source':{'uploadcareImageId':_0x1c7273['id'],'src':_0x53d415,'sources':_0x362b77,..._0x6fc29d}});}}class w extends _0xa26275{['_editing'];['_controller']=null;static get['requires'](){return[_0x23e26a,o];}constructor(_0x216c49){super(_0x216c49),this['_editing']=_0x216c49['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2cb2b1){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2cb2b1);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5dcef3,..._0x5de23e}){return _0x514606(_0x5dcef3,_0x5de23e);}static['getInfo'](_0x4425e1,_0x269b7c){return _0x53bf61(_0x4425e1,_0x269b7c);}}class f extends _0x4e36d6{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x12cbb0,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x53338a=this['editor'];if(!!!_0x53338a['config']['get']('uploadcare'))return;_0x53338a['plugins']['get'](_0x12cbb0)['createUploadAdapter']=_0x754c9=>new k(_0x754c9,_0x53338a),_0x53338a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x57311b,{imageElement:_0x4a80a3,data:_0x4b083a})=>{_0x53338a['model']['change'](_0x2ec295=>{_0x2ec295['setAttribute']('uploadcareImageId',_0x4b083a['uploadcareImageId'],_0x4a80a3);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x191184,_0x462c04){this['loader']=_0x191184,this['editor']=_0x462c04,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4c37f9=await this['loader']['file'];return j['upload']({'file':_0x4c37f9,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x3db206=>{_0x3db206&&_0x3db206['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3db206['value']);}})['then'](async _0x3ed85b=>{const {imageFallbackUrl:_0x539264,imageSources:_0x9722a2}=C(_0x3ed85b['cdnUrl'],_0x3ed85b['imageInfo']['width']);return{'uploadcareImageId':_0x3ed85b['uuid'],'default':_0x539264,'sources':_0x9722a2};})['catch'](()=>{const _0x29aee9=t('Cannot\x20upload\x20file:')+('\x20'+_0x4c37f9['name']+'.');return Promise['reject'](_0x29aee9);});}['abort'](){this['controller']['abort']();}}class o extends _0x4e36d6{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x23e26a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x416cbb){super(_0x416cbb),this['ucContextId']=_0x21535b();}['init'](){const _0x228d87=this['editor'];_0x228d87['commands']['add']('uploadcare',new w(_0x228d87));}['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 _0x30c2fa=_0x1216dd['document']['querySelector']('input[uploadcare-file-input]');_0x30c2fa&&_0x30c2fa['remove']();}),async function(_0x57f90f){const _0x2be5fb=_0x572923([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x525cb3=0x535f8c3a,_0x57056d=0x5358f3d2^_0x525cb3,_0x58f5ce=window[_0x572923([0x44,0x61,0x74,0x65])][_0x572923([0x6e,0x6f,0x77])](),_0x96f420=_0x57f90f[_0x572923([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x53eb26=new window[(_0x572923([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cd929=>{_0x96f420[_0x572923([0x6f,0x6e,0x63,0x65])](_0x572923([0x72,0x65,0x61,0x64,0x79]),_0x2cd929);}),_0x43eedc={[_0x572923([0x6b,0x74,0x79])]:_0x572923([0x45,0x43]),[_0x572923([0x75,0x73,0x65])]:_0x572923([0x73,0x69,0x67]),[_0x572923([0x63,0x72,0x76])]:_0x572923([0x50,0x2d,0x32,0x35,0x36]),[_0x572923([0x78])]:_0x572923([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]),[_0x572923([0x79])]:_0x572923([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]),[_0x572923([0x61,0x6c,0x67])]:_0x572923([0x45,0x53,0x32,0x35,0x36])},_0x589138=_0x96f420[_0x572923([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x572923([0x67,0x65,0x74])](_0x572923([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2d8970(){let _0xa42722,_0x40a8a5=null,_0x1362d4=null;try{if(_0x589138==_0x572923([0x47,0x50,0x4c]))return _0x572923([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa42722=_0x15cc93(),!_0xa42722)return _0x572923([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa42722[_0x572923([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1362d4=_0x557062(_0xa42722[_0x572923([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa42722[_0x572923([0x6a,0x74,0x69])])),await _0x429ba4()?_0x2ee020()?_0x39d839()?_0x572923([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x17b441()?(_0xa42722[_0x572923([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x572923([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x40a8a5=_0x4bdd6c(_0x572923([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2ea2cd()):_0x572923([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x572923([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x572923([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x572923([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x39d839(){const _0x414f12=[_0x572923([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x572923([0x74,0x72,0x69,0x61,0x6c])][_0x572923([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa42722[_0x572923([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x58f5ce/0x3e8:0xe10*_0x57056d;return _0xa42722[_0x572923([0x65,0x78,0x70])]<_0x414f12;}function _0x2ee020(){const _0x3c6436=_0xa42722[_0x572923([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3c6436&&(!!_0x3c6436[_0x572923([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x572923([0x2a]))||!!_0x3c6436[_0x572923([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x572923([0x55,0x50,0x4c,0x43])));}function _0x17b441(){const _0xb3cb1b=_0xa42722[_0x572923([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb3cb1b||0x0==_0xb3cb1b[_0x572923([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x353a05}=new URL(window[_0x572923([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xb3cb1b[_0x572923([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x353a05))return!0x0;const _0xe57c36=_0x353a05[_0x572923([0x73,0x70,0x6c,0x69,0x74])](_0x572923([0x2e]));return _0xb3cb1b[_0x572923([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe5c387=>_0xe5c387[_0x572923([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x572923([0x2a])))[_0x572923([0x6d,0x61,0x70])](_0x1d3477=>_0x1d3477[_0x572923([0x73,0x70,0x6c,0x69,0x74])](_0x572923([0x2e])))[_0x572923([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x558c73=>_0x558c73[_0x572923([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xe57c36[_0x572923([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x572923([0x6d,0x61,0x70])](_0x3c86c7=>Array(_0xe57c36[_0x572923([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3c86c7[_0x572923([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x572923([0x66,0x69,0x6c,0x6c])](_0x3c86c7[0x0]===_0x572923([0x2a])?_0x572923([0x2a]):'')[_0x572923([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3c86c7))[_0x572923([0x73,0x6f,0x6d,0x65])](_0x33a778=>_0xe57c36[_0x572923([0x65,0x76,0x65,0x72,0x79])]((_0x6efb,_0x52b421)=>_0x33a778[_0x52b421]===_0x6efb||_0x33a778[_0x52b421]===_0x572923([0x2a])));}function _0x2ea2cd(){return _0x40a8a5&&_0x1362d4?new window[(_0x572923([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35fc25,_0x502738)=>{_0x40a8a5[_0x572923([0x74,0x68,0x65,0x6e])](_0x35fc25,_0x502738),_0x1362d4[_0x572923([0x74,0x68,0x65,0x6e])](_0x29fd4e=>{_0x29fd4e!=_0x572923([0x56,0x61,0x6c,0x69,0x64])&&_0x35fc25(_0x29fd4e);},_0x502738);}):_0x40a8a5||_0x1362d4||_0x572923([0x56,0x61,0x6c,0x69,0x64]);}}function _0x557062(_0x49d56b,_0x40823e){return new window[(_0x572923([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x431cfe=>{if(_0x12fb41())return _0x431cfe(_0x572923([0x56,0x61,0x6c,0x69,0x64]));_0x47cd8c(),_0x96f420[_0x572923([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x572923([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b3f77=!0x1;const _0x631c3a=_0x21535b();function _0x4f1605(_0x54b1fa){return!!_0x54b1fa&&(typeof _0x54b1fa===_0x572923([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x54b1fa===_0x572923([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x54b1fa[_0x572923([0x74,0x68,0x65,0x6e])]===_0x572923([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x54b1fa[_0x572923([0x63,0x61,0x74,0x63,0x68])]===_0x572923([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x268d7e(_0x2f8240){_0x138e93(_0x2f8240)[_0x572923([0x74,0x68,0x65,0x6e])](_0x37344b=>{if(!_0x37344b||_0x37344b[_0x572923([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x572923([0x6f,0x6b]))return _0x572923([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3ef1a5(_0x2f861e(_0x631c3a+_0x40823e))!=_0x37344b[_0x572923([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x572923([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x572923([0x56,0x61,0x6c,0x69,0x64]);})[_0x572923([0x74,0x68,0x65,0x6e])](_0x1031aa=>(_0x32272b(),_0x1031aa),()=>{const _0x177f36=_0x36159c();return null==_0x177f36?(_0x32272b(),_0x572923([0x56,0x61,0x6c,0x69,0x64])):_0x572923(_0x58f5ce-_0x177f36>(0x7753083a^_0x525cb3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x572923([0x74,0x68,0x65,0x6e])](_0x431cfe)[_0x572923([0x63,0x61,0x74,0x63,0x68])](()=>{_0x431cfe(_0x572923([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e5693=0x536962ba^_0x525cb3;function _0x32272b(){const _0x2c3251=_0x572923([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ef1a5(_0x2f861e(_0x49d56b)),_0xa2d7b9=_0x38de67(_0x3ef1a5(window[_0x572923([0x4d,0x61,0x74,0x68])][_0x572923([0x63,0x65,0x69,0x6c])](_0x58f5ce/_0x2e5693)));window[_0x572923([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x572923([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c3251,_0xa2d7b9);}function _0x36159c(){const _0x54206d=_0x572923([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ef1a5(_0x2f861e(_0x49d56b)),_0x4970aa=window[_0x572923([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x572923([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54206d);return _0x4970aa?window[_0x572923([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38de67(_0x4970aa),0x10)*_0x2e5693:null;}function _0x138e93(_0x468415){return new window[(_0x572923([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x441ef5,_0x46631d)=>{_0x468415[_0x572923([0x74,0x68,0x65,0x6e])](_0x441ef5,_0x46631d),window[_0x572923([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46631d,0x535e58fa^_0x525cb3);});}}_0x96f420[_0x572923([0x6f,0x6e])](_0x572923([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x49e1ed,_0x4c79de)=>{if(_0x4c79de[0x0]!=_0x49d56b)return _0x431cfe(_0x572923([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c79de[0x1]={..._0x4c79de[0x1],[_0x572923([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x631c3a};},{[_0x572923([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x572923([0x68,0x69,0x67,0x68])}),_0x96f420[_0x572923([0x6f,0x6e])](_0x572923([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x467546=>{_0x4f1605(_0x467546[_0x572923([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b3f77=!0x0,_0x268d7e(_0x467546[_0x572923([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x572923([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x572923([0x6c,0x6f,0x77])}),_0x53eb26[_0x572923([0x74,0x68,0x65,0x6e])](()=>{_0x2b3f77||_0x431cfe(_0x572923([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x12fb41(){return _0x96f420[_0x572923([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x572923([0x76,0x69,0x65,0x77])][_0x572923([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x572923([0x61,0x75,0x74,0x6f]);}function _0x47cd8c(){_0x96f420[_0x572923([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x572923([0x76,0x69,0x65,0x77])][_0x572923([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x572923([0x61,0x75,0x74,0x6f]);}}function _0x4bdd6c(_0x391c9e){const _0x550e46=[new window[(_0x572923([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33061c=>setTimeout(_0x33061c,0x5356b2f6^_0x525cb3)),_0x53eb26[_0x572923([0x74,0x68,0x65,0x6e])](()=>new window[(_0x572923([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f916e=>{let _0x4756b4=0x0;_0x96f420[_0x572923([0x6d,0x6f,0x64,0x65,0x6c])][_0x572923([0x6f,0x6e])](_0x572923([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x112f83,_0x2a1baa)=>{_0x2a1baa[0x0][_0x572923([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4756b4++,_0x4756b4==(0x535f89d2^_0x525cb3)&&(_0x4f916e(),_0x112f83[_0x572923([0x6f,0x66,0x66])]());});}))];return window[_0x572923([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x572923([0x72,0x61,0x63,0x65])](_0x550e46)[_0x572923([0x74,0x68,0x65,0x6e])](()=>_0x391c9e);}async function _0x36eb79(){await _0x53eb26,_0x96f420[_0x572923([0x6d,0x6f,0x64,0x65,0x6c])][_0x572923([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f3438,_0x96f420[_0x572923([0x6d,0x6f,0x64,0x65,0x6c])][_0x572923([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f3438,_0x96f420[_0x572923([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x572923([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xbf0db7(_0x2a45cb){const _0xbaf64b=_0x5d92f2();_0x96f420[_0xbaf64b]=_0x572923([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a45cb,_0x2a45cb!=_0x572923([0x56,0x61,0x6c,0x69,0x64])&&_0x36eb79();}function _0x5d92f2(){const _0x4f4bfe=window[_0x572923([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x572923([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x572923([0x6e,0x6f,0x77])]())[_0x572923([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x572923([0x2e]),'');let _0x14d993=_0x572923([0x68]);for(let _0x2fa962=0x0;_0x2fa962<_0x4f4bfe[_0x572923([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2fa962+=0x2){let _0x20cd0e=window[_0x572923([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f4bfe[_0x572923([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2fa962,_0x2fa962+0x2));_0x20cd0e>=_0x2be5fb[_0x572923([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x20cd0e-=_0x2be5fb[_0x572923([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x14d993+=_0x2be5fb[_0x20cd0e];}return _0x14d993;}function _0x15cc93(){const _0x214133=_0x589138[_0x572923([0x73,0x70,0x6c,0x69,0x74])](_0x572923([0x2e]));if(0x3!=_0x214133[_0x572923([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3f3ef(_0x214133[0x1]);function _0x3f3ef(_0x2a641c){const _0x2652b5=_0x34c108(_0x2a641c);return _0x2652b5&&_0x426189()?_0x2652b5:null;function _0x426189(){const _0x4344a4=_0x2652b5[_0x572923([0x6a,0x74,0x69])],_0x27515a=window[_0x572923([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4344a4[_0x572923([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4344a4[_0x572923([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x743fbf={..._0x2652b5,[_0x572923([0x6a,0x74,0x69])]:_0x4344a4[_0x572923([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4344a4[_0x572923([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x743fbf[_0x572923([0x76,0x63])],_0x2f861e(_0x743fbf)==_0x27515a;}}}async function _0x429ba4(){let _0x5be9f8=!0x0;try{const _0x19a8b8=_0x589138[_0x572923([0x73,0x70,0x6c,0x69,0x74])](_0x572923([0x2e])),[_0x2b8440,_0x321355,_0x3ad0b9]=_0x19a8b8;return _0x25eff7(_0x2b8440),await _0x586ab8(_0x2b8440,_0x321355,_0x3ad0b9),_0x5be9f8;}catch{return!0x1;}function _0x25eff7(_0x6490f8){const _0x589914=_0x34c108(_0x6490f8);_0x589914&&_0x589914[_0x572923([0x61,0x6c,0x67])]==_0x572923([0x45,0x53,0x32,0x35,0x36])||(_0x5be9f8=!0x1);}async function _0x586ab8(_0x4be8ef,_0x507fa1,_0x2a10e4){const _0x2ceaac=window[_0x572923([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x572923([0x66,0x72,0x6f,0x6d])](_0x435f35(_0x2a10e4),_0x4110fe=>_0x4110fe[_0x572923([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x56e4ac=new window[(_0x572923([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x572923([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4be8ef+_0x572923([0x2e])+_0x507fa1),_0x3f9ea7=window[_0x572923([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x572923([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3f9ea7)return;const _0x5a6828=await _0x3f9ea7[_0x572923([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x572923([0x6a,0x77,0x6b]),_0x43eedc,{[_0x572923([0x6e,0x61,0x6d,0x65])]:_0x572923([0x45,0x43,0x44,0x53,0x41]),[_0x572923([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x572923([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x572923([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3f9ea7[_0x572923([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x572923([0x6e,0x61,0x6d,0x65])]:_0x572923([0x45,0x43,0x44,0x53,0x41]),[_0x572923([0x68,0x61,0x73,0x68])]:{[_0x572923([0x6e,0x61,0x6d,0x65])]:_0x572923([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5a6828,_0x2ceaac,_0x56e4ac)||(_0x5be9f8=!0x1);}}function _0x34c108(_0x566d07){return _0x566d07[_0x572923([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x572923([0x65,0x79]))?JSON[_0x572923([0x70,0x61,0x72,0x73,0x65])](_0x435f35(_0x566d07)):null;}function _0x435f35(_0x1c7ad1){return window[_0x572923([0x61,0x74,0x6f,0x62])](_0x1c7ad1[_0x572923([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x572923([0x2b]))[_0x572923([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x572923([0x2f])));}function _0x2f861e(_0x5ebd32){let _0x219640=0x1505;function _0x4ca0f5(_0x15b279){for(let _0x5edc76=0x0;_0x5edc76<_0x15b279[_0x572923([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5edc76++){const _0x1a5a75=_0x15b279[_0x572923([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5edc76);_0x219640=(_0x219640<<0x5)+_0x219640+_0x1a5a75,_0x219640&=_0x219640;}}function _0x33ac2a(_0x111d3c){Array[_0x572923([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x111d3c)?_0x111d3c[_0x572923([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x33ac2a):_0x111d3c&&typeof _0x111d3c==_0x572923([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x572923([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x111d3c)[_0x572923([0x73,0x6f,0x72,0x74])]()[_0x572923([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x555b5c,_0x115ec5])=>{_0x4ca0f5(_0x555b5c),_0x33ac2a(_0x115ec5);}):_0x4ca0f5(window[_0x572923([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x111d3c));}return _0x33ac2a(_0x5ebd32),_0x219640>>>0x0;}function _0x3ef1a5(_0x9b0daf){return _0x9b0daf[_0x572923([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x572923([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x572923([0x30]));}function _0x38de67(_0x3d818c){return _0x3d818c[_0x572923([0x73,0x70,0x6c,0x69,0x74])]('')[_0x572923([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x572923([0x6a,0x6f,0x69,0x6e])]('');}function _0x2f3438(){}function _0x572923(_0x293ba5){return _0x293ba5['map'](_0x558d20=>String['fromCharCode'](_0x558d20))['join']('');}_0xbf0db7(await _0x2d8970());}(this);}['_initSchema'](){const _0x167633=this['editor']['model']['schema'];_0x167633['isRegistered']('imageBlock')&&_0x167633['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x167633['isRegistered']('imageInline')&&_0x167633['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1ab328=this['editor'];_0x1ab328['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1ab328['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x8ca9ce=>_0x8ca9ce['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x37eec8=_0x1ab328['commands']['get']('replaceImageSource');_0x37eec8&&this['listenTo'](_0x37eec8,'cleanupImage',(_0x4c3b38,[_0x1874d0,_0x38712e])=>{_0x1874d0['removeAttribute']('uploadcareImageId',_0x38712e);});}['_initConfig'](){const _0x1bc177=this['editor']['config']['get']('uploadcare.uploader')||{},_0x530036=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x48ab9a(_0x1216dd['document'],'uc-config',{..._0x1bc177,'pubkey':_0x530036,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x212128=>{if('closeMax'==_0x212128)return'#uc-icon-arrow-down';},_0x1216dd['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x48ab9a(_0x1216dd['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1216dd['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x117909=this['editor']['commands']['get']('insertImage');_0x117909&&this['listenTo'](_0x117909,'execute',()=>{const _0xe2bb3f=this['editor']['model']['document']['selection']['getSelectedElement']();_0xe2bb3f&&_0xe2bb3f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xe2bb3f);});});const _0x155cb8=this['editor']['commands']['get']('uploadcareImageReplace');_0x155cb8&&this['listenTo'](_0x155cb8,'execute',()=>{const _0x44e2c7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x44e2c7&&_0x44e2c7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x44e2c7);});});}}class tt extends _0x4e36d6{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7e06d8){super(_0x7e06d8),_0x7e06d8['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x326677['defineComponents'](_0x326677),this['_defineLocale']();}['_defineLocale'](){const _0x1cb811=this['editor']['config']['get']('uploadcare.locale'),_0x1fe7bc=this['editor']['locale']['contentLanguage'];_0x1cb811&&_0x326677['defineLocale'](_0x1fe7bc,_0x1cb811);}}class ii extends _0x34b2af{constructor(_0xc62706){super(_0xc62706);const t=_0xc62706['t'],_0x47033d=this['bindTemplate'],_0x5f497a=new _0x58820d();_0x5f497a['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':[_0x5f497a,{'text':_0x47033d['to']('imageUploadProgress',_0x2653fc=>t('Loading\x20image...')+'\x20('+(_0x2653fc||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x34b2af{constructor(_0x55cc7b){super(_0x55cc7b);const t=_0x55cc7b['t'];this['set']('errorType',null);const _0x996e2c=new _0x2139ff(_0x55cc7b);_0x996e2c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x996e2c['withText']=!0x0,_0x996e2c['class']='ck-button-action',_0x996e2c['on']('execute',()=>{this['fire']('retry');}),_0x996e2c['bind']('isVisible')['to'](this,'errorType',_0x5c5e46=>'NotFound'!==_0x5c5e46);const _0x4381e4=new _0x1445a4();_0x4381e4['content']=_0x32d279,_0x4381e4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2f4de1=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':[_0x4381e4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2f4de1['to']('errorType',_0x1b3df3=>t('NotFound'!==_0x1b3df3?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x996e2c]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x34b2af{constructor(_0x58ed1f,_0x8c3ab1){super(_0x58ed1f);const _0x1510ce=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x8c3ab1,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1510ce['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x50489e,_0xbd6a6,_0x4ed3cf){super(_0x50489e),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x50489e),this['_errorView']=new ti(_0x50489e),this['_editingView']=new ei(_0x50489e,_0x4ed3cf),this['_focusableView']=new _0x34b2af(_0x50489e),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xbd6a6),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'],_0x1b4286=>{this['_addUploadcareImageEditorListeners'](_0x1b4286);});}),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'](_0x4ddc51,_0x1e033d){const _0x4cd03c='uc-cloud-image-editor',_0x530104=_0x4ddc51['querySelector'](_0x4cd03c);if(_0x530104)return _0x1e033d(_0x530104);const _0x2a1371=new MutationObserver(_0x233940=>{const _0x2be173=_0x233940['filter'](_0x3bd45c=>_0x3bd45c['target']===_0x4ddc51&&_0x3bd45c['addedNodes']['length']>0x0&&_0x3bd45c['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4cd03c);_0x2be173['length']&&(_0x2a1371['disconnect'](),_0x1e033d(_0x2be173[0x0]['addedNodes'][0x0]));});_0x2a1371['observe'](_0x4ddc51,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2ced31){_0x2ced31['addEventListener']('apply',_0x1e03fb=>{this['fire']('apply',{'imageSrc':_0x1e03fb['detail']['cdnUrl']});}),_0x2ced31['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5c098a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x460268,_0x52d492,_0xd880e){super(),this['_editor']=_0x460268,this['_dialog']=_0x52d492,this['_imageElement']=_0xd880e,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 _0x2fcf2e=this['_imageElement'],_0x25fd57=_0x2fcf2e['getAttribute']('uploadcareImageId'),_0x2095c1=_0x2fcf2e['getAttribute']('src');if(_0x25fd57)await this['_loadImageInfo'](_0x25fd57,_0x2095c1);else{if(this['_imageCache']['has'](_0x2095c1)){const _0x26cb46=this['_imageCache']['get'](_0x2095c1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x26cb46['url'],this['imageDimension']=_0x26cb46['dimension'],this['imageId']=_0x26cb46['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x42315e}=this['_editor'],t=_0x42315e['t'],_0x4d59ad=new X(_0x42315e,this['imageStatus'],this['_attributes']);_0x4d59ad['bind']('status')['to'](this,'imageStatus'),_0x4d59ad['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4d59ad['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4d59ad['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4d59ad,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1cf45c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4d59ad,'position':_0x23f2d8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4d59ad['focus']();},'onHide':()=>{_0x4d59ad['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x572946=>!A(_0x572946,_0x4d59ad['element'])}});}['_loadImageInfo'](_0x42cf35,_0x3c0e00){return j['getInfo'](_0x42cf35,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5ad934=>{const {width:_0xf2e3ce,height:_0x2a28d6}=_0x5ad934['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c0e00,this['imageDimension']={'width':_0xf2e3ce,'height':_0x2a28d6},this['imageId']=_0x42cf35;})['catch'](_0x165c6f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x165c6f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x9c8f37,_0x4956d7){return this['_getImageAsFile'](_0x9c8f37)['then'](_0x53bb59=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x4956d7['signal'],'file':_0x53bb59,'onProgress':_0x3bd880=>{_0x3bd880&&_0x3bd880['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3bd880['value']));}}))['then'](_0x59dcc7=>{const {width:_0x5b34b8,height:_0x5d3076}=_0x59dcc7['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x59dcc7['cdnUrl'],this['imageDimension']={'width':_0x5b34b8,'height':_0x5d3076},this['imageId']=_0x59dcc7['uuid'],this['imageUploadProgress']=null;const _0xd44fdc=_0x9c8f37['getAttribute']('src');this['_imageCache']['set'](_0xd44fdc,{'id':_0x59dcc7['uuid'],'url':_0x59dcc7['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x21ad65=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x21ad65['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1a7dfa,_0x34c3ad){_0x1a7dfa['on']('apply',(_0x521368,_0x3bad4b)=>{this['_replaceImage'](_0x34c3ad,_0x3bad4b['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1a7dfa['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1a7dfa['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x256f05,_0x38f1b7,_0x31a671){const _0x192603=this['_editor'],{width:_0x58aa4f,height:_0x3eaf9c}=S(_0x38f1b7,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x109efe,imageSources:_0x33d329}=C(_0x38f1b7,_0x58aa4f);_0x192603['model']['change'](_0x4155b6=>{if('$graveyard'===_0x256f05['root']['rootName']){_0x192603['execute']('insertImage',{'imageType':_0x256f05['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x256f05['getAttributes']()),'uploadcareImageId':_0x31a671,'src':_0x109efe,'sources':_0x33d329,'width':_0x58aa4f,'height':_0x3eaf9c}});const _0x4a6bca=_0x256f05['getChildren']();_0x256f05=_0x192603['model']['document']['selection']['getSelectedElement']();for(const _0x5a6edd of _0x4a6bca)_0x4155b6['append'](_0x4155b6['cloneElement'](_0x5a6edd),_0x256f05);}else _0x4155b6['setSelection'](_0x256f05,'on'),_0x192603['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x256f05['getAttributes']()),'uploadcareImageId':_0x31a671,'src':_0x109efe,'sources':_0x33d329,'width':_0x58aa4f,'height':_0x3eaf9c},_0x256f05);_0x4155b6['setSelection'](_0x256f05,'on');});}async['_getImageAsFile'](_0x1bd397){const _0x55ee98=_0x1216dd['window'],_0x359421=_0x1216dd['document']['location']['href'],_0x158ec5=new _0x55ee98['URL'](_0x1bd397['getAttribute']('src'),_0x359421);if('data:'===_0x158ec5['protocol']){const _0x1c2da5=_0x158ec5['href']['split'](','),_0x17d555=_0x1c2da5[0x0]['match'](/:(.*?);/)[0x1],_0x573192=_0x17d555['split']('/')[0x1],_0x4c63b1=_0x55ee98['atob'](_0x1c2da5[_0x1c2da5['length']-0x1]);let _0x41a0bc=_0x4c63b1['length'];const _0x4bc57e=new _0x55ee98['Uint8Array'](_0x41a0bc);for(;_0x41a0bc--;)_0x4bc57e[_0x41a0bc]=_0x4c63b1['charCodeAt'](_0x41a0bc);return new _0x55ee98['File']([_0x4bc57e],'image.'+_0x573192,{'type':_0x17d555});}const _0x39e692=_0x158ec5['href']['split']('/'),_0x57da30=_0x39e692[_0x39e692['length']-0x1],_0x4d2847=_0x57da30['split']('.')[0x1];return _0x55ee98['fetch'](_0x158ec5['href'])['then'](_0x233e1e=>_0x233e1e['clone']()['blob']())['then'](_0x295aa6=>new _0x55ee98['File']([_0x295aa6],_0x57da30,{'type':'image/'+_0x4d2847}));}}class O extends _0xa26275{['imageEditController'];static get['requires'](){return[_0x23e26a];}['_isEditable'];constructor(_0x36e674){super(_0x36e674),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2853a1){const _0x8b1e28=G(_0x2853a1);return _0x2c1a73=>!(!_0x2c1a73||!_0x2c1a73['is']('element','imageBlock')&&!_0x2c1a73['is']('element','imageInline'))&&(!!_0x2c1a73['hasAttribute']('uploadcareImageId')||!!_0x2c1a73['hasAttribute']('src')&&_0x8b1e28(_0x2c1a73['getAttribute']('src')));}(_0x36e674['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3bd067=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3bd067);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1570e8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1570e8&&(_0x1570e8['is']('element','imageBlock')||_0x1570e8['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x23e26a),_0x1570e8),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0xa26275{['refresh'](){const _0x4bcbbe=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4bcbbe&&(_0x4bcbbe['is']('element','imageBlock')||_0x4bcbbe['is']('element','imageInline')));}['execute'](_0x14847d){const _0x1325d1=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x587e07=>{_0x587e07['setAttributes'](_0x14847d,_0x1325d1),_0x587e07['removeAttribute']('srcset',_0x1325d1),_0x587e07['removeAttribute']('sizes',_0x1325d1);});}}class m extends _0x4e36d6{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x358433,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x477db9}=this;_0x477db9['commands']['add']('uploadcareImageEdit',new O(_0x477db9)),_0x477db9['commands']['add']('uploadcareImageReplace',new R(_0x477db9));}}class g extends _0x4e36d6{['_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 _0x4504da=this['editor'];_0x4504da['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2b2342=>{const _0x4102e9=_0x4504da['commands']['get']('uploadcareImageEdit'),_0x2aa7a6=new _0x2139ff(_0x2b2342),t=_0x2b2342['t'];return _0x2aa7a6['set']({'icon':_0x1cf45c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2aa7a6['bind']('isEnabled')['to'](_0x4102e9),_0x2aa7a6['bind']('isOn')['to'](_0x4102e9,'isActive'),this['listenTo'](_0x2aa7a6,'execute',()=>{_0x4504da['execute']('uploadcareImageEdit'),_0x4504da['editing']['view']['focus']();}),_0x2aa7a6;}),this['_initConfig']();}['_initConfig'](){const _0x386622=_0x48ab9a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x386622),this['listenTo'](this['editor'],'destroy',()=>{_0x386622['remove']();});}}class et extends _0x4e36d6{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20260126.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20260126.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20260126.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20260126.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20260126.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20260126.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20260126.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20260126.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20260126.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.24.5",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x32e166=_0x1d02;(function(_0xc191ec,_0x2b4e50){const _0xe002d=_0x1d02,_0x3e4642=_0xc191ec();while(!![]){try{const _0x2f0ea4=parseInt(_0xe002d(0x17a))/0x1+-parseInt(_0xe002d(0x1b2))/0x2+parseInt(_0xe002d(0x197))/0x3*(-parseInt(_0xe002d(0x192))/0x4)+-parseInt(_0xe002d(0x17f))/0x5+-parseInt(_0xe002d(0x17e))/0x6+parseInt(_0xe002d(0x1b3))/0x7*(-parseInt(_0xe002d(0x1a4))/0x8)+parseInt(_0xe002d(0x191))/0x9;if(_0x2f0ea4===_0x2b4e50)break;else _0x3e4642['push'](_0x3e4642['shift']());}catch(_0x215377){_0x3e4642['push'](_0x3e4642['shift']());}}}(_0x335a,0x95636));import{Plugin as _0x22474b}from'ckeditor5/src/core.js';import{Dialog as _0x44e4be}from'ckeditor5/src/ui.js';import{createElement as _0x23cd8a,global as _0x5b4106,uid as _0x569072}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2b442c}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5d08c1}from'./uploadcareuploadadapter.js';function _0x1d02(_0x210996,_0x321366){const _0x335a7c=_0x335a();return _0x1d02=function(_0x1d02c8,_0x41aea1){_0x1d02c8=_0x1d02c8-0x170;let _0x20578e=_0x335a7c[_0x1d02c8];return _0x20578e;},_0x1d02(_0x210996,_0x321366);}function _0x335a(){const _0x40ecd1=['uploader-','appendChild','input[uploadcare-file-input]','render','true','UploadcareEditing','removeAttribute','requires','data-uc-image-id','remove','PictureEditing','extend','2383674kxuCdQ','3911943EXrGlA','imageBlock','init','uploadcareImageId','schema','uploadcare.pubkey','editing','_ctxElement','_initSchema','elementToAttribute','isOfficialPlugin','execute','closeMax','view','editor','once','querySelector','attributeToAttribute','selection','afterInit','getSelectedElement','locale','iconHrefResolver','contentLanguage','uc-config','href','cleanupImage','981561BJuKRN','_initConfig','for','ctxElement','4481232ILscTJ','263685dSgMnx','uploadcare.uploader','isRegistered','uploadcare','\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','upcast','conversion','ucContextId','add','fromCharCode','document','body','map','isPremiumPlugin','get','listenTo','config','getAttribute','28800180bjTWpl','4kaEbOi','model','destroy','imageInline','join','1381629kvxMmK','#uc-icon-arrow-down','replaceImageSource','downcast','insertImage','pluginName','_initConversion','uc-upload-ctx-provider','_initCtx','configElement','_initImageProcessingIndicator','uploadcareImageReplace','_configElement','16ZxTxjR','commands'];_0x335a=function(){return _0x40ecd1;};return _0x335a();}import{showImageProcessingIndicator as _0x44b41c}from'./utils/editingutils.js';export class UploadcareEditing extends _0x22474b{[_0x32e166(0x1a3)]=null;[_0x32e166(0x1ba)]=null;static get[_0x32e166(0x19c)](){const _0x1c4225=_0x32e166;return _0x1c4225(0x1ab);}static get[_0x32e166(0x1ad)](){const _0x32bc72=_0x32e166;return[_0x32bc72(0x1b0),_0x5d08c1,_0x44e4be];}static get[_0x32e166(0x1bd)](){return!0x0;}static get[_0x32e166(0x18c)](){return!0x0;}[_0x32e166(0x186)];get[_0x32e166(0x1a0)](){const _0x375194=_0x32e166;return this[_0x375194(0x1a3)];}get[_0x32e166(0x17d)](){const _0x505601=_0x32e166;return this[_0x505601(0x1ba)];}constructor(_0x1e1729){const _0xadb67e=_0x32e166;super(_0x1e1729),this[_0xadb67e(0x186)]=_0x569072();}[_0x32e166(0x1b5)](){const _0x2c8325=_0x32e166,_0x1aef78=this[_0x2c8325(0x1c1)];_0x1aef78[_0x2c8325(0x1a5)][_0x2c8325(0x187)](_0x2c8325(0x182),new _0x2b442c(_0x1aef78));}[_0x32e166(0x172)](){const _0xdde9ca=_0x32e166;this[_0xdde9ca(0x1bb)](),this[_0xdde9ca(0x19d)](),this[_0xdde9ca(0x17b)](),this[_0xdde9ca(0x19f)](),this[_0xdde9ca(0x1a1)](),this[_0xdde9ca(0x18e)](this[_0xdde9ca(0x1c1)],_0xdde9ca(0x194),()=>{const _0x4d5269=_0xdde9ca;this[_0x4d5269(0x1a3)]&&(this[_0x4d5269(0x1a3)][_0x4d5269(0x1af)](),this[_0x4d5269(0x1a3)]=null),this[_0x4d5269(0x1ba)]&&(this[_0x4d5269(0x1ba)][_0x4d5269(0x1af)](),this[_0x4d5269(0x1ba)]=null);const _0x541ff2=_0x5b4106[_0x4d5269(0x189)][_0x4d5269(0x1c3)](_0x4d5269(0x1a8));_0x541ff2&&_0x541ff2[_0x4d5269(0x1af)]();}),async function(_0x3fb4aa){const _0x1dabf6=_0x4870c1([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4c1dbe=0x535f8c3a,_0x12bef3=0x5358f3ea^_0x4c1dbe,_0xde2bb1=window[_0x4870c1([0x44,0x61,0x74,0x65])][_0x4870c1([0x6e,0x6f,0x77])](),_0x3aeb86=_0x3fb4aa[_0x4870c1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb75640=new window[(_0x4870c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28fdaa=>{_0x3aeb86[_0x4870c1([0x6f,0x6e,0x63,0x65])](_0x4870c1([0x72,0x65,0x61,0x64,0x79]),_0x28fdaa);}),_0x426ccb={[_0x4870c1([0x6b,0x74,0x79])]:_0x4870c1([0x45,0x43]),[_0x4870c1([0x75,0x73,0x65])]:_0x4870c1([0x73,0x69,0x67]),[_0x4870c1([0x63,0x72,0x76])]:_0x4870c1([0x50,0x2d,0x32,0x35,0x36]),[_0x4870c1([0x78])]:_0x4870c1([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]),[_0x4870c1([0x79])]:_0x4870c1([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]),[_0x4870c1([0x61,0x6c,0x67])]:_0x4870c1([0x45,0x53,0x32,0x35,0x36])},_0x1ec2d1=_0x3aeb86[_0x4870c1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4870c1([0x67,0x65,0x74])](_0x4870c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x585bc0(){let _0x14cd5b,_0x15af2a=null,_0x213186=null;try{if(_0x1ec2d1==_0x4870c1([0x47,0x50,0x4c]))return _0x4870c1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14cd5b=_0x3bcad6(),!_0x14cd5b)return _0x4870c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14cd5b[_0x4870c1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x213186=_0x331fdb(_0x14cd5b[_0x4870c1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14cd5b[_0x4870c1([0x6a,0x74,0x69])])),await _0x437add()?_0x210005()?_0x155ca7()?_0x4870c1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x184cea()?(_0x14cd5b[_0x4870c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4870c1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x15af2a=_0x4788a1(_0x4870c1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2be13f()):_0x4870c1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4870c1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4870c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4870c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x155ca7(){const _0x305a20=[_0x4870c1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4870c1([0x74,0x72,0x69,0x61,0x6c])][_0x4870c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14cd5b[_0x4870c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xde2bb1/0x3e8:0xe10*_0x12bef3;return _0x14cd5b[_0x4870c1([0x65,0x78,0x70])]<_0x305a20;}function _0x210005(){const _0x1a5370=_0x14cd5b[_0x4870c1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1a5370&&(!!_0x1a5370[_0x4870c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4870c1([0x2a]))||!!_0x1a5370[_0x4870c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4870c1([0x55,0x50,0x4c,0x43])));}function _0x184cea(){const _0x7ee2f9=_0x1d02,_0x428ed8=_0x14cd5b[_0x4870c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x428ed8||0x0==_0x428ed8[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x12915d}=new URL(window[_0x4870c1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x7ee2f9(0x178)]);if(_0x428ed8[_0x4870c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12915d))return!0x0;const _0x29dd78=_0x12915d[_0x4870c1([0x73,0x70,0x6c,0x69,0x74])](_0x4870c1([0x2e]));return _0x428ed8[_0x4870c1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1025a3=>_0x1025a3[_0x4870c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4870c1([0x2a])))[_0x4870c1([0x6d,0x61,0x70])](_0x314e9f=>_0x314e9f[_0x4870c1([0x73,0x70,0x6c,0x69,0x74])](_0x4870c1([0x2e])))[_0x4870c1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2fbe1a=>_0x2fbe1a[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x29dd78[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4870c1([0x6d,0x61,0x70])](_0x31463d=>Array(_0x29dd78[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x31463d[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4870c1([0x66,0x69,0x6c,0x6c])](_0x31463d[0x0]===_0x4870c1([0x2a])?_0x4870c1([0x2a]):'')[_0x4870c1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x31463d))[_0x4870c1([0x73,0x6f,0x6d,0x65])](_0x383a71=>_0x29dd78[_0x4870c1([0x65,0x76,0x65,0x72,0x79])]((_0x49431c,_0x593f5c)=>_0x383a71[_0x593f5c]===_0x49431c||_0x383a71[_0x593f5c]===_0x4870c1([0x2a])));}function _0x2be13f(){return _0x15af2a&&_0x213186?new window[(_0x4870c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53c76b,_0x31c2aa)=>{_0x15af2a[_0x4870c1([0x74,0x68,0x65,0x6e])](_0x53c76b,_0x31c2aa),_0x213186[_0x4870c1([0x74,0x68,0x65,0x6e])](_0x1ef834=>{_0x1ef834!=_0x4870c1([0x56,0x61,0x6c,0x69,0x64])&&_0x53c76b(_0x1ef834);},_0x31c2aa);}):_0x15af2a||_0x213186||_0x4870c1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x331fdb(_0xe68ac3,_0x2adca2){return new window[(_0x4870c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4aeda3=>{if(_0x92fa9b())return _0x4aeda3(_0x4870c1([0x56,0x61,0x6c,0x69,0x64]));_0x2d1efd(),_0x3aeb86[_0x4870c1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4870c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1b4767=!0x1;const _0x15200a=_0x569072();function _0x18e592(_0x562c1e){return!!_0x562c1e&&(typeof _0x562c1e===_0x4870c1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x562c1e===_0x4870c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x562c1e[_0x4870c1([0x74,0x68,0x65,0x6e])]===_0x4870c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x562c1e[_0x4870c1([0x63,0x61,0x74,0x63,0x68])]===_0x4870c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4100ab(_0x5f45d4){_0x25306b(_0x5f45d4)[_0x4870c1([0x74,0x68,0x65,0x6e])](_0x1c26b1=>{if(!_0x1c26b1||_0x1c26b1[_0x4870c1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4870c1([0x6f,0x6b]))return _0x4870c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x437eb7(_0x40695d(_0x15200a+_0x2adca2))!=_0x1c26b1[_0x4870c1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4870c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4870c1([0x56,0x61,0x6c,0x69,0x64]);})[_0x4870c1([0x74,0x68,0x65,0x6e])](_0x158d1a=>(_0x54d16d(),_0x158d1a),()=>{const _0x52d3ee=_0x2f8bbc();return null==_0x52d3ee?(_0x54d16d(),_0x4870c1([0x56,0x61,0x6c,0x69,0x64])):_0x4870c1(_0xde2bb1-_0x52d3ee>(0x7753083a^_0x4c1dbe)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4870c1([0x74,0x68,0x65,0x6e])](_0x4aeda3)[_0x4870c1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4aeda3(_0x4870c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x94a022=0x536962ba^_0x4c1dbe;function _0x54d16d(){const _0x33018b=_0x4870c1([0x6c,0x6c,0x63,0x74,0x2d])+_0x437eb7(_0x40695d(_0xe68ac3)),_0x1ad2fe=_0x56e4e9(_0x437eb7(window[_0x4870c1([0x4d,0x61,0x74,0x68])][_0x4870c1([0x63,0x65,0x69,0x6c])](_0xde2bb1/_0x94a022)));window[_0x4870c1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4870c1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33018b,_0x1ad2fe);}function _0x2f8bbc(){const _0x3acc46=_0x4870c1([0x6c,0x6c,0x63,0x74,0x2d])+_0x437eb7(_0x40695d(_0xe68ac3)),_0x545661=window[_0x4870c1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4870c1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3acc46);return _0x545661?window[_0x4870c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56e4e9(_0x545661),0x10)*_0x94a022:null;}function _0x25306b(_0x228749){return new window[(_0x4870c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x113f59,_0x5eef4a)=>{_0x228749[_0x4870c1([0x74,0x68,0x65,0x6e])](_0x113f59,_0x5eef4a),window[_0x4870c1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5eef4a,0x535e58fa^_0x4c1dbe);});}}_0x3aeb86[_0x4870c1([0x6f,0x6e])](_0x4870c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5bdf84,_0x5972c8)=>{if(_0x5972c8[0x0]!=_0xe68ac3)return _0x4aeda3(_0x4870c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5972c8[0x1]={..._0x5972c8[0x1],[_0x4870c1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x15200a};},{[_0x4870c1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4870c1([0x68,0x69,0x67,0x68])}),_0x3aeb86[_0x4870c1([0x6f,0x6e])](_0x4870c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b4002=>{_0x18e592(_0x4b4002[_0x4870c1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1b4767=!0x0,_0x4100ab(_0x4b4002[_0x4870c1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4870c1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4870c1([0x6c,0x6f,0x77])}),_0xb75640[_0x4870c1([0x74,0x68,0x65,0x6e])](()=>{_0x1b4767||_0x4aeda3(_0x4870c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x92fa9b(){return _0x3aeb86[_0x4870c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4870c1([0x76,0x69,0x65,0x77])][_0x4870c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4870c1([0x61,0x75,0x74,0x6f]);}function _0x2d1efd(){_0x3aeb86[_0x4870c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4870c1([0x76,0x69,0x65,0x77])][_0x4870c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4870c1([0x61,0x75,0x74,0x6f]);}}function _0x4788a1(_0x41722d){const _0x2c6423=[new window[(_0x4870c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4739c7=>setTimeout(_0x4739c7,0x5356b2f6^_0x4c1dbe)),_0xb75640[_0x4870c1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4870c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c97e4=>{let _0x594b8d=0x0;_0x3aeb86[_0x4870c1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4870c1([0x6f,0x6e])](_0x4870c1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x28e891,_0xcbc935)=>{_0xcbc935[0x0][_0x4870c1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x594b8d++,_0x594b8d==(0x535f89d2^_0x4c1dbe)&&(_0x5c97e4(),_0x28e891[_0x4870c1([0x6f,0x66,0x66])]());});}))];return window[_0x4870c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4870c1([0x72,0x61,0x63,0x65])](_0x2c6423)[_0x4870c1([0x74,0x68,0x65,0x6e])](()=>_0x41722d);}async function _0x23baf7(){await _0xb75640,_0x3aeb86[_0x4870c1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4870c1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c0be3,_0x3aeb86[_0x4870c1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4870c1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c0be3,_0x3aeb86[_0x4870c1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4870c1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b56ab(_0x1bff66){const _0x3d786d=_0x36553f();_0x3aeb86[_0x3d786d]=_0x4870c1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1bff66,_0x1bff66!=_0x4870c1([0x56,0x61,0x6c,0x69,0x64])&&_0x23baf7();}function _0x36553f(){const _0x3cb0cc=window[_0x4870c1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4870c1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4870c1([0x6e,0x6f,0x77])]())[_0x4870c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4870c1([0x2e]),'');let _0x1e6665=_0x4870c1([0x68]);for(let _0x54910b=0x0;_0x54910b<_0x3cb0cc[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54910b+=0x2){let _0x4449ab=window[_0x4870c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cb0cc[_0x4870c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54910b,_0x54910b+0x2));_0x4449ab>=_0x1dabf6[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4449ab-=_0x1dabf6[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e6665+=_0x1dabf6[_0x4449ab];}return _0x1e6665;}function _0x3bcad6(){const _0x392cc6=_0x1ec2d1[_0x4870c1([0x73,0x70,0x6c,0x69,0x74])](_0x4870c1([0x2e]));if(0x3!=_0x392cc6[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3cae1b(_0x392cc6[0x1]);function _0x3cae1b(_0x338ae3){const _0xc5f653=_0x2f72f4(_0x338ae3);return _0xc5f653&&_0x11ca0c()?_0xc5f653:null;function _0x11ca0c(){const _0x2bbe63=_0xc5f653[_0x4870c1([0x6a,0x74,0x69])],_0x41ece5=window[_0x4870c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bbe63[_0x4870c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bbe63[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a2805={..._0xc5f653,[_0x4870c1([0x6a,0x74,0x69])]:_0x2bbe63[_0x4870c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2bbe63[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a2805[_0x4870c1([0x76,0x63])],_0x40695d(_0x4a2805)==_0x41ece5;}}}async function _0x437add(){let _0x4de6cb=!0x0;try{const _0x1ac055=_0x1ec2d1[_0x4870c1([0x73,0x70,0x6c,0x69,0x74])](_0x4870c1([0x2e])),[_0x316817,_0x31ac2b,_0x261113]=_0x1ac055;return _0x4f105a(_0x316817),await _0x1e4090(_0x316817,_0x31ac2b,_0x261113),_0x4de6cb;}catch{return!0x1;}function _0x4f105a(_0x5c86cb){const _0x2c6c42=_0x2f72f4(_0x5c86cb);_0x2c6c42&&_0x2c6c42[_0x4870c1([0x61,0x6c,0x67])]==_0x4870c1([0x45,0x53,0x32,0x35,0x36])||(_0x4de6cb=!0x1);}async function _0x1e4090(_0x330eac,_0x29ead6,_0x575d26){const _0x3878b5=window[_0x4870c1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4870c1([0x66,0x72,0x6f,0x6d])](_0x33bbda(_0x575d26),_0x26f715=>_0x26f715[_0x4870c1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3044e2=new window[(_0x4870c1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4870c1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x330eac+_0x4870c1([0x2e])+_0x29ead6),_0x1ea1d9=window[_0x4870c1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4870c1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ea1d9)return;const _0x3beb15=await _0x1ea1d9[_0x4870c1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4870c1([0x6a,0x77,0x6b]),_0x426ccb,{[_0x4870c1([0x6e,0x61,0x6d,0x65])]:_0x4870c1([0x45,0x43,0x44,0x53,0x41]),[_0x4870c1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4870c1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4870c1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ea1d9[_0x4870c1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4870c1([0x6e,0x61,0x6d,0x65])]:_0x4870c1([0x45,0x43,0x44,0x53,0x41]),[_0x4870c1([0x68,0x61,0x73,0x68])]:{[_0x4870c1([0x6e,0x61,0x6d,0x65])]:_0x4870c1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3beb15,_0x3878b5,_0x3044e2)||(_0x4de6cb=!0x1);}}function _0x2f72f4(_0x717de4){return _0x717de4[_0x4870c1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4870c1([0x65,0x79]))?JSON[_0x4870c1([0x70,0x61,0x72,0x73,0x65])](_0x33bbda(_0x717de4)):null;}function _0x33bbda(_0x43b8b5){return window[_0x4870c1([0x61,0x74,0x6f,0x62])](_0x43b8b5[_0x4870c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4870c1([0x2b]))[_0x4870c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4870c1([0x2f])));}function _0x40695d(_0x3e5f7b){let _0x1dec12=0x1505;function _0x121dc8(_0x172a29){for(let _0x43f51f=0x0;_0x43f51f<_0x172a29[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43f51f++){const _0x312ded=_0x172a29[_0x4870c1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x43f51f);_0x1dec12=(_0x1dec12<<0x5)+_0x1dec12+_0x312ded,_0x1dec12&=_0x1dec12;}}function _0x5bb058(_0x2b57c9){Array[_0x4870c1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b57c9)?_0x2b57c9[_0x4870c1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5bb058):_0x2b57c9&&typeof _0x2b57c9==_0x4870c1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4870c1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b57c9)[_0x4870c1([0x73,0x6f,0x72,0x74])]()[_0x4870c1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x145443,_0x167a6d])=>{_0x121dc8(_0x145443),_0x5bb058(_0x167a6d);}):_0x121dc8(window[_0x4870c1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b57c9));}return _0x5bb058(_0x3e5f7b),_0x1dec12>>>0x0;}function _0x437eb7(_0x20a405){return _0x20a405[_0x4870c1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4870c1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4870c1([0x30]));}function _0x56e4e9(_0x5da8c7){return _0x5da8c7[_0x4870c1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4870c1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4870c1([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c0be3(){}function _0x4870c1(_0x209c3d){const _0x4e7efd=_0x1d02;return _0x209c3d[_0x4e7efd(0x18b)](_0x4a0e37=>String[_0x4e7efd(0x188)](_0x4a0e37))[_0x4e7efd(0x196)]('');}_0x3b56ab(await _0x585bc0());}(this);}[_0x32e166(0x1bb)](){const _0x55bf70=_0x32e166,_0x917e00=this[_0x55bf70(0x1c1)][_0x55bf70(0x193)][_0x55bf70(0x1b7)];_0x917e00[_0x55bf70(0x181)](_0x55bf70(0x1b4))&&_0x917e00[_0x55bf70(0x1b1)](_0x55bf70(0x1b4),{'allowAttributes':[_0x55bf70(0x1b6)]}),_0x917e00[_0x55bf70(0x181)](_0x55bf70(0x195))&&_0x917e00[_0x55bf70(0x1b1)](_0x55bf70(0x195),{'allowAttributes':[_0x55bf70(0x1b6)]});}[_0x32e166(0x19d)](){const _0x1ab0ef=_0x32e166,_0x1f1f85=this[_0x1ab0ef(0x1c1)];_0x1f1f85[_0x1ab0ef(0x185)][_0x1ab0ef(0x17c)](_0x1ab0ef(0x19a))[_0x1ab0ef(0x170)]({'model':_0x1ab0ef(0x1b6),'view':_0x1ab0ef(0x1ae)}),_0x1f1f85[_0x1ab0ef(0x185)][_0x1ab0ef(0x17c)](_0x1ab0ef(0x184))[_0x1ab0ef(0x1bc)]({'model':{'key':_0x1ab0ef(0x1b6),'value':_0xf110fb=>_0xf110fb[_0x1ab0ef(0x190)](_0x1ab0ef(0x1ae))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xddeef=_0x1f1f85[_0x1ab0ef(0x1a5)][_0x1ab0ef(0x18d)](_0x1ab0ef(0x199));_0xddeef&&this[_0x1ab0ef(0x18e)](_0xddeef,_0x1ab0ef(0x179),(_0x272199,[_0x446d18,_0x22c073])=>{const _0x1b9457=_0x1ab0ef;_0x446d18[_0x1b9457(0x1ac)](_0x1b9457(0x1b6),_0x22c073);});}[_0x32e166(0x17b)](){const _0x386136=_0x32e166,_0x20bc49=this[_0x386136(0x1c1)][_0x386136(0x18f)][_0x386136(0x18d)](_0x386136(0x180))||{},_0x59c3b5=this[_0x386136(0x1c1)][_0x386136(0x18f)][_0x386136(0x18d)](_0x386136(0x1b8))||'';this[_0x386136(0x1a3)]=_0x23cd8a(_0x5b4106[_0x386136(0x189)],_0x386136(0x177),{..._0x20bc49,'pubkey':_0x59c3b5,'ctx-name':_0x386136(0x1a6)+this[_0x386136(0x186)],'sourceList':'','imgOnly':_0x386136(0x1aa),'removeCopyright':_0x386136(0x1aa),'localeName':this[_0x386136(0x1c1)][_0x386136(0x174)][_0x386136(0x176)],'externalSourcesEmbedCss':_0x386136(0x183)}),this[_0x386136(0x1a3)][_0x386136(0x175)]=_0x423c36=>{const _0x159637=_0x386136;if(_0x159637(0x1bf)==_0x423c36)return _0x159637(0x198);},_0x5b4106[_0x386136(0x189)][_0x386136(0x18a)][_0x386136(0x1a7)](this[_0x386136(0x1a3)]);}[_0x32e166(0x19f)](){const _0x2454fd=_0x32e166;this[_0x2454fd(0x1ba)]=_0x23cd8a(_0x5b4106[_0x2454fd(0x189)],_0x2454fd(0x19e),{'ctx-name':_0x2454fd(0x1a6)+this[_0x2454fd(0x186)]}),_0x5b4106[_0x2454fd(0x189)][_0x2454fd(0x18a)][_0x2454fd(0x1a7)](this[_0x2454fd(0x1ba)]);}[_0x32e166(0x1a1)](){const _0x53b7cb=_0x32e166,_0x98d99d=this[_0x53b7cb(0x1c1)][_0x53b7cb(0x1a5)][_0x53b7cb(0x18d)](_0x53b7cb(0x19b));_0x98d99d&&this[_0x53b7cb(0x18e)](_0x98d99d,_0x53b7cb(0x1be),()=>{const _0x527527=_0x53b7cb,_0x4f005c=this[_0x527527(0x1c1)][_0x527527(0x193)][_0x527527(0x189)][_0x527527(0x171)][_0x527527(0x173)]();_0x4f005c&&_0x4f005c[_0x527527(0x190)](_0x527527(0x1b6))&&this[_0x527527(0x1c1)][_0x527527(0x1b9)][_0x527527(0x1c0)][_0x527527(0x1c2)](_0x527527(0x1a9),()=>{const _0x4a24b8=_0x527527;_0x44b41c(this[_0x4a24b8(0x1c1)],_0x4f005c);});});const _0x550716=this[_0x53b7cb(0x1c1)][_0x53b7cb(0x1a5)][_0x53b7cb(0x18d)](_0x53b7cb(0x1a2));_0x550716&&this[_0x53b7cb(0x18e)](_0x550716,_0x53b7cb(0x1be),()=>{const _0x179cec=_0x53b7cb,_0x30847a=this[_0x179cec(0x1c1)][_0x179cec(0x193)][_0x179cec(0x189)][_0x179cec(0x171)][_0x179cec(0x173)]();_0x30847a&&_0x30847a[_0x179cec(0x190)](_0x179cec(0x1b6))&&this[_0x179cec(0x1c1)][_0x179cec(0x1b9)][_0x179cec(0x1c0)][_0x179cec(0x1c2)](_0x179cec(0x1a9),()=>{const _0x14b1af=_0x179cec;_0x44b41c(this[_0x14b1af(0x1c1)],_0x30847a);});});}}
|
|
23
|
+
const _0x569a29=_0x49e0;function _0x218f(){const _0x2c305f=['getSelectedElement','get','uploadcareImageId','locale','join','uploadcare.pubkey','cleanupImage','attributeToAttribute','ucContextId','destroy','imageInline','uploadcare','replaceImageSource','editing','downcast','20qeAMoZ','uc-config','input[uploadcare-file-input]','appendChild','_initConversion','_initCtx','#uc-icon-arrow-down','add','ctxElement','_initConfig','for','PictureEditing','view','requires','isOfficialPlugin','\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','pluginName','uploadcare.uploader','107208HiEUqO','map','isPremiumPlugin','12063444LasAmp','document','130hIcOvr','elementToAttribute','UploadcareEditing','execute','href','body','25975FBTivc','remove','getAttribute','_ctxElement','fromCharCode','once','3283448FkCuaV','removeAttribute','uploadcareImageReplace','commands','152GAAaTU','selection','schema','model','conversion','closeMax','_initImageProcessingIndicator','init','contentLanguage','config','render','true','data-uc-image-id','isRegistered','listenTo','afterInit','uc-upload-ctx-provider','iconHrefResolver','60ddflTP','uploader-','configElement','editor','11escsZZ','3064820uOmvtm','insertImage','294189dGtBRF','_initSchema','upcast','38922zktYrf','querySelector','extend','_configElement','imageBlock'];_0x218f=function(){return _0x2c305f;};return _0x218f();}(function(_0x5321bd,_0xf72778){const _0x507fbc=_0x49e0,_0x3e17db=_0x5321bd();while(!![]){try{const _0x1809b8=-parseInt(_0x507fbc(0xc3))/0x1*(parseInt(_0x507fbc(0xa6))/0x2)+-parseInt(_0x507fbc(0x92))/0x3*(-parseInt(_0x507fbc(0xcd))/0x4)+-parseInt(_0x507fbc(0x8d))/0x5+-parseInt(_0x507fbc(0x88))/0x6*(-parseInt(_0x507fbc(0x8f))/0x7)+-parseInt(_0x507fbc(0xc9))/0x8+parseInt(_0x507fbc(0xb8))/0x9*(-parseInt(_0x507fbc(0xbd))/0xa)+-parseInt(_0x507fbc(0x8c))/0xb*(-parseInt(_0x507fbc(0xbb))/0xc);if(_0x1809b8===_0xf72778)break;else _0x3e17db['push'](_0x3e17db['shift']());}catch(_0x511c65){_0x3e17db['push'](_0x3e17db['shift']());}}}(_0x218f,0x75538));import{Plugin as _0x1a70ac}from'ckeditor5/src/core.js';import{Dialog as _0x2ffb80}from'ckeditor5/src/ui.js';import{createElement as _0x136309,global as _0x131c5b,uid as _0x503613}from'ckeditor5/src/utils.js';function _0x49e0(_0x1a3ba9,_0x709625){const _0x218faf=_0x218f();return _0x49e0=function(_0x49e000,_0x45e74a){_0x49e000=_0x49e000-0x77;let _0x1e5ec4=_0x218faf[_0x49e000];return _0x1e5ec4;},_0x49e0(_0x1a3ba9,_0x709625);}import{UploadcareCommand as _0x2db251}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x58e8e5}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x262e3a}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1a70ac{[_0x569a29(0x95)]=null;[_0x569a29(0xc6)]=null;static get[_0x569a29(0xb6)](){const _0x246657=_0x569a29;return _0x246657(0xbf);}static get[_0x569a29(0xb3)](){const _0x573755=_0x569a29;return[_0x573755(0xb1),_0x58e8e5,_0x2ffb80];}static get[_0x569a29(0xb4)](){return!0x0;}static get[_0x569a29(0xba)](){return!0x0;}[_0x569a29(0x9f)];get[_0x569a29(0x8a)](){const _0x240c48=_0x569a29;return this[_0x240c48(0x95)];}get[_0x569a29(0xae)](){const _0x228cea=_0x569a29;return this[_0x228cea(0xc6)];}constructor(_0xc76ede){const _0x3acdf1=_0x569a29;super(_0xc76ede),this[_0x3acdf1(0x9f)]=_0x503613();}[_0x569a29(0x7d)](){const _0x4c5649=_0x569a29,_0x4102d2=this[_0x4c5649(0x8b)];_0x4102d2[_0x4c5649(0xcc)][_0x4c5649(0xad)](_0x4c5649(0xa2),new _0x2db251(_0x4102d2));}[_0x569a29(0x85)](){const _0x3bed5f=_0x569a29;this[_0x3bed5f(0x90)](),this[_0x3bed5f(0xaa)](),this[_0x3bed5f(0xaf)](),this[_0x3bed5f(0xab)](),this[_0x3bed5f(0x7c)](),this[_0x3bed5f(0x84)](this[_0x3bed5f(0x8b)],_0x3bed5f(0xa0),()=>{const _0x258080=_0x3bed5f;this[_0x258080(0x95)]&&(this[_0x258080(0x95)][_0x258080(0xc4)](),this[_0x258080(0x95)]=null),this[_0x258080(0xc6)]&&(this[_0x258080(0xc6)][_0x258080(0xc4)](),this[_0x258080(0xc6)]=null);const _0xfd3d26=_0x131c5b[_0x258080(0xbc)][_0x258080(0x93)](_0x258080(0xa8));_0xfd3d26&&_0xfd3d26[_0x258080(0xc4)]();}),async function(_0x1e7d7f){const _0x48c78a=_0x40c9e1([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x346cf9=0x535f8c3a,_0x3393c0=0x5358f3d2^_0x346cf9,_0x1135d0=window[_0x40c9e1([0x44,0x61,0x74,0x65])][_0x40c9e1([0x6e,0x6f,0x77])](),_0x34222e=_0x1e7d7f[_0x40c9e1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x43f450=new window[(_0x40c9e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4911b6=>{_0x34222e[_0x40c9e1([0x6f,0x6e,0x63,0x65])](_0x40c9e1([0x72,0x65,0x61,0x64,0x79]),_0x4911b6);}),_0x580280={[_0x40c9e1([0x6b,0x74,0x79])]:_0x40c9e1([0x45,0x43]),[_0x40c9e1([0x75,0x73,0x65])]:_0x40c9e1([0x73,0x69,0x67]),[_0x40c9e1([0x63,0x72,0x76])]:_0x40c9e1([0x50,0x2d,0x32,0x35,0x36]),[_0x40c9e1([0x78])]:_0x40c9e1([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]),[_0x40c9e1([0x79])]:_0x40c9e1([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]),[_0x40c9e1([0x61,0x6c,0x67])]:_0x40c9e1([0x45,0x53,0x32,0x35,0x36])},_0x55e238=_0x34222e[_0x40c9e1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x40c9e1([0x67,0x65,0x74])](_0x40c9e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1158ed(){let _0x5206ce,_0x5bf7f7=null,_0x343306=null;try{if(_0x55e238==_0x40c9e1([0x47,0x50,0x4c]))return _0x40c9e1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5206ce=_0x3b36ce(),!_0x5206ce)return _0x40c9e1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5206ce[_0x40c9e1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x343306=_0x10f08f(_0x5206ce[_0x40c9e1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5206ce[_0x40c9e1([0x6a,0x74,0x69])])),await _0x459dca()?_0x1bfb8f()?_0x4b885a()?_0x40c9e1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3cc142()?(_0x5206ce[_0x40c9e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40c9e1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5bf7f7=_0x1fdaba(_0x40c9e1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4f475e()):_0x40c9e1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x40c9e1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x40c9e1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x40c9e1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b885a(){const _0x594b97=[_0x40c9e1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x40c9e1([0x74,0x72,0x69,0x61,0x6c])][_0x40c9e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5206ce[_0x40c9e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1135d0/0x3e8:0xe10*_0x3393c0;return _0x5206ce[_0x40c9e1([0x65,0x78,0x70])]<_0x594b97;}function _0x1bfb8f(){const _0x198c97=_0x5206ce[_0x40c9e1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x198c97&&(!!_0x198c97[_0x40c9e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40c9e1([0x2a]))||!!_0x198c97[_0x40c9e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40c9e1([0x55,0x50,0x4c,0x43])));}function _0x3cc142(){const _0x3322d1=_0x49e0,_0x5619e6=_0x5206ce[_0x40c9e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5619e6||0x0==_0x5619e6[_0x40c9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x13ed7f}=new URL(window[_0x40c9e1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3322d1(0xc1)]);if(_0x5619e6[_0x40c9e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13ed7f))return!0x0;const _0x520532=_0x13ed7f[_0x40c9e1([0x73,0x70,0x6c,0x69,0x74])](_0x40c9e1([0x2e]));return _0x5619e6[_0x40c9e1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x138497=>_0x138497[_0x40c9e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40c9e1([0x2a])))[_0x40c9e1([0x6d,0x61,0x70])](_0x51ae92=>_0x51ae92[_0x40c9e1([0x73,0x70,0x6c,0x69,0x74])](_0x40c9e1([0x2e])))[_0x40c9e1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xbe925=>_0xbe925[_0x40c9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x520532[_0x40c9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40c9e1([0x6d,0x61,0x70])](_0x413e71=>Array(_0x520532[_0x40c9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x413e71[_0x40c9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40c9e1([0x66,0x69,0x6c,0x6c])](_0x413e71[0x0]===_0x40c9e1([0x2a])?_0x40c9e1([0x2a]):'')[_0x40c9e1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x413e71))[_0x40c9e1([0x73,0x6f,0x6d,0x65])](_0x54158c=>_0x520532[_0x40c9e1([0x65,0x76,0x65,0x72,0x79])]((_0x3c636e,_0x4f78fe)=>_0x54158c[_0x4f78fe]===_0x3c636e||_0x54158c[_0x4f78fe]===_0x40c9e1([0x2a])));}function _0x4f475e(){return _0x5bf7f7&&_0x343306?new window[(_0x40c9e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e44f5,_0x47455e)=>{_0x5bf7f7[_0x40c9e1([0x74,0x68,0x65,0x6e])](_0x2e44f5,_0x47455e),_0x343306[_0x40c9e1([0x74,0x68,0x65,0x6e])](_0xbdedd=>{_0xbdedd!=_0x40c9e1([0x56,0x61,0x6c,0x69,0x64])&&_0x2e44f5(_0xbdedd);},_0x47455e);}):_0x5bf7f7||_0x343306||_0x40c9e1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x10f08f(_0x4059b9,_0x338ce9){return new window[(_0x40c9e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x92ddd0=>{if(_0x4e51f8())return _0x92ddd0(_0x40c9e1([0x56,0x61,0x6c,0x69,0x64]));_0x54cf85(),_0x34222e[_0x40c9e1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x40c9e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa2d657=!0x1;const _0x348ec5=_0x503613();function _0x3aa65d(_0x1c364c){return!!_0x1c364c&&(typeof _0x1c364c===_0x40c9e1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1c364c===_0x40c9e1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1c364c[_0x40c9e1([0x74,0x68,0x65,0x6e])]===_0x40c9e1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1c364c[_0x40c9e1([0x63,0x61,0x74,0x63,0x68])]===_0x40c9e1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c38ca(_0x44abc5){_0x32fff2(_0x44abc5)[_0x40c9e1([0x74,0x68,0x65,0x6e])](_0xc48ee5=>{if(!_0xc48ee5||_0xc48ee5[_0x40c9e1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x40c9e1([0x6f,0x6b]))return _0x40c9e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x51a55c(_0x554074(_0x348ec5+_0x338ce9))!=_0xc48ee5[_0x40c9e1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x40c9e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x40c9e1([0x56,0x61,0x6c,0x69,0x64]);})[_0x40c9e1([0x74,0x68,0x65,0x6e])](_0x5ba80c=>(_0x1a4740(),_0x5ba80c),()=>{const _0x579957=_0x24af3d();return null==_0x579957?(_0x1a4740(),_0x40c9e1([0x56,0x61,0x6c,0x69,0x64])):_0x40c9e1(_0x1135d0-_0x579957>(0x7753083a^_0x346cf9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x40c9e1([0x74,0x68,0x65,0x6e])](_0x92ddd0)[_0x40c9e1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x92ddd0(_0x40c9e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1a6eda=0x536962ba^_0x346cf9;function _0x1a4740(){const _0x50cbad=_0x40c9e1([0x6c,0x6c,0x63,0x74,0x2d])+_0x51a55c(_0x554074(_0x4059b9)),_0x3767b6=_0x6378d0(_0x51a55c(window[_0x40c9e1([0x4d,0x61,0x74,0x68])][_0x40c9e1([0x63,0x65,0x69,0x6c])](_0x1135d0/_0x1a6eda)));window[_0x40c9e1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40c9e1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50cbad,_0x3767b6);}function _0x24af3d(){const _0xa8abea=_0x40c9e1([0x6c,0x6c,0x63,0x74,0x2d])+_0x51a55c(_0x554074(_0x4059b9)),_0x20070e=window[_0x40c9e1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40c9e1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa8abea);return _0x20070e?window[_0x40c9e1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6378d0(_0x20070e),0x10)*_0x1a6eda:null;}function _0x32fff2(_0x478f2a){return new window[(_0x40c9e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37219b,_0x4cb4b8)=>{_0x478f2a[_0x40c9e1([0x74,0x68,0x65,0x6e])](_0x37219b,_0x4cb4b8),window[_0x40c9e1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4cb4b8,0x535e58fa^_0x346cf9);});}}_0x34222e[_0x40c9e1([0x6f,0x6e])](_0x40c9e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x395d38,_0x2f872e)=>{if(_0x2f872e[0x0]!=_0x4059b9)return _0x92ddd0(_0x40c9e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f872e[0x1]={..._0x2f872e[0x1],[_0x40c9e1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x348ec5};},{[_0x40c9e1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40c9e1([0x68,0x69,0x67,0x68])}),_0x34222e[_0x40c9e1([0x6f,0x6e])](_0x40c9e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x327919=>{_0x3aa65d(_0x327919[_0x40c9e1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa2d657=!0x0,_0x3c38ca(_0x327919[_0x40c9e1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x40c9e1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40c9e1([0x6c,0x6f,0x77])}),_0x43f450[_0x40c9e1([0x74,0x68,0x65,0x6e])](()=>{_0xa2d657||_0x92ddd0(_0x40c9e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e51f8(){return _0x34222e[_0x40c9e1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40c9e1([0x76,0x69,0x65,0x77])][_0x40c9e1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x40c9e1([0x61,0x75,0x74,0x6f]);}function _0x54cf85(){_0x34222e[_0x40c9e1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40c9e1([0x76,0x69,0x65,0x77])][_0x40c9e1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40c9e1([0x61,0x75,0x74,0x6f]);}}function _0x1fdaba(_0x523ed2){const _0x2ae2b5=[new window[(_0x40c9e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x409702=>setTimeout(_0x409702,0x5356b2f6^_0x346cf9)),_0x43f450[_0x40c9e1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x40c9e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27a70a=>{let _0x29b6d6=0x0;_0x34222e[_0x40c9e1([0x6d,0x6f,0x64,0x65,0x6c])][_0x40c9e1([0x6f,0x6e])](_0x40c9e1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x39d2ed,_0x2df4fc)=>{_0x2df4fc[0x0][_0x40c9e1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x29b6d6++,_0x29b6d6==(0x535f89d2^_0x346cf9)&&(_0x27a70a(),_0x39d2ed[_0x40c9e1([0x6f,0x66,0x66])]());});}))];return window[_0x40c9e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40c9e1([0x72,0x61,0x63,0x65])](_0x2ae2b5)[_0x40c9e1([0x74,0x68,0x65,0x6e])](()=>_0x523ed2);}async function _0x4cece4(){await _0x43f450,_0x34222e[_0x40c9e1([0x6d,0x6f,0x64,0x65,0x6c])][_0x40c9e1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x368c0b,_0x34222e[_0x40c9e1([0x6d,0x6f,0x64,0x65,0x6c])][_0x40c9e1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x368c0b,_0x34222e[_0x40c9e1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x40c9e1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f9ec6(_0x2bd19b){const _0x4e29f1=_0x248f9c();_0x34222e[_0x4e29f1]=_0x40c9e1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2bd19b,_0x2bd19b!=_0x40c9e1([0x56,0x61,0x6c,0x69,0x64])&&_0x4cece4();}function _0x248f9c(){const _0x4a39bb=window[_0x40c9e1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x40c9e1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x40c9e1([0x6e,0x6f,0x77])]())[_0x40c9e1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x40c9e1([0x2e]),'');let _0x45c171=_0x40c9e1([0x68]);for(let _0x2645de=0x0;_0x2645de<_0x4a39bb[_0x40c9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2645de+=0x2){let _0x55196f=window[_0x40c9e1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a39bb[_0x40c9e1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2645de,_0x2645de+0x2));_0x55196f>=_0x48c78a[_0x40c9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55196f-=_0x48c78a[_0x40c9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x45c171+=_0x48c78a[_0x55196f];}return _0x45c171;}function _0x3b36ce(){const _0x4ae4c2=_0x55e238[_0x40c9e1([0x73,0x70,0x6c,0x69,0x74])](_0x40c9e1([0x2e]));if(0x3!=_0x4ae4c2[_0x40c9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x26fb4d(_0x4ae4c2[0x1]);function _0x26fb4d(_0x238e36){const _0x41ec96=_0x1ed3a5(_0x238e36);return _0x41ec96&&_0x2bbac4()?_0x41ec96:null;function _0x2bbac4(){const _0x35a640=_0x41ec96[_0x40c9e1([0x6a,0x74,0x69])],_0x31af45=window[_0x40c9e1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35a640[_0x40c9e1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35a640[_0x40c9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x251af3={..._0x41ec96,[_0x40c9e1([0x6a,0x74,0x69])]:_0x35a640[_0x40c9e1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x35a640[_0x40c9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x251af3[_0x40c9e1([0x76,0x63])],_0x554074(_0x251af3)==_0x31af45;}}}async function _0x459dca(){let _0x19c7bd=!0x0;try{const _0x313760=_0x55e238[_0x40c9e1([0x73,0x70,0x6c,0x69,0x74])](_0x40c9e1([0x2e])),[_0x39bd63,_0x4c244f,_0x1a782a]=_0x313760;return _0x243567(_0x39bd63),await _0xd2c7cb(_0x39bd63,_0x4c244f,_0x1a782a),_0x19c7bd;}catch{return!0x1;}function _0x243567(_0x18c0d2){const _0x343473=_0x1ed3a5(_0x18c0d2);_0x343473&&_0x343473[_0x40c9e1([0x61,0x6c,0x67])]==_0x40c9e1([0x45,0x53,0x32,0x35,0x36])||(_0x19c7bd=!0x1);}async function _0xd2c7cb(_0x457778,_0x4a6f76,_0x3c0665){const _0x2b59d9=window[_0x40c9e1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x40c9e1([0x66,0x72,0x6f,0x6d])](_0x1582b3(_0x3c0665),_0x35c6d6=>_0x35c6d6[_0x40c9e1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f019a=new window[(_0x40c9e1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x40c9e1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x457778+_0x40c9e1([0x2e])+_0x4a6f76),_0x284ae5=window[_0x40c9e1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x40c9e1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x284ae5)return;const _0x223086=await _0x284ae5[_0x40c9e1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x40c9e1([0x6a,0x77,0x6b]),_0x580280,{[_0x40c9e1([0x6e,0x61,0x6d,0x65])]:_0x40c9e1([0x45,0x43,0x44,0x53,0x41]),[_0x40c9e1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x40c9e1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x40c9e1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x284ae5[_0x40c9e1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x40c9e1([0x6e,0x61,0x6d,0x65])]:_0x40c9e1([0x45,0x43,0x44,0x53,0x41]),[_0x40c9e1([0x68,0x61,0x73,0x68])]:{[_0x40c9e1([0x6e,0x61,0x6d,0x65])]:_0x40c9e1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x223086,_0x2b59d9,_0x1f019a)||(_0x19c7bd=!0x1);}}function _0x1ed3a5(_0x390b95){return _0x390b95[_0x40c9e1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x40c9e1([0x65,0x79]))?JSON[_0x40c9e1([0x70,0x61,0x72,0x73,0x65])](_0x1582b3(_0x390b95)):null;}function _0x1582b3(_0x424ed5){return window[_0x40c9e1([0x61,0x74,0x6f,0x62])](_0x424ed5[_0x40c9e1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x40c9e1([0x2b]))[_0x40c9e1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x40c9e1([0x2f])));}function _0x554074(_0x57c6b9){let _0x2d4dd2=0x1505;function _0x3f82f7(_0x130ce0){for(let _0x78970a=0x0;_0x78970a<_0x130ce0[_0x40c9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x78970a++){const _0x2de967=_0x130ce0[_0x40c9e1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x78970a);_0x2d4dd2=(_0x2d4dd2<<0x5)+_0x2d4dd2+_0x2de967,_0x2d4dd2&=_0x2d4dd2;}}function _0x9de501(_0x3cf7f6){Array[_0x40c9e1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3cf7f6)?_0x3cf7f6[_0x40c9e1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9de501):_0x3cf7f6&&typeof _0x3cf7f6==_0x40c9e1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x40c9e1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3cf7f6)[_0x40c9e1([0x73,0x6f,0x72,0x74])]()[_0x40c9e1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5291d7,_0x536101])=>{_0x3f82f7(_0x5291d7),_0x9de501(_0x536101);}):_0x3f82f7(window[_0x40c9e1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3cf7f6));}return _0x9de501(_0x57c6b9),_0x2d4dd2>>>0x0;}function _0x51a55c(_0xe5f039){return _0xe5f039[_0x40c9e1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x40c9e1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x40c9e1([0x30]));}function _0x6378d0(_0x3a3f8f){return _0x3a3f8f[_0x40c9e1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x40c9e1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x40c9e1([0x6a,0x6f,0x69,0x6e])]('');}function _0x368c0b(){}function _0x40c9e1(_0x218231){const _0x4427c3=_0x49e0;return _0x218231[_0x4427c3(0xb9)](_0x42688d=>String[_0x4427c3(0xc7)](_0x42688d))[_0x4427c3(0x9b)]('');}_0x3f9ec6(await _0x1158ed());}(this);}[_0x569a29(0x90)](){const _0x50de0c=_0x569a29,_0x9a55d8=this[_0x50de0c(0x8b)][_0x50de0c(0x79)][_0x50de0c(0x78)];_0x9a55d8[_0x50de0c(0x83)](_0x50de0c(0x96))&&_0x9a55d8[_0x50de0c(0x94)](_0x50de0c(0x96),{'allowAttributes':[_0x50de0c(0x99)]}),_0x9a55d8[_0x50de0c(0x83)](_0x50de0c(0xa1))&&_0x9a55d8[_0x50de0c(0x94)](_0x50de0c(0xa1),{'allowAttributes':[_0x50de0c(0x99)]});}[_0x569a29(0xaa)](){const _0x46411d=_0x569a29,_0x4eb802=this[_0x46411d(0x8b)];_0x4eb802[_0x46411d(0x7a)][_0x46411d(0xb0)](_0x46411d(0xa5))[_0x46411d(0x9e)]({'model':_0x46411d(0x99),'view':_0x46411d(0x82)}),_0x4eb802[_0x46411d(0x7a)][_0x46411d(0xb0)](_0x46411d(0x91))[_0x46411d(0xbe)]({'model':{'key':_0x46411d(0x99),'value':_0x5ce3f6=>_0x5ce3f6[_0x46411d(0xc5)](_0x46411d(0x82))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x521f71=_0x4eb802[_0x46411d(0xcc)][_0x46411d(0x98)](_0x46411d(0xa3));_0x521f71&&this[_0x46411d(0x84)](_0x521f71,_0x46411d(0x9d),(_0x1a760c,[_0x47778b,_0x33636c])=>{const _0x3032a5=_0x46411d;_0x47778b[_0x3032a5(0xca)](_0x3032a5(0x99),_0x33636c);});}[_0x569a29(0xaf)](){const _0x3add9e=_0x569a29,_0x4ad42c=this[_0x3add9e(0x8b)][_0x3add9e(0x7f)][_0x3add9e(0x98)](_0x3add9e(0xb7))||{},_0x36deff=this[_0x3add9e(0x8b)][_0x3add9e(0x7f)][_0x3add9e(0x98)](_0x3add9e(0x9c))||'';this[_0x3add9e(0x95)]=_0x136309(_0x131c5b[_0x3add9e(0xbc)],_0x3add9e(0xa7),{..._0x4ad42c,'pubkey':_0x36deff,'ctx-name':_0x3add9e(0x89)+this[_0x3add9e(0x9f)],'sourceList':'','imgOnly':_0x3add9e(0x81),'removeCopyright':_0x3add9e(0x81),'localeName':this[_0x3add9e(0x8b)][_0x3add9e(0x9a)][_0x3add9e(0x7e)],'externalSourcesEmbedCss':_0x3add9e(0xb5)}),this[_0x3add9e(0x95)][_0x3add9e(0x87)]=_0x2fb01e=>{const _0x2b5909=_0x3add9e;if(_0x2b5909(0x7b)==_0x2fb01e)return _0x2b5909(0xac);},_0x131c5b[_0x3add9e(0xbc)][_0x3add9e(0xc2)][_0x3add9e(0xa9)](this[_0x3add9e(0x95)]);}[_0x569a29(0xab)](){const _0x256a9c=_0x569a29;this[_0x256a9c(0xc6)]=_0x136309(_0x131c5b[_0x256a9c(0xbc)],_0x256a9c(0x86),{'ctx-name':_0x256a9c(0x89)+this[_0x256a9c(0x9f)]}),_0x131c5b[_0x256a9c(0xbc)][_0x256a9c(0xc2)][_0x256a9c(0xa9)](this[_0x256a9c(0xc6)]);}[_0x569a29(0x7c)](){const _0x16267a=_0x569a29,_0x3dbce3=this[_0x16267a(0x8b)][_0x16267a(0xcc)][_0x16267a(0x98)](_0x16267a(0x8e));_0x3dbce3&&this[_0x16267a(0x84)](_0x3dbce3,_0x16267a(0xc0),()=>{const _0x2397c9=_0x16267a,_0x764247=this[_0x2397c9(0x8b)][_0x2397c9(0x79)][_0x2397c9(0xbc)][_0x2397c9(0x77)][_0x2397c9(0x97)]();_0x764247&&_0x764247[_0x2397c9(0xc5)](_0x2397c9(0x99))&&this[_0x2397c9(0x8b)][_0x2397c9(0xa4)][_0x2397c9(0xb2)][_0x2397c9(0xc8)](_0x2397c9(0x80),()=>{const _0x14caf0=_0x2397c9;_0x262e3a(this[_0x14caf0(0x8b)],_0x764247);});});const _0x2291f2=this[_0x16267a(0x8b)][_0x16267a(0xcc)][_0x16267a(0x98)](_0x16267a(0xcb));_0x2291f2&&this[_0x16267a(0x84)](_0x2291f2,_0x16267a(0xc0),()=>{const _0x459b1c=_0x16267a,_0xb97552=this[_0x459b1c(0x8b)][_0x459b1c(0x79)][_0x459b1c(0xbc)][_0x459b1c(0x77)][_0x459b1c(0x97)]();_0xb97552&&_0xb97552[_0x459b1c(0xc5)](_0x459b1c(0x99))&&this[_0x459b1c(0x8b)][_0x459b1c(0xa4)][_0x459b1c(0xb2)][_0x459b1c(0xc8)](_0x459b1c(0x80),()=>{const _0x3af734=_0x459b1c;_0x262e3a(this[_0x3af734(0x8b)],_0xb97552);});});}}
|