i18n-postal-address
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -0,1 +1,6 @@ | ||
## 0.0.6 | ||
> Sep 8, 2018 | ||
- Should fix [Issue \#1](https://github.com/joaocarmo/i18n-postal-address/issues/1) | ||
## 0.0.5 | ||
@@ -2,0 +7,0 @@ > Jul 24, 2018 |
@@ -1,1 +0,1 @@ | ||
!function(a,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.PostalAddress=e():a.PostalAddress=e()}("undefined"!=typeof self?self:this,function(){return function(a){var e={};function t(r){if(e[r])return e[r].exports;var s=e[r]={i:r,l:!1,exports:{}};return a[r].call(s.exports,s,s.exports,t),s.l=!0,s.exports}return t.m=a,t.c=e,t.d=function(a,e,r){t.o(a,e)||Object.defineProperty(a,e,{enumerable:!0,get:r})},t.r=function(a){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},t.t=function(a,e){if(1&e&&(a=t(a)),8&e)return a;if(4&e&&"object"==typeof a&&a&&a.__esModule)return a;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:a}),2&e&&"string"!=typeof a)for(var s in a)t.d(r,s,function(e){return a[e]}.bind(null,s));return r},t.n=function(a){var e=a&&a.__esModule?function(){return a.default}:function(){return a};return t.d(e,"a",e),e},t.o=function(a,e){return Object.prototype.hasOwnProperty.call(a,e)},t.p="",t(t.s=1)}([function(a){a.exports={Afghanistan:"AF","Aland Islands":"AX",Albania:"AL",Algeria:"DZ","American Samoa":"AS",Andorra:"AD",Angola:"AO",Anguilla:"AI",Antarctica:"AQ","Antigua and Barbuda":"AG",Argentina:"AR",Armenia:"AM",Aruba:"AW",Australia:"AU",Austria:"AT",Azerbaijan:"AZ",Bahamas:"BS",Bahrain:"BH",Bangladesh:"BD",Barbados:"BB",Belarus:"BY",Belgium:"BE",Belize:"BZ",Benin:"BJ",Bermuda:"BM",Bhutan:"BT","Bolivia (Plurinational State of)":"BO","Bonaire Sint Eustatius and Saba":"BQ","Bosnia and Herzegovina":"BA",Botswana:"BW","Bouvet Island":"BV",Brazil:"BR","British Indian Ocean Territory":"IO","Brunei Darussalam":"BN",Bulgaria:"BG","Burkina Faso":"BF",Burundi:"BI","Cabo Verde":"CV",Cambodia:"KH",Cameroon:"CM",Canada:"CA","Cayman Islands":"KY","Central African Republic":"CF",Chad:"TD",Chile:"CL",China:"CN","Christmas Island":"CX","Cocos (Keeling) Islands":"CC",Colombia:"CO",Comoros:"KM",Congo:"CG","Congo (Democratic Republic of the)":"CD","Cook Islands":"CK","Costa Rica":"CR","Cote d'Ivoire":"CI",Croatia:"HR",Cuba:"CU",Curacao:"CW",Cyprus:"CY",Czechia:"CZ",Denmark:"DK",Djibouti:"DJ",Dominica:"DM","Dominican Republic":"DO",Ecuador:"EC",Egypt:"EG","El Salvador":"SV","Equatorial Guinea":"GQ",Eritrea:"ER",Estonia:"EE",Ethiopia:"ET","Falkland Islands (Malvinas)":"FK","Faroe Islands":"FO",Fiji:"FJ",Finland:"FI",France:"FR","French Guiana":"GF","French Polynesia":"PF","French Southern Territories":"TF",Gabon:"GA",Gambia:"GM",Georgia:"GE",Germany:"DE",Ghana:"GH",Gibraltar:"GI",Greece:"GR",Greenland:"GL",Grenada:"GD",Guadeloupe:"GP",Guam:"GU",Guatemala:"GT",Guernsey:"GG",Guinea:"GN","Guinea-Bissau":"GW",Guyana:"GY",Haiti:"HT","Heard Island and McDonald Islands":"HM","Holy See":"VA",Honduras:"HN","Hong Kong":"HK",Hungary:"HU",Iceland:"IS",India:"IN",Indonesia:"ID","Iran (Islamic Republic of)":"IR",Iraq:"IQ",Ireland:"IE","Isle of Man":"IM",Israel:"IL",Italy:"IT",Jamaica:"JM",Japan:"JP",Jersey:"JE",Jordan:"JO",Kazakhstan:"KZ",Kenya:"KE",Kiribati:"KI","Korea (Democratic People's Republic of)":"KP","Korea (Republic of)":"KR",Kuwait:"KW",Kyrgyzstan:"KG","Lao People's Democratic Republic":"LA",Latvia:"LV",Lebanon:"LB",Lesotho:"LS",Liberia:"LR",Libya:"LY",Liechtenstein:"LI",Lithuania:"LT",Luxembourg:"LU",Macao:"MO","Macedonia (the former Yugoslav Republic of)":"MK",Madagascar:"MG",Malawi:"MW",Malaysia:"MY",Maldives:"MV",Mali:"ML",Malta:"MT","Marshall Islands":"MH",Martinique:"MQ",Mauritania:"MR",Mauritius:"MU",Mayotte:"YT",Mexico:"MX","Micronesia (Federated States of)":"FM","Moldova (Republic of)":"MD",Monaco:"MC",Mongolia:"MN",Montenegro:"ME",Montserrat:"MS",Morocco:"MA",Mozambique:"MZ",Myanmar:"MM",Namibia:"NA",Nauru:"NR",Nepal:"NP",Netherlands:"NL","New Caledonia":"NC","New Zealand":"NZ",Nicaragua:"NI",Niger:"NE",Nigeria:"NG",Niue:"NU","Norfolk Island":"NF","Northern Mariana Islands":"MP",Norway:"NO",Oman:"OM",Pakistan:"PK",Palau:"PW","Palestine State of":"PS",Panama:"PA","Papua New Guinea":"PG",Paraguay:"PY",Peru:"PE",Philippines:"PH",Pitcairn:"PN",Poland:"PL",Portugal:"PT","Puerto Rico":"PR",Qatar:"QA",Reunion:"RE",Romania:"RO","Russian Federation":"RU",Rwanda:"RW","Saint Barthelemy":"BL","Saint Helena Ascension and Tristan da Cunha":"SH","Saint Kitts and Nevis":"KN","Saint Lucia":"LC","Saint Martin (French part)":"MF","Saint Pierre and Miquelon":"PM","Saint Vincent and the Grenadines":"VC",Samoa:"WS","San Marino":"SM","Sao Tome and Principe":"ST","Saudi Arabia":"SA",Senegal:"SN",Serbia:"RS",Seychelles:"SC","Sierra Leone":"SL",Singapore:"SG","Sint Maarten (Dutch part)":"SX",Slovakia:"SK",Slovenia:"SI","Solomon Islands":"SB",Somalia:"SO","South Africa":"ZA","South Georgia and the South Sandwich Islands":"GS","South Sudan":"SS",Spain:"ES","Sri Lanka":"LK",Sudan:"SD",Suriname:"SR","Svalbard and Jan Mayen":"SJ",Swaziland:"SZ",Sweden:"SE",Switzerland:"CH","Syrian Arab Republic":"SY","Taiwan Province of China":"TW",Tajikistan:"TJ","Tanzania United Republic of":"TZ",Thailand:"TH","Timor-Leste":"TL",Togo:"TG",Tokelau:"TK",Tonga:"TO","Trinidad and Tobago":"TT",Tunisia:"TN",Turkey:"TR",Turkmenistan:"TM","Turks and Caicos Islands":"TC",Tuvalu:"TV",Uganda:"UG",Ukraine:"UA","United Arab Emirates":"AE","United Kingdom of Great Britain and Northern Ireland":"GB","United States of America":"US","United States Minor Outlying Islands":"UM",Uruguay:"UY",Uzbekistan:"UZ",Vanuatu:"VU","Venezuela (Bolivarian Republic of)":"VE","Viet Nam":"VN","Virgin Islands (British)":"VG","Virgin Islands (U.S.)":"VI","Wallis and Futuna":"WF","Western Sahara":"EH",Yemen:"YE",Zambia:"ZM",Zimbabwe:"ZW"}},function(a,e,t){"use strict";t.r(e);const r=a=>"string"==typeof a?a.toUpperCase():"",s={AR:{default:{array:[["honorific","firstName","secondName","firstLastName"],["secondLastName"],["companyName"],["address1","address2"],["postalCode","city"],["state"],["country"]]}},AU:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["city","state","postalCode"],["country"]]}},BG:{default:{array:[["country"],["state"],["postalCode","city"],["address1"],["address2"],["companyName"],["honorific","firstName","secondName","lastName"]]}},BR:{default:{array:[["companyName"],["honorific","firstName","secondName","lastName"],["address1","address2"],["postalCode","city","state"],["country"]]}},CA:{english:{array:[["honorific","firstName","lastName"],["companyName"],["address1","address2"],["city","province","postalCode"],["country"]]},french:{array:[["honorific","firstName","lastName"],["address1","address2"],["city","province"],["postalCode"],["country"]]}},CH:{default:{array:[["honorific","firstName","lastName"],["address1","address2"],["postalCode","city"],["country"]]}},CN:{default:{array:[["country"],["province","city"],["address1","address2"],["companyName"],["lastName","firstName","honorific"]]}},CZ:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},DE:{default:{array:[["companyName"],["honorific","title","firstName","lastName"],["address1"],["address2"],[""],["countryAlpha2","postalCode","city"],["country"]]}},DK:{default:{array:[["honorific","title","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["countryAlpha2","postalCode","city"],["country"]]}},ES:{default:{array:[["honorific","firstName","secondName","firstLastName"],["secondLastName"],["companyName"],["address1","address2"],["postalCode","city"],["country"]]}},FI:{default:{array:[["title","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},FR:{default:{array:[["honorific","firstName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},GR:{default:{array:[["title","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},HR:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},HU:{business:{array:[["honorific","lastName","firstName","secondName"],["companyName"],["postalCode","city"],["address1"],["address2"],["state"],["country"]]},default:{array:[["honorific","lastName","firstName"],["city"],["address1","address2"],["postalCode"],["state"],["country"]]}},IT:{default:{array:[["honorific","firstName","lastName"],["companyName"],["address1","address2"],[""],["countryAlpha2","postalCode","city","province"],["country"]]}},JP:{default:{array:[["country"],["postalCode","prefecture","city"],["address1","address2"],["companyName"],["lastName","firstName","honorific"]]}},KR:{default:{array:[["country"],["do","si","dong","gu","addressNum"],["companyName"],["lastName","firstName","honorific"]]}},MY:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["state","country"]]}},NL:{business:{array:[["companyName"],["t.a.v.","title","firstName","secondName","lastName"],["address1"],["address2"],["postalCode","city"],["country"]]},default:{array:[["title","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},NO:{business:{array:[["companyName"],["address1"],["firstName","lastName"],["address2"],["postalCode","city"],["country"]]},personal:{array:[["jobTitle","firstName","lastName"],["address1","address2"],["postalCode",{attribute:"city",transforms:[r]}],["country"]]}},PL:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},PT:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},RO:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["state"],["country"]]}},RU:{default:{array:[["country"],["republic","state","region","city"],["address1"],["address2"],["companyName"],["lastName"],["firstName","secondName"]]}},SE:{business:{array:[["companyName"],["firstName","lastName"],["address1"],["address2"],["postalCode","city"],["country"]]},personal:{array:[["jobTitle","firstName","lastName"],["address1","address2"],["postalCode",{attribute:"city",transforms:[r]}],["country"]]}},TR:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},US:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["city","state","postalCode"],[{attribute:"country",transforms:[r]}]]}}};s.CA.default=s.CA.english,s.RS=s.HR,s.SI=s.HR,s.KP=s.KR,s.NO.default=s.CA.personal,s.CA.default=s.CA.personal,s.BO=s.AR,s.CL=s.AR,s.CO=s.AR,s.EC=s.AR,s.GY=s.AR,s.PY=s.AR,s.PE=s.AR,s.UY=s.AR,s.VE=s.AR;var o=s;var i={array:(a,e,t=!0)=>{const r=[];return Array.isArray(e)&&e.forEach(e=>{const s=[];Array.isArray(e)&&e.forEach(e=>{if("string"==typeof e)a[e]&&s.push(a[e]);else if("object"==typeof e&&"string"==typeof e.attribute){let r=a[e.attribute];t&&Array.isArray(e.transforms)&&e.transforms.forEach(a=>{"function"==typeof a&&(r=a(r))}),r&&s.push(r)}}),s.length>0&&r.push(s)}),r},string:(a,e,t=!0)=>""},n=t(0);var d={address1:"",address2:"",addressNum:"",city:"",companyName:"",country:"",countryAlpha2:"",do:"",dong:"",firstLastName:"",firstName:"",gu:"",honorific:"",jobTitle:"",lastName:"",postalCode:"",prefecture:"",province:"",region:"",republic:"",secondLastName:"",secondName:"",si:"",state:"",title:""};e.default=class{constructor(){this.outputFormat="array",this.formatForCountry="US",this.formatForType="default",this.useTransforms=!0,this.object={...d},this.validators={formatForCountry:a=>this.allowed.formatForCountry.includes(a),formatForType:a=>this.allowed.formatForType.includes(a),outputFormat:a=>this.allowed.outputFormat.includes(a)},this.allowed={formatForCountry:Object.keys(o),formatForType:["business","default","english","french","personal"],outputFormat:["array","string"]},this.addressFormats=o,this.addressParsers=i}validator(a,e,t=!0){let r="";r=t?this.object[a]:this[a];const s=this.validators[a];return"function"==typeof s?s(e)?e:r:e}setProperty(a,e,t=!0){"string"==typeof e&&(t?"string"==typeof this.object[a]&&(this.object[a]=this.validator(a,e,t)):"string"==typeof this[a]&&(this[a]=this.validator(a,e,t)))}setAddress(a){this.setAddress1(a)}setAddress1(a){this.setProperty("address1",a),this.setProperty("dong",a)}setAddress2(a){this.setProperty("address2",a)}setAddressNum(a){this.setProperty("addressNum",a)}setCity(a){this.setProperty("city",a),this.setProperty("si",a)}setCompanyName(a){this.setProperty("companyName",a)}setCountry(a){this.setProperty("country",a);const e=n[a];e&&this.setProperty("countryAlpha2",e)}setDo(a){this.setProperty("do",a),this.setProperty("province",a)}setDong(a){this.setProperty("dong",a),this.setProperty("address1",a)}setFirstLastName(a){this.setProperty("firstLastName",a)}setFirstName(a){this.setProperty("firstName",a)}setGu(a){this.setProperty("gu",a)}setHonorific(a){this.setProperty("honorific",a)}setJobTitle(a){this.setProperty("jobTitle",a)}setLastName(a){this.setProperty("lastName",a),this.setProperty("secondLastName",a)}setPostalCode(a){this.setProperty("postalCode",a)}setPrefecture(a){this.setProperty("prefecture",a)}setProvince(a){this.setProperty("province",a),this.setProperty("do",a)}setRegion(a){this.setProperty("region",a)}setRepublic(a){this.setProperty("republic",a)}setSecondLastName(a){this.setProperty("secondLastName",a),this.setProperty("lastName",a)}setSecondName(a){this.setProperty("secondName",a)}setSi(a){this.setProperty("si",a),this.setProperty("city",a)}setState(a){this.setProperty("state",a)}setTitle(a){this.setProperty("title",a)}setOutputFormat(a){this.setProperty("outputFormat",a,!1)}setFormat({country:a,type:e,useTransforms:t}){"string"==typeof a&&this.setProperty("formatForCountry",a,!1),"string"==typeof e&&this.setProperty("formatForType",e,!1),"boolean"==typeof t&&(this.useTransforms=t)}getFormat(a){const{outputFormat:e,formatForCountry:t,formatForType:r,addressFormats:s}=this,o=a||e;let i=s[t];i||(i=s.US);let n={};return i[r]?n=i[r]:i.default&&(n=i.default),n[o]?n[o]:n.array?n.array:null}getParser(a){const{outputFormat:e,addressParsers:t}=this,r=a||e;return t[r]?t[r]:null}output(a){const{useTransforms:e}=this,t=this.getFormat(a),r=this.getParser(a);return"function"==typeof r&&t?r(this.object,t,e):null}toString(){const a=this.output("array");return a?a.map(a=>a.join(" ")).join("\n"):null}raw(){return this.object}}}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.PostalAddress=e():t.PostalAddress=e()}("undefined"!=typeof self?self:this,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)r.d(n,a,function(e){return t[e]}.bind(null,a));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=39)}([function(t,e,r){var n=r(2),a=r(7),o=r(3),i=r(12),s=r(23),u=function(t,e,r){var c,f,l,d,y=t&u.F,p=t&u.G,m=t&u.S,h=t&u.P,v=t&u.B,N=p?n:m?n[e]||(n[e]={}):(n[e]||{}).prototype,b=p?a:a[e]||(a[e]={}),S=b.prototype||(b.prototype={});for(c in p&&(r=e),r)l=((f=!y&&N&&void 0!==N[c])?N:r)[c],d=v&&f?s(l,n):h&&"function"==typeof l?s(Function.call,l):l,N&&i(N,c,l,t&u.U),b[c]!=l&&o(b,c,d),h&&S[c]!=l&&(S[c]=l)};n.core=a,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,r){var n=r(29)("wks"),a=r(13),o=r(2).Symbol,i="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=i&&o[t]||(i?o:a)("Symbol."+t))}).store=n},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,r){var n=r(8),a=r(22);t.exports=r(6)?function(t,e,r){return n.f(t,e,a(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(0);n(n.S+n.F*!r(6),"Object",{defineProperty:r(8).f})},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){t.exports=!r(9)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var r=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},function(t,e,r){var n=r(11),a=r(40),o=r(41),i=Object.defineProperty;e.f=r(6)?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),a)try{return i(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(5);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,r){var n=r(2),a=r(3),o=r(10),i=r(13)("src"),s=Function.toString,u=(""+s).split("toString");r(7).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,r,s){var c="function"==typeof r;c&&(o(r,"name")||a(r,"name",e)),t[e]!==r&&(c&&(o(r,i)||a(r,i,t[e]?""+t[e]:u.join(String(e)))),t===n?t[e]=r:s?t[e]?t[e]=r:a(t,e,r):(delete t[e],a(t,e,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[i]||s.call(this)})},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){var n=r(16);t.exports=function(t){return Object(n(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports={}},function(t,e,r){var n=r(25),a=r(16);t.exports=function(t){return n(a(t))}},function(t,e,r){var n=r(53),a=r(36);t.exports=Object.keys||function(t){return n(t,a)}},function(t,e,r){var n=r(29)("keys"),a=r(13);t.exports=function(t){return n[t]||(n[t]=a(t))}},function(t,e,r){var n=r(5),a=r(2).document,o=n(a)&&n(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(42);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,a){return t.call(e,r,n,a)}}return function(){return t.apply(e,arguments)}}},function(t,e,r){var n=r(23),a=r(25),o=r(15),i=r(26),s=r(46);t.exports=function(t,e){var r=1==t,u=2==t,c=3==t,f=4==t,l=6==t,d=5==t||l,y=e||s;return function(e,s,p){for(var m,h,v=o(e),N=a(v),b=n(s,p,3),S=i(N.length),g=0,P=r?y(e,S):u?y(e,0):void 0;S>g;g++)if((d||g in N)&&(h=b(m=N[g],g,v),t))if(r)P[g]=h;else if(h)switch(t){case 3:return!0;case 5:return m;case 6:return g;case 2:P.push(m)}else if(f)return!1;return l?-1:c||f?f:P}}},function(t,e,r){var n=r(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,r){var n=r(27),a=Math.min;t.exports=function(t){return t>0?a(n(t),9007199254740991):0}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(14);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(7),a=r(2),o=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(30)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!1},function(t,e,r){"use strict";var n=r(9);t.exports=function(t,e){return!!t&&n(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,r){for(var n=r(33),a=r(19),o=r(12),i=r(2),s=r(3),u=r(17),c=r(1),f=c("iterator"),l=c("toStringTag"),d=u.Array,y={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=a(y),m=0;m<p.length;m++){var h,v=p[m],N=y[v],b=i[v],S=b&&b.prototype;if(S&&(S[f]||s(S,f,d),S[l]||s(S,l,v),u[v]=d,N))for(h in n)S[h]||o(S,h,n[h],!0)}},function(t,e,r){"use strict";var n=r(34),a=r(48),o=r(17),i=r(18);t.exports=r(49)(Array,"Array",function(t,e){this._t=i(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,a(1)):a(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(t,e,r){var n=r(1)("unscopables"),a=Array.prototype;void 0==a[n]&&r(3)(a,n,{}),t.exports=function(t){a[n][t]=!0}},function(t,e,r){var n=r(18),a=r(26),o=r(54);t.exports=function(t){return function(e,r,i){var s,u=n(e),c=a(u.length),f=o(i,c);if(t&&r!=r){for(;c>f;)if((s=u[f++])!=s)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===r)return t||f||0;return!t&&-1}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,r){var n=r(8).f,a=r(10),o=r(1)("toStringTag");t.exports=function(t,e,r){t&&!a(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},function(t,e,r){var n,a,o;r(4),a=[e,r(59),r(32),r(33),r(72),r(61),r(62),r(66),r(68),r(69),r(70),r(44),r(43),r(60)],void 0===(o="function"==typeof(n=function(t,e,n,a,o,i,s,u,c,f,l,d,y,p){"use strict";var m=r(38);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,u=m(u),c=m(c),f=m(f),l=m(l),d=m(d),y=m(y),p=m(p);var h=function(){function t(){var e=this;(0,c.default)(this,t),this.outputFormat="array",this.formatForCountry="US",this.formatForType="default",this.useTransforms=!0,this.object=(0,u.default)({},p.default),this.validators={formatForCountry:function(t){return e.allowed.formatForCountry.includes(t)},formatForType:function(t){return e.allowed.formatForType.includes(t)},outputFormat:function(t){return e.allowed.outputFormat.includes(t)}},this.allowed={formatForCountry:Object.keys(l.default),formatForType:["business","default","english","french","personal"],outputFormat:["array","string"]},this.addressFormats=l.default,this.addressParsers=d.default}return(0,f.default)(t,[{key:"validator",value:function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n="";n=r?this.object[t]:this[t];var a=this.validators[t];return"function"==typeof a?a(e)?e:n:e}},{key:"setProperty",value:function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];"string"==typeof e&&(r?"string"==typeof this.object[t]&&(this.object[t]=this.validator(t,e,r)):"string"==typeof this[t]&&(this[t]=this.validator(t,e,r)))}},{key:"setAddress",value:function(t){this.setAddress1(t)}},{key:"setAddress1",value:function(t){this.setProperty("address1",t),this.setProperty("dong",t)}},{key:"setAddress2",value:function(t){this.setProperty("address2",t)}},{key:"setAddressNum",value:function(t){this.setProperty("addressNum",t)}},{key:"setCity",value:function(t){this.setProperty("city",t),this.setProperty("si",t)}},{key:"setCompanyName",value:function(t){this.setProperty("companyName",t)}},{key:"setCountry",value:function(t){this.setProperty("country",t);var e=y.default[t];e&&this.setProperty("countryAlpha2",e)}},{key:"setDo",value:function(t){this.setProperty("do",t),this.setProperty("province",t)}},{key:"setDong",value:function(t){this.setProperty("dong",t),this.setProperty("address1",t)}},{key:"setFirstLastName",value:function(t){this.setProperty("firstLastName",t)}},{key:"setFirstName",value:function(t){this.setProperty("firstName",t)}},{key:"setGu",value:function(t){this.setProperty("gu",t)}},{key:"setHonorific",value:function(t){this.setProperty("honorific",t)}},{key:"setJobTitle",value:function(t){this.setProperty("jobTitle",t)}},{key:"setLastName",value:function(t){this.setProperty("lastName",t),this.setProperty("secondLastName",t)}},{key:"setPostalCode",value:function(t){this.setProperty("postalCode",t)}},{key:"setPrefecture",value:function(t){this.setProperty("prefecture",t)}},{key:"setProvince",value:function(t){this.setProperty("province",t),this.setProperty("do",t)}},{key:"setRegion",value:function(t){this.setProperty("region",t)}},{key:"setRepublic",value:function(t){this.setProperty("republic",t)}},{key:"setSecondLastName",value:function(t){this.setProperty("secondLastName",t),this.setProperty("lastName",t)}},{key:"setSecondName",value:function(t){this.setProperty("secondName",t)}},{key:"setSi",value:function(t){this.setProperty("si",t),this.setProperty("city",t)}},{key:"setState",value:function(t){this.setProperty("state",t)}},{key:"setTitle",value:function(t){this.setProperty("title",t)}},{key:"setOutputFormat",value:function(t){this.setProperty("outputFormat",t,!1)}},{key:"setFormat",value:function(t){var e=t.country,r=t.type,n=t.useTransforms;"string"==typeof e&&this.setProperty("formatForCountry",e,!1),"string"==typeof r&&this.setProperty("formatForType",r,!1),"boolean"==typeof n&&(this.useTransforms=n)}},{key:"getFormat",value:function(t){var e=this.outputFormat,r=this.formatForCountry,n=this.formatForType,a=this.addressFormats,o=t||e,i=a[r];i||(i=a.US);var s={};return i[n]?s=i[n]:i.default&&(s=i.default),s[o]?s[o]:s.array?s.array:null}},{key:"getParser",value:function(t){var e=this.outputFormat,r=this.addressParsers,n=t||e;return r[n]?r[n]:null}},{key:"output",value:function(t){var e=this.useTransforms,r=this.getFormat(t),n=this.getParser(t);return"function"==typeof n&&r?n(this.object,r,e):null}},{key:"toString",value:function(){var t=this.output("array");return t?t.map(function(t){return t.join(" ")}).join("\n"):null}},{key:"raw",value:function(){return this.object}}]),t}();t.default=h})?n.apply(e,a):n)||(t.exports=o)},function(t,e,r){t.exports=!r(6)&&!r(9)(function(){return 7!=Object.defineProperty(r(21)("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(5);t.exports=function(t,e){if(!n(t))return t;var r,a;if(e&&"function"==typeof(r=t.toString)&&!n(a=r.call(t)))return a;if("function"==typeof(r=t.valueOf)&&!n(a=r.call(t)))return a;if(!e&&"function"==typeof(r=t.toString)&&!n(a=r.call(t)))return a;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t){t.exports={Afghanistan:"AF","Aland Islands":"AX",Albania:"AL",Algeria:"DZ","American Samoa":"AS",Andorra:"AD",Angola:"AO",Anguilla:"AI",Antarctica:"AQ","Antigua and Barbuda":"AG",Argentina:"AR",Armenia:"AM",Aruba:"AW",Australia:"AU",Austria:"AT",Azerbaijan:"AZ",Bahamas:"BS",Bahrain:"BH",Bangladesh:"BD",Barbados:"BB",Belarus:"BY",Belgium:"BE",Belize:"BZ",Benin:"BJ",Bermuda:"BM",Bhutan:"BT","Bolivia (Plurinational State of)":"BO","Bonaire Sint Eustatius and Saba":"BQ","Bosnia and Herzegovina":"BA",Botswana:"BW","Bouvet Island":"BV",Brazil:"BR","British Indian Ocean Territory":"IO","Brunei Darussalam":"BN",Bulgaria:"BG","Burkina Faso":"BF",Burundi:"BI","Cabo Verde":"CV",Cambodia:"KH",Cameroon:"CM",Canada:"CA","Cayman Islands":"KY","Central African Republic":"CF",Chad:"TD",Chile:"CL",China:"CN","Christmas Island":"CX","Cocos (Keeling) Islands":"CC",Colombia:"CO",Comoros:"KM",Congo:"CG","Congo (Democratic Republic of the)":"CD","Cook Islands":"CK","Costa Rica":"CR","Cote d'Ivoire":"CI",Croatia:"HR",Cuba:"CU",Curacao:"CW",Cyprus:"CY",Czechia:"CZ",Denmark:"DK",Djibouti:"DJ",Dominica:"DM","Dominican Republic":"DO",Ecuador:"EC",Egypt:"EG","El Salvador":"SV","Equatorial Guinea":"GQ",Eritrea:"ER",Estonia:"EE",Ethiopia:"ET","Falkland Islands (Malvinas)":"FK","Faroe Islands":"FO",Fiji:"FJ",Finland:"FI",France:"FR","French Guiana":"GF","French Polynesia":"PF","French Southern Territories":"TF",Gabon:"GA",Gambia:"GM",Georgia:"GE",Germany:"DE",Ghana:"GH",Gibraltar:"GI",Greece:"GR",Greenland:"GL",Grenada:"GD",Guadeloupe:"GP",Guam:"GU",Guatemala:"GT",Guernsey:"GG",Guinea:"GN","Guinea-Bissau":"GW",Guyana:"GY",Haiti:"HT","Heard Island and McDonald Islands":"HM","Holy See":"VA",Honduras:"HN","Hong Kong":"HK",Hungary:"HU",Iceland:"IS",India:"IN",Indonesia:"ID","Iran (Islamic Republic of)":"IR",Iraq:"IQ",Ireland:"IE","Isle of Man":"IM",Israel:"IL",Italy:"IT",Jamaica:"JM",Japan:"JP",Jersey:"JE",Jordan:"JO",Kazakhstan:"KZ",Kenya:"KE",Kiribati:"KI","Korea (Democratic People's Republic of)":"KP","Korea (Republic of)":"KR",Kuwait:"KW",Kyrgyzstan:"KG","Lao People's Democratic Republic":"LA",Latvia:"LV",Lebanon:"LB",Lesotho:"LS",Liberia:"LR",Libya:"LY",Liechtenstein:"LI",Lithuania:"LT",Luxembourg:"LU",Macao:"MO","Macedonia (the former Yugoslav Republic of)":"MK",Madagascar:"MG",Malawi:"MW",Malaysia:"MY",Maldives:"MV",Mali:"ML",Malta:"MT","Marshall Islands":"MH",Martinique:"MQ",Mauritania:"MR",Mauritius:"MU",Mayotte:"YT",Mexico:"MX","Micronesia (Federated States of)":"FM","Moldova (Republic of)":"MD",Monaco:"MC",Mongolia:"MN",Montenegro:"ME",Montserrat:"MS",Morocco:"MA",Mozambique:"MZ",Myanmar:"MM",Namibia:"NA",Nauru:"NR",Nepal:"NP",Netherlands:"NL","New Caledonia":"NC","New Zealand":"NZ",Nicaragua:"NI",Niger:"NE",Nigeria:"NG",Niue:"NU","Norfolk Island":"NF","Northern Mariana Islands":"MP",Norway:"NO",Oman:"OM",Pakistan:"PK",Palau:"PW","Palestine State of":"PS",Panama:"PA","Papua New Guinea":"PG",Paraguay:"PY",Peru:"PE",Philippines:"PH",Pitcairn:"PN",Poland:"PL",Portugal:"PT","Puerto Rico":"PR",Qatar:"QA",Reunion:"RE",Romania:"RO","Russian Federation":"RU",Rwanda:"RW","Saint Barthelemy":"BL","Saint Helena Ascension and Tristan da Cunha":"SH","Saint Kitts and Nevis":"KN","Saint Lucia":"LC","Saint Martin (French part)":"MF","Saint Pierre and Miquelon":"PM","Saint Vincent and the Grenadines":"VC",Samoa:"WS","San Marino":"SM","Sao Tome and Principe":"ST","Saudi Arabia":"SA",Senegal:"SN",Serbia:"RS",Seychelles:"SC","Sierra Leone":"SL",Singapore:"SG","Sint Maarten (Dutch part)":"SX",Slovakia:"SK",Slovenia:"SI","Solomon Islands":"SB",Somalia:"SO","South Africa":"ZA","South Georgia and the South Sandwich Islands":"GS","South Sudan":"SS",Spain:"ES","Sri Lanka":"LK",Sudan:"SD",Suriname:"SR","Svalbard and Jan Mayen":"SJ",Swaziland:"SZ",Sweden:"SE",Switzerland:"CH","Syrian Arab Republic":"SY","Taiwan Province of China":"TW",Tajikistan:"TJ","Tanzania United Republic of":"TZ",Thailand:"TH","Timor-Leste":"TL",Togo:"TG",Tokelau:"TK",Tonga:"TO","Trinidad and Tobago":"TT",Tunisia:"TN",Turkey:"TR",Turkmenistan:"TM","Turks and Caicos Islands":"TC",Tuvalu:"TV",Uganda:"UG",Ukraine:"UA","United Arab Emirates":"AE","United Kingdom of Great Britain and Northern Ireland":"GB","United States of America":"US","United States Minor Outlying Islands":"UM",Uruguay:"UY",Uzbekistan:"UZ",Vanuatu:"VU","Venezuela (Bolivarian Republic of)":"VE","Viet Nam":"VN","Virgin Islands (British)":"VG","Virgin Islands (U.S.)":"VI","Wallis and Futuna":"WF","Western Sahara":"EH",Yemen:"YE",Zambia:"ZM",Zimbabwe:"ZW"}},function(t,e,r){var n,a,o;r(4),a=[e,r(58),r(32),r(45),r(57)],void 0===(o="function"==typeof(n=function(t,e,n,a,o){"use strict";var i=r(38);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=i(e);var s={array:function(t,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=[];return Array.isArray(r)&&r.forEach(function(r){var o=[];Array.isArray(r)&&r.forEach(function(r){if("string"==typeof r)t[r]&&o.push(t[r]);else if("object"===(0,e.default)(r)&&"string"==typeof r.attribute){var a=t[r.attribute];n&&Array.isArray(r.transforms)&&r.transforms.forEach(function(t){"function"==typeof t&&(a=t(a))}),a&&o.push(a)}}),o.length>0&&a.push(o)}),a},string:function(t,e){return!(arguments.length>2&&void 0!==arguments[2])||arguments[2],""}};t.default=s})?n.apply(e,a):n)||(t.exports=o)},function(t,e,r){"use strict";var n=r(0),a=r(24)(0),o=r(31)([].forEach,!0);n(n.P+n.F*!o,"Array",{forEach:function(t){return a(this,t,arguments[1])}})},function(t,e,r){var n=r(47);t.exports=function(t,e){return new(n(t))(e)}},function(t,e,r){var n=r(5),a=r(28),o=r(1)("species");t.exports=function(t){var e;return a(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!a(e.prototype)||(e=void 0),n(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){"use strict";var n=r(30),a=r(0),o=r(12),i=r(3),s=r(17),u=r(50),c=r(37),f=r(56),l=r(1)("iterator"),d=!([].keys&&"next"in[].keys()),y=function(){return this};t.exports=function(t,e,r,p,m,h,v){u(r,e,p);var N,b,S,g=function(t){if(!d&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},P=e+" Iterator",C="values"==m,A=!1,M=t.prototype,T=M[l]||M["@@iterator"]||m&&M[m],x=T||g(m),O=m?C?g("entries"):x:void 0,L="Array"==e&&M.entries||T;if(L&&(S=f(L.call(new t)))!==Object.prototype&&S.next&&(c(S,P,!0),n||"function"==typeof S[l]||i(S,l,y)),C&&T&&"values"!==T.name&&(A=!0,x=function(){return T.call(this)}),n&&!v||!d&&!A&&M[l]||i(M,l,x),s[e]=x,s[P]=y,m)if(N={values:C?x:g("values"),keys:h?x:g("keys"),entries:O},v)for(b in N)b in M||o(M,b,N[b]);else a(a.P+a.F*(d||A),e,N);return N}},function(t,e,r){"use strict";var n=r(51),a=r(22),o=r(37),i={};r(3)(i,r(1)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(i,{next:a(1,r)}),o(t,e+" Iterator")}},function(t,e,r){var n=r(11),a=r(52),o=r(36),i=r(20)("IE_PROTO"),s=function(){},u=function(){var t,e=r(21)("iframe"),n=o.length;for(e.style.display="none",r(55).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;n--;)delete u.prototype[o[n]];return u()};t.exports=Object.create||function(t,e){var r;return null!==t?(s.prototype=n(t),r=new s,s.prototype=null,r[i]=t):r=u(),void 0===e?r:a(r,e)}},function(t,e,r){var n=r(8),a=r(11),o=r(19);t.exports=r(6)?Object.defineProperties:function(t,e){a(t);for(var r,i=o(e),s=i.length,u=0;s>u;)n.f(t,r=i[u++],e[r]);return t}},function(t,e,r){var n=r(10),a=r(18),o=r(35)(!1),i=r(20)("IE_PROTO");t.exports=function(t,e){var r,s=a(t),u=0,c=[];for(r in s)r!=i&&n(s,r)&&c.push(r);for(;e.length>u;)n(s,r=e[u++])&&(~o(c,r)||c.push(r));return c}},function(t,e,r){var n=r(27),a=Math.max,o=Math.min;t.exports=function(t,e){return(t=n(t))<0?a(t+e,0):o(t,e)}},function(t,e,r){var n=r(2).document;t.exports=n&&n.documentElement},function(t,e,r){var n=r(10),a=r(15),o=r(20)("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=a(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},function(t,e,r){var n=r(0);n(n.S,"Array",{isArray:r(28)})},function(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(e){return"function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?t.exports=n=function(t){return r(t)}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)},n(e)}t.exports=n},function(t,e,r){"use strict";var n=r(0),a=r(24)(1);n(n.P+n.F*!r(31)([].map,!0),"Array",{map:function(t){return a(this,t,arguments[1])}})},function(t,e,r){var n,a,o;r(4),a=[e],void 0===(o="function"==typeof(n=function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e={address1:"",address2:"",addressNum:"",city:"",companyName:"",country:"",countryAlpha2:"",do:"",dong:"",firstLastName:"",firstName:"",gu:"",honorific:"",jobTitle:"",lastName:"",postalCode:"",prefecture:"",province:"",region:"",republic:"",secondLastName:"",secondName:"",si:"",state:"",title:""};t.default=e})?n.apply(e,a):n)||(t.exports=o)},function(t,e,r){"use strict";var n=r(0),a=r(35)(!0);n(n.P,"Array",{includes:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}}),r(34)("includes")},function(t,e,r){"use strict";var n=r(0),a=r(63);n(n.P+n.F*r(65)("includes"),"String",{includes:function(t){return!!~a(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(64),a=r(16);t.exports=function(t,e,r){if(n(e))throw TypeError("String#"+r+" doesn't accept regex!");return String(a(t))}},function(t,e,r){var n=r(5),a=r(14),o=r(1)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==a(t))}},function(t,e,r){var n=r(1)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,r){var n=r(67);t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),a.forEach(function(e){n(t,e,r[e])})}return t}},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}},function(t,e,r){var n,a,o;r(4),a=[e,r(71)],void 0===(o="function"==typeof(n=function(t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={AR:{default:{array:[["honorific","firstName","secondName","firstLastName"],["secondLastName"],["companyName"],["address1","address2"],["postalCode","city"],["state"],["country"]]}},AU:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["city","state","postalCode"],["country"]]}},BG:{default:{array:[["country"],["state"],["postalCode","city"],["address1"],["address2"],["companyName"],["honorific","firstName","secondName","lastName"]]}},BR:{default:{array:[["companyName"],["honorific","firstName","secondName","lastName"],["address1","address2"],["postalCode","city","state"],["country"]]}},CA:{english:{array:[["honorific","firstName","lastName"],["companyName"],["address1","address2"],["city","province","postalCode"],["country"]]},french:{array:[["honorific","firstName","lastName"],["address1","address2"],["city","province"],["postalCode"],["country"]]}},CH:{default:{array:[["honorific","firstName","lastName"],["address1","address2"],["postalCode","city"],["country"]]}},CN:{default:{array:[["country"],["province","city"],["address1","address2"],["companyName"],["lastName","firstName","honorific"]]}},CZ:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},DE:{default:{array:[["companyName"],["honorific","title","firstName","lastName"],["address1"],["address2"],[""],["countryAlpha2","postalCode","city"],["country"]]}},DK:{default:{array:[["honorific","title","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["countryAlpha2","postalCode","city"],["country"]]}},ES:{default:{array:[["honorific","firstName","secondName","firstLastName"],["secondLastName"],["companyName"],["address1","address2"],["postalCode","city"],["country"]]}},FI:{default:{array:[["title","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},FR:{default:{array:[["honorific","firstName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},GR:{default:{array:[["title","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},HR:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},HU:{business:{array:[["honorific","lastName","firstName","secondName"],["companyName"],["postalCode","city"],["address1"],["address2"],["state"],["country"]]},default:{array:[["honorific","lastName","firstName"],["city"],["address1","address2"],["postalCode"],["state"],["country"]]}},IT:{default:{array:[["honorific","firstName","lastName"],["companyName"],["address1","address2"],[""],["countryAlpha2","postalCode","city","province"],["country"]]}},JP:{default:{array:[["country"],["postalCode","prefecture","city"],["address1","address2"],["companyName"],["lastName","firstName","honorific"]]}},KR:{default:{array:[["country"],["do","si","dong","gu","addressNum"],["companyName"],["lastName","firstName","honorific"]]}},MY:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["state","country"]]}},NL:{business:{array:[["companyName"],["t.a.v.","title","firstName","secondName","lastName"],["address1"],["address2"],["postalCode","city"],["country"]]},default:{array:[["title","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},NO:{business:{array:[["companyName"],["address1"],["firstName","lastName"],["address2"],["postalCode","city"],["country"]]},personal:{array:[["jobTitle","firstName","lastName"],["address1","address2"],["postalCode",{attribute:"city",transforms:[e.capitalize]}],["country"]]}},PL:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},PT:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},RO:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["state"],["country"]]}},RU:{default:{array:[["country"],["republic","state","region","city"],["address1"],["address2"],["companyName"],["lastName"],["firstName","secondName"]]}},SE:{business:{array:[["companyName"],["firstName","lastName"],["address1"],["address2"],["postalCode","city"],["country"]]},personal:{array:[["jobTitle","firstName","lastName"],["address1","address2"],["postalCode",{attribute:"city",transforms:[e.capitalize]}],["country"]]}},TR:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["postalCode","city"],["country"]]}},US:{default:{array:[["honorific","firstName","secondName","lastName"],["companyName"],["address1"],["address2"],["city","state","postalCode"],[{attribute:"country",transforms:[e.capitalize]}]]}}};r.CA.default=r.CA.english,r.RS=r.HR,r.SI=r.HR,r.KP=r.KR,r.NO.default=r.CA.personal,r.CA.default=r.CA.personal,r.BO=r.AR,r.CL=r.AR,r.CO=r.AR,r.EC=r.AR,r.GY=r.AR,r.PY=r.AR,r.PE=r.AR,r.UY=r.AR,r.VE=r.AR;var n=r;t.default=n})?n.apply(e,a):n)||(t.exports=o)},function(t,e,r){var n,a,o;r(4),a=[e],void 0===(o="function"==typeof(n=function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.capitalize=void 0,t.capitalize=function(t){return"string"==typeof t?t.toUpperCase():""}})?n.apply(e,a):n)||(t.exports=o)},function(t,e,r){var n=r(15),a=r(19);r(73)("keys",function(){return function(t){return a(n(t))}})},function(t,e,r){var n=r(0),a=r(7),o=r(9);t.exports=function(t,e){var r=(a.Object||{})[t]||Object[t],i={};i[t]=e(r),n(n.S+n.F*o(function(){r(1)}),"Object",i)}}])}); |
{ | ||
"name": "i18n-postal-address", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "A JavaScript library to produce international postal addresses formatted by region", | ||
@@ -32,12 +32,15 @@ "main": "dist/postal-address.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.0.0-beta.54", | ||
"@babel/preset-env": "^7.0.0-beta.54", | ||
"@babel/core": "^7.0.0", | ||
"@babel/plugin-transform-runtime": "^7.0.0", | ||
"@babel/preset-env": "^7.0.0", | ||
"@babel/runtime": "^7.0.0", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"babel-jest": "^23.4.0", | ||
"eslint": "^5.2.0", | ||
"jest": "^23.4.1", | ||
"regenerator-runtime": "^0.12.0", | ||
"webpack": "^4.16.2", | ||
"babel-jest": "^23.4.2", | ||
"babel-loader": "^8.0.2", | ||
"eslint": "^5.5.0", | ||
"jest": "^23.5.0", | ||
"regenerator-runtime": "^0.12.1", | ||
"webpack": "^4.17.2", | ||
"webpack-cli": "^3.1.0" | ||
} | ||
} |
@@ -0,11 +1,43 @@ | ||
const path = require('path') | ||
const { NODE_ENV } = process.env | ||
const mode = NODE_ENV || 'development' | ||
module.exports = { | ||
context: __dirname + '/lib', | ||
context: path.join(__dirname, '/lib'), | ||
entry: './postal-address.js', | ||
mode, | ||
output: { | ||
path: __dirname + '/dist', | ||
path: path.join(__dirname, '/dist'), | ||
filename: 'postal-address.js', | ||
library: 'PostalAddress', | ||
libraryTarget: 'umd', | ||
globalObject: 'typeof self !== \'undefined\' ? self : this' | ||
} | ||
}; | ||
globalObject: 'typeof self !== \'undefined\' ? self : this', | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /.js$/, | ||
exclude: /node_modules/, | ||
use: { | ||
loader: 'babel-loader', | ||
options: { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
useBuiltIns: 'usage', | ||
modules: 'umd', | ||
}, | ||
], | ||
], | ||
plugins: [ | ||
'@babel/plugin-transform-runtime', | ||
], | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
73104
1392
12
1