(window["webpackJsonp-ae-fe/cosmos-1"]=window["webpackJsonp-ae-fe/cosmos-1"]||[]).push([[36],{100:function(e,t,r){var n=r(102);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},102:function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t,n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},105:function(e,t,r){var n=r(120),o=r(188),a=r(189),i=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},1080:function(e,t,r){"use strict";r.r(t);r(266),r(16);var n=r(6),o=r(8),a=(r(194),r(94),r(75),r(26)),i={AD:"EUR",AE:"AED",AF:"AFN",AG:"XCD",AI:"XCD",AL:"ALL",AM:"AMD",AO:"AOA",AR:"ARS",AS:"USD",AT:"EUR",AU:"AUD",AW:"AWG",AZ:"AZN",BA:"BAM",BB:"BBD",BD:"BDT",BE:"EUR",BF:"XOF",BG:"BGN",BH:"BHD",BI:"BIF",BJ:"XOF",BM:"BMD",BN:"BND",BO:"BOB",BR:"BRL",BT:"INR",BV:"NOK",BW:"BWP",BY:"BYN",BZ:"BZD",CA:"CAD",CG:"XAF",CH:"CHF",CL:"CLP",CM:"XAF",CO:"COP",CR:"CRC",CW:"ANG",CX:"AUD",CY:"EUR",DE:"EUR",DJ:"DJF",DK:"DKK",DM:"XCD",DO:"DOP",DZ:"DZD",EC:"USD",EE:"EUR",EG:"EGP",EH:"MAD",ER:"ERN",ES:"EUR",ET:"ETB",FI:"EUR",FJ:"FJD",FO:"DKK",FR:"EUR",GA:"XAF",GB:"GBP",UK:"GBP",GD:"XCD",GE:"GEL",GF:"EUR",GG:"GBP",GH:"GHS",GI:"GIP",GL:"DKK",GM:"GMD",GN:"GNF",GP:"EUR",GQ:"XAF",GR:"EUR",GT:"GTQ",GU:"USD",GW:"XOF",GY:"GYD",HK:"HKD",HN:"HNL",HR:"HRK",HT:"HTG",ID:"IDR",IE:"EUR",IL:"ILS",IM:"GBP",IN:"INR",IQ:"IQD",IS:"ISK",IT:"EUR",JE:"GBP",JM:"JMD",JO:"JOD",JP:"JPY",KE:"KES",KI:"AUD",KN:"XCD",KR:"KRW",KW:"KWD",KZ:"KZT",LA:"LAK",LB:"LBP",LC:"XCD",LI:"CHF",LK:"LKR",LS:"LSL",LT:"EUR",LU:"EUR",LV:"EUR",MA:"MAD",MC:"EUR",ME:"EUR",ML:"XOF",MM:"MMK",MN:"MNT",MP:"USD",MQ:"EUR",MS:"XCD",MT:"EUR",MU:"MUR",MV:"MVR",MX:"MXN",MY:"MYR",NA:"NAD",NC:"XPF",NE:"XOF",NF:"AUD",NG:"NGN",NI:"NIO",NL:"EUR",NO:"NOK",NP:"NPR",NR:"AUD",NU:"NZD",NZ:"NZD",OM:"OMR",PA:"PAB",PE:"PEN",PF:"XPF",PG:"PGK",PH:"PHP",PK:"PKR",PL:"PLN",PN:"NZD",PR:"USD",PT:"EUR",PW:"USD",PY:"PYG",QA:"QAR",RO:"RON",RS:"RSD",RU:"RUB",RW:"RWF",SA:"SAR",SB:"SBD",SC:"SCR",SE:"SEK",SG:"SGD",SI:"EUR",SK:"EUR",SL:"SLL",SM:"EUR",SN:"XOF",SO:"SOS",SR:"SRD",ST:"STD",SV:"SVC",SX:"ANG",SZ:"SZL",TD:"XAF",TF:"EUR",TG:"XOF",TH:"THB",TJ:"TJS",TK:"NZD",TM:"TMT",TN:"TND",TO:"TOP",TR:"TRY",TT:"TTD",TV:"AUD",TW:"TWD",TZ:"TZS",UA:"UAH",UG:"UGX",US:"USD",UY:"UYU",UZ:"UZS",VC:"XCD",VE:"VES",VG:"USD",VI:"USD",VN:"VND",VU:"VUV",WS:"WST",YE:"YER",YT:"EUR",ZA:"ZAR"},s=function(){if(window.ship_to_data_cache_key)return new Promise((function(e){e(window.ship_to_data_cache_key)}));var e=n.a.getRegion();e="CN"===e?"US":e||"US";var t=n.a.getProvince()||"",r=n.a.getCity()||"";return a.a.request({api:"mtop.aliexpress.address.shipto.recommend",v:"1.0",dataType:"originaljsonp",data:{countryCode:e,provinceCode:t,cityCode:r,targetLanguage:n.a.getLocale(),_lang:n.a.getLocale()}}).then((function(e){return e.data?(window.ship_to_data_cache_key=e.data,e.data):null}))},c="icbu-messenger",u="postMessage"in window;function l(e,t){this.target=e,this.name=t}function d(e,t){this.targets={},this.name=e,this.listenFunc=[],c=t||c,this.initListen()}l.prototype.send=u?function(e){this.target.postMessage(c+e,"*")}:function(e){var t=window.navigator[c+this.name];if("function"!=typeof t)throw new Error("target callback function is not defined");t(c+e,window)},d.prototype.addTarget=function(e,t){var r=new l(e,t);this.targets[t]=r},d.prototype.initListen=function(){var e=this,t=function(t){if("object"==typeof t&&t.data&&(t=t.data),"string"==typeof t&&-1!=t.indexOf(c)){t=t.slice(c.length);for(var r=0;r-1?"&":"?",f+="iframe_delete=true"),(n=document.createElement("iframe")).id=r,n.src=f,n.style.display="none",n.style.visibility="hidden",t=setInterval((function(){if(n&&n.contentWindow&&n.Messenger){for(var e=0,r=_.length;e1&&(C(arguments[arguments.length-1])&&(r=arguments[arguments.length-1]),arguments[1]!==r&&(t=arguments[1])),r=r||function(){},m((function(n){n.targets.proxy.send(b("get",e,(function(e,n){!e&&t&&t.filter&&(n=t.filter(n)),r(e,n)})))}))},set:function(e,t){var r,n;if(arguments.length>2&&(C(arguments[arguments.length-1])&&(n=arguments[arguments.length-1]),arguments[2]!==n&&(r=arguments[2])),n=n||function(){},r&&r.filter&&(t=r.filter(t)),!x(t))throw new Error('value must be String in "storeProxy2.set"!');m((function(r){r.targets.proxy.send(b("set",e,t,n))}))},remove:function(e,t){t=t||function(){},m((function(r){r.targets.proxy.send(b("remove",e,t))}))}},w={get:function(e,t){k.get(e,(function(r,n){if(!r&&n){var o=n.split("+__+");if(2!==o.length)return t("parse error",null),void k.remove(e);var a=o[0],i=o[1],s=0;try{a=JSON.parse(a),s=parseInt(i)}catch(r){return k.remove(e),void t("parse error",null)}if((new Date).getTime()>s)return k.remove(e),void t("over time",null);t(null,a)}else t(r,null)}))},set:function(e,t,r){"string"!=typeof t&&(t=JSON.stringify(t)),r||(r=31536e6);var n=(new Date).getTime()+1e3*r;k.set(e,t+"+__+"+n)},remove:k.remove},S=r(41),E=r.n(S),L=function(e,t){var r=e.country,n=e.province,o=e.city;void 0===t&&(t=!0);var a=E.a.getRegion();if(E.a.setProvince((null==n?void 0:n.code)||null),E.a.setCity((null==o?void 0:o.code)||null),null!=r&&r.code&&a!==(null==r?void 0:r.code)){E.a.setRegion(r.code);var s=i[null==r?void 0:r.code];s&&E.a.setCurrency(s),t&&window.location.reload()}},A=r(4),O=r.n(A),N=function(e){w.get("ship_to_detail_info",(function(t,r){var n=r;r&&(n=O()({},r,{provinceId:r.provinceCode,provinceName:r.provinceFullName,cityId:r.cityCode,cityName:r.cityFullName}),E.a.getProvince()&&E.a.getProvince()===n.provinceId||(n.provinceId="",n.provinceName=""),E.a.getCity()&&E.a.getCity()===n.cityId||(n.cityId="",n.cityName="")),e(t,n)}))},P=function(e){var t=e.country,r=e.province,n=e.city;N((function(e,o){var a={countryId:(null==t?void 0:t.code)||(null==o?void 0:o.countryId)||E.a.getRegion()||"US"};Object.assign(a,{cityCode:(null==n?void 0:n.code)||"",cityFullName:(null==n?void 0:n.name)||"",provinceCode:(null==r?void 0:r.code)||"",provinceFullName:(null==r?void 0:r.name)||""}),w.set("ship_to_detail_info",a)}))};function T(e){return(e=e||{}).ae_object_value&&(e.ae_object_value+=";"),e.ae_object_value+="_from=gep",e}var j=function(e){var t;e=T(e),null===(t=o.util.tracker)||void 0===t||t.clk(e)};r(135),r(28),r(393),r(875);r(876),r(90),r(877),r(81),r(780),r(878),r(879);var R=n.a.getRegion(),D=function(){if(n.a.isLoggedIn()&&"CN"!=R){w.get("_ship_to_default_change_flag",(function(e,t){e||t||s().then((function(e){if(e&&e.addressList&&e.addressList.length){var t,r=e.addressList[0];r&&(e.aerCountries&&-1===e.aerCountries.indexOf(r.countryId)||null===(t=e.aerCountries)||void 0===t||!t.length)&&(r.countryId!==n.a.getRegion()&&(w.set("_ship_to_default_change_flag",1),j({ae_button_type:"shipto_default_change_country"})),P({country:{code:r.countryId},province:{code:r.provinceId,name:r.provinceName},city:{code:r.cityId,name:r.cityName}}),L({country:{code:r.countryId},province:{code:r.provinceId},city:{code:r.cityId}}))}}))}))}};r(880),r(239);D()},109:function(e,t,r){var n=r(20).default,o=r(122);e.exports=function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},110:function(e,t){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},120:function(e,t,r){var n=r(92).Symbol;e.exports=n},122:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},125:function(e,t,r){var n=r(296),o=r(297),a=r(298),i=r(299),s=r(300);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991}},206:function(e,t,r){(function(e){var n=r(92),o=r(337),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===a?n.Buffer:void 0,c=(s?s.isBuffer:void 0)||o;e.exports=c}).call(this,r(157)(e))},207:function(e,t,r){var n=r(339),o=r(340),a=r(341),i=a&&a.isTypedArray,s=i?o(i):n;e.exports=s},208:function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},209:function(e,t,r){var n=r(345),o=r(347),a=r(158);e.exports=function(e){return a(e)?n(e,!0):o(e)}},210:function(e,t){var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e").replace(/"/g,'"').replace(/ /g," ")).replaceAll(/<\/i>/g,(function(e){var t;return'
'+(null==e||null===(t=e.toLowerCase())||void 0===t?void 0:t.replaceAll("css_flag","_global-css_flag"))+"
"})));var p='
\n
\n
\n

'+i+'

\n
'+c+'
\n
\n \n \n
\n
\n
";if(document.getElementById("saas-pop"))return Promise.reject();var f=document.createElement("div");return f.setAttribute("id","saas-pop"),f.innerHTML=p,document.body.appendChild(f),new Promise((function(e,n){var o,i,c=function(){u(t,r,"YES").then((function(t){l(),e({status:"SELECT_YES"})})).catch((function(e){n({status:"REQUEST_FAIL"})})),null===a.util||void 0===a.util||a.util.tracker.clk({ae_project_id:"180139",ae_page_type:s(),ae_button_type:"saas-pop-yes"})},l=function(){var e,t=document.getElementById("saas-pop");t&&(null===(e=document.getElementById("saas-pop-yes"))||void 0===e||e.removeEventListener("click",c),document.body.removeChild(t))};null===(o=document.getElementById("saas-pop-yes"))||void 0===o||o.addEventListener("click",c),null===(i=document.getElementById("saas-pop-no"))||void 0===i||i.addEventListener("click",(function(){u(t,r,"NO").then((function(t){l(),e({status:"SELECT_NO"})})).catch((function(e){l(),n({status:"REQUEST_FAIL"})})),null===a.util||void 0===a.util||a.util.tracker.clk({ae_project_id:"180139",ae_page_type:s(),ae_button_type:"saas-pop-no"})})),null===a.util||void 0===a.util||a.util.tracker.exp({exp_page:s(),exp_page_area:"dialog",exp_type:"saas-pop"})}))},u=function(e,t,r){return n.a.request({api:"mtop.ru.aliexpress.shipto.switch",v:"1.0",timeout:6e3,data:{currentCountry:e,toCountry:t,agreed:r,url:"",_lang:o.a.getLocale()||"en_US"}}).then((function(e){var t;return"true"===(null==e||null===(t=e.data)||void 0===t?void 0:t.result)?e:Promise.reject(e)}))},l=function(e,t,r){return e&&t?function(e,t,r){return n.a.request({api:"mtop.ru.aliexpress.shipto.switch",v:"1.0",timeout:6e3,data:{currentCountry:e,toCountry:t,_lang:o.a.getLocale()||"en_US"}}).then((function(n){var a,s,u;return"true"===(null==n||null===(a=n.data)||void 0===a||null===(s=a.model)||void 0===s?void 0:s.popup)?c(null==n||null===(u=n.data)||void 0===u?void 0:u.model,e,t).then((function(e){return"SELECT_YES"===(null==e?void 0:e.status)&&null!=r&&r.saveCookie?(o.a.setRegion(t),Object(i.syncCookieFunc)().then((function(){return null!=r&&r.refreshPage&&window.location.reload(),{status:"SELECT_YES"}})).catch((function(e){return Promise.resolve({status:"SELECT_YES"})}))):e})):Promise.resolve({status:"NO_POP"})})).catch((function(e){Promise.reject({status:"REQUEST_FAIL"})}))}(null==e?void 0:e.toUpperCase(),null==t?void 0:t.toUpperCase(),r).then((function(e){return!(!e||"SELECT_YES"!=(null==e?void 0:e.status)&&"NO_POP"!=(null==e?void 0:e.status))})):Promise.reject()};r(236),r(239),t.a=l},288:function(e,t,r){},289:function(e,t,r){},290:function(e,t,r){},293:function(e,t,r){var n=r(294),o=r(349)((function(e,t,r){n(e,t,r)}));e.exports=o},294:function(e,t,r){var n=r(295),o=r(200),a=r(324),i=r(326),s=r(95),c=r(209),u=r(208);e.exports=function e(t,r,l,d,p){t!==r&&a(r,(function(a,c){if(p||(p=new n),s(a))i(t,r,c,l,e,d,p);else{var f=d?d(u(t,c),a,c+"",t,r,p):void 0;void 0===f&&(f=a),o(t,c,f)}}),c)}},295:function(e,t,r){var n=r(125),o=r(301),a=r(302),i=r(303),s=r(304),c=r(305);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=a,u.prototype.get=i,u.prototype.has=s,u.prototype.set=c,e.exports=u},296:function(e,t){e.exports=function(){this.__data__=[],this.size=0}},297:function(e,t,r){var n=r(126),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},298:function(e,t,r){var n=r(126);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},299:function(e,t,r){var n=r(126);e.exports=function(e){return n(this.__data__,e)>-1}},300:function(e,t,r){var n=r(126);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},301:function(e,t,r){var n=r(125);e.exports=function(){this.__data__=new n,this.size=0}},302:function(e,t){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},303:function(e,t){e.exports=function(e){return this.__data__.get(e)}},304:function(e,t){e.exports=function(e){return this.__data__.has(e)}},305:function(e,t,r){var n=r(125),o=r(199),a=r(311);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(e,t),this.size=r.size,this}},306:function(e,t,r){var n=r(155),o=r(307),a=r(95),i=r(309),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,p=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(n(e)?p:s).test(i(e))}},307:function(e,t,r){var n,o=r(308),a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!a&&a in e}},308:function(e,t,r){var n=r(92)["__core-js_shared__"];e.exports=n},309:function(e,t){var r=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},310:function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},311:function(e,t,r){var n=r(312),o=r(319),a=r(321),i=r(322),s=r(323);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,s&&o(r[0],r[1],s)&&(i=a<3?void 0:i,a=1),t=Object(t);++n0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},357:function(e,t,r){var n=r(127),o=r(158),a=r(210),i=r(95);e.exports=function(e,t,r){if(!i(r))return!1;var s=typeof t;return!!("number"==s?o(r)&&a(t,r.length):"string"==s&&t in r)&&n(r[t],e)}},358:function(e,t,r){},359:function(e,t,r){},360:function(e,t,r){},393:function(e,t,r){"use strict";r.d(t,"a",(function(){return F})),r.d(t,"b",(function(){return I}));var n=r(4),o=r.n(n),a=r(0),i=r.n(a),s=r(122),c=r.n(s),u=r(79),l=r.n(u),d=r(1),p=r.n(d),f=r(28),h=r.n(f),_=r(69),y=r.n(_),v=r(50),g=r.n(v),m=r(26),b=function(e){return e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):""},C=(r(288),r(289),r(410)),x=function(){return h.a.createElement(C.a,{fontSize:14,className:"tick-container"})},k=function(e){var t=e.label,r=e.code,n=e.checked,o=e.onChange;return h.a.createElement("div",{className:"container m-address_list-item_container",onClick:function(){return o(r)}},h.a.createElement("span",{className:"flex mr-16 align-center"},t),n&&h.a.createElement(x,null))};k.propTypes={label:y.a.oneOfType([y.a.string,y.a.array,y.a.element]),code:y.a.string.isRequired,checked:y.a.bool,onChange:y.a.func.isRequired};var w=k,S=(r(290),function(e){var t=e.items,r=e.onChange;return t.length?h.a.createElement("ul",{className:"list"},t.map((function(e){return[h.a.createElement("li",{name:e.tagName,key:e.groupLabel,className:"group-label","data-index":e.groupIndex},e.groupLabel),e.items.length&&e.items.map((function(e){return h.a.createElement(w,{key:e.code,label:e.label,checked:e.checked,code:e.code,onChange:r})}))]}))):null});S.propTypes={items:y.a.array,onChange:y.a.func.isRequired};var E=S,L=r(291),A=r.n(L),O=r(292),N=r.n(O),P=r(60),T=r.n(P);function j(e){return"function"==typeof e}var R=r(293),D=r.n(R);function U(e){void 0===e&&(e=[]);var t=[],r=e.reduce((function(e,t){var r=t.name,n=t.code,o=r.charAt();return e[o]=e[o]||[],e[o].push(D()({},t,{label:r,value:n})),e}),{});for(var n in r)t.push({group:n,addressNodeList:r[n]});return t.sort((function(e,t){var r=e.group.toUpperCase(),n=t.group.toUpperCase();return rn?1:0})),t}var M,B=r(266),z=/aliexpress.us/.test((null===(M=location)||void 0===M?void 0:M.hostname)||"")?"https://m.aliexpress.us":"https://m.aliexpress.com",F=0,I=1,H=z+"/api/logistics/addresslist",G=z+"/api/logistics/hots",K=z+"/api/setting/address",$=z+"/api/logistics/addresslist",q=z+"/api/logistics/hots",Y=z+"/api/setting/address",X=(r(237),r(358),function(e){function t(){return e.apply(this,arguments)||this}return l()(t,e),t.prototype.render=function(){return h.a.createElement("span",{className:"flag country-flag mr-16 "+this.props.code})},t}(h.a.PureComponent)),Z=X;X.propTypes={code:y.a.string};var W=r(59),J=r.n(W),V=r(61),Q=r.n(V),ee=r(74),te=["className","fontSize","style"];function re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ne(e){for(var t=1;t0||n[a]||o[i])&&h.a.createElement(A.a,{resistance:!0,animateHeight:!0,index:t,onChangeIndex:this.changeTab,className:v},this.renderSwipeable()),t===F&&h.a.createElement(N.a,{indexList:(y||[]).map((function(e){return e.group})),tagName:"countryList",scrollableEl:this.getScrollable()}),t===I&&h.a.createElement(N.a,{indexList:(n[a]||[]).map((function(e){return e.group})),tagName:"provinceList",scrollableEl:this.getScrollable()}),2===t&&h.a.createElement(N.a,{indexList:(o[i]||[]).map((function(e){return e.group})),tagName:"cityList",scrollableEl:this.getScrollable()}))},t}(h.a.Component);he.propTypes={reqType:y.a.string,useMsiteReq:y.a.bool,activeTab:y.a.number,countryCode:y.a.string,provinceCode:y.a.string,cityCode:y.a.string,onAddressChange:y.a.func,scrollableEl:y.a.instanceOf(Element),onClose:y.a.func,cache:y.a.bool,allowSettingsUpdate:y.a.bool,useLocalAddress:y.a.bool,targetLanguage:y.a.string,onSettingsUpdated:y.a.func,i18n:y.a.func.isRequired,caiNiaoWhiteList:y.a.shape(),skipCookieChange:y.a.bool,countryUseMtopReq:y.a.bool,countryMtopApi:y.a.string},he.defaultProps={reqType:"json",useMsiteReq:!1,activeTab:F,cache:!1,allowSettingsUpdate:!1,useLocalAddress:!1,targetLanguage:"en_US",caiNiaoWhiteList:{RU:!0,BN:!0,ES:!0,CN:!0,CL:!0,CW:!0,UK:!0,KR:!0,NL:!0,NZ:!0,UA:!0,HK:!0,MO:!0,TW:!0,SA:!0,AE:!0,US:!0,KZ:!0,PL:!0,TR:!0,BR:!0,IT:!0,FR:!0},skipCookieChange:!1};t.c=he},41:function(e,t,r){"use strict";var n=r(42).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(43)),a=n(r(44)),i=n(r(48)),s=r(49),c=new(function(){function e(){(0,o.default)(this,e),this.siteFormat=/^[a-z]{3}(_[a-z]{1})?$/,this.x_localeFormat=/^[a-z]{2}_[A-Z]{2}$/,this.s_localeFormat=/^[a-z]{2}_[A-Z]{2}$/,this.b_localeFormat=/^[a-z]{2}_[A-Z]{2}$/,this.c_tpFormat=/^[A-Z]{3}$/,this.regionFormat=/^[A-Z]{2,3}$/,this.provinceFormat=/^[0-9]{18}$/,this.cityFormat=/^[0-9]{18}$/,this.siFormat=/^(glo|rus|bra|esp|idn|fra|deu|ita)$/,this.signFormat=/^(y|n)$/,this.rmb_ppFormat=/^.*$/,this.x_userFormat=/^.*$/,this.issFormat=/^(y)$/,this.isbFormat=/^(y)$/,this.ispmFormat=/^(y)$/,this.isksFormat=/^(y)$/,this.isgclFormat=/^(y)$/,this.reg_verFormat=/^(new|old)$/,this.x_lFormat=/^[01]{1}$/,this.ber_lFormat=/^A\d$/,this.zero_orderFormat=/^(y)$/,this.ae_u_p_sFormat=/^[012]{1}$/,this.ups_dFormat=/^[01\|]{7,}$/,this.ups_u_tFormat=/^[0-9]{13,}$/,this.re_snsFormat=/^.*$/,this.x_csrfFormat=/^.*$/,this.x_c_chgFormat=/^[01]{1}$/,this.x_c_syncedFormat=/^[01]{1}$/,this.acs_rtFormat=/^[A-Za-z0-9]+$/,this.alimidFormat=/^[0-9]+$/,this.x_as_iFormat=/^([A-Za-z0-9]|(%))+/,this.x_lidFormat=/^[A-Za-z0-9]+$/}return(0,a.default)(e,[{key:"get",value:function(e,t){return i.default.get(e,t)}},{key:"_setcookie",value:function(e,t,r){if(r&&!this.validate(t,r))return!1;var n=i.default.get(e,{domain:(0,s.getFixedDomainUrl)(),path:"/",raw:!0})||"";n=new RegExp("(.*&?"+t+"=)(.*?)(&.*|$)").test(n)?RegExp.$1+r+RegExp.$3:(n?n+"&":"")+t+"="+r,i.default.set(e,n,{domain:(0,s.getFixedDomainUrl)(),path:"/",expires:3650,raw:!0})}},{key:"_getCookie",value:function(e,t){var r=i.default.get(e,{domain:(0,s.getFixedDomainUrl)(),path:"/",raw:!0})||"",n=new RegExp("(.*&?"+t+"=)(.*?)(&.*|$)");r.match(n);var o=RegExp.$2;return n.test(r)&&this.validate(t,o)?o:""}},{key:"validate",value:function(e,t){return!/(&|=)/.test(t)&&!!(t&&this[e+"Format"]&&this[e+"Format"].test(t))}},{key:"getMSite",value:function(e,t){var r=i.default.get(e,{domain:"m.aliexpress.com",path:"/",raw:!0})||"",n=new RegExp("(.*&?"+t+"=)(.*?)(&.*|$)");r.match(n);var o=RegExp.$2;return n.test(r)&&this.validate(t,o)?o:""}},{key:"setSite",value:function(e){this._setcookie("aep_usuc_f","site",e)}},{key:"getSite",value:function(){return this._getCookie("aep_usuc_f","site")}},{key:"setRegion",value:function(e){this._setcookie("aep_usuc_f","region",e)}},{key:"getRegion",value:function(){return this._getCookie("aep_usuc_f","region")}},{key:"setProvince",value:function(e){this._setcookie("aep_usuc_f","province",e)}},{key:"getProvince",value:function(){return this._getCookie("aep_usuc_f","province")}},{key:"setCity",value:function(e){this._setcookie("aep_usuc_f","city",e)}},{key:"getCity",value:function(){return this._getCookie("aep_usuc_f","city")}},{key:"getAlimid",value:function(){return this._getCookie("aep_usuc_f","alimid")}},{key:"getMsiteProvince",value:function(){return i.default.get("ae-msite-province",{domain:(0,s.getFixedDomainUrl)(),path:"/",raw:!0})||""}},{key:"getMsiteCity",value:function(){return i.default.get("ae-msite-city",{domain:(0,s.getFixedDomainUrl)(),path:"/",raw:!0})||""}},{key:"setCurrency",value:function(e){this._setcookie("aep_usuc_f","c_tp",e)}},{key:"getCurrency",value:function(){return this._getCookie("aep_usuc_f","c_tp")}},{key:"setLocale",value:function(e){this._setcookie("xman_us_f","x_locale",e)}},{key:"getLocale",value:function(){return this._getCookie("xman_us_f","x_locale")}},{key:"setSellerLocale",value:function(e){i.default.set("intl_locale",e,{domain:(0,s.getFixedDomainUrl)(),path:"/",expires:365,raw:!0}),this.setLocale(e),this._setcookie("aep_usuc_f","s_locale",e)}},{key:"getSellerLocale",value:function(){return this._getCookie("aep_usuc_f","s_locale")}},{key:"setBuyerLocale",value:function(e){this.setLocale(e),this._setcookie("aep_usuc_f","b_locale",e)}},{key:"getBuyerLocale",value:function(){return this._getCookie("aep_usuc_f","b_locale")}},{key:"getSign",value:function(){return this._getCookie("xman_us_t","sign")}},{key:"isLoggedIn",value:function(){return"y"==this.getSign()}},{key:"getLoginId",value:function(){return this._getCookie("xman_us_t","rmb_pp")}},{key:"getIss",value:function(){return this._getCookie("aep_usuc_f","iss")}},{key:"isSeller",value:function(){return"y"===this.getIss()}},{key:"getIsb",value:function(){return this._getCookie("aep_usuc_f","isb")}},{key:"isBuyer",value:function(){return"y"===this.getIsb()}},{key:"getIsks",value:function(){return this._getCookie("aep_usuc_f","isks")}},{key:"isKaSeller",value:function(){return"y"===this.getIsks()}},{key:"getIsgcl",value:function(){return this._getCookie("aep_usuc_f","isgcl")}},{key:"isGreenChannel",value:function(){return"y"===this.getIsgcl()}},{key:"getIspm",value:function(){return this._getCookie("aep_usuc_f","ispm")}},{key:"isPremiumMember",value:function(){return"y"===this.getIspm()}},{key:"getIsfm",value:function(){return this._getCookie("aep_usuc_f","isfm")}},{key:"isFreeMember",value:function(){return"y"===this.getIsfm()}},{key:"getRegVer",value:function(){return this._getCookie("aep_usuc_f","reg_ver")}},{key:"getOversea",value:function(){return this._getCookie("xman_us_f","x_l")}},{key:"isOversea",value:function(){return"1"!==this.getOversea()}},{key:"_getXUserRaw",value:function(){return this._getCookie("xman_us_f","x_user")}},{key:"getXUserObj",value:function(){var e={country:"",firstName:"",lastName:"",memberSeq:""},t=(this._getXUserRaw()||"").split("|");return t.length>=5&&(e.country=t[0],e.firstName=t[1].replace(//g,">"),e.lastName=t[2].replace(//g,">"),e.memberSeq=t[4]),e}},{key:"getMemberSeq",value:function(){return this.getXUserObj().memberSeq}},{key:"isNewUser",value:function(){return""===this.getXUserObj().memberSeq}},{key:"setAETest",value:function(){}},{key:"getAETest",value:function(){return""}},{key:"getBerL",value:function(){return this._getCookie("aep_usuc_t","ber_l")}},{key:"getZeroOrder",value:function(){return this._getCookie("xman_us_f","zero_order")}},{key:"isZeroOrderUser",value:function(){return"y"===this.getZeroOrder()}},{key:"getAeUps",value:function(){return this._getCookie("aep_usuc_f","ae_u_p_s")}},{key:"setAeUps",value:function(e){return this._setcookie("aep_usuc_f","ae_u_p_s",e)}},{key:"getAeUpsDetail",value:function(){return this._getCookie("aep_usuc_f","ups_d")}},{key:"setAeUpsDetail",value:function(e){return this._setcookie("aep_usuc_f","ups_d",e)}},{key:"getAeUpsTime",value:function(){return this._getCookie("aep_usuc_f","ups_u_t")}},{key:"setAeUpsTime",value:function(e){return this._setcookie("aep_usuc_f","ups_u_t",e)}},{key:"getReSns",value:function(){return this._getCookie("aep_usuc_f","re_sns")}},{key:"getCsrfToken",value:function(){var e=this._getCookie("acs_usuc_t","x_csrf");return e||(window.__bl&&window.__bl.api?window.__bl.error(new Error("Cookie.getCsrfToken error")):window.__bl&&(window.__bl.pipe=window.__bl.pipe||[],window.__bl.pipe.push(["error",new Error("Cookie.getCsrfToken error")]))),e}},{key:"getXmanCookieChanged",value:function(){return this._getCookie("xman_us_f","x_c_chg")}},{key:"setXmanCookieChanged",value:function(e){return this._setcookie("xman_us_f","x_c_chg",""+e)}},{key:"getXmanCookieSynced",value:function(){return this._getCookie("xman_us_f","x_c_synced")}},{key:"setXmanCookieSynced",value:function(e){return this._setcookie("xman_us_f","x_c_synced",""+e)}},{key:"getACS_RT",value:function(){return this._getCookie("xman_us_f","acs_rt")}},{key:"getX_AS_I",value:function(){return this._getCookie("xman_us_f","x_as_i")}},{key:"getCNA",value:function(){return i.default.get("cna",{domain:(0,s.getFixedDomainUrl)(),path:"/",raw:!0})||""}},{key:"getAliApacheId",value:function(){return i.default.get("ali_apache_id",{domain:(0,s.getFixedDomainUrl)(),path:"/",raw:!0})||""}},{key:"getAeucid",value:function(){return i.default.get("aeu_cid",{domain:(0,s.getFixedDomainUrl)(),path:"/",raw:!0})||""}}]),e}());window.lib=window.lib||{},window.lib.cookie=c;var u=c;t.default=u},43:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},44:function(e,t,r){var n=r(46);function o(e,t){for(var r=0;r0)for(var n,a,s,c=t?o:u,l=e.split(/;\s/g),d=0,p=l.length;d