(window.saladictEntry=window.saladictEntry||[]).push([[67],{1353:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a(0),r=a.n(n),l="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;const s=e=>{const{tag:t="div",html:a,...s}=e,c=Object(n.useMemo)(()=>{try{const e=document.createDocumentFragment(),t=(new DOMParser).parseFromString(a,"text/html");return Array.from(t.body.childNodes).forEach(t=>{e.appendChild(t)}),e}catch(e){!1}return null},[a]),[i,o]=Object(n.useState)(null);return l(()=>{if(c&&i){for(;i.childNodes.length>0;)i.childNodes[0].remove();i.appendChild(c)}},[c,i]),r.a.createElement(t,{...s,ref:o})}},1356:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var n=a(0),r=a.n(n);class l extends r.a.PureComponent{render(){const e=this.props.className||"widget-StarRates",t=this.props.max||5,a=Number(this.props.rate)%(t+1)||0,n=this.props.height||"1.5em",l=this.props.gutter||"0.3em",s={height:n,...this.props.style||{}};return r.a.createElement("div",{className:e,style:s},Array.from(Array(t)).map((e,s)=>r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 426.67 426.67",key:s+a,width:n,height:n,style:{marginRight:s===t-1?"":l}},r.a.createElement("path",{fill:s<a?"#FAC917":"#d1d8de",d:"M213.33 10.44l65.92 133.58 147.42 21.42L320 269.4l25.17 146.83-131.84-69.32-131.85 69.34 25.2-146.82L0 165.45l147.4-21.42"}))))}}},667:function(e,t,a){"use strict";a.r(t),a.d(t,"DictMacmillan",(function(){return i}));var n=a(0),r=a.n(n),l=a(123),s=a(1356),c=a(1353);const i=({result:e,searchText:t})=>{switch(e.type){case"lex":return function(e,t){return r.a.createElement("section",{onClick:o},t,r.a.createElement("header",{className:"dictMacmillan-Header"},e.ratting>0&&r.a.createElement(s.a,{rate:e.ratting}),r.a.createElement("span",{className:"dictMacmillan-Header_Info"},e.phsym," ",r.a.createElement(l.c,{src:e.pron})," ",e.pos," ",e.sc)),r.a.createElement(c.a,{tag:"ol",className:"dictMacmillan-Sences",html:e.senses}),e.toggleables.map((e,t)=>r.a.createElement(c.a,{key:t,html:e})))}(e,function(e,t){return e.relatedEntries.length>0?r.a.createElement("select",{value:"",onChange:e=>{e.currentTarget.value&&t({id:"macmillan",payload:{href:e.currentTarget.value}})}},r.a.createElement("option",{value:""},e.title+(e.pos?" "+e.pos.toUpperCase():"")),e.relatedEntries.map(({title:e,href:t})=>r.a.createElement("option",{key:t,value:t},e))):null}(e,t));case"related":return function(e){return r.a.createElement(r.a.Fragment,null,r.a.createElement("p",null,"Did you mean:"),r.a.createElement("ul",{className:"dictMacmillan-Related"},e.list.map(({title:e,href:t})=>r.a.createElement("li",{key:t},r.a.createElement("a",{href:t},e)))))}(e);default:return null}};function o(e){if(!e.target.classList)return;const t=e.target;let a=t.classList.contains("toggle-open")||t.classList.contains("toggle-close");if(!a)for(let e=t;e;e=e.parentElement)if(e.classList.contains("toggle-toggle")){a=!0;break}if(a)for(let a=t;a;a=a.parentElement)if(a.classList.contains("toggleable")){a.classList.toggle("closed"),e.preventDefault(),e.stopPropagation();break}}t.default=i}}]);