UNPKG

intl-tel-input

Version:

A JavaScript plugin for entering and validating international telephone numbers

2,062 lines (2,061 loc) 135 kB
var Qs = Object.defineProperty; var tn = (e) => { throw TypeError(e); }; var Zs = (e, t, i) => t in e ? Qs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i; var Dt = (e, t, i) => Zs(e, typeof t != "symbol" ? t + "" : t, i), li = (e, t, i) => t.has(e) || tn("Cannot " + i); var r = (e, t, i) => (li(e, t, "read from private field"), i ? i.call(e) : t.get(e)), I = (e, t, i) => t.has(e) ? tn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), v = (e, t, i, n) => (li(e, t, "write to private field"), n ? n.call(e, i) : t.set(e, i), i), h = (e, t, i) => (li(e, t, "access private method"), i); import { onMount as Js, onDestroy as tr } from "svelte"; const er = "5"; var Nn; typeof window < "u" && ((Nn = window.__svelte ?? (window.__svelte = {})).v ?? (Nn.v = /* @__PURE__ */ new Set())).add(er); const ir = 1, nr = 4, sr = 8, rr = 16, lr = 2, G = Symbol(), or = "http://www.w3.org/1999/xhtml", ar = "@attach", hi = !1; var An = Array.isArray, ur = Array.prototype.indexOf, cr = Object.defineProperty, ze = Object.getOwnPropertyDescriptor, fr = Object.getOwnPropertyDescriptors, hr = Object.prototype, dr = Array.prototype, Dn = Object.getPrototypeOf; function pr(e) { for (var t = 0; t < e.length; t++) e[t](); } function Ln() { var e, t, i = new Promise((n, s) => { e = n, t = s; }); return { promise: i, resolve: e, reject: t }; } const Y = 2, Qe = 4, Wi = 8, Bi = 1 << 24, Zt = 16, Jt = 32, me = 64, Tn = 128, ft = 512, X = 1024, ot = 2048, Ht = 4096, oe = 8192, At = 16384, Fi = 32768, en = 65536, nn = 1 << 17, On = 1 << 18, ri = 1 << 19, yr = 1 << 20, Xt = 32768, di = 1 << 21, Vi = 1 << 22, kt = 1 << 23, Kt = Symbol("$state"), Cr = Symbol("legacy props"), vr = Symbol(""), ie = new class extends Error { constructor() { super(...arguments); Dt(this, "name", "StaleReactionError"); Dt(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed"); } }(); function _r() { throw new Error("https://svelte.dev/e/async_derived_orphan"); } function gr(e) { throw new Error("https://svelte.dev/e/effect_in_teardown"); } function mr() { throw new Error("https://svelte.dev/e/effect_in_unowned_derived"); } function br(e) { throw new Error("https://svelte.dev/e/effect_orphan"); } function Er() { throw new Error("https://svelte.dev/e/effect_update_depth_exceeded"); } function Ir(e) { throw new Error("https://svelte.dev/e/props_invalid_value"); } function wr() { throw new Error("https://svelte.dev/e/state_descriptors_fixed"); } function Nr() { throw new Error("https://svelte.dev/e/state_prototype_fixed"); } function Ar() { throw new Error("https://svelte.dev/e/state_unsafe_mutation"); } function Dr() { console.warn("https://svelte.dev/e/select_multiple_invalid_value"); } function Sn(e) { return e === this.v; } function Lr(e, t) { return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function"; } function Tr(e) { return !Lr(e, this.v); } let Or = !1, bt = null; function Ze(e) { bt = e; } function Sr(e, t = !1, i) { bt = { p: bt, i: !1, c: null, e: null, s: e, x: null, l: null }; } function Pr(e) { var t = ( /** @type {ComponentContext} */ bt ), i = t.e; if (i !== null) { t.e = null; for (var n of i) Gn(n); } return e !== void 0 && (t.x = e), t.i = !0, bt = t.p, e ?? /** @type {T} */ {}; } function Pn() { return !0; } let ne = []; function Rr() { var e = ne; ne = [], pr(e); } function Se(e) { if (ne.length === 0) { var t = ne; queueMicrotask(() => { t === ne && Rr(); }); } ne.push(e); } function kr(e) { var t = H; if (t === null) return P.f |= kt, e; if ((t.f & Fi) === 0) { if ((t.f & Tn) === 0) throw e; t.b.error(e); } else Je(e, t); } function Je(e, t) { for (; t !== null; ) { if ((t.f & Tn) !== 0) try { t.b.error(e); return; } catch (i) { e = i; } t = t.parent; } throw e; } const Mr = -7169; function Z(e, t) { e.f = e.f & Mr | t; } function ji(e) { (e.f & ft) !== 0 || e.deps === null ? Z(e, X) : Z(e, Ht); } function Rn(e) { if (e !== null) for (const t of e) (t.f & Y) === 0 || (t.f & Xt) === 0 || (t.f ^= Xt, Rn( /** @type {Derived} */ t.deps )); } function Ur(e, t, i) { (e.f & ot) !== 0 ? t.add(e) : (e.f & Ht) !== 0 && i.add(e), Rn(e.deps), Z(e, X); } const je = /* @__PURE__ */ new Set(); let B = null, $ = null, pt = [], Gi = null, pi = !1; var ue, ce, Vt, fe, ke, he, de, pe, It, yi, Ci, kn; const Qi = class Qi { constructor() { I(this, It); Dt(this, "committed", !1); /** * The current values of any sources that are updated in this batch * They keys of this map are identical to `this.#previous` * @type {Map<Source, any>} */ Dt(this, "current", /* @__PURE__ */ new Map()); /** * The values of any sources that are updated in this batch _before_ those updates took place. * They keys of this map are identical to `this.#current` * @type {Map<Source, any>} */ Dt(this, "previous", /* @__PURE__ */ new Map()); /** * When the batch is committed (and the DOM is updated), we need to remove old branches * and append new ones by calling the functions added inside (if/each/key/etc) blocks * @type {Set<() => void>} */ I(this, ue, /* @__PURE__ */ new Set()); /** * If a fork is discarded, we need to destroy any effects that are no longer needed * @type {Set<(batch: Batch) => void>} */ I(this, ce, /* @__PURE__ */ new Set()); /** * The number of async effects that are currently in flight */ I(this, Vt, 0); /** * The number of async effects that are currently in flight, _not_ inside a pending boundary */ I(this, fe, 0); /** * A deferred that resolves when the batch is committed, used with `settled()` * TODO replace with Promise.withResolvers once supported widely enough * @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null} */ I(this, ke, null); /** * Deferred effects (which run after async work has completed) that are DIRTY * @type {Set<Effect>} */ I(this, he, /* @__PURE__ */ new Set()); /** * Deferred effects that are MAYBE_DIRTY * @type {Set<Effect>} */ I(this, de, /* @__PURE__ */ new Set()); /** * A set of branches that still exist, but will be destroyed when this batch * is committed — we skip over these during `process` * @type {Set<Effect>} */ Dt(this, "skipped_effects", /* @__PURE__ */ new Set()); Dt(this, "is_fork", !1); I(this, pe, !1); } is_deferred() { return this.is_fork || r(this, fe) > 0; } /** * * @param {Effect[]} root_effects */ process(t) { var s; pt = [], this.apply(); var i = [], n = []; for (const l of t) h(this, It, yi).call(this, l, i, n); if (this.is_deferred()) h(this, It, Ci).call(this, n), h(this, It, Ci).call(this, i); else { for (const l of r(this, ue)) l(); r(this, ue).clear(), r(this, Vt) === 0 && h(this, It, kn).call(this), B = null, sn(n), sn(i), (s = r(this, ke)) == null || s.resolve(); } $ = null; } /** * Associate a change to a given source with the current * batch, noting its previous and current values * @param {Source} source * @param {any} value */ capture(t, i) { i !== G && !this.previous.has(t) && this.previous.set(t, i), (t.f & kt) === 0 && (this.current.set(t, t.v), $ == null || $.set(t, t.v)); } activate() { B = this, this.apply(); } deactivate() { B === this && (B = null, $ = null); } flush() { if (this.activate(), pt.length > 0) { if (xr(), B !== null && B !== this) return; } else r(this, Vt) === 0 && this.process([]); this.deactivate(); } discard() { for (const t of r(this, ce)) t(this); r(this, ce).clear(); } /** * * @param {boolean} blocking */ increment(t) { v(this, Vt, r(this, Vt) + 1), t && v(this, fe, r(this, fe) + 1); } /** * * @param {boolean} blocking */ decrement(t) { v(this, Vt, r(this, Vt) - 1), t && v(this, fe, r(this, fe) - 1), !r(this, pe) && (v(this, pe, !0), Se(() => { v(this, pe, !1), this.is_deferred() ? pt.length > 0 && this.flush() : this.revive(); })); } revive() { for (const t of r(this, he)) r(this, de).delete(t), Z(t, ot), ge(t); for (const t of r(this, de)) Z(t, Ht), ge(t); this.flush(); } /** @param {() => void} fn */ oncommit(t) { r(this, ue).add(t); } /** @param {(batch: Batch) => void} fn */ ondiscard(t) { r(this, ce).add(t); } settled() { return (r(this, ke) ?? v(this, ke, Ln())).promise; } static ensure() { if (B === null) { const t = B = new Qi(); je.add(B), Se(() => { B === t && t.flush(); }); } return B; } apply() { } }; ue = new WeakMap(), ce = new WeakMap(), Vt = new WeakMap(), fe = new WeakMap(), ke = new WeakMap(), he = new WeakMap(), de = new WeakMap(), pe = new WeakMap(), It = new WeakSet(), /** * Traverse the effect tree, executing effects or stashing * them for later execution as appropriate * @param {Effect} root * @param {Effect[]} effects * @param {Effect[]} render_effects */ yi = function(t, i, n) { t.f ^= X; for (var s = t.first, l = null; s !== null; ) { var o = s.f, u = (o & (Jt | me)) !== 0, a = u && (o & X) !== 0, f = a || (o & oe) !== 0 || this.skipped_effects.has(s); if (!f && s.fn !== null) { u ? s.f ^= X : l !== null && (o & (Qe | Wi | Bi)) !== 0 ? l.b.defer_effect(s) : (o & Qe) !== 0 ? i.push(s) : Ve(s) && ((o & Zt) !== 0 && r(this, he).add(s), Pe(s)); var d = s.first; if (d !== null) { s = d; continue; } } var p = s.parent; for (s = s.next; s === null && p !== null; ) p === l && (l = null), s = p.next, p = p.parent; } }, /** * @param {Effect[]} effects */ Ci = function(t) { for (var i = 0; i < t.length; i += 1) Ur(t[i], r(this, he), r(this, de)); }, kn = function() { var s; if (je.size > 1) { this.previous.clear(); var t = $, i = !0; for (const l of je) { if (l === this) { i = !1; continue; } const o = []; for (const [a, f] of this.current) { if (l.current.has(a)) if (i && f !== l.current.get(a)) l.current.set(a, f); else continue; o.push(a); } if (o.length === 0) continue; const u = [...l.current.keys()].filter((a) => !this.current.has(a)); if (u.length > 0) { var n = pt; pt = []; const a = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Map(); for (const d of o) Mn(d, u, a, f); if (pt.length > 0) { B = l, l.apply(); for (const d of pt) h(s = l, It, yi).call(s, d, [], []); l.deactivate(); } pt = n; } } B = null, $ = t; } this.committed = !0, je.delete(this); }; let ti = Qi; function xr() { pi = !0; var e = null; try { for (var t = 0; pt.length > 0; ) { var i = ti.ensure(); if (t++ > 1e3) { var n, s; Hr(); } i.process(pt), Mt.clear(); } } finally { pi = !1, Gi = null; } } function Hr() { try { Er(); } catch (e) { Je(e, Gi); } } let dt = null; function sn(e) { var t = e.length; if (t !== 0) { for (var i = 0; i < t; ) { var n = e[i++]; if ((n.f & (At | oe)) === 0 && Ve(n) && (dt = /* @__PURE__ */ new Set(), Pe(n), n.deps === null && n.first === null && n.nodes === null && (n.teardown === null && n.ac === null ? qn(n) : n.fn = null), (dt == null ? void 0 : dt.size) > 0)) { Mt.clear(); for (const s of dt) { if ((s.f & (At | oe)) !== 0) continue; const l = [s]; let o = s.parent; for (; o !== null; ) dt.has(o) && (dt.delete(o), l.push(o)), o = o.parent; for (let u = l.length - 1; u >= 0; u--) { const a = l[u]; (a.f & (At | oe)) === 0 && Pe(a); } } dt.clear(); } } dt = null; } } function Mn(e, t, i, n) { if (!i.has(e) && (i.add(e), e.reactions !== null)) for (const s of e.reactions) { const l = s.f; (l & Y) !== 0 ? Mn( /** @type {Derived} */ s, t, i, n ) : (l & (Vi | Zt)) !== 0 && (l & ot) === 0 && Un(s, t, n) && (Z(s, ot), ge( /** @type {Effect} */ s )); } } function Un(e, t, i) { const n = i.get(e); if (n !== void 0) return n; if (e.deps !== null) for (const s of e.deps) { if (t.includes(s)) return !0; if ((s.f & Y) !== 0 && Un( /** @type {Derived} */ s, t, i )) return i.set( /** @type {Derived} */ s, !0 ), !0; } return i.set(e, !1), !1; } function ge(e) { for (var t = Gi = e; t.parent !== null; ) { t = t.parent; var i = t.f; if (pi && t === H && (i & Zt) !== 0 && (i & On) === 0) return; if ((i & (me | Jt)) !== 0) { if ((i & X) === 0) return; t.f ^= X; } } pt.push(t); } function Wr(e, t, i, n) { const s = $i; var l = e.filter((y) => !y.settled); if (i.length === 0 && l.length === 0) { n(t.map(s)); return; } var o = B, u = ( /** @type {Effect} */ H ), a = Br(), f = l.length === 1 ? l[0].promise : l.length > 1 ? Promise.all(l.map((y) => y.promise)) : null; function d(y) { a(); try { n(y); } catch (_) { (u.f & At) === 0 && Je(_, u); } o == null || o.deactivate(), vi(); } if (i.length === 0) { f.then(() => d(t.map(s))); return; } function p() { a(), Promise.all(i.map((y) => /* @__PURE__ */ Fr(y))).then((y) => d([...t.map(s), ...y])).catch((y) => Je(y, u)); } f ? f.then(p) : p(); } function Br() { var e = H, t = P, i = bt, n = B; return function(l = !0) { xt(e), Et(t), Ze(i), l && (n == null || n.activate()); }; } function vi() { xt(null), Et(null), Ze(null); } // @__NO_SIDE_EFFECTS__ function $i(e) { var t = Y | ot, i = P !== null && (P.f & Y) !== 0 ? ( /** @type {Derived} */ P ) : null; return H !== null && (H.f |= ri), { ctx: bt, deps: null, effects: null, equals: Sn, f: t, fn: e, reactions: null, rv: 0, v: ( /** @type {V} */ G ), wv: 0, parent: i ?? H, ac: null }; } // @__NO_SIDE_EFFECTS__ function Fr(e, t, i) { let n = ( /** @type {Effect | null} */ H ); n === null && _r(); var s = ( /** @type {Boundary} */ n.b ), l = ( /** @type {Promise<V>} */ /** @type {unknown} */ void 0 ), o = Bn( /** @type {V} */ G ), u = !P, a = /* @__PURE__ */ new Map(); return el(() => { var _; var f = Ln(); l = f.promise; try { Promise.resolve(e()).then(f.resolve, f.reject).then(() => { d === B && d.committed && d.deactivate(), vi(); }); } catch (g) { f.reject(g), vi(); } var d = ( /** @type {Batch} */ B ); if (u) { var p = s.is_rendered(); s.update_pending_count(1), d.increment(p), (_ = a.get(d)) == null || _.reject(ie), a.delete(d), a.set(d, f); } const y = (g, w = void 0) => { if (d.activate(), w) w !== ie && (o.f |= kt, gi(o, w)); else { (o.f & kt) !== 0 && (o.f ^= kt), gi(o, g); for (const [T, b] of a) { if (a.delete(T), T === d) break; b.reject(ie); } } u && (s.update_pending_count(-1), d.decrement(p)); }; f.promise.then(y, (g) => y(null, g || "unknown")); }), jn(() => { for (const f of a.values()) f.reject(ie); }), new Promise((f) => { function d(p) { function y() { p === l ? f(o) : d(l); } p.then(y, y); } d(l); }); } // @__NO_SIDE_EFFECTS__ function Vr(e) { const t = /* @__PURE__ */ $i(e); return t.equals = Tr, t; } function xn(e) { var t = e.effects; if (t !== null) { e.effects = null; for (var i = 0; i < t.length; i += 1) Qt( /** @type {Effect} */ t[i] ); } } function jr(e) { for (var t = e.parent; t !== null; ) { if ((t.f & Y) === 0) return (t.f & At) === 0 ? ( /** @type {Effect} */ t ) : null; t = t.parent; } return null; } function Yi(e) { var t, i = H; xt(jr(e)); try { e.f &= ~Xt, xn(e), t = Jn(e); } finally { xt(i); } return t; } function Hn(e) { var t = Yi(e); if (!e.equals(t) && (e.wv = Qn(), (!(B != null && B.is_fork) || e.deps === null) && (e.v = t, e.deps === null))) { Z(e, X); return; } Ut || ($ !== null ? (Vn() || B != null && B.is_fork) && $.set(e, t) : ji(e)); } let _i = /* @__PURE__ */ new Set(); const Mt = /* @__PURE__ */ new Map(); let Wn = !1; function Bn(e, t) { var i = { f: 0, // TODO ideally we could skip this altogether, but it causes type errors v: e, reactions: null, equals: Sn, rv: 0, wv: 0 }; return i; } // @__NO_SIDE_EFFECTS__ function q(e, t) { const i = Bn(e); return rl(i), i; } function j(e, t, i = !1) { P !== null && // since we are untracking the function inside `$inspect.with` we need to add this check // to ensure we error if state is set inside an inspect effect (!_t || (P.f & nn) !== 0) && Pn() && (P.f & (Y | Zt | Vi | nn)) !== 0 && !(Q != null && Q.includes(e)) && Ar(); let n = i ? se(t) : t; return gi(e, n); } function gi(e, t) { if (!e.equals(t)) { var i = e.v; Ut ? Mt.set(e, t) : Mt.set(e, i), e.v = t; var n = ti.ensure(); if (n.capture(e, i), (e.f & Y) !== 0) { const s = ( /** @type {Derived} */ e ); (e.f & ot) !== 0 && Yi(s), ji(s); } e.wv = Qn(), Fn(e, ot), H !== null && (H.f & X) !== 0 && (H.f & (Jt | me)) === 0 && (at === null ? ll([e]) : at.push(e)), !n.is_fork && _i.size > 0 && !Wn && Gr(); } return t; } function Gr() { Wn = !1; for (const e of _i) (e.f & X) !== 0 && Z(e, Ht), Ve(e) && Pe(e); _i.clear(); } function oi(e) { j(e, e.v + 1); } function Fn(e, t) { var i = e.reactions; if (i !== null) for (var n = i.length, s = 0; s < n; s++) { var l = i[s], o = l.f, u = (o & ot) === 0; if (u && Z(l, t), (o & Y) !== 0) { var a = ( /** @type {Derived} */ l ); $ == null || $.delete(a), (o & Xt) === 0 && (o & ft && (l.f |= Xt), Fn(a, Ht)); } else u && ((o & Zt) !== 0 && dt !== null && dt.add( /** @type {Effect} */ l ), ge( /** @type {Effect} */ l )); } } function se(e) { if (typeof e != "object" || e === null || Kt in e) return e; const t = Dn(e); if (t !== hr && t !== dr) return e; var i = /* @__PURE__ */ new Map(), n = An(e), s = /* @__PURE__ */ q(0), l = qt, o = (u) => { if (qt === l) return u(); var a = P, f = qt; Et(null), on(l); var d = u(); return Et(a), on(f), d; }; return n && i.set("length", /* @__PURE__ */ q( /** @type {any[]} */ e.length )), new Proxy( /** @type {any} */ e, { defineProperty(u, a, f) { (!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && wr(); var d = i.get(a); return d === void 0 ? d = o(() => { var p = /* @__PURE__ */ q(f.value); return i.set(a, p), p; }) : j(d, f.value, !0), !0; }, deleteProperty(u, a) { var f = i.get(a); if (f === void 0) { if (a in u) { const d = o(() => /* @__PURE__ */ q(G)); i.set(a, d), oi(s); } } else j(f, G), oi(s); return !0; }, get(u, a, f) { var _; if (a === Kt) return e; var d = i.get(a), p = a in u; if (d === void 0 && (!p || (_ = ze(u, a)) != null && _.writable) && (d = o(() => { var g = se(p ? u[a] : G), w = /* @__PURE__ */ q(g); return w; }), i.set(a, d)), d !== void 0) { var y = S(d); return y === G ? void 0 : y; } return Reflect.get(u, a, f); }, getOwnPropertyDescriptor(u, a) { var f = Reflect.getOwnPropertyDescriptor(u, a); if (f && "value" in f) { var d = i.get(a); d && (f.value = S(d)); } else if (f === void 0) { var p = i.get(a), y = p == null ? void 0 : p.v; if (p !== void 0 && y !== G) return { enumerable: !0, configurable: !0, value: y, writable: !0 }; } return f; }, has(u, a) { var y; if (a === Kt) return !0; var f = i.get(a), d = f !== void 0 && f.v !== G || Reflect.has(u, a); if (f !== void 0 || H !== null && (!d || (y = ze(u, a)) != null && y.writable)) { f === void 0 && (f = o(() => { var _ = d ? se(u[a]) : G, g = /* @__PURE__ */ q(_); return g; }), i.set(a, f)); var p = S(f); if (p === G) return !1; } return d; }, set(u, a, f, d) { var E; var p = i.get(a), y = a in u; if (n && a === "length") for (var _ = f; _ < /** @type {Source<number>} */ p.v; _ += 1) { var g = i.get(_ + ""); g !== void 0 ? j(g, G) : _ in u && (g = o(() => /* @__PURE__ */ q(G)), i.set(_ + "", g)); } if (p === void 0) (!y || (E = ze(u, a)) != null && E.writable) && (p = o(() => /* @__PURE__ */ q(void 0)), j(p, se(f)), i.set(a, p)); else { y = p.v !== G; var w = o(() => se(f)); j(p, w); } var T = Reflect.getOwnPropertyDescriptor(u, a); if (T != null && T.set && T.set.call(d, f), !y) { if (n && typeof a == "string") { var b = ( /** @type {Source<number>} */ i.get("length") ), M = Number(a); Number.isInteger(M) && M >= b.v && j(b, M + 1); } oi(s); } return !0; }, ownKeys(u) { S(s); var a = Reflect.ownKeys(u).filter((p) => { var y = i.get(p); return y === void 0 || y.v !== G; }); for (var [f, d] of i) d.v !== G && !(f in u) && a.push(f); return a; }, setPrototypeOf() { Nr(); } } ); } function rn(e) { try { if (e !== null && typeof e == "object" && Kt in e) return e[Kt]; } catch { } return e; } function $r(e, t) { return Object.is(rn(e), rn(t)); } var Yr, zr, Kr; // @__NO_SIDE_EFFECTS__ function qr(e) { return ( /** @type {TemplateNode | null} */ zr.call(e) ); } // @__NO_SIDE_EFFECTS__ function Xr(e) { return ( /** @type {TemplateNode | null} */ Kr.call(e) ); } function Qr(e, t) { if (t) { const i = document.body; e.autofocus = !0, Se(() => { document.activeElement === i && e.focus(); }); } } function zi(e) { var t = P, i = H; Et(null), xt(null); try { return e(); } finally { Et(t), xt(i); } } function Zr(e) { H === null && (P === null && br(), mr()), Ut && gr(); } function Jr(e, t) { var i = t.last; i === null ? t.last = t.first = e : (i.next = e, e.prev = i, t.last = e); } function te(e, t, i) { var n = H; n !== null && (n.f & oe) !== 0 && (e |= oe); var s = { ctx: bt, deps: null, nodes: null, f: e | ot | ft, first: null, fn: t, last: null, next: null, parent: n, b: n && n.b, prev: null, teardown: null, wv: 0, ac: null }; if (i) try { Pe(s), s.f |= Fi; } catch (u) { throw Qt(s), u; } else t !== null && ge(s); var l = s; if (i && l.deps === null && l.teardown === null && l.nodes === null && l.first === l.last && // either `null`, or a singular child (l.f & ri) === 0 && (l = l.first, (e & Zt) !== 0 && (e & en) !== 0 && l !== null && (l.f |= en)), l !== null && (l.parent = n, n !== null && Jr(l, n), P !== null && (P.f & Y) !== 0 && (e & me) === 0)) { var o = ( /** @type {Derived} */ P ); (o.effects ?? (o.effects = [])).push(l); } return s; } function Vn() { return P !== null && !_t; } function jn(e) { const t = te(Wi, null, !1); return Z(t, X), t.teardown = e, t; } function tl(e) { Zr(); var t = ( /** @type {Effect} */ H.f ), i = !P && (t & Jt) !== 0 && (t & Fi) === 0; if (i) { var n = ( /** @type {ComponentContext} */ bt ); (n.e ?? (n.e = [])).push(e); } else return Gn(e); } function Gn(e) { return te(Qe | yr, e, !1); } function Ki(e) { return te(Qe, e, !1); } function el(e) { return te(Vi | ri, e, !0); } function il(e, t = 0) { return te(Wi | t, e, !0); } function $n(e, t = 0) { var i = te(Bi | t, e, !0); return i; } function Yn(e) { return te(Jt | ri, e, !0); } function zn(e) { var t = e.teardown; if (t !== null) { const i = Ut, n = P; ln(!0), Et(null); try { t.call(null); } finally { ln(i), Et(n); } } } function Kn(e, t = !1) { var i = e.first; for (e.first = e.last = null; i !== null; ) { const s = i.ac; s !== null && zi(() => { s.abort(ie); }); var n = i.next; (i.f & me) !== 0 ? i.parent = null : Qt(i, t), i = n; } } function nl(e) { for (var t = e.first; t !== null; ) { var i = t.next; (t.f & Jt) === 0 && Qt(t), t = i; } } function Qt(e, t = !0) { var i = !1; (t || (e.f & On) !== 0) && e.nodes !== null && e.nodes.end !== null && (sl( e.nodes.start, /** @type {TemplateNode} */ e.nodes.end ), i = !0), Kn(e, t && !i), ei(e, 0), Z(e, At); var n = e.nodes && e.nodes.t; if (n !== null) for (const l of n) l.stop(); zn(e); var s = e.parent; s !== null && s.first !== null && qn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null; } function sl(e, t) { for (; e !== null; ) { var i = e === t ? null : /* @__PURE__ */ Xr(e); e.remove(), e = i; } } function qn(e) { var t = e.parent, i = e.prev, n = e.next; i !== null && (i.next = n), n !== null && (n.prev = i), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = i)); } let Ke = !1, Ut = !1; function ln(e) { Ut = e; } let P = null, _t = !1; function Et(e) { P = e; } let H = null; function xt(e) { H = e; } let Q = null; function rl(e) { P !== null && (Q === null ? Q = [e] : Q.push(e)); } let it = null, st = 0, at = null; function ll(e) { at = e; } let Xn = 1, Ft = 0, qt = Ft; function on(e) { qt = e; } function Qn() { return ++Xn; } function Ve(e) { var t = e.f; if ((t & ot) !== 0) return !0; if (t & Y && (e.f &= ~Xt), (t & Ht) !== 0) { for (var i = ( /** @type {Value[]} */ e.deps ), n = i.length, s = 0; s < n; s++) { var l = i[s]; if (Ve( /** @type {Derived} */ l ) && Hn( /** @type {Derived} */ l ), l.wv > e.wv) return !0; } (t & ft) !== 0 && // During time traveling we don't want to reset the status so that // traversal of the graph in the other batches still happens $ === null && Z(e, X); } return !1; } function Zn(e, t, i = !0) { var n = e.reactions; if (n !== null && !(Q != null && Q.includes(e))) for (var s = 0; s < n.length; s++) { var l = n[s]; (l.f & Y) !== 0 ? Zn( /** @type {Derived} */ l, t, !1 ) : t === l && (i ? Z(l, ot) : (l.f & X) !== 0 && Z(l, Ht), ge( /** @type {Effect} */ l )); } } function Jn(e) { var g; var t = it, i = st, n = at, s = P, l = Q, o = bt, u = _t, a = qt, f = e.f; it = /** @type {null | Value[]} */ null, st = 0, at = null, P = (f & (Jt | me)) === 0 ? e : null, Q = null, Ze(e.ctx), _t = !1, qt = ++Ft, e.ac !== null && (zi(() => { e.ac.abort(ie); }), e.ac = null); try { e.f |= di; var d = ( /** @type {Function} */ e.fn ), p = d(), y = e.deps; if (it !== null) { var _; if (ei(e, st), y !== null && st > 0) for (y.length = st + it.length, _ = 0; _ < it.length; _++) y[st + _] = it[_]; else e.deps = y = it; if (Vn() && (e.f & ft) !== 0) for (_ = st; _ < y.length; _++) ((g = y[_]).reactions ?? (g.reactions = [])).push(e); } else y !== null && st < y.length && (ei(e, st), y.length = st); if (Pn() && at !== null && !_t && y !== null && (e.f & (Y | Ht | ot)) === 0) for (_ = 0; _ < /** @type {Source[]} */ at.length; _++) Zn( at[_], /** @type {Effect} */ e ); if (s !== null && s !== e) { if (Ft++, s.deps !== null) for (let w = 0; w < i; w += 1) s.deps[w].rv = Ft; if (t !== null) for (const w of t) w.rv = Ft; at !== null && (n === null ? n = at : n.push(.../** @type {Source[]} */ at)); } return (e.f & kt) !== 0 && (e.f ^= kt), p; } catch (w) { return kr(w); } finally { e.f ^= di, it = t, st = i, at = n, P = s, Q = l, Ze(o), _t = u, qt = a; } } function ol(e, t) { let i = t.reactions; if (i !== null) { var n = ur.call(i, e); if (n !== -1) { var s = i.length - 1; s === 0 ? i = t.reactions = null : (i[n] = i[s], i.pop()); } } if (i === null && (t.f & Y) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps` // allows us to skip the expensive work of disconnecting and immediately reconnecting it (it === null || !it.includes(t))) { var l = ( /** @type {Derived} */ t ); (l.f & ft) !== 0 && (l.f ^= ft, l.f &= ~Xt), ji(l), xn(l), ei(l, 0); } } function ei(e, t) { var i = e.deps; if (i !== null) for (var n = t; n < i.length; n++) ol(e, i[n]); } function Pe(e) { var t = e.f; if ((t & At) === 0) { Z(e, X); var i = H, n = Ke; H = e, Ke = !0; try { (t & (Zt | Bi)) !== 0 ? nl(e) : Kn(e), zn(e); var s = Jn(e); e.teardown = typeof s == "function" ? s : null, e.wv = Xn; var l; hi && Or && (e.f & ot) !== 0 && e.deps; } finally { Ke = n, H = i; } } } function S(e) { var t = e.f, i = (t & Y) !== 0; if (P !== null && !_t) { var n = H !== null && (H.f & At) !== 0; if (!n && !(Q != null && Q.includes(e))) { var s = P.deps; if ((P.f & di) !== 0) e.rv < Ft && (e.rv = Ft, it === null && s !== null && s[st] === e ? st++ : it === null ? it = [e] : it.push(e)); else { (P.deps ?? (P.deps = [])).push(e); var l = e.reactions; l === null ? e.reactions = [P] : l.includes(P) || l.push(P); } } } if (Ut && Mt.has(e)) return Mt.get(e); if (i) { var o = ( /** @type {Derived} */ e ); if (Ut) { var u = o.v; return ((o.f & X) === 0 && o.reactions !== null || es(o)) && (u = Yi(o)), Mt.set(o, u), u; } var a = (o.f & ft) === 0 && !_t && P !== null && (Ke || (P.f & ft) !== 0), f = o.deps === null; Ve(o) && (a && (o.f |= ft), Hn(o)), a && !f && ts(o); } if ($ != null && $.has(e)) return $.get(e); if ((e.f & kt) !== 0) throw e.v; return e.v; } function ts(e) { if (e.deps !== null) { e.f |= ft; for (const t of e.deps) (t.reactions ?? (t.reactions = [])).push(e), (t.f & Y) !== 0 && (t.f & ft) === 0 && ts( /** @type {Derived} */ t ); } } function es(e) { if (e.v === G) return !0; if (e.deps === null) return !1; for (const t of e.deps) if (Mt.has(t) || (t.f & Y) !== 0 && es( /** @type {Derived} */ t )) return !0; return !1; } function is(e) { var t = _t; try { return _t = !0, e(); } finally { _t = t; } } const al = /* @__PURE__ */ new Set(), ul = /* @__PURE__ */ new Set(); function cl(e, t, i, n = {}) { function s(l) { if (n.capture || hl.call(t, l), !l.cancelBubble) return zi(() => i == null ? void 0 : i.call(this, l)); } return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? Se(() => { t.addEventListener(e, s, n); }) : t.addEventListener(e, s, n), s; } function fl(e) { for (var t = 0; t < e.length; t++) al.add(e[t]); for (var i of ul) i(e); } let an = null; function hl(e) { var T; var t = this, i = ( /** @type {Node} */ t.ownerDocument ), n = e.type, s = ((T = e.composedPath) == null ? void 0 : T.call(e)) || [], l = ( /** @type {null | Element} */ s[0] || e.target ); an = e; var o = 0, u = an === e && e.__root; if (u) { var a = s.indexOf(u); if (a !== -1 && (t === document || t === /** @type {any} */ window)) { e.__root = t; return; } var f = s.indexOf(t); if (f === -1) return; a <= f && (o = a); } if (l = /** @type {Element} */ s[o] || e.target, l !== t) { cr(e, "currentTarget", { configurable: !0, get() { return l || i; } }); var d = P, p = H; Et(null), xt(null); try { for (var y, _ = []; l !== null; ) { var g = l.assignedSlot || l.parentNode || /** @type {any} */ l.host || null; try { var w = l["__" + n]; w != null && (!/** @type {any} */ l.disabled || // DOM could've been updated already by the time this is reached, so we check this as well // -> the target could not have been disabled because it emits the event in the first place e.target === l) && w.call(l, e); } catch (b) { y ? _.push(b) : y = b; } if (e.cancelBubble || g === t || g === null) break; l = g; } if (y) { for (let b of _) queueMicrotask(() => { throw b; }); throw y; } } finally { e.__root = t, delete e.currentTarget, Et(d), xt(p); } } } function dl(e) { var t = document.createElement("template"); return t.innerHTML = e.replaceAll("<!>", "<!---->"), t.content; } function pl(e, t) { var i = ( /** @type {Effect} */ H ); i.nodes === null && (i.nodes = { start: e, end: t, a: null, t: null }); } // @__NO_SIDE_EFFECTS__ function yl(e, t) { var i = (t & lr) !== 0, n, s = !e.startsWith("<!>"); return () => { n === void 0 && (n = dl(s ? e : "<!>" + e), n = /** @type {TemplateNode} */ /* @__PURE__ */ qr(n)); var l = ( /** @type {TemplateNode} */ i || Yr ? document.importNode(n, !0) : n.cloneNode(!0) ); return pl(l, l), l; }; } function Cl(e, t) { e !== null && e.before( /** @type {Node} */ t ); } function vl(e) { return e.endsWith("capture") && e !== "gotpointercapture" && e !== "lostpointercapture"; } const _l = [ "beforeinput", "click", "change", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart" ]; function gl(e) { return _l.includes(e); } const ml = { // no `class: 'className'` because we handle that separately formnovalidate: "formNoValidate", ismap: "isMap", nomodule: "noModule", playsinline: "playsInline", readonly: "readOnly", defaultvalue: "defaultValue", defaultchecked: "defaultChecked", srcobject: "srcObject", novalidate: "noValidate", allowfullscreen: "allowFullscreen", disablepictureinpicture: "disablePictureInPicture", disableremoteplayback: "disableRemotePlayback" }; function bl(e) { return e = e.toLowerCase(), ml[e] ?? e; } function El(e, t) { var i = void 0, n; $n(() => { i !== (i = t()) && (n && (Qt(n), n = null), i && (n = Yn(() => { Ki(() => ( /** @type {(node: Element) => void} */ i(e) )); }))); }); } function ns(e) { var t, i, n = ""; if (typeof e == "string" || typeof e == "number") n += e; else if (typeof e == "object") if (Array.isArray(e)) { var s = e.length; for (t = 0; t < s; t++) e[t] && (i = ns(e[t])) && (n && (n += " "), n += i); } else for (i in e) e[i] && (n && (n += " "), n += i); return n; } function Il() { for (var e, t, i = 0, n = "", s = arguments.length; i < s; i++) (e = arguments[i]) && (t = ns(e)) && (n && (n += " "), n += t); return n; } function wl(e) { return typeof e == "object" ? Il(e) : e ?? ""; } const un = [...` \r\f \v\uFEFF`]; function Nl(e, t, i) { var n = e == null ? "" : "" + e; if (i) { for (var s in i) if (i[s]) n = n ? n + " " + s : s; else if (n.length) for (var l = s.length, o = 0; (o = n.indexOf(s, o)) >= 0; ) { var u = o + l; (o === 0 || un.includes(n[o - 1])) && (u === n.length || un.includes(n[u])) ? n = (o === 0 ? "" : n.substring(0, o)) + n.substring(u + 1) : o = u; } } return n === "" ? null : n; } function cn(e, t = !1) { var i = t ? " !important;" : ";", n = ""; for (var s in e) { var l = e[s]; l != null && l !== "" && (n += " " + s + ": " + l + i); } return n; } function ai(e) { return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e; } function Al(e, t) { if (t) { var i = "", n, s; if (Array.isArray(t) ? (n = t[0], s = t[1]) : n = t, e) { e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim(); var l = !1, o = 0, u = !1, a = []; n && a.push(...Object.keys(n).map(ai)), s && a.push(...Object.keys(s).map(ai)); var f = 0, d = -1; const w = e.length; for (var p = 0; p < w; p++) { var y = e[p]; if (u ? y === "/" && e[p - 1] === "*" && (u = !1) : l ? l === y && (l = !1) : y === "/" && e[p + 1] === "*" ? u = !0 : y === '"' || y === "'" ? l = y : y === "(" ? o++ : y === ")" && o--, !u && l === !1 && o === 0) { if (y === ":" && d === -1) d = p; else if (y === ";" || p === w - 1) { if (d !== -1) { var _ = ai(e.substring(f, d).trim()); if (!a.includes(_)) { y !== ";" && p++; var g = e.substring(f, p).trim(); i += " " + g + ";"; } } f = p + 1, d = -1; } } } } return n && (i += cn(n)), s && (i += cn(s, !0)), i = i.trim(), i === "" ? null : i; } return e == null ? null : String(e); } function Dl(e, t, i, n, s, l) { var o = e.__className; if (o !== i || o === void 0) { var u = Nl(i, n, l); u == null ? e.removeAttribute("class") : t ? e.className = u : e.setAttribute("class", u), e.__className = i; } else if (l && s !== l) for (var a in l) { var f = !!l[a]; (s == null || f !== !!s[a]) && e.classList.toggle(a, f); } return l; } function ui(e, t = {}, i, n) { for (var s in i) { var l = i[s]; t[s] !== l && (i[s] == null ? e.style.removeProperty(s) : e.style.setProperty(s, l, n)); } } function Ll(e, t, i, n) { var s = e.__style; if (s !== t) { var l = Al(t, n); l == null ? e.removeAttribute("style") : e.style.cssText = l, e.__style = t; } else n && (Array.isArray(n) ? (ui(e, i == null ? void 0 : i[0], n[0]), ui(e, i == null ? void 0 : i[1], n[1], "important")) : ui(e, i, n)); return n; } function mi(e, t, i = !1) { if (e.multiple) { if (t == null) return; if (!An(t)) return Dr(); for (var n of e.options) n.selected = t.includes(fn(n)); return; } for (n of e.options) { var s = fn(n); if ($r(s, t)) { n.selected = !0; return; } } (!i || t !== void 0) && (e.selectedIndex = -1); } function Tl(e) { var t = new MutationObserver(() => { mi(e, e.__value); }); t.observe(e, { // Listen to option element changes childList: !0, subtree: !0, // because of <optgroup> // Listen to option element value attribute changes // (doesn't get notified of select value changes, // because that property is not reflected as an attribute) attributes: !0, attributeFilter: ["value"] }), jn(() => { t.disconnect(); }); } function fn(e) { return "__value" in e ? e.__value : e.value; } const be = Symbol("class"), Ee = Symbol("style"), ss = Symbol("is custom element"), rs = Symbol("is html"); function Ol(e, t) { t ? e.hasAttribute("selected") || e.setAttribute("selected", "") : e.removeAttribute("selected"); } function hn(e, t, i, n) { var s = ls(e); s[t] !== (s[t] = i) && (t === "loading" && (e[vr] = i), i == null ? e.removeAttribute(t) : typeof i != "string" && os(e).includes(t) ? e[t] = i : e.setAttribute(t, i)); } function Sl(e, t, i, n, s = !1, l = !1) { var o = ls(e), u = o[ss], a = !o[rs], f = t || {}, d = e.tagName === "OPTION"; for (var p in t) p in i || (i[p] = null); i.class ? i.class = wl(i.class) : i[be] && (i.class = null), i[Ee] && (i.style ?? (i.style = null)); var y = os(e); for (const E in i) { let L = i[E]; if (d && E === "value" && L == null) { e.value = e.__value = "", f[E] = L; continue; } if (E === "class") { var _ = e.namespaceURI === "http://www.w3.org/1999/xhtml"; Dl(e, _, L, n, t == null ? void 0 : t[be], i[be]), f[E] = L, f[be] = i[be]; continue; } if (E === "style") { Ll(e, L, t == null ? void 0 : t[Ee], i[Ee]), f[E] = L, f[Ee] = i[Ee]; continue; } var g = f[E]; if (!(L === g && !(L === void 0 && e.hasAttribute(E)))) { f[E] = L; var w = E[0] + E[1]; if (w !== "$$") if (w === "on") { const R = {}, z = "$$" + E; let A = E.slice(2); var T = gl(A); if (vl(A) && (A = A.slice(0, -7), R.capture = !0), !T && g) { if (L != null) continue; e.removeEventListener(A, f[z], R), f[z] = null; } if (L != null) if (T) e[`__${A}`] = L, fl([A]); else { let J = function(nt) { f[E].call(this, nt); }; f[z] = cl(A, e, J, R); } else T && (e[`__${A}`] = void 0); } else if (E === "style") hn(e, E, L); else if (E === "autofocus") Qr( /** @type {HTMLElement} */ e, !!L ); else if (!u && (E === "__value" || E === "value" && L != null)) e.value = e.__value = L; else if (E === "selected" && d) Ol( /** @type {HTMLOptionElement} */ e, L ); else { var b = E; a || (b = bl(b)); var M = b === "defaultValue" || b === "defaultChecked"; if (L == null && !u && !M) if (o[E] = null, b === "value" || b === "checked") { let R = ( /** @type {HTMLInputElement} */ e ); const z = t === void 0; if (b === "value") { let A = R.defaultValue; R.removeAttribute(b), R.defaultValue = A, R.value = R.__value = z ? A : null; } else { let A = R.defaultChecked; R.removeAttribute(b), R.defaultChecked = A, R.checked = z ? A : !1; } } else e.removeAttribute(E); else M || y.includes(b) && (u || typeof L != "string") ? (e[b] = L, b in o && (o[b] = G)) : typeof L != "function" && hn(e, b, L); } } } return f; } function Pl(e, t, i = [], n = [], s = [], l, o = !1, u = !1) { Wr(s, i, n, (a) => { var f = void 0, d = {}, p = e.nodeName === "SELECT", y = !1; if ($n(() => { var g = t(...a.map(S)), w = Sl( e, f, g, l, o, u ); y && p && "value" in g && mi( /** @type {HTMLSelectElement} */ e, g.value ); for (let b of Object.getOwnPropertySymbols(d)) g[b] || Qt(d[b]); for (let b of Object.getOwnPropertySymbols(g)) { var T = g[b]; b.description === ar && (!f || T !== f[b]) && (d[b] && Qt(d[b]), d[b] = Yn(() => El(e, () => T))), w[b] = T; } f = w; }), p) { var _ = ( /** @type {HTMLSelectElement} */ e ); Ki(() => { mi( _, /** @type {Record<string | symbol, any>} */ f.value, !0 ), Tl(_); }); } y = !0; }); } function ls(e) { return ( /** @type {Record<string | symbol, unknown>} **/ // @ts-expect-error e.__attributes ?? (e.__attributes = { [ss]: e.nodeName.includes("-"), [rs]: e.namespaceURI === or }) ); } var dn = /* @__PURE__ */ new Map(); function os(e) { var t = e.getAttribute("is") || e.nodeName, i = dn.get(t); if (i) return i; dn.set(t, i = []); for (var n, s = e, l = Element.prototype; l !== s; ) { n = fr(s); for (var o in n) n[o].set && i.push(o); s = Dn(s); } return i; } function pn(e, t) { return e === t || (e == null ? void 0 : e[Kt]) === t; } function Rl(e = {}, t, i, n) { return Ki(() => { var s, l; return il(() => { s = l, l = [], is(() => { e !== i(...l) && (t(e, ...l), s && pn(i(...s), e) && t(null, ...s)); }); }), () => { Se(() => { l && pn(i(...l), e) && t(null, ...l); }); }; }), e; } let Ge = !1; function kl(e) { var t = Ge; try { return Ge = !1, [e(), Ge]; } finally { Ge = t; } } function Ie(e, t, i, n) { var M; var s = (i & sr) !== 0, l = (i & rr) !== 0, o = ( /** @type {V} */ n ), u = !0, a = () => (u && (u = !1, o = l ? is( /** @type {() => V} */ n ) : ( /** @type {V} */ n )), o), f; if (s) { var d = Kt in e || Cr in e; f = ((M = ze(e, t)) == null ? void 0 : M.set) ?? (d && t in e ? (E) => e[t] = E : void 0); } var p, y = !1; s ? [p, y] = kl(() => ( /** @type {V} */ e[t] )) : p = /** @type {V} */ e[t], p === void 0 && n !== void 0 && (p = a(), f && (Ir(), f(p))); var _; if (_ = () => { var E = ( /** @type {V} */ e[t] ); return E === void 0 ? a() : (u = !0, E); }, (i & nr) === 0) return _; if (f) { var g = e.$$legacy; return ( /** @type {() => V} */ (function(E, L) { return arguments.length > 0 ? ((!L || g || y) && f(L ? _() : E), E) : _(); }) ); } var w = !1, T = ((i & ir) !== 0 ? $i : Vr)(() => (w = !1, _())); s && S(T); var b = ( /** @type {Effect} */ H ); return ( /** @type {() => V} */ (function(E, L) { if (arguments.length > 0) { const R = L ? S(T) : s ? se(E) : E; return j(T, R), w = !0, o !== void 0 && (o = R), E; } return Ut && w || (b.f & At) !== 0 ? T.v : S(T); }) ); } const Ml = [ [ "af", // Afghanistan "93", 0, null, "0" ], [ "ax", // Åland Islands "358", 1, ["18", "4"], // (4 is a mobile range shared with FI) "0" ], [ "al", // Albania "355", 0, null, "0" ], [ "dz", // Algeria "213", 0, null, "0" ], [ "as", // American Samoa "1", 5, ["684"], "1" ], [ "ad", // Andorra "376" ], [ "ao", // Angola "244" ], [ "ai", // Anguilla "1", 6, ["264"], "1" ], [ "ag", // Antigua and Barbuda "1", 7, ["268"], "1" ], [ "ar", // Argentina "54", 0, null, "0" ], [ "am", // Armenia "374", 0, null, "0" ], [ "aw", // Aruba "297" ], [ "ac", // Ascension Island "247" ], [ "au", // Australia "61", 0, ["4"], // (mobile range shared with CX and CC) "0" ], [ "at", // Austria "43", 0, null, "0" ], [ "az", // Azerbaijan "994", 0, null, "0" ], [ "bs", // Bahamas "1", 8, ["242"], "1" ], [ "bh", // Bahrain "973" ], [ "bd", // Bangladesh "880", 0, null, "0" ], [ "bb", // Barbados "1", 9, ["246"], "1" ], [ "by", // Belarus "375", 0, null, "8" ], [ "be", // Belgium "32", 0, null, "0" ], [ "bz", // Belize "501" ], [ "bj", // Benin "229" ], [ "bm", // Bermuda "1", 10, ["441"], "1" ], [ "bt", // Bhutan "975" ], [ "bo", // Bolivia "591", 0, null, "0" ], [ "ba", // Bosnia and Herzegovina "387", 0, null, "0" ], [ "bw", // Botswana "267" ], [ "br", // Brazil "55", 0, null, "0" ], [ "io", // British Indian Ocean Territory "246" ], [ "vg", // British Virgin Islands "1", 11, ["284"], "1" ], [ "bn", // Brunei "673" ], [ "bg", // Bulgaria "359", 0, null, "0" ], [ "bf", // Burkina Faso "226" ], [ "bi",