@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250501.0 → 0.0.0-nightly-20250502.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 _0x2ce6e9,Command as _0x2c91d4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x46cc72,IconGooglePhotos as _0x4f330e,IconGoogleDrive as _0x51d864,IconFacebook as _0x729aca,IconDropbox as _0x341bb1,IconUploadcareLink as _0x5dcc25,IconUploadcareImageUpload as _0x3ee2fa,IconError as et,IconUploadcareImageEdit as _0x2b9487}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x595a9c,MenuBarMenuListItemButtonView as _0x260a60,View as _0x52d5a5,FocusCycler as _0x4aa877,Dialog as _0xb26418,DialogViewPosition as _0x13a466,SpinnerView as _0x3e3f9d,IconView as at,Notification as _0x219423}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x46d91b,DomEmitterMixin as _0x2feabc,global as _0x493f5e,getAncestors as _0x105941,ObservableMixin as _0x1dc02b,createElement as _0x325d07,uid as _0x366936}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xff2905}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5b641d,info as _0x255ab}from'@uploadcare/upload-client';import*as _0x4c8d4c from'@uploadcare/file-uploader';var o=function(_0x4948f3){return _0x4948f3['Local']='local',_0x4948f3['URL']='url',_0x4948f3['Dropbox']='dropbox',_0x4948f3['GDrive']='gdrive',_0x4948f3['Facebook']='facebook',_0x4948f3['GPhotos']='gphotos',_0x4948f3['OneDrive']='onedrive',_0x4948f3;}({});function _(_0x403529,_0x1f28d6,_0x3a42f7){const t=_0x403529['t'],_0x9e0f18=_0x403529['t'];switch(_0x1f28d6){case o['Local']:return{'text':_0x9e0f18('Insert'===_0x3a42f7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x9e0f18('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x3a42f7?_0x9e0f18('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x9e0f18('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x3a42f7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x3a42f7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x3a42f7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x3a42f7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x3a42f7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1f28d6;}}class e extends _0x2ce6e9{['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 _0x1fd255=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xac4607;for(const _0x1aea66 in _0x1fd255){const _0x28ae30=_0x1aea66,_0x140f15=_0x1fd255[_0x28ae30];if('uploadcareLicenseKeyValid'==_0x140f15||'uploadcareLicenseKeyInvalid'==_0x140f15||'uploadcareLicenseKeyExpired'==_0x140f15||'uploadcareLicenseKeyDomainLimit'==_0x140f15||'uploadcareLicenseKeyNotAllowed'==_0x140f15||'uploadcareLicenseKeyEvaluationLimit'==_0x140f15||'uploadcareLicenseKeyTrialLimit'==_0x140f15||'uploadcareLicenseKeyUsageLimit'==_0x140f15){delete _0x1fd255[_0x28ae30],_0xac4607=_0x140f15,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xac4607&&_0x1fd255['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xac4607&&_0x1fd255['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xac4607&&_0x1fd255['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xac4607&&_0x1fd255['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xac4607&&_0x1fd255['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xac4607&&_0x1fd255['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xac4607&&_0x1fd255['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x59758c}=this,_0x4b0f47=_0x59758c['commands']['get']('uploadcare');if(!_0x4b0f47)return;const _0x39bfd6=this['_normalizeConfigSourceList'](_0x59758c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x291eff,_0x209fac)=>{const _0x4780c9=this['_getIntegrationKey'](_0x209fac['type']);return _0x291eff[_0x4780c9]||(_0x291eff[_0x4780c9]=[]),_0x291eff[_0x4780c9]['push'](_0x209fac),_0x291eff;},{});_0x59758c['plugins']['has']('ImageInsertUI')&&_0x59758c['commands']['get']('uploadcare')&&Object['entries'](_0x39bfd6)['forEach'](([_0x40dba7,_0x43264b])=>{_0x59758c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x40dba7,'observable':()=>_0x4b0f47,'buttonViewCreator':()=>this['_createToolbarButton'](_0x43264b),'formViewCreator':()=>this['_createDropdownButtons'](_0x43264b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x43264b),'override':'assetManager'!==_0x40dba7});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x332c3b){const {locale:_0x418b30}=this['editor'];return _0x332c3b['map'](_0x1850f4=>{const _0x2b5f28=_(_0x418b30,_0x1850f4,'Insert');switch(_0x1850f4){case o['Local']:return{'icon':_0x3ee2fa,'type':o['Local'],..._0x2b5f28};case o['URL']:return{'icon':_0x5dcc25,'type':o['URL'],..._0x2b5f28};case o['Dropbox']:return{'icon':_0x341bb1,'type':o['Dropbox'],..._0x2b5f28};case o['Facebook']:return{'icon':_0x729aca,'type':o['Facebook'],..._0x2b5f28};case o['GDrive']:return{'icon':_0x51d864,'type':o['GDrive'],..._0x2b5f28};case o['GPhotos']:return{'icon':_0x4f330e,'type':o['GPhotos'],..._0x2b5f28};case o['OneDrive']:return{'icon':_0x46cc72,'type':o['OneDrive'],..._0x2b5f28};}});}['_getIntegrationKey'](_0x17e32){switch(_0x17e32){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x24495a,_0x15ee37){const _0x42671d=this['editor'],_0x89800=new _0x24495a(_0x42671d['locale']),_0x44b5d0=_0x42671d['commands']['get']('uploadcare');return _0x89800['bind']('isEnabled')['to'](_0x44b5d0),_0x89800['on']('execute',()=>{_0x44b5d0['execute'](_0x15ee37);}),_0x89800;}['_createToolbarButton'](_0x22a8bf){const {locale:_0x542e04}=this['editor'],_0x423404=this['editor']['plugins']['get']('ImageInsertUI'),_0x35bca8=_0x22a8bf[0x0],_0x24d575=this['_createButton'](_0x595a9c,_0x35bca8['type']);return _0x24d575['icon']=_0x35bca8['icon'],_0x24d575['bind']('label')['to'](_0x423404,'isImageSelected',_0x533a49=>_(_0x542e04,_0x35bca8['type'],_0x533a49?'Replace':'Insert')['text']),_0x24d575['tooltip']=!0x0,_0x24d575;}['_createDropdownButtons'](_0xe67a37){const {locale:_0x412db1}=this['editor'],_0x260518=this['editor']['plugins']['get']('ImageInsertUI');return _0xe67a37['map'](_0x2a2c1e=>{const _0x1ec187=this['_createButton'](_0x595a9c,_0x2a2c1e['type']);return _0x1ec187['withText']=!0x0,_0x1ec187['icon']=_0x2a2c1e['icon'],_0x1ec187['bind']('label')['to'](_0x260518,'isImageSelected',_0x49c1de=>_(_0x412db1,_0x2a2c1e['type'],_0x49c1de?'Replace':'Insert')['text']),_0x1ec187;});}['_createMenuBarButtons'](_0x75b752){return _0x75b752['map'](_0x522a00=>{const _0x43da39=this['_createButton'](_0x260a60,_0x522a00['type']);return _0x43da39['icon']=_0x522a00['icon'],_0x43da39['label']=_0x522a00['shortText'],_0x43da39;});}}class q extends _0x52d5a5{['focusTracker'];['focusCycler'];constructor(_0x3b943a){super(_0x3b943a),this['focusTracker']=new _0x46d91b(),this['focusCycler']=new _0x4aa877({'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(_0x3667b9){super(_0x3667b9),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(_0x4520b3,_0x21bdb1){const _0x1db3a4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x173edd=>_0x173edd<=_0x21bdb1)['map'](_0x102796=>_0x4520b3['replace'](/\/$/,'')+'/-/resize/'+_0x102796+'x/\x20'+_0x102796+'w');return{'imageFallbackUrl':_0x4520b3,'imageSources':[{'srcset':_0x1db3a4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x21bdb1+'px)\x20100vw,\x20'+_0x21bdb1+'px','type':'image/webp'}]};}function A(_0xcd1c4b,_0x27493a,_0x57419f){const _0x121057=_0xcd1c4b['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x121057?parseInt(_0x121057[0x1],0xa):_0x27493a,'height':_0x121057?parseInt(_0x121057[0x2],0xa):_0x57419f};}function m(_0x3115a4,_0xf04645){const _0x4e9424=Object['create'](_0x2feabc),_0x34782e=_0x3115a4['plugins']['get']('ImageUtils'),_0x4250b7=_0x3115a4['editing']['mapper']['toViewElement'](_0xf04645),_0x33b3a1=_0x34782e['findViewImgElement'](_0x4250b7),_0x2cefd6=_0x3115a4['editing']['view']['domConverter']['viewToDom'](_0x33b3a1),_0x4e3d42=_0xf04645['getAttribute']('width'),_0x2f692e=_0xf04645['getAttribute']('height'),_0x1b3d2a='image-processing';_0x3115a4['editing']['view']['change'](_0x353315=>{_0x353315['addClass'](_0x1b3d2a,_0x4250b7),_0x353315['setStyle']('aspect-ratio',_0x4e3d42+'/'+_0x2f692e,_0x33b3a1);}),_0x4e9424['listenTo'](_0x2cefd6,'load',()=>{_0x4e9424['stopListening'](_0x2cefd6,'load'),_0x3115a4['editing']['view']['change'](_0x52b492=>{_0x52b492['removeClass'](_0x1b3d2a,_0x4250b7),_0x52b492['removeStyle']('aspect-ratio',_0x33b3a1);});});}function V(_0xb771f8){if(Array['isArray'](_0xb771f8)){const _0x59787c=_0xb771f8['map'](V);return _0x44efdb=>_0x59787c['some'](_0x336070=>_0x336070(_0x44efdb));}if('origin'==_0xb771f8){const _0x1a5ca5=_0x493f5e['window']['location']['origin'];return _0x132332=>new URL(_0x132332,_0x493f5e['document']['baseURI'])['origin']==_0x1a5ca5;}return'function'==typeof _0xb771f8?_0xb771f8:_0xb771f8 instanceof RegExp?_0x5c2524=>!(!_0x5c2524['match'](_0xb771f8)&&!_0x5c2524['replace'](/^https?:\/\//,'')['match'](_0xb771f8)):()=>!0x1;}function F(_0x1cec59,_0x534ce1){return _0x105941(_0x1cec59['target'])['includes'](_0x534ce1);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x1dc02b(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x466e5c,_0x28cb83,_0x3c2f26){super(),this['_editor']=_0x466e5c,this['_editing']=_0x28cb83,this['_dialog']=_0x466e5c['plugins']['get'](_0xb26418),this['_api']=_0x28cb83['ctxElement']['getAPI'](),this['_type']=_0x3c2f26,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:_0x2e19d5,model:_0x4b3a03}=this['_editor'],_0x5e323b=_0x4b3a03['document']['selection']['getSelectedElement'](),_0x32c1ac=_0x5e323b&&(_0x5e323b['is']('element','imageBlock')||_0x5e323b['is']('element','imageInline'));this['_formView']=new S(_0x2e19d5),this['_dialog']['show']({'id':'uploadCare','icon':_0x3ee2fa,'title':_(_0x2e19d5,this['_type'],_0x32c1ac?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x13a466['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xab4c85=>!F(_0xab4c85,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4d76f1}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2ed0aa=>{const _0x49f1ea=_0x4d76f1['length'];for(const _0x1e185b of _0x4d76f1){const _0xa88fad=_0x1e185b===_0x4d76f1[_0x49f1ea-0x1],{cdnUrl:_0x2afa4f,fileInfo:_0x4a8643}=_0x1e185b;if(!_0x2afa4f||!_0x4a8643)continue;const {width:_0x52b1cd,height:_0x35870f}=_0x4a8643['imageInfo'],_0x4fe576=A(_0x2afa4f,_0x52b1cd,_0x35870f),_0x17dd6c=E(_0x2afa4f,_0x4fe576['width']),_0x3654cd={'id':_0x4a8643['uuid'],'type':'image','attributes':{'imageDimension':_0x4fe576,..._0x17dd6c}};this['_insertAsset'](_0x3654cd,_0xa88fad,_0x2ed0aa);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5b87e7=>{'idle'===_0x5b87e7['detail']['status']&&!_0x5b87e7['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x164e6d,_0x5d213f,_0x66ef0a){const _0x31082d=this['_editor']['model']['document']['selection'],_0x187793=_0x31082d['getSelectedElement'](),_0x145b31=!(!_0x187793||!_0x187793['is']('element','imageInline'));_0x66ef0a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x164e6d,_0x145b31),_0x5d213f||_0x66ef0a['setSelection'](_0x31082d['getLastPosition']());}['_insertImage'](_0x2ec4a3,_0x5ad560){const _0xab96c7=this['_editor'],{imageDimension:_0xfa5de,imageFallbackUrl:_0xa669fe,imageSources:_0xa6fc91}=_0x2ec4a3['attributes'];_0xab96c7['execute']('insertImage',{'imageType':_0x5ad560?'imageInline':null,'source':{'uploadcareImageId':_0x2ec4a3['id'],'src':_0xa669fe,'sources':_0xa6fc91,..._0xfa5de}});}}class n extends _0x2c91d4{['_editing'];['_controller']=null;static get['requires'](){return[_0xb26418,i];}constructor(_0x2eb6ae){super(_0x2eb6ae),this['_editing']=_0x2eb6ae['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2b5f6c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x2b5f6c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x231720,publicKey:_0x4cdebb,signal:_0x4068b3,onProgress:_0x2fde1b}){return _0x5b641d(_0x231720,{'publicKey':_0x4cdebb,'store':'auto','signal':_0x4068b3,'onProgress':_0x2fde1b});}static['getInfo'](_0x4b96d9,_0x3ea6f3){return _0x255ab(_0x4b96d9,_0x3ea6f3);}}class p extends _0x2ce6e9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xff2905,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2ec06f=this['editor'];if(!!!_0x2ec06f['config']['get']('uploadcare'))return;_0x2ec06f['plugins']['get'](_0xff2905)['createUploadAdapter']=_0x4cab38=>new x(_0x4cab38,_0x2ec06f),_0x2ec06f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x378d59,{imageElement:_0x37971a,data:_0x5b126f})=>{_0x2ec06f['model']['change'](_0x2e6fe6=>{_0x2e6fe6['setAttribute']('uploadcareImageId',_0x5b126f['uploadcareImageId'],_0x37971a);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x21fa13,_0x4a1ef1){this['loader']=_0x21fa13,this['editor']=_0x4a1ef1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4aa217=this['editor']['config']['get']('uploadcare.pubkey'),_0x1963c6=await this['loader']['file'];return C['upload']({'file':_0x1963c6,'publicKey':_0x4aa217,'signal':this['controller']['signal'],'onProgress':_0x1f7cf0=>{_0x1f7cf0&&_0x1f7cf0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1f7cf0['value']);}})['then'](async _0x14b008=>{const {imageFallbackUrl:_0x487c59,imageSources:_0x51d06c}=E(_0x14b008['cdnUrl'],_0x14b008['imageInfo']['width']);return{'uploadcareImageId':_0x14b008['uuid'],'default':_0x487c59,'sources':_0x51d06c};})['catch'](()=>{const _0x22fd8e=t('Cannot\x20upload\x20file:')+('\x20'+_0x1963c6['name']+'.');return Promise['reject'](_0x22fd8e);});}['abort'](){this['controller']['abort']();}}class i extends _0x2ce6e9{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0xb26418];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x349739=this['editor'];_0x349739['commands']['add']('uploadcare',new n(_0x349739));}['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 _0x58ef2d=_0x493f5e['document']['querySelector']('input[uploadcare-file-input]');_0x58ef2d&&_0x58ef2d['remove']();}),async function(_0x3a5e0a){const _0x23a3af=_0x41b776([0x6d,0x37,0x68,0x63,0x62,0x39,0x72,0x32,0x4c,0x53,0x76,0x6f,0x43,0x30,0x69,0x58,0x59,0x34,0x46,0x64,0x78,0x41,0x61,0x50,0x5a,0x48,0x45,0x33,0x35,0x4e,0x38,0x75,0x7a,0x4d,0x4f,0x67,0x51,0x54,0x71,0x66,0x56,0x36,0x42,0x31,0x6a,0x73,0x55,0x44,0x52,0x4a,0x70,0x6b,0x49,0x47,0x79,0x74,0x77,0x57,0x4b,0x65,0x6e,0x6c]),_0x903fb=0x1a06e2bb,_0x2487c4=0x1a018423^_0x903fb,_0x3295ba=window[_0x41b776([0x44,0x61,0x74,0x65])][_0x41b776([0x6e,0x6f,0x77])](),_0x4abc8f=_0x3a5e0a[_0x41b776([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fdc5f=new window[(_0x41b776([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x413ccc=>{_0x4abc8f[_0x41b776([0x6f,0x6e,0x63,0x65])](_0x41b776([0x72,0x65,0x61,0x64,0x79]),_0x413ccc);}),_0x170c78={[_0x41b776([0x6b,0x74,0x79])]:_0x41b776([0x45,0x43]),[_0x41b776([0x75,0x73,0x65])]:_0x41b776([0x73,0x69,0x67]),[_0x41b776([0x63,0x72,0x76])]:_0x41b776([0x50,0x2d,0x32,0x35,0x36]),[_0x41b776([0x78])]:_0x41b776([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]),[_0x41b776([0x79])]:_0x41b776([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]),[_0x41b776([0x61,0x6c,0x67])]:_0x41b776([0x45,0x53,0x32,0x35,0x36])},_0x437afd=_0x4abc8f[_0x41b776([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x41b776([0x67,0x65,0x74])](_0x41b776([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4d943e(){let _0x50d641,_0x427a02=null,_0xf2632a=null;try{if(_0x437afd==_0x41b776([0x47,0x50,0x4c]))return _0x41b776([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50d641=_0x1043ba(),!_0x50d641)return _0x41b776([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x50d641[_0x41b776([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf2632a=_0x41adbe(_0x50d641[_0x41b776([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50d641[_0x41b776([0x6a,0x74,0x69])])),await _0x39d0cc()?_0x263bce()?_0x2a21b3()?_0x41b776([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x31edf7()?(_0x50d641[_0x41b776([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x41b776([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x427a02=_0x29f154(_0x41b776([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x50d641[_0x41b776([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x41b776([0x74,0x72,0x69,0x61,0x6c])&&(_0x427a02=_0x29f154(_0x41b776([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x55d2b0()):_0x41b776([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x41b776([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x41b776([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x690b36){return _0x41b776([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2a21b3(){const _0x5658a0=[_0x41b776([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x41b776([0x74,0x72,0x69,0x61,0x6c])][_0x41b776([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50d641[_0x41b776([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3295ba/0x3e8:0xe10*_0x2487c4;return _0x50d641[_0x41b776([0x65,0x78,0x70])]<_0x5658a0;}function _0x263bce(){const _0x5d8ae0=_0x50d641[_0x41b776([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5d8ae0&&(!!_0x5d8ae0[_0x41b776([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41b776([0x2a]))||!!_0x5d8ae0[_0x41b776([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41b776([0x55,0x50,0x4c,0x43])));}function _0x31edf7(){const _0x3df9db=_0x50d641[_0x41b776([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3df9db||0x0==_0x3df9db[_0x41b776([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xd31c56}=new URL(window[_0x41b776([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3df9db[_0x41b776([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd31c56))return!0x0;const _0xb98c51=_0xd31c56[_0x41b776([0x73,0x70,0x6c,0x69,0x74])](_0x41b776([0x2e]));return _0x3df9db[_0x41b776([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ae706=>_0x4ae706[_0x41b776([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41b776([0x2a])))[_0x41b776([0x6d,0x61,0x70])](_0x3d3ea1=>_0x3d3ea1[_0x41b776([0x73,0x70,0x6c,0x69,0x74])](_0x41b776([0x2e])))[_0x41b776([0x73,0x6f,0x6d,0x65])](_0x1ea8ed=>_0xb98c51[_0x41b776([0x65,0x76,0x65,0x72,0x79])]((_0x2c6fc7,_0x2e31de)=>_0x1ea8ed[_0x2e31de]===_0x2c6fc7||_0x1ea8ed[_0x2e31de]===_0x41b776([0x2a])));}function _0x55d2b0(){return _0x427a02&&_0xf2632a?new window[(_0x41b776([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c35ae,_0x2654c5)=>{_0x427a02[_0x41b776([0x74,0x68,0x65,0x6e])](_0x3c35ae,_0x2654c5),_0xf2632a[_0x41b776([0x74,0x68,0x65,0x6e])](_0x10e6fb=>{_0x10e6fb!=_0x41b776([0x56,0x61,0x6c,0x69,0x64])&&_0x3c35ae(_0x10e6fb);},_0x2654c5);}):_0x427a02||_0xf2632a||_0x41b776([0x56,0x61,0x6c,0x69,0x64]);}}function _0x41adbe(_0x14b587,_0x44a400){return new window[(_0x41b776([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2918a0=>{if(_0x5d42b9())return _0x2918a0(_0x41b776([0x56,0x61,0x6c,0x69,0x64]));_0x12a543(),_0x4abc8f[_0x41b776([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x41b776([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f97dc=!0x1;const _0x18aa9a=_0x366936();function _0x571e37(_0x5557e0){return!!_0x5557e0&&(typeof _0x5557e0===_0x41b776([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5557e0===_0x41b776([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5557e0[_0x41b776([0x74,0x68,0x65,0x6e])]===_0x41b776([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5557e0[_0x41b776([0x63,0x61,0x74,0x63,0x68])]===_0x41b776([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ee229(_0x442d84){_0x41403e(_0x442d84)[_0x41b776([0x74,0x68,0x65,0x6e])](_0x127c86=>{if(!_0x127c86||_0x127c86[_0x41b776([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x41b776([0x6f,0x6b]))return _0x41b776([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5ca9e7(_0x4521de(_0x18aa9a+_0x44a400))!=_0x127c86[_0x41b776([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x41b776([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x41b776([0x56,0x61,0x6c,0x69,0x64]);})[_0x41b776([0x74,0x68,0x65,0x6e])](_0x30447b=>(_0x10871e(),_0x30447b),()=>{const _0x34bb3f=_0x37c9f5();return null==_0x34bb3f?(_0x10871e(),_0x41b776([0x56,0x61,0x6c,0x69,0x64])):_0x41b776(_0x3295ba-_0x34bb3f>(0x3e0a66bb^_0x903fb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x41b776([0x74,0x68,0x65,0x6e])](_0x2918a0)[_0x41b776([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2918a0(_0x41b776([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1af05f=0x1a300c3b^_0x903fb;function _0x10871e(){const _0x46154b=_0x41b776([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ca9e7(_0x4521de(_0x14b587)),_0x3ac9b3=_0x45f02a(_0x5ca9e7(window[_0x41b776([0x4d,0x61,0x74,0x68])][_0x41b776([0x63,0x65,0x69,0x6c])](_0x3295ba/_0x1af05f)));window[_0x41b776([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41b776([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46154b,_0x3ac9b3);}function _0x37c9f5(){const _0x14d891=_0x41b776([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ca9e7(_0x4521de(_0x14b587)),_0x3bc673=window[_0x41b776([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41b776([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14d891);return _0x3bc673?window[_0x41b776([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45f02a(_0x3bc673),0x10)*_0x1af05f:null;}function _0x41403e(_0x53625e){return new window[(_0x41b776([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d3778,_0x110845)=>{_0x53625e[_0x41b776([0x74,0x68,0x65,0x6e])](_0x5d3778,_0x110845),window[_0x41b776([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x110845,0x1a07367b^_0x903fb);});}}_0x4abc8f[_0x41b776([0x6f,0x6e])](_0x41b776([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x29ac48,_0x1a3509)=>{if(_0x1a3509[0x0]!=_0x14b587)return _0x2918a0(_0x41b776([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1a3509[0x1]={..._0x1a3509[0x1],[_0x41b776([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x18aa9a};},{[_0x41b776([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41b776([0x68,0x69,0x67,0x68])}),_0x4abc8f[_0x41b776([0x6f,0x6e])](_0x41b776([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2bcaf7=>{_0x571e37(_0x2bcaf7[_0x41b776([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f97dc=!0x0,_0x3ee229(_0x2bcaf7[_0x41b776([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x41b776([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41b776([0x6c,0x6f,0x77])}),_0x3fdc5f[_0x41b776([0x74,0x68,0x65,0x6e])](()=>{_0x2f97dc||_0x2918a0(_0x41b776([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5d42b9(){return _0x4abc8f[_0x41b776([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41b776([0x76,0x69,0x65,0x77])][_0x41b776([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x41b776([0x61,0x75,0x74,0x6f]);}function _0x12a543(){_0x4abc8f[_0x41b776([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41b776([0x76,0x69,0x65,0x77])][_0x41b776([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x41b776([0x61,0x75,0x74,0x6f]);}}function _0x29f154(_0x516bb9){const _0x3f7079=[new window[(_0x41b776([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e1466=>setTimeout(_0x3e1466,0x1a0fdc77^_0x903fb)),_0x3fdc5f[_0x41b776([0x74,0x68,0x65,0x6e])](()=>new window[(_0x41b776([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4aa017=>{let _0x555532=0x0;_0x4abc8f[_0x41b776([0x6d,0x6f,0x64,0x65,0x6c])][_0x41b776([0x6f,0x6e])](_0x41b776([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x277867,_0x5ac800)=>{_0x5ac800[0x0][_0x41b776([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x555532++,_0x555532==(0x1a06e343^_0x903fb)&&(_0x4aa017(),_0x277867[_0x41b776([0x6f,0x66,0x66])]());});}))];return window[_0x41b776([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x41b776([0x72,0x61,0x63,0x65])](_0x3f7079)[_0x41b776([0x74,0x68,0x65,0x6e])](()=>_0x516bb9);}async function _0x4e0b65(){await _0x3fdc5f,_0x4abc8f[_0x41b776([0x6d,0x6f,0x64,0x65,0x6c])][_0x41b776([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xfc345f,_0x4abc8f[_0x41b776([0x6d,0x6f,0x64,0x65,0x6c])][_0x41b776([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xfc345f,_0x4abc8f[_0x41b776([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x41b776([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ef763(_0x345fbf){const _0x35a358=_0x990ad0();_0x4abc8f[_0x35a358]=_0x41b776([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x345fbf,_0x345fbf!=_0x41b776([0x56,0x61,0x6c,0x69,0x64])&&_0x4e0b65();}function _0x990ad0(){const _0xa1daf6=window[_0x41b776([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x41b776([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x41b776([0x6e,0x6f,0x77])]())[_0x41b776([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x41b776([0x2e]),'');let _0xcad76b=_0x41b776([0x6d]);for(let _0x4f2de6=0x0;_0x4f2de6<_0xa1daf6[_0x41b776([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f2de6+=0x2){let _0x139573=window[_0x41b776([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa1daf6[_0x41b776([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f2de6,_0x4f2de6+0x2));_0x139573>=_0x23a3af[_0x41b776([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x139573-=_0x23a3af[_0x41b776([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcad76b+=_0x23a3af[_0x139573];}return _0xcad76b;}function _0x1043ba(){const _0x6b0f9e=_0x437afd[_0x41b776([0x73,0x70,0x6c,0x69,0x74])](_0x41b776([0x2e]));if(0x3!=_0x6b0f9e[_0x41b776([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xc9a2e4(_0x6b0f9e[0x1]);function _0xc9a2e4(_0x97c686){const _0x2c8efb=_0x504ffc(_0x97c686);return _0x2c8efb&&_0x1b12ba()?_0x2c8efb:null;function _0x1b12ba(){const _0x526aeb=_0x2c8efb[_0x41b776([0x6a,0x74,0x69])],_0x4ea616=window[_0x41b776([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x526aeb[_0x41b776([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x526aeb[_0x41b776([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x34e67d={..._0x2c8efb,[_0x41b776([0x6a,0x74,0x69])]:_0x526aeb[_0x41b776([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x526aeb[_0x41b776([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x34e67d[_0x41b776([0x76,0x63])],_0x4521de(_0x34e67d)==_0x4ea616;}}}async function _0x39d0cc(){let _0x2f206e=!0x0;try{const _0x5a6208=_0x437afd[_0x41b776([0x73,0x70,0x6c,0x69,0x74])](_0x41b776([0x2e])),[_0x1f8d7f,_0x5b8a46,_0x3c5a3f]=_0x5a6208;return _0x5089c3(_0x1f8d7f),await _0x51dc22(_0x1f8d7f,_0x5b8a46,_0x3c5a3f),_0x2f206e;}catch(_0x148396){return!0x1;}function _0x5089c3(_0x594ec4){const _0x3fe914=_0x504ffc(_0x594ec4);_0x3fe914&&_0x3fe914[_0x41b776([0x61,0x6c,0x67])]==_0x41b776([0x45,0x53,0x32,0x35,0x36])||(_0x2f206e=!0x1);}async function _0x51dc22(_0x1f38ac,_0x129227,_0x29b96f){const _0x53d67a=window[_0x41b776([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x41b776([0x66,0x72,0x6f,0x6d])](_0x2258fc(_0x29b96f),_0x338e60=>_0x338e60[_0x41b776([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe33fac=new window[(_0x41b776([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x41b776([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1f38ac+_0x41b776([0x2e])+_0x129227),_0x5d0570=window[_0x41b776([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x41b776([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5d0570)return;const _0x54c30d=await _0x5d0570[_0x41b776([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x41b776([0x6a,0x77,0x6b]),_0x170c78,{[_0x41b776([0x6e,0x61,0x6d,0x65])]:_0x41b776([0x45,0x43,0x44,0x53,0x41]),[_0x41b776([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x41b776([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x41b776([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5d0570[_0x41b776([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x41b776([0x6e,0x61,0x6d,0x65])]:_0x41b776([0x45,0x43,0x44,0x53,0x41]),[_0x41b776([0x68,0x61,0x73,0x68])]:{[_0x41b776([0x6e,0x61,0x6d,0x65])]:_0x41b776([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54c30d,_0x53d67a,_0xe33fac)||(_0x2f206e=!0x1);}}function _0x504ffc(_0x5c7c0f){return _0x5c7c0f[_0x41b776([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x41b776([0x65,0x79]))?JSON[_0x41b776([0x70,0x61,0x72,0x73,0x65])](_0x2258fc(_0x5c7c0f)):null;}function _0x2258fc(_0x491700){return window[_0x41b776([0x61,0x74,0x6f,0x62])](_0x491700[_0x41b776([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x41b776([0x2b]))[_0x41b776([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x41b776([0x2f])));}function _0x4521de(_0x11b6e6){let _0x32db6f=0x1505;function _0x1bedc1(_0x4f38ac){for(let _0x3fb090=0x0;_0x3fb090<_0x4f38ac[_0x41b776([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3fb090++){const _0x39a21d=_0x4f38ac[_0x41b776([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3fb090);_0x32db6f=(_0x32db6f<<0x5)+_0x32db6f+_0x39a21d,_0x32db6f&=_0x32db6f;}}function _0x1097dc(_0x118f5e){Array[_0x41b776([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x118f5e)?_0x118f5e[_0x41b776([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1097dc):_0x118f5e&&typeof _0x118f5e==_0x41b776([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x41b776([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x118f5e)[_0x41b776([0x73,0x6f,0x72,0x74])]()[_0x41b776([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc157a1,_0x997772])=>{_0x1bedc1(_0xc157a1),_0x1097dc(_0x997772);}):_0x1bedc1(window[_0x41b776([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x118f5e));}return _0x1097dc(_0x11b6e6),_0x32db6f>>>0x0;}function _0x5ca9e7(_0x370fe6){return _0x370fe6[_0x41b776([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x41b776([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x41b776([0x30]));}function _0x45f02a(_0x3b311c){return _0x3b311c[_0x41b776([0x73,0x70,0x6c,0x69,0x74])]('')[_0x41b776([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x41b776([0x6a,0x6f,0x69,0x6e])]('');}function _0xfc345f(){}function _0x41b776(_0x1ebf7d){return _0x1ebf7d['map'](_0x41e6a5=>String['fromCharCode'](_0x41e6a5))['join']('');}_0x3ef763(await _0x4d943e());}(this);}['_initSchema'](){const _0x348d83=this['editor']['model']['schema'];_0x348d83['isRegistered']('imageBlock')&&_0x348d83['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x348d83['isRegistered']('imageInline')&&_0x348d83['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4f9685=this['editor'];_0x4f9685['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4f9685['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2fc0b0=>_0x2fc0b0['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4dc57d=_0x4f9685['commands']['get']('replaceImageSource');_0x4dc57d&&this['listenTo'](_0x4dc57d,'cleanupImage',(_0x2c2dee,[_0x57be25,_0x362603])=>{_0x57be25['removeAttribute']('uploadcareImageId',_0x362603);});}['_initConfig'](){const _0x54f43a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x29d760=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x325d07(_0x493f5e['document'],'uc-config',{..._0x54f43a,'pubkey':_0x29d760,'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']=_0x5767af=>{if('closeMax'==_0x5767af)return'#uc-icon-arrow-down';},_0x493f5e['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x325d07(_0x493f5e['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x493f5e['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x18ad53=this['editor']['commands']['get']('insertImage');_0x18ad53&&this['listenTo'](_0x18ad53,'execute',()=>{const _0x326f9d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x326f9d&&_0x326f9d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x326f9d);});});const _0x439302=this['editor']['commands']['get']('uploadcareImageReplace');_0x439302&&this['listenTo'](_0x439302,'execute',()=>{const _0x4f9a45=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4f9a45&&_0x4f9a45['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4f9a45);});});}}class u extends _0x2ce6e9{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x8ce885){super(_0x8ce885),_0x8ce885['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x4c8d4c['defineComponents'](_0x4c8d4c);}}class ta extends _0x52d5a5{constructor(_0xccfe07){super(_0xccfe07);const t=_0xccfe07['t'],_0x1a973b=this['bindTemplate'],_0x51dd8a=new _0x3e3f9d();_0x51dd8a['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':[_0x51dd8a,{'text':_0x1a973b['to']('imageUploadProgress',_0x2cc7eb=>t('Loading\x20image...')+'\x20('+(_0x2cc7eb||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 _0x52d5a5{constructor(_0x10fd40){super(_0x10fd40);const t=_0x10fd40['t'];this['set']('errorType',null);const _0x26eaf9=new _0x595a9c(_0x10fd40);_0x26eaf9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x26eaf9['withText']=!0x0,_0x26eaf9['class']='ck-button-action',_0x26eaf9['on']('execute',()=>{this['fire']('retry');}),_0x26eaf9['bind']('isVisible')['to'](this,'errorType',_0x2d122b=>'NotFound'!==_0x2d122b);const _0xb0ac52=new at();_0xb0ac52['content']=et,_0xb0ac52['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3701b2=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':[_0xb0ac52,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3701b2['to']('errorType',_0x5b3c22=>t('NotFound'!==_0x5b3c22?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x26eaf9]},{'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 _0x52d5a5{constructor(_0x44aeae,_0x33689d){super(_0x44aeae);const _0x1f5c17=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x33689d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1f5c17['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4cd868,_0x5068e2,_0x3985f6){super(_0x4cd868),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x4cd868),this['_errorView']=new rt(_0x4cd868),this['_editingView']=new tt(_0x4cd868,_0x3985f6),this['_focusableView']=new _0x52d5a5(_0x4cd868),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5068e2),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'],_0x1a805b=>{this['_addUploadcareImageEditorListeners'](_0x1a805b);});}),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'](_0x41e5f6,_0x583b8c){const _0x1c104e='uc-cloud-image-editor',_0x643137=_0x41e5f6['querySelector'](_0x1c104e);if(_0x643137)return _0x583b8c(_0x643137);const _0x26b06d=new MutationObserver(_0x32443a=>{const _0x4a07c1=_0x32443a['filter'](_0x38b29d=>_0x38b29d['target']===_0x41e5f6&&_0x38b29d['addedNodes']['length']>0x0&&_0x38b29d['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1c104e);_0x4a07c1['length']&&(_0x26b06d['disconnect'](),_0x583b8c(_0x4a07c1[0x0]['addedNodes'][0x0]));});_0x26b06d['observe'](_0x41e5f6,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3d3979){_0x3d3979['addEventListener']('apply',_0x338c4f=>{this['fire']('apply',{'imageSrc':_0x338c4f['detail']['cdnUrl']});}),_0x3d3979['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1dc02b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x782878,_0x24d957,_0x3f6cf1){super(),this['_editor']=_0x782878,this['_dialog']=_0x24d957,this['_imageElement']=_0x3f6cf1,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 _0x49bf16=this['_imageElement'],_0x3b24a8=_0x49bf16['getAttribute']('uploadcareImageId'),_0x1ba967=_0x49bf16['getAttribute']('src');if(_0x3b24a8)await this['_loadImageInfo'](_0x3b24a8,_0x1ba967);else{if(this['_imageCache']['has'](_0x1ba967)){const _0x88404b=this['_imageCache']['get'](_0x1ba967);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x88404b['url'],this['imageDimension']=_0x88404b['dimension'],this['imageId']=_0x88404b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x52a6f5}=this['_editor'],t=_0x52a6f5['t'],_0x1e59d2=new Z(_0x52a6f5,this['imageStatus'],this['_attributes']);_0x1e59d2['bind']('status')['to'](this,'imageStatus'),_0x1e59d2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1e59d2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1e59d2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1e59d2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2b9487,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1e59d2,'position':_0x13a466['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1e59d2['focus']();},'onHide':()=>{_0x1e59d2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x51b607=>!F(_0x51b607,_0x1e59d2['element'])}});}['_loadImageInfo'](_0x3d5eb4,_0x550a8f){return C['getInfo'](_0x3d5eb4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x43a354=>{const {width:_0x1f2ffa,height:_0x4413b3}=_0x43a354['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x550a8f,this['imageDimension']={'width':_0x1f2ffa,'height':_0x4413b3},this['imageId']=_0x3d5eb4;})['catch'](_0x3f9a67=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3f9a67['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x27ab3e,_0x106fa4){return this['_getImageAsFile'](_0x27ab3e)['then'](_0x1bfa93=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x106fa4['signal'],'file':_0x1bfa93,'onProgress':_0x529fc7=>{_0x529fc7&&_0x529fc7['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x529fc7['value']));}}))['then'](_0x9deed4=>{const {width:_0x432662,height:_0x373adc}=_0x9deed4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x9deed4['cdnUrl'],this['imageDimension']={'width':_0x432662,'height':_0x373adc},this['imageId']=_0x9deed4['uuid'],this['imageUploadProgress']=null;const _0x27b30c=_0x27ab3e['getAttribute']('src');this['_imageCache']['set'](_0x27b30c,{'id':_0x9deed4['uuid'],'url':_0x9deed4['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x28e93d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x28e93d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x24c97c,_0x34b2c4){_0x24c97c['on']('apply',(_0x5ae7c0,_0x57a4fb)=>{this['_replaceImage'](_0x34b2c4,_0x57a4fb['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x24c97c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x24c97c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xf61c70,_0x23d4b0,_0x5eb6af){const _0x4c6ff9=this['_editor'],{width:_0x84d480,height:_0x48fd01}=A(_0x23d4b0,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3021e4,imageSources:_0x8eadba}=E(_0x23d4b0,_0x84d480);_0x4c6ff9['model']['change'](_0x5c594d=>{if('$graveyard'===_0xf61c70['root']['rootName']){_0x4c6ff9['execute']('insertImage',{'imageType':_0xf61c70['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xf61c70['getAttributes']()),'uploadcareImageId':_0x5eb6af,'src':_0x3021e4,'sources':_0x8eadba,'width':_0x84d480,'height':_0x48fd01}});const _0x3f9495=_0xf61c70['getChildren']();_0xf61c70=_0x4c6ff9['model']['document']['selection']['getSelectedElement']();for(const _0x132f9a of _0x3f9495)_0x5c594d['append'](_0x5c594d['cloneElement'](_0x132f9a),_0xf61c70);}else _0x5c594d['setSelection'](_0xf61c70,'on'),_0x4c6ff9['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xf61c70['getAttributes']()),'uploadcareImageId':_0x5eb6af,'src':_0x3021e4,'sources':_0x8eadba,'width':_0x84d480,'height':_0x48fd01},_0xf61c70);_0x5c594d['setSelection'](_0xf61c70,'on');});}async['_getImageAsFile'](_0x2e5a16){const _0xeffa06=_0x493f5e['window'],_0x3454c5=_0x493f5e['document']['location']['href'],_0x50e30e=new _0xeffa06['URL'](_0x2e5a16['getAttribute']('src'),_0x3454c5);if('data:'===_0x50e30e['protocol']){const _0x56bf23=_0x50e30e['href']['split'](','),_0x386475=_0x56bf23[0x0]['match'](/:(.*?);/)[0x1],_0x506afd=_0x386475['split']('/')[0x1],_0x357a30=_0xeffa06['atob'](_0x56bf23[_0x56bf23['length']-0x1]);let _0x3ea5d7=_0x357a30['length'];const _0xac6340=new _0xeffa06['Uint8Array'](_0x3ea5d7);for(;_0x3ea5d7--;)_0xac6340[_0x3ea5d7]=_0x357a30['charCodeAt'](_0x3ea5d7);return new _0xeffa06['File']([_0xac6340],'image.'+_0x506afd,{'type':_0x386475});}const _0x3ce1ee=_0x50e30e['href']['split']('/'),_0x453f2f=_0x3ce1ee[_0x3ce1ee['length']-0x1],_0x409a80=_0x453f2f['split']('.')[0x1];return _0xeffa06['fetch'](_0x50e30e['href'])['then'](_0x1a40f3=>_0x1a40f3['clone']()['blob']())['then'](_0x472e9a=>new _0xeffa06['File']([_0x472e9a],_0x453f2f,{'type':'image/'+_0x409a80}));}}class J extends _0x2c91d4{['imageEditController'];static get['requires'](){return[_0xb26418];}['_isEditable'];constructor(_0x5e18d1){super(_0x5e18d1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4e4c48){const _0x2ae280=V(_0x4e4c48);return _0x43ce41=>!(!_0x43ce41||!_0x43ce41['is']('element','imageBlock')&&!_0x43ce41['is']('element','imageInline'))&&(!!_0x43ce41['hasAttribute']('uploadcareImageId')||!!_0x43ce41['hasAttribute']('src')&&_0x2ae280(_0x43ce41['getAttribute']('src')));}(_0x5e18d1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x347a5c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x347a5c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x33a3d8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x33a3d8&&(_0x33a3d8['is']('element','imageBlock')||_0x33a3d8['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0xb26418),_0x33a3d8),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2c91d4{['refresh'](){const _0x5938d9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5938d9&&(_0x5938d9['is']('element','imageBlock')||_0x5938d9['is']('element','imageInline')));}['execute'](_0x5d7b4b){const _0x1dbb3e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1e806e=>{_0x1e806e['setAttributes'](_0x5d7b4b,_0x1dbb3e),_0x1e806e['removeAttribute']('srcset',_0x1dbb3e),_0x1e806e['removeAttribute']('sizes',_0x1dbb3e);});}}class g extends _0x2ce6e9{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x219423,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2bd4d2}=this;_0x2bd4d2['commands']['add']('uploadcareImageEdit',new J(_0x2bd4d2)),_0x2bd4d2['commands']['add']('uploadcareImageReplace',new O(_0x2bd4d2));}}class j extends _0x2ce6e9{['_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 _0x489e66=this['editor'];_0x489e66['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4df903=>{const _0x9fbd50=_0x489e66['commands']['get']('uploadcareImageEdit'),_0x50998f=new _0x595a9c(_0x4df903),t=_0x4df903['t'];return _0x50998f['set']({'icon':_0x2b9487,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x50998f['bind']('isEnabled')['to'](_0x9fbd50),_0x50998f['bind']('isOn')['to'](_0x9fbd50,'isActive'),this['listenTo'](_0x50998f,'execute',()=>{_0x489e66['execute']('uploadcareImageEdit'),_0x489e66['editing']['view']['focus']();}),_0x50998f;}),this['_initConfig']();}['_initConfig'](){const _0x4a83fc=_0x325d07(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4a83fc),this['listenTo'](this['editor'],'destroy',()=>{_0x4a83fc['remove']();});}}class P extends _0x2ce6e9{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 _0x37e1a0,Command as _0x353615}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3d84e0,IconGooglePhotos as _0x5c3020,IconGoogleDrive as _0x58e68d,IconFacebook as _0x576627,IconDropbox as _0x875209,IconUploadcareLink as _0x29af28,IconUploadcareImageUpload as _0x44640a,IconError as et,IconUploadcareImageEdit as _0x4f710a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x567ad0,MenuBarMenuListItemButtonView as _0xe0122c,View as _0x5e5180,FocusCycler as _0x4f8513,Dialog as _0x3fdb9d,DialogViewPosition as _0x350f05,SpinnerView as _0x10c380,IconView as at,Notification as _0x48e63e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x505956,DomEmitterMixin as _0x50eebd,global as _0x1f14f9,getAncestors as _0x43e64d,ObservableMixin as _0x8d4bd5,createElement as _0x2204ec,uid as _0x1f75b8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x468a6e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x32bef1,info as _0x23d076}from'@uploadcare/upload-client';import*as _0x1345e6 from'@uploadcare/file-uploader';var o=function(_0x275eb2){return _0x275eb2['Local']='local',_0x275eb2['URL']='url',_0x275eb2['Dropbox']='dropbox',_0x275eb2['GDrive']='gdrive',_0x275eb2['Facebook']='facebook',_0x275eb2['GPhotos']='gphotos',_0x275eb2['OneDrive']='onedrive',_0x275eb2;}({});function _(_0x33942e,_0x52cedb,_0x317b5f){const t=_0x33942e['t'],_0xd9401b=_0x33942e['t'];switch(_0x52cedb){case o['Local']:return{'text':_0xd9401b('Insert'===_0x317b5f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xd9401b('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x317b5f?_0xd9401b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xd9401b('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x317b5f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x317b5f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x317b5f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x317b5f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x317b5f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x52cedb;}}class e extends _0x37e1a0{['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 _0x31182b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5be25a;for(const _0x159d05 in _0x31182b){const _0x34c373=_0x159d05,_0x50d058=_0x31182b[_0x34c373];if('uploadcareLicenseKeyValid'==_0x50d058||'uploadcareLicenseKeyInvalid'==_0x50d058||'uploadcareLicenseKeyExpired'==_0x50d058||'uploadcareLicenseKeyDomainLimit'==_0x50d058||'uploadcareLicenseKeyNotAllowed'==_0x50d058||'uploadcareLicenseKeyEvaluationLimit'==_0x50d058||'uploadcareLicenseKeyTrialLimit'==_0x50d058||'uploadcareLicenseKeyUsageLimit'==_0x50d058){delete _0x31182b[_0x34c373],_0x5be25a=_0x50d058,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5be25a&&_0x31182b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5be25a&&_0x31182b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5be25a&&_0x31182b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5be25a&&_0x31182b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5be25a&&_0x31182b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5be25a&&_0x31182b['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5be25a&&_0x31182b['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1e2c80}=this,_0x22dbd4=_0x1e2c80['commands']['get']('uploadcare');if(!_0x22dbd4)return;const _0x569d5e=this['_normalizeConfigSourceList'](_0x1e2c80['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xd9b9e3,_0xa85575)=>{const _0x5b0a8b=this['_getIntegrationKey'](_0xa85575['type']);return _0xd9b9e3[_0x5b0a8b]||(_0xd9b9e3[_0x5b0a8b]=[]),_0xd9b9e3[_0x5b0a8b]['push'](_0xa85575),_0xd9b9e3;},{});_0x1e2c80['plugins']['has']('ImageInsertUI')&&_0x1e2c80['commands']['get']('uploadcare')&&Object['entries'](_0x569d5e)['forEach'](([_0x3e693b,_0x2fa176])=>{_0x1e2c80['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3e693b,'observable':()=>_0x22dbd4,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2fa176),'formViewCreator':()=>this['_createDropdownButtons'](_0x2fa176),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2fa176),'override':'assetManager'!==_0x3e693b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x53d718){const {locale:_0x3f31e9}=this['editor'];return _0x53d718['map'](_0x51381e=>{const _0x3f2071=_(_0x3f31e9,_0x51381e,'Insert');switch(_0x51381e){case o['Local']:return{'icon':_0x44640a,'type':o['Local'],..._0x3f2071};case o['URL']:return{'icon':_0x29af28,'type':o['URL'],..._0x3f2071};case o['Dropbox']:return{'icon':_0x875209,'type':o['Dropbox'],..._0x3f2071};case o['Facebook']:return{'icon':_0x576627,'type':o['Facebook'],..._0x3f2071};case o['GDrive']:return{'icon':_0x58e68d,'type':o['GDrive'],..._0x3f2071};case o['GPhotos']:return{'icon':_0x5c3020,'type':o['GPhotos'],..._0x3f2071};case o['OneDrive']:return{'icon':_0x3d84e0,'type':o['OneDrive'],..._0x3f2071};}});}['_getIntegrationKey'](_0x590668){switch(_0x590668){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4fa936,_0x2d2016){const _0x56fe00=this['editor'],_0x30002a=new _0x4fa936(_0x56fe00['locale']),_0x39d360=_0x56fe00['commands']['get']('uploadcare');return _0x30002a['bind']('isEnabled')['to'](_0x39d360),_0x30002a['on']('execute',()=>{_0x39d360['execute'](_0x2d2016);}),_0x30002a;}['_createToolbarButton'](_0x5cc337){const {locale:_0x1f478a}=this['editor'],_0xa284af=this['editor']['plugins']['get']('ImageInsertUI'),_0x380704=_0x5cc337[0x0],_0x2811e0=this['_createButton'](_0x567ad0,_0x380704['type']);return _0x2811e0['icon']=_0x380704['icon'],_0x2811e0['bind']('label')['to'](_0xa284af,'isImageSelected',_0x363516=>_(_0x1f478a,_0x380704['type'],_0x363516?'Replace':'Insert')['text']),_0x2811e0['tooltip']=!0x0,_0x2811e0;}['_createDropdownButtons'](_0x118653){const {locale:_0x15decd}=this['editor'],_0x44a96d=this['editor']['plugins']['get']('ImageInsertUI');return _0x118653['map'](_0x409e9e=>{const _0x3b61b2=this['_createButton'](_0x567ad0,_0x409e9e['type']);return _0x3b61b2['withText']=!0x0,_0x3b61b2['icon']=_0x409e9e['icon'],_0x3b61b2['bind']('label')['to'](_0x44a96d,'isImageSelected',_0x5408e9=>_(_0x15decd,_0x409e9e['type'],_0x5408e9?'Replace':'Insert')['text']),_0x3b61b2;});}['_createMenuBarButtons'](_0x5c6c44){return _0x5c6c44['map'](_0x3592c5=>{const _0x3497d4=this['_createButton'](_0xe0122c,_0x3592c5['type']);return _0x3497d4['icon']=_0x3592c5['icon'],_0x3497d4['label']=_0x3592c5['shortText'],_0x3497d4;});}}class q extends _0x5e5180{['focusTracker'];['focusCycler'];constructor(_0x7c0013){super(_0x7c0013),this['focusTracker']=new _0x505956(),this['focusCycler']=new _0x4f8513({'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(_0x3249f3){super(_0x3249f3),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(_0x2192f9,_0x2a4884){const _0xba39e2=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x471816=>_0x471816<=_0x2a4884)['map'](_0x5c6b01=>_0x2192f9['replace'](/\/$/,'')+'/-/resize/'+_0x5c6b01+'x/\x20'+_0x5c6b01+'w');return{'imageFallbackUrl':_0x2192f9,'imageSources':[{'srcset':_0xba39e2['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2a4884+'px)\x20100vw,\x20'+_0x2a4884+'px','type':'image/webp'}]};}function A(_0x5a2a6d,_0x3ff0c1,_0x533ffa){const _0x3ac14e=_0x5a2a6d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3ac14e?parseInt(_0x3ac14e[0x1],0xa):_0x3ff0c1,'height':_0x3ac14e?parseInt(_0x3ac14e[0x2],0xa):_0x533ffa};}function m(_0x3bc91f,_0x43a40a){const _0xbdcf95=Object['create'](_0x50eebd),_0x5a4182=_0x3bc91f['plugins']['get']('ImageUtils'),_0x5e2e60=_0x3bc91f['editing']['mapper']['toViewElement'](_0x43a40a),_0x53c9b5=_0x5a4182['findViewImgElement'](_0x5e2e60),_0x3a0d3a=_0x3bc91f['editing']['view']['domConverter']['viewToDom'](_0x53c9b5),_0x532351=_0x43a40a['getAttribute']('width'),_0x25e457=_0x43a40a['getAttribute']('height'),_0x4a24e2='image-processing';_0x3bc91f['editing']['view']['change'](_0x54c9e8=>{_0x54c9e8['addClass'](_0x4a24e2,_0x5e2e60),_0x54c9e8['setStyle']('aspect-ratio',_0x532351+'/'+_0x25e457,_0x53c9b5);}),_0xbdcf95['listenTo'](_0x3a0d3a,'load',()=>{_0xbdcf95['stopListening'](_0x3a0d3a,'load'),_0x3bc91f['editing']['view']['change'](_0x45a11f=>{_0x45a11f['removeClass'](_0x4a24e2,_0x5e2e60),_0x45a11f['removeStyle']('aspect-ratio',_0x53c9b5);});});}function V(_0x29a777){if(Array['isArray'](_0x29a777)){const _0x5f0a1a=_0x29a777['map'](V);return _0x334f52=>_0x5f0a1a['some'](_0x240ccf=>_0x240ccf(_0x334f52));}if('origin'==_0x29a777){const _0x2858d6=_0x1f14f9['window']['location']['origin'];return _0xdd9363=>new URL(_0xdd9363,_0x1f14f9['document']['baseURI'])['origin']==_0x2858d6;}return'function'==typeof _0x29a777?_0x29a777:_0x29a777 instanceof RegExp?_0x519f25=>!(!_0x519f25['match'](_0x29a777)&&!_0x519f25['replace'](/^https?:\/\//,'')['match'](_0x29a777)):()=>!0x1;}function F(_0x57d042,_0x10194d){return _0x43e64d(_0x57d042['target'])['includes'](_0x10194d);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x8d4bd5(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x206add,_0x120b06,_0x2bf02a){super(),this['_editor']=_0x206add,this['_editing']=_0x120b06,this['_dialog']=_0x206add['plugins']['get'](_0x3fdb9d),this['_api']=_0x120b06['ctxElement']['getAPI'](),this['_type']=_0x2bf02a,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:_0x3937e2,model:_0x2b30fd}=this['_editor'],_0xf3a521=_0x2b30fd['document']['selection']['getSelectedElement'](),_0x584d83=_0xf3a521&&(_0xf3a521['is']('element','imageBlock')||_0xf3a521['is']('element','imageInline'));this['_formView']=new S(_0x3937e2),this['_dialog']['show']({'id':'uploadCare','icon':_0x44640a,'title':_(_0x3937e2,this['_type'],_0x584d83?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x350f05['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x40dfbc=>!F(_0x40dfbc,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5b279c}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3f1cfc=>{const _0x3c44c7=_0x5b279c['length'];for(const _0x3581d6 of _0x5b279c){const _0x123076=_0x3581d6===_0x5b279c[_0x3c44c7-0x1],{cdnUrl:_0x35b7e2,fileInfo:_0x13af78}=_0x3581d6;if(!_0x35b7e2||!_0x13af78)continue;const {width:_0xf7749d,height:_0x53ea37}=_0x13af78['imageInfo'],_0x3fd6f1=A(_0x35b7e2,_0xf7749d,_0x53ea37),_0x3651c8=E(_0x35b7e2,_0x3fd6f1['width']),_0x326a01={'id':_0x13af78['uuid'],'type':'image','attributes':{'imageDimension':_0x3fd6f1,..._0x3651c8}};this['_insertAsset'](_0x326a01,_0x123076,_0x3f1cfc);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x40180b=>{'idle'===_0x40180b['detail']['status']&&!_0x40180b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2fbbe9,_0x454f1e,_0x5774d1){const _0x28078b=this['_editor']['model']['document']['selection'],_0x916c06=_0x28078b['getSelectedElement'](),_0x36c99e=!(!_0x916c06||!_0x916c06['is']('element','imageInline'));_0x5774d1['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2fbbe9,_0x36c99e),_0x454f1e||_0x5774d1['setSelection'](_0x28078b['getLastPosition']());}['_insertImage'](_0x34fae0,_0x2818b6){const _0x18aadc=this['_editor'],{imageDimension:_0xe581b3,imageFallbackUrl:_0x594b29,imageSources:_0xd35f9b}=_0x34fae0['attributes'];_0x18aadc['execute']('insertImage',{'imageType':_0x2818b6?'imageInline':null,'source':{'uploadcareImageId':_0x34fae0['id'],'src':_0x594b29,'sources':_0xd35f9b,..._0xe581b3}});}}class n extends _0x353615{['_editing'];['_controller']=null;static get['requires'](){return[_0x3fdb9d,i];}constructor(_0x436f92){super(_0x436f92),this['_editing']=_0x436f92['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x23ebf5){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x23ebf5);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x201f9a,publicKey:_0x1101ae,signal:_0x297c20,onProgress:_0x57b3e5}){return _0x32bef1(_0x201f9a,{'publicKey':_0x1101ae,'store':'auto','signal':_0x297c20,'onProgress':_0x57b3e5});}static['getInfo'](_0x163d40,_0x372d03){return _0x23d076(_0x163d40,_0x372d03);}}class p extends _0x37e1a0{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x468a6e,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x53d4bd=this['editor'];if(!!!_0x53d4bd['config']['get']('uploadcare'))return;_0x53d4bd['plugins']['get'](_0x468a6e)['createUploadAdapter']=_0x11b4f7=>new x(_0x11b4f7,_0x53d4bd),_0x53d4bd['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x50f65d,{imageElement:_0x353ec0,data:_0x330f31})=>{_0x53d4bd['model']['change'](_0x14b930=>{_0x14b930['setAttribute']('uploadcareImageId',_0x330f31['uploadcareImageId'],_0x353ec0);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x4b7ba4,_0x1f1865){this['loader']=_0x4b7ba4,this['editor']=_0x1f1865,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2dcd82=this['editor']['config']['get']('uploadcare.pubkey'),_0x50b0a2=await this['loader']['file'];return C['upload']({'file':_0x50b0a2,'publicKey':_0x2dcd82,'signal':this['controller']['signal'],'onProgress':_0x50599c=>{_0x50599c&&_0x50599c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x50599c['value']);}})['then'](async _0x20763f=>{const {imageFallbackUrl:_0x2e57e7,imageSources:_0x3b2a7a}=E(_0x20763f['cdnUrl'],_0x20763f['imageInfo']['width']);return{'uploadcareImageId':_0x20763f['uuid'],'default':_0x2e57e7,'sources':_0x3b2a7a};})['catch'](()=>{const _0xe56ecc=t('Cannot\x20upload\x20file:')+('\x20'+_0x50b0a2['name']+'.');return Promise['reject'](_0xe56ecc);});}['abort'](){this['controller']['abort']();}}class i extends _0x37e1a0{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3fdb9d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0xca9d3=this['editor'];_0xca9d3['commands']['add']('uploadcare',new n(_0xca9d3));}['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 _0x5ee49c=_0x1f14f9['document']['querySelector']('input[uploadcare-file-input]');_0x5ee49c&&_0x5ee49c['remove']();}),async function(_0x22db1e){const _0xadea51=_0xeced36([0x69,0x38,0x7a,0x4b,0x61,0x70,0x43,0x76,0x6c,0x47,0x45,0x34,0x6f,0x78,0x75,0x48,0x4d,0x6e,0x37,0x65,0x72,0x58,0x46,0x59,0x56,0x5a,0x51,0x44,0x4a,0x71,0x41,0x35,0x52,0x6b,0x57,0x4f,0x49,0x62,0x74,0x73,0x63,0x66,0x31,0x55,0x6a,0x79,0x36,0x33,0x6d,0x4c,0x54,0x42,0x67,0x32,0x39,0x64,0x53,0x50,0x77,0x4e,0x68,0x30]),_0x18844f=0x6ea06662,_0x1951ff=0x6ea700d2^_0x18844f,_0x514238=window[_0xeced36([0x44,0x61,0x74,0x65])][_0xeced36([0x6e,0x6f,0x77])](),_0x527220=_0x22db1e[_0xeced36([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x21047b=new window[(_0xeced36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50dcc7=>{_0x527220[_0xeced36([0x6f,0x6e,0x63,0x65])](_0xeced36([0x72,0x65,0x61,0x64,0x79]),_0x50dcc7);}),_0x56858c={[_0xeced36([0x6b,0x74,0x79])]:_0xeced36([0x45,0x43]),[_0xeced36([0x75,0x73,0x65])]:_0xeced36([0x73,0x69,0x67]),[_0xeced36([0x63,0x72,0x76])]:_0xeced36([0x50,0x2d,0x32,0x35,0x36]),[_0xeced36([0x78])]:_0xeced36([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]),[_0xeced36([0x79])]:_0xeced36([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]),[_0xeced36([0x61,0x6c,0x67])]:_0xeced36([0x45,0x53,0x32,0x35,0x36])},_0xa7527f=_0x527220[_0xeced36([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xeced36([0x67,0x65,0x74])](_0xeced36([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x46d7fa(){let _0x55036e,_0x539afe=null,_0x1f6d73=null;try{if(_0xa7527f==_0xeced36([0x47,0x50,0x4c]))return _0xeced36([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x55036e=_0x4aba98(),!_0x55036e)return _0xeced36([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x55036e[_0xeced36([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f6d73=_0x34cbbd(_0x55036e[_0xeced36([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x55036e[_0xeced36([0x6a,0x74,0x69])])),await _0x1adaf8()?_0x500e19()?_0x116ffb()?_0xeced36([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x11a594()?(_0x55036e[_0xeced36([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xeced36([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x539afe=_0x54e366(_0xeced36([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x55036e[_0xeced36([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xeced36([0x74,0x72,0x69,0x61,0x6c])&&(_0x539afe=_0x54e366(_0xeced36([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x52488a()):_0xeced36([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xeced36([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xeced36([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3b9a57){return _0xeced36([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x116ffb(){const _0x1d7b04=[_0xeced36([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xeced36([0x74,0x72,0x69,0x61,0x6c])][_0xeced36([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55036e[_0xeced36([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x514238/0x3e8:0xe10*_0x1951ff;return _0x55036e[_0xeced36([0x65,0x78,0x70])]<_0x1d7b04;}function _0x500e19(){const _0x427d65=_0x55036e[_0xeced36([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x427d65&&(!!_0x427d65[_0xeced36([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xeced36([0x2a]))||!!_0x427d65[_0xeced36([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xeced36([0x55,0x50,0x4c,0x43])));}function _0x11a594(){const _0x552e39=_0x55036e[_0xeced36([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x552e39||0x0==_0x552e39[_0xeced36([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x324825}=new URL(window[_0xeced36([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x552e39[_0xeced36([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x324825))return!0x0;const _0x382a34=_0x324825[_0xeced36([0x73,0x70,0x6c,0x69,0x74])](_0xeced36([0x2e]));return _0x552e39[_0xeced36([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20946c=>_0x20946c[_0xeced36([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xeced36([0x2a])))[_0xeced36([0x6d,0x61,0x70])](_0x59a8b5=>_0x59a8b5[_0xeced36([0x73,0x70,0x6c,0x69,0x74])](_0xeced36([0x2e])))[_0xeced36([0x73,0x6f,0x6d,0x65])](_0x27909c=>_0x382a34[_0xeced36([0x65,0x76,0x65,0x72,0x79])]((_0x13cdc5,_0x54a1f9)=>_0x27909c[_0x54a1f9]===_0x13cdc5||_0x27909c[_0x54a1f9]===_0xeced36([0x2a])));}function _0x52488a(){return _0x539afe&&_0x1f6d73?new window[(_0xeced36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3aadfe,_0x204602)=>{_0x539afe[_0xeced36([0x74,0x68,0x65,0x6e])](_0x3aadfe,_0x204602),_0x1f6d73[_0xeced36([0x74,0x68,0x65,0x6e])](_0x19b638=>{_0x19b638!=_0xeced36([0x56,0x61,0x6c,0x69,0x64])&&_0x3aadfe(_0x19b638);},_0x204602);}):_0x539afe||_0x1f6d73||_0xeced36([0x56,0x61,0x6c,0x69,0x64]);}}function _0x34cbbd(_0x471a8c,_0xed2414){return new window[(_0xeced36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b9114=>{if(_0x203877())return _0x2b9114(_0xeced36([0x56,0x61,0x6c,0x69,0x64]));_0x148f7c(),_0x527220[_0xeced36([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xeced36([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x7f5e1=!0x1;const _0x1102b8=_0x1f75b8();function _0x5d30ff(_0x3192cf){return!!_0x3192cf&&(typeof _0x3192cf===_0xeced36([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3192cf===_0xeced36([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3192cf[_0xeced36([0x74,0x68,0x65,0x6e])]===_0xeced36([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3192cf[_0xeced36([0x63,0x61,0x74,0x63,0x68])]===_0xeced36([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x398de8(_0x17cbb2){_0x109fee(_0x17cbb2)[_0xeced36([0x74,0x68,0x65,0x6e])](_0x394f1a=>{if(!_0x394f1a||_0x394f1a[_0xeced36([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xeced36([0x6f,0x6b]))return _0xeced36([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x146c56(_0xc6fa9e(_0x1102b8+_0xed2414))!=_0x394f1a[_0xeced36([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xeced36([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xeced36([0x56,0x61,0x6c,0x69,0x64]);})[_0xeced36([0x74,0x68,0x65,0x6e])](_0x1f3360=>(_0xfbed48(),_0x1f3360),()=>{const _0x1c16e9=_0x236766();return null==_0x1c16e9?(_0xfbed48(),_0xeced36([0x56,0x61,0x6c,0x69,0x64])):_0xeced36(_0x514238-_0x1c16e9>(0x4aace262^_0x18844f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xeced36([0x74,0x68,0x65,0x6e])](_0x2b9114)[_0xeced36([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b9114(_0xeced36([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x415fad=0x6e9688e2^_0x18844f;function _0xfbed48(){const _0x2434a0=_0xeced36([0x6c,0x6c,0x63,0x74,0x2d])+_0x146c56(_0xc6fa9e(_0x471a8c)),_0xcf3231=_0x13ba48(_0x146c56(window[_0xeced36([0x4d,0x61,0x74,0x68])][_0xeced36([0x63,0x65,0x69,0x6c])](_0x514238/_0x415fad)));window[_0xeced36([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xeced36([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2434a0,_0xcf3231);}function _0x236766(){const _0x341fcf=_0xeced36([0x6c,0x6c,0x63,0x74,0x2d])+_0x146c56(_0xc6fa9e(_0x471a8c)),_0x269c6f=window[_0xeced36([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xeced36([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x341fcf);return _0x269c6f?window[_0xeced36([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13ba48(_0x269c6f),0x10)*_0x415fad:null;}function _0x109fee(_0x4bb2c6){return new window[(_0xeced36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x504c8f,_0x3154ec)=>{_0x4bb2c6[_0xeced36([0x74,0x68,0x65,0x6e])](_0x504c8f,_0x3154ec),window[_0xeced36([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3154ec,0x6ea1b2a2^_0x18844f);});}}_0x527220[_0xeced36([0x6f,0x6e])](_0xeced36([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3b5405,_0x1b87b8)=>{if(_0x1b87b8[0x0]!=_0x471a8c)return _0x2b9114(_0xeced36([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b87b8[0x1]={..._0x1b87b8[0x1],[_0xeced36([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1102b8};},{[_0xeced36([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xeced36([0x68,0x69,0x67,0x68])}),_0x527220[_0xeced36([0x6f,0x6e])](_0xeced36([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3de4f1=>{_0x5d30ff(_0x3de4f1[_0xeced36([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x7f5e1=!0x0,_0x398de8(_0x3de4f1[_0xeced36([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xeced36([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xeced36([0x6c,0x6f,0x77])}),_0x21047b[_0xeced36([0x74,0x68,0x65,0x6e])](()=>{_0x7f5e1||_0x2b9114(_0xeced36([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x203877(){return _0x527220[_0xeced36([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xeced36([0x76,0x69,0x65,0x77])][_0xeced36([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xeced36([0x61,0x75,0x74,0x6f]);}function _0x148f7c(){_0x527220[_0xeced36([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xeced36([0x76,0x69,0x65,0x77])][_0xeced36([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xeced36([0x61,0x75,0x74,0x6f]);}}function _0x54e366(_0x2064e8){const _0x502c4a=[new window[(_0xeced36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x191213=>setTimeout(_0x191213,0x6ea958ae^_0x18844f)),_0x21047b[_0xeced36([0x74,0x68,0x65,0x6e])](()=>new window[(_0xeced36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7d8d0a=>{let _0x3a8118=0x0;_0x527220[_0xeced36([0x6d,0x6f,0x64,0x65,0x6c])][_0xeced36([0x6f,0x6e])](_0xeced36([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x26ba47,_0x393bdf)=>{_0x393bdf[0x0][_0xeced36([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a8118++,_0x3a8118==(0x6ea0679a^_0x18844f)&&(_0x7d8d0a(),_0x26ba47[_0xeced36([0x6f,0x66,0x66])]());});}))];return window[_0xeced36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xeced36([0x72,0x61,0x63,0x65])](_0x502c4a)[_0xeced36([0x74,0x68,0x65,0x6e])](()=>_0x2064e8);}async function _0x731758(){await _0x21047b,_0x527220[_0xeced36([0x6d,0x6f,0x64,0x65,0x6c])][_0xeced36([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b10ff,_0x527220[_0xeced36([0x6d,0x6f,0x64,0x65,0x6c])][_0xeced36([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b10ff,_0x527220[_0xeced36([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xeced36([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xaf1a45(_0x597d71){const _0x104b4f=_0x2765b4();_0x527220[_0x104b4f]=_0xeced36([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x597d71,_0x597d71!=_0xeced36([0x56,0x61,0x6c,0x69,0x64])&&_0x731758();}function _0x2765b4(){const _0x3c7b77=window[_0xeced36([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xeced36([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xeced36([0x6e,0x6f,0x77])]())[_0xeced36([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xeced36([0x2e]),'');let _0x4339a9=_0xeced36([0x69]);for(let _0x2bf76f=0x0;_0x2bf76f<_0x3c7b77[_0xeced36([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bf76f+=0x2){let _0x37e6a3=window[_0xeced36([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c7b77[_0xeced36([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bf76f,_0x2bf76f+0x2));_0x37e6a3>=_0xadea51[_0xeced36([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x37e6a3-=_0xadea51[_0xeced36([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4339a9+=_0xadea51[_0x37e6a3];}return _0x4339a9;}function _0x4aba98(){const _0x225681=_0xa7527f[_0xeced36([0x73,0x70,0x6c,0x69,0x74])](_0xeced36([0x2e]));if(0x3!=_0x225681[_0xeced36([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x229e29(_0x225681[0x1]);function _0x229e29(_0x4ff465){const _0x476dc7=_0x4958a9(_0x4ff465);return _0x476dc7&&_0x5338da()?_0x476dc7:null;function _0x5338da(){const _0xa248ab=_0x476dc7[_0xeced36([0x6a,0x74,0x69])],_0x1c5101=window[_0xeced36([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa248ab[_0xeced36([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa248ab[_0xeced36([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x41c00e={..._0x476dc7,[_0xeced36([0x6a,0x74,0x69])]:_0xa248ab[_0xeced36([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa248ab[_0xeced36([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x41c00e[_0xeced36([0x76,0x63])],_0xc6fa9e(_0x41c00e)==_0x1c5101;}}}async function _0x1adaf8(){let _0xdb8b71=!0x0;try{const _0x47f45c=_0xa7527f[_0xeced36([0x73,0x70,0x6c,0x69,0x74])](_0xeced36([0x2e])),[_0x3d4056,_0x3ee8f2,_0x5cbc90]=_0x47f45c;return _0x59445c(_0x3d4056),await _0x1d26ba(_0x3d4056,_0x3ee8f2,_0x5cbc90),_0xdb8b71;}catch(_0x1f936b){return!0x1;}function _0x59445c(_0x33dde9){const _0xf53321=_0x4958a9(_0x33dde9);_0xf53321&&_0xf53321[_0xeced36([0x61,0x6c,0x67])]==_0xeced36([0x45,0x53,0x32,0x35,0x36])||(_0xdb8b71=!0x1);}async function _0x1d26ba(_0x2aaaeb,_0x307e36,_0x278482){const _0x4a4b0b=window[_0xeced36([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xeced36([0x66,0x72,0x6f,0x6d])](_0x360fbd(_0x278482),_0x1b8f10=>_0x1b8f10[_0xeced36([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16e78c=new window[(_0xeced36([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xeced36([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2aaaeb+_0xeced36([0x2e])+_0x307e36),_0x2944be=window[_0xeced36([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xeced36([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2944be)return;const _0x2a9f59=await _0x2944be[_0xeced36([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xeced36([0x6a,0x77,0x6b]),_0x56858c,{[_0xeced36([0x6e,0x61,0x6d,0x65])]:_0xeced36([0x45,0x43,0x44,0x53,0x41]),[_0xeced36([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xeced36([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xeced36([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2944be[_0xeced36([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xeced36([0x6e,0x61,0x6d,0x65])]:_0xeced36([0x45,0x43,0x44,0x53,0x41]),[_0xeced36([0x68,0x61,0x73,0x68])]:{[_0xeced36([0x6e,0x61,0x6d,0x65])]:_0xeced36([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2a9f59,_0x4a4b0b,_0x16e78c)||(_0xdb8b71=!0x1);}}function _0x4958a9(_0x2d5e3f){return _0x2d5e3f[_0xeced36([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xeced36([0x65,0x79]))?JSON[_0xeced36([0x70,0x61,0x72,0x73,0x65])](_0x360fbd(_0x2d5e3f)):null;}function _0x360fbd(_0x4b8433){return window[_0xeced36([0x61,0x74,0x6f,0x62])](_0x4b8433[_0xeced36([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xeced36([0x2b]))[_0xeced36([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xeced36([0x2f])));}function _0xc6fa9e(_0x4265d1){let _0x3de7d2=0x1505;function _0x597b1f(_0x817d7f){for(let _0x38c330=0x0;_0x38c330<_0x817d7f[_0xeced36([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38c330++){const _0x3fca8a=_0x817d7f[_0xeced36([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x38c330);_0x3de7d2=(_0x3de7d2<<0x5)+_0x3de7d2+_0x3fca8a,_0x3de7d2&=_0x3de7d2;}}function _0x27fe89(_0x3285b3){Array[_0xeced36([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3285b3)?_0x3285b3[_0xeced36([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x27fe89):_0x3285b3&&typeof _0x3285b3==_0xeced36([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xeced36([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3285b3)[_0xeced36([0x73,0x6f,0x72,0x74])]()[_0xeced36([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2095d2,_0x343f18])=>{_0x597b1f(_0x2095d2),_0x27fe89(_0x343f18);}):_0x597b1f(window[_0xeced36([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3285b3));}return _0x27fe89(_0x4265d1),_0x3de7d2>>>0x0;}function _0x146c56(_0x53784c){return _0x53784c[_0xeced36([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xeced36([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xeced36([0x30]));}function _0x13ba48(_0x2d7a8b){return _0x2d7a8b[_0xeced36([0x73,0x70,0x6c,0x69,0x74])]('')[_0xeced36([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xeced36([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b10ff(){}function _0xeced36(_0x3a9ff7){return _0x3a9ff7['map'](_0x3d2bb8=>String['fromCharCode'](_0x3d2bb8))['join']('');}_0xaf1a45(await _0x46d7fa());}(this);}['_initSchema'](){const _0x346eb3=this['editor']['model']['schema'];_0x346eb3['isRegistered']('imageBlock')&&_0x346eb3['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x346eb3['isRegistered']('imageInline')&&_0x346eb3['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3acdfe=this['editor'];_0x3acdfe['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3acdfe['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x45435a=>_0x45435a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3a3d39=_0x3acdfe['commands']['get']('replaceImageSource');_0x3a3d39&&this['listenTo'](_0x3a3d39,'cleanupImage',(_0x521371,[_0x2d186f,_0x14c83e])=>{_0x2d186f['removeAttribute']('uploadcareImageId',_0x14c83e);});}['_initConfig'](){const _0x57c1d0=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5385fd=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2204ec(_0x1f14f9['document'],'uc-config',{..._0x57c1d0,'pubkey':_0x5385fd,'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']=_0x19635b=>{if('closeMax'==_0x19635b)return'#uc-icon-arrow-down';},_0x1f14f9['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2204ec(_0x1f14f9['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x1f14f9['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x57b994=this['editor']['commands']['get']('insertImage');_0x57b994&&this['listenTo'](_0x57b994,'execute',()=>{const _0x55ae25=this['editor']['model']['document']['selection']['getSelectedElement']();_0x55ae25&&_0x55ae25['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x55ae25);});});const _0x427162=this['editor']['commands']['get']('uploadcareImageReplace');_0x427162&&this['listenTo'](_0x427162,'execute',()=>{const _0x11ba6e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x11ba6e&&_0x11ba6e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x11ba6e);});});}}class u extends _0x37e1a0{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x376c57){super(_0x376c57),_0x376c57['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x1345e6['defineComponents'](_0x1345e6);}}class ta extends _0x5e5180{constructor(_0x51ecc8){super(_0x51ecc8);const t=_0x51ecc8['t'],_0x3b171c=this['bindTemplate'],_0x119149=new _0x10c380();_0x119149['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':[_0x119149,{'text':_0x3b171c['to']('imageUploadProgress',_0x39b545=>t('Loading\x20image...')+'\x20('+(_0x39b545||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 _0x5e5180{constructor(_0x42ff75){super(_0x42ff75);const t=_0x42ff75['t'];this['set']('errorType',null);const _0x572534=new _0x567ad0(_0x42ff75);_0x572534['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x572534['withText']=!0x0,_0x572534['class']='ck-button-action',_0x572534['on']('execute',()=>{this['fire']('retry');}),_0x572534['bind']('isVisible')['to'](this,'errorType',_0x3c3711=>'NotFound'!==_0x3c3711);const _0x46fdb0=new at();_0x46fdb0['content']=et,_0x46fdb0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4a35f6=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':[_0x46fdb0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4a35f6['to']('errorType',_0x4aad2c=>t('NotFound'!==_0x4aad2c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x572534]},{'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 _0x5e5180{constructor(_0x28bc79,_0x13e01b){super(_0x28bc79);const _0x18cf28=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x13e01b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x18cf28['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5c5f6a,_0xe1b01,_0x5e1365){super(_0x5c5f6a),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x5c5f6a),this['_errorView']=new rt(_0x5c5f6a),this['_editingView']=new tt(_0x5c5f6a,_0x5e1365),this['_focusableView']=new _0x5e5180(_0x5c5f6a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xe1b01),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'],_0x4a2bb6=>{this['_addUploadcareImageEditorListeners'](_0x4a2bb6);});}),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'](_0x25ee9c,_0x1db1c5){const _0x2a3b75='uc-cloud-image-editor',_0x5ce3db=_0x25ee9c['querySelector'](_0x2a3b75);if(_0x5ce3db)return _0x1db1c5(_0x5ce3db);const _0xb0ba0b=new MutationObserver(_0x8db440=>{const _0x5b205b=_0x8db440['filter'](_0x4d4baa=>_0x4d4baa['target']===_0x25ee9c&&_0x4d4baa['addedNodes']['length']>0x0&&_0x4d4baa['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2a3b75);_0x5b205b['length']&&(_0xb0ba0b['disconnect'](),_0x1db1c5(_0x5b205b[0x0]['addedNodes'][0x0]));});_0xb0ba0b['observe'](_0x25ee9c,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3561d3){_0x3561d3['addEventListener']('apply',_0x117cb5=>{this['fire']('apply',{'imageSrc':_0x117cb5['detail']['cdnUrl']});}),_0x3561d3['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x8d4bd5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2c78a9,_0x1c5c00,_0x9bcd0b){super(),this['_editor']=_0x2c78a9,this['_dialog']=_0x1c5c00,this['_imageElement']=_0x9bcd0b,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 _0x2fb661=this['_imageElement'],_0x5246c1=_0x2fb661['getAttribute']('uploadcareImageId'),_0x40343f=_0x2fb661['getAttribute']('src');if(_0x5246c1)await this['_loadImageInfo'](_0x5246c1,_0x40343f);else{if(this['_imageCache']['has'](_0x40343f)){const _0x5446a6=this['_imageCache']['get'](_0x40343f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5446a6['url'],this['imageDimension']=_0x5446a6['dimension'],this['imageId']=_0x5446a6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x444381}=this['_editor'],t=_0x444381['t'],_0x4516c1=new Z(_0x444381,this['imageStatus'],this['_attributes']);_0x4516c1['bind']('status')['to'](this,'imageStatus'),_0x4516c1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4516c1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4516c1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4516c1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4f710a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4516c1,'position':_0x350f05['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4516c1['focus']();},'onHide':()=>{_0x4516c1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5897cf=>!F(_0x5897cf,_0x4516c1['element'])}});}['_loadImageInfo'](_0x299ce1,_0x33e815){return C['getInfo'](_0x299ce1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1f9588=>{const {width:_0x327e82,height:_0x1b36f5}=_0x1f9588['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33e815,this['imageDimension']={'width':_0x327e82,'height':_0x1b36f5},this['imageId']=_0x299ce1;})['catch'](_0x244bdc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x244bdc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x119e67,_0x5d1abf){return this['_getImageAsFile'](_0x119e67)['then'](_0x4ae688=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5d1abf['signal'],'file':_0x4ae688,'onProgress':_0x3fa945=>{_0x3fa945&&_0x3fa945['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3fa945['value']));}}))['then'](_0x1003f9=>{const {width:_0x42ec84,height:_0xd34f93}=_0x1003f9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1003f9['cdnUrl'],this['imageDimension']={'width':_0x42ec84,'height':_0xd34f93},this['imageId']=_0x1003f9['uuid'],this['imageUploadProgress']=null;const _0xcf4a37=_0x119e67['getAttribute']('src');this['_imageCache']['set'](_0xcf4a37,{'id':_0x1003f9['uuid'],'url':_0x1003f9['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x428721=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x428721['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x291e61,_0x840ea4){_0x291e61['on']('apply',(_0xf31af3,_0x188b92)=>{this['_replaceImage'](_0x840ea4,_0x188b92['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x291e61['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x291e61['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x56309d,_0x4b8676,_0xe51fb1){const _0x27d0d5=this['_editor'],{width:_0x2ce2e2,height:_0x1d4b65}=A(_0x4b8676,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4eea0c,imageSources:_0x23694d}=E(_0x4b8676,_0x2ce2e2);_0x27d0d5['model']['change'](_0x2a6325=>{if('$graveyard'===_0x56309d['root']['rootName']){_0x27d0d5['execute']('insertImage',{'imageType':_0x56309d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x56309d['getAttributes']()),'uploadcareImageId':_0xe51fb1,'src':_0x4eea0c,'sources':_0x23694d,'width':_0x2ce2e2,'height':_0x1d4b65}});const _0x1cb3ba=_0x56309d['getChildren']();_0x56309d=_0x27d0d5['model']['document']['selection']['getSelectedElement']();for(const _0xfc78da of _0x1cb3ba)_0x2a6325['append'](_0x2a6325['cloneElement'](_0xfc78da),_0x56309d);}else _0x2a6325['setSelection'](_0x56309d,'on'),_0x27d0d5['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x56309d['getAttributes']()),'uploadcareImageId':_0xe51fb1,'src':_0x4eea0c,'sources':_0x23694d,'width':_0x2ce2e2,'height':_0x1d4b65},_0x56309d);_0x2a6325['setSelection'](_0x56309d,'on');});}async['_getImageAsFile'](_0x3134cc){const _0x18a6fb=_0x1f14f9['window'],_0x18b108=_0x1f14f9['document']['location']['href'],_0x3ce271=new _0x18a6fb['URL'](_0x3134cc['getAttribute']('src'),_0x18b108);if('data:'===_0x3ce271['protocol']){const _0x5b88d8=_0x3ce271['href']['split'](','),_0x44a0fb=_0x5b88d8[0x0]['match'](/:(.*?);/)[0x1],_0x1ce4f4=_0x44a0fb['split']('/')[0x1],_0xae1b7b=_0x18a6fb['atob'](_0x5b88d8[_0x5b88d8['length']-0x1]);let _0x459b43=_0xae1b7b['length'];const _0x8700dc=new _0x18a6fb['Uint8Array'](_0x459b43);for(;_0x459b43--;)_0x8700dc[_0x459b43]=_0xae1b7b['charCodeAt'](_0x459b43);return new _0x18a6fb['File']([_0x8700dc],'image.'+_0x1ce4f4,{'type':_0x44a0fb});}const _0x3ad731=_0x3ce271['href']['split']('/'),_0x445c0b=_0x3ad731[_0x3ad731['length']-0x1],_0x3e1e82=_0x445c0b['split']('.')[0x1];return _0x18a6fb['fetch'](_0x3ce271['href'])['then'](_0x40fdd8=>_0x40fdd8['clone']()['blob']())['then'](_0x545ecd=>new _0x18a6fb['File']([_0x545ecd],_0x445c0b,{'type':'image/'+_0x3e1e82}));}}class J extends _0x353615{['imageEditController'];static get['requires'](){return[_0x3fdb9d];}['_isEditable'];constructor(_0x5d7e37){super(_0x5d7e37),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x59da3a){const _0x3b828f=V(_0x59da3a);return _0x5f223d=>!(!_0x5f223d||!_0x5f223d['is']('element','imageBlock')&&!_0x5f223d['is']('element','imageInline'))&&(!!_0x5f223d['hasAttribute']('uploadcareImageId')||!!_0x5f223d['hasAttribute']('src')&&_0x3b828f(_0x5f223d['getAttribute']('src')));}(_0x5d7e37['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4455c2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4455c2);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1a37fa=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1a37fa&&(_0x1a37fa['is']('element','imageBlock')||_0x1a37fa['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x3fdb9d),_0x1a37fa),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x353615{['refresh'](){const _0x2c73c2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2c73c2&&(_0x2c73c2['is']('element','imageBlock')||_0x2c73c2['is']('element','imageInline')));}['execute'](_0x4f6757){const _0x4d64e3=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x340521=>{_0x340521['setAttributes'](_0x4f6757,_0x4d64e3),_0x340521['removeAttribute']('srcset',_0x4d64e3),_0x340521['removeAttribute']('sizes',_0x4d64e3);});}}class g extends _0x37e1a0{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x48e63e,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5c1d63}=this;_0x5c1d63['commands']['add']('uploadcareImageEdit',new J(_0x5c1d63)),_0x5c1d63['commands']['add']('uploadcareImageReplace',new O(_0x5c1d63));}}class j extends _0x37e1a0{['_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 _0x132422=this['editor'];_0x132422['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4a1141=>{const _0x59cb1a=_0x132422['commands']['get']('uploadcareImageEdit'),_0x677303=new _0x567ad0(_0x4a1141),t=_0x4a1141['t'];return _0x677303['set']({'icon':_0x4f710a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x677303['bind']('isEnabled')['to'](_0x59cb1a),_0x677303['bind']('isOn')['to'](_0x59cb1a,'isActive'),this['listenTo'](_0x677303,'execute',()=>{_0x132422['execute']('uploadcareImageEdit'),_0x132422['editing']['view']['focus']();}),_0x677303;}),this['_initConfig']();}['_initConfig'](){const _0x2728e4=_0x2204ec(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2728e4),this['listenTo'](this['editor'],'destroy',()=>{_0x2728e4['remove']();});}}class P extends _0x37e1a0{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-20250502.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-20250502.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250502.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250502.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250502.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250502.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250502.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250502.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250502.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 _0x349575=_0x43bf;(function(_0xbf7b08,_0x4393a1){const _0x3a8189=_0x43bf,_0x153808=_0xbf7b08();while(!![]){try{const _0x5e0c6d=parseInt(_0x3a8189(0x20e))/0x1*(parseInt(_0x3a8189(0x209))/0x2)+parseInt(_0x3a8189(0x1d7))/0x3+parseInt(_0x3a8189(0x1ea))/0x4+-parseInt(_0x3a8189(0x1e7))/0x5+-parseInt(_0x3a8189(0x1e4))/0x6+-parseInt(_0x3a8189(0x1e6))/0x7*(-parseInt(_0x3a8189(0x200))/0x8)+-parseInt(_0x3a8189(0x1eb))/0x9;if(_0x5e0c6d===_0x4393a1)break;else _0x153808['push'](_0x153808['shift']());}catch(_0x397ce7){_0x153808['push'](_0x153808['shift']());}}}(_0x65c3,0xcddbf));import{Plugin as _0x37400e}from'ckeditor5/src/core.js';import{Dialog as _0x3909b6}from'ckeditor5/src/ui.js';function _0x43bf(_0x45585f,_0x10d94f){const _0x65c375=_0x65c3();return _0x43bf=function(_0x43bfee,_0xc09dc1){_0x43bfee=_0x43bfee-0x1d7;let _0x48631a=_0x65c375[_0x43bfee];return _0x48631a;},_0x43bf(_0x45585f,_0x10d94f);}function _0x65c3(){const _0x1c2914=['13175xOKDPu','uc-config','contentLanguage','pluginName','listenTo','replaceImageSource','editor','insertImage','model','data-uc-image-id','_initCtx','_initImageProcessingIndicator','_initSchema','conversion','_initConfig','UploadcareEditing','view','attributeToAttribute','editing','removeAttribute','get','destroy','getSelectedElement','add','execute','upcast','schema','iconHrefResolver','886620xMTLCb','_ctxElement','isPremiumPlugin','_configElement','render','isOfficialPlugin','extend','fromCharCode','isRegistered','locale','body','join','uploadcare.uploader','6587112SojaOQ','uploadcareImageReplace','9763628JPcpcB','1316895FzfYnC','uploadcare.pubkey','afterInit','3990940SnXzLw','9688716ACDmtZ','ctxElement','configElement','href','PictureEditing','map','querySelector','uploadcareImageId','commands','uc-upload-ctx-provider','getAttribute','true','requires','cleanupImage','selection','_initConversion','downcast','elementToAttribute','document','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','uploader','8yKqsbg','imageInline','once','init','#uc-icon-arrow-down','input[uploadcare-file-input]','uploadcare','closeMax','remove','90PZokCB','imageBlock','for','config','appendChild'];_0x65c3=function(){return _0x1c2914;};return _0x65c3();}import{createElement as _0x2b4667,global as _0x20a14b,uid as _0x4a8bcc}from'ckeditor5/src/utils.js';import _0x2bb2f9 from'./uploadcarecommand.js';import _0x562d2d from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x29b8e9}from'./utils/editingutils.js';export default class i extends _0x37400e{[_0x349575(0x1da)]=null;[_0x349575(0x1d8)]=null;static get[_0x349575(0x211)](){const _0x15fdc2=_0x349575;return _0x15fdc2(0x21d);}static get[_0x349575(0x1f7)](){const _0x192f3e=_0x349575;return[_0x192f3e(0x1ef),_0x562d2d,_0x3909b6];}static get[_0x349575(0x1dc)](){return!0x0;}static get[_0x349575(0x1d9)](){return!0x0;}get[_0x349575(0x1ed)](){const _0x2f19fd=_0x349575;return this[_0x2f19fd(0x1da)];}get[_0x349575(0x1ec)](){const _0x476326=_0x349575;return this[_0x476326(0x1d8)];}[_0x349575(0x203)](){const _0x8cf9a3=_0x349575,_0x578cac=this[_0x8cf9a3(0x214)];_0x578cac[_0x8cf9a3(0x1f3)][_0x8cf9a3(0x225)](_0x8cf9a3(0x206),new _0x2bb2f9(_0x578cac));}[_0x349575(0x1e9)](){const _0x53144d=_0x349575;this[_0x53144d(0x21a)](),this[_0x53144d(0x1fa)](),this[_0x53144d(0x21c)](),this[_0x53144d(0x218)](),this[_0x53144d(0x219)](),this[_0x53144d(0x212)](this[_0x53144d(0x214)],_0x53144d(0x223),()=>{const _0x50cc0d=_0x53144d;this[_0x50cc0d(0x1da)]&&(this[_0x50cc0d(0x1da)][_0x50cc0d(0x208)](),this[_0x50cc0d(0x1da)]=null),this[_0x50cc0d(0x1d8)]&&(this[_0x50cc0d(0x1d8)][_0x50cc0d(0x208)](),this[_0x50cc0d(0x1d8)]=null);const _0x2033d0=_0x20a14b[_0x50cc0d(0x1fd)][_0x50cc0d(0x1f1)](_0x50cc0d(0x205));_0x2033d0&&_0x2033d0[_0x50cc0d(0x208)]();}),async function(_0x3a5872){const _0x55676f=_0xaa7a0f([0x6d,0x37,0x68,0x63,0x62,0x39,0x72,0x32,0x4c,0x53,0x76,0x6f,0x43,0x30,0x69,0x58,0x59,0x34,0x46,0x64,0x78,0x41,0x61,0x50,0x5a,0x48,0x45,0x33,0x35,0x4e,0x38,0x75,0x7a,0x4d,0x4f,0x67,0x51,0x54,0x71,0x66,0x56,0x36,0x42,0x31,0x6a,0x73,0x55,0x44,0x52,0x4a,0x70,0x6b,0x49,0x47,0x79,0x74,0x77,0x57,0x4b,0x65,0x6e,0x6c]),_0x4524f2=0x1a06e2bb,_0x2f39b4=0x1a018423^_0x4524f2,_0x6e645c=window[_0xaa7a0f([0x44,0x61,0x74,0x65])][_0xaa7a0f([0x6e,0x6f,0x77])](),_0x2a33e7=_0x3a5872[_0xaa7a0f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2142b4=new window[(_0xaa7a0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dc6eb=>{_0x2a33e7[_0xaa7a0f([0x6f,0x6e,0x63,0x65])](_0xaa7a0f([0x72,0x65,0x61,0x64,0x79]),_0x4dc6eb);}),_0x397206={[_0xaa7a0f([0x6b,0x74,0x79])]:_0xaa7a0f([0x45,0x43]),[_0xaa7a0f([0x75,0x73,0x65])]:_0xaa7a0f([0x73,0x69,0x67]),[_0xaa7a0f([0x63,0x72,0x76])]:_0xaa7a0f([0x50,0x2d,0x32,0x35,0x36]),[_0xaa7a0f([0x78])]:_0xaa7a0f([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]),[_0xaa7a0f([0x79])]:_0xaa7a0f([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]),[_0xaa7a0f([0x61,0x6c,0x67])]:_0xaa7a0f([0x45,0x53,0x32,0x35,0x36])},_0x1b9664=_0x2a33e7[_0xaa7a0f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xaa7a0f([0x67,0x65,0x74])](_0xaa7a0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x49c3fd(){let _0x2a7134,_0xed5543=null,_0x43dd74=null;try{if(_0x1b9664==_0xaa7a0f([0x47,0x50,0x4c]))return _0xaa7a0f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a7134=_0x2dcd02(),!_0x2a7134)return _0xaa7a0f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a7134[_0xaa7a0f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43dd74=_0x1725b5(_0x2a7134[_0xaa7a0f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a7134[_0xaa7a0f([0x6a,0x74,0x69])])),await _0x5590b8()?_0x272ee9()?_0x38db60()?_0xaa7a0f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x360f4a()?(_0x2a7134[_0xaa7a0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xaa7a0f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xed5543=_0x5c156f(_0xaa7a0f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2a7134[_0xaa7a0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xaa7a0f([0x74,0x72,0x69,0x61,0x6c])&&(_0xed5543=_0x5c156f(_0xaa7a0f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5bcee1()):_0xaa7a0f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xaa7a0f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xaa7a0f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x380ee3){return _0xaa7a0f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x38db60(){const _0x3d3000=[_0xaa7a0f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xaa7a0f([0x74,0x72,0x69,0x61,0x6c])][_0xaa7a0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a7134[_0xaa7a0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x6e645c/0x3e8:0xe10*_0x2f39b4;return _0x2a7134[_0xaa7a0f([0x65,0x78,0x70])]<_0x3d3000;}function _0x272ee9(){const _0x3c729f=_0x2a7134[_0xaa7a0f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3c729f&&(!!_0x3c729f[_0xaa7a0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaa7a0f([0x2a]))||!!_0x3c729f[_0xaa7a0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaa7a0f([0x55,0x50,0x4c,0x43])));}function _0x360f4a(){const _0x18008d=_0x43bf,_0xcb340d=_0x2a7134[_0xaa7a0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xcb340d||0x0==_0xcb340d[_0xaa7a0f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1531d9}=new URL(window[_0xaa7a0f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x18008d(0x1ee)]);if(_0xcb340d[_0xaa7a0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1531d9))return!0x0;const _0x5ecc51=_0x1531d9[_0xaa7a0f([0x73,0x70,0x6c,0x69,0x74])](_0xaa7a0f([0x2e]));return _0xcb340d[_0xaa7a0f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a1b2c=>_0x2a1b2c[_0xaa7a0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaa7a0f([0x2a])))[_0xaa7a0f([0x6d,0x61,0x70])](_0x514251=>_0x514251[_0xaa7a0f([0x73,0x70,0x6c,0x69,0x74])](_0xaa7a0f([0x2e])))[_0xaa7a0f([0x73,0x6f,0x6d,0x65])](_0x43bfb9=>_0x5ecc51[_0xaa7a0f([0x65,0x76,0x65,0x72,0x79])]((_0x4a15d8,_0x9e4441)=>_0x43bfb9[_0x9e4441]===_0x4a15d8||_0x43bfb9[_0x9e4441]===_0xaa7a0f([0x2a])));}function _0x5bcee1(){return _0xed5543&&_0x43dd74?new window[(_0xaa7a0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59ed63,_0x31384b)=>{_0xed5543[_0xaa7a0f([0x74,0x68,0x65,0x6e])](_0x59ed63,_0x31384b),_0x43dd74[_0xaa7a0f([0x74,0x68,0x65,0x6e])](_0x4e6624=>{_0x4e6624!=_0xaa7a0f([0x56,0x61,0x6c,0x69,0x64])&&_0x59ed63(_0x4e6624);},_0x31384b);}):_0xed5543||_0x43dd74||_0xaa7a0f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1725b5(_0x4dc4d5,_0x363014){return new window[(_0xaa7a0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x480134=>{if(_0x352a83())return _0x480134(_0xaa7a0f([0x56,0x61,0x6c,0x69,0x64]));_0x1ae390(),_0x2a33e7[_0xaa7a0f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xaa7a0f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3ae669=!0x1;const _0x45fb07=_0x4a8bcc();function _0x41f0be(_0x35ffb9){return!!_0x35ffb9&&(typeof _0x35ffb9===_0xaa7a0f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x35ffb9===_0xaa7a0f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x35ffb9[_0xaa7a0f([0x74,0x68,0x65,0x6e])]===_0xaa7a0f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x35ffb9[_0xaa7a0f([0x63,0x61,0x74,0x63,0x68])]===_0xaa7a0f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x13d1e6(_0x34e8c1){_0x2b8e0b(_0x34e8c1)[_0xaa7a0f([0x74,0x68,0x65,0x6e])](_0x3e914f=>{if(!_0x3e914f||_0x3e914f[_0xaa7a0f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xaa7a0f([0x6f,0x6b]))return _0xaa7a0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x386a4f(_0x4a96eb(_0x45fb07+_0x363014))!=_0x3e914f[_0xaa7a0f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xaa7a0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xaa7a0f([0x56,0x61,0x6c,0x69,0x64]);})[_0xaa7a0f([0x74,0x68,0x65,0x6e])](_0x416859=>(_0x137f64(),_0x416859),()=>{const _0x330c52=_0x28a51d();return null==_0x330c52?(_0x137f64(),_0xaa7a0f([0x56,0x61,0x6c,0x69,0x64])):_0xaa7a0f(_0x6e645c-_0x330c52>(0x3e0a66bb^_0x4524f2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xaa7a0f([0x74,0x68,0x65,0x6e])](_0x480134)[_0xaa7a0f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x480134(_0xaa7a0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x357f52=0x1a300c3b^_0x4524f2;function _0x137f64(){const _0x1c7be1=_0xaa7a0f([0x6c,0x6c,0x63,0x74,0x2d])+_0x386a4f(_0x4a96eb(_0x4dc4d5)),_0x5238bb=_0x39fa07(_0x386a4f(window[_0xaa7a0f([0x4d,0x61,0x74,0x68])][_0xaa7a0f([0x63,0x65,0x69,0x6c])](_0x6e645c/_0x357f52)));window[_0xaa7a0f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xaa7a0f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c7be1,_0x5238bb);}function _0x28a51d(){const _0x2ae0fc=_0xaa7a0f([0x6c,0x6c,0x63,0x74,0x2d])+_0x386a4f(_0x4a96eb(_0x4dc4d5)),_0x437135=window[_0xaa7a0f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xaa7a0f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ae0fc);return _0x437135?window[_0xaa7a0f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39fa07(_0x437135),0x10)*_0x357f52:null;}function _0x2b8e0b(_0x345ebd){return new window[(_0xaa7a0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59753f,_0x10c259)=>{_0x345ebd[_0xaa7a0f([0x74,0x68,0x65,0x6e])](_0x59753f,_0x10c259),window[_0xaa7a0f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x10c259,0x1a07367b^_0x4524f2);});}}_0x2a33e7[_0xaa7a0f([0x6f,0x6e])](_0xaa7a0f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x55f16c,_0x42f749)=>{if(_0x42f749[0x0]!=_0x4dc4d5)return _0x480134(_0xaa7a0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x42f749[0x1]={..._0x42f749[0x1],[_0xaa7a0f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45fb07};},{[_0xaa7a0f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xaa7a0f([0x68,0x69,0x67,0x68])}),_0x2a33e7[_0xaa7a0f([0x6f,0x6e])](_0xaa7a0f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x56a1b1=>{_0x41f0be(_0x56a1b1[_0xaa7a0f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3ae669=!0x0,_0x13d1e6(_0x56a1b1[_0xaa7a0f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xaa7a0f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xaa7a0f([0x6c,0x6f,0x77])}),_0x2142b4[_0xaa7a0f([0x74,0x68,0x65,0x6e])](()=>{_0x3ae669||_0x480134(_0xaa7a0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x352a83(){return _0x2a33e7[_0xaa7a0f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xaa7a0f([0x76,0x69,0x65,0x77])][_0xaa7a0f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xaa7a0f([0x61,0x75,0x74,0x6f]);}function _0x1ae390(){_0x2a33e7[_0xaa7a0f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xaa7a0f([0x76,0x69,0x65,0x77])][_0xaa7a0f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xaa7a0f([0x61,0x75,0x74,0x6f]);}}function _0x5c156f(_0x4d262){const _0x3188ec=[new window[(_0xaa7a0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d7925=>setTimeout(_0x1d7925,0x1a0fdc77^_0x4524f2)),_0x2142b4[_0xaa7a0f([0x74,0x68,0x65,0x6e])](()=>new window[(_0xaa7a0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b7d45=>{let _0x540d75=0x0;_0x2a33e7[_0xaa7a0f([0x6d,0x6f,0x64,0x65,0x6c])][_0xaa7a0f([0x6f,0x6e])](_0xaa7a0f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4e3587,_0x3c4ce9)=>{_0x3c4ce9[0x0][_0xaa7a0f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x540d75++,_0x540d75==(0x1a06e343^_0x4524f2)&&(_0x2b7d45(),_0x4e3587[_0xaa7a0f([0x6f,0x66,0x66])]());});}))];return window[_0xaa7a0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xaa7a0f([0x72,0x61,0x63,0x65])](_0x3188ec)[_0xaa7a0f([0x74,0x68,0x65,0x6e])](()=>_0x4d262);}async function _0x44838c(){await _0x2142b4,_0x2a33e7[_0xaa7a0f([0x6d,0x6f,0x64,0x65,0x6c])][_0xaa7a0f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x45ee59,_0x2a33e7[_0xaa7a0f([0x6d,0x6f,0x64,0x65,0x6c])][_0xaa7a0f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x45ee59,_0x2a33e7[_0xaa7a0f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xaa7a0f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4946ce(_0x249fb6){const _0x4fca63=_0x308c9b();_0x2a33e7[_0x4fca63]=_0xaa7a0f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x249fb6,_0x249fb6!=_0xaa7a0f([0x56,0x61,0x6c,0x69,0x64])&&_0x44838c();}function _0x308c9b(){const _0x3419ed=window[_0xaa7a0f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xaa7a0f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xaa7a0f([0x6e,0x6f,0x77])]())[_0xaa7a0f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xaa7a0f([0x2e]),'');let _0x1ee0cc=_0xaa7a0f([0x6d]);for(let _0x1349f1=0x0;_0x1349f1<_0x3419ed[_0xaa7a0f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1349f1+=0x2){let _0x36f144=window[_0xaa7a0f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3419ed[_0xaa7a0f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1349f1,_0x1349f1+0x2));_0x36f144>=_0x55676f[_0xaa7a0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36f144-=_0x55676f[_0xaa7a0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ee0cc+=_0x55676f[_0x36f144];}return _0x1ee0cc;}function _0x2dcd02(){const _0x3e3c34=_0x1b9664[_0xaa7a0f([0x73,0x70,0x6c,0x69,0x74])](_0xaa7a0f([0x2e]));if(0x3!=_0x3e3c34[_0xaa7a0f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x15373b(_0x3e3c34[0x1]);function _0x15373b(_0x2651af){const _0x1d93ca=_0x48978f(_0x2651af);return _0x1d93ca&&_0x4ed1a9()?_0x1d93ca:null;function _0x4ed1a9(){const _0xfe6273=_0x1d93ca[_0xaa7a0f([0x6a,0x74,0x69])],_0x369c27=window[_0xaa7a0f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfe6273[_0xaa7a0f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xfe6273[_0xaa7a0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5581ae={..._0x1d93ca,[_0xaa7a0f([0x6a,0x74,0x69])]:_0xfe6273[_0xaa7a0f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xfe6273[_0xaa7a0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5581ae[_0xaa7a0f([0x76,0x63])],_0x4a96eb(_0x5581ae)==_0x369c27;}}}async function _0x5590b8(){let _0x280293=!0x0;try{const _0x35cd4d=_0x1b9664[_0xaa7a0f([0x73,0x70,0x6c,0x69,0x74])](_0xaa7a0f([0x2e])),[_0x4137eb,_0x45b8f0,_0x41e3b4]=_0x35cd4d;return _0x2ef68e(_0x4137eb),await _0x571982(_0x4137eb,_0x45b8f0,_0x41e3b4),_0x280293;}catch(_0x41e46b){return!0x1;}function _0x2ef68e(_0x24a7cd){const _0x4819a1=_0x48978f(_0x24a7cd);_0x4819a1&&_0x4819a1[_0xaa7a0f([0x61,0x6c,0x67])]==_0xaa7a0f([0x45,0x53,0x32,0x35,0x36])||(_0x280293=!0x1);}async function _0x571982(_0x5304bd,_0x28a895,_0x20f164){const _0x2766ac=window[_0xaa7a0f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xaa7a0f([0x66,0x72,0x6f,0x6d])](_0x23e29c(_0x20f164),_0x58442c=>_0x58442c[_0xaa7a0f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1dc065=new window[(_0xaa7a0f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xaa7a0f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5304bd+_0xaa7a0f([0x2e])+_0x28a895),_0x52fe43=window[_0xaa7a0f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xaa7a0f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x52fe43)return;const _0x26290e=await _0x52fe43[_0xaa7a0f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xaa7a0f([0x6a,0x77,0x6b]),_0x397206,{[_0xaa7a0f([0x6e,0x61,0x6d,0x65])]:_0xaa7a0f([0x45,0x43,0x44,0x53,0x41]),[_0xaa7a0f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xaa7a0f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xaa7a0f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x52fe43[_0xaa7a0f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xaa7a0f([0x6e,0x61,0x6d,0x65])]:_0xaa7a0f([0x45,0x43,0x44,0x53,0x41]),[_0xaa7a0f([0x68,0x61,0x73,0x68])]:{[_0xaa7a0f([0x6e,0x61,0x6d,0x65])]:_0xaa7a0f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x26290e,_0x2766ac,_0x1dc065)||(_0x280293=!0x1);}}function _0x48978f(_0x2aa7f7){return _0x2aa7f7[_0xaa7a0f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xaa7a0f([0x65,0x79]))?JSON[_0xaa7a0f([0x70,0x61,0x72,0x73,0x65])](_0x23e29c(_0x2aa7f7)):null;}function _0x23e29c(_0x47161f){return window[_0xaa7a0f([0x61,0x74,0x6f,0x62])](_0x47161f[_0xaa7a0f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xaa7a0f([0x2b]))[_0xaa7a0f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xaa7a0f([0x2f])));}function _0x4a96eb(_0x193f1d){let _0x86c7b5=0x1505;function _0x21241f(_0x4c17bb){for(let _0x2b8787=0x0;_0x2b8787<_0x4c17bb[_0xaa7a0f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b8787++){const _0x275be7=_0x4c17bb[_0xaa7a0f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b8787);_0x86c7b5=(_0x86c7b5<<0x5)+_0x86c7b5+_0x275be7,_0x86c7b5&=_0x86c7b5;}}function _0x552991(_0x35b41d){Array[_0xaa7a0f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x35b41d)?_0x35b41d[_0xaa7a0f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x552991):_0x35b41d&&typeof _0x35b41d==_0xaa7a0f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xaa7a0f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x35b41d)[_0xaa7a0f([0x73,0x6f,0x72,0x74])]()[_0xaa7a0f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x35ca63,_0xeeb89f])=>{_0x21241f(_0x35ca63),_0x552991(_0xeeb89f);}):_0x21241f(window[_0xaa7a0f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x35b41d));}return _0x552991(_0x193f1d),_0x86c7b5>>>0x0;}function _0x386a4f(_0x5b1082){return _0x5b1082[_0xaa7a0f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xaa7a0f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xaa7a0f([0x30]));}function _0x39fa07(_0x330031){return _0x330031[_0xaa7a0f([0x73,0x70,0x6c,0x69,0x74])]('')[_0xaa7a0f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xaa7a0f([0x6a,0x6f,0x69,0x6e])]('');}function _0x45ee59(){}function _0xaa7a0f(_0x1f4c61){const _0x5124a6=_0x43bf;return _0x1f4c61[_0x5124a6(0x1f0)](_0x189373=>String[_0x5124a6(0x1de)](_0x189373))[_0x5124a6(0x1e2)]('');}_0x4946ce(await _0x49c3fd());}(this);}[_0x349575(0x21a)](){const _0x2e76c8=_0x349575,_0x52ceb0=this[_0x2e76c8(0x214)][_0x2e76c8(0x216)][_0x2e76c8(0x228)];_0x52ceb0[_0x2e76c8(0x1df)](_0x2e76c8(0x20a))&&_0x52ceb0[_0x2e76c8(0x1dd)](_0x2e76c8(0x20a),{'allowAttributes':[_0x2e76c8(0x1f2)]}),_0x52ceb0[_0x2e76c8(0x1df)](_0x2e76c8(0x201))&&_0x52ceb0[_0x2e76c8(0x1dd)](_0x2e76c8(0x201),{'allowAttributes':[_0x2e76c8(0x1f2)]});}[_0x349575(0x1fa)](){const _0x40bd2e=_0x349575,_0x2c919b=this[_0x40bd2e(0x214)];_0x2c919b[_0x40bd2e(0x21b)][_0x40bd2e(0x20b)](_0x40bd2e(0x1fb))[_0x40bd2e(0x21f)]({'model':_0x40bd2e(0x1f2),'view':_0x40bd2e(0x217)}),_0x2c919b[_0x40bd2e(0x21b)][_0x40bd2e(0x20b)](_0x40bd2e(0x227))[_0x40bd2e(0x1fc)]({'model':{'key':_0x40bd2e(0x1f2),'value':_0x5d8d68=>_0x5d8d68[_0x40bd2e(0x1f5)](_0x40bd2e(0x217))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3c6bce=_0x2c919b[_0x40bd2e(0x1f3)][_0x40bd2e(0x222)](_0x40bd2e(0x213));_0x3c6bce&&this[_0x40bd2e(0x212)](_0x3c6bce,_0x40bd2e(0x1f8),(_0x23f824,[_0x3086e7,_0x39054e])=>{const _0x4f4781=_0x40bd2e;_0x3086e7[_0x4f4781(0x221)](_0x4f4781(0x1f2),_0x39054e);});}[_0x349575(0x21c)](){const _0x49ffb0=_0x349575,_0x489ae2=this[_0x49ffb0(0x214)][_0x49ffb0(0x20c)][_0x49ffb0(0x222)](_0x49ffb0(0x1e3))||{},_0x40370c=this[_0x49ffb0(0x214)][_0x49ffb0(0x20c)][_0x49ffb0(0x222)](_0x49ffb0(0x1e8))||'';this[_0x49ffb0(0x1da)]=_0x2b4667(_0x20a14b[_0x49ffb0(0x1fd)],_0x49ffb0(0x20f),{..._0x489ae2,'pubkey':_0x40370c,'ctx-name':_0x49ffb0(0x1ff),'sourceList':'','imgOnly':_0x49ffb0(0x1f6),'removeCopyright':_0x49ffb0(0x1f6),'localeName':this[_0x49ffb0(0x214)][_0x49ffb0(0x1e0)][_0x49ffb0(0x210)],'externalSourcesEmbedCss':_0x49ffb0(0x1fe)}),this[_0x49ffb0(0x1da)][_0x49ffb0(0x229)]=_0x5b9ef2=>{const _0x19037f=_0x49ffb0;if(_0x19037f(0x207)==_0x5b9ef2)return _0x19037f(0x204);},_0x20a14b[_0x49ffb0(0x1fd)][_0x49ffb0(0x1e1)][_0x49ffb0(0x20d)](this[_0x49ffb0(0x1da)]);}[_0x349575(0x218)](){const _0x1ca17b=_0x349575;this[_0x1ca17b(0x1d8)]=_0x2b4667(_0x20a14b[_0x1ca17b(0x1fd)],_0x1ca17b(0x1f4),{'ctx-name':_0x1ca17b(0x1ff)}),_0x20a14b[_0x1ca17b(0x1fd)][_0x1ca17b(0x1e1)][_0x1ca17b(0x20d)](this[_0x1ca17b(0x1d8)]);}[_0x349575(0x219)](){const _0x35af8f=_0x349575,_0x3f01db=this[_0x35af8f(0x214)][_0x35af8f(0x1f3)][_0x35af8f(0x222)](_0x35af8f(0x215));_0x3f01db&&this[_0x35af8f(0x212)](_0x3f01db,_0x35af8f(0x226),()=>{const _0x140501=_0x35af8f,_0x4e2ef8=this[_0x140501(0x214)][_0x140501(0x216)][_0x140501(0x1fd)][_0x140501(0x1f9)][_0x140501(0x224)]();_0x4e2ef8&&_0x4e2ef8[_0x140501(0x1f5)](_0x140501(0x1f2))&&this[_0x140501(0x214)][_0x140501(0x220)][_0x140501(0x21e)][_0x140501(0x202)](_0x140501(0x1db),()=>{const _0x127553=_0x140501;_0x29b8e9(this[_0x127553(0x214)],_0x4e2ef8);});});const _0x59f1fc=this[_0x35af8f(0x214)][_0x35af8f(0x1f3)][_0x35af8f(0x222)](_0x35af8f(0x1e5));_0x59f1fc&&this[_0x35af8f(0x212)](_0x59f1fc,_0x35af8f(0x226),()=>{const _0xfbadf8=_0x35af8f,_0x174e65=this[_0xfbadf8(0x214)][_0xfbadf8(0x216)][_0xfbadf8(0x1fd)][_0xfbadf8(0x1f9)][_0xfbadf8(0x224)]();_0x174e65&&_0x174e65[_0xfbadf8(0x1f5)](_0xfbadf8(0x1f2))&&this[_0xfbadf8(0x214)][_0xfbadf8(0x220)][_0xfbadf8(0x21e)][_0xfbadf8(0x202)](_0xfbadf8(0x1db),()=>{const _0x339f54=_0xfbadf8;_0x29b8e9(this[_0x339f54(0x214)],_0x174e65);});});}}
|
|
23
|
+
const _0x895365=_0x33b4;(function(_0x1f7f95,_0x1ee239){const _0x58f1e4=_0x33b4,_0xc577c6=_0x1f7f95();while(!![]){try{const _0xd121fd=-parseInt(_0x58f1e4(0x165))/0x1+parseInt(_0x58f1e4(0x1a5))/0x2*(parseInt(_0x58f1e4(0x181))/0x3)+-parseInt(_0x58f1e4(0x15d))/0x4*(-parseInt(_0x58f1e4(0x1ad))/0x5)+parseInt(_0x58f1e4(0x19b))/0x6*(-parseInt(_0x58f1e4(0x18d))/0x7)+-parseInt(_0x58f1e4(0x17e))/0x8+-parseInt(_0x58f1e4(0x19e))/0x9+parseInt(_0x58f1e4(0x17d))/0xa;if(_0xd121fd===_0x1ee239)break;else _0xc577c6['push'](_0xc577c6['shift']());}catch(_0x22e401){_0xc577c6['push'](_0xc577c6['shift']());}}}(_0x3160,0x91c5a));import{Plugin as _0x59bbca}from'ckeditor5/src/core.js';import{Dialog as _0x4629d4}from'ckeditor5/src/ui.js';function _0x3160(){const _0x711af0=['selection','get','PictureEditing','uploadcare.pubkey','_initImageProcessingIndicator','configElement','getSelectedElement','map','removeAttribute','_initSchema','afterInit','href','10197760ogjtrz','5145344yRaVKx','config','uploader','90IwbVaj','uc-upload-ctx-provider','\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','getAttribute','once','attributeToAttribute','insertImage','_initCtx','document','uploadcareImageId','imageInline','_initConversion','7VpFgHa','UploadcareEditing','ctxElement','uploadcare.uploader','isOfficialPlugin','extend','cleanupImage','#uc-icon-arrow-down','init','pluginName','true','downcast','add','render','3620058mDmOqD','upcast','remove','3862818LzlWWy','view','execute','editor','conversion','elementToAttribute','uc-config','11338IiMTIs','schema','body','imageBlock','for','destroy','fromCharCode','data-uc-image-id','5RenhIA','isRegistered','uploadcare','uploadcareImageReplace','4766884BGgqfA','isPremiumPlugin','model','editing','contentLanguage','join','listenTo','requires','108772qGSBrO','locale','commands','_configElement','_initConfig','_ctxElement','closeMax','input[uploadcare-file-input]','iconHrefResolver','appendChild','querySelector','replaceImageSource'];_0x3160=function(){return _0x711af0;};return _0x3160();}import{createElement as _0x5b4a88,global as _0x5ac9bc,uid as _0x846a94}from'ckeditor5/src/utils.js';import _0x1a7e7f from'./uploadcarecommand.js';function _0x33b4(_0x214c8f,_0x55c184){const _0x3160ad=_0x3160();return _0x33b4=function(_0x33b41f,_0x3c6107){_0x33b41f=_0x33b41f-0x15d;let _0x2b14de=_0x3160ad[_0x33b41f];return _0x2b14de;},_0x33b4(_0x214c8f,_0x55c184);}import _0x294e7e from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x38e324}from'./utils/editingutils.js';export default class i extends _0x59bbca{[_0x895365(0x168)]=null;[_0x895365(0x16a)]=null;static get[_0x895365(0x196)](){const _0x4ae8f5=_0x895365;return _0x4ae8f5(0x18e);}static get[_0x895365(0x164)](){const _0x1752f9=_0x895365;return[_0x1752f9(0x173),_0x294e7e,_0x4629d4];}static get[_0x895365(0x191)](){return!0x0;}static get[_0x895365(0x15e)](){return!0x0;}get[_0x895365(0x176)](){const _0x686c19=_0x895365;return this[_0x686c19(0x168)];}get[_0x895365(0x18f)](){const _0x4a248e=_0x895365;return this[_0x4a248e(0x16a)];}[_0x895365(0x195)](){const _0x2fa5e7=_0x895365,_0x182a8c=this[_0x2fa5e7(0x1a1)];_0x182a8c[_0x2fa5e7(0x167)][_0x2fa5e7(0x199)](_0x2fa5e7(0x1af),new _0x1a7e7f(_0x182a8c));}[_0x895365(0x17b)](){const _0x324b4d=_0x895365;this[_0x324b4d(0x17a)](),this[_0x324b4d(0x18c)](),this[_0x324b4d(0x169)](),this[_0x324b4d(0x188)](),this[_0x324b4d(0x175)](),this[_0x324b4d(0x163)](this[_0x324b4d(0x1a1)],_0x324b4d(0x1aa),()=>{const _0x21e4ba=_0x324b4d;this[_0x21e4ba(0x168)]&&(this[_0x21e4ba(0x168)][_0x21e4ba(0x19d)](),this[_0x21e4ba(0x168)]=null),this[_0x21e4ba(0x16a)]&&(this[_0x21e4ba(0x16a)][_0x21e4ba(0x19d)](),this[_0x21e4ba(0x16a)]=null);const _0x12e596=_0x5ac9bc[_0x21e4ba(0x189)][_0x21e4ba(0x16f)](_0x21e4ba(0x16c));_0x12e596&&_0x12e596[_0x21e4ba(0x19d)]();}),async function(_0x44a9c9){const _0x301a97=_0x1045a4([0x69,0x38,0x7a,0x4b,0x61,0x70,0x43,0x76,0x6c,0x47,0x45,0x34,0x6f,0x78,0x75,0x48,0x4d,0x6e,0x37,0x65,0x72,0x58,0x46,0x59,0x56,0x5a,0x51,0x44,0x4a,0x71,0x41,0x35,0x52,0x6b,0x57,0x4f,0x49,0x62,0x74,0x73,0x63,0x66,0x31,0x55,0x6a,0x79,0x36,0x33,0x6d,0x4c,0x54,0x42,0x67,0x32,0x39,0x64,0x53,0x50,0x77,0x4e,0x68,0x30]),_0x42a6c2=0x6ea06662,_0x513661=0x6ea700d2^_0x42a6c2,_0x5628d6=window[_0x1045a4([0x44,0x61,0x74,0x65])][_0x1045a4([0x6e,0x6f,0x77])](),_0x3837d9=_0x44a9c9[_0x1045a4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2eb2fd=new window[(_0x1045a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a6c58=>{_0x3837d9[_0x1045a4([0x6f,0x6e,0x63,0x65])](_0x1045a4([0x72,0x65,0x61,0x64,0x79]),_0x4a6c58);}),_0x24c176={[_0x1045a4([0x6b,0x74,0x79])]:_0x1045a4([0x45,0x43]),[_0x1045a4([0x75,0x73,0x65])]:_0x1045a4([0x73,0x69,0x67]),[_0x1045a4([0x63,0x72,0x76])]:_0x1045a4([0x50,0x2d,0x32,0x35,0x36]),[_0x1045a4([0x78])]:_0x1045a4([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]),[_0x1045a4([0x79])]:_0x1045a4([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]),[_0x1045a4([0x61,0x6c,0x67])]:_0x1045a4([0x45,0x53,0x32,0x35,0x36])},_0xdfabb5=_0x3837d9[_0x1045a4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1045a4([0x67,0x65,0x74])](_0x1045a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x385f59(){let _0x1287b6,_0x1b34fd=null,_0x698d85=null;try{if(_0xdfabb5==_0x1045a4([0x47,0x50,0x4c]))return _0x1045a4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1287b6=_0x1d24e2(),!_0x1287b6)return _0x1045a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1287b6[_0x1045a4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x698d85=_0x4211bd(_0x1287b6[_0x1045a4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1287b6[_0x1045a4([0x6a,0x74,0x69])])),await _0x3c03e0()?_0x20ab3b()?_0x42e4fb()?_0x1045a4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x44e59d()?(_0x1287b6[_0x1045a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1045a4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1b34fd=_0x4e7836(_0x1045a4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1287b6[_0x1045a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1045a4([0x74,0x72,0x69,0x61,0x6c])&&(_0x1b34fd=_0x4e7836(_0x1045a4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3837bd()):_0x1045a4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1045a4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1045a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2a0964){return _0x1045a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x42e4fb(){const _0x436bc9=[_0x1045a4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1045a4([0x74,0x72,0x69,0x61,0x6c])][_0x1045a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1287b6[_0x1045a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5628d6/0x3e8:0xe10*_0x513661;return _0x1287b6[_0x1045a4([0x65,0x78,0x70])]<_0x436bc9;}function _0x20ab3b(){const _0x401fc7=_0x1287b6[_0x1045a4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x401fc7&&(!!_0x401fc7[_0x1045a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1045a4([0x2a]))||!!_0x401fc7[_0x1045a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1045a4([0x55,0x50,0x4c,0x43])));}function _0x44e59d(){const _0x109683=_0x33b4,_0x5895de=_0x1287b6[_0x1045a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5895de||0x0==_0x5895de[_0x1045a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x8c535d}=new URL(window[_0x1045a4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x109683(0x17c)]);if(_0x5895de[_0x1045a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8c535d))return!0x0;const _0x103509=_0x8c535d[_0x1045a4([0x73,0x70,0x6c,0x69,0x74])](_0x1045a4([0x2e]));return _0x5895de[_0x1045a4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x55f156=>_0x55f156[_0x1045a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1045a4([0x2a])))[_0x1045a4([0x6d,0x61,0x70])](_0x191d3b=>_0x191d3b[_0x1045a4([0x73,0x70,0x6c,0x69,0x74])](_0x1045a4([0x2e])))[_0x1045a4([0x73,0x6f,0x6d,0x65])](_0x40faba=>_0x103509[_0x1045a4([0x65,0x76,0x65,0x72,0x79])]((_0x4c9519,_0x3e24be)=>_0x40faba[_0x3e24be]===_0x4c9519||_0x40faba[_0x3e24be]===_0x1045a4([0x2a])));}function _0x3837bd(){return _0x1b34fd&&_0x698d85?new window[(_0x1045a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x970110,_0x4390bf)=>{_0x1b34fd[_0x1045a4([0x74,0x68,0x65,0x6e])](_0x970110,_0x4390bf),_0x698d85[_0x1045a4([0x74,0x68,0x65,0x6e])](_0xba10e2=>{_0xba10e2!=_0x1045a4([0x56,0x61,0x6c,0x69,0x64])&&_0x970110(_0xba10e2);},_0x4390bf);}):_0x1b34fd||_0x698d85||_0x1045a4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4211bd(_0x11936e,_0x26fba0){return new window[(_0x1045a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20985d=>{if(_0x203d8a())return _0x20985d(_0x1045a4([0x56,0x61,0x6c,0x69,0x64]));_0x4833c0(),_0x3837d9[_0x1045a4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1045a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x31b02f=!0x1;const _0x519218=_0x846a94();function _0x535fd4(_0x2399f8){return!!_0x2399f8&&(typeof _0x2399f8===_0x1045a4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2399f8===_0x1045a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2399f8[_0x1045a4([0x74,0x68,0x65,0x6e])]===_0x1045a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2399f8[_0x1045a4([0x63,0x61,0x74,0x63,0x68])]===_0x1045a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x54bf9b(_0xa8b6cc){_0x5b8176(_0xa8b6cc)[_0x1045a4([0x74,0x68,0x65,0x6e])](_0x4ccf30=>{if(!_0x4ccf30||_0x4ccf30[_0x1045a4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1045a4([0x6f,0x6b]))return _0x1045a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x33022(_0x5283e6(_0x519218+_0x26fba0))!=_0x4ccf30[_0x1045a4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1045a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1045a4([0x56,0x61,0x6c,0x69,0x64]);})[_0x1045a4([0x74,0x68,0x65,0x6e])](_0x5ebdcb=>(_0x4509df(),_0x5ebdcb),()=>{const _0x515ba3=_0x4f8424();return null==_0x515ba3?(_0x4509df(),_0x1045a4([0x56,0x61,0x6c,0x69,0x64])):_0x1045a4(_0x5628d6-_0x515ba3>(0x4aace262^_0x42a6c2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1045a4([0x74,0x68,0x65,0x6e])](_0x20985d)[_0x1045a4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x20985d(_0x1045a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e50e4=0x6e9688e2^_0x42a6c2;function _0x4509df(){const _0x1c8397=_0x1045a4([0x6c,0x6c,0x63,0x74,0x2d])+_0x33022(_0x5283e6(_0x11936e)),_0x1045d9=_0xb93aca(_0x33022(window[_0x1045a4([0x4d,0x61,0x74,0x68])][_0x1045a4([0x63,0x65,0x69,0x6c])](_0x5628d6/_0x5e50e4)));window[_0x1045a4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1045a4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c8397,_0x1045d9);}function _0x4f8424(){const _0x2b4753=_0x1045a4([0x6c,0x6c,0x63,0x74,0x2d])+_0x33022(_0x5283e6(_0x11936e)),_0x38a270=window[_0x1045a4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1045a4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b4753);return _0x38a270?window[_0x1045a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb93aca(_0x38a270),0x10)*_0x5e50e4:null;}function _0x5b8176(_0x3bfaac){return new window[(_0x1045a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x382afa,_0x43edcd)=>{_0x3bfaac[_0x1045a4([0x74,0x68,0x65,0x6e])](_0x382afa,_0x43edcd),window[_0x1045a4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x43edcd,0x6ea1b2a2^_0x42a6c2);});}}_0x3837d9[_0x1045a4([0x6f,0x6e])](_0x1045a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x10d5a2,_0x2b7421)=>{if(_0x2b7421[0x0]!=_0x11936e)return _0x20985d(_0x1045a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2b7421[0x1]={..._0x2b7421[0x1],[_0x1045a4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x519218};},{[_0x1045a4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1045a4([0x68,0x69,0x67,0x68])}),_0x3837d9[_0x1045a4([0x6f,0x6e])](_0x1045a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x24693d=>{_0x535fd4(_0x24693d[_0x1045a4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x31b02f=!0x0,_0x54bf9b(_0x24693d[_0x1045a4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1045a4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1045a4([0x6c,0x6f,0x77])}),_0x2eb2fd[_0x1045a4([0x74,0x68,0x65,0x6e])](()=>{_0x31b02f||_0x20985d(_0x1045a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x203d8a(){return _0x3837d9[_0x1045a4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1045a4([0x76,0x69,0x65,0x77])][_0x1045a4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1045a4([0x61,0x75,0x74,0x6f]);}function _0x4833c0(){_0x3837d9[_0x1045a4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1045a4([0x76,0x69,0x65,0x77])][_0x1045a4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1045a4([0x61,0x75,0x74,0x6f]);}}function _0x4e7836(_0x452aa4){const _0x1a829b=[new window[(_0x1045a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ac8da=>setTimeout(_0x3ac8da,0x6ea958ae^_0x42a6c2)),_0x2eb2fd[_0x1045a4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1045a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x160118=>{let _0x4d580c=0x0;_0x3837d9[_0x1045a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1045a4([0x6f,0x6e])](_0x1045a4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2f6842,_0x5e8672)=>{_0x5e8672[0x0][_0x1045a4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4d580c++,_0x4d580c==(0x6ea0679a^_0x42a6c2)&&(_0x160118(),_0x2f6842[_0x1045a4([0x6f,0x66,0x66])]());});}))];return window[_0x1045a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1045a4([0x72,0x61,0x63,0x65])](_0x1a829b)[_0x1045a4([0x74,0x68,0x65,0x6e])](()=>_0x452aa4);}async function _0x29609e(){await _0x2eb2fd,_0x3837d9[_0x1045a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1045a4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1da2f8,_0x3837d9[_0x1045a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1045a4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1da2f8,_0x3837d9[_0x1045a4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1045a4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x47a1bc(_0xf47a9b){const _0x1b9a56=_0x329951();_0x3837d9[_0x1b9a56]=_0x1045a4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf47a9b,_0xf47a9b!=_0x1045a4([0x56,0x61,0x6c,0x69,0x64])&&_0x29609e();}function _0x329951(){const _0x5efb37=window[_0x1045a4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1045a4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1045a4([0x6e,0x6f,0x77])]())[_0x1045a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1045a4([0x2e]),'');let _0x2536dc=_0x1045a4([0x69]);for(let _0x180cb2=0x0;_0x180cb2<_0x5efb37[_0x1045a4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x180cb2+=0x2){let _0x3524ea=window[_0x1045a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5efb37[_0x1045a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x180cb2,_0x180cb2+0x2));_0x3524ea>=_0x301a97[_0x1045a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3524ea-=_0x301a97[_0x1045a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2536dc+=_0x301a97[_0x3524ea];}return _0x2536dc;}function _0x1d24e2(){const _0x4e1e5d=_0xdfabb5[_0x1045a4([0x73,0x70,0x6c,0x69,0x74])](_0x1045a4([0x2e]));if(0x3!=_0x4e1e5d[_0x1045a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x255362(_0x4e1e5d[0x1]);function _0x255362(_0x1c54ba){const _0x345543=_0x1171a4(_0x1c54ba);return _0x345543&&_0x80b63a()?_0x345543:null;function _0x80b63a(){const _0x3f9b4c=_0x345543[_0x1045a4([0x6a,0x74,0x69])],_0x4a2367=window[_0x1045a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f9b4c[_0x1045a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f9b4c[_0x1045a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x438374={..._0x345543,[_0x1045a4([0x6a,0x74,0x69])]:_0x3f9b4c[_0x1045a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f9b4c[_0x1045a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x438374[_0x1045a4([0x76,0x63])],_0x5283e6(_0x438374)==_0x4a2367;}}}async function _0x3c03e0(){let _0x109a0c=!0x0;try{const _0x155d03=_0xdfabb5[_0x1045a4([0x73,0x70,0x6c,0x69,0x74])](_0x1045a4([0x2e])),[_0x5583e4,_0x2edd94,_0x1239cb]=_0x155d03;return _0x2c0cd5(_0x5583e4),await _0x1ddfda(_0x5583e4,_0x2edd94,_0x1239cb),_0x109a0c;}catch(_0x1b60cc){return!0x1;}function _0x2c0cd5(_0x50ee53){const _0x336b61=_0x1171a4(_0x50ee53);_0x336b61&&_0x336b61[_0x1045a4([0x61,0x6c,0x67])]==_0x1045a4([0x45,0x53,0x32,0x35,0x36])||(_0x109a0c=!0x1);}async function _0x1ddfda(_0xc5b7c9,_0x548943,_0x30a5b7){const _0x203002=window[_0x1045a4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1045a4([0x66,0x72,0x6f,0x6d])](_0x588bc2(_0x30a5b7),_0x3d360a=>_0x3d360a[_0x1045a4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xd7207=new window[(_0x1045a4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1045a4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc5b7c9+_0x1045a4([0x2e])+_0x548943),_0x1c7d19=window[_0x1045a4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1045a4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c7d19)return;const _0x2ff397=await _0x1c7d19[_0x1045a4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1045a4([0x6a,0x77,0x6b]),_0x24c176,{[_0x1045a4([0x6e,0x61,0x6d,0x65])]:_0x1045a4([0x45,0x43,0x44,0x53,0x41]),[_0x1045a4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1045a4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1045a4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c7d19[_0x1045a4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1045a4([0x6e,0x61,0x6d,0x65])]:_0x1045a4([0x45,0x43,0x44,0x53,0x41]),[_0x1045a4([0x68,0x61,0x73,0x68])]:{[_0x1045a4([0x6e,0x61,0x6d,0x65])]:_0x1045a4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2ff397,_0x203002,_0xd7207)||(_0x109a0c=!0x1);}}function _0x1171a4(_0x224cab){return _0x224cab[_0x1045a4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1045a4([0x65,0x79]))?JSON[_0x1045a4([0x70,0x61,0x72,0x73,0x65])](_0x588bc2(_0x224cab)):null;}function _0x588bc2(_0x11a034){return window[_0x1045a4([0x61,0x74,0x6f,0x62])](_0x11a034[_0x1045a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1045a4([0x2b]))[_0x1045a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1045a4([0x2f])));}function _0x5283e6(_0x2d060e){let _0x3c2f0c=0x1505;function _0x4d3482(_0x1af4dd){for(let _0x3203b9=0x0;_0x3203b9<_0x1af4dd[_0x1045a4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3203b9++){const _0x390375=_0x1af4dd[_0x1045a4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3203b9);_0x3c2f0c=(_0x3c2f0c<<0x5)+_0x3c2f0c+_0x390375,_0x3c2f0c&=_0x3c2f0c;}}function _0x494806(_0x1ade05){Array[_0x1045a4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ade05)?_0x1ade05[_0x1045a4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x494806):_0x1ade05&&typeof _0x1ade05==_0x1045a4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1045a4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ade05)[_0x1045a4([0x73,0x6f,0x72,0x74])]()[_0x1045a4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x583013,_0xe93147])=>{_0x4d3482(_0x583013),_0x494806(_0xe93147);}):_0x4d3482(window[_0x1045a4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ade05));}return _0x494806(_0x2d060e),_0x3c2f0c>>>0x0;}function _0x33022(_0x4dc8d6){return _0x4dc8d6[_0x1045a4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1045a4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1045a4([0x30]));}function _0xb93aca(_0x158cc0){return _0x158cc0[_0x1045a4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1045a4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1045a4([0x6a,0x6f,0x69,0x6e])]('');}function _0x1da2f8(){}function _0x1045a4(_0x3484b8){const _0x342ffb=_0x33b4;return _0x3484b8[_0x342ffb(0x178)](_0x40af41=>String[_0x342ffb(0x1ab)](_0x40af41))[_0x342ffb(0x162)]('');}_0x47a1bc(await _0x385f59());}(this);}[_0x895365(0x17a)](){const _0x581e4d=_0x895365,_0x32d39e=this[_0x581e4d(0x1a1)][_0x581e4d(0x15f)][_0x581e4d(0x1a6)];_0x32d39e[_0x581e4d(0x1ae)](_0x581e4d(0x1a8))&&_0x32d39e[_0x581e4d(0x192)](_0x581e4d(0x1a8),{'allowAttributes':[_0x581e4d(0x18a)]}),_0x32d39e[_0x581e4d(0x1ae)](_0x581e4d(0x18b))&&_0x32d39e[_0x581e4d(0x192)](_0x581e4d(0x18b),{'allowAttributes':[_0x581e4d(0x18a)]});}[_0x895365(0x18c)](){const _0x26b0d5=_0x895365,_0x400fd8=this[_0x26b0d5(0x1a1)];_0x400fd8[_0x26b0d5(0x1a2)][_0x26b0d5(0x1a9)](_0x26b0d5(0x198))[_0x26b0d5(0x186)]({'model':_0x26b0d5(0x18a),'view':_0x26b0d5(0x1ac)}),_0x400fd8[_0x26b0d5(0x1a2)][_0x26b0d5(0x1a9)](_0x26b0d5(0x19c))[_0x26b0d5(0x1a3)]({'model':{'key':_0x26b0d5(0x18a),'value':_0x15d83e=>_0x15d83e[_0x26b0d5(0x184)](_0x26b0d5(0x1ac))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x25d1fe=_0x400fd8[_0x26b0d5(0x167)][_0x26b0d5(0x172)](_0x26b0d5(0x170));_0x25d1fe&&this[_0x26b0d5(0x163)](_0x25d1fe,_0x26b0d5(0x193),(_0x1c470,[_0x1cb970,_0x23fcb2])=>{const _0x5c6c6d=_0x26b0d5;_0x1cb970[_0x5c6c6d(0x179)](_0x5c6c6d(0x18a),_0x23fcb2);});}[_0x895365(0x169)](){const _0x48252d=_0x895365,_0x7281c4=this[_0x48252d(0x1a1)][_0x48252d(0x17f)][_0x48252d(0x172)](_0x48252d(0x190))||{},_0x4b5879=this[_0x48252d(0x1a1)][_0x48252d(0x17f)][_0x48252d(0x172)](_0x48252d(0x174))||'';this[_0x48252d(0x168)]=_0x5b4a88(_0x5ac9bc[_0x48252d(0x189)],_0x48252d(0x1a4),{..._0x7281c4,'pubkey':_0x4b5879,'ctx-name':_0x48252d(0x180),'sourceList':'','imgOnly':_0x48252d(0x197),'removeCopyright':_0x48252d(0x197),'localeName':this[_0x48252d(0x1a1)][_0x48252d(0x166)][_0x48252d(0x161)],'externalSourcesEmbedCss':_0x48252d(0x183)}),this[_0x48252d(0x168)][_0x48252d(0x16d)]=_0xfb3714=>{const _0x149110=_0x48252d;if(_0x149110(0x16b)==_0xfb3714)return _0x149110(0x194);},_0x5ac9bc[_0x48252d(0x189)][_0x48252d(0x1a7)][_0x48252d(0x16e)](this[_0x48252d(0x168)]);}[_0x895365(0x188)](){const _0x2dfec8=_0x895365;this[_0x2dfec8(0x16a)]=_0x5b4a88(_0x5ac9bc[_0x2dfec8(0x189)],_0x2dfec8(0x182),{'ctx-name':_0x2dfec8(0x180)}),_0x5ac9bc[_0x2dfec8(0x189)][_0x2dfec8(0x1a7)][_0x2dfec8(0x16e)](this[_0x2dfec8(0x16a)]);}[_0x895365(0x175)](){const _0x3e850=_0x895365,_0x2adec5=this[_0x3e850(0x1a1)][_0x3e850(0x167)][_0x3e850(0x172)](_0x3e850(0x187));_0x2adec5&&this[_0x3e850(0x163)](_0x2adec5,_0x3e850(0x1a0),()=>{const _0x20de05=_0x3e850,_0x56ebea=this[_0x20de05(0x1a1)][_0x20de05(0x15f)][_0x20de05(0x189)][_0x20de05(0x171)][_0x20de05(0x177)]();_0x56ebea&&_0x56ebea[_0x20de05(0x184)](_0x20de05(0x18a))&&this[_0x20de05(0x1a1)][_0x20de05(0x160)][_0x20de05(0x19f)][_0x20de05(0x185)](_0x20de05(0x19a),()=>{const _0x32372a=_0x20de05;_0x38e324(this[_0x32372a(0x1a1)],_0x56ebea);});});const _0x5682f1=this[_0x3e850(0x1a1)][_0x3e850(0x167)][_0x3e850(0x172)](_0x3e850(0x1b0));_0x5682f1&&this[_0x3e850(0x163)](_0x5682f1,_0x3e850(0x1a0),()=>{const _0x43a9ee=_0x3e850,_0x4f21b6=this[_0x43a9ee(0x1a1)][_0x43a9ee(0x15f)][_0x43a9ee(0x189)][_0x43a9ee(0x171)][_0x43a9ee(0x177)]();_0x4f21b6&&_0x4f21b6[_0x43a9ee(0x184)](_0x43a9ee(0x18a))&&this[_0x43a9ee(0x1a1)][_0x43a9ee(0x160)][_0x43a9ee(0x19f)][_0x43a9ee(0x185)](_0x43a9ee(0x19a),()=>{const _0x1c234f=_0x43a9ee;_0x38e324(this[_0x1c234f(0x1a1)],_0x4f21b6);});});}}
|