1"use strict";(self.webpackChunkisonic_web=self.webpackChunkisonic_web||[]).push([[1869],{32772:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(77457),o=n(84286),s=n(70579);const i=188/60;function l(e){let{size:t=36,fill:n=!1,variant:l="wordmark",className:a=""}=e;if("icon"===l)return(0,s.jsx)("span",{className:`cm-logo ${a}`.trim(),style:{display:"inline-flex",width:t,height:t},"aria-label":"iSonic",role:"img",children:(0,s.jsx)(o.A,{size:t,contrastColor:"currentColor"})});if(n)return(0,s.jsx)("span",{className:`cm-logo ${a}`.trim(),style:{display:"block",width:"100%"},"aria-label":"iSonic Alpha",role:"img",children:(0,s.jsx)(r.f5,{preserveAspectRatio:"xMinYMid meet",style:{display:"block",width:"100%",height:"auto"}})});const c=t*i;return(0,s.jsx)("span",{className:`cm-logo ${a}`.trim(),style:{display:"inline-flex",width:c,height:t},"aria-label":"iSonic Alpha",role:"img",children:(0,s.jsx)(r.f5,{preserveAspectRatio:"xMinYMid meet",style:{width:"100%",height:"100%"}})})}},11812:(e,t,n)=>{n.d(t,{A:()=>h});var r=n(65043),o=n(29305),s=n(13922),i=n(21445),l=n(70579);const a=/(?:^|[^A-Za-z0-9_@./-])@([A-Za-z0-9][A-Za-z0-9_.]*)?$/,c=6;function d(e){return String(e||"").toLowerCase().replace(/[^a-z0-9]/g,"")}function u(e){const t=String((null===e||void 0===e?void 0:e.code)||"").trim(),n=[String((null===e||void 0===e?void 0:e.first_name)||"").trim(),String((null===e||void 0===e?void 0:e.last_name)||"").trim()].filter(Boolean).join(" "),r=String((null===e||void 0===e?void 0:e.handle)||"").trim()||d(n)||d(t);return r?{handle:r,code:t,name:n||t||r,logo:"string"===typeof(null===e||void 0===e?void 0:e.logo)?e.logo:""}:null}function h(e){var t,n;let{placeholder:d="Ask anything",autoFocus:h=!1,focusSignal:m=0,disabled:p=!1,onSubmit:f,knownCreators:x=[],mentionRequest:v=null,creatorIds:g=[],onCreatorIdsChange:k,variant:b="default"}=e;const[w,y]=(0,r.useState)(""),[j,N]=(0,r.useState)(null),[C,S]=(0,r.useState)([]),[A,$]=(0,r.useState)(!1),[L,z]=(0,r.useState)(0),B=(0,r.useRef)(null),E=(0,r.useRef)(""),I=(0,r.useRef)(0),M=(0,r.useRef)(null!==(t=null===v||void 0===v?void 0:v.nonce)&&void 0!==t?t:0),R="hero"===b,_=R?16:14,F=null!==(n=null===j||void 0===j?void 0:j.query)&&void 0!==n?n:"",H=(0,r.useMemo)((()=>{if(!j)return[];const e=F.toLowerCase();return function(e){const t=new Set,n=[];for(const r of e)null!==r&&void 0!==r&&r.handle&&(t.has(r.handle)||(t.add(r.handle),n.push(r)));return n}([...x.map(u).filter(Boolean).filter((t=>!e||t.handle.includes(e)||t.code.toLowerCase().includes(e)||t.name.toLowerCase().includes(e))),...C]).slice(0,c)}),[x,F,C,j]),W=Boolean(j)&&(H.length>0||A),D=(0,r.useCallback)((e=>{"function"===typeof k&&k(e)}),[k]),q=(0,r.useCallback)((e=>{const t=(0,o.v9)(g,x.map((e=>(null===e||void 0===e?void 0:e.handle)||(null===e||void 0===e?void 0:e.code)))),n=(0,o.v9)(g,e.flatMap((e=>(0,o.op)(e,t))));return n.length!==g.length&&D(n),n}),[D,g,x]),T=(0,r.useCallback)((e=>{const t=(0,o.hz)(e);return 0===t.length?{scope:g,text:e}:{scope:q(t),text:(0,o.Ot)(e)}}),[q,g]);(0,r.useEffect)((()=>{var e,t;const n=null!==(e=null===(t=w.match(/@[A-Za-z0-9_.]*$/))||void 0===t?void 0:t[0])&&void 0!==e?e:"",r=n?w.slice(0,-n.length):w,{text:o}=T(r);if(o===r)return;const s=`${o}${o&&n&&!/\s$/.test(o)?" ":""}${n}`;E.current=s,y(s)}),[T,w]),(0,r.useEffect)((()=>{h&&B.current&&B.current.focus()}),[h]),(0,r.useEffect)((()=>{m&&B.current&&B.current.focus()}),[m]),(0,r.useEffect)((()=>{const e=B.current;e&&(e.style.height="auto",e.style.height=Math.min(e.scrollHeight,200)+"px")}),[w]),(0,r.useEffect)((()=>{z(0)}),[j]),(0,r.useEffect)((()=>{if(!j)return S([]),void $(!1);const e=++I.current;$(!0);const t=setTimeout((async()=>{try{const t=await(0,s.e)(F);if(e!==I.current)return;const n=Array.isArray(null===t||void 0===t?void 0:t.creators)?t.creators.map(u).filter(Boolean):[];S(n)}catch{if(e!==I.current)return;S([])}finally{e===I.current&&$(!1)}}),160);return()=>clearTimeout(t)}),[F,j]);const Z=(0,r.useCallback)((()=>{const e=B.current;if(!e||e.value!==E.current)return;const t=function(e){if(!e)return null;const{selectionStart:t,selectionEnd:n,value:r}=e;if(t!==n)return null;const o=r.slice(0,t).match(a);if(!o)return null;const s=o[1]||"";return{query:s,start:t-s.length-1,end:t}}(e);N((e=>{if(!e||!t)return e===t?e:t;return e.query===t.query&&e.start===t.start&&e.end===t.end?e:t}))}),[]),O=(0,r.useCallback)((()=>{I.current+=1,N(null),$(!1)}),[]),U=(0,r.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=B.current;if(e){if(n&&t){const e=E.current,r=e.slice(0,t.start).replace(/[ \t]+$/,""),o=e.slice(t.end
1).replace(/^[ \t]+/,""),s=r&&o?" ":"",i=r.length+s.length;E.current=`${r}${s}${o}`,y(E.current),requestAnimationFrame((()=>{n.focus(),n.setSelectionRange(i,i)}))}N(null),$(!1),q([e])}}),[q]);(0,r.useEffect)((()=>{const e=null===v||void 0===v?void 0:v.nonce;e&&e!==M.current&&(M.current=e,U(v.handle))}),[U,v]);const K=()=>{if(p)return;const e=T(w.trim()),t=e.scope,n=e.text.trim();E.current="",y(""),O(),n&&f&&f(n,t)};return(0,l.jsxs)("div",{className:"relative w-full border border-ink-200 bg-surface shadow-soft transition-colors focus-within:border-ink-300 "+(R?"rounded-[1.75rem] px-5 py-3 sm:px-5 sm:py-3.5":"rounded-2xl px-4 py-3"),children:[W?(0,l.jsxs)("div",{className:"absolute bottom-full left-0 z-30 mb-2 w-[min(22rem,100%)] overflow-hidden rounded-2xl border border-ink-200 bg-surface shadow-soft",children:[(0,l.jsx)("div",{className:"border-b border-ink-100 px-3 py-2 text-[11px] font-semibold uppercase tracking-[0.08em] text-ink-400",children:"Mention a creator"}),0===H.length?(0,l.jsx)("div",{className:"px-3 py-3 text-[13px] text-ink-400",children:"Searching\u2026"}):(0,l.jsx)("ul",{className:"max-h-64 overflow-y-auto py-1",children:H.map(((e,t)=>(0,l.jsx)("li",{children:(0,l.jsxs)("button",{type:"button",onMouseDown:t=>{t.preventDefault(),U(e.handle,j)},onMouseEnter:()=>z(t),className:"flex w-full items-center gap-2.5 px-3 py-2 text-left transition-colors "+(t===L?"bg-ink-100":"hover:bg-ink-50"),children:[(0,l.jsx)(i.A,{name:e.name,seed:e.code||e.handle,logo:e.logo,size:26}),(0,l.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,l.jsx)("span",{className:"block truncate text-[13px] font-medium text-ink-900",children:e.name===e.handle?`@${e.handle}`:e.name}),e.name===e.handle?null:(0,l.jsxs)("span",{className:"block truncate text-[12px] text-ink-500",children:["@",e.handle]})]})]})},e.handle)))})]}):null,(0,l.jsxs)("div",{className:R?"flex items-end gap-3":"",children:[(0,l.jsx)("textarea",{ref:B,rows:1,value:w,disabled:p,onChange:e=>{E.current=e.target.value,y(e.target.value),Z()},onKeyUp:Z,onClick:Z,onBlur:O,onKeyDown:e=>{if(W&&H.length>0){if("ArrowDown"===e.key||"ArrowUp"===e.key){e.preventDefault();const t="ArrowDown"===e.key?1:-1;return void z((e=>(e+t+H.length)%H.length))}if("Enter"===e.key||"Tab"===e.key){e.preventDefault();const t=H[L]||H[0];return void U(t.handle,j)}if("Escape"===e.key)return e.preventDefault(),void O()}"Enter"!==e.key||e.shiftKey||(e.preventDefault(),K())},placeholder:d,className:"block w-full resize-none border-0 bg-transparent text-ink-900 focus:outline-none "+(R?"min-h-[28px] min-w-0 flex-1 py-1.5 text-[16px] leading-6 placeholder:text-ink-400 md:text-[15px]":"text-[15px] leading-6 placeholder:text-ink-400")}),(0,l.jsx)("div",{className:R?"shrink-0":"mt-2 flex items-center justify-end",children:(0,l.jsxs)("button",{type:"button",onClick:K,disabled:p||!w.trim(),"aria-label":"Send",className:"flex items-center gap-1.5 rounded-full font-medium transition-colors disabled:opacity-100 "+(R?"h-10 bg-ink-100 px-4 text-[14px] text-ink-500 hover:bg-ink-200 disabled:bg-ink-100 disabled:text-ink-400 md:h-9 md:text-[13px]":"h-9 bg-btn px-4 text-[13px] text-btn-fg transition-opacity hover:opacity-90 disabled:bg-ink-200 disabled:text-ink-400"),children:["Send",(0,l.jsx)("svg",{width:_,height:_,viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:(0,l.jsx)("path",{d:"M5 12h14M13 6l6 6-6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})})]})]})}},86737:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(29305),o=n(21445),s=n(10404),i=n(70579);function l(e){let{creatorIds:t=[],onChange:n,className:l=""}=e;const a=(0,r.fn)(t);return 0===a.length?null:(0,i.jsxs)("div",{role:"group","aria-label":"Creator scope",className:"flex flex-wrap items-center gap-1.5 "+l,children:[(0,i.jsx)("span",{className:"text-[12px] font-medium text-ink-400",children:"Asking"}),a.map((e=>(0,i.jsxs)("span",{title:e.ids.join(", "),className:"inline-flex items-center gap-1.5 rounded-full bg-ink-100 py-1 pl-1 pr-1 text-[12px] font-medium text-ink-700",children:[(0,i.jsx)(s.A,{handle:e.handle,children:(0,i.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,i.jsx)(o.A,{name:e.handle,seed:e.handle,size:18}),(0,i.jsxs)("span",{className:"line-clamp-1 max-w-[200px]",children:["@",e.handle]})]})}),(0,i.jsx)("button",{type:"button",onClick:()=>n((0,r.H_)(t,e.handle)),"aria-label":`Remove @${e.handle} from scope`,title:"Remove \u2014 ask all creators",className:"grid h-5 w-5 shrink-0 place-items-center rounded-full text-ink-500 transition-colors hover:bg-ink-200 hover:text-ink-900",children:(0,i.jsxs)("svg",{viewBox:"0 0 24 24",width:"11",height:"11",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,
1children:[(0,i.jsx)("path",{d:"M18 6 6 18"}),(0,i.jsx)("path",{d:"m6 6 12 12"})]})})]},e.handle))),(0,i.jsx)("button",{type:"button",onClick:()=>n([]),className:"rounded-lg px-1.5 py-1 text-[11px] font-semibold text-ink-500 transition-colors hover:bg-ink-100 hover:text-ink-900",children:"Clear all"})]})}},52925:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(65043),o=n(21445),s=n(70579);function i(e){if(!e||"object"!==typeof e)return null;const t=String(e.code||"").trim(),n=String(e.first_name||"").trim(),r=String(e.last_name||"").trim(),o=[n,r].filter(Boolean).join(" ")||t||"Unknown";return{id:t||`${n}-${r}`,code:t,name:o,handle:t?`@${t}`:"",logo:"string"===typeof e.logo?e.logo:""}}const l="https://isonic.ai/api".replace(/\/$/,"");function a(e){const t=null===e||void 0===e?void 0:e.querySelector("[data-creator-card]");if(!t)return 220;const n=window.getComputedStyle(e),r=parseFloat(n.columnGap||n.gap||"0")||0;return t.getBoundingClientRect().width+r}function c(e){let{className:t="",defaultOpen:n=!0}=e;const[o,c]=(0,r.useState)((()=>n)),[h,m]=(0,r.useState)(""),[p,f]=(0,r.useState)(""),[x,v]=(0,r.useState)([]),[g,k]=(0,r.useState)(null),[b,w]=(0,r.useState)(!1),[y,j]=(0,r.useState)(null),[N,C]=(0,r.useState)(!1),S=(0,r.useRef)(null),A=(0,r.useRef)(null),$=(0,r.useRef)(0);(0,r.useEffect)((()=>{const e=setTimeout((()=>f(h.trim())),250);return()=>clearTimeout(e)}),[h]),(0,r.useEffect)((()=>{if(!o)return;const e=++$.current;w(!0),j(null);const t=p?`${l}/public/creators?search=${encodeURIComponent(p)}`:`${l}/public/creators`;(async()=>{try{const n=await fetch(t,{headers:{Accept:"application/json"}}),r=await n.json();if(e!==$.current)return;if(!n.ok)throw new Error((null===r||void 0===r?void 0:r.error)||`Request failed (${n.status})`);const o=Array.isArray(null===r||void 0===r?void 0:r.creators)?r.creators.map(i).filter(Boolean):[];v(o),k((null===r||void 0===r?void 0:r.meta)||null)}catch(n){if(e!==$.current)return;j((null===n||void 0===n?void 0:n.message)||"Couldn't load creators"),v([]),k(null)}finally{if(e!==$.current)return;w(!1)}})()}),[o,p]),(0,r.useEffect)((()=>{S.current&&(S.current.scrollLeft=0)}),[x]);const L=e=>{const t=S.current;if(!t)return;const n=a(t);t.scrollBy({left:e*n*2,behavior:"smooth"})};(0,r.useEffect)((()=>{if(!o||b||x.length<=1||N)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;const e=window.setInterval((()=>{const e=S.current;if(!e)return;const t=e.scrollWidth-e.clientWidth;if(t<=0)return;const n=a(e);e.scrollLeft>=t-n/2?e.scrollTo({left:0,behavior:"auto"}):e.scrollBy({left:n,behavior:"smooth"})}),2600);return()=>window.clearInterval(e)}),[N,x.length,b,o]);const z=(()=>{if(b&&0===x.length)return"loading\u2026";const e=x.length,t=null===g||void 0===g?void 0:g.total_count;return"number"===typeof t&&t!==e?`${e} of ${t}`:`${e}`})();return(0,s.jsxs)("div",{className:`min-w-0 max-w-full ${t}`.trim(),children:[(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsxs)("button",{type:"button",onClick:()=>{c((e=>{const t=!e;return t?setTimeout((()=>{var e;return null===(e=A.current)||void 0===e?void 0:e.focus()}),220):(m(""),f("")),C(!1),t}))},"aria-expanded":o,"aria-controls":"creators-accordion-panel",className:"group inline-flex items-center gap-1.5 rounded-full px-3 py-2 text-[14px] font-medium text-ink-500 transition hover:text-ink-900 md:py-1 md:text-[13px]",children:[(0,s.jsx)("span",{children:o?"Hide creators":"Browse creators"}),(0,s.jsx)("svg",{viewBox:"0 0 24 24",width:"12",height:"12",fill:"none",stroke:"currentColor",strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:"transition-transform duration-200 "+(o?"rotate-180":""),children:(0,s.jsx)("path",{d:"m6 9 6 6 6-6"})})]})}),(0,s.jsx)("div",{id:"creators-accordion-panel","aria-hidden":!o,className:"creators-accordion "+(o?"open":""),children:(0,s.jsx)("div",{className:"creators-accordion-inner",children:(0,s.jsxs)("div",{className:"mt-3 min-w-0 overflow-hidden rounded-2xl border border-ink-200 bg-surface",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3 px-4 pb-1 pt-4 md:px-4 md:pt-3.5",children:[(0,s.jsxs)("div",{className:"text-[15px] font-semibold text-ink-900 md:text-[14px]",children:["Featured Creators",(0,s.jsx)("span",{className:"ml-2 font-medium text-ink-400",children:z})]}),(0,s.jsxs)("label",{className:"creators-search relative flex w-[min(15rem,58%)] items-center gap-2 rounded-full border border-ink-200 bg-ink-50 px-3 py-1.5 focus-within:border-ink-300 focus-within:bg-surface md:px-2.5 md:py-1",children:[(0,s.jsx)("span",{className:"sr-only",children:"Search creators"}),(0,s.jsx)("span",{className:"flex shrink-0 items-center text-ink-400",children:(0,s.jsxs)("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,
1className:"block",children:[(0,s.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,s.jsx)("path",{d:"m20 20-3.5-3.5"})]})}),(0,s.jsx)("input",{ref:A,type:"text",value:h,onChange:e=>m(e.target.value),placeholder:"Search creators",className:"min-w-0 flex-1 border-0 bg-transparent p-0 text-[14px] leading-5 text-ink-900 outline-none placeholder:text-ink-300 md:text-[12.5px]"}),h?(0,s.jsx)("button",{type:"button",onClick:()=>m(""),"aria-label":"Clear search",className:"grid h-5 w-5 shrink-0 place-items-center rounded-full text-ink-400 hover:bg-ink-100 hover:text-ink-700",children:(0,s.jsxs)("svg",{viewBox:"0 0 24 24",width:"11",height:"11",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:"block",children:[(0,s.jsx)("path",{d:"M18 6 6 18"}),(0,s.jsx)("path",{d:"m6 6 12 12"})]})}):null]})]}),(0,s.jsxs)("div",{className:"relative px-2 pb-5 pt-4 md:px-1 md:pb-4 md:pt-3",onMouseEnter:()=>{C(!0);const e=S.current;e&&e.scrollTo({left:e.scrollLeft,behavior:"auto"})},onMouseLeave:()=>{C(!1)},children:[(0,s.jsx)("button",{type:"button",onClick:()=>L(-1),"aria-label":"Scroll left",className:"absolute left-3 top-1/2 z-10 grid h-10 w-10 -translate-y-1/2 place-items-center rounded-full border border-ink-100 bg-surface text-ink-700 shadow-soft transition hover:bg-ink-50 md:left-2 md:h-8 md:w-8",children:(0,s.jsx)("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:(0,s.jsx)("path",{d:"m15 18-6-6 6-6"})})}),(0,s.jsx)("button",{type:"button",onClick:()=>L(1),"aria-label":"Scroll right",className:"absolute right-3 top-1/2 z-10 grid h-10 w-10 -translate-y-1/2 place-items-center rounded-full border border-ink-100 bg-surface text-ink-700 shadow-soft transition hover:bg-ink-50 md:right-2 md:h-8 md:w-8",children:(0,s.jsx)("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:(0,s.jsx)("path",{d:"m9 18 6-6-6-6"})})}),y?(0,s.jsxs)("div",{className:"px-4 py-8 text-center text-[14px] text-ink-500 md:text-[12.5px]",children:["Couldn't load creators.",(0,s.jsxs)("span",{className:"ml-1 text-ink-400",children:["(",y,")"]})]}):b&&0===x.length?(0,s.jsx)("div",{className:"creators-scroller flex min-w-0 w-full max-w-full snap-x snap-mandatory gap-4 overflow-x-auto px-3 pb-2",style:{scrollbarWidth:"thin"},children:Array.from({length:6}).map(((e,t)=>(0,s.jsx)(u,{},t)))}):0===x.length?(0,s.jsx)("div",{className:"px-4 py-8 text-center text-[14px] text-ink-500 md:text-[12.5px]",children:p?(0,s.jsxs)(s.Fragment,{children:["No creators match"," ",(0,s.jsxs)("span",{className:"font-medium text-ink-700",children:["\u201c",p,"\u201d"]}),"."]}):"No creators yet."}):(0,s.jsx)("div",{ref:S,className:"creators-scroller flex min-w-0 w-full max-w-full snap-x snap-mandatory gap-4 overflow-x-auto px-3 pb-2",style:{scrollbarWidth:"thin"},children:x.map((e=>(0,s.jsx)(d,{creator:e},e.id)))})]})]})})})]})}function d(e){let{creator:t}=e;const n=t.code?`https://isonic.ai/${encodeURIComponent(t.code)}`:null,r=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.A,{name:t.name,seed:t.id||t.code,logo:t.logo,size:72,className:"ring-2 ring-ink-100"}),(0,s.jsx)("div",{className:"mt-2.5 line-clamp-1 text-[13px] font-semibold tracking-tight text-ink-900",children:t.name}),t.handle?(0,s.jsx)("div",{className:"line-clamp-1 text-[11.5px] text-ink-400",children:t.handle}):null]}),i="group flex w-[8.5rem] shrink-0 snap-start flex-col items-center rounded-2xl px-2 py-3 text-center transition duration-200 hover:bg-ink-50 sm:w-[9rem] md:w-36 md:px-2 md:py-2.5";return n?(0,s.jsx)("a",{"data-creator-card":!0,href:n,target:"_blank",rel:"noopener noreferrer",title:`Open ${t.name} on iSonic`,className:i,children:r}):(0,s.jsx)("div",{"data-creator-card":!0,className:i,children:r})}function u(){return(0,s.jsxs)("div",{"data-creator-card":!0,className:"flex w-[8.5rem] shrink-0 snap-start flex-col items-center rounded-2xl px-2 py-3 sm:w-[9rem] md:w-36 md:px-2 md:py-2.5",children:[(0,s.jsx)("div",{className:"h-[72px] w-[72px] animate-pulse rounded-full bg-ink-100"}),(0,s.jsx)("div",{className:"mt-3 h-3.5 w-24 animate-pulse rounded bg-ink-100"}),(0,s.jsx)("div",{className:"mt-2 h-3 w-20 animate-pulse rounded bg-ink-50"})]})}},7363:(e,t,n)=>{n.d(t,{cK:()=>d,oH:()=>m,ly:()=>h,QL:()=>c,Zn:()=>a,xR:()=>u});var r=n(51097);const o="cm_owner";function s(){const e=function(){try{return window.localStorage.getItem(o)||""}catch{return""}}();return e?{"X-Owner-Id":e}:{}}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,headers:{...s(),...e.headers||{}}}}function l(e){return null!==e&&void 0!==e&&e.ownerId&&function(e){if(e)try{window.localStorage.setItem(o,e)}catch{}}(e.ownerId),e}async function a(){const e=await r.FH.get("/api/v2/ask/conversations",i());return Array.isArray(e)?e:[]}async function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.FH.get(`/api/v2/ask/conversations/${e}`,i(t))}async function d(){let{message:e="",seedOnly:t=!1,creatorIds:n=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l(await r.FH.post("/api/v2/ask/conversations",{message:e,seedOnly:t,creatorIds:n},i()))}async function u(e){let{creatorIds:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.FH.patch(`/api/v2/ask/conversations/${e}`,{creatorIds:t},i())}async function h(e){return r.FH.delete(`/api/v2/ask/conversations/${e}`,i())}async function m(e){let{role:t,content:n,data:o,creatorIds:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l={role:t,content:n};void 0!==o&&(l.data=o),Array.isArray(s)&&(l.creatorIds=s);const a=await r.FH.post(`/api/v2/ask/conversations/${e}/messages`,l,i());return(null===a||void 0===a?void 0:a.message)||a}},29305:(e,t,n)=>{n.d(t,{H_:()=>h,JU:()=>d,Ot:()=>l,YN:()=>a,fn:()=>m,hz:()=>i,op:()=>c,v9:()=>u});var r=n(68830),o=n(75927);const s=/(^|[^A-Za-z0-9_@./-])@([A-Za-z0-9][A-Za-z0-9_.]*)/g;function i(e){const t=String(e||""),n=[],o=new Set;for(const i of t.matchAll(s)){const e=(0,r.ul)(i[2]);if(!e)continue;const t=e.toLowerCase();o.has(t)||(o.add(t),n.push(e))}return n}function l(e){return String(e||"").replace(s,((e,t)=>t)).replace(/[ \t]{2,}/g," ").replace(/^[ \t]+/gm,"")}function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[],n=new Set;for(const i of e){var r,s;const e=null===i||void 0===i||null===(r=i.data)||void 0===r||null===(s=r.agent)||void 0===s?void 0:s.contentLinks;if(Array.isArray(e))for(const r of e){const e=(0,o.X5)(null===r||void 0===r?void 0:r.creator_id);e&&!n.has(e)&&(n.add(e),t.push(e))}}return t}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=(0,r.ul)(e);if(!n)return[];const o=t.filter((e=>(0,r.ul)(e).toLowerCase()===n.toLowerCase()));return o.length>0?d(o):d([n])}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return u((Array.isArray(e)?e:[]).map(r.bD))}function u(){const e=[],t=new Set;for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];for(const i of r)for(const n of Array.isArray(i)?i:[]){const r=(0,o.X5)(n);r&&!t.has(r)&&(t.add(r),e.push(r))}return e}function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;const n=(0,r.ul)(t).toLowerCase();return n?e.filter((e=>(0,r.ul)(e).toLowerCase()!==n)):[...e]}function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=new Map;for(const n of e){const e=(0,o.X5)(n);if(!e)continue;const s=(0,r.ul)(e)||e,i=s.toLowerCase(),l=t.get(i);
1l?l.ids.push(e):t.set(i,{handle:s,ids:[e]})}return[...t.values()]}}}]); 2//# sourceMappingURL=1869.c143f5fe.chunk.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.