1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[959],{15204:(e,n,r)=>{Promise.resolve().then(r.t.bind(r,15218,23)),Promise.resolve().then(r.bind(r,62396)),Promise.resolve().then(r.bind(r,98395)),Promise.resolve().then(r.bind(r,93662)),Promise.resolve().then(r.bind(r,76616)),Promise.resolve().then(r.bind(r,9531)),Promise.resolve().then(r.bind(r,52700)),Promise.resolve().then(r.bind(r,22825)),Promise.resolve().then(r.bind(r,71611)),Promise.resolve().then(r.bind(r,28243)),Promise.resolve().then(r.bind(r,90494)),Promise.resolve().then(r.bind(r,20381)),Promise.resolve().then(r.bind(r,56024)),Promise.resolve().then(r.bind(r,75426)),Promise.resolve().then(r.bind(r,17889)),Promise.resolve().then(r.bind(r,50906)),Promise.resolve().then(r.bind(r,22187)),Promise.resolve().then(r.bind(r,58753)),Promise.resolve().then(r.bind(r,80373)),Promise.resolve().then(r.bind(r,3214)),Promise.resolve().then(r.bind(r,76365)),Promise.resolve().then(r.bind(r,82248)),Promise.resolve().then(r.bind(r,65586)),Promise.resolve().then(r.bind(r,94193)),Promise.resolve().then(r.bind(r,17066)),Promise.resolve().then(r.bind(r,40155)),Promise.resolve().then(r.bind(r,43793)),Promise.resolve().then(r.bind(r,78117)),Promise.resolve().then(r.bind(r,80134)),Promise.resolve().then(r.bind(r,43205)),Promise.resolve().then(r.bind(r,88980)),Promise.resolve().then(r.bind(r,15433)),Promise.resolve().then(r.bind(r,23231)),Promise.resolve().then(r.bind(r,88121)),Promise.resolve().then(r.bind(r,40236)),Promise.resolve().then(r.bind(r,51918)),Promise.resolve().then(r.bind(r,50469)),Promise.resolve().then(r.bind(r,27218)),Promise.resolve().then(r.bind(r,89356)),Promise.resolve().then(r.bind(r,83426)),Promise.resolve().then(r.bind(r,16635)),Promise.resolve().then(r.bind(r,59741)),Promise.resolve().then(r.bind(r,18409)),Promise.resolve().then(r.bind(r,9033)),Promise.resolve().then(r.bind(r,53706)),Promise.resolve().then(r.bind(r,88903)),Promise.resolve().then(r.bind(r,56080)),Promise.resolve().then(r.bind(r,44409)),Promise.resolve().then(r.bind(r,37204)),Promise.resolve().then(r.bind(r,72838)),Promise.resolve().then(r.bind(r,76573)),Promise.resolve().then(r.bind(r,65437)),Promise.resolve().then(r.bind(r,45917)),Promise.resolve().then(r.bind(r,47773)),Promise.resolve().then(r.bind(r,27128)),Promise.resolve().then(r.bind(r,83864)),Promise.resolve().then(r.bind(r,5842)),Promise.resolve().then(r.bind(r,83534)),Promise.resolve().then(r.bind(r,66967)),Promise.resolve().then(r.bind(r,77081)),Promise.resolve().then(r.bind(r,5787)),Promise.resolve().then(r.bind(r,68121)),Promise.resolve().then(r.bind(r,76183)),Promise.resolve().then(r.bind(r,5322)),Promise.resolve().then(r.bind(r,77305)),Promise.resolve().then(r.bind(r,17514)),Promise.resolve().then(r.bind(r,87197)),Promise.resolve().then(r.bind(r,38479)),Promise.resolve().then(r.bind(r,7696)),Promise.resolve().then(r.bind(r,21181)),Promise.resolve().then(r.bind(r,56133)),Promise.resolve().then(r.bind(r,8601)),Promise.resolve().then(r.bind(r,57301)),Promise.resolve().then(r.bind(r,26104)),Promise.resolve().then(r.bind(r,52301)),Promise.resolve().then(r.bind(r,86178)),Promise.resolve().then(r.bind(r,85243))},15218:e=>{e.exports={search:"page_search___XhfF"}},36957:(e,n,r)=>{"use strict";r.d(n,{A:()=>y});var t=r(66257),i=["second","minute","hour","day","week","month","year"],o=["ç§","åé","å°æ¶","天","å¨","个æ","å¹´"],s={},l=function(e,n){s[e]=n},a=function(e){return s[e]||s.en_US},d=[60,60,24,7,365/7/12,12];function h(e){return e instanceof Date?e:new Date(!isNaN(e)||/^\d+$/.test(e)?parseInt(e):e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"))}function u(e,n){for(var r=+(e<0),t=e=Math.abs(e),i=0;e>=d[i]&&i<d.length;i++)e/=d[i];return i*=2,(e=Math.floor(e))>(0===i?9:1)&&(i+=1),n(e,i,t)[r].replace("%s",e.toString())}function c(e,n){return((n?h(n):new Date)-h(e))/1e3}var v="timeago-id";function m(e){return parseInt(e.getAttribute(v))}var b={},p=function(e){clearTimeout(e),delete b[e]};function P(e){e?p(m(e)):Object.keys(b).forEach(p)}l("en_US",function(e,n){if(0===n)return["just now","right now"];var r=i[Math.floor(n/2)];return e>1&&(r+="s"),[e+" "+r+" ago","in "+e+" "+r]}),l("zh_CN",function(e,n){if(0===n)return["åå","çå»å"];var r=o[~~(n/2)];return[e+" "+r+"å",e+" "+r+"å"]});var f=function(){var e=function(n,r){return(e=Object.setPrototypeOf||({__proto__:[]}
1)instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])})(n,r)};return function(n,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function t(){this.constructor=n}e(n,r),n.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}}(),g=function(){return(g=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)},_=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&0>n.indexOf(t)&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,t=Object.getOwnPropertySymbols(e);i<t.length;i++)0>n.indexOf(t[i])&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(r[t[i]]=e[t[i]]);return r};let y=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.dom=null,n}return f(n,e),n.prototype.componentDidMount=function(){this.renderTimeAgo()},n.prototype.componentDidUpdate=function(){this.renderTimeAgo()},n.prototype.renderTimeAgo=function(){var e,n=this.props,r=n.live,t=n.datetime,i=n.locale,o=n.opts;P(this.dom),!1!==r&&(this.dom.setAttribute("datetime",""+(t instanceof Date?t.getTime():t)),e=this.dom,(e.length?e:[e]).forEach(function(e){!function e(n,r,t,i){p(m(n));var o=i.relativeDate,s=i.minInterval,l=c(r,o);n.innerText=u(l,t);var a=setTimeout(function(){e(n,r,t,i)},Math.min(1e3*Math.max(function(e){for(var n=1,r=0,t=Math.abs(e);e>=d[r]&&r<d.length;r++)e/=d[r],n*=d[r];return t%=n,Math.ceil(t=t?n-t:n)}(l),s||1),0x7fffffff));b[a]=0,n.setAttribute(v,a)}(e,e.getAttribute("datetime"),a(i),o||{})}))},n.prototype.componentWillUnmount=function(){P(this.dom)},n.prototype.render=function(){var e=this,n=this.props,r=n.datetime,i=(n.live,n.locale),o=n.opts,s=_(n,["datetime","live","locale","opts"]);return t.createElement("time",g({ref:function(n){e.dom=n}},s),u(c(r,o&&o.relativeDate),a(i)))},n.defaultProps={live:!0,className:""},n}(t.PureComponent)},37506:e=>{e.exports={search:"search_search__3Eljg",input:"search_input__K0_ti","input-wrap":"search_input-wrap__hsY24","results-wrap":"search_results-wrap__s6YAZ",loading:"search_loading__AiYpv","loading-message":"search_loading-message__g8b0J","no-results":"search_no-results____gjX"}},52301:(e,n,r)=>{"use strict";r.d(n,{Search:()=>b});var t=r(84661),i=r(7494),o=r(78964),s=r(50540),l=r(41512),a=r(12278),d=r.n(a),h=r(20374),u=r(66257),c=r(51821),v=r(37506),m=r.n(v);let b=()=>{var e,n,r;let a=(0,l._)(),v=null!=(e=(0,h.useSearchParams)().get("query"))?e:void 0,b=(0,h.useRouter)(),[p,P]=(0,u.useState)(v),[f,g]=(0,u.useState)(!1),[_,y]=(0,u.useState)(),[x,j]=(0,u.useState)({page:1,publication:null!=(n=s._.publicationContext)?n:a.id,query:p,section:s._.publicationContext?s._.publicationIds.join(","):void 0}),[w,O]=(0,u.useState)(),A=(0,u.useCallback)(()=>{let e=null==p?void 0:p.trim();e&&b.push("/search/?query=".concat(encodeURIComponent(e)))},[p]),S=(0,u.useCallback)(e=>{""===e.currentTarget.value.trim()&&(b.push("/search/"),g(!1),y(void 0),j(void 0),O(void 0)),"Enter"===e.key&&A()},[A]);return(0,u.useEffect)(()=>{if(!(null==x?void 0:x.query))return;let e=!1;return(async()=>{g(!0),y(void 0);try{let{data:n,error:r}=await i.FH.articles.getAll({...x,excludeFields:["widgets","images","plain_text","blur"]});if(e)return;r?(O(void 0),y(r)):(O(n),y(void 0))}catch(n){e||(O(void 0),y({message:"Search failed",name:"RequestError"}))}finally{e||g(!1)}})(),()=>{e=!0}},[x]),(0,u.useEffect)(()=>{P(v),v?j(e=>{var n;return(null==e?void 0:e.query)===v?e:e?{...e,query:v}:{page:1,publication:null!=(n=s._.publicationContext)?n:a.id,query:v,section:s._.publicationContext?s._.publicationIds.join(","):void 0}}):(g(!1),y(void 0),j(void 0),O(void 0))},[v]),(0,t.jsxs)("div",{className:m().search,children:[(0,t.jsx)("div",{className:m().input,children:(0,t.jsxs)("div",{className:m()["input-wrap"],children:[(0,t.jsx)("input",{onChange:e=>{P(e.currentTarget.value)},onKeyUp:S,placeholder:"Search ".concat(null!=(r=a.name)?r:a.id),type:"text",value:null!=p?p:""}),(0,t.jsx)("a",{onClick:A,children:(0,t.jsx)(c.pn2,{})})]})}),(0,t.jsxs)("div",{className:d()(m()["results-wrap"],f?m().loading:void 0),children:[(0,t.jsx)("div",{className:m()["loading-message"],children:"Loading..."}),w&&!f?(0,t.jsx)(t.Fragment,{children:w.length>0?(0,t.jsx)(o.ArticleList,{articles:w,getArticlesArgs:x,includeAuthor:!0,includeSynopsis:!0}):(0,t.jsx)("div",{className:m()["no-results"],children:"no results"})}):void 0]})]})}},67105:e=>{!function(n,r){"use strict";var t=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]{1,300}@(.{1,300}\.)[a-zA-Z]{2,3})/g;function i(e,n,r){var i,o,s,l,a="",d=!0,h=n;if((r=r||{}).ellipsis=void 0===r.ellipsis?"â¦":r.ellipsis,!e||0===e.length)return"";for(d=!0;d;){if(t.lastIndex=a.length,!(d=t.exec(e))||d.index-a.length>=h||t.lastIndex>=n+3e3){a+=e.substring(a.length,n);break}if(s=d[0],l=d.index,a+=e.substring(a.length,l+s.length),h-=l+s.length,h<=0)break}return i=r,(o=a).length!==e.length&&i.ellipsis?o+=i.ellipsis:o}e.exports?e.exports=i:n.truncate=i}(String)}},e=>{e.O(0,[155,270,644,430,330,219,236,622,796,451,713,358],()=>e(e.s=15204)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.