@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250328.0 → 0.0.0-nightly-20250330.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 _0x250316,Command as _0xd68474}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1c5f58,IconGooglePhotos as _0x42269b,IconGoogleDrive as _0x5ce73b,IconFacebook as _0x23f888,IconDropbox as _0x192ecb,IconUploadcareLink as _0xc973a0,IconUploadcareImageUpload as _0x52d343,IconError as et,IconUploadcareImageEdit as _0x32d3a7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x10621d,MenuBarMenuListItemButtonView as _0x2f099b,View as _0x44669b,FocusCycler as _0x1c7fa4,Dialog as _0x4ae455,DialogViewPosition as _0x57e5b7,SpinnerView as _0x1088d0,IconView as at,Notification as _0x12a662}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x227277,DomEmitterMixin as _0x4d9018,global as _0x1c8818,getAncestors as _0x46eac6,ObservableMixin as _0xfc0757,createElement as _0x378640,uid as _0x4dc1d8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x39dc6c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4ebb7e,info as _0x2fffbe}from'@uploadcare/upload-client';import*as _0x4b7c85 from'@uploadcare/file-uploader';var o=function(_0x2a06c6){return _0x2a06c6['Local']='local',_0x2a06c6['URL']='url',_0x2a06c6['Dropbox']='dropbox',_0x2a06c6['GDrive']='gdrive',_0x2a06c6['Facebook']='facebook',_0x2a06c6['GPhotos']='gphotos',_0x2a06c6['OneDrive']='onedrive',_0x2a06c6;}({});function _(_0x4e1da1,_0x233283,_0x14a468){const t=_0x4e1da1['t'],_0x38042b=_0x4e1da1['t'];switch(_0x233283){case o['Local']:return{'text':_0x38042b('Insert'===_0x14a468?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x38042b('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x14a468?_0x38042b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x38042b('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x14a468?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x14a468?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x14a468?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x14a468?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x14a468?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x233283;}}class e extends _0x250316{['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 _0x54b581=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3c0d70;for(const _0x1004fc in _0x54b581){const _0x52cac3=_0x1004fc,_0x3d82b8=_0x54b581[_0x52cac3];if('uploadcareLicenseKeyValid'==_0x3d82b8||'uploadcareLicenseKeyInvalid'==_0x3d82b8||'uploadcareLicenseKeyExpired'==_0x3d82b8||'uploadcareLicenseKeyDomainLimit'==_0x3d82b8||'uploadcareLicenseKeyNotAllowed'==_0x3d82b8||'uploadcareLicenseKeyEvaluationLimit'==_0x3d82b8||'uploadcareLicenseKeyTrialLimit'==_0x3d82b8||'uploadcareLicenseKeyUsageLimit'==_0x3d82b8){delete _0x54b581[_0x52cac3],_0x3c0d70=_0x3d82b8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3c0d70&&_0x54b581['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3c0d70&&_0x54b581['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3c0d70&&_0x54b581['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3c0d70&&_0x54b581['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3c0d70&&_0x54b581['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3c0d70&&_0x54b581['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3c0d70&&_0x54b581['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xa77d96}=this,_0x45cb4a=_0xa77d96['commands']['get']('uploadcare');if(!_0x45cb4a)return;const _0x1f2fb7=this['_normalizeConfigSourceList'](_0xa77d96['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x356041,_0x34980a)=>{const _0x307b92=this['_getIntegrationKey'](_0x34980a['type']);return _0x356041[_0x307b92]||(_0x356041[_0x307b92]=[]),_0x356041[_0x307b92]['push'](_0x34980a),_0x356041;},{});_0xa77d96['plugins']['has']('ImageInsertUI')&&_0xa77d96['commands']['get']('uploadcare')&&Object['entries'](_0x1f2fb7)['forEach'](([_0x36683b,_0x606e67])=>{_0xa77d96['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x36683b,'observable':()=>_0x45cb4a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x606e67),'formViewCreator':()=>this['_createDropdownButtons'](_0x606e67),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x606e67),'override':'assetManager'!==_0x36683b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1f1104){const {locale:_0x23e30c}=this['editor'];return _0x1f1104['map'](_0x40d548=>{const _0x4f8a74=_(_0x23e30c,_0x40d548,'Insert');switch(_0x40d548){case o['Local']:return{'icon':_0x52d343,'type':o['Local'],..._0x4f8a74};case o['URL']:return{'icon':_0xc973a0,'type':o['URL'],..._0x4f8a74};case o['Dropbox']:return{'icon':_0x192ecb,'type':o['Dropbox'],..._0x4f8a74};case o['Facebook']:return{'icon':_0x23f888,'type':o['Facebook'],..._0x4f8a74};case o['GDrive']:return{'icon':_0x5ce73b,'type':o['GDrive'],..._0x4f8a74};case o['GPhotos']:return{'icon':_0x42269b,'type':o['GPhotos'],..._0x4f8a74};case o['OneDrive']:return{'icon':_0x1c5f58,'type':o['OneDrive'],..._0x4f8a74};}});}['_getIntegrationKey'](_0x4b5d86){switch(_0x4b5d86){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xfe8984,_0x5255cc){const _0x2f9f0a=this['editor'],_0x3d1ba9=new _0xfe8984(_0x2f9f0a['locale']),_0x34c0ca=_0x2f9f0a['commands']['get']('uploadcare');return _0x3d1ba9['bind']('isEnabled')['to'](_0x34c0ca),_0x3d1ba9['on']('execute',()=>{_0x34c0ca['execute'](_0x5255cc);}),_0x3d1ba9;}['_createToolbarButton'](_0xe0e6b4){const {locale:_0x467368}=this['editor'],_0xc45a1b=this['editor']['plugins']['get']('ImageInsertUI'),_0x2eda37=_0xe0e6b4[0x0],_0x35a2f4=this['_createButton'](_0x10621d,_0x2eda37['type']);return _0x35a2f4['icon']=_0x2eda37['icon'],_0x35a2f4['bind']('label')['to'](_0xc45a1b,'isImageSelected',_0x1b19c1=>_(_0x467368,_0x2eda37['type'],_0x1b19c1?'Replace':'Insert')['text']),_0x35a2f4['tooltip']=!0x0,_0x35a2f4;}['_createDropdownButtons'](_0x3cfcb7){const {locale:_0x5bdfa1}=this['editor'],_0x2242d3=this['editor']['plugins']['get']('ImageInsertUI');return _0x3cfcb7['map'](_0xbc01c7=>{const _0x37d5e9=this['_createButton'](_0x10621d,_0xbc01c7['type']);return _0x37d5e9['withText']=!0x0,_0x37d5e9['icon']=_0xbc01c7['icon'],_0x37d5e9['bind']('label')['to'](_0x2242d3,'isImageSelected',_0x1257db=>_(_0x5bdfa1,_0xbc01c7['type'],_0x1257db?'Replace':'Insert')['text']),_0x37d5e9;});}['_createMenuBarButtons'](_0x3f1b2e){return _0x3f1b2e['map'](_0x3d3b5b=>{const _0x3a4235=this['_createButton'](_0x2f099b,_0x3d3b5b['type']);return _0x3a4235['icon']=_0x3d3b5b['icon'],_0x3a4235['label']=_0x3d3b5b['shortText'],_0x3a4235;});}}class q extends _0x44669b{['focusTracker'];['focusCycler'];constructor(_0x4d4bf9){super(_0x4d4bf9),this['focusTracker']=new _0x227277(),this['focusCycler']=new _0x1c7fa4({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x27c14a){super(_0x27c14a),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x215a9e,_0x1b20f7){const _0x501fb9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x58f3e0=>_0x58f3e0<=_0x1b20f7)['map'](_0x239aa0=>_0x215a9e['replace'](/\/$/,'')+'/-/resize/'+_0x239aa0+'x/\x20'+_0x239aa0+'w');return{'imageFallbackUrl':_0x215a9e,'imageSources':[{'srcset':_0x501fb9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1b20f7+'px)\x20100vw,\x20'+_0x1b20f7+'px','type':'image/webp'}]};}function A(_0x5a2ef4,_0x23466f,_0x3da603){const _0x244139=_0x5a2ef4['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x244139?parseInt(_0x244139[0x1],0xa):_0x23466f,'height':_0x244139?parseInt(_0x244139[0x2],0xa):_0x3da603};}function m(_0xe09a52,_0x2d669b){const _0x471d06=Object['create'](_0x4d9018),_0x4b55c1=_0xe09a52['plugins']['get']('ImageUtils'),_0x31d739=_0xe09a52['editing']['mapper']['toViewElement'](_0x2d669b),_0x75aa7c=_0x4b55c1['findViewImgElement'](_0x31d739),_0x310501=_0xe09a52['editing']['view']['domConverter']['viewToDom'](_0x75aa7c),_0x4c6f89=_0x2d669b['getAttribute']('width'),_0x349d03=_0x2d669b['getAttribute']('height'),_0x41491b='image-processing';_0xe09a52['editing']['view']['change'](_0x16779e=>{_0x16779e['addClass'](_0x41491b,_0x31d739),_0x16779e['setStyle']('aspect-ratio',_0x4c6f89+'/'+_0x349d03,_0x75aa7c);}),_0x471d06['listenTo'](_0x310501,'load',()=>{_0x471d06['stopListening'](_0x310501,'load'),_0xe09a52['editing']['view']['change'](_0x35e4c5=>{_0x35e4c5['removeClass'](_0x41491b,_0x31d739),_0x35e4c5['removeStyle']('aspect-ratio',_0x75aa7c);});});}function R(_0x3631ad){if(Array['isArray'](_0x3631ad)){const _0x1240c0=_0x3631ad['map'](R);return _0x5a6c86=>_0x1240c0['some'](_0x15c45e=>_0x15c45e(_0x5a6c86));}if('origin'==_0x3631ad){const _0x15ff28=_0x1c8818['window']['location']['origin'];return _0x38d3ca=>new URL(_0x38d3ca,_0x1c8818['document']['baseURI'])['origin']==_0x15ff28;}return'function'==typeof _0x3631ad?_0x3631ad:_0x3631ad instanceof RegExp?_0x357749=>!(!_0x357749['match'](_0x3631ad)&&!_0x357749['replace'](/^https?:\/\//,'')['match'](_0x3631ad)):()=>!0x1;}function F(_0x268aca,_0x336fa0){return _0x46eac6(_0x268aca['target'])['includes'](_0x336fa0);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0xfc0757(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x121319,_0x3ba5ae,_0x305e63){super(),this['_editor']=_0x121319,this['_editing']=_0x3ba5ae,this['_dialog']=_0x121319['plugins']['get'](_0x4ae455),this['_api']=_0x3ba5ae['ctxElement']['getAPI'](),this['_type']=_0x305e63,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:_0x148e61,model:_0xe6c43b}=this['_editor'],_0x15112e=_0xe6c43b['document']['selection']['getSelectedElement'](),_0x282532=_0x15112e&&(_0x15112e['is']('element','imageBlock')||_0x15112e['is']('element','imageInline'));this['_formView']=new S(_0x148e61),this['_dialog']['show']({'id':'uploadCare','icon':_0x52d343,'title':_(_0x148e61,this['_type'],_0x282532?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x57e5b7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xf7f4d6=>!F(_0xf7f4d6,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x17c990}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5d8b77=>{const _0x1b3c93=_0x17c990['length'];for(const _0x404448 of _0x17c990){const _0x421184=_0x404448===_0x17c990[_0x1b3c93-0x1],{cdnUrl:_0x364ebf,fileInfo:_0x5b8e2e}=_0x404448;if(!_0x364ebf||!_0x5b8e2e)continue;const {width:_0x494545,height:_0x557839}=_0x5b8e2e['imageInfo'],_0x45517f=A(_0x364ebf,_0x494545,_0x557839),_0x45083e=E(_0x364ebf,_0x45517f['width']),_0x35654c={'id':_0x5b8e2e['uuid'],'type':'image','attributes':{'imageDimension':_0x45517f,..._0x45083e}};this['_insertAsset'](_0x35654c,_0x421184,_0x5d8b77);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4a0e5b=>{'idle'===_0x4a0e5b['detail']['status']&&!_0x4a0e5b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x289c6d,_0x2d7386,_0x455fff){const _0x228101=this['_editor']['model']['document']['selection'],_0x96d5f0=_0x228101['getSelectedElement'](),_0x3e65b4=!(!_0x96d5f0||!_0x96d5f0['is']('element','imageInline'));_0x455fff['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x289c6d,_0x3e65b4),_0x2d7386||_0x455fff['setSelection'](_0x228101['getLastPosition']());}['_insertImage'](_0x2125e0,_0x2f10ea){const _0x1f2e5d=this['_editor'],{imageDimension:_0x482702,imageFallbackUrl:_0x1565c6,imageSources:_0x91c5}=_0x2125e0['attributes'];_0x1f2e5d['execute']('insertImage',{'imageType':_0x2f10ea?'imageInline':null,'source':{'uploadcareImageId':_0x2125e0['id'],'src':_0x1565c6,'sources':_0x91c5,..._0x482702}});}}class n extends _0xd68474{['_editing'];['_controller']=null;static get['requires'](){return[_0x4ae455,i];}constructor(_0x254ff1){super(_0x254ff1),this['_editing']=_0x254ff1['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x401288){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x401288);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x595020,publicKey:_0x194a05,signal:_0x194884,onProgress:_0x54783f}){return _0x4ebb7e(_0x595020,{'publicKey':_0x194a05,'store':'auto','signal':_0x194884,'onProgress':_0x54783f});}static['getInfo'](_0x579f02,_0x563000){return _0x2fffbe(_0x579f02,_0x563000);}}class p extends _0x250316{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x39dc6c,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x39a67f=this['editor'];if(!!!_0x39a67f['config']['get']('uploadcare'))return;_0x39a67f['plugins']['get'](_0x39dc6c)['createUploadAdapter']=_0x3d1396=>new x(_0x3d1396,_0x39a67f),_0x39a67f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2711af,{imageElement:_0x52b0cc,data:_0x2cb390})=>{_0x39a67f['model']['change'](_0x5b7a5c=>{_0x5b7a5c['setAttribute']('uploadcareImageId',_0x2cb390['uploadcareImageId'],_0x52b0cc);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x15e11a,_0x3ea418){this['loader']=_0x15e11a,this['editor']=_0x3ea418,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x54d80c=this['editor']['config']['get']('uploadcare.pubkey'),_0x3042bb=await this['loader']['file'];return C['upload']({'file':_0x3042bb,'publicKey':_0x54d80c,'signal':this['controller']['signal'],'onProgress':_0x39bcf8=>{_0x39bcf8&&_0x39bcf8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x39bcf8['value']);}})['then'](async _0x2c98a8=>{const {imageFallbackUrl:_0x47e3d5,imageSources:_0x110ad1}=E(_0x2c98a8['cdnUrl'],_0x2c98a8['imageInfo']['width']);return{'uploadcareImageId':_0x2c98a8['uuid'],'default':_0x47e3d5,'sources':_0x110ad1};})['catch'](()=>{const _0x3db350=t('Cannot\x20upload\x20file:')+('\x20'+_0x3042bb['name']+'.');return Promise['reject'](_0x3db350);});}['abort'](){this['controller']['abort']();}}class i extends _0x250316{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4ae455];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x1e1406=this['editor'];_0x1e1406['commands']['add']('uploadcare',new n(_0x1e1406));}['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 _0x2ee23c=_0x1c8818['document']['querySelector']('input[uploadcare-file-input]');_0x2ee23c&&_0x2ee23c['remove']();}),async function(_0x2f52c3){const _0x558bf3=_0x13099a([0x31,0x68,0x30,0x45,0x59,0x4f,0x48,0x78,0x72,0x38,0x34,0x75,0x74,0x47,0x69,0x65,0x77,0x36,0x57,0x63,0x55,0x4b,0x58,0x7a,0x46,0x37,0x56,0x70,0x6d,0x67,0x6b,0x4d,0x6a,0x42,0x51,0x4a,0x4c,0x41,0x35,0x52,0x33,0x71,0x43,0x53,0x50,0x6f,0x6e,0x6c,0x39,0x49,0x66,0x76,0x32,0x79,0x62,0x44,0x54,0x4e,0x61,0x73,0x5a,0x64]),_0x1cace9=0x6351c8fd,_0x35f2e1=0x6356ab95^_0x1cace9,_0x551769=window[_0x13099a([0x44,0x61,0x74,0x65])][_0x13099a([0x6e,0x6f,0x77])](),_0x1ff9fc=_0x2f52c3[_0x13099a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x7762d6=new window[(_0x13099a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2749c8=>{_0x1ff9fc[_0x13099a([0x6f,0x6e,0x63,0x65])](_0x13099a([0x72,0x65,0x61,0x64,0x79]),_0x2749c8);}),_0x3f9611={[_0x13099a([0x6b,0x74,0x79])]:_0x13099a([0x45,0x43]),[_0x13099a([0x75,0x73,0x65])]:_0x13099a([0x73,0x69,0x67]),[_0x13099a([0x63,0x72,0x76])]:_0x13099a([0x50,0x2d,0x32,0x35,0x36]),[_0x13099a([0x78])]:_0x13099a([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]),[_0x13099a([0x79])]:_0x13099a([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]),[_0x13099a([0x61,0x6c,0x67])]:_0x13099a([0x45,0x53,0x32,0x35,0x36])},_0x1dc6b8=_0x1ff9fc[_0x13099a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13099a([0x67,0x65,0x74])](_0x13099a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1e1848(){let _0x27fe92,_0x1e6385=null,_0x52bdda=null;try{if(_0x1dc6b8==_0x13099a([0x47,0x50,0x4c]))return _0x13099a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x27fe92=_0x54c501(),!_0x27fe92)return _0x13099a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x27fe92[_0x13099a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x52bdda=_0x359783(_0x27fe92[_0x13099a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x27fe92[_0x13099a([0x6a,0x74,0x69])])),await _0x5f5a35()?_0x3a5ffb()?_0x1fd01e()?_0x13099a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x218600()?(_0x27fe92[_0x13099a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13099a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e6385=_0xb0f98e(_0x13099a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x27fe92[_0x13099a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13099a([0x74,0x72,0x69,0x61,0x6c])&&(_0x1e6385=_0xb0f98e(_0x13099a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x565240()):_0x13099a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13099a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13099a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4b14e8){return _0x13099a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1fd01e(){const _0x4e45f2=[_0x13099a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13099a([0x74,0x72,0x69,0x61,0x6c])][_0x13099a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27fe92[_0x13099a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x551769/0x3e8:0xe10*_0x35f2e1;return _0x27fe92[_0x13099a([0x65,0x78,0x70])]<_0x4e45f2;}function _0x3a5ffb(){const _0x56d338=_0x27fe92[_0x13099a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x56d338&&(!!_0x56d338[_0x13099a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13099a([0x2a]))||!!_0x56d338[_0x13099a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13099a([0x55,0x50,0x4c,0x43])));}function _0x218600(){const _0x30ef51=_0x27fe92[_0x13099a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x30ef51||0x0==_0x30ef51[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30a4dc}=new URL(window[_0x13099a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x30ef51[_0x13099a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30a4dc))return!0x0;const _0x5d80b1=_0x30a4dc[_0x13099a([0x73,0x70,0x6c,0x69,0x74])](_0x13099a([0x2e]));return _0x30ef51[_0x13099a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xdf5e9a=>_0xdf5e9a[_0x13099a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13099a([0x2a])))[_0x13099a([0x6d,0x61,0x70])](_0x515636=>_0x515636[_0x13099a([0x73,0x70,0x6c,0x69,0x74])](_0x13099a([0x2e])))[_0x13099a([0x73,0x6f,0x6d,0x65])](_0x36be3e=>_0x5d80b1[_0x13099a([0x65,0x76,0x65,0x72,0x79])]((_0x5bf7a8,_0x2ad9eb)=>_0x36be3e[_0x2ad9eb]===_0x5bf7a8||_0x36be3e[_0x2ad9eb]===_0x13099a([0x2a])));}function _0x565240(){return _0x1e6385&&_0x52bdda?new window[(_0x13099a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b3905,_0x37a083)=>{_0x1e6385[_0x13099a([0x74,0x68,0x65,0x6e])](_0x1b3905,_0x37a083),_0x52bdda[_0x13099a([0x74,0x68,0x65,0x6e])](_0x404462=>{_0x404462!=_0x13099a([0x56,0x61,0x6c,0x69,0x64])&&_0x1b3905(_0x404462);},_0x37a083);}):_0x1e6385||_0x52bdda||_0x13099a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x359783(_0xc162dd,_0x2aa2a7){return new window[(_0x13099a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c6d97=>{if(_0x41133f())return _0x5c6d97(_0x13099a([0x56,0x61,0x6c,0x69,0x64]));_0x17d77b(),_0x1ff9fc[_0x13099a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13099a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x22c60c=!0x1;const _0x303592=_0x4dc1d8();function _0x772da0(_0x291cbb){return!!_0x291cbb&&(typeof _0x291cbb===_0x13099a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x291cbb===_0x13099a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x291cbb[_0x13099a([0x74,0x68,0x65,0x6e])]===_0x13099a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x291cbb[_0x13099a([0x63,0x61,0x74,0x63,0x68])]===_0x13099a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x32bbf4(_0x1d631e){_0x104964(_0x1d631e)[_0x13099a([0x74,0x68,0x65,0x6e])](_0x56d7d9=>{if(!_0x56d7d9||_0x56d7d9[_0x13099a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13099a([0x6f,0x6b]))return _0x13099a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x79c41b(_0x5d020c(_0x303592+_0x2aa2a7))!=_0x56d7d9[_0x13099a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13099a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13099a([0x56,0x61,0x6c,0x69,0x64]);})[_0x13099a([0x74,0x68,0x65,0x6e])](_0x4e1f69=>(_0x154b5e(),_0x4e1f69),()=>{const _0x2f9a07=_0x1955d8();return null==_0x2f9a07?(_0x154b5e(),_0x13099a([0x56,0x61,0x6c,0x69,0x64])):_0x13099a(_0x551769-_0x2f9a07>(0x475d4cfd^_0x1cace9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13099a([0x74,0x68,0x65,0x6e])](_0x5c6d97)[_0x13099a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c6d97(_0x13099a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24bc18=0x6367267d^_0x1cace9;function _0x154b5e(){const _0x5c065f=_0x13099a([0x6c,0x6c,0x63,0x74,0x2d])+_0x79c41b(_0x5d020c(_0xc162dd)),_0x988d91=_0x558459(_0x79c41b(window[_0x13099a([0x4d,0x61,0x74,0x68])][_0x13099a([0x63,0x65,0x69,0x6c])](_0x551769/_0x24bc18)));window[_0x13099a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13099a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c065f,_0x988d91);}function _0x1955d8(){const _0x3af98a=_0x13099a([0x6c,0x6c,0x63,0x74,0x2d])+_0x79c41b(_0x5d020c(_0xc162dd)),_0x4d5c10=window[_0x13099a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13099a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3af98a);return _0x4d5c10?window[_0x13099a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x558459(_0x4d5c10),0x10)*_0x24bc18:null;}function _0x104964(_0x135508){return new window[(_0x13099a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xdb238b,_0x276479)=>{_0x135508[_0x13099a([0x74,0x68,0x65,0x6e])](_0xdb238b,_0x276479),window[_0x13099a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x276479,0x63501c3d^_0x1cace9);});}}_0x1ff9fc[_0x13099a([0x6f,0x6e])](_0x13099a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1be697,_0x29c19e)=>{if(_0x29c19e[0x0]!=_0xc162dd)return _0x5c6d97(_0x13099a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x29c19e[0x1]={..._0x29c19e[0x1],[_0x13099a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x303592};},{[_0x13099a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13099a([0x68,0x69,0x67,0x68])}),_0x1ff9fc[_0x13099a([0x6f,0x6e])](_0x13099a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1889e8=>{_0x772da0(_0x1889e8[_0x13099a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x22c60c=!0x0,_0x32bbf4(_0x1889e8[_0x13099a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13099a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13099a([0x6c,0x6f,0x77])}),_0x7762d6[_0x13099a([0x74,0x68,0x65,0x6e])](()=>{_0x22c60c||_0x5c6d97(_0x13099a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x41133f(){return _0x1ff9fc[_0x13099a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13099a([0x76,0x69,0x65,0x77])][_0x13099a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13099a([0x61,0x75,0x74,0x6f]);}function _0x17d77b(){_0x1ff9fc[_0x13099a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13099a([0x76,0x69,0x65,0x77])][_0x13099a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13099a([0x61,0x75,0x74,0x6f]);}}function _0xb0f98e(_0x50a86c){const _0x4e3182=[new window[(_0x13099a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2635ac=>setTimeout(_0x2635ac,0x6358f631^_0x1cace9)),_0x7762d6[_0x13099a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13099a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31c305=>{let _0x383c14=0x0;_0x1ff9fc[_0x13099a([0x6d,0x6f,0x64,0x65,0x6c])][_0x13099a([0x6f,0x6e])](_0x13099a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x22e801,_0x22549a)=>{_0x22549a[0x0][_0x13099a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x383c14++,_0x383c14==(0x6351c905^_0x1cace9)&&(_0x31c305(),_0x22e801[_0x13099a([0x6f,0x66,0x66])]());});}))];return window[_0x13099a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13099a([0x72,0x61,0x63,0x65])](_0x4e3182)[_0x13099a([0x74,0x68,0x65,0x6e])](()=>_0x50a86c);}async function _0x34ddc9(){await _0x7762d6,_0x1ff9fc[_0x13099a([0x6d,0x6f,0x64,0x65,0x6c])][_0x13099a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x40691f,_0x1ff9fc[_0x13099a([0x6d,0x6f,0x64,0x65,0x6c])][_0x13099a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x40691f,_0x1ff9fc[_0x13099a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13099a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x57401e(_0x102f73){const _0x5aa9b9=_0x481cdd();_0x1ff9fc[_0x5aa9b9]=_0x13099a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x102f73,_0x102f73!=_0x13099a([0x56,0x61,0x6c,0x69,0x64])&&_0x34ddc9();}function _0x481cdd(){const _0x2eac2f=window[_0x13099a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13099a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13099a([0x6e,0x6f,0x77])]())[_0x13099a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13099a([0x2e]),'');let _0x564f3a=_0x13099a([0x68]);for(let _0xd83954=0x0;_0xd83954<_0x2eac2f[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd83954+=0x2){let _0x1514b3=window[_0x13099a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2eac2f[_0x13099a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd83954,_0xd83954+0x2));_0x1514b3>=_0x558bf3[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1514b3-=_0x558bf3[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x564f3a+=_0x558bf3[_0x1514b3];}return _0x564f3a;}function _0x54c501(){const _0x503a21=_0x1dc6b8[_0x13099a([0x73,0x70,0x6c,0x69,0x74])](_0x13099a([0x2e]));if(0x3!=_0x503a21[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x53571b(_0x503a21[0x1]);function _0x53571b(_0x55df0e){const _0x179027=_0x22f013(_0x55df0e);return _0x179027&&_0xe5a37b()?_0x179027:null;function _0xe5a37b(){const _0x229a54=_0x179027[_0x13099a([0x6a,0x74,0x69])],_0x412540=window[_0x13099a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x229a54[_0x13099a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x229a54[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x28fb6d={..._0x179027,[_0x13099a([0x6a,0x74,0x69])]:_0x229a54[_0x13099a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x229a54[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x28fb6d[_0x13099a([0x76,0x63])],_0x5d020c(_0x28fb6d)==_0x412540;}}}async function _0x5f5a35(){let _0x3f479b=!0x0;try{const _0x459f55=_0x1dc6b8[_0x13099a([0x73,0x70,0x6c,0x69,0x74])](_0x13099a([0x2e])),[_0x2bfc54,_0x33f67f,_0x23e26c]=_0x459f55;return _0x4d2302(_0x2bfc54),await _0x2fea4d(_0x2bfc54,_0x33f67f,_0x23e26c),_0x3f479b;}catch(_0x3c1861){return!0x1;}function _0x4d2302(_0x4496a0){const _0x295f07=_0x22f013(_0x4496a0);_0x295f07&&_0x295f07[_0x13099a([0x61,0x6c,0x67])]==_0x13099a([0x45,0x53,0x32,0x35,0x36])||(_0x3f479b=!0x1);}async function _0x2fea4d(_0x1d95a0,_0x298936,_0xf5e5d6){const _0x418cae=window[_0x13099a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13099a([0x66,0x72,0x6f,0x6d])](_0x3c3463(_0xf5e5d6),_0x24e1ab=>_0x24e1ab[_0x13099a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x489237=new window[(_0x13099a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13099a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d95a0+_0x13099a([0x2e])+_0x298936),_0x1b184f=window[_0x13099a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13099a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b184f)return;const _0x547122=await _0x1b184f[_0x13099a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13099a([0x6a,0x77,0x6b]),_0x3f9611,{[_0x13099a([0x6e,0x61,0x6d,0x65])]:_0x13099a([0x45,0x43,0x44,0x53,0x41]),[_0x13099a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13099a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13099a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b184f[_0x13099a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13099a([0x6e,0x61,0x6d,0x65])]:_0x13099a([0x45,0x43,0x44,0x53,0x41]),[_0x13099a([0x68,0x61,0x73,0x68])]:{[_0x13099a([0x6e,0x61,0x6d,0x65])]:_0x13099a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x547122,_0x418cae,_0x489237)||(_0x3f479b=!0x1);}}function _0x22f013(_0x32789d){return _0x32789d[_0x13099a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13099a([0x65,0x79]))?JSON[_0x13099a([0x70,0x61,0x72,0x73,0x65])](_0x3c3463(_0x32789d)):null;}function _0x3c3463(_0x100a1c){return window[_0x13099a([0x61,0x74,0x6f,0x62])](_0x100a1c[_0x13099a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13099a([0x2b]))[_0x13099a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13099a([0x2f])));}function _0x5d020c(_0x4b807d){let _0x4ad85f=0x1505;function _0xc4057f(_0x5e13aa){for(let _0x3083cf=0x0;_0x3083cf<_0x5e13aa[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3083cf++){const _0x50173a=_0x5e13aa[_0x13099a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3083cf);_0x4ad85f=(_0x4ad85f<<0x5)+_0x4ad85f+_0x50173a,_0x4ad85f&=_0x4ad85f;}}function _0x186fcc(_0x372dfe){Array[_0x13099a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x372dfe)?_0x372dfe[_0x13099a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x186fcc):_0x372dfe&&typeof _0x372dfe==_0x13099a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13099a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x372dfe)[_0x13099a([0x73,0x6f,0x72,0x74])]()[_0x13099a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x35f112,_0x126e11])=>{_0xc4057f(_0x35f112),_0x186fcc(_0x126e11);}):_0xc4057f(window[_0x13099a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x372dfe));}return _0x186fcc(_0x4b807d),_0x4ad85f>>>0x0;}function _0x79c41b(_0x328772){return _0x328772[_0x13099a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13099a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13099a([0x30]));}function _0x558459(_0x468c9d){return _0x468c9d[_0x13099a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13099a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13099a([0x6a,0x6f,0x69,0x6e])]('');}function _0x40691f(){}function _0x13099a(_0x6b7abf){return _0x6b7abf['map'](_0x18b50a=>String['fromCharCode'](_0x18b50a))['join']('');}_0x57401e(await _0x1e1848());}(this);}['_initSchema'](){const _0x241d17=this['editor']['model']['schema'];_0x241d17['isRegistered']('imageBlock')&&_0x241d17['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x241d17['isRegistered']('imageInline')&&_0x241d17['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x464a9e=this['editor'];_0x464a9e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x464a9e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x17ad67=>_0x17ad67['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x421623=_0x464a9e['commands']['get']('replaceImageSource');_0x421623&&this['listenTo'](_0x421623,'cleanupImage',(_0x2d5b6b,[_0x142e9b,_0x9a45f9])=>{_0x142e9b['removeAttribute']('uploadcareImageId',_0x9a45f9);});}['_initConfig'](){const _0x13553c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x28a200=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x378640(_0x1c8818['document'],'uc-config',{..._0x13553c,'pubkey':_0x28a200,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x3e9854=>{if('closeMax'==_0x3e9854)return'#uc-icon-arrow-down';},_0x1c8818['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x378640(_0x1c8818['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x1c8818['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xbb551c=this['editor']['commands']['get']('insertImage');_0xbb551c&&this['listenTo'](_0xbb551c,'execute',()=>{const _0x2380d5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2380d5&&_0x2380d5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2380d5);});});const _0x127c7d=this['editor']['commands']['get']('uploadcareImageReplace');_0x127c7d&&this['listenTo'](_0x127c7d,'execute',()=>{const _0x2e6471=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2e6471&&_0x2e6471['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2e6471);});});}}class u extends _0x250316{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3372c2){super(_0x3372c2),_0x3372c2['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x4b7c85['defineComponents'](_0x4b7c85);}}class ta extends _0x44669b{constructor(_0x396faf){super(_0x396faf);const t=_0x396faf['t'],_0x22b1eb=this['bindTemplate'],_0x4595e9=new _0x1088d0();_0x4595e9['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':[_0x4595e9,{'text':_0x22b1eb['to']('imageUploadProgress',_0x19e5d3=>t('Loading\x20image...')+'\x20('+(_0x19e5d3||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x44669b{constructor(_0x31cf05){super(_0x31cf05);const t=_0x31cf05['t'];this['set']('errorType',null);const _0x2a49b1=new _0x10621d(_0x31cf05);_0x2a49b1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2a49b1['withText']=!0x0,_0x2a49b1['class']='ck-button-action',_0x2a49b1['on']('execute',()=>{this['fire']('retry');}),_0x2a49b1['bind']('isVisible')['to'](this,'errorType',_0x1adcf1=>'NotFound'!==_0x1adcf1);const _0x36fc4b=new at();_0x36fc4b['content']=et,_0x36fc4b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2f9596=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':[_0x36fc4b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2f9596['to']('errorType',_0x479e53=>t('NotFound'!==_0x479e53?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2a49b1]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x44669b{constructor(_0x56e300,_0x5522fc){super(_0x56e300);const _0x1ae242=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5522fc,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1ae242['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x423494,_0x16d2df,_0x5d9aca){super(_0x423494),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x423494),this['_errorView']=new rt(_0x423494),this['_editingView']=new tt(_0x423494,_0x5d9aca),this['_focusableView']=new _0x44669b(_0x423494),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x16d2df),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'],_0x1e1448=>{this['_addUploadcareImageEditorListeners'](_0x1e1448);});}),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'](_0xff29e,_0x26ed6c){const _0x3909c2='uc-cloud-image-editor',_0x33e351=_0xff29e['querySelector'](_0x3909c2);if(_0x33e351)return _0x26ed6c(_0x33e351);const _0xa9a70a=new MutationObserver(_0x4c9090=>{const _0x35033d=_0x4c9090['filter'](_0x5b728a=>_0x5b728a['target']===_0xff29e&&_0x5b728a['addedNodes']['length']>0x0&&_0x5b728a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3909c2);_0x35033d['length']&&(_0xa9a70a['disconnect'](),_0x26ed6c(_0x35033d[0x0]['addedNodes'][0x0]));});_0xa9a70a['observe'](_0xff29e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4c20dd){_0x4c20dd['addEventListener']('apply',_0x310da4=>{this['fire']('apply',{'imageSrc':_0x310da4['detail']['cdnUrl']});}),_0x4c20dd['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class O extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xfc0757(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x359d2e,_0x3c6a93,_0x3d2403){super(),this['_editor']=_0x359d2e,this['_dialog']=_0x3c6a93,this['_imageElement']=_0x3d2403,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 _0x296890=this['_imageElement'],_0x26f2ec=_0x296890['getAttribute']('uploadcareImageId'),_0x1c888a=_0x296890['getAttribute']('src');if(_0x26f2ec)await this['_loadImageInfo'](_0x26f2ec,_0x1c888a);else{if(this['_imageCache']['has'](_0x1c888a)){const _0x5030f4=this['_imageCache']['get'](_0x1c888a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5030f4['url'],this['imageDimension']=_0x5030f4['dimension'],this['imageId']=_0x5030f4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xc379c0}=this['_editor'],t=_0xc379c0['t'],_0x3efad4=new Z(_0xc379c0,this['imageStatus'],this['_attributes']);_0x3efad4['bind']('status')['to'](this,'imageStatus'),_0x3efad4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3efad4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3efad4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3efad4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x32d3a7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3efad4,'position':_0x57e5b7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3efad4['focus']();},'onHide':()=>{_0x3efad4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x58ecd7=>!F(_0x58ecd7,_0x3efad4['element'])}});}['_loadImageInfo'](_0x30d51b,_0x5b28f7){return C['getInfo'](_0x30d51b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x16768d=>{const {width:_0x411649,height:_0x345bc3}=_0x16768d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b28f7,this['imageDimension']={'width':_0x411649,'height':_0x345bc3},this['imageId']=_0x30d51b;})['catch'](_0xd51278=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xd51278['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x37af18,_0x6a27f0){return this['_getImageAsFile'](_0x37af18)['then'](_0x21c8be=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x6a27f0['signal'],'file':_0x21c8be,'onProgress':_0x164a25=>{_0x164a25&&_0x164a25['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x164a25['value']));}}))['then'](_0x5b5f87=>{const {width:_0x351655,height:_0x24d39b}=_0x5b5f87['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b5f87['cdnUrl'],this['imageDimension']={'width':_0x351655,'height':_0x24d39b},this['imageId']=_0x5b5f87['uuid'],this['imageUploadProgress']=null;const _0x2ee913=_0x37af18['getAttribute']('src');this['_imageCache']['set'](_0x2ee913,{'id':_0x5b5f87['uuid'],'url':_0x5b5f87['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3f81f1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3f81f1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x255ea0,_0x5f4633){_0x255ea0['on']('apply',(_0x7bb9d8,_0x25b981)=>{this['_replaceImage'](_0x5f4633,_0x25b981['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x255ea0['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x255ea0['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x384926,_0x36f186,_0x2f0729){const _0x2e0f9f=this['_editor'],{width:_0x5444f8,height:_0x41b92b}=A(_0x36f186,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x74fe81,imageSources:_0xb841ae}=E(_0x36f186,_0x5444f8);_0x2e0f9f['model']['change'](_0x703e9=>{if('$graveyard'===_0x384926['root']['rootName']){_0x2e0f9f['execute']('insertImage',{'imageType':_0x384926['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x384926['getAttributes']()),'uploadcareImageId':_0x2f0729,'src':_0x74fe81,'sources':_0xb841ae,'width':_0x5444f8,'height':_0x41b92b}});const _0x5c2494=_0x384926['getChildren']();_0x384926=_0x2e0f9f['model']['document']['selection']['getSelectedElement']();for(const _0x4296ae of _0x5c2494)_0x703e9['append'](_0x703e9['cloneElement'](_0x4296ae),_0x384926);}else _0x703e9['setSelection'](_0x384926,'on'),_0x2e0f9f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x384926['getAttributes']()),'uploadcareImageId':_0x2f0729,'src':_0x74fe81,'sources':_0xb841ae,'width':_0x5444f8,'height':_0x41b92b},_0x384926);_0x703e9['setSelection'](_0x384926,'on');});}async['_getImageAsFile'](_0xf34bfd){const _0x564dbd=_0x1c8818['window'],_0x1c1860=_0x1c8818['document']['location']['href'],_0x401bc0=new _0x564dbd['URL'](_0xf34bfd['getAttribute']('src'),_0x1c1860);if('data:'===_0x401bc0['protocol']){const _0x732ab2=_0x401bc0['href']['split'](','),_0x1d9b70=_0x732ab2[0x0]['match'](/:(.*?);/)[0x1],_0x118bae=_0x1d9b70['split']('/')[0x1],_0x231144=_0x564dbd['atob'](_0x732ab2[_0x732ab2['length']-0x1]);let _0x2e9d7c=_0x231144['length'];const _0x5143ce=new _0x564dbd['Uint8Array'](_0x2e9d7c);for(;_0x2e9d7c--;)_0x5143ce[_0x2e9d7c]=_0x231144['charCodeAt'](_0x2e9d7c);return new _0x564dbd['File']([_0x5143ce],'image.'+_0x118bae,{'type':_0x1d9b70});}const _0x5886c1=_0x401bc0['href']['split']('/'),_0x4184c3=_0x5886c1[_0x5886c1['length']-0x1],_0x52e7df=_0x4184c3['split']('.')[0x1];return _0x564dbd['fetch'](_0x401bc0['href'])['then'](_0x16f82e=>_0x16f82e['clone']()['blob']())['then'](_0x4c7f7f=>new _0x564dbd['File']([_0x4c7f7f],_0x4184c3,{'type':'image/'+_0x52e7df}));}}class V extends _0xd68474{['imageEditController'];static get['requires'](){return[_0x4ae455];}['_isEditable'];constructor(_0x629fc3){super(_0x629fc3),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x266d52){const _0xe8c3dd=R(_0x266d52);return _0x494e20=>!(!_0x494e20||!_0x494e20['is']('element','imageBlock')&&!_0x494e20['is']('element','imageInline'))&&(!!_0x494e20['hasAttribute']('uploadcareImageId')||!!_0x494e20['hasAttribute']('src')&&_0xe8c3dd(_0x494e20['getAttribute']('src')));}(_0x629fc3['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x6a4a39=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x6a4a39);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5878f4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5878f4&&(_0x5878f4['is']('element','imageBlock')||_0x5878f4['is']('element','imageInline'))&&(this['imageEditController']=new O(this['editor'],this['editor']['plugins']['get'](_0x4ae455),_0x5878f4),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class X extends _0xd68474{['refresh'](){const _0x454099=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x454099&&(_0x454099['is']('element','imageBlock')||_0x454099['is']('element','imageInline')));}['execute'](_0x33eef4){const _0x5dbf43=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4f7344=>{_0x4f7344['setAttributes'](_0x33eef4,_0x5dbf43),_0x4f7344['removeAttribute']('srcset',_0x5dbf43),_0x4f7344['removeAttribute']('sizes',_0x5dbf43);});}}class g extends _0x250316{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x12a662,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2ab44c}=this;_0x2ab44c['commands']['add']('uploadcareImageEdit',new V(_0x2ab44c)),_0x2ab44c['commands']['add']('uploadcareImageReplace',new X(_0x2ab44c));}}class j extends _0x250316{['_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 _0x4e134c=this['editor'];_0x4e134c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3c05d3=>{const _0x325d3a=_0x4e134c['commands']['get']('uploadcareImageEdit'),_0x26c569=new _0x10621d(_0x3c05d3),t=_0x3c05d3['t'];return _0x26c569['set']({'icon':_0x32d3a7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x26c569['bind']('isEnabled')['to'](_0x325d3a),_0x26c569['bind']('isOn')['to'](_0x325d3a,'isActive'),this['listenTo'](_0x26c569,'execute',()=>{_0x4e134c['execute']('uploadcareImageEdit'),_0x4e134c['editing']['view']['focus']();}),_0x26c569;}),this['_initConfig']();}['_initConfig'](){const _0x132b41=_0x378640(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x132b41),this['listenTo'](this['editor'],'destroy',()=>{_0x132b41['remove']();});}}class P extends _0x250316{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x1d1957,Command as _0x2cac3d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xf69ae1,IconGooglePhotos as _0xe77442,IconGoogleDrive as _0xf94095,IconFacebook as _0x5f0976,IconDropbox as _0x23cbd3,IconUploadcareLink as _0x427f3a,IconUploadcareImageUpload as _0x507491,IconError as et,IconUploadcareImageEdit as _0x1a92b4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x120647,MenuBarMenuListItemButtonView as _0x2f4499,View as _0x443efe,FocusCycler as _0xdd2b6b,Dialog as _0x4fae02,DialogViewPosition as _0x18206f,SpinnerView as _0x53eee9,IconView as at,Notification as _0x2d9987}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x173ea9,DomEmitterMixin as _0x3572e0,global as _0x5454bb,getAncestors as _0x258636,ObservableMixin as _0xd4fbee,createElement as _0x40bb46,uid as _0x3e6133}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3a13d0}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xf4123b,info as _0x5eafb7}from'@uploadcare/upload-client';import*as _0xdec13a from'@uploadcare/file-uploader';var o=function(_0x4d391c){return _0x4d391c['Local']='local',_0x4d391c['URL']='url',_0x4d391c['Dropbox']='dropbox',_0x4d391c['GDrive']='gdrive',_0x4d391c['Facebook']='facebook',_0x4d391c['GPhotos']='gphotos',_0x4d391c['OneDrive']='onedrive',_0x4d391c;}({});function _(_0x341cb1,_0x1efd2e,_0x2b46aa){const t=_0x341cb1['t'],_0x1bc8ce=_0x341cb1['t'];switch(_0x1efd2e){case o['Local']:return{'text':_0x1bc8ce('Insert'===_0x2b46aa?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1bc8ce('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x2b46aa?_0x1bc8ce('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1bc8ce('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x2b46aa?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x2b46aa?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x2b46aa?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x2b46aa?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x2b46aa?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1efd2e;}}class e extends _0x1d1957{['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 _0x1f2057=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x354fe6;for(const _0x3a4b25 in _0x1f2057){const _0x58a691=_0x3a4b25,_0x6bcb22=_0x1f2057[_0x58a691];if('uploadcareLicenseKeyValid'==_0x6bcb22||'uploadcareLicenseKeyInvalid'==_0x6bcb22||'uploadcareLicenseKeyExpired'==_0x6bcb22||'uploadcareLicenseKeyDomainLimit'==_0x6bcb22||'uploadcareLicenseKeyNotAllowed'==_0x6bcb22||'uploadcareLicenseKeyEvaluationLimit'==_0x6bcb22||'uploadcareLicenseKeyTrialLimit'==_0x6bcb22||'uploadcareLicenseKeyUsageLimit'==_0x6bcb22){delete _0x1f2057[_0x58a691],_0x354fe6=_0x6bcb22,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x354fe6&&_0x1f2057['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x354fe6&&_0x1f2057['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x354fe6&&_0x1f2057['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x354fe6&&_0x1f2057['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x354fe6&&_0x1f2057['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x354fe6&&_0x1f2057['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x354fe6&&_0x1f2057['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4cdc77}=this,_0x35dbd9=_0x4cdc77['commands']['get']('uploadcare');if(!_0x35dbd9)return;const _0x1cf375=this['_normalizeConfigSourceList'](_0x4cdc77['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x49580e,_0x5637ae)=>{const _0x1ebe07=this['_getIntegrationKey'](_0x5637ae['type']);return _0x49580e[_0x1ebe07]||(_0x49580e[_0x1ebe07]=[]),_0x49580e[_0x1ebe07]['push'](_0x5637ae),_0x49580e;},{});_0x4cdc77['plugins']['has']('ImageInsertUI')&&_0x4cdc77['commands']['get']('uploadcare')&&Object['entries'](_0x1cf375)['forEach'](([_0x21d3ce,_0x28d43c])=>{_0x4cdc77['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x21d3ce,'observable':()=>_0x35dbd9,'buttonViewCreator':()=>this['_createToolbarButton'](_0x28d43c),'formViewCreator':()=>this['_createDropdownButtons'](_0x28d43c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x28d43c),'override':'assetManager'!==_0x21d3ce});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x500657){const {locale:_0x3f813a}=this['editor'];return _0x500657['map'](_0x16c6e9=>{const _0x353107=_(_0x3f813a,_0x16c6e9,'Insert');switch(_0x16c6e9){case o['Local']:return{'icon':_0x507491,'type':o['Local'],..._0x353107};case o['URL']:return{'icon':_0x427f3a,'type':o['URL'],..._0x353107};case o['Dropbox']:return{'icon':_0x23cbd3,'type':o['Dropbox'],..._0x353107};case o['Facebook']:return{'icon':_0x5f0976,'type':o['Facebook'],..._0x353107};case o['GDrive']:return{'icon':_0xf94095,'type':o['GDrive'],..._0x353107};case o['GPhotos']:return{'icon':_0xe77442,'type':o['GPhotos'],..._0x353107};case o['OneDrive']:return{'icon':_0xf69ae1,'type':o['OneDrive'],..._0x353107};}});}['_getIntegrationKey'](_0x41aef7){switch(_0x41aef7){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x56e2d0,_0x138451){const _0x96bf8e=this['editor'],_0x3aa313=new _0x56e2d0(_0x96bf8e['locale']),_0x2943ab=_0x96bf8e['commands']['get']('uploadcare');return _0x3aa313['bind']('isEnabled')['to'](_0x2943ab),_0x3aa313['on']('execute',()=>{_0x2943ab['execute'](_0x138451);}),_0x3aa313;}['_createToolbarButton'](_0x4a7448){const {locale:_0x392ede}=this['editor'],_0x2435b5=this['editor']['plugins']['get']('ImageInsertUI'),_0x3e1a03=_0x4a7448[0x0],_0x860b87=this['_createButton'](_0x120647,_0x3e1a03['type']);return _0x860b87['icon']=_0x3e1a03['icon'],_0x860b87['bind']('label')['to'](_0x2435b5,'isImageSelected',_0x4f6e8b=>_(_0x392ede,_0x3e1a03['type'],_0x4f6e8b?'Replace':'Insert')['text']),_0x860b87['tooltip']=!0x0,_0x860b87;}['_createDropdownButtons'](_0x5285c6){const {locale:_0x1a212d}=this['editor'],_0x3c8834=this['editor']['plugins']['get']('ImageInsertUI');return _0x5285c6['map'](_0x253529=>{const _0x35a51a=this['_createButton'](_0x120647,_0x253529['type']);return _0x35a51a['withText']=!0x0,_0x35a51a['icon']=_0x253529['icon'],_0x35a51a['bind']('label')['to'](_0x3c8834,'isImageSelected',_0x68267a=>_(_0x1a212d,_0x253529['type'],_0x68267a?'Replace':'Insert')['text']),_0x35a51a;});}['_createMenuBarButtons'](_0x58494a){return _0x58494a['map'](_0x569e12=>{const _0x5ee15d=this['_createButton'](_0x2f4499,_0x569e12['type']);return _0x5ee15d['icon']=_0x569e12['icon'],_0x5ee15d['label']=_0x569e12['shortText'],_0x5ee15d;});}}class q extends _0x443efe{['focusTracker'];['focusCycler'];constructor(_0x49f57c){super(_0x49f57c),this['focusTracker']=new _0x173ea9(),this['focusCycler']=new _0xdd2b6b({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x4ee4d0){super(_0x4ee4d0),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x1b27e7,_0x846822){const _0x493c3f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x35e232=>_0x35e232<=_0x846822)['map'](_0x39cc19=>_0x1b27e7['replace'](/\/$/,'')+'/-/resize/'+_0x39cc19+'x/\x20'+_0x39cc19+'w');return{'imageFallbackUrl':_0x1b27e7,'imageSources':[{'srcset':_0x493c3f['join'](',\x20'),'sizes':'(max-width:\x20'+_0x846822+'px)\x20100vw,\x20'+_0x846822+'px','type':'image/webp'}]};}function A(_0x31eb77,_0x56a618,_0x571ef1){const _0x703031=_0x31eb77['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x703031?parseInt(_0x703031[0x1],0xa):_0x56a618,'height':_0x703031?parseInt(_0x703031[0x2],0xa):_0x571ef1};}function m(_0x17053e,_0x12a41e){const _0x291612=Object['create'](_0x3572e0),_0x341e83=_0x17053e['plugins']['get']('ImageUtils'),_0x1b1783=_0x17053e['editing']['mapper']['toViewElement'](_0x12a41e),_0x3bf339=_0x341e83['findViewImgElement'](_0x1b1783),_0x2b888c=_0x17053e['editing']['view']['domConverter']['viewToDom'](_0x3bf339),_0x49ac2d=_0x12a41e['getAttribute']('width'),_0x5b1fd0=_0x12a41e['getAttribute']('height'),_0x525eb1='image-processing';_0x17053e['editing']['view']['change'](_0x41a718=>{_0x41a718['addClass'](_0x525eb1,_0x1b1783),_0x41a718['setStyle']('aspect-ratio',_0x49ac2d+'/'+_0x5b1fd0,_0x3bf339);}),_0x291612['listenTo'](_0x2b888c,'load',()=>{_0x291612['stopListening'](_0x2b888c,'load'),_0x17053e['editing']['view']['change'](_0x1855a9=>{_0x1855a9['removeClass'](_0x525eb1,_0x1b1783),_0x1855a9['removeStyle']('aspect-ratio',_0x3bf339);});});}function R(_0x566d5){if(Array['isArray'](_0x566d5)){const _0x54ed0f=_0x566d5['map'](R);return _0x1610aa=>_0x54ed0f['some'](_0x283e22=>_0x283e22(_0x1610aa));}if('origin'==_0x566d5){const _0x301562=_0x5454bb['window']['location']['origin'];return _0x1ae952=>new URL(_0x1ae952,_0x5454bb['document']['baseURI'])['origin']==_0x301562;}return'function'==typeof _0x566d5?_0x566d5:_0x566d5 instanceof RegExp?_0x4b9b2a=>!(!_0x4b9b2a['match'](_0x566d5)&&!_0x4b9b2a['replace'](/^https?:\/\//,'')['match'](_0x566d5)):()=>!0x1;}function F(_0x488df1,_0xcebec5){return _0x258636(_0x488df1['target'])['includes'](_0xcebec5);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xd4fbee(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x54fc1d,_0x4df595,_0x2b1f51){super(),this['_editor']=_0x54fc1d,this['_editing']=_0x4df595,this['_dialog']=_0x54fc1d['plugins']['get'](_0x4fae02),this['_api']=_0x4df595['ctxElement']['getAPI'](),this['_type']=_0x2b1f51,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:_0x2c0703,model:_0x2a5dcb}=this['_editor'],_0x46146c=_0x2a5dcb['document']['selection']['getSelectedElement'](),_0xdaa769=_0x46146c&&(_0x46146c['is']('element','imageBlock')||_0x46146c['is']('element','imageInline'));this['_formView']=new S(_0x2c0703),this['_dialog']['show']({'id':'uploadCare','icon':_0x507491,'title':_(_0x2c0703,this['_type'],_0xdaa769?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x18206f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x558319=>!F(_0x558319,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xea7645}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xe24658=>{const _0xeafe92=_0xea7645['length'];for(const _0x7e6ec8 of _0xea7645){const _0x1d033b=_0x7e6ec8===_0xea7645[_0xeafe92-0x1],{cdnUrl:_0x588411,fileInfo:_0x418058}=_0x7e6ec8;if(!_0x588411||!_0x418058)continue;const {width:_0x2af73d,height:_0x2b401c}=_0x418058['imageInfo'],_0x40359e=A(_0x588411,_0x2af73d,_0x2b401c),_0x216e62=E(_0x588411,_0x40359e['width']),_0x4faba6={'id':_0x418058['uuid'],'type':'image','attributes':{'imageDimension':_0x40359e,..._0x216e62}};this['_insertAsset'](_0x4faba6,_0x1d033b,_0xe24658);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xe58bf6=>{'idle'===_0xe58bf6['detail']['status']&&!_0xe58bf6['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1bbc16,_0x115c9e,_0x4e85a7){const _0x511ebf=this['_editor']['model']['document']['selection'],_0x39e015=_0x511ebf['getSelectedElement'](),_0x28f58f=!(!_0x39e015||!_0x39e015['is']('element','imageInline'));_0x4e85a7['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1bbc16,_0x28f58f),_0x115c9e||_0x4e85a7['setSelection'](_0x511ebf['getLastPosition']());}['_insertImage'](_0x3f80a9,_0xa22c5b){const _0x374535=this['_editor'],{imageDimension:_0x5858d2,imageFallbackUrl:_0xd27011,imageSources:_0x12843e}=_0x3f80a9['attributes'];_0x374535['execute']('insertImage',{'imageType':_0xa22c5b?'imageInline':null,'source':{'uploadcareImageId':_0x3f80a9['id'],'src':_0xd27011,'sources':_0x12843e,..._0x5858d2}});}}class n extends _0x2cac3d{['_editing'];['_controller']=null;static get['requires'](){return[_0x4fae02,i];}constructor(_0x2b095a){super(_0x2b095a),this['_editing']=_0x2b095a['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1ab085){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1ab085);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x53070e,publicKey:_0x5aab9b,signal:_0x238397,onProgress:_0x1bb49a}){return _0xf4123b(_0x53070e,{'publicKey':_0x5aab9b,'store':'auto','signal':_0x238397,'onProgress':_0x1bb49a});}static['getInfo'](_0x44acd8,_0x834cb0){return _0x5eafb7(_0x44acd8,_0x834cb0);}}class p extends _0x1d1957{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3a13d0,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x18dd41=this['editor'];if(!!!_0x18dd41['config']['get']('uploadcare'))return;_0x18dd41['plugins']['get'](_0x3a13d0)['createUploadAdapter']=_0x3557c2=>new x(_0x3557c2,_0x18dd41),_0x18dd41['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5a422d,{imageElement:_0x32546b,data:_0x313669})=>{_0x18dd41['model']['change'](_0xfdcd67=>{_0xfdcd67['setAttribute']('uploadcareImageId',_0x313669['uploadcareImageId'],_0x32546b);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x40f8a1,_0x3c7350){this['loader']=_0x40f8a1,this['editor']=_0x3c7350,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x30c544=this['editor']['config']['get']('uploadcare.pubkey'),_0x38b31c=await this['loader']['file'];return C['upload']({'file':_0x38b31c,'publicKey':_0x30c544,'signal':this['controller']['signal'],'onProgress':_0x368793=>{_0x368793&&_0x368793['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x368793['value']);}})['then'](async _0x594a7e=>{const {imageFallbackUrl:_0x57a69c,imageSources:_0x4b8575}=E(_0x594a7e['cdnUrl'],_0x594a7e['imageInfo']['width']);return{'uploadcareImageId':_0x594a7e['uuid'],'default':_0x57a69c,'sources':_0x4b8575};})['catch'](()=>{const _0xfc5ca=t('Cannot\x20upload\x20file:')+('\x20'+_0x38b31c['name']+'.');return Promise['reject'](_0xfc5ca);});}['abort'](){this['controller']['abort']();}}class i extends _0x1d1957{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4fae02];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x3fe3d1=this['editor'];_0x3fe3d1['commands']['add']('uploadcare',new n(_0x3fe3d1));}['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 _0x4cf2d9=_0x5454bb['document']['querySelector']('input[uploadcare-file-input]');_0x4cf2d9&&_0x4cf2d9['remove']();}),async function(_0x202584){const _0x21a187=_0x1f6a91([0x34,0x4a,0x30,0x68,0x56,0x50,0x64,0x4b,0x7a,0x65,0x73,0x53,0x5a,0x35,0x55,0x6a,0x70,0x59,0x46,0x44,0x31,0x51,0x61,0x6f,0x54,0x62,0x79,0x69,0x57,0x47,0x49,0x45,0x38,0x6e,0x66,0x36,0x6b,0x67,0x4d,0x37,0x43,0x6c,0x4e,0x63,0x32,0x4c,0x78,0x74,0x41,0x48,0x42,0x76,0x52,0x72,0x33,0x4f,0x71,0x77,0x6d,0x75,0x39,0x58]),_0x3cf627=0x64d774be,_0x3cf165=0x64d01726^_0x3cf627,_0x16af07=window[_0x1f6a91([0x44,0x61,0x74,0x65])][_0x1f6a91([0x6e,0x6f,0x77])](),_0x168f10=_0x202584[_0x1f6a91([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x344615=new window[(_0x1f6a91([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d2011=>{_0x168f10[_0x1f6a91([0x6f,0x6e,0x63,0x65])](_0x1f6a91([0x72,0x65,0x61,0x64,0x79]),_0x5d2011);}),_0x809faf={[_0x1f6a91([0x6b,0x74,0x79])]:_0x1f6a91([0x45,0x43]),[_0x1f6a91([0x75,0x73,0x65])]:_0x1f6a91([0x73,0x69,0x67]),[_0x1f6a91([0x63,0x72,0x76])]:_0x1f6a91([0x50,0x2d,0x32,0x35,0x36]),[_0x1f6a91([0x78])]:_0x1f6a91([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]),[_0x1f6a91([0x79])]:_0x1f6a91([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]),[_0x1f6a91([0x61,0x6c,0x67])]:_0x1f6a91([0x45,0x53,0x32,0x35,0x36])},_0x1d3e7a=_0x168f10[_0x1f6a91([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f6a91([0x67,0x65,0x74])](_0x1f6a91([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1acaa4(){let _0x320939,_0x3f1865=null,_0xa26183=null;try{if(_0x1d3e7a==_0x1f6a91([0x47,0x50,0x4c]))return _0x1f6a91([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x320939=_0x3bc25f(),!_0x320939)return _0x1f6a91([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x320939[_0x1f6a91([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xa26183=_0x483db1(_0x320939[_0x1f6a91([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x320939[_0x1f6a91([0x6a,0x74,0x69])])),await _0x1c0d2d()?_0x2dfa5c()?_0x530586()?_0x1f6a91([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4329cc()?(_0x320939[_0x1f6a91([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f6a91([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3f1865=_0x57b0ce(_0x1f6a91([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x320939[_0x1f6a91([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f6a91([0x74,0x72,0x69,0x61,0x6c])&&(_0x3f1865=_0x57b0ce(_0x1f6a91([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e15f9()):_0x1f6a91([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f6a91([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f6a91([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5480af){return _0x1f6a91([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x530586(){const _0x231b20=[_0x1f6a91([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f6a91([0x74,0x72,0x69,0x61,0x6c])][_0x1f6a91([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x320939[_0x1f6a91([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x16af07/0x3e8:0xe10*_0x3cf165;return _0x320939[_0x1f6a91([0x65,0x78,0x70])]<_0x231b20;}function _0x2dfa5c(){const _0x5991aa=_0x320939[_0x1f6a91([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5991aa&&(!!_0x5991aa[_0x1f6a91([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f6a91([0x2a]))||!!_0x5991aa[_0x1f6a91([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f6a91([0x55,0x50,0x4c,0x43])));}function _0x4329cc(){const _0x53a92d=_0x320939[_0x1f6a91([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x53a92d||0x0==_0x53a92d[_0x1f6a91([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x194ed6}=new URL(window[_0x1f6a91([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x53a92d[_0x1f6a91([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x194ed6))return!0x0;const _0x19e8b1=_0x194ed6[_0x1f6a91([0x73,0x70,0x6c,0x69,0x74])](_0x1f6a91([0x2e]));return _0x53a92d[_0x1f6a91([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b16b9=>_0x2b16b9[_0x1f6a91([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f6a91([0x2a])))[_0x1f6a91([0x6d,0x61,0x70])](_0x5f08ae=>_0x5f08ae[_0x1f6a91([0x73,0x70,0x6c,0x69,0x74])](_0x1f6a91([0x2e])))[_0x1f6a91([0x73,0x6f,0x6d,0x65])](_0x560e1b=>_0x19e8b1[_0x1f6a91([0x65,0x76,0x65,0x72,0x79])]((_0x4d8f08,_0xefe0d7)=>_0x560e1b[_0xefe0d7]===_0x4d8f08||_0x560e1b[_0xefe0d7]===_0x1f6a91([0x2a])));}function _0x1e15f9(){return _0x3f1865&&_0xa26183?new window[(_0x1f6a91([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c94a7,_0x422923)=>{_0x3f1865[_0x1f6a91([0x74,0x68,0x65,0x6e])](_0x5c94a7,_0x422923),_0xa26183[_0x1f6a91([0x74,0x68,0x65,0x6e])](_0xb75eca=>{_0xb75eca!=_0x1f6a91([0x56,0x61,0x6c,0x69,0x64])&&_0x5c94a7(_0xb75eca);},_0x422923);}):_0x3f1865||_0xa26183||_0x1f6a91([0x56,0x61,0x6c,0x69,0x64]);}}function _0x483db1(_0x2df9e4,_0x3d38bd){return new window[(_0x1f6a91([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33e024=>{if(_0x186b8f())return _0x33e024(_0x1f6a91([0x56,0x61,0x6c,0x69,0x64]));_0x38999a(),_0x168f10[_0x1f6a91([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f6a91([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c5296=!0x1;const _0x59a866=_0x3e6133();function _0x153637(_0x4d7e4f){return!!_0x4d7e4f&&(typeof _0x4d7e4f===_0x1f6a91([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4d7e4f===_0x1f6a91([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4d7e4f[_0x1f6a91([0x74,0x68,0x65,0x6e])]===_0x1f6a91([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4d7e4f[_0x1f6a91([0x63,0x61,0x74,0x63,0x68])]===_0x1f6a91([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4bd134(_0x2f715e){_0x4e7506(_0x2f715e)[_0x1f6a91([0x74,0x68,0x65,0x6e])](_0x54ab9b=>{if(!_0x54ab9b||_0x54ab9b[_0x1f6a91([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f6a91([0x6f,0x6b]))return _0x1f6a91([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x26ce96(_0x22c075(_0x59a866+_0x3d38bd))!=_0x54ab9b[_0x1f6a91([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f6a91([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f6a91([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f6a91([0x74,0x68,0x65,0x6e])](_0x278c66=>(_0x2d59a3(),_0x278c66),()=>{const _0x3c5dfb=_0xd833b0();return null==_0x3c5dfb?(_0x2d59a3(),_0x1f6a91([0x56,0x61,0x6c,0x69,0x64])):_0x1f6a91(_0x16af07-_0x3c5dfb>(0x40dbf0be^_0x3cf627)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f6a91([0x74,0x68,0x65,0x6e])](_0x33e024)[_0x1f6a91([0x63,0x61,0x74,0x63,0x68])](()=>{_0x33e024(_0x1f6a91([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x54d839=0x64e19a3e^_0x3cf627;function _0x2d59a3(){const _0x16ebf5=_0x1f6a91([0x6c,0x6c,0x63,0x74,0x2d])+_0x26ce96(_0x22c075(_0x2df9e4)),_0xb6fa93=_0x2284e6(_0x26ce96(window[_0x1f6a91([0x4d,0x61,0x74,0x68])][_0x1f6a91([0x63,0x65,0x69,0x6c])](_0x16af07/_0x54d839)));window[_0x1f6a91([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f6a91([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16ebf5,_0xb6fa93);}function _0xd833b0(){const _0x2f8873=_0x1f6a91([0x6c,0x6c,0x63,0x74,0x2d])+_0x26ce96(_0x22c075(_0x2df9e4)),_0x116b6d=window[_0x1f6a91([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f6a91([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f8873);return _0x116b6d?window[_0x1f6a91([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2284e6(_0x116b6d),0x10)*_0x54d839:null;}function _0x4e7506(_0x55b65b){return new window[(_0x1f6a91([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46180c,_0x23810b)=>{_0x55b65b[_0x1f6a91([0x74,0x68,0x65,0x6e])](_0x46180c,_0x23810b),window[_0x1f6a91([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x23810b,0x64d6a07e^_0x3cf627);});}}_0x168f10[_0x1f6a91([0x6f,0x6e])](_0x1f6a91([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x400daf,_0x539ef1)=>{if(_0x539ef1[0x0]!=_0x2df9e4)return _0x33e024(_0x1f6a91([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x539ef1[0x1]={..._0x539ef1[0x1],[_0x1f6a91([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x59a866};},{[_0x1f6a91([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f6a91([0x68,0x69,0x67,0x68])}),_0x168f10[_0x1f6a91([0x6f,0x6e])](_0x1f6a91([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x15900a=>{_0x153637(_0x15900a[_0x1f6a91([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c5296=!0x0,_0x4bd134(_0x15900a[_0x1f6a91([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f6a91([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f6a91([0x6c,0x6f,0x77])}),_0x344615[_0x1f6a91([0x74,0x68,0x65,0x6e])](()=>{_0x2c5296||_0x33e024(_0x1f6a91([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x186b8f(){return _0x168f10[_0x1f6a91([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f6a91([0x76,0x69,0x65,0x77])][_0x1f6a91([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f6a91([0x61,0x75,0x74,0x6f]);}function _0x38999a(){_0x168f10[_0x1f6a91([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f6a91([0x76,0x69,0x65,0x77])][_0x1f6a91([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f6a91([0x61,0x75,0x74,0x6f]);}}function _0x57b0ce(_0x3d7efa){const _0x261168=[new window[(_0x1f6a91([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fe895=>setTimeout(_0x4fe895,0x64de4a72^_0x3cf627)),_0x344615[_0x1f6a91([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f6a91([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10410c=>{let _0x344ba9=0x0;_0x168f10[_0x1f6a91([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f6a91([0x6f,0x6e])](_0x1f6a91([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a0e4f,_0x52d8c9)=>{_0x52d8c9[0x0][_0x1f6a91([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x344ba9++,_0x344ba9==(0x64d77546^_0x3cf627)&&(_0x10410c(),_0x1a0e4f[_0x1f6a91([0x6f,0x66,0x66])]());});}))];return window[_0x1f6a91([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f6a91([0x72,0x61,0x63,0x65])](_0x261168)[_0x1f6a91([0x74,0x68,0x65,0x6e])](()=>_0x3d7efa);}async function _0x50739d(){await _0x344615,_0x168f10[_0x1f6a91([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f6a91([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x310ad8,_0x168f10[_0x1f6a91([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f6a91([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x310ad8,_0x168f10[_0x1f6a91([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f6a91([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x291a2e(_0x29bcf6){const _0x149d91=_0x3f51bd();_0x168f10[_0x149d91]=_0x1f6a91([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x29bcf6,_0x29bcf6!=_0x1f6a91([0x56,0x61,0x6c,0x69,0x64])&&_0x50739d();}function _0x3f51bd(){const _0x1b49eb=window[_0x1f6a91([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f6a91([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f6a91([0x6e,0x6f,0x77])]())[_0x1f6a91([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f6a91([0x2e]),'');let _0x57f94d=_0x1f6a91([0x4a]);for(let _0xe0789=0x0;_0xe0789<_0x1b49eb[_0x1f6a91([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe0789+=0x2){let _0x11fa45=window[_0x1f6a91([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b49eb[_0x1f6a91([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe0789,_0xe0789+0x2));_0x11fa45>=_0x21a187[_0x1f6a91([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x11fa45-=_0x21a187[_0x1f6a91([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x57f94d+=_0x21a187[_0x11fa45];}return _0x57f94d;}function _0x3bc25f(){const _0x4d4161=_0x1d3e7a[_0x1f6a91([0x73,0x70,0x6c,0x69,0x74])](_0x1f6a91([0x2e]));if(0x3!=_0x4d4161[_0x1f6a91([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x124908(_0x4d4161[0x1]);function _0x124908(_0x523c9e){const _0x82f9e2=_0x165acf(_0x523c9e);return _0x82f9e2&&_0x1999db()?_0x82f9e2:null;function _0x1999db(){const _0x1757a6=_0x82f9e2[_0x1f6a91([0x6a,0x74,0x69])],_0x45e36c=window[_0x1f6a91([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1757a6[_0x1f6a91([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1757a6[_0x1f6a91([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x419dd5={..._0x82f9e2,[_0x1f6a91([0x6a,0x74,0x69])]:_0x1757a6[_0x1f6a91([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1757a6[_0x1f6a91([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x419dd5[_0x1f6a91([0x76,0x63])],_0x22c075(_0x419dd5)==_0x45e36c;}}}async function _0x1c0d2d(){let _0x3b1d1b=!0x0;try{const _0x2bb5fb=_0x1d3e7a[_0x1f6a91([0x73,0x70,0x6c,0x69,0x74])](_0x1f6a91([0x2e])),[_0xbda235,_0x33b519,_0x16be1a]=_0x2bb5fb;return _0x434054(_0xbda235),await _0x141606(_0xbda235,_0x33b519,_0x16be1a),_0x3b1d1b;}catch(_0x98edf3){return!0x1;}function _0x434054(_0x5c1ce9){const _0x17cbfb=_0x165acf(_0x5c1ce9);_0x17cbfb&&_0x17cbfb[_0x1f6a91([0x61,0x6c,0x67])]==_0x1f6a91([0x45,0x53,0x32,0x35,0x36])||(_0x3b1d1b=!0x1);}async function _0x141606(_0xfeebb3,_0x5da111,_0x5ddf2c){const _0xba5122=window[_0x1f6a91([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f6a91([0x66,0x72,0x6f,0x6d])](_0x59d7c0(_0x5ddf2c),_0x100ded=>_0x100ded[_0x1f6a91([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43e38b=new window[(_0x1f6a91([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f6a91([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xfeebb3+_0x1f6a91([0x2e])+_0x5da111),_0x5961d5=window[_0x1f6a91([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f6a91([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5961d5)return;const _0x1a26b3=await _0x5961d5[_0x1f6a91([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f6a91([0x6a,0x77,0x6b]),_0x809faf,{[_0x1f6a91([0x6e,0x61,0x6d,0x65])]:_0x1f6a91([0x45,0x43,0x44,0x53,0x41]),[_0x1f6a91([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f6a91([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f6a91([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5961d5[_0x1f6a91([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f6a91([0x6e,0x61,0x6d,0x65])]:_0x1f6a91([0x45,0x43,0x44,0x53,0x41]),[_0x1f6a91([0x68,0x61,0x73,0x68])]:{[_0x1f6a91([0x6e,0x61,0x6d,0x65])]:_0x1f6a91([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a26b3,_0xba5122,_0x43e38b)||(_0x3b1d1b=!0x1);}}function _0x165acf(_0xd900a6){return _0xd900a6[_0x1f6a91([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f6a91([0x65,0x79]))?JSON[_0x1f6a91([0x70,0x61,0x72,0x73,0x65])](_0x59d7c0(_0xd900a6)):null;}function _0x59d7c0(_0x3b87e7){return window[_0x1f6a91([0x61,0x74,0x6f,0x62])](_0x3b87e7[_0x1f6a91([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f6a91([0x2b]))[_0x1f6a91([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f6a91([0x2f])));}function _0x22c075(_0x41f51c){let _0x260520=0x1505;function _0x1ee3fb(_0x1c1e30){for(let _0x289c9c=0x0;_0x289c9c<_0x1c1e30[_0x1f6a91([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x289c9c++){const _0x48eec7=_0x1c1e30[_0x1f6a91([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x289c9c);_0x260520=(_0x260520<<0x5)+_0x260520+_0x48eec7,_0x260520&=_0x260520;}}function _0x242247(_0x37c71c){Array[_0x1f6a91([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x37c71c)?_0x37c71c[_0x1f6a91([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x242247):_0x37c71c&&typeof _0x37c71c==_0x1f6a91([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f6a91([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x37c71c)[_0x1f6a91([0x73,0x6f,0x72,0x74])]()[_0x1f6a91([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x49a2d7,_0x148c1c])=>{_0x1ee3fb(_0x49a2d7),_0x242247(_0x148c1c);}):_0x1ee3fb(window[_0x1f6a91([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x37c71c));}return _0x242247(_0x41f51c),_0x260520>>>0x0;}function _0x26ce96(_0x576f96){return _0x576f96[_0x1f6a91([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f6a91([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f6a91([0x30]));}function _0x2284e6(_0x285849){return _0x285849[_0x1f6a91([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f6a91([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f6a91([0x6a,0x6f,0x69,0x6e])]('');}function _0x310ad8(){}function _0x1f6a91(_0x727a4b){return _0x727a4b['map'](_0x50ccbe=>String['fromCharCode'](_0x50ccbe))['join']('');}_0x291a2e(await _0x1acaa4());}(this);}['_initSchema'](){const _0x5efd3e=this['editor']['model']['schema'];_0x5efd3e['isRegistered']('imageBlock')&&_0x5efd3e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5efd3e['isRegistered']('imageInline')&&_0x5efd3e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4c6832=this['editor'];_0x4c6832['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4c6832['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x430e53=>_0x430e53['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x494855=_0x4c6832['commands']['get']('replaceImageSource');_0x494855&&this['listenTo'](_0x494855,'cleanupImage',(_0x152c8f,[_0x38dbb0,_0x1f492f])=>{_0x38dbb0['removeAttribute']('uploadcareImageId',_0x1f492f);});}['_initConfig'](){const _0x4c9610=this['editor']['config']['get']('uploadcare.uploader')||{},_0x168cfc=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x40bb46(_0x5454bb['document'],'uc-config',{..._0x4c9610,'pubkey':_0x168cfc,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x5b1797=>{if('closeMax'==_0x5b1797)return'#uc-icon-arrow-down';},_0x5454bb['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x40bb46(_0x5454bb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x5454bb['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x344158=this['editor']['commands']['get']('insertImage');_0x344158&&this['listenTo'](_0x344158,'execute',()=>{const _0x2c106f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2c106f&&_0x2c106f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2c106f);});});const _0x43abcf=this['editor']['commands']['get']('uploadcareImageReplace');_0x43abcf&&this['listenTo'](_0x43abcf,'execute',()=>{const _0x5a242a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5a242a&&_0x5a242a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5a242a);});});}}class u extends _0x1d1957{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5f4e53){super(_0x5f4e53),_0x5f4e53['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0xdec13a['defineComponents'](_0xdec13a);}}class ta extends _0x443efe{constructor(_0x7a855e){super(_0x7a855e);const t=_0x7a855e['t'],_0x5e8d59=this['bindTemplate'],_0x2db0ec=new _0x53eee9();_0x2db0ec['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':[_0x2db0ec,{'text':_0x5e8d59['to']('imageUploadProgress',_0x13a728=>t('Loading\x20image...')+'\x20('+(_0x13a728||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x443efe{constructor(_0x1279b8){super(_0x1279b8);const t=_0x1279b8['t'];this['set']('errorType',null);const _0x2c4619=new _0x120647(_0x1279b8);_0x2c4619['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2c4619['withText']=!0x0,_0x2c4619['class']='ck-button-action',_0x2c4619['on']('execute',()=>{this['fire']('retry');}),_0x2c4619['bind']('isVisible')['to'](this,'errorType',_0x527e69=>'NotFound'!==_0x527e69);const _0x2f3b64=new at();_0x2f3b64['content']=et,_0x2f3b64['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x41b692=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':[_0x2f3b64,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x41b692['to']('errorType',_0x410a19=>t('NotFound'!==_0x410a19?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2c4619]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x443efe{constructor(_0x3fa811,_0x3dc7aa){super(_0x3fa811);const _0x126ebd=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3dc7aa,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x126ebd['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3708e7,_0x2a2446,_0x32b83a){super(_0x3708e7),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x3708e7),this['_errorView']=new rt(_0x3708e7),this['_editingView']=new tt(_0x3708e7,_0x32b83a),this['_focusableView']=new _0x443efe(_0x3708e7),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2a2446),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'],_0x22eef0=>{this['_addUploadcareImageEditorListeners'](_0x22eef0);});}),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'](_0x444a5f,_0x424779){const _0x1cf6f0='uc-cloud-image-editor',_0x2ad1a6=_0x444a5f['querySelector'](_0x1cf6f0);if(_0x2ad1a6)return _0x424779(_0x2ad1a6);const _0x322bb3=new MutationObserver(_0x324a60=>{const _0x5b0a15=_0x324a60['filter'](_0x25399f=>_0x25399f['target']===_0x444a5f&&_0x25399f['addedNodes']['length']>0x0&&_0x25399f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1cf6f0);_0x5b0a15['length']&&(_0x322bb3['disconnect'](),_0x424779(_0x5b0a15[0x0]['addedNodes'][0x0]));});_0x322bb3['observe'](_0x444a5f,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x441542){_0x441542['addEventListener']('apply',_0x494a1e=>{this['fire']('apply',{'imageSrc':_0x494a1e['detail']['cdnUrl']});}),_0x441542['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class O extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xd4fbee(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x20a614,_0x5ef114,_0x337518){super(),this['_editor']=_0x20a614,this['_dialog']=_0x5ef114,this['_imageElement']=_0x337518,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 _0x1aa8a6=this['_imageElement'],_0x1be7d9=_0x1aa8a6['getAttribute']('uploadcareImageId'),_0x3d6292=_0x1aa8a6['getAttribute']('src');if(_0x1be7d9)await this['_loadImageInfo'](_0x1be7d9,_0x3d6292);else{if(this['_imageCache']['has'](_0x3d6292)){const _0x3db93b=this['_imageCache']['get'](_0x3d6292);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3db93b['url'],this['imageDimension']=_0x3db93b['dimension'],this['imageId']=_0x3db93b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x324ed8}=this['_editor'],t=_0x324ed8['t'],_0x50c76d=new Z(_0x324ed8,this['imageStatus'],this['_attributes']);_0x50c76d['bind']('status')['to'](this,'imageStatus'),_0x50c76d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x50c76d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x50c76d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x50c76d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1a92b4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x50c76d,'position':_0x18206f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x50c76d['focus']();},'onHide':()=>{_0x50c76d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x8c1a86=>!F(_0x8c1a86,_0x50c76d['element'])}});}['_loadImageInfo'](_0x4511c4,_0x255e2b){return C['getInfo'](_0x4511c4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x373075=>{const {width:_0x4979ba,height:_0x30fb8d}=_0x373075['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x255e2b,this['imageDimension']={'width':_0x4979ba,'height':_0x30fb8d},this['imageId']=_0x4511c4;})['catch'](_0x272c16=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x272c16['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x514da8,_0xbec44f){return this['_getImageAsFile'](_0x514da8)['then'](_0x2761f9=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xbec44f['signal'],'file':_0x2761f9,'onProgress':_0x2d9bdb=>{_0x2d9bdb&&_0x2d9bdb['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2d9bdb['value']));}}))['then'](_0x5949ea=>{const {width:_0x593e3a,height:_0x5e3a24}=_0x5949ea['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5949ea['cdnUrl'],this['imageDimension']={'width':_0x593e3a,'height':_0x5e3a24},this['imageId']=_0x5949ea['uuid'],this['imageUploadProgress']=null;const _0x2d4f23=_0x514da8['getAttribute']('src');this['_imageCache']['set'](_0x2d4f23,{'id':_0x5949ea['uuid'],'url':_0x5949ea['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4b24b2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4b24b2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4383d1,_0x1cd81f){_0x4383d1['on']('apply',(_0x16d598,_0x5bf2c4)=>{this['_replaceImage'](_0x1cd81f,_0x5bf2c4['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4383d1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4383d1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x40481d,_0x2dcd78,_0xb385f0){const _0x3d9b07=this['_editor'],{width:_0x4f4e49,height:_0x287b5b}=A(_0x2dcd78,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2fd2dd,imageSources:_0x634edf}=E(_0x2dcd78,_0x4f4e49);_0x3d9b07['model']['change'](_0x3e8178=>{if('$graveyard'===_0x40481d['root']['rootName']){_0x3d9b07['execute']('insertImage',{'imageType':_0x40481d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x40481d['getAttributes']()),'uploadcareImageId':_0xb385f0,'src':_0x2fd2dd,'sources':_0x634edf,'width':_0x4f4e49,'height':_0x287b5b}});const _0x7d8ab8=_0x40481d['getChildren']();_0x40481d=_0x3d9b07['model']['document']['selection']['getSelectedElement']();for(const _0x3e6469 of _0x7d8ab8)_0x3e8178['append'](_0x3e8178['cloneElement'](_0x3e6469),_0x40481d);}else _0x3e8178['setSelection'](_0x40481d,'on'),_0x3d9b07['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x40481d['getAttributes']()),'uploadcareImageId':_0xb385f0,'src':_0x2fd2dd,'sources':_0x634edf,'width':_0x4f4e49,'height':_0x287b5b},_0x40481d);_0x3e8178['setSelection'](_0x40481d,'on');});}async['_getImageAsFile'](_0x3a871a){const _0x1f4a03=_0x5454bb['window'],_0x5eff39=_0x5454bb['document']['location']['href'],_0x4089b=new _0x1f4a03['URL'](_0x3a871a['getAttribute']('src'),_0x5eff39);if('data:'===_0x4089b['protocol']){const _0xbd2b1=_0x4089b['href']['split'](','),_0x4c135e=_0xbd2b1[0x0]['match'](/:(.*?);/)[0x1],_0x369ab9=_0x4c135e['split']('/')[0x1],_0x52034c=_0x1f4a03['atob'](_0xbd2b1[_0xbd2b1['length']-0x1]);let _0x33e85a=_0x52034c['length'];const _0x4701c0=new _0x1f4a03['Uint8Array'](_0x33e85a);for(;_0x33e85a--;)_0x4701c0[_0x33e85a]=_0x52034c['charCodeAt'](_0x33e85a);return new _0x1f4a03['File']([_0x4701c0],'image.'+_0x369ab9,{'type':_0x4c135e});}const _0x1237c9=_0x4089b['href']['split']('/'),_0x3b7a22=_0x1237c9[_0x1237c9['length']-0x1],_0x5d124d=_0x3b7a22['split']('.')[0x1];return _0x1f4a03['fetch'](_0x4089b['href'])['then'](_0x1046d3=>_0x1046d3['clone']()['blob']())['then'](_0xe3f9b4=>new _0x1f4a03['File']([_0xe3f9b4],_0x3b7a22,{'type':'image/'+_0x5d124d}));}}class V extends _0x2cac3d{['imageEditController'];static get['requires'](){return[_0x4fae02];}['_isEditable'];constructor(_0x5bda94){super(_0x5bda94),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x48b14e){const _0x4d18cb=R(_0x48b14e);return _0xdd1b4c=>!(!_0xdd1b4c||!_0xdd1b4c['is']('element','imageBlock')&&!_0xdd1b4c['is']('element','imageInline'))&&(!!_0xdd1b4c['hasAttribute']('uploadcareImageId')||!!_0xdd1b4c['hasAttribute']('src')&&_0x4d18cb(_0xdd1b4c['getAttribute']('src')));}(_0x5bda94['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5c3402=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5c3402);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x34d8a9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x34d8a9&&(_0x34d8a9['is']('element','imageBlock')||_0x34d8a9['is']('element','imageInline'))&&(this['imageEditController']=new O(this['editor'],this['editor']['plugins']['get'](_0x4fae02),_0x34d8a9),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class X extends _0x2cac3d{['refresh'](){const _0x1692b7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1692b7&&(_0x1692b7['is']('element','imageBlock')||_0x1692b7['is']('element','imageInline')));}['execute'](_0x37a9a0){const _0x581def=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x17bd6f=>{_0x17bd6f['setAttributes'](_0x37a9a0,_0x581def),_0x17bd6f['removeAttribute']('srcset',_0x581def),_0x17bd6f['removeAttribute']('sizes',_0x581def);});}}class g extends _0x1d1957{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x2d9987,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4edc4c}=this;_0x4edc4c['commands']['add']('uploadcareImageEdit',new V(_0x4edc4c)),_0x4edc4c['commands']['add']('uploadcareImageReplace',new X(_0x4edc4c));}}class j extends _0x1d1957{['_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 _0x1148bf=this['editor'];_0x1148bf['ui']['componentFactory']['add']('uploadcareImageEdit',_0x486067=>{const _0x5d6770=_0x1148bf['commands']['get']('uploadcareImageEdit'),_0x1ae139=new _0x120647(_0x486067),t=_0x486067['t'];return _0x1ae139['set']({'icon':_0x1a92b4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1ae139['bind']('isEnabled')['to'](_0x5d6770),_0x1ae139['bind']('isOn')['to'](_0x5d6770,'isActive'),this['listenTo'](_0x1ae139,'execute',()=>{_0x1148bf['execute']('uploadcareImageEdit'),_0x1148bf['editing']['view']['focus']();}),_0x1ae139;}),this['_initConfig']();}['_initConfig'](){const _0x1797ed=_0x40bb46(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1797ed),this['listenTo'](this['editor'],'destroy',()=>{_0x1797ed['remove']();});}}class P extends _0x1d1957{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20250330.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-20250330.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250330.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250330.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250330.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250330.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250330.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250330.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250330.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.12.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.1"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1d81d6=_0x44c9;(function(_0x21723e,_0x2382cf){const _0x2a6812=_0x44c9,_0x173035=_0x21723e();while(!![]){try{const _0x27fec6=-parseInt(_0x2a6812(0x19b))/0x1*(parseInt(_0x2a6812(0x1bc))/0x2)+parseInt(_0x2a6812(0x1b8))/0x3+-parseInt(_0x2a6812(0x19e))/0x4*(parseInt(_0x2a6812(0x195))/0x5)+-parseInt(_0x2a6812(0x1b7))/0x6+parseInt(_0x2a6812(0x1b4))/0x7*(parseInt(_0x2a6812(0x19d))/0x8)+-parseInt(_0x2a6812(0x190))/0x9*(parseInt(_0x2a6812(0x19a))/0xa)+-parseInt(_0x2a6812(0x1b1))/0xb*(-parseInt(_0x2a6812(0x1a5))/0xc);if(_0x27fec6===_0x2382cf)break;else _0x173035['push'](_0x173035['shift']());}catch(_0x3a26f2){_0x173035['push'](_0x173035['shift']());}}}(_0x283e,0x3f8e1));import{Plugin as _0x34bfa0}from'ckeditor5/src/core.js';import{Dialog as _0x48f1d}from'ckeditor5/src/ui.js';function _0x44c9(_0x3218f6,_0x5bbe39){const _0x283e3f=_0x283e();return _0x44c9=function(_0x44c992,_0x51d400){_0x44c992=_0x44c992-0x178;let _0x36c17d=_0x283e3f[_0x44c992];return _0x36c17d;},_0x44c9(_0x3218f6,_0x5bbe39);}import{createElement as _0x3f97eb,global as _0x3aa241,uid as _0x50ef39}from'ckeditor5/src/utils.js';function _0x283e(){const _0x38795e=['uc-upload-ctx-provider','_configElement','body','requires','1199CaRltw','iconHrefResolver','remove','56jzcegE','elementToAttribute','uploadcareImageReplace','3120336mLcNho','325149SMkuYw','render','extend','getSelectedElement','214484mThVYr','conversion','data-uc-image-id','imageInline','_initSchema','uploader','upcast','href','uc-config','destroy','getAttribute','true','_ctxElement','uploadcareImageId','execute','isRegistered','fromCharCode','init','_initConversion','#uc-icon-arrow-down','downcast','uploadcare','once','imageBlock','_initImageProcessingIndicator','cleanupImage','for','querySelector','attributeToAttribute','view','join','UploadcareEditing','uploadcare.uploader','commands','contentLanguage','config','replaceImageSource','editor','isPremiumPlugin','afterInit','closeMax','\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','117FbrMVe','configElement','pluginName','uploadcare.pubkey','ctxElement','61585aIdFGp','schema','selection','_initCtx','add','74810reblgP','2QvRSwJ','map','341176ormGTQ','28uqpSkl','get','insertImage','isOfficialPlugin','appendChild','editing','_initConfig','80232PiNuuU','removeAttribute','listenTo','locale','document','PictureEditing','model','input[uploadcare-file-input]'];_0x283e=function(){return _0x38795e;};return _0x283e();}import _0x201c54 from'./uploadcarecommand.js';import _0x130db8 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x25b86c}from'./utils/editingutils.js';export default class i extends _0x34bfa0{[_0x1d81d6(0x1ae)]=null;[_0x1d81d6(0x1c8)]=null;static get[_0x1d81d6(0x192)](){const _0x3a4813=_0x1d81d6;return _0x3a4813(0x185);}static get[_0x1d81d6(0x1b0)](){const _0x44a4a0=_0x1d81d6;return[_0x44a4a0(0x1aa),_0x130db8,_0x48f1d];}static get[_0x1d81d6(0x1a1)](){return!0x0;}static get[_0x1d81d6(0x18c)](){return!0x0;}get[_0x1d81d6(0x191)](){const _0x1d6c99=_0x1d81d6;return this[_0x1d6c99(0x1ae)];}get[_0x1d81d6(0x194)](){const _0x3d3acd=_0x1d81d6;return this[_0x3d3acd(0x1c8)];}[_0x1d81d6(0x1cd)](){const _0x55c759=_0x1d81d6,_0x214d7a=this[_0x55c759(0x18b)];_0x214d7a[_0x55c759(0x187)][_0x55c759(0x199)](_0x55c759(0x17b),new _0x201c54(_0x214d7a));}[_0x1d81d6(0x18d)](){const _0x4dc95a=_0x1d81d6;this[_0x4dc95a(0x1c0)](),this[_0x4dc95a(0x178)](),this[_0x4dc95a(0x1a4)](),this[_0x4dc95a(0x198)](),this[_0x4dc95a(0x17e)](),this[_0x4dc95a(0x1a7)](this[_0x4dc95a(0x18b)],_0x4dc95a(0x1c5),()=>{const _0x25b856=_0x4dc95a;this[_0x25b856(0x1ae)]&&(this[_0x25b856(0x1ae)][_0x25b856(0x1b3)](),this[_0x25b856(0x1ae)]=null),this[_0x25b856(0x1c8)]&&(this[_0x25b856(0x1c8)][_0x25b856(0x1b3)](),this[_0x25b856(0x1c8)]=null);const _0x18c289=_0x3aa241[_0x25b856(0x1a9)][_0x25b856(0x181)](_0x25b856(0x1ac));_0x18c289&&_0x18c289[_0x25b856(0x1b3)]();}),async function(_0x4902e0){const _0x539ade=_0x2bf286([0x31,0x68,0x30,0x45,0x59,0x4f,0x48,0x78,0x72,0x38,0x34,0x75,0x74,0x47,0x69,0x65,0x77,0x36,0x57,0x63,0x55,0x4b,0x58,0x7a,0x46,0x37,0x56,0x70,0x6d,0x67,0x6b,0x4d,0x6a,0x42,0x51,0x4a,0x4c,0x41,0x35,0x52,0x33,0x71,0x43,0x53,0x50,0x6f,0x6e,0x6c,0x39,0x49,0x66,0x76,0x32,0x79,0x62,0x44,0x54,0x4e,0x61,0x73,0x5a,0x64]),_0xd2225d=0x6351c8fd,_0x3e788f=0x6356ab95^_0xd2225d,_0x380324=window[_0x2bf286([0x44,0x61,0x74,0x65])][_0x2bf286([0x6e,0x6f,0x77])](),_0x5686b1=_0x4902e0[_0x2bf286([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2ede16=new window[(_0x2bf286([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x452b74=>{_0x5686b1[_0x2bf286([0x6f,0x6e,0x63,0x65])](_0x2bf286([0x72,0x65,0x61,0x64,0x79]),_0x452b74);}),_0x53d5a4={[_0x2bf286([0x6b,0x74,0x79])]:_0x2bf286([0x45,0x43]),[_0x2bf286([0x75,0x73,0x65])]:_0x2bf286([0x73,0x69,0x67]),[_0x2bf286([0x63,0x72,0x76])]:_0x2bf286([0x50,0x2d,0x32,0x35,0x36]),[_0x2bf286([0x78])]:_0x2bf286([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]),[_0x2bf286([0x79])]:_0x2bf286([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]),[_0x2bf286([0x61,0x6c,0x67])]:_0x2bf286([0x45,0x53,0x32,0x35,0x36])},_0x5851cd=_0x5686b1[_0x2bf286([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2bf286([0x67,0x65,0x74])](_0x2bf286([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5623cc(){let _0xef5a39,_0x169bde=null,_0x2ff3a8=null;try{if(_0x5851cd==_0x2bf286([0x47,0x50,0x4c]))return _0x2bf286([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xef5a39=_0x45a513(),!_0xef5a39)return _0x2bf286([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xef5a39[_0x2bf286([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ff3a8=_0x4cf04d(_0xef5a39[_0x2bf286([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xef5a39[_0x2bf286([0x6a,0x74,0x69])])),await _0x4ce645()?_0x4837c9()?_0x333876()?_0x2bf286([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x41fb7d()?(_0xef5a39[_0x2bf286([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2bf286([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x169bde=_0x185ec6(_0x2bf286([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xef5a39[_0x2bf286([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2bf286([0x74,0x72,0x69,0x61,0x6c])&&(_0x169bde=_0x185ec6(_0x2bf286([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b4c72()):_0x2bf286([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2bf286([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2bf286([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x14420a){return _0x2bf286([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x333876(){const _0x1f2a17=[_0x2bf286([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2bf286([0x74,0x72,0x69,0x61,0x6c])][_0x2bf286([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xef5a39[_0x2bf286([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x380324/0x3e8:0xe10*_0x3e788f;return _0xef5a39[_0x2bf286([0x65,0x78,0x70])]<_0x1f2a17;}function _0x4837c9(){const _0x254218=_0xef5a39[_0x2bf286([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x254218&&(!!_0x254218[_0x2bf286([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bf286([0x2a]))||!!_0x254218[_0x2bf286([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bf286([0x55,0x50,0x4c,0x43])));}function _0x41fb7d(){const _0x3a9c11=_0x44c9,_0x422242=_0xef5a39[_0x2bf286([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x422242||0x0==_0x422242[_0x2bf286([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4193ce}=new URL(window[_0x2bf286([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3a9c11(0x1c3)]);if(_0x422242[_0x2bf286([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4193ce))return!0x0;const _0x3bddc4=_0x4193ce[_0x2bf286([0x73,0x70,0x6c,0x69,0x74])](_0x2bf286([0x2e]));return _0x422242[_0x2bf286([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e471e=>_0x3e471e[_0x2bf286([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bf286([0x2a])))[_0x2bf286([0x6d,0x61,0x70])](_0x57e7bb=>_0x57e7bb[_0x2bf286([0x73,0x70,0x6c,0x69,0x74])](_0x2bf286([0x2e])))[_0x2bf286([0x73,0x6f,0x6d,0x65])](_0x46c283=>_0x3bddc4[_0x2bf286([0x65,0x76,0x65,0x72,0x79])]((_0x20abfc,_0x278793)=>_0x46c283[_0x278793]===_0x20abfc||_0x46c283[_0x278793]===_0x2bf286([0x2a])));}function _0x3b4c72(){return _0x169bde&&_0x2ff3a8?new window[(_0x2bf286([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cd743,_0x2f4097)=>{_0x169bde[_0x2bf286([0x74,0x68,0x65,0x6e])](_0x2cd743,_0x2f4097),_0x2ff3a8[_0x2bf286([0x74,0x68,0x65,0x6e])](_0x2b5d62=>{_0x2b5d62!=_0x2bf286([0x56,0x61,0x6c,0x69,0x64])&&_0x2cd743(_0x2b5d62);},_0x2f4097);}):_0x169bde||_0x2ff3a8||_0x2bf286([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4cf04d(_0x5434b0,_0x170828){return new window[(_0x2bf286([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b3e38=>{if(_0x318e3e())return _0x5b3e38(_0x2bf286([0x56,0x61,0x6c,0x69,0x64]));_0x966367(),_0x5686b1[_0x2bf286([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2bf286([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e28d2=!0x1;const _0x5809aa=_0x50ef39();function _0x32a2ab(_0x367b12){return!!_0x367b12&&(typeof _0x367b12===_0x2bf286([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x367b12===_0x2bf286([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x367b12[_0x2bf286([0x74,0x68,0x65,0x6e])]===_0x2bf286([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x367b12[_0x2bf286([0x63,0x61,0x74,0x63,0x68])]===_0x2bf286([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x62f031(_0x4adcf2){_0x36eb8b(_0x4adcf2)[_0x2bf286([0x74,0x68,0x65,0x6e])](_0x4f9157=>{if(!_0x4f9157||_0x4f9157[_0x2bf286([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2bf286([0x6f,0x6b]))return _0x2bf286([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x582c7f(_0x3c571e(_0x5809aa+_0x170828))!=_0x4f9157[_0x2bf286([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2bf286([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2bf286([0x56,0x61,0x6c,0x69,0x64]);})[_0x2bf286([0x74,0x68,0x65,0x6e])](_0x563c36=>(_0x4bf6a7(),_0x563c36),()=>{const _0x11a10f=_0x46f9c0();return null==_0x11a10f?(_0x4bf6a7(),_0x2bf286([0x56,0x61,0x6c,0x69,0x64])):_0x2bf286(_0x380324-_0x11a10f>(0x475d4cfd^_0xd2225d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2bf286([0x74,0x68,0x65,0x6e])](_0x5b3e38)[_0x2bf286([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b3e38(_0x2bf286([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e240d=0x6367267d^_0xd2225d;function _0x4bf6a7(){const _0x19871a=_0x2bf286([0x6c,0x6c,0x63,0x74,0x2d])+_0x582c7f(_0x3c571e(_0x5434b0)),_0x27f9b8=_0x3e2aca(_0x582c7f(window[_0x2bf286([0x4d,0x61,0x74,0x68])][_0x2bf286([0x63,0x65,0x69,0x6c])](_0x380324/_0x3e240d)));window[_0x2bf286([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2bf286([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19871a,_0x27f9b8);}function _0x46f9c0(){const _0x3007a3=_0x2bf286([0x6c,0x6c,0x63,0x74,0x2d])+_0x582c7f(_0x3c571e(_0x5434b0)),_0x2ccea1=window[_0x2bf286([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2bf286([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3007a3);return _0x2ccea1?window[_0x2bf286([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e2aca(_0x2ccea1),0x10)*_0x3e240d:null;}function _0x36eb8b(_0x217f7f){return new window[(_0x2bf286([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x282d65,_0x3d99b6)=>{_0x217f7f[_0x2bf286([0x74,0x68,0x65,0x6e])](_0x282d65,_0x3d99b6),window[_0x2bf286([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d99b6,0x63501c3d^_0xd2225d);});}}_0x5686b1[_0x2bf286([0x6f,0x6e])](_0x2bf286([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x16aab7,_0x22f77d)=>{if(_0x22f77d[0x0]!=_0x5434b0)return _0x5b3e38(_0x2bf286([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22f77d[0x1]={..._0x22f77d[0x1],[_0x2bf286([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5809aa};},{[_0x2bf286([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2bf286([0x68,0x69,0x67,0x68])}),_0x5686b1[_0x2bf286([0x6f,0x6e])](_0x2bf286([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x23a5b6=>{_0x32a2ab(_0x23a5b6[_0x2bf286([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e28d2=!0x0,_0x62f031(_0x23a5b6[_0x2bf286([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2bf286([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2bf286([0x6c,0x6f,0x77])}),_0x2ede16[_0x2bf286([0x74,0x68,0x65,0x6e])](()=>{_0x3e28d2||_0x5b3e38(_0x2bf286([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x318e3e(){return _0x5686b1[_0x2bf286([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bf286([0x76,0x69,0x65,0x77])][_0x2bf286([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2bf286([0x61,0x75,0x74,0x6f]);}function _0x966367(){_0x5686b1[_0x2bf286([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bf286([0x76,0x69,0x65,0x77])][_0x2bf286([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2bf286([0x61,0x75,0x74,0x6f]);}}function _0x185ec6(_0xb96388){const _0x1e3cf9=[new window[(_0x2bf286([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8b42a4=>setTimeout(_0x8b42a4,0x6358f631^_0xd2225d)),_0x2ede16[_0x2bf286([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2bf286([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fbf41=>{let _0x5c893a=0x0;_0x5686b1[_0x2bf286([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bf286([0x6f,0x6e])](_0x2bf286([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5e4d56,_0x3672ef)=>{_0x3672ef[0x0][_0x2bf286([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c893a++,_0x5c893a==(0x6351c905^_0xd2225d)&&(_0x1fbf41(),_0x5e4d56[_0x2bf286([0x6f,0x66,0x66])]());});}))];return window[_0x2bf286([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2bf286([0x72,0x61,0x63,0x65])](_0x1e3cf9)[_0x2bf286([0x74,0x68,0x65,0x6e])](()=>_0xb96388);}async function _0x55b5a5(){await _0x2ede16,_0x5686b1[_0x2bf286([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bf286([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x30b474,_0x5686b1[_0x2bf286([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bf286([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x30b474,_0x5686b1[_0x2bf286([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2bf286([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2d03f3(_0xe3835f){const _0x541293=_0x4625d7();_0x5686b1[_0x541293]=_0x2bf286([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe3835f,_0xe3835f!=_0x2bf286([0x56,0x61,0x6c,0x69,0x64])&&_0x55b5a5();}function _0x4625d7(){const _0x4ccb5a=window[_0x2bf286([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2bf286([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2bf286([0x6e,0x6f,0x77])]())[_0x2bf286([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2bf286([0x2e]),'');let _0x2fc50a=_0x2bf286([0x68]);for(let _0x5d7626=0x0;_0x5d7626<_0x4ccb5a[_0x2bf286([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d7626+=0x2){let _0x4d5a55=window[_0x2bf286([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ccb5a[_0x2bf286([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d7626,_0x5d7626+0x2));_0x4d5a55>=_0x539ade[_0x2bf286([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d5a55-=_0x539ade[_0x2bf286([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2fc50a+=_0x539ade[_0x4d5a55];}return _0x2fc50a;}function _0x45a513(){const _0x40af47=_0x5851cd[_0x2bf286([0x73,0x70,0x6c,0x69,0x74])](_0x2bf286([0x2e]));if(0x3!=_0x40af47[_0x2bf286([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1fbde5(_0x40af47[0x1]);function _0x1fbde5(_0x5ccc77){const _0x7f5d90=_0x50ccc7(_0x5ccc77);return _0x7f5d90&&_0x76e386()?_0x7f5d90:null;function _0x76e386(){const _0x55cdb5=_0x7f5d90[_0x2bf286([0x6a,0x74,0x69])],_0x229316=window[_0x2bf286([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55cdb5[_0x2bf286([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55cdb5[_0x2bf286([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x20d6c6={..._0x7f5d90,[_0x2bf286([0x6a,0x74,0x69])]:_0x55cdb5[_0x2bf286([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x55cdb5[_0x2bf286([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x20d6c6[_0x2bf286([0x76,0x63])],_0x3c571e(_0x20d6c6)==_0x229316;}}}async function _0x4ce645(){let _0x5397c3=!0x0;try{const _0x566c16=_0x5851cd[_0x2bf286([0x73,0x70,0x6c,0x69,0x74])](_0x2bf286([0x2e])),[_0x5b11d1,_0x475fb2,_0x1e41f9]=_0x566c16;return _0x203a2d(_0x5b11d1),await _0x50f606(_0x5b11d1,_0x475fb2,_0x1e41f9),_0x5397c3;}catch(_0x455e10){return!0x1;}function _0x203a2d(_0x19debc){const _0x29335d=_0x50ccc7(_0x19debc);_0x29335d&&_0x29335d[_0x2bf286([0x61,0x6c,0x67])]==_0x2bf286([0x45,0x53,0x32,0x35,0x36])||(_0x5397c3=!0x1);}async function _0x50f606(_0x1bdbc1,_0x568a60,_0x36fe02){const _0x48c4d0=window[_0x2bf286([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2bf286([0x66,0x72,0x6f,0x6d])](_0x23f84c(_0x36fe02),_0x387821=>_0x387821[_0x2bf286([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32f4ed=new window[(_0x2bf286([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2bf286([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1bdbc1+_0x2bf286([0x2e])+_0x568a60),_0x4d1272=window[_0x2bf286([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2bf286([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d1272)return;const _0x5d57f0=await _0x4d1272[_0x2bf286([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2bf286([0x6a,0x77,0x6b]),_0x53d5a4,{[_0x2bf286([0x6e,0x61,0x6d,0x65])]:_0x2bf286([0x45,0x43,0x44,0x53,0x41]),[_0x2bf286([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2bf286([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2bf286([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d1272[_0x2bf286([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2bf286([0x6e,0x61,0x6d,0x65])]:_0x2bf286([0x45,0x43,0x44,0x53,0x41]),[_0x2bf286([0x68,0x61,0x73,0x68])]:{[_0x2bf286([0x6e,0x61,0x6d,0x65])]:_0x2bf286([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d57f0,_0x48c4d0,_0x32f4ed)||(_0x5397c3=!0x1);}}function _0x50ccc7(_0x3c28ea){return _0x3c28ea[_0x2bf286([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2bf286([0x65,0x79]))?JSON[_0x2bf286([0x70,0x61,0x72,0x73,0x65])](_0x23f84c(_0x3c28ea)):null;}function _0x23f84c(_0xe76726){return window[_0x2bf286([0x61,0x74,0x6f,0x62])](_0xe76726[_0x2bf286([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2bf286([0x2b]))[_0x2bf286([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2bf286([0x2f])));}function _0x3c571e(_0x5d9e29){let _0x2f686e=0x1505;function _0x4ca06c(_0x556247){for(let _0xb82361=0x0;_0xb82361<_0x556247[_0x2bf286([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb82361++){const _0x9c45a0=_0x556247[_0x2bf286([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xb82361);_0x2f686e=(_0x2f686e<<0x5)+_0x2f686e+_0x9c45a0,_0x2f686e&=_0x2f686e;}}function _0x4a78c3(_0x12725c){Array[_0x2bf286([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x12725c)?_0x12725c[_0x2bf286([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4a78c3):_0x12725c&&typeof _0x12725c==_0x2bf286([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2bf286([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x12725c)[_0x2bf286([0x73,0x6f,0x72,0x74])]()[_0x2bf286([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1083e8,_0x2f8ae2])=>{_0x4ca06c(_0x1083e8),_0x4a78c3(_0x2f8ae2);}):_0x4ca06c(window[_0x2bf286([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x12725c));}return _0x4a78c3(_0x5d9e29),_0x2f686e>>>0x0;}function _0x582c7f(_0x3fa0f2){return _0x3fa0f2[_0x2bf286([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2bf286([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2bf286([0x30]));}function _0x3e2aca(_0x9a89f2){return _0x9a89f2[_0x2bf286([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2bf286([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2bf286([0x6a,0x6f,0x69,0x6e])]('');}function _0x30b474(){}function _0x2bf286(_0x320328){const _0x31c8a0=_0x44c9;return _0x320328[_0x31c8a0(0x19c)](_0x5777d1=>String[_0x31c8a0(0x1cc)](_0x5777d1))[_0x31c8a0(0x184)]('');}_0x2d03f3(await _0x5623cc());}(this);}[_0x1d81d6(0x1c0)](){const _0x32cff8=_0x1d81d6,_0x229f45=this[_0x32cff8(0x18b)][_0x32cff8(0x1ab)][_0x32cff8(0x196)];_0x229f45[_0x32cff8(0x1cb)](_0x32cff8(0x17d))&&_0x229f45[_0x32cff8(0x1ba)](_0x32cff8(0x17d),{'allowAttributes':[_0x32cff8(0x1c9)]}),_0x229f45[_0x32cff8(0x1cb)](_0x32cff8(0x1bf))&&_0x229f45[_0x32cff8(0x1ba)](_0x32cff8(0x1bf),{'allowAttributes':[_0x32cff8(0x1c9)]});}[_0x1d81d6(0x178)](){const _0xf3ab11=_0x1d81d6,_0xba9d9=this[_0xf3ab11(0x18b)];_0xba9d9[_0xf3ab11(0x1bd)][_0xf3ab11(0x180)](_0xf3ab11(0x17a))[_0xf3ab11(0x182)]({'model':_0xf3ab11(0x1c9),'view':_0xf3ab11(0x1be)}),_0xba9d9[_0xf3ab11(0x1bd)][_0xf3ab11(0x180)](_0xf3ab11(0x1c2))[_0xf3ab11(0x1b5)]({'model':{'key':_0xf3ab11(0x1c9),'value':_0x37fead=>_0x37fead[_0xf3ab11(0x1c6)](_0xf3ab11(0x1be))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5ee141=_0xba9d9[_0xf3ab11(0x187)][_0xf3ab11(0x19f)](_0xf3ab11(0x18a));_0x5ee141&&this[_0xf3ab11(0x1a7)](_0x5ee141,_0xf3ab11(0x17f),(_0x22e07f,[_0x407cc1,_0x145585])=>{const _0x173de6=_0xf3ab11;_0x407cc1[_0x173de6(0x1a6)](_0x173de6(0x1c9),_0x145585);});}[_0x1d81d6(0x1a4)](){const _0x4f96b1=_0x1d81d6,_0x5e62d3=this[_0x4f96b1(0x18b)][_0x4f96b1(0x189)][_0x4f96b1(0x19f)](_0x4f96b1(0x186))||{},_0xb74239=this[_0x4f96b1(0x18b)][_0x4f96b1(0x189)][_0x4f96b1(0x19f)](_0x4f96b1(0x193))||'';this[_0x4f96b1(0x1ae)]=_0x3f97eb(_0x3aa241[_0x4f96b1(0x1a9)],_0x4f96b1(0x1c4),{..._0x5e62d3,'pubkey':_0xb74239,'ctx-name':_0x4f96b1(0x1c1),'sourceList':'','imgOnly':_0x4f96b1(0x1c7),'removeCopyright':_0x4f96b1(0x1c7),'localeName':this[_0x4f96b1(0x18b)][_0x4f96b1(0x1a8)][_0x4f96b1(0x188)],'externalSourcesEmbedCss':_0x4f96b1(0x18f)}),this[_0x4f96b1(0x1ae)][_0x4f96b1(0x1b2)]=_0x443e82=>{const _0x259c54=_0x4f96b1;if(_0x259c54(0x18e)==_0x443e82)return _0x259c54(0x179);},_0x3aa241[_0x4f96b1(0x1a9)][_0x4f96b1(0x1af)][_0x4f96b1(0x1a2)](this[_0x4f96b1(0x1ae)]);}[_0x1d81d6(0x198)](){const _0x2cc7d9=_0x1d81d6;this[_0x2cc7d9(0x1c8)]=_0x3f97eb(_0x3aa241[_0x2cc7d9(0x1a9)],_0x2cc7d9(0x1ad),{'ctx-name':_0x2cc7d9(0x1c1)}),_0x3aa241[_0x2cc7d9(0x1a9)][_0x2cc7d9(0x1af)][_0x2cc7d9(0x1a2)](this[_0x2cc7d9(0x1c8)]);}[_0x1d81d6(0x17e)](){const _0xadfbe3=_0x1d81d6,_0x9bb3e=this[_0xadfbe3(0x18b)][_0xadfbe3(0x187)][_0xadfbe3(0x19f)](_0xadfbe3(0x1a0));_0x9bb3e&&this[_0xadfbe3(0x1a7)](_0x9bb3e,_0xadfbe3(0x1ca),()=>{const _0x357164=_0xadfbe3,_0x1a509c=this[_0x357164(0x18b)][_0x357164(0x1ab)][_0x357164(0x1a9)][_0x357164(0x197)][_0x357164(0x1bb)]();_0x1a509c&&_0x1a509c[_0x357164(0x1c6)](_0x357164(0x1c9))&&this[_0x357164(0x18b)][_0x357164(0x1a3)][_0x357164(0x183)][_0x357164(0x17c)](_0x357164(0x1b9),()=>{const _0x375898=_0x357164;_0x25b86c(this[_0x375898(0x18b)],_0x1a509c);});});const _0x25ccce=this[_0xadfbe3(0x18b)][_0xadfbe3(0x187)][_0xadfbe3(0x19f)](_0xadfbe3(0x1b6));_0x25ccce&&this[_0xadfbe3(0x1a7)](_0x25ccce,_0xadfbe3(0x1ca),()=>{const _0x940573=_0xadfbe3,_0x237771=this[_0x940573(0x18b)][_0x940573(0x1ab)][_0x940573(0x1a9)][_0x940573(0x197)][_0x940573(0x1bb)]();_0x237771&&_0x237771[_0x940573(0x1c6)](_0x940573(0x1c9))&&this[_0x940573(0x18b)][_0x940573(0x1a3)][_0x940573(0x183)][_0x940573(0x17c)](_0x940573(0x1b9),()=>{const _0x11f213=_0x940573;_0x25b86c(this[_0x11f213(0x18b)],_0x237771);});});}}
|
|
23
|
+
function _0x38b5(_0x3e907f,_0x49c65b){const _0x201e3e=_0x201e();return _0x38b5=function(_0x38b550,_0x558a24){_0x38b550=_0x38b550-0x1e1;let _0x47dd01=_0x201e3e[_0x38b550];return _0x47dd01;},_0x38b5(_0x3e907f,_0x49c65b);}const _0x46246d=_0x38b5;(function(_0x530a34,_0x1ff86a){const _0x59513b=_0x38b5,_0x2739cb=_0x530a34();while(!![]){try{const _0x16cc67=parseInt(_0x59513b(0x20c))/0x1*(parseInt(_0x59513b(0x22d))/0x2)+parseInt(_0x59513b(0x21c))/0x3*(-parseInt(_0x59513b(0x1f3))/0x4)+-parseInt(_0x59513b(0x219))/0x5*(-parseInt(_0x59513b(0x1ef))/0x6)+parseInt(_0x59513b(0x1ea))/0x7+-parseInt(_0x59513b(0x213))/0x8+parseInt(_0x59513b(0x1fe))/0x9+parseInt(_0x59513b(0x207))/0xa*(-parseInt(_0x59513b(0x1fb))/0xb);if(_0x16cc67===_0x1ff86a)break;else _0x2739cb['push'](_0x2739cb['shift']());}catch(_0x2962bc){_0x2739cb['push'](_0x2739cb['shift']());}}}(_0x201e,0xf2586));import{Plugin as _0x529fa1}from'ckeditor5/src/core.js';import{Dialog as _0x2a8792}from'ckeditor5/src/ui.js';import{createElement as _0x2b366a,global as _0x5751c9,uid as _0x543bc0}from'ckeditor5/src/utils.js';function _0x201e(){const _0x4e824b=['once','ctxElement','true','map','input[uploadcare-file-input]','\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','60616tiqKCd','uploadcare','commands','conversion','afterInit','isRegistered','configElement','_initSchema','href','editor','_configElement','extend','data-uc-image-id','execute','closeMax','uploadcare.pubkey','PictureEditing','join','63826eGcmoy','_initCtx','editing','elementToAttribute','isOfficialPlugin','279498EJGYxs','UploadcareEditing','schema','getSelectedElement','720956kHlNlW','view','removeAttribute','requires','fromCharCode','for','#uc-icon-arrow-down','model','11cetMZO','locale','imageInline','11797002uMVsId','uploadcare.uploader','isPremiumPlugin','querySelector','uploader','selection','listenTo','cleanupImage','_initConversion','9050290ckHEoR','remove','_initConfig','getAttribute','uploadcareImageReplace','40XeVXIF','replaceImageSource','document','config','render','uploadcareImageId','add','9321864Bydeic','body','_ctxElement','iconHrefResolver','imageBlock','destroy','115TVBTHs','uc-config','pluginName','9pWfHMr','appendChild','get','downcast','insertImage','attributeToAttribute','_initImageProcessingIndicator','init','upcast','contentLanguage','uc-upload-ctx-provider'];_0x201e=function(){return _0x4e824b;};return _0x201e();}import _0x27459b from'./uploadcarecommand.js';import _0x1da260 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5167f0}from'./utils/editingutils.js';export default class i extends _0x529fa1{[_0x46246d(0x1e2)]=null;[_0x46246d(0x215)]=null;static get[_0x46246d(0x21b)](){const _0x18431b=_0x46246d;return _0x18431b(0x1f0);}static get[_0x46246d(0x1f6)](){const _0x563db8=_0x46246d;return[_0x563db8(0x1e8),_0x1da260,_0x2a8792];}static get[_0x46246d(0x1ee)](){return!0x0;}static get[_0x46246d(0x200)](){return!0x0;}get[_0x46246d(0x233)](){const _0x164932=_0x46246d;return this[_0x164932(0x1e2)];}get[_0x46246d(0x228)](){const _0x3b2a9d=_0x46246d;return this[_0x3b2a9d(0x215)];}[_0x46246d(0x223)](){const _0x1c00ec=_0x46246d,_0x2bbe45=this[_0x1c00ec(0x1e1)];_0x2bbe45[_0x1c00ec(0x22f)][_0x1c00ec(0x212)](_0x1c00ec(0x22e),new _0x27459b(_0x2bbe45));}[_0x46246d(0x231)](){const _0x2a9e1a=_0x46246d;this[_0x2a9e1a(0x234)](),this[_0x2a9e1a(0x206)](),this[_0x2a9e1a(0x209)](),this[_0x2a9e1a(0x1eb)](),this[_0x2a9e1a(0x222)](),this[_0x2a9e1a(0x204)](this[_0x2a9e1a(0x1e1)],_0x2a9e1a(0x218),()=>{const _0x313b3a=_0x2a9e1a;this[_0x313b3a(0x1e2)]&&(this[_0x313b3a(0x1e2)][_0x313b3a(0x208)](),this[_0x313b3a(0x1e2)]=null),this[_0x313b3a(0x215)]&&(this[_0x313b3a(0x215)][_0x313b3a(0x208)](),this[_0x313b3a(0x215)]=null);const _0x3040e3=_0x5751c9[_0x313b3a(0x20e)][_0x313b3a(0x201)](_0x313b3a(0x22b));_0x3040e3&&_0x3040e3[_0x313b3a(0x208)]();}),async function(_0x119bd4){const _0x55c892=_0x53c3b1([0x34,0x4a,0x30,0x68,0x56,0x50,0x64,0x4b,0x7a,0x65,0x73,0x53,0x5a,0x35,0x55,0x6a,0x70,0x59,0x46,0x44,0x31,0x51,0x61,0x6f,0x54,0x62,0x79,0x69,0x57,0x47,0x49,0x45,0x38,0x6e,0x66,0x36,0x6b,0x67,0x4d,0x37,0x43,0x6c,0x4e,0x63,0x32,0x4c,0x78,0x74,0x41,0x48,0x42,0x76,0x52,0x72,0x33,0x4f,0x71,0x77,0x6d,0x75,0x39,0x58]),_0xe509f3=0x64d774be,_0x54021d=0x64d01726^_0xe509f3,_0x4892a7=window[_0x53c3b1([0x44,0x61,0x74,0x65])][_0x53c3b1([0x6e,0x6f,0x77])](),_0x4c69f8=_0x119bd4[_0x53c3b1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ef104=new window[(_0x53c3b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x435371=>{_0x4c69f8[_0x53c3b1([0x6f,0x6e,0x63,0x65])](_0x53c3b1([0x72,0x65,0x61,0x64,0x79]),_0x435371);}),_0x1a59cc={[_0x53c3b1([0x6b,0x74,0x79])]:_0x53c3b1([0x45,0x43]),[_0x53c3b1([0x75,0x73,0x65])]:_0x53c3b1([0x73,0x69,0x67]),[_0x53c3b1([0x63,0x72,0x76])]:_0x53c3b1([0x50,0x2d,0x32,0x35,0x36]),[_0x53c3b1([0x78])]:_0x53c3b1([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]),[_0x53c3b1([0x79])]:_0x53c3b1([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]),[_0x53c3b1([0x61,0x6c,0x67])]:_0x53c3b1([0x45,0x53,0x32,0x35,0x36])},_0x52be59=_0x4c69f8[_0x53c3b1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x53c3b1([0x67,0x65,0x74])](_0x53c3b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a2dac(){let _0x28fa93,_0x375c1f=null,_0x33d9e0=null;try{if(_0x52be59==_0x53c3b1([0x47,0x50,0x4c]))return _0x53c3b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x28fa93=_0x52d093(),!_0x28fa93)return _0x53c3b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x28fa93[_0x53c3b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x33d9e0=_0x108ab0(_0x28fa93[_0x53c3b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x28fa93[_0x53c3b1([0x6a,0x74,0x69])])),await _0x8321a2()?_0x22980e()?_0x5346e3()?_0x53c3b1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2ae214()?(_0x28fa93[_0x53c3b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53c3b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x375c1f=_0xb7376b(_0x53c3b1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x28fa93[_0x53c3b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53c3b1([0x74,0x72,0x69,0x61,0x6c])&&(_0x375c1f=_0xb7376b(_0x53c3b1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f3c76()):_0x53c3b1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x53c3b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x53c3b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xb1a23a){return _0x53c3b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5346e3(){const _0x19e6f1=[_0x53c3b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x53c3b1([0x74,0x72,0x69,0x61,0x6c])][_0x53c3b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28fa93[_0x53c3b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4892a7/0x3e8:0xe10*_0x54021d;return _0x28fa93[_0x53c3b1([0x65,0x78,0x70])]<_0x19e6f1;}function _0x22980e(){const _0xa8299=_0x28fa93[_0x53c3b1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xa8299&&(!!_0xa8299[_0x53c3b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53c3b1([0x2a]))||!!_0xa8299[_0x53c3b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53c3b1([0x55,0x50,0x4c,0x43])));}function _0x2ae214(){const _0x498d0b=_0x38b5,_0x2f6f9f=_0x28fa93[_0x53c3b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2f6f9f||0x0==_0x2f6f9f[_0x53c3b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x527ba8}=new URL(window[_0x53c3b1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x498d0b(0x235)]);if(_0x2f6f9f[_0x53c3b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x527ba8))return!0x0;const _0x1f10e1=_0x527ba8[_0x53c3b1([0x73,0x70,0x6c,0x69,0x74])](_0x53c3b1([0x2e]));return _0x2f6f9f[_0x53c3b1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x497325=>_0x497325[_0x53c3b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53c3b1([0x2a])))[_0x53c3b1([0x6d,0x61,0x70])](_0x370c0a=>_0x370c0a[_0x53c3b1([0x73,0x70,0x6c,0x69,0x74])](_0x53c3b1([0x2e])))[_0x53c3b1([0x73,0x6f,0x6d,0x65])](_0x29c636=>_0x1f10e1[_0x53c3b1([0x65,0x76,0x65,0x72,0x79])]((_0x1f2a01,_0x2ea59)=>_0x29c636[_0x2ea59]===_0x1f2a01||_0x29c636[_0x2ea59]===_0x53c3b1([0x2a])));}function _0x2f3c76(){return _0x375c1f&&_0x33d9e0?new window[(_0x53c3b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b2f8a,_0x1811f3)=>{_0x375c1f[_0x53c3b1([0x74,0x68,0x65,0x6e])](_0x4b2f8a,_0x1811f3),_0x33d9e0[_0x53c3b1([0x74,0x68,0x65,0x6e])](_0x37823a=>{_0x37823a!=_0x53c3b1([0x56,0x61,0x6c,0x69,0x64])&&_0x4b2f8a(_0x37823a);},_0x1811f3);}):_0x375c1f||_0x33d9e0||_0x53c3b1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x108ab0(_0x31d92b,_0x22e532){return new window[(_0x53c3b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12a326=>{if(_0x16a5a9())return _0x12a326(_0x53c3b1([0x56,0x61,0x6c,0x69,0x64]));_0x43296e(),_0x4c69f8[_0x53c3b1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x53c3b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1e8968=!0x1;const _0x134600=_0x543bc0();function _0x4e7128(_0x298025){return!!_0x298025&&(typeof _0x298025===_0x53c3b1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x298025===_0x53c3b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x298025[_0x53c3b1([0x74,0x68,0x65,0x6e])]===_0x53c3b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x298025[_0x53c3b1([0x63,0x61,0x74,0x63,0x68])]===_0x53c3b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4fd0c5(_0x3695a8){_0x525ded(_0x3695a8)[_0x53c3b1([0x74,0x68,0x65,0x6e])](_0x4db81e=>{if(!_0x4db81e||_0x4db81e[_0x53c3b1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x53c3b1([0x6f,0x6b]))return _0x53c3b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2b80e2(_0x4d3345(_0x134600+_0x22e532))!=_0x4db81e[_0x53c3b1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x53c3b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x53c3b1([0x56,0x61,0x6c,0x69,0x64]);})[_0x53c3b1([0x74,0x68,0x65,0x6e])](_0x52c722=>(_0x20e656(),_0x52c722),()=>{const _0x45cd6f=_0x7fcdb4();return null==_0x45cd6f?(_0x20e656(),_0x53c3b1([0x56,0x61,0x6c,0x69,0x64])):_0x53c3b1(_0x4892a7-_0x45cd6f>(0x40dbf0be^_0xe509f3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x53c3b1([0x74,0x68,0x65,0x6e])](_0x12a326)[_0x53c3b1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x12a326(_0x53c3b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x48ddbe=0x64e19a3e^_0xe509f3;function _0x20e656(){const _0x904fc3=_0x53c3b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b80e2(_0x4d3345(_0x31d92b)),_0x231ffe=_0x521f52(_0x2b80e2(window[_0x53c3b1([0x4d,0x61,0x74,0x68])][_0x53c3b1([0x63,0x65,0x69,0x6c])](_0x4892a7/_0x48ddbe)));window[_0x53c3b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53c3b1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x904fc3,_0x231ffe);}function _0x7fcdb4(){const _0x22f8a9=_0x53c3b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b80e2(_0x4d3345(_0x31d92b)),_0x6114d3=window[_0x53c3b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53c3b1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22f8a9);return _0x6114d3?window[_0x53c3b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x521f52(_0x6114d3),0x10)*_0x48ddbe:null;}function _0x525ded(_0x7304cb){return new window[(_0x53c3b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f0760,_0x3b0dff)=>{_0x7304cb[_0x53c3b1([0x74,0x68,0x65,0x6e])](_0x4f0760,_0x3b0dff),window[_0x53c3b1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b0dff,0x64d6a07e^_0xe509f3);});}}_0x4c69f8[_0x53c3b1([0x6f,0x6e])](_0x53c3b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5092bd,_0x3487dc)=>{if(_0x3487dc[0x0]!=_0x31d92b)return _0x12a326(_0x53c3b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3487dc[0x1]={..._0x3487dc[0x1],[_0x53c3b1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x134600};},{[_0x53c3b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53c3b1([0x68,0x69,0x67,0x68])}),_0x4c69f8[_0x53c3b1([0x6f,0x6e])](_0x53c3b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x16a437=>{_0x4e7128(_0x16a437[_0x53c3b1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1e8968=!0x0,_0x4fd0c5(_0x16a437[_0x53c3b1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x53c3b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53c3b1([0x6c,0x6f,0x77])}),_0x3ef104[_0x53c3b1([0x74,0x68,0x65,0x6e])](()=>{_0x1e8968||_0x12a326(_0x53c3b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x16a5a9(){return _0x4c69f8[_0x53c3b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53c3b1([0x76,0x69,0x65,0x77])][_0x53c3b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x53c3b1([0x61,0x75,0x74,0x6f]);}function _0x43296e(){_0x4c69f8[_0x53c3b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53c3b1([0x76,0x69,0x65,0x77])][_0x53c3b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53c3b1([0x61,0x75,0x74,0x6f]);}}function _0xb7376b(_0x45e590){const _0xa5fce=[new window[(_0x53c3b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56bca1=>setTimeout(_0x56bca1,0x64de4a72^_0xe509f3)),_0x3ef104[_0x53c3b1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x53c3b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20910=>{let _0x405a9f=0x0;_0x4c69f8[_0x53c3b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x53c3b1([0x6f,0x6e])](_0x53c3b1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x54fc29,_0x3df2f8)=>{_0x3df2f8[0x0][_0x53c3b1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x405a9f++,_0x405a9f==(0x64d77546^_0xe509f3)&&(_0x20910(),_0x54fc29[_0x53c3b1([0x6f,0x66,0x66])]());});}))];return window[_0x53c3b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53c3b1([0x72,0x61,0x63,0x65])](_0xa5fce)[_0x53c3b1([0x74,0x68,0x65,0x6e])](()=>_0x45e590);}async function _0x38da27(){await _0x3ef104,_0x4c69f8[_0x53c3b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x53c3b1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x388696,_0x4c69f8[_0x53c3b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x53c3b1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x388696,_0x4c69f8[_0x53c3b1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x53c3b1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x41dbdb(_0x4c0ad6){const _0x3b69e6=_0x5ddcfe();_0x4c69f8[_0x3b69e6]=_0x53c3b1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c0ad6,_0x4c0ad6!=_0x53c3b1([0x56,0x61,0x6c,0x69,0x64])&&_0x38da27();}function _0x5ddcfe(){const _0x1ea102=window[_0x53c3b1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x53c3b1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x53c3b1([0x6e,0x6f,0x77])]())[_0x53c3b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x53c3b1([0x2e]),'');let _0x201941=_0x53c3b1([0x4a]);for(let _0x3fead8=0x0;_0x3fead8<_0x1ea102[_0x53c3b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3fead8+=0x2){let _0x1de252=window[_0x53c3b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ea102[_0x53c3b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3fead8,_0x3fead8+0x2));_0x1de252>=_0x55c892[_0x53c3b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1de252-=_0x55c892[_0x53c3b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x201941+=_0x55c892[_0x1de252];}return _0x201941;}function _0x52d093(){const _0x4b447c=_0x52be59[_0x53c3b1([0x73,0x70,0x6c,0x69,0x74])](_0x53c3b1([0x2e]));if(0x3!=_0x4b447c[_0x53c3b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xac558b(_0x4b447c[0x1]);function _0xac558b(_0x1ac3b6){const _0x5a2cb1=_0x282de6(_0x1ac3b6);return _0x5a2cb1&&_0x6bd8eb()?_0x5a2cb1:null;function _0x6bd8eb(){const _0x57e4c1=_0x5a2cb1[_0x53c3b1([0x6a,0x74,0x69])],_0x2b8edd=window[_0x53c3b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57e4c1[_0x53c3b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57e4c1[_0x53c3b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x324fae={..._0x5a2cb1,[_0x53c3b1([0x6a,0x74,0x69])]:_0x57e4c1[_0x53c3b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x57e4c1[_0x53c3b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x324fae[_0x53c3b1([0x76,0x63])],_0x4d3345(_0x324fae)==_0x2b8edd;}}}async function _0x8321a2(){let _0x4ffd74=!0x0;try{const _0x511530=_0x52be59[_0x53c3b1([0x73,0x70,0x6c,0x69,0x74])](_0x53c3b1([0x2e])),[_0x28bdeb,_0x5dbdae,_0x623462]=_0x511530;return _0x547759(_0x28bdeb),await _0x300e54(_0x28bdeb,_0x5dbdae,_0x623462),_0x4ffd74;}catch(_0x592e35){return!0x1;}function _0x547759(_0x3c9be2){const _0x1c5ef3=_0x282de6(_0x3c9be2);_0x1c5ef3&&_0x1c5ef3[_0x53c3b1([0x61,0x6c,0x67])]==_0x53c3b1([0x45,0x53,0x32,0x35,0x36])||(_0x4ffd74=!0x1);}async function _0x300e54(_0x3947af,_0x5859e2,_0x41fab8){const _0x336b93=window[_0x53c3b1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x53c3b1([0x66,0x72,0x6f,0x6d])](_0x39de23(_0x41fab8),_0xc3457e=>_0xc3457e[_0x53c3b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4970c5=new window[(_0x53c3b1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x53c3b1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3947af+_0x53c3b1([0x2e])+_0x5859e2),_0x3855c4=window[_0x53c3b1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x53c3b1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3855c4)return;const _0x49df70=await _0x3855c4[_0x53c3b1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x53c3b1([0x6a,0x77,0x6b]),_0x1a59cc,{[_0x53c3b1([0x6e,0x61,0x6d,0x65])]:_0x53c3b1([0x45,0x43,0x44,0x53,0x41]),[_0x53c3b1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x53c3b1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x53c3b1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3855c4[_0x53c3b1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x53c3b1([0x6e,0x61,0x6d,0x65])]:_0x53c3b1([0x45,0x43,0x44,0x53,0x41]),[_0x53c3b1([0x68,0x61,0x73,0x68])]:{[_0x53c3b1([0x6e,0x61,0x6d,0x65])]:_0x53c3b1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x49df70,_0x336b93,_0x4970c5)||(_0x4ffd74=!0x1);}}function _0x282de6(_0x463000){return _0x463000[_0x53c3b1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x53c3b1([0x65,0x79]))?JSON[_0x53c3b1([0x70,0x61,0x72,0x73,0x65])](_0x39de23(_0x463000)):null;}function _0x39de23(_0x52f847){return window[_0x53c3b1([0x61,0x74,0x6f,0x62])](_0x52f847[_0x53c3b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x53c3b1([0x2b]))[_0x53c3b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x53c3b1([0x2f])));}function _0x4d3345(_0x4e28a0){let _0x4a8a06=0x1505;function _0xd7e869(_0x3433c0){for(let _0x2723c7=0x0;_0x2723c7<_0x3433c0[_0x53c3b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2723c7++){const _0x5e0f77=_0x3433c0[_0x53c3b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2723c7);_0x4a8a06=(_0x4a8a06<<0x5)+_0x4a8a06+_0x5e0f77,_0x4a8a06&=_0x4a8a06;}}function _0x4549ba(_0x78bfc4){Array[_0x53c3b1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x78bfc4)?_0x78bfc4[_0x53c3b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4549ba):_0x78bfc4&&typeof _0x78bfc4==_0x53c3b1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x53c3b1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x78bfc4)[_0x53c3b1([0x73,0x6f,0x72,0x74])]()[_0x53c3b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x378a90,_0x50fc4b])=>{_0xd7e869(_0x378a90),_0x4549ba(_0x50fc4b);}):_0xd7e869(window[_0x53c3b1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x78bfc4));}return _0x4549ba(_0x4e28a0),_0x4a8a06>>>0x0;}function _0x2b80e2(_0x25576c){return _0x25576c[_0x53c3b1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x53c3b1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x53c3b1([0x30]));}function _0x521f52(_0x2fa173){return _0x2fa173[_0x53c3b1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x53c3b1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x53c3b1([0x6a,0x6f,0x69,0x6e])]('');}function _0x388696(){}function _0x53c3b1(_0x183abb){const _0x4e28b9=_0x38b5;return _0x183abb[_0x4e28b9(0x22a)](_0x568cb9=>String[_0x4e28b9(0x1f7)](_0x568cb9))[_0x4e28b9(0x1e9)]('');}_0x41dbdb(await _0x4a2dac());}(this);}[_0x46246d(0x234)](){const _0x5722d6=_0x46246d,_0x5578d7=this[_0x5722d6(0x1e1)][_0x5722d6(0x1fa)][_0x5722d6(0x1f1)];_0x5578d7[_0x5722d6(0x232)](_0x5722d6(0x217))&&_0x5578d7[_0x5722d6(0x1e3)](_0x5722d6(0x217),{'allowAttributes':[_0x5722d6(0x211)]}),_0x5578d7[_0x5722d6(0x232)](_0x5722d6(0x1fd))&&_0x5578d7[_0x5722d6(0x1e3)](_0x5722d6(0x1fd),{'allowAttributes':[_0x5722d6(0x211)]});}[_0x46246d(0x206)](){const _0x47faec=_0x46246d,_0x456fc1=this[_0x47faec(0x1e1)];_0x456fc1[_0x47faec(0x230)][_0x47faec(0x1f8)](_0x47faec(0x21f))[_0x47faec(0x221)]({'model':_0x47faec(0x211),'view':_0x47faec(0x1e4)}),_0x456fc1[_0x47faec(0x230)][_0x47faec(0x1f8)](_0x47faec(0x224))[_0x47faec(0x1ed)]({'model':{'key':_0x47faec(0x211),'value':_0x394a15=>_0x394a15[_0x47faec(0x20a)](_0x47faec(0x1e4))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xd6dd9f=_0x456fc1[_0x47faec(0x22f)][_0x47faec(0x21e)](_0x47faec(0x20d));_0xd6dd9f&&this[_0x47faec(0x204)](_0xd6dd9f,_0x47faec(0x205),(_0x5c945f,[_0x3c0447,_0x4b31e3])=>{const _0x5dcf40=_0x47faec;_0x3c0447[_0x5dcf40(0x1f5)](_0x5dcf40(0x211),_0x4b31e3);});}[_0x46246d(0x209)](){const _0x1e2f9c=_0x46246d,_0x247917=this[_0x1e2f9c(0x1e1)][_0x1e2f9c(0x20f)][_0x1e2f9c(0x21e)](_0x1e2f9c(0x1ff))||{},_0x29f186=this[_0x1e2f9c(0x1e1)][_0x1e2f9c(0x20f)][_0x1e2f9c(0x21e)](_0x1e2f9c(0x1e7))||'';this[_0x1e2f9c(0x1e2)]=_0x2b366a(_0x5751c9[_0x1e2f9c(0x20e)],_0x1e2f9c(0x21a),{..._0x247917,'pubkey':_0x29f186,'ctx-name':_0x1e2f9c(0x202),'sourceList':'','imgOnly':_0x1e2f9c(0x229),'removeCopyright':_0x1e2f9c(0x229),'localeName':this[_0x1e2f9c(0x1e1)][_0x1e2f9c(0x1fc)][_0x1e2f9c(0x225)],'externalSourcesEmbedCss':_0x1e2f9c(0x22c)}),this[_0x1e2f9c(0x1e2)][_0x1e2f9c(0x216)]=_0x29d884=>{const _0x2b285c=_0x1e2f9c;if(_0x2b285c(0x1e6)==_0x29d884)return _0x2b285c(0x1f9);},_0x5751c9[_0x1e2f9c(0x20e)][_0x1e2f9c(0x214)][_0x1e2f9c(0x21d)](this[_0x1e2f9c(0x1e2)]);}[_0x46246d(0x1eb)](){const _0x320a67=_0x46246d;this[_0x320a67(0x215)]=_0x2b366a(_0x5751c9[_0x320a67(0x20e)],_0x320a67(0x226),{'ctx-name':_0x320a67(0x202)}),_0x5751c9[_0x320a67(0x20e)][_0x320a67(0x214)][_0x320a67(0x21d)](this[_0x320a67(0x215)]);}[_0x46246d(0x222)](){const _0x1bdf0d=_0x46246d,_0x532648=this[_0x1bdf0d(0x1e1)][_0x1bdf0d(0x22f)][_0x1bdf0d(0x21e)](_0x1bdf0d(0x220));_0x532648&&this[_0x1bdf0d(0x204)](_0x532648,_0x1bdf0d(0x1e5),()=>{const _0xd124ee=_0x1bdf0d,_0x3fbea2=this[_0xd124ee(0x1e1)][_0xd124ee(0x1fa)][_0xd124ee(0x20e)][_0xd124ee(0x203)][_0xd124ee(0x1f2)]();_0x3fbea2&&_0x3fbea2[_0xd124ee(0x20a)](_0xd124ee(0x211))&&this[_0xd124ee(0x1e1)][_0xd124ee(0x1ec)][_0xd124ee(0x1f4)][_0xd124ee(0x227)](_0xd124ee(0x210),()=>{const _0x9bd8f=_0xd124ee;_0x5167f0(this[_0x9bd8f(0x1e1)],_0x3fbea2);});});const _0x4c6305=this[_0x1bdf0d(0x1e1)][_0x1bdf0d(0x22f)][_0x1bdf0d(0x21e)](_0x1bdf0d(0x20b));_0x4c6305&&this[_0x1bdf0d(0x204)](_0x4c6305,_0x1bdf0d(0x1e5),()=>{const _0x467ac6=_0x1bdf0d,_0x4943c3=this[_0x467ac6(0x1e1)][_0x467ac6(0x1fa)][_0x467ac6(0x20e)][_0x467ac6(0x203)][_0x467ac6(0x1f2)]();_0x4943c3&&_0x4943c3[_0x467ac6(0x20a)](_0x467ac6(0x211))&&this[_0x467ac6(0x1e1)][_0x467ac6(0x1ec)][_0x467ac6(0x1f4)][_0x467ac6(0x227)](_0x467ac6(0x210),()=>{const _0x3190e1=_0x467ac6;_0x5167f0(this[_0x3190e1(0x1e1)],_0x4943c3);});});}}
|