Image caption Scottish Labour leader Richard Leonard said the party would carry out a public “listening exercise”

Scottish Labour officials are to hold a public “listening exercise” in the wake of a dismal election result which left them with only one MP north of the border.

Richard Leonard, the Scottish Labour leader, said they wanted to understand why they suffered a “profound defeat”.

It came as a leading Labour councillor used Twitter tocall for a second independence referendum.

Cosla president Alison Evison said the move would “strengthen” democracy.

Mr Leonard said: “We will be conducting a swift evidence-based review of the election campaign and result in order to chart our way forward.

“We will lead a public engagement campaign to establish why voters, who are clearly still desperate for change, no longer feel that Scottish Labour is the vehicle for the realisation of that change.”

The party must develop a “clear constitutional offer” that wins back the confidence of voters, Mr Leonard said.

One Labour MP in Scotland

It was a view echoed by Alex Rowley, Mid Scotland and Fife Labour MSP, who said his party has “failed to answer the question” when it comes to Scotland’s” future since the 2014 independence referendum.

Speaking to BBC Radio’s Good Morning Scotland, he said Labour “cannot continue to sit in the middle of the road on this issue” but cautioned against the idea of a referendum in 2020 while Brexit negotiations are still under way.

He said: “Whilst we are in the midst of a Brexit crisis it would be difficult to see what you would actually be asking people to vote for.”

Six Scottish Labour MPs lost their seat after Thursday’s election, including Shadow Scottish Secretary Lesley Laird, leaving the party with only one MP in Scotland.

Mr Corbyn has saidhe would not contend another election as leaderbut he would not “walk away” until a successor is elected.

Image copyright Getty Images

Image caption Ian Murray was the only Labour MP to keep his seat in Scotland

Call for indyref2 to ‘strengthen democracy’

Alison Evison, the president of the Convention of Scottish Local Authorities (Cosla) and a Labour councillor in Aberdeenshire, has called for a change of direction.

In apost on Twitter, she said democracy must be “at the core of all we do”.

“Recently it has become fragile and we must strengthen it again,” she added.

“We can strengthen it by enabling the voice of Scotland to be heard through its formal processes and that must mean a referendum on independence.”

Nicola Sturgeon responded, saying “Scottish Labour would do well to listen to principled and sensible voices like [Alison Evison’s]”.

‘A dismal, disastrous night’

EarlierSpeaking to BBC Radio Scotland, Scottish Labour’s Neil Finlay MSPtold BBC Radio Scotland that a “combination of factors” including Brexit and discussions over indyref2 led to “a dismal, disastrous night” for his party, but he defended Jeremy Corbyn.

The Holyrood backbencher said there was “no rush” to replace Jeremy Corbyn, and said a leadership election would “take time” to allow the party to have an internal debate about who should be the next leader.

For a nationwide breakdown of results,see our results page, which will be updated throughout the night.

Find a constituency

document.F=Object”),t.close(),a=t.F;r–;)delete a.prototype[i[r]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[s]=t):n=a(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(33)(“keys”),o=n(28);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports=”constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf”.split(“,”)},function(t,e,n){var r=n(4).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(20);t.exports=Array.isArray||function(t){return”Array”==r(t)}},function(t,e,n){var r=n(69),o=n(15);t.exports=function(t,e,n){if(r(e))throw TypeError(“String#”+n+” doesn’t accept regex!”);return String(o(t))}},function(t,e,n){var r=n(1)(“match”);t.exports=function(t){var e=/./;try{“/./”[t](e)}catch(n){try{return e[r]=!1,!”/./”[t](e)}catch(t){}}return!0}},function(t,e,n){“use strict”;var r=n(41)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){“use strict”;var r,o,i=n(137),s=RegExp.prototype.exec,u=String.prototype.replace,a=s,c=(r=/a/,o=/b*/g,s.call(r,”a”),s.call(o,”a”),0!==r.lastIndex||0!==o.lastIndex),l=void 0!==/()??/.exec(“”)[1];(c||l)&&(a=function(t){var e,n,r,o,a=this;return l&&(n=new RegExp(“^”+a.source+”$(?!\s)”,i.call(a))),c&&(e=a.lastIndex),r=s.call(a,t),c&&r&&(a.lastIndex=a.global?r.index+r[0].length:e),l&&r&&r.length>1&&u.call(r[0],n,(function(){for(o=1;oa;)r.f(t,n=s[a++],e[n]);return t}},function(t,e,n){var r=n(18),o=n(12),i=n(59)(!1),s=n(45)(“IE_PROTO”);t.exports=function(t,e){var n,u=o(t),a=0,c=[];for(n in u)n!=s&&r(u,n)&&c.push(n);for(;e.length>a;)r(u,n=e[a++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var r=n(12),o=n(3),i=n(31);t.exports=function(t){return function(e,n,s){var u,a=r(e),c=o(a.length),l=i(s,c);if(t&&n!=n){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((t||l in a)&&a[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(18),o=n(8),i=n(45)(“IE_PROTO”),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:”function”==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var r=n(5);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(29),o=n(1)(“iterator”),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){“use strict”;var r=n(14),o=n(27);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(35),o=n(1)(“iterator”),i=n(29);t.exports=n(9).getIteratorMethod=function(t){if(null!=t)return t[o]||t[“@@iterator”]||i[r(t)]}},function(t,e,n){var r=n(1)(“iterator”),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],s=i[r]();s.next=function(){return{done:n=!0}},i[r]=function(){return s},t(i)}catch(t){}return n}},function(t,e,n){var r=n(24),o=n(8),i=n(30),s=n(3);t.exports=function(t,e,n,u,a){r(e);var c=o(t),l=i(c),f=s(c.length),h=a?f-1:0,p=a?-1:1;if(n=0:f>h;h+=p)h in l&&(u=e(u,l[h],h,c));return u}},function(t,e,n){“use strict”;var r=n(4),o=n(14),i=n(11),s=n(1)(“species”);t.exports=function(t){var e=r[t];i&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){“use strict”;var r=n(32),o=n(109),i=n(29),s=n(12);t.exports=n(55)(Array,”Array”,(function(t,e){this._t=s(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,”keys”==e?n:”values”==e?t[n]:[n,t[n]])}),”values”),i.Arguments=i.Array,r(“keys”),r(“values”),r(“entries”)},function(t,e,n){var r=n(2),o=n(20),i=n(1)(“match”);t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:”RegExp”==o(t))}},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var r=n(5),o=n(24),i=n(1)(“species”);t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||null==(n=r(s)[i])?e:o(n)}},function(t,e,n){e.f=n(1)},function(t,e,n){var r=n(12),o=n(74).f,i={}.toString,s=”object”==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&”[object Window]”==i.call(t)?function(t){try{return o(t)}catch(t){return s.slice()}}(t):o(r(t))}},function(t,e,n){var r=n(58),o=n(46).concat(“length”,”prototype”);e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){“use strict”;var r=n(35),o={};o[n(1)(“toStringTag”)]=”z”,o+””!=”[object z]”&&n(17)(Object.prototype,”toString”,(function(){return”[object “+r(this)+”]”}),!0)},function(t,e,n){var r,o,i,s=n(19),u=n(168),a=n(47),c=n(42),l=n(4),f=l.process,h=l.setImmediate,p=l.clearImmediate,d=l.MessageChannel,v=l.Dispatch,y=0,g={},m=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){m.call(t.data)};h&&p||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++y]=function(){u(“function”==typeof t?t:Function(t),e)},r(y),y},p=function(t){delete g[t]},”process”==n(20)(f)?r=function(t){f.nextTick(s(m,t,1))}:v&&v.now?r=function(t){v.now(s(m,t,1))}:d?(i=(o=new d).port2,o.port1.onmessage=b,r=s(i.postMessage,i,1)):l.addEventListener&&”function”==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+””,”*”)},l.addEventListener(“message”,b,!1)):r=”onreadystatechange”in c(“script”)?function(t){a.appendChild(c(“script”)).onreadystatechange=function(){a.removeChild(this),m.call(t)}}:function(t){setTimeout(s(m,t,1),0)}),t.exports={set:h,clear:p}},function(t,e,n){“use strict”;var r=n(24);function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError(“Bad Promise constructor”);e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t){t.exports=JSON.parse(‘{“en”:{“news_vj_search_lookup_aria_label”:”Find a constituency”,”buttonLabel”:”Find a constituency”,”noLocatorApi”:”Sorry there is no postcode search available, please use the [Constituencies A-Z](/news/politics/constituencies/)”,”noResults”:”Please enter a UK postcode or constituency name, or use the [Constituencies A-Z](/news/politics/constituencies/)”,”news_vj_search_lookup_label”:”Enter a UK postcode or constituency”,”news_vj_search_lookup_header”:”Find a constituency”,”news_vj_search_lookup_min_chars”:”Type in {{num}} or more characters for results.”,”news_vj_search_lookup_no_results”:”No search results.”,”news_vj_search_lookup_one_result_available”:”1 result is available: {{suggestion}}.”,”news_vj_search_lookup_multiple_results_available”:”{{numberOfResults}} results are available.”,”news_vj_search_lookup_selected_result”:”{{suggestion}} is selected.”},”cy”:{“news_vj_search_lookup_aria_label”:”Cael hyd i etholaeth”,”buttonLabel”:”Cael hyd i etholaeth”,”noLocatorApi”:”Mae’n ddrwg gennym, nid oes modd chwilio gyda chôd post, defnyddiwch restr [A-Y yr etholaethau](/cymrufyw/gwleidyddiaeth/etholaethau/)”,”noResults”:”Rhowch god post Cymreig neu defnyddiwch y rhestr restr [A-Y yr etholaethau](/cymrufyw/gwleidyddiaeth/etholaethau/)”,”news_vj_search_lookup_label”:”Rhowch god post neu enw etholaeth yng Nghymru”,”news_vj_search_lookup_header”:”Cael hyd i etholaeth”,”news_vj_search_lookup_min_chars”:”Teipiwch {{num}} neu fwy o nodau i gael canlyniadau.”,”news_vj_search_lookup_no_results”:”Dim canlyniadau chwilio”,”news_vj_search_lookup_one_result_available”:”Mae 1 canlyniad ar gael {{suggestion}}”,”news_vj_search_lookup_multiple_results_available”:”Mae {{numberOfResults}} o ganlyniadau ar gael”,”news_vj_search_lookup_selected_result”:”Mae {{selection}} wedi ei ddewis.”}}’)},function(t,e,n){“use strict”;n(80),n(185)},function(t,e,n){“use strict”;var r,o=n(81);new((r=o)&&r.__esModule?r:{default:r}).default},function(t,e,n){“use strict”;e.__esModule=!0;var r=u(n(22));n(82),n(110),n(141),n(163),n(174);var o=u(n(175)),i=u(n(183)),s=u(n(78));function u(t){return t&&t.__esModule?t:{default:t}}var a=function(){function t(){var e=this;if((0,r.default)(this,t),this.lang=document.documentElement.lang||”en”,this.lang=/en.*/.test(this.lang)?”en”:”cy”,this.vocabs=s.default[this.lang],this.lookupData=window.DataPres.getData(“lookup-data”)||!1,this.en={},this.cy={},this.en.pagePath=”/news/politics/constituencies/”,this.cy.pagePath=”/cymrufyw/gwleidyddiaeth/etholaethau/”,this.pagePath=this[this.lang].pagePath,this.vocabs.noResults=this.toHref(this.vocabs.noResults),this.vocabs.noLocatorApi=this.toHref(this.vocabs.noLocatorApi),this.apiAvailable=this.apiIsAvailable(),document.querySelector(“.nw-c-general-election-2019-constituency-lookup”).style.display=”block”,!this.apiAvailable||!this.lookupData)return this.removeLookup(),!1;this.lookup=new o.default({target:document.getElementById(“lookup-container”),data:this.lookupData,vocab:this.vocabs,lang:this.lang,minChars:3,clearInput:!0,confirmOnBlur:this.mapIsOnPage(),displayKey:”name”,noResultsCallback:this.doNothing,plugins:[new i.default({searchType:”gss-seat”,intersectCallback:function(t){return i.default.isFullPostcode(t)}})],onSelect:function(t,n){if(e.mapIsOnPage()&&t&&”function”==typeof window.vjConfigObject[“5197-map-component-app”].changeChosenRegionOnMap&&!document.querySelector(“.bbc-news-vj-embed-wrapper iframe.pym-iframe”)){window.vjConfigObject[“5197-map-component-app”].changeChosenRegionOnMap(t);var r=document.querySelector(“#responsive-embed-5197-map-component-app>div”).shadowRoot.querySelector(“.vj-map__view-results”);return r&&setTimeout((function(){r.focus({preventScroll:!1})}),200),!0}var o=t&&t.toUpperCase().startsWith(“W”);”cy”!==e.lang||o||(e.pagePath=e.en.pagePath),”cy”===e.lang&&o&&(e.pagePath=e.cy.pagePath),window.location.href=”https://”+window.location.hostname+e.pagePath+t}});document.querySelector(“.news-vj-search-lookup__button”)}return t.prototype.toHref=function(t){return t.replace(/[(.+?)]((/[a-zA-Z0-9/.(]+?))/g,’$1‘)},t.prototype.doNothing=function(t){return t.preventDefault(),!1},t.prototype.apiIsAvailable=function(){return this.apiAvailable=window.fetch(“https://locator-service.api.bbci.co.uk/locations/W1A1AA?api_key=WdmvTVscFy19vwu3UG82gTQ3HtaaLsVp”).then((function(t){return!!t.ok})).then((function(t){return!!t})).catch((function(t){return!1})),this.apiAvailable},t.prototype.removeLookup=function(){var t=document.getElementsByClassName(“nw-c-general-election-2019-constituency-lookup”);t&&(t[0].innerHTML=”

“+this.vocabs.noLocatorApi+”

“)},t.prototype.mapIsOnPage=function(){return!!window.DataPres&&!!window.DataPres.getData(“map-data”)&&!!Object.prototype.hasOwnProperty.call(window.vjConfigObject[“5197-map-component-app”],”changeChosenRegionOnMap”)},t}();e.default=a},function(t,e,n){n(40),n(85),n(86),n(87),n(88),n(89),n(90),n(91),n(94),n(95),n(96),n(97),n(98),n(99),n(100),n(101),n(102),n(104),n(106),n(107),n(108),n(68),t.exports=n(9).Array},function(t,e,n){t.exports=n(33)(“native-function-to-string”,Function.toString)},function(t,e,n){“use strict”;var r=n(44),o=n(27),i=n(34),s={};n(16)(s,n(1)(“iterator”),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(s,{next:o(1,n)}),i(t,e+” Iterator”)}},function(t,e,n){var r=n(0);r(r.S,”Array”,{isArray:n(48)})},function(t,e,n){“use strict”;var r=n(19),o=n(0),i=n(8),s=n(61),u=n(62),a=n(3),c=n(63),l=n(64);o(o.S+o.F*!n(65)((function(t){Array.from(t)})),”Array”,{from:function(t){var e,n,o,f,h=i(t),p=”function”==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,y=void 0!==v,g=0,m=l(h);if(y&&(v=r(v,d>2?arguments[2]:void 0,2)),null==m||p==Array&&u(m))for(n=new p(e=a(h.length));e>g;g++)c(n,g,y?v(h[g],g):h[g]);else for(f=m.call(h),n=new p;!(o=f.next()).done;g++)c(n,g,y?s(f,v,[o.value,g],!0):o.value);return n.length=g,n}})},function(t,e,n){“use strict”;var r=n(0),o=n(63);r(r.S+r.F*n(6)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),”Array”,{of:function(){for(var t=0,e=arguments.length,n=new(“function”==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){“use strict”;var r=n(0),o=n(12),i=[].join;r(r.P+r.F*(n(30)!=Object||!n(10)(i)),”Array”,{join:function(t){return i.call(o(this),void 0===t?”,”:t)}})},function(t,e,n){“use strict”;var r=n(0),o=n(47),i=n(20),s=n(31),u=n(3),a=[].slice;r(r.P+r.F*n(6)((function(){o&&a.call(o)})),”Array”,{slice:function(t,e){var n=u(this.length),r=i(this);if(e=void 0===e?n:e,”Array”==r)return a.call(this,t,e);for(var o=s(t,n),c=s(e,n),l=u(c-o),f=new Array(l),h=0;h1&&(r=Math.min(r,i(arguments[1]))),r=0;r–)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,”Array”,{copyWithin:n(103)}),n(32)(“copyWithin”)},function(t,e,n){“use strict”;var r=n(8),o=n(31),i=n(3);t.exports=[].copyWithin||function(t,e){var n=r(this),s=i(n.length),u=o(t,s),a=o(e,s),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?s:o(c,s))-a,s-u),f=1;for(a0;)a in n?n[u]=n[a]:delete n[u],u+=f,a+=f;return n}},function(t,e,n){var r=n(0);r(r.P,”Array”,{fill:n(105)}),n(32)(“fill”)},function(t,e,n){“use strict”;var r=n(8),o=n(31),i=n(3);t.exports=function(t){for(var e=r(this),n=i(e.length),s=arguments.length,u=o(s>1?arguments[1]:void 0,n),a=s>2?arguments[2]:void 0,c=void 0===a?n:o(a,n);c>u;)e[u++]=t;return e}},function(t,e,n){“use strict”;var r=n(0),o=n(21)(5),i=!0;”find”in[]&&Array(1).find((function(){i=!1})),r(r.P+r.F*i,”Array”,{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(32)(“find”)},function(t,e,n){“use strict”;var r=n(0),o=n(21)(6),i=”findIndex”,s=!0;i in[]&&Array(1)[i]((function(){s=!1})),r(r.P+r.F*s,”Array”,{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(32)(i)},function(t,e,n){n(67)(“Array”)},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){n(111),n(112),n(113),n(40),n(116),n(117),n(118),n(119),n(121),n(122),n(123),n(124),n(125),n(126),n(127),n(128),n(129),n(130),n(131),n(132),n(133),n(134),n(135),n(138),n(139),n(140),t.exports=n(9).String},function(t,e,n){var r=n(0),o=n(31),i=String.fromCharCode,s=String.fromCodePoint;r(r.S+r.F*(!!s&&1!=s.length),”String”,{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,s=0;r>s;){if(e=+arguments[s++],o(e,1114111)!==e)throw RangeError(e+” is not a valid code point”);n.push(e>10),e%1024+56320))}return n.join(“”)}})},function(t,e,n){var r=n(0),o=n(12),i=n(3);r(r.S,”String”,{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,s=[],u=0;n>u;)s.push(String(e[u++])),u1?arguments[1]:void 0,r=o(e.length),u=void 0===n?r:Math.min(o(n),r),a=String(t);return s?s.call(e,a,u):e.slice(u-a.length,u)===a}})},function(t,e,n){“use strict”;var r=n(0),o=n(49);r(r.P+r.F*n(50)(“includes”),”String”,{includes:function(t){return!!~o(this,t,”includes”).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,”String”,{repeat:n(120)})},function(t,e,n){“use strict”;var r=n(23),o=n(15);t.exports=function(t){var e=String(o(this)),n=””,i=r(t);if(i0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},function(t,e,n){“use strict”;var r=n(0),o=n(3),i=n(49),s=””.startsWith;r(r.P+r.F*n(50)(“startsWith”),”String”,{startsWith:function(t){var e=i(this,t,”startsWith”),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return s?s.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){“use strict”;n(7)(“anchor”,(function(t){return function(e){return t(this,”a”,”name”,e)}}))},function(t,e,n){“use strict”;n(7)(“big”,(function(t){return function(){return t(this,”big”,””,””)}}))},function(t,e,n){“use strict”;n(7)(“blink”,(function(t){return function(){return t(this,”blink”,””,””)}}))},function(t,e,n){“use strict”;n(7)(“bold”,(function(t){return function(){return t(this,”b”,””,””)}}))},function(t,e,n){“use strict”;n(7)(“fixed”,(function(t){return function(){return t(this,”tt”,””,””)}}))},function(t,e,n){“use strict”;n(7)(“fontcolor”,(function(t){return function(e){return t(this,”font”,”color”,e)}}))},function(t,e,n){“use strict”;n(7)(“fontsize”,(function(t){return function(e){return t(this,”font”,”size”,e)}}))},function(t,e,n){“use strict”;n(7)(“italics”,(function(t){return function(){return t(this,”i”,””,””)}}))},function(t,e,n){“use strict”;n(7)(“link”,(function(t){return function(e){return t(this,”a”,”href”,e)}}))},function(t,e,n){“use strict”;n(7)(“small”,(function(t){return function(){return t(this,”small”,””,””)}}))},function(t,e,n){“use strict”;n(7)(“strike”,(function(t){return function(){return t(this,”strike”,””,””)}}))},function(t,e,n){“use strict”;n(7)(“sub”,(function(t){return function(){return t(this,”sub”,””,””)}}))},function(t,e,n){“use strict”;n(7)(“sup”,(function(t){return function(){return t(this,”sup”,””,””)}}))},function(t,e,n){“use strict”;var r=n(5),o=n(3),i=n(51),s=n(36);n(37)(“match”,1,(function(t,e,n,u){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=u(n,t,this);if(e.done)return e.value;var a=r(t),c=String(this);if(!a.global)return s(a,c);var l=a.unicode;a.lastIndex=0;for(var f,h=[],p=0;null!==(f=s(a,c));){var d=String(f[0]);h[p]=d,””===d&&(a.lastIndex=i(c,o(a.lastIndex),l)),p++}return 0===p?null:h}]}))},function(t,e,n){“use strict”;var r=n(52);n(0)({target:”RegExp”,proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){“use strict”;var r=n(5);t.exports=function(){var t=r(this),e=””;return t.global&&(e+=”g”),t.ignoreCase&&(e+=”i”),t.multiline&&(e+=”m”),t.unicode&&(e+=”u”),t.sticky&&(e+=”y”),e}},function(t,e,n){“use strict”;var r=n(5),o=n(8),i=n(3),s=n(23),u=n(51),a=n(36),c=Math.max,l=Math.min,f=Math.floor,h=/$([$&`’]|dd?|]*>)/g,p=/$([$&`’]|dd?)/g;n(37)(“replace”,2,(function(t,e,n,d){return[function(r,o){var i=t(this),s=null==r?void 0:r[e];return void 0!==s?s.call(r,i,o):n.call(String(i),r,o)},function(t,e){var o=d(n,t,this,e);if(o.done)return o.value;var f=r(t),h=String(this),p=”function”==typeof e;p||(e=String(e));var y=f.global;if(y){var g=f.unicode;f.lastIndex=0}for(var m=[];;){var b=a(f,h);if(null===b)break;if(m.push(b),!y)break;””===String(b[0])&&(f.lastIndex=u(h,i(f.lastIndex),g))}for(var _,w=””,x=0,S=0;S=x&&(w+=h.slice(x,P)+C,x=P+O.length)}return w+h.slice(x)}];function v(t,e,r,i,s,u){var a=r+t.length,c=i.length,l=p;return void 0!==s&&(s=o(s),l=h),n.call(u,l,(function(n,o){var u;switch(o.charAt(0)){case”$”:return”$”;case”&”:return t;case”`”:return e.slice(0,r);case”‘”:return e.slice(a);case”c){var h=f(l/10);return 0===h?n:h1||””.split(/.?/).length?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var i,s,u,a=[],l=(t.ignoreCase?”i”:””)+(t.multiline?”m”:””)+(t.unicode?”u”:””)+(t.sticky?”y”:””),f=0,p=void 0===e?4294967295:e>>>0,d=new RegExp(t.source,l+”g”);(i=c.call(d,o))&&!((s=d.lastIndex)>f&&(a.push(o.slice(f,i.index)),i.length>1&&i.index=p));)d.lastIndex===i.index&&d.lastIndex++;return f===o.length?!u&&d.test(“”)||a.push(“”):a.push(o.slice(f)),a.length>p?a.slice(0,p):a}:”0″.split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):d.call(String(o),n,r)},function(t,e){var r=l(d,t,this,e,d!==n);if(r.done)return r.value;var c=o(t),h=String(this),v=i(c,RegExp),y=c.unicode,g=(c.ignoreCase?”i”:””)+(c.multiline?”m”:””)+(c.unicode?”u”:””)+(p?”y”:”g”),m=new v(p?c:”^(?:”+c.source+”)”,g),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===h.length)return null===a(m,h)?[h]:[];for(var _=0,w=0,x=[];wo;)Y(t,n=r[o++],e[n]);return t},Q=function(t){var e=D.call(this,t=x(t,!0));return!(this===N&&o(U,t)&&!o(K,t))&&(!(e||!o(this,t)||!o(U,t)||o(this,L)&&this[L][t])||e)},Z=function(t,e){if(t=w(t),e=x(e,!0),t!==N||!o(U,e)||o(K,e)){var n=C(t,e);return!n||!o(U,e)||o(t,L)&&t[L][e]||(n.enumerable=!0),n}},X=function(t){for(var e,n=M(w(t)),r=[],i=0;n.length>i;)o(U,e=n[i++])||e==L||e==a||r.push(e);return r},tt=function(t){for(var e,n=t===N,r=M(n?K:w(t)),i=[],s=0;r.length>s;)!o(U,e=r[s++])||n&&!o(N,e)||i.push(U[e]);return i};H||(u((T=function(){if(this instanceof T)throw TypeError(“Symbol is not a constructor!”);var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===N&&e.call(K,n),o(this,L)&&o(this[L],t)&&(this[L][t]=!1),G(this,t,S(1,n))};return i&&W&&G(N,t,{configurable:!0,set:e}),V(t)}).prototype,”toString”,(function(){return this._k})),A.f=Z,E.f=Y,n(74).f=P.f=X,n(39).f=Q,j.f=tt,i&&!n(26)&&u(N,”propertyIsEnumerable”,Q,!0),d.f=function(t){return V(p(t))}),s(s.G+s.W+s.F*!H,{Symbol:T});for(var et=”hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables”.split(“,”),nt=0;et.length>nt;)p(et[nt++]);for(var rt=k(p.store),ot=0;rt.length>ot;)v(rt[ot++]);s(s.S+s.F*!H,”Symbol”,{for:function(t){return o(q,t+=””)?q[t]:q[t]=T(t)},keyFor:function(t){if(!$(t))throw TypeError(t+” is not a symbol!”);for(var e in q)if(q[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),s(s.S+s.F*!H,”Object”,{create:function(t,e){return void 0===e?O(t):J(O(t),e)},defineProperty:Y,defineProperties:J,getOwnPropertyDescriptor:Z,getOwnPropertyNames:X,getOwnPropertySymbols:tt});var it=c((function(){j.f(1)}));s(s.S+s.F*it,”Object”,{getOwnPropertySymbols:function(t){return j.f(_(t))}}),F&&s(s.S+s.F*(!H||c((function(){var t=T();return”[null]”!=I([t])||”{}”!=I({a:t})||”{}”!=I(Object(t))}))),”JSON”,{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(b(e)||void 0!==t)&&!$(t))return g(e)||(e=function(t,e){if(“function”==typeof n&&(e=n.call(this,t,e)),!$(e))return e}),r[1]=e,I.apply(F,r)}}),T.prototype[B]||n(16)(T.prototype,B,T.prototype.valueOf),f(T,”Symbol”),f(Math,”Math”,!0),f(r.JSON,”JSON”,!0)},function(t,e,n){var r=n(4),o=n(9),i=n(26),s=n(72),u=n(14).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});”_”==t.charAt(0)||t in e||u(e,t,{value:s.f(t)})}},function(t,e,n){var r=n(25),o=n(53),i=n(39);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var s,u=n(t),a=i.f,c=0;u.length>c;)a.call(t,s=u[c++])&&e.push(s);return e}},function(t,e,n){var r=n(0);r(r.S,”Object”,{create:n(44)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(11),”Object”,{defineProperty:n(14).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(11),”Object”,{defineProperties:n(57)})},function(t,e,n){var r=n(12),o=n(54).f;n(13)(“getOwnPropertyDescriptor”,(function(){return function(t,e){return o(r(t),e)}}))},function(t,e,n){var r=n(8),o=n(60);n(13)(“getPrototypeOf”,(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(8),o=n(25);n(13)(“keys”,(function(){return function(t){return o(r(t))}}))},function(t,e,n){n(13)(“getOwnPropertyNames”,(function(){return n(73).f}))},function(t,e,n){var r=n(2),o=n(38).onFreeze;n(13)(“freeze”,(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(2),o=n(38).onFreeze;n(13)(“seal”,(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(2),o=n(38).onFreeze;n(13)(“preventExtensions”,(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(2);n(13)(“isFrozen”,(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(2);n(13)(“isSealed”,(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(2);n(13)(“isExtensible”,(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},function(t,e,n){var r=n(0);r(r.S+r.F,”Object”,{assign:n(159)})},function(t,e,n){“use strict”;var r=n(11),o=n(25),i=n(53),s=n(39),u=n(8),a=n(30),c=Object.assign;t.exports=!c||n(6)((function(){var t={},e={},n=Symbol(),r=”abcdefghijklmnopqrst”;return t[n]=7,r.split(“”).forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join(“”)!=r}))?function(t,e){for(var n=u(t),c=arguments.length,l=1,f=i.f,h=s.f;c>l;)for(var p,d=a(arguments[l++]),v=f?o(d).concat(f(d)):o(d),y=v.length,g=0;y>g;)p=v[g++],r&&!h.call(d,p)||(n[p]=d[p]);return n}:c},function(t,e,n){var r=n(0);r(r.S,”Object”,{is:n(70)})},function(t,e,n){var r=n(0);r(r.S,”Object”,{setPrototypeOf:n(162).set})},function(t,e,n){var r=n(2),o=n(5),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+”: can’t set as prototype!”)};t.exports={set:Object.setPrototypeOf||(“__proto__”in{}?function(t,e,r){try{(r=n(19)(Function.call,n(54).f(Object.prototype,”__proto__”).set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){n(75),n(40),n(164),n(165),t.exports=n(9).Promise},function(t,e,n){for(var r=n(68),o=n(25),i=n(17),s=n(4),u=n(16),a=n(29),c=n(1),l=c(“iterator”),f=c(“toStringTag”),h=a.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=o(p),v=0;vi;)s(n[i++]);t._c=[],t._n=!1,e&&!t._h&&F(t)}))}},F=function(t){g.call(a,(function(){var e,n,r,o=t._v,i=I(t);if(i&&(e=_((function(){E?O.emit(“unhandledRejection”,o,t):(n=a.onunhandledrejection)?n({promise:t,reason:o}):(r=a.console)&&r.error&&r.error(“Unhandled promise rejection”,o)})),t._h=E||I(t)?2:1),t._a=void 0,i&&e.e)throw e.v}))},I=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){g.call(a,(function(){var e;E?O.emit(“rejectionHandled”,t):(e=a.onrejectionhandled)&&e({promise:t,reason:t._v})}))},B=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),T(e,!0))},D=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S(“Promise can’t be resolved itself”);(e=M(t))?m((function(){var r={_w:n,_d:!1};try{e.call(t,c(D,r,1),c(B,r,1))}catch(t){B.call(r,t)}})):(n._v=t,n._s=1,T(n,!1))}catch(t){B.call({_w:n,_d:!1},t)}}};R||(j=function(t){d(this,j,”Promise”,”_h”),p(t),r.call(this);try{t(c(D,this,1),c(B,this,1))}catch(t){B.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(173)(j.prototype,{then:function(t,e){var n=C(y(this,j));return n.ok=”function”!=typeof t||t,n.fail=”function”==typeof e&&e,n.domain=E?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&T(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=c(D,t,1),this.reject=c(B,t,1)},b.f=C=function(t){return t===j||t===s?new i(t):o(t)}),f(f.G+f.W+f.F*!R,{Promise:j}),n(34)(j,”Promise”),n(67)(“Promise”),s=n(9).Promise,f(f.S+f.F*!R,”Promise”,{reject:function(t){var e=C(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(u||!R),”Promise”,{resolve:function(t){return x(u&&this===s?j:this,t)}}),f(f.S+f.F*!(R&&n(65)((function(t){j.all(t).catch(k)}))),”Promise”,{all:function(t){var e=this,n=C(e),r=n.resolve,o=n.reject,i=_((function(){var n=[],i=0,s=1;v(t,!1,(function(t){var u=i++,a=!1;n.push(void 0),s++,e.resolve(t).then((function(t){a||(a=!0,n[u]=t,–s||r(n))}),o)})),–s||r(n)}));return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=C(e),r=n.reject,o=_((function(){v(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+”: incorrect invocation!”);return t}},function(t,e,n){var r=n(19),o=n(61),i=n(62),s=n(5),u=n(3),a=n(64),c={},l={};(e=t.exports=function(t,e,n,f,h){var p,d,v,y,g=h?function(){return t}:a(t),m=r(n,f,e?2:1),b=0;if(“function”!=typeof g)throw TypeError(t+” is not iterable!”);if(i(g)){for(p=u(t.length);p>b;b++)if((y=e?m(s(d=t[b])[0],d[1]):m(t[b]))===c||y===l)return y}else for(v=g.call(t);!(d=v.next()).done;)if((y=o(v,m,d.value,e))===c||y===l)return y}).BREAK=c,e.RETURN=l},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(4),o=n(76).set,i=r.MutationObserver||r.WebKitMutationObserver,s=r.process,u=r.Promise,a=”process”==n(20)(s);t.exports=function(){var t,e,n,c=function(){var r,o;for(a&&(r=s.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(a)n=function(){s.nextTick(c)};else if(!i||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var l=u.resolve(void 0);n=function(){l.then(c)}}else n=function(){o.call(r,c)};else{var f=!0,h=document.createTextNode(“”);new i(c).observe(h,{characterData:!0}),n=function(){h.data=f=!f}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(4).navigator;t.exports=r&&r.userAgent||””},function(t,e,n){var r=n(5),o=n(2),i=n(77);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){var r=n(17);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){“use strict”;n.r(e),n.d(e,”Headers”,(function(){return c})),n.d(e,”Request”,(function(){return y})),n.d(e,”Response”,(function(){return m})),n.d(e,”DOMException”,(function(){return _})),n.d(e,”fetch”,(function(){return w}));var r={searchParams:”URLSearchParams”in self,iterable:”Symbol”in self&&”iterator”in Symbol,blob:”FileReader”in self&&”Blob”in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:”FormData”in self,arrayBuffer:”ArrayBuffer”in self};if(r.arrayBuffer)var o=[“[object Int8Array]”,”[object Uint8Array]”,”[object Uint8ClampedArray]”,”[object Int16Array]”,”[object Uint16Array]”,”[object Int32Array]”,”[object Uint32Array]”,”[object Float32Array]”,”[object Float64Array]”],i=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function s(t){if(“string”!=typeof t&&(t=String(t)),/[^a-z0-9-#$%&’*+.^_`|~]/i.test(t))throw new TypeError(“Invalid character in header field name”);return t.toLowerCase()}function u(t){return”string”!=typeof t&&(t=String(t)),t}function a(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError(“Already read”));t.bodyUsed=!0}function f(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function h(t){var e=new FileReader,n=f(e);return e.readAsArrayBuffer(t),n}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?”string”==typeof t?this._bodyText=t:r.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:r.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():r.arrayBuffer&&r.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText=””,this.headers.get(“content-type”)||(“string”==typeof t?this.headers.set(“content-type”,”text/plain;charset=UTF-8″):this._bodyBlob&&this._bodyBlob.type?this.headers.set(“content-type”,this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set(“content-type”,”application/x-www-form-urlencoded;charset=UTF-8″))},r.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(“could not read FormData body as blob”);return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t,e,n,r=l(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=f(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,(“GET”===this.method||”HEAD”===this.method)&&o)throw new TypeError(“Body not allowed for GET or HEAD requests”);this._initBody(o)}function g(t){var e=new FormData;return t.trim().split(“&”).forEach((function(t){if(t){var n=t.split(“=”),r=n.shift().replace(/+/g,” “),o=n.join(“=”).replace(/+/g,” “);e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function m(t,e){e||(e={}),this.type=”default”,this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.statuss+,”>=0,e=1===this.state.suggestions.length,n=this.state.indexOfMatchingElement>=0,r=this.state.suggestions.length>0,o=t||e||n;this.confirmOnBlur&&r&&o?this.attemptSubmit():(this.state.menuShouldOpen=!1,this.render())},t.prototype.handleButtonClick=function(){this.attemptSubmit()},t.prototype.handleDownArrow=function(t){t.preventDefault(),this.state.focusIndex!==this.state.suggestions.length-1&&this.state.menuShouldOpen&&this.handleOptionFocus(this.state.focusIndex+1)},t.prototype.handleUpArrow=function(t){t.preventDefault(),-1!==this.state.focusIndex&&this.state.menuShouldOpen&&this.handleOptionFocus(this.state.focusIndex-1)},t.prototype.handleOptionFocus=function(t){this.state.focusIndex=t,this.render()},t.prototype.handleOptionClick=function(t,e){this.selectOption(e)},t.prototype.handleEnter=function(t){this.state.menuShouldOpen&&(t.preventDefault(),this.attemptSubmit())},t.prototype.attemptSubmit=function(){var t=this.state.focusIndex>=0,e=1===this.state.suggestions.length,n=this.state.indexOfMatchingElement>=0;t&&this.selectOption(this.state.focusIndex),e&&this.selectOption(0),n&&this.selectOption(this.state.indexOfMatchingElement)},t.prototype.handleInputChange=function(t){var e=this,n=t.target.value,r=0===n.length,o=this.state.query.length!==n.length,i=n.length>=this.minChars;if(this.state.menuShouldOpen=i,this.state.query=n,!r&&o&&i){this.hasButton&&this.els.button.classList.add(“news-vj-search-lookup__button–loading”);var s={suggestions:this.suggestionFilter(n)};new Promise((function(t,r){return e.pluginManager.query(n,t,r,s)})).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,n=t.suggestions&&t.suggestions.length>0;n?e.updateSuggestions(t.suggestions):t.error?(e.state.suppressError=!1,e.updateError(t.error)):t.suppressError?(e.state.suppressError=!0,e.updateError()):e.updateSuggestions([])})).catch((function(t){console.error(t)}))}else this.updateSuggestions([])},t.prototype.getIndexOfMatchingElement=function(){var t=this,e=void 0,n=this.state.suggestions.reduce((function(e,n){return t.state.query===n.data[t.displayKey]?n:e}),!1);return n||(e=this.state.suggestions.reduce((function(e,n){return(0,u.prepareForFuzzyMatch)(n.data[t.displayKey])===(0,u.prepareForFuzzyMatch)(t.state.query)?n:e}),{})),this.state.suggestions.indexOf(n||e)},t.prototype.queryPlugin=function(t,e,n,r){return this.plugin&&e.length0?(this.state.shouldDisplayError=!1,this.render()):this.updateError()},t.prototype.updateError=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.vocab.noResults;this.state.shouldDisplayError=!this.state.suppressError,this.state.suggestions=[],this.errorMessage=t,this.render()},t.prototype.selectOption=function(t){var e=this.state.suggestions[t];e&&e!==this.state.selectedSuggestion&&(this.state.selectedSuggestion=this.state.suggestions[t],this.callback(this.state.selectedSuggestion.id,this.state.selectedSuggestion.data)),this.state.focusIndex=-1,this.state.menuShouldOpen=!1,this.state.query=this.clearInput?””:this.state.selectedSuggestion.data[this.displayKey],this.render()},t.prototype.suggestionFilter=function(t){var e=this;return this.data.filter((function(n){return(0,u.hasFuzzyMatch)(n.data[e.displayKey],t)||!!n.data.synonyms&&n.data.synonyms.filter((function(e){return(0,u.hasFuzzyMatch)(e,t)})).length>0})).sort(this.sortSuggestions)},t.prototype.sortSuggestions=function(t,e){var n=t.data[this.displayKey].toLowerCase(),r=e.data[this.displayKey].toLowerCase(),o=this.state.query.toLowerCase(),i=n.indexOf(o),s=r.indexOf(o);return i>s?1:ir?1:n=0;return this.state.query.length=0,p=this.confirmOnBlur&&i.length>0;l||p||f||h?this.els.button.removeAttribute(“disabled”):this.els.button.setAttribute(“disabled”,!0),this.els.button.classList.remove(“news-vj-search-lookup__button–loading”)}var d=n?”visible”:”hidden”;this.els.menu.setAttribute(“class”,this.menuClassList+” news-vj-search-lookup__menu–“+d),(0,o.clear)(this.els.menu);var v=i.map((function(e,n){return r===n?t.createSuggestion(e.data[t.displayKey],n,”focused”):t.createSuggestion(e.data[t.displayKey],n)})).map((function(e,n){return t.addSuggestionListener(“mousedown”,e,n)}));u&&(v.push(this.createSuggestion(this.errorMessage,0,”error-message”)),this.noResultsCallback&&v[0].addEventListener(“mousedown”,this.noResultsCallback)),v.forEach((function(e){t.els.menu.appendChild(e)})),this.els.menu.scrollTop=0,this.pluginManager.postRender(this.els)},t}();e.default=f},function(t,e,n){“use strict”;e.__esModule=!0,e.clear=e.text=e.create=e.AppDOM=void 0;var r,o=n(22),i=(r=o)&&r.__esModule?r:{default:r};var s=e.AppDOM=function(){function t(e){(0,i.default)(this,t),this.app=e||document}return t.prototype.select=function(t){return this.app.querySelector(t)},t.prototype.selectAll=function(t){return Array.from(this.app.querySelectorAll(t))},t}(),u=e.create=function(t,e){var n=document.createElement(t);if(e)for(var r=Object.keys(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return t.replace(/{{(.*?)}}/g,(function(t,n){var r=e[n]||{};return”string”==typeof r||”number”==typeof r?r:t}))},r=e.createVocab=function(e){var r=e.buttonLabel,o=void 0===r?t(“news_vj_search_lookup_button_label”):r,i=e.minChars,s=void 0===i?t(“news_vj_search_lookup_min_chars”):i,u=e.noResults,a=void 0===u?t(“news_vj_search_lookup_no_results”):u,c=e.oneResultAvailable,l=void 0===c?t(“news_vj_search_lookup_one_result_available”):c,f=e.multipleResultsAvailable,h=void 0===f?t(“news_vj_search_lookup_multiple_results_available”):f,p=e.selectedResult,d=void 0===p?t(“news_vj_search_lookup_selected_result”):p;return{buttonLabel:o,minChars:function(t){return n(s,{num:t})},noResults:a,oneResultAvailable:function(t){return n(l,{suggestion:t})},multipleResultsAvailable:function(t){return n(h,{numberOfResults:t})},selectedResult:function(t){return n(d,{suggestion:t})}}};e.default=r}).call(this,n(178))},function(t,e,n){const r=n(78);t.exports=function(t){const e=/en.*/.test(document.documentElement.lang)?”en”:”cy”;return r[e][t]||r[t]}},function(t,e,n){“use strict”;e.__esModule=!0;var r=e.keyCodes={13:”enter”,27:”escape”,38:”up”,40:”down”},o=e.isPrintableKeyCode=function(t){return t>47&&t64&&t95&&t185&&t218&&t0&&void 0!==arguments[0]?arguments[0]:””;return t.toLowerCase().replace(/-/g,” “).replace(/’/g,””).replace(/ /g,””)},o=e.hasFuzzyMatch=function(t,e){return r(t).indexOf(r(e))>-1};e.default={hasFuzzyMatch:o,prepareForFuzzyMatch:r}},function(t,e,n){“use strict”;e.__esModule=!0;var r,o=n(22),i=(r=o)&&r.__esModule?r:{default:r};var s=function(){function t(e){var n=e.plugins,r=void 0===n?[]:n,o=e.dataset,s=void 0===o?{}:o;(0,i.default)(this,t),this.dataset=s,this.queryPlugins=r.filter((function(t){return t&&”function”==typeof t.query})),this.postRenderPlugins=r.filter((function(t){return t&&”function”==typeof t.postRender}))}return t.prototype.query=function(t,e,n,r){this.localResults=r;var o={resolve:e,reject:n};this.queryPlugins.length>0?this.triggerQueryPlugins(t,o,this.queryPlugins):e()},t.prototype.triggerQueryPlugins=function(t,e,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=n[o],s=o0&&void 0!==arguments[0]?arguments[0]:{},u=i.suppressError;s?r.triggerQueryPlugins(t,e,n,o+1):void 0!==u?e.resolve({suppressError:u}):e.resolve()},c=function(t){e.resolve({error:t})};i.query(t,u,a,c,this.localResults,this.dataset)},t.prototype.postRender=function(t){this.postRenderPlugins.forEach((function(e){e.postRender(t)}))},t}();e.default=s},function(t,e,n){“use strict”;e.__esModule=!0;var r,o=n(22),i=(r=o)&&r.__esModule?r:{default:r};var s=function(){function t(e){(0,i.default)(this,t),this.vocab=e}return t.prototype.getLookupHTML=function(t){var e=t.id,n=void 0===e?”news-vj-search-lookup”:e,r=t.button,o=void 0===r||r,i=t.inline,s=void 0!==i&&i,u=t.minChars,a=void 0===u?2:u,c=t.pattern,l=void 0===c?””:c,f=(l?’pattern=”‘+l+'”‘:””)+” “+(a?’minlength=”‘+a+'”‘:””)+” “+(l||a?”required”:””),h=’‘;return’n

n

n ‘},t}();e.default=s},function(t,e,n){“use strict”;e.__esModule=!0;var r=i(n(22)),o=i(n(184));function i(t){return t&&t.__esModule?t:{default:t}}var s=function(){function t(e){var n=e.intersectCallback,o=void 0===n?function(e){return t.isFullPostcode(e)}:n,i=e.searchType,s=void 0===i?”gss-council”:i,u=e.apiKey,a=void 0===u?”WdmvTVscFy19vwu3UG82gTQ3HtaaLsVp”:u;(0,r.default)(this,t),this.queryConfig={locservicesBaseURL:”https://locator-service.api.bbci.co.uk/locations”,endpoint:”details”,intersectCallback:o,searchType:s,params:{postcode:””,op:””,format:”json”,vv:”2″,rows:””,detail_types:s,api_key:a}},this.encodeParams=this.encodeParams.bind(this)}return t.prototype.query=function(e,n,r,i,s,u){var a=this,c=t.sanitisePostcode(e),l=!!this.cache,f=l&&this.cache.response.length>0,h=l&&t.isSimilarQuery(this.cache.postcode,c),p=this.queryConfig.searchType;if(this.queryConfig.params.detail_types=”function”==typeof p?p(c):p,t.isPostcode(c)){var d=this.queryConfig.intersectCallback(c);this.queryConfig.params.op=d?”intersect”:”nearest”,this.queryConfig.params.rows=d?””:”6″,this.queryConfig.params.postcode=c;var v=this.constructURL();return(0,o.default)(v).then((function(t){var e=a.formatResponse(a.filterInvalidResponses(t.response,u),u);return a.cacheResults({postcode:c,response:e}),n(e)}))}return f&&h?n(this.cache.response):t.couldBePostcode(c)?r({suppressError:!0}):r()},t.isSimilarQuery=function(t,e){return e.indexOf(t)>=0||t.indexOf(e)>=0},t.prototype.filterInvalidResponses=function(t,e){var n=e.map((function(t){return t.id}));return t.content.details.details.filter((function(t){return n.indexOf(t.externalId)>-1}))},t.prototype.formatResponse=function(t,e){return t.map((function(t){return{id:t.externalId,data:e.filter((function(e){return e.id===t.externalId}))[0].data}}))},t.prototype.cacheResults=function(t){var e=t.postcode,n=t.response;this.cache={postcode:e,response:n}},t.prototype.constructURL=function(){return[this.queryConfig.locservicesBaseURL,this.queryConfig.params.postcode,this.queryConfig.endpoint,this.queryConfig.params.detail_types].join(“/”)+”?”+Object.keys(this.queryConfig.params).reduce(this.encodeParams,””)},t.prototype.encodeParams=function(t,e){return””!==this.queryConfig.params[e]?t+”&”+e+”=”+this.queryConfig.params[e]:t},t.isPostcode=function(e){return e.length=2&&(t.isFullPostcode(e)||t.isPartialPostcode(e))},t.couldBePostcode=function(e){return e.length>1&&e.length

If you can’t see the look-up click here.

Or you can browse theA-Z list.

Original Source