1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7990],{39061:(e,t,r)=>{"use strict";r.d(t,{I:()=>n,l:()=>i});let i=["giphy","meme","fancy","pixel","subtitle"],n=["font","gif","image","video"]},80065:(e,t,r)=>{Promise.resolve().then(r.bind(r,90533))},82576:(e,t,r)=>{"use strict";r.d(t,{d9:()=>c,NN:()=>o,FW:()=>l,Bn:()=>a});var i=r(39061),n=r(82994);let s=RegExp(["gif","gifs","sticker","stickers","video","videos","transparent","transparents","clips","with-sound"].map(e=>`\\b(${e})\\b`).join("|"),"gi"),a=(e="")=>e.replace(s,"").trim();function c(e){if("string"==typeof e){let t=(0,n.hS)(e);return i.I.find(e=>(function(e){switch(e){case"font":return[".ttf"];case"gif":return[".gif"];case"image":return[".jpeg",".jpg",".png"];case"video":return[".mov",".mp4",".webm"]}})(e).indexOf(t)>-1)}return i.I.find(t=>(function(e){switch(e){case"font":return["font/ttf"];case"gif":return["image/gif"];case"image":return["image/jpeg","image/png"];case"video":return["video/mov","video/mp4","video/quicktime","video/webm"]}})(t).indexOf(e.type)>-1)}async function o(e){let t="string"==typeof e?e:URL.createObjectURL(e);return new Promise((e,r)=>{let i=document.createElement("img");i.onerror=()=>r(),i.onload=()=>{e(i)},i.crossOrigin="anonymous",i.src=t})}async function l(e){let t="string"==typeof e?e:URL.createObjectURL(e);return new Promise((e,r)=>{let i=document.createElement("video");i.onerror=()=>r(),i.oncanplay=()=>{e(i)},i.crossOrigin="anonymous",i.preload="auto",i.src=t})}},82732:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(54568),n=r(99680),s=r(48828),a=r(88275);let c=new(r(2011)).uK(s.OT.fourOhFourApiKey),o=()=>{let e,t=(0,n.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(a.Ay,{fetchGifs:l}),t[0]=e):e=t[0],e};function l(e){return c.trending({offset:e})}},82994:(e,t,r)=>{"use strict";r.d(t,{hS:()=>s,vz:()=>o,rs:()=>m,x5:()=>c,iV:()=>u});let i=/(http|https)?:\/\/(www\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|)(\d+)(?:|\/\?)/,n=/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/;function s(e){return e.match(i)?"vimeo":e.match(n)?"youtube":e.indexOf("imaging.giphy.com")>-1?e.indexOf("fmt=mp4")>-1?".mp4":".gif":`.${e.split("?")[0].split(".").pop()}`}let a="[A-Za-z0-9]{6,24}",c=e=>e.replace(/media\d+\.giphy\.com/,"media.giphy.com"),o=(e="",t=!1)=>t?((e="",t=!1)=>`/search/${l(e)}${t?"-stickers":""}`)(e,t):`/explore/${l(e)}`,l=e=>`${e.replace(/[^\w\s-@]+/g,"").replace(/\s\s+/g," ").trim().replace(/ /g,"-")}`,m=e=>{let t=RegExp(`/(gifs|stickers|clips|media)/([A-Za-z0-9-]+-)?(${a})/?`),r=e.match(t);return r?r[3]:null},u=e=>{let t=RegExp(`^${a}$`);return!!e.match(t)}},90533:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var i=r(54568),n=r(99680),s=r(7620),a=r(82732),c=r(35410);let o="PLACEMENT_ERROR:",l=" PLACEMENTS_DEBUG:";var m=r(48828);let u=window.location.pathname.startsWith("/password/change/"),g="https://giphy.com"===m.Dd&&!u&&.05>=Math.random(),p=async e=>{if(g){let t=(await r.e(6884).then(r.bind(r,96884))).TrackJS;t.isInstalled()||t.install({token:"00a54533935841dea5b9a1d9b7395dd3",application:"giphy-next",network:{error:!1},window:{promise:!1}}),e&&t.track(e)}};function d(e){let t,r,m,u,g,d,f,h,w,y,x=(0,n.c)(18),{error:v}=e;x[0]!==v?(t=()=>{p(v)},r=[v],x[0]=v,x[1]=t,x[2]=r):(t=x[1],r=x[2]),(0,s.useEffect)(t,r),x[3]!==v.message?(m=v.message?.startsWith(o),x[3]=v.message,x[4]=m):m=x[4];let b=m;x[5]!==v.message?(u=function(e){if(!e?.startsWith(o))return;let t=e.indexOf(l);if(-1!==t)try{return JSON.parse(e.slice(t+l.length))}catch{return}}(v.message),x[5]=v.message,x[6]=u):u=x[6];let E=u;x[7]!==E?(g=()=>{E&&console.info("[placements debug]",E)},d=[E],x[7]=E,x[8]=g,x[9]=d):(g=x[8],d=x[9]),(0,s.useEffect)(g,d);let j=b?"Please try again later.":"Find another GIF from our trending feed";return x[10]===Symbol.for("react.memo_cache_sentinel")?(f=(0,i.jsx)("h2",{children:"Oh-oh! Something went wrong!"}),x[10]=f):f=x[10],x[11]!==j?(h=(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center rounded-lg bg-gradient-primary p-5",children:[f,(0,i.jsx)("p",{children:j})]}),x[11]=j,x[12]=h):h=x[12],x[13]!==b?(w=b?(0,i.jsx)("img",{src:"https://giphy.com/static/img/error_pages/crying-cowbow-emoji.gif",alt:"Error",className:"mx-auto mt-4 h-[220px] w-[220px]"}):(0,i.jsx)(a.A,{}
1),x[13]=b,x[14]=w):w=x[14],x[15]!==h||x[16]!==w?(y=(0,i.jsx)(c.default,{routeName:"/error",children:(0,i.jsxs)("div",{className:"mt-3 flex flex-col gap-3",children:[h,w]})}),x[15]=h,x[16]=w,x[17]=y):y=x[17],y}p()}},e=>{e.O(0,[8373,1210,2668,4713,2011,2616,1798,933,8928,5319,7463,8828,598,6121,8275,5410,587,7730,7358],()=>e(e.s=80065)),_N_E=e.O()}]); 2//# sourceMappingURL=error-f2db9da75b99e678.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.