PageSourceSearch

https://pitchfork.com/verso/static/2130.11240ad902f7c6e4d730.js

js pitchfork.com collected 2026-09-24 08:24:28 UTC 12,978 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkverso=globalThis.webpackChunkverso||[]).push([[2130],{45966(e,r,t){t.d(r,{p:()=>n});const n=(e,r)=>e&&e.name?{...e,name:r&&r[e.name]?r[e.name]:e.name}:null},81478(e,r,t){t.d(r,{A:()=>a});var n=t(94177);function a(e,r){return Object.keys(e).reduce((t,a)=>(t[a]={width:e[a].w,height:e[a].h,url:(0,n.JP)(r,e[a])},t),{})}},12782(e,r,t){function n(e,r){return fetch(`${r}?${e}`).then(e=>e.json()).then(e=>e.data).catch(e=>{})}t.d(r,{A:()=>n})},33186(e,r,t){t.d(r,{Ay:()=>g,no:()=>u});var n=t(58156),a=t.n(n),i=t(62193),c=t.n(i);const o={"recent-work-river":"recentWorkTeaser","tag-river":"tagTeaser","bundle-rubric":"bundleTeaser"},l={},u=({channelMap:e={},channels:r=[],contentType:t="",featureFlags:n={},sections:a=[],primaryTag:i,rubric:c="",shouldReturnUrl:u="bundle-rubric"!==t,useTrailingSlashRubric:s=!1,locationRubric:g={},channelRubric:h={}})=>{const p=u,m=t?o[t]:"contentTeaser",d=i&&"Sponsor Content"===i.tag?"tag-only":n[m],{rubricParentSlug:y,rubricPrimaryChannelSlug:b,usePrimaryCategoryAsRubric:f}=n;switch(d){case"rubric-or-channel":return l.getRubric(c)||l.getCategory(r,e,y,s,!1,p);case"rubric-or-channel-or-tag":return i?{name:i.tag,url:p?i.url:void 0}:l.getRubric(c)||l.getCategory(r,e,y,s,!1,p);case"rubric-or-channel-or-section":return l.rubricOrChannelOrSection({rubric:c,channels:r,channelMap:e,rubricParentSlug:y,useTrailingSlashRubric:s,sections:a,hasUrl:p});case"rubric-or-channel-or-section-no-url":return l.rubricOrChannelOrSection({rubric:c,channels:r,channelMap:e,rubricParentSlug:y,useTrailingSlashRubric:s,sections:a,hasUrl:!1});case"channel-only":return l.getCategory(r,e,y,s,f,p);case"channel-only-no-url":return l.getCategory(r,e,y,s,!1,!1);case"section-only":return l.getCategory(a,{},y,s,!1,p);case"tag-or-channel":return i?{name:i.tag,url:p?i.url:void 0}:l.getCategory(r,e,y,s,f,p);case"tag-only":if(!i)return;return{name:i.tag,url:p?i.url:void 0};case"location-or-channel-or-rubric":return l.locationOrChannelRubric(g,h,c,r,e,y,s,!1,p);case"location-or-channel-or-rubric-no-url":return l.locationOrChannelRubric(g,h,c,r,e,y,s,!1);case"rubric-or-channel-or-primaryChannelRelative":return l.rubricOrPrimaryChannelRelativeRubric({rubric:c,channels:r,channelMap:e,rubricPrimaryChannelSlug:b,useTrailingSlashRubric:s,hasUrl:p});default:return c?{name:c}:void 0}};function s(e,r){return r?`${e}/`:e}l.rubricOrPrimaryChannelRelativeRubric=({rubric:e,channels:r,channelMap:t,rubricPrimaryChannelSlug:n,useTrailingSlashRubric:a,hasUrl:i})=>l.checkForPrimaryChannelRelativeRubric(n,r)?l.getPrimaryChannelRelativeRubric(r,n,a,i):l.getRubric(e)||l.getCategory(r,t,"",a,!1,i),l.rubricOrChannelOrSection=({rubric:e,channels:r,channelMap:t,rubricParentSlug:n,useTrailingSlashRubric:a,sections:i,hasUrl:c})=>l.getRubric(e)||l.getCategory(r,t,n,a,!1,c)||l.getCategory(i,{},n,a,!1,c),l.locationOrChannelRubric=(e,r,t,n,i,o,u,s=!0)=>c()(e)||""===a()(e,"name","")?c()(r)||""===a()(r,"name","")?l.getRubric(t)||l.getCategory(n,i,o,u,!1,s):r:e,l.getCategory=(e=[],r={},t="",n=!1,a=!1,i=!0)=>{if(0===e.length)return;const c=a?l.getPrimaryCategory(e):l.getDeepestCategory(e),o=l.getCategoryName(c);if(i){return{name:o,url:l.getUrl(r,c,t,n)}}return{name:o,url:void 0}},l.getPrimaryChannelRelativeRubric=(e=[],r="",t=!1,n=!0)=>{const a=l.getPrimaryCategory(e),i=l.getPrimaryCategory(a.hierarchy),c=i.slug?`/${r}/${i.slug}`:"",o=t&&c?`${c}/`:c;return{name:l.getCategoryName(i),url:n?o:void 0}},l.getCategoryName=(e={})=>a()(e,"name")||a()(e,"fields.name")||"",l.getCategorySlug=(e={})=>(r={})=>{const t=a()(r,"slug",a()(r,"fields.slug"));return a()(e,t,t)},l.getDeepestCategory=(e=[{}])=>{if(e[0]?.hierarchy){const[r,...t]=e;return t.reduce((e,r)=>{const t=e.hierarchy.map(e=>e.slug).reverse().join("/");return`${r.hierarchy.map(e=>e.slug).reverse().join("/")}/`.startsWith(`${t}/`)?r:e},r)}return e.reduce((e,r)=>r.parent&&r.parent.slug===e.slug?r:e)},l.getPrimaryCategory=(e=[{}])=>e[0]||{},l.checkForPrimaryChannelRelativeRubric=(e,r=[{}])=>{const t=l.getPrimaryCategory(r),n=t.hierarchy?t.hierarchy:[],a=n.length-2,i=a>=0?n[a].slug:"";return a>=0&&i===e},l.getRubric=e=>e?{name:e}:void 0,l.getUrl=(e={},r={},t="",n=!1)=>{const i=l.getCategorySlug(e);if(r.hierarchy&&r.hierarchy.length){const e=r.hierarchy.reduce((e,r,t)=>(e.push(0===t?i(r):r.slug),e),[]).slice(0,-1).reverse().join("/");return s(t?`/${t}/${e}`:`/${e}`,n)}let c=t||i(a()(r,"parent")||a()(r,"_embedded.hierarchy.1.fields")||a()(r,"hierarchy.1.fields")||a()(r,"parentCategory"))||a()(r,"hierarchy[1]");"object"==typeof c&&(c=i(c));const o=i(r),u=c&&c!==o&&"channels"!==c&&"sections"!==c;if(u||o)return s(u?`/${c}/${o}`:`/${o}
1`,n)};const g={getRubricRepresentation:u,_internals:l}},55866(e,r,t){t.d(r,{O3:()=>a,U:()=>n,gJ:()=>i,uI:()=>c});const n=(e,r,t)=>{let n;if(e&&e.length){n=[{name:e.reduce((r,t,n)=>r+(e.length>2&&n>0?", ":"")+(1===n&&2===e.length?" ":"")+(n===e.length-1&&e.length>1?"and ":"")+t,"")}]}else n=r&&t&&r.includes("video")?[{name:t}]:[];return n},a=(e,r)=>{const t=/(\d+):(\d+)/i,n={};if(!e)return n;const a=(e,r)=>{const n={},a=e.aspectRatio.match(t);if(!a)return n;const i=parseInt(a[1],10),c=parseInt(a[2],10);return i&&c&&(n.h="width"===r?Math.floor(e.width*c/i):e.height,n.w="height"===r?Math.floor(e.height*i/c):e.width),n};return Object.keys(e).forEach(t=>{n[t]={},e[t].height&&e[t].width?(n[t].h=e[t].height,n[t].w=e[t].width):e[t].height&&e[t].aspectRatio?n[t]=a(e[t],"height"):e[t].width&&e[t].aspectRatio?n[t]=a(e[t],"width"):e[t].aspectRatio&&r&&(n[t].w=e[t].customWidth,n[t]=a({...e[t],width:r},"width"))}),n},i=(e,r=!0)=>{if(!e)return"";const t=e.replace(/\\([+!]){1}/gim,"$1").replace(/^\\/,"").replace(/\*\*(.*)\*\*/gim,"<strong>$1</strong>").replace(/_(.*)_/gim,"<em>$1</em>").replace(/\*(.*)\*/gim,"<em>$1</em>").replace(/~~(.*)~~/gim,"<del>$1</del>").replace(/~(.*)~/gim,"<sub>$1</sub>").replace(/\^(.*)\^/gim,"<sup>$1</sup>").trim();return r?`<p>${t}</p>`:t},c=(e=[])=>e.map(e=>{const[,,r]=e.split("/");return{slug:r}})},59749(e,r,t){t.d(r,{sA:()=>F,h5:()=>L});var n=t(58156),a=t.n(n),i=t(96540),c=t(18106),o=t(47186),l=t(12782),u=t(44383),s=t.n(u),g=t(90128),h=t.n(g),p=t(25888),m=t.n(p),d=t(52009),y=t(55866),b=t(81478),f=t(14792),R=t.n(f),C=t(40391);const v=new Map([["ACTIVE_FITNESS","Active Fitness"],["BEACH","Beach"],["CINEMA","Cinema"],["COMEDY","Comedy"],["CONCERT","Concert"],["GALLERY","Gallery"],["FARM","Farm"],["LANDMARK","Landmark"],["MINDFULNESS","Mindfulness"],["MOUNTAIN","Mountain"],["MUSEUM","Museum"],["NATIONAL_PARK","National Park"],["PARK_GARDEN","Parks & Gardens"],["SPA","Spa"],["SPORTS","Sports"],["THEATER","Theater"],["TOUR","Tour"],["WELLNESS","Wellness"],["RETREAT","Retreat"],["YOGA","Yoga"]]),w=new Map([["FoodHall","Food Hall"],["CocktailBar","Cocktail Bar"],["CommonBar","Bar"],["CoffeeTeaBar","Coffee/Tea Bar"],["DepartmentStore","Department Store"],["SpecialtyShop","Specialty"],["StreetFood","Street Food"],["RooftopBar","Rooftop Bar"],["HotelBar","Hotel Bar"],["DiveBar","Dive Bar"],["JuiceBar","Juice Bar"],["SportsBar","Sports Bar"]]);function S(e,r,t,n){if(r)return r;if(C.O.includes(e))switch(e){case"restaurant":case"bar":case"shop":case"spa":return{name:w.get(t?.subtype)||t?.subtype};case"activity":return{name:v.get(t?.secondaryType)||"activity"};default:return}if("review"===e&&!r&&t?.genre?.length){return a()(n,"appConfig.channel.features.useMultipleGenre",!1)?t.genre:{name:t?.genre[0].name,url:t?.genre[0].url}}if("contributor"===e&&!r){return{name:(t?.contextualDek||t?.channelName||"").replace(/\w+/g,R())}}return e&&e.includes("video")?{name:"Video"}:void 0}var T=t(33186),I=t(60595),P=t(97906);const k=(e="")=>{const[r,t]=e.split(/([?#])/),n=r.endsWith("/")?r:`${r}/`;return t?n+t+e.split(t)[1]:n};var A=t(65127);function O(e,r){try{const t=new URL(e),n=t.pathname.split("/"),a=n.pop().split(".");return a.length>1&&a.pop(),a.push(r),n.push(a.join(".")),t.pathname=n.join("/"),t.href}catch{return e}}function $(e,r,t,n){let i;if(e&&r){let c,o;"clip"===t?(o=function(e,r){return Object.keys(e).reduce((t,n)=>{const a=e[n],i=a.width||120,c=i;let o;try{o=m().modify(r,{...a,width:i,height:c,aspectRatio:"1:1"})}catch{o=r}const l={width:i,height:c,url:O(o,"mp4")};return t[n]=[l],t},{})}(r,e),c=Object.keys(r).reduce((t,n)=>{const a=s()(r[n],["aspectRatio","height","width"]);let i;try{i=m().modify(e,r[n])}catch{i=e}return t[n]={...a,url:O(i,"mp4")},t},{})):"cnevideo"===t?(c=(0,b.A)(r,e),o=(0,d.I)(c)):(c=function(e,r){return Object.keys(e).reduce((t,n)=>{const a=s()(e[n],["aspectRatio","height","width"]),i=(0,P.A)(a.width).map(t=>`${m().modify(r,{...e[n],width:t})} ${t}w`).join(", ");return t[n]={...a,url:m().modify(r,e[n]),srcset:i},t},{})}(r,e.replace(",h_85","")),o=(0,d.I)(c)),i={altText:a()(n,"thumbnailImage.altText",""),segmentedSources:o,sources:c},Object.keys(i).length>0&&(i.showImageWithoutLink=!0)}return i}function U(e=e=>e,r=null){return(t,n,i,c="recircList",o={},l=[],u=!1)=>{const{awards:s,authors:g,brand:p,copilotID:m,categories:d=[],dek:b,section:f,title:R,url:C,variationName:v,signageConfig:w={}}=t,P=function(e){return e.contentType?e.contentType.toLowerCase():e.metadata.contentType.toLowerCase()}(t),O=function(e,r){const{image_url:t,ledeImageURL:n}=e,{shouldUsePromoImageInRecommendations:a}=r;return!a&&n?n:t}(t,o),U=function(e,r){return function(e){return e?.includes("clips")||e?.includes(".mp4")}(r)?"clip":function(e,r){return("video"===e||"cnevideo"===e)&&r?.includes("image/upload")}(e,r)?"cnevideo":e}(P,O),M=v?a()(n,`${c}.${v}`):a()(n,c),N=$(O,"cnevideo"===U?(0,y.O3)(M):M,U,t),E=function(e,r){if(!a()(r,"shouldExtractRecircRubricFromCategories",!1))return{};const{name:t,url:n}=(0,T.no)({channels:e,featureFlags:r})||{};return{name:t,url:n}}(l,o),B=Array.isArray(d)?d.filter(e=>e.indexOf("functional-tags")>-1):[],D=(0,y.uI)(B),{signageBy:L,signageMapper:F}=w;let j;"FunctionalTags"===L&&(j=D);const _=(0,I.b)(L,F,j),x=u&&function(e=[]){return e.some(e=>!!e.startsWith("functional-tags/")&&"paywall-sample-for-0-days"===e.split("/")[1])}(d),W=i?k(t.contentURL):t.contentURL,H=(0,A.B)({url:i?k(C):C,contentURL:W,trackingURL:t.trackingURL},o.enableRecircTrackingUrls);return{awards:s,brand:p,contributors:{author:{items:(0,y.U)(g,P,h()(p))}},contentType:"clip"===U?"clip":P,copilotID:m,dangerousHed:e.call(r,R),dangerousDek:e.call(r,b),image:N,rubric:S(P,{name:E.name||f,...E.url&&{url:E.url}}),signage:_,...H,shouldDisplaySubscribersOnlyBadge:x,contentURL:W}}}var M=t(56892),N=t(31170);async function E(e,r,t,n={},i={},c=!1,u={}){const{applicationID:s,categories:g,contentTypes:h,excludeCategories:p,language:m,numberOfDays:d,pageSize:b,renditions:f,strategy:R,variationName:C}=e,{content:v,page:w}=a()(window,"dataLayer[0]",{}),S={applicationID:s,brand:v&&v.brandSlug,url:w&&w.canonical,copilotId:v.contentId,...g?{"filter[category]":g}:{},...p?{"exclude[category]":p}:{},...d?{"filter[numberOfDays]":d}:{},...R?{"filter[strategy]":R.toUpperCase()}:{},...m?{"filter[language]":m}:{},"page[size]":b};if(!S.applicationID||!S.brand||!S.url)return[];if(r){const e=(0,M.getCookie)("CN_xid");e&&(S.xid=e)}const T=(0,o.stringify)(S),I=h?.toUpperCase().split(","),P=h?I.reduce((e,r)=>`${e}&filter%5BcontentType%5D=${r}`,T):T;if(!u.recommendationsApiUrl)return[];try{const e=await(0,l.A)(P,u.recommendationsApiUrl),r=await e.json();return r&&r.length?r.map(e=>{const r={...e,title:(0,y.gJ)(e.title),dek:(0,y.gJ)(e.dek),variationName:C,signageConfig:i};return U()(r,f,c,t,n,e.channels)}):(N.Ay.emitUniqueSparrowTrackingEvent("variations_recommendation","failed-fallback",{_v:b,dim1:`${s}_${R}`,dim2:S,dim3:R,dim6:C}),[])}catch(e){return[]}}var B=t(45966);const D=i.createContext(),L=e=>{let r=!1,t=!1;return n=>{const[o,l]=i.useState([]),[u,s]=i.useState([]),g=a()(n,"featureFlags")||{},h=a()(n,"config.recommendations",{}),p=a()(n,"useTrailingSlash",!1),m=a()(n,"channelMap")||{},d=a()(n,"lang",c.xN),y=a()(n,"featureFlags.personalizeRecircMostPopular",!1),b=a()(n,"featureFlags.personalizeRecircInlineRecirc",!1),f={RecircMostPopular:{items:o,onViewportIntersection:async e=>{if(0===o.length&&!r){r=!0,e.language=d;const t=await E(e,y,"mostPopular",g,{},e.useTrailingSlash,h);l(t.map(e=>({...e,rubric:(0,B.p)(e.rubric,m)}))),r=!1}}},InlineRecirc:{items:u,onViewportIntersection:async e=>{if(0===u.length&&!t){t=!0,e.language=d;const r=await E(e,b,"inlineRecirc",g,{},p,h);s(r.map(e=>({...e,rubric:(0,B.p)(e.rubric,m)}))),t=!1}}}};return i.createElement(D.Provider,{value:f},i.createElement(e,{...n}))}},F=e=>r=>i.createElement(D.Consumer,null,t=>{let n,c;return e.displayName.includes("RecircMostPopular")&&({items:n=[],onViewportIntersection:c=()=>{}}=a()(t,"RecircMostPopular",{})),e.displayName.includes("InlineRecirc")&&({items:n=[],onViewportIntersection:c=()=>{}}=a()(t,"InlineRecirc",{})),i.createElement(e,{...r,items:n,onIntersectionViewportCallback:c})})},60595(e,r,t){function n(e="",r={},t=[]){return"FunctionalTags"===e?function(e,r){const t=e?.filter(e=>r[e.slug])[0]?.slug;return t?r[t]:null}(t,r):null}t.d(r,{b:()=>n})}}]);

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.