@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251029.0 → 0.0.0-nightly-20251030.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 _0x49567f,Command as _0x4b44f4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x40d41f,IconGooglePhotos as _0x572bf7,IconGoogleDrive as _0x35b044,IconFacebook as _0x13cd5b,IconDropbox as _0x2e8729,IconUploadcareLink as _0x516b87,IconUploadcareImageUpload as _0x3f6613,IconError as _0x1f0d9e,IconUploadcareImageEdit as _0xb57633}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3529a8,MenuBarMenuListItemButtonView as _0x196e77,View as _0x3aa43a,FocusCycler as _0x3c3002,Dialog as _0x891a77,DialogViewPosition as _0x2748d0,SpinnerView as _0x268297,IconView as _0x3c5517,Notification as _0x12a52d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3bbf8e,DomEmitterMixin as _0x10c031,global as _0x434341,getAncestors as _0x3e75c6,ObservableMixin as _0x2edf27,uid as _0x295c6e,createElement as _0x416aad}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xbbff78}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x43177c,info as _0x188069}from'@uploadcare/upload-client';import*as _0x24ddcf from'@uploadcare/file-uploader';var i=function(_0x13f0f5){return _0x13f0f5['Local']='local',_0x13f0f5['URL']='url',_0x13f0f5['Dropbox']='dropbox',_0x13f0f5['GDrive']='gdrive',_0x13f0f5['Facebook']='facebook',_0x13f0f5['GPhotos']='gphotos',_0x13f0f5['OneDrive']='onedrive',_0x13f0f5;}({});function _(_0x5df4f8,_0x1da6ac,_0x7dd19c){const t=_0x5df4f8['t'],_0xd7fd73=_0x5df4f8['t'];switch(_0x1da6ac){case i['Local']:return{'text':_0xd7fd73('Insert'===_0x7dd19c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xd7fd73('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x7dd19c?_0xd7fd73('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xd7fd73('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x7dd19c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x7dd19c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x7dd19c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x7dd19c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x7dd19c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1da6ac;}}class e extends _0x49567f{['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 _0xa46d3f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x354cd7;for(const _0x4a34a2 in _0xa46d3f){const _0x5d9205=_0x4a34a2,_0x40d57f=_0xa46d3f[_0x5d9205];if('uploadcareLicenseKeyValid'==_0x40d57f||'uploadcareLicenseKeyInvalid'==_0x40d57f||'uploadcareLicenseKeyExpired'==_0x40d57f||'uploadcareLicenseKeyDomainLimit'==_0x40d57f||'uploadcareLicenseKeyNotAllowed'==_0x40d57f||'uploadcareLicenseKeyEvaluationLimit'==_0x40d57f||'uploadcareLicenseKeyTrialLimit'==_0x40d57f||'uploadcareLicenseKeyUsageLimit'==_0x40d57f){delete _0xa46d3f[_0x5d9205],_0x354cd7=_0x40d57f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x354cd7&&_0xa46d3f['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x354cd7&&_0xa46d3f['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x354cd7&&_0xa46d3f['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x354cd7&&_0xa46d3f['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x354cd7&&_0xa46d3f['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x354cd7&&_0xa46d3f['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x354cd7&&_0xa46d3f['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x30b024}=this,_0x33331e=_0x30b024['commands']['get']('uploadcare');if(!_0x33331e)return;const _0x27b41c=this['_normalizeConfigSourceList'](_0x30b024['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1af4cc,_0x6060a9)=>{const _0x4c3e61=this['_getIntegrationKey'](_0x6060a9['type']);return _0x1af4cc[_0x4c3e61]||(_0x1af4cc[_0x4c3e61]=[]),_0x1af4cc[_0x4c3e61]['push'](_0x6060a9),_0x1af4cc;},{});_0x30b024['plugins']['has']('ImageInsertUI')&&_0x30b024['commands']['get']('uploadcare')&&Object['entries'](_0x27b41c)['forEach'](([_0x67067a,_0x403986])=>{_0x30b024['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x67067a,'observable':()=>_0x33331e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x403986),'formViewCreator':()=>this['_createDropdownButtons'](_0x403986),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x403986),'override':'assetManager'!==_0x67067a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x639982){const {locale:_0x1e0d7b}=this['editor'];return _0x639982['map'](_0x3bba6f=>{const _0x3221ef=_(_0x1e0d7b,_0x3bba6f,'Insert');switch(_0x3bba6f){case i['Local']:return{'icon':_0x3f6613,'type':i['Local'],..._0x3221ef};case i['URL']:return{'icon':_0x516b87,'type':i['URL'],..._0x3221ef};case i['Dropbox']:return{'icon':_0x2e8729,'type':i['Dropbox'],..._0x3221ef};case i['Facebook']:return{'icon':_0x13cd5b,'type':i['Facebook'],..._0x3221ef};case i['GDrive']:return{'icon':_0x35b044,'type':i['GDrive'],..._0x3221ef};case i['GPhotos']:return{'icon':_0x572bf7,'type':i['GPhotos'],..._0x3221ef};case i['OneDrive']:return{'icon':_0x40d41f,'type':i['OneDrive'],..._0x3221ef};}});}['_getIntegrationKey'](_0x3ef755){switch(_0x3ef755){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x38de7b,_0x557523){const _0x19d6c5=this['editor'],_0xbe4d26=new _0x38de7b(_0x19d6c5['locale']),_0x332077=_0x19d6c5['commands']['get']('uploadcare');return _0xbe4d26['bind']('isEnabled')['to'](_0x332077),_0xbe4d26['on']('execute',()=>{_0x332077['execute'](_0x557523);}),_0xbe4d26;}['_createToolbarButton'](_0x300760){const {locale:_0x4be03d}=this['editor'],_0x354495=this['editor']['plugins']['get']('ImageInsertUI'),_0x9b0d24=_0x300760[0x0],_0x4d8e53=this['_createButton'](_0x3529a8,_0x9b0d24['type']);return _0x4d8e53['icon']=_0x9b0d24['icon'],_0x4d8e53['bind']('label')['to'](_0x354495,'isImageSelected',_0x59a806=>_(_0x4be03d,_0x9b0d24['type'],_0x59a806?'Replace':'Insert')['text']),_0x4d8e53['tooltip']=!0x0,_0x4d8e53;}['_createDropdownButtons'](_0x2267fa){const {locale:_0x57d880}=this['editor'],_0x11b39e=this['editor']['plugins']['get']('ImageInsertUI');return _0x2267fa['map'](_0x39c8b4=>{const _0x55faa7=this['_createButton'](_0x3529a8,_0x39c8b4['type']);return _0x55faa7['withText']=!0x0,_0x55faa7['icon']=_0x39c8b4['icon'],_0x55faa7['bind']('label')['to'](_0x11b39e,'isImageSelected',_0x5767dc=>_(_0x57d880,_0x39c8b4['type'],_0x5767dc?'Replace':'Insert')['text']),_0x55faa7;});}['_createMenuBarButtons'](_0x3bb13b){return _0x3bb13b['map'](_0x405c5b=>{const _0x27363b=this['_createButton'](_0x196e77,_0x405c5b['type']);return _0x27363b['icon']=_0x405c5b['icon'],_0x27363b['label']=_0x405c5b['shortText'],_0x27363b;});}}class F extends _0x3aa43a{['focusTracker'];['focusCycler'];constructor(_0x58040c){super(_0x58040c),this['focusTracker']=new _0x3bbf8e(),this['focusCycler']=new _0x3c3002({'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(_0x7b2bf0,_0x5e1df8){super(_0x7b2bf0),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-'+_0x5e1df8}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x59c086,_0x274023){const _0x5e939a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4f056c=>_0x4f056c<=_0x274023)['map'](_0x4561c0=>_0x59c086['replace'](/\/$/,'')+'/-/resize/'+_0x4561c0+'x/\x20'+_0x4561c0+'w');return{'imageFallbackUrl':_0x59c086,'imageSources':[{'srcset':_0x5e939a['join'](',\x20'),'sizes':'(max-width:\x20'+_0x274023+'px)\x20100vw,\x20'+_0x274023+'px','type':'image/webp'}]};}function S(_0x5e57f1,_0x296c7d,_0x301ae2){const _0x3e1369=_0x5e57f1['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3e1369?parseInt(_0x3e1369[0x1],0xa):_0x296c7d,'height':_0x3e1369?parseInt(_0x3e1369[0x2],0xa):_0x301ae2};}function p(_0x581e67,_0x2941ea){const _0x113c59=new(_0x10c031())(),_0x5cdcda=_0x581e67['plugins']['get']('ImageUtils'),_0x29795d=_0x581e67['editing']['mapper']['toViewElement'](_0x2941ea),_0x2f72e1=_0x5cdcda['findViewImgElement'](_0x29795d),_0x57fc7f=_0x581e67['editing']['view']['domConverter']['viewToDom'](_0x2f72e1),_0x56907f=_0x2941ea['getAttribute']('width'),_0x552cf8=_0x2941ea['getAttribute']('height'),_0x2cd2c1='image-processing';_0x581e67['editing']['view']['change'](_0x2fe8c5=>{_0x2fe8c5['addClass'](_0x2cd2c1,_0x29795d),_0x2fe8c5['setStyle']('aspect-ratio',_0x56907f+'/'+_0x552cf8,_0x2f72e1);}),_0x113c59['listenTo'](_0x57fc7f,'load',()=>{_0x113c59['stopListening'](_0x57fc7f,'load'),_0x581e67['editing']['view']['change'](_0x5e7b90=>{_0x5e7b90['removeClass'](_0x2cd2c1,_0x29795d),_0x5e7b90['removeStyle']('aspect-ratio',_0x2f72e1);});});}function G(_0x254eaf){if(Array['isArray'](_0x254eaf)){const _0x1e1a97=_0x254eaf['map'](G);return _0x44c779=>_0x1e1a97['some'](_0x448b91=>_0x448b91(_0x44c779));}if('origin'==_0x254eaf){const _0x27fc5d=_0x434341['window']['location']['origin'];return _0x1d6cba=>new URL(_0x1d6cba,_0x434341['document']['baseURI'])['origin']==_0x27fc5d;}return'function'==typeof _0x254eaf?_0x254eaf:_0x254eaf instanceof RegExp?_0x6ff823=>!(!_0x6ff823['match'](_0x254eaf)&&!_0x6ff823['replace'](/^https?:\/\//,'')['match'](_0x254eaf)):()=>!0x1;}function A(_0x2bdbbc,_0x3466eb){return _0x3e75c6(_0x2bdbbc['target'])['includes'](_0x3466eb);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x2edf27(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x9e9510,_0x23d78f,_0x3b2210){super(),this['_editor']=_0x9e9510,this['_editing']=_0x23d78f,this['_dialog']=_0x9e9510['plugins']['get'](_0x891a77),this['_api']=_0x23d78f['ctxElement']['getAPI'](),this['_type']=_0x3b2210,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:_0x535fe3,model:_0x29e659}=this['_editor'],_0x45107f=_0x29e659['document']['selection']['getSelectedElement'](),_0x5bd6b8=_0x45107f&&(_0x45107f['is']('element','imageBlock')||_0x45107f['is']('element','imageInline'));this['_formView']=new x(_0x535fe3,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3f6613,'title':_(_0x535fe3,this['_type'],_0x5bd6b8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2748d0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5e4621=>!A(_0x5e4621,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3f5907}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x56fb18=>{const _0x1779ef=_0x3f5907['length'];for(const _0x484572 of _0x3f5907){const _0x5b6286=_0x484572===_0x3f5907[_0x1779ef-0x1],{cdnUrl:_0x48a2c9,fileInfo:_0x12a0bf}=_0x484572;if(!_0x48a2c9||!_0x12a0bf)continue;const {width:_0xaab7bf,height:_0x12eb99}=_0x12a0bf['imageInfo'],_0x7fb3ce=S(_0x48a2c9,_0xaab7bf,_0x12eb99),_0x598a97=C(_0x48a2c9,_0x7fb3ce['width']),_0x56c1c0={'id':_0x12a0bf['uuid'],'type':'image','attributes':{'imageDimension':_0x7fb3ce,..._0x598a97}};this['_insertAsset'](_0x56c1c0,_0x5b6286,_0x56fb18);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4c41ff=>{'idle'===_0x4c41ff['detail']['status']&&!_0x4c41ff['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x43d552,_0x3d0ad3,_0x2cde06){const _0x2c8da5=this['_editor']['model']['document']['selection'],_0x2e2de0=_0x2c8da5['getSelectedElement'](),_0x27c3f5=!(!_0x2e2de0||!_0x2e2de0['is']('element','imageInline'));_0x2cde06['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x43d552,_0x27c3f5),_0x3d0ad3||_0x2cde06['setSelection'](_0x2c8da5['getLastPosition']());}['_insertImage'](_0x2fe061,_0xb19c68){const _0x6bb0ae=this['_editor'],{imageDimension:_0xe3b396,imageFallbackUrl:_0x352a8e,imageSources:_0x4fcfb8}=_0x2fe061['attributes'];_0x6bb0ae['execute']('insertImage',{'imageType':_0xb19c68?'imageInline':null,'source':{'uploadcareImageId':_0x2fe061['id'],'src':_0x352a8e,'sources':_0x4fcfb8,..._0xe3b396}});}}class w extends _0x4b44f4{['_editing'];['_controller']=null;static get['requires'](){return[_0x891a77,o];}constructor(_0x455245){super(_0x455245),this['_editing']=_0x455245['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4cbf02){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x4cbf02);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x301ef0,..._0x1d5670}){return _0x43177c(_0x301ef0,_0x1d5670);}static['getInfo'](_0x2a78f6,_0x57944c){return _0x188069(_0x2a78f6,_0x57944c);}}class f extends _0x49567f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xbbff78,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3db8b8=this['editor'];if(!!!_0x3db8b8['config']['get']('uploadcare'))return;_0x3db8b8['plugins']['get'](_0xbbff78)['createUploadAdapter']=_0x2da4ef=>new k(_0x2da4ef,_0x3db8b8),_0x3db8b8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4d3015,{imageElement:_0x36401c,data:_0x118ff5})=>{_0x3db8b8['model']['change'](_0x50acd5=>{_0x50acd5['setAttribute']('uploadcareImageId',_0x118ff5['uploadcareImageId'],_0x36401c);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x101a65,_0x265a82){this['loader']=_0x101a65,this['editor']=_0x265a82,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x27dfa9=await this['loader']['file'];return j['upload']({'file':_0x27dfa9,'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':_0x3ac673=>{_0x3ac673&&_0x3ac673['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3ac673['value']);}})['then'](async _0x33ffd4=>{const {imageFallbackUrl:_0x45ca73,imageSources:_0x56820a}=C(_0x33ffd4['cdnUrl'],_0x33ffd4['imageInfo']['width']);return{'uploadcareImageId':_0x33ffd4['uuid'],'default':_0x45ca73,'sources':_0x56820a};})['catch'](()=>{const _0x343306=t('Cannot\x20upload\x20file:')+('\x20'+_0x27dfa9['name']+'.');return Promise['reject'](_0x343306);});}['abort'](){this['controller']['abort']();}}class o extends _0x49567f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x891a77];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x592a06){super(_0x592a06),this['ucContextId']=_0x295c6e();}['init'](){const _0x12c28e=this['editor'];_0x12c28e['commands']['add']('uploadcare',new w(_0x12c28e));}['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 _0x383d0e=_0x434341['document']['querySelector']('input[uploadcare-file-input]');_0x383d0e&&_0x383d0e['remove']();}),async function(_0x35f5d2){const _0x20da8e=_0x5400c4([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]),_0x591059=0x535f8c3a,_0xf55a59=0x5358fbaa^_0x591059,_0x345a74=window[_0x5400c4([0x44,0x61,0x74,0x65])][_0x5400c4([0x6e,0x6f,0x77])](),_0x56fcab=_0x35f5d2[_0x5400c4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x182017=new window[(_0x5400c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xba693e=>{_0x56fcab[_0x5400c4([0x6f,0x6e,0x63,0x65])](_0x5400c4([0x72,0x65,0x61,0x64,0x79]),_0xba693e);}),_0x1403f2={[_0x5400c4([0x6b,0x74,0x79])]:_0x5400c4([0x45,0x43]),[_0x5400c4([0x75,0x73,0x65])]:_0x5400c4([0x73,0x69,0x67]),[_0x5400c4([0x63,0x72,0x76])]:_0x5400c4([0x50,0x2d,0x32,0x35,0x36]),[_0x5400c4([0x78])]:_0x5400c4([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]),[_0x5400c4([0x79])]:_0x5400c4([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]),[_0x5400c4([0x61,0x6c,0x67])]:_0x5400c4([0x45,0x53,0x32,0x35,0x36])},_0xe6d0df=_0x56fcab[_0x5400c4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5400c4([0x67,0x65,0x74])](_0x5400c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2bbb66(){let _0x59bac8,_0x53e68d=null,_0x1a6eb5=null;try{if(_0xe6d0df==_0x5400c4([0x47,0x50,0x4c]))return _0x5400c4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x59bac8=_0x2d0b09(),!_0x59bac8)return _0x5400c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x59bac8[_0x5400c4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1a6eb5=_0x37bcb3(_0x59bac8[_0x5400c4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x59bac8[_0x5400c4([0x6a,0x74,0x69])])),await _0x4f6fe6()?_0x1334aa()?_0x54b5f2()?_0x5400c4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd23c01()?(_0x59bac8[_0x5400c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5400c4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53e68d=_0x8a3856(_0x5400c4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x59bac8[_0x5400c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5400c4([0x74,0x72,0x69,0x61,0x6c])&&(_0x53e68d=_0x8a3856(_0x5400c4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x9d1cff()):_0x5400c4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5400c4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5400c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5400c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x54b5f2(){const _0x2f3fc2=[_0x5400c4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5400c4([0x74,0x72,0x69,0x61,0x6c])][_0x5400c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59bac8[_0x5400c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x345a74/0x3e8:0xe10*_0xf55a59;return _0x59bac8[_0x5400c4([0x65,0x78,0x70])]<_0x2f3fc2;}function _0x1334aa(){const _0x3345ee=_0x59bac8[_0x5400c4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3345ee&&(!!_0x3345ee[_0x5400c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5400c4([0x2a]))||!!_0x3345ee[_0x5400c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5400c4([0x55,0x50,0x4c,0x43])));}function _0xd23c01(){const _0xed676e=_0x59bac8[_0x5400c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xed676e||0x0==_0xed676e[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a385d}=new URL(window[_0x5400c4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xed676e[_0x5400c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a385d))return!0x0;const _0x2023e5=_0x1a385d[_0x5400c4([0x73,0x70,0x6c,0x69,0x74])](_0x5400c4([0x2e]));return _0xed676e[_0x5400c4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x517199=>_0x517199[_0x5400c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5400c4([0x2a])))[_0x5400c4([0x6d,0x61,0x70])](_0x24cc6a=>_0x24cc6a[_0x5400c4([0x73,0x70,0x6c,0x69,0x74])](_0x5400c4([0x2e])))[_0x5400c4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10fae3=>_0x10fae3[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2023e5[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5400c4([0x6d,0x61,0x70])](_0x1a8e3b=>Array(_0x2023e5[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1a8e3b[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5400c4([0x66,0x69,0x6c,0x6c])](_0x1a8e3b[0x0]===_0x5400c4([0x2a])?_0x5400c4([0x2a]):'')[_0x5400c4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1a8e3b))[_0x5400c4([0x73,0x6f,0x6d,0x65])](_0x4d6374=>_0x2023e5[_0x5400c4([0x65,0x76,0x65,0x72,0x79])]((_0x5ec553,_0x1a9576)=>_0x4d6374[_0x1a9576]===_0x5ec553||_0x4d6374[_0x1a9576]===_0x5400c4([0x2a])));}function _0x9d1cff(){return _0x53e68d&&_0x1a6eb5?new window[(_0x5400c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4bd6e3,_0x5eb18a)=>{_0x53e68d[_0x5400c4([0x74,0x68,0x65,0x6e])](_0x4bd6e3,_0x5eb18a),_0x1a6eb5[_0x5400c4([0x74,0x68,0x65,0x6e])](_0x4b9075=>{_0x4b9075!=_0x5400c4([0x56,0x61,0x6c,0x69,0x64])&&_0x4bd6e3(_0x4b9075);},_0x5eb18a);}):_0x53e68d||_0x1a6eb5||_0x5400c4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x37bcb3(_0x46a93d,_0x446904){return new window[(_0x5400c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc8b064=>{if(_0x1b4221())return _0xc8b064(_0x5400c4([0x56,0x61,0x6c,0x69,0x64]));_0x44d134(),_0x56fcab[_0x5400c4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5400c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3751e4=!0x1;const _0x335a74=_0x295c6e();function _0xc6c550(_0x183d33){return!!_0x183d33&&(typeof _0x183d33===_0x5400c4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x183d33===_0x5400c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x183d33[_0x5400c4([0x74,0x68,0x65,0x6e])]===_0x5400c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x183d33[_0x5400c4([0x63,0x61,0x74,0x63,0x68])]===_0x5400c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xac8ddb(_0x5650b8){_0x42463d(_0x5650b8)[_0x5400c4([0x74,0x68,0x65,0x6e])](_0x532d3d=>{if(!_0x532d3d||_0x532d3d[_0x5400c4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5400c4([0x6f,0x6b]))return _0x5400c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x39332c(_0x2a7075(_0x335a74+_0x446904))!=_0x532d3d[_0x5400c4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5400c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5400c4([0x56,0x61,0x6c,0x69,0x64]);})[_0x5400c4([0x74,0x68,0x65,0x6e])](_0x28f159=>(_0x1d6ea4(),_0x28f159),()=>{const _0x2f87da=_0x5e4737();return null==_0x2f87da?(_0x1d6ea4(),_0x5400c4([0x56,0x61,0x6c,0x69,0x64])):_0x5400c4(_0x345a74-_0x2f87da>(0x7753083a^_0x591059)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5400c4([0x74,0x68,0x65,0x6e])](_0xc8b064)[_0x5400c4([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc8b064(_0x5400c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x22d8d5=0x536962ba^_0x591059;function _0x1d6ea4(){const _0x3a4197=_0x5400c4([0x6c,0x6c,0x63,0x74,0x2d])+_0x39332c(_0x2a7075(_0x46a93d)),_0x3538f0=_0x2b0e1c(_0x39332c(window[_0x5400c4([0x4d,0x61,0x74,0x68])][_0x5400c4([0x63,0x65,0x69,0x6c])](_0x345a74/_0x22d8d5)));window[_0x5400c4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5400c4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a4197,_0x3538f0);}function _0x5e4737(){const _0x598c6f=_0x5400c4([0x6c,0x6c,0x63,0x74,0x2d])+_0x39332c(_0x2a7075(_0x46a93d)),_0x1c9582=window[_0x5400c4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5400c4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x598c6f);return _0x1c9582?window[_0x5400c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b0e1c(_0x1c9582),0x10)*_0x22d8d5:null;}function _0x42463d(_0x2d6bcd){return new window[(_0x5400c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9dbd11,_0x464309)=>{_0x2d6bcd[_0x5400c4([0x74,0x68,0x65,0x6e])](_0x9dbd11,_0x464309),window[_0x5400c4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x464309,0x535e58fa^_0x591059);});}}_0x56fcab[_0x5400c4([0x6f,0x6e])](_0x5400c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x17ca4b,_0xfe57bf)=>{if(_0xfe57bf[0x0]!=_0x46a93d)return _0xc8b064(_0x5400c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xfe57bf[0x1]={..._0xfe57bf[0x1],[_0x5400c4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x335a74};},{[_0x5400c4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5400c4([0x68,0x69,0x67,0x68])}),_0x56fcab[_0x5400c4([0x6f,0x6e])](_0x5400c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x29bbc0=>{_0xc6c550(_0x29bbc0[_0x5400c4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3751e4=!0x0,_0xac8ddb(_0x29bbc0[_0x5400c4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5400c4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5400c4([0x6c,0x6f,0x77])}),_0x182017[_0x5400c4([0x74,0x68,0x65,0x6e])](()=>{_0x3751e4||_0xc8b064(_0x5400c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b4221(){return _0x56fcab[_0x5400c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5400c4([0x76,0x69,0x65,0x77])][_0x5400c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5400c4([0x61,0x75,0x74,0x6f]);}function _0x44d134(){_0x56fcab[_0x5400c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5400c4([0x76,0x69,0x65,0x77])][_0x5400c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5400c4([0x61,0x75,0x74,0x6f]);}}function _0x8a3856(_0xbb448d){const _0x208469=[new window[(_0x5400c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ff234=>setTimeout(_0x1ff234,0x5356b2f6^_0x591059)),_0x182017[_0x5400c4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5400c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x363010=>{let _0x199ef7=0x0;_0x56fcab[_0x5400c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5400c4([0x6f,0x6e])](_0x5400c4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3f06e9,_0x55454f)=>{_0x55454f[0x0][_0x5400c4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x199ef7++,_0x199ef7==(0x535f8dc2^_0x591059)&&(_0x363010(),_0x3f06e9[_0x5400c4([0x6f,0x66,0x66])]());});}))];return window[_0x5400c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5400c4([0x72,0x61,0x63,0x65])](_0x208469)[_0x5400c4([0x74,0x68,0x65,0x6e])](()=>_0xbb448d);}async function _0x2c5cef(){await _0x182017,_0x56fcab[_0x5400c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5400c4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x130ee1,_0x56fcab[_0x5400c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5400c4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x130ee1,_0x56fcab[_0x5400c4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5400c4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x40f9d5(_0x212afe){const _0x3aaa37=_0x23ecb1();_0x56fcab[_0x3aaa37]=_0x5400c4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x212afe,_0x212afe!=_0x5400c4([0x56,0x61,0x6c,0x69,0x64])&&_0x2c5cef();}function _0x23ecb1(){const _0x5a69d9=window[_0x5400c4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5400c4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5400c4([0x6e,0x6f,0x77])]())[_0x5400c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5400c4([0x2e]),'');let _0x5ddc18=_0x5400c4([0x68]);for(let _0x36e50a=0x0;_0x36e50a<_0x5a69d9[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36e50a+=0x2){let _0xa55c0=window[_0x5400c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a69d9[_0x5400c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x36e50a,_0x36e50a+0x2));_0xa55c0>=_0x20da8e[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xa55c0-=_0x20da8e[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5ddc18+=_0x20da8e[_0xa55c0];}return _0x5ddc18;}function _0x2d0b09(){const _0x243b98=_0xe6d0df[_0x5400c4([0x73,0x70,0x6c,0x69,0x74])](_0x5400c4([0x2e]));if(0x3!=_0x243b98[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa27776(_0x243b98[0x1]);function _0xa27776(_0xd2aeb9){const _0x2eacfe=_0x23c785(_0xd2aeb9);return _0x2eacfe&&_0x434fc8()?_0x2eacfe:null;function _0x434fc8(){const _0x413cd5=_0x2eacfe[_0x5400c4([0x6a,0x74,0x69])],_0x3141b2=window[_0x5400c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x413cd5[_0x5400c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x413cd5[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4875c1={..._0x2eacfe,[_0x5400c4([0x6a,0x74,0x69])]:_0x413cd5[_0x5400c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x413cd5[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4875c1[_0x5400c4([0x76,0x63])],_0x2a7075(_0x4875c1)==_0x3141b2;}}}async function _0x4f6fe6(){let _0x3c4a9a=!0x0;try{const _0x544b23=_0xe6d0df[_0x5400c4([0x73,0x70,0x6c,0x69,0x74])](_0x5400c4([0x2e])),[_0x4c67c2,_0x35c027,_0x59e935]=_0x544b23;return _0x30c604(_0x4c67c2),await _0x4e3bcf(_0x4c67c2,_0x35c027,_0x59e935),_0x3c4a9a;}catch{return!0x1;}function _0x30c604(_0xcd5c6d){const _0x1ace0c=_0x23c785(_0xcd5c6d);_0x1ace0c&&_0x1ace0c[_0x5400c4([0x61,0x6c,0x67])]==_0x5400c4([0x45,0x53,0x32,0x35,0x36])||(_0x3c4a9a=!0x1);}async function _0x4e3bcf(_0x2f8268,_0x5706df,_0x3185e0){const _0x1ac090=window[_0x5400c4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5400c4([0x66,0x72,0x6f,0x6d])](_0xa8eb24(_0x3185e0),_0x597c0f=>_0x597c0f[_0x5400c4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4baf69=new window[(_0x5400c4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5400c4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2f8268+_0x5400c4([0x2e])+_0x5706df),_0x30b72d=window[_0x5400c4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5400c4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30b72d)return;const _0x344e8a=await _0x30b72d[_0x5400c4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5400c4([0x6a,0x77,0x6b]),_0x1403f2,{[_0x5400c4([0x6e,0x61,0x6d,0x65])]:_0x5400c4([0x45,0x43,0x44,0x53,0x41]),[_0x5400c4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5400c4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5400c4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30b72d[_0x5400c4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5400c4([0x6e,0x61,0x6d,0x65])]:_0x5400c4([0x45,0x43,0x44,0x53,0x41]),[_0x5400c4([0x68,0x61,0x73,0x68])]:{[_0x5400c4([0x6e,0x61,0x6d,0x65])]:_0x5400c4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x344e8a,_0x1ac090,_0x4baf69)||(_0x3c4a9a=!0x1);}}function _0x23c785(_0x5504d8){return _0x5504d8[_0x5400c4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5400c4([0x65,0x79]))?JSON[_0x5400c4([0x70,0x61,0x72,0x73,0x65])](_0xa8eb24(_0x5504d8)):null;}function _0xa8eb24(_0x19eee0){return window[_0x5400c4([0x61,0x74,0x6f,0x62])](_0x19eee0[_0x5400c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5400c4([0x2b]))[_0x5400c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5400c4([0x2f])));}function _0x2a7075(_0x55c3d4){let _0x2d60c2=0x1505;function _0x3adab8(_0x5e6e5c){for(let _0x2c959f=0x0;_0x2c959f<_0x5e6e5c[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c959f++){const _0x24721a=_0x5e6e5c[_0x5400c4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c959f);_0x2d60c2=(_0x2d60c2<<0x5)+_0x2d60c2+_0x24721a,_0x2d60c2&=_0x2d60c2;}}function _0x292dfc(_0x5f3b2f){Array[_0x5400c4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5f3b2f)?_0x5f3b2f[_0x5400c4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x292dfc):_0x5f3b2f&&typeof _0x5f3b2f==_0x5400c4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5400c4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5f3b2f)[_0x5400c4([0x73,0x6f,0x72,0x74])]()[_0x5400c4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xed6a3e,_0x38f3c6])=>{_0x3adab8(_0xed6a3e),_0x292dfc(_0x38f3c6);}):_0x3adab8(window[_0x5400c4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5f3b2f));}return _0x292dfc(_0x55c3d4),_0x2d60c2>>>0x0;}function _0x39332c(_0x1cf6af){return _0x1cf6af[_0x5400c4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5400c4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5400c4([0x30]));}function _0x2b0e1c(_0x2a1446){return _0x2a1446[_0x5400c4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5400c4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5400c4([0x6a,0x6f,0x69,0x6e])]('');}function _0x130ee1(){}function _0x5400c4(_0x4f23c1){return _0x4f23c1['map'](_0x4a3430=>String['fromCharCode'](_0x4a3430))['join']('');}_0x40f9d5(await _0x2bbb66());}(this);}['_initSchema'](){const _0x5ca578=this['editor']['model']['schema'];_0x5ca578['isRegistered']('imageBlock')&&_0x5ca578['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5ca578['isRegistered']('imageInline')&&_0x5ca578['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x42f409=this['editor'];_0x42f409['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x42f409['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1d5e25=>_0x1d5e25['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x15bf69=_0x42f409['commands']['get']('replaceImageSource');_0x15bf69&&this['listenTo'](_0x15bf69,'cleanupImage',(_0x29572c,[_0x453a00,_0x26a2c2])=>{_0x453a00['removeAttribute']('uploadcareImageId',_0x26a2c2);});}['_initConfig'](){const _0x2899b4=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1d4ee6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x416aad(_0x434341['document'],'uc-config',{..._0x2899b4,'pubkey':_0x1d4ee6,'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']=_0xd7cee0=>{if('closeMax'==_0xd7cee0)return'#uc-icon-arrow-down';},_0x434341['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x416aad(_0x434341['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x434341['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1deae4=this['editor']['commands']['get']('insertImage');_0x1deae4&&this['listenTo'](_0x1deae4,'execute',()=>{const _0x355b89=this['editor']['model']['document']['selection']['getSelectedElement']();_0x355b89&&_0x355b89['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x355b89);});});const _0x3eebe4=this['editor']['commands']['get']('uploadcareImageReplace');_0x3eebe4&&this['listenTo'](_0x3eebe4,'execute',()=>{const _0x151d66=this['editor']['model']['document']['selection']['getSelectedElement']();_0x151d66&&_0x151d66['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x151d66);});});}}class tt extends _0x49567f{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x83fcaf){super(_0x83fcaf),_0x83fcaf['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x24ddcf['defineComponents'](_0x24ddcf),this['_defineLocale']();}['_defineLocale'](){const _0x31af17=this['editor']['config']['get']('uploadcare.locale'),_0x50699b=this['editor']['locale']['contentLanguage'];_0x31af17&&_0x24ddcf['defineLocale'](_0x50699b,_0x31af17);}}class ii extends _0x3aa43a{constructor(_0x550ad4){super(_0x550ad4);const t=_0x550ad4['t'],_0x2a71b7=this['bindTemplate'],_0x3abd89=new _0x268297();_0x3abd89['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':[_0x3abd89,{'text':_0x2a71b7['to']('imageUploadProgress',_0x191ed6=>t('Loading\x20image...')+'\x20('+(_0x191ed6||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 _0x3aa43a{constructor(_0x2fe927){super(_0x2fe927);const t=_0x2fe927['t'];this['set']('errorType',null);const _0x31b5a2=new _0x3529a8(_0x2fe927);_0x31b5a2['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x31b5a2['withText']=!0x0,_0x31b5a2['class']='ck-button-action',_0x31b5a2['on']('execute',()=>{this['fire']('retry');}),_0x31b5a2['bind']('isVisible')['to'](this,'errorType',_0x5c3ae0=>'NotFound'!==_0x5c3ae0);const _0x431ba2=new _0x3c5517();_0x431ba2['content']=_0x1f0d9e,_0x431ba2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5838b6=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':[_0x431ba2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5838b6['to']('errorType',_0xf34f00=>t('NotFound'!==_0xf34f00?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x31b5a2]},{'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 _0x3aa43a{constructor(_0x2a3a57,_0x56235d){super(_0x2a3a57);const _0x354119=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x56235d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x354119['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1f8cb5,_0x4bc7fc,_0x550b5d){super(_0x1f8cb5),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1f8cb5),this['_errorView']=new ti(_0x1f8cb5),this['_editingView']=new ei(_0x1f8cb5,_0x550b5d),this['_focusableView']=new _0x3aa43a(_0x1f8cb5),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4bc7fc),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'],_0x1dd558=>{this['_addUploadcareImageEditorListeners'](_0x1dd558);});}),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'](_0x21b8d6,_0x2aaa34){const _0x184b6b='uc-cloud-image-editor',_0x433eca=_0x21b8d6['querySelector'](_0x184b6b);if(_0x433eca)return _0x2aaa34(_0x433eca);const _0x1c11f8=new MutationObserver(_0x4449ee=>{const _0x4f5ce7=_0x4449ee['filter'](_0xf60f6e=>_0xf60f6e['target']===_0x21b8d6&&_0xf60f6e['addedNodes']['length']>0x0&&_0xf60f6e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x184b6b);_0x4f5ce7['length']&&(_0x1c11f8['disconnect'](),_0x2aaa34(_0x4f5ce7[0x0]['addedNodes'][0x0]));});_0x1c11f8['observe'](_0x21b8d6,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xf5a754){_0xf5a754['addEventListener']('apply',_0x2577b9=>{this['fire']('apply',{'imageSrc':_0x2577b9['detail']['cdnUrl']});}),_0xf5a754['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2edf27(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x561c93,_0x19c6bf,_0x5da97e){super(),this['_editor']=_0x561c93,this['_dialog']=_0x19c6bf,this['_imageElement']=_0x5da97e,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 _0xd95b4b=this['_imageElement'],_0x4876f3=_0xd95b4b['getAttribute']('uploadcareImageId'),_0x566990=_0xd95b4b['getAttribute']('src');if(_0x4876f3)await this['_loadImageInfo'](_0x4876f3,_0x566990);else{if(this['_imageCache']['has'](_0x566990)){const _0x1a0986=this['_imageCache']['get'](_0x566990);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1a0986['url'],this['imageDimension']=_0x1a0986['dimension'],this['imageId']=_0x1a0986['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2ec2d0}=this['_editor'],t=_0x2ec2d0['t'],_0x2bda72=new X(_0x2ec2d0,this['imageStatus'],this['_attributes']);_0x2bda72['bind']('status')['to'](this,'imageStatus'),_0x2bda72['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2bda72['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2bda72['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2bda72,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xb57633,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2bda72,'position':_0x2748d0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2bda72['focus']();},'onHide':()=>{_0x2bda72['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x592cdb=>!A(_0x592cdb,_0x2bda72['element'])}});}['_loadImageInfo'](_0x4ead9f,_0x543584){return j['getInfo'](_0x4ead9f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x9fb898=>{const {width:_0x1e19ec,height:_0xd8a5b1}=_0x9fb898['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x543584,this['imageDimension']={'width':_0x1e19ec,'height':_0xd8a5b1},this['imageId']=_0x4ead9f;})['catch'](_0x2230b4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2230b4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xd2ec93,_0xc7d554){return this['_getImageAsFile'](_0xd2ec93)['then'](_0x23943e=>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':_0xc7d554['signal'],'file':_0x23943e,'onProgress':_0x527737=>{_0x527737&&_0x527737['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x527737['value']));}}))['then'](_0x50cf06=>{const {width:_0x1c2176,height:_0x223487}=_0x50cf06['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50cf06['cdnUrl'],this['imageDimension']={'width':_0x1c2176,'height':_0x223487},this['imageId']=_0x50cf06['uuid'],this['imageUploadProgress']=null;const _0x1d10b3=_0xd2ec93['getAttribute']('src');this['_imageCache']['set'](_0x1d10b3,{'id':_0x50cf06['uuid'],'url':_0x50cf06['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5da157=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5da157['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x48e1ef,_0x17b3f1){_0x48e1ef['on']('apply',(_0xba78fa,_0x3091f1)=>{this['_replaceImage'](_0x17b3f1,_0x3091f1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x48e1ef['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x48e1ef['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3b0c8d,_0x10b1d9,_0xadebcc){const _0x1fddc7=this['_editor'],{width:_0x568d63,height:_0x126021}=S(_0x10b1d9,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x518fed,imageSources:_0xd85f8e}=C(_0x10b1d9,_0x568d63);_0x1fddc7['model']['change'](_0x397e85=>{if('$graveyard'===_0x3b0c8d['root']['rootName']){_0x1fddc7['execute']('insertImage',{'imageType':_0x3b0c8d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3b0c8d['getAttributes']()),'uploadcareImageId':_0xadebcc,'src':_0x518fed,'sources':_0xd85f8e,'width':_0x568d63,'height':_0x126021}});const _0x5899a8=_0x3b0c8d['getChildren']();_0x3b0c8d=_0x1fddc7['model']['document']['selection']['getSelectedElement']();for(const _0x347dac of _0x5899a8)_0x397e85['append'](_0x397e85['cloneElement'](_0x347dac),_0x3b0c8d);}else _0x397e85['setSelection'](_0x3b0c8d,'on'),_0x1fddc7['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3b0c8d['getAttributes']()),'uploadcareImageId':_0xadebcc,'src':_0x518fed,'sources':_0xd85f8e,'width':_0x568d63,'height':_0x126021},_0x3b0c8d);_0x397e85['setSelection'](_0x3b0c8d,'on');});}async['_getImageAsFile'](_0x2ad341){const _0x500709=_0x434341['window'],_0x4037dc=_0x434341['document']['location']['href'],_0x5067bb=new _0x500709['URL'](_0x2ad341['getAttribute']('src'),_0x4037dc);if('data:'===_0x5067bb['protocol']){const _0x413aa5=_0x5067bb['href']['split'](','),_0x4b3d98=_0x413aa5[0x0]['match'](/:(.*?);/)[0x1],_0x309c23=_0x4b3d98['split']('/')[0x1],_0x55837b=_0x500709['atob'](_0x413aa5[_0x413aa5['length']-0x1]);let _0x5babfe=_0x55837b['length'];const _0x59f212=new _0x500709['Uint8Array'](_0x5babfe);for(;_0x5babfe--;)_0x59f212[_0x5babfe]=_0x55837b['charCodeAt'](_0x5babfe);return new _0x500709['File']([_0x59f212],'image.'+_0x309c23,{'type':_0x4b3d98});}const _0x4f26a6=_0x5067bb['href']['split']('/'),_0x21e926=_0x4f26a6[_0x4f26a6['length']-0x1],_0x283d48=_0x21e926['split']('.')[0x1];return _0x500709['fetch'](_0x5067bb['href'])['then'](_0x1f5cf2=>_0x1f5cf2['clone']()['blob']())['then'](_0x102dc8=>new _0x500709['File']([_0x102dc8],_0x21e926,{'type':'image/'+_0x283d48}));}}class O extends _0x4b44f4{['imageEditController'];static get['requires'](){return[_0x891a77];}['_isEditable'];constructor(_0x1bd7fb){super(_0x1bd7fb),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x102563){const _0x48c415=G(_0x102563);return _0x413943=>!(!_0x413943||!_0x413943['is']('element','imageBlock')&&!_0x413943['is']('element','imageInline'))&&(!!_0x413943['hasAttribute']('uploadcareImageId')||!!_0x413943['hasAttribute']('src')&&_0x48c415(_0x413943['getAttribute']('src')));}(_0x1bd7fb['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x496acf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x496acf);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x220cb1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x220cb1&&(_0x220cb1['is']('element','imageBlock')||_0x220cb1['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x891a77),_0x220cb1),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4b44f4{['refresh'](){const _0x45672b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x45672b&&(_0x45672b['is']('element','imageBlock')||_0x45672b['is']('element','imageInline')));}['execute'](_0x3e87d4){const _0xc06ba1=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xed2b37=>{_0xed2b37['setAttributes'](_0x3e87d4,_0xc06ba1),_0xed2b37['removeAttribute']('srcset',_0xc06ba1),_0xed2b37['removeAttribute']('sizes',_0xc06ba1);});}}class m extends _0x49567f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x12a52d,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x15d45c}=this;_0x15d45c['commands']['add']('uploadcareImageEdit',new O(_0x15d45c)),_0x15d45c['commands']['add']('uploadcareImageReplace',new R(_0x15d45c));}}class g extends _0x49567f{['_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 _0x3789ee=this['editor'];_0x3789ee['ui']['componentFactory']['add']('uploadcareImageEdit',_0x379116=>{const _0xe75fae=_0x3789ee['commands']['get']('uploadcareImageEdit'),_0xeae4f8=new _0x3529a8(_0x379116),t=_0x379116['t'];return _0xeae4f8['set']({'icon':_0xb57633,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xeae4f8['bind']('isEnabled')['to'](_0xe75fae),_0xeae4f8['bind']('isOn')['to'](_0xe75fae,'isActive'),this['listenTo'](_0xeae4f8,'execute',()=>{_0x3789ee['execute']('uploadcareImageEdit'),_0x3789ee['editing']['view']['focus']();}),_0xeae4f8;}),this['_initConfig']();}['_initConfig'](){const _0x26d305=_0x416aad(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x26d305),this['listenTo'](this['editor'],'destroy',()=>{_0x26d305['remove']();});}}class et extends _0x49567f{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 _0x3c1487,Command as _0xed420d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2d9d58,IconGooglePhotos as _0x22e1c2,IconGoogleDrive as _0x51d529,IconFacebook as _0x467f0e,IconDropbox as _0x5352fa,IconUploadcareLink as _0x43bdf7,IconUploadcareImageUpload as _0x34a163,IconError as _0x20b2f1,IconUploadcareImageEdit as _0x107ac3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xd0d516,MenuBarMenuListItemButtonView as _0x57282b,View as _0x1de0c3,FocusCycler as _0xf5f5f9,Dialog as _0x162ab3,DialogViewPosition as _0x2697c2,SpinnerView as _0x28f04f,IconView as _0x4766ec,Notification as _0x180c24}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xc38981,DomEmitterMixin as _0x139be4,global as _0x5e8dae,getAncestors as _0x2b3f7c,ObservableMixin as _0x254191,uid as _0x10e13,createElement as _0x1ae2c6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x33f607}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x194d46,info as _0xecd410}from'@uploadcare/upload-client';import*as _0x2da02d from'@uploadcare/file-uploader';var i=function(_0x4f2497){return _0x4f2497['Local']='local',_0x4f2497['URL']='url',_0x4f2497['Dropbox']='dropbox',_0x4f2497['GDrive']='gdrive',_0x4f2497['Facebook']='facebook',_0x4f2497['GPhotos']='gphotos',_0x4f2497['OneDrive']='onedrive',_0x4f2497;}({});function _(_0x51782d,_0x2da2a8,_0x221ccd){const t=_0x51782d['t'],_0x49677b=_0x51782d['t'];switch(_0x2da2a8){case i['Local']:return{'text':_0x49677b('Insert'===_0x221ccd?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x49677b('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x221ccd?_0x49677b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x49677b('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x221ccd?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x221ccd?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x221ccd?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x221ccd?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x221ccd?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2da2a8;}}class e extends _0x3c1487{['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 _0x14747d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a6721;for(const _0x37e50c in _0x14747d){const _0x4b0f88=_0x37e50c,_0x5dcb21=_0x14747d[_0x4b0f88];if('uploadcareLicenseKeyValid'==_0x5dcb21||'uploadcareLicenseKeyInvalid'==_0x5dcb21||'uploadcareLicenseKeyExpired'==_0x5dcb21||'uploadcareLicenseKeyDomainLimit'==_0x5dcb21||'uploadcareLicenseKeyNotAllowed'==_0x5dcb21||'uploadcareLicenseKeyEvaluationLimit'==_0x5dcb21||'uploadcareLicenseKeyTrialLimit'==_0x5dcb21||'uploadcareLicenseKeyUsageLimit'==_0x5dcb21){delete _0x14747d[_0x4b0f88],_0x4a6721=_0x5dcb21,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4a6721&&_0x14747d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4a6721&&_0x14747d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4a6721&&_0x14747d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4a6721&&_0x14747d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4a6721&&_0x14747d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4a6721&&_0x14747d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4a6721&&_0x14747d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3c5934}=this,_0x554f31=_0x3c5934['commands']['get']('uploadcare');if(!_0x554f31)return;const _0x3f9e6c=this['_normalizeConfigSourceList'](_0x3c5934['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x49914e,_0x590b2e)=>{const _0x55eb7f=this['_getIntegrationKey'](_0x590b2e['type']);return _0x49914e[_0x55eb7f]||(_0x49914e[_0x55eb7f]=[]),_0x49914e[_0x55eb7f]['push'](_0x590b2e),_0x49914e;},{});_0x3c5934['plugins']['has']('ImageInsertUI')&&_0x3c5934['commands']['get']('uploadcare')&&Object['entries'](_0x3f9e6c)['forEach'](([_0x3fe809,_0x6b9f2b])=>{_0x3c5934['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3fe809,'observable':()=>_0x554f31,'buttonViewCreator':()=>this['_createToolbarButton'](_0x6b9f2b),'formViewCreator':()=>this['_createDropdownButtons'](_0x6b9f2b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x6b9f2b),'override':'assetManager'!==_0x3fe809});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x572edd){const {locale:_0x58cb15}=this['editor'];return _0x572edd['map'](_0x5f01c4=>{const _0x39731c=_(_0x58cb15,_0x5f01c4,'Insert');switch(_0x5f01c4){case i['Local']:return{'icon':_0x34a163,'type':i['Local'],..._0x39731c};case i['URL']:return{'icon':_0x43bdf7,'type':i['URL'],..._0x39731c};case i['Dropbox']:return{'icon':_0x5352fa,'type':i['Dropbox'],..._0x39731c};case i['Facebook']:return{'icon':_0x467f0e,'type':i['Facebook'],..._0x39731c};case i['GDrive']:return{'icon':_0x51d529,'type':i['GDrive'],..._0x39731c};case i['GPhotos']:return{'icon':_0x22e1c2,'type':i['GPhotos'],..._0x39731c};case i['OneDrive']:return{'icon':_0x2d9d58,'type':i['OneDrive'],..._0x39731c};}});}['_getIntegrationKey'](_0x236807){switch(_0x236807){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x435e82,_0x50bf3f){const _0x4f7145=this['editor'],_0x343d85=new _0x435e82(_0x4f7145['locale']),_0x14b6b6=_0x4f7145['commands']['get']('uploadcare');return _0x343d85['bind']('isEnabled')['to'](_0x14b6b6),_0x343d85['on']('execute',()=>{_0x14b6b6['execute'](_0x50bf3f);}),_0x343d85;}['_createToolbarButton'](_0x493cb9){const {locale:_0x159463}=this['editor'],_0x2a8d6b=this['editor']['plugins']['get']('ImageInsertUI'),_0x3f2739=_0x493cb9[0x0],_0x5e7a00=this['_createButton'](_0xd0d516,_0x3f2739['type']);return _0x5e7a00['icon']=_0x3f2739['icon'],_0x5e7a00['bind']('label')['to'](_0x2a8d6b,'isImageSelected',_0x2381e6=>_(_0x159463,_0x3f2739['type'],_0x2381e6?'Replace':'Insert')['text']),_0x5e7a00['tooltip']=!0x0,_0x5e7a00;}['_createDropdownButtons'](_0x2a6b55){const {locale:_0xfb11}=this['editor'],_0x39cd5c=this['editor']['plugins']['get']('ImageInsertUI');return _0x2a6b55['map'](_0x4ae362=>{const _0x405c7a=this['_createButton'](_0xd0d516,_0x4ae362['type']);return _0x405c7a['withText']=!0x0,_0x405c7a['icon']=_0x4ae362['icon'],_0x405c7a['bind']('label')['to'](_0x39cd5c,'isImageSelected',_0x55cccf=>_(_0xfb11,_0x4ae362['type'],_0x55cccf?'Replace':'Insert')['text']),_0x405c7a;});}['_createMenuBarButtons'](_0x507ae4){return _0x507ae4['map'](_0x454a2b=>{const _0x2f49a0=this['_createButton'](_0x57282b,_0x454a2b['type']);return _0x2f49a0['icon']=_0x454a2b['icon'],_0x2f49a0['label']=_0x454a2b['shortText'],_0x2f49a0;});}}class F extends _0x1de0c3{['focusTracker'];['focusCycler'];constructor(_0x4fc55d){super(_0x4fc55d),this['focusTracker']=new _0xc38981(),this['focusCycler']=new _0xf5f5f9({'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(_0x3662b3,_0x4ebb8f){super(_0x3662b3),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-'+_0x4ebb8f}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x4f58bc,_0x17b315){const _0x594f7e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x519057=>_0x519057<=_0x17b315)['map'](_0x409ee8=>_0x4f58bc['replace'](/\/$/,'')+'/-/resize/'+_0x409ee8+'x/\x20'+_0x409ee8+'w');return{'imageFallbackUrl':_0x4f58bc,'imageSources':[{'srcset':_0x594f7e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x17b315+'px)\x20100vw,\x20'+_0x17b315+'px','type':'image/webp'}]};}function S(_0x85ad22,_0x4a1ccd,_0x77c208){const _0x1c7e8e=_0x85ad22['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1c7e8e?parseInt(_0x1c7e8e[0x1],0xa):_0x4a1ccd,'height':_0x1c7e8e?parseInt(_0x1c7e8e[0x2],0xa):_0x77c208};}function p(_0xbd5c08,_0x31c4af){const _0x538289=new(_0x139be4())(),_0x2a8720=_0xbd5c08['plugins']['get']('ImageUtils'),_0x461d05=_0xbd5c08['editing']['mapper']['toViewElement'](_0x31c4af),_0x3ffacc=_0x2a8720['findViewImgElement'](_0x461d05),_0x18ffe6=_0xbd5c08['editing']['view']['domConverter']['viewToDom'](_0x3ffacc),_0x38fa26=_0x31c4af['getAttribute']('width'),_0x1bf7f8=_0x31c4af['getAttribute']('height'),_0x3991ab='image-processing';_0xbd5c08['editing']['view']['change'](_0x2aae90=>{_0x2aae90['addClass'](_0x3991ab,_0x461d05),_0x2aae90['setStyle']('aspect-ratio',_0x38fa26+'/'+_0x1bf7f8,_0x3ffacc);}),_0x538289['listenTo'](_0x18ffe6,'load',()=>{_0x538289['stopListening'](_0x18ffe6,'load'),_0xbd5c08['editing']['view']['change'](_0x350901=>{_0x350901['removeClass'](_0x3991ab,_0x461d05),_0x350901['removeStyle']('aspect-ratio',_0x3ffacc);});});}function G(_0x4cb6be){if(Array['isArray'](_0x4cb6be)){const _0xfa3b03=_0x4cb6be['map'](G);return _0x355c76=>_0xfa3b03['some'](_0x3eb498=>_0x3eb498(_0x355c76));}if('origin'==_0x4cb6be){const _0x561c93=_0x5e8dae['window']['location']['origin'];return _0xb56ff7=>new URL(_0xb56ff7,_0x5e8dae['document']['baseURI'])['origin']==_0x561c93;}return'function'==typeof _0x4cb6be?_0x4cb6be:_0x4cb6be instanceof RegExp?_0x275a4d=>!(!_0x275a4d['match'](_0x4cb6be)&&!_0x275a4d['replace'](/^https?:\/\//,'')['match'](_0x4cb6be)):()=>!0x1;}function A(_0xcd47ff,_0x3e8095){return _0x2b3f7c(_0xcd47ff['target'])['includes'](_0x3e8095);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x254191(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x172f74,_0x191406,_0x5dd404){super(),this['_editor']=_0x172f74,this['_editing']=_0x191406,this['_dialog']=_0x172f74['plugins']['get'](_0x162ab3),this['_api']=_0x191406['ctxElement']['getAPI'](),this['_type']=_0x5dd404,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:_0xb719bc,model:_0x29ed08}=this['_editor'],_0x4b1123=_0x29ed08['document']['selection']['getSelectedElement'](),_0x4812b7=_0x4b1123&&(_0x4b1123['is']('element','imageBlock')||_0x4b1123['is']('element','imageInline'));this['_formView']=new x(_0xb719bc,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x34a163,'title':_(_0xb719bc,this['_type'],_0x4812b7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2697c2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x44fd3f=>!A(_0x44fd3f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x29ec02}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x277ebf=>{const _0x57c8ed=_0x29ec02['length'];for(const _0x4f77c0 of _0x29ec02){const _0x21616c=_0x4f77c0===_0x29ec02[_0x57c8ed-0x1],{cdnUrl:_0x2023d5,fileInfo:_0x4f488b}=_0x4f77c0;if(!_0x2023d5||!_0x4f488b)continue;const {width:_0x2ee4d0,height:_0xc5bd47}=_0x4f488b['imageInfo'],_0x29ade2=S(_0x2023d5,_0x2ee4d0,_0xc5bd47),_0x23b07f=C(_0x2023d5,_0x29ade2['width']),_0x5a2c7d={'id':_0x4f488b['uuid'],'type':'image','attributes':{'imageDimension':_0x29ade2,..._0x23b07f}};this['_insertAsset'](_0x5a2c7d,_0x21616c,_0x277ebf);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x44d33f=>{'idle'===_0x44d33f['detail']['status']&&!_0x44d33f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4860a1,_0x51dbbe,_0x43ece4){const _0x5b5d54=this['_editor']['model']['document']['selection'],_0x41a873=_0x5b5d54['getSelectedElement'](),_0x26a016=!(!_0x41a873||!_0x41a873['is']('element','imageInline'));_0x43ece4['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4860a1,_0x26a016),_0x51dbbe||_0x43ece4['setSelection'](_0x5b5d54['getLastPosition']());}['_insertImage'](_0x7daae6,_0x32ceee){const _0x4332d9=this['_editor'],{imageDimension:_0x293382,imageFallbackUrl:_0x4f0006,imageSources:_0x44ec7d}=_0x7daae6['attributes'];_0x4332d9['execute']('insertImage',{'imageType':_0x32ceee?'imageInline':null,'source':{'uploadcareImageId':_0x7daae6['id'],'src':_0x4f0006,'sources':_0x44ec7d,..._0x293382}});}}class w extends _0xed420d{['_editing'];['_controller']=null;static get['requires'](){return[_0x162ab3,o];}constructor(_0x4af3ec){super(_0x4af3ec),this['_editing']=_0x4af3ec['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x393183){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x393183);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x36618c,..._0x561004}){return _0x194d46(_0x36618c,_0x561004);}static['getInfo'](_0x2e2606,_0x54735d){return _0xecd410(_0x2e2606,_0x54735d);}}class f extends _0x3c1487{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x33f607,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3b7713=this['editor'];if(!!!_0x3b7713['config']['get']('uploadcare'))return;_0x3b7713['plugins']['get'](_0x33f607)['createUploadAdapter']=_0x180a01=>new k(_0x180a01,_0x3b7713),_0x3b7713['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4ed434,{imageElement:_0x4a1123,data:_0x52f0a6})=>{_0x3b7713['model']['change'](_0x1935d7=>{_0x1935d7['setAttribute']('uploadcareImageId',_0x52f0a6['uploadcareImageId'],_0x4a1123);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x43a2e7,_0x335983){this['loader']=_0x43a2e7,this['editor']=_0x335983,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2f94e6=await this['loader']['file'];return j['upload']({'file':_0x2f94e6,'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':_0x47d199=>{_0x47d199&&_0x47d199['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x47d199['value']);}})['then'](async _0x2aa6c7=>{const {imageFallbackUrl:_0x5238ea,imageSources:_0x4df5d8}=C(_0x2aa6c7['cdnUrl'],_0x2aa6c7['imageInfo']['width']);return{'uploadcareImageId':_0x2aa6c7['uuid'],'default':_0x5238ea,'sources':_0x4df5d8};})['catch'](()=>{const _0xff90f5=t('Cannot\x20upload\x20file:')+('\x20'+_0x2f94e6['name']+'.');return Promise['reject'](_0xff90f5);});}['abort'](){this['controller']['abort']();}}class o extends _0x3c1487{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x162ab3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x371238){super(_0x371238),this['ucContextId']=_0x10e13();}['init'](){const _0x4ed24f=this['editor'];_0x4ed24f['commands']['add']('uploadcare',new w(_0x4ed24f));}['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 _0x463480=_0x5e8dae['document']['querySelector']('input[uploadcare-file-input]');_0x463480&&_0x463480['remove']();}),async function(_0x9389db){const _0x58c7bf=_0x405205([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]),_0x3f9fee=0x535f8c3a,_0x141b10=0x5358fb92^_0x3f9fee,_0x3976f6=window[_0x405205([0x44,0x61,0x74,0x65])][_0x405205([0x6e,0x6f,0x77])](),_0x55e6fa=_0x9389db[_0x405205([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x470025=new window[(_0x405205([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47a98e=>{_0x55e6fa[_0x405205([0x6f,0x6e,0x63,0x65])](_0x405205([0x72,0x65,0x61,0x64,0x79]),_0x47a98e);}),_0x2e124b={[_0x405205([0x6b,0x74,0x79])]:_0x405205([0x45,0x43]),[_0x405205([0x75,0x73,0x65])]:_0x405205([0x73,0x69,0x67]),[_0x405205([0x63,0x72,0x76])]:_0x405205([0x50,0x2d,0x32,0x35,0x36]),[_0x405205([0x78])]:_0x405205([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]),[_0x405205([0x79])]:_0x405205([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]),[_0x405205([0x61,0x6c,0x67])]:_0x405205([0x45,0x53,0x32,0x35,0x36])},_0x3d3fce=_0x55e6fa[_0x405205([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x405205([0x67,0x65,0x74])](_0x405205([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x41b2a9(){let _0x4fd231,_0x18b7b9=null,_0x4ffe58=null;try{if(_0x3d3fce==_0x405205([0x47,0x50,0x4c]))return _0x405205([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4fd231=_0x42f218(),!_0x4fd231)return _0x405205([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4fd231[_0x405205([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ffe58=_0x5b0b43(_0x4fd231[_0x405205([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4fd231[_0x405205([0x6a,0x74,0x69])])),await _0x49260d()?_0x320301()?_0x1d56b7()?_0x405205([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x37492f()?(_0x4fd231[_0x405205([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x405205([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x18b7b9=_0x5efe80(_0x405205([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4fd231[_0x405205([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x405205([0x74,0x72,0x69,0x61,0x6c])&&(_0x18b7b9=_0x5efe80(_0x405205([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x281bce()):_0x405205([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x405205([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x405205([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x405205([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d56b7(){const _0x137a42=[_0x405205([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x405205([0x74,0x72,0x69,0x61,0x6c])][_0x405205([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fd231[_0x405205([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3976f6/0x3e8:0xe10*_0x141b10;return _0x4fd231[_0x405205([0x65,0x78,0x70])]<_0x137a42;}function _0x320301(){const _0x4f4e8=_0x4fd231[_0x405205([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4f4e8&&(!!_0x4f4e8[_0x405205([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x405205([0x2a]))||!!_0x4f4e8[_0x405205([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x405205([0x55,0x50,0x4c,0x43])));}function _0x37492f(){const _0x467a36=_0x4fd231[_0x405205([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x467a36||0x0==_0x467a36[_0x405205([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x375390}=new URL(window[_0x405205([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x467a36[_0x405205([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x375390))return!0x0;const _0x36e3fd=_0x375390[_0x405205([0x73,0x70,0x6c,0x69,0x74])](_0x405205([0x2e]));return _0x467a36[_0x405205([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1fd4c0=>_0x1fd4c0[_0x405205([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x405205([0x2a])))[_0x405205([0x6d,0x61,0x70])](_0x4f51c4=>_0x4f51c4[_0x405205([0x73,0x70,0x6c,0x69,0x74])](_0x405205([0x2e])))[_0x405205([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x567082=>_0x567082[_0x405205([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x36e3fd[_0x405205([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x405205([0x6d,0x61,0x70])](_0x4d2cdd=>Array(_0x36e3fd[_0x405205([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4d2cdd[_0x405205([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x405205([0x66,0x69,0x6c,0x6c])](_0x4d2cdd[0x0]===_0x405205([0x2a])?_0x405205([0x2a]):'')[_0x405205([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4d2cdd))[_0x405205([0x73,0x6f,0x6d,0x65])](_0x53779d=>_0x36e3fd[_0x405205([0x65,0x76,0x65,0x72,0x79])]((_0x5b8e1c,_0xa8e432)=>_0x53779d[_0xa8e432]===_0x5b8e1c||_0x53779d[_0xa8e432]===_0x405205([0x2a])));}function _0x281bce(){return _0x18b7b9&&_0x4ffe58?new window[(_0x405205([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36789c,_0x4543be)=>{_0x18b7b9[_0x405205([0x74,0x68,0x65,0x6e])](_0x36789c,_0x4543be),_0x4ffe58[_0x405205([0x74,0x68,0x65,0x6e])](_0x592ab5=>{_0x592ab5!=_0x405205([0x56,0x61,0x6c,0x69,0x64])&&_0x36789c(_0x592ab5);},_0x4543be);}):_0x18b7b9||_0x4ffe58||_0x405205([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5b0b43(_0x245dcd,_0x310cd3){return new window[(_0x405205([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dff2e=>{if(_0x4af14d())return _0x3dff2e(_0x405205([0x56,0x61,0x6c,0x69,0x64]));_0x1526b5(),_0x55e6fa[_0x405205([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x405205([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36b190=!0x1;const _0x5bd496=_0x10e13();function _0x18657b(_0x12e2f9){return!!_0x12e2f9&&(typeof _0x12e2f9===_0x405205([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x12e2f9===_0x405205([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x12e2f9[_0x405205([0x74,0x68,0x65,0x6e])]===_0x405205([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x12e2f9[_0x405205([0x63,0x61,0x74,0x63,0x68])]===_0x405205([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d4e66(_0x494cbf){_0x29433a(_0x494cbf)[_0x405205([0x74,0x68,0x65,0x6e])](_0x17ce13=>{if(!_0x17ce13||_0x17ce13[_0x405205([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x405205([0x6f,0x6b]))return _0x405205([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x343a2f(_0x1e339f(_0x5bd496+_0x310cd3))!=_0x17ce13[_0x405205([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x405205([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x405205([0x56,0x61,0x6c,0x69,0x64]);})[_0x405205([0x74,0x68,0x65,0x6e])](_0x466e28=>(_0x29d60b(),_0x466e28),()=>{const _0x42ae90=_0x500117();return null==_0x42ae90?(_0x29d60b(),_0x405205([0x56,0x61,0x6c,0x69,0x64])):_0x405205(_0x3976f6-_0x42ae90>(0x7753083a^_0x3f9fee)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x405205([0x74,0x68,0x65,0x6e])](_0x3dff2e)[_0x405205([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3dff2e(_0x405205([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b23c9=0x536962ba^_0x3f9fee;function _0x29d60b(){const _0x3ec407=_0x405205([0x6c,0x6c,0x63,0x74,0x2d])+_0x343a2f(_0x1e339f(_0x245dcd)),_0x53e0cc=_0x5982f4(_0x343a2f(window[_0x405205([0x4d,0x61,0x74,0x68])][_0x405205([0x63,0x65,0x69,0x6c])](_0x3976f6/_0x3b23c9)));window[_0x405205([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x405205([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ec407,_0x53e0cc);}function _0x500117(){const _0x2a7489=_0x405205([0x6c,0x6c,0x63,0x74,0x2d])+_0x343a2f(_0x1e339f(_0x245dcd)),_0x7c135d=window[_0x405205([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x405205([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a7489);return _0x7c135d?window[_0x405205([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5982f4(_0x7c135d),0x10)*_0x3b23c9:null;}function _0x29433a(_0x29e3e4){return new window[(_0x405205([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51d336,_0x47c682)=>{_0x29e3e4[_0x405205([0x74,0x68,0x65,0x6e])](_0x51d336,_0x47c682),window[_0x405205([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x47c682,0x535e58fa^_0x3f9fee);});}}_0x55e6fa[_0x405205([0x6f,0x6e])](_0x405205([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34d5c2,_0x2375bd)=>{if(_0x2375bd[0x0]!=_0x245dcd)return _0x3dff2e(_0x405205([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2375bd[0x1]={..._0x2375bd[0x1],[_0x405205([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5bd496};},{[_0x405205([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x405205([0x68,0x69,0x67,0x68])}),_0x55e6fa[_0x405205([0x6f,0x6e])](_0x405205([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5aa1bc=>{_0x18657b(_0x5aa1bc[_0x405205([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36b190=!0x0,_0x1d4e66(_0x5aa1bc[_0x405205([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x405205([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x405205([0x6c,0x6f,0x77])}),_0x470025[_0x405205([0x74,0x68,0x65,0x6e])](()=>{_0x36b190||_0x3dff2e(_0x405205([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4af14d(){return _0x55e6fa[_0x405205([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x405205([0x76,0x69,0x65,0x77])][_0x405205([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x405205([0x61,0x75,0x74,0x6f]);}function _0x1526b5(){_0x55e6fa[_0x405205([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x405205([0x76,0x69,0x65,0x77])][_0x405205([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x405205([0x61,0x75,0x74,0x6f]);}}function _0x5efe80(_0xa5cfc1){const _0x1c4799=[new window[(_0x405205([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20a324=>setTimeout(_0x20a324,0x5356b2f6^_0x3f9fee)),_0x470025[_0x405205([0x74,0x68,0x65,0x6e])](()=>new window[(_0x405205([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a5dd3=>{let _0x296c2c=0x0;_0x55e6fa[_0x405205([0x6d,0x6f,0x64,0x65,0x6c])][_0x405205([0x6f,0x6e])](_0x405205([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d22df,_0x2a5270)=>{_0x2a5270[0x0][_0x405205([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x296c2c++,_0x296c2c==(0x535f8dc2^_0x3f9fee)&&(_0x5a5dd3(),_0x4d22df[_0x405205([0x6f,0x66,0x66])]());});}))];return window[_0x405205([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x405205([0x72,0x61,0x63,0x65])](_0x1c4799)[_0x405205([0x74,0x68,0x65,0x6e])](()=>_0xa5cfc1);}async function _0x24ac23(){await _0x470025,_0x55e6fa[_0x405205([0x6d,0x6f,0x64,0x65,0x6c])][_0x405205([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5783ab,_0x55e6fa[_0x405205([0x6d,0x6f,0x64,0x65,0x6c])][_0x405205([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5783ab,_0x55e6fa[_0x405205([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x405205([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x226271(_0x3abbdc){const _0xa3a1f4=_0x46c1aa();_0x55e6fa[_0xa3a1f4]=_0x405205([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3abbdc,_0x3abbdc!=_0x405205([0x56,0x61,0x6c,0x69,0x64])&&_0x24ac23();}function _0x46c1aa(){const _0x2471a2=window[_0x405205([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x405205([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x405205([0x6e,0x6f,0x77])]())[_0x405205([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x405205([0x2e]),'');let _0x9e5864=_0x405205([0x68]);for(let _0x1617af=0x0;_0x1617af<_0x2471a2[_0x405205([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1617af+=0x2){let _0x2d6af2=window[_0x405205([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2471a2[_0x405205([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1617af,_0x1617af+0x2));_0x2d6af2>=_0x58c7bf[_0x405205([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d6af2-=_0x58c7bf[_0x405205([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x9e5864+=_0x58c7bf[_0x2d6af2];}return _0x9e5864;}function _0x42f218(){const _0x2d5a1a=_0x3d3fce[_0x405205([0x73,0x70,0x6c,0x69,0x74])](_0x405205([0x2e]));if(0x3!=_0x2d5a1a[_0x405205([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x536174(_0x2d5a1a[0x1]);function _0x536174(_0x20f6f7){const _0x512182=_0x1cdd3a(_0x20f6f7);return _0x512182&&_0x4930fd()?_0x512182:null;function _0x4930fd(){const _0x274cab=_0x512182[_0x405205([0x6a,0x74,0x69])],_0x3749ed=window[_0x405205([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x274cab[_0x405205([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x274cab[_0x405205([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x552461={..._0x512182,[_0x405205([0x6a,0x74,0x69])]:_0x274cab[_0x405205([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x274cab[_0x405205([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x552461[_0x405205([0x76,0x63])],_0x1e339f(_0x552461)==_0x3749ed;}}}async function _0x49260d(){let _0x234ceb=!0x0;try{const _0x35f783=_0x3d3fce[_0x405205([0x73,0x70,0x6c,0x69,0x74])](_0x405205([0x2e])),[_0x3839e0,_0x49b324,_0x788c3d]=_0x35f783;return _0x2387b6(_0x3839e0),await _0x2365cf(_0x3839e0,_0x49b324,_0x788c3d),_0x234ceb;}catch{return!0x1;}function _0x2387b6(_0x132dc3){const _0x55ae6b=_0x1cdd3a(_0x132dc3);_0x55ae6b&&_0x55ae6b[_0x405205([0x61,0x6c,0x67])]==_0x405205([0x45,0x53,0x32,0x35,0x36])||(_0x234ceb=!0x1);}async function _0x2365cf(_0x7536a3,_0x5d3377,_0x2b511f){const _0x308a8d=window[_0x405205([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x405205([0x66,0x72,0x6f,0x6d])](_0x159332(_0x2b511f),_0x32a61d=>_0x32a61d[_0x405205([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x27aab7=new window[(_0x405205([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x405205([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x7536a3+_0x405205([0x2e])+_0x5d3377),_0x40b3a2=window[_0x405205([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x405205([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x40b3a2)return;const _0x2c7730=await _0x40b3a2[_0x405205([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x405205([0x6a,0x77,0x6b]),_0x2e124b,{[_0x405205([0x6e,0x61,0x6d,0x65])]:_0x405205([0x45,0x43,0x44,0x53,0x41]),[_0x405205([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x405205([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x405205([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x40b3a2[_0x405205([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x405205([0x6e,0x61,0x6d,0x65])]:_0x405205([0x45,0x43,0x44,0x53,0x41]),[_0x405205([0x68,0x61,0x73,0x68])]:{[_0x405205([0x6e,0x61,0x6d,0x65])]:_0x405205([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2c7730,_0x308a8d,_0x27aab7)||(_0x234ceb=!0x1);}}function _0x1cdd3a(_0x15f98d){return _0x15f98d[_0x405205([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x405205([0x65,0x79]))?JSON[_0x405205([0x70,0x61,0x72,0x73,0x65])](_0x159332(_0x15f98d)):null;}function _0x159332(_0xc2356){return window[_0x405205([0x61,0x74,0x6f,0x62])](_0xc2356[_0x405205([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x405205([0x2b]))[_0x405205([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x405205([0x2f])));}function _0x1e339f(_0x160cbe){let _0x1b5985=0x1505;function _0x1b176a(_0xf58e2e){for(let _0x4e7c72=0x0;_0x4e7c72<_0xf58e2e[_0x405205([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e7c72++){const _0x50a2d2=_0xf58e2e[_0x405205([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e7c72);_0x1b5985=(_0x1b5985<<0x5)+_0x1b5985+_0x50a2d2,_0x1b5985&=_0x1b5985;}}function _0x4a6259(_0x484d9e){Array[_0x405205([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x484d9e)?_0x484d9e[_0x405205([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4a6259):_0x484d9e&&typeof _0x484d9e==_0x405205([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x405205([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x484d9e)[_0x405205([0x73,0x6f,0x72,0x74])]()[_0x405205([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3d34a3,_0x319ef6])=>{_0x1b176a(_0x3d34a3),_0x4a6259(_0x319ef6);}):_0x1b176a(window[_0x405205([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x484d9e));}return _0x4a6259(_0x160cbe),_0x1b5985>>>0x0;}function _0x343a2f(_0x1f8f7b){return _0x1f8f7b[_0x405205([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x405205([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x405205([0x30]));}function _0x5982f4(_0x2911b2){return _0x2911b2[_0x405205([0x73,0x70,0x6c,0x69,0x74])]('')[_0x405205([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x405205([0x6a,0x6f,0x69,0x6e])]('');}function _0x5783ab(){}function _0x405205(_0xeaf2b){return _0xeaf2b['map'](_0x3c99b6=>String['fromCharCode'](_0x3c99b6))['join']('');}_0x226271(await _0x41b2a9());}(this);}['_initSchema'](){const _0x446138=this['editor']['model']['schema'];_0x446138['isRegistered']('imageBlock')&&_0x446138['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x446138['isRegistered']('imageInline')&&_0x446138['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2d78c6=this['editor'];_0x2d78c6['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2d78c6['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x15d7b2=>_0x15d7b2['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4b8dfe=_0x2d78c6['commands']['get']('replaceImageSource');_0x4b8dfe&&this['listenTo'](_0x4b8dfe,'cleanupImage',(_0x316305,[_0x308cc1,_0x299b55])=>{_0x308cc1['removeAttribute']('uploadcareImageId',_0x299b55);});}['_initConfig'](){const _0x5f05b4=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4395bd=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1ae2c6(_0x5e8dae['document'],'uc-config',{..._0x5f05b4,'pubkey':_0x4395bd,'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']=_0x3213c0=>{if('closeMax'==_0x3213c0)return'#uc-icon-arrow-down';},_0x5e8dae['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1ae2c6(_0x5e8dae['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5e8dae['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x56b373=this['editor']['commands']['get']('insertImage');_0x56b373&&this['listenTo'](_0x56b373,'execute',()=>{const _0x48f850=this['editor']['model']['document']['selection']['getSelectedElement']();_0x48f850&&_0x48f850['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x48f850);});});const _0x200bef=this['editor']['commands']['get']('uploadcareImageReplace');_0x200bef&&this['listenTo'](_0x200bef,'execute',()=>{const _0x405935=this['editor']['model']['document']['selection']['getSelectedElement']();_0x405935&&_0x405935['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x405935);});});}}class tt extends _0x3c1487{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x277f0d){super(_0x277f0d),_0x277f0d['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2da02d['defineComponents'](_0x2da02d),this['_defineLocale']();}['_defineLocale'](){const _0x5800ad=this['editor']['config']['get']('uploadcare.locale'),_0x42075c=this['editor']['locale']['contentLanguage'];_0x5800ad&&_0x2da02d['defineLocale'](_0x42075c,_0x5800ad);}}class ii extends _0x1de0c3{constructor(_0x1bf8b6){super(_0x1bf8b6);const t=_0x1bf8b6['t'],_0x36cc95=this['bindTemplate'],_0x32e47d=new _0x28f04f();_0x32e47d['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':[_0x32e47d,{'text':_0x36cc95['to']('imageUploadProgress',_0x203258=>t('Loading\x20image...')+'\x20('+(_0x203258||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 _0x1de0c3{constructor(_0x374555){super(_0x374555);const t=_0x374555['t'];this['set']('errorType',null);const _0x8b6cce=new _0xd0d516(_0x374555);_0x8b6cce['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x8b6cce['withText']=!0x0,_0x8b6cce['class']='ck-button-action',_0x8b6cce['on']('execute',()=>{this['fire']('retry');}),_0x8b6cce['bind']('isVisible')['to'](this,'errorType',_0x1bcbed=>'NotFound'!==_0x1bcbed);const _0x26f46=new _0x4766ec();_0x26f46['content']=_0x20b2f1,_0x26f46['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xdd4876=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':[_0x26f46,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xdd4876['to']('errorType',_0x3e524d=>t('NotFound'!==_0x3e524d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x8b6cce]},{'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 _0x1de0c3{constructor(_0x3b3cd5,_0x5f32d7){super(_0x3b3cd5);const _0x5bcd9a=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5f32d7,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5bcd9a['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x28de10,_0x5d0571,_0x410d26){super(_0x28de10),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x28de10),this['_errorView']=new ti(_0x28de10),this['_editingView']=new ei(_0x28de10,_0x410d26),this['_focusableView']=new _0x1de0c3(_0x28de10),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5d0571),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'],_0x335911=>{this['_addUploadcareImageEditorListeners'](_0x335911);});}),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'](_0x19bac1,_0x3306c9){const _0x2f7a61='uc-cloud-image-editor',_0x2026aa=_0x19bac1['querySelector'](_0x2f7a61);if(_0x2026aa)return _0x3306c9(_0x2026aa);const _0x46c9e6=new MutationObserver(_0x6453f0=>{const _0x912186=_0x6453f0['filter'](_0x50235a=>_0x50235a['target']===_0x19bac1&&_0x50235a['addedNodes']['length']>0x0&&_0x50235a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2f7a61);_0x912186['length']&&(_0x46c9e6['disconnect'](),_0x3306c9(_0x912186[0x0]['addedNodes'][0x0]));});_0x46c9e6['observe'](_0x19bac1,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2ad940){_0x2ad940['addEventListener']('apply',_0xbcd468=>{this['fire']('apply',{'imageSrc':_0xbcd468['detail']['cdnUrl']});}),_0x2ad940['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x254191(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x524dae,_0x3726f7,_0x5ea321){super(),this['_editor']=_0x524dae,this['_dialog']=_0x3726f7,this['_imageElement']=_0x5ea321,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 _0x115c66=this['_imageElement'],_0x3f79ae=_0x115c66['getAttribute']('uploadcareImageId'),_0x20e146=_0x115c66['getAttribute']('src');if(_0x3f79ae)await this['_loadImageInfo'](_0x3f79ae,_0x20e146);else{if(this['_imageCache']['has'](_0x20e146)){const _0x56abbe=this['_imageCache']['get'](_0x20e146);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x56abbe['url'],this['imageDimension']=_0x56abbe['dimension'],this['imageId']=_0x56abbe['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x23ec3c}=this['_editor'],t=_0x23ec3c['t'],_0x3f5cfd=new X(_0x23ec3c,this['imageStatus'],this['_attributes']);_0x3f5cfd['bind']('status')['to'](this,'imageStatus'),_0x3f5cfd['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3f5cfd['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3f5cfd['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3f5cfd,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x107ac3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3f5cfd,'position':_0x2697c2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3f5cfd['focus']();},'onHide':()=>{_0x3f5cfd['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3d3e04=>!A(_0x3d3e04,_0x3f5cfd['element'])}});}['_loadImageInfo'](_0x198b64,_0x27a1d4){return j['getInfo'](_0x198b64,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x136a2d=>{const {width:_0x1a3403,height:_0xb8a581}=_0x136a2d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x27a1d4,this['imageDimension']={'width':_0x1a3403,'height':_0xb8a581},this['imageId']=_0x198b64;})['catch'](_0x515136=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x515136['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x278ba7,_0x5d985f){return this['_getImageAsFile'](_0x278ba7)['then'](_0x47b34d=>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':_0x5d985f['signal'],'file':_0x47b34d,'onProgress':_0x246a89=>{_0x246a89&&_0x246a89['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x246a89['value']));}}))['then'](_0x1de2e3=>{const {width:_0x2309b9,height:_0x10c0f5}=_0x1de2e3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1de2e3['cdnUrl'],this['imageDimension']={'width':_0x2309b9,'height':_0x10c0f5},this['imageId']=_0x1de2e3['uuid'],this['imageUploadProgress']=null;const _0x1e68e2=_0x278ba7['getAttribute']('src');this['_imageCache']['set'](_0x1e68e2,{'id':_0x1de2e3['uuid'],'url':_0x1de2e3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2d0538=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2d0538['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2e75e0,_0x326a4d){_0x2e75e0['on']('apply',(_0x5d44db,_0x1a4c96)=>{this['_replaceImage'](_0x326a4d,_0x1a4c96['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2e75e0['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2e75e0['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2119c0,_0x3814d1,_0x4c2ab8){const _0x58ca7f=this['_editor'],{width:_0x259ec4,height:_0x5ac5e2}=S(_0x3814d1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3a3bf7,imageSources:_0x1b5561}=C(_0x3814d1,_0x259ec4);_0x58ca7f['model']['change'](_0x588dbf=>{if('$graveyard'===_0x2119c0['root']['rootName']){_0x58ca7f['execute']('insertImage',{'imageType':_0x2119c0['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2119c0['getAttributes']()),'uploadcareImageId':_0x4c2ab8,'src':_0x3a3bf7,'sources':_0x1b5561,'width':_0x259ec4,'height':_0x5ac5e2}});const _0x145ad4=_0x2119c0['getChildren']();_0x2119c0=_0x58ca7f['model']['document']['selection']['getSelectedElement']();for(const _0x363d2f of _0x145ad4)_0x588dbf['append'](_0x588dbf['cloneElement'](_0x363d2f),_0x2119c0);}else _0x588dbf['setSelection'](_0x2119c0,'on'),_0x58ca7f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2119c0['getAttributes']()),'uploadcareImageId':_0x4c2ab8,'src':_0x3a3bf7,'sources':_0x1b5561,'width':_0x259ec4,'height':_0x5ac5e2},_0x2119c0);_0x588dbf['setSelection'](_0x2119c0,'on');});}async['_getImageAsFile'](_0x1c8350){const _0x35f3d6=_0x5e8dae['window'],_0x3471d9=_0x5e8dae['document']['location']['href'],_0x18d1a3=new _0x35f3d6['URL'](_0x1c8350['getAttribute']('src'),_0x3471d9);if('data:'===_0x18d1a3['protocol']){const _0x4d0d55=_0x18d1a3['href']['split'](','),_0x595581=_0x4d0d55[0x0]['match'](/:(.*?);/)[0x1],_0x25f4ac=_0x595581['split']('/')[0x1],_0x11fbf7=_0x35f3d6['atob'](_0x4d0d55[_0x4d0d55['length']-0x1]);let _0x377310=_0x11fbf7['length'];const _0xe044a=new _0x35f3d6['Uint8Array'](_0x377310);for(;_0x377310--;)_0xe044a[_0x377310]=_0x11fbf7['charCodeAt'](_0x377310);return new _0x35f3d6['File']([_0xe044a],'image.'+_0x25f4ac,{'type':_0x595581});}const _0x11a29c=_0x18d1a3['href']['split']('/'),_0x141bac=_0x11a29c[_0x11a29c['length']-0x1],_0x5b3413=_0x141bac['split']('.')[0x1];return _0x35f3d6['fetch'](_0x18d1a3['href'])['then'](_0x570882=>_0x570882['clone']()['blob']())['then'](_0x1a50aa=>new _0x35f3d6['File']([_0x1a50aa],_0x141bac,{'type':'image/'+_0x5b3413}));}}class O extends _0xed420d{['imageEditController'];static get['requires'](){return[_0x162ab3];}['_isEditable'];constructor(_0x5c7a2b){super(_0x5c7a2b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x24f15a){const _0x59b00b=G(_0x24f15a);return _0x29ce0e=>!(!_0x29ce0e||!_0x29ce0e['is']('element','imageBlock')&&!_0x29ce0e['is']('element','imageInline'))&&(!!_0x29ce0e['hasAttribute']('uploadcareImageId')||!!_0x29ce0e['hasAttribute']('src')&&_0x59b00b(_0x29ce0e['getAttribute']('src')));}(_0x5c7a2b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x26d1b1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x26d1b1);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x17f7a8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x17f7a8&&(_0x17f7a8['is']('element','imageBlock')||_0x17f7a8['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x162ab3),_0x17f7a8),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0xed420d{['refresh'](){const _0x4f7bdc=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4f7bdc&&(_0x4f7bdc['is']('element','imageBlock')||_0x4f7bdc['is']('element','imageInline')));}['execute'](_0x10a2d7){const _0x5919d7=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2f5c6b=>{_0x2f5c6b['setAttributes'](_0x10a2d7,_0x5919d7),_0x2f5c6b['removeAttribute']('srcset',_0x5919d7),_0x2f5c6b['removeAttribute']('sizes',_0x5919d7);});}}class m extends _0x3c1487{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x180c24,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x50260b}=this;_0x50260b['commands']['add']('uploadcareImageEdit',new O(_0x50260b)),_0x50260b['commands']['add']('uploadcareImageReplace',new R(_0x50260b));}}class g extends _0x3c1487{['_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 _0x472588=this['editor'];_0x472588['ui']['componentFactory']['add']('uploadcareImageEdit',_0x53d47a=>{const _0x38dfed=_0x472588['commands']['get']('uploadcareImageEdit'),_0x29add9=new _0xd0d516(_0x53d47a),t=_0x53d47a['t'];return _0x29add9['set']({'icon':_0x107ac3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x29add9['bind']('isEnabled')['to'](_0x38dfed),_0x29add9['bind']('isOn')['to'](_0x38dfed,'isActive'),this['listenTo'](_0x29add9,'execute',()=>{_0x472588['execute']('uploadcareImageEdit'),_0x472588['editing']['view']['focus']();}),_0x29add9;}),this['_initConfig']();}['_initConfig'](){const _0x4ddb1a=_0x1ae2c6(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4ddb1a),this['listenTo'](this['editor'],'destroy',()=>{_0x4ddb1a['remove']();});}}class et extends _0x3c1487{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-20251030.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-20251030.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251030.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20251030.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251030.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251030.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251030.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251030.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251030.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.19.4",
|
|
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 _0x3a1449=_0x431a;(function(_0x5b5ed0,_0x57283){const _0x18c86f=_0x431a,_0x5db052=_0x5b5ed0();while(!![]){try{const _0x292ec0=-parseInt(_0x18c86f(0x176))/0x1*(parseInt(_0x18c86f(0x183))/0x2)+-parseInt(_0x18c86f(0x16e))/0x3*(-parseInt(_0x18c86f(0x163))/0x4)+-parseInt(_0x18c86f(0x14e))/0x5+parseInt(_0x18c86f(0x131))/0x6*(parseInt(_0x18c86f(0x182))/0x7)+-parseInt(_0x18c86f(0x161))/0x8+parseInt(_0x18c86f(0x17f))/0x9*(-parseInt(_0x18c86f(0x143))/0xa)+parseInt(_0x18c86f(0x184))/0xb*(parseInt(_0x18c86f(0x16a))/0xc);if(_0x292ec0===_0x57283)break;else _0x5db052['push'](_0x5db052['shift']());}catch(_0x31081e){_0x5db052['push'](_0x5db052['shift']());}}}(_0x27af,0x6cb39));import{Plugin as _0x349ada}from'ckeditor5/src/core.js';import{Dialog as _0xb15c3}from'ckeditor5/src/ui.js';import{createElement as _0x54a165,global as _0x100429,uid as _0x400c11}from'ckeditor5/src/utils.js';function _0x27af(){const _0xa99933=['fromCharCode','contentLanguage','863175LZpwKs','data-uc-image-id','isPremiumPlugin','#uc-icon-arrow-down','listenTo','getAttribute','_initConversion','insertImage','ucContextId','schema','editing','_ctxElement','cleanupImage','input[uploadcare-file-input]','once','_initSchema','\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','uploader-','render','4351520yvXFWD','map','144944QDEdYu','locale','_initCtx','view','uc-config','document','removeAttribute','3078636iHWvMc','commands','appendChild','destroy','72KlnWdb','href','selection','extend','requires','uc-upload-ctx-provider','downcast','model','483133KOdmng','imageBlock','get','config','join','PictureEditing','init','conversion','isRegistered','2169gxdENw','_configElement','elementToAttribute','65821IzROYa','2XaKrkg','33DGGHAv','uploadcareImageId','querySelector','true','486luxSzO','_initImageProcessingIndicator','isOfficialPlugin','body','execute','attributeToAttribute','add','for','pluginName','closeMax','configElement','uploadcareImageReplace','ctxElement','uploadcare','iconHrefResolver','remove','afterInit','getSelectedElement','31370gdZwUs','upcast','uploadcare.pubkey','UploadcareEditing','uploadcare.uploader','editor','_initConfig','replaceImageSource','imageInline'];_0x27af=function(){return _0xa99933;};return _0x27af();}function _0x431a(_0x270c43,_0x23ef02){const _0x27afb5=_0x27af();return _0x431a=function(_0x431ae4,_0x23fedf){_0x431ae4=_0x431ae4-0x12e;let _0x9d47d9=_0x27afb5[_0x431ae4];return _0x9d47d9;},_0x431a(_0x270c43,_0x23ef02);}import{UploadcareCommand as _0x177b4c}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x124b2d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x204f15}from'./utils/editingutils.js';export class UploadcareEditing extends _0x349ada{[_0x3a1449(0x180)]=null;[_0x3a1449(0x159)]=null;static get[_0x3a1449(0x139)](){const _0x567ba7=_0x3a1449;return _0x567ba7(0x146);}static get[_0x3a1449(0x172)](){const _0x5bcd3c=_0x3a1449;return[_0x5bcd3c(0x17b),_0x124b2d,_0xb15c3];}static get[_0x3a1449(0x133)](){return!0x0;}static get[_0x3a1449(0x150)](){return!0x0;}[_0x3a1449(0x156)];get[_0x3a1449(0x13b)](){const _0x51a6ab=_0x3a1449;return this[_0x51a6ab(0x180)];}get[_0x3a1449(0x13d)](){const _0x413948=_0x3a1449;return this[_0x413948(0x159)];}constructor(_0x101fcd){const _0xbd86=_0x3a1449;super(_0x101fcd),this[_0xbd86(0x156)]=_0x400c11();}[_0x3a1449(0x17c)](){const _0x5c3467=_0x3a1449,_0x1ce326=this[_0x5c3467(0x148)];_0x1ce326[_0x5c3467(0x16b)][_0x5c3467(0x137)](_0x5c3467(0x13e),new _0x177b4c(_0x1ce326));}[_0x3a1449(0x141)](){const _0xcd25b1=_0x3a1449;this[_0xcd25b1(0x15d)](),this[_0xcd25b1(0x154)](),this[_0xcd25b1(0x149)](),this[_0xcd25b1(0x165)](),this[_0xcd25b1(0x132)](),this[_0xcd25b1(0x152)](this[_0xcd25b1(0x148)],_0xcd25b1(0x16d),()=>{const _0x590ba2=_0xcd25b1;this[_0x590ba2(0x180)]&&(this[_0x590ba2(0x180)][_0x590ba2(0x140)](),this[_0x590ba2(0x180)]=null),this[_0x590ba2(0x159)]&&(this[_0x590ba2(0x159)][_0x590ba2(0x140)](),this[_0x590ba2(0x159)]=null);const _0xda7fba=_0x100429[_0x590ba2(0x168)][_0x590ba2(0x12f)](_0x590ba2(0x15b));_0xda7fba&&_0xda7fba[_0x590ba2(0x140)]();}),async function(_0x1ad33d){const _0x582ea2=_0x225ba0([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]),_0x8fb20b=0x535f8c3a,_0x241dcc=0x5358fbaa^_0x8fb20b,_0x4c44cf=window[_0x225ba0([0x44,0x61,0x74,0x65])][_0x225ba0([0x6e,0x6f,0x77])](),_0x40dbbd=_0x1ad33d[_0x225ba0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x550e11=new window[(_0x225ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x537e34=>{_0x40dbbd[_0x225ba0([0x6f,0x6e,0x63,0x65])](_0x225ba0([0x72,0x65,0x61,0x64,0x79]),_0x537e34);}),_0x2ef618={[_0x225ba0([0x6b,0x74,0x79])]:_0x225ba0([0x45,0x43]),[_0x225ba0([0x75,0x73,0x65])]:_0x225ba0([0x73,0x69,0x67]),[_0x225ba0([0x63,0x72,0x76])]:_0x225ba0([0x50,0x2d,0x32,0x35,0x36]),[_0x225ba0([0x78])]:_0x225ba0([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]),[_0x225ba0([0x79])]:_0x225ba0([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]),[_0x225ba0([0x61,0x6c,0x67])]:_0x225ba0([0x45,0x53,0x32,0x35,0x36])},_0x44daa2=_0x40dbbd[_0x225ba0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x225ba0([0x67,0x65,0x74])](_0x225ba0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x579f0a(){let _0x1bb072,_0x458870=null,_0x137225=null;try{if(_0x44daa2==_0x225ba0([0x47,0x50,0x4c]))return _0x225ba0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1bb072=_0x242fad(),!_0x1bb072)return _0x225ba0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1bb072[_0x225ba0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x137225=_0x9c27c9(_0x1bb072[_0x225ba0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1bb072[_0x225ba0([0x6a,0x74,0x69])])),await _0x2b17fd()?_0x1da41a()?_0xbb755b()?_0x225ba0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3fd244()?(_0x1bb072[_0x225ba0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x225ba0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x458870=_0x7f772c(_0x225ba0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1bb072[_0x225ba0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x225ba0([0x74,0x72,0x69,0x61,0x6c])&&(_0x458870=_0x7f772c(_0x225ba0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2872d9()):_0x225ba0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x225ba0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x225ba0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x225ba0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xbb755b(){const _0x2d470a=[_0x225ba0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x225ba0([0x74,0x72,0x69,0x61,0x6c])][_0x225ba0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bb072[_0x225ba0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4c44cf/0x3e8:0xe10*_0x241dcc;return _0x1bb072[_0x225ba0([0x65,0x78,0x70])]<_0x2d470a;}function _0x1da41a(){const _0x301c16=_0x1bb072[_0x225ba0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x301c16&&(!!_0x301c16[_0x225ba0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x225ba0([0x2a]))||!!_0x301c16[_0x225ba0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x225ba0([0x55,0x50,0x4c,0x43])));}function _0x3fd244(){const _0x1ce747=_0x431a,_0x453814=_0x1bb072[_0x225ba0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x453814||0x0==_0x453814[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23d710}=new URL(window[_0x225ba0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1ce747(0x16f)]);if(_0x453814[_0x225ba0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23d710))return!0x0;const _0x3947d5=_0x23d710[_0x225ba0([0x73,0x70,0x6c,0x69,0x74])](_0x225ba0([0x2e]));return _0x453814[_0x225ba0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c77bf=>_0x5c77bf[_0x225ba0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x225ba0([0x2a])))[_0x225ba0([0x6d,0x61,0x70])](_0x199e7c=>_0x199e7c[_0x225ba0([0x73,0x70,0x6c,0x69,0x74])](_0x225ba0([0x2e])))[_0x225ba0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x262ceb=>_0x262ceb[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3947d5[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x225ba0([0x6d,0x61,0x70])](_0x2d1183=>Array(_0x3947d5[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2d1183[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x225ba0([0x66,0x69,0x6c,0x6c])](_0x2d1183[0x0]===_0x225ba0([0x2a])?_0x225ba0([0x2a]):'')[_0x225ba0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2d1183))[_0x225ba0([0x73,0x6f,0x6d,0x65])](_0xa43be2=>_0x3947d5[_0x225ba0([0x65,0x76,0x65,0x72,0x79])]((_0x2c5075,_0x3a90cd)=>_0xa43be2[_0x3a90cd]===_0x2c5075||_0xa43be2[_0x3a90cd]===_0x225ba0([0x2a])));}function _0x2872d9(){return _0x458870&&_0x137225?new window[(_0x225ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5affe0,_0x4e7588)=>{_0x458870[_0x225ba0([0x74,0x68,0x65,0x6e])](_0x5affe0,_0x4e7588),_0x137225[_0x225ba0([0x74,0x68,0x65,0x6e])](_0x420bfc=>{_0x420bfc!=_0x225ba0([0x56,0x61,0x6c,0x69,0x64])&&_0x5affe0(_0x420bfc);},_0x4e7588);}):_0x458870||_0x137225||_0x225ba0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x9c27c9(_0x30060e,_0x4420f9){return new window[(_0x225ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2efb9c=>{if(_0x26e6b3())return _0x2efb9c(_0x225ba0([0x56,0x61,0x6c,0x69,0x64]));_0x574d7d(),_0x40dbbd[_0x225ba0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x225ba0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42c916=!0x1;const _0x58e523=_0x400c11();function _0xb3ba61(_0x2b44a4){return!!_0x2b44a4&&(typeof _0x2b44a4===_0x225ba0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b44a4===_0x225ba0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b44a4[_0x225ba0([0x74,0x68,0x65,0x6e])]===_0x225ba0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b44a4[_0x225ba0([0x63,0x61,0x74,0x63,0x68])]===_0x225ba0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x53ae4c(_0x5bd527){_0x9a0d87(_0x5bd527)[_0x225ba0([0x74,0x68,0x65,0x6e])](_0x4ef21a=>{if(!_0x4ef21a||_0x4ef21a[_0x225ba0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x225ba0([0x6f,0x6b]))return _0x225ba0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1e51c7(_0x83217e(_0x58e523+_0x4420f9))!=_0x4ef21a[_0x225ba0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x225ba0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x225ba0([0x56,0x61,0x6c,0x69,0x64]);})[_0x225ba0([0x74,0x68,0x65,0x6e])](_0x5d4327=>(_0x262b16(),_0x5d4327),()=>{const _0x5ceef2=_0x3adf5a();return null==_0x5ceef2?(_0x262b16(),_0x225ba0([0x56,0x61,0x6c,0x69,0x64])):_0x225ba0(_0x4c44cf-_0x5ceef2>(0x7753083a^_0x8fb20b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x225ba0([0x74,0x68,0x65,0x6e])](_0x2efb9c)[_0x225ba0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2efb9c(_0x225ba0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x25bf66=0x536962ba^_0x8fb20b;function _0x262b16(){const _0x7b46cf=_0x225ba0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e51c7(_0x83217e(_0x30060e)),_0x137eb5=_0x487933(_0x1e51c7(window[_0x225ba0([0x4d,0x61,0x74,0x68])][_0x225ba0([0x63,0x65,0x69,0x6c])](_0x4c44cf/_0x25bf66)));window[_0x225ba0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x225ba0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7b46cf,_0x137eb5);}function _0x3adf5a(){const _0x4eaaf4=_0x225ba0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e51c7(_0x83217e(_0x30060e)),_0x5b0690=window[_0x225ba0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x225ba0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4eaaf4);return _0x5b0690?window[_0x225ba0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x487933(_0x5b0690),0x10)*_0x25bf66:null;}function _0x9a0d87(_0x2bef1a){return new window[(_0x225ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x75a939,_0x2da816)=>{_0x2bef1a[_0x225ba0([0x74,0x68,0x65,0x6e])](_0x75a939,_0x2da816),window[_0x225ba0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2da816,0x535e58fa^_0x8fb20b);});}}_0x40dbbd[_0x225ba0([0x6f,0x6e])](_0x225ba0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xba9fdb,_0x18aad5)=>{if(_0x18aad5[0x0]!=_0x30060e)return _0x2efb9c(_0x225ba0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x18aad5[0x1]={..._0x18aad5[0x1],[_0x225ba0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58e523};},{[_0x225ba0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x225ba0([0x68,0x69,0x67,0x68])}),_0x40dbbd[_0x225ba0([0x6f,0x6e])](_0x225ba0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xd62478=>{_0xb3ba61(_0xd62478[_0x225ba0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42c916=!0x0,_0x53ae4c(_0xd62478[_0x225ba0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x225ba0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x225ba0([0x6c,0x6f,0x77])}),_0x550e11[_0x225ba0([0x74,0x68,0x65,0x6e])](()=>{_0x42c916||_0x2efb9c(_0x225ba0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x26e6b3(){return _0x40dbbd[_0x225ba0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x225ba0([0x76,0x69,0x65,0x77])][_0x225ba0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x225ba0([0x61,0x75,0x74,0x6f]);}function _0x574d7d(){_0x40dbbd[_0x225ba0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x225ba0([0x76,0x69,0x65,0x77])][_0x225ba0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x225ba0([0x61,0x75,0x74,0x6f]);}}function _0x7f772c(_0x3bd3fc){const _0xeaef9a=[new window[(_0x225ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19b687=>setTimeout(_0x19b687,0x5356b2f6^_0x8fb20b)),_0x550e11[_0x225ba0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x225ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2777ef=>{let _0x117ba8=0x0;_0x40dbbd[_0x225ba0([0x6d,0x6f,0x64,0x65,0x6c])][_0x225ba0([0x6f,0x6e])](_0x225ba0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x426a26,_0x4b1400)=>{_0x4b1400[0x0][_0x225ba0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x117ba8++,_0x117ba8==(0x535f8dc2^_0x8fb20b)&&(_0x2777ef(),_0x426a26[_0x225ba0([0x6f,0x66,0x66])]());});}))];return window[_0x225ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x225ba0([0x72,0x61,0x63,0x65])](_0xeaef9a)[_0x225ba0([0x74,0x68,0x65,0x6e])](()=>_0x3bd3fc);}async function _0xba6714(){await _0x550e11,_0x40dbbd[_0x225ba0([0x6d,0x6f,0x64,0x65,0x6c])][_0x225ba0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2352ec,_0x40dbbd[_0x225ba0([0x6d,0x6f,0x64,0x65,0x6c])][_0x225ba0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2352ec,_0x40dbbd[_0x225ba0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x225ba0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x31a305(_0x15b9b2){const _0x4b2984=_0x1f96b0();_0x40dbbd[_0x4b2984]=_0x225ba0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x15b9b2,_0x15b9b2!=_0x225ba0([0x56,0x61,0x6c,0x69,0x64])&&_0xba6714();}function _0x1f96b0(){const _0x4b2f12=window[_0x225ba0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x225ba0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x225ba0([0x6e,0x6f,0x77])]())[_0x225ba0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x225ba0([0x2e]),'');let _0x223b5d=_0x225ba0([0x68]);for(let _0x52cf07=0x0;_0x52cf07<_0x4b2f12[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52cf07+=0x2){let _0x2f03a1=window[_0x225ba0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b2f12[_0x225ba0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52cf07,_0x52cf07+0x2));_0x2f03a1>=_0x582ea2[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f03a1-=_0x582ea2[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x223b5d+=_0x582ea2[_0x2f03a1];}return _0x223b5d;}function _0x242fad(){const _0xce6e2d=_0x44daa2[_0x225ba0([0x73,0x70,0x6c,0x69,0x74])](_0x225ba0([0x2e]));if(0x3!=_0xce6e2d[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3dbd2a(_0xce6e2d[0x1]);function _0x3dbd2a(_0x1390f7){const _0x425f80=_0x19bdc3(_0x1390f7);return _0x425f80&&_0x2872bc()?_0x425f80:null;function _0x2872bc(){const _0x96716b=_0x425f80[_0x225ba0([0x6a,0x74,0x69])],_0x4c24db=window[_0x225ba0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x96716b[_0x225ba0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x96716b[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5d5951={..._0x425f80,[_0x225ba0([0x6a,0x74,0x69])]:_0x96716b[_0x225ba0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x96716b[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5d5951[_0x225ba0([0x76,0x63])],_0x83217e(_0x5d5951)==_0x4c24db;}}}async function _0x2b17fd(){let _0x29bbcd=!0x0;try{const _0x4af399=_0x44daa2[_0x225ba0([0x73,0x70,0x6c,0x69,0x74])](_0x225ba0([0x2e])),[_0x44bba0,_0x4d4ebd,_0x123e74]=_0x4af399;return _0x586f44(_0x44bba0),await _0x4496b2(_0x44bba0,_0x4d4ebd,_0x123e74),_0x29bbcd;}catch{return!0x1;}function _0x586f44(_0x334a3c){const _0x3c2852=_0x19bdc3(_0x334a3c);_0x3c2852&&_0x3c2852[_0x225ba0([0x61,0x6c,0x67])]==_0x225ba0([0x45,0x53,0x32,0x35,0x36])||(_0x29bbcd=!0x1);}async function _0x4496b2(_0x6b7f92,_0x362841,_0x53c034){const _0x5d346e=window[_0x225ba0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x225ba0([0x66,0x72,0x6f,0x6d])](_0x310027(_0x53c034),_0x5553f2=>_0x5553f2[_0x225ba0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x279238=new window[(_0x225ba0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x225ba0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x6b7f92+_0x225ba0([0x2e])+_0x362841),_0x5ac40b=window[_0x225ba0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x225ba0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ac40b)return;const _0x5ab9d4=await _0x5ac40b[_0x225ba0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x225ba0([0x6a,0x77,0x6b]),_0x2ef618,{[_0x225ba0([0x6e,0x61,0x6d,0x65])]:_0x225ba0([0x45,0x43,0x44,0x53,0x41]),[_0x225ba0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x225ba0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x225ba0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ac40b[_0x225ba0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x225ba0([0x6e,0x61,0x6d,0x65])]:_0x225ba0([0x45,0x43,0x44,0x53,0x41]),[_0x225ba0([0x68,0x61,0x73,0x68])]:{[_0x225ba0([0x6e,0x61,0x6d,0x65])]:_0x225ba0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5ab9d4,_0x5d346e,_0x279238)||(_0x29bbcd=!0x1);}}function _0x19bdc3(_0x372be9){return _0x372be9[_0x225ba0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x225ba0([0x65,0x79]))?JSON[_0x225ba0([0x70,0x61,0x72,0x73,0x65])](_0x310027(_0x372be9)):null;}function _0x310027(_0xeb16){return window[_0x225ba0([0x61,0x74,0x6f,0x62])](_0xeb16[_0x225ba0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x225ba0([0x2b]))[_0x225ba0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x225ba0([0x2f])));}function _0x83217e(_0x8a2070){let _0x5f3781=0x1505;function _0x33e1e8(_0x5647de){for(let _0x537cd0=0x0;_0x537cd0<_0x5647de[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x537cd0++){const _0x5879f2=_0x5647de[_0x225ba0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x537cd0);_0x5f3781=(_0x5f3781<<0x5)+_0x5f3781+_0x5879f2,_0x5f3781&=_0x5f3781;}}function _0x485172(_0x1b5962){Array[_0x225ba0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1b5962)?_0x1b5962[_0x225ba0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x485172):_0x1b5962&&typeof _0x1b5962==_0x225ba0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x225ba0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1b5962)[_0x225ba0([0x73,0x6f,0x72,0x74])]()[_0x225ba0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a0770,_0x28fea9])=>{_0x33e1e8(_0x5a0770),_0x485172(_0x28fea9);}):_0x33e1e8(window[_0x225ba0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1b5962));}return _0x485172(_0x8a2070),_0x5f3781>>>0x0;}function _0x1e51c7(_0x10ff19){return _0x10ff19[_0x225ba0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x225ba0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x225ba0([0x30]));}function _0x487933(_0x259ce0){return _0x259ce0[_0x225ba0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x225ba0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x225ba0([0x6a,0x6f,0x69,0x6e])]('');}function _0x2352ec(){}function _0x225ba0(_0x3e2315){const _0x3598b8=_0x431a;return _0x3e2315[_0x3598b8(0x162)](_0x1fd253=>String[_0x3598b8(0x14c)](_0x1fd253))[_0x3598b8(0x17a)]('');}_0x31a305(await _0x579f0a());}(this);}[_0x3a1449(0x15d)](){const _0x323b50=_0x3a1449,_0x3ad422=this[_0x323b50(0x148)][_0x323b50(0x175)][_0x323b50(0x157)];_0x3ad422[_0x323b50(0x17e)](_0x323b50(0x177))&&_0x3ad422[_0x323b50(0x171)](_0x323b50(0x177),{'allowAttributes':[_0x323b50(0x12e)]}),_0x3ad422[_0x323b50(0x17e)](_0x323b50(0x14b))&&_0x3ad422[_0x323b50(0x171)](_0x323b50(0x14b),{'allowAttributes':[_0x323b50(0x12e)]});}[_0x3a1449(0x154)](){const _0x5ab5b9=_0x3a1449,_0x4ac32f=this[_0x5ab5b9(0x148)];_0x4ac32f[_0x5ab5b9(0x17d)][_0x5ab5b9(0x138)](_0x5ab5b9(0x174))[_0x5ab5b9(0x136)]({'model':_0x5ab5b9(0x12e),'view':_0x5ab5b9(0x14f)}),_0x4ac32f[_0x5ab5b9(0x17d)][_0x5ab5b9(0x138)](_0x5ab5b9(0x144))[_0x5ab5b9(0x181)]({'model':{'key':_0x5ab5b9(0x12e),'value':_0x4963b6=>_0x4963b6[_0x5ab5b9(0x153)](_0x5ab5b9(0x14f))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57b363=_0x4ac32f[_0x5ab5b9(0x16b)][_0x5ab5b9(0x178)](_0x5ab5b9(0x14a));_0x57b363&&this[_0x5ab5b9(0x152)](_0x57b363,_0x5ab5b9(0x15a),(_0xd4ebb9,[_0x3cf818,_0x3df079])=>{const _0x596ee5=_0x5ab5b9;_0x3cf818[_0x596ee5(0x169)](_0x596ee5(0x12e),_0x3df079);});}[_0x3a1449(0x149)](){const _0x1f4f4f=_0x3a1449,_0x555654=this[_0x1f4f4f(0x148)][_0x1f4f4f(0x179)][_0x1f4f4f(0x178)](_0x1f4f4f(0x147))||{},_0x2ea2ce=this[_0x1f4f4f(0x148)][_0x1f4f4f(0x179)][_0x1f4f4f(0x178)](_0x1f4f4f(0x145))||'';this[_0x1f4f4f(0x180)]=_0x54a165(_0x100429[_0x1f4f4f(0x168)],_0x1f4f4f(0x167),{..._0x555654,'pubkey':_0x2ea2ce,'ctx-name':_0x1f4f4f(0x15f)+this[_0x1f4f4f(0x156)],'sourceList':'','imgOnly':_0x1f4f4f(0x130),'removeCopyright':_0x1f4f4f(0x130),'localeName':this[_0x1f4f4f(0x148)][_0x1f4f4f(0x164)][_0x1f4f4f(0x14d)],'externalSourcesEmbedCss':_0x1f4f4f(0x15e)}),this[_0x1f4f4f(0x180)][_0x1f4f4f(0x13f)]=_0xa553df=>{const _0x36744b=_0x1f4f4f;if(_0x36744b(0x13a)==_0xa553df)return _0x36744b(0x151);},_0x100429[_0x1f4f4f(0x168)][_0x1f4f4f(0x134)][_0x1f4f4f(0x16c)](this[_0x1f4f4f(0x180)]);}[_0x3a1449(0x165)](){const _0x31e86e=_0x3a1449;this[_0x31e86e(0x159)]=_0x54a165(_0x100429[_0x31e86e(0x168)],_0x31e86e(0x173),{'ctx-name':_0x31e86e(0x15f)+this[_0x31e86e(0x156)]}),_0x100429[_0x31e86e(0x168)][_0x31e86e(0x134)][_0x31e86e(0x16c)](this[_0x31e86e(0x159)]);}[_0x3a1449(0x132)](){const _0x1e485b=_0x3a1449,_0x4f48c4=this[_0x1e485b(0x148)][_0x1e485b(0x16b)][_0x1e485b(0x178)](_0x1e485b(0x155));_0x4f48c4&&this[_0x1e485b(0x152)](_0x4f48c4,_0x1e485b(0x135),()=>{const _0x564d81=_0x1e485b,_0xe55be8=this[_0x564d81(0x148)][_0x564d81(0x175)][_0x564d81(0x168)][_0x564d81(0x170)][_0x564d81(0x142)]();_0xe55be8&&_0xe55be8[_0x564d81(0x153)](_0x564d81(0x12e))&&this[_0x564d81(0x148)][_0x564d81(0x158)][_0x564d81(0x166)][_0x564d81(0x15c)](_0x564d81(0x160),()=>{const _0x4779f1=_0x564d81;_0x204f15(this[_0x4779f1(0x148)],_0xe55be8);});});const _0x1ed5ac=this[_0x1e485b(0x148)][_0x1e485b(0x16b)][_0x1e485b(0x178)](_0x1e485b(0x13c));_0x1ed5ac&&this[_0x1e485b(0x152)](_0x1ed5ac,_0x1e485b(0x135),()=>{const _0x5b604c=_0x1e485b,_0x943862=this[_0x5b604c(0x148)][_0x5b604c(0x175)][_0x5b604c(0x168)][_0x5b604c(0x170)][_0x5b604c(0x142)]();_0x943862&&_0x943862[_0x5b604c(0x153)](_0x5b604c(0x12e))&&this[_0x5b604c(0x148)][_0x5b604c(0x158)][_0x5b604c(0x166)][_0x5b604c(0x15c)](_0x5b604c(0x160),()=>{const _0x59bba3=_0x5b604c;_0x204f15(this[_0x59bba3(0x148)],_0x943862);});});}}
|
|
23
|
+
const _0x10a20a=_0x1a06;(function(_0x2e767c,_0x613369){const _0x3e7ae2=_0x1a06,_0x1d3cc1=_0x2e767c();while(!![]){try{const _0x14e744=parseInt(_0x3e7ae2(0x86))/0x1*(parseInt(_0x3e7ae2(0xb0))/0x2)+-parseInt(_0x3e7ae2(0x96))/0x3+-parseInt(_0x3e7ae2(0xa5))/0x4*(-parseInt(_0x3e7ae2(0x81))/0x5)+-parseInt(_0x3e7ae2(0x91))/0x6+-parseInt(_0x3e7ae2(0xc0))/0x7+-parseInt(_0x3e7ae2(0xa4))/0x8*(parseInt(_0x3e7ae2(0x7c))/0x9)+-parseInt(_0x3e7ae2(0x90))/0xa*(-parseInt(_0x3e7ae2(0x7f))/0xb);if(_0x14e744===_0x613369)break;else _0x1d3cc1['push'](_0x1d3cc1['shift']());}catch(_0x1e977d){_0x1d3cc1['push'](_0x1d3cc1['shift']());}}}(_0x2720,0xd2867));import{Plugin as _0x2357f2}from'ckeditor5/src/core.js';import{Dialog as _0x2a20fe}from'ckeditor5/src/ui.js';import{createElement as _0x53af2c,global as _0x255f78,uid as _0x90b579}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x529c5f}from'./uploadcarecommand.js';function _0x1a06(_0x383c6a,_0x190461){const _0x2720e8=_0x2720();return _0x1a06=function(_0x1a06cc,_0x296901){_0x1a06cc=_0x1a06cc-0x74;let _0xfc1d6d=_0x2720e8[_0x1a06cc];return _0xfc1d6d;},_0x1a06(_0x383c6a,_0x190461);}function _0x2720(){const _0x1ed765=['_ctxElement','downcast','config','get','afterInit','fromCharCode','uploader-','add','uploadcare','isRegistered','isOfficialPlugin','insertImage','_initSchema','1704WRobqL','4tIanGR','true','editor','for','uc-config','editing','imageBlock','input[uploadcare-file-input]','_initCtx','isPremiumPlugin','once','45454jAJwpz','getSelectedElement','body','destroy','conversion','contentLanguage','extend','pluginName','commands','data-uc-image-id','_initConversion','_configElement','document','iconHrefResolver','imageInline','elementToAttribute','1789718UUrchI','cleanupImage','attributeToAttribute','execute','view','closeMax','render','configElement','listenTo','upcast','uc-upload-ctx-provider','model','ucContextId','querySelector','remove','_initConfig','join','schema','30159qytwEg','map','init','8701iNWPdK','locale','616380sUbRXa','selection','requires','uploadcare.pubkey','appendChild','31EYnKTo','getAttribute','UploadcareEditing','\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','uploadcareImageReplace','replaceImageSource','#uc-icon-arrow-down','ctxElement','uploadcareImageId','PictureEditing','22150uTsgwT','4434468kfFFVS','removeAttribute','href','uploadcare.uploader','_initImageProcessingIndicator','27156SaMrLY'];_0x2720=function(){return _0x1ed765;};return _0x2720();}import{UploadcareUploadAdapter as _0x83fac2}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x233a2e}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2357f2{[_0x10a20a(0xbb)]=null;[_0x10a20a(0x97)]=null;static get[_0x10a20a(0xb7)](){const _0x14efa1=_0x10a20a;return _0x14efa1(0x88);}static get[_0x10a20a(0x83)](){const _0x427be7=_0x10a20a;return[_0x427be7(0x8f),_0x83fac2,_0x2a20fe];}static get[_0x10a20a(0xa1)](){return!0x0;}static get[_0x10a20a(0xae)](){return!0x0;}[_0x10a20a(0x76)];get[_0x10a20a(0xc7)](){const _0xbfae8=_0x10a20a;return this[_0xbfae8(0xbb)];}get[_0x10a20a(0x8d)](){const _0x454b7e=_0x10a20a;return this[_0x454b7e(0x97)];}constructor(_0x154960){const _0x48c41a=_0x10a20a;super(_0x154960),this[_0x48c41a(0x76)]=_0x90b579();}[_0x10a20a(0x7e)](){const _0x384d9e=_0x10a20a,_0xdfe811=this[_0x384d9e(0xa7)];_0xdfe811[_0x384d9e(0xb8)][_0x384d9e(0x9e)](_0x384d9e(0x9f),new _0x529c5f(_0xdfe811));}[_0x10a20a(0x9b)](){const _0x2928cd=_0x10a20a;this[_0x2928cd(0xa3)](),this[_0x2928cd(0xba)](),this[_0x2928cd(0x79)](),this[_0x2928cd(0xad)](),this[_0x2928cd(0x95)](),this[_0x2928cd(0xc8)](this[_0x2928cd(0xa7)],_0x2928cd(0xb3),()=>{const _0x46e5d5=_0x2928cd;this[_0x46e5d5(0xbb)]&&(this[_0x46e5d5(0xbb)][_0x46e5d5(0x78)](),this[_0x46e5d5(0xbb)]=null),this[_0x46e5d5(0x97)]&&(this[_0x46e5d5(0x97)][_0x46e5d5(0x78)](),this[_0x46e5d5(0x97)]=null);const _0xf5044b=_0x255f78[_0x46e5d5(0xbc)][_0x46e5d5(0x77)](_0x46e5d5(0xac));_0xf5044b&&_0xf5044b[_0x46e5d5(0x78)]();}),async function(_0x59cfd6){const _0x28046f=_0x2059bf([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]),_0x5acb88=0x535f8c3a,_0x5bf009=0x5358fb92^_0x5acb88,_0x4cb68e=window[_0x2059bf([0x44,0x61,0x74,0x65])][_0x2059bf([0x6e,0x6f,0x77])](),_0x10c175=_0x59cfd6[_0x2059bf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb044fe=new window[(_0x2059bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46d7bc=>{_0x10c175[_0x2059bf([0x6f,0x6e,0x63,0x65])](_0x2059bf([0x72,0x65,0x61,0x64,0x79]),_0x46d7bc);}),_0x5bc22f={[_0x2059bf([0x6b,0x74,0x79])]:_0x2059bf([0x45,0x43]),[_0x2059bf([0x75,0x73,0x65])]:_0x2059bf([0x73,0x69,0x67]),[_0x2059bf([0x63,0x72,0x76])]:_0x2059bf([0x50,0x2d,0x32,0x35,0x36]),[_0x2059bf([0x78])]:_0x2059bf([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]),[_0x2059bf([0x79])]:_0x2059bf([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]),[_0x2059bf([0x61,0x6c,0x67])]:_0x2059bf([0x45,0x53,0x32,0x35,0x36])},_0x53df22=_0x10c175[_0x2059bf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2059bf([0x67,0x65,0x74])](_0x2059bf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x473892(){let _0x53dacf,_0x5a1118=null,_0x4fda35=null;try{if(_0x53df22==_0x2059bf([0x47,0x50,0x4c]))return _0x2059bf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x53dacf=_0x32cacd(),!_0x53dacf)return _0x2059bf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x53dacf[_0x2059bf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4fda35=_0x4f5d2a(_0x53dacf[_0x2059bf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x53dacf[_0x2059bf([0x6a,0x74,0x69])])),await _0x1436a0()?_0x3ede9a()?_0x3239e3()?_0x2059bf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xbff507()?(_0x53dacf[_0x2059bf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2059bf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5a1118=_0x5c90fc(_0x2059bf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x53dacf[_0x2059bf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2059bf([0x74,0x72,0x69,0x61,0x6c])&&(_0x5a1118=_0x5c90fc(_0x2059bf([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x21227c()):_0x2059bf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2059bf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2059bf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2059bf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3239e3(){const _0x373014=[_0x2059bf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2059bf([0x74,0x72,0x69,0x61,0x6c])][_0x2059bf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53dacf[_0x2059bf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4cb68e/0x3e8:0xe10*_0x5bf009;return _0x53dacf[_0x2059bf([0x65,0x78,0x70])]<_0x373014;}function _0x3ede9a(){const _0x2f2cb8=_0x53dacf[_0x2059bf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2f2cb8&&(!!_0x2f2cb8[_0x2059bf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2059bf([0x2a]))||!!_0x2f2cb8[_0x2059bf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2059bf([0x55,0x50,0x4c,0x43])));}function _0xbff507(){const _0x4657e4=_0x1a06,_0x459e69=_0x53dacf[_0x2059bf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x459e69||0x0==_0x459e69[_0x2059bf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x142078}=new URL(window[_0x2059bf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4657e4(0x93)]);if(_0x459e69[_0x2059bf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x142078))return!0x0;const _0x1ec478=_0x142078[_0x2059bf([0x73,0x70,0x6c,0x69,0x74])](_0x2059bf([0x2e]));return _0x459e69[_0x2059bf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ec8e1=>_0x4ec8e1[_0x2059bf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2059bf([0x2a])))[_0x2059bf([0x6d,0x61,0x70])](_0x3beb50=>_0x3beb50[_0x2059bf([0x73,0x70,0x6c,0x69,0x74])](_0x2059bf([0x2e])))[_0x2059bf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ea52a=>_0x3ea52a[_0x2059bf([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ec478[_0x2059bf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2059bf([0x6d,0x61,0x70])](_0x4ba802=>Array(_0x1ec478[_0x2059bf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4ba802[_0x2059bf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2059bf([0x66,0x69,0x6c,0x6c])](_0x4ba802[0x0]===_0x2059bf([0x2a])?_0x2059bf([0x2a]):'')[_0x2059bf([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4ba802))[_0x2059bf([0x73,0x6f,0x6d,0x65])](_0x540095=>_0x1ec478[_0x2059bf([0x65,0x76,0x65,0x72,0x79])]((_0x209dbd,_0x439ac5)=>_0x540095[_0x439ac5]===_0x209dbd||_0x540095[_0x439ac5]===_0x2059bf([0x2a])));}function _0x21227c(){return _0x5a1118&&_0x4fda35?new window[(_0x2059bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56246d,_0x322026)=>{_0x5a1118[_0x2059bf([0x74,0x68,0x65,0x6e])](_0x56246d,_0x322026),_0x4fda35[_0x2059bf([0x74,0x68,0x65,0x6e])](_0x5838f2=>{_0x5838f2!=_0x2059bf([0x56,0x61,0x6c,0x69,0x64])&&_0x56246d(_0x5838f2);},_0x322026);}):_0x5a1118||_0x4fda35||_0x2059bf([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4f5d2a(_0x430aaf,_0x2dd11e){return new window[(_0x2059bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5970d3=>{if(_0x3f5881())return _0x5970d3(_0x2059bf([0x56,0x61,0x6c,0x69,0x64]));_0x2be779(),_0x10c175[_0x2059bf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2059bf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4bf39=!0x1;const _0x16ec73=_0x90b579();function _0x15890d(_0x4e6738){return!!_0x4e6738&&(typeof _0x4e6738===_0x2059bf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e6738===_0x2059bf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e6738[_0x2059bf([0x74,0x68,0x65,0x6e])]===_0x2059bf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e6738[_0x2059bf([0x63,0x61,0x74,0x63,0x68])]===_0x2059bf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xe3ce36(_0x3d6e06){_0x363efc(_0x3d6e06)[_0x2059bf([0x74,0x68,0x65,0x6e])](_0x2ef142=>{if(!_0x2ef142||_0x2ef142[_0x2059bf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2059bf([0x6f,0x6b]))return _0x2059bf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5cb9f5(_0x3ffc3f(_0x16ec73+_0x2dd11e))!=_0x2ef142[_0x2059bf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2059bf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2059bf([0x56,0x61,0x6c,0x69,0x64]);})[_0x2059bf([0x74,0x68,0x65,0x6e])](_0x470ab1=>(_0x2aa578(),_0x470ab1),()=>{const _0x5ec4a6=_0x2199fa();return null==_0x5ec4a6?(_0x2aa578(),_0x2059bf([0x56,0x61,0x6c,0x69,0x64])):_0x2059bf(_0x4cb68e-_0x5ec4a6>(0x7753083a^_0x5acb88)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2059bf([0x74,0x68,0x65,0x6e])](_0x5970d3)[_0x2059bf([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5970d3(_0x2059bf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x33791f=0x536962ba^_0x5acb88;function _0x2aa578(){const _0x547e9a=_0x2059bf([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cb9f5(_0x3ffc3f(_0x430aaf)),_0x4b0756=_0x846819(_0x5cb9f5(window[_0x2059bf([0x4d,0x61,0x74,0x68])][_0x2059bf([0x63,0x65,0x69,0x6c])](_0x4cb68e/_0x33791f)));window[_0x2059bf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2059bf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x547e9a,_0x4b0756);}function _0x2199fa(){const _0x3a8ab3=_0x2059bf([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cb9f5(_0x3ffc3f(_0x430aaf)),_0x45f661=window[_0x2059bf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2059bf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a8ab3);return _0x45f661?window[_0x2059bf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x846819(_0x45f661),0x10)*_0x33791f:null;}function _0x363efc(_0x4c2143){return new window[(_0x2059bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18aa03,_0x28aa61)=>{_0x4c2143[_0x2059bf([0x74,0x68,0x65,0x6e])](_0x18aa03,_0x28aa61),window[_0x2059bf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28aa61,0x535e58fa^_0x5acb88);});}}_0x10c175[_0x2059bf([0x6f,0x6e])](_0x2059bf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x249af4,_0x4574f3)=>{if(_0x4574f3[0x0]!=_0x430aaf)return _0x5970d3(_0x2059bf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4574f3[0x1]={..._0x4574f3[0x1],[_0x2059bf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x16ec73};},{[_0x2059bf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2059bf([0x68,0x69,0x67,0x68])}),_0x10c175[_0x2059bf([0x6f,0x6e])](_0x2059bf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58b13f=>{_0x15890d(_0x58b13f[_0x2059bf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4bf39=!0x0,_0xe3ce36(_0x58b13f[_0x2059bf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2059bf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2059bf([0x6c,0x6f,0x77])}),_0xb044fe[_0x2059bf([0x74,0x68,0x65,0x6e])](()=>{_0x4bf39||_0x5970d3(_0x2059bf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f5881(){return _0x10c175[_0x2059bf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2059bf([0x76,0x69,0x65,0x77])][_0x2059bf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2059bf([0x61,0x75,0x74,0x6f]);}function _0x2be779(){_0x10c175[_0x2059bf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2059bf([0x76,0x69,0x65,0x77])][_0x2059bf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2059bf([0x61,0x75,0x74,0x6f]);}}function _0x5c90fc(_0x518996){const _0x18ec61=[new window[(_0x2059bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bde66=>setTimeout(_0x2bde66,0x5356b2f6^_0x5acb88)),_0xb044fe[_0x2059bf([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2059bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12526d=>{let _0x51ef3f=0x0;_0x10c175[_0x2059bf([0x6d,0x6f,0x64,0x65,0x6c])][_0x2059bf([0x6f,0x6e])](_0x2059bf([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x214125,_0x54f3ce)=>{_0x54f3ce[0x0][_0x2059bf([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x51ef3f++,_0x51ef3f==(0x535f8dc2^_0x5acb88)&&(_0x12526d(),_0x214125[_0x2059bf([0x6f,0x66,0x66])]());});}))];return window[_0x2059bf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2059bf([0x72,0x61,0x63,0x65])](_0x18ec61)[_0x2059bf([0x74,0x68,0x65,0x6e])](()=>_0x518996);}async function _0x519381(){await _0xb044fe,_0x10c175[_0x2059bf([0x6d,0x6f,0x64,0x65,0x6c])][_0x2059bf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x23ac54,_0x10c175[_0x2059bf([0x6d,0x6f,0x64,0x65,0x6c])][_0x2059bf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x23ac54,_0x10c175[_0x2059bf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2059bf([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x79bc8e(_0x5af7b4){const _0x408f5e=_0xba49b8();_0x10c175[_0x408f5e]=_0x2059bf([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5af7b4,_0x5af7b4!=_0x2059bf([0x56,0x61,0x6c,0x69,0x64])&&_0x519381();}function _0xba49b8(){const _0x1ea1da=window[_0x2059bf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2059bf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2059bf([0x6e,0x6f,0x77])]())[_0x2059bf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2059bf([0x2e]),'');let _0x1130cf=_0x2059bf([0x68]);for(let _0x2f7d5e=0x0;_0x2f7d5e<_0x1ea1da[_0x2059bf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f7d5e+=0x2){let _0xd4f3bd=window[_0x2059bf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ea1da[_0x2059bf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f7d5e,_0x2f7d5e+0x2));_0xd4f3bd>=_0x28046f[_0x2059bf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xd4f3bd-=_0x28046f[_0x2059bf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1130cf+=_0x28046f[_0xd4f3bd];}return _0x1130cf;}function _0x32cacd(){const _0x28ccfa=_0x53df22[_0x2059bf([0x73,0x70,0x6c,0x69,0x74])](_0x2059bf([0x2e]));if(0x3!=_0x28ccfa[_0x2059bf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ee697(_0x28ccfa[0x1]);function _0x5ee697(_0x420f71){const _0x58b28a=_0x528bed(_0x420f71);return _0x58b28a&&_0x4caa9d()?_0x58b28a:null;function _0x4caa9d(){const _0x1e4d1a=_0x58b28a[_0x2059bf([0x6a,0x74,0x69])],_0x1e5e83=window[_0x2059bf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e4d1a[_0x2059bf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e4d1a[_0x2059bf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f2890={..._0x58b28a,[_0x2059bf([0x6a,0x74,0x69])]:_0x1e4d1a[_0x2059bf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1e4d1a[_0x2059bf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f2890[_0x2059bf([0x76,0x63])],_0x3ffc3f(_0x2f2890)==_0x1e5e83;}}}async function _0x1436a0(){let _0x50bcca=!0x0;try{const _0x590313=_0x53df22[_0x2059bf([0x73,0x70,0x6c,0x69,0x74])](_0x2059bf([0x2e])),[_0x5e821e,_0x558058,_0x307842]=_0x590313;return _0x50520f(_0x5e821e),await _0x16de38(_0x5e821e,_0x558058,_0x307842),_0x50bcca;}catch{return!0x1;}function _0x50520f(_0x4642ed){const _0x5eb8f0=_0x528bed(_0x4642ed);_0x5eb8f0&&_0x5eb8f0[_0x2059bf([0x61,0x6c,0x67])]==_0x2059bf([0x45,0x53,0x32,0x35,0x36])||(_0x50bcca=!0x1);}async function _0x16de38(_0x495770,_0x1dc078,_0x19e149){const _0x89b0e=window[_0x2059bf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2059bf([0x66,0x72,0x6f,0x6d])](_0x5eb954(_0x19e149),_0x6f75f4=>_0x6f75f4[_0x2059bf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e445d=new window[(_0x2059bf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2059bf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x495770+_0x2059bf([0x2e])+_0x1dc078),_0x2371f3=window[_0x2059bf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2059bf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2371f3)return;const _0x35acb4=await _0x2371f3[_0x2059bf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2059bf([0x6a,0x77,0x6b]),_0x5bc22f,{[_0x2059bf([0x6e,0x61,0x6d,0x65])]:_0x2059bf([0x45,0x43,0x44,0x53,0x41]),[_0x2059bf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2059bf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2059bf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2371f3[_0x2059bf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2059bf([0x6e,0x61,0x6d,0x65])]:_0x2059bf([0x45,0x43,0x44,0x53,0x41]),[_0x2059bf([0x68,0x61,0x73,0x68])]:{[_0x2059bf([0x6e,0x61,0x6d,0x65])]:_0x2059bf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x35acb4,_0x89b0e,_0x1e445d)||(_0x50bcca=!0x1);}}function _0x528bed(_0x20bc0f){return _0x20bc0f[_0x2059bf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2059bf([0x65,0x79]))?JSON[_0x2059bf([0x70,0x61,0x72,0x73,0x65])](_0x5eb954(_0x20bc0f)):null;}function _0x5eb954(_0x79073b){return window[_0x2059bf([0x61,0x74,0x6f,0x62])](_0x79073b[_0x2059bf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2059bf([0x2b]))[_0x2059bf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2059bf([0x2f])));}function _0x3ffc3f(_0x2e3713){let _0x2e9d9d=0x1505;function _0x536f33(_0x4c560d){for(let _0x24cdf2=0x0;_0x24cdf2<_0x4c560d[_0x2059bf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24cdf2++){const _0x1888b5=_0x4c560d[_0x2059bf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24cdf2);_0x2e9d9d=(_0x2e9d9d<<0x5)+_0x2e9d9d+_0x1888b5,_0x2e9d9d&=_0x2e9d9d;}}function _0x142ca3(_0x4cea1e){Array[_0x2059bf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4cea1e)?_0x4cea1e[_0x2059bf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x142ca3):_0x4cea1e&&typeof _0x4cea1e==_0x2059bf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2059bf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4cea1e)[_0x2059bf([0x73,0x6f,0x72,0x74])]()[_0x2059bf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17b560,_0x85c868])=>{_0x536f33(_0x17b560),_0x142ca3(_0x85c868);}):_0x536f33(window[_0x2059bf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4cea1e));}return _0x142ca3(_0x2e3713),_0x2e9d9d>>>0x0;}function _0x5cb9f5(_0x37638a){return _0x37638a[_0x2059bf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2059bf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2059bf([0x30]));}function _0x846819(_0x4e491f){return _0x4e491f[_0x2059bf([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2059bf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2059bf([0x6a,0x6f,0x69,0x6e])]('');}function _0x23ac54(){}function _0x2059bf(_0x212780){const _0x11948d=_0x1a06;return _0x212780[_0x11948d(0x7d)](_0x4a4313=>String[_0x11948d(0x9c)](_0x4a4313))[_0x11948d(0x7a)]('');}_0x79bc8e(await _0x473892());}(this);}[_0x10a20a(0xa3)](){const _0x390d37=_0x10a20a,_0x57cbf6=this[_0x390d37(0xa7)][_0x390d37(0x75)][_0x390d37(0x7b)];_0x57cbf6[_0x390d37(0xa0)](_0x390d37(0xab))&&_0x57cbf6[_0x390d37(0xb6)](_0x390d37(0xab),{'allowAttributes':[_0x390d37(0x8e)]}),_0x57cbf6[_0x390d37(0xa0)](_0x390d37(0xbe))&&_0x57cbf6[_0x390d37(0xb6)](_0x390d37(0xbe),{'allowAttributes':[_0x390d37(0x8e)]});}[_0x10a20a(0xba)](){const _0x338bec=_0x10a20a,_0x1f6c4e=this[_0x338bec(0xa7)];_0x1f6c4e[_0x338bec(0xb4)][_0x338bec(0xa8)](_0x338bec(0x98))[_0x338bec(0xc2)]({'model':_0x338bec(0x8e),'view':_0x338bec(0xb9)}),_0x1f6c4e[_0x338bec(0xb4)][_0x338bec(0xa8)](_0x338bec(0xc9))[_0x338bec(0xbf)]({'model':{'key':_0x338bec(0x8e),'value':_0x5205fe=>_0x5205fe[_0x338bec(0x87)](_0x338bec(0xb9))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4ea60a=_0x1f6c4e[_0x338bec(0xb8)][_0x338bec(0x9a)](_0x338bec(0x8b));_0x4ea60a&&this[_0x338bec(0xc8)](_0x4ea60a,_0x338bec(0xc1),(_0x557165,[_0x2bd595,_0x184311])=>{const _0x5376e9=_0x338bec;_0x2bd595[_0x5376e9(0x92)](_0x5376e9(0x8e),_0x184311);});}[_0x10a20a(0x79)](){const _0x52406d=_0x10a20a,_0x5c1d3e=this[_0x52406d(0xa7)][_0x52406d(0x99)][_0x52406d(0x9a)](_0x52406d(0x94))||{},_0x4ec151=this[_0x52406d(0xa7)][_0x52406d(0x99)][_0x52406d(0x9a)](_0x52406d(0x84))||'';this[_0x52406d(0xbb)]=_0x53af2c(_0x255f78[_0x52406d(0xbc)],_0x52406d(0xa9),{..._0x5c1d3e,'pubkey':_0x4ec151,'ctx-name':_0x52406d(0x9d)+this[_0x52406d(0x76)],'sourceList':'','imgOnly':_0x52406d(0xa6),'removeCopyright':_0x52406d(0xa6),'localeName':this[_0x52406d(0xa7)][_0x52406d(0x80)][_0x52406d(0xb5)],'externalSourcesEmbedCss':_0x52406d(0x89)}),this[_0x52406d(0xbb)][_0x52406d(0xbd)]=_0x14955e=>{const _0x48704b=_0x52406d;if(_0x48704b(0xc5)==_0x14955e)return _0x48704b(0x8c);},_0x255f78[_0x52406d(0xbc)][_0x52406d(0xb2)][_0x52406d(0x85)](this[_0x52406d(0xbb)]);}[_0x10a20a(0xad)](){const _0x4963b6=_0x10a20a;this[_0x4963b6(0x97)]=_0x53af2c(_0x255f78[_0x4963b6(0xbc)],_0x4963b6(0x74),{'ctx-name':_0x4963b6(0x9d)+this[_0x4963b6(0x76)]}),_0x255f78[_0x4963b6(0xbc)][_0x4963b6(0xb2)][_0x4963b6(0x85)](this[_0x4963b6(0x97)]);}[_0x10a20a(0x95)](){const _0x317e8b=_0x10a20a,_0xc722da=this[_0x317e8b(0xa7)][_0x317e8b(0xb8)][_0x317e8b(0x9a)](_0x317e8b(0xa2));_0xc722da&&this[_0x317e8b(0xc8)](_0xc722da,_0x317e8b(0xc3),()=>{const _0x1f2080=_0x317e8b,_0xe71303=this[_0x1f2080(0xa7)][_0x1f2080(0x75)][_0x1f2080(0xbc)][_0x1f2080(0x82)][_0x1f2080(0xb1)]();_0xe71303&&_0xe71303[_0x1f2080(0x87)](_0x1f2080(0x8e))&&this[_0x1f2080(0xa7)][_0x1f2080(0xaa)][_0x1f2080(0xc4)][_0x1f2080(0xaf)](_0x1f2080(0xc6),()=>{const _0x85c6e7=_0x1f2080;_0x233a2e(this[_0x85c6e7(0xa7)],_0xe71303);});});const _0x24e52c=this[_0x317e8b(0xa7)][_0x317e8b(0xb8)][_0x317e8b(0x9a)](_0x317e8b(0x8a));_0x24e52c&&this[_0x317e8b(0xc8)](_0x24e52c,_0x317e8b(0xc3),()=>{const _0x2cb5ff=_0x317e8b,_0x321ce1=this[_0x2cb5ff(0xa7)][_0x2cb5ff(0x75)][_0x2cb5ff(0xbc)][_0x2cb5ff(0x82)][_0x2cb5ff(0xb1)]();_0x321ce1&&_0x321ce1[_0x2cb5ff(0x87)](_0x2cb5ff(0x8e))&&this[_0x2cb5ff(0xa7)][_0x2cb5ff(0xaa)][_0x2cb5ff(0xc4)][_0x2cb5ff(0xaf)](_0x2cb5ff(0xc6),()=>{const _0x3f8ec1=_0x2cb5ff;_0x233a2e(this[_0x3f8ec1(0xa7)],_0x321ce1);});});}}
|