(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[91704,51879,13047,83634,90984,73744,77221,35303,88959,50243,14362,8907,5683,8575,9359,52599,76579,44722,69428],{361600:e=>{var t,i,n,a,o,r,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:[o={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[r={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:[o,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:[o,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"InviteCode",kind:"LinkedField",name:"data",plural:!1,selections:[r,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,o={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}};o.hash="bc8b32c56a4a58de585c9a05ae69bd9c",e.exports=o},16143:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BubbleStory_story",selections:[{alias:null,args:null,kind:"ScalarField",name:"storyType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"referringSource",storageKey:null},{alias:"storyTitle",args:null,concreteType:"StoryText",kind:"LinkedField",name:"title",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"format",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryAction",kind:"LinkedField",name:"action",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"objects",plural:!0,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],type:"ExploreArticle",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StoryDisplayOptions",kind:"LinkedField",name:"displayOptions",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"identifierIconName",storageKey:null}],storageKey:null}],type:"Story",abstractKey:null,hash:"4243a93c1533a91b49143abf50a2c432"};e.exports=t},7745:e=>{var t,i,n,a,o,r,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},o={alias:"is_default_image",args:null,kind:"ScalarField",name:"isDefaultImage",storageKey:null},r={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,o,r,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,o,r,s,l,d,c,u,p,h,_,m,g,v,y,f={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},o={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"domain",storageKey:null},r={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=[r,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},h={alias:null,args:null,kind:"ScalarField",name:"imageSmallUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPrimaryWebsiteVerified",storageKey:null},_={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:[o,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};f.hash="e58a531593f32e7b3bf5c150367900af",e.exports=f},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},133132:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"TopicImageWithText_topic",selections:[{alias:"background_color",args:null,kind:"ScalarField",name:"backgroundColor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:"follower_count",args:null,kind:"ScalarField",name:"followerCount",storageKey:null},{alias:null,args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null}],storageKey:'images(spec:"236x")'}],type:"Interest",abstractKey:null,hash:"b5b71fb4390c1d3835e468a25f687669"};e.exports=t},964820:e=>{var t={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"TopicRepFragment_topic",selections:[{alias:"is_followed",args:null,kind:"ScalarField",name:"isFollowed",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null},{args:null,kind:"FragmentSpread",name:"TopicImageWithText_topic"}],type:"Interest",abstractKey:null,hash:"e5a0b7dce2aa2313e4cf2c9871cbedf7"};e.exports=t},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},604955:e=>{var t,i,n,a,o={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"boardId"}],kind:"Fragment",metadata:null,name:"boards_AcceptInvite_Mutation",selections:[{alias:null,args:i=[{fields:[{kind:"Variable",name:"board",variableName:"boardId"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3AcceptBoardCollaboratorInviteMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"paramPath",storageKey:null}],storageKey:null}],type:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"boards_AcceptInvite_Mutation",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3AcceptBoardCollaboratorInviteMutation",plural:!1,selections:[n,{kind:"InlineFragment",selections:[a],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"684be4cb6a79ca32f82ddfa38f308039fdcaff0720a6118743e1e198085f1237",metadata:{},name:"boards_AcceptInvite_Mutation",operationKind:"mutation",text:null}};o.hash="c73ed7e5b29f046197e7dfcf7d7a7cd0",e.exports=o},518190:e=>{var t,i,n,a,o={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"boardId"},{defaultValue:null,kind:"LocalArgument",name:"userId"}],kind:"Fragment",metadata:null,name:"boards_ApproveInvite_Mutation",selections:[{alias:null,args:i=[{fields:[{kind:"Variable",name:"board",variableName:"boardId"},{kind:"Variable",name:"user",variableName:"userId"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3ApproveBoardCollaboratorInviteMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"paramPath",storageKey:null}],storageKey:null}],type:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"boards_ApproveInvite_Mutation",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3ApproveBoardCollaboratorInviteMutation",plural:!1,selections:[n,{kind:"InlineFragment",selections:[a],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"1380a15fe95dc7713c5d72fd6104da573f3db5b8b0ab66f883bec351df4c8a71",metadata:{},name:"boards_ApproveInvite_Mutation",operationKind:"mutation",text:null}};o.hash="216cdb449b148a3d36e9d0621dcfcac5",e.exports=o},90105:e=>{var t,i,n,a,o,r,s={fragment:{argumentDefinitions:[t={defaultValue:null,kind:"LocalArgument",name:"ban"},i={defaultValue:null,kind:"LocalArgument",name:"boardId"},n={defaultValue:null,kind:"LocalArgument",name:"userId"}],kind:"Fragment",metadata:null,name:"boards_DeclineOrDeleteBoardCollaboratorInvite_Mutation",selections:[{alias:null,args:a=[{fields:[{kind:"Variable",name:"ban",variableName:"ban"},{kind:"Variable",name:"board",variableName:"boardId"},{kind:"Variable",name:"user",variableName:"userId"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3DeclineOrDeleteBoardCollaboratorInviteMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[o={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},r={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"paramPath",storageKey:null}],storageKey:null}],type:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[i,n,t],kind:"Operation",name:"boards_DeclineOrDeleteBoardCollaboratorInvite_Mutation",selections:[{alias:null,args:a,concreteType:null,kind:"LinkedField",name:"v3DeclineOrDeleteBoardCollaboratorInviteMutation",plural:!1,selections:[o,{kind:"InlineFragment",selections:[r],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"533aad425ad868e5a9d811bf76dccd56e54e0cc48c4c8b526ccbcd7c68efb981",metadata:{},name:"boards_DeclineOrDeleteBoardCollaboratorInvite_Mutation",operationKind:"mutation",text:null}};s.hash="b03dba13d39482d785778ba0feadca06",e.exports=s},472297:e=>{var t,i,n,a,o,r,s,l,d={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"board"},{defaultValue:null,kind:"LocalArgument",name:"collaboratorIds"}],kind:"Fragment",metadata:null,name:"boards_RemoveBoardCollaborators_Mutation",selections:[{alias:null,args:i=[{fields:[{kind:"Variable",name:"board",variableName:"board"},{kind:"Variable",name:"collaboratorIds",variableName:"collaboratorIds"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3RemoveBoardCollaboratorsMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"data",plural:!1,selections:[a={alias:null,args:null,kind:"ScalarField",name:"collaboratorCount",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"collaboratingUsers",plural:!1,selections:[{kind:"InlineFragment",selections:[n,{alias:null,args:null,concreteType:"UserCollaboratingUsersConnection",kind:"LinkedField",name:"connection",plural:!1,selections:[{alias:null,args:null,concreteType:"UserCollaboratingUsersEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"node",plural:!1,selections:[o={alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"entityId",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"UserCollaboratingUsersConnectionContainer",abstractKey:null}],storageKey:null}],storageKey:null}],type:"V3RemoveBoardCollaborators",abstractKey:null},{kind:"InlineFragment",selections:[n,s={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"paramPath",storageKey:null}],storageKey:null}],type:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"boards_RemoveBoardCollaborators_Mutation",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3RemoveBoardCollaboratorsMutation",plural:!1,selections:[n,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Board",kind:"LinkedField",name:"data",plural:!1,selections:[a,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"collaboratingUsers",plural:!1,selections:[n,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"UserCollaboratingUsersConnection",kind:"LinkedField",name:"connection",plural:!1,selections:[{alias:null,args:null,concreteType:"UserCollaboratingUsersEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"node",plural:!1,selections:[o,r,l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"UserCollaboratingUsersConnectionContainer",abstractKey:null}],storageKey:null},l],storageKey:null}],type:"V3RemoveBoardCollaborators",abstractKey:null},{kind:"InlineFragment",selections:[s],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"e100ea491b53ee042f6d9a7f42b583afafd9b8a730b43e06b81b9132821866ea",metadata:{},name:"boards_RemoveBoardCollaborators_Mutation",operationKind:"mutation",text:null}};d.hash="ecec88eadc69c1153ca5e0c4bfe03fd9",e.exports=d},787525:e=>{var t,i,n,a,o={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"board"},{defaultValue:null,kind:"LocalArgument",name:"emails"},{defaultValue:null,kind:"LocalArgument",name:"message"}],kind:"Fragment",metadata:null,name:"boards_emails_Mutation",selections:[{alias:null,args:i=[{fields:[{kind:"Variable",name:"board",variableName:"board"},{kind:"Variable",name:"emails",variableName:"emails"},{kind:"Variable",name:"message",variableName:"message"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3InviteBoardCollaboratorEmailMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"V3InviteBoardCollaboratorEmail",abstractKey:null},{kind:"InlineFragment",selections:[n,a={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"paramPath",storageKey:null}],storageKey:null}],type:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"boards_emails_Mutation",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"v3InviteBoardCollaboratorEmailMutation",plural:!1,selections:[n,{kind:"InlineFragment",selections:[a],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"4d372bf76e6f77707e9106c02f73ec23773c4bd7e457dc684ea7dd1b87985c7c",metadata:{},name:"boards_emails_Mutation",operationKind:"mutation",text:null}};o.hash="0659a1edf1c7935aff1deef3f51f2add",e.exports=o},16945:e=>{var t,i,n,a,o,r,s={fragment:{argumentDefinitions:[t={defaultValue:null,kind:"LocalArgument",name:"boardId"},i={defaultValue:null,kind:"LocalArgument",name:"collaboratorIds"},n={defaultValue:null,kind:"LocalArgument",name:"message"}],kind:"Fragment",metadata:null,name:"boards_users_Mutation",selections:[{alias:null,args:a=[{fields:[{kind:"Variable",name:"board",variableName:"boardId"},{kind:"Variable",name:"collaboratorIds",variableName:"collaboratorIds"},{kind:"Variable",name:"message",variableName:"message"}],kind:"ObjectValue",name:"input"}],concreteType:null,kind:"LinkedField",name:"v3InviteBoardCollaboratorsMutation",plural:!1,selections:[{kind:"InlineFragment",selections:[o={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},r={alias:null,args:null,concreteType:"ErrorInfo",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"paramPath",storageKey:null}],storageKey:null}],type:"Error",abstractKey:"__isError"}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[i,t,n],kind:"Operation",name:"boards_users_Mutation",selections:[{alias:null,args:a,concreteType:null,kind:"LinkedField",name:"v3InviteBoardCollaboratorsMutation",plural:!1,selections:[o,{kind:"InlineFragment",selections:[r],type:"Error",abstractKey:"__isError"}],storageKey:null}]},params:{id:"9495c71001fb315e3dc5e63ec17a8d8d5a4fb53ebc7f791b44093a4a92665835",metadata:{},name:"boards_users_Mutation",operationKind:"mutation",text:null}};s.hash="743ce0da1ac8191550520ebe045b4fb0",e.exports=s},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,o,r,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},o={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:r=[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},o,{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:r,storageKey:'images(spec:"136x136")'},{alias:"imageSpec_170x",args:[{kind:"Literal",name:"spec",value:"170x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:r,storageKey:'images(spec:"170x")'},{alias:"imageSpec_236x",args:[{kind:"Literal",name:"spec",value:"236x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:r,storageKey:'images(spec:"236x")'},{alias:"imageSpec_474x",args:[{kind:"Literal",name:"spec",value:"474x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:r,storageKey:'images(spec:"474x")'},{alias:"imageSpec_564x",args:[{kind:"Literal",name:"spec",value:"564x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:r,storageKey:'images(spec:"564x")'},{alias:"imageSpec_736x",args:[{kind:"Literal",name:"spec",value:"736x"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:r,storageKey:'images(spec:"736x")'},{alias:"imageSpec_600x315",args:[{kind:"Literal",name:"spec",value:"600x315"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:r,storageKey:'images(spec:"600x315")'},{alias:"imageSpec_orig",args:[{kind:"Literal",name:"spec",value:"orig"}],concreteType:"ImageDetails",kind:"LinkedField",name:"images",plural:!1,selections:r,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},294184:(e,t)=>{var i;!function(){var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i)&&i.length){var r=a.apply(null,i);r&&e.push(r)}else if("object"===o)for(var s in i)n.call(i,s)&&i[s]&&e.push(s)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(i=function(){return a}.apply(t,[]))||(e.exports=i)}()},701305:e=>{var t=[],i=[];function n(e,t,i,a){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if("object"!=typeof e||"object"!=typeof t)return!1;var o=Object.prototype.toString,r=o.call(e);if(r!=o.call(t))return!1;switch(r){case"[object String]":return e==String(t);case"[object Number]":return!isNaN(e)&&!isNaN(t)&&e==Number(t);case"[object Date]":case"[object Boolean]":return+e==+t;case"[object RegExp]":return e.source==t.source&&e.global==t.global&&e.multiline==t.multiline&&e.ignoreCase==t.ignoreCase}for(var s=i.length;s--;)if(i[s]==e)return a[s]==t;i.push(e),a.push(t);var l=0;if("[object Array]"===r){if((l=e.length)!==t.length)return!1;for(;l--;)if(!n(e[l],t[l],i,a))return!1}else{if(e.constructor!==t.constructor)return!1;if(e.hasOwnProperty("valueOf")&&t.hasOwnProperty("valueOf"))return e.valueOf()==t.valueOf();var d=Object.keys(e);if(d.length!=Object.keys(t).length)return!1;for(var c=0;c<d.length;c++)if(!n(e[d[c]],t[d[c]],i,a))return!1}return i.pop(),a.pop(),!0}e.exports=function(e,a){var o=t.length?t.pop():[],r=i.length?i.pop():[],s=n(e,a,o,r);return o.length=0,r.length=0,t.push(o),i.push(r),s}},60139:e=>{function t(e){return function(){return e}}var i=function(){};i.thatReturns=t,i.thatReturnsFalse=t(!1),i.thatReturnsTrue=t(!0),i.thatReturnsNull=t(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},663620:(e,t,i)=>{var n=i(60139);e.exports=n},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),o=i(657667),r=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=o,l.prototype.has=r,l.prototype.set=s,e.exports=l},738407:(e,t,i)=>{var n=i(327040),a=i(514125),o=i(882117),r=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=o,l.prototype.has=r,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),o=i(396e3),r=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=o,l.prototype.has=r,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),o=i(572385);function r(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new n;++t<i;)this.add(e[t])}r.prototype.add=r.prototype.push=a,r.prototype.has=o,e.exports=r},646384:(e,t,i)=>{var n=i(738407),a=i(737465),o=i(963779),r=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=o,d.prototype.get=r,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,o=[];++i<n;){var r=e[i];t(r,i,e)&&(o[a++]=r)}return o}},14636:(e,t,i)=>{var n=i(422545),a=i(135694),o=i(701469),r=i(644144),s=i(565776),l=i(936719),d=Object.prototype.hasOwnProperty;e.exports=function(e,t){var i=o(e),c=!i&&a(e),u=!i&&!c&&r(e),p=!i&&!c&&!u&&l(e),h=i||c||u||p,_=h?n(e.length,String):[],m=_.length;for(var g in e)!t&&!d.call(e,g)||h&&("length"==g||u&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||_.push(g);return _}},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),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,i){var r=e[t];o.call(e,t)&&a(r,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),o=i(234865),r=i(744037),s=i(163886),l=i(364626),d=i(200278),c=i(318805),u=i(201911),p=i(458234),h=i(946904),_=i(664160),m=i(43824),g=i(529148),v=i(738517),y=i(701469),f=i(644144),b=i(356688),x=i(513218),S=i(472928),P=i(3674),E=i(481704),T="[object Arguments]",I="[object Function]",A="[object Object]",w={};w[T]=w["[object Array]"]=w["[object ArrayBuffer]"]=w["[object DataView]"]=w["[object Boolean]"]=w["[object Date]"]=w["[object Float32Array]"]=w["[object Float64Array]"]=w["[object Int8Array]"]=w["[object Int16Array]"]=w["[object Int32Array]"]=w["[object Map]"]=w["[object Number]"]=w[A]=w["[object RegExp]"]=w["[object Set]"]=w["[object String]"]=w["[object Symbol]"]=w["[object Uint8Array]"]=w["[object Uint8ClampedArray]"]=w["[object Uint16Array]"]=w["[object Uint32Array]"]=!0,w["[object Error]"]=w[I]=w["[object WeakMap]"]=!1,e.exports=function e(t,i,C,R,k,O){var D,N=1&i,j=2&i,L=4&i;if(C&&(D=k?C(t,R,k,O):C(t)),void 0!==D)return D;if(!x(t))return t;var M=y(t);if(M){if(D=m(t),!N)return d(t,D)}else{var F=_(t),U=F==I||"[object GeneratorFunction]"==F;if(f(t))return l(t,N);if(F==A||F==T||U&&!k){if(D=j||U?{}:v(t),!N)return j?u(t,s(D,t)):c(t,r(D,t))}else{if(!w[F])return k?t:{};D=g(t,F,N)}}O||(O=new n);var B=O.get(t);if(B)return B;O.set(t,D),S(t)?t.forEach((function(n){D.add(e(n,i,C,n,t,O))})):b(t)&&t.forEach((function(n,a){D.set(a,e(n,i,C,a,t,O))}));var z=M?void 0:(L?j?h:p:j?E:P)(t);return a(z||t,(function(n,a){z&&(n=t[a=n]),o(D,a,e(n,i,C,a,t,O))})),D}},603118:(e,t,i)=>{var n=i(513218),a=Object.create,o=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=o},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 o=t(e);return a(e)?o:n(o,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,o,r,s){return t===i||(null==t||null==i||!a(t)&&!a(i)?t!=t&&i!=i:n(t,i,o,r,e,s))}},902492:(e,t,i)=>{var n=i(646384),a=i(967114),o=i(518351),r=i(916096),s=i(664160),l=i(701469),d=i(644144),c=i(936719),u="[object Arguments]",p="[object Array]",h="[object Object]",_=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,m,g,v){var y=l(e),f=l(t),b=y?p:s(e),x=f?p:s(t),S=(b=b==u?h:b)==h,P=(x=x==u?h:x)==h,E=b==x;if(E&&d(e)){if(!d(t))return!1;y=!0,S=!1}if(E&&!S)return v||(v=new n),y||c(e)?a(e,t,i,m,g,v):o(e,t,b,i,m,g,v);if(!(1&i)){var T=S&&_.call(e,"__wrapped__"),I=P&&_.call(t,"__wrapped__");if(T||I){var A=T?e.value():e,w=I?t.value():t;return v||(v=new n),g(A,w,i,m,v)}}return!!E&&(v||(v=new n),r(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),o=i(513218),r=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!(!o(e)||a(e))&&(n(e)?p:s).test(r(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),o=i(637005),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&a(e.length)&&!!r[n(e)]}},400280:(e,t,i)=>{var n=i(225726),a=i(86916),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return a(e);var t=[];for(var i in Object(e))o.call(e,i)&&"constructor"!=i&&t.push(i);return t}},710313:(e,t,i)=>{var n=i(513218),a=i(225726),o=i(133498),r=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=a(e),i=[];for(var s in e)("constructor"!=s||!t&&r.call(e,s))&&i.push(s);return i}},642980:(e,t,i)=>{var n=i(646384),a=i(286556),o=i(228483),r=i(559783),s=i(513218),l=i(481704),d=i(636390);e.exports=function e(t,i,c,u,p){t!==i&&o(i,(function(o,l){if(p||(p=new n),s(o))r(t,i,l,c,e,u,p);else{var h=u?u(d(t,l),o,l+"",t,i,p):void 0;void 0===h&&(h=o),a(t,l,h)}}),l)}},559783:(e,t,i)=>{var n=i(286556),a=i(364626),o=i(477133),r=i(200278),s=i(738517),l=i(135694),d=i(701469),c=i(229246),u=i(644144),p=i(623560),h=i(513218),_=i(968630),m=i(936719),g=i(636390),v=i(959881);e.exports=function(e,t,i,y,f,b,x){var S=g(e,i),P=g(t,i),E=x.get(P);if(E)n(e,i,E);else{var T=b?b(S,P,i+"",e,t,x):void 0,I=void 0===T;if(I){var A=d(P),w=!A&&u(P),C=!A&&!w&&m(P);T=P,A||w||C?d(S)?T=S:c(S)?T=r(S):w?(I=!1,T=a(P,!0)):C?(I=!1,T=o(P,!0)):T=[]:_(P)||l(P)?(T=S,l(S)?T=v(S):h(S)&&!p(S)||(T=s(P))):I=!1}I&&(x.set(P,T),f(T,P,y,b,x),x.delete(P)),n(e,i,T)}}},105976:(e,t,i)=>{var n=i(406557),a=i(545357),o=i(430061);e.exports=function(e,t){return o(a(e,t,n),e+"")}},356560:(e,t,i)=>{var n=i(575703),a=i(538777),o=i(406557),r=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:o;e.exports=r},422545:e=>{e.exports=function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}},727561:(e,t,i)=>{var n=i(567990),a=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(a,""):e}},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,o=a&&e&&!e.nodeType&&e,r=o&&o.exports===a?n.Buffer:void 0,s=r?r.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,o=a?a.valueOf:void 0;e.exports=function(e){return o?Object(o.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,o){var r=!i;i||(i={});for(var s=-1,l=t.length;++s<l;){var d=t[s],c=o?o(i[d],e[d],d,i,e):void 0;void 0===c&&(c=e[d]),r?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,o=i.length,r=o>1?i[o-1]:void 0,s=o>2?i[2]:void 0;for(r=e.length>3&&"function"==typeof r?(o--,r):void 0,s&&a(i[0],i[1],s)&&(r=o<3?void 0:r,o=1),t=Object(t);++n<o;){var l=i[n];l&&e(t,l,n,r)}return t}))}},225063:e=>{e.exports=function(e){return function(t,i,n){for(var a=-1,o=Object(t),r=n(t),s=r.length;s--;){var l=r[e?s:++a];if(!1===i(o[l],l,o))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),o=i(274757);e.exports=function(e,t,i,r,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),h=l.get(t);if(p&&h)return p==t&&h==e;var _=-1,m=!0,g=2&i?new n:void 0;for(l.set(e,t),l.set(t,e);++_<c;){var v=e[_],y=t[_];if(r)var f=d?r(y,v,_,t,e,l):r(v,y,_,e,t,l);if(void 0!==f){if(f)continue;m=!1;break}if(g){if(!a(t,(function(e,t){if(!o(g,t)&&(v===e||s(v,e,i,r,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,i,r,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},518351:(e,t,i)=>{var n=i(562705),a=i(611149),o=i(977813),r=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 o(+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 h=s;case"[object Set]":var _=1&n;if(h||(h=l),e.size!=t.size&&!_)return!1;var m=p.get(e);if(m)return m==t;n|=2,p.set(e,t);var g=r(h(e),h(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,o,r,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 h=s.get(e),_=s.get(t);if(h&&_)return h==t&&_==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(o)var f=l?o(y,v,p,t,e,s):o(v,y,p,e,t,s);if(!(void 0===f?v===y||r(v,y,i,o,s):f)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var b=e.constructor,x=t.constructor;b==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(m=!1)}return s.delete(e),s.delete(t),m}},458234:(e,t,i)=>{var n=i(868866),a=i(799551),o=i(3674);e.exports=function(e){return n(e,o,a)}},946904:(e,t,i)=>{var n=i(868866),a=i(151442),o=i(481704);e.exports=function(e){return n(e,o,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),o=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,s=r?function(e){return null==e?[]:(e=Object(e),n(r(e),(function(t){return o.call(e,t)})))}:a;e.exports=s},151442:(e,t,i)=>{var n=i(862488),a=i(385924),o=i(799551),r=i(770479),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,o(e)),e=a(e);return t}:r;e.exports=s},664160:(e,t,i)=>{var n=i(618552),a=i(357071),o=i(853818),r=i(458525),s=i(70577),l=i(644239),d=i(680346),c="[object Map]",u="[object Promise]",p="[object Set]",h="[object WeakMap]",_="[object DataView]",m=d(n),g=d(a),v=d(o),y=d(r),f=d(s),b=l;(n&&b(new n(new ArrayBuffer(1)))!=_||a&&b(new a)!=c||o&&b(o.resolve())!=u||r&&b(new r)!=p||s&&b(new s)!=h)&&(b=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 _;case g:return c;case v:return u;case y:return p;case f:return h}return t}),e.exports=b},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),o=i(593147),r=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 o(e);case"[object Set]":return new l;case"[object Symbol]":return r(e)}}},738517:(e,t,i)=>{var n=i(603118),a=i(385924),o=i(225726);e.exports=function(e){return"function"!=typeof e.constructor||o(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),o=i(565776),r=i(513218);e.exports=function(e,t,i){if(!r(i))return!1;var s=typeof t;return!!("number"==s?a(i)&&o(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),o=(n=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o 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),o=i(357071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||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,o=a&&e&&!e.nodeType&&e,r=o&&o.exports===a&&n.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||r&&r.binding&&r.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 o=arguments,r=-1,s=a(o.length-t,0),l=Array(s);++r<s;)l[r]=o[t+r];r=-1;for(var d=Array(t+1);++r<t;)d[r]=o[r];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(),o=16-(a-n);if(n=a,o>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),o=i(883369);e.exports=function(e,t){var i=this.__data__;if(i instanceof n){var r=i.__data__;if(!a||r.length<199)return r.push([e,t]),this.size=++i.size,this;i=this.__data__=new o(r)}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""}},567990:e=>{var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},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}}},23279:(e,t,i)=>{var n=i(513218),a=i(707771),o=i(14841),r=Math.max,s=Math.min;e.exports=function(e,t,i){var l,d,c,u,p,h,_=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var i=l,n=d;return l=d=void 0,_=t,u=e.apply(n,i)}function f(e){return _=e,p=setTimeout(x,t),m?y(e):u}function b(e){var i=e-h;return void 0===h||i>=t||i<0||g&&e-_>=c}function x(){var e=a();if(b(e))return S(e);p=setTimeout(x,function(e){var i=t-(e-h);return g?s(i,c-(e-_)):i}(e))}function S(e){return p=void 0,v&&l?y(e):(l=d=void 0,u)}function P(){var e=a(),i=b(e);if(l=arguments,d=this,h=e,i){if(void 0===p)return f(h);if(g)return clearTimeout(p),p=setTimeout(x,t),y(h)}return void 0===p&&(p=setTimeout(x,t)),u}return t=o(t)||0,n(i)&&(m=!!i.leading,c=(g="maxWait"in i)?r(o(i.maxWait)||0,t):c,v="trailing"in i?!!i.trailing:v),P.cancel=function(){void 0!==p&&clearTimeout(p),_=0,l=h=d=p=void 0},P.flush=function(){return void 0===p?u:S(a())},P}},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),o=Object.prototype,r=o.hasOwnProperty,s=o.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return a(e)&&r.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),o=t&&!t.nodeType&&t,r=o&&e&&!e.nodeType&&e,s=r&&r.exports===o?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),o=i(531167),r=o&&o.isMap,s=r?a(r):n;e.exports=s},513218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},968630:(e,t,i)=>{var n=i(644239),a=i(385924),o=i(637005),r=Function.prototype,s=Object.prototype,l=r.toString,d=s.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!o(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),o=i(531167),r=o&&o.isSet,s=r?a(r):n;e.exports=s},936719:(e,t,i)=>{var n=i(238749),a=i(307518),o=i(531167),r=o&&o.isTypedArray,s=r?a(r):n;e.exports=s},3674:(e,t,i)=>{var n=i(14636),a=i(400280),o=i(498612);e.exports=function(e){return o(e)?n(e):a(e)}},481704:(e,t,i)=>{var n=i(14636),a=i(710313),o=i(498612);e.exports=function(e){return o(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},707771:(e,t,i)=>{var n=i(555639);e.exports=function(){return n.Date.now()}},770479:e=>{e.exports=function(){return[]}},595062:e=>{e.exports=function(){return!1}},14841:(e,t,i)=>{var n=i(727561),a=i(513218),o=i(733448),r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var i=s.test(e);return i||l.test(e)?d(e.slice(2),i?2:8):r.test(e)?NaN:+e}},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 o={};if("string"!=typeof e||0===e.length)return o;var r=/\+/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(r,"%20"),m=_.indexOf(n);m>=0?(c=_.substr(0,m),u=_.substr(m+1)):(c=_,u=""),p=decodeURIComponent(c),h=decodeURIComponent(u),t(o,p)?Array.isArray(o[p])?o[p].push(h):o[p]=[o[p],h]:o[p]=h}return o}},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 o=encodeURIComponent(t(a))+n;return Array.isArray(e[a])?e[a].map((function(e){return o+encodeURIComponent(t(e))})).join(i):o+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 o="object"==typeof i.g&&i.g;o.global!==o&&o.window!==o&&o.self;var r,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"},h=Math.floor,_=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,o=e.length;a<o;)(t=e.charCodeAt(a++))>=55296&&t<=56319&&a<o?56320==(64512&(i=e.charCodeAt(a++)))?n.push(((1023&t)<<10)+(1023&i)+65536):(n.push(t),a--):n.push(t);return n}function f(e){return g(e,(function(e){var t="";return e>65535&&(t+=_((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=_(e)})).join("")}function b(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function x(e,t,i){var n=0;for(e=i?h(e/700):e>>1,e+=h(e/t);e>455;n+=l)e=h(e/35);return h(n+36*e/(e+38))}function S(e){var t,i,n,a,o,r,d,c,u,p,_,g=[],v=e.length,y=0,b=128,S=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(o=y,r=1,d=l;a>=v&&m("invalid-input"),((c=(_=e.charCodeAt(a++))-48<10?_-22:_-65<26?_-65:_-97<26?_-97:l)>=l||c>h((s-y)/r))&&m("overflow"),y+=c*r,!(c<(u=d<=S?1:d>=S+26?26:d-S));d+=l)r>h(s/(p=l-u))&&m("overflow"),r*=p;S=x(y-o,t=g.length+1,0==o),h(y/t)>s-b&&m("overflow"),b+=h(y/t),y%=t,g.splice(y++,0,b)}return f(g)}function P(e){var t,i,n,a,o,r,d,c,u,p,g,v,f,S,P,E=[];for(v=(e=y(e)).length,t=128,i=0,o=72,r=0;r<v;++r)(g=e[r])<128&&E.push(_(g));for(n=a=E.length,a&&E.push("-");n<v;){for(d=s,r=0;r<v;++r)(g=e[r])>=t&&g<d&&(d=g);for(d-t>h((s-i)/(f=n+1))&&m("overflow"),i+=(d-t)*f,t=d,r=0;r<v;++r)if((g=e[r])<t&&++i>s&&m("overflow"),g==t){for(c=i,u=l;!(c<(p=u<=o?1:u>=o+26?26:u-o));u+=l)P=c-p,S=l-p,E.push(_(b(p+P%S,0))),c=h(P/S);E.push(_(b(c,0))),o=x(i,f,n==a),i=0,++n}++i,++t}return E.join("")}r={version:"1.3.2",ucs2:{decode:y,encode:f},decode:S,encode:P,toASCII:function(e){return v(e,(function(e){return c.test(e)?"xn--"+P(e):e}))},toUnicode:function(e){return v(e,(function(e){return d.test(e)?S(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return r}.call(t,i,t,e))||(e.exports=n)}()},608575:(e,t,i)=>{var n=i(52511),a=i(762502);function o(){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=f,t.resolve=function(e,t){return f(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?f(e,!1,!0).resolveObject(t):t},t.format=function(e){a.isString(e)&&(e=f(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var r=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(d),u=["%","/","?",";","#"].concat(c),p=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,_=/^([+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 f(e,t,i){if(e&&a.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,i),n}o.prototype.parse=function(e,t,i){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",d=e.split(s);d[0]=d[0].replace(/\\/g,"/");var f=e=d.join(s);if(f=f.trim(),!i&&1===e.split("#").length){var b=l.exec(f);if(b)return this.path=f,this.href=f,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var x=r.exec(f);if(x){var S=(x=x[0]).toLowerCase();this.protocol=S,f=f.substr(x.length)}if(i||x||f.match(/^\/\/[^@\/]+@[^@\/]+/)){var P="//"===f.substr(0,2);!P||x&&g[x]||(f=f.substr(2),this.slashes=!0)}if(!g[x]&&(P||x&&!v[x])){for(var E,T,I=-1,A=0;A<p.length;A++){-1!==(w=f.indexOf(p[A]))&&(-1===I||w<I)&&(I=w)}-1!==(T=-1===I?f.lastIndexOf("@"):f.lastIndexOf("@",I))&&(E=f.slice(0,T),f=f.slice(T+1),this.auth=decodeURIComponent(E)),I=-1;for(A=0;A<u.length;A++){var w;-1!==(w=f.indexOf(u[A]))&&(-1===I||w<I)&&(I=w)}-1===I&&(I=f.length),this.host=f.slice(0,I),f=f.slice(I),this.parseHost(),this.hostname=this.hostname||"";var C="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!C)for(var R=this.hostname.split(/\./),k=(A=0,R.length);A<k;A++){var O=R[A];if(O&&!O.match(h)){for(var D="",N=0,j=O.length;N<j;N++)O.charCodeAt(N)>127?D+="x":D+=O[N];if(!D.match(h)){var L=R.slice(0,A),M=R.slice(A+1),F=O.match(_);F&&(L.push(F[1]),M.unshift(F[2])),M.length&&(f="/"+M.join(".")+f),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=n.toASCII(this.hostname));var U=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+U,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==f[0]&&(f="/"+f))}if(!m[S])for(A=0,k=c.length;A<k;A++){var z=c[A];if(-1!==f.indexOf(z)){var V=encodeURIComponent(z);V===z&&(V=escape(z)),f=f.split(z).join(V)}}var H=f.indexOf("#");-1!==H&&(this.hash=f.substr(H),f=f.slice(0,H));var Z=f.indexOf("?");if(-1!==Z?(this.search=f.substr(Z),this.query=f.substr(Z+1),t&&(this.query=y.parse(this.query)),f=f.slice(0,Z)):t&&(this.search="",this.query={}),f&&(this.pathname=f),v[S]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){U=this.pathname||"";var G=this.search||"";this.path=U+G}return this.href=this.format(),this},o.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||"",o=!1,r="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(r=y.stringify(this.query));var s=this.search||r&&"?"+r||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||v[t])&&!1!==o?(o="//"+(o||""),i&&"/"!==i.charAt(0)&&(i="/"+i)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(i=i.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+n},o.prototype.resolve=function(e){return this.resolveObject(f(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(a.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var i=new o,n=Object.keys(this),r=0;r<n.length;r++){var s=n[r];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 h=u[p];i[h]=e[h]}return i.href=i.format(),i}if(i.protocol=e.protocol,e.host||g[e.protocol])i.pathname=e.pathname;else{for(var _=(e.pathname||"").split("/");_.length&&!(e.host=_.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==_[0]&&_.unshift(""),_.length<2&&_.unshift(""),i.pathname=_.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 f=i.pathname&&"/"===i.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),x=b||f||i.host&&e.pathname,S=x,P=i.pathname&&i.pathname.split("/")||[],E=(_=e.pathname&&e.pathname.split("/")||[],i.protocol&&!v[i.protocol]);if(E&&(i.hostname="",i.port=null,i.host&&(""===P[0]?P[0]=i.host:P.unshift(i.host)),i.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===_[0]?_[0]=e.host:_.unshift(e.host)),e.host=null),x=x&&(""===_[0]||""===P[0])),b)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,P=_;else if(_.length)P||(P=[]),P.pop(),P=P.concat(_),i.search=e.search,i.query=e.query;else if(!a.isNullOrUndefined(e.search)){if(E)i.hostname=i.host=P.shift(),(C=!!(i.host&&i.host.indexOf("@")>0)&&i.host.split("@"))&&(i.auth=C.shift(),i.host=i.hostname=C.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(!P.length)return i.pathname=null,i.search?i.path="/"+i.search:i.path=null,i.href=i.format(),i;for(var T=P.slice(-1)[0],I=(i.host||e.host||P.length>1)&&("."===T||".."===T)||""===T,A=0,w=P.length;w>=0;w--)"."===(T=P[w])?P.splice(w,1):".."===T?(P.splice(w,1),A++):A&&(P.splice(w,1),A--);if(!x&&!S)for(;A--;A)P.unshift("..");!x||""===P[0]||P[0]&&"/"===P[0].charAt(0)||P.unshift(""),I&&"/"!==P.join("/").substr(-1)&&P.push("");var C,R=""===P[0]||P[0]&&"/"===P[0].charAt(0);E&&(i.hostname=i.host=R?"":P.length?P.shift():"",(C=!!(i.host&&i.host.indexOf("@")>0)&&i.host.split("@"))&&(i.auth=C.shift(),i.host=i.hostname=C.shift()));return(x=x||i.host&&P.length)&&!R&&P.unshift(""),P.length?i.pathname=P.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},o.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}}},17314:(e,t,i)=>{i.d(t,{Z:()=>d});var n,a,o=i(813653),r=i(861470),s=0,l=0;const d=function(e,t,i){var d=t&&i||0,c=t||new Array(16),u=(e=e||{}).node||n,p=void 0!==e.clockseq?e.clockseq:a;if(null==u||null==p){var h=e.random||(e.rng||o.Z)();null==u&&(u=n=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==p&&(p=a=16383&(h[6]<<8|h[7]))}var _=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:l+1,g=_-s+(m-l)/1e4;if(g<0&&void 0===e.clockseq&&(p=p+1&16383),(g<0||_>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=_,l=m,a=p;var v=(1e4*(268435455&(_+=122192928e5))+m)%4294967296;c[d++]=v>>>24&255,c[d++]=v>>>16&255,c[d++]=v>>>8&255,c[d++]=255&v;var y=_/4294967296*1e4&268435455;c[d++]=y>>>8&255,c[d++]=255&y,c[d++]=y>>>24&15|16,c[d++]=y>>>16&255,c[d++]=p>>>8|128,c[d++]=255&p;for(var f=0;f<6;++f)c[d+f]=u[f];return t||(0,r.Z)(c)}},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),o=i(43760),r=i(170168),s=i(619937),l=i(48714),d=i(366284);const c=({href:e,pinId:t,pin:i,location:o,auxData:c},u)=>{if(i&&i.is_promoted){var p,h,_,m;const S=(0,a.Z)({boardUrl:null===(p=i.board)||void 0===p?void 0:p.url,callToCreateSourcePinId:i.call_to_create_source_pin_id,location:o,pinId:i.id,pinnerUserName:null===(h=i.pinner)||void 0===h?void 0:h.username,storyPinDataId:i.story_pin_data_id,trackingParams:i.tracking_params,trackingParamsMap:i.tracking_params_map}),P=(0,l.nS)({url:e,pinId:t,csrId:null,clientTrackingParams:S,auxData:c}),E=(0,n.Z)();if((0,d.G6)(null!==(_=null==E?void 0:E.userAgent.browserName)&&void 0!==_?_:"")){var g,v;const{group:n}=null!==(g=null==E?void 0:E.experimentsClient.checkExperiment("m10n_event_conversion_measurement"))&&void 0!==g?g:{},a=null!=E&&null!==(v=E.userAgent)&&void 0!==v&&v.browserVersion?E.userAgent.browserVersion:"0.0",o=parseFloat(a.split(".")[0]+"."+a.split(".")[1]);if(void 0!==i.campaign_id&&o>=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,P,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,P,e);return u({event_type:101,clientTrackingParams:S,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==E?void 0:E.userAgent.browserName)&&void 0!==m?m:"")){var f,b;const{group:n}=null!==(f=null==E?void 0:E.experimentsClient.checkExperiment("m10n_event_conversion_measurement_chrome"))&&void 0!==f?f:{},a=null!=E&&null!==(b=E.userAgent)&&void 0!==b&&b.browserVersion?parseInt(E.userAgent.browserVersion.split(".")[0],10):0;if(void 0!==i.attribution_source_id&&a>=101&&["enabled"].includes(n)){var x;const n=((e,t,i)=>{const n=new URL(`${r.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!==(x=i.attribution_source_id)&&void 0!==x?x:"0",P,e);return u({event_type:101,clientTrackingParams:S,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:r},s)=>{if("undefined"!=typeof window&&window.Windows)(0,o.Z)({url:e,pinId:t,pin:i,location:n,auxData:r});else{var d,u;if(c({href:e,pinId:t,pin:i,location:n,auxData:r},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:r})}}},485710:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),a=i(898781),o=i(883119),r=i(785893);function s({children:e,heading:t}){const[i,s]=(0,n.useState)(!1),l=(0,a.ZP)();return(0,r.jsxs)(o.kC,{direction:"column",dataTestId:"collapsible-layout",children:[(0,r.jsxs)(o.X6,{align:"start",size:"400",accessibilityLevel:2,children:[(0,r.jsx)(o.xu,{"data-test-id":"collapsible-layout-heading",display:"inlineBlock",children:t}),(0,r.jsx)(o.xu,{"data-test-id":"collapse-button",display:"inlineBlock",marginStart:1,children:(0,r.jsx)(o.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,r.jsx)(n.Fragment,{children:e})]})}},319530:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),a=i(898781),o=i(883119),r=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,r.jsxs)(o.xu,{position:"relative","data-test-id":"truncated-text",children:[(0,r.jsx)(o.xv,{ref:i,lineClamp:c||u?t:0,inline:!0,children:e}),u&&(0,r.jsx)(o.xu,{position:"absolute",display:"block",width:"100%",bottom:!0,children:(0,r.jsxs)(o.kC,{flex:"grow",children:[(0,r.jsx)(o.xu,{display:"inlineBlock",width:"120px",height:"14px"}),(0,r.jsx)(o.xu,{"data-test-id":"more-button",display:"inlineBlock",dangerouslySetInlineStyle:{__style:{background:"white"}},children:(0,r.jsx)(o.iP,{fullWidth:!1,onTap:()=>l({...s,isTruncated:!1}),children:(0,r.jsx)(o.xv,{inline:!0,size:"200",weight:"bold",children:d.bt(" … more", " … more", "closeup.TruncatedTextContent.moreLabel", undefined, false)})})}),(0,r.jsx)(o.xu,{display:"inlineBlock",flex:"grow",height:"14px",dangerouslySetInlineStyle:{__style:{background:"white"}}})]})})]})}},157796:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(667294),a=i(883119),o=i(785893);function r({color:e="red",duration:t,finalProgress:i,shape:r="pill"}){const[s,l]=(0,n.useState)(!1);(0,n.useEffect)((()=>{const e=setTimeout((()=>{l(!0)}),0);return()=>{clearTimeout(e)}}),[]);const d="pill"===r;return(0,o.jsx)(a.xu,{color:e,height:d?8:6,rounding:d?"pill":2,width:`${i}%`,dangerouslySetInlineStyle:{__style:{transform:d?`translateX(${s?"-5px":"-100%"})`:`scaleX(${s?1:0})`,transformOrigin:"left",transitionDuration:`${t}ms`,transitionTimingFunction:"ease-in"}}})}},27255:(e,t,i)=>{i.d(t,{Z:()=>n});const n={AMP_TRACKING_DOMAIN:"amp.pinterest.com",BoardPrivacy:{SECRET:"secret",PUBLIC:"public",PROTECTED:"protected"},BoardType:{PROTECTED:"protected"},BulkAction:{MOVE:"bulkMove",COPY:"bulkCopy",CREATE_SECTION:"bulkCreateSection",DELETE:"bulkDelete"},MAX_CHARS_FOR_BOARD_PIN_DESCRIPTION:500,MAX_CHARS_FOR_BOARD_TITLE:50,MAX_CHARS_FOR_FIRST_NAME:30,MAX_FETCH_NUM_FOLLOWERS_PER_PAGE:50,MAX_STORED_VISITED_PIN_PAGES:10,VIDEO_AUTOPLAY_LOCAL_STORAGE_KEY:"_video_autoplay_state",VIDEO_IFRAME_ID:"video-iframe"}},558068:(e,t,i)=>{i.d(t,{Hv:()=>l,aX:()=>u,nK:()=>p});var n=i(667294),a=i(425288),o=i(276775),r=i(785893);const{Provider:s,useHook:l}=(0,a.Z)("HistoryStackContext",{previous:[],current:null,forward:[]}),d=e=>e&&e.pathname?e.pathname+(e.search||""):"";function c(e,t){var i;const n={action:t.type,location:t.location,match:t.match};if(t.location===(null===(i=e.current)||void 0===i?void 0:i.location))return e;switch(t.type){case"POP":return e.forward.length>0&&d(e.forward[0].location)===d(n.location)?{...e,forward:e.forward.slice(1),current:{...e.forward[0],action:t.type},previous:e.current?[...e.previous,{action:e.current.action,location:e.current.location,match:e.current.match}]:e.previous}:{...e,forward:e.current?[{action:e.current.action,location:e.current.location,match:e.current.match},...e.forward]:e.forward,current:{...e.previous.slice(-1)[0],action:t.type},previous:e.previous.slice(0,-1)};case"PUSH":return{...e,forward:e.forward.length>0?[]:e.forward,current:n,previous:e.current?[...e.previous,{action:e.current.action,location:e.current.location,match:e.current.match}]:e.previous};case"REPLACE":return{...e,current:n};default:return e}}function u(){const{current:e,previous:t}=l();return(0,n.useMemo)((()=>e?t.concat(e):t),[e,t])}function p({children:e}){const t=(0,o.useHistory)(),i=(0,o.useLocation)(),a=(0,o.useRouteMatch)(),l={forward:[],current:{action:t.action,location:i,match:a},previous:[]},[d,u]=(0,n.useReducer)(c,l);return(0,n.useEffect)((()=>{const{action:e}=t;u({type:e,location:i,match:a})}),[i]),(0,r.jsx)(s,{value:d,children:e})}},391254:(e,t,i)=>{i.d(t,{Z:()=>o});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 o(e){const{css:t,unsafeCSS:i,...o}=e,r=String(t||"")||i||"";return!!r?(0,n.jsx)("style",{...o,dangerouslySetInnerHTML:{__html:String(a.factory(r))}}):null}},310227:(e,t,i)=>{i.d(t,{Dv:()=>o,Ml:()=>r,Oc:()=>n,mv:()=>a});const n=16,a=4,o={SAVED:"rgba(0, 0, 0, 0.33)",VISUAL:"rgba(0, 0, 0, 0.1)",LEGO_WASH:"rgba(0, 0, 0, 0.4)"},r=120},941646:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(883119),a=i(785893);function o(e){const{children:t,display:i,id:o}=e;return(0,a.jsx)(n.xu,{"data-test-id":o,display:i,children:t})}},512176:(e,t,i)=>{i.d(t,{Z:()=>c});var n=i(667294),a=i(898781),o=i(112690),r=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 h=(0,a.ZP)(),[_,m]=(0,n.useState)(!1),{dangerousInlineStyle:g,iconColor:v}=(0,r.W)(!!e),y=(0,o.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?h.bt("商家验证徽章图标", "Merchant verification badge icon", "merchantVerification.badge.icon", undefined, true):h.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:h.bt("经过验证的商家", "Verified merchant", "creator.header.verifiedMerchant", undefined, true)})})})]})}),(e||i&&!c)&&(0,l.jsx)(r.Z,{showModal:_,setShowModal:m,inspirationalBadges:u,inspirationalBadgesColor:p})]})}},967181:(e,t,i)=>{i.d(t,{W:()=>u,Z:()=>p});var n=i(667294),a=i(121151),o=i(898781),r=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 h=(0,o.ZP)(),[_,m]=(0,n.useState)(!0),{dangerousInlineStyle:g,iconColor:v}=u(!0),y=(0,r.Z)();return(0,n.useEffect)((()=>{i&&_&&(m(!1),y({event_type:13,component:13534}))}),[i]),(0,c.jsx)(a.ZP,{"data-test-id":"modal",isOpen:i,mobileAccessibilityCloseIconLabel:h.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:h.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:h.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:h.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:h.bt("了解更多", "Learn more", "creator.verifiedMerchant.buttonText", undefined, true),target:"blank",size:"lg",href:s.vB,text:h.bt("了解更多", "Learn more", "creator.verifiedMerchant.buttonText", undefined, true)})})]})})})}},619937:(e,t,i)=>{i.d(t,{$N:()=>p,GY:()=>l,MZ:()=>r,NR:()=>c,Vn:()=>d,fm:()=>n,kM:()=>o,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"},o={BILLING_HISTORY:"BILLING_HISTORY",BILLING_FORMS:"BILLING_FORMS",ORDER_LINES:"ORDER_LINES",PROMOTIONS:"PROMOTIONS",DOCUMENTS:"DOCUMENTS",PREPAID_CAMPAIGN_SPEND:"PREPAID_CAMPAIGN_SPEND_SUMMARY"},r={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})},100183:(e,t,i)=>{i.d(t,{CC:()=>n,Ll:()=>o,XF:()=>a});const n=(e,t)=>((e,t,i)=>({x:Math.floor(e*Math.cos(i)),y:Math.floor(t*Math.sin(i))}))(t/2,e/2,2*Math.random()*Math.PI),a=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,o=e=>["@-webkit-keyframes","@keyframes"].map((t=>e.map((e=>t+" "+e)).join("\n"))).join("\n")},613316:(e,t,i)=>{function n(e){return[0,24,21,26].includes(e)}function a({articleType:e,id:t,title:i}){const n=i.toLowerCase().replace(/[.,\/#!?$%\^&\*+;:{}=\-_`~()\’'"]/g,"").trim().replace(/\s+/g,"-");return"today"===e?`/today/shop/${n}/${t}/`:`/discover/article/${n}/${t}/`}i.d(t,{x:()=>a,y:()=>n})},366284:(e,t,i)=>{i.d(t,{G6:()=>o,i7:()=>r,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 o(e){return a(e)===n.SAFARI}function r(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]")},792182:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(667294),a=i(23279),o=i.n(a);function r(){const[e,t]=(0,n.useState)(null);return(0,n.useEffect)((()=>{const e=()=>t({width:window.innerWidth,height:window.innerHeight});e();const i=o()(e,50);return window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)}),[]),e}},752403:(e,t,i)=>{i.d(t,{Bu:()=>_,Dm:()=>s,I:()=>v,NG:()=>p,QP:()=>c,S4:()=>d,Xe:()=>u,_f:()=>h,eT:()=>m,hm:()=>g,yQ:()=>l,ym:()=>f});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"}),o=Object.freeze({PERSON_OF_COLOR:"person_of_color",LGBTQ:"lgbtq",DISABILITY:"disability",WOMAN:"woman",NONE:"none"}),r=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(o).map((e=>o[e]))],l=[...Object.keys(r).map((e=>r[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",h="https://help.pinterest.com/business/article/add-merchant-details-to-your-profile";function _({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,o=null==e||null===(i=e.inspirational_signal)||void 0===i?void 0:i.is_eligible_for_storefront_badges;return Boolean(n&&a&&o)}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,o]=t;return(0,n.DW)(i,a,o)<=n.I?"white":"black"}function f(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+)/,o=/\/discover\/article\/[\w-]+\/(\d+)/,r=(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,h;if(!i)return"";let _="";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:_="/pin/";const m=r(i,_);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 o.test(i)&&i:return`ExploreArticleResource_${(null===(p=i.match(o))||void 0===p?void 0:p[2])||"unknown"}`;case/\/discover\/article\//.test(i)&&i:_="/discover/article/";return`ExploreArticleResource_${r(i,_)}`;case/\/categories\//.test(i)&&i:_="/categories/";return`CategoryFeedResource_${r(i,_)}`;case/\/discover\/topics\//.test(i)&&i:return"CategoryFeedResource";case/\/news_hub\//.test(i)&&i:_="/news_hub/";return`NewsHubDetailsResource_${r(i,_)}`;case/\/_tools\/more-ideas\//.test(i)&&i:return"BoardContentRecommendationResource";case/\/topics\//.test(i)&&i:_="/topics/";return`TopicFeedResource_${r(i,_)}`;case l&&`/${l}/products/`:return"StoreFrontFeedResource";case/\/source\//.test(i)&&i:_="/source/";return`DomainFeedResource_${r(i,_)}`;case/\/explore\//.test(i)&&i:_="/explore/";return`SearchResource_${r(i,_)}`;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===(h=i.match(a))||void 0===h?void 0:h[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:o,storyPinDataId:r,trackingParams:l,trackingParamsMap:d={}})=>{if(!n||!l||!i)return;if(!d)return`${l}~0`;const{pathname:c,search:u,query:p}=i,h=s({boardUrl:e,callToCreateSourcePinId:t,path:c,pinId:n,pinnerUserName:a,query:p,search:u,storyPinDataId:r,trackingParams:l,trackingParamsMap:d}),_=Object.keys(d);let m;if((c||"").startsWith("/pin/")){const e=_.find((e=>"PinResource"!==e));m=e?d[e]:d.PinResource}else m=d[h];let g;if(!m&&o&&o.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()):""})(o[o.length-1].location);g=s({boardUrl:e,callToCreateSourcePinId:t,path:i,pinId:n,pinnerUserName:a,query:p,search:u,storyPinDataId:r,trackingParams:l,trackingParamsMap:d}),m=d[g]}return m||(m=`${l||""}~0`),m}},642345:(e,t,i)=>{i.d(t,{DW:()=>s,I:()=>r,oo:()=>o,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),o=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)]},r=.18,s=(e,t,i)=>.2126*(e/255)**2.2+.7151*(t/255)**2.2+.0721*(i/255)**2.2},81636:(e,t,i)=>{i.d(t,{Q:()=>d,Z:()=>c});var n=i(667294),a=i(682492),o=i.n(a),r=i(112690),s=i(780280),l=i(385740);function d(e,t){const{setViewContextData:i}=(0,l.sV)(),{requestIdentifier:a}=(0,s.B)(),d=(0,r.Z)(),{viewData:c}=(0,l.SU)();(0,n.useEffect)((()=>{var t;e&&(i({viewType:null!==(t=e.view_type)&&void 0!==t?t:1,viewParameter:e.view_parameter,viewData:e.view_data?o()(c,e.view_data):o()({},c),component:e.component,element:e.element,objectIdStr:e.object_id_str,auxData:e.aux_data,clientTrackingParams:e.clientTrackingParams}),d({...e,event_type:13,request_identifier:a}))}),[t])}function c(e){const{children:t,log:i}=e;return d(i),t||null}},745760:(e,t,i)=>{i.d(t,{Ch:()=>p,nc:()=>x,a:()=>S,ZP:()=>P,cA:()=>f,li:()=>b,h1:()=>c});var n=i(682492),a=i.n(n),o=i(214494),r=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"},h=[4700,4701,4702,4703,7042,7043],_=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,r.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 f=e=>{const t=e.event_type,i=h.includes(t),n=(0,l.BE)();return!(!i&&13!==t&&!n)},b=(e,t)=>{const i=e.event_type,n=h.includes(i),o=(0,l.BE)();return n?e:13===i&&e.view_type?(null==t||t({viewType:e.view_type,viewParameter:e.view_parameter,viewData:null!=o&&o.viewData?a()(o.viewData,e.view_data):a()({},e.view_data)}),e):!o||e.view_type&&e.view_parameter?e:{...e,view_type:o.viewType,view_parameter:o.viewParameter,view_data:e.view_data?a()(e.view_data,o.viewData):a()({},o.viewData)}},x=(e,t)=>{var i,n;const a=e.component,o=e.object_id_str,r=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}:{},...r?{viewType:r}:{},viewData:e.view_data,viewParameter:e.view_parameter,...o?{objectIdStr:o}:null,impressionType:t,appState:l}))))&&void 0!==i?i:[]},S=(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 P(){let e=[],t=[],i=0;function n(){return[...e,...y(t)]}function a(){e=[],t=[],i=0}function r(e=!1){const t=n();t.length&&(o.Z.create("ContextLogResource",{events:t,report_time:c()}).callCreate({async:!e,showError:!1}),a(),v())}return{flushContextEvents:r,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:o,viewParameter:r,viewData:s,durationNs:l,pairId:d,clientTrackingParams:c,...u}=e;return u}(a.aux_data),i+_(a)>20480&&r(!1),e.push(a),v()},logImpression:function(e){i+_(e)>20480&&r(!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},643010:(e,t,i)=>{i.d(t,{F6:()=>u,Hs:()=>c,Yc:()=>l,vs:()=>d});var n=i(667294),a=i(867820),o=i(844974);const r="theme",s="dark"===(0,o.qn)(r),l=()=>s;function d(){const[e,t]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{t(l())}),[t]),e}const c=()=>{(0,o.Nh)(r,"dark"),(0,a.My)("mweb.dark_mode.enable"),window.location.reload()},u=()=>{(0,o.L_)(r),(0,a.My)("mweb.dark_mode.disable"),window.location.reload()}},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)},966476:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(667294);const a=()=>{const[e,t]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{t(!0)}),[]),e}},722767:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),a=i(973935);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.Component{constructor(...e){super(...e),o(this,"observer",null),o(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=r},780679:(e,t,i)=>{i.d(t,{g:()=>r,t:()=>o});var n=i(667294);const a=(0,n.createContext)(null),o=a.Provider,r=()=>(0,n.useContext)(a)},903095:(e,t,i)=>{i.d(t,{Mi:()=>a,lO:()=>o});var n=i(425288);const{Provider:a,useMaybeHook:o}=(0,n.Z)("pageContext")},121093:(e,t,i)=>{i.d(t,{Z:()=>c});var n=i(667294),a=i(702664),o=i(332611),r=i(242923),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,"state",{hasCompleted:[],hasDismissed:[]}),l(this,"view",(()=>{const{experience:e,isBackendExperience:t,targeting:i,viewExperience:n,viewExperienceObject:a}=this.props;e&&"viewed"!==e.status&&(t?(e.status="viewed",a(e)):i?n(e.placement_id,e.experience_id,i):n(e.placement_id,e.experience_id))})),l(this,"complete",(e=>{const{completeExperience:t,completeExperienceObject:i,experience:n,isBackendExperience:a,preventRemoval:o,targeting:r}=this.props,s=e||1;if(n&&!this.state.hasCompleted.includes(n.experience_id)){const{placement_id:e,experience_id:l}=n||{},d=o||2===s;(1===s||d)&&e&&l&&(a?i(n,d):r?t(e,l,d,r):t(e,l,d),this.setState((e=>({hasCompleted:[...e.hasCompleted,l]}))))}})),l(this,"dismiss",(()=>{const{dismissExperience:e,dismissExperienceObject:t,experience:i,isBackendExperience:n,preventRemoval:a,targeting:o}=this.props,{placement_id:r,experience_id:s}=i||{};i&&!this.state.hasDismissed.includes(s)&&(n?t(i):o?e(r,s,!!a,o):e(r,s,!!a),this.setState((e=>({hasDismissed:[...e.hasDismissed,s]}))))})),l(this,"shouldRenderExperience",(()=>{const{experience:e}=this.props;if(e){const{eligibleIds:t,eligibleTypes:i,predicate:n,transitionType:a}=this.props,{experience_id:o,type:r}=e;if(t&&t.includes(o))return!0;if(null==t||!t.length){if(n&&n(e))return!0;if(i&&i.includes(r))return!0;if(a&&a===r)return!0}}return!1}))}componentDidMount(){if(this.props.disableAutoView)return;const{experience:e}=this.props;e&&this.shouldRenderExperience()&&this.view()}componentDidUpdate(e){if(this.props.disableAutoView)return;const t=e.experience,i=this.props.experience;i&&this.shouldRenderExperience()&&(t&&t.experience_id===i.experience_id||this.view())}render(){const{children:e,experience:t,disableAutoView:i}=this.props;return t&&this.shouldRenderExperience()?"function"==typeof e?e({experience:t,complete:this.complete,dismiss:this.dismiss,...i?{view:this.view}:Object.freeze({})}):n.Children.only(e):null}}function c(e){const t=(0,a.useSelector)((({experiences:t})=>e.experience||(e.placementId?t[e.placementId]:void 0))),i=(0,a.useDispatch)();return(0,s.jsx)(d,{...e,experience:t,completeExperience:(e,t,n,a)=>i((0,o.CK)(e,t,n,!1,{},a)),completeExperienceObject:(e,t)=>i((0,r.Tl)(e,t)),dismissExperience:(e,t,n,a)=>i((0,o.Qu)(e,t,n,void 0,a)),dismissExperienceObject:e=>i((0,r.CF)(e)),viewExperience:(e,t,n)=>i((0,o.UT)(e,t,!1,!1,void 0,n)),viewExperienceObject:e=>i((0,r.dy)(e))})}l(d,"defaultProps",{eligibleIds:[],eligibleTypes:[]})},332611:(e,t,i)=>{i.d(t,{CK:()=>p,N:()=>v,Qu:()=>h,UT:()=>u,YX:()=>g,d9:()=>_,fO:()=>l,kd:()=>m,pz:()=>d});var n=i(214494),a=i(764990),o=i(172071),r=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,r.OD)(e.resource_response.data)):void 0))},d=(e,t,i,o)=>(l,d)=>{if(t)return Promise.resolve();if(o&&(s=o),1===e.length){const t=e[0],n=d().experiences[t],o=(null==n?void 0:n.extraContext)||null;if(JSON.stringify(o)===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:o}).callGet().then((e=>e.resource_response?l((0,r.cL)(e.resource_response.data)):void 0))},c=(e,t)=>(i,a,o,d=!1,c,u)=>(p,h)=>{const{experiences:_,experiencesMulti:m}=h();let g=null,v=!0;var y;d||(v=_[i]&&_[i].experience_id===a,g=v?_[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}),h=v?r.Yb:r.xW;switch(t){case"dismissed":return d.callDelete().then((()=>{p(h(i,a,t)),p(l(void 0,s))}));case"completed":return d.callUpdate().then((()=>{o||(p(h(i,a,t)),p(l(void 0,s)))}));case"viewed":return p(h(i,a,t)),d.callUpdate().then((()=>{1000162===i&&p(l())}));case"completedWithoutHomefeed":return d.callUpdate().then((()=>{o||p(h(i,a,t))}));default:return Promise.resolve()}}return Promise.resolve()},u=c("UserExperienceViewedResource","viewed"),p=c("UserExperienceCompletedResource","completed"),h=c("UserExperienceResource","dismissed"),_=c("UserExperienceCompletedResource","completedWithoutHomefeed"),m=(e,t)=>(i,a)=>{const{experiences:r}=a(),s=r[e];s&&s.triggerable_placed_exps&&s.triggerable_placed_exps.length&&s.triggerable_placed_exps.forEach((i=>{const[,a]=i.split(":");let r=t;s.metadata&&s.metadata[a]&&(r={...t,...s.metadata[a]}),n.Z.create("UserExperienceTriggerResource",{placed_experience_id:i.replace(":","%3A"),extra_context:r}).callUpdate().then((()=>{((e,t,i={})=>{o.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))}},242923:(e,t,i)=>{i.d(t,{CF:()=>s,Tl:()=>r,dy:()=>l});var n=i(214494),a=i(332611);const o=(e,t)=>(i,o)=>r=>{if(i&&i.id){const s=n.Z.create(e,{placed_experience_id:i.id,extra_context:{}});switch(t){case"dismissed":s.callDelete().then((()=>{r((0,a.fO)())}));break;case"completed":s.callUpdate().then((()=>{o||r((0,a.fO)())}));break;case"viewed":s.callUpdate()}}},r=o("UserExperienceCompletedResource","completed"),s=o("UserExperienceResource","dismissed"),l=o("UserExperienceViewedResource","viewed")},764990:(e,t,i)=>{function n(e){return!!e&&0!==e.type}i.d(t,{A0:()=>o,E3:()=>n,MQ:()=>a});const a=(e,t,i)=>{const a=e[i];return t[i]&&n(a)?a:null};function o(e){var t;return null===(t=e.display_data)||void 0===t?void 0:t.anchor}},131108:(e,t,i)=>{i.d(t,{HI:()=>r,f8:()=>l,hm:()=>s,sH:()=>o});var n=i(883119),a=i(785893);const o=({children:e})=>(0,a.jsx)(n.xu,{padding:4,position:"absolute",bottom:!0,left:!0,right:!0,children:e}),r=({children:e})=>(0,a.jsx)(n.xu,{padding:2,children:e}),s=({children:e})=>(0,a.jsx)(n.xu,{display:"flex",position:"absolute",top:!0,height:"100%",width:"100%",alignItems:"center",justifyContent:"center",children:e}),l=({children:e})=>(0,a.jsx)(n.xu,{padding:4,position:"absolute",top:!0,left:!0,right:!0,children:e})},599997:(e,t,i)=>{i.d(t,{Ec:()=>d,IA:()=>g,LX:()=>c,Mf:()=>m,SF:()=>s,_e:()=>l,l0:()=>r,ml:()=>o,q4:()=>a,zn:()=>n});const n=e=>["feed_card_default","feed_card_video"].includes(e),a=2/3,o=2/3,r=1/3,s="36px",l="28px",d=.4,c=.65,u={0:"start",1:"center",2:"end"},p={web:{0:"16",1:"20",2:"24"},mweb:{0:"12",1:"16",2:"18",3:"20"}},h={1:"italics",0:"normal"},_={1:"bold",0:"normal"},m=({color:e,font_style:t,font_weight:i,horizontal_alignment:n,size:a},o)=>({color:e,fontStyle:h[null!=t?t:0],fontWeight:_[null!=i?i:1],horizontalAlignment:u[null!=n?n:0],fontSize:p[o][null!=a?a:0]+"px"}),g=e=>e<=280?1.25:e>280&&e<=540?.75:e>540&&e<1024?c:d},207737:(e,t,i)=>{i.d(t,{$S:()=>n,V$:()=>a,_4:()=>r,iY:()=>s,mR:()=>o});const n="REFRESH_ALL_EXPERIENCES_MULTI",a="UPDATE_EXPERIENCE_MULTI",o="FETCH_EXPERIENCES",r="REFRESH_ALL_EXPERIENCES",s="UPDATE_EXPERIENCE"},957191:(e,t,i)=>{i.d(t,{NW:()=>r,OD:()=>l,Yb:()=>s,cL:()=>d,xW:()=>o});var n=i(214494),a=i(207737);const o=(e,t,i)=>({type:a.V$,payload:{placementId:e,experienceId:t,status:i}}),r=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}})},570470:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),a=i(883119),o=i(785893);function r({anchor:e,children:t,zIndex:i,leftOverride:r,topOverride:s}){const l=(0,n.useRef)(null),[d,c]=(0,n.useState)(0),[u,p]=(0,n.useState)(0),{height:h,width:_}=e.getBoundingClientRect();(0,n.useEffect)((()=>{const{current:t}=l;if(e&&t){const{height:e,width:i}=t.getBoundingClientRect(),{horizontalOffset:n,verticalOffset:a}=((e,t,i,n)=>({horizontalOffset:-(n/2-t/2),verticalOffset:-(i/2-e/2)}))(h,_,e,i);c(n),p(a)}}));const m=r||d,g=s||u;return(0,o.jsx)(a.xu,{position:"absolute",zIndex:i?new a.Ry(i):void 0,dangerouslySetInlineStyle:{__style:{left:m,top:g}},ref:l,children:t})}const s=function(e){const{anchor:t,leftOverride:i,onTouch:n,onMouseEnter:s,paused:l,size:d,topOverride:c,zIndex:u}=e;return t?(0,o.jsx)(r,{anchor:t,leftOverride:i,topOverride:c,zIndex:u,children:(0,o.jsx)(a.iP,{fullWidth:!1,onTap:({event:e})=>n(e),onMouseEnter:s,rounding:"circle",children:(0,o.jsx)(a.o3,{paused:l,size:d})})}):null}},839534:(e,t,i)=>{i.d(t,{Z:()=>d});var n=i(667294),a=i(570470),o=i(883119),r=i(785893);const s=new o.Ry(669),l={1:"up",2:"right",3:"down",4:"left"},d=({anchors:e={},complete:t,dismiss:i,displayData:d,idealDirection:c,onCompleteByAnchor:u={},platform:p,positionRelativeToAnchor:h=!0,touchToDismiss:_=!0,useMasonryFlyout:m=!1})=>{var g;const{anchors_by_platform:v={},button_text:y,button_uri:f,display_type:b,flyout_direction:x,scroll_to_dismiss:S,scroll_to_dismiss_delay_in_seconds:P=0,text:E}=d||{},T=null===(g=v[p])||void 0===g?void 0:g.anchor,I=e[T],A=(0,n.useCallback)((()=>{S&&(window.removeEventListener("scroll",A),window.removeEventListener("touchmove",A)),_&&I&&I.removeEventListener("click",A),setTimeout((()=>i()),1e3*P)}),[I]);if((0,n.useEffect)((()=>{I&&(S&&(window.addEventListener("scroll",A),window.addEventListener("touchmove",A)),_&&I.addEventListener("click",A))}),[I]),!I)return null;const w=({children:e})=>{if(m)return(0,r.jsx)(o.mh,{zIndex:s,children:e});if(2===b){const t={};if(h)t.top=I.offsetTop,t.left=I.offsetLeft,t.width=I.offsetWidth,t.height=I.offsetHeight;else{const e=I.getBoundingClientRect();t.top=e.top+window.pageYOffset,t.left=e.left+window.pageXOffset,t.width=e.width,t.height=e.height}return(0,r.jsx)(o.xu,{position:"absolute",top:!0,left:!0,zIndex:s,dangerouslySetInlineStyle:{__style:t},children:e})}return(0,r.jsx)(o.xu,{zIndex:s,children:e})},C=l[x],R=f&&(f.startsWith("https://")||f.startsWith("http://")),k=(u||{})[T],O=()=>{S&&(window.removeEventListener("scroll",A),window.removeEventListener("touchmove",A)),_&&I.removeEventListener("click",A),t()};return(0,r.jsxs)(n.Fragment,{children:[2===b&&(0,r.jsx)(w,{children:(0,r.jsx)(a.Z,{anchor:I,onTouch:()=>{O(),k?k():I instanceof HTMLElement&&I.click()},zIndex:670})}),1===b&&(0,r.jsx)(w,{children:(0,r.jsx)(o.J2,{anchor:I,color:"blue",idealDirection:C||c||"down",onDismiss:A,positionRelativeToAnchor:!m&&h,shouldFocus:!1,showCaret:!0,size:"md",children:(0,r.jsxs)(o.xu,{padding:4,width:"220px",children:[(0,r.jsx)(o.xv,{align:"center",color:"inverse",weight:"bold",children:E}),y?(0,r.jsx)(o.xu,{display:"flex",justifyContent:"center",marginTop:4,children:(0,r.jsx)(o.xu,{column:8,children:f?(0,r.jsx)(o.zx,{fullWidth:!0,color:"white",href:f,onClick:({dangerouslyDisableOnNavigation:e})=>{e(),O()},role:"link",size:"md",target:R?"blank":null,text:y}):(0,r.jsx)(o.zx,{fullWidth:!0,color:"white",onClick:O,size:"md",text:y})})}):null]})})})]})}},378518:(e,t,i)=>{i.d(t,{_:()=>d,a:()=>c});var n=i(667294),a=i(702664),o=i(618446),r=i.n(o),s=i(780280),l=i(332611);const d=({extraContext:e,id:t,shouldUsePlacedExperience:i=!0})=>{const o=(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||r()(o.current,e)||(d((0,l.pz)([t],c,e)),o.current=e)}),[d,e,c,t,i]),u},c=e=>(d(e),(0,a.useSelector)((t=>t.experiencesMulti[e.id])))},116303:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(883119),a=i(785893);const o=(e,t)=>{const i=null==e?void 0:e.includes("images/user/default");return Boolean(i&&t)};function r({accessibilityLabel:e,name:t,outline:i,size:r,src:s,verified:l}){return(0,a.jsx)(n.qE,{accessibilityLabel:e,name:t,outline:i,size:r,src:o(s,t)?void 0:s,verified:l})}},920231:(e,t,i)=>{i.d(t,{Z:()=>_});var n=i(667294),a=i(319915);function o({flexible:e,gutterWidth:t,id:i,isRTL:n,itemWidth:a,maxColumns:o,minColumns:r}){const s=i.replace(/\:/g,"\\:"),l=a+t;return`\n    .gridCentered {\n      margin-left: auto;\n      margin-right: auto;\n    }\n\n    .gridCentered .static {\n      position: absolute !important;\n      visibility: hidden !important;\n    }\n\n    ${Array.from({length:o+1-r},((e,t)=>t+r)).map((i=>{const d=i===o?null:(i+1)*l-1;return`\n      @media (min-width: ${i===r?0:i*l}px) ${d?`and (max-width: ${d}px)`:""} {\n        #${s} .static:nth-child(-n+${i}) {\n          position: static !important;\n          visibility: visible !important;\n          float: ${n?"right":"left"};\n          display: block;\n        }\n\n        ${e?`\n      #${s} .static {\n        width: calc(100% / ${i}) !important;\n      }\n    `:`\n      #${s} {\n        width: ${i*l}px;\n      }\n\n      #${s} .static {\n        padding: 0 ${t/2}px;\n        width: ${a}px !important;\n      }\n    `}\n      }\n    `})).join("")}\n  `}var r=i(757184),s=i(391254),l=i(50286),d=i(883119),c=i(773285),u=i(780280),p=i(444445),h=i(785893);function _({cacheKey:e,columnWidth:t,gutterWidth:i,id:_,renderItem:m,items:g,layout:v,loadItems:y,masonryRef:f,minCols:b,scrollContainerRef:x,serverRender:S,resetPositions:P,virtualize:E=!0}){var T;const{isRTL:I}=(0,u.B)(),A="desktop"!==(0,l.ZP)(),w=S?"serverRenderedFlexible":"flexible",C=(0,n.useCallback)((()=>(null==x?void 0:x.current)||window),[x]),R=(0,r.Z)(e),[k,O]=(0,n.useState)(!1);(0,n.useEffect)((()=>{P&&!k&&(null==R||R.reset(),O(!0))}),[R,P,k]);const{checkExperiment:D}=(0,c.F)(),N=null!==(T={enabled_0_3:"0.3",enabled_0_5:"0.5",enabled_0_9:"0.9",enabled_1_1:"1.1",enabled_1_3:"1.3"}[D("duplo_masonry_virtual_buffer_factor").group])&&void 0!==T?T:.7;return(0,h.jsxs)("div",{id:_,className:"gridCentered","data-test-id":"masonry-container",children:[S&&_&&(0,h.jsx)(s.Z,{"data-test-id":"mobile-grid-styles",unsafeCSS:o({flexible:A,gutterWidth:i||0,id:_,isRTL:I,itemWidth:t||p.yF,maxColumns:g.length||p.g5,minColumns:b||p.yc})}),(0,h.jsx)(d.Rk,{columnWidth:t,renderItem:e=>(0,h.jsx)(a.Z,{name:"MobileGridItem",children:m(e)}),gutterWidth:i||1,layout:A?w:null!=v?v:"basic",items:g,loadItems:y,measurementStore:(0,r.Z)(e),minCols:b||p.yc,ref:e=>{f&&(f.current=e)},scrollContainer:C,virtualize:E,virtualBufferFactor:N})]})}},757184:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(883119);const a={};function o(e){if(null!=e)return a[e]&&a[e].screenWidth===window.innerWidth||(a[e]={screenWidth:window.innerWidth,cache:n.Rk.createMeasurementStore()}),a[e].cache}},121151:(e,t,i)=>{i.d(t,{ZP:()=>c,b7:()=>s.b7,bN:()=>l,p4:()=>d});var n=i(50286),a=i(883119),o=i(240684),r=i(785893),s=i(968121);const l=(0,o.ZP)({resolved:{},chunkName:()=>"DesktopModal",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e(51879).then(i.bind(i,373420)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return i(t)},resolve(){return 373420}}),d=(0,o.ZP)({resolved:{},chunkName:()=>"MobileModal",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e(72430).then(i.bind(i,430322)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return i(t)},resolve(){return 430322}});function c(e){const t=(0,n.ZP)(),i=void 0===e.isOpen||e.isOpen;if("desktop"===t&&i){const{isOpen:t,mobileAccessibilityCloseIconLabel:i,mobileAllowScroll:n,mobileHideCloseIcon:a,mobileIsFullscreen:o,mobileIsSlideUp:s,type:d,...c}=e;return(0,r.jsx)(l,{...c})}const{allowClickAndDrag:a,allowMediaPlay:o,allowScroll:s,role:c,size:u,...p}=e;return(0,r.jsx)(d,{...p,isOpen:i})}},373420:(e,t,i)=>{i.r(t),i.d(t,{default:()=>d});var n=i(667294),a=i(124580),o=i(223815),r=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:h,footer:_,heading:m,onDismiss:g,role:v,size:y,subHeading:f}){(0,n.useEffect)((()=>(a.Z.pause(),function(){a.Z.resume()})),[]);return(0,l.jsx)(s.mh,{zIndex:r.b7,children:(0,l.jsx)(o.Z,{allowClickAndDrag:d,allowEsc:!0,allowMediaPlay:c,allowScroll:u,children:(0,l.jsx)(s.u_,{_dangerouslyDisableScrollBoundaryContainer:e,accessibilityModalLabel:t,align:i,closeOnOutsideClick:h,heading:m,footer:_,onDismiss:()=>{a.Z.resume(),g()},role:v,size:y,subHeading:f,padding:"none",children:p})})})}},430322:(e,t,i)=>{i.r(t),i.d(t,{default:()=>m});var n=i(667294),a=i(124580),o=i(283698),r=i(223815),s=i(50286),l=i(898781),d=i(965900),c=i(780280),u=i(883119),p=i(968121),h=i(867820),_=i(785893);function m({_dangerouslyDisableScrollBoundaryContainer:e,accessibilityModalLabel:t,align:i="center",allowScroll:m=!1,children:g,closeOnOutsideClick:v=!0,footer:y,heading:f,mobileAccessibilityCloseIconLabel:b,mobileHideCloseIcon:x,mobileIsFullscreen:S,isOpen:P,mobileIsSlideUp:E,modalStyle:T,onDismiss:I,overrideZDepth:A,subHeading:w,type:C}){const R=(0,l.ZP)(),{isRTL:k}=(0,c.B)(),O=(0,n.useRef)(!1),[D,N]=(0,n.useState)(!1),{setAppFocusState:j}=(0,d.I)(),L=(0,s.ZP)();(0,n.useEffect)((()=>{(0,h.My)(`mweb_unauth.mobile_modal.${C||"unknown_type"}.did_mount.is_open.${String(!!P)}`)}),[P,C]),(0,n.useEffect)((()=>(O.current=(0,o.Z)((()=>{O.current&&N(!0)})),()=>{"undefined"!=typeof window&&Object.prototype.hasOwnProperty.call(window,"cancelAnimationFrame")&&O.current&&(window.cancelAnimationFrame(O.current),O.current=null)})),[]),(0,n.useEffect)((()=>(P?(a.Z.pause(),j(!1)):(a.Z.resume(),j(!0)),()=>{P&&(a.Z.resume(),j(!0))})),[j,P]);const M=P&&!m;(0,n.useEffect)((()=>(M&&(()=>{if(document.body){const{body:{style:e}}=document;e.overflow="hidden",e.touchAction="none"}})(),()=>{M&&(()=>{if(document.body){const{body:{style:e}}=document;e.overflow="visible",e.touchAction="auto"}})()})),[M]);const F=(0,p.bf)();if(!P)return null;const U=E?(0,p.Vf)({isFullscreen:S,isTablet:"tablet"===L,isShowing:D,type:C}):(0,p.JN)({isFullscreen:S,isTablet:"tablet"===L,modalStyle:T,type:C});return(0,_.jsx)(r.Z,{children:(0,_.jsx)(u.mh,{children:(0,_.jsxs)(u.xu,{"aria-label":t,display:"inlineBlock",zIndex:A?new u.Ry(A):p.ZM,position:"relative",role:"dialog",children:[(0,_.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=C||"unknown_type";(0,h.tj)(`mweb_unauth.mobile_modal.wash_tap.${n}.${i}_dismissal`,{x:t.clientX,y:t.clientY}),v&&I&&I()},tapStyle:"none",children:(0,_.jsx)(u.xu,{position:"fixed",top:!0,left:!0,dangerouslySetInlineStyle:F})}),(0,_.jsxs)(u.xu,{position:"fixed",color:"default",dangerouslySetInlineStyle:U,children:[(0,_.jsxs)(u.kC,{alignItems:"center",justifyContent:"start",width:"100%",gap:{row:2,column:0},children:[b&&!x?(0,_.jsx)(u.xu,{padding:2,"data-test-id":"mobile-modal-cancel-button",children:(0,_.jsx)(u.hU,{accessibilityLabel:b,iconColor:"darkGray",icon:"cancel",onClick:I,padding:4,size:"sm"})}):null,f?(0,_.jsx)(u.kC.Item,{flex:"grow",children:(0,_.jsx)(u.kC,{direction:"column",alignItems:"center",justifyContent:"center",children:(0,_.jsxs)(u.xu,{dangerouslySetInlineStyle:b&&!x?(0,p.ju)(k):{__style:{}},children:[S?f:(0,_.jsx)(u.xv,{align:i,weight:"bold",size:"400",children:f}),w?(0,_.jsx)(u.xv,{align:i,children:w}):null]})})}):null]}),(0,_.jsxs)(u.xu,{overflow:e?"visible":"auto",children:[g,y]})]})]})})})}},968121:(e,t,i)=>{i.d(t,{JN:()=>u,Vf:()=>p,ZM:()=>s,b7:()=>r,bf:()=>c,i_:()=>l,ju:()=>h});var n=i(379764),a=i(643010),o=i(883119);const r=new o.Ry(1e3),s=new o.H3([n.Z]),l=12,d={headingOffset:{__style:{marginLeft:-10,marginRight:50}},RTLheadingOffset:{__style:{marginRight:-10,marginLeft:50}},mask:{baseStyles:{backgroundColor:"rgba(0,0,0, .5)",height:"100%",touchAction:"none",transitionProperty:"opacity",transitionTimingFunction:"ease-out",width:"100%",zIndex:1}},modal:{baseStyles:{border:(0,a.Yc)()?void 0:"1px solid #efefef",touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",width:"100vw",zIndex:1,left:"0px",bottom:0,borderRadius:"32px 32px 0px 0px",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)",overflow:"hidden"},tabletStyles:{border:void 0,borderRadius:"32px",top:"50%",left:"50%",minWidth:"350px",touchAction:"none",transform:"translate(-50%, -50%)",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",zIndex:1},nonTabletSignUpStyles:{border:void 0,borderRadius:"32px",top:"50%",touchAction:"none",transform:"translate(0%, -50%)",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",zIndex:1,left:"8px",right:"8px",background:"#FFFFFF"},baseStylesSliding:{border:(0,a.Yc)()?void 0:"1px solid #efefef",touchAction:"none",width:"100vw",height:"",zIndex:1,left:0,bottom:0,borderRadius:"32px 32px 0px 0px",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)"},fullscreenStyles:{touchAction:"none",transitionProperty:"transform, opacity",transitionTimingFunction:"ease-out",width:"90vw",height:"70vh",borderRadius:"8px",zIndex:1,left:"5vw",bottom:"13vh",overflowY:"hidden"},tabletNarrowStyle:{width:425,left:"50%",transform:"translateX(-50%)"}}},c=()=>({__style:d.mask.baseStyles}),u=({isFullscreen:e,isTablet:t,modalStyle:i,type:n})=>{const a=d.modal.fullscreenStyles;let o;return o=e?a:t?d.modal.tabletStyles:"signup"===n?d.modal.nonTabletSignUpStyles:{...d.modal.baseStyles,borderRadius:"32px 32px 0 0"},{__style:i||o}},p=({isFullscreen:e,isTablet:t,isShowing:i,type:n})=>{let a=d.modal.baseStylesSliding,o=i?"translateY(0)":"translateY(100vh)";return a.height=e?"100vh":"",t&&"related_interests_modal"===n&&(a={...a,...d.modal.tabletNarrowStyle},o=i?"translate(-50%, 0)":"translate(-50%, 100vh)"),{__style:{...a,transition:"all 225ms cubic-bezier(0.0,0.0,0.2,1) 500ms",transform:o}}},h=e=>e?d.RTLheadingOffset:d.headingOffset},499128:(e,t,i)=>{i.d(t,{UZ:()=>d,Vg:()=>l,ZP:()=>c});var n=i(667294),a=i(829407),o=i(50286),r=i(883119),s=i(785893);const l=200,d=({deviceType:e,hiding:t,visible:i})=>{const n="desktop"===e;let a=0,o=n?"translateY(200px)":"translateY(-200px)",r="opacity 0.1s ease-in-out",s="hidden";return i&&!t&&(a=1,o="translateY(0)",r="all 0.7s cubic-bezier(.19, 1.15, .48, 1)",s="visible"),i&&t&&(o="scale(1.1)",r="opacity transform 0.2s"),{opacity:a,pointerEvents:"auto",position:"relative",marginTop:n?10:0,transform:o,transition:r,visibility:s}};function c({_dangerouslySetPrimaryAction:e,text:t,primaryAction:i,thumbnailShape:c,variant:u,dataTestId:p,duration:h=2e3,onHide:_,href:m,onClick:g,openNewPage:v,iconThumbnail:y,imageUrl:f}){const b=(0,o.ZP)(),[x,S]=(0,n.useState)(!1),[P,E]=(0,n.useState)(!1),T=(0,n.useRef)(),I=()=>{S(!0),T.current=setTimeout(_,l)},A=()=>{T.current=setTimeout(I,h)},w=()=>{T.current&&clearTimeout(T.current)};let C;(0,a.Z)((()=>(setTimeout((()=>E(!0)),100),A(),w))),y?C=y:f&&(C=(0,s.jsx)(r.xu,{height:48,overflow:"hidden",width:48,children:(0,s.jsx)(r.Ee,{alt:"string"==typeof t?t:`${t[0]} ${t[1]}`,fit:"cover",naturalHeight:1,naturalWidth:1,src:f})}));const R=(0,s.jsx)(r.FN,{_dangerouslySetPrimaryAction:e,primaryAction:i,text:t,thumbnail:C,thumbnailShape:c,variant:u}),{marginTop:k,opacity:O,pointerEvents:D,position:N,transform:j,transition:L,visibility:M}=d({deviceType:b,hiding:x,visible:P});return(0,s.jsx)(r.xu,{dangerouslySetInlineStyle:{__style:{transform:j,transition:L,visibility:M,pointerEvents:D}},"data-test-id":null!=p?p:"toast",onMouseEnter:w,onMouseLeave:A,opacity:O,position:N,marginTop:k,display:"flex",children:m?(0,s.jsx)(r.iP,{role:"link",href:m,onTap:({event:e})=>null==g?void 0:g(e),target:v?"blank":null,rounding:"pill",children:R}):R})}},934494:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(995228),a=i(785893);function o({useGraphQLAdapter:e,useLegacyAdapter:t}){const i=({children:t,data:i})=>t({enabled:!0,data:e(i)}),o=({children:e,data:i})=>e({enabled:!1,data:t(i)});return function({children:e,input:t}){const r=t.enabled?(0,a.jsx)(i,{data:t.data,children:e}):(0,a.jsx)(o,{data:t.data,children:e});return t.suspense?(0,a.jsx)(n.Z,{fallback:t.suspense.fallback,children:r}):r}}},444445:(e,t,i)=>{i.d(t,{$H:()=>r,$q:()=>v,D6:()=>l,KN:()=>y,Lo:()=>a,P2:()=>_,ZZ:()=>c,g5:()=>u,jC:()=>s,lX:()=>h,nW:()=>p,oX:()=>m,qG:()=>g,tG:()=>o,yF:()=>n,yc:()=>d});const n=236,a=2*n/3,o=175,r=24,s=4,l=2,d=2,c=14,u=16,p=12,h=16,_=24,m=16,g=-1,v=(e=!1,t=!1)=>e?t?h:p:_,y=(e,t,i,n,a=c)=>{const o=e+a;return`\n@media (min-width: ${t*o}px) and (max-width: ${(i+1)*o-1}px) {\n  ${n}\n}\n`}},298361:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(898781),a=i(349700),o=i(202139);function r(){const e=(0,n.ZP)();return function(t,i){const n=new Date(t),r=new Date-n,s=Math.floor(r/o.FS),l=Math.floor(r/o.UK),d=Math.floor(r/o.F4),c=Math.floor(r/o.VL),u=Math.floor(r/o.N1),p=e.nbt(["{{ minutes }} 分钟前"], s, " - ", true),h=e.nbt(["{{ hours }} 小时前"], l, " - ", true),_=e.nbt(["{{ days }} 天前"], d, " - ", true),m=e.nbt(["{{ weeks }} 周前"], c, " - ", true),g=e.nbt(["{{ years }} 年前"], u, " - ", true),v=e.nbt(["{{ minutes }} 分钟"], s, "minutes ago abbreviated", true),y=e.nbt(["{{ hours }} 小时"], l, "hours ago abbreviated", true),f=e.nbt(["{{ days }} 天"], d, "days ago abbreviated", true),b=e.nbt(["{{ weeks }} 周"], c, "weeks ago abbreviated", true),x=e.nbt(["{{ years }} 年"], u, "years ago abbreviated", true);return u>0?(0,a.nk)(i?x:g,{years:u}).join(""):c>0?(0,a.nk)(i?b:m,{weeks:c}).join(""):d>0?(0,a.nk)(i?f:_,{days:d}).join(""):l>0?(0,a.nk)(i?y:h,{hours:l}).join(""):s>0?(0,a.nk)(i?v:p,{minutes:s}).join(""):e.bt("刚刚", "Just now", " - ", undefined, true)}}},898781:(e,t,i)=>{i.d(t,{ZP:()=>s,oz:()=>o,q6:()=>a});var n=i(425288);const{Provider:a,Consumer:o,useHook:r}=(0,n.Z)("i18n"),s=r},892819:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(66699),a=i(898781);const o=(e,t)=>{const i=t||0,n=10**i,a=+(i?e*n:e).toFixed(8),o=Math.floor(a),r=a-o,s=r>.5-1e-8&&r<.5+1e-8?o%2==0?o:o+1:Math.round(a);return i?s/n:s},r=e=>{try{(0).toLocaleString([e])}catch(t){return!1}return!0};function s(){const e=(0,a.ZP)();return(t,i,a)=>{let s=0,l=0;const d=a&&a.style||void 0,c=a&&a.shortform||!1,u=a&&a.uplimit||void 0,p=a&&a.currency||void 0,h=!!u&&i>=u,_=u&&h?u:i;if("currency"===d){const{minimumFractionDigits:e,maximumFractionDigits:i}=((e,t)=>{if(t){const{minimumFractionDigits:i,maximumFractionDigits:n}=new Intl.NumberFormat(e,{style:"currency",currency:t}).resolvedOptions();if(void 0!==i&&void 0!==n)return{minimumFractionDigits:i,maximumFractionDigits:n}}return{minimumFractionDigits:2,maximumFractionDigits:2}})(t,p);s=void 0===a||void 0===a.maximum_fraction_digits?i:a.maximum_fraction_digits,l=void 0===a||void 0===a.minimum_fraction_digits?e:a.minimum_fraction_digits}else s=void 0===a||void 0===a.maximum_fraction_digits?0:a.maximum_fraction_digits,l=void 0===a||void 0===a.minimum_fraction_digits?0:a.minimum_fraction_digits;if(c&&_>999&&(s=void 0===a||void 0===a.shortform_maximum_fraction_digits?2:a.shortform_maximum_fraction_digits,l=0),s<l)return String(_);let m=_,g="";const v=[{"100M":{value:1e8,localeKey:e.bt("亿", "億", "Abbreviation for one hundred millions. This abbreviation is only used in Chinese, Japanese and Korean.", undefined, true)}},{"10k":{value:1e4,localeKey:e.bt("万", "万", "Abbreviation for ten thousand. This abbreviation is only used in Chinese, Japanese and Korean.", undefined, true)}}],y=[{b:{value:1e9,localeKey:e.bt("B", "B", "Abbreviation for one billion.", undefined, true)}},{m:{value:1e6,localeKey:e.bt("百万", "M", "Abbreviation for one million.", undefined, true)}},{k:{value:1e3,localeKey:e.bt("千", "k", "Abbreviation for one thousand.", undefined, true)}}],f=/^zh|ja|ko/.test(t);if(c&&_>999){const e=f?v:y;for(let t=0;t<e.length;t+=1){const i=Object.keys(e[t])[0],n=e[t][i].value;if(_>=n){m=o(_/n*Math.pow(10,s))/Math.pow(10,s),g=e[t][i].localeKey;break}}}if(null==m)return"";const b=m.toLocaleString([r(t)&&"ar-SA"!==t?t:"en-US"],(({maximumFractionDigits:e,minimumFractionDigits:t,style:i,currency:n})=>{const a={maximumFractionDigits:e,minimumFractionDigits:t};return i?{...a,style:i,..."currency"===i?{currency:n,currencyDisplay:"symbol"}:{}}:a})({maximumFractionDigits:s,minimumFractionDigits:l,currency:p,style:d}));return g&&g.length>0?(0,n.Z)(e.bt("{{formattedNumber}} {{numberSuffix}}", "{{formattedNumber}}{{numberSuffix}}", "i18n.usePrettyNumberFormat.prettyNumberFormat", undefined, true),{formattedNumber:b,numberSuffix:g})+(h?"+":""):b+(h?"+":"")}}},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:()=>h,ZP:()=>_});const a=1e6,o=window.location.search.includes("debug_impressions=1")||document.cookie&&document.cookie.indexOf("debug_impressions=1")>-1,r={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"}),[r.enter]:{background:"#A0DCC8",transform:"scale(.99)"},[r.exit]:l,[r.stopped]:l,[r.paused]:l,[r.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(r.enter,{startTime:e,node:this.node}),this.enterCallbacks.forEach((e=>e()))}else!t&&this.inViewport&&(this._debug(r.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,o&&Object.assign(this.node.style,d.init(e)),this}pause(){return this.inViewport&&(this._debug(r.paused,!0),this.exitCallbacks.forEach((e=>e(this.toJSON())))),this}resume(){if(this.inViewport){const e=Date.now();this._debug(r.resumed,{startTime:e}),this.startTime=e}return this}stop(e){return this.inViewport&&(this._debug(r.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(o)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 r.flushed:case r.paused:case r.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,h=!1;class _{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=h,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===h&&(this.pausePriority=e))}resume(e=p){e===h&&this.pausePriority===p||this.paused&&(Array.from(this.activeImpressions.values()).forEach((e=>e.resume())),this.paused=!1,this.pausePriority=h)}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)},349700:(e,t,i)=>{function n(e,t,i){return e.split(i).map((e=>{if(e.match(i)){const i=e.replace(/[\{\}]/g,"").trim();if(Object.prototype.hasOwnProperty.call(t,i))return t[i]}return e}))}i.d(t,{Wc:()=>r,bF:()=>l,nk:()=>o});const a=/(\{\{\s*\w+\s*\}\})/g;function o(e,t){return n(e,t,a)}function r(e,t){return n(e,t,a).join("")}const s=/(\{\s*\w+\s*\})/g;function l(e,t){return n(e,t,s)}},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()}},755742:(e,t,i)=>{i.d(t,{Z:()=>n});const n={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,F5:116,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}},313047:(e,t,i)=>{i.r(t),i.d(t,{DEFAULT_HEIGHT:()=>u,DEFAULT_PADDING_Y:()=>p,FixedFooter:()=>m,FixedHeader:()=>_});var n=i(667294),a=i(124580),o=i(53987),r=i(773285),s=i(834256),l=i(883119),d=i(643010),c=i(785893);const u=64,p=3;function h({children:e,footerConfig:t,headerConfig:i,height:o,hideOnScroll:s,hideOnScrollState:{isHidden:h,updateHiddenState:_},showDockedNavBar:m,dockNavBarForAuthTablet:g,isTablet:v,noPadding:y,paddingY:f=p,type:b,zIndex:x}){const{headerLimitedOverflow:S,ignoreObstructions:P,zIndexForGestaltBug:E}=i||{},{appUpsellFooterConfig:T,footerInLego:I,footerWidth:A}=t||{},w=!!T,C="header"===b?"top":"bottom",{anyEnabled:R}=(0,r.F)().checkExperiment("hfp_hf_ssr_mweb",{dangerouslySkipActivation:!0}),k=(0,d.vs)(),O=R?k:(0,d.Yc)(),D=(0,n.useRef)(null),N=(0,n.useRef)(null);(0,n.useEffect)((()=>{try{if(!P){const e=D.current;N.current=S&&e&&Array.isArray(e.children)?e.children[0]:e,N.current instanceof HTMLElement&&a.Z.addObstruction(C,N.current)}}catch(e){window.console.error(e),window.console.error('Can only register impression obstructions for type "HTMLElement"')}return()=>{P||N.current instanceof HTMLElement&&a.Z.removeObstruction(C,N.current)}}),[P,S,C,O]);const j="top"===C?"relative":"fixed",L=y?0:f,M=(null!=o?o:u)+((null==i?void 0:i.overrideTop)||0),F=s||m||g?{transition:I?"transform 300ms ease-in-out, opacity 300ms ease-in-out":"transform 200ms linear",...h?{transform:`translateY(${"top"===C?-M:M}px)`,opacity:I?0:1}:Object.freeze({})}:{},U="relative"!==j||null!=i&&i.noGutter?0:2,B=U?-U:0,z=O?"rgba(0,0,0,.95)":"rgba(255,255,255,.95)";let V,H;return O&&("header"===b?V=-1:H=-1),(0,c.jsx)(l.xu,{ref:D,dangerouslySetInlineStyle:{__style:{top:V,bottomStyle:H,...!x||E?{zIndex:E||1}:Object.freeze({}),...S?{background:"transparent",overflow:"hidden",paddingBottom:100,marginBottom:-100,pointerEvents:"none"}:Object.freeze({}),...null!=i&&i.hasBorder?{borderBottom:"1px solid #efefef"}:Object.freeze({}),...null!=t&&t.hasTopShadow?{boxShadow:"0 -2px 4px 1px rgba(0, 0, 0, 0.08)"}:Object.freeze({}),...F}},zIndex:E?void 0:x,"data-test-id":b,display:w?"flex":void 0,height:o&&!I?o:void 0,position:j,bottom:"footer"===b,top:"header"===b,left:!0,right:!0,marginStart:I?"auto":B,marginEnd:I?"auto":B,onTransitionEnd:()=>{(s||m||g)&&N.current&&(h?a.Z.removeObstruction(C,N.current):a.Z.addObstruction(C,N.current))},width:I||"fixed"!==j?void 0:"100%",children:(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:(null==i?void 0:i.isTranslucent)&&z||(null==i?void 0:i.isTransparentBackground)&&"transparent"||"var(--color-background-default)",height:I?w?void 0:null!=o?o:u:"100%",boxShadow:I?"0px 0px 8px rgba(0, 0, 0, 0.1)":void 0,marginBottom:!I||m&&!v?void 0:16,...S?{pointerEvents:"auto"}:Object.freeze({}),...null!=i&&i.useRoundedCorners?{zIndex:5,borderTopRightRadius:17,borderTopLeftRadius:17,borderBottomRightRadius:0,borderBottomLeftRadius:0}:Object.freeze({})}},paddingX:("footer"!==b||y?0:4)+U,paddingY:L,position:"relative",width:I&&A?A:w?void 0:"100%",rounding:!I||m&&!v?void 0:"pill",display:I||null!=t&&t.alignCenter?"flex":void 0,marginStart:I?"auto":void 0,marginEnd:I?"auto":void 0,alignItems:null!=t&&t.alignCenter?"center":void 0,children:"function"==typeof e?e({updateHiddenState:_}):e})})}function _({hasBorder:e,headerLimitedOverflow:t,ignoreObstructions:i,isTranslucent:n,isTransparentBackground:a,noGutter:o,overrideTop:r,useRoundedCorners:d,zIndexForGestaltBug:u,..._}){const{noPadding:m,paddingY:g=p,zIndex:v}=_,y=m?0:g;return(0,c.jsx)(l.Le,{top:r||0,height:t?44+2*y*4:void 0,zIndex:v||void 0,children:(0,c.jsx)(s.Z,{hideOnScroll:_.hideOnScroll,children:s=>(0,c.jsx)(h,{..._,hideOnScrollState:s,type:"header",headerConfig:{isTranslucent:n,isTransparentBackground:a,headerLimitedOverflow:t,hasBorder:e,ignoreObstructions:i,noGutter:o,overrideTop:r,zIndexForGestaltBug:u,useRoundedCorners:d}})})})}function m({alignCenter:e,appUpsellFooterConfig:t,footerInLego:i,footerWidth:n,forceShow:a,hasTopShadow:r,location:l,showDockedNavBar:d,dockNavBarForAuthTablet:u,isTablet:p,isModal:_,onScroll:m,...g}){const v=!!l&&(0,o.uM)(l)&&(!!d||!!u);return(0,c.jsx)(s.Z,{appUpsellFooterConfig:t,forceShow:a,hideOnScroll:g.hideOnScroll,location:l,isDockedNavOnPlp:v,isModal:_,onScroll:m,children:a=>(0,c.jsx)(h,{...g,hideOnScrollState:a,showDockedNavBar:d,dockNavBarForAuthTablet:u,isTablet:p,type:"footer",footerConfig:{alignCenter:e,appUpsellFooterConfig:t,footerInLego:i,footerWidth:n,hasTopShadow:r}})})}},834256:(e,t,i)=>{i.d(t,{Z:()=>s,m:()=>r});var n=i(667294),a=i(700380);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 r=20;class s extends n.Component{constructor(...e){super(...e),o(this,"state",{isHidden:!!this.props.appUpsellFooterConfig||!!this.props.isDockedNavOnPlp}),o(this,"lastScrollPos",0),o(this,"updateHiddenState",(e=>{this.reqAnimationId=window.requestAnimationFrame((()=>{this.setState({isHidden:e})}))})),o(this,"handleScroll",(0,a.Z)((()=>{const{appUpsellFooterConfig:e,isModal:t,onScroll:i,isDockedNavOnPlp:n}=this.props,{isHidden:a}=this.state,o=window.scrollY,s=o-this.lastScrollPos;let l="none";const{scrollHeight:d,clientHeight:c}=document.documentElement||{};if(!Number.isNaN(d)&&!Number.isNaN(c))if(s<0){const e=window.scrollMinY||0;l=o<=Math.abs(e+Math.max(s,r))?"start":"none"}else{l=o>=(window.scrollMaxY||d-c)-Math.max(s,r)?"end":"none"}const u=t?0:55;if(e)if(s>r&&a&&o>=500){e.shouldShowAfterScroll()&&(this.updateHiddenState(!1),i&&i(!1))}else(s<-r&&!a||o<=u)&&(this.updateHiddenState(!0),i&&i(!0));else!this.props.hideOnScroll&&n?"start"===l&&!a||o<=u?(this.updateHiddenState(!0),i&&i(!0)):(o>u||"end"===l)&&a&&(this.updateHiddenState(!1),i&&i(!1)):(s<-r||"start"===l)&&a||o<=u?(this.updateHiddenState(!1),i&&i(!1)):(s>r||"end"===l)&&!a&&(this.updateHiddenState(!0),i&&i(!0));this.lastScrollPos=o}),30))}componentDidMount(){try{(this.props.hideOnScroll||this.props.isDockedNavOnPlp)&&window.addEventListener("scroll",this.handleScroll)}catch(e){window.console.error(e),window.console.error('Can only register impression obstructions for type "HTMLElement"')}}componentWillUnmount(){(this.props.hideOnScroll||this.props.isDockedNavOnPlp)&&window.removeEventListener("scroll",this.handleScroll),this.reqAnimationId&&(window.cancelAnimationFrame(this.reqAnimationId),this.reqAnimationId=null)}componentDidUpdate(e){!e.hideOnScroll&&this.props.hideOnScroll||!e.isDockedNavOnPlp&&this.props.isDockedNavOnPlp?(this.updateHiddenState(!0),window.addEventListener("scroll",this.handleScroll)):(e.hideOnScroll&&!this.props.hideOnScroll||e.isDockedNavOnPlp&&!this.props.isDockedNavOnPlp)&&(this.updateHiddenState(!1),window.removeEventListener("scroll",this.handleScroll))}render(){const{children:e,forceShow:t}=this.props,{isHidden:i}=this.state;return e({isHidden:!t&&i,updateHiddenState:this.updateHiddenState})}}},166300:(e,t,i)=>{i.d(t,{Z:()=>l});var n=i(50286),a=i(883119),o=i(444445),r=i(134879),s=i(785893);const l=({children:e,roundedForLargeDevice:t})=>{const i="phone"!==(0,n.ZP)()&&t;return(0,r.V)()?(0,s.jsx)(a.xu,{marginStart:-o.D6,marginEnd:-o.D6,rounding:i?6:void 0,overflow:i?"hidden":void 0,children:(0,s.jsx)(r.C,{value:!1,children:e})}):e}},134879:(e,t,i)=>{i.d(t,{C:()=>o,V:()=>r});var n=i(667294);const a=(0,n.createContext)(!1),o=a.Provider,r=()=>(0,n.useContext)(a)},48714:(e,t,i)=>{i.d(t,{nS:()=>x,iw:()=>P,gV:()=>f,G3:()=>E,lI:()=>T,Gj:()=>S,Jd:()=>y,$3:()=>b});var n=i(231486),a=i(56641),o=i(768559),r=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),h=i(579164),_=i(333155),m=i(397066),g=i(623568),v=i(226198);const y=()=>{window&&window.focus(),document.activeElement&&document.activeElement.blur()},f=({isOffsiteUrl:e,event:t})=>!e&&(t.metaKey||t.ctrlKey),b=({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=_.ZF.includes(i),o=e.pathname.includes(t);return n&&!a||o})({location:e,pinId:t,surface:a}),x=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:o,url:r}=e;let s={token:a,url:r};if(!o){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}}o&&(s={...s,...o});return`/offsite/?${(0,l.Z)(s)}`},S=e=>{(0,a.Z)(x(e),!0)},P=async({isMounted:e,pin:t,location:i,spamCheckCallback:n,href:a})=>{var r,s;const l=await(0,u.Z)({check_only:!0,client_tracking_params:(0,o.Z)({boardUrl:null==t||null===(r=t.board)||void 0===r?void 0:r.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})}},E=({event:e,onHistoryChange:t,href:i,history:n,target:o})=>{const l=(0,r.Z)(i),u=s(i),p=(0,d.Z)(l);p===h.Z.TRUSTED_DIFFERENT_ORIGIN||"blank"===o?(0,a.Z)(l,"blank"===o):n&&p===h.Z.SAME_ORIGIN&&(n.push((0,c.Z)({url:l}),null!=u?u:{}),t&&t({event:e}))},T=({href:e,pinId:t,pin:i,location:n,auxData:a,spamCheck:r,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:r},s,l)=>{if(null!=e&&e.blocked)null==l||l(e);else{var d,c;if((0,m.b)({href:r,pinId:a,pin:n,location:i,auxData:t},s))return;S({url:r,pinId:a,csrId:null,clientTrackingParams:(0,o.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:r,auxData:a,location:n,pin:i,pinId:t,href:e},l,d):S({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),o=i(149230),r=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:h}=(0,r.v)(),[_,m]=(0,n.useState)(null),[g,v]=(0,n.useState)(!1),y=(0,d.useHistory)(),f=(0,d.useLocation)(),b=(0,o.Z)({url:(0,a.Z)(c)}),{showWarning:x}=null!==(t=(0,s.s)())&&void 0!==t?t:{};return(0,n.useEffect)((()=>(v(!0),()=>{v(!1)})),[]),(0,n.useEffect)((()=>{b&&null!=i&&i.pin&&null===_&&g&&(0,l.$3)({location:f,pin:i.pin,surface:i.surface})&&(0,l.iw)({isMounted:g,pin:i.pin,location:f,spamCheckCallback:e=>m(e),href:(0,a.Z)(c)})}),[null==i?void 0:i.pin,null==i?void 0:i.surface,c,b,g,f,_]),({event:e})=>{var t;(0,l.gV)({isOffsiteUrl:b,event:e})||(e.preventDefault(),c&&(b||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:f,spamCheck:_},h,x):(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)}}))}},627995:(e,t,i)=>{i.d(t,{Z:()=>c});var n=i(927104),a=i(898781),o=i(903095),r=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,o.lO)())||void 0===u?void 0:u.logging,h=(0,a.ZP)(),_=(0,r.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=>_(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:h.bt("链接", "Link", "unauth.pin.domain.link", undefined, true)})}),(0,l.jsx)("a",{href:i,onClick:e=>{e.stopPropagation(),m().forEach((e=>_(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:()=>r,t:()=>s});var n=i(214494);const a=()=>{};const o={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()))}},r=["complaint","relatedPinHide","unrelatedSearchPin","promotedComplaint","newsHubPinHide","unfollowBoard","unfollowPinner","unfollowTopic"];function s(e,t,i=a){const n=e?o[e]:null;return n?n(t,i):i()}},680046:(e,t,i)=>{i.d(t,{EF:()=>m,Iv:()=>c,Ud:()=>d,XZ:()=>h,fJ:()=>l,hP:()=>s,nb:()=>_,oK:()=>u,yl:()=>p});var n=i(55275),a=i(760372),o=i(349700);const r=e=>e.length>32?`${e.substring(0,32).trim()}...`:e;function s({boardFollowedByMe:e,feedbackType:t,viewParameter:i,promotion:n,recommendationReason:a,pinnerFollowedByMe:o}){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||o)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:o,throughId:r,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:o||0,pin_id:i,...n?{recommendation_reason_id:n}:{},feedback_type:a||1,promoted:d,...r?{through_id:r}:{},...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:h}=e;return h?(0,o.nk)(t.bt("此 Pin 图的灵感来源于你的图板 {{ boardLink }}", "This Pin was inspired by your board {{ boardLink }}", "Pin feedback - inspired by your board", undefined, true),{boardLink:i("navigation",h.url,h.name)}):null;case"topic":const{sourceInterest:_}=e;return _?(0,o.nk)(t.bt("此 Pin 图的灵感来源于 {{ formattedTopic }} 主题", "This Pin was inspired by {{ formattedTopic }}", "Pin feedback", undefined, true),{formattedTopic:i("topicUrl",`/topics/${_.url_name}`,_.name)}):null;case"followed":const{followed:m}=e;return"pinner"===m.type?(0,o.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:""}`,r(null!==(s=null===(l=m.pinner)||void 0===l?void 0:l.full_name)&&void 0!==s?s:""))}):(0,o.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:"",r(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,r=i("promotedLink",a?"/"+a+"/":"/",n);return(0,o.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:r})}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,r;return{action:"unfollowTopic",actionOptions:{interest_id:e.id,interest_list:a.X},title:"",subTitle:(0,o.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!==(r=e.name)&&void 0!==r?r:"",!0)})}}function u({boardId:e,display:t,i18n:i,makeNavigateLink:n}){var a,r,s,l;return{action:"unfollowBoard",actionOptions:{board_id:e},title:"",subTitle:"pinner"===t.type?(0,o.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!==(r=t.data.full_name)&&void 0!==r?r:"",!0)}):(0,o.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 h(e){return null==e?void 0:e.through_properties}function _(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,o,r,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),r(i),s({event_type:101,component:0,element:11181,view_type:a,view_parameter:o})}}},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 o=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""}}));o.sort();const r=o.pop();return a[r]&&a[r].url||""}i.d(t,{Z:()=>n})},958007:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(992750);const a=e=>(e||"").trim().replace(/\s+/g," "),o=({storyPinDataId:e,pinDescription:t,richMetadataDescription:i,richSummaryDisplayName:o,placeSummaryName:r,closeupDescription:s,closeupUnifiedDescription:l})=>!!e?a(t):a((0,n.eK)({richMetadataDescription:i,richSummaryDisplayName:o,placeSummaryName:r,closeupUnifiedDescription:l}).description)||a(l||"")||a(s)||a(t)||a(i)||""},623568:(e,t,i)=>{i.d(t,{Js:()=>r,NK:()=>v,Nc:()=>y,VX:()=>s,Zt:()=>m,_J:()=>c,_S:()=>f,cL:()=>h,dZ:()=>S,hb:()=>g,hy:()=>d,iR:()=>o,jL:()=>l,o:()=>b,oN:()=>n,pU:()=>x,rM:()=>_,sV:()=>u,sY:()=>p});const n=5e3,a=["Uploaded by user"],o=e=>!!e&&!!e.video_list,r=(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,h=({embedSrc:e,embedSubtype:t,embedType:i})=>!!e&&!p(i)&&!(e=>"pinstory"===e)(t),_=({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!o(i)&&!d(t)&&0!==Object.keys((null==e||null===(n=e.creator_analytics)||void 0===n?void 0:n["30d_realtime"])||{}).length}function f(e){for(const t of a)if(e===t)return!1;return!0}function b(e){return 0!==Object.keys((null==e?void 0:e["30d_realtime"])||{}).length}function x(e){return 0!==Object.keys((null==e?void 0:e.all_time_realtime)||{}).length}function S(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:()=>h,RC:()=>r,EU:()=>s});const n=/\s\s+/g,a=e=>e.replace(n," ");var o=i(883561);const r=({storyPinDataMetadataPinTitle:e,pinTitle:t})=>e||t,s=(e,t)=>e?e.trim().length>t?(0,o.ZP)(e.trim(),t).trim():e.trim():"",l=({pinTitle:e,gridTitle:t,richSummaryDisplayName:i,richMetadataTitle:n,storyPinDataId:a,storyPinDataMetadataPinTitle:o,placeSummaryName:r})=>{const l=o||e,d=s(t,200);return d||(i||(r||(n||(a&&l?l:null))))},d=e=>{const{richSummaryDisplayName:t,placeSummaryName:i}=e,n=e.pinJoinVisualAnnotation||[],r=e.pinJoinAnnotationsWithLinks||{},s=e.richMetadataDescription||"",l=e.closeupUnifiedDescription||"",d=n.map((e=>(r||{})[e]||{name:e,url:""}));let c="";const u=(({richSummaryDisplayName:e,placeSummaryName:t})=>e||t||"")({richSummaryDisplayName:t,placeSummaryName:i}).toLocaleLowerCase().trim(),p=s.toLocaleLowerCase().trim(),h=l.toLocaleLowerCase().trim();return l&&l.length>3&&h!==u?c=l:s&&s.length>3&&p!==u&&(c=s),c&&(c=a((0,o.ZP)(c,496)).trim()),{description:c,annotationsWithLinks:d}},c=({pinTitle:e,gridTitle:t,richSummaryDisplayName:i,richMetadataTitle:n,storyPinDataId:a,storyPinDataMetadataPinTitle:o,placeSummaryName:r,pinJoinVisualAnnotation:s,pinJoinAnnotationsWithLinks:c})=>{const{annotationsWithLinks:u}=d({pinJoinVisualAnnotation:s,pinJoinAnnotationsWithLinks:c}),p=(u||[]).map((e=>e.name)),h=e=>(e||[])[0]||null;return l({pinTitle:e,gridTitle:t,richSummaryDisplayName:i,richMetadataTitle:n,storyPinDataId:a,storyPinDataMetadataPinTitle:o,placeSummaryName:r})||h(s)||h(p)||e},u=(e,t,i,n)=>{var a;let o=(a=e,"string"==typeof a?a:"").trim();return i?(n&&n.trim().length&&(o=n),i.length>0&&(o&&(o+=" "),o+=i.join(", ")),o):n&&n.trim().length?n:o},p=e=>`/pin/${e}/`,h=({pinId:e,seoUrl:t})=>t&&"string"==typeof t?t:p(e)},467570:(e,t,i)=>{i.d(t,{$:()=>d,GH:()=>l,JF:()=>g,Jb:()=>h,MI:()=>m,sl:()=>u,we:()=>p});var n=i(935879),a=i(713930),o=i(816068),r=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)))},h=()=>new Promise((e=>{"undefined"!=typeof window&&window.FB&&window.FB.getLoginStatus(e)})),_=({userID:e,accessToken:t,data:{birthday:i,email:n,first_name:a,gender:r,last_name:s,picture:l}})=>({type:"facebook",facebook_id:e,facebook_token:t,birthday:i?(0,o.Z)(i):void 0,email:n,first_name:a,gender:r,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 r.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:o}=e.authResponse;m(o).then((e=>{i({creds:{facebook_id:a,facebook_token:o,facebook_autologin:(null==t?void 0:t.autologin)||!1},signupOptions:_({userID:a,accessToken:o,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:()=>_,of:()=>p,xC:()=>m,yz:()=>h});var n=i(667294),a=i(172071),o=i(829407),r=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,r]=(0,n.useState)(null),l=t||{pwaType:"unknown",twaType:null},u=l.pwaType;(0,o.Z)((()=>{const e=(0,s.FB)(window)||"unknown";r(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,h=l.twaType,_=(0,n.useMemo)((()=>({pwaType:p,twaType:h})),[p,h]);return(0,d.jsx)(c,{value:_,children:e})},h=()=>{var e;const t=u();return null!==(e=null==t?void 0:t.pwaType)&&void 0!==e?e:"unknown"},_=()=>{var e;const t=u();return null!==(e=null==t?void 0:t.twaType)&&void 0!==e?e:null},m=()=>"android-twa"===h(),g=()=>{const e=h(),t=(0,r.Z)();return"unknown"===e&&t?null:"windows"===e}},317254:(e,t,i)=>{i.d(t,{Z:()=>l});var n=i(969853),a=i(667294),o=i(276602),r=i(543059);var s=i(198462);function l({children:e,isAtEndOfFeed:t,pinData:i,itemCount:l,includeBackgroundImages:d=!1,includeVideos:c=!1,includeSections:u=!1}){var p;return(null===(p=(0,s.N5)())||void 0===p?void 0:p.isAuthenticated)||(u=!0),(0,n.Z)({pinData:i,isAtEndOfFeed:t,includeBackgroundImages:d,includeVideos:c,includeSections:u}),function(e){const t=(0,o.EV)(),i=(0,a.useRef)(null);(0,a.useEffect)((()=>{e!==i.current&&(i.current=e,t&&(0,r.ZP)(r.at))}),[!!t,e])}(l),e}},561195:(e,t,i)=>{i.d(t,{A:()=>r,Z:()=>s});var n=i(667294),a=i(883119),o=i(785893);const r=({fill:e,width:t,color:i})=>{const r="half"===e?(0,o.jsxs)(n.Fragment,{children:[(0,o.jsx)(a.xu,{position:"absolute",children:(0,o.jsx)(a.JO,{accessibilityLabel:"",color:"default",icon:"star-half",size:12})}),(0,o.jsx)(a.JO,{accessibilityLabel:"",color:"subtle",icon:"star",size:12})]}):(0,o.jsx)(a.JO,{accessibilityLabel:"",color:"full"===e?"default":"subtle",icon:"star",size:12});return(0,o.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{marginRight:"3px"}},display:"inlineBlock","data-test-id":`rating-star-${e}`,children:r})};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,o.jsx)(r,{color:a,fill:"full",width:i},e)))),c>=.75?s.push((0,o.jsx)(r,{color:a,fill:"full",width:i},s.length)):c>=.25&&s.push((0,o.jsx)(r,{color:a,fill:"half",width:i},s.length)),[...Array(5-s.length).keys()].forEach((()=>s.push((0,o.jsx)(r,{color:a,fill:"empty",width:i},s.length)))),(0,o.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})},932995:(e,t,i)=>{function n(e,t,i){const n=[...e],a=n.splice(t,1)[0];return n.splice(i,0,a),n}i.d(t,{Z:()=>n})},505920:(e,t,i)=>{i.d(t,{UZ:()=>u,Z8:()=>p,my:()=>h});var n=i(667294),a=(i(702664),i(214494)),o=i(425288),r=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],o={...t};return o[e]={...t[e],[i.payload.name]:a},o}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,o.Z)("ResourceContext");function u({children:e}){const[{listeners:t,moreListeners:i},o]=(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:o,resourceSchema:r})=>{t[e]&&t[e].forEach((t=>t({isRefresh:o,normalizedResponse:a,options:i,schema:r,resource:e,response:n})))},a.Z.fetchMoreCompleteCallback=({resource:e,options:t,response:n,normalizedResponse:a,refresh:o,resourceSchema:r})=>{i[e]&&i[e].forEach((i=>i({isRefresh:o,normalizedResponse:a,options:t,schema:r,resource:e,response:n})))};const c=(0,n.useMemo)((()=>({listenerDispatch:o})),[]);return(0,r.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 h(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}})})))}},176843:(e,t,i)=>{function n(e,t){let i;if(e.error){const{httpStatus:n,api_error_code:a,redirectUrl:o}=e.error;if(404===n||401===n&&7===a){i={pathname:t?"/ideas/":"/",state:{showError:!0}}}301===n&&o&&(i={pathname:o})}return i}i.d(t,{Z:()=>n})},989726:(e,t,i)=>{i.d(t,{Z:()=>l});var n=i(176843),a=i(784590),o=i(19121),r=i(53987),s=i(276775);function l(e){const t=(0,s.useHistory)(),i=(0,s.useLocation)(),{isAuth:l}=(0,o.Z)(),d=!l&&(0,r.L6)(i),c=(0,a.Z)(e),u=(0,n.Z)(c,d);return u&&t.replace(u.pathname,u.state),c}},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:()=>o});var n=i(883119),a=i(785893);function o({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),o=i(464228),r=i(785893);function s({children:e,fallback:t,dangerouslyServerRenderForGraphQL:i=!1}){const s=t||null,l=(0,a.Z)(),d=(0,o.P)();return d&&"legacy"!==d?i||l?(0,r.jsx)(n.Suspense,{fallback:s,children:e}):s:(0,r.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)},909499:(e,t,i)=>{i.d(t,{Hd:()=>l,_R:()=>r,gi:()=>a,lw:()=>n,wF:()=>s,zh:()=>o});const n={PINS:"pins",PINS_BUYABLE:"buyable_pins",PINS_MINE:"my_pins",PINS_VIDEO:"videos",BOARDS:"boards",USERS:"users",IDEA_PINS:"idea_pins"},a=e=>{switch(e){case n.PINS:return 0;case n.PINS_MINE:return null;case n.PINS_BUYABLE:return 1;case n.PINS_VIDEO:return 2;case n.BOARDS:return 3;case n.USERS:return 4;default:return null}},o=e=>{switch(e){case 0:return n.PINS;case 1:return n.PINS_BUYABLE;case 2:return n.PINS_VIDEO;case 3:return n.BOARDS;case 4:return n.USERS;default:return null}},r=e=>{switch(e){case n.PINS:return 43;case n.PINS_MINE:return 107;case n.PINS_BUYABLE:return 254;case n.PINS_VIDEO:return 3306;case n.BOARDS:return 44;case n.USERS:return 45;default:return null}},s=e=>{switch(e){case n.PINS:return 60;case n.PINS_MINE:return 63;case n.PINS_BUYABLE:return 3800;case n.PINS_VIDEO:return 64;case n.BOARDS:return 61;case n.USERS:return 62;default:return null}},l=e=>{switch(e){case n.USERS:return 1000392;case n.PINS_BUYABLE:return 1000391;case n.PINS:default:return 29}}},862628:(e,t,i)=>{function n(e){return(e||"").trim().replace(/\s+/g," ")}i.d(t,{Z:()=>n})},648284:(e,t,i)=>{function n({appliedProductFilters:e,autoCorrectionDisabled:t,filters:i,query:n,scope:a,selectedPinImgSig:o,user:r}){const s=[a,i,e,r,o,n].map((e=>null!=e?e:"")).join(":");return t?"auto-correction-disabled:"+s:s}function a(e){const{autoCorrectionDisabled:t,appliedProductFilters:i,appliedFilters:n,filters:a,selectedPinImgSig:o,query:r,rs:s,scope:l,bubbleId:d,user:c}=e;return{name:"BaseSearchResource",options:function({autoCorrectionDisabled:e=!1,appliedFilters:t=null,appliedProductFilters:i=null,bubbleId:n=null,filters:a=null,query:o=null,rs:r="direct_navigation",scope:s="pins",selectedPinImgSig:l=null,sourceId:d=null,user:c}){return{article:n,applied_filters:t,appliedProductFilters:i,auto_correction_disabled:e,corpus:l?"personalize":null,customized_rerank_type:l?"manas_graph_sage_only_wand_rewrite":null,filters:a,query:o,query_pin_sigs:l,redux_normalize_feed:!0,rs:r,scope:s,source_id:d,user:c}}({autoCorrectionDisabled:!!t,appliedProductFilters:i,appliedFilters:n,filters:a,query:r,rs:s,scope:l,selectedPinImgSig:o,bubbleId:d,user:c})}}i.d(t,{Ht:()=>a,Tb:()=>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 o=0;o<i.length;o+=1)if(!Object.prototype.hasOwnProperty.call(t,i[o])||!n(e[i[o]],t[i[o]]))return!1;return!0}i.d(t,{Z:()=>a})},458882:(e,t,i)=>{i.d(t,{l:()=>o,r:()=>r});var n=i(667294);const a=(0,n.createContext)(null),o=()=>(0,n.useContext)(a),r=a.Provider},667679:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(458882),a=i(780679);const o=()=>{const e=(0,a.g)(),t=(0,n.l)();return i=>{const{mobileOptions:n,desktopOptions:a,reason:o,attributionLabel:r}=i;e?e.showDesktopSignupModal({signupFlow:"login"===(null==a?void 0:a.modalType)?{type:"login"}:{type:"signup"},reason:o,attributionLabel:r,...null==a?void 0:a.modalOptions}):t&&t.showMobileSignupModal({reason:o,attributionLabel:r,headingType:null==n?void 0:n.headingType})}}},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:()=>o,vE:()=>r});var n=i(425288);const{Provider:a,MaybeConsumer:o,useMaybeHook:r}=(0,n.Z)("inviteContext")},296011:(e,t,i)=>{i.d(t,{Z:()=>l,t:()=>d});var n=i(667294),a=i(214494),o=i(167912);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}const s={};class l extends n.Component{constructor(...e){super(...e),r(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),r(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,o.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:()=>o,Pu:()=>r,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},o={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},r={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}},223815:(e,t,i)=>{i.d(t,{U:()=>r,Z:()=>s});var n=i(755742),a=i(785893);const o=()=>{},r=e=>{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation&&e.nativeEvent.stopImmediatePropagation()};function s({allowClickAndDrag:e,allowEsc:t,allowMediaPlay:i,allowScroll:s,children:l}){const d=e=>function(e,t){t&&e.keyCode===n.Z.ESCAPE||r(e)}(e,t);return(0,a.jsx)("div",{onAbort:r,onAnimationEnd:r,onAnimationIteration:r,onAnimationStart:r,onBlur:o,onCanPlay:i?o:r,onCanPlayThrough:r,onChange:r,onClick:e?o:r,onCompositionEnd:r,onCompositionStart:r,onCompositionUpdate:r,onContextMenu:r,onCopy:r,onCut:r,onDoubleClick:r,onDurationChange:r,onEmptied:r,onEncrypted:r,onEnded:r,onError:r,onFocus:o,onInput:r,onInvalid:r,onKeyDown:d,onKeyPress:d,onKeyUp:d,onLoad:r,onLoadedData:r,onLoadedMetadata:r,onLoadStart:r,onMouseDown:r,onMouseEnter:r,onMouseLeave:r,onMouseMove:e?o:r,onMouseOut:r,onMouseOver:r,onMouseUp:e?o:r,onPaste:r,onPause:r,onPlay:r,onPlaying:r,onProgress:r,onRateChange:r,onScroll:s?o:r,onSeeked:r,onSeeking:r,onSelect:r,onStalled:r,onSubmit:r,onSuspend:r,onTimeUpdate:r,onTouchCancel:r,onTouchEnd:e?o:r,onTouchMove:e?o:r,onTouchStart:e?o:r,onTransitionEnd:r,onVolumeChange:r,onWaiting:r,onWheel:r,children:l})}},858416:(e,t,i)=>{i.d(t,{Wr:()=>u,Hx:()=>h,RC:()=>p});var n=i(667294);var a=i(311541),o=i(425288),r=i(924687),s=i(785893);const l=()=>Promise.resolve().then(i.bind(i,924687)),{Provider:d,useHook:c}=(0,o.Z)("IdeaPinVideoPlayer");function u({children:e}){const[t,i]=(0,a.Z)(l,r.initialState),o=(0,n.useMemo)((()=>({dispatch:i,ideaPinVideoPlayerControls:t})),[i,t]);return(0,s.jsx)(d,{value:o,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 h(){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}}},940882:(e,t,i)=>{i.d(t,{J:()=>n,Z:()=>a});const n=-1;function a(e){switch(e){case 0:return"shopping-bag";case 1:return"tag";default:return"search"}}},985913:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(858142);const a=/\{\{\s*(\w+)\s*\}\}/g,o=(e,t)=>(0,n.Z)(a,e,t)},858791:(e,t,i)=>{i.d(t,{Z:()=>n});const n=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&#39;")},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},858142:(e,t,i)=>{i.d(t,{Z:()=>n});const n=(e,t,i)=>t?t.replace(e,((e,t)=>i&&Object.prototype.hasOwnProperty.call(i,t)?i[t]:"")):""},66699:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(985913),a=i(858791);const o=(e,t)=>{const i={};return Object.keys(t).forEach((e=>{i[e]=t[e]?(0,a.Z)(t[e].toString()):""})),(0,n.Z)(e,i)}},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}},430323:(e,t,i)=>{i.d(t,{Z:()=>y});var n=i(667294),a=i(722767),o=i(706922),r=i(245474),s=i(558068),l=i(350118),d=i(780280),c=i(790123),u=i(425288);const{Provider:p,useMaybeHook:h}=(0,u.Z)("timeSpentContext");var _=i(785893);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}class g extends n.Component{constructor(e){super(e),m(this,"componentWillUnmount",(()=>{this.unregisterComponent()})),m(this,"getContext",(()=>{const{clientTrackingParams:e,component:t,element:i,objectId:n,timeSpentContext:a,view:o,viewParameter:r}=this.props;return{view:o||a&&a.view,viewParameter:r||a&&a.viewParameter,component:t||a&&a.component,element:i,objectId:n||a&&a.objectId,clientTrackingParams:e||a&&a.clientTrackingParams,getParentUuid:()=>this.getUuid(),getGrandparentUuid:()=>this.getParentId()}})),m(this,"getLoggerContext",(()=>{const e={...this.getContext()};return delete e.getParentUuid,e})),m(this,"getParentId",(()=>{const{timeSpentContext:e,shouldUseGrandparentId:t=!1}=this.props;if(t&&e&&e.getGrandparentUuid){const t=e.getGrandparentUuid();if(t)return t}return e&&e.getParentUuid?e.getParentUuid():void 0})),m(this,"getUuid",(()=>this.state.timedPair?this.state.timedPair.uuid:void 0)),m(this,"getTimedPair",(()=>this.state.timedPair)),m(this,"setTimedPair",(e=>this.setState({timedPair:e}))),m(this,"isRegistered",!1),m(this,"registerComponent",(()=>{this.props.timeSpentManager.registerComponent(this),this.isRegistered=!0})),m(this,"unregisterComponent",(()=>{this.isRegistered&&(this.props.timeSpentManager.unregisterComponent(this),this.isRegistered=!1)})),m(this,"handleVisibilityChange",(e=>{const{intersectionRatio:t}=e[0],{bottom:i,left:n,right:a,top:o}=e[0].intersectionRect;t>0?this.registerComponent():0===t&&(0===i&&0===n&&0===a&&0===o?this.unregisterComponent():this.registerComponent())})),this.state={timedPair:new r.Z(this.getLoggerContext())}}componentDidUpdate(e){!this.isRegistered||e.view===this.props.view&&e.viewParameter===this.props.viewParameter&&e.component===this.props.component&&e.element===this.props.element&&e.objectId===this.props.objectId&&(0,o.Z)(e.auxData,this.props.auxData)&&(0,o.Z)(e.viewData,this.props.viewData)||(this.unregisterComponent(),setTimeout(this.registerComponent))}render(){const{children:e}=this.props;return(0,_.jsx)(p,{value:this.getContext(),children:(0,_.jsx)(a.Z,{options:{threshold:0},onVisibilityChange:this.handleVisibilityChange,children:n.Children.only(e)})})}}function v(e){var t;const i=(0,s.Hv)(),a=h(),o=(0,c.w)(),r=(0,l.H0)(),{requestIdentifier:u=""}=(0,d.B)(),p={app_instance_id:u.slice(0,8),...null!==(t=e.auxData)&&void 0!==t?t:{}};return(0,n.useEffect)((()=>{null==o||o.setHistoryStackContext(i)}),[i,o]),(0,n.useEffect)((()=>{null==o||o.setPins(null!=r?r:{})}),[r,o]),o?(0,_.jsx)(g,{...e,auxData:p,timeSpentContext:a,timeSpentManager:o,children:e.children}):e.children}v.displayName="TimeSpent";const y=v},790123:(e,t,i)=>{i.d(t,{j:()=>u,w:()=>c});var n=i(829407),a=i(19121),o=i(407043),r=i(50286),s=i(425288),l=i(785893);const{Provider:d,useMaybeHook:c}=(0,s.Z)("TimeSpentManagerContext");function u({children:e,value:t}){const i=(0,o.v)(),s=(0,r.HG)(),{isAuth:c}=(0,a.Z)(),u=s&&c;return(0,n.Z)((()=>{document.hasFocus()&&t(i,u).registerApp(),t(i,u).addEventListeners()})),(0,l.jsx)(d,{value:t(i,u),children:e})}},245474:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(172045),a=i(17314);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 r="undefined"!=typeof window&&window.performance&&window.performance.now?()=>Math.floor(1e6*window.performance.now()):()=>1e6*Date.now();const s=class{constructor(e){o(this,"start",(()=>(this.startTime=r(),this.startTime))),o(this,"end",(()=>(this.endTime=r(),this.duration=this.startTime?this.endTime-this.startTime:null,this.duration)));try{this.uuid=(0,n.Z)()}catch(t){this.uuid=(0,a.Z)()}e&&Object.assign(this,e)}}},52022:(e,t,i)=>{i.d(t,{S:()=>s,Z:()=>l});var n=i(667294),a=i(867820),o=i(53987),r=i(276775);const s=e=>(0,o.L6)(e)?"pin":(0,o.am)(e)?"board":(0,o.Xn)(e)?"login":(0,o.C$)(e)?"home":(0,o.cD)(e)?"profile":(0,o.dr)(e)?"ideas":(0,o.gT)(e)?"ideas-root":(0,o.tZ)(e)?"videos":(0,o.$Y)(e)?"article":(0,o.E0)(e)?"shopping-spotlight":(0,o.Zz)(e)?"today":(0,o.j8)(e)?"unauth-profile":(0,o.f1)(e)?"shopping-root":(0,o.OX)(e)?"shopping-category":"other";function l(){const e=(0,r.useLocation)();return(0,n.useCallback)((({action:t,item:i,within:n})=>{const o=s(e);(0,a.My)(`logged_out_product.interaction.${o}.${t}`,{item:i||"none",within:n||"none"})}),[e])}},758127:(e,t,i)=>{i.d(t,{U:()=>o,Z:()=>r});var n=i(883119),a=i(785893);const o=", ";function r(){return(0,a.jsx)(n.xu,{display:"visuallyHidden",children:o})}},477802:(e,t,i)=>{i.d(t,{W:()=>r,Z:()=>o});var n=i(883119),a=i(785893);function o({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 r=e=>(0,a.jsx)(n.xu,{width:236,dangerouslySetInlineStyle:{__style:{marginTop:10}},children:(0,a.jsx)(o,{...e})})},948618:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(883119),a=i(785893);function o({ariaHidden:e=!1,color:t="darkGray",size:i}){return(0,a.jsx)("span",{"aria-hidden":e,style:{padding:"0 4px"},children:(0,a.jsx)(n.xv,{color:t,inline:!0,size:null!=i?i:"200",children:"·"})})}},343341:(e,t,i)=>{i.d(t,{F9:()=>r,Zo:()=>a,nE:()=>o});var n=i(425288);const{Provider:a,Consumer:o,useHook:r}=(0,n.Z)("toastManagerContext")},753311:(e,t,i)=>{i.d(t,{M:()=>r,Q:()=>o});var n=i(667294);const a=(0,n.createContext)(null),o=()=>(0,n.useContext)(a),r=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:()=>o,C0:()=>l,Vi:()=>r,YD:()=>u,kS:()=>a,oo:()=>s,p3:()=>p,vC:()=>d,vI:()=>c});var n=i(401060);const a="https://www.pinterest.com/business/hub/",o="https://www.pinterest.com/homefeed/",r="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:"":""},149230:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(954931);const a=({url:e})=>!(!e||!e.match(/^https{0,1}:\/\//)||(0,n.Z)(e))},508847:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(567831);const a=(e,t)=>0===e.lastIndexOf(t,0),o=({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,o]=(0,n.useState)(),[r,s]=(0,n.useReducer)(null!=a?a:()=>t,t),l=(0,n.useCallback)((t=>{a?s(t):(i.current.length||e().then((e=>{o((()=>e.default))})),i.current=[...i.current,t])}),[e,a]);return(0,n.useEffect)((()=>{a&&(i.current.forEach(s),i.current=[])}),[a]),[r,l]}},829407:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(667294);const a=e=>{(0,n.useEffect)(e,[])}},807609:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(411465),a=i(966476);const o=()=>{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),o=i(785893);const r=(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,o.jsx)(r.Provider,{value:i,children:e})}function l(){return(0,n.useContext)(r)}},46584:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294);const a=new Map;let o=null;const r=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]};o=o||new window.IntersectionObserver(r,n),a.set(e,i),o.observe(e)})(l.current,n,(n=>{if(!a.has(l.current))return;const o=t?n.intersectionRatio>=.5:n.intersectionRatio>0||n.isIntersecting,r=i?n.intersectionRatio>=1:o,s=i?0===n.intersectionRatio:!r;!d&&r?(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,o.unobserve(e),a.delete(e))})),[u]),l}},644035:(e,t,i)=>{i.d(t,{GW:()=>a,RL:()=>n,s4:()=>o});const n="ios",a="android",o="ipad"},562559:(e,t,i)=>{i.d(t,{Z:()=>b});var n=i(667294),a=i(867631),o=i.n(a),r=i(112690),s=i(19121),l=i(965900),d=i(773285),c=i(780280),u=i(883119),p=i(969315),h=i(179888),_=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 f extends n.PureComponent{constructor(...e){super(...e),g(this,"state",{canPlayVideo:!1,isManifestParsed:!1,playbackState:h.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(o())(t),a=y(e,i);n.loadSource(a),this.videoPlayerRef&&n.attachMedia(this.videoPlayerRef.video),n.on(o().Events.FRAG_BUFFERED,this.handleHlsFragBuffered),n.on(o().Events.FRAG_CHANGED,this.handleHlsFragChanged),n.on(o().Events.FRAG_LOADING,this.handleHlsFragLoading),n.on(o().Events.FRAG_LOADED,this.handleHlsFragLoaded),n.on(o().Events.MANIFEST_PARSED,(()=>{this.setState({isManifestParsed:!0})})),n.on(o().Events.LEVEL_SWITCHED,this.handleHlsLevelSwitched),n.on(o().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]:{},o=this.fragStartupTime[e.url];let r=-1;o&&o.startLoadTime&&o.endLoadTime&&(r=o.endLoadTime-o.startLoadTime);const s={indicatedKbps:a.bitrate/h.bR,duration:e.duration,level:e.level,lastStartPlayTime:this.getCurrentVideoTime(),numServerAddressChange:-1,observedKbps:this.hls&&this.hls.bandwidthEstimate/h.bR||-1,playbackStartDate:Date.now(),serverAddress:"",sn:e.sn,sourceWidth:a.width,sourceHeight:a.height,startupTimeMs:r,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]:{},o=this.fragStartupTime[e.url];let r=-1;o&&o.startLoadTime&&o.endLoadTime&&(r=o.endLoadTime-o.startLoadTime),this.lastLevelSwitchKbps=this.hls.bandwidthEstimate/h.bR;const s={indicatedKbps:a.bitrate/h.bR,duration:e.duration,level:e.level,lastStartPlayTime:null,numServerAddressChange:-1,observedKbps:this.hls.bandwidthEstimate/h.bR||-1,playbackStartDate:null,serverAddress:"",sn:e.sn,sourceWidth:a.width,sourceHeight:a.height,startupTimeMs:r,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*h.gJ:null)),g(this,"handleCanPlayVideo",(e=>{const{contextLogData:t={},onReady:i,playing:n}=this.props,{is_closeup_video:a=!1}=t,{canPlayVideo:o}=this.state;(0,p.tE)("handleCanPlayVideo",!0,a,{firstCanPlayEvent:!o,playing:n}),this.playbackPerformance.hasFatalError=!1,o||(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(h.$f,{initiator:"videoEnded",loop:t}),this.setState({playbackState:h.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 r,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===(r=t.err)||void 0===r||null===(s=r.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 o().ErrorTypes.NETWORK_ERROR:if(t.details===o().ErrorDetails.MANIFEST_LOAD_ERROR||t.details===o().ErrorDetails.MANIFEST_LOAD_TIMEOUT||t.details===o().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 o().ErrorTypes.MEDIA_ERROR:null===(i=this.hls)||void 0===i||i.recoverMediaError()}}this.updateWatchDurationForCurrentSegment(),this.setState({playbackState:h.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/h.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/h.bR)})),g(this,"handleLoadedMetadata",(()=>{this.setState({playbackState:h.Cy.LOADED_METADATA})})),g(this,"handleLoadStart",(()=>{this.playbackPerformance.loadStartTime=new Date,this.setState({playbackState:h.Cy.LOAD_START})})),g(this,"handleLoadedData",(()=>{this.setState({playbackState:h.Cy.LOADED_DATA})})),g(this,"handlePlaying",(()=>{this.playbackPerformance.hasFatalError=!1,this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.updateStallDuration(),this.updatePauseDuration(),this.setState({playbackState:h.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!==h.Cy.STALLING&&this.state.playbackState!==h.Cy.SEEKING&&(this.updateWatchDurationForCurrentSegment(),this.lastPauseTime||this.updateStallDuration()),this.setState({playbackState:h.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!==h.Cy.ENDED&&this.setState({playbackState:h.Cy.SEEKING})})),g(this,"handleStalled",(()=>{null===this.lastStallTime&&this.state.playbackState!==h.Cy.ENDED&&(this.lastStallTime=new Date,this.playbackPerformance.numberOfStalls+=1),this.setState({playbackState:h.Cy.STALLING})})),g(this,"handleTimeUpdate",(e=>{const{onTimeChange:t}=this.props;t&&t(e),this.state.playbackState===h.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:o}=this.props,{is_closeup_video:r=!1}=i,{canPlayTime:s,detailedErrors:l,downloadedKiloBytes:d,errorCode:c,errorName:u,errorReason:_,hasFatalError:m,playbackStartTimestamp:g,totalPauseDurationMs:v,totalStallDurationMs:y,segments:f,srcString:b,loadStartTime:x,numberOfStalls:S,numberOfSeeks:P}=this.playbackPerformance,E=this.videoPlayerRef&&this.videoPlayerRef.video,T=e===h.DR,I=T&&!this.hasVideoSessionStarted,A=!T&&!this.hasVideoSessionEnded&&this.hasVideoSessionStarted;if(this.hls&&E&&(I||A)){var w;let I=-1;s&&x&&(I=s>x?s-x:0);let A=-1;s&&this.videoVisibleTime&&(A=s>this.videoVisibleTime?s-this.videoVisibleTime:0),T&&(this.videoSessionId=(0,h.Y7)(n),this.playerId=this.playerId||(0,h.EB)());const C={autoplaying:a,averageVideoKbps:-1,detailedErrors:l,downloadedKiloBytes:d,isCellular:!1,errorCode:c,errorName:u,errorReason:_,fatalError:m,nativeVideoDurationMs:E.duration*h.gJ||-1,numberOfStalls:S,numberOfSeeks:P,overallPausedDurationMs:v,overallBufferDurationMs:y,overallWatchedDurationMs:-1,rebufferRate:-1,playbackSessionId:this.videoSessionId,playbackStartTimestamp:g||-1,segments:[],sessionMark:e,screenPixelScale:null!==(w=window)&&void 0!==w&&w.devicePixelRatio?window.devicePixelRatio:-1,startupPlayerWidth:E.clientWidth,startupPlayerHeight:E.clientHeight,startupTimeMs:I,startupLatencyMs:A,startupVariantKbps:-1,startupVariantWatchedDurationMs:-1,startupVariantWidth:E.videoWidth,startupVariantHeight:E.videoHeight,videoUrl:b};if(!T&&f.length){const e=this.hls.levels,t=f[0];this.updateWatchDurationForCurrentSegment(),this.updateStallDuration();const i=f.reduce(((t,i)=>{if(i&&"number"==typeof i.level&&e&&e.length>0){return t+(e[i.level]||{}).bitrate*(i.watchedDurationMs||0)/h.gJ}return t}),0),n=f.reduce(((e,t)=>e+(t.watchedDurationMs||0)),0);let a=null,o=0,r=0;do{o+=f[r].watchedDurationMs,a=a||f[r].level,r+=1}while(r<f.length&&f[r].level===a);C.startupVariantKbps=t.indicatedKbps,C.startupVariantWatchedDurationMs=o,C.startupVariantWidth=t.sourceWidth,C.startupVariantHeight=t.sourceHeight,C.startupPlayerWidth=t.viewportWidth,C.startupPlayerHeight=t.viewportHeight,C.overallWatchedDurationMs=n,n>0?(C.averageVideoKbps=i/(n/h.gJ),C.rebufferRate=this.playbackPerformance.totalStallDurationMs/n):0===n&&(C.averageVideoKbps=-1,C.rebufferRate=-1,C.errorName="invalid_watch_duration"),C.segments=f}else C.errorName="invalid_watch_duration";(0,p.ZP)(C,!0,r,{playbackState:this.state.playbackState,...t});const{clientTrackingParams:R,component:k,durationNs:O,element:D,objectId:N,pairId:j,viewData:L,view:M,viewParameter:F,...U}=i;o({aux_data:{...U,is_closeup_video:r,playback_session_id:this.videoSessionId},clientTrackingParams:R,component:k,duration_ns:O,element:D,event_data:{videoPerformanceData:C},event_type:3606,object_id_str:N,pair_id:j,view_data:L,view_parameter:F,view_type:M}),T?(this.hasVideoSessionStarted=!0,this.hasVideoSessionEnded=!1):this.resetPlaybackMetrics(),(0,p.tE)(T?"sessionStart":"sessionEnd",!0,r,{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(h.DR,{initiator:"mount"}))}componentDidUpdate(e){const{loop:t,playing:i,src:n,visible:a,appInFocus:o,seekTime:r}=this.props;var s,l;r&&r!==e.seekTime&&this.setState({videoStartTime:r}),(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&&!o&&(this.logPlaybackPerformance(h.$f,{initiator:"update",loop:t}),this.logSessionStartOnNextPlay=!0),e.visible&&!1===a&&(this.logSessionStartOnNextPlay=!1,this.updatePauseDuration(),this.logPlaybackPerformance(h.$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(h.DR,{initiator:"update"})):this.logSessionStartOnNextPlay=!0),i&&o&&this.logSessionStartOnNextPlay&&(this.setPlaybackStartTime(),this.setLastSegmentStartPlayTime(),this.setLastSegmentPlaybackStartDate(),this.logPlaybackPerformance(h.DR,{initiator:"update"}),this.logSessionStartOnNextPlay=!1)}componentWillUnmount(){const{loop:e}=this.props;this.updatePauseDuration(),this.logPlaybackPerformance(h.$f,{initiator:"unmount",loop:e}),this.destroyHls()}render(){const{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:o,accessibilityUnmuteLabel:r,aspectRatio:s,backgroundColor:l,captions:d,controls:c,loop:p,loopOverride:h,onDurationChange:_,onFullscreenChange:g,onLoadedChange:v,onControlsPlay:f,onPlayheadDown:b,onPlayheadUp:x,onSeek:S,onVolumeChange:P,playbackRate:E,playing:T,playsInline:I,poster:A,preload:w,quicExpGroup:C,src:R,volume:k}=this.props,{canPlayVideo:O,isManifestParsed:D,videoStartTime:N}=this.state,j=y(R,C);return(0,m.jsx)(u.nk,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:o,accessibilityUnmuteLabel:r,aspectRatio:s,backgroundColor:l,captions:d,controls:c,loop:void 0===h?p:h,onDurationChange:_,onEnded:this.handleEnded,onFullscreenChange:g,onLoadStart:this.handleLoadStart,onLoadedChange:v,onControlsPause:this.handleUserPause,onControlsPlay:f,onPlaying:this.handlePlaying,onPlayheadDown:b,onPlayheadUp:x,onReady:this.handleCanPlayVideo,onSeek:S,onSeeking:this.handleSeeking,onStalled:this.handleStalled,onTimeChange:this.handleTimeUpdate,onVolumeChange:P,onWaiting:this.handleStalled,playbackRate:E,onPlay:()=>{},onPlayError:()=>{},playing:D&&O&&T,playsInline:I,poster:A,preload:w,ref:this.setVideoPlayerRef,src:j,startTime:N,volume:k})}}const b=(0,n.memo)((function(e){const{country:t,isAuthenticated:i,isBot:n,isSocialBot:a,unauthId:o,userAgent:u}=(0,c.B)(),h=(0,r.Z)(),g=(0,s.Z)(),{browserName:v,browserVersion:y,isMobile:b}=u,{contextLogData:x={}}=e,{is_closeup_video:S=!1,view:P,viewParameter:E}=x,{checkExperiment:T}=(0,d.F)(),{seekTime:I}=(0,_.Hx)(),{clearSeekTime:A}=(0,_.RC)();let w=null;i&&(w=T("web_video_quic").group.length?T("web_video_quic").group:null);const{appUI:C}=(0,l.I)(),R=T("web_video_fail_to_start_fix").anyEnabled?C.appInFocus:e.appInFocus,k={browserName:v,browserVersion:y,country:t,isAuthenticated:i,isBot:n,is_closeup_video:S,isMobile:b,isSocialBot:a,view:P,viewParameter:E};return(0,p.r$)(k),(0,m.jsx)(f,{...e,userId:g.id||o,appInFocus:R,quicExpGroup:w,logContextEvent:h,seekTime:I,clearSeekTime:A})}))},964082:(e,t,i)=>{function n(e,t){const{organicVideosAutoplaying:i,promotedVideosAutoplaying:n}=t,a={...i,...n};for(const o in a){const{paused:t}=a[o];if(o!==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),o=i(179888);const r=["isCellular","videoUrl","sessionMark"];let s={},l="";const d=e=>{const{browserName:t,browserVersion:i,country:a,isAuthenticated:o,isBot:r,isMobile:d,isSocialBot:c,view:u="unknown",viewParameter:p="unknown"}=e;l=(c?"socialBot":r&&"bot")||"nonbot";const h=(0,n.Z)(a);s={browserName:t,browserVersion:(null==i?void 0:i.split(".")[0])||"0",isAuthenticated:o,isMobile:d,region:h,view:u,viewParameter:p}};function c(e,t,i,n={}){const o=i?"closeup":"nonCloseup",r=t?"hls":"nonHls",d={...n,...s},c=`web.video.${r}.${l}.${o}.${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===o.DR?"sessionStart":"sessionEnd",p={...n,...s};if(Object.entries(e).forEach((([t,i])=>{const n=`web.video.${c}.${l}.${d}.${u}.${t}`,o=parseInt(i,10),s="number"==typeof o?o:-1;var h;if(!r.includes(t))if(t.includes("fatalError")&&!0===i){const{errorCode:t,errorName:i,errorReason:o}=e;a.Z.increment(n,1,{errorCode:t,errorName:i,errorReason:o,...p})}else if(t.includes("Width")||t.includes("Height")){const e=(h=s)<0?"negative":0===h?"zero":h<200?"xs":h<400?"s":h<600?"m":h<800?"l":h<1e3?"xl":h<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!==o.DR){const{rebufferRate:t,screenPixelScale:i,startupLatencyMs:n,startupVariantWidth:o,startupPlayerWidth:r}=e,s=`web.video.${c}.${l}.${d}.${u}`;if("number"==typeof o&&"number"==typeof r&&"number"==typeof i){const e=1.5*o>i*r;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:()=>o,Cy:()=>d,DR:()=>a,EB:()=>p,Fm:()=>l,Y7:()=>u,bR:()=>s,gJ:()=>r,lG:()=>c});var n=i(172045);const a=1,o=2,r=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:()=>o,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"},o=e=>{var t,i,a,o,r;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===(o=a.V_HLSV4)||void 0===o?void 0:o.duration)||(null===(r=e.story_pin_data)||void 0===r?void 0:r.total_video_duration)||0)}},43760:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(768559),a=i(102500),o=i(48714);function r({url:e,pinId:t,pin:i,location:r,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:r,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:r,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,o.Gj)({url:e,pinId:t,csrId:null,clientTrackingParams:a,auxData:s})}else(0,o.Gj)({url:e,pinId:t})}))}},965900:(e,t,i)=>{i.d(t,{g:()=>h,I:()=>p});var n=i(667294),a=i(567450),o=i(150361),r=i.n(o);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:o,inVideoGridAutoplayExp:s}=i,{videosAutoplaying:l}=e,{currentlyPlayingOrganicVideoId:d,promotedVideosAutoplaying:c,organicVideosAutoplaying:u}=l,p=r()(c),h=r()(u);return!a&&d&&s?e:(a?p[n]={pinId:n,currentTime:o,paused:!1}:h[n]={pinId:n,currentTime:o,paused:!1},{...e,videosAutoplaying:{currentlyPlayingOrganicVideoId:a?d:n,promotedVideosAutoplaying:p,organicVideosAutoplaying:h}})}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:o}=i,{videosAutoplaying:s}=e,{promotedVideosAutoplaying:l,organicVideosAutoplaying:d}=s,c=r()(l),u=r()(d);return a?c[n]={...c[n],paused:!0,currentTime:o}:u[n]={...u[n],paused:!0,currentTime:o},{...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 h({children:e}){const[t,i]=(0,n.useReducer)(l,s),o=(0,n.useCallback)((e=>i({type:"PAUSE_CURRENT_VIDEO",payload:e})),[]),r=(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})),[]),h=(0,n.useCallback)((e=>i({type:"SET_IS_AUTOPLAY",payload:e})),[]),_=(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:o,setCurrentVideo:d,setFooterPlusButtonVisible:p,setIsAutoplay:h,setViewportSize:_,toggleTypeaheadOverlay:m,setAppFocusState:r,appUI:t})),[o,d,p,h,_,m,r,t]);return(0,n.useEffect)((()=>{a.Z.onSessionResume((()=>{r(!0)})).onSessionPause((()=>{r(!1)}))}),[r]),(0,c.jsx)(u,{value:g,children:e})}},350445:(e,t,i)=>{i.d(t,{Z:()=>d});var n=i(898781),a=i(883119),o=i(785893);const r={__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:h}=u;return(0,o.jsxs)(a.Ee,{alt:c||p.bt("Pin 图图片", "pin image", "image of a pin", undefined, true),naturalHeight:t,naturalWidth:i,src:e,children:[(0,o.jsx)(a.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,opacity:.8,dangerouslySetInlineStyle:l.overlay}),(0,o.jsxs)(a.xu,{justifyContent:"center",direction:"column",display:"flex",position:"absolute",height:"100%",width:"100%","data-test-id":`video-end-card-${h}`,children:[(0,o.jsx)(a.iP,{rounding:2,children:(0,o.jsxs)(a.xu,{display:"flex",justifyContent:"center",padding:2,children:[(0,o.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,o.jsx)(a.xu,{margin:1}),(0,o.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,o.jsx)(a.xu,{margin:3}),(0,o.jsx)(a.iP,{onTap:d,rounding:2,children:(0,o.jsxs)(a.xu,{display:"flex",justifyContent:"center",padding:2,children:[(0,o.jsx)(a.JO,{accessibilityLabel:p.bt("再次观看", "Watch again", "Button when pressed restarts the video", undefined, true),color:"light",dangerouslySetSvgPath:r,size:25}),(0,o.jsx)(a.xu,{margin:1}),(0,o.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:()=>o,zl:()=>r});const n=["AuthHomefeed","CloseupRelatedProducts","FollowingFeedGrid","RelatedPinGrid","RelatedProductsFeed","SearchItem"],a=["ArticleProductsStory","CloseupRelatedProducts","ProductPinsFeed","RelatedProductsFeed","ShoppingPackageItem","RelatedProductsFeed","UserProfilePinGrid","ShoppingGridShippedMetadataWithVisitButton"],o=[...a,"ShoppingGridShippedMetadata","ShoppingSquareGridDomain","ShoppingSquareGridDomainNoMetadata","ProductPinsFeed","ShoppingCatalogsProductsMetadata","ShoppingDynamicHeightGrid"],r=["ShoppingSquareGridDomain","ShoppingGridShippedMetadata","ShoppingSquareGridStorefront","ShoppingSquareGridStorefrontDomain","ShoppingGridShippedMetadataWithVisitButton"],s=["BaseBoardPinGrid"]},439506:(e,t,i)=>{i.d(t,{Z:()=>p});var n=i(702664),a=i(116303),o=i(46584),r=i(792182),s=i(407043),l=i(599997),d=i(883119),c=i(332611),u=i(785893);function p({isFullWidth:e,actionType:t,buttonAction:i,buttonText:p,experience:h,hideCompleteButton:_,imageAlt:m,imageUrl:g,openNewTab:v,avatarImageDetails:y,examplePinImage:f,titleText:b,titleTextColor:x,titleTextCustomization:S,descriptionText:P,descriptionTextCustomization:E}){var T,I;const{logContextEvent:A}=(0,s.v)(),w=(e=>0===e?3833:1===e?3834:2===e?3835:null)(t),C=(0,n.useDispatch)(),{experience_id:R,placement_id:k}=h||{},O=(0,o.Z)({onVisibilityChanged:e=>{e&&h&&(h.status="viewed",A({event_type:13,view_type:604,view_parameter:w}),C((0,c.UT)(k,R,!1,!0)))}}),{width:D}=(0,r.Z)()||{width:8},N=D-8,j=(0,l.IA)(D),L=N*j,M=j===l.LX||j===l.Ec,{url:F,full_name:U}=y||{},B=L*l.l0,{url:z}=f,V=z?L*l.l0:0,H=z?l.ml*V:0,{color:Z,fontStyle:G,fontWeight:K,horizontalAlignment:W,fontSize:$}=(0,l.Mf)(S||{},"mweb"),{color:Y,fontStyle:q,fontWeight:X,horizontalAlignment:J,fontSize:Q}=(0,l.Mf)(E||{},"mweb");return(0,u.jsx)(d.xu,{position:"relative",padding:1,marginBottom:2,ref:O,children:(0,u.jsxs)(d.xu,{dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)",backgroundColor:e?"#003441":"education"}},color:e?"default":"education",paddingX:e?0:3,paddingY:e?0:6,position:"relative",rounding:4,children:[e&&g&&F&&(0,u.jsx)(d.xu,{height:L,width:N,children:(0,u.jsx)(d.Ee,{alt:m||b||"",color:"rgb(111, 91, 77)",naturalHeight:L,naturalWidth:N,src:g,fit:"cover",children:(0,u.jsx)(d.xu,{paddingY:F?12:3,children:(0,u.jsxs)(d.kC,{direction:"column",gap:2,alignItems:"center",flex:"grow",width:"100%",justifyContent:"center",children:[U&&F&&(0,u.jsx)(d.xu,{height:B,width:B,children:(0,u.jsx)(a.Z,{name:U,src:F,size:"fit"})}),(0,u.jsx)(d.xv,{align:W,color:x,italic:"italics"===G,weight:K,children:(0,u.jsx)(d.xu,{dangerouslySetInlineStyle:{__style:{color:null!==(T=Z||x)&&void 0!==T?T:void 0,fontSize:M?l.SF:$}},children:b})}),(0,u.jsx)(d.xv,{align:J,italic:"italics"===q,weight:X,children:(0,u.jsx)(d.xu,{paddingX:12,dangerouslySetInlineStyle:{__style:{color:null!=Y?Y:void 0,fontSize:M?l._e:Q}},children:P})})]})})})}),(!e||e&&z)&&(0,u.jsxs)(d.kC,{direction:"column",gap:2,alignItems:"center",flex:"grow",justifyContent:"center",children:[f&&z&&(0,u.jsx)(d.xu,{paddingY:4,children:(0,u.jsx)(d.zd,{height:V,width:H,rounding:4,children:(0,u.jsx)(d.Ee,{alt:"Your first saved Pin",naturalHeight:V,naturalWidth:H,src:z,fit:"cover"})})}),(0,u.jsx)(d.xv,{align:W,color:x,italic:"italics"===G,weight:K,children:(0,u.jsx)(d.xu,{dangerouslySetInlineStyle:{__style:{color:null!==(I=Z||x)&&void 0!==I?I:void 0,fontSize:M&&e?l._e:$}},children:b})}),P&&E&&(0,u.jsx)(d.xu,{paddingX:e?2:0,paddingY:2,children:(0,u.jsx)(d.xv,{align:J,italic:"italics"===q,weight:X,children:(0,u.jsx)(d.xu,{dangerouslySetInlineStyle:{__style:{color:null!=Y?Y:void 0,fontSize:M&&e?l._e:Q}},children:P})})}),!_&&(0,u.jsx)(d.kC.Item,{alignSelf:e?"center":"stretch",children:(0,u.jsx)(d.xu,{marginTop:2,marginBottom:e?4:1,children:(0,u.jsx)(d.zx,{accessibilityLabel:p,color:"white",fullWidth:!0,text:p,size:"lg",role:"link",href:i,target:v?"blank":null,onClick:()=>{h&&(A({event_type:102,view_type:604,view_parameter:w}),C((0,c.CK)(k,R,!1,!0)))}})})})]})]})})}},8320:(e,t,i)=>{i.d(t,{Z:()=>d});var n=i(63552),a=i(883119),o=i(785893);const r={__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:h=70,onTouch:_,pressState:m,shape:g,text:v})=>{const y=(e=>"primary"===e||"transparent"===e||"dark"===e?"inverse":"default")(t),f=(({color:e,icon:t})=>t?l:"transparent"===e?{__style:{...r.__style,...s}}:r)({color:t,icon:c}),b=(0,o.jsx)(a.xu,{position:"relative",children:(0,o.jsx)(a.xu,{color:t,display:u?"inlineBlock":"flex",justifyContent:"center",minHeight:p,minWidth:h,dangerouslySetInlineStyle:"pill"===g?(x=i,{__style:{borderRadius:"24px",paddingTop:"10px",paddingBottom:"10px",paddingLeft:"14px",paddingRight:"14px",...x}}):f,children:(0,o.jsxs)(a.kC,{alignItems:"center",justifyContent:"center",children:[c&&(0,o.jsx)(a.xu,{paddingX:"check"===c?2:0,children:(0,o.jsx)(a.JO,{accessibilityLabel:e,color:y,icon:c,inline:!0,size:"check"===c?16:20})}),(0,o.jsx)(a.xv,{color:y,inline:!0,size:"300",lineClamp:1,weight:"bold",children:v})]})})});var x;return _?(0,o.jsx)(n.Z,{onTouch:_,rounding:"pill"===g?"pill":2,pressState:m||"none",children:(0,o.jsx)(a.xu,{ref:d,children:b})}):b}},313951:(e,t,i)=>{i.d(t,{i5:()=>f,sX:()=>S,aX:()=>b,Z5:()=>y,NG:()=>x,MT:()=>P,iu:()=>E});var n=i(667294),a=i(214494),o=i(682492),r=i.n(o);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]?(r()(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,o=a.resource_response.data;if("ConversationMessagesResource"===n){const t=o||[],n=(null==i?void 0:i.conversation_id)||"",a=c(e,n,t),r=a[a.length-1];return{...e,data:{...e.data,[n]:{...e.data[n],id:n,messages:a,unread:0,last_message:r}}}}if("ConversationsResource"===n){const t=o||[],i={...e,data:{...e.data}};return t.forEach((e=>{const{id:t,created_at:n,name:a,board:o,emails:r,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:o,emails:r||[],unread:s||0,users:l||[],last_message:d,messages:u}})),i}if("ConversationResource"===n){const t=o||{},{id:i}=t,n={...e,data:{...e.data}};return i&&(n.data[i]={...n.data[i],...t}),n}if("NewsHubBadgeResource"===n){if(o){const t=o.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 h=i(425288),_=i(505920),m=i(785893);const g=(()=>{let e=0;return()=>e++})(),{Provider:v,useHook:y}=(0,h.Z)("Conversations");function f({children:e}){const[t,i]=(0,n.useReducer)(p,u),o=(0,n.useCallback)((e=>i({type:"FETCH_COMPLETE",payload:e})),[]);(0,_.Z8)("ConversationMessagesResource",o),(0,_.my)("ConversationMessagesResource",o),(0,_.Z8)("ConversationsResource",o),(0,_.Z8)("ConversationResource",o),(0,_.Z8)("NewsHubBadgeResource",o);const r=(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}})),[]),h=(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"})}),[]),f=(0,n.useCallback)((()=>{i({type:"OPEN_DROPDOWN"})}),[]),b=(0,n.useCallback)((e=>{i({type:"OPEN_NEW_MESSAGE",payload:{objectAttachment:e}})}),[]),x=(0,n.useCallback)(((e,t)=>i({type:"MESSAGE_SEND_PENDING",payload:{id:e,message:t}})),[]),S=(0,n.useCallback)(((e,t,n)=>i({type:"MESSAGE_SEND_PENDING_SUCCESS",payload:{id:e,tempMessage:t,newMessage:n}})),[]),P=(0,n.useCallback)(((e,t)=>i({type:"MESSAGE_SEND_PENDING_FAILURE",payload:{id:e,tempMessageId:t}})),[]),E=(0,n.useCallback)((e=>i({type:"UPDATE_NEWSHUB_COUNT",payload:e})),[]),T=(0,n.useCallback)((e=>i({type:"UPDATE_UNREAD_COUNT",payload:e})),[]),I=(0,n.useCallback)((e=>i({type:"CLEAR_MESSAGE_BADGE",payload:{id:e}})),[]),A=(0,n.useCallback)((e=>i({type:"SET_OBJECT_ATTACHMENT",payload:{objectAttachment:e}})),[]),w=(0,n.useCallback)((()=>i({type:"REMOVE_OBJECT_ATTACHMENT"})),[]),C=(0,n.useMemo)((()=>({clearMessageBadge:I,conversationOpen:r,conversationClose:s,conversationCreate:l,conversationDelete:d,conversationGet:g,saveConversationPosition:c,resetConversationPosition:h,dropdownClose:y,dropdownOpen:f,newMessageOpen:b,pendingMessageSend:x,pendingMessageSuccess:S,pendingMessageFailure:P,updateNewsHubCount:E,updateUnreadCount:T,conversations:t,setObjectAttachment:A,removeObjectAttachment:w})),[I,r,s,l,d,g,c,h,y,f,b,x,S,P,E,T,t,A,w]);return(0,m.jsx)(v,{value:C,children:e})}function b(){const{conversationCreate:e}=y();return async t=>{let i;const n=a.Z.create("ConversationsResource",t);try{var o;const t=null===(o=(await n.callCreate()).resource_response)||void 0===o?void 0:o.data;t&&(e(t),i=t)}catch(r){throw new Error(r.message)}return i}}function x(){const{conversations:e,conversationCreate:t,pendingMessageSend:i,pendingMessageSuccess:n,pendingMessageFailure:o}=y();return async(r,s,l,d)=>{const{text:c,pinId:u,boardId:p,userId:h,didItId:_}=s;async function m(){const e=a.Z.create("ConversationMessagesResource",{conversation_id:r,text:c,pin:u,board:p,user:h,user_did_it_data:_,source:l}),t=`${g()}`,s={text:c,sender:d,created_at:(new Date).toString(),created_ms:Date.now(),id:t,type:"tempMessage"};i(r,s);try{var m;const t=null===(m=(await e.callCreate()).resource_response)||void 0===m?void 0:m.data;t&&n(r,s,t)}catch(v){throw o(r,t),new Error(v.message)}}if(e.data[r])await m();else{const e=a.Z.create("ConversationResource",{conversation_id:r});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 S(e){const{conversations:t}=y();return t.data[e]}function P(e){const{conversations:t}=y();return t.ui[e]||{contactRequestId:"",isDeclined:!1,isPreview:!1}}function E(){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:()=>O,Ai:()=>k});var n=i(667294),a=i(296679),o=i(8320),r=i(329900),s=i(926275),l=i(250059),d=i(149230),c=i(407043),u=i(48714),p=i(276775);const h=({children:e,external:t,externalQueryParams:i,target:n,href:a})=>{const{logContextEvent:o}=(0,c.v)(),r=(0,p.useHistory)(),s=(0,p.useLocation)();if(!a)return null;const h=(0,l.Z)(a);return e({navigate:e=>{e.preventDefault(),(0,d.Z)({url:h})||t?(0,u.lI)({href:h,queryParams:i,location:s},o,null):(0,u.G3)({event:e,href:a,history:r,target:"blank"===n?"blank":null})}})};var _=i(883119),m=i(785893);const g=({accessibilityLabel:e,children:t,external:i,externalQueryParams:n,inline:a=!1,newTab:o,nofollow:r,onTouch:s,onBlur:d,onFocus:c,pressState:u,rounding:p,to:g})=>(0,m.jsx)(h,{external:i,target:o?"blank":null,externalQueryParams:n,href:g,children:({navigate:i})=>(0,m.jsx)(_.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:r?"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,...r})=>(0,m.jsx)(h,{external:e,target:i?"blank":null,externalQueryParams:t,href:a,children:({navigate:e})=>(0,m.jsx)(o.Z,{onTouch:t=>{null==n||n(t),t.defaultPrevented||e(t)},...r})});var y=i(938917),f=i(112690),b=i(19121),x=i(30287),S=i(948376),P=i(773285),E=i(780280),T=i(698330),I=i(844974),A=i(339363),w=i(53987);const C=(e,t=!1)=>function({isAppUpsellDisabled:i,...o}){const{children:l,clientTrackingParams:d,deeplinkUri:c,external:u,onTouch:h,refresh:g,to:v,viewParameter:C,viewType:R}=o,k=(0,y.Z)(),[O,D]=(0,n.useState)(!1),[N,j]=(0,n.useState)(!1),[L,M]=(0,n.useState)(!1),[F,U]=(0,n.useState)("control"),{isAuth:B}=(0,b.Z)(),{userAgent:{platform:z},locale:V}=(0,E.B)(),H=(0,T.Tt)(),Z=(0,f.Z)(),{checkExperiment:G}=(0,P.F)(),K=(0,p.useLocation)();(0,n.useEffect)((()=>{!async function(){if("getInstalledRelatedApps"in navigator){M(!0);(await navigator.getInstalledRelatedApps()).length>0&&j(!0)}}()}),[]);const W=()=>{Z({event_type:1701,view_type:R,view_parameter:C}),O&&D(!1)};return(0,m.jsxs)(_.xu,{"data-test-id":"deeplink-wrapper",children:[O&&(0,m.jsx)(a.Z,{clientTrackingParams:d,copyChangeGroup:F,deepLinkUri:c,isOpen:!0,onDismiss:()=>{Z({component:14157,element:10308,event_type:10220,view_type:R||202,view_parameter:C,aux_data:{app_upsell_type:"deep-link-app-upsell-modal"}})},onOpenInApp:()=>{(0,I.Nh)("deeplinkBehavior","branchfallback"),W()},shouldTrackDismiss:!0,to:v,viewParameter:C,viewType:R,within:"deep-link-app-upsell-modal"}),(0,m.jsx)(r.Z,{children:n=>(0,m.jsx)(e,{...o,onTouch:e=>{const a=k&&!i&&B&&!u&&!g&&!(0,x.FP)(window)&&!("ios"===z&&(V||"").startsWith("ar"))&&(0,S.kp)((0,s.Z)(null==H?void 0:H.created_at));if(a){let t=!0;if("string"==typeof c&&(c||"").startsWith("/pin/")&&((0,w.uM)(K)||(0,w.am)(K)||(0,w.C$)(K))){if(L){if(N&&G("mweb_auth_deep_link_app_installed_user").anyEnabled){const e=G("mweb_auth_deep_link_app_installed_user").group;"enabled_triggering_change"===e?t=!1:U(e)}!N&&G("mweb_auth_deep_link_no_app_installed_user").anyEnabled&&U(G("mweb_auth_deep_link_no_app_installed_user").group)}}else G("mweb_auth_deep_link_other_triggering").anyEnabled&&(t=!1);t&&(e.stopPropagation(),e.preventDefault(),D(!0))}else"branchfallback"!==(0,I.qn)("deeplinkBehavior")||(0,A.qn)("fallbackAttempt")||(e.stopPropagation(),e.preventDefault(),(0,A.Nh)("fallbackAttempt",1),n(c,`${window.location.origin}${o=v,"string"==typeof o?o:`${o.pathname||""}${o.search?`?${o.search}`:""}`}`),W());var o;t&&a||!h||h(e)},children:l})})]})},R=C(g),k=C(v),O=C(o.Z,!0)},329900:(e,t,i)=>{i.d(t,{Z:()=>g});var n=i(172071),a=i(826067);const o="http://play.google.com/store/apps/details?id=com.pinterest",r=["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:o})=>({deeplink_path:l(e,i,t),current_page_url:(0,a.Gw)("undefined"!=typeof window?window.location.href:"",r),install_id:o,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 o=JSON.stringify({deeplink_path:l(e,i,t),current_page_url:(0,a.Gw)("undefined"!=typeof window?window.location.href:"",r),install_id:n});return{referrer:(0,a.XP)({utm_source:"mweb",utm_medium:"upsell",utm_content:o})}})({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)(o,t)})).catch(n.Z.increment("mweb_android.deeplink.playStore.error",1)):window.location.href=(0,a.ru)(o,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),h=i(785893);function _({children:e,invite_code:t}){const{unauthId:i,userAgent:{platform:n,raw:a}}=(0,p.B)();return e((async(e,o)=>{d({deeplinkUri:e,fallbackUrl:o,invite_code:t,platform:n,redirectToLite:(0,u.Rp)({platform:n,userAgent:a}),unauthId:i,userAgent:a})}))}const m=e=>(0,h.jsx)(c.ty,{children:t=>(0,h.jsx)(_,{...e,invite_code:t})});m.displayName="DeepLinkNavigator";const g=m},79113:(e,t,i)=>{i.d(t,{Z:()=>_});var n=i(667294),a=i(124580),o=i(740990),r=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"},h={modalOpen:{__style:{...p}},modalClose:{__style:{...p,transform:"translate3d(0px, 100%, 0px)"}}};function _({accessibilityModalLabel:e,allowClickAndDrag:t,children:i,isOpen:s}){const{setAppFocusState:p}=(0,d.I)(),_=(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)(r.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:_,dangerouslySetInlineStyle:{__style:s?h.modalOpen.__style:h.modalClose.__style},children:(0,u.jsx)(o.Z.Provider,{value:_.current,children:i})})})})})}},326960:(e,t,i)=>{i.d(t,{Z:()=>p});var n=i(667294),a=i(172071),o=i(883119),r=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:o,isChromeOnIOS:r,isUnauth:s,logContextEvent:l,category:d,viewParameter:u,viewType:p,pinId:h,imageSignature:_}=this.props,{href:m}=this.state;window.AndroidTwa&&window.AndroidTwa.downloadImage?(window.AndroidTwa.downloadImage(n,c(i,o)),e()):r?(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:h,view_type:p||3,view_parameter:u||139,aux_data:{image_signature:_}})})))),d(this,"DOWNLOAD_ERROR","error")}render(){const{children:e,filename:t,imgSrc:i,isAndroidTwa:a,isChromeOnIOS:r}=this.props,{href:s}=this.state,d=null!=s&&s!==this.DOWNLOAD_ERROR;return(0,l.jsxs)(n.Fragment,{children:[e(this.onEvent),r&&i?(0,l.jsx)(o.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)(o.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,r.xC)(),i=(0,s.Z)();return(0,l.jsx)(u,{...e,isAndroidTwa:t,logContextEvent:i})}},994718:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(883119),a=i(785893);const o=({icon:e,iconLabel:t,message:i,url:o,onTouch:r})=>{const s=(0,a.jsxs)(n.xu,{alignItems:e?"center":void 0,color:"selected",display:e?"flex":"inlineBlock",justifyContent:e?"between":void 0,padding:2,rounding:2,children:[(0,a.jsx)(n.xu,{marginEnd:e?2:0,children:(0,a.jsx)(n.xv,{color:"inverse",overflow:"normal",weight:"bold",children:i})}),e&&t&&(0,a.jsx)(n.xu,{flex:"none",children:(0,a.jsx)(n.JO,{icon:e,color:"inverse",accessibilityLabel:t,size:32})})]});return(0,a.jsx)(n.xu,{paddingX:2,children:o?(0,a.jsx)(n.iP,{role:"link",href:o,rounding:2,tapStyle:"none",onTap:({event:e})=>null==r?void 0:r(e),children:s}):s})}},765980:(e,t,i)=>{i.d(t,{Zt:()=>be,iK:()=>xe,ZP:()=>Se,cV:()=>ve});var n=i(667294),a=i(702664),o=i(157796),r=i(391254),s=i(283698),l=i(313047),d=i(100183),c=i(639952),u=i(81636),p=i(898781),h=i(883119),_=i(785893);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 g="BizNuxHomefeedLoader",v=[140,220,265],y=["#E2780D","#0074e8","#0FA573","#FAB904","#133A5E","#FF8A8A"],f=e=>({position:"absolute",width:"100%",height:"100%",top:"0px",left:"0px",zIndex:"1",pointerEvents:"none",...e?{WebkitAnimationDuration:".4s",WebkitAnimationDelay:"1.15s",WebkitAnimationFillMode:"forwards",WebkitAnimationName:`${g}_FadeOut`,animationDuration:".5s",animationDelay:"1.2s",animationFillMode:"forwards",animationName:`${g}_FadeOut`}:{}}),b=e=>e?{WebkitAnimationDuration:".4s",WebkitAnimationDelay:".5s",WebkitAnimationFillMode:"forwards",WebkitAnimationName:`${g}_FadeOut`,animationDuration:".4s",animationDelay:".5s",animationFillMode:"forwards",animationName:`${g}_FadeOut`}:{},x=[`${g}_FadeOut {\n    from { opacity: 1 }\n    to { opacity: 0 }\n  }`,`${g}_SlideUp {\n    from {\n      -webkit-transform: translateY(100vh);\n      transform: translateY(100vh);\n    }\n    to {\n      -webkit-transform: translateY(0);\n      transform: translateY(0);\n    }\n  }`];class S extends n.PureComponent{constructor(...e){super(...e),m(this,"state",{enterAnimationFinished:!1,startExitAnimation:!1}),m(this,"enterAnimationDidFinished",(()=>{this.setState({enterAnimationFinished:!0})})),m(this,"startExitAnimation",(()=>{const{dismissLoader:e}=this.props;this.setState({startExitAnimation:!0},(()=>{this.exitAnimationTimeout=setTimeout((()=>{e()}),1700)}))}))}componentDidMount(){window.scrollTo(0,0),this.enterAnimationTimeout=setTimeout((()=>{this.enterAnimationDidFinished()}),2e3)}componentDidUpdate(e){const{homefeedLoading:t}=this.props,{enterAnimationFinished:i,startExitAnimation:n}=this.state;!i||t||n||(0,s.Z)(this.startExitAnimation)}componentWillUnmount(){clearTimeout(this.enterAnimationTimeout),clearTimeout(this.exitAnimationTimeout)}get gridCellDimensionsByColumn(){const{gridContainerRef:e}=this.props;if(!e.current)return null;const t=e.current.querySelectorAll(".PinCard__imageWrapper"),i=Array.from({length:this.numberOfColumns},(e=>[]));for(let n=0;n<t.length;n+=1){const e=t[n].getBoundingClientRect();i[Math.round(e.left/(window.innerWidth/this.numberOfColumns))].push(e)}return i}get numberOfColumns(){return Math.max(Math.floor(window.innerWidth/200),2)}computeGridCellLayout(e,t,i){const n=this.numberOfColumns+1,a=(window&&window.innerWidth-16*n)/this.numberOfColumns;return{left:e*a+16*(e+1),top:i,width:a,height:v[(e+t)%v.length]}}renderGrid(){const{selectedTopics:e}=this.props,{startExitAnimation:t}=this.state,i=Array(this.numberOfColumns).fill(l.DEFAULT_HEIGHT),n=this.gridCellDimensionsByColumn,a=e.map(((e,a)=>{const o=a%this.numberOfColumns,r=Math.floor(a/this.numberOfColumns),s=y[a%y.length],l=i[o],d=this.computeGridCellLayout(o,r,l),c=(({color:e,startAnimation:t,originDimension:i,destinationDimension:n={}})=>{const a=n&&n.height>0?{top:n.top,left:n.left,width:n.width,height:n.height}:{opacity:0};return{position:"absolute",WebkitTransitionDuration:".5s",WebkitTransitionDelay:".6s",WebkitTransitionProperty:"all",WebkitTransitionTimingFunction:"ease-in-out",transitionDuration:".5s",transitionDelay:".6s",transitionProperty:"all",transitionTimingFunction:"ease-in-out",height:i.height,width:i.width,left:i.left,top:i.top,backgroundColor:e,borderRadius:"8px",...t?a:{}}})({color:s,startAnimation:t,originDimension:d,destinationDimension:n&&n[o][r]});return i[o]+=16+d.height,(0,_.jsx)(h.xu,{dangerouslySetInlineStyle:{__style:c},children:(0,_.jsx)(h.xu,{margin:5,display:"flex",justifyContent:"start",alignItems:"start",dangerouslySetInlineStyle:{__style:b(t)},children:(0,_.jsx)(h.X6,{color:"light",size:"500",children:e.name})})},a)}));return(0,_.jsx)(h.xu,{dangerouslySetInlineStyle:{__style:{position:"absolute",height:"100%",width:"100%",left:0,top:0,WebkitTransform:"translateY(100vh)",WebkitAnimationDuration:".8s",WebkitAnimationDelay:"1.2s",WebkitAnimationFillMode:"forwards",WebkitAnimationName:`${g}_SlideUp`,transform:"translateY(100vh)",animationDuration:".8s",animationDelay:"1.2s",animationFillMode:"forwards",animationName:`${g}_SlideUp`}},children:a})}render(){const{startExitAnimation:e}=this.state;return(0,_.jsxs)(n.Fragment,{children:[(0,_.jsx)(r.Z,{unsafeCSS:(0,d.Ll)(x)}),(0,_.jsx)(h.xu,{color:"default",dangerouslySetInlineStyle:{__style:f(e)},children:(0,_.jsxs)(h.kC,{alignItems:"center",direction:"column",justifyContent:"start",children:[(0,_.jsxs)(n.Fragment,{children:[(0,_.jsx)(o.Z,{duration:3700,finalProgress:100}),(0,_.jsx)(h.xu,{margin:10,dangerouslySetInlineStyle:{__style:{WebkitAnimationDuration:".5s",WebkitAnimationDelay:"1.4s",WebkitAnimationFillMode:"forwards",WebkitAnimationName:`${g}_FadeOut`,animationDuration:".5s",animationDelay:"1.25s",animationFillMode:"forwards",animationName:`${g}_FadeOut`}},children:(0,_.jsx)(h.X6,{children:this.props.i18n.bt("个性化你的页面，可使用…", "Personalizing your feed with...", "Loading homefeed details", undefined, true)})})]}),this.renderGrid()]})})]})}}function P(e){const t=(0,p.ZP)(),i=(0,a.useSelector)((({topics:e})=>e)),n=(0,a.useDispatch)();return(0,u.Q)({view_type:24,view_parameter:261}),(0,_.jsx)(S,{...e,dismissLoader:()=>n((0,c.MI)(!1)),i18n:t,selectedTopics:Object.keys(i).filter((e=>i[e].is_followed)).map((e=>i[e]))})}var E=i(223019),T=i(491563),I=i(920231),A=i(698629),w=i(204283),C=i(439506),R=i(368156),k=i(934494),O=i(112690),D=i(19121),N=i(773285),j=i(861411),L=i(276775);function M({pin:e,width:t,height:i,showDivider:n}){var a,o,r,s,l,d,c;const u=null===(a=e.images)||void 0===a?void 0:a["236x"];return(0,_.jsx)(h.xu,{dangerouslySetInlineStyle:{__style:n?{borderRight:"2px solid #fff"}:{}},children:(0,_.jsx)(h.GH,{contentAspectRatio:(null!==(o=null==u?void 0:u.width)&&void 0!==o?o:1)/(null!==(r=null==u?void 0:u.height)&&void 0!==r?r:1),height:i,width:t,children:(0,_.jsx)(h.Ee,{alt:null!==(s=e.description)&&void 0!==s?s:"",naturalWidth:null!==(l=null==u?void 0:u.width)&&void 0!==l?l:1,naturalHeight:null!==(d=null==u?void 0:u.height)&&void 0!==d?d:1,src:null!==(c=null==u?void 0:u.url)&&void 0!==c?c:""})})})}function F({storyId:e,slotIndex:t}){const i=(0,L.useHistory)(),o=(0,L.useLocation)(),{isAuth:r}=(0,D.Z)(),{checkExperiment:s}=(0,N.F)(),[l,d]=(0,n.useState)(0),c=(0,n.useRef)(),u=(0,O.Z)();(0,n.useLayoutEffect)((()=>{const e=c.current;e&&d(e.offsetWidth)}),[]);const p=(0,a.useSelector)((({stories:t})=>t[e])),m=(0,a.useSelector)((({pins:e})=>p.objects.map((t=>e[t.id])))).slice(0,2),{story_type:g,action:v}=p,y=`${o.pathname}products/${o.search}`,f=()=>{u({component:200,event_type:102,view_parameter:3050,view_type:72}),i.push(y)};return s(r?"mweb_deprecated_impression_tracker_story_impression_auth":"mweb_deprecated_impression_tracker_story_impression_unauth").anyEnabled?(0,_.jsx)(j.qS,{auxData:{story_type:g,content_ids:m.map((e=>e.id)),story_id:e},component:200,loggingId:e,objectIdStr:e,slotIndex:t,viewParameter:3050,viewType:72,children:({impressionTrackerRef:e})=>l?(0,_.jsx)(h.xu,{padding:2,ref:e,children:(0,_.jsx)(h.zd,{rounding:2,children:(0,_.jsxs)(h.iP,{onTap:f,children:[(0,_.jsx)(h.xu,{display:"flex",justifyContent:"center",alignItems:"center",color:"secondary",children:m.map(((e,t)=>(0,_.jsx)(M,{pin:e,width:(l-16)/2-1,height:l-16,showDivider:!t},e.id)))}),(0,_.jsx)(h.xu,{position:"absolute",top:!0,left:!0,width:"100%",height:"100%",children:(0,_.jsx)(h.kC,{alignItems:"center",height:"100%",justifyContent:"center",width:"100%",children:(0,_.jsx)(h.xu,{rounding:"pill",paddingX:4,paddingY:2,display:"flex",justifyContent:"center",alignItems:"center",color:"secondary",children:(0,_.jsx)(h.xv,{weight:"bold",children:v.text})})})})]})})}):(0,_.jsx)(h.xu,{dangerouslySetInlineStyle:{__style:{paddingBottom:"100%"}},position:"relative"})}):(0,_.jsx)(j.Hs,{auxData:{story_type:g,content_ids:m.map((e=>e.id)),story_id:e},component:200,loggingId:e,objectIdStr:e,slotIndex:t,viewParameter:3050,viewType:72,children:l?(0,_.jsx)(h.xu,{padding:2,children:(0,_.jsx)(h.zd,{rounding:2,children:(0,_.jsxs)(h.iP,{onTap:f,children:[(0,_.jsx)(h.xu,{display:"flex",justifyContent:"center",alignItems:"center",color:"secondary",children:m.map(((e,t)=>(0,_.jsx)(M,{pin:e,width:(l-16)/2-1,height:l-16,showDivider:!t},e.id)))}),(0,_.jsx)(h.xu,{position:"absolute",top:!0,left:!0,width:"100%",height:"100%",children:(0,_.jsx)(h.kC,{alignItems:"center",height:"100%",justifyContent:"center",width:"100%",children:(0,_.jsx)(h.xu,{rounding:"pill",paddingX:4,paddingY:2,display:"flex",justifyContent:"center",alignItems:"center",color:"secondary",children:(0,_.jsx)(h.xv,{weight:"bold",children:v.text})})})})]})})}):(0,_.jsx)(h.xu,{dangerouslySetInlineStyle:{__style:{paddingBottom:"100%"}},position:"relative",ref:c})})}var U=i(172071),B=i(706794),z=i(566102),V=i(946036),H=i(350118),Z=i(57791);const G="49.5%";function K({buttonAction:e,buttonText:t,colorImgs:i}){if(!i||i.length<4)return null;const n=e=>{var t,i,n,a;return(0,_.jsx)(h.xu,{width:G,height:"100%",children:(0,_.jsx)(h.Ee,{alt:null!==(t=e.title)&&void 0!==t?t:"",color:"rgb(111, 91, 77)",naturalHeight:null!==(i=e.height)&&void 0!==i?i:1,naturalWidth:null!==(n=e.width)&&void 0!==n?n:1,src:null!==(a=e.url)&&void 0!==a?a:"",fit:"cover"})})};return(0,_.jsx)(h.xu,{position:"relative",padding:1,marginBottom:2,children:(0,_.jsxs)(Z.MZ,{to:e,children:[(0,_.jsx)(h.xu,{dangerouslySetInlineStyle:{__style:{paddingTop:"calc(100%)"}},position:"relative",children:(0,_.jsx)(h.xu,{dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},top:!0,right:!0,bottom:!0,left:!0,overflow:"hidden",position:"absolute",rounding:4,children:(0,_.jsx)(h.xu,{height:"100%",width:"100%",rounding:4,direction:"column",display:"flex",justifyContent:"between",children:[i.slice(0,2),i.slice(2,4)].map((e=>(0,_.jsx)(h.kC,{width:"100%",height:G,justifyContent:"between",children:e.map(n)})))})})}),(0,_.jsx)(h.xu,{width:"100%",display:"flex",rounding:"pill",color:"secondary",justifyContent:"center",alignItems:"center",paddingX:2,height:48,marginTop:2,children:(0,_.jsx)(h.xv,{weight:"bold",children:(0,_.jsx)(h.xu,{children:t})})})]})})}var W=i(163321),$=i(962551),Y=i(826067);const q=["#CFFFCA","#D7EDFF","#DAD4FF","#DAFFF6","#FFE2EB","#FFE4C1","#FFFD92"],X=e=>q[e.charCodeAt(0)%q.length];function J({guides:e,storyId:t,slotIndex:i,titleFormat:a}){var o;const{isAuth:r}=(0,D.Z)(),{checkExperiment:s}=(0,N.F)(),l=null!==(o=(0,Y.mB)((0,L.useLocation)().search).q)&&void 0!==o?o:"";return s(r?"mweb_deprecated_impression_tracker_story_impression_auth":"mweb_deprecated_impression_tracker_story_impression_unauth").anyEnabled?(0,_.jsx)(j.qS,{auxData:{story_type:"search_guides"},component:200,loggingId:t,objectIdStr:t,slotIndex:i,viewParameter:43,viewType:2,children:({impressionTrackerRef:t})=>(0,_.jsxs)(h.xu,{ref:t,children:[a&&(0,_.jsx)(h.xu,{paddingY:1,marginTop:2,children:(0,_.jsx)(h.xv,{align:"center",children:a})}),(0,_.jsx)($.Z,{guides:e.map((e=>({display:e.display,dominant_color:X(e.display),position:-1,term:e.term}))),isSlot0Style:!0,query:l})]})}):(0,_.jsx)(j.Hs,{auxData:{story_type:"search_guides"},component:200,loggingId:t,objectIdStr:t,slotIndex:i,viewParameter:43,viewType:2,children:(0,_.jsxs)(n.Fragment,{children:[a&&(0,_.jsx)(h.xu,{paddingY:1,marginTop:2,children:(0,_.jsx)(h.xv,{align:"center",children:a})}),(0,_.jsx)($.Z,{guides:e.map((e=>({display:e.display,dominant_color:X(e.display),position:-1,term:e.term}))),isSlot0Style:!0,query:l})]})})}function Q({slotIndex:e,storyId:t,viewParameter:i,viewType:a,storyData:o}){const{actionText:r,actionUrl:s,colorImgsFromObjects:l,contextualSearchFromObjects:d,customProperties:c,descriptionFormat:u,displayOptions:p,experience:m,storyType:g,titleFormat:v}=o;switch((0,n.useEffect)((()=>{U.Z.increment("webapp.graphql.pinStory",.1,{viewType:a,storyType:g})}),[a,g]),g){case V.q:{var y,f,b;if(!c||!p)return null;const{numColumnsRequested:e,titleTextColor:t}=p;return 2===e?null:(0,_.jsx)(C.Z,{isFullWidth:!1,actionType:c.actionType,buttonAction:null!=s?s:"",buttonText:null!=r?r:"",experience:null!=m?m:void 0,hideCompleteButton:c.hide_complete_button,imageAlt:c.image_alt,imageUrl:c.image,openNewTab:c.open_new_tab,avatarImageDetails:null!==(y=c.avatar_image_details)&&void 0!==y?y:{},examplePinImage:null!==(f=null===(b=c.example_pin_image_details)||void 0===b?void 0:b.originals)&&void 0!==f?f:{},titleText:null!=v?v:"",titleTextColor:W.e[t],titleTextCustomization:c.title_text_customization,descriptionText:null!=u?u:"",descriptionTextCustomization:c.description_text_customization})}case"feed_card_default":case"feed_card_video":return(0,_.jsx)(W.Z,{buttonAction:null!=s?s:"",buttonCustomization:c.button_customization,buttonText:null!=r?r:"",experience:null!=m?m:void 0,hideCompleteButton:c.hide_complete_button,imageAlt:c.image_alt,imageUrl:c.image,openNewTab:c.open_new_tab,storyType:g,titleText:null!=v?v:"",titleTextColor:W.e[p.titleTextColor],titleTextCustomization:c.title_text_customization,videoPin:c.video_pin,videoPlaceholderImage:c.video_placeholder_image});case"user_brand_story":case"user_color_story":case"general_shopping_upsell":return(0,_.jsx)(W.Z,{buttonAction:null!=s?s:"",buttonText:null!=r?r:"",imageAlt:null==c?void 0:c.image_alt,imageUrl:null==c?void 0:c.image,storyType:g,titleText:null!=v?v:"",titleTextColor:W.e[p.titleTextColor]});case"user_color_story_v1":return(0,_.jsx)(K,{buttonAction:null!=s?s:"",buttonText:null!=r?r:"",colorImgs:l});case"BUBBLE_ONE_COL":return(0,_.jsx)(h.xu,{padding:2,children:(0,_.jsx)(R.Z,{slotIndex:e,storyId:t,viewType:a,viewParameter:i})});case"pinner_authority":case"pinner_authority_unified":return(0,_.jsx)(B.Z,{storyId:t,slotIndex:e});case"stela_in_flashlight_onecol":return(0,_.jsx)(F,{storyId:t,slotIndex:e});case"search_guides":return(0,_.jsx)(J,{guides:null!=d?d:[],slotIndex:e,storyId:t,titleFormat:null!=v?v:""});default:return null}}const ee=(0,k.Z)({useGraphQLAdapter:()=>null,useLegacyAdapter:e=>{const t=(0,H.S6)(),i=(0,a.useSelector)((({stories:t})=>t[e]));if(!i)return null;const{action:n,container_type:o,custom_properties:r,display_options:s,experience:l,story_type:d,title:c,description:u,objects:p}=i;if(!d)return null;const h=p,_=null==h?void 0:h.filter((e=>"contextual_search"===e.schema)).map((e=>{var t,i;return{schema:"contextual_search",display:null!==(t=e.display)&&void 0!==t?t:"",term:null!==(i=e.term)&&void 0!==i?i:""}})),m=null==h?void 0:h.filter((e=>"pin"===e.schema)).slice(0,4).map((e=>{var i,n,a,o,r,s;const l=t(e.id);return{title:null==l?void 0:l.description,height:null==l||null===(i=l.images)||void 0===i||null===(n=i["736x"])||void 0===n?void 0:n.height,width:null==l||null===(a=l.images)||void 0===a||null===(o=a["736x"])||void 0===o?void 0:o.width,url:null==l||null===(r=l.images)||void 0===r||null===(s=r["736x"])||void 0===s?void 0:s.url}}));return{actionText:null==n?void 0:n.text,actionUrl:null==n?void 0:n.url,customProperties:r,displayOptions:s?{numColumnsRequested:s.num_columns_requested,titleTextColor:s.title_text_color}:null,experience:l,storyType:(0,z.Z)({containerTypeIsItemGrid:56===o,numColumnsRequested:null==s?void 0:s.numColumnsRequested,storyType:d})?"BUBBLE_ONE_COL":d,titleFormat:null==c?void 0:c.format,descriptionFormat:null==u?void 0:u.format,contextualSearchFromObjects:_,colorImgsFromObjects:m}}}),te=e=>(0,_.jsx)(ee,{input:{enabled:!1,data:e.storyId},children:({data:t})=>t&&(0,_.jsx)(Q,{...e,storyData:t})});var ie=i(889884),ne=i(740990),ae=i(182476),oe=i(784590),re=i(844887),se=i(780280),le=i(317254),de=i(50286),ce=i(444445),ue=i(679031);const pe=e=>`BREAK_IN_${e}`,he=new Map,_e=e=>{const t=he.get(e);if(t)return t;const i=Object.freeze({type:"FEED_BREAK_IN",id:pe(e)});return he.set(e,i),i};function me(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const ge={},ve=e=>{ge[e]&&ge[e].handlePullToRefresh()},ye=()=>{const{plpImageRenderData:e}=(0,re.HW)(),[t]=e;return t?t.pin_id:null};class fe extends n.PureComponent{constructor(...e){super(...e),me(this,"state",{refreshing:!1,unauthLandingPinStateForAuthHomefeed:this.props.authHomefeedComponentDidUpdate?{pinId:ye(),feedItem:null}:null}),me(this,"backOnlineAutoFetchResource",(()=>{this.props.pagination.loadNext()})),me(this,"handlePullToRefresh",(()=>{this.props.pagination.refetch(),this.setState({refreshing:!0})})),me(this,"gridContainerRef",(0,n.createRef)()),me(this,"renderFeedPin",((e,t)=>{const{feedItemProps:i,location:n,performanceOptimization:a,renderSquarePins:o,showSeoMetadata:r,squarePins:s,trafficSource:l,duploUnauthRelatedPinsAutoplayExpGroup:d,unauthRelatedProductsExpGroup:c}=this.props,{auxData:u,componentType:p,feedback:h,imageOnly:m,impressionData:g,objectIdStr:v,oneTapSave:y,onFeedItemClick:f,onPinLinkClick:b,shouldAllowProductPriceIndicator:x,showSeoMetadata:S,viewData:P,viewParameter:E,viewType:T}=i||{},I=(n.search||"").includes("force_seo"),A=!(null==a||!a.lazyLoadBelowFoldIndex)&&t>a.lazyLoadBelowFoldIndex,C=!(null==a||!a.priorityFetchAboveFoldIndex)&&t<=a.priorityFetchAboveFoldIndex;return(0,_.jsx)(w.default,{auxData:u,componentType:p||0,duploFeedItemProps:{onPinClick:f,onPinLinkClick:b,showSeoMetadata:r||I||S},duploIsSquarePin:o||s,duploLazyLoadImage:A,duploOneTapSave:y,duploPriorityFetchImage:C,duploShouldAllowProductPriceIndicator:x,feedback:h,imageOnlyOption:m?"image-only":"default",impressionData:g,objectIdStr:v,pinId:e.id,slotIndex:t,trackingParams:e.trackingParams,trafficSource:l,viewData:P,viewParameter:E,duploUnauthRelatedPinsAutoplayExpGroup:d,unauthRelatedProductsExpGroup:c,viewType:T||1})}))}componentDidMount(){var e,t;window.addEventListener("online",this.backOnlineAutoFetchResource),e=this.props.feedKey,t=this,ge[e]=t}componentWillUnmount(){var e;window.removeEventListener("online",this.backOnlineAutoFetchResource),e=this.props.feedKey,delete ge[e]}componentDidUpdate(e){const{refreshing:t,unauthLandingPinStateForAuthHomefeed:i}=this.state,{feedItems:n,authHomefeedComponentDidUpdate:a}=this.props,o=t&&e.pagination.isLoadingNext&&!this.props.pagination.isLoadingNext;if(o&&this.setState({refreshing:!1}),a&&i){const t=a({feedItems:n,prevFeedItems:e.feedItems,finishedRefresh:o,unauthLandingPinStateForAuthHomefeed:i});t&&this.setState({unauthLandingPinStateForAuthHomefeed:t})}}render(){const{deviceType:e,emptyState:t,feedItemProps:i,feedItems:a,feedItemsAdjustment:o,feedKey:r,gridConfig:s,pagination:l,pullToRefresh:d,renderFeedItem:c,serverRender:u,showBizNuxHomefeedLoader:p,trafficSource:m,visuallyCompleteProfilerOptions:g}=this.props,{unauthLandingPinStateForAuthHomefeed:v}=this.state,y=null!=v&&v.feedItem&&a.length?[v.feedItem,...a]:a,{viewParameter:f,viewType:b}=i||{},{key:x}=s||{},S=r+(x?`|${x}`:""),w="user_search"===m,C=w?window.innerWidth-16:200,R={columnWidth:"desktop"===e?ce.yF:C,renderItem:({data:e,itemIdx:t})=>{if(c){const i=c(e,t);if("FALLBACK_TO_DEFAULT"!==i)return i}switch(e.type){case"pin":return(0,_.jsx)(ue.cn,{children:this.renderFeedPin(e,t)});case"user":return(0,_.jsx)(T.Z,{truncateName:!0,userId:e.id,userSearchRepStyle:"user_search"===m,viewParameter:f,viewType:b});case"board":return(0,_.jsx)(E.Z,{boardId:e.id,type:"grid",viewParameter:f,viewType:b});case"topic":return(0,_.jsx)(ae.Z,{id:e.id,shouldClickthrough:!0,showFollowButton:!0,showFollowerCount:!0,viewParameter:f,viewType:b});case"story":return"number"==typeof f?(0,_.jsx)(te,{slotIndex:t,storyId:e.id,viewParameter:f,viewType:b||1}):null;case"FEED_BREAK_IN":return o&&"breakIn"===o.type&&o.value.content;default:return null}},gutterWidth:"desktop"===e?4*ce.jC:void 0,loadItems:l.loadNext,minCols:w?1:2,...s},k=!p&&l.isLoadingNext&&0===y.length&&!this.state.refreshing,[O,D,N]="fullWidthBreakIn"===(null==o?void 0:o.type)?[y.slice(0,o.value.index),o.value.content,y.slice(o.value.index)]:[y,null,[]],j="desktop"===e&&"flashlight"===m,L=j?0:ce.qG;return(0,_.jsxs)(h.xu,{"data-test-id":"MobileFeed",children:[(0,_.jsx)(ie.Z,{enabled:!!d,onPull:this.handlePullToRefresh,refreshing:this.state.refreshing}),(0,_.jsxs)(h.xu,{marginStart:L,marginEnd:L,"data-test-id":"grid",ref:this.gridContainerRef,opacity:this.state.refreshing?.5:1,children:[(0,_.jsx)(le.Z,{includeBackgroundImages:null==g?void 0:g.includeBackgroundImages,includeVideos:null==g?void 0:g.includeVideos,isAtEndOfFeed:!l.hasNext,itemCount:y.length,pinData:null==g?void 0:g.pins,children:y.length?(0,_.jsx)(h.xu,{"data-test-id":"feed",marginTop:(0,ue.kk)({isDesktop:"desktop"===e}),children:(0,_.jsx)(ne.Z.Consumer,{children:e=>(0,_.jsx)(n.Fragment,{children:(0,_.jsxs)(ue.c$,{feedRef:this.gridContainerRef,viewParameter:f,viewType:b||1,children:[(0,_.jsx)(I.Z,{cacheKey:S,id:u?r:void 0,items:O,scrollContainerRef:e,serverRender:u,...R}),D,N.length>0&&(0,_.jsx)(I.Z,{cacheKey:`${S}_afterBreak`,items:N,scrollContainerRef:e,...R})]})})})}):l.isLoadingNext?(0,_.jsx)(ue.gG,{}):null!=t?t:null}),k&&(0,_.jsx)(h.xu,{column:12,paddingY:2,children:(0,_.jsx)(A.Z,{partialViewportWidth:j})}),p&&(0,_.jsx)(P,{homefeedLoading:l.isLoadingNext,gridContainerRef:this.gridContainerRef})]})]})}}function be({feedItems:e,pagination:t,...i}){const{feedItemsAdjustment:n}=i,o=(0,L.useLocation)(),r=(0,de.ZP)(),{isAuthenticated:s,isBot:l}=(0,se.B)(),{isBizNuxHomefeedLoadShown:d}=(0,a.useSelector)((({session:e})=>e));let c=e;return"breakIn"===(null==n?void 0:n.type)?c=(({breakIn:{index:e},items:t})=>t.length<e?t:[...t.slice(0,e),_e(e),...t.slice(e)])({items:e,breakIn:n.value}):"offset"===(null==n?void 0:n.type)&&(c=e.slice(n.value)),(0,_.jsx)(fe,{...i,deviceType:r,feedItems:c,isAuthenticated:s,pagination:t,location:o,showBizNuxHomefeedLoader:!!d,showSeoMetadata:l||!s})}function xe({resource:{isAtEnd:e,isFetching:t,fetchMore:i,refresh:n},...o}){const r=(0,a.useSelector)((({feeds:e})=>{var t;return null!==(t=e[o.feedKey])&&void 0!==t?t:[]}));return(0,_.jsx)(be,{...o,feedItems:r,pagination:{hasNext:!e,isLoadingNext:t,loadNext:()=>i(),refetch:()=>n()}})}function Se({resourceConfig:e,...t}){const i=(0,oe.Z)(e);return(0,_.jsx)(xe,{...t,resource:i})}},815613:(e,t,i)=>{i.d(t,{Z:()=>P});var n=i(829407),a=i(898781),o=i(112690),r=i(927383),s=i(201155),l=i(667679),d=i(52022),c=i(19121),u=i(945698),p=i(62409),h=i(773285),_=i(350118),m=i(698330),g=i(50286),v=i(343341),y=i(640064),f=i(867820),b=i(883119),x=i(785893);const S=({children:e,pulsar:t,testId:i})=>t.show?(0,x.jsx)(b.xu,{position:"relative","data-test-id":i,children:(0,x.jsxs)(b.iP,{tapStyle:"none",onTap:t.onClick,children:[(0,x.jsx)(b.xu,{position:"absolute",marginTop:-5,dangerouslySetInlineStyle:{__style:{marginLeft:"-75px"}},children:e}),(0,x.jsx)(b.xu,{position:"absolute",marginTop:-12,dangerouslySetInlineStyle:{__style:{marginLeft:"-83px"}},children:(0,x.jsx)(b.o3,{})})]})}):(0,x.jsx)(b.xu,{"data-test-id":i,children:e});function P({auxData:e,disabled:t,disableLog:i,followEventType:P,id:E,inline:T,invertColors:I,isFollowed:A,isIdeaPin:w,isLegoEnabled:C,isSecondaryButton:R,isUserFollowButton:k,isUserMe:O,onFollow:D,onUnfollow:N,pinId:j,shouldUseLegoColors:L,showPulsar:M,size:F,textType:U="FollowFollowing",unfollowEventType:B,viewParameter:z,viewType:V}){const H=(0,a.ZP)(),Z=(0,g.HG)(),{showToast:G}=(0,v.F9)(),K=(0,d.Z)(),W=(0,o.Z)(),$=(0,l.Z)(),{checkExperiment:Y}=(0,h.F)(),q=(0,r.Z)(),X=(0,c.Z)(),J=X&&X.isAuth,{unauthFollowUserId:Q,setUnauthFollowUserId:ee}=(0,y.f)(),te=(0,m.mN)()(E),ie=(0,_.S6)()(null!=j?j:""),{link_domain:ne,native_creator:ae,origin_pinner:oe,pinner:re}=ie||{},se=(0,p.wS)(ne,ae,oe,re),le=null!=te?te:se;(0,n.Z)((()=>{!Z&&J&&Q&&E&&Q===E&&D(E)}));const de=q({fn:()=>{J?A?(N(E),i||W({event_type:B,view_type:V,view_parameter:z,object_id_str:E,aux_data:e})):(D(E),k&&G((({hideToast:e})=>{if(!le)return null;const t=le.username?`/${le.username}/`:"";return(0,x.jsx)(s.Z,{handleHide:e,text:(0,x.jsx)(b.xv,{children:H.bt("关注中！他们的已创建 Pin 图将在你的主页上显示！", "Following! Their created Pins will show up in your home feed!", "followButton.follow.informationalToastText", undefined, true)}),userId:E,href:t,imageUrl:le.image_medium_url})})),i||W({event_type:P,view_type:V,view_parameter:z,object_id_str:E,aux_data:e})):((0,f.My)(`mweb_unauth_follow_button.tap.${String(V)}`),5===V&&26===P&&(0,f.My)("mweb_unauth_board_page_follow_button.tap"),(0,f.NC)(A?"press_profile_unfollow":"press_profile_follow"),K({action:"click",item:"board-follow-button"}),$({reason:"ACTION_REQUIRES_LOGIN_OR_SIGNUP",attributionLabel:w?"tap.unauth_idea_pin.follow_button":"tap.unauth.follow_button",desktopOptions:{modalType:"signup",modalOptions:Z&&Y("pcons_dweb_contextual_follow_modal").anyEnabled?{source:"followButton",container:"follow"}:void 0},mobileOptions:!Z&&Y("pcons_mweb_contextual_follow_modal").anyEnabled?{headingType:"follow"}:void 0}),Z||ee(null!=E?E:""),(0,f.NC)("clickthrough"))},modalHeader:(0,u.N4)({i18n:H,toFollow:!A})}),ce=!A&&!!M,ue=()=>{if(O)return H.bt("这就是你！", "That's you!", "Follow button is disabled because this is you", undefined, true);if("AddRemove"===U)return A?H.bt("移除", "Remove", "unfollowButton.removeText", undefined, true):H.bt("添加", "Add", "followButton.addText", undefined, true);const e="FollowUnfollow"===U?H.bt("取消关注", "Unfollow", "unfollowButton.unfollowText", undefined, true):H.bt("关注", "Following", "Follow button label - followed state", undefined, true);return A?e:H.bt("关注", "Follow", "Follow button label - unfollowed state", undefined, true)};return(0,x.jsx)(S,{pulsar:ce?{show:!0,onClick:de}:{show:!1},testId:O||A?"board-unfollow-button":"board-follow-button",children:(0,x.jsx)(b.zx,{color:L||"AddRemove"===U||!C&&R||A?"gray":"red",disabled:O||t,fullWidth:T,onClick:ce?void 0:({event:t})=>{t.preventDefault(),t.stopPropagation(),i||W({event_type:101,component:13672,element:11951,object_id_str:E,view_type:V,view_parameter:z,aux_data:e}),de()},selected:I?!A:L&&A||!!A&&R,size:F,text:ue(),accessibilityLabel:ue()})})}},889884:(e,t,i)=>{i.d(t,{Z:()=>_});var n=i(667294),a=i(883119),o=i(785893);function r({text:e,isSelected:t,icon:i,animationType:n,position:r,hasStartPulling:s,isExecuted:l}){return(0,o.jsxs)(a.xu,{display:"flex",direction:"column",alignItems:"center",marginBottom:6,children:[(0,o.jsx)(a.xu,{color:t?"dark":"secondary","data-test-id":"action-animated-icon",rounding:"circle",padding:s?4:0,dangerouslySetInlineStyle:t&&l?{__style:{transform:"rotate(360deg)",transition:"all .9s ease-out"}}:{__style:{transition:"all .3s ease-out",marginTop:t&&"move"===n?40:0}},children:(0,o.jsx)(a.JO,{size:100*r<24?100*r:24,icon:i,accessibilityLabel:e,color:t?"light":"dark"})}),(0,o.jsx)(a.xu,{padding:1,"data-test-id":"action-animated-text",dangerouslySetInlineStyle:{__style:{opacity:t?1:0,transition:"all .3s ease-out"}},children:(0,o.jsx)(a.xv,{align:"center",size:"100",children:e})})]})}var s=i(898781);function l({enabled:e,onSelect:t,refreshing:i}){const a=(0,n.useRef)(null),[o,r]=(0,n.useState)(0),[s,l]=(0,n.useState)(!1),d=i?0:o/250,c=d>0,u=()=>{l(!1),r(0)};(0,n.useEffect)((()=>{if(e){const e=e=>{window.scrollY<=0&&!i&&(a.current=e.touches[0].clientY)},n=e=>{if(a.current){const t=.5*(e.touches[0].clientY-a.current);t>0&&(r(t),e.preventDefault())}},s=e=>{a.current&&(l(!0),t({pullDistance:o,position:d,resetState:u}),a.current=null)};return window.addEventListener("touchstart",e),window.addEventListener("touchmove",n,{passive:!1}),window.addEventListener("touchend",s),()=>{window.removeEventListener("touchstart",e),window.removeEventListener("touchmove",n,{passive:!1}),window.removeEventListener("touchend",s)}}}),[e,t,o,i,d]);const p=a.current;return{pullDistance:o,hasStartPulling:c,position:d,startYRefCurrent:p,PULL_MENU_DISTANCE:250,isExecuted:s}}var d=i(407043),c=i(276775);function u({enabled:e,onPull:t,refreshing:i}){const n=(0,s.ZP)(),u=(0,c.useHistory)(),{logContextEvent:p}=(0,d.v)(),h=e=>e>=.6,_=e=>e>.4&&e<.6,{position:m,hasStartPulling:g,PULL_MENU_DISTANCE:v,isExecuted:y}=l({enabled:e,onSelect:e=>{const{position:i,resetState:n}=e;_(i)?setTimeout((()=>{p({view_type:1,event_type:158,view_parameter:92}),t(),n()}),500):h(i)?setTimeout((()=>{p({view_type:1,event_type:10144,view_parameter:92}),u.push("edit/"),n()}),500):n()},refreshing:i}),f=n.bt("刷新", "Refresh", "pullMenu.refresh", undefined, true),b=n.bt("编辑页面", "Edit Feed", "pullMenu.goTuner", undefined, true);return(0,o.jsx)(a.xu,{children:e&&(0,o.jsxs)(a.xu,{display:"flex",alignItems:"center",direction:"column",height:m*v,justifyContent:"center",marginBottom:g?4:0,children:[(0,o.jsx)(r,{text:b,isSelected:h(m),icon:"edit",animationType:"move",position:m,hasStartPulling:g,isExecuted:y}),(0,o.jsx)(r,{text:f,isSelected:_(m),icon:"refresh",position:m,hasStartPulling:g,isExecuted:y})]})})}function p({enabled:e,onPull:t,refreshing:i}){const n=(0,s.ZP)(),{logContextEvent:r}=(0,d.v)(),{position:c,startYRefCurrent:u,pullDistance:p}=l({enabled:e,onSelect:e=>{const{pullDistance:i,resetState:n}=e;i>=120&&(r({view_type:1,event_type:158,view_parameter:92}),t()),n()},refreshing:i}),h=Math.min(c,1),_=n.bt("下拉刷新", "Pull to refresh", "Pull down on grid to refresh items", undefined, true);return(0,o.jsx)(a.xu,{children:e&&(0,o.jsx)(a.xu,{display:"flex",alignItems:"center",justifyContent:"center",height:120*c,dangerouslySetInlineStyle:{__style:{opacity:h,transition:null===u?"all .3s ease-out":void 0}},children:(0,o.jsx)(a.JO,{size:40,icon:u&&p<120?"arrow-circle-down":"arrow-circle-up",accessibilityLabel:_})})})}var h=i(773285);function _({enabled:e,onPull:t,refreshing:i}){const{checkExperiment:a}=(0,h.F)(),{anyEnabled:r}=a("hfp_drive_traffic_to_homefeed_tuner_mweb");return(0,o.jsx)(n.Fragment,{children:r?(0,o.jsx)(u,{enabled:e,onPull:t,refreshing:i}):(0,o.jsx)(p,{enabled:e,onPull:t,refreshing:i})})}},861411:(e,t,i)=>{i.d(t,{fv:()=>v,GR:()=>h,Hs:()=>f,Mv:()=>m,uc:()=>g,dL:()=>_,qS:()=>y,Y4:()=>S,HE:()=>x,Cy:()=>b});var n=i(667294),a=i(973935),o=i(124580),r=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;o.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&&o.Z.stop(this.node)}render(){return n.Children.only(this.props.children)}}function c(e){const{logImpression:t}=(0,r.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:h}){const _=(0,n.useRef)(null),{logImpression:m}=(0,r.v)(),{checkExperiment:g}=(0,u.F)(),v=g("web_mweb_pin_impression_add_width_height").anyEnabled,y=(0,n.useCallback)((()=>{const n=n=>{var o,r,l,u;m({viewData:c||{},viewType:p,viewParameter:h,eventType:a,impressionType:s,auxData:e,component:t,objectIdStr:d,eventData:{endTime:n.endTime,time:n.startTime,pinCellWidth:v?(null===(o=_.current)||void 0===o?void 0:o.getBoundingClientRect().width)||0:void 0,pinCellHeight:v?(null===(r=_.current)||void 0===r?void 0:r.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(_.current instanceof HTMLElement){const{pinIdStr:e,newsIdStr:t}=i;o.Z.start(_.current).onExitViewport(n).setDebugId(e||t||"unknown")}}catch(r){window.console.error('Can only track impressions for type "HTMLElement"')}}),[_.current]);return(0,n.useEffect)((()=>{l||y();const e=_.current;return()=>{e instanceof HTMLElement&&o.Z.stop(e)}}),[l,y]),_}const h=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}),_=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})},f=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}),b=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})},x=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})},S=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:()=>o});var n=i(883119),a=i(785893);function o({children:e,onMouseEnter:t,onMouseLeave:i,onTouch:o,rounding:r,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:o&&(({event:e})=>o(e)),rounding:r,tapStyle:u?"compress":"none",accessibilityLabel:d,role:c,children:e})}},379764:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(183007);const a=new(i(883119).H3)([n.N])},948945:(e,t,i)=>{i.d(t,{Z:()=>ue});var n=i(667294),a=i(81226),o=i(702664),r=i(8320),s=i(977734),l=i(499128),d=i(898781),c=i(112690),u=i(927383),p=i(662089),h=i(52022),_=i(332611),m=i(639952),g=i(57791),v=i(881802),y=i(698330),f=i(883119),b=i(276775),x=i(785893);const S=new f.Ry(1);function P({buttonText:e,clientTrackingParams:t,color:i="primary",deeplinkUri:a,experience:P,inline:E=!0,minWidth:T,onTouch:I,onUnsave:A,pinId:w,pinnedToBoardId:C,shape:R,shouldShowSavedButton:k,viewType:O,viewParameter:D,showSaveHandoffExperience:N}){var j;const L=(0,d.ZP)(),M=(0,o.useDispatch)(),F=(0,b.useHistory)(),U=(0,b.useLocation)().pathname.startsWith("/pin"),B=(0,o.useSelector)((({session:e})=>e.hasSavedUnauthPin)),z=(0,o.useSelector)((({session:e})=>e.unauthSavePinId)),V=null===(j=(0,y.Tt)())||void 0===j?void 0:j.pin_count,H=(0,c.Z)(),Z=(0,h.Z)(),G=e=>F.push(e),{showToast:K,showRepinConfirmation:W}=(0,p.Z)(),$=()=>{M((0,s.Z)({history:F,i18n:L,logContextEvent:H,onSuccess:()=>{P&&M((0,_.CK)(P.placement_id,P.experience_id))},originalPinId:w,pinId:w,trackingParams:{clientTrackingParams:t,pinnedToBoardId:C},showRepinConfirmation:N&&!U?()=>{}:W,disableRepinAnimation:z===w,pinCount:V,historyPush:G})).catch((e=>K((({hideToast:t})=>(0,x.jsx)(l.ZP,{variant:"error",text:e.message||L.bt("抱歉！我们这边出了点问题。", "Sorry! Something went wrong on our end.", "quickSave.toast.error.message", undefined, true),onHide:t})))))},Y=(0,n.useRef)(null),q=N&&!B,X=(0,u.Z)()({fn:e=>{e.stopPropagation(),e.preventDefault(),I&&I(e),k?k&&A&&A():$()},modalHeader:(0,v.Bx)(L)});(0,n.useEffect)((()=>{q&&!Y.current&&(Z({action:"trigger",item:"unauth-save-button-quicksave"}),$(),M((0,m.e2)())),Y.current=q}));const J=()=>L.bt("Pin 图", "Pin", "quickSave.quickSaveButton.icon.accessibilityLabel", undefined, true),Q=()=>e||L.bt("收藏", "Save", "quickSave.quickSaveButton.buttonText", undefined, true);return B&&!U?null:(0,x.jsx)(f.xu,{"data-test-id":"save-button-mobile",zIndex:S,children:a?(0,x.jsx)(g.di,{accessibilityLabel:J(),color:i,customStyles:{padding:"14px 16px"},deeplinkUri:a,inline:E,minHeight:48,minWidth:T,onTouch:X,pressState:["compress","background"],shape:R,size:"lg",text:Q(),to:F.location.pathname,upsellType:"save",viewType:O,viewParameter:D}):(0,x.jsx)(r.Z,{accessibilityLabel:J(),color:i,customStyles:{padding:"14px 16px"},inline:E,minHeight:48,minWidth:T,onTouch:X,pressState:"compress",shape:R,size:"300",text:Q()})})}var E=i(364034),T=i(139574),I=i(826067),A=i(850431),w=i(867820),C=i(50286),R=i(780280),k=i(177891),O=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 f.Ry(2)),D(this,"onAddPin",(async function(){const{clientTrackingParams:e,dispatch:i,i18n:n,oneTapSave:a,pinId:o,pinnedToBoardId:r,showToast:s,viewType:d,historyPush:c}=t.props;try{const n=await i((0,A.w)({i18n:t.props.i18n,logContextEvent:t.props.logContextEvent,originalPinId:o,pinId:o,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:r},viewType:d,historyPush:c}));t.setState({saveState:"saved"}),i((0,k.a)({boardId:null==a?void 0:a.boardId,localPinId:n.id,pinId:o}))}catch(u){s((({hideToast:e})=>(0,x.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:o,showToast:r}=t.props;if(o){e((0,k.k)({boardId:o.boardId,localPinId:o.localPinId,pinId:a}));try{await e((0,T.q)({pinId:o.localPinId,boardId:o.boardId,clientTrackingParams:i})),r((({hideToast:e})=>(0,x.jsx)(l.ZP,{text:n.bt("Pin 图已删除！", "Pin deleted!", "User deleted their pin", undefined, true),onHide:e}))),t.setState({saveState:void 0})}catch(s){r((({hideToast:e})=>(0,x.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:o}=this.props;["saving","deleting"].includes(t)||a&&o||(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:o,isRTL:r,oneTapSave:s,pinId:l,pinnedToBoard:d,pinnedToBoardId:c,savedInfo:u,shouldShowSaveHandoffExp:p,useSmallSaveIcon:h}=this.props;if(!s&&!o&&!p)return e;const _=this.shouldDisplayAsSaved({isOneTapExploreLocalTab:o,pinnedToBoard:d,savedInfo:u}),m="#000",g="rgba(255, 255, 255, 0.8)",v="light",y="dark";return(0,x.jsxs)(n.Fragment,{children:[e,(0,x.jsx)(f.xu,{bottom:!0,left:r,padding:2,position:"absolute",right:!r,zIndex:this.legoFixedZIndex,children:p?(0,x.jsx)(P,{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,x.jsx)(f.iP,{onTap:this.handlePinAction,rounding:"circle",children:(0,x.jsx)(f.xu,{dangerouslySetInlineStyle:{__style:{backgroundColor:_?m:g}},padding:2,rounding:"circle",children:(0,x.jsx)(f.xu,{dangerouslySetInlineStyle:{__style:{opacity:100}},children:(0,x.jsx)(f.JO,{accessibilityLabel:_?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:_?"check":"add",color:_?v:y,size:h?16:24})})})})})]})}}const j=(0,o.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,O.F9)(),i=(0,b.useLocation)(),a=(0,d.ZP)(),r=(0,c.Z)(),l=(0,u.Z)(),p=(0,o.useDispatch)(),h=(0,b.useHistory)(),{isRTL:_,isAuthenticated:m}=(0,R.B)(),g=(0,o.useSelector)((({session:e})=>e.unauthSavePinId)),v=m&&!!g&&g===e.pinId,{pins:y,clear:f}=(0,E.Z)(),S=(0,n.useRef)(!1),P=(0,I.mB)(i.search).ideas_referrer,T=!(0,C.HG)()&&P===String(25),A=e=>h.push(e);return(0,n.useEffect)((()=>{m&&!S.current&&y.length>0&&(S.current=!0,y.forEach((({id:e})=>{p((0,s.Z)({history:h,i18n:a,logContextEvent:r,onSuccess:()=>{},originalPinId:e,pinId:e,trackingParams:{clientTrackingParams:"",pinnedToBoardId:""},showRepinConfirmation:()=>{},disableRepinAnimation:!0,historyPush:A})).catch((e=>{(0,w.My)(`error.unauth_profile_pin_merge.${e}`)}))})),f())})),(0,x.jsx)(N,{...e,i18n:a,requireAuthForLimitedLogin:l,history:h,logContextEvent:r,showToast:t,shouldShowSaveHandoffExp:v,isRTL:_,historyPush:A,useSmallSaveIcon:T})}));j.displayName="OneTapSave";const L=j;var M=i(883561),F=i(349700);function U({boardUrl:e,boardName:t,isQuicksave:i,sectionName:n,sectionSlug:a}){const o=(0,d.ZP)(),r=(0,b.useHistory)(),s=new f.Ry(1),l=!!a&&`${e}${a}/`;return(0,x.jsx)(f.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,zIndex:s,dangerouslySetInlineStyle:{__style:{background:"rgb(0 0 0 / .4)"}},children:(0,x.jsx)(f.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,display:"flex",justifyContent:"center",alignItems:"start",padding:4,children:(0,x.jsx)(f.iP,{onTap:t=>{t.event.preventDefault(),r.push(i?"/me/":l||e)},children:(0,x.jsx)(f.xv,{color:"light",children:n?(0,F.nk)(o.bt("已收藏至 {{sectionName}}", "Saved to {{sectionName}}", "PinCard.SavedToSection.Overlay", undefined, true),{sectionName:(0,x.jsx)(f.xv,{color:"light",weight:"bold",inline:!0,children:(0,M.ZP)(n,22)},`pincard-${n}`)}):(0,F.nk)(o.bt("已收藏至 {{boardName}} 图板", "Saved to {{boardName}}", "PinCard.SavedToBoard.Overlay", undefined, true),{boardName:(0,x.jsx)(f.xv,{color:"light",weight:"bold",inline:!0,children:i?o.bt("个人资料", "Profile", "PinCard.SavedToProfile.Overlay", undefined, true):(0,M.ZP)(t,22)},`pincard-${t}`)})})})})})}var B=i(167525),z=i(964082),V=i(36971),H=i(463045);function Z({isSquarePin:e,color:t,description:i,imageUrl:n,imageHeight:a,imageWidth:o,onError:r,onLoad:s}){const l=(0,x.jsx)(f.Ee,{alt:i||"",color:t,naturalHeight:null!=a?a:1,naturalWidth:null!=o?o:1,onError:r,onLoad:s,src:null!=n?n:"",fit:e?"cover":void 0});return e?(0,x.jsx)(f.xu,{dangerouslySetInlineStyle:{__style:{paddingTop:"calc(100%)"}},children:(0,x.jsx)(f.xu,{top:!0,right:!0,bottom:!0,left:!0,position:"absolute",dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},children:l})}):l}var G=i(350445),K=i(46584),W=i(926749),$=i(623568),Y=i(965900);function q({inAdsVideoExperiment:e,unauthRelatedPinsAutoplayExpGroup:t,isAutoplay:i,cropHeight:a,currentTime:o,onLoad:r,onError:s,onTimeChange:l,pin:c,playing:u,rootMargin:p,viewType:h,viewParameter:_,onVisibilityChanged:m,trackFullVisible:g,videoDuration:v,imageHeightModifier:y,image:b,isSquarePin:S}){var P,E,T,I;const A=(0,d.ZP)(),[w,R]=(0,n.useState)(!1),[k,O]=(0,n.useState)(!0),{is_downstream_promotion:D,promoter:N}=c,j=(0,$.jL)(D,N),L=j&&!c.is_eligible_for_web_closeup,M=3372===_||42===h,F=j&&c.is_eligible_for_web_closeup&&!M,{setCurrentVideo:U,pauseAutoplay:z}=(0,Y.I)(),V=L||!j,H=(0,K.Z)({onVisibilityChanged:m,inAdsDesktopVideoExperiment:e,trackFullVisible:g,rootMargin:p});let q=!u;(e||null!=t&&t.startsWith("enabled"))&&(q=k,i&&u&&k&&O(!1));const{url:X}=(null===(P=c.images)||void 0===P?void 0:P["236x"])||{},{id:J}=c,Q=(0,C.HG)()&&c.videos?null===(E=c.videos.video_list)||void 0===E?void 0:E.V_HLSV4:null===(T=c.videos)||void 0===T||null===(I=T.video_list)||void 0===I?void 0:I.V_720P,ee=(0,C.HG)()&&c.videos?"video/m3u8":"video/mp4",te=(0,n.useCallback)((({event:e})=>{e.preventDefault(),e.stopPropagation(),U({pinId:J,isPromoted:Boolean(j),currentTime:0}),R(!1)}),[j,J,U]),ie=(0,n.useCallback)((()=>{j&&R(F),z({pinId:J,isPromoted:Boolean(j),currentTime:0})}),[F,j,J,z]);if(!c.videos||!Q)return null;const{height:ne,thumbnail:ae,width:oe,url:re}=Q||{},se=c.videos.id,le=[{type:ee,src:re}];let de,ce=(null!=oe?oe:1)/(null!=ne?ne:1);return e&&S&&(ce=1,de="transparent",y&&(ce-=y-1)),w&&j?(0,x.jsx)(f.xu,{"data-test-id":"pin-video-mobile-end-card",ref:H,children:(0,x.jsx)(G.Z,{backgroundImage:null!=X?X:"",naturalHeight:null!=ne?ne:1,naturalWidth:null!=oe?oe:1,pin:c,onRestartVideo:te})}):q?(0,x.jsxs)(f.xu,{"data-test-id":"pin-video-mobile-image",ref:H,children:[v&&(0,x.jsx)(B.Z,{text:v}),(0,x.jsx)(Z,{imageHeight:null!==(ue=null==b?void 0:b.height)&&void 0!==ue?ue:1,imageWidth:null!==(pe=null==b?void 0:b.width)&&void 0!==pe?pe:1,onError:s,onLoad:r,imageUrl:null!==(he=null==b?void 0:b.url)&&void 0!==he?he:"",isSquarePin:S})]}):(0,x.jsx)(f.xu,{"data-test-id":"pin-video-mobile-video",ref:H,children:(0,x.jsx)(W.ZP,{isAutoPlay:!!i,cropHeight:a,rootMargin:p,inAdsDesktopVideoExperiment:e,contextLogData:{viewParameter:_,component:0,objectId:c.id,video_id:se,view:h},accessibilityMaximizeLabel:A.bt("最大化", "Maximize", "pinLayouts.PinVideo.accessibilityMaxVideoBtn", undefined, true),accessibilityMinimizeLabel:A.bt("最小化", "Minimize", "pinLayouts.PinVideo.accessibilityMinVideoBtn", undefined, true),accessibilityMuteLabel:A.bt("静音", "Mute", "pinLayouts.PinVideo.accessibilityMuteVideoBtn", undefined, true),accessibilityPauseLabel:A.bt("暂停", "Pause", "pinLayouts.PinVideo.accessibilityPauseVideoBtn", undefined, true),accessibilityPlayLabel:A.bt("播放", "Play", "pinLayouts.PinVideo.accessibilityPlayVideoBtn", undefined, true),accessibilityProgressBarLabel:A.bt("进度条", "Progress bar", "pinLayouts.PinVideo.accessibilityProgressBarLabel", undefined, true),accessibilityUnmuteLabel:A.bt("解除静音", "Unmute", "pinLayouts.PinVideo.accessibilityUnmuteVideoBtn", undefined, true),aspectRatio:ce,backgroundColor:de,captions:"",hlsConfig:{capLevelToPlayerSize:!0,startPosition:o||-1},loop:V,onTimeChange:l,playing:u,onPlay:()=>{},onPlayError:()=>{},poster:X||ae,src:null!=le?le:[],videoStartTime:o,volume:0,onEnded:ie})});var ue,pe,he}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,V.Z)(n,i);return this.currentVideoCurrentTime||a||e})),X(this,"handleVisibilityChanged",(e=>{const{currentTimeFromPinRep:t,pin:i,setCurrentVideo:n,pauseAutoplay:a,videosAutoplaying:o}=this.props,{id:r,is_downstream_promotion:s,promoter:l}=i,d=(0,$.jL)(s,l),c=(0,H.Z)(r,o),u=(0,z.Z)(r,o);e?d?n({pinId:r,isPromoted:d,currentTime:this.calculateCurrentVideoTime()}):u&&n({pinId:r,isPromoted:Boolean(d),currentTime:this.calculateCurrentVideoTime()}):!e&&c&&a({pinId:r,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:o,setCurrentVideo:r,videosAutoplaying:s}=this.props,{id:l,is_downstream_promotion:d,promoter:c}=o,u=(0,$.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,r({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:o,promoter:r}=i,s=(0,$.jL)(o,r);(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:o,viewType:r,onError:s,onLoad:l,inAdsVideoExperiment:d,unauthRelatedPinsAutoplayExpGroup:c,isSquarePin:u,rootMargin:p,imageHeightModifier:h,image:_,isHovering:m}=this.props,{id:g}=i,v=(0,V.Z)(g,n),y="enabled_hover"===c,f=(0,H.Z)(g,n),b=m&&y||f&&t;return(0,x.jsx)(q,{cropHeight:e,rootMargin:p,currentTime:v,inAdsVideoExperiment:d,unauthRelatedPinsAutoplayExpGroup:c,isAutoplay:t,isSquarePin:u,image:_,viewParameter:o,viewType:r,onTimeChange:this.handleVideoTimeChange,onVisibilityChanged:this.handleVisibilityChanged,pin:i,playing:b,trackFullVisible:!1,onError:s,onLoad:l,imageHeightModifier:h,videoDuration:a})}}function Q(e){const{appUI:{appInFocus:t,isAutoplay:i,videosAutoplaying:n},pauseAutoplay:a,setCurrentVideo:o}=(0,Y.I)();return(0,x.jsx)(J,{...e,appInFocus:t,isAutoplay:i,pauseAutoplay:a,setCurrentVideo:o,videosAutoplaying:n})}var ee=i(690035),te=i(310227),ie=i(773285),ne=i(130460),ae=i(350118),oe=i(780679),re=i(627995);const se=({domainLinkData:e})=>{const t=(0,d.ZP)(),i=(0,oe.g)();return(0,x.jsxs)(f.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:"rgba(51, 51, 51, 0.8)"}},children:[(0,x.jsx)(f.xu,{position:"absolute",top:!0,bottom:!0,left:!0,right:!0,display:"flex",justifyContent:"center",alignItems:"center",paddingX:2,children:(0,x.jsx)(f.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,x.jsx)(f.xu,{position:"absolute",bottom:!0,left:!0,width:"100%",minWidth:"100%",children:(0,x.jsx)(re.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,x.jsx)(f.xu,{dangerouslySetInlineStyle:{__style:t?{marginTop:t.top,marginBottom:t.bottom}:{}},position:"relative","data-test-id":"pin-visual-wrapper",children:(0,x.jsx)(f.zd,{wash:!0,rounding:i?0:te.mv,children:e})}),ue=({clientTrackingParams:e,color:t,description:i,domainLinkData:o,hideBottomCardText:r,image:s,imageAltText:l,imageCrop:c,isPromoted:u,isMessenger:p,isOneTapExploreLocalTab:_,isSquarePin:m,lazyLoadImage:g,onError:v,oneTapSave:y,onLoad:S,pinId:P,priorityFetchImage:E,disableDefaultContextMenu:T,pinnedToBoardId:I,pinVideo:A,videoUrl:k,productPrice:O,disableRounding:D,storyDataExists:N,title:j,type:M,videoDuration:F,viewType:z,viewParameter:V,unauthRelatedPinsAutoplayExpGroup:H})=>{var Z,G,K,W,$,Y,q,X,J,te,oe;const re=(0,d.ZP)(),ue=(0,ee.Z)(),{checkExperiment:pe}=(0,ie.F)(),[he,_e]=(0,n.useState)(!1),{isAuthenticated:me}=(0,R.B)(),ge=(0,C.ZP)(),ve=(0,ae.S6)()(P),ye=(0,ne.gC)()(I||(ve?String(null===(Z=ve.board)||void 0===Z?void 0:Z.id):"")),fe=I&&(null==ve?void 0:ve.savedThisSession),be=o&&o.link?"with-link":"without-link",xe=!me&&"desktop"!==ge,Se=(0,n.useRef)(Date.now()),Pe=(0,n.useRef)(null),Ee=pe("mweb_video_ads_autoplay").anyEnabled,Te="video"===M&&(H&&"enabled_hover"===H),Ie=(0,h.Z)();(0,n.useEffect)((()=>{Te||!he||me||Ie({action:"view",item:"unauth-video-autoplay-on-hover"})}),[Te,he,Ie,me]);const Ae=(0,x.jsx)(f.Ee,{alt:l||j||i||"",color:t,naturalHeight:null!==(G=s.height)&&void 0!==G?G:1,naturalWidth:null!==(K=s.width)&&void 0!==K?K:1,onError:v,onLoad:S,src:null!==(W=s.url)&&void 0!==W?W:"",fit:m?"cover":void 0,loading:g?"lazy":"auto",fetchPriority:E?"high":"auto"}),we=m?(0,x.jsx)(f.xu,{dangerouslySetInlineStyle:{__style:{paddingTop:"calc(100%)"}},children:(0,x.jsx)(f.xu,{top:!0,right:!0,bottom:!0,left:!0,position:"absolute",dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},children:Ae})}):Ae,Ce=(0,b.useLocation)(),Re=()=>(0,le.C$)(Ce)?"homefeed":(0,le.L6)(Ce)?"related_pins":(0,le.En)(Ce)?"search":"unknown";return(0,x.jsx)("div",{className:"PinCard__imageWrapper",style:{position:"relative"},children:(0,x.jsxs)(f.xu,{onContextMenu:e=>{if("desktop"!==ge){const t=Re();(0,w.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,w.My)("unauth.mweb.related_pin.image.touch.start"),"related_pins"===t&&!me&&(null==T||T(),Se.current=Date.now(),e.changedTouches&&e.changedTouches.length>0)){const t=e.changedTouches.item(0);t&&(Pe.current={x:t.pageX,y:t.pageY})}}},onTouchEnd:e=>{if("desktop"!==ge){const t=Re();if((0,w.My)("unauth.mweb.related_pin.image.touch.end"),Date.now()-Se.current>500&&!me&&"related_pins"===t){const t=Pe.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==T||T(),ue({pinId:P,location:"related-pins-long-press"}),e.stopPropagation()}}}},"data-test-id":`pincard-${M}-${be}`,dangerouslySetInlineStyle:{__style:{willChange:"transform",textDecoration:"none"}},overflow:"hidden",onMouseOver:xe?void 0:()=>_e(!0),onMouseLeave:xe?void 0:()=>_e(!1),position:"relative",rounding:D?0:4,children:[(0,x.jsxs)(L,{clientTrackingParams:e||"",oneTapSave:y,isOneTapExploreLocalTab:_,pinId:P,pinnedToBoardId:I,viewType:z,children:[(()=>{if("gif"===M&&!r&&!fe)return(0,x.jsx)(B.Z,{text:re.bt("GIF", "GIF", "pin.pinCard.gifIconIdentifier", undefined, true)});if("video"===M&&F&&!r&&!fe)return(0,x.jsx)(B.Z,{text:F});if("storyPin"===M&&N&&!fe){const{page_count:e=0,total_video_duration:t=0}=(null==ve?void 0:ve.story_pin_data)||{};if(t>0)return(0,x.jsx)(B.Z,{text:(0,a.Z)(t)});if("number"==typeof e&&e>0)return(0,x.jsx)(B.Z,{icon:"idea-pin",text:e.toString()})}return"product"===M&&O?(0,x.jsx)(B.Z,{text:O}):null})(),(0,x.jsx)(ce,{disableRounding:D,margin:c?de({width:null!==($=s.width)&&void 0!==$?$:1,height:null!==(Y=s.height)&&void 0!==Y?Y:1,minY:c.minY,maxY:c.maxY}):void 0,children:"video"===M&&p&&A?(0,x.jsx)(f.nk,{autoplay:!0,accessibilityMaximizeLabel:"",accessibilityMinimizeLabel:"",accessibilityMuteLabel:"",accessibilityPauseLabel:"",accessibilityPlayLabel:"",accessibilityProgressBarLabel:re.bt("进度条", "Progress bar", "PinCardVisual.accessibilityProgressBarLabel", undefined, true),accessibilityUnmuteLabel:"",aspectRatio:A.width/A.height,captions:"",loop:!0,onPlay:()=>{},onPlayError:()=>{},playsInline:!0,poster:null!==(q=s.url)&&void 0!==q?q:"",src:A.url,volume:0}):A&&u&&Ee&&ve||null!=H&&H.startsWith("enabled")&&k&&ve?(0,x.jsx)(Q,{image:s,inAdsVideoExperiment:Ee,unauthRelatedPinsAutoplayExpGroup:H,isHovering:he,isSquarePin:m,onError:v,onLoad:S,pin:ve,videoDuration:F,viewParameter:V,viewType:z}):we})]}),!Te&&he&&!me&&(0,x.jsx)(se,{domainLinkData:o}),me&&fe&&(0,x.jsx)(U,{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===(oe=y.section)||void 0===oe?void 0:oe.slug,isQuicksave:"quick_saves"===(null==ye?void 0:ye.layout)})]})})}},904779:(e,t,i)=>{i.d(t,{K:()=>r,T:()=>s});var n=i(667294),a=i(785893);const o=(0,n.createContext)({getPinFeedbackStatus:()=>{},setPinFeedbackStatus:()=>{}}),r=()=>(0,n.useContext)(o);function s({children:e}){const[t,i]=(0,n.useState)(Object.freeze({})),r=(0,n.useMemo)((()=>({getPinFeedbackStatus:({pinId:e})=>t[e],setPinFeedbackStatus:({pinId:e,pinFeedbackStatus:n})=>i({...t,[e]:n})})),[t]);return(0,a.jsx)(o.Provider,{value:r,children:e})}},204283:(e,t,i)=>{i.r(t),i.d(t,{default:()=>ze,pinRepPaddingInBoint:()=>Re});var n=i(667294),a=i(702664),o=i(934494),r=i(319915),s=i(886076),l=i(248975),d=i(830157),c=i(958007),u=i(926275),p=i(63552),h=i(81226),_=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 f=i(898781),b=i(62409),x=i(643010),S=i(350118);const P=({pinId:e})=>{var t;const i=(0,f.ZP)(),a=(0,S.S6)()(e),o=(0,x.Yc)();if(!a)return null;const{link_domain:r,rich_metadata:s,rich_summary:l}=a||{},d=(0,b.kb)({hasLinkDomain:!!r,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||"",h=d.in_stock||!1,_=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:o,inStock:h});return(0,v.jsxs)(n.Fragment,{children:[_&&(0,v.jsx)(g.xv,{color:m,size:"100",children:_}),(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}),!h&&(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 E=i(947599),T=i(914142),I=i(941646),A=i(50286),w=i(865673),C=i(52022),R=i(350948),k=i(923297),O=i(867820),D=i(773285),N=i(130460),j=i(276775),L=i(780280),M=i(53987);const F=(0,n.lazy)((()=>i.e(94950).then(i.bind(i,494950)))),U=({title:e})=>{const t=(0,A.ZP)(),i=(0,C.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})})})},B=({allowPriceIndicator:e,contextMenu:t,credits:i,hidePinMetadata:a,hasAffiliatedProducts:o,isPromotedPin:s,isSponsoredPin:l,isSquarePin:d,marginTop:c,marginStart:u,marginEnd:h,onCreditsClick:m,pinDescription:b,pinId:x,pinnedToBoardId:B,pinReactionCounts:z,recipeCookTime:V,recipeMaxRating:H,recipeRating:Z,recipeReviewCount:G,shouldShowReactions:K,style:W="default",title:$,type:Y,duploConversationPin:q})=>{var X,J,Q,ee,te,ie,ne,ae,oe;const re=(0,f.ZP)(),{checkExperiment:se}=(0,D.F)(),le=(0,j.useLocation)(),de=(0,C.Z)(),{isAuthenticated:ce}=(0,L.B)(),ue=(0,A.ZP)(),pe=$||b||"oneTap"===Y,he=(0,S.S6)()(x),_e=(0,N.gC)()(B||(he?String(null===(X=he.board)||void 0===X?void 0:X.id):"")),me=null==he?void 0:he.pinner,ge=s&&(null==he||null===(J=he.promoter)||void 0===J?void 0:J.id)===(null==he||null===(Q=he.native_creator)||void 0===Q?void 0:Q.id),ve=null!=he&&he.sponsorship?(0,v.jsx)(g.xv,{inline:!0,size:"100",weight:"bold",children:null==i?void 0:i.subtitle}):void 0,ye="overlay"===W,fe=K&&z&&Object.keys(z).length>0&&(0,v.jsx)(g.xu,{height:18,display:ye?"flex":void 0,justifyContent:"center",children:(0,v.jsx)(r.Z,{name:"SafeSuspense_PinCardDetails_GridAggregation",children:(0,v.jsx)(E.Z,{children:(0,v.jsx)(F,{pinReactionCounts:z})})})}),be=a?0:c||1,xe=(0,v.jsx)(_.Z,{accessibilityLabel:(null==i?void 0:i.title)||"string"==typeof(null==i?void 0:i.subtitle)&&i.subtitle||re.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}),Se=(0,v.jsxs)(n.Fragment,{children:[(null==i?void 0:i.title)&&(0,v.jsx)(g.xv,{lineClamp:1,size:"100",weight:l&&!ge||o?"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)(w.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||o?void 0:1,size:"desktop"===ue?"200":"100",weight:"desktop"===ue?"bold":"normal",children:i.subtitle}):!ce&&_e&&"protected"!==_e.privacy?(0,v.jsx)(I.Z,{id:"related-pin-text-below-name",children:(0,v.jsx)(g.rU,{underline:"hover",href:null!==(te=_e.url)&&void 0!==te?te:"",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),e.stopPropagation(),(0,O.NC)("click_board_pin_attribution_profile"),de({action:"click",item:"related-pin-text-below-name"})},children:(0,v.jsx)(g.xv,{size:"200",children:_e.name})})}):null]});return(0,v.jsx)(n.Fragment,{children:(0,v.jsxs)(g.xu,{display:"flex",height:d?e?104:72:void 0,marginEnd:h||1,marginStart:u||1,position:"relative",children:[(0,v.jsxs)(g.xu,{flex:"grow",children:[(0,v.jsx)(g.xu,{display:"flex",marginTop:be,children:(0,v.jsx)(g.xu,{flex:"grow",children:(0,v.jsxs)(n.Fragment,{children:[(0,v.jsxs)(n.Fragment,{children:[(l||o)&&!ge&&(0,v.jsx)(g.xu,{marginBottom:1,children:(0,v.jsx)(g.xu,{flex:"grow",overflow:"hidden",children:(0,v.jsx)(T.Z,{hasAffiliatedProducts:o,isPromoted:s,sponsorName:ve,sponsorshipStatus:null==he||null===(ie=he.sponsorship)||void 0===ie?void 0:ie.status})})}),$&&(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)(U,{title:$})}),"desktop"===ue&&!ce&&b&&!(0,M.$Y)(le)&&!(0,M.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:b})})})]}),e&&(0,v.jsx)(P,{credits:i,pinId:x}),"recipe"===Y&&!!G&&(0,v.jsx)(n.Fragment,{children:(0,v.jsxs)(g.xu,{alignItems:"center",display:"flex",marginTop:1,children:[!!G&&(0,v.jsx)(y,{maxRating:H||"",rating:Z||"",text:""}),!!V&&(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,k.u)(V),i18n:re})})]})]})})]})})}),!ye&&fe,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?xe:(0,v.jsx)(g.iP,{onTap:()=>{de({action:"click",item:"related-pins-avatar-image"})},children:xe})}),(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?Se:(0,v.jsx)(g.iP,{onTap:()=>{de({action:"click",item:"related-pins-name"})},children:Se})})]})})}),!i&&"desktop"===ue&&!!me&&((0,M.L6)(le)||(0,M.cD)(le)||(0,M.$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)(_.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,O.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})}),_e&&"protected"!==_e.privacy?(0,v.jsx)(I.Z,{id:"related-pin-text-below-name",children:(0,v.jsx)(g.rU,{underline:"hover",href:null!==(ae=_e.url)&&void 0!==ae?ae:"",onClick:({event:e,dangerouslyDisableOnNavigation:t})=>{t(),e.stopPropagation(),(0,O.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!==(oe=_e.name)&&void 0!==oe?oe:""})})}):null]})]}),ye&&fe]}),(0,v.jsx)(g.xu,{position:ye?"absolute":void 0,right:!0,children:!q&&t})]})})};var z,V=i(857079),H=i(349700),Z=i(296011),G=i(167912);const K=void 0!==z?z:z=i(7745),W=(e,t)=>{const{checkExperiment:i}=(0,D.F)();return i("graphql_migration_sharelink_sgrowth_web").anyEnabled?((e,t)=>{const i=(0,G.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:"",o=(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)(_.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:o})})]})}})})(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:"",o=(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)(_.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:o})})]})}}))(e,t)},$=({inviteCode:e})=>{const t=(0,f.ZP)();return(0,v.jsx)(g.xu,{minHeight:82,children:(0,v.jsx)(r.Z,{name:"SafeSuspense_PinCardSharedHeader_LoadingSpinner",children:(0,v.jsx)(E.Z,{fallback:(0,v.jsx)(V.Z,{accessibilityLabel:t.bt("正在加载邀请组件", "Loading Invitation component", "Loading InviteFetch component", undefined, true)}),children:W(e,t)})})})};var Y=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:o}){const r=(0,f.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 h=u,_=c;p&&o&&(h=p.title,_=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:_}),(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:r.bt("调整你的主页", "Tune your home feed", "Text on the button to navigate to homefeed control", undefined, true)})})]})]}),!o&&p&&(0,v.jsx)(g.xu,{paddingY:1,children:(0,v.jsx)(g.zx,{fullWidth:!0,color:"white",text:r.bt("取消关注", "Unfollow", "Text on the button to unfollow a specific board / user", undefined, true),onClick:m})})]}),!o&&p&&(0,v.jsx)(g.xu,{paddingY:1,children:(0,v.jsx)(g.zx,{fullWidth:!0,color:"white",text:r.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:o,storyPinDataId:r,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:o,richMetadataTitle:a,storyPinDataId:r,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,C.S)(i);(0,O.My)("unuath.product_attribution.click",{item:e,page:n,device:t})};function oe({description:e,domain:t,gridTitle:i,pinId:a,priceSummary:o,placeSummaryName:r,richMetadataTitle:s,richSummaryDisplayName:l,storyPinDataId:d,storyPinDataMetadataPinTitle:c,title:u,isUnauthRelatedProductsExp1LineGroup:p}){const h=(0,A.ZP)(),_=(0,j.useLocation)(),m=o&&(o.price||o.standardPrice||(({maxPrice:e,minPrice:t,price:i})=>e&&t?`${t}-${e}`:i)(o)),y=(0,n.useMemo)((()=>p?1:m?3:2),[m,p]);if(!a)return null;const f=(0,te.fs)({pinTitle:u,gridTitle:i,richSummaryDisplayName:l,richMetadataTitle:s,storyPinDataId:d,storyPinDataMetadataPinTitle:c,placeSummaryName:r})||e,b=`/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:b,accessibilityLabel:f,deeplinkUri:b,children:[m&&(0,v.jsx)(g.iP,{onTap:()=>ae({deviceType:h,attribute:"price",location:_}),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:h,attribute:"title",location:_}),children:(0,v.jsx)(g.xv,{size:"100",weight:"bold",lineClamp:y,children:f})})}),t&&m&&(0,v.jsx)(g.xu,{marginTop:1,children:(0,v.jsx)(g.iP,{onTap:()=>ae({deviceType:h,attribute:"merchant",location:_}),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 re=i(248299),se=i(327476),le=i(394332),de=i(529195),ce=i(477802),ue=i(255607),pe=i(262794);const he=Object.freeze([pe.Country.BR,pe.Country.MX,pe.Country.ES,pe.Country.IT,pe.Country.CH,pe.Country.AT,pe.Country.NL]),_e=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([..._e,...he,...me]);var ge,ve=i(874317),ye=i(861411),fe=i(639952),be=i(772486),xe=i(378518),Se=i(813401),Pe=i(112690),Ee=i(680046),Te=i(305324),Ie=i(904779),Ae=i(780679);function we(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const Ce=void 0!==ge?ge:ge=i(741316),Re=({isDesktop:e})=>e?0:1,ke=e=>Boolean(e.isEligibleForWebCloseup),Oe=e=>Boolean(e.promoter&&!e.isDownstreamPromotion),De={width:1,height:1,url:""},Ne=e=>{const{attribution:t,embed:i,isEligibleForWebCloseup:n,richSummary:a,videos:o,storyPinDataId:r}=e,s=i||t&&t.embed;return n?"oneTap":o||s&&"video"===s.type?"video":s&&"gif"===s.type?"gif":a&&"product"===a.typeName?"product":a&&"recipe"===a.typeName?"recipe":r?"storyPin":"image"},je=e=>{if(("video"===Ne(e)||Oe)&&e.videos&&e.videos.videoList){const{duration:t}=e.videos.videoList[Object.keys(e.videos.videoList)[0]]||{};return(0,h.Z)(null!=t?t:0)}return""},Le=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)},Me=(0,n.lazy)((()=>i.e(26332).then(i.bind(i,926332))));class Fe extends n.Component{constructor(...e){super(...e),we(this,"state",{startImpressionTimer:!1,isShowingCustomContextMenu:!1}),we(this,"getPinImage",(()=>{const{pin:{imageSpec_136x136:e,imageSpec_170x:t,imageSpec_236x:i,imageSpec_474x:n,imageSpec_736x:a,imageSpec_orig:o},duploIsSquarePin:r}=this.props;return r?{height:136,url:null==i?void 0:i.url,width:136}:[i,t,e,a,n,o].find((e=>e&&e.url))||De})),we(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,o=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}:{},r=this.getPinImage();return{richTypes:n.shoppingFlags||[],imageURL:r.url||"",...o,...this.props.impressionData}})),we(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})})),we(this,"getAuxData",(()=>{const{auxData:e={},pwaType:t}=this.props;return{commerce_data:this.getAuxCommerceData(),pwa_type:t,...e}})),we(this,"getFeedbackType",(()=>{var e,t,i;const{feedback:n,viewParameter:a,pin:o}=this.props;return(0,Ee.hP)({boardFollowedByMe:!(null===(e=o.board)||void 0===e||!e.followedByMe),feedbackType:null==n?void 0:n.type,viewParameter:a,promotion:o&&o.promoter&&{isDownstreamPromotion:!!o.isDownstreamPromotion},pinnerFollowedByMe:!(null===(t=o.pinner)||void 0===t||!t.explicitlyFollowedByMe),recommendationReason:(null===(i=o.legacyOnly)||void 0===i?void 0:i.recommendation_reason)&&{hasBoard:!!o.legacyOnly.recommendation_reason.board,reason:o.legacyOnly.recommendation_reason.reason}})})),we(this,"getRecommendationDescription",(e=>{var t,i;const{pin:n,i18n:a}=this.props,o={i18n:a,makeNavigateLink:e};switch(this.getFeedbackType()){case"pfy":return(0,Ee.Ud)({...o,feedback:{type:"pfy"}});case"pfyBoard":return(0,Ee.Ud)({...o,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,Ee.Ud)({...o,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,Ee.Ud)({...o,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,Ee.Ud)({...o,feedback:{type:"promoted",promoter:!n.adMatchReason&&n.promoter&&n.promoter.fullName?{full_name:n.promoter.fullName,username:n.promoter.username}:null}});default:return null}})),we(this,"getPinHiddenFeedbackText",(e=>{const{pin:t,i18n:i}=this.props,n=t.promoter;if(Oe(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:o}=t;n&&o&&(a=(0,Ee.oK)({boardId:n.entityId,i18n:i,makeNavigateLink:e,display:o.explicitlyFollowedByMe?{type:"board",data:{name:n.name,url:n.url}}:{type:"pinner",data:{full_name:o.fullName,username:o.username}}}));break;case"topic":const{sourceInterest:r}=t;r&&(a=(0,Ee.Iv)({i18n:i,makeNavigateLink:e,sourceInterest:{id:r.entityId,name:r.name,url_name:r.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)}})),we(this,"logOneTap",(()=>{const{logContextEvent:e,trackingParams:t,viewType:i,viewParameter:n,auxData:a,pin:o}=this.props,{entityId:r}=o,s=(0,d.Z)(t,o.trackingParams),l={view_type:this.props.viewType,view_parameter:this.props.viewParameter,element:o.storyPinDataId?12372:35,component:this.props.componentType,object_id_str:r,aux_data:{commerce_data:this.getAuxCommerceData(),grid_index:this.props.slotIndex,image_signature:o.imageSignature,...this.props.auxData},clientTrackingParams:s};e({event_type:8948,view_type:i,view_parameter:n,object_id_str:r,clientTrackingParams:s,aux_data:{image_signature:o.imageSignature,closeup_navigation_type:"click",click_type:"clickthrough",cosmic_ray_count:"2",...a}}),(0,be.jC)(l),e({component:this.props.componentType,event_type:13,view_type:3,clientTrackingParams:s,aux_data:{closeup_navigation_type:"web_closeup",image_signature:o.imageSignature},object_id_str:r})})),we(this,"handleLoad",(()=>{this.setState({startImpressionTimer:!0})})),we(this,"handleError",(()=>{this.setState({startImpressionTimer:!1})})),we(this,"handleClick",(e=>{const{auxData:t,componentType:i,deviceType:n,logContextEvent:a,pin:o,slotIndex:r,trackingParams:s,viewParameter:l,viewType:c,duploFeedItemProps:u,isAuth:p,trackInteraction:h,unauthDesktopSignupModalPageContext:_}=this.props,{onPinClick:m}=null!=u?u:{},{entityId:g}=o,v=e=>(0,O.My)(`unauth_pin_rep.${e}.${String(l)}`);if(v("click"),a({view_type:c,view_parameter:l,element:o.storyPinDataId?12372:35,event_type:101,component:i,object_id_str:g,clientTrackingParams:(0,d.Z)(s,o.trackingParams),aux_data:{commerce_data:this.getAuxCommerceData(),grid_index:r,image_signature:o.imageSignature,...t}}),ke(o)||a({event_type:8948,view_type:c,view_parameter:l,object_id_str:g,clientTrackingParams:(0,d.Z)(s,o.trackingParams),aux_data:{image_signature:o.imageSignature,commerce_data:this.getAuxCommerceData(),closeup_navigation_type:"click",grid_index:r,cosmic_ray_count:"3",...t}}),!p)switch(h({action:"click",item:"pin"}),c){case 3:(0,O.NC)("click_pin_related_image");break;case 5:(0,O.NC)("click_board_pin_image");break;case 210:(0,O.NC)("click_topic_pin_image")}if(ke(o)&&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&&_){const{pinImageClickHandler:t}=_;t({event:e,pinId:g,linkTarget:"duploClientNav",seoUrl:o.seoUrl})}}})),we(this,"handleCreditsClick",(e=>{var t;const{history:i,logContextEvent:n,pin:a}=this.props,{entityId:o,sponsorship:r,storyPinDataId:s}=a,{creator:l,sponsor:d}=r||{},{entityId:c}=l||{},{entityId:u}=d||{},p=!!s;e.stopPropagation(),e.preventDefault();const h=null===(t=this.getCredits())||void 0===t?void 0:t.link;h&&i.push(h),n({view_type:3,element:27,event_type:102,object_id_str:o,component:p?230:void 0,aux_data:{pin_id:o,...c&&u?{creator_id:c,sponsor_id:u}:{}}})})),we(this,"handleUnfollowPin",(()=>this.props.markPinUnfollowed())),we(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)})),we(this,"isOverrideImageOnly",(()=>{const{pin:{richSummary:e},viewerIsNewUser:t,viewParameter:i}=this.props;return e&&43===i&&!t||3375===i})),we(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 o,r,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!==(o=l.dominantColor)&&void 0!==o?o:void 0,height:null!==(r=l.height)&&void 0!==r?r: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:o,pin:r}=this.props,{entityId:s}=r,l=r.storyPinData,d=r.pinner,c=r.promoter,u=null==l?void 0:l.hasProductPins,p=0===o,h=3173===o,_=3375===o,m=this.getIsClaimedContent(),g=r.nativeCreator,v=!!r.nativeCreator,y=Oe(r),{sponsorship:f}=r,{creator:b,sponsor:x}=f||{},S=y&&!!f&&(null==c?void 0:c.entityId)!==(null==g?void 0:g.entityId),P=!!f&&b;if(!(y||P||p||h||v||m))return;switch(S?"PROMOTED_SPONSORED":y?"PROMOTED":P?"SPONSORED":v?"AFFILIATED_PRODUCTS":u?"NATIVE_CONTENT":m?"CLAIMED_CONTENT":r.board&&"protected"===r.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(!f)throw new Error("sponsorship doesn't exist when expected");return{title:null==g?void 0:g.fullName,subtitle:null==x?void 0:x.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 o=(null===(e=r.board)||void 0===e?void 0:e.url)||`/pin/${s}/`;return _&&(o=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:o};case"CLAIMED_CONTENT":const l=null===(t=r.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=r.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=r.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,o,s,u,h,_,m,y,f,x,S,P,T,A,w,C,R,k,O,D,N,j,L,F,U,z,V,H,Z,G,K,W,q,X,J,ee,ae,se,de,pe,he,_e,me,ge,ye,fe,be;const{checkExperiment:xe,country:Se,disableAppUpsell:Pe,duploDisablePinCardPadding:Ee,disableRounding:Te,disableReaction:Ie,deviceType:Ae,experience:we,feedback:Ce,feedbackStatus:De,imageOnlyOption:Fe,i18n:Ue,isAuth:Be,isBot:ze,duploIsSquarePin:Ve,isImageOnlyExp:He,location:Ze,duploFeedItemProps:Ge,duploLazyLoadImage:Ke,duploOneTapSave:We,duploPinCardDetailsMargin:$e,duploPriorityFetchImage:Ye,pin:qe,slotIndex:Xe,viewParameter:Je,viewType:Qe,duploShouldAllowProductPriceIndicator:et,topLevelTrafficSource:tt,topLevelTrafficSourceDepth:it,trafficSource:nt,duploUnauthRelatedPinsAutoplayExpGroup:at,unauthRelatedProductsExpGroup:ot,trackingParams:rt,trackInteraction:st,vaseDisplayMode:lt,createUnauthContextMenuHandler:dt,duploConversationPin:ct}=this.props,{onPinLinkClick:ut,showSeoMetadata:pt}=null!=Ge?Ge:{},{category:ht,entityId:_t,imageSpec_136x136:mt,imageSpec_170x:gt,imageSpec_236x:vt,imageSpec_474x:yt,imageSpec_736x:ft,imageSpec_orig:bt,linkDomain:xt,imageSignature:St,promoter:Pt,richMetadata:Et,richSummary:Tt,title:It,sponsorship:At,storyPinData:wt}=qe,{description:Ct,title:Rt}=this.getPinText(),kt="desktop"===Ae,Ot=Ne(qe),Dt=0===Je,Nt=3475===Je,jt=43===Je,Lt=Oe(qe),Mt=!!At,Ft=null==wt?void 0:wt.hasProductPins,Ut=null==wt?void 0:wt.isDeleted,Bt=(0,d.Z)((Ze&&Ze.state||{}).trackingParams||rt,qe.trackingParams),zt=(e=>(0,M.f1)(e)||(0,M.OX)(e))(Ze),Vt="product"===Ne(qe)&&!Be&&(!ze||zt)&&(!xe("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,Gt=this.getPinImage(),Kt=Zt&&"gif"===Ot?this.convertToGif(qe):Gt,Wt=null===(t=qe.videos)||void 0===t||null===(i=t.videoList)||void 0===i?void 0:i.v720P,$t=(null==Wt?void 0:Wt.url)||(null===(n=qe.videos)||void 0===n||null===(a=n.videoList)||void 0===a||null===(o=a.vHLSV4)||void 0===o?void 0:o.url),Yt=(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=Be?Ct:(0,c.Z)({storyPinDataId:qe.storyPinDataId,pinDescription:qe.description,richMetadataDescription:null!==(h=null===(_=qe.richMetadata)||void 0===_?void 0:_.description)&&void 0!==h?h:"",richSummaryDisplayName:null!==(m=null===(y=qe.richSummary)||void 0===y?void 0:y.displayName)&&void 0!==m?m:"",placeSummaryName:null!==(f=null===(x=qe.legacyOnly)||void 0===x?void 0:x.place_summary)&&void 0!==f?f:"",closeupDescription:null!==(S=qe.closeupDescription)&&void 0!==S?S:"",closeupUnifiedDescription:null!==(P=qe.closeupUnifiedDescription)&&void 0!==P?P:""}),Xt=we&&we.display_data.hideReactions||!1,Jt=we&&we.display_data.hideDesc||!1,Qt=!Ie&&(0,ue.J6)({boardIsCollaborative:null===(T=qe.board)||void 0===T?void 0:T.isCollaborative,isDownstreamPromotion:qe.isDownstreamPromotion,isPromoted:qe.isPromoted,storyPinDataId:qe.storyPinDataId,videosId:null===(A=qe.videos)||void 0===A?void 0:A.entityId})&&!Nt&&!Xt,ei=!Be;let ti;ti=ke(qe)?qe.trackedLink||qe.link:ei?(0,te.bN)({pinId:_t,seoUrl:qe.seoUrl}):(0,te.BY)(_t);const ii=!Ct||Ht&&!Dt?void 0:Ct.trim(),ni=this.getSharedHeaderInviteCode(),ai={accessibilityLabel:Yt||Rt||Ct||"",country:Se,deeplinkUri:ti,external:ke(qe),externalQueryParams:{pin:_t,client_tracking_params:rt},isAppUpsellDisabled:Pe,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:rt,trafficSource:nt,topLevelTrafficSource:tt,topLevelTrafficSourceDepth:it}},upsellType:"direct",viewParameter:Je,viewType:Qe,clientTrackingParams:Bt},oi=Re({isDesktop:kt}),ri=qe.nativeCreator||qe.pinner,si="search"===nt&&"storyPin"===Ot&&xe("mweb_search_ideapin_module").anyEnabled,li=(0,b.kb)({hasLinkDomain:!!xt,richMetadata:Et&&{recipe:Et.recipe&&{fromAggregatedData:Et.recipe.fromAggregatedData},products:Et.products},richSummary:Tt&&{products:Tt.products}});return(0,v.jsxs)(g.xu,{"data-test-id":"pin","data-test-pin-id":_t,marginBottom:kt?0:2,children:[(0,v.jsxs)(g.xu,{"data-test-id":Yt||Rt||Ct?"pin-with-alt-text":"pin-missing-alt-text",padding:Ee?0:oi,marginBottom:0,onContextMenu:ri?dt({pinId:_t,deviceOptions:{isDesktop:!0}}):void 0,dangerouslySetInlineStyle:{__style:this.state.isShowingCustomContextMenu?ve.Yw:{}},children:[(0,v.jsxs)(ne.MZ,{...ai,children:[!!ni&&(0,v.jsx)($,{inviteCode:ni}),Ut?(0,v.jsx)(re.Z,{isPinRep:!0}):(0,v.jsx)(Y.Z,{clientTrackingParams:Bt,color:null!==(w=qe.dominantColor)&&void 0!==w?w:"",description:ii,domainLinkData:qe.domain&&qe.link?{clickLoggingOptions:{auxData:{objectId:_t,grid_index:Xe,sanitized_url:qe.link}},domain:qe.domain,link:qe.link,onClick:ut}:void 0,disableRounding:Te,hideBottomCardText:null!=Zt?Zt:void 0,image:Kt&&{dominant_color:null!==(C=Kt.dominantColor)&&void 0!==C?C:void 0,height:null!==(R=Kt.height)&&void 0!==R?R:void 0,url:null!==(k=Kt.url)&&void 0!==k?k:void 0,width:null!==(O=Kt.width)&&void 0!==O?O:void 0},imageAltText:Yt,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:Lt,isSquarePin:Ve,lazyLoadImage:Ke,onError:this.handleError,oneTapSave:We,onLoad:this.handleLoad,priorityFetchImage:Ye,disableDefaultContextMenu:()=>this.setState({isShowingCustomContextMenu:!0}),createUnauthContextMenuHandler:dt,pinId:_t,pinnedToBoardId:null!==(D=null===(N=qe.pinnedToBoard)||void 0===N?void 0:N.entityId)&&void 0!==D?D:"",pinVideo:(Zt||Lt)&&Wt||void 0,videoUrl:null!=$t?$t:void 0,productPrice:et&&!Vt?Le(qe):null,slotIndex:Xe,storyDataExists:!!wt,title:!Ht||Dt?Rt:void 0,type:Ot,videoDuration:je(qe),unauthRelatedPinsAutoplayExpGroup:at,viewType:Qe,viewParameter:Je})]}),!("image-only"===Fe)&&(Be||"desktop"===Ae)&&(0,v.jsxs)(g.xu,{children:[!Nt&&!jt&&"desktopParity"===lt&&(0,v.jsx)(le.Z,{pinId:_t,mode:"inlineWithScrollArrows",graphqlRef:null}),!Vt&&(0,v.jsx)(ne.MZ,{...ai,children:(0,v.jsx)(B,{duploConversationPin:ct,allowPriceIndicator:!et&&!Vt&&["shop_feed"].includes(nt),marginTop:$e,hidePinMetadata:Jt,contextMenu:Be&&!Ut?(0,v.jsx)(g.xu,{marginStart:1,marginTop:$e,children:(0,v.jsx)(g.xu,{height:26,width:24,children:(0,v.jsx)(r.Z,{name:"SafeSuspense_Pin_ContextualMenu",children:(0,v.jsx)(E.Z,{children:(0,v.jsx)(Me,{adMatchReason:qe.adMatchReason,bestPinImgSrc:(0,l.Z)({embedSrc:null===(j=qe.embed)||void 0===j?void 0:j.src,embedType:null===(L=qe.embed)||void 0===L?void 0:L.type,images:{...[["136x136",mt],["170x",gt],["236x",vt],["474x",yt],["736x",ft],["orig",bt]].reduce(((e,[t,i])=>{var n,a,o,r;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!==(o=i.url)&&void 0!==o?o:void 0,width:null!==(r=i.width)&&void 0!==r?r:void 0},e):e}),{})}}),feedback:Ce,feedbackType:this.getFeedbackType(),getRecommendationDescription:this.getRecommendationDescription,graphqlRef:null,imageSignature:null!=St?St:void 0,pinCategory:ht,pinDescription:qt,pinId:_t,pinTitle:It,sourceType:Lt?"ad":Dt?"following":void 0,viewParameter:Je,viewType:Qe,trackingParams:rt})})})})}):null,credits:this.getCredits(),hasAffiliatedProducts:null!=Ft?Ft:void 0,isPromotedPin:Lt,isSponsoredPin:Mt,isSquarePin:Ve,marginStart:$e,marginEnd:$e,onCreditsClick:this.handleCreditsClick,pinDescription:qt,pinId:_t,pinnedToBoardId:null!==(F=null===(U=qe.pinnedToBoard)||void 0===U?void 0:U.entityId)&&void 0!==F?F:"",pinReactionCounts:null!==(z=null===(V=qe.reactionCountsData)||void 0===V?void 0:V.reduce(((e,{reactionCount:t,reactionType:i})=>({...e,[String(null!=i?i:0)]:null!=t?t:0})),{}))&&void 0!==z?z:void 0,promoterName:null!==(H=null==Pt?void 0:Pt.fullName)&&void 0!==H?H:void 0,recipeCookTime:Ht?void 0:qe.richSummary&&qe.richSummary.displayCookTime,recipeMaxRating:Ht||null==Tt||null===(Z=Tt.aggregateRating)||void 0===Z?void 0:Z.bestRating,recipeRating:Ht||null==Tt||null===(G=Tt.aggregateRating)||void 0===G?void 0:G.ratingValue,recipeReviewCount:Ht||null==Tt||null===(K=Tt.aggregateRating)||void 0===K?void 0:K.reviewCount,shouldShowReactions:Qt,style:si?"overlay":"default",title:si?void 0:Rt,type:Ot})})]}),Vt&&(0,v.jsx)(oe,{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:_t,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==ot?void 0:ot.includes("square"))||(null==ot?void 0:ot.includes("1_line"))})]}),Zt&&Be&&(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:Ue.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:_t,showing:!0}):(0,v.jsx)(Q,{color:null!==(pe=qe.dominantColor)&&void 0!==pe?pe:"",getFeedbackText:this.getPinHiddenFeedbackText,onUnfollow:this.handleUnfollowPin,pinId:_t,showing:!!De,unfollowed:"unfollowed"===De,viewParameter:Je,viewType:Qe}),pt&&"inlineHidden"===lt&&!Vt&&(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!==(he=qe.gridTitle)&&void 0!==he?he:void 0,pinId:_t,placeSummaryName:null===(_e=qe.legacyOnly)||void 0===_e?void 0:_e.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===(fe=ye.metadata)||void 0===fe?void 0:fe.pinTitle,title:qe.title})})}),(null===(be=qe.legacyOnly)||void 0===be?void 0:be.debug)&&(0,v.jsx)(ce.W,{data:qe.legacyOnly.debug})]})}render(){const{componentType:e,pin:{entityId:t},trackingParams:i,viewParameter:n,viewType:a,slotIndex:o,objectIdStr:r,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:r,slotIndex:o,trackingParams:i,viewData:s,viewParameter:n,viewType:a,children:({impressionTrackerRef:e})=>(0,v.jsx)(g.xu,{ref:e,children:this.renderPinCard()})})}}function Ue(e){const t=(0,f.ZP)(),i=(0,Ae.g)(),{checkExperiment:n}=(0,D.F)(),o=(0,j.useHistory)(),r=(0,j.useLocation)(),s=(0,A.ZP)(),l=(0,Te.M)(),d=(0,Se.yz)(),c=(0,xe._)({id:1000107}),p=(0,Pe.Z)(),h=(0,C.Z)(),{country:_,isAuthenticated:m,isBot:g}=(0,L.B)(),y=(0,se.Z)(),b=(0,a.useDispatch)(),{hasPoorConnection:x,viewedSharedPins:S}=(0,a.useSelector)((({session:e})=>e)),P=(0,a.useSelector)((({experiences:e})=>{const t=e[1000107];return!!t&&500678===t.experience_id})),E=(0,a.useSelector)((({session:e,users:t})=>(0,u.Z)(t[e.userId].created_at))),{getPinFeedbackStatus:T,setPinFeedbackStatus:I}=(0,Ie.K)(),w=e.pin.entityId;return(0,v.jsx)(Fe,{...e,adBlockTextTransform:y,checkExperiment:n,country:_,createUnauthContextMenuHandler:l,deviceType:s,experience:c,feedbackStatus:T({pinId:w}),hasPoorConnection:x,history:o,i18n:t,isAuth:m,isBot:g,isImageOnlyExp:P,location:r,logContextEvent:p,markPinUnfollowed:()=>I({pinId:w,pinFeedbackStatus:"unfollowed"}),pwaType:d,setSharingOnBoardPage:(e,t,i)=>b((0,fe.Mj)(e,t,i)),trackInteraction:h,unauthDesktopSignupModalPageContext:i,vaseDisplayMode:"desktop"===s?"desktopParity":"inlineHidden",viewedSharedPins:S,viewerIsNewUser:E})}const Be=(0,o.Z)({useGraphQLAdapter:e=>(0,G.useFragment)(Ce,e),useLegacyAdapter:e=>{var t,i,n,a,o,r,s,l,d,c,u,p,h;const _=(0,S.S6)()(e);if(!_)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=_.reaction_counts;return{adMatchReason:_.ad_match_reason,altText:_.alt_text,attribution:_.attribution&&{embed:_.attribution.embed&&{type:_.attribution.embed.type}},board:_.board&&{entityId:_.board.id,followedByMe:_.board.followed_by_me,isCollaborative:_.board.is_collaborative,name:_.board.name,privacy:_.board.privacy,url:_.board.url},category:_.category,closeupDescription:_.closeup_description,closeupUnifiedDescription:_.closeup_unified_description,descriptionHtml:_.description_html,description:_.description,domain:_.domain,dominantColor:_.dominant_color,embed:_.embed&&{height:_.embed.height,src:_.embed.src,type:_.embed.type,width:_.embed.width},entityId:_.id,gridTitle:_.grid_title,imageCrop:_.image_crop&&{minY:_.image_crop.min_y,maxY:_.image_crop.max_y},imageSignature:_.image_signature,imageSpec_136x136:g(null===(t=_.images)||void 0===t?void 0:t["136x136"]),imageSpec_170x:g(null===(i=_.images)||void 0===i?void 0:i["170x"]),imageSpec_236x:g(null===(n=_.images)||void 0===n?void 0:n["236x"]),imageSpec_474x:g(null===(a=_.images)||void 0===a?void 0:a["474x"]),imageSpec_736x:g(null===(o=_.images)||void 0===o?void 0:o["736x"]),imageSpec_orig:g(null===(r=_.images)||void 0===r?void 0:r.orig),isDownstreamPromotion:_.is_downstream_promotion,isEligibleForPdp:_.is_eligible_for_pdp,isEligibleForWebCloseup:_.is_eligible_for_web_closeup,isOosProduct:_.is_oos_product,isPromoted:_.is_promoted,isStaleProduct:_.is_stale_product,linkDomain:_.link_domain&&{officialUser:_.link_domain.official_user&&{fullName:_.link_domain.official_user.full_name,entityId:null!==(s=_.link_domain.official_user.id)&&void 0!==s?s:"",imageLargeUrl:_.link_domain.official_user.image_large_url,imageMediumUrl:_.link_domain.official_user.image_medium_url,imageSmallUrl:_.link_domain.official_user.image_small_url,username:_.link_domain.official_user.username,isPrimaryWebsiteVerified:_.link_domain.official_user.is_primary_website_verified}},link:_.link,nativeCreator:m(_.native_creator),pinnedToBoard:_.pinned_to_board&&{entityId:null!==(l=_.pinned_to_board.id)&&void 0!==l?l:""},pinJoin:_.pin_join&&{visualAnnotation:_.pin_join.visual_annotation},pinner:_.pinner&&{entityId:_.pinner.id,explicitlyFollowedByMe:_.pinner.explicitly_followed_by_me,fullName:_.pinner.full_name,imageLargeUrl:_.pinner.image_large_url,imageMediumUrl:_.pinner.image_medium_url,imageSmallUrl:_.pinner.image_small_url,username:_.pinner.username},promoter:m(_.promoter),reactionCountsData:v&&Object.keys(v).map((e=>({reactionType:Number(e),reactionCount:v[e]}))),richMetadata:_.rich_metadata&&{description:_.rich_metadata.description,title:_.rich_metadata.title,recipe:_.rich_metadata.recipe&&{fromAggregatedData:_.rich_metadata.recipe.from_aggregated_data},products:_.rich_metadata.products&&_.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:_.rich_summary&&{aggregateRating:_.rich_summary.aggregate_rating&&{bestRating:_.rich_summary.aggregate_rating.best_rating,ratingValue:_.rich_summary.aggregate_rating.rating_value,reviewCount:_.rich_summary.aggregate_rating.review_count},displayName:_.rich_summary.display_name,displayCookTime:_.rich_summary.display_cook_time,siteName:_.rich_summary.site_name,typeName:_.rich_summary.type_name,products:_.rich_summary.products&&_.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:_.seo_url,shoppingFlags:_.shopping_flags,sourceInterest:_.source_interest&&{entityId:null!==(d=_.source_interest.id)&&void 0!==d?d:"",name:_.source_interest.name,urlName:_.source_interest.url_name},sponsorship:_.sponsorship&&{creator:_.sponsorship.creator&&{entityId:null!==(c=_.sponsorship.creator.id)&&void 0!==c?c:"",fullName:_.sponsorship.creator.full_name,imageLargeUrl:_.sponsorship.creator.image_large_url,imageMediumUrl:_.sponsorship.creator.image_medium_url,imageSmallUrl:_.sponsorship.creator.image_small_url,username:_.sponsorship.creator.username},sponsor:_.sponsorship.sponsor&&{entityId:null!==(u=_.sponsorship.sponsor.id)&&void 0!==u?u:"",fullName:_.sponsorship.sponsor.full_name,imageLargeUrl:_.sponsorship.sponsor.image_large_url,imageMediumUrl:_.sponsorship.sponsor.image_medium_url,imageSmallUrl:_.sponsorship.sponsor.image_small_url,username:_.sponsorship.sponsor.username}},storyPinDataId:_.story_pin_data_id,storyPinData:_.story_pin_data&&{hasProductPins:_.story_pin_data.has_product_pins,isDeleted:_.story_pin_data.is_deleted,metadata:_.story_pin_data.metadata&&{pinTitle:_.story_pin_data.metadata.pin_title}},title:_.title,trackedLink:_.tracked_link,trackingParams:_.tracking_params,videos:_.videos&&{entityId:null!==(p=_.videos.id)&&void 0!==p?p:"",videoList:_.videos.video_list&&{vHLSV4:_.videos.video_list.V_HLSV4&&{duration:_.videos.video_list.V_HLSV4.duration,height:_.videos.video_list.V_HLSV4.height,width:_.videos.video_list.V_HLSV4.width,url:_.videos.video_list.V_HLSV4.url},v720P:_.videos.video_list.V_720P&&{duration:_.videos.video_list.V_720P.duration,height:_.videos.video_list.V_720P.height,width:_.videos.video_list.V_720P.width,url:_.videos.video_list.V_720P.url}}},legacyOnly:{debug:_.debug,isSocialSeasonalBoard:null===(h=_.board)||void 0===h?void 0:h.isSocialSeasonalBoard,place_summary:_.place_summary,recommendation_reason:_.recommendation_reason}}}});function ze(e){const{pinId:t,duploQueryRef:i,...n}=e;return(0,v.jsx)(Be,{input:i?{enabled:!0,data:i}:{enabled:!1,data:t},children:({data:e})=>!!e&&(0,v.jsx)(Ue,{...n,pin:e})})}},167525:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(898781),a=i(643010),o=i(883119),r=i(785893);function s({text:e,icon:t,largeIdentifier:i,largeMargin:s}){const l=(0,n.ZP)();return(0,r.jsxs)(o.xu,{zIndex:new o.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,r.jsx)(o.xu,{marginEnd:i?2:1,children:(0,r.jsx)(o.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,r.jsx)(o.xv,{inline:!0,size:i?"200":"100",weight:"bold",children:e})]})}},74399:(e,t,i)=>{i.d(t,{Z:()=>_});var n=i(994718),a=i(765980),o=i(430323),r=i(829407),s=i(898781),l=i(112690),d=i(19121),c=i(883119),u=i(785893);const p=({isOwnProfile:e})=>{const t=(0,s.ZP)();return(0,u.jsx)(c.xu,{paddingY:4,children:e?(0,u.jsx)(n.Z,{message:t.bt("你尚未收藏任何点子寻找你喜爱的点子...", "You haven't saved any ideas yet. Find ideas you love...", "you have no pins", undefined, true),icon:"arrow-circle-forward",iconLabel:t.bt("前往主页", "Go to home feed", "profile.pins.redirectButtonLabel", undefined, true),url:"/"}):(0,u.jsx)(n.Z,{message:t.bt("此用户尚未收藏任何点子。", "This Pinner hasn't saved any ideas yet.", "user has no boards and pins", undefined, true)})})},h=({username:e,isAuthenticated:t,isOwnProfile:i})=>({add_vase:!t,field_set_key:"mobile_grid_item",is_own_profile_pins:i,username:e});function _({isOwnProfile:e,isProfilePinsStale:t,username:i,isRelatedPins:n=!1}){const s=(0,l.Z)(),{isAuth:c}=(0,d.Z)();(0,r.Z)((()=>{n&&s({event_type:13,view_type:4,view_parameter:e?3106:3107,component:14081})}));const _=()=>(0,u.jsx)(a.ZP,{feedKey:`profile-pins:${i}`,trafficSource:"user_pins",resourceConfig:{name:"UserPinsResource",options:h({isAuthenticated:c,isOwnProfile:e,username:i}),noCache:!e||t},feedItemProps:{viewParameter:e?3106:3107,viewType:4},emptyState:(0,u.jsx)(p,{isOwnProfile:e})});return n?(0,u.jsx)(o.Z,{component:14081,viewParameter:e?3106:3107,view:4,children:_()}):_()}},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 o({boardIsCollaborative:e,isDownstreamPromotion:t,isPromoted:i,storyPinDataId:n,videosId:a}){return!(i||t||!a&&!n||null!=e&&e)}i.d(t,{At:()=>n,J6:()=>o,Ud:()=>a})},130460:(e,t,i)=>{i.d(t,{bn:()=>s,fJ:()=>d,gC:()=>l});var n=i(702664),a=i(425288),o=i(785893);const{Provider:r,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,o.jsx)(r,{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),o=i(785893);const{Provider:r,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,o.jsx)(r,{value:t,children:e})}},349741:(e,t,i)=>{i.d(t,{Z:()=>x});var n=i(667294),a=i(327212),o=i(830157),r=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 o=(0,s.ZP)();return(0,c.jsx)(r.ZP,{primaryAction:{accessibilityLabel:o.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:o.bt("更改", "Change", "RepinRequest.ChangeButton", undefined, true),size:"lg",onClick:e},duration:5e3,onHide:e,text:(0,c.jsx)(d.xv,{children:(0,l.nk)(o.bt("已收藏至 {{ profile }}", "Saved to {{ profile }}", "RepinRequest.ProfileSaveToastText", undefined, true),{profile:(0,c.jsx)(d.xv,{inline:!0,weight:"bold",children:o.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:o.bt("个人资料", "Profile", "RepinRequest.ProfileIcon", undefined, true),icon:"history",size:22})})})}var p=i(214494),h=i(483025),_=i(414327),m=i(332611),g=i(675752),v=i(56632),y=i(12918),f=i(782677);const b=({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 x{constructor({boardId:e,dispatch:t,history:i,isOneTapSave:n=!1,isQuickSave:a=!1,onSuccess:r,onUndo:s,originalPinId:l,pin:d,resourceName:c,section:u,showNewUserSavetoProfileAnimation:p=!1,showRepinToasts:_,trackingParams:m,userId:g,viewType:v=3,historyPush:y}){var b,x,S,P,E;E=e=>(0,f.Fv)(e.resource_response.data,h.Z[this.resourceName]),(P="_getNormalizedResponse")in(S=this)?Object.defineProperty(S,P,{value:E,enumerable:!0,configurable:!0,writable:!0}):S[P]=E,this.boardId=e,this.trackingParams=m,this.clientTrackingParams=(0,o.Z)(m.clientTrackingParams||"",d.tracking_params),this.dispatch=t,this.history=i,this.onSuccess=r,this.onUndo=s,this.originalPinId=l,this.pin=d,this.pinnedToBoardId=m.pinnedToBoardId||(null!==(b=null===(x=d.pinned_to_board)||void 0===x?void 0:x.id)&&void 0!==b?b:""),this.resourceName=c,this.showNewUserSavetoProfileAnimation=p,this.showRepinToasts=_,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:o,originalPinId:r,showNewUserSavetoProfileAnimation:l}=this,p=({hideToast:e})=>{var t;if(o&&!l)return(0,c.jsx)(u,{hideToast:e,newPin:i,originalPinId:r});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 o;a&&!l?a(this.pin.id,i.id,n.id,null===(o=this.section)||void 0===o?void 0:o.id,e):l&&this.historyPush(`/pin/${i.id}/repin/?isEditingPin=true&pinBoardId=${n.id}&&isFromToast=true&&originalPinId=${null!=r?r:""}`)},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)(b,{board:n,section:this.section}),thumbnail:p})},h=this._getNormalizedResponse(t);if(this.dispatch((0,_.XM)(this.resourceName,this.resourceOptions,t,h)),this.originalPinId&&this.originalPinId!==this.resourceOptions.pin_id){const e={...this.resourceOptions,pin_id:this.originalPinId};this.dispatch((0,_.XM)(this.resourceName,e,t,h))}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),o=i(373420),r=i(430322),s=i(121151),l=i(898781),d=i(643010),c=i(883119),u=i(50286),p=i(785893);function h({showFullScreenInfo:e,isOpen:t,interstitialUpsellDismissed:i,children:n}){const a=(0,l.ZP)(),o=(0,u.HG)(),h=(0,u.Wb)();return h||o?(0,p.jsx)(s.ZP,{accessibilityModalLabel:"",mobileHideCloseIcon:!0,mobileIsFullscreen:!0,isOpen:e&&!h,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:o?"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)(r.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 _,m=i(784590),g=i(690035),v=i(52022),y=i(385801),f=i(623568),b=i(867820),x=i(350118),S=i(780280),P=i(992750),E=i(167912);const T=void 0!==_?_:_=i(276667);function I({iconColor:e,size:t,isMainPin:i,isAuth:r,pinCreditPrefix:s,onClickTitleOrDomain:d,richMetadataDescription:_,richMetadataTitle:m,richSummaryDisplayName:x,placeSummaryName:E,closeupUnifiedDescription:T,gridTitle:I,storyPinDataId:A,storyPinDataMetadataPinTitle:w,pinDescription:C,pinDomain:R,pinTitle:k,boardId:O,boardUrl:D,boardName:N,boardPrivacy:j,pinnerFullName:L,pinnerImageSmallUrl:M,pinnerImageLargeUrl:F,pinId:U,graphqlRef:B}){const z=(0,l.ZP)(),V=(0,v.Z)(),{isBot:H}=(0,S.B)(),{unauthInterstitialDismissed:Z}=(0,a.useSelector)((({session:e})=>e)),[G,K]=(0,n.useState)(!1),W=(0,u.HG)(),$=(0,u.Wb)(),Y=(0,g.Z)(),q=(0,f._S)(R)?R:"",X=!$&&!r,{description:J}=(0,P.eK)({richMetadataDescription:_,richSummaryDisplayName:x,placeSummaryName:E,closeupUnifiedDescription:T}),Q=(0,P.fs)({pinTitle:k,gridTitle:I,richSummaryDisplayName:x,richMetadataTitle:m,storyPinDataId:A,storyPinDataMetadataPinTitle:w,placeSummaryName:E})||C,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:z.bt("取消", "Cancel", "close modal icon", undefined, true),icon:"cancel",size:"sm",onClick:()=>{(0,b.My)("mweb.unauth.see_more.dismissed"),V({action:"click",item:"close-seo-vase-see-more-button"}),K(!1),i&&(0,b.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:z.bt("更多信息", "More information", "more information label", undefined, true)})})}),(0,p.jsx)(y.Z,{description:J,title:Q,pinCreditPrefix:s,onClickTitleOrDomain:d,pinDomain:q,boardId:O,boardUrl:D,boardName:N,boardPrivacy:j,pinnerFullName:L,pinnerImageSmallUrl:M,pinnerImageLargeUrl:F,pinId:U,graphqlRef:B})]});return(0,p.jsxs)(c.xu,{right:!0,"data-test-id":"SeoVaseSeeMoreButton",dangerouslySetInlineStyle:{__style:{float:"right"}},children:[(0,p.jsx)(c.hU,{accessibilityLabel:z.bt("查看更多", "See more", "more information icon", undefined, true),icon:"ellipsis",iconColor:null!=e?e:"gray",size:t||"md",onClick:({event:e})=>{e.stopPropagation(),(0,b.My)("mweb.unauth.see_more.shown."+(i?"main_pin":"related_pins")),V({action:"click",item:"seo-vase-see-more-button"}),$||r?(K(!0),i&&(0,b.My)("mweb.unauth.see_more.main_pin.shown")):Y({pinId:U||"",location:i?"main-pin-more-information":"non-main-pin-more-information",seoPlacementConfig:{description:J,titleText:Q,pinCreditPrefix:s,onClickTitleOrDomain:d,cleanPinDomain:q,boardId:O,boardUrl:D,boardName:N,boardPrivacy:j,pinnerFullName:L,pinnerImageSmallUrl:M,pinnerImageLargeUrl:F,pinId:U,graphqlRef:B}})}}),H&&ee?(0,p.jsx)(c.xu,{display:G?"flex":"none",children:te}):(0,p.jsx)(h,{showFullScreenInfo:G,isOpen:G&&!$,interstitialUpsellDismissed:!!Z,children:te}),$&&G&&(0,p.jsx)(o.default,{accessibilityModalLabel:"test",onDismiss:()=>{},children:te})]})}function A(e){var t,i,n,a,o,r,s,l,d,c,u,h,_,m,g,v;const y=(0,E.useFragment)(T,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!==(o=null==y||null===(r=y.richSummary)||void 0===r?void 0:r.displayName)&&void 0!==o?o:"",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===(h=y.board)||void 0===h?void 0:h.name)||void 0,boardPrivacy:(null==y||null===(_=y.board)||void 0===_?void 0:_.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 w(e){var t,i,n,a,o,r,s,l,d,c,u;const h=(0,x.S6)()(null!==(t=e.pinId)&&void 0!==t?t:""),_=null==h?void 0:h.board,m=null==h?void 0:h.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==h||null===(n=h.rich_metadata)||void 0===n?void 0:n.description)&&void 0!==i?i:"",richMetadataTitle:null!==(a=null==h||null===(o=h.rich_metadata)||void 0===o?void 0:o.title)&&void 0!==a?a:"",richSummaryDisplayName:null!==(r=null==h||null===(s=h.rich_summary)||void 0===s?void 0:s.display_name)&&void 0!==r?r:"",placeSummaryName:null!==(l=null==h?void 0:h.place_summary)&&void 0!==l?l:"",closeupUnifiedDescription:null!==(d=null==h?void 0:h.closeup_unified_description)&&void 0!==d?d:"",gridTitle:null==h?void 0:h.grid_title,storyPinDataId:null==h?void 0:h.story_pin_data_id,storyPinDataMetadataPinTitle:null==h||null===(c=h.story_pin_data)||void 0===c||null===(u=c.metadata)||void 0===u?void 0:u.pin_title,pinDescription:null==h?void 0:h.description,pinDomain:null==h?void 0:h.domain,pinTitle:null==h?void 0:h.title,boardId:null==_?void 0:_.id,boardUrl:null==_?void 0:_.url,boardName:null==_?void 0:_.name,boardPrivacy:null==_?void 0:_.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==h?void 0:h.id})}function C(e){var t,i,n,a,o,r,s,l,d,c,u;const h=(0,x.S6)()(null!==(t=e.pinId)&&void 0!==t?t:""),_=null==h?void 0:h.board,g=null==h?void 0:h.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==h||null===(n=h.rich_metadata)||void 0===n?void 0:n.description)&&void 0!==i?i:"",richMetadataTitle:null!==(a=null==h||null===(o=h.rich_metadata)||void 0===o?void 0:o.title)&&void 0!==a?a:"",richSummaryDisplayName:null!==(r=null==h||null===(s=h.rich_summary)||void 0===s?void 0:s.display_name)&&void 0!==r?r:"",placeSummaryName:null!==(l=null==h?void 0:h.place_summary)&&void 0!==l?l:"",closeupUnifiedDescription:null!==(d=null==h?void 0:h.closeup_unified_description)&&void 0!==d?d:"",gridTitle:null==h?void 0:h.grid_title,storyPinDataId:null==h?void 0:h.story_pin_data_id,storyPinDataMetadataPinTitle:null==h||null===(c=h.story_pin_data)||void 0===c||null===(u=c.metadata)||void 0===u?void 0:u.pin_title,pinDescription:null==h?void 0:h.description,pinDomain:null==h?void 0:h.domain,pinTitle:null==h?void 0:h.title,boardId:null==_?void 0:_.id,boardUrl:null==_?void 0:_.url,boardName:null==_?void 0:_.name,boardPrivacy:null==_?void 0:_.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==h?void 0:h.id})}function R(e){return e.graphqlRef?(0,p.jsx)(A,{...e}):e.lazyLoadAnnotations?(0,p.jsx)(C,{...e}):(0,p.jsx)(w,{...e})}},108234:(e,t,i)=>{i.d(t,{Z:()=>g,s:()=>m});var n=i(667294),a=i(121151),o=i(608575),r=i(898781),s=i(349700),l=i(883119),d=i(785893);const c=()=>{var e;const t=(0,r.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,r.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,r.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:o.parse(t).hostname})]})]})})};var h=i(425288);const{Provider:_,useMaybeHook:m}=(0,h.Z)("SpammyClickthrough");function g({children:e}){const[t,i]=(0,n.useState)(null),a=(0,n.useCallback)((()=>{i(null)}),[i]),o=(0,n.useCallback)((e=>{i(e)}),[i]),r=(0,n.useMemo)((()=>({dismissWarning:a,showWarning:o})),[a,o]);return(0,d.jsxs)(_,{value:r,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),o=i(773285),r=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,o.F)().checkExperiment("mweb_web_android_ios_clbc_eu_ad_string").anyEnabled;let h;t?h=(0,r.nk)(u.bt("推广者：{{ name }}", "Promoted by {{ name }}", "sponsorship.sponsorshipText.promotedByBrand", undefined, true),{name:i}):d||0===d?i&&!l.includes(d)?h=(0,r.nk)(u.bt("付费合作伙伴为 {{ name }}", "Paid partnership with {{ name }}", "closeup.creator.sponsoredPinTitle", undefined, true),{name:i}):2!==d&&(h=u.bt("付费合作伙伴", "Paid partnership", "closeup.creator.sponsoredPinTitle", undefined, true)):e&&(h=u.bt("包含推广产品", "Includes sponsored products", "sponsorship.sponsorshipText.affiliatedProducts", undefined, true));const _=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),o=i(785893);const{Provider:r,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,o.jsx)(r,{value:s,children:e})}},394332:(e,t,i)=>{i.d(t,{Z:()=>x});var n,a=i(667294),o=i(391254),r=i(941646),s=i(862193),l=i(898781),d=i(52022),c=i(992750),u=i(350118),p=i(883119),h=i(167912),_=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,_.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,_.jsx)(r.Z,{id:"board-pills-arrow",children:(0,_.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),o=(0,d.Z)();return(0,_.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,_.jsx)(p.xv,{color:i?"subtle":"default",inline:!0,overflow:"breakWord",size:"100",weight:"bold",children:t?(0,_.jsx)(p.rU,{display:"inlineBlock",tapStyle:"compress",href:t,rounding:8,onClick:()=>{o({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),h=(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&&h({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:f}=(0,c.eK)({pinJoinVisualAnnotation:e,pinJoinAnnotationsWithLinks:t});return(0,_.jsx)(p.kC,{alignItems:"center",justifyContent:"end",children:(0,_.jsxs)(p.xu,{display:"flex",overflow:"auto",width:"100%",position:"relative","data-test-id":"vase-carousel",children:[(0,_.jsx)(o.Z,{unsafeCSS:"\n::-webkit-scrollbar {\n  display: none;\n}\n"}),n&&(0,_.jsx)(g,{direction:"left",handleClick:y("left"),testId:"left-scroll-arrow"}),(0,_.jsx)(p.xu,{overflow:"auto",padding:0,dangerouslySetInlineStyle:{__style:{scrollBehavior:"smooth",scrollbarWidth:"none",whiteSpace:"nowrap"}},ref:m,children:f.map((({name:e,url:t})=>(0,_.jsx)(v,{name:e,url:t},t||e)))}),l&&(0,_.jsx)(r.Z,{id:"board-pills-arrow-button-right",children:(0,_.jsx)(g,{direction:"right",handleClick:y("right"),testId:"right-scroll-arrow"})})]})})}function f(e){var t;const i=(0,h.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,_.jsx)(y,{mode:e.mode,pinJoinVisualAnnotation:a,pinJoinAnnotationsWithLinks:n||void 0})}function b(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,_.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 x(e){return e.graphqlRef?(0,_.jsx)(f,{...e}):(0,_.jsx)(b,{...e})}},385801:(e,t,i)=>{i.d(t,{Z:()=>b});var n=i(667294),a=i(927104),o=i(941646),r=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)(),h=(0,r.Z)();if(!e||!t)return null;const _=e.split("/")[1],m=n||_,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:`/${_}/`,fullWidth:!1,tapStyle:"compress",onTap:()=>{(0,s.My)(`pcons.${p?"desktop":"mobile"}.see-more-button-creator`),h({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)(o.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`),h({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:`/${_}/`,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,h=i(898781),_=i(394332),m=i(349700),g=i(780280),v=i(298024),y=i(167912);const f=void 0!==p?p:p=i(877821);function b({onClickTitleOrDomain:e,title:t,description:i,pinId:o,graphqlRef:p,pinCreditPrefix:b,pinDomain:x,boardId:S,boardUrl:P,boardName:E,boardPrivacy:T,pinnerFullName:I,pinnerImageSmallUrl:A,pinnerImageLargeUrl:w}){const C=(0,h.ZP)(),R=(0,l.ml)(),k=(0,l.Wb)(),{isAuthenticated:O,isBot:D}=(0,g.B)(),N=(0,r.Z)(),j=(0,y.useFragment)(f,p),L=!O&&!D&&R,M=e||null,[F,U]=(0,n.useState)(!1),B=(0,v.si)(),z=(0,v.Re)(),V=(t||"").length>z,H=i.length>B,[Z,G]=(0,n.useState)(!H&&!V);return(0,c.jsxs)(d.xu,{children:[(0,c.jsxs)(d.xu,{children:[(0,c.jsxs)(d.xu,{as:"figcaption",paddingX:k?11:0,children:[(0,c.jsx)(d.X6,{color:"default",size:"300",accessibilityLevel:3,children:F||D?t:(0,a.Z)(t||"",z)}),!!t&&(0,c.jsx)(d.xu,{height:i?8:0}),i&&(H||V)?(0,c.jsxs)(d.iP,{onTap:()=>{F||O||((0,s.NC)("click_open_description_in_sheet"),N({action:"click",item:"more-description-in-sheet"})),G(!Z),U(!F)},fullWidth:!1,children:[(0,c.jsx)(d.xv,{color:"default",size:"200",inline:!0,children:F||D?i:(0,a.Z)(i,B)}),(0,c.jsx)(d.xu,{display:"inlineBlock",paddingX:1,children:(0,c.jsx)(d.xv,{weight:"bold",size:"200",inline:!0,children:F||D?C.bt("折叠", "Less", "Toggle less description button", undefined, true):C.bt("展开", "More", "Toggle more description button", undefined, true)})})]}):(0,c.jsx)(d.xv,{color:"default",size:"200",inline:!0,children:i})]}),L&&(Z||D)&&!!x&&(0,c.jsx)(d.xu,{marginTop:2,children:(0,c.jsx)(d.kC,{alignItems:"center",direction:"row",width:"100%",children:(0,m.nk)(C.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:b})},"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"),O||(0,s.NC)("click_pin_closeup_link_clickthrough"),M&&M()},tapStyle:"compress",children:(0,c.jsx)(d.xv,{size:"200",lineClamp:1,children:(0,c.jsx)("span",{style:{textDecoration:"underline"},children:x})},"pinLinkDomain")})},"pinCredits")})})})]}),!!S&&(Z||D)&&(0,c.jsx)(d.xu,{marginTop:4,children:(0,c.jsx)(u,{boardUrl:P,boardName:E,boardPrivacy:T,pinnerFullName:I,pinnerImageSmallUrl:A,pinnerImageLargeUrl:w})}),(0,c.jsx)(d.xu,{marginTop:4,children:(0,c.jsx)(_.Z,{pinId:o,mode:"expanded",graphqlRef:j})})]})}},156637:(e,t,i)=>{i.d(t,{Z:()=>c});var n=i(667294),a=i(618446),o=i.n(a),r=i(999023),s=i(385740),l=i(785893);class d extends n.Component{componentDidMount(){const{setCurrentPageData:e,viewData:t,viewParameter:i,viewType:n}=this.props;e({viewData:t,viewParameter:i,viewType:n})}componentDidUpdate(e){const{setCurrentPageData:t,viewData:i,viewParameter:n,viewType:a}=this.props;n===e.viewParameter&&a===e.viewType&&o()(i,e.viewData)||t({viewData:i,viewParameter:n,viewType:a})}componentWillUnmount(){this.props.clearCurrentPageData()}render(){const{auxData:e,children:t,component:i,objectIdStr:n,viewData:a,viewParameter:o,viewType:s,clientTrackingParams:d}=this.props;return(0,l.jsx)(r.Z,{auxData:e,component:i,objectIdStr:n,clientTrackingParams:d,viewData:a,viewParameter:o,viewType:s,children:t})}}function c(e){const{setViewContextData:t,clearViewContextData:i}=(0,s.sV)();return(0,l.jsx)(d,{...e,clearCurrentPageData:i,setCurrentPageData:t})}},999023:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),a=i(112690),o=i(867820);const r=({viewType:e,viewParameter:t,viewData:i,auxData:n,objectIdStr:a,component:r,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:r,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,o.My)("mweb.logging.null_view_type"),d(c)};function s(e){const{auxData:t,clientTrackingParams:i,children:o,component:s,element:l,objectIdStr:d,viewData:c,viewParameter:u,viewType:p}=e,h=(0,a.Z)(),_=JSON.stringify(t),m=JSON.stringify(c);return(0,n.useEffect)((()=>{r(e,h)}),[h,_,i,s,l,d,m,u,p]),n.Children.only(o)}},598615:(e,t,i)=>{i.d(t,{Z:()=>_});var n=i(667294),a=i(329900),o=i(172071),r=i(938917),s=i(53987),l=i(407043),d=i(385740),c=i(52022),u=i(867820),p=i(276775),h=i(785893);function _({children:e,componentType:t,within:i}){const _=(0,p.useLocation)(),{flushContextEvents:m,logContextEvent:g}=(0,l.v)(),{viewType:v,viewParameter:y}=(0,d.SU)(),f=(0,c.Z)();(0,n.useEffect)((()=>{f({action:"view",item:"download-button",within:i})}),[_,i,f]);const b=(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:b.current}}),b.current=!0):o.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:b.current})}),[t,g,y,v,i]);const x=(0,r.Z)();return(0,n.useEffect)((()=>{x||(0,u.My)(`mweb.app_upsell.forbidden_upsell.${i}`)}),[x,i]),(0,h.jsx)(a.Z,{children:n=>e({handleOpenApp:e=>{var a;(f({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))(_)))}})})}},296679:(e,t,i)=>{i.d(t,{Z:()=>m});var n=i(598615),a=i(821997),o=i(430322),r=i(898781),s=i(287072),l=i(948376),d=i(50286),c=i(780280),u=i(664166),p=i(883119),h=i(785893);const _=({copyChangeGroup:e,deepLinkUri:t,isOpen:i,onDismiss:u,onOpenInApp:_,to:m,within:g})=>{var v;const y=(0,r.ZP)(),f=(0,d.Wb)(),{userAgent:{platform:b,raw:x}}=(0,c.B)(),S=(0,l.Rp)({platform:b,userAgent:x}),P=(0,s.Z)({href:null!=m?m:""}),E=f?60:40,T={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:A}=null!==(v=T[e||"control"])&&void 0!==v?v:{},w=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,h.jsx)(o.default,{accessibilityModalLabel:"",isOpen:i,mobileHideCloseIcon:!0,type:"app_upsell_v1",overrideZDepth:101,closeOnOutsideClick:!1,onDismiss:()=>{},children:(0,h.jsx)(n.Z,{componentType:14157,within:g,children:({handleOpenApp:e})=>(0,h.jsxs)(p.xu,{padding:3,"data-test-id":"appUpsell-iframe",children:[(0,h.jsx)(p.xu,{display:"inlineBlock",position:"absolute",children:(0,h.jsx)(p.xu,{"data-test-id":"appUpsell-continue",children:(0,h.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}),P&&!e.defaultPrevented&&(t(),P({event:e}))},size:"lg",iconColor:"gray"})})}),(0,h.jsxs)(p.xu,{paddingX:2,paddingY:6,children:[(0,h.jsx)(p.xu,{paddingY:2,justifyContent:"center",display:"flex",children:S?(0,h.jsx)(a.Z,{size:E}):(0,h.jsx)(p.JO,{color:"brandPrimary",icon:"pinterest",accessibilityLabel:"Pinterest App",size:E})}),(0,h.jsxs)(p.kC,{alignItems:"stretch",direction:"column",justifyContent:"center",children:[(0,h.jsx)(p.xu,{paddingY:2,children:(0,h.jsx)(p.X6,{align:"center",size:"400",children:S?y.bt("体验 Pinterest Lite", "Try Pinterest Lite", "mweb.app_upsell.lite_app_upsell_title", undefined, true):I})}),(0,h.jsx)(p.xv,{align:"center",size:"300",children:S?y.bt("以节省空间的方式发现新点子", "A space-saving way to discover new ideas", "mweb.app_upsell.lite_app_value_prop", undefined, true):A}),(0,h.jsx)(p.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{display:"grid"}},justifyContent:"center",marginTop:8,children:(0,h.jsx)(p.zx,{fullWidth:!0,size:"lg",color:"red",onClick:()=>{e({deepLinkUri:t}),_()},text:w})})]})]})]})})})};function m({clientTrackingParams:e,copyChangeGroup:t,deepLinkUri:i,isOpen:n,onDismiss:a,onOpenInApp:o,shouldTrackDismiss:r,to:s,viewParameter:l,viewType:d,within:c}){return(0,h.jsx)(u.Z,{clientTrackingParams:e,viewType:d,viewParameter:l,children:(0,h.jsx)(_,{copyChangeGroup:t,deepLinkUri:i,isOpen:n,onDismiss:e=>{r&&(0,u.y)(),a(e)},onOpenInApp:()=>{(0,u.y)(),o()},to:s,within:c})})}},664166:(e,t,i)=>{i.d(t,{Z:()=>u,y:()=>c});var n=i(667294),a=i(807609),o=i(999023),r=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,r.FP)(window)?null:(0,d.jsx)(o.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))},140203:(e,t,i)=>{i.d(t,{Z:()=>S});var n=i(667294),a=i(758127),o=i(898781),r=i(112690),s=i(892819),l=i(52022),d=i(91885),c=i(349700),u=i(867820),p=i(50286),h=i(276775),_=i(780280),m=i(276602),g=i(883119),v=i(785893);const y="133%";function f(e){const{isRTL:t}=(0,_.B)(),i=(0,o.ZP)(),a=t?-1:1,{borderRadius:r=16,containerBackgroundColor:s="white",images:l,applyWash:d}=e,c=(0,m.EV)(),u=l.slice(0,5);for(;u.length<5;)u.push({name:"",url:""});const h=(0,p.HG)(),[f,b]=(0,n.useState)(Array.from({length:5},(()=>!1))),[x,S]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{f.includes(!1)||x||!c||(c.addAnnotation("allPinsCard.imagesLoaded"),S(!0))}),[x,f,c]),(0,v.jsxs)(g.xu,{"aria-hidden":!0,display:"flex",direction:"row",width:"100%",children:[(0,v.jsx)(g.sg,{span:6,children:(0,v.jsx)(g.xu,{position:"relative",children:u.map(((e,t)=>{var n;return(0,v.jsx)(g.xu,{color:"secondary",dangerouslySetInlineStyle:{__style:{paddingBottom:y,borderRadius:r,transform:`translateX(${25*a*t}%)`,zIndex:h?0-t:100-t}},left:!0,position:0===t?"relative":"absolute",top:!0,height:h?157:void 0,width:"100%",children:(0,v.jsx)(g.xu,{position:"absolute",top:!0,bottom:!0,right:!0,left:!0,dangerouslySetInlineStyle:{__style:{border:`1px solid ${s}`,borderRadius:r}},overflow:"hidden",children:(0,v.jsx)(g.zd,{width:"100%",height:"100%",wash:d,children:(0,v.jsx)(g.Ee,{alt:e.name||i.bt("Pin 图图片", "Pin image", "pileImageGroup", undefined, true),color:"#efefef",fit:"cover",naturalHeight:133,naturalWidth:100,src:null!==(n=e.url)&&void 0!==n?n:"",onLoad:()=>{var e;e=t,b((t=>{const i=[...t];return i.splice(e,1,!0),i}))}})})})},t)}))})}),(0,v.jsx)(g.sg,{span:6})]})}var b=i(526760);const x=({children:e})=>(0,p.HG)()?(0,v.jsx)(g.X6,{accessibilityLevel:2,size:"400",lineClamp:1,children:e}):(0,v.jsx)(g.xv,{lineClamp:1,weight:"bold",children:e});function S({storyPinImages:e,pinCount:t,subtitle:i,userId:m,isOwnProfile:y}){const S=(0,o.ZP)(),P=(0,r.Z)(),E=(0,l.Z)(),T=(0,s.Z)(),I=(0,h.useParams)(),{isAuthenticated:A,locale:w}=(0,_.B)(),{username:C}=I,R=`/${null!=C?C:""}/pins/`,k=(0,p.HG)(),[O,D]=(0,n.useState)(!1);return(0,v.jsx)(g.xu,{height:"100%",padding:k?2:0,"data-test-id":d.Kb,children:(0,v.jsx)(g.iP,{role:"link",href:R,rounding:2,tapStyle:"compress",onMouseEnter:()=>{D(!0)},onMouseLeave:()=>{D(!1)},onTap:()=>{A?k&&P({event_type:101,component:13676,object_id_str:m,view_type:4,view_parameter:y?3106:3107}):((0,u.NC)("click_go_to_board"),E({action:"click",item:"board-card-all-pins"}))},children:(0,v.jsx)(g.xu,{paddingY:k?0:3,width:k?b.M0:void 0,children:(0,v.jsxs)(g.xu,{height:"100%",position:"relative",width:"100%",children:[(0,v.jsx)(f,{images:e,applyWash:O}),(0,v.jsxs)(g.xu,{display:"block",height:k?void 0:b.s0,marginTop:k?0:1,paddingX:2,paddingY:k?2:0,children:[(0,v.jsx)(g.kC,{alignItems:"center",flex:"grow",justifyContent:"between",children:(0,v.jsx)(x,{children:S.bt("所有 Pin 图", "All Pins", "allPinsCard.heading", undefined, true)})}),(0,v.jsx)(g.xu,{alignItems:"center",direction:"row",display:"flex",marginTop:1,children:t?(0,v.jsxs)(g.xv,{size:"100",lineClamp:1,children:[(0,v.jsx)(a.Z,{}),(0,c.nk)(S.nbt(["{{ count }} 张 Pin 图"], t, "profile.ProfilePage.allPins.AllPinsCard.PinsCount", true),{count:T(w,t,{})}),(0,v.jsx)(g.xu,{dangerouslySetInlineStyle:{__style:{display:k?"inline-flex":"inline",paddingLeft:7}},children:(0,v.jsxs)(g.xv,{color:"subtle",inline:!0,size:"100",lineClamp:1,children:[(0,v.jsx)(a.Z,{}),i]})})]}):(0,v.jsxs)(g.xv,{color:"subtle",inline:!0,size:"100",lineClamp:1,children:[(0,v.jsx)(a.Z,{}),i]})})]})]})})})})}},80811:(e,t,i)=>{i.d(t,{Z:()=>x});var n=i(667294),a=i(948618),o=i(815613),r=i(298361),s=i(112690),l=i(892819),d=i(19121),c=i(349700),u=i(867820),p=i(50286),h=i(758127),_=i(722556),m=i(898781),g=i(883119),v=i(526760),y=i(785893);function f(e,t){const{full_name:i,username:n}=e,a=(0,y.jsx)(g.rU,{href:`/${n}`,display:"inlineBlock",underline:"hover",children:i});return(0,c.nk)(t.bt("{{ linkToUser }} 诚邀你加入此图板", "{{ linkToUser }} invited you to join this board", "boardRep.invite.invitationText", undefined, true),{linkToUser:a})}const b=({children:e})=>{const t=(0,d.Z)(),i=(0,p.HG)(),n=t&&t.isAuth;return i&&n?(0,y.jsx)(g.X6,{accessibilityLevel:2,size:"400",lineClamp:1,children:e}):(0,y.jsx)(g.xv,{lineClamp:1,weight:"bold",children:e})};function x({archivedDate:e,boardUrl:t,canEdit:i,collaborators:d,collaboratorsCount:x=0,containerBackgroundColor:S,coverPhoto:P,followedByMe:E,fullSizeDrawer:T,sensitivityScreen:I,handleInviteResponse:A,hideMeta:w,id:C,invite:R,imagesLego:k=[],isBoardInviteAccepted:O,isActive:D,isAuthenticated:N,isCollaborative:j,isCollaborator:L,isOwner:M,isProtected:F,isSecret:U,lastModifiedDate:B,layout:z,locale:V,name:H,numCols:Z,onEditClick:G,onFollow:K,onUnfollow:W,owner:$,pinCount:Y=0,sectionCount:q,showFollowButton:X,viewParameter:J,viewType:Q,viewerId:ee}){const te=(0,m.ZP)(),ie=(0,r.Z)(),ne=(0,l.Z)(),ae=(0,s.Z)(),oe=(0,p.HG)(),re=oe&&N,se="square"===z?v.M0:v.z9,le=k.map((e=>({url:e.url,name:H}))),de=!!$&&!i&&X,ce=!M&&!L&&!(null==I||!I.show_warning),ue={board_id:C,reason:null==I?void 0:I.reason};(0,n.useEffect)((()=>{ce&&ae({event_type:13,component:13861,view_type:215,aux_data:ue})}),[]);const pe=$?$.id:void 0,he=[...d.filter((({id:e})=>e===pe)),...d.filter((({id:e})=>e===ee&&e!==pe)),...d.filter((({id:e})=>![pe,ee].includes(e)))].map((e=>{var t,i;return{name:null!==(t=re?e.full_name:e.username)&&void 0!==t?t:"",src:"https://s.pinimg.com/images/user/default_75.png"===e.image_medium_url?"":null!==(i=e.image_medium_url)&&void 0!==i?i:""}}));let _e=x>=he.length?x-he.length:0;_e=_e>99?100:_e;const me=[...he,...Array(_e).fill({name:"",src:""})],ge=re?24:16,ve=ge/3*(2*(he.length>2?3:he.length)+1);return(0,y.jsxs)(g.xu,{"data-test-id":`boardCard-${H}`,position:"relative",height:de?"max(calc(25vh + 10px), 220px)":"100%",width:re?se:"100%",children:[(0,y.jsx)(_.Z,{canEdit:i,containerBackgroundColor:S,coverPhoto:P,images:le,isProtected:F,isSecret:U,fullSize:T,showSensitivityScreen:ce,isActive:D,onEditClick:G,layout:z}),!w&&(0,y.jsx)(n.Fragment,{children:R?(0,y.jsxs)(n.Fragment,{children:[(0,y.jsxs)(g.xu,{padding:2,alignItems:"start","data-test-id":"board-card-title",display:"flex",flex:"grow",justifyContent:"between",children:[(0,y.jsxs)(g.xu,{width:"100%",children:[(0,y.jsx)(g.rU,{href:null!=t?t:"",children:(0,y.jsx)(g.xu,{marginTop:0,marginBottom:1,children:(0,y.jsx)(b,{children:H})})}),O?(0,y.jsx)(g.xv,{size:"200",lineClamp:1,children:te.bt("你已加入", "You’ve joined", "boardRep.invite.invitationAcceptedText", undefined, true)}):(0,y.jsx)(g.xv,{size:"200",children:f(R.invited_by_user,te)})]}),(0,y.jsx)(g.xu,{dangerouslySetInlineStyle:{__style:{marginTop:-1}},marginStart:2,width:ve,minWidth:ve,height:ge,children:(0,y.jsx)(g.HE,{accessibilityLabel:h.U+(te.bt("图板包含合作用户", "Board has collaborators", "BoardCard.AvatarGroup.Collaborators", undefined, true)),collaborators:me})})]}),O?(0,y.jsx)(g.xu,{direction:"row",display:"flex",paddingX:2,children:(0,y.jsx)(g.xu,{flex:"grow",marginBottom:3,paddingX:1,children:(0,y.jsx)(g.zx,{role:"link",href:null!=t?t:"",fullWidth:!0,size:"lg",text:te.bt("查看图板", "See board", "boardRep.invite.seeBoardButton", undefined, true)})})}):(0,y.jsxs)(g.kC,{direction:"row",flex:"grow",justifyContent:"start",wrap:!0,children:[(0,y.jsx)(g.xu,{marginBottom:3,paddingX:1,flex:"grow",children:(0,y.jsx)(g.zx,{fullWidth:!0,onClick:()=>{null==A||A(!1)},size:"lg",text:te.bt("拒绝", "Decline", "boardRep.invite.declineButton", undefined, true)})}),(0,y.jsx)(g.xu,{marginBottom:3,paddingX:1,flex:"grow",children:(0,y.jsx)(g.zx,{fullWidth:!0,color:"red",onClick:()=>{null==A||A(!0)},size:"lg",text:te.bt("接受", "Accept", "boardRep.invite.acceptButton", undefined, true)})})]})]}):(0,y.jsxs)(g.xu,{height:re?void 0:v.s0,marginTop:re?0:1,paddingX:2,paddingY:re?2:0,children:[(0,y.jsxs)(g.xu,{alignItems:"center","data-test-id":"board-card-title",display:"flex",flex:"grow",justifyContent:"between",children:[(0,y.jsx)(b,{children:H}),j&&(0,y.jsx)(g.xu,{dangerouslySetInlineStyle:{__style:{marginTop:-1}},marginStart:2,width:ve,minWidth:ve,height:ge,children:(0,y.jsx)(g.HE,{accessibilityLabel:h.U+(te.bt("图板包含合作用户", "Board has collaborators", "BoardCard.AvatarGroup.Collaborators", undefined, true)),collaborators:me})})]}),(0,y.jsxs)(g.xu,{alignItems:oe?"center":"start",direction:oe?"row":"column",display:"flex",marginTop:1,children:[(0,y.jsxs)(g.xv,{size:"100",lineClamp:1,children:[(0,y.jsx)(h.Z,{}),(0,c.nk)(te.nbt(["{{ count }} 张 Pin 图"], Y, "profile.ProfilePage.board.BoardCard.PinsCount", true),{count:ne(V,Y,{})}),!!q&&(0,y.jsxs)(n.Fragment,{children:[(0,y.jsx)(a.Z,{ariaHidden:!0}),(0,y.jsx)(h.Z,{}),(0,c.nk)(te.nbt(["{{ count }} 个图板区块"], q, "profile.ProfilePage.board.BoardCard.SectionsCount", true),{count:q})]})]}),!e&&(0,y.jsx)(g.xu,{dangerouslySetInlineStyle:{__style:{display:re?"inline-flex":"inline",paddingLeft:oe?7:0}},children:(0,y.jsxs)(g.xv,{color:"subtle",inline:!0,size:"100",lineClamp:1,children:[(0,y.jsx)(h.Z,{}),ie(B,!0)]})})]}),de&&(0,y.jsx)(g.xu,{marginTop:2===Z?3:void 0,column:2===Z?12:void 0,flex:"none",children:(0,y.jsx)(o.Z,{disabled:null==$?void 0:$.blocked_by_me,followEventType:26,id:C,isFollowed:E,onFollow:e=>{N||(0,u.NC)("press_follow_board"),K&&K(e)},onUnfollow:e=>{N||(0,u.NC)("press_unfollow_board"),W&&W(e)},shouldUseLegoColors:!0,size:"md",unfollowEventType:27,viewParameter:J,viewType:Q})})]})})]})}},223019:(e,t,i)=>{i.d(t,{Z:()=>g});var n=i(702664),a=i(80811),o=i(340494),r=i(52022),s=i(19121),l=i(867820),d=i(130460),c=i(780280),u=i(883119),p=i(712055),h=i(853492),_=i(785893);const m=["thumbnail","imageOnly"];function g({boardId:e,containerBackgroundColor:t,forwardedRef:i,fullSize:g,showFollowButton:v=!0,showPinCount:y=!0,type:f,viewParameter:b,viewType:x}){var S,P,E;const T=(0,s.Z)(),I=T&&T.isAuth,A=(0,n.useDispatch)(),{locale:w}=(0,c.B)(),C=(0,r.Z)(),R=(0,d.gC)()(e),k=(0,o.Z)(),O=T.isAuth?T.id:"";if(!R)return null;const D=R.owner,N=[D,...R.collaborating_users||[]].filter(Boolean).map((({id:e,image_medium_url:t,username:i})=>({id:e,image_medium_url:t,username:i}))),j=(null==D?void 0:D.id)===O,L=N.filter((({id:e})=>e===O)).length>0;if("secret"===R.privacy&&!L)return null;const M="grid"===f||"thumbnail"===f?2:4,F=k(R,M),U={isCustom:R.has_custom_cover,url:F,position:(0,h.Bw)(R.cover_pin)},B=(0,h.Jx)(R,F).map((({url:e})=>({name:(0,h.po)(e),url:e}))),z=(0,_.jsx)(a.Z,{archivedDate:null!==(S=R.archived_by_me_at)&&void 0!==S?S:void 0,canEdit:!!R.access&&R.access.includes("write"),collaborators:N,collaboratorsCount:R.collaborator_count,containerBackgroundColor:t,coverPhoto:F?U:null,followedByMe:R.followed_by_me,fullSizeDrawer:g,hideMeta:m.includes(f),id:R.id,imagesLego:B,isAuthenticated:I,isCollaborative:R.is_collaborative,isCollaborator:L,isOwner:j,isProtected:"protected"===R.privacy,isSecret:"secret"===R.privacy,lastModifiedDate:"full"===f?R.board_order_modified_at:"",locale:w,name:null!==(P=R.name)&&void 0!==P?P:"",numCols:M,onFollow:e=>A((0,p.Z)(e)),onUnfollow:e=>A((0,p.f)(e)),owner:D,pinCount:y&&R.pin_count?R.pin_count:void 0,sectionCount:null!==(E=R.section_count)&&void 0!==E?E:0,sensitivityScreen:R.sensitivity_screen,showFollowButton:v,viewParameter:b,viewType:x,viewerId:O});return!m.includes(f)&&R.url?(0,_.jsx)(u.iP,{role:"link",href:R.url,rounding:2,tapStyle:"compress",onTap:()=>{I||((0,l.NC)("click_go_to_board"),C({action:"click",item:"board-card"}))},children:(0,_.jsx)(u.xu,{ref:i,paddingY:3,children:z})}):z}},686844:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(883119),a=i(785893);function o({customCover:e,height:t,imgUrl:i,imgPos:o,width:r}){const s=t/r;let l="center center";if(e&&o){let e=1;e=o.height/o.width>s?r/o.width:t/o.height;l=`-${o.x*e}px -${o.y*e}px`}const d={backgroundImage:`url(${i})`,backgroundPosition:l,backgroundRepeat:"no-repeat",backgroundSize:"cover",minHeight:"100%",backgroundColor:"#EFEFEF",position:"relative"};return(0,a.jsx)(n.xu,{dangerouslySetInlineStyle:{__style:{height:t,width:r}},children:(0,a.jsx)(n.xu,{dangerouslySetInlineStyle:{__style:d},children:(0,a.jsx)("div",{className:"imageWash",style:{position:"absolute"}})})})}},722556:(e,t,i)=>{i.d(t,{Z:()=>p});var n=i(686844),a=i(108211),o=i(898781),r=i(50286),s=i(780280),l=i(883119),d=i(526760),c=i(785893);const u="100%";function p(e){var t,i;const p=(0,o.ZP)(),{containerBackgroundColor:h="white",coverPhoto:_,fullSize:m,images:g,isProtected:v,isSecret:y,showSensitivityScreen:f,isActive:b,canEdit:x,onEditClick:S,layout:P}=e,E=(0,r.HG)(),{isRTL:T,isAuthenticated:I}=(0,s.B)(),A=E&&I,w=g[0],C=!_&&(null===(t=g[0])||void 0===t?void 0:t.name)||p.bt("封面图片", "Cover image", "DrawerImageGroup", undefined, true),R=Array(2).fill(),k=new l.Ry(1),O="square"===P?d.M0:d.z9,D="square"===P?d.FP:d.FC,N=null!=w&&w.url?(0,c.jsx)(l.Ee,{alt:C,color:"#efefef",fit:"cover",naturalHeight:133,naturalWidth:133,src:w.url}):(0,c.jsx)(l.xu,{color:"secondary",height:"100%",width:"100%"}),j=f?{filter:"blur(20px)"}:{};return(0,c.jsx)(l.zd,{height:m?"100%":void 0,rounding:4,width:"100%",wash:b,children:(0,c.jsxs)(l.xu,{"aria-hidden":!0,display:"flex",height:A?D:"100%",direction:"row",children:[(0,c.jsx)(l.sg,{span:8,children:(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:j},position:"relative",height:m?"100%":void 0,children:(0,c.jsx)(l.xu,{color:"secondary",dangerouslySetInlineStyle:{__style:{paddingBottom:u}},overflow:"hidden",width:"100%",children:(0,c.jsxs)(l.xu,{"data-test-id":"drawer-image-group-first-image-container",dangerouslySetInlineStyle:{__style:{borderColor:h,borderStyle:"solid",borderWidth:"1px 0 1px 1px"}},overflow:"hidden",position:"absolute",top:!0,bottom:!0,right:!0,left:!0,children:[(v||y)&&(0,c.jsx)(l.xu,{left:!T,right:T,margin:2,position:"absolute",top:!0,zIndex:k,children:(0,c.jsx)(a.Z,{backgroundColor:"default",iconColor:"default",privacy:y?"secret":"protected",size:A?32:24})}),A&&null!=_&&_.url?(0,c.jsx)(n.Z,{customCover:_.isCustom,imgPos:_.position||{width:0,height:0,x:0,y:0},imgUrl:null!==(i=_.url)&&void 0!==i?i:"",width:Math.floor(O/3*2),height:D}):N]})})})}),(0,c.jsx)(l.sg,{span:4,children:(0,c.jsxs)(l.xu,{dangerouslySetInlineStyle:{__style:j},height:"100%",children:[x&&b&&(0,c.jsx)(l.xu,{left:T,right:!T,margin:2,position:"absolute",bottom:!0,zIndex:k,children:(0,c.jsx)(l.hU,{accessibilityLabel:p.bt("编辑", "Edit", "DrawerImageGroup.edit", undefined, true),bgColor:"white",icon:"edit",iconColor:"darkGray",onClick:({event:e})=>null==S?void 0:S(e),size:"sm"})}),R.map(((e,t)=>{const i=g[A?t:t+1];return(0,c.jsx)(l.xu,{position:"relative",height:m?"50%":void 0,children:(0,c.jsx)(l.xu,{color:"secondary",dangerouslySetInlineStyle:{__style:{paddingBottom:u}},overflow:"hidden",width:"100%",children:(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{borderColor:h,borderStyle:"solid",borderWidth:0===t?1:"0 1px 1px 1px"}},overflow:"hidden",position:"absolute",top:!0,bottom:!0,right:!0,left:!0,children:null!=i&&i.url?(0,c.jsx)(l.Ee,{alt:i&&i.name||"placeholder",color:"#efefef",fit:"cover",naturalHeight:133,naturalWidth:133,src:i.url}):(0,c.jsx)(l.xu,{color:"secondary",height:"100%",width:"100%"})})})},t)}))]})}),f&&(0,c.jsx)(l.xu,{alignItems:"center",dangerouslySetInlineStyle:{__style:{background:"rgba(0,0,0,0.5)"}},display:"flex",height:"100%",justifyContent:"center",position:"absolute",top:!0,width:"100%",children:(0,c.jsx)(l.X6,{align:"center",color:"light",size:"400",children:p.bt("此图板可能包含敏感内容", "This board may contain sensitive content", "drawerImageGroup.sensitivityScreen.heading", undefined, true)})})]})})}},526760:(e,t,i)=>{i.d(t,{FC:()=>s,FP:()=>o,M0:()=>a,Xq:()=>l,s0:()=>n,z9:()=>r});const n=40,a=236,o=157,r=320,s=213,l=7},108211:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(898781),a=i(883119),o=i(785893);function r({backgroundColor:e="darkGray",iconColor:t="inverse",iconSize:i,privacy:r,size:s=20}){const l=(0,n.ZP)();return(0,o.jsx)(a.xu,{display:"flex",direction:"column",alignItems:"center",color:e,width:s,height:s,rounding:"circle",justifyContent:"center",children:(0,o.jsx)(a.JO,{accessibilityLabel:l.bt("私密图板图标", "Secret board icon", "Icon indicating that a board is secret", undefined, true),color:t,icon:"secret"===r?"lock":"security",size:null!=i?i:s/2})})}},340494:(e,t,i)=>{i.d(t,{Z:()=>o});var n=i(19121),a=i(50286);function o(){const e=(0,a.HG)(),t=(0,n.Z)(),i=t&&t.isAuth;if(e&&i){return e=>{var t,i;const n=e.cover_images&&e.cover_images["222x"]?e.cover_images["222x"].url:void 0,a=null!==(t=null===(i=e.cover_pin)||void 0===i?void 0:i.image_url)&&void 0!==t?t:n,o=e.images&&e.images["170x"]&&e.images["170x"].length?e.images["170x"][0].url:"";return a||o}}return(e,t)=>{var i,n;const a=e.has_custom_cover?e.image_cover_hd_url||e.image_cover_url:"";if(!a)return"";const o=e.cover_images&&e.cover_images["400x300"]?e.cover_images["400x300"].url:void 0,r=e.cover_images&&e.cover_images["222x"]?e.cover_images["222x"].url:void 0,s=e.cover_images&&e.cover_images["216x146"]?e.cover_images["216x146"].url:void 0,l=null!==(i=null!==(n=null!=o?o:r)&&void 0!==n?n:s)&&void 0!==i?i:"",d=e.image_cover_url||"";return a||(t&&t>2&&l?l:"")||d}}},853492:(e,t,i)=>{i.d(t,{Bw:()=>s,Jx:()=>r,po:()=>n});const n=(e="")=>(null!=e?e:"").substring((null!=e?e:"").lastIndexOf("/")+1),a=e=>({dominant_color:"#FFFFFF",height:1,url:e,width:1}),o=e=>{if(!e)return()=>!0;const t=n(e);return e=>{var i;return"string"==typeof e?n(e)!==t:n(null!==(i=e.url)&&void 0!==i?i:"")!==t}},r=(e,t)=>e.images&&e.images["170x"]?e.images["170x"].filter(o(t)):e.pin_thumbnail_urls?e.pin_thumbnail_urls.filter(o(t)).map(a):[],s=e=>{var t;return null!==(t=e&&e.crop&&e.size&&{x:e.crop[0],y:e.crop[1],width:e.size[0],height:e.size[1]})&&void 0!==t?t:{x:0,y:0,width:0,height:0}}},398061:(e,t,i)=>{i.d(t,{Z:()=>s,e:()=>r});var n=i(780280),a=i(883119),o=i(785893);const r=new a.Ry(1);function s({children:e,isImagePinForUnauthOnTablet:t}){const{isAuthenticated:i}=(0,n.B)();return(0,o.jsxs)(a.xu,{alignItems:"center",bottom:!0,dangerouslySetInlineStyle:{__style:{cursor:"pointer",width:t?"40vw":void 0}},zIndex:i?void 0:r,display:"flex",justifyContent:"center",left:!0,position:"absolute",right:!t||void 0,top:!0,children:[(0,o.jsx)(a.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:"#000",borderRadius:"6px 6px 0 0",WebkitTransition:"opacity .04s linear",transition:"opacity .04s linear"}},left:!0,opacity:.4,position:"absolute",right:!0,top:!0}),e]})}},538232:(e,t,i)=>{i.d(t,{R:()=>o,q:()=>a});var n=i(425288);const{Provider:a,useHook:o}=(0,n.Z)("CloseupPageContext")},183007:(e,t,i)=>{i.d(t,{N:()=>b,Z:()=>x});var n=i(667294),a=i(223815),o=i(248041),r=i(898781),s=i(52022),l=i(867820),d=i(883119),c=i(785893);function u({icon:e}){const{hide:t}=(0,o.Z)(),i=(0,r.ZP)(),n=(0,s.Z)();return(0,c.jsx)(a.Z,{children:(0,c.jsx)(d.xu,{"data-test-id":"expandButton",children:(0,c.jsx)(d.hU,{icon:e||"maximize",size:e?"md":"lg",iconColor:"darkGray",bgColor:"white",padding:3,accessibilityLabel:i.bt("展开图片", "Expand Image", "mweb.closeup.image.expand.a11y", undefined, true),onClick:({event:e})=>{e.stopPropagation(),(0,l.My)("mweb_pin_page.pin_image.enlarge_image"),(0,l.NC)("click_expand_image"),n({action:"click",item:"expand-button",within:"pin-image"}),t()}})})})}var p=i(700380),h=i(50286),_=i(792182),m=i(398061),g=i(444445),v=i(773285);const y=.3,f=.75,b=new d.H3([m.e]),x=({children:e,closableDrawer:t})=>{var i;const{hide:a}=(0,o.Z)(),r=(0,n.useRef)(null),s=(0,n.useRef)(null),[l,m]=(0,n.useState)(null),[x,S]=(0,n.useState)(0),[P,E]=(0,n.useState)(!1),T=(null===(i=(0,_.Z)())||void 0===i?void 0:i.height)||0,[I,A]=(0,n.useState)(!1),w=(0,h.ZP)(),{checkExperiment:C}=(0,v.F)(),R=null!=l?l:.75*T,k=()=>{var e;const t=(null===(e=r.current)||void 0===e?void 0:e.offsetTop)||0;return t>0&&T>0?t-T*y+60:0};return(0,n.useEffect)((()=>{const e=()=>{var e;const t=(null===(e=r.current)||void 0===e?void 0:e.offsetTop)||0;window.scrollY+R>t&&a()};e();const t=(0,p.Z)(e,10);return window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)}),[a,R]),(0,c.jsxs)(n.Fragment,{children:[(0,c.jsxs)(d.xu,{position:"fixed",bottom:!0,left:!0,right:!0,color:"default",zIndex:b,height:null===l?"25vh":`calc(100vh - ${l}px)`,dangerouslySetInlineStyle:{__style:{...P?{transitionDuration:"500ms",transitionProperty:"maxHeight, borderRadius"}:{},borderRadius:0===l&&P?0:"32px 32px 0 0",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.3)",overscrollBehavior:"none",touchAction:"none"}},"data-test-id":"related-pins-drawer","data-layout-shift-boundary-id":"Drawer",ref:s,onTouchStart:e=>{const{clientY:t}=e.touches[0];S(t),E(!1)},onTouchMove:e=>{e.preventDefault();const{clientY:t}=e.touches[0],i=null!=l?l:.75*window.innerHeight,n=t-x;if(null!==i&&n){const e=T*y,t=T*f,o=Math.floor(Math.min(t,Math.max(e,i+n)));m(o);const r=k();if(T>0&&r>0){const e=r*(a=o/T,1-(Math.max(y,Math.min(f,a))-y)/.45);window.pageYOffset<e&&window.scrollTo({top:e})}o<.525*T&&A(!0)}var a;S(t)},onTouchEnd:()=>{if(I){E(!0);m(T*y);const e=k();e&&window.scrollTo({top:e,behavior:"smooth"}),A(!1)}},children:["desktop"!==w&&(t?(0,c.jsx)(d.xu,{position:"absolute",top:!0,left:!0,margin:1,marginTop:t?0:4,paddingY:1,children:(0,c.jsx)(u,{icon:"cancel"})}):!C("pcons_remove_expand_button").anyEnabled&&(0,c.jsx)(d.xu,{position:"absolute",top:!0,right:!0,children:(0,c.jsx)(d.xu,{position:"absolute",bottom:!0,right:!0,children:(0,c.jsx)(d.xu,{padding:3,children:(0,c.jsx)(u,{})})})})),(0,c.jsx)(d.xu,{paddingX:g.D6,children:e})]}),(0,c.jsx)(d.xu,{ref:r,height:"100vh"})]})}},350948:(e,t,i)=>{i.d(t,{IS:()=>b,Ys:()=>f,ZP:()=>w,j$:()=>P});var n,a=i(667294),o=i(485710),r=i(134185),s=i(319530),l=i(50286),d=i(349700),c=i(578661),u=i(923297),p=i(773285),h=i(350118),_=i(898781),m=i(883119),g=i(167912),v=i(785893);const y=void 0!==n?n:n=i(906587),f=({m:e,h:t,rm:i,rh:n},a,o=!1)=>e&&(!t||n<=0)?o?(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?o?(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,b=({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,x=(e,t)=>{const i=e&&e.length>0&&e.join(", "),n=t&&t.summary;return i&&n?`${i} • ${n}`:i||n},S=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,P=({cookTimesCookM:e,cookTimesCookH:t,cookTimesTotalM:i,cookTimesTotalH:n,hasCookTimesTotal:a,i18n:o,isShortened:r})=>{let s;return s=a?(0,u.X)({m:i||0,h:n||0}):(0,u.X)({m:e||0,h:t||0}),f(s,o,r)};function E({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 T=({categorizedIngredients:e,cookTimes:t,image:i,ingredientCount:n,ingredientsDescription:d,name:u,pinLink:h})=>{var g,y,f,b;const x=(0,_.ZP)(),{checkExperiment:S}=(0,p.F)(),T=(0,l.ZP)(),I=S("closeup_dweb_unauth_onepin_title_and_description").anyEnabled;if(!P({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===(f=t.total)||void 0===f?void 0:f.m,cookTimesTotalH:null==t||null===(b=t.total)||void 0===b?void 0:b.h,hasCookTimesTotal:!(!t||!t.total),i18n:x,isShortened:I})&&!n&&!d)return null;const A="desktop"===T,w=x.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||!A)&&(0,v.jsx)(m.xu,{marginBottom:4,children:(0,v.jsx)(m.xv,{weight:"bold",align:"desktop"===T?"start":"center",children:w})}),(0,v.jsxs)(r.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&&A&&(0,v.jsx)(m.xu,{"data-test-id":"one-pin-layout",children:Array.isArray(e)&&e.length>0&&(0,v.jsx)(o.Z,{heading:w,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)(E,{category:e,ingredients:t,textSize:"300"})})},n)}))})})}),(!I||!A)&&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)(E,{category:e,ingredients:t,textSize:"300"})},i)))})]})]}),(!I||!A)&&(0,v.jsx)(m.xu,{marginBottom:4,display:"flex",justifyContent:"phone"===T?"center":void 0,children:h&&(0,v.jsx)(m.zx,{text:x.bt("开始制作", "Make it", "closeup.recipe.make_it_button", undefined, true),role:"link",href:h,target:"blank"})})]})},I=({graphqlRef:e,checkExperiment:t})=>{const i=(0,g.useFragment)(y,e),{imageSpec_474x:n,link:a,richMetadata:o}=i,r=null==o?void 0:o.recipe,s=null==r?void 0:r.categorizedIngredients,l=S(s),d=(null==r?void 0:r.categorizedIngredients)&&x(r.diets,r.servingsSummary);return(0,v.jsx)(T,{categorizedIngredients:s,cookTimes:null==r?void 0:r.cookTimes,image:null==n?void 0:n.url,ingredientCount:l,ingredientsDescription:d,name:null==r?void 0:r.name,pinLink:a,checkExperiment:t})},A=({pinId:e,checkExperiment:t})=>{var i,n;const a=(0,h.S6)()(e),o=(null==a||null===(i=a.rich_metadata)||void 0===i?void 0:i.recipe)||{},{cook_times:r,name:s,categorized_ingredients:l,diets:d,servings_summary:c}=o,u=S(l),p=l&&x(d,c);return(0,v.jsx)(T,{categorizedIngredients:l,cookTimes:r,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 w({graphqlRef:e,pinId:t}){const{checkExperiment:i}=(0,p.F)();return e?(0,v.jsx)(I,{graphqlRef:e,checkExperiment:i}):(0,v.jsx)(A,{pinId:t,checkExperiment:i})}},298024:(e,t,i)=>{i.d(t,{Ph:()=>a,Re:()=>r,si:()=>o});var n=i(50286);const a=e=>e&&e.promoter&&!e.is_downstream_promotion?e.promoter:null,o=()=>"phone"!==(0,n.ZP)()?180:130,r=()=>"phone"!==(0,n.ZP)()?180:80},248041:(e,t,i)=>{i.d(t,{Z:()=>d,t:()=>l});var n=i(667294),a=i(867820),o=i(276775),r=i(785893);const s=(0,n.createContext)({hide:()=>{},isHidden:!0,isScrolledToPins:!1,scrollToPins:()=>{}});function l({children:e,isEligible:t}){const[i,l]=(0,n.useState)(!t),[d,c]=(0,n.useState)(!1),{pathname:u}=(0,o.useLocation)();(0,n.useEffect)((()=>{l(!t)}),[u,t]);const p=(0,n.useCallback)((()=>{(0,a.My)("web_unification.expand_click.hide_drawer"),l(!0)}),[]),h=(0,n.useCallback)((e=>{c(!!e)}),[]),_=(0,n.useMemo)((()=>({isHidden:i,hide:p,isScrolledToPins:d,scrollToPins:h})),[i,p,d,h]);return(0,r.jsx)(s.Provider,{value:_,children:e})}const d=()=>(0,n.useContext)(s)},759177:(e,t,i)=>{i.d(t,{Z:()=>r});var n,a=i(167912);const o=void 0!==n?n:n=i(96795);const r=e=>function(e){var t,i,n,a,o,r,s,l,d,c,u,p,h,_,m,g,v,y,f,b,x,S,P,E,T,I,A;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===(o=e.imageSpec_136x136)||void 0===o?void 0:o.url)||void 0,width:(null==e||null===(r=e.imageSpec_136x136)||void 0===r?void 0:r.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===(h=e.imageSpec_474x)||void 0===h?void 0:h.height)||void 0,url:(null==e||null===(_=e.imageSpec_474x)||void 0===_?void 0:_.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===(f=e.imageSpec_736x)||void 0===f?void 0:f.height)||void 0,url:(null==e||null===(b=e.imageSpec_736x)||void 0===b?void 0:b.url)||void 0,width:(null==e||null===(x=e.imageSpec_736x)||void 0===x?void 0:x.width)||void 0},"600x315":{height:(null==e||null===(S=e.imageSpec_600x315)||void 0===S?void 0:S.height)||void 0,url:(null==e||null===(P=e.imageSpec_600x315)||void 0===P?void 0:P.url)||void 0,width:(null==e||null===(E=e.imageSpec_600x315)||void 0===E?void 0:E.width)||void 0},orig:{height:(null==e||null===(T=e.imageSpec_orig)||void 0===T?void 0:T.height)||void 0,url:(null==e||null===(I=e.imageSpec_orig)||void 0===I?void 0:I.url)||void 0,width:(null==e||null===(A=e.imageSpec_orig)||void 0===A?void 0:A.width)||void 0}}}((0,a.useFragment)(o,e))},998651:(e,t,i)=>{i.d(t,{L:()=>s,r:()=>r});var n=i(385740),a=i(909499);const o=["search_articles_story","shop_tab_upsell","story_pins_search_upsell","structured_search_bubble","user_style_story_v2","search_for_you_upsell"];function r({query:e,rs:t,scope:i},o){const r=(0,n.BE)(),s=!(null!=r&&r.viewType||null!=r&&r.viewParameter),l=(0,a.wF)(i);if(!s&&l){const{viewType:i,viewParameter:n}=null!=r?r:{};o({event_type:l,view_type:i,view_parameter:n,aux_data:{query:e,rs:t||"Unknown"}})}"hashtag_closeup"===t?o({event_type:101,component:13065,element:10273,view_type:142}):"hashtag_pinrep"===t&&o({event_type:101,component:0,element:10349,view_type:142})}const s=(e=[])=>{let t=!0;return e.reduce(((e,i)=>{var n;return t&&i.story_type&&o.includes(i.story_type)&&0===(null===(n=i.display_options)||void 0===n?void 0:n.num_columns_requested)?e.searchFullWidthStories.push(i):(t=!1,e.filteredResults.push(i)),e}),{searchFullWidthStories:[],filteredResults:[]})}},331064:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(121093),a=i(839534),o=i(785893);const r=({anchors:e,experience:t,idealDirection:i,onCompleteByAnchor:r={},placementId:s,positionRelativeToAnchor:l,touchToDismiss:d,useMasonryFlyout:c})=>(0,o.jsx)(n.Z,{experience:t,placementId:s,predicate:t=>{const{display_data:i,placement_id:n}=t;if(2===(null==i?void 0:i.component_type)){const{anchors_by_platform:t}=i;if(null!=t&&t.web_mobile){const{anchor:i,placement:a}=t.web_mobile;return a===n&&i in e}}return!1},children:({complete:t,dismiss:n,experience:s})=>(0,o.jsx)(a.Z,{anchors:e,complete:()=>t(1),dismiss:n,displayData:s.display_data,idealDirection:i,onCompleteByAnchor:r,platform:"web_mobile",positionRelativeToAnchor:l,touchToDismiss:d,useMasonryFlyout:c})})},679031:(e,t,i)=>{i.d(t,{G9:()=>u,c$:()=>h,cn:()=>_,gG:()=>p,kk:()=>c});var n=i(63552),a=i(19121),o=i(883119),r=i(204283),s=i(305324),l=i(50286),d=i(785893);const c=({isDesktop:e})=>{const t=(0,r.pinRepPaddingInBoint)({isDesktop:e});return t?-t:0},u=-2,p=()=>{const e=(0,l.HG)(),t=(0,r.pinRepPaddingInBoint)({isDesktop:e}),i=t?-t:0;return(0,d.jsx)(o.xu,{marginTop:i,marginBottom:i,paddingY:t})},h=({children:e,feedRef:t,viewParameter:i,viewType:n})=>(0,a.Z)().isAuth?e:(0,d.jsx)(s.g,{feedRef:t,viewParameter:i,viewType:n,children:e}),_=({children:e})=>(0,d.jsx)(n.Z,{onTouch:e=>{if(e.target instanceof HTMLElement&&"IMG"===e.target.tagName){const t=e.target.getBoundingClientRect().top+window.scrollY-70;window.scrollTo(window.scrollX,t)}},pressState:"none",children: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,o={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(o)}}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),o=i(844974);const r=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,o.qn)("appUpsell"));return{currentTime:e,firstUpsellTime:Number((0,o.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||r,!a||function(e,t,i){return e<t+i}(n,a,t)?!d:!!s(n,l,i)&&((0,o.L_)("firstUpsellTime"),!0)}(t,a.F4):function(e,t){const{currentTime:i,lastUpsellTime:n}=e;return t=t||r,!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:()=>o,E9:()=>m,EU:()=>y,IO:()=>v,Jd:()=>h,KH:()=>c,QR:()=>d,Uw:()=>a,ZR:()=>f,dy:()=>l,eA:()=>p,fo:()=>_,k7:()=>r,rT:()=>g,tz:()=>u,u9:()=>b,zR:()=>s,zu:()=>n});const n="OPEN_UNAUTH",a="openUnauthType",o="_isAfterLogin",r="_lastVisitedPages",s="_lastVisitedPagesBeforeLogin",l="_lastVisitedBoardPages",d="_lastVisitedPagesBeforeNavPage",c="_lastVisitedSessionPages",u="_unauthVisitedPages",p=20,h="_unauthInviteCode",_="_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"]),f=new Set(["BR","MX","AR","CL","CO","PE"]),b="ad_img"},844887:(e,t,i)=>{i.d(t,{DZ:()=>u,Dv:()=>p,Es:()=>d,HW:()=>l,mv:()=>c});var n=i(844974),a=i(773285),o=i(116485);const r=e=>e>=Date.now()-72e5,s=(e,t)=>{const i=[];if(e)for(const n of e)t&&!n.is_shared||r(n.ts)&&i.push(n);return i},l=()=>{const e=(0,n.qn)(o.zR),t=e?JSON.parse(e):[],i=s(t,!1),a=s(t,!0),l=i.map((e=>e.first_pin_image_signature)),d=a.map((e=>e.first_pin_image_signature)),c=(e=>{const t={};if(e)for(const i of e)i.is_shared&&r(i.ts)&&i.pin_id&&(t[i.pin_id]={inviteCode:i.pin_invite_code});return t})(t),u=(0,n.qn)(o.dy),p=u?JSON.parse(u):[];return{extraPlpImages:l,plpImageRenderData:i,extraBlpImages:s(p,!0).map((e=>e.first_pin_image_signature)),extraSharedImages:d,sharedPinData:c}},d=(e,t)=>{if(e.length!==t.length)return!1;for(let i=0;i<e.length;i+=1){if(e[i].id!==t[i].id)return!1}return!0},c=(e,t)=>(e.nuxTopics?e.nuxTopics.map((({id:e})=>t[e])):[]).filter((e=>e.is_followed)),u=(e,t)=>e.nuxTopics?e.nuxTopics.map((({id:e})=>t[e])):null,p=()=>{const{checkExperiment:e}=(0,a.F)(),{anyEnabled:t,group:i}=e("mweb_mini_renux");return{inMiniRenuxEnabledGroup:t,interestsLimit:t?Number(i.slice(-1)):NaN}}},62409:(e,t,i)=>{i.d(t,{AH:()=>l,Bk:()=>o,CK:()=>s,Xe:()=>a,kb:()=>r,wS:()=>n});const n=(e,t,i,n)=>{let a;return a=t||(e?e.official_user:i||n),a};function a({hasLinkDomain:e,hasNativeCreator:t,hasOriginPinner:i,pinDomain:n,sourceUserUsername:a,sourceUserFullName:o}){return!t&&(e||i)&&a?{pinCreditLink:`/${a}/`,pinCredit:o}:{pinCreditLink:void 0,pinCredit:!t&&e?n:""}}const o=({i18n:e,isLego:t,hasLinkDomain:i,hasRichMetadataArticle:n,hasRichMetadataTutorial:a,hasRichMetadataRecipeCategorizedIngredients:o,hasRichMetadataProductOfferSummary:r,hasRichSummaryProductOfferSummary:s,richMetadataRecipeFromAggregatedData:l,richMetadataProductName:d,richSummaryProductName:c})=>{const u=o;let p;d&&r&&(p=!0);const h=n,_=a;let m=t?e.bt("自 ", "From ", "Closeup pin annotation", undefined, true):e.bt("收藏自 ", "Saved from ", "Closeup pin annotation", undefined, true);return!i||l?m=e.bt("收藏者： ", "Saved by ", "Closeup pin annotation", undefined, true):p?m=e.bt("产品售自 ", "Product sold by ", "pin annotation", undefined, true):_?(t&&(m=e.bt("自 ", "From ", "pin annotation", undefined, true)),m=e.bt("收藏自 ", "Saved from ", "pin annotation", undefined, true)):u?m=e.bt("食谱来自 ", "Recipe from ", "pin annotation", undefined, true):h&&(m=e.bt("文章来自 ", "Article from ", "pin annotation", undefined, true)),!r&&c&&s&&(m=e.bt("产品售自 ", "Product sold by ", "pin annotation", undefined, true)),m},r=({hasLinkDomain:e,richMetadata:t,richSummary:i})=>{var n;return e&&(null==t||null===(n=t.recipe)||void 0===n||!n.fromAggregatedData)&&null!=t&&t.products&&t.products[0]&&t.products[0].name&&t.products[0].offerSummary?t.products[0].offerSummary:null!=i&&i.products&&i.products[0]&&i.products[0].name&&i.products[0].offerSummary?i.products[0].offerSummary:void 0},s=({hasRichMetadata:e,hasRichMetadataProducts:t,hasRichMetadataArticle:i,hasRichMetadataRecipe:n})=>e?t?144:i?141:n?145:139:140,l=e=>!!e&&!e.startsWith("https://i.pinimg.com")},772486:(e,t,i)=>{i.d(t,{XK:()=>s,jC:()=>r,yd:()=>l});var n=i(745760);let a=null,o=null;const r=((e,t)=>{let i=null;return r=>{var s;if(r&&!i)return i={...r,event_type:e,time:(0,n.h1)()},null===(s=o)||void 0===s||s.logContextEvent(i),a&&i&&a.storeClickthroughProperties(i),e;if(!r&&i){var l;const e={...i,event_type:t,duration_ns:(0,n.h1)()-i.time};return null===(l=o)||void 0===l||l.logContextEvent(e),i=null,t}return null}})(12,4100),s=e=>{a=e},l=e=>{o=e}},529195:(e,t,i)=>{i.d(t,{CC:()=>x,Cb:()=>y,Ff:()=>R,H$:()=>P,Mt:()=>b,OJ:()=>v,Yi:()=>I,Ys:()=>g,Yy:()=>w,Z4:()=>m,ZN:()=>p,dc:()=>T,dp:()=>S,i$:()=>_,kw:()=>f,p9:()=>E,t_:()=>h});var n=i(231486),a=i(214494),o=i(826067),r=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"],h=()=>(0,c.qn)(u.tz,""),_=()=>{const e=h();let t;try{t=JSON.parse(e)}catch(i){t=[]}return t},m=(e,t)=>{const i=_(),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)},f=()=>{h()&&(0,c.L_)(u.tz),(0,c.qn)(u.Jd,"")&&(0,c.L_)(u.Jd),v()&&(0,c.L_)(u.fo)},b=(e,t,i,n,a,o,r=u.k7)=>{const s=(0,c.qn)(r)?JSON.parse((0,c.qn)(r)):[];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:!!o,pin_invite_code:o}];(0,c.Nh)(r,JSON.stringify(l.concat(s)))}},x=({path:e,image:t,dominant_color:i,pin_description:n,pin_id:a})=>{const o=(()=>{const e=(0,d.qn)(u.KH);if(!e)return[];let t;try{t=JSON.parse(e)}catch(i){t=[]}return t})();if(!o[0]||o[0].path!==e){const r=[{path:e,image:t,pin_description:n||"",dominant_color:i||"",pin_id:a||""}];(0,d.Nh)(u.KH,JSON.stringify(r.concat(o)))}};function S(e,t,i,n,a,o){b(e,t,i,n,a,o,u.zR)}const P=(e,t,i,n,a)=>{b(e,t,i,n,null!=a?a:"","",u.dy)};function E(e,t,i,n,a){b(e,t,i,n,a,"",u.QR)}function T(){return _().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,o=!!n.U2(s.x3);return a?((0,r.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_"+(o?"true":"false")),t(a)):((0,l.My)("mweb.unauth.personalized_login.fetch_user_info.info.no_user_info.logged_out_cookie_"+(o?"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 A({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(o){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 w=e=>e.search&&e.search.startsWith("?next=")?e.search.split("?next=")[1]:null;function C({i18n:e,location:t}){var i;const n=(null===(i=t.state)||void 0===i?void 0:i.next)||w(t);if(n){const t=n.indexOf("?"),i=(0,o.mB)(n.substring(t));if(i.url&&i.media)return{showPLPBanner:!0,pinForBanner:{image:{url:(0,o.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 C({i18n:e,location:t}).showPLPBanner?C({i18n:e,location:t}):A({i18n:e,location:t}).showPLPBanner?A({i18n:e,location:t}):{showPLPBanner:!1,pinForBanner:null}}},305324:(e,t,i)=>{i.d(t,{M:()=>v,g:()=>y});var n,a=i(667294),o=i(590674),r=(i(883119),i(867820)),s=i(447409),l=i(50286),d=i(430235),c=i(874317),u=i(167912),p=i(785893);const h=void 0!==n?n:n=i(110767);const _=({queryReference:e,...t})=>{var i;const n=(0,u.usePreloadedQuery)(h,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)(h,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,f]=(0,a.useState)(null),[b,x]=(0,a.useState)(null),[S,P]=(0,a.useState)(!1),[E,T]=(0,a.useState)(null),[I,A]=(0,a.useState)(!1),w=(0,l.HG)(),[C,R]=(0,u.useQueryLoader)(h);if(v&&!C&&E){R(function({pinId:e}){return{query:h,variables:{pinId:e}}}({pinId:E}).variables)}const k=()=>{document&&document.body&&document.body.style&&(document.body.style.overflow="unset")};(0,a.useEffect)((()=>k),[]);const O=(0,a.useCallback)((e=>i=>{const{pinId:n,deviceOptions:a}=e;if(i.stopPropagation(),i.preventDefault(),T(n),a.isDesktop)A(a.isMainPinImage),(0,r.My)("dweb.unauth.context_menu.open_menu"),f({xPosition:i.clientX,yPosition:i.clientY}),document&&document.body&&document.body.style&&(document.body.style.overflow="hidden");else{(0,r.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),o=e.pageY-s.n;x({xPosition:n,yPosition:o,context:a.context})}}}),[t]),D=!!y;(0,a.useEffect)((()=>{const e=()=>{f(null),k(),(0,r.My)("dweb.unauth.context_menu.click_away")};return D&&document.addEventListener("click",e),()=>{D&&document.removeEventListener("click",e)}}),[D]);const N=y&&E?v?C&&(0,p.jsx)(_,{desktopContextMenuState:y,pinId:E,isMainPinImage:!!I,queryReference:C}):(0,p.jsx)(d.Z,{desktopContextMenuState:y,pinId:E,isMainPinImage:!!I,graphqlRef:null}):null,j=b&&E?v?C&&(0,p.jsx)(m,{mwebContextMenuState:b,pinId:E,openShareModal:P,setMwebContextMenuState:x,queryReference:C}):(0,p.jsx)(c.ZP,{graphqlRef:null,mwebContextMenuState:b,pinId:E,openShareModal:P,setMwebContextMenuState:x}):null;return(0,p.jsx)(g.Provider,{value:O,children:(0,p.jsxs)(a.Fragment,{children:[e,w&&N,!w&&j,!w&&S&&E&&(0,p.jsx)(o.default,{objectType:1,isOpen:S,onDismiss:()=>P(!1),objectId:E,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),o=i(844974);const r=e=>{const t=(0,o.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:r(e));return(0,n.useEffect)((()=>{s(r(e))}),[e]),[i,(0,n.useCallback)((t=>{s(t),null===t?(0,o.L_)(e):(0,o.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:()=>r,V0:()=>n,Wn:()=>o,xT:()=>a});const a=e=>!!e&&2===e.login_state,o=e=>!(!e||!e.match(/\/static\/images\/user\/default_\d+\.png$/));function r(e){return!e||void 0===e.third_party_marketing_tracking_enabled||null===e.third_party_marketing_tracking_enabled||e.third_party_marketing_tracking_enabled}},698629:(e,t,i)=>{i.d(t,{Z:()=>_});var n=i(667294),a=i(391254),o=i(619623),r=i(50286),s=i(444445),l=i(883119),d=i(785893);const c="PinGridSkeletonLoader__tall",u="PinGridSkeletonLoader__short",p=({size:e})=>(0,d.jsx)(l.xu,{padding:1,children:(0,d.jsx)("div",{className:"tall"===e?c:u})}),h=({children:e})=>(0,d.jsx)(l.kC,{direction:"column",gap:{row:0,column:2},children:e}),_=({partialViewportWidth:e})=>{const t="desktop"===(0,r.ZP)(),i=t?s.yF:s.tG;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(a.Z,{unsafeCSS:[{name:c,height:250},{name:u,height:150}].map((({name:e,height:t})=>(0,o.Z)({name:e,width:i,height:t}))).join("")}),(0,d.jsx)(l.xu,{marginStart:s.qG,marginEnd:s.qG,children:t?(0,d.jsxs)(l.kC,{direction:"row",gap:{row:s.jC,column:0},children:[(0,d.jsx)(h,{children:(0,d.jsx)(p,{size:"tall"})}),(0,d.jsx)(h,{children:(0,d.jsx)(p,{size:"short"})}),(0,d.jsx)(h,{children:(0,d.jsx)(p,{size:"tall"})}),!e&&(0,d.jsx)(h,{children:(0,d.jsx)(p,{size:"short"})})]}):(0,d.jsxs)(l.kC,{direction:"row",overflow:"hidden",justifyContent:"center",children:[(0,d.jsxs)(h,{children:[(0,d.jsx)(p,{size:"tall"}),(0,d.jsx)(p,{size:"short"}),(0,d.jsx)(p,{size:"tall"})]}),(0,d.jsxs)(h,{children:[(0,d.jsx)(p,{size:"short"}),(0,d.jsx)(p,{size:"tall"}),(0,d.jsx)(p,{size:"short"}),(0,d.jsx)(p,{size:"tall"})]})]})})]})}},619623:(e,t,i)=>{i.d(t,{Z:()=>n});const n=({name:e,width:t,height:i})=>{const n=`${i}${"number"==typeof i?"px":""}`,a="number"==typeof t?t:236;return`\n.${e} {\n  -webkit-animation-duration: 1s;\n  -webkit-animation-fill-mode: forwards;\n  -webkit-animation-iteration-count: infinite;\n  -webkit-animation-name: ${e}_placeHolderShimmer;\n  -webkit-animation-timing-function: linear;\n  border-radius: 16px;\n  background: #f6f7f9;\n  background-image: linear-gradient(to right, #f6f7f9 0%, #e9ebee 20%, #f6f7f9 40%, #f6f7f9 100%);\n  background-repeat: no-repeat;\n  background-size: ${a} ${n};\n  width: ${`${t}${"number"==typeof t?"px":""}`};\n  height: ${n};\n}\n\n@keyframes ${e}_placeHolderShimmer{\n  0% {\n      background-position: -${a}px 0;\n  }\n  100% {\n      background-position: ${a}px 0;\n  }\n}\n`}},987318:(e,t,i)=>{i.d(t,{H:()=>o,o:()=>a});var n=i(425288);const{Provider:a,useHook:o}=(0,n.Z)("LimitedLogin")},945698:(e,t,i)=>{i.d(t,{N4:()=>o,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),o=({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:()=>o,Qj:()=>d,_6:()=>m,gv:()=>r,hg:()=>c,is:()=>h,jP:()=>_,lt:()=>a,oM:()=>u,wI:()=>p});var n=i(826067);const a=e=>e.bt("登录并继续", "Log in to continue", "limitedLogin.modalHeader.default", undefined, true),o=e=>e.pathname,r=({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},h=e=>e.bt("登录并创建 Pin 图或图板", "Log in to create a Pin or board", "limitedLogin.modalHeader.create", undefined, true),_=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)},927383:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(898781),a=i(50286),o=i(987318),r=i(945698);const s=()=>{const e=(0,n.ZP)(),t=(0,a.HG)(),{viewer:i,loginForMore:s,limitedLoginModalSubheader:l,limitedLoginModalNextLocation:d}=(0,o.H)();return"LIMITED_LOGIN"===i.type?({modalHeader:i,nextLocation:n})=>a=>{let o=null;a&&(a.nativeEvent&&a.nativeEvent instanceof Event?o=a:a.event&&(o=a.event)),o&&(o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation()),null==s||s.setVisible(!0),null==l||l.setText(i||(t?(0,r.hr)(e):(0,r.Wh)(e))),n&&(null==d||d.setRoute(n))}:({fn:e})=>e}},56390:(e,t,i)=>{i.d(t,{C:()=>l,P:()=>s});var n=i(172071),a=i(53987),o=i(339363);const r="msmrsfda",s=()=>!!(0,o.qn)(r),l=e=>{(0,a.LM)(e)&&!s()&&((0,o.Nh)(r,"1"),n.Z.incrementNow("mobile_signup_modal.rules.suppress_for_discover_article",1))}},633083:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(643010),a=i(883119),o=i(785893);function r({color:e,image:t,isSelected:i,title:r}){var s,l,d;return(0,o.jsxs)(a.xu,{alignItems:"center","aria-selected":i,dangerouslySetInlineStyle:{__style:{backgroundColor:(0,n.Yc)()?i?"#fff":"#767676":i?"#111":"#efefef"}},display:"flex",padding:1,rounding:"pill",children:[(0,o.jsx)(a.zd,{height:48,rounding:"circle",width:48,children:(0,o.jsx)(a.Ee,{alt:"",color:e,fit:"cover",naturalHeight:null!==(s=t.height)&&void 0!==s?s:1,naturalWidth:null!==(l=t.width)&&void 0!==l?l:1,src:null!==(d=t.url)&&void 0!==d?d:""})}),(0,o.jsx)(a.xu,{marginStart:2,marginEnd:3,children:(0,o.jsx)(a.xv,{color:i?"inverse":(0,n.Yc)()?"light":"dark",weight:"bold",children:r})})]})}},461355:(e,t,i)=>{i.d(t,{Z:()=>m,z:()=>c});var n=i(667294),a=i(702664),o=i(391254),r=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)"}},h={__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"}},_={__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,r.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:f}=(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)(o.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:h,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!=f?f:""})})})]}),(0,d.jsx)(l.xu,{dangerouslySetInlineStyle:_,children:e})]})]})}))},327212:(e,t,i)=>{i.d(t,{Z:()=>R});var n=i(667294),a=i(376030),o=i(391254),r=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)(r.xu,{display:"flex",justifyContent:"center",width:"100vw",paddingX:2,children:(0,s.jsxs)(r.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)(o.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)(r.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)(r.JO,{accessibilityLabel:a.accessibilityLabel,color:a.color,dangerouslySetSvgPath:a.dangerouslySetSvgPath,icon:a.icon,inline:a.inline,size:a.size})})]});return(0,s.jsx)(r.xu,{marginEnd:4,children:e})})(),(0,s.jsxs)(r.xu,{marginEnd:"auto",children:[(0,s.jsx)(r.xv,{color:"default",weight:"bold",children:i}),!!c&&(0,s.jsx)(r.xu,{paddingY:1,children:(0,s.jsx)(r.xv,{size:"300",color:"default",children:c})})]}),(0,s.jsx)(r.xu,{display:"flex",flex:"shrink",marginStart:2,children:t})]})})}var d=i(223815),c=i(829407),u=i(898781),p=i(759929);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 _=(e,t)=>(e-t)/2,m=68,g=_(m,68),v=_(m,66),y=_(m,60),f="cubicBezier(0.25, 0.1, 0.25, 1)",b="encourageToastIconContainer",x="encourageToastIconRadiateBg",S="encourageToastIconRadiateRing",P={targets:`#${b}`,duration:300,scale:1.4,easing:f},E={targets:`#${b}`,duration:300,scale:1,easing:f,endDelay:1e3},T={targets:`#${b}`,duration:300,scale:.42,easing:f},I={targets:`#${x}`,duration:400,opacity:0,scale:1.6,easing:f},A={targets:`#${S}`,duration:650,opacity:0,scale:2,easing:f};function w({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 C extends n.PureComponent{constructor(...e){super(...e),h(this,"delayTimer",null),h(this,"requestAnimationFrameId",null),h(this,"playAnimation",(()=>{this.requestAnimationFrameId=window.requestAnimationFrame((()=>{(0,a.Z)(I),(0,a.Z)(A),(0,a.Z)(P).finished.then((()=>{(0,a.Z)(E).finished.then((()=>{a.Z.set(`#${b}`,{transformOrigin:"top right"}),(0,a.Z)(T)}))}))}))})),h(this,"getHeaderText",(()=>{const{text:e}=this.props;return Array.isArray(e)?e[0]:e})),h(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}))),h(this,"getSubHeaderText",(()=>{const{text:e}=this.props;return e instanceof Array&&e.length>1&&e[1]?e[1]:""})),h(this,"renderAnimatedIcon",(()=>(0,s.jsxs)(r.xu,{height:m,position:"relative",width:m,children:[(0,s.jsx)(r.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)(r.xu,{id:b,height:m,width:m,dangerouslySetInlineStyle:{__style:{transform:"scale(0)"}},position:"absolute",children:[(0,s.jsx)(r.xu,{color:"infoBase",id:x,width:68,height:68,position:"absolute",rounding:"circle",dangerouslySetInlineStyle:{__style:{left:`${g}px`,top:`${g}px`,transform:"scale(0)"}}}),(0,s.jsx)(r.xu,{id:S,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)(r.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)(r.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)(),[o,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((()=>_(!0)),100),m.current=setTimeout(g,t||p.w),v)));let y=(0,s.jsx)(C,{...e,i18n:a});return e.href&&(y=(0,s.jsx)(r.rU,{href:e.href,onClick:g,rounding:"pill",tapStyle:"none",children:y})),(0,s.jsx)(d.Z,{children:(0,s.jsx)(r.mh,{children:(0,s.jsx)(r.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{...w({hiding:o,visible:h})}},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),o=i(898781),r=i(883119),s=i(785893);const l=()=>{const e=(0,o.ZP)();return e.bt("温馨收藏！", "Sweet save!", "Header text on toast that appears after user creates their first board", undefined, true)},d=()=>{const e=(0,o.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)(r.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)(r.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),o=i(343341),r=i(639952);function s(){const e=(0,n.useDispatch)(),{showToast:t,showOneToast:i}=(0,o.F9)();return{showToast:t,showOneToast:i,showRepinConfirmation:(i,n)=>{n||e((0,r.WF)()),setTimeout((()=>{n||e((0,r.a5)()),t(i)}),a.z)}}}},77388:(e,t,i)=>{i.r(t),i.d(t,{default:()=>B});var n=i(667294),a=i(702664),o=i(140203),r=i(223019),s=i(761881),l=i(898781),d=i(349700),c=i(883119),u=i(785893);function p({isOwnProfile:e,username:t}){const i=(0,l.ZP)();return(0,u.jsx)(c.xu,{alignItems:"center",direction:"column",display:"flex",marginEnd:"auto",marginStart:"auto",maxWidth:240,paddingY:4,children:e?(0,u.jsxs)(n.Fragment,{children:[(0,u.jsx)(c.xv,{align:"center",children:i.bt("你尚未收藏任何 Pin 图", "You haven’t saved any Pins yet", "profile.boards.pinner.OwnProfile.NoSavedIdeas", undefined, true)}),(0,u.jsx)(c.xu,{marginBottom:1,marginTop:4,children:(0,u.jsx)(c.zx,{role:"link",fullWidth:!0,href:"/",size:"lg",text:i.bt("寻找点子", "Find ideas", "profile.boards.OwnProfile.EmptyStateLego.Button", undefined, true)})})]}):(0,u.jsx)(c.xv,{align:"center",children:(0,d.nk)(i.bt("{{ username }} 尚未收藏任何 Pin 图", "{{ username }} hasn’t saved any Pins yet", "profile.boards.Pinner.EmptyStateLego", undefined, true),{username:t})})})}var h=i(331064),_=i(765980),m=i(920231),g=i(156637),v=i(989726),y=i(643010);const f="archived-boards";function b({renderBoard:e}){const t=(0,l.ZP)(),{isFetching:i,fetchMore:o}=(0,v.Z)({name:"BoardArchiveResource",options:{}}),r=(0,a.useSelector)((({feeds:e})=>e[f]||[]));return(0,u.jsxs)(n.Fragment,{children:[r.length>0&&(0,u.jsx)(c.xu,{color:(0,y.Yc)()?"secondary":void 0,dangerouslySetInlineStyle:{__style:{backgroundColor:(0,y.Yc)()?void 0:"#f6f6f6",marginBottom:-68,paddingBottom:86}},marginEnd:-4,marginStart:-4,children:(0,u.jsx)(c.xu,{paddingX:6,paddingY:1,children:(0,u.jsx)(m.Z,{cacheKey:f,columnWidth:300,renderItem:({data:t,itemIdx:i})=>e({data:t,itemIdx:i}),gutterWidth:6,items:r,layout:"uniformRow",loadItems:o,minCols:2})})}),i&&(0,u.jsx)(c.xu,{margin:5,children:(0,u.jsx)(c.$j,{accessibilityLabel:t.bt("正在加载用户图板", "Loading user boards", "Loading state for the user boards page", undefined, true),show:!0})})]})}var x=i(74399),S=i(430323),P=i(829407),E=i(298361),T=i(807609),I=i(784590),A=i(52022),w=i(19121),C=i(407043),R=i(773285),k=i(698330),O=i(50286),D=i(276775);const N=(0,s.Z)("archived-boards"),j=e=>`profile-boards:${e}`,L=({hasBoards:e,isOwnProfile:t,userId:i,username:o})=>{const r=(0,l.ZP)(),d=(0,D.useHistory)(),p=(0,s.Z)(`boardless-pins:${i}`),h=(0,a.useSelector)((e=>p(e)||[]));return(0,u.jsxs)(n.Fragment,{children:[e&&h.length>0&&(0,u.jsxs)(n.Fragment,{children:[(0,u.jsx)(c.xu,{paddingY:6,children:(0,u.jsx)(c.iz,{})}),t&&(0,u.jsxs)(c.xu,{alignItems:"center",marginBottom:4,display:"flex",justifyContent:"between",children:[(0,u.jsx)(c.X6,{size:"400",children:r.bt("未整理的点子", "Unorganized ideas", "ProfileBoards.UnorganizedIdeasHeading", undefined, true)}),(0,u.jsx)(c.xu,{"data-test-id":"boardless-pin-organize-button",children:(0,u.jsx)(c.zx,{onClick:()=>d.push(`/${o}/organize/`),text:r.bt("整理", "Organize", "ProfileBoards.UnorganizedIdeasOrganizeButton", undefined, true)})})]})]}),(0,u.jsx)(_.ZP,{resourceConfig:{name:"BoardlessPinsResource",options:{field_set_key:"mobile",userId:i}},feedItemProps:{viewType:5,viewParameter:t?3106:3107},feedKey:`boardless-pins:${i}`,trafficSource:"user"})]})},M=(0,n.createContext)({isForArchivedBoards:!1});function F({data:e,itemIdx:t}){var i;const s=(0,l.ZP)(),{checkExperiment:d}=(0,R.F)(),p=(0,D.useRouteMatch)(),{username:h}=(0,w.Z)(),_=h===p.params.username,{isForArchivedBoards:m,firstBoard:g}=(0,n.useContext)(M),v=(0,E.Z)(),y=(0,a.useSelector)((t=>t.stories[e.id])),f=null!==(i=null==y?void 0:y.objects.map((e=>{var t;return{name:"AllPins",url:null!==(t=e.image_medium_url)&&void 0!==t?t:""}})))&&void 0!==i?i:[],b=decodeURIComponent(p.params.username||""),x=(0,k.cm)(),S=b?x(b):null,{last_pin_save_time:P,pin_count:T}=null!=S?S:{};return"story"===e.type?(0,u.jsx)(c.xu,{marginEnd:1,children:(0,u.jsx)(o.Z,{storyPinImages:f,subtitle:P?v(P,!0):"",pinCount:T})}):(0,u.jsxs)(c.xu,{marginEnd:t%2==0?1:void 0,marginStart:t%2==1?1:void 0,"data-test-id":"board-card",children:[(0,u.jsx)(r.Z,{boardId:e.id,containerBackgroundColor:m?"#f6f6f6":void 0,forwardedRef:g&&e.id===g.id?g.ref:void 0,showFollowButton:!1,type:"full",viewParameter:49,viewType:4}),_&&d("mweb_collab_existing_board").anyEnabled&&(0,u.jsx)(c.xu,{display:"flex",alignItems:"center",marginTop:-8,marginBottom:8,marginEnd:2,justifyContent:"end",children:(0,u.jsx)(c.xu,{position:"absolute",rounding:"circle",children:(0,u.jsx)(c.iP,{role:"link",href:`/board/${e.id}/edit/add_collaborators/`,rounding:"circle",tapStyle:"none",children:(0,u.jsx)(c.xu,{alignItems:"center",color:"secondary",display:"flex",direction:"column",height:36,justifyContent:"center",rounding:"circle",width:36,children:(0,u.jsx)(c.JO,{accessibilityLabel:s.bt("添加合作用户", "add collaborators", "Accessibility label for add collaborator icon", undefined, true),color:"subtle",icon:"person-add",size:20})})})})})]})}const U=({username:e})=>({field_set_key:"profile_grid_item",filter_stories:!1,sort:"last_pinned_to",username:e});function B(){var e,t,i;const o=(0,l.ZP)(),r=(0,A.Z)(),s=(0,D.useRouteMatch)(),_=(0,O.HG)(),v=(0,n.useRef)(null),{isAuthenticated:y,isProfilePinsStale:f}=(0,a.useSelector)((e=>e.session)),{username:E}=(0,w.Z)(),R=decodeURIComponent(s.params.username||""),B=(0,D.useHistory)(),{logContextEvent:z}=(0,C.v)(),V=(0,I.Z)(y?{name:"UserResource",options:{username:R,field_set_key:"quicksave"}}:null),H=(0,I.Z)({name:"BoardsFeedResource",options:U({username:R})});(0,n.useEffect)((()=>{H.error&&y&&B.replace("/")}),[B,H,y]);const Z=(0,a.useSelector)((e=>N(e,{match:s})||[])),G=(0,a.useSelector)((({feeds:e})=>{const t=e[j(R||"")]||[],i=t.some((({type:e})=>"board"===e));return!_&&i?t:t.filter((({type:e})=>"story"!==e))})),K=E===R,W=(0,k.cm)(),$=R?W(R):null,Y=null!==(e=null==$?void 0:$.id)&&void 0!==e?e:"",q=(0,T.Z)(),X=y&&!(null==$||!$.has_quicksave_board),J=null===(t=G.find((e=>"board"===e.type)))||void 0===t?void 0:t.id;(0,P.Z)((()=>{z({event_type:13,view_parameter:K?3106:3107,view_type:4,component:209})}));const Q=(0,n.useMemo)((()=>({isForArchivedBoards:!1,firstBoard:J?{id:J,ref:v}:null})),[J]),ee=(0,n.useMemo)((()=>({isForArchivedBoards:!0})),[]);return 404===(null===(i=V.error)||void 0===i?void 0:i.httpStatus)||H.error?(0,u.jsx)(D.Redirect,{to:{pathname:"/ideas/",state:{showError:!0}}}):(0,u.jsx)(g.Z,{objectIdStr:Y,viewType:4,viewParameter:K?3106:3107,component:13669,children:(0,u.jsx)(S.Z,{objectId:Y,view:4,viewParameter:K?3106:3107,component:13669,children:(0,u.jsxs)(c.xu,{children:[(0,u.jsxs)(c.xu,{marginTop:-3,"data-test-id":"grid",children:[G.length>0&&(0,u.jsx)(S.Z,{objectId:Y,view:4,viewParameter:K?3106:3107,component:209,children:(0,u.jsx)(M.Provider,{value:Q,children:(0,u.jsx)(m.Z,{cacheKey:j(R),columnWidth:_?256:300,renderItem:({data:e,itemIdx:t})=>(0,u.jsx)(F,{data:e,itemIdx:t}),items:G,layout:"basic",id:"profileBoardsFeed",loadItems:H.fetchMore,minCols:2,serverRender:!0})})}),(0,u.jsx)(h.Z,{anchors:{4011:v.current},placementId:1000312,positionRelativeToAnchor:!1}),!q&&H.isFetching&&(0,u.jsx)(c.xu,{margin:5,children:(0,u.jsx)(c.$j,{accessibilityLabel:o.bt("正在加载用户图板", "Loading user boards", "Loading state for the user boards page", undefined, true),show:!0})})]}),!q&&H.isAtEnd&&(0,u.jsxs)(n.Fragment,{children:[X?(0,u.jsx)(L,{hasBoards:G.length>0||Z.length>0,isOwnProfile:K,userId:Y,username:R}):0===G.length&&(0,u.jsx)(p,{isOwnProfile:K,username:R}),K&&(0,u.jsx)(M.Provider,{value:ee,children:(0,u.jsx)(b,{renderBoard:({data:e,itemIdx:t})=>(0,u.jsx)(F,{data:e,itemIdx:t})})}),G.length>0&&!y&&(0,u.jsxs)(c.xu,{children:[(0,u.jsx)(c.xu,{marginTop:_?6:3,marginBottom:_?6:3,children:(0,u.jsx)(c.X6,{align:"center",overflow:"breakWord",size:_?"500":"400",children:(0,u.jsx)(c.xu,{"data-test-id":"more-ideas-heading-text",children:(0,u.jsx)(c.iP,{onTap:()=>{r({action:"click",item:"more-ideas-heading-text"})},children:(0,d.nk)(o.bt("更多来自 {{user}} 的创意点子", "More ideas from {{user}}", "heading to display more pins on user profile", undefined, true),{user:(null==$?void 0:$.full_name)||R})})})})}),(0,u.jsx)(x.Z,{isOwnProfile:K,isProfilePinsStale:!!f,username:R,isRelatedPins:!0})]})]})]})})})}},239682:(e,t,i)=>{function n(e,t,i){return{privacy_filter:t?"secret":"public",sort:i||"last_pinned_to",field_set_key:"profile_grid_item",username:e}}i.d(t,{Z:()=>n})},59644:(e,t,i)=>{i.d(t,{Z:()=>n});const n=(e,t)=>`${e}:${t||""}`},240265:(e,t,i)=>{i.d(t,{O:()=>s,Q:()=>l});var n=i(59644),a=i(414327),o=i(956800);const r=["alphabetical","last_pinned_to","oldest","newest","group_boards_at_top","custom"],s={name:"BoardsResource",key:"boardsResource",options:({boardOrder:e,filterStories:t,mixPublicSecret:i,username:n},a)=>({privacy_filter:"all",sort:e||"last_pinned_to",field_set_key:"profile_grid_item",filter_stories:t,username:n,page_size:25,group_by:i?"mix_public_private":"visibility",include_archived:!0,redux_normalize_feed:!0,...a?{orbac_subject_id:a}:Object.freeze({})})},l=e=>r.reduce(((t,i)=>{const r=[(0,o.N8)("profileBoards",(0,n.Z)(e,i))];return[!0,!1].forEach((t=>{[!0,!1].forEach((n=>{r.push((0,a.jB)(s.name,s.options({username:e,boardOrder:i,mixPublicSecret:t,filterStories:n})))}))})),t.concat(r)}),[])},254176:(e,t,i)=>{i.d(t,{$z:()=>Z,Br:()=>x,Cr:()=>N,K8:()=>A,KQ:()=>K,L1:()=>$,NH:()=>ne,OA:()=>W,RZ:()=>X,Tq:()=>T,Xi:()=>V,YQ:()=>G,YV:()=>D,ZP:()=>j,aX:()=>L,eo:()=>P,fJ:()=>q,h6:()=>Q,k8:()=>ee,md:()=>S,oG:()=>E,oL:()=>M,of:()=>w,rS:()=>ae,xH:()=>I,xQ:()=>C,xR:()=>H,xk:()=>k,yT:()=>b,yt:()=>te,zC:()=>ie,zS:()=>Y});var n,a,o,r,s,l,d=i(702664),c=i(27255),u=i(239682),p=i(172071),h=i(422946),_=i(248327),m=i(240265),g=i(414327),v=i(214494),y=i(956800),f=i(167912);function b(e){return{type:"BOARD_UPDATE_COMPLETE",payload:{board:e}}}function x(e){return{type:"BOARD_PIN_COUNT_CHANGED",payload:e}}function S(e,t){return{type:"BOARD_FOLLOW",payload:{boardId:e,value:t}}}function P({viewingUserId:e,viewingUsername:t,boardId:i,boardPinCount:n}){return{type:"BOARD_DELETE",payload:{viewingUserId:e,viewingUsername:t,boardId:i,boardPinCount:n}}}const E=(e,t)=>i=>i((0,_.U)("BoardResource",{options:{board_id:e,field_set_key:t}}));function T(e,t,i){return(0,_.U)("BoardResource",{options:{board_id:e,field_set_key:t,...i?{orbac_subject_id:i}:{}}})}function I(e,t,i){return n=>v.Z.create("BoardsMergeResource",{source_board_id:e,target_board_id:t,...i?{orbac_subject_id:i}:{}}).callUpdate().then((()=>Promise.all([n(P({boardId:e})),n(T(t,"pin_count")),n((0,y.N8)(h.DV.BOARD_SECTIONS,t))])))}function A(e){return t=>{e&&(0,m.Q)(e).forEach((e=>{t(e)}))}}const w=e=>({type:"BOARD_DISMISS_SENSITIVITY_SCREEN",payload:{boardId:e}}),C=e=>E(e,"pin_count");function R(e,t){return{type:"BOARD_ARCHIVE",payload:{boardId:e,username:t}}}function k(e,t){return i=>(i(R(e)),v.Z.create("BoardArchiveResource",{boardId:e,orbacSubjectId:t}).callUpdate())}function O(e){return{type:"BOARD_UNARCHIVE",payload:{boardId:e}}}function D(e,t){return i=>(i(O(e)),v.Z.create("BoardArchiveResource",{boardId:e,orbacSubjectId:t}).callDelete())}const N=(e,t)=>({type:"BOARD_COVER_IMAGE_UPDATED",payload:{boardId:e,coverPin:t}}),j=e=>({type:"BOARD_DISABLE_MORE_IDEAS_BADGING",payload:{boardId:e}});function L(e,t,i){const n={name:e,privacy:c.Z.BoardPrivacy.PUBLIC,username:t,...i?{orbac_subject_id:i}:Object.freeze({})};return e=>v.Z.create("BoardResource",n).callCreate().then((i=>{const n=i.resource_response.data;return e(t&&(0,g.jB)("BoardsResource",(0,u.Z)(t,!1))),n}))}function M(e={},t,i){return{type:"BOARD_CREATE_COMPLETE",payload:{options:e,board:t},error:i}}const F=(e,t,i)=>({type:"BOARD_INVITE_APPROVED_BY_VIEWER",payload:{boardId:e,isRequestToJoin:t,collaboratingUser:i}}),U=(e,t)=>({type:"BOARD_INVITE_DENIED_BY_VIEWER",payload:{boardId:e,userId:t}}),B=(e,t,i)=>({type:"BOARD_COLLABORATOR_DELETE",payload:{boardId:e,userId:t,viewingUser:i}}),z=(e,t,i,n)=>({type:"BOARD_COLLABORATOR_ADD",payload:{boardId:e,viewingUser:t,status:i,collaboratingUsers:n}}),V=(e,t=!1,i)=>n=>(n(F(e,t,i)),v.Z.create("BoardInviteResource",{board_id:e,invited_user_id:null==i?void 0:i.id}).callUpdate()),H=(e,t)=>i=>(i(U(e,t)),v.Z.create("BoardInviteResource",{board_id:e,invited_user_id:t}).callDelete()),Z=(e,t,i)=>n=>(n(z(e,t,"new",i)),v.Z.create("BoardInviteResource",{board_id:e,invited_user_ids:i.map((({id:e})=>e))}).callCreate()),G=(e,t,i,n,a)=>o=>{var r,s;const l="accepted"===t?"BoardCollaboratorResource":"BoardInviteResource";return o(B(e,null!==(r=null==n?void 0:n.id)&&void 0!==r?r:"",i)),v.Z.create(l,{board_id:e,field_set_key:"boardEdit",invited_user_id:null!==(s=null==n?void 0:n.id)&&void 0!==s?s:"",...a?{orbac_subject_id:a}:{}}).callDelete().catch((()=>o(z(e,i,t,[n]))))},K=(e,t)=>i=>v.Z.create("SocialSearchCampaignResource",{boardId:e}).callGet().then((n=>{if(!n||!n.resource_response)return{};const a=n.resource_response.data||{},o=(a.model||{}).custom_properties||{},{campaign_id:r="unknown"}=o,s=a.display_data||{},l=!!a.display_data,d=s.header_image_mobile,c=s.header_background_color,u=s.text_icon_color,h={boardId:e,isSocialSeasonalBoard:l,socialHeaderBgImage:d,socialHeaderBgColor:c,textIconColor:u};return p.Z.increment(`mweb.seasonal_board.${r}.${t}.land`),i((e=>({type:"SET_SOCIAL_SEASONAL_BOARD",payload:e}))(h))})),W=(e,t)=>()=>v.Z.create("BoardEmailInviteResource",{board_id:e,emails:t}).callCreate(),$=(e,t,i,n)=>a=>{const o=v.Z.create("BoardResource",{board_id:i}).callDelete();return a(P({viewingUserId:e,viewingUsername:t,boardId:i,boardPinCount:n})),o},Y=(e,t)=>i=>v.Z.create("BoardArchiveResource",{boardId:e}).callUpdate().then((n=>(i((0,y.Qv)("archived-boards",[{id:e,type:"board"}])),i(R(e,t)),n))),q=(e,t)=>i=>v.Z.create("BoardArchiveResource",{boardId:e}).callDelete().then((n=>(i((0,y.Qv)(`profile-boards:${t}`,[{id:e,type:"board"}])),i(O(e)),n))),X=()=>{const e=void 0!==n?n:n=i(604955),[t]=(0,f.useMutation)(e);return async e=>{const i={boardId:e};return await new Promise(((e,n)=>{t({variables:{...i},onCompleted:(t,i)=>{i&&n(i[0]),e(t)},onError:e=>n(e)})}))}},J=()=>{const e=void 0!==a?a:a=i(90105),[t]=(0,f.useMutation)(e);return async(e,i,n)=>{const a={boardId:e,userId:i,ban:n||!1};return await new Promise(((e,i)=>{t({variables:{...a},onCompleted:(t,n)=>{n&&i(n[0]),e(t)},onError:e=>i(e)})}))}},Q=()=>{const e=void 0!==r?r:r=i(518190),[t]=(0,f.useMutation)(e),n=(0,d.useDispatch)();return async(e,i,a)=>{const o={boardId:e,userId:(null==a?void 0:a.id)||""};return await new Promise(((r,s)=>{t({variables:{...o},onCompleted:(t,o)=>{o&&s(o[0]),n(F(e,i,a)),r(t)},onError:e=>s(e)})}))}},ee=()=>{const e=J();return(t,i)=>n=>(n(U(t,i)),e(t,i))},te=()=>{const e=void 0!==s?s:s=i(16945),[t]=(0,f.useMutation)(e);return async(e,i)=>{const n={boardId:e,collaboratorIds:i.map((({id:e})=>e)),message:""};return await new Promise(((e,i)=>{t({variables:{...n},onCompleted:(t,n)=>{n&&i(n[0]),e(t)},onError:e=>i(e)})}))}},ie=()=>{const e=void 0!==l?l:l=i(787525),[t]=(0,f.useMutation)(e);return async(e,i)=>{const n={board:e,emails:i,message:""};return await new Promise(((e,i)=>{t({variables:{...n},onCompleted:(t,n)=>{n&&i(n[0]),e(t)},onError:e=>i(e)})}))}},ne=()=>{const e=te();return(t,i,n)=>a=>(a(z(t,i,"new",n)),e(t,n))},ae=()=>{const e=J(),t=(()=>{const e=void 0!==o?o:o=i(472297),[t]=(0,f.useMutation)(e);return async(e,i)=>{const n={board:e,collaboratorIds:[i]};return await new Promise(((e,i)=>{t({variables:{...n},onCompleted:(t,n)=>{n&&i(n[0]),e(t)},onError:e=>i(e)})}))}})();return(i,n,a,o)=>r=>{var s,l;const d="accepted"===n?t:e;return r(B(i,null!==(s=null==o?void 0:o.id)&&void 0!==s?s:"",a)),d(i,null!==(l=null==o?void 0:o.id)&&void 0!==l?l:"").catch((()=>r(z(i,a,n,[o]))))}}},712055:(e,t,i)=>{i.d(t,{Z:()=>r,f:()=>s});var n=i(214494),a=i(254176);function o(e){return n.Z.create("BoardFollowResource",{board_id:e})}function r(e){return t=>{o(e).callCreate().catch((()=>{t((0,a.md)(e,!1))})),t((0,a.md)(e,!0))}}function s(e){return t=>{o(e).callDelete().catch((()=>{t((0,a.md)(e,!0))})),t((0,a.md)(e,!1))}}},956800:(e,t,i)=>{function n(e){return{type:"FEED_ITEM_REORDERED",payload:e}}function a(e,t){return{type:"FEED_INVALIDATE",payload:{feedType:e,feedId:t}}}i.d(t,{EX:()=>r,N8:()=>a,Qv:()=>o,_f:()=>n,vX:()=>s});const o=(e,t,i=Object.freeze({}))=>({type:"APPEND_FEED_ITEMS",payload:{id:e,options:i,items:t}});function r(e){return{type:"FEED_ITEMS_REMOVED",payload:e}}function s(e){return{type:"FEED_ITEMS_ADDED",payload:e}}},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),o=i(782677),r=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,r.eR)(e).then((e=>{i(e)})):i(t)})))(c,u).then((r=>{const c={...e,method:"button"!==i||d?i:"button_external",image_url:r,image_base64:void 0},u="PinResource";return s.Z.create(u,c).callCreate().then((e=>{const i=(0,o.Fv)(e.resource_response.data,n.Z.PinResource);t((0,a.XM)(u,c,e,i));const r=e.resource_response.data,{board:{id:s},pinner:{id:d},section:p}=r,h=p&&p.id;return t(l(r.id,s,h,d)),e}))}))}},139574:(e,t,i)=>{i.d(t,{L:()=>s,q:()=>l});var n=i(422946),a=i(956800),o=i(254176),r=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,o.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"})),r.Z.create(u,p).callDelete()}}const l=({pinId:e,boardId:t,boardSectionId:i,clientTrackingParams:n})=>(a,o)=>{const s=r.Z.create("PinResource",{id:e,client_tracking_params:n}).callDelete(),{session:{userId:l}}=o();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:()=>o});var n=i(349741),a=i(956800);const o=({pinId:e,boardId:t,i18n:i,logContextEvent:o,onSuccess:r,onUndo:s,originalPinId:l,showNewUserSavetoProfileAnimation:d,showRepinConfirmation:c,showToast:u,section:p,trackingParams:h,isOneTapSave:_,viewType:m,historyPush:g})=>(v,y)=>{var f,b,x,S,P;const{pins:E,session:T,feeds:I}=y(),A=E[e];t&&((null===(f=null!==(b=null==A?void 0:A.shopping_flags)&&void 0!==b?b:[])||void 0===f?void 0:f.length)>0||null!=A&&A.rich_summary&&(null===(x=null!==(S=null==A||null===(P=A.rich_summary)||void 0===P?void 0:P.products)&&void 0!==S?S:[])||void 0===x?void 0:x.length)>0)&&(I[`board-shop-saved-preview:${t}`]&&v((0,a.Qv)(`board-shop-saved-preview:${t}`,[A],{isPrepend:!0})),I[`board-shop-saved:${t}`]&&v((0,a.Qv)(`board-shop-saved:${t}`,[A],{isPrepend:!0})));return new n.Z({boardId:t,dispatch:v,i18n:i,isLegoSaveStyle:!0,isOneTapSave:_,onSuccess:r,onUndo:s,originalPinId:l,pin:A,resourceName:"RepinResource",section:p,showNewUserSavetoProfileAnimation:d,showRepinToasts:e=>c?c(e):u?u(e):void 0,trackingParams:h,userId:T.userId,viewType:m,historyPush:g}).processRepin(o)}},639952:(e,t,i)=>{i.d(t,{Cp:()=>l,FK:()=>s,H5:()=>x,MI:()=>_,Mj:()=>f,O0:()=>h,QZ:()=>r,W:()=>v,WF:()=>c,Wz:()=>S,a5:()=>u,dz:()=>g,e0:()=>p,e2:()=>o,iW:()=>y,n1:()=>a,rm:()=>d,wb:()=>b,xu:()=>m});var n=i(53987);const a=()=>({type:"DISMISS_UNAUTH_SAVE"}),o=()=>({type:"COMPLETE_UNAUTH_SAVE_ACTION"}),r=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}}),h=()=>({type:"SET_OWN_PROFILE_PINS_REFRESH"}),_=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"},f=(e,t,i)=>n=>n(((e,t,i)=>({type:"SET_SHARE_ON_BOARD_PAGE",payload:{isShareMenuOpen:e,objectType:t,objectId:i}}))(e,t,i)),b=()=>({type:"STOP_SCROLL_TO_CLOSEUP_PIN"}),x=e=>({type:"UPDATE_USER_FIRST_HOME_FEED_REQUEST_AFTER_NUX",payload:e}),S=(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}}},70090:(e,t,i)=>{i.d(t,{ZN:()=>r,bJ:()=>l,fv:()=>s,hr:()=>o,lD:()=>d});var n=i(214494);function a(e,t){return n.Z.create("InterestFollowResource",{interest_id:e,interest_list:"favorited",referrer:t})}const o=(e,t)=>({type:"TOPIC_FOLLOW",payload:{id:e,value:t}}),r=(e,t)=>i=>{a(e,t).callCreate().catch((()=>i(o(e,!1)))),i(o(e,!0))},s=(e,t)=>i=>{a(e,t).callDelete().catch((()=>i(o(e,!0)))),i(o(e,!1))},l=e=>t=>{const i=e.reduce(((e,t)=>({...e,[t.id]:!t.is_followed})),{});return n.Z.create("UpdateFollowedInterestsResource",{updated_interest_follows:i}).callUpdate().then((()=>{e.forEach((({id:e,is_followed:i})=>{t(o(e,!i))}))}))},d=(e,t="")=>i=>n.Z.create("UpdateFollowedInterestsResource",{referrer:t,updated_interest_follows:e}).callUpdate().then((()=>{Object.keys(e).forEach((t=>{const n=e[t];i(o(t,n))}))}))},461773:(e,t,i)=>{i.d(t,{KF:()=>d,ZN:()=>r,fv:()=>l,kE:()=>u,yA:()=>s});var n=i(214494),a=i(90326);function o(e,t){return n.Z.create("UserFollowResource",{user_id:e,aux_data:t?{pin_id:t}:void 0})}function r(e,t=null){return i=>{o(e,t).callCreate().catch((()=>i((0,a.P_)(e,!1)))),i((0,a.P_)(e,!0))}}function s(e,t=null){return async i=>{i((0,a.P_)(e,!0)),await o(e,t).callCreate().catch((t=>{throw i((0,a.P_)(e,!1)),t}))}}function l(e,t=null){return i=>{o(e,t).callDelete().catch((()=>i((0,a.P_)(e,!0)))),i((0,a.P_)(e,!1))}}function d(e,t=null){return async i=>{i((0,a.P_)(e,!1)),await o(e,t).callDelete().catch((t=>{throw i((0,a.P_)(e,!0)),t}))}}const c=(e,t)=>({type:"USER_BULK_FOLLOW",payload:{ids:e,value:t}}),u=e=>t=>{e.length>0&&(n.Z.create("ApiResource",{url:"/v3/users/follow/",data:{followee_ids:e.join(",")}}).callUpdate().catch((()=>t(c(e,!1)))),t(c(e,!0)))}},90326:(e,t,i)=>{i.d(t,{Ge:()=>l,JS:()=>o,OF:()=>g,P_:()=>r,Q_:()=>u,b8:()=>p,eR:()=>m,h2:()=>d,h6:()=>c});var n=i(735422),a=i(214494);function o(e){return{type:"UPDATE_USER_PIN_COUNT",payload:e}}const r=(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})=>o=>(o(s(e,!0)),a.Z.create("UserBlockResource",{blocked_user_id:e,orbac_subject_id:t,block_source:i,block_context:n}).callCreate().catch((()=>o(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)=>(o,r)=>{a.Z.create("ApiResource",{url:"/v3/users/me/"}).callCreate().then((()=>{i({event_type:48,object_id_str:r().session.userId}),e(),(0,n.Dm)()}),t)};const h=async(e,t,i)=>{var n;const o=await a.Z.create("VIPResource",{upload_ids:[e]}).callGet();if(null!==(n=o.resource_response)&&void 0!==n&&n.data[e]){const n=o.resource_response.data[e],{status:a,signature:r}=n;if("processing"===a||"registered"===a)setTimeout((async()=>{h(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`||"")(r);t(e)}else i()}else i()},_=e=>new Promise(((t,i)=>{var n,o,r,s,l;n=e,o="pinimage",r=()=>{},s=e=>{t(e)},l=e=>{i(e)},(new FormData).append("img",n),a.Z.create("VIPResource",{type:o}).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,o=new XMLHttpRequest;o.open("POST",i,!0),o.onload=()=>{var e;(e=o.status)>=200&&e<400?(r(100),h(t,s,l)):l()},o.upload.onprogress=e=>{const t=Math.round(100*e.loaded/e.total);r(t)};const d=new FormData;for(const e in a)d.append(e,a[e]);d.append("file",n),o.send(d)}}),(()=>{l()}))})),m=e=>new Promise(((t,i)=>{"string"==typeof e?e.startsWith("data")&&_(function(e,t=512){const i=e.split(";"),n=i[0].split(":")[1],a=i[1].split(",")[1],o=atob(a),r=[];for(let s=0;s<o.length;s+=t){const e=o.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);r.push(n)}return new Blob(r,{type:n})}(e)).then((e=>t(e))):i("Invalid Image")})),g=e=>()=>a.Z.create("ApiResource",{url:"/v3/register/exists/",data:{email:e}}).callGet()},422946:(e,t,i)=>{i.d(t,{DV:()=>c,J:()=>m,ZP:()=>f});var n=i(59644),a=i(932995),o=i(483025),r=i(998651),s=i(648284),l=i(819063),d=i(338739);const c={AGGREGATED_COMMENTS:"aggregatedComments",AGGREGATED_COMMENT_REPLIES:"aggregated-comment-replies",BOARDFEED:"boardfeed",BOARDLESS_PINS:"boardless-pins",BOARD_SECTIONS:"board-sections",BOARD_SECTION_PINS:"board-section-pins",CALL_TO_CREATE_RESPONSES_FEED:"callToCreateResponsesFeed",STORY_PINS_FEED:"story-pins-feed",PROFILE_PINS_FEED:"profile-pins-feed",PROFILE_BOARDS:"profileBoards",SEARCH_PINS:"searchPins",STORY_PIN_DATA:"storyPinData",TODAY_ARTICLE_INTEREST_FEED:"todayArticleInterestFeed",TODAY_TAB:"todayTabFeed",UNIFIED_COMMENTS:"unified-comments",TRIED_IT_FEED:"trieditfeed"},u=new Set(["PinResource","RepinResource"]),p={ApiResource:e=>{return"/v3/orientation/nux_creator_recommendations/"===(null==e?void 0:e.url)?"nux-creator-recommendations":null!=e&&e.url.match(/\/v3\/call_to_create_pins\/([0-9]|[a-z]|[A-Z])+\/pins\//)?`call-to-create-pins:${e.pin_id}`:"/v3/users/me/interests/"===(null==e?void 0:e.url)?`recommended-interests:${null===(t=e.data)||void 0===t?void 0:t.blend_type}`:"";var t},AggregatedActivityFeedResource:e=>`trieditfeed:${e.aggregated_pin_data_id}`,AggregatedCommentFeedResource:e=>`aggregated-comments:${e.objectId}`,AggregatedCommentReplyFeedResource:e=>`${c.AGGREGATED_COMMENT_REPLIES}:${e.objectId}`,BoardlessPinsResource:e=>`boardless-pins:${e.userId}`,BestPinsFeedAltResource:e=>`idea-page-best-pins:${e.interest}`,BoardArchiveResource:e=>"archived-boards",BoardCollaboratorsResource:e=>`board-collaborators:${e.board_id}`,BoardContentRecommendationResource:e=>`recommendation-feed:${e.id}`,BoardFeedResource:e=>`boardfeed:${e.board_id}`,BoardSectionsRepinResource:e=>`board-sections:${e.board_id}`,BoardSectionsResource:e=>`board-sections:${e.board_id}`,BoardSectionPinsResource:e=>`board-section-pins:${e.section_id}`,BoardsFeedResource:e=>`profile-boards:${e.username}`,BoardToolsFeedResource:e=>`board-tools:${e.boardId}`,ConversationsResource:e=>"conversations",DidItLikedByResource:e=>`triedit-likes:${e.didItDataId}`,DidItUserFeedResource:e=>`profile-tried:${e.username}`,ExploreArticleBlockSearchResource:e=>`explore-search:${e.article_id}:${e.block_id}`,ExploreArticleBlockUserResource:e=>`explore-user:${e.article_id}:${e.block_id}`,ExploreArticleBlockPinResource:e=>`explore-pin:${e.article_id}:${e.block_id}`,ExploreArticleBlockUserDidItDataResource:e=>`explore-did_it:${e.article_id}:${e.block_id}`,ExploreArticleResource:({response:e})=>{if(!e)return"";const t="explore_tab_pin".length,i=e.resource_response.data,{story_type:n}=i?i.objects[0]:{story_type:""};return`explore-${n.slice(t)}:${i.id}`},FollowingFeedResource:()=>"following",HolidaySpotlightRelatedFeedResource:e=>`holiday-spotlight-related:${e.storyType}`,HolidaySpotlightResource:e=>`holiday-spotlight:${e.storyType}`,InterestResource:e=>`klp-pins:${e.interest}`,MoreIdeasTabsBoardsResource:()=>"homefeed-more-ideas-tabs",NewsHubResource:()=>"notifications",NewsHubDetailsResource:e=>`newshubdetail:${e.news_id}`,NuxInterestsResource:e=>"nuxTopics",PinsFromBrandResource:e=>`brand-pins:${e.pin}`,ReactionsResource:e=>`reactions:${e.pin_id}`,RelatedArticlesResource:e=>`related-articles:${e.article_id}`,RelatedModulesResource:e=>`related-modules:${e.pin_id}`,RelatedPinFeedResource:e=>`related-pins:${e.pin}`,RelatedProductFeedResource:e=>"pin"===e.shop_source?`closeup-related-products:${e.pin}`:`related-products:${e.pin}`,RelatedStreamResource:e=>`related-story-pins:${e.pinId}`,SearchResource:e=>{const t=`search:${e.scope}:${e.query}:${e.filters||""}:${e.article||""}`;return e.auto_correction_disabled?`${t}:auto-correction-disabled`:t},BaseSearchResource:e=>{const t=`search:${e.scope}:${e.query}:${e.filters||""}:${e.appliedProductFilters}:${e.article||""}`;return e.auto_correction_disabled?`${t}:auto-correction-disabled`:t},SectionToolsFeedResource:e=>`section-tools:${e.sectionId}`,ShareSuggestionsTypeaheadResource:e=>`share-suggestions:${e.board||e.user}:${e.term}`,ShoppingFeedModularizedResource:e=>e.saved_products_only?`board-shop-saved:${e.board_id}`:`board-shop-related:${e.board_id}`,StoryFeedResource:e=>`story-feed:${e.feed_type}:${e.request_params}`,SuggestedCreatorFollowsResource:()=>"suggested-creator-follows",StoryPinTaggedProductsResource:()=>"story-pin-tagged-products",TodayArticleFeedResource:e=>`today-article:${e.id}`,IdeasHubTodayArticlesResource:e=>`today-article:${e.interest_id}`,TodayTabInterestFeedResource:e=>`today-article-interestfeed:${e.interest_id}`,TodayTabResource:()=>"today-tab",SeoTier1CandidateResource:()=>"tier1-feed",UnifiedCommentsResource:e=>`unified-comments:${e.aggregated_pin_id}`,UserActivityPinsResource:e=>`profile-pins-feed:${e.user_id}`,UserHomefeedResource:e=>e.pin_quiz?"pin-quiz":"homefeed",UserFollowingResource:e=>`user-following:${e.username}`,UserRecentActivityResource:()=>"user-recent-activity",UserStoryPinsFeedResource:e=>`story-pins-feed:${e.user_id}`,VideosFeedResource:e=>"videos-feed",VisualLiveSearchResource:e=>`visual-search:${e.pin_id}:${e.crop.x}${e.crop.y}${e.crop.w}${e.crop.h}`,VisualLiveSearchProductFeedResource:e=>`visual-search-products:${e.pin_id}:${e.crop.x}${e.crop.y}${e.crop.w}${e.crop.h}`,VisualSearchFlashlightUnifiedResource:e=>`related-products-unified:${e.pin_id}`,BoardFollowingResource:e=>`board-following:${e.username}`,InterestFollowingResource:e=>`topic-following:${e.username}`,UserPinsResource:e=>`profile-pins:${e.username}`,TopicFeedResource:e=>e.best_pins?`best-topic-pins:${e.interest}`:`topic-pins:${e.interest}`},h={ApiResource:({options:e})=>null!=e&&e.url.match(/\/v3\/call_to_create_pins\/([0-9]|[a-z]|[A-Z])+\/pins\//)?{type:c.CALL_TO_CREATE_RESPONSES_FEED,id:e.pin_id}:null,AggregatedActivityFeedResource:({options:{aggregated_pin_data_id:e}})=>({type:c.TRIED_IT_FEED,id:e}),AggregatedCommentFeedResource:({options:{objectId:e}})=>({type:c.AGGREGATED_COMMENTS,id:e}),AggregatedCommentReplyFeedResource:({options:{isUnifiedComment:e,objectId:t}})=>({type:e?c.AGGREGATED_COMMENT_REPLIES:c.AGGREGATED_COMMENTS,id:t,reversed:!0}),BoardFeedResource:({options:{board_id:e}})=>({type:c.BOARDFEED,id:e}),BoardlessPinsResource:({options:{userId:e}})=>({type:c.BOARDLESS_PINS,id:e}),BoardSectionPinsResource:({options:{section_id:e}})=>({type:c.BOARD_SECTION_PINS,id:e}),BoardSectionsResource:({options:{board_id:e}})=>({type:c.BOARD_SECTIONS,id:e}),BoardsResource:({options:{username:e,sort:t}})=>({type:c.PROFILE_BOARDS,id:(0,n.Z)(e,t)}),BaseSearchResource:({options:{auto_correction_disabled:e,appliedProductFilters:t,scope:i,filters:n,query_pin_sigs:a,query:o,user:l},response:d})=>{var u;return{type:c.SEARCH_PINS,id:(0,s.Tb)({appliedProductFilters:t,autoCorrectionDisabled:e,filters:n,query:o,selectedPinImgSig:a,scope:i,user:l}),items:null!==(u=d.resource_response.data)&&void 0!==u&&u.results?(0,r.L)(d.resource_response.data.results).filteredResults:[]}},DidItCommentsResource:({options:{objectId:e}})=>({type:c.AGGREGATED_COMMENTS,id:e,reversed:!0}),DidItUserFeedResource:({options:{username:e}})=>({type:c.TRIED_IT_FEED,id:e}),IdeasHubTodayArticlesResource:({options:{interest_id:e}})=>({type:c.TODAY_TAB,id:e}),RelatedArticlesResource:({options:{article_id:e}})=>({type:c.TODAY_TAB,id:e}),StoryPinDraftsResource:({options:{userId:e}})=>({type:c.STORY_PIN_DATA,id:e}),TodayTabInterestFeedResource:({options:{interest_id:e}})=>({type:c.TODAY_ARTICLE_INTEREST_FEED,id:e}),TodayTabResource:()=>({type:c.TODAY_TAB,id:"todayTab"}),UnifiedCommentsPreviewResource:({options:{aggregated_pin_id:e}})=>({type:c.UNIFIED_COMMENTS,id:e}),UnifiedCommentsResource:({options:{aggregated_pin_id:e,is_reversed:t}})=>({type:c.UNIFIED_COMMENTS,id:e,reversed:t}),UserActivityPinsResource:({options:{user_id:e}})=>({type:c.PROFILE_PINS_FEED,id:e}),UserStoryPinsFeedResource:({response:e,options:{user_id:t}})=>({type:c.STORY_PINS_FEED,id:t,items:e.resource_response.data||[]})},_=(e,{pinId:t,oldFeedId:i,newFeedId:n})=>i===n?e:((e,{pinId:t,feedId:i})=>e[i]?{...e,[i]:[{type:"pin",id:t},...e[i]]}:e)(((e,{pinId:t,feedId:i})=>e[i]?{...e,[i]:e[i].filter((e=>!("pin"===e.type&&e.id===t)))}:e)(e,{pinId:t,feedId:i}),{pinId:t,feedId:n}),m=(e,t)=>e in p?p[e](t):null,g=(e,t)=>t?`board-section-pins:${t}`:`boardfeed:${e}`,v=(e,t)=>e.map((({id:e,schema:i})=>i?{id:e,type:i,trackingParams:"pin"===i?t.pins[e].tracking_params:void 0,user_id:void 0}:null)).filter(Boolean),y=(e,t,i)=>Object.keys(e).reduce(((n,a)=>{const o=e[a]||[],r=o.filter((e=>!(e.type===t&&e.id===i)));return o.length!==r.length&&(n[a]=r),n}),{...e}),f=(e={},t)=>{switch(t.type){case d.zP:case d.aW:{const{payload:n}=t,{resource:a,options:r,normalizedResponse:s,schema:u}=n;if(s&&a in p){const i=((e,t,i)=>{const n=i||o.Z[e];if(n===l.LR)return t.result;if(n===l.sN)return t.result.map((e=>({id:e,schema:"board"})));if(n===l.Gn)return t.result.map((e=>({id:e,schema:"user"})));if(n===l.Ht)return t.result.map((e=>({id:e,schema:"invite"})));if(n===l.fE)return t.result.map((e=>({id:e,schema:"reaction"})));if("object"==typeof n){const e=Object.entries(n).find((([e,t])=>t===l.LR));if(e)return t.result[e[0]]}return null})(a,s,u);if(i&&Array.isArray(i)){const n=p[a](r);if("ShoppingFeedModularizedResource"===a){const{board_id:t,saved_products_only:n}=null!=r?r:{},a=`board-shop-related:${t}`,o=`board-shop-saved:${t}`,l=`board-shop-saved-preview:${t}`,d=[...e[a]||[]],c=[...e[o]||[]],u=[...e[l]||[]];return v(i,s.entities).forEach((e=>{var i;n?c.push(e):s.entities.pins&&(null===(i=s.entities.pins[e.id])||void 0===i?void 0:i.board)===t?u.push(e):d.push(e)})),{...e,[a]:d,[o]:c,[l]:u}}if("BoardToolsFeedResource"===a||"SectionToolsFeedResource"===a)return{...e,[n]:i};{const a=(t.type===d.aW&&e[n]||[]).concat(v(i,s.entities));return{...e,[n]:a}}}}else{var i;const a=n.response.resource_response.data;if(null===(i=n.options)||void 0===i||!i.redux_normalize_feed)return e;const o=h[n.resource](n);if(o){const{type:i,id:n,items:r,reversed:s}=o;let l=(r||a||[]).map((e=>((e,t)=>{switch(e.type){case"story":return{id:e.id,type:"story",story_type:e.story_type};case"module":return{id:e.id,type:"module",name:e.name};case"user":return{id:e.id,type:"user"};case"board":return t===c.PROFILE_BOARDS?{id:e.id,type:"board",onProfile:!0,profileGroup:e.archived_by_me_at?"archived":e.privacy||"public"}:{id:e.id,type:"board",onProfile:!1};case"board_section":return{type:"boardsection",id:e.id};case"triedit":return{type:"triedit",id:e.id};case"aggregatedcomment":return{type:"aggregatedcomment",id:e.id};case"home_feed_tab":return{type:"home_feed_tab",id:e.id,name:e.name};case"storypindata":return{id:e.id,type:"storypindata"};case"todayarticle":return{type:"todayarticle",id:e.id};case"unifiedcommentspreview":return"userdiditdata"===e.unified_comment.type?{type:"triedit",id:e.unified_comment.id}:{type:"aggregatedcomment",id:e.unified_comment.id};default:return{type:"pin",id:e.id}}})(e,i)));s&&(l=l.reverse());const u=`${i}:${n}`,p=e[u];if(p||t.type!==d.aW){const i=p||[];let n=l;return t.type===d.aW&&(n=s?l.concat(i):i.concat(l)),{...e,[u]:n}}}}break}case"FEED_ITEM_REORDERED":{const{payload:{feedType:i,feedId:n,itemType:o,targetItemId:r,sourceItemId:s}}=t,l=`${i}:${n}`,d=e[l]||[];let u=-1,p=-1;if([c.BOARDFEED,c.BOARD_SECTION_PINS,c.BOARD_SECTIONS,"profileBoards"].includes(i)&&(u=d.findIndex((e=>e.type===o&&e.id===s)),p=d.findIndex((e=>e.type===o&&e.id===r))),-1!==u&&-1!==p)return{...e,[l]:(0,a.Z)(d,u,p)};break}case"FEED_ITEMS_REMOVED":{const{payload:{feedType:i,feedId:n,inverseSelection:a,itemType:o,itemIds:r=[]}}=t,s=`${i}:${n}`,l=e[s]||[];if(l&&l.length>0&&(i===c.BOARD_SECTION_PINS||i===c.BOARDFEED)){const t=l.filter((e=>{const t=r.includes(e.id);return!(e.type===o&&(a&&!t||!a&&t))})),i=!!t.find((e=>"pin"===e.type));return{...e,[s]:i?t:[]}}if(l&&l.length>0&&i===c.BOARD_SECTIONS){const t=l.filter((e=>{const t=r.includes(e.id);return!(e.type===o&&t)}));return{...e,[s]:t}}if(l&&l.length>0&&(i===c.AGGREGATED_COMMENTS||i===c.BOARDLESS_PINS||i===c.PROFILE_PINS_FEED||i===c.STORY_PINS_FEED||i===c.UNIFIED_COMMENTS||i===c.TRIED_IT_FEED||i===c.STORY_PIN_DATA)){const t=l.filter((e=>{const t=r.includes(e.id);return!(e.type===o&&t)}));return{...e,[s]:t}}break}case"FEED_ITEMS_ADDED":{const{payload:{feedType:i,feedId:n,itemType:a,itemIds:o=[],prepend:r}}=t,s=`${i}:${n}`,l=e[s]||[];if(l&&(i===c.BOARD_SECTION_PINS||i===c.BOARDFEED||i===c.BOARDLESS_PINS)){const t=o.map((e=>({id:e,type:a})));let i=0;"story"===(l[0]||{}).type&&(i=1),"story"===(l[1]||{}).type&&(i=2);const n=[...l.slice(0,i),...t,...l.slice(i)];return{...e,[s]:n}}if(l&&i===c.BOARD_SECTIONS){const t=[...o].reverse().map((e=>({id:e,type:"boardsection"}))),i=l?[...t,...l]:[...t];return{...e,[s]:i}}if(i===c.AGGREGATED_COMMENTS||i===c.AGGREGATED_COMMENT_REPLIES||i===c.PROFILE_PINS_FEED||i===c.STORY_PINS_FEED||i===c.UNIFIED_COMMENTS){const t=o.map((e=>({id:e,type:a}))),i=l?[...r?t:l,...r?l:t]:t;return{...e,[s]:i}}if(i===c.TRIED_IT_FEED){const t=o.map((e=>({id:e,type:a}))),i=l?[...t,...l]:t;return{...e,[s]:i}}break}case"FEED_INVALIDATE":{const{payload:{feedType:i,feedId:n}}=t,a=`${i}:${n}`;if(e[a]||[])return{...e,[a]:null};break}case"APPEND_FEED_ITEMS":{const{payload:{id:i,items:n,options:a}}=t,o=e[i];if(o){let t;return t=a.isPrepend?o[0]&&"story"===o[0].type?[].concat(o[0],n,o.slice(1)):n.concat(o):o.concat(n),{...e,[i]:t}}return{...e,[i]:n}}case"PIN_DELETE":{const{payload:{pinId:i}}=t;return y(e,"pin",i)}case"BOARD_ARCHIVE":{const{payload:{boardId:i,username:n}}=t,a=`profile-boards:${null!=n?n:""}`;if(e[a])return{...e,[a]:e[a].filter((e=>e.id!==i))};break}case"BOARD_UNARCHIVE":{const{payload:{boardId:i}}=t,n="archived-boards";if(e[n])return{...e,[n]:e[n].filter((e=>e.id!==i))};break}case"BOARD_DELETE":{const{payload:{boardId:i}}=t;return y(e,"board",i)}case"BOARD_SECTION_DELETE":{const{payload:{boardSectionId:i}}=t;return y(e,"boardsection",i)}case"PINS_MOVE":{const{payload:{source:i,target:n,pinIds:a,userId:o}}=t,r=i.boardlessPins&&o&&`boardless-pins:${o}`||i.boardId&&g(i.boardId,i.sectionId),s=g(n.boardId,n.sectionId);return a.reduce(((e,t)=>_(e,{pinId:t,oldFeedId:r,newFeedId:s})),e)}case"PINS_MOVE_ALL":{const{payload:{source:i,target:n,excludePinIds:a}}=t,o=g(i.boardId,i.sectionId),r=g(n.boardId,n.sectionId),s={...e,[o]:a.map((e=>({type:"pin",id:e})))};return delete s[r],s}case"PIN_EDIT":{const{payload:{pinId:i,boardId:n,section:a,source:{boardId:o,sectionId:r}}}=t,s=g(o,r),l=g(n,null==a?void 0:a.id);return _(e,{pinId:i,oldFeedId:s,newFeedId:l})}case d.AF:if(u.has(t.payload.resource)){const i=t.payload.response.resource_response.data,n=i.board;let a;if("quick_saves"===n.layout)a=`boardless-pins:${t.payload.options.user_id}`;else{const e=t.payload.options.section;a=e?`board-section-pins:${e}`:`boardfeed:${n.id}`}if(e[a]){const t={...e},n={id:i.id,type:"pin",trackingParams:null==i?void 0:i.tracking_params};return t[a]=[n].concat(e[a]),t}}if("BoardSectionResource"===t.payload.resource&&t.payload.normalizedResponse){const i=t.payload.normalizedResponse.result,n=`board-sections:${t.payload.normalizedResponse.entities.boardsections[i].board}`;if(e[n]){const t={...e},a={id:i,type:"boardsection"};return t[n]=[a].concat(e[n]),t}}if("AggregatedCommentResource"===t.payload.resource&&t.payload.normalizedResponse){const i={id:t.payload.normalizedResponse.result,type:"aggregatedcomment"},n=["aggregated-comments","unified-comments"];let a={...e};for(const o of n){const n=`${o}:${t.payload.options.objectId}`;e[n]&&(a={...a,[n]:[i].concat(a[n])})}return a}if("AggregatedCommentReplyResource"===t.payload.resource&&t.payload.normalizedResponse){const i=`${c.AGGREGATED_COMMENT_REPLIES}:${t.payload.options.objectId}`;return{...e,[i]:[...e[i]||[],{id:t.payload.normalizedResponse.result,type:"aggregatedComment"}]}}if("ReactionsResource"===t.payload.resource&&t.payload.normalizedResponse){const{reaction_pin_id:i}=t.payload.options;if("reaction"===t.payload.options.action_type){const n=`reactions:${t.payload.options.pin_id}`,a={...e},o={id:`${i}:${t.payload.options.user_id}`,type:"reaction",trackingParams:void 0};return a[n]=[o].concat(e[n]),a}if("unreaction"===t.payload.options.action_type){const n=`${i}:${t.payload.options.user_id}`;return y(e,"reaction",n)}}break;case"COMPLETE_STORY":{const{payload:{storyId:i}}=t;return y(e,"story",i)}}return e}},761881:(e,t,i)=>{i.d(t,{Z:()=>n});const n=e=>(e=>(t,i)=>t.feeds[((e,t)=>"string"==typeof e?e:e(t))(e,i)])(e)},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:()=>o});var n=i(349741),a=i(214494);function o({history:e,i18n:t,logContextEvent:i,onSuccess:o,onUndo:r,originalPinId:s,pinId:l,trackingParams:d,disableRepinAnimation:c,showNewUserSavetoProfileAnimation:u,showRepinConfirmation:p,historyPush:h}){return(_,m)=>{const{pins:g,session:v}=m(),{userId:y}=v,f=g[l],b={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",b).callCreate().then((a=>{const l=a.resource_response.data;return new n.Z({boardId:l.id,dispatch:_,isQuickSave:!0,history:e,i18n:t,onSuccess:o,onUndo:r,originalPinId:s,pin:f,resourceName:"RepinResource",section:void 0,showNewUserSavetoProfileAnimation:u,showRepinToasts:e=>p?p(e,c):void 0,trackingParams:d,userId:v.userId,historyPush:h}).processRepin(i)}))}}},962551:(e,t,i)=>{i.d(t,{Z:()=>d});var n=i(643010),a=i(883119),o=i(785893);function r({guide:e,guidedQuery:t,isSlot0Style:i=!1}){const{dominant_color:r,display:s}=e,l=(0,o.jsx)(a.iP,{role:"link",tapStyle:"none",rounding:"pill",href:`/search/pins/?rs=guide&q=${encodeURIComponent(t)}`,children:(0,o.jsx)(a.xu,{dangerouslySetInlineStyle:{__style:{backgroundSize:"cover",backgroundColor:r,whiteSpace:i?void 0:"nowrap"}},"data-test-id":"search-guide",minWidth:i?void 0:84,padding:4,rounding:"pill",children:(0,o.jsx)(a.xv,{align:i?"start":"center",color:i?(0,n.Yc)()?"inverse":"default":"inverse",lineClamp:i?2:void 0,size:"200",weight:i?"normal":"bold",children:s})})});return i?l:(0,o.jsx)(a.xu,{flex:"none",marginStart:-7,paddingX:4,children:l})}const s=-1,l=0;function d({guides:e,isSlot0Style:t=!1,query:i}){const n=({position:e,term:t})=>e===s?t:e===l?`${t} ${i}`:`${i} ${t}`,d=()=>e.map((e=>(0,o.jsx)(r,{guide:e,guidedQuery:n(e),isSlot0Style:t},e.display)));return t?(0,o.jsx)(a.xu,{padding:2,children:(0,o.jsx)(a.kC,{width:"100%",gap:{row:0,column:1},direction:"column",alignItems:"start",children:d()})}):(0,o.jsx)(a.xu,{overflow:"hidden",width:"calc(100vw - 16px)",children:(0,o.jsx)(a.xu,{display:"flex",marginBottom:-2,marginStart:-4,overflow:"auto",paddingX:7,paddingY:2,position:"relative",width:"100vw",children:d()})})}},225313:(e,t,i)=>{i.d(t,{Z:()=>z});var n=i(667294),a=i(702664),o=i(90771),r=i(31149),s=i(659522),l=i(214680),d=i(331744),c=i(172071),u=i(757146),p=i(785893);function h({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 _=i(862960),m=i(941646),g=i(499128),v=i(464240),y=i(287072),f=i(89396),b=i(22641),x=i(467570),S=i(867820),P=i(773285),E=i(50286),T=i(167912),I=i(780280),A=i(898781),w=i(112690),C=i(52022),R=i(86802),k=i(642832),O=i(883119),D=i(844974),N=i(644035),j=i(343341);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}const M=56,F=String(86),U=({text:e})=>(0,p.jsx)(O.xv,{align:"center",size:"100",children:e});class B extends n.PureComponent{constructor(...e){super(...e),L(this,"state",{invitePath:"",inviteCode:null,inviteMessage:"",inviteTitle:"",Clipboard:null,fbLoaded:!1}),L(this,"setClipboard",(e=>{const{Clipboard:t,invitePath:i}=this.state;(0,k.sF)(i,t,e,this.showCopyToast)})),L(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"})})),L(this,"getDefaultAppOrder",(()=>{const{country:e,isDesktop:t}=this.props;return(0,k.pW)({country:e,isDesktop:t,shouldShowNativeShare:Boolean(navigator.share)})})),L(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)})),L(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))]))})),L(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)})),L(this,"handleMessengerClick",(()=>{this.props.trackInteraction({action:"click",item:"fbmessenger-share-icon"}),this.handleMessagingAppClick(6)})),L(this,"handleTwitterClick",(()=>{this.props.trackInteraction({action:"click",item:"twitter-share-icon"}),this.handleMessagingAppClick(9)})),L(this,"handleWhatsappClick",(()=>{this.props.trackInteraction({action:"click",item:"whatsapp-share-icon"}),this.handleMessagingAppClick(10)})),L(this,"handleLineClick",(()=>{this.handleMessagingAppClick(8)})),L(this,"handleTelegramClick",(()=>{this.handleMessagingAppClick(20)})),L(this,"handleViberClick",(()=>{this.handleMessagingAppClick(22)})),L(this,"handleEmailClick",(()=>{this.handleMessagingAppClick(3),this.props.trackInteraction({action:"click",item:"email-share-button"})})),L(this,"handleFacebookClick",(e=>{var t,i,n,a;const{isDesktop:o}=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,S.My)(`pcons.${o?"desktop":"mobile"}.facebook-share-icon`),this.props.trackInteraction({action:"click",item:"facebook-share-icon"}),this.logShareClick(5);const{inviteCode:r,invitePath:s,fbLoaded:l}=this.state;(0,k.Rh)(l,s,r||""),this.setFreshInviteCode(5),this.setNewAppOrder(5)})),L(this,"handleSmsClick",(()=>{this.handleMessagingAppClick(4)})),L(this,"logShareClick",((e,t=this.state.inviteCode)=>{const{objectId:i,objectType:n,component:a,clientTrackingParams:o,logContextEvent:r,viewType:s,viewParameter:l}=this.props;(0,k.Iz)({inviteChannel:e,inviteCode:t,objectId:i,objectType:n,component:a,clientTrackingParams:o,logContextEvent:r,view_type:s,view_parameter:l})})),L(this,"copyButtonRef",null),L(this,"renderAppsInCustomOrder",(({Email:e,Facebook:t,FBMessenger:i,Line:a,WhatsApp:o,Twitter:r,Viber:s,Telegram:l,CopyLink:d,Sms:c,ShareVia:u})=>{const h=this.getAppOrder(),_=new Map([[6,i],[10,o],[5,t],[9,r],[3,e],[8,a],[20,l],[22,s],[4,c],[12,d],[11,u]]);return(0,p.jsx)(n.Fragment,{children:h.map((e=>_.get(e)))})})),L(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,x.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:o,message:r}=await(0,k.yP)(e,t,i,this.props.relayEnvironment),s={};n&&(s.invitePath=n),a&&(s.inviteCode=a),o&&(s.inviteTitle=o),r&&(s.inviteMessage=r),this.setState(s)}render(){const{isDesktop:e,objectType:t,onSave:i,showSaveOption:n,isAppleDevice:a}=this.props,{invitePath:g,inviteMessage:y,inviteTitle:x}=this.state,{emailShareLink:S,messengerShareLink:P,twitterShareLink:E,whatsappShareLink:T,lineShareLink:I,telegramShareLink:A,viberShareLink:w,smsShareLink:C}=(0,k.tA)({invitePath:g,inviteTitle:x,objectType:t,i18n:this.props.i18n,isDesktop:e}),R=({children:t})=>(0,p.jsx)(O.kC,{alignItems:"center",justifyContent:"start",direction:"column",width:e?`${F}px`:"100%",children:t}),D=({children:e})=>(0,p.jsx)(O.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)(O.iP,{rounding:"circle",role:"link",rel:"nofollow",href:P,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleMessengerClick()},children:(0,p.jsx)(u.Z,{size:M})})})}),(0,p.jsx)(U,{text:this.props.i18n.bt("Messenger", "Messenger", "shareMenu.icon.label.messenger", undefined, true)})]}),j=(0,p.jsxs)(R,{children:[(0,p.jsx)(D,{children:(0,p.jsx)(m.Z,{id:"whatsapp-share-icon",children:(0,p.jsx)(O.iP,{rounding:"circle",role:"link",rel:"nofollow",href:T,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleWhatsappClick()},children:(0,p.jsx)(b.Z,{size:M})})})}),(0,p.jsx)(U,{text:this.props.i18n.bt("WhatsApp", "WhatsApp", "shareMenu.icon.label.whatsapp", undefined, true)})]}),L=(0,p.jsx)(O.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)(O.rU,{href:"#",onClick:({event:e})=>{this.handleFacebookClick(e)},children:(0,p.jsx)(s.Z,{size:M})})}),(0,p.jsx)(U,{text:this.props.i18n.bt("Facebook", "Facebook", "shareMenu.icon.label.facebook", undefined, true)})]})}),B=(0,p.jsxs)(R,{children:[(0,p.jsx)(D,{children:(0,p.jsx)(m.Z,{id:"twitter-share-icon",children:(0,p.jsx)(O.iP,{rounding:"circle",role:"link",rel:"nofollow",href:E,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleTwitterClick()},children:(0,p.jsx)(v.Z,{size:M})})})}),(0,p.jsx)(U,{text:this.props.i18n.bt("Twitter", "Twitter", "shareMenu.icon.label.twitter", undefined, true)})]}),z=(0,p.jsxs)(R,{children:[(0,p.jsx)(D,{children:(0,p.jsx)(O.iP,{rounding:"circle",role:"link",rel:"nofollow",href:I,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleLineClick()},children:(0,p.jsx)(d.Z,{size:M})})}),(0,p.jsx)(U,{text:this.props.i18n.bt("行高", "Line", "shareMenu.icon.label.line", undefined, true)})]}),V=(0,p.jsxs)(R,{children:[(0,p.jsx)(D,{children:(0,p.jsx)(O.iP,{rounding:"circle",role:"link",rel:"nofollow",href:w,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleViberClick()},children:(0,p.jsx)(f.Z,{size:M})})}),(0,p.jsx)(U,{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)(O.iP,{rounding:"circle",role:"link",rel:"nofollow",href:A,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleTelegramClick()},children:(0,p.jsx)(_.Z,{size:M})})}),(0,p.jsx)(U,{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)(O.iP,{rounding:"circle",role:"link",rel:"nofollow",target:"blank",href:S,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleEmailClick()},children:(0,p.jsx)(r.Z,{size:M})})})}),(0,p.jsx)(U,{text:this.props.i18n.bt("电子邮件", "Email", "shareMenu.icon.label.email", undefined, true)})]}),G=(0,p.jsxs)(R,{children:[(0,p.jsx)(D,{children:(0,p.jsx)(O.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:x}).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)(O.xu,{height:M,children:(0,p.jsx)(O.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)(U,{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)(O.iP,{rounding:"circle",role:"link",rel:"nofollow",href:C,onTap:({dangerouslyDisableOnNavigation:e})=>{e(),this.handleSmsClick()},children:a?(0,p.jsx)(l.Z,{size:M}):(0,p.jsx)(o.Z,{size:M})})}),(0,p.jsx)(U,{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)(O.xu,{ref:this.setClipboard,dangerouslySetInlineStyle:{__style:{cursor:e?"pointer":void 0}},"data-test-id":"copy-link-share-icon",height:M,children:(0,p.jsx)(O.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)(U,{text:this.props.i18n.bt("复制链接", "Copy link", "shareMenu.icon.label.copy", undefined, true)})]});return(0,p.jsxs)(O.xu,{children:[(0,p.jsx)(O.xu,{height:4}),(0,p.jsx)(O.kC,{alignItems:"stretch",justifyContent:"start",overflow:"hidden",children:(0,p.jsxs)(O.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)(O.iP,{rounding:"circle",onTap:this.onHandleRepinSave,children:(0,p.jsx)(h,{size:M})})}),(0,p.jsx)(U,{text:this.props.i18n.bt("收藏", "Save", "shareMenu.icon.label.save", undefined, true)})]}))(),this.renderAppsInCustomOrder({Email:Z,Facebook:L,FBMessenger:N,Line:z,WhatsApp:j,Twitter:B,Viber:V,Telegram:H,CopyLink:W,Sms:K,ShareVia:G})]})}),(0,p.jsx)(O.xu,{height:16})]})}}function z(e){const t=(0,A.ZP)(),i=(0,E.HG)(),{showToast:n}=(0,j.F9)(),{country:o,locale:r}=(0,I.B)(),s=(0,y.Z)({href:{pathname:`/pin/${e.objectId}/repin`,state:{viewType:e.viewType,viewParameter:e.viewParameter}}}),{checkExperiment:l}=(0,P.F)(),d=(0,a.useSelector)((({session:e})=>e.userAgentPlatform)),c=d===N.RL||d===N.s4,u=l("graphql_migration_sharesheet_sgrowth_web").anyEnabled,h=(0,T.useRelayEnvironment)(),_=(0,w.Z)(),m=(0,C.Z)();return(0,p.jsx)(B,{...e,country:o,i18n:t,isDesktop:i,locale:r,showToast:n,onNavigation:s,logContextEvent:_,isAppleDevice:c,relayEnvironment:u?h:void 0,trackInteraction:m})}},642832:(e,t,i)=>{i.d(t,{Iz:()=>g,Rh:()=>p,pW:()=>c,rL:()=>m,sF:()=>h,tA:()=>u,yP:()=>_});var n,a,o=i(214494),r=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:o,Twitter:r,Email:s,Line:l,Telegram:c,Viber:u,Sms:p,CopyLink:h,ShareVia:_}=d;function m(){switch(e){case"US":return t?[a,o,r,s]:[p,n,a,o,r];case"ID":return t?[a,l,s,o]:[a,c,p,l,s,o];case"JP":case"TH":case"TW":return t?[l,r,s,o]:[l,s,p,r,o];case"GR":return t?[a,o,r,s]:[u,n,a,p,o,r];case"IR":case"IQ":return t?[a,o,r,s]:[a,c,p,n,r];case"UA":case"RU":return t?[a,o,r,s]:[a,u,c,o,n,p,r];default:return t?[a,o,r,s]:[a,n,p,o,r]}}return t?[h,...m()]:[...m(),h,...i?[_]:[]]}function u({invitePath:e,inviteTitle:t,objectType:i,i18n:n,isDesktop:a}){let o=n.bt("为你推荐的 Pin 图", "A Pin for you", "shareMenu.message.title", undefined, true);8===i&&(o=n.bt("请在 Pinterest 上查看此文章。", "Check out this article on Pinterest!", "shareMenu.message.title", undefined, true));const s=`mailto:?subject=${encodeURIComponent(o)}&body=${encodeURIComponent(e)}`,l=`fb-messenger://share/?link=${encodeURIComponent(e)}&app_id=${r.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)}`,h=`viber://forward?text=${encodeURIComponent(d)}`;return{emailShareLink:s,messengerShareLink:l,twitterShareLink:c,whatsappShareLink:u,lineShareLink:p,telegramShareLink:`tg://msg?text=${encodeURIComponent(d)}`,viberShareLink:h,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 h(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 _(e,t,a,r){if(r)return((e,t,a,o,r)=>{const s=void 0!==n?n:n=i(865107),d={invite_category:t,invite_object:a,invite_channel:o};return(0,l.fetchQuery)(e,s,{inviteType:JSON.stringify(d),objectId:r}).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)))})(r,3,a,e.toString(),t);{const i=o.Z.create("CreateExternalInviteResource",{invite_type:{invite_category:3,invite_object:a,invite_channel:e},object_id:t}),n=await i.callCreate(),{invite_url:r,invite_code:s,title:l,message:d}=n.resource_response.data;return{inviteCode:s,invitePath:r,title:l,message:d}}}const m=(e,t,n,o,r,s)=>{const d=void 0!==a?a:a=i(361600),c={inviteType:JSON.stringify({invite_category:t,invite_object:n,invite_channel:o}),inviteCode:r,objectId:s};(0,l.commitMutation)(e,{mutation:d,variables:{...c}})};async function g({inviteChannel:e,inviteCode:t,objectId:i,objectType:n,component:a,clientTrackingParams:r,logContextEvent:l,view_parameter:d,view_type:c}){let u,p;l({aux_data:{invite_object:n},object_id_str:i,component:a,clientTrackingParams:r,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]}),o.Z.create("SentExternalInviteCallbackResource",{invite_type:{invite_category:3,invite_object:n,invite_channel:e},invite_code:t,object_id:i,client_tracking_params:r}).callCreate()}},590674:(e,t,i)=>{i.r(t),i.d(t,{default:()=>Y});var n=i(667294),a=i(225313),o=i(702664),r=i(766935),s=i(72566),l=i(936776),d=i(172071),c=i(214494),u=i(700380),p=i(784590),h=i(19121),_=i(773285),m=i(385740),g=i(698330),v=i(878499),y=i(116303),f=i(499128),b=i(407043),x=i(898781),S=i(927383),P=i(349700),E=i(313951),T=i(883119),I=i(276775),A=i(343341),w=i(785893);function C(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,C(this,"state",{viewConversation:!1,isSent:!1,path:""}),C(this,"renderViewConversationButton",(()=>{const{viewConversation:e}=this.state;return e?(0,w.jsxs)(T.kC,{alignItems:"center",direction:"row",flex:"grow",justifyContent:"center",children:[(0,w.jsx)(T.zx,{fullWidth:!0,size:"sm",text:this.props.i18n.bt("查看", "View chat", "View current chat", undefined, true),color:"white",onClick:()=>{this.onViewConversation()}}),(0,w.jsx)(T.JO,{icon:"arrow-forward",color:"default",accessibilityLabel:this.props.i18n.bt("查看", "View chat", "View current chat", undefined, true)})]}):(0,w.jsxs)(T.kC,{alignItems:"center",direction:"row",flex:"grow",justifyContent:"center",children:[(0,w.jsx)(T.xu,{marginEnd:2,children:(0,w.jsx)(T.JO,{icon:"check",color:"default",accessibilityLabel:this.props.i18n.bt("已发送", "sent", "content is sent", undefined, true)})}),(0,w.jsx)(T.xu,{marginEnd:2,children:(0,w.jsx)(T.xv,{size:"300",color:"subtle",weight:"bold",children:this.props.i18n.bt("已发送", "Sent", "mweb.sharemenu.contactItem.isSent", undefined, true)})})]})})),C(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})})),C(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:o,setShareSent:r,recipient:s,sendObject:l,showToast:c,email:u,updateCachedContactsAfterSend:p,userId:h,logContextOnSend:_}=t.props,m=e[l.objectType];null==_||_(),t.setState({isSent:!0});try{const e=await i({user_ids:s?[s.id,h]: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}),r(!0),null==p||p(),!a&&o&&(c((({hideToast:e})=>(0,w.jsx)(f.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,P.Wc)(n.bt("发送给 {{recipientName}}！", "Sent to {{recipientName}}!", "ContactItem.ConfirmationToast.text", undefined, true),{recipientName:(null==s?void 0:s.full_name)||""}),iconThumbnail:(0,w.jsx)(y.Z,{size:"fit",src:(null==s?void 0:s.image_large_url)||"",name:(null==s?void 0:s.full_name)||""}),thumbnailShape:"circle"}))),o(i))}}catch(g){c((({hideToast:e})=>(0,w.jsx)(f.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:o,email:r}=this.props,{isSent:s}=this.state;return!a&&o?(0,w.jsxs)(T.xu,{"data-test-id":"sharesheet-send-button",display:"flex",direction:"column",paddingX:3,paddingY:4,children:[(0,w.jsx)(T.iP,{onTap:()=>this.onInlineSend(),children:(0,w.jsx)(T.xu,{height:56,marginBottom:1,width:56,children:(0,w.jsx)(y.Z,{size:"fit",src:null!==(e=o.image_large_url)&&void 0!==e?e:"",name:null!==(t=o.full_name)&&void 0!==t?t:""})})}),(0,w.jsx)(T.xu,{width:56,children:(0,w.jsx)(T.xv,{lineClamp:1,size:"100",align:"center",children:o.full_name})})]}):(0,w.jsxs)(T.xu,{"data-test-id":"sharesheet-send-button",position:"relative",direction:"row",display:"flex",width:"100%",alignItems:"center",justifyContent:"between",paddingY:2,children:[o?(0,w.jsx)(T.xu,{children:(0,w.jsx)(y.Z,{size:"md",src:null!==(i=o.image_large_url)&&void 0!==i?i:"",name:null!==(n=o.full_name)&&void 0!==n?n:""})}):r&&(0,w.jsx)(T.xu,{children:(0,w.jsx)(y.Z,{size:"md",name:r})}),(0,w.jsx)(T.xu,{paddingX:2,flex:"grow",maxWidth:"71%",children:(0,w.jsx)(T.xv,{lineClamp:1,weight:"bold",children:o?o.full_name:r&&s?r:(0,P.nk)(this.props.i18n.bt("{{email}} 邀请", "invite {{email}}", "mweb.newMessage.searchEmail", undefined, true),{email:r})})}),(0,w.jsx)(T.xu,{"data-test-id":"sharesheet-viewchat-link",right:!0,flex:"none",maxWidth:"100%",children:s?this.renderViewConversationButton():(0,w.jsx)(T.zx,{fullWidth:!0,size:"lg",color:"gray",text:this.props.i18n.bt("发送", "Send", "Send current content", undefined, true),onClick:()=>{this.onInlineSend()}})})]})}}function k(e){const t=(0,I.useHistory)(),i=(0,x.ZP)(),n=(0,S.Z)(),{showToast:a}=(0,A.F9)(),o=(0,E.aX)(),{logContextEvent:r}=(0,b.v)();return(0,p.Z)({name:"ConversationsResource",options:{user_ids:[e.userId]}}),(0,w.jsx)(R,{...e,createConversation:o,history:t,i18n:i,requireAuthForLimitedLogin:n,showToast:a,logContextEvent:r})}var O=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 j={boxShadow:"0 6px 8px -4px rgba(0, 0, 0, 0.1)",transition:"box-shadow 300ms ease-in-out"};class L 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 o=`term="${n}",user="${t}"`,r=`term="${n.slice(0,-1)}",user="${t}"`;return e[o]||e[r]||[]})),N(this,"renderContactSuggestions",(()=>{const{expandContactsList:e,fetching:t,i18n:i,isFullHeight:n,logContextEvent:a,onDismiss:o,sendObject:r,setShareSent:s,userId:d,updateCachedContactsAfterSend:c,viewType:u}=this.props,{loadingDefaultSuggestions:p,value:h}=this.state,_=this.getContactSuggestions(),m=t||p,g=e=>{const t=h&&h.trim(),{selected_contact_index:i,selected_contact_reason:o}=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:o}:{selected_contact_index:i,selected_contact_reason:o};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===r.objectType?13530:2===r.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,w.jsx)(T.xu,{alignItems:"center",display:"flex",justifyContent:"center",height:v,paddingY:2,children:(0,w.jsx)(T.$j,{show:!0,accessibilityLabel:i.bt("正在搜索联系人", "Searching for contacts", "Placeholder text for spinner on share menu", undefined, true)})}):0===_.length&&!(0,l.Z)(h)&&h&&n?(0,w.jsx)(T.xu,{marginTop:3,children:(0,w.jsx)(T.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,w.jsx)(T.kC,{direction:n?"column":"row",overflow:n?void 0:"hidden",children:(0,w.jsxs)(T.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===_.length&&(0,l.Z)(h)&&(0,w.jsx)(k,{email:h,isFullHeight:n,sendObject:r,setShareSent:s,userId:d,logContextOnSend:g,viewType:u}),!n&&(0,w.jsxs)(T.xu,{alignItems:"center",display:"flex",direction:"column",paddingX:3,paddingY:4,children:[(0,w.jsx)(T.xu,{height:56,marginBottom:1,width:56,children:(0,w.jsx)(T.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===r.objectType?13531:2===r.objectType?13528:13525,a({view_type:u,event_type:10399,component:14309,element:t}),e()},size:"xl"})}),(0,w.jsx)(T.xv,{lineClamp:1,size:"100",children:i.bt("搜索", "Search", "ContactsSuggestions.SearchOption.text", undefined, true)})]}),_.map(((e,t)=>(0,w.jsx)(k,{isFullHeight:n,onDismiss:o,recipient:e,sendObject:r,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,w.jsx)(n.Fragment,{children:t?(0,w.jsxs)(T.xu,{color:"default",display:"flex",direction:"column",paddingX:0,height:"90%",children:[(0,w.jsx)(T.xu,{"data-test-id":"contact-suggestion-search-field",paddingY:2,color:"default",paddingX:4,dangerouslySetInlineStyle:{__style:e?j:null},children:(0,w.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,w.jsx)(T.xu,{display:"flex",direction:"column",paddingY:1,overflow:"scrollY",onScroll:a,ref:this.scrollerRef,children:this.renderContactSuggestions()})]}):(0,w.jsx)(T.xu,{children:this.renderContactSuggestions()})})}}function M(e){const t=(0,x.ZP)(),i=(0,g.kW)(),n=(0,O.Z)(),{id:a}=(0,h.Z)(),s=(0,o.useDispatch)(),{viewType:l}=(0,m.SU)();(0,p.Z)({name:"ShareSuggestionsTypeaheadResource",options:{term:"",user:a}});const u=(0,o.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,o.useSelector)((e=>e.resources.ShareSuggestionsTypeaheadResource)),f=Object.keys(y||{}).some((e=>y[e].fetching)),{cachedShareSuggestions:b,clearCachedShareSuggestions:S,updateCachedShareSuggestions:P}=(0,v.$)(),E=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:T}=(0,_.F)(),I=T("mweb_cache_contacts_share").anyEnabled;return(0,w.jsx)(L,{...e,i18n:t,logContextEvent:n,users:i,searchContacts:e=>{(0,r.Z)(s((0,D.U)("ShareSuggestionsTypeaheadResource",e)),200)},fetching:f,userId:a||"",typeaheadSuggestions:u,inContactsCacheExp:I,cachedShareSuggestions:b,getFreshContactSuggestions:E,updateCachedContactsAfterSend:async()=>{if(I){S();const e=await E();e&&P(e)}},updateCachedShareSuggestions:P,viewType:l})}var F=i(79113),U=i(121151),B=i(667679),z=i(52022),V=i(749049),H=i(867820),Z=i(53987),G=i(50286);const K=14121,W=({heading:e,onDismiss:t})=>{const i=(0,x.ZP)();return(0,w.jsxs)(T.kC,{alignItems:"center",flex:"grow",justifyContent:"start",children:[(0,w.jsx)(T.xu,{display:"flex",alignItems:"center",padding:1,children:(0,w.jsx)(T.hU,{accessibilityLabel:i.bt("关闭", "Close", "close share menu", undefined, true),icon:"cancel",onClick:t,size:"sm",iconColor:"darkGray",padding:4})}),(0,w.jsx)(T.xu,{display:"flex",flex:"grow",alignItems:"center",justifyContent:"center",marginEnd:12,children:(0,w.jsx)(T.xv,{align:"center",weight:"bold",children:(0,w.jsx)("span",{className:"deprecatedTextSizeXL",children:e})})})]})},$=({children:e,isOpen:t,onDismiss:i,childPaddingX:n=3,shouldRenderCloseIcon:a,shouldRenderFullHeight:o,heading:r})=>{const s=(0,x.ZP)(),l={mobileAccessibilityCloseIconLabel:s.bt("关闭发送模式", "close send modal", " - ", undefined, true),accessibilityModalLabel:"",heading:r,mobileHideCloseIcon:!a,isOpen:t,onDismiss:i,type:"share_menu"};return o?(0,w.jsxs)(F.Z,{isOpen:t,accessibilityModalLabel:r,children:[(0,w.jsx)(W,{heading:r,onDismiss:i}),e]}):(0,w.jsx)(U.ZP,{...l,children:(0,w.jsx)(T.xu,{marginTop:a?0:4,paddingX:n,children:e})})},Y=({isOpen:e,onDismiss:t,objectType:i,objectId:o,hideContactsSuggestions:r,clientTrackingParams:s,element:l,viewType:c,viewParameter:u,component:p})=>{const m=(0,x.ZP)(),[g,v]=(0,n.useState)(!1),[y,f]=(0,n.useState)(!1),b=g||!r,S=(0,I.useLocation)(),P=(0,G.HG)(),{isAuth:E}=(0,h.Z)(),{checkExperiment:A}=(0,_.F)(),C=(0,B.Z)(),R=(0,O.Z)(),k=(0,z.Z)(),D=e=>{A("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")(S),a=!P&&!E&&A("unauth_mweb_after_invite_signup_modal").anyEnabled;k({action:"click",item:"close-share-menu"}),t(),a&&y&&C({reason:"UPSELL_LOGIN_OR_SIGNUP",attributionLabel:`tap_unauth_${n}_share_menu_click_invite`}),f(!1),(0,H.My)(`mweb_${n}_share_menu.click_invite.close`)},N=A("mweb_share_menu_logging").anyEnabled;(0,n.useEffect)((()=>{e&&(R({event_type:7120,component:K,object_id_str:o,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:o,clientTrackingParams:s,element:(0,V.O)(i),view_type:c,view_parameter:u,aux_data:{invite_object:i}}))}),[e,A,N]);const j=(0,G.Wb)(),L=m.bt("在 Pinerest 上发送", "Send on Pinterest", "Heading for share contacts search", undefined, true),F=m.bt("分享", "Share", "ShareMenu.AllShareOptions.HeaderText", undefined, true),U=g?L:(0,w.jsx)(T.xu,{marginTop:0,children:(0,w.jsx)(T.xv,{align:"center",weight:"bold",size:"300",children:b?L:F})});return(0,w.jsx)($,{isOpen:e,onDismiss:g?()=>{v(!1),d.Z.increment("mweb_sharesheet.contacts.collapse",1)}:()=>D(),shouldRenderFullHeight:g,shouldRenderCloseIcon:!0,childPaddingX:0,heading:U,children:(0,w.jsx)(T.kC,{justifyContent:"center",children:(0,w.jsxs)(T.xu,{marginBottom:8,marginTop:g||!b?0:-4,width:j?440:"100%",height:"100%",children:[b&&(0,w.jsx)(M,{sendObject:{objectId:o,objectType:i},expandContactsList:()=>{v(!0),d.Z.increment("mweb_sharesheet.contacts.expand",1)},isFullHeight:g,onDismiss:D,setShareSent:e=>f(e),viewType:c}),!g&&(0,w.jsxs)(n.Fragment,{children:[b&&(0,w.jsxs)(T.xu,{marginTop:4,paddingX:4,children:[(0,w.jsx)(T.iz,{}),(0,w.jsx)(T.xu,{marginTop:8,children:(0,w.jsx)(T.xv,{align:"center",size:"300",weight:"bold",children:F})})]}),(0,w.jsx)(a.Z,{objectId:o,objectType:i,viewType:N?c:70,viewParameter:u,onDismiss:D,setShareSent:e=>f(e),clientTrackingParams:s,component:K})]})]})})})}},878499:(e,t,i)=>{i.d(t,{$:()=>s,l:()=>l});var n=i(667294),a=i(425288),o=i(785893);const{Provider:r,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,o.jsx)(r,{value:l,children:e})}},86802:(e,t,i)=>{i.d(t,{B:()=>o,Cq:()=>a,F6:()=>u,RV:()=>n,VZ:()=>r,W_:()=>l,bm:()=>s,iS:()=>p,rO:()=>c,zn:()=>d});const n="animatedShareIconLastViewed",a="lastUsedSocialShare",o="customizedSocialAppOrder",r=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:()=>r});var n=i(667294),a=i(883119),o=i(785893);class r 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:r,placeholder:s,value:l}=this.props;return(0,o.jsx)(a.Um,{accessibilityLabel:e,id:t,onBlur:i,onChange:n,onFocus:r,placeholder:s,ref:this.setSearchRef,size:"lg",value:l})}}},163321:(e,t,i)=>{i.d(t,{Z:()=>m,e:()=>p});var n=i(702664),a=i(240684),o=i(46584),r=i(131108),s=i(599997),l=i(883119),d=i(332611),c=i(785893);const u=(0,a.ZP)({resolved:{},chunkName:()=>"storyPins-duplo-HlsVideoContainer",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!i.m[t]},importAsync:()=>i.e(19596).then(i.bind(i,881999)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return i(t)},resolve(){return 881999}}),p=Object.freeze({white:"inverse",black:"default"}),h={defaultOverlay:{backgroundColor:"rgba(0, 0, 0, 0.4)"}};function _({titleText:e,videoPin:t,videoPlaceholderImage:i}){return(0,c.jsx)(u,{fallback:(0,c.jsx)(l.Ee,{alt:e||"",color:"rgb(111, 91, 77)",fit:"cover",naturalHeight:3,naturalWidth:2,src:i||t.metadata.thumbnail}),aspectRatio:s.q4,controls:!1,poster:i||t.metadata.thumbnail,src:t.url})}function m({buttonAction:e,buttonCustomization:t,buttonText:i,experience:a,hideCompleteButton:u,imageAlt:p,imageUrl:m,openNewTab:g,storyType:v,titleText:y,titleTextColor:f,titleTextCustomization:b,videoPin:x,videoPlaceholderImage:S}){var P;const E=(0,n.useDispatch)(),{experience_id:T,placement_id:I}=a||{},A=(0,o.Z)({onVisibilityChanged:e=>{e&&a&&"viewed"!==a.status&&(a.status="viewed",E((0,d.UT)(I,T,!1,!0)))}}),w=(0,s.zn)(v),C=w?r.f8:r.hm,R=w?r.sH:r.HI,k=!w,{color:O,fontStyle:D,fontWeight:N,horizontalAlignment:j,fontSize:L}=(0,s.Mf)(b||{},"mweb"),{button_background_color:M,button_text_color:F}=t||{};return(0,c.jsx)(l.xu,{position:"relative",padding:1,marginBottom:2,ref:A,children:(0,c.jsxs)(l.rU,{accessibilityLabel:y,href:e,onClick:({dangerouslyDisableOnNavigation:e})=>{e(),a&&E((0,d.CK)(I,T,!1,!0))},target:g?"blank":null,children:[(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{paddingTop:"calc(150%)"}},position:"relative",children:(0,c.jsxs)(l.xu,{dangerouslySetInlineStyle:{__style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"}},top:!0,right:!0,bottom:!0,left:!0,overflow:"hidden",position:"absolute",rounding:4,children:[(0,c.jsx)(l.xu,{position:"absolute",top:!0,left:!0,bottom:!0,right:!0,children:"feed_card_video"===v&&x?(0,c.jsx)(_,{titleText:y,videoPin:x,videoPlaceholderImage:S}):m&&(0,c.jsx)(l.Ee,{alt:p||y||"",color:"rgb(111, 91, 77)",naturalHeight:4,naturalWidth:3,src:m,fit:"cover"})}),k&&(0,c.jsx)(l.xu,{height:"100%",width:"100%",dangerouslySetInlineStyle:{__style:h.defaultOverlay},position:"absolute",top:!0,left:!0}),(0,c.jsx)(C,{children:(0,c.jsx)(l.xv,{align:j,color:f,italic:"italics"===D,weight:N,children:(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{color:null!==(P=O||f)&&void 0!==P?P:void 0,fontSize:L}},children:y})})})]})}),!u&&(0,c.jsx)(R,{children:(0,c.jsx)(l.xu,{display:"flex",rounding:"pill",color:w?"default":"secondary",dangerouslySetInlineStyle:{__style:{backgroundColor:M}},justifyContent:"center",alignItems:"center",paddingX:2,height:48,children:(0,c.jsx)(l.xv,{weight:"bold",size:"200",lineClamp:1,children:(0,c.jsx)(l.xu,{dangerouslySetInlineStyle:{__style:{color:F}},children:i})})})})]})})}},706794:(e,t,i)=>{i.d(t,{Z:()=>p});var n=i(667294),a=i(702664),o=i(491563),r=i(19121),s=i(773285),l=i(350118),d=i(861411),c=i(883119),u=i(785893);function p({slotIndex:e,storyId:t,exactMatch:i=!1}){const{isAuth:p}=(0,r.Z)(),{checkExperiment:h}=(0,s.F)(),_=(0,l.S6)(),{action:m,aux_fields:g,objects:v,story_type:y,title:f}=(0,a.useSelector)((({stories:e})=>e[t])),b=v[0].id,x=v.slice(1,3).map((({id:e})=>_(e)));return!i&&x.length<2?null:h(p?"mweb_deprecated_impression_tracker_story_impression_auth":"mweb_deprecated_impression_tracker_story_impression_unauth").anyEnabled?(0,u.jsx)(d.qS,{auxData:{content_ids:x.map((e=>null==e?void 0:e.id)),story_id:t,story_type:y,...g},component:200,loggingId:t,objectIdStr:t,slotIndex:e,viewParameter:43,viewType:2,children:({impressionTrackerRef:e})=>(0,u.jsxs)(c.xu,{ref:e,children:[f&&(0,u.jsx)(c.xu,{paddingY:1,marginTop:2,children:(0,u.jsx)(c.xv,{align:"center",children:f.format})}),(0,u.jsx)(o.Z,{action:m,auxData:g,isPinnerAuthorityHero:i,userId:b,userPins:i?void 0:x,userSearchRepStyle:i,viewParameter:43,viewType:2})]})}):(0,u.jsx)(d.Hs,{auxData:{content_ids:x.map((e=>null==e?void 0:e.id)),story_id:t,story_type:y,...g},component:200,loggingId:t,objectIdStr:t,slotIndex:e,viewParameter:43,viewType:2,children:(0,u.jsxs)(n.Fragment,{children:[f&&(0,u.jsx)(c.xu,{paddingY:1,marginTop:2,children:(0,u.jsx)(c.xv,{align:"center",children:f.format})}),(0,u.jsx)(o.Z,{action:m,auxData:g,isPinnerAuthorityHero:i,userId:b,userPins:i?void 0:x,userSearchRepStyle:i,viewParameter:43,viewType:2})]})})}},687866:(e,t,i)=>{i.d(t,{UG:()=>u,ZP:()=>h,aG:()=>p});var n=i(667294),a=i(116303),o=i(898781),r=i(52022),s=i(57791),l=i(940882),d=i(883119),c=i(785893);const u={large:"large",medium:"medium",small:"small",extra_small:"extra_small",article:"article",interest:"interest"},p={bubbleOverlay:{__style:{backgroundColor:"rgba(0, 0, 0, 0.3)"}}};function h({backgroundColor:e,bubbleId:t,bubbleUrl:i,coverImageUrl:h,curator:_,font:m,format:g,height:v,identifierIconType:y,onTap:f,pwtSurfaceContext:b,referringSource:x,subtitle:S,title:P,buttonFormat:E,contentAlign:T="center",textAlign:I="center",width:A="100%"}){const w=(0,o.ZP)(),C=(0,r.Z)(),[R,k]=(0,n.useState)("string"==typeof v?void 0:v),O=e=>{if(e){const t=e.offsetWidth,i="string"==typeof v?Number.parseFloat(v):100;k(t*i/100)}};if(!R)return(0,c.jsx)(d.xu,{ref:O,dangerouslySetInlineStyle:{__style:{paddingBottom:"string"==typeof v?Number.parseFloat(v)+"%":"100%",width:A}}});const D=g===u.article,N=g===u.interest,j=m||R>250&&"lg"||R>140&&g&&[u.medium,u.small,u.article].includes(g)&&"md"||R<120&&g&&g===u.small&&"xs"||"sm";return(0,c.jsx)(d.xu,{position:"relative","data-test-id":"search-suggestion","data-test-type":x,children:(0,c.jsx)(s.MZ,{to:i,isAppUpsellDisabled:!0,onTouch:()=>{f&&(C({action:"click",item:"search-suggestion"}),f(t))},rounding:4,children:(0,c.jsxs)(d.zd,{rounding:4,children:[(0,c.jsx)(d.xu,{width:A,height:R,children:h&&(0,c.jsx)(d.Ee,{alt:"",color:e,fit:"cover",naturalHeight:1,naturalWidth:1,onLoad:()=>{b&&b.markConstraintComplete("RenderSearchLandingPageBubbles")},role:"presentation",src:h})}),(0,c.jsx)(d.xu,{dangerouslySetInlineStyle:p.bubbleOverlay,height:R,width:A,position:"absolute",top:!0,left:!0}),_&&!D&&(0,c.jsx)(d.xu,{position:"absolute",top:!0,left:!0,padding:2,children:(0,c.jsx)(a.Z,{outline:!0,size:"xs",src:_.image_small_url,name:_.full_name})}),!!y&&y!==l.J&&(0,c.jsx)(d.xu,{alignItems:"center",color:"default",display:"flex",height:24,justifyContent:"center",left:!0,margin:2,opacity:.8,position:"absolute",rounding:"circle",top:!0,width:24,children:(0,c.jsx)(d.JO,{icon:(0,l.Z)(y),accessibilityLabel:w.bt("购物图标", "Shopping icon", "bubble.shoppingIcon.label", undefined, true),color:"default",size:12})}),(0,c.jsx)(d.xu,{display:"flex",position:"absolute",top:!0,width:A,height:R,padding:D||N?6:R>100?3:1,alignItems:D||N?"end":"center",justifyContent:T,children:(0,c.jsxs)(d.kC,{alignItems:"stretch",justifyContent:"start",direction:"column",children:[S&&(0,c.jsx)(d.xv,{align:I,color:"light",size:"lg"===j?"300":"100",overflow:"normal",children:S}),["lg","md"].includes(j)?(0,c.jsx)(d.X6,{align:I,size:"md"===j&&N?"500":"lg"===j?"600":"400",color:"light",overflow:"normal",children:P}):(0,c.jsx)(d.xv,{align:I,color:"light",size:"sm"===j?"300":"100",overflow:"normal",weight:"bold",children:P}),_&&D&&(0,c.jsxs)(d.xu,{display:"flex",justifyContent:"center",alignItems:"center",marginTop:4,children:[(0,c.jsx)(d.xu,{marginEnd:2,children:(0,c.jsx)(a.Z,{outline:!0,size:"xs",src:_.image_small_url,name:_.full_name})}),(0,c.jsx)(d.xv,{size:"100",color:"light",weight:"bold",children:_.full_name})]}),E&&(0,c.jsx)(d.xu,{marginTop:4,children:(0,c.jsx)(d.zx,{role:"link",text:E.text,href:E.href,size:E.size,accessibilityLabel:E.accessibilityLabel})})]})})]})})})}},368156:(e,t,i)=>{i.d(t,{Z:()=>y});var n,a=i(667294),o=i(702664),r=i(30439),s=i(934494),l=i(149230),d=i(112690),c=i(861411),u=i(940882),p=i(883119),h=i(167912),_=i(785893);const m=void 0!==n?n:n=i(16143);function g({auxData:e,pattern:t,slotIndex:i,storyId:n,viewType:s,viewParameter:h,storyData:{storyType:m,referringSource:g,hasTitle:v,titleFormat:y,identifierIconName:f,actionUrl:b,actionText:x,articlesIds:S}}){const P=(0,d.Z)(),E=(0,o.useSelector)((({articles:e})=>S.map((t=>e[t])))),T={story_type:m,story_id:n,content_ids:E.map((({type:e,id:t})=>e+":"+t)).join("|"),...e};return(0,_.jsx)(c.Hs,{loggingId:n,objectIdStr:n,viewParameter:h,viewType:s,slotIndex:i,component:200,auxData:T,children:(0,_.jsxs)(a.Fragment,{children:[v&&(0,_.jsxs)(p.xu,{display:"flex",marginBottom:2,justifyContent:"center",alignItems:"center",children:["number"==typeof f&&f!==u.J&&(0,_.jsx)(p.xu,{marginEnd:2,dangerouslySetInlineStyle:{__style:{paddingTop:1}},children:(0,_.jsx)(p.JO,{accessibilityLabel:"",color:"default",icon:(0,u.Z)(f),size:14})}),(0,_.jsx)(p.xv,{weight:"bold",children:y})]}),(0,_.jsx)(r.Z,{bubbles:E,pattern:t,referringSource:g,storyId:n,storyType:m,viewParameter:h,viewType:s}),b&&x&&(0,_.jsx)(p.xu,{display:"flex",width:"100%",justifyContent:"center",marginTop:1,children:(0,_.jsx)(p.zx,{role:"link",accessibilityLabel:x,color:"gray",onClick:()=>{P({view_type:s,view_parameter:h,aux_data:T,event_type:102})},text:x,href:b,rel:(0,l.Z)(b)?"nofollow":void 0,target:(0,l.Z)(b)?"blank":void 0,size:"md"})})]})})}const v=(0,s.Z)({useGraphQLAdapter:({storyGraphqlRef:e})=>{const{storyType:t,referringSource:i,storyTitle:n,displayOptions:a,action:o,objects:r}=(0,h.useFragment)(m,e),s=null==a?void 0:a.identifierIconName;return{storyType:t,referringSource:i,hasTitle:!!n,titleFormat:null==n?void 0:n.format,identifierIconName:s,actionUrl:null==o?void 0:o.url,actionText:(null==o?void 0:o.text)||void 0,articlesIds:(null==r?void 0:r.filter((e=>"ExploreArticle"===e.__typename)).map((e=>e.entityId)).filter(Boolean))||[]}},useLegacyAdapter:({storyId:e})=>{const t=(0,o.useSelector)((({stories:t})=>t[e])),{story_type:i,referring_source:n,title:a,display_options:r,action:s,objects:l}=t;return{storyType:i,referringSource:n,hasTitle:!!a,titleFormat:null==a?void 0:a.format,identifierIconName:null==r?void 0:r.identifier_icon_name,actionUrl:null==s?void 0:s.url,actionText:null==s?void 0:s.text,articlesIds:l.map((e=>e.id))||[]}}});function y({storyGraphqlRef:e,storyId:t,...i}){return(0,_.jsx)(v,{input:e?{enabled:!0,data:{storyGraphqlRef:e}}:{enabled:!1,data:{storyId:t}},children:({data:e})=>(0,_.jsx)(g,{...i,storyId:t,storyData:e})})}},30439:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(936819),a=i(883119),o=i(687866),r=i(785893);function s(e){const{bubbles:t,onTouch:i,pattern:s=[o.UG.medium],pwtSurfaceContext:l,referringSource:d,storyId:c,storyType:u,viewParameter:p,viewType:h}=e,_=t.map((({type:e,id:t})=>e+":"+t)).join("|");return(0,r.jsx)(a.kC,{alignItems:"stretch",justifyContent:"between",width:"100%",wrap:!0,children:t.map(((e,t)=>{const m=s[t%s.length];return(0,r.jsx)(a.xu,{paddingY:1,width:[o.UG.small,o.UG.extra_small].includes(m)?"calc(50% - 4px)":"100%",children:(0,r.jsx)(n.Z,{auxData:{content_ids:_,story_type:u,grid_index:t},bubble:e,format:m,height:([o.UG.medium,o.UG.extra_small].includes(m)?"50%":m===o.UG.article&&"73%")||"100%",onTouch:i,pwtSurfaceContext:l,referringSource:d,slotIndex:t,storyId:c,viewParameter:p,viewType:h})},`bubble-${t}`)}))})}},936819:(e,t,i)=>{i.d(t,{Z:()=>u});var n=i(112690),a=i(19121),o=i(861411),r=i(826067),s=i(773285),l=i(687866),d=i(613316),c=i(785893);function u({auxData:e,bubble:t,font:i,format:u,height:p,onTouch:h,pwtSurfaceContext:_,referringSource:m,slotIndex:g,storyId:v,viewParameter:y,viewType:f,width:b="100%"}){var x;const{action:S,cover_images:P,curator:E,dominant_colors:T,id:I,identifier_icon_type:A,story_category:w,title:C}=t,R=(0,n.Z)(),k=(0,a.Z)(),{checkExperiment:O}=(0,s.F)();if(!P||!C)return null;const D=E&&E.full_name&&E.image_small_url?{full_name:E.full_name,image_small_url:E.image_small_url}:void 0;let N="",j="";if(k.isAuth&&5===f){N=O("blp_explore_bubble_image_size").group;const e=N.split("_");e.length>1&&(j=e[1])}const L=null===(x=P[0]&&(N.startsWith("enabled")&&j?P[0][j]:P[0]["474x"]||P[0]["236x"]))||void 0===x?void 0:x.url,M=C.format,F=(null==S?void 0:S.url)||(({storyCategory:e,query:t,referringSource:i,bubbleId:n,storyId:a,title:o})=>{const s=null!=e&&(0,d.y)(e),l=(0,r.XP)({q:t,rs:i||void 0,b_id:n,source_id:a}),c=s&&o?(0,d.x)({title:o,id:n,articleType:"discover"}):`/discover/article/${n}/`;return s?c:"/search/pins/"+(l?"?"+l:"")})({storyCategory:w,query:M,referringSource:m,bubbleId:I,storyId:v,title:M}),U=u===l.UG.article?13865:200,B=u===l.UG.article?102:6940,z=T&&T.length?T[0]:void 0;return(0,c.jsx)(o.fv,{auxData:{story_id:v,...e},impressionData:{storyCategory:w,storyIdStr:v},impressionType:"articleImpressions",loggingId:v,slotIndex:g,viewParameter:y,viewType:f,children:(0,c.jsx)(l.ZP,{backgroundColor:z,bubbleId:I,bubbleUrl:F,coverImageUrl:L,curator:D,font:i,format:u,height:p,identifierIconType:A,onTap:t=>{R({component:U,event_type:B,object_id_str:t,view_parameter:y,view_type:f,aux_data:{article_id:t,grid_index:g,...e}}),h&&h({query:M})},pwtSurfaceContext:_,referringSource:m,title:M,width:b})})}},946036:(e,t,i)=>{i.d(t,{q:()=>a,z:()=>n});const n=["shop_tab_upsell","story_pins_search_upsell","structured_search_bubble","user_style_story_v2"],a="checklist_education_feed_card"},566102:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(730568);const a=({containerTypeIsItemGrid:e,numColumnsRequested:t,storyType:i})=>"BUBBLE_ONE_COL"===i||e&&!(0,n.Z)({storyType:i,numColumnsRequested:t})},730568:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(946036);const a=({storyType:e,numColumnsRequested:t})=>n.z.includes(e)&&0===t},248299:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(166300),a=i(898781),o=i(883119),r=i(785893);function s({isPinRep:e}){const t=(0,a.ZP)(),i=e?"default":"inverse",s=(0,r.jsx)(o.xu,{padding:e?1:0,"data-test-id":"unavailable-pin",children:(0,r.jsx)(o.xu,{color:e?"secondary":"dark",top:!0,height:e?314:"100vh",position:e?"static":"absolute",rounding:e?4:0,width:"100%",children:(0,r.jsxs)(o.kC,{height:"100%",direction:"column",justifyContent:"center",alignItems:"center",children:[(0,r.jsx)(o.xu,{paddingY:4,children:(0,r.jsx)(o.JO,{accessibilityLabel:t.bt("Pin 图不可用", "Pin not available", "story-pin.Closeup.UnavailableStoryPin.icon.accessibilityLabel", undefined, true),color:i,icon:"alert",size:20})}),(0,r.jsx)(o.xv,{align:"center",color:i,weight:"bold",children:t.bt("不可用", "Unavailable", "story-pin.Closeup.UnavailableStoryPin.Unavailable", undefined, true)}),(0,r.jsx)(o.xu,{paddingY:1,children:(0,r.jsx)(o.xv,{align:"center",color:i,children:t.bt("由创建者移除", "Removed by the creator", "story-pin.Closeup.UnavailableStoryPin.Removed", undefined, true)})})]})})});return e?s:(0,r.jsx)(o.xu,{height:"100vh",children:(0,r.jsx)(n.Z,{children:s})})}},201155:(e,t,i)=>{i.d(t,{Z:()=>c});var n=i(883119),a=i(785893);function o({ideaPinImages:e}){const t={1:28,2:40,3:48},i=e.map(((e,t)=>{var i,o,r;return(0,a.jsx)(n.xu,{height:48,width:28,color:"default",borderStyle:"sm",overflow:"hidden",rounding:2,dangerouslySetInlineStyle:{__style:{borderColor:"white",marginInlineEnd:"-17px",WebkitMaskImage:"-webkit-radial-gradient(white, black)",zIndex:t}},children:(0,a.jsx)(n.Ee,{alt:"",src:null!==(i=null==e?void 0:e.url)&&void 0!==i?i:"",color:"#696969",fit:"cover",naturalHeight:null!==(o=null==e?void 0:e.height)&&void 0!==o?o:1,naturalWidth:null!==(r=null==e?void 0:e.width)&&void 0!==r?r:1})},t)}));return(0,a.jsx)(n.kC,{justifyContent:"center",children:(0,a.jsx)(n.kC,{justifyContent:"start",width:t[e.length],children:i})})}var r=i(499128),s=i(898781),l=i(784590),d=i(50286);function c({handleHide:e,text:t,userId:i,href:c,imageUrl:u}){const p=(0,s.ZP)(),h=(0,d.HG)(),_=(0,l.Z)({name:"UserStoryPinsFeedResource",options:{data:{filter_version:2,public_only:!0},field_set_key:"partner_grid_item",user_id:i}}),m=Array.isArray(t)?t.join(" "):t;if(0===(_.data||[]).length){const t=u?(0,a.jsx)(n.xu,{height:48,overflow:"hidden",width:48,children:(0,a.jsx)(n.Ee,{alt:p.bt("你关注用户的头像", "Image of who you followed", "userFollowingToast.thumbnail.userImage", undefined, true),fit:"cover",naturalHeight:1,naturalWidth:1,src:u})}):void 0;return(0,a.jsx)(r.ZP,{duration:5e3,onHide:e,text:m,href:c,iconThumbnail:t,thumbnailShape:"circle"})}const g=(_.data||[]).slice(0,3).map((e=>{var t;return null===(t=e.images)||void 0===t?void 0:t[h?"236x":"170x"]})),v=(0,a.jsx)(o,{ideaPinImages:g});return(0,a.jsx)(r.ZP,{href:c,duration:5e3,onHide:e,iconThumbnail:v,text:m,thumbnailShape:"square"})}},258430:(e,t,i)=>{i.d(t,{Z:()=>r});var n=i(883119),a=i(130460),o=i(785893);function r({boardId:e}){var t;const i=(0,a.gC)()(e),r=null!=i&&i.images&&i.images["170x"]?i.images["170x"][0]:void 0;return e&&r?(0,o.jsx)(n.Ee,{alt:"Pin image",color:"#efefef",fit:"cover",naturalHeight:1,naturalWidth:1,src:null!==(t=r.url)&&void 0!==t?t:""}):null}},759929:(e,t,i)=>{i.d(t,{k:()=>r,w:()=>o});var n=i(379764),a=i(883119);const o=2e3,r=new a.H3([n.Z])},182476:(e,t,i)=>{i.d(t,{Z:()=>P});var n,a=i(702664),o=i(815613),r=i(780280),s=i(633083),l=i(898781),d=i(892819),c=i(883119),u=i(167912),p=i(785893);const h=({backgroundColor:e,decreaseNamePadding:t,isHomefeedTuner:i,isLego:n,isSelected:a,locale:o,nameTextSize:r,renderAsPill:u,showFollowerCount:h,topicName:_,followerCount:m,image:g})=>{var v;const y=(0,l.ZP)(),f=(0,d.Z)(),b=(0,p.jsx)(c.JO,{accessibilityLabel:y.bt("已选择", "Selected", " - ", undefined, true),color:"inverse",icon:n?"check":"check-circle",size:n?12:24});return u?(0,p.jsx)(s.Z,{color:e||"#767676",image:g,isSelected:null!=a&&a,title:_}):(0,p.jsxs)(c.xu,{position:"relative","aria-selected":a,children:[(0,p.jsx)(c.zd,{rounding:n||i?4:2,children:(0,p.jsxs)(c.xu,{position:"relative",dangerouslySetInlineStyle:{__style:{paddingBottom:"100%"}},children:[(0,p.jsx)(c.xu,{bottom:!0,left:!0,padding:n&&a?1:0,position:"absolute",right:!0,rounding:n&&a?4:0,top:!0,children:(0,p.jsx)(c.Ee,{alt:_,color:e||"#767676",fit:"cover",naturalHeight:1,naturalWidth:1,src:null!==(v=g.url)&&void 0!==v?v:""})}),(0,p.jsx)(c.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{backgroundColor:a?"rgba(0,0,0,0.6)":"rgba(0,0,0,0.3)",border:n&&a?"4px solid #767676":"none"}},rounding:n?4:void 0,position:"absolute",left:!0,right:!0,top:!0}),n&&a&&(0,p.jsx)(c.xu,{bottom:!0,dangerouslySetInlineStyle:{__style:{border:"2px solid #111"}},left:!0,position:"absolute",right:!0,rounding:4,top:!0})]})}),i?(0,p.jsx)(c.xu,{top:!0,bottom:!0,left:!0,right:!0,padding:2,position:"absolute",display:"flex",alignContent:"center",justifyContent:"center",alignItems:"center",children:(0,p.jsx)(c.xv,{align:"center",color:"light",size:r,weight:"bold",children:_})}):(0,p.jsxs)(c.xu,{bottom:!0,left:!0,padding:t?1:2,position:"absolute",right:!0,children:[(0,p.jsx)(c.xv,{color:"inverse",size:r,weight:"bold",children:_}),h&&m>=0&&(0,p.jsx)(c.xu,{paddingY:1,children:(0,p.jsxs)(c.xv,{color:"inverse",size:"100",children:[(0,p.jsx)(c.xv,{color:"inverse",inline:!0,size:"100",weight:"bold",children:f(o,m,{shortform:!0,shortform_maximum_fraction_digits:1})}),y.bt("粉丝", "followers", " - ", undefined, true)]})})]}),a&&(0,p.jsx)(c.xu,{margin:2,position:"absolute",right:!0,top:!0,children:n?(0,p.jsx)(c.xu,{alignItems:"center",color:"selected",display:"flex",height:24,justifyContent:"center",rounding:2,width:24,children:b}):b})]})},_=void 0!==n?n:n=i(133132),m=({topicRef:e,...t})=>{var i,n,a,o,r,s;const l=(0,u.useFragment)(_,e),d=l.images?{url:null!==(i=l.images.url)&&void 0!==i?i:"",width:null!==(n=l.images.width)&&void 0!==n?n:0,height:null!==(a=l.images.height)&&void 0!==a?a:0,dominant_color:"",type:""}:{dominant_color:"",height:0,type:"",url:"",width:0};return(0,p.jsx)(h,{backgroundColor:null!==(o=l.background_color)&&void 0!==o?o:"",topicName:null!==(r=l.name)&&void 0!==r?r:"",followerCount:null!==(s=l.follower_count)&&void 0!==s?s:0,image:d,...t})},g=({topic:e,topicBlob:t,topicInfoForContextualExp:i,...n})=>{const a=i||e||t||{},o=a.images["236x"]||a.images["400x"]||a.images["474x"]||a.images.orig||{height:1,url:"",width:1},r=a.follower_count||-1;return(0,p.jsx)(h,{backgroundColor:a.background_color,topicName:a.name,followerCount:r,image:o,...n})};var v,y=i(70090);const f=({decreaseNamePadding:e=!1,isHomefeedTuner:t,isLego:i,isSelected:n=!1,nameTextSize:s="lg",onTouch:l,padding:d=2,renderAsPill:u,showFollowButton:h=!1,showFollowerCount:_=!1,shouldClickthrough:v=!1,topic:f,viewParameter:b,viewType:x,enabledHomeFeedTunerDesignChanges:S})=>{const P=(0,a.useDispatch)(),{locale:E}=(0,r.B)(),T=(0,p.jsxs)(c.xu,{"data-test-id":"nux-picker-topic",children:["graphql"!==f.type?(0,p.jsx)(g,{decreaseNamePadding:e,isHomefeedTuner:t,isLego:i,isSelected:n,locale:E,nameTextSize:s,renderAsPill:u,showFollowerCount:_,topic:f.topic,topicBlob:f.topicBlob,topicInfoForContextualExp:f.topicInfoForContextualExp}):(0,p.jsx)(m,{decreaseNamePadding:e,isHomefeedTuner:t,isLego:i,isSelected:n,locale:E,nameTextSize:s,renderAsPill:u,showFollowerCount:_,topicRef:f.topicRef}),!!f&&h&&(0,p.jsx)(c.xu,{paddingY:2,children:(0,p.jsx)(o.Z,{textType:t?"AddRemove":"FollowFollowing",followEventType:601,id:f.id,invertColors:t,inline:t&&S,isFollowed:f.is_followed,onFollow:e=>P((0,y.ZN)(e)),onUnfollow:e=>P((0,y.fv)(e)),size:"md",unfollowEventType:602,viewParameter:b||void 0,viewType:x||void 0})})]});let I="/";return f&&(I=`/topics/${f.id}`),v&&f.slug?(0,p.jsx)(c.iP,{role:"link",onTap:({event:e})=>{null==l||l(e)},tapStyle:"compress",rounding:2,href:I,children:(0,p.jsx)(c.xu,{padding:d,children:T})}):T},b=void 0!==v?v:v=i(964820),x=({topicRef:e,decreaseNamePadding:t=!1,isHomefeedTuner:i,isLego:n,isSelected:a=!1,nameTextSize:o="lg",onTouch:r,padding:s=2,renderAsPill:l,showFollowButton:d=!1,showFollowerCount:c=!1,shouldClickthrough:h=!1,viewParameter:_,viewType:m,enabledHomeFeedTunerDesignChanges:g})=>{var v,y;const x=(0,u.useFragment)(b,e);return(0,p.jsx)(f,{decreaseNamePadding:t,isHomefeedTuner:i,isLego:n,isSelected:a,nameTextSize:o,onTouch:r,padding:s,renderAsPill:l,showFollowButton:d,showFollowerCount:c,shouldClickthrough:h,viewParameter:_,viewType:m,enabledHomeFeedTunerDesignChanges:g,topic:{id:null!==(v=x.entityId)&&void 0!==v?v:"",type:"graphql",is_followed:null!==(y=x.is_followed)&&void 0!==y&&y,topicRef:x}})},S=({id:e,topic:t,topicBlob:i,topicInfoForContextualExp:n,decreaseNamePadding:o=!1,isHomefeedTuner:r,isLego:s,isSelected:l=!1,nameTextSize:d="lg",onTouch:c,padding:u=2,renderAsPill:h,showFollowButton:_=!1,showFollowerCount:m=!1,shouldClickthrough:g=!1,viewParameter:v,viewType:y,enabledHomeFeedTunerDesignChanges:b})=>{const x=(0,a.useSelector)((({topics:t})=>t[e])),S=null!=t?t:x;return(0,p.jsx)(f,{decreaseNamePadding:o,isHomefeedTuner:r,isLego:s,isSelected:l,nameTextSize:d,onTouch:c,padding:u,renderAsPill:h,showFollowButton:_,showFollowerCount:m,shouldClickthrough:g,viewParameter:v,viewType:y,enabledHomeFeedTunerDesignChanges:b,topic:{id:e,is_followed:!(null==S||!S.is_followed),topic:S,topicBlob:i,topicInfoForContextualExp:n,type:"resource"}})},P=({decreaseNamePadding:e=!1,isHomefeedTuner:t,isLego:i,isSelected:n=!1,nameTextSize:a="lg",onTouch:o,padding:r=2,renderAsPill:s,showFollowButton:l=!1,showFollowerCount:d=!1,shouldClickthrough:c=!1,viewParameter:u,viewType:h,enabledHomeFeedTunerDesignChanges:_,...m})=>m.topicRef?(0,p.jsx)(x,{decreaseNamePadding:e,isHomefeedTuner:t,isLego:i,isSelected:n,nameTextSize:a,onTouch:o,padding:r,renderAsPill:s,showFollowButton:l,showFollowerCount:d,shouldClickthrough:c,viewParameter:u,viewType:h,topicRef:m.topicRef,enabledHomeFeedTunerDesignChanges:_}):(0,p.jsx)(S,{id:m.id,decreaseNamePadding:e,isHomefeedTuner:t,isLego:i,isSelected:n,nameTextSize:a,onTouch:o,padding:r,renderAsPill:s,showFollowButton:l,showFollowerCount:d,shouldClickthrough:c,topic:m.topic,topicBlob:m.topicBlob,topicInfoForContextualExp:m.topicInfoForContextualExp,viewParameter:u,viewType:h,enabledHomeFeedTunerDesignChanges:_})},430235:(e,t,i)=>{i.d(t,{Z:()=>E});var n,a=i(667294),o=i(248975),r=i(862628),s=i(898781),l=i(759177),d=i(667679),c=i(62409),u=i(349700),p=i(867820),h=i(350118),_=i(276775),m=i(780679),g=i(883119),v=i(167912),y=i(785893);const f=({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})})},b=void 0!==n?n:n=i(12617);function x({desktopContextMenuState:e,isMainPinImage:t,source:i,images:n,embedSrc:l,embedType:c,sourceUserUsername:h,sourceUserFullname:v,pinJoinVisualAnnotation:b,pinJoinSeoBreadcrumbName:x,pinJoinSeoBreadcrumbUrl:S,pinId:P,pinLink:E}){var T;const I=(0,s.ZP)(),A=(0,_.useHistory)(),w=(0,o.Z)({images:n,embedSrc:l,embedType:c}),C=x,R=S,k=null!==(T=null==b?void 0:b[0])&&void 0!==T?T:void 0,O=(0,r.Z)(k),D=`/search/pins/?q=${encodeURIComponent(O)}&rs=image_only_attribution`,N=(0,d.Z)(),j="dweb.plp.ellipsis.button"===i,L=(0,m.g)();return w?(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)(f,{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:P}}}),L&&L.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||j&&!E)&&(0,y.jsx)(f,{onTap:()=>{(0,p.My)(j?"dweb.unauth.context_menu.open_plp_new_tab.from.ellipsis.button":"dweb.unauth.context_menu.open_plp_new_tab"),window.open(j?E:`/pin/${P}/`),j||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)})}),(k||!(!C||!R))&&(0,y.jsx)(f,{onTap:()=>{(0,p.My)("dweb.unauth.context_menu.see_more_pins"),R?A.push(`${R}`):A.push(D)},children:C?(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:C})}):(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:k})})}),!(!v||!h)&&(0,y.jsx)(f,{onTap:()=>{(0,p.My)("dweb.unauth.context_menu.more_from_creator"),A.push(`/${h}/`)},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)(f,{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"}}),L&&L.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 S({graphqlRef:e,pinId:t,useNativeCreatorAsPinner:i,...n}){var a,o,r,s,d;const c=(0,v.useFragment)(b,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!==(h=null==c||null===(_=c.linkDomain)||void 0===_?void 0:_.officialUser)&&void 0!==h?h:null==c?void 0:c.pinner);return(0,y.jsx)(x,{...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===(o=p)||void 0===o?void 0:o.fullName,pinJoinVisualAnnotation:null==c||null===(r=c.pinJoin)||void 0===r?void 0:r.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 P({graphqlRef:e,pinId:t,useNativeCreatorAsPinner:i,...n}){var a,o,r,s,l,d;const u=(0,h.S6)()(t),{link_domain:p,native_creator:_,origin_pinner:m,pinner:g}=u||{};let v=(0,c.wS)(p,_,m,g);var f,b;v||(v=null!==(f=null==u||null===(b=u.link_domain)||void 0===b?void 0:b.official_user)&&void 0!==f?f:null==u?void 0:u.pinner);const{full_name:S,username:P}=null!==(a=v)&&void 0!==a?a:{};return(0,y.jsx)(x,{...n,embedSrc:null==u||null===(o=u.embed)||void 0===o?void 0:o.src,embedType:null==u||null===(r=u.embed)||void 0===r?void 0:r.type,images:null==u?void 0:u.images,sourceUserUsername:S,sourceUserFullname:P,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 E(e){return e.graphqlRef?(0,y.jsx)(S,{...e}):(0,y.jsx)(P,{...e})}},447409:(e,t,i)=>{i.d(t,{n:()=>P,Z:()=>E});var n=i(702664),a=i(598615),o=i(821997),r=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,r.Z)();return!e&&!t})()?t||null:e;var l=i(938917),d=i(898781),c=i(893101),u=i(112690),p=i(867820),h=i(780280);var _=i(52022),m=i(643010),g=i(948376),v=i(773285),y=i(385740),f=i(53987),b=i(883119),x=i(276775),S=i(785893);const P=56;function E(){const e=(0,d.ZP)(),t=(0,x.useLocation)(),i=(0,x.useHistory)(),{viewType:r,viewParameter:E}=(0,y.SU)(),{userAgentPlatform:T,userAgent:I}=(0,n.useSelector)((({session:e})=>e)),A=(0,g.Rp)({platform:T,userAgent:I}),w=(0,c.Z)(),C=function(){const{isBot:e}=(0,h.B)();return(t,i)=>{e||(0,p.NC)(t,i)}}(),R=(0,l.Z)(),{checkExperiment:k}=(0,v.F)(),O=(0,u.Z)(),D=(0,_.Z)(),N=e.bt("登录", "Log in", "Label for log in button", undefined, true),j=e.bt("注册", "Sign up", "Text on button on the top bar that leads users to signing up.", undefined, true),L=e.bt("下载", "Download", "mweb.unauth.interstitial_upsell.download_button_text", undefined, true),M=!A&&!(0,f.Xn)(t),F=((0,f.dr)(t)||(0,f.$Y)(t)||(0,f.E0)(t))&&!k("lex_follow_button").group.includes("main_cta"),U=!R||w||F?"signup":"download",B=(M?N.length:0)+("signup"===U?j.length:0)+("download"===U?L.length:0);return(0,S.jsx)(b.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,S.jsxs)(b.xu,{alignItems:"center","data-test-id":"unauth-header",direction:"row",display:"flex",justifyContent:"between",children:[(0,S.jsx)(b.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,S.jsxs)(b.xu,{alignItems:"center",display:"flex",direction:"row",marginEnd:3,children:[(0,S.jsx)(b.xu,{alignItems:"center",display:"flex",height:P,justifyContent:"center",rounding:2,"data-test-id":"pinterest-logo-icon",children:(0,S.jsx)(b.iP,{role:"link",tapStyle:"none",href:"/",children:A?(0,S.jsx)(o.Z,{size:24}):(0,S.jsx)(b.hU,{icon:"pinterest",iconColor:"brandPrimary",padding:1,size:"xl",accessibilityLabel:e.bt("Pinterest 应用", "Pinterest App", "Pinterest icon for app upsell", undefined, true)})})}),(0,S.jsx)(b.xu,{paddingY:2,paddingX:1,"data-test-id":"pinterest-logo-text",children:B<18&&(0,S.jsxs)(b.xu,{children:[(0,S.jsx)(b.X6,{color:"error",size:"400",overflow:"normal",children:A?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)}),A&&(0,S.jsx)(b.xu,{dangerouslySetInlineStyle:{__style:{whiteSpace:"pre-wrap"}},children:(0,S.jsx)(b.xu,{children:(0,S.jsx)(b.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,S.jsx)(s,{children:(0,S.jsxs)(b.xu,{marginEnd:0,flex:"none",alignItems:"center",display:"flex",direction:"row","data-test-id":"UnauthAppUpsellButton",children:[M&&(0,S.jsx)(b.xu,{"data-test-id":"login-button",children:(0,S.jsx)(b.zx,{fullWidth:!0,color:"white",onClick:()=>{D({action:"click",within:"unauth-header",item:"login-button"}),O({component:13198,element:30,event_type:102,view_type:r,view_parameter:E}),C("press_header_login"),O({event_type:10241,element:30,component:14213,view_type:r,view_parameter:E,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"===U?(0,S.jsx)(b.xu,{"data-test-id":"signup-button",children:(0,S.jsx)(b.zx,{fullWidth:!0,color:F?"red":"gray",onClick:()=>{D({action:"click",within:"unauth-header",item:"signup-button"}),O({component:13198,element:31,event_type:102,view_type:r,view_parameter:E}),C("press_header_signup"),O({event_type:10241,element:31,component:14215,view_type:r,view_parameter:E,aux_data:{upsell_reason:"click_signup_on_header"}}),i.push({pathname:"/signup",state:{attributionLabel:"click_signup_on_header",...t.state}})},size:"md",text:j})}):(0,S.jsx)(b.xu,{"data-test-id":"download-button",children:(0,S.jsx)(a.Z,{componentType:14161,within:"unauth-header",children:({handleOpenApp:e})=>(0,S.jsx)(b.zx,{fullWidth:!0,color:(0,f.j8)(t)||k("lex_follow_button").group.includes("main_cta")?"gray":"red",onClick:()=>e(),size:"md",text:L})})})]})})]})})}},874317:(e,t,i)=>{i.d(t,{Yw:()=>E,ZP:()=>C,nt:()=>P});var n,a=i(598615),o=i(326960),r=i(248975),s=i(63552),l=i(862628),d=i(938917),c=i(898781),u=i(759177),p=i(667679),h=i(62409),_=i(349700),m=i(867820),g=i(538232),v=i(773285),y=i(350118),f=i(276775),b=i(883119),x=i(167912),S=i(785893);const P=250,E={WebkitTouchCallout:"none",WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",KhtmlUserSelect:"none",UserSelect:"none"},T=void 0!==n?n:n=i(167074);function I({mwebContextMenuState:e,openShareModal:t,setMwebContextMenuState:i,pinId:n,images:u,embedSrc:h,embedType:y,sourceUserUsername:x,sourceUserFullname:E,pinDownloadFilename:T,pinImageSignature:I,pinJoinVisualAnnotation:A,pinJoinSeoBreadcrumbName:w,pinJoinSeoBreadcrumbUrl:C}){var R;const k=(0,c.ZP)(),O=(0,f.useHistory)(),D=(0,r.Z)({images:u,embedSrc:h,embedType:y}),{isChromeOnIOS:N}=(0,g.R)(),j=w,L=C,M=null!==(R=null==A?void 0:A[0])&&void 0!==R?R:void 0,F=(0,l.Z)(M),U=`/search/pins/?q=${encodeURIComponent(F)}&rs=image_only_attribution`,B=(0,p.Z)(),z=(0,g.R)(),{checkExperiment:V}=(0,v.F)(),H=(0,d.Z)();return D?(0,S.jsxs)(b.xu,{"data-test-id":"mobile-context-menu",position:"absolute",dangerouslySetInlineStyle:{__style:{top:`${e.yPosition}px`,left:`${e.xPosition}px`}},zIndex:new b.Ry(99999),color:"default",rounding:2,borderStyle:"shadow",display:"flex",direction:"column",paddingY:3,paddingX:2,maxWidth:P,children:[(0,S.jsxs)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"img",direction:"row",display:"flex",alignItems:"center",justifyContent:"between",children:[(0,S.jsx)(b.JO,{icon:"pinterest",accessibilityLabel:k.bt("Pinterest 图标", "Pinterest logo", "unauth.mweb.context_menu.pinterest_logo", undefined, true),color:"brandPrimary"}),(0,S.jsx)(b.xu,{alignSelf:"end","data-test-id":"mobile-context-menu-cancel-button",children:(0,S.jsx)(b.iP,{onTap:({event:e})=>{e.stopPropagation(),i(null)},children:(0,S.jsx)(b.JO,{icon:"cancel",accessibilityLabel:k.bt("忽略 mweb 背景菜单", "Dismiss mweb context menu", "unauth.mweb.context_menu.dismiss", undefined, true)})})})]}),"main"===e.context&&H&&V("mweb_main_pin_ltcm_open_in_app").anyEnabled&&(0,S.jsx)(a.Z,{componentType:18,within:"mweb-context-menu",children:({handleOpenApp:e})=>(0,S.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,S.jsx)(b.iP,{onTap:({event:t})=>{t.stopPropagation(),i(null),e({deepLinkUri:`/pin/${n}/`}),(0,m.My)("unauth.mweb.context_menu.open_in_app")},children:(0,S.jsx)(b.xv,{size:"200",weight:"bold",children:k.bt("在应用中打开", "Open in App", "unauth.mweb.context_menu.link.open_in_app", undefined, true)})})})}),["download","short_d"].includes(e.context)&&I?(0,S.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,S.jsx)(o.Z,{imgSrc:D,isChromeOnIOS:N,filename:T,pinId:n,viewType:3,imageSignature:I,children:e=>(0,S.jsx)(s.Z,{pressState:"none",onTouch:t=>{e().then((()=>{t.stopPropagation(),i(null),(0,m.My)("unauth.mweb.context_menu.download_image")}))},children:(0,S.jsx)(b.xv,{size:"200",weight:"bold",children:k.bt("下载图片", "Download image", "unauth.mweb.related_pin.context_menu.link.download_image", undefined, true)})})})}):(0,S.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,S.jsx)(b.iP,{onTap:({event:e})=>{e.stopPropagation(),i(null),(0,m.My)("unauth.mweb.context_menu.save_image"),e&&z.saveButtonConfig.onSaveButtonClick(e)},children:(0,S.jsx)(b.xv,{size:"200",weight:"bold",children:k.bt("收藏图片", "Save image", "unauth.mweb.context_menu.link.save_image", undefined, true)})})}),["download","save","short_s","short_d"].includes(e.context)&&(0,S.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,S.jsx)(b.iP,{onTap:({event:e})=>{e.stopPropagation(),i(null),t&&t(!0),(0,m.My)("unauth.mweb.context_menu.share_related_pin")},children:(0,S.jsx)(b.xv,{size:"200",weight:"bold",children:k.bt("分享图片", "Share image", "unauth.mweb.context_menu.link.share_menu", undefined, true)})})}),(0,S.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,S.jsx)(b.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,S.jsx)(b.xv,{size:"200",weight:"bold",children:k.bt("在新标签页中打开链接", "Open link in new tab", "unauth.mweb.context_menu.link.plp_new_tab", undefined, true)})})}),["download","save","main"].includes(e.context)&&(M||!(!j||!L))&&(0,S.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,S.jsx)(b.iP,{onTap:()=>{(0,m.My)("unauth.mweb.context_menu.see_more_pins"),O.push(L?`${L}`:U)},children:j?(0,S.jsx)(b.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,_.nk)(k.bt("查看更多关于 {{levelOneInterestName}} 的点子", "See more ideas about {{levelOneInterestName}}", "unauth.mweb.context_menu.link.see_more_ideas.l1", undefined, true),{levelOneInterestName:j})}):(0,S.jsx)(b.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,_.nk)(k.bt("查看更多关于 {{interestTag}} 的点子", "See more ideas about {{interestTag}}", "unauth.mweb.context_menu.link.see_more_ideas.interest_tag", undefined, true),{interestTag:M})})})}),["download","save","main"].includes(e.context)&&!(!E||!x)&&(0,S.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,S.jsx)(b.iP,{onTap:()=>{(0,m.My)("unauth.mweb.context_menu.more_from_creator"),O.push(`/${x}/`)},children:(0,S.jsx)(b.xv,{size:"200",weight:"bold",lineClamp:2,children:(0,_.nk)(k.bt("更多来自 {{full_name}} 的内容", "See more from {{full_name}}", "unauth.context_menu.link.more_from_creator", undefined, true),{full_name:E})})})}),(0,S.jsx)(b.xu,{rounding:2,paddingX:3,paddingY:2,role:"listitem",children:(0,S.jsx)(b.iP,{onTap:({event:e})=>{e.stopPropagation(),i(null),(0,m.My)("unauth.mweb.context_menu.login_signup"),B({reason:"CLICK_LOGIN_OR_SIGNUP",attributionLabel:"tap_unauth_context_menu_login_signup"})},children:(0,S.jsx)(b.xv,{size:"200",weight:"bold",children:k.bt("登录或注册以查看更多", "Log in or sign up for more", "unauth.mweb.context_menu.link.login_signup", undefined, true)})})})]}):null}function A({graphqlRef:e,pinId:t,...i}){var n,a,o,r,s;const l=(0,x.useFragment)(T,e),d=(0,u.Z)(l);let c;var p,h;(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===(h=l.linkDomain)||void 0===h?void 0:h.officialUser)&&void 0!==p?p:null==l?void 0:l.pinner);const _=(null==l?void 0:l.gridTitle)||(null==l?void 0:l.closeupUnifiedDescription),m=null==l?void 0:l.imageSignature;return(0,S.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:_,pinImageSignature:m,pinJoinVisualAnnotation:null==l||null===(o=l.pinJoin)||void 0===o?void 0:o.visualAnnotation,pinJoinSeoBreadcrumbName:(null==l||null===(r=l.pinJoin)||void 0===r?void 0:r.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 w({graphqlRef:e,pinId:t,...i}){var n,a,o,r,s,l;const d=(0,y.S6)()(t),{link_domain:c,native_creator:u,origin_pinner:p,pinner:_}=d||{};let m=(0,h.wS)(c,u,p,_);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:_);const{full_name:f,username:b}=null!==(n=m)&&void 0!==n?n:{},x=(null==d?void 0:d.grid_title)||(null==d?void 0:d.closeup_unified_description),P=null==d?void 0:d.image_signature;return(0,S.jsx)(I,{...i,embedSrc:null==d||null===(a=d.embed)||void 0===a?void 0:a.src,embedType:null==d||null===(o=d.embed)||void 0===o?void 0:o.type,images:null==d?void 0:d.images,sourceUserUsername:f,sourceUserFullname:b,pinDownloadFilename:x,pinImageSignature:P,pinJoinVisualAnnotation:null==d||null===(r=d.pin_join)||void 0===r?void 0:r.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 C(e){return e.graphqlRef?(0,S.jsx)(A,{...e}):(0,S.jsx)(w,{...e})}},893101:(e,t,i)=>{i.d(t,{Z:()=>_});var n=i(702664),a=i(172071),o=i(938917),r=i(436851),s=i(948376),l=i(50286),d=i(276775),c=i(780280),u=i(56390),p=i(339363),h=i(53987);const _=()=>{const{isBot:e}=(0,c.B)(),t=(0,d.useLocation)(),{userAgentPlatform:i,userAgent:_}=(0,n.useSelector)((e=>e.session)),m=(0,o.Z)(),g=(0,l.ml)();return!e&&!(g&&!m)&&!(0,s.Rp)({platform:i,userAgent:_})&&((0,h.uM)(t)||(0,h.am)(t))&&!(0,u.P)()&&!(e=>!!(0,r.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))(_)}},862193:(e,t,i)=>{i.d(t,{Z:()=>s});var n,a=i(667294),o=i(167912);const r=void 0!==n?n:n=i(569772),s=e=>{var t;const i=(0,o.useFragment)(r,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])}},491563:(e,t,i)=>{i.d(t,{Z:()=>S});var n=i(667294),a=i(702664),o=i(116303),r=i(815613),s=i(149230),l=i(898781),d=i(883119),c=i(785893);const u={__style:{backgroundColor:"rgba(0, 0, 0, 0.04)"}},p=({height:e,image:t,width:i})=>{var n,a,o;const r=(0,l.ZP)();return(0,c.jsx)(d.xu,{dangerouslySetInlineStyle:{__style:{borderRight:"1px solid white"}},children:t?(0,c.jsxs)(d.xu,{position:"relative",children:[(0,c.jsx)(d.GH,{width:i,height:e,contentAspectRatio:"number"==typeof t.height&&"number"==typeof t.width?t.width/t.height:1,children:(0,c.jsx)(d.Ee,{alt:r.bt("Pin 图图片", "pin image", "alt text for pin image", undefined, true),color:t.dominant_color||void 0,naturalWidth:null!==(n=t.width)&&void 0!==n?n:1,naturalHeight:null!==(a=t.height)&&void 0!==a?a:1,src:null!==(o=t.url)&&void 0!==o?o:""})}),(0,c.jsx)(d.xu,{dangerouslySetInlineStyle:u,height:e,width:i,position:"absolute",top:!0,left:!0})]}):(0,c.jsx)(d.xu,{color:"secondary",width:i,height:e})})};var h=i(112690),_=i(892819),m=i(865673),g=i(57791),v=i(349700),y=i(698330),f=i(780280),b=i(861411),x=i(461773);function S({action:e,auxData:t,isPinnerAuthorityHero:i=!1,userSearchRepStyle:u=!1,onFollowUser:S,onUnfollowUser:P,userId:E,userPins:T,viewParameter:I,viewType:A,truncateName:w=!1}){const C=(0,l.ZP)(),R=(0,_.Z)(),k=(0,a.useDispatch)(),{locale:O}=(0,f.B)(),D=(0,h.Z)(),[N,j]=(0,n.useState)(u?window.innerWidth-16:null),L=(0,y.mN)()(E);if(!L)return null;const{contextual_pin_image_urls:M,explicitly_followed_by_me:F,follower_count:U=0,full_name:B,image_medium_url:z,is_verified_merchant:V,recent_pin_images:H,username:Z,verified_identity:G}=L,K=e=>N?(N-(e-1))/e:0,W=u?1.6*K(4):117,$=(null==T?void 0:T.map((e=>{var t;return null==e||null===(t=e.images)||void 0===t?void 0:t["236x"]})))||[],Y=(null==H?void 0:H["222x"])||(null==H?void 0:H["192x"])||[];let q=(null==M?void 0:M["222x"])||(null==M?void 0:M["192x"])||[];i&&0===q.length&&(q=Y);const X=u&&q.length<=0;let J=u?q.concat(Y).slice(0,4):$.concat(Y).slice(0,2);0===J.length&&(J=[void 0,void 0]);const Q=!X&&(N?(0,c.jsx)(d.zd,{rounding:4,children:(0,c.jsx)(d.kC,{children:J.map(((e,t)=>(0,c.jsx)(p,{height:W,image:e,width:K(J.length)},`pinImage-${t}`)))})}):(0,c.jsx)(d.xu,{height:W,ref:e=>{e&&j(e.offsetWidth)},width:"100%"})),ee=e=>(0,c.jsx)(d.kC,{justifyContent:"center",children:(0,c.jsx)(d.xu,{marginTop:e,height:60,width:60,children:(0,c.jsx)(o.Z,{outline:!0,name:null!=B?B:"",src:null!=z?z:""})})}),te=e=>(0,c.jsxs)(d.kC,{direction:"column",gap:{row:0,column:1},alignItems:e,children:[(0,c.jsx)(d.kC,{alignItems:"stretch",maxWidth:(u?(N||0)/2:N)||void 0,children:(0,c.jsx)(d.xv,{align:e,weight:"bold",lineClamp:w?1:void 0,children:V||null!=G&&G.verified?(0,c.jsx)(m.Z,{badgeSize:"md",badgeSpacing:2,fullName:null!=B?B:"",verifiedType:V?"verifiedMerchant":"verifiedIdentity",truncate:w}):B})}),(0,c.jsx)(d.xv,{inline:!0,size:"100",align:e,children:(0,v.nk)(C.nbt(["{{followers}} 位粉丝"], U, "PinnerAuthority.followersCount", true),{followers:R(O,U,{shortform:!0})})})]}),ie=(0,c.jsx)(d.kC,{justifyContent:"center",children:e&&e.url?(0,c.jsx)(d.zx,{role:"link",accessibilityLabel:e.text,color:"gray",size:"lg",text:e.text,href:e.url,onClick:()=>{D({event_type:9029,object_id_str:E,view_type:A,view_parameter:I,aux_data:t})},rel:(0,s.Z)({url:e.url})?"nofollow":void 0,target:(0,s.Z)({url:e.url})?"blank":void 0}):(0,c.jsx)(r.Z,{id:E,isSecondaryButton:!0,isFollowed:F,onFollow:e=>{S&&S(),k((0,x.ZN)(e))},onUnfollow:e=>{P&&P(),k((0,x.fv)(e))},size:"lg",followEventType:45,unfollowEventType:46,viewParameter:I,viewType:A})});return(0,c.jsx)(b.Cy,{loggingId:E,objectIdStr:E,slotIndex:0,viewParameter:I,viewType:A,children:({impressionTrackerRef:e})=>(0,c.jsx)(d.xu,{ref:e,padding:1,marginBottom:6,"data-test-id":"user-rep",children:(0,c.jsx)(g.MZ,{to:`/${Z}/`,onTouch:()=>{D({event_type:43,object_id_str:E,view_parameter:I,view_type:A})},children:(0,c.jsxs)(d.kC,{direction:"column",gap:{row:0,column:2},width:"100%",children:[Q,u?(0,c.jsx)(d.xu,{width:"100%",children:(0,c.jsxs)(d.kC,{justifyContent:"between",alignItems:"center",children:[(0,c.jsxs)(d.kC,{alignItems:"center",gap:{row:2,column:0},children:[ee(),te("start")]}),ie]})}):(0,c.jsxs)(d.kC,{direction:"column",gap:{row:0,column:2},children:[ee(-10),te("center"),ie]})]})})})})}},865673:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(667294),a=i(512176),o=i(883119),r=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,r.jsxs)(o.kC,{alignItems:"stretch",justifyContent:"start",children:[(0,r.jsx)(o.xv,{lineClamp:1,weight:"bold",children:i}),(0,r.jsx)(o.xu,{flex:"none",position:"relative",dangerouslySetInlineStyle:{__style:{top:t}},paddingX:1,children:(0,r.jsx)(a.Z,{isVerifiedMerchant:"verifiedMerchant"===s,size:e,showVerifiedIdentity:"verifiedIdentity"===s})})]}):(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)("span",{children:c}),(0,r.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[u," ",(0,r.jsx)(o.xu,{display:"inlineBlock",flex:"none",position:"relative",dangerouslySetInlineStyle:{__style:{top:t}},children:(0,r.jsx)(a.Z,{isVerifiedMerchant:"verifiedMerchant"===s,size:e,showVerifiedIdentity:"verifiedIdentity"===s})})]})]})}},926749:(e,t,i)=>{i.d(t,{ZP:()=>E});var n=i(667294),a=i(23279),o=i.n(a),r=i(722767);function s(e){const{eventData:{videoEvent:{videoDuration:t,startTime:i,endTime:n,videoStartTime:a,videoEndTime:o,isAudible:r,height:s,width:l,playbackState:d,quartile:c,quartilePercentValue:u,windowHeight:p,windowWidth:h,viewability:_}},component:m,objectId:g,view:v,viewParameter:y,...f}=e;return{component:m,object_id_str:g,view_type:v,view_parameter:y,aux_data:{...f},event_data:{videoEventData:{videoDuration:t,time:i,endTime:n,videoTime:a,endVideoTime:o,isAudible:r,height:s,width:l,playbackState:d,quartile:c,quartilePercentValue:u,windowHeight:p,windowWidth:h,viewability:_}}}}var l=i(121630),d=i(944546),c=i(407043),u=i(158103),p=i(883119),h=i(785893);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 m=[0,.25,.5,.75,.95,.97],g=[0,.5,.8,.99,1],v="-64px 0px 0px 0px",y={rootMargin:v,threshold:g},f={rootMargin:v,threshold:d.iM},b=Object.freeze({LOADING:0,PLAYING:1,PAUSED:2,STALLING:3});function x(){return(new Date).getTime()}function S(e){return!!e.volume&&e.volume>0}class P extends n.Component{constructor(e){super(e),_(this,"videoWrapperRef",(0,n.createRef)()),_(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)}})),_(this,"handlePlayheadDown",(({event:e})=>{const{onPlayheadDown:t}=this.props;this.setState({seeking:!0}),t&&t({event:e})})),_(this,"handlePlayheadUp",(({event:e})=>{const{onPlayheadUp:t}=this.props;this.setState({seeking:!1}),t&&t({event:e})})),_(this,"handleLoop",(()=>{this.videoTime=0})),_(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=x();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)})),_(this,"handleDurationChange",(e=>{this.currentInterval.videoDuration=1e3*e.duration,this.props.onDurationChange&&this.props.onDurationChange(e)})),_(this,"handleReady",(e=>{const{ready:t}=this.state;t||this.setState({ready:!0}),this.props.onReady&&this.props.onReady(e)})),_(this,"handleEnded",(e=>{this.logFourthQuartileEvent(),this.props.loop&&(this.startNewInterval(),this.currentInterval.videoStartTime=0),this.props.onEnded&&this.props.onEnded(e)})),_(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:b.PAUSED}):this.startNewInterval({viewability:n}))})),_(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})})),_(this,"handleClose",(()=>{this.startNewInterval()})),_(this,"handleContextMenu",(e=>{e.preventDefault()})),this.state={ready:!1,seeking:!1};const t=x();this.handleWindowResize=o()(this.handleWindowResize,1e3),this.currentInterval={videoDuration:0,startTime:t,endTime:t,videoStartTime:0,videoEndTime:0,isAudible:S(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={};S(e)&&!S(this.props)?i.isAudible=!1:!S(e)&&S(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?b.PLAYING:b.PAUSED:b.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:o,width:r,windowHeight:l,windowWidth:d,viewability:c,...u}=t;if(null!=o&&null!=r&&null!=l&&null!=d&&null!=c){const t={...u,height:o,width:r,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=x();this.logVideoEvent(6906,{...this.currentInterval,startTime:e,endTime:e,videoStartTime:0,videoEndTime:0,quartile:4,quartilePercentValue:1})}startNewInterval(e){const t=x();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:o,accessibilityUnmuteLabel:s,aspectRatio:d,backgroundColor:c,captions:_,contextLogData:m,controls:g,cropHeight:v,hlsConfig:b,inAdsDesktopVideoExperiment:x,isAutoPlay:S,loop:P,objectFit:E,onLoadedChange:T,onControlsPause:I,onControlsPlay:A,onSeek:w,onVolumeChange:C,playbackRate:R,playing:k,playsInline:O,poster:D,preload:N,rootMargin:j,src:L,surface:M,videoStartTime:F,volume:U}=this.props,{seeking:B}=this.state,z=x?f:y;return void 0!==j&&(z.rootMargin=M?(0,l.e)(M):j),(0,h.jsx)(r.Z,{options:z,onVisibilityChange:this.handleVisibilityChange,children:(0,h.jsx)(p.xu,{ref:this.videoWrapperRef,onContextMenu:this.handleContextMenu,dangerouslySetInlineStyle:{__style:v?{display:"flex",alignItems:"center",height:`${v}px`}:{}},children:(0,h.jsx)(u.default,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:o,accessibilityUnmuteLabel:s,aspectRatio:v?236/v:d,backgroundColor:c,captions:_,contextLogData:m,controls:g,hlsConfig:b,isAutoPlay:S,loop:P,objectFit:E,onDurationChange:this.handleDurationChange,onEnded:this.handleEnded,onFullscreenChange:this.handleFullscreenChange,onLoadedChange:T,onLoop:this.handleLoop,onControlsPause:I,onControlsPlay:A,onPlayheadDown:this.handlePlayheadDown,onPlayheadUp:this.handlePlayheadUp,onReady:this.handleReady,onSeek:w,onTimeChange:this.handleTimeChange,onVolumeChange:C,playbackRate:R,playing:!B&&k,onPlay:()=>{},onPlayError:()=>{},playsInline:O,poster:D,preload:N,src:L,videoStartTime:F,visible:this.visible,volume:U})})})}}function E(e){const{logContextEvent:t}=(0,c.v)();return(0,h.jsx)(P,{...e,logContextEvent:t})}_(P,"defaultProps",p.nk.defaultProps)},158103:(e,t,i)=>{i.r(t),i.d(t,{VideoWrapper:()=>S,default:()=>P,getPlaylistSourceSrc:()=>x});var n=i(667294),a=i(19121),o=i(965900),r=i(407043),s=i(773285),l=i(858416),d=i(780280),c=i(883119),u=i(969315),p=i(179888),h=i(785893);function _(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),_(this,"state",{canPlayVideo:!1,playbackState:p.Cy.DEFAULT}),_(this,"errorRetryCount",2),_(this,"hasSegmentStarted",!1),_(this,"hasPlaybackStarted",!1),_(this,"hasVideoSessionStarted",!1),_(this,"hasVideoSessionEnded",!1),_(this,"lastStallTime",null),_(this,"lastPauseTime",null),_(this,"logSessionStartOnNextPlay",!1),_(this,"playerId",""),_(this,"videoSessionId",""),_(this,"videoVisibleTime",null),_(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}),_(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"}))})),_(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)})),_(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 o=this.videoPlayerRef&&this.videoPlayerRef.video,r={indicatedKbps:-1,duration:o&&o.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:o&&o.clientWidth||-1,viewportHeight:o&&o.clientHeight||-1,watchedDurationMs:0};i.push(r)})),_(this,"getCurrentVideoTime",(()=>this.videoPlayerRef&&this.videoPlayerRef.video?this.videoPlayerRef.video.currentTime*p.gJ:0)),_(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})),_(this,"handleCanPlayVideo",(e=>{const{contextLogData:t={},onReady:i,playing:n}=this.props,{is_closeup_video:a=!1}=t,{canPlayVideo:o}=this.state;(0,u.tE)("handleCanPlayVideo",!1,a,{firstCanPlayEvent:!o,playing:n}),this.playbackPerformance.hasFatalError=!1,o||(this.playbackPerformance.canPlayTime=new Date),this.setState({canPlayVideo:!0}),i&&i(e)})),_(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)})),_(this,"handleError",(()=>{var e,t,i,n,a,o,r,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===(o=c.error)||void 0===o||null===(r=o.message)||void 0===r?void 0:r.slice(0,100))||"unknown";const h={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,h),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})})),_(this,"handleLoadedMetadata",(()=>{this.setState({playbackState:p.Cy.LOADED_METADATA})})),_(this,"handleLoadStart",(()=>{this.playbackPerformance.loadStartTime=new Date,this.setState({playbackState:p.Cy.LOAD_START})})),_(this,"handleLoadedData",(()=>{this.setState({playbackState:p.Cy.LOADED_DATA})})),_(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()})),_(this,"handleUserPause",(e=>{const{onControlsPause:t}=this.props;this.lastPauseTime=new Date,t&&t(e)})),_(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})})),_(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})})),_(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}))})),_(this,"handleTimeUpdate",(e=>{const{onTimeChange:t}=this.props;t&&t(e),this.state.playbackState===p.Cy.PLAYING&&(this.updateWatchDurationForCurrentSegment(),this.setLastSegmentStartPlayTime())})),_(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]})),_(this,"setLastSegmentStartPlayTime",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.lastStartPlayTime&&(t.lastStartPlayTime=this.getCurrentVideoTime())})),_(this,"setLastSegmentPlaybackStartDate",(()=>{const{segments:e}=this.playbackPerformance,t=e&&e[e.length-1];t&&null===t.playbackStartDate&&(t.playbackStartDate=Date.now())})),_(this,"setPlaybackStartTime",(()=>{this.hasPlaybackStarted||(this.playbackPerformance.playbackStartTimestamp=Date.now(),this.hasPlaybackStarted=!0)})),_(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)}})),_(this,"updateStallDuration",(()=>{if(null!==this.lastStallTime){const e=this.lastStallTime;this.playbackPerformance.totalStallDurationMs+=new Date-e,this.lastStallTime=null}})),_(this,"updatePauseDuration",(()=>{if(null!==this.lastPauseTime){const e=this.lastPauseTime;this.playbackPerformance.totalPauseDurationMs+=new Date-e,this.lastPauseTime=null}})),_(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)}})),_(this,"logPlaybackPerformance",((e,t)=>{const{contextLogData:i={},userId:n,isAutoPlay:a,logContextEvent:o}=this.props,{is_closeup_video:r=!1}=i,{canPlayTime:s,detailedErrors:l,errorCode:d,errorName:c,errorReason:h,hasFatalError:_,loadStartTime:m,totalPauseDurationMs:g,totalStallDurationMs:v,numberOfStalls:y,numberOfSeeks:f,playbackStartTimestamp:b,segments:x,srcString:S}=this.playbackPerformance,P=this.videoPlayerRef&&this.videoPlayerRef.video,E=e===p.DR,T=E&&!this.hasVideoSessionStarted,I=!E&&!this.hasVideoSessionEnded&&this.hasVideoSessionStarted;if(P&&(T||I)){var A;let T=-1;s&&m&&(T=s>m?s-m:0);let I=-1;s&&this.videoVisibleTime&&(I=s>this.videoVisibleTime?s-this.videoVisibleTime:0),E&&(this.videoSessionId=(0,p.Y7)(n),this.playerId=this.playerId||(0,p.EB)());const w=this.getVideoResourceTiming(),C={averageVideoKbps:-1,autoplaying:a,detailedErrors:l,downloadedKiloBytes:"number"==typeof(null==w?void 0:w.decodedBodySize)&&w.decodedBodySize/p.Fm||0,errorCode:d,errorName:c,errorReason:h,fatalError:_,isCellular:!1,nativeVideoDurationMs:P.duration*p.gJ||-1,numberOfStalls:y,numberOfSeeks:f,overallPausedDurationMs:g,overallBufferDurationMs:v,overallWatchedDurationMs:-1,rebufferRate:-1,playbackSessionId:this.videoSessionId,playbackStartTimestamp:b||-1,segments:[],sessionMark:e,screenPixelScale:null!==(A=window)&&void 0!==A&&A.devicePixelRatio?window.devicePixelRatio:-1,startupPlayerWidth:P.clientWidth,startupPlayerHeight:P.clientHeight,startupTimeMs:T,startupLatencyMs:I,startupVariantKbps:-1,startupVariantWatchedDurationMs:-1,startupVariantWidth:P.videoWidth,startupVariantHeight:P.videoHeight,videoUrl:S};if(!E){this.updateWatchDurationForCurrentSegment(),this.updateStallDuration();const e=x.reduce(((e,t)=>e+(t.watchedDurationMs||0)),0);C.overallWatchedDurationMs=e,C.startupVariantWatchedDurationMs=e,C.segments=this.playbackPerformance.segments,0===e?(C.errorName="invalid_watch_duration",C.rebufferRate=-1):C.rebufferRate=v/e}(0,u.ZP)(C,!1,r,{playbackState:this.state.playbackState,...t});const{view:R,viewParameter:k,component:O,element:D,objectId:N,...j}=i;o({event_type:3606,event_data:{videoPerformanceData:C},view_type:R,view_parameter:k,component:O,element:D,object_id_str:N,aux_data:{...j,is_closeup_video:r,playback_session_id:this.videoSessionId}}),E?(this.hasVideoSessionStarted=!0,this.hasVideoSessionEnded=!1):this.resetPlaybackMetrics(),(0,u.tE)(E?"sessionStart":"sessionEnd",!1,r,{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:o,accessibilityUnmuteLabel:r,aspectRatio:s,captions:l,controls:d,loop:u,loopOverride:p,objectFit:_,onDurationChange:g,onFullscreenChange:v,onLoadedChange:y,onControlsPlay:f,onPlayheadDown:b,onPlayheadUp:x,onSeek:S,onVolumeChange:P,playbackRate:E,playing:T,playsInline:I,poster:A,preload:w,src:C,videoStartTime:R,volume:k}=this.props,{canPlayVideo:O}=this.state;return(0,h.jsx)(c.nk,{autoplay:O&&T,accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:o,accessibilityUnmuteLabel:r,aspectRatio:s,captions:l,controls:d,loop:void 0===p?u:p,objectFit:_,onDurationChange:g,onEnded:this.handleEnded,onError:this.handleError,onFullscreenChange:v,onLoadedChange:y,onLoadStart:this.handleLoadStart,onControlsPause:this.handleUserPause,onControlsPlay:f,onPlaying:this.handlePlaying,onPlayheadDown:b,onPlayheadUp:x,onReady:this.handleCanPlayVideo,onSeek:S,onSeeking:this.handleSeeking,onStalled:this.handleStalled,onTimeChange:this.handleTimeUpdate,onVolumeChange:P,onWaiting:this.handleStalled,playbackRate:E,onPlay:()=>{},onPlayError:()=>{},playing:O&&T,playsInline:I,poster:A,preload:w,ref:this.setVideoPlayerRef,src:m(C,this.props.quicExpGroup),startTime:R||void 0,volume:k})}}const v=(0,n.memo)((function(e){const{logContextEvent:t}=(0,r.v)(),{country:i,isAuthenticated:n,isBot:c,isSocialBot:p,unauthId:_,userAgent:m}=(0,d.B)(),{browserName:v,browserVersion:y,isMobile:f}=m,{contextLogData:b={}}=e,{is_closeup_video:x=!1,view:S,viewParameter:P}=b,{appUI:{appInFocus:E}}=(0,o.I)(),{checkExperiment:T}=(0,s.F)(),{clearSeekTime:I}=(0,l.RC)();let A=null;n&&(A=T("web_video_quic").group.length?T("web_video_quic").group:null);const w=(0,a.Z)(),C={browserName:v,browserVersion:y,country:i,isAuthenticated:n,isBot:c,is_closeup_video:x,isMobile:f,isSocialBot:p,view:S,viewParameter:P};return(0,u.r$)(C),(0,h.jsx)(g,{...e,userId:w.id||_,appInFocus:E,quicExpGroup:A,logContextEvent:t,clearSeekTime:I})}));var y=i(562559),f=i(366284);function b(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const x=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 S extends n.PureComponent{constructor(e){super(e),b(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)})),b(this,"setVideoPlayerRef",(e=>{e&&(this.videoPlayerRef=e)})),b(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=x(e.src);this.state={useHlsVideo:!e.preferMp4&&!(0,f.G6)(e.requestContext.userAgent.browserName)&&!!t}}render(){const{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:o,accessibilityUnmuteLabel:r,aspectRatio:s,appInFocus:l,backgroundColor:d,captions:c,contextLogData:u,controls:p,hlsConfig:_,isAutoPlay:m,loop:g,objectFit:f,onDurationChange:b,onEnded:S,onFullscreenChange:P,onLoadedChange:E,onControlsPause:T,onControlsPlay:I,onPlayheadDown:A,onPlayheadUp:w,onReady:C,onSeek:R,onTimeChange:k,onVolumeChange:O,playbackRate:D,playing:N,playsInline:j,poster:L,preferMp4:M,preload:F,src:U,videoStartTime:B,visible:z,volume:V}=this.props,{useHlsVideo:H}=this.state,Z=x(U),G={..._,startPosition:B||-1},K=!S&&g;return H&&Z?(0,h.jsx)(y.Z,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:o,accessibilityUnmuteLabel:r,aspectRatio:s,appInFocus:l,backgroundColor:d,captions:c,contextLogData:u,controls:p,hlsConfig:G,isAutoPlay:m,loop:g,loopOverride:K,onDurationChange:b,onEnded:this.handleOnEnded,onFullscreenChange:P,onLoadedChange:E,onControlsPause:T,onControlsPlay:I,onPlayheadDown:A,onPlayheadUp:w,onReady:C,onSeek:R,onTimeChange:k,onVolumeChange:O,playbackRate:D,onPlay:()=>{},onPlayError:()=>{},playing:N,playsInline:j,poster:L,preload:F,setVideoRef:this.setVideoPlayerRef,src:Z,visible:z,volume:V}):(0,h.jsx)(v,{accessibilityMaximizeLabel:e,accessibilityMinimizeLabel:t,accessibilityMuteLabel:i,accessibilityPauseLabel:n,accessibilityPlayLabel:a,accessibilityProgressBarLabel:o,accessibilityUnmuteLabel:r,aspectRatio:s,captions:c,contextLogData:u,controls:p,isAutoPlay:m,loop:g,loopOverride:K,objectFit:f,onDurationChange:b,onEnded:this.handleOnEnded,onFullscreenChange:P,onLoadedChange:E,onControlsPause:T,onControlsPlay:I,onPlayheadDown:A,onPlayheadUp:w,onReady:C,onSeek:R,onTimeChange:k,onVolumeChange:O,playbackRate:D,onPlay:()=>{},onPlayError:()=>{},playing:N,playsInline:j,poster:L,preload:F,setVideoRef:this.setVideoPlayerRef,src:M?U:Z||U,videoStartTime:B,visible:z,volume:V})}}function P(e){const{appUI:{appInFocus:t}}=(0,o.I)(),i=(0,d.B)();return(0,h.jsx)(S,{...e,appInFocus:t,requestContext:i})}},944546:(e,t,i)=>{i.d(t,{HJ:()=>a,VS:()=>n,iM:()=>o});const n=2,a="V_HLSV3_MOBILE",o=[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:()=>o,Z:()=>r});var n=i(667294);const a=(0,n.createContext)();function o(){return(0,n.useContext)(a)}const r=a},373897:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n},e.exports.__esModule=!0,e.exports.default=e.exports},163405:(e,t,i)=>{var n=i(373897);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},474704:(e,t,i)=>{var n=i(386116);e.exports=function(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=n(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return s=e.done,e},e:function(e){l=!0,r=e},f:function(){try{s||null==i.return||i.return()}finally{if(l)throw r}}}},e.exports.__esModule=!0,e.exports.default=e.exports},238416:e=>{e.exports=function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},e.exports.__esModule=!0,e.exports.default=e.exports},564836:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},379498:e=>{e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},742281:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},242122:(e,t,i)=>{var n=i(238416);function a(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}e.exports=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?a(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},600861:(e,t,i)=>{var n=i(163405),a=i(379498),o=i(386116),r=i(742281);e.exports=function(e){return n(e)||a(e)||o(e)||r()},e.exports.__esModule=!0,e.exports.default=e.exports},386116:(e,t,i)=>{var n=i(373897);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}}]);
//# sourceMappingURL=https://sm.pinimg.com/webapp/duplo-ProfileBoards.zh_CN-b66d637b6d55dd25.mjs.map