1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,994179,e=>{"use strict";var t=e.i(843476),r=e.i(225913),n=e.i(586011),s=e.i(647163);let i=(0,r.cva)("inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline",conservation:"text-white font-medium",taxonomy:"bg-surface-warm text-text-primary","tier-free":"bg-surface-warm text-text-secondary","tier-plus":"bg-surface-amber-light text-brand-amber border border-brand-amber/20"}},defaultVariants:{variant:"default"}});function a({className:e,variant:r="default",asChild:a=!1,...l}){let o=a?n.Slot.Root:"span";return(0,t.jsx)(o,{"data-slot":"badge","data-variant":r,className:(0,s.cn)(i({variant:r}),e),...l})}e.s(["Badge",()=>a])},23750,e=>{"use strict";var t=e.i(843476),r=e.i(647163);function n({className:e,type:n,...s}){return(0,t.jsx)("input",{type:n,"data-slot":"input",className:(0,r.cn)("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...s})}e.s(["Input",()=>n])},246349,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",()=>t])},233525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},818581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(271645);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=i(e,n)),t&&(s.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},998183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return o},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return l}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});function i(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function l(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,a(e));else t.set(r,a(n));return t}function o(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},195057,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return l},formatWithValidation:function(){return c},urlObjectKeys:function(){return o}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(190809)._(e.r(998183)),a=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",l=e.hash||"",o=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),o&&"object"==typeof o&&(o=String(i.urlQueryToSearchParams(o)));let u=e.search||o&&`?${o}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),u&&"?"!==u[0]&&(u="?"+u),s=s.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${s}${u}${l}`}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return l(e)}},718967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return x},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return v},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return p},ST:function(){return g},WEB_VITALS:function(){return i},execOnce:function(){return a},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return o},isResSent:function(){return f},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return j}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let l=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>l.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let p="u">typeof performance,g=p&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class x extends Error{}class b extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function j(e){return JSON.stringify({message:e.message,stack:e.stack})}},573668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(718967),s=e.r(652817);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},284508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},522016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return x},useLinkStatus:function(){return y}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(190809),a=e.r(843476),l=i._(e.r(271645)),o=e.r(195057),c=e.r(8372),u=e.r(818581),d=e.r(718967),f=e.r(405550);e.r(233525);let h=e.r(91949),m=e.r(573668),p=e.r(509396);function g(e){return"string"==typeof e?e:(0,o.formatUrl)(e)}function x(t){var r;let n,s,i,[o,x]=(0,l.useOptimistic)(h.IDLE_LINK_STATUS),y=(0,l.useRef)(null),{href:v,as:w,children:j,prefetch:N=null,passHref:k,replace:S,shallow:_,scroll:C,onClick:P,onMouseEnter:E,onTouchStart:O,legacyBehavior:R=!1,onNavigate:A,ref:L,unstable_dynamicOnHover:I,...T}=t;n=j,R&&("string"==typeof n||"number"==typeof n)&&(n=(0,a.jsx)("a",{children:n}));let M=l.default.useContext(c.AppRouterContext),$=!1!==N,B=!1!==N?null===(r=N)||"auto"===r?p.FetchStrategy.PPR:p.FetchStrategy.Full:p.FetchStrategy.PPR,{href:z,as:U}=l.default.useMemo(()=>{let e=g(v);return{href:e,as:w?g(w):e}},[v,w]);if(R){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>
1` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=l.default.Children.only(n)}let D=R?s&&"object"==typeof s&&s.ref:L,F=l.default.useCallback(e=>(null!==M&&(y.current=(0,h.mountLinkInstance)(e,z,M,B,$,x)),()=>{y.current&&((0,h.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,h.unmountPrefetchableInstance)(e)}),[$,z,M,B,x]),W={ref:(0,u.useMergedRef)(F,D),onClick(t){R||"function"!=typeof P||P(t),R&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!M||t.defaultPrevented||function(t,r,n,s,i,a,o){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){i&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(699781);l.default.startTransition(()=>{d(n||r,i?"replace":"push",a??!0,s.current)})}}(t,z,U,y,S,C,A)},onMouseEnter(e){R||"function"!=typeof E||E(e),R&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),M&&$&&(0,h.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){R||"function"!=typeof O||O(e),R&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),M&&$&&(0,h.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,d.isAbsoluteUrl)(U)?W.href=U:R&&!k&&("a"!==s.type||"href"in s.props)||(W.href=(0,f.addBasePath)(U)),i=R?l.default.cloneElement(s,W):(0,a.jsx)("a",{...T,...W,children:n}),(0,a.jsx)(b.Provider,{value:o,children:i})}e.r(284508);let b=(0,l.createContext)(h.IDLE_LINK_STATUS),y=()=>(0,l.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},475254,e=>{"use strict";var t=e.i(271645);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,t.forwardRef)(({color:e="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:l="",children:o,iconNode:c,...u},d)=>(0,t.createElement)("svg",{ref:d,...s,width:n,height:n,stroke:e,strokeWidth:a?24*Number(i)/Number(n):i,className:r("lucide",l),...!o&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(u)&&{"aria-hidden":"true"},...u},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(o)?o:[o]])),a=(e,s)=>{let a=(0,t.forwardRef)(({className:a,...l},o)=>(0,t.createElement)(i,{ref:o,iconNode:s,className:r(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...l}));return a.displayName=n(e),a};e.s(["default",()=>a],475254)},225913,e=>{"use strict";var t=e.i(207670);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,n=t.clsx;e.s(["cva",0,(e,t)=>s=>{var i;if((null==t?void 0:t.variants)==null)return n(e,null==s?void 0:s.class,null==s?void 0:s.className);let{variants:a,defaultVariants:l}=t,o=Object.keys(a).map(e=>{let t=null==s?void 0:s[e],n=null==l?void 0:l[e];if(null===t)return null;let i=r(t)||r(n);return a[e][i]}),c=s&&Object.entries(s).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return n(e,o,null==t||null==(i=t.compoundVariants)?void 0:i.reduce((e,t)=>{let{class:r,className:n,...s}=t;return Object.entries(s).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...l,...c}[t]):({...l,...c})[t]===r})?[...e,r,n]:e},[]),null==s?void 0:s.class,null==s?void 0:s.className)}])},586011,e=>{"use strict";var t=e.i(991918);e.s(["Slot",0,t])},167881,e=>{"use strict";var t=e.i(843476),r=e.i(225913),n=e.i(586011),s=e.i(647163);let i=(0,r.cva)("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline",accent:"bg-accent text-accent-foreground hover:bg-accent/90"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function a({className:e,variant:r="default",size:a="default",asChild:l=!1,...o}){let c=l?n.Slot.Root:"button";return(0,t.jsx)(c,{"data-slot":"button","data-variant":r,"data-size":a,className:(0,s.cn)(i({variant:r,size:a,className:e})),...o})}e.s(["Button",()=>a])},531278,e=>{"use strict";let t=(0,e.i(475254).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",()=>t],531278)},678745,e=>{"use strict";let t=(0,e.i(475254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",()=>t])},75830,586318,e=>{"use strict";var t=e.i(271645),r=e.i(30030),n=e.i(820783),s=e.i(991918),i=e.i(843476);function a(e){let a=e+"CollectionProvider",[l,o]=(0,r.createContextScope)(a),[c,u]=l(a,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:r,children:n}=e,s=t.default.useRef(null),a=t.default.useRef(new Map).current;return(0,i.jsx)(c,{scope:r,itemMap:a,collectionRef:s,children:n})};d.displayName=a;let f=e+"CollectionSlot",h=(0,s.createSlot)(f),m=t.default.forwardRef((e,t)=>
1{let{scope:r,children:s}=e,a=u(f,r),l=(0,n.useComposedRefs)(t,a.collectionRef);return(0,i.jsx)(h,{ref:l,children:s})});m.displayName=f;let p=e+"CollectionItemSlot",g="data-radix-collection-item",x=(0,s.createSlot)(p),b=t.default.forwardRef((e,r)=>{let{scope:s,children:a,...l}=e,o=t.default.useRef(null),c=(0,n.useComposedRefs)(r,o),d=u(p,s);return t.default.useEffect(()=>(d.itemMap.set(o,{ref:o,...l}),()=>void d.itemMap.delete(o))),(0,i.jsx)(x,{...{[g]:""},ref:c,children:a})});return b.displayName=p,[{Provider:d,Slot:m,ItemSlot:b},function(r){let n=u(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},o]}var l=new WeakMap;function o(e,t){var r,n;let s,i,a;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let l=(r=e,n=t,s=r.length,(a=(i=c(n))>=0?i:s+i)<0||a>=s?-1:a);return -1===l?void 0:e[l]}function c(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],l.set(this,!0)}set(e,t){return l.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,s=this.has(t),i=this.#e.length,a=c(e),l=a>=0?a:i+a,o=l<0||l>=i?-1:l;if(o===this.size||s&&o===this.size-1||-1===o)return this.set(t,r),this;let u=this.size+ +!s;a<0&&l++;let d=[...this.#e],f=!1;for(let e=l;e<u;e++)if(l===e){let i=d[e];d[e]===t&&(i=d[e+1]),s&&this.delete(t),n=this.get(i),this.set(t,r)}else{f||d[e-1]!==t||(f=!0);let r=d[f?e:e-1],s=n;n=this.get(r),this.delete(r),this.set(r,s)}return this}with(t,r,n){let s=new e(this);return s.insert(t,r,n),s}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=o(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=o(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return o(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],s=0;for(let e of this)Reflect.apply(t,r,[e,s,this])&&n.push(e),s++;return new e(n)}map(t,r){let n=[],s=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,s,this])]),s++;return new e(n)}reduce(...e){let[t,r]=e,n=0,s=r??this.at(0);for(let r of this)s=0===n&&1===e.length?r:Reflect.apply(t,this,[s,r,n,this]),n++;return s}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let s=this.at(r);n=r===this.size-1&&1===e.length?s:Reflect.apply(t,this,[n,s,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,s=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(s=r-1);for(let e=t;e<=s;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}}),e.s(["createCollection",()=>a],75830);var u=t.createContext(void 0);function d(e){let r=t.useContext(u);return e||r||"ltr"}e.s(["useDirection",()=>d],586318)},631171,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["default",()=>t])},678784,e=>{"use strict";var t=e.i(678745);e.s(["CheckIcon",()=>t.default])},54943,e=>{"use strict";let t=(0,e.i(475254).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["default",()=>t])},555436,e=>{"use strict";var t=e.i(54943);e.s(["Search",()=>t.default])},37727,e=>{"use strict";var t=e.i(841947);e.s(["X",()=>t.default])},263488,e=>{"use strict";let t=(0,e.i(475254).default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Mail",()=>t],263488)},107233,e=>{"use strict";let t=(0,e.i(475254).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",()=>t],107233)},299023,e=>{"use strict";let t=(0,e.i(475254).default)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);e.s(["Minus",()=>t],299023)},614695,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(522016);function s(){let[e,s]=(0,r.useState)(""),[i,a]=(0,r.useState)("idle"),[l,o]=(0,r.useState)("");async function c(t){if(t.preventDefault(),e.trim()){a("loading");try{let r=t.target;if(r.elements.namedItem("website")?.value){a("success"),o("You're subscribed! Check your inbox.");return}let n=await fetch("/api/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e.trim()})}),i=await n.json();if(!n.ok){a("error"),o(i.error||"Something went wrong");return}a("success"),o(201===n.status?"You're subscribed! Check your inbox.":"You're already subscribed â nothing to do!"),s("")}catch{a("error"),o("Something went wrong. Please try again.")}}}return"success"===i?(0,t.jsxs)("div",{className:"mt-6 space-y-2 text-center",children:[(0,t.jsx)("p",{className:"text-sm text-brand-amber",children:l}),(0,t.jsxs)("p",{className:"text-xs text-brand-sage",children:["Want personalised bird reports?"," ",(0,t.jsx)(n.default,{href:"/welcome",className:"font-medium text-brand-amber underline hover:text-brand-amber/80",children:"Create a free account"})," ","to get a monthly digest tailored to your area."]})]}):(0,t.jsxs)("form",{className:"mt-6 flex gap-2",onSubmit:c,children:[(0,t.jsx)("input",{type:"text",name:"website",autoComplete:"off",tabIndex:-1,"aria-hidden":"true",className:"absolute -left-[9999px] h-0 w-0 opacity-0"}
1),(0,t.jsx)("input",{type:"email",required:!0,value:e,onChange:e=>{s(e.target.value),"error"===i&&a("idle")},placeholder:"Your email address",className:"h-11 flex-1 rounded-lg border border-white/10 bg-white/[0.06] px-4 text-sm text-brand-cream placeholder:text-brand-sage/60 outline-none transition-colors focus:border-brand-amber/40 focus:ring-1 focus:ring-brand-amber/20",disabled:"loading"===i}),(0,t.jsx)("button",{type:"submit",disabled:"loading"===i,className:"h-11 shrink-0 rounded-lg bg-brand-amber px-5 text-sm font-medium text-white transition-colors hover:bg-brand-amber/90 disabled:opacity-60",children:"loading"===i?"...":"Subscribe"}),"error"===i&&(0,t.jsx)("p",{className:"absolute mt-14 text-xs text-red-400",children:l})]})}e.s(["NewsletterForm",()=>s])},893101,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(522016),s=e.i(263488),i=e.i(968553),a=e.i(810980),l=e.i(920755);function o(){let[e,o]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{(0,l.createClient)().auth.getUser().then(({data:{user:e}})=>{o(!!e)})},[]),(0,t.jsxs)("div",{className:"mx-auto flex max-w-7xl flex-wrap items-center justify-center gap-6 px-4 py-5 sm:gap-10",children:[(0,t.jsxs)(n.default,{href:"/identify",className:"flex items-center gap-2 text-sm text-brand-sage transition-colors hover:text-brand-amber",children:[(0,t.jsx)(i.Camera,{className:"h-4 w-4"})," Identify a Bird"]}),(0,t.jsxs)(n.default,{href:e?"/my-digests":"/welcome",className:"flex items-center gap-2 text-sm text-brand-sage transition-colors hover:text-brand-amber",children:[(0,t.jsx)(s.Mail,{className:"h-4 w-4"})," Get Your Bird Digest"]}),(0,t.jsxs)(n.default,{href:e?"/my-birds":"/life-list",className:"flex items-center gap-2 text-sm text-brand-sage transition-colors hover:text-brand-amber",children:[(0,t.jsx)(a.BookOpen,{className:"h-4 w-4"})," Track Your Life List"]})]})}e.s(["FooterFeatureLinks",()=>o])},972520,e=>{"use strict";let t=(0,e.i(475254).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",()=>t],972520)},667585,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return s}});let n=e.r(132061);function s({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},309885,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n}})},652157,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return o}});let n=e.r(843476),s=e.r(174080),i=e.r(563599),a=e.r(309885),l=e.r(543369);function o({moduleIds:e}){if("u">typeof window)return null;let t=i.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e)}}if(0===r.length)return null;let o=(0,l.getDeploymentIdQueryOrEmptyString)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,a.encodeURIPath)(e)}${o}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,s.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},869093,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c}});let n=e.r(843476),s=e.r(271645),i=e.r(667585),a=e.r(652157);function l(e){return{default:e&&"default"in e?e.default:e}}let o={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},c=function(e){let t={...o,...e},r=(0,s.lazy)(()=>t.loader().then(l)),c=t.loading;function u(e){let l=c?(0,n.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,u=o?s.Suspense:s.Fragment,d=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(a.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(u,{...o?{fallback:l}:{},children:d})}return u.displayName="LoadableComponent",u}},770703,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return s}});let n=e.r(555682)._(e.r(869093));function s(e,t){let r={};"function"==typeof e&&(r.loader=e);let s={...r,...t};return(0,n.default)({...s,modules:s.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},599471,e=>{"use strict";e.i(247167);var t=e.i(843476),r=e.i(271645),n=e.i(770703),s=e.i(522016),i=e.i(346897),a=e.i(263488),l=e.i(972520);let o=(0,e.i(475254).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var c=e.i(531278),u=e.i(167881),d=e.i(920755);let f=(0,n.default)(()=>e.A(498724).then(e=>e.Turnstile),{loadableGenerated:{modules:[726424]},ssr:!1}),h="bf_digest_preview_submitted",m="0x4AAAAAACqCn-Lk4v-W717I";function p({className:e,speciesName:n,variant:p="inline"}){let[g,x]=(0,r.useState)(!1),[b,y]=(0,r.useState)(""),[v,w]=(0,r.useState)(""),[j,N]=(0,r.useState)(!1),[k,S]=(0,r.useState)(!1),[_,C]=(0,r.useState)(""),[P,E]=(0,r.useState)(0),[O,R]=(0,r.useState)(null),[A,L]=(0,r.useState)(!1),[I,T]=(0,r.useState)(!1),M=(0,r.useRef)(null),[$,B]=(0,r.useState)(!1),[z,U]=(0,r.useState)(0),[D,F]=(0,r.useState)(!1),W=(0,r.useRef)(null),q=(0,r.useRef)([]),X=(0,r.useRef)(!1),K=(0,r.useRef)(!1),Y=(0,r.useId)(),H=(0,r.useCallback)(()=>{B(!0)},[]),G=(0,r.useCallback)(e=>{W.current=e,X.current=!1,K.current=!1,F(!1);let t=q.current;q.current=[],t.forEach(t=>t(e))},[]),J=(0,r.useCallback)(()=>{W.current=null},[]),V=(0,r.useCallback)(()=>{W.current=null,X.current=!0},[]),Q=(0,r.useCallback)(()=>{K.current=!0,F(!0)},[]),Z=(0,r.useCallback)(()=>{K.current=!1,F(!1)},[]),ee=(0,r.useCallback)(()=>W.current?Promise.resolve(W.current):new Promise(e=>{let t=e=>n(e),r=window.setTimeout(()=>n(null),4e3);function n(n){window.clearTimeout(r),q.current=q.current.filter(e=>e!==t),e(n)}q.current.push(t)}),[]),et=(0,r.useCallback)(()=>{W.current=null,X.current=!1,K.current=!1,F(!1),U(e=>e+1)},[]);if((0,r.useEffect)(()=>{let e=localStorage.getItem("bf_dismiss_digest_capture");!(e&&(Date.now()-parseInt(e,10))/864e5<30)&&(sessionStorage.getItem(h)||(0,d.createClient)().auth.getUser().then(({data:{user:e}})=>{e||x(!0)}))},[]),!g&&"inline"===p)return null;async function er(e){if(e.preventDefault(),j)return;R(null),N(!0);let t=null;if(B(!0),!(t=await ee())){X.current?(R("The security check couldn't load. Check your connection or any content blocker, then tap See My Birds again."),et()):K.current?R("Please complete the quick security check above, then tap See My Birds again."):R("We couldn't finish the security check in time. Please tap See My Birds again."),N(!1);return}try{let e=await fetch("/api/digest-preview",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:b.trim(),postcode:v.trim(),turnstileToken:t})}),r=await e.json();if(!e.ok){et(),R(r.error||"Something went wrong. Please try again."),N(!1);return}if(r.alreadySubscribed){L(!0),T(r.hasAccount),C(r.regionName||"your area"),N(!1);return}S(!0),C(r.regionName||"your area"),E(r.speciesCount||0),sessionStorage.setItem(h,"1"),N(!1)}catch{et(),R("Something went wrong. Please try again."),N(!1)}}return k?(0,t.jsxs)("div",{id:"digest-preview-capture",className:`rounded-xl border border-brand-forest/20 bg-surface-green-light/50 p-6 text-center ${e??""}`,children:[(0,t.jsx)(o,{className:"mx-auto mb-3 h-8 w-8 text-brand-forest"}),(0,t.jsx)("p",{className:"font-serif text-lg font-medium",children:"Check your inbox!"}),(0,t.jsxs)("p",{className:"mt-1 text-sm text-muted-foreground",children:["We found ",P," birds near ",_," this month."]}),(0,t.jsxs)("p",{className:"mt-4 text-sm text-muted-foreground",children:["Want the full guide every month?"," ",(0,t.jsx)(s.default,{href:"/welcome?source=digest_preview",className:"font-medium text-brand-forest hover:underline",children:"Create a free account"})]})]}):A?(0,t.jsxs)("div",{id:"digest-preview-capture",className:`rounded-xl border border-border bg-surface-cream/60 p-6 text-center ${e??""}`,children:[(0,t.jsx)("p",{className:"font-serif text-lg font-medium",children:"You're already subscribed!"}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:I?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.default,{href:"/login",className:"font-medium text-brand-forest hover:underline",children:"Sign in"})," ","to access your full dashboard."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.default,{href:"/welcome?source=digest_preview",className:"font-medium text-brand-forest hover:underline",children:"Create a free account"})," ","for unlimited access."]})})]}):(0,t.jsxs)("div",{id:"digest-preview-capture",className:`rounded-xl border border-border bg-white p-6 mb-8 ${e??""}`,children:[(0,t.jsxs)("div",{className:"flex items-start gap-3 mb-4",children:[(0,t.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-brand-amber/10",children:(0,t.jsx)(i.MapPin,{className:"h-5 w-5 text-brand-amber"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"font-serif text-lg font-medium text-primary",children:n?"What other birds are near you this month?"
1:"Which birds are near you right now?"}),(0,t.jsx)("p",{className:"mt-0.5 text-sm text-muted-foreground",children:"Enter your email and location for a free preview of birds in your area this month."})]})]}),(0,t.jsxs)("form",{ref:M,onSubmit:er,onFocusCapture:H,onPointerDownCapture:H,className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:gap-3",children:[(0,t.jsxs)("div",{className:"relative flex-1",children:[(0,t.jsx)(a.Mail,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)("input",{type:"email",required:!0,placeholder:"[email protected]",value:b,onChange:e=>y(e.target.value),className:"h-11 w-full rounded-lg border border-border bg-white pl-10 pr-3 text-sm placeholder:text-muted-foreground focus:border-brand-forest focus:outline-none focus:ring-1 focus:ring-brand-forest"})]}),(0,t.jsxs)("div",{className:"relative sm:w-[180px]",children:[(0,t.jsx)(i.MapPin,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)("input",{type:"text",required:!0,placeholder:"Postcode or city",value:v,onChange:e=>w(e.target.value),className:"h-11 w-full rounded-lg border border-border bg-white pl-10 pr-3 text-sm placeholder:text-muted-foreground focus:border-brand-forest focus:outline-none focus:ring-1 focus:ring-brand-forest"})]})]}),m&&$&&(0,t.jsxs)("div",{"aria-live":"polite",children:[D&&(0,t.jsx)("p",{className:"mb-2 text-sm text-muted-foreground",children:"One quick check before we send your birds:"}),(0,t.jsx)(f,{id:`digest-turnstile-${Y}`,siteKey:m,onSuccess:G,onExpire:J,onError:V,onBeforeInteractive:Q,onAfterInteractive:Z,options:{action:"digest_preview",appearance:"interaction-only",size:"flexible",theme:"light"}},z)]}),O&&(0,t.jsx)("p",{className:"text-sm text-red-600",children:O}),(0,t.jsx)(u.Button,{type:"submit",variant:"accent",size:"lg",className:"w-full rounded-full",disabled:j,children:j?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}),"Finding birds..."]}):(0,t.jsxs)(t.Fragment,{children:["See My Birds",(0,t.jsx)(l.ArrowRight,{className:"ml-2 h-4 w-4"})]})})]}),(0,t.jsx)("p",{className:"mt-3 text-xs text-muted-foreground",children:"Free preview. No account needed. Unsubscribe anytime."})]})}e.s(["DigestPreviewCapture",()=>p],599471)},950380,e=>{"use strict";var t=e.i(247167);let r=t.default.env.NEXT_PUBLIC_APP_STORE_URL??null,n=t.default.env.NEXT_PUBLIC_PLAY_STORE_URL??null;t.default.env.NEXT_PUBLIC_IOS_APP_ID;let s=!!(r||n);e.s(["APP_IS_LIVE",0,s,"APP_STORE_URL",0,r,"PLAY_STORE_URL",0,n])},975558,e=>{"use strict";let t=(0,e.i(475254).default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);e.s(["ArrowUp",()=>t],975558)},37013,e=>{"use strict";var t=e.i(271645),r=e.i(618566),n=e.i(207364),s=e.i(247167);let i="https://scripts.mediavine.com/tags/bird-fact.js",a=[{template:"home",pattern:/^\/$/},{template:"article",pattern:/^\/articles\/[^/]+$/},{template:"article-index",pattern:/^\/articles$/},{template:"species",pattern:/^\/birds\/[^/]+$/},{template:"species-topic",pattern:/^\/birds\/[^/]+\/[^/]+$/},{template:"species-index",pattern:/^\/birds$/},{template:"family",pattern:/^\/families\/[^/]+$/},{template:"family-index",pattern:/^\/families$/},{template:"record",pattern:/^\/records\/[^/]+$/},{template:"record-index",pattern:/^\/records$/},{template:"state-birds",pattern:/^\/state-birds$/},{template:"reference",pattern:/^\/(?:bird-behavior|anatomy-and-physiology|habitats-and-biodiversity|learn)(?:\/.*)?$/}],l=[/^\/(?:identify|birds-in|plus|app|checkout|admin|api)(?:\/|$)/,/^\/my-/,/^\/(?:login|register|forgot-password|reset-password|verify-email|welcome|auth)(?:\/|$)/,/^\/(?:account|dashboard|sightings|life-list|digest|ai-assistant|assistant|recordings)(?:\/|$)/,/^\/(?:newsletter|contact|support|about|privacy-policy|cookies-policy|terms|search|taxonomy|conservation-status|natural-habitats|guides|birdwatching-sites)(?:\/|$)/],o="1"===s.default.env.NEXT_PUBLIC_ADS_EXTENDED;function c(e){return null!==function(e){let t=function(e){let t=e.trim();if(/^[a-z][a-z\d+.-]*:\/\//i.test(t))try{t=new URL(t).pathname}catch{return""}let r=t.search(/[?#]/);return -1!==r&&(t=t.slice(0,r)),t.startsWith("/")||(t=`/${t}`),t.length>1&&(t=t.replace(/\/+$/,"")||"/"),t}(e);if(!t||l.some(e=>e.test(t)))return null;let r=a.find(e=>e.pattern.test(t))?.template??null;return o||"article"===r?r:null}(e)}let u=!1,d=!1;function f(){if(u||null!==document.querySelector(`script[src="${i}"]`)){u=!0;return}
1let e=document.createElement("script");e.src=i,e.async=!0,e.setAttribute("data-noptimize","1"),e.setAttribute("data-cfasync","false"),document.head.appendChild(e),u=!0,d||(d=!0,window.addEventListener("click",e=>{let t;if(e.defaultPrevented||0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let r=e.target;if(!(r instanceof Element))return;let n=r.closest("a[href]");if(!(!(n instanceof HTMLAnchorElement)||n.target&&"_self"!==n.target||n.hasAttribute("download"))){try{t=new URL(n.href,window.location.href)}catch{return}t.origin!==window.location.origin||c(t.pathname)||e.stopPropagation()}},{capture:!0}))}function h(){u&&!c(window.location.pathname)&&window.location.reload()}function m(){let e=(0,r.usePathname)(),{tier:s,loading:i}=(0,n.useSubscriptionTier)(),a=c(e),l=a&&!i&&"plus"!==s;return(0,t.useEffect)(()=>{if(l&&!u){let e,t,r,n,s,i;return e=!1,t=0,r=0,n=0,s=()=>{e||f()},i=()=>{t=window.requestAnimationFrame(()=>{r=window.setTimeout(()=>{"function"==typeof window.requestIdleCallback?n=window.requestIdleCallback(s,{timeout:2e3}):s()},0)})},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",i,{once:!0}):i(),()=>{e=!0,document.removeEventListener("DOMContentLoaded",i),window.cancelAnimationFrame(t),window.clearTimeout(r),n&&"function"==typeof window.cancelIdleCallback&&window.cancelIdleCallback(n)}}},[l,e]),(0,t.useEffect)(()=>{a||h()},[a,e]),(0,t.useEffect)(()=>{"plus"===s&&u&&window.location.reload()},[s]),(0,t.useEffect)(()=>()=>{window.setTimeout(h,0)},[]),null}e.s(["MediavineWrapper",()=>m],37013)},42480,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(522016),s=e.i(618566),i=e.i(968553),a=e.i(107233),l=e.i(207364),o=e.i(852917),c=e.i(23750),u=e.i(994179),d=e.i(167881),f=e.i(346897),h=e.i(555436),m=e.i(531278),p=e.i(139881),g=e.i(37727),x=e.i(664659),b=e.i(299023),y=e.i(647163);let v="bf-cached-location";function w({count:e,onIncrement:r,onDecrement:n,updating:s,removing:i}){return(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5 rounded-full border border-green-200 bg-green-50",children:[(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),n()},disabled:s||i,className:"flex h-7 w-7 items-center justify-center rounded-l-full text-green-700 transition-colors hover:bg-green-100 active:bg-green-200",children:i?(0,t.jsx)(m.Loader2,{className:"h-3.5 w-3.5 animate-spin"}):e<=1?(0,t.jsx)(g.X,{className:"h-3.5 w-3.5"}):(0,t.jsx)(b.Minus,{className:"h-3.5 w-3.5"})}),(0,t.jsx)("span",{className:"min-w-[1.5rem] text-center text-sm font-semibold tabular-nums text-green-700",children:s?(0,t.jsx)(m.Loader2,{className:"mx-auto h-3.5 w-3.5 animate-spin"}):e}),(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),r()},disabled:s,className:"flex h-7 w-7 items-center justify-center rounded-r-full text-green-700 transition-colors hover:bg-green-100 active:bg-green-200",children:(0,t.jsx)(a.Plus,{className:"h-3.5 w-3.5"})})]})}function j({open:e,onOpenChange:n,onSightingLogged:s}){let{lat:i,lng:l,regionCode:j,regionName:N,loading:k,error:S}=function(){let[e,t]=(0,r.useState)(null),[n,s]=(0,r.useState)(!0),[i,a]=(0,r.useState)(null),l=(0,r.useCallback)(async()=>{let e=function(){try{let e=sessionStorage.getItem(v);if(!e)return null;return JSON.parse(e)}catch{return null}}();if(e){t(e),s(!1);return}if(s(!0),a(null),!navigator.geolocation){a("Geolocation not supported"),s(!1);return}try{let{latitude:e,longitude:r}=(await new Promise((e,t)=>navigator.geolocation.getCurrentPosition(e,t,{enableHighAccuracy:!1,timeout:5e3,maximumAge:3e5}))).coords,n=await fetch(`/api/species/quick-suggest?lat=${e}&lng=${r}`);if(n.ok){let s=await n.json(),i={lat:e,lng:r,regionCode:s.regionCode??"",regionName:s.regionName??""};try{sessionStorage.setItem(v,JSON.stringify(i))}catch{}t(i)}else t({lat:e,lng:r,regionCode:"",regionName:""})}catch{a("Location access denied")}finally{s(!1)}},[]);return(0,r.useEffect)(()=>
1{l()},[l]),{lat:e?.lat??null,lng:e?.lng??null,regionCode:e?.regionCode||null,regionName:e?.regionName||null,loading:n,error:i,refresh:l}}(),[_,C]=(0,r.useState)(""),[P,E]=(0,r.useState)([]),[O,R]=(0,r.useState)([]),[A,L]=(0,r.useState)(!1),[I,T]=(0,r.useState)([]),[M,$]=(0,r.useState)(null),[B,z]=(0,r.useState)(!1),U=(0,r.useRef)(null),D=(0,r.useRef)(null),[F,W]=(0,r.useState)(0),q=I.length;(0,r.useEffect)(()=>{0!==F&&s(q)},[F,q,s]),(0,r.useEffect)(()=>{e&&!k&&(i||j)&&(async()=>{L(!0);let e=new URLSearchParams;j?e.set("region_code",j):i&&l&&(e.set("lat",String(i)),e.set("lng",String(l)));try{let t=await fetch(`/api/species/quick-suggest?${e}`);if(t.ok){let e=await t.json();E(e.species??[])}}catch{}finally{L(!1)}})()},[e,i,l,j,k]),(0,r.useEffect)(()=>{e?setTimeout(()=>U.current?.focus(),300):(C(""),R([]))},[e]),(0,r.useEffect)(()=>!_||_.length<2?void R([]):(D.current&&clearTimeout(D.current),D.current=setTimeout(async()=>{let e=new URLSearchParams({q:_});j?e.set("region_code",j):i&&l&&(e.set("lat",String(i)),e.set("lng",String(l)));try{let t=await fetch(`/api/species/quick-suggest?${e}`);if(t.ok){let e=await t.json();R(e.species??[])}}catch{}},200),()=>{D.current&&clearTimeout(D.current)}),[_,j,i,l]);let X=(0,r.useCallback)(async e=>{$(e.id);try{let t={species_id:e.id,species_name:e.title,scientific_name:e.scientific_name,observed_at:new Date().toISOString(),identification_method:"quick_log",count:1};N&&(t.location_name=N),i&&l&&(t.latitude=i,t.longitude=l,t.location_source="gps");let r=await fetch("/api/sightings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(r.ok){let t=await r.json();T(r=>[...r,{id:e.id,name:e.title,sightingId:t.id,count:1}]),W(e=>e+1)}}catch{}finally{$(null)}},[i,l,N,s]),[K,Y]=(0,r.useState)(null),H=(0,r.useCallback)(async e=>{let t=I.find(t=>t.id===e);if(t){Y(e);try{(await fetch(`/api/sightings/${t.sightingId}`,{method:"DELETE"})).ok&&(T(t=>t.filter(t=>t.id!==e)),W(e=>e+1))}catch{}finally{Y(null)}}},[I,s]),[G,J]=(0,r.useState)(null),V=(0,r.useCallback)(async(e,t)=>{let r=I.find(t=>t.id===e);if(!r)return;let n=r.count+t;if(n<1)return void H(e);J(e);try{(await fetch(`/api/sightings/${r.sightingId}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:n})})).ok&&(T(t=>t.map(t=>t.id===e?{...t,count:n}:t)),W(e=>e+1))}catch{}finally{J(null)}},[I,H]),Q=e=>I.some(t=>t.id===e),Z=e=>I.find(t=>t.id===e)?.count??0,ee=_.length>=2?O:P,et=_?null:(()=>{let e={};for(let t of P){let r=t.frequency??"other";e[r]||(e[r]=[]),e[r].push(t)}return e})(),er={resident:"Resident",common:"Common",uncommon:"Uncommon",rare:"Rare"};return(0,t.jsx)(o.Sheet,{open:e,onOpenChange:n,children:(0,t.jsxs)(o.SheetContent,{side:"bottom",className:"max-h-[70vh] rounded-t-2xl px-4 pb-[env(safe-area-inset-bottom)] pt-2 pb-2",showCloseButton:!1,children:[(0,t.jsx)("div",{className:"mx-auto mb-3 h-1 w-10 rounded-full bg-border"}),(0,t.jsxs)(o.SheetHeader,{className:"mb-3 px-0",children:[(0,t.jsx)(o.SheetTitle,{className:"text-left font-serif text-lg font-medium",children:"Log a sighting"}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-text-secondary",children:[(0,t.jsx)(f.MapPin,{className:"h-3.5 w-3.5 shrink-0"}),k?(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(m.Loader2,{className:"h-3 w-3 animate-spin"}),"Getting location..."]}):S?(0,t.jsx)("span",{className:"text-text-tertiary",children:"Location unavailable"}):N?(0,t.jsxs)("span",{children:["Near ",N]}):(0,t.jsx)("span",{className:"text-text-tertiary",children:"Search for any species below"})]})]}),(0,t.jsxs)("div",{className:"relative mb-3",children:[(0,t.jsx)(h.Search,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-tertiary"}),(0,t.jsx)(c.Input,{ref:U,placeholder:"What did you see?",value:_,onChange:e=>C(e.target.value),className:"bg-white pl-9"})]}),(0,t.jsx)("div",{className:"max-h-[calc(70vh-140px)] overflow-y-auto scrollbar-none",children:A&&!_?(0,t.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,t.jsx)(m.Loader2,{className:"h-5 w-5 animate-spin text-text-tertiary"})}):0===ee.length?(0,t.jsxs)("div",{className:"flex flex-col items-center py-8 text-center",children:[(0,t.jsx)(p.Bird,{className:"mb-2 h-6 w-6 text-text-tertiary"}),(0,t.jsx)("p",{className:"text-sm text-text-secondary",children:_?"No species found":S?"Enable location for suggestions, or search above":"Search for a species to log"})]}):_?(0,t.jsx)("div",{className:"space-y-0.5",children:O.map(e=>(0,t.jsxs)("div",{className:"flex w-full items-center gap-3 rounded-lg px-0 py-3 text-left transition-colors hover:bg-surface-cream/60",style:{minHeight:52},children:[(0,t.jsxs)("button",{onClick:()=>!Q(e.id)&&X(e),disabled:Q(e.id)||M===e.id,className:"min-w-0 flex-1 text-left disabled:opacity-100",children:[(0,t.jsx)("p",{className:"font-medium leading-tight",children:e.title}),e.scientific_name&&(0,t.jsx)("p",{className:"text-xs italic text-text-secondary",children:e.scientific_name})]}),M===e.id?(0,t.jsx)(m.Loader2,{className:"h-4 w-4 shrink-0 animate-spin text-text-tertiary"}):Q(e.id)?(0,t.jsx)(w,{count:Z(e.id),onIncrement:()=>V(e.id,1),onDecrement:()=>V(e.id,-1),updating:G===e.id,removing:K===e.id}):e.inRegion&&(0,t.jsx)(u.Badge,{variant:"outline",className:"shrink-0 text-[10px]",children:"In area"})]},e.id))}):(0,t.jsx)("div",{className:"space-y-4",children:et&&Object.entries(et).map(([e,r])=>(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-2 text-xs font-semibold uppercase tracking-wider text-text-secondary",children:er[e]??e}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:r.map(e=>Q(e.id)?(0,t.jsxs)("div",{className:"inline-flex items-center rounded-full border border-green-200 bg-green-50 text-green-700",style:{minHeight:36},children:[(0,t.jsx)("button",{onClick:()=>V(e.id,-1),disabled:G===e.id||K===e.id,className:"flex items-center pl-2 pr-1 py-1.5 rounded-l-full transition-colors hover:bg-green-100 active:bg-green-200",children:K===e.id?(0,t.jsx)(m.Loader2,{className:"h-3 w-3 animate-spin"}):1>=Z(e.id)?(0,t.jsx)(g.X,{className:"h-3 w-3"}):(0,t.jsx)(b.Minus,{className:"h-3 w-3"})}),(0,t.jsxs)("span",{className:"text-sm px-1",children:[e.title,(0,t.jsx)("span",{className:"ml-1 font-semibold tabular-nums",children:G===e.id?"...":`\u00D7${Z(e.id)}`})]}),(0,t.jsx)("button",{onClick:()=>V(e.id,1),disabled:G===e.id,className:"flex items-center pl-1 pr-2 py-1.5 rounded-r-full transition-colors hover:bg-green-100 active:bg-green-200",children:(0,t.jsx)(a.Plus,{className:"h-3 w-3"})})]},e.id):(0,t.jsxs)("button",{onClick:()=>X(e),disabled:M===e.id,className:"inline-flex items-center gap-1 rounded-full border border-border bg-white px-3 py-1.5 text-sm shadow-sm transition-colors hover:bg-surface-cream active:bg-surface-warm",style:{minHeight:36},children:[M===e.id&&(0,t.jsx)(m.Loader2,{className:"h-3 w-3 animate-spin"}),e.title]},e.id))})]},e))})}),I.length>0&&(0,t.jsxs)("div",{className:"mt-3 border-t pt-3",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>z(e=>!e),className:"mb-2 flex w-full items-center justify-between rounded-lg px-3 py-2 text-left transition-colors hover:bg-surface-cream/60",children:[(0,t.jsxs)("span",{className:"text-sm font-medium text-text-primary",children:[I.length," species, ",I.reduce((e,t)=>
1e+t.count,0)," birds"]}),(0,t.jsx)(x.ChevronDown,{className:(0,y.cn)("h-4 w-4 text-text-tertiary transition-transform",B&&"rotate-180")})]}),B&&(0,t.jsx)("div",{className:"mb-3 max-h-40 overflow-y-auto rounded-lg border border-border/60 bg-surface-cream/30",children:I.map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-2 border-b border-border/30 px-3 py-2 last:border-0",children:[(0,t.jsx)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)("p",{className:"truncate text-sm font-medium text-text-primary",children:e.name})}),(0,t.jsx)(w,{count:e.count,onIncrement:()=>V(e.id,1),onDecrement:()=>V(e.id,-1),updating:G===e.id,removing:K===e.id})]},e.sightingId))}),(0,t.jsxs)(d.Button,{onClick:()=>n(!1),className:"w-full rounded-full",variant:"default",children:["Done (",I.length," logged)"]})]})]})})}function N(){let e=(0,s.usePathname)(),o=(0,s.useRouter)(),{user:c,tier:u,loading:d}=(0,l.useSubscriptionTier)(),[f,h]=(0,r.useState)(!1),[m,p]=(0,r.useState)(0),[g,x]=(0,r.useState)(!1),b=(0,r.useCallback)(e=>{p(e),x(!0)},[]),y=(0,r.useCallback)(e=>{h(e),!e&&g&&(o.refresh(),window.dispatchEvent(new CustomEvent("sightings-changed")),x(!1))},[o,g]);return e.startsWith("/identify")||e.startsWith("/my-identify")||d?null:c?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{onClick:()=>h(!0),className:"fixed bottom-20 right-4 z-40 flex h-14 w-14 items-center justify-center rounded-full bg-brand-forest text-white shadow-lg transition-transform hover:scale-105 active:scale-95 md:hidden","aria-label":"Quick log a bird sighting",children:[(0,t.jsx)(a.Plus,{className:"h-6 w-6"}),m>0&&(0,t.jsx)("span",{className:"absolute -right-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full bg-brand-amber text-[10px] font-bold text-white",children:m})]}),(0,t.jsx)(j,{open:f,onOpenChange:y,onSightingLogged:b})]}):(0,t.jsx)(n.default,{href:"/identify",className:"fixed bottom-20 right-4 z-40 flex h-12 w-12 items-center justify-center rounded-full bg-brand-amber text-white shadow-lg transition-transform hover:scale-105 active:scale-95 md:hidden animate-once-pulse","aria-label":"Identify a bird",children:(0,t.jsx)(i.Camera,{className:"h-5 w-5"})})}e.s(["QuickLogFAB",()=>N],42480)},18191,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(975558),s=e.i(647163);let i=2*Math.PI*20.75;function a(){let[e,a]=(0,r.useState)(!1),[l,o]=(0,r.useState)(0),c=(0,r.useCallback)(()=>{let e=window.scrollY;a(e>500);let t=document.documentElement.scrollHeight-window.innerHeight;o(t>0?Math.min(e/t,1):0)},[]);return(0,r.useEffect)(()=>(window.addEventListener("scroll",c,{passive:!0}),()=>window.removeEventListener("scroll",c)),[c]),(0,t.jsxs)("button",{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},"aria-label":"Back to top",className:(0,s.cn)("fixed bottom-6 right-6 z-50 group","transition-all duration-300 ease-out","hover:-translate-y-0.5 active:scale-95",e?"translate-y-0 opacity-100":"translate-y-4 opacity-0 pointer-events-none"),children:[(0,t.jsxs)("svg",{width:44,height:44,className:"drop-shadow-lg",children:[(0,t.jsx)("circle",{cx:22,cy:22,r:20.75,fill:"rgba(27, 58, 45, 0.9)",stroke:"rgba(255,255,255,0.1)",strokeWidth:2.5,className:"transition-[fill] duration-200 group-hover:fill-brand-forest"}),(0,t.jsx)("circle",{cx:22,cy:22,r:20.75,fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeDasharray:i,strokeDashoffset:i*(1-l),className:"text-brand-amber -rotate-90 origin-center transition-[stroke-dashoffset] duration-100 ease-out"})]}),(0,t.jsx)(n.ArrowUp,{className:"absolute inset-0 m-auto h-4 w-4 text-brand-cream",strokeWidth:2.5})]})}e.s(["BackToTop",()=>a])},819438,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(618566),s=e.i(37727),i=e.i(972520),a=e.i(920755),l=e.i(852917),o=e.i(599471);let c="bf_digest_bar_dismissed",u=["/dashboard","/my-identify","/my-digests","/my-birds","/sightings","/recordings","/assistant","/account","/welcome","/login","/register","/plus","/admin","/identify"];function d(){let e=(0,n.usePathname)(),[d,f]=(0,r.useState)(!1),[h,m]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{u.some(t=>e.startsWith(t))||sessionStorage.getItem(c)||sessionStorage.getItem("bf_digest_preview_submitted")||(0,a.createClient)().auth.getUser().then(({data:{user:e}})=>{e||f(!0)})},[e]),d)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"bg-brand-dark text-white",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-7xl items-center justify-between px-4 py-2",children:[(0,t.jsxs)("button",{onClick:function(){let e=document.getElementById("digest-preview-capture");e?e.scrollIntoView({behavior:"smooth",block:"center"}):m(!0)},className:"flex flex-1 items-center gap-2 text-sm font-medium hover:text-brand-amber transition-colors min-h-[36px]",children:[(0,t.jsx)("span",{className:"truncate",children:"What birds are near you? Get a free personalised guide"}),(0,t.jsx)(i.ArrowRight,{className:"h-3.5 w-3.5 shrink-0"})]}),(0,t.jsx)("button",{onClick:function(){f(!1),sessionStorage.setItem(c,"1")},className:"ml-3 shrink-0 rounded-full p-1.5 text-white/60 hover:text-white hover:bg-white/10 transition-colors min-h-[36px] min-w-[36px] flex items-center justify-center","aria-label":"Dismiss",children:(0,t.jsx)(s.X,{className:"h-3.5 w-3.5"})})]})}),(0,t.jsx)(l.Sheet,{open:h,onOpenChange:m,children:(0,t.jsxs)(l.SheetContent,{side:"bottom",className:"rounded-t-2xl",children:[(0,t.jsx)(l.SheetHeader,{children:(0,t.jsx)(l.SheetTitle,{className:"sr-only",children:"Get your bird guide"})}),(0,t.jsx)("div",{className:"pb-6",children:(0,t.jsx)(o.DigestPreviewCapture,{variant:"modal"})})]})})]}):null}e.s(["DigestPromoBar",()=>d])},109876,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(522016),s=e.i(37727),i=e.i(207364);let a="bf_mobile_plus_dismissed";function l(){let{user:e,tier:l}=(0,i.useSubscriptionTier)(),[o,c]=(0,r.useState)(!0);return((0,r.useEffect)(()=>{sessionStorage.getItem(a)||c(!1)},[]),!e||"plus"===l||null===l||o)?null:(0,t.jsx)("div",{className:"fixed bottom-0 left-0 right-0 z-30 md:hidden",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 bg-brand-dark/95 px-4 py-2.5 backdrop-blur-sm",children:[(0,t.jsxs)(n.default,{href:"/plus",className:"flex-1 text-xs font-medium text-white hover:text-brand-amber transition-colors",children:["Unlimited IDs + birding assistant â ",(0,t.jsx)("span",{className:"text-brand-amber",children:"Plus from £1.99/mo"})]}),(0,t.jsx)("button",{onClick:()=>{c(!0),sessionStorage.setItem(a,"1")},className:"shrink-0 rounded-full p-1.5 text-white/50 hover:text-white min-h-[36px] min-w-[36px] flex items-center justify-center","aria-label":"Dismiss",children:(0,t.jsx)(s.X,{className:"h-3.5 w-3.5"})})]})})}e.s(["MobilePlusPrompt",()=>l])},748829,e=>{"use strict";var t=e.i(247167),r=e.i(843476),n=e.i(271645),s=e.i(618566),i=e.i(522016),a=e.i(37727),l=e.i(950380);let o="bf_app_banner_dismissed";function c(e,t){try{let r=document.cookie.split("; ").find(e=>e.startsWith("bf_sid="))?.split("=")[1],n=new Blob([JSON.stringify({event_type:e,url:window.location.pathname,session_id:r,properties:t})],{type:"application/json"});navigator.sendBeacon("/api/analytics/event",n)}catch{}}
1function u(){let e=(0,s.usePathname)(),[u,d]=(0,n.useState)(null),[f,h]=(0,n.useState)(!1);if((0,n.useEffect)(()=>{let e;if(!l.APP_IS_LIVE)return;let r=(e=navigator.userAgent,/iPhone|iPad|iPod/i.test(e)?"ios":/Android/i.test(e)?"android":null);if(!r)return;let n=/Safari/i.test(navigator.userAgent)&&!/CriOS|FxiOS|EdgiOS|Chrome/i.test(navigator.userAgent);if(("ios"!==r||!n||!t.default.env.NEXT_PUBLIC_IOS_APP_ID)&&("ios"===r?l.APP_STORE_URL:l.PLAY_STORE_URL)){try{let e=localStorage.getItem(o);if(e&&Date.now()-parseInt(e,10)<6048e5)return}catch{}d(r),h(!0),c("app_banner_view",{placement:"site_banner"})}},[]),!f||e.startsWith("/admin"))return null;let m="ios"===u?l.APP_STORE_URL:l.PLAY_STORE_URL;return(0,r.jsx)("div",{className:"sticky top-0 z-50 border-b border-black/5 bg-[#142A21] px-4 py-2.5 lg:hidden",children:(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("button",{onClick:function(){h(!1);try{localStorage.setItem(o,String(Date.now()))}catch{}},"aria-label":"Dismiss",className:"shrink-0 rounded-full p-1 text-[#F5F1EB]/60 hover:text-[#F5F1EB]",children:(0,r.jsx)(a.X,{className:"h-4 w-4"})}),(0,r.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-[#C4713B]",children:(0,r.jsx)("span",{className:"font-serif text-lg text-[#F5F1EB]",children:"B"})}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("p",{className:"truncate text-sm font-medium text-[#F5F1EB]",children:["Birdfact for ","ios"===u?"iPhone":"Android"]}),(0,r.jsx)("p",{className:"truncate text-xs text-[#F5F1EB]/70",children:"Identify birds by photo or sound"})]}),(0,r.jsx)(i.default,{href:m,onClick:function(){c("app_banner_click",{placement:"site_banner",platform:u}),c("store_redirect",{placement:"site_banner",platform:u})},target:"_blank",rel:"noopener",className:"shrink-0 rounded-full bg-[#C4713B] px-4 py-1.5 text-sm font-medium text-[#F5F1EB]",children:"Get"})]})})}e.s(["SmartAppBanner",()=>u])},498724,e=>{e.v(t=>Promise.all(["static/chunks/f3ace3d6d9659c50.js"].map(t=>e.l(t))).then(()=>t(726424)))}]);
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.