@ckeditor/ckeditor5-uploadcare 45.2.0-alpha.1 → 45.2.0-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 _0x207d98,Command as _0x3443fc}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2f337d,IconGooglePhotos as _0x39f5f4,IconGoogleDrive as _0x5d4f36,IconFacebook as _0x3b7ef1,IconDropbox as _0x4db6d6,IconUploadcareLink as _0x3facc9,IconUploadcareImageUpload as _0x50ca54,IconError as et,IconUploadcareImageEdit as _0x42cdf2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x21288f,MenuBarMenuListItemButtonView as _0x87df0c,View as _0x2f1c37,FocusCycler as _0x3bed80,Dialog as _0x2abe5f,DialogViewPosition as _0x24bee5,SpinnerView as _0x12a807,IconView as at,Notification as _0xd2a1a5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1b6f86,DomEmitterMixin as _0x4c8e1d,global as _0x2f74e2,getAncestors as _0x43303d,ObservableMixin as _0x14e028,createElement as _0x1b3276,uid as _0x43a8ec}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2e9b17}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2e2f6c,info as _0x574ab2}from'@uploadcare/upload-client';import*as _0x40812c from'@uploadcare/file-uploader';var o=function(_0x324eb8){return _0x324eb8['Local']='local',_0x324eb8['URL']='url',_0x324eb8['Dropbox']='dropbox',_0x324eb8['GDrive']='gdrive',_0x324eb8['Facebook']='facebook',_0x324eb8['GPhotos']='gphotos',_0x324eb8['OneDrive']='onedrive',_0x324eb8;}({});function _(_0x13e59a,_0x227983,_0x3d2b22){const t=_0x13e59a['t'],_0x45cea2=_0x13e59a['t'];switch(_0x227983){case o['Local']:return{'text':_0x45cea2('Insert'===_0x3d2b22?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x45cea2('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x3d2b22?_0x45cea2('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x45cea2('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x3d2b22?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x3d2b22?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x3d2b22?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x3d2b22?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x3d2b22?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x227983;}}class e extends _0x207d98{['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 _0x44281d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2afa10;for(const _0x2658e1 in _0x44281d){const _0x15eac9=_0x2658e1,_0x5efab0=_0x44281d[_0x15eac9];if('uploadcareLicenseKeyValid'==_0x5efab0||'uploadcareLicenseKeyInvalid'==_0x5efab0||'uploadcareLicenseKeyExpired'==_0x5efab0||'uploadcareLicenseKeyDomainLimit'==_0x5efab0||'uploadcareLicenseKeyNotAllowed'==_0x5efab0||'uploadcareLicenseKeyEvaluationLimit'==_0x5efab0||'uploadcareLicenseKeyTrialLimit'==_0x5efab0||'uploadcareLicenseKeyUsageLimit'==_0x5efab0){delete _0x44281d[_0x15eac9],_0x2afa10=_0x5efab0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2afa10&&_0x44281d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2afa10&&_0x44281d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2afa10&&_0x44281d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2afa10&&_0x44281d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2afa10&&_0x44281d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2afa10&&_0x44281d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2afa10&&_0x44281d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2d53b3}=this,_0x145c7f=_0x2d53b3['commands']['get']('uploadcare');if(!_0x145c7f)return;const _0x404c26=this['_normalizeConfigSourceList'](_0x2d53b3['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3c1c54,_0x580798)=>{const _0x1fe023=this['_getIntegrationKey'](_0x580798['type']);return _0x3c1c54[_0x1fe023]||(_0x3c1c54[_0x1fe023]=[]),_0x3c1c54[_0x1fe023]['push'](_0x580798),_0x3c1c54;},{});_0x2d53b3['plugins']['has']('ImageInsertUI')&&_0x2d53b3['commands']['get']('uploadcare')&&Object['entries'](_0x404c26)['forEach'](([_0x3dd6b0,_0x422351])=>{_0x2d53b3['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3dd6b0,'observable':()=>_0x145c7f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x422351),'formViewCreator':()=>this['_createDropdownButtons'](_0x422351),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x422351),'override':'assetManager'!==_0x3dd6b0});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5c6607){const {locale:_0x3d5d30}=this['editor'];return _0x5c6607['map'](_0x435c8c=>{const _0x484259=_(_0x3d5d30,_0x435c8c,'Insert');switch(_0x435c8c){case o['Local']:return{'icon':_0x50ca54,'type':o['Local'],..._0x484259};case o['URL']:return{'icon':_0x3facc9,'type':o['URL'],..._0x484259};case o['Dropbox']:return{'icon':_0x4db6d6,'type':o['Dropbox'],..._0x484259};case o['Facebook']:return{'icon':_0x3b7ef1,'type':o['Facebook'],..._0x484259};case o['GDrive']:return{'icon':_0x5d4f36,'type':o['GDrive'],..._0x484259};case o['GPhotos']:return{'icon':_0x39f5f4,'type':o['GPhotos'],..._0x484259};case o['OneDrive']:return{'icon':_0x2f337d,'type':o['OneDrive'],..._0x484259};}});}['_getIntegrationKey'](_0x3c5324){switch(_0x3c5324){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x500adf,_0x4946a6){const _0x169612=this['editor'],_0x4d634e=new _0x500adf(_0x169612['locale']),_0x49656a=_0x169612['commands']['get']('uploadcare');return _0x4d634e['bind']('isEnabled')['to'](_0x49656a),_0x4d634e['on']('execute',()=>{_0x49656a['execute'](_0x4946a6);}),_0x4d634e;}['_createToolbarButton'](_0x2288e2){const {locale:_0x41915f}=this['editor'],_0x4be3ce=this['editor']['plugins']['get']('ImageInsertUI'),_0x3de7e7=_0x2288e2[0x0],_0x2bea72=this['_createButton'](_0x21288f,_0x3de7e7['type']);return _0x2bea72['icon']=_0x3de7e7['icon'],_0x2bea72['bind']('label')['to'](_0x4be3ce,'isImageSelected',_0x5f2c5b=>_(_0x41915f,_0x3de7e7['type'],_0x5f2c5b?'Replace':'Insert')['text']),_0x2bea72['tooltip']=!0x0,_0x2bea72;}['_createDropdownButtons'](_0x29650e){const {locale:_0x5519fb}=this['editor'],_0x1bef23=this['editor']['plugins']['get']('ImageInsertUI');return _0x29650e['map'](_0x4a7087=>{const _0x5a50e8=this['_createButton'](_0x21288f,_0x4a7087['type']);return _0x5a50e8['withText']=!0x0,_0x5a50e8['icon']=_0x4a7087['icon'],_0x5a50e8['bind']('label')['to'](_0x1bef23,'isImageSelected',_0x532694=>_(_0x5519fb,_0x4a7087['type'],_0x532694?'Replace':'Insert')['text']),_0x5a50e8;});}['_createMenuBarButtons'](_0x24abf9){return _0x24abf9['map'](_0x4a2fab=>{const _0x34b8eb=this['_createButton'](_0x87df0c,_0x4a2fab['type']);return _0x34b8eb['icon']=_0x4a2fab['icon'],_0x34b8eb['label']=_0x4a2fab['shortText'],_0x34b8eb;});}}class q extends _0x2f1c37{['focusTracker'];['focusCycler'];constructor(_0x2d93d0){super(_0x2d93d0),this['focusTracker']=new _0x1b6f86(),this['focusCycler']=new _0x3bed80({'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(_0x4ff8ac){super(_0x4ff8ac),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(_0x22e967,_0x590ec){const _0x1958fe=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5e56d6=>_0x5e56d6<=_0x590ec)['map'](_0x4ed527=>_0x22e967['replace'](/\/$/,'')+'/-/resize/'+_0x4ed527+'x/\x20'+_0x4ed527+'w');return{'imageFallbackUrl':_0x22e967,'imageSources':[{'srcset':_0x1958fe['join'](',\x20'),'sizes':'(max-width:\x20'+_0x590ec+'px)\x20100vw,\x20'+_0x590ec+'px','type':'image/webp'}]};}function A(_0x533c1f,_0x3ff842,_0x99dd35){const _0x3288ef=_0x533c1f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3288ef?parseInt(_0x3288ef[0x1],0xa):_0x3ff842,'height':_0x3288ef?parseInt(_0x3288ef[0x2],0xa):_0x99dd35};}function m(_0x267624,_0x52a452){const _0x35a11b=Object['create'](_0x4c8e1d),_0x3ded5f=_0x267624['plugins']['get']('ImageUtils'),_0x202c08=_0x267624['editing']['mapper']['toViewElement'](_0x52a452),_0x2ed732=_0x3ded5f['findViewImgElement'](_0x202c08),_0x23f49c=_0x267624['editing']['view']['domConverter']['viewToDom'](_0x2ed732),_0xa0a21a=_0x52a452['getAttribute']('width'),_0x27c5d3=_0x52a452['getAttribute']('height'),_0x5161c4='image-processing';_0x267624['editing']['view']['change'](_0x1c0165=>{_0x1c0165['addClass'](_0x5161c4,_0x202c08),_0x1c0165['setStyle']('aspect-ratio',_0xa0a21a+'/'+_0x27c5d3,_0x2ed732);}),_0x35a11b['listenTo'](_0x23f49c,'load',()=>{_0x35a11b['stopListening'](_0x23f49c,'load'),_0x267624['editing']['view']['change'](_0x2719bd=>{_0x2719bd['removeClass'](_0x5161c4,_0x202c08),_0x2719bd['removeStyle']('aspect-ratio',_0x2ed732);});});}function V(_0x793b6e){if(Array['isArray'](_0x793b6e)){const _0x304998=_0x793b6e['map'](V);return _0x21944e=>_0x304998['some'](_0x305ef0=>_0x305ef0(_0x21944e));}if('origin'==_0x793b6e){const _0x574a15=_0x2f74e2['window']['location']['origin'];return _0x1c8b54=>new URL(_0x1c8b54,_0x2f74e2['document']['baseURI'])['origin']==_0x574a15;}return'function'==typeof _0x793b6e?_0x793b6e:_0x793b6e instanceof RegExp?_0x329a8b=>!(!_0x329a8b['match'](_0x793b6e)&&!_0x329a8b['replace'](/^https?:\/\//,'')['match'](_0x793b6e)):()=>!0x1;}function F(_0x1865d4,_0x5ad02b){return _0x43303d(_0x1865d4['target'])['includes'](_0x5ad02b);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x14e028(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x492d3b,_0x29c434,_0x48d1ea){super(),this['_editor']=_0x492d3b,this['_editing']=_0x29c434,this['_dialog']=_0x492d3b['plugins']['get'](_0x2abe5f),this['_api']=_0x29c434['ctxElement']['getAPI'](),this['_type']=_0x48d1ea,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:_0x63b4b7,model:_0x523c9e}=this['_editor'],_0x22d5b4=_0x523c9e['document']['selection']['getSelectedElement'](),_0x1d3d5b=_0x22d5b4&&(_0x22d5b4['is']('element','imageBlock')||_0x22d5b4['is']('element','imageInline'));this['_formView']=new S(_0x63b4b7),this['_dialog']['show']({'id':'uploadCare','icon':_0x50ca54,'title':_(_0x63b4b7,this['_type'],_0x1d3d5b?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x24bee5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x27d451=>!F(_0x27d451,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xaea1a5}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x273efc=>{const _0x3514da=_0xaea1a5['length'];for(const _0xdfd17 of _0xaea1a5){const _0x1f1a8b=_0xdfd17===_0xaea1a5[_0x3514da-0x1],{cdnUrl:_0x166f68,fileInfo:_0x3d4320}=_0xdfd17;if(!_0x166f68||!_0x3d4320)continue;const {width:_0x12cee3,height:_0x43c69f}=_0x3d4320['imageInfo'],_0x4b1acc=A(_0x166f68,_0x12cee3,_0x43c69f),_0x28ec88=E(_0x166f68,_0x4b1acc['width']),_0x1548cb={'id':_0x3d4320['uuid'],'type':'image','attributes':{'imageDimension':_0x4b1acc,..._0x28ec88}};this['_insertAsset'](_0x1548cb,_0x1f1a8b,_0x273efc);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x45fef4=>{'idle'===_0x45fef4['detail']['status']&&!_0x45fef4['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x414275,_0x18c63f,_0x2e657b){const _0x21b24a=this['_editor']['model']['document']['selection'],_0x564101=_0x21b24a['getSelectedElement'](),_0x4666f2=!(!_0x564101||!_0x564101['is']('element','imageInline'));_0x2e657b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x414275,_0x4666f2),_0x18c63f||_0x2e657b['setSelection'](_0x21b24a['getLastPosition']());}['_insertImage'](_0xd596c,_0x2aaea3){const _0x3e28ac=this['_editor'],{imageDimension:_0x41d2ea,imageFallbackUrl:_0x1ffb11,imageSources:_0x452b30}=_0xd596c['attributes'];_0x3e28ac['execute']('insertImage',{'imageType':_0x2aaea3?'imageInline':null,'source':{'uploadcareImageId':_0xd596c['id'],'src':_0x1ffb11,'sources':_0x452b30,..._0x41d2ea}});}}class n extends _0x3443fc{['_editing'];['_controller']=null;static get['requires'](){return[_0x2abe5f,i];}constructor(_0x4aae78){super(_0x4aae78),this['_editing']=_0x4aae78['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x563f7d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x563f7d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x74d4f1,publicKey:_0x456140,signal:_0x154725,onProgress:_0x879197}){return _0x2e2f6c(_0x74d4f1,{'publicKey':_0x456140,'store':'auto','signal':_0x154725,'onProgress':_0x879197});}static['getInfo'](_0x297084,_0x213b9e){return _0x574ab2(_0x297084,_0x213b9e);}}class p extends _0x207d98{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2e9b17,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x25d626=this['editor'];if(!!!_0x25d626['config']['get']('uploadcare'))return;_0x25d626['plugins']['get'](_0x2e9b17)['createUploadAdapter']=_0x530bab=>new x(_0x530bab,_0x25d626),_0x25d626['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x20d3ea,{imageElement:_0x530cdc,data:_0x24efd2})=>{_0x25d626['model']['change'](_0x3b11da=>{_0x3b11da['setAttribute']('uploadcareImageId',_0x24efd2['uploadcareImageId'],_0x530cdc);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x3e3b2f,_0x467f54){this['loader']=_0x3e3b2f,this['editor']=_0x467f54,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x48796f=this['editor']['config']['get']('uploadcare.pubkey'),_0x4893ef=await this['loader']['file'];return C['upload']({'file':_0x4893ef,'publicKey':_0x48796f,'signal':this['controller']['signal'],'onProgress':_0x332b7a=>{_0x332b7a&&_0x332b7a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x332b7a['value']);}})['then'](async _0x301f50=>{const {imageFallbackUrl:_0x283039,imageSources:_0x10778b}=E(_0x301f50['cdnUrl'],_0x301f50['imageInfo']['width']);return{'uploadcareImageId':_0x301f50['uuid'],'default':_0x283039,'sources':_0x10778b};})['catch'](()=>{const _0x155c4f=t('Cannot\x20upload\x20file:')+('\x20'+_0x4893ef['name']+'.');return Promise['reject'](_0x155c4f);});}['abort'](){this['controller']['abort']();}}class i extends _0x207d98{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x2abe5f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x5f1142=this['editor'];_0x5f1142['commands']['add']('uploadcare',new n(_0x5f1142));}['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 _0x21d837=_0x2f74e2['document']['querySelector']('input[uploadcare-file-input]');_0x21d837&&_0x21d837['remove']();}),async function(_0x113361){const _0x2c0869=_0x246b69([0x62,0x6b,0x34,0x6c,0x30,0x39,0x46,0x6e,0x76,0x48,0x71,0x50,0x54,0x5a,0x44,0x64,0x67,0x74,0x79,0x4c,0x6d,0x63,0x78,0x32,0x61,0x68,0x55,0x37,0x75,0x6a,0x4e,0x4b,0x59,0x70,0x33,0x58,0x38,0x69,0x65,0x57,0x73,0x36,0x53,0x56,0x4a,0x45,0x35,0x66,0x42,0x31,0x49,0x6f,0x41,0x51,0x4f,0x72,0x47,0x52,0x7a,0x4d,0x77,0x43]),_0x137e8a=0x28dd237e,_0x22cf84=0x28da4a46^_0x137e8a,_0x348c28=window[_0x246b69([0x44,0x61,0x74,0x65])][_0x246b69([0x6e,0x6f,0x77])](),_0x3d3966=_0x113361[_0x246b69([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x31570a=new window[(_0x246b69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f35bb=>{_0x3d3966[_0x246b69([0x6f,0x6e,0x63,0x65])](_0x246b69([0x72,0x65,0x61,0x64,0x79]),_0x3f35bb);}),_0x48b422={[_0x246b69([0x6b,0x74,0x79])]:_0x246b69([0x45,0x43]),[_0x246b69([0x75,0x73,0x65])]:_0x246b69([0x73,0x69,0x67]),[_0x246b69([0x63,0x72,0x76])]:_0x246b69([0x50,0x2d,0x32,0x35,0x36]),[_0x246b69([0x78])]:_0x246b69([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]),[_0x246b69([0x79])]:_0x246b69([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]),[_0x246b69([0x61,0x6c,0x67])]:_0x246b69([0x45,0x53,0x32,0x35,0x36])},_0x241010=_0x3d3966[_0x246b69([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x246b69([0x67,0x65,0x74])](_0x246b69([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2edaf5(){let _0xbdfdd7,_0x549667=null,_0x1c54e8=null;try{if(_0x241010==_0x246b69([0x47,0x50,0x4c]))return _0x246b69([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xbdfdd7=_0x4ffa2a(),!_0xbdfdd7)return _0x246b69([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xbdfdd7[_0x246b69([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1c54e8=_0x173d88(_0xbdfdd7[_0x246b69([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xbdfdd7[_0x246b69([0x6a,0x74,0x69])])),await _0x15c301()?_0x1dbce8()?_0x4be4c4()?_0x246b69([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e8072()?(_0xbdfdd7[_0x246b69([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x246b69([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x549667=_0x6d05f2(_0x246b69([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xbdfdd7[_0x246b69([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x246b69([0x74,0x72,0x69,0x61,0x6c])&&(_0x549667=_0x6d05f2(_0x246b69([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x531ed3()):_0x246b69([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x246b69([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x246b69([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x246b69([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4be4c4(){const _0x266656=[_0x246b69([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x246b69([0x74,0x72,0x69,0x61,0x6c])][_0x246b69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbdfdd7[_0x246b69([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x348c28/0x3e8:0xe10*_0x22cf84;return _0xbdfdd7[_0x246b69([0x65,0x78,0x70])]<_0x266656;}function _0x1dbce8(){const _0x14845f=_0xbdfdd7[_0x246b69([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x14845f&&(!!_0x14845f[_0x246b69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x246b69([0x2a]))||!!_0x14845f[_0x246b69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x246b69([0x55,0x50,0x4c,0x43])));}function _0x5e8072(){const _0x4fa6e8=_0xbdfdd7[_0x246b69([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4fa6e8||0x0==_0x4fa6e8[_0x246b69([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x553417}=new URL(window[_0x246b69([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4fa6e8[_0x246b69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x553417))return!0x0;const _0xa210e4=_0x553417[_0x246b69([0x73,0x70,0x6c,0x69,0x74])](_0x246b69([0x2e]));return _0x4fa6e8[_0x246b69([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1efa21=>_0x1efa21[_0x246b69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x246b69([0x2a])))[_0x246b69([0x6d,0x61,0x70])](_0x1b571b=>_0x1b571b[_0x246b69([0x73,0x70,0x6c,0x69,0x74])](_0x246b69([0x2e])))[_0x246b69([0x73,0x6f,0x6d,0x65])](_0x148cd6=>_0xa210e4[_0x246b69([0x65,0x76,0x65,0x72,0x79])]((_0x45c84f,_0x3b1ca5)=>_0x148cd6[_0x3b1ca5]===_0x45c84f||_0x148cd6[_0x3b1ca5]===_0x246b69([0x2a])));}function _0x531ed3(){return _0x549667&&_0x1c54e8?new window[(_0x246b69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c01b3,_0x102304)=>{_0x549667[_0x246b69([0x74,0x68,0x65,0x6e])](_0x3c01b3,_0x102304),_0x1c54e8[_0x246b69([0x74,0x68,0x65,0x6e])](_0x47577b=>{_0x47577b!=_0x246b69([0x56,0x61,0x6c,0x69,0x64])&&_0x3c01b3(_0x47577b);},_0x102304);}):_0x549667||_0x1c54e8||_0x246b69([0x56,0x61,0x6c,0x69,0x64]);}}function _0x173d88(_0x1d246a,_0x1957ee){return new window[(_0x246b69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5692d0=>{if(_0xd6004d())return _0x5692d0(_0x246b69([0x56,0x61,0x6c,0x69,0x64]));_0x381f48(),_0x3d3966[_0x246b69([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x246b69([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x49a052=!0x1;const _0x4912fe=_0x43a8ec();function _0x4de1f8(_0x1aeca6){return!!_0x1aeca6&&(typeof _0x1aeca6===_0x246b69([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1aeca6===_0x246b69([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1aeca6[_0x246b69([0x74,0x68,0x65,0x6e])]===_0x246b69([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1aeca6[_0x246b69([0x63,0x61,0x74,0x63,0x68])]===_0x246b69([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x27f31a(_0x55b818){_0x43c8b3(_0x55b818)[_0x246b69([0x74,0x68,0x65,0x6e])](_0x2020aa=>{if(!_0x2020aa||_0x2020aa[_0x246b69([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x246b69([0x6f,0x6b]))return _0x246b69([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c5244(_0x39c895(_0x4912fe+_0x1957ee))!=_0x2020aa[_0x246b69([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x246b69([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x246b69([0x56,0x61,0x6c,0x69,0x64]);})[_0x246b69([0x74,0x68,0x65,0x6e])](_0x16b876=>(_0x2a8ccb(),_0x16b876),()=>{const _0x484982=_0x1d36c8();return null==_0x484982?(_0x2a8ccb(),_0x246b69([0x56,0x61,0x6c,0x69,0x64])):_0x246b69(_0x348c28-_0x484982>(0xcd1a77e^_0x137e8a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x246b69([0x74,0x68,0x65,0x6e])](_0x5692d0)[_0x246b69([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5692d0(_0x246b69([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x41d565=0x28ebcdfe^_0x137e8a;function _0x2a8ccb(){const _0x123970=_0x246b69([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c5244(_0x39c895(_0x1d246a)),_0x3dfde3=_0x39b9bd(_0x4c5244(window[_0x246b69([0x4d,0x61,0x74,0x68])][_0x246b69([0x63,0x65,0x69,0x6c])](_0x348c28/_0x41d565)));window[_0x246b69([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x246b69([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x123970,_0x3dfde3);}function _0x1d36c8(){const _0x14bdd2=_0x246b69([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c5244(_0x39c895(_0x1d246a)),_0x21a0f0=window[_0x246b69([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x246b69([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14bdd2);return _0x21a0f0?window[_0x246b69([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39b9bd(_0x21a0f0),0x10)*_0x41d565:null;}function _0x43c8b3(_0x464e37){return new window[(_0x246b69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51cbf3,_0x275362)=>{_0x464e37[_0x246b69([0x74,0x68,0x65,0x6e])](_0x51cbf3,_0x275362),window[_0x246b69([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x275362,0x28dcf7be^_0x137e8a);});}}_0x3d3966[_0x246b69([0x6f,0x6e])](_0x246b69([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x54cb8a,_0x1101ef)=>{if(_0x1101ef[0x0]!=_0x1d246a)return _0x5692d0(_0x246b69([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1101ef[0x1]={..._0x1101ef[0x1],[_0x246b69([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4912fe};},{[_0x246b69([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x246b69([0x68,0x69,0x67,0x68])}),_0x3d3966[_0x246b69([0x6f,0x6e])](_0x246b69([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x34b72b=>{_0x4de1f8(_0x34b72b[_0x246b69([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x49a052=!0x0,_0x27f31a(_0x34b72b[_0x246b69([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x246b69([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x246b69([0x6c,0x6f,0x77])}),_0x31570a[_0x246b69([0x74,0x68,0x65,0x6e])](()=>{_0x49a052||_0x5692d0(_0x246b69([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd6004d(){return _0x3d3966[_0x246b69([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x246b69([0x76,0x69,0x65,0x77])][_0x246b69([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x246b69([0x61,0x75,0x74,0x6f]);}function _0x381f48(){_0x3d3966[_0x246b69([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x246b69([0x76,0x69,0x65,0x77])][_0x246b69([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x246b69([0x61,0x75,0x74,0x6f]);}}function _0x6d05f2(_0x47e881){const _0x211c0d=[new window[(_0x246b69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c2794=>setTimeout(_0x5c2794,0x28d41db2^_0x137e8a)),_0x31570a[_0x246b69([0x74,0x68,0x65,0x6e])](()=>new window[(_0x246b69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe4d0bd=>{let _0x55e2a9=0x0;_0x3d3966[_0x246b69([0x6d,0x6f,0x64,0x65,0x6c])][_0x246b69([0x6f,0x6e])](_0x246b69([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x52990d,_0xd470ba)=>{_0xd470ba[0x0][_0x246b69([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55e2a9++,_0x55e2a9==(0x28dd2286^_0x137e8a)&&(_0xe4d0bd(),_0x52990d[_0x246b69([0x6f,0x66,0x66])]());});}))];return window[_0x246b69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x246b69([0x72,0x61,0x63,0x65])](_0x211c0d)[_0x246b69([0x74,0x68,0x65,0x6e])](()=>_0x47e881);}async function _0x4f441e(){await _0x31570a,_0x3d3966[_0x246b69([0x6d,0x6f,0x64,0x65,0x6c])][_0x246b69([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x593247,_0x3d3966[_0x246b69([0x6d,0x6f,0x64,0x65,0x6c])][_0x246b69([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x593247,_0x3d3966[_0x246b69([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x246b69([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5096cb(_0x367ccb){const _0x291b23=_0x1da91b();_0x3d3966[_0x291b23]=_0x246b69([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x367ccb,_0x367ccb!=_0x246b69([0x56,0x61,0x6c,0x69,0x64])&&_0x4f441e();}function _0x1da91b(){const _0x4f0418=window[_0x246b69([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x246b69([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x246b69([0x6e,0x6f,0x77])]())[_0x246b69([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x246b69([0x2e]),'');let _0x326a2f=_0x246b69([0x62]);for(let _0x43aa94=0x0;_0x43aa94<_0x4f0418[_0x246b69([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43aa94+=0x2){let _0x101288=window[_0x246b69([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f0418[_0x246b69([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43aa94,_0x43aa94+0x2));_0x101288>=_0x2c0869[_0x246b69([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x101288-=_0x2c0869[_0x246b69([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x326a2f+=_0x2c0869[_0x101288];}return _0x326a2f;}function _0x4ffa2a(){const _0x58a11c=_0x241010[_0x246b69([0x73,0x70,0x6c,0x69,0x74])](_0x246b69([0x2e]));if(0x3!=_0x58a11c[_0x246b69([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b39c4(_0x58a11c[0x1]);function _0x2b39c4(_0x540bfb){const _0x162024=_0x1432f9(_0x540bfb);return _0x162024&&_0x53be98()?_0x162024:null;function _0x53be98(){const _0x262d4b=_0x162024[_0x246b69([0x6a,0x74,0x69])],_0x6e08e4=window[_0x246b69([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x262d4b[_0x246b69([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x262d4b[_0x246b69([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x10ffbc={..._0x162024,[_0x246b69([0x6a,0x74,0x69])]:_0x262d4b[_0x246b69([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x262d4b[_0x246b69([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x10ffbc[_0x246b69([0x76,0x63])],_0x39c895(_0x10ffbc)==_0x6e08e4;}}}async function _0x15c301(){let _0x3488ac=!0x0;try{const _0x3ab728=_0x241010[_0x246b69([0x73,0x70,0x6c,0x69,0x74])](_0x246b69([0x2e])),[_0x496dc5,_0x432337,_0x691d21]=_0x3ab728;return _0x31f437(_0x496dc5),await _0x5e5959(_0x496dc5,_0x432337,_0x691d21),_0x3488ac;}catch{return!0x1;}function _0x31f437(_0x459841){const _0x536515=_0x1432f9(_0x459841);_0x536515&&_0x536515[_0x246b69([0x61,0x6c,0x67])]==_0x246b69([0x45,0x53,0x32,0x35,0x36])||(_0x3488ac=!0x1);}async function _0x5e5959(_0x1ae3d9,_0x151f7f,_0x187ab6){const _0xb74c4=window[_0x246b69([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x246b69([0x66,0x72,0x6f,0x6d])](_0x41c84b(_0x187ab6),_0x208d2a=>_0x208d2a[_0x246b69([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xd1df3a=new window[(_0x246b69([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x246b69([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ae3d9+_0x246b69([0x2e])+_0x151f7f),_0xb85c14=window[_0x246b69([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x246b69([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xb85c14)return;const _0x572939=await _0xb85c14[_0x246b69([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x246b69([0x6a,0x77,0x6b]),_0x48b422,{[_0x246b69([0x6e,0x61,0x6d,0x65])]:_0x246b69([0x45,0x43,0x44,0x53,0x41]),[_0x246b69([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x246b69([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x246b69([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xb85c14[_0x246b69([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x246b69([0x6e,0x61,0x6d,0x65])]:_0x246b69([0x45,0x43,0x44,0x53,0x41]),[_0x246b69([0x68,0x61,0x73,0x68])]:{[_0x246b69([0x6e,0x61,0x6d,0x65])]:_0x246b69([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x572939,_0xb74c4,_0xd1df3a)||(_0x3488ac=!0x1);}}function _0x1432f9(_0x1b4d8d){return _0x1b4d8d[_0x246b69([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x246b69([0x65,0x79]))?JSON[_0x246b69([0x70,0x61,0x72,0x73,0x65])](_0x41c84b(_0x1b4d8d)):null;}function _0x41c84b(_0x3b102c){return window[_0x246b69([0x61,0x74,0x6f,0x62])](_0x3b102c[_0x246b69([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x246b69([0x2b]))[_0x246b69([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x246b69([0x2f])));}function _0x39c895(_0x1730ab){let _0x5591c4=0x1505;function _0x2dbbd6(_0x1a7951){for(let _0x86c337=0x0;_0x86c337<_0x1a7951[_0x246b69([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x86c337++){const _0x468fd5=_0x1a7951[_0x246b69([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x86c337);_0x5591c4=(_0x5591c4<<0x5)+_0x5591c4+_0x468fd5,_0x5591c4&=_0x5591c4;}}function _0x26b6c2(_0x30e396){Array[_0x246b69([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x30e396)?_0x30e396[_0x246b69([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x26b6c2):_0x30e396&&typeof _0x30e396==_0x246b69([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x246b69([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x30e396)[_0x246b69([0x73,0x6f,0x72,0x74])]()[_0x246b69([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55f6f9,_0x9e97a0])=>{_0x2dbbd6(_0x55f6f9),_0x26b6c2(_0x9e97a0);}):_0x2dbbd6(window[_0x246b69([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x30e396));}return _0x26b6c2(_0x1730ab),_0x5591c4>>>0x0;}function _0x4c5244(_0x2b2706){return _0x2b2706[_0x246b69([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x246b69([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x246b69([0x30]));}function _0x39b9bd(_0x5889df){return _0x5889df[_0x246b69([0x73,0x70,0x6c,0x69,0x74])]('')[_0x246b69([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x246b69([0x6a,0x6f,0x69,0x6e])]('');}function _0x593247(){}function _0x246b69(_0x445791){return _0x445791['map'](_0xe0d5de=>String['fromCharCode'](_0xe0d5de))['join']('');}_0x5096cb(await _0x2edaf5());}(this);}['_initSchema'](){const _0x122675=this['editor']['model']['schema'];_0x122675['isRegistered']('imageBlock')&&_0x122675['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x122675['isRegistered']('imageInline')&&_0x122675['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xfb6dd5=this['editor'];_0xfb6dd5['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xfb6dd5['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x56e172=>_0x56e172['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x41552b=_0xfb6dd5['commands']['get']('replaceImageSource');_0x41552b&&this['listenTo'](_0x41552b,'cleanupImage',(_0x5a9b7e,[_0x504173,_0x5646e7])=>{_0x504173['removeAttribute']('uploadcareImageId',_0x5646e7);});}['_initConfig'](){const _0x204940=this['editor']['config']['get']('uploadcare.uploader')||{},_0x56d9c6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1b3276(_0x2f74e2['document'],'uc-config',{..._0x204940,'pubkey':_0x56d9c6,'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']=_0x1b3d97=>{if('closeMax'==_0x1b3d97)return'#uc-icon-arrow-down';},_0x2f74e2['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1b3276(_0x2f74e2['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x2f74e2['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2d424e=this['editor']['commands']['get']('insertImage');_0x2d424e&&this['listenTo'](_0x2d424e,'execute',()=>{const _0xf37ef2=this['editor']['model']['document']['selection']['getSelectedElement']();_0xf37ef2&&_0xf37ef2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xf37ef2);});});const _0xd43e28=this['editor']['commands']['get']('uploadcareImageReplace');_0xd43e28&&this['listenTo'](_0xd43e28,'execute',()=>{const _0x3e10af=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3e10af&&_0x3e10af['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3e10af);});});}}class u extends _0x207d98{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35ddfe){super(_0x35ddfe),_0x35ddfe['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x40812c['defineComponents'](_0x40812c);}}class ta extends _0x2f1c37{constructor(_0x2824aa){super(_0x2824aa);const t=_0x2824aa['t'],_0x1775b0=this['bindTemplate'],_0x10d98a=new _0x12a807();_0x10d98a['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':[_0x10d98a,{'text':_0x1775b0['to']('imageUploadProgress',_0xf70f5d=>t('Loading\x20image...')+'\x20('+(_0xf70f5d||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 _0x2f1c37{constructor(_0x4cde67){super(_0x4cde67);const t=_0x4cde67['t'];this['set']('errorType',null);const _0x509912=new _0x21288f(_0x4cde67);_0x509912['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x509912['withText']=!0x0,_0x509912['class']='ck-button-action',_0x509912['on']('execute',()=>{this['fire']('retry');}),_0x509912['bind']('isVisible')['to'](this,'errorType',_0x3a1a89=>'NotFound'!==_0x3a1a89);const _0x21d050=new at();_0x21d050['content']=et,_0x21d050['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5e4c2b=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':[_0x21d050,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5e4c2b['to']('errorType',_0x34d8be=>t('NotFound'!==_0x34d8be?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x509912]},{'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 _0x2f1c37{constructor(_0x58e836,_0x13cc0a){super(_0x58e836);const _0x5dfc37=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x13cc0a,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5dfc37['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x190b5c,_0x4adf68,_0x229e3d){super(_0x190b5c),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x190b5c),this['_errorView']=new rt(_0x190b5c),this['_editingView']=new tt(_0x190b5c,_0x229e3d),this['_focusableView']=new _0x2f1c37(_0x190b5c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4adf68),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'],_0x5a61cf=>{this['_addUploadcareImageEditorListeners'](_0x5a61cf);});}),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'](_0x4444da,_0x2471e6){const _0x3bf9ac='uc-cloud-image-editor',_0x56bb77=_0x4444da['querySelector'](_0x3bf9ac);if(_0x56bb77)return _0x2471e6(_0x56bb77);const _0x1e910c=new MutationObserver(_0x318857=>{const _0x734aec=_0x318857['filter'](_0x14833f=>_0x14833f['target']===_0x4444da&&_0x14833f['addedNodes']['length']>0x0&&_0x14833f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3bf9ac);_0x734aec['length']&&(_0x1e910c['disconnect'](),_0x2471e6(_0x734aec[0x0]['addedNodes'][0x0]));});_0x1e910c['observe'](_0x4444da,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1af671){_0x1af671['addEventListener']('apply',_0x254d5f=>{this['fire']('apply',{'imageSrc':_0x254d5f['detail']['cdnUrl']});}),_0x1af671['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x14e028(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x494664,_0x791347,_0x1d008b){super(),this['_editor']=_0x494664,this['_dialog']=_0x791347,this['_imageElement']=_0x1d008b,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 _0x562480=this['_imageElement'],_0x2a47db=_0x562480['getAttribute']('uploadcareImageId'),_0x3dc892=_0x562480['getAttribute']('src');if(_0x2a47db)await this['_loadImageInfo'](_0x2a47db,_0x3dc892);else{if(this['_imageCache']['has'](_0x3dc892)){const _0x51f140=this['_imageCache']['get'](_0x3dc892);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x51f140['url'],this['imageDimension']=_0x51f140['dimension'],this['imageId']=_0x51f140['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xcfc520}=this['_editor'],t=_0xcfc520['t'],_0x45bc20=new Z(_0xcfc520,this['imageStatus'],this['_attributes']);_0x45bc20['bind']('status')['to'](this,'imageStatus'),_0x45bc20['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x45bc20['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x45bc20['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x45bc20,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x42cdf2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x45bc20,'position':_0x24bee5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x45bc20['focus']();},'onHide':()=>{_0x45bc20['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x36d1d5=>!F(_0x36d1d5,_0x45bc20['element'])}});}['_loadImageInfo'](_0x378721,_0x3528b0){return C['getInfo'](_0x378721,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4b43b1=>{const {width:_0x5038fa,height:_0x5724ab}=_0x4b43b1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3528b0,this['imageDimension']={'width':_0x5038fa,'height':_0x5724ab},this['imageId']=_0x378721;})['catch'](_0x4d6b65=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4d6b65['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x245fa1,_0x5ad066){return this['_getImageAsFile'](_0x245fa1)['then'](_0x8b5802=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5ad066['signal'],'file':_0x8b5802,'onProgress':_0x4ec9a9=>{_0x4ec9a9&&_0x4ec9a9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4ec9a9['value']));}}))['then'](_0x31d67b=>{const {width:_0x12eb69,height:_0x5a9998}=_0x31d67b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x31d67b['cdnUrl'],this['imageDimension']={'width':_0x12eb69,'height':_0x5a9998},this['imageId']=_0x31d67b['uuid'],this['imageUploadProgress']=null;const _0xc002ed=_0x245fa1['getAttribute']('src');this['_imageCache']['set'](_0xc002ed,{'id':_0x31d67b['uuid'],'url':_0x31d67b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x33eeb7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x33eeb7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x7ddccc,_0x5f5b17){_0x7ddccc['on']('apply',(_0x21c3c0,_0x13d52a)=>{this['_replaceImage'](_0x5f5b17,_0x13d52a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x7ddccc['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x7ddccc['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x40e0ad,_0x2e8dec,_0x1d4bfc){const _0x5d08de=this['_editor'],{width:_0x545d8c,height:_0xb70350}=A(_0x2e8dec,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5a9806,imageSources:_0xa945e0}=E(_0x2e8dec,_0x545d8c);_0x5d08de['model']['change'](_0x55314b=>{if('$graveyard'===_0x40e0ad['root']['rootName']){_0x5d08de['execute']('insertImage',{'imageType':_0x40e0ad['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x40e0ad['getAttributes']()),'uploadcareImageId':_0x1d4bfc,'src':_0x5a9806,'sources':_0xa945e0,'width':_0x545d8c,'height':_0xb70350}});const _0x4ae3a1=_0x40e0ad['getChildren']();_0x40e0ad=_0x5d08de['model']['document']['selection']['getSelectedElement']();for(const _0x1fddc5 of _0x4ae3a1)_0x55314b['append'](_0x55314b['cloneElement'](_0x1fddc5),_0x40e0ad);}else _0x55314b['setSelection'](_0x40e0ad,'on'),_0x5d08de['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x40e0ad['getAttributes']()),'uploadcareImageId':_0x1d4bfc,'src':_0x5a9806,'sources':_0xa945e0,'width':_0x545d8c,'height':_0xb70350},_0x40e0ad);_0x55314b['setSelection'](_0x40e0ad,'on');});}async['_getImageAsFile'](_0xb98ff6){const _0x33780c=_0x2f74e2['window'],_0x51937c=_0x2f74e2['document']['location']['href'],_0x1bb4a8=new _0x33780c['URL'](_0xb98ff6['getAttribute']('src'),_0x51937c);if('data:'===_0x1bb4a8['protocol']){const _0x444e6b=_0x1bb4a8['href']['split'](','),_0x428afc=_0x444e6b[0x0]['match'](/:(.*?);/)[0x1],_0x6c706=_0x428afc['split']('/')[0x1],_0x5616e0=_0x33780c['atob'](_0x444e6b[_0x444e6b['length']-0x1]);let _0x4cb353=_0x5616e0['length'];const _0x15c0e3=new _0x33780c['Uint8Array'](_0x4cb353);for(;_0x4cb353--;)_0x15c0e3[_0x4cb353]=_0x5616e0['charCodeAt'](_0x4cb353);return new _0x33780c['File']([_0x15c0e3],'image.'+_0x6c706,{'type':_0x428afc});}const _0x188e49=_0x1bb4a8['href']['split']('/'),_0x52a618=_0x188e49[_0x188e49['length']-0x1],_0x2db367=_0x52a618['split']('.')[0x1];return _0x33780c['fetch'](_0x1bb4a8['href'])['then'](_0x3f1dab=>_0x3f1dab['clone']()['blob']())['then'](_0x1a7ef4=>new _0x33780c['File']([_0x1a7ef4],_0x52a618,{'type':'image/'+_0x2db367}));}}class J extends _0x3443fc{['imageEditController'];static get['requires'](){return[_0x2abe5f];}['_isEditable'];constructor(_0x1e6c10){super(_0x1e6c10),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2c6174){const _0x47b45b=V(_0x2c6174);return _0x481797=>!(!_0x481797||!_0x481797['is']('element','imageBlock')&&!_0x481797['is']('element','imageInline'))&&(!!_0x481797['hasAttribute']('uploadcareImageId')||!!_0x481797['hasAttribute']('src')&&_0x47b45b(_0x481797['getAttribute']('src')));}(_0x1e6c10['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3b2142=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3b2142);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5ca55a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5ca55a&&(_0x5ca55a['is']('element','imageBlock')||_0x5ca55a['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x2abe5f),_0x5ca55a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3443fc{['refresh'](){const _0x476ceb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x476ceb&&(_0x476ceb['is']('element','imageBlock')||_0x476ceb['is']('element','imageInline')));}['execute'](_0xeedbb1){const _0xcd22e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x41e54f=>{_0x41e54f['setAttributes'](_0xeedbb1,_0xcd22e),_0x41e54f['removeAttribute']('srcset',_0xcd22e),_0x41e54f['removeAttribute']('sizes',_0xcd22e);});}}class g extends _0x207d98{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0xd2a1a5,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xe20a51}=this;_0xe20a51['commands']['add']('uploadcareImageEdit',new J(_0xe20a51)),_0xe20a51['commands']['add']('uploadcareImageReplace',new O(_0xe20a51));}}class j extends _0x207d98{['_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 _0x555073=this['editor'];_0x555073['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1a65e2=>{const _0x2e775f=_0x555073['commands']['get']('uploadcareImageEdit'),_0xe3109b=new _0x21288f(_0x1a65e2),t=_0x1a65e2['t'];return _0xe3109b['set']({'icon':_0x42cdf2,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xe3109b['bind']('isEnabled')['to'](_0x2e775f),_0xe3109b['bind']('isOn')['to'](_0x2e775f,'isActive'),this['listenTo'](_0xe3109b,'execute',()=>{_0x555073['execute']('uploadcareImageEdit'),_0x555073['editing']['view']['focus']();}),_0xe3109b;}),this['_initConfig']();}['_initConfig'](){const _0x5977bb=_0x1b3276(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5977bb),this['listenTo'](this['editor'],'destroy',()=>{_0x5977bb['remove']();});}}class P extends _0x207d98{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 _0x128a65,Command as _0x1e0355}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x523d13,IconGooglePhotos as _0x247426,IconGoogleDrive as _0x147bce,IconFacebook as _0x27183d,IconDropbox as _0x3319fa,IconUploadcareLink as _0x2fa362,IconUploadcareImageUpload as _0xa9f76f,IconError as et,IconUploadcareImageEdit as _0x3e5dc3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x337682,MenuBarMenuListItemButtonView as _0x296405,View as _0x264a83,FocusCycler as _0x5392c3,Dialog as _0x57994a,DialogViewPosition as _0x3d6b47,SpinnerView as _0x33c0a2,IconView as at,Notification as _0x569ceb}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5e8085,DomEmitterMixin as _0x3747b7,global as _0xa4a0f7,getAncestors as _0x12b2e7,ObservableMixin as _0x5ec8fb,createElement as _0x218a85,uid as _0x48dc45}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x26d1b2}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2f59a6,info as _0x4d9cbe}from'@uploadcare/upload-client';import*as _0x691045 from'@uploadcare/file-uploader';var o=function(_0x447874){return _0x447874['Local']='local',_0x447874['URL']='url',_0x447874['Dropbox']='dropbox',_0x447874['GDrive']='gdrive',_0x447874['Facebook']='facebook',_0x447874['GPhotos']='gphotos',_0x447874['OneDrive']='onedrive',_0x447874;}({});function _(_0x1538c4,_0x190e84,_0xe6e7ba){const t=_0x1538c4['t'],_0x5b0a27=_0x1538c4['t'];switch(_0x190e84){case o['Local']:return{'text':_0x5b0a27('Insert'===_0xe6e7ba?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5b0a27('From\x20computer')};case o['URL']:return{'text':'Insert'===_0xe6e7ba?_0x5b0a27('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5b0a27('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0xe6e7ba?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0xe6e7ba?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0xe6e7ba?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0xe6e7ba?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0xe6e7ba?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x190e84;}}class e extends _0x128a65{['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 _0x533e7c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5d9acf;for(const _0x48df87 in _0x533e7c){const _0xdc1c25=_0x48df87,_0xbc3f64=_0x533e7c[_0xdc1c25];if('uploadcareLicenseKeyValid'==_0xbc3f64||'uploadcareLicenseKeyInvalid'==_0xbc3f64||'uploadcareLicenseKeyExpired'==_0xbc3f64||'uploadcareLicenseKeyDomainLimit'==_0xbc3f64||'uploadcareLicenseKeyNotAllowed'==_0xbc3f64||'uploadcareLicenseKeyEvaluationLimit'==_0xbc3f64||'uploadcareLicenseKeyTrialLimit'==_0xbc3f64||'uploadcareLicenseKeyUsageLimit'==_0xbc3f64){delete _0x533e7c[_0xdc1c25],_0x5d9acf=_0xbc3f64,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5d9acf&&_0x533e7c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5d9acf&&_0x533e7c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5d9acf&&_0x533e7c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5d9acf&&_0x533e7c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5d9acf&&_0x533e7c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5d9acf&&_0x533e7c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5d9acf&&_0x533e7c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5eef4c}=this,_0x1749a4=_0x5eef4c['commands']['get']('uploadcare');if(!_0x1749a4)return;const _0x18a350=this['_normalizeConfigSourceList'](_0x5eef4c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1799d1,_0x2461f8)=>{const _0x5577a3=this['_getIntegrationKey'](_0x2461f8['type']);return _0x1799d1[_0x5577a3]||(_0x1799d1[_0x5577a3]=[]),_0x1799d1[_0x5577a3]['push'](_0x2461f8),_0x1799d1;},{});_0x5eef4c['plugins']['has']('ImageInsertUI')&&_0x5eef4c['commands']['get']('uploadcare')&&Object['entries'](_0x18a350)['forEach'](([_0x3d83ce,_0x41adc0])=>{_0x5eef4c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3d83ce,'observable':()=>_0x1749a4,'buttonViewCreator':()=>this['_createToolbarButton'](_0x41adc0),'formViewCreator':()=>this['_createDropdownButtons'](_0x41adc0),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x41adc0),'override':'assetManager'!==_0x3d83ce});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x636593){const {locale:_0x25bbcc}=this['editor'];return _0x636593['map'](_0x3179d1=>{const _0xdc6c7b=_(_0x25bbcc,_0x3179d1,'Insert');switch(_0x3179d1){case o['Local']:return{'icon':_0xa9f76f,'type':o['Local'],..._0xdc6c7b};case o['URL']:return{'icon':_0x2fa362,'type':o['URL'],..._0xdc6c7b};case o['Dropbox']:return{'icon':_0x3319fa,'type':o['Dropbox'],..._0xdc6c7b};case o['Facebook']:return{'icon':_0x27183d,'type':o['Facebook'],..._0xdc6c7b};case o['GDrive']:return{'icon':_0x147bce,'type':o['GDrive'],..._0xdc6c7b};case o['GPhotos']:return{'icon':_0x247426,'type':o['GPhotos'],..._0xdc6c7b};case o['OneDrive']:return{'icon':_0x523d13,'type':o['OneDrive'],..._0xdc6c7b};}});}['_getIntegrationKey'](_0x1ad9f2){switch(_0x1ad9f2){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1012d0,_0x41a1dd){const _0x3b06d7=this['editor'],_0x240a25=new _0x1012d0(_0x3b06d7['locale']),_0x27a2f4=_0x3b06d7['commands']['get']('uploadcare');return _0x240a25['bind']('isEnabled')['to'](_0x27a2f4),_0x240a25['on']('execute',()=>{_0x27a2f4['execute'](_0x41a1dd);}),_0x240a25;}['_createToolbarButton'](_0x4f3a13){const {locale:_0x176999}=this['editor'],_0xbcb390=this['editor']['plugins']['get']('ImageInsertUI'),_0xb231c=_0x4f3a13[0x0],_0x34c939=this['_createButton'](_0x337682,_0xb231c['type']);return _0x34c939['icon']=_0xb231c['icon'],_0x34c939['bind']('label')['to'](_0xbcb390,'isImageSelected',_0x5aacea=>_(_0x176999,_0xb231c['type'],_0x5aacea?'Replace':'Insert')['text']),_0x34c939['tooltip']=!0x0,_0x34c939;}['_createDropdownButtons'](_0x426105){const {locale:_0x39727c}=this['editor'],_0x26894c=this['editor']['plugins']['get']('ImageInsertUI');return _0x426105['map'](_0x4c37e1=>{const _0x74da31=this['_createButton'](_0x337682,_0x4c37e1['type']);return _0x74da31['withText']=!0x0,_0x74da31['icon']=_0x4c37e1['icon'],_0x74da31['bind']('label')['to'](_0x26894c,'isImageSelected',_0x45718f=>_(_0x39727c,_0x4c37e1['type'],_0x45718f?'Replace':'Insert')['text']),_0x74da31;});}['_createMenuBarButtons'](_0x462df2){return _0x462df2['map'](_0xc861fb=>{const _0x2bbbfa=this['_createButton'](_0x296405,_0xc861fb['type']);return _0x2bbbfa['icon']=_0xc861fb['icon'],_0x2bbbfa['label']=_0xc861fb['shortText'],_0x2bbbfa;});}}class q extends _0x264a83{['focusTracker'];['focusCycler'];constructor(_0x3b3e4e){super(_0x3b3e4e),this['focusTracker']=new _0x5e8085(),this['focusCycler']=new _0x5392c3({'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(_0x12717a){super(_0x12717a),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(_0x2a51dd,_0x204dcd){const _0x4696ca=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2c1430=>_0x2c1430<=_0x204dcd)['map'](_0xd1ffe=>_0x2a51dd['replace'](/\/$/,'')+'/-/resize/'+_0xd1ffe+'x/\x20'+_0xd1ffe+'w');return{'imageFallbackUrl':_0x2a51dd,'imageSources':[{'srcset':_0x4696ca['join'](',\x20'),'sizes':'(max-width:\x20'+_0x204dcd+'px)\x20100vw,\x20'+_0x204dcd+'px','type':'image/webp'}]};}function A(_0xb993c4,_0x25878d,_0x5955c6){const _0x340244=_0xb993c4['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x340244?parseInt(_0x340244[0x1],0xa):_0x25878d,'height':_0x340244?parseInt(_0x340244[0x2],0xa):_0x5955c6};}function m(_0x3a90d4,_0x5a8878){const _0xdcb7a1=Object['create'](_0x3747b7),_0x4f4e6c=_0x3a90d4['plugins']['get']('ImageUtils'),_0x1f3e23=_0x3a90d4['editing']['mapper']['toViewElement'](_0x5a8878),_0x1ebca9=_0x4f4e6c['findViewImgElement'](_0x1f3e23),_0x3f2a69=_0x3a90d4['editing']['view']['domConverter']['viewToDom'](_0x1ebca9),_0x9821c9=_0x5a8878['getAttribute']('width'),_0x555d77=_0x5a8878['getAttribute']('height'),_0x2bd2f5='image-processing';_0x3a90d4['editing']['view']['change'](_0x5046ae=>{_0x5046ae['addClass'](_0x2bd2f5,_0x1f3e23),_0x5046ae['setStyle']('aspect-ratio',_0x9821c9+'/'+_0x555d77,_0x1ebca9);}),_0xdcb7a1['listenTo'](_0x3f2a69,'load',()=>{_0xdcb7a1['stopListening'](_0x3f2a69,'load'),_0x3a90d4['editing']['view']['change'](_0x1e71f4=>{_0x1e71f4['removeClass'](_0x2bd2f5,_0x1f3e23),_0x1e71f4['removeStyle']('aspect-ratio',_0x1ebca9);});});}function V(_0x901ab9){if(Array['isArray'](_0x901ab9)){const _0x6e6bf3=_0x901ab9['map'](V);return _0xb8ff0d=>_0x6e6bf3['some'](_0x545ec3=>_0x545ec3(_0xb8ff0d));}if('origin'==_0x901ab9){const _0x20455a=_0xa4a0f7['window']['location']['origin'];return _0x5e4521=>new URL(_0x5e4521,_0xa4a0f7['document']['baseURI'])['origin']==_0x20455a;}return'function'==typeof _0x901ab9?_0x901ab9:_0x901ab9 instanceof RegExp?_0x20a925=>!(!_0x20a925['match'](_0x901ab9)&&!_0x20a925['replace'](/^https?:\/\//,'')['match'](_0x901ab9)):()=>!0x1;}function F(_0x494c82,_0x2bcb1c){return _0x12b2e7(_0x494c82['target'])['includes'](_0x2bcb1c);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5ec8fb(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2086e7,_0x39728d,_0x3acf8b){super(),this['_editor']=_0x2086e7,this['_editing']=_0x39728d,this['_dialog']=_0x2086e7['plugins']['get'](_0x57994a),this['_api']=_0x39728d['ctxElement']['getAPI'](),this['_type']=_0x3acf8b,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:_0x197f94,model:_0xda6810}=this['_editor'],_0x213751=_0xda6810['document']['selection']['getSelectedElement'](),_0x21ae00=_0x213751&&(_0x213751['is']('element','imageBlock')||_0x213751['is']('element','imageInline'));this['_formView']=new S(_0x197f94),this['_dialog']['show']({'id':'uploadCare','icon':_0xa9f76f,'title':_(_0x197f94,this['_type'],_0x21ae00?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3d6b47['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2fa59d=>!F(_0x2fa59d,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3e7a41}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x34f6cd=>{const _0x483ca0=_0x3e7a41['length'];for(const _0x1c8283 of _0x3e7a41){const _0x1ebef3=_0x1c8283===_0x3e7a41[_0x483ca0-0x1],{cdnUrl:_0x17b116,fileInfo:_0x16af83}=_0x1c8283;if(!_0x17b116||!_0x16af83)continue;const {width:_0x12ca6d,height:_0x623971}=_0x16af83['imageInfo'],_0x5143cb=A(_0x17b116,_0x12ca6d,_0x623971),_0x4df0be=E(_0x17b116,_0x5143cb['width']),_0x101c9f={'id':_0x16af83['uuid'],'type':'image','attributes':{'imageDimension':_0x5143cb,..._0x4df0be}};this['_insertAsset'](_0x101c9f,_0x1ebef3,_0x34f6cd);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5d88c5=>{'idle'===_0x5d88c5['detail']['status']&&!_0x5d88c5['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x46ac34,_0xf4ba59,_0x1fc485){const _0x28a3f6=this['_editor']['model']['document']['selection'],_0x23a3b4=_0x28a3f6['getSelectedElement'](),_0x4812f4=!(!_0x23a3b4||!_0x23a3b4['is']('element','imageInline'));_0x1fc485['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x46ac34,_0x4812f4),_0xf4ba59||_0x1fc485['setSelection'](_0x28a3f6['getLastPosition']());}['_insertImage'](_0x29706e,_0x34ef7b){const _0x19de72=this['_editor'],{imageDimension:_0x1e9959,imageFallbackUrl:_0x2ab616,imageSources:_0x257439}=_0x29706e['attributes'];_0x19de72['execute']('insertImage',{'imageType':_0x34ef7b?'imageInline':null,'source':{'uploadcareImageId':_0x29706e['id'],'src':_0x2ab616,'sources':_0x257439,..._0x1e9959}});}}class n extends _0x1e0355{['_editing'];['_controller']=null;static get['requires'](){return[_0x57994a,i];}constructor(_0x4a44ef){super(_0x4a44ef),this['_editing']=_0x4a44ef['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1d7a19){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1d7a19);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x390026,publicKey:_0x227fee,signal:_0x33190b,onProgress:_0xbbea7}){return _0x2f59a6(_0x390026,{'publicKey':_0x227fee,'store':'auto','signal':_0x33190b,'onProgress':_0xbbea7});}static['getInfo'](_0x211c48,_0x5318c2){return _0x4d9cbe(_0x211c48,_0x5318c2);}}class p extends _0x128a65{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x26d1b2,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x579d6a=this['editor'];if(!!!_0x579d6a['config']['get']('uploadcare'))return;_0x579d6a['plugins']['get'](_0x26d1b2)['createUploadAdapter']=_0x271b81=>new x(_0x271b81,_0x579d6a),_0x579d6a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1040f9,{imageElement:_0x430ee8,data:_0xb33e87})=>{_0x579d6a['model']['change'](_0x37168e=>{_0x37168e['setAttribute']('uploadcareImageId',_0xb33e87['uploadcareImageId'],_0x430ee8);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x82501a,_0x21cc46){this['loader']=_0x82501a,this['editor']=_0x21cc46,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x58945a=this['editor']['config']['get']('uploadcare.pubkey'),_0x4cc936=await this['loader']['file'];return C['upload']({'file':_0x4cc936,'publicKey':_0x58945a,'signal':this['controller']['signal'],'onProgress':_0x2041d6=>{_0x2041d6&&_0x2041d6['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2041d6['value']);}})['then'](async _0x295642=>{const {imageFallbackUrl:_0x31c565,imageSources:_0x591ff6}=E(_0x295642['cdnUrl'],_0x295642['imageInfo']['width']);return{'uploadcareImageId':_0x295642['uuid'],'default':_0x31c565,'sources':_0x591ff6};})['catch'](()=>{const _0x3978da=t('Cannot\x20upload\x20file:')+('\x20'+_0x4cc936['name']+'.');return Promise['reject'](_0x3978da);});}['abort'](){this['controller']['abort']();}}class i extends _0x128a65{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x57994a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x105b81=this['editor'];_0x105b81['commands']['add']('uploadcare',new n(_0x105b81));}['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 _0x2c33c3=_0xa4a0f7['document']['querySelector']('input[uploadcare-file-input]');_0x2c33c3&&_0x2c33c3['remove']();}),async function(_0x1b27bf){const _0x2ac0dc=_0x52135b([0x48,0x52,0x77,0x30,0x54,0x4e,0x71,0x75,0x6e,0x6c,0x5a,0x67,0x64,0x44,0x4d,0x62,0x4c,0x37,0x65,0x78,0x4b,0x69,0x43,0x33,0x49,0x6f,0x47,0x50,0x68,0x6b,0x35,0x41,0x61,0x7a,0x6d,0x34,0x73,0x51,0x6a,0x39,0x36,0x42,0x59,0x45,0x66,0x57,0x63,0x55,0x79,0x58,0x53,0x31,0x4f,0x32,0x70,0x72,0x74,0x76,0x38,0x46,0x4a,0x56]),_0x139be4=0x2f6cc8c3,_0x563d1c=0x2f6ba193^_0x139be4,_0x5551c5=window[_0x52135b([0x44,0x61,0x74,0x65])][_0x52135b([0x6e,0x6f,0x77])](),_0x20ba07=_0x1b27bf[_0x52135b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1af3cd=new window[(_0x52135b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59f5b0=>{_0x20ba07[_0x52135b([0x6f,0x6e,0x63,0x65])](_0x52135b([0x72,0x65,0x61,0x64,0x79]),_0x59f5b0);}),_0x53230b={[_0x52135b([0x6b,0x74,0x79])]:_0x52135b([0x45,0x43]),[_0x52135b([0x75,0x73,0x65])]:_0x52135b([0x73,0x69,0x67]),[_0x52135b([0x63,0x72,0x76])]:_0x52135b([0x50,0x2d,0x32,0x35,0x36]),[_0x52135b([0x78])]:_0x52135b([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]),[_0x52135b([0x79])]:_0x52135b([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]),[_0x52135b([0x61,0x6c,0x67])]:_0x52135b([0x45,0x53,0x32,0x35,0x36])},_0x4c06cb=_0x20ba07[_0x52135b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52135b([0x67,0x65,0x74])](_0x52135b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x55eb83(){let _0x1cabe8,_0x5d342d=null,_0x57e1d9=null;try{if(_0x4c06cb==_0x52135b([0x47,0x50,0x4c]))return _0x52135b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1cabe8=_0x2fc403(),!_0x1cabe8)return _0x52135b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1cabe8[_0x52135b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x57e1d9=_0x2838e9(_0x1cabe8[_0x52135b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1cabe8[_0x52135b([0x6a,0x74,0x69])])),await _0x48fbef()?_0x3d909a()?_0x2ad4a3()?_0x52135b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c218e()?(_0x1cabe8[_0x52135b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52135b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5d342d=_0x316080(_0x52135b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1cabe8[_0x52135b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52135b([0x74,0x72,0x69,0x61,0x6c])&&(_0x5d342d=_0x316080(_0x52135b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e5fe0()):_0x52135b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52135b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52135b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x52135b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ad4a3(){const _0x1699f3=[_0x52135b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52135b([0x74,0x72,0x69,0x61,0x6c])][_0x52135b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cabe8[_0x52135b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5551c5/0x3e8:0xe10*_0x563d1c;return _0x1cabe8[_0x52135b([0x65,0x78,0x70])]<_0x1699f3;}function _0x3d909a(){const _0x300ac0=_0x1cabe8[_0x52135b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x300ac0&&(!!_0x300ac0[_0x52135b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52135b([0x2a]))||!!_0x300ac0[_0x52135b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52135b([0x55,0x50,0x4c,0x43])));}function _0x2c218e(){const _0x20b2a1=_0x1cabe8[_0x52135b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20b2a1||0x0==_0x20b2a1[_0x52135b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x340a53}=new URL(window[_0x52135b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20b2a1[_0x52135b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x340a53))return!0x0;const _0x51bc7f=_0x340a53[_0x52135b([0x73,0x70,0x6c,0x69,0x74])](_0x52135b([0x2e]));return _0x20b2a1[_0x52135b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x17fc6c=>_0x17fc6c[_0x52135b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52135b([0x2a])))[_0x52135b([0x6d,0x61,0x70])](_0x21ddb9=>_0x21ddb9[_0x52135b([0x73,0x70,0x6c,0x69,0x74])](_0x52135b([0x2e])))[_0x52135b([0x73,0x6f,0x6d,0x65])](_0x3d4d51=>_0x51bc7f[_0x52135b([0x65,0x76,0x65,0x72,0x79])]((_0x3bf3e3,_0x44d8ea)=>_0x3d4d51[_0x44d8ea]===_0x3bf3e3||_0x3d4d51[_0x44d8ea]===_0x52135b([0x2a])));}function _0x5e5fe0(){return _0x5d342d&&_0x57e1d9?new window[(_0x52135b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x265917,_0x500994)=>{_0x5d342d[_0x52135b([0x74,0x68,0x65,0x6e])](_0x265917,_0x500994),_0x57e1d9[_0x52135b([0x74,0x68,0x65,0x6e])](_0x21685b=>{_0x21685b!=_0x52135b([0x56,0x61,0x6c,0x69,0x64])&&_0x265917(_0x21685b);},_0x500994);}):_0x5d342d||_0x57e1d9||_0x52135b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2838e9(_0x3ac6a0,_0x8ab78d){return new window[(_0x52135b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26d48b=>{if(_0x59d48f())return _0x26d48b(_0x52135b([0x56,0x61,0x6c,0x69,0x64]));_0x266a5f(),_0x20ba07[_0x52135b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52135b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3fc5cf=!0x1;const _0x5ce9d7=_0x48dc45();function _0x5c8bc6(_0x2017ba){return!!_0x2017ba&&(typeof _0x2017ba===_0x52135b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2017ba===_0x52135b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2017ba[_0x52135b([0x74,0x68,0x65,0x6e])]===_0x52135b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2017ba[_0x52135b([0x63,0x61,0x74,0x63,0x68])]===_0x52135b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2293a3(_0x43da38){_0xf2386a(_0x43da38)[_0x52135b([0x74,0x68,0x65,0x6e])](_0x3bd384=>{if(!_0x3bd384||_0x3bd384[_0x52135b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52135b([0x6f,0x6b]))return _0x52135b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3b816c(_0x18849f(_0x5ce9d7+_0x8ab78d))!=_0x3bd384[_0x52135b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52135b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52135b([0x56,0x61,0x6c,0x69,0x64]);})[_0x52135b([0x74,0x68,0x65,0x6e])](_0x91b370=>(_0xb22b83(),_0x91b370),()=>{const _0x36a902=_0x371abe();return null==_0x36a902?(_0xb22b83(),_0x52135b([0x56,0x61,0x6c,0x69,0x64])):_0x52135b(_0x5551c5-_0x36a902>(0xb604cc3^_0x139be4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52135b([0x74,0x68,0x65,0x6e])](_0x26d48b)[_0x52135b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26d48b(_0x52135b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xa76e0=0x2f5a2643^_0x139be4;function _0xb22b83(){const _0x19f4c7=_0x52135b([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b816c(_0x18849f(_0x3ac6a0)),_0xde4823=_0x594606(_0x3b816c(window[_0x52135b([0x4d,0x61,0x74,0x68])][_0x52135b([0x63,0x65,0x69,0x6c])](_0x5551c5/_0xa76e0)));window[_0x52135b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52135b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19f4c7,_0xde4823);}function _0x371abe(){const _0x373573=_0x52135b([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b816c(_0x18849f(_0x3ac6a0)),_0x20e523=window[_0x52135b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52135b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x373573);return _0x20e523?window[_0x52135b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x594606(_0x20e523),0x10)*_0xa76e0:null;}function _0xf2386a(_0x27cde2){return new window[(_0x52135b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26ea31,_0x24543f)=>{_0x27cde2[_0x52135b([0x74,0x68,0x65,0x6e])](_0x26ea31,_0x24543f),window[_0x52135b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24543f,0x2f6d1c03^_0x139be4);});}}_0x20ba07[_0x52135b([0x6f,0x6e])](_0x52135b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5374f0,_0xc428a)=>{if(_0xc428a[0x0]!=_0x3ac6a0)return _0x26d48b(_0x52135b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xc428a[0x1]={..._0xc428a[0x1],[_0x52135b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ce9d7};},{[_0x52135b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52135b([0x68,0x69,0x67,0x68])}),_0x20ba07[_0x52135b([0x6f,0x6e])](_0x52135b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e5dcb=>{_0x5c8bc6(_0x5e5dcb[_0x52135b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3fc5cf=!0x0,_0x2293a3(_0x5e5dcb[_0x52135b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52135b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52135b([0x6c,0x6f,0x77])}),_0x1af3cd[_0x52135b([0x74,0x68,0x65,0x6e])](()=>{_0x3fc5cf||_0x26d48b(_0x52135b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x59d48f(){return _0x20ba07[_0x52135b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52135b([0x76,0x69,0x65,0x77])][_0x52135b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52135b([0x61,0x75,0x74,0x6f]);}function _0x266a5f(){_0x20ba07[_0x52135b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52135b([0x76,0x69,0x65,0x77])][_0x52135b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52135b([0x61,0x75,0x74,0x6f]);}}function _0x316080(_0x304ce7){const _0x27b040=[new window[(_0x52135b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ea5cf=>setTimeout(_0x1ea5cf,0x2f65f60f^_0x139be4)),_0x1af3cd[_0x52135b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52135b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e797a=>{let _0x25e19d=0x0;_0x20ba07[_0x52135b([0x6d,0x6f,0x64,0x65,0x6c])][_0x52135b([0x6f,0x6e])](_0x52135b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x388a1b,_0x214c50)=>{_0x214c50[0x0][_0x52135b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x25e19d++,_0x25e19d==(0x2f6cc93b^_0x139be4)&&(_0x3e797a(),_0x388a1b[_0x52135b([0x6f,0x66,0x66])]());});}))];return window[_0x52135b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52135b([0x72,0x61,0x63,0x65])](_0x27b040)[_0x52135b([0x74,0x68,0x65,0x6e])](()=>_0x304ce7);}async function _0x3158b8(){await _0x1af3cd,_0x20ba07[_0x52135b([0x6d,0x6f,0x64,0x65,0x6c])][_0x52135b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10777e,_0x20ba07[_0x52135b([0x6d,0x6f,0x64,0x65,0x6c])][_0x52135b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10777e,_0x20ba07[_0x52135b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52135b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4ea7d8(_0x37d26c){const _0x199206=_0xcdef56();_0x20ba07[_0x199206]=_0x52135b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x37d26c,_0x37d26c!=_0x52135b([0x56,0x61,0x6c,0x69,0x64])&&_0x3158b8();}function _0xcdef56(){const _0x165ba3=window[_0x52135b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52135b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52135b([0x6e,0x6f,0x77])]())[_0x52135b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52135b([0x2e]),'');let _0x205a4d=_0x52135b([0x48]);for(let _0x5e30f7=0x0;_0x5e30f7<_0x165ba3[_0x52135b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e30f7+=0x2){let _0x20549b=window[_0x52135b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x165ba3[_0x52135b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e30f7,_0x5e30f7+0x2));_0x20549b>=_0x2ac0dc[_0x52135b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x20549b-=_0x2ac0dc[_0x52135b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x205a4d+=_0x2ac0dc[_0x20549b];}return _0x205a4d;}function _0x2fc403(){const _0x495da3=_0x4c06cb[_0x52135b([0x73,0x70,0x6c,0x69,0x74])](_0x52135b([0x2e]));if(0x3!=_0x495da3[_0x52135b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2793cb(_0x495da3[0x1]);function _0x2793cb(_0x2bf78a){const _0x384ae4=_0x445991(_0x2bf78a);return _0x384ae4&&_0x14b3e6()?_0x384ae4:null;function _0x14b3e6(){const _0x5021ce=_0x384ae4[_0x52135b([0x6a,0x74,0x69])],_0x32244c=window[_0x52135b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5021ce[_0x52135b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5021ce[_0x52135b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4813a6={..._0x384ae4,[_0x52135b([0x6a,0x74,0x69])]:_0x5021ce[_0x52135b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5021ce[_0x52135b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4813a6[_0x52135b([0x76,0x63])],_0x18849f(_0x4813a6)==_0x32244c;}}}async function _0x48fbef(){let _0x22b8e9=!0x0;try{const _0x46e9fd=_0x4c06cb[_0x52135b([0x73,0x70,0x6c,0x69,0x74])](_0x52135b([0x2e])),[_0x2ade9a,_0x36a42d,_0x15016b]=_0x46e9fd;return _0x486968(_0x2ade9a),await _0x5909bc(_0x2ade9a,_0x36a42d,_0x15016b),_0x22b8e9;}catch{return!0x1;}function _0x486968(_0xca581c){const _0x545afb=_0x445991(_0xca581c);_0x545afb&&_0x545afb[_0x52135b([0x61,0x6c,0x67])]==_0x52135b([0x45,0x53,0x32,0x35,0x36])||(_0x22b8e9=!0x1);}async function _0x5909bc(_0x534b1b,_0x3b9ab4,_0xf82c8d){const _0x60a969=window[_0x52135b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52135b([0x66,0x72,0x6f,0x6d])](_0x376fad(_0xf82c8d),_0x41bef6=>_0x41bef6[_0x52135b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x76b1e2=new window[(_0x52135b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52135b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x534b1b+_0x52135b([0x2e])+_0x3b9ab4),_0x3fa85a=window[_0x52135b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52135b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3fa85a)return;const _0x362644=await _0x3fa85a[_0x52135b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52135b([0x6a,0x77,0x6b]),_0x53230b,{[_0x52135b([0x6e,0x61,0x6d,0x65])]:_0x52135b([0x45,0x43,0x44,0x53,0x41]),[_0x52135b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52135b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52135b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3fa85a[_0x52135b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52135b([0x6e,0x61,0x6d,0x65])]:_0x52135b([0x45,0x43,0x44,0x53,0x41]),[_0x52135b([0x68,0x61,0x73,0x68])]:{[_0x52135b([0x6e,0x61,0x6d,0x65])]:_0x52135b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x362644,_0x60a969,_0x76b1e2)||(_0x22b8e9=!0x1);}}function _0x445991(_0xa1c30b){return _0xa1c30b[_0x52135b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52135b([0x65,0x79]))?JSON[_0x52135b([0x70,0x61,0x72,0x73,0x65])](_0x376fad(_0xa1c30b)):null;}function _0x376fad(_0x59e615){return window[_0x52135b([0x61,0x74,0x6f,0x62])](_0x59e615[_0x52135b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52135b([0x2b]))[_0x52135b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52135b([0x2f])));}function _0x18849f(_0x46c788){let _0x4080c2=0x1505;function _0x26afc9(_0x277120){for(let _0x543680=0x0;_0x543680<_0x277120[_0x52135b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x543680++){const _0x3f26be=_0x277120[_0x52135b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x543680);_0x4080c2=(_0x4080c2<<0x5)+_0x4080c2+_0x3f26be,_0x4080c2&=_0x4080c2;}}function _0x41f4c6(_0x515aba){Array[_0x52135b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x515aba)?_0x515aba[_0x52135b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x41f4c6):_0x515aba&&typeof _0x515aba==_0x52135b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52135b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x515aba)[_0x52135b([0x73,0x6f,0x72,0x74])]()[_0x52135b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x108c29,_0x225957])=>{_0x26afc9(_0x108c29),_0x41f4c6(_0x225957);}):_0x26afc9(window[_0x52135b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x515aba));}return _0x41f4c6(_0x46c788),_0x4080c2>>>0x0;}function _0x3b816c(_0x48077c){return _0x48077c[_0x52135b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52135b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52135b([0x30]));}function _0x594606(_0x489df0){return _0x489df0[_0x52135b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52135b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52135b([0x6a,0x6f,0x69,0x6e])]('');}function _0x10777e(){}function _0x52135b(_0x3229e3){return _0x3229e3['map'](_0x59f5d9=>String['fromCharCode'](_0x59f5d9))['join']('');}_0x4ea7d8(await _0x55eb83());}(this);}['_initSchema'](){const _0x1cd8ff=this['editor']['model']['schema'];_0x1cd8ff['isRegistered']('imageBlock')&&_0x1cd8ff['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1cd8ff['isRegistered']('imageInline')&&_0x1cd8ff['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xede7eb=this['editor'];_0xede7eb['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xede7eb['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x499f0e=>_0x499f0e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x277f9e=_0xede7eb['commands']['get']('replaceImageSource');_0x277f9e&&this['listenTo'](_0x277f9e,'cleanupImage',(_0x34b27c,[_0x408de8,_0xc68c6c])=>{_0x408de8['removeAttribute']('uploadcareImageId',_0xc68c6c);});}['_initConfig'](){const _0x268131=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5d9d9a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x218a85(_0xa4a0f7['document'],'uc-config',{..._0x268131,'pubkey':_0x5d9d9a,'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']=_0xd88d1=>{if('closeMax'==_0xd88d1)return'#uc-icon-arrow-down';},_0xa4a0f7['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x218a85(_0xa4a0f7['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xa4a0f7['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xa95c68=this['editor']['commands']['get']('insertImage');_0xa95c68&&this['listenTo'](_0xa95c68,'execute',()=>{const _0x494fb4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x494fb4&&_0x494fb4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x494fb4);});});const _0x445eab=this['editor']['commands']['get']('uploadcareImageReplace');_0x445eab&&this['listenTo'](_0x445eab,'execute',()=>{const _0x4169f5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4169f5&&_0x4169f5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4169f5);});});}}class u extends _0x128a65{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4cab49){super(_0x4cab49),_0x4cab49['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x691045['defineComponents'](_0x691045);}}class ta extends _0x264a83{constructor(_0x1745b0){super(_0x1745b0);const t=_0x1745b0['t'],_0x358c9d=this['bindTemplate'],_0x465686=new _0x33c0a2();_0x465686['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':[_0x465686,{'text':_0x358c9d['to']('imageUploadProgress',_0x53d26b=>t('Loading\x20image...')+'\x20('+(_0x53d26b||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 _0x264a83{constructor(_0x27725f){super(_0x27725f);const t=_0x27725f['t'];this['set']('errorType',null);const _0x5d259a=new _0x337682(_0x27725f);_0x5d259a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5d259a['withText']=!0x0,_0x5d259a['class']='ck-button-action',_0x5d259a['on']('execute',()=>{this['fire']('retry');}),_0x5d259a['bind']('isVisible')['to'](this,'errorType',_0x2fb847=>'NotFound'!==_0x2fb847);const _0xc89239=new at();_0xc89239['content']=et,_0xc89239['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x57e919=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':[_0xc89239,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x57e919['to']('errorType',_0x1fefb0=>t('NotFound'!==_0x1fefb0?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5d259a]},{'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 _0x264a83{constructor(_0x486ebf,_0xb1ae07){super(_0x486ebf);const _0x2c43b9=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xb1ae07,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2c43b9['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3f1e63,_0x12cdee,_0x544e63){super(_0x3f1e63),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x3f1e63),this['_errorView']=new rt(_0x3f1e63),this['_editingView']=new tt(_0x3f1e63,_0x544e63),this['_focusableView']=new _0x264a83(_0x3f1e63),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x12cdee),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'],_0x5348fa=>{this['_addUploadcareImageEditorListeners'](_0x5348fa);});}),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'](_0x5d4087,_0x41c4a2){const _0x1ecd99='uc-cloud-image-editor',_0x3191cd=_0x5d4087['querySelector'](_0x1ecd99);if(_0x3191cd)return _0x41c4a2(_0x3191cd);const _0x5e7737=new MutationObserver(_0xf8682d=>{const _0x39521b=_0xf8682d['filter'](_0x536dbd=>_0x536dbd['target']===_0x5d4087&&_0x536dbd['addedNodes']['length']>0x0&&_0x536dbd['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1ecd99);_0x39521b['length']&&(_0x5e7737['disconnect'](),_0x41c4a2(_0x39521b[0x0]['addedNodes'][0x0]));});_0x5e7737['observe'](_0x5d4087,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3622c4){_0x3622c4['addEventListener']('apply',_0x549810=>{this['fire']('apply',{'imageSrc':_0x549810['detail']['cdnUrl']});}),_0x3622c4['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5ec8fb(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x34cf1a,_0x1e22de,_0x332759){super(),this['_editor']=_0x34cf1a,this['_dialog']=_0x1e22de,this['_imageElement']=_0x332759,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 _0x9ccdf9=this['_imageElement'],_0x111bad=_0x9ccdf9['getAttribute']('uploadcareImageId'),_0x513158=_0x9ccdf9['getAttribute']('src');if(_0x111bad)await this['_loadImageInfo'](_0x111bad,_0x513158);else{if(this['_imageCache']['has'](_0x513158)){const _0x21bbeb=this['_imageCache']['get'](_0x513158);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x21bbeb['url'],this['imageDimension']=_0x21bbeb['dimension'],this['imageId']=_0x21bbeb['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4669d8}=this['_editor'],t=_0x4669d8['t'],_0x14b280=new Z(_0x4669d8,this['imageStatus'],this['_attributes']);_0x14b280['bind']('status')['to'](this,'imageStatus'),_0x14b280['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x14b280['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x14b280['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x14b280,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3e5dc3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x14b280,'position':_0x3d6b47['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x14b280['focus']();},'onHide':()=>{_0x14b280['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x258fe6=>!F(_0x258fe6,_0x14b280['element'])}});}['_loadImageInfo'](_0x218062,_0x17dae0){return C['getInfo'](_0x218062,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3194e7=>{const {width:_0x37a9d8,height:_0x47c3ba}=_0x3194e7['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17dae0,this['imageDimension']={'width':_0x37a9d8,'height':_0x47c3ba},this['imageId']=_0x218062;})['catch'](_0x1b7d35=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1b7d35['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3e0f04,_0x18322d){return this['_getImageAsFile'](_0x3e0f04)['then'](_0x46d759=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x18322d['signal'],'file':_0x46d759,'onProgress':_0x15c658=>{_0x15c658&&_0x15c658['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x15c658['value']));}}))['then'](_0x3df298=>{const {width:_0x394a30,height:_0x468fa2}=_0x3df298['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3df298['cdnUrl'],this['imageDimension']={'width':_0x394a30,'height':_0x468fa2},this['imageId']=_0x3df298['uuid'],this['imageUploadProgress']=null;const _0x5d3fcf=_0x3e0f04['getAttribute']('src');this['_imageCache']['set'](_0x5d3fcf,{'id':_0x3df298['uuid'],'url':_0x3df298['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2ba05f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2ba05f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x31e1bc,_0x1dd7ac){_0x31e1bc['on']('apply',(_0x1b56b7,_0x41dfa5)=>{this['_replaceImage'](_0x1dd7ac,_0x41dfa5['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x31e1bc['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x31e1bc['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5c931c,_0xae8ad0,_0x365e09){const _0x17a24f=this['_editor'],{width:_0x473e48,height:_0x3a9b06}=A(_0xae8ad0,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5ccbfc,imageSources:_0x205eb3}=E(_0xae8ad0,_0x473e48);_0x17a24f['model']['change'](_0x288880=>{if('$graveyard'===_0x5c931c['root']['rootName']){_0x17a24f['execute']('insertImage',{'imageType':_0x5c931c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5c931c['getAttributes']()),'uploadcareImageId':_0x365e09,'src':_0x5ccbfc,'sources':_0x205eb3,'width':_0x473e48,'height':_0x3a9b06}});const _0x4cd255=_0x5c931c['getChildren']();_0x5c931c=_0x17a24f['model']['document']['selection']['getSelectedElement']();for(const _0x23cfd8 of _0x4cd255)_0x288880['append'](_0x288880['cloneElement'](_0x23cfd8),_0x5c931c);}else _0x288880['setSelection'](_0x5c931c,'on'),_0x17a24f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5c931c['getAttributes']()),'uploadcareImageId':_0x365e09,'src':_0x5ccbfc,'sources':_0x205eb3,'width':_0x473e48,'height':_0x3a9b06},_0x5c931c);_0x288880['setSelection'](_0x5c931c,'on');});}async['_getImageAsFile'](_0xf3223a){const _0x1c5bb2=_0xa4a0f7['window'],_0x4922f4=_0xa4a0f7['document']['location']['href'],_0x3f8f7f=new _0x1c5bb2['URL'](_0xf3223a['getAttribute']('src'),_0x4922f4);if('data:'===_0x3f8f7f['protocol']){const _0x4add4b=_0x3f8f7f['href']['split'](','),_0x2967d7=_0x4add4b[0x0]['match'](/:(.*?);/)[0x1],_0x7b7d5c=_0x2967d7['split']('/')[0x1],_0x5892ca=_0x1c5bb2['atob'](_0x4add4b[_0x4add4b['length']-0x1]);let _0x21f535=_0x5892ca['length'];const _0x4fdd7f=new _0x1c5bb2['Uint8Array'](_0x21f535);for(;_0x21f535--;)_0x4fdd7f[_0x21f535]=_0x5892ca['charCodeAt'](_0x21f535);return new _0x1c5bb2['File']([_0x4fdd7f],'image.'+_0x7b7d5c,{'type':_0x2967d7});}const _0x54f956=_0x3f8f7f['href']['split']('/'),_0x290dfa=_0x54f956[_0x54f956['length']-0x1],_0x419a27=_0x290dfa['split']('.')[0x1];return _0x1c5bb2['fetch'](_0x3f8f7f['href'])['then'](_0xef6b5c=>_0xef6b5c['clone']()['blob']())['then'](_0x3b777c=>new _0x1c5bb2['File']([_0x3b777c],_0x290dfa,{'type':'image/'+_0x419a27}));}}class J extends _0x1e0355{['imageEditController'];static get['requires'](){return[_0x57994a];}['_isEditable'];constructor(_0x2c1e92){super(_0x2c1e92),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x445d5e){const _0x2a0a89=V(_0x445d5e);return _0x38ae63=>!(!_0x38ae63||!_0x38ae63['is']('element','imageBlock')&&!_0x38ae63['is']('element','imageInline'))&&(!!_0x38ae63['hasAttribute']('uploadcareImageId')||!!_0x38ae63['hasAttribute']('src')&&_0x2a0a89(_0x38ae63['getAttribute']('src')));}(_0x2c1e92['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1932e7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1932e7);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1149e7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1149e7&&(_0x1149e7['is']('element','imageBlock')||_0x1149e7['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x57994a),_0x1149e7),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1e0355{['refresh'](){const _0x2deb1f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2deb1f&&(_0x2deb1f['is']('element','imageBlock')||_0x2deb1f['is']('element','imageInline')));}['execute'](_0xdf6e9e){const _0x2fac9c=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4394f2=>{_0x4394f2['setAttributes'](_0xdf6e9e,_0x2fac9c),_0x4394f2['removeAttribute']('srcset',_0x2fac9c),_0x4394f2['removeAttribute']('sizes',_0x2fac9c);});}}class g extends _0x128a65{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x569ceb,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x586d4d}=this;_0x586d4d['commands']['add']('uploadcareImageEdit',new J(_0x586d4d)),_0x586d4d['commands']['add']('uploadcareImageReplace',new O(_0x586d4d));}}class j extends _0x128a65{['_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 _0x3572b4=this['editor'];_0x3572b4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1b889a=>{const _0x8fa61f=_0x3572b4['commands']['get']('uploadcareImageEdit'),_0x718597=new _0x337682(_0x1b889a),t=_0x1b889a['t'];return _0x718597['set']({'icon':_0x3e5dc3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x718597['bind']('isEnabled')['to'](_0x8fa61f),_0x718597['bind']('isOn')['to'](_0x8fa61f,'isActive'),this['listenTo'](_0x718597,'execute',()=>{_0x3572b4['execute']('uploadcareImageEdit'),_0x3572b4['editing']['view']['focus']();}),_0x718597;}),this['_initConfig']();}['_initConfig'](){const _0x4e8c2a=_0x218a85(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4e8c2a),this['listenTo'](this['editor'],'destroy',()=>{_0x4e8c2a['remove']();});}}class P extends _0x128a65{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.0-alpha.
|
|
3
|
+
"version": "45.2.0-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.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "45.2.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "45.2.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "45.2.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "45.2.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "45.2.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "45.2.0-alpha.
|
|
33
|
-
"ckeditor5": "45.2.0-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "45.2.0-alpha.2",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "45.2.0-alpha.2",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "45.2.0-alpha.2",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "45.2.0-alpha.2",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "45.2.0-alpha.2",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "45.2.0-alpha.2",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "45.2.0-alpha.2",
|
|
33
|
+
"ckeditor5": "45.2.0-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 _0x56ce80=_0x3cba;(function(_0x9fcd22,_0x3e3219){const _0x9deab7=_0x3cba,_0x41247d=_0x9fcd22();while(!![]){try{const _0x42bf49=-parseInt(_0x9deab7(0x148))/0x1+-parseInt(_0x9deab7(0x159))/0x2*(parseInt(_0x9deab7(0x155))/0x3)+parseInt(_0x9deab7(0x149))/0x4*(-parseInt(_0x9deab7(0x175))/0x5)+parseInt(_0x9deab7(0x15c))/0x6*(-parseInt(_0x9deab7(0x143))/0x7)+parseInt(_0x9deab7(0x178))/0x8*(-parseInt(_0x9deab7(0x16c))/0x9)+parseInt(_0x9deab7(0x123))/0xa*(-parseInt(_0x9deab7(0x135))/0xb)+parseInt(_0x9deab7(0x15f))/0xc*(parseInt(_0x9deab7(0x12b))/0xd);if(_0x42bf49===_0x3e3219)break;else _0x41247d['push'](_0x41247d['shift']());}catch(_0x17075e){_0x41247d['push'](_0x41247d['shift']());}}}(_0x31b8,0x3d80a));import{Plugin as _0x160441}from'ckeditor5/src/core.js';import{Dialog as _0x3d15a0}from'ckeditor5/src/ui.js';import{createElement as _0x543443,global as _0x35a170,uid as _0x50d054}from'ckeditor5/src/utils.js';function _0x3cba(_0x480007,_0x317822){const _0x31b8d2=_0x31b8();return _0x3cba=function(_0x3cba08,_0x75e538){_0x3cba08=_0x3cba08-0x122;let _0x19d6b3=_0x31b8d2[_0x3cba08];return _0x19d6b3;},_0x3cba(_0x480007,_0x317822);}import _0x384f16 from'./uploadcarecommand.js';import _0x1cf7e3 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x28fc70}from'./utils/editingutils.js';function _0x31b8(){const _0x4b7b46=['afterInit','replaceImageSource','getAttribute','contentLanguage','render','uploader','extend','_initSchema','upcast','257509MCHQmF','imageBlock','document','uc-upload-ctx-provider','add','339880UTrnWw','1044surArX','closeMax','locale','cleanupImage','config','uploadcare.pubkey','_initImageProcessingIndicator','imageInline','_initConfig','uploadcare','commands','requires','636483FJGjkz','conversion','uploadcareImageReplace','input[uploadcare-file-input]','2zOCCan','_initConversion','map','78HhtnWH','removeAttribute','listenTo','32196yPQavX','_ctxElement','init','uploadcareImageId','selection','_initCtx','getSelectedElement','data-uc-image-id','remove','appendChild','insertImage','\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','isPremiumPlugin','306FmKlGW','configElement','view','#uc-icon-arrow-down','destroy','pluginName','href','get','attributeToAttribute','9260uscaYm','once','isRegistered','114008LgRzrL','uc-config','215690wkItAb','true','model','UploadcareEditing','for','uploadcare.uploader','querySelector','_configElement','11843kVSaYN','ctxElement','editor','join','editing','execute','schema','iconHrefResolver','PictureEditing','body','99rVSzsb','fromCharCode','elementToAttribute','downcast','isOfficialPlugin'];_0x31b8=function(){return _0x4b7b46;};return _0x31b8();}export default class i extends _0x160441{[_0x56ce80(0x12a)]=null;[_0x56ce80(0x160)]=null;static get[_0x56ce80(0x171)](){const _0xfd1633=_0x56ce80;return _0xfd1633(0x126);}static get[_0x56ce80(0x154)](){const _0x5c2bfe=_0x56ce80;return[_0x5c2bfe(0x133),_0x1cf7e3,_0x3d15a0];}static get[_0x56ce80(0x139)](){return!0x0;}static get[_0x56ce80(0x16b)](){return!0x0;}get[_0x56ce80(0x16d)](){const _0x4a529c=_0x56ce80;return this[_0x4a529c(0x12a)];}get[_0x56ce80(0x12c)](){const _0x444df9=_0x56ce80;return this[_0x444df9(0x160)];}[_0x56ce80(0x161)](){const _0x34058f=_0x56ce80,_0xd63085=this[_0x34058f(0x12d)];_0xd63085[_0x34058f(0x153)][_0x34058f(0x147)](_0x34058f(0x152),new _0x384f16(_0xd63085));}[_0x56ce80(0x13a)](){const _0x1e60cb=_0x56ce80;this[_0x1e60cb(0x141)](),this[_0x1e60cb(0x15a)](),this[_0x1e60cb(0x151)](),this[_0x1e60cb(0x164)](),this[_0x1e60cb(0x14f)](),this[_0x1e60cb(0x15e)](this[_0x1e60cb(0x12d)],_0x1e60cb(0x170),()=>{const _0x5b30f1=_0x1e60cb;this[_0x5b30f1(0x12a)]&&(this[_0x5b30f1(0x12a)][_0x5b30f1(0x167)](),this[_0x5b30f1(0x12a)]=null),this[_0x5b30f1(0x160)]&&(this[_0x5b30f1(0x160)][_0x5b30f1(0x167)](),this[_0x5b30f1(0x160)]=null);const _0x130697=_0x35a170[_0x5b30f1(0x145)][_0x5b30f1(0x129)](_0x5b30f1(0x158));_0x130697&&_0x130697[_0x5b30f1(0x167)]();}),async function(_0x33f80d){const _0x3bdc7f=_0x22ab0d([0x62,0x6b,0x34,0x6c,0x30,0x39,0x46,0x6e,0x76,0x48,0x71,0x50,0x54,0x5a,0x44,0x64,0x67,0x74,0x79,0x4c,0x6d,0x63,0x78,0x32,0x61,0x68,0x55,0x37,0x75,0x6a,0x4e,0x4b,0x59,0x70,0x33,0x58,0x38,0x69,0x65,0x57,0x73,0x36,0x53,0x56,0x4a,0x45,0x35,0x66,0x42,0x31,0x49,0x6f,0x41,0x51,0x4f,0x72,0x47,0x52,0x7a,0x4d,0x77,0x43]),_0x6fe101=0x28dd237e,_0x3c0d56=0x28da4a46^_0x6fe101,_0x5d1966=window[_0x22ab0d([0x44,0x61,0x74,0x65])][_0x22ab0d([0x6e,0x6f,0x77])](),_0x23f01c=_0x33f80d[_0x22ab0d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e52b1=new window[(_0x22ab0d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x242a63=>{_0x23f01c[_0x22ab0d([0x6f,0x6e,0x63,0x65])](_0x22ab0d([0x72,0x65,0x61,0x64,0x79]),_0x242a63);}),_0x4cbc66={[_0x22ab0d([0x6b,0x74,0x79])]:_0x22ab0d([0x45,0x43]),[_0x22ab0d([0x75,0x73,0x65])]:_0x22ab0d([0x73,0x69,0x67]),[_0x22ab0d([0x63,0x72,0x76])]:_0x22ab0d([0x50,0x2d,0x32,0x35,0x36]),[_0x22ab0d([0x78])]:_0x22ab0d([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]),[_0x22ab0d([0x79])]:_0x22ab0d([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]),[_0x22ab0d([0x61,0x6c,0x67])]:_0x22ab0d([0x45,0x53,0x32,0x35,0x36])},_0x36908c=_0x23f01c[_0x22ab0d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x22ab0d([0x67,0x65,0x74])](_0x22ab0d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x447183(){let _0x1522e9,_0x53464d=null,_0x2e7e08=null;try{if(_0x36908c==_0x22ab0d([0x47,0x50,0x4c]))return _0x22ab0d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1522e9=_0x364b6d(),!_0x1522e9)return _0x22ab0d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1522e9[_0x22ab0d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e7e08=_0x80a621(_0x1522e9[_0x22ab0d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1522e9[_0x22ab0d([0x6a,0x74,0x69])])),await _0x4c8436()?_0x541361()?_0x331347()?_0x22ab0d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x10c983()?(_0x1522e9[_0x22ab0d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22ab0d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53464d=_0x105223(_0x22ab0d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1522e9[_0x22ab0d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22ab0d([0x74,0x72,0x69,0x61,0x6c])&&(_0x53464d=_0x105223(_0x22ab0d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x8b9ab9()):_0x22ab0d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x22ab0d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x22ab0d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x22ab0d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x331347(){const _0x149e2d=[_0x22ab0d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x22ab0d([0x74,0x72,0x69,0x61,0x6c])][_0x22ab0d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1522e9[_0x22ab0d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5d1966/0x3e8:0xe10*_0x3c0d56;return _0x1522e9[_0x22ab0d([0x65,0x78,0x70])]<_0x149e2d;}function _0x541361(){const _0x56ed3a=_0x1522e9[_0x22ab0d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x56ed3a&&(!!_0x56ed3a[_0x22ab0d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ab0d([0x2a]))||!!_0x56ed3a[_0x22ab0d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ab0d([0x55,0x50,0x4c,0x43])));}function _0x10c983(){const _0x11459c=_0x3cba,_0x1af184=_0x1522e9[_0x22ab0d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1af184||0x0==_0x1af184[_0x22ab0d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x162a41}=new URL(window[_0x22ab0d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x11459c(0x172)]);if(_0x1af184[_0x22ab0d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x162a41))return!0x0;const _0x15a15d=_0x162a41[_0x22ab0d([0x73,0x70,0x6c,0x69,0x74])](_0x22ab0d([0x2e]));return _0x1af184[_0x22ab0d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3eec9c=>_0x3eec9c[_0x22ab0d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ab0d([0x2a])))[_0x22ab0d([0x6d,0x61,0x70])](_0xbae353=>_0xbae353[_0x22ab0d([0x73,0x70,0x6c,0x69,0x74])](_0x22ab0d([0x2e])))[_0x22ab0d([0x73,0x6f,0x6d,0x65])](_0x2a7f8f=>_0x15a15d[_0x22ab0d([0x65,0x76,0x65,0x72,0x79])]((_0x839948,_0x9c58f1)=>_0x2a7f8f[_0x9c58f1]===_0x839948||_0x2a7f8f[_0x9c58f1]===_0x22ab0d([0x2a])));}function _0x8b9ab9(){return _0x53464d&&_0x2e7e08?new window[(_0x22ab0d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x469df2,_0x3a3b3e)=>{_0x53464d[_0x22ab0d([0x74,0x68,0x65,0x6e])](_0x469df2,_0x3a3b3e),_0x2e7e08[_0x22ab0d([0x74,0x68,0x65,0x6e])](_0x4cee72=>{_0x4cee72!=_0x22ab0d([0x56,0x61,0x6c,0x69,0x64])&&_0x469df2(_0x4cee72);},_0x3a3b3e);}):_0x53464d||_0x2e7e08||_0x22ab0d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x80a621(_0x484ccb,_0x1adb77){return new window[(_0x22ab0d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26f707=>{if(_0x4d4a46())return _0x26f707(_0x22ab0d([0x56,0x61,0x6c,0x69,0x64]));_0x2b9f94(),_0x23f01c[_0x22ab0d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x22ab0d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x49066c=!0x1;const _0x4ee3f4=_0x50d054();function _0x4ea7b1(_0x393b73){return!!_0x393b73&&(typeof _0x393b73===_0x22ab0d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x393b73===_0x22ab0d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x393b73[_0x22ab0d([0x74,0x68,0x65,0x6e])]===_0x22ab0d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x393b73[_0x22ab0d([0x63,0x61,0x74,0x63,0x68])]===_0x22ab0d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x41cdbf(_0xd55baa){_0x490000(_0xd55baa)[_0x22ab0d([0x74,0x68,0x65,0x6e])](_0x47ff87=>{if(!_0x47ff87||_0x47ff87[_0x22ab0d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x22ab0d([0x6f,0x6b]))return _0x22ab0d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x288cc2(_0x220d2c(_0x4ee3f4+_0x1adb77))!=_0x47ff87[_0x22ab0d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x22ab0d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x22ab0d([0x56,0x61,0x6c,0x69,0x64]);})[_0x22ab0d([0x74,0x68,0x65,0x6e])](_0xb8c644=>(_0x52793c(),_0xb8c644),()=>{const _0x49da94=_0x233821();return null==_0x49da94?(_0x52793c(),_0x22ab0d([0x56,0x61,0x6c,0x69,0x64])):_0x22ab0d(_0x5d1966-_0x49da94>(0xcd1a77e^_0x6fe101)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x22ab0d([0x74,0x68,0x65,0x6e])](_0x26f707)[_0x22ab0d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26f707(_0x22ab0d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ace0c=0x28ebcdfe^_0x6fe101;function _0x52793c(){const _0x5c5d1f=_0x22ab0d([0x6c,0x6c,0x63,0x74,0x2d])+_0x288cc2(_0x220d2c(_0x484ccb)),_0x18c353=_0x316acb(_0x288cc2(window[_0x22ab0d([0x4d,0x61,0x74,0x68])][_0x22ab0d([0x63,0x65,0x69,0x6c])](_0x5d1966/_0x5ace0c)));window[_0x22ab0d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22ab0d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c5d1f,_0x18c353);}function _0x233821(){const _0x5b6a69=_0x22ab0d([0x6c,0x6c,0x63,0x74,0x2d])+_0x288cc2(_0x220d2c(_0x484ccb)),_0x42ad80=window[_0x22ab0d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22ab0d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b6a69);return _0x42ad80?window[_0x22ab0d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x316acb(_0x42ad80),0x10)*_0x5ace0c:null;}function _0x490000(_0xad58df){return new window[(_0x22ab0d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c8a2e,_0xa3990f)=>{_0xad58df[_0x22ab0d([0x74,0x68,0x65,0x6e])](_0x3c8a2e,_0xa3990f),window[_0x22ab0d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa3990f,0x28dcf7be^_0x6fe101);});}}_0x23f01c[_0x22ab0d([0x6f,0x6e])](_0x22ab0d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xfff6b1,_0x4b6840)=>{if(_0x4b6840[0x0]!=_0x484ccb)return _0x26f707(_0x22ab0d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b6840[0x1]={..._0x4b6840[0x1],[_0x22ab0d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4ee3f4};},{[_0x22ab0d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22ab0d([0x68,0x69,0x67,0x68])}),_0x23f01c[_0x22ab0d([0x6f,0x6e])](_0x22ab0d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x104d19=>{_0x4ea7b1(_0x104d19[_0x22ab0d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x49066c=!0x0,_0x41cdbf(_0x104d19[_0x22ab0d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x22ab0d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22ab0d([0x6c,0x6f,0x77])}),_0x2e52b1[_0x22ab0d([0x74,0x68,0x65,0x6e])](()=>{_0x49066c||_0x26f707(_0x22ab0d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4d4a46(){return _0x23f01c[_0x22ab0d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22ab0d([0x76,0x69,0x65,0x77])][_0x22ab0d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x22ab0d([0x61,0x75,0x74,0x6f]);}function _0x2b9f94(){_0x23f01c[_0x22ab0d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22ab0d([0x76,0x69,0x65,0x77])][_0x22ab0d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22ab0d([0x61,0x75,0x74,0x6f]);}}function _0x105223(_0x132b11){const _0x38b6b5=[new window[(_0x22ab0d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x574dbb=>setTimeout(_0x574dbb,0x28d41db2^_0x6fe101)),_0x2e52b1[_0x22ab0d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x22ab0d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dfacb=>{let _0x1faa5d=0x0;_0x23f01c[_0x22ab0d([0x6d,0x6f,0x64,0x65,0x6c])][_0x22ab0d([0x6f,0x6e])](_0x22ab0d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x29af4e,_0x74ba90)=>{_0x74ba90[0x0][_0x22ab0d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1faa5d++,_0x1faa5d==(0x28dd2286^_0x6fe101)&&(_0x1dfacb(),_0x29af4e[_0x22ab0d([0x6f,0x66,0x66])]());});}))];return window[_0x22ab0d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22ab0d([0x72,0x61,0x63,0x65])](_0x38b6b5)[_0x22ab0d([0x74,0x68,0x65,0x6e])](()=>_0x132b11);}async function _0x28f0ef(){await _0x2e52b1,_0x23f01c[_0x22ab0d([0x6d,0x6f,0x64,0x65,0x6c])][_0x22ab0d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33d9f3,_0x23f01c[_0x22ab0d([0x6d,0x6f,0x64,0x65,0x6c])][_0x22ab0d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33d9f3,_0x23f01c[_0x22ab0d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x22ab0d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ca526(_0x45d9b0){const _0x2086aa=_0x5e6540();_0x23f01c[_0x2086aa]=_0x22ab0d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x45d9b0,_0x45d9b0!=_0x22ab0d([0x56,0x61,0x6c,0x69,0x64])&&_0x28f0ef();}function _0x5e6540(){const _0x3ad9f4=window[_0x22ab0d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x22ab0d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x22ab0d([0x6e,0x6f,0x77])]())[_0x22ab0d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x22ab0d([0x2e]),'');let _0x14ae91=_0x22ab0d([0x62]);for(let _0x12b71a=0x0;_0x12b71a<_0x3ad9f4[_0x22ab0d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12b71a+=0x2){let _0x19facc=window[_0x22ab0d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ad9f4[_0x22ab0d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12b71a,_0x12b71a+0x2));_0x19facc>=_0x3bdc7f[_0x22ab0d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x19facc-=_0x3bdc7f[_0x22ab0d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x14ae91+=_0x3bdc7f[_0x19facc];}return _0x14ae91;}function _0x364b6d(){const _0x9437c1=_0x36908c[_0x22ab0d([0x73,0x70,0x6c,0x69,0x74])](_0x22ab0d([0x2e]));if(0x3!=_0x9437c1[_0x22ab0d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x246212(_0x9437c1[0x1]);function _0x246212(_0x48d070){const _0x202691=_0x5aaddf(_0x48d070);return _0x202691&&_0x144b8e()?_0x202691:null;function _0x144b8e(){const _0x28339b=_0x202691[_0x22ab0d([0x6a,0x74,0x69])],_0x4e1956=window[_0x22ab0d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28339b[_0x22ab0d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28339b[_0x22ab0d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x119218={..._0x202691,[_0x22ab0d([0x6a,0x74,0x69])]:_0x28339b[_0x22ab0d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x28339b[_0x22ab0d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x119218[_0x22ab0d([0x76,0x63])],_0x220d2c(_0x119218)==_0x4e1956;}}}async function _0x4c8436(){let _0x55d0e2=!0x0;try{const _0x5e8ffe=_0x36908c[_0x22ab0d([0x73,0x70,0x6c,0x69,0x74])](_0x22ab0d([0x2e])),[_0x11d326,_0x30fb07,_0x551efc]=_0x5e8ffe;return _0x290480(_0x11d326),await _0x2aa028(_0x11d326,_0x30fb07,_0x551efc),_0x55d0e2;}catch{return!0x1;}function _0x290480(_0x13a425){const _0x123ae4=_0x5aaddf(_0x13a425);_0x123ae4&&_0x123ae4[_0x22ab0d([0x61,0x6c,0x67])]==_0x22ab0d([0x45,0x53,0x32,0x35,0x36])||(_0x55d0e2=!0x1);}async function _0x2aa028(_0x19c177,_0x170811,_0x3d7990){const _0x442ccc=window[_0x22ab0d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x22ab0d([0x66,0x72,0x6f,0x6d])](_0x25aea1(_0x3d7990),_0x425701=>_0x425701[_0x22ab0d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x73b871=new window[(_0x22ab0d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x22ab0d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x19c177+_0x22ab0d([0x2e])+_0x170811),_0x349268=window[_0x22ab0d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x22ab0d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x349268)return;const _0x284c07=await _0x349268[_0x22ab0d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x22ab0d([0x6a,0x77,0x6b]),_0x4cbc66,{[_0x22ab0d([0x6e,0x61,0x6d,0x65])]:_0x22ab0d([0x45,0x43,0x44,0x53,0x41]),[_0x22ab0d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x22ab0d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x22ab0d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x349268[_0x22ab0d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x22ab0d([0x6e,0x61,0x6d,0x65])]:_0x22ab0d([0x45,0x43,0x44,0x53,0x41]),[_0x22ab0d([0x68,0x61,0x73,0x68])]:{[_0x22ab0d([0x6e,0x61,0x6d,0x65])]:_0x22ab0d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x284c07,_0x442ccc,_0x73b871)||(_0x55d0e2=!0x1);}}function _0x5aaddf(_0x35ea3e){return _0x35ea3e[_0x22ab0d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x22ab0d([0x65,0x79]))?JSON[_0x22ab0d([0x70,0x61,0x72,0x73,0x65])](_0x25aea1(_0x35ea3e)):null;}function _0x25aea1(_0x2b5861){return window[_0x22ab0d([0x61,0x74,0x6f,0x62])](_0x2b5861[_0x22ab0d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x22ab0d([0x2b]))[_0x22ab0d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x22ab0d([0x2f])));}function _0x220d2c(_0x3c796c){let _0x696b5e=0x1505;function _0xc1fa9d(_0x1c1255){for(let _0x5dcd88=0x0;_0x5dcd88<_0x1c1255[_0x22ab0d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5dcd88++){const _0x4dc3f2=_0x1c1255[_0x22ab0d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5dcd88);_0x696b5e=(_0x696b5e<<0x5)+_0x696b5e+_0x4dc3f2,_0x696b5e&=_0x696b5e;}}function _0x451004(_0x15aaf0){Array[_0x22ab0d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x15aaf0)?_0x15aaf0[_0x22ab0d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x451004):_0x15aaf0&&typeof _0x15aaf0==_0x22ab0d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x22ab0d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x15aaf0)[_0x22ab0d([0x73,0x6f,0x72,0x74])]()[_0x22ab0d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x12a2fc,_0x5858c8])=>{_0xc1fa9d(_0x12a2fc),_0x451004(_0x5858c8);}):_0xc1fa9d(window[_0x22ab0d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x15aaf0));}return _0x451004(_0x3c796c),_0x696b5e>>>0x0;}function _0x288cc2(_0x6ea6a8){return _0x6ea6a8[_0x22ab0d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x22ab0d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x22ab0d([0x30]));}function _0x316acb(_0x144293){return _0x144293[_0x22ab0d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x22ab0d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x22ab0d([0x6a,0x6f,0x69,0x6e])]('');}function _0x33d9f3(){}function _0x22ab0d(_0x5b5dac){const _0x202b6c=_0x3cba;return _0x5b5dac[_0x202b6c(0x15b)](_0x1bc438=>String[_0x202b6c(0x136)](_0x1bc438))[_0x202b6c(0x12e)]('');}_0x3ca526(await _0x447183());}(this);}[_0x56ce80(0x141)](){const _0x4819b7=_0x56ce80,_0xf1cf43=this[_0x4819b7(0x12d)][_0x4819b7(0x125)][_0x4819b7(0x131)];_0xf1cf43[_0x4819b7(0x177)](_0x4819b7(0x144))&&_0xf1cf43[_0x4819b7(0x140)](_0x4819b7(0x144),{'allowAttributes':[_0x4819b7(0x162)]}),_0xf1cf43[_0x4819b7(0x177)](_0x4819b7(0x150))&&_0xf1cf43[_0x4819b7(0x140)](_0x4819b7(0x150),{'allowAttributes':[_0x4819b7(0x162)]});}[_0x56ce80(0x15a)](){const _0x5157ee=_0x56ce80,_0x17a97b=this[_0x5157ee(0x12d)];_0x17a97b[_0x5157ee(0x156)][_0x5157ee(0x127)](_0x5157ee(0x138))[_0x5157ee(0x174)]({'model':_0x5157ee(0x162),'view':_0x5157ee(0x166)}),_0x17a97b[_0x5157ee(0x156)][_0x5157ee(0x127)](_0x5157ee(0x142))[_0x5157ee(0x137)]({'model':{'key':_0x5157ee(0x162),'value':_0xcb7aad=>_0xcb7aad[_0x5157ee(0x13c)](_0x5157ee(0x166))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x48ed20=_0x17a97b[_0x5157ee(0x153)][_0x5157ee(0x173)](_0x5157ee(0x13b));_0x48ed20&&this[_0x5157ee(0x15e)](_0x48ed20,_0x5157ee(0x14c),(_0x4ff8b4,[_0x18858b,_0x383072])=>{const _0x17279b=_0x5157ee;_0x18858b[_0x17279b(0x15d)](_0x17279b(0x162),_0x383072);});}[_0x56ce80(0x151)](){const _0x4b4ed5=_0x56ce80,_0x40c30c=this[_0x4b4ed5(0x12d)][_0x4b4ed5(0x14d)][_0x4b4ed5(0x173)](_0x4b4ed5(0x128))||{},_0x5f2cc1=this[_0x4b4ed5(0x12d)][_0x4b4ed5(0x14d)][_0x4b4ed5(0x173)](_0x4b4ed5(0x14e))||'';this[_0x4b4ed5(0x12a)]=_0x543443(_0x35a170[_0x4b4ed5(0x145)],_0x4b4ed5(0x122),{..._0x40c30c,'pubkey':_0x5f2cc1,'ctx-name':_0x4b4ed5(0x13f),'sourceList':'','imgOnly':_0x4b4ed5(0x124),'removeCopyright':_0x4b4ed5(0x124),'localeName':this[_0x4b4ed5(0x12d)][_0x4b4ed5(0x14b)][_0x4b4ed5(0x13d)],'externalSourcesEmbedCss':_0x4b4ed5(0x16a)}),this[_0x4b4ed5(0x12a)][_0x4b4ed5(0x132)]=_0xda3af2=>{const _0x22dff5=_0x4b4ed5;if(_0x22dff5(0x14a)==_0xda3af2)return _0x22dff5(0x16f);},_0x35a170[_0x4b4ed5(0x145)][_0x4b4ed5(0x134)][_0x4b4ed5(0x168)](this[_0x4b4ed5(0x12a)]);}[_0x56ce80(0x164)](){const _0x42a7c3=_0x56ce80;this[_0x42a7c3(0x160)]=_0x543443(_0x35a170[_0x42a7c3(0x145)],_0x42a7c3(0x146),{'ctx-name':_0x42a7c3(0x13f)}),_0x35a170[_0x42a7c3(0x145)][_0x42a7c3(0x134)][_0x42a7c3(0x168)](this[_0x42a7c3(0x160)]);}[_0x56ce80(0x14f)](){const _0x217c8b=_0x56ce80,_0x5435ab=this[_0x217c8b(0x12d)][_0x217c8b(0x153)][_0x217c8b(0x173)](_0x217c8b(0x169));_0x5435ab&&this[_0x217c8b(0x15e)](_0x5435ab,_0x217c8b(0x130),()=>{const _0x624b1f=_0x217c8b,_0x292618=this[_0x624b1f(0x12d)][_0x624b1f(0x125)][_0x624b1f(0x145)][_0x624b1f(0x163)][_0x624b1f(0x165)]();_0x292618&&_0x292618[_0x624b1f(0x13c)](_0x624b1f(0x162))&&this[_0x624b1f(0x12d)][_0x624b1f(0x12f)][_0x624b1f(0x16e)][_0x624b1f(0x176)](_0x624b1f(0x13e),()=>{const _0x3c87a2=_0x624b1f;_0x28fc70(this[_0x3c87a2(0x12d)],_0x292618);});});const _0x167438=this[_0x217c8b(0x12d)][_0x217c8b(0x153)][_0x217c8b(0x173)](_0x217c8b(0x157));_0x167438&&this[_0x217c8b(0x15e)](_0x167438,_0x217c8b(0x130),()=>{const _0x397fa6=_0x217c8b,_0x1b5a5c=this[_0x397fa6(0x12d)][_0x397fa6(0x125)][_0x397fa6(0x145)][_0x397fa6(0x163)][_0x397fa6(0x165)]();_0x1b5a5c&&_0x1b5a5c[_0x397fa6(0x13c)](_0x397fa6(0x162))&&this[_0x397fa6(0x12d)][_0x397fa6(0x12f)][_0x397fa6(0x16e)][_0x397fa6(0x176)](_0x397fa6(0x13e),()=>{const _0x4ff872=_0x397fa6;_0x28fc70(this[_0x4ff872(0x12d)],_0x1b5a5c);});});}}
|
|
23
|
+
function _0x25a2(){const _0x347bcd=['model','body','destroy','get','commands','upcast','isRegistered','init','imageBlock','removeAttribute','remove','locale','uploader','execute','schema','extend','editor','PictureEditing','5115420gesCJU','conversion','uc-config','ctxElement','document','uc-upload-ctx-provider','pluginName','requires','contentLanguage','_configElement','data-uc-image-id','uploadcare.pubkey','75345fkohdg','listenTo','11074591FRzdMg','appendChild','map','add','selection','_initConversion','render','uploadcare.uploader','_ctxElement','92fTkzUf','config','configElement','_initConfig','for','downcast','uploadcareImageId','input[uploadcare-file-input]','fromCharCode','attributeToAttribute','iconHrefResolver','isOfficialPlugin','uploadcareImageReplace','1750968WHauMx','27LVYqsi','view','_initSchema','getSelectedElement','closeMax','join','535213WaeqcZ','uploadcare','#uc-icon-arrow-down','_initImageProcessingIndicator','cleanupImage','afterInit','imageInline','_initCtx','insertImage','UploadcareEditing','10QqxWyn','once','href','7RiNnTY','6668JnqGdo','1491096mOENrt','isPremiumPlugin','editing','querySelector','getAttribute','\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','elementToAttribute','2120lgkUay','true','replaceImageSource'];_0x25a2=function(){return _0x347bcd;};return _0x25a2();}const _0x2e44fc=_0x1f65;function _0x1f65(_0x546cff,_0x91a8af){const _0x25a202=_0x25a2();return _0x1f65=function(_0x1f65c5,_0x3e0f62){_0x1f65c5=_0x1f65c5-0x122;let _0x193974=_0x25a202[_0x1f65c5];return _0x193974;},_0x1f65(_0x546cff,_0x91a8af);}(function(_0x417c6d,_0x2e77b3){const _0x5cb02a=_0x1f65,_0x3c0f68=_0x417c6d();while(!![]){try{const _0x399183=parseInt(_0x5cb02a(0x159))/0x1+parseInt(_0x5cb02a(0x145))/0x2*(parseInt(_0x5cb02a(0x13a))/0x3)+parseInt(_0x5cb02a(0x167))/0x4*(-parseInt(_0x5cb02a(0x16f))/0x5)+-parseInt(_0x5cb02a(0x152))/0x6*(parseInt(_0x5cb02a(0x166))/0x7)+parseInt(_0x5cb02a(0x168))/0x8*(parseInt(_0x5cb02a(0x153))/0x9)+parseInt(_0x5cb02a(0x163))/0xa*(-parseInt(_0x5cb02a(0x13c))/0xb)+parseInt(_0x5cb02a(0x12e))/0xc;if(_0x399183===_0x2e77b3)break;else _0x3c0f68['push'](_0x3c0f68['shift']());}catch(_0x2391ce){_0x3c0f68['push'](_0x3c0f68['shift']());}}}(_0x25a2,0xa3b44));import{Plugin as _0x1bc3dc}from'ckeditor5/src/core.js';import{Dialog as _0x12a9c0}from'ckeditor5/src/ui.js';import{createElement as _0x584f28,global as _0x3c0aaf,uid as _0x204aeb}from'ckeditor5/src/utils.js';import _0x513354 from'./uploadcarecommand.js';import _0x5d3d27 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5b01ed}from'./utils/editingutils.js';export default class i extends _0x1bc3dc{[_0x2e44fc(0x137)]=null;[_0x2e44fc(0x144)]=null;static get[_0x2e44fc(0x134)](){const _0x5d3f32=_0x2e44fc;return _0x5d3f32(0x162);}static get[_0x2e44fc(0x135)](){const _0x404f30=_0x2e44fc;return[_0x404f30(0x12d),_0x5d3d27,_0x12a9c0];}static get[_0x2e44fc(0x150)](){return!0x0;}static get[_0x2e44fc(0x169)](){return!0x0;}get[_0x2e44fc(0x147)](){const _0x33d0bd=_0x2e44fc;return this[_0x33d0bd(0x137)];}get[_0x2e44fc(0x131)](){const _0x4c900e=_0x2e44fc;return this[_0x4c900e(0x144)];}[_0x2e44fc(0x123)](){const _0x278e99=_0x2e44fc,_0x10c7ff=this[_0x278e99(0x12c)];_0x10c7ff[_0x278e99(0x176)][_0x278e99(0x13f)](_0x278e99(0x15a),new _0x513354(_0x10c7ff));}[_0x2e44fc(0x15e)](){const _0x4fc944=_0x2e44fc;this[_0x4fc944(0x155)](),this[_0x4fc944(0x141)](),this[_0x4fc944(0x148)](),this[_0x4fc944(0x160)](),this[_0x4fc944(0x15c)](),this[_0x4fc944(0x13b)](this[_0x4fc944(0x12c)],_0x4fc944(0x174),()=>{const _0x3fff89=_0x4fc944;this[_0x3fff89(0x137)]&&(this[_0x3fff89(0x137)][_0x3fff89(0x126)](),this[_0x3fff89(0x137)]=null),this[_0x3fff89(0x144)]&&(this[_0x3fff89(0x144)][_0x3fff89(0x126)](),this[_0x3fff89(0x144)]=null);const _0x5ea8b6=_0x3c0aaf[_0x3fff89(0x132)][_0x3fff89(0x16b)](_0x3fff89(0x14c));_0x5ea8b6&&_0x5ea8b6[_0x3fff89(0x126)]();}),async function(_0x134076){const _0x122faa=_0x16df53([0x48,0x52,0x77,0x30,0x54,0x4e,0x71,0x75,0x6e,0x6c,0x5a,0x67,0x64,0x44,0x4d,0x62,0x4c,0x37,0x65,0x78,0x4b,0x69,0x43,0x33,0x49,0x6f,0x47,0x50,0x68,0x6b,0x35,0x41,0x61,0x7a,0x6d,0x34,0x73,0x51,0x6a,0x39,0x36,0x42,0x59,0x45,0x66,0x57,0x63,0x55,0x79,0x58,0x53,0x31,0x4f,0x32,0x70,0x72,0x74,0x76,0x38,0x46,0x4a,0x56]),_0x390d14=0x2f6cc8c3,_0x132bbe=0x2f6ba193^_0x390d14,_0x17e040=window[_0x16df53([0x44,0x61,0x74,0x65])][_0x16df53([0x6e,0x6f,0x77])](),_0x15893c=_0x134076[_0x16df53([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x93ece0=new window[(_0x16df53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33ec6c=>{_0x15893c[_0x16df53([0x6f,0x6e,0x63,0x65])](_0x16df53([0x72,0x65,0x61,0x64,0x79]),_0x33ec6c);}),_0x5bc570={[_0x16df53([0x6b,0x74,0x79])]:_0x16df53([0x45,0x43]),[_0x16df53([0x75,0x73,0x65])]:_0x16df53([0x73,0x69,0x67]),[_0x16df53([0x63,0x72,0x76])]:_0x16df53([0x50,0x2d,0x32,0x35,0x36]),[_0x16df53([0x78])]:_0x16df53([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]),[_0x16df53([0x79])]:_0x16df53([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]),[_0x16df53([0x61,0x6c,0x67])]:_0x16df53([0x45,0x53,0x32,0x35,0x36])},_0x36edea=_0x15893c[_0x16df53([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x16df53([0x67,0x65,0x74])](_0x16df53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2d4a11(){let _0x36e647,_0x3b6a14=null,_0x26f3d0=null;try{if(_0x36edea==_0x16df53([0x47,0x50,0x4c]))return _0x16df53([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x36e647=_0x3977e8(),!_0x36e647)return _0x16df53([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x36e647[_0x16df53([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x26f3d0=_0xde93f5(_0x36e647[_0x16df53([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x36e647[_0x16df53([0x6a,0x74,0x69])])),await _0x8c6a6()?_0x175623()?_0x3cb98f()?_0x16df53([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d4b5d()?(_0x36e647[_0x16df53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16df53([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b6a14=_0x4099a9(_0x16df53([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x36e647[_0x16df53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16df53([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b6a14=_0x4099a9(_0x16df53([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x35a64f()):_0x16df53([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x16df53([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x16df53([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x16df53([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3cb98f(){const _0x1921e0=[_0x16df53([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x16df53([0x74,0x72,0x69,0x61,0x6c])][_0x16df53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36e647[_0x16df53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x17e040/0x3e8:0xe10*_0x132bbe;return _0x36e647[_0x16df53([0x65,0x78,0x70])]<_0x1921e0;}function _0x175623(){const _0x513d05=_0x36e647[_0x16df53([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x513d05&&(!!_0x513d05[_0x16df53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16df53([0x2a]))||!!_0x513d05[_0x16df53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16df53([0x55,0x50,0x4c,0x43])));}function _0x5d4b5d(){const _0x2eabb7=_0x1f65,_0x59dd60=_0x36e647[_0x16df53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59dd60||0x0==_0x59dd60[_0x16df53([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ea1bb}=new URL(window[_0x16df53([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2eabb7(0x165)]);if(_0x59dd60[_0x16df53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ea1bb))return!0x0;const _0x28e7c6=_0x3ea1bb[_0x16df53([0x73,0x70,0x6c,0x69,0x74])](_0x16df53([0x2e]));return _0x59dd60[_0x16df53([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2adadd=>_0x2adadd[_0x16df53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16df53([0x2a])))[_0x16df53([0x6d,0x61,0x70])](_0x28397=>_0x28397[_0x16df53([0x73,0x70,0x6c,0x69,0x74])](_0x16df53([0x2e])))[_0x16df53([0x73,0x6f,0x6d,0x65])](_0x1b7508=>_0x28e7c6[_0x16df53([0x65,0x76,0x65,0x72,0x79])]((_0x1e5ea0,_0x1cfe79)=>_0x1b7508[_0x1cfe79]===_0x1e5ea0||_0x1b7508[_0x1cfe79]===_0x16df53([0x2a])));}function _0x35a64f(){return _0x3b6a14&&_0x26f3d0?new window[(_0x16df53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6f0c48,_0x3b86c0)=>{_0x3b6a14[_0x16df53([0x74,0x68,0x65,0x6e])](_0x6f0c48,_0x3b86c0),_0x26f3d0[_0x16df53([0x74,0x68,0x65,0x6e])](_0x3cf6b6=>{_0x3cf6b6!=_0x16df53([0x56,0x61,0x6c,0x69,0x64])&&_0x6f0c48(_0x3cf6b6);},_0x3b86c0);}):_0x3b6a14||_0x26f3d0||_0x16df53([0x56,0x61,0x6c,0x69,0x64]);}}function _0xde93f5(_0x3580cc,_0x8a0f51){return new window[(_0x16df53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fe482=>{if(_0x5573df())return _0x4fe482(_0x16df53([0x56,0x61,0x6c,0x69,0x64]));_0x536c9d(),_0x15893c[_0x16df53([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x16df53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x45547a=!0x1;const _0x3bc018=_0x204aeb();function _0x1ed223(_0x5e825e){return!!_0x5e825e&&(typeof _0x5e825e===_0x16df53([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e825e===_0x16df53([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e825e[_0x16df53([0x74,0x68,0x65,0x6e])]===_0x16df53([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e825e[_0x16df53([0x63,0x61,0x74,0x63,0x68])]===_0x16df53([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x57cb24(_0x5071f8){_0x2d2839(_0x5071f8)[_0x16df53([0x74,0x68,0x65,0x6e])](_0x1c595c=>{if(!_0x1c595c||_0x1c595c[_0x16df53([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x16df53([0x6f,0x6b]))return _0x16df53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x139593(_0x318a21(_0x3bc018+_0x8a0f51))!=_0x1c595c[_0x16df53([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x16df53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x16df53([0x56,0x61,0x6c,0x69,0x64]);})[_0x16df53([0x74,0x68,0x65,0x6e])](_0x235bd0=>(_0x4a867c(),_0x235bd0),()=>{const _0x29d73e=_0x26b285();return null==_0x29d73e?(_0x4a867c(),_0x16df53([0x56,0x61,0x6c,0x69,0x64])):_0x16df53(_0x17e040-_0x29d73e>(0xb604cc3^_0x390d14)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x16df53([0x74,0x68,0x65,0x6e])](_0x4fe482)[_0x16df53([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4fe482(_0x16df53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x57ed64=0x2f5a2643^_0x390d14;function _0x4a867c(){const _0x344985=_0x16df53([0x6c,0x6c,0x63,0x74,0x2d])+_0x139593(_0x318a21(_0x3580cc)),_0x31cab5=_0x3719a7(_0x139593(window[_0x16df53([0x4d,0x61,0x74,0x68])][_0x16df53([0x63,0x65,0x69,0x6c])](_0x17e040/_0x57ed64)));window[_0x16df53([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16df53([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x344985,_0x31cab5);}function _0x26b285(){const _0x2e156a=_0x16df53([0x6c,0x6c,0x63,0x74,0x2d])+_0x139593(_0x318a21(_0x3580cc)),_0x6d6e41=window[_0x16df53([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16df53([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e156a);return _0x6d6e41?window[_0x16df53([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3719a7(_0x6d6e41),0x10)*_0x57ed64:null;}function _0x2d2839(_0x4719bb){return new window[(_0x16df53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7ccae9,_0x5acc72)=>{_0x4719bb[_0x16df53([0x74,0x68,0x65,0x6e])](_0x7ccae9,_0x5acc72),window[_0x16df53([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5acc72,0x2f6d1c03^_0x390d14);});}}_0x15893c[_0x16df53([0x6f,0x6e])](_0x16df53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5496c6,_0x54441d)=>{if(_0x54441d[0x0]!=_0x3580cc)return _0x4fe482(_0x16df53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54441d[0x1]={..._0x54441d[0x1],[_0x16df53([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3bc018};},{[_0x16df53([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16df53([0x68,0x69,0x67,0x68])}),_0x15893c[_0x16df53([0x6f,0x6e])](_0x16df53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x326ca5=>{_0x1ed223(_0x326ca5[_0x16df53([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x45547a=!0x0,_0x57cb24(_0x326ca5[_0x16df53([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x16df53([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16df53([0x6c,0x6f,0x77])}),_0x93ece0[_0x16df53([0x74,0x68,0x65,0x6e])](()=>{_0x45547a||_0x4fe482(_0x16df53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5573df(){return _0x15893c[_0x16df53([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16df53([0x76,0x69,0x65,0x77])][_0x16df53([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x16df53([0x61,0x75,0x74,0x6f]);}function _0x536c9d(){_0x15893c[_0x16df53([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16df53([0x76,0x69,0x65,0x77])][_0x16df53([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16df53([0x61,0x75,0x74,0x6f]);}}function _0x4099a9(_0x4de93a){const _0x3becbb=[new window[(_0x16df53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51918a=>setTimeout(_0x51918a,0x2f65f60f^_0x390d14)),_0x93ece0[_0x16df53([0x74,0x68,0x65,0x6e])](()=>new window[(_0x16df53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x516de1=>{let _0x132206=0x0;_0x15893c[_0x16df53([0x6d,0x6f,0x64,0x65,0x6c])][_0x16df53([0x6f,0x6e])](_0x16df53([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x67cbc2,_0x4ded6b)=>{_0x4ded6b[0x0][_0x16df53([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x132206++,_0x132206==(0x2f6cc93b^_0x390d14)&&(_0x516de1(),_0x67cbc2[_0x16df53([0x6f,0x66,0x66])]());});}))];return window[_0x16df53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16df53([0x72,0x61,0x63,0x65])](_0x3becbb)[_0x16df53([0x74,0x68,0x65,0x6e])](()=>_0x4de93a);}async function _0x284fad(){await _0x93ece0,_0x15893c[_0x16df53([0x6d,0x6f,0x64,0x65,0x6c])][_0x16df53([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a8f23,_0x15893c[_0x16df53([0x6d,0x6f,0x64,0x65,0x6c])][_0x16df53([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a8f23,_0x15893c[_0x16df53([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x16df53([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x37adc8(_0x426968){const _0xe32551=_0x4c913f();_0x15893c[_0xe32551]=_0x16df53([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x426968,_0x426968!=_0x16df53([0x56,0x61,0x6c,0x69,0x64])&&_0x284fad();}function _0x4c913f(){const _0x20e210=window[_0x16df53([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x16df53([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x16df53([0x6e,0x6f,0x77])]())[_0x16df53([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x16df53([0x2e]),'');let _0x5e17c4=_0x16df53([0x48]);for(let _0x263296=0x0;_0x263296<_0x20e210[_0x16df53([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x263296+=0x2){let _0x2cd02e=window[_0x16df53([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20e210[_0x16df53([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x263296,_0x263296+0x2));_0x2cd02e>=_0x122faa[_0x16df53([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2cd02e-=_0x122faa[_0x16df53([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5e17c4+=_0x122faa[_0x2cd02e];}return _0x5e17c4;}function _0x3977e8(){const _0xf8187b=_0x36edea[_0x16df53([0x73,0x70,0x6c,0x69,0x74])](_0x16df53([0x2e]));if(0x3!=_0xf8187b[_0x16df53([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x479084(_0xf8187b[0x1]);function _0x479084(_0x4e5696){const _0x4e9506=_0x363609(_0x4e5696);return _0x4e9506&&_0x3e9a9a()?_0x4e9506:null;function _0x3e9a9a(){const _0x28df6d=_0x4e9506[_0x16df53([0x6a,0x74,0x69])],_0x21849e=window[_0x16df53([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28df6d[_0x16df53([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28df6d[_0x16df53([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x254e00={..._0x4e9506,[_0x16df53([0x6a,0x74,0x69])]:_0x28df6d[_0x16df53([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x28df6d[_0x16df53([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x254e00[_0x16df53([0x76,0x63])],_0x318a21(_0x254e00)==_0x21849e;}}}async function _0x8c6a6(){let _0x4057ac=!0x0;try{const _0x41d172=_0x36edea[_0x16df53([0x73,0x70,0x6c,0x69,0x74])](_0x16df53([0x2e])),[_0x33344a,_0x2c8ab6,_0x233378]=_0x41d172;return _0x428d71(_0x33344a),await _0x2c9fdf(_0x33344a,_0x2c8ab6,_0x233378),_0x4057ac;}catch{return!0x1;}function _0x428d71(_0x15d67e){const _0x4e8e16=_0x363609(_0x15d67e);_0x4e8e16&&_0x4e8e16[_0x16df53([0x61,0x6c,0x67])]==_0x16df53([0x45,0x53,0x32,0x35,0x36])||(_0x4057ac=!0x1);}async function _0x2c9fdf(_0x4458fd,_0x9446d2,_0x411702){const _0x495322=window[_0x16df53([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x16df53([0x66,0x72,0x6f,0x6d])](_0x105b22(_0x411702),_0x589cd9=>_0x589cd9[_0x16df53([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xaf3b67=new window[(_0x16df53([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x16df53([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4458fd+_0x16df53([0x2e])+_0x9446d2),_0xb2869c=window[_0x16df53([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x16df53([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xb2869c)return;const _0x5d196e=await _0xb2869c[_0x16df53([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x16df53([0x6a,0x77,0x6b]),_0x5bc570,{[_0x16df53([0x6e,0x61,0x6d,0x65])]:_0x16df53([0x45,0x43,0x44,0x53,0x41]),[_0x16df53([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x16df53([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x16df53([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xb2869c[_0x16df53([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x16df53([0x6e,0x61,0x6d,0x65])]:_0x16df53([0x45,0x43,0x44,0x53,0x41]),[_0x16df53([0x68,0x61,0x73,0x68])]:{[_0x16df53([0x6e,0x61,0x6d,0x65])]:_0x16df53([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d196e,_0x495322,_0xaf3b67)||(_0x4057ac=!0x1);}}function _0x363609(_0x13ae20){return _0x13ae20[_0x16df53([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x16df53([0x65,0x79]))?JSON[_0x16df53([0x70,0x61,0x72,0x73,0x65])](_0x105b22(_0x13ae20)):null;}function _0x105b22(_0x2e8b37){return window[_0x16df53([0x61,0x74,0x6f,0x62])](_0x2e8b37[_0x16df53([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x16df53([0x2b]))[_0x16df53([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x16df53([0x2f])));}function _0x318a21(_0x16bc07){let _0x512f79=0x1505;function _0x445295(_0x20947c){for(let _0x19c681=0x0;_0x19c681<_0x20947c[_0x16df53([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19c681++){const _0x4c2cb6=_0x20947c[_0x16df53([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x19c681);_0x512f79=(_0x512f79<<0x5)+_0x512f79+_0x4c2cb6,_0x512f79&=_0x512f79;}}function _0x562c2d(_0x2a2334){Array[_0x16df53([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a2334)?_0x2a2334[_0x16df53([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x562c2d):_0x2a2334&&typeof _0x2a2334==_0x16df53([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x16df53([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a2334)[_0x16df53([0x73,0x6f,0x72,0x74])]()[_0x16df53([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5df12f,_0x1b3bf3])=>{_0x445295(_0x5df12f),_0x562c2d(_0x1b3bf3);}):_0x445295(window[_0x16df53([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a2334));}return _0x562c2d(_0x16bc07),_0x512f79>>>0x0;}function _0x139593(_0x234bd2){return _0x234bd2[_0x16df53([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x16df53([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x16df53([0x30]));}function _0x3719a7(_0x380bb7){return _0x380bb7[_0x16df53([0x73,0x70,0x6c,0x69,0x74])]('')[_0x16df53([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x16df53([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a8f23(){}function _0x16df53(_0x104799){const _0x69fce6=_0x1f65;return _0x104799[_0x69fce6(0x13e)](_0x1f8c16=>String[_0x69fce6(0x14d)](_0x1f8c16))[_0x69fce6(0x158)]('');}_0x37adc8(await _0x2d4a11());}(this);}[_0x2e44fc(0x155)](){const _0x1cdced=_0x2e44fc,_0x54539c=this[_0x1cdced(0x12c)][_0x1cdced(0x172)][_0x1cdced(0x12a)];_0x54539c[_0x1cdced(0x122)](_0x1cdced(0x124))&&_0x54539c[_0x1cdced(0x12b)](_0x1cdced(0x124),{'allowAttributes':[_0x1cdced(0x14b)]}),_0x54539c[_0x1cdced(0x122)](_0x1cdced(0x15f))&&_0x54539c[_0x1cdced(0x12b)](_0x1cdced(0x15f),{'allowAttributes':[_0x1cdced(0x14b)]});}[_0x2e44fc(0x141)](){const _0x1568f9=_0x2e44fc,_0x3b640e=this[_0x1568f9(0x12c)];_0x3b640e[_0x1568f9(0x12f)][_0x1568f9(0x149)](_0x1568f9(0x14a))[_0x1568f9(0x14e)]({'model':_0x1568f9(0x14b),'view':_0x1568f9(0x138)}),_0x3b640e[_0x1568f9(0x12f)][_0x1568f9(0x149)](_0x1568f9(0x177))[_0x1568f9(0x16e)]({'model':{'key':_0x1568f9(0x14b),'value':_0x3704cf=>_0x3704cf[_0x1568f9(0x16c)](_0x1568f9(0x138))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5db2fb=_0x3b640e[_0x1568f9(0x176)][_0x1568f9(0x175)](_0x1568f9(0x171));_0x5db2fb&&this[_0x1568f9(0x13b)](_0x5db2fb,_0x1568f9(0x15d),(_0x5c8f62,[_0x371e89,_0x1e12d7])=>{const _0x3e1a80=_0x1568f9;_0x371e89[_0x3e1a80(0x125)](_0x3e1a80(0x14b),_0x1e12d7);});}[_0x2e44fc(0x148)](){const _0x14dc65=_0x2e44fc,_0xce6e7b=this[_0x14dc65(0x12c)][_0x14dc65(0x146)][_0x14dc65(0x175)](_0x14dc65(0x143))||{},_0x14c06d=this[_0x14dc65(0x12c)][_0x14dc65(0x146)][_0x14dc65(0x175)](_0x14dc65(0x139))||'';this[_0x14dc65(0x137)]=_0x584f28(_0x3c0aaf[_0x14dc65(0x132)],_0x14dc65(0x130),{..._0xce6e7b,'pubkey':_0x14c06d,'ctx-name':_0x14dc65(0x128),'sourceList':'','imgOnly':_0x14dc65(0x170),'removeCopyright':_0x14dc65(0x170),'localeName':this[_0x14dc65(0x12c)][_0x14dc65(0x127)][_0x14dc65(0x136)],'externalSourcesEmbedCss':_0x14dc65(0x16d)}),this[_0x14dc65(0x137)][_0x14dc65(0x14f)]=_0x531132=>{const _0x47d419=_0x14dc65;if(_0x47d419(0x157)==_0x531132)return _0x47d419(0x15b);},_0x3c0aaf[_0x14dc65(0x132)][_0x14dc65(0x173)][_0x14dc65(0x13d)](this[_0x14dc65(0x137)]);}[_0x2e44fc(0x160)](){const _0x167be4=_0x2e44fc;this[_0x167be4(0x144)]=_0x584f28(_0x3c0aaf[_0x167be4(0x132)],_0x167be4(0x133),{'ctx-name':_0x167be4(0x128)}),_0x3c0aaf[_0x167be4(0x132)][_0x167be4(0x173)][_0x167be4(0x13d)](this[_0x167be4(0x144)]);}[_0x2e44fc(0x15c)](){const _0x14e8e0=_0x2e44fc,_0x37680f=this[_0x14e8e0(0x12c)][_0x14e8e0(0x176)][_0x14e8e0(0x175)](_0x14e8e0(0x161));_0x37680f&&this[_0x14e8e0(0x13b)](_0x37680f,_0x14e8e0(0x129),()=>{const _0x569cfe=_0x14e8e0,_0x1af9af=this[_0x569cfe(0x12c)][_0x569cfe(0x172)][_0x569cfe(0x132)][_0x569cfe(0x140)][_0x569cfe(0x156)]();_0x1af9af&&_0x1af9af[_0x569cfe(0x16c)](_0x569cfe(0x14b))&&this[_0x569cfe(0x12c)][_0x569cfe(0x16a)][_0x569cfe(0x154)][_0x569cfe(0x164)](_0x569cfe(0x142),()=>{const _0x33c45a=_0x569cfe;_0x5b01ed(this[_0x33c45a(0x12c)],_0x1af9af);});});const _0x5765d9=this[_0x14e8e0(0x12c)][_0x14e8e0(0x176)][_0x14e8e0(0x175)](_0x14e8e0(0x151));_0x5765d9&&this[_0x14e8e0(0x13b)](_0x5765d9,_0x14e8e0(0x129),()=>{const _0x541b7d=_0x14e8e0,_0xa8a680=this[_0x541b7d(0x12c)][_0x541b7d(0x172)][_0x541b7d(0x132)][_0x541b7d(0x140)][_0x541b7d(0x156)]();_0xa8a680&&_0xa8a680[_0x541b7d(0x16c)](_0x541b7d(0x14b))&&this[_0x541b7d(0x12c)][_0x541b7d(0x16a)][_0x541b7d(0x154)][_0x541b7d(0x164)](_0x541b7d(0x142),()=>{const _0x13a039=_0x541b7d;_0x5b01ed(this[_0x13a039(0x12c)],_0xa8a680);});});}}
|