1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[48],{"2ntw":function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/collezioni/collezione",function(){return r("UbCt")}])},MJc2:function(e,t,r){var n=r("KEM+");function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var o=r("ERkP"),c=r("8cHP").Link;e.exports=function(e){return o.createElement(e.route?c:"a",a(a({},e),{},{href:e.route||e.to||""}),e.children)}},OvWy:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(e){return e&&Object.keys(e).length?Object.keys(e).map((function(t){var r=Array.isArray(e[t]);return!e[t]||r&&!e[t].length?"":"".concat(t,"=").concat(r?e[t].join(","):e[t])})).filter((function(e){return e})).join("&"):""}},UbCt:function(e,t,r){"use strict";r.r(t);var n=r("QsI/"),i=r("zjfJ"),a=r("HbGN"),o=r("9fIP"),c=r("MMYH"),s=r("K/z8"),u=r("sRHE"),l=r("8K1b"),f=r("ERkP"),p=r.n(f),h=r("j/s1"),d=r("7xIC"),b=r.n(d),y=r("QtE3"),v=r("PZBX"),O=r("uPMs"),g=r("s+D9");function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){Object(i.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var j=function(e,t){return"undefined"===typeof e?[]:e.map((function(e){var r,n,i={category:e.category,title:e.title,thumbnail:{url:e.thumbnailUrl},link:"/collezioni/".concat(t,"/").concat(e.id),showArrowForward:!0,date:Object(g.a)(e)};e.creator&&e.creator.length&&(i=w(w({},i),{},{supertitle:null!==(r=null!==(n=e.creator[0].name)&&void 0!==n?n:e.creator[0].culture)&&void 0!==r?r:e.creator[0].productionPlace}));return i}))},S=r("Lm5w"),k=r("0D0S"),P=r.n(k),C=r("Xhfp");function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){Object(i.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var T=P()().publicRuntimeConfig.COMWORK_URL,z="".concat(T,"/public/api/catalogue/collections"),D=function(e,t,r,n){return Object(C.a)("".concat(z,"/").concat(t),e,r).then((function(e){var t=e.token,r=e.response;return _(_({token:t,id:r.id,title:r.title,description:r.description,shortDescription:r.shortDescription},r.catalogueObjects),{},{filters:_(_({},r.catalogueObjects.filters.reduce((function(e,t){return _(_({},e),{},Object(i.a)({},t.name,t.values))}),{})),n?{q:n}:{}),appliedFilters:r.catalogueObjects.filters})}))},x=r("fwig"),Y=r("OvWy"),F=["seo","breadcrumbs"],M=["id"],L=p.a.createElement;function R(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function a(r,n,i,a){var s=n&&n.prototype instanceof c?n:c,u=Object.create(s.prototype);return I(u,"_invoke",function(r,n,i){var a,c,s,u=0,l=i||[],f=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return a=t,c=0,s=e,p.n=r,o}};function h(r,n){for(c=r,s=n,t=0;!f&&u&&!i&&t<l.length;t++){var i,a=l[t],h=p.p,d=a[2];r>3?(i=d===n)&&(s=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=e):a[0]<=h&&((i=r<2&&h<a[1])?(c=0,p.v=n,p.n=a[1]):h<d&&(i=r<3||a[0]>n||n>d)&&(a[4]=r,a[5]=n,p.n=d,c=0))}if(i||r>1)return o;throw f=!0,n}return function(i,l,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),c=l,s=d;(t=c<2?e:s)||!f;){a||(c?c<3?(c>1&&(p.n=-1),h(c,s)):p.n=s:p.v=s);try{if(u=2,a){if(c||(i="next"),t=a[i]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
1if(!t.done)return t;s=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),c=1);a=e}else if((t=(f=p.n<0)?s:r.call(n,p))!==o)break}catch(t){a=e,c=1,s=t}finally{u=1}}return{value:t,done:f}}}(r,i,a),!0),u}var o={};function c(){}function s(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(I(t={},n,(function(){return this})),t),f=u.prototype=c.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,I(e,i,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=u,I(f,"constructor",u),I(u,"constructor",s),s.displayName="GeneratorFunction",I(u,i,"GeneratorFunction"),I(f),I(f,i,"Generator"),I(f,n,(function(){return this})),I(f,"toString",(function(){return"[object Generator]"})),(R=function(){return{w:a,m:p}})()}function I(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}(I=function(e,t,r,n){function a(t,r){I(e,t,(function(e){return this._invoke(t,r,e)}))}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))})(e,t,r,n)}function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){Object(i.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function G(e,t,r){return t=Object(u.a)(t),Object(s.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Object(u.a)(e).constructor):t.apply(e,r))}var q=P()().publicRuntimeConfig.APP_DOMAIN,U=function(e){function t(e){var r;Object(o.a)(this,t),r=G(this,t);e.seo,e.breadcrumbs;var n=Object(a.a)(e,F);return r.state=A({meta:{loading:!0}},n),r.handleSearchChange=r.handleSearchChange.bind(r),r.handleSearchReset=r.handleSearchReset.bind(r),r.handlePaginationChange=r.handlepaginationChange.bind(r),r.handlerClearFilter=r.handlerClearFilter.bind(r),r.search=r.search.bind(r),r.serializeFilters=Y.a,r.canLoadMore=r.canloadmore.bind(r),r.canLoadMorep=!1,r}return Object(l.a)(t,e),Object(c.a)(t,[{key:"canloadmore",value:function(){var e=this.state.totalSize/this.state.blocksize,t=this.state.page+1;this.canLoadMorep=e>t}}
1,{key:"setLoading",value:function(e){this.setState(A(A({},this.state),{},{meta:A(A({},this.state.meta),{},{loading:e})}))}},{key:"componentDidMount",value:function(){this.setLoading(!1),this.canloadmore()}},{key:"search",value:function(){var e=Object(n.a)(R().m((function e(){var t,r,n,i,a,o;return R().w((function(e){for(;;)switch(e.n){case 0:return this.setLoading(!0),t=this.state,r=t.token,n=t.id,i=t.filters,a=this.serializeFilters(i),e.n=1,D(r,n,a,null===i||void 0===i?void 0:i.q);case 1:o=e.v,this.setState(A(A({},this.state),o)),this.updateRoute(),this.canLoadMore(),this.setLoading(!1);case 2:return e.a(2)}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"reload",value:function(){var e=Object(n.a)(R().m((function e(){var t,r,n,i,a,o;return R().w((function(e){for(;;)switch(e.n){case 0:return this.setLoading(!0),t=this.state,r=t.token,n=t.id,i=t.filters,a=this.state.result,e.n=1,D(r,n,this.serializeFilters(i));case 1:(o=e.v).result=a.concat(o.result),this.setState(A(A({},this.state),o)),this.canLoadMore(),this.updateRoute(),this.setLoading(!1);case 2:return e.a(2)}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"handleSearchChange",value:function(e){this.setState(A(A({},this.state),{},{filters:A(A({},this.state.filters),e)})),this.canLoadMore()}},{key:"handleSearchReset",value:function(){var e=this;this.setState(A(A({},this.state),{},{filters:{}})),setTimeout(Object(n.a)(R().m((function t(){return R().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,e.search();case 1:return t.a(2,t.v)}}),t)})))),this.canLoadMore()}},{key:"handlepaginationChange",value:function(){var e=this,t=this.state.page;this.setState(A(A({},this.state),{},{filters:A(A({},this.state.filters),{},{page:t+1})})),setTimeout(Object(n.a)(R().m((function t(){return R().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,e.reload();case 1:return t.a(2,t.v)}}),t)}))))}},{key:"handlerClearFilter",value:function(){var e=Object(n.a)(R().m((function e(t){var r,a,o,c=this;return R().w((function(e){for(;;)switch(e.n){case 0:r=t.split(".")[0],a=t.split(".")[1],o=A(A({},this.state.filters),{},Object(i.a)({page:0},r,this.state.filters[r].filter((function(e){return e!==a})))),this.setState(A(A({},this.state),{},{filters:o})),setTimeout(Object(n.a)(R().m((function e(){return R().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,c.search();case 1:return e.a(2,e.v)}}),e)}))));case 1:return e.a(2)}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"updateRoute",value:function(){var e=this.state,t=e.id,r=e.filters,n=this.serializeFilters(r);b.a.replace({pathname:"/collezioni/collezione"},"/collezioni/".concat(t).concat(n?"?".concat(n):""),{shallow:!0})}},{key:"render",value:function(){var e=this.props,t=e.seo,r=e.breadcrumbs,n=this.state,i=n.meta,a=n.id,o=n.title,c=n.thumbnailUrl,s=n.description,u=(n.blocksize,n.page,n.totalSize,n.result),l=n.loading,f=n.loadingMore,h=n.filters,d=n.facets,b=n.appliedFilters;return L(O.a,{seo:t},i&&i.loading&&L(y.Loading,null),L(y.CollectionsHero,{title:"Il patrimonio e le collezioni del FAI",breadCrumbs:r,height:"extra-small"}),L(y.Background,{color:"grey"},L(y.Wrapper,{size:"big"},L(y.FogliaEvento,null,L(v.c,null,L(y.Padder,{size:"medium"},L(y.Wrapper,{size:"small"},L(y.CollectionsTitleAndCTA,{title:o}),c&&L(B,{src:c}),L(y.CollectionsReadMoreText,{text:s,limit:"150"}))))),L(H,null,L(y.CollectionsFilters,{filters:h,facets:d,appliedFilters:b,handleSearchChange:this.handleSearchChange,handleSearchSubmit:this.search,handleSearchReset:this.handleSearchReset,handlerClearFilter:this.handlerClearFilter}),L(W,null,"Il catalogo online \xe8 in costante implementazione e verr\xe0 periodicamente aggiornato, revisionato e arricchito.",L("br",null),L("br",null),"The catalogue is continually being compiled, and as such it will be periodically updated, revised and expanded.")),!u||!u.length&&L(y.Padder,{size:"medium",align:"center"},L("div",{style:{textAlign:"center"}},"Nessun risultato trovato")),u&&u.length>0&&L(p.a.Fragment,null,L(y.CollectionsListOfCards,{wrap:"big",cards:j(u,a),CardComponent:y.CollectionsListCard,vertical:!0}),this.canLoadMorep&&!l&&L(y.Padder,{size:"small"},L(y.Button,{onClick:this.handlePaginationChange,children:f?"Carico...":"Mostra altri",centered:!0}))))),L(y.FasciaNewsletterApp,null),L(y.FasciaSupporto,null))}}],[{key:"getInitialProps",value:function(){var e=Object(n.a)(R().m((function e(t){var r,n,i,o,c,s,u,l,f;return R().w((function(e){for(;;)switch(e.n){case 0:return r=t.req,n=t.res,i=t.query,o=Object(x.b)(r),c=i.id,s=Object(a.a)(i,M),e.n=1,D(o,c,Object(Y.a)(s),null===i||void 0===i?void 0:i.q);case 1:return u=e.v,n.setHeader("Set-Cookie",Object(x.a)(u.token)),l={url:"".concat(q,"/collezioni/").concat(c),title:u.title,de
1scription:u.shortDescription,ogImage:u.thumbnailUrl},f=[["/","Home"],["/collezioni","Collezioni"],["/collezioni/".concat(u.id),"".concat(u.title)]],e.a(2,A({seo:l,breadcrumbs:f},u))}}),e)})));return function(t){return e.apply(this,arguments)}}()}])}(f.Component),B=h.d.img.withConfig({displayName:"collezione__Image",componentId:"sc-56k8s4-0"})(["margin-top:40px;"]),H=h.d.div.withConfig({displayName:"collezione__SideFilters",componentId:"sc-56k8s4-1"})(["flex-shrink:0;flex-basis:30%;background:#f2f2f2;padding:1rem;"]),W=h.d.p.withConfig({displayName:"collezione__FiltersDescription",componentId:"sc-56k8s4-2"})(["margin-top:40px;"]),K=Object(S.b)(U);t.default=K},Xhfp:function(e,t,r){"use strict";var n=r("QsI/"),i=r("r4FT"),a=r("0D0S");function o(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function a(r,n,i,a){var o=n&&n.prototype instanceof u?n:u,l=Object.create(o.prototype);return c(l,"_invoke",function(r,n,i){var a,o,c,u=0,l=i||[],f=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return a=t,o=0,c=e,p.n=r,s}};function h(r,n){for(o=r,c=n,t=0;!f&&u&&!i&&t<l.length;t++){var i,a=l[t],h=p.p,d=a[2];r>3?(i=d===n)&&(c=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=e):a[0]<=h&&((i=r<2&&h<a[1])?(o=0,p.v=n,p.n=a[1]):h<d&&(i=r<3||a[0]>n||n>d)&&(a[4]=r,a[5]=n,p.n=d,o=0))}if(i||r>1)return s;throw f=!0,n}return function(i,l,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),o=l,c=d;(t=o<2?e:c)||!f;){a||(o?o<3?(o>1&&(p.n=-1),h(o,c)):p.n=c:p.v=c);try{if(u=2,a){if(o||(i="next"),t=a[i]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,o<2&&(o=0)}else 1===o&&(t=a.return)&&t.call(a),o<2&&(c=TypeError("The iterator does not provide a '"+i+"' method"),o=1);a=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==s)break}catch(t){a=e,o=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,i,a),!0),l}var s={};function u(){}function l(){}function f(){}t=Object.getPrototypeOf;var p=[][n]?t(t([][n]())):(c(t={},n,(function(){return this})),t),h=f.prototype=u.prototype=Object.create(p);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,i,"GeneratorFunction")),e.prototype=Object.create(h),e}return l.prototype=f,c(h,"constructor",f),c(f,"constructor",l),l.displayName="GeneratorFunction",c(f,i,"GeneratorFunction"),c(h),c(h,i,"Generator"),c(h,n,(function(){return this})),c(h,"toString",(function(){return"[object Generator]"})),(o=function(){return{w:a,m:d}})()}function c(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}(c=function(e,t,r,n){function a(t,r){c(e,t,(function(e){return this._invoke(t,r,e)}))}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))})(e,t,r,n)}var s=r.n(a)()().publicRuntimeConfig,u=s.COMWORK_URL,l=s.COMWORK_CLIENT_ID,f=s.COMWORK_CLIENT_SECRET,p=s.COMWORK_APP_ID,h="".concat(u,"/oauth/token?grant_type=client_credentials&scope=read&client_id=").concat(l,"&client_secret=").concat(f),d=function(){var e=Object(n.a)(o().m((function e(){var t;return o().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,i.a.post(h);case 1:return t=e.v,e.a(2,t.data.access_token)}}),e)})));return function(){return e.apply(this,arguments)}}(),b=function(){var e=Object(n.a)(o().m((function e(t,r,n){var a;return o().w((function(e){for(;;)switch(e.n){case 0:if(r){e.n=2;break}return e.n=1,d();case 1:r=e.v;case 2:return t+="?appid=".concat(p).concat(n?"&"+n:""),e.n=3,i.a.get(t,{headers:{Authorization:"Bearer ".concat(r)}}).then((function(e){return e.data})).catch((function(){return!1}));case 3:if(a=e.v){e.n=6;break}return e.n=4,d();case 4:return r=e.v,e.n=5,i.a.get(t,{headers:{Authorization:"Bearer ".concat(r)}}).then((function(e){return e.data}));case 5:a=e.v;case 6:return e.a(2,{token:r,response:a})}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}();t.a=b},fwig:function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return a}));var n=r("s9SB"),i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e.headers.cookie)return t;var r=Object(n.parse)(e.headers.cookie);return r.comworkToken}
1,a=function(e){return Object(n.serialize)("comworkToken",String(e,{httpOnly:!0,maxAge:2592e3,path:"/",sameSite:"Strict",secure:!0}))}},"s+D9":function(e,t,r){"use strict";t.a=function(e){if(e.date&&e.date.length){var t,r,n=e.date[0];if("SINGLE"===n.periodMode){if(n.earliestYear)return"".concat(n.earliestYear.day?n.earliestYear.day:"").concat(n.earliestYear.month?n.earliestYear.day?"/"+n.earliestYear.month:" ".concat(n.earliestYear.month):"").concat(n.earliestYear.year?n.earliestYear.month?"/"+n.earliestYear.year:" ".concat(n.earliestYear.year):"").concat(n.earliestYear.qualifier?" "+n.earliestYear.qualifier:"");var i;if(n.earliestCentury)return"".concat(null!==(i=n.earliestCentury.century)&&void 0!==i?i:"")}if("TIMESPAN"===n.periodMode)if(n.earliestYear&&n.latestYear)return"".concat(n.earliestYear.day?" "+n.earliestYear.day:"").concat(n.earliestYear.month?" "+n.earliestYear.month:"").concat(null!==(t=n.earliestYear.year)&&void 0!==t?t:"").concat(n.earliestYear.qualifier?" "+n.earliestYear.qualifier:""," - ").concat(n.latestYear.day?" "+n.latestYear.day:"").concat(n.latestYear.month?" "+n.latestYear.month:"").concat(null!==(r=n.latestYear.year)&&void 0!==r?r:"").concat(n.latestYear.qualifier?" "+n.latestYear.qualifier:"")}}},s9SB:function(e,t,r){"use strict";t.parse=function(e,t){if("string"!==typeof e)throw new TypeError("argument str must be a string");var r={},n=(t||{}).decode||a,i=0;for(;i<e.length;){var o=e.indexOf("=",i);if(-1===o)break;var s=e.indexOf(";",i);if(-1===s)s=e.length;else if(s<o){i=e.lastIndexOf(";",o-1)+1;continue}var u=e.slice(i,o).trim();if(void 0===r[u]){var l=e.slice(o+1,s).trim();34===l.charCodeAt(0)&&(l=l.slice(1,-1)),r[u]=c(l,n)}i=s+1}return r},t.serialize=function(e,t,r){var a=r||{},c=a.encode||o;if("function"!==typeof c)throw new TypeError("option encode is invalid");if(!i.test(e))throw new TypeError("argument name is invalid");var s=c(t);if(s&&!i.test(s))throw new TypeError("argument val is invalid");var u=e+"="+s;if(null!=a.maxAge){var l=a.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(l)}if(a.domain){if(!i.test(a.domain))throw new TypeError("option domain is invalid");u+="; Domain="+a.domain}if(a.path){if(!i.test(a.path))throw new TypeError("option path is invalid");u+="; Path="+a.path}if(a.expires){var f=a.expires;if(!function(e){return"[object Date]"===n.call(e)||e instanceof Date}(f)||isNaN(f.valueOf()))throw new TypeError("option expires is invali
1d");u+="; Expires="+f.toUTCString()}a.httpOnly&&(u+="; HttpOnly");a.secure&&(u+="; Secure");if(a.priority){switch("string"===typeof a.priority?a.priority.toLowerCase():a.priority){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(a.sameSite){switch("string"===typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return u};var n=Object.prototype.toString,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function o(e){return encodeURIComponent(e)}function c(e,t){try{return t(e)}catch(r){return e}}}},[["2ntw",1,0,5,7,3,2,6,4,8,9,10,11,13,12,15,14,16]]]);
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.