iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://europepmc.org/js/chunk-012e946a.7ede3cb7.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-012e946a"],{"0b5d":function(e,t,r){e.exports={baseUnit:"4px"}},"16d0":function(e,t,r){"use strict";r("6681")},"41d1":function(e,t,r){"use strict";r("0b5d")},6681:function(e,t,r){e.exports={baseUnit:"4px"}},bce7:function(e,t,r){"use strict";r.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"search-page"}},[t("script",{attrs:{type:"application/ld+json"}},[e._v("\n "+e._s(e.schemaList)+"\n ")]),t("div",{staticClass:"grid-row",attrs:{id:"search-page-content"}},[t("div",{staticClass:"col-3 col-l-4 col-s-5 sticky"},[e.query&&e.screenWidth>799?t("beta-search-filters",{staticClass:"search-filters",attrs:{query:e.query}}):e._e()],1),t("div",{staticClass:"col-10 col-l-9 col-s-11"},[t("div",{staticClass:"search-results"},[e.maxPageJump?t("notification",{staticClass:"search-action-notify"},[e._v("\n We are unable to support jumping forward more than\n "+e._s(e.maxPageJumpLimit)+" pages at a time. You have been brought to the\n closest allowed results page.\n ")]):e._e(),e.notify?t("notification",{staticClass:"search-action-notify",attrs:{"notification-style":e.notify.type}},[e._v("\n "+e._s(e.notify.message)+"\n ")]):e._e(),e.previousQuery?t("notification",{staticClass:"search-replacement"},[e._v("\n Showing results for "),t("span",[e._v(e._s(e.query))]),e._v(" (your query\n "),t("span",[e._v(e._s(e.previousQuery))]),e._v(" returned 0 results)\n ")]):e._e(),e.query?t("suggested-authors",{staticClass:"search-info-box",attrs:{query:e.queryWithoutConstraints}}):e._e(),e.query?t("author-info",{attrs:{query:e.queryWithoutConstraints}}):e._e(),e.hitCount?t("div",{attrs:{id:"search-results--results--details--top"}},[e._v("\n "+e._s(((e.currentPage-1)*e.pageLimit+1).toLocaleString())+"-"+e._s(e.currentPage*e.pageLimit>e.hitCount?e.hitCount.toLocaleString():(e.currentPage*e.pageLimit).toLocaleString())+"\n of\n "),t("span",{staticClass:"semi-bold"},[e._v(e._s(e.hitCount.toLocaleString()))]),e._v("\n results\n ")]):e._e(),e.query&&!e.loading?t("suggested-search",{staticClass:"suggested-search",attrs:{query:e.query,"hit-count":e.hitCount}}):e._e(),e.hitCount?t("hr",{staticClass:"separator thick"}):e._e(),e.loading||e.hitCount?[t("div",{staticClass:"search-results-bar"},[t("div",{attrs:{id:"search-results-sorter"}},[t("label",{attrs:{for:"search-results--sort--by"}},[e._v("Sort by: ")]),[t("div",{attrs:{id:"search-results--sorting--options"}},e._l(e.filterOptions,(function(r){return t("div",{key:r.value,staticStyle:{display:"flex","align-items":"baseline"},on:{click:function(t){return e.onSorterSelected(r)}}},[t("input",{attrs:{type:"radio",name:"option"},domProps:{value:r.value,checked:r.selected},on:{change:function(t){return e.onSorterSelected(r)}}}),t("label",[e._v(e._s(r.text)+"\n "),t("sup",["Relevance"===r.value?t("tooltip",[t("i",{staticClass:"far fa-question-circle",attrs:{slot:"trigger"},slot:"trigger"}),t("b",[e._v("Relevance:")]),e._v(" "+e._s(r.tooltipText)+"\n ")]):e._e()],1)])])})),0)],"Date"===e.currentSortOption.text?t("action",{attrs:{id:"date-published-arrow"},on:{click:function(t){return t.preventDefault(),e.updateDatePublishedSorter.apply(null,arguments)}}},[t("i",{class:["fas","FIRST_PDATE_D+desc"===e.currentSortOption.value?"fa-arrow-up":"fa-arrow-down"],attrs:{slot:"icon"},slot:"icon"})]):e._e()],2),e.hitCount>e.pageLimit?t("pagination",{attrs:{id:"search-results--pagination","total-size":e.hitCount,"page-size":e.pageLimit,"max-number-of-displayed-pages":3,"current-page":e.currentPage},on:{onPageEntered:e.onPageEntered}}):e._e()],1),e.loading?t("loading"):t("list",{attrs:{list:e.citations,"separator-below":!0},scopedSlots:e._u([{key:"default",fn:function(r){var i=r.item;return t("citation",{attrs:{id:"search-results--single--block-"+i.id,citation:i}},[t("div",{attrs:{slot:"middle-slot"},domProps:{innerHTML:e._s(i.snippets)},slot:"middle-slot"}),t("template",{slot:"label-slot"},[e.exportList.find((function(e){return e.source===i.source&&e.id===i.id}))?t("action",{on:{click:function(t){return e.removeSelectedArticle(i)}}},[t("i",{staticClass:"fas fa-check",attrs:{slot:"icon"},slot:"icon"}),e._v("Added to export list\n ")]):e.exportList.length===e.EXPORT_LIST_LIMIT?t("tooltip",[t("action",{attrs:{slot:"trigger",disabled:!0},slot:"trigger"},[t("i",{staticClass:"fas fa-plus",attrs:{slot:"icon"},slot:"icon"}),e._v("Add to export list\n ")]),e._v("\n The export list is full!\n ")],1):t("action",{attrs:{id:"search-results--addTo--exportList-"+i.id},on:{click:function(t){return e.addSelectedArticle(i)}}},[t("i",{staticClass:"fas fa-plus",attrs:{slot:"icon"},slot:"icon"}),e._v("Add to export list\n ")])],1)],2)}}],null,!1,2239956920)}),e.loading?e._e():t("div",{staticClass:"search-results-bar"},[t("div",{attrs:{id:"search-results--results--details--bottom"}},[e._v("\n "+e._s(((e.currentPage-1)*e.pageLimit+1).toLocaleString())+"-"+e._s(e.currentPage*e.pageLimit>e.hitCount?e.hitCount.toLocaleString():(e.currentPage*e.pageLimit).toLocaleString())+"\n of\n "),t("span",{staticClass:"semi-bold"},[e._v(e._s(e.hitCount.toLocaleString()))]),e._v("\n results\n ")]),e.hitCount>e.pageLimit?t("pagination",{attrs:{"total-size":e.hitCount,"page-size":e.pageLimit,"max-number-of-displayed-pages":3,"current-page":e.currentPage},on:{onPageEntered:e.onPageEntered}}):e._e()],1)]:t("notification",[e._v("\n There are no citations matching your query.\n ")])],2)]),t("div",{staticClass:"col-3 sticky"},[e.query&&e.screenWidth>1e3?t("action-bar",{on:{notify:function(t){return e.notify=t}}}):e._e()],1)]),t("sticky-footer",{attrs:{"screen-width":e.screenWidth},on:{notify:function(t){return e.notify=t}}},[e.query?t("search-filters",{ref:"Filter",attrs:{slot:"menu1",query:e.query,mobile:!0},slot:"menu1"}):e._e()],1)],1)},a=[],s=r("844c"),n=r("2f62"),o=r("f121"),l=r("365c"),c=r("fb73"),u=r("8a40"),h=r("7583"),d=r("e23a"),p=r("f3a9"),f=r("b0a4"),m=r("cfdb"),g=r("bdee"),y=r("f328"),b=r("423d"),v=r("b85d"),S=r("3ec5"),C=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"search-results--filter"}},[e._l(Object.keys(e.filters),(function(r,i){return[e.loading[r]?t("loading",{key:r+"loading"}):e._e(),t("fieldset",{directives:[{name:"show",rawName:"v-show",value:!e.loading[r],expression:"!loading[name]"}],key:r},[t("legend",[t("div",{staticClass:"h4",staticStyle:{margin:"auto"},attrs:{id:"search-results--filter--subSection-"+r.replace(/[^a-zA-Z]/g,"-")}},[e._v("\n "+e._s(r)+"\n "),"Type"===r||"Free full text access"===r?t("tooltip",{attrs:{boundaries:"#search-page-content",placement:e.mobile?"bottom":"right",width:"340px"},on:{show:function(t){return e.showTooltip(r)}}},[t("i",{staticClass:"far fa-question-circle",attrs:{slot:"trigger"},slot:"trigger"}),e._v("\n "+e._s("Type"===r?"To limit your search to specific article types, select one or more of the filters below:":"Free full text articles accessible in, or from Europe PMC may be filtered by:")+"\n "),t("ol","Type"===r?[t("li",[t("b",[e._v("Research articles:")]),e._v(" articles presenting the results of\n experimental research.\n ")]),t("li",[t("b",[e._v("Reviews:")]),e._v(" reviews on a topic covering a broad set of\n previously published articles.\n ")]),t("li",[t("b",[e._v("Preprints:")]),e._v(" research articles that have not yet\n undergone formal peer-review and have been submitted to public\n preprint servers.\n "),t("ol",{staticStyle:{"list-style-type":"disc"}},[t("li",[t("b",[e._v("Reviewed:")]),e._v(" preprints that have reviews,\n recommendations or commentary from expert sources.\n ")]),t("li",[t("b",[e._v("Journal published:")]),e._v(" journal published articles that\n have been connected to their previously posted preprints.\n ")])])]),t("li",[t("b",[e._v("Books & documents:")]),e._v(" The NCBI bookshelf's collection of\n books, reports, and databases, etc., in the areas of biology,\n medicine, and the life sciences.\n ")])]:[t("li",[t("b",[e._v("Full text in Europe PMC:")]),e._v(" All articles that are freely\n available to read within Europe PMC. To filter for open access\n license types, see\n "),t("a",{attrs:{href:"/advancesearch"}},[e._v("Advanced search")]),e._v(".\n ")]),t("li",[t("b",[e._v("Link to free full text:")]),e._v(" All articles with a known link\n to a free and legal copy of the full text, but that are not\n available to read within Europe PMC.\n ")])])]):e._e()],1)]),"Date published"===r?t("div",{staticClass:"timeline"},[t("action",{directives:[{name:"show",rawName:"v-show",value:e.showResetTimeline&&e.isRangeValid,expression:"showResetTimeline && isRangeValid"}],attrs:{id:"reset--timeline"},on:{click:function(t){return t.preventDefault(),e.resetTimeline.apply(null,arguments)}}},[t("span",[e._v("Reset")])]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isRangeValid,expression:"isRangeValid"}],class:{"chart-box":!0,"small-margin-top":e.showResetTimeline}},[e.mobile?e._e():t("span",{staticClass:"expand-icon",on:{click:e.expandChart}},[t("i",{staticClass:"fa fa-expand"})]),t("chart",{directives:[{name:"show",rawName:"v-show",value:e.chart.update&&e.chart.labels.length,expression:"chart.update && chart.labels.length"}],attrs:{id:"histogram",type:e.chart.type,labels:e.chart.labels,datasets:e.chart.datasets,options:Object.assign({},e.sharedChartOptions,e.chartOptions),update:e.chart.update,"aria-label":"Date timeline histogram"}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isRangeValid&&e.isSliderRangeValid,expression:"isRangeValid && isSliderRangeValid"}],staticClass:"slider"},[t("div",{ref:"slider",refInFor:!0})])],1):e._e(),t("ul",e._l(e.filters[r],(function(i,a){return t("li",{directives:[{name:"show",rawName:"v-show",value:!i.parent||i.parent&&e.filters[r][i.parent.index].checked,expression:"\n !filter.parent ||\n (filter.parent && filters[name][filter.parent.index].checked)\n "}],key:i.id,class:i.parent?"sub-filter":""},[t("input","Date published"===r?{directives:[{name:"model",rawName:"v-model",value:e.radioSelection,expression:"radioSelection"}],attrs:{id:"search-results--filter--"+i.id,name:r,type:"radio",disabled:"Custom date filter"!==i.name&&!i.count},domProps:{value:a,checked:e._q(e.radioSelection,a)},on:{change:[function(t){e.radioSelection=a},e.onContentFilterChange]}}:{directives:[{name:"model",rawName:"v-model",value:i.checked,expression:"filter.checked"}],attrs:{id:"search-results--filter--"+i.id,name:r,type:"checkbox",disabled:"Custom date filter"!==i.name&&!i.count},domProps:{value:a,checked:Array.isArray(i.checked)?e._i(i.checked,a)>-1:i.checked},on:{change:[function(t){var r=i.checked,s=t.target,n=!!s.checked;if(Array.isArray(r)){var o=a,l=e._i(r,o);s.checked?l<0&&e.$set(i,"checked",r.concat([o])):l>-1&&e.$set(i,"checked",r.slice(0,l).concat(r.slice(l+1)))}else e.$set(i,"checked",n)},e.onContentFilterChange]}}),"Custom date filter"!==i.name?t("label",{class:{disabled:!i.count},staticStyle:{"padding-left":"0.5rem"},attrs:{for:"search-results--filter--"+i.id}},[e._v(e._s(i.label)+"\n "),t("span",{class:e.mobile?"small":"extra-small"},[e._v("("+e._s(i.count.toLocaleString())+")")])]):t("label",{staticClass:"custom-dates",staticStyle:{"padding-left":"0.5rem"},attrs:{for:"search-results--filter--"+i.id}},[t("label",{staticClass:"alt-text",attrs:{for:"search-results--filter--dateFrom"}},[e._v("Start year")]),t("input",{attrs:{id:"search-results--filter--dateFrom",type:"text",placeholder:"YYYY",maxlength:"4"},domProps:{value:null!==e.startYearInput?e.startYearInput:e.startYear},on:{input:e.onCustomInputStart,keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchCustomDates(null,null)}}}),e._v("\n to\n "),t("label",{staticClass:"alt-text",attrs:{for:"search-results--filter--dateTo"}},[e._v("End year")]),t("input",{attrs:{id:"search-results--filter--dateTo",type:"text",placeholder:"YYYY",maxlength:"4"},domProps:{value:null!==e.endYearInput?e.endYearInput:e.endYear},on:{input:e.onCustomInputEnd,keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchCustomDates(null,null)}}}),t("action",{directives:[{name:"show",rawName:"v-show",value:e.showSearchIcon,expression:"showSearchIcon"}],attrs:{id:"search-results--filter–searchButton"},on:{click:function(t){return e.searchCustomDates(null,null)}}},[t("i",{staticClass:"fas fa-search",attrs:{slot:"icon"},slot:"icon"})]),e.errorMessage?t("notification",{attrs:{"notification-style":"error"}},[e._v("\n "+e._s(e.errorMessage)+"\n ")]):e._e()],1)])})),0),i!==Object.keys(e.filters).length-1?t("hr",{staticStyle:{"margin-top":"16px"}}):e._e()])]})),e.modalVisible?t("modal",{staticClass:"large",attrs:{id:"timeline-modal","close-when-clicking-outside":!0},on:{close:e.closeChart}},[t("template",{slot:"title"},[e._v("Date published")]),t("div",{staticClass:"modal-histogram-icons"},[t("span",{staticStyle:{cursor:"pointer"},on:{click:function(t){return e.closeChart(!0)}}},[t("i",{staticClass:"fas fa-compress"})]),t("div",{staticClass:"modal-histogram-actions"},[t("action",{directives:[{name:"show",rawName:"v-show",value:e.showModalResetTimeline,expression:"showModalResetTimeline"}],attrs:{id:"reset--timeline"},on:{click:function(t){return t.preventDefault(),e.resetModalTimeline.apply(null,arguments)}}},[t("span",[e._v("Reset")])]),e.showResults?t("button",{staticClass:"secondary",on:{click:e.showModalResults}},[e._v("\n Go to results\n ")]):e._e()],1)]),t("chart",{directives:[{name:"show",rawName:"v-show",value:e.modalChart.update&&e.modalChart.labels.length,expression:"modalChart.update && modalChart.labels.length"}],staticClass:"chart-box-modal",attrs:{id:"histogramModal",type:e.modalChart.type,labels:e.modalChart.labels,datasets:e.modalChart.datasets,options:Object.assign({},e.sharedChartOptions,e.modalChartOptions),update:e.modalChart.update,name:e.modalChart.name,"aria-label":"Date timeline histogram"}}),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isRangeValid&&e.isSliderRangeValid,expression:"isRangeValid && isSliderRangeValid"}],class:{slider:e.slider,"modal-slider":e.modalVisible}},[t("div",{ref:"modalSlider"})])],2):e._e()],2)},T=[],w=r("1d94"),x=r("701c"),_=(r("df2f"),r("5070")),O=r.n(_);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function R(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */R=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},n=s.iterator||"@@iterator",o=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,i){var s=t&&t.prototype instanceof y?t:y,n=Object.create(s.prototype),o=new F(i||[]);return a(n,"_invoke",{value:O(e,r,o)}),n}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",p="suspendedYield",f="executing",m="completed",g={};function y(){}function b(){}function v(){}var S={};c(S,n,(function(){return this}));var C=Object.getPrototypeOf,T=C&&C(C(L([])));T&&T!==r&&i.call(T,n)&&(S=T);var w=v.prototype=y.prototype=Object.create(S);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(a,s,n,o){var l=h(e[a],e,s);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==E(u)&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,n,o)}),(function(e){r("throw",e,n,o)})):t.resolve(u).then((function(e){c.value=e,n(c)}),(function(e){return r("throw",e,n,o)}))}o(l.arg)}var s;a(this,"_invoke",{value:function(e,i){function a(){return new t((function(t,a){r(e,i,t,a)}))}return s=s?s.then(a,a):a()}})}function O(t,r,i){var a=d;return function(s,n){if(a===f)throw Error("Generator is already running");if(a===m){if("throw"===s)throw n;return{value:e,done:!0}}for(i.method=s,i.arg=n;;){var o=i.delegate;if(o){var l=k(o,i);if(l){if(l===g)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(a===d)throw a=m,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a=f;var c=h(t,r,i);if("normal"===c.type){if(a=i.done?m:p,c.arg===g)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(a=m,i.method="throw",i.arg=c.arg)}}}function k(t,r){var i=r.method,a=t.iterator[i];if(a===e)return r.delegate=null,"throw"===i&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==i&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var s=h(a,t.iterator,r.arg);if("throw"===s.type)return r.method="throw",r.arg=s.arg,r.delegate=null,g;var n=s.arg;return n?n.done?(r[t.resultName]=n.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):n:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function L(t){if(t||""===t){var r=t[n];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,s=function r(){for(;++a=0;--s){var n=this.tryEntries[s],o=n.completion;if("root"===n.tryLoc)return a("end");if(n.tryLoc<=this.prev){var l=i.call(n,"catchLoc"),c=i.call(n,"finallyLoc");if(l&&c){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),M(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var a=i.arg;M(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,i){return this.delegate={iterator:L(t),resultName:r,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function k(e,t,r,i,a,s,n){try{var o=e[s](n),l=o.value}catch(e){return void r(e)}o.done?t(l):Promise.resolve(l).then(i,a)}function D(e){return function(){var t=this,r=arguments;return new Promise((function(i,a){var s=e.apply(t,r);function n(e){k(s,i,a,n,o,"next",e)}function o(e){k(s,i,a,n,o,"throw",e)}n(void 0)}))}}function M(e){return j(e)||A(e)||L(e)||F()}function F(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function L(e,t){if(e){if("string"==typeof e)return P(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}function A(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function j(e){if(Array.isArray(e))return P(e)}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r=3&&this.transitionSlider(parseInt(d[1]),parseInt(d[3])));case 17:delete s[r],c=this.queryWithoutBaseQuery,c=c.replace(/ AND \(FIRST_PDATE:([^)])+TO([^)])+\)/g,""),this.isqueryWithoutBasequery&&(c=this.baseQuery+" "+c.trim());case 21:if(this.lastUpdatedFilterType=r,!(a.checked||"Date published"===r&&null!=this.radioSelection)){e.next=33;break}if(s[r]?(a.parent?(p=this.filters[r][a.parent.index].query,o[a.parent.name]?(f="",f=o[a.parent.name].length>1?"("+p+" AND ("+o[a.parent.name].join(" OR ")+"))":"("+p+" AND "+o[a.parent.name]+")",m="("+p+" AND ("+o[a.parent.name].join(" OR ")+" OR "+l+"))",c=U(c,f,m),g=s[r].indexOf(f),s[r].splice(g,1),o[a.parent.name].push(l),l=m):(c=U(c,p,"("+p+" AND "+l+")"),o[a.parent.name]=[l],l="("+p+" AND "+l+")",y=s[r].indexOf(p),s[r].splice(y,1))):(b=l,v=c,S=s[r][s[r].length-1],"(HAS_FREE_FULLTEXT:Y NOT HAS_FT:Y)"===l?b="(HAS_FREE_FULLTEXT:Y)":"HAS_FT:Y"===l&&(v=v.replace("HAS_FREE_FULLTEXT:Y NOT HAS_FT:Y","HAS_FREE_FULLTEXT:Y"),S="(HAS_FREE_FULLTEXT:Y)"),c=U(v,S,S+" OR "+b)),s[r].push(l)):(c=H(c),c+=" AND ("+l+")",s[r]=[l]),"Date published"!==r||!a.name.includes("last")){e.next=27;break}return e.next=27,new Promise((function(e){return setTimeout(e,500)}));case 27:n!==c&&this.changeQuery(c),C={Type:"content type","Free full text access":"full text availability","Date published":"date"},Object(h["b"])("Search","Filter - "+C[r],a.parent?this.filters[r][a.parent.index].label+" - "+a.label:a.label),"Date published"!=r&&Object(h["b"])("Search","Filter - "+C[r],a.label),e.next=42;break;case 33:T="",w="",a.parent?(w=this.filters[r][a.parent.index].query,1===o[a.parent.name].length?(delete o[a.parent.name],T=w,l="("+w+" AND "+l+")"):(l="("+w+" AND ("+o[a.parent.name].join(" OR ")+"))",o[a.parent.name].splice(o[a.parent.name].indexOf(a.query),1),T=1===o[a.parent.name].length?"("+w+" AND "+o[a.parent.name]+")":"("+w+" AND ("+o[a.parent.name].join(" OR ")+"))")):a.subfilter&&(a.subfilter.forEach((function(e){if(M.filters[r][e.index].checked){var t=M.filters[r][e.index].query;M.filters[r][e.index].checked=!1,1===o[a.name].length&&(l="("+l+" AND "+t+")")}})),o[a.name]&&o[a.name].length>1&&(l="("+a.query+" AND ("+o[a.name].join(" OR ")+"))"),delete o[a.name]),x=s[r].indexOf(l),_=s[r].length,1===_?c=U(c," AND ("+l+")",T?" AND ("+T+")":""):0===x?(O=l,E=c,"(HAS_FREE_FULLTEXT:Y NOT HAS_FT:Y)"===l?O="(HAS_FREE_FULLTEXT:Y)":"HAS_FT:Y"===l&&(E=E.replace("HAS_FREE_FULLTEXT:Y","HAS_FREE_FULLTEXT:Y NOT HAS_FT:Y")),c=c.includes(O+" OR ")?U(E,O+" OR ",T?T+" OR ":""):U(E," OR "+O,T?" OR "+T:"")):(k=l,D=c,"(HAS_FREE_FULLTEXT:Y NOT HAS_FT:Y)"===l?k="(HAS_FREE_FULLTEXT:Y)":"HAS_FT:Y"===l&&(D=D.replace("HAS_FREE_FULLTEXT:Y","HAS_FREE_FULLTEXT:Y NOT HAS_FT:Y")),c=c.includes(" OR "+k)?U(D," OR "+k,T?" OR "+T:""):U(D,k+" OR ",T?T+" OR ":"")),a.parent?o[a.parent.name]&&o[a.parent.name].length>0?s[r][x]=T:s[r][x]=w:s[r].splice(x,1),0===s[r].length&&delete s[r],this.changeQuery(c);case 42:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),searchCustomDates:function(){var e=D(R().mark((function e(t,r){var i,a,s,n,o;return R().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t&&r?(this.startYear=t,this.endYear=r):(this.startYear=document.getElementById("search-results--filter--dateFrom").value,this.endYear=document.getElementById("search-results--filter--dateTo").value),this.radioSelection=3,i="",/^\d{4}$/.test(this.startYear)?/^\d{4}$/.test(this.endYear)?this.startYear>this.endYear&&(i="The starting year should be smaller."):i="Please enter a valid ending year.":i="Please enter a valid starting year.",i){e.next=23;break}if(this.showResetTimeline||(this.showResetTimeline=!0),this.isSlided||t||(this.transitionSlider(this.startYear,this.endYear),Object(h["b"])("Search","Filter - custom date entry fields ","Date entry - ["+this.startYear+" - "+this.endYear+"]")),a=this.query,s=this.queryWithoutBaseQuery,n=H(a),delete this.checkedFilters["Date published"],this.lastUpdatedFilterType="",o=s.match(/ AND \(FIRST_PDATE:[^)]+\)/g),o?(n=s.replace(/ AND \(FIRST_PDATE:[^)]+\)/g," AND (FIRST_PDATE:["+this.startYear+" TO "+this.endYear+"])"),this.isqueryWithoutBasequery&&(n=this.baseQuery+" "+n.trim())):n+=" AND (FIRST_PDATE:["+this.startYear+" TO "+this.endYear+"])",(this.isSlided||t)&&!this.graphClicked&&!this.showResultsFromModalClicked){e.next=18;break}return e.next=16,new Promise((function(e){return setTimeout(e,500)}));case 16:this.graphClicked=!1,this.showResultsFromModalClicked=!1;case 18:this.changeQuery(n),this.isSlided&&(this.sliderStart=this.startYear,this.sliderEnd=this.endYear),this.fromCustomDates=!0,this.showSearchIcon=!1,this.checkedFilters["Date published"]=["FIRST_PDATE:["+this.startYear+" TO "+this.endYear+"]"];case 23:this.errorMessage=i;case 24:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),clearCustomDates:function(){this.startYear="",this.endYear="",this.startYearInput=null,this.endYearInput=null,this.errorMessage=""},showTooltip:function(e){Object(h["b"])("Search","Filter - "+e==="Type"?"content type":"full text availability","Tooltip accessed")},showCustomDatesPane:function(){this.showCustomDates=!this.showCustomDates,this.showCustomDates&&Object(h["b"])("Search","Filter - custom date range")},getContentTypes:function(e){return Object(l["v"])(e)},getYears:function(e){return Object(l["W"])(e)},changeQuery:function(e){this.$router.push({path:"betaSearch"+Object(u["f"])({query:e,page:1,maxPageJump:""})})},onCustomInputStart:function(e){this.startYearInput=e.target.value,this.radioSelection=3,this.showSearchIcon=!0},onCustomInputEnd:function(e){this.endYearInput=e.target.value,this.radioSelection=3,this.showSearchIcon=!0},getCountInRange:function(e,t,r){return e.filter((function(e){return e.year>=t&&e.year<=r})).reduce((function(e,t){return e+t.count}),0)},getRangeOfYearFromQuery:function(){var e=/\[(\d{4}) TO (\d{4})\]/;if(this.queryWithoutBaseQuery){var t=this.queryWithoutBaseQuery.match(e);return t}if(this.query&&null!=this.query){var r=this.query.match(e);return r}},setIsRangeValid:function(){this.startYear&&this.endYear&&this.sliderMin&&this.sliderMax&&!(this.startYear<=this.sliderMax&&this.endYear>=this.sliderMin||this.sliderMin<=this.endYear&&this.sliderMax>=this.startYear)?this.isRangeValid=!1:this.isRangeValid=!0},showSlider:function(e){if(!this.sliderMin||!this.sliderMax||this.sliderMin!=this.sliderMax){var t="";null!=this.sliderMin&&null!=this.sliderMax&&(e&&"slider"==e?(t=this.$refs.slider[0],this.slider&&this.slider.destroy()):(t=this.$refs.modalSlider,this.modalSlider&&this.modalSlider.destroy()),this.createSlider(t,e))}},createSlider:function(e,t){this[t]=x["a"].create(e,{start:[this.sliderStart,this.sliderEnd],connect:!0,step:.1,animate:!0,animationDuration:500,range:{min:this.sliderMin,max:this.sliderMax},behaviour:"tap-drag",tooltips:!0,format:O()({decimals:0}),keyboardSupport:!0,keyboardDefaultStep:1}),this.slider&&"slider"===t?this.setSliderEvents():this.modalSlider&&"modalSlider"===t&&this.setModalSliderEvents()},setSliderEvents:function(){var e=this,t=null,r=!1;this.slider.on("slide",(function(t,i){e.showResetTimeline||(e.showResetTimeline=!0),r=!0,e.startYearInput=null,e.endYearInput=null,e.startYear=t[0],e.endYear=t[1],e.radioSelection=3,e.chart.update=!1,e.updateChartBarColorsWithOpacity("chart",e.startYear,e.endYear),setTimeout((function(){e.handleSliderTooltipOverlap(t,i,!0,"slider")}),100)})),this.slider.on("change",(function(){r&&(clearTimeout(t),t=setTimeout((function(){e.handleSliderChange()}),100),e.sliderMin==e.sliderStart&&e.sliderMax==e.sliderEnd?e.showResetTimeline=!1:e.showResetTimeline=!0,Object(h["b"])("Search","Filter - timeline handle move","Timeline handle")),r=!1,e.tooltipMargin=!1})),this.slider.on("update",(function(t,r){setTimeout((function(){e.handleSliderTooltipOverlap(t,r,!1,"slider")}),100),e.sliderMin==e.sliderStart&&e.sliderMax==e.sliderEnd?e.showResetTimeline=!1:e.showResetTimeline=!0}))},handleSliderTooltipOverlap:function(e,t,r,i){var a=this,s=null,n=null,o=null,l=function(){return new Promise((function(l){setTimeout((function(){requestAnimationFrame((function(){var c=parseFloat(e[t]);"slider"===i?(s=a.$refs.slider[0].getBoundingClientRect(),n=a.$refs.slider[0].querySelector(".noUi-handle-lower"),o=a.$refs.slider[0].querySelector(".noUi-handle-upper")):(s=a.$refs.modalSlider.getBoundingClientRect(),n=a.$refs.modalSlider.querySelector(".noUi-handle-lower"),o=a.$refs.modalSlider.querySelector(".noUi-handle-upper"));var u=n.getBoundingClientRect(),h=o.getBoundingClientRect(),d=u.left-s.left,p=h.left-s.left,f=Math.abs(p-d),m=0!=f&&f<40&&e[0]!==e[1];n.querySelector(".noUi-tooltip").classList.toggle("intersected",m),o.querySelector(".noUi-tooltip").classList.remove("hide"),m?(a.handleDisplacement=40-Math.abs(p-d),r?c==e[0]?o.querySelector(".noUi-tooltip").getBoundingClientRect().right<=s.right?(n.querySelector(".noUi-tooltip.intersected").style.transform="translateX(".concat(-a.handleDisplacement,"px)"),o.querySelector(".noUi-tooltip").style.transform="none"):(o.querySelector(".noUi-tooltip").style.transform="translateX(0px)",n.querySelector(".noUi-tooltip.intersected").style.transform="translateX(".concat(-a.handleDisplacement,"px)")):c==e[1]&&(o.querySelector(".noUi-tooltip").getBoundingClientRect().right>=s.right?a.tooltipMargin=!0:a.tooltipMargin||(n.querySelector(".noUi-tooltip.intersected").getBoundingClientRect().left>=s.left?(o.querySelector(".noUi-tooltip").style.transform="translateX(".concat(a.handleDisplacement,"px)"),n.querySelector(".noUi-tooltip.intersected").style.transform="none"):(n.querySelector(".noUi-tooltip.intersected").style.transform="translateX(0px)",o.querySelector(".noUi-tooltip").style.transform="translateX(".concat(a.handleDisplacement,"px)")))):(o.querySelector(".noUi-tooltip").style.transform="translateX(".concat(a.handleDisplacement,"px)"),o.querySelector(".noUi-tooltip").getBoundingClientRect().right>=s.right&&(o.querySelector(".noUi-tooltip").style.transform="none",n.querySelector(".noUi-tooltip.intersected").style.transform="translateX(".concat(-a.handleDisplacement,"px)")))):e[0]==e[1]&&(o.querySelector(".noUi-tooltip").classList.add("hide"),n.querySelector(".noUi-tooltip").style.transform="none"),l()}))}),100)}))};l().then((function(){}))},updateSliderHandle:function(){var e=this.checkedFilters;if(e["Date published"]){var t=this.getRangeOfYearFromQuery();if(t&&t.length>=3){var r=parseInt(t[1]),i=parseInt(t[2]);(this.fromCustomDates||this.sliderStart!=r||this.sliderEnd!=i)&&(this.sliderStart=r,this.sliderEnd=i,this.updateSliderRange())}}},updateSliderRange:function(){this.slider.updateOptions({range:{min:this.sliderMin,max:this.sliderMax},start:[this.sliderStart,this.sliderEnd]}),this.chart.update=!1,this.updateChartBarColors(),this.isSliderMinUpdated&&this.sliderMin==this.sliderStart&&(this.startYear=this.sliderMin,this.endYear||(this.endYear=this.sliderMax),this.radioSelection=3),this.isSliderMaxUpdated&&this.slideMax==this.sliderEnd&&(this.endYear=this.sliderMax,this.startYear||(this.startYear=this.sliderMin),this.radioSelection=3),this.isSliderMinUpdated=!1,this.isSliderMaxUpdated=!1},handleSliderChange:function(){this.isSlided=!0,this.searchCustomDates(null,null)},setModalSliderEvents:function(){var e=this;this.modalSlider.on("update",(function(t,r){setTimeout((function(){e.handleSliderTooltipOverlap(t,r,!0,"modalSlider")}),100)})),this.modalSlider.on("slide",(function(t){setTimeout((function(){e.modalHandleValueStart=t[0],e.modalHandleValueEnd=t[1],e.modalSliderChange=!0,e.showResults=!0,e.showModalResetTimeline=!0,e.modalGraphClicked&&(e.modalGraphClicked=!1),e.modalChart.update=!1,e.updateChartBarColorsWithOpacity("modalChart",t[0],t[1])}),100)})),this.modalSlider.on("change",(function(t){Object(h["b"])("Search","Filter - big timeline handle","BigTimeline handle"),e.modalSliderStart=t[0],e.modalSliderEnd=t[1],e.sliderMin!=e.modalSliderStart||e.sliderMax!=e.modalSliderEnd||e.showResetTimeline?(e.showModalResetTimeline=!0,e.showResults=!0):(e.showModalResetTimeline=!1,e.showResults=!1)}))},setSliderValue:function(e,t){null!=this.sliderMin&&this.sliderMin==e||(null!=this.sliderMin&&this.sliderMin!=e&&(this.isSliderMinUpdated=!0),this.sliderMin=e,this.checkedFilters["Date published"]||(this.sliderStart=this.sliderMin)),null!=this.sliderMax&&this.sliderMax==t||(null!=this.sliderMax&&this.sliderMax!=t&&(this.isSliderMaxUpdated=!0),this.sliderMax=t,this.checkedFilters["Date published"]||(this.sliderEnd=this.sliderMax))},transitionSlider:function(e,t){this.sliderStart=e,this.sliderEnd=t,this.$refs.slider[0].noUiSlider.set([e,t]),this.chart.update=!1,this.updateChartBarColors()},setChartData:function(e){var t=this.chart;try{var r=e;r=r.reverse();var i=parseInt(r[0].year),a=parseInt(r[r.length-1].year),s=Array.from({length:a-i+1},(function(e,t){return(i+t).toString()}));t.labels=s,t.datasets[0].backgroundColor||(t.datasets[0].backgroundColor=new Array(t.labels.length).fill("#79B4DE"),t.datasets[0].borderColor=new Array(t.labels.length).fill("#79B4DE"),t.datasets[0].hoverBackgroundColor=new Array(t.labels.length).fill("#3C7EAD"));var n={};r.forEach((function(e){var t=e.year,r=e.count;n[t]=r})),t.datasets[0].data=s.map((function(e){return n[e]||0})),t.update||(t.update=!0);var o=Number(t.labels[0]),l=Number(t.labels[t.labels.length-1]);null!=o&&null!=l&&this.setSliderValue(o,l)}catch(c){}},updateChartBarColorsWithOpacity:function(e,t,r){var i=this;this[e].datasets[0].backgroundColor=this[e].datasets[0].data.map((function(){return"#79B4DE"})),this[e].datasets[0].borderColor=this[e].datasets[0].data.map((function(){return"#79B4DE"})),this[e].datasets[0].hoverBackgroundColor=this[e].datasets[0].data.map((function(){return"#3C7EAD"}));for(var a=this[e].labels.indexOf((t-1).toString())+1,s=this[e].labels.indexOf((r+1).toString())-1,n=0;n=t&&o<=r)this[e].datasets[0].backgroundColor[n]="#79B4DE";else if(n>=a&&n<=s){var l=1-Math.abs(o-(t+r)/2)/(r-t+2);this[e].datasets[0].backgroundColor[n]="rgba(204, 204, 204, ".concat(l,")")}else this[e].datasets[0].backgroundColor[n]="lightgray"}this.$nextTick((function(){i[e].update||(i[e].update=!0)}))},updateChartBarColors:function(){var e=this,t=this.chart;t.labels.forEach((function(r,i){re.sliderEnd?(t.datasets[0].backgroundColor[i]="lightgray",t.datasets[0].borderColor[i]="lightgray"):(t.datasets[0].backgroundColor[i]="#79B4DE",t.datasets[0].borderColor[i]="#79B4DE")})),t.datasets[0].hoverBackgroundColor=new Array(t.labels.length).fill("#3C7EAD"),this.$nextTick((function(){t.update||(t.update=!0)}))},updateModalChartBarColors:function(e,t){var r=this.modalChart;r.labels.forEach((function(i,a){it?(r.datasets[0].backgroundColor[a]="lightgray",r.datasets[0].borderColor[a]="lightgray"):(r.datasets[0].backgroundColor[a]="#79B4DE",r.datasets[0].borderColor[a]="#79B4DE")})),this.$nextTick((function(){r.update||(r.update=!0)}))},handleGraphClick:function(e,t){if(t.length>0&&this.sliderMin&&this.sliderMax&&this.sliderMin!=this.sliderMax){this.showModalResetTimeline=!0,this.graphClicked=!0;var r=t[0],i=r._index,a=this.chart.labels[i];this.startYearInput=null,this.endYearInput=null,this.transitionSlider(a,a),this.searchCustomDates(a,a),Object(h["b"])("Search","Filter - timeline click","Timeline click")}},handleModalGraphClick:function(e,t){if(t.length>0&&this.sliderMin&&this.sliderMax&&this.sliderMin!=this.sliderMax){this.showResults=!0,this.showModalResetTimeline=!0,this.modalGraphClicked=!0;var r=t[0],i=r._index;this.chartModalSelectedYear=this.modalChart.labels[i],this.$refs.modalSlider.noUiSlider.set([this.chartModalSelectedYear,this.chartModalSelectedYear]),this.modalChart.update=!1,this.updateModalChartBarColors(this.chartModalSelectedYear,this.chartModalSelectedYear),Object(h["b"])("Search","Filter - big timeline click","BigTimeline click")}},expandChart:function(){var e=this,t=this.chart,r=this.modalChart;r.update=!1,this.modalVisible=!0,this.showResetTimeline&&(this.showModalResetTimeline=!0);var i=Object(w["a"])({labels:t.labels,datasets:t.datasets});r.labels=i.labels,r.datasets=i.datasets,this.$nextTick((function(){r.update||(r.update=!0),e.showSlider("modalSlider")})),Object(h["b"])("Search","Expand timeline","xTimeline")},closeChart:function(e){this.modalVisible=!1,this.showModalResetTimeline=!1,this.showResults=!1,this.isModalResetClicked=!1,this.modalChart.labels=[],this.modalChart.datasets=[],e?Object(h["b"])("Search","Reduce big timeline","Reduce big timeline"):this.showResultsFromModal||Object(h["b"])("Search","Close (X) big timeline","Close BigTimeline"),this.showResultsFromModal=!1},showModalResults:function(){this.showResultsFromModal=!0,this.showResultsFromModalClicked=!0,this.modalGraphClicked||this.modalSliderChange?(this.showResetTimeline=!0,this.modalGraphClicked?(this.transitionSlider(this.chartModalSelectedYear,this.chartModalSelectedYear),this.searchCustomDates(this.chartModalSelectedYear,this.chartModalSelectedYear)):this.modalSliderChange&&(this.transitionSlider(this.modalHandleValueStart,this.modalHandleValueEnd),this.searchCustomDates(this.modalHandleValueStart,this.modalHandleValueEnd))):this.isModalResetClicked&&this.resetTimeline(),this.showResults=!1,this.closeChart(),Object(h["b"])("Search","See results from big timeline","Results BigTimeline")},resetTimeline:function(){var e=D(R().mark((function e(){var t,r;return R().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.showResetTimeline=!1,this.showModalResetTimeline=!1,this.clearCustomDates(),delete this.checkedFilters["Date published"],this.radioSelection=null,this.transitionSlider(this.sliderMin,this.sliderMax),this.showResultsFromModal||Object(h["b"])("Search","Reset timeline","Reset timeline"),t=this.query,r=this.queryWithoutBaseQuery,r=r.replace(/ AND \(FIRST_PDATE:([^)])+TO([^)])+\)/g,""),this.isqueryWithoutBasequery&&(r=this.baseQuery+" "+r.trim()),e.next=13,new Promise((function(e){return setTimeout(e,500)}));case 13:t!==r&&this.changeQuery(r);case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),resetModalTimeline:function(){this.showModalResetTimeline=!1,this.modalGraphClicked=!1,this.modalSliderChange=!1,this.isModalResetClicked=!0,this.showResults=!0,this.$refs.modalSlider.noUiSlider.set([this.sliderMin,this.sliderMax]),this.modalChart.update=!1,this.updateModalChartBarColors(this.sliderMin,this.sliderMax),Object(h["b"])("Search","Reset big timeline","Reset BigTimeline")},checkMultipleNestedFilters:function(){return!(!this.checkedFilters["Type"]||2!==this.checkedFilters["Type"].length||!Object.keys(this.checkedSubFilters).length)}}},Q=$,W=(r("41d1"),r("2877")),X=Object(W["a"])(Q,C,T,!1,null,null,null),G=X.exports,J=r("2eae"),z=r("5df7"),Z=r("862f");function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function te(e){for(var t=1;tt)this.$router.push({path:"betaSearch"+Object(u["f"])({page:t,maxPageJump:"true"})});else{var g=this.nextCursorMark,y=a-h,b=a>h?g:"*",v=a>h?"*"===g?(y+1)*r:y*r:a*r;this.loading=!0,Object(l["M"])({cursorMark:b,pageSize:v,query:i,sort:n,synonym:d}).then((function(t){Object(s["b"])({src:"https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"}),e.hitCount=t.hitCount;var u=e.hitCount;e.changeLastSearch({query:i,sort:n,page:a,cursorMark:b,hitCount:u}),e.nextCursorMark=t.nextCursorMark,e.citations=t.resultList.result.slice(a>h?"*"===g?y*r:(y-1)*r:(a-1)*r),e.currentPage=parseInt(a,10);var d=e.citations.map((function(e,t){return{"@type":"ListItem",position:t+1,url:"".concat(o["EPMC_ROOT"],"article/").concat(e.source,"/").concat(e.id)}}));if(e.schemaList["itemListElement"]=d,u){var p={"FIRST_PDATE_D+desc":"DATE+DESC","FIRST_PDATE_D+asc":"DATE+ASC","CITED+desc":"Times+Cited+DESC"};Object(l["O"])({cursorMark:b,pagesize:v,query:i,sortby:n?p[n]:""}).then((function(t){t&&(e.changeSnippets(t),e.citations.forEach((function(r){r.title=Object(m["b"])(r.title);var i=r.title;Object(m["a"])(i).then((function(e){r.title=e}));var a=r.source.toLowerCase()+r.id.toLowerCase();t[a]&&e.$set(r,"snippets",t[a].join("... ").replace(//g,"").replace(/<\/em>/g,"").replace(/</g,"<").replace(/>/g,">").replace(/<//g,"/g,"/>").replace(//gi," ").replace(/<\/h[1-6]>/gi," "))})))})),e.citations.filter((function(e){return e.title})).forEach((function(e,t){e.title=Object(c["highlightByQuery"])(i,e.title,{validFields:o["SEARCH_FIELDS"],highlightedFields:["TITLE",""],highlightClass:"extra-bold",highlightIdPattern:"highlight-"+t+"-"})}))}e.loading=!1})).catch((function(){e.loading=!1}))}},onSorterSelected:function(e){var t=e.value;this.changeLastSortBy(t),this.$router.push({path:"betaSearch"+Object(u["f"])({page:1,sortBy:t,maxPageJump:""})});var r="";r=t.includes("FIRST_PDATE_D")?"Date":t.includes("CITED")?"Times Cited":t.includes("FIRST_IDATE")?"Date indexed":"Relevance",Object(h["b"])("Search","Sort by",r)},onPageEntered:function(e){var t,r=e.value,i=e.type;this.$router.push({path:"betaSearch"+Object(u["f"])({page:r,maxPageJump:""})}),t="ellipsis"==i?"Dots":"prev"==i?"Prev":"next"==i?"Next":"Page number",Object(h["b"])("Search","Pagination",t)},updateDatePublishedSorter:function(){this.currentSortOption.value="FIRST_PDATE_D+desc"===this.currentSortOption.value?"FIRST_PDATE_D+asc":"FIRST_PDATE_D+desc",this.$router.push({path:"betaSearch"+Object(u["f"])({sortBy:this.currentSortOption.value})})}})},ne=se,oe=(r("16d0"),Object(W["a"])(ne,i,a,!1,null,null,null));t["default"]=oe.exports}}]); //# sourceMappingURL=chunk-012e946a.7ede3cb7.js.map