@ckeditor/ckeditor5-uploadcare 45.2.1-alpha.1 → 45.2.1-alpha.2
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 _0x52a413,Command as _0x331cf5}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1b7794,IconGooglePhotos as _0x2bf89b,IconGoogleDrive as _0x33edd5,IconFacebook as _0x3365c6,IconDropbox as _0x52803c,IconUploadcareLink as _0x53e515,IconUploadcareImageUpload as _0x4b86d5,IconError as et,IconUploadcareImageEdit as _0x5eb18c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x241cb2,MenuBarMenuListItemButtonView as _0x3f19f4,View as _0x37e1e3,FocusCycler as _0x3a021f,Dialog as _0x1bb825,DialogViewPosition as _0x48011f,SpinnerView as _0x46fc01,IconView as at,Notification as _0x412d6e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x105b84,DomEmitterMixin as _0x419415,global as _0x5e3a44,getAncestors as _0x5f316d,ObservableMixin as _0x26a68c,createElement as _0x52a916,uid as _0x7f8a41}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1d251a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4b5431,info as _0x43b0bd}from'@uploadcare/upload-client';import*as _0x3587c from'@uploadcare/file-uploader';var o=function(_0x3013f8){return _0x3013f8['Local']='local',_0x3013f8['URL']='url',_0x3013f8['Dropbox']='dropbox',_0x3013f8['GDrive']='gdrive',_0x3013f8['Facebook']='facebook',_0x3013f8['GPhotos']='gphotos',_0x3013f8['OneDrive']='onedrive',_0x3013f8;}({});function _(_0x8ebe3,_0x16a8e9,_0x2a2fb9){const t=_0x8ebe3['t'],_0x352f4a=_0x8ebe3['t'];switch(_0x16a8e9){case o['Local']:return{'text':_0x352f4a('Insert'===_0x2a2fb9?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x352f4a('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x2a2fb9?_0x352f4a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x352f4a('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x2a2fb9?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x2a2fb9?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x2a2fb9?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x2a2fb9?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x2a2fb9?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x16a8e9;}}class e extends _0x52a413{['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 _0x262b3e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x35a580;for(const _0x280bac in _0x262b3e){const _0x503c75=_0x280bac,_0x46455e=_0x262b3e[_0x503c75];if('uploadcareLicenseKeyValid'==_0x46455e||'uploadcareLicenseKeyInvalid'==_0x46455e||'uploadcareLicenseKeyExpired'==_0x46455e||'uploadcareLicenseKeyDomainLimit'==_0x46455e||'uploadcareLicenseKeyNotAllowed'==_0x46455e||'uploadcareLicenseKeyEvaluationLimit'==_0x46455e||'uploadcareLicenseKeyTrialLimit'==_0x46455e||'uploadcareLicenseKeyUsageLimit'==_0x46455e){delete _0x262b3e[_0x503c75],_0x35a580=_0x46455e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x35a580&&_0x262b3e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x35a580&&_0x262b3e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x35a580&&_0x262b3e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x35a580&&_0x262b3e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x35a580&&_0x262b3e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x35a580&&_0x262b3e['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x35a580&&_0x262b3e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x416b18}=this,_0x4508bc=_0x416b18['commands']['get']('uploadcare');if(!_0x4508bc)return;const _0x57e84a=this['_normalizeConfigSourceList'](_0x416b18['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x43fd85,_0x235e99)=>{const _0x27c41d=this['_getIntegrationKey'](_0x235e99['type']);return _0x43fd85[_0x27c41d]||(_0x43fd85[_0x27c41d]=[]),_0x43fd85[_0x27c41d]['push'](_0x235e99),_0x43fd85;},{});_0x416b18['plugins']['has']('ImageInsertUI')&&_0x416b18['commands']['get']('uploadcare')&&Object['entries'](_0x57e84a)['forEach'](([_0x4255cd,_0x3f154b])=>{_0x416b18['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4255cd,'observable':()=>_0x4508bc,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3f154b),'formViewCreator':()=>this['_createDropdownButtons'](_0x3f154b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3f154b),'override':'assetManager'!==_0x4255cd});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x20fda3){const {locale:_0x6a7d62}=this['editor'];return _0x20fda3['map'](_0x3d9601=>{const _0x4c1643=_(_0x6a7d62,_0x3d9601,'Insert');switch(_0x3d9601){case o['Local']:return{'icon':_0x4b86d5,'type':o['Local'],..._0x4c1643};case o['URL']:return{'icon':_0x53e515,'type':o['URL'],..._0x4c1643};case o['Dropbox']:return{'icon':_0x52803c,'type':o['Dropbox'],..._0x4c1643};case o['Facebook']:return{'icon':_0x3365c6,'type':o['Facebook'],..._0x4c1643};case o['GDrive']:return{'icon':_0x33edd5,'type':o['GDrive'],..._0x4c1643};case o['GPhotos']:return{'icon':_0x2bf89b,'type':o['GPhotos'],..._0x4c1643};case o['OneDrive']:return{'icon':_0x1b7794,'type':o['OneDrive'],..._0x4c1643};}});}['_getIntegrationKey'](_0x519ccc){switch(_0x519ccc){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x22e233,_0x2d11e9){const _0x2b6cde=this['editor'],_0x1507ca=new _0x22e233(_0x2b6cde['locale']),_0x333af4=_0x2b6cde['commands']['get']('uploadcare');return _0x1507ca['bind']('isEnabled')['to'](_0x333af4),_0x1507ca['on']('execute',()=>{_0x333af4['execute'](_0x2d11e9);}),_0x1507ca;}['_createToolbarButton'](_0x257359){const {locale:_0x35f2bd}=this['editor'],_0x3e3401=this['editor']['plugins']['get']('ImageInsertUI'),_0x5e4382=_0x257359[0x0],_0x54aadd=this['_createButton'](_0x241cb2,_0x5e4382['type']);return _0x54aadd['icon']=_0x5e4382['icon'],_0x54aadd['bind']('label')['to'](_0x3e3401,'isImageSelected',_0x1600c3=>_(_0x35f2bd,_0x5e4382['type'],_0x1600c3?'Replace':'Insert')['text']),_0x54aadd['tooltip']=!0x0,_0x54aadd;}['_createDropdownButtons'](_0x195f59){const {locale:_0x1deb86}=this['editor'],_0x33b4d6=this['editor']['plugins']['get']('ImageInsertUI');return _0x195f59['map'](_0x14e861=>{const _0x13cb28=this['_createButton'](_0x241cb2,_0x14e861['type']);return _0x13cb28['withText']=!0x0,_0x13cb28['icon']=_0x14e861['icon'],_0x13cb28['bind']('label')['to'](_0x33b4d6,'isImageSelected',_0x2994a8=>_(_0x1deb86,_0x14e861['type'],_0x2994a8?'Replace':'Insert')['text']),_0x13cb28;});}['_createMenuBarButtons'](_0x18175e){return _0x18175e['map'](_0x32e7bf=>{const _0xbdc378=this['_createButton'](_0x3f19f4,_0x32e7bf['type']);return _0xbdc378['icon']=_0x32e7bf['icon'],_0xbdc378['label']=_0x32e7bf['shortText'],_0xbdc378;});}}class q extends _0x37e1e3{['focusTracker'];['focusCycler'];constructor(_0x246c19){super(_0x246c19),this['focusTracker']=new _0x105b84(),this['focusCycler']=new _0x3a021f({'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(_0x487cf3){super(_0x487cf3),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(_0x375132,_0x1efd9d){const _0x2992b4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x479516=>_0x479516<=_0x1efd9d)['map'](_0x2d286c=>_0x375132['replace'](/\/$/,'')+'/-/resize/'+_0x2d286c+'x/\x20'+_0x2d286c+'w');return{'imageFallbackUrl':_0x375132,'imageSources':[{'srcset':_0x2992b4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1efd9d+'px)\x20100vw,\x20'+_0x1efd9d+'px','type':'image/webp'}]};}function A(_0xc84d56,_0x3149b4,_0x5de16b){const _0x3b230e=_0xc84d56['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3b230e?parseInt(_0x3b230e[0x1],0xa):_0x3149b4,'height':_0x3b230e?parseInt(_0x3b230e[0x2],0xa):_0x5de16b};}function m(_0x5af550,_0x25d943){const _0x4ef5fd=Object['create'](_0x419415),_0x224d36=_0x5af550['plugins']['get']('ImageUtils'),_0x45de16=_0x5af550['editing']['mapper']['toViewElement'](_0x25d943),_0x4c6555=_0x224d36['findViewImgElement'](_0x45de16),_0x223f39=_0x5af550['editing']['view']['domConverter']['viewToDom'](_0x4c6555),_0x5aab04=_0x25d943['getAttribute']('width'),_0x138dda=_0x25d943['getAttribute']('height'),_0x3a5d73='image-processing';_0x5af550['editing']['view']['change'](_0x45033a=>{_0x45033a['addClass'](_0x3a5d73,_0x45de16),_0x45033a['setStyle']('aspect-ratio',_0x5aab04+'/'+_0x138dda,_0x4c6555);}),_0x4ef5fd['listenTo'](_0x223f39,'load',()=>{_0x4ef5fd['stopListening'](_0x223f39,'load'),_0x5af550['editing']['view']['change'](_0x2266e5=>{_0x2266e5['removeClass'](_0x3a5d73,_0x45de16),_0x2266e5['removeStyle']('aspect-ratio',_0x4c6555);});});}function V(_0xcc913b){if(Array['isArray'](_0xcc913b)){const _0x56378a=_0xcc913b['map'](V);return _0x368263=>_0x56378a['some'](_0x4b8c5f=>_0x4b8c5f(_0x368263));}if('origin'==_0xcc913b){const _0x207561=_0x5e3a44['window']['location']['origin'];return _0xbdf0cc=>new URL(_0xbdf0cc,_0x5e3a44['document']['baseURI'])['origin']==_0x207561;}return'function'==typeof _0xcc913b?_0xcc913b:_0xcc913b instanceof RegExp?_0x3d762e=>!(!_0x3d762e['match'](_0xcc913b)&&!_0x3d762e['replace'](/^https?:\/\//,'')['match'](_0xcc913b)):()=>!0x1;}function F(_0x4579cb,_0x16d510){return _0x5f316d(_0x4579cb['target'])['includes'](_0x16d510);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x26a68c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x236502,_0x4b04e8,_0xc77fcc){super(),this['_editor']=_0x236502,this['_editing']=_0x4b04e8,this['_dialog']=_0x236502['plugins']['get'](_0x1bb825),this['_api']=_0x4b04e8['ctxElement']['getAPI'](),this['_type']=_0xc77fcc,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:_0x529bd6,model:_0x5d3e05}=this['_editor'],_0x2666dd=_0x5d3e05['document']['selection']['getSelectedElement'](),_0x1e0355=_0x2666dd&&(_0x2666dd['is']('element','imageBlock')||_0x2666dd['is']('element','imageInline'));this['_formView']=new S(_0x529bd6),this['_dialog']['show']({'id':'uploadCare','icon':_0x4b86d5,'title':_(_0x529bd6,this['_type'],_0x1e0355?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x48011f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x360e37=>!F(_0x360e37,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x51b574}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x41cb1a=>{const _0x124325=_0x51b574['length'];for(const _0x224bf0 of _0x51b574){const _0x28f2d6=_0x224bf0===_0x51b574[_0x124325-0x1],{cdnUrl:_0x16cafe,fileInfo:_0x3a5429}=_0x224bf0;if(!_0x16cafe||!_0x3a5429)continue;const {width:_0x78de8b,height:_0x31d4a6}=_0x3a5429['imageInfo'],_0x36c5f8=A(_0x16cafe,_0x78de8b,_0x31d4a6),_0x55c859=E(_0x16cafe,_0x36c5f8['width']),_0x225047={'id':_0x3a5429['uuid'],'type':'image','attributes':{'imageDimension':_0x36c5f8,..._0x55c859}};this['_insertAsset'](_0x225047,_0x28f2d6,_0x41cb1a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x19c684=>{'idle'===_0x19c684['detail']['status']&&!_0x19c684['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5754b4,_0x37acfd,_0x1a3200){const _0x3ed929=this['_editor']['model']['document']['selection'],_0xbfe52e=_0x3ed929['getSelectedElement'](),_0x82c49c=!(!_0xbfe52e||!_0xbfe52e['is']('element','imageInline'));_0x1a3200['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5754b4,_0x82c49c),_0x37acfd||_0x1a3200['setSelection'](_0x3ed929['getLastPosition']());}['_insertImage'](_0x1c5d51,_0x1d132e){const _0x1d5fa4=this['_editor'],{imageDimension:_0x128889,imageFallbackUrl:_0xed9b59,imageSources:_0x527582}=_0x1c5d51['attributes'];_0x1d5fa4['execute']('insertImage',{'imageType':_0x1d132e?'imageInline':null,'source':{'uploadcareImageId':_0x1c5d51['id'],'src':_0xed9b59,'sources':_0x527582,..._0x128889}});}}class n extends _0x331cf5{['_editing'];['_controller']=null;static get['requires'](){return[_0x1bb825,i];}constructor(_0x5a4e8a){super(_0x5a4e8a),this['_editing']=_0x5a4e8a['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x356e83){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x356e83);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5dacef,publicKey:_0x23cfdd,signal:_0x84a5d6,onProgress:_0x57fee7}){return _0x4b5431(_0x5dacef,{'publicKey':_0x23cfdd,'store':'auto','signal':_0x84a5d6,'onProgress':_0x57fee7});}static['getInfo'](_0x230f01,_0x335d94){return _0x43b0bd(_0x230f01,_0x335d94);}}class p extends _0x52a413{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1d251a,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2d0124=this['editor'];if(!!!_0x2d0124['config']['get']('uploadcare'))return;_0x2d0124['plugins']['get'](_0x1d251a)['createUploadAdapter']=_0x46918c=>new x(_0x46918c,_0x2d0124),_0x2d0124['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x40a2a7,{imageElement:_0x31d792,data:_0x106a1a})=>{_0x2d0124['model']['change'](_0x1c012e=>{_0x1c012e['setAttribute']('uploadcareImageId',_0x106a1a['uploadcareImageId'],_0x31d792);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x590a7a,_0x3113e6){this['loader']=_0x590a7a,this['editor']=_0x3113e6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x17e0cf=this['editor']['config']['get']('uploadcare.pubkey'),_0x24caf9=await this['loader']['file'];return C['upload']({'file':_0x24caf9,'publicKey':_0x17e0cf,'signal':this['controller']['signal'],'onProgress':_0x23114f=>{_0x23114f&&_0x23114f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x23114f['value']);}})['then'](async _0x26af2a=>{const {imageFallbackUrl:_0x4ee65c,imageSources:_0x34c718}=E(_0x26af2a['cdnUrl'],_0x26af2a['imageInfo']['width']);return{'uploadcareImageId':_0x26af2a['uuid'],'default':_0x4ee65c,'sources':_0x34c718};})['catch'](()=>{const _0x3ed170=t('Cannot\x20upload\x20file:')+('\x20'+_0x24caf9['name']+'.');return Promise['reject'](_0x3ed170);});}['abort'](){this['controller']['abort']();}}class i extends _0x52a413{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x1bb825];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x2c9d22=this['editor'];_0x2c9d22['commands']['add']('uploadcare',new n(_0x2c9d22));}['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 _0x548d4f=_0x5e3a44['document']['querySelector']('input[uploadcare-file-input]');_0x548d4f&&_0x548d4f['remove']();}),async function(_0xf746a){const _0x58a572=_0x3e0f24([0x72,0x70,0x44,0x35,0x49,0x78,0x54,0x69,0x45,0x53,0x76,0x74,0x38,0x50,0x5a,0x4b,0x52,0x32,0x42,0x4f,0x62,0x7a,0x39,0x55,0x61,0x48,0x59,0x4c,0x47,0x66,0x56,0x6f,0x34,0x71,0x65,0x79,0x31,0x77,0x67,0x43,0x6a,0x36,0x4e,0x6d,0x33,0x64,0x68,0x46,0x6b,0x37,0x63,0x73,0x6c,0x57,0x41,0x30,0x4d,0x75,0x4a,0x58,0x51,0x6e]),_0x484c54=0x3eef6808,_0x2de3ea=0x3ee802b0^_0x484c54,_0xd065ec=window[_0x3e0f24([0x44,0x61,0x74,0x65])][_0x3e0f24([0x6e,0x6f,0x77])](),_0x10f141=_0xf746a[_0x3e0f24([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x350461=new window[(_0x3e0f24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x180a3b=>{_0x10f141[_0x3e0f24([0x6f,0x6e,0x63,0x65])](_0x3e0f24([0x72,0x65,0x61,0x64,0x79]),_0x180a3b);}),_0x4948e3={[_0x3e0f24([0x6b,0x74,0x79])]:_0x3e0f24([0x45,0x43]),[_0x3e0f24([0x75,0x73,0x65])]:_0x3e0f24([0x73,0x69,0x67]),[_0x3e0f24([0x63,0x72,0x76])]:_0x3e0f24([0x50,0x2d,0x32,0x35,0x36]),[_0x3e0f24([0x78])]:_0x3e0f24([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]),[_0x3e0f24([0x79])]:_0x3e0f24([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]),[_0x3e0f24([0x61,0x6c,0x67])]:_0x3e0f24([0x45,0x53,0x32,0x35,0x36])},_0x698e9d=_0x10f141[_0x3e0f24([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e0f24([0x67,0x65,0x74])](_0x3e0f24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x66455(){let _0x51a256,_0x3cad0a=null,_0x3d2538=null;try{if(_0x698e9d==_0x3e0f24([0x47,0x50,0x4c]))return _0x3e0f24([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51a256=_0x1a6738(),!_0x51a256)return _0x3e0f24([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51a256[_0x3e0f24([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d2538=_0x3860a0(_0x51a256[_0x3e0f24([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51a256[_0x3e0f24([0x6a,0x74,0x69])])),await _0x23d033()?_0x3159ab()?_0x36e67a()?_0x3e0f24([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3d56ba()?(_0x51a256[_0x3e0f24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e0f24([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3cad0a=_0x17b6f3(_0x3e0f24([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51a256[_0x3e0f24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e0f24([0x74,0x72,0x69,0x61,0x6c])&&(_0x3cad0a=_0x17b6f3(_0x3e0f24([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4449c6()):_0x3e0f24([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e0f24([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e0f24([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3e0f24([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x36e67a(){const _0x4d45b4=[_0x3e0f24([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e0f24([0x74,0x72,0x69,0x61,0x6c])][_0x3e0f24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51a256[_0x3e0f24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd065ec/0x3e8:0xe10*_0x2de3ea;return _0x51a256[_0x3e0f24([0x65,0x78,0x70])]<_0x4d45b4;}function _0x3159ab(){const _0x2c814d=_0x51a256[_0x3e0f24([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2c814d&&(!!_0x2c814d[_0x3e0f24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0f24([0x2a]))||!!_0x2c814d[_0x3e0f24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0f24([0x55,0x50,0x4c,0x43])));}function _0x3d56ba(){const _0x1f79f1=_0x51a256[_0x3e0f24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1f79f1||0x0==_0x1f79f1[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x21483a}=new URL(window[_0x3e0f24([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1f79f1[_0x3e0f24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21483a))return!0x0;const _0x46206b=_0x21483a[_0x3e0f24([0x73,0x70,0x6c,0x69,0x74])](_0x3e0f24([0x2e]));return _0x1f79f1[_0x3e0f24([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f9aab=>_0x4f9aab[_0x3e0f24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0f24([0x2a])))[_0x3e0f24([0x6d,0x61,0x70])](_0x10f683=>_0x10f683[_0x3e0f24([0x73,0x70,0x6c,0x69,0x74])](_0x3e0f24([0x2e])))[_0x3e0f24([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x387ec5=>_0x387ec5[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x46206b[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e0f24([0x6d,0x61,0x70])](_0x5d8833=>Array(_0x46206b[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5d8833[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e0f24([0x66,0x69,0x6c,0x6c])](_0x5d8833[0x0]===_0x3e0f24([0x2a])?_0x3e0f24([0x2a]):'')[_0x3e0f24([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5d8833))[_0x3e0f24([0x73,0x6f,0x6d,0x65])](_0x3e247c=>_0x46206b[_0x3e0f24([0x65,0x76,0x65,0x72,0x79])]((_0x154472,_0x43bf27)=>_0x3e247c[_0x43bf27]===_0x154472||_0x3e247c[_0x43bf27]===_0x3e0f24([0x2a])));}function _0x4449c6(){return _0x3cad0a&&_0x3d2538?new window[(_0x3e0f24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4feb10,_0xa5fc43)=>{_0x3cad0a[_0x3e0f24([0x74,0x68,0x65,0x6e])](_0x4feb10,_0xa5fc43),_0x3d2538[_0x3e0f24([0x74,0x68,0x65,0x6e])](_0xc1eee2=>{_0xc1eee2!=_0x3e0f24([0x56,0x61,0x6c,0x69,0x64])&&_0x4feb10(_0xc1eee2);},_0xa5fc43);}):_0x3cad0a||_0x3d2538||_0x3e0f24([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3860a0(_0x3baf8e,_0xaee132){return new window[(_0x3e0f24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x544012=>{if(_0x4cc27d())return _0x544012(_0x3e0f24([0x56,0x61,0x6c,0x69,0x64]));_0x4b16b8(),_0x10f141[_0x3e0f24([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e0f24([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd2b187=!0x1;const _0x73154c=_0x7f8a41();function _0x10663a(_0xa55019){return!!_0xa55019&&(typeof _0xa55019===_0x3e0f24([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa55019===_0x3e0f24([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa55019[_0x3e0f24([0x74,0x68,0x65,0x6e])]===_0x3e0f24([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa55019[_0x3e0f24([0x63,0x61,0x74,0x63,0x68])]===_0x3e0f24([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c78ef(_0x5ac381){_0x2352e3(_0x5ac381)[_0x3e0f24([0x74,0x68,0x65,0x6e])](_0x476b4d=>{if(!_0x476b4d||_0x476b4d[_0x3e0f24([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e0f24([0x6f,0x6b]))return _0x3e0f24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x25881e(_0x5f3d51(_0x73154c+_0xaee132))!=_0x476b4d[_0x3e0f24([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e0f24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e0f24([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e0f24([0x74,0x68,0x65,0x6e])](_0x1d54bc=>(_0x5f2ec4(),_0x1d54bc),()=>{const _0x53d517=_0x442189();return null==_0x53d517?(_0x5f2ec4(),_0x3e0f24([0x56,0x61,0x6c,0x69,0x64])):_0x3e0f24(_0xd065ec-_0x53d517>(0x1ae3ec08^_0x484c54)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e0f24([0x74,0x68,0x65,0x6e])](_0x544012)[_0x3e0f24([0x63,0x61,0x74,0x63,0x68])](()=>{_0x544012(_0x3e0f24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x36f625=0x3ed98688^_0x484c54;function _0x5f2ec4(){const _0x38b54d=_0x3e0f24([0x6c,0x6c,0x63,0x74,0x2d])+_0x25881e(_0x5f3d51(_0x3baf8e)),_0x30ab0c=_0x464602(_0x25881e(window[_0x3e0f24([0x4d,0x61,0x74,0x68])][_0x3e0f24([0x63,0x65,0x69,0x6c])](_0xd065ec/_0x36f625)));window[_0x3e0f24([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e0f24([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38b54d,_0x30ab0c);}function _0x442189(){const _0x15b449=_0x3e0f24([0x6c,0x6c,0x63,0x74,0x2d])+_0x25881e(_0x5f3d51(_0x3baf8e)),_0x51c926=window[_0x3e0f24([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e0f24([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15b449);return _0x51c926?window[_0x3e0f24([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x464602(_0x51c926),0x10)*_0x36f625:null;}function _0x2352e3(_0x9326d0){return new window[(_0x3e0f24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c1c03,_0x1b0c2c)=>{_0x9326d0[_0x3e0f24([0x74,0x68,0x65,0x6e])](_0x4c1c03,_0x1b0c2c),window[_0x3e0f24([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b0c2c,0x3eeebcc8^_0x484c54);});}}_0x10f141[_0x3e0f24([0x6f,0x6e])](_0x3e0f24([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2369ff,_0x21c964)=>{if(_0x21c964[0x0]!=_0x3baf8e)return _0x544012(_0x3e0f24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x21c964[0x1]={..._0x21c964[0x1],[_0x3e0f24([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x73154c};},{[_0x3e0f24([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e0f24([0x68,0x69,0x67,0x68])}),_0x10f141[_0x3e0f24([0x6f,0x6e])](_0x3e0f24([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1700cc=>{_0x10663a(_0x1700cc[_0x3e0f24([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd2b187=!0x0,_0x2c78ef(_0x1700cc[_0x3e0f24([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e0f24([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e0f24([0x6c,0x6f,0x77])}),_0x350461[_0x3e0f24([0x74,0x68,0x65,0x6e])](()=>{_0xd2b187||_0x544012(_0x3e0f24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4cc27d(){return _0x10f141[_0x3e0f24([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e0f24([0x76,0x69,0x65,0x77])][_0x3e0f24([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e0f24([0x61,0x75,0x74,0x6f]);}function _0x4b16b8(){_0x10f141[_0x3e0f24([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e0f24([0x76,0x69,0x65,0x77])][_0x3e0f24([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e0f24([0x61,0x75,0x74,0x6f]);}}function _0x17b6f3(_0x3cc301){const _0x35b92d=[new window[(_0x3e0f24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d2753=>setTimeout(_0x2d2753,0x3ee656c4^_0x484c54)),_0x350461[_0x3e0f24([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e0f24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f1fd8=>{let _0x3fbe29=0x0;_0x10f141[_0x3e0f24([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e0f24([0x6f,0x6e])](_0x3e0f24([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x861499,_0x33ce87)=>{_0x33ce87[0x0][_0x3e0f24([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3fbe29++,_0x3fbe29==(0x3eef69f0^_0x484c54)&&(_0x1f1fd8(),_0x861499[_0x3e0f24([0x6f,0x66,0x66])]());});}))];return window[_0x3e0f24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e0f24([0x72,0x61,0x63,0x65])](_0x35b92d)[_0x3e0f24([0x74,0x68,0x65,0x6e])](()=>_0x3cc301);}async function _0x2ac455(){await _0x350461,_0x10f141[_0x3e0f24([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e0f24([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d6eab,_0x10f141[_0x3e0f24([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e0f24([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d6eab,_0x10f141[_0x3e0f24([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e0f24([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x53e870(_0x40b0d5){const _0x1016d7=_0xf8dd8();_0x10f141[_0x1016d7]=_0x3e0f24([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x40b0d5,_0x40b0d5!=_0x3e0f24([0x56,0x61,0x6c,0x69,0x64])&&_0x2ac455();}function _0xf8dd8(){const _0x4b841a=window[_0x3e0f24([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e0f24([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e0f24([0x6e,0x6f,0x77])]())[_0x3e0f24([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e0f24([0x2e]),'');let _0x480d4a=_0x3e0f24([0x72]);for(let _0x52ceb4=0x0;_0x52ceb4<_0x4b841a[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52ceb4+=0x2){let _0x1a4823=window[_0x3e0f24([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b841a[_0x3e0f24([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52ceb4,_0x52ceb4+0x2));_0x1a4823>=_0x58a572[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a4823-=_0x58a572[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x480d4a+=_0x58a572[_0x1a4823];}return _0x480d4a;}function _0x1a6738(){const _0x49ff9d=_0x698e9d[_0x3e0f24([0x73,0x70,0x6c,0x69,0x74])](_0x3e0f24([0x2e]));if(0x3!=_0x49ff9d[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1773c2(_0x49ff9d[0x1]);function _0x1773c2(_0x30ae5c){const _0x450de1=_0x4e0fd2(_0x30ae5c);return _0x450de1&&_0xd32256()?_0x450de1:null;function _0xd32256(){const _0x465703=_0x450de1[_0x3e0f24([0x6a,0x74,0x69])],_0xf9557d=window[_0x3e0f24([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x465703[_0x3e0f24([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x465703[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2cfa8b={..._0x450de1,[_0x3e0f24([0x6a,0x74,0x69])]:_0x465703[_0x3e0f24([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x465703[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2cfa8b[_0x3e0f24([0x76,0x63])],_0x5f3d51(_0x2cfa8b)==_0xf9557d;}}}async function _0x23d033(){let _0x3ad796=!0x0;try{const _0x16914f=_0x698e9d[_0x3e0f24([0x73,0x70,0x6c,0x69,0x74])](_0x3e0f24([0x2e])),[_0xcd17ed,_0x4663b5,_0x4604d5]=_0x16914f;return _0x47f0b8(_0xcd17ed),await _0x30b9d8(_0xcd17ed,_0x4663b5,_0x4604d5),_0x3ad796;}catch{return!0x1;}function _0x47f0b8(_0x23964b){const _0x3cd198=_0x4e0fd2(_0x23964b);_0x3cd198&&_0x3cd198[_0x3e0f24([0x61,0x6c,0x67])]==_0x3e0f24([0x45,0x53,0x32,0x35,0x36])||(_0x3ad796=!0x1);}async function _0x30b9d8(_0x5540fd,_0x40164b,_0x5a39af){const _0x21c794=window[_0x3e0f24([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e0f24([0x66,0x72,0x6f,0x6d])](_0x2782f5(_0x5a39af),_0x47c461=>_0x47c461[_0x3e0f24([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xa48697=new window[(_0x3e0f24([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e0f24([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5540fd+_0x3e0f24([0x2e])+_0x40164b),_0xa293d9=window[_0x3e0f24([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e0f24([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xa293d9)return;const _0xb1b908=await _0xa293d9[_0x3e0f24([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e0f24([0x6a,0x77,0x6b]),_0x4948e3,{[_0x3e0f24([0x6e,0x61,0x6d,0x65])]:_0x3e0f24([0x45,0x43,0x44,0x53,0x41]),[_0x3e0f24([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e0f24([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e0f24([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xa293d9[_0x3e0f24([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e0f24([0x6e,0x61,0x6d,0x65])]:_0x3e0f24([0x45,0x43,0x44,0x53,0x41]),[_0x3e0f24([0x68,0x61,0x73,0x68])]:{[_0x3e0f24([0x6e,0x61,0x6d,0x65])]:_0x3e0f24([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb1b908,_0x21c794,_0xa48697)||(_0x3ad796=!0x1);}}function _0x4e0fd2(_0x682327){return _0x682327[_0x3e0f24([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e0f24([0x65,0x79]))?JSON[_0x3e0f24([0x70,0x61,0x72,0x73,0x65])](_0x2782f5(_0x682327)):null;}function _0x2782f5(_0x2df6f9){return window[_0x3e0f24([0x61,0x74,0x6f,0x62])](_0x2df6f9[_0x3e0f24([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e0f24([0x2b]))[_0x3e0f24([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e0f24([0x2f])));}function _0x5f3d51(_0x5a1963){let _0x5e06cd=0x1505;function _0x31e597(_0xdd46b7){for(let _0x1ad038=0x0;_0x1ad038<_0xdd46b7[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ad038++){const _0x9b0e02=_0xdd46b7[_0x3e0f24([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ad038);_0x5e06cd=(_0x5e06cd<<0x5)+_0x5e06cd+_0x9b0e02,_0x5e06cd&=_0x5e06cd;}}function _0x1f7835(_0x4794de){Array[_0x3e0f24([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4794de)?_0x4794de[_0x3e0f24([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f7835):_0x4794de&&typeof _0x4794de==_0x3e0f24([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e0f24([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4794de)[_0x3e0f24([0x73,0x6f,0x72,0x74])]()[_0x3e0f24([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55f195,_0x1e5e69])=>{_0x31e597(_0x55f195),_0x1f7835(_0x1e5e69);}):_0x31e597(window[_0x3e0f24([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4794de));}return _0x1f7835(_0x5a1963),_0x5e06cd>>>0x0;}function _0x25881e(_0x48752e){return _0x48752e[_0x3e0f24([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e0f24([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e0f24([0x30]));}function _0x464602(_0x34db2f){return _0x34db2f[_0x3e0f24([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e0f24([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e0f24([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d6eab(){}function _0x3e0f24(_0x24bb04){return _0x24bb04['map'](_0x3e3548=>String['fromCharCode'](_0x3e3548))['join']('');}_0x53e870(await _0x66455());}(this);}['_initSchema'](){const _0x1a2538=this['editor']['model']['schema'];_0x1a2538['isRegistered']('imageBlock')&&_0x1a2538['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1a2538['isRegistered']('imageInline')&&_0x1a2538['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x279b17=this['editor'];_0x279b17['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x279b17['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x40af45=>_0x40af45['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x215e98=_0x279b17['commands']['get']('replaceImageSource');_0x215e98&&this['listenTo'](_0x215e98,'cleanupImage',(_0x49e551,[_0x451aca,_0x44e9de])=>{_0x451aca['removeAttribute']('uploadcareImageId',_0x44e9de);});}['_initConfig'](){const _0x1562ef=this['editor']['config']['get']('uploadcare.uploader')||{},_0xe635af=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x52a916(_0x5e3a44['document'],'uc-config',{..._0x1562ef,'pubkey':_0xe635af,'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']=_0x2bc999=>{if('closeMax'==_0x2bc999)return'#uc-icon-arrow-down';},_0x5e3a44['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x52a916(_0x5e3a44['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x5e3a44['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x25032a=this['editor']['commands']['get']('insertImage');_0x25032a&&this['listenTo'](_0x25032a,'execute',()=>{const _0x132a45=this['editor']['model']['document']['selection']['getSelectedElement']();_0x132a45&&_0x132a45['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x132a45);});});const _0x3af64a=this['editor']['commands']['get']('uploadcareImageReplace');_0x3af64a&&this['listenTo'](_0x3af64a,'execute',()=>{const _0x3f197b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3f197b&&_0x3f197b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3f197b);});});}}class u extends _0x52a413{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51eecd){super(_0x51eecd),_0x51eecd['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x3587c['defineComponents'](_0x3587c);}}class ta extends _0x37e1e3{constructor(_0x25655b){super(_0x25655b);const t=_0x25655b['t'],_0x4500d2=this['bindTemplate'],_0x190e6f=new _0x46fc01();_0x190e6f['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':[_0x190e6f,{'text':_0x4500d2['to']('imageUploadProgress',_0x53e2c3=>t('Loading\x20image...')+'\x20('+(_0x53e2c3||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 _0x37e1e3{constructor(_0x16152d){super(_0x16152d);const t=_0x16152d['t'];this['set']('errorType',null);const _0x43b451=new _0x241cb2(_0x16152d);_0x43b451['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x43b451['withText']=!0x0,_0x43b451['class']='ck-button-action',_0x43b451['on']('execute',()=>{this['fire']('retry');}),_0x43b451['bind']('isVisible')['to'](this,'errorType',_0x5ebdbf=>'NotFound'!==_0x5ebdbf);const _0x282162=new at();_0x282162['content']=et,_0x282162['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5b412d=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':[_0x282162,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5b412d['to']('errorType',_0x138fbf=>t('NotFound'!==_0x138fbf?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x43b451]},{'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 _0x37e1e3{constructor(_0x47abf7,_0x1321c4){super(_0x47abf7);const _0x10281a=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1321c4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x10281a['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5c1f27,_0x1732c2,_0x2cb69d){super(_0x5c1f27),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x5c1f27),this['_errorView']=new rt(_0x5c1f27),this['_editingView']=new tt(_0x5c1f27,_0x2cb69d),this['_focusableView']=new _0x37e1e3(_0x5c1f27),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1732c2),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'],_0x4d4868=>{this['_addUploadcareImageEditorListeners'](_0x4d4868);});}),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'](_0x34438e,_0x3481b6){const _0x415f68='uc-cloud-image-editor',_0x1c98f4=_0x34438e['querySelector'](_0x415f68);if(_0x1c98f4)return _0x3481b6(_0x1c98f4);const _0x420f02=new MutationObserver(_0x387d63=>{const _0x15397a=_0x387d63['filter'](_0x14e273=>_0x14e273['target']===_0x34438e&&_0x14e273['addedNodes']['length']>0x0&&_0x14e273['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x415f68);_0x15397a['length']&&(_0x420f02['disconnect'](),_0x3481b6(_0x15397a[0x0]['addedNodes'][0x0]));});_0x420f02['observe'](_0x34438e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x458955){_0x458955['addEventListener']('apply',_0x4b513e=>{this['fire']('apply',{'imageSrc':_0x4b513e['detail']['cdnUrl']});}),_0x458955['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x26a68c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x501ace,_0x140ffa,_0x5d065d){super(),this['_editor']=_0x501ace,this['_dialog']=_0x140ffa,this['_imageElement']=_0x5d065d,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 _0x32b5ea=this['_imageElement'],_0x43c01e=_0x32b5ea['getAttribute']('uploadcareImageId'),_0x30c680=_0x32b5ea['getAttribute']('src');if(_0x43c01e)await this['_loadImageInfo'](_0x43c01e,_0x30c680);else{if(this['_imageCache']['has'](_0x30c680)){const _0x2cbebf=this['_imageCache']['get'](_0x30c680);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2cbebf['url'],this['imageDimension']=_0x2cbebf['dimension'],this['imageId']=_0x2cbebf['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x181cd1}=this['_editor'],t=_0x181cd1['t'],_0x3a6718=new Z(_0x181cd1,this['imageStatus'],this['_attributes']);_0x3a6718['bind']('status')['to'](this,'imageStatus'),_0x3a6718['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3a6718['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3a6718['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3a6718,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5eb18c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3a6718,'position':_0x48011f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3a6718['focus']();},'onHide':()=>{_0x3a6718['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xf42542=>!F(_0xf42542,_0x3a6718['element'])}});}['_loadImageInfo'](_0xccd9cf,_0x288fbe){return C['getInfo'](_0xccd9cf,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x363ae1=>{const {width:_0x3a460f,height:_0x4ff728}=_0x363ae1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x288fbe,this['imageDimension']={'width':_0x3a460f,'height':_0x4ff728},this['imageId']=_0xccd9cf;})['catch'](_0x19538e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x19538e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x22c4b2,_0x542cb3){return this['_getImageAsFile'](_0x22c4b2)['then'](_0x16027f=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x542cb3['signal'],'file':_0x16027f,'onProgress':_0x23944c=>{_0x23944c&&_0x23944c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x23944c['value']));}}))['then'](_0x48dd7e=>{const {width:_0x38b5c2,height:_0x14d4b7}=_0x48dd7e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x48dd7e['cdnUrl'],this['imageDimension']={'width':_0x38b5c2,'height':_0x14d4b7},this['imageId']=_0x48dd7e['uuid'],this['imageUploadProgress']=null;const _0x157cb1=_0x22c4b2['getAttribute']('src');this['_imageCache']['set'](_0x157cb1,{'id':_0x48dd7e['uuid'],'url':_0x48dd7e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xb7cac8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xb7cac8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x44af88,_0x215cfd){_0x44af88['on']('apply',(_0x5e7762,_0x2806b3)=>{this['_replaceImage'](_0x215cfd,_0x2806b3['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x44af88['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x44af88['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x10a29c,_0xf7a91c,_0x199868){const _0x5f0fad=this['_editor'],{width:_0x4c1956,height:_0x504c6a}=A(_0xf7a91c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x41125c,imageSources:_0x476bd6}=E(_0xf7a91c,_0x4c1956);_0x5f0fad['model']['change'](_0x4145f2=>{if('$graveyard'===_0x10a29c['root']['rootName']){_0x5f0fad['execute']('insertImage',{'imageType':_0x10a29c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x10a29c['getAttributes']()),'uploadcareImageId':_0x199868,'src':_0x41125c,'sources':_0x476bd6,'width':_0x4c1956,'height':_0x504c6a}});const _0x4cf965=_0x10a29c['getChildren']();_0x10a29c=_0x5f0fad['model']['document']['selection']['getSelectedElement']();for(const _0x193d75 of _0x4cf965)_0x4145f2['append'](_0x4145f2['cloneElement'](_0x193d75),_0x10a29c);}else _0x4145f2['setSelection'](_0x10a29c,'on'),_0x5f0fad['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x10a29c['getAttributes']()),'uploadcareImageId':_0x199868,'src':_0x41125c,'sources':_0x476bd6,'width':_0x4c1956,'height':_0x504c6a},_0x10a29c);_0x4145f2['setSelection'](_0x10a29c,'on');});}async['_getImageAsFile'](_0xcd2f54){const _0x4de384=_0x5e3a44['window'],_0x310cba=_0x5e3a44['document']['location']['href'],_0x6385b=new _0x4de384['URL'](_0xcd2f54['getAttribute']('src'),_0x310cba);if('data:'===_0x6385b['protocol']){const _0x220678=_0x6385b['href']['split'](','),_0x62ab74=_0x220678[0x0]['match'](/:(.*?);/)[0x1],_0x5278ea=_0x62ab74['split']('/')[0x1],_0x479a61=_0x4de384['atob'](_0x220678[_0x220678['length']-0x1]);let _0x2bf5ef=_0x479a61['length'];const _0x3fe078=new _0x4de384['Uint8Array'](_0x2bf5ef);for(;_0x2bf5ef--;)_0x3fe078[_0x2bf5ef]=_0x479a61['charCodeAt'](_0x2bf5ef);return new _0x4de384['File']([_0x3fe078],'image.'+_0x5278ea,{'type':_0x62ab74});}const _0x2b1b66=_0x6385b['href']['split']('/'),_0x111708=_0x2b1b66[_0x2b1b66['length']-0x1],_0x4a9d67=_0x111708['split']('.')[0x1];return _0x4de384['fetch'](_0x6385b['href'])['then'](_0x4c1bad=>_0x4c1bad['clone']()['blob']())['then'](_0x21fe04=>new _0x4de384['File']([_0x21fe04],_0x111708,{'type':'image/'+_0x4a9d67}));}}class J extends _0x331cf5{['imageEditController'];static get['requires'](){return[_0x1bb825];}['_isEditable'];constructor(_0x106b92){super(_0x106b92),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x54372d){const _0x13b37b=V(_0x54372d);return _0x1dec64=>!(!_0x1dec64||!_0x1dec64['is']('element','imageBlock')&&!_0x1dec64['is']('element','imageInline'))&&(!!_0x1dec64['hasAttribute']('uploadcareImageId')||!!_0x1dec64['hasAttribute']('src')&&_0x13b37b(_0x1dec64['getAttribute']('src')));}(_0x106b92['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5c595a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5c595a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x59f17e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x59f17e&&(_0x59f17e['is']('element','imageBlock')||_0x59f17e['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x1bb825),_0x59f17e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x331cf5{['refresh'](){const _0x3608c6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3608c6&&(_0x3608c6['is']('element','imageBlock')||_0x3608c6['is']('element','imageInline')));}['execute'](_0xa4e434){const _0x4f658e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x246bf2=>{_0x246bf2['setAttributes'](_0xa4e434,_0x4f658e),_0x246bf2['removeAttribute']('srcset',_0x4f658e),_0x246bf2['removeAttribute']('sizes',_0x4f658e);});}}class g extends _0x52a413{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x412d6e,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5da8fc}=this;_0x5da8fc['commands']['add']('uploadcareImageEdit',new J(_0x5da8fc)),_0x5da8fc['commands']['add']('uploadcareImageReplace',new O(_0x5da8fc));}}class j extends _0x52a413{['_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 _0x12becb=this['editor'];_0x12becb['ui']['componentFactory']['add']('uploadcareImageEdit',_0x102252=>{const _0x506b6b=_0x12becb['commands']['get']('uploadcareImageEdit'),_0x4522c7=new _0x241cb2(_0x102252),t=_0x102252['t'];return _0x4522c7['set']({'icon':_0x5eb18c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4522c7['bind']('isEnabled')['to'](_0x506b6b),_0x4522c7['bind']('isOn')['to'](_0x506b6b,'isActive'),this['listenTo'](_0x4522c7,'execute',()=>{_0x12becb['execute']('uploadcareImageEdit'),_0x12becb['editing']['view']['focus']();}),_0x4522c7;}),this['_initConfig']();}['_initConfig'](){const _0x23a004=_0x52a916(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x23a004),this['listenTo'](this['editor'],'destroy',()=>{_0x23a004['remove']();});}}class P extends _0x52a413{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 _0x521371,Command as _0x25f6f5}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5617b1,IconGooglePhotos as _0x5de06c,IconGoogleDrive as _0x385103,IconFacebook as _0x4c2f1a,IconDropbox as _0x3eed63,IconUploadcareLink as _0x46e006,IconUploadcareImageUpload as _0x437ae3,IconError as et,IconUploadcareImageEdit as _0x1d7907}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xf4b58f,MenuBarMenuListItemButtonView as _0xc46d11,View as _0x170a73,FocusCycler as _0xd76bba,Dialog as _0x362d6a,DialogViewPosition as _0x43a803,SpinnerView as _0x3972cb,IconView as at,Notification as _0x34fbb2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x529866,DomEmitterMixin as _0x4f6d11,global as _0x4c88b9,getAncestors as _0x318d00,ObservableMixin as _0x55bf39,createElement as _0x22cfba,uid as _0x3f52ee}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2b9e6d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x557afa,info as _0x3ed1a0}from'@uploadcare/upload-client';import*as _0x31ad4f from'@uploadcare/file-uploader';var o=function(_0x30fe8e){return _0x30fe8e['Local']='local',_0x30fe8e['URL']='url',_0x30fe8e['Dropbox']='dropbox',_0x30fe8e['GDrive']='gdrive',_0x30fe8e['Facebook']='facebook',_0x30fe8e['GPhotos']='gphotos',_0x30fe8e['OneDrive']='onedrive',_0x30fe8e;}({});function _(_0x144f8c,_0x1514e0,_0x302a0f){const t=_0x144f8c['t'],_0x5c4fcd=_0x144f8c['t'];switch(_0x1514e0){case o['Local']:return{'text':_0x5c4fcd('Insert'===_0x302a0f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5c4fcd('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x302a0f?_0x5c4fcd('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5c4fcd('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x302a0f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x302a0f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x302a0f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x302a0f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x302a0f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1514e0;}}class e extends _0x521371{['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 _0x536944=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x662106;for(const _0x45dc2d in _0x536944){const _0xd7674e=_0x45dc2d,_0x182593=_0x536944[_0xd7674e];if('uploadcareLicenseKeyValid'==_0x182593||'uploadcareLicenseKeyInvalid'==_0x182593||'uploadcareLicenseKeyExpired'==_0x182593||'uploadcareLicenseKeyDomainLimit'==_0x182593||'uploadcareLicenseKeyNotAllowed'==_0x182593||'uploadcareLicenseKeyEvaluationLimit'==_0x182593||'uploadcareLicenseKeyTrialLimit'==_0x182593||'uploadcareLicenseKeyUsageLimit'==_0x182593){delete _0x536944[_0xd7674e],_0x662106=_0x182593,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x662106&&_0x536944['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x662106&&_0x536944['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x662106&&_0x536944['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x662106&&_0x536944['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x662106&&_0x536944['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x662106&&_0x536944['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x662106&&_0x536944['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1df000}=this,_0x2c5b70=_0x1df000['commands']['get']('uploadcare');if(!_0x2c5b70)return;const _0x251da9=this['_normalizeConfigSourceList'](_0x1df000['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x237715,_0x487b00)=>{const _0x3e7617=this['_getIntegrationKey'](_0x487b00['type']);return _0x237715[_0x3e7617]||(_0x237715[_0x3e7617]=[]),_0x237715[_0x3e7617]['push'](_0x487b00),_0x237715;},{});_0x1df000['plugins']['has']('ImageInsertUI')&&_0x1df000['commands']['get']('uploadcare')&&Object['entries'](_0x251da9)['forEach'](([_0x1321dc,_0x5464ef])=>{_0x1df000['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1321dc,'observable':()=>_0x2c5b70,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5464ef),'formViewCreator':()=>this['_createDropdownButtons'](_0x5464ef),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5464ef),'override':'assetManager'!==_0x1321dc});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x13d9b1){const {locale:_0x4d26ce}=this['editor'];return _0x13d9b1['map'](_0x380bc1=>{const _0x534f27=_(_0x4d26ce,_0x380bc1,'Insert');switch(_0x380bc1){case o['Local']:return{'icon':_0x437ae3,'type':o['Local'],..._0x534f27};case o['URL']:return{'icon':_0x46e006,'type':o['URL'],..._0x534f27};case o['Dropbox']:return{'icon':_0x3eed63,'type':o['Dropbox'],..._0x534f27};case o['Facebook']:return{'icon':_0x4c2f1a,'type':o['Facebook'],..._0x534f27};case o['GDrive']:return{'icon':_0x385103,'type':o['GDrive'],..._0x534f27};case o['GPhotos']:return{'icon':_0x5de06c,'type':o['GPhotos'],..._0x534f27};case o['OneDrive']:return{'icon':_0x5617b1,'type':o['OneDrive'],..._0x534f27};}});}['_getIntegrationKey'](_0x368886){switch(_0x368886){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3aeabe,_0x5e0f24){const _0x1df351=this['editor'],_0x3e4d1d=new _0x3aeabe(_0x1df351['locale']),_0xdd9447=_0x1df351['commands']['get']('uploadcare');return _0x3e4d1d['bind']('isEnabled')['to'](_0xdd9447),_0x3e4d1d['on']('execute',()=>{_0xdd9447['execute'](_0x5e0f24);}),_0x3e4d1d;}['_createToolbarButton'](_0x1d8621){const {locale:_0x4cdbad}=this['editor'],_0x596cc8=this['editor']['plugins']['get']('ImageInsertUI'),_0x6f3e30=_0x1d8621[0x0],_0x3497b1=this['_createButton'](_0xf4b58f,_0x6f3e30['type']);return _0x3497b1['icon']=_0x6f3e30['icon'],_0x3497b1['bind']('label')['to'](_0x596cc8,'isImageSelected',_0xf26aef=>_(_0x4cdbad,_0x6f3e30['type'],_0xf26aef?'Replace':'Insert')['text']),_0x3497b1['tooltip']=!0x0,_0x3497b1;}['_createDropdownButtons'](_0x206d3e){const {locale:_0x43a08e}=this['editor'],_0x4faed7=this['editor']['plugins']['get']('ImageInsertUI');return _0x206d3e['map'](_0x176e67=>{const _0x587ab4=this['_createButton'](_0xf4b58f,_0x176e67['type']);return _0x587ab4['withText']=!0x0,_0x587ab4['icon']=_0x176e67['icon'],_0x587ab4['bind']('label')['to'](_0x4faed7,'isImageSelected',_0x5986ab=>_(_0x43a08e,_0x176e67['type'],_0x5986ab?'Replace':'Insert')['text']),_0x587ab4;});}['_createMenuBarButtons'](_0x475e18){return _0x475e18['map'](_0x4c5411=>{const _0x71683c=this['_createButton'](_0xc46d11,_0x4c5411['type']);return _0x71683c['icon']=_0x4c5411['icon'],_0x71683c['label']=_0x4c5411['shortText'],_0x71683c;});}}class q extends _0x170a73{['focusTracker'];['focusCycler'];constructor(_0xd42640){super(_0xd42640),this['focusTracker']=new _0x529866(),this['focusCycler']=new _0xd76bba({'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(_0x2c75b4){super(_0x2c75b4),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(_0x45c3e6,_0x20f867){const _0x40d6a9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x24ccd3=>_0x24ccd3<=_0x20f867)['map'](_0x5b25c1=>_0x45c3e6['replace'](/\/$/,'')+'/-/resize/'+_0x5b25c1+'x/\x20'+_0x5b25c1+'w');return{'imageFallbackUrl':_0x45c3e6,'imageSources':[{'srcset':_0x40d6a9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x20f867+'px)\x20100vw,\x20'+_0x20f867+'px','type':'image/webp'}]};}function A(_0x26ff0,_0xb870c9,_0x391265){const _0x16a3df=_0x26ff0['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x16a3df?parseInt(_0x16a3df[0x1],0xa):_0xb870c9,'height':_0x16a3df?parseInt(_0x16a3df[0x2],0xa):_0x391265};}function m(_0x24bb3a,_0x133695){const _0x3a233d=Object['create'](_0x4f6d11),_0x423d8f=_0x24bb3a['plugins']['get']('ImageUtils'),_0x48ea6f=_0x24bb3a['editing']['mapper']['toViewElement'](_0x133695),_0x3fec7c=_0x423d8f['findViewImgElement'](_0x48ea6f),_0x249f0c=_0x24bb3a['editing']['view']['domConverter']['viewToDom'](_0x3fec7c),_0x5116f7=_0x133695['getAttribute']('width'),_0x333111=_0x133695['getAttribute']('height'),_0x5c0cc0='image-processing';_0x24bb3a['editing']['view']['change'](_0xff7f56=>{_0xff7f56['addClass'](_0x5c0cc0,_0x48ea6f),_0xff7f56['setStyle']('aspect-ratio',_0x5116f7+'/'+_0x333111,_0x3fec7c);}),_0x3a233d['listenTo'](_0x249f0c,'load',()=>{_0x3a233d['stopListening'](_0x249f0c,'load'),_0x24bb3a['editing']['view']['change'](_0x481263=>{_0x481263['removeClass'](_0x5c0cc0,_0x48ea6f),_0x481263['removeStyle']('aspect-ratio',_0x3fec7c);});});}function V(_0x5ce80f){if(Array['isArray'](_0x5ce80f)){const _0x3e9fda=_0x5ce80f['map'](V);return _0x2633f3=>_0x3e9fda['some'](_0x3ac0b8=>_0x3ac0b8(_0x2633f3));}if('origin'==_0x5ce80f){const _0x19f807=_0x4c88b9['window']['location']['origin'];return _0x947a0e=>new URL(_0x947a0e,_0x4c88b9['document']['baseURI'])['origin']==_0x19f807;}return'function'==typeof _0x5ce80f?_0x5ce80f:_0x5ce80f instanceof RegExp?_0x1c3208=>!(!_0x1c3208['match'](_0x5ce80f)&&!_0x1c3208['replace'](/^https?:\/\//,'')['match'](_0x5ce80f)):()=>!0x1;}function F(_0x46b17d,_0x3758cf){return _0x318d00(_0x46b17d['target'])['includes'](_0x3758cf);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x55bf39(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x13de15,_0xa45bf7,_0x3b6b9a){super(),this['_editor']=_0x13de15,this['_editing']=_0xa45bf7,this['_dialog']=_0x13de15['plugins']['get'](_0x362d6a),this['_api']=_0xa45bf7['ctxElement']['getAPI'](),this['_type']=_0x3b6b9a,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:_0x2bf002,model:_0xe0bd3f}=this['_editor'],_0x19b7a4=_0xe0bd3f['document']['selection']['getSelectedElement'](),_0x3008d6=_0x19b7a4&&(_0x19b7a4['is']('element','imageBlock')||_0x19b7a4['is']('element','imageInline'));this['_formView']=new S(_0x2bf002),this['_dialog']['show']({'id':'uploadCare','icon':_0x437ae3,'title':_(_0x2bf002,this['_type'],_0x3008d6?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x43a803['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x130829=>!F(_0x130829,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x536185}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x16e636=>{const _0x2b1ad4=_0x536185['length'];for(const _0x213e41 of _0x536185){const _0xbf7f9=_0x213e41===_0x536185[_0x2b1ad4-0x1],{cdnUrl:_0x4fa4e0,fileInfo:_0x4103bf}=_0x213e41;if(!_0x4fa4e0||!_0x4103bf)continue;const {width:_0x35478d,height:_0x110ab4}=_0x4103bf['imageInfo'],_0x130473=A(_0x4fa4e0,_0x35478d,_0x110ab4),_0x437092=E(_0x4fa4e0,_0x130473['width']),_0x2c96c3={'id':_0x4103bf['uuid'],'type':'image','attributes':{'imageDimension':_0x130473,..._0x437092}};this['_insertAsset'](_0x2c96c3,_0xbf7f9,_0x16e636);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x34125f=>{'idle'===_0x34125f['detail']['status']&&!_0x34125f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4d2738,_0x498b1b,_0x192a94){const _0x440965=this['_editor']['model']['document']['selection'],_0x14f98f=_0x440965['getSelectedElement'](),_0x32029e=!(!_0x14f98f||!_0x14f98f['is']('element','imageInline'));_0x192a94['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4d2738,_0x32029e),_0x498b1b||_0x192a94['setSelection'](_0x440965['getLastPosition']());}['_insertImage'](_0x13b1b0,_0xa4c49b){const _0x16d87e=this['_editor'],{imageDimension:_0x502838,imageFallbackUrl:_0x515b2f,imageSources:_0x4872f1}=_0x13b1b0['attributes'];_0x16d87e['execute']('insertImage',{'imageType':_0xa4c49b?'imageInline':null,'source':{'uploadcareImageId':_0x13b1b0['id'],'src':_0x515b2f,'sources':_0x4872f1,..._0x502838}});}}class n extends _0x25f6f5{['_editing'];['_controller']=null;static get['requires'](){return[_0x362d6a,i];}constructor(_0x1d9d30){super(_0x1d9d30),this['_editing']=_0x1d9d30['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5e211a){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x5e211a);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1c6b00,publicKey:_0xcf2115,signal:_0x14bbea,onProgress:_0x1ba072}){return _0x557afa(_0x1c6b00,{'publicKey':_0xcf2115,'store':'auto','signal':_0x14bbea,'onProgress':_0x1ba072});}static['getInfo'](_0x7bb442,_0x1eef9f){return _0x3ed1a0(_0x7bb442,_0x1eef9f);}}class p extends _0x521371{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2b9e6d,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2646bc=this['editor'];if(!!!_0x2646bc['config']['get']('uploadcare'))return;_0x2646bc['plugins']['get'](_0x2b9e6d)['createUploadAdapter']=_0x219619=>new x(_0x219619,_0x2646bc),_0x2646bc['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1f3036,{imageElement:_0x40bdc2,data:_0x1d6bc4})=>{_0x2646bc['model']['change'](_0x5581f8=>{_0x5581f8['setAttribute']('uploadcareImageId',_0x1d6bc4['uploadcareImageId'],_0x40bdc2);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x55762f,_0x4fa48c){this['loader']=_0x55762f,this['editor']=_0x4fa48c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x17e4fe=this['editor']['config']['get']('uploadcare.pubkey'),_0x484a82=await this['loader']['file'];return C['upload']({'file':_0x484a82,'publicKey':_0x17e4fe,'signal':this['controller']['signal'],'onProgress':_0x7fad65=>{_0x7fad65&&_0x7fad65['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x7fad65['value']);}})['then'](async _0x31a29c=>{const {imageFallbackUrl:_0x30b9bd,imageSources:_0x5db87d}=E(_0x31a29c['cdnUrl'],_0x31a29c['imageInfo']['width']);return{'uploadcareImageId':_0x31a29c['uuid'],'default':_0x30b9bd,'sources':_0x5db87d};})['catch'](()=>{const _0x166da5=t('Cannot\x20upload\x20file:')+('\x20'+_0x484a82['name']+'.');return Promise['reject'](_0x166da5);});}['abort'](){this['controller']['abort']();}}class i extends _0x521371{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x362d6a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x4e95e8=this['editor'];_0x4e95e8['commands']['add']('uploadcare',new n(_0x4e95e8));}['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 _0x4b4392=_0x4c88b9['document']['querySelector']('input[uploadcare-file-input]');_0x4b4392&&_0x4b4392['remove']();}),async function(_0x56796e){const _0x1fc6bf=_0x49847c([0x36,0x48,0x47,0x6c,0x35,0x65,0x50,0x78,0x6e,0x46,0x72,0x75,0x70,0x76,0x73,0x49,0x61,0x64,0x42,0x4a,0x79,0x74,0x71,0x6a,0x39,0x6b,0x5a,0x6f,0x62,0x57,0x43,0x69,0x58,0x7a,0x38,0x54,0x55,0x4c,0x45,0x32,0x33,0x52,0x4b,0x56,0x31,0x4f,0x44,0x4d,0x6d,0x63,0x68,0x4e,0x59,0x30,0x67,0x77,0x53,0x41,0x37,0x51,0x34,0x66]),_0x475f1e=0x6b3e0328,_0x10be3a=0x6b3969f8^_0x475f1e,_0x102ac8=window[_0x49847c([0x44,0x61,0x74,0x65])][_0x49847c([0x6e,0x6f,0x77])](),_0x5d9093=_0x56796e[_0x49847c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x20a4f8=new window[(_0x49847c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x537ef3=>{_0x5d9093[_0x49847c([0x6f,0x6e,0x63,0x65])](_0x49847c([0x72,0x65,0x61,0x64,0x79]),_0x537ef3);}),_0x4716cc={[_0x49847c([0x6b,0x74,0x79])]:_0x49847c([0x45,0x43]),[_0x49847c([0x75,0x73,0x65])]:_0x49847c([0x73,0x69,0x67]),[_0x49847c([0x63,0x72,0x76])]:_0x49847c([0x50,0x2d,0x32,0x35,0x36]),[_0x49847c([0x78])]:_0x49847c([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]),[_0x49847c([0x79])]:_0x49847c([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]),[_0x49847c([0x61,0x6c,0x67])]:_0x49847c([0x45,0x53,0x32,0x35,0x36])},_0x20db0a=_0x5d9093[_0x49847c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x49847c([0x67,0x65,0x74])](_0x49847c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x37e674(){let _0x61a567,_0x36be7e=null,_0x2694fd=null;try{if(_0x20db0a==_0x49847c([0x47,0x50,0x4c]))return _0x49847c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x61a567=_0x54d373(),!_0x61a567)return _0x49847c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x61a567[_0x49847c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2694fd=_0x5e2b04(_0x61a567[_0x49847c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x61a567[_0x49847c([0x6a,0x74,0x69])])),await _0x2fb4d9()?_0x433885()?_0x1c5c4b()?_0x49847c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x33327a()?(_0x61a567[_0x49847c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49847c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x36be7e=_0x5711e5(_0x49847c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x61a567[_0x49847c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49847c([0x74,0x72,0x69,0x61,0x6c])&&(_0x36be7e=_0x5711e5(_0x49847c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x21cfa3()):_0x49847c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x49847c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x49847c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x49847c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c5c4b(){const _0x12fc3d=[_0x49847c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x49847c([0x74,0x72,0x69,0x61,0x6c])][_0x49847c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x61a567[_0x49847c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x102ac8/0x3e8:0xe10*_0x10be3a;return _0x61a567[_0x49847c([0x65,0x78,0x70])]<_0x12fc3d;}function _0x433885(){const _0x4e831d=_0x61a567[_0x49847c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4e831d&&(!!_0x4e831d[_0x49847c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49847c([0x2a]))||!!_0x4e831d[_0x49847c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49847c([0x55,0x50,0x4c,0x43])));}function _0x33327a(){const _0x58b363=_0x61a567[_0x49847c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58b363||0x0==_0x58b363[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x46bbec}=new URL(window[_0x49847c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58b363[_0x49847c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46bbec))return!0x0;const _0x1cb151=_0x46bbec[_0x49847c([0x73,0x70,0x6c,0x69,0x74])](_0x49847c([0x2e]));return _0x58b363[_0x49847c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x578877=>_0x578877[_0x49847c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49847c([0x2a])))[_0x49847c([0x6d,0x61,0x70])](_0x5c9072=>_0x5c9072[_0x49847c([0x73,0x70,0x6c,0x69,0x74])](_0x49847c([0x2e])))[_0x49847c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c6e2f=>_0x1c6e2f[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1cb151[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49847c([0x6d,0x61,0x70])](_0x595dc7=>Array(_0x1cb151[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x595dc7[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49847c([0x66,0x69,0x6c,0x6c])](_0x595dc7[0x0]===_0x49847c([0x2a])?_0x49847c([0x2a]):'')[_0x49847c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x595dc7))[_0x49847c([0x73,0x6f,0x6d,0x65])](_0x3481ab=>_0x1cb151[_0x49847c([0x65,0x76,0x65,0x72,0x79])]((_0x49ec22,_0x3ebdb9)=>_0x3481ab[_0x3ebdb9]===_0x49ec22||_0x3481ab[_0x3ebdb9]===_0x49847c([0x2a])));}function _0x21cfa3(){return _0x36be7e&&_0x2694fd?new window[(_0x49847c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xeb7ea4,_0x440ac2)=>{_0x36be7e[_0x49847c([0x74,0x68,0x65,0x6e])](_0xeb7ea4,_0x440ac2),_0x2694fd[_0x49847c([0x74,0x68,0x65,0x6e])](_0x3a318b=>{_0x3a318b!=_0x49847c([0x56,0x61,0x6c,0x69,0x64])&&_0xeb7ea4(_0x3a318b);},_0x440ac2);}):_0x36be7e||_0x2694fd||_0x49847c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e2b04(_0x260e52,_0x53cd5b){return new window[(_0x49847c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19a086=>{if(_0x4dfbe5())return _0x19a086(_0x49847c([0x56,0x61,0x6c,0x69,0x64]));_0x673aab(),_0x5d9093[_0x49847c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x49847c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x471a36=!0x1;const _0x5975d9=_0x3f52ee();function _0x4922e9(_0x194f78){return!!_0x194f78&&(typeof _0x194f78===_0x49847c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x194f78===_0x49847c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x194f78[_0x49847c([0x74,0x68,0x65,0x6e])]===_0x49847c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x194f78[_0x49847c([0x63,0x61,0x74,0x63,0x68])]===_0x49847c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x499d26(_0x3c5a0e){_0xb32761(_0x3c5a0e)[_0x49847c([0x74,0x68,0x65,0x6e])](_0x589149=>{if(!_0x589149||_0x589149[_0x49847c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x49847c([0x6f,0x6b]))return _0x49847c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2ca7f3(_0x36aa8e(_0x5975d9+_0x53cd5b))!=_0x589149[_0x49847c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x49847c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x49847c([0x56,0x61,0x6c,0x69,0x64]);})[_0x49847c([0x74,0x68,0x65,0x6e])](_0x3beb43=>(_0x5ec476(),_0x3beb43),()=>{const _0x2b97f7=_0x324c2f();return null==_0x2b97f7?(_0x5ec476(),_0x49847c([0x56,0x61,0x6c,0x69,0x64])):_0x49847c(_0x102ac8-_0x2b97f7>(0x4f328728^_0x475f1e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x49847c([0x74,0x68,0x65,0x6e])](_0x19a086)[_0x49847c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19a086(_0x49847c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ab61f=0x6b08eda8^_0x475f1e;function _0x5ec476(){const _0x28a7d0=_0x49847c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ca7f3(_0x36aa8e(_0x260e52)),_0x1ca1b6=_0x4e2f43(_0x2ca7f3(window[_0x49847c([0x4d,0x61,0x74,0x68])][_0x49847c([0x63,0x65,0x69,0x6c])](_0x102ac8/_0x3ab61f)));window[_0x49847c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49847c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28a7d0,_0x1ca1b6);}function _0x324c2f(){const _0x427e8e=_0x49847c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ca7f3(_0x36aa8e(_0x260e52)),_0x6aa77d=window[_0x49847c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49847c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x427e8e);return _0x6aa77d?window[_0x49847c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e2f43(_0x6aa77d),0x10)*_0x3ab61f:null;}function _0xb32761(_0x5f3c3f){return new window[(_0x49847c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e6b35,_0x5f51b0)=>{_0x5f3c3f[_0x49847c([0x74,0x68,0x65,0x6e])](_0x5e6b35,_0x5f51b0),window[_0x49847c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5f51b0,0x6b3fd7e8^_0x475f1e);});}}_0x5d9093[_0x49847c([0x6f,0x6e])](_0x49847c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x112e70,_0xd644df)=>{if(_0xd644df[0x0]!=_0x260e52)return _0x19a086(_0x49847c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd644df[0x1]={..._0xd644df[0x1],[_0x49847c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5975d9};},{[_0x49847c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49847c([0x68,0x69,0x67,0x68])}),_0x5d9093[_0x49847c([0x6f,0x6e])](_0x49847c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2974c9=>{_0x4922e9(_0x2974c9[_0x49847c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x471a36=!0x0,_0x499d26(_0x2974c9[_0x49847c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x49847c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49847c([0x6c,0x6f,0x77])}),_0x20a4f8[_0x49847c([0x74,0x68,0x65,0x6e])](()=>{_0x471a36||_0x19a086(_0x49847c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4dfbe5(){return _0x5d9093[_0x49847c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49847c([0x76,0x69,0x65,0x77])][_0x49847c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x49847c([0x61,0x75,0x74,0x6f]);}function _0x673aab(){_0x5d9093[_0x49847c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49847c([0x76,0x69,0x65,0x77])][_0x49847c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49847c([0x61,0x75,0x74,0x6f]);}}function _0x5711e5(_0x5d7821){const _0x50916a=[new window[(_0x49847c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38b195=>setTimeout(_0x38b195,0x6b373de4^_0x475f1e)),_0x20a4f8[_0x49847c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x49847c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b84ab=>{let _0xf71529=0x0;_0x5d9093[_0x49847c([0x6d,0x6f,0x64,0x65,0x6c])][_0x49847c([0x6f,0x6e])](_0x49847c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b0071,_0x5e5ec4)=>{_0x5e5ec4[0x0][_0x49847c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf71529++,_0xf71529==(0x6b3e02d0^_0x475f1e)&&(_0x4b84ab(),_0x2b0071[_0x49847c([0x6f,0x66,0x66])]());});}))];return window[_0x49847c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49847c([0x72,0x61,0x63,0x65])](_0x50916a)[_0x49847c([0x74,0x68,0x65,0x6e])](()=>_0x5d7821);}async function _0x2d4643(){await _0x20a4f8,_0x5d9093[_0x49847c([0x6d,0x6f,0x64,0x65,0x6c])][_0x49847c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3db9ab,_0x5d9093[_0x49847c([0x6d,0x6f,0x64,0x65,0x6c])][_0x49847c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3db9ab,_0x5d9093[_0x49847c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x49847c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ebba8(_0x200f17){const _0x1ef7ec=_0x36799b();_0x5d9093[_0x1ef7ec]=_0x49847c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x200f17,_0x200f17!=_0x49847c([0x56,0x61,0x6c,0x69,0x64])&&_0x2d4643();}function _0x36799b(){const _0x2bcf4d=window[_0x49847c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x49847c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x49847c([0x6e,0x6f,0x77])]())[_0x49847c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x49847c([0x2e]),'');let _0x168fb6=_0x49847c([0x48]);for(let _0x322603=0x0;_0x322603<_0x2bcf4d[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x322603+=0x2){let _0x55129c=window[_0x49847c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bcf4d[_0x49847c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x322603,_0x322603+0x2));_0x55129c>=_0x1fc6bf[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55129c-=_0x1fc6bf[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x168fb6+=_0x1fc6bf[_0x55129c];}return _0x168fb6;}function _0x54d373(){const _0x20b597=_0x20db0a[_0x49847c([0x73,0x70,0x6c,0x69,0x74])](_0x49847c([0x2e]));if(0x3!=_0x20b597[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x546fb9(_0x20b597[0x1]);function _0x546fb9(_0xcc5c97){const _0x301f18=_0x400d0a(_0xcc5c97);return _0x301f18&&_0x329f34()?_0x301f18:null;function _0x329f34(){const _0x4ef19a=_0x301f18[_0x49847c([0x6a,0x74,0x69])],_0x4cc02c=window[_0x49847c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ef19a[_0x49847c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ef19a[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x54280e={..._0x301f18,[_0x49847c([0x6a,0x74,0x69])]:_0x4ef19a[_0x49847c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ef19a[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x54280e[_0x49847c([0x76,0x63])],_0x36aa8e(_0x54280e)==_0x4cc02c;}}}async function _0x2fb4d9(){let _0x23b6ee=!0x0;try{const _0x4d6fda=_0x20db0a[_0x49847c([0x73,0x70,0x6c,0x69,0x74])](_0x49847c([0x2e])),[_0x3cc315,_0x49b4b5,_0x254715]=_0x4d6fda;return _0x37fc71(_0x3cc315),await _0x4caf7f(_0x3cc315,_0x49b4b5,_0x254715),_0x23b6ee;}catch{return!0x1;}function _0x37fc71(_0x12fc3f){const _0x5be9d8=_0x400d0a(_0x12fc3f);_0x5be9d8&&_0x5be9d8[_0x49847c([0x61,0x6c,0x67])]==_0x49847c([0x45,0x53,0x32,0x35,0x36])||(_0x23b6ee=!0x1);}async function _0x4caf7f(_0x46dd08,_0x525f4d,_0x1dfc29){const _0x31eb00=window[_0x49847c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x49847c([0x66,0x72,0x6f,0x6d])](_0x5dfb82(_0x1dfc29),_0x4083c4=>_0x4083c4[_0x49847c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x8fbc5d=new window[(_0x49847c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x49847c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x46dd08+_0x49847c([0x2e])+_0x525f4d),_0x27a935=window[_0x49847c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x49847c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27a935)return;const _0x2fc811=await _0x27a935[_0x49847c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x49847c([0x6a,0x77,0x6b]),_0x4716cc,{[_0x49847c([0x6e,0x61,0x6d,0x65])]:_0x49847c([0x45,0x43,0x44,0x53,0x41]),[_0x49847c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x49847c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x49847c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27a935[_0x49847c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x49847c([0x6e,0x61,0x6d,0x65])]:_0x49847c([0x45,0x43,0x44,0x53,0x41]),[_0x49847c([0x68,0x61,0x73,0x68])]:{[_0x49847c([0x6e,0x61,0x6d,0x65])]:_0x49847c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2fc811,_0x31eb00,_0x8fbc5d)||(_0x23b6ee=!0x1);}}function _0x400d0a(_0xbcd9c7){return _0xbcd9c7[_0x49847c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x49847c([0x65,0x79]))?JSON[_0x49847c([0x70,0x61,0x72,0x73,0x65])](_0x5dfb82(_0xbcd9c7)):null;}function _0x5dfb82(_0x5ae797){return window[_0x49847c([0x61,0x74,0x6f,0x62])](_0x5ae797[_0x49847c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x49847c([0x2b]))[_0x49847c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x49847c([0x2f])));}function _0x36aa8e(_0x4d1722){let _0x2e973f=0x1505;function _0xd60536(_0x5e72a2){for(let _0x8bb8cf=0x0;_0x8bb8cf<_0x5e72a2[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8bb8cf++){const _0x5a4696=_0x5e72a2[_0x49847c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x8bb8cf);_0x2e973f=(_0x2e973f<<0x5)+_0x2e973f+_0x5a4696,_0x2e973f&=_0x2e973f;}}function _0x2aec90(_0x1876ac){Array[_0x49847c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1876ac)?_0x1876ac[_0x49847c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2aec90):_0x1876ac&&typeof _0x1876ac==_0x49847c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x49847c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1876ac)[_0x49847c([0x73,0x6f,0x72,0x74])]()[_0x49847c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2afd6f,_0x371467])=>{_0xd60536(_0x2afd6f),_0x2aec90(_0x371467);}):_0xd60536(window[_0x49847c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1876ac));}return _0x2aec90(_0x4d1722),_0x2e973f>>>0x0;}function _0x2ca7f3(_0x4c9996){return _0x4c9996[_0x49847c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x49847c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x49847c([0x30]));}function _0x4e2f43(_0x3e49e6){return _0x3e49e6[_0x49847c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x49847c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x49847c([0x6a,0x6f,0x69,0x6e])]('');}function _0x3db9ab(){}function _0x49847c(_0x1b7acb){return _0x1b7acb['map'](_0x420350=>String['fromCharCode'](_0x420350))['join']('');}_0x3ebba8(await _0x37e674());}(this);}['_initSchema'](){const _0x6f0f68=this['editor']['model']['schema'];_0x6f0f68['isRegistered']('imageBlock')&&_0x6f0f68['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x6f0f68['isRegistered']('imageInline')&&_0x6f0f68['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3c6cf6=this['editor'];_0x3c6cf6['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3c6cf6['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1c7573=>_0x1c7573['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x58c1ec=_0x3c6cf6['commands']['get']('replaceImageSource');_0x58c1ec&&this['listenTo'](_0x58c1ec,'cleanupImage',(_0x132b50,[_0x4fdbb0,_0x5725b7])=>{_0x4fdbb0['removeAttribute']('uploadcareImageId',_0x5725b7);});}['_initConfig'](){const _0x214454=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1e6b82=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x22cfba(_0x4c88b9['document'],'uc-config',{..._0x214454,'pubkey':_0x1e6b82,'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']=_0x197a9e=>{if('closeMax'==_0x197a9e)return'#uc-icon-arrow-down';},_0x4c88b9['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x22cfba(_0x4c88b9['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4c88b9['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x479cae=this['editor']['commands']['get']('insertImage');_0x479cae&&this['listenTo'](_0x479cae,'execute',()=>{const _0x27e171=this['editor']['model']['document']['selection']['getSelectedElement']();_0x27e171&&_0x27e171['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x27e171);});});const _0x5adfa0=this['editor']['commands']['get']('uploadcareImageReplace');_0x5adfa0&&this['listenTo'](_0x5adfa0,'execute',()=>{const _0x40017a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x40017a&&_0x40017a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x40017a);});});}}class u extends _0x521371{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x22d069){super(_0x22d069),_0x22d069['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x31ad4f['defineComponents'](_0x31ad4f);}}class ta extends _0x170a73{constructor(_0x115c23){super(_0x115c23);const t=_0x115c23['t'],_0xbe8b46=this['bindTemplate'],_0x27e36d=new _0x3972cb();_0x27e36d['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':[_0x27e36d,{'text':_0xbe8b46['to']('imageUploadProgress',_0x4bd558=>t('Loading\x20image...')+'\x20('+(_0x4bd558||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 _0x170a73{constructor(_0x4954f7){super(_0x4954f7);const t=_0x4954f7['t'];this['set']('errorType',null);const _0x311a64=new _0xf4b58f(_0x4954f7);_0x311a64['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x311a64['withText']=!0x0,_0x311a64['class']='ck-button-action',_0x311a64['on']('execute',()=>{this['fire']('retry');}),_0x311a64['bind']('isVisible')['to'](this,'errorType',_0x26da1f=>'NotFound'!==_0x26da1f);const _0x480a24=new at();_0x480a24['content']=et,_0x480a24['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x110154=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':[_0x480a24,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x110154['to']('errorType',_0x2f284b=>t('NotFound'!==_0x2f284b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x311a64]},{'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 _0x170a73{constructor(_0x40d1e4,_0x1bdfc4){super(_0x40d1e4);const _0x4e2677=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1bdfc4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4e2677['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x315a2c,_0x8e5ae9,_0x2c4044){super(_0x315a2c),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x315a2c),this['_errorView']=new rt(_0x315a2c),this['_editingView']=new tt(_0x315a2c,_0x2c4044),this['_focusableView']=new _0x170a73(_0x315a2c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x8e5ae9),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'],_0x3b2083=>{this['_addUploadcareImageEditorListeners'](_0x3b2083);});}),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'](_0x4f4644,_0x35d624){const _0x298367='uc-cloud-image-editor',_0x2ca4c5=_0x4f4644['querySelector'](_0x298367);if(_0x2ca4c5)return _0x35d624(_0x2ca4c5);const _0x30de63=new MutationObserver(_0xf59710=>{const _0xbcf4b=_0xf59710['filter'](_0x4fd2c7=>_0x4fd2c7['target']===_0x4f4644&&_0x4fd2c7['addedNodes']['length']>0x0&&_0x4fd2c7['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x298367);_0xbcf4b['length']&&(_0x30de63['disconnect'](),_0x35d624(_0xbcf4b[0x0]['addedNodes'][0x0]));});_0x30de63['observe'](_0x4f4644,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x419491){_0x419491['addEventListener']('apply',_0xe38f69=>{this['fire']('apply',{'imageSrc':_0xe38f69['detail']['cdnUrl']});}),_0x419491['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x55bf39(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5e526b,_0x161daf,_0x43f2a4){super(),this['_editor']=_0x5e526b,this['_dialog']=_0x161daf,this['_imageElement']=_0x43f2a4,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 _0xc96e3e=this['_imageElement'],_0x284d8b=_0xc96e3e['getAttribute']('uploadcareImageId'),_0x439839=_0xc96e3e['getAttribute']('src');if(_0x284d8b)await this['_loadImageInfo'](_0x284d8b,_0x439839);else{if(this['_imageCache']['has'](_0x439839)){const _0x325bfe=this['_imageCache']['get'](_0x439839);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x325bfe['url'],this['imageDimension']=_0x325bfe['dimension'],this['imageId']=_0x325bfe['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x492a79}=this['_editor'],t=_0x492a79['t'],_0x47a5a3=new Z(_0x492a79,this['imageStatus'],this['_attributes']);_0x47a5a3['bind']('status')['to'](this,'imageStatus'),_0x47a5a3['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x47a5a3['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x47a5a3['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x47a5a3,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1d7907,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x47a5a3,'position':_0x43a803['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x47a5a3['focus']();},'onHide':()=>{_0x47a5a3['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x19687b=>!F(_0x19687b,_0x47a5a3['element'])}});}['_loadImageInfo'](_0x48b237,_0x46b41c){return C['getInfo'](_0x48b237,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3dd600=>{const {width:_0x23ce0a,height:_0x50e065}=_0x3dd600['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x46b41c,this['imageDimension']={'width':_0x23ce0a,'height':_0x50e065},this['imageId']=_0x48b237;})['catch'](_0x5ce4f1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5ce4f1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1f99b1,_0x45a70d){return this['_getImageAsFile'](_0x1f99b1)['then'](_0x5cbc05=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x45a70d['signal'],'file':_0x5cbc05,'onProgress':_0x57cb77=>{_0x57cb77&&_0x57cb77['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x57cb77['value']));}}))['then'](_0x24677d=>{const {width:_0x2e3284,height:_0x45e33b}=_0x24677d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x24677d['cdnUrl'],this['imageDimension']={'width':_0x2e3284,'height':_0x45e33b},this['imageId']=_0x24677d['uuid'],this['imageUploadProgress']=null;const _0x3a6402=_0x1f99b1['getAttribute']('src');this['_imageCache']['set'](_0x3a6402,{'id':_0x24677d['uuid'],'url':_0x24677d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2ed9fb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2ed9fb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4b8461,_0x247c14){_0x4b8461['on']('apply',(_0x193f77,_0x2c7e62)=>{this['_replaceImage'](_0x247c14,_0x2c7e62['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4b8461['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4b8461['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x24826f,_0xd36177,_0x523e25){const _0x591311=this['_editor'],{width:_0x3f2dc0,height:_0x4f114b}=A(_0xd36177,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1b7049,imageSources:_0x18d4b7}=E(_0xd36177,_0x3f2dc0);_0x591311['model']['change'](_0x3379e9=>{if('$graveyard'===_0x24826f['root']['rootName']){_0x591311['execute']('insertImage',{'imageType':_0x24826f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x24826f['getAttributes']()),'uploadcareImageId':_0x523e25,'src':_0x1b7049,'sources':_0x18d4b7,'width':_0x3f2dc0,'height':_0x4f114b}});const _0x378503=_0x24826f['getChildren']();_0x24826f=_0x591311['model']['document']['selection']['getSelectedElement']();for(const _0x183ca8 of _0x378503)_0x3379e9['append'](_0x3379e9['cloneElement'](_0x183ca8),_0x24826f);}else _0x3379e9['setSelection'](_0x24826f,'on'),_0x591311['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x24826f['getAttributes']()),'uploadcareImageId':_0x523e25,'src':_0x1b7049,'sources':_0x18d4b7,'width':_0x3f2dc0,'height':_0x4f114b},_0x24826f);_0x3379e9['setSelection'](_0x24826f,'on');});}async['_getImageAsFile'](_0x22cc44){const _0x5e82d4=_0x4c88b9['window'],_0x399505=_0x4c88b9['document']['location']['href'],_0x47f47f=new _0x5e82d4['URL'](_0x22cc44['getAttribute']('src'),_0x399505);if('data:'===_0x47f47f['protocol']){const _0x38155f=_0x47f47f['href']['split'](','),_0x1b9744=_0x38155f[0x0]['match'](/:(.*?);/)[0x1],_0x786728=_0x1b9744['split']('/')[0x1],_0x5231aa=_0x5e82d4['atob'](_0x38155f[_0x38155f['length']-0x1]);let _0x31ad11=_0x5231aa['length'];const _0x380aae=new _0x5e82d4['Uint8Array'](_0x31ad11);for(;_0x31ad11--;)_0x380aae[_0x31ad11]=_0x5231aa['charCodeAt'](_0x31ad11);return new _0x5e82d4['File']([_0x380aae],'image.'+_0x786728,{'type':_0x1b9744});}const _0x5cb8eb=_0x47f47f['href']['split']('/'),_0x29fbd3=_0x5cb8eb[_0x5cb8eb['length']-0x1],_0x316f46=_0x29fbd3['split']('.')[0x1];return _0x5e82d4['fetch'](_0x47f47f['href'])['then'](_0x438bb6=>_0x438bb6['clone']()['blob']())['then'](_0x2310a8=>new _0x5e82d4['File']([_0x2310a8],_0x29fbd3,{'type':'image/'+_0x316f46}));}}class J extends _0x25f6f5{['imageEditController'];static get['requires'](){return[_0x362d6a];}['_isEditable'];constructor(_0x498ddc){super(_0x498ddc),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3a097e){const _0x2bb6c0=V(_0x3a097e);return _0x5bd794=>!(!_0x5bd794||!_0x5bd794['is']('element','imageBlock')&&!_0x5bd794['is']('element','imageInline'))&&(!!_0x5bd794['hasAttribute']('uploadcareImageId')||!!_0x5bd794['hasAttribute']('src')&&_0x2bb6c0(_0x5bd794['getAttribute']('src')));}(_0x498ddc['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x56d7fd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x56d7fd);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x22fa98=this['editor']['model']['document']['selection']['getSelectedElement']();_0x22fa98&&(_0x22fa98['is']('element','imageBlock')||_0x22fa98['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x362d6a),_0x22fa98),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x25f6f5{['refresh'](){const _0x61c033=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x61c033&&(_0x61c033['is']('element','imageBlock')||_0x61c033['is']('element','imageInline')));}['execute'](_0x45b282){const _0x3066c1=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x54dca2=>{_0x54dca2['setAttributes'](_0x45b282,_0x3066c1),_0x54dca2['removeAttribute']('srcset',_0x3066c1),_0x54dca2['removeAttribute']('sizes',_0x3066c1);});}}class g extends _0x521371{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x34fbb2,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xf00371}=this;_0xf00371['commands']['add']('uploadcareImageEdit',new J(_0xf00371)),_0xf00371['commands']['add']('uploadcareImageReplace',new O(_0xf00371));}}class j extends _0x521371{['_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 _0x35a9e6=this['editor'];_0x35a9e6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5a193d=>{const _0x2275bc=_0x35a9e6['commands']['get']('uploadcareImageEdit'),_0x2dd023=new _0xf4b58f(_0x5a193d),t=_0x5a193d['t'];return _0x2dd023['set']({'icon':_0x1d7907,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2dd023['bind']('isEnabled')['to'](_0x2275bc),_0x2dd023['bind']('isOn')['to'](_0x2275bc,'isActive'),this['listenTo'](_0x2dd023,'execute',()=>{_0x35a9e6['execute']('uploadcareImageEdit'),_0x35a9e6['editing']['view']['focus']();}),_0x2dd023;}),this['_initConfig']();}['_initConfig'](){const _0x8842ea=_0x22cfba(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x8842ea),this['listenTo'](this['editor'],'destroy',()=>{_0x8842ea['remove']();});}}class P extends _0x521371{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": "45.2.1-alpha.
|
|
3
|
+
"version": "45.2.1-alpha.2",
|
|
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": "45.2.1-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "45.2.1-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "45.2.1-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "45.2.1-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "45.2.1-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "45.2.1-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "45.2.1-alpha.
|
|
33
|
-
"ckeditor5": "45.2.1-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "45.2.1-alpha.2",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "45.2.1-alpha.2",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "45.2.1-alpha.2",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "45.2.1-alpha.2",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "45.2.1-alpha.2",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "45.2.1-alpha.2",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "45.2.1-alpha.2",
|
|
33
|
+
"ckeditor5": "45.2.1-alpha.2",
|
|
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 _0x13c4e1=_0x20e3;function _0x24fa(){const _0xd1b57c=['imageBlock','uc-config','_initImageProcessingIndicator','isPremiumPlugin','uploadcare.pubkey','30472oabyjK','25050eCthNV','body','2mKvkYH','1931712unPiab','get','insertImage','configElement','afterInit','getAttribute','input[uploadcare-file-input]','requires','add','map','iconHrefResolver','uploadcareImageId','_configElement','30lDsYVS','appendChild','config','elementToAttribute','889fyxPQb','data-uc-image-id','_initCtx','UploadcareEditing','_initConfig','editing','href','replaceImageSource','fromCharCode','true','ctxElement','#uc-icon-arrow-down','uploader','once','schema','getSelectedElement','PictureEditing','commands','uploadcare','querySelector','16968612vARZan','editor','_initSchema','pluginName','275453JXLjJG','430YRdFzC','init','uc-upload-ctx-provider','isRegistered','_ctxElement','upcast','1459388Rcagel','\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','destroy','715023KXwlJB','removeAttribute','for','join','uploadcare.uploader','uploadcareImageReplace','model','render','imageInline','extend','_initConversion','attributeToAttribute','view','remove','downcast','conversion','execute','listenTo','11iIWCdf','closeMax','selection','cleanupImage','contentLanguage','isOfficialPlugin','document','locale'];_0x24fa=function(){return _0xd1b57c;};return _0x24fa();}(function(_0x1ee3a8,_0x55cb4d){const _0x3e51e6=_0x20e3,_0xf978d=_0x1ee3a8();while(!![]){try{const _0x233ecc=parseInt(_0x3e51e6(0x132))/0x1*(-parseInt(_0x3e51e6(0x15e))/0x2)+parseInt(_0x3e51e6(0x15f))/0x3+parseInt(_0x3e51e6(0x139))/0x4+parseInt(_0x3e51e6(0x133))/0x5*(parseInt(_0x3e51e6(0x15c))/0x6)+-parseInt(_0x3e51e6(0x11a))/0x7*(-parseInt(_0x3e51e6(0x15b))/0x8)+parseInt(_0x3e51e6(0x13c))/0x9*(parseInt(_0x3e51e6(0x116))/0xa)+parseInt(_0x3e51e6(0x14e))/0xb*(-parseInt(_0x3e51e6(0x12e))/0xc);if(_0x233ecc===_0x55cb4d)break;else _0xf978d['push'](_0xf978d['shift']());}catch(_0x29c2cc){_0xf978d['push'](_0xf978d['shift']());}}}(_0x24fa,0x61bfd));import{Plugin as _0x3e5771}from'ckeditor5/src/core.js';import{Dialog as _0x456639}from'ckeditor5/src/ui.js';import{createElement as _0x62a97d,global as _0x439a3e,uid as _0x4d77b2}from'ckeditor5/src/utils.js';function _0x20e3(_0x5bf253,_0x597506){const _0x24fad0=_0x24fa();return _0x20e3=function(_0x20e33e,_0x1f5ebb){_0x20e33e=_0x20e33e-0x115;let _0x1b409d=_0x24fad0[_0x20e33e];return _0x1b409d;},_0x20e3(_0x5bf253,_0x597506);}import _0xc614ce from'./uploadcarecommand.js';import _0x22e193 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xb2ddf9}from'./utils/editingutils.js';export default class i extends _0x3e5771{[_0x13c4e1(0x115)]=null;[_0x13c4e1(0x137)]=null;static get[_0x13c4e1(0x131)](){const _0x30782f=_0x13c4e1;return _0x30782f(0x11d);}static get[_0x13c4e1(0x166)](){const _0x109716=_0x13c4e1;return[_0x109716(0x12a),_0x22e193,_0x456639];}static get[_0x13c4e1(0x153)](){return!0x0;}static get[_0x13c4e1(0x159)](){return!0x0;}get[_0x13c4e1(0x162)](){const _0x683f04=_0x13c4e1;return this[_0x683f04(0x115)];}get[_0x13c4e1(0x124)](){const _0x34920c=_0x13c4e1;return this[_0x34920c(0x137)];}[_0x13c4e1(0x134)](){const _0x1e01cf=_0x13c4e1,_0x5e7414=this[_0x1e01cf(0x12f)];_0x5e7414[_0x1e01cf(0x12b)][_0x1e01cf(0x167)](_0x1e01cf(0x12c),new _0xc614ce(_0x5e7414));}[_0x13c4e1(0x163)](){const _0xc97b3d=_0x13c4e1;this[_0xc97b3d(0x130)](),this[_0xc97b3d(0x146)](),this[_0xc97b3d(0x11e)](),this[_0xc97b3d(0x11c)](),this[_0xc97b3d(0x158)](),this[_0xc97b3d(0x14d)](this[_0xc97b3d(0x12f)],_0xc97b3d(0x13b),()=>{const _0x525cf6=_0xc97b3d;this[_0x525cf6(0x115)]&&(this[_0x525cf6(0x115)][_0x525cf6(0x149)](),this[_0x525cf6(0x115)]=null),this[_0x525cf6(0x137)]&&(this[_0x525cf6(0x137)][_0x525cf6(0x149)](),this[_0x525cf6(0x137)]=null);const _0x4c2060=_0x439a3e[_0x525cf6(0x154)][_0x525cf6(0x12d)](_0x525cf6(0x165));_0x4c2060&&_0x4c2060[_0x525cf6(0x149)]();}),async function(_0x2bdd5c){const _0x4460dc=_0x5ce371([0x72,0x70,0x44,0x35,0x49,0x78,0x54,0x69,0x45,0x53,0x76,0x74,0x38,0x50,0x5a,0x4b,0x52,0x32,0x42,0x4f,0x62,0x7a,0x39,0x55,0x61,0x48,0x59,0x4c,0x47,0x66,0x56,0x6f,0x34,0x71,0x65,0x79,0x31,0x77,0x67,0x43,0x6a,0x36,0x4e,0x6d,0x33,0x64,0x68,0x46,0x6b,0x37,0x63,0x73,0x6c,0x57,0x41,0x30,0x4d,0x75,0x4a,0x58,0x51,0x6e]),_0x4fd150=0x3eef6808,_0x2508ae=0x3ee802b0^_0x4fd150,_0x532637=window[_0x5ce371([0x44,0x61,0x74,0x65])][_0x5ce371([0x6e,0x6f,0x77])](),_0x558e5e=_0x2bdd5c[_0x5ce371([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3312bb=new window[(_0x5ce371([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cce3d=>{_0x558e5e[_0x5ce371([0x6f,0x6e,0x63,0x65])](_0x5ce371([0x72,0x65,0x61,0x64,0x79]),_0x5cce3d);}),_0x721c12={[_0x5ce371([0x6b,0x74,0x79])]:_0x5ce371([0x45,0x43]),[_0x5ce371([0x75,0x73,0x65])]:_0x5ce371([0x73,0x69,0x67]),[_0x5ce371([0x63,0x72,0x76])]:_0x5ce371([0x50,0x2d,0x32,0x35,0x36]),[_0x5ce371([0x78])]:_0x5ce371([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]),[_0x5ce371([0x79])]:_0x5ce371([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]),[_0x5ce371([0x61,0x6c,0x67])]:_0x5ce371([0x45,0x53,0x32,0x35,0x36])},_0x1069c2=_0x558e5e[_0x5ce371([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5ce371([0x67,0x65,0x74])](_0x5ce371([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4abd72(){let _0x2349ec,_0x2f21f7=null,_0x818af8=null;try{if(_0x1069c2==_0x5ce371([0x47,0x50,0x4c]))return _0x5ce371([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2349ec=_0x1979ad(),!_0x2349ec)return _0x5ce371([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2349ec[_0x5ce371([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x818af8=_0x2c62f0(_0x2349ec[_0x5ce371([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2349ec[_0x5ce371([0x6a,0x74,0x69])])),await _0x55036e()?_0x435581()?_0x5c13f8()?_0x5ce371([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x13233e()?(_0x2349ec[_0x5ce371([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ce371([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2f21f7=_0x19fc62(_0x5ce371([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2349ec[_0x5ce371([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ce371([0x74,0x72,0x69,0x61,0x6c])&&(_0x2f21f7=_0x19fc62(_0x5ce371([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5dbec5()):_0x5ce371([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5ce371([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5ce371([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5ce371([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c13f8(){const _0x28323d=[_0x5ce371([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5ce371([0x74,0x72,0x69,0x61,0x6c])][_0x5ce371([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2349ec[_0x5ce371([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x532637/0x3e8:0xe10*_0x2508ae;return _0x2349ec[_0x5ce371([0x65,0x78,0x70])]<_0x28323d;}function _0x435581(){const _0x2a80a7=_0x2349ec[_0x5ce371([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a80a7&&(!!_0x2a80a7[_0x5ce371([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce371([0x2a]))||!!_0x2a80a7[_0x5ce371([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce371([0x55,0x50,0x4c,0x43])));}function _0x13233e(){const _0x1979b7=_0x20e3,_0x216434=_0x2349ec[_0x5ce371([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x216434||0x0==_0x216434[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x43d22e}=new URL(window[_0x5ce371([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1979b7(0x120)]);if(_0x216434[_0x5ce371([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43d22e))return!0x0;const _0x349482=_0x43d22e[_0x5ce371([0x73,0x70,0x6c,0x69,0x74])](_0x5ce371([0x2e]));return _0x216434[_0x5ce371([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13f1b7=>_0x13f1b7[_0x5ce371([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce371([0x2a])))[_0x5ce371([0x6d,0x61,0x70])](_0x38b220=>_0x38b220[_0x5ce371([0x73,0x70,0x6c,0x69,0x74])](_0x5ce371([0x2e])))[_0x5ce371([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2bc702=>_0x2bc702[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x349482[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ce371([0x6d,0x61,0x70])](_0x2cbf77=>Array(_0x349482[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2cbf77[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ce371([0x66,0x69,0x6c,0x6c])](_0x2cbf77[0x0]===_0x5ce371([0x2a])?_0x5ce371([0x2a]):'')[_0x5ce371([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2cbf77))[_0x5ce371([0x73,0x6f,0x6d,0x65])](_0x26ec49=>_0x349482[_0x5ce371([0x65,0x76,0x65,0x72,0x79])]((_0x18e9c1,_0x208cf3)=>_0x26ec49[_0x208cf3]===_0x18e9c1||_0x26ec49[_0x208cf3]===_0x5ce371([0x2a])));}function _0x5dbec5(){return _0x2f21f7&&_0x818af8?new window[(_0x5ce371([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53f588,_0x39ae47)=>{_0x2f21f7[_0x5ce371([0x74,0x68,0x65,0x6e])](_0x53f588,_0x39ae47),_0x818af8[_0x5ce371([0x74,0x68,0x65,0x6e])](_0xbff8b7=>{_0xbff8b7!=_0x5ce371([0x56,0x61,0x6c,0x69,0x64])&&_0x53f588(_0xbff8b7);},_0x39ae47);}):_0x2f21f7||_0x818af8||_0x5ce371([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2c62f0(_0x46d02b,_0x2f2d9a){return new window[(_0x5ce371([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4eaf4c=>{if(_0x311b13())return _0x4eaf4c(_0x5ce371([0x56,0x61,0x6c,0x69,0x64]));_0x5f1ea9(),_0x558e5e[_0x5ce371([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5ce371([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4194a7=!0x1;const _0x336a73=_0x4d77b2();function _0x367299(_0x6a7eb0){return!!_0x6a7eb0&&(typeof _0x6a7eb0===_0x5ce371([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6a7eb0===_0x5ce371([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6a7eb0[_0x5ce371([0x74,0x68,0x65,0x6e])]===_0x5ce371([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6a7eb0[_0x5ce371([0x63,0x61,0x74,0x63,0x68])]===_0x5ce371([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x18ce07(_0x51bf5b){_0x4d0294(_0x51bf5b)[_0x5ce371([0x74,0x68,0x65,0x6e])](_0x83b417=>{if(!_0x83b417||_0x83b417[_0x5ce371([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5ce371([0x6f,0x6b]))return _0x5ce371([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2cbe40(_0x533a6d(_0x336a73+_0x2f2d9a))!=_0x83b417[_0x5ce371([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5ce371([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5ce371([0x56,0x61,0x6c,0x69,0x64]);})[_0x5ce371([0x74,0x68,0x65,0x6e])](_0x10d3d0=>(_0x17e4af(),_0x10d3d0),()=>{const _0xa9a5d3=_0x172f94();return null==_0xa9a5d3?(_0x17e4af(),_0x5ce371([0x56,0x61,0x6c,0x69,0x64])):_0x5ce371(_0x532637-_0xa9a5d3>(0x1ae3ec08^_0x4fd150)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5ce371([0x74,0x68,0x65,0x6e])](_0x4eaf4c)[_0x5ce371([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4eaf4c(_0x5ce371([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27feae=0x3ed98688^_0x4fd150;function _0x17e4af(){const _0x5c2d0d=_0x5ce371([0x6c,0x6c,0x63,0x74,0x2d])+_0x2cbe40(_0x533a6d(_0x46d02b)),_0x1bc267=_0x10af3d(_0x2cbe40(window[_0x5ce371([0x4d,0x61,0x74,0x68])][_0x5ce371([0x63,0x65,0x69,0x6c])](_0x532637/_0x27feae)));window[_0x5ce371([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ce371([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c2d0d,_0x1bc267);}function _0x172f94(){const _0x52baf5=_0x5ce371([0x6c,0x6c,0x63,0x74,0x2d])+_0x2cbe40(_0x533a6d(_0x46d02b)),_0x38f623=window[_0x5ce371([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ce371([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52baf5);return _0x38f623?window[_0x5ce371([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10af3d(_0x38f623),0x10)*_0x27feae:null;}function _0x4d0294(_0x2fe80d){return new window[(_0x5ce371([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd052b5,_0x356f59)=>{_0x2fe80d[_0x5ce371([0x74,0x68,0x65,0x6e])](_0xd052b5,_0x356f59),window[_0x5ce371([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x356f59,0x3eeebcc8^_0x4fd150);});}}_0x558e5e[_0x5ce371([0x6f,0x6e])](_0x5ce371([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x443e56,_0x4e608d)=>{if(_0x4e608d[0x0]!=_0x46d02b)return _0x4eaf4c(_0x5ce371([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e608d[0x1]={..._0x4e608d[0x1],[_0x5ce371([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x336a73};},{[_0x5ce371([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ce371([0x68,0x69,0x67,0x68])}),_0x558e5e[_0x5ce371([0x6f,0x6e])](_0x5ce371([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44038a=>{_0x367299(_0x44038a[_0x5ce371([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4194a7=!0x0,_0x18ce07(_0x44038a[_0x5ce371([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5ce371([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ce371([0x6c,0x6f,0x77])}),_0x3312bb[_0x5ce371([0x74,0x68,0x65,0x6e])](()=>{_0x4194a7||_0x4eaf4c(_0x5ce371([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x311b13(){return _0x558e5e[_0x5ce371([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ce371([0x76,0x69,0x65,0x77])][_0x5ce371([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5ce371([0x61,0x75,0x74,0x6f]);}function _0x5f1ea9(){_0x558e5e[_0x5ce371([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ce371([0x76,0x69,0x65,0x77])][_0x5ce371([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ce371([0x61,0x75,0x74,0x6f]);}}function _0x19fc62(_0x1f2215){const _0x4ace15=[new window[(_0x5ce371([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x538742=>setTimeout(_0x538742,0x3ee656c4^_0x4fd150)),_0x3312bb[_0x5ce371([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5ce371([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3414f7=>{let _0x1f20c6=0x0;_0x558e5e[_0x5ce371([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ce371([0x6f,0x6e])](_0x5ce371([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x28540f,_0x47b453)=>{_0x47b453[0x0][_0x5ce371([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1f20c6++,_0x1f20c6==(0x3eef69f0^_0x4fd150)&&(_0x3414f7(),_0x28540f[_0x5ce371([0x6f,0x66,0x66])]());});}))];return window[_0x5ce371([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ce371([0x72,0x61,0x63,0x65])](_0x4ace15)[_0x5ce371([0x74,0x68,0x65,0x6e])](()=>_0x1f2215);}async function _0x37c5c5(){await _0x3312bb,_0x558e5e[_0x5ce371([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ce371([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10cce4,_0x558e5e[_0x5ce371([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ce371([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10cce4,_0x558e5e[_0x5ce371([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5ce371([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1f391e(_0x4b29aa){const _0x150fb5=_0x5dbf84();_0x558e5e[_0x150fb5]=_0x5ce371([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4b29aa,_0x4b29aa!=_0x5ce371([0x56,0x61,0x6c,0x69,0x64])&&_0x37c5c5();}function _0x5dbf84(){const _0x1cbc24=window[_0x5ce371([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5ce371([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5ce371([0x6e,0x6f,0x77])]())[_0x5ce371([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5ce371([0x2e]),'');let _0x278f5=_0x5ce371([0x72]);for(let _0x9192c2=0x0;_0x9192c2<_0x1cbc24[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9192c2+=0x2){let _0x56d7eb=window[_0x5ce371([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cbc24[_0x5ce371([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9192c2,_0x9192c2+0x2));_0x56d7eb>=_0x4460dc[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x56d7eb-=_0x4460dc[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x278f5+=_0x4460dc[_0x56d7eb];}return _0x278f5;}function _0x1979ad(){const _0x4f961a=_0x1069c2[_0x5ce371([0x73,0x70,0x6c,0x69,0x74])](_0x5ce371([0x2e]));if(0x3!=_0x4f961a[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x6d0bce(_0x4f961a[0x1]);function _0x6d0bce(_0x3a180d){const _0x3c8a1e=_0x3422a0(_0x3a180d);return _0x3c8a1e&&_0x18dc6a()?_0x3c8a1e:null;function _0x18dc6a(){const _0x56589f=_0x3c8a1e[_0x5ce371([0x6a,0x74,0x69])],_0x37774c=window[_0x5ce371([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56589f[_0x5ce371([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56589f[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x23b1f8={..._0x3c8a1e,[_0x5ce371([0x6a,0x74,0x69])]:_0x56589f[_0x5ce371([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x56589f[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x23b1f8[_0x5ce371([0x76,0x63])],_0x533a6d(_0x23b1f8)==_0x37774c;}}}async function _0x55036e(){let _0x314eee=!0x0;try{const _0x3e900d=_0x1069c2[_0x5ce371([0x73,0x70,0x6c,0x69,0x74])](_0x5ce371([0x2e])),[_0x5e2890,_0x5be7cd,_0x21d980]=_0x3e900d;return _0x3d0975(_0x5e2890),await _0x404747(_0x5e2890,_0x5be7cd,_0x21d980),_0x314eee;}catch{return!0x1;}function _0x3d0975(_0xcd4877){const _0xe94238=_0x3422a0(_0xcd4877);_0xe94238&&_0xe94238[_0x5ce371([0x61,0x6c,0x67])]==_0x5ce371([0x45,0x53,0x32,0x35,0x36])||(_0x314eee=!0x1);}async function _0x404747(_0x9671bc,_0xbe429,_0x42d603){const _0xf95e64=window[_0x5ce371([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5ce371([0x66,0x72,0x6f,0x6d])](_0x8312df(_0x42d603),_0x496297=>_0x496297[_0x5ce371([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x57c75b=new window[(_0x5ce371([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5ce371([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x9671bc+_0x5ce371([0x2e])+_0xbe429),_0x106889=window[_0x5ce371([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5ce371([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x106889)return;const _0xccbbdc=await _0x106889[_0x5ce371([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5ce371([0x6a,0x77,0x6b]),_0x721c12,{[_0x5ce371([0x6e,0x61,0x6d,0x65])]:_0x5ce371([0x45,0x43,0x44,0x53,0x41]),[_0x5ce371([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5ce371([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5ce371([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x106889[_0x5ce371([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5ce371([0x6e,0x61,0x6d,0x65])]:_0x5ce371([0x45,0x43,0x44,0x53,0x41]),[_0x5ce371([0x68,0x61,0x73,0x68])]:{[_0x5ce371([0x6e,0x61,0x6d,0x65])]:_0x5ce371([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xccbbdc,_0xf95e64,_0x57c75b)||(_0x314eee=!0x1);}}function _0x3422a0(_0x117501){return _0x117501[_0x5ce371([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5ce371([0x65,0x79]))?JSON[_0x5ce371([0x70,0x61,0x72,0x73,0x65])](_0x8312df(_0x117501)):null;}function _0x8312df(_0x4c3d94){return window[_0x5ce371([0x61,0x74,0x6f,0x62])](_0x4c3d94[_0x5ce371([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5ce371([0x2b]))[_0x5ce371([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5ce371([0x2f])));}function _0x533a6d(_0x27bb14){let _0x1393fd=0x1505;function _0x3a1fa9(_0x57be21){for(let _0x480b2a=0x0;_0x480b2a<_0x57be21[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x480b2a++){const _0x335270=_0x57be21[_0x5ce371([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x480b2a);_0x1393fd=(_0x1393fd<<0x5)+_0x1393fd+_0x335270,_0x1393fd&=_0x1393fd;}}function _0x1676ba(_0x52fb99){Array[_0x5ce371([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x52fb99)?_0x52fb99[_0x5ce371([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1676ba):_0x52fb99&&typeof _0x52fb99==_0x5ce371([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5ce371([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x52fb99)[_0x5ce371([0x73,0x6f,0x72,0x74])]()[_0x5ce371([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b0bde,_0x788283])=>{_0x3a1fa9(_0x5b0bde),_0x1676ba(_0x788283);}):_0x3a1fa9(window[_0x5ce371([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x52fb99));}return _0x1676ba(_0x27bb14),_0x1393fd>>>0x0;}function _0x2cbe40(_0x9c3d7a){return _0x9c3d7a[_0x5ce371([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5ce371([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5ce371([0x30]));}function _0x10af3d(_0x12271c){return _0x12271c[_0x5ce371([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5ce371([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5ce371([0x6a,0x6f,0x69,0x6e])]('');}function _0x10cce4(){}function _0x5ce371(_0x16a57a){const _0x466f93=_0x20e3;return _0x16a57a[_0x466f93(0x168)](_0x2500c1=>String[_0x466f93(0x122)](_0x2500c1))[_0x466f93(0x13f)]('');}_0x1f391e(await _0x4abd72());}(this);}[_0x13c4e1(0x130)](){const _0x1c4637=_0x13c4e1,_0x17f810=this[_0x1c4637(0x12f)][_0x1c4637(0x142)][_0x1c4637(0x128)];_0x17f810[_0x1c4637(0x136)](_0x1c4637(0x156))&&_0x17f810[_0x1c4637(0x145)](_0x1c4637(0x156),{'allowAttributes':[_0x1c4637(0x16a)]}),_0x17f810[_0x1c4637(0x136)](_0x1c4637(0x144))&&_0x17f810[_0x1c4637(0x145)](_0x1c4637(0x144),{'allowAttributes':[_0x1c4637(0x16a)]});}[_0x13c4e1(0x146)](){const _0x3378da=_0x13c4e1,_0x192c62=this[_0x3378da(0x12f)];_0x192c62[_0x3378da(0x14b)][_0x3378da(0x13e)](_0x3378da(0x14a))[_0x3378da(0x147)]({'model':_0x3378da(0x16a),'view':_0x3378da(0x11b)}),_0x192c62[_0x3378da(0x14b)][_0x3378da(0x13e)](_0x3378da(0x138))[_0x3378da(0x119)]({'model':{'key':_0x3378da(0x16a),'value':_0x514a1e=>_0x514a1e[_0x3378da(0x164)](_0x3378da(0x11b))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x504978=_0x192c62[_0x3378da(0x12b)][_0x3378da(0x160)](_0x3378da(0x121));_0x504978&&this[_0x3378da(0x14d)](_0x504978,_0x3378da(0x151),(_0xaf3154,[_0x1daf7d,_0x31808b])=>{const _0x12dd28=_0x3378da;_0x1daf7d[_0x12dd28(0x13d)](_0x12dd28(0x16a),_0x31808b);});}[_0x13c4e1(0x11e)](){const _0x1f80b6=_0x13c4e1,_0x284250=this[_0x1f80b6(0x12f)][_0x1f80b6(0x118)][_0x1f80b6(0x160)](_0x1f80b6(0x140))||{},_0x4701da=this[_0x1f80b6(0x12f)][_0x1f80b6(0x118)][_0x1f80b6(0x160)](_0x1f80b6(0x15a))||'';this[_0x1f80b6(0x115)]=_0x62a97d(_0x439a3e[_0x1f80b6(0x154)],_0x1f80b6(0x157),{..._0x284250,'pubkey':_0x4701da,'ctx-name':_0x1f80b6(0x126),'sourceList':'','imgOnly':_0x1f80b6(0x123),'removeCopyright':_0x1f80b6(0x123),'localeName':this[_0x1f80b6(0x12f)][_0x1f80b6(0x155)][_0x1f80b6(0x152)],'externalSourcesEmbedCss':_0x1f80b6(0x13a)}),this[_0x1f80b6(0x115)][_0x1f80b6(0x169)]=_0xe9765f=>{const _0x4d9c28=_0x1f80b6;if(_0x4d9c28(0x14f)==_0xe9765f)return _0x4d9c28(0x125);},_0x439a3e[_0x1f80b6(0x154)][_0x1f80b6(0x15d)][_0x1f80b6(0x117)](this[_0x1f80b6(0x115)]);}[_0x13c4e1(0x11c)](){const _0x5e27d8=_0x13c4e1;this[_0x5e27d8(0x137)]=_0x62a97d(_0x439a3e[_0x5e27d8(0x154)],_0x5e27d8(0x135),{'ctx-name':_0x5e27d8(0x126)}),_0x439a3e[_0x5e27d8(0x154)][_0x5e27d8(0x15d)][_0x5e27d8(0x117)](this[_0x5e27d8(0x137)]);}[_0x13c4e1(0x158)](){const _0x4f0dd2=_0x13c4e1,_0x242868=this[_0x4f0dd2(0x12f)][_0x4f0dd2(0x12b)][_0x4f0dd2(0x160)](_0x4f0dd2(0x161));_0x242868&&this[_0x4f0dd2(0x14d)](_0x242868,_0x4f0dd2(0x14c),()=>{const _0x2a595b=_0x4f0dd2,_0x58fe50=this[_0x2a595b(0x12f)][_0x2a595b(0x142)][_0x2a595b(0x154)][_0x2a595b(0x150)][_0x2a595b(0x129)]();_0x58fe50&&_0x58fe50[_0x2a595b(0x164)](_0x2a595b(0x16a))&&this[_0x2a595b(0x12f)][_0x2a595b(0x11f)][_0x2a595b(0x148)][_0x2a595b(0x127)](_0x2a595b(0x143),()=>{const _0x1d387c=_0x2a595b;_0xb2ddf9(this[_0x1d387c(0x12f)],_0x58fe50);});});const _0x3beb35=this[_0x4f0dd2(0x12f)][_0x4f0dd2(0x12b)][_0x4f0dd2(0x160)](_0x4f0dd2(0x141));_0x3beb35&&this[_0x4f0dd2(0x14d)](_0x3beb35,_0x4f0dd2(0x14c),()=>{const _0x4cc6bf=_0x4f0dd2,_0xc0cc84=this[_0x4cc6bf(0x12f)][_0x4cc6bf(0x142)][_0x4cc6bf(0x154)][_0x4cc6bf(0x150)][_0x4cc6bf(0x129)]();_0xc0cc84&&_0xc0cc84[_0x4cc6bf(0x164)](_0x4cc6bf(0x16a))&&this[_0x4cc6bf(0x12f)][_0x4cc6bf(0x11f)][_0x4cc6bf(0x148)][_0x4cc6bf(0x127)](_0x4cc6bf(0x143),()=>{const _0x1c437f=_0x4cc6bf;_0xb2ddf9(this[_0x1c437f(0x12f)],_0xc0cc84);});});}}
|
|
23
|
+
const _0x5a6331=_0x4336;function _0x264e(){const _0x5dfc2d=['117hHWyzR','imageInline','_initConfig','5392387YouFYA','editing','commands','216718WqzqFl','init','insertImage','8kJLqkh','selection','querySelector','PictureEditing','_initCtx','uploadcare','elementToAttribute','uploadcare.uploader','_initSchema','listenTo','editor','remove','contentLanguage','uploader','_initImageProcessingIndicator','config','input[uploadcare-file-input]','fromCharCode','map','1311130AijwZc','getAttribute','1744UgzMbw','appendChild','_ctxElement','model','get','data-uc-image-id','once','_initConversion','30XvONDo','join','377772RVEZQu','#uc-icon-arrow-down','conversion','body','iconHrefResolver','schema','6azZDFI','document','getSelectedElement','isOfficialPlugin','add','25947uJvzFI','removeAttribute','uploadcareImageId','uploadcareImageReplace','UploadcareEditing','replaceImageSource','pluginName','\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','uc-config','imageBlock','881065ocIneH','isPremiumPlugin','upcast','view','destroy','downcast','requires','11JgGwBc','cleanupImage','ctxElement','afterInit','isRegistered','closeMax','1043628jUoLGl','uc-upload-ctx-provider','for','uploadcare.pubkey','extend','render','configElement','execute','true','locale','_configElement','attributeToAttribute','href'];_0x264e=function(){return _0x5dfc2d;};return _0x264e();}(function(_0xcbe2b1,_0xf82344){const _0x507de2=_0x4336,_0x2f9891=_0xcbe2b1();while(!![]){try{const _0x20f240=parseInt(_0x507de2(0x1f4))/0x1*(parseInt(_0x507de2(0x223))/0x2)+-parseInt(_0x507de2(0x210))/0x3*(-parseInt(_0x507de2(0x226))/0x4)+-parseInt(_0x507de2(0x203))/0x5*(parseInt(_0x507de2(0x1ec))/0x6)+parseInt(_0x507de2(0x220))/0x7+-parseInt(_0x507de2(0x1e4))/0x8*(parseInt(_0x507de2(0x1f9))/0x9)+parseInt(_0x507de2(0x1e2))/0xa*(parseInt(_0x507de2(0x20a))/0xb)+-parseInt(_0x507de2(0x1ee))/0xc*(parseInt(_0x507de2(0x21d))/0xd);if(_0x20f240===_0xf82344)break;else _0x2f9891['push'](_0x2f9891['shift']());}catch(_0x34ca21){_0x2f9891['push'](_0x2f9891['shift']());}}}(_0x264e,0x6ef48));function _0x4336(_0x120314,_0x4b311d){const _0x264efa=_0x264e();return _0x4336=function(_0x433688,_0x23a1b8){_0x433688=_0x433688-0x1dd;let _0x520ee5=_0x264efa[_0x433688];return _0x520ee5;},_0x4336(_0x120314,_0x4b311d);}import{Plugin as _0x3d18a8}from'ckeditor5/src/core.js';import{Dialog as _0x34eb67}from'ckeditor5/src/ui.js';import{createElement as _0x1ca41c,global as _0xf8986a,uid as _0x3e3525}from'ckeditor5/src/utils.js';import _0x1e2691 from'./uploadcarecommand.js';import _0x1eb73c from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x271114}from'./utils/editingutils.js';export default class i extends _0x3d18a8{[_0x5a6331(0x21a)]=null;[_0x5a6331(0x1e6)]=null;static get[_0x5a6331(0x1ff)](){const _0x4f113a=_0x5a6331;return _0x4f113a(0x1fd);}static get[_0x5a6331(0x209)](){const _0x17bfe5=_0x5a6331;return[_0x17bfe5(0x229),_0x1eb73c,_0x34eb67];}static get[_0x5a6331(0x1f7)](){return!0x0;}static get[_0x5a6331(0x204)](){return!0x0;}get[_0x5a6331(0x216)](){const _0x174362=_0x5a6331;return this[_0x174362(0x21a)];}get[_0x5a6331(0x20c)](){const _0x29a7ec=_0x5a6331;return this[_0x29a7ec(0x1e6)];}[_0x5a6331(0x224)](){const _0x508cf2=_0x5a6331,_0x5d81ad=this[_0x508cf2(0x230)];_0x5d81ad[_0x508cf2(0x222)][_0x508cf2(0x1f8)](_0x508cf2(0x22b),new _0x1e2691(_0x5d81ad));}[_0x5a6331(0x20d)](){const _0x21962d=_0x5a6331;this[_0x21962d(0x22e)](),this[_0x21962d(0x1eb)](),this[_0x21962d(0x21f)](),this[_0x21962d(0x22a)](),this[_0x21962d(0x1dd)](),this[_0x21962d(0x22f)](this[_0x21962d(0x230)],_0x21962d(0x207),()=>{const _0x1f45d7=_0x21962d;this[_0x1f45d7(0x21a)]&&(this[_0x1f45d7(0x21a)][_0x1f45d7(0x231)](),this[_0x1f45d7(0x21a)]=null),this[_0x1f45d7(0x1e6)]&&(this[_0x1f45d7(0x1e6)][_0x1f45d7(0x231)](),this[_0x1f45d7(0x1e6)]=null);const _0x36f987=_0xf8986a[_0x1f45d7(0x1f5)][_0x1f45d7(0x228)](_0x1f45d7(0x1df));_0x36f987&&_0x36f987[_0x1f45d7(0x231)]();}),async function(_0x40c64d){const _0x3288de=_0x41113f([0x36,0x48,0x47,0x6c,0x35,0x65,0x50,0x78,0x6e,0x46,0x72,0x75,0x70,0x76,0x73,0x49,0x61,0x64,0x42,0x4a,0x79,0x74,0x71,0x6a,0x39,0x6b,0x5a,0x6f,0x62,0x57,0x43,0x69,0x58,0x7a,0x38,0x54,0x55,0x4c,0x45,0x32,0x33,0x52,0x4b,0x56,0x31,0x4f,0x44,0x4d,0x6d,0x63,0x68,0x4e,0x59,0x30,0x67,0x77,0x53,0x41,0x37,0x51,0x34,0x66]),_0x160069=0x6b3e0328,_0x235aec=0x6b3969f8^_0x160069,_0x5d2b96=window[_0x41113f([0x44,0x61,0x74,0x65])][_0x41113f([0x6e,0x6f,0x77])](),_0x5580dd=_0x40c64d[_0x41113f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x368e98=new window[(_0x41113f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43e5ea=>{_0x5580dd[_0x41113f([0x6f,0x6e,0x63,0x65])](_0x41113f([0x72,0x65,0x61,0x64,0x79]),_0x43e5ea);}),_0xc83f20={[_0x41113f([0x6b,0x74,0x79])]:_0x41113f([0x45,0x43]),[_0x41113f([0x75,0x73,0x65])]:_0x41113f([0x73,0x69,0x67]),[_0x41113f([0x63,0x72,0x76])]:_0x41113f([0x50,0x2d,0x32,0x35,0x36]),[_0x41113f([0x78])]:_0x41113f([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]),[_0x41113f([0x79])]:_0x41113f([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]),[_0x41113f([0x61,0x6c,0x67])]:_0x41113f([0x45,0x53,0x32,0x35,0x36])},_0x5a05a4=_0x5580dd[_0x41113f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x41113f([0x67,0x65,0x74])](_0x41113f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x56f13f(){let _0x5a5e15,_0x4c5fea=null,_0x4996b2=null;try{if(_0x5a05a4==_0x41113f([0x47,0x50,0x4c]))return _0x41113f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a5e15=_0x54feaa(),!_0x5a5e15)return _0x41113f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a5e15[_0x41113f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4996b2=_0x5a9420(_0x5a5e15[_0x41113f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a5e15[_0x41113f([0x6a,0x74,0x69])])),await _0x5b8f1d()?_0x12465a()?_0x259bc2()?_0x41113f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x356fd9()?(_0x5a5e15[_0x41113f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x41113f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4c5fea=_0x1aa0d8(_0x41113f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a5e15[_0x41113f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x41113f([0x74,0x72,0x69,0x61,0x6c])&&(_0x4c5fea=_0x1aa0d8(_0x41113f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3032eb()):_0x41113f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x41113f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x41113f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x41113f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x259bc2(){const _0x14fcc6=[_0x41113f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x41113f([0x74,0x72,0x69,0x61,0x6c])][_0x41113f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a5e15[_0x41113f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5d2b96/0x3e8:0xe10*_0x235aec;return _0x5a5e15[_0x41113f([0x65,0x78,0x70])]<_0x14fcc6;}function _0x12465a(){const _0x3c2b4a=_0x5a5e15[_0x41113f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3c2b4a&&(!!_0x3c2b4a[_0x41113f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41113f([0x2a]))||!!_0x3c2b4a[_0x41113f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41113f([0x55,0x50,0x4c,0x43])));}function _0x356fd9(){const _0x382667=_0x4336,_0x574270=_0x5a5e15[_0x41113f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x574270||0x0==_0x574270[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23b290}=new URL(window[_0x41113f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x382667(0x21c)]);if(_0x574270[_0x41113f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23b290))return!0x0;const _0x112f1b=_0x23b290[_0x41113f([0x73,0x70,0x6c,0x69,0x74])](_0x41113f([0x2e]));return _0x574270[_0x41113f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c8bb6=>_0x4c8bb6[_0x41113f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41113f([0x2a])))[_0x41113f([0x6d,0x61,0x70])](_0x3c467a=>_0x3c467a[_0x41113f([0x73,0x70,0x6c,0x69,0x74])](_0x41113f([0x2e])))[_0x41113f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18ef4c=>_0x18ef4c[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x112f1b[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41113f([0x6d,0x61,0x70])](_0x187d18=>Array(_0x112f1b[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x187d18[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41113f([0x66,0x69,0x6c,0x6c])](_0x187d18[0x0]===_0x41113f([0x2a])?_0x41113f([0x2a]):'')[_0x41113f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x187d18))[_0x41113f([0x73,0x6f,0x6d,0x65])](_0x475e92=>_0x112f1b[_0x41113f([0x65,0x76,0x65,0x72,0x79])]((_0x1745ee,_0x57f9a6)=>_0x475e92[_0x57f9a6]===_0x1745ee||_0x475e92[_0x57f9a6]===_0x41113f([0x2a])));}function _0x3032eb(){return _0x4c5fea&&_0x4996b2?new window[(_0x41113f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x572356,_0x695c08)=>{_0x4c5fea[_0x41113f([0x74,0x68,0x65,0x6e])](_0x572356,_0x695c08),_0x4996b2[_0x41113f([0x74,0x68,0x65,0x6e])](_0x5a1dcc=>{_0x5a1dcc!=_0x41113f([0x56,0x61,0x6c,0x69,0x64])&&_0x572356(_0x5a1dcc);},_0x695c08);}):_0x4c5fea||_0x4996b2||_0x41113f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a9420(_0x568420,_0x441063){return new window[(_0x41113f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e07dd=>{if(_0xd303b5())return _0x3e07dd(_0x41113f([0x56,0x61,0x6c,0x69,0x64]));_0x2e0a9f(),_0x5580dd[_0x41113f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x41113f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x140da2=!0x1;const _0x4a7e69=_0x3e3525();function _0xcf06f6(_0x49c888){return!!_0x49c888&&(typeof _0x49c888===_0x41113f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x49c888===_0x41113f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x49c888[_0x41113f([0x74,0x68,0x65,0x6e])]===_0x41113f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x49c888[_0x41113f([0x63,0x61,0x74,0x63,0x68])]===_0x41113f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x42f69c(_0x2b2861){_0xd913b8(_0x2b2861)[_0x41113f([0x74,0x68,0x65,0x6e])](_0x3909d0=>{if(!_0x3909d0||_0x3909d0[_0x41113f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x41113f([0x6f,0x6b]))return _0x41113f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x48b902(_0x1e2212(_0x4a7e69+_0x441063))!=_0x3909d0[_0x41113f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x41113f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x41113f([0x56,0x61,0x6c,0x69,0x64]);})[_0x41113f([0x74,0x68,0x65,0x6e])](_0x3eb5c9=>(_0x3cb609(),_0x3eb5c9),()=>{const _0x344339=_0x4e3f96();return null==_0x344339?(_0x3cb609(),_0x41113f([0x56,0x61,0x6c,0x69,0x64])):_0x41113f(_0x5d2b96-_0x344339>(0x4f328728^_0x160069)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x41113f([0x74,0x68,0x65,0x6e])](_0x3e07dd)[_0x41113f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3e07dd(_0x41113f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x36205f=0x6b08eda8^_0x160069;function _0x3cb609(){const _0x119c5b=_0x41113f([0x6c,0x6c,0x63,0x74,0x2d])+_0x48b902(_0x1e2212(_0x568420)),_0x39a714=_0x4abe49(_0x48b902(window[_0x41113f([0x4d,0x61,0x74,0x68])][_0x41113f([0x63,0x65,0x69,0x6c])](_0x5d2b96/_0x36205f)));window[_0x41113f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41113f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x119c5b,_0x39a714);}function _0x4e3f96(){const _0x193683=_0x41113f([0x6c,0x6c,0x63,0x74,0x2d])+_0x48b902(_0x1e2212(_0x568420)),_0x1eaf65=window[_0x41113f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41113f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x193683);return _0x1eaf65?window[_0x41113f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4abe49(_0x1eaf65),0x10)*_0x36205f:null;}function _0xd913b8(_0x2bf1d4){return new window[(_0x41113f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5174e2,_0x246fb5)=>{_0x2bf1d4[_0x41113f([0x74,0x68,0x65,0x6e])](_0x5174e2,_0x246fb5),window[_0x41113f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x246fb5,0x6b3fd7e8^_0x160069);});}}_0x5580dd[_0x41113f([0x6f,0x6e])](_0x41113f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x38ac94,_0x40f2f5)=>{if(_0x40f2f5[0x0]!=_0x568420)return _0x3e07dd(_0x41113f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40f2f5[0x1]={..._0x40f2f5[0x1],[_0x41113f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a7e69};},{[_0x41113f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41113f([0x68,0x69,0x67,0x68])}),_0x5580dd[_0x41113f([0x6f,0x6e])](_0x41113f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x56dabd=>{_0xcf06f6(_0x56dabd[_0x41113f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x140da2=!0x0,_0x42f69c(_0x56dabd[_0x41113f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x41113f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41113f([0x6c,0x6f,0x77])}),_0x368e98[_0x41113f([0x74,0x68,0x65,0x6e])](()=>{_0x140da2||_0x3e07dd(_0x41113f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd303b5(){return _0x5580dd[_0x41113f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41113f([0x76,0x69,0x65,0x77])][_0x41113f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x41113f([0x61,0x75,0x74,0x6f]);}function _0x2e0a9f(){_0x5580dd[_0x41113f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41113f([0x76,0x69,0x65,0x77])][_0x41113f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x41113f([0x61,0x75,0x74,0x6f]);}}function _0x1aa0d8(_0x264660){const _0x5f43ab=[new window[(_0x41113f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fbecb=>setTimeout(_0x2fbecb,0x6b373de4^_0x160069)),_0x368e98[_0x41113f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x41113f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23c8b7=>{let _0x3c6935=0x0;_0x5580dd[_0x41113f([0x6d,0x6f,0x64,0x65,0x6c])][_0x41113f([0x6f,0x6e])](_0x41113f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x587ac0,_0x5d42cc)=>{_0x5d42cc[0x0][_0x41113f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c6935++,_0x3c6935==(0x6b3e02d0^_0x160069)&&(_0x23c8b7(),_0x587ac0[_0x41113f([0x6f,0x66,0x66])]());});}))];return window[_0x41113f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x41113f([0x72,0x61,0x63,0x65])](_0x5f43ab)[_0x41113f([0x74,0x68,0x65,0x6e])](()=>_0x264660);}async function _0x3d9d7c(){await _0x368e98,_0x5580dd[_0x41113f([0x6d,0x6f,0x64,0x65,0x6c])][_0x41113f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36fdba,_0x5580dd[_0x41113f([0x6d,0x6f,0x64,0x65,0x6c])][_0x41113f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36fdba,_0x5580dd[_0x41113f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x41113f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35b256(_0x36965b){const _0x3d2453=_0xd28cd8();_0x5580dd[_0x3d2453]=_0x41113f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x36965b,_0x36965b!=_0x41113f([0x56,0x61,0x6c,0x69,0x64])&&_0x3d9d7c();}function _0xd28cd8(){const _0x3f96ff=window[_0x41113f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x41113f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x41113f([0x6e,0x6f,0x77])]())[_0x41113f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x41113f([0x2e]),'');let _0x4eeb39=_0x41113f([0x48]);for(let _0x23db80=0x0;_0x23db80<_0x3f96ff[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23db80+=0x2){let _0x55fd1d=window[_0x41113f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f96ff[_0x41113f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23db80,_0x23db80+0x2));_0x55fd1d>=_0x3288de[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55fd1d-=_0x3288de[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4eeb39+=_0x3288de[_0x55fd1d];}return _0x4eeb39;}function _0x54feaa(){const _0x552cbd=_0x5a05a4[_0x41113f([0x73,0x70,0x6c,0x69,0x74])](_0x41113f([0x2e]));if(0x3!=_0x552cbd[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x283a1c(_0x552cbd[0x1]);function _0x283a1c(_0x5f0a5d){const _0x239a72=_0x4577f3(_0x5f0a5d);return _0x239a72&&_0x3ecebe()?_0x239a72:null;function _0x3ecebe(){const _0x5f4f87=_0x239a72[_0x41113f([0x6a,0x74,0x69])],_0x3b6a82=window[_0x41113f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f4f87[_0x41113f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5f4f87[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x191da6={..._0x239a72,[_0x41113f([0x6a,0x74,0x69])]:_0x5f4f87[_0x41113f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5f4f87[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x191da6[_0x41113f([0x76,0x63])],_0x1e2212(_0x191da6)==_0x3b6a82;}}}async function _0x5b8f1d(){let _0x73e466=!0x0;try{const _0x43f731=_0x5a05a4[_0x41113f([0x73,0x70,0x6c,0x69,0x74])](_0x41113f([0x2e])),[_0x3d8b6d,_0x44dfab,_0x1a23b1]=_0x43f731;return _0x3fe8db(_0x3d8b6d),await _0x4c3cad(_0x3d8b6d,_0x44dfab,_0x1a23b1),_0x73e466;}catch{return!0x1;}function _0x3fe8db(_0x4fe8fd){const _0x543054=_0x4577f3(_0x4fe8fd);_0x543054&&_0x543054[_0x41113f([0x61,0x6c,0x67])]==_0x41113f([0x45,0x53,0x32,0x35,0x36])||(_0x73e466=!0x1);}async function _0x4c3cad(_0x1ab78a,_0x76dae7,_0x501677){const _0xb17382=window[_0x41113f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x41113f([0x66,0x72,0x6f,0x6d])](_0x1d0a18(_0x501677),_0x22b1fa=>_0x22b1fa[_0x41113f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f5307=new window[(_0x41113f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x41113f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ab78a+_0x41113f([0x2e])+_0x76dae7),_0x53bc75=window[_0x41113f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x41113f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53bc75)return;const _0x4754b3=await _0x53bc75[_0x41113f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x41113f([0x6a,0x77,0x6b]),_0xc83f20,{[_0x41113f([0x6e,0x61,0x6d,0x65])]:_0x41113f([0x45,0x43,0x44,0x53,0x41]),[_0x41113f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x41113f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x41113f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53bc75[_0x41113f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x41113f([0x6e,0x61,0x6d,0x65])]:_0x41113f([0x45,0x43,0x44,0x53,0x41]),[_0x41113f([0x68,0x61,0x73,0x68])]:{[_0x41113f([0x6e,0x61,0x6d,0x65])]:_0x41113f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4754b3,_0xb17382,_0x1f5307)||(_0x73e466=!0x1);}}function _0x4577f3(_0xd214f7){return _0xd214f7[_0x41113f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x41113f([0x65,0x79]))?JSON[_0x41113f([0x70,0x61,0x72,0x73,0x65])](_0x1d0a18(_0xd214f7)):null;}function _0x1d0a18(_0x4a92fc){return window[_0x41113f([0x61,0x74,0x6f,0x62])](_0x4a92fc[_0x41113f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x41113f([0x2b]))[_0x41113f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x41113f([0x2f])));}function _0x1e2212(_0x28921c){let _0x36d28e=0x1505;function _0x1a4068(_0x598959){for(let _0x504369=0x0;_0x504369<_0x598959[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x504369++){const _0x3d23ce=_0x598959[_0x41113f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x504369);_0x36d28e=(_0x36d28e<<0x5)+_0x36d28e+_0x3d23ce,_0x36d28e&=_0x36d28e;}}function _0x4b93cb(_0x42df0e){Array[_0x41113f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x42df0e)?_0x42df0e[_0x41113f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4b93cb):_0x42df0e&&typeof _0x42df0e==_0x41113f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x41113f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x42df0e)[_0x41113f([0x73,0x6f,0x72,0x74])]()[_0x41113f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x573df4,_0x131847])=>{_0x1a4068(_0x573df4),_0x4b93cb(_0x131847);}):_0x1a4068(window[_0x41113f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x42df0e));}return _0x4b93cb(_0x28921c),_0x36d28e>>>0x0;}function _0x48b902(_0x2b0886){return _0x2b0886[_0x41113f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x41113f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x41113f([0x30]));}function _0x4abe49(_0x42e9e6){return _0x42e9e6[_0x41113f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x41113f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x41113f([0x6a,0x6f,0x69,0x6e])]('');}function _0x36fdba(){}function _0x41113f(_0x55e2ab){const _0x126cf4=_0x4336;return _0x55e2ab[_0x126cf4(0x1e1)](_0x8add84=>String[_0x126cf4(0x1e0)](_0x8add84))[_0x126cf4(0x1ed)]('');}_0x35b256(await _0x56f13f());}(this);}[_0x5a6331(0x22e)](){const _0x59de83=_0x5a6331,_0x32056e=this[_0x59de83(0x230)][_0x59de83(0x1e7)][_0x59de83(0x1f3)];_0x32056e[_0x59de83(0x20e)](_0x59de83(0x202))&&_0x32056e[_0x59de83(0x214)](_0x59de83(0x202),{'allowAttributes':[_0x59de83(0x1fb)]}),_0x32056e[_0x59de83(0x20e)](_0x59de83(0x21e))&&_0x32056e[_0x59de83(0x214)](_0x59de83(0x21e),{'allowAttributes':[_0x59de83(0x1fb)]});}[_0x5a6331(0x1eb)](){const _0xea0d85=_0x5a6331,_0x177d54=this[_0xea0d85(0x230)];_0x177d54[_0xea0d85(0x1f0)][_0xea0d85(0x212)](_0xea0d85(0x208))[_0xea0d85(0x21b)]({'model':_0xea0d85(0x1fb),'view':_0xea0d85(0x1e9)}),_0x177d54[_0xea0d85(0x1f0)][_0xea0d85(0x212)](_0xea0d85(0x205))[_0xea0d85(0x22c)]({'model':{'key':_0xea0d85(0x1fb),'value':_0x309d39=>_0x309d39[_0xea0d85(0x1e3)](_0xea0d85(0x1e9))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x30cef6=_0x177d54[_0xea0d85(0x222)][_0xea0d85(0x1e8)](_0xea0d85(0x1fe));_0x30cef6&&this[_0xea0d85(0x22f)](_0x30cef6,_0xea0d85(0x20b),(_0x5426a4,[_0x514a7c,_0x30fad6])=>{const _0x36df93=_0xea0d85;_0x514a7c[_0x36df93(0x1fa)](_0x36df93(0x1fb),_0x30fad6);});}[_0x5a6331(0x21f)](){const _0x16699c=_0x5a6331,_0x4bf09a=this[_0x16699c(0x230)][_0x16699c(0x1de)][_0x16699c(0x1e8)](_0x16699c(0x22d))||{},_0x40848c=this[_0x16699c(0x230)][_0x16699c(0x1de)][_0x16699c(0x1e8)](_0x16699c(0x213))||'';this[_0x16699c(0x21a)]=_0x1ca41c(_0xf8986a[_0x16699c(0x1f5)],_0x16699c(0x201),{..._0x4bf09a,'pubkey':_0x40848c,'ctx-name':_0x16699c(0x233),'sourceList':'','imgOnly':_0x16699c(0x218),'removeCopyright':_0x16699c(0x218),'localeName':this[_0x16699c(0x230)][_0x16699c(0x219)][_0x16699c(0x232)],'externalSourcesEmbedCss':_0x16699c(0x200)}),this[_0x16699c(0x21a)][_0x16699c(0x1f2)]=_0x2e3f62=>{const _0x4e8540=_0x16699c;if(_0x4e8540(0x20f)==_0x2e3f62)return _0x4e8540(0x1ef);},_0xf8986a[_0x16699c(0x1f5)][_0x16699c(0x1f1)][_0x16699c(0x1e5)](this[_0x16699c(0x21a)]);}[_0x5a6331(0x22a)](){const _0x402e8b=_0x5a6331;this[_0x402e8b(0x1e6)]=_0x1ca41c(_0xf8986a[_0x402e8b(0x1f5)],_0x402e8b(0x211),{'ctx-name':_0x402e8b(0x233)}),_0xf8986a[_0x402e8b(0x1f5)][_0x402e8b(0x1f1)][_0x402e8b(0x1e5)](this[_0x402e8b(0x1e6)]);}[_0x5a6331(0x1dd)](){const _0x9e648a=_0x5a6331,_0x72bfd7=this[_0x9e648a(0x230)][_0x9e648a(0x222)][_0x9e648a(0x1e8)](_0x9e648a(0x225));_0x72bfd7&&this[_0x9e648a(0x22f)](_0x72bfd7,_0x9e648a(0x217),()=>{const _0x2f6570=_0x9e648a,_0x41d850=this[_0x2f6570(0x230)][_0x2f6570(0x1e7)][_0x2f6570(0x1f5)][_0x2f6570(0x227)][_0x2f6570(0x1f6)]();_0x41d850&&_0x41d850[_0x2f6570(0x1e3)](_0x2f6570(0x1fb))&&this[_0x2f6570(0x230)][_0x2f6570(0x221)][_0x2f6570(0x206)][_0x2f6570(0x1ea)](_0x2f6570(0x215),()=>{const _0x1095bc=_0x2f6570;_0x271114(this[_0x1095bc(0x230)],_0x41d850);});});const _0x49e34d=this[_0x9e648a(0x230)][_0x9e648a(0x222)][_0x9e648a(0x1e8)](_0x9e648a(0x1fc));_0x49e34d&&this[_0x9e648a(0x22f)](_0x49e34d,_0x9e648a(0x217),()=>{const _0x40295b=_0x9e648a,_0x5879be=this[_0x40295b(0x230)][_0x40295b(0x1e7)][_0x40295b(0x1f5)][_0x40295b(0x227)][_0x40295b(0x1f6)]();_0x5879be&&_0x5879be[_0x40295b(0x1e3)](_0x40295b(0x1fb))&&this[_0x40295b(0x230)][_0x40295b(0x221)][_0x40295b(0x206)][_0x40295b(0x1ea)](_0x40295b(0x215),()=>{const _0x2c90eb=_0x40295b;_0x271114(this[_0x2c90eb(0x230)],_0x5879be);});});}}
|