common.js 116 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912
  1. /*
  2. CardDavMATE - the open source CardDAV Web Client
  3. Copyright (C) 2011-2015
  4. Jan Mate <jan.mate@inf-it.com>
  5. Andrej Lezo <andrej.lezo@inf-it.com>
  6. Matej Mihalik <matej.mihalik@inf-it.com>
  7. This program is free software: you can redistribute it and/or modify
  8. it under the terms of the GNU Affero General Public License as
  9. published by the Free Software Foundation, either version 3 of the
  10. License, or (at your option) any later version.
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU Affero General Public License for more details.
  15. You should have received a copy of the GNU Affero General Public License
  16. along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. // Used to match XML element names with any namespace
  19. jQuery.fn.filterNsNode=function(nameOrRegex)
  20. {
  21. return this.filter(
  22. function()
  23. {
  24. if(nameOrRegex instanceof RegExp)
  25. return (this.nodeName.match(nameOrRegex) || this.nodeName.replace(RegExp('^[^:]+:',''),'').match(nameOrRegex));
  26. else
  27. return (this.nodeName===nameOrRegex || this.nodeName.replace(RegExp('^[^:]+:',''),'')===nameOrRegex);
  28. }
  29. );
  30. };
  31. // Escape jQuery selector
  32. function jqueryEscapeSelector(inputValue)
  33. {
  34. return (inputValue==undefined ? '' : inputValue).toString().replace(/([ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g,'\\$1');
  35. }
  36. // Generate random string (UID)
  37. function generateUID()
  38. {
  39. uidChars='0123456789abcdefghijklmnopqrstuvwxyz';
  40. UID='';
  41. for(i=0;i<32;i++)
  42. {
  43. if(i==8 || i==12 || i==16 || i==20) UID+='-';
  44. UID+=uidChars.charAt(Math.floor(Math.random()*(uidChars.length-1)));
  45. }
  46. return UID;
  47. }
  48. // IE compatibility
  49. if (typeof window.btoa=='undefined' && typeof base64.encode!='undefined') window.btoa=base64.encode;
  50. // Create Basic auth string (for HTTP header)
  51. function basicAuth(user, password)
  52. {
  53. var tok=user+':'+password;
  54. var hash=btoa(tok);
  55. return 'Basic '+hash;
  56. }
  57. // multiply regex replace {'regex': value, 'regex': value}
  58. String.prototype.multiReplace=function(hash)
  59. {
  60. var str=this, key;
  61. for(key in hash)
  62. str=str.replace(new RegExp(key,'g'), hash[key]);
  63. return str;
  64. };
  65. // Used for sorting the contact and resource list ...
  66. String.prototype.customCompare=function(stringB, alphabet, dir, caseSensitive)
  67. {
  68. var stringA=this;
  69. if(alphabet==undefined || alphabet==null)
  70. return stringA.localeCompare(stringB);
  71. else
  72. {
  73. var pos=0,
  74. min=Math.min(stringA.length, stringB.length);
  75. dir=dir || 1;
  76. caseSensitive=caseSensitive || false;
  77. if(!caseSensitive)
  78. {
  79. stringA=stringA.toLowerCase();
  80. stringB=stringB.toLowerCase();
  81. }
  82. while(stringA.charAt(pos)===stringB.charAt(pos) && pos<min){pos++;}
  83. if(stringA.charAt(pos)=='')
  84. return -dir;
  85. else
  86. {
  87. var index1=alphabet.indexOf(stringA.charAt(pos));
  88. var index2=alphabet.indexOf(stringB.charAt(pos));
  89. if(index1==-1 || index2==-1)
  90. return stringA.localeCompare(stringB);
  91. else
  92. return (index1<index2 ? -dir : dir);
  93. }
  94. }
  95. };
  96. function customResourceCompare(objA, objB)
  97. {
  98. return objA.displayValue.customCompare(objB.displayValue, globalSortAlphabet, 1, false);
  99. }
  100. function checkColorBrightness(hex)
  101. {
  102. var R=parseInt(hex.substring(0, 2), 16);
  103. var G=parseInt(hex.substring(2, 4), 16);
  104. var B=parseInt(hex.substring(4, 6), 16);
  105. return Math.sqrt(0.241*R*R+0.691*G*G+0.068*B*B);
  106. }
  107. // Get unique values from array
  108. Array.prototype.unique=function()
  109. {
  110. var o={}, i, l=this.length, r=[];
  111. for(i=0;i<l;i++)
  112. o[this[i]]=this[i];
  113. for(i in o)
  114. r.push(o[i]);
  115. return r;
  116. };
  117. // Recursive replaceAll
  118. String.prototype.replaceAll=function(stringToFind,stringToReplace)
  119. {
  120. var temp=this;
  121. while(temp.indexOf(stringToFind)!=-1)
  122. temp=temp.replace(stringToFind,stringToReplace);
  123. return temp;
  124. };
  125. // Pad number with leading zeroes
  126. Number.prototype.pad=function(size){
  127. var s=String(this);
  128. while(s.length<size)
  129. s='0'+s;
  130. return s;
  131. };
  132. // Case insensitive search for attributes
  133. // Usage: $('#selector').find(':attrCaseInsensitive(data-type,"'+typeList[i]+'")')
  134. jQuery.expr[':'].attrCaseInsensitive=function(elem, index, match)
  135. {
  136. var matchParams=match[3].split(','),
  137. attribute=matchParams[0].replace(/^\s*|\s*$/g,''),
  138. value=matchParams[1].replace(/^\s*"|"\s*$/g,'').toLowerCase();
  139. return jQuery(elem)['attr'](attribute)!=undefined && jQuery(elem)['attr'](attribute)==value;
  140. };
  141. // Capitalize given string
  142. function capitalize(string)
  143. {
  144. return string.charAt(0).toUpperCase()+string.slice(1).toLowerCase();
  145. }
  146. // possible address field positions [fid] (value = text input, ?country?= country select input)
  147. // 0: [ value ]
  148. // 1: [ ?country? ]
  149. // 2: [ value ]
  150. // 3: [ value ]
  151. // 4: [ value ]
  152. // 5: [ value ] 6: [ value ]
  153. // 7: [ value ] 8: [ ?country? ]
  154. // 9: [ value ]
  155. // 10: [ value ]
  156. // 11: [ ?country? ] <- here is the country defined by default
  157. // 12: [ value ]
  158. //
  159. // address field in vCard has the following format: pobox;extaddr;street;locality;region;code;country
  160. // only these can be used as 'data-addr-field' values
  161. var addressTypes=null;
  162. function localizeAddressTypes()
  163. {
  164. addressTypes={
  165. 'af': [ 'Afghanistan',
  166. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  167. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  168. {fid: 11, type: 'country'}
  169. ],
  170. 'al': [ 'Albania',
  171. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  172. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  173. {fid: 11, type: 'country'}
  174. ],
  175. 'dz': [ 'Algeria',
  176. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  177. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  178. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  179. {fid: 11, type: 'country'}
  180. ],
  181. 'ad': [ 'Andorra',
  182. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  183. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  184. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  185. {fid: 11, type: 'country'}
  186. ],
  187. 'ao': [ 'Angola',
  188. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  189. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  190. {fid: 11, type: 'country'}
  191. ],
  192. 'ag': [ 'Antigua and Barbuda',
  193. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  194. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  195. {fid: 11, type: 'country'}
  196. ],
  197. 'ar': [ 'Argentina',
  198. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  199. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  200. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  201. {fid: 9, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  202. {fid: 11, type: 'country'}
  203. ],
  204. 'am': [ 'Armenia',
  205. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  206. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  207. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  208. {fid: 11, type: 'country'}
  209. ],
  210. 'au': [ 'Australia',
  211. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  212. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressSuburb},
  213. {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressState},
  214. {fid: 7, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostal},
  215. {fid: 8, type: 'country'}
  216. ],
  217. 'at': [ 'Austria',
  218. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  219. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  220. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  221. {fid: 11, type: 'country'}
  222. ],
  223. 'az': [ 'Azerbaijan',
  224. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  225. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  226. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  227. {fid: 11, type: 'country'}
  228. ],
  229. 'bs': [ 'The Bahamas',
  230. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  231. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  232. {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressIslandName},
  233. {fid: 11, type: 'country'}
  234. ],
  235. 'bh': [ 'Bahrain',
  236. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  237. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  238. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  239. {fid: 11, type: 'country'}
  240. ],
  241. 'bd': [ 'Bangladesh',
  242. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  243. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  244. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  245. {fid: 11, type: 'country'}
  246. ],
  247. 'bb': [ 'Barbados',
  248. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  249. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  250. {fid: 11, type: 'country'}
  251. ],
  252. 'by': [ 'Belarus',
  253. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  254. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  255. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  256. {fid: 9, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  257. {fid: 11, type: 'country'}
  258. ],
  259. 'be': [ 'Belgium',
  260. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  261. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  262. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  263. {fid: 11, type: 'country'}
  264. ],
  265. 'bz': [ 'Belize',
  266. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  267. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  268. {fid: 9, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  269. {fid: 11, type: 'country'}
  270. ],
  271. 'bj': [ 'Benin',
  272. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  273. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  274. {fid: 11, type: 'country'}
  275. ],
  276. 'bm': [ 'Bermuda',
  277. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  278. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  279. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  280. {fid: 11, type: 'country'}
  281. ],
  282. 'bt': [ 'Bhutan',
  283. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  284. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  285. {fid: 11, type: 'country'}
  286. ],
  287. 'bo': [ 'Bolivia',
  288. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  289. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  290. {fid: 11, type: 'country'}
  291. ],
  292. 'ba': [ 'Bosnia and Herzegovina',
  293. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  294. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  295. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  296. {fid: 11, type: 'country'}
  297. ],
  298. 'bw': [ 'Botswana',
  299. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  300. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  301. {fid: 11, type: 'country'}
  302. ],
  303. 'br': [ 'Brazil',
  304. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  305. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressZip},
  306. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  307. {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  308. {fid: 8, type: 'country'}
  309. ],
  310. 'bn': [ 'Brunei Darussalam',
  311. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  312. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  313. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  314. {fid: 11, type: 'country'}
  315. ],
  316. 'bg': [ 'Bulgaria',
  317. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  318. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  319. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  320. {fid: 11, type: 'country'}
  321. ],
  322. 'bf': [ 'Burkina Faso',
  323. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  324. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  325. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  326. {fid: 11, type: 'country'}
  327. ],
  328. 'bi': [ 'Burundi',
  329. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  330. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  331. {fid: 11, type: 'country'}
  332. ],
  333. 'kh': [ 'Cambodia',
  334. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  335. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  336. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  337. {fid: 11, type: 'country'}
  338. ],
  339. 'cm': [ 'Cameroon',
  340. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  341. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  342. {fid: 11, type: 'country'}
  343. ],
  344. 'ca': [ 'Canada',
  345. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  346. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  347. {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  348. {fid: 7, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  349. {fid: 8, type: 'country'}
  350. ],
  351. 'cv': [ 'Cape Verde',
  352. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  353. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  354. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  355. {fid: 11, type: 'country'}
  356. ],
  357. 'ky': [ 'Cayman Islands',
  358. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  359. {fid: 3, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  360. {fid: 11, type: 'country'}
  361. ],
  362. 'cf': [ 'Central African Republic',
  363. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  364. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  365. {fid: 11, type: 'country'}
  366. ],
  367. 'td': [ 'Chad',
  368. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  369. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  370. {fid: 11, type: 'country'}
  371. ],
  372. 'cl': [ 'Chile',
  373. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  374. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  375. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  376. {fid: 11, type: 'country'}
  377. ],
  378. 'cn': [ 'China',
  379. {fid: 1, type: 'country'},
  380. {fid: 5, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  381. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  382. {fid: 9, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  383. {fid: 10, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostal}
  384. ],
  385. 'co': [ 'Colombia',
  386. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  387. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  388. {fid: 11, type: 'country'}
  389. ],
  390. 'km': [ 'Comoros',
  391. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  392. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  393. {fid: 11, type: 'country'}
  394. ],
  395. 'cd': [ 'Democratic Republic of the Congo',
  396. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  397. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  398. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  399. {fid: 11, type: 'country'}
  400. ],
  401. 'cg': [ 'Republic of the Congo',
  402. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  403. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  404. {fid: 11, type: 'country'}
  405. ],
  406. 'cr': [ 'Costa Rica',
  407. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  408. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  409. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  410. {fid: 11, type: 'country'}
  411. ],
  412. 'ci': [ 'Côte d’Ivoire',
  413. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  414. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  415. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  416. {fid: 11, type: 'country'}
  417. ],
  418. 'hr': [ 'Croatia',
  419. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  420. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  421. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  422. {fid: 11, type: 'country'}
  423. ],
  424. 'cu': [ 'Cuba',
  425. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  426. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  427. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  428. {fid: 11, type: 'country'}
  429. ],
  430. 'cy': [ 'Cyprus',
  431. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  432. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  433. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  434. {fid: 11, type: 'country'}
  435. ],
  436. 'cz': [ 'Czech Republic',
  437. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  438. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  439. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  440. {fid: 11, type: 'country'}
  441. ],
  442. 'dk': [ 'Denmark',
  443. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  444. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  445. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  446. {fid: 11, type: 'country'}
  447. ],
  448. 'dj': [ 'Djibouti',
  449. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  450. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  451. {fid: 11, type: 'country'}
  452. ],
  453. 'dm': [ 'Dominica',
  454. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  455. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  456. {fid: 11, type: 'country'}
  457. ],
  458. 'do': [ 'Dominican Republic',
  459. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  460. {fid: 3, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalDistrict},
  461. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  462. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  463. {fid: 11, type: 'country'}
  464. ],
  465. 'ec': [ 'Ecuador',
  466. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  467. {fid: 3, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  468. {fid: 9, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  469. {fid: 11, type: 'country'}
  470. ],
  471. 'eg': [ 'Egypt',
  472. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  473. {fid: 3, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressDistrict},
  474. {fid: 9, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressGovernorate},
  475. {fid: 11, type: 'country'}
  476. ],
  477. 'sv': [ 'El Salvador',
  478. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  479. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  480. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  481. {fid: 9, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressDepartment},
  482. {fid: 11, type: 'country'}
  483. ],
  484. 'gq': [ 'Equatorial Guinea',
  485. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  486. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  487. {fid: 11, type: 'country'}
  488. ],
  489. 'er': [ 'Eritrea',
  490. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  491. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  492. {fid: 11, type: 'country'}
  493. ],
  494. 'ee': [ 'Estonia',
  495. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  496. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  497. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  498. {fid: 11, type: 'country'}
  499. ],
  500. 'et': [ 'Ethiopia',
  501. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  502. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  503. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  504. {fid: 11, type: 'country'}
  505. ],
  506. 'fk': [ 'Falkland Islands',
  507. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  508. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  509. {fid: 9, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  510. {fid: 11, type: 'country'}
  511. ],
  512. 'fo': [ 'Faroe Islands',
  513. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  514. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  515. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  516. {fid: 11, type: 'country'}
  517. ],
  518. 'fj': [ 'Fiji',
  519. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  520. {fid: 3, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalDistrict},
  521. {fid: 9, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  522. {fid: 11, type: 'country'}
  523. ],
  524. 'fi': [ 'Finland',
  525. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  526. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  527. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  528. {fid: 11, type: 'country'}
  529. ],
  530. 'fr': [ 'France',
  531. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  532. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  533. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  534. {fid: 11, type: 'country'}
  535. ],
  536. 'pf': [ 'French Polynesia',
  537. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  538. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  539. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  540. {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressIslandName},
  541. {fid: 8, type: 'country'}
  542. ],
  543. 'ga': [ 'Gabon',
  544. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  545. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  546. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  547. {fid: 11, type: 'country'}
  548. ],
  549. 'gm': [ 'The Gambia',
  550. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  551. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  552. {fid: 11, type: 'country'}
  553. ],
  554. 'ge': [ 'Georgia',
  555. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  556. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  557. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  558. {fid: 11, type: 'country'}
  559. ],
  560. 'de': [ 'Germany',
  561. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  562. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  563. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  564. {fid: 11, type: 'country'}
  565. ],
  566. 'gh': [ 'Ghana',
  567. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  568. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  569. {fid: 11, type: 'country'}
  570. ],
  571. 'gr': [ 'Greece',
  572. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  573. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  574. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  575. {fid: 11, type: 'country'}
  576. ],
  577. 'gl': [ 'Greenland',
  578. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  579. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  580. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalDistrict},
  581. {fid: 11, type: 'country'}
  582. ],
  583. 'gd': [ 'Grenada',
  584. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  585. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  586. {fid: 11, type: 'country'}
  587. ],
  588. 'gp': [ 'Guadeloupe',
  589. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  590. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  591. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  592. {fid: 11, type: 'country'}
  593. ],
  594. 'gt': [ 'Guatemala',
  595. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  596. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  597. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  598. {fid: 11, type: 'country'}
  599. ],
  600. 'gn': [ 'Guinea',
  601. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  602. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  603. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  604. {fid: 11, type: 'country'}
  605. ],
  606. 'gw': [ 'Guinea-Bissau',
  607. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  608. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  609. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  610. {fid: 11, type: 'country'}
  611. ],
  612. 'gy': [ 'Guyana',
  613. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  614. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  615. {fid: 11, type: 'country'}
  616. ],
  617. 'ht': [ 'Haiti',
  618. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  619. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  620. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  621. {fid: 11, type: 'country'}
  622. ],
  623. 'hn': [ 'Honduras',
  624. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  625. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  626. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  627. {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressDepartment},
  628. {fid: 8, type: 'country'}
  629. ],
  630. 'hk': [ 'Hong Kong',
  631. {fid: 1, type: 'country'},
  632. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressDistrict},
  633. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  634. {fid: 9, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  635. ],
  636. 'hu': [ 'Hungary',
  637. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  638. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  639. {fid: 9, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  640. {fid: 11, type: 'country'}
  641. ],
  642. 'is': [ 'Iceland',
  643. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  644. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  645. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  646. {fid: 11, type: 'country'}
  647. ],
  648. 'in': [ 'India',
  649. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  650. {fid: 3, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  651. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  652. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPinCode},
  653. {fid: 11, type: 'country'}
  654. ],
  655. 'id': [ 'Indonesia',
  656. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  657. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  658. {fid: 5, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  659. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  660. {fid: 11, type: 'country'}
  661. ],
  662. 'ir': [ 'Iran',
  663. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  664. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  665. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  666. {fid: 11, type: 'country'}
  667. ],
  668. 'iq': [ 'Iraq',
  669. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  670. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  671. {fid: 9, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  672. {fid: 11, type: 'country'}
  673. ],
  674. 'ie': [ 'Ireland',
  675. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  676. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  677. {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressCounty},
  678. {fid: 7, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  679. {fid: 8, type: 'country'}
  680. ],
  681. 'im': [ 'Isle of Man',
  682. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  683. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  684. {fid: 9, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  685. {fid: 11, type: 'country'}
  686. ],
  687. 'il': [ 'Israel',
  688. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  689. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  690. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  691. {fid: 11, type: 'country'}
  692. ],
  693. 'it': [ 'Italy',
  694. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  695. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  696. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  697. {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  698. {fid: 8, type: 'country'}
  699. ],
  700. 'jm': [ 'Jamaica',
  701. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  702. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  703. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  704. {fid: 11, type: 'country'}
  705. ],
  706. 'jp': [ 'Japan',
  707. {fid: 2, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  708. {fid: 5, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressPrefecture},
  709. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCountyCity},
  710. {fid: 9, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressFurtherDivisions},
  711. {fid: 11, type: 'country'}
  712. ],
  713. 'jo': [ 'Jordan',
  714. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  715. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  716. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  717. {fid: 11, type: 'country'}
  718. ],
  719. 'kz': [ 'Kazakhstan',
  720. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  721. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  722. {fid: 4, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  723. {fid: 11, type: 'country'}
  724. ],
  725. 'ke': [ 'Kenya',
  726. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  727. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  728. {fid: 4, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  729. {fid: 11, type: 'country'}
  730. ],
  731. 'ki': [ 'Kiribati',
  732. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  733. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  734. {fid: 4, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressIslandName},
  735. {fid: 11, type: 'country'}
  736. ],
  737. 'kp': [ 'North Korea',
  738. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  739. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  740. {fid: 11, type: 'country'}
  741. ],
  742. 'kr': [ 'South Korea',
  743. {fid: 0, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  744. {fid: 1, type: 'country'},
  745. {fid: 5, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  746. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  747. {fid: 9, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet}
  748. ],
  749. 'kw': [ 'Kuwait',
  750. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  751. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  752. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  753. {fid: 9, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  754. {fid: 11, type: 'country'}
  755. ],
  756. 'kg': [ 'Kyrgyzstan',
  757. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  758. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  759. {fid: 9, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  760. {fid: 11, type: 'country'}
  761. ],
  762. 'la': [ 'Laos',
  763. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  764. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  765. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  766. {fid: 11, type: 'country'}
  767. ],
  768. 'lv': [ 'Latvia',
  769. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  770. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  771. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  772. {fid: 11, type: 'country'}
  773. ],
  774. 'lb': [ 'Lebanon',
  775. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  776. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  777. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  778. {fid: 11, type: 'country'}
  779. ],
  780. 'ls': [ 'Lesotho',
  781. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  782. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  783. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  784. {fid: 11, type: 'country'}
  785. ],
  786. 'lr': [ 'Liberia',
  787. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  788. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  789. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  790. {fid: 11, type: 'country'}
  791. ],
  792. 'ly': [ 'Libya',
  793. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  794. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  795. {fid: 11, type: 'country'}
  796. ],
  797. 'li': [ 'Liechtenstein',
  798. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  799. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  800. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  801. {fid: 11, type: 'country'}
  802. ],
  803. 'lt': [ 'Lithuania',
  804. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  805. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  806. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  807. {fid: 11, type: 'country'}
  808. ],
  809. 'lu': [ 'Luxembourg',
  810. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  811. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  812. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  813. {fid: 11, type: 'country'}
  814. ],
  815. 'mo': [ 'Macau',
  816. {fid: 1, type: 'country'},
  817. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressDistrict},
  818. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  819. {fid: 9, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  820. ],
  821. 'mk': [ 'Macedonia',
  822. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  823. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  824. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  825. {fid: 11, type: 'country'}
  826. ],
  827. 'mg': [ 'Madagascar',
  828. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  829. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  830. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  831. {fid: 11, type: 'country'}
  832. ],
  833. 'mw': [ 'Malawi',
  834. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  835. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  836. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  837. {fid: 11, type: 'country'}
  838. ],
  839. 'my': [ 'Malaysia',
  840. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  841. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  842. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  843. {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressState},
  844. {fid: 8, type: 'country'}
  845. ],
  846. 'mv': [ 'Maldives',
  847. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  848. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  849. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  850. {fid: 11, type: 'country'}
  851. ],
  852. 'ml': [ 'Mali',
  853. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  854. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  855. {fid: 11, type: 'country'}
  856. ],
  857. 'mt': [ 'Malta',
  858. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  859. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  860. {fid: 4, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  861. {fid: 11, type: 'country'}
  862. ],
  863. 'mh': [ 'Marshall Islands',
  864. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  865. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  866. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  867. {fid: 11, type: 'country'}
  868. ],
  869. 'mq': [ 'Martinique',
  870. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  871. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  872. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  873. {fid: 11, type: 'country'}
  874. ],
  875. 'mr': [ 'Mauritania',
  876. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  877. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  878. {fid: 11, type: 'country'}
  879. ],
  880. 'mu': [ 'Mauritius',
  881. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  882. {fid: 3, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  883. {fid: 4, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  884. {fid: 11, type: 'country'}
  885. ],
  886. 'mx': [ 'Mexico',
  887. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  888. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  889. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  890. {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressState},
  891. {fid: 8, type: 'country'}
  892. ],
  893. 'fm': [ 'Micronesia',
  894. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  895. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  896. {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressState},
  897. {fid: 7, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressZip},
  898. {fid: 8, type: 'country'}
  899. ],
  900. 'md': [ 'Moldova',
  901. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  902. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  903. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  904. {fid: 11, type: 'country'}
  905. ],
  906. 'mc': [ 'Monaco',
  907. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  908. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  909. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  910. {fid: 11, type: 'country'}
  911. ],
  912. 'mn': [ 'Mongolia',
  913. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  914. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  915. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  916. {fid: 11, type: 'country'}
  917. ],
  918. 'me': [ 'Montenegro',
  919. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  920. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  921. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  922. {fid: 11, type: 'country'}
  923. ],
  924. 'ma': [ 'Morocco',
  925. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  926. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  927. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  928. {fid: 11, type: 'country'}
  929. ],
  930. 'mz': [ 'Mozambique',
  931. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  932. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  933. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  934. {fid: 9, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  935. {fid: 11, type: 'country'}
  936. ],
  937. 'mm': [ 'Myanmar',
  938. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  939. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  940. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  941. {fid: 11, type: 'country'}
  942. ],
  943. 'na': [ 'Namibia',
  944. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  945. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  946. {fid: 11, type: 'country'}
  947. ],
  948. 'nr': [ 'Nauru',
  949. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  950. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  951. {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressDistrict},
  952. {fid: 11, type: 'country'},
  953. ],
  954. 'np': [ 'Nepal',
  955. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  956. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  957. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  958. {fid: 11, type: 'country'}
  959. ],
  960. 'nl': [ 'Netherlands',
  961. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  962. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  963. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  964. {fid: 11, type: 'country'}
  965. ],
  966. 'nc': [ 'New Caledonia',
  967. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  968. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  969. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  970. {fid: 11, type: 'country'}
  971. ],
  972. 'nz': [ 'New Zealand',
  973. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  974. {fid: 3, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressSuburb},
  975. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  976. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostal},
  977. {fid: 11, type: 'country'}
  978. ],
  979. 'ni': [ 'Nicaragua',
  980. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  981. {fid: 3, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  982. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  983. {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressDepartment},
  984. {fid: 11, type: 'country'}
  985. ],
  986. 'ne': [ 'Niger',
  987. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  988. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  989. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  990. {fid: 11, type: 'country'}
  991. ],
  992. 'ng': [ 'Nigeria',
  993. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  994. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  995. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  996. {fid: 9, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressState},
  997. {fid: 11, type: 'country'}
  998. ],
  999. 'no': [ 'Norway',
  1000. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1001. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1002. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1003. {fid: 11, type: 'country'}
  1004. ],
  1005. 'om': [ 'Oman',
  1006. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1007. {fid: 3, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1008. {fid: 4, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1009. {fid: 9, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  1010. {fid: 11, type: 'country'}
  1011. ],
  1012. 'pk': [ 'Pakistan',
  1013. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1014. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1015. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1016. {fid: 11, type: 'country'}
  1017. ],
  1018. 'pw': [ 'Palau',
  1019. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1020. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1021. {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressState},
  1022. {fid: 7, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressZip},
  1023. {fid: 8, type: 'country'}
  1024. ],
  1025. 'ps': [ 'Palestinian Territories',
  1026. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1027. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1028. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1029. {fid: 11, type: 'country'}
  1030. ],
  1031. 'pa': [ 'Panama',
  1032. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1033. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1034. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1035. {fid: 9, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  1036. {fid: 11, type: 'country'}
  1037. ],
  1038. 'pg': [ 'Papua New Guinea',
  1039. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1040. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1041. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1042. {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  1043. {fid: 8, type: 'country'}
  1044. ],
  1045. 'py': [ 'Paraguay',
  1046. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1047. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1048. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1049. {fid: 11, type: 'country'}
  1050. ],
  1051. 'pe': [ 'Peru',
  1052. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1053. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1054. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1055. {fid: 11, type: 'country'}
  1056. ],
  1057. 'ph': [ 'Philippines',
  1058. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1059. {fid: 5, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressDistrictSubdivision},
  1060. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostCode},
  1061. {fid: 7, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1062. {fid: 8, type: 'country'}
  1063. ],
  1064. 'pl': [ 'Poland',
  1065. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1066. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1067. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1068. {fid: 11, type: 'country'}
  1069. ],
  1070. 'pt': [ 'Portugal',
  1071. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1072. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1073. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1074. {fid: 11, type: 'country'}
  1075. ],
  1076. 'pr': [ 'Puerto Rico',
  1077. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1078. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1079. {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressState},
  1080. {fid: 7, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressZip},
  1081. {fid: 8, type: 'country'}
  1082. ],
  1083. 'qa': [ 'Qatar',
  1084. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1085. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1086. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1087. {fid: 11, type: 'country'}
  1088. ],
  1089. 're': [ 'Réunion',
  1090. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1091. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1092. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1093. {fid: 11, type: 'country'}
  1094. ],
  1095. 'ro': [ 'Romania',
  1096. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1097. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1098. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1099. {fid: 11, type: 'country'}
  1100. ],
  1101. 'ru': [ 'Russia',
  1102. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1103. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCityRegion},
  1104. {fid: 4, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  1105. {fid: 11, type: 'country'},
  1106. {fid: 12, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode}
  1107. ],
  1108. 'rw': [ 'Rwanda',
  1109. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1110. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1111. {fid: 11, type: 'country'}
  1112. ],
  1113. 'bl': [ 'Saint Barthélemy',
  1114. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1115. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1116. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1117. {fid: 11, type: 'country'}
  1118. ],
  1119. 'sh': [ 'Saint Helena',
  1120. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1121. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1122. {fid: 4, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1123. {fid: 11, type: 'country'}
  1124. ],
  1125. 'kn': [ 'Saint Kitts and Nevis',
  1126. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1127. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1128. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1129. {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressIslandName},
  1130. {fid: 8, type: 'country'}
  1131. ],
  1132. 'lc': [ 'Saint Lucia',
  1133. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1134. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1135. {fid: 11, type: 'country'}
  1136. ],
  1137. 'mf': [ 'Saint Martin',
  1138. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1139. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1140. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1141. {fid: 11, type: 'country'}
  1142. ],
  1143. 'vc': [ 'Saint Vincent and the Grenadines',
  1144. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1145. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1146. {fid: 11, type: 'country'}
  1147. ],
  1148. 'ws': [ 'Samoa',
  1149. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1150. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1151. {fid: 11, type: 'country'}
  1152. ],
  1153. 'sm': [ 'San Marino',
  1154. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1155. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1156. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1157. {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  1158. {fid: 8, type: 'country'}
  1159. ],
  1160. 'st': [ 'Sao Tome and Principe',
  1161. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1162. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1163. {fid: 11, type: 'country'}
  1164. ],
  1165. 'sa': [ 'Saudi Arabia',
  1166. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1167. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1168. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1169. {fid: 11, type: 'country'}
  1170. ],
  1171. 'sn': [ 'Senegal',
  1172. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1173. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1174. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1175. {fid: 11, type: 'country'}
  1176. ],
  1177. 'rs': [ 'Serbia',
  1178. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1179. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1180. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1181. {fid: 11, type: 'country'}
  1182. ],
  1183. 'sc': [ 'Seychelles',
  1184. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1185. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1186. {fid: 11, type: 'country'}
  1187. ],
  1188. 'sl': [ 'Sierra Leone',
  1189. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1190. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1191. {fid: 11, type: 'country'}
  1192. ],
  1193. 'sg': [ 'Singapore',
  1194. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1195. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1196. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1197. {fid: 11, type: 'country'}
  1198. ],
  1199. 'sk': [ 'Slovak Republic',
  1200. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1201. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1202. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1203. {fid: 11, type: 'country'}
  1204. ],
  1205. 'si': [ 'Slovenia',
  1206. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1207. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1208. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1209. {fid: 11, type: 'country'}
  1210. ],
  1211. 'sb': [ 'Solomon Islands',
  1212. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1213. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1214. {fid: 11, type: 'country'}
  1215. ],
  1216. 'so': [ 'Somalia',
  1217. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1218. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1219. {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressRegion},
  1220. {fid: 7, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1221. {fid: 8, type: 'country'}
  1222. ],
  1223. 'za': [ 'South Africa',
  1224. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1225. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1226. {fid: 4, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  1227. {fid: 9, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1228. {fid: 11, type: 'country'}
  1229. ],
  1230. 'gs': [ 'South Georgia and South Sandwich Islands',
  1231. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1232. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1233. {fid: 4, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1234. {fid: 11, type: 'country'}
  1235. ],
  1236. 'es': [ 'Spain',
  1237. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1238. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1239. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1240. {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  1241. {fid: 8, type: 'country'}
  1242. ],
  1243. 'lk': [ 'Sri Lanka',
  1244. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1245. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1246. {fid: 4, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1247. {fid: 11, type: 'country'}
  1248. ],
  1249. 'sd': [ 'Sudan',
  1250. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1251. {fid: 3, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1252. {fid: 4, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1253. {fid: 11, type: 'country'}
  1254. ],
  1255. 'sr': [ 'Suriname',
  1256. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1257. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1258. {fid: 4, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalDistrict},
  1259. {fid: 11, type: 'country'}
  1260. ],
  1261. 'sz': [ 'Swaziland',
  1262. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1263. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1264. {fid: 4, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1265. {fid: 11, type: 'country'}
  1266. ],
  1267. 'se': [ 'Sweden',
  1268. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1269. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1270. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1271. {fid: 11, type: 'country'}
  1272. ],
  1273. 'ch': [ 'Switzerland',
  1274. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1275. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1276. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1277. {fid: 11, type: 'country'}
  1278. ],
  1279. 'sy': [ 'Syria',
  1280. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1281. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1282. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1283. {fid: 11, type: 'country'}
  1284. ],
  1285. 'tw': [ 'Taiwan',
  1286. {fid: 1, type: 'country'},
  1287. {fid: 2, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressZip},
  1288. {fid: 3, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressCountyCity},
  1289. {fid: 4, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressTownshipDistrict},
  1290. {fid: 9, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet}
  1291. ],
  1292. 'tj': [ 'Tajikistan',
  1293. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1294. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1295. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1296. {fid: 11, type: 'country'}
  1297. ],
  1298. 'tz': [ 'Tanzania',
  1299. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1300. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1301. {fid: 11, type: 'country'}
  1302. ],
  1303. 'th': [ 'Thailand',
  1304. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1305. {fid: 3, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressDistrictSubdivision},
  1306. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  1307. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostCode},
  1308. {fid: 11, type: 'country'}
  1309. ],
  1310. 'tl': [ 'Timor-Leste',
  1311. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1312. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1313. {fid: 11, type: 'country'}
  1314. ],
  1315. 'tg': [ 'Togo',
  1316. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1317. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1318. {fid: 11, type: 'country'}
  1319. ],
  1320. 'to': [ 'Tonga',
  1321. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1322. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1323. {fid: 11, type: 'country'}
  1324. ],
  1325. 'tt': [ 'Trinidad and Tobago',
  1326. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1327. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1328. {fid: 11, type: 'country'}
  1329. ],
  1330. 'tn': [ 'Tunisia',
  1331. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1332. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1333. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1334. {fid: 11, type: 'country'}
  1335. ],
  1336. 'tr': [ 'Turkey',
  1337. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1338. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1339. {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressDistrict},
  1340. {fid: 7, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1341. {fid: 8, type: 'country'}
  1342. ],
  1343. 'tm': [ 'Turkmenistan',
  1344. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1345. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1346. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1347. {fid: 11, type: 'country'}
  1348. ],
  1349. 'tv': [ 'Tuvalu',
  1350. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1351. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1352. {fid: 11, type: 'country'}
  1353. ],
  1354. 'vi': [ 'U.S. Virgin Islands',
  1355. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1356. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1357. {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressState},
  1358. {fid: 7, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressZip},
  1359. {fid: 8, type: 'country'}
  1360. ],
  1361. 'ug': [ 'Uganda',
  1362. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1363. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1364. {fid: 11, type: 'country'}
  1365. ],
  1366. 'ua': [ 'Ukraine',
  1367. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1368. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1369. {fid: 4, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1370. {fid: 11, type: 'country'}
  1371. ],
  1372. 'ae': [ 'United Arab Emirates',
  1373. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1374. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1375. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1376. {fid: 11, type: 'country'}
  1377. ],
  1378. 'gb': [ 'United Kingdom',
  1379. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1380. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1381. {fid: 4, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressCounty},
  1382. {fid: 9, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostCode},
  1383. {fid: 11, type: 'country'}
  1384. ],
  1385. 'us': [ 'United States',
  1386. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1387. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1388. {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressState},
  1389. {fid: 7, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressZip},
  1390. {fid: 8, type: 'country'}
  1391. ],
  1392. 'uy': [ 'Uruguay',
  1393. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1394. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1395. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1396. {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressDepartment},
  1397. {fid: 8, type: 'country'}
  1398. ],
  1399. 'uz': [ 'Uzbekistan',
  1400. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1401. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1402. {fid: 11, type: 'country'},
  1403. {fid: 12, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode}
  1404. ],
  1405. 'vu': [ 'Vanuatu',
  1406. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1407. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1408. {fid: 11, type: 'country'}
  1409. ],
  1410. 'va': [ 'Vatican',
  1411. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1412. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1413. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1414. {fid: 11, type: 'country'}
  1415. ],
  1416. 've': [ 'Venezuela',
  1417. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1418. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1419. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1420. {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressState},
  1421. {fid: 8, type: 'country'}
  1422. ],
  1423. 'vn': [ 'Vietnam',
  1424. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1425. {fid: 3, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
  1426. {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1427. {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1428. {fid: 11, type: 'country'}
  1429. ],
  1430. 'ye': [ 'Yemen',
  1431. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1432. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1433. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1434. {fid: 11, type: 'country'}
  1435. ],
  1436. 'zm': [ 'Zambia',
  1437. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1438. {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
  1439. {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1440. {fid: 11, type: 'country'}
  1441. ],
  1442. 'zw': [ 'Zimbabwe',
  1443. {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
  1444. {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
  1445. {fid: 11, type: 'country'}
  1446. ]
  1447. };
  1448. }
  1449. function vObjectLineFolding(inputText)
  1450. {
  1451. var outputText='';
  1452. var maxLineOctetLength=75;
  1453. var count=0;
  1454. for(var i=0; inputText[i]!=undefined; i++)
  1455. {
  1456. var currentChar=inputText.charCodeAt(i);
  1457. var nextChar=inputText.charCodeAt(i+1);
  1458. if(currentChar==0x000D && nextChar==0x000A)
  1459. {
  1460. count=0;
  1461. outputText+='\r\n';
  1462. i++;
  1463. continue;
  1464. }
  1465. var surrogatePair=false;
  1466. if(currentChar<0x0080)
  1467. var charNum=1;
  1468. else if(currentChar<0x0800)
  1469. var charNum=2;
  1470. else if(currentChar<0xd800 || currentChar>=0xe000)
  1471. var charNum=3;
  1472. else
  1473. {
  1474. // surrogate pair
  1475. // UTF-16 encodes 0x10000-0x10FFFF by subtracting 0x10000 and splitting
  1476. // the 20 bits of 0x0-0xFFFFF into two halves
  1477. charNum=4;
  1478. surrogatePair=true;
  1479. }
  1480. if(count>maxLineOctetLength-charNum)
  1481. {
  1482. outputText+='\r\n ';
  1483. count=1;
  1484. }
  1485. outputText+=String.fromCharCode(currentChar);
  1486. if(surrogatePair)
  1487. {
  1488. outputText+=String.fromCharCode(vCardText.charCodeAt(i+1));
  1489. i++;
  1490. }
  1491. count+=charNum;
  1492. }
  1493. return outputText;
  1494. }
  1495. function rgbToHex(rgb)
  1496. {
  1497. rgb=rgb.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d*)?|(?:\.\d+)))?\)$/);
  1498. function hex(x)
  1499. {
  1500. return ("0"+parseInt(x).toString(16)).slice(-2);
  1501. }
  1502. return "#"+hex(rgb[1])+hex(rgb[2])+hex(rgb[3]);
  1503. }
  1504. function hexToRgba(hex, transparency) {
  1505. var bigint=parseInt(hex.substring(1), 16);
  1506. var r=(bigint >> 16) & 255;
  1507. var g=(bigint >> 8) & 255;
  1508. var b=bigint & 255;
  1509. return 'rgba('+r+','+g+','+b+','+transparency+')';
  1510. }
  1511. function rgbToRgba(rgb, transparency)
  1512. {
  1513. rgb=rgb.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d*)?|(?:\.\d+)))?\)$/);
  1514. return 'rgba('+rgb[1]+','+rgb[2]+','+rgb[3]+','+transparency+')';
  1515. }
  1516. function dataGetChecked(resourceListSelector)
  1517. {
  1518. var checkedArr=$(resourceListSelector).find('input[type=checkbox]:checked').not('.unloadCheck').filter('[data-id]').filter(function(){return this.indeterminate==false}).map(function(){return $(this).attr('data-id')}).get();
  1519. for(i=checkedArr.length-1; i>=0; i--)
  1520. if(checkedArr[i].match(new RegExp('[^/]$'))!=null && checkedArr.indexOf(checkedArr[i].replace(new RegExp('[^/]+$'), ''))!=-1)
  1521. checkedArr.splice(i, 1);
  1522. return checkedArr;
  1523. }
  1524. function resourceChBoxClick(obj, resourceListSelector, headerSelector, returnChecked)
  1525. {
  1526. $(obj).parent().nextUntil(headerSelector).find('input[type=checkbox]:visible').prop('checked', $(obj).prop('checked')).prop('indeterminate', false);
  1527. if(returnChecked)
  1528. return dataGetChecked(resourceListSelector);
  1529. }
  1530. function collectionChBoxClick(obj, resourceListSelector, headerSelector, collectionSelector, groupSelector, returnChecked)
  1531. {
  1532. if(collectionSelector.match('_item$'))
  1533. {
  1534. var tmp_coh=$(obj).parent().prevAll(headerSelector).first();
  1535. var tmp_co_chbxs=tmp_coh.nextUntil(headerSelector).find('input[type=checkbox]:visible');
  1536. }
  1537. else
  1538. {
  1539. var tmp_coh=$(obj).parent().parent().prevAll(headerSelector).first();
  1540. var tmp_co_chbxs=tmp_coh.nextUntil(headerSelector).find(collectionSelector).find('input[type=checkbox]:visible');
  1541. }
  1542. if(groupSelector!=null)
  1543. {
  1544. if($(obj).prop('checked')==false && $(obj).prop('indeterminate')==false && $(obj).attr('data-ind')=='false' &&
  1545. $(obj).parent().next(groupSelector).height()>0/* note: ':visible' is not working! */)
  1546. {
  1547. $(obj).prop('indeterminate', true);
  1548. $(obj).prop('checked', true);
  1549. $(obj).attr('data-ind', 'true');
  1550. tmp_coh.find('input[type=checkbox]:visible').prop('indeterminate', true).prop('checked', false);
  1551. if(returnChecked)
  1552. return dataGetChecked(resourceListSelector);
  1553. return true;
  1554. }
  1555. else if($(obj).attr('data-ind')=='true')
  1556. $(obj).attr('data-ind', 'false');
  1557. $(obj).parent().next(groupSelector).find('input[type=checkbox]').prop('checked', $(obj).prop('checked'));
  1558. }
  1559. if(tmp_co_chbxs.length==tmp_co_chbxs.filter(':checked').length)
  1560. tmp_coh.find('input[type=checkbox]:visible').prop('checked', true).prop('indeterminate', false);
  1561. else if(tmp_co_chbxs.filter(':checked').length==0 && tmp_co_chbxs.filter(function(){return this.indeterminate==true}).length==0)
  1562. tmp_coh.find('input[type=checkbox]:visible').prop('checked', false).prop('indeterminate', false);
  1563. else
  1564. tmp_coh.find('input[type=checkbox]:visible').prop('indeterminate', true).prop('checked', false);
  1565. if(returnChecked)
  1566. return dataGetChecked(resourceListSelector);
  1567. }
  1568. function groupChBoxClick(obj, resourceListSelector, headerSelector, collectionSelector, groupSelector, returnChecked)
  1569. {
  1570. var tmp_cg=$(obj).closest(groupSelector);
  1571. var tmp_cg_chbxs=tmp_cg.find('input[type=checkbox]:visible');
  1572. var tmp_co_chbxs=tmp_cg.prev().find('input[type=checkbox]:visible');
  1573. if(tmp_cg_chbxs.filter(':checked').length==0)
  1574. tmp_co_chbxs.prop('checked', false).prop('indeterminate', false);
  1575. else
  1576. tmp_co_chbxs.prop('indeterminate', true).prop('checked', false);
  1577. return collectionChBoxClick(tmp_co_chbxs, resourceListSelector, headerSelector, collectionSelector, null, returnChecked);
  1578. }
  1579. function loadResourceChBoxClick(obj, resourceListSelector, headerSelector, collectionSelector, resourceItemSelector)
  1580. {
  1581. if(collectionSelector.match('_item$'))
  1582. {
  1583. var firstCollection=$(obj).parent().nextUntil(headerSelector).first();
  1584. if($(obj).prop('checked'))
  1585. $(obj).parent().nextUntil(headerSelector).addBack().removeClass('unloaded');
  1586. else
  1587. $(obj).parent().nextUntil(headerSelector).addBack().addClass('unloaded');
  1588. }
  1589. else
  1590. {
  1591. var firstCollection=$(obj).parent().nextUntil(headerSelector).first().find(collectionSelector);
  1592. if($(obj).prop('checked'))
  1593. {
  1594. $(obj).parent().nextUntil(headerSelector).find(collectionSelector).removeClass('unloaded');
  1595. $(obj).parent().removeClass('unloaded');
  1596. }
  1597. else
  1598. {
  1599. $(obj).parent().nextUntil(headerSelector).find(collectionSelector).addClass('unloaded');
  1600. $(obj).parent().addClass('unloaded');
  1601. }
  1602. }
  1603. $(resourceListSelector).find(headerSelector).find('.unloadCheckHeader:checked').prop('disabled',false);
  1604. $(resourceListSelector).find(collectionSelector).find('.unloadCheck:checked').prop('disabled',false);
  1605. if(!$(resourceListSelector).find(headerSelector).find('.unloadCheckHeader').filter(function(){return $(this).prop('checked') || $(this).prop('indeterminate');}).length)
  1606. {
  1607. $(obj).prop({'checked':false,'indeterminate':true});
  1608. $(obj).parent().removeClass('unloaded');
  1609. $(obj).parent().nextUntil(headerSelector).find('.unloadCheck').prop({'checked':false,'indeterminate':false});
  1610. firstCollection.removeClass('unloaded').find('.unloadCheck').prop({'checked':true,'indeterminate':false,'disabled':true});
  1611. }
  1612. else
  1613. {
  1614. $(obj).parent().nextUntil(headerSelector).find('.unloadCheck').prop({'checked':$(obj).prop('checked'),'indeterminate':false});
  1615. var checkedCollections=$(resourceListSelector).find(collectionSelector).find('.unloadCheck:checked');
  1616. if(checkedCollections.length==1)
  1617. {
  1618. var collection=checkedCollections.parents(resourceItemSelector);
  1619. if(!collection.prev().hasClass(resourceItemSelector.slice(1)) && !collection.next().hasClass(resourceItemSelector.slice(1)))
  1620. collection.prev().find('.unloadCheckHeader').prop('disabled',true);
  1621. checkedCollections.prop('disabled',true);
  1622. }
  1623. }
  1624. }
  1625. function loadCollectionChBoxClick(obj, resourceListSelector, headerSelector, collectionSelector, resourceItemSelector)
  1626. {
  1627. if($(obj).prop('checked'))
  1628. $(obj).parent().removeClass('unloaded');
  1629. else
  1630. $(obj).parent().addClass('unloaded');
  1631. var checkedCollections=$(resourceListSelector).find(collectionSelector).find('.unloadCheck:checked');
  1632. if(checkedCollections.length==1)
  1633. {
  1634. var collection=checkedCollections.parents(resourceItemSelector);
  1635. if(!collection.prev().hasClass(resourceItemSelector.slice(1)) && !collection.next().hasClass(resourceItemSelector.slice(1)))
  1636. collection.prev().find('.unloadCheckHeader').prop('disabled',true);
  1637. checkedCollections.prop('disabled',true);
  1638. }
  1639. else
  1640. {
  1641. $(resourceListSelector).find(headerSelector).find('.unloadCheckHeader:checked').prop('disabled',false);
  1642. checkedCollections.prop('disabled',false);
  1643. }
  1644. if(collectionSelector.match('_item$'))
  1645. {
  1646. var tmp_coh=$(obj).parent().prevAll(headerSelector).first();
  1647. var tmp_co_chbxs=tmp_coh.nextUntil(headerSelector).find('.unloadCheck');
  1648. }
  1649. else
  1650. {
  1651. var tmp_coh=$(obj).parent().parent().prevAll(headerSelector).first();
  1652. var tmp_co_chbxs=tmp_coh.nextUntil(headerSelector).find(collectionSelector).find('.unloadCheck');
  1653. }
  1654. if(tmp_co_chbxs.length==tmp_co_chbxs.filter(':checked').length)
  1655. tmp_coh.removeClass('unloaded').find('.unloadCheckHeader').prop('checked', true).prop('indeterminate', false);
  1656. else if(tmp_co_chbxs.filter(':checked').length==0 && tmp_co_chbxs.filter(function(){return this.indeterminate==true}).length==0)
  1657. tmp_coh.addClass('unloaded').find('.unloadCheckHeader').prop('checked', false).prop('indeterminate', false);
  1658. else
  1659. tmp_coh.removeClass('unloaded').find('.unloadCheckHeader').prop('indeterminate', true).prop('checked', false);
  1660. }
  1661. // Escape vCard value - RFC2426 (Section 2.4.2)
  1662. function vcardEscapeValue(inputValue)
  1663. {
  1664. return (inputValue==undefined ? '' : inputValue).replace(/(,|;|\\)/g,"\\$1").replace(/\n/g,'\\n');
  1665. }
  1666. // Unescape vCard value - RFC2426 (Section 2.4.2)
  1667. function vcardUnescapeValue(inputValue)
  1668. {
  1669. var outputValue='';
  1670. if(inputValue!=undefined)
  1671. {
  1672. for(var i=0;i<inputValue.length;i++)
  1673. if(inputValue[i]=='\\' && i+1<inputValue.length)
  1674. {
  1675. if(inputValue[++i]=='n')
  1676. outputValue+='\n';
  1677. else
  1678. outputValue+=inputValue[i];
  1679. }
  1680. else
  1681. outputValue+=inputValue[i];
  1682. }
  1683. return outputValue;
  1684. }
  1685. // Split parameters and remove double quotes from values (if parameter values are quoted)
  1686. function vcardSplitParam(inputValue)
  1687. {
  1688. var result=vcardSplitValue(inputValue, ';');
  1689. var index;
  1690. for(var i=0;i<result.length;i++)
  1691. {
  1692. index=result[i].indexOf('=');
  1693. if(index!=-1 && index+1<result[i].length && result[i][index+1]=='"' && result[i][result[i].length-1]=='"')
  1694. result[i]=result[i].substring(0,index+1)+result[i].substring(index+2,result[i].length-1);
  1695. }
  1696. return result;
  1697. }
  1698. // Split string by separator (but not '\' escaped separator)
  1699. function vcardSplitValue(inputValue, inputDelimiter)
  1700. {
  1701. var outputArray=new Array(),
  1702. i=0,j=0;
  1703. for(i=0;i<inputValue.length;i++)
  1704. {
  1705. if(inputValue[i]==inputDelimiter)
  1706. {
  1707. if(outputArray[j]==undefined)
  1708. outputArray[j]='';
  1709. ++j;
  1710. continue;
  1711. }
  1712. outputArray[j]=(outputArray[j]==undefined ? '' : outputArray[j])+inputValue[i];
  1713. if(inputValue[i]=='\\' && i+1<inputValue.length)
  1714. outputArray[j]=outputArray[j]+inputValue[++i];
  1715. }
  1716. if(inputValue[inputValue.length-1]==inputDelimiter)
  1717. outputArray[j]='';
  1718. return outputArray;
  1719. }
  1720. // equivalent data types (multiply types and/or type combinations can represent the same thing)
  1721. // the vcard editor by default uses the "key" value as a type, but when this type is matched by
  1722. // by "value" regexp then the server specified type is used as default
  1723. var dataTypes=new Object();
  1724. dataTypes['address_type']={
  1725. 'work': RegExp('^work$'),
  1726. 'home': RegExp('^home$'),
  1727. ':_$!<other>!$_:': RegExp('^(?::_\\$!<other>!\\$_:|other)$')
  1728. };
  1729. dataTypes['address_type_store_as']={
  1730. '_$!<other>!$_':'_$!<Other>!$_'
  1731. };
  1732. dataTypes['phone_type']={
  1733. 'work': RegExp('^(?:voice,)?work$'),
  1734. 'home': RegExp('^home(?:,voice)?$'),
  1735. 'cell': RegExp('^cell(?:,voice)?$'),
  1736. 'cell,work': RegExp('^cell(?:,voice)?,work$'),
  1737. 'cell,home': RegExp('^cell,home(?:,voice)?$'),
  1738. 'main': RegExp('^main(?:,voice)?$'),
  1739. 'pager': RegExp('^pager$'),
  1740. 'fax': RegExp('^fax$'),
  1741. 'fax,work': RegExp('^fax,work$'),
  1742. 'fax,home': RegExp('^fax,home$'),
  1743. 'iphone': RegExp('^(?::_\\$!<iphone>!\\$_:|(?:cell,)?iphone(?:,voice)?)$'),
  1744. 'other': RegExp('^(?::_\\$!<other>!\\$_:|other)(?:,voice)?$')
  1745. };
  1746. dataTypes['phone_type_store_as']={
  1747. '_$!<iphone>!$_':'_$!<iPhone>!$_',
  1748. '_$!<other>!$_':'_$!<Other>!$_'
  1749. };
  1750. dataTypes['email_type']={
  1751. 'internet,work': RegExp('^internet,work$'),
  1752. 'home,internet': RegExp('^home,internet$'),
  1753. ':mobileme:,internet': RegExp('^(?::mobileme:,internet|internet,mobileme)$'),
  1754. ':_$!<other>!$_:,internet': RegExp('^(?::_\\$!<other>!\\$_:,internet|internet,other)$')
  1755. };
  1756. dataTypes['email_type_store_as']={
  1757. '_$!<mobileme>!$_':'_$!<mobileMe>!$_',
  1758. '_$!<other>!$_':'_$!<Other>!$_'
  1759. };
  1760. dataTypes['url_type']={
  1761. 'work': RegExp('^work$'),
  1762. 'home': RegExp('^home$'),
  1763. ':_$!<homepage>!$_:': RegExp('^(?::_\\$!<homepage>!\\$_:|homepage)$'),
  1764. ':_$!<other>!$_:': RegExp('^(?::_\\$!<other>!\\$_:|other)$')
  1765. };
  1766. dataTypes['url_type_store_as']={
  1767. '_$!<homepage>!$_':'_$!<HomePage>!$_',
  1768. '_$!<other>!$_':'_$!<Other>!$_'
  1769. };
  1770. dataTypes['date_type']={
  1771. ':_$!<anniversary>!$_:': RegExp('^:_\\$!<anniversary>!\\$_:$'),
  1772. ':_$!<other>!$_:': RegExp('^:_\\$!<other>!\\$_:$')
  1773. };
  1774. dataTypes['date_store_as']={
  1775. '_$!<anniversary>!$_':'_$!<Anniversary>!$_',
  1776. '_$!<other>!$_':'_$!<Other>!$_'
  1777. };
  1778. dataTypes['person_type']={
  1779. ':_$!<father>!$_:': RegExp('^:_\\$!<father>!\\$_:$'),
  1780. ':_$!<mother>!$_:': RegExp('^:_\\$!<mother>!\\$_:$'),
  1781. ':_$!<parent>!$_:': RegExp('^:_\\$!<parent>!\\$_:$'),
  1782. ':_$!<brother>!$_:': RegExp('^:_\\$!<brother>!\\$_:$'),
  1783. ':_$!<sister>!$_:': RegExp('^:_\\$!<sister>!\\$_:$'),
  1784. ':_$!<child>!$_:': RegExp('^:_\\$!<child>!\\$_:$'),
  1785. ':_$!<friend>!$_:': RegExp('^:_\\$!<friend>!\\$_:$'),
  1786. ':_$!<spouse>!$_:': RegExp('^:_\\$!<spouse>!\\$_:$'),
  1787. ':_$!<partner>!$_:': RegExp('^:_\\$!<partner>!\\$_:$'),
  1788. ':_$!<assistant>!$_:': RegExp('^:_\\$!<assistant>!\\$_:$'),
  1789. ':_$!<manager>!$_:': RegExp('^:_\\$!<manager>!\\$_:$'),
  1790. ':_$!<other>!$_:': RegExp('^:_\\$!<other>!\\$_:$')
  1791. };
  1792. dataTypes['person_type_store_as']={
  1793. '_$!<manager>!$_':'_$!<Manager>!$_',
  1794. '_$!<assistant>!$_':'_$!<Assistant>!$_',
  1795. '_$!<father>!$_':'_$!<Father>!$_',
  1796. '_$!<mother>!$_':'_$!<Mother>!$_',
  1797. '_$!<parent>!$_':'_$!<Parent>!$_',
  1798. '_$!<brother>!$_':'_$!<Brother>!$_',
  1799. '_$!<sister>!$_':'_$!<Sister>!$_',
  1800. '_$!<child>!$_':'_$!<Child>!$_',
  1801. '_$!<friend>!$_':'_$!<Friend>!$_',
  1802. '_$!<spouse>!$_':'_$!<Spouse>!$_',
  1803. '_$!<partner>!$_':'_$!<Partner>!$_',
  1804. '_$!<other>!$_':'_$!<Other>!$_'
  1805. };
  1806. dataTypes['im_type']={
  1807. 'work': RegExp('^work$'),
  1808. 'home': RegExp('^home$'),
  1809. ':mobileme:': RegExp('^(?::mobileme:|mobileme)$'),
  1810. ':_$!<other>!$_:': RegExp('^(?::_\\$!<other>!\\$_:|other)$')
  1811. };
  1812. dataTypes['im_type_store_as']={
  1813. '_$!<mobileme>!$_':'_$!<mobileMe>!$_',
  1814. '_$!<other>!$_':'_$!<Other>!$_'
  1815. };
  1816. dataTypes['im_service_type_store_as']={
  1817. 'aim':'AIM',
  1818. 'icq':'ICQ',
  1819. 'irc':'IRC',
  1820. 'jabber':'Jabber',
  1821. 'msn':'MSN',
  1822. 'yahoo':'Yahoo',
  1823. 'facebook':'Facebook',
  1824. 'gadugadu':'GaduGadu',
  1825. 'googletalk':'GoogleTalk',
  1826. 'qq':'QQ',
  1827. 'skype':'Skype'
  1828. };
  1829. dataTypes['profile_type']={
  1830. 'twitter': RegExp('^twitter$'),
  1831. 'facebook': RegExp('^facebook$'),
  1832. 'flickr': RegExp('^flickr$'),
  1833. 'linkedin': RegExp('^linkedin$'),
  1834. 'myspace': RegExp('^myspace$'),
  1835. 'sinaweibo': RegExp('^sinaweibo$')
  1836. };
  1837. dataTypes['profile_type_store_as']={};