haw.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531
  1. package haw
  2. import (
  3. "math"
  4. "strconv"
  5. "time"
  6. "github.com/go-playground/locales"
  7. "github.com/go-playground/locales/currency"
  8. )
  9. type haw struct {
  10. locale string
  11. pluralsCardinal []locales.PluralRule
  12. pluralsOrdinal []locales.PluralRule
  13. pluralsRange []locales.PluralRule
  14. decimal string
  15. group string
  16. minus string
  17. percent string
  18. perMille string
  19. timeSeparator string
  20. inifinity string
  21. currencies []string // idx = enum of currency code
  22. currencyNegativePrefix string
  23. currencyNegativeSuffix string
  24. monthsAbbreviated []string
  25. monthsNarrow []string
  26. monthsWide []string
  27. daysAbbreviated []string
  28. daysNarrow []string
  29. daysShort []string
  30. daysWide []string
  31. periodsAbbreviated []string
  32. periodsNarrow []string
  33. periodsShort []string
  34. periodsWide []string
  35. erasAbbreviated []string
  36. erasNarrow []string
  37. erasWide []string
  38. timezones map[string]string
  39. }
  40. // New returns a new instance of translator for the 'haw' locale
  41. func New() locales.Translator {
  42. return &haw{
  43. locale: "haw",
  44. pluralsCardinal: []locales.PluralRule{2, 6},
  45. pluralsOrdinal: nil,
  46. pluralsRange: nil,
  47. timeSeparator: ":",
  48. currencies: []string{"ADP ", "AED ", "AFA ", "AFN ", "ALK ", "ALL ", "AMD ", "ANG ", "AOA ", "AOK ", "AON ", "AOR ", "ARA ", "ARL ", "ARM ", "ARP ", "ARS ", "ATS ", "AUD ", "AWG ", "AZM ", "AZN ", "BAD ", "BAM ", "BAN ", "BBD ", "BDT ", "BEC ", "BEF ", "BEL ", "BGL ", "BGM ", "BGN ", "BGO ", "BHD ", "BIF ", "BMD ", "BND ", "BOB ", "BOL ", "BOP ", "BOV ", "BRB ", "BRC ", "BRE ", "BRL ", "BRN ", "BRR ", "BRZ ", "BSD ", "BTN ", "BUK ", "BWP ", "BYB ", "BYR ", "BZD ", "CAD ", "CDF ", "CHE ", "CHF ", "CHW ", "CLE ", "CLF ", "CLP ", "CNX ", "CNY ", "COP ", "COU ", "CRC ", "CSD ", "CSK ", "CUC ", "CUP ", "CVE ", "CYP ", "CZK ", "DDM ", "DEM ", "DJF ", "DKK ", "DOP ", "DZD ", "ECS ", "ECV ", "EEK ", "EGP ", "ERN ", "ESA ", "ESB ", "ESP ", "ETB ", "EUR ", "FIM ", "FJD ", "FKP ", "FRF ", "GBP ", "GEK ", "GEL ", "GHC ", "GHS ", "GIP ", "GMD ", "GNF ", "GNS ", "GQE ", "GRD ", "GTQ ", "GWE ", "GWP ", "GYD ", "HKD ", "HNL ", "HRD ", "HRK ", "HTG ", "HUF ", "IDR ", "IEP ", "ILP ", "ILR ", "ILS ", "INR ", "IQD ", "IRR ", "ISJ ", "ISK ", "ITL ", "JMD ", "JOD ", "JPY ", "KES ", "KGS ", "KHR ", "KMF ", "KPW ", "KRH ", "KRO ", "KRW ", "KWD ", "KYD ", "KZT ", "LAK ", "LBP ", "LKR ", "LRD ", "LSL ", "LTL ", "LTT ", "LUC ", "LUF ", "LUL ", "LVL ", "LVR ", "LYD ", "MAD ", "MAF ", "MCF ", "MDC ", "MDL ", "MGA ", "MGF ", "MKD ", "MKN ", "MLF ", "MMK ", "MNT ", "MOP ", "MRO ", "MTL ", "MTP ", "MUR ", "MVP ", "MVR ", "MWK ", "MXN ", "MXP ", "MXV ", "MYR ", "MZE ", "MZM ", "MZN ", "NAD ", "NGN ", "NIC ", "NIO ", "NLG ", "NOK ", "NPR ", "NZD ", "OMR ", "PAB ", "PEI ", "PEN ", "PES ", "PGK ", "PHP ", "PKR ", "PLN ", "PLZ ", "PTE ", "PYG ", "QAR ", "RHD ", "ROL ", "RON ", "RSD ", "RUB ", "RUR ", "RWF ", "SAR ", "SBD ", "SCR ", "SDD ", "SDG ", "SDP ", "SEK ", "SGD ", "SHP ", "SIT ", "SKK ", "SLL ", "SOS ", "SRD ", "SRG ", "SSP ", "STD ", "SUR ", "SVC ", "SYP ", "SZL ", "THB ", "TJR ", "TJS ", "TMM ", "TMT ", "TND ", "TOP ", "TPE ", "TRL ", "TRY ", "TTD ", "TWD ", "TZS ", "UAH ", "UAK ", "UGS ", "UGX ", "$", "USN ", "USS ", "UYI ", "UYP ", "UYU ", "UZS ", "VEB ", "VEF ", "VND ", "VNN ", "VUV ", "WST ", "XAF ", "XAG ", "XAU ", "XBA ", "XBB ", "XBC ", "XBD ", "XCD ", "XDR ", "XEU ", "XFO ", "XFU ", "XOF ", "XPD ", "XPF ", "XPT ", "XRE ", "XSU ", "XTS ", "XUA ", "XXX ", "YDD ", "YER ", "YUD ", "YUM ", "YUN ", "YUR ", "ZAL ", "ZAR ", "ZMK ", "ZMW ", "ZRN ", "ZRZ ", "ZWD ", "ZWL ", "ZWR "},
  49. currencyNegativePrefix: "(",
  50. currencyNegativeSuffix: ")",
  51. monthsAbbreviated: []string{"", "Ian.", "Pep.", "Mal.", "ʻAp.", "Mei", "Iun.", "Iul.", "ʻAu.", "Kep.", "ʻOk.", "Now.", "Kek."},
  52. monthsWide: []string{"", "Ianuali", "Pepeluali", "Malaki", "ʻApelila", "Mei", "Iune", "Iulai", "ʻAukake", "Kepakemapa", "ʻOkakopa", "Nowemapa", "Kekemapa"},
  53. daysAbbreviated: []string{"LP", "P1", "P2", "P3", "P4", "P5", "P6"},
  54. daysWide: []string{"Lāpule", "Poʻakahi", "Poʻalua", "Poʻakolu", "Poʻahā", "Poʻalima", "Poʻaono"},
  55. timezones: map[string]string{"SRT": "SRT", "UYT": "UYT", "COT": "COT", "HADT": "HADT", "PDT": "PDT", "ARST": "ARST", "AWDT": "AWDT", "JDT": "JDT", "ACWDT": "ACWDT", "HAST": "HAST", "HAT": "HAT", "ART": "ART", "ACWST": "ACWST", "HKT": "HKT", "GFT": "GFT", "WIT": "WIT", "WIB": "WIB", "LHDT": "LHDT", "WAST": "WAST", "WITA": "WITA", "AWST": "AWST", "HKST": "HKST", "MEZ": "MEZ", "AKDT": "AKDT", "NZST": "NZST", "VET": "VET", "HNT": "HNT", "AKST": "AKST", "WART": "WART", "ADT": "ADT", "TMT": "TMT", "BOT": "BOT", "CHADT": "CHADT", "MST": "MST", "TMST": "TMST", "WESZ": "WESZ", "COST": "COST", "AST": "AST", "BT": "BT", "OESZ": "OESZ", "IST": "IST", "∅∅∅": "∅∅∅", "LHST": "LHST", "MESZ": "MESZ", "CDT": "CDT", "ChST": "ChST", "WEZ": "WEZ", "WARST": "WARST", "MDT": "MDT", "JST": "JST", "CST": "CST", "AEST": "AEST", "CLST": "CLST", "GMT": "GMT", "PST": "PST", "ECT": "ECT", "EAT": "EAT", "EDT": "EDT", "SGT": "SGT", "OEZ": "OEZ", "ACDT": "ACDT", "MYT": "MYT", "UYST": "UYST", "AEDT": "AEDT", "GYT": "GYT", "CHAST": "CHAST", "CLT": "CLT", "EST": "EST", "CAT": "CAT", "WAT": "WAT", "ACST": "ACST", "SAST": "SAST", "NZDT": "NZDT"},
  56. }
  57. }
  58. // Locale returns the current translators string locale
  59. func (haw *haw) Locale() string {
  60. return haw.locale
  61. }
  62. // PluralsCardinal returns the list of cardinal plural rules associated with 'haw'
  63. func (haw *haw) PluralsCardinal() []locales.PluralRule {
  64. return haw.pluralsCardinal
  65. }
  66. // PluralsOrdinal returns the list of ordinal plural rules associated with 'haw'
  67. func (haw *haw) PluralsOrdinal() []locales.PluralRule {
  68. return haw.pluralsOrdinal
  69. }
  70. // PluralsRange returns the list of range plural rules associated with 'haw'
  71. func (haw *haw) PluralsRange() []locales.PluralRule {
  72. return haw.pluralsRange
  73. }
  74. // CardinalPluralRule returns the cardinal PluralRule given 'num' and digits/precision of 'v' for 'haw'
  75. func (haw *haw) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
  76. n := math.Abs(num)
  77. if n == 1 {
  78. return locales.PluralRuleOne
  79. }
  80. return locales.PluralRuleOther
  81. }
  82. // OrdinalPluralRule returns the ordinal PluralRule given 'num' and digits/precision of 'v' for 'haw'
  83. func (haw *haw) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
  84. return locales.PluralRuleUnknown
  85. }
  86. // RangePluralRule returns the ordinal PluralRule given 'num1', 'num2' and digits/precision of 'v1' and 'v2' for 'haw'
  87. func (haw *haw) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) locales.PluralRule {
  88. return locales.PluralRuleUnknown
  89. }
  90. // MonthAbbreviated returns the locales abbreviated month given the 'month' provided
  91. func (haw *haw) MonthAbbreviated(month time.Month) string {
  92. return haw.monthsAbbreviated[month]
  93. }
  94. // MonthsAbbreviated returns the locales abbreviated months
  95. func (haw *haw) MonthsAbbreviated() []string {
  96. return haw.monthsAbbreviated[1:]
  97. }
  98. // MonthNarrow returns the locales narrow month given the 'month' provided
  99. func (haw *haw) MonthNarrow(month time.Month) string {
  100. return haw.monthsNarrow[month]
  101. }
  102. // MonthsNarrow returns the locales narrow months
  103. func (haw *haw) MonthsNarrow() []string {
  104. return haw.monthsNarrow[1:]
  105. }
  106. // MonthWide returns the locales wide month given the 'month' provided
  107. func (haw *haw) MonthWide(month time.Month) string {
  108. return haw.monthsWide[month]
  109. }
  110. // MonthsWide returns the locales wide months
  111. func (haw *haw) MonthsWide() []string {
  112. return haw.monthsWide[1:]
  113. }
  114. // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided
  115. func (haw *haw) WeekdayAbbreviated(weekday time.Weekday) string {
  116. return haw.daysAbbreviated[weekday]
  117. }
  118. // WeekdaysAbbreviated returns the locales abbreviated weekdays
  119. func (haw *haw) WeekdaysAbbreviated() []string {
  120. return haw.daysAbbreviated
  121. }
  122. // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided
  123. func (haw *haw) WeekdayNarrow(weekday time.Weekday) string {
  124. return haw.daysNarrow[weekday]
  125. }
  126. // WeekdaysNarrow returns the locales narrow weekdays
  127. func (haw *haw) WeekdaysNarrow() []string {
  128. return haw.daysNarrow
  129. }
  130. // WeekdayShort returns the locales short weekday given the 'weekday' provided
  131. func (haw *haw) WeekdayShort(weekday time.Weekday) string {
  132. return haw.daysShort[weekday]
  133. }
  134. // WeekdaysShort returns the locales short weekdays
  135. func (haw *haw) WeekdaysShort() []string {
  136. return haw.daysShort
  137. }
  138. // WeekdayWide returns the locales wide weekday given the 'weekday' provided
  139. func (haw *haw) WeekdayWide(weekday time.Weekday) string {
  140. return haw.daysWide[weekday]
  141. }
  142. // WeekdaysWide returns the locales wide weekdays
  143. func (haw *haw) WeekdaysWide() []string {
  144. return haw.daysWide
  145. }
  146. // FmtNumber returns 'num' with digits/precision of 'v' for 'haw' and handles both Whole and Real numbers based on 'v'
  147. func (haw *haw) FmtNumber(num float64, v uint64) string {
  148. return strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
  149. }
  150. // FmtPercent returns 'num' with digits/precision of 'v' for 'haw' and handles both Whole and Real numbers based on 'v'
  151. // NOTE: 'num' passed into FmtPercent is assumed to be in percent already
  152. func (haw *haw) FmtPercent(num float64, v uint64) string {
  153. return strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
  154. }
  155. // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'haw'
  156. func (haw *haw) FmtCurrency(num float64, v uint64, currency currency.Type) string {
  157. s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
  158. symbol := haw.currencies[currency]
  159. l := len(s) + len(symbol) + 0 + 0*len(s[:len(s)-int(v)-1])/3
  160. count := 0
  161. inWhole := v == 0
  162. b := make([]byte, 0, l)
  163. for i := len(s) - 1; i >= 0; i-- {
  164. if s[i] == '.' {
  165. b = append(b, haw.decimal[0])
  166. inWhole = true
  167. continue
  168. }
  169. if inWhole {
  170. if count == 3 {
  171. b = append(b, haw.group[0])
  172. count = 1
  173. } else {
  174. count++
  175. }
  176. }
  177. b = append(b, s[i])
  178. }
  179. for j := len(symbol) - 1; j >= 0; j-- {
  180. b = append(b, symbol[j])
  181. }
  182. if num < 0 {
  183. b = append(b, haw.minus[0])
  184. }
  185. // reverse
  186. for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
  187. b[i], b[j] = b[j], b[i]
  188. }
  189. if int(v) < 2 {
  190. if v == 0 {
  191. b = append(b, haw.decimal...)
  192. }
  193. for i := 0; i < 2-int(v); i++ {
  194. b = append(b, '0')
  195. }
  196. }
  197. return string(b)
  198. }
  199. // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'haw'
  200. // in accounting notation.
  201. func (haw *haw) FmtAccounting(num float64, v uint64, currency currency.Type) string {
  202. s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
  203. symbol := haw.currencies[currency]
  204. l := len(s) + len(symbol) + 2 + 0*len(s[:len(s)-int(v)-1])/3
  205. count := 0
  206. inWhole := v == 0
  207. b := make([]byte, 0, l)
  208. for i := len(s) - 1; i >= 0; i-- {
  209. if s[i] == '.' {
  210. b = append(b, haw.decimal[0])
  211. inWhole = true
  212. continue
  213. }
  214. if inWhole {
  215. if count == 3 {
  216. b = append(b, haw.group[0])
  217. count = 1
  218. } else {
  219. count++
  220. }
  221. }
  222. b = append(b, s[i])
  223. }
  224. if num < 0 {
  225. for j := len(symbol) - 1; j >= 0; j-- {
  226. b = append(b, symbol[j])
  227. }
  228. b = append(b, haw.currencyNegativePrefix[0])
  229. } else {
  230. for j := len(symbol) - 1; j >= 0; j-- {
  231. b = append(b, symbol[j])
  232. }
  233. }
  234. // reverse
  235. for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
  236. b[i], b[j] = b[j], b[i]
  237. }
  238. if int(v) < 2 {
  239. if v == 0 {
  240. b = append(b, haw.decimal...)
  241. }
  242. for i := 0; i < 2-int(v); i++ {
  243. b = append(b, '0')
  244. }
  245. }
  246. if num < 0 {
  247. b = append(b, haw.currencyNegativeSuffix...)
  248. }
  249. return string(b)
  250. }
  251. // FmtDateShort returns the short date representation of 't' for 'haw'
  252. func (haw *haw) FmtDateShort(t time.Time) string {
  253. b := make([]byte, 0, 32)
  254. b = strconv.AppendInt(b, int64(t.Day()), 10)
  255. b = append(b, []byte{0x2f}...)
  256. b = strconv.AppendInt(b, int64(t.Month()), 10)
  257. b = append(b, []byte{0x2f}...)
  258. if t.Year() > 9 {
  259. b = append(b, strconv.Itoa(t.Year())[2:]...)
  260. } else {
  261. b = append(b, strconv.Itoa(t.Year())[1:]...)
  262. }
  263. return string(b)
  264. }
  265. // FmtDateMedium returns the medium date representation of 't' for 'haw'
  266. func (haw *haw) FmtDateMedium(t time.Time) string {
  267. b := make([]byte, 0, 32)
  268. b = strconv.AppendInt(b, int64(t.Day()), 10)
  269. b = append(b, []byte{0x20}...)
  270. b = append(b, haw.monthsAbbreviated[t.Month()]...)
  271. b = append(b, []byte{0x20}...)
  272. b = strconv.AppendInt(b, int64(t.Year()), 10)
  273. return string(b)
  274. }
  275. // FmtDateLong returns the long date representation of 't' for 'haw'
  276. func (haw *haw) FmtDateLong(t time.Time) string {
  277. b := make([]byte, 0, 32)
  278. b = strconv.AppendInt(b, int64(t.Day()), 10)
  279. b = append(b, []byte{0x20}...)
  280. b = append(b, haw.monthsWide[t.Month()]...)
  281. b = append(b, []byte{0x20}...)
  282. b = strconv.AppendInt(b, int64(t.Year()), 10)
  283. return string(b)
  284. }
  285. // FmtDateFull returns the full date representation of 't' for 'haw'
  286. func (haw *haw) FmtDateFull(t time.Time) string {
  287. b := make([]byte, 0, 32)
  288. b = append(b, haw.daysWide[t.Weekday()]...)
  289. b = append(b, []byte{0x2c, 0x20}...)
  290. b = strconv.AppendInt(b, int64(t.Day()), 10)
  291. b = append(b, []byte{0x20}...)
  292. b = append(b, haw.monthsWide[t.Month()]...)
  293. b = append(b, []byte{0x20}...)
  294. b = strconv.AppendInt(b, int64(t.Year()), 10)
  295. return string(b)
  296. }
  297. // FmtTimeShort returns the short time representation of 't' for 'haw'
  298. func (haw *haw) FmtTimeShort(t time.Time) string {
  299. b := make([]byte, 0, 32)
  300. h := t.Hour()
  301. if h > 12 {
  302. h -= 12
  303. }
  304. b = strconv.AppendInt(b, int64(h), 10)
  305. b = append(b, haw.timeSeparator...)
  306. if t.Minute() < 10 {
  307. b = append(b, '0')
  308. }
  309. b = strconv.AppendInt(b, int64(t.Minute()), 10)
  310. b = append(b, []byte{0x20}...)
  311. if t.Hour() < 12 {
  312. b = append(b, haw.periodsAbbreviated[0]...)
  313. } else {
  314. b = append(b, haw.periodsAbbreviated[1]...)
  315. }
  316. return string(b)
  317. }
  318. // FmtTimeMedium returns the medium time representation of 't' for 'haw'
  319. func (haw *haw) FmtTimeMedium(t time.Time) string {
  320. b := make([]byte, 0, 32)
  321. h := t.Hour()
  322. if h > 12 {
  323. h -= 12
  324. }
  325. b = strconv.AppendInt(b, int64(h), 10)
  326. b = append(b, haw.timeSeparator...)
  327. if t.Minute() < 10 {
  328. b = append(b, '0')
  329. }
  330. b = strconv.AppendInt(b, int64(t.Minute()), 10)
  331. b = append(b, haw.timeSeparator...)
  332. if t.Second() < 10 {
  333. b = append(b, '0')
  334. }
  335. b = strconv.AppendInt(b, int64(t.Second()), 10)
  336. b = append(b, []byte{0x20}...)
  337. if t.Hour() < 12 {
  338. b = append(b, haw.periodsAbbreviated[0]...)
  339. } else {
  340. b = append(b, haw.periodsAbbreviated[1]...)
  341. }
  342. return string(b)
  343. }
  344. // FmtTimeLong returns the long time representation of 't' for 'haw'
  345. func (haw *haw) FmtTimeLong(t time.Time) string {
  346. b := make([]byte, 0, 32)
  347. h := t.Hour()
  348. if h > 12 {
  349. h -= 12
  350. }
  351. b = strconv.AppendInt(b, int64(h), 10)
  352. b = append(b, haw.timeSeparator...)
  353. if t.Minute() < 10 {
  354. b = append(b, '0')
  355. }
  356. b = strconv.AppendInt(b, int64(t.Minute()), 10)
  357. b = append(b, haw.timeSeparator...)
  358. if t.Second() < 10 {
  359. b = append(b, '0')
  360. }
  361. b = strconv.AppendInt(b, int64(t.Second()), 10)
  362. b = append(b, []byte{0x20}...)
  363. if t.Hour() < 12 {
  364. b = append(b, haw.periodsAbbreviated[0]...)
  365. } else {
  366. b = append(b, haw.periodsAbbreviated[1]...)
  367. }
  368. b = append(b, []byte{0x20}...)
  369. tz, _ := t.Zone()
  370. b = append(b, tz...)
  371. return string(b)
  372. }
  373. // FmtTimeFull returns the full time representation of 't' for 'haw'
  374. func (haw *haw) FmtTimeFull(t time.Time) string {
  375. b := make([]byte, 0, 32)
  376. h := t.Hour()
  377. if h > 12 {
  378. h -= 12
  379. }
  380. b = strconv.AppendInt(b, int64(h), 10)
  381. b = append(b, haw.timeSeparator...)
  382. if t.Minute() < 10 {
  383. b = append(b, '0')
  384. }
  385. b = strconv.AppendInt(b, int64(t.Minute()), 10)
  386. b = append(b, haw.timeSeparator...)
  387. if t.Second() < 10 {
  388. b = append(b, '0')
  389. }
  390. b = strconv.AppendInt(b, int64(t.Second()), 10)
  391. b = append(b, []byte{0x20}...)
  392. if t.Hour() < 12 {
  393. b = append(b, haw.periodsAbbreviated[0]...)
  394. } else {
  395. b = append(b, haw.periodsAbbreviated[1]...)
  396. }
  397. b = append(b, []byte{0x20}...)
  398. tz, _ := t.Zone()
  399. if btz, ok := haw.timezones[tz]; ok {
  400. b = append(b, btz...)
  401. } else {
  402. b = append(b, tz...)
  403. }
  404. return string(b)
  405. }