@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250531.0 → 0.0.0-nightly-20250602.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 _0x13d9ff,Command as _0x1a76bc}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x30275a,IconGooglePhotos as _0x2b330f,IconGoogleDrive as _0xb173c4,IconFacebook as _0x541ca8,IconDropbox as _0x882d07,IconUploadcareLink as _0x54f77b,IconUploadcareImageUpload as _0x21d258,IconError as et,IconUploadcareImageEdit as _0x566f0f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x41a36a,MenuBarMenuListItemButtonView as _0x510334,View as _0x55f4a0,FocusCycler as _0x551467,Dialog as _0x3bcadc,DialogViewPosition as _0x2aaa7f,SpinnerView as _0x234a35,IconView as at,Notification as _0xbffd6a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3c827e,DomEmitterMixin as _0x2bf27b,global as _0x269f69,getAncestors as _0x38b524,ObservableMixin as _0x246108,createElement as _0x2ec357,uid as _0x33515d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x41409c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x8b8d42,info as _0x2eb949}from'@uploadcare/upload-client';import*as _0x1c1188 from'@uploadcare/file-uploader';var o=function(_0x48b269){return _0x48b269['Local']='local',_0x48b269['URL']='url',_0x48b269['Dropbox']='dropbox',_0x48b269['GDrive']='gdrive',_0x48b269['Facebook']='facebook',_0x48b269['GPhotos']='gphotos',_0x48b269['OneDrive']='onedrive',_0x48b269;}({});function _(_0x230a26,_0x42a48a,_0x13a558){const t=_0x230a26['t'],_0x5e8dcb=_0x230a26['t'];switch(_0x42a48a){case o['Local']:return{'text':_0x5e8dcb('Insert'===_0x13a558?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5e8dcb('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x13a558?_0x5e8dcb('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5e8dcb('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x13a558?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x13a558?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x13a558?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x13a558?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x13a558?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x42a48a;}}class e extends _0x13d9ff{['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 _0x17cc77=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1bf478;for(const _0x5239bf in _0x17cc77){const _0x8d24cc=_0x5239bf,_0x3528ab=_0x17cc77[_0x8d24cc];if('uploadcareLicenseKeyValid'==_0x3528ab||'uploadcareLicenseKeyInvalid'==_0x3528ab||'uploadcareLicenseKeyExpired'==_0x3528ab||'uploadcareLicenseKeyDomainLimit'==_0x3528ab||'uploadcareLicenseKeyNotAllowed'==_0x3528ab||'uploadcareLicenseKeyEvaluationLimit'==_0x3528ab||'uploadcareLicenseKeyTrialLimit'==_0x3528ab||'uploadcareLicenseKeyUsageLimit'==_0x3528ab){delete _0x17cc77[_0x8d24cc],_0x1bf478=_0x3528ab,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1bf478&&_0x17cc77['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1bf478&&_0x17cc77['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1bf478&&_0x17cc77['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1bf478&&_0x17cc77['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1bf478&&_0x17cc77['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1bf478&&_0x17cc77['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1bf478&&_0x17cc77['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x347cad}=this,_0x359ad9=_0x347cad['commands']['get']('uploadcare');if(!_0x359ad9)return;const _0x28ad13=this['_normalizeConfigSourceList'](_0x347cad['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x56a772,_0x16f604)=>{const _0x2ddbba=this['_getIntegrationKey'](_0x16f604['type']);return _0x56a772[_0x2ddbba]||(_0x56a772[_0x2ddbba]=[]),_0x56a772[_0x2ddbba]['push'](_0x16f604),_0x56a772;},{});_0x347cad['plugins']['has']('ImageInsertUI')&&_0x347cad['commands']['get']('uploadcare')&&Object['entries'](_0x28ad13)['forEach'](([_0x528136,_0xc7296d])=>{_0x347cad['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x528136,'observable':()=>_0x359ad9,'buttonViewCreator':()=>this['_createToolbarButton'](_0xc7296d),'formViewCreator':()=>this['_createDropdownButtons'](_0xc7296d),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xc7296d),'override':'assetManager'!==_0x528136});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1ff174){const {locale:_0x1d802d}=this['editor'];return _0x1ff174['map'](_0x1ef6b9=>{const _0x14e1b4=_(_0x1d802d,_0x1ef6b9,'Insert');switch(_0x1ef6b9){case o['Local']:return{'icon':_0x21d258,'type':o['Local'],..._0x14e1b4};case o['URL']:return{'icon':_0x54f77b,'type':o['URL'],..._0x14e1b4};case o['Dropbox']:return{'icon':_0x882d07,'type':o['Dropbox'],..._0x14e1b4};case o['Facebook']:return{'icon':_0x541ca8,'type':o['Facebook'],..._0x14e1b4};case o['GDrive']:return{'icon':_0xb173c4,'type':o['GDrive'],..._0x14e1b4};case o['GPhotos']:return{'icon':_0x2b330f,'type':o['GPhotos'],..._0x14e1b4};case o['OneDrive']:return{'icon':_0x30275a,'type':o['OneDrive'],..._0x14e1b4};}});}['_getIntegrationKey'](_0x2d701d){switch(_0x2d701d){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x53c3e0,_0x56c4f0){const _0x3ba1f1=this['editor'],_0x43de92=new _0x53c3e0(_0x3ba1f1['locale']),_0x483ffe=_0x3ba1f1['commands']['get']('uploadcare');return _0x43de92['bind']('isEnabled')['to'](_0x483ffe),_0x43de92['on']('execute',()=>{_0x483ffe['execute'](_0x56c4f0);}),_0x43de92;}['_createToolbarButton'](_0x478bbc){const {locale:_0x56dfc2}=this['editor'],_0x3019a3=this['editor']['plugins']['get']('ImageInsertUI'),_0x237525=_0x478bbc[0x0],_0x270654=this['_createButton'](_0x41a36a,_0x237525['type']);return _0x270654['icon']=_0x237525['icon'],_0x270654['bind']('label')['to'](_0x3019a3,'isImageSelected',_0x4d4ad1=>_(_0x56dfc2,_0x237525['type'],_0x4d4ad1?'Replace':'Insert')['text']),_0x270654['tooltip']=!0x0,_0x270654;}['_createDropdownButtons'](_0x342144){const {locale:_0x43f27b}=this['editor'],_0x2d042b=this['editor']['plugins']['get']('ImageInsertUI');return _0x342144['map'](_0x370ad9=>{const _0xcf3d18=this['_createButton'](_0x41a36a,_0x370ad9['type']);return _0xcf3d18['withText']=!0x0,_0xcf3d18['icon']=_0x370ad9['icon'],_0xcf3d18['bind']('label')['to'](_0x2d042b,'isImageSelected',_0x2802de=>_(_0x43f27b,_0x370ad9['type'],_0x2802de?'Replace':'Insert')['text']),_0xcf3d18;});}['_createMenuBarButtons'](_0x1aaaab){return _0x1aaaab['map'](_0x29d341=>{const _0x11e203=this['_createButton'](_0x510334,_0x29d341['type']);return _0x11e203['icon']=_0x29d341['icon'],_0x11e203['label']=_0x29d341['shortText'],_0x11e203;});}}class q extends _0x55f4a0{['focusTracker'];['focusCycler'];constructor(_0xb92a4){super(_0xb92a4),this['focusTracker']=new _0x3c827e(),this['focusCycler']=new _0x551467({'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(_0x3ddb8a){super(_0x3ddb8a),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(_0x168315,_0x38a96e){const _0x34c5d6=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x435b23=>_0x435b23<=_0x38a96e)['map'](_0x51f447=>_0x168315['replace'](/\/$/,'')+'/-/resize/'+_0x51f447+'x/\x20'+_0x51f447+'w');return{'imageFallbackUrl':_0x168315,'imageSources':[{'srcset':_0x34c5d6['join'](',\x20'),'sizes':'(max-width:\x20'+_0x38a96e+'px)\x20100vw,\x20'+_0x38a96e+'px','type':'image/webp'}]};}function A(_0x2b1bbd,_0x57f78b,_0x1d1b72){const _0x43c4f7=_0x2b1bbd['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x43c4f7?parseInt(_0x43c4f7[0x1],0xa):_0x57f78b,'height':_0x43c4f7?parseInt(_0x43c4f7[0x2],0xa):_0x1d1b72};}function m(_0x5b6465,_0x1662de){const _0xc5f54b=Object['create'](_0x2bf27b),_0x5d7ed9=_0x5b6465['plugins']['get']('ImageUtils'),_0x18685a=_0x5b6465['editing']['mapper']['toViewElement'](_0x1662de),_0x4354ec=_0x5d7ed9['findViewImgElement'](_0x18685a),_0x54d39c=_0x5b6465['editing']['view']['domConverter']['viewToDom'](_0x4354ec),_0x4e2155=_0x1662de['getAttribute']('width'),_0x386188=_0x1662de['getAttribute']('height'),_0x3e270a='image-processing';_0x5b6465['editing']['view']['change'](_0x4a3aa3=>{_0x4a3aa3['addClass'](_0x3e270a,_0x18685a),_0x4a3aa3['setStyle']('aspect-ratio',_0x4e2155+'/'+_0x386188,_0x4354ec);}),_0xc5f54b['listenTo'](_0x54d39c,'load',()=>{_0xc5f54b['stopListening'](_0x54d39c,'load'),_0x5b6465['editing']['view']['change'](_0x4b5919=>{_0x4b5919['removeClass'](_0x3e270a,_0x18685a),_0x4b5919['removeStyle']('aspect-ratio',_0x4354ec);});});}function V(_0x34e515){if(Array['isArray'](_0x34e515)){const _0x54d3fc=_0x34e515['map'](V);return _0x3e46cd=>_0x54d3fc['some'](_0x43b1b6=>_0x43b1b6(_0x3e46cd));}if('origin'==_0x34e515){const _0x119c55=_0x269f69['window']['location']['origin'];return _0x468ed7=>new URL(_0x468ed7,_0x269f69['document']['baseURI'])['origin']==_0x119c55;}return'function'==typeof _0x34e515?_0x34e515:_0x34e515 instanceof RegExp?_0x5db5d0=>!(!_0x5db5d0['match'](_0x34e515)&&!_0x5db5d0['replace'](/^https?:\/\//,'')['match'](_0x34e515)):()=>!0x1;}function F(_0x52e59f,_0x5aa30c){return _0x38b524(_0x52e59f['target'])['includes'](_0x5aa30c);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x246108(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4e8eac,_0x57202c,_0x38f331){super(),this['_editor']=_0x4e8eac,this['_editing']=_0x57202c,this['_dialog']=_0x4e8eac['plugins']['get'](_0x3bcadc),this['_api']=_0x57202c['ctxElement']['getAPI'](),this['_type']=_0x38f331,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:_0x1a6533,model:_0x309041}=this['_editor'],_0x181054=_0x309041['document']['selection']['getSelectedElement'](),_0x2f90fe=_0x181054&&(_0x181054['is']('element','imageBlock')||_0x181054['is']('element','imageInline'));this['_formView']=new S(_0x1a6533),this['_dialog']['show']({'id':'uploadCare','icon':_0x21d258,'title':_(_0x1a6533,this['_type'],_0x2f90fe?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2aaa7f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x53858c=>!F(_0x53858c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4106cb}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x396358=>{const _0x14180d=_0x4106cb['length'];for(const _0x8cc51c of _0x4106cb){const _0x878865=_0x8cc51c===_0x4106cb[_0x14180d-0x1],{cdnUrl:_0x3f77d2,fileInfo:_0x297c57}=_0x8cc51c;if(!_0x3f77d2||!_0x297c57)continue;const {width:_0x2645a1,height:_0x182440}=_0x297c57['imageInfo'],_0x5a8590=A(_0x3f77d2,_0x2645a1,_0x182440),_0x493177=E(_0x3f77d2,_0x5a8590['width']),_0x1abdde={'id':_0x297c57['uuid'],'type':'image','attributes':{'imageDimension':_0x5a8590,..._0x493177}};this['_insertAsset'](_0x1abdde,_0x878865,_0x396358);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x577923=>{'idle'===_0x577923['detail']['status']&&!_0x577923['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1742f3,_0x2f2778,_0x5b8917){const _0x2e645b=this['_editor']['model']['document']['selection'],_0x46da6d=_0x2e645b['getSelectedElement'](),_0x54d4d3=!(!_0x46da6d||!_0x46da6d['is']('element','imageInline'));_0x5b8917['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1742f3,_0x54d4d3),_0x2f2778||_0x5b8917['setSelection'](_0x2e645b['getLastPosition']());}['_insertImage'](_0x3d9fbb,_0x58e8c6){const _0x2f12d1=this['_editor'],{imageDimension:_0x5af34b,imageFallbackUrl:_0x171c28,imageSources:_0x2cb2d6}=_0x3d9fbb['attributes'];_0x2f12d1['execute']('insertImage',{'imageType':_0x58e8c6?'imageInline':null,'source':{'uploadcareImageId':_0x3d9fbb['id'],'src':_0x171c28,'sources':_0x2cb2d6,..._0x5af34b}});}}class n extends _0x1a76bc{['_editing'];['_controller']=null;static get['requires'](){return[_0x3bcadc,i];}constructor(_0x240ada){super(_0x240ada),this['_editing']=_0x240ada['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x595d6c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x595d6c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x2b2065,publicKey:_0x2e423c,signal:_0x3bdb3f,onProgress:_0x389a64}){return _0x8b8d42(_0x2b2065,{'publicKey':_0x2e423c,'store':'auto','signal':_0x3bdb3f,'onProgress':_0x389a64});}static['getInfo'](_0x481a82,_0xcd4075){return _0x2eb949(_0x481a82,_0xcd4075);}}class p extends _0x13d9ff{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x41409c,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3a0374=this['editor'];if(!!!_0x3a0374['config']['get']('uploadcare'))return;_0x3a0374['plugins']['get'](_0x41409c)['createUploadAdapter']=_0x303d42=>new x(_0x303d42,_0x3a0374),_0x3a0374['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1112b0,{imageElement:_0x29c3f5,data:_0x170ba2})=>{_0x3a0374['model']['change'](_0x43b4e0=>{_0x43b4e0['setAttribute']('uploadcareImageId',_0x170ba2['uploadcareImageId'],_0x29c3f5);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x1ca525,_0x6aaadf){this['loader']=_0x1ca525,this['editor']=_0x6aaadf,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x597a4e=this['editor']['config']['get']('uploadcare.pubkey'),_0x121d74=await this['loader']['file'];return C['upload']({'file':_0x121d74,'publicKey':_0x597a4e,'signal':this['controller']['signal'],'onProgress':_0x3202f3=>{_0x3202f3&&_0x3202f3['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3202f3['value']);}})['then'](async _0x246846=>{const {imageFallbackUrl:_0x5222b4,imageSources:_0x213880}=E(_0x246846['cdnUrl'],_0x246846['imageInfo']['width']);return{'uploadcareImageId':_0x246846['uuid'],'default':_0x5222b4,'sources':_0x213880};})['catch'](()=>{const _0x15472a=t('Cannot\x20upload\x20file:')+('\x20'+_0x121d74['name']+'.');return Promise['reject'](_0x15472a);});}['abort'](){this['controller']['abort']();}}class i extends _0x13d9ff{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3bcadc];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x1519f9=this['editor'];_0x1519f9['commands']['add']('uploadcare',new n(_0x1519f9));}['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 _0x42df25=_0x269f69['document']['querySelector']('input[uploadcare-file-input]');_0x42df25&&_0x42df25['remove']();}),async function(_0x2e5af7){const _0x14ac6a=_0x128a28([0x76,0x4c,0x73,0x44,0x34,0x6b,0x31,0x6f,0x43,0x6e,0x5a,0x48,0x6d,0x72,0x59,0x42,0x79,0x35,0x32,0x47,0x4d,0x69,0x7a,0x50,0x38,0x75,0x54,0x67,0x39,0x62,0x65,0x78,0x58,0x53,0x49,0x71,0x46,0x74,0x68,0x4b,0x66,0x33,0x64,0x30,0x36,0x70,0x51,0x56,0x4f,0x6c,0x45,0x63,0x52,0x55,0x4a,0x37,0x61,0x41,0x77,0x57,0x6a,0x4e]),_0x28013c=0x5232a414,_0x51f81f=0x5235cd7c^_0x28013c,_0x37c807=window[_0x128a28([0x44,0x61,0x74,0x65])][_0x128a28([0x6e,0x6f,0x77])](),_0x1d511e=_0x2e5af7[_0x128a28([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x25f015=new window[(_0x128a28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc3ce15=>{_0x1d511e[_0x128a28([0x6f,0x6e,0x63,0x65])](_0x128a28([0x72,0x65,0x61,0x64,0x79]),_0xc3ce15);}),_0x2b2493={[_0x128a28([0x6b,0x74,0x79])]:_0x128a28([0x45,0x43]),[_0x128a28([0x75,0x73,0x65])]:_0x128a28([0x73,0x69,0x67]),[_0x128a28([0x63,0x72,0x76])]:_0x128a28([0x50,0x2d,0x32,0x35,0x36]),[_0x128a28([0x78])]:_0x128a28([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]),[_0x128a28([0x79])]:_0x128a28([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]),[_0x128a28([0x61,0x6c,0x67])]:_0x128a28([0x45,0x53,0x32,0x35,0x36])},_0x4f7845=_0x1d511e[_0x128a28([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x128a28([0x67,0x65,0x74])](_0x128a28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x182b93(){let _0x27cca9,_0x1bc59b=null,_0x2d4712=null;try{if(_0x4f7845==_0x128a28([0x47,0x50,0x4c]))return _0x128a28([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x27cca9=_0x1db8ba(),!_0x27cca9)return _0x128a28([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x27cca9[_0x128a28([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d4712=_0x5e5483(_0x27cca9[_0x128a28([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x27cca9[_0x128a28([0x6a,0x74,0x69])])),await _0x29eca1()?_0x19c8b8()?_0xd794e5()?_0x128a28([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x53b3d5()?(_0x27cca9[_0x128a28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x128a28([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1bc59b=_0x1c5709(_0x128a28([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x27cca9[_0x128a28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x128a28([0x74,0x72,0x69,0x61,0x6c])&&(_0x1bc59b=_0x1c5709(_0x128a28([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4a1542()):_0x128a28([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x128a28([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x128a28([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x128a28([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd794e5(){const _0x502c86=[_0x128a28([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x128a28([0x74,0x72,0x69,0x61,0x6c])][_0x128a28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27cca9[_0x128a28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x37c807/0x3e8:0xe10*_0x51f81f;return _0x27cca9[_0x128a28([0x65,0x78,0x70])]<_0x502c86;}function _0x19c8b8(){const _0x4c22cf=_0x27cca9[_0x128a28([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4c22cf&&(!!_0x4c22cf[_0x128a28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x128a28([0x2a]))||!!_0x4c22cf[_0x128a28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x128a28([0x55,0x50,0x4c,0x43])));}function _0x53b3d5(){const _0xd5f260=_0x27cca9[_0x128a28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xd5f260||0x0==_0xd5f260[_0x128a28([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x18eeb5}=new URL(window[_0x128a28([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xd5f260[_0x128a28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18eeb5))return!0x0;const _0x1513f9=_0x18eeb5[_0x128a28([0x73,0x70,0x6c,0x69,0x74])](_0x128a28([0x2e]));return _0xd5f260[_0x128a28([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x522f1d=>_0x522f1d[_0x128a28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x128a28([0x2a])))[_0x128a28([0x6d,0x61,0x70])](_0x2c37a4=>_0x2c37a4[_0x128a28([0x73,0x70,0x6c,0x69,0x74])](_0x128a28([0x2e])))[_0x128a28([0x73,0x6f,0x6d,0x65])](_0x29a714=>_0x1513f9[_0x128a28([0x65,0x76,0x65,0x72,0x79])]((_0x11c5a8,_0x5b8aa8)=>_0x29a714[_0x5b8aa8]===_0x11c5a8||_0x29a714[_0x5b8aa8]===_0x128a28([0x2a])));}function _0x4a1542(){return _0x1bc59b&&_0x2d4712?new window[(_0x128a28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3823bf,_0xe27b11)=>{_0x1bc59b[_0x128a28([0x74,0x68,0x65,0x6e])](_0x3823bf,_0xe27b11),_0x2d4712[_0x128a28([0x74,0x68,0x65,0x6e])](_0x10ebcb=>{_0x10ebcb!=_0x128a28([0x56,0x61,0x6c,0x69,0x64])&&_0x3823bf(_0x10ebcb);},_0xe27b11);}):_0x1bc59b||_0x2d4712||_0x128a28([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e5483(_0x5004d7,_0x2f99af){return new window[(_0x128a28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d2fc5=>{if(_0x533f32())return _0x2d2fc5(_0x128a28([0x56,0x61,0x6c,0x69,0x64]));_0x3c37fa(),_0x1d511e[_0x128a28([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x128a28([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a1c68=!0x1;const _0x742bbc=_0x33515d();function _0x2109d1(_0x5cf711){return!!_0x5cf711&&(typeof _0x5cf711===_0x128a28([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5cf711===_0x128a28([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5cf711[_0x128a28([0x74,0x68,0x65,0x6e])]===_0x128a28([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5cf711[_0x128a28([0x63,0x61,0x74,0x63,0x68])]===_0x128a28([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x42d988(_0x535c32){_0x7baf41(_0x535c32)[_0x128a28([0x74,0x68,0x65,0x6e])](_0x504931=>{if(!_0x504931||_0x504931[_0x128a28([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x128a28([0x6f,0x6b]))return _0x128a28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3bff40(_0x4d0dd4(_0x742bbc+_0x2f99af))!=_0x504931[_0x128a28([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x128a28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x128a28([0x56,0x61,0x6c,0x69,0x64]);})[_0x128a28([0x74,0x68,0x65,0x6e])](_0x4cd01c=>(_0xb63c77(),_0x4cd01c),()=>{const _0x9f9568=_0x42aef6();return null==_0x9f9568?(_0xb63c77(),_0x128a28([0x56,0x61,0x6c,0x69,0x64])):_0x128a28(_0x37c807-_0x9f9568>(0x763e2014^_0x28013c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x128a28([0x74,0x68,0x65,0x6e])](_0x2d2fc5)[_0x128a28([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2d2fc5(_0x128a28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xbecc22=0x52044a94^_0x28013c;function _0xb63c77(){const _0x12a21d=_0x128a28([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bff40(_0x4d0dd4(_0x5004d7)),_0x3e75f0=_0x286523(_0x3bff40(window[_0x128a28([0x4d,0x61,0x74,0x68])][_0x128a28([0x63,0x65,0x69,0x6c])](_0x37c807/_0xbecc22)));window[_0x128a28([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x128a28([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12a21d,_0x3e75f0);}function _0x42aef6(){const _0x31ce76=_0x128a28([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bff40(_0x4d0dd4(_0x5004d7)),_0x3dd5e5=window[_0x128a28([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x128a28([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31ce76);return _0x3dd5e5?window[_0x128a28([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x286523(_0x3dd5e5),0x10)*_0xbecc22:null;}function _0x7baf41(_0x458405){return new window[(_0x128a28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3dd1ac,_0x34d947)=>{_0x458405[_0x128a28([0x74,0x68,0x65,0x6e])](_0x3dd1ac,_0x34d947),window[_0x128a28([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x34d947,0x523370d4^_0x28013c);});}}_0x1d511e[_0x128a28([0x6f,0x6e])](_0x128a28([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2ebd4e,_0x595b9b)=>{if(_0x595b9b[0x0]!=_0x5004d7)return _0x2d2fc5(_0x128a28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x595b9b[0x1]={..._0x595b9b[0x1],[_0x128a28([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x742bbc};},{[_0x128a28([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x128a28([0x68,0x69,0x67,0x68])}),_0x1d511e[_0x128a28([0x6f,0x6e])](_0x128a28([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3093d1=>{_0x2109d1(_0x3093d1[_0x128a28([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a1c68=!0x0,_0x42d988(_0x3093d1[_0x128a28([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x128a28([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x128a28([0x6c,0x6f,0x77])}),_0x25f015[_0x128a28([0x74,0x68,0x65,0x6e])](()=>{_0x4a1c68||_0x2d2fc5(_0x128a28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x533f32(){return _0x1d511e[_0x128a28([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x128a28([0x76,0x69,0x65,0x77])][_0x128a28([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x128a28([0x61,0x75,0x74,0x6f]);}function _0x3c37fa(){_0x1d511e[_0x128a28([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x128a28([0x76,0x69,0x65,0x77])][_0x128a28([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x128a28([0x61,0x75,0x74,0x6f]);}}function _0x1c5709(_0x635a51){const _0x127351=[new window[(_0x128a28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a9d9e=>setTimeout(_0x3a9d9e,0x523b9ad8^_0x28013c)),_0x25f015[_0x128a28([0x74,0x68,0x65,0x6e])](()=>new window[(_0x128a28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3db89d=>{let _0x339114=0x0;_0x1d511e[_0x128a28([0x6d,0x6f,0x64,0x65,0x6c])][_0x128a28([0x6f,0x6e])](_0x128a28([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x566df6,_0x315bb8)=>{_0x315bb8[0x0][_0x128a28([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x339114++,_0x339114==(0x5232a5ec^_0x28013c)&&(_0x3db89d(),_0x566df6[_0x128a28([0x6f,0x66,0x66])]());});}))];return window[_0x128a28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x128a28([0x72,0x61,0x63,0x65])](_0x127351)[_0x128a28([0x74,0x68,0x65,0x6e])](()=>_0x635a51);}async function _0x1e8c72(){await _0x25f015,_0x1d511e[_0x128a28([0x6d,0x6f,0x64,0x65,0x6c])][_0x128a28([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5bca12,_0x1d511e[_0x128a28([0x6d,0x6f,0x64,0x65,0x6c])][_0x128a28([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5bca12,_0x1d511e[_0x128a28([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x128a28([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xfd7fa9(_0x59116b){const _0x93313b=_0x278bd1();_0x1d511e[_0x93313b]=_0x128a28([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x59116b,_0x59116b!=_0x128a28([0x56,0x61,0x6c,0x69,0x64])&&_0x1e8c72();}function _0x278bd1(){const _0x2114e0=window[_0x128a28([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x128a28([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x128a28([0x6e,0x6f,0x77])]())[_0x128a28([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x128a28([0x2e]),'');let _0x46ef4c=_0x128a28([0x76]);for(let _0x157960=0x0;_0x157960<_0x2114e0[_0x128a28([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x157960+=0x2){let _0x296fb8=window[_0x128a28([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2114e0[_0x128a28([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x157960,_0x157960+0x2));_0x296fb8>=_0x14ac6a[_0x128a28([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x296fb8-=_0x14ac6a[_0x128a28([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x46ef4c+=_0x14ac6a[_0x296fb8];}return _0x46ef4c;}function _0x1db8ba(){const _0x5c3b14=_0x4f7845[_0x128a28([0x73,0x70,0x6c,0x69,0x74])](_0x128a28([0x2e]));if(0x3!=_0x5c3b14[_0x128a28([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5946e5(_0x5c3b14[0x1]);function _0x5946e5(_0x12abe6){const _0x28bf2d=_0x48c79a(_0x12abe6);return _0x28bf2d&&_0x30413f()?_0x28bf2d:null;function _0x30413f(){const _0x1ea200=_0x28bf2d[_0x128a28([0x6a,0x74,0x69])],_0x4b0080=window[_0x128a28([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ea200[_0x128a28([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ea200[_0x128a28([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5af5e8={..._0x28bf2d,[_0x128a28([0x6a,0x74,0x69])]:_0x1ea200[_0x128a28([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ea200[_0x128a28([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5af5e8[_0x128a28([0x76,0x63])],_0x4d0dd4(_0x5af5e8)==_0x4b0080;}}}async function _0x29eca1(){let _0x50e8d7=!0x0;try{const _0x3413f7=_0x4f7845[_0x128a28([0x73,0x70,0x6c,0x69,0x74])](_0x128a28([0x2e])),[_0x5039a5,_0x419602,_0x504f29]=_0x3413f7;return _0x3add6f(_0x5039a5),await _0x2bb792(_0x5039a5,_0x419602,_0x504f29),_0x50e8d7;}catch{return!0x1;}function _0x3add6f(_0x3ea194){const _0x2aab8b=_0x48c79a(_0x3ea194);_0x2aab8b&&_0x2aab8b[_0x128a28([0x61,0x6c,0x67])]==_0x128a28([0x45,0x53,0x32,0x35,0x36])||(_0x50e8d7=!0x1);}async function _0x2bb792(_0x4d9efd,_0x4f6c11,_0x8dff09){const _0x3e583=window[_0x128a28([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x128a28([0x66,0x72,0x6f,0x6d])](_0x1c096e(_0x8dff09),_0x18b0ef=>_0x18b0ef[_0x128a28([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5bbc32=new window[(_0x128a28([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x128a28([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4d9efd+_0x128a28([0x2e])+_0x4f6c11),_0x5b1a4a=window[_0x128a28([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x128a28([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5b1a4a)return;const _0x1df1bd=await _0x5b1a4a[_0x128a28([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x128a28([0x6a,0x77,0x6b]),_0x2b2493,{[_0x128a28([0x6e,0x61,0x6d,0x65])]:_0x128a28([0x45,0x43,0x44,0x53,0x41]),[_0x128a28([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x128a28([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x128a28([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5b1a4a[_0x128a28([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x128a28([0x6e,0x61,0x6d,0x65])]:_0x128a28([0x45,0x43,0x44,0x53,0x41]),[_0x128a28([0x68,0x61,0x73,0x68])]:{[_0x128a28([0x6e,0x61,0x6d,0x65])]:_0x128a28([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1df1bd,_0x3e583,_0x5bbc32)||(_0x50e8d7=!0x1);}}function _0x48c79a(_0x32342c){return _0x32342c[_0x128a28([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x128a28([0x65,0x79]))?JSON[_0x128a28([0x70,0x61,0x72,0x73,0x65])](_0x1c096e(_0x32342c)):null;}function _0x1c096e(_0x41fcbb){return window[_0x128a28([0x61,0x74,0x6f,0x62])](_0x41fcbb[_0x128a28([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x128a28([0x2b]))[_0x128a28([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x128a28([0x2f])));}function _0x4d0dd4(_0xfc066d){let _0x585373=0x1505;function _0x1f6bad(_0xd4f94b){for(let _0x3cb7bd=0x0;_0x3cb7bd<_0xd4f94b[_0x128a28([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3cb7bd++){const _0x1683f0=_0xd4f94b[_0x128a28([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3cb7bd);_0x585373=(_0x585373<<0x5)+_0x585373+_0x1683f0,_0x585373&=_0x585373;}}function _0x5f2114(_0x202245){Array[_0x128a28([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x202245)?_0x202245[_0x128a28([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5f2114):_0x202245&&typeof _0x202245==_0x128a28([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x128a28([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x202245)[_0x128a28([0x73,0x6f,0x72,0x74])]()[_0x128a28([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x95e2c9,_0x7d4fc2])=>{_0x1f6bad(_0x95e2c9),_0x5f2114(_0x7d4fc2);}):_0x1f6bad(window[_0x128a28([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x202245));}return _0x5f2114(_0xfc066d),_0x585373>>>0x0;}function _0x3bff40(_0x4a6237){return _0x4a6237[_0x128a28([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x128a28([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x128a28([0x30]));}function _0x286523(_0x20c88b){return _0x20c88b[_0x128a28([0x73,0x70,0x6c,0x69,0x74])]('')[_0x128a28([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x128a28([0x6a,0x6f,0x69,0x6e])]('');}function _0x5bca12(){}function _0x128a28(_0x4c5c77){return _0x4c5c77['map'](_0x5160d5=>String['fromCharCode'](_0x5160d5))['join']('');}_0xfd7fa9(await _0x182b93());}(this);}['_initSchema'](){const _0x4f8e34=this['editor']['model']['schema'];_0x4f8e34['isRegistered']('imageBlock')&&_0x4f8e34['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4f8e34['isRegistered']('imageInline')&&_0x4f8e34['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2f909a=this['editor'];_0x2f909a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2f909a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x50491e=>_0x50491e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x54669b=_0x2f909a['commands']['get']('replaceImageSource');_0x54669b&&this['listenTo'](_0x54669b,'cleanupImage',(_0x9899a3,[_0x30d73f,_0x2569c9])=>{_0x30d73f['removeAttribute']('uploadcareImageId',_0x2569c9);});}['_initConfig'](){const _0x121bce=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4bdcd4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2ec357(_0x269f69['document'],'uc-config',{..._0x121bce,'pubkey':_0x4bdcd4,'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']=_0x3564f4=>{if('closeMax'==_0x3564f4)return'#uc-icon-arrow-down';},_0x269f69['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2ec357(_0x269f69['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x269f69['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2973f1=this['editor']['commands']['get']('insertImage');_0x2973f1&&this['listenTo'](_0x2973f1,'execute',()=>{const _0x4ac9fa=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4ac9fa&&_0x4ac9fa['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4ac9fa);});});const _0x2083e0=this['editor']['commands']['get']('uploadcareImageReplace');_0x2083e0&&this['listenTo'](_0x2083e0,'execute',()=>{const _0x2d39e2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2d39e2&&_0x2d39e2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2d39e2);});});}}class u extends _0x13d9ff{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4672b2){super(_0x4672b2),_0x4672b2['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x1c1188['defineComponents'](_0x1c1188);}}class ta extends _0x55f4a0{constructor(_0x59b667){super(_0x59b667);const t=_0x59b667['t'],_0x28ee2b=this['bindTemplate'],_0x1651fa=new _0x234a35();_0x1651fa['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':[_0x1651fa,{'text':_0x28ee2b['to']('imageUploadProgress',_0x386771=>t('Loading\x20image...')+'\x20('+(_0x386771||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 _0x55f4a0{constructor(_0x276640){super(_0x276640);const t=_0x276640['t'];this['set']('errorType',null);const _0x3d9535=new _0x41a36a(_0x276640);_0x3d9535['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3d9535['withText']=!0x0,_0x3d9535['class']='ck-button-action',_0x3d9535['on']('execute',()=>{this['fire']('retry');}),_0x3d9535['bind']('isVisible')['to'](this,'errorType',_0x158f06=>'NotFound'!==_0x158f06);const _0x1d4eca=new at();_0x1d4eca['content']=et,_0x1d4eca['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x138236=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':[_0x1d4eca,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x138236['to']('errorType',_0x362113=>t('NotFound'!==_0x362113?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3d9535]},{'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 _0x55f4a0{constructor(_0x37721f,_0x541dca){super(_0x37721f);const _0x4efe3=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x541dca,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4efe3['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xf3f49a,_0x3147d6,_0x3110de){super(_0xf3f49a),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0xf3f49a),this['_errorView']=new rt(_0xf3f49a),this['_editingView']=new tt(_0xf3f49a,_0x3110de),this['_focusableView']=new _0x55f4a0(_0xf3f49a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3147d6),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'],_0x3196b1=>{this['_addUploadcareImageEditorListeners'](_0x3196b1);});}),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'](_0x3ed406,_0x3f12eb){const _0x4b9c9e='uc-cloud-image-editor',_0x47ea8a=_0x3ed406['querySelector'](_0x4b9c9e);if(_0x47ea8a)return _0x3f12eb(_0x47ea8a);const _0x278311=new MutationObserver(_0x302161=>{const _0x387e95=_0x302161['filter'](_0x601f09=>_0x601f09['target']===_0x3ed406&&_0x601f09['addedNodes']['length']>0x0&&_0x601f09['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4b9c9e);_0x387e95['length']&&(_0x278311['disconnect'](),_0x3f12eb(_0x387e95[0x0]['addedNodes'][0x0]));});_0x278311['observe'](_0x3ed406,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x503374){_0x503374['addEventListener']('apply',_0x5ea5d6=>{this['fire']('apply',{'imageSrc':_0x5ea5d6['detail']['cdnUrl']});}),_0x503374['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x246108(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5ec42a,_0x15a7f0,_0x359dbc){super(),this['_editor']=_0x5ec42a,this['_dialog']=_0x15a7f0,this['_imageElement']=_0x359dbc,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 _0x3e9657=this['_imageElement'],_0x35a349=_0x3e9657['getAttribute']('uploadcareImageId'),_0xb6af1b=_0x3e9657['getAttribute']('src');if(_0x35a349)await this['_loadImageInfo'](_0x35a349,_0xb6af1b);else{if(this['_imageCache']['has'](_0xb6af1b)){const _0x2392c5=this['_imageCache']['get'](_0xb6af1b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2392c5['url'],this['imageDimension']=_0x2392c5['dimension'],this['imageId']=_0x2392c5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x49245c}=this['_editor'],t=_0x49245c['t'],_0x233680=new Z(_0x49245c,this['imageStatus'],this['_attributes']);_0x233680['bind']('status')['to'](this,'imageStatus'),_0x233680['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x233680['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x233680['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x233680,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x566f0f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x233680,'position':_0x2aaa7f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x233680['focus']();},'onHide':()=>{_0x233680['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x120c2b=>!F(_0x120c2b,_0x233680['element'])}});}['_loadImageInfo'](_0x5b4849,_0x2a230d){return C['getInfo'](_0x5b4849,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x37ce74=>{const {width:_0x2922a5,height:_0x2cee3e}=_0x37ce74['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2a230d,this['imageDimension']={'width':_0x2922a5,'height':_0x2cee3e},this['imageId']=_0x5b4849;})['catch'](_0x3977a5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3977a5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x36bef8,_0xd6ee){return this['_getImageAsFile'](_0x36bef8)['then'](_0x3d673a=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xd6ee['signal'],'file':_0x3d673a,'onProgress':_0x1ccba6=>{_0x1ccba6&&_0x1ccba6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1ccba6['value']));}}))['then'](_0x5515af=>{const {width:_0x522680,height:_0x290070}=_0x5515af['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5515af['cdnUrl'],this['imageDimension']={'width':_0x522680,'height':_0x290070},this['imageId']=_0x5515af['uuid'],this['imageUploadProgress']=null;const _0x40569a=_0x36bef8['getAttribute']('src');this['_imageCache']['set'](_0x40569a,{'id':_0x5515af['uuid'],'url':_0x5515af['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xd05641=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xd05641['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x30a45a,_0x5475a0){_0x30a45a['on']('apply',(_0x5b764a,_0x2baa3e)=>{this['_replaceImage'](_0x5475a0,_0x2baa3e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x30a45a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x30a45a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1153a2,_0x1925b0,_0x560545){const _0x2c6475=this['_editor'],{width:_0x4e3142,height:_0x1bcf0f}=A(_0x1925b0,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x29ee71,imageSources:_0x180455}=E(_0x1925b0,_0x4e3142);_0x2c6475['model']['change'](_0x474b3a=>{if('$graveyard'===_0x1153a2['root']['rootName']){_0x2c6475['execute']('insertImage',{'imageType':_0x1153a2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1153a2['getAttributes']()),'uploadcareImageId':_0x560545,'src':_0x29ee71,'sources':_0x180455,'width':_0x4e3142,'height':_0x1bcf0f}});const _0x2e4f62=_0x1153a2['getChildren']();_0x1153a2=_0x2c6475['model']['document']['selection']['getSelectedElement']();for(const _0x14b508 of _0x2e4f62)_0x474b3a['append'](_0x474b3a['cloneElement'](_0x14b508),_0x1153a2);}else _0x474b3a['setSelection'](_0x1153a2,'on'),_0x2c6475['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1153a2['getAttributes']()),'uploadcareImageId':_0x560545,'src':_0x29ee71,'sources':_0x180455,'width':_0x4e3142,'height':_0x1bcf0f},_0x1153a2);_0x474b3a['setSelection'](_0x1153a2,'on');});}async['_getImageAsFile'](_0x586e5d){const _0x21582a=_0x269f69['window'],_0x48e7b2=_0x269f69['document']['location']['href'],_0x346492=new _0x21582a['URL'](_0x586e5d['getAttribute']('src'),_0x48e7b2);if('data:'===_0x346492['protocol']){const _0x3eba67=_0x346492['href']['split'](','),_0x88e4cb=_0x3eba67[0x0]['match'](/:(.*?);/)[0x1],_0x5cba67=_0x88e4cb['split']('/')[0x1],_0x1a6833=_0x21582a['atob'](_0x3eba67[_0x3eba67['length']-0x1]);let _0x50f086=_0x1a6833['length'];const _0x3ffc81=new _0x21582a['Uint8Array'](_0x50f086);for(;_0x50f086--;)_0x3ffc81[_0x50f086]=_0x1a6833['charCodeAt'](_0x50f086);return new _0x21582a['File']([_0x3ffc81],'image.'+_0x5cba67,{'type':_0x88e4cb});}const _0x4e914c=_0x346492['href']['split']('/'),_0x568b01=_0x4e914c[_0x4e914c['length']-0x1],_0x28b7af=_0x568b01['split']('.')[0x1];return _0x21582a['fetch'](_0x346492['href'])['then'](_0x14e1c1=>_0x14e1c1['clone']()['blob']())['then'](_0x3b61ee=>new _0x21582a['File']([_0x3b61ee],_0x568b01,{'type':'image/'+_0x28b7af}));}}class J extends _0x1a76bc{['imageEditController'];static get['requires'](){return[_0x3bcadc];}['_isEditable'];constructor(_0xb587ab){super(_0xb587ab),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4d31a5){const _0x2d3bd0=V(_0x4d31a5);return _0x136ec0=>!(!_0x136ec0||!_0x136ec0['is']('element','imageBlock')&&!_0x136ec0['is']('element','imageInline'))&&(!!_0x136ec0['hasAttribute']('uploadcareImageId')||!!_0x136ec0['hasAttribute']('src')&&_0x2d3bd0(_0x136ec0['getAttribute']('src')));}(_0xb587ab['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x341f3d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x341f3d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5674ba=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5674ba&&(_0x5674ba['is']('element','imageBlock')||_0x5674ba['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x3bcadc),_0x5674ba),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1a76bc{['refresh'](){const _0x31a567=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x31a567&&(_0x31a567['is']('element','imageBlock')||_0x31a567['is']('element','imageInline')));}['execute'](_0x249097){const _0x455c0b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xe2abf8=>{_0xe2abf8['setAttributes'](_0x249097,_0x455c0b),_0xe2abf8['removeAttribute']('srcset',_0x455c0b),_0xe2abf8['removeAttribute']('sizes',_0x455c0b);});}}class g extends _0x13d9ff{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0xbffd6a,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3faa6a}=this;_0x3faa6a['commands']['add']('uploadcareImageEdit',new J(_0x3faa6a)),_0x3faa6a['commands']['add']('uploadcareImageReplace',new O(_0x3faa6a));}}class j extends _0x13d9ff{['_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 _0x3a55f6=this['editor'];_0x3a55f6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x39516b=>{const _0x54e41d=_0x3a55f6['commands']['get']('uploadcareImageEdit'),_0x3d06fb=new _0x41a36a(_0x39516b),t=_0x39516b['t'];return _0x3d06fb['set']({'icon':_0x566f0f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3d06fb['bind']('isEnabled')['to'](_0x54e41d),_0x3d06fb['bind']('isOn')['to'](_0x54e41d,'isActive'),this['listenTo'](_0x3d06fb,'execute',()=>{_0x3a55f6['execute']('uploadcareImageEdit'),_0x3a55f6['editing']['view']['focus']();}),_0x3d06fb;}),this['_initConfig']();}['_initConfig'](){const _0x2c2800=_0x2ec357(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2c2800),this['listenTo'](this['editor'],'destroy',()=>{_0x2c2800['remove']();});}}class P extends _0x13d9ff{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 _0x335939,Command as _0x55b0d0}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x16fbcf,IconGooglePhotos as _0x63a214,IconGoogleDrive as _0x3e686f,IconFacebook as _0x181af2,IconDropbox as _0x7576e,IconUploadcareLink as _0xdef5d8,IconUploadcareImageUpload as _0x1d388b,IconError as et,IconUploadcareImageEdit as _0xa3d37a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x54c86e,MenuBarMenuListItemButtonView as _0x1b153d,View as _0x256452,FocusCycler as _0x3defba,Dialog as _0x3510d1,DialogViewPosition as _0xb6ef76,SpinnerView as _0x3ab240,IconView as at,Notification as _0x5cb120}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3bb29e,DomEmitterMixin as _0x28d3a1,global as _0x520e1f,getAncestors as _0x4f71da,ObservableMixin as _0x5afe91,createElement as _0x1d1955,uid as _0x5c09c1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x34f023}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x345ced,info as _0x22f420}from'@uploadcare/upload-client';import*as _0x287e21 from'@uploadcare/file-uploader';var o=function(_0x3f817a){return _0x3f817a['Local']='local',_0x3f817a['URL']='url',_0x3f817a['Dropbox']='dropbox',_0x3f817a['GDrive']='gdrive',_0x3f817a['Facebook']='facebook',_0x3f817a['GPhotos']='gphotos',_0x3f817a['OneDrive']='onedrive',_0x3f817a;}({});function _(_0x5f56f4,_0x42fc38,_0x50e32d){const t=_0x5f56f4['t'],_0x435e84=_0x5f56f4['t'];switch(_0x42fc38){case o['Local']:return{'text':_0x435e84('Insert'===_0x50e32d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x435e84('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x50e32d?_0x435e84('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x435e84('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x50e32d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x50e32d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x50e32d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x50e32d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x50e32d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x42fc38;}}class e extends _0x335939{['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 _0x58d9a4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x11afab;for(const _0x452eee in _0x58d9a4){const _0xc6cb71=_0x452eee,_0x3b36a4=_0x58d9a4[_0xc6cb71];if('uploadcareLicenseKeyValid'==_0x3b36a4||'uploadcareLicenseKeyInvalid'==_0x3b36a4||'uploadcareLicenseKeyExpired'==_0x3b36a4||'uploadcareLicenseKeyDomainLimit'==_0x3b36a4||'uploadcareLicenseKeyNotAllowed'==_0x3b36a4||'uploadcareLicenseKeyEvaluationLimit'==_0x3b36a4||'uploadcareLicenseKeyTrialLimit'==_0x3b36a4||'uploadcareLicenseKeyUsageLimit'==_0x3b36a4){delete _0x58d9a4[_0xc6cb71],_0x11afab=_0x3b36a4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x11afab&&_0x58d9a4['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x11afab&&_0x58d9a4['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x11afab&&_0x58d9a4['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x11afab&&_0x58d9a4['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x11afab&&_0x58d9a4['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x11afab&&_0x58d9a4['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x11afab&&_0x58d9a4['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x66e822}=this,_0x458cb3=_0x66e822['commands']['get']('uploadcare');if(!_0x458cb3)return;const _0x3b065a=this['_normalizeConfigSourceList'](_0x66e822['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xf0d078,_0x1354e6)=>{const _0x243b98=this['_getIntegrationKey'](_0x1354e6['type']);return _0xf0d078[_0x243b98]||(_0xf0d078[_0x243b98]=[]),_0xf0d078[_0x243b98]['push'](_0x1354e6),_0xf0d078;},{});_0x66e822['plugins']['has']('ImageInsertUI')&&_0x66e822['commands']['get']('uploadcare')&&Object['entries'](_0x3b065a)['forEach'](([_0x567ad3,_0x414583])=>{_0x66e822['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x567ad3,'observable':()=>_0x458cb3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x414583),'formViewCreator':()=>this['_createDropdownButtons'](_0x414583),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x414583),'override':'assetManager'!==_0x567ad3});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2ab4e9){const {locale:_0x23c19a}=this['editor'];return _0x2ab4e9['map'](_0x3b197a=>{const _0x24ea6b=_(_0x23c19a,_0x3b197a,'Insert');switch(_0x3b197a){case o['Local']:return{'icon':_0x1d388b,'type':o['Local'],..._0x24ea6b};case o['URL']:return{'icon':_0xdef5d8,'type':o['URL'],..._0x24ea6b};case o['Dropbox']:return{'icon':_0x7576e,'type':o['Dropbox'],..._0x24ea6b};case o['Facebook']:return{'icon':_0x181af2,'type':o['Facebook'],..._0x24ea6b};case o['GDrive']:return{'icon':_0x3e686f,'type':o['GDrive'],..._0x24ea6b};case o['GPhotos']:return{'icon':_0x63a214,'type':o['GPhotos'],..._0x24ea6b};case o['OneDrive']:return{'icon':_0x16fbcf,'type':o['OneDrive'],..._0x24ea6b};}});}['_getIntegrationKey'](_0x55d655){switch(_0x55d655){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x26bfc5,_0x1c7e06){const _0x1ab8db=this['editor'],_0x3ade39=new _0x26bfc5(_0x1ab8db['locale']),_0x3c6fb3=_0x1ab8db['commands']['get']('uploadcare');return _0x3ade39['bind']('isEnabled')['to'](_0x3c6fb3),_0x3ade39['on']('execute',()=>{_0x3c6fb3['execute'](_0x1c7e06);}),_0x3ade39;}['_createToolbarButton'](_0x4e4542){const {locale:_0x4cc7ba}=this['editor'],_0x1e757c=this['editor']['plugins']['get']('ImageInsertUI'),_0x5cf6d6=_0x4e4542[0x0],_0x3723f2=this['_createButton'](_0x54c86e,_0x5cf6d6['type']);return _0x3723f2['icon']=_0x5cf6d6['icon'],_0x3723f2['bind']('label')['to'](_0x1e757c,'isImageSelected',_0x21677d=>_(_0x4cc7ba,_0x5cf6d6['type'],_0x21677d?'Replace':'Insert')['text']),_0x3723f2['tooltip']=!0x0,_0x3723f2;}['_createDropdownButtons'](_0x153510){const {locale:_0x2e335d}=this['editor'],_0x43c76b=this['editor']['plugins']['get']('ImageInsertUI');return _0x153510['map'](_0x1cc1d5=>{const _0x535e5f=this['_createButton'](_0x54c86e,_0x1cc1d5['type']);return _0x535e5f['withText']=!0x0,_0x535e5f['icon']=_0x1cc1d5['icon'],_0x535e5f['bind']('label')['to'](_0x43c76b,'isImageSelected',_0x38863a=>_(_0x2e335d,_0x1cc1d5['type'],_0x38863a?'Replace':'Insert')['text']),_0x535e5f;});}['_createMenuBarButtons'](_0x16d948){return _0x16d948['map'](_0x4b0f7e=>{const _0x2100b2=this['_createButton'](_0x1b153d,_0x4b0f7e['type']);return _0x2100b2['icon']=_0x4b0f7e['icon'],_0x2100b2['label']=_0x4b0f7e['shortText'],_0x2100b2;});}}class q extends _0x256452{['focusTracker'];['focusCycler'];constructor(_0x5b31ca){super(_0x5b31ca),this['focusTracker']=new _0x3bb29e(),this['focusCycler']=new _0x3defba({'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(_0x182873){super(_0x182873),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(_0x575b52,_0x1c34f7){const _0x58e963=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5ecade=>_0x5ecade<=_0x1c34f7)['map'](_0x3c79db=>_0x575b52['replace'](/\/$/,'')+'/-/resize/'+_0x3c79db+'x/\x20'+_0x3c79db+'w');return{'imageFallbackUrl':_0x575b52,'imageSources':[{'srcset':_0x58e963['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1c34f7+'px)\x20100vw,\x20'+_0x1c34f7+'px','type':'image/webp'}]};}function A(_0x2132d4,_0x563cad,_0x3e575d){const _0x5a5253=_0x2132d4['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5a5253?parseInt(_0x5a5253[0x1],0xa):_0x563cad,'height':_0x5a5253?parseInt(_0x5a5253[0x2],0xa):_0x3e575d};}function m(_0x2ad706,_0x47dc9b){const _0x539060=Object['create'](_0x28d3a1),_0x3bb75d=_0x2ad706['plugins']['get']('ImageUtils'),_0x2eb69e=_0x2ad706['editing']['mapper']['toViewElement'](_0x47dc9b),_0x3de16a=_0x3bb75d['findViewImgElement'](_0x2eb69e),_0xbabb62=_0x2ad706['editing']['view']['domConverter']['viewToDom'](_0x3de16a),_0x1443ba=_0x47dc9b['getAttribute']('width'),_0x35116a=_0x47dc9b['getAttribute']('height'),_0x279a8a='image-processing';_0x2ad706['editing']['view']['change'](_0x2f7faa=>{_0x2f7faa['addClass'](_0x279a8a,_0x2eb69e),_0x2f7faa['setStyle']('aspect-ratio',_0x1443ba+'/'+_0x35116a,_0x3de16a);}),_0x539060['listenTo'](_0xbabb62,'load',()=>{_0x539060['stopListening'](_0xbabb62,'load'),_0x2ad706['editing']['view']['change'](_0x2a5f41=>{_0x2a5f41['removeClass'](_0x279a8a,_0x2eb69e),_0x2a5f41['removeStyle']('aspect-ratio',_0x3de16a);});});}function V(_0x45d055){if(Array['isArray'](_0x45d055)){const _0x2b0867=_0x45d055['map'](V);return _0x189e4b=>_0x2b0867['some'](_0x3a1ac7=>_0x3a1ac7(_0x189e4b));}if('origin'==_0x45d055){const _0x4137ff=_0x520e1f['window']['location']['origin'];return _0x389c5a=>new URL(_0x389c5a,_0x520e1f['document']['baseURI'])['origin']==_0x4137ff;}return'function'==typeof _0x45d055?_0x45d055:_0x45d055 instanceof RegExp?_0x29e636=>!(!_0x29e636['match'](_0x45d055)&&!_0x29e636['replace'](/^https?:\/\//,'')['match'](_0x45d055)):()=>!0x1;}function F(_0xecff84,_0x52bb6b){return _0x4f71da(_0xecff84['target'])['includes'](_0x52bb6b);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5afe91(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2393d4,_0x1802ce,_0x47ba44){super(),this['_editor']=_0x2393d4,this['_editing']=_0x1802ce,this['_dialog']=_0x2393d4['plugins']['get'](_0x3510d1),this['_api']=_0x1802ce['ctxElement']['getAPI'](),this['_type']=_0x47ba44,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:_0x1eaab6,model:_0x525f47}=this['_editor'],_0x2c9bac=_0x525f47['document']['selection']['getSelectedElement'](),_0x12fc74=_0x2c9bac&&(_0x2c9bac['is']('element','imageBlock')||_0x2c9bac['is']('element','imageInline'));this['_formView']=new S(_0x1eaab6),this['_dialog']['show']({'id':'uploadCare','icon':_0x1d388b,'title':_(_0x1eaab6,this['_type'],_0x12fc74?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xb6ef76['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x16e7de=>!F(_0x16e7de,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x53c7c4}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3c6502=>{const _0x5799e8=_0x53c7c4['length'];for(const _0x3d0c6d of _0x53c7c4){const _0x2c8442=_0x3d0c6d===_0x53c7c4[_0x5799e8-0x1],{cdnUrl:_0x4f271a,fileInfo:_0x3b1e81}=_0x3d0c6d;if(!_0x4f271a||!_0x3b1e81)continue;const {width:_0x59ec73,height:_0xa596d5}=_0x3b1e81['imageInfo'],_0x232392=A(_0x4f271a,_0x59ec73,_0xa596d5),_0x8f0f09=E(_0x4f271a,_0x232392['width']),_0x1d85d2={'id':_0x3b1e81['uuid'],'type':'image','attributes':{'imageDimension':_0x232392,..._0x8f0f09}};this['_insertAsset'](_0x1d85d2,_0x2c8442,_0x3c6502);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3a3d9d=>{'idle'===_0x3a3d9d['detail']['status']&&!_0x3a3d9d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2b72a5,_0x1719bf,_0x1e059e){const _0x2b3fba=this['_editor']['model']['document']['selection'],_0x145736=_0x2b3fba['getSelectedElement'](),_0x5166b8=!(!_0x145736||!_0x145736['is']('element','imageInline'));_0x1e059e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2b72a5,_0x5166b8),_0x1719bf||_0x1e059e['setSelection'](_0x2b3fba['getLastPosition']());}['_insertImage'](_0x5a9bd8,_0x4fac2b){const _0x38b213=this['_editor'],{imageDimension:_0x98ce4a,imageFallbackUrl:_0x2a26de,imageSources:_0x2a11c1}=_0x5a9bd8['attributes'];_0x38b213['execute']('insertImage',{'imageType':_0x4fac2b?'imageInline':null,'source':{'uploadcareImageId':_0x5a9bd8['id'],'src':_0x2a26de,'sources':_0x2a11c1,..._0x98ce4a}});}}class n extends _0x55b0d0{['_editing'];['_controller']=null;static get['requires'](){return[_0x3510d1,i];}constructor(_0xe97d3d){super(_0xe97d3d),this['_editing']=_0xe97d3d['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1dddbf){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1dddbf);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0xaa8331,publicKey:_0x4251b5,signal:_0xc15923,onProgress:_0x1064cb}){return _0x345ced(_0xaa8331,{'publicKey':_0x4251b5,'store':'auto','signal':_0xc15923,'onProgress':_0x1064cb});}static['getInfo'](_0x47c454,_0x25353c){return _0x22f420(_0x47c454,_0x25353c);}}class p extends _0x335939{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x34f023,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2f67a8=this['editor'];if(!!!_0x2f67a8['config']['get']('uploadcare'))return;_0x2f67a8['plugins']['get'](_0x34f023)['createUploadAdapter']=_0x4472d1=>new x(_0x4472d1,_0x2f67a8),_0x2f67a8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x274eef,{imageElement:_0x12595c,data:_0xd3f291})=>{_0x2f67a8['model']['change'](_0x7c591a=>{_0x7c591a['setAttribute']('uploadcareImageId',_0xd3f291['uploadcareImageId'],_0x12595c);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x532a6d,_0x1da2f8){this['loader']=_0x532a6d,this['editor']=_0x1da2f8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x287c3f=this['editor']['config']['get']('uploadcare.pubkey'),_0xa3b5ed=await this['loader']['file'];return C['upload']({'file':_0xa3b5ed,'publicKey':_0x287c3f,'signal':this['controller']['signal'],'onProgress':_0x20c4c1=>{_0x20c4c1&&_0x20c4c1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x20c4c1['value']);}})['then'](async _0xc12c6c=>{const {imageFallbackUrl:_0x58472f,imageSources:_0x301e9f}=E(_0xc12c6c['cdnUrl'],_0xc12c6c['imageInfo']['width']);return{'uploadcareImageId':_0xc12c6c['uuid'],'default':_0x58472f,'sources':_0x301e9f};})['catch'](()=>{const _0x3b3124=t('Cannot\x20upload\x20file:')+('\x20'+_0xa3b5ed['name']+'.');return Promise['reject'](_0x3b3124);});}['abort'](){this['controller']['abort']();}}class i extends _0x335939{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3510d1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x19c0ac=this['editor'];_0x19c0ac['commands']['add']('uploadcare',new n(_0x19c0ac));}['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 _0x49444a=_0x520e1f['document']['querySelector']('input[uploadcare-file-input]');_0x49444a&&_0x49444a['remove']();}),async function(_0x4c62d2){const _0xd42ec6=_0x37ecbc([0x4b,0x48,0x30,0x69,0x57,0x6f,0x74,0x6d,0x37,0x32,0x31,0x4e,0x49,0x44,0x6e,0x77,0x65,0x39,0x43,0x41,0x4c,0x38,0x79,0x46,0x64,0x4d,0x67,0x61,0x76,0x36,0x6a,0x42,0x4a,0x71,0x78,0x47,0x56,0x4f,0x70,0x34,0x54,0x59,0x72,0x73,0x51,0x52,0x50,0x45,0x66,0x55,0x62,0x75,0x7a,0x6c,0x5a,0x33,0x6b,0x68,0x35,0x58,0x53,0x63]),_0x3cb38c=0x2ca21b76,_0x1674aa=0x2ca572ee^_0x3cb38c,_0x54fb08=window[_0x37ecbc([0x44,0x61,0x74,0x65])][_0x37ecbc([0x6e,0x6f,0x77])](),_0x3e892e=_0x4c62d2[_0x37ecbc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ab66b=new window[(_0x37ecbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x343eeb=>{_0x3e892e[_0x37ecbc([0x6f,0x6e,0x63,0x65])](_0x37ecbc([0x72,0x65,0x61,0x64,0x79]),_0x343eeb);}),_0x1254e2={[_0x37ecbc([0x6b,0x74,0x79])]:_0x37ecbc([0x45,0x43]),[_0x37ecbc([0x75,0x73,0x65])]:_0x37ecbc([0x73,0x69,0x67]),[_0x37ecbc([0x63,0x72,0x76])]:_0x37ecbc([0x50,0x2d,0x32,0x35,0x36]),[_0x37ecbc([0x78])]:_0x37ecbc([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]),[_0x37ecbc([0x79])]:_0x37ecbc([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]),[_0x37ecbc([0x61,0x6c,0x67])]:_0x37ecbc([0x45,0x53,0x32,0x35,0x36])},_0x217210=_0x3e892e[_0x37ecbc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x37ecbc([0x67,0x65,0x74])](_0x37ecbc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x407b15(){let _0x503537,_0x1eef08=null,_0x3e8943=null;try{if(_0x217210==_0x37ecbc([0x47,0x50,0x4c]))return _0x37ecbc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x503537=_0x1cc829(),!_0x503537)return _0x37ecbc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x503537[_0x37ecbc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e8943=_0x4c1153(_0x503537[_0x37ecbc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x503537[_0x37ecbc([0x6a,0x74,0x69])])),await _0x2c2f5d()?_0xe0ef86()?_0x20a94c()?_0x37ecbc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x394b60()?(_0x503537[_0x37ecbc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37ecbc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1eef08=_0x1e021a(_0x37ecbc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x503537[_0x37ecbc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37ecbc([0x74,0x72,0x69,0x61,0x6c])&&(_0x1eef08=_0x1e021a(_0x37ecbc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4eef35()):_0x37ecbc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x37ecbc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x37ecbc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x37ecbc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x20a94c(){const _0x27202f=[_0x37ecbc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x37ecbc([0x74,0x72,0x69,0x61,0x6c])][_0x37ecbc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x503537[_0x37ecbc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x54fb08/0x3e8:0xe10*_0x1674aa;return _0x503537[_0x37ecbc([0x65,0x78,0x70])]<_0x27202f;}function _0xe0ef86(){const _0x1779ee=_0x503537[_0x37ecbc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1779ee&&(!!_0x1779ee[_0x37ecbc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37ecbc([0x2a]))||!!_0x1779ee[_0x37ecbc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37ecbc([0x55,0x50,0x4c,0x43])));}function _0x394b60(){const _0x5c3c7c=_0x503537[_0x37ecbc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c3c7c||0x0==_0x5c3c7c[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5ea879}=new URL(window[_0x37ecbc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5c3c7c[_0x37ecbc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ea879))return!0x0;const _0x8be8=_0x5ea879[_0x37ecbc([0x73,0x70,0x6c,0x69,0x74])](_0x37ecbc([0x2e]));return _0x5c3c7c[_0x37ecbc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5341ec=>_0x5341ec[_0x37ecbc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37ecbc([0x2a])))[_0x37ecbc([0x6d,0x61,0x70])](_0x1e5a1b=>_0x1e5a1b[_0x37ecbc([0x73,0x70,0x6c,0x69,0x74])](_0x37ecbc([0x2e])))[_0x37ecbc([0x73,0x6f,0x6d,0x65])](_0x2cd839=>_0x8be8[_0x37ecbc([0x65,0x76,0x65,0x72,0x79])]((_0x4e5118,_0x4e7c2f)=>_0x2cd839[_0x4e7c2f]===_0x4e5118||_0x2cd839[_0x4e7c2f]===_0x37ecbc([0x2a])));}function _0x4eef35(){return _0x1eef08&&_0x3e8943?new window[(_0x37ecbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x406f93,_0x5d5f06)=>{_0x1eef08[_0x37ecbc([0x74,0x68,0x65,0x6e])](_0x406f93,_0x5d5f06),_0x3e8943[_0x37ecbc([0x74,0x68,0x65,0x6e])](_0x269ac4=>{_0x269ac4!=_0x37ecbc([0x56,0x61,0x6c,0x69,0x64])&&_0x406f93(_0x269ac4);},_0x5d5f06);}):_0x1eef08||_0x3e8943||_0x37ecbc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c1153(_0x4bf4d9,_0x5d98c5){return new window[(_0x37ecbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dd04d=>{if(_0x2883d8())return _0x3dd04d(_0x37ecbc([0x56,0x61,0x6c,0x69,0x64]));_0x115d15(),_0x3e892e[_0x37ecbc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x37ecbc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x133363=!0x1;const _0x2059c7=_0x5c09c1();function _0x338fed(_0x186795){return!!_0x186795&&(typeof _0x186795===_0x37ecbc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x186795===_0x37ecbc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x186795[_0x37ecbc([0x74,0x68,0x65,0x6e])]===_0x37ecbc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x186795[_0x37ecbc([0x63,0x61,0x74,0x63,0x68])]===_0x37ecbc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x587fa3(_0x12203c){_0x250c74(_0x12203c)[_0x37ecbc([0x74,0x68,0x65,0x6e])](_0x47e827=>{if(!_0x47e827||_0x47e827[_0x37ecbc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x37ecbc([0x6f,0x6b]))return _0x37ecbc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x307b93(_0x178c07(_0x2059c7+_0x5d98c5))!=_0x47e827[_0x37ecbc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x37ecbc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x37ecbc([0x56,0x61,0x6c,0x69,0x64]);})[_0x37ecbc([0x74,0x68,0x65,0x6e])](_0x4bd62a=>(_0x7b1a99(),_0x4bd62a),()=>{const _0x1e77cb=_0x5e58e5();return null==_0x1e77cb?(_0x7b1a99(),_0x37ecbc([0x56,0x61,0x6c,0x69,0x64])):_0x37ecbc(_0x54fb08-_0x1e77cb>(0x8ae9f76^_0x3cb38c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x37ecbc([0x74,0x68,0x65,0x6e])](_0x3dd04d)[_0x37ecbc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3dd04d(_0x37ecbc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x524c84=0x2c94f5f6^_0x3cb38c;function _0x7b1a99(){const _0x40d085=_0x37ecbc([0x6c,0x6c,0x63,0x74,0x2d])+_0x307b93(_0x178c07(_0x4bf4d9)),_0x1fccc2=_0x19726e(_0x307b93(window[_0x37ecbc([0x4d,0x61,0x74,0x68])][_0x37ecbc([0x63,0x65,0x69,0x6c])](_0x54fb08/_0x524c84)));window[_0x37ecbc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37ecbc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40d085,_0x1fccc2);}function _0x5e58e5(){const _0x391cef=_0x37ecbc([0x6c,0x6c,0x63,0x74,0x2d])+_0x307b93(_0x178c07(_0x4bf4d9)),_0x164694=window[_0x37ecbc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37ecbc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x391cef);return _0x164694?window[_0x37ecbc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19726e(_0x164694),0x10)*_0x524c84:null;}function _0x250c74(_0xe45983){return new window[(_0x37ecbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ad95e,_0x244696)=>{_0xe45983[_0x37ecbc([0x74,0x68,0x65,0x6e])](_0x3ad95e,_0x244696),window[_0x37ecbc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x244696,0x2ca3cfb6^_0x3cb38c);});}}_0x3e892e[_0x37ecbc([0x6f,0x6e])](_0x37ecbc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c7d41,_0x50df53)=>{if(_0x50df53[0x0]!=_0x4bf4d9)return _0x3dd04d(_0x37ecbc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x50df53[0x1]={..._0x50df53[0x1],[_0x37ecbc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2059c7};},{[_0x37ecbc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37ecbc([0x68,0x69,0x67,0x68])}),_0x3e892e[_0x37ecbc([0x6f,0x6e])](_0x37ecbc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x43119a=>{_0x338fed(_0x43119a[_0x37ecbc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x133363=!0x0,_0x587fa3(_0x43119a[_0x37ecbc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x37ecbc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37ecbc([0x6c,0x6f,0x77])}),_0x4ab66b[_0x37ecbc([0x74,0x68,0x65,0x6e])](()=>{_0x133363||_0x3dd04d(_0x37ecbc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2883d8(){return _0x3e892e[_0x37ecbc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37ecbc([0x76,0x69,0x65,0x77])][_0x37ecbc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x37ecbc([0x61,0x75,0x74,0x6f]);}function _0x115d15(){_0x3e892e[_0x37ecbc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37ecbc([0x76,0x69,0x65,0x77])][_0x37ecbc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x37ecbc([0x61,0x75,0x74,0x6f]);}}function _0x1e021a(_0x136d08){const _0x54ec12=[new window[(_0x37ecbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c3e44=>setTimeout(_0x5c3e44,0x2cab25ba^_0x3cb38c)),_0x4ab66b[_0x37ecbc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x37ecbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9dd1de=>{let _0x4df0e5=0x0;_0x3e892e[_0x37ecbc([0x6d,0x6f,0x64,0x65,0x6c])][_0x37ecbc([0x6f,0x6e])](_0x37ecbc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x41d574,_0x9680d3)=>{_0x9680d3[0x0][_0x37ecbc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4df0e5++,_0x4df0e5==(0x2ca21a8e^_0x3cb38c)&&(_0x9dd1de(),_0x41d574[_0x37ecbc([0x6f,0x66,0x66])]());});}))];return window[_0x37ecbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x37ecbc([0x72,0x61,0x63,0x65])](_0x54ec12)[_0x37ecbc([0x74,0x68,0x65,0x6e])](()=>_0x136d08);}async function _0x215ce3(){await _0x4ab66b,_0x3e892e[_0x37ecbc([0x6d,0x6f,0x64,0x65,0x6c])][_0x37ecbc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x45eb84,_0x3e892e[_0x37ecbc([0x6d,0x6f,0x64,0x65,0x6c])][_0x37ecbc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x45eb84,_0x3e892e[_0x37ecbc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x37ecbc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2c2af4(_0x4235ea){const _0x20577c=_0x4ac154();_0x3e892e[_0x20577c]=_0x37ecbc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4235ea,_0x4235ea!=_0x37ecbc([0x56,0x61,0x6c,0x69,0x64])&&_0x215ce3();}function _0x4ac154(){const _0x1b8417=window[_0x37ecbc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x37ecbc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x37ecbc([0x6e,0x6f,0x77])]())[_0x37ecbc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x37ecbc([0x2e]),'');let _0x50fffc=_0x37ecbc([0x4b]);for(let _0x17238d=0x0;_0x17238d<_0x1b8417[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17238d+=0x2){let _0x2be7a3=window[_0x37ecbc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b8417[_0x37ecbc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17238d,_0x17238d+0x2));_0x2be7a3>=_0xd42ec6[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2be7a3-=_0xd42ec6[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x50fffc+=_0xd42ec6[_0x2be7a3];}return _0x50fffc;}function _0x1cc829(){const _0x11511d=_0x217210[_0x37ecbc([0x73,0x70,0x6c,0x69,0x74])](_0x37ecbc([0x2e]));if(0x3!=_0x11511d[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3978bf(_0x11511d[0x1]);function _0x3978bf(_0x39348b){const _0x4531a3=_0x5d412d(_0x39348b);return _0x4531a3&&_0x39373d()?_0x4531a3:null;function _0x39373d(){const _0x5e2054=_0x4531a3[_0x37ecbc([0x6a,0x74,0x69])],_0xddab98=window[_0x37ecbc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e2054[_0x37ecbc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e2054[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f842e={..._0x4531a3,[_0x37ecbc([0x6a,0x74,0x69])]:_0x5e2054[_0x37ecbc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e2054[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f842e[_0x37ecbc([0x76,0x63])],_0x178c07(_0x4f842e)==_0xddab98;}}}async function _0x2c2f5d(){let _0x3725de=!0x0;try{const _0x2fc035=_0x217210[_0x37ecbc([0x73,0x70,0x6c,0x69,0x74])](_0x37ecbc([0x2e])),[_0x2fa40b,_0x36394f,_0x42a6ad]=_0x2fc035;return _0x379ed6(_0x2fa40b),await _0x3e1e48(_0x2fa40b,_0x36394f,_0x42a6ad),_0x3725de;}catch{return!0x1;}function _0x379ed6(_0x2941d9){const _0xa697bd=_0x5d412d(_0x2941d9);_0xa697bd&&_0xa697bd[_0x37ecbc([0x61,0x6c,0x67])]==_0x37ecbc([0x45,0x53,0x32,0x35,0x36])||(_0x3725de=!0x1);}async function _0x3e1e48(_0xcbec43,_0x3fa14b,_0x384f2c){const _0x32bb0c=window[_0x37ecbc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x37ecbc([0x66,0x72,0x6f,0x6d])](_0x394458(_0x384f2c),_0x1e29ff=>_0x1e29ff[_0x37ecbc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3c1230=new window[(_0x37ecbc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x37ecbc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xcbec43+_0x37ecbc([0x2e])+_0x3fa14b),_0x4ea500=window[_0x37ecbc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x37ecbc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4ea500)return;const _0x131ec2=await _0x4ea500[_0x37ecbc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x37ecbc([0x6a,0x77,0x6b]),_0x1254e2,{[_0x37ecbc([0x6e,0x61,0x6d,0x65])]:_0x37ecbc([0x45,0x43,0x44,0x53,0x41]),[_0x37ecbc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x37ecbc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x37ecbc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4ea500[_0x37ecbc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x37ecbc([0x6e,0x61,0x6d,0x65])]:_0x37ecbc([0x45,0x43,0x44,0x53,0x41]),[_0x37ecbc([0x68,0x61,0x73,0x68])]:{[_0x37ecbc([0x6e,0x61,0x6d,0x65])]:_0x37ecbc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x131ec2,_0x32bb0c,_0x3c1230)||(_0x3725de=!0x1);}}function _0x5d412d(_0x164e9b){return _0x164e9b[_0x37ecbc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x37ecbc([0x65,0x79]))?JSON[_0x37ecbc([0x70,0x61,0x72,0x73,0x65])](_0x394458(_0x164e9b)):null;}function _0x394458(_0x30cd24){return window[_0x37ecbc([0x61,0x74,0x6f,0x62])](_0x30cd24[_0x37ecbc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x37ecbc([0x2b]))[_0x37ecbc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x37ecbc([0x2f])));}function _0x178c07(_0x481979){let _0x49db63=0x1505;function _0x323b35(_0x1aec45){for(let _0x34b49c=0x0;_0x34b49c<_0x1aec45[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34b49c++){const _0x3918c6=_0x1aec45[_0x37ecbc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34b49c);_0x49db63=(_0x49db63<<0x5)+_0x49db63+_0x3918c6,_0x49db63&=_0x49db63;}}function _0x2a8061(_0x4faa19){Array[_0x37ecbc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4faa19)?_0x4faa19[_0x37ecbc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2a8061):_0x4faa19&&typeof _0x4faa19==_0x37ecbc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x37ecbc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4faa19)[_0x37ecbc([0x73,0x6f,0x72,0x74])]()[_0x37ecbc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x341d38,_0x297201])=>{_0x323b35(_0x341d38),_0x2a8061(_0x297201);}):_0x323b35(window[_0x37ecbc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4faa19));}return _0x2a8061(_0x481979),_0x49db63>>>0x0;}function _0x307b93(_0x28226e){return _0x28226e[_0x37ecbc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x37ecbc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x37ecbc([0x30]));}function _0x19726e(_0x2ab811){return _0x2ab811[_0x37ecbc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x37ecbc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x37ecbc([0x6a,0x6f,0x69,0x6e])]('');}function _0x45eb84(){}function _0x37ecbc(_0x33d9c2){return _0x33d9c2['map'](_0x2576db=>String['fromCharCode'](_0x2576db))['join']('');}_0x2c2af4(await _0x407b15());}(this);}['_initSchema'](){const _0x250b42=this['editor']['model']['schema'];_0x250b42['isRegistered']('imageBlock')&&_0x250b42['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x250b42['isRegistered']('imageInline')&&_0x250b42['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x160910=this['editor'];_0x160910['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x160910['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x453855=>_0x453855['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2c6622=_0x160910['commands']['get']('replaceImageSource');_0x2c6622&&this['listenTo'](_0x2c6622,'cleanupImage',(_0xceb0b3,[_0x2ef7cb,_0x14cbdd])=>{_0x2ef7cb['removeAttribute']('uploadcareImageId',_0x14cbdd);});}['_initConfig'](){const _0x325b72=this['editor']['config']['get']('uploadcare.uploader')||{},_0x55f469=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1d1955(_0x520e1f['document'],'uc-config',{..._0x325b72,'pubkey':_0x55f469,'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']=_0x526a46=>{if('closeMax'==_0x526a46)return'#uc-icon-arrow-down';},_0x520e1f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1d1955(_0x520e1f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x520e1f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x153424=this['editor']['commands']['get']('insertImage');_0x153424&&this['listenTo'](_0x153424,'execute',()=>{const _0x10c20a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x10c20a&&_0x10c20a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x10c20a);});});const _0x46ba6c=this['editor']['commands']['get']('uploadcareImageReplace');_0x46ba6c&&this['listenTo'](_0x46ba6c,'execute',()=>{const _0x184b63=this['editor']['model']['document']['selection']['getSelectedElement']();_0x184b63&&_0x184b63['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x184b63);});});}}class u extends _0x335939{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d2e32){super(_0x4d2e32),_0x4d2e32['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x287e21['defineComponents'](_0x287e21);}}class ta extends _0x256452{constructor(_0x30ab68){super(_0x30ab68);const t=_0x30ab68['t'],_0x5c8167=this['bindTemplate'],_0x41da56=new _0x3ab240();_0x41da56['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':[_0x41da56,{'text':_0x5c8167['to']('imageUploadProgress',_0x1af740=>t('Loading\x20image...')+'\x20('+(_0x1af740||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 _0x256452{constructor(_0x4164ee){super(_0x4164ee);const t=_0x4164ee['t'];this['set']('errorType',null);const _0x3a0969=new _0x54c86e(_0x4164ee);_0x3a0969['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3a0969['withText']=!0x0,_0x3a0969['class']='ck-button-action',_0x3a0969['on']('execute',()=>{this['fire']('retry');}),_0x3a0969['bind']('isVisible')['to'](this,'errorType',_0x1e62d6=>'NotFound'!==_0x1e62d6);const _0xf2ad57=new at();_0xf2ad57['content']=et,_0xf2ad57['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x293bd7=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':[_0xf2ad57,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x293bd7['to']('errorType',_0x2e028d=>t('NotFound'!==_0x2e028d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3a0969]},{'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 _0x256452{constructor(_0x599b5c,_0x2e9dca){super(_0x599b5c);const _0x38ca74=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2e9dca,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x38ca74['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2288dc,_0x4c3207,_0x2c71c5){super(_0x2288dc),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x2288dc),this['_errorView']=new rt(_0x2288dc),this['_editingView']=new tt(_0x2288dc,_0x2c71c5),this['_focusableView']=new _0x256452(_0x2288dc),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4c3207),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'],_0x4bac57=>{this['_addUploadcareImageEditorListeners'](_0x4bac57);});}),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'](_0x53436a,_0x43798f){const _0x2ccbea='uc-cloud-image-editor',_0x2612c8=_0x53436a['querySelector'](_0x2ccbea);if(_0x2612c8)return _0x43798f(_0x2612c8);const _0x314514=new MutationObserver(_0x3d4fd1=>{const _0x463ff1=_0x3d4fd1['filter'](_0x8df66e=>_0x8df66e['target']===_0x53436a&&_0x8df66e['addedNodes']['length']>0x0&&_0x8df66e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2ccbea);_0x463ff1['length']&&(_0x314514['disconnect'](),_0x43798f(_0x463ff1[0x0]['addedNodes'][0x0]));});_0x314514['observe'](_0x53436a,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x13cbd1){_0x13cbd1['addEventListener']('apply',_0x431ac3=>{this['fire']('apply',{'imageSrc':_0x431ac3['detail']['cdnUrl']});}),_0x13cbd1['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5afe91(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x336589,_0x51f06c,_0x5712fc){super(),this['_editor']=_0x336589,this['_dialog']=_0x51f06c,this['_imageElement']=_0x5712fc,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 _0xca5656=this['_imageElement'],_0x1207df=_0xca5656['getAttribute']('uploadcareImageId'),_0x14719f=_0xca5656['getAttribute']('src');if(_0x1207df)await this['_loadImageInfo'](_0x1207df,_0x14719f);else{if(this['_imageCache']['has'](_0x14719f)){const _0x5400ba=this['_imageCache']['get'](_0x14719f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5400ba['url'],this['imageDimension']=_0x5400ba['dimension'],this['imageId']=_0x5400ba['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x51e60c}=this['_editor'],t=_0x51e60c['t'],_0x23bde7=new Z(_0x51e60c,this['imageStatus'],this['_attributes']);_0x23bde7['bind']('status')['to'](this,'imageStatus'),_0x23bde7['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x23bde7['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x23bde7['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x23bde7,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xa3d37a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x23bde7,'position':_0xb6ef76['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x23bde7['focus']();},'onHide':()=>{_0x23bde7['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x158327=>!F(_0x158327,_0x23bde7['element'])}});}['_loadImageInfo'](_0x386f45,_0x1cb751){return C['getInfo'](_0x386f45,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x11f2bb=>{const {width:_0x2be151,height:_0x33137c}=_0x11f2bb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1cb751,this['imageDimension']={'width':_0x2be151,'height':_0x33137c},this['imageId']=_0x386f45;})['catch'](_0x214664=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x214664['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x31f93e,_0x3cd788){return this['_getImageAsFile'](_0x31f93e)['then'](_0x233f13=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3cd788['signal'],'file':_0x233f13,'onProgress':_0x198c5b=>{_0x198c5b&&_0x198c5b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x198c5b['value']));}}))['then'](_0x5c6f7d=>{const {width:_0xa9ce55,height:_0x5128e9}=_0x5c6f7d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5c6f7d['cdnUrl'],this['imageDimension']={'width':_0xa9ce55,'height':_0x5128e9},this['imageId']=_0x5c6f7d['uuid'],this['imageUploadProgress']=null;const _0x18827a=_0x31f93e['getAttribute']('src');this['_imageCache']['set'](_0x18827a,{'id':_0x5c6f7d['uuid'],'url':_0x5c6f7d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x16ff45=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x16ff45['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4b6198,_0x4a775e){_0x4b6198['on']('apply',(_0x572629,_0x76794e)=>{this['_replaceImage'](_0x4a775e,_0x76794e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4b6198['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4b6198['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3d2d2a,_0x982304,_0x5d79f9){const _0x22d78f=this['_editor'],{width:_0x4edd0b,height:_0x31e9b4}=A(_0x982304,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x479d5e,imageSources:_0xfd481d}=E(_0x982304,_0x4edd0b);_0x22d78f['model']['change'](_0x2f9c05=>{if('$graveyard'===_0x3d2d2a['root']['rootName']){_0x22d78f['execute']('insertImage',{'imageType':_0x3d2d2a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3d2d2a['getAttributes']()),'uploadcareImageId':_0x5d79f9,'src':_0x479d5e,'sources':_0xfd481d,'width':_0x4edd0b,'height':_0x31e9b4}});const _0x354cfb=_0x3d2d2a['getChildren']();_0x3d2d2a=_0x22d78f['model']['document']['selection']['getSelectedElement']();for(const _0x5d41ac of _0x354cfb)_0x2f9c05['append'](_0x2f9c05['cloneElement'](_0x5d41ac),_0x3d2d2a);}else _0x2f9c05['setSelection'](_0x3d2d2a,'on'),_0x22d78f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3d2d2a['getAttributes']()),'uploadcareImageId':_0x5d79f9,'src':_0x479d5e,'sources':_0xfd481d,'width':_0x4edd0b,'height':_0x31e9b4},_0x3d2d2a);_0x2f9c05['setSelection'](_0x3d2d2a,'on');});}async['_getImageAsFile'](_0x502e9d){const _0x499fbb=_0x520e1f['window'],_0x56b1ad=_0x520e1f['document']['location']['href'],_0x2d4a58=new _0x499fbb['URL'](_0x502e9d['getAttribute']('src'),_0x56b1ad);if('data:'===_0x2d4a58['protocol']){const _0x175357=_0x2d4a58['href']['split'](','),_0x3dfec5=_0x175357[0x0]['match'](/:(.*?);/)[0x1],_0x59043a=_0x3dfec5['split']('/')[0x1],_0x52ee30=_0x499fbb['atob'](_0x175357[_0x175357['length']-0x1]);let _0x4fae6e=_0x52ee30['length'];const _0x3b8ce8=new _0x499fbb['Uint8Array'](_0x4fae6e);for(;_0x4fae6e--;)_0x3b8ce8[_0x4fae6e]=_0x52ee30['charCodeAt'](_0x4fae6e);return new _0x499fbb['File']([_0x3b8ce8],'image.'+_0x59043a,{'type':_0x3dfec5});}const _0x3ebce9=_0x2d4a58['href']['split']('/'),_0x211ecd=_0x3ebce9[_0x3ebce9['length']-0x1],_0x914095=_0x211ecd['split']('.')[0x1];return _0x499fbb['fetch'](_0x2d4a58['href'])['then'](_0x3173f3=>_0x3173f3['clone']()['blob']())['then'](_0x13ca98=>new _0x499fbb['File']([_0x13ca98],_0x211ecd,{'type':'image/'+_0x914095}));}}class J extends _0x55b0d0{['imageEditController'];static get['requires'](){return[_0x3510d1];}['_isEditable'];constructor(_0x305648){super(_0x305648),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x39c8e5){const _0xb690b=V(_0x39c8e5);return _0x147b0a=>!(!_0x147b0a||!_0x147b0a['is']('element','imageBlock')&&!_0x147b0a['is']('element','imageInline'))&&(!!_0x147b0a['hasAttribute']('uploadcareImageId')||!!_0x147b0a['hasAttribute']('src')&&_0xb690b(_0x147b0a['getAttribute']('src')));}(_0x305648['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3e4483=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3e4483);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x117a85=this['editor']['model']['document']['selection']['getSelectedElement']();_0x117a85&&(_0x117a85['is']('element','imageBlock')||_0x117a85['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x3510d1),_0x117a85),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x55b0d0{['refresh'](){const _0x216282=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x216282&&(_0x216282['is']('element','imageBlock')||_0x216282['is']('element','imageInline')));}['execute'](_0x2abc18){const _0x459223=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4d19e3=>{_0x4d19e3['setAttributes'](_0x2abc18,_0x459223),_0x4d19e3['removeAttribute']('srcset',_0x459223),_0x4d19e3['removeAttribute']('sizes',_0x459223);});}}class g extends _0x335939{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x5cb120,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2b45f3}=this;_0x2b45f3['commands']['add']('uploadcareImageEdit',new J(_0x2b45f3)),_0x2b45f3['commands']['add']('uploadcareImageReplace',new O(_0x2b45f3));}}class j extends _0x335939{['_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 _0x2bb260=this['editor'];_0x2bb260['ui']['componentFactory']['add']('uploadcareImageEdit',_0x24080f=>{const _0x2e5193=_0x2bb260['commands']['get']('uploadcareImageEdit'),_0x9f5574=new _0x54c86e(_0x24080f),t=_0x24080f['t'];return _0x9f5574['set']({'icon':_0xa3d37a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x9f5574['bind']('isEnabled')['to'](_0x2e5193),_0x9f5574['bind']('isOn')['to'](_0x2e5193,'isActive'),this['listenTo'](_0x9f5574,'execute',()=>{_0x2bb260['execute']('uploadcareImageEdit'),_0x2bb260['editing']['view']['focus']();}),_0x9f5574;}),this['_initConfig']();}['_initConfig'](){const _0x275f3a=_0x1d1955(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x275f3a),this['listenTo'](this['editor'],'destroy',()=>{_0x275f3a['remove']();});}}class P extends _0x335939{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-20250602.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-20250602.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250602.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250602.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250602.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250602.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250602.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250602.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250602.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 _0x27d62d=_0x61a1;function _0x61a1(_0x3c55bf,_0x56fefb){const _0x215c1c=_0x215c();return _0x61a1=function(_0x61a1cf,_0x1c1c4f){_0x61a1cf=_0x61a1cf-0xde;let _0x158637=_0x215c1c[_0x61a1cf];return _0x158637;},_0x61a1(_0x3c55bf,_0x56fefb);}(function(_0x1da198,_0x321836){const _0x4e474e=_0x61a1,_0x40ceea=_0x1da198();while(!![]){try{const _0x39f9a7=-parseInt(_0x4e474e(0x11c))/0x1*(parseInt(_0x4e474e(0x12f))/0x2)+parseInt(_0x4e474e(0x100))/0x3+parseInt(_0x4e474e(0x120))/0x4*(-parseInt(_0x4e474e(0xf1))/0x5)+-parseInt(_0x4e474e(0x10a))/0x6*(-parseInt(_0x4e474e(0x109))/0x7)+parseInt(_0x4e474e(0x10c))/0x8+-parseInt(_0x4e474e(0xf4))/0x9+-parseInt(_0x4e474e(0xff))/0xa*(-parseInt(_0x4e474e(0xe2))/0xb);if(_0x39f9a7===_0x321836)break;else _0x40ceea['push'](_0x40ceea['shift']());}catch(_0x3ec9ac){_0x40ceea['push'](_0x40ceea['shift']());}}}(_0x215c,0xec1e2));import{Plugin as _0x1faf3f}from'ckeditor5/src/core.js';import{Dialog as _0x51531b}from'ckeditor5/src/ui.js';import{createElement as _0x5573be,global as _0x1b4b34,uid as _0x238af5}from'ckeditor5/src/utils.js';import _0x31c95e from'./uploadcarecommand.js';function _0x215c(){const _0x3ec83b=['document','uploadcare.pubkey','join','replaceImageSource','contentLanguage','attributeToAttribute','href','upcast','59020kZGzIY','model','_initSchema','config','709908kYaVJS','_initImageProcessingIndicator','iconHrefResolver','configElement','uc-upload-ctx-provider','uploader','_ctxElement','downcast','removeAttribute','cleanupImage','elementToAttribute','uploadcare','for','data-uc-image-id','querySelector','50ZzBJZX','init','once','requires','pluginName','insertImage','locale','isPremiumPlugin','583TeIyNy','remove','map','#uc-icon-arrow-down','execute','uploadcareImageReplace','true','add','conversion','isOfficialPlugin','extend','uploadcareImageId','getSelectedElement','schema','editor','25dWIINm','_initConfig','editing','16569468QzYkDr','input[uploadcare-file-input]','afterInit','closeMax','render','uc-config','\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','imageInline','isRegistered','getAttribute','_initConversion','500580jvyRQR','1462890WaQdWU','_configElement','view','get','imageBlock','uploadcare.uploader','_initCtx','body','fromCharCode','7dlRzul','6796932tZaARD','appendChild','7180392JxXyvX','UploadcareEditing','destroy','ctxElement','listenTo','selection','commands','PictureEditing'];_0x215c=function(){return _0x3ec83b;};return _0x215c();}import _0x494d7e from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4a2c25}from'./utils/editingutils.js';export default class i extends _0x1faf3f{[_0x27d62d(0x101)]=null;[_0x27d62d(0x126)]=null;static get[_0x27d62d(0xde)](){const _0x3dab89=_0x27d62d;return _0x3dab89(0x10d);}static get[_0x27d62d(0x132)](){const _0x33d300=_0x27d62d;return[_0x33d300(0x113),_0x494d7e,_0x51531b];}static get[_0x27d62d(0xeb)](){return!0x0;}static get[_0x27d62d(0xe1)](){return!0x0;}get[_0x27d62d(0x123)](){const _0xc1188f=_0x27d62d;return this[_0xc1188f(0x101)];}get[_0x27d62d(0x10f)](){const _0x585c1a=_0x27d62d;return this[_0x585c1a(0x126)];}[_0x27d62d(0x130)](){const _0x4d51e2=_0x27d62d,_0x9c6a7=this[_0x4d51e2(0xf0)];_0x9c6a7[_0x4d51e2(0x112)][_0x4d51e2(0xe9)](_0x4d51e2(0x12b),new _0x31c95e(_0x9c6a7));}[_0x27d62d(0xf6)](){const _0xf7b580=_0x27d62d;this[_0xf7b580(0x11e)](),this[_0xf7b580(0xfe)](),this[_0xf7b580(0xf2)](),this[_0xf7b580(0x106)](),this[_0xf7b580(0x121)](),this[_0xf7b580(0x110)](this[_0xf7b580(0xf0)],_0xf7b580(0x10e),()=>{const _0xfb84c7=_0xf7b580;this[_0xfb84c7(0x101)]&&(this[_0xfb84c7(0x101)][_0xfb84c7(0xe3)](),this[_0xfb84c7(0x101)]=null),this[_0xfb84c7(0x126)]&&(this[_0xfb84c7(0x126)][_0xfb84c7(0xe3)](),this[_0xfb84c7(0x126)]=null);const _0x505a0e=_0x1b4b34[_0xfb84c7(0x114)][_0xfb84c7(0x12e)](_0xfb84c7(0xf5));_0x505a0e&&_0x505a0e[_0xfb84c7(0xe3)]();}),async function(_0x1571a7){const _0x23fae7=_0x18f27c([0x76,0x4c,0x73,0x44,0x34,0x6b,0x31,0x6f,0x43,0x6e,0x5a,0x48,0x6d,0x72,0x59,0x42,0x79,0x35,0x32,0x47,0x4d,0x69,0x7a,0x50,0x38,0x75,0x54,0x67,0x39,0x62,0x65,0x78,0x58,0x53,0x49,0x71,0x46,0x74,0x68,0x4b,0x66,0x33,0x64,0x30,0x36,0x70,0x51,0x56,0x4f,0x6c,0x45,0x63,0x52,0x55,0x4a,0x37,0x61,0x41,0x77,0x57,0x6a,0x4e]),_0x41f169=0x5232a414,_0x30b911=0x5235cd7c^_0x41f169,_0x190f93=window[_0x18f27c([0x44,0x61,0x74,0x65])][_0x18f27c([0x6e,0x6f,0x77])](),_0x1d8362=_0x1571a7[_0x18f27c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x286a3d=new window[(_0x18f27c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46917b=>{_0x1d8362[_0x18f27c([0x6f,0x6e,0x63,0x65])](_0x18f27c([0x72,0x65,0x61,0x64,0x79]),_0x46917b);}),_0xdb51ea={[_0x18f27c([0x6b,0x74,0x79])]:_0x18f27c([0x45,0x43]),[_0x18f27c([0x75,0x73,0x65])]:_0x18f27c([0x73,0x69,0x67]),[_0x18f27c([0x63,0x72,0x76])]:_0x18f27c([0x50,0x2d,0x32,0x35,0x36]),[_0x18f27c([0x78])]:_0x18f27c([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]),[_0x18f27c([0x79])]:_0x18f27c([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]),[_0x18f27c([0x61,0x6c,0x67])]:_0x18f27c([0x45,0x53,0x32,0x35,0x36])},_0x1fcd43=_0x1d8362[_0x18f27c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x18f27c([0x67,0x65,0x74])](_0x18f27c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4be47e(){let _0x5b90cf,_0x42096b=null,_0x3a3120=null;try{if(_0x1fcd43==_0x18f27c([0x47,0x50,0x4c]))return _0x18f27c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5b90cf=_0x313c1d(),!_0x5b90cf)return _0x18f27c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5b90cf[_0x18f27c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3a3120=_0x3ef853(_0x5b90cf[_0x18f27c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5b90cf[_0x18f27c([0x6a,0x74,0x69])])),await _0x3f49c0()?_0x303233()?_0x431fd3()?_0x18f27c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1e9007()?(_0x5b90cf[_0x18f27c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18f27c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42096b=_0x13da1d(_0x18f27c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5b90cf[_0x18f27c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18f27c([0x74,0x72,0x69,0x61,0x6c])&&(_0x42096b=_0x13da1d(_0x18f27c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x21b735()):_0x18f27c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x18f27c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x18f27c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x18f27c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x431fd3(){const _0x4813e2=[_0x18f27c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x18f27c([0x74,0x72,0x69,0x61,0x6c])][_0x18f27c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b90cf[_0x18f27c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x190f93/0x3e8:0xe10*_0x30b911;return _0x5b90cf[_0x18f27c([0x65,0x78,0x70])]<_0x4813e2;}function _0x303233(){const _0x10a379=_0x5b90cf[_0x18f27c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x10a379&&(!!_0x10a379[_0x18f27c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18f27c([0x2a]))||!!_0x10a379[_0x18f27c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18f27c([0x55,0x50,0x4c,0x43])));}function _0x1e9007(){const _0xb466bd=_0x61a1,_0x22672f=_0x5b90cf[_0x18f27c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x22672f||0x0==_0x22672f[_0x18f27c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x36b1a0}=new URL(window[_0x18f27c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xb466bd(0x11a)]);if(_0x22672f[_0x18f27c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36b1a0))return!0x0;const _0x1f6286=_0x36b1a0[_0x18f27c([0x73,0x70,0x6c,0x69,0x74])](_0x18f27c([0x2e]));return _0x22672f[_0x18f27c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1529e1=>_0x1529e1[_0x18f27c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18f27c([0x2a])))[_0x18f27c([0x6d,0x61,0x70])](_0x550491=>_0x550491[_0x18f27c([0x73,0x70,0x6c,0x69,0x74])](_0x18f27c([0x2e])))[_0x18f27c([0x73,0x6f,0x6d,0x65])](_0x13a8a5=>_0x1f6286[_0x18f27c([0x65,0x76,0x65,0x72,0x79])]((_0x382511,_0x5247c5)=>_0x13a8a5[_0x5247c5]===_0x382511||_0x13a8a5[_0x5247c5]===_0x18f27c([0x2a])));}function _0x21b735(){return _0x42096b&&_0x3a3120?new window[(_0x18f27c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x113fd3,_0x173334)=>{_0x42096b[_0x18f27c([0x74,0x68,0x65,0x6e])](_0x113fd3,_0x173334),_0x3a3120[_0x18f27c([0x74,0x68,0x65,0x6e])](_0x2d8961=>{_0x2d8961!=_0x18f27c([0x56,0x61,0x6c,0x69,0x64])&&_0x113fd3(_0x2d8961);},_0x173334);}):_0x42096b||_0x3a3120||_0x18f27c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ef853(_0x30d4cb,_0x12bbf9){return new window[(_0x18f27c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b69e3=>{if(_0x1e4399())return _0x3b69e3(_0x18f27c([0x56,0x61,0x6c,0x69,0x64]));_0x4b8f4a(),_0x1d8362[_0x18f27c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x18f27c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x48bb9f=!0x1;const _0x4b37c9=_0x238af5();function _0x42ba5c(_0x57750c){return!!_0x57750c&&(typeof _0x57750c===_0x18f27c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57750c===_0x18f27c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57750c[_0x18f27c([0x74,0x68,0x65,0x6e])]===_0x18f27c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57750c[_0x18f27c([0x63,0x61,0x74,0x63,0x68])]===_0x18f27c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1a8097(_0x6dc1d4){_0x257ea7(_0x6dc1d4)[_0x18f27c([0x74,0x68,0x65,0x6e])](_0x2e0cde=>{if(!_0x2e0cde||_0x2e0cde[_0x18f27c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x18f27c([0x6f,0x6b]))return _0x18f27c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x229825(_0x5e437f(_0x4b37c9+_0x12bbf9))!=_0x2e0cde[_0x18f27c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x18f27c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x18f27c([0x56,0x61,0x6c,0x69,0x64]);})[_0x18f27c([0x74,0x68,0x65,0x6e])](_0x4814b0=>(_0x2e1018(),_0x4814b0),()=>{const _0x3e4033=_0x44e3d4();return null==_0x3e4033?(_0x2e1018(),_0x18f27c([0x56,0x61,0x6c,0x69,0x64])):_0x18f27c(_0x190f93-_0x3e4033>(0x763e2014^_0x41f169)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x18f27c([0x74,0x68,0x65,0x6e])](_0x3b69e3)[_0x18f27c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b69e3(_0x18f27c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5971ed=0x52044a94^_0x41f169;function _0x2e1018(){const _0xb31d83=_0x18f27c([0x6c,0x6c,0x63,0x74,0x2d])+_0x229825(_0x5e437f(_0x30d4cb)),_0x425870=_0x4b78a9(_0x229825(window[_0x18f27c([0x4d,0x61,0x74,0x68])][_0x18f27c([0x63,0x65,0x69,0x6c])](_0x190f93/_0x5971ed)));window[_0x18f27c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18f27c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb31d83,_0x425870);}function _0x44e3d4(){const _0x558cfc=_0x18f27c([0x6c,0x6c,0x63,0x74,0x2d])+_0x229825(_0x5e437f(_0x30d4cb)),_0x19c28f=window[_0x18f27c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18f27c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x558cfc);return _0x19c28f?window[_0x18f27c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b78a9(_0x19c28f),0x10)*_0x5971ed:null;}function _0x257ea7(_0x5b9030){return new window[(_0x18f27c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4138f2,_0x271f17)=>{_0x5b9030[_0x18f27c([0x74,0x68,0x65,0x6e])](_0x4138f2,_0x271f17),window[_0x18f27c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x271f17,0x523370d4^_0x41f169);});}}_0x1d8362[_0x18f27c([0x6f,0x6e])](_0x18f27c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x425230,_0x18ad87)=>{if(_0x18ad87[0x0]!=_0x30d4cb)return _0x3b69e3(_0x18f27c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x18ad87[0x1]={..._0x18ad87[0x1],[_0x18f27c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b37c9};},{[_0x18f27c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18f27c([0x68,0x69,0x67,0x68])}),_0x1d8362[_0x18f27c([0x6f,0x6e])](_0x18f27c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4bfc79=>{_0x42ba5c(_0x4bfc79[_0x18f27c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x48bb9f=!0x0,_0x1a8097(_0x4bfc79[_0x18f27c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x18f27c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18f27c([0x6c,0x6f,0x77])}),_0x286a3d[_0x18f27c([0x74,0x68,0x65,0x6e])](()=>{_0x48bb9f||_0x3b69e3(_0x18f27c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e4399(){return _0x1d8362[_0x18f27c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18f27c([0x76,0x69,0x65,0x77])][_0x18f27c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x18f27c([0x61,0x75,0x74,0x6f]);}function _0x4b8f4a(){_0x1d8362[_0x18f27c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18f27c([0x76,0x69,0x65,0x77])][_0x18f27c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x18f27c([0x61,0x75,0x74,0x6f]);}}function _0x13da1d(_0x3a6012){const _0x4f0dd0=[new window[(_0x18f27c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9be276=>setTimeout(_0x9be276,0x523b9ad8^_0x41f169)),_0x286a3d[_0x18f27c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x18f27c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59677f=>{let _0x1c9097=0x0;_0x1d8362[_0x18f27c([0x6d,0x6f,0x64,0x65,0x6c])][_0x18f27c([0x6f,0x6e])](_0x18f27c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x50b7c8,_0x3ac4a4)=>{_0x3ac4a4[0x0][_0x18f27c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1c9097++,_0x1c9097==(0x5232a5ec^_0x41f169)&&(_0x59677f(),_0x50b7c8[_0x18f27c([0x6f,0x66,0x66])]());});}))];return window[_0x18f27c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x18f27c([0x72,0x61,0x63,0x65])](_0x4f0dd0)[_0x18f27c([0x74,0x68,0x65,0x6e])](()=>_0x3a6012);}async function _0x809e4(){await _0x286a3d,_0x1d8362[_0x18f27c([0x6d,0x6f,0x64,0x65,0x6c])][_0x18f27c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x21bc9a,_0x1d8362[_0x18f27c([0x6d,0x6f,0x64,0x65,0x6c])][_0x18f27c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x21bc9a,_0x1d8362[_0x18f27c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x18f27c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a67d9(_0x5f2fcb){const _0x212a15=_0x3f67d1();_0x1d8362[_0x212a15]=_0x18f27c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5f2fcb,_0x5f2fcb!=_0x18f27c([0x56,0x61,0x6c,0x69,0x64])&&_0x809e4();}function _0x3f67d1(){const _0x5efe75=window[_0x18f27c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x18f27c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x18f27c([0x6e,0x6f,0x77])]())[_0x18f27c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x18f27c([0x2e]),'');let _0x239ea4=_0x18f27c([0x76]);for(let _0x2ccb92=0x0;_0x2ccb92<_0x5efe75[_0x18f27c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ccb92+=0x2){let _0x1536a5=window[_0x18f27c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5efe75[_0x18f27c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ccb92,_0x2ccb92+0x2));_0x1536a5>=_0x23fae7[_0x18f27c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1536a5-=_0x23fae7[_0x18f27c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x239ea4+=_0x23fae7[_0x1536a5];}return _0x239ea4;}function _0x313c1d(){const _0x31e28f=_0x1fcd43[_0x18f27c([0x73,0x70,0x6c,0x69,0x74])](_0x18f27c([0x2e]));if(0x3!=_0x31e28f[_0x18f27c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58ef48(_0x31e28f[0x1]);function _0x58ef48(_0x48fd84){const _0x275b79=_0x2da011(_0x48fd84);return _0x275b79&&_0x41cd84()?_0x275b79:null;function _0x41cd84(){const _0x271f97=_0x275b79[_0x18f27c([0x6a,0x74,0x69])],_0x158a41=window[_0x18f27c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x271f97[_0x18f27c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x271f97[_0x18f27c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x58842e={..._0x275b79,[_0x18f27c([0x6a,0x74,0x69])]:_0x271f97[_0x18f27c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x271f97[_0x18f27c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x58842e[_0x18f27c([0x76,0x63])],_0x5e437f(_0x58842e)==_0x158a41;}}}async function _0x3f49c0(){let _0x48f870=!0x0;try{const _0x9ca2f8=_0x1fcd43[_0x18f27c([0x73,0x70,0x6c,0x69,0x74])](_0x18f27c([0x2e])),[_0x3653f9,_0x499855,_0x3c1936]=_0x9ca2f8;return _0x6fd085(_0x3653f9),await _0x2ae1c1(_0x3653f9,_0x499855,_0x3c1936),_0x48f870;}catch{return!0x1;}function _0x6fd085(_0x5c244a){const _0x7f3674=_0x2da011(_0x5c244a);_0x7f3674&&_0x7f3674[_0x18f27c([0x61,0x6c,0x67])]==_0x18f27c([0x45,0x53,0x32,0x35,0x36])||(_0x48f870=!0x1);}async function _0x2ae1c1(_0x3b6de0,_0x358189,_0x528c2b){const _0x26fcc8=window[_0x18f27c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x18f27c([0x66,0x72,0x6f,0x6d])](_0x55e698(_0x528c2b),_0x136e50=>_0x136e50[_0x18f27c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x8a73bf=new window[(_0x18f27c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x18f27c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b6de0+_0x18f27c([0x2e])+_0x358189),_0x5136e4=window[_0x18f27c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x18f27c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5136e4)return;const _0x5ac310=await _0x5136e4[_0x18f27c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x18f27c([0x6a,0x77,0x6b]),_0xdb51ea,{[_0x18f27c([0x6e,0x61,0x6d,0x65])]:_0x18f27c([0x45,0x43,0x44,0x53,0x41]),[_0x18f27c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x18f27c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x18f27c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5136e4[_0x18f27c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x18f27c([0x6e,0x61,0x6d,0x65])]:_0x18f27c([0x45,0x43,0x44,0x53,0x41]),[_0x18f27c([0x68,0x61,0x73,0x68])]:{[_0x18f27c([0x6e,0x61,0x6d,0x65])]:_0x18f27c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5ac310,_0x26fcc8,_0x8a73bf)||(_0x48f870=!0x1);}}function _0x2da011(_0x55d2d3){return _0x55d2d3[_0x18f27c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x18f27c([0x65,0x79]))?JSON[_0x18f27c([0x70,0x61,0x72,0x73,0x65])](_0x55e698(_0x55d2d3)):null;}function _0x55e698(_0x114307){return window[_0x18f27c([0x61,0x74,0x6f,0x62])](_0x114307[_0x18f27c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x18f27c([0x2b]))[_0x18f27c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x18f27c([0x2f])));}function _0x5e437f(_0x28df32){let _0x27b359=0x1505;function _0x200f0d(_0x146633){for(let _0x3a9481=0x0;_0x3a9481<_0x146633[_0x18f27c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a9481++){const _0x449f2f=_0x146633[_0x18f27c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3a9481);_0x27b359=(_0x27b359<<0x5)+_0x27b359+_0x449f2f,_0x27b359&=_0x27b359;}}function _0x18dd1c(_0x5ead31){Array[_0x18f27c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5ead31)?_0x5ead31[_0x18f27c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x18dd1c):_0x5ead31&&typeof _0x5ead31==_0x18f27c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x18f27c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5ead31)[_0x18f27c([0x73,0x6f,0x72,0x74])]()[_0x18f27c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x53771d,_0x29b7e4])=>{_0x200f0d(_0x53771d),_0x18dd1c(_0x29b7e4);}):_0x200f0d(window[_0x18f27c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5ead31));}return _0x18dd1c(_0x28df32),_0x27b359>>>0x0;}function _0x229825(_0x230d51){return _0x230d51[_0x18f27c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x18f27c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x18f27c([0x30]));}function _0x4b78a9(_0x3561f0){return _0x3561f0[_0x18f27c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x18f27c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x18f27c([0x6a,0x6f,0x69,0x6e])]('');}function _0x21bc9a(){}function _0x18f27c(_0x1a3085){const _0x1f0876=_0x61a1;return _0x1a3085[_0x1f0876(0xe4)](_0x2f637e=>String[_0x1f0876(0x108)](_0x2f637e))[_0x1f0876(0x116)]('');}_0x2a67d9(await _0x4be47e());}(this);}[_0x27d62d(0x11e)](){const _0x1e99ee=_0x27d62d,_0x30522a=this[_0x1e99ee(0xf0)][_0x1e99ee(0x11d)][_0x1e99ee(0xef)];_0x30522a[_0x1e99ee(0xfc)](_0x1e99ee(0x104))&&_0x30522a[_0x1e99ee(0xec)](_0x1e99ee(0x104),{'allowAttributes':[_0x1e99ee(0xed)]}),_0x30522a[_0x1e99ee(0xfc)](_0x1e99ee(0xfb))&&_0x30522a[_0x1e99ee(0xec)](_0x1e99ee(0xfb),{'allowAttributes':[_0x1e99ee(0xed)]});}[_0x27d62d(0xfe)](){const _0x31e52b=_0x27d62d,_0x5df88f=this[_0x31e52b(0xf0)];_0x5df88f[_0x31e52b(0xea)][_0x31e52b(0x12c)](_0x31e52b(0x127))[_0x31e52b(0x119)]({'model':_0x31e52b(0xed),'view':_0x31e52b(0x12d)}),_0x5df88f[_0x31e52b(0xea)][_0x31e52b(0x12c)](_0x31e52b(0x11b))[_0x31e52b(0x12a)]({'model':{'key':_0x31e52b(0xed),'value':_0x54c496=>_0x54c496[_0x31e52b(0xfd)](_0x31e52b(0x12d))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2850b7=_0x5df88f[_0x31e52b(0x112)][_0x31e52b(0x103)](_0x31e52b(0x117));_0x2850b7&&this[_0x31e52b(0x110)](_0x2850b7,_0x31e52b(0x129),(_0x2a232c,[_0x4483f3,_0x1d30d1])=>{const _0x3f231f=_0x31e52b;_0x4483f3[_0x3f231f(0x128)](_0x3f231f(0xed),_0x1d30d1);});}[_0x27d62d(0xf2)](){const _0x16c298=_0x27d62d,_0x311ff3=this[_0x16c298(0xf0)][_0x16c298(0x11f)][_0x16c298(0x103)](_0x16c298(0x105))||{},_0x160652=this[_0x16c298(0xf0)][_0x16c298(0x11f)][_0x16c298(0x103)](_0x16c298(0x115))||'';this[_0x16c298(0x101)]=_0x5573be(_0x1b4b34[_0x16c298(0x114)],_0x16c298(0xf9),{..._0x311ff3,'pubkey':_0x160652,'ctx-name':_0x16c298(0x125),'sourceList':'','imgOnly':_0x16c298(0xe8),'removeCopyright':_0x16c298(0xe8),'localeName':this[_0x16c298(0xf0)][_0x16c298(0xe0)][_0x16c298(0x118)],'externalSourcesEmbedCss':_0x16c298(0xfa)}),this[_0x16c298(0x101)][_0x16c298(0x122)]=_0x49d1b8=>{const _0x2d31fd=_0x16c298;if(_0x2d31fd(0xf7)==_0x49d1b8)return _0x2d31fd(0xe5);},_0x1b4b34[_0x16c298(0x114)][_0x16c298(0x107)][_0x16c298(0x10b)](this[_0x16c298(0x101)]);}[_0x27d62d(0x106)](){const _0x5520f9=_0x27d62d;this[_0x5520f9(0x126)]=_0x5573be(_0x1b4b34[_0x5520f9(0x114)],_0x5520f9(0x124),{'ctx-name':_0x5520f9(0x125)}),_0x1b4b34[_0x5520f9(0x114)][_0x5520f9(0x107)][_0x5520f9(0x10b)](this[_0x5520f9(0x126)]);}[_0x27d62d(0x121)](){const _0x4ff446=_0x27d62d,_0x536466=this[_0x4ff446(0xf0)][_0x4ff446(0x112)][_0x4ff446(0x103)](_0x4ff446(0xdf));_0x536466&&this[_0x4ff446(0x110)](_0x536466,_0x4ff446(0xe6),()=>{const _0x6b1fd7=_0x4ff446,_0x58ba48=this[_0x6b1fd7(0xf0)][_0x6b1fd7(0x11d)][_0x6b1fd7(0x114)][_0x6b1fd7(0x111)][_0x6b1fd7(0xee)]();_0x58ba48&&_0x58ba48[_0x6b1fd7(0xfd)](_0x6b1fd7(0xed))&&this[_0x6b1fd7(0xf0)][_0x6b1fd7(0xf3)][_0x6b1fd7(0x102)][_0x6b1fd7(0x131)](_0x6b1fd7(0xf8),()=>{const _0x4c3387=_0x6b1fd7;_0x4a2c25(this[_0x4c3387(0xf0)],_0x58ba48);});});const _0x36c6fd=this[_0x4ff446(0xf0)][_0x4ff446(0x112)][_0x4ff446(0x103)](_0x4ff446(0xe7));_0x36c6fd&&this[_0x4ff446(0x110)](_0x36c6fd,_0x4ff446(0xe6),()=>{const _0x7bd633=_0x4ff446,_0x3d7ea9=this[_0x7bd633(0xf0)][_0x7bd633(0x11d)][_0x7bd633(0x114)][_0x7bd633(0x111)][_0x7bd633(0xee)]();_0x3d7ea9&&_0x3d7ea9[_0x7bd633(0xfd)](_0x7bd633(0xed))&&this[_0x7bd633(0xf0)][_0x7bd633(0xf3)][_0x7bd633(0x102)][_0x7bd633(0x131)](_0x7bd633(0xf8),()=>{const _0x44d206=_0x7bd633;_0x4a2c25(this[_0x44d206(0xf0)],_0x3d7ea9);});});}}
|
|
23
|
+
const _0x9ab4a=_0x1ed5;function _0x1ed5(_0x3edb93,_0x5b19b2){const _0x376f38=_0x376f();return _0x1ed5=function(_0x1ed5e7,_0x34dfb8){_0x1ed5e7=_0x1ed5e7-0x1e9;let _0x2f58f3=_0x376f38[_0x1ed5e7];return _0x2f58f3;},_0x1ed5(_0x3edb93,_0x5b19b2);}(function(_0x8a9efe,_0x4025f9){const _0x2b0de0=_0x1ed5,_0x569e00=_0x8a9efe();while(!![]){try{const _0x1b4ab7=parseInt(_0x2b0de0(0x232))/0x1*(-parseInt(_0x2b0de0(0x221))/0x2)+parseInt(_0x2b0de0(0x212))/0x3*(parseInt(_0x2b0de0(0x1f2))/0x4)+-parseInt(_0x2b0de0(0x234))/0x5*(-parseInt(_0x2b0de0(0x20f))/0x6)+-parseInt(_0x2b0de0(0x1fd))/0x7*(-parseInt(_0x2b0de0(0x226))/0x8)+-parseInt(_0x2b0de0(0x1f8))/0x9+parseInt(_0x2b0de0(0x1f4))/0xa+-parseInt(_0x2b0de0(0x231))/0xb*(-parseInt(_0x2b0de0(0x1f0))/0xc);if(_0x1b4ab7===_0x4025f9)break;else _0x569e00['push'](_0x569e00['shift']());}catch(_0x1a0d2e){_0x569e00['push'](_0x569e00['shift']());}}}(_0x376f,0x2ef77));import{Plugin as _0x4d9c0b}from'ckeditor5/src/core.js';import{Dialog as _0x3787ca}from'ckeditor5/src/ui.js';import{createElement as _0xe08006,global as _0x45e45a,uid as _0x1a639f}from'ckeditor5/src/utils.js';import _0x1847aa from'./uploadcarecommand.js';import _0xc6cbe6 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x37d5d0}from'./utils/editingutils.js';function _0x376f(){const _0x342346=['href','remove','true','imageBlock','view','_configElement','editor','_initConfig','_initCtx','getSelectedElement','300NmVXOc','join','_ctxElement','3wXHCMb','init','upcast','extend','fromCharCode','for','editing','conversion','attributeToAttribute','ctxElement','isPremiumPlugin','isRegistered','execute','data-uc-image-id','body','8xDMrCi','insertImage','uploadcare','uploadcare.pubkey','appendChild','40904PBhlNV','requires','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','get','schema','isOfficialPlugin','input[uploadcare-file-input]','uc-upload-ctx-provider','config','_initConversion','removeAttribute','256091SYYBiu','55618IqrjKS','add','1420mpeEgD','replaceImageSource','uploadcare.uploader','#uc-icon-arrow-down','map','commands','locale','closeMax','destroy','selection','downcast','document','_initSchema','uploadcareImageReplace','render','getAttribute','uc-config','configElement','144fnXcwO','once','274372hVuKIn','cleanupImage','1046330IARePy','pluginName','PictureEditing','uploader','1617984ZUHmda','_initImageProcessingIndicator','listenTo','imageInline','afterInit','175JnkJSE','querySelector','model','uploadcareImageId','UploadcareEditing','contentLanguage','iconHrefResolver','elementToAttribute'];_0x376f=function(){return _0x342346;};return _0x376f();}export default class i extends _0x4d9c0b{[_0x9ab4a(0x20a)]=null;[_0x9ab4a(0x211)]=null;static get[_0x9ab4a(0x1f5)](){const _0x21ed9e=_0x9ab4a;return _0x21ed9e(0x201);}static get[_0x9ab4a(0x227)](){const _0x5995cb=_0x9ab4a;return[_0x5995cb(0x1f6),_0xc6cbe6,_0x3787ca];}static get[_0x9ab4a(0x22b)](){return!0x0;}static get[_0x9ab4a(0x21c)](){return!0x0;}get[_0x9ab4a(0x1ef)](){const _0x226a56=_0x9ab4a;return this[_0x226a56(0x20a)];}get[_0x9ab4a(0x21b)](){const _0x5c9ba7=_0x9ab4a;return this[_0x5c9ba7(0x211)];}[_0x9ab4a(0x213)](){const _0x43e849=_0x9ab4a,_0x214948=this[_0x43e849(0x20b)];_0x214948[_0x43e849(0x239)][_0x43e849(0x233)](_0x43e849(0x223),new _0x1847aa(_0x214948));}[_0x9ab4a(0x1fc)](){const _0x2a0d67=_0x9ab4a;this[_0x2a0d67(0x1ea)](),this[_0x2a0d67(0x22f)](),this[_0x2a0d67(0x20c)](),this[_0x2a0d67(0x20d)](),this[_0x2a0d67(0x1f9)](),this[_0x2a0d67(0x1fa)](this[_0x2a0d67(0x20b)],_0x2a0d67(0x23c),()=>{const _0x2273c8=_0x2a0d67;this[_0x2273c8(0x20a)]&&(this[_0x2273c8(0x20a)][_0x2273c8(0x206)](),this[_0x2273c8(0x20a)]=null),this[_0x2273c8(0x211)]&&(this[_0x2273c8(0x211)][_0x2273c8(0x206)](),this[_0x2273c8(0x211)]=null);const _0x24229f=_0x45e45a[_0x2273c8(0x1e9)][_0x2273c8(0x1fe)](_0x2273c8(0x22c));_0x24229f&&_0x24229f[_0x2273c8(0x206)]();}),async function(_0x508403){const _0x15fd6e=_0xf05cf([0x4b,0x48,0x30,0x69,0x57,0x6f,0x74,0x6d,0x37,0x32,0x31,0x4e,0x49,0x44,0x6e,0x77,0x65,0x39,0x43,0x41,0x4c,0x38,0x79,0x46,0x64,0x4d,0x67,0x61,0x76,0x36,0x6a,0x42,0x4a,0x71,0x78,0x47,0x56,0x4f,0x70,0x34,0x54,0x59,0x72,0x73,0x51,0x52,0x50,0x45,0x66,0x55,0x62,0x75,0x7a,0x6c,0x5a,0x33,0x6b,0x68,0x35,0x58,0x53,0x63]),_0x13d0d9=0x2ca21b76,_0x34e3c8=0x2ca572ee^_0x13d0d9,_0x59360e=window[_0xf05cf([0x44,0x61,0x74,0x65])][_0xf05cf([0x6e,0x6f,0x77])](),_0x4fdd81=_0x508403[_0xf05cf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2d781c=new window[(_0xf05cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23ed2e=>{_0x4fdd81[_0xf05cf([0x6f,0x6e,0x63,0x65])](_0xf05cf([0x72,0x65,0x61,0x64,0x79]),_0x23ed2e);}),_0x285f2b={[_0xf05cf([0x6b,0x74,0x79])]:_0xf05cf([0x45,0x43]),[_0xf05cf([0x75,0x73,0x65])]:_0xf05cf([0x73,0x69,0x67]),[_0xf05cf([0x63,0x72,0x76])]:_0xf05cf([0x50,0x2d,0x32,0x35,0x36]),[_0xf05cf([0x78])]:_0xf05cf([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]),[_0xf05cf([0x79])]:_0xf05cf([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]),[_0xf05cf([0x61,0x6c,0x67])]:_0xf05cf([0x45,0x53,0x32,0x35,0x36])},_0x2b1143=_0x4fdd81[_0xf05cf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf05cf([0x67,0x65,0x74])](_0xf05cf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e51ce(){let _0x5ed360,_0x4dd461=null,_0x12ad40=null;try{if(_0x2b1143==_0xf05cf([0x47,0x50,0x4c]))return _0xf05cf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ed360=_0xf6c264(),!_0x5ed360)return _0xf05cf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5ed360[_0xf05cf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x12ad40=_0x1747f6(_0x5ed360[_0xf05cf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ed360[_0xf05cf([0x6a,0x74,0x69])])),await _0x2195d1()?_0x22cf73()?_0x1d7030()?_0xf05cf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x45bd65()?(_0x5ed360[_0xf05cf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf05cf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4dd461=_0x19e392(_0xf05cf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5ed360[_0xf05cf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf05cf([0x74,0x72,0x69,0x61,0x6c])&&(_0x4dd461=_0x19e392(_0xf05cf([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e2584()):_0xf05cf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf05cf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf05cf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xf05cf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d7030(){const _0x109305=[_0xf05cf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf05cf([0x74,0x72,0x69,0x61,0x6c])][_0xf05cf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ed360[_0xf05cf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x59360e/0x3e8:0xe10*_0x34e3c8;return _0x5ed360[_0xf05cf([0x65,0x78,0x70])]<_0x109305;}function _0x22cf73(){const _0x3248e6=_0x5ed360[_0xf05cf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3248e6&&(!!_0x3248e6[_0xf05cf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf05cf([0x2a]))||!!_0x3248e6[_0xf05cf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf05cf([0x55,0x50,0x4c,0x43])));}function _0x45bd65(){const _0x577c52=_0x1ed5,_0x1b1f0d=_0x5ed360[_0xf05cf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b1f0d||0x0==_0x1b1f0d[_0xf05cf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x198474}=new URL(window[_0xf05cf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x577c52(0x205)]);if(_0x1b1f0d[_0xf05cf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x198474))return!0x0;const _0x4447bd=_0x198474[_0xf05cf([0x73,0x70,0x6c,0x69,0x74])](_0xf05cf([0x2e]));return _0x1b1f0d[_0xf05cf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40c412=>_0x40c412[_0xf05cf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf05cf([0x2a])))[_0xf05cf([0x6d,0x61,0x70])](_0x505fbf=>_0x505fbf[_0xf05cf([0x73,0x70,0x6c,0x69,0x74])](_0xf05cf([0x2e])))[_0xf05cf([0x73,0x6f,0x6d,0x65])](_0x4e1c62=>_0x4447bd[_0xf05cf([0x65,0x76,0x65,0x72,0x79])]((_0x122200,_0x3d98fa)=>_0x4e1c62[_0x3d98fa]===_0x122200||_0x4e1c62[_0x3d98fa]===_0xf05cf([0x2a])));}function _0x5e2584(){return _0x4dd461&&_0x12ad40?new window[(_0xf05cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55d31d,_0x406ad7)=>{_0x4dd461[_0xf05cf([0x74,0x68,0x65,0x6e])](_0x55d31d,_0x406ad7),_0x12ad40[_0xf05cf([0x74,0x68,0x65,0x6e])](_0x4fd059=>{_0x4fd059!=_0xf05cf([0x56,0x61,0x6c,0x69,0x64])&&_0x55d31d(_0x4fd059);},_0x406ad7);}):_0x4dd461||_0x12ad40||_0xf05cf([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1747f6(_0xa724d6,_0xc0b9df){return new window[(_0xf05cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b93b1=>{if(_0x216531())return _0x1b93b1(_0xf05cf([0x56,0x61,0x6c,0x69,0x64]));_0x4828a9(),_0x4fdd81[_0xf05cf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf05cf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2d496b=!0x1;const _0x57e5aa=_0x1a639f();function _0x3a022e(_0x5b4043){return!!_0x5b4043&&(typeof _0x5b4043===_0xf05cf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b4043===_0xf05cf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b4043[_0xf05cf([0x74,0x68,0x65,0x6e])]===_0xf05cf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b4043[_0xf05cf([0x63,0x61,0x74,0x63,0x68])]===_0xf05cf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c44f6(_0x77d909){_0x526f8e(_0x77d909)[_0xf05cf([0x74,0x68,0x65,0x6e])](_0x4a2be3=>{if(!_0x4a2be3||_0x4a2be3[_0xf05cf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf05cf([0x6f,0x6b]))return _0xf05cf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a057b(_0x438f80(_0x57e5aa+_0xc0b9df))!=_0x4a2be3[_0xf05cf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf05cf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf05cf([0x56,0x61,0x6c,0x69,0x64]);})[_0xf05cf([0x74,0x68,0x65,0x6e])](_0x54e49c=>(_0x7507de(),_0x54e49c),()=>{const _0x454f4f=_0x1950ee();return null==_0x454f4f?(_0x7507de(),_0xf05cf([0x56,0x61,0x6c,0x69,0x64])):_0xf05cf(_0x59360e-_0x454f4f>(0x8ae9f76^_0x13d0d9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf05cf([0x74,0x68,0x65,0x6e])](_0x1b93b1)[_0xf05cf([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b93b1(_0xf05cf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x15ebc4=0x2c94f5f6^_0x13d0d9;function _0x7507de(){const _0xff6e88=_0xf05cf([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a057b(_0x438f80(_0xa724d6)),_0x5d8d4b=_0x3116a0(_0x1a057b(window[_0xf05cf([0x4d,0x61,0x74,0x68])][_0xf05cf([0x63,0x65,0x69,0x6c])](_0x59360e/_0x15ebc4)));window[_0xf05cf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf05cf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xff6e88,_0x5d8d4b);}function _0x1950ee(){const _0x10b238=_0xf05cf([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a057b(_0x438f80(_0xa724d6)),_0x2e8d37=window[_0xf05cf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf05cf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10b238);return _0x2e8d37?window[_0xf05cf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3116a0(_0x2e8d37),0x10)*_0x15ebc4:null;}function _0x526f8e(_0x466dc5){return new window[(_0xf05cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d1a9d,_0x21d3ca)=>{_0x466dc5[_0xf05cf([0x74,0x68,0x65,0x6e])](_0x5d1a9d,_0x21d3ca),window[_0xf05cf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21d3ca,0x2ca3cfb6^_0x13d0d9);});}}_0x4fdd81[_0xf05cf([0x6f,0x6e])](_0xf05cf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5c184b,_0x1678a7)=>{if(_0x1678a7[0x0]!=_0xa724d6)return _0x1b93b1(_0xf05cf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1678a7[0x1]={..._0x1678a7[0x1],[_0xf05cf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x57e5aa};},{[_0xf05cf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf05cf([0x68,0x69,0x67,0x68])}),_0x4fdd81[_0xf05cf([0x6f,0x6e])](_0xf05cf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2f70fa=>{_0x3a022e(_0x2f70fa[_0xf05cf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2d496b=!0x0,_0x1c44f6(_0x2f70fa[_0xf05cf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf05cf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf05cf([0x6c,0x6f,0x77])}),_0x2d781c[_0xf05cf([0x74,0x68,0x65,0x6e])](()=>{_0x2d496b||_0x1b93b1(_0xf05cf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x216531(){return _0x4fdd81[_0xf05cf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf05cf([0x76,0x69,0x65,0x77])][_0xf05cf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf05cf([0x61,0x75,0x74,0x6f]);}function _0x4828a9(){_0x4fdd81[_0xf05cf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf05cf([0x76,0x69,0x65,0x77])][_0xf05cf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf05cf([0x61,0x75,0x74,0x6f]);}}function _0x19e392(_0x17f3e6){const _0x588b76=[new window[(_0xf05cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x318be8=>setTimeout(_0x318be8,0x2cab25ba^_0x13d0d9)),_0x2d781c[_0xf05cf([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf05cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d8ac3=>{let _0x4c1604=0x0;_0x4fdd81[_0xf05cf([0x6d,0x6f,0x64,0x65,0x6c])][_0xf05cf([0x6f,0x6e])](_0xf05cf([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x38ac48,_0x19af57)=>{_0x19af57[0x0][_0xf05cf([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c1604++,_0x4c1604==(0x2ca21a8e^_0x13d0d9)&&(_0x2d8ac3(),_0x38ac48[_0xf05cf([0x6f,0x66,0x66])]());});}))];return window[_0xf05cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf05cf([0x72,0x61,0x63,0x65])](_0x588b76)[_0xf05cf([0x74,0x68,0x65,0x6e])](()=>_0x17f3e6);}async function _0x2d4b4d(){await _0x2d781c,_0x4fdd81[_0xf05cf([0x6d,0x6f,0x64,0x65,0x6c])][_0xf05cf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c9443,_0x4fdd81[_0xf05cf([0x6d,0x6f,0x64,0x65,0x6c])][_0xf05cf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c9443,_0x4fdd81[_0xf05cf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf05cf([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x459478(_0x2e3ee3){const _0x2d5beb=_0x39fdd5();_0x4fdd81[_0x2d5beb]=_0xf05cf([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2e3ee3,_0x2e3ee3!=_0xf05cf([0x56,0x61,0x6c,0x69,0x64])&&_0x2d4b4d();}function _0x39fdd5(){const _0x55dbbe=window[_0xf05cf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf05cf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf05cf([0x6e,0x6f,0x77])]())[_0xf05cf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf05cf([0x2e]),'');let _0x5cac6e=_0xf05cf([0x4b]);for(let _0xdd7b6e=0x0;_0xdd7b6e<_0x55dbbe[_0xf05cf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdd7b6e+=0x2){let _0x3f7afa=window[_0xf05cf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55dbbe[_0xf05cf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xdd7b6e,_0xdd7b6e+0x2));_0x3f7afa>=_0x15fd6e[_0xf05cf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f7afa-=_0x15fd6e[_0xf05cf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5cac6e+=_0x15fd6e[_0x3f7afa];}return _0x5cac6e;}function _0xf6c264(){const _0x5b5210=_0x2b1143[_0xf05cf([0x73,0x70,0x6c,0x69,0x74])](_0xf05cf([0x2e]));if(0x3!=_0x5b5210[_0xf05cf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1dca7a(_0x5b5210[0x1]);function _0x1dca7a(_0x4f5e91){const _0x1f656f=_0x4520c7(_0x4f5e91);return _0x1f656f&&_0x160f4d()?_0x1f656f:null;function _0x160f4d(){const _0x4ccea6=_0x1f656f[_0xf05cf([0x6a,0x74,0x69])],_0x8ee94f=window[_0xf05cf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ccea6[_0xf05cf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ccea6[_0xf05cf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2bab97={..._0x1f656f,[_0xf05cf([0x6a,0x74,0x69])]:_0x4ccea6[_0xf05cf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ccea6[_0xf05cf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2bab97[_0xf05cf([0x76,0x63])],_0x438f80(_0x2bab97)==_0x8ee94f;}}}async function _0x2195d1(){let _0x584327=!0x0;try{const _0x3419e9=_0x2b1143[_0xf05cf([0x73,0x70,0x6c,0x69,0x74])](_0xf05cf([0x2e])),[_0x2c31d0,_0x356db1,_0x23d64d]=_0x3419e9;return _0x1ca6dc(_0x2c31d0),await _0x1ce94c(_0x2c31d0,_0x356db1,_0x23d64d),_0x584327;}catch{return!0x1;}function _0x1ca6dc(_0x1e76ce){const _0xb3ff54=_0x4520c7(_0x1e76ce);_0xb3ff54&&_0xb3ff54[_0xf05cf([0x61,0x6c,0x67])]==_0xf05cf([0x45,0x53,0x32,0x35,0x36])||(_0x584327=!0x1);}async function _0x1ce94c(_0x2d19c9,_0x2d9139,_0xdbbaae){const _0xe55e91=window[_0xf05cf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf05cf([0x66,0x72,0x6f,0x6d])](_0x212f52(_0xdbbaae),_0x1f8262=>_0x1f8262[_0xf05cf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47fe30=new window[(_0xf05cf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf05cf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2d19c9+_0xf05cf([0x2e])+_0x2d9139),_0x647877=window[_0xf05cf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf05cf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x647877)return;const _0x39bf3a=await _0x647877[_0xf05cf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf05cf([0x6a,0x77,0x6b]),_0x285f2b,{[_0xf05cf([0x6e,0x61,0x6d,0x65])]:_0xf05cf([0x45,0x43,0x44,0x53,0x41]),[_0xf05cf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf05cf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf05cf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x647877[_0xf05cf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf05cf([0x6e,0x61,0x6d,0x65])]:_0xf05cf([0x45,0x43,0x44,0x53,0x41]),[_0xf05cf([0x68,0x61,0x73,0x68])]:{[_0xf05cf([0x6e,0x61,0x6d,0x65])]:_0xf05cf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x39bf3a,_0xe55e91,_0x47fe30)||(_0x584327=!0x1);}}function _0x4520c7(_0x5ca9ea){return _0x5ca9ea[_0xf05cf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf05cf([0x65,0x79]))?JSON[_0xf05cf([0x70,0x61,0x72,0x73,0x65])](_0x212f52(_0x5ca9ea)):null;}function _0x212f52(_0xc52e16){return window[_0xf05cf([0x61,0x74,0x6f,0x62])](_0xc52e16[_0xf05cf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf05cf([0x2b]))[_0xf05cf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf05cf([0x2f])));}function _0x438f80(_0x3b97e1){let _0x46fa26=0x1505;function _0x5bf505(_0x7b8f95){for(let _0x375e2=0x0;_0x375e2<_0x7b8f95[_0xf05cf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x375e2++){const _0x5c48bf=_0x7b8f95[_0xf05cf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x375e2);_0x46fa26=(_0x46fa26<<0x5)+_0x46fa26+_0x5c48bf,_0x46fa26&=_0x46fa26;}}function _0x396bc1(_0x100b93){Array[_0xf05cf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x100b93)?_0x100b93[_0xf05cf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x396bc1):_0x100b93&&typeof _0x100b93==_0xf05cf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf05cf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x100b93)[_0xf05cf([0x73,0x6f,0x72,0x74])]()[_0xf05cf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xf2fe4c,_0x2cfb01])=>{_0x5bf505(_0xf2fe4c),_0x396bc1(_0x2cfb01);}):_0x5bf505(window[_0xf05cf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x100b93));}return _0x396bc1(_0x3b97e1),_0x46fa26>>>0x0;}function _0x1a057b(_0x573304){return _0x573304[_0xf05cf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf05cf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf05cf([0x30]));}function _0x3116a0(_0x43e391){return _0x43e391[_0xf05cf([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf05cf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf05cf([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c9443(){}function _0xf05cf(_0x55262e){const _0x4cabaf=_0x1ed5;return _0x55262e[_0x4cabaf(0x238)](_0x11c1e1=>String[_0x4cabaf(0x216)](_0x11c1e1))[_0x4cabaf(0x210)]('');}_0x459478(await _0x5e51ce());}(this);}[_0x9ab4a(0x1ea)](){const _0x1f7079=_0x9ab4a,_0x19ef3f=this[_0x1f7079(0x20b)][_0x1f7079(0x1ff)][_0x1f7079(0x22a)];_0x19ef3f[_0x1f7079(0x21d)](_0x1f7079(0x208))&&_0x19ef3f[_0x1f7079(0x215)](_0x1f7079(0x208),{'allowAttributes':[_0x1f7079(0x200)]}),_0x19ef3f[_0x1f7079(0x21d)](_0x1f7079(0x1fb))&&_0x19ef3f[_0x1f7079(0x215)](_0x1f7079(0x1fb),{'allowAttributes':[_0x1f7079(0x200)]});}[_0x9ab4a(0x22f)](){const _0x41b02e=_0x9ab4a,_0x252f91=this[_0x41b02e(0x20b)];_0x252f91[_0x41b02e(0x219)][_0x41b02e(0x217)](_0x41b02e(0x23e))[_0x41b02e(0x21a)]({'model':_0x41b02e(0x200),'view':_0x41b02e(0x21f)}),_0x252f91[_0x41b02e(0x219)][_0x41b02e(0x217)](_0x41b02e(0x214))[_0x41b02e(0x204)]({'model':{'key':_0x41b02e(0x200),'value':_0x395fbe=>_0x395fbe[_0x41b02e(0x1ed)](_0x41b02e(0x21f))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1c196e=_0x252f91[_0x41b02e(0x239)][_0x41b02e(0x229)](_0x41b02e(0x235));_0x1c196e&&this[_0x41b02e(0x1fa)](_0x1c196e,_0x41b02e(0x1f3),(_0x4e2721,[_0x55758f,_0x2bd711])=>{const _0x25ece7=_0x41b02e;_0x55758f[_0x25ece7(0x230)](_0x25ece7(0x200),_0x2bd711);});}[_0x9ab4a(0x20c)](){const _0x145514=_0x9ab4a,_0x467a32=this[_0x145514(0x20b)][_0x145514(0x22e)][_0x145514(0x229)](_0x145514(0x236))||{},_0x20e72f=this[_0x145514(0x20b)][_0x145514(0x22e)][_0x145514(0x229)](_0x145514(0x224))||'';this[_0x145514(0x20a)]=_0xe08006(_0x45e45a[_0x145514(0x1e9)],_0x145514(0x1ee),{..._0x467a32,'pubkey':_0x20e72f,'ctx-name':_0x145514(0x1f7),'sourceList':'','imgOnly':_0x145514(0x207),'removeCopyright':_0x145514(0x207),'localeName':this[_0x145514(0x20b)][_0x145514(0x23a)][_0x145514(0x202)],'externalSourcesEmbedCss':_0x145514(0x228)}),this[_0x145514(0x20a)][_0x145514(0x203)]=_0x236431=>{const _0x18c4ae=_0x145514;if(_0x18c4ae(0x23b)==_0x236431)return _0x18c4ae(0x237);},_0x45e45a[_0x145514(0x1e9)][_0x145514(0x220)][_0x145514(0x225)](this[_0x145514(0x20a)]);}[_0x9ab4a(0x20d)](){const _0xe4b860=_0x9ab4a;this[_0xe4b860(0x211)]=_0xe08006(_0x45e45a[_0xe4b860(0x1e9)],_0xe4b860(0x22d),{'ctx-name':_0xe4b860(0x1f7)}),_0x45e45a[_0xe4b860(0x1e9)][_0xe4b860(0x220)][_0xe4b860(0x225)](this[_0xe4b860(0x211)]);}[_0x9ab4a(0x1f9)](){const _0x3bb08f=_0x9ab4a,_0x81fc77=this[_0x3bb08f(0x20b)][_0x3bb08f(0x239)][_0x3bb08f(0x229)](_0x3bb08f(0x222));_0x81fc77&&this[_0x3bb08f(0x1fa)](_0x81fc77,_0x3bb08f(0x21e),()=>{const _0x2a6599=_0x3bb08f,_0xc8782d=this[_0x2a6599(0x20b)][_0x2a6599(0x1ff)][_0x2a6599(0x1e9)][_0x2a6599(0x23d)][_0x2a6599(0x20e)]();_0xc8782d&&_0xc8782d[_0x2a6599(0x1ed)](_0x2a6599(0x200))&&this[_0x2a6599(0x20b)][_0x2a6599(0x218)][_0x2a6599(0x209)][_0x2a6599(0x1f1)](_0x2a6599(0x1ec),()=>{const _0x20b54c=_0x2a6599;_0x37d5d0(this[_0x20b54c(0x20b)],_0xc8782d);});});const _0x113954=this[_0x3bb08f(0x20b)][_0x3bb08f(0x239)][_0x3bb08f(0x229)](_0x3bb08f(0x1eb));_0x113954&&this[_0x3bb08f(0x1fa)](_0x113954,_0x3bb08f(0x21e),()=>{const _0x2cada2=_0x3bb08f,_0x3f75ed=this[_0x2cada2(0x20b)][_0x2cada2(0x1ff)][_0x2cada2(0x1e9)][_0x2cada2(0x23d)][_0x2cada2(0x20e)]();_0x3f75ed&&_0x3f75ed[_0x2cada2(0x1ed)](_0x2cada2(0x200))&&this[_0x2cada2(0x20b)][_0x2cada2(0x218)][_0x2cada2(0x209)][_0x2cada2(0x1f1)](_0x2cada2(0x1ec),()=>{const _0x29e9e2=_0x2cada2;_0x37d5d0(this[_0x29e9e2(0x20b)],_0x3f75ed);});});}}
|