(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[39921,51879,72430,83634,73744,35303,8575,44722,69428],{361600:e=>{var t,i,n,a,r,o,s,l,d={fragment:{argumentDefinitions:[t={defaultValue:null,kind:"LocalArgument",name:"inviteCode"},i={defaultValue:null,kind:"LocalArgument",name:"inviteType"},n={defaultValue:null,kind:"LocalArgument",name:"objectId"}],kind:"Fragment",metadata:null,name:"AllShareOptionsUtilityMutation",selections:[{alias:null,args:a=[{fields:[{kind:"Variable",name:"inviteCode",variableName:"inviteCode"},{kind:"Variable",name:"inviteType",variableName:"inviteType"},{kind:"Variable",name:"objectId",variableName:"objectId"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3InviteSentExternalMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[r={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[o={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"fromUserId",storageKey:null}],storageKey:null}],type:"V3InviteSentExternal",abstractKey:null},{kind:"InlineFragment",selections:[r,l={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null}],storageKey:null}],type:"InvalidParameters",abstractKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[i,t,n],kind:"Operation",name:"AllShareOptionsUtilityMutation",selections:[{alias:null,args:a,concreteType:null,kind:"LinkedField",name:"v3InviteSentExternalMutation",plural:!1,selections:[r,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[o,s,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],type:"V3InviteSentExternal",abstractKey:null},{kind:"InlineFragment",selections:[l],type:"InvalidParameters",abstractKey:null}],storageKey:null}]},params:{id:"1705ed8db84c79dc12b83cafd1757686fa888571bbecd699295d011693ddd4cf",metadata:{},name:"AllShareOptionsUtilityMutation",operationKind:"mutation",text:null}};d.hash="7e73aab163ac599c2451f08566f2eb15",e.exports=d},865107:e=>{var t,i,n,a,r={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"inviteType"},{defaultValue:null,kind:"LocalArgument",name:"objectId"}],kind:"Fragment",metadata:null,name:"AllShareOptionsUtility_CreateExternalInviteGraphQLQuery",selections:[{alias:null,args:i=[{kind:"Variable",name:"inviteType",variableName:"inviteType"},{kind:"Variable",name:"objectId",variableName:"objectId"}],concreteType:null,kind:"LinkedField",name:"v3InviteUserExternalQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={alias:null,args:null,concreteType:"InviteUserExternal",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"inviteCode",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"inviteUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null}],storageKey:null}],type:"V3InviteUserExternal",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"AllShareOptionsUtility_CreateExternalInviteGraphQLQuery",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3InviteUserExternalQuery",plural:!1,selections:[n,{kind:"InlineFragment",selections:[a],type:"V3InviteUserExternal",abstractKey:null}],storageKey:null}]},params:{id:"6312848b4bb08588587683a04a42e4d0333e2e986fcab0cef4ed200786d3f5d9",metadata:{},name:"AllShareOptionsUtility_CreateExternalInviteGraphQLQuery",operationKind:"query",text:null}};r.hash="bc8b32c56a4a58de585c9a05ae69bd9c",e.exports=r},7745:e=>{var t,i,n,a,r,o,s,l={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"invite_code"}],kind:"Fragment",metadata:null,name:"PinCardSharedHeaderQuery",selections:[{alias:null,args:i=[{kind:"Variable",name:"inviteCode",variableName:"invite_code"}],concreteType:null,kind:"LinkedField",name:"v3GetInviteCodeQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"sender",plural:!1,selections:[a={alias:"first_name",args:null,kind:"ScalarField",name:"firstName",storageKey:null},r={alias:"is_default_image",args:null,kind:"ScalarField",name:"isDefaultImage",storageKey:null},o={alias:"image_medium_url",args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null}],storageKey:null}],storageKey:null}],type:"InviteCodeResponse",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"PinCardSharedHeaderQuery",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3GetInviteCodeQuery",plural:!1,selections:[n,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"sender",plural:!1,selections:[a,r,o,s={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},s],storageKey:null}],type:"InviteCodeResponse",abstractKey:null}],storageKey:null}]},params:{id:"6ecc0f5ef5b300806765351890d4c30338f4cba0f2ed6262aebb971f8d13cedd",metadata:{},name:"PinCardSharedHeaderQuery",operationKind:"query",text:null}};l.hash="6113bb3593481961950c5053449014f3",e.exports=l},906587:e=>{var t,i,n={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinRecipe_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:'images(spec:"474x")'},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"diets",storageKey:null},{alias:null,args:null,concreteType:"CookTimes",kind:"LinkedField",name:"cookTimes",plural:!1,selections:[{alias:null,args:null,concreteType:"CookTime",kind:"LinkedField",name:"cook",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"m",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"h",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CookTime",kind:"LinkedField",name:"total",plural:!1,selections:t,storageKey:null}],storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,concreteType:"CategorizedIngredientsMetadata",kind:"LinkedField",name:"categorizedIngredients",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"category",storageKey:null},{alias:null,args:null,concreteType:"ParsedIngredientMetadata",kind:"LinkedField",name:"ingredients",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"amt",storageKey:null},i],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ServingsSummary",kind:"LinkedField",name:"servingsSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"summary",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};n.hash="72951c99039e6492a3eb8e9fcb5a22c3",e.exports=n},741316:e=>{var t,i,n,a,r,o,s,l,d,c,u,p,_,h,m,g,v,y,E={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PinRep_pin",selections:[{alias:null,args:null,kind:"ScalarField",name:"adMatchReason",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"altText",storageKey:null},{alias:null,args:null,concreteType:"Attribution",kind:"LinkedField",name:"attribution",plural:!1,selections:[{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[t={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[i={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"followedByMe",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isCollaborative",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"privacy",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"category",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"descriptionHtml",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"dominantColor",storageKey:null},{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[s={alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},t,l={alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:null},i,{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,concreteType:"ImageCrop",kind:"LinkedField",name:"imageCrop",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"maxY",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"minY",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{alias:"imageSpec_136x136",args:[{kind:"Literal",name:"spec",value:"136x136"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:d=[o,s,a,l],storageKey:'images(spec:"136x136")'},{alias:"imageSpec_170x",args:[{kind:"Literal",name:"spec",value:"170x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:d,storageKey:'images(spec:"170x")'},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:d,storageKey:'images(spec:"236x")'},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:d,storageKey:'images(spec:"474x")'},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:d,storageKey:'images(spec:"736x")'},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:d,storageKey:'images(spec:"orig")'},{alias:null,args:null,kind:"ScalarField",name:"isDownstreamPromotion",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForPdp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isEligibleForWebCloseup",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isOosProduct",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPromoted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isStaleProduct",storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:[i,c={alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"imageLargeUrl",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"imageMediumUrl",storageKey:null},_={alias:null,args:null,kind:"ScalarField",name:"imageSmallUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPrimaryWebsiteVerified",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:m=[i,c,u,p,_,h],storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"pinnedToBoard",plural:!1,selections:[i],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[i,{alias:null,args:null,kind:"ScalarField",name:"explicitlyFollowedByMe",storageKey:null},c,u,p,_,h],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"promoter",plural:!1,selections:m,storageKey:null},{alias:null,args:null,concreteType:"ReactionCountModel",kind:"LinkedField",name:"reactionCountsData",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"reactionType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reactionCount",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[r,g={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},v={alias:null,args:null,concreteType:"RichPinProductMetadata",kind:"LinkedField",name:"products",plural:!0,selections:[n,{alias:null,args:null,concreteType:"OfferSummary",kind:"LinkedField",name:"offerSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"maxPrice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"minPrice",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"price",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"standardPrice",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RecipeMetadata",kind:"LinkedField",name:"recipe",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fromAggregatedData",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,concreteType:"AggregateRatingMetadata",kind:"LinkedField",name:"aggregateRating",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"bestRating",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ratingValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reviewCount",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayCookTime",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},v,{alias:null,args:null,kind:"ScalarField",name:"siteName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"typeName",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seoUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shoppingFlags",storageKey:null},{alias:null,args:null,concreteType:"Interest",kind:"LinkedField",name:"sourceInterest",plural:!1,selections:[i,n,{alias:null,args:null,kind:"ScalarField",name:"urlName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Sponsorship",kind:"LinkedField",name:"sponsorship",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"creator",plural:!1,selections:m,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"sponsor",plural:!1,selections:m,storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"hasProductPins",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isDeleted",storageKey:null},{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"pinTitle",storageKey:null}],storageKey:null}],storageKey:null},g,{alias:null,args:null,kind:"ScalarField",name:"trackedLink",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"trackingParams",storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"videos",plural:!1,selections:[i,{alias:null,args:null,concreteType:"VideoList",kind:"LinkedField",name:"videoList",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"vHLSV4",plural:!1,selections:y=[{alias:null,args:null,kind:"ScalarField",name:"duration",storageKey:null},s,l,a],storageKey:null},{alias:null,args:null,concreteType:"VideoDetail",kind:"LinkedField",name:"v720P",plural:!1,selections:y,storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null};E.hash="e58a531593f32e7b3bf5c150367900af",e.exports=E},276667:e=>{var t,i,n,a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"SeeMoreButton_pin",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"board",plural:!1,selections:[t={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"privacy",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinDataView",kind:"LinkedField",name:"richMetadata",plural:!1,selections:[i={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RichPinGridData",kind:"LinkedField",name:"richSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"storyPinDataId",storageKey:null},{alias:null,args:null,concreteType:"StoryPinData",kind:"LinkedField",name:"storyPinData",plural:!1,selections:[{alias:null,args:null,concreteType:"StoryPinMetadataField",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"pinTitle",storageKey:null}],storageKey:null}],storageKey:null},i,{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},n,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSmallUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageLargeUrl",storageKey:null}],storageKey:null},t,{args:null,kind:"FragmentSpread",name:"VaseSection_pin"}],type:"Pin",abstractKey:null};a.hash="64effb4f1e63deaf1d53b77187d996de",e.exports=a},12617:e=>{var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"UnauthDesktopContextMenu_pin",selections:[{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:t,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"originPinner",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null},{alias:null,args:null,concreteType:"SeoBreadcrumbs",kind:"LinkedField",name:"seoBreadcrumbs",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"usePinImagesFragment_pin"}],type:"Pin",abstractKey:null};i.hash="6cc486603fe4bb19b18741c21346a49b",e.exports=i},167074:e=>{var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"UnauthMobileContextMenu_pin",selections:[{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:t,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"originPinner",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:t,storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null},{alias:null,args:null,concreteType:"SeoBreadcrumbs",kind:"LinkedField",name:"seoBreadcrumbs",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},{args:null,kind:"FragmentSpread",name:"usePinImagesFragment_pin"}],type:"Pin",abstractKey:null};i.hash="74f28c48f3a5ddb4a53f101389981c63",e.exports=i},85934:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VaseAnnotations_pin",selections:[{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"useAnnotationsWithLinksFragment_pin"}],type:"Pin",abstractKey:null,hash:"594237c2ea6ccfb8bbc0e3e8c62cac9f"};e.exports=t},877821:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VaseSection_pin",selections:[{args:null,kind:"FragmentSpread",name:"VaseAnnotations_pin"}],type:"Pin",abstractKey:null,hash:"5645b1c5850647c98e4d2fefbb484bf4"};e.exports=t},569772:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useAnnotationsWithLinksFragment_pin",selections:[{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,concreteType:"AnnotationsWithLinks",kind:"LinkedField",name:"annotationsWithLinksArray",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}],storageKey:null}],type:"Pin",abstractKey:null,hash:"35075da6e1f4b526ac4314727015c44d"};e.exports=t},96795:e=>{var t,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"usePinImagesFragment_pin",selections:[{alias:"imageSpec_60x60",args:[{kind:"Literal",name:"spec",value:"60x60"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t=[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:'images(spec:"60x60")'},{alias:"imageSpec_136x136",args:[{kind:"Literal",name:"spec",value:"136x136"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"136x136")'},{alias:"imageSpec_170x",args:[{kind:"Literal",name:"spec",value:"170x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"170x")'},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"236x")'},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"474x")'},{alias:"imageSpec_564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"564x")'},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"736x")'},{alias:"imageSpec_600x315",args:[{kind:"Literal",name:"spec",value:"600x315"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"600x315")'},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:t,storageKey:'images(spec:"orig")'}],type:"Pin",abstractKey:null};i.hash="8dd4c9c753d2a67c0606dfff23b820e9",e.exports=i},110767:e=>{var t,i,n,a,r,o,s={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"pinId"}],kind:"Fragment",metadata:null,name:"useUnauthContextMenuQuery",selections:[{alias:null,args:i=[{kind:"Variable",name:"pin",variableName:"pinId"}],concreteType:null,kind:"LinkedField",name:"v3GetPinQuery",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"data",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"UnauthDesktopContextMenu_pin"},{args:null,kind:"FragmentSpread",name:"UnauthMobileContextMenu_pin"}],storageKey:null}],type:"V3GetPin",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"useUnauthContextMenuQuery",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3GetPinQuery",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Pin",kind:"LinkedField",name:"data",plural:!1,selections:[{alias:null,args:null,concreteType:"Embed",kind:"LinkedField",name:"embed",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"src",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"nativeCreator",plural:!1,selections:a=[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Domain",kind:"LinkedField",name:"linkDomain",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"officialUser",plural:!1,selections:a,storageKey:null},n],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"originPinner",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"pinner",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"PinJoin",kind:"LinkedField",name:"pinJoin",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"visualAnnotation",storageKey:null},{alias:null,args:null,concreteType:"SeoBreadcrumbs",kind:"LinkedField",name:"seoBreadcrumbs",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null}],storageKey:null},{alias:"imageSpec_60x60",args:[{kind:"Literal",name:"spec",value:"60x60"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o=[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},r,{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:'images(spec:"60x60")'},{alias:"imageSpec_136x136",args:[{kind:"Literal",name:"spec",value:"136x136"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"136x136")'},{alias:"imageSpec_170x",args:[{kind:"Literal",name:"spec",value:"170x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"170x")'},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"236x")'},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"474x")'},{alias:"imageSpec_564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"564x")'},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"736x")'},{alias:"imageSpec_600x315",args:[{kind:"Literal",name:"spec",value:"600x315"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"600x315")'},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:o,storageKey:'images(spec:"orig")'},{alias:null,args:null,kind:"ScalarField",name:"gridTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"closeupUnifiedDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageSignature",storageKey:null},n],storageKey:null}],type:"V3GetPin",abstractKey:null}],storageKey:null}]},params:{id:"a3c7af73694bf4bca337151ae03a4ab0cd268d45aad7d6a29c9cab3ffedebaa3",metadata:{},name:"useUnauthContextMenuQuery",operationKind:"query",text:null}};s.hash="28d48aeed76d97d5b2fc59af2e75669f",e.exports=s},618552:(e,t,i)=>{var n=i(610852)(i(555639),"DataView");e.exports=n},301989:(e,t,i)=>{var n=i(751789),a=i(780401),r=i(657667),o=i(521327),s=i(281866);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=a,l.prototype.get=r,l.prototype.has=o,l.prototype.set=s,e.exports=l},738407:(e,t,i)=>{var n=i(327040),a=i(514125),r=i(882117),o=i(567518),s=i(654705);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=a,l.prototype.get=r,l.prototype.has=o,l.prototype.set=s,e.exports=l},357071:(e,t,i)=>{var n=i(610852)(i(555639),"Map");e.exports=n},883369:(e,t,i)=>{var n=i(924785),a=i(611285),r=i(396e3),o=i(349916),s=i(195265);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=a,l.prototype.get=r,l.prototype.has=o,l.prototype.set=s,e.exports=l},853818:(e,t,i)=>{var n=i(610852)(i(555639),"Promise");e.exports=n},458525:(e,t,i)=>{var n=i(610852)(i(555639),"Set");e.exports=n},288668:(e,t,i)=>{var n=i(883369),a=i(90619),r=i(572385);function o(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new n;++t<i;)this.add(e[t])}o.prototype.add=o.prototype.push=a,o.prototype.has=r,e.exports=o},646384:(e,t,i)=>{var n=i(738407),a=i(737465),r=i(963779),o=i(267599),s=i(744758),l=i(234309);function d(e){var t=this.__data__=new n(e);this.size=t.size}d.prototype.clear=a,d.prototype.delete=r,d.prototype.get=o,d.prototype.has=s,d.prototype.set=l,e.exports=d},611149:(e,t,i)=>{var n=i(555639).Uint8Array;e.exports=n},70577:(e,t,i)=>{var n=i(610852)(i(555639),"WeakMap");e.exports=n},896874:e=>{e.exports=function(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}},477412:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e}},234963:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length,a=0,r=[];++i<n;){var o=e[i];t(o,i,e)&&(r[a++]=o)}return r}},14636:(e,t,i)=>{var n=i(422545),a=i(135694),r=i(701469),o=i(644144),s=i(565776),l=i(936719),d=Object.prototype.hasOwnProperty;e.exports=function(e,t){var i=r(e),c=!i&&a(e),u=!i&&!c&&o(e),p=!i&&!c&&!u&&l(e),_=i||c||u||p,h=_?n(e.length,String):[],m=h.length;for(var g in e)!t&&!d.call(e,g)||_&&("length"==g||u&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},862488:e=>{e.exports=function(e,t){for(var i=-1,n=t.length,a=e.length;++i<n;)e[a+i]=t[i];return e}},282908:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}},286556:(e,t,i)=>{var n=i(789465),a=i(977813);e.exports=function(e,t,i){(void 0!==i&&!a(e[t],i)||void 0===i&&!(t in e))&&n(e,t,i)}},234865:(e,t,i)=>{var n=i(789465),a=i(977813),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,i){var o=e[t];r.call(e,t)&&a(o,i)&&(void 0!==i||t in e)||n(e,t,i)}},218470:(e,t,i)=>{var n=i(977813);e.exports=function(e,t){for(var i=e.length;i--;)if(n(e[i][0],t))return i;return-1}},744037:(e,t,i)=>{var n=i(698363),a=i(3674);e.exports=function(e,t){return e&&n(t,a(t),e)}},163886:(e,t,i)=>{var n=i(698363),a=i(481704);e.exports=function(e,t){return e&&n(t,a(t),e)}},789465:(e,t,i)=>{var n=i(538777);e.exports=function(e,t,i){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}},285990:(e,t,i)=>{var n=i(646384),a=i(477412),r=i(234865),o=i(744037),s=i(163886),l=i(364626),d=i(200278),c=i(318805),u=i(201911),p=i(458234),_=i(946904),h=i(664160),m=i(43824),g=i(529148),v=i(738517),y=i(701469),E=i(644144),f=i(356688),S=i(513218),P=i(472928),b=i(3674),T=i(481704),A="[object Arguments]",I="[object Function]",x="[object Object]",C={};C[A]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[x]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[I]=C["[object WeakMap]"]=!1,e.exports=function e(t,i,O,R,w,k){var D,N=1&i,L=2&i,M=4&i;if(O&&(D=w?O(t,R,w,k):O(t)),void 0!==D)return D;if(!S(t))return t;var j=y(t);if(j){if(D=m(t),!N)return d(t,D)}else{var U=h(t),F=U==I||"[object GeneratorFunction]"==U;if(E(t))return l(t,N);if(U==x||U==A||F&&!w){if(D=L||F?{}:v(t),!N)return L?u(t,s(D,t)):c(t,o(D,t))}else{if(!C[U])return w?t:{};D=g(t,U,N)}}k||(k=new n);var V=k.get(t);if(V)return V;k.set(t,D),P(t)?t.forEach((function(n){D.add(e(n,i,O,n,t,k))})):f(t)&&t.forEach((function(n,a){D.set(a,e(n,i,O,a,t,k))}));var B=j?void 0:(M?L?_:p:L?T:b)(t);return a(B||t,(function(n,a){B&&(n=t[a=n]),r(D,a,e(n,i,O,a,t,k))})),D}},603118:(e,t,i)=>{var n=i(513218),a=Object.create,r=function(){function e(){}return function(t){if(!n(t))return{};if(a)return a(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}();e.exports=r},228483:(e,t,i)=>{var n=i(225063)();e.exports=n},868866:(e,t,i)=>{var n=i(862488),a=i(701469);e.exports=function(e,t,i){var r=t(e);return a(e)?r:n(r,i(e))}},909454:(e,t,i)=>{var n=i(644239),a=i(637005);e.exports=function(e){return a(e)&&"[object Arguments]"==n(e)}},690939:(e,t,i)=>{var n=i(902492),a=i(637005);e.exports=function e(t,i,r,o,s){return t===i||(null==t||null==i||!a(t)&&!a(i)?t!=t&&i!=i:n(t,i,r,o,e,s))}},902492:(e,t,i)=>{var n=i(646384),a=i(967114),r=i(518351),o=i(916096),s=i(664160),l=i(701469),d=i(644144),c=i(936719),u="[object Arguments]",p="[object Array]",_="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,m,g,v){var y=l(e),E=l(t),f=y?p:s(e),S=E?p:s(t),P=(f=f==u?_:f)==_,b=(S=S==u?_:S)==_,T=f==S;if(T&&d(e)){if(!d(t))return!1;y=!0,P=!1}if(T&&!P)return v||(v=new n),y||c(e)?a(e,t,i,m,g,v):r(e,t,f,i,m,g,v);if(!(1&i)){var A=P&&h.call(e,"__wrapped__"),I=b&&h.call(t,"__wrapped__");if(A||I){var x=A?e.value():e,C=I?t.value():t;return v||(v=new n),g(x,C,i,m,v)}}return!!T&&(v||(v=new n),o(e,t,i,m,g,v))}},225588:(e,t,i)=>{var n=i(664160),a=i(637005);e.exports=function(e){return a(e)&&"[object Map]"==n(e)}},28458:(e,t,i)=>{var n=i(623560),a=i(215346),r=i(513218),o=i(680346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,d=Object.prototype,c=l.toString,u=d.hasOwnProperty,p=RegExp("^"+c.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!r(e)||a(e))&&(n(e)?p:s).test(o(e))}},829221:(e,t,i)=>{var n=i(664160),a=i(637005);e.exports=function(e){return a(e)&&"[object Set]"==n(e)}},238749:(e,t,i)=>{var n=i(644239),a=i(541780),r=i(637005),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return r(e)&&a(e.length)&&!!o[n(e)]}},400280:(e,t,i)=>{var n=i(225726),a=i(86916),r=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return a(e);var t=[];for(var i in Object(e))r.call(e,i)&&"constructor"!=i&&t.push(i);return t}},710313:(e,t,i)=>{var n=i(513218),a=i(225726),r=i(133498),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return r(e);var t=a(e),i=[];for(var s in e)("constructor"!=s||!t&&o.call(e,s))&&i.push(s);return i}},642980:(e,t,i)=>{var n=i(646384),a=i(286556),r=i(228483),o=i(559783),s=i(513218),l=i(481704),d=i(636390);e.exports=function e(t,i,c,u,p){t!==i&&r(i,(function(r,l){if(p||(p=new n),s(r))o(t,i,l,c,e,u,p);else{var _=u?u(d(t,l),r,l+"",t,i,p):void 0;void 0===_&&(_=r),a(t,l,_)}}),l)}},559783:(e,t,i)=>{var n=i(286556),a=i(364626),r=i(477133),o=i(200278),s=i(738517),l=i(135694),d=i(701469),c=i(229246),u=i(644144),p=i(623560),_=i(513218),h=i(968630),m=i(936719),g=i(636390),v=i(959881);e.exports=function(e,t,i,y,E,f,S){var P=g(e,i),b=g(t,i),T=S.get(b);if(T)n(e,i,T);else{var A=f?f(P,b,i+"",e,t,S):void 0,I=void 0===A;if(I){var x=d(b),C=!x&&u(b),O=!x&&!C&&m(b);A=b,x||C||O?d(P)?A=P:c(P)?A=o(P):C?(I=!1,A=a(b,!0)):O?(I=!1,A=r(b,!0)):A=[]:h(b)||l(b)?(A=P,l(P)?A=v(P):_(P)&&!p(P)||(A=s(b))):I=!1}I&&(S.set(b,A),E(A,b,y,f,S),S.delete(b)),n(e,i,A)}}},105976:(e,t,i)=>{var n=i(406557),a=i(545357),r=i(430061);e.exports=function(e,t){return r(a(e,t,n),e+"")}},356560:(e,t,i)=>{var n=i(575703),a=i(538777),r=i(406557),o=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:r;e.exports=o},422545:e=>{e.exports=function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}},307518:e=>{e.exports=function(e){return function(t){return e(t)}}},274757:e=>{e.exports=function(e,t){return e.has(t)}},274318:(e,t,i)=>{var n=i(611149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},364626:(e,t,i)=>{e=i.nmd(e);var n=i(555639),a=t&&!t.nodeType&&t,r=a&&e&&!e.nodeType&&e,o=r&&r.exports===a?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var i=e.length,n=s?s(i):new e.constructor(i);return e.copy(n),n}},257157:(e,t,i)=>{var n=i(274318);e.exports=function(e,t){var i=t?n(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}},593147:e=>{var t=/\w*$/;e.exports=function(e){var i=new e.constructor(e.source,t.exec(e));return i.lastIndex=e.lastIndex,i}},540419:(e,t,i)=>{var n=i(562705),a=n?n.prototype:void 0,r=a?a.valueOf:void 0;e.exports=function(e){return r?Object(r.call(e)):{}}},477133:(e,t,i)=>{var n=i(274318);e.exports=function(e,t){var i=t?n(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}},200278:e=>{e.exports=function(e,t){var i=-1,n=e.length;for(t||(t=Array(n));++i<n;)t[i]=e[i];return t}},698363:(e,t,i)=>{var n=i(234865),a=i(789465);e.exports=function(e,t,i,r){var o=!i;i||(i={});for(var s=-1,l=t.length;++s<l;){var d=t[s],c=r?r(i[d],e[d],d,i,e):void 0;void 0===c&&(c=e[d]),o?a(i,d,c):n(i,d,c)}return i}},318805:(e,t,i)=>{var n=i(698363),a=i(799551);e.exports=function(e,t){return n(e,a(e),t)}},201911:(e,t,i)=>{var n=i(698363),a=i(151442);e.exports=function(e,t){return n(e,a(e),t)}},614429:(e,t,i)=>{var n=i(555639)["__core-js_shared__"];e.exports=n},321463:(e,t,i)=>{var n=i(105976),a=i(816612);e.exports=function(e){return n((function(t,i){var n=-1,r=i.length,o=r>1?i[r-1]:void 0,s=r>2?i[2]:void 0;for(o=e.length>3&&"function"==typeof o?(r--,o):void 0,s&&a(i[0],i[1],s)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var l=i[n];l&&e(t,l,n,o)}return t}))}},225063:e=>{e.exports=function(e){return function(t,i,n){for(var a=-1,r=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++a];if(!1===i(r[l],l,r))break}return t}}},538777:(e,t,i)=>{var n=i(610852),a=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=a},967114:(e,t,i)=>{var n=i(288668),a=i(282908),r=i(274757);e.exports=function(e,t,i,o,s,l){var d=1&i,c=e.length,u=t.length;if(c!=u&&!(d&&u>c))return!1;var p=l.get(e),_=l.get(t);if(p&&_)return p==t&&_==e;var h=-1,m=!0,g=2&i?new n:void 0;for(l.set(e,t),l.set(t,e);++h<c;){var v=e[h],y=t[h];if(o)var E=d?o(y,v,h,t,e,l):o(v,y,h,e,t,l);if(void 0!==E){if(E)continue;m=!1;break}if(g){if(!a(t,(function(e,t){if(!r(g,t)&&(v===e||s(v,e,i,o,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,i,o,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},518351:(e,t,i)=>{var n=i(562705),a=i(611149),r=i(977813),o=i(967114),s=i(668776),l=i(321814),d=n?n.prototype:void 0,c=d?d.valueOf:void 0;e.exports=function(e,t,i,n,d,u,p){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!u(new a(e),new a(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var _=s;case"[object Set]":var h=1&n;if(_||(_=l),e.size!=t.size&&!h)return!1;var m=p.get(e);if(m)return m==t;n|=2,p.set(e,t);var g=o(_(e),_(t),n,d,u,p);return p.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},916096:(e,t,i)=>{var n=i(458234),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,r,o,s){var l=1&i,d=n(e),c=d.length;if(c!=n(t).length&&!l)return!1;for(var u=c;u--;){var p=d[u];if(!(l?p in t:a.call(t,p)))return!1}var _=s.get(e),h=s.get(t);if(_&&h)return _==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++u<c;){var v=e[p=d[u]],y=t[p];if(r)var E=l?r(y,v,p,t,e,s):r(v,y,p,e,t,s);if(!(void 0===E?v===y||o(v,y,i,r,s):E)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var f=e.constructor,S=t.constructor;f==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof f&&f instanceof f&&"function"==typeof S&&S instanceof S||(m=!1)}return s.delete(e),s.delete(t),m}},458234:(e,t,i)=>{var n=i(868866),a=i(799551),r=i(3674);e.exports=function(e){return n(e,r,a)}},946904:(e,t,i)=>{var n=i(868866),a=i(151442),r=i(481704);e.exports=function(e){return n(e,r,a)}},45050:(e,t,i)=>{var n=i(37019);e.exports=function(e,t){var i=e.__data__;return n(t)?i["string"==typeof t?"string":"hash"]:i.map}},610852:(e,t,i)=>{var n=i(28458),a=i(647801);e.exports=function(e,t){var i=a(e,t);return n(i)?i:void 0}},385924:(e,t,i)=>{var n=i(205569)(Object.getPrototypeOf,Object);e.exports=n},799551:(e,t,i)=>{var n=i(234963),a=i(770479),r=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return r.call(e,t)})))}:a;e.exports=s},151442:(e,t,i)=>{var n=i(862488),a=i(385924),r=i(799551),o=i(770479),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,r(e)),e=a(e);return t}:o;e.exports=s},664160:(e,t,i)=>{var n=i(618552),a=i(357071),r=i(853818),o=i(458525),s=i(70577),l=i(644239),d=i(680346),c="[object Map]",u="[object Promise]",p="[object Set]",_="[object WeakMap]",h="[object DataView]",m=d(n),g=d(a),v=d(r),y=d(o),E=d(s),f=l;(n&&f(new n(new ArrayBuffer(1)))!=h||a&&f(new a)!=c||r&&f(r.resolve())!=u||o&&f(new o)!=p||s&&f(new s)!=_)&&(f=function(e){var t=l(e),i="[object Object]"==t?e.constructor:void 0,n=i?d(i):"";if(n)switch(n){case m:return h;case g:return c;case v:return u;case y:return p;case E:return _}return t}),e.exports=f},647801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},751789:(e,t,i)=>{var n=i(894536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},780401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},657667:(e,t,i)=>{var n=i(894536),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return a.call(t,e)?t[e]:void 0}},521327:(e,t,i)=>{var n=i(894536),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:a.call(t,e)}},281866:(e,t,i)=>{var n=i(894536);e.exports=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},43824:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var i=e.length,n=new e.constructor(i);return i&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},529148:(e,t,i)=>{var n=i(274318),a=i(257157),r=i(593147),o=i(540419),s=i(477133);e.exports=function(e,t,i){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return a(e,i);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,i);case"[object Map]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return r(e);case"[object Set]":return new l;case"[object Symbol]":return o(e)}}},738517:(e,t,i)=>{var n=i(603118),a=i(385924),r=i(225726);e.exports=function(e){return"function"!=typeof e.constructor||r(e)?{}:n(a(e))}},565776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,i){var n=typeof e;return!!(i=null==i?9007199254740991:i)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<i}},816612:(e,t,i)=>{var n=i(977813),a=i(498612),r=i(565776),o=i(513218);e.exports=function(e,t,i){if(!o(i))return!1;var s=typeof t;return!!("number"==s?a(i)&&r(t,i.length):"string"==s&&t in i)&&n(i[t],e)}},37019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},215346:(e,t,i)=>{var n,a=i(614429),r=(n=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!r&&r in e}},225726:e=>{var t=Object.prototype;e.exports=function(e){var i=e&&e.constructor;return e===("function"==typeof i&&i.prototype||t)}},327040:e=>{e.exports=function(){this.__data__=[],this.size=0}},514125:(e,t,i)=>{var n=i(218470),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,i=n(t,e);return!(i<0)&&(i==t.length-1?t.pop():a.call(t,i,1),--this.size,!0)}},882117:(e,t,i)=>{var n=i(218470);e.exports=function(e){var t=this.__data__,i=n(t,e);return i<0?void 0:t[i][1]}},567518:(e,t,i)=>{var n=i(218470);e.exports=function(e){return n(this.__data__,e)>-1}},654705:(e,t,i)=>{var n=i(218470);e.exports=function(e,t){var i=this.__data__,a=n(i,e);return a<0?(++this.size,i.push([e,t])):i[a][1]=t,this}},924785:(e,t,i)=>{var n=i(301989),a=i(738407),r=i(357071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(r||a),string:new n}}},611285:(e,t,i)=>{var n=i(45050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},396e3:(e,t,i)=>{var n=i(45050);e.exports=function(e){return n(this,e).get(e)}},349916:(e,t,i)=>{var n=i(45050);e.exports=function(e){return n(this,e).has(e)}},195265:(e,t,i)=>{var n=i(45050);e.exports=function(e,t){var i=n(this,e),a=i.size;return i.set(e,t),this.size+=i.size==a?0:1,this}},668776:e=>{e.exports=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i}},894536:(e,t,i)=>{var n=i(610852)(Object,"create");e.exports=n},86916:(e,t,i)=>{var n=i(205569)(Object.keys,Object);e.exports=n},133498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t}},531167:(e,t,i)=>{e=i.nmd(e);var n=i(431957),a=t&&!t.nodeType&&t,r=a&&e&&!e.nodeType&&e,o=r&&r.exports===a&&n.process,s=function(){try{var e=r&&r.require&&r.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(t){}}();e.exports=s},205569:e=>{e.exports=function(e,t){return function(i){return e(t(i))}}},545357:(e,t,i)=>{var n=i(896874),a=Math.max;e.exports=function(e,t,i){return t=a(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,s=a(r.length-t,0),l=Array(s);++o<s;)l[o]=r[t+o];o=-1;for(var d=Array(t+1);++o<t;)d[o]=r[o];return d[t]=i(l),n(e,this,d)}}},636390:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},90619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},572385:e=>{e.exports=function(e){return this.__data__.has(e)}},321814:e=>{e.exports=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}},430061:(e,t,i)=>{var n=i(356560),a=i(521275)(n);e.exports=a},521275:e=>{var t=Date.now;e.exports=function(e){var i=0,n=0;return function(){var a=t(),r=16-(a-n);if(n=a,r>0){if(++i>=800)return arguments[0]}else i=0;return e.apply(void 0,arguments)}}},737465:(e,t,i)=>{var n=i(738407);e.exports=function(){this.__data__=new n,this.size=0}},963779:e=>{e.exports=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}},267599:e=>{e.exports=function(e){return this.__data__.get(e)}},744758:e=>{e.exports=function(e){return this.__data__.has(e)}},234309:(e,t,i)=>{var n=i(738407),a=i(357071),r=i(883369);e.exports=function(e,t){var i=this.__data__;if(i instanceof n){var o=i.__data__;if(!a||o.length<199)return o.push([e,t]),this.size=++i.size,this;i=this.__data__=new r(o)}return i.set(e,t),this.size=i.size,this}},680346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(i){}try{return e+""}catch(i){}}return""}},150361:(e,t,i)=>{var n=i(285990);e.exports=function(e){return n(e,5)}},575703:e=>{e.exports=function(e){return function(){return e}}},977813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},406557:e=>{e.exports=function(e){return e}},135694:(e,t,i)=>{var n=i(909454),a=i(637005),r=Object.prototype,o=r.hasOwnProperty,s=r.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},498612:(e,t,i)=>{var n=i(623560),a=i(541780);e.exports=function(e){return null!=e&&a(e.length)&&!n(e)}},229246:(e,t,i)=>{var n=i(498612),a=i(637005);e.exports=function(e){return a(e)&&n(e)}},644144:(e,t,i)=>{e=i.nmd(e);var n=i(555639),a=i(595062),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,s=o&&o.exports===r?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||a;e.exports=l},618446:(e,t,i)=>{var n=i(690939);e.exports=function(e,t){return n(e,t)}},623560:(e,t,i)=>{var n=i(644239),a=i(513218);e.exports=function(e){if(!a(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},541780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},356688:(e,t,i)=>{var n=i(225588),a=i(307518),r=i(531167),o=r&&r.isMap,s=o?a(o):n;e.exports=s},968630:(e,t,i)=>{var n=i(644239),a=i(385924),r=i(637005),o=Function.prototype,s=Object.prototype,l=o.toString,d=s.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!r(e)||"[object Object]"!=n(e))return!1;var t=a(e);if(null===t)return!0;var i=d.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&l.call(i)==c}},472928:(e,t,i)=>{var n=i(829221),a=i(307518),r=i(531167),o=r&&r.isSet,s=o?a(o):n;e.exports=s},936719:(e,t,i)=>{var n=i(238749),a=i(307518),r=i(531167),o=r&&r.isTypedArray,s=o?a(o):n;e.exports=s},3674:(e,t,i)=>{var n=i(14636),a=i(400280),r=i(498612);e.exports=function(e){return r(e)?n(e):a(e)}},481704:(e,t,i)=>{var n=i(14636),a=i(710313),r=i(498612);e.exports=function(e){return r(e)?n(e,!0):a(e)}},682492:(e,t,i)=>{var n=i(642980),a=i(321463)((function(e,t,i){n(e,t,i)}));e.exports=a},770479:e=>{e.exports=function(){return[]}},595062:e=>{e.exports=function(){return!1}},959881:(e,t,i)=>{var n=i(698363),a=i(481704);e.exports=function(e){return n(e,a(e))}},762587:e=>{function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,i,n,a){i=i||"&",n=n||"=";var r={};if("string"!=typeof e||0===e.length)return r;var o=/\+/g;e=e.split(i);var s=1e3;a&&"number"==typeof a.maxKeys&&(s=a.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var d=0;d<l;++d){var c,u,p,_,h=e[d].replace(o,"%20"),m=h.indexOf(n);m>=0?(c=h.substr(0,m),u=h.substr(m+1)):(c=h,u=""),p=decodeURIComponent(c),_=decodeURIComponent(u),t(r,p)?Array.isArray(r[p])?r[p].push(_):r[p]=[r[p],_]:r[p]=_}return r}},712361:e=>{var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,i,n,a){return i=i||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(a){var r=encodeURIComponent(t(a))+n;return Array.isArray(e[a])?e[a].map((function(e){return r+encodeURIComponent(t(e))})).join(i):r+encodeURIComponent(t(e[a]))})).join(i):a?encodeURIComponent(t(a))+n+encodeURIComponent(t(e)):""}},817673:(e,t,i)=>{t.decode=t.parse=i(762587),t.encode=t.stringify=i(712361)},52511:function(e,t,i){var n;e=i.nmd(e),function(a){t&&t.nodeType,e&&e.nodeType;var r="object"==typeof i.g&&i.g;r.global!==r&&r.window!==r&&r.self;var o,s=2147483647,l=36,d=/^xn--/,c=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=Math.floor,h=String.fromCharCode;function m(e){throw RangeError(p[e])}function g(e,t){for(var i=e.length,n=[];i--;)n[i]=t(e[i]);return n}function v(e,t){var i=e.split("@"),n="";return i.length>1&&(n=i[0]+"@",e=i[1]),n+g((e=e.replace(u,".")).split("."),t).join(".")}function y(e){for(var t,i,n=[],a=0,r=e.length;a<r;)(t=e.charCodeAt(a++))>=55296&&t<=56319&&a<r?56320==(64512&(i=e.charCodeAt(a++)))?n.push(((1023&t)<<10)+(1023&i)+65536):(n.push(t),a--):n.push(t);return n}function E(e){return g(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function f(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,i){var n=0;for(e=i?_(e/700):e>>1,e+=_(e/t);e>455;n+=l)e=_(e/35);return _(n+36*e/(e+38))}function P(e){var t,i,n,a,r,o,d,c,u,p,h,g=[],v=e.length,y=0,f=128,P=72;for((i=e.lastIndexOf("-"))<0&&(i=0),n=0;n<i;++n)e.charCodeAt(n)>=128&&m("not-basic"),g.push(e.charCodeAt(n));for(a=i>0?i+1:0;a<v;){for(r=y,o=1,d=l;a>=v&&m("invalid-input"),((c=(h=e.charCodeAt(a++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:l)>=l||c>_((s-y)/o))&&m("overflow"),y+=c*o,!(c<(u=d<=P?1:d>=P+26?26:d-P));d+=l)o>_(s/(p=l-u))&&m("overflow"),o*=p;P=S(y-r,t=g.length+1,0==r),_(y/t)>s-f&&m("overflow"),f+=_(y/t),y%=t,g.splice(y++,0,f)}return E(g)}function b(e){var t,i,n,a,r,o,d,c,u,p,g,v,E,P,b,T=[];for(v=(e=y(e)).length,t=128,i=0,r=72,o=0;o<v;++o)(g=e[o])<128&&T.push(h(g));for(n=a=T.length,a&&T.push("-");n<v;){for(d=s,o=0;o<v;++o)(g=e[o])>=t&&g<d&&(d=g);for(d-t>_((s-i)/(E=n+1))&&m("overflow"),i+=(d-t)*E,t=d,o=0;o<v;++o)if((g=e[o])<t&&++i>s&&m("overflow"),g==t){for(c=i,u=l;!(c<(p=u<=r?1:u>=r+26?26:u-r));u+=l)b=c-p,P=l-p,T.push(h(f(p+b%P,0))),c=_(b/P);T.push(h(f(c,0))),r=S(i,E,n==a),i=0,++n}++i,++t}return T.join("")}o={version:"1.3.2",ucs2:{decode:y,encode:E},decode:P,encode:b,toASCII:function(e){return v(e,(function(e){return c.test(e)?"xn--"+b(e):e}))},toUnicode:function(e){return v(e,(function(e){return d.test(e)?P(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return o}.call(t,i,t,e))||(e.exports=n)}()},608575:(e,t,i)=>{var n=i(52511),a=i(762502);function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=E,t.resolve=function(e,t){return E(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?E(e,!1,!0).resolveObject(t):t},t.format=function(e){a.isString(e)&&(e=E(e));return e instanceof r?e.format():r.prototype.format.call(e)},t.Url=r;var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(d),u=["%","/","?",";","#"].concat(c),p=["/","?","#"],_=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=i(817673);function E(e,t,i){if(e&&a.isObject(e)&&e instanceof r)return e;var n=new r;return n.parse(e,t,i),n}r.prototype.parse=function(e,t,i){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),s=-1!==r&&r<e.indexOf("#")?"?":"#",d=e.split(s);d[0]=d[0].replace(/\\/g,"/");var E=e=d.join(s);if(E=E.trim(),!i&&1===e.split("#").length){var f=l.exec(E);if(f)return this.path=E,this.href=E,this.pathname=f[1],f[2]?(this.search=f[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var S=o.exec(E);if(S){var P=(S=S[0]).toLowerCase();this.protocol=P,E=E.substr(S.length)}if(i||S||E.match(/^\/\/[^@\/]+@[^@\/]+/)){var b="//"===E.substr(0,2);!b||S&&g[S]||(E=E.substr(2),this.slashes=!0)}if(!g[S]&&(b||S&&!v[S])){for(var T,A,I=-1,x=0;x<p.length;x++){-1!==(C=E.indexOf(p[x]))&&(-1===I||C<I)&&(I=C)}-1!==(A=-1===I?E.lastIndexOf("@"):E.lastIndexOf("@",I))&&(T=E.slice(0,A),E=E.slice(A+1),this.auth=decodeURIComponent(T)),I=-1;for(x=0;x<u.length;x++){var C;-1!==(C=E.indexOf(u[x]))&&(-1===I||C<I)&&(I=C)}-1===I&&(I=E.length),this.host=E.slice(0,I),E=E.slice(I),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var R=this.hostname.split(/\./),w=(x=0,R.length);x<w;x++){var k=R[x];if(k&&!k.match(_)){for(var D="",N=0,L=k.length;N<L;N++)k.charCodeAt(N)>127?D+="x":D+=k[N];if(!D.match(_)){var M=R.slice(0,x),j=R.slice(x+1),U=k.match(h);U&&(M.push(U[1]),j.unshift(U[2])),j.length&&(E="/"+j.join(".")+E),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=n.toASCII(this.hostname));var F=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+F,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==E[0]&&(E="/"+E))}if(!m[P])for(x=0,w=c.length;x<w;x++){var B=c[x];if(-1!==E.indexOf(B)){var G=encodeURIComponent(B);G===B&&(G=escape(B)),E=E.split(B).join(G)}}var H=E.indexOf("#");-1!==H&&(this.hash=E.substr(H),E=E.slice(0,H));var z=E.indexOf("?");if(-1!==z?(this.search=E.substr(z),this.query=E.substr(z+1),t&&(this.query=y.parse(this.query)),E=E.slice(0,z)):t&&(this.search="",this.query={}),E&&(this.pathname=E),v[P]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){F=this.pathname||"";var Z=this.search||"";this.path=F+Z}return this.href=this.format(),this},r.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",i=this.pathname||"",n=this.hash||"",r=!1,o="";this.host?r=e+this.host:this.hostname&&(r=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(r+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(o=y.stringify(this.query));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||v[t])&&!1!==r?(r="//"+(r||""),i&&"/"!==i.charAt(0)&&(i="/"+i)):r||(r=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+r+(i=i.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+n},r.prototype.resolve=function(e){return this.resolveObject(E(e,!1,!0)).format()},r.prototype.resolveObject=function(e){if(a.isString(e)){var t=new r;t.parse(e,!1,!0),e=t}for(var i=new r,n=Object.keys(this),o=0;o<n.length;o++){var s=n[o];i[s]=this[s]}if(i.hash=e.hash,""===e.href)return i.href=i.format(),i;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),d=0;d<l.length;d++){var c=l[d];"protocol"!==c&&(i[c]=e[c])}return v[i.protocol]&&i.hostname&&!i.pathname&&(i.path=i.pathname="/"),i.href=i.format(),i}if(e.protocol&&e.protocol!==i.protocol){if(!v[e.protocol]){for(var u=Object.keys(e),p=0;p<u.length;p++){var _=u[p];i[_]=e[_]}return i.href=i.format(),i}if(i.protocol=e.protocol,e.host||g[e.protocol])i.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),i.pathname=h.join("/")}if(i.search=e.search,i.query=e.query,i.host=e.host||"",i.auth=e.auth,i.hostname=e.hostname||e.host,i.port=e.port,i.pathname||i.search){var m=i.pathname||"",y=i.search||"";i.path=m+y}return i.slashes=i.slashes||e.slashes,i.href=i.format(),i}var E=i.pathname&&"/"===i.pathname.charAt(0),f=e.host||e.pathname&&"/"===e.pathname.charAt(0),S=f||E||i.host&&e.pathname,P=S,b=i.pathname&&i.pathname.split("/")||[],T=(h=e.pathname&&e.pathname.split("/")||[],i.protocol&&!v[i.protocol]);if(T&&(i.hostname="",i.port=null,i.host&&(""===b[0]?b[0]=i.host:b.unshift(i.host)),i.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),S=S&&(""===h[0]||""===b[0])),f)i.host=e.host||""===e.host?e.host:i.host,i.hostname=e.hostname||""===e.hostname?e.hostname:i.hostname,i.search=e.search,i.query=e.query,b=h;else if(h.length)b||(b=[]),b.pop(),b=b.concat(h),i.search=e.search,i.query=e.query;else if(!a.isNullOrUndefined(e.search)){if(T)i.hostname=i.host=b.shift(),(O=!!(i.host&&i.host.indexOf("@")>0)&&i.host.split("@"))&&(i.auth=O.shift(),i.host=i.hostname=O.shift());return i.search=e.search,i.query=e.query,a.isNull(i.pathname)&&a.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.href=i.format(),i}if(!b.length)return i.pathname=null,i.search?i.path="/"+i.search:i.path=null,i.href=i.format(),i;for(var A=b.slice(-1)[0],I=(i.host||e.host||b.length>1)&&("."===A||".."===A)||""===A,x=0,C=b.length;C>=0;C--)"."===(A=b[C])?b.splice(C,1):".."===A?(b.splice(C,1),x++):x&&(b.splice(C,1),x--);if(!S&&!P)for(;x--;x)b.unshift("..");!S||""===b[0]||b[0]&&"/"===b[0].charAt(0)||b.unshift(""),I&&"/"!==b.join("/").substr(-1)&&b.push("");var O,R=""===b[0]||b[0]&&"/"===b[0].charAt(0);T&&(i.hostname=i.host=R?"":b.length?b.shift():"",(O=!!(i.host&&i.host.indexOf("@")>0)&&i.host.split("@"))&&(i.auth=O.shift(),i.host=i.hostname=O.shift()));return(S=S||i.host&&b.length)&&!R&&b.unshift(""),b.length?i.pathname=b.join("/"):(i.pathname=null,i.path=null),a.isNull(i.pathname)&&a.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.auth=e.auth||i.auth,i.slashes=i.slashes||e.slashes,i.href=i.format(),i},r.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},762502:e=>{e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},262794:e=>{e.exports={LinkClusterLevel:{RAW:0,NORMALIZED:1,PATH:2,L2:3,L1:4,DOMAIN:5,SITE_CHUNK:6,LANDING_DOMAIN:7},SearchVertical:{UNIVERSAL:0,PIN:1,BOARD:2,USER:3,PERSONAL:4,AUTOCOMPLETE:5,PIN_REALTIME:6,PERSONAL_REALTIME:7,PLACE:8,PIN_EXP:9,BOARD_EXP:10,USER_EXP:11,INTERESTS:12,PIN_FRONTIER:13,PERSONAL_TOPIC:14,PERSONAL_TOPIC_BOARD:15,GENERIC:16},SearchIndexType:{UNKNOWN:22,PIN:1,BOARD:2,USER:3,PERSONAL:4,ADQUERY:6,VISUAL:7,AUTOCOMPLETE:8,GENERIC:9,AUTOCOMPLETE_METATRON:10,AUTOCOMPLETE_CONTACTS:11,PEACH:15,QUERY:16,BESTPINDOC:17,HBASE:18,HBASE_SHOPPING_ADS:20,HBASE_SHOPPING_CATALOG:21,AD:5,SHOPPING_ADS:12,SOV_ADS:13,KEYWORD_ADS_DEPRECATED:14,ADS_KEYWORD:19,P2P:23,SHOPPING_ADS_PRODUCT_GROUP:24,ADS_MANAGER:25,ADS_CONVERSION_USER:35,ITEM:26,APIARY:27,INTEREST:28,CREATOR:29,STICKER:30,MUSIC:31,HF_INTEREST_PINS:32,SHUFFLE:33,KNOWLEDGE_GRAPH_NODE:34,ACQUIVATION_UNIFIED:36,PINJOIN_EMBEDDINGS:200,PINJOIN_ADS_EMBEDDINGS:201,PINJOIN_SHOPPINGADS_EMBEDDINGS:202,GRAPHSAGE_EMBEDDINGS:203,PINJOIN_EMBEDDINGS_V5:204,HF_TWO_TOWER_EMBEDDINGS:205,RECSEQ_EMBEDDINGS:206,P2P_TWO_TOWER_EMBEDDINGS:207,HF_WEB_PINS:208,SEARCHSAGE_EMBEDDINGS:209,MOMENT_EMBEDDINGS:210,NOTIFSAGE_EMBEDDINGS:211},SearchServerType:{METATRON:1,MANAS_LEAF:2,MANAS_ROOT:3,MANAS_LEAF_AND_ROOT:4},SearchCorpusType:{UNKNOWN:32,BASE:0,BASE_I18N:49,BASE_REFRESH:51,REALTIME:1,COHOST:112,FRONTIER:2,FRESH:3,BASEPRIME:4,CSR:7,CURATED:16,BEST_TOPIC_PIN:21,GOLDEN:30,EXT_FALLBACK:58,COMMERCE:8,COMMERCE_HYBRID:59,COMMERCE_ITEM_HYBRID:93,COMMERCE_BASE:5,COMMERCE_FRONTIER:6,COMMERCE_ITEM:88,COMMERCE_ITEM_BASE:90,COMMERCE_ITEM_EXP:97,COMMERCE_ITEM_EXP_2:103,COMMERCE_ITEM_EXP_3:104,COMMERCE_ITEM_EXP_4:105,ADS:9,BASEEXP:10,BASEEXP2:28,BASEEXP3:44,BASEEXP4:45,BASEEXP5:46,BASEEXP6:47,BASEEXP7:55,BASEEXP8:56,BASEEXP9:57,BASEEXP_I18N:50,BASEPRIMEEXP:11,BASEPRIMEEXP3:76,BASEPRIMESTAGING:135,COMMERCE_EXP:37,COMMERCE_HYBRID_EXP:60,DARK_READ:48,REALTIMEEXP:99,INTERLEAVING:12,ECLECTIC:13,VIDEO:14,PARTNER_VIDEO:15,STL:23,P2P_REC:17,PRODUCT:18,SHOPPING_ADS:19,SIFTER:20,ADSPIN:22,PERSONALIZE:24,PERSONALIZE_GOLDEN:31,PERSONALIZE_GOLDEN_EXP:38,PERSONALIZE_GEMINI:26,PERSONALIZE_VISUAL:27,BASESTAGING:25,REALTIMESTAGING:75,MODELSTAGING:29,INDEXSTAGING:140,INDEXPRIMESTAGING:146,PLAYGROUND:35,DYNAMIC_INSERTION:33,POLARIS:34,POLARIS_REALTIME:36,POLARIS_EXP:148,VIDEO_REALTIME:39,PINNER_AUTHORITY:40,PINNER_AUTHORITY_EXP:98,PINNER_AUTHORITY_CREATOR:119,CREATORS:41,HF_REALTIME:42,MEDIA_PLANNER:43,RECIPES:52,DIY:53,VIDEO_GRAPHSAGE:54,PIXIE_REALTIME:61,BASEPRIME_INFLUENCER_CONTENT:62,INTEREST_REALTIME:63,HF_BOARDS:64,BASEPRIME_GS:65,BASEPRIME_USER_GS:66,BASEPRIME_SYOP_GS:67,COMMERCE_USER_GS:68,COMMERCE_SYOP_GS:69,BASEPRIME_CONTEXT_GS:85,COMMERCE_CONTEXT_GS:86,COMMERCE_ITEM_USER_GS:91,COMMERCE_ITEM_CONTEXT_GS:94,BASE_FOLLOWING:133,COMMERCE_ITEM_FOLLOWING:134,USER_P2P:136,USER_P2P_REPEATED_QUERY:137,BASEEXP_V2:70,BASEPRIMEEXP_V2:71,GOLDEN_EXP_V2:72,COMMERCE_EXP_V2:73,PERSONALIZE_GOLDEN_EXP_V2:74,NAVBOOST:77,NAVBOOST_EXP:130,STORY_NAVBOOST:102,STORY_NAVBOOST_EXP:107,ENGAGEMENT_IDEA_PINS:118,P2P_ENGAGEMENT_IDEA_PINS:117,BASE_AUTOML:78,BASEPRIME_AUTOML:79,COMMERCE_AUTOML:80,COMMERCE_ITEM_AUTOML:95,COMMERCE_ITEM_AUTOML_EXP:126,COMMERCE_ITEM_AUTOML_EXP_2:127,COMMERCE_ITEM_AUTOML_EXP_3:128,COMMERCE_ITEM_AUTOML_EXP_4:129,FRESH_AUTOML:81,PERSONALIZE_GOLDEN_AUTOML:82,BASE_AUTOML_SMS:120,BASEPRIME_AUTOML_SMS:121,COMMERCE_AUTOML_SMS:122,COMMERCE_ITEM_AUTOML_SMS:123,FRESH_AUTOML_SMS:124,PERSONALIZE_GOLDEN_AUTOML_SMS:125,QUERY:83,REALTIME_BOOTSTRAP:84,ACTIVATION:87,ACTIVATION_ITEM:92,MERCHANT_ACTIVATION_GS:100,MERCHANT_ACTIVATION_GS_ITEM:101,SHOPIFY_GS:109,SHOPIFY_GS_ITEM:110,STORY_PINS_GS:89,FRESH_STORY_PINS_GS:96,NOTIFICATION:106,P2P_IDEA_PINS:108,P2P_IDEA_PINS_EXP:139,FQS:111,BASE_STYLE:113,BASE_STYLE_REWRITE:114,COMMERCE_STYLE:115,COMMERCE_STYLE_REWRITE:116,STORY_BEST_PIN:131,IDEA_PIN_TOKEN:132,HQM_GS_ITEM:138,BASE_GPU:141,BASEPRIME_GPU:142,FRESH_GPU:143,COMMERCE_ITEM_GPU:144,PERSONALIZE_GOLDEN_GPU:145,MOMENT_BASED_PINS:147,NOTIFICATION_CONTENT:149,AUDIENCE_SIZE:150},LocalReason:{NOT_LOCAL:0,LOCAL_LINK:1,LOCAL_DESC:2,LOCAL_LINK_AND_DESC:3,LOCAL_LINK_OR_DESC:4},Country:{AD:5,AE:6,AF:7,AG:8,AI:9,AL:10,AM:11,AO:12,AQ:13,AR:14,AS:15,AT:16,AU:17,AW:18,AX:19,AZ:20,BA:21,BB:22,BD:23,BE:24,BF:25,BG:26,BH:27,BI:28,BJ:29,BL:30,BM:31,BN:32,BO:33,BQ:34,BR:35,BS:36,BT:37,BV:38,BW:39,BY:40,BZ:41,CA:4,CC:42,CD:43,CF:44,CG:45,CH:46,CI:47,CK:48,CL:49,CM:50,CN:51,CO:52,CR:53,CU:54,CV:55,CW:56,CX:57,CY:58,CZ:59,DE:60,DJ:61,DK:62,DM:63,DO:64,DZ:65,EC:66,EE:67,EG:68,EH:69,ER:70,ES:71,ET:72,FI:73,FJ:74,FK:75,FM:76,FO:77,FR:1,GA:78,GB:2,GD:79,GE:80,GF:81,GG:82,GH:83,GI:84,GL:85,GM:86,GN:87,GP:88,GQ:89,GR:90,GS:91,GT:92,GU:93,GW:94,GY:95,HK:96,HM:97,HN:98,HR:99,HT:100,HU:101,ID:102,IE:103,IL:104,IM:105,IN:106,IO:107,IQ:108,IR:109,IS:110,IT:111,JE:112,JM:113,JO:114,JP:3,KE:115,KG:116,KH:117,KI:118,KM:119,KN:120,KP:121,KR:122,KW:123,KY:124,KZ:125,LA:126,LB:127,LC:128,LI:129,LK:130,LR:131,LS:132,LT:133,LU:134,LV:135,LY:136,MA:137,MC:138,MD:139,ME:140,MF:141,MG:142,MH:143,MK:144,ML:145,MM:146,MN:147,MO:148,MP:149,MQ:150,MR:151,MS:152,MT:153,MU:154,MV:155,MW:156,MX:157,MY:158,MZ:159,NA:160,NC:161,NE:162,NF:163,NG:164,NI:165,NL:166,NO:167,NP:168,NR:169,NU:170,NZ:171,OM:172,PA:173,PE:174,PF:175,PG:176,PH:177,PK:178,PL:179,PM:180,PN:181,PR:182,PS:183,PT:184,PW:185,PY:186,QA:187,RE:188,RO:189,RS:190,RU:191,RW:192,SA:193,SB:194,SC:195,SD:196,SE:197,SG:198,SH:199,SI:200,SJ:201,SK:202,SL:203,SM:204,SN:205,SO:206,SR:207,SS:208,ST:209,SV:210,SX:211,SY:212,SZ:213,TC:214,TD:215,TF:216,TG:217,TH:218,TJ:219,TK:220,TL:221,TM:222,TN:223,TO:224,TR:225,TT:226,TV:227,TW:228,TZ:229,UA:230,UG:231,UM:232,US:0,UY:233,UZ:234,VA:235,VC:236,VE:237,VG:238,VI:239,VN:240,VU:241,WF:242,WS:243,YE:244,YT:245,ZA:246,ZM:247,ZW:248},Locale:{en_US:0,en_GB:1,fr_FR:2,ja_JP:3},CategoryDim:{ANIMALS:0,ARCHITECTURE:1,ART:2,CARS_MOTORCYCLES:3,CELEBRITIES:4,DESIGN:5,DIY_CRAFTS:6,EDUCATION:7,FILM_MUSIC_BOOKS:8,FOOD_DRINK:9,GARDENING:10,GEEK:11,HAIR_BEAUTY:12,HEALTH_FITNESS:13,HISTORY:14,HOLIDAYS_EVENTS:15,HOME_DECOR:16,HUMOR:17,ILLUSTRATIONS_POSTERS:18,KIDS:19,MENS_FASHION:20,OUTDOORS:21,PHOTOGRAPHY:22,PRODUCTS:23,QUOTES:24,SCIENCE_NATURE:25,SPORTS:26,TATTOOS:27,TECHNOLOGY:28,TRAVEL:29,WEDDINGS:30,WOMENS_FASHION:31,FOR_DAD:32},PinnerIntentSource:{VERIFIED:0,LOW_HIT:1,CONTACT:2,USERNAME:3,NAME_DETECTION:4,ACTIVE_CREATOR:5},CategoryVectorVersion:{CAT_VEC_V0:0,CAT_VEC_V1:1,CAT_VEC_FAR_DUP:-1,CAT_VEC_SVM_CLASSIFIER:-2},WordEmbeddingVersion:{NET_0:0,WORD2VEC_0:1,WORD2VEC_1:2,WORD2VEC_2:3,WORD2VEC_3:7,WORD2VEC_4:8,WORD2VEC_5:9,WORD2VEC_PT:11,WORD2VEC_ES:12,WORD2VEC_FR:13,WORD2VEC_JA:14,WORD2VEC_DE:15,RNN_0:10,LDA_100:4,LDA_400:5,LDA_800:6,ANNOTATION2VEC_EN:16,ANNOTATION2VEC_EN_LEMM:17,QUERY_GEMINI_NAVBOOST:18,ANNOT_INTEREST_FASTTEXT_L1:19,ANNOT_INTEREST_FASTTEXT_L2:20,ANNOT_INTEREST_FASTTEXT_L3:21,QUERY_GRAPHSAGE:22,CONCEPTNET_LSH_512_BITS:23,CONCEPTNET_HALF:24},GraphSageEmbeddingVersion:{V3:0,V4:1,V5:17,V1_MULTI_BIPARTITE_GS:22,V4_REALTIME_1:2,V4_ITEM_AVG:8,V4_ITEM_TOP:9,V5_ALPHA_ITEM_AVG:12,V5_ALPHA_ITEM_TOP:13,V5_ALPHA_ITEMSAGE:14,V1_ALPHA_ITEMSAGE:15,V1_BETA_ITEMSAGE:16,V1_ITEMSAGE:18,V2_ALPHA_ITEMSAGE:23,V1_MEDIASAGE:19,V2_ALPHA_MEDIASAGE:20,V0_SEARCHSAGE:21,V4_REALTIME_EXP1:3,V4_REALTIME_EXP2:4,V4_REALTIME_EXP3:5,V4_REALTIME_EXP4:6,V4_REALTIME_EXP5:7,V5_ALPHA:10,V5_BETA:11},SearchSageEmbeddingVersion:{V0_GRAPHSAGE_V4_2048:0,V0_GRAPHSAGE_V4_FP16:1,SEARCHSAGE_V3_BETA:2},MediaSageEmbeddingVersion:{V1_ALPHA:0,V1:1,V2_ALPHA:6,V1_EXP1:2,V1_EXP2:3,V1_EXP3:4,V1_EXP4:5},QueryCoverPinEmbeddingVersion:{GRAPHSAGE_V3_4096_AVG:0,GRAPHSAGE_V3_2048_AVG:1,GRAPHSAGE_V4_2048_AVG:2},SmartNavboostQueryEmbeddingVersion:{V1_GRAPHSAGE_V4_2048:0,V1_GRAPHSAGE_V4_FLOAT:1},ProductCfEmbeddingVersion:{V1_CUCT_QUERY:0,V1_CUCT_CANDIDATE:1,V1_CUCV_QUERY:2,V1_CUCV_CANDIDATE:3},ProductLearnedRetrievalEmbeddingVersion:{V1_PDP_QUERY:0,V1_P2P_QUERY:3,V1_PDP_CANDIDATE:1,V1_EXP_PDP_CANDIDATE:2,V1_P2P_CANDIDATE:4,V1_HF_CANDIDATE:5},SkinToneBucket:{UNKNOWN:0,LIGHTEST:1,SECOND_LIGHTEST:2,SECOND_DARKEST:3,DARKEST:4},HairPattern:{UNKNOWN:0,STRAIGHT:1,WAVY:2,CURLY:3,KINKY_COILY:4,PROTECTIVE_STYLES:5,BALD_SHAVED:6},BodySize:{UNKNOWN:0,LOWER_RANGE:1,LOWER_MIDDLE_RANGE:2,UPPER_MIDDLE_RANGE:3,UPPER_RANGE:4},ShoppingStyleSignalCategories:{PRODUCT_SHOT:0,STOCK_PHOTO:1,HOME_DECOR_SCENE:2,FULL_OUTFIT:3,CROPPED_OUTFIT:4},TrendingFestival:{UNKNOWN:0,HALLOWEEN:1,THANKSGIVING:2,CHRISTMAS:3,NEWYEAR:4},EmbeddingValueType:{DOUBLE:0,FLOAT:1,SHORT:2,BINARY:3,FLOAT16:4},Gender:{UNSPECIFIED:0,FEMALE:1,MALE:2,ALL:3},GenderPreference:{MALE_ONLY:5,MALE_PERFERRED:4,NEUTRAL:3,FEMALE_PERFERRED:2,FEMALE_ONLY:1},UserSeqGenderProbVersion:{V1:0},UserSeqInterestPredVersion:{V1:0},SpamReason:{NONE:0,HIDDEN_FROM_PUBLIC:1,DEPRECATED_ROBOTS:2,TOO_MANY_REPINS_FROM_SPAM:3,DEPRECATED_TOO_MANY_MODIFIED_LINKS:4,DEPRECATED_TOO_MANY_BAD_LINKS:5},LinkBlockType:{SAFE:0,SUSPICIOUS:1,BLOCKED:2,PORN:3},HomefeedActionType:{REQUEST_PIN:0,REQUEST_PAGE:1,PIN_REPIN:2,PIN_CLOSEUP:3,PIN_HIDE:4,PIN_UPVOTE:5,PIN_CLICK_THROUGH:6,PIN_GRID_CLICK:12,PFY_PIN_THROUGH_BOARD_HIDE:7,PFY_PIN_THROUGH_PIN_HIDE:11},HomefeedSourceType:{PFY:0,INTEREST:1,FOLLOWING:2,DEPRECATED_RECOMMENDED_INTEREST:3,OTHER:4,EVERYTHING_FEED:5,PROMOTED_PIN:6,UNKNOWN:7,POPULAR_FEED:8},PinClusterLinksStatus:{EMPTY:0,NO_SERVABLE_LINKS:1,HAS_SERVABLE_LINKS:2},TextType:{TITLE:0,DESCRIPTION:1,COMMENT:2,MEDIA_OVERLAY:3,OCR:4},NavboostType:{NAVBOOST_7D:0,NAVBOOST_LONG:1,NAVBOOST_MEN:2,NAVBOOST_SEGMENTED:3,NAVBOOST_RELATED_PIN:4,NAVBOOST_CANONICAL:5,NAVBOOST_YEARLY:6,NAVBOOST_FRESH:7,NAVBOOST_REPIN:8,DYNAMIC_NAVBOOST_LONG:9,DYNAMIC_NAVBOOST_7d:10,NAVBOOST_SEGMENTED_REPIN_90D:11,NAVBOOST_GENDER_REPIN_90D:12,NAVBOOST_CANONICAL_COUNTRY_SEGMENTED:13,NAVBOOST_CANONICAL_GENDER_SEGMENTED:14,NAVBOOST_2_YEAR:15,NAVBOOST_2_YEAR_SEASONAL:16,NAVBOOST_2_YEAR_COUNTRY_SEGMENTED:17,NAVBOOST_2_YEAR_GENDER_SEGMENTED:18,NAVBOOST_2_YEAR_ADS:19,NAVBOOST_2_YEAR_ADS_COUNTRY_SEGMENTED:20,NAVBOOST_2_YEAR_ADS_GENDER_SEGMENTED:21,NAVBOOST_2_YEAR_HIGH_COVERAGE:22,NAVBOOST_2_YEAR_HIGH_COVERAGE_COUNTRY_SEGMENTED:23,NAVBOOST_2_YEAR_HIGH_COVERAGE_GENDER_SEGMENTED:24,NAVBOOST_FRESH_HIGH_COVERAGE:25,NAVBOOST_FRESH_HIGH_COVERAGE_GENDER_SEGMENTED:27,NAVBOOST_FRESH_HIGH_COVERAGE_COUNTRY_SEGMENTED:28,NAVBOOST_VIDEO:26,NAVBOOST_PRODUCT:29,NAVBOOST_PRODUCT_GENDER_SEGMENTED:30,NAVBOOST_PRODUCT_COUNTRY_SEGMENTED:31,NAVBOOST_LONGCLICK_90_DAY:32,NAVBOOST_LONGCLICK_90_DAY_GENDER_SEGMENTED:33,NAVBOOST_LONGCLICK_90_DAY_COUNTRY_SEGMENTED:34,NAVBOOST_PRODUCT_ITEM:35,NAVBOOST_PRODUCT_ITEM_GENDER_SEGMENTED:36,NAVBOOST_PRODUCT_ITEM_COUNTRY_SEGMENTED:37,NAVBOOST_PRODUCT_ITEM_HC:38,NAVBOOST_PRODUCT_ITEM_HC_GENDER_SEGMENTED:39,NAVBOOST_PRODUCT_ITEM_HC_COUNTRY_SEGMENTED:40,NAVBOOST_2YHC_REMOVE_STOP_WORDS:41,NAVBOOST_2YHC_REMOVE_STOP_WORDS_GENDER_SEGMENTED:42,NAVBOOST_2YHC_REMOVE_STOP_WORDS_COUNTRY_SEGMENTED:43,NAVBOOST_2YHC_SORTED_QUERY:44,NAVBOOST_2YHC_SORTED_QUERY_GENDER_SEGMENTED:45,NAVBOOST_2YHC_SORTED_QUERY_COUNTRY_SEGMENTED:46,NAVBOOST_2YHC_STEMMED_QUERY:47,NAVBOOST_2YHC_STEMMED_QUERY_GENDER_SEGMENTED:48,NAVBOOST_2YHC_STEMMED_QUERY_COUNTRY_SEGMENTED:49,NAVBOOST_2YHC_COMBINED_RELAXATION:59,NAVBOOST_2YHC_COMBINED_RELAXATION_GENDER_SEGMENTED:60,NAVBOOST_2YHC_COMBINED_RELAXATION_COUNTRY_SEGMENTED:61,NAVBOOST_FRESH_HC_REMOVE_STOP_WORDS:50,NAVBOOST_FRESH_HC_REMOVE_STOP_WORDS_GENDER_SEGMENTED:51,NAVBOOST_FRESH_HC_REMOVE_STOP_WORDS_COUNTRY_SEGMENTED:52,NAVBOOST_FRESH_HC_SORTED_QUERY:53,NAVBOOST_FRESH_HC_SORTED_QUERY_GENDER_SEGMENTED:54,NAVBOOST_FRESH_HC_SORTED_QUERY_COUNTRY_SEGMENTED:55,NAVBOOST_FRESH_HC_STEMMED_QUERY:56,NAVBOOST_FRESH_HC_STEMMED_QUERY_GENDER_SEGMENTED:57,NAVBOOST_FRESH_HC_STEMMED_QUERY_COUNTRY_SEGMENTED:58,NAVBOOST_FRESH_HC_COMBINED_RELAXATION:62,NAVBOOST_FRESH_HC_COMBINED_RELAXATION_GENDER_SEGMENTED:63,NAVBOOST_FRESH_HC_COMBINED_RELAXATION_COUNTRY_SEGMENTED:64},NavboostScoreType:{NAVBOOST_SCORE_WEIGHTED_RCTR:0,NAVBOOST_SCORE_COEC:1,NAVBOOST_SCORE_CLOSEUP:2,NAVBOOST_SCORE_RELATED_PINS:3,NAVBOOST_SCORE_CANONICAL_SEG:4,NAVBOOST_SCORE_2YEAR_SEG:5},CoOccurType:{FRESH:1,HIGH_COVERAGE_2YEAR_UNSEGMENTED:2,HIGH_COVERAGE_2YEAR_GENDER:3,HIGH_COVERAGE_2YEAR_COUNTRY:4},CoOccurObjectType:{PIN:1,PIN_JOIN:2,QUERY:3},AgeGroup:{AGE_UNDER_18:0,AGE_18_24:1,AGE_25_34:2,AGE_35_44:3,AGE_45_54:4,AGE_55_64:5,AGE_65_PLUS:6,AGE_UNDER_21:7,AGE_21_PLUS:8,AGE_MILLENNIAL:9,AGE_NOT_MILLENNIAL:10,AGE_UNSPECIFIED:11},ImageAestheticsVertical:{TRAVEL:0,FASHION:1},LinkScoreModelEpoch:{V0:0,V1:1,V2:2,V3:3},TrustworthyStatus:{UNKNOWN:0,TRUSTWORTHY:1,UNTRUSTWORTHY:2},ImageSourceCheckStatus:{NOT_CHECKED:0,CHECKED_EXISTED:1,CHECKED_NOT_EXISTED:2},ErrorPageType:{HARD_404:1,SOFT_404:2},CreatorMetaDataVersion:{V1:0},FunctionalType:{FUNCTIONAL:0,LINK_UNFUNCTIONAL:1,DOMAIN_UNFUNCTIONAL:2,IMAGE_UNFUNCTIONAL:3,VIDEO_UNFUNCTIONAL:4,SIG_LINK_UNFUNCTIONAL:5},UserState:{CORE:0,CASUAL:1,MARGINAL:2,DORMANT:3,RESURRECTED:4,NEW:5},NeardupSignalSource:{IMAGE_NEARDUP:0,VIDEO_NEARDUP:1},BodyImageAnalysisMethod:{DETECTED_REGION:1,HEURISTIC:2,EMBEDDING_BASED:3},RacyLabel:{NONE:0,SOFTCORE:1,HARDCORE:2},PornLabel:{NONE:0,HARDCORE:1,SOFTCORE:2},BoardLayout:{DEFAULT:0,PLACES:1},PinImpressionType:{UNKNOWN:0,HOME_FEED:1,CAT_FEED:2,SEARCH:3,CLOSEUP:4},PinQualityScoreVersion:{V0:0,V1:1},LinkQualityType:{PROMOTED:1,SUSPICIOUS:2,NO_IMAGE:5,NO_HTML:6,REPLACE_LISTED:7,GOOD:3,BAD:4,BLACKLISTED:8,DEAD:9},ObjectType:{PIN:1,BOARD:2,USER:3,CSR:4,TOPIC:5,ARTICLE:6,SEARCH_QUERY:7,USER_DID_IT_DATA:8,HASHTAG:9,STORY:10},ItemJoinDataVersion:{V1:1},ColorPaletteDim:{RED:0,ORANGE:1,YELLOW:2,LIME:3,GREEN:4,LIGHT_GREEN:5,TEAL:6,SKY:7,BLUE:8,VIOLET:9,PURPLE:10,PINK:11,MAGENTA:12,BLACK:13,WHITE:14,GRAY:15,GRAYSCALE:1e3,BLACKWHITE:1001},LinkJoinVersion:{LINK_JOIN_V1:0,LINK_JOIN_V2:1},PinJoinIndexSelectionStatus:{ACCEPTED:0,REJECTED_TOO_MANY_FLAGS:1,REJECTED_NO_ELIGIBLE_CANDIDATE:2},VaseLinkType:{BOARD_LINK:1,TOPIC_LINK:2,PROFILE_LINK:3},StlContentSourceType:{CANDIDATE_GENERATION:1,CURALATE:2,CURALATE_SPOTLIGHT:3,CURALATE_SPOTLIGHT_BOX:4,CURATION_BULK_UPLOAD:5,CURATION_BULK_UPLOAD_UNVERIFIED:6,OLAPIC:7,OLAPIC_SPOTLIGHT:8,PINTEREST_CLIENT:9,SHOPSTYLE:10,SHOPSTYLE_SPOTLIGHT:11},StlLiveState:{LIVE:1,DEAD:2},EmbeddingType:{PINJOIN_ANNOTATION_V3:0,PINJOIN_ANNOTATION_V3_EXP:1,PINJOIN_ANNOTATION_V5:2,PLACEHOLDER_3:3,PLACEHOLDER_4:4,PLACEHOLDER_5:5},NoIndexReason:{ZERO_TRAFFIC:0},UserLanguageVecVersion:{REPINED_PIN_LINK_LANG:1,CLICKED_PIN_LINK_LANG:2},UserCountryVecVersion:{REPINED_PIN_LINK_COUNTRY:1,CLICKED_PIN_LINK_COUNTRY:2},UserToIntentVersion:{UNKNOWN:0,PROTOTYPE:1,LIFESTYLE_GRAPH_V1:2},UserEmbeddingVersions:{TIME_DECAYED_GRAPHSAGE_V3_EMBEDDING:0,TIME_DECAYED_GRAPHSAGE_V4_EMBEDDING:1,CLUSTERED_GRAPHSAGE_V4_EMBEDDING:2,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_MEDOID:5,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_TD_MEDOID:6,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_LOW_TD_MEDOID:7,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_RNN_CENTROID:8,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_RNN_MEDOID:9,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_MEDOID_WITH_CLOSEUPS:10,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_LOW_TD_MEDOID_WITH_CLOSEUPS:11,GRU_V1_GRAPHSAGE_V4_EMBEDDING:3,SHOPPING_CLUSTERED_GRAPHSAGE_V4_EMBEDDING:4,MATCHED_TOPICS_GRAPHSAGE_V4_EMBEDDING:12,MULTI_USE_CASE_GRAPHSAGE_V4_EMBEDDING:13,MULTI_USE_CASE_GRAPHSAGE_V4_EMBEDDING_HIGH_DIM:14,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_MEDOID_LT1:15,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_MEDOID_LT2:16,CLUSTERED_GRAPHSAGE_V4_WARD_COSINE_75:17,CLUSTERED_GRAPHSAGE_V4_WARD_COSINE_85:18,CLUSTERED_GRAPHSAGE_V4_WARD_COSINE_90:19,MULTI_USE_CASE_GRAPHSAGE_V4_EMBEDDING_CONDITION_ON_1:20,MULTI_USE_CASE_GRAPHSAGE_V4_EMBEDDING_CONDITION_ON_2:21,MULTI_USE_CASE_GRAPHSAGE_V4_EMBEDDING_CONDITION_ON_WEIGHTED_SUM:22,MULTI_USE_CASE_GRAPHSAGE_V4_EMBEDDING_HIGH_DIM_CONDITION_ON_1:23,MULTI_USE_CASE_GRAPHSAGE_V4_EMBEDDING_HIGH_DIM_CONDITION_ON_2:24,MULTI_USE_CASE_GRAPHSAGE_V4_EMBEDDING_HIGH_DIM_CONDITION_ON_WEIGHTED_SUM:25,SYOP_CLUSTERED_GRAPHSAGE_V4_EMBEDDING:26,CONTEXT_GRAPHSAGE_V4_EMBEDDING:27,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_NATIVE_PIN_FOCUSED:28,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_MEDOID_LT1_WITH_PC:29,CLUSTERED_GRAPHSAGE_V4_EMBEDDING_MEDOID_LT_STORYPIN_FSV10S:30,PS_V3_USER_REPR:31,PS_V3_ALPHA_USER_REPR:32,PS_V3_BIGGER_USER_REPR:33,CLUSTERED_GRAPHSAGE_V5_EMBEDDING:34},ProductCategoryVersion:{UNKNOWN:0,P2PC_V2_HIGH_PRECISION:1,P2PC_V2_HIGH_RECALL:2,P2PC_V2_HIGH_PRECISION_ORGANIC:3,P2PC_V2_HIGH_RECALL_ORGANIC:4},InterestRecommendationReason:{DEFAULT:0,ACTIVITY:1,BOARD:2,FOLLOW:3,SEARCH:4,SEASONAL:5,P2P:6,P2P_DELTA:7,POPULAR:8,RANDOM_POPULAR:9,PINNERSAGE:10},InterestRelatedSources:{DEFAULT:0,RELATED_SEARCH:1,RELATED_BOARD:2,REALTED_FOLLOW:3,RELATED_ACTIVITY:4,RELATED_P2P:5,RELATED_P2P_DELTA:6,RELATED_HISTORY:7,RELATED_EMAIL_CLICK:8,RELATED_PUSH_OPEN:9,RELATED_PINNERSAGE:10},NotifInterestModelVersion:{UNKNOWN:0,DNN_V1:1,DNN_V2:2,PINNERSAGE_V3:3,DNN_V3:4},ScoringDetailsKeys:{RAW_STRING:0,BOARD_QUALITY:1,CAT_MATCH_SCORE:2,RAW_SCORE:3,FINAL_SCORE:4,FLOW_PENALTY:5,ANNOTATION_MATCH:6,ANNOTATION_SCORE:7,CO_OCCURRENCE_SCORE:8,TOPIC_MATCH:9,COMBINED_BOARD_PERF_SCORE:51,AGG_BOARD_PERF_SCORE:52,AVG_BOARD_PERF_SCORE:53,GENDER_PROB:54,PIN_QUALITY:10,P2P_CAT_MATCH:11,P2P_TEXT_MATCH:12,P2P_HASHTAG_MATCH:13,P2P_URL_MATCH:14,P2P_ANNOTATION_MATCH:15,P2P_TEXT_CONFIDENCE:16,P2P_RELEVANCE_SCORE:59,INTBRD_RELEVANCE:20,INTBRD_BOARD_QUALITY:21,INTBRD_BOARD_INDYRANK:22,INTBRD_BOARD_CATVEC_ENT:23,INTBRD_NUM_PINS_MATCHED:24,INTBRD_RAW_RELEVANCE:25,BOARD_RELEVANCE:30,BOARD_WEIGHT:31,PIN_IMPRESSIONS:40,PIN_REPINS:41,PIN_CLICKTHROUGHS:42,PIN_LONG_CLICKS:43,PIN_POPULARITY_SCORE:44,CO_OCCURRENCE_NUM_SAMPLES:45,CO_OCCURRENCE_COSINE_SIM:46,P2P_CLICK_COUNT:47,P2P_EXPECTED_CLICKS:48,P2P_COEC:49,PIN_ZSCORE:50,PIXIE_VISIT_COUNT:55,SOURCE_ACTION_TYPE:56,SOURCE_RECENCY:57,SOURCE_THROUGH_REWARD:58},ThroughObjectSource:{PIN_REPIN:0,PIN_CLICKTHROUGH:1,PIN_CLOSEUP:2,PIN_REPIN_EXPANSION:3,PIN_CLICKTHROUGH_EXPANSION:4,PIN_CLOSEUP_EXPANSION:5,PIN_CREATE:6,PIN_REACT:7,PIN_LIKE:8,PIN_SCREENSHOT:9,PIN_SAVE_TO_DEVICE:10},RecommendationSource:{B2B:0,USER_ACTIVITY:1,COOKIE:2,REALTIME_P2B:3,REALTIME_P2B_CLOSEUP:9,FALLBACK:4,U2RELATED_INTEREST:5,FBLIKE_TO_INTERESTS:6,CLICKTHROUGH:7,BOARD_FOLLOW:12,USER_FOLLOW:13,TOPIC_FOLLOW:14,LOCAL_B2B:8,LOCAL_CLICKTHROUGH:10,LOCAL_USER_ACTIVITY:11,SEARCH:15,RECBOOST_P2B:16,RECBOOST_CLICKTHROUGH:17,RECBOOST_USER_ACTIVITY:18,RECBOOST_CREATOR_BOARDS:22,RECOMMENDED_BOARDS:19,RECOMMENDED_CREATOR_BOARDS:20,ANNOTATION_REC_CREATOR_BOARDS:21,RECOMMENDED_ANNOTATION_BOARDS:23,RECOMMENDED_GRAPHSAGE_BOARDS:24,INTENTIONAL_DISTRIBUTION_RECOMMENDED_GRAPHSAGE_BOARDS:25,P2P_BOARD_OLDP2P:101,P2P_BOARD_CAND:102,P2P_NAVBOOST_CAND:103,P2P_PINPIN_REALTIME:104,P2P_VISUAL_LIVE:105,P2P_PROMOTED_INSERTION:106,P2P_COMMERCE_INSERTION:107,P2P_BOARD_LOCAL:108,P2P_SEARCH_CAND:109,P2P_SEARCHSAGE_CAND:164,P2P_RANDOMWALK_CAND:110,P2P_PIN2VEC_CAND:116,PIN_TO_PINS_NEARDUP_REC:111,P2P_FROM_SEARCH:112,P2P_VIDEO_INSERTION:113,P2P_FRESH_INSERTION:114,P2P_COMMERCE_SEARCH:115,P2P_P2B2P_FRESH:117,P2P_GEMINI_MUSE_CAND:118,P2P_GRAPHSAGE_CAND:119,P2P_RANDOMWALK_PRODUCT_CAND:120,P2P_GRAPHSAGE_PRODUCT_CAND:121,P2P_ITEMSAGE_PRODUCT_CAND:154,P2P_ITEMSAGE_HQM_PRODUCT_CAND:163,P2P_COLLABORATIVE_FILTERING_PRODUCT_CAND:157,P2P_LEARNED_RETRIEVAL_PRODUCT_CAND:160,P2P_NAVBOOST_PRODUCT_CAND:122,P2P_STL_SCENE_TO_STL_SCENE_INSERTION:123,P2P_ANNS_BASED_CAND:124,P2P_GRAPHSAGE_CREATORS_CAND:125,P2P_GRAPHSAGE_RECIPES_CAND:126,P2P_VISUAL_PRODUCT_CAND:127,P2P_GRAPHSAGE_STORY_PINS_CAND:128,P2P_MEDIASAGE_STORY_PINS_CAND:150,P2P_GRAPHSAGE_VIDEO_CAND:129,P2P_MEDIASAGE_VIDEO_CAND:151,P2P_SEARCH_NAVBOOST_CAND:130,P2P_COUNTRY_NAVBOOST_CAND:131,P2P_GEMINI_V5_VIDEO_CAND:132,P2P_GRAPHSAGE_DIY_CAND:133,P2P_VIDEO_NAVBOOST_CAND:134,P2P_SEARCH_PRODUCT_CAND:135,P2P_SMARTFEED_CAND:136,P2P_GRAPHSAGE_SHOPPABLE_INSPIRATION_CAND:137,P2P_GRAPHSAGE_FRESH_PRODUCT_CAND:138,P2P_GRAPHSAGE_VMP_PRODUCT_CAND:139,P2P_REVERSE_STELA:140,P2P_SEARCH_INTEREST_CAND:141,P2P_GRAPHSERVICE_VIDEO_CAND:142,P2P_GRAPHSAGE_MERCHANT_ACTIVATION_CAND:143,P2P_INTEREST_BASED_SPARK_CAND:144,P2P_STORY_NAVBOOST_CAND:145,P2P_EXPANDED_STORY_NAVBOOST_SEARCH_COENGAGEMENT_CAND:156,P2P_EXPANDED_STORY_NAVBOOST_CF_CAND:161,P2P_CREATOR_VIDEO:146,P2P_GRAPHSAGE_SHOPIFY_PRODUCT_CAND:147,P2P_TWO_TOWER_EMBEDDING_CAND:148,P2P_TWO_TOWER_EMBEDDING_WITH_USER_FEATURE_CAND:149,P2P_TWO_TOWER_PRODUCT_EMBEDDING_CAND:165,P2P_INTEREST_TRANSITION_CAND:152,P2P_CREATOR_CONTENT_UNIFIED_STORY_PIN_MANAS_CAND:153,P2P_NATIVE_CHECKOUT_PRODUCT_CAND:155,P2P_PRODUCT_XPIXIE:158,P2P_FOLLOWING_IDEA_PINS_CAND:159,P2P_UNKNOWN:162},RecommendationAlgo:{P2P_NAVBOOST_NO_MATCH:10,P2P_NAVBOOST_MATCH:11,P2P_NAVBOOST_FEATURE:12,P2P_RERANK_NONE:20,P2P_RERANK_OLDP2P:21,P2P_RERANK_OFFLINE:22,P2P_RERANK_REALPIN:23,P2P_RERANK_SHUFFLED:24,P2P_RERANK_RANDOM:25,P2P_RERANK_SHUFFLED_LOCAL:26,P2P_RERANK_SCORPION:27,P2P_HIGH_QUALITY_PIN_SWAP:30,P2P_LOCAL_BOOST:31,P2P_PRODUCT_FLOOR_BLENDER:32,P2P_RANDOM_PIN_SELECTION:33,P2P_RERANK_PROD_LOGGING:34,P2P_DEMOTE:35,P2P_SLOT_BLEND:36,P2P_DEMOTE_HARD_404:37,P2P_DEMOTE_SOFT_404:38,P2P_DEMOTE_OOS:39,P2P_DEMOTE_GIRAFFE:40,P2P_DEMOTE_IAB_404:41,P2P_DEMOTE_REPIN:42,P2P_DEMOTE_IMPRESSION:43,P2P_DEMOTE_INACCESSIBLE_LINK:44,P2P_DEMOTE_FLAGGED:45,P2P_DEMOTE_HIDDEN:46,P2P_DEMOTE_LOW_PIN_COHESION:47,P2P_DEMOTE_SLOW_LOADING_DOMAIN:48,P2P_DEMOTE_NON_FUNCTIONAL_META_DATA:49,P2P_DEMOTE_LOW_RELEVANCE:50,P2P_DEMOTE_TRANSITORY_NONTRUSTWORTHY_PRODUCT:51,P2P_DEMOTE_PERMANENT_NONTRUSTWORTHY_PRODUCT:52,P2P_DEMOTE_DOMAIN_QUALITY:53,P2P_DEMOTE_BING_BOOSTED:54,P2P_FLOOR_BLENDER:55,P2P_ROUND_ROBIN:56,P2P_SPACING_RULE:57,P2P_NO_RELEVANCE_SCORE_FROM_RELEVANCE_MODEL:58,P2P_NO_RELEVANCE_SCORE_FROM_RANKING_MODEL:59},RelatedModule:{RELATED_PINS:1,PRODUCTS:2,DOMAIN:3,RECIPES:4,DIY:5,CREATOR_CONTENT:6,REVERSE_STELA:7,HOMEFEED:8,VIRTUAL_TRY_ON:9,USE_CASES:10,PRICE_LIMIT:11,BROAD_INTEREST:12,PERSONALIZED_PRODUCTS_BOARD:13,MOST_CONSIDERED:14,STORIES:15,PRODUCT_COLLABORATIVE_FILTERING_CLICK:16,PRODUCT_COLLABORATIVE_FILTERING_PURCHASE:18,PRODUCT_COLLABORATIVE_FILTERING_FREQUENTLY_BOUGHT_TOGETHER:21,SIMILAR_MERCHANT:17,PERSONAL_BOUTIQUE:19,COMPLEMENTARY:20,PIVOT_STORIES:22,INTERESTS:23,CREATOR_CONTENT_PORTAL:24,SHUFFLE_PIN_CUTOUT_MATCH:25,SHUFFLE_COLLAGE:26,NONE:100},STORY_TYPE:{RELATED_DOMAIN_CAROUSEL:0,RELATED_MOST_CONSIDERED_CAROUSEL:1,RELATED_PRODUCTS_FEED_HEADER:3,RELATED_CF_CLICK_CAROUSEL:4,RELATED_PRICE_CAROUSEL:6,RELATED_SIMILAR_MERCHANT_CAROUSEL:13,RELATED_CF_PURCHASE_CAROUSEL:14,RELATED_PRICE_UPSELL:15,RELATED_MOST_CONSIDERED_UPSELL:16,RELATED_DOMAIN_UPSELL:17,RELATED_CF_CLICK_GRID_SECTION:18,RELATED_CF_CLICK_UPSELL:19,RELATED_CF_PURCHASE_UPSELL:20,RELATED_SIMILAR_MERCHANT_UPSELL:21,RELATED_PRODUCTS_GRID_SECTION:22,RELATED_PRODUCTS_UPSELL:23,RELATED_CF_PURCHASE_GRID_SECTION:24,RELATED_CF_FREQUENTLY_BOUGHT_TOGETHER_CAROUSEL:25,RELATED_CF_FREQUENTLY_BOUGHT_TOGETHER_GRID_SECTION:26,RELATED_CF_FREQUENTLY_BOUGHT_TOGETHER_UPSELL:27,RELATED_PRICE_GRID_SECTION:28,RELATED_MOST_CONSIDERED_GRID_SECTION:29,RELATED_DOMAIN_GRID_SECTION:30},GramType:{UNIGRAM:0,BIGRAM:1,TRIGRAM:2},LinkLocaleSource:{ATLAS:0,TLD:1,PATH:2,L2:3,L1:4,DOMAIN:5,COOKIE:6,CLUSTER_COOKIE:7,DERIVED_FROM_LANGUAGE:8,IP_GEO:9,PIN_CREATE:10,DOMAIN_WHITELIST:11,CLICK_THROUGH:12,WHOIS:13,DIALECT:14},LinkJoinSource:{COOKIE_LINK_PERF:0,LINK_PERF:1,RICH_PIN_DATA:2,RICH_PIN_URL:3,PIN_JOIN:4,CSR_ONLY_PIN_JOIN:5,CSR_DATA:6,ANCHOR_ANNOTATION:7,TEXT_CATEGORY:8,CSR_STATS:9,INSTARANK:10,IN_APP_BROWSER_DATA:11,CONTENT_KEYWORDS:12},ClickThroughAction:{ALLOW:0,BLOCK:1},PinQualityState:{UNKNOWN:0,AUTHORIZED:1,NORMAL:2,QUESTIONABLE:3,BLOCK:4},LinkType:{ORGANIC:0,PRODUCT:1,WHITELISTED:2,RECIPE:3,DIY:4,TRAVEL:5},LinkPriority:{HIGH:0,ORGANIC:1,LOW:2,SKIP:3},CrawlFilterReason:{NOT_FILTERED:0,FILTERED_FEED_INGESTION_DOMAIN:1,FILTERED_BLACKLISTED_DOMAIN:2,FILTERED_MEDIA_EXTENSIONS_URL:3,FILTERED_INVALID_URL:4},SapphireSearch:{NONE:0,DEBUG:1,V1_WHITELISTED:2,V2_WHITELISTED:3,V3_WHITELISTED:4},SensitiveTermCateogry:{CONDITIONAL:0,EATING_DISORDER:1,PORN:2,CHILD_SAFETY:3,EMOTIONAL_DISDRESS_OR_SUICIDE:4,BUY_OR_SELL_WEAPON_ILLEGALLY:5,REPORTED_PINS:6,HATE_SPEECH:7,EATING_DISORDER_FUNDING:8},SensitiveTermCategory:{CONDITIONAL:0,EATING_DISORDER:1,PORN:2,CHILD_SAFETY:3,EMOTIONAL_DISTRESS_OR_SUICIDE:4,BUY_OR_SELL_WEAPON_ILLEGALLY:5,REPORTED_PINS:6,HATE_SPEECH:7,EATING_DISORDER_FUNDING:8,BLOCKED_COMMUNITY_GUIDELINES:9,DRUGS:10,MEDICAL_MISINFORMATION:11,SELF_HARM:12,DEPRESSION:13,SUICIDE:14,BODY_IMAGE:15,WILDLIFE_EXPLOITATION:16,US_CENSUS_2020:17,VOTING_US_ELECTION_2020:18,COVID_VACCINE:19,FR_2022_ELECTION:20,PH_2022_ELECTION:21,AU_2022_ELECTION:22,BR_2022_ELECTION:23,SMOKING_CESSATION:24,US_ELECTION:25},SeverityLevels:{ABUSIVE:0,SENSITIVE:1,BRAND_UNSAFE:2,CUSTOM_ENFORCEMENT:3},AdvisoryLevels:{CONDITIONAL:0,EATING_DISORDER:1,PORN:2,CHILD_SAFETY:3,EMOTIONAL_DISDRESS_OR_SUICIDE:4,BUY_OR_SELL_WEAPON_ILLEGALLY:5},FreshPinAge:{LESS_THAN_ONE_WEEK:0,LESS_THAN_ONE_MONTH:1,LESS_THAN_SIX_MONTHS:2,LESS_THAN_ONE_YEAR:3},IndexEventType:{PIN_JOINER:1},IndexDataEventType:{INSTANT_PIN_JOIN:1},TermVectorSource:{QUERY_TOKENS:1,IMAGE_TOKENS:2},CoterieReleaseVersion:{UNKNOWN:0,COTERIES_RC13:14,COTERIES_RC14:15,COTERIES_RC15:16,COTERIES_RC16:17,COTERIES_RC17:18,COTERIES_RC18:19,COTERIES_RC18B:20,COTERIES_RC19:21,COTERIES_RC19B:22,COTERIES_RC15_SURVEY:23,COTERIES_RC20:24,COTERIES_RC21:25,COTERIES_RC22:26,COTERIES_RC23:27,COTERIES_RC2:1,COTERIES_RC4:3,COTERIES_RC3:2,COTERIES_RC5:4,COTERIES_RC5A:5,COTERIES_RC5B:6,COTERIES_RC6:7,COTERIES_RC8:9,COTERIES_RC7:8,COTERIES_RC9:10,COTERIES_RC10:11,COTERIES_RC11:12,COTERIES_RC12:13},UniversalBlendingFeature:{MAIN_PINS_RELEVANCE_AVG:0,MAIN_PINS_RELEVANCE_MIN:1,MAIN_PINS_RELEVANCE_MAX:2,VIDEO_RELEVANCE_AVG:100,VIDEO_RELEVANCE_MIN:101,VIDEO_RELEVANCE_MAX:102,VIDEO_NUM:103,PRODUCT_RELEVANCE_AVG:200,PRODUCT_RELEVANCE_MIN:201,PRODUCT_RELEVANCE_MAX:202,PRODUCT_NUM:203,CONTEXTUAL_PINS_RELEVANCE_AVG:300,CONTEXTUAL_PINS_RELEVANCE_MIN:301,CONTEXTUAL_PINS_RELEVANCE_MAX:302,CONTEXTUAL_PINS_UNCAPPED_SIZE:303,PINNER_AUTHORITY_NUM_FOLLOWERS:304,PINNER_AUTHORITY_IS_PRIMARY_COUNTRY_MATCH:305,PINNER_AUTHORITY_IS_PRIMARY_LANGUAGE_MATCH:306,VIDEO_INTENT:400,PRODUCT_INTENT:401,PINNER_AUTHORITY_INTENT:402},UniversalBlenderFeature:{MAIN_PINS_RELEVANCE_AVG:0,MAIN_PINS_RELEVANCE_MIN:1,MAIN_PINS_RELEVANCE_MAX:2,VIDEO_RELEVANCE_AVG:3,VIDEO_RELEVANCE_MIN:4,VIDEO_RELEVANCE_MAX:5,VIDEO_NUM:6,PRODUCT_RELEVANCE_AVG:7,PRODUCT_RELEVANCE_MIN:8,PRODUCT_RELEVANCE_MAX:9,PRODUCT_NUM:10,CONTEXTUAL_PINS_RELEVANCE_AVG:11,CONTEXTUAL_PINS_RELEVANCE_MIN:12,CONTEXTUAL_PINS_RELEVANCE_MAX:13,CONTEXTUAL_PINS_UNCAPPED_SIZE:14,PINNER_AUTHORITY_NUM_FOLLOWERS:15,PINNER_AUTHORITY_IS_PRIMARY_COUNTRY_MATCH:16,PINNER_AUTHORITY_IS_PRIMARY_LANGUAGE_MATCH:17,VIDEO_INTENT:18,VIDEO_INTENT_V2:21,PRODUCT_INTENT:19,PRODUCT_INTENT_QUERY:24,PRODUCT_INTENT_USER:25,PINNER_AUTHORITY_INTENT:20,QUERY_INTEREST:22,HAS_HIGH_VIDEO_INTENT_INTEREST:23},CommerceRankingOption:{DEFAULT:0,PRODUCT:1,PRICE_HIGH_TO_LOW:2,PRICE_LOW_TO_HIGH:3,ARRIVAL_MOST_RECENT:4,ARRIVAL_LEAST_RECENT:5},MerchantType:{DEFAULT:0,VERIFIED:1,QUEEN_MAKER:2,SUPPLEMENTARY:3},PinSearchRetrievalSource:{TEXT_RETRIEVAL:0,GRAPHSAGE_EMBEDDING_RETRIEVAL:1,UNKNOWN:2},SearchOneBarModuleAnimation:{NONE:0,MODE:1,QUERY:2,RESULTS:3},SearchOneBarModuleType:{FILTER:0,SHOP_MODE:1,PROFILE_MODE:2,GUIDE:3,PERSONALIZATION:4,SKIN_TONE:5,HAIR_TYPE:6},SearchOneBarModuleIcon:{NONE:0,SHOP_BAG:1,SHOP_TAB:2,FILTER:3,EYES:4,LIPS:5,PROFILE:6},UserToKeywordVersion:{UNKNOWN:0,PROTOTYPE:1,LOGISTIC_V1:2}}},397066:(e,t,i)=>{i.d(t,{b:()=>c,h:()=>u});var n=i(983722),a=i(768559),r=i(43760),o=i(170168),s=i(619937),l=i(48714),d=i(366284);const c=({href:e,pinId:t,pin:i,location:r,auxData:c},u)=>{if(i&&i.is_promoted){var p,_,h,m;const P=(0,a.Z)({boardUrl:null===(p=i.board)||void 0===p?void 0:p.url,callToCreateSourcePinId:i.call_to_create_source_pin_id,location:r,pinId:i.id,pinnerUserName:null===(_=i.pinner)||void 0===_?void 0:_.username,storyPinDataId:i.story_pin_data_id,trackingParams:i.tracking_params,trackingParamsMap:i.tracking_params_map}),b=(0,l.nS)({url:e,pinId:t,csrId:null,clientTrackingParams:P,auxData:c}),T=(0,n.Z)();if((0,d.G6)(null!==(h=null==T?void 0:T.userAgent.browserName)&&void 0!==h?h:"")){var g,v;const{group:n}=null!==(g=null==T?void 0:T.experimentsClient.checkExperiment("m10n_event_conversion_measurement"))&&void 0!==g?g:{},a=null!=T&&null!==(v=T.userAgent)&&void 0!==v&&v.browserVersion?T.userAgent.browserVersion:"0.0",r=parseFloat(a.split(".")[0]+"."+a.split(".")[1]);if(void 0!==i.campaign_id&&r>=14.1&&["enabled_safari"].includes(n)){var y;const n=i.attribution_source_id?((e,t,i)=>{const n=document.createElement("a");return n.setAttribute("href",t),n.setAttribute("target","_blank"),n.setAttribute("rel","noopener nofollow noreferrer"),n.style.cursor="pointer",n.style.display="block",n.setAttribute(s.$N.ATTRIBUTION_SOURCE_ID,e),n.setAttribute(s.$N.ATTRIBUTE_DESTINATION,i),n.setAttribute(s.$N.ATTRIBUTE_ON,i),n.click(),e})(i.attribution_source_id,b,e):((e,t,i)=>{const n=document.createElement("a");n.setAttribute("href",t),n.setAttribute("target","_blank"),n.setAttribute("rel","noopener nofollow noreferrer"),n.style.cursor="pointer",n.style.display="block";const a=""+(e%32*8+Math.floor(((new Date).getTime()-16409952e5)/864e5)%8);return n.setAttribute(s.$N.ATTRIBUTION_SOURCE_ID,a),n.setAttribute(s.$N.ATTRIBUTE_DESTINATION,i),n.setAttribute(s.$N.ATTRIBUTE_ON,i),n.click(),a})(null!==(y=i.pin_promotion_id)&&void 0!==y?y:0,b,e);return u({event_type:101,clientTrackingParams:P,object_id_str:t||"",aux_data:{pin_id:t||"",click_measurement_ppid:i.pin_promotion_id||"",click_measurement_campaign_id:i.campaign_id||"",is_pcm:!0,attribution_source_id:n,page_url:e}}),!0}}else if((0,d.i7)(null!==(m=null==T?void 0:T.userAgent.browserName)&&void 0!==m?m:"")){var E,f;const{group:n}=null!==(E=null==T?void 0:T.experimentsClient.checkExperiment("m10n_event_conversion_measurement_chrome"))&&void 0!==E?E:{},a=null!=T&&null!==(f=T.userAgent)&&void 0!==f&&f.browserVersion?parseInt(T.userAgent.browserVersion.split(".")[0],10):0;if(void 0!==i.attribution_source_id&&a>=101&&["enabled"].includes(n)){var S;const n=((e,t,i)=>{const n=new URL(`${o.C0}/attribution_source/`);n.searchParams.set(s.NR.ATTRIBUTION_SOURCE_EVENT_ID,e),n.searchParams.set(s.NR.ATTRIBUTION_DESTINATION,i),n.searchParams.set(s.NR.ATTRIBUTION_EXPIRY,""+s.uV);const a=document.createElement("a");return a.setAttribute("href",t),a.setAttribute("target","_blank"),a.setAttribute("rel","noopener nofollow noreferrer"),a.style.cursor="pointer",a.style.display="block",a.setAttribute(s.NR.ATTRIBUTION_SOURCE,n.toString()),a.click(),e})(null!==(S=i.attribution_source_id)&&void 0!==S?S:"0",b,e);return u({event_type:101,clientTrackingParams:P,object_id_str:t||"",aux_data:{pin_id:t||"",click_measurement_ppid:i.pin_promotion_id||"",click_measurement_campaign_id:i.campaign_id||"",is_arapi:!0,attribution_source_id:n,page_url:e}}),!0}}}return!1},u=({href:e,pinId:t,pin:i,location:n,auxData:o},s)=>{if("undefined"!=typeof window&&window.Windows)(0,r.Z)({url:e,pinId:t,pin:i,location:n,auxData:o});else{var d,u;if(c({href:e,pinId:t,pin:i,location:n,auxData:o},s))return;(0,l.Gj)({url:e,pinId:t,csrId:null,clientTrackingParams:(0,a.Z)({boardUrl:null==i||null===(d=i.board)||void 0===d?void 0:d.url,callToCreateSourcePinId:null==i?void 0:i.call_to_create_source_pin_id,location:n,pinId:null==i?void 0:i.id,pinnerUserName:null==i||null===(u=i.pinner)||void 0===u?void 0:u.username,storyPinDataId:null==i?void 0:i.story_pin_data_id,trackingParams:null==i?void 0:i.tracking_params,trackingParamsMap:null==i?void 0:i.tracking_params_map}),auxData:o})}}},485710:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),a=i(898781),r=i(883119),o=i(785893);function s({children:e,heading:t}){const[i,s]=(0,n.useState)(!1),l=(0,a.ZP)();return(0,o.jsxs)(r.kC,{direction:"column",dataTestId:"collapsible-layout",children:[(0,o.jsxs)(r.X6,{align:"start",size:"400",accessibilityLevel:2,children:[(0,o.jsx)(r.xu,{"data-test-id":"collapsible-layout-heading",display:"inlineBlock",children:t}),(0,o.jsx)(r.xu,{"data-test-id":"collapse-button",display:"inlineBlock",marginStart:1,children:(0,o.jsx)(r.hU,{accessibilityLabel:l.bt("显示更多详细信息下拉菜单", "Show more details drop-down", "Closeup.common.CollapsibleLayout", undefined, true),icon:i?"arrow-forward":"arrow-down",onClick:()=>{s(!i)},size:"md"})})]}),!i&&(0,o.jsx)(n.Fragment,{children:e})]})}},319530:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),a=i(898781),r=i(883119),o=i(785893);function s({children:e,maxLines:t=10}){const i=(0,n.useRef)(null),[s,l]=(0,n.useState)({isFirstLoad:!0,isTruncated:!1}),d=(0,a.ZP)(),{isFirstLoad:c,isTruncated:u}=s;return(0,n.useEffect)((()=>{var e;c&&i.current&&((e=i.current).offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&l({isFirstLoad:!1,isTruncated:!0})}),[c,u]),(0,o.jsxs)(r.xu,{position:"relative","data-test-id":"truncated-text",children:[(0,o.jsx)(r.xv,{ref:i,lineClamp:c||u?t:0,inline:!0,children:e}),u&&(0,o.jsx)(r.xu,{position:"absolute",display:"block",width:"100%",bottom:!0,children:(0,o.jsxs)(r.kC,{flex:"grow",children:[(0,o.jsx)(r.xu,{display:"inlineBlock",width:"120px",height:"14px"}),(0,o.jsx)(r.xu,{"data-test-id":"more-button",display:"inlineBlock",dangerouslySetInlineStyle:{__style:{background:"white"}},children:(0,o.jsx)(r.iP,{fullWidth:!1,onTap:()=>l({...s,isTruncated:!1}),children:(0,o.jsx)(r.xv,{inline:!0,size:"200",weight:"bold",children:d.bt(" … more", " … more", "closeup.TruncatedTextContent.moreLabel", undefined, false)})})}),(0,o.jsx)(r.xu,{display:"inlineBlock",flex:"grow",height:"14px",dangerouslySetInlineStyle:{__style:{background:"white"}}})]})})]})}},391254:(e,t,i)=>{i.d(t,{Z:()=>r});i(441143);var n=i(785893);class a{static factory(e){return e instanceof a?e:new a(String(e))}constructor(e){this._private_safe_value=e.trim().replace(">",">").replace("<","<").replace("&","&").replace('"','"').replace("'","'")}toString(){return this._private_safe_value}}function r(e){const{css:t,unsafeCSS:i,...r}=e,o=String(t||"")||i||"";return!!o?(0,n.jsx)("style",{...r,dangerouslySetInnerHTML:{__html:String(a.factory(o))}}):null}},310227:(e,t,i)=>{i.d(t,{Dv:()=>r,Ml:()=>o,Oc:()=>n,mv:()=>a});const n=16,a=4,r={SAVED:"rgba(0, 0, 0, 0.33)",VISUAL:"rgba(0, 0, 0, 0.1)",LEGO_WASH:"rgba(0, 0, 0, 0.4)"},o=120},512176:(e,t,i)=>{i.d(t,{Z:()=>c});var n=i(667294),a=i(898781),r=i(112690),o=i(967181),s=i(883119),l=i(785893);const d={sm:12,md:16,lg:20,xl:24};function c({isVerifiedMerchant:e,size:t,showText:i,showVerifiedIdentity:c,inspirationalBadges:u,inspirationalBadgesColor:p}){const _=(0,a.ZP)(),[h,m]=(0,n.useState)(!1),{dangerousInlineStyle:g,iconColor:v}=(0,o.W)(!!e),y=(0,r.Z)();return(0,l.jsxs)(n.Fragment,{children:[(0,l.jsx)(s.iP,{onTap:()=>{y({component:13534,element:11717,event_type:102}),m(!0)},rounding:"circle",children:(0,l.jsxs)(s.xu,{alignItems:"center",dangerouslySetInlineStyle:g,display:"flex","data-test-id":"verified-badge-icon",children:[(0,l.jsx)(s.JO,{accessibilityLabel:e?_.bt("商家验证徽章图标", "Merchant verification badge icon", "merchantVerification.badge.icon", undefined, true):_.bt("徽章图标", "Badge icon", "merchantVerification.badge.icon", undefined, true),icon:"workflow-status-ok",color:v,inline:!0,size:d[t]}),i&&!c&&(0,l.jsx)(s.xu,{marginStart:2,children:(0,l.jsx)(s.xv,{color:"shopping",inline:!0,weight:"bold",children:(0,l.jsx)(s.xu,{dangerouslySetInlineStyle:g,children:_.bt("经过验证的商家", "Verified merchant", "creator.header.verifiedMerchant", undefined, true)})})})]})}),(e||i&&!c)&&(0,l.jsx)(o.Z,{showModal:h,setShowModal:m,inspirationalBadges:u,inspirationalBadgesColor:p})]})}},967181:(e,t,i)=>{i.d(t,{W:()=>u,Z:()=>p});var n=i(667294),a=i(121151),r=i(898781),o=i(112690),s=i(966113),l=i(752403),d=i(883119),c=i(785893);const u=e=>{const t=e?"shopping":"error";return{iconColor:t,dangerousInlineStyle:{__style:{color:t}}}};function p({inspirationalBadges:e=[],inspirationalBadgesColor:t,showModal:i,setShowModal:p}){const _=(0,r.ZP)(),[h,m]=(0,n.useState)(!0),{dangerousInlineStyle:g,iconColor:v}=u(!0),y=(0,o.Z)();return(0,n.useEffect)((()=>{i&&h&&(m(!1),y({event_type:13,component:13534}))}),[i]),(0,c.jsx)(a.ZP,{"data-test-id":"modal",isOpen:i,mobileAccessibilityCloseIconLabel:_.bt("关闭", "Close", "Close modal window", undefined, true),onDismiss:()=>{y({component:13534,element:11716,event_type:102}),p(!1)},type:"verified_merchant_modal",children:(0,c.jsx)(d.xu,{padding:3,children:(0,c.jsxs)(d.xu,{display:"flex",direction:"column",padding:2,"data-test-id":"verified-badge-modal",children:[(0,c.jsx)(d.xu,{display:"flex",dangerouslySetInlineStyle:g,justifyContent:"center",children:(0,c.jsx)(d.JO,{accessibilityLabel:_.bt("商家验证徽章图标", "Merchant verification badge icon", "creator.verifiedMerchant.modalIcon", undefined, true),color:v,icon:"workflow-status-ok",size:24})}),(0,c.jsx)(d.xu,{marginTop:4,children:(0,c.jsx)(d.xv,{color:"shopping",weight:"bold",align:"center",children:(0,c.jsx)(d.xu,{dangerouslySetInlineStyle:g,children:_.bt("经过验证的商家", "Verified merchant", "creator.verifiedMerchant.modalHeader", undefined, true)})})}),(0,c.jsx)(d.xu,{marginTop:4,marginBottom:4,children:(0,c.jsx)(d.xv,{align:"center",overflow:"normal",children:_.bt("该零售商符合 Pinterest 的商家指南", "This retailer meets Pinterest's Merchant Guidelines", "creator.verifiedMerchant.modalText.", undefined, true)})}),e.map((e=>(0,c.jsxs)(d.xu,{display:"flex",direction:"column",marginTop:4,children:[(0,c.jsx)(d.kC,{alignItems:"stretch",justifyContent:"center",children:(0,c.jsx)(d.xv,{overflow:"noWrap",size:"100",weight:"bold",children:(0,c.jsx)(d.xu,{display:"inlineBlock",rounding:1,paddingX:2,paddingY:2,dangerouslySetInlineStyle:{__style:(0,l.ym)(t)},"data-test-id":"verified-badge-modal-inspirational-badge",children:e.label})})}),(0,c.jsx)(d.xu,{marginTop:2,children:(0,c.jsx)(d.xv,{align:"center",overflow:"normal",children:e.description})})]},e.id))),(0,c.jsx)(d.xu,{display:"flex",marginTop:8,justifyContent:"center",width:"100%","data-test-id":"verified-badge-modal-learn-more",children:(0,c.jsx)(d.zx,{role:"link",accessibilityLabel:_.bt("了解更多", "Learn more", "creator.verifiedMerchant.buttonText", undefined, true),target:"blank",size:"lg",href:s.vB,text:_.bt("了解更多", "Learn more", "creator.verifiedMerchant.buttonText", undefined, true)})})]})})})}},619937:(e,t,i)=>{i.d(t,{$N:()=>p,GY:()=>l,MZ:()=>o,NR:()=>c,Vn:()=>d,fm:()=>n,kM:()=>r,q6:()=>a,qp:()=>s,uV:()=>u});const n={DOWNLOAD_TEMPLATE:"DOWNLOAD_TEMPLATE",UPLOAD_TEMPLATE:"UPLOAD_TEMPLATE",HISTORY:"HISTORY",RESOURCES:"RESOURCES"},a={GENERAL:"GENERAL",CAMPAIGNS:"CAMPAIGNS",AD_GROUPS:"AD_GROUPS",ADS:"ADS",KEYWORDS:"KEYWORDS",PRODUCT_GROUPS:"PRODUCT_GROUPS",ERROR_CODES:"ERROR_CODES"},r={BILLING_HISTORY:"BILLING_HISTORY",BILLING_FORMS:"BILLING_FORMS",ORDER_LINES:"ORDER_LINES",PROMOTIONS:"PROMOTIONS",DOCUMENTS:"DOCUMENTS",PREPAID_CAMPAIGN_SPEND:"PREPAID_CAMPAIGN_SPEND_SUMMARY"},o={GOOGLE_TAG_MANAGER:"Google Tag Manager",SHOPIFY:"Shopify",WOO_COMMERCE:"WooCommerce",WORDPRESS:"WordPress",SQUARESPACE:"Squarespace",WEEBLY:"Weebly",TEALIUM:"Tealium",MAGENTO:"Magento",ECWID:"Ecwid",BIG_COMMERCE:"BigCommerce",PREMMERCE:"Premmerce"},s={PINTEREST_TAG:"PINTEREST_TAG",PINTEREST_TAG_EVENTS:"PINTEREST_TAG_EVENTS",PINTEREST_TAG_HEALTH:"PINTEREST_TAG_HEALTH",CONVERSION_HEALTH:"CONVERSION_HEALTH",CONVERSION_UPLOAD:"CONVERSION_UPLOAD",UPLOAD_HISTORY:"UPLOAD_HISTORY",PCA_UPLOAD_HISTORY:"PCA_UPLOAD_HISTORY",PCA_UPLOAD:"PCA_UPLOAD",CONVERSIONS_API:"CONVERSIONS_API",CONVERSIONS_API_ACCESS_TOKEN:"CONVERSIONS_API_ACCESS_TOKEN",CONVERSIONS_API_DEDUPLICATION:"CONVERSIONS_API_DEDUPLICATION",CONVERSIONS_API_MANAGER:"CONVERSIONS_API_MANAGER",CONVERSIONS_API_MANUAL_SETUP_FLOW:"CONVERSIONS_API_MANUAL_SETUP_FLOW",PINTEREST_EVENTS_OVERVIEW:"PINTEREST_EVENTS_OVERVIEW",PINTEREST_EVENT_HISTORY:"PINTEREST_EVENT_HISTORY"},l={PINTEREST_TAG_DASHBOARD:"PINTEREST_TAG_DASHBOARD",PINTEREST_TAG_LANDING:"PINTEREST_TAG_LANDING",PINTEREST_TAG_INSTRUCTIONS:"PINTEREST_TAG_INSTRUCTIONS",CONVERSION_UPLOAD_LANDING:"CONVERSION_UPLOAD_LANDING",CONVERSION_UPLOAD_VALIDATION:"CONVERSION_UPLOAD_VALIDATION",CONVERSION_UPLOAD_HISTORY:"CONVERSION_UPLOAD_HISTORY",PCA_UPLOAD_HISTORY:"PCA_UPLOAD_HISTORY",PCA_UPLOAD_LANDING:"PCA_UPLOAD_LANDING",PCA_UPLOAD_VALIDATION:"PCA_UPLOAD_VALIDATION"},d={UNREAD:"UNREAD",READ:"READ",ACCEPTED:"ACCEPTED",REJECTED:"REJECTED",DISMISSED:"DISMISSED",INVALID:"INVALID",MUTED:"MUTED",SNOOZED:"SNOOZED",PMP_REPORTED:"PMP_REPORTED",EMAILED:"EMAILED",BULK_DOWNLOADED:"BULK_DOWNLOADED",FILTERED:"FILTERED",PUSHED:"PUSHED"},c={ATTRIBUTION_DESTINATION:"destination",ATTRIBUTION_EXPIRY:"expiry",ATTRIBUTION_SOURCE:"attributionsrc",ATTRIBUTION_SOURCE_EVENT_ID:"source_event_id"},u=604800,p={ATTRIBUTION_SOURCE_ID:"attributionsourceid",ATTRIBUTE_DESTINATION:"attributiondestination",ATTRIBUTE_ON:"attributeon"}},283698:(e,t,i)=>{function n(e){return"undefined"!=typeof window&&Object.prototype.hasOwnProperty.call(window,"requestAnimationFrame")||e&&e(),window.requestAnimationFrame((()=>{window.requestAnimationFrame((()=>{e&&e()}))}))}i.d(t,{Z:()=>n})},366284:(e,t,i)=>{i.d(t,{G6:()=>r,i7:()=>o,oi:()=>n,u$:()=>a,un:()=>l,vU:()=>s});const n=Object.freeze({OTHER:0,CHROME:1,SAFARI:2,IE:3,FIREFOX:4,OPERA:5,EDGE:6}),a=e=>{switch(!0){case e.includes("Chrome"):return n.CHROME;case e.includes("Safari"):return n.SAFARI;case e.includes("Firefox"):return n.FIREFOX;case e.includes("Opera"):return n.OPERA;case e.includes("IE"):return n.IE;case e.includes("Edge"):return n.EDGE;default:return n.OTHER}};function r(e){return a(e)===n.SAFARI}function o(e){return a(e)===n.CHROME}function s(e){return a(e)===n.FIREFOX}function l(e){return a(e)===n.EDGE}},436851:(e,t,i)=>{i.d(t,{$:()=>a,d:()=>n});const n=e=>/instagram/i.test(e||""),a=e=>(e||"").includes("[Pinterest/iOS]")||(e||"").includes("[Pinterest/Android]")},752403:(e,t,i)=>{i.d(t,{Bu:()=>h,Dm:()=>s,I:()=>v,NG:()=>p,QP:()=>c,S4:()=>d,Xe:()=>u,_f:()=>_,eT:()=>m,hm:()=>g,yQ:()=>l,ym:()=>E});var n=i(642345);const a=Object.freeze({AFRICAN_AMERICAN_OR_BLACK:"african_american_or_black",BLACK_AFRICAN_DIASPORA:"black_african_diaspora",HISPANIC_OR_LATINX:"hispanic_or_latinx",NATIVE_OR_INDIGENOUS:"native_or_indigenous",ABORIGINAL_OR_INDIGENOUS:"aboriginal_or_indigenous",NATIVE_AMERICAN_OR_ALASKA_NATIVE_OR_INDIGENOUS_PEOPLES:"native_american_or_alaska_native_or_indigenous_peoples",ASIAN_OR_PACIFIC_ISLANDERS:"asian_or_pacific_islanders",ASIAN:"asian",LGBTQ:"lgbtq",MIDDLE_EASTERN:"middle_eastern",TURKISH:"turkish",ROMA:"roma",MIDDLE_EASTERN_TURKISH_ROMA:"middle_eastern_turkish_roma",NORTH_AFRICAN:"north_african",MIDDLE_EASTERN_OR_NORTH_AFRICAN:"middle_eastern_or_north_african",NONE:"none"}),r=Object.freeze({PERSON_OF_COLOR:"person_of_color",LGBTQ:"lgbtq",DISABILITY:"disability",WOMAN:"woman",NONE:"none"}),o=Object.freeze({INVESTED_IN_GOOD:"invested_in_good",ECO_FRIENDLY:"eco_friendly",RESPONSIBLY_SOURCED:"responsibly_sourced",INCLUSIVE:"inclusive",PERSONAL_TOUCH:"personal_touch"}),s=[...Object.keys(a).map((e=>a[e])),...Object.keys(r).map((e=>r[e]))],l=[...Object.keys(o).map((e=>o[e]))],d=3,c=["#EFEFEF","#F8E3D1","#F6F1C1","#DDEEAF","#C9F2EE","#DBD5F4","#EFBCEE"],u={business_diversity_labels:[],created_at:"",disapproval_reasons:[],is_inspirational:!1,review_criteria:[],review_labels:[],updated_at:"",inspirational_badge_selection:{badgeColor:c[0],badgeOptOut:[]},is_eligible_for_storefront_badges:!1,badge_details:[],profile_badges:[]},p="https://help.pinterest.com/article/merchant-details",_="https://help.pinterest.com/business/article/add-merchant-details-to-your-profile";function h({verifiedMerchant:e}){var t,i;const n=null==e?void 0:e.isVerifiedMerchant,a=null==e||null===(t=e.inspirational_signal)||void 0===t?void 0:t.is_inspirational,r=null==e||null===(i=e.inspirational_signal)||void 0===i?void 0:i.is_eligible_for_storefront_badges;return Boolean(n&&a&&r)}function m(e){return e.badge_details?e.badge_details.map((e=>e.id)):[]}function g(e){return(null==e?void 0:e.profile_badges)||[]}function v(e,t,i){return t&&i?t.map((e=>i.find((t=>t.id===e.trim())))).filter(Boolean):[]}function y(e){const t=(0,n.oo)(e);if(!t)return"white";const[i,a,r]=t;return(0,n.DW)(i,a,r)<=n.I?"white":"black"}function E(e){const t=e||c[0];return{backgroundColor:t,color:y(t)}}},768559:(e,t,i)=>{i.d(t,{Z:()=>l});var n=i(826067);const a=/\/today\/(article|best|trending)\/[\w-]+\/(\d+)/,r=/\/discover\/article\/[\w-]+\/(\d+)/,o=(e,t)=>t?e.substring(t.length).split("/")[0]:e,s=({boardUrl:e,callToCreateSourcePinId:t,path:i,pinId:s,pinnerUserName:l,query:d,search:c,storyPinDataId:u})=>{var p,_;if(!i)return"";let h="";switch(i){case"/":case"/homefeed/":return"UserHomefeedResource";case l&&`/${l}/pins/`:return"UserPinsResource";case l&&`/${l}/`:case/\/_activity\//.test(i)&&i:return"UserActivityPinsResource";case/\/_created\//.test(i)&&i:return u?"UserStoryPinsFeedResource":"UserActivityPinsResource";case/\/_community\//.test(i)&&i:return"UserDiscoveredPinsResource";case/\/_shop\//.test(i)&&i:return"StoreFrontFeedResource";case/\/_saved\//.test(i)&&i:return"BoardlessPinsResource";case l&&`/${l}/_shopping_list/`:return"ShoppingListFeedResource";case/\/visual-search\//.test(i)&&i:return"VisualLiveSearchResource";case/\/pin\//.test(i)&&i:h="/pin/";const m=o(i,h);if(s!==m)return t?`ApiResource_callToCreatePins_${m}`:`RelatedPinFeedResource_${m}`;break;case/\/search\//.test(i)&&i:if(c){return`SearchResource_${((0,n.mB)(c,{shouldDecode:!1}).q||"").toLowerCase()}`}if(d)return`SearchResource_${encodeURIComponent(d.q||"").toLowerCase()}`;break;case r.test(i)&&i:return`ExploreArticleResource_${(null===(p=i.match(r))||void 0===p?void 0:p[2])||"unknown"}`;case/\/discover\/article\//.test(i)&&i:h="/discover/article/";return`ExploreArticleResource_${o(i,h)}`;case/\/categories\//.test(i)&&i:h="/categories/";return`CategoryFeedResource_${o(i,h)}`;case/\/discover\/topics\//.test(i)&&i:return"CategoryFeedResource";case/\/news_hub\//.test(i)&&i:h="/news_hub/";return`NewsHubDetailsResource_${o(i,h)}`;case/\/_tools\/more-ideas\//.test(i)&&i:return"BoardContentRecommendationResource";case/\/topics\//.test(i)&&i:h="/topics/";return`TopicFeedResource_${o(i,h)}`;case l&&`/${l}/products/`:return"StoreFrontFeedResource";case/\/source\//.test(i)&&i:h="/source/";return`DomainFeedResource_${o(i,h)}`;case/\/explore\//.test(i)&&i:h="/explore/";return`SearchResource_${o(i,h)}`;case e:case!!e&&/\/more_ideas\//.test(i)&&i:return"BoardFeedResource";case e&&i.indexOf(e)>-1&&i:return"BoardSectionPinsResource";case/\/following\//.test(i)&&i:return"FollowingFeedResource";case/\/brand_catalog\//.test(i)&&i:return"BrandCatalogFeedResource";case a.test(i)&&i:return`TodayArticleFeedResource_${(null===(_=i.match(a))||void 0===_?void 0:_[2])||"unknown"}`;case/\/today\//.test(i):return"TodayTabResource";case/\story_feed\//.test(i)&&i:if(c){const{feed_type:e,request_params:t}=(0,n.mB)(c);return`StoryFeedResource_${e}_${t}`}}return""},l=({boardUrl:e,callToCreateSourcePinId:t,location:i,pinId:n,pinnerUserName:a,previousHistory:r,storyPinDataId:o,trackingParams:l,trackingParamsMap:d={}})=>{if(!n||!l||!i)return;if(!d)return`${l}~0`;const{pathname:c,search:u,query:p}=i,_=s({boardUrl:e,callToCreateSourcePinId:t,path:c,pinId:n,pinnerUserName:a,query:p,search:u,storyPinDataId:o,trackingParams:l,trackingParamsMap:d}),h=Object.keys(d);let m;if((c||"").startsWith("/pin/")){const e=h.find((e=>"PinResource"!==e));m=e?d[e]:d.PinResource}else m=d[_];let g;if(!m&&r&&r.length){const i=(e=>{let t=null==e?void 0:e.pathname;return t?(t.match(/\/search\//)&&null!=e&&e.search&&(t+=e.search),t.toLowerCase()):""})(r[r.length-1].location);g=s({boardUrl:e,callToCreateSourcePinId:t,path:i,pinId:n,pinnerUserName:a,query:p,search:u,storyPinDataId:o,trackingParams:l,trackingParamsMap:d}),m=d[g]}return m||(m=`${l||""}~0`),m}},642345:(e,t,i)=>{i.d(t,{DW:()=>s,I:()=>o,oo:()=>r,vq:()=>a});const n=e=>{const t=e.toString(16);return 1===t.length?"0"+t:t},a=(e,t,i)=>"#"+n(e)+n(t)+n(i),r=e=>{const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t&&[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]},o=.18,s=(e,t,i)=>.2126*(e/255)**2.2+.7151*(t/255)**2.2+.0721*(i/255)**2.2},745760:(e,t,i)=>{i.d(t,{Ch:()=>p,nc:()=>S,a:()=>P,ZP:()=>b,cA:()=>E,li:()=>f,h1:()=>c});var n=i(682492),a=i.n(n),r=i(214494),o=i(594881),s=i(706922);var l=i(385740),d=i(172045);const c=()=>1e6*Date.now(),u=[6945,170],p={3829:"articleImpressions",18:"pinImpressions",3700:"boardImpressions",3803:"searchImpressions",170:"storyImpression",3704:"userImpressions"},_=[4700,4701,4702,4703,7042,7043],h=e=>function(e){let t=e.length;for(let i=e.length-1;i>=0;i-=1){const n=e.charCodeAt(i);n>127&&n<=2047?t+=1:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&(i-=1)}return t}(JSON.stringify(e)),m=e=>u.includes(e);let g;function v(){const e=new Date;g?g&&g.getUTCDate()!==e.getUTCDate()&&(g=e,(0,o.Z)()):g=e}function y(e){return e.reduce(((e,t)=>{const i=e.find((n=t,e=>e.view_type===n.viewType&&e.view_parameter===n.viewParameter&&e.event_type===n.eventType&&e.object_id_str===n.objectIdStr&&(0,s.Z)(e.view_data,n.viewData)));var n;if(i&&!m(t.eventType))t.impressionType in i.event_data?i.event_data[t.impressionType].push(t.eventData):i.event_data[t.impressionType]=[t.eventData];else{const i={event_type:t.eventType,view_parameter:t.viewParameter,view_type:t.viewType,view_data:t.viewData,time:c(),component:t.component,clientUUID:(0,d.Z)(),aux_data:t.auxData||{},appState:t.appState,event_data:{[t.impressionType]:m(t.eventType)?{...t.eventData,...(t.eventData||{})[t.impressionType]}:[t.eventData]},object_id_str:t.objectIdStr||void 0};e.push(i)}return e}),[])}const E=e=>{const t=e.event_type,i=_.includes(t),n=(0,l.BE)();return!(!i&&13!==t&&!n)},f=(e,t)=>{const i=e.event_type,n=_.includes(i),r=(0,l.BE)();return n?e:13===i&&e.view_type?(null==t||t({viewType:e.view_type,viewParameter:e.view_parameter,viewData:null!=r&&r.viewData?a()(r.viewData,e.view_data):a()({},e.view_data)}),e):!r||e.view_type&&e.view_parameter?e:{...e,view_type:r.viewType,view_parameter:r.viewParameter,view_data:e.view_data?a()(e.view_data,r.viewData):a()({},r.viewData)}},S=(e,t)=>{var i,n;const a=e.component,r=e.object_id_str,o=e.view_type,s=e.event_type,l=e.appState;return null!==(i=((null===(n=e.event_data)||void 0===n?void 0:n[t])||[]).map((i=>({auxData:e.aux_data,...a?{component:a}:{},eventData:i,...s?{eventType:s}:{},...o?{viewType:o}:{},viewData:e.view_data,viewParameter:e.view_parameter,...r?{objectIdStr:r}:null,impressionType:t,appState:l}))))&&void 0!==i?i:[]},P=(e,t)=>({...e.component?{component:e.component}:{},...e.object_id_str?{objectIdStr:e.object_id_str}:null,...e.view_type?{viewType:e.view_type}:{},eventType:e.event_type,auxData:e.aux_data,impressionType:t,viewData:e.view_data,viewParameter:e.view_parameter,eventData:e.event_data});function b(){let e=[],t=[],i=0;function n(){return[...e,...y(t)]}function a(){e=[],t=[],i=0}function o(e=!1){const t=n();t.length&&(r.Z.create("ContextLogResource",{events:t,report_time:c()}).callCreate({async:!e,showError:!1}),a(),v())}return{flushContextEvents:o,getContextEvents:n,logContextEvent:function({object_id_str:t,...n}){const a={aux_data:{},event_data:{},view_data:{},...n,time:c(),clientUUID:(0,d.Z)(),...t?{object_id_str:t}:null};a.aux_data=function(e){if(!e)return e;const{element:t,eventData:i,component:n,objectId:a,view:r,viewParameter:o,viewData:s,durationNs:l,pairId:d,clientTrackingParams:c,...u}=e;return u}(a.aux_data),i+h(a)>20480&&o(!1),e.push(a),v()},logImpression:function(e){i+h(e)>20480&&o(!1),t.push(e)},resetEventsBuffer:a}}},112690:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(407043);const a=()=>(0,n.v)().logContextEvent},81226:(e,t,i)=>{function n(e){const t=Math.round(e/1e3),i=t%60;return Math.floor(t/60)+":"+(i<10?"0":"")+i}i.d(t,{Z:()=>n})},816068:(e,t,i)=>{i.d(t,{Z:()=>n});const n=e=>Math.floor(new Date(e).getTime()/1e3)},722767:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),a=i(973935);function r(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class o extends n.Component{constructor(...e){super(...e),r(this,"observer",null),r(this,"handleVisibilityChanged",((e,t)=>{this.props.onVisibilityChange(e,t)}))}componentDidMount(){const e=a.findDOMNode(this);e instanceof HTMLElement&&(this.node=e),this.node&&(this.observer=new window.IntersectionObserver(this.handleVisibilityChanged,this.props.options),this.observer.observe(this.node))}componentWillUnmount(){this.observer&&(this.observer.unobserve(this.node),delete this.observer)}render(){return n.Children.only(this.props.children)}}const s=o},903095:(e,t,i)=>{i.d(t,{Mi:()=>a,lO:()=>r});var n=i(425288);const{Provider:a,useMaybeHook:r}=(0,n.Z)("pageContext")},332611:(e,t,i)=>{i.d(t,{CK:()=>p,N:()=>v,Qu:()=>_,UT:()=>u,YX:()=>g,d9:()=>h,fO:()=>l,kd:()=>m,pz:()=>d});var n=i(214494),a=i(764990),r=i(172071),o=i(957191);let s;const l=(e,t)=>i=>{const a=t?{extra_context:e,targeting:t}:{extra_context:e};return n.Z.create("UserExperiencePlatformResource",a).callGet().then((e=>e.resource_response?i((0,o.OD)(e.resource_response.data)):void 0))},d=(e,t,i,r)=>(l,d)=>{if(t)return Promise.resolve();if(r&&(s=r),1===e.length){const t=e[0],n=d().experiences[t],r=(null==n?void 0:n.extraContext)||null;if(JSON.stringify(r)===JSON.stringify(i)||(0,a.E3)(n)&&!(i&&Object.keys(i).length>0))return Promise.resolve()}return n.Z.create("UserExperienceResource",{placement_ids:e,extra_context:i||null,targeting:r}).callGet().then((e=>e.resource_response?l((0,o.cL)(e.resource_response.data)):void 0))},c=(e,t)=>(i,a,r,d=!1,c,u)=>(p,_)=>{const{experiences:h,experiencesMulti:m}=_();let g=null,v=!0;var y;d||(v=h[i]&&h[i].experience_id===a,g=v?h[i]:Array.isArray(m[i])&&(null===(y=m[i])||void 0===y?void 0:y.find((e=>e.experience_id===a))));if(g&&g.experience_id===a||d&&i&&a){const d=n.Z.create(e,{placed_experience_id:`${i}%3A${a}`,extra_context:null!=c?c:{},targeting:u}),_=v?o.Yb:o.xW;switch(t){case"dismissed":return d.callDelete().then((()=>{p(_(i,a,t)),p(l(void 0,s))}));case"completed":return d.callUpdate().then((()=>{r||(p(_(i,a,t)),p(l(void 0,s)))}));case"viewed":return p(_(i,a,t)),d.callUpdate().then((()=>{1000162===i&&p(l())}));case"completedWithoutHomefeed":return d.callUpdate().then((()=>{r||p(_(i,a,t))}));default:return Promise.resolve()}}return Promise.resolve()},u=c("UserExperienceViewedResource","viewed"),p=c("UserExperienceCompletedResource","completed"),_=c("UserExperienceResource","dismissed"),h=c("UserExperienceCompletedResource","completedWithoutHomefeed"),m=(e,t)=>(i,a)=>{const{experiences:o}=a(),s=o[e];s&&s.triggerable_placed_exps&&s.triggerable_placed_exps.length&&s.triggerable_placed_exps.forEach((i=>{const[,a]=i.split(":");let o=t;s.metadata&&s.metadata[a]&&(o={...t,...s.metadata[a]}),n.Z.create("UserExperienceTriggerResource",{placed_experience_id:i.replace(":","%3A"),extra_context:o}).callUpdate().then((()=>{((e,t,i={})=>{r.Z.increment(`${e}.${t}`,1,i)})("experienceservice","experimentTriggerCall.1",{placement_id:e,experience_id:a})}))}))},g=e=>(t,i)=>{t(m(e));const{experiences:n}=i();return n[e]},v=(e,t,i)=>n=>{i&&(s=i),n(m(e,t)),t&&Object.keys(t).length>0&&n(d([e],!1,t,i))}},764990:(e,t,i)=>{function n(e){return!!e&&0!==e.type}i.d(t,{A0:()=>r,E3:()=>n,MQ:()=>a});const a=(e,t,i)=>{const a=e[i];return t[i]&&n(a)?a:null};function r(e){var t;return null===(t=e.display_data)||void 0===t?void 0:t.anchor}},207737:(e,t,i)=>{i.d(t,{$S:()=>n,V$:()=>a,_4:()=>o,iY:()=>s,mR:()=>r});const n="REFRESH_ALL_EXPERIENCES_MULTI",a="UPDATE_EXPERIENCE_MULTI",r="FETCH_EXPERIENCES",o="REFRESH_ALL_EXPERIENCES",s="UPDATE_EXPERIENCE"},957191:(e,t,i)=>{i.d(t,{NW:()=>o,OD:()=>l,Yb:()=>s,cL:()=>d,xW:()=>r});var n=i(214494),a=i(207737);const r=(e,t,i)=>({type:a.V$,payload:{placementId:e,experienceId:t,status:i}}),o=e=>t=>n.Z.create("UserExperiencePlatformResource",{extra_context:e,multiExperiencePlatform:!0}).callGet().then((e=>{return e.resource_response?t((i=e.resource_response.data,{type:a.$S,payload:{experiencesMulti:i}})):void 0;var i})),s=(e,t,i)=>({type:a.iY,payload:{placementId:e,experienceId:t,status:i}}),l=e=>({type:a._4,payload:{experiences:e}}),d=e=>({type:a.mR,payload:{experiences:e}})},378518:(e,t,i)=>{i.d(t,{_:()=>d,a:()=>c});var n=i(667294),a=i(702664),r=i(618446),o=i.n(r),s=i(780280),l=i(332611);const d=({extraContext:e,id:t,shouldUsePlacedExperience:i=!0})=>{const r=(0,n.useRef)(),d=(0,a.useDispatch)(),{isBot:c}=(0,s.B)(),u=(0,a.useSelector)((e=>e.experiences[t]));return(0,n.useEffect)((()=>{d((0,l.kd)(t))}),[d,u,t]),(0,n.useEffect)((()=>{i||o()(r.current,e)||(d((0,l.pz)([t],c,e)),r.current=e)}),[d,e,c,t,i]),u},c=e=>(d(e),(0,a.useSelector)((t=>t.experiencesMulti[e.id])))},373420:(e,t,i)=>{i.r(t),i.d(t,{default:()=>d});var n=i(667294),a=i(124580),r=i(223815),o=i(968121),s=i(883119),l=i(785893);function d({_dangerouslyDisableScrollBoundaryContainer:e,accessibilityModalLabel:t,align:i,allowClickAndDrag:d,allowMediaPlay:c,allowScroll:u,children:p,closeOnOutsideClick:_,footer:h,heading:m,onDismiss:g,role:v,size:y,subHeading:E}){(0,n.useEffect)((()=>(a.Z.pause(),function(){a.Z.resume()})),[]);return(0,l.jsx)(s.mh,{zIndex:o.b7,children:(0,l.jsx)(r.Z,{allowClickAndDrag:d,allowEsc:!0,allowMediaPlay:c,allowScroll:u,children:(0,l.jsx)(s.u_,{_dangerouslyDisableScrollBoundaryContainer:e,accessibilityModalLabel:t,align:i,closeOnOutsideClick:_,heading:m,footer:h,onDismiss:()=>{a.Z.resume(),g()},role:v,size:y,subHeading:E,padding:"none",children:p})})})}},430322:(e,t,i)=>{i.r(t),i.d(t,{default:()=>m});var n=i(667294),a=i(124580),r=i(283698),o=i(223815),s=i(50286),l=i(898781),d=i(965900),c=i(780280),u=i(883119),p=i(968121),_=i(867820),h=i(785893);function m({_dangerouslyDisableScrollBoundaryContainer:e,accessibilityModalLabel:t,align:i="center",allowScroll:m=!1,children:g,closeOnOutsideClick:v=!0,footer:y,heading:E,mobileAccessibilityCloseIconLabel:f,mobileHideCloseIcon:S,mobileIsFullscreen:P,isOpen:b,mobileIsSlideUp:T,modalStyle:A,onDismiss:I,overrideZDepth:x,subHeading:C,type:O}){const R=(0,l.ZP)(),{isRTL:w}=(0,c.B)(),k=(0,n.useRef)(!1),[D,N]=(0,n.useState)(!1),{setAppFocusState:L}=(0,d.I)(),M=(0,s.ZP)();(0,n.useEffect)((()=>{(0,_.My)(`mweb_unauth.mobile_modal.${O||"unknown_type"}.did_mount.is_open.${String(!!b)}`)}),[b,O]),(0,n.useEffect)((()=>(k.current=(0,r.Z)((()=>{k.current&&N(!0)})),()=>{"undefined"!=typeof window&&Object.prototype.hasOwnProperty.call(window,"cancelAnimationFrame")&&k.current&&(window.cancelAnimationFrame(k.current),k.current=null)})),[]),(0,n.useEffect)((()=>(b?(a.Z.pause(),L(!1)):(a.Z.resume(),L(!0)),()=>{b&&(a.Z.resume(),L(!0))})),[L,b]);const j=b&&!m;(0,n.useEffect)((()=>(j&&(()=>{if(document.body){const{body:{style:e}}=document;e.overflow="hidden",e.touchAction="none"}})(),()=>{j&&(()=>{if(document.body){const{body:{style:e}}=document;e.overflow="visible",e.touchAction="auto"}})()})),[j]);const U=(0,p.bf)();if(!b)return null;const F=T?(0,p.Vf)({isFullscreen:P,isTablet:"tablet"===M,isShowing:D,type:O}):(0,p.JN)({isFullscreen:P,isTablet:"tablet"===M,modalStyle:A,type:O});return(0,h.jsx)(o.Z,{children:(0,h.jsx)(u.mh,{children:(0,h.jsxs)(u.xu,{"aria-label":t,display:"inlineBlock",zIndex:x?new u.Ry(x):p.ZM,position:"relative",role:"dialog",children:[(0,h.jsx)(u.iP,{accessibilityLabel:R.bt("移动端注册模态框遮罩层", "Mobile Signup Modal Mask", "mweb.signup_modal.mask", undefined, true),onTap:({event:e})=>{const t=e,i=I?"with":"without",n=O||"unknown_type";(0,_.tj)(`mweb_unauth.mobile_modal.wash_tap.${n}.${i}_dismissal`,{x:t.clientX,y:t.clientY}),v&&I&&I()},tapStyle:"none",children:(0,h.jsx)(u.xu,{position:"fixed",top:!0,left:!0,dangerouslySetInlineStyle:U})}),(0,h.jsxs)(u.xu,{position:"fixed",color:"default",dangerouslySetInlineStyle:F,children:[(0,h.jsxs)(u.kC,{alignItems:"center",justifyContent:"start",width:"100%",gap:{row:2,column:0},children:[f&&!S?(0,h.jsx)(u.xu,{padding:2,"data-test-id":"mobile-modal-cancel-button",children:(0,h.jsx)(u.hU,{accessibilityLabel:f,iconColor:"darkGray",icon:"cancel",onClick:I,padding:4,size:"sm"})}):null,E?(0,h.jsx)(u.kC.Item,{flex:"grow",children:(0,h.jsx)(u.kC,{direction:"column",alignItems:"center",justifyContent:"center",children:(0,h.jsxs)(u.xu,{dangerouslySetInlineStyle:f&&!S?(0,p.ju)(w):{__style:{}},children:[P?E:(0,h.jsx)(u.xv,{align:i,weight:"bold",size:"400",children:E}),C?(0,h.jsx)(u.xv,{align:i,children:C}):null]})})}):null]}),(0,h.jsxs)(u.xu,{overflow:e?"visible":"auto",children:[g,y]})]})]})})})}},934494:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(995228),a=i(785893);function r({useGraphQLAdapter:e,useLegacyAdapter:t}){const i=({children:t,data:i})=>t({enabled:!0,data:e(i)}),r=({children:e,data:i})=>e({enabled:!1,data:t(i)});return function({children:e,input:t}){const o=t.enabled?(0,a.jsx)(i,{data:t.data,children:e}):(0,a.jsx)(r,{data:t.data,children:e});return t.suspense?(0,a.jsx)(n.Z,{fallback:t.suspense.fallback,children:o}):o}}},12610:(e,t,i)=>{function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i.d(t,{Z3:()=>p,LU:()=>_,ZP:()=>h});const a=1e6,r=window.location.search.includes("debug_impressions=1")||document.cookie&&document.cookie.indexOf("debug_impressions=1")>-1,o={paused:"Pause",resumed:"Resume",stopped:"Flush",enter:"Enter viewport",exit:"Exit viewport"},s={},l={background:"#FF8A8A",transform:"scale(.98)"},d={init:e=>({transform:`scale(${s[e]?.8:.99})`,transition:"transform .2s ease-in-out",background:"#8E8E8E"}),[o.enter]:{background:"#A0DCC8",transform:"scale(.99)"},[o.exit]:l,[o.stopped]:l,[o.paused]:l,[o.resumed]:{background:"#0FA573",transform:"scale(.99)"}};class c{constructor(e){n(this,"setMutationObserver",(e=>(this.mutationObserver=e,this))),n(this,"startMutationObserver",(e=>{this.mutationObserver&&this.mutationObserver.observe(this.node,e)})),n(this,"stopMutationObserver",(()=>{this.mutationObserver&&this.mutationObserver.disconnect()})),n(this,"handleIntersectionChange",(e=>{const t=e.intersectionRatio>0||e.isIntersecting;if(t&&!this.inViewport){const e=Date.now();this.startTime=e,this._debug(o.enter,{startTime:e,node:this.node}),this.enterCallbacks.forEach((e=>e()))}else!t&&this.inViewport&&(this._debug(o.exit,!0),this.exitCallbacks.forEach((e=>e(this.toJSON()))));this.inViewport=t})),this.enterCallbacks=[],this.exitCallbacks=[],this.inViewport=!1,this.node=e,this.startTime=0,this.debugId=""}onEnterViewport(e){return this.enterCallbacks.push(e),this}onExitViewport(e){return this.exitCallbacks.push(e),this}setDebugId(e){return this.debugId=e,r&&Object.assign(this.node.style,d.init(e)),this}pause(){return this.inViewport&&(this._debug(o.paused,!0),this.exitCallbacks.forEach((e=>e(this.toJSON())))),this}resume(){if(this.inViewport){const e=Date.now();this._debug(o.resumed,{startTime:e}),this.startTime=e}return this}stop(e){return this.inViewport&&(this._debug(o.stopped,!0),this.exitCallbacks.forEach((t=>t(this.toJSON(e))))),this}toJSON(e=""){return{startTime:this.startTime*a,endTime:Date.now()*a,forcedExit:e}}toDebugJSON(){return{pinID:this.debugId,startTime:this.startTime,endTime:Date.now(),duration:(Date.now()-this.startTime)/1e3+" seconds"}}_debug(e,t){if(r)switch(window.console.log(`📌 ${e} -- ${this.debugId}`),!0===t&&window.console.log(this.toDebugJSON()),"object"==typeof t&&window.console.log(t),d[e]&&Object.assign(this.node.style,d[e]),e){case o.flushed:case o.paused:case o.exit:s[this.debugId]=!0}}}function u(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const p=!0,_=!1;class h{constructor(){u(this,"_delegateChange",(e=>{e.forEach((e=>{const t=this.activeImpressions.get(e.target);t&&t.handleIntersectionChange(e)}))})),u(this,"_handleMutations",((e,t)=>{const i=this.mutationObservers.get(t);i&&i.offsetHeight<1&&i&&this.stop(i,"removed")})),this.activeImpressions=new Map,this.mutationObservers=new Map,this.bottomHeight=0,this.bottomObstructions=new Set,this.pausePriority=_,this.observer=new window.IntersectionObserver(this._delegateChange),this.paused=!1,this.topHeight=0,this.topObstructions=new Set,this.inExperiment=!1}setExperimentStatus(e){this.inExperiment!==e&&(this.inExperiment=e)}stop(e,t=""){const i=this.activeImpressions.get(e);i&&(i.stop(t),this.mutationObservers.delete(i.mutationObserver),i.stopMutationObserver(),this.activeImpressions.delete(e),this.observer.unobserve(e))}start(e){let t=this.activeImpressions.get(e);if(!t){t=new c(e),this.activeImpressions.set(e,t),this.observer.observe(e);const i=(e,t)=>this._handleMutations(e,t);t.setMutationObserver(new window.MutationObserver(i)),this.mutationObservers.set(t.mutationObserver,e),t.startMutationObserver({subtree:!0,attributes:!0,attributeFilter:["style"]})}return t}pause(e=p){this.paused||(Array.from(this.activeImpressions.values()).forEach((e=>e.pause())),this.paused=!0,this.pausePriority===_&&(this.pausePriority=e))}resume(e=p){e===_&&this.pausePriority===p||this.paused&&(Array.from(this.activeImpressions.values()).forEach((e=>e.resume())),this.paused=!1,this.pausePriority=_)}addObstruction(e,t){"top"===e?this.topObstructions.add(t):"bottom"===e&&this.bottomObstructions.add(t),this._calculateRootMargins()}removeObstruction(e,t){"top"===e?this.topObstructions.delete(t):"bottom"===e&&this.bottomObstructions.delete(t),this._calculateRootMargins()}updateObstructions(){this._calculateRootMargins()}_calculateRootMargins(){const e=Array.from(this.topObstructions).reduce(((e,t)=>{const{bottom:i}=t.getBoundingClientRect();return i>e?i:e}),0),t=window.innerHeight-Array.from(this.bottomObstructions).reduce(((e,t)=>{const{top:i}=t.getBoundingClientRect();return i<e?i:e}),window.innerHeight);if(e!==this.topHeight||t!==this.bottomHeight){const i={rootMargin:`${-e}px 0px ${-t}px`};this.observer.disconnect(),this.observer=new window.IntersectionObserver(this._delegateChange,i),Array.from(this.activeImpressions.values()).forEach((e=>this.observer.observe(e.node))),this.topHeight=e,this.bottomHeight=t}}}},124580:(e,t,i)=>{i.d(t,{Z:()=>n});const n=new(i(12610).ZP)},926275:(e,t,i)=>{i.d(t,{Z:()=>n});function n(e){if(!e)return!1;const t=new Date(e);return t.setDate(t.getDate()+28),(new Date).getTime()<t.getTime()}},166300:(e,t,i)=>{i.d(t,{Z:()=>l});var n=i(50286),a=i(883119),r=i(444445),o=i(134879),s=i(785893);const l=({children:e,roundedForLargeDevice:t})=>{const i="phone"!==(0,n.ZP)()&&t;return(0,o.V)()?(0,s.jsx)(a.xu,{marginStart:-r.D6,marginEnd:-r.D6,rounding:i?6:void 0,overflow:i?"hidden":void 0,children:(0,s.jsx)(o.C,{value:!1,children:e})}):e}},48714:(e,t,i)=>{i.d(t,{nS:()=>S,iw:()=>b,gV:()=>E,G3:()=>T,lI:()=>A,Gj:()=>P,Jd:()=>y,$3:()=>f});var n=i(231486),a=i(56641),r=i(768559),o=i(250059);const s=e=>"string"!=typeof e&&e?e.state:null;var l=i(643913),d=i(547239),c=i(508847),u=i(102500),p=i(43760),_=i(579164),h=i(333155),m=i(397066),g=i(623568),v=i(226198);const y=()=>{window&&window.focus(),document.activeElement&&document.activeElement.blur()},E=({isOffsiteUrl:e,event:t})=>!e&&(t.metaKey||t.ctrlKey),f=({location:e,pin:{id:t,is_downstream_promotion:i,promoter:n},surface:a})=>!(0,g.jL)(i,n)&&(({location:e,pinId:t,surface:i})=>{const n=Boolean(i),a=h.ZF.includes(i),r=e.pathname.includes(t);return n&&!a||r})({location:e,pinId:t,surface:a}),S=e=>{const t=Math.round(1e3*Math.random())+"",i=Math.round(1e3*Math.random())+"";n.t8((0,v.GS)(t),i);const a=`${t}-${i}`,{queryParams:r,url:o}=e;let s={token:a,url:o};if(!r){const{pinId:t,csrId:i,clientTrackingParams:n,auxData:a}=e;s={...s,pin:null!=t?t:void 0,csr:i&&!t?i:void 0,client_tracking_params:n,aux_data:a?JSON.stringify(a):void 0}}r&&(s={...s,...r});return`/offsite/?${(0,l.Z)(s)}`},P=e=>{(0,a.Z)(S(e),!0)},b=async({isMounted:e,pin:t,location:i,spamCheckCallback:n,href:a})=>{var o,s;const l=await(0,u.Z)({check_only:!0,client_tracking_params:(0,r.Z)({boardUrl:null==t||null===(o=t.board)||void 0===o?void 0:o.url,callToCreateSourcePinId:null==t?void 0:t.call_to_create_source_pin_id,location:i,pinId:null==t?void 0:t.id,pinnerUserName:null==t||null===(s=t.pinner)||void 0===s?void 0:s.username,storyPinDataId:null==t?void 0:t.story_pin_data_id,trackingParams:null==t?void 0:t.tracking_params,trackingParamsMap:null==t?void 0:t.tracking_params_map}),pin_id:null==t?void 0:t.id,url:a}).callGet({showError:!1});if(!l.resource_response.error&&e){const e=l.resource_response.data||{},{message:t,redirect_status:i,url:a}=e;n({blocked:["blocked","suspicious","porn"].includes(i),message:t,redirectStatus:i,sanitized_url:a})}},T=({event:e,onHistoryChange:t,href:i,history:n,target:r})=>{const l=(0,o.Z)(i),u=s(i),p=(0,d.Z)(l);p===_.Z.TRUSTED_DIFFERENT_ORIGIN||"blank"===r?(0,a.Z)(l,"blank"===r):n&&p===_.Z.SAME_ORIGIN&&(n.push((0,c.Z)({url:l}),null!=u?u:{}),t&&t({event:e}))},A=({href:e,pinId:t,pin:i,location:n,auxData:a,spamCheck:o,queryParams:s},l,d)=>{"undefined"!=typeof window&&window.Windows?(0,p.Z)({url:e,pinId:t,pin:i,location:n,auxData:a}):i?(({spamCheck:e,auxData:t,location:i,pin:n,pinId:a,href:o},s,l)=>{if(null!=e&&e.blocked)null==l||l(e);else{var d,c;if((0,m.b)({href:o,pinId:a,pin:n,location:i,auxData:t},s))return;P({url:o,pinId:a,csrId:null,clientTrackingParams:(0,r.Z)({boardUrl:null===(d=n.board)||void 0===d?void 0:d.url,callToCreateSourcePinId:n.call_to_create_source_pin_id,location:i,pinId:n.id,pinnerUserName:null===(c=n.pinner)||void 0===c?void 0:c.username,storyPinDataId:n.story_pin_data_id,trackingParams:n.tracking_params,trackingParamsMap:n.tracking_params_map}),auxData:t})}})({spamCheck:o,auxData:a,location:n,pin:i,pinId:t,href:e},l,d):P({url:e,pinId:t,queryParams:s})}},102500:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(214494);function a(e){return n.Z.create("ApiResource",{url:"/v3/offsite/",data:e})}},287072:(e,t,i)=>{i.d(t,{Z:()=>c,p:()=>u});var n=i(667294),a=i(250059),r=i(149230),o=i(407043),s=i(108234),l=i(48714),d=i(276775);function c(e){var t;const{externalData:i,href:c,onHistoryChange:u,target:p}=e,{logContextEvent:_}=(0,o.v)(),[h,m]=(0,n.useState)(null),[g,v]=(0,n.useState)(!1),y=(0,d.useHistory)(),E=(0,d.useLocation)(),f=(0,r.Z)({url:(0,a.Z)(c)}),{showWarning:S}=null!==(t=(0,s.s)())&&void 0!==t?t:{};return(0,n.useEffect)((()=>(v(!0),()=>{v(!1)})),[]),(0,n.useEffect)((()=>{f&&null!=i&&i.pin&&null===h&&g&&(0,l.$3)({location:E,pin:i.pin,surface:i.surface})&&(0,l.iw)({isMounted:g,pin:i.pin,location:E,spamCheckCallback:e=>m(e),href:(0,a.Z)(c)})}),[null==i?void 0:i.pin,null==i?void 0:i.surface,c,f,g,E,h]),({event:e})=>{var t;(0,l.gV)({isOffsiteUrl:f,event:e})||(e.preventDefault(),c&&(f||null!=i&&i.dangerouslyForceOffsiteUrl?(0,l.lI)({auxData:null==i?void 0:i.auxData,href:(0,a.Z)(c),pinId:null==i||null===(t=i.pin)||void 0===t?void 0:t.id,pin:null==i?void 0:i.pin,queryParams:null==i?void 0:i.queryParams,location:E,spamCheck:h},_,S):(0,l.G3)({event:e,href:c,history:y,onHistoryChange:u,target:"blank"===p?"blank":null})))}}const u=({children:e,...t})=>e({handleClick:c(t)})},713930:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(172071);function a(e,t){return new Promise(((i,a)=>{if(document.querySelector(`script[src="${e}"]`)){let e=0;if("FACEBOOK"===t)if(window.FB)i();else{const t=setInterval((()=>{window.FB||20===e?(clearInterval(t),i()):(e+=1,n.Z.increment(`mweb.loadScript.facebook.tries_${e}`,.01))}),100)}else if("GSI"===t)if(window.google)i();else{const t=setInterval((()=>{window.google||20===e?(clearInterval(t),i()):(e+=1,n.Z.increment(`mweb.loadScript.gsi.tries_${e}`,.01))}),100)}else i()}else{const t=document.createElement("script");t.src=e,t.async=!0,t.addEventListener("load",(()=>i())),t.addEventListener("error",a),document.getElementsByTagName("head")[0].appendChild(t)}}))}},567450:(e,t,i)=>{function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i.d(t,{Z:()=>o});const a=new class{constructor(){n(this,"onResumeListeners",[]),n(this,"onPauseListeners",[]),n(this,"inExp",!1),n(this,"windowInFocus",!0)}setExperiment(e=!1){this.inExp=e}onSessionResume(e){return this.onResumeListeners.push(e),this}onSessionPause(e){return this.onPauseListeners.push(e),this}removeResumeListener(e){this.onResumeListeners.filter((t=>t!==e))}removePauseListener(e){this.onPauseListeners=this.onPauseListeners.filter((t=>t!==e))}getAppState(){return this.windowInFocus?0:void 0}},r=e=>{if(e.isHidden){const{reason:t}=e;a.windowInFocus=!1,a.onPauseListeners.forEach((e=>e(t)))}else a.windowInFocus=!0,a.onResumeListeners.forEach((e=>e()))};setTimeout((()=>{window.addEventListener("beforeunload",(()=>r({isHidden:!0,reason:"beforeunload"}))),window.addEventListener("focus",(()=>r({isHidden:!1}))),window.addEventListener("blur",(()=>r({isHidden:!0,reason:"blur"}))),window.addEventListener("pageshow",(()=>r({isHidden:!1}))),window.addEventListener("pagehide",(()=>r({isHidden:!0,reason:"pagehide"}))),void 0!==document.hidden?document.addEventListener("visibilitychange",(()=>r(document.hidden?{isHidden:!0,reason:"visibilitychange"}:{isHidden:!1})),!1):void 0!==document.webkitHidden&&document.addEventListener("webkitvisibilitychange",(()=>r(document.webkitHidden?{isHidden:!0,reason:"visibilitychange"}:{isHidden:!1})),!1)}),0);const o=a},627995:(e,t,i)=>{i.d(t,{Z:()=>c});var n=i(927104),a=i(898781),r=i(903095),o=i(112690),s=i(883119),l=i(785893);const d=(e,t)=>{let i={};if(e){const{pinData:n,viewData:a}=e;i={unauth_click_pin_id:n.id,unauth_click_pin_image_signature:n.imageSignature},3===t?i={...i,unauth_page_pin_id:a.id,unauth_page_pin_image_signature:a.imageSignature}:5===t&&(i={...i,unauth_page_board_id:a.id})}return i},c=({clickLoggingOptions:e,domain:t,link:i,onClick:c})=>{var u;const p=null===(u=(0,r.lO)())||void 0===u?void 0:u.logging,_=(0,a.ZP)(),h=(0,o.Z)(),m=()=>[{event_type:8948},{event_type:12},{event_type:101,element:0,aux_data:d(e.unauthRankingLoggingData,null==p?void 0:p.viewType)}].map((t=>({component:0,element:162,view_type:null==p?void 0:p.viewType,view_parameter:null==p?void 0:p.viewParameter,aux_data:e.auxData,object_id_str:e.auxData.objectId,...t})));return(0,l.jsx)(s.iP,{onTap:({event:e})=>{e.stopPropagation(),m().forEach((e=>h(e))),c(e)},children:(0,l.jsxs)(s.xu,{marginBottom:4,marginStart:4,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",left:!0,bottom:!0,children:[(0,l.jsx)(s.xu,{marginEnd:1,children:(0,l.jsx)(s.JO,{size:9,icon:"arrow-up-right",color:"light",accessibilityLabel:_.bt("链接", "Link", "unauth.pin.domain.link", undefined, true)})}),(0,l.jsx)("a",{href:i,onClick:e=>{e.stopPropagation(),m().forEach((e=>h(e))),c(e)},rel:"nofollow noopener noreferrer",target:"_blank",type:"button",children:(0,l.jsx)(s.xv,{size:"200",inline:!0,weight:"bold",lineClamp:1,color:"inverse",children:(0,n.Z)(t,27)})})]})})}},55275:(e,t,i)=>{i.d(t,{P:()=>o,t:()=>s});var n=i(214494);const a=()=>{};const r={complaint:function(e,t){n.Z.create("PinFeedbackResource",e).callUpdate().then((()=>t()))},followBoard:function(e,t){n.Z.create("BoardFollowResource",e).callCreate().then((()=>t()))},followPinner:function(e,t){n.Z.create("UserFollowResource",e).callCreate().then((()=>t()))},followTopic:function(e,t){n.Z.create("InterestFollowResource",e).callCreate().then((()=>t()))},newsHubPinHide:function(e,t){n.Z.create("NewsHubPinFeedbackResource",e).callUpdate().then((()=>t()))},promotedComplaint:function(e,t){n.Z.create("PinFeedbackResource",e).callUpdate().then((()=>t()))},relatedPinHide:function(e,t){n.Z.create("RelatedPinFeedbackResource",e).callUpdate().then((()=>t()))},reportPin:function(e,t){t()},showAdReasons:function(e,t){t()},unfollowBoard:function(e,t){n.Z.create("BoardFollowResource",e).callDelete().then((()=>t()))},unfollowPinner:function(e,t){n.Z.create("UserFollowResource",e).callDelete().then((()=>t()))},unfollowTopic:function(e,t){n.Z.create("InterestFollowResource",e).callDelete().then((()=>t()))},unrelatedSearchPin:function(e,t){n.Z.create("SearchPinFeedbackResource",e).callUpdate().then((()=>t()))}},o=["complaint","relatedPinHide","unrelatedSearchPin","promotedComplaint","newsHubPinHide","unfollowBoard","unfollowPinner","unfollowTopic"];function s(e,t,i=a){const n=e?r[e]:null;return n?n(t,i):i()}},680046:(e,t,i)=>{i.d(t,{EF:()=>m,Iv:()=>c,Ud:()=>d,XZ:()=>_,fJ:()=>l,hP:()=>s,nb:()=>h,oK:()=>u,yl:()=>p});var n=i(55275),a=i(760372),r=i(349700);const o=e=>e.length>32?`${e.substring(0,32).trim()}...`:e;function s({boardFollowedByMe:e,feedbackType:t,viewParameter:i,promotion:n,recommendationReason:a,pinnerFollowedByMe:r}){if(n&&!n.isDownstreamPromotion)return"promoted";if(t)return t;if(a){if("FOLLOWED_INTEREST"===a.reason)return"topic";if("FOLLOWING_FEED"!==a.reason&&"RECENT_FOLLOWED_BOARD"!==a.reason)return a.hasBoard?"pfyBoard":"pfy"}if(e||r)return"followed";switch(i){case 140:case 144:case 141:case 145:case 139:case 3173:return"related";case 3082:return"newsHub";case 92:default:return"default"}}function l({feedbackData:e,feedbackType:t,pinId:i,recommendationReasonId:n,pinFeedbackType:a,complaintReason:r,throughId:o,throughProperties:s,clientTrackingParams:l}){switch(t){case"search":return{action:"unrelatedSearchPin",actionOptions:{query:null==e?void 0:e.query,pin_id:i}};case"related":return{action:"relatedPinHide",actionOptions:{pin:i}};case"newsHub":return{action:"newsHubPinHide",actionOptions:{pinId:i,newsId:null==e?void 0:e.newsId}};default:const d="promoted"===t;return{action:d?"promotedComplaint":"complaint",actionOptions:{complaint_reason:r||0,pin_id:i,...n?{recommendation_reason_id:n}:{},feedback_type:a||1,promoted:d,...o?{through_id:o}:{},...s?{through_properties:s}:{},...l?{client_tracking_params:l}:{}}}}}function d({feedback:e,i18n:t,makeNavigateLink:i}){var n,a,s,l,d,c,u,p;switch(e.type){case"pfy":return t.bt("此 Pin 图的灵感来源于你的近期动态", "This Pin was inspired by your recent activity", "Pin feedback reason", undefined, true);case"pfyBoard":const{recommendationReasonBoard:_}=e;return _?(0,r.nk)(t.bt("此 Pin 图的灵感来源于你的图板 {{ boardLink }}", "This Pin was inspired by your board {{ boardLink }}", "Pin feedback - inspired by your board", undefined, true),{boardLink:i("navigation",_.url,_.name)}):null;case"topic":const{sourceInterest:h}=e;return h?(0,r.nk)(t.bt("此 Pin 图的灵感来源于 {{ formattedTopic }} 主题", "This Pin was inspired by {{ formattedTopic }}", "Pin feedback", undefined, true),{formattedTopic:i("topicUrl",`/topics/${h.url_name}`,h.name)}):null;case"followed":const{followed:m}=e;return"pinner"===m.type?(0,r.nk)(t.bt("此 Pin 图来自你关注的用户 {{ formattedPinner }}", "This Pin is from {{ formattedPinner }}, a profile you follow", "Pin feedback", undefined, true),{formattedPinner:i("pinnerUrl",`/${null!==(n=null===(a=m.pinner)||void 0===a?void 0:a.username)&&void 0!==n?n:""}`,o(null!==(s=null===(l=m.pinner)||void 0===l?void 0:l.full_name)&&void 0!==s?s:""))}):(0,r.nk)(t.bt("此 Pin 图来自你关注的图板 {{ formattedBoard }}", "This Pin is from {{ formattedBoard }}, a board you follow", "Pin feedback", undefined, true),{formattedBoard:i("boardUrl",null!==(d=null===(c=m.board)||void 0===c?void 0:c.url)&&void 0!==d?d:"",o(null!==(u=null===(p=m.board)||void 0===p?void 0:p.name)&&void 0!==u?u:""))});case"promoted":if(e.promoter){const{full_name:n,username:a}=e.promoter,o=i("promotedLink",a?"/"+a+"/":"/",n);return(0,r.nk)(t.bt("{{ promoterLink }} 付费让此 Pin 图出现在你更容易注意的地方", "{{ promoterLink }} paid to have this Pin show up where you’d be more likely to notice it", "Pin feedback", undefined, true),{promoterLink:o})}return t.bt("此广告是使用来自我们某个合作伙伴的信息为你定制的", "This ad was personalized for you using info from one of our partners", "Pin feedback", undefined, true);default:return null}}function c({sourceInterest:e,i18n:t,makeNavigateLink:i}){var n,o;return{action:"unfollowTopic",actionOptions:{interest_id:e.id,interest_list:a.X},title:"",subTitle:(0,r.nk)(t.bt("我们以后会减少显示{{ formattedTopic }}主题的 Pin 图。", "We’ll show you less Pins from {{ formattedTopic }} in the future.", "pin.contextualMenu.feedback.unfollowTopic.subtitle", undefined, true),{formattedTopic:i("topicUrl",`/topics/${null!==(n=e.url_name)&&void 0!==n?n:""}`,null!==(o=e.name)&&void 0!==o?o:"",!0)})}}function u({boardId:e,display:t,i18n:i,makeNavigateLink:n}){var a,o,s,l;return{action:"unfollowBoard",actionOptions:{board_id:e},title:"",subTitle:"pinner"===t.type?(0,r.nk)(i.bt("你取消关注了 {{ formattedPinner }}，以后不会再看到他们收藏的 Pin 图。", "You unfollowed {{ formattedPinner }} and won’t see Pins they save anymore.", "Confirmation text after unfollowing a user", undefined, true),{formattedPinner:n("pinnerUrl",`/${null!==(a=t.data.username)&&void 0!==a?a:""}`,null!==(o=t.data.full_name)&&void 0!==o?o:"",!0)}):(0,r.nk)(i.bt("你取消关注了 {{ formattedBoard }} 图板，以后不会再看到收藏至此图板的 Pin 图。", "You unfollowed the board {{ formattedBoard }} and won’t see Pins saved to it anymore.", "Confirmation text after unfollowing a board", undefined, true),{formattedBoard:n("boardUrl",null!==(s=t.data.url)&&void 0!==s?s:"",null!==(l=t.data.name)&&void 0!==l?l:"",!0)})}}function p(e){return null!=e&&e.reason_id?e.reason_id:null!=e&&e.board?e.board.id:null!=e&&e.pin?e.pin.id:null!=e&&e.interest?e.interest.id:""}function _(e){return null==e?void 0:e.through_properties}function h(e){switch(e){case"promoted":return 60;case"followed":case"topic":return 100;case"pfyBoard":case"pfy":return 58}}function m(e,t,i,a,r,o,s){return()=>{const l={...e,undo:!0};let d=t;"unfollowPinner"===t?d="followPinner":"unfollowBoard"===t?d="followBoard":"unfollowTopic"===t&&(d="followTopic"),(0,n.t)(d,l),o(i),s({event_type:101,component:0,element:11181,view_type:a,view_parameter:r})}}},248975:(e,t,i)=>{function n({embedSrc:e,embedType:t,images:i,preferredResolution:n}){if(!e&&!t&&!i)return"";if("gif"===t)return e||"";const a=i;if(!a)return"";if(n){const e="474x"===n&&a["474x"]||"236x"===n&&a["236x"]||a["736x"];if(e&&e.url)return e.url}const r=Object.keys(a).map((e=>{try{const t=e.split("x")[0];return Number.isNaN(Number(t))?(a[t]=a[e],t):e}catch(t){return""}}));r.sort();const o=r.pop();return a[o]&&a[o].url||""}i.d(t,{Z:()=>n})},958007:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(992750);const a=e=>(e||"").trim().replace(/\s+/g," "),r=({storyPinDataId:e,pinDescription:t,richMetadataDescription:i,richSummaryDisplayName:r,placeSummaryName:o,closeupDescription:s,closeupUnifiedDescription:l})=>!!e?a(t):a((0,n.eK)({richMetadataDescription:i,richSummaryDisplayName:r,placeSummaryName:o,closeupUnifiedDescription:l}).description)||a(l||"")||a(s)||a(t)||a(i)||""},623568:(e,t,i)=>{i.d(t,{Js:()=>o,NK:()=>v,Nc:()=>y,VX:()=>s,Zt:()=>m,_J:()=>c,_S:()=>E,cL:()=>_,dZ:()=>P,hb:()=>g,hy:()=>d,iR:()=>r,jL:()=>l,o:()=>f,oN:()=>n,pU:()=>S,rM:()=>h,sV:()=>u,sY:()=>p});const n=5e3,a=["Uploaded by user"],r=e=>!!e&&!!e.video_list,o=(e,t)=>{let i=e&&e.url?e.url.split("/")[1]:"";return t&&t.full_name&&(i=t.full_name),i},s=(e,t)=>t&&t.products&&t.products.length>0||(null==e?void 0:e.products)&&e.products.length>0||!1,l=(e,t)=>!!t&&!e,d=e=>!!e,c=e=>!!e.video_status&&5!==e.video_status,u=e=>["email","messages","deep_linking"].includes(e),p=e=>!!e&&"gif"===e,_=({embedSrc:e,embedSubtype:t,embedType:i})=>!!e&&!p(i)&&!(e=>"pinstory"===e)(t),h=({link:e,mobileLink:t,trackedLink:i})=>!t&&!i&&!e,m=({link:e,mobileLink:t,origImageUrl:i,trackedLink:n})=>t||n||e||i||"",g=({isStoryPin:e,isVideoPin:t})=>e?"storyPin":t?"video":"image",v=(e,t)=>({deeplinkUri:{android:`pin/${e}/repin`,iOS:`repin/${e}`},mwebUri:{pathname:`/pin/${e}/repin/`,state:{trackingParams:t.state?t.state.trackingParams:""}}});function y(e,t,i){var n;return!r(i)&&!d(t)&&0!==Object.keys((null==e||null===(n=e.creator_analytics)||void 0===n?void 0:n["30d_realtime"])||{}).length}function E(e){for(const t of a)if(e===t)return!1;return!0}function f(e){return 0!==Object.keys((null==e?void 0:e["30d_realtime"])||{}).length}function S(e){return 0!==Object.keys((null==e?void 0:e.all_time_realtime)||{}).length}function P(e){var t;return!(null==e||null===(t=e["30d_realtime"])||void 0===t||!t.is_realtime)}},992750:(e,t,i)=>{i.d(t,{hP:()=>u,fs:()=>l,eK:()=>d,Ly:()=>c,BY:()=>p,bN:()=>_,RC:()=>o,EU:()=>s});const n=/\s\s+/g,a=e=>e.replace(n," ");var r=i(883561);const o=({storyPinDataMetadataPinTitle:e,pinTitle:t})=>e||t,s=(e,t)=>e?e.trim().length>t?(0,r.ZP)(e.trim(),t).trim():e.trim():"",l=({pinTitle:e,gridTitle:t,richSummaryDisplayName:i,richMetadataTitle:n,storyPinDataId:a,storyPinDataMetadataPinTitle:r,placeSummaryName:o})=>{const l=r||e,d=s(t,200);return d||(i||(o||(n||(a&&l?l:null))))},d=e=>{const{richSummaryDisplayName:t,placeSummaryName:i}=e,n=e.pinJoinVisualAnnotation||[],o=e.pinJoinAnnotationsWithLinks||{},s=e.richMetadataDescription||"",l=e.closeupUnifiedDescription||"",d=n.map((e=>(o||{})[e]||{name:e,url:""}));let c="";const u=(({richSummaryDisplayName:e,placeSummaryName:t})=>e||t||"")({richSummaryDisplayName:t,placeSummaryName:i}).toLocaleLowerCase().trim(),p=s.toLocaleLowerCase().trim(),_=l.toLocaleLowerCase().trim();return l&&l.length>3&&_!==u?c=l:s&&s.length>3&&p!==u&&(c=s),c&&(c=a((0,r.ZP)(c,496)).trim()),{description:c,annotationsWithLinks:d}},c=({pinTitle:e,gridTitle:t,richSummaryDisplayName:i,richMetadataTitle:n,storyPinDataId:a,storyPinDataMetadataPinTitle:r,placeSummaryName:o,pinJoinVisualAnnotation:s,pinJoinAnnotationsWithLinks:c})=>{const{annotationsWithLinks:u}=d({pinJoinVisualAnnotation:s,pinJoinAnnotationsWithLinks:c}),p=(u||[]).map((e=>e.name)),_=e=>(e||[])[0]||null;return l({pinTitle:e,gridTitle:t,richSummaryDisplayName:i,richMetadataTitle:n,storyPinDataId:a,storyPinDataMetadataPinTitle:r,placeSummaryName:o})||_(s)||_(p)||e},u=(e,t,i,n)=>{var a;let r=(a=e,"string"==typeof a?a:"").trim();return i?(n&&n.trim().length&&(r=n),i.length>0&&(r&&(r+=" "),r+=i.join(", ")),r):n&&n.trim().length?n:r},p=e=>`/pin/${e}/`,_=({pinId:e,seoUrl:t})=>t&&"string"==typeof t?t:p(e)},467570:(e,t,i)=>{i.d(t,{$:()=>d,GH:()=>l,JF:()=>g,Jb:()=>_,MI:()=>m,sl:()=>u,we:()=>p});var n=i(935879),a=i(713930),r=i(816068),o=i(214494),s=i(867820);const l="274266067164",d=["public_profile","email","user_birthday","user_friends"],c=["picture.type(large)","id","first_name","last_name","email","gender","birthday"],u=e=>{e&&(0,s.dy)({event:"load_script_success",provider:"facebook"}),"undefined"!=typeof window&&window.FB?(e&&(0,s.dy)({event:"initialize_library",provider:"facebook"}),window.FB.init({appId:l,status:!0,xfbml:!0,version:"v2.7"})):e&&(0,s.dy)({event:"global_object_not_found",provider:"facebook"})},p=(e,t)=>{t&&(0,s.dy)({event:"load_script_start",provider:"facebook"});return(0,a.Z)((0,n.Z)(e),"FACEBOOK").then((()=>u(t)))},_=()=>new Promise((e=>{"undefined"!=typeof window&&window.FB&&window.FB.getLoginStatus(e)})),h=({userID:e,accessToken:t,data:{birthday:i,email:n,first_name:a,gender:o,last_name:s,picture:l}})=>({type:"facebook",facebook_id:e,facebook_token:t,birthday:i?(0,r.Z)(i):void 0,email:n,first_name:a,gender:o,image_url:l&&!l.data.is_silhouette?l.data.url:void 0,last_name:s});async function m(e){var t;const i=(null===(t=(await o.Z.create("ApiResource",{url:"/v3/facebook/profile_data/",data:{access_token:e,pii_safe_birthday:!0,fields:c.join(",")}}).callCreate()).resource_response)||void 0===t?void 0:t.data)||{};return{access_token:e,birthday:i.birthday,email:i.email,first_name:i.first_name,gender:i.gender,id:i.id,last_name:i.last_name,picture:i.picture}}const g=()=>new Promise((e=>{window.FB.login(e,{scope:d.join(",")})})).then((e=>((e,t)=>new Promise(((i,n)=>{if("connected"!==e.status)return void n({status:e.status||"unknown"});const{userID:a,accessToken:r}=e.authResponse;m(r).then((e=>{i({creds:{facebook_id:a,facebook_token:r,facebook_autologin:(null==t?void 0:t.autologin)||!1},signupOptions:h({userID:a,accessToken:r,data:e})})}),n)})))(e)))},935879:(e,t,i)=>{i.d(t,{Z:()=>n});const n=e=>`//connect.facebook.net/${(e=>{const t=e.replace(/-/g,"_");if(t.startsWith("es"))return"es_LA";if(t.startsWith("ar"))return"ar_AR";switch(t){case"de":return"de_DE";case"fr":return"fr_FR";case"it":return"it_IT";case"ja":return"ja_JP";case"nl":return"nl_NL";case"tr":return"tr_TR";case"en_AU":return"en_US";default:return t}})(e)}/sdk.js`},760372:(e,t,i)=>{i.d(t,{X:()=>n});const n="favorited"},813401:(e,t,i)=>{i.d(t,{kf:()=>g,l5:()=>h,of:()=>p,xC:()=>m,yz:()=>_});var n=i(667294),a=i(172071),r=i(829407),o=i(807609),s=i(30287),l=i(425288),d=i(785893);const{Provider:c,useMaybeHook:u}=(0,l.Z)("PwaContext"),p=({children:e,initialContext:t})=>{const[i,o]=(0,n.useState)(null),l=t||{pwaType:"unknown",twaType:null},u=l.pwaType;(0,r.Z)((()=>{const e=(0,s.FB)(window)||"unknown";o(e),u!==e&&a.Z.increment("pwa.type_mismatch",1,{serverPwaType:u,clientPwaType:e,conflict:"unknown"!==u&&"unknown"!==e})}));const p="unknown"===u&&i?i:u,_=l.twaType,h=(0,n.useMemo)((()=>({pwaType:p,twaType:_})),[p,_]);return(0,d.jsx)(c,{value:h,children:e})},_=()=>{var e;const t=u();return null!==(e=null==t?void 0:t.pwaType)&&void 0!==e?e:"unknown"},h=()=>{var e;const t=u();return null!==(e=null==t?void 0:t.twaType)&&void 0!==e?e:null},m=()=>"android-twa"===_(),g=()=>{const e=_(),t=(0,o.Z)();return"unknown"===e&&t?null:"windows"===e}},311560:(e,t,i)=>{i.d(t,{Z:()=>n});const n=e=>{switch(e){case"BR":case"MX":case"AR":case"CL":case"CO":return"LatAm";case"US":return"US";case"CA":return"CA";case"GB":return"GB";case"FR":return"FR";case"DE":return"DE";default:return"OTHER"}}},561195:(e,t,i)=>{i.d(t,{A:()=>o,Z:()=>s});var n=i(667294),a=i(883119),r=i(785893);const o=({fill:e,width:t,color:i})=>{const o="half"===e?(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)(a.xu,{position:"absolute",children:(0,r.jsx)(a.JO,{accessibilityLabel:"",color:"default",icon:"star-half",size:12})}),(0,r.jsx)(a.JO,{accessibilityLabel:"",color:"subtle",icon:"star",size:12})]}):(0,r.jsx)(a.JO,{accessibilityLabel:"",color:"full"===e?"default":"subtle",icon:"star",size:12});return(0,r.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{marginRight:"3px"}},display:"inlineBlock","data-test-id":`rating-star-${e}`,children:o})};function s({max_rating:e,rating:t,width:i,color:a}){const s=[],l=function(e,t){return 5*(t=t<=e?t:e)/e}(parseFloat(e)||5,parseFloat(t)||0);if(Number.isNaN(l))return null;const d=Math.floor(l),c=l-d;return[...Array(d).keys()].forEach((e=>s.push((0,r.jsx)(o,{color:a,fill:"full",width:i},e)))),c>=.75?s.push((0,r.jsx)(o,{color:a,fill:"full",width:i},s.length)):c>=.25&&s.push((0,r.jsx)(o,{color:a,fill:"half",width:i},s.length)),[...Array(5-s.length).keys()].forEach((()=>s.push((0,r.jsx)(o,{color:a,fill:"empty",width:i},s.length)))),(0,r.jsx)(n.Fragment,{children:s})}},923297:(e,t,i)=>{function n({m:e=0,h:t=0}){let i;return i=t<=0?t:e>45?t+1:e>15?t+.5:t,{m:e,h:t,rm:t>0?0:e,rh:i}}function a(e){const t=Math.floor(e/3600);return n({m:Math.floor(e%3600/60),h:t})}i.d(t,{X:()=>n,u:()=>a})},505920:(e,t,i)=>{i.d(t,{UZ:()=>u,Z8:()=>p,my:()=>_});var n=i(667294),a=(i(702664),i(214494)),r=i(425288),o=i(785893);function s(e,t,i){var n;const a=[...null!==(n=t[e][i.payload.name])&&void 0!==n?n:[],i.payload.handler],r={...t};return r[e]={...t[e],[i.payload.name]:a},r}function l(e,t,i){if(!t[e][i.payload.name])return t;const n=t[e][i.payload.name].filter((e=>e!==i.payload.handler)),a={...t};return a[e]={...t[e],[i.payload.name]:n},a}const{Provider:d,useHook:c}=(0,r.Z)("ResourceContext");function u({children:e}){const[{listeners:t,moreListeners:i},r]=(0,n.useReducer)(((e,t)=>{switch(t.type){case"addListener":return s("listeners",e,t);case"addMoreListener":return s("moreListeners",e,t);case"removeListener":return l("listeners",e,t);case"removeMoreListener":return l("moreListeners",e,t);default:return e}}),{listeners:{},moreListeners:{}});a.Z.fetchCompleteCallback=({resource:e,options:i,response:n,normalizedResponse:a,refresh:r,resourceSchema:o})=>{t[e]&&t[e].forEach((t=>t({isRefresh:r,normalizedResponse:a,options:i,schema:o,resource:e,response:n})))},a.Z.fetchMoreCompleteCallback=({resource:e,options:t,response:n,normalizedResponse:a,refresh:r,resourceSchema:o})=>{i[e]&&i[e].forEach((i=>i({isRefresh:r,normalizedResponse:a,options:t,schema:o,resource:e,response:n})))};const c=(0,n.useMemo)((()=>({listenerDispatch:r})),[]);return(0,o.jsx)(d,{value:c,children:e})}function p(e,t){const{listenerDispatch:i}=c();(0,n.useEffect)((()=>(i({type:"addListener",payload:{name:e,handler:t}}),()=>{i({type:"removeListener",payload:{name:e,handler:t}})})))}function _(e,t){const{listenerDispatch:i}=c();(0,n.useEffect)((()=>(i({type:"addMoreListener",payload:{name:e,handler:t}}),()=>{i({type:"removeMoreListener",payload:{name:e,handler:t}})})))}},248327:(e,t,i)=>{i.d(t,{U:()=>u,b:()=>p});var n=i(886858),a=i(214494),r=i(414327),o=i(718368),s=i(483025),l=i(782677);function d({data:e,opts:{bookmark:t,options:i,schema:n},resource:a}){const r=((e,{bookmark:t,options:i,schema:n})=>{const a=n||s.Z[e];return"function"==typeof a?a({resource:e,options:i,bookmark:t}):a})(a,{bookmark:t,options:i,schema:n});return{normalizedResponse:r&&e?(0,l.Fv)(e,r):null,resourceSchema:r}}function c({fetchOptions:e,resource:t,retry:i}){return(s,l)=>{var u,p,_;const{bookmark:h,headers:m,options:g,refresh:v,schema:y}=e,E=(0,n.Z)(g);if(null!==(u=l().resources)&&void 0!==u&&null!==(p=u[t])&&void 0!==p&&null!==(_=p[E])&&void 0!==_&&_.fetching&&!i)return Promise.resolve();const f=i?i.bookmark:h,S=f?{...g,bookmarks:[f]}:g;return s((0,r.LQ)(t,g,!0)),a.Z.create(t,S).callGet(void 0,m).then((n=>{var l;const u=null===(l=n.resource_response)||void 0===l?void 0:l.data,[p]=n.bookmarks||[];if(Array.isArray(u)&&0===u.length&&p&&p!==o.q){const n=i?i.count:0;if(!(n>=o.s))return s(c({resource:t,fetchOptions:e,retry:{count:n+1,bookmark:p}}))}!function(e,t){"VisualSearchFlashlightUnifiedResource"===e&&(t=t.results)}(t,u);const{normalizedResponse:_,resourceSchema:m}=d({data:u,opts:{bookmark:h,options:g,schema:y},resource:t})||{normalizedResponse:null,resourceSchema:void 0};return h?(s((0,r.Dm)(t,g,n,_,m)),a.Z.fetchMoreCompleteCallback&&a.Z.fetchMoreCompleteCallback({resource:t,options:g,response:n,normalizedResponse:_,refresh:v,resourceSchema:m})):(s((0,r.Sr)(t,g,n,_,v,m)),a.Z.fetchCompleteCallback&&a.Z.fetchCompleteCallback({resource:t,options:g,response:n,normalizedResponse:_,refresh:v,resourceSchema:m})),Promise.resolve()}),(e=>{s((0,r.Tl)(t,g,e))}))}}const u=(e,{bookmark:t,headers:i,options:n,schema:a})=>c({resource:e,fetchOptions:{bookmark:t,headers:i,options:n,refresh:!1,schema:a}}),p=(e,{headers:t,options:i,schema:n})=>c({resource:e,fetchOptions:{headers:t,options:i,refresh:!0,schema:n}})},414327:(e,t,i)=>{i.d(t,{Dm:()=>l,LQ:()=>r,Sr:()=>s,Tl:()=>o,XM:()=>a,jB:()=>d});var n=i(338739);function a(e,t,i,a){return{type:n.AF,payload:{resource:e,options:t,response:i,normalizedResponse:a}}}function r(e,t,i){return{type:n.KK,payload:{resource:e,options:t,isFetching:i}}}const o=(e,t,i)=>({type:n.cR,payload:{resource:e,options:t,error:i}});function s(e,t,i,a,r,o){return{type:n.zP,payload:{isRefresh:r,normalizedResponse:a,options:t,resource:e,response:i,schema:o}}}function l(e,t,i,a,r){return{type:n.aW,payload:{resource:e,options:t,response:i,normalizedResponse:a,schema:r}}}function d(e,t){return{type:n.se,payload:{resource:e,optionsOrOptionsKey:t}}}},784590:(e,t,i)=>{i.d(t,{Z:()=>u});var n=i(667294),a=i(702664),r=i(886858),o=i(718368),s=i(276775),l=i(780280),d=i(248327);const c={};function u(e){const{enabledRouteRefresh:t,__unstableEnableSuspenseSupport:i,headers:u,name:p,noCache:_,options:h,schema:m}=null!=e?e:{name:"DisabledResource",options:null},g=!e,v=(0,a.useDispatch)(),y=(0,r.Z)(h),E=(0,n.useRef)(null),f=(0,n.useRef)(),S=(0,s.useHistory)(),P=S&&"POP"!==S.action,b=e=>(e[p]||c)[y]||c,T=(0,a.useSelector)((({resources:e})=>b(e).nextBookmark)),A=(0,a.useSelector)((({resources:e})=>b(e).data)),I=(0,a.useSelector)((({resources:e})=>b(e).auxData)),x=(0,a.useSelector)((({resources:e})=>b(e).error)),C=(0,a.useSelector)((({resources:e})=>Boolean(b(e).fetching))),O=Boolean(x)||void 0!==A,R=O&&!C&&T===o.q,w=Boolean(O&&t&&P&&!g),[k,D]=(0,n.useState)(w),N=(0,n.useCallback)((e=>{E.current=v((0,d.U)(p,{options:h,schema:m,bookmark:e,headers:u}))}),[v,p,y,m,u]),L=()=>{E.current=v((0,d.b)(p,{options:h,schema:m,headers:u}))},{isBot:M}=(0,l.B)(),j=()=>{if(!g&&f.current!==y){const e=void 0===f.current;f.current=y,!O&&!C||e&&x&&(({httpStatus:e})=>!e||e>=500)(x)?N():(!M&&_||w)&&L()}};(0,n.useEffect)((()=>{i||j()})),i&&j();const U=(0,n.useCallback)((()=>{g||(L(),D(!0))}),[g,d.b,p,y,u,D]),F=(0,n.useCallback)((()=>{!T||R||C||g||N(T)}),[g,N,T,R,C]);if(E.current)if(O&&!C)E.current=null;else if(i)throw E.current;const V=(0,n.useRef)({auxData:void 0,data:void 0,error:void 0,fetchMore:F,isAtEnd:!1,isFetching:!1,isLoaded:!1,isRefreshing:!1,nextBookmark:void 0,refresh:U}),B={auxData:I,data:A,error:x,fetchMore:F,isAtEnd:R,isFetching:C,isLoaded:O,isRefreshing:k,nextBookmark:T,refresh:U};return(0,a.shallowEqual)(B,V.current)||(!k||!V.current.data&&w||(0,a.shallowEqual)(B.data,V.current.data)||(B.isRefreshing=!1,D(!1)),V.current=B),V.current}},134185:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);const a=e=>{const t=e.itemType?{itemScope:!0,itemType:e.itemType}:{};return(0,n.jsx)("div",{"data-test-id":"rich-pin-information",...t,children:e.children||null})}},578661:(e,t,i)=>{i.d(t,{G:()=>n});const n="https://schema.org/Recipe"},857079:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(883119),a=i(785893);function r({accessibilityLabel:e}){return(0,a.jsx)(n.kC,{alignItems:"center",justifyContent:"center",children:(0,a.jsx)(n.$j,{accessibilityLabel:e,show:!0})})}},995228:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),a=i(966476),r=i(464228),o=i(785893);function s({children:e,fallback:t,dangerouslyServerRenderForGraphQL:i=!1}){const s=t||null,l=(0,a.Z)(),d=(0,r.P)();return d&&"legacy"!==d?i||l?(0,o.jsx)(n.Suspense,{fallback:s,children:e}):s:(0,o.jsx)(n.Suspense,{fallback:s,children:e})}},947599:(e,t,i)=>{i.d(t,{Z:()=>n});const n=i(995228).Z},740990:(e,t,i)=>{i.d(t,{Z:()=>n});const n=(0,i(667294).createContext)("undefined"!=typeof window?window:null)},862628:(e,t,i)=>{function n(e){return(e||"").trim().replace(/\s+/g," ")}i.d(t,{Z:()=>n})},706922:(e,t,i)=>{function n(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function a(e,t){if(n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(let r=0;r<i.length;r+=1)if(!Object.prototype.hasOwnProperty.call(t,i[r])||!n(e[i[r]],t[i[r]]))return!1;return!0}i.d(t,{Z:()=>a})},90771:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e=56}){return(0,n.jsxs)("svg",{fill:"none",height:e,width:e,viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,n.jsx)("rect",{fill:"#1a73e8",height:"56",rx:"28",width:"56"}),(0,n.jsx)("path",{d:"m37.086 39.782h-18.454c-2.624 0-4.914-1.983-4.914-4.607v-.028 1.536c0 2.624 2.29 4.913 4.914 4.913h18.454c2.653 0 4.914-2.317 4.914-4.913v-1.536c0 2.624-2.29 4.635-4.914 4.635zm-23.395-13.234v-2.094l-3.434-5.667c-.196-.307-.28-.586-.252-.866v2.401c0 .224.084.447.223.698z",fill:"#185abc"}),(0,n.jsx)("path",{d:"m37.086 17h-25.853c-1.033 0-1.619.893-.92 1.843l3.377 5.863v10.469c0 2.68 1.955 4.914 4.607 4.914h18.761c2.653 0 4.914-2.262 4.914-4.914v-13.233c.028-2.68-2.234-4.942-4.886-4.942z",fill:"#fff"}),(0,n.jsx)("path",{d:"m36.78 24.39h-17.842c-.782 0-1.535-.474-1.535-1.228 0-.753.753-1.228 1.535-1.228h17.84c.782 0 1.536.475 1.536 1.228 0 .754-.754 1.229-1.536 1.229zm0 4.915h-17.842c-.782 0-1.535-.475-1.535-1.229s.753-1.228 1.535-1.228h17.84c.782 0 1.536.474 1.536 1.228s-.754 1.229-1.536 1.229zm-4.942 4.941h-12.928c-.782 0-1.535-.474-1.535-1.228s.753-1.229 1.535-1.229h12.927c.781 0 1.535.475 1.535 1.229s-.754 1.228-1.535 1.228z",fill:"#8ab4f8"})]})}},31149:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e=56}){return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,n.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#EFEFEF"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.1106 19.6408C18.2759 19.551 18.4653 19.5 18.6667 19.5H37.3333C37.5535 19.5 37.7594 19.561 37.9351 19.667C37.9351 19.667 37.9352 19.667 37.9352 19.667L28.7395 27.2024C28.3095 27.5547 27.6905 27.5547 27.2605 27.2024L18.0648 19.667C18.0799 19.6579 18.0951 19.6492 18.1106 19.6408ZM14 20.8611V20.6667C14 18.0893 16.0893 16 18.6667 16H37.3333C39.9107 16 42 18.0893 42 20.6667V20.8611V34.6667C42 37.244 39.9107 39.3333 37.3333 39.3333H18.6667C16.0893 39.3333 14 37.244 14 34.6667V20.8611ZM38.5 23.7292V34.6667C38.5 35.311 37.9777 35.8333 37.3333 35.8333H18.6667C18.0223 35.8333 17.5 35.311 17.5 34.6667V23.7292L25.0422 29.9095C26.7622 31.319 29.2378 31.319 30.9578 29.9096L38.5 23.7292Z",fill:"black"})]})}},659522:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e=56}){return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,n.jsx)("path",{d:"M56 28C56 12.536 43.464 0 28 0S0 12.536 0 28c0 13.975 10.24 25.56 23.625 27.66V36.094h-7.11V28h7.11v-6.169c0-7.017 4.18-10.893 10.576-10.893 3.064 0 6.268.546 6.268.546v6.891h-3.53c-3.479 0-4.564 2.159-4.564 4.373V28h7.766l-1.242 8.094h-6.524V55.66C45.761 53.56 56 41.975 56 28Z",fill:"#1877F2"}),(0,n.jsx)("path",{d:"M38.9 36.094 40.14 28h-7.765v-5.252c0-2.215 1.085-4.373 4.563-4.373h3.53v-6.89s-3.203-.547-6.267-.547c-6.396 0-10.576 3.876-10.576 10.893V28h-7.11v8.094h7.11V55.66a28.206 28.206 0 0 0 8.75 0V36.094h6.524Z",fill:"#fff"})]})}},214680:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e=56}){return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,n.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"url(#paint0_linear_4144_9512)"}),(0,n.jsx)("path",{d:"M27.7512 13C23.3085 13 19.0478 14.47 15.9063 17.0867C12.7649 19.7033 11 23.2522 11 26.9526C11.004 29.3596 11.7556 31.7247 13.1816 33.8182C14.6076 35.9117 16.6595 37.6624 19.138 38.9C18.4779 40.3778 17.4878 41.7636 16.2089 43C18.6891 42.5646 21.0173 41.65 23.0123 40.3273C24.5505 40.708 26.1465 40.9027 27.7512 40.9053C32.1939 40.9052 36.4546 39.4352 39.5961 36.8186C42.7375 34.202 44.5024 30.6531 44.5024 26.9526C44.5024 23.2522 42.7375 19.7033 39.5961 17.0867C36.4546 14.47 32.1939 13 27.7512 13Z",fill:"white"}),(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"paint0_linear_4144_9512",x1:"28.4444",y1:"52.2827",x2:"28.4444",y2:"6.94986",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#0CBD2A"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#5BF675"})]})})]})}},331744:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e=56}){return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,n.jsx)("path",{d:"M28 56c15.464 0 28-12.536 28-28S43.464 0 28 0 0 12.536 0 28s12.536 28 28 28Z",fill:"#00B900"}),(0,n.jsx)("path",{d:"M46.625 26.32c0-8.335-8.354-15.115-18.625-15.115-10.267 0-18.625 6.78-18.625 15.115 0 7.471 6.627 13.73 15.578 14.91.606.13 1.432.401 1.642.92.187.47.122 1.208.06 1.684l-.265 1.596c-.08.471-.373 1.843 1.615 1.003 1.988-.835 10.724-6.314 14.634-10.812 2.693-2.964 3.986-5.969 3.986-9.3Z",fill:"#fff"}),(0,n.jsx)("path",{d:"M24.215 22.293H22.91c-.201 0-.364.163-.364.364v8.115c0 .2.163.364.364.364h1.306c.2 0 .364-.163.364-.364v-8.12a.363.363 0 0 0-.364-.36ZM33.208 22.293H31.9c-.2 0-.364.163-.364.364v4.82l-3.72-5.02c-.009-.015-.018-.024-.027-.038l-.005-.005-.023-.023c-.005 0-.005-.005-.005-.005-.005-.005-.014-.01-.019-.014l-.009-.01c-.005-.004-.014-.008-.019-.013-.004-.005-.009-.005-.009-.005a.036.036 0 0 0-.019-.01c-.004 0-.009-.004-.009-.004-.005-.004-.014-.004-.019-.01-.004 0-.009-.004-.014-.004l-.023-.01c-.005 0-.01 0-.014-.004-.01 0-.014-.005-.019-.005h-.014c-.004 0-.014 0-.018-.004H26.212c-.2 0-.364.163-.364.364v8.115c0 .2.164.364.364.364h1.307c.2 0 .364-.163.364-.364v-4.82l3.724 5.03a.283.283 0 0 0 .093.089s.005 0 .005.005c.01.004.014.009.023.014.005 0 .005.004.01.004.004.005.01.005.018.01.005.004.01.004.02.009.004 0 .008.005.008.005.01.004.02.004.024.009h.004c.028.01.061.014.094.014h1.306c.201 0 .364-.163.364-.364v-8.125a.37.37 0 0 0-.368-.36ZM21.065 29.097h-3.551v-6.445c0-.2-.164-.364-.364-.364h-1.307c-.2 0-.364.163-.364.364v8.115c0 .098.037.187.103.252l.004.005.005.005c.065.06.154.102.252.102h5.217c.201 0 .364-.163.364-.364v-1.306a.358.358 0 0 0-.359-.364ZM40.422 24.323c.201 0 .364-.163.364-.364v-1.307c0-.2-.163-.364-.364-.364h-5.217a.353.353 0 0 0-.252.103l-.005.005c0 .004-.004.004-.004.004a.373.373 0 0 0-.103.252v8.115c0 .098.037.187.103.252l.004.005.005.005c.065.06.154.102.252.102h5.217c.201 0 .364-.163.364-.364v-1.306c0-.2-.163-.364-.364-.364h-3.55v-1.372h3.55c.201 0 .364-.164.364-.364v-1.307c0-.2-.163-.364-.364-.364h-3.55v-1.372h3.55v.005Z",fill:"#00B900"})]})}},757146:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e=56}){return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,n.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#fff"}),(0,n.jsx)("rect",{x:".5",y:".5",width:"55",height:"55",rx:"27.5",stroke:"#767676",strokeOpacity:".4"}),(0,n.jsx)("path",{d:"M28 12c-9.012 0-16 6.604-16 15.52 0 4.664 1.912 8.696 5.024 11.48.26.232.42.56.428.912l.088 2.848c.028.908.964 1.5 1.796 1.132l3.176-1.4c.268-.12.572-.14.856-.064 1.46.4 3.012.616 4.632.616 9.012 0 16-6.604 16-15.52S37.012 12 28 12Z",fill:"url(#paint0_radial_3730_649)"}),(0,n.jsx)("path",{d:"m18.392 32.06 4.7-7.456a2.401 2.401 0 0 1 3.472-.64l3.74 2.804a.96.96 0 0 0 1.156-.004l5.048-3.832c.672-.512 1.552.296 1.104 1.012l-4.704 7.452a2.401 2.401 0 0 1-3.472.64l-3.74-2.804a.96.96 0 0 0-1.156.004l-5.048 3.832c-.672.512-1.552-.292-1.1-1.008Z",fill:"#fff"}),(0,n.jsx)("defs",{children:(0,n.jsxs)("radialGradient",{id:"paint0_radial_3730_649",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(18.16 43.826) scale(34.8672)",children:[(0,n.jsx)("stop",{stopColor:"#09F"}),(0,n.jsx)("stop",{offset:".61",stopColor:"#A033FF"}),(0,n.jsx)("stop",{offset:".935",stopColor:"#FF5280"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#FF7061"})]})})]})}},862960:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e=56}){return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,n.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"url(#paint0_linear_4401_2673)"}),(0,n.jsx)("path",{d:"M22.452 39.991c-.907 0-.753-.342-1.066-1.206l-2.667-8.779 20.533-12.181",fill:"#C8DAEA"}),(0,n.jsx)("path",{d:"M22.452 39.991c.7 0 1.01-.32 1.4-.7l3.734-3.63-4.657-2.808",fill:"#A9C9DD"}),(0,n.jsx)("path",{d:"m22.928 32.854 11.284 8.336c1.288.71 2.217.343 2.538-1.195l4.593-21.645c.47-1.885-.719-2.74-1.95-2.181l-26.971 10.4c-1.841.738-1.83 1.765-.336 2.223l6.921 2.16 16.024-10.109c.757-.458 1.45-.212.881.294",fill:"url(#paint1_linear_4401_2673)"}),(0,n.jsxs)("defs",{children:[(0,n.jsxs)("linearGradient",{id:"paint0_linear_4401_2673",x1:"37.352",y1:"9.352",x2:"23.352",y2:"42",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#37AEE2"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#1E96C8"})]}),(0,n.jsxs)("linearGradient",{id:"paint1_linear_4401_2673",x1:"31.096",y1:"27.16",x2:"35.466",y2:"37.116",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#EFF7FC"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#fff"})]})]})]})}},464240:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e=56}){return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,n.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#1DA1F2"}),(0,n.jsx)("path",{d:"M24.34 42c11.37 0 17.591-9.429 17.591-17.591 0-.265 0-.53-.012-.796a12.596 12.596 0 0 0 3.087-3.207c-1.11.494-2.303.82-3.557.976a6.22 6.22 0 0 0 2.725-3.424 12.299 12.299 0 0 1-3.93 1.495 6.17 6.17 0 0 0-4.51-1.953 6.19 6.19 0 0 0-6.186 6.185c0 .483.06.953.157 1.411-5.136-.253-9.694-2.725-12.744-6.463a6.184 6.184 0 0 0-.832 3.111 6.2 6.2 0 0 0 2.749 5.148 6.254 6.254 0 0 1-2.797-.771v.084a6.196 6.196 0 0 0 4.955 6.065 6.028 6.028 0 0 1-1.628.217c-.397 0-.783-.036-1.157-.109a6.182 6.182 0 0 0 5.775 4.293 12.4 12.4 0 0 1-7.68 2.652c-.494 0-.989-.024-1.471-.084A17.587 17.587 0 0 0 24.34 42Z",fill:"#fff"})]})}},89396:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e=56}){return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,n.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#7360F2"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.362 31.327s.57.05.875-.33l.597-.75c.288-.374.984-.61 1.665-.232.902.509 2.067 1.309 2.866 2.054.44.371.542.918.242 1.495l-.002.012a6.278 6.278 0 0 1-1.243 1.53l-.012.009c-.587.489-1.261.773-1.983.538l-.013-.018c-1.296-.367-4.405-1.952-6.386-3.532-3.242-2.558-5.546-6.776-6.183-9.038l-.02-.013c-.235-.724.052-1.398.539-1.984l.01-.01a6.224 6.224 0 0 1 1.53-1.243l.012-.003c.576-.3 1.122-.198 1.494.243.49.505 1.408 1.721 2.054 2.865.378.68.141 1.377-.231 1.664l-.752.598c-.379.306-.33.876-.33.876s1.113 4.207 5.271 5.269Zm6.543-3.488a.405.405 0 0 1-.406-.403c-.018-2.44-.752-4.384-2.178-5.776-1.43-1.393-3.236-2.108-5.37-2.122a.403.403 0 0 1-.4-.408.403.403 0 0 1 .403-.402h.003c2.35.016 4.344.808 5.93 2.352 1.586 1.55 2.402 3.687 2.422 6.35a.406.406 0 0 1-.401.409h-.003Zm-2.127-.832h-.01a.405.405 0 0 1-.395-.414c.032-1.384-.364-2.503-1.208-3.425-.84-.918-1.993-1.42-3.527-1.532a.406.406 0 0 1-.374-.433.406.406 0 0 1 .433-.375c1.725.127 3.093.73 4.065 1.794.977 1.066 1.456 2.409 1.42 3.989a.406.406 0 0 1-.404.396Zm-2.077-.696a.404.404 0 0 1-.404-.386c-.068-1.373-.716-2.045-2.036-2.117a.404.404 0 1 1 .043-.808c1.744.093 2.712 1.092 2.8 2.886a.403.403 0 0 1-.383.423l-.02.002Zm9.09 4.625c-.808 6.503-5.563 6.913-6.44 7.195-.374.12-3.843.982-8.203.698 0 0-3.251 3.92-4.266 4.94-.158.159-.344.223-.469.194-.175-.043-.223-.251-.22-.553l.027-5.354v-.001c-6.35-1.764-5.98-8.394-5.908-11.864.072-3.47.724-6.315 2.661-8.227 3.48-3.152 10.65-2.681 10.65-2.681 6.054.027 8.955 1.85 9.628 2.46 2.234 1.912 3.371 6.49 2.54 13.193Zm-.87-14.817c-.796-.73-4.01-3.064-11.167-3.096 0 0-8.44-.51-12.554 3.267-2.29 2.29-3.096 5.64-3.181 9.797-.085 4.157-.195 11.944 7.311 14.056l.008.002-.005 3.221s-.047 1.306.812 1.572c1.039.322 1.648-.669 2.641-1.738a88.708 88.708 0 0 0 1.863-2.107c5.135.43 9.082-.556 9.532-.701 1.036-.337 6.902-1.088 7.857-8.876.984-8.03-.477-13.106-3.117-15.397Z",fill:"#fff"})]})}},22641:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e=56}){return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block",children:[(0,n.jsx)("rect",{width:"56",height:"56",rx:"28",fill:"#25D366"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.206 16.65A15.75 15.75 0 0 0 27.99 12c-8.74 0-15.854 7.113-15.857 15.855a15.821 15.821 0 0 0 2.117 7.927L12 44l8.406-2.205a15.837 15.837 0 0 0 7.577 1.93h.007c8.74 0 15.853-7.114 15.856-15.857a15.76 15.76 0 0 0-4.64-11.218ZM27.99 41.047h-.005c-2.365 0-4.684-.636-6.708-1.837l-.482-.286-4.988 1.309 1.331-4.864-.313-.499a13.146 13.146 0 0 1-2.015-7.014c.003-7.266 5.915-13.178 13.185-13.178a13.09 13.09 0 0 1 9.318 3.865 13.098 13.098 0 0 1 3.856 9.324c-.003 7.267-5.915 13.18-13.179 13.18Zm7.23-9.871c-.397-.199-2.345-1.157-2.708-1.289-.364-.132-.628-.198-.891.198-.264.397-1.024 1.29-1.255 1.554-.231.264-.462.297-.858.099-.396-.199-1.673-.617-3.187-1.966-1.178-1.051-1.973-2.348-2.204-2.745-.231-.397-.024-.611.173-.808.178-.178.397-.463.595-.695.198-.23.264-.396.396-.66.132-.265.066-.496-.033-.695-.098-.198-.89-2.148-1.221-2.941-.322-.773-.649-.668-.892-.68a16.01 16.01 0 0 0-.759-.014c-.264 0-.693.099-1.057.495-.363.397-1.387 1.356-1.387 3.305 0 1.95 1.42 3.835 1.618 4.1.199.264 2.794 4.265 6.769 5.982.945.409 1.683.653 2.259.835.948.302 1.812.26 2.495.157.76-.114 2.344-.958 2.674-1.884.33-.925.33-1.719.23-1.884-.098-.166-.362-.266-.758-.464Z",fill:"#fff"})]})}},619277:(e,t,i)=>{i.d(t,{o$:()=>a,ty:()=>r,vE:()=>o});var n=i(425288);const{Provider:a,MaybeConsumer:r,useMaybeHook:o}=(0,n.Z)("inviteContext")},296011:(e,t,i)=>{i.d(t,{Z:()=>l,t:()=>d});var n=i(667294),a=i(214494),r=i(167912);function o(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const s={};class l extends n.Component{constructor(...e){super(...e),o(this,"state",{invite:s[this.props.invite_code]||null,loaded:this.props.invite_code in s})}componentDidMount(){const{invite_code:e}=this.props;a.Z.create("InviteCodeMetadataResource",{invite_code:e}).callGet().then((t=>{if(t&&t.resource_response){const i=t.resource_response.data;s[e]=i,this.setState({invite:i,loaded:!0})}})).catch((()=>{this.setState({invite:null,loaded:!0})}))}render(){const{invite:e,loaded:t}=this.state;return t?this.props.children(e):null}}class d extends n.Component{constructor(...e){super(...e),o(this,"state",{invite:s[this.props.invite_code]||null,loaded:this.props.invite_code in s})}componentDidMount(){const{invite_code:e,relayEnvironment:t,inviteQuery:i}=this.props;(0,r.fetchQuery)(t,i,{invite_code:e}).subscribe({next:e=>{var t;if(null!==(t=e.v3GetInviteCodeQuery)&&void 0!==t&&t.data){const t=e.v3GetInviteCodeQuery;this.setState({invite:t,loaded:!0})}},error:()=>{this.setState({invite:null,loaded:!0})}})}render(){const{invite:e,loaded:t}=this.state;return t?this.props.children(e):null}}},867060:(e,t,i)=>{i.d(t,{LO:()=>r,Pu:()=>o,cc:()=>n,dB:()=>a,yF:()=>s});const n={10:13098,11:13099,6:13100,5:13101,14:13102,12:13103,15:13104,8:13105,4:13106,1:13107,3:13107,18:13108,19:13109,20:13110,21:13111,22:13112,23:13113,26:13114,27:13115,29:13116,9:13286},a={10:13415,11:13416,6:13417,5:13418,14:13419,12:13420,15:13421,8:13422,4:13423,1:13424,3:13424,18:13425,19:13426,20:13427,21:13428,22:13429,23:13430,26:13431,27:13432,29:13433,9:13434},r={10:13436,11:13437,6:13438,5:13439,14:13440,12:13441,15:13442,8:13443,4:13444,1:13445,3:13445,18:13446,19:13447,20:13448,21:13449,22:13450,23:13451,26:13452,27:13453,29:13454,9:13455},o={10:13457,11:13458,6:13459,5:13460,14:13461,12:13462,15:13463,8:13464,4:13465,1:13466,3:13466,18:13467,19:13468,20:13469,21:13470,22:13471,23:13472,26:13473,27:13474,29:13475,9:13476},s={pin:1,board:2,did_it:6,pinner:3,user:3,today_article:8}},858416:(e,t,i)=>{i.d(t,{Wr:()=>u,Hx:()=>_,RC:()=>p});var n=i(667294);var a=i(311541),r=i(425288),o=i(924687),s=i(785893);const l=()=>Promise.resolve().then(i.bind(i,924687)),{Provider:d,useHook:c}=(0,r.Z)("IdeaPinVideoPlayer");function u({children:e}){const[t,i]=(0,a.Z)(l,o.initialState),r=(0,n.useMemo)((()=>({dispatch:i,ideaPinVideoPlayerControls:t})),[i,t]);return(0,s.jsx)(d,{value:r,children:e})}function p(){const{dispatch:e}=c();return(0,n.useMemo)((()=>({updateSeekTime:(t,i)=>{e({type:"UPDATE_SEEK_TIME",payload:{seekTime:t,pinId:i||""}})},clearSeekTime:t=>{e({type:"CLEAR_SEEK_TIME",payload:{seekTime:void 0,pinId:t||""}})},updateSeekingIdeaPin:t=>{e(t?{type:"UPDATE_SEEKING_IDEA_PIN",payload:{isSeekingIdeaPin:t}}:{type:"UPDATE_SEEKING_IDEA_PIN",payload:{isSeekingIdeaPin:t,seekTime:void 0}})},updateCurrentTime:t=>{e({type:"UPDATE_CURRENT_TIME",payload:{currentTime:t}})},updateDuration:t=>{e({type:"UPDATE_DURATION",payload:{duration:t}})}})),[e])}function _(){const{ideaPinVideoPlayerControls:e}=c();return e}},924687:(e,t,i)=>{i.r(t),i.d(t,{default:()=>a,initialState:()=>n});const n={seekTime:void 0,seekTimes:{},isSeekingIdeaPin:!1,currentProgressInfo:{currentTime:0,duration:0}};function a(e=n,t){switch(t.type){case"UPDATE_SEEK_TIME":return{...e,seekTimes:{...e.seekTimes,[t.payload.pinId]:t.payload.seekTime},seekTime:t.payload.seekTime};case"CLEAR_SEEK_TIME":return{...e,seekTimes:{},seekTime:void 0};case"UPDATE_SEEKING_IDEA_PIN":return{...e,isSeekingIdeaPin:t.payload.isSeekingIdeaPin};case"UPDATE_CURRENT_TIME":return{...e,currentProgressInfo:{...e.currentProgressInfo,currentTime:t.payload.currentTime}};case"UPDATE_DURATION":return{...e,currentProgressInfo:{...e.currentProgressInfo,duration:t.payload.duration}};default:return e}}},936776:(e,t,i)=>{i.d(t,{Z:()=>a});const n=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,a=e=>n.test(e)},927104:(e,t,i)=>{i.d(t,{Z:()=>n});const n=(e,t)=>e.length>t?e.substr(0,t-3).trim()+"…":e},883561:(e,t,i)=>{i.d(t,{ZP:()=>n});function n(e,t=80,i="…",n=false){let a;if(!e)return"";if(e.length<=t)return e;if(" "!==e[t-1]&&" "===e[t]||n)a=e.substring(0,t);else{const i=e.lastIndexOf(" ",t);a=e.substring(0,i)}return a=a.replace(/[\- _,.<>:;+=*&@~\/\|!]*$/,""),a+i}},477802:(e,t,i)=>{i.d(t,{W:()=>o,Z:()=>r});var n=i(883119),a=i(785893);function r({data:e}){return(0,a.jsx)(n.xu,{overflow:"auto",dangerouslySetInlineStyle:{__style:{border:"2px solid red"}},"data-test-id":"debug-info",children:(0,a.jsx)("pre",{children:JSON.stringify(e,null,2).replace(/\\n/g,"\n")})})}const o=e=>(0,a.jsx)(n.xu,{width:236,dangerouslySetInlineStyle:{__style:{marginTop:10}},children:(0,a.jsx)(r,{...e})})},753311:(e,t,i)=>{i.d(t,{M:()=>o,Q:()=>r});var n=i(667294);const a=(0,n.createContext)(null),r=()=>(0,n.useContext)(a),o=a.Provider},690035:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(753311);const a=()=>{const e=(0,n.Q)();return t=>{if(e){const{pinId:i,location:n,seoPlacementConfig:a}=t;e.showUnauthContextMenu({pinId:i,location:n,seoPlacementConfig:a})}}}},170168:(e,t,i)=>{i.d(t,{Ag:()=>r,C0:()=>l,Vi:()=>o,YD:()=>u,kS:()=>a,oo:()=>s,p3:()=>p,vC:()=>d,vI:()=>c});var n=i(401060);const a="https://www.pinterest.com/business/hub/",r="https://www.pinterest.com/homefeed/",o="www.pinterest.com",s="https://help.pinterest.com",l="https://www.pinterest.com",d=(0,n.Z)({site:"developers"}),c=`${(0,n.Z)({site:"sterling"})}`,u=`${(0,n.Z)({site:"analytics"})}`,p=`${(0,n.Z)({site:"www",path:"/product-catalogs/data-source/?advertiserId="})}`},250059:(e,t,i)=>{i.d(t,{Z:()=>n});const n=e=>e?"string"==typeof e?e:e.pathname?e.pathname:"":""},508847:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(567831);const a=(e,t)=>0===e.lastIndexOf(t,0),r=({url:e})=>{const t=(0,n.Z)("/");return a(e,t)?e.substr(t.length-1):e}},327476:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(773285);function a(){const{checkExperiment:e}=(0,n.F)();return t=>e("web_transform_promoted_text").anyEnabled?t.replace(" ","  "):t}},311541:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(667294);function a(e,t){const i=(0,n.useRef)([]),[a,r]=(0,n.useState)(),[o,s]=(0,n.useReducer)(null!=a?a:()=>t,t),l=(0,n.useCallback)((t=>{a?s(t):(i.current.length||e().then((e=>{r((()=>e.default))})),i.current=[...i.current,t])}),[e,a]);return(0,n.useEffect)((()=>{a&&(i.current.forEach(s),i.current=[])}),[a]),[o,l]}},807609:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(411465),a=i(966476);const r=()=>{const e=(0,n.Z)(),t=(0,a.Z)();return e&&!t}},411465:(e,t,i)=>{i.d(t,{G:()=>s,Z:()=>l});var n=i(667294),a=i(276775),r=i(785893);const o=(0,n.createContext)(!0);function s({children:e}){const t=(0,a.useLocation)(),[i,s]=(0,n.useState)(!0),l=(0,n.useRef)(t);return(0,n.useEffect)((()=>{l.current!==t&&(l.current=t,s(!1))}),[t]),(0,r.jsx)(o.Provider,{value:i,children:e})}function l(){return(0,n.useContext)(o)}},46584:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294);const a=new Map;let r=null;const o=e=>{e.forEach((e=>{const t=a.get(e.target);t&&t(e)}))};function s({onVisibilityChanged:e,inAdsDesktopVideoExperiment:t,trackFullVisible:i,rootMargin:s}){const l=(0,n.useRef)(null);let d=!1;const c=()=>{var t;l.current instanceof HTMLElement&&(t=l.current,a.has(t))&&(d&&(e(!1),d=!1))},u=(0,n.useCallback)((n=>{l.current instanceof HTMLElement&&((e,t="-64px 0px 0px 0px",i)=>{const n={root:"undefined"==typeof document?null:document.querySelector("#mainContainer"),rootMargin:t,threshold:[0,.5,1]};r=r||new window.IntersectionObserver(o,n),a.set(e,i),r.observe(e)})(l.current,n,(n=>{if(!a.has(l.current))return;const r=t?n.intersectionRatio>=.5:n.intersectionRatio>0||n.isIntersecting,o=i?n.intersectionRatio>=1:r,s=i?0===n.intersectionRatio:!o;!d&&o?(t=>{const i=t.intersectionRatio>0||t.isIntersecting;d=i,d&&e(!0)})(n):d&&s&&c()}))}),[l.current]);return(0,n.useEffect)((()=>(u(s),()=>{var e;l.current instanceof HTMLElement&&(c(),e=l.current,r.unobserve(e),a.delete(e))})),[u]),l}},644035:(e,t,i)=>{i.d(t,{GW:()=>a,RL:()=>n,s4:()=>r});const n="ios",a="android",r="ipad"},562559:(e,t,i)=>{i.d(t,{Z:()=>f});var n=i(667294),a=i(867631),r=i.n(a),o=i(112690),s=i(19121),l=i(965900),d=i(773285),c=i(780280),u=i(883119),p=i(969315),_=i(179888),h=i(858416),m=i(785893);function g(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const v=(e,t)=>{if(t){const i="control"===t?"v3.pinimg.com":"v2.pinimg.com";return e.replace("v.pinimg.com",i)}return e},y=(e,t)=>"string"==typeof e?v(e,t):Array.isArray(e)?((e,t)=>e[0].src&&t?[{...e[0],src:v(e[0].src,t)}]:e)(e,t):e;class E extends n.PureComponent{constructor(...e){super(...e),g(this,"state",{canPlayVideo:!1,isManifestParsed:!1,playbackState:_.Cy.DEFAULT,videoStartTime:this.props.seekTime||0}),g(this,"errorRetryCount",1),g(this,"firstFragBuffered",!1),g(this,"hasPlaybackStarted",!1),g(this,"hasVideoSessionStarted",!1),g(this,"hasVideoSessionEnded",!1),g(this,"hls",null),g(this,"fragStartupTime",{}),g(this,"lastLevelSwitchKbps",null),g(this,"lastStallTime",null),g(this,"lastPauseTime",null),g(this,"logSessionStartOnNextPlay",!1),g(this,"playerId",""),g(this,"videoSessionId",""),g(this,"videoVisibleTime",null),g(this,"playbackPerformance",{canPlayTime:null,detailedErrors:"",downloadedKiloBytes:0,errorCode:0,errorName:"",errorReason:"",hasFatalError:!1,loadStartTime:null,numberOfStalls:0,numberOfSeeks:0,playbackStartTimestamp:null,segments:[],srcString:"string"==typeof this.props.src?v(this.props.src,this.props.quicExpGroup):v(this.props.src[0].src,this.props.quicExpGroup),totalStallDurationMs:0,totalPauseDurationMs:0,videoCreatedTime:null}),g(this,"initializeHls",(()=>{this.destroyHls();const{src:e,hlsConfig:t,quicExpGroup:i}=this.props,n=new(r())(t),a=y(e,i);n.loadSource(a),this.videoPlayerRef&&n.attachMedia(this.videoPlayerRef.video),n.on(r().Events.FRAG_BUFFERED,this.handleHlsFragBuffered),n.on(r().Events.FRAG_CHANGED,this.handleHlsFragChanged),n.on(r().Events.FRAG_LOADING,this.handleHlsFragLoading),n.on(r().Events.FRAG_LOADED,this.handleHlsFragLoaded),n.on(r().Events.MANIFEST_PARSED,(()=>{this.setState({isManifestParsed:!0})})),n.on(r().Events.LEVEL_SWITCHED,this.handleHlsLevelSwitched),n.on(r().Events.ERROR,this.handleHlsError),this.hls=n})),g(this,"destroyHls",(()=>{const{hls:e}=this;e&&e.destroy()})),g(this,"addSegment",(e=>{const{segments:t}=this.playbackPerformance,i=t&&t[t.length-1];if(this.hls&&t.length&&i&&i.uri!==e.url){this.updateWatchDurationForCurrentSegment();const i=this.videoPlayerRef&&this.videoPlayerRef.video,n=this.hls&&this.hls.levels||{},a="number"==typeof e.level?n[e.level]:{},r=this.fragStartupTime[e.url];let o=-1;r&&r.startLoadTime&&r.endLoadTime&&(o=r.endLoadTime-r.startLoadTime);const s={indicatedKbps:a.bitrate/_.bR,duration:e.duration,level:e.level,lastStartPlayTime:this.getCurrentVideoTime(),numServerAddressChange:-1,observedKbps:this.hls&&this.hls.bandwidthEstimate/_.bR||-1,playbackStartDate:Date.now(),serverAddress:"",sn:e.sn,sourceWidth:a.width,sourceHeight:a.height,startupTimeMs:o,switchBitrateKbps:this.lastLevelSwitchKbps||-1,uri:e.url,viewportWidth:i&&i.clientWidth||-1,viewportHeight:i&&i.clientHeight||-1,watchedDurationMs:0};t.push(s)}})),g(this,"initializeSegments",(e=>{const{contextLogData:t={}}=this.props,{is_closeup_video:i=!1}=t,{segments:n}=this.playbackPerformance;if(!n.length)if(this.hls&&this.videoPlayerRef&&this.videoPlayerRef.video&&e){if(!n.length&&"number"==typeof e.level){const t=this.videoPlayerRef&&this.videoPlayerRef.video,i=this.hls.levels,a="number"==typeof e.level?i[e.level]:{},r=this.fragStartupTime[e.url];let o=-1;r&&r.startLoadTime&&r.endLoadTime&&(o=r.endLoadTime-r.startLoadTime),this.lastLevelSwitchKbps=this.hls.bandwidthEstimate/_.bR;const s={indicatedKbps:a.bitrate/_.bR,duration:e.duration,level:e.level,lastStartPlayTime:null,numServerAddressChange:-1,observedKbps:this.hls.bandwidthEstimate/_.bR||-1,playbackStartDate:null,serverAddress:"",sn:e.sn,sourceWidth:a.width,sourceHeight:a.height,startupTimeMs:o,switchBitrateKbps:this.lastLevelSwitchKbps||-1,uri:e.url,viewportWidth:t.clientWidth,viewportHeight:t.clientHeight,watchedDurationMs:0};n.push(s)}}else(0,p.tE)("initializeSegmentsFailed",!0,i)})),g(this,"getCurrentVideoTime",(()=>this.videoPlayerRef&&this.videoPlayerRef.video?this.videoPlayerRef.video.currentTime*_.gJ:null)),g(this,"handleCanPlayVideo",(e=>{const{contextLogData:t={},onReady:i,playing:n}=this.props,{is_closeup_video:a=!1}=t,{canPlayVideo:r}=this.state;(0,p.tE)("handleCanPlayVideo",!0,a,{firstCanPlayEvent:!r,playing:n}),this.playbackPerformance.hasFatalError=!1,r||(this.playbackPerformance.canPlayTime=new Date),this.setState({canPlayVideo:!0}),i&&i(e)})),g(this,"handleEnded",(e=>{const{loop:t,onEnded:i}=this.props,{segments:n}=this.playbackPerformance,a=n&&n[n.length-1];t&&this.videoPlayerRef&&this.videoPlayerRef.video?(this.updateWatchDurationForCurrentSegment(),a&&(a.lastStartPlayTime=0),this.fragStartupTime={}):t||this.logPlaybackPerformance(_.$f,{initiator:"videoEnded",loop:t}),this.setState({playbackState:_.Cy.ENDED}),i&&i(e)})),g(this,"handleHlsError",((e,t)=>{var i;const{contextLogData:n={}}=this.props,{is_closeup_video:a=!1}=n;if(this.playbackPerformance.detailedErrors+=`${this.playbackPerformance.detailedErrors.length>0?", ":""}${t.details}`,t.fatal){var o,s,l,d;this.playbackPerformance.hasFatalError=!0,this.playbackPerformance.errorName=t.type,this.playbackPerformance.errorReason=t.details,this.playbackPerformance.errorCode=t.response&&t.response.code?t.response.code:0;const e={errorName:t.type,errorReason:t.details,errorRetryCount:this.errorRetryCount,errorMessage:(null===(o=t.err)||void 0===o||null===(s=o.message)||void 0===s?void 0:s.slice(0,50))||"unknown",errorResponse:(null===(l=t.response)||void 0===l||null===(d=l.text)||void 0===d?void 0:d.slice(0,50))||"unknown",playbackState:this.state.playbackState};if((0,p.tE)("fatalError",!0,a,e),this.errorRetryCount>0)switch(this.errorRetryCount-=1,t.type){case r().ErrorTypes.NETWORK_ERROR:if(t.details===r().ErrorDetails.MANIFEST_LOAD_ERROR||t.details===r().ErrorDetails.MANIFEST_LOAD_TIMEOUT||t.details===r().ErrorDetails.MANIFEST_LOAD_PARSING_ERROR){var c;const{src:e,quicExpGroup:t}=this.props,i=y(e,t);null===(c=this.hls)||void 0===c||c.loadSource(i)}else{var u;null===(u=this.hls)||void 0===u||u.startLoad()}break;case r().ErrorTypes.MEDIA_ERROR:null===(i=this.hls)||void 0===i||i.recoverMediaError()}}this.updateWatchDurationForCurrentSegment(),this.setState({playbackState:_.Cy.FAILED})})),g(this,"handleHlsFragBuffered",((e,t)=>{this.firstFragBuffered||(this.initializeSegments(t.frag),this.firstFragBuffered=!0)})),g(this,"handleHlsFragChanged",((e,t)=>{this.addSegment(t.frag)})),g(this,"handleHlsFragLoading",((e,t)=>{var i;const n=null===(i=t.frag)||void 0===i?void 0:i.url;n&&!this.fragStartupTime[n]&&(this.fragStartupTime[n]={startLoadTime:new Date})})),g(this,"handleHlsFragLoaded",((e,t)=>{var i;t.frag&&t.frag.loaded&&(this.playbackPerformance.downloadedKiloBytes+=t.frag.loaded/_.Fm);const n=null===(i=t.frag)||void 0===i?void 0:i.url;n&&this.fragStartupTime[n]&&this.fragStartupTime[n].startLoadTime&&(this.fragStartupTime[n].endLoadTime=new Date)})),g(this,"handleHlsLevelSwitched",(()=>{this.hls&&this.hls.bandwidthEstimate&&(this.lastLevelSwitchKbps=this.hls.bandwidthEstimate/_.bR)})),g(this,"handleLoadedMetadata",(()=>{this.setState({playbackState:_.Cy.LOADED_METADATA})})),g(this,"handleLoadStart",(()=>{this.playbackPerformance.loadStartTime=new Date,this.setState({playbackState:_.Cy.LOAD_START})})),g(this,"handleLoadedData",(()=>{this.setState({playbackState:_.Cy.LOADED_DATA})})),g(this,"handlePlaying",(()=>{this.playbackPerformance.hasFatalError=!1,this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.updateStallDuration(),this.updatePauseDuration(),this.setState({playbackState:_.Cy.PLAYING}),this.props.clearSeekTime()})),g(this,"handleUserPause",(e=>{const{onControlsPause:t}=this.props;this.lastPauseTime=new Date,t&&t(e)})),g(this,"handleVideoPause",(()=>{this.state.playbackState!==_.Cy.STALLING&&this.state.playbackState!==_.Cy.SEEKING&&(this.updateWatchDurationForCurrentSegment(),this.lastPauseTime||this.updateStallDuration()),this.setState({playbackState:_.Cy.PAUSED})})),g(this,"handleSeeking",(()=>{this.playbackPerformance.numberOfSeeks+=1;const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&(t.lastStartPlayTime=null),this.state.playbackState!==_.Cy.ENDED&&this.setState({playbackState:_.Cy.SEEKING})})),g(this,"handleStalled",(()=>{null===this.lastStallTime&&this.state.playbackState!==_.Cy.ENDED&&(this.lastStallTime=new Date,this.playbackPerformance.numberOfStalls+=1),this.setState({playbackState:_.Cy.STALLING})})),g(this,"handleTimeUpdate",(e=>{const{onTimeChange:t}=this.props;t&&t(e),this.state.playbackState===_.Cy.PLAYING&&(this.updateWatchDurationForCurrentSegment(),this.setLastSegmentStartPlayTime())})),g(this,"resetPlaybackMetrics",(()=>{this.hasPlaybackStarted=!1,this.hasVideoSessionStarted=!1,this.hasVideoSessionEnded=!0,this.lastLevelSwitchKbps=null,this.lastStallTime=null,this.lastPauseTime=null,this.videoSessionId="",this.videoVisibleTime=null,this.logSessionStartOnNextPlay=!1;const e={...this.playbackPerformance.segments[this.playbackPerformance.segments.length-1],lastStartPlayTime:null,playbackStartDate:null,switchBitrateKbps:-1,watchedDurationMs:0};this.playbackPerformance.detailedErrors="",this.playbackPerformance.downloadedKiloBytes=0,this.playbackPerformance.errorCode=0,this.playbackPerformance.errorName="",this.playbackPerformance.errorReason="",this.playbackPerformance.hasFatalError=!1,this.playbackPerformance.numberOfStalls=0,this.playbackPerformance.numberOfSeeks=0,this.playbackPerformance.playbackStartTimestamp=null,this.playbackPerformance.totalStallDurationMs=0,this.playbackPerformance.segments=[e]})),g(this,"setLastSegmentStartPlayTime",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.lastStartPlayTime&&(t.lastStartPlayTime=this.getCurrentVideoTime())})),g(this,"setLastSegmentPlaybackStartDate",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.playbackStartDate&&(t.playbackStartDate=Date.now())})),g(this,"setPlaybackStartTime",(()=>{this.hasPlaybackStarted||(this.playbackPerformance.playbackStartTimestamp=Date.now(),this.hasPlaybackStarted=!0)})),g(this,"setVideoPlayerRef",(e=>{const{setVideoRef:t}=this.props;if(e&&(t&&t(e),this.videoPlayerRef=e,this.videoPlayerRef.video)){const e=this.videoPlayerRef.video;e.addEventListener("loadedmetadata",this.handleLoadedMetadata),e.addEventListener("loadeddata",this.handleLoadedData),e.addEventListener("pause",this.handleVideoPause),e.readyState>=3&&(this.setState({canPlayVideo:!0}),this.playbackPerformance.canPlayTime=new Date)}})),g(this,"updateStallDuration",(()=>{null!==this.lastStallTime&&(this.playbackPerformance.totalStallDurationMs+=new Date-this.lastStallTime,this.lastStallTime=null)})),g(this,"updatePauseDuration",(()=>{if(null!==this.lastPauseTime){const e=this.lastPauseTime;this.playbackPerformance.totalPauseDurationMs+=new Date-e,this.lastPauseTime=null}})),g(this,"updateWatchDurationForCurrentSegment",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1],i=t?t.lastStartPlayTime:null,n=this.getCurrentVideoTime();if(t&&null!==i&&"number"==typeof n&&"number"==typeof i){const e=n-i;e>0&&(t.watchedDurationMs+=e,t.lastStartPlayTime=null)}})),g(this,"logPlaybackPerformance",((e,t)=>{const{contextLogData:i={},userId:n,isAutoPlay:a,logContextEvent:r}=this.props,{is_closeup_video:o=!1}=i,{canPlayTime:s,detailedErrors:l,downloadedKiloBytes:d,errorCode:c,errorName:u,errorReason:h,hasFatalError:m,playbackStartTimestamp:g,totalPauseDurationMs:v,totalStallDurationMs:y,segments:E,srcString:f,loadStartTime:S,numberOfStalls:P,numberOfSeeks:b}=this.playbackPerformance,T=this.videoPlayerRef&&this.videoPlayerRef.video,A=e===_.DR,I=A&&!this.hasVideoSessionStarted,x=!A&&!this.hasVideoSessionEnded&&this.hasVideoSessionStarted;if(this.hls&&T&&(I||x)){var C;let I=-1;s&&S&&(I=s>S?s-S:0);let x=-1;s&&this.videoVisibleTime&&(x=s>this.videoVisibleTime?s-this.videoVisibleTime:0),A&&(this.videoSessionId=(0,_.Y7)(n),this.playerId=this.playerId||(0,_.EB)());const O={autoplaying:a,averageVideoKbps:-1,detailedErrors:l,downloadedKiloBytes:d,isCellular:!1,errorCode:c,errorName:u,errorReason:h,fatalError:m,nativeVideoDurationMs:T.duration*_.gJ||-1,numberOfStalls:P,numberOfSeeks:b,overallPausedDurationMs:v,overallBufferDurationMs:y,overallWatchedDurationMs:-1,rebufferRate:-1,playbackSessionId:this.videoSessionId,playbackStartTimestamp:g||-1,segments:[],sessionMark:e,screenPixelScale:null!==(C=window)&&void 0!==C&&C.devicePixelRatio?window.devicePixelRatio:-1,startupPlayerWidth:T.clientWidth,startupPlayerHeight:T.clientHeight,startupTimeMs:I,startupLatencyMs:x,startupVariantKbps:-1,startupVariantWatchedDurationMs:-1,startupVariantWidth:T.videoWidth,startupVariantHeight:T.videoHeight,videoUrl:f};if(!A&&E.length){const e=this.hls.levels,t=E[0];this.updateWatchDurationForCurrentSegment(),this.updateStallDuration();const i=E.reduce(((t,i)=>{if(i&&"number"==typeof i.level&&e&&e.length>0){return t+(e[i.level]||{}).bitrate*(i.watchedDurationMs||0)/_.gJ}return t}),0),n=E.reduce(((e,t)=>e+(t.watchedDurationMs||0)),0);let a=null,r=0,o=0;do{r+=E[o].watchedDurationMs,a=a||E[o].level,o+=1}while(o<E.length&&E[o].level===a);O.startupVariantKbps=t.indicatedKbps,O.startupVariantWatchedDurationMs=r,O.startupVariantWidth=t.sourceWidth,O.startupVariantHeight=t.sourceHeight,O.startupPlayerWidth=t.viewportWidth,O.startupPlayerHeight=t.viewportHeight,O.overallWatchedDurationMs=n,n>0?(O.averageVideoKbps=i/(n/_.gJ),O.rebufferRate=this.playbackPerformance.totalStallDurationMs/n):0===n&&(O.averageVideoKbps=-1,O.rebufferRate=-1,O.errorName="invalid_watch_duration"),O.segments=E}else O.errorName="invalid_watch_duration";(0,p.ZP)(O,!0,o,{playbackState:this.state.playbackState,...t});const{clientTrackingParams:R,component:w,durationNs:k,element:D,objectId:N,pairId:L,viewData:M,view:j,viewParameter:U,...F}=i;r({aux_data:{...F,is_closeup_video:o,playback_session_id:this.videoSessionId},clientTrackingParams:R,component:w,duration_ns:k,element:D,event_data:{videoPerformanceData:O},event_type:3606,object_id_str:N,pair_id:L,view_data:M,view_parameter:U,view_type:j}),A?(this.hasVideoSessionStarted=!0,this.hasVideoSessionEnded=!1):this.resetPlaybackMetrics(),(0,p.tE)(A?"sessionStart":"sessionEnd",!0,o,{playbackState:this.state.playbackState,...t})}}))}componentDidMount(){const{contextLogData:e={},playing:t}=this.props,{is_closeup_video:i=!1}=e;this.playbackPerformance.videoCreatedTime=new Date,this.initializeHls(),(0,p.tE)("videoMounted",!0,i),t&&(this.videoVisibleTime=new Date,this.logPlaybackPerformance(_.DR,{initiator:"mount"}))}componentDidUpdate(e){const{loop:t,playing:i,src:n,visible:a,appInFocus:r,seekTime:o}=this.props;var s,l;o&&o!==e.seekTime&&this.setState({videoStartTime:o}),(typeof(s=e.src)!=typeof(l=n)||(Array.isArray(l)?s.length!==l.length||l.some(((e,t)=>!Array.isArray(s)||e.type!==s[t].type||e.src!==s[t].src)):l!==s))&&this.initializeHls(),e.appInFocus&&!r&&(this.logPlaybackPerformance(_.$f,{initiator:"update",loop:t}),this.logSessionStartOnNextPlay=!0),e.visible&&!1===a&&(this.logSessionStartOnNextPlay=!1,this.updatePauseDuration(),this.logPlaybackPerformance(_.$f,{initiator:"update",loop:t})),!1===e.visible&&!0===a&&(this.videoVisibleTime=this.videoVisibleTime||new Date,i?(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(_.DR,{initiator:"update"})):this.logSessionStartOnNextPlay=!0),i&&r&&this.logSessionStartOnNextPlay&&(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(_.DR,{initiator:"update"}),this.logSessionStartOnNextPlay=!1)}componentWillUnmount(){const{loop:e}=this.props;this.updatePauseDuration(),this.logPlaybackPerformance(_.$f,{initiator:"unmount",loop:e}),this.destroyHls()}render(){const{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:o,aspectRatio:s,backgroundColor:l,captions:d,controls:c,loop:p,loopOverride:_,onDurationChange:h,onFullscreenChange:g,onLoadedChange:v,onControlsPlay:E,onPlayheadDown:f,onPlayheadUp:S,onSeek:P,onVolumeChange:b,playbackRate:T,playing:A,playsInline:I,poster:x,preload:C,quicExpGroup:O,src:R,volume:w}=this.props,{canPlayVideo:k,isManifestParsed:D,videoStartTime:N}=this.state,L=y(R,O);return(0,m.jsx)(u.nk,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:o,aspectRatio:s,backgroundColor:l,captions:d,controls:c,loop:void 0===_?p:_,onDurationChange:h,onEnded:this.handleEnded,onFullscreenChange:g,onLoadStart:this.handleLoadStart,onLoadedChange:v,onControlsPause:this.handleUserPause,onControlsPlay:E,onPlaying:this.handlePlaying,onPlayheadDown:f,onPlayheadUp:S,onReady:this.handleCanPlayVideo,onSeek:P,onSeeking:this.handleSeeking,onStalled:this.handleStalled,onTimeChange:this.handleTimeUpdate,onVolumeChange:b,onWaiting:this.handleStalled,playbackRate:T,onPlay:()=>{},onPlayError:()=>{},playing:D&&k&&A,playsInline:I,poster:x,preload:C,ref:this.setVideoPlayerRef,src:L,startTime:N,volume:w})}}const f=(0,n.memo)((function(e){const{country:t,isAuthenticated:i,isBot:n,isSocialBot:a,unauthId:r,userAgent:u}=(0,c.B)(),_=(0,o.Z)(),g=(0,s.Z)(),{browserName:v,browserVersion:y,isMobile:f}=u,{contextLogData:S={}}=e,{is_closeup_video:P=!1,view:b,viewParameter:T}=S,{checkExperiment:A}=(0,d.F)(),{seekTime:I}=(0,h.Hx)(),{clearSeekTime:x}=(0,h.RC)();let C=null;i&&(C=A("web_video_quic").group.length?A("web_video_quic").group:null);const{appUI:O}=(0,l.I)(),R=A("web_video_fail_to_start_fix").anyEnabled?O.appInFocus:e.appInFocus,w={browserName:v,browserVersion:y,country:t,isAuthenticated:i,isBot:n,is_closeup_video:P,isMobile:f,isSocialBot:a,view:b,viewParameter:T};return(0,p.r$)(w),(0,m.jsx)(E,{...e,userId:g.id||r,appInFocus:R,quicExpGroup:C,logContextEvent:_,seekTime:I,clearSeekTime:x})}))},964082:(e,t,i)=>{function n(e,t){const{organicVideosAutoplaying:i,promotedVideosAutoplaying:n}=t,a={...i,...n};for(const r in a){const{paused:t}=a[r];if(r!==e&&!t)return!1}return!0}i.d(t,{Z:()=>n})},36971:(e,t,i)=>{function n(e,t){const{organicVideosAutoplaying:i,promotedVideosAutoplaying:n}=t,a={...i,...n};return a[e]&&a[e].currentTime}i.d(t,{Z:()=>n})},463045:(e,t,i)=>{function n(e,t){const{organicVideosAutoplaying:i,promotedVideosAutoplaying:n}=t,a={...i,...n};return!!a[e]&&!a[e].paused}i.d(t,{Z:()=>n})},969315:(e,t,i)=>{i.d(t,{ZP:()=>u,r$:()=>d,tE:()=>c});var n=i(311560),a=i(172071),r=i(179888);const o=["isCellular","videoUrl","sessionMark"];let s={},l="";const d=e=>{const{browserName:t,browserVersion:i,country:a,isAuthenticated:r,isBot:o,isMobile:d,isSocialBot:c,view:u="unknown",viewParameter:p="unknown"}=e;l=(c?"socialBot":o&&"bot")||"nonbot";const _=(0,n.Z)(a);s={browserName:t,browserVersion:(null==i?void 0:i.split(".")[0])||"0",isAuthenticated:r,isMobile:d,region:_,view:u,viewParameter:p}};function c(e,t,i,n={}){const r=i?"closeup":"nonCloseup",o=t?"hls":"nonHls",d={...n,...s},c=`web.video.${o}.${l}.${r}.${e}`;a.Z.increment(c,1,d)}function u(e,t,i,n={}){const d=i?"closeup":"nonCloseup",c=t?"hls":"nonHls",u=e.sessionMark===r.DR?"sessionStart":"sessionEnd",p={...n,...s};if(Object.entries(e).forEach((([t,i])=>{const n=`web.video.${c}.${l}.${d}.${u}.${t}`,r=parseInt(i,10),s="number"==typeof r?r:-1;var _;if(!o.includes(t))if(t.includes("fatalError")&&!0===i){const{errorCode:t,errorName:i,errorReason:r}=e;a.Z.increment(n,1,{errorCode:t,errorName:i,errorReason:r,...p})}else if(t.includes("Width")||t.includes("Height")){const e=(_=s)<0?"negative":0===_?"zero":_<200?"xs":_<400?"s":_<600?"m":_<800?"l":_<1e3?"xl":_<1200?"xxl":"over1200";a.Z.increment(n,1,{dimensionBucket:e,...p})}else if("numberOfStalls"===t){let e=i;s>1e3?e="over1000":s>10?e="over10":s<0&&(e="negative"),a.Z.increment(n,1,{numberOfStalls:e,...p})}else"screenPixelScale"===t?a.Z.increment(n,1,{screenPixelScale:i||-1,...p}):s>=0?(0===s&&a.Z.increment(`${n}.zero`,1,p),a.Z.timing(n,s,1),a.Z.timing(`${n}_with_tags`,s,1,p)):s<0&&a.Z.increment(`${n}.negative`,1,p)})),e.sessionMark!==r.DR){const{rebufferRate:t,screenPixelScale:i,startupLatencyMs:n,startupVariantWidth:r,startupPlayerWidth:o}=e,s=`web.video.${c}.${l}.${d}.${u}`;if("number"==typeof r&&"number"==typeof o&&"number"==typeof i){const e=1.5*r>i*o;a.Z.increment(`${s}.upscaled.${e?"good":"bad"}`,1,p)}"number"==typeof n&&a.Z.increment(`${s}.startupLatency.${n<500?"good":"bad"}`,1,p),"number"==typeof t&&a.Z.increment(`${s}.rebufferRate.${t<.01?"good":"bad"}`,1,p)}}},179888:(e,t,i)=>{i.d(t,{$f:()=>r,Cy:()=>d,DR:()=>a,EB:()=>p,Fm:()=>l,Y7:()=>u,bR:()=>s,gJ:()=>o,lG:()=>c});var n=i(172045);const a=1,r=2,o=1e3,s=1e3,l=1e3,d=Object.freeze({DEFAULT:0,LOAD_START:1,LOADED_METADATA:2,LOADED_DATA:3,PLAYING:4,PAUSED:5,SEEKING:6,STALLING:7,FAILED:8,ENDED:9}),c=Object.freeze({MEDIA_ERR_ABORTED:1,MEDIA_ERR_NETWORK:2,MEDIA_ERR_DECODE:3,MEDIA_ERR_SRC_NOT_SUPPORTED:4});function u(e){return e+"-"+(0,n.Z)()}function p(){return(0,n.Z)()}},121630:(e,t,i)=>{i.d(t,{Z:()=>r,e:()=>a});var n=i(81226);const a=e=>{if("undefined"==typeof window)return"";let t=0;const i=document.querySelector('[data-test-id="header"]');if(null!==i){const{height:e}=i.getBoundingClientRect();t+=e}switch(e){case"AuthHomefeed":const e=document.querySelector('[data-root-margin="more-ideas-tabs"]');if(null!==e){const{height:i}=e.getBoundingClientRect();t+=i}break;case"SearchItem":const i=document.querySelector('[data-root-margin="search-improvements-bar"]');if(null!==i){const{height:e}=i.getBoundingClientRect();t+=e}const n=document.querySelector('[data-test-id="search-tab-bar"],[data-root-margin="search-one-bar"]');if(null!==n){const{height:e}=n.getBoundingClientRect();t+=e}}return-1*t+"px 0px 0px 0px"},r=e=>{var t,i,a,r,o;return(0,n.Z)((null===(t=e.videos)||void 0===t?void 0:t.duration)||(null===(i=e.videos)||void 0===i||null===(a=i.video_list)||void 0===a||null===(r=a.V_HLSV4)||void 0===r?void 0:r.duration)||(null===(o=e.story_pin_data)||void 0===o?void 0:o.total_video_duration)||0)}},43760:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(768559),a=i(102500),r=i(48714);function o({url:e,pinId:t,pin:i,location:o,auxData:s}){var l,d;const c={check_only:!0,client_tracking_params:i?(0,n.Z)({boardUrl:null===(l=i.board)||void 0===l?void 0:l.url,callToCreateSourcePinId:i.call_to_create_source_pin_id,location:o,pinId:i.id,pinnerUserName:null===(d=i.pinner)||void 0===d?void 0:d.username,storyPinDataId:i.story_pin_data_id,trackingParams:i.tracking_params,trackingParamsMap:i.tracking_params_map}):void 0,pin_id:i?i.id:t,url:e,aux_data:JSON.stringify(s)};(0,a.Z)(c).callGet().then((a=>{if(a&&a.resource_response&&!a.resource_response.error){const{resource_response:e}=a,{redirect_status:t,url:i}=e.data;if(!["blocked","suspicious","porn"].includes(t)){if(window.Windows.Foundation&&window.Windows.System&&window.Windows.System.Launcher&&window.Windows.System.Launcher.launchUriAsync){const e=new window.Windows.Foundation.Uri(i);window.Windows.System.Launcher.launchUriAsync(e)}return}}if(i){var l,d;const a=(0,n.Z)({boardUrl:null===(l=i.board)||void 0===l?void 0:l.url,callToCreateSourcePinId:i.call_to_create_source_pin_id,location:o,pinId:i.id,pinnerUserName:null===(d=i.pinner)||void 0===d?void 0:d.username,storyPinDataId:i.story_pin_data_id,trackingParams:i.tracking_params,trackingParamsMap:i.tracking_params_map});(0,r.Gj)({url:e,pinId:t,csrId:null,clientTrackingParams:a,auxData:s})}else(0,r.Gj)({url:e,pinId:t})}))}},965900:(e,t,i)=>{i.d(t,{g:()=>_,I:()=>p});var n=i(667294),a=i(567450),r=i(150361),o=i.n(r);const s={appInFocus:!0,footerPlusButtonVisible:!0,isAutoplay:!1,showTypeaheadOverlay:!1,videosAutoplaying:{currentlyPlayingOrganicVideoId:null,organicVideosAutoplaying:{},promotedVideosAutoplaying:{}},viewportSize:"lg"},l=(e=s,t)=>{if("TOGGLE_TYPEAHEAD_OVERLAY"===t.type)return{...e,showTypeaheadOverlay:t.payload};if("SET_CURRENT_VIDEO"===t.type){const{payload:i}=t,{pinId:n,isPromoted:a,currentTime:r,inVideoGridAutoplayExp:s}=i,{videosAutoplaying:l}=e,{currentlyPlayingOrganicVideoId:d,promotedVideosAutoplaying:c,organicVideosAutoplaying:u}=l,p=o()(c),_=o()(u);return!a&&d&&s?e:(a?p[n]={pinId:n,currentTime:r,paused:!1}:_[n]={pinId:n,currentTime:r,paused:!1},{...e,videosAutoplaying:{currentlyPlayingOrganicVideoId:a?d:n,promotedVideosAutoplaying:p,organicVideosAutoplaying:_}})}if("SET_IS_AUTOPLAY"===t.type)return{...e,isAutoplay:t.payload};if("PAUSE_CURRENT_VIDEO"===t.type){const{payload:i}=t,{pinId:n,isPromoted:a,currentTime:r}=i,{videosAutoplaying:s}=e,{promotedVideosAutoplaying:l,organicVideosAutoplaying:d}=s,c=o()(l),u=o()(d);return a?c[n]={...c[n],paused:!0,currentTime:r}:u[n]={...u[n],paused:!0,currentTime:r},{...e,videosAutoplaying:{currentlyPlayingOrganicVideoId:null,promotedVideosAutoplaying:c,organicVideosAutoplaying:u}}}return"SET_APP_FOCUS_STATE"===t.type?{...e,appInFocus:t.payload}:"SET_VIEWPORT_SIZE"===t.type?{...e,viewportSize:t.payload}:"SET_FOOTER_VISIBILITY_STATE"===t.type?{...e,footerPlusButtonVisible:t.payload}:e};var d=i(425288),c=i(785893);const{Provider:u,useHook:p}=(0,d.Z)("AppUI");function _({children:e}){const[t,i]=(0,n.useReducer)(l,s),r=(0,n.useCallback)((e=>i({type:"PAUSE_CURRENT_VIDEO",payload:e})),[]),o=(0,n.useCallback)((e=>i({type:"SET_APP_FOCUS_STATE",payload:e})),[]),d=(0,n.useCallback)((e=>i({type:"SET_CURRENT_VIDEO",payload:e})),[]),p=(0,n.useCallback)((e=>i({type:"SET_FOOTER_VISIBILITY_STATE",payload:e})),[]),_=(0,n.useCallback)((e=>i({type:"SET_IS_AUTOPLAY",payload:e})),[]),h=(0,n.useCallback)((e=>i({type:"SET_VIEWPORT_SIZE",payload:e})),[]),m=(0,n.useCallback)((e=>i({type:"TOGGLE_TYPEAHEAD_OVERLAY",payload:e})),[]),g=(0,n.useMemo)((()=>({pauseAutoplay:r,setCurrentVideo:d,setFooterPlusButtonVisible:p,setIsAutoplay:_,setViewportSize:h,toggleTypeaheadOverlay:m,setAppFocusState:o,appUI:t})),[r,d,p,_,h,m,o,t]);return(0,n.useEffect)((()=>{a.Z.onSessionResume((()=>{o(!0)})).onSessionPause((()=>{o(!1)}))}),[o]),(0,c.jsx)(u,{value:g,children:e})}},350445:(e,t,i)=>{i.d(t,{Z:()=>d});var n=i(898781),a=i(883119),r=i(785893);const o={__path:"M12 18.5A6.508 6.508 0 0 1 5.5 12c0-1.706.689-3.307 1.835-4.5H6.5a1 1 0 1 1 0-2h4.185v4.474a1 1 0 0 1-2 0V8.972A4.505 4.505 0 0 0 7.5 12c0 2.481 2.019 4.5 4.5 4.5s4.5-2.019 4.5-4.5a4.49 4.49 0 0 0-3.112-4.283 1 1 0 1 1 .615-1.902A6.482 6.482 0 0 1 18.5 12c0 3.584-2.916 6.5-6.5 6.5M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0"},s={__path:"M17.496 14.572a1 1 0 0 1-1 1h-.001a1.001 1.001 0 0 1-.999-1.001l.002-4.652-7.29 7.288a.995.995 0 0 1-.707.293.999.999 0 0 1-.707-1.707l7.293-7.29L9.428 8.5a1 1 0 0 1 .001-2h.001l8.071.005-.005 8.067zM12 0C5.373 0 0 5.373 0 12c0 6.628 5.373 12 12 12 6.628 0 12-5.372 12-12 0-6.627-5.372-12-12-12z"},l={overlay:{__style:{backgroundColor:"#000"}}};function d({backgroundImage:e,naturalHeight:t,naturalWidth:i,onRestartVideo:d,pinTitle:c,pin:u}){const p=(0,n.ZP)(),{id:_}=u;return(0,r.jsxs)(a.Ee,{alt:c||p.bt("Pin 图图片", "pin image", "image of a pin", undefined, true),naturalHeight:t,naturalWidth:i,src:e,children:[(0,r.jsx)(a.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,opacity:.8,dangerouslySetInlineStyle:l.overlay}),(0,r.jsxs)(a.xu,{justifyContent:"center",direction:"column",display:"flex",position:"absolute",height:"100%",width:"100%","data-test-id":`video-end-card-${_}`,children:[(0,r.jsx)(a.iP,{rounding:2,children:(0,r.jsxs)(a.xu,{display:"flex",justifyContent:"center",padding:2,children:[(0,r.jsx)(a.JO,{accessibilityLabel:p.bt("访问网站", "Visit site", "Button when pressed goes to pin's website", undefined, true),color:"light",dangerouslySetSvgPath:s,size:25}),(0,r.jsx)(a.xu,{margin:1}),(0,r.jsx)(a.xv,{color:"light",lineClamp:1,weight:"bold",children:p.bt("访问网站", "Visit site", "Button when pressed goes to pin's website", undefined, true)})]})}),(0,r.jsx)(a.xu,{margin:3}),(0,r.jsx)(a.iP,{onTap:d,rounding:2,children:(0,r.jsxs)(a.xu,{display:"flex",justifyContent:"center",padding:2,children:[(0,r.jsx)(a.JO,{accessibilityLabel:p.bt("再次观看", "Watch again", "Button when pressed restarts the video", undefined, true),color:"light",dangerouslySetSvgPath:o,size:25}),(0,r.jsx)(a.xu,{margin:1}),(0,r.jsx)(a.xv,{color:"light",lineClamp:1,weight:"bold",children:p.bt("再次观看", "Watch again", "Button when pressed restarts the video", undefined, true)})]})})]})]})}},333155:(e,t,i)=>{i.d(t,{UP:()=>s,Wv:()=>a,ZF:()=>n,zI:()=>r,zl:()=>o});const n=["AuthHomefeed","CloseupRelatedProducts","FollowingFeedGrid","RelatedPinGrid","RelatedProductsFeed","SearchItem"],a=["ArticleProductsStory","CloseupRelatedProducts","ProductPinsFeed","RelatedProductsFeed","ShoppingPackageItem","RelatedProductsFeed","UserProfilePinGrid","ShoppingGridShippedMetadataWithVisitButton"],r=[...a,"ShoppingGridShippedMetadata","ShoppingSquareGridDomain","ShoppingSquareGridDomainNoMetadata","ProductPinsFeed","ShoppingCatalogsProductsMetadata","ShoppingDynamicHeightGrid"],o=["ShoppingSquareGridDomain","ShoppingGridShippedMetadata","ShoppingSquareGridStorefront","ShoppingSquareGridStorefrontDomain","ShoppingGridShippedMetadataWithVisitButton"],s=["BaseBoardPinGrid"]},8320:(e,t,i)=>{i.d(t,{Z:()=>d});var n=i(63552),a=i(883119),r=i(785893);const o={__style:{borderRadius:"4px",padding:"10px 14px"}},s={borderWidth:"1px",borderStyle:"solid",borderColor:"white"},l={__style:{borderRadius:"4px",padding:"10px 14px 9px 8px",whiteSpace:"nowrap"}},d=({accessibilityLabel:e,color:t,customStyles:i,forwardedRef:d,icon:c,inline:u=!1,minHeight:p=40,minWidth:_=70,onTouch:h,pressState:m,shape:g,text:v})=>{const y=(e=>"primary"===e||"transparent"===e||"dark"===e?"inverse":"default")(t),E=(({color:e,icon:t})=>t?l:"transparent"===e?{__style:{...o.__style,...s}}:o)({color:t,icon:c}),f=(0,r.jsx)(a.xu,{position:"relative",children:(0,r.jsx)(a.xu,{color:t,display:u?"inlineBlock":"flex",justifyContent:"center",minHeight:p,minWidth:_,dangerouslySetInlineStyle:"pill"===g?(S=i,{__style:{borderRadius:"24px",paddingTop:"10px",paddingBottom:"10px",paddingLeft:"14px",paddingRight:"14px",...S}}):E,children:(0,r.jsxs)(a.kC,{alignItems:"center",justifyContent:"center",children:[c&&(0,r.jsx)(a.xu,{paddingX:"check"===c?2:0,children:(0,r.jsx)(a.JO,{accessibilityLabel:e,color:y,icon:c,inline:!0,size:"check"===c?16:20})}),(0,r.jsx)(a.xv,{color:y,inline:!0,size:"300",lineClamp:1,weight:"bold",children:v})]})})});var S;return h?(0,r.jsx)(n.Z,{onTouch:h,rounding:"pill"===g?"pill":2,pressState:m||"none",children:(0,r.jsx)(a.xu,{ref:d,children:f})}):f}},313951:(e,t,i)=>{i.d(t,{i5:()=>E,sX:()=>P,aX:()=>f,Z5:()=>y,NG:()=>S,MT:()=>b,iu:()=>T});var n=i(667294),a=i(214494),r=i(682492),o=i.n(r);const s=(e,t)=>e.data[t]&&e.data[t].messages||[];function l(e,t){const i={};return e.filter((e=>!!e)).reduce(((e,n)=>{const a=t(n);return i[a]?(o()(i[a],n),e):(i[a]=n,e.concat([n]))}),[])}function d(e){return[...e].sort(((e,t)=>new Date(e.created_ms||e.created_at)-new Date(t.created_ms||t.created_at)))}function c(e,t,i){return d(l(s(e,t).concat(i),(e=>e.id)))}const u={conversationsUnseenCount:0,data:{},newsHubCount:0,open:null,objectAttachment:null,showConversationsDropdown:!1,showNewMessageView:!1,ui:{},unread:0};function p(e=u,t){if("CONVERSATION_OPEN"===t.type)return{...e,open:t.payload.id,objectAttachment:null,showNewMessageView:!1,ui:{...e.ui,[t.payload.id]:{contactRequestId:t.payload.contactRequestId||"",isPreview:t.payload.isPreview}}};if("CONVERSATION_CLOSE"===t.type)return{...e,open:null,objectAttachment:null,showNewMessageView:!1,ui:{...e.ui,[t.payload.id]:{contactRequestId:t.payload.contactRequestId||"",isPreview:!1,isDeclined:t.payload.isDeclined}}};if("CONVERSATION_CREATE"===t.type){const{id:i}=t.payload;return{...e,data:{...e.data,[i]:{...e.data[i]||{},...t.payload}}}}if("CONVERSATION_DELETE"===t.type){const i={...e,data:{...e.data}},{id:n}=t.payload;return delete i.data[n],i}if("FETCH_COMPLETE"===t.type){const{options:i,resource:n,response:a}=t.payload,r=a.resource_response.data;if("ConversationMessagesResource"===n){const t=r||[],n=(null==i?void 0:i.conversation_id)||"",a=c(e,n,t),o=a[a.length-1];return{...e,data:{...e.data,[n]:{...e.data[n],id:n,messages:a,unread:0,last_message:o}}}}if("ConversationsResource"===n){const t=r||[],i={...e,data:{...e.data}};return t.forEach((e=>{const{id:t,created_at:n,name:a,board:r,emails:o,unread:s,users:l,last_message:d}=e,u=c(i,t,[d]);i.data[t]={...i.data[t],id:t,created_at:n,name:a,board:r,emails:o||[],unread:s||0,users:l||[],last_message:d,messages:u}})),i}if("ConversationResource"===n){const t=r||{},{id:i}=t,n={...e,data:{...e.data}};return i&&(n.data[i]={...n.data[i],...t}),n}if("NewsHubBadgeResource"===n){if(r){const t=r.conversations_unseen_count||0;return{...e,unread:t}}return e}}else{if("MESSAGE_SEND_PENDING"===t.type){const{id:i,message:n}=t.payload;return e.data[i]?{...e,data:{...e.data,[i]:{...e.data[i],id:i,messages:[...e.data[i].messages,n]}}}:e}if("MESSAGE_SEND_PENDING_SUCCESS"===t.type){const{id:i,tempMessage:n,newMessage:a}=t.payload;if(e.data[i]){if(s(e,i).find((e=>e.id===n.id&&e.created_ms===n.created_ms))){const t=d(l(s(e,i).filter((e=>e.id!==n.id)).concat([a]),(e=>e.id)));return{...e,data:{...e.data,[i]:{...e.data[i],last_message:a,messages:t}}}}}return e}if("MESSAGE_SEND_PENDING_FAILURE"===t.type){const{id:i,tempMessageId:n}=t.payload;if(e.data[i]){const t=s(e,i).filter((e=>e.id!==n));return{...e,data:{...e.data,[i]:{...e.data[i],messages:t}}}}return e}if("OPEN_NEW_MESSAGE"===t.type){const{objectAttachment:i}=t.payload||null;return{...e,showNewMessageView:!0,open:null,objectAttachment:i}}if("CLOSE_DROPDOWN"===t.type)return{...e,showConversationsDropdown:!1,objectAttachment:null,showNewMessageView:!1};if("OPEN_DROPDOWN"===t.type)return{...e,showConversationsDropdown:!0};if("UPDATE_NEWSHUB_COUNT"===t.type)return{...e,newsHubCount:t.payload};if("UPDATE_UNREAD_COUNT"===t.type)return{...e,conversationsUnseenCount:t.payload};if("CLEAR_MESSAGE_BADGE"===t.type){const{id:i}=t.payload;return{...e,data:{...e.data,[i]:{...e.data[i],unread:0}}}}if("CONVERSATION_SAVE_POSITION"===t.type){const{id:i,position:n}=t.payload;return{...e,data:{...e.data,[i]:{...e.data[i],position:n}}}}if("CONVERSATION_RESET_POSITION"===t.type){const{id:i}=t.payload;return{...e,data:{...e.data,[i]:{...e.data[i],position:null}}}}if("SET_OBJECT_ATTACHMENT"===t.type){const{objectAttachment:i}=t.payload;return{...e,objectAttachment:i}}if("REMOVE_OBJECT_ATTACHMENT"===t.type)return{...e,objectAttachment:null}}return e}var _=i(425288),h=i(505920),m=i(785893);const g=(()=>{let e=0;return()=>e++})(),{Provider:v,useHook:y}=(0,_.Z)("Conversations");function E({children:e}){const[t,i]=(0,n.useReducer)(p,u),r=(0,n.useCallback)((e=>i({type:"FETCH_COMPLETE",payload:e})),[]);(0,h.Z8)("ConversationMessagesResource",r),(0,h.my)("ConversationMessagesResource",r),(0,h.Z8)("ConversationsResource",r),(0,h.Z8)("ConversationResource",r),(0,h.Z8)("NewsHubBadgeResource",r);const o=(0,n.useCallback)(((e,t=!1,n="")=>i({type:"CONVERSATION_OPEN",payload:{id:e,isPreview:t,contactRequestId:n}})),[]),s=(0,n.useCallback)(((e,t="",n=!1)=>i({type:"CONVERSATION_CLOSE",payload:{id:e,contactRequestId:t,isDeclined:n}})),[]),l=(0,n.useCallback)((e=>i({type:"CONVERSATION_CREATE",payload:e})),[]),d=(0,n.useCallback)((e=>i({type:"CONVERSATION_DELETE",payload:{id:e}})),[]),c=(0,n.useCallback)(((e,t)=>i({type:"CONVERSATION_SAVE_POSITION",payload:{id:e,position:t}})),[]),_=(0,n.useCallback)((e=>i({type:"CONVERSATION_RESET_POSITION",payload:{id:e}})),[]),g=(0,n.useCallback)(((e,t,n)=>{a.Z.create("ConversationsResource",{user_ids:e,emails:t,text:""}).callCreate().then((e=>{const t=e&&e.resource_response.data;i({type:"CONVERSATION_OPEN",payload:{id:t.id}})})).catch((e=>{const t=e.message_detail||e.message||"";n(t)}))}),[]),y=(0,n.useCallback)((()=>{i({type:"CLOSE_DROPDOWN"})}),[]),E=(0,n.useCallback)((()=>{i({type:"OPEN_DROPDOWN"})}),[]),f=(0,n.useCallback)((e=>{i({type:"OPEN_NEW_MESSAGE",payload:{objectAttachment:e}})}),[]),S=(0,n.useCallback)(((e,t)=>i({type:"MESSAGE_SEND_PENDING",payload:{id:e,message:t}})),[]),P=(0,n.useCallback)(((e,t,n)=>i({type:"MESSAGE_SEND_PENDING_SUCCESS",payload:{id:e,tempMessage:t,newMessage:n}})),[]),b=(0,n.useCallback)(((e,t)=>i({type:"MESSAGE_SEND_PENDING_FAILURE",payload:{id:e,tempMessageId:t}})),[]),T=(0,n.useCallback)((e=>i({type:"UPDATE_NEWSHUB_COUNT",payload:e})),[]),A=(0,n.useCallback)((e=>i({type:"UPDATE_UNREAD_COUNT",payload:e})),[]),I=(0,n.useCallback)((e=>i({type:"CLEAR_MESSAGE_BADGE",payload:{id:e}})),[]),x=(0,n.useCallback)((e=>i({type:"SET_OBJECT_ATTACHMENT",payload:{objectAttachment:e}})),[]),C=(0,n.useCallback)((()=>i({type:"REMOVE_OBJECT_ATTACHMENT"})),[]),O=(0,n.useMemo)((()=>({clearMessageBadge:I,conversationOpen:o,conversationClose:s,conversationCreate:l,conversationDelete:d,conversationGet:g,saveConversationPosition:c,resetConversationPosition:_,dropdownClose:y,dropdownOpen:E,newMessageOpen:f,pendingMessageSend:S,pendingMessageSuccess:P,pendingMessageFailure:b,updateNewsHubCount:T,updateUnreadCount:A,conversations:t,setObjectAttachment:x,removeObjectAttachment:C})),[I,o,s,l,d,g,c,_,y,E,f,S,P,b,T,A,t,x,C]);return(0,m.jsx)(v,{value:O,children:e})}function f(){const{conversationCreate:e}=y();return async t=>{let i;const n=a.Z.create("ConversationsResource",t);try{var r;const t=null===(r=(await n.callCreate()).resource_response)||void 0===r?void 0:r.data;t&&(e(t),i=t)}catch(o){throw new Error(o.message)}return i}}function S(){const{conversations:e,conversationCreate:t,pendingMessageSend:i,pendingMessageSuccess:n,pendingMessageFailure:r}=y();return async(o,s,l,d)=>{const{text:c,pinId:u,boardId:p,userId:_,didItId:h}=s;async function m(){const e=a.Z.create("ConversationMessagesResource",{conversation_id:o,text:c,pin:u,board:p,user:_,user_did_it_data:h,source:l}),t=`${g()}`,s={text:c,sender:d,created_at:(new Date).toString(),created_ms:Date.now(),id:t,type:"tempMessage"};i(o,s);try{var m;const t=null===(m=(await e.callCreate()).resource_response)||void 0===m?void 0:m.data;t&&n(o,s,t)}catch(v){throw r(o,t),new Error(v.message)}}if(e.data[o])await m();else{const e=a.Z.create("ConversationResource",{conversation_id:o});try{var v;const i=null===(v=(await e.callGet()).resource_response)||void 0===v?void 0:v.data;i&&(t(i),await m())}catch(y){throw new Error(y.message)}}}}function P(e){const{conversations:t}=y();return t.data[e]}function b(e){const{conversations:t}=y();return t.ui[e]||{contactRequestId:"",isDeclined:!1,isPreview:!1}}function T(){const{conversations:{data:e}}=y(),t=(i=e,Object.keys(i).map((e=>i[e]))).filter((e=>e.users&&e.last_message));var i,n;return n=t,Array.from(n).sort(((e,t)=>new Date((t.last_message||t).created_at)-new Date((e.last_message||e).created_at)))}},57791:(e,t,i)=>{i.d(t,{MZ:()=>R,di:()=>k,Ai:()=>w});var n=i(667294),a=i(296679),r=i(8320),o=i(329900),s=i(926275),l=i(250059),d=i(149230),c=i(407043),u=i(48714),p=i(276775);const _=({children:e,external:t,externalQueryParams:i,target:n,href:a})=>{const{logContextEvent:r}=(0,c.v)(),o=(0,p.useHistory)(),s=(0,p.useLocation)();if(!a)return null;const _=(0,l.Z)(a);return e({navigate:e=>{e.preventDefault(),(0,d.Z)({url:_})||t?(0,u.lI)({href:_,queryParams:i,location:s},r,null):(0,u.G3)({event:e,href:a,history:o,target:"blank"===n?"blank":null})}})};var h=i(883119),m=i(785893);const g=({accessibilityLabel:e,children:t,external:i,externalQueryParams:n,inline:a=!1,newTab:r,nofollow:o,onTouch:s,onBlur:d,onFocus:c,pressState:u,rounding:p,to:g})=>(0,m.jsx)(_,{external:i,target:r?"blank":null,externalQueryParams:n,href:g,children:({navigate:i})=>(0,m.jsx)(h.rU,{accessibilityLabel:e,onBlur:d?({event:e})=>d(e):void 0,onFocus:c?({event:e})=>c(e):void 0,underline:"none",href:(0,l.Z)(g),display:a?"inlineBlock":"block",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),null==s||s(e),e.defaultPrevented||i(e)},rel:o?"nofollow":"none",rounding:p,tapStyle:(Array.isArray(u)?u:[u]).includes("compress")?"compress":"none",children:t})}),v=({external:e,externalQueryParams:t,newTab:i,onTouch:n,to:a,...o})=>(0,m.jsx)(_,{external:e,target:i?"blank":null,externalQueryParams:t,href:a,children:({navigate:e})=>(0,m.jsx)(r.Z,{onTouch:t=>{null==n||n(t),t.defaultPrevented||e(t)},...o})});var y=i(938917),E=i(112690),f=i(19121),S=i(30287),P=i(948376),b=i(773285),T=i(780280),A=i(698330),I=i(844974),x=i(339363),C=i(53987);const O=(e,t=!1)=>function({isAppUpsellDisabled:i,...r}){const{children:l,clientTrackingParams:d,deeplinkUri:c,external:u,onTouch:_,refresh:g,to:v,viewParameter:O,viewType:R}=r,w=(0,y.Z)(),[k,D]=(0,n.useState)(!1),[N,L]=(0,n.useState)(!1),[M,j]=(0,n.useState)(!1),[U,F]=(0,n.useState)("control"),{isAuth:V}=(0,f.Z)(),{userAgent:{platform:B},locale:G}=(0,T.B)(),H=(0,A.Tt)(),z=(0,E.Z)(),{checkExperiment:Z}=(0,b.F)(),K=(0,p.useLocation)();(0,n.useEffect)((()=>{!async function(){if("getInstalledRelatedApps"in navigator){j(!0);(await navigator.getInstalledRelatedApps()).length>0&&L(!0)}}()}),[]);const W=()=>{z({event_type:1701,view_type:R,view_parameter:O}),k&&D(!1)};return(0,m.jsxs)(h.xu,{"data-test-id":"deeplink-wrapper",children:[k&&(0,m.jsx)(a.Z,{clientTrackingParams:d,copyChangeGroup:U,deepLinkUri:c,isOpen:!0,onDismiss:()=>{z({component:14157,element:10308,event_type:10220,view_type:R||202,view_parameter:O,aux_data:{app_upsell_type:"deep-link-app-upsell-modal"}})},onOpenInApp:()=>{(0,I.Nh)("deeplinkBehavior","branchfallback"),W()},shouldTrackDismiss:!0,to:v,viewParameter:O,viewType:R,within:"deep-link-app-upsell-modal"}),(0,m.jsx)(o.Z,{children:n=>(0,m.jsx)(e,{...r,onTouch:e=>{const a=w&&!i&&V&&!u&&!g&&!(0,S.FP)(window)&&!("ios"===B&&(G||"").startsWith("ar"))&&(0,P.kp)((0,s.Z)(null==H?void 0:H.created_at));if(a){let t=!0;if("string"==typeof c&&(c||"").startsWith("/pin/")&&((0,C.uM)(K)||(0,C.am)(K)||(0,C.C$)(K))){if(M){if(N&&Z("mweb_auth_deep_link_app_installed_user").anyEnabled){const e=Z("mweb_auth_deep_link_app_installed_user").group;"enabled_triggering_change"===e?t=!1:F(e)}!N&&Z("mweb_auth_deep_link_no_app_installed_user").anyEnabled&&F(Z("mweb_auth_deep_link_no_app_installed_user").group)}}else Z("mweb_auth_deep_link_other_triggering").anyEnabled&&(t=!1);t&&(e.stopPropagation(),e.preventDefault(),D(!0))}else"branchfallback"!==(0,I.qn)("deeplinkBehavior")||(0,x.qn)("fallbackAttempt")||(e.stopPropagation(),e.preventDefault(),(0,x.Nh)("fallbackAttempt",1),n(c,`${window.location.origin}${r=v,"string"==typeof r?r:`${r.pathname||""}${r.search?`?${r.search}`:""}`}`),W());var r;t&&a||!_||_(e)},children:l})})]})},R=O(g),w=O(v),k=O(r.Z,!0)},329900:(e,t,i)=>{i.d(t,{Z:()=>g});var n=i(172071),a=i(826067);const r="http://play.google.com/store/apps/details?id=com.pinterest",o=["access_token","new_password","new_password_confirm","password","next"],s=(e,t)=>t?(0,a.ru)(e,{invite_code:t}):e,l=(e,t,i)=>{if("ios"===t&&"string"==typeof e&&e.startsWith("discover/article/")){const t=e.split("/")[2];e=`discover_article/${t}/?is_deeplink=1`}return"string"==typeof e?s(e,i):"ios"===t||"ipad"===t?s(e.iOS,i):"android"===t?s(e.android,i):null},d=({deeplinkUri:e,fallbackUrl:t,invite_code:i,platform:s,redirectToLite:d,unauthId:c,userAgent:u})=>{if(e){const p=(({deeplinkUri:e,invite_code:t,platform:i,fallbackUrl:n,unauthId:r})=>({deeplink_path:l(e,i,t),current_page_url:(0,a.Gw)("undefined"!=typeof window?window.location.href:"",o),install_id:r,utm_source:140,utm_medium:2152,...n?{af_r:n}:null}))({deeplinkUri:e,fallbackUrl:t,invite_code:i,platform:s,unauthId:c,userAgent:u});if(n.Z.increment("mweb.deeplink",1,{platform:s}),i&&n.Z.increment("mweb.deeplink.invite_code",1),n.Z.increment("mweb.deeplink.unauthId",1,{withUnauthId:Boolean(c)}),d){n.Z.increment("mweb.deeplink.lite_link",1);const e=(({unauthId:e})=>{const t=(0,a.XP)({utm_source:"mweb",utm_medium:"upsell",utm_campaign:"twa",utm_content:e});return{referrer:encodeURI(t)}})({unauthId:c});window.location.href=(0,a.ru)("http://play.google.com/store/apps/details?id=com.pinterest.twa",e)}else if("android"===s){const t=(({deeplinkUri:e,invite_code:t,platform:i,unauthId:n})=>{const r=JSON.stringify({deeplink_path:l(e,i,t),current_page_url:(0,a.Gw)("undefined"!=typeof window?window.location.href:"",o),install_id:n});return{referrer:(0,a.XP)({utm_source:"mweb",utm_medium:"upsell",utm_content:r})}})({deeplinkUri:e,invite_code:i,platform:s,unauthId:c});"getInstalledRelatedApps"in navigator?navigator.getInstalledRelatedApps().then((e=>{if(e.length>0){const e=(0,a.ru)(window.location.href,p);window.open(e)}else window.location.href=(0,a.ru)(r,t)})).catch(n.Z.increment("mweb_android.deeplink.playStore.error",1)):window.location.href=(0,a.ru)(r,t)}else{if(n.Z.increment("mweb.deeplink.appsflyer_link",1),"ios"===s&&"undefined"!=typeof window&&window.location.href.includes("show_yip_modal"))return void(window.location.href=(0,a.ru)("https://pinterest.com/pinterest-predicts",p));window.location.href=(0,a.ru)("https://pinterest.onelink.me/TVSr/21e04bfd",p)}}};var c=i(619277),u=i(948376),p=i(780280),_=i(785893);function h({children:e,invite_code:t}){const{unauthId:i,userAgent:{platform:n,raw:a}}=(0,p.B)();return e((async(e,r)=>{d({deeplinkUri:e,fallbackUrl:r,invite_code:t,platform:n,redirectToLite:(0,u.Rp)({platform:n,userAgent:a}),unauthId:i,userAgent:a})}))}const m=e=>(0,_.jsx)(c.ty,{children:t=>(0,_.jsx)(h,{...e,invite_code:t})});m.displayName="DeepLinkNavigator";const g=m},79113:(e,t,i)=>{i.d(t,{Z:()=>h});var n=i(667294),a=i(124580),r=i(740990),o=i(223815),s=i(643010),l=i(968121),d=i(965900),c=i(883119),u=i(785893);const p={border:(0,s.Yc)()?void 0:"1px solid #efefef",width:"100vw",maxHeight:"100%",height:"100%",overflow:"auto",top:"0",left:"0",position:"fixed",backgroundColor:(0,s.Yc)()?"#000":"#fff",transition:"transform 0.3s ease-out",WebkitOverflowScrolling:"touch"},_={modalOpen:{__style:{...p}},modalClose:{__style:{...p,transform:"translate3d(0px, 100%, 0px)"}}};function h({accessibilityModalLabel:e,allowClickAndDrag:t,children:i,isOpen:s}){const{setAppFocusState:p}=(0,d.I)(),h=(0,n.useRef)(null);return(0,n.useEffect)((()=>(s&&(a.Z.pause(),p(!1),document.body&&(document.body.style.overflow="hidden")),()=>{s&&(a.Z.resume(),p(!0),document.body&&(document.body.style.overflow=""))})),[s,p]),(0,u.jsx)(o.Z,{allowClickAndDrag:t,children:(0,u.jsx)(c.mh,{zIndex:l.b7,children:(0,u.jsx)(c.xu,{display:"inlineBlock",role:"dialog","aria-label":e,children:(0,u.jsx)(c.xu,{ref:h,dangerouslySetInlineStyle:{__style:s?_.modalOpen.__style:_.modalClose.__style},children:(0,u.jsx)(r.Z.Provider,{value:h.current,children:i})})})})})}},326960:(e,t,i)=>{i.d(t,{Z:()=>p});var n=i(667294),a=i(172071),r=i(883119),o=i(813401),s=i(112690),l=i(785893);function d(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const c=(e,t)=>{const i=e&&e.replace(".","_");return t?i&&i.substring(0,50):i};class u extends n.Component{constructor(...e){super(...e),d(this,"state",{href:void 0}),d(this,"onEvent",(()=>new Promise(((e,t)=>{"undefined"==typeof window&&t();const{filename:i,imgSrc:n,isAndroidTwa:r,isChromeOnIOS:o,isUnauth:s,logContextEvent:l,category:d,viewParameter:u,viewType:p,pinId:_,imageSignature:h}=this.props,{href:m}=this.state;window.AndroidTwa&&window.AndroidTwa.downloadImage?(window.AndroidTwa.downloadImage(n,c(i,r)),e()):o?(this.imageDownload&&this.imageDownload.click(),e()):null==m&&fetch(n,{headers:new Headers({Origin:window.location.origin}),mode:"cors"}).then((e=>e.blob())).then((t=>{this.setState({href:window.URL.createObjectURL(t)},(()=>{this.imageDownload&&(this.imageDownload.click(),e())}))})).catch((()=>this.setState({href:this.DOWNLOAD_ERROR}))),a.Z.increment(`mweb.${s?"unauth":"auth"}.download.click.${d||"no_category"}`),l({event_type:82,object_id_str:_,view_type:p||3,view_parameter:u||139,aux_data:{image_signature:h}})})))),d(this,"DOWNLOAD_ERROR","error")}render(){const{children:e,filename:t,imgSrc:i,isAndroidTwa:a,isChromeOnIOS:o}=this.props,{href:s}=this.state,d=null!=s&&s!==this.DOWNLOAD_ERROR;return(0,l.jsxs)(n.Fragment,{children:[e(this.onEvent),o&&i?(0,l.jsx)(r.xu,{display:"none",children:(0,l.jsx)("a",{ref:e=>this.imageDownload=e,rel:"noopener noreferrer",tabIndex:-1,target:"_blank",href:i})}):d&&(0,l.jsx)(r.xu,{display:"none",children:(0,l.jsx)("a",{ref:e=>this.imageDownload=e,tabIndex:-1,download:c(t,a),href:s})})]})}}function p(e){const t=(0,o.xC)(),i=(0,s.Z)();return(0,l.jsx)(u,{...e,isAndroidTwa:t,logContextEvent:i})}},861411:(e,t,i)=>{i.d(t,{fv:()=>v,GR:()=>_,Hs:()=>E,Mv:()=>m,uc:()=>g,dL:()=>h,qS:()=>y,Y4:()=>P,HE:()=>S,Cy:()=>f});var n=i(667294),a=i(973935),r=i(124580),o=i(407043),s=i(785893);function l(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class d extends n.Component{constructor(...e){super(...e),l(this,"observe",(()=>{try{if(this.node=(0,a.findDOMNode)(this),this.node instanceof HTMLElement){const{pinIdStr:e,newsIdStr:t}=this.props.eventData;r.Z.start(this.node).onExitViewport(this.logImpression).setDebugId(e||t||"unknown")}}catch(e){window.console.error('Can only track impressions for type "HTMLElement"')}})),l(this,"logImpression",(e=>{this.props.logImpression({viewData:this.props.viewData||{},viewType:this.props.viewType,viewParameter:this.props.viewParameter,eventType:this.props.eventType,impressionType:this.props.impressionType,auxData:this.props.auxData,component:this.props.component,objectIdStr:this.props.objectIdStr,eventData:{endTime:e.endTime,time:e.startTime,...this.props.eventData}})}))}componentDidMount(){this.props.isPaused||this.observe()}componentDidUpdate(e){e.isPaused&&!this.props.isPaused&&this.observe()}componentWillUnmount(){this.node instanceof HTMLElement&&r.Z.stop(this.node)}render(){return n.Children.only(this.props.children)}}function c(e){const{logImpression:t}=(0,o.v)();return(0,s.jsx)(d,{...e,logImpression:t})}var u=i(773285);function p({auxData:e,component:t,eventData:i,eventType:a,impressionType:s,isPaused:l,objectIdStr:d,viewData:c,viewType:p,viewParameter:_}){const h=(0,n.useRef)(null),{logImpression:m}=(0,o.v)(),{checkExperiment:g}=(0,u.F)(),v=g("web_mweb_pin_impression_add_width_height").anyEnabled,y=(0,n.useCallback)((()=>{const n=n=>{var r,o,l,u;m({viewData:c||{},viewType:p,viewParameter:_,eventType:a,impressionType:s,auxData:e,component:t,objectIdStr:d,eventData:{endTime:n.endTime,time:n.startTime,pinCellWidth:v?(null===(r=h.current)||void 0===r?void 0:r.getBoundingClientRect().width)||0:void 0,pinCellHeight:v?(null===(o=h.current)||void 0===o?void 0:o.getBoundingClientRect().height)||0:void 0,windowWidth:v?null===(l=window)||void 0===l?void 0:l.innerWidth:void 0,windowHeight:v?null===(u=window)||void 0===u?void 0:u.innerHeight:void 0,...i}})};try{if(h.current instanceof HTMLElement){const{pinIdStr:e,newsIdStr:t}=i;r.Z.start(h.current).onExitViewport(n).setDebugId(e||t||"unknown")}}catch(o){window.console.error('Can only track impressions for type "HTMLElement"')}}),[h.current]);return(0,n.useEffect)((()=>{l||y();const e=h.current;return()=>{e instanceof HTMLElement&&r.Z.stop(e)}}),[l,y]),h}const _=e=>(0,s.jsx)(c,{eventData:{...e.impressionData||{},pinIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:18,impressionType:"pinImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter,children:e.children}),h=e=>{const t=p({eventData:{...e.impressionData||{},pinIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:18,impressionType:"pinImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},m=e=>{const t=p({eventData:{newsIdStr:e.notificationId,newsType:e.newsType,displayMode:e.displayMode,newsIndex:e.newsIndex||0,tapItemIdStr:e.tapItemIdStr},auxData:e.auxData||{},eventType:4111,impressionType:"notificationDetailImpressions",loggingId:e.notificationId,viewType:107,viewParameter:3082});return e.children({impressionTrackerRef:t})},g=e=>{const t=p({eventData:{newsIdStr:e.notificationId,newsType:e.newsType},auxData:e.auxData||{},eventType:4110,impressionType:"notificationFeedImpressions",loggingId:e.notificationId,viewType:107,viewParameter:3081});return e.children({impressionTrackerRef:t})},v=e=>(0,s.jsx)(c,{eventData:{...e.impressionData||{},articleIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:3829,impressionType:"articleImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter,children:e.children}),y=e=>{const t=p({eventData:{...e.impressionData||{},storyIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:170,impressionType:"storyImpression",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},E=e=>(0,s.jsx)(c,{eventData:{...e.impressionData||{},storyIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:170,impressionType:"storyImpression",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter,children:e.children}),f=e=>{const t=p({eventData:{...e.impressionData||{},userIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex||0},auxData:e.auxData||{},component:e.component,eventType:3704,impressionType:"userImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},S=e=>{const t=p({eventData:{...e.impressionData||{},topicIdStr:e.loggingId,clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex||0},auxData:e.auxData||{},component:e.component,eventType:3703,impressionType:"topicImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})},P=e=>{const t=p({eventData:{...e.impressionData||{},clientTrackingParams:e.trackingParams,slotIndex:e.slotIndex},auxData:e.auxData||{},component:e.component,eventType:8569,impressionType:"todayArticleImpressions",isPaused:e.isPaused,loggingId:e.loggingId,objectIdStr:e.objectIdStr,viewData:e.viewData,viewType:e.viewType||1,viewParameter:e.viewParameter});return e.children({impressionTrackerRef:t})}},63552:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(883119),a=i(785893);function r({children:e,onMouseEnter:t,onMouseLeave:i,onTouch:r,rounding:o,fullWidth:s=!1,pressState:l="none",accessibilityLabel:d,role:c}){const u=(Array.isArray(l)?l:[l]).includes("compress");return(0,a.jsx)(n.iP,{fullWidth:s,onMouseEnter:t&&(({event:e})=>t(e)),onMouseLeave:i&&(({event:e})=>i(e)),onTap:r&&(({event:e})=>r(e)),rounding:o,tapStyle:u?"compress":"none",accessibilityLabel:d,role:c,children:e})}},948945:(e,t,i)=>{i.d(t,{Z:()=>ue});var n=i(667294),a=i(81226),r=i(702664),o=i(8320),s=i(977734),l=i(499128),d=i(898781),c=i(112690),u=i(927383),p=i(662089),_=i(52022),h=i(332611),m=i(639952),g=i(57791),v=i(881802),y=i(698330),E=i(883119),f=i(276775),S=i(785893);const P=new E.Ry(1);function b({buttonText:e,clientTrackingParams:t,color:i="primary",deeplinkUri:a,experience:b,inline:T=!0,minWidth:A,onTouch:I,onUnsave:x,pinId:C,pinnedToBoardId:O,shape:R,shouldShowSavedButton:w,viewType:k,viewParameter:D,showSaveHandoffExperience:N}){var L;const M=(0,d.ZP)(),j=(0,r.useDispatch)(),U=(0,f.useHistory)(),F=(0,f.useLocation)().pathname.startsWith("/pin"),V=(0,r.useSelector)((({session:e})=>e.hasSavedUnauthPin)),B=(0,r.useSelector)((({session:e})=>e.unauthSavePinId)),G=null===(L=(0,y.Tt)())||void 0===L?void 0:L.pin_count,H=(0,c.Z)(),z=(0,_.Z)(),Z=e=>U.push(e),{showToast:K,showRepinConfirmation:W}=(0,p.Z)(),Y=()=>{j((0,s.Z)({history:U,i18n:M,logContextEvent:H,onSuccess:()=>{b&&j((0,h.CK)(b.placement_id,b.experience_id))},originalPinId:C,pinId:C,trackingParams:{clientTrackingParams:t,pinnedToBoardId:O},showRepinConfirmation:N&&!F?()=>{}:W,disableRepinAnimation:B===C,pinCount:G,historyPush:Z})).catch((e=>K((({hideToast:t})=>(0,S.jsx)(l.ZP,{variant:"error",text:e.message||M.bt("抱歉！我们这边出了点问题。", "Sorry! Something went wrong on our end.", "quickSave.toast.error.message", undefined, true),onHide:t})))))},$=(0,n.useRef)(null),q=N&&!V,X=(0,u.Z)()({fn:e=>{e.stopPropagation(),e.preventDefault(),I&&I(e),w?w&&x&&x():Y()},modalHeader:(0,v.Bx)(M)});(0,n.useEffect)((()=>{q&&!$.current&&(z({action:"trigger",item:"unauth-save-button-quicksave"}),Y(),j((0,m.e2)())),$.current=q}));const J=()=>M.bt("Pin 图", "Pin", "quickSave.quickSaveButton.icon.accessibilityLabel", undefined, true),Q=()=>e||M.bt("收藏", "Save", "quickSave.quickSaveButton.buttonText", undefined, true);return V&&!F?null:(0,S.jsx)(E.xu,{"data-test-id":"save-button-mobile",zIndex:P,children:a?(0,S.jsx)(g.di,{accessibilityLabel:J(),color:i,customStyles:{padding:"14px 16px"},deeplinkUri:a,inline:T,minHeight:48,minWidth:A,onTouch:X,pressState:["compress","background"],shape:R,size:"lg",text:Q(),to:U.location.pathname,upsellType:"save",viewType:k,viewParameter:D}):(0,S.jsx)(o.Z,{accessibilityLabel:J(),color:i,customStyles:{padding:"14px 16px"},inline:T,minHeight:48,minWidth:A,onTouch:X,pressState:"compress",shape:R,size:"300",text:Q()})})}var T=i(364034),A=i(139574),I=i(826067),x=i(850431),C=i(867820),O=i(50286),R=i(780280),w=i(177891),k=i(343341);function D(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class N extends n.PureComponent{constructor(...e){var t;super(...e),t=this,D(this,"state",{saveState:void 0}),D(this,"legoFixedZIndex",new E.Ry(2)),D(this,"onAddPin",(async function(){const{clientTrackingParams:e,dispatch:i,i18n:n,oneTapSave:a,pinId:r,pinnedToBoardId:o,showToast:s,viewType:d,historyPush:c}=t.props;try{const n=await i((0,x.w)({i18n:t.props.i18n,logContextEvent:t.props.logContextEvent,originalPinId:r,pinId:r,boardId:null==a?void 0:a.boardId,isOneTapSave:!0,onUndo:()=>{t.onDeletePin()},section:null==a?void 0:a.section,showToast:s,trackingParams:{clientTrackingParams:e,pinnedToBoardId:o},viewType:d,historyPush:c}));t.setState({saveState:"saved"}),i((0,w.a)({boardId:null==a?void 0:a.boardId,localPinId:n.id,pinId:r}))}catch(u){s((({hideToast:e})=>(0,S.jsx)(l.ZP,{variant:"error",text:u.message||n.bt("抱歉！我们这边出了点问题。", "Sorry! Something went wrong on our end.", "error during repin", undefined, true),onHide:e}))),t.setState({saveState:void 0})}})),D(this,"onDeletePin",(async function(){const{dispatch:e,clientTrackingParams:i,i18n:n,pinId:a,savedInfo:r,showToast:o}=t.props;if(r){e((0,w.k)({boardId:r.boardId,localPinId:r.localPinId,pinId:a}));try{await e((0,A.q)({pinId:r.localPinId,boardId:r.boardId,clientTrackingParams:i})),o((({hideToast:e})=>(0,S.jsx)(l.ZP,{text:n.bt("Pin 图已删除！", "Pin deleted!", "User deleted their pin", undefined, true),onHide:e}))),t.setState({saveState:void 0})}catch(s){o((({hideToast:e})=>(0,S.jsx)(l.ZP,{variant:"error",text:n.bt("抱歉！删除 Pin 图时出错。", "Sorry! There was an error deleting your Pin.", "Error when user tried to delete pin", undefined, true),onHide:e}))),t.setState({saveState:"saved"})}}})),D(this,"handlePinAction",this.props.requireAuthForLimitedLogin({fn:({event:e})=>{e.stopPropagation(),e.preventDefault();const{saveState:t}=this.state,{history:i,pinId:n,isOneTapExploreLocalTab:a,pinnedToBoard:r}=this.props;["saving","deleting"].includes(t)||a&&r||(t||this.props.savedInfo?this.props.isOneTapExploreLocalTab||(this.setState({saveState:"deleting"}),this.onDeletePin()):(this.setState({saveState:"saving"}),a?i.push({pathname:`/pin/${n}/repin`,state:{isOneTapSave:!0}}):this.onAddPin()))},modalHeader:(0,v.Bx)(this.props.i18n)})),D(this,"shouldDisplayAsSaved",(({isOneTapExploreLocalTab:e,pinnedToBoard:t,savedInfo:i})=>e?!!t:!!i))}render(){const{children:e,clientTrackingParams:t,homepageExperience:i,i18n:a,isOneTapExploreLocalTab:r,isRTL:o,oneTapSave:s,pinId:l,pinnedToBoard:d,pinnedToBoardId:c,savedInfo:u,shouldShowSaveHandoffExp:p,useSmallSaveIcon:_}=this.props;if(!s&&!r&&!p)return e;const h=this.shouldDisplayAsSaved({isOneTapExploreLocalTab:r,pinnedToBoard:d,savedInfo:u}),m="#000",g="rgba(255, 255, 255, 0.8)",v="light",y="dark";return(0,S.jsxs)(n.Fragment,{children:[e,(0,S.jsx)(E.xu,{bottom:!0,left:o,padding:2,position:"absolute",right:!o,zIndex:this.legoFixedZIndex,children:p?(0,S.jsx)(b,{buttonText:d?a.bt("已收藏", "Saved", "OneTapSave.QuickSaveButton.Saved", undefined, true):"",clientTrackingParams:t,color:d?"default":"primary",deeplinkUri:"deeplinkUri",experience:i,inline:!0,pinnedToBoardId:c,minWidth:54,pinId:l,shape:"pill",shouldShowSavedButton:!!d,showSaveHandoffExperience:p}):(0,S.jsx)(E.iP,{onTap:this.handlePinAction,rounding:"circle",children:(0,S.jsx)(E.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:h?m:g}},padding:2,rounding:"circle",children:(0,S.jsx)(E.xu,{dangerouslySetInlineStyle:{__style:{opacity:100}},children:(0,S.jsx)(E.JO,{accessibilityLabel:h?a.bt("已收藏", "saved", "checkmark icon to show pin has been saved", undefined, true):a.bt("收藏", "save", "button for saving quickly with one click", undefined, true),icon:h?"check":"add",color:h?v:y,size:_?16:24})})})})})]})}}const L=(0,r.connect)(((e,{pinId:t})=>({savedInfo:e.pins[t]&&e.pins[t].savedInfo,pinnedToBoard:e.pins[t]&&e.pins[t].pinned_to_board,homepageExperience:e.experiences[40001]})))((function(e){const{showToast:t}=(0,k.F9)(),i=(0,f.useLocation)(),a=(0,d.ZP)(),o=(0,c.Z)(),l=(0,u.Z)(),p=(0,r.useDispatch)(),_=(0,f.useHistory)(),{isRTL:h,isAuthenticated:m}=(0,R.B)(),g=(0,r.useSelector)((({session:e})=>e.unauthSavePinId)),v=m&&!!g&&g===e.pinId,{pins:y,clear:E}=(0,T.Z)(),P=(0,n.useRef)(!1),b=(0,I.mB)(i.search).ideas_referrer,A=!(0,O.HG)()&&b===String(25),x=e=>_.push(e);return(0,n.useEffect)((()=>{m&&!P.current&&y.length>0&&(P.current=!0,y.forEach((({id:e})=>{p((0,s.Z)({history:_,i18n:a,logContextEvent:o,onSuccess:()=>{},originalPinId:e,pinId:e,trackingParams:{clientTrackingParams:"",pinnedToBoardId:""},showRepinConfirmation:()=>{},disableRepinAnimation:!0,historyPush:x})).catch((e=>{(0,C.My)(`error.unauth_profile_pin_merge.${e}`)}))})),E())})),(0,S.jsx)(N,{...e,i18n:a,requireAuthForLimitedLogin:l,history:_,logContextEvent:o,showToast:t,shouldShowSaveHandoffExp:v,isRTL:h,historyPush:x,useSmallSaveIcon:A})}));L.displayName="OneTapSave";const M=L;var j=i(883561),U=i(349700);function F({boardUrl:e,boardName:t,isQuicksave:i,sectionName:n,sectionSlug:a}){const r=(0,d.ZP)(),o=(0,f.useHistory)(),s=new E.Ry(1),l=!!a&&`${e}${a}/`;return(0,S.jsx)(E.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,zIndex:s,dangerouslySetInlineStyle:{__style:{background:"rgb(0 0 0 / .4)"}},children:(0,S.jsx)(E.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,display:"flex",justifyContent:"center",alignItems:"start",padding:4,children:(0,S.jsx)(E.iP,{onTap:t=>{t.event.preventDefault(),o.push(i?"/me/":l||e)},children:(0,S.jsx)(E.xv,{color:"light",children:n?(0,U.nk)(r.bt("已收藏至 {{sectionName}}", "Saved to {{sectionName}}", "PinCard.SavedToSection.Overlay", undefined, true),{sectionName:(0,S.jsx)(E.xv,{color:"light",weight:"bold",inline:!0,children:(0,j.ZP)(n,22)},`pincard-${n}`)}):(0,U.nk)(r.bt("已收藏至 {{boardName}} 图板", "Saved to {{boardName}}", "PinCard.SavedToBoard.Overlay", undefined, true),{boardName:(0,S.jsx)(E.xv,{color:"light",weight:"bold",inline:!0,children:i?r.bt("个人资料", "Profile", "PinCard.SavedToProfile.Overlay", undefined, true):(0,j.ZP)(t,22)},`pincard-${t}`)})})})})})}var V=i(167525),B=i(964082),G=i(36971),H=i(463045);function z({isSquarePin:e,color:t,description:i,imageUrl:n,imageHeight:a,imageWidth:r,onError:o,onLoad:s}){const l=(0,S.jsx)(E.Ee,{alt:i||"",color:t,naturalHeight:null!=a?a:1,naturalWidth:null!=r?r:1,onError:o,onLoad:s,src:null!=n?n:"",fit:e?"cover":void 0});return e?(0,S.jsx)(E.xu,{dangerouslySetInlineStyle:{__style:{paddingTop:"calc(100%)"}},children:(0,S.jsx)(E.xu,{top:!0,right:!0,bottom:!0,left:!0,position:"absolute",dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},children:l})}):l}var Z=i(350445),K=i(46584),W=i(926749),Y=i(623568),$=i(965900);function q({inAdsVideoExperiment:e,unauthRelatedPinsAutoplayExpGroup:t,isAutoplay:i,cropHeight:a,currentTime:r,onLoad:o,onError:s,onTimeChange:l,pin:c,playing:u,rootMargin:p,viewType:_,viewParameter:h,onVisibilityChanged:m,trackFullVisible:g,videoDuration:v,imageHeightModifier:y,image:f,isSquarePin:P}){var b,T,A,I;const x=(0,d.ZP)(),[C,R]=(0,n.useState)(!1),[w,k]=(0,n.useState)(!0),{is_downstream_promotion:D,promoter:N}=c,L=(0,Y.jL)(D,N),M=L&&!c.is_eligible_for_web_closeup,j=3372===h||42===_,U=L&&c.is_eligible_for_web_closeup&&!j,{setCurrentVideo:F,pauseAutoplay:B}=(0,$.I)(),G=M||!L,H=(0,K.Z)({onVisibilityChanged:m,inAdsDesktopVideoExperiment:e,trackFullVisible:g,rootMargin:p});let q=!u;(e||null!=t&&t.startsWith("enabled"))&&(q=w,i&&u&&w&&k(!1));const{url:X}=(null===(b=c.images)||void 0===b?void 0:b["236x"])||{},{id:J}=c,Q=(0,O.HG)()&&c.videos?null===(T=c.videos.video_list)||void 0===T?void 0:T.V_HLSV4:null===(A=c.videos)||void 0===A||null===(I=A.video_list)||void 0===I?void 0:I.V_720P,ee=(0,O.HG)()&&c.videos?"video/m3u8":"video/mp4",te=(0,n.useCallback)((({event:e})=>{e.preventDefault(),e.stopPropagation(),F({pinId:J,isPromoted:Boolean(L),currentTime:0}),R(!1)}),[L,J,F]),ie=(0,n.useCallback)((()=>{L&&R(U),B({pinId:J,isPromoted:Boolean(L),currentTime:0})}),[U,L,J,B]);if(!c.videos||!Q)return null;const{height:ne,thumbnail:ae,width:re,url:oe}=Q||{},se=c.videos.id,le=[{type:ee,src:oe}];let de,ce=(null!=re?re:1)/(null!=ne?ne:1);return e&&P&&(ce=1,de="transparent",y&&(ce-=y-1)),C&&L?(0,S.jsx)(E.xu,{"data-test-id":"pin-video-mobile-end-card",ref:H,children:(0,S.jsx)(Z.Z,{backgroundImage:null!=X?X:"",naturalHeight:null!=ne?ne:1,naturalWidth:null!=re?re:1,pin:c,onRestartVideo:te})}):q?(0,S.jsxs)(E.xu,{"data-test-id":"pin-video-mobile-image",ref:H,children:[v&&(0,S.jsx)(V.Z,{text:v}),(0,S.jsx)(z,{imageHeight:null!==(ue=null==f?void 0:f.height)&&void 0!==ue?ue:1,imageWidth:null!==(pe=null==f?void 0:f.width)&&void 0!==pe?pe:1,onError:s,onLoad:o,imageUrl:null!==(_e=null==f?void 0:f.url)&&void 0!==_e?_e:"",isSquarePin:P})]}):(0,S.jsx)(E.xu,{"data-test-id":"pin-video-mobile-video",ref:H,children:(0,S.jsx)(W.ZP,{isAutoPlay:!!i,cropHeight:a,rootMargin:p,inAdsDesktopVideoExperiment:e,contextLogData:{viewParameter:h,component:0,objectId:c.id,video_id:se,view:_},accessibilityMaximizeLabel:x.bt("最大化", "Maximize", "pinLayouts.PinVideo.accessibilityMaxVideoBtn", undefined, true),accessibilityMinimizeLabel:x.bt("最小化", "Minimize", "pinLayouts.PinVideo.accessibilityMinVideoBtn", undefined, true),accessibilityMuteLabel:x.bt("静音", "Mute", "pinLayouts.PinVideo.accessibilityMuteVideoBtn", undefined, true),accessibilityPauseLabel:x.bt("暂停", "Pause", "pinLayouts.PinVideo.accessibilityPauseVideoBtn", undefined, true),accessibilityPlayLabel:x.bt("播放", "Play", "pinLayouts.PinVideo.accessibilityPlayVideoBtn", undefined, true),accessibilityProgressBarLabel:x.bt("进度条", "Progress bar", "pinLayouts.PinVideo.accessibilityProgressBarLabel", undefined, true),accessibilityUnmuteLabel:x.bt("解除静音", "Unmute", "pinLayouts.PinVideo.accessibilityUnmuteVideoBtn", undefined, true),aspectRatio:ce,backgroundColor:de,captions:"",hlsConfig:{capLevelToPlayerSize:!0,startPosition:r||-1},loop:G,onTimeChange:l,playing:u,onPlay:()=>{},onPlayError:()=>{},poster:X||ae,src:null!=le?le:[],videoStartTime:r,volume:0,onEnded:ie})});var ue,pe,_e}function X(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class J extends n.Component{constructor(...e){super(...e),X(this,"calculateCurrentVideoTime",(()=>{const{currentTimeFromPinRep:e,pin:t,videosAutoplaying:i}=this.props,{id:n}=t,a=(0,G.Z)(n,i);return this.currentVideoCurrentTime||a||e})),X(this,"handleVisibilityChanged",(e=>{const{currentTimeFromPinRep:t,pin:i,setCurrentVideo:n,pauseAutoplay:a,videosAutoplaying:r}=this.props,{id:o,is_downstream_promotion:s,promoter:l}=i,d=(0,Y.jL)(s,l),c=(0,H.Z)(o,r),u=(0,B.Z)(o,r);e?d?n({pinId:o,isPromoted:d,currentTime:this.calculateCurrentVideoTime()}):u&&n({pinId:o,isPromoted:Boolean(d),currentTime:this.calculateCurrentVideoTime()}):!e&&c&&a({pinId:o,isPromoted:Boolean(d),currentTime:t||this.currentVideoCurrentTime})})),X(this,"handleVideoTimeChange",(e=>{const{pin:t,onTimeChange:i,videosAutoplaying:n}=this.props,{id:a}=t;(0,H.Z)(a,n)&&(this.currentVideoCurrentTime=e.time),i&&i(e)}))}componentDidUpdate(e){const{appInFocus:t}=e,{appInFocus:i,currentTimeFromPinRep:n,pauseAutoplay:a,pin:r,setCurrentVideo:o,videosAutoplaying:s}=this.props,{id:l,is_downstream_promotion:d,promoter:c}=r,u=(0,Y.jL)(d,c),p=(0,H.Z)(l,s);i!==t&&!i&&p?(this.pausedDueToBrowserOutOfFocus=!0,a({pinId:l,isPromoted:Boolean(u),currentTime:n||this.currentVideoCurrentTime})):this.pausedDueToBrowserOutOfFocus&&i&&(this.pausedDueToBrowserOutOfFocus=!1,o({pinId:l,isPromoted:Boolean(u),currentTime:this.calculateCurrentVideoTime()}))}componentWillUnmount(){const{currentTimeFromPinRep:e,pauseAutoplay:t,pin:i,videosAutoplaying:n}=this.props,{id:a,is_downstream_promotion:r,promoter:o}=i,s=(0,Y.jL)(r,o);(0,H.Z)(a,n)&&t({pinId:a,isPromoted:Boolean(s),currentTime:e||this.currentVideoCurrentTime})}render(){const{cropHeight:e,isAutoplay:t,pin:i,videosAutoplaying:n,videoDuration:a,viewParameter:r,viewType:o,onError:s,onLoad:l,inAdsVideoExperiment:d,unauthRelatedPinsAutoplayExpGroup:c,isSquarePin:u,rootMargin:p,imageHeightModifier:_,image:h,isHovering:m}=this.props,{id:g}=i,v=(0,G.Z)(g,n),y="enabled_hover"===c,E=(0,H.Z)(g,n),f=m&&y||E&&t;return(0,S.jsx)(q,{cropHeight:e,rootMargin:p,currentTime:v,inAdsVideoExperiment:d,unauthRelatedPinsAutoplayExpGroup:c,isAutoplay:t,isSquarePin:u,image:h,viewParameter:r,viewType:o,onTimeChange:this.handleVideoTimeChange,onVisibilityChanged:this.handleVisibilityChanged,pin:i,playing:f,trackFullVisible:!1,onError:s,onLoad:l,imageHeightModifier:_,videoDuration:a})}}function Q(e){const{appUI:{appInFocus:t,isAutoplay:i,videosAutoplaying:n},pauseAutoplay:a,setCurrentVideo:r}=(0,$.I)();return(0,S.jsx)(J,{...e,appInFocus:t,isAutoplay:i,pauseAutoplay:a,setCurrentVideo:r,videosAutoplaying:n})}var ee=i(690035),te=i(310227),ie=i(773285),ne=i(130460),ae=i(350118),re=i(780679),oe=i(627995);const se=({domainLinkData:e})=>{const t=(0,d.ZP)(),i=(0,re.g)();return(0,S.jsxs)(E.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(51, 51, 51, 0.8)"}},children:[(0,S.jsx)(E.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,display:"flex",justifyContent:"center",alignItems:"center",paddingX:2,children:(0,S.jsx)(E.X6,{size:"400",align:"center",color:"light",children:t.bt("打开", "Open", "Text on hover of a pin leading to opening this pin in the same tab. This is for users who don't have an account on Pinterest.", undefined, true)})}),!!e&&(0,S.jsx)(E.xu,{position:"absolute",bottom:!0,left:!0,width:"100%",minWidth:"100%",children:(0,S.jsx)(oe.Z,{clickLoggingOptions:e.clickLoggingOptions,domain:e.domain,link:e.link,onClick:e.onClick||(null==i?void 0:i.pinLinkClickHandler)||(()=>{})})})]})};var le=i(53987);const de=({width:e,height:t,minY:i,maxY:n})=>{const a=t=>e<=0||!t?"0%":Math.round(t/e*100)+"%";return{top:i<=0?"0%":a(-1*i*t),bottom:n>=1?"0%":a(-1*(1-n)*t)}},ce=({children:e,margin:t,disableRounding:i})=>(0,S.jsx)(E.xu,{dangerouslySetInlineStyle:{__style:t?{marginTop:t.top,marginBottom:t.bottom}:{}},position:"relative","data-test-id":"pin-visual-wrapper",children:(0,S.jsx)(E.zd,{wash:!0,rounding:i?0:te.mv,children:e})}),ue=({clientTrackingParams:e,color:t,description:i,domainLinkData:r,hideBottomCardText:o,image:s,imageAltText:l,imageCrop:c,isPromoted:u,isMessenger:p,isOneTapExploreLocalTab:h,isSquarePin:m,lazyLoadImage:g,onError:v,oneTapSave:y,onLoad:P,pinId:b,priorityFetchImage:T,disableDefaultContextMenu:A,pinnedToBoardId:I,pinVideo:x,videoUrl:w,productPrice:k,disableRounding:D,storyDataExists:N,title:L,type:j,videoDuration:U,viewType:B,viewParameter:G,unauthRelatedPinsAutoplayExpGroup:H})=>{var z,Z,K,W,Y,$,q,X,J,te,re;const oe=(0,d.ZP)(),ue=(0,ee.Z)(),{checkExperiment:pe}=(0,ie.F)(),[_e,he]=(0,n.useState)(!1),{isAuthenticated:me}=(0,R.B)(),ge=(0,O.ZP)(),ve=(0,ae.S6)()(b),ye=(0,ne.gC)()(I||(ve?String(null===(z=ve.board)||void 0===z?void 0:z.id):"")),Ee=I&&(null==ve?void 0:ve.savedThisSession),fe=r&&r.link?"with-link":"without-link",Se=!me&&"desktop"!==ge,Pe=(0,n.useRef)(Date.now()),be=(0,n.useRef)(null),Te=pe("mweb_video_ads_autoplay").anyEnabled,Ae="video"===j&&(H&&"enabled_hover"===H),Ie=(0,_.Z)();(0,n.useEffect)((()=>{Ae||!_e||me||Ie({action:"view",item:"unauth-video-autoplay-on-hover"})}),[Ae,_e,Ie,me]);const xe=(0,S.jsx)(E.Ee,{alt:l||L||i||"",color:t,naturalHeight:null!==(Z=s.height)&&void 0!==Z?Z:1,naturalWidth:null!==(K=s.width)&&void 0!==K?K:1,onError:v,onLoad:P,src:null!==(W=s.url)&&void 0!==W?W:"",fit:m?"cover":void 0,loading:g?"lazy":"auto",fetchPriority:T?"high":"auto"}),Ce=m?(0,S.jsx)(E.xu,{dangerouslySetInlineStyle:{__style:{paddingTop:"calc(100%)"}},children:(0,S.jsx)(E.xu,{top:!0,right:!0,bottom:!0,left:!0,position:"absolute",dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},children:xe})}):xe,Oe=(0,f.useLocation)(),Re=()=>(0,le.C$)(Oe)?"homefeed":(0,le.L6)(Oe)?"related_pins":(0,le.En)(Oe)?"search":"unknown";return(0,S.jsx)("div",{className:"PinCard__imageWrapper",style:{position:"relative"},children:(0,S.jsxs)(E.xu,{onContextMenu:e=>{if("desktop"!==ge){const t=Re();(0,C.My)((me?"auth":"unauth")+".mweb_pin_feed.pin_image.long_press",{page:t}),"related_pins"!==t||me||(e.preventDefault(),e.stopPropagation())}},onTouchStart:e=>{if("desktop"!==ge){const t=Re();if((0,C.My)("unauth.mweb.related_pin.image.touch.start"),"related_pins"===t&&!me&&(null==A||A(),Pe.current=Date.now(),e.changedTouches&&e.changedTouches.length>0)){const t=e.changedTouches.item(0);t&&(be.current={x:t.pageX,y:t.pageY})}}},onTouchEnd:e=>{if("desktop"!==ge){const t=Re();if((0,C.My)("unauth.mweb.related_pin.image.touch.end"),Date.now()-Pe.current>500&&!me&&"related_pins"===t){const t=be.current;if(e.changedTouches&&e.changedTouches.length>0&&t){const i=e.changedTouches.item(0);if(i&&Math.pow(i.pageX-t.x,2)+Math.pow(i.pageY-t.y,2)>100)return;null==A||A(),ue({pinId:b,location:"related-pins-long-press"}),e.stopPropagation()}}}},"data-test-id":`pincard-${j}-${fe}`,dangerouslySetInlineStyle:{__style:{willChange:"transform",textDecoration:"none"}},overflow:"hidden",onMouseOver:Se?void 0:()=>he(!0),onMouseLeave:Se?void 0:()=>he(!1),position:"relative",rounding:D?0:4,children:[(0,S.jsxs)(M,{clientTrackingParams:e||"",oneTapSave:y,isOneTapExploreLocalTab:h,pinId:b,pinnedToBoardId:I,viewType:B,children:[(()=>{if("gif"===j&&!o&&!Ee)return(0,S.jsx)(V.Z,{text:oe.bt("GIF", "GIF", "pin.pinCard.gifIconIdentifier", undefined, true)});if("video"===j&&U&&!o&&!Ee)return(0,S.jsx)(V.Z,{text:U});if("storyPin"===j&&N&&!Ee){const{page_count:e=0,total_video_duration:t=0}=(null==ve?void 0:ve.story_pin_data)||{};if(t>0)return(0,S.jsx)(V.Z,{text:(0,a.Z)(t)});if("number"==typeof e&&e>0)return(0,S.jsx)(V.Z,{icon:"idea-pin",text:e.toString()})}return"product"===j&&k?(0,S.jsx)(V.Z,{text:k}):null})(),(0,S.jsx)(ce,{disableRounding:D,margin:c?de({width:null!==(Y=s.width)&&void 0!==Y?Y:1,height:null!==($=s.height)&&void 0!==$?$:1,minY:c.minY,maxY:c.maxY}):void 0,children:"video"===j&&p&&x?(0,S.jsx)(E.nk,{autoplay:!0,accessibilityMaximizeLabel:"",accessibilityMinimizeLabel:"",accessibilityMuteLabel:"",accessibilityPauseLabel:"",accessibilityPlayLabel:"",accessibilityProgressBarLabel:oe.bt("进度条", "Progress bar", "PinCardVisual.accessibilityProgressBarLabel", undefined, true),accessibilityUnmuteLabel:"",aspectRatio:x.width/x.height,captions:"",loop:!0,onPlay:()=>{},onPlayError:()=>{},playsInline:!0,poster:null!==(q=s.url)&&void 0!==q?q:"",src:x.url,volume:0}):x&&u&&Te&&ve||null!=H&&H.startsWith("enabled")&&w&&ve?(0,S.jsx)(Q,{image:s,inAdsVideoExperiment:Te,unauthRelatedPinsAutoplayExpGroup:H,isHovering:_e,isSquarePin:m,onError:v,onLoad:P,pin:ve,videoDuration:U,viewParameter:G,viewType:B}):Ce})]}),!Ae&&_e&&!me&&(0,S.jsx)(se,{domainLinkData:r}),me&&Ee&&(0,S.jsx)(F,{boardName:null!==(X=null==ye?void 0:ye.name)&&void 0!==X?X:"",boardUrl:null!==(J=null==ye?void 0:ye.url)&&void 0!==J?J:"",sectionName:null==y||null===(te=y.section)||void 0===te?void 0:te.title,sectionSlug:null==y||null===(re=y.section)||void 0===re?void 0:re.slug,isQuicksave:"quick_saves"===(null==ye?void 0:ye.layout)})]})})}},904779:(e,t,i)=>{i.d(t,{K:()=>o,T:()=>s});var n=i(667294),a=i(785893);const r=(0,n.createContext)({getPinFeedbackStatus:()=>{},setPinFeedbackStatus:()=>{}}),o=()=>(0,n.useContext)(r);function s({children:e}){const[t,i]=(0,n.useState)(Object.freeze({})),o=(0,n.useMemo)((()=>({getPinFeedbackStatus:({pinId:e})=>t[e],setPinFeedbackStatus:({pinId:e,pinFeedbackStatus:n})=>i({...t,[e]:n})})),[t]);return(0,a.jsx)(r.Provider,{value:o,children:e})}},204283:(e,t,i)=>{i.r(t),i.d(t,{default:()=>Be,pinRepPaddingInBoint:()=>Re});var n=i(667294),a=i(702664),r=i(934494),o=i(319915),s=i(886076),l=i(248975),d=i(830157),c=i(958007),u=i(926275),p=i(63552),_=i(81226),h=i(116303),m=i(561195),g=i(883119),v=i(785893);function y({maxRating:e,rating:t,text:i}){return(0,v.jsxs)(g.xu,{alignItems:"center",display:"flex",marginBottom:0,children:[(0,v.jsx)(m.Z,{max_rating:e||"",rating:t||"",width:10}),i&&(0,v.jsx)(n.Fragment,{children:(0,v.jsx)(g.xu,{marginStart:1,overflow:"hidden",children:(0,v.jsx)(g.xv,{size:"100",lineClamp:1,children:i})})})]})}var E=i(898781),f=i(62409),S=i(643010),P=i(350118);const b=({pinId:e})=>{var t;const i=(0,E.ZP)(),a=(0,P.S6)()(e),r=(0,S.Yc)();if(!a)return null;const{link_domain:o,rich_metadata:s,rich_summary:l}=a||{},d=(0,f.kb)({hasLinkDomain:!!o,richMetadata:s&&{recipe:s.recipe&&{fromAggregatedData:s.recipe.from_aggregated_data},products:s.products&&s.products.map((e=>({name:e.name,offerSummary:e.offer_summary})))},richSummary:l&&{products:l.products&&l.products.map((e=>({name:e.name,offerSummary:e.offer_summary})))}});if(!d||!d.price)return null;const c=d.standard_price||d.price,u=d.min_price||"",p=d.max_price||"",_=d.in_stock||!1,h=null===(t=a.rich_summary)||void 0===t?void 0:t.site_name,{textColor:m,inStockColor:y}=(({isDarkMode:e,inStock:t})=>e?{textColor:"light",inStockColor:"light"}:{textColor:"dark",inStockColor:t?"dark":"subtle"})({isDarkMode:r,inStock:_});return(0,v.jsxs)(n.Fragment,{children:[h&&(0,v.jsx)(g.xv,{color:m,size:"100",children:h}),(0,v.jsxs)(g.xu,{display:"flex",alignItems:"center","data-test-id":"priceLego_price",children:[u&&p?(0,v.jsxs)(g.xv,{size:"100",color:y,weight:"bold",children:[u," - ",p]}):(0,v.jsx)(g.xv,{size:"100",color:y,weight:"bold",children:c}),!_&&(0,v.jsxs)(n.Fragment,{children:[(0,v.jsx)(g.xu,{paddingX:1,children:(0,v.jsx)(g.xv,{size:"100",color:y,weight:"bold",children:"·"})}),(0,v.jsx)(g.xv,{size:"100",color:y,weight:"bold",children:i.bt("缺货", "Out of stock", "pinCard.priceLego.outOfStock", undefined, true)})]})]})]})};var T=i(947599),A=i(914142),I=i(941646),x=i(50286),C=i(865673),O=i(52022),R=i(350948),w=i(923297),k=i(867820),D=i(773285),N=i(130460),L=i(276775),M=i(780280),j=i(53987);const U=(0,n.lazy)((()=>i.e(94950).then(i.bind(i,494950)))),F=({title:e})=>{const t=(0,x.ZP)(),i=(0,O.Z)();return(0,v.jsx)(I.Z,{id:"related-pins-title",children:(0,v.jsx)(g.iP,{onTap:()=>{i({action:"click",item:"related-pins-title"})},children:(0,v.jsx)(g.xv,{size:"desktop"===t?"300":"100",weight:"bold",lineClamp:2,children:e})})})},V=({allowPriceIndicator:e,contextMenu:t,credits:i,hidePinMetadata:a,hasAffiliatedProducts:r,isPromotedPin:s,isSponsoredPin:l,isSquarePin:d,marginTop:c,marginStart:u,marginEnd:_,onCreditsClick:m,pinDescription:f,pinId:S,pinnedToBoardId:V,pinReactionCounts:B,recipeCookTime:G,recipeMaxRating:H,recipeRating:z,recipeReviewCount:Z,shouldShowReactions:K,style:W="default",title:Y,type:$,duploConversationPin:q})=>{var X,J,Q,ee,te,ie,ne,ae,re;const oe=(0,E.ZP)(),{checkExperiment:se}=(0,D.F)(),le=(0,L.useLocation)(),de=(0,O.Z)(),{isAuthenticated:ce}=(0,M.B)(),ue=(0,x.ZP)(),pe=Y||f||"oneTap"===$,_e=(0,P.S6)()(S),he=(0,N.gC)()(V||(_e?String(null===(X=_e.board)||void 0===X?void 0:X.id):"")),me=null==_e?void 0:_e.pinner,ge=s&&(null==_e||null===(J=_e.promoter)||void 0===J?void 0:J.id)===(null==_e||null===(Q=_e.native_creator)||void 0===Q?void 0:Q.id),ve=null!=_e&&_e.sponsorship?(0,v.jsx)(g.xv,{inline:!0,size:"100",weight:"bold",children:null==i?void 0:i.subtitle}):void 0,ye="overlay"===W,Ee=K&&B&&Object.keys(B).length>0&&(0,v.jsx)(g.xu,{height:18,display:ye?"flex":void 0,justifyContent:"center",children:(0,v.jsx)(o.Z,{name:"SafeSuspense_PinCardDetails_GridAggregation",children:(0,v.jsx)(T.Z,{children:(0,v.jsx)(U,{pinReactionCounts:B})})})}),fe=a?0:c||1,Se=(0,v.jsx)(h.Z,{accessibilityLabel:(null==i?void 0:i.title)||"string"==typeof(null==i?void 0:i.subtitle)&&i.subtitle||oe.bt("创建者头像", "Creator's avatar", "pinCardDetails.tapArea.avatar", undefined, true),name:(null==i?void 0:i.title)||"",outline:ye,size:ye?"lg":"sm",src:ye&&(null==i?void 0:i.largeAvatar)||(null==i?void 0:i.mediumAvatar)||(null==i?void 0:i.avatar)||void 0}),Pe=(0,v.jsxs)(n.Fragment,{children:[(null==i?void 0:i.title)&&(0,v.jsx)(g.xv,{lineClamp:1,size:"100",weight:l&&!ge||r?"normal":"bold",children:i.title===(null==me?void 0:me.full_name)&&(null!=me&&me.is_verified_merchant||null!=me&&null!==(ee=me.verified_identity)&&void 0!==ee&&ee.verified)?(0,v.jsx)(C.Z,{badgeSize:"sm",badgeSpacing:2,fullName:i.title,verifiedType:me.is_verified_merchant?"verifiedMerchant":"verifiedIdentity"}):i.title}),null!=i&&i.subtitle?(!l&&!a||ge)&&(0,v.jsx)(g.xv,{lineClamp:l||r?void 0:1,size:"desktop"===ue?"200":"100",weight:"desktop"===ue?"bold":"normal",children:i.subtitle}):!ce&&he&&"protected"!==he.privacy?(0,v.jsx)(I.Z,{id:"related-pin-text-below-name",children:(0,v.jsx)(g.rU,{underline:"hover",href:null!==(te=he.url)&&void 0!==te?te:"",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),e.stopPropagation(),(0,k.NC)("click_board_pin_attribution_profile"),de({action:"click",item:"related-pin-text-below-name"})},children:(0,v.jsx)(g.xv,{size:"200",children:he.name})})}):null]});return(0,v.jsx)(n.Fragment,{children:(0,v.jsxs)(g.xu,{display:"flex",height:d?e?104:72:void 0,marginEnd:_||1,marginStart:u||1,position:"relative",children:[(0,v.jsxs)(g.xu,{flex:"grow",children:[(0,v.jsx)(g.xu,{display:"flex",marginTop:fe,children:(0,v.jsx)(g.xu,{flex:"grow",children:(0,v.jsxs)(n.Fragment,{children:[(0,v.jsxs)(n.Fragment,{children:[(l||r)&&!ge&&(0,v.jsx)(g.xu,{marginBottom:1,children:(0,v.jsx)(g.xu,{flex:"grow",overflow:"hidden",children:(0,v.jsx)(A.Z,{hasAffiliatedProducts:r,isPromoted:s,sponsorName:ve,sponsorshipStatus:null==_e||null===(ie=_e.sponsorship)||void 0===ie?void 0:ie.status})})}),Y&&(0,v.jsx)(g.xu,{marginTop:1,overflow:"hidden",dangerouslySetInlineStyle:{__style:{display:"-webkit-box",textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:"2"}},children:ce&&!a&&(0,v.jsx)(F,{title:Y})}),"desktop"===ue&&!ce&&f&&!(0,j.$Y)(le)&&!(0,j.E0)(le)&&(0,v.jsx)(g.xu,{marginTop:1,overflow:"hidden",dangerouslySetInlineStyle:{__style:{display:"-webkit-box",textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:"2"}},"data-test-id":"desc",children:(0,v.jsx)(g.iP,{onTap:()=>{de({action:"click",item:"related-pins-description"})},children:(0,v.jsx)(g.xv,{size:"100",inline:!0,children:f})})})]}),e&&(0,v.jsx)(b,{credits:i,pinId:S}),"recipe"===$&&!!Z&&(0,v.jsx)(n.Fragment,{children:(0,v.jsxs)(g.xu,{alignItems:"center",display:"flex",marginTop:1,children:[!!Z&&(0,v.jsx)(y,{maxRating:H||"",rating:z||"",text:""}),!!G&&(0,v.jsxs)(n.Fragment,{children:[(0,v.jsx)(g.xu,{paddingX:1,children:(0,v.jsx)(g.xv,{size:"100",children:"·"})}),(0,v.jsx)(g.xv,{size:"100",children:(0,R.IS)({...(0,w.u)(G),i18n:oe})})]})]})})]})})}),!ye&&Ee,i&&(0,v.jsx)(p.Z,{onTouch:e=>m&&m(e),pressState:"none",children:(0,v.jsx)(g.xu,{children:(!a||l||ge)&&(0,v.jsxs)(g.xu,{display:"flex",marginTop:ye?-9:c||(pe&&!a?1:0),marginBottom:a?2:0,position:"relative",direction:ye?"column":"row",children:[(0,v.jsx)(g.xu,{flex:"none",display:ye?"flex":void 0,justifyContent:"center","data-test-id":"related-pins-avatar-image",children:se(ce?"mweb_auth_feed_a11y_fix":"mweb_unauth_feed_a11y_fix").anyEnabled?Se:(0,v.jsx)(g.iP,{onTap:()=>{de({action:"click",item:"related-pins-avatar-image"})},children:Se})}),(0,v.jsx)(g.xu,{direction:"column",display:"flex",flex:"grow",justifyContent:"center",alignItems:ye?"center":void 0,marginStart:1,"data-test-id":"related-pins-name",children:se(ce?"mweb_auth_feed_a11y_fix":"mweb_unauth_feed_a11y_fix").anyEnabled?Pe:(0,v.jsx)(g.iP,{onTap:()=>{de({action:"click",item:"related-pins-name"})},children:Pe})})]})})}),!i&&"desktop"===ue&&!!me&&((0,j.L6)(le)||(0,j.cD)(le)||(0,j.$Y)(le))&&(0,v.jsxs)(g.xu,{display:"flex",marginTop:pe?2:0,children:[(0,v.jsx)(g.xu,{flex:"none","data-test-id":"related-pins-avatar-image",children:(0,v.jsx)(g.iP,{onTap:()=>{de({action:"click",item:"related-pins-avatar-image"})},children:(0,v.jsx)(h.Z,{name:me.username||"",size:"sm",src:null!==(ne=me.image_small_url)&&void 0!==ne?ne:void 0})})}),(0,v.jsxs)(g.xu,{direction:"column",display:"flex",flex:"grow",justifyContent:"center",marginStart:1,"data-test-id":"related-pins-name",children:[(0,v.jsx)(g.rU,{underline:"hover",href:`/${me.username}/`,onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),e.stopPropagation(),(0,k.NC)("click_board_pin_attribution_board"),de({action:"click",item:"related-pins-name"})},children:(0,v.jsx)(g.xv,{size:"200",weight:"bold",children:me.full_name||me.username})}),he&&"protected"!==he.privacy?(0,v.jsx)(I.Z,{id:"related-pin-text-below-name",children:(0,v.jsx)(g.rU,{underline:"hover",href:null!==(ae=he.url)&&void 0!==ae?ae:"",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),e.stopPropagation(),(0,k.NC)("click_board_pin_attribution_profile"),de({action:"click",item:"related-pin-text-below-name"})},children:(0,v.jsx)(g.xv,{size:"200",children:null!==(re=he.name)&&void 0!==re?re:""})})}):null]})]}),ye&&Ee]}),(0,v.jsx)(g.xu,{position:ye?"absolute":void 0,right:!0,children:!q&&t})]})})};var B,G=i(857079),H=i(349700),z=i(296011),Z=i(167912);const K=void 0!==B?B:B=i(7745),W=(e,t)=>{const{checkExperiment:i}=(0,D.F)();return i("graphql_migration_sharelink_sgrowth_web").anyEnabled?((e,t)=>{const i=(0,Z.useRelayEnvironment)();return(0,v.jsx)(z.t,{invite_code:e,relayEnvironment:i,inviteQuery:K,children:e=>{const i=null!=e&&e.data?e.data.sender:null,n=i&&i.first_name?i.first_name.substring(0,30):"";if(!n)return null;const a=i&&!i.is_default_image?i.image_medium_url:"",r=(0,H.nk)(t.bt("{{ name }} 与你分享了此点子", "{{ name }} shared this idea with you", "homefeed.pinSenderAvatar.heading", undefined, true),{name:n});return(0,v.jsxs)(g.kC,{alignItems:"center",direction:"column",justifyContent:"start",children:[(0,v.jsx)(g.zd,{height:32,width:32,children:(0,v.jsx)(h.Z,{name:n,src:a})}),(0,v.jsx)(g.xu,{width:"80%",paddingY:2,children:(0,v.jsx)(g.xv,{align:"center",size:"200",weight:"bold",children:r})})]})}})})(e,t):((e,t)=>(0,v.jsx)(z.Z,{invite_code:e,children:e=>{const i=e?e.sender:null,n=i&&i.first_name?i.first_name.substring(0,30):"";if(!n)return null;const a=i&&!i.is_default_image?i.image_medium_url:"",r=(0,H.nk)(t.bt("{{ name }} 与你分享了此点子", "{{ name }} shared this idea with you", "homefeed.pinSenderAvatar.heading", undefined, true),{name:n});return(0,v.jsxs)(g.kC,{alignItems:"center",direction:"column",justifyContent:"start",children:[(0,v.jsx)(g.zd,{height:32,width:32,children:(0,v.jsx)(h.Z,{name:n,src:a})}),(0,v.jsx)(g.xu,{width:"80%",paddingY:2,children:(0,v.jsx)(g.xv,{align:"center",size:"200",weight:"bold",children:r})})]})}}))(e,t)},Y=({inviteCode:e})=>{const t=(0,E.ZP)();return(0,v.jsx)(g.xu,{minHeight:82,children:(0,v.jsx)(o.Z,{name:"SafeSuspense_PinCardSharedHeader_LoadingSpinner",children:(0,v.jsx)(T.Z,{fallback:(0,v.jsx)(G.Z,{accessibilityLabel:t.bt("正在加载邀请组件", "Loading Invitation component", "Loading InviteFetch component", undefined, true)}),children:W(e,t)})})})};var $=i(948945),q=i(55275);const X={initial:{opacity:0,transition:"opacity 0.25s ease-in"},fadeIn:{opacity:.8,transition:"opacity 1s ease"}},J=(e,t,i)=>(0,v.jsx)(g.xv,{color:"inverse",inline:!0,size:"200",weight:"bold",children:(0,v.jsx)(g.rU,{display:"inlineBlock",href:t,tapStyle:"none",underline:"hover",children:i})},e);function Q({color:e,getFeedbackText:t,onUnfollow:i,showing:a,unfollowed:r}){const o=(0,E.ZP)(),[s,l]=(0,n.useState)(a?"fadeIn":"initial"),d=(0,n.useRef)(null);(0,n.useEffect)((()=>("initial"===s&&a&&(d.current=window.requestAnimationFrame((()=>l("fadeIn")))),()=>{d.current&&window.cancelAnimationFrame(d.current)})),[s,l,a]);const{subTitle:c,title:u,unfollow:p}=t(J);let _=u,h=c;p&&r&&(_=p.title,h=p.subTitle);const m=()=>p?(0,q.t)(p.action,p.actionOptions,i):void 0;return a&&(0,v.jsx)(g.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:e,...X[s]}},margin:1,rounding:4,position:"absolute",top:!0,bottom:!0,left:!0,right:!0,children:(0,v.jsxs)(g.xu,{width:"100%",height:"100%",color:"dark",rounding:4,overflow:"auto",children:[(0,v.jsxs)(g.xu,{padding:3,rounding:2,display:"flex",direction:"column",height:"100%",justifyContent:"between",children:[(0,v.jsxs)(g.xu,{children:[(0,v.jsx)(g.X6,{size:"400",color:"light",children:_}),!!h&&(0,v.jsxs)(g.xu,{marginTop:1,children:[(0,v.jsx)(g.xv,{color:"light",size:"200",inline:!0,children:h}),(0,v.jsx)(g.xv,{color:"light",inline:!0,size:"200",weight:"bold",children:(0,v.jsx)(g.rU,{href:"/edit",display:"inlineBlock",rounding:2,tapStyle:"none",underline:"hover",children:o.bt("调整你的主页", "Tune your home feed", "Text on the button to navigate to homefeed control", undefined, true)})})]})]}),!r&&p&&(0,v.jsx)(g.xu,{paddingY:1,children:(0,v.jsx)(g.zx,{fullWidth:!0,color:"white",text:o.bt("取消关注", "Unfollow", "Text on the button to unfollow a specific board / user", undefined, true),onClick:m})})]}),!r&&p&&(0,v.jsx)(g.xu,{paddingY:1,children:(0,v.jsx)(g.zx,{fullWidth:!0,color:"white",text:o.bt("取消关注", "Unfollow", "Text on the button to unfollow a specific board / user", undefined, true),onClick:m})})]})})}var ee=i(21384),te=i(992750);function ie({description:e,gridTitle:t,pinId:i,placeSummaryName:n,richMetadataTitle:a,richSummaryDisplayName:r,storyPinDataId:o,storyPinDataMetadataPinTitle:s,title:l}){return(0,v.jsxs)(g.xu,{paddingX:2,marginBottom:-1,display:"flex",children:[(0,v.jsx)(g.xu,{flex:"grow",maxHeight:32,minHeight:12,overflow:"hidden",width:142,children:(0,v.jsx)(g.xv,{lineClamp:2,size:"100",weight:"bold",children:(0,te.fs)({pinTitle:l,gridTitle:t,richSummaryDisplayName:r,richMetadataTitle:a,storyPinDataId:o,storyPinDataMetadataPinTitle:s,placeSummaryName:n})||e})}),(0,v.jsx)(g.xu,{children:(0,v.jsx)(ee.Z,{pinId:i,size:"sm",graphqlRef:null})})]})}var ne=i(57791);const ae=({attribute:e,deviceType:t,location:i})=>{const n=(0,O.S)(i);(0,k.My)("unuath.product_attribution.click",{item:e,page:n,device:t})};function re({description:e,domain:t,gridTitle:i,pinId:a,priceSummary:r,placeSummaryName:o,richMetadataTitle:s,richSummaryDisplayName:l,storyPinDataId:d,storyPinDataMetadataPinTitle:c,title:u,isUnauthRelatedProductsExp1LineGroup:p}){const _=(0,x.ZP)(),h=(0,L.useLocation)(),m=r&&(r.price||r.standardPrice||(({maxPrice:e,minPrice:t,price:i})=>e&&t?`${t}-${e}`:i)(r)),y=(0,n.useMemo)((()=>p?1:m?3:2),[m,p]);if(!a)return null;const E=(0,te.fs)({pinTitle:u,gridTitle:i,richSummaryDisplayName:l,richMetadataTitle:s,storyPinDataId:d,storyPinDataMetadataPinTitle:c,placeSummaryName:o})||e,f=`/pin/${a}/`;return(0,v.jsx)(g.xu,{paddingX:2,marginBottom:-1,marginTop:1,display:"flex",direction:"column",children:(0,v.jsxs)(g.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:[(0,v.jsx)(g.xu,{flex:"grow",minHeight:12,overflow:"hidden",width:142,children:(0,v.jsxs)(ne.MZ,{to:f,accessibilityLabel:E,deeplinkUri:f,children:[m&&(0,v.jsx)(g.iP,{onTap:()=>ae({deviceType:_,attribute:"price",location:h}),children:(0,v.jsx)(g.xv,{size:"100",weight:"bold",children:m})}),(0,v.jsx)(g.xu,{marginTop:1,children:(0,v.jsx)(g.iP,{onTap:()=>ae({deviceType:_,attribute:"title",location:h}),children:(0,v.jsx)(g.xv,{size:"100",weight:"bold",lineClamp:y,children:E})})}),t&&m&&(0,v.jsx)(g.xu,{marginTop:1,children:(0,v.jsx)(g.iP,{onTap:()=>ae({deviceType:_,attribute:"merchant",location:h}),children:(0,v.jsx)(g.xv,{size:"100",lineClamp:1,children:t})})})]})}),(0,v.jsx)(g.xu,{children:(0,v.jsx)(ee.Z,{pinId:a,size:"sm",graphqlRef:null})})]})})}var oe=i(248299),se=i(327476),le=i(394332),de=i(529195),ce=i(477802),ue=i(255607),pe=i(262794);const _e=Object.freeze([pe.Country.BR,pe.Country.MX,pe.Country.ES,pe.Country.IT,pe.Country.CH,pe.Country.AT,pe.Country.NL]),he=Object.freeze([pe.Country.DE,pe.Country.CA,pe.Country.FR,pe.Country.AU]),me=Object.freeze([pe.Country.US,pe.Country.GB]);Object.freeze([...he,..._e,...me]);var ge,ve=i(874317),ye=i(861411),Ee=i(639952),fe=i(772486),Se=i(378518),Pe=i(813401),be=i(112690),Te=i(680046),Ae=i(305324),Ie=i(904779),xe=i(780679);function Ce(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const Oe=void 0!==ge?ge:ge=i(741316),Re=({isDesktop:e})=>e?0:1,we=e=>Boolean(e.isEligibleForWebCloseup),ke=e=>Boolean(e.promoter&&!e.isDownstreamPromotion),De={width:1,height:1,url:""},Ne=e=>{const{attribution:t,embed:i,isEligibleForWebCloseup:n,richSummary:a,videos:r,storyPinDataId:o}=e,s=i||t&&t.embed;return n?"oneTap":r||s&&"video"===s.type?"video":s&&"gif"===s.type?"gif":a&&"product"===a.typeName?"product":a&&"recipe"===a.typeName?"recipe":o?"storyPin":"image"},Le=e=>{if(("video"===Ne(e)||ke)&&e.videos&&e.videos.videoList){const{duration:t}=e.videos.videoList[Object.keys(e.videos.videoList)[0]]||{};return(0,_.Z)(null!=t?t:0)}return""},Me=e=>{var t;if("product"!==Ne(e))return null;const[i]=(null===(t=e.richSummary)||void 0===t?void 0:t.products)||[];if(!i)return null;const n=i.offerSummary;return n&&(n.price||n.maxPrice)},je=(0,n.lazy)((()=>i.e(26332).then(i.bind(i,926332))));class Ue extends n.Component{constructor(...e){super(...e),Ce(this,"state",{startImpressionTimer:!1,isShowingCustomContextMenu:!1}),Ce(this,"getPinImage",(()=>{const{pin:{imageSpec_136x136:e,imageSpec_170x:t,imageSpec_236x:i,imageSpec_474x:n,imageSpec_736x:a,imageSpec_orig:r},duploIsSquarePin:o}=this.props;return o?{height:136,url:null==i?void 0:i.url,width:136}:[i,t,e,a,n,r].find((e=>e&&e.url))||De})),Ce(this,"getImpressionData",(()=>{var e,t,i;const{pin:n}=this.props,a=null===(e=n.videos)||void 0===e||null===(t=e.videoList)||void 0===t?void 0:t.v720P,r=a?{isNativeVideoAndWatchable:!!(a&&a.url&&a.height&&a.width)||void 0,videoIdStr:a&&(null===(i=n.videos)||void 0===i?void 0:i.entityId)||void 0}:{},o=this.getPinImage();return{richTypes:n.shoppingFlags||[],imageURL:o.url||"",...r,...this.props.impressionData}})),Ce(this,"getAuxCommerceData",(()=>{var e;const{pin:t}=this.props;return(0,s.Z)({isEligibleForPdp:t.isEligibleForPdp,isOosProduct:t.isOosProduct,isStaleProduct:t.isStaleProduct,pinShoppingFlags:null!==(e=t.shoppingFlags)&&void 0!==e?e:void 0})})),Ce(this,"getAuxData",(()=>{const{auxData:e={},pwaType:t}=this.props;return{commerce_data:this.getAuxCommerceData(),pwa_type:t,...e}})),Ce(this,"getFeedbackType",(()=>{var e,t,i;const{feedback:n,viewParameter:a,pin:r}=this.props;return(0,Te.hP)({boardFollowedByMe:!(null===(e=r.board)||void 0===e||!e.followedByMe),feedbackType:null==n?void 0:n.type,viewParameter:a,promotion:r&&r.promoter&&{isDownstreamPromotion:!!r.isDownstreamPromotion},pinnerFollowedByMe:!(null===(t=r.pinner)||void 0===t||!t.explicitlyFollowedByMe),recommendationReason:(null===(i=r.legacyOnly)||void 0===i?void 0:i.recommendation_reason)&&{hasBoard:!!r.legacyOnly.recommendation_reason.board,reason:r.legacyOnly.recommendation_reason.reason}})})),Ce(this,"getRecommendationDescription",(e=>{var t,i;const{pin:n,i18n:a}=this.props,r={i18n:a,makeNavigateLink:e};switch(this.getFeedbackType()){case"pfy":return(0,Te.Ud)({...r,feedback:{type:"pfy"}});case"pfyBoard":return(0,Te.Ud)({...r,feedback:{type:"pfyBoard",recommendationReasonBoard:(null===(t=n.legacyOnly)||void 0===t||null===(i=t.recommendation_reason)||void 0===i?void 0:i.board)&&{name:n.legacyOnly.recommendation_reason.board.name,url:n.legacyOnly.recommendation_reason.board.url}}});case"topic":return(0,Te.Ud)({...r,feedback:{type:"topic",sourceInterest:n.sourceInterest&&n.sourceInterest.name&&n.sourceInterest.urlName?{name:n.sourceInterest.name,url_name:n.sourceInterest.urlName}:null}});case"followed":return(0,Te.Ud)({...r,feedback:{type:"followed",followed:n.pinner&&n.pinner.explicitlyFollowedByMe?{type:"pinner",pinner:n.pinner.fullName&&n.pinner.username?{full_name:n.pinner.fullName,username:n.pinner.username}:null}:{type:"board",board:n.board&&n.board.name&&n.board.url?{name:n.board.name,url:n.board.url}:null}}});case"promoted":return(0,Te.Ud)({...r,feedback:{type:"promoted",promoter:!n.adMatchReason&&n.promoter&&n.promoter.fullName?{full_name:n.promoter.fullName,username:n.promoter.username}:null}});default:return null}})),Ce(this,"getPinHiddenFeedbackText",(e=>{const{pin:t,i18n:i}=this.props,n=t.promoter;if(ke(t)&&null!=n&&n.fullName)return{title:"",subTitle:(0,H.nk)(this.props.i18n.bt("{{ promoter }} 付款让此 Pin 图显示在更有可能吸引你的地方。", "{{ promoter }} has paid to have this pin show up where you'd be more likely to notice it.", "pinRep.promotedPinfeedbackText.subtitle", undefined, true),{promoter:n.fullName})};let a;switch(this.getFeedbackType()){case"followed":const{board:n,pinner:r}=t;n&&r&&(a=(0,Te.oK)({boardId:n.entityId,i18n:i,makeNavigateLink:e,display:r.explicitlyFollowedByMe?{type:"board",data:{name:n.name,url:n.url}}:{type:"pinner",data:{full_name:r.fullName,username:r.username}}}));break;case"topic":const{sourceInterest:o}=t;o&&(a=(0,Te.Iv)({i18n:i,makeNavigateLink:e,sourceInterest:{id:o.entityId,name:o.name,url_name:o.urlName}}))}return a?{title:i.bt("Pin 图已隐藏", "Pin hidden", "message displayed after hiding a pin", undefined, true),subTitle:this.getRecommendationDescription(e),unfollow:a}:{title:i.bt("Pin 图已隐藏", "Pin hidden", "message displayed after hiding a pin", undefined, true),subTitle:i.bt("好的！我们以后尽量为你显示更多相关 Pin 图。", "Got it! We'll try to show you more relevant Pins in the future.", "message displayed after hiding a pin", undefined, true)}})),Ce(this,"logOneTap",(()=>{const{logContextEvent:e,trackingParams:t,viewType:i,viewParameter:n,auxData:a,pin:r}=this.props,{entityId:o}=r,s=(0,d.Z)(t,r.trackingParams),l={view_type:this.props.viewType,view_parameter:this.props.viewParameter,element:r.storyPinDataId?12372:35,component:this.props.componentType,object_id_str:o,aux_data:{commerce_data:this.getAuxCommerceData(),grid_index:this.props.slotIndex,image_signature:r.imageSignature,...this.props.auxData},clientTrackingParams:s};e({event_type:8948,view_type:i,view_parameter:n,object_id_str:o,clientTrackingParams:s,aux_data:{image_signature:r.imageSignature,closeup_navigation_type:"click",click_type:"clickthrough",cosmic_ray_count:"2",...a}}),(0,fe.jC)(l),e({component:this.props.componentType,event_type:13,view_type:3,clientTrackingParams:s,aux_data:{closeup_navigation_type:"web_closeup",image_signature:r.imageSignature},object_id_str:o})})),Ce(this,"handleLoad",(()=>{this.setState({startImpressionTimer:!0})})),Ce(this,"handleError",(()=>{this.setState({startImpressionTimer:!1})})),Ce(this,"handleClick",(e=>{const{auxData:t,componentType:i,deviceType:n,logContextEvent:a,pin:r,slotIndex:o,trackingParams:s,viewParameter:l,viewType:c,duploFeedItemProps:u,isAuth:p,trackInteraction:_,unauthDesktopSignupModalPageContext:h}=this.props,{onPinClick:m}=null!=u?u:{},{entityId:g}=r,v=e=>(0,k.My)(`unauth_pin_rep.${e}.${String(l)}`);if(v("click"),a({view_type:c,view_parameter:l,element:r.storyPinDataId?12372:35,event_type:101,component:i,object_id_str:g,clientTrackingParams:(0,d.Z)(s,r.trackingParams),aux_data:{commerce_data:this.getAuxCommerceData(),grid_index:o,image_signature:r.imageSignature,...t}}),we(r)||a({event_type:8948,view_type:c,view_parameter:l,object_id_str:g,clientTrackingParams:(0,d.Z)(s,r.trackingParams),aux_data:{image_signature:r.imageSignature,commerce_data:this.getAuxCommerceData(),closeup_navigation_type:"click",grid_index:o,cosmic_ray_count:"3",...t}}),!p)switch(_({action:"click",item:"pin"}),c){case 3:(0,k.NC)("click_pin_related_image");break;case 5:(0,k.NC)("click_board_pin_image");break;case 210:(0,k.NC)("click_topic_pin_image")}if(we(r)&&this.logOneTap(),m&&m(),"desktop"===n){if(e.metaKey){v("click.cmd_button_pressed"),e.preventDefault();window.open(`/pin/${g}/`,"_blank").focus()}else if(!p&&h){const{pinImageClickHandler:t}=h;t({event:e,pinId:g,linkTarget:"duploClientNav",seoUrl:r.seoUrl})}}})),Ce(this,"handleCreditsClick",(e=>{var t;const{history:i,logContextEvent:n,pin:a}=this.props,{entityId:r,sponsorship:o,storyPinDataId:s}=a,{creator:l,sponsor:d}=o||{},{entityId:c}=l||{},{entityId:u}=d||{},p=!!s;e.stopPropagation(),e.preventDefault();const _=null===(t=this.getCredits())||void 0===t?void 0:t.link;_&&i.push(_),n({view_type:3,element:27,event_type:102,object_id_str:r,component:p?230:void 0,aux_data:{pin_id:r,...c&&u?{creator_id:c,sponsor_id:u}:{}}})})),Ce(this,"handleUnfollowPin",(()=>this.props.markPinUnfollowed())),Ce(this,"handlePinSend",(e=>{var t;e&&e.stopPropagation&&e.stopPropagation();const{pin:i,setSharingOnBoardPage:n}=this.props;i.board&&n&&null!==(t=i.legacyOnly)&&void 0!==t&&t.isSocialSeasonalBoard&&n(!0,"pin",i.entityId)})),Ce(this,"isOverrideImageOnly",(()=>{const{pin:{richSummary:e},viewerIsNewUser:t,viewParameter:i}=this.props;return e&&43===i&&!t||3375===i})),Ce(this,"convertToGif",(e=>{const t=Math.max(e.embed&&e.embed.width||0,236),i=Math.max(e.embed&&e.embed.height||0,236);return{url:e.embed?e.embed.src:"",width:t,height:i}}))}componentDidMount(){const{isAuth:e,slotIndex:t,viewParameter:i,location:n,pin:a}=this.props;if(!e&&0===t&&3070===i){var r,o,s;const e=n.pathname,{imageSignature:t,entityId:i,imageSpec_236x:l,description:d}=a;(0,de.H$)(e,t,i,l&&{dominant_color:null!==(r=l.dominantColor)&&void 0!==r?r:void 0,height:null!==(o=l.height)&&void 0!==o?o:void 0,url:l.url,width:null!==(s=l.width)&&void 0!==s?s:void 0},d)}}getIsClaimedContent(){var e,t;const{viewParameter:i,pin:n}=this.props;return 3375===i&&!(null===(e=n.linkDomain)||void 0===e||null===(t=e.officialUser)||void 0===t||!t.isPrimaryWebsiteVerified)}getCredits(){var e,t,i,n;const{adBlockTextTransform:a,viewParameter:r,pin:o}=this.props,{entityId:s}=o,l=o.storyPinData,d=o.pinner,c=o.promoter,u=null==l?void 0:l.hasProductPins,p=0===r,_=3173===r,h=3375===r,m=this.getIsClaimedContent(),g=o.nativeCreator,v=!!o.nativeCreator,y=ke(o),{sponsorship:E}=o,{creator:f,sponsor:S}=E||{},P=y&&!!E&&(null==c?void 0:c.entityId)!==(null==g?void 0:g.entityId),b=!!E&&f;if(!(y||b||p||_||v||m))return;switch(P?"PROMOTED_SPONSORED":y?"PROMOTED":b?"SPONSORED":v?"AFFILIATED_PRODUCTS":u?"NATIVE_CONTENT":m?"CLAIMED_CONTENT":o.board&&"protected"===o.board.privacy?"SAVED_BY":"DEFAULT"){case"PROMOTED_SPONSORED":return{title:null==g?void 0:g.fullName,subtitle:null==c?void 0:c.fullName,avatar:this.getPinnerImage(null==g?void 0:g.imageSmallUrl),mediumAvatar:this.getPinnerImage(null==g?void 0:g.imageMediumUrl),largeAvatar:this.getPinnerImage(null==g?void 0:g.imageLargeUrl),link:null!=g&&g.username?`/${g.username}/`:""};case"PROMOTED":return{title:a(this.props.i18n.bt("推广者：", "Promoted by", "Grid pin annotation", undefined, true)),subtitle:null==c?void 0:c.fullName,avatar:this.getPinnerImage(null==c?void 0:c.imageSmallUrl),mediumAvatar:this.getPinnerImage(null==c?void 0:c.imageMediumUrl),largeAvatar:this.getPinnerImage(null==c?void 0:c.imageLargeUrl),link:null!=c&&c.username?`/${c.username}/`:""};case"SPONSORED":if(!E)throw new Error("sponsorship doesn't exist when expected");return{title:null==g?void 0:g.fullName,subtitle:null==S?void 0:S.fullName,avatar:this.getPinnerImage(null==g?void 0:g.imageSmallUrl),mediumAvatar:this.getPinnerImage(null==g?void 0:g.imageMediumUrl),largeAvatar:this.getPinnerImage(null==g?void 0:g.imageLargeUrl),link:null!=g&&g.username?`/${g.username}/`:""};case"AFFILIATED_PRODUCTS":return{title:null==g?void 0:g.fullName,subtitle:"",avatar:this.getPinnerImage(null==g?void 0:g.imageSmallUrl),mediumAvatar:this.getPinnerImage(null==g?void 0:g.imageMediumUrl),largeAvatar:this.getPinnerImage(null==g?void 0:g.imageLargeUrl),link:null!=g&&g.username?`/${g.username}/`:""};case"NATIVE_CONTENT":let r=(null===(e=o.board)||void 0===e?void 0:e.url)||`/pin/${s}/`;return h&&(r=null!=g&&g.username?`/${g.username}/`:""),{title:"",subtitle:null==g?void 0:g.fullName,avatar:this.getPinnerImage(null==g?void 0:g.imageSmallUrl),mediumAvatar:this.getPinnerImage(null==g?void 0:g.imageMediumUrl),largeAvatar:this.getPinnerImage(null==g?void 0:g.imageLargeUrl),link:r};case"CLAIMED_CONTENT":const l=null===(t=o.linkDomain)||void 0===t?void 0:t.officialUser;return l?{subtitle:l.fullName,avatar:this.getPinnerImage(l.imageSmallUrl),mediumAvatar:this.getPinnerImage(l.imageMediumUrl),largeAvatar:this.getPinnerImage(l.imageLargeUrl),link:l.username?`/${l.username}/`:""}:void 0;case"SAVED_BY":return{title:this.props.i18n.bt("收藏者：", "Saved by", "Grid pin annotation", undefined, true),subtitle:"",avatar:this.getPinnerImage(null==d?void 0:d.imageSmallUrl),mediumAvatar:this.getPinnerImage(null==d?void 0:d.imageMediumUrl),largeAvatar:this.getPinnerImage(null==d?void 0:d.imageLargeUrl),link:(null===(i=o.board)||void 0===i?void 0:i.url)||`/pin/${s}/`};default:return{title:(null==d?void 0:d.fullName)||"",subtitle:"",avatar:this.getPinnerImage(null==d?void 0:d.imageSmallUrl),mediumAvatar:this.getPinnerImage(null==d?void 0:d.imageMediumUrl),largeAvatar:this.getPinnerImage(null==d?void 0:d.imageLargeUrl),link:(null===(n=o.board)||void 0===n?void 0:n.url)||`/pin/${s}/`}}}getSharedHeaderInviteCode(){var e;const{viewParameter:t,viewedSharedPins:i,pin:{entityId:n}}=this.props;return 92===t?null===(e=i&&i[n])||void 0===e?void 0:e.inviteCode:void 0}getPinnerImage(e){return e&&e.includes("/user/default")?void 0:e}getPinText(){const{gridTitle:e,richSummary:t,description:i}=this.props.pin;return"string"==typeof e?{title:e,description:""}:{title:null==t?void 0:t.displayName,description:i}}renderPinCard(){var e,t,i,n,a,r,s,u,_,h,m,y,E,S,P,b,A,x,C,O,R,w,k,D,N,L,M,U,F,B,G,H,z,Z,K,W,q,X,J,ee,ae,se,de,pe,_e,he,me,ge,ye,Ee,fe;const{checkExperiment:Se,country:Pe,disableAppUpsell:be,duploDisablePinCardPadding:Te,disableRounding:Ae,disableReaction:Ie,deviceType:xe,experience:Ce,feedback:Oe,feedbackStatus:De,imageOnlyOption:Ue,i18n:Fe,isAuth:Ve,isBot:Be,duploIsSquarePin:Ge,isImageOnlyExp:He,location:ze,duploFeedItemProps:Ze,duploLazyLoadImage:Ke,duploOneTapSave:We,duploPinCardDetailsMargin:Ye,duploPriorityFetchImage:$e,pin:qe,slotIndex:Xe,viewParameter:Je,viewType:Qe,duploShouldAllowProductPriceIndicator:et,topLevelTrafficSource:tt,topLevelTrafficSourceDepth:it,trafficSource:nt,duploUnauthRelatedPinsAutoplayExpGroup:at,unauthRelatedProductsExpGroup:rt,trackingParams:ot,trackInteraction:st,vaseDisplayMode:lt,createUnauthContextMenuHandler:dt,duploConversationPin:ct}=this.props,{onPinLinkClick:ut,showSeoMetadata:pt}=null!=Ze?Ze:{},{category:_t,entityId:ht,imageSpec_136x136:mt,imageSpec_170x:gt,imageSpec_236x:vt,imageSpec_474x:yt,imageSpec_736x:Et,imageSpec_orig:ft,linkDomain:St,imageSignature:Pt,promoter:bt,richMetadata:Tt,richSummary:At,title:It,sponsorship:xt,storyPinData:Ct}=qe,{description:Ot,title:Rt}=this.getPinText(),wt="desktop"===xe,kt=Ne(qe),Dt=0===Je,Nt=3475===Je,Lt=43===Je,Mt=ke(qe),jt=!!xt,Ut=null==Ct?void 0:Ct.hasProductPins,Ft=null==Ct?void 0:Ct.isDeleted,Vt=(0,d.Z)((ze&&ze.state||{}).trackingParams||ot,qe.trackingParams),Bt=(e=>(0,j.f1)(e)||(0,j.OX)(e))(ze),Gt="product"===Ne(qe)&&!Ve&&(!Be||Bt)&&(!Se("unauth_gate_product_pins_by_country_and_trustworthiness").anyEnabled||qe.isEligibleForPdp),Ht=He&&!this.isOverrideImageOnly(),zt=null===(e=qe.legacyOnly)||void 0===e?void 0:e.isSocialSeasonalBoard,Zt=this.getPinImage(),Kt=zt&&"gif"===kt?this.convertToGif(qe):Zt,Wt=null===(t=qe.videos)||void 0===t||null===(i=t.videoList)||void 0===i?void 0:i.v720P,Yt=(null==Wt?void 0:Wt.url)||(null===(n=qe.videos)||void 0===n||null===(a=n.videoList)||void 0===a||null===(r=a.vHLSV4)||void 0===r?void 0:r.url),$t=(0,te.hP)(null!==(s=qe.description)&&void 0!==s?s:"",qe.descriptionHtml||"",null===(u=qe.pinJoin)||void 0===u?void 0:u.visualAnnotation,qe.altText||""),qt=Ve?Ot:(0,c.Z)({storyPinDataId:qe.storyPinDataId,pinDescription:qe.description,richMetadataDescription:null!==(_=null===(h=qe.richMetadata)||void 0===h?void 0:h.description)&&void 0!==_?_:"",richSummaryDisplayName:null!==(m=null===(y=qe.richSummary)||void 0===y?void 0:y.displayName)&&void 0!==m?m:"",placeSummaryName:null!==(E=null===(S=qe.legacyOnly)||void 0===S?void 0:S.place_summary)&&void 0!==E?E:"",closeupDescription:null!==(P=qe.closeupDescription)&&void 0!==P?P:"",closeupUnifiedDescription:null!==(b=qe.closeupUnifiedDescription)&&void 0!==b?b:""}),Xt=Ce&&Ce.display_data.hideReactions||!1,Jt=Ce&&Ce.display_data.hideDesc||!1,Qt=!Ie&&(0,ue.J6)({boardIsCollaborative:null===(A=qe.board)||void 0===A?void 0:A.isCollaborative,isDownstreamPromotion:qe.isDownstreamPromotion,isPromoted:qe.isPromoted,storyPinDataId:qe.storyPinDataId,videosId:null===(x=qe.videos)||void 0===x?void 0:x.entityId})&&!Nt&&!Xt,ei=!Ve;let ti;ti=we(qe)?qe.trackedLink||qe.link:ei?(0,te.bN)({pinId:ht,seoUrl:qe.seoUrl}):(0,te.BY)(ht);const ii=!Ot||Ht&&!Dt?void 0:Ot.trim(),ni=this.getSharedHeaderInviteCode(),ai={accessibilityLabel:$t||Rt||Ot||"",country:Pe,deeplinkUri:ti,external:we(qe),externalQueryParams:{pin:ht,client_tracking_params:ot},isAppUpsellDisabled:be,onTouch:this.handleClick,pinCategory:qe.category,pressState:"none",rounding:4,title:this.props.i18n.bt("查看此 Pin 图", "See this Pin", "App Upsell Text after clicking on Pin in feed", undefined, true),to:{pathname:ti,state:{trackingParams:ot,trafficSource:nt,topLevelTrafficSource:tt,topLevelTrafficSourceDepth:it}},upsellType:"direct",viewParameter:Je,viewType:Qe,clientTrackingParams:Vt},ri=Re({isDesktop:wt}),oi=qe.nativeCreator||qe.pinner,si="search"===nt&&"storyPin"===kt&&Se("mweb_search_ideapin_module").anyEnabled,li=(0,f.kb)({hasLinkDomain:!!St,richMetadata:Tt&&{recipe:Tt.recipe&&{fromAggregatedData:Tt.recipe.fromAggregatedData},products:Tt.products},richSummary:At&&{products:At.products}});return(0,v.jsxs)(g.xu,{"data-test-id":"pin","data-test-pin-id":ht,marginBottom:wt?0:2,children:[(0,v.jsxs)(g.xu,{"data-test-id":$t||Rt||Ot?"pin-with-alt-text":"pin-missing-alt-text",padding:Te?0:ri,marginBottom:0,onContextMenu:oi?dt({pinId:ht,deviceOptions:{isDesktop:!0}}):void 0,dangerouslySetInlineStyle:{__style:this.state.isShowingCustomContextMenu?ve.Yw:{}},children:[(0,v.jsxs)(ne.MZ,{...ai,children:[!!ni&&(0,v.jsx)(Y,{inviteCode:ni}),Ft?(0,v.jsx)(oe.Z,{isPinRep:!0}):(0,v.jsx)($.Z,{clientTrackingParams:Vt,color:null!==(C=qe.dominantColor)&&void 0!==C?C:"",description:ii,domainLinkData:qe.domain&&qe.link?{clickLoggingOptions:{auxData:{objectId:ht,grid_index:Xe,sanitized_url:qe.link}},domain:qe.domain,link:qe.link,onClick:ut}:void 0,disableRounding:Ae,hideBottomCardText:null!=zt?zt:void 0,image:Kt&&{dominant_color:null!==(O=Kt.dominantColor)&&void 0!==O?O:void 0,height:null!==(R=Kt.height)&&void 0!==R?R:void 0,url:null!==(w=Kt.url)&&void 0!==w?w:void 0,width:null!==(k=Kt.width)&&void 0!==k?k:void 0},imageAltText:$t,imageCrop:qe.imageCrop&&"number"==typeof qe.imageCrop.minY&&"number"==typeof qe.imageCrop.maxY?{minY:qe.imageCrop.minY,maxY:qe.imageCrop.maxY}:void 0,isMessenger:null!=zt?zt:void 0,isPromoted:Mt,isSquarePin:Ge,lazyLoadImage:Ke,onError:this.handleError,oneTapSave:We,onLoad:this.handleLoad,priorityFetchImage:$e,disableDefaultContextMenu:()=>this.setState({isShowingCustomContextMenu:!0}),createUnauthContextMenuHandler:dt,pinId:ht,pinnedToBoardId:null!==(D=null===(N=qe.pinnedToBoard)||void 0===N?void 0:N.entityId)&&void 0!==D?D:"",pinVideo:(zt||Mt)&&Wt||void 0,videoUrl:null!=Yt?Yt:void 0,productPrice:et&&!Gt?Me(qe):null,slotIndex:Xe,storyDataExists:!!Ct,title:!Ht||Dt?Rt:void 0,type:kt,videoDuration:Le(qe),unauthRelatedPinsAutoplayExpGroup:at,viewType:Qe,viewParameter:Je})]}),!("image-only"===Ue)&&(Ve||"desktop"===xe)&&(0,v.jsxs)(g.xu,{children:[!Nt&&!Lt&&"desktopParity"===lt&&(0,v.jsx)(le.Z,{pinId:ht,mode:"inlineWithScrollArrows",graphqlRef:null}),!Gt&&(0,v.jsx)(ne.MZ,{...ai,children:(0,v.jsx)(V,{duploConversationPin:ct,allowPriceIndicator:!et&&!Gt&&["shop_feed"].includes(nt),marginTop:Ye,hidePinMetadata:Jt,contextMenu:Ve&&!Ft?(0,v.jsx)(g.xu,{marginStart:1,marginTop:Ye,children:(0,v.jsx)(g.xu,{height:26,width:24,children:(0,v.jsx)(o.Z,{name:"SafeSuspense_Pin_ContextualMenu",children:(0,v.jsx)(T.Z,{children:(0,v.jsx)(je,{adMatchReason:qe.adMatchReason,bestPinImgSrc:(0,l.Z)({embedSrc:null===(L=qe.embed)||void 0===L?void 0:L.src,embedType:null===(M=qe.embed)||void 0===M?void 0:M.type,images:{...[["136x136",mt],["170x",gt],["236x",vt],["474x",yt],["736x",Et],["orig",ft]].reduce(((e,[t,i])=>{var n,a,r,o;return i?(e[t]={dominant_color:null!==(n=i.dominantColor)&&void 0!==n?n:void 0,height:null!==(a=i.height)&&void 0!==a?a:void 0,url:null!==(r=i.url)&&void 0!==r?r:void 0,width:null!==(o=i.width)&&void 0!==o?o:void 0},e):e}),{})}}),feedback:Oe,feedbackType:this.getFeedbackType(),getRecommendationDescription:this.getRecommendationDescription,graphqlRef:null,imageSignature:null!=Pt?Pt:void 0,pinCategory:_t,pinDescription:qt,pinId:ht,pinTitle:It,sourceType:Mt?"ad":Dt?"following":void 0,viewParameter:Je,viewType:Qe,trackingParams:ot})})})})}):null,credits:this.getCredits(),hasAffiliatedProducts:null!=Ut?Ut:void 0,isPromotedPin:Mt,isSponsoredPin:jt,isSquarePin:Ge,marginStart:Ye,marginEnd:Ye,onCreditsClick:this.handleCreditsClick,pinDescription:qt,pinId:ht,pinnedToBoardId:null!==(U=null===(F=qe.pinnedToBoard)||void 0===F?void 0:F.entityId)&&void 0!==U?U:"",pinReactionCounts:null!==(B=null===(G=qe.reactionCountsData)||void 0===G?void 0:G.reduce(((e,{reactionCount:t,reactionType:i})=>({...e,[String(null!=i?i:0)]:null!=t?t:0})),{}))&&void 0!==B?B:void 0,promoterName:null!==(H=null==bt?void 0:bt.fullName)&&void 0!==H?H:void 0,recipeCookTime:Ht?void 0:qe.richSummary&&qe.richSummary.displayCookTime,recipeMaxRating:Ht||null==At||null===(z=At.aggregateRating)||void 0===z?void 0:z.bestRating,recipeRating:Ht||null==At||null===(Z=At.aggregateRating)||void 0===Z?void 0:Z.ratingValue,recipeReviewCount:Ht||null==At||null===(K=At.aggregateRating)||void 0===K?void 0:K.reviewCount,shouldShowReactions:Qt,style:si?"overlay":"default",title:si?void 0:Rt,type:kt})})]}),Gt&&(0,v.jsx)(re,{description:qe.description,domain:null===(W=qe.richSummary)||void 0===W?void 0:W.siteName,gridTitle:null!==(q=qe.gridTitle)&&void 0!==q?q:void 0,pinId:ht,priceSummary:li&&{maxPrice:li.maxPrice,minPrice:li.minPrice,price:li.price,standardPrice:li.standardPrice},placeSummaryName:null===(X=qe.legacyOnly)||void 0===X?void 0:X.place_summary,richMetadataTitle:null===(J=qe.richMetadata)||void 0===J?void 0:J.title,richSummaryDisplayName:null===(ee=qe.richSummary)||void 0===ee?void 0:ee.displayName,storyPinDataId:qe.storyPinDataId,storyPinDataMetadataPinTitle:null===(ae=qe.storyPinData)||void 0===ae||null===(se=ae.metadata)||void 0===se?void 0:se.pinTitle,title:qe.title,isUnauthRelatedProductsExp1LineGroup:(null==rt?void 0:rt.includes("square"))||(null==rt?void 0:rt.includes("1_line"))})]}),zt&&Ve&&(0,v.jsx)(g.xu,{color:"secondary",marginBottom:6,marginEnd:"auto",marginStart:"auto",marginTop:-2,position:"relative",rounding:2,width:"90%",children:(0,v.jsx)(p.Z,{onTouch:this.handlePinSend,pressState:"none",rounding:2,children:(0,v.jsx)(g.xu,{padding:3,children:(0,v.jsx)(g.xv,{align:"center",weight:"bold",children:Fe.bt("发送", "Send", " - ", undefined, true)})})})}),"reported"===De?(0,v.jsx)(Q,{color:null!==(de=qe.dominantColor)&&void 0!==de?de:"",getFeedbackText:()=>({title:this.props.i18n.bt("已举报", "Reported", "message displayed after reporting a pin", undefined, true),subTitle:this.props.i18n.bt("谢谢！你的反馈会帮助我们维护 Pinterest 社区的安全。", "Thanks! Your feedback helps us keep the Pinterest community safe.", "message displayed after reporting a pin", undefined, true)}),pinId:ht,showing:!0}):(0,v.jsx)(Q,{color:null!==(pe=qe.dominantColor)&&void 0!==pe?pe:"",getFeedbackText:this.getPinHiddenFeedbackText,onUnfollow:this.handleUnfollowPin,pinId:ht,showing:!!De,unfollowed:"unfollowed"===De,viewParameter:Je,viewType:Qe}),pt&&"inlineHidden"===lt&&!Gt&&(0,v.jsx)(I.Z,{id:"related-pins-title",children:(0,v.jsx)(g.iP,{onTap:()=>{st({action:"click",item:"related-pins-title"})},fullWidth:!1,children:(0,v.jsx)(ie,{description:qe.description,gridTitle:null!==(_e=qe.gridTitle)&&void 0!==_e?_e:void 0,pinId:ht,placeSummaryName:null===(he=qe.legacyOnly)||void 0===he?void 0:he.place_summary,richMetadataTitle:null===(me=qe.richMetadata)||void 0===me?void 0:me.title,richSummaryDisplayName:null===(ge=qe.richSummary)||void 0===ge?void 0:ge.displayName,storyPinDataId:qe.storyPinDataId,storyPinDataMetadataPinTitle:null===(ye=qe.storyPinData)||void 0===ye||null===(Ee=ye.metadata)||void 0===Ee?void 0:Ee.pinTitle,title:qe.title})})}),(null===(fe=qe.legacyOnly)||void 0===fe?void 0:fe.debug)&&(0,v.jsx)(ce.W,{data:qe.legacyOnly.debug})]})}render(){const{componentType:e,pin:{entityId:t},trackingParams:i,viewParameter:n,viewType:a,slotIndex:r,objectIdStr:o,viewData:s}=this.props,{startImpressionTimer:l}=this.state;return(0,v.jsx)(ye.dL,{auxData:this.getAuxData(),component:e,impressionData:this.getImpressionData(),isPaused:!l,loggingId:t,objectIdStr:o,slotIndex:r,trackingParams:i,viewData:s,viewParameter:n,viewType:a,children:({impressionTrackerRef:e})=>(0,v.jsx)(g.xu,{ref:e,children:this.renderPinCard()})})}}function Fe(e){const t=(0,E.ZP)(),i=(0,xe.g)(),{checkExperiment:n}=(0,D.F)(),r=(0,L.useHistory)(),o=(0,L.useLocation)(),s=(0,x.ZP)(),l=(0,Ae.M)(),d=(0,Pe.yz)(),c=(0,Se._)({id:1000107}),p=(0,be.Z)(),_=(0,O.Z)(),{country:h,isAuthenticated:m,isBot:g}=(0,M.B)(),y=(0,se.Z)(),f=(0,a.useDispatch)(),{hasPoorConnection:S,viewedSharedPins:P}=(0,a.useSelector)((({session:e})=>e)),b=(0,a.useSelector)((({experiences:e})=>{const t=e[1000107];return!!t&&500678===t.experience_id})),T=(0,a.useSelector)((({session:e,users:t})=>(0,u.Z)(t[e.userId].created_at))),{getPinFeedbackStatus:A,setPinFeedbackStatus:I}=(0,Ie.K)(),C=e.pin.entityId;return(0,v.jsx)(Ue,{...e,adBlockTextTransform:y,checkExperiment:n,country:h,createUnauthContextMenuHandler:l,deviceType:s,experience:c,feedbackStatus:A({pinId:C}),hasPoorConnection:S,history:r,i18n:t,isAuth:m,isBot:g,isImageOnlyExp:b,location:o,logContextEvent:p,markPinUnfollowed:()=>I({pinId:C,pinFeedbackStatus:"unfollowed"}),pwaType:d,setSharingOnBoardPage:(e,t,i)=>f((0,Ee.Mj)(e,t,i)),trackInteraction:_,unauthDesktopSignupModalPageContext:i,vaseDisplayMode:"desktop"===s?"desktopParity":"inlineHidden",viewedSharedPins:P,viewerIsNewUser:T})}const Ve=(0,r.Z)({useGraphQLAdapter:e=>(0,Z.useFragment)(Oe,e),useLegacyAdapter:e=>{var t,i,n,a,r,o,s,l,d,c,u,p,_;const h=(0,P.S6)()(e);if(!h)return null;const m=e=>e&&{entityId:e.id,fullName:e.full_name,imageLargeUrl:e.image_large_url,imageMediumUrl:e.image_medium_url,imageSmallUrl:e.image_small_url,username:e.username},g=e=>e&&{dominantColor:e.dominant_color,height:e.height,url:e.url,width:e.width},v=h.reaction_counts;return{adMatchReason:h.ad_match_reason,altText:h.alt_text,attribution:h.attribution&&{embed:h.attribution.embed&&{type:h.attribution.embed.type}},board:h.board&&{entityId:h.board.id,followedByMe:h.board.followed_by_me,isCollaborative:h.board.is_collaborative,name:h.board.name,privacy:h.board.privacy,url:h.board.url},category:h.category,closeupDescription:h.closeup_description,closeupUnifiedDescription:h.closeup_unified_description,descriptionHtml:h.description_html,description:h.description,domain:h.domain,dominantColor:h.dominant_color,embed:h.embed&&{height:h.embed.height,src:h.embed.src,type:h.embed.type,width:h.embed.width},entityId:h.id,gridTitle:h.grid_title,imageCrop:h.image_crop&&{minY:h.image_crop.min_y,maxY:h.image_crop.max_y},imageSignature:h.image_signature,imageSpec_136x136:g(null===(t=h.images)||void 0===t?void 0:t["136x136"]),imageSpec_170x:g(null===(i=h.images)||void 0===i?void 0:i["170x"]),imageSpec_236x:g(null===(n=h.images)||void 0===n?void 0:n["236x"]),imageSpec_474x:g(null===(a=h.images)||void 0===a?void 0:a["474x"]),imageSpec_736x:g(null===(r=h.images)||void 0===r?void 0:r["736x"]),imageSpec_orig:g(null===(o=h.images)||void 0===o?void 0:o.orig),isDownstreamPromotion:h.is_downstream_promotion,isEligibleForPdp:h.is_eligible_for_pdp,isEligibleForWebCloseup:h.is_eligible_for_web_closeup,isOosProduct:h.is_oos_product,isPromoted:h.is_promoted,isStaleProduct:h.is_stale_product,linkDomain:h.link_domain&&{officialUser:h.link_domain.official_user&&{fullName:h.link_domain.official_user.full_name,entityId:null!==(s=h.link_domain.official_user.id)&&void 0!==s?s:"",imageLargeUrl:h.link_domain.official_user.image_large_url,imageMediumUrl:h.link_domain.official_user.image_medium_url,imageSmallUrl:h.link_domain.official_user.image_small_url,username:h.link_domain.official_user.username,isPrimaryWebsiteVerified:h.link_domain.official_user.is_primary_website_verified}},link:h.link,nativeCreator:m(h.native_creator),pinnedToBoard:h.pinned_to_board&&{entityId:null!==(l=h.pinned_to_board.id)&&void 0!==l?l:""},pinJoin:h.pin_join&&{visualAnnotation:h.pin_join.visual_annotation},pinner:h.pinner&&{entityId:h.pinner.id,explicitlyFollowedByMe:h.pinner.explicitly_followed_by_me,fullName:h.pinner.full_name,imageLargeUrl:h.pinner.image_large_url,imageMediumUrl:h.pinner.image_medium_url,imageSmallUrl:h.pinner.image_small_url,username:h.pinner.username},promoter:m(h.promoter),reactionCountsData:v&&Object.keys(v).map((e=>({reactionType:Number(e),reactionCount:v[e]}))),richMetadata:h.rich_metadata&&{description:h.rich_metadata.description,title:h.rich_metadata.title,recipe:h.rich_metadata.recipe&&{fromAggregatedData:h.rich_metadata.recipe.from_aggregated_data},products:h.rich_metadata.products&&h.rich_metadata.products.map((e=>{var t,i,n,a;return{name:e.name,offerSummary:{maxPrice:null===(t=e.offer_summary)||void 0===t?void 0:t.max_price,minPrice:null===(i=e.offer_summary)||void 0===i?void 0:i.min_price,price:null===(n=e.offer_summary)||void 0===n?void 0:n.price,standardPrice:null===(a=e.offer_summary)||void 0===a?void 0:a.standard_price}}}))},richSummary:h.rich_summary&&{aggregateRating:h.rich_summary.aggregate_rating&&{bestRating:h.rich_summary.aggregate_rating.best_rating,ratingValue:h.rich_summary.aggregate_rating.rating_value,reviewCount:h.rich_summary.aggregate_rating.review_count},displayName:h.rich_summary.display_name,displayCookTime:h.rich_summary.display_cook_time,siteName:h.rich_summary.site_name,typeName:h.rich_summary.type_name,products:h.rich_summary.products&&h.rich_summary.products.map((e=>{var t,i,n,a;return{name:e.name,offerSummary:{maxPrice:null===(t=e.offer_summary)||void 0===t?void 0:t.max_price,minPrice:null===(i=e.offer_summary)||void 0===i?void 0:i.min_price,price:null===(n=e.offer_summary)||void 0===n?void 0:n.price,standardPrice:null===(a=e.offer_summary)||void 0===a?void 0:a.standard_price}}}))},seoUrl:h.seo_url,shoppingFlags:h.shopping_flags,sourceInterest:h.source_interest&&{entityId:null!==(d=h.source_interest.id)&&void 0!==d?d:"",name:h.source_interest.name,urlName:h.source_interest.url_name},sponsorship:h.sponsorship&&{creator:h.sponsorship.creator&&{entityId:null!==(c=h.sponsorship.creator.id)&&void 0!==c?c:"",fullName:h.sponsorship.creator.full_name,imageLargeUrl:h.sponsorship.creator.image_large_url,imageMediumUrl:h.sponsorship.creator.image_medium_url,imageSmallUrl:h.sponsorship.creator.image_small_url,username:h.sponsorship.creator.username},sponsor:h.sponsorship.sponsor&&{entityId:null!==(u=h.sponsorship.sponsor.id)&&void 0!==u?u:"",fullName:h.sponsorship.sponsor.full_name,imageLargeUrl:h.sponsorship.sponsor.image_large_url,imageMediumUrl:h.sponsorship.sponsor.image_medium_url,imageSmallUrl:h.sponsorship.sponsor.image_small_url,username:h.sponsorship.sponsor.username}},storyPinDataId:h.story_pin_data_id,storyPinData:h.story_pin_data&&{hasProductPins:h.story_pin_data.has_product_pins,isDeleted:h.story_pin_data.is_deleted,metadata:h.story_pin_data.metadata&&{pinTitle:h.story_pin_data.metadata.pin_title}},title:h.title,trackedLink:h.tracked_link,trackingParams:h.tracking_params,videos:h.videos&&{entityId:null!==(p=h.videos.id)&&void 0!==p?p:"",videoList:h.videos.video_list&&{vHLSV4:h.videos.video_list.V_HLSV4&&{duration:h.videos.video_list.V_HLSV4.duration,height:h.videos.video_list.V_HLSV4.height,width:h.videos.video_list.V_HLSV4.width,url:h.videos.video_list.V_HLSV4.url},v720P:h.videos.video_list.V_720P&&{duration:h.videos.video_list.V_720P.duration,height:h.videos.video_list.V_720P.height,width:h.videos.video_list.V_720P.width,url:h.videos.video_list.V_720P.url}}},legacyOnly:{debug:h.debug,isSocialSeasonalBoard:null===(_=h.board)||void 0===_?void 0:_.isSocialSeasonalBoard,place_summary:h.place_summary,recommendation_reason:h.recommendation_reason}}}});function Be(e){const{pinId:t,duploQueryRef:i,...n}=e;return(0,v.jsx)(Ve,{input:i?{enabled:!0,data:i}:{enabled:!1,data:t},children:({data:e})=>!!e&&(0,v.jsx)(Fe,{...n,pin:e})})}},167525:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(898781),a=i(643010),r=i(883119),o=i(785893);function s({text:e,icon:t,largeIdentifier:i,largeMargin:s}){const l=(0,n.ZP)();return(0,o.jsxs)(r.xu,{zIndex:new r.Ry(1),alignItems:"center",dangerouslySetInlineStyle:{__style:{backgroundColor:(0,a.Yc)()?"rgba(0, 0, 0, 0.7)":"rgba(255, 255, 255, 0.8)"}},display:"flex",margin:s?4:2,overflow:"hidden",position:"absolute",rounding:"pill",padding:2,paddingX:i?4:void 0,height:i?36:24,top:!0,children:[t&&(0,o.jsx)(r.xu,{marginEnd:i?2:1,children:(0,o.jsx)(r.JO,{accessibilityLabel:l.bt("显示 Pin 图类型的识别符", "identifier that shows the pin type", "pin.pincard.iconAccessibilityLabel", undefined, true),color:"default",icon:t,inline:!0,size:i?18:12})}),(0,o.jsx)(r.xv,{inline:!0,size:i?"200":"100",weight:"bold",children:e})]})}},255607:(e,t,i)=>{function n(e){const t=Object.keys(e);if(t.length>0){return t.sort(((t,i)=>e[i]-e[t])).slice(0,3)}return null}function a(e){const t=Object.values(e);if(t.length>0){return t.reduce(((e,t)=>e+t),0)}return 0}function r({boardIsCollaborative:e,isDownstreamPromotion:t,isPromoted:i,storyPinDataId:n,videosId:a}){return!(i||t||!a&&!n||null!=e&&e)}i.d(t,{At:()=>n,J6:()=>r,Ud:()=>a})},130460:(e,t,i)=>{i.d(t,{bn:()=>s,fJ:()=>d,gC:()=>l});var n=i(702664),a=i(425288),r=i(785893);const{Provider:o,useHook:s}=(0,a.Z)("Boards");function l(){const e=s();return t=>e[t]}function d({children:e}){const t=(0,n.useSelector)((({boards:e})=>e),n.shallowEqual);return(0,r.jsx)(o,{value:t,children:e})}},350118:(e,t,i)=>{i.d(t,{AF:()=>s,H0:()=>l,S6:()=>d,_S:()=>c});var n=i(702664),a=i(425288),r=i(785893);const{Provider:o,useHook:s,useMaybeHook:l}=(0,a.Z)("Pins");function d(){const e=s();return t=>e[t]}function c({children:e}){const t=(0,n.useSelector)((({pins:e})=>e),n.shallowEqual);return(0,r.jsx)(o,{value:t,children:e})}},698330:(e,t,i)=>{i.d(t,{Tt:()=>u,cm:()=>c,kW:()=>l,kY:()=>p,mN:()=>d});var n=i(702664),a=i(19121),r=i(425288),o=i(785893);const{Provider:s,useHook:l}=(0,r.Z)("Users");function d(){const e=l();return t=>e[t]}function c(){const e=l();return t=>{const i=Object.keys(e).find((i=>e[i].username===t));return e[null!=i?i:""]}}function u(){const{id:e}=(0,a.Z)();return l()[null!=e?e:""]}function p({children:e}){const t=(0,n.useSelector)((({users:e})=>e),n.shallowEqual);return(0,o.jsx)(s,{value:t,children:e})}},349741:(e,t,i)=>{i.d(t,{Z:()=>S});var n=i(667294),a=i(327212),r=i(830157),o=i(499128),s=i(898781),l=i(349700),d=i(883119),c=i(785893);function u({hideToast:e,newPin:t,originalPinId:i}){var n,a;const r=(0,s.ZP)();return(0,c.jsx)(o.ZP,{primaryAction:{accessibilityLabel:r.bt("更改已收藏 Pin 图按钮", "Change saved Pin button", "RepinRequest.a11yChangeButton", undefined, true),href:`/pin/${t.id}/repin/?isEditingPin=true&pinBoardId=${null!==(n=null===(a=t.board)||void 0===a?void 0:a.id)&&void 0!==n?n:""}&&isFromToast=true&&originalPinId=${null!=i?i:""}`,label:r.bt("更改", "Change", "RepinRequest.ChangeButton", undefined, true),size:"lg",onClick:e},duration:5e3,onHide:e,text:(0,c.jsx)(d.xv,{children:(0,l.nk)(r.bt("已收藏至 {{ profile }}", "Saved to {{ profile }}", "RepinRequest.ProfileSaveToastText", undefined, true),{profile:(0,c.jsx)(d.xv,{inline:!0,weight:"bold",children:r.bt("个人资料", "Profile", "RepinRequest.ProfileSaveToastText.Profile", undefined, true)})})}),iconThumbnail:(0,c.jsx)(d.xu,{color:"secondary",display:"flex",justifyContent:"center",alignItems:"center",height:48,width:48,children:(0,c.jsx)(d.JO,{accessibilityLabel:r.bt("个人资料", "Profile", "RepinRequest.ProfileIcon", undefined, true),icon:"history",size:22})})})}var p=i(214494),_=i(483025),h=i(414327),m=i(332611),g=i(675752),v=i(56632),y=i(12918),E=i(782677);const f=({board:e,section:t})=>{const i=(0,s.ZP)();return t?(0,l.nk)(i.bt("已将 {{sectionName}} 收藏至 {{boardName}}", "Saved to {{sectionName}} in {{boardName}}", "Toast for successfully saving to a section within a board", undefined, true),{sectionName:t&&t.title,boardName:e.name}).join(""):(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(d.xv,{color:"default",children:i.bt("收藏至", "Saved to", "Saved to {{ boardName }}", undefined, true)}),(0,c.jsx)(d.xv,{color:"default",weight:"bold",children:e.name})]})};class S{constructor({boardId:e,dispatch:t,history:i,isOneTapSave:n=!1,isQuickSave:a=!1,onSuccess:o,onUndo:s,originalPinId:l,pin:d,resourceName:c,section:u,showNewUserSavetoProfileAnimation:p=!1,showRepinToasts:h,trackingParams:m,userId:g,viewType:v=3,historyPush:y}){var f,S,P,b,T;T=e=>(0,E.Fv)(e.resource_response.data,_.Z[this.resourceName]),(b="_getNormalizedResponse")in(P=this)?Object.defineProperty(P,b,{value:T,enumerable:!0,configurable:!0,writable:!0}):P[b]=T,this.boardId=e,this.trackingParams=m,this.clientTrackingParams=(0,r.Z)(m.clientTrackingParams||"",d.tracking_params),this.dispatch=t,this.history=i,this.onSuccess=o,this.onUndo=s,this.originalPinId=l,this.pin=d,this.pinnedToBoardId=m.pinnedToBoardId||(null!==(f=null===(S=d.pinned_to_board)||void 0===S?void 0:S.id)&&void 0!==f?f:""),this.resourceName=c,this.showNewUserSavetoProfileAnimation=p,this.showRepinToasts=h,this.section=u,this.isOneTapSave=n,this.isQuickSave=a,this.userId=g,this.viewType=v,this.historyPush=y}get resourceOptions(){const{link:e,title:t,promoted_is_removable:i,id:n}=this.pin,a=i?{is_removable:!0}:{};return{pin_id:n,board_id:this.boardId,section:this.section&&this.section.id,clientTrackingParams:this.clientTrackingParams,link:null!=e?e:"",title:null!=t?t:"",user_id:this.userId,is_removable:a}}get trackingData(){return{event_type:5,element:this.isOneTapSave?10599:void 0,view_type:this.viewType,component:this.isOneTapSave?0:7,view_parameter:this.isOneTapSave?3173:(0,g.A)(this.pin),object_id_str:this.pin.id,clientTrackingParams:this.clientTrackingParams,aux_data:{board_id:this.pinnedToBoardId,destination_board_id:this.boardId}}}_createRepin(){return p.Z.create(this.resourceName,{...this.resourceOptions,disable_event_log_info:!0}).callCreate()}processRepin(e){return this._createRepin().then((t=>{this.onSuccess&&this.onSuccess();const i=t.resource_response.data,{board:n}=i,{isQuickSave:r,originalPinId:o,showNewUserSavetoProfileAnimation:l}=this,p=({hideToast:e})=>{var t;if(r&&!l)return(0,c.jsx)(u,{hideToast:e,newPin:i,originalPinId:o});const{thumbnail:p}=(0,v.L)(n.id);return(0,c.jsx)(a.Z,{button:(0,c.jsx)(s.oz,{children:e=>(0,c.jsx)(d.zx,{fullWidth:!0,onClick:({event:t})=>{t.preventDefault(),t.stopPropagation();const a=this.onUndo;var r;a&&!l?a(this.pin.id,i.id,n.id,null===(r=this.section)||void 0===r?void 0:r.id,e):l&&this.historyPush(`/pin/${i.id}/repin/?isEditingPin=true&pinBoardId=${n.id}&&isFromToast=true&&originalPinId=${null!=o?o:""}`)},text:l?e.bt("整理", "Organize", "RepinRequest.OrganizeButton", undefined, true):e.bt("撤销", "Undo", "RepinRequest.UndoButton", undefined, true)})}),href:this.section?`${n.url}${null!==(t=this.section.slug)&&void 0!==t?t:""}`:n.url,isRepinToExistingBoard:!0,onHide:e,text:(0,c.jsx)(f,{board:n,section:this.section}),thumbnail:p})},_=this._getNormalizedResponse(t);if(this.dispatch((0,h.XM)(this.resourceName,this.resourceOptions,t,_)),this.originalPinId&&this.originalPinId!==this.resourceOptions.pin_id){const e={...this.resourceOptions,pin_id:this.originalPinId};this.dispatch((0,h.XM)(this.resourceName,e,t,_))}this.dispatch((0,y.M)(i.id,n.id,this.section?this.section.id:void 0,this.userId));const g=this.showRepinToasts;return g&&g(p),this.dispatch((0,m.fO)({event_type:5})),e(this.trackingData),i}))}}},21384:(e,t,i)=>{i.d(t,{Z:()=>R});var n=i(667294),a=i(702664),r=i(373420),o=i(430322),s=i(121151),l=i(898781),d=i(643010),c=i(883119),u=i(50286),p=i(785893);function _({showFullScreenInfo:e,isOpen:t,interstitialUpsellDismissed:i,children:n}){const a=(0,l.ZP)(),r=(0,u.HG)(),_=(0,u.Wb)();return _||r?(0,p.jsx)(s.ZP,{accessibilityModalLabel:"",mobileHideCloseIcon:!0,mobileIsFullscreen:!0,isOpen:e&&!_,closeOnOutsideClick:!1,onDismiss:()=>{},children:(0,p.jsx)(c.xu,{color:(0,d.Yc)()?"dark":"default",dangerouslySetInlineStyle:{__style:{border:(0,d.Yc)()?void 0:"1px solid #efefef",transition:"transform 0.3s ease-out",WebkitOverflowScrolling:"touch"}},height:"100%",left:!0,maxHeight:"100%",overflow:"auto",position:"fixed",top:!0,width:r?"100vw":"100%",zIndex:new c.Ry(1),children:(0,p.jsx)(c.xu,{bottom:!0,left:!0,right:!0,top:!0,position:"fixed",padding:5,overflow:"scroll",marginTop:i?0:12,children:n})})}):(0,p.jsx)(o.default,{accessibilityModalLabel:a.bt("关闭", "Close", "Close modal window", undefined, true),isOpen:t,onDismiss:()=>{},mobileAccessibilityCloseIconLabel:a.bt("关闭", "Close", "Close modal window", undefined, true),children:n})}var h,m=i(784590),g=i(690035),v=i(52022),y=i(385801),E=i(623568),f=i(867820),S=i(350118),P=i(780280),b=i(992750),T=i(167912);const A=void 0!==h?h:h=i(276667);function I({iconColor:e,size:t,isMainPin:i,isAuth:o,pinCreditPrefix:s,onClickTitleOrDomain:d,richMetadataDescription:h,richMetadataTitle:m,richSummaryDisplayName:S,placeSummaryName:T,closeupUnifiedDescription:A,gridTitle:I,storyPinDataId:x,storyPinDataMetadataPinTitle:C,pinDescription:O,pinDomain:R,pinTitle:w,boardId:k,boardUrl:D,boardName:N,boardPrivacy:L,pinnerFullName:M,pinnerImageSmallUrl:j,pinnerImageLargeUrl:U,pinId:F,graphqlRef:V}){const B=(0,l.ZP)(),G=(0,v.Z)(),{isBot:H}=(0,P.B)(),{unauthInterstitialDismissed:z}=(0,a.useSelector)((({session:e})=>e)),[Z,K]=(0,n.useState)(!1),W=(0,u.HG)(),Y=(0,u.Wb)(),$=(0,g.Z)(),q=(0,E._S)(R)?R:"",X=!Y&&!o,{description:J}=(0,b.eK)({richMetadataDescription:h,richSummaryDisplayName:S,placeSummaryName:T,closeupUnifiedDescription:A}),Q=(0,b.fs)({pinTitle:w,gridTitle:I,richSummaryDisplayName:S,richMetadataTitle:m,storyPinDataId:x,storyPinDataMetadataPinTitle:C,placeSummaryName:T})||O,ee=!W,te=(0,p.jsxs)(c.xu,{padding:5,dangerouslySetInlineStyle:X?{__style:{paddingTop:0,paddingBottom:30}}:void 0,children:[(0,p.jsx)(c.xu,{left:!0,position:"absolute",top:!0,color:"default",padding:4,"data-test-id":"close-seo-vase-see-more-button",children:(0,p.jsx)(c.hU,{accessibilityLabel:B.bt("取消", "Cancel", "close modal icon", undefined, true),icon:"cancel",size:"sm",onClick:()=>{(0,f.My)("mweb.unauth.see_more.dismissed"),G({action:"click",item:"close-seo-vase-see-more-button"}),K(!1),i&&(0,f.My)("mweb.unauth.see_more.main_pin.dismissed")},iconColor:"gray"})}),(0,p.jsx)(c.xu,{marginBottom:X?0:8,children:(0,p.jsx)(c.xv,{align:X?"start":"center",weight:X?void 0:"bold",children:(0,p.jsx)("span",{className:"deprecatedTextSizeXL",children:X?null:B.bt("更多信息", "More information", "more information label", undefined, true)})})}),(0,p.jsx)(y.Z,{description:J,title:Q,pinCreditPrefix:s,onClickTitleOrDomain:d,pinDomain:q,boardId:k,boardUrl:D,boardName:N,boardPrivacy:L,pinnerFullName:M,pinnerImageSmallUrl:j,pinnerImageLargeUrl:U,pinId:F,graphqlRef:V})]});return(0,p.jsxs)(c.xu,{right:!0,"data-test-id":"SeoVaseSeeMoreButton",dangerouslySetInlineStyle:{__style:{float:"right"}},children:[(0,p.jsx)(c.hU,{accessibilityLabel:B.bt("查看更多", "See more", "more information icon", undefined, true),icon:"ellipsis",iconColor:null!=e?e:"gray",size:t||"md",onClick:({event:e})=>{e.stopPropagation(),(0,f.My)("mweb.unauth.see_more.shown."+(i?"main_pin":"related_pins")),G({action:"click",item:"seo-vase-see-more-button"}),Y||o?(K(!0),i&&(0,f.My)("mweb.unauth.see_more.main_pin.shown")):$({pinId:F||"",location:i?"main-pin-more-information":"non-main-pin-more-information",seoPlacementConfig:{description:J,titleText:Q,pinCreditPrefix:s,onClickTitleOrDomain:d,cleanPinDomain:q,boardId:k,boardUrl:D,boardName:N,boardPrivacy:L,pinnerFullName:M,pinnerImageSmallUrl:j,pinnerImageLargeUrl:U,pinId:F,graphqlRef:V}})}}),H&&ee?(0,p.jsx)(c.xu,{display:Z?"flex":"none",children:te}):(0,p.jsx)(_,{showFullScreenInfo:Z,isOpen:Z&&!Y,interstitialUpsellDismissed:!!z,children:te}),Y&&Z&&(0,p.jsx)(r.default,{accessibilityModalLabel:"test",onDismiss:()=>{},children:te})]})}function x(e){var t,i,n,a,r,o,s,l,d,c,u,_,h,m,g,v;const y=(0,T.useFragment)(A,e.graphqlRef);return(0,p.jsx)(I,{iconColor:e.iconColor,size:e.size,isAuth:e.isAuth,isMainPin:e.isMainPin,pinCreditPrefix:e.pinCreditPrefix,onClickTitleOrDomain:e.onClickTitleOrDomain,richMetadataDescription:null!==(t=null==y||null===(i=y.richMetadata)||void 0===i?void 0:i.description)&&void 0!==t?t:"",richMetadataTitle:null!==(n=null==y||null===(a=y.richMetadata)||void 0===a?void 0:a.title)&&void 0!==n?n:"",richSummaryDisplayName:null!==(r=null==y||null===(o=y.richSummary)||void 0===o?void 0:o.displayName)&&void 0!==r?r:"",closeupUnifiedDescription:null!==(s=null==y?void 0:y.closeupUnifiedDescription)&&void 0!==s?s:"",gridTitle:null==y?void 0:y.gridTitle,storyPinDataId:null==y?void 0:y.storyPinDataId,storyPinDataMetadataPinTitle:null==y||null===(l=y.storyPinData)||void 0===l||null===(d=l.metadata)||void 0===d?void 0:d.pinTitle,pinDescription:null==y?void 0:y.description,pinDomain:(null==y?void 0:y.domain)||void 0,pinTitle:null==y?void 0:y.title,boardId:null==y||null===(c=y.board)||void 0===c?void 0:c.entityId,boardUrl:(null==y||null===(u=y.board)||void 0===u?void 0:u.url)||void 0,boardName:(null==y||null===(_=y.board)||void 0===_?void 0:_.name)||void 0,boardPrivacy:(null==y||null===(h=y.board)||void 0===h?void 0:h.privacy)||void 0,pinnerFullName:(null==y||null===(m=y.pinner)||void 0===m?void 0:m.fullName)||void 0,pinnerImageSmallUrl:null==y||null===(g=y.pinner)||void 0===g?void 0:g.imageSmallUrl,pinnerImageLargeUrl:null==y||null===(v=y.pinner)||void 0===v?void 0:v.imageLargeUrl,pinId:null==y?void 0:y.entityId,graphqlRef:y})}function C(e){var t,i,n,a,r,o,s,l,d,c,u;const _=(0,S.S6)()(null!==(t=e.pinId)&&void 0!==t?t:""),h=null==_?void 0:_.board,m=null==_?void 0:_.pinner;return(0,p.jsx)(I,{iconColor:e.iconColor,size:e.size,isAuth:e.isAuth,isMainPin:e.isMainPin,pinCreditPrefix:e.pinCreditPrefix,onClickTitleOrDomain:e.onClickTitleOrDomain,richMetadataDescription:null!==(i=null==_||null===(n=_.rich_metadata)||void 0===n?void 0:n.description)&&void 0!==i?i:"",richMetadataTitle:null!==(a=null==_||null===(r=_.rich_metadata)||void 0===r?void 0:r.title)&&void 0!==a?a:"",richSummaryDisplayName:null!==(o=null==_||null===(s=_.rich_summary)||void 0===s?void 0:s.display_name)&&void 0!==o?o:"",placeSummaryName:null!==(l=null==_?void 0:_.place_summary)&&void 0!==l?l:"",closeupUnifiedDescription:null!==(d=null==_?void 0:_.closeup_unified_description)&&void 0!==d?d:"",gridTitle:null==_?void 0:_.grid_title,storyPinDataId:null==_?void 0:_.story_pin_data_id,storyPinDataMetadataPinTitle:null==_||null===(c=_.story_pin_data)||void 0===c||null===(u=c.metadata)||void 0===u?void 0:u.pin_title,pinDescription:null==_?void 0:_.description,pinDomain:null==_?void 0:_.domain,pinTitle:null==_?void 0:_.title,boardId:null==h?void 0:h.id,boardUrl:null==h?void 0:h.url,boardName:null==h?void 0:h.name,boardPrivacy:null==h?void 0:h.privacy,pinnerFullName:null==m?void 0:m.full_name,pinnerImageSmallUrl:null==m?void 0:m.image_small_url,pinnerImageLargeUrl:null==m?void 0:m.image_large_url,pinId:null==_?void 0:_.id})}function O(e){var t,i,n,a,r,o,s,l,d,c,u;const _=(0,S.S6)()(null!==(t=e.pinId)&&void 0!==t?t:""),h=null==_?void 0:_.board,g=null==_?void 0:_.pinner;return(0,m.Z)({name:"PinResource",options:{id:e.pinId,field_set_key:"unauth_ssr_lazy_load"}}),(0,p.jsx)(I,{iconColor:e.iconColor,size:e.size,isAuth:e.isAuth,isMainPin:e.isMainPin,pinCreditPrefix:e.pinCreditPrefix,onClickTitleOrDomain:e.onClickTitleOrDomain,richMetadataDescription:null!==(i=null==_||null===(n=_.rich_metadata)||void 0===n?void 0:n.description)&&void 0!==i?i:"",richMetadataTitle:null!==(a=null==_||null===(r=_.rich_metadata)||void 0===r?void 0:r.title)&&void 0!==a?a:"",richSummaryDisplayName:null!==(o=null==_||null===(s=_.rich_summary)||void 0===s?void 0:s.display_name)&&void 0!==o?o:"",placeSummaryName:null!==(l=null==_?void 0:_.place_summary)&&void 0!==l?l:"",closeupUnifiedDescription:null!==(d=null==_?void 0:_.closeup_unified_description)&&void 0!==d?d:"",gridTitle:null==_?void 0:_.grid_title,storyPinDataId:null==_?void 0:_.story_pin_data_id,storyPinDataMetadataPinTitle:null==_||null===(c=_.story_pin_data)||void 0===c||null===(u=c.metadata)||void 0===u?void 0:u.pin_title,pinDescription:null==_?void 0:_.description,pinDomain:null==_?void 0:_.domain,pinTitle:null==_?void 0:_.title,boardId:null==h?void 0:h.id,boardUrl:null==h?void 0:h.url,boardName:null==h?void 0:h.name,boardPrivacy:null==h?void 0:h.privacy,pinnerFullName:null==g?void 0:g.full_name,pinnerImageSmallUrl:null==g?void 0:g.image_small_url,pinnerImageLargeUrl:null==g?void 0:g.image_large_url,pinId:null==_?void 0:_.id})}function R(e){return e.graphqlRef?(0,p.jsx)(x,{...e}):e.lazyLoadAnnotations?(0,p.jsx)(O,{...e}):(0,p.jsx)(C,{...e})}},108234:(e,t,i)=>{i.d(t,{Z:()=>g,s:()=>m});var n=i(667294),a=i(121151),r=i(608575),o=i(898781),s=i(349700),l=i(883119),d=i(785893);const c=()=>{var e;const t=(0,o.ZP)(),{dismissWarning:i}=null!==(e=m())&&void 0!==e?e:{};return(0,d.jsx)(l.xu,{paddingX:3,children:(0,d.jsx)(l.zx,{fullWidth:!0,color:"red",onClick:i,text:t.bt("确定", "Okay", "Dismiss a modal stating that clicking through to a link has been blocked", undefined, true)})})},u=()=>{const e=(0,o.ZP)();return(0,d.jsx)(l.xv,{inline:!0,weight:"bold",children:(0,d.jsx)(l.rU,{target:"blank",href:"https://policy.pinterest.com/community-guidelines#section-spam",display:"inlineBlock",underline:"hover",children:e.bt("了解更多", "Learn more", "Link text leading to policy website", undefined, true)})})},p=({message:e,sanitized_url:t})=>{var i;const n=(0,o.ZP)(),{dismissWarning:p}=null!==(i=m())&&void 0!==i?i:{};return(0,d.jsx)(a.ZP,{accessibilityModalLabel:n.bt("我们已屏蔽此链接", "We have blocked this link", "Modal label when clicking a spammy link", undefined, true),onDismiss:p,heading:n.bt("提醒！", "Heads up!", "Modal heading when clicking through to a link has been blocked", undefined, true),footer:(0,d.jsx)(c,{}),children:(0,d.jsxs)(l.xu,{padding:6,children:[(0,d.jsx)(l.xv,{children:(0,s.nk)("{{ message }} {{ learnMore }}",{message:e,learnMore:(0,d.jsx)(u,{},"learnMoreLink")})}),(0,d.jsxs)(l.xu,{alignItems:"center",display:"flex",marginTop:4,children:[(0,d.jsx)(l.xu,{marginEnd:3,children:(0,d.jsx)(l.JO,{accessibilityLabel:n.bt("已屏蔽的链接地址", "Blocked link address", "Icon label preceding a block url", undefined, true),color:"error",icon:"report",inline:!0,size:24})}),(0,d.jsx)(l.xv,{inline:!0,lineClamp:1,weight:"bold",children:r.parse(t).hostname})]})]})})};var _=i(425288);const{Provider:h,useMaybeHook:m}=(0,_.Z)("SpammyClickthrough");function g({children:e}){const[t,i]=(0,n.useState)(null),a=(0,n.useCallback)((()=>{i(null)}),[i]),r=(0,n.useCallback)((e=>{i(e)}),[i]),o=(0,n.useMemo)((()=>({dismissWarning:a,showWarning:r})),[a,r]);return(0,d.jsxs)(h,{value:o,children:[t&&(0,d.jsx)(p,{...t}),e]})}},914142:(e,t,i)=>{i.d(t,{Z:()=>d,j:()=>l});var n=i(898781),a=i(883119),r=i(773285),o=i(349700),s=i(785893);const l=[0,2,3];function d({hasAffiliatedProducts:e,isPromoted:t,sponsorName:i,sponsorshipStatus:d,textColor:c}){const u=(0,n.ZP)(),p=(0,r.F)().checkExperiment("mweb_web_android_ios_clbc_eu_ad_string").anyEnabled;let _;t?_=(0,o.nk)(u.bt("推广者：{{ name }}", "Promoted by {{ name }}", "sponsorship.sponsorshipText.promotedByBrand", undefined, true),{name:i}):d||0===d?i&&!l.includes(d)?_=(0,o.nk)(u.bt("付费合作伙伴为 {{ name }}", "Paid partnership with {{ name }}", "closeup.creator.sponsoredPinTitle", undefined, true),{name:i}):2!==d&&(_=u.bt("付费合作伙伴", "Paid partnership", "closeup.creator.sponsoredPinTitle", undefined, true)):e&&(_=u.bt("包含推广产品", "Includes sponsored products", "sponsorship.sponsorshipText.affiliatedProducts", undefined, true));const h=p&&!t?"Ad • ":"";return(0,s.jsxs)(a.xv,{color:c,size:"100",children:[h,_]})}},640064:(e,t,i)=>{i.d(t,{f:()=>s,w:()=>l});var n=i(667294),a=i(425288),r=i(785893);const{Provider:o,useHook:s}=(0,a.Z)("Session");function l({children:e}){const[t,i]=(0,n.useState)(void 0),a=(0,n.useCallback)((()=>i(void 0)),[]),s=(0,n.useMemo)((()=>({unauthFollowUserId:t,setUnauthFollowUserId:i,removeUnauthFollowUserId:a})),[t,a]);return(0,r.jsx)(o,{value:s,children:e})}},394332:(e,t,i)=>{i.d(t,{Z:()=>S});var n,a=i(667294),r=i(391254),o=i(941646),s=i(862193),l=i(898781),d=i(52022),c=i(992750),u=i(350118),p=i(883119),_=i(167912),h=i(785893);const m=void 0!==n?n:n=i(85934);function g({direction:e,handleClick:t,testId:i}){const n=(0,l.ZP)(),a=(0,d.Z)();return(0,h.jsx)("div",{style:{alignItems:"center",background:`linear-gradient(to ${"left"===e?"right":"left"}, rgba(255,255,255,1) 25%,rgba(255,255,255,0) 100%)`,border:"none",cursor:"pointer",display:"flex",height:30,lineHeight:25,outline:"none",paddingBottom:4,paddingTop:4,position:"absolute",top:0,width:45,..."right"===e?{right:0,justifyContent:"flex-end",textAlign:"right"}:{left:0}},onClick:e=>{a({action:"click",item:"board-pills-arrow"}),t(e)},role:"button","aria-label":"arrow",tabIndex:-1,"aria-hidden":"true","data-test-id":i,children:(0,h.jsx)(o.Z,{id:"board-pills-arrow",children:(0,h.jsx)(p.JO,{accessibilityLabel:n.bt("滚动", "Scroll", "annotations.scrollArrow", undefined, true),icon:"right"===e?"arrow-forward":"arrow-back",size:8,color:"subtle"})})})}function v({name:e,url:t}){const[i,n]=(0,a.useState)(!1),r=(0,d.Z)();return(0,h.jsx)(p.xu,{"data-test-id":"vase-tag",display:"inlineBlock",marginTop:1,marginEnd:1,paddingX:2,paddingY:1,height:26,color:"secondary",rounding:8,dangerouslySetInlineStyle:{__style:{whiteSpace:"nowrap"}},onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:(0,h.jsx)(p.xv,{color:i?"subtle":"default",inline:!0,overflow:"breakWord",size:"100",weight:"bold",children:t?(0,h.jsx)(p.rU,{display:"inlineBlock",tapStyle:"compress",href:t,rounding:8,onClick:()=>{r({action:"click",item:"vase-tag"})},underline:"hover",children:e}):e})})}function y({pinJoinVisualAnnotation:e,pinJoinAnnotationsWithLinks:t,mode:i}){const[n,s]=(0,a.useState)(!1),[l,u]=(0,a.useState)(!1),_=(0,d.Z)(),m=(0,a.useRef)(null);(0,a.useEffect)((()=>{const e=m.current,t=()=>{if("inlineWithScrollArrows"===i&&m.current){const e=m.current,t=Math.max(0,e.scrollLeft),i=t+e.clientWidth;s(0!==t),u(i<e.scrollWidth)}else s(!1),u(!1)};return t(),null==e||e.addEventListener("scroll",t),()=>{null==e||e.removeEventListener("scroll",t)}}),[i]);const y=e=>t=>{t.preventDefault(),t.stopPropagation(),"right"===e&&_({action:"click",item:"board-pills-arrow-button-right"});const i=m.current;if(!i)return;const n=("left"===e?-1:1)*i.clientWidth*.5;i.scrollLeft=Math.min(Math.max(i.scrollLeft+n,0),i.scrollWidth)},{annotationsWithLinks:E}=(0,c.eK)({pinJoinVisualAnnotation:e,pinJoinAnnotationsWithLinks:t});return(0,h.jsx)(p.kC,{alignItems:"center",justifyContent:"end",children:(0,h.jsxs)(p.xu,{display:"flex",overflow:"auto",width:"100%",position:"relative","data-test-id":"vase-carousel",children:[(0,h.jsx)(r.Z,{unsafeCSS:"\n::-webkit-scrollbar {\n  display: none;\n}\n"}),n&&(0,h.jsx)(g,{direction:"left",handleClick:y("left"),testId:"left-scroll-arrow"}),(0,h.jsx)(p.xu,{overflow:"auto",padding:0,dangerouslySetInlineStyle:{__style:{scrollBehavior:"smooth",scrollbarWidth:"none",whiteSpace:"nowrap"}},ref:m,children:E.map((({name:e,url:t})=>(0,h.jsx)(v,{name:e,url:t},t||e)))}),l&&(0,h.jsx)(o.Z,{id:"board-pills-arrow-button-right",children:(0,h.jsx)(g,{direction:"right",handleClick:y("right"),testId:"right-scroll-arrow"})})]})})}function E(e){var t;const i=(0,_.useFragment)(m,e.graphqlRef),n=(0,s.Z)(i),a=(null==i||null===(t=i.pinJoin)||void 0===t?void 0:t.visualAnnotation)||[];return a.length<1?null:(0,h.jsx)(y,{mode:e.mode,pinJoinVisualAnnotation:a,pinJoinAnnotationsWithLinks:n||void 0})}function f(e){var t,i,n;const a=(0,u.S6)()(e.pinId||"");return((null==a||null===(t=a.pin_join)||void 0===t?void 0:t.visual_annotation)||[]).length<1?null:(0,h.jsx)(y,{mode:e.mode,pinJoinVisualAnnotation:null==a||null===(i=a.pin_join)||void 0===i?void 0:i.visual_annotation,pinJoinAnnotationsWithLinks:null==a||null===(n=a.pin_join)||void 0===n?void 0:n.annotations_with_links})}function S(e){return e.graphqlRef?(0,h.jsx)(E,{...e}):(0,h.jsx)(f,{...e})}},385801:(e,t,i)=>{i.d(t,{Z:()=>f});var n=i(667294),a=i(927104),r=i(941646),o=i(52022),s=i(867820),l=i(50286),d=i(883119),c=i(785893);function u({boardUrl:e,boardName:t,boardPrivacy:i,pinnerFullName:n,pinnerImageSmallUrl:a,pinnerImageLargeUrl:u}){const p=(0,l.HG)(),_=(0,o.Z)();if(!e||!t)return null;const h=e.split("/")[1],m=n||h,g=a||u;return(0,c.jsxs)(d.kC,{alignItems:"stretch",justifyContent:"start",direction:"row",children:[g?(0,c.jsx)(d.iP,{role:"link",href:`/${h}/`,fullWidth:!1,tapStyle:"compress",onTap:()=>{(0,s.My)(`pcons.${p?"desktop":"mobile"}.see-more-button-creator`),_({action:"click",item:"see-more-button-creator"})},children:(0,c.jsx)(d.xu,{rounding:"circle",width:32,height:32,overflow:"hidden",marginEnd:2,"data-test-id":"see-more-button-creator",children:(0,c.jsx)(d.Ee,{naturalHeight:32,naturalWidth:32,alt:m,fit:"cover",color:"rgb(231, 186, 176)",src:g})})},"profile-link"):null,(0,c.jsxs)(d.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:[(0,c.jsx)(r.Z,{id:"see-more-button-creator-full-name",children:(0,c.jsx)(d.iP,{onTap:()=>{(0,s.My)(`pcons.${p?"desktop":"mobile"}.see-more-button-creator-full-name`),_({action:"click",item:"see-more-button-creator-full-name"})},children:(0,c.jsx)(d.xv,{color:"default",inline:!0,size:"100",weight:"bold",children:(0,c.jsx)(d.rU,{href:`/${h}/`,display:"inlineBlock",tapStyle:"compress",underline:"hover",children:m},"profile-link")},"profileLink")})}),"protected"===i?null:(0,c.jsx)(d.xv,{color:"default",inline:!0,size:"100",children:(0,c.jsx)(d.rU,{href:null!=e?e:"",display:"inlineBlock",tapStyle:"compress",underline:"hover",children:null!=t?t:""},"board-link")},"boardLink")]})]})}var p,_=i(898781),h=i(394332),m=i(349700),g=i(780280),v=i(298024),y=i(167912);const E=void 0!==p?p:p=i(877821);function f({onClickTitleOrDomain:e,title:t,description:i,pinId:r,graphqlRef:p,pinCreditPrefix:f,pinDomain:S,boardId:P,boardUrl:b,boardName:T,boardPrivacy:A,pinnerFullName:I,pinnerImageSmallUrl:x,pinnerImageLargeUrl:C}){const O=(0,_.ZP)(),R=(0,l.ml)(),w=(0,l.Wb)(),{isAuthenticated:k,isBot:D}=(0,g.B)(),N=(0,o.Z)(),L=(0,y.useFragment)(E,p),M=!k&&!D&&R,j=e||null,[U,F]=(0,n.useState)(!1),V=(0,v.si)(),B=(0,v.Re)(),G=(t||"").length>B,H=i.length>V,[z,Z]=(0,n.useState)(!H&&!G);return(0,c.jsxs)(d.xu,{children:[(0,c.jsxs)(d.xu,{children:[(0,c.jsxs)(d.xu,{as:"figcaption",paddingX:w?11:0,children:[(0,c.jsx)(d.X6,{color:"default",size:"300",accessibilityLevel:3,children:U||D?t:(0,a.Z)(t||"",B)}),!!t&&(0,c.jsx)(d.xu,{height:i?8:0}),i&&(H||G)?(0,c.jsxs)(d.iP,{onTap:()=>{U||k||((0,s.NC)("click_open_description_in_sheet"),N({action:"click",item:"more-description-in-sheet"})),Z(!z),F(!U)},fullWidth:!1,children:[(0,c.jsx)(d.xv,{color:"default",size:"200",inline:!0,children:U||D?i:(0,a.Z)(i,V)}),(0,c.jsx)(d.xu,{display:"inlineBlock",paddingX:1,children:(0,c.jsx)(d.xv,{weight:"bold",size:"200",inline:!0,children:U||D?O.bt("折叠", "Less", "Toggle less description button", undefined, true):O.bt("展开", "More", "Toggle more description button", undefined, true)})})]}):(0,c.jsx)(d.xv,{color:"default",size:"200",inline:!0,children:i})]}),M&&(z||D)&&!!S&&(0,c.jsx)(d.xu,{marginTop:2,children:(0,c.jsx)(d.kC,{alignItems:"center",direction:"row",width:"100%",children:(0,m.nk)(O.bt("{{ pinCreditPrefix }}自 {{ pinCredit }}", "{{ pinCreditPrefix }} {{ pinCredit }}", "tells the user where the pin is from in the form of Saved from website", undefined, true),{pinCreditPrefix:(0,c.jsx)(d.xu,{display:"inlineBlock",children:(0,c.jsx)(d.xv,{inline:!0,size:"200",children:f})},"pinCreditsPrefix"),pinCredit:(0,c.jsx)(d.xu,{display:"inlineBlock",marginStart:1,maxWidth:"60vw","data-test-id":"pin-domain-link",children:(0,c.jsx)(d.iP,{onTap:({event:e})=>{e.preventDefault(),e.stopPropagation(),N({action:"click",item:"pin-domain-link"}),(0,s.My)("mweb_pin_page.pin_link.clickthrouh"),k||(0,s.NC)("click_pin_closeup_link_clickthrough"),j&&j()},tapStyle:"compress",children:(0,c.jsx)(d.xv,{size:"200",lineClamp:1,children:(0,c.jsx)("span",{style:{textDecoration:"underline"},children:S})},"pinLinkDomain")})},"pinCredits")})})})]}),!!P&&(z||D)&&(0,c.jsx)(d.xu,{marginTop:4,children:(0,c.jsx)(u,{boardUrl:b,boardName:T,boardPrivacy:A,pinnerFullName:I,pinnerImageSmallUrl:x,pinnerImageLargeUrl:C})}),(0,c.jsx)(d.xu,{marginTop:4,children:(0,c.jsx)(h.Z,{pinId:r,mode:"expanded",graphqlRef:L})})]})}},999023:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),a=i(112690),r=i(867820);const o=({viewType:e,viewParameter:t,viewData:i,auxData:n,objectIdStr:a,component:o,clientTrackingParams:s,element:l},d)=>{const c=(u={event_type:13,view_type:e,view_parameter:t,view_data:i,aux_data:n,object_id_str:a,component:o,clientTrackingParams:s,element:l},Object.keys(u).reduce(((e,t)=>(void 0===u[t]&&delete e[t],e)),{...u}));var u;-1===Object.keys(c).indexOf("view_type")&&(0,r.My)("mweb.logging.null_view_type"),d(c)};function s(e){const{auxData:t,clientTrackingParams:i,children:r,component:s,element:l,objectIdStr:d,viewData:c,viewParameter:u,viewType:p}=e,_=(0,a.Z)(),h=JSON.stringify(t),m=JSON.stringify(c);return(0,n.useEffect)((()=>{o(e,_)}),[_,h,i,s,l,d,m,u,p]),n.Children.only(r)}},598615:(e,t,i)=>{i.d(t,{Z:()=>h});var n=i(667294),a=i(329900),r=i(172071),o=i(938917),s=i(53987),l=i(407043),d=i(385740),c=i(52022),u=i(867820),p=i(276775),_=i(785893);function h({children:e,componentType:t,within:i}){const h=(0,p.useLocation)(),{flushContextEvents:m,logContextEvent:g}=(0,l.v)(),{viewType:v,viewParameter:y}=(0,d.SU)(),E=(0,c.Z)();(0,n.useEffect)((()=>{E({action:"view",item:"download-button",within:i})}),[h,i,E]);const f=(0,n.useRef)(!1);(0,n.useEffect)((()=>{v&&202!==v?(g({component:t||13106,element:10308,event_type:9976,view_type:v,view_parameter:y,aux_data:{app_upsell_type:i,app_upsell_is_dupe:f.current}}),f.current=!0):r.Z.increment("webapp.track_app_upsell_viewed_invalid_parameters",1,{component:t,view_type:v,view_parameter:y,app_upsell_type:i,app_upsell_is_dupe:f.current})}),[t,g,y,v,i]);const S=(0,o.Z)();return(0,n.useEffect)((()=>{S||(0,u.My)(`mweb.app_upsell.forbidden_upsell.${i}`)}),[S,i]),(0,_.jsx)(a.Z,{children:n=>e({handleOpenApp:e=>{var a;(E({action:"click",item:"download-button",within:i}),(0,u.NC)("press_open_app",!0),g({component:t||13106,element:10308,event_type:102,view_type:v||202,view_parameter:y,aux_data:{app_upsell_type:i}}),g({component:t||13106,element:10308,event_type:9977,view_type:v||202,view_parameter:y,aux_data:{app_upsell_type:i}}),m(!0),n)&&(g({component:t||13106,element:10308,event_type:1701,view_type:v||202,view_parameter:y,aux_data:{app_upsell_type:i}}),n(null!==(a=null==e?void 0:e.deepLinkUri)&&void 0!==a?a:(e=>"/"===e.pathname?"/":(0,s.am)(e)?`board/${e.pathname.substr(1)}`:e.pathname.substr(1))(h)))}})})}},296679:(e,t,i)=>{i.d(t,{Z:()=>m});var n=i(598615),a=i(821997),r=i(430322),o=i(898781),s=i(287072),l=i(948376),d=i(50286),c=i(780280),u=i(664166),p=i(883119),_=i(785893);const h=({copyChangeGroup:e,deepLinkUri:t,isOpen:i,onDismiss:u,onOpenInApp:h,to:m,within:g})=>{var v;const y=(0,o.ZP)(),E=(0,d.Wb)(),{userAgent:{platform:f,raw:S}}=(0,c.B)(),P=(0,l.Rp)({platform:f,userAgent:S}),b=(0,s.Z)({href:null!=m?m:""}),T=E?60:40,A={control:{valueProp:y.bt("最佳体验尽在 Pinterest 应用程序", "The best experience is on the app", "mweb.unauth.app_upsell.app_value_prop", undefined, true),description:y.bt("免费、无限访问点子", "Free, unlimited access to ideas", "mweb.app_upsell.description", undefined, true)},enabled_copy_change_1:{valueProp:y.bt("在应用程序中继续此操作", "Pick this up in the app", "mweb.unauth.app_upsell.app_value_prop1", undefined, true),description:y.bt("在 Pinterest 应用程序中继续以获享最佳体验", "Continue in the Pinterest app for the best experience", "mweb.app_upsell.description1", undefined, true)},enabled_copy_change_2:{valueProp:y.bt("在应用程序中继续此操作", "Pick this up in the app", "mweb.unauth.app_upsell.app_value_prop1", undefined, true),description:y.bt("你似乎已下载 Pinterest 应用程序", "Looks like you’ve already downloaded the Pinterest app", "mweb.app_upsell.description2", undefined, true)},enabled_copy_change_3:{valueProp:y.bt("在应用程序中继续此操作", "Pick this up in the app", "mweb.unauth.app_upsell.app_value_prop1", undefined, true),description:y.bt("你似乎已下载 Pinterest。使用应用程序，获享最佳体验。", "Looks like you’ve already downloaded Pinterest. Use the app for the best experience.", "mweb.app_upsell.description3", undefined, true)},enabled_copy_change_4:{valueProp:y.bt("Pinterest 在应用程序上的体验更棒", "Pinterest is better on the app", "mweb.unauth.app_upsell.app_value_prop2", undefined, true),description:y.bt("在应用程序中继续以获享完整体验", "Continue in the app for the full experience", "mweb.app_upsell.description4", undefined, true)},enabled_copy_change_5:{valueProp:y.bt("Pinterest 在应用程序上的体验更棒", "Pinterest is better on the app", "mweb.unauth.app_upsell.app_value_prop2", undefined, true),description:y.bt("在应用程序中继续以获享更多发现点子的方式", "Continue in the app for more ways to discover ideas", "mweb.app_upsell.description5", undefined, true)}},{valueProp:I,description:x}=null!==(v=A[e||"control"])&&void 0!==v?v:{},C=null!=e&&e.startsWith("enabled_copy_change")?y.bt("打开应用程序", "Open app", "mweb.app_upsell.app_upsell_button_text1", undefined, true):y.bt("获取应用", "Get the app", "mweb.app_upsell.app_upsell_button_text", undefined, true);return(0,_.jsx)(r.default,{accessibilityModalLabel:"",isOpen:i,mobileHideCloseIcon:!0,type:"app_upsell_v1",overrideZDepth:101,closeOnOutsideClick:!1,onDismiss:()=>{},children:(0,_.jsx)(n.Z,{componentType:14157,within:g,children:({handleOpenApp:e})=>(0,_.jsxs)(p.xu,{padding:3,"data-test-id":"appUpsell-iframe",children:[(0,_.jsx)(p.xu,{display:"inlineBlock",position:"absolute",children:(0,_.jsx)(p.xu,{"data-test-id":"appUpsell-continue",children:(0,_.jsx)(p.hU,{accessibilityLabel:y.bt("关闭图标背景", "close icon background", "accesibility label for close icon on a overlay", undefined, true),icon:"cancel",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{u({event:e}),b&&!e.defaultPrevented&&(t(),b({event:e}))},size:"lg",iconColor:"gray"})})}),(0,_.jsxs)(p.xu,{paddingX:2,paddingY:6,children:[(0,_.jsx)(p.xu,{paddingY:2,justifyContent:"center",display:"flex",children:P?(0,_.jsx)(a.Z,{size:T}):(0,_.jsx)(p.JO,{color:"brandPrimary",icon:"pinterest",accessibilityLabel:"Pinterest App",size:T})}),(0,_.jsxs)(p.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:[(0,_.jsx)(p.xu,{paddingY:2,children:(0,_.jsx)(p.X6,{align:"center",size:"400",children:P?y.bt("体验 Pinterest Lite", "Try Pinterest Lite", "mweb.app_upsell.lite_app_upsell_title", undefined, true):I})}),(0,_.jsx)(p.xv,{align:"center",size:"300",children:P?y.bt("以节省空间的方式发现新点子", "A space-saving way to discover new ideas", "mweb.app_upsell.lite_app_value_prop", undefined, true):x}),(0,_.jsx)(p.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{display:"grid"}},justifyContent:"center",marginTop:8,children:(0,_.jsx)(p.zx,{fullWidth:!0,size:"lg",color:"red",onClick:()=>{e({deepLinkUri:t}),h()},text:C})})]})]})]})})})};function m({clientTrackingParams:e,copyChangeGroup:t,deepLinkUri:i,isOpen:n,onDismiss:a,onOpenInApp:r,shouldTrackDismiss:o,to:s,viewParameter:l,viewType:d,within:c}){return(0,_.jsx)(u.Z,{clientTrackingParams:e,viewType:d,viewParameter:l,children:(0,_.jsx)(h,{copyChangeGroup:t,deepLinkUri:i,isOpen:n,onDismiss:e=>{o&&(0,u.y)(),a(e)},onOpenInApp:()=>{(0,u.y)(),r()},to:s,within:c})})}},664166:(e,t,i)=>{i.d(t,{Z:()=>u,y:()=>c});var n=i(667294),a=i(807609),r=i(999023),o=i(30287),s=i(339363),l=i(844974),d=i(785893);const c=()=>{(0,l.Nh)("appUpsell",Date.now()),(0,l.qn)("firstUpsellTime")||(0,l.Nh)("firstUpsellTime",Date.now()),(0,s.Nh)("showedAppUpsellCurrentSession",!0)};function u({children:e,clientTrackingParams:t,viewParameter:i,viewType:s}){return(0,a.Z)()||(0,o.FP)(window)?null:(0,d.jsx)(r.Z,{viewType:s,viewParameter:i,component:13106,clientTrackingParams:t,children:(0,d.jsx)(n.Fragment,{children:e})})}},938917:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(702664);const a=()=>(0,n.useSelector)((({session:{canUseNativeApp:e}})=>e))},538232:(e,t,i)=>{i.d(t,{R:()=>r,q:()=>a});var n=i(425288);const{Provider:a,useHook:r}=(0,n.Z)("CloseupPageContext")},350948:(e,t,i)=>{i.d(t,{IS:()=>f,Ys:()=>E,ZP:()=>C,j$:()=>b});var n,a=i(667294),r=i(485710),o=i(134185),s=i(319530),l=i(50286),d=i(349700),c=i(578661),u=i(923297),p=i(773285),_=i(350118),h=i(898781),m=i(883119),g=i(167912),v=i(785893);const y=void 0!==n?n:n=i(906587),E=({m:e,h:t,rm:i,rh:n},a,r=!1)=>e&&(!t||n<=0)?r?(0,d.nk)(a.bt("{{mins}} 分钟", "{{mins}}min", "closeup.makeRecipeTimeText.minutes", undefined, true),{mins:i.toString()}):(0,d.nk)(a.nbt(["{{mins}} 分钟"], i, "number showing the minutes to complete a recipe", true),{mins:i.toString()}):t?r?(0,d.nk)(a.bt("{{hrs}} 小时", "{{hrs}}hr", "closeup.makeRecipeTimeText.hours", undefined, true),{hrs:n.toString()}):(0,d.nk)(a.nbt(["{{hrs}} 小时"], n, "number showing the hours to complete a recipe", true),{hrs:n.toString()}):null,f=({m:e,h:t,rm:i,rh:n,i18n:a})=>e&&(!t||n<=0)?(0,d.nk)(a.bt("{{mins}}m", "{{mins}}m", "number showing minutes to complete a recipe", undefined, true),{mins:i.toString()}):t?(0,d.nk)(a.bt("{{hrs}}h {{mins}}m", "{{hrs}}h {{mins}}m", "number showing hours to complete a recipe", undefined, true),{hrs:t.toString(),mins:e.toString()}):null,S=(e,t)=>{const i=e&&e.length>0&&e.join(", "),n=t&&t.summary;return i&&n?`${i} • ${n}`:i||n},P=e=>e?e.reduce(((e,t)=>{var i,n;return e+(null!==(i=null===(n=t.ingredients)||void 0===n?void 0:n.length)&&void 0!==i?i:0)}),0):0,b=({cookTimesCookM:e,cookTimesCookH:t,cookTimesTotalM:i,cookTimesTotalH:n,hasCookTimesTotal:a,i18n:r,isShortened:o})=>{let s;return s=a?(0,u.X)({m:i||0,h:n||0}):(0,u.X)({m:e||0,h:t||0}),E(s,r,o)};function T({category:e,ingredients:t,textSize:i="300"}){return(0,v.jsxs)(m.xu,{marginBottom:4,children:[e&&(0,v.jsx)(m.xu,{children:(0,v.jsx)(m.xv,{weight:"bold",size:i,children:e})}),(null!=t?t:[]).map((e=>{var t,n;return(0,v.jsx)(m.xu,{"data-test-id":"recipe-ingredient",itemProp:"recipeIngredient",marginTop:1,children:(0,v.jsxs)(m.xv,{size:i,children:[e.amt||null," ",e.name]})},`${null!==(t=e.name)&&void 0!==t?t:""}-${null!==(n=e.name)&&void 0!==n?n:""}`)}))]})}const A=({categorizedIngredients:e,cookTimes:t,image:i,ingredientCount:n,ingredientsDescription:d,name:u,pinLink:_})=>{var g,y,E,f;const S=(0,h.ZP)(),{checkExperiment:P}=(0,p.F)(),A=(0,l.ZP)(),I=P("closeup_dweb_unauth_onepin_title_and_description").anyEnabled;if(!b({cookTimesCookM:null==t||null===(g=t.cook)||void 0===g?void 0:g.m,cookTimesCookH:null==t||null===(y=t.cook)||void 0===y?void 0:y.h,cookTimesTotalM:null==t||null===(E=t.total)||void 0===E?void 0:E.m,cookTimesTotalH:null==t||null===(f=t.total)||void 0===f?void 0:f.h,hasCookTimesTotal:!(!t||!t.total),i18n:S,isShortened:I})&&!n&&!d)return null;const x="desktop"===A,C=S.bt("材料", "Ingredients", "Closeup.PinRecipe.ingredientsLabel", undefined, true);return(0,v.jsxs)(m.xu,{"data-test-id":"pin-recipe-container",display:"flex",direction:"column",marginTop:8,children:[(0,v.jsxs)(m.xu,{direction:"column",display:"flex",marginTop:4,marginBottom:4,marginEnd:6,overflow:"hidden",children:[(!I||!x)&&(0,v.jsx)(m.xu,{marginBottom:4,children:(0,v.jsx)(m.xv,{weight:"bold",align:"desktop"===A?"start":"center",children:C})}),(0,v.jsxs)(o.Z,{itemScope:!0,itemType:c.G,children:[(0,v.jsx)("meta",{content:u,itemProp:"name"}),i&&(0,v.jsx)("meta",{content:i,itemProp:"image"}),I&&x&&(0,v.jsx)(m.xu,{"data-test-id":"one-pin-layout",children:Array.isArray(e)&&e.length>0&&(0,v.jsx)(r.Z,{heading:C,children:(0,v.jsx)(s.Z,{children:e.map((({category:e,ingredients:t},i)=>{const n=`ingredient-${i}`;return(0,v.jsx)(a.Fragment,{children:(0,v.jsx)(m.xu,{marginBottom:4,children:(0,v.jsx)(T,{category:e,ingredients:t,textSize:"300"})})},n)}))})})}),(!I||!x)&&Array.isArray(e)&&e.length>0&&(0,v.jsx)(m.xu,{column:12,"data-test-id":"single-column-ingredients",children:e.map((({category:e,ingredients:t},i)=>(0,v.jsx)(m.xu,{marginBottom:2,children:(0,v.jsx)(T,{category:e,ingredients:t,textSize:"300"})},i)))})]})]}),(!I||!x)&&(0,v.jsx)(m.xu,{marginBottom:4,display:"flex",justifyContent:"phone"===A?"center":void 0,children:_&&(0,v.jsx)(m.zx,{text:S.bt("开始制作", "Make it", "closeup.recipe.make_it_button", undefined, true),role:"link",href:_,target:"blank"})})]})},I=({graphqlRef:e,checkExperiment:t})=>{const i=(0,g.useFragment)(y,e),{imageSpec_474x:n,link:a,richMetadata:r}=i,o=null==r?void 0:r.recipe,s=null==o?void 0:o.categorizedIngredients,l=P(s),d=(null==o?void 0:o.categorizedIngredients)&&S(o.diets,o.servingsSummary);return(0,v.jsx)(A,{categorizedIngredients:s,cookTimes:null==o?void 0:o.cookTimes,image:null==n?void 0:n.url,ingredientCount:l,ingredientsDescription:d,name:null==o?void 0:o.name,pinLink:a,checkExperiment:t})},x=({pinId:e,checkExperiment:t})=>{var i,n;const a=(0,_.S6)()(e),r=(null==a||null===(i=a.rich_metadata)||void 0===i?void 0:i.recipe)||{},{cook_times:o,name:s,categorized_ingredients:l,diets:d,servings_summary:c}=r,u=P(l),p=l&&S(d,c);return(0,v.jsx)(A,{categorizedIngredients:l,cookTimes:o,image:(null===(n=((null==a?void 0:a.images)||{})["474x"])||void 0===n?void 0:n.url)||"",ingredientCount:u,ingredientsDescription:p,name:s,pinLink:(null==a?void 0:a.link)||"",checkExperiment:t})};function C({graphqlRef:e,pinId:t}){const{checkExperiment:i}=(0,p.F)();return e?(0,v.jsx)(I,{graphqlRef:e,checkExperiment:i}):(0,v.jsx)(x,{pinId:t,checkExperiment:i})}},298024:(e,t,i)=>{i.d(t,{Ph:()=>a,Re:()=>o,si:()=>r});var n=i(50286);const a=e=>e&&e.promoter&&!e.is_downstream_promotion?e.promoter:null,r=()=>"phone"!==(0,n.ZP)()?180:130,o=()=>"phone"!==(0,n.ZP)()?180:80},759177:(e,t,i)=>{i.d(t,{Z:()=>o});var n,a=i(167912);const r=void 0!==n?n:n=i(96795);const o=e=>function(e){var t,i,n,a,r,o,s,l,d,c,u,p,_,h,m,g,v,y,E,f,S,P,b,T,A,I,x;return{"60x60":{height:(null==e||null===(t=e.imageSpec_60x60)||void 0===t?void 0:t.height)||void 0,url:(null==e||null===(i=e.imageSpec_60x60)||void 0===i?void 0:i.url)||void 0,width:(null==e||null===(n=e.imageSpec_60x60)||void 0===n?void 0:n.width)||void 0},"136x136":{height:(null==e||null===(a=e.imageSpec_136x136)||void 0===a?void 0:a.height)||void 0,url:(null==e||null===(r=e.imageSpec_136x136)||void 0===r?void 0:r.url)||void 0,width:(null==e||null===(o=e.imageSpec_136x136)||void 0===o?void 0:o.width)||void 0},"170x":{height:(null==e||null===(s=e.imageSpec_170x)||void 0===s?void 0:s.height)||void 0,url:(null==e||null===(l=e.imageSpec_170x)||void 0===l?void 0:l.url)||void 0,width:(null==e||null===(d=e.imageSpec_170x)||void 0===d?void 0:d.width)||void 0},"236x":{height:(null==e||null===(c=e.imageSpec_236x)||void 0===c?void 0:c.height)||void 0,url:(null==e||null===(u=e.imageSpec_236x)||void 0===u?void 0:u.url)||void 0,width:(null==e||null===(p=e.imageSpec_236x)||void 0===p?void 0:p.width)||void 0},"474x":{height:(null==e||null===(_=e.imageSpec_474x)||void 0===_?void 0:_.height)||void 0,url:(null==e||null===(h=e.imageSpec_474x)||void 0===h?void 0:h.url)||void 0,width:(null==e||null===(m=e.imageSpec_474x)||void 0===m?void 0:m.width)||void 0},"564x":{height:(null==e||null===(g=e.imageSpec_564x)||void 0===g?void 0:g.height)||void 0,url:(null==e||null===(v=e.imageSpec_564x)||void 0===v?void 0:v.url)||void 0,width:(null==e||null===(y=e.imageSpec_564x)||void 0===y?void 0:y.width)||void 0},"736x":{height:(null==e||null===(E=e.imageSpec_736x)||void 0===E?void 0:E.height)||void 0,url:(null==e||null===(f=e.imageSpec_736x)||void 0===f?void 0:f.url)||void 0,width:(null==e||null===(S=e.imageSpec_736x)||void 0===S?void 0:S.width)||void 0},"600x315":{height:(null==e||null===(P=e.imageSpec_600x315)||void 0===P?void 0:P.height)||void 0,url:(null==e||null===(b=e.imageSpec_600x315)||void 0===b?void 0:b.url)||void 0,width:(null==e||null===(T=e.imageSpec_600x315)||void 0===T?void 0:T.width)||void 0},orig:{height:(null==e||null===(A=e.imageSpec_orig)||void 0===A?void 0:A.height)||void 0,url:(null==e||null===(I=e.imageSpec_orig)||void 0===I?void 0:I.url)||void 0,width:(null==e||null===(x=e.imageSpec_orig)||void 0===x?void 0:x.width)||void 0}}}((0,a.useFragment)(r,e))},821997:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(785893);function a({size:e,noCircle:t}){return(0,n.jsxs)("svg",{height:e,style:{display:"block"},viewBox:t?"3 3 70 70":"-3 -3 82 82",width:e,children:[t?null:(0,n.jsx)("circle",{cx:"38",cy:"38",fill:"white",r:"40"}),(0,n.jsx)("path",{d:"M27.5 71c3.3 1 6.7 1.6 10.3 1.6C57 72.6 72.6 57 72.6 37.8 72.6 18.6 57 3 37.8 3 18.6 3 3 18.6 3 37.8c0 14.8 9.3 27.5 22.4 32.5-.3-2.7-.6-7.2 0-10.3l4-17.2s-1-2-1-5.2c0-4.8 3-8.4 6.4-8.4 3 0 4.4 2.2 4.4 5 0 3-2 7.3-3 11.4C35.6 49 38 52 41.5 52c6.2 0 11-6.6 11-16 0-8.3-6-14-14.6-14-9.8 0-15.6 7.3-15.6 15 0 3 1 6 2.6 8 .3.2.3.5.2 1l-1 3.8c0 .6-.4.8-1 .4-4.4-2-7-8.3-7-13.4 0-11 7.8-21 22.8-21 12 0 21.3 8.6 21.3 20 0 12-7.4 21.6-18 21.6-3.4 0-6.7-1.8-7.8-4L32 61.7c-.8 3-3 7-4.5 9.4z",fill:"#fb7072",fillRule:"evenodd"})]})}},886076:(e,t,i)=>{function n({isEligibleForPdp:e,isOosProduct:t,isStaleProduct:i,pinShoppingFlags:n}){if(n){const a=n,r={pin_is_shop_the_look:a.includes(2),pin_show_pdp:e||t||i,is_available:a.includes(1),is_product_pin_v2:a.includes(5),is_rich_product_pin:a.includes(6)};return JSON.stringify(r)}}i.d(t,{Z:()=>n})},830157:(e,t,i)=>{function n(e,t){return e||(t?`${t}~0`:"~0")}i.d(t,{Z:()=>n})},948376:(e,t,i)=>{i.d(t,{G3:()=>c,Rp:()=>d,kp:()=>l});var n=i(339363),a=i(202139),r=i(844974);const o=14*a.F4;function s(e,t,i){return e-t>i}const l=e=>{const t=function(){const e=Date.now(),t=Number((0,r.qn)("appUpsell"));return{currentTime:e,firstUpsellTime:Number((0,r.qn)("firstUpsellTime")),lastUpsellTime:t,showedAppUpsellCurrentSession:Boolean((0,n.qn)("showedAppUpsellCurrentSession"))}}();return e?function(e,t,i){const{currentTime:n,firstUpsellTime:a,lastUpsellTime:l,showedAppUpsellCurrentSession:d}=e;return i=i||o,!a||function(e,t,i){return e<t+i}(n,a,t)?!d:!!s(n,l,i)&&((0,r.L_)("firstUpsellTime"),!0)}(t,a.F4):function(e,t){const{currentTime:i,lastUpsellTime:n}=e;return t=t||o,!n||s(i,n,t)}(t)},d=({platform:e,userAgent:t})=>{try{return"android"===e&&parseFloat((e=>{const t=(e=e.toLowerCase()).match(/android\s([0-9\.]*)/i);return t?t[1]:void 0})(t))<7}catch(i){return!1}},c=e=>(e.startsWith("zh")||e.startsWith("ar")?e:e.slice(0,2)).toUpperCase()},116485:(e,t,i)=>{i.d(t,{AA:()=>r,E9:()=>m,EU:()=>y,IO:()=>v,Jd:()=>_,KH:()=>c,QR:()=>d,Uw:()=>a,ZR:()=>E,dy:()=>l,eA:()=>p,fo:()=>h,k7:()=>o,rT:()=>g,tz:()=>u,u9:()=>f,zR:()=>s,zu:()=>n});const n="OPEN_UNAUTH",a="openUnauthType",r="_isAfterLogin",o="_lastVisitedPages",s="_lastVisitedPagesBeforeLogin",l="_lastVisitedBoardPages",d="_lastVisitedPagesBeforeNavPage",c="_lastVisitedSessionPages",u="_unauthVisitedPages",p=20,_="_unauthInviteCode",h="_unauthReferrerString",m="unauthTopicsFollowed",g=["US","CA","NZ","AU"],v=new Set(["GB","IE"]),y=new Set(["AT","BE","CH","DE","DK","ES","FR","IT","NL","NO","PT","SE"]),E=new Set(["BR","MX","AR","CL","CO","PE"]),f="ad_img"},772486:(e,t,i)=>{i.d(t,{XK:()=>s,jC:()=>o,yd:()=>l});var n=i(745760);let a=null,r=null;const o=((e,t)=>{let i=null;return o=>{var s;if(o&&!i)return i={...o,event_type:e,time:(0,n.h1)()},null===(s=r)||void 0===s||s.logContextEvent(i),a&&i&&a.storeClickthroughProperties(i),e;if(!o&&i){var l;const e={...i,event_type:t,duration_ns:(0,n.h1)()-i.time};return null===(l=r)||void 0===l||l.logContextEvent(e),i=null,t}return null}})(12,4100),s=e=>{a=e},l=e=>{r=e}},529195:(e,t,i)=>{i.d(t,{CC:()=>S,Cb:()=>y,Ff:()=>R,H$:()=>b,Mt:()=>f,OJ:()=>v,Yi:()=>I,Ys:()=>g,Yy:()=>C,Z4:()=>m,ZN:()=>p,dc:()=>A,dp:()=>P,i$:()=>h,kw:()=>E,p9:()=>T,t_:()=>_});var n=i(231486),a=i(214494),r=i(826067),o=i(332215),s=i(226198),l=i(867820),d=i(339363),c=i(844974),u=i(116485);const p=["utm_pai","utm_source","invite_code"],_=()=>(0,c.qn)(u.tz,""),h=()=>{const e=_();let t;try{t=JSON.parse(e)}catch(i){t=[]}return t},m=(e,t)=>{const i=h(),n=i.length,a=n?i[0].path:"";if(n<u.eA&&(!n||e!==a)){const n={path:e,pageType:t,ts:Date.now()};(0,c.Nh)(u.tz,JSON.stringify([n].concat(i)))}},g=e=>{(0,c.Nh)(u.Jd,e)},v=()=>(0,c.qn)(u.fo,""),y=e=>{(0,c.Nh)(u.fo,e)},E=()=>{_()&&(0,c.L_)(u.tz),(0,c.qn)(u.Jd,"")&&(0,c.L_)(u.Jd),v()&&(0,c.L_)(u.fo)},f=(e,t,i,n,a,r,o=u.k7)=>{const s=(0,c.qn)(o)?JSON.parse((0,c.qn)(o)):[];if(!s[0]||s[0].path!==e){const l=[{path:e,ts:Date.now(),pin_id:i||0,first_pin_image_signature:t||"",first_pin_id:i||"",image_info:n||"",pin_description:a||"",is_shared:!!r,pin_invite_code:r}];(0,c.Nh)(o,JSON.stringify(l.concat(s)))}},S=({path:e,image:t,dominant_color:i,pin_description:n,pin_id:a})=>{const r=(()=>{const e=(0,d.qn)(u.KH);if(!e)return[];let t;try{t=JSON.parse(e)}catch(i){t=[]}return t})();if(!r[0]||r[0].path!==e){const o=[{path:e,image:t,pin_description:n||"",dominant_color:i||"",pin_id:a||""}];(0,d.Nh)(u.KH,JSON.stringify(o.concat(r)))}};function P(e,t,i,n,a,r){f(e,t,i,n,a,r,u.zR)}const b=(e,t,i,n,a)=>{f(e,t,i,n,null!=a?a:"","",u.dy)};function T(e,t,i,n,a){f(e,t,i,n,a,"",u.QR)}function A(){return h().filter((e=>"closeup"===e.pageType)).length}function I(){const e=a.Z.create("UnauthUserDataResource");return new Promise(((t,i)=>{e.callGet().then((e=>{const a=e.resource_response.data,r=!!n.U2(s.x3);return a?((0,o.Wn)(a.medium_image_url)&&(a.medium_image_url=""),(0,l.My)("mweb.unauth.personalized_login.fetch_user_info.info.user_info_found.logged_out_cookie_"+(r?"true":"false")),t(a)):((0,l.My)("mweb.unauth.personalized_login.fetch_user_info.info.no_user_info.logged_out_cookie_"+(r?"true":"false")),i({}))})).catch((e=>{if(e&&e.message){const t=e.message.replace(/\s/g,"_").toLowerCase();(0,l.My)(`mweb.unauth.personalized_login.fetch_user_info.error.${t}`)}else(0,l.My)("mweb.unauth.personalized_login.fetch_user_info.error.unknown");return i(e)}))}))}function x({i18n:e,location:t}){const i=t.pathname.startsWith("/signup"),n=t.pathname.startsWith("/login");if(!i&&!n)return{showPLPBanner:!1,pinForBanner:null};let a;try{a=JSON.parse((0,d.qn)(u.KH))}catch(r){a=[]}if(a&&a.length>0){const t=a[0];if(t)return t.bannerCopy=e.bt("更多类似的点子，敬请期待", "More ideas like this await", "page banner with pin image that was signed up from", undefined, true),{showPLPBanner:Boolean(t.image),pinForBanner:t}}return{showPLPBanner:!1,pinForBanner:null}}const C=e=>e.search&&e.search.startsWith("?next=")?e.search.split("?next=")[1]:null;function O({i18n:e,location:t}){var i;const n=(null===(i=t.state)||void 0===i?void 0:i.next)||C(t);if(n){const t=n.indexOf("?"),i=(0,r.mB)(n.substring(t));if(i.url&&i.media)return{showPLPBanner:!0,pinForBanner:{image:{url:(0,r.Jx)(i.media),height:1,width:1},pinDescription:i.description,bannerCopy:e.bt("收藏这个点子，发现更多类似灵感。", "Save this idea and discover more inspiration like it.", "page banner with pin image that was signed up from", undefined, true)}}}return{showPLPBanner:!1,pinForBanner:null}}function R({i18n:e,location:t}){return O({i18n:e,location:t}).showPLPBanner?O({i18n:e,location:t}):x({i18n:e,location:t}).showPLPBanner?x({i18n:e,location:t}):{showPLPBanner:!1,pinForBanner:null}}},305324:(e,t,i)=>{i.d(t,{M:()=>v,g:()=>y});var n,a=i(667294),r=i(590674),o=(i(883119),i(867820)),s=i(447409),l=i(50286),d=i(430235),c=i(874317),u=i(167912),p=i(785893);const _=void 0!==n?n:n=i(110767);const h=({queryReference:e,...t})=>{var i;const n=(0,u.usePreloadedQuery)(_,e),a=null==n||null===(i=n.v3GetPinQuery)||void 0===i?void 0:i.data;return a?(0,p.jsx)(d.Z,{...t,graphqlRef:a}):null},m=({queryReference:e,...t})=>{var i;const n=(0,u.usePreloadedQuery)(_,e),a=null==n||null===(i=n.v3GetPinQuery)||void 0===i?void 0:i.data;return a?(0,p.jsx)(c.ZP,{...t,graphqlRef:a}):null},g=(0,a.createContext)((()=>()=>{})),v=()=>(0,a.useContext)(g),y=({children:e,feedRef:t,viewType:i,viewParameter:n,useGraphql:v})=>{const[y,E]=(0,a.useState)(null),[f,S]=(0,a.useState)(null),[P,b]=(0,a.useState)(!1),[T,A]=(0,a.useState)(null),[I,x]=(0,a.useState)(!1),C=(0,l.HG)(),[O,R]=(0,u.useQueryLoader)(_);if(v&&!O&&T){R(function({pinId:e}){return{query:_,variables:{pinId:e}}}({pinId:T}).variables)}const w=()=>{document&&document.body&&document.body.style&&(document.body.style.overflow="unset")};(0,a.useEffect)((()=>w),[]);const k=(0,a.useCallback)((e=>i=>{const{pinId:n,deviceOptions:a}=e;if(i.stopPropagation(),i.preventDefault(),A(n),a.isDesktop)x(a.isMainPinImage),(0,o.My)("dweb.unauth.context_menu.open_menu"),E({xPosition:i.clientX,yPosition:i.clientY}),document&&document.body&&document.body.style&&(document.body.style.overflow="hidden");else{(0,o.My)("mweb.unauth.related_pin.context_menu.open");const e=i.changedTouches.item(0);if(t&&t.current){const i=t.current.getBoundingClientRect(),n=Math.min(e.pageX-i.left,i.width-c.nt),r=e.pageY-s.n;S({xPosition:n,yPosition:r,context:a.context})}}}),[t]),D=!!y;(0,a.useEffect)((()=>{const e=()=>{E(null),w(),(0,o.My)("dweb.unauth.context_menu.click_away")};return D&&document.addEventListener("click",e),()=>{D&&document.removeEventListener("click",e)}}),[D]);const N=y&&T?v?O&&(0,p.jsx)(h,{desktopContextMenuState:y,pinId:T,isMainPinImage:!!I,queryReference:O}):(0,p.jsx)(d.Z,{desktopContextMenuState:y,pinId:T,isMainPinImage:!!I,graphqlRef:null}):null,L=f&&T?v?O&&(0,p.jsx)(m,{mwebContextMenuState:f,pinId:T,openShareModal:b,setMwebContextMenuState:S,queryReference:O}):(0,p.jsx)(c.ZP,{graphqlRef:null,mwebContextMenuState:f,pinId:T,openShareModal:b,setMwebContextMenuState:S}):null;return(0,p.jsx)(g.Provider,{value:k,children:(0,p.jsxs)(a.Fragment,{children:[e,C&&N,!C&&L,!C&&P&&T&&(0,p.jsx)(r.default,{objectType:1,isOpen:P,onDismiss:()=>b(!1),objectId:T,hideContactsSuggestions:!0,element:12016,viewType:i,viewParameter:n,component:18})]})})}},364034:(e,t,i)=>{i.d(t,{Z:()=>l});var n=i(667294),a=i(807609),r=i(844974);const o=e=>{const t=(0,r.qn)(e);if(!t)return null;try{return JSON.parse(t)}catch(i){return null}};var s=i(773285);const l=()=>{const[e,t]=function(e){const t=(0,a.Z)(),[i,s]=(0,n.useState)(t?null:o(e));return(0,n.useEffect)((()=>{s(o(e))}),[e]),[i,(0,n.useCallback)((t=>{s(t),null===t?(0,r.L_)(e):(0,r.Nh)(e,JSON.stringify(t))}),[e])]}("unauthSavedPins"),i=null!==(d=null==(l=e)?void 0:l.pins)&&void 0!==d?d:[];var l,d;const c=e=>t((e=>e.length?{pins:e}:null)(e)),{checkExperiment:u}=(0,s.F)(),p=()=>{const{anyEnabled:e,group:t}=u("mweb_unauth_save_shopping_cart_v0");let n=0;if(e){const e=t.split("_")[1];n=e?parseInt(e,10):0}return i.length<n};return{pins:i,save:e=>{p()&&c(i.filter((({id:t})=>t!==e.id)).concat([e]))},unsave:e=>c(i.filter((({id:t})=>t!==e))),isSaved:e=>i.some((({id:t})=>t===e)),clear:()=>c([]),canSaveMore:p}}},332215:(e,t,i)=>{function n(e){return Boolean(null==e?void 0:e.is_matured_new_user)}i.d(t,{IR:()=>o,V0:()=>n,Wn:()=>r,xT:()=>a});const a=e=>!!e&&2===e.login_state,r=e=>!(!e||!e.match(/\/static\/images\/user\/default_\d+\.png$/));function o(e){return!e||void 0===e.third_party_marketing_tracking_enabled||null===e.third_party_marketing_tracking_enabled||e.third_party_marketing_tracking_enabled}},987318:(e,t,i)=>{i.d(t,{H:()=>r,o:()=>a});var n=i(425288);const{Provider:a,useHook:r}=(0,n.Z)("LimitedLogin")},945698:(e,t,i)=>{i.d(t,{N4:()=>r,Wh:()=>n,hr:()=>a});const n=e=>e.bt("登录并继续", "Log in to continue", "limitedLogin.modalHeader.default", undefined, true),a=e=>e.bt("距离成功不远了！登录以访问 Pinterest", "You're almost there! Log in to access all of Pinterest", "loginModal.limitedLogin.subheader", undefined, true),r=({i18n:e,toFollow:t})=>t?e.bt("登录并关注", "Log in to follow", "limitedLogin.modalHeader.follow", undefined, true):e.bt("登录并取消关注", "Log in to unfollow", "limitedLogin.modalHeader.unfollow", undefined, true)},881802:(e,t,i)=>{i.d(t,{Bb:()=>g,Bx:()=>l,F4:()=>s,OG:()=>r,Qj:()=>d,_6:()=>m,gv:()=>o,hg:()=>c,is:()=>_,jP:()=>h,lt:()=>a,oM:()=>u,wI:()=>p});var n=i(826067);const a=e=>e.bt("登录并继续", "Log in to continue", "limitedLogin.modalHeader.default", undefined, true),r=e=>e.pathname,o=({firstName:e,i18n:t})=>e?(t.bt("{{ name }} 邀你加入他们的图板", "{{ name }} invited you to join their board", "limitedLogin.modalHeader.groupBoardCollab", undefined, true)).replace("{{ name }}",e):t.bt("朋友邀你加入他们的图板", "Your friends invited you to join their board", "limitedLogin.modalHeader.groupBoardCollab", undefined, true),s=e=>{const t=(0,n.mB)(e.search).board_url;if(t){const e=(0,n.Jx)(t),i=(0,n.XP)({accept_invite:!0,seamless:!0});return e.includes("?")?`${e}&${i}`:`${e}?${i}`}return e.pathname},l=e=>e.bt("登录并收藏此 Pin 图", "Log in to save this Pin", "limitedLogin.modalHeader.repin", undefined, true),d=e=>{const t=e.pathname;if(t.startsWith("/pin/")){const e=t.split("/");if(e.length>2)return`/${e[1]}/${e[2]}/repin/`}return t},c=e=>e.bt("登录并发送此 Pin 图", "Log in to send this Pin", "limitedLogin.modalHeader.send", undefined, true),u=e=>e.bt("登录并编辑此 Pin 图", "Log in to edit this Pin", "limitedLogin.modalHeader.editPin", undefined, true),p=e=>{const t=e.pathname;if(t.startsWith("/pin/")){const e=t.split("/");if(e.length>2)return`/${e[1]}/${e[2]}/edit/`}return t},_=e=>e.bt("登录并创建 Pin 图或图板", "Log in to create a Pin or board", "limitedLogin.modalHeader.create", undefined, true),h=e=>e.bt("登录以隐藏此 Pin 图", "Log in to hide this Pin", "limitedLogin.modalHeader.hidePin", undefined, true),m=e=>e.bt("登录即可分享个人资料", "Log in to share the profile", "limitedLogin.modalHeader.shareProfile", undefined, true),g=e=>e.bt("登录以创建图板", "Log in to create a board", "limitedLogin.modalHeader.createBoard", undefined, true)},56390:(e,t,i)=>{i.d(t,{C:()=>l,P:()=>s});var n=i(172071),a=i(53987),r=i(339363);const o="msmrsfda",s=()=>!!(0,r.qn)(o),l=e=>{(0,a.LM)(e)&&!s()&&((0,r.Nh)(o,"1"),n.Z.incrementNow("mobile_signup_modal.rules.suppress_for_discover_article",1))}},461355:(e,t,i)=>{i.d(t,{Z:()=>m,z:()=>c});var n=i(667294),a=i(702664),r=i(391254),o=i(350118),s=i(698330),l=i(883119),d=i(785893);const c=2500,u={__style:{right:"-105px"}},p={__style:{animationName:"SavePin_AnimateIn, SavePin_CircleAnimateOut",animationDuration:"0.3s, 0.25s",animationDelay:"0.5s, 1.3s",animationFillMode:"forwards",animatitionTimingFunction:"ease-out",backgroundColor:"rgba(255, 255, 255, 0.6)"}},_={__style:{animationName:"SavePin_AnimateIn, SavePin_AnimateOut",animationDuration:"0.3s, 0.35s",animationDelay:"0.5s, 1.55s",animationFillMode:"forwards",animatitionTimingFunction:"ease-out",border:"4px solid white"}},h={__style:{animationName:"SavePin_NavButtonAnimation",animationDuration:"0.8s",animationDelay:"1.65s",animationFillMode:"forwards",animatitionTimingFunction:"ease-out"}},m=(0,n.memo)((({children:e})=>{var t;const i=null===(t=(0,s.Tt)())||void 0===t?void 0:t.last_repin_id,n=(0,o.S6)(),c=i?n(i):null,m=(0,a.useSelector)((({session:e})=>e.isShowingRepinAnimation));if(!c||!m)return e;const{images:g}=c,{height:v,width:y,url:E}=(null==g?void 0:g["136x136"])||(null==g?void 0:g["236x"])||{};return(0,d.jsxs)(l.kC,{alignItems:"stretch",flex:"grow",justifyContent:"center",children:[(0,d.jsx)(r.Z,{unsafeCSS:"\n@keyframes SavePin_AnimateIn {\n  from {\n    transform: scale(0.0);\n    opacity: 0;\n  }\n  to {\n    opacity: 1;\n    transform: scale(1.0);\n  }\n}\n@keyframes SavePin_CircleAnimateOut {\n  from {\n    transform: scale(1.0);\n    opacity: 1;\n  }\n  to {\n    transform: scale(0.8);\n    opacity: 0;\n  }\n}\n@keyframes SavePin_AnimateOut {\n  from {\n    transform: translateY(0);\n    opacity: 1;\n  }\n  to {\n    transform: translateY(100px);\n    width: 0px;\n    height: 0px;\n    opacity: 0;\n  }\n}\n@keyframes SavePin_NavButtonAnimation {\n  0% {\n    transform: scale(1.0);\n  }\n  50% {\n    transform: scale(1.3);\n  }\n  100% {\n    transform: scale(1.0);\n  }\n}\n"}),(0,d.jsxs)(l.xu,{position:"relative",children:[(0,d.jsxs)(l.xu,{width:250,height:250,position:"absolute",right:!0,bottom:!0,dangerouslySetInlineStyle:u,children:[(0,d.jsx)(l.xu,{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",opacity:0,rounding:"circle",dangerouslySetInlineStyle:p}),(0,d.jsx)(l.xu,{width:100,height:100,position:"absolute",margin:"auto",left:!0,right:!0,top:!0,bottom:!0,opacity:0,rounding:3,dangerouslySetInlineStyle:_,children:(0,d.jsx)(l.zd,{rounding:2,height:"100%",width:"100%",wash:!0,children:(0,d.jsx)(l.Ee,{alt:"pin-image",fit:"cover",naturalWidth:null!=y?y:1,naturalHeight:null!=v?v:1,src:null!=E?E:""})})})]}),(0,d.jsx)(l.xu,{dangerouslySetInlineStyle:h,children:e})]})]})}))},327212:(e,t,i)=>{i.d(t,{Z:()=>R});var n=i(667294),a=i(376030),r=i(391254),o=i(883119),s=i(785893);function l({addedStyles:e,button:t,headerText:i,icon:a,iconOverride:l,minHeight:d,subHeaderText:c}){return(0,s.jsx)(o.xu,{display:"flex",justifyContent:"center",width:"100vw",paddingX:2,children:(0,s.jsxs)(o.xu,{alignContent:"center",alignItems:"center",bottom:!0,color:"default",dangerouslySetInlineStyle:{__style:{boxShadow:"0 3px 6px rgba(0,0,0,0.18)",transform:"translateY(-20px)",...e}},display:"flex",minHeight:d||75,padding:6,position:"relative",rounding:4,width:"100%",children:[(()=>{const e=l||(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(r.Z,{unsafeCSS:"\n@keyframes baseEduToastIconScale {\n  0% {\n    transform: scale(0)\n  }\n  30% {\n    transform: scale(1.2);\n  }\n  50% {\n    transform: scale(1);\n  }\n}\n"}),(0,s.jsx)(o.xu,{alignItems:"center",color:"education","data-test-id":"pin-save-toast",direction:"column",dangerouslySetInlineStyle:{__style:{animation:"baseEduToastIconScale 3s"}},display:"flex",height:60,justifyContent:"center",minHeight:60,minWidth:60,rounding:"circle",width:60,children:(0,s.jsx)(o.JO,{accessibilityLabel:a.accessibilityLabel,color:a.color,dangerouslySetSvgPath:a.dangerouslySetSvgPath,icon:a.icon,inline:a.inline,size:a.size})})]});return(0,s.jsx)(o.xu,{marginEnd:4,children:e})})(),(0,s.jsxs)(o.xu,{marginEnd:"auto",children:[(0,s.jsx)(o.xv,{color:"default",weight:"bold",children:i}),!!c&&(0,s.jsx)(o.xu,{paddingY:1,children:(0,s.jsx)(o.xv,{size:"300",color:"default",children:c})})]}),(0,s.jsx)(o.xu,{display:"flex",flex:"shrink",marginStart:2,children:t})]})})}var d=i(223815),c=i(829407),u=i(898781),p=i(759929);function _(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const h=(e,t)=>(e-t)/2,m=68,g=h(m,68),v=h(m,66),y=h(m,60),E="cubicBezier(0.25, 0.1, 0.25, 1)",f="encourageToastIconContainer",S="encourageToastIconRadiateBg",P="encourageToastIconRadiateRing",b={targets:`#${f}`,duration:300,scale:1.4,easing:E},T={targets:`#${f}`,duration:300,scale:1,easing:E,endDelay:1e3},A={targets:`#${f}`,duration:300,scale:.42,easing:E},I={targets:`#${S}`,duration:400,opacity:0,scale:1.6,easing:E},x={targets:`#${P}`,duration:650,opacity:0,scale:2,easing:E};function C({hiding:e,visible:t}){return t?e?{opacity:0,transform:"scale(1.0)",transition:"opacity transform .2s"}:{opacity:1,transition:"all 0.7s cubic-bezier(.19, 1.15, .48, 1)"}:Object.freeze({})}class O extends n.PureComponent{constructor(...e){super(...e),_(this,"delayTimer",null),_(this,"requestAnimationFrameId",null),_(this,"playAnimation",(()=>{this.requestAnimationFrameId=window.requestAnimationFrame((()=>{(0,a.Z)(I),(0,a.Z)(x),(0,a.Z)(b).finished.then((()=>{(0,a.Z)(T).finished.then((()=>{a.Z.set(`#${f}`,{transformOrigin:"top right"}),(0,a.Z)(A)}))}))}))})),_(this,"getHeaderText",(()=>{const{text:e}=this.props;return Array.isArray(e)?e[0]:e})),_(this,"getIconProps",(()=>({accessibilityLabel:this.props.i18n.bt("检查图标", "Check icon", "Label for check icon on toast shown after board create", undefined, true),color:"inverse",icon:"check",size:30}))),_(this,"getSubHeaderText",(()=>{const{text:e}=this.props;return e instanceof Array&&e.length>1&&e[1]?e[1]:""})),_(this,"renderAnimatedIcon",(()=>(0,s.jsxs)(o.xu,{height:m,position:"relative",width:m,children:[(0,s.jsx)(o.xu,{"data-test-id":"pin-save-toast",width:60,height:60,overflow:"hidden",position:"absolute",rounding:4,dangerouslySetInlineStyle:{__style:{left:`${y}px`,top:`${y}px`}},children:this.props.thumbnail}),(0,s.jsxs)(o.xu,{id:f,height:m,width:m,dangerouslySetInlineStyle:{__style:{transform:"scale(0)"}},position:"absolute",children:[(0,s.jsx)(o.xu,{color:"infoBase",id:S,width:68,height:68,position:"absolute",rounding:"circle",dangerouslySetInlineStyle:{__style:{left:`${g}px`,top:`${g}px`,transform:"scale(0)"}}}),(0,s.jsx)(o.xu,{id:P,width:66,height:66,position:"absolute",rounding:"circle",opacity:1,dangerouslySetInlineStyle:{__style:{borderWidth:"2px",borderStyle:"solid",borderColor:"#0074e8",left:`${v}px`,top:`${v}px`,transform:"scale(0)"}}}),(0,s.jsx)(o.xu,{alignItems:"center",color:"infoBase",direction:"column",display:"flex",height:m,justifyContent:"center",minHeight:m,minWidth:m,position:"absolute",rounding:"circle",width:m,children:(0,s.jsx)(o.JO,{accessibilityLabel:this.props.i18n.bt("检查图标", "Check icon", "Label for check icon on toast shown after board create", undefined, true),color:"inverse",icon:"check",size:30})})]})]})))}componentDidMount(){this.delayTimer=setTimeout(this.playAnimation,700)}componentWillUnmount(){this.delayTimer&&clearTimeout(this.delayTimer),this.requestAnimationFrameId&&window.cancelAnimationFrame(this.requestAnimationFrameId)}render(){const{isRepinToExistingBoard:e,button:t}=this.props,i=e;return(0,s.jsx)(l,{button:t,headerText:this.getHeaderText(),icon:this.getIconProps(),iconOverride:i?void 0:this.renderAnimatedIcon(),subHeaderText:this.getSubHeaderText()})}}function R(e){const{duration:t,onHide:i}=e,a=(0,u.ZP)(),[r,l]=(0,n.useState)(!1),[_,h]=(0,n.useState)(!1),m=(0,n.useRef)(),g=()=>{l(!0),m.current=setTimeout(i,200)},v=()=>{m.current&&clearTimeout(m.current)};(0,c.Z)((()=>(setTimeout((()=>h(!0)),100),m.current=setTimeout(g,t||p.w),v)));let y=(0,s.jsx)(O,{...e,i18n:a});return e.href&&(y=(0,s.jsx)(o.rU,{href:e.href,onClick:g,rounding:"pill",tapStyle:"none",children:y})),(0,s.jsx)(d.Z,{children:(0,s.jsx)(o.mh,{children:(0,s.jsx)(o.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{...C({hiding:r,visible:_})}},justifyContent:"center",position:"fixed",width:"100%",display:"flex",zIndex:p.k,children:y})})})}},56632:(e,t,i)=>{i.d(t,{L:()=>c,q:()=>u});var n=i(223019),a=i(258430),r=i(898781),o=i(883119),s=i(785893);const l=()=>{const e=(0,r.ZP)();return e.bt("温馨收藏！", "Sweet save!", "Header text on toast that appears after user creates their first board", undefined, true)},d=()=>{const e=(0,r.ZP)();return e.bt("所有图板都会出现在你的个人资料中", "All your boards live on your profile", "Subheader text on toast that appears after user creates their first board", undefined, true)},c=e=>({duration:5e3,thumbnail:(0,s.jsx)(o.xu,{"data-test-id":"pin-save-toast",width:48,height:48,children:(0,s.jsx)(a.Z,{boardId:e})})}),u=({boardId:e,isFBC:t,viewType:i})=>({duration:5e3,thumbnail:(0,s.jsx)(o.xu,{"data-test-id":"pin-save-toast",children:(0,s.jsx)(n.Z,{boardId:e,viewType:i,type:"thumbnail"})}),text:t?[(0,s.jsx)(l,{},"0"),(0,s.jsx)(d,{},"1")]:void 0})},662089:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(702664),a=i(461355),r=i(343341),o=i(639952);function s(){const e=(0,n.useDispatch)(),{showToast:t,showOneToast:i}=(0,r.F9)();return{showToast:t,showOneToast:i,showRepinConfirmation:(i,n)=>{n||e((0,o.WF)()),setTimeout((()=>{n||e((0,o.a5)()),t(i)}),a.z)}}}},177891:(e,t,i)=>{i.d(t,{a:()=>n,k:()=>a});const n=e=>({type:"ONE_TAP_SAVE",payload:e}),a=e=>({type:"ONE_TAP_UNSAVE",payload:e})},12918:(e,t,i)=>{i.d(t,{M:()=>l,i:()=>d});var n=i(483025),a=i(414327),r=i(782677),o=i(90326),s=i(214494);const l=(e,t,i,n)=>({type:"PIN_ADD",payload:{pinId:e,boardId:t,boardSectionId:i,pinnerId:n}}),d=e=>t=>{const{method:i,guid:d,image_base64:c,image_url:u}=e;return((e,t)=>new Promise((i=>{e?(0,o.eR)(e).then((e=>{i(e)})):i(t)})))(c,u).then((o=>{const c={...e,method:"button"!==i||d?i:"button_external",image_url:o,image_base64:void 0},u="PinResource";return s.Z.create(u,c).callCreate().then((e=>{const i=(0,r.Fv)(e.resource_response.data,n.Z.PinResource);t((0,a.XM)(u,c,e,i));const o=e.resource_response.data,{board:{id:s},pinner:{id:d},section:p}=o,_=p&&p.id;return t(l(o.id,s,_,d)),e}))}))}},139574:(e,t,i)=>{i.d(t,{L:()=>s,q:()=>l});var n=i(422946),a=i(956800),r=i(254176),o=i(214494);function s(e){return t=>{const{inSelectAll:i,selectedPinIds:s,orbacSubjectId:l,source:{boardId:d,sectionId:c}}=e,u=i?"BulkEditSelectAllResource":"BulkEditResource",p={board_id:d,section_id:c,pin_ids:s,orbac_subject_id:l};return t((0,r.xQ)(d)),t((0,a.EX)({feedId:c||d,feedType:c?n.DV.BOARD_SECTION_PINS:n.DV.BOARDFEED,inverseSelection:i,itemIds:s,itemType:"pin"})),o.Z.create(u,p).callDelete()}}const l=({pinId:e,boardId:t,boardSectionId:i,clientTrackingParams:n})=>(a,r)=>{const s=o.Z.create("PinResource",{id:e,client_tracking_params:n}).callDelete(),{session:{userId:l}}=r();return a(((e,t,i,n)=>({type:"PIN_DELETE",payload:{pinId:e,boardId:t,boardSectionId:i,userId:n}}))(e,t,i,l)),s}},850431:(e,t,i)=>{i.d(t,{w:()=>r});var n=i(349741),a=i(956800);const r=({pinId:e,boardId:t,i18n:i,logContextEvent:r,onSuccess:o,onUndo:s,originalPinId:l,showNewUserSavetoProfileAnimation:d,showRepinConfirmation:c,showToast:u,section:p,trackingParams:_,isOneTapSave:h,viewType:m,historyPush:g})=>(v,y)=>{var E,f,S,P,b;const{pins:T,session:A,feeds:I}=y(),x=T[e];t&&((null===(E=null!==(f=null==x?void 0:x.shopping_flags)&&void 0!==f?f:[])||void 0===E?void 0:E.length)>0||null!=x&&x.rich_summary&&(null===(S=null!==(P=null==x||null===(b=x.rich_summary)||void 0===b?void 0:b.products)&&void 0!==P?P:[])||void 0===S?void 0:S.length)>0)&&(I[`board-shop-saved-preview:${t}`]&&v((0,a.Qv)(`board-shop-saved-preview:${t}`,[x],{isPrepend:!0})),I[`board-shop-saved:${t}`]&&v((0,a.Qv)(`board-shop-saved:${t}`,[x],{isPrepend:!0})));return new n.Z({boardId:t,dispatch:v,i18n:i,isLegoSaveStyle:!0,isOneTapSave:h,onSuccess:o,onUndo:s,originalPinId:l,pin:x,resourceName:"RepinResource",section:p,showNewUserSavetoProfileAnimation:d,showRepinToasts:e=>c?c(e):u?u(e):void 0,trackingParams:_,userId:A.userId,viewType:m,historyPush:g}).processRepin(r)}},639952:(e,t,i)=>{i.d(t,{Cp:()=>l,FK:()=>s,H5:()=>S,MI:()=>h,Mj:()=>E,O0:()=>_,QZ:()=>o,W:()=>v,WF:()=>c,Wz:()=>P,a5:()=>u,dz:()=>g,e0:()=>p,e2:()=>r,iW:()=>y,n1:()=>a,rm:()=>d,wb:()=>f,xu:()=>m});var n=i(53987);const a=()=>({type:"DISMISS_UNAUTH_SAVE"}),r=()=>({type:"COMPLETE_UNAUTH_SAVE_ACTION"}),o=e=>({type:"SET_UNAUTH_SAVE_PIN_ID",payload:{unauthSavePinId:e}}),s=()=>({type:"HIDE_NAV_FOOTER"}),l=()=>({type:"SHOW_NAV_FOOTER"}),d=e=>({type:"SET_LOGIN_SIGNUP_FROM",payload:{from:e}}),c=()=>({type:"SHOW_REPIN_ANIMATION"}),u=()=>({type:"HIDE_REPIN_ANIMATION"}),p=e=>({type:"SET_NUM_SIGNUP_STEPS",payload:{steps:e}}),_=()=>({type:"SET_OWN_PROFILE_PINS_REFRESH"}),h=e=>({type:"SHOW_BIZ_NUX_HOMEFEED_LOADER",payload:e}),m=e=>({type:"SET_VIEWED_IMAGE",payload:{viewedImageSignature:e}}),g=e=>({type:"SET_VIEWED_SHARED_PINS",payload:{pins:e}}),v=()=>({type:"DISMISS_UNAUTH_APP_UPSELL"}),y=e=>e?{type:"LOGGED_OUT_USER_INFO_FOUND",payload:e}:{type:"LOGGED_OUT_USER_INFO_NOT_FOUND"},E=(e,t,i)=>n=>n(((e,t,i)=>({type:"SET_SHARE_ON_BOARD_PAGE",payload:{isShareMenuOpen:e,objectType:t,objectId:i}}))(e,t,i)),f=()=>({type:"STOP_SCROLL_TO_CLOSEUP_PIN"}),S=e=>({type:"UPDATE_USER_FIRST_HOME_FEED_REQUEST_AFTER_NUX",payload:e}),P=(e,t)=>{let i;return i=e?(0,n.bo)(e)?"today":(0,n.dr)(e)?"ideas":t&&(0,n.dZ)(e,t)?"own_section":t&&(0,n.J)(e,t)?"own_board":(0,n.OJ)(e)?"section":(0,n.am)(e)?"board":(0,n.L6)(e)?"closeup":(0,n.C$)(e)?"home":(0,n.cD)(e)?"profile":(0,n.En)(e)?"search":(0,n.$V)(e)?"topic":"":"",{type:"SET_LANDING_PAGE_TYPE",payload:i}}},90326:(e,t,i)=>{i.d(t,{Ge:()=>l,JS:()=>r,OF:()=>g,P_:()=>o,Q_:()=>u,b8:()=>p,eR:()=>m,h2:()=>d,h6:()=>c});var n=i(735422),a=i(214494);function r(e){return{type:"UPDATE_USER_PIN_COUNT",payload:e}}const o=(e,t)=>({type:"USER_FOLLOW",payload:{id:e,value:t}}),s=(e,t)=>({type:"USER_BLOCK",payload:{id:e,value:t}}),l=({id:e,orbacSubjectId:t,blockSource:i,blockContext:n})=>r=>(r(s(e,!0)),a.Z.create("UserBlockResource",{blocked_user_id:e,orbac_subject_id:t,block_source:i,block_context:n}).callCreate().catch((()=>r(s(e,!1))))),d=e=>t=>(t(s(e,!1)),a.Z.create("UserBlockResource",{blocked_user_id:e}).callDelete().catch((()=>t(s(e,!0)))));function c(e){return{type:"UPDATE_USER_SCHEDULED_PIN_COUNT",payload:e}}const u=(e,t)=>()=>a.Z.create("UserStateResource",{state:e,value:t}).callCreate(),p=(e,t,i)=>(r,o)=>{a.Z.create("ApiResource",{url:"/v3/users/me/"}).callCreate().then((()=>{i({event_type:48,object_id_str:o().session.userId}),e(),(0,n.Dm)()}),t)};const _=async(e,t,i)=>{var n;const r=await a.Z.create("VIPResource",{upload_ids:[e]}).callGet();if(null!==(n=r.resource_response)&&void 0!==n&&n.data[e]){const n=r.resource_response.data[e],{status:a,signature:o}=n;if("processing"===a||"registered"===a)setTimeout((async()=>{_(e,t,i)}),5e3);else if("succeeded"===a){const e=((e,t="150x150")=>e&&`https://i.pinimg.com/${t}/${e.substring(0,2)}/${e.substring(2,4)}/${e.substring(4,6)}/${e}.jpg`||"")(o);t(e)}else i()}else i()},h=e=>new Promise(((t,i)=>{var n,r,o,s,l;n=e,r="pinimage",o=()=>{},s=e=>{t(e)},l=e=>{i(e)},(new FormData).append("img",n),a.Z.create("VIPResource",{type:r}).callCreate().then((e=>{var t;if(null!==(t=e.resource_response)&&void 0!==t&&t.data){const{upload_id:t,upload_url:i,upload_parameters:a}=e.resource_response.data,r=new XMLHttpRequest;r.open("POST",i,!0),r.onload=()=>{var e;(e=r.status)>=200&&e<400?(o(100),_(t,s,l)):l()},r.upload.onprogress=e=>{const t=Math.round(100*e.loaded/e.total);o(t)};const d=new FormData;for(const e in a)d.append(e,a[e]);d.append("file",n),r.send(d)}}),(()=>{l()}))})),m=e=>new Promise(((t,i)=>{"string"==typeof e?e.startsWith("data")&&h(function(e,t=512){const i=e.split(";"),n=i[0].split(":")[1],a=i[1].split(",")[1],r=atob(a),o=[];for(let s=0;s<r.length;s+=t){const e=r.slice(s,s+t),i=new Array(e.length);for(let t=0;t<e.length;t+=1)i[t]=e.charCodeAt(t);const n=new Uint8Array(i);o.push(n)}return new Blob(o,{type:n})}(e)).then((e=>t(e))):i("Invalid Image")})),g=e=>()=>a.Z.create("ApiResource",{url:"/v3/register/exists/",data:{email:e}}).callGet()},675752:(e,t,i)=>{i.d(t,{A:()=>n});const n=e=>{const t=e.rich_metadata;return t?t.products?144:t.article?141:t.recipe?145:139:140}},977734:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(349741),a=i(214494);function r({history:e,i18n:t,logContextEvent:i,onSuccess:r,onUndo:o,originalPinId:s,pinId:l,trackingParams:d,disableRepinAnimation:c,showNewUserSavetoProfileAnimation:u,showRepinConfirmation:p,historyPush:_}){return(h,m)=>{const{pins:g,session:v}=m(),{userId:y}=v,E=g[l],f={name:t.bt("快速收藏", "Quick Saves", "quickSave.boardName", undefined, true),layout:"quick_saves",protected:!1,return_existing:!0,user_id:y};return a.Z.create("BoardResource",f).callCreate().then((a=>{const l=a.resource_response.data;return new n.Z({boardId:l.id,dispatch:h,isQuickSave:!0,history:e,i18n:t,onSuccess:r,onUndo:o,originalPinId:s,pin:E,resourceName:"RepinResource",section:void 0,showNewUserSavetoProfileAnimation:u,showRepinToasts:e=>p?p(e,c):void 0,trackingParams:d,userId:v.userId,historyPush:_}).processRepin(i)}))}}},225313:(e,t,i)=>{i.d(t,{Z:()=>B});var n=i(667294),a=i(702664),r=i(90771),o=i(31149),s=i(659522),l=i(214680),d=i(331744),c=i(172071),u=i(757146),p=i(785893);function _({size:e=56}){return(0,p.jsxs)("svg",{display:"block",fill:"none",height:e,viewBox:"0 0 56 56",width:e,xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("rect",{fill:"#e60023",height:"56",rx:"28",width:"56"}),(0,p.jsx)("path",{clipRule:"evenodd",d:"m28 31.9842 6 3.6666v-15.6508h-12v15.6508zm0 3.5158 5.9571 3.6404c1.3327.8145 3.0429-.1447 3.0429-1.7065v-17.4339c0-1.6569-1.3431-3-3-3h-12c-1.6569 0-3 1.3431-3 3v17.4339c0 1.5618 1.7102 2.521 3.0429 1.7065z",fill:"#fff",fillRule:"evenodd"})]})}var h=i(862960),m=i(941646),g=i(499128),v=i(464240),y=i(287072),E=i(89396),f=i(22641),S=i(467570),P=i(867820),b=i(773285),T=i(50286),A=i(167912),I=i(780280),x=i(898781),C=i(112690),O=i(52022),R=i(86802),w=i(642832),k=i(883119),D=i(844974),N=i(644035),L=i(343341);function M(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const j=56,U=String(86),F=({text:e})=>(0,p.jsx)(k.xv,{align:"center",size:"100",children:e});class V extends n.PureComponent{constructor(...e){super(...e),M(this,"state",{invitePath:"",inviteCode:null,inviteMessage:"",inviteTitle:"",Clipboard:null,fbLoaded:!1}),M(this,"setClipboard",(e=>{const{Clipboard:t,invitePath:i}=this.state;(0,w.sF)(i,t,e,this.showCopyToast)})),M(this,"showCopyToast",(()=>{var e,t,i,n;this.logShareClick(12),this.setNewAppOrder(12),null===(e=(t=this.props).onShare)||void 0===e||e.call(t),this.props.showToast((({hideToast:e})=>(0,p.jsx)(g.ZP,{text:this.props.i18n.bt("链接已复制到剪贴板可用于分享", "Copied link to your clipboard to share", "url link was copied to user clipboard", undefined, true),onHide:e}))),null===(i=(n=this.props).setShareSent)||void 0===i||i.call(n,!0),this.props.trackInteraction({action:"click",item:"copy-link-share-icon"})})),M(this,"getDefaultAppOrder",(()=>{const{country:e,isDesktop:t}=this.props;return(0,w.pW)({country:e,isDesktop:t,shouldShowNativeShare:Boolean(navigator.share)})})),M(this,"getAppOrder",(()=>{const{isDesktop:e}=this.props;let t=JSON.parse((0,D.qn)(R.B));return!t||e?this.getDefaultAppOrder():(t=[...t.filter((e=>11!==e&&12!==e)),12],Boolean(navigator.share)&&t.push(11),t)})),M(this,"setNewAppOrder",(e=>{const{isDesktop:t}=this.props;t||R.F6.has(e)||(0,D.Nh)(R.B,JSON.stringify([e,...this.getAppOrder().filter((t=>t!==e))]))})),M(this,"handleMessagingAppClick",(e=>{var t,i,n,a;null===(t=(i=this.props).onShare)||void 0===t||t.call(i),null===(n=(a=this.props).setShareSent)||void 0===n||n.call(a,!0),this.logShareClick(e),this.setFreshInviteCode(e),R.rO.has(e)||(0,D.Nh)(R.Cq,e),this.setNewAppOrder(e)})),M(this,"handleMessengerClick",(()=>{this.props.trackInteraction({action:"click",item:"fbmessenger-share-icon"}),this.handleMessagingAppClick(6)})),M(this,"handleTwitterClick",(()=>{this.props.trackInteraction({action:"click",item:"twitter-share-icon"}),this.handleMessagingAppClick(9)})),M(this,"handleWhatsappClick",(()=>{this.props.trackInteraction({action:"click",item:"whatsapp-share-icon"}),this.handleMessagingAppClick(10)})),M(this,"handleLineClick",(()=>{this.handleMessagingAppClick(8)})),M(this,"handleTelegramClick",(()=>{this.handleMessagingAppClick(20)})),M(this,"handleViberClick",(()=>{this.handleMessagingAppClick(22)})),M(this,"handleEmailClick",(()=>{this.handleMessagingAppClick(3),this.props.trackInteraction({action:"click",item:"email-share-button"})})),M(this,"handleFacebookClick",(e=>{var t,i,n,a;const{isDesktop:r}=this.props;e.preventDefault(),null===(t=(i=this.props).onShare)||void 0===t||t.call(i),null===(n=(a=this.props).setShareSent)||void 0===n||n.call(a,!0),(0,P.My)(`pcons.${r?"desktop":"mobile"}.facebook-share-icon`),this.props.trackInteraction({action:"click",item:"facebook-share-icon"}),this.logShareClick(5);const{inviteCode:o,invitePath:s,fbLoaded:l}=this.state;(0,w.Rh)(l,s,o||""),this.setFreshInviteCode(5),this.setNewAppOrder(5)})),M(this,"handleSmsClick",(()=>{this.handleMessagingAppClick(4)})),M(this,"logShareClick",((e,t=this.state.inviteCode)=>{const{objectId:i,objectType:n,component:a,clientTrackingParams:r,logContextEvent:o,viewType:s,viewParameter:l}=this.props;(0,w.Iz)({inviteChannel:e,inviteCode:t,objectId:i,objectType:n,component:a,clientTrackingParams:r,logContextEvent:o,view_type:s,view_parameter:l})})),M(this,"copyButtonRef",null),M(this,"renderAppsInCustomOrder",(({Email:e,Facebook:t,FBMessenger:i,Line:a,WhatsApp:r,Twitter:o,Viber:s,Telegram:l,CopyLink:d,Sms:c,ShareVia:u})=>{const _=this.getAppOrder(),h=new Map([[6,i],[10,r],[5,t],[9,o],[3,e],[8,a],[20,l],[22,s],[4,c],[12,d],[11,u]]);return(0,p.jsx)(n.Fragment,{children:_.map((e=>h.get(e)))})})),M(this,"onHandleRepinSave",(({event:e,dangerouslyDisableOnNavigation:t})=>{var i,n;t(),null===(i=(n=this.props).onSave)||void 0===i||i.call(n),this.props.onNavigation({event:e})}))}componentDidMount(){this.setFreshInviteCode(12),(0,S.we)(this.props.locale).then((()=>{this.setState({fbLoaded:!0})})),i.e(6527).then(i.t.bind(i,842152,23)).then((({default:e})=>{e.isSupported()&&(this.setState({Clipboard:e}),this.setClipboard(this.copyButtonRef))}))}componentDidUpdate({objectId:e}){const{objectId:t}=this.props;e!==t&&this.setFreshInviteCode(12)}async setFreshInviteCode(e){const{objectId:t,objectType:i}=this.props,{invitePath:n,inviteCode:a,title:r,message:o}=await(0,w.yP)(e,t,i,this.props.relayEnvironment),s={};n&&(s.invitePath=n),a&&(s.inviteCode=a),r&&(s.inviteTitle=r),o&&(s.inviteMessage=o),this.setState(s)}render(){const{isDesktop:e,objectType:t,onSave:i,showSaveOption:n,isAppleDevice:a}=this.props,{invitePath:g,inviteMessage:y,inviteTitle:S}=this.state,{emailShareLink:P,messengerShareLink:b,twitterShareLink:T,whatsappShareLink:A,lineShareLink:I,telegramShareLink:x,viberShareLink:C,smsShareLink:O}=(0,w.tA)({invitePath:g,inviteTitle:S,objectType:t,i18n:this.props.i18n,isDesktop:e}),R=({children:t})=>(0,p.jsx)(k.kC,{alignItems:"center",justifyContent:"start",direction:"column",width:e?`${U}px`:"100%",children:t}),D=({children:e})=>(0,p.jsx)(k.xu,{display:"flex",justifyContent:"center",paddingX:3,marginBottom:1,children:e}),N=(0,p.jsxs)(R,{children:[(0,p.jsx)(D,{children:(0,p.jsx)(m.Z,{id:"fbmessenger-share-icon",children:(0,p.jsx)(k.iP,{rounding:"circle",role:"link",rel:"nofollow",href:b,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleMessengerClick()},children:(0,p.jsx)(u.Z,{size:j})})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("Messenger", "Messenger", "shareMenu.icon.label.messenger", undefined, true)})]}),L=(0,p.jsxs)(R,{children:[(0,p.jsx)(D,{children:(0,p.jsx)(m.Z,{id:"whatsapp-share-icon",children:(0,p.jsx)(k.iP,{rounding:"circle",role:"link",rel:"nofollow",href:A,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleWhatsappClick()},children:(0,p.jsx)(f.Z,{size:j})})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("WhatsApp", "WhatsApp", "shareMenu.icon.label.whatsapp", undefined, true)})]}),M=(0,p.jsx)(k.xu,{"data-test-id":"facebook-share-icon",display:"flex",flex:"shrink",children:(0,p.jsxs)(R,{children:[(0,p.jsx)(D,{children:(0,p.jsx)(k.rU,{href:"#",onClick:({event:e})=>{this.handleFacebookClick(e)},children:(0,p.jsx)(s.Z,{size:j})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("Facebook", "Facebook", "shareMenu.icon.label.facebook", undefined, true)})]})}),V=(0,p.jsxs)(R,{children:[(0,p.jsx)(D,{children:(0,p.jsx)(m.Z,{id:"twitter-share-icon",children:(0,p.jsx)(k.iP,{rounding:"circle",role:"link",rel:"nofollow",href:T,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleTwitterClick()},children:(0,p.jsx)(v.Z,{size:j})})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("Twitter", "Twitter", "shareMenu.icon.label.twitter", undefined, true)})]}),B=(0,p.jsxs)(R,{children:[(0,p.jsx)(D,{children:(0,p.jsx)(k.iP,{rounding:"circle",role:"link",rel:"nofollow",href:I,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleLineClick()},children:(0,p.jsx)(d.Z,{size:j})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("行高", "Line", "shareMenu.icon.label.line", undefined, true)})]}),G=(0,p.jsxs)(R,{children:[(0,p.jsx)(D,{children:(0,p.jsx)(k.iP,{rounding:"circle",role:"link",rel:"nofollow",href:C,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleViberClick()},children:(0,p.jsx)(E.Z,{size:j})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("Viber", "Viber", "shareMenu.icon.label.viber", undefined, true)})]}),H=(0,p.jsxs)(R,{children:[(0,p.jsx)(D,{children:(0,p.jsx)(k.iP,{rounding:"circle",role:"link",rel:"nofollow",href:x,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleTelegramClick()},children:(0,p.jsx)(h.Z,{size:j})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("Telegram", "Telegram", "shareMenu.icon.label.telegram", undefined, true)})]}),z=(0,p.jsxs)(R,{children:[(0,p.jsx)(D,{children:(0,p.jsx)(m.Z,{id:"email-share-button",children:(0,p.jsx)(k.iP,{rounding:"circle",role:"link",rel:"nofollow",target:"blank",href:P,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleEmailClick()},children:(0,p.jsx)(o.Z,{size:j})})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("电子邮件", "Email", "shareMenu.icon.label.email", undefined, true)})]}),Z=(0,p.jsxs)(R,{children:[(0,p.jsx)(D,{children:(0,p.jsx)(k.iP,{rounding:"circle",role:"link",rel:"nofollow",target:"blank",href:"#",onTap:({event:e,dangerouslyDisableOnNavigation:t})=>{var i,n;e.preventDefault(),null===(i=(n=this.props).onShare)||void 0===i||i.call(n),t();const a=y.indexOf("https://");navigator.share&&navigator.share({url:g,text:a>0?y.slice(0,a):y,title:S}).then((()=>{this.handleMessagingAppClick(11),c.Z.increment("allshareoptions_navigator_share.success",1)})).catch((e=>{c.Z.increment("allshareoptions_navigator_share.error",1,{name:e.name,message:e.message})}))},children:(0,p.jsx)(k.xu,{height:j,children:(0,p.jsx)(k.hU,{accessibilityLabel:this.props.i18n.bt("原生分享表格图标", "Native share sheet icon", "shareMenu.icon.accessibilityLabel.native_share_sheet", undefined, true),bgColor:"lightGray",icon:"share",iconColor:"darkGray",size:"xl"})})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("通过以下方式分享", "Share via", "shareMenu.icon.label.share_via", undefined, true)})]}),K=(0,p.jsxs)(R,{children:[(0,p.jsx)(D,{children:(0,p.jsx)(k.iP,{rounding:"circle",role:"link",rel:"nofollow",href:O,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleSmsClick()},children:a?(0,p.jsx)(l.Z,{size:j}):(0,p.jsx)(r.Z,{size:j})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("消息", "Message", "shareMenu.icon.label.message", undefined, true)})]}),W=(0,p.jsxs)(R,{children:[(0,p.jsx)(D,{children:(0,p.jsx)(k.xu,{ref:this.setClipboard,dangerouslySetInlineStyle:{__style:{cursor:e?"pointer":void 0}},"data-test-id":"copy-link-share-icon",height:j,children:(0,p.jsx)(k.hU,{accessibilityLabel:this.props.i18n.bt("链接图标", "Link icon", "shareMenu.icon.accessibilityLabel.copy", undefined, true),bgColor:"lightGray",icon:"link",iconColor:"darkGray",size:"xl"})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("复制链接", "Copy link", "shareMenu.icon.label.copy", undefined, true)})]});return(0,p.jsxs)(k.xu,{children:[(0,p.jsx)(k.xu,{height:4}),(0,p.jsx)(k.kC,{alignItems:"stretch",justifyContent:"start",overflow:"hidden",children:(0,p.jsxs)(k.xu,{display:"flex",justifyContent:"start",height:e?180:void 0,width:e?370:"100vw",marginBottom:-2,paddingX:1,paddingY:2,overflow:e?void 0:"scrollX",wrap:e,children:[n&&i&&(()=>(0,p.jsxs)(R,{children:[(0,p.jsx)(D,{children:(0,p.jsx)(k.iP,{rounding:"circle",onTap:this.onHandleRepinSave,children:(0,p.jsx)(_,{size:j})})}),(0,p.jsx)(F,{text:this.props.i18n.bt("收藏", "Save", "shareMenu.icon.label.save", undefined, true)})]}))(),this.renderAppsInCustomOrder({Email:z,Facebook:M,FBMessenger:N,Line:B,WhatsApp:L,Twitter:V,Viber:G,Telegram:H,CopyLink:W,Sms:K,ShareVia:Z})]})}),(0,p.jsx)(k.xu,{height:16})]})}}function B(e){const t=(0,x.ZP)(),i=(0,T.HG)(),{showToast:n}=(0,L.F9)(),{country:r,locale:o}=(0,I.B)(),s=(0,y.Z)({href:{pathname:`/pin/${e.objectId}/repin`,state:{viewType:e.viewType,viewParameter:e.viewParameter}}}),{checkExperiment:l}=(0,b.F)(),d=(0,a.useSelector)((({session:e})=>e.userAgentPlatform)),c=d===N.RL||d===N.s4,u=l("graphql_migration_sharesheet_sgrowth_web").anyEnabled,_=(0,A.useRelayEnvironment)(),h=(0,C.Z)(),m=(0,O.Z)();return(0,p.jsx)(V,{...e,country:r,i18n:t,isDesktop:i,locale:o,showToast:n,onNavigation:s,logContextEvent:h,isAppleDevice:c,relayEnvironment:u?_:void 0,trackInteraction:m})}},642832:(e,t,i)=>{i.d(t,{Iz:()=>g,Rh:()=>p,pW:()=>c,rL:()=>m,sF:()=>_,tA:()=>u,yP:()=>h});var n,a,r=i(214494),o=i(467570),s=i(867060),l=i(167912);const d={FBMessenger:6,WhatsApp:10,Facebook:5,Twitter:9,Email:3,Line:8,Telegram:20,Viber:22,Sms:4,CopyLink:12,ShareVia:11};function c({country:e,isDesktop:t,shouldShowNativeShare:i}){const{FBMessenger:n,WhatsApp:a,Facebook:r,Twitter:o,Email:s,Line:l,Telegram:c,Viber:u,Sms:p,CopyLink:_,ShareVia:h}=d;function m(){switch(e){case"US":return t?[a,r,o,s]:[p,n,a,r,o];case"ID":return t?[a,l,s,r]:[a,c,p,l,s,r];case"JP":case"TH":case"TW":return t?[l,o,s,r]:[l,s,p,o,r];case"GR":return t?[a,r,o,s]:[u,n,a,p,r,o];case"IR":case"IQ":return t?[a,r,o,s]:[a,c,p,n,o];case"UA":case"RU":return t?[a,r,o,s]:[a,u,c,r,n,p,o];default:return t?[a,r,o,s]:[a,n,p,r,o]}}return t?[_,...m()]:[...m(),_,...i?[h]:[]]}function u({invitePath:e,inviteTitle:t,objectType:i,i18n:n,isDesktop:a}){let r=n.bt("为你推荐的 Pin 图", "A Pin for you", "shareMenu.message.title", undefined, true);8===i&&(r=n.bt("请在 Pinterest 上查看此文章。", "Check out this article on Pinterest!", "shareMenu.message.title", undefined, true));const s=`mailto:?subject=${encodeURIComponent(r)}&body=${encodeURIComponent(e)}`,l=`fb-messenger://share/?link=${encodeURIComponent(e)}&app_id=${o.GH}`,d=`${t}\n${e}`,c=a?`https://twitter.com/intent/tweet?via=pinterest&url=${encodeURIComponent(d)}`:`twitter://post?message=${encodeURIComponent(d)}`,u=a?`https://web.whatsapp.com/send?text=${encodeURIComponent(d)}`:`whatsapp://send?text=${encodeURIComponent(d)}`,p=a?`https://social-plugins.line.me/lineit/share?url=${encodeURIComponent(e)}&text=${encodeURIComponent(t)}`:`https://line.me/R/msg/text/?${encodeURIComponent(d)}`,_=`viber://forward?text=${encodeURIComponent(d)}`;return{emailShareLink:s,messengerShareLink:l,twitterShareLink:c,whatsappShareLink:u,lineShareLink:p,telegramShareLink:`tg://msg?text=${encodeURIComponent(d)}`,viberShareLink:_,smsShareLink:`sms:?&body=${encodeURIComponent(d)}`}}function p(e,t,i,n){e&&window.FB&&window.FB.ui&&window.FB.ui({method:"share",mobile_iframe:!0,href:t},(e=>{e&&!e.error_message&&n&&n()}))}function _(e,t,i,n){if(!i||!t)return;const a=new t(i,{text:()=>e});a.on("success",(e=>{n&&n(e)})),a.on("error",(e=>{throw new Error("<ShareMenu /> error: copy command failed")}))}async function h(e,t,a,o){if(o)return((e,t,a,r,o)=>{const s=void 0!==n?n:n=i(865107),d={invite_category:t,invite_object:a,invite_channel:r};return(0,l.fetchQuery)(e,s,{inviteType:JSON.stringify(d),objectId:o}).toPromise().then((e=>{var t;return Promise.resolve((e=>{var t,i,n,a;return{inviteCode:null!==(t=null==e?void 0:e.inviteCode)&&void 0!==t?t:"",invitePath:null!==(i=null==e?void 0:e.inviteUrl)&&void 0!==i?i:"",title:null!==(n=null==e?void 0:e.title)&&void 0!==n?n:"",message:null!==(a=null==e?void 0:e.message)&&void 0!==a?a:""}})(null==e||null===(t=e.v3InviteUserExternalQuery)||void 0===t?void 0:t.data))}),(e=>Promise.reject(e)))})(o,3,a,e.toString(),t);{const i=r.Z.create("CreateExternalInviteResource",{invite_type:{invite_category:3,invite_object:a,invite_channel:e},object_id:t}),n=await i.callCreate(),{invite_url:o,invite_code:s,title:l,message:d}=n.resource_response.data;return{inviteCode:s,invitePath:o,title:l,message:d}}}const m=(e,t,n,r,o,s)=>{const d=void 0!==a?a:a=i(361600),c={inviteType:JSON.stringify({invite_category:t,invite_object:n,invite_channel:r}),inviteCode:o,objectId:s};(0,l.commitMutation)(e,{mutation:d,variables:{...c}})};async function g({inviteChannel:e,inviteCode:t,objectId:i,objectType:n,component:a,clientTrackingParams:o,logContextEvent:l,view_parameter:d,view_type:c}){let u,p;l({aux_data:{invite_object:n},object_id_str:i,component:a,clientTrackingParams:o,element:s.cc[e],event_type:102,view_type:c,view_parameter:d}),u=2===n?s.LO:3===n?s.Pu:s.dB,p=14122===a?14312:14123===a?14310:14309,l({event_type:10399,component:p,object_id_str:i,view_type:c,view_parameter:d,aux_data:{invite_object:n},element:u[e]}),r.Z.create("SentExternalInviteCallbackResource",{invite_type:{invite_category:3,invite_object:n,invite_channel:e},invite_code:t,object_id:i,client_tracking_params:o}).callCreate()}},590674:(e,t,i)=>{i.r(t),i.d(t,{default:()=>$});var n=i(667294),a=i(225313),r=i(702664),o=i(766935),s=i(72566),l=i(936776),d=i(172071),c=i(214494),u=i(700380),p=i(784590),_=i(19121),h=i(773285),m=i(385740),g=i(698330),v=i(878499),y=i(116303),E=i(499128),f=i(407043),S=i(898781),P=i(927383),b=i(349700),T=i(313951),A=i(883119),I=i(276775),x=i(343341),C=i(785893);function O(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class R extends n.PureComponent{constructor(...e){var t;super(...e),t=this,O(this,"state",{viewConversation:!1,isSent:!1,path:""}),O(this,"renderViewConversationButton",(()=>{const{viewConversation:e}=this.state;return e?(0,C.jsxs)(A.kC,{alignItems:"center",direction:"row",flex:"grow",justifyContent:"center",children:[(0,C.jsx)(A.zx,{fullWidth:!0,size:"sm",text:this.props.i18n.bt("查看", "View chat", "View current chat", undefined, true),color:"white",onClick:()=>{this.onViewConversation()}}),(0,C.jsx)(A.JO,{icon:"arrow-forward",color:"default",accessibilityLabel:this.props.i18n.bt("查看", "View chat", "View current chat", undefined, true)})]}):(0,C.jsxs)(A.kC,{alignItems:"center",direction:"row",flex:"grow",justifyContent:"center",children:[(0,C.jsx)(A.xu,{marginEnd:2,children:(0,C.jsx)(A.JO,{icon:"check",color:"default",accessibilityLabel:this.props.i18n.bt("已发送", "sent", "content is sent", undefined, true)})}),(0,C.jsx)(A.xu,{marginEnd:2,children:(0,C.jsx)(A.xv,{size:"300",color:"subtle",weight:"bold",children:this.props.i18n.bt("已发送", "Sent", "mweb.sharemenu.contactItem.isSent", undefined, true)})})]})})),O(this,"onViewConversation",(()=>{const{path:e}=this.state,{sendObject:t}=this.props;let i;d.Z.increment("mweb_sharesheet_view_conversation",1),this.props.history.push(e),i=3===t.objectType?13532:2===t.objectType?13529:13526,this.props.logContextEvent({view_type:this.props.viewType,event_type:10399,component:14309,element:i})})),O(this,"onInlineSend",this.props.requireAuthForLimitedLogin({fn:async function(){const e={1:"pin",2:"board",3:"user",8:"today_article"},{createConversation:i,i18n:n,isFullHeight:a,onDismiss:r,setShareSent:o,recipient:s,sendObject:l,showToast:c,email:u,updateCachedContactsAfterSend:p,userId:_,logContextOnSend:h}=t.props,m=e[l.objectType];null==h||h(),t.setState({isSent:!0});try{const e=await i({user_ids:s?[s.id,_]:void 0,[m]:l.objectId,emails:u?[u]:void 0});if(e){const i=e.id;t.setState({path:`/conversation/${i}`,viewConversation:!0}),d.Z.increment("mweb_sharesheet.inline_send",1,{success:!0}),o(!0),null==p||p(),!a&&r&&(c((({hideToast:e})=>(0,C.jsx)(E.ZP,{dataTestId:"sharesheet-inline-send-toast",primaryAction:{accessibilityLabel:n.bt("查看转化", "View the conversation", "ContactItem.ConfirmationToast.a11yButtonText", undefined, true),label:n.bt("浏览", "View", "ContactItem.ConfirmationToast.buttonText", undefined, true),onClick:t.onViewConversation},duration:4e3,onHide:e,text:(0,b.Wc)(n.bt("发送给 {{recipientName}}！", "Sent to {{recipientName}}!", "ContactItem.ConfirmationToast.text", undefined, true),{recipientName:(null==s?void 0:s.full_name)||""}),iconThumbnail:(0,C.jsx)(y.Z,{size:"fit",src:(null==s?void 0:s.image_large_url)||"",name:(null==s?void 0:s.full_name)||""}),thumbnailShape:"circle"}))),r(i))}}catch(g){c((({hideToast:e})=>(0,C.jsx)(E.ZP,{variant:"error",text:(null==g?void 0:g.message_detail)||(null==g?void 0:g.message)||n.bt("无法创建对话。", "Failed to create conversation.", "ContactItem.errorToast.text", undefined, true),onHide:e}))),t.setState({isSent:!1}),d.Z.increment("mweb_sharesheet.inline_send",1,{success:!1,error:g})}}}))}render(){var e,t,i,n;const{isFullHeight:a,recipient:r,email:o}=this.props,{isSent:s}=this.state;return!a&&r?(0,C.jsxs)(A.xu,{"data-test-id":"sharesheet-send-button",display:"flex",direction:"column",paddingX:3,paddingY:4,children:[(0,C.jsx)(A.iP,{onTap:()=>this.onInlineSend(),children:(0,C.jsx)(A.xu,{height:56,marginBottom:1,width:56,children:(0,C.jsx)(y.Z,{size:"fit",src:null!==(e=r.image_large_url)&&void 0!==e?e:"",name:null!==(t=r.full_name)&&void 0!==t?t:""})})}),(0,C.jsx)(A.xu,{width:56,children:(0,C.jsx)(A.xv,{lineClamp:1,size:"100",align:"center",children:r.full_name})})]}):(0,C.jsxs)(A.xu,{"data-test-id":"sharesheet-send-button",position:"relative",direction:"row",display:"flex",width:"100%",alignItems:"center",justifyContent:"between",paddingY:2,children:[r?(0,C.jsx)(A.xu,{children:(0,C.jsx)(y.Z,{size:"md",src:null!==(i=r.image_large_url)&&void 0!==i?i:"",name:null!==(n=r.full_name)&&void 0!==n?n:""})}):o&&(0,C.jsx)(A.xu,{children:(0,C.jsx)(y.Z,{size:"md",name:o})}),(0,C.jsx)(A.xu,{paddingX:2,flex:"grow",maxWidth:"71%",children:(0,C.jsx)(A.xv,{lineClamp:1,weight:"bold",children:r?r.full_name:o&&s?o:(0,b.nk)(this.props.i18n.bt("{{email}} 邀请", "invite {{email}}", "mweb.newMessage.searchEmail", undefined, true),{email:o})})}),(0,C.jsx)(A.xu,{"data-test-id":"sharesheet-viewchat-link",right:!0,flex:"none",maxWidth:"100%",children:s?this.renderViewConversationButton():(0,C.jsx)(A.zx,{fullWidth:!0,size:"lg",color:"gray",text:this.props.i18n.bt("发送", "Send", "Send current content", undefined, true),onClick:()=>{this.onInlineSend()}})})]})}}function w(e){const t=(0,I.useHistory)(),i=(0,S.ZP)(),n=(0,P.Z)(),{showToast:a}=(0,x.F9)(),r=(0,T.aX)(),{logContextEvent:o}=(0,f.v)();return(0,p.Z)({name:"ConversationsResource",options:{user_ids:[e.userId]}}),(0,C.jsx)(R,{...e,createConversation:r,history:t,i18n:i,requireAuthForLimitedLogin:n,showToast:a,logContextEvent:o})}var k=i(112690),D=i(248327);function N(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const L={boxShadow:"0 6px 8px -4px rgba(0, 0, 0, 0.1)",transition:"box-shadow 300ms ease-in-out"};class M extends n.PureComponent{componentDidUpdate(e){const{fetching:t}=e,{value:i}=this.state,n=t&&!this.props.fetching,a=this.getContactSuggestions();if(!i&&n){const e=a.length>0?7511:7512;this.props.logContextEvent({event_type:e,view_type:70,view_parameter:256})}}constructor(e){super(e),N(this,"state",{value:"",showScrollShadow:!1,defaultSuggestions:[],loadingDefaultSuggestions:!0}),N(this,"onSearchChange",(({value:e})=>{const{userId:t,searchContacts:i}=this.props,n={options:{user:t,term:e}};this.setState({value:e},i(n))})),N(this,"getContactSuggestions",(()=>{const{typeaheadSuggestions:e,userId:t,users:i}=this.props,{value:n,defaultSuggestions:a}=this.state;if(!n)return a.filter((e=>i[e.id]))||[];const r=`term="${n}",user="${t}"`,o=`term="${n.slice(0,-1)}",user="${t}"`;return e[r]||e[o]||[]})),N(this,"renderContactSuggestions",(()=>{const{expandContactsList:e,fetching:t,i18n:i,isFullHeight:n,logContextEvent:a,onDismiss:r,sendObject:o,setShareSent:s,userId:d,updateCachedContactsAfterSend:c,viewType:u}=this.props,{loadingDefaultSuggestions:p,value:_}=this.state,h=this.getContactSuggestions(),m=t||p,g=e=>{const t=_&&_.trim(),{selected_contact_index:i,selected_contact_reason:r}=e||{},s=()=>t?(0,l.Z)(t)?{is_selected_contact_email:"true"}:{search_query_length:JSON.stringify(t.length),selected_contact_index:i,selected_contact_reason:r}:{selected_contact_index:i,selected_contact_reason:r};let d;a({event_type:102,view_type:70,view_parameter:n?3827:256,component:t?14314:14315,element:10837,aux_data:s()}),d=3===o.objectType?13530:2===o.objectType?13527:13524,a({event_type:10399,view_type:u,component:14309,element:d,aux_data:s()})};let v;return v=!n&&m?107:"100%",m?(0,C.jsx)(A.xu,{alignItems:"center",display:"flex",justifyContent:"center",height:v,paddingY:2,children:(0,C.jsx)(A.$j,{show:!0,accessibilityLabel:i.bt("正在搜索联系人", "Searching for contacts", "Placeholder text for spinner on share menu", undefined, true)})}):0===h.length&&!(0,l.Z)(_)&&_&&n?(0,C.jsx)(A.xu,{marginTop:3,children:(0,C.jsx)(A.xv,{align:"center",children:i.bt("抱歉， 我们无法找到此用户名的用户。", "Sorry, we can't find anyone by that name.", "Text to show empty state when a contact can not be found", undefined, true)})}):(0,C.jsx)(A.kC,{direction:n?"column":"row",overflow:n?void 0:"hidden",children:(0,C.jsxs)(A.xu,{display:n?void 0:"flex",height:v,overflow:n?void 0:"scrollX",marginBottom:0,marginTop:0,paddingX:n?4:1,paddingY:0,children:[0===h.length&&(0,l.Z)(_)&&(0,C.jsx)(w,{email:_,isFullHeight:n,sendObject:o,setShareSent:s,userId:d,logContextOnSend:g,viewType:u}),!n&&(0,C.jsxs)(A.xu,{alignItems:"center",display:"flex",direction:"column",paddingX:3,paddingY:4,children:[(0,C.jsx)(A.xu,{height:56,marginBottom:1,width:56,children:(0,C.jsx)(A.hU,{accessibilityLabel:i.bt("搜索用户", "Search for users", "ContactsSuggestsions.SearchIcon.accessibilityLabel", undefined, true),bgColor:"lightGray",icon:"search",iconColor:"darkGray",onClick:()=>{let t;a({event_type:102,view_type:70,view_parameter:256,component:14315,element:13498}),t=3===o.objectType?13531:2===o.objectType?13528:13525,a({view_type:u,event_type:10399,component:14309,element:t}),e()},size:"xl"})}),(0,C.jsx)(A.xv,{lineClamp:1,size:"100",children:i.bt("搜索", "Search", "ContactsSuggestions.SearchOption.text", undefined, true)})]}),h.map(((e,t)=>(0,C.jsx)(w,{isFullHeight:n,onDismiss:r,recipient:e,sendObject:o,setShareSent:s,userId:d,updateCachedContactsAfterSend:c,logContextOnSend:()=>{g({selected_contact_index:JSON.stringify(t),selected_contact_reason:JSON.stringify(e.debug_reason.reason)})},viewType:u},e.id)))]})})})),this.scrollerRef=(0,n.createRef)()}async componentDidMount(){const{inContactsCacheExp:e,cachedShareSuggestions:t,getFreshContactSuggestions:i,updateCachedShareSuggestions:n}=this.props;if(e)if(t)this.setState({loadingDefaultSuggestions:!1,defaultSuggestions:t});else{const e=await i()||[];n(e),this.setState({loadingDefaultSuggestions:!1,defaultSuggestions:e})}else{const e=await i()||[];this.setState({loadingDefaultSuggestions:!1,defaultSuggestions:e})}}render(){const{showScrollShadow:e}=this.state,{isFullHeight:t,expandContactsList:i}=this.props,a=(0,u.Z)((()=>{const e=this.scrollerRef.current;e&&!Number.isNaN(e.scrollTop)&&this.setState({showScrollShadow:e.scrollTop>0})}),100);return(0,C.jsx)(n.Fragment,{children:t?(0,C.jsxs)(A.xu,{color:"default",display:"flex",direction:"column",paddingX:0,height:"90%",children:[(0,C.jsx)(A.xu,{"data-test-id":"contact-suggestion-search-field",paddingY:2,color:"default",paddingX:4,dangerouslySetInlineStyle:{__style:e?L:null},children:(0,C.jsx)(s.Z,{accessibilityLabel:this.props.i18n.bt("搜索联系人", "search contact", "Accessibility label for searchbar on share menu", undefined, true),id:"contactsSuggestSearchField",onChange:this.onSearchChange,onFocus:i,placeholder:this.props.i18n.bt("按姓名或电子邮箱搜索", "Search by name or email", "Placeholder text for searchbar on share menu", undefined, true),value:this.state.value,autoFocus:t})}),(0,C.jsx)(A.xu,{display:"flex",direction:"column",paddingY:1,overflow:"scrollY",onScroll:a,ref:this.scrollerRef,children:this.renderContactSuggestions()})]}):(0,C.jsx)(A.xu,{children:this.renderContactSuggestions()})})}}function j(e){const t=(0,S.ZP)(),i=(0,g.kW)(),n=(0,k.Z)(),{id:a}=(0,_.Z)(),s=(0,r.useDispatch)(),{viewType:l}=(0,m.SU)();(0,p.Z)({name:"ShareSuggestionsTypeaheadResource",options:{term:"",user:a}});const u=(0,r.useSelector)((({resources:e})=>{const{ShareSuggestionsTypeaheadResource:t}=e,i={};for(const n of Object.keys(t||{})){const e=t[n].data;e&&e.items&&(i[n]=e.items)}return i})),y=(0,r.useSelector)((e=>e.resources.ShareSuggestionsTypeaheadResource)),E=Object.keys(y||{}).some((e=>y[e].fetching)),{cachedShareSuggestions:f,clearCachedShareSuggestions:P,updateCachedShareSuggestions:b}=(0,v.$)(),T=async()=>{let e;const t=c.Z.create("ShareSuggestionsResource",{suggestion_type:"share"});try{var i;e=null===(i=(await t.callGet()).resource_response)||void 0===i?void 0:i.data}catch(n){d.Z.increment("mweb_share_menu_load_suggestions.fail.share",1)}return e},{checkExperiment:A}=(0,h.F)(),I=A("mweb_cache_contacts_share").anyEnabled;return(0,C.jsx)(M,{...e,i18n:t,logContextEvent:n,users:i,searchContacts:e=>{(0,o.Z)(s((0,D.U)("ShareSuggestionsTypeaheadResource",e)),200)},fetching:E,userId:a||"",typeaheadSuggestions:u,inContactsCacheExp:I,cachedShareSuggestions:f,getFreshContactSuggestions:T,updateCachedContactsAfterSend:async()=>{if(I){P();const e=await T();e&&b(e)}},updateCachedShareSuggestions:b,viewType:l})}var U=i(79113),F=i(121151),V=i(667679),B=i(52022),G=i(749049),H=i(867820),z=i(53987),Z=i(50286);const K=14121,W=({heading:e,onDismiss:t})=>{const i=(0,S.ZP)();return(0,C.jsxs)(A.kC,{alignItems:"center",flex:"grow",justifyContent:"start",children:[(0,C.jsx)(A.xu,{display:"flex",alignItems:"center",padding:1,children:(0,C.jsx)(A.hU,{accessibilityLabel:i.bt("关闭", "Close", "close share menu", undefined, true),icon:"cancel",onClick:t,size:"sm",iconColor:"darkGray",padding:4})}),(0,C.jsx)(A.xu,{display:"flex",flex:"grow",alignItems:"center",justifyContent:"center",marginEnd:12,children:(0,C.jsx)(A.xv,{align:"center",weight:"bold",children:(0,C.jsx)("span",{className:"deprecatedTextSizeXL",children:e})})})]})},Y=({children:e,isOpen:t,onDismiss:i,childPaddingX:n=3,shouldRenderCloseIcon:a,shouldRenderFullHeight:r,heading:o})=>{const s=(0,S.ZP)(),l={mobileAccessibilityCloseIconLabel:s.bt("关闭发送模式", "close send modal", " - ", undefined, true),accessibilityModalLabel:"",heading:o,mobileHideCloseIcon:!a,isOpen:t,onDismiss:i,type:"share_menu"};return r?(0,C.jsxs)(U.Z,{isOpen:t,accessibilityModalLabel:o,children:[(0,C.jsx)(W,{heading:o,onDismiss:i}),e]}):(0,C.jsx)(F.ZP,{...l,children:(0,C.jsx)(A.xu,{marginTop:a?0:4,paddingX:n,children:e})})},$=({isOpen:e,onDismiss:t,objectType:i,objectId:r,hideContactsSuggestions:o,clientTrackingParams:s,element:l,viewType:c,viewParameter:u,component:p})=>{const m=(0,S.ZP)(),[g,v]=(0,n.useState)(!1),[y,E]=(0,n.useState)(!1),f=g||!o,P=(0,I.useLocation)(),b=(0,Z.HG)(),{isAuth:T}=(0,_.Z)(),{checkExperiment:x}=(0,h.F)(),O=(0,V.Z)(),R=(0,k.Z)(),w=(0,B.Z)(),D=e=>{x("mweb_share_menu_logging").anyEnabled&&R({clientTrackingParams:s,component:K,event_type:y||e?7493:7492,element:13097,view_type:70,view_parameter:u,aux_data:{invite_object:i}}),y||void 0!==e||R({clientTrackingParams:s,component:14309,event_type:10403,element:13478,view_type:c,view_parameter:u,aux_data:{invite_object:i}});const n=(e=>(0,z.cD)(e)?"profile_page":(0,z.am)(e)?"board_page":(0,z.uM)(e)?"pin_page":"unknown")(P),a=!b&&!T&&x("unauth_mweb_after_invite_signup_modal").anyEnabled;w({action:"click",item:"close-share-menu"}),t(),a&&y&&O({reason:"UPSELL_LOGIN_OR_SIGNUP",attributionLabel:`tap_unauth_${n}_share_menu_click_invite`}),E(!1),(0,H.My)(`mweb_${n}_share_menu.click_invite.close`)},N=x("mweb_share_menu_logging").anyEnabled;(0,n.useEffect)((()=>{e&&(R({event_type:7120,component:K,object_id_str:r,clientTrackingParams:N?s:null,element:N?l:null,view_type:N?c:70,view_parameter:N?u:256,aux_data:N?{invite_object:i}:void 0}),R({event_type:10400,component:p,object_id_str:r,clientTrackingParams:s,element:(0,G.O)(i),view_type:c,view_parameter:u,aux_data:{invite_object:i}}))}),[e,x,N]);const L=(0,Z.Wb)(),M=m.bt("在 Pinerest 上发送", "Send on Pinterest", "Heading for share contacts search", undefined, true),U=m.bt("分享", "Share", "ShareMenu.AllShareOptions.HeaderText", undefined, true),F=g?M:(0,C.jsx)(A.xu,{marginTop:0,children:(0,C.jsx)(A.xv,{align:"center",weight:"bold",size:"300",children:f?M:U})});return(0,C.jsx)(Y,{isOpen:e,onDismiss:g?()=>{v(!1),d.Z.increment("mweb_sharesheet.contacts.collapse",1)}:()=>D(),shouldRenderFullHeight:g,shouldRenderCloseIcon:!0,childPaddingX:0,heading:F,children:(0,C.jsx)(A.kC,{justifyContent:"center",children:(0,C.jsxs)(A.xu,{marginBottom:8,marginTop:g||!f?0:-4,width:L?440:"100%",height:"100%",children:[f&&(0,C.jsx)(j,{sendObject:{objectId:r,objectType:i},expandContactsList:()=>{v(!0),d.Z.increment("mweb_sharesheet.contacts.expand",1)},isFullHeight:g,onDismiss:D,setShareSent:e=>E(e),viewType:c}),!g&&(0,C.jsxs)(n.Fragment,{children:[f&&(0,C.jsxs)(A.xu,{marginTop:4,paddingX:4,children:[(0,C.jsx)(A.iz,{}),(0,C.jsx)(A.xu,{marginTop:8,children:(0,C.jsx)(A.xv,{align:"center",size:"300",weight:"bold",children:U})})]}),(0,C.jsx)(a.Z,{objectId:r,objectType:i,viewType:N?c:70,viewParameter:u,onDismiss:D,setShareSent:e=>E(e),clientTrackingParams:s,component:K})]})]})})})}},878499:(e,t,i)=>{i.d(t,{$:()=>s,l:()=>l});var n=i(667294),a=i(425288),r=i(785893);const{Provider:o,useHook:s}=(0,a.Z)("ShareSuggestions");function l({children:e}){const[t,i]=(0,n.useState)(void 0),a=(0,n.useCallback)((()=>{i(void 0)}),[]),s=(0,n.useCallback)((e=>{i(e)}),[]),l=(0,n.useMemo)((()=>({cachedShareSuggestions:t,clearCachedShareSuggestions:a,updateCachedShareSuggestions:s})),[t,a,s]);return(0,r.jsx)(o,{value:l,children:e})}},86802:(e,t,i)=>{i.d(t,{B:()=>r,Cq:()=>a,F6:()=>u,RV:()=>n,VZ:()=>o,W_:()=>l,bm:()=>s,iS:()=>p,rO:()=>c,zn:()=>d});const n="animatedShareIconLastViewed",a="lastUsedSocialShare",r="customizedSocialAppOrder",o=44,s=9e5,l=4e3,d=5e3,c=new Set([12,3,11]),u=new Set([11,12]),p=new Map([["AU",6],["CA",6],["DK",6],["DZ",6],["GE",6],["HU",6],["LT",6],["NO",6],["NP",6],["NZ",6],["PH",6],["PL",6],["SK",6],["TN",6],["US",6],["JP",8],["TW",8],["TH",8],["IQ",20],["KH",20],["MM",20],["UZ",20],["BA",22],["BG",22],["BY",22],["CY",22],["GR",22],["MD",22],["RS",22],["UA",22]])},749049:(e,t,i)=>{i.d(t,{O:()=>n});const n=e=>{switch(e){case 2:return 331;case 3:return 12631;default:return 72}}},72566:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(667294),a=i(883119),r=i(785893);class o extends n.Component{constructor(...e){var t,i,n;super(...e),n=e=>{e&&(this.searchRef=e)},(i="setSearchRef")in(t=this)?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n}componentDidMount(){this.props.autoFocus&&this.searchRef.focus()}render(){const{accessibilityLabel:e,id:t,onBlur:i,onChange:n,onFocus:o,placeholder:s,value:l}=this.props;return(0,r.jsx)(a.Um,{accessibilityLabel:e,id:t,onBlur:i,onChange:n,onFocus:o,placeholder:s,ref:this.setSearchRef,size:"lg",value:l})}}},248299:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(166300),a=i(898781),r=i(883119),o=i(785893);function s({isPinRep:e}){const t=(0,a.ZP)(),i=e?"default":"inverse",s=(0,o.jsx)(r.xu,{padding:e?1:0,"data-test-id":"unavailable-pin",children:(0,o.jsx)(r.xu,{color:e?"secondary":"dark",top:!0,height:e?314:"100vh",position:e?"static":"absolute",rounding:e?4:0,width:"100%",children:(0,o.jsxs)(r.kC,{height:"100%",direction:"column",justifyContent:"center",alignItems:"center",children:[(0,o.jsx)(r.xu,{paddingY:4,children:(0,o.jsx)(r.JO,{accessibilityLabel:t.bt("Pin 图不可用", "Pin not available", "story-pin.Closeup.UnavailableStoryPin.icon.accessibilityLabel", undefined, true),color:i,icon:"alert",size:20})}),(0,o.jsx)(r.xv,{align:"center",color:i,weight:"bold",children:t.bt("不可用", "Unavailable", "story-pin.Closeup.UnavailableStoryPin.Unavailable", undefined, true)}),(0,o.jsx)(r.xu,{paddingY:1,children:(0,o.jsx)(r.xv,{align:"center",color:i,children:t.bt("由创建者移除", "Removed by the creator", "story-pin.Closeup.UnavailableStoryPin.Removed", undefined, true)})})]})})});return e?s:(0,o.jsx)(r.xu,{height:"100vh",children:(0,o.jsx)(n.Z,{children:s})})}},258430:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(883119),a=i(130460),r=i(785893);function o({boardId:e}){var t;const i=(0,a.gC)()(e),o=null!=i&&i.images&&i.images["170x"]?i.images["170x"][0]:void 0;return e&&o?(0,r.jsx)(n.Ee,{alt:"Pin image",color:"#efefef",fit:"cover",naturalHeight:1,naturalWidth:1,src:null!==(t=o.url)&&void 0!==t?t:""}):null}},759929:(e,t,i)=>{i.d(t,{k:()=>o,w:()=>r});var n=i(379764),a=i(883119);const r=2e3,o=new a.H3([n.Z])},430235:(e,t,i)=>{i.d(t,{Z:()=>T});var n,a=i(667294),r=i(248975),o=i(862628),s=i(898781),l=i(759177),d=i(667679),c=i(62409),u=i(349700),p=i(867820),_=i(350118),h=i(276775),m=i(780679),g=i(883119),v=i(167912),y=i(785893);const E=({children:e,onTap:t})=>{const[i,n]=(0,a.useState)(!1);return(0,y.jsx)(g.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:i?"rgba(0, 0, 0, 0.06)":void 0}},rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,y.jsx)(g.iP,{onTap:t,onBlur:()=>n(!1),onFocus:()=>n(!0),onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:e})})},f=void 0!==n?n:n=i(12617);function S({desktopContextMenuState:e,isMainPinImage:t,source:i,images:n,embedSrc:l,embedType:c,sourceUserUsername:_,sourceUserFullname:v,pinJoinVisualAnnotation:f,pinJoinSeoBreadcrumbName:S,pinJoinSeoBreadcrumbUrl:P,pinId:b,pinLink:T}){var A;const I=(0,s.ZP)(),x=(0,h.useHistory)(),C=(0,r.Z)({images:n,embedSrc:l,embedType:c}),O=S,R=P,w=null!==(A=null==f?void 0:f[0])&&void 0!==A?A:void 0,k=(0,o.Z)(w),D=`/search/pins/?q=${encodeURIComponent(k)}&rs=image_only_attribution`,N=(0,d.Z)(),L="dweb.plp.ellipsis.button"===i,M=(0,m.g)();return C?(0,y.jsxs)(g.xu,{"data-test-id":"desktop-context-menu",position:"fixed",dangerouslySetInlineStyle:{__style:{top:`${e.yPosition}px`,left:`${e.xPosition}px`}},zIndex:new g.Ry(99999),color:"default",rounding:2,borderStyle:"shadow",display:"flex",direction:"column",paddingY:3,paddingX:2,maxWidth:250,children:[(0,y.jsx)(g.xu,{rounding:2,paddingX:3,paddingY:2,role:"img",children:(0,y.jsx)(g.JO,{icon:"pinterest",accessibilityLabel:I.bt("Pinterest 图标", "Pinterest logo", "dweb.unauth.context_menu.pinterest_logo", undefined, true),color:"brandPrimary"})}),(0,y.jsx)(E,{onTap:()=>{(0,p.My)("dweb.unauth.context_menu.save_image"),N({reason:"UPSELL_LOGIN_OR_SIGNUP",attributionLabel:"tap_unauth_context_menu_download_image",desktopOptions:{modalType:"signup",modalOptions:{source:"saveButtonExp",container:"save",savePinId:b}}}),M&&M.setUpsellReason("click_context_menu_action_bar_ellipsis_save_button")},children:(0,y.jsx)(g.xv,{size:"200",weight:"bold",children:I.bt("收藏图片", "Save image", "dweb.unauth.context_menu.link.save_image", undefined, true)})}),!(t||L&&!T)&&(0,y.jsx)(E,{onTap:()=>{(0,p.My)(L?"dweb.unauth.context_menu.open_plp_new_tab.from.ellipsis.button":"dweb.unauth.context_menu.open_plp_new_tab"),window.open(L?T:`/pin/${b}/`),L||N({reason:"UPSELL_LOGIN_OR_SIGNUP",attributionLabel:"tap_unauth_context_menu_open_plp_new_tab",desktopOptions:{modalType:"login"}})},children:(0,y.jsx)(g.xv,{size:"200",weight:"bold",children:I.bt("在新标签页中打开链接", "Open link in new tab", "dweb.unauth.context_menu.link.plp_new_tab", undefined, true)})}),(w||!(!O||!R))&&(0,y.jsx)(E,{onTap:()=>{(0,p.My)("dweb.unauth.context_menu.see_more_pins"),R?x.push(`${R}`):x.push(D)},children:O?(0,y.jsx)(g.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,u.nk)(I.bt("查看更多关于 {{levelOneInterestName}} 的点子", "See more ideas about {{levelOneInterestName}}", "dweb.unauth.context_menu.link.see_more_ideas.l1", undefined, true),{levelOneInterestName:O})}):(0,y.jsx)(g.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,u.nk)(I.bt("查看更多关于 {{interestTag}} 的点子", "See more ideas about {{interestTag}}", "dweb.unauth.context_menu.link.see_more_ideas.interest_tag", undefined, true),{interestTag:w})})}),!(!v||!_)&&(0,y.jsx)(E,{onTap:()=>{(0,p.My)("dweb.unauth.context_menu.more_from_creator"),x.push(`/${_}/`)},children:(0,y.jsx)(g.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,u.nk)(I.bt("更多来自 {{full_name}} 的内容", "See more from {{full_name}}", "dweb.unauth.context_menu.link.more_from_creator", undefined, true),{full_name:v})})}),(0,y.jsx)(a.Fragment,{children:(0,y.jsx)(E,{onTap:()=>{(0,p.My)("dweb.unauth.context_menu.login_signup"),N({reason:"CLICK_LOGIN_OR_SIGNUP",attributionLabel:"tap_unauth_context_menu_login_signup",desktopOptions:{modalType:"login"}}),M&&M.setUpsellReason("click_context_menu_action_bar_ellipsis_signup_or_login_button")},children:(0,y.jsx)(g.xv,{size:"200",weight:"bold",children:I.bt("登录或注册以查看更多", "Log in or sign up for more", "dweb.unauth.context_menu.link.login_signup", undefined, true)})})})]}):null}function P({graphqlRef:e,pinId:t,useNativeCreatorAsPinner:i,...n}){var a,r,o,s,d;const c=(0,v.useFragment)(f,e),u=(0,l.Z)(c);let p;var _,h;(p=null!=c&&c.nativeCreator?c.nativeCreator:null!=c&&c.linkDomain?c.linkDomain.officialUser:(null==c?void 0:c.originPinner)||(null==c?void 0:c.pinner),p)||(p=null!==(_=null==c||null===(h=c.linkDomain)||void 0===h?void 0:h.officialUser)&&void 0!==_?_:null==c?void 0:c.pinner);return(0,y.jsx)(S,{...n,embedSrc:(null==c?void 0:c.embed)&&c.embed.src,embedType:(null==c?void 0:c.embed)&&c.embed.type,images:u,sourceUserUsername:null===(a=p)||void 0===a?void 0:a.username,sourceUserFullname:null===(r=p)||void 0===r?void 0:r.fullName,pinJoinVisualAnnotation:null==c||null===(o=c.pinJoin)||void 0===o?void 0:o.visualAnnotation,pinJoinSeoBreadcrumbName:(null==c||null===(s=c.pinJoin)||void 0===s?void 0:s.seoBreadcrumbs)&&(c.pinJoin.seoBreadcrumbs.length>0?c.pinJoin.seoBreadcrumbs[0].name:null),pinJoinSeoBreadcrumbUrl:(null==c||null===(d=c.pinJoin)||void 0===d?void 0:d.seoBreadcrumbs)&&(c.pinJoin.seoBreadcrumbs.length>0?c.pinJoin.seoBreadcrumbs[0].url:null),pinId:t})}function b({graphqlRef:e,pinId:t,useNativeCreatorAsPinner:i,...n}){var a,r,o,s,l,d;const u=(0,_.S6)()(t),{link_domain:p,native_creator:h,origin_pinner:m,pinner:g}=u||{};let v=(0,c.wS)(p,h,m,g);var E,f;v||(v=null!==(E=null==u||null===(f=u.link_domain)||void 0===f?void 0:f.official_user)&&void 0!==E?E:null==u?void 0:u.pinner);const{full_name:P,username:b}=null!==(a=v)&&void 0!==a?a:{};return(0,y.jsx)(S,{...n,embedSrc:null==u||null===(r=u.embed)||void 0===r?void 0:r.src,embedType:null==u||null===(o=u.embed)||void 0===o?void 0:o.type,images:null==u?void 0:u.images,sourceUserUsername:P,sourceUserFullname:b,pinJoinVisualAnnotation:null==u||null===(s=u.pin_join)||void 0===s?void 0:s.visual_annotation,pinJoinSeoBreadcrumbName:(null==u||null===(l=u.pin_join)||void 0===l?void 0:l.seo_breadcrumbs)&&(u.pin_join.seo_breadcrumbs.length>0?u.pin_join.seo_breadcrumbs[0].name:null),pinJoinSeoBreadcrumbUrl:(null==u||null===(d=u.pin_join)||void 0===d?void 0:d.seo_breadcrumbs)&&(u.pin_join.seo_breadcrumbs.length>0?u.pin_join.seo_breadcrumbs[0].url:null),pinId:t})}function T(e){return e.graphqlRef?(0,y.jsx)(P,{...e}):(0,y.jsx)(b,{...e})}},447409:(e,t,i)=>{i.d(t,{n:()=>b,Z:()=>T});var n=i(702664),a=i(598615),r=i(821997),o=i(966476);const s=({children:e,fallback:t})=>(()=>{const e=(0,n.useSelector)((e=>{var t;return!(null==e||null===(t=e.session)||void 0===t||!t.isSeoBot)})),t=(0,o.Z)();return!e&&!t})()?t||null:e;var l=i(938917),d=i(898781),c=i(893101),u=i(112690),p=i(867820),_=i(780280);var h=i(52022),m=i(643010),g=i(948376),v=i(773285),y=i(385740),E=i(53987),f=i(883119),S=i(276775),P=i(785893);const b=56;function T(){const e=(0,d.ZP)(),t=(0,S.useLocation)(),i=(0,S.useHistory)(),{viewType:o,viewParameter:T}=(0,y.SU)(),{userAgentPlatform:A,userAgent:I}=(0,n.useSelector)((({session:e})=>e)),x=(0,g.Rp)({platform:A,userAgent:I}),C=(0,c.Z)(),O=function(){const{isBot:e}=(0,_.B)();return(t,i)=>{e||(0,p.NC)(t,i)}}(),R=(0,l.Z)(),{checkExperiment:w}=(0,v.F)(),k=(0,u.Z)(),D=(0,h.Z)(),N=e.bt("登录", "Log in", "Label for log in button", undefined, true),L=e.bt("注册", "Sign up", "Text on button on the top bar that leads users to signing up.", undefined, true),M=e.bt("下载", "Download", "mweb.unauth.interstitial_upsell.download_button_text", undefined, true),j=!x&&!(0,E.Xn)(t),U=((0,E.dr)(t)||(0,E.$Y)(t)||(0,E.E0)(t))&&!w("lex_follow_button").group.includes("main_cta"),F=!R||C||U?"signup":"download",V=(j?N.length:0)+("signup"===F?L.length:0)+("download"===F?M.length:0);return(0,P.jsx)(f.xu,{dangerouslySetInlineStyle:{__style:{boxShadow:"0 1px 0 0 rgba(0, 0, 0, 0.08)",backgroundColor:(0,m.Yc)()?"#333":"white",transition:"all 225ms cubic-bezier(0.0,0.0,0.2,1) 500ms",transform:"translateY(0)"}},top:!0,left:!0,width:"100vw",position:"relative",paddingX:3,children:(0,P.jsxs)(f.xu,{alignItems:"center","data-test-id":"unauth-header",direction:"row",display:"flex",justifyContent:"between",children:[(0,P.jsx)(f.iP,{accessibilityLabel:e.bt("Pinterest 应用", "Pinterest App", "Pinterest icon for app upsell", undefined, true),onTap:()=>{D({action:"click",within:"unauth-header",item:"pinterest-logo"})},children:(0,P.jsxs)(f.xu,{alignItems:"center",display:"flex",direction:"row",marginEnd:3,children:[(0,P.jsx)(f.xu,{alignItems:"center",display:"flex",height:b,justifyContent:"center",rounding:2,"data-test-id":"pinterest-logo-icon",children:(0,P.jsx)(f.iP,{role:"link",tapStyle:"none",href:"/",children:x?(0,P.jsx)(r.Z,{size:24}):(0,P.jsx)(f.hU,{icon:"pinterest",iconColor:"brandPrimary",padding:1,size:"xl",accessibilityLabel:e.bt("Pinterest 应用", "Pinterest App", "Pinterest icon for app upsell", undefined, true)})})}),(0,P.jsx)(f.xu,{paddingY:2,paddingX:1,"data-test-id":"pinterest-logo-text",children:V<18&&(0,P.jsxs)(f.xu,{children:[(0,P.jsx)(f.X6,{color:"error",size:"400",overflow:"normal",children:x?e.bt("Pinterest Lite", "Pinterest Lite", "Pinterest lite brand for the app upsell", undefined, true):e.bt("Pinterest", "Pinterest", "Pinterest brand for the app upsell", undefined, true)}),x&&(0,P.jsx)(f.xu,{dangerouslySetInlineStyle:{__style:{whiteSpace:"pre-wrap"}},children:(0,P.jsx)(f.xu,{children:(0,P.jsx)(f.xv,{inline:!0,size:"100",color:"subtle",children:e.bt("节省设备空间", "Save space on your device", "Unauth app upsell copy that describe Pinterest product core value to users", undefined, true)})})})]})})]})}),(0,P.jsx)(s,{children:(0,P.jsxs)(f.xu,{marginEnd:0,flex:"none",alignItems:"center",display:"flex",direction:"row","data-test-id":"UnauthAppUpsellButton",children:[j&&(0,P.jsx)(f.xu,{"data-test-id":"login-button",children:(0,P.jsx)(f.zx,{fullWidth:!0,color:"white",onClick:()=>{D({action:"click",within:"unauth-header",item:"login-button"}),k({component:13198,element:30,event_type:102,view_type:o,view_parameter:T}),O("press_header_login"),k({event_type:10241,element:30,component:14213,view_type:o,view_parameter:T,aux_data:{upsell_reason:"click_login_on_header"}}),i.push({pathname:"/login",state:{attributionLabel:"click_login_on_header",...t.state}})},size:"md",text:N})}),"signup"===F?(0,P.jsx)(f.xu,{"data-test-id":"signup-button",children:(0,P.jsx)(f.zx,{fullWidth:!0,color:U?"red":"gray",onClick:()=>{D({action:"click",within:"unauth-header",item:"signup-button"}),k({component:13198,element:31,event_type:102,view_type:o,view_parameter:T}),O("press_header_signup"),k({event_type:10241,element:31,component:14215,view_type:o,view_parameter:T,aux_data:{upsell_reason:"click_signup_on_header"}}),i.push({pathname:"/signup",state:{attributionLabel:"click_signup_on_header",...t.state}})},size:"md",text:L})}):(0,P.jsx)(f.xu,{"data-test-id":"download-button",children:(0,P.jsx)(a.Z,{componentType:14161,within:"unauth-header",children:({handleOpenApp:e})=>(0,P.jsx)(f.zx,{fullWidth:!0,color:(0,E.j8)(t)||w("lex_follow_button").group.includes("main_cta")?"gray":"red",onClick:()=>e(),size:"md",text:M})})})]})})]})})}},874317:(e,t,i)=>{i.d(t,{Yw:()=>T,ZP:()=>O,nt:()=>b});var n,a=i(598615),r=i(326960),o=i(248975),s=i(63552),l=i(862628),d=i(938917),c=i(898781),u=i(759177),p=i(667679),_=i(62409),h=i(349700),m=i(867820),g=i(538232),v=i(773285),y=i(350118),E=i(276775),f=i(883119),S=i(167912),P=i(785893);const b=250,T={WebkitTouchCallout:"none",WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",KhtmlUserSelect:"none",UserSelect:"none"},A=void 0!==n?n:n=i(167074);function I({mwebContextMenuState:e,openShareModal:t,setMwebContextMenuState:i,pinId:n,images:u,embedSrc:_,embedType:y,sourceUserUsername:S,sourceUserFullname:T,pinDownloadFilename:A,pinImageSignature:I,pinJoinVisualAnnotation:x,pinJoinSeoBreadcrumbName:C,pinJoinSeoBreadcrumbUrl:O}){var R;const w=(0,c.ZP)(),k=(0,E.useHistory)(),D=(0,o.Z)({images:u,embedSrc:_,embedType:y}),{isChromeOnIOS:N}=(0,g.R)(),L=C,M=O,j=null!==(R=null==x?void 0:x[0])&&void 0!==R?R:void 0,U=(0,l.Z)(j),F=`/search/pins/?q=${encodeURIComponent(U)}&rs=image_only_attribution`,V=(0,p.Z)(),B=(0,g.R)(),{checkExperiment:G}=(0,v.F)(),H=(0,d.Z)();return D?(0,P.jsxs)(f.xu,{"data-test-id":"mobile-context-menu",position:"absolute",dangerouslySetInlineStyle:{__style:{top:`${e.yPosition}px`,left:`${e.xPosition}px`}},zIndex:new f.Ry(99999),color:"default",rounding:2,borderStyle:"shadow",display:"flex",direction:"column",paddingY:3,paddingX:2,maxWidth:b,children:[(0,P.jsxs)(f.xu,{rounding:2,paddingX:3,paddingY:2,role:"img",direction:"row",display:"flex",alignItems:"center",justifyContent:"between",children:[(0,P.jsx)(f.JO,{icon:"pinterest",accessibilityLabel:w.bt("Pinterest 图标", "Pinterest logo", "unauth.mweb.context_menu.pinterest_logo", undefined, true),color:"brandPrimary"}),(0,P.jsx)(f.xu,{alignSelf:"end","data-test-id":"mobile-context-menu-cancel-button",children:(0,P.jsx)(f.iP,{onTap:({event:e})=>{e.stopPropagation(),i(null)},children:(0,P.jsx)(f.JO,{icon:"cancel",accessibilityLabel:w.bt("忽略 mweb 背景菜单", "Dismiss mweb context menu", "unauth.mweb.context_menu.dismiss", undefined, true)})})})]}),"main"===e.context&&H&&G("mweb_main_pin_ltcm_open_in_app").anyEnabled&&(0,P.jsx)(a.Z,{componentType:18,within:"mweb-context-menu",children:({handleOpenApp:e})=>(0,P.jsx)(f.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,P.jsx)(f.iP,{onTap:({event:t})=>{t.stopPropagation(),i(null),e({deepLinkUri:`/pin/${n}/`}),(0,m.My)("unauth.mweb.context_menu.open_in_app")},children:(0,P.jsx)(f.xv,{size:"200",weight:"bold",children:w.bt("在应用中打开", "Open in App", "unauth.mweb.context_menu.link.open_in_app", undefined, true)})})})}),["download","short_d"].includes(e.context)&&I?(0,P.jsx)(f.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,P.jsx)(r.Z,{imgSrc:D,isChromeOnIOS:N,filename:A,pinId:n,viewType:3,imageSignature:I,children:e=>(0,P.jsx)(s.Z,{pressState:"none",onTouch:t=>{e().then((()=>{t.stopPropagation(),i(null),(0,m.My)("unauth.mweb.context_menu.download_image")}))},children:(0,P.jsx)(f.xv,{size:"200",weight:"bold",children:w.bt("下载图片", "Download image", "unauth.mweb.related_pin.context_menu.link.download_image", undefined, true)})})})}):(0,P.jsx)(f.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,P.jsx)(f.iP,{onTap:({event:e})=>{e.stopPropagation(),i(null),(0,m.My)("unauth.mweb.context_menu.save_image"),e&&B.saveButtonConfig.onSaveButtonClick(e)},children:(0,P.jsx)(f.xv,{size:"200",weight:"bold",children:w.bt("收藏图片", "Save image", "unauth.mweb.context_menu.link.save_image", undefined, true)})})}),["download","save","short_s","short_d"].includes(e.context)&&(0,P.jsx)(f.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,P.jsx)(f.iP,{onTap:({event:e})=>{e.stopPropagation(),i(null),t&&t(!0),(0,m.My)("unauth.mweb.context_menu.share_related_pin")},children:(0,P.jsx)(f.xv,{size:"200",weight:"bold",children:w.bt("分享图片", "Share image", "unauth.mweb.context_menu.link.share_menu", undefined, true)})})}),(0,P.jsx)(f.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,P.jsx)(f.iP,{onTap:({event:e})=>{e.stopPropagation(),i(null),(0,m.My)("unauth.mweb.context_menu.open_plp_new_tab"),window.open(`/pin/${n}/`)},children:(0,P.jsx)(f.xv,{size:"200",weight:"bold",children:w.bt("在新标签页中打开链接", "Open link in new tab", "unauth.mweb.context_menu.link.plp_new_tab", undefined, true)})})}),["download","save","main"].includes(e.context)&&(j||!(!L||!M))&&(0,P.jsx)(f.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,P.jsx)(f.iP,{onTap:()=>{(0,m.My)("unauth.mweb.context_menu.see_more_pins"),k.push(M?`${M}`:F)},children:L?(0,P.jsx)(f.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,h.nk)(w.bt("查看更多关于 {{levelOneInterestName}} 的点子", "See more ideas about {{levelOneInterestName}}", "unauth.mweb.context_menu.link.see_more_ideas.l1", undefined, true),{levelOneInterestName:L})}):(0,P.jsx)(f.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,h.nk)(w.bt("查看更多关于 {{interestTag}} 的点子", "See more ideas about {{interestTag}}", "unauth.mweb.context_menu.link.see_more_ideas.interest_tag", undefined, true),{interestTag:j})})})}),["download","save","main"].includes(e.context)&&!(!T||!S)&&(0,P.jsx)(f.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,P.jsx)(f.iP,{onTap:()=>{(0,m.My)("unauth.mweb.context_menu.more_from_creator"),k.push(`/${S}/`)},children:(0,P.jsx)(f.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,h.nk)(w.bt("更多来自 {{full_name}} 的内容", "See more from {{full_name}}", "unauth.context_menu.link.more_from_creator", undefined, true),{full_name:T})})})}),(0,P.jsx)(f.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,P.jsx)(f.iP,{onTap:({event:e})=>{e.stopPropagation(),i(null),(0,m.My)("unauth.mweb.context_menu.login_signup"),V({reason:"CLICK_LOGIN_OR_SIGNUP",attributionLabel:"tap_unauth_context_menu_login_signup"})},children:(0,P.jsx)(f.xv,{size:"200",weight:"bold",children:w.bt("登录或注册以查看更多", "Log in or sign up for more", "unauth.mweb.context_menu.link.login_signup", undefined, true)})})})]}):null}function x({graphqlRef:e,pinId:t,...i}){var n,a,r,o,s;const l=(0,S.useFragment)(A,e),d=(0,u.Z)(l);let c;var p,_;(c=null!=l&&l.nativeCreator?l.nativeCreator:null!=l&&l.linkDomain?l.linkDomain.officialUser:(null==l?void 0:l.originPinner)||(null==l?void 0:l.pinner),c&&"string"!=typeof c)||(c=null!==(p=null==l||null===(_=l.linkDomain)||void 0===_?void 0:_.officialUser)&&void 0!==p?p:null==l?void 0:l.pinner);const h=(null==l?void 0:l.gridTitle)||(null==l?void 0:l.closeupUnifiedDescription),m=null==l?void 0:l.imageSignature;return(0,P.jsx)(I,{...i,embedSrc:(null==l?void 0:l.embed)&&l.embed.src,embedType:(null==l?void 0:l.embed)&&l.embed.type,images:d,sourceUserUsername:null===(n=c)||void 0===n?void 0:n.username,sourceUserFullname:null===(a=c)||void 0===a?void 0:a.fullName,pinDownloadFilename:h,pinImageSignature:m,pinJoinVisualAnnotation:null==l||null===(r=l.pinJoin)||void 0===r?void 0:r.visualAnnotation,pinJoinSeoBreadcrumbName:(null==l||null===(o=l.pinJoin)||void 0===o?void 0:o.seoBreadcrumbs)&&(l.pinJoin.seoBreadcrumbs.length>0?l.pinJoin.seoBreadcrumbs[0].name:null),pinJoinSeoBreadcrumbUrl:(null==l||null===(s=l.pinJoin)||void 0===s?void 0:s.seoBreadcrumbs)&&(l.pinJoin.seoBreadcrumbs.length>0?l.pinJoin.seoBreadcrumbs[0].url:null),pinId:t})}function C({graphqlRef:e,pinId:t,...i}){var n,a,r,o,s,l;const d=(0,y.S6)()(t),{link_domain:c,native_creator:u,origin_pinner:p,pinner:h}=d||{};let m=(0,_.wS)(c,u,p,h);var g,v;m&&"string"!=typeof m||(m=null!==(g=null==d||null===(v=d.link_domain)||void 0===v?void 0:v.official_user)&&void 0!==g?g:h);const{full_name:E,username:f}=null!==(n=m)&&void 0!==n?n:{},S=(null==d?void 0:d.grid_title)||(null==d?void 0:d.closeup_unified_description),b=null==d?void 0:d.image_signature;return(0,P.jsx)(I,{...i,embedSrc:null==d||null===(a=d.embed)||void 0===a?void 0:a.src,embedType:null==d||null===(r=d.embed)||void 0===r?void 0:r.type,images:null==d?void 0:d.images,sourceUserUsername:E,sourceUserFullname:f,pinDownloadFilename:S,pinImageSignature:b,pinJoinVisualAnnotation:null==d||null===(o=d.pin_join)||void 0===o?void 0:o.visual_annotation,pinJoinSeoBreadcrumbName:(null==d||null===(s=d.pin_join)||void 0===s?void 0:s.seo_breadcrumbs)&&(d.pin_join.seo_breadcrumbs.length>0?d.pin_join.seo_breadcrumbs[0].name:null),pinJoinSeoBreadcrumbUrl:(null==d||null===(l=d.pin_join)||void 0===l?void 0:l.seo_breadcrumbs)&&(d.pin_join.seo_breadcrumbs.length>0?d.pin_join.seo_breadcrumbs[0].url:null),pinId:t})}function O(e){return e.graphqlRef?(0,P.jsx)(x,{...e}):(0,P.jsx)(C,{...e})}},893101:(e,t,i)=>{i.d(t,{Z:()=>h});var n=i(702664),a=i(172071),r=i(938917),o=i(436851),s=i(948376),l=i(50286),d=i(276775),c=i(780280),u=i(56390),p=i(339363),_=i(53987);const h=()=>{const{isBot:e}=(0,c.B)(),t=(0,d.useLocation)(),{userAgentPlatform:i,userAgent:h}=(0,n.useSelector)((e=>e.session)),m=(0,r.Z)(),g=(0,l.ml)();return!e&&!(g&&!m)&&!(0,s.Rp)({platform:i,userAgent:h})&&((0,_.uM)(t)||(0,_.am)(t))&&!(0,u.P)()&&!(e=>!!(0,o.d)(e)&&((0,p.qn)("ufausfiiab")||(a.Z.increment("unauth.floating_app_upsell.suppress_for_instagram_in_app_browser"),(0,p.Nh)("ufausfiiab","1")),!0))(h)}},862193:(e,t,i)=>{i.d(t,{Z:()=>s});var n,a=i(667294),r=i(167912);const o=void 0!==n?n:n=i(569772),s=e=>{var t;const i=(0,r.useFragment)(o,e),n=null==i||null===(t=i.pinJoin)||void 0===t?void 0:t.annotationsWithLinksArray;return(0,a.useMemo)((()=>null==n?void 0:n.reduce(((e,{name:t,url:i})=>t?{...e,[t]:{name:t,url:i}}:e),{})),[n])}},865673:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),a=i(512176),r=i(883119),o=i(785893);const s=function({badgeSize:e,badgeSpacing:t,fullName:i,verifiedType:s,truncate:l=!1}){const d=i.split(" "),c=d.slice(0,d.length-1).join(" "),u=" ".concat(d[d.length-1]);return l?(0,o.jsxs)(r.kC,{alignItems:"stretch",justifyContent:"start",children:[(0,o.jsx)(r.xv,{lineClamp:1,weight:"bold",children:i}),(0,o.jsx)(r.xu,{flex:"none",position:"relative",dangerouslySetInlineStyle:{__style:{top:t}},paddingX:1,children:(0,o.jsx)(a.Z,{isVerifiedMerchant:"verifiedMerchant"===s,size:e,showVerifiedIdentity:"verifiedIdentity"===s})})]}):(0,o.jsxs)(n.Fragment,{children:[(0,o.jsx)("span",{children:c}),(0,o.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[u," ",(0,o.jsx)(r.xu,{display:"inlineBlock",flex:"none",position:"relative",dangerouslySetInlineStyle:{__style:{top:t}},children:(0,o.jsx)(a.Z,{isVerifiedMerchant:"verifiedMerchant"===s,size:e,showVerifiedIdentity:"verifiedIdentity"===s})})]})]})}},926749:(e,t,i)=>{i.d(t,{ZP:()=>T});var n=i(667294),a=i(23279),r=i.n(a),o=i(722767);function s(e){const{eventData:{videoEvent:{videoDuration:t,startTime:i,endTime:n,videoStartTime:a,videoEndTime:r,isAudible:o,height:s,width:l,playbackState:d,quartile:c,quartilePercentValue:u,windowHeight:p,windowWidth:_,viewability:h}},component:m,objectId:g,view:v,viewParameter:y,...E}=e;return{component:m,object_id_str:g,view_type:v,view_parameter:y,aux_data:{...E},event_data:{videoEventData:{videoDuration:t,time:i,endTime:n,videoTime:a,endVideoTime:r,isAudible:o,height:s,width:l,playbackState:d,quartile:c,quartilePercentValue:u,windowHeight:p,windowWidth:_,viewability:h}}}}var l=i(121630),d=i(944546),c=i(407043),u=i(158103),p=i(883119),_=i(785893);function h(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const m=[0,.25,.5,.75,.95,.97],g=[0,.5,.8,.99,1],v="-64px 0px 0px 0px",y={rootMargin:v,threshold:g},E={rootMargin:v,threshold:d.iM},f=Object.freeze({LOADING:0,PLAYING:1,PAUSED:2,STALLING:3});function S(){return(new Date).getTime()}function P(e){return!!e.volume&&e.volume>0}class b extends n.Component{constructor(e){super(e),h(this,"videoWrapperRef",(0,n.createRef)()),h(this,"handleWindowResize",(()=>{if(!this.fullscreen){const e=this.getDimensions(),{height:t,width:i}=this.currentInterval;e.height!==t||e.width!==i?this.startNewInterval(e):(this.currentInterval.windowHeight=e.windowHeight,this.currentInterval.windowWidth=e.windowWidth)}})),h(this,"handlePlayheadDown",(({event:e})=>{const{onPlayheadDown:t}=this.props;this.setState({seeking:!0}),t&&t({event:e})})),h(this,"handlePlayheadUp",(({event:e})=>{const{onPlayheadUp:t}=this.props;this.setState({seeking:!1}),t&&t({event:e})})),h(this,"handleLoop",(()=>{this.videoTime=0})),h(this,"handleTimeChange",(e=>{const{seeking:t,ready:i}=this.state;if(!this.currentInterval.videoDuration)return;const n=1e3*e.time,a=function(e,t,i,n){if(e>t)return null;if(i<=0)return null;for(const a of n){const n=a*i;if(e<=n&&t>n)return a}return null}(this.videoTime,n,this.currentInterval.videoDuration,m);if("number"==typeof a&&this.props.playing&&!t&&i){const e=S();this.logVideoEvent(6906,{...this.currentInterval,startTime:e,endTime:e,videoStartTime:0,videoEndTime:0,quartile:Math.floor(4*a),quartilePercentValue:a})}this.videoTime=n,this.props.onTimeChange&&this.props.onTimeChange(e)})),h(this,"handleDurationChange",(e=>{this.currentInterval.videoDuration=1e3*e.duration,this.props.onDurationChange&&this.props.onDurationChange(e)})),h(this,"handleReady",(e=>{const{ready:t}=this.state;t||this.setState({ready:!0}),this.props.onReady&&this.props.onReady(e)})),h(this,"handleEnded",(e=>{this.logFourthQuartileEvent(),this.props.loop&&(this.startNewInterval(),this.currentInterval.videoStartTime=0),this.props.onEnded&&this.props.onEnded(e)})),h(this,"handleVisibilityChange",((e,t)=>{if(0===e.length)return;const i=e.slice(-1)[0],n=function(e,t){for(let i=0;i<t.length;i+=1){const n=t[i],a=t[i+1];if(null==a)return n;if(n<=e&&e<a)return n}return null}(Number.parseFloat(i.intersectionRatio.toFixed(2)),g);"number"==typeof n&&(this.visible=n>=.5),null==n||n===this.currentInterval.viewability||this.fullscreen||(0===n?this.startNewInterval({viewability:n,playbackState:f.PAUSED}):this.startNewInterval({viewability:n}))})),h(this,"handleFullscreenChange",(({event:e,fullscreen:t})=>{if(t){const{height:e,width:t}=window.screen;this.startNewInterval({height:e,width:t,windowHeight:e,windowWidth:t})}else t||this.startNewInterval(this.getDimensions());this.fullscreen=t,this.props.onFullscreenChange&&this.props.onFullscreenChange({event:e,fullscreen:t})})),h(this,"handleClose",(()=>{this.startNewInterval()})),h(this,"handleContextMenu",(e=>{e.preventDefault()})),this.state={ready:!1,seeking:!1};const t=S();this.handleWindowResize=r()(this.handleWindowResize,1e3),this.currentInterval={videoDuration:0,startTime:t,endTime:t,videoStartTime:0,videoEndTime:0,isAudible:P(e),playbackState:this.getPlaybackState(e,this.state),quartile:-1,quartilePercentValue:0,height:null,width:null,windowHeight:null,windowWidth:null,viewability:null},this.videoTime=0,this.fullscreen=!1,this.visible=null}componentDidMount(){this.currentInterval={...this.currentInterval,...this.getDimensions()},window.addEventListener("resize",this.handleWindowResize),window.addEventListener("beforeunload",this.handleClose)}componentDidUpdate(e,t){const i={};P(e)&&!P(this.props)?i.isAudible=!1:!P(e)&&P(this.props)&&(i.isAudible=!0);const n=this.getPlaybackState(this.props,this.state);this.getPlaybackState(e,t)!==n&&(i.playbackState=n),Object.keys(i).length>0&&this.startNewInterval(i)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("beforeunload",this.handleClose),this.startNewInterval()}getPlaybackState(e,t){return t.ready?e.playing&&!t.seeking?f.PLAYING:f.PAUSED:f.LOADING}getDimensions(){let e,t;if(this.videoWrapperRef.current){const i=this.videoWrapperRef.current;i.clientHeight&&i.clientWidth&&(e=i.clientHeight,t=i.clientWidth)}return{height:e,width:t,windowHeight:window.innerHeight,windowWidth:window.innerWidth}}logVideoEvent(e,t){const{closeupStoryPinViewability:i,contextLogData:n,logContextEvent:a}=this.props,{height:r,width:o,windowHeight:l,windowWidth:d,viewability:c,...u}=t;if(null!=r&&null!=o&&null!=l&&null!=d&&null!=c){const t={...u,height:r,width:o,windowHeight:l,windowWidth:d,viewability:i||c};a({event_type:e,...s({...n,view:this.fullscreen?108:n.view,eventData:{videoEvent:t}})})}}logFourthQuartileEvent(){const e=S();this.logVideoEvent(6906,{...this.currentInterval,startTime:e,endTime:e,videoStartTime:0,videoEndTime:0,quartile:4,quartilePercentValue:1})}startNewInterval(e){const t=S();this.logVideoEvent(6904,{...this.currentInterval,endTime:t,videoEndTime:this.videoTime}),this.currentInterval={...this.currentInterval,...e,startTime:t,videoStartTime:this.videoTime,endTime:-1,videoEndTime:-1}}render(){const{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:s,aspectRatio:d,backgroundColor:c,captions:h,contextLogData:m,controls:g,cropHeight:v,hlsConfig:f,inAdsDesktopVideoExperiment:S,isAutoPlay:P,loop:b,objectFit:T,onLoadedChange:A,onControlsPause:I,onControlsPlay:x,onSeek:C,onVolumeChange:O,playbackRate:R,playing:w,playsInline:k,poster:D,preload:N,rootMargin:L,src:M,surface:j,videoStartTime:U,volume:F}=this.props,{seeking:V}=this.state,B=S?E:y;return void 0!==L&&(B.rootMargin=j?(0,l.e)(j):L),(0,_.jsx)(o.Z,{options:B,onVisibilityChange:this.handleVisibilityChange,children:(0,_.jsx)(p.xu,{ref:this.videoWrapperRef,onContextMenu:this.handleContextMenu,dangerouslySetInlineStyle:{__style:v?{display:"flex",alignItems:"center",height:`${v}px`}:{}},children:(0,_.jsx)(u.default,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:s,aspectRatio:v?236/v:d,backgroundColor:c,captions:h,contextLogData:m,controls:g,hlsConfig:f,isAutoPlay:P,loop:b,objectFit:T,onDurationChange:this.handleDurationChange,onEnded:this.handleEnded,onFullscreenChange:this.handleFullscreenChange,onLoadedChange:A,onLoop:this.handleLoop,onControlsPause:I,onControlsPlay:x,onPlayheadDown:this.handlePlayheadDown,onPlayheadUp:this.handlePlayheadUp,onReady:this.handleReady,onSeek:C,onTimeChange:this.handleTimeChange,onVolumeChange:O,playbackRate:R,playing:!V&&w,onPlay:()=>{},onPlayError:()=>{},playsInline:k,poster:D,preload:N,src:M,videoStartTime:U,visible:this.visible,volume:F})})})}}function T(e){const{logContextEvent:t}=(0,c.v)();return(0,_.jsx)(b,{...e,logContextEvent:t})}h(b,"defaultProps",p.nk.defaultProps)},158103:(e,t,i)=>{i.r(t),i.d(t,{VideoWrapper:()=>P,default:()=>b,getPlaylistSourceSrc:()=>S});var n=i(667294),a=i(19121),r=i(965900),o=i(407043),s=i(773285),l=i(858416),d=i(780280),c=i(883119),u=i(969315),p=i(179888),_=i(785893);function h(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function m(e,t){if(!e||void 0===e)return"undefined";if("string"==typeof e){let i=e;if(t){const n="control"===t?"v3.pinimg.com":"v2.pinimg.com";i=e.replace("v.pinimg.com",n)}return i}if(Array.isArray(e)&&e[0].src){let i=e[0].src;if(t){const e="control"===t?"v3.pinimg.com":"v2.pinimg.com";i=i.replace("v.pinimg.com",e)}return i}return"unsupported_type_"+typeof e}class g extends n.Component{constructor(...e){super(...e),h(this,"state",{canPlayVideo:!1,playbackState:p.Cy.DEFAULT}),h(this,"errorRetryCount",2),h(this,"hasSegmentStarted",!1),h(this,"hasPlaybackStarted",!1),h(this,"hasVideoSessionStarted",!1),h(this,"hasVideoSessionEnded",!1),h(this,"lastStallTime",null),h(this,"lastPauseTime",null),h(this,"logSessionStartOnNextPlay",!1),h(this,"playerId",""),h(this,"videoSessionId",""),h(this,"videoVisibleTime",null),h(this,"playbackPerformance",{canPlayTime:null,detailedErrors:"",errorCode:0,errorName:"",errorReason:"",hasFatalError:!1,loadStartTime:null,numberOfStalls:0,numberOfSeeks:0,playbackStartTimestamp:null,segments:[],srcString:m(this.props.src,this.props.quicExpGroup),totalStallDurationMs:0,totalPauseDurationMs:0}),h(this,"componentDidMount",(()=>{const{contextLogData:e={},playing:t}=this.props,{is_closeup_video:i=!1}=e;(0,u.tE)("videoMounted",!1,i),t&&(this.videoVisibleTime=new Date,this.logPlaybackPerformance(p.DR,{initiator:"mount"}))})),h(this,"componentDidUpdate",(e=>{const{playing:t,visible:i,appInFocus:n}=this.props;e.appInFocus&&!n&&(this.logPlaybackPerformance(p.$f,{initiator:"update"}),this.logSessionStartOnNextPlay=!0),e.visible&&!1===i&&(this.logSessionStartOnNextPlay=!1,this.updatePauseDuration(),this.logPlaybackPerformance(p.$f,{initiator:"update"})),!1===e.visible&&!0===i&&(this.videoVisibleTime=this.videoVisibleTime||new Date,t?(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(p.DR,{initiator:"update"})):this.logSessionStartOnNextPlay=!0),t&&n&&this.logSessionStartOnNextPlay&&(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(p.DR,{initiator:"update"}),this.logSessionStartOnNextPlay=!1)})),h(this,"addSegment",(()=>{const{canPlayTime:e,loadStartTime:t,segments:i,srcString:n}=this.playbackPerformance;let a=-1;e&&t&&0===i.length&&(a=e>t?e-t:0);const r=this.videoPlayerRef&&this.videoPlayerRef.video,o={indicatedKbps:-1,duration:r&&r.duration*p.gJ||-1,lastStartPlayTime:null,level:-1,numServerAddressChange:-1,observedKbps:-1,playbackStartDate:null,serverAddress:"",sourceWidth:-1,sourceHeight:-1,startupTimeMs:a,switchBitrateKbps:-1,uri:n,viewportWidth:r&&r.clientWidth||-1,viewportHeight:r&&r.clientHeight||-1,watchedDurationMs:0};i.push(o)})),h(this,"getCurrentVideoTime",(()=>this.videoPlayerRef&&this.videoPlayerRef.video?this.videoPlayerRef.video.currentTime*p.gJ:0)),h(this,"getVideoResourceTiming",(()=>{var e,t;if(null!==(e=window)&&void 0!==e&&null!==(t=e.performance)&&void 0!==t&&t.getEntriesByName&&this.playbackPerformance.srcString){const e=window.performance.getEntriesByName(this.playbackPerformance.srcString);return e.length>0&&e[0]||null}return null})),h(this,"handleCanPlayVideo",(e=>{const{contextLogData:t={},onReady:i,playing:n}=this.props,{is_closeup_video:a=!1}=t,{canPlayVideo:r}=this.state;(0,u.tE)("handleCanPlayVideo",!1,a,{firstCanPlayEvent:!r,playing:n}),this.playbackPerformance.hasFatalError=!1,r||(this.playbackPerformance.canPlayTime=new Date),this.setState({canPlayVideo:!0}),i&&i(e)})),h(this,"handleEnded",(e=>{const{loop:t,onEnded:i}=this.props,{segments:n}=this.playbackPerformance,a=n&&n[n.length-1];t&&this.videoPlayerRef&&this.videoPlayerRef.video?(this.updateWatchDurationForCurrentSegment(),a&&(a.lastStartPlayTime=0),this.hasSegmentStarted=!1):t||this.logPlaybackPerformance(p.$f,{initiator:"videoEnded",loop:t}),this.setState({playbackState:p.Cy.ENDED}),i&&i(e)})),h(this,"handleError",(()=>{var e,t,i,n,a,r,o,s;const{contextLogData:l={}}=this.props,{is_closeup_video:d=!1}=l,c=this.videoPlayerRef&&this.videoPlayerRef.video;(null==c||null===(e=c.error)||void 0===e?void 0:e.code)!==p.lG.MEDIA_ERR_ABORTED&&(this.playbackPerformance.hasFatalError=!0),this.playbackPerformance.detailedErrors+=`${this.playbackPerformance.detailedErrors.length>0?", ":""}${(null==c||null===(t=c.error)||void 0===t?void 0:t.message)||""}`,this.playbackPerformance.errorCode=(null==c||null===(i=c.error)||void 0===i?void 0:i.code)||0,this.playbackPerformance.errorName=(null==c||null===(n=c.error)||void 0===n||null===(a=n.message)||void 0===a?void 0:a.slice(0,100))||"unknown",this.playbackPerformance.errorReason=(null==c||null===(r=c.error)||void 0===r||null===(o=r.message)||void 0===o?void 0:o.slice(0,100))||"unknown";const _={errorName:this.playbackPerformance.errorCode,errorReason:this.playbackPerformance.errorName,errorRetryCount:this.errorRetryCount,playbackState:this.state.playbackState,networkState:(null==c?void 0:c.networkState)||"unknown"};switch((0,u.tE)("fatalError",!1,d,_),null==c||null===(s=c.error)||void 0===s?void 0:s.code){case p.lG.MEDIA_ERR_ABORTED:break;case p.lG.MEDIA_ERR_NETWORK:case p.lG.MEDIA_ERR_DECODE:case p.lG.MEDIA_ERR_SRC_NOT_SUPPORTED:default:this.errorRetryCount>0&&(null==c||c.load(),this.errorRetryCount-=1)}this.updateWatchDurationForCurrentSegment(),this.setState({playbackState:p.Cy.FAILED})})),h(this,"handleLoadedMetadata",(()=>{this.setState({playbackState:p.Cy.LOADED_METADATA})})),h(this,"handleLoadStart",(()=>{this.playbackPerformance.loadStartTime=new Date,this.setState({playbackState:p.Cy.LOAD_START})})),h(this,"handleLoadedData",(()=>{this.setState({playbackState:p.Cy.LOADED_DATA})})),h(this,"handlePlaying",(()=>{this.playbackPerformance.hasFatalError=!1,this.setPlaybackStartTime(),this.hasSegmentStarted||this.addSegment(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.updateStallDuration(),this.updatePauseDuration(),this.setState({playbackState:p.Cy.PLAYING}),this.props.clearSeekTime&&this.props.clearSeekTime()})),h(this,"handleUserPause",(e=>{const{onControlsPause:t}=this.props;this.lastPauseTime=new Date,t&&t(e)})),h(this,"handleVideoPause",(()=>{this.state.playbackState!==p.Cy.STALLING&&this.state.playbackState!==p.Cy.SEEKING&&(this.updateWatchDurationForCurrentSegment(),this.lastPauseTime||this.updateStallDuration()),this.setState({playbackState:p.Cy.PAUSED})})),h(this,"handleSeeking",(()=>{this.playbackPerformance.numberOfSeeks+=1;const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&(t.lastStartPlayTime=null),this.state.playbackState!==p.Cy.ENDED&&this.setState({playbackState:p.Cy.SEEKING})})),h(this,"handleStalled",(()=>{null===this.lastStallTime&&this.state.playbackState!==p.Cy.ENDED&&(this.lastStallTime=new Date,this.playbackPerformance.numberOfStalls+=1,this.setState({playbackState:p.Cy.STALLING}))})),h(this,"handleTimeUpdate",(e=>{const{onTimeChange:t}=this.props;t&&t(e),this.state.playbackState===p.Cy.PLAYING&&(this.updateWatchDurationForCurrentSegment(),this.setLastSegmentStartPlayTime())})),h(this,"resetPlaybackMetrics",(()=>{this.hasSegmentStarted=!0,this.hasPlaybackStarted=!1,this.hasVideoSessionStarted=!1,this.hasVideoSessionEnded=!0,this.lastStallTime=null,this.lastPauseTime=null,this.videoSessionId="",this.videoVisibleTime=null,this.logSessionStartOnNextPlay=!1;const e={...this.playbackPerformance.segments[this.playbackPerformance.segments.length-1],lastStartPlayTime:null,playbackStartDate:null,watchedDurationMs:0};this.playbackPerformance.detailedErrors="",this.playbackPerformance.errorCode=0,this.playbackPerformance.errorName="",this.playbackPerformance.errorReason="",this.playbackPerformance.hasFatalError=!1,this.playbackPerformance.numberOfStalls=0,this.playbackPerformance.numberOfSeeks=0,this.playbackPerformance.playbackStartTimestamp=null,this.playbackPerformance.totalStallDurationMs=0,this.playbackPerformance.segments=[e]})),h(this,"setLastSegmentStartPlayTime",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.lastStartPlayTime&&(t.lastStartPlayTime=this.getCurrentVideoTime())})),h(this,"setLastSegmentPlaybackStartDate",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.playbackStartDate&&(t.playbackStartDate=Date.now())})),h(this,"setPlaybackStartTime",(()=>{this.hasPlaybackStarted||(this.playbackPerformance.playbackStartTimestamp=Date.now(),this.hasPlaybackStarted=!0)})),h(this,"setVideoPlayerRef",(e=>{const{setVideoRef:t}=this.props;if(e&&(t&&t(e),this.videoPlayerRef=e,this.videoPlayerRef.video)){const e=this.videoPlayerRef.video;e.addEventListener("loadedmetadata",this.handleLoadedMetadata),e.addEventListener("loadeddata",this.handleLoadedData),e.addEventListener("pause",this.handleVideoPause),e.readyState>=3&&(this.setState({canPlayVideo:!0}),this.playbackPerformance.canPlayTime=new Date)}})),h(this,"updateStallDuration",(()=>{if(null!==this.lastStallTime){const e=this.lastStallTime;this.playbackPerformance.totalStallDurationMs+=new Date-e,this.lastStallTime=null}})),h(this,"updatePauseDuration",(()=>{if(null!==this.lastPauseTime){const e=this.lastPauseTime;this.playbackPerformance.totalPauseDurationMs+=new Date-e,this.lastPauseTime=null}})),h(this,"updateWatchDurationForCurrentSegment",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1],i=t?t.lastStartPlayTime:null,n=this.getCurrentVideoTime();if(t&&null!==i&&"number"==typeof n&&"number"==typeof i){const e=n-i;e>0&&(t.watchedDurationMs+=e,t.lastStartPlayTime=null)}})),h(this,"logPlaybackPerformance",((e,t)=>{const{contextLogData:i={},userId:n,isAutoPlay:a,logContextEvent:r}=this.props,{is_closeup_video:o=!1}=i,{canPlayTime:s,detailedErrors:l,errorCode:d,errorName:c,errorReason:_,hasFatalError:h,loadStartTime:m,totalPauseDurationMs:g,totalStallDurationMs:v,numberOfStalls:y,numberOfSeeks:E,playbackStartTimestamp:f,segments:S,srcString:P}=this.playbackPerformance,b=this.videoPlayerRef&&this.videoPlayerRef.video,T=e===p.DR,A=T&&!this.hasVideoSessionStarted,I=!T&&!this.hasVideoSessionEnded&&this.hasVideoSessionStarted;if(b&&(A||I)){var x;let A=-1;s&&m&&(A=s>m?s-m:0);let I=-1;s&&this.videoVisibleTime&&(I=s>this.videoVisibleTime?s-this.videoVisibleTime:0),T&&(this.videoSessionId=(0,p.Y7)(n),this.playerId=this.playerId||(0,p.EB)());const C=this.getVideoResourceTiming(),O={averageVideoKbps:-1,autoplaying:a,detailedErrors:l,downloadedKiloBytes:"number"==typeof(null==C?void 0:C.decodedBodySize)&&C.decodedBodySize/p.Fm||0,errorCode:d,errorName:c,errorReason:_,fatalError:h,isCellular:!1,nativeVideoDurationMs:b.duration*p.gJ||-1,numberOfStalls:y,numberOfSeeks:E,overallPausedDurationMs:g,overallBufferDurationMs:v,overallWatchedDurationMs:-1,rebufferRate:-1,playbackSessionId:this.videoSessionId,playbackStartTimestamp:f||-1,segments:[],sessionMark:e,screenPixelScale:null!==(x=window)&&void 0!==x&&x.devicePixelRatio?window.devicePixelRatio:-1,startupPlayerWidth:b.clientWidth,startupPlayerHeight:b.clientHeight,startupTimeMs:A,startupLatencyMs:I,startupVariantKbps:-1,startupVariantWatchedDurationMs:-1,startupVariantWidth:b.videoWidth,startupVariantHeight:b.videoHeight,videoUrl:P};if(!T){this.updateWatchDurationForCurrentSegment(),this.updateStallDuration();const e=S.reduce(((e,t)=>e+(t.watchedDurationMs||0)),0);O.overallWatchedDurationMs=e,O.startupVariantWatchedDurationMs=e,O.segments=this.playbackPerformance.segments,0===e?(O.errorName="invalid_watch_duration",O.rebufferRate=-1):O.rebufferRate=v/e}(0,u.ZP)(O,!1,o,{playbackState:this.state.playbackState,...t});const{view:R,viewParameter:w,component:k,element:D,objectId:N,...L}=i;r({event_type:3606,event_data:{videoPerformanceData:O},view_type:R,view_parameter:w,component:k,element:D,object_id_str:N,aux_data:{...L,is_closeup_video:o,playback_session_id:this.videoSessionId}}),T?(this.hasVideoSessionStarted=!0,this.hasVideoSessionEnded=!1):this.resetPlaybackMetrics(),(0,u.tE)(T?"sessionStart":"sessionEnd",!1,o,{playbackState:this.state.playbackState,...t})}}))}componentWillUnmount(){const{loop:e}=this.props;this.updatePauseDuration(),this.logPlaybackPerformance(p.$f,{initiator:"unmount",loop:e})}render(){const{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:o,aspectRatio:s,captions:l,controls:d,loop:u,loopOverride:p,objectFit:h,onDurationChange:g,onFullscreenChange:v,onLoadedChange:y,onControlsPlay:E,onPlayheadDown:f,onPlayheadUp:S,onSeek:P,onVolumeChange:b,playbackRate:T,playing:A,playsInline:I,poster:x,preload:C,src:O,videoStartTime:R,volume:w}=this.props,{canPlayVideo:k}=this.state;return(0,_.jsx)(c.nk,{autoplay:k&&A,accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:o,aspectRatio:s,captions:l,controls:d,loop:void 0===p?u:p,objectFit:h,onDurationChange:g,onEnded:this.handleEnded,onError:this.handleError,onFullscreenChange:v,onLoadedChange:y,onLoadStart:this.handleLoadStart,onControlsPause:this.handleUserPause,onControlsPlay:E,onPlaying:this.handlePlaying,onPlayheadDown:f,onPlayheadUp:S,onReady:this.handleCanPlayVideo,onSeek:P,onSeeking:this.handleSeeking,onStalled:this.handleStalled,onTimeChange:this.handleTimeUpdate,onVolumeChange:b,onWaiting:this.handleStalled,playbackRate:T,onPlay:()=>{},onPlayError:()=>{},playing:k&&A,playsInline:I,poster:x,preload:C,ref:this.setVideoPlayerRef,src:m(O,this.props.quicExpGroup),startTime:R||void 0,volume:w})}}const v=(0,n.memo)((function(e){const{logContextEvent:t}=(0,o.v)(),{country:i,isAuthenticated:n,isBot:c,isSocialBot:p,unauthId:h,userAgent:m}=(0,d.B)(),{browserName:v,browserVersion:y,isMobile:E}=m,{contextLogData:f={}}=e,{is_closeup_video:S=!1,view:P,viewParameter:b}=f,{appUI:{appInFocus:T}}=(0,r.I)(),{checkExperiment:A}=(0,s.F)(),{clearSeekTime:I}=(0,l.RC)();let x=null;n&&(x=A("web_video_quic").group.length?A("web_video_quic").group:null);const C=(0,a.Z)(),O={browserName:v,browserVersion:y,country:i,isAuthenticated:n,isBot:c,is_closeup_video:S,isMobile:E,isSocialBot:p,view:P,viewParameter:b};return(0,u.r$)(O),(0,_.jsx)(g,{...e,userId:C.id||h,appInFocus:T,quicExpGroup:x,logContextEvent:t,clearSeekTime:I})}));var y=i(562559),E=i(366284);function f(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const S=e=>{if(Array.isArray(e)){const t=e.find((e=>"video/m3u8"===e.type));return t?t.src:void 0}return RegExp("m3u8$").test(e)?e:void 0};class P extends n.PureComponent{constructor(e){super(e),f(this,"componentDidUpdate",((e,t)=>{var i;e.videoStartTime&&this.props.videoStartTime&&e.videoStartTime<this.props.videoStartTime&&null!==(i=this.videoPlayerRef)&&void 0!==i&&i.video&&(this.videoPlayerRef.video.currentTime=this.props.videoStartTime)})),f(this,"setVideoPlayerRef",(e=>{e&&(this.videoPlayerRef=e)})),f(this,"handleOnEnded",(({event:e})=>{const{loop:t,onLoop:i,onEnded:n}=this.props;n&&(n({event:e}),this.videoPlayerRef&&this.videoPlayerRef.video&&t&&(this.videoPlayerRef.video.play(),i&&i()))}));const t=S(e.src);this.state={useHlsVideo:!e.preferMp4&&!(0,E.G6)(e.requestContext.userAgent.browserName)&&!!t}}render(){const{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:o,aspectRatio:s,appInFocus:l,backgroundColor:d,captions:c,contextLogData:u,controls:p,hlsConfig:h,isAutoPlay:m,loop:g,objectFit:E,onDurationChange:f,onEnded:P,onFullscreenChange:b,onLoadedChange:T,onControlsPause:A,onControlsPlay:I,onPlayheadDown:x,onPlayheadUp:C,onReady:O,onSeek:R,onTimeChange:w,onVolumeChange:k,playbackRate:D,playing:N,playsInline:L,poster:M,preferMp4:j,preload:U,src:F,videoStartTime:V,visible:B,volume:G}=this.props,{useHlsVideo:H}=this.state,z=S(F),Z={...h,startPosition:V||-1},K=!P&&g;return H&&z?(0,_.jsx)(y.Z,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:o,aspectRatio:s,appInFocus:l,backgroundColor:d,captions:c,contextLogData:u,controls:p,hlsConfig:Z,isAutoPlay:m,loop:g,loopOverride:K,onDurationChange:f,onEnded:this.handleOnEnded,onFullscreenChange:b,onLoadedChange:T,onControlsPause:A,onControlsPlay:I,onPlayheadDown:x,onPlayheadUp:C,onReady:O,onSeek:R,onTimeChange:w,onVolumeChange:k,playbackRate:D,onPlay:()=>{},onPlayError:()=>{},playing:N,playsInline:L,poster:M,preload:U,setVideoRef:this.setVideoPlayerRef,src:z,visible:B,volume:G}):(0,_.jsx)(v,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:r,accessibilityUnmuteLabel:o,aspectRatio:s,captions:c,contextLogData:u,controls:p,isAutoPlay:m,loop:g,loopOverride:K,objectFit:E,onDurationChange:f,onEnded:this.handleOnEnded,onFullscreenChange:b,onLoadedChange:T,onControlsPause:A,onControlsPlay:I,onPlayheadDown:x,onPlayheadUp:C,onReady:O,onSeek:R,onTimeChange:w,onVolumeChange:k,playbackRate:D,onPlay:()=>{},onPlayError:()=>{},playing:N,playsInline:L,poster:M,preload:U,setVideoRef:this.setVideoPlayerRef,src:j?F:z||F,videoStartTime:V,visible:B,volume:G})}}function b(e){const{appUI:{appInFocus:t}}=(0,r.I)(),i=(0,d.B)();return(0,_.jsx)(P,{...e,appInFocus:t,requestContext:i})}},944546:(e,t,i)=>{i.d(t,{HJ:()=>a,VS:()=>n,iM:()=>r});const n=2,a="V_HLSV3_MOBILE",r=[0,.01,.02,.03,.04,.05,.06,.07,.08,.09,.1,.11,.12,.13,.14,.15,.16,.17,.18,.19,.2,.21,.22,.23,.24,.25,.26,.27,.28,.29,.3,.31,.32,.33,.34,.35,.36,.37,.38,.39,.4,.41,.42,.43,.44,.45,.46,.47,.48,.49,.5,.51,.52,.53,.54,.55,.56,.57,.58,.59,.6,.61,.62,.63,.64,.65,.66,.67,.68,.69,.7,.71,.72,.73,.74,.75,.76,.77,.78,.79,.8,.81,.82,.83,.84,.85,.86,.87,.88,.89,.9,.91,.92,.93,.94,.95,.96,.97,.98,.99,1]},464228:(e,t,i)=>{i.d(t,{P:()=>r,Z:()=>o});var n=i(667294);const a=(0,n.createContext)();function r(){return(0,n.useContext)(a)}const o=a}}]);
//# sourceMappingURL=https://sm.pinimg.com/webapp/DefaultPinRep.zh_CN-a9fbbf2d20cd0bae.mjs.map