1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12],{87138:function(e,t,n){"use strict";n.d(t,{default:function(){return o.a}});var r=n(231),o=n.n(r)},16463:function(e,t,n){"use strict";var r=n(71169);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}})},844:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(18157);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25944:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(18157),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},231:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return _}});let r=n(99920),o=n(57437),l=r._(n(2265)),a=n(98016),i=n(18029),u=n(41142),s=n(43461),c=n(844),d=n(60291),f=n(44467),p=n(53106),h=n(25944),m=n(4897),g=n(51507),y=new Set;function v(e,t,n,r,o,l){if("undefined"!=typeof window&&(l||(0,i.isLocalURL)(t))){if(!r.bypassPrefetchedCheck){let o=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(y.has(o))return;y.add(o)}Promise.resolve(l?e.prefetch(t,o):e.prefetch(t,n,r)).catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}let _=l.default.forwardRef(function(e,t){let n,r;let{href:u,as:y,children:_,prefetch:k=null,passHref:S,replace:O,shallow:w,scroll:E,locale:x,onClick:R,onMouseEnter:P,onTouchStart:C,legacyBehavior:T=!1,...j}=e;n=_,T&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let L=l.default.useContext(d.RouterContext),M=l.default.useContext(f.AppRouterContext),N=null!=L?L:M,I=!L,B=!1!==k,F=null===k?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:D,as:K}=l.default.useMemo(()=>{if(!L){let e=b(u);return{href:e,as:y?b(y):e}}let[e,t]=(0,a.resolveHref)(L,u,!0);return{href:e,as:y?(0,a.resolveHref)(L,y):t||e}},[L,u,y]),H=l.default.useRef(D),A=l.default.useRef(K);T&&(r=l.default.Children.only(n));let z=T?r&&"object"==typeof r&&r.ref:t,[U,Q,Y]=(0,p.useIntersection)({rootMargin:"200px"}),q=l.default.useCallback(e=>{(A.current!==K||H.current!==D)&&(Y(),A.current=K,H.current=D),U(e),z&&("function"==typeof z?z(e):"object"==typeof z&&(z.current=e))},[K,z,D,Y,U]);l.default.useEffect(()=>{N&&Q&&B&&v(N,D,K,{locale:x},{kind:F},I)},[K,D,Q,x,B,null==L?void 0:L.locale,N,I,F]);let W={ref:q,onClick(e){T||"function"!=typeof R||R(e),T&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,r,o,a,u,s,c){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,i.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==u||u;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:a,locale:s,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};c?l.default.startTransition(f):f()}(e,N,D,K,O,w,E,x,I)},onMouseEnter(e){T||"function"!=typeof P||P(e),T&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),N&&(B||!I)&&v(N,D,K,{locale:x,priority:!0,bypassPrefetchedCheck:!0},{kind:F},I)},onTouchStart:function(e){T||"function"!=typeof C||C(e),T&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),N&&(B||!I)&&v(N,D,K,{locale:x,priority:!0,bypassPrefetchedCheck:!0},{kind:F},I)}};if((0,s.isAbsoluteUrl)(K))W.href=K;else if(!T||S||"a"===r.type&&!("href"in r.props)){let e=void 0!==x?x:null==L?void 0:L.locale,t=(null==L?void 0:L.isLocaleDomain)&&(0,h.getDomainLocale)(K,e,null==L?void 0:L.locales,null==L?void 0:L.domainLocales);W.href=t||(0,m.addBasePath)((0,c.addLocale)(K,e,null==L?void 0:L.defaultLocale))}return T?l.default.cloneElement(r,W):(0,o.jsx)("a",{...j,...W,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49189:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98016:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let r=n(18323),o=n(41142),l=n(45519),a=n(43461),i=n(18157),u=n(18029),s=n(59195),c=n(80020);function d(e,t,n){let d;let f="string"==typeof t?t:(0,o.formatWithValidation)(t),p=f.match(/^[a-zA-Z]{1,}:\/\//),h=p?f.slice(p[0].length):f;if((h.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+f+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,a.normalizeRepeatedSlashes)(h);f=(p?p[0]:"")+t}if(!(0,u.isLocalURL)(f))return n?[f]:f;try{d=new URL(f.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(f,d);e.pathname=(0,i.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:a,params:i}=(0,c.interpolateAs)(e.pathname,e.pathname,n);a&&(t=(0,o.formatWithValidation)({pathname:a,hash:e.hash,query:(0,l.omit)(n,i)}))}let a=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return n?[a,t||a]:a}catch(e){return n?[f]:f}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53106:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});let r=n(2265),o=n(49189),l="function"==typeof IntersectionObserver,a=new Map,i=[];function u(e){let{rootRef:t,rootMargin:n,disabled:u}=e,s=u||!l,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(l){if(s||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:l}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=i.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},i.push(n),a.set(n,t),t}(n);return l.set(e,t),o.observe(e),function(){if(l.delete(e),o.unobserve(e),0===l.size){o.disconnect(),a.delete(r);let e=i.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&i.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[s,n,t,c,f.current]),[p,c,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81943:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function o(e){return n.test(e)?e.replace(r,"\\$&"):e}},60291:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(99920)._(n(2265)).default.createContext(null)},41142:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return l},formatWithValidation:function(){return i},urlObjectKeys:function(){return a}});let r=n(41452)._(n(18323)),o=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:n}=e,l=e.protocol||"",a=e.pathname||"",i=e.hash||"",u=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:n&&(s=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(s+=":"+e.port)),u&&"object"==typeof u&&(u=String(r.urlQueryToSearchParams(u)));let c=e.search||u&&"?"+u||"";return l&&!l.endsWith(":")&&(l+=":"),e.slashes||(!l||o.test(l))&&!1!==s?(s="//"+(s||""),a&&"/"!==a[0]&&(a="/"+a)):s||(s=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),""+l+s+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+i}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function i(e){return l(e)}},59195:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let r=n(49089),o=n(28083)},80020:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return l}});let r=n(41533),o=n(63169);function l(e,t,n){let l="",a=(0,o.getRouteRegex)(e),i=a.groups,u=(t!==e?(0,r.getRouteMatcher)(a)(t):"")||n;l=e;let s=Object.keys(i);return s.every(e=>{let t=u[e]||"",{repeat:n,optional:r}=i[e],o="["+(n?"...":"")+e+"]";return r&&(o=(t?"":"/")+"["+o+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in u)&&(l=l.replace(o,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(l=""),{params:s,result:l}}},28083:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return l}});let r=n(82269),o=/\/\[[^/]+?\](?=\/|$)/;function l(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},18029:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return l}});let r=n(43461),o=n(49404);function l(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,o.hasBasePath)(n.pathname)}catch(e){return!1}}},45519:function(e,t){"use strict";function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},18323:function(e,t){"use strict";function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,o]=e;Array.isArray(o)?o.forEach(e=>t.append(n,r(e))):t.set(n,r(o))}),t}function l(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach(t=>{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return l},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return o}})},41533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let r=n(43461);function o(e){let{re:t,groups:n}=e;return e=>{let o=t.exec(e);if(!o)return!1;let l=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},a={};
1return Object.keys(n).forEach(e=>{let t=n[e],r=o[t.pos];void 0!==r&&(a[e]=~r.indexOf("/")?r.split("/").map(e=>l(e)):t.repeat?[l(r)]:l(r))}),a}}},63169:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getNamedMiddlewareRegex:function(){return f},getNamedRouteRegex:function(){return d},getRouteRegex:function(){return u}});let r=n(82269),o=n(81943),l=n(67741);function a(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function i(e){let t=(0,l.removeTrailingSlash)(e).slice(1).split("/"),n={},i=1;return{parameterizedRoute:t.map(e=>{let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),l=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&l){let{key:e,optional:r,repeat:u}=a(l[1]);return n[e]={pos:i++,repeat:u,optional:r},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!l)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:r}=a(l[1]);return n[e]={pos:i++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function u(e){let{parameterizedRoute:t,groups:n}=i(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function s(e){let{interceptionMarker:t,getSafeRouteKey:n,segment:r,routeKeys:l,keyPrefix:i}=e,{key:u,optional:s,repeat:c}=a(r),d=u.replace(/\W/g,"");i&&(d=""+i+d);let f=!1;(0===d.length||d.length>30)&&(f=!0),isNaN(parseInt(d.slice(0,1)))||(f=!0),f&&(d=n()),i?l[d]=""+i+u:l[d]=u;let p=t?(0,o.escapeStringRegexp)(t):"";return c?s?"(?:/"+p+"(?<"+d+">.+?))?":"/"+p+"(?<"+d+">.+?)":"/"+p+"(?<"+d+">[^/]+?)"}function c(e,t){let n;let a=(0,l.removeTrailingSlash)(e).slice(1).split("/"),i=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),u={};return{namedParameterizedRoute:a.map(e=>{let n=r.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),l=e.match(/\[((?:\[.*\])|.+)\]/);if(n&&l){let[n]=e.split(l[0]);return s({getSafeRouteKey:i,interceptionMarker:n,segment:l[1],routeKeys:u,keyPrefix:t?"nxtI":void 0})}return l?s({getSafeRouteKey:i,segment:l[1],routeKeys:u,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:u}}function d(e,t){let n=c(e,t);return{...u(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function f(e,t){let{parameterizedRoute:n}=i(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:"^"+o+(r?"(?:(/.*)?)":"")+"$"}}},49089:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let n=o.slice(1,-1),a=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),a=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function l(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");
1t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(a){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');l(this.optionalRestSlugName,n),this.optionalRestSlugName=n,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');l(this.restSlugName,n),this.restSlugName=n,o="[...]"}}else{if(a)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');l(this.slugName,n),this.slugName=n,o="[]"}}this.children.has(o)||this.children.set(o,new n),this.children.get(o)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},43461:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return y},NormalizeError:function(){return m},PageNotFoundError:function(){return g},SP:function(){return f},ST:function(){return p},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return u},getLocationOrigin:function(){return a},getURL:function(){return i},isAbsoluteUrl:function(){return l},isResSent:function(){return s},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return b}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];return n||(n=!0,t=e(...o)),t}}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>o.test(e);function a(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function i(){let{href:e}=window.location,t=a();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&s(n))return r;if(!r)throw Error('"'+u(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let f="undefined"!=typeof performance,p=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);
1class h extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},7144:function(e,t,n){var r=n(20357);(function(){var t,n,o,l;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=r&&r.hrtime?(e.exports=function(){return(t()-l)/1e6},n=r.hrtime,l=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})()-1e9*r.uptime()):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return new Date().getTime()-o},o=new Date().getTime())}).call(this)},8829:function(e,t,n){for(var r=n(7144),o="undefined"==typeof window?n.g:window,l=["moz","webkit"],a="AnimationFrame",i=o["request"+a],u=o["cancel"+a]||o["cancelRequest"+a],s=0;!i&&s<l.length;s++)i=o[l[s]+"Request"+a],u=o[l[s]+"Cancel"+a]||o[l[s]+"CancelRequest"+a];if(!i||!u){var c=0,d=0,f=[],p=1e3/60;i=function(e){if(0===f.length){var t=r(),n=Math.max(0,p-(t-c));c=n+t,setTimeout(function(){var e=f.slice(0);f.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return f.push({handle:++d,callback:e,cancelled:!1}),d},u=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}e.exports=function(e){return i.call(o,e)},e.exports.cancel=function(){u.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=i,e.cancelAnimationFrame=u}},71217:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(2265),a=f(l),i=f(n(41448)),u=f(n(6889)),s=f(n(8829)),c=f(n(17158)),d=f(n(12066));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n={};for(var r in e)!(t.indexOf(r)>=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var h=function(){},m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setRef=function(e){return n.inner=e},n.setHeightOffset=function(){n.setState({height:n.inner?n.inner.offsetHeight:""}),n.resizeTicking=!1},n.getScrollY=function(){return void 0!==n.props.parent().pageYOffset?n.props.parent().pageYOffset:void 0!==n.props.parent().scrollTop?n.props.parent().scrollTop:(document.documentElement||document.body.parentNode||document.body).scrollTop},n.getViewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},n.getDocumentHeight=function(){var e=document.body,t=document.documentElement;return Math.max(e.scrollHeight,t.scrollHeight,e.offsetHeight,t.offsetHeight,e.clientHeight,t.clientHeight)},n.getElementPhysicalHeight=function(e){return Math.max(e.offsetHeight,e.clientHeight)},n.getElementHeight=function(e){return Math.max(e.scrollHeight,e.offsetHeight,e.clientHeight)},n.getScrollerPhysicalHeight=function(){var e=n.props.parent();return e===window||e===document.body?n.getViewportHeight():n.getElementPhysicalHeight(e)},n.getScrollerHeight=function(){var e=n.props.parent();return e===window||e===document.body?n.getDocumentHeight():n.getElementHeight(e)},n.isOutOfBound=function(e){var t=n.getScrollerPhysicalHeight(),r=n.getScrollerHeight();return e<0||e+t>r},n.handleScroll=function(){n.scrollTicking||(n.scrollTicking=!0,(0,s.default)(n.update))},n.handleResize=function(){n.resizeTicking||(n.resizeTicking=!0,(0,s.default)(n.setHeightOffset))},n.unpin=function(){n.props.onUnpin(),n.setState({translateY:"-100%",className:"headroom headroom--unpinned",animation:!0,state:"unpinned"})},n.unpinSnap=function(){n.props.onUnpin(),n.setState({translateY:"-100%",className:"headroom headroom--unpinned headroom-disable-animation",animation:!1,state:"unpinned"})},n.pin=function(){n.props.onPin(),n.setState({translateY:0,className:"headroom headroom--pinned",animation:!0,state:"pinned"})},n.unfix=function(){n.props.onUnfix(),n.setState({translateY:0,className:"headroom headroom--unfixed headroom-disable-animation",animation:!1},function(){setTimeout(function(){n.setState({state:"unfixed"})},0)})},n.update=function(){if(n.currentScrollY=n.getScrollY(),!n.isOutOfBound(n.currentScrollY)){var e=(0,c.default)(n.lastKnownScrollY,n.currentScrollY,n.props,n.state).action;"pin"===e?n.pin():"unpin"===e?n.unpin():"unpin-snap"===e?n.unpinSnap():"unfix"===e&&n.unfix()}n.lastKnownScrollY=n.currentScrollY,n.scrollTicking=!1},n.currentScrollY=0,n.lastKnownScrollY=0,n.scrollTicking=!1,n.resizeTicking=!1,n.eventListenerOptions=!1,n.state={state:"unfixed",translateY:0,className:"headroom headroom--unfixed"},n}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){return e.disable&&"unfixed"!==t.state?{translateY:0,className:"headroom headroom--unfixed headroom-disable-animation",animation:!1,state:"unfixed"}:null}}
1]),o(t,[{key:"componentDidMount",value:function(){this.setHeightOffset(),this.eventListenerOptions=!!(0,d.default)()&&{passive:!0,capture:!1},!this.props.disable&&(this.props.parent().addEventListener("scroll",this.handleScroll,this.eventListenerOptions),this.props.calcHeightOnResize&&this.props.parent().addEventListener("resize",this.handleResize,this.eventListenerOptions))}},{key:"shouldComponentUpdate",value:function(e,t){return!(0,u.default)(this.props,e)||!(0,u.default)(this.state,t)}},{key:"componentDidUpdate",value:function(e,t){e.children!==this.props.children&&this.setHeightOffset(),!e.disable&&this.props.disable?(this.props.parent().removeEventListener("scroll",this.handleScroll,this.eventListenerOptions),this.props.parent().removeEventListener("resize",this.handleResize,this.eventListenerOptions),"unfixed"!==t.state&&"unfixed"===this.state.state&&this.props.onUnfix()):e.disable&&!this.props.disable&&(this.props.parent().addEventListener("scroll",this.handleScroll,this.eventListenerOptions),this.props.calcHeightOnResize&&this.props.parent().addEventListener("resize",this.handleResize,this.eventListenerOptions)),e.pin!==this.props.pin&&this.handleScroll()}},{key:"componentWillUnmount",value:function(){this.props.parent()&&(this.props.parent().removeEventListener("scroll",this.handleScroll,this.eventListenerOptions),this.props.parent().removeEventListener("resize",this.handleResize,this.eventListenerOptions)),window.removeEventListener("scroll",this.handleScroll,this.eventListenerOptions)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.tag,o=p(e,["className","tag"]);delete o.onUnpin,delete o.onPin,delete o.onUnfix,delete o.disableInlineStyles,delete o.disable,delete o.pin,delete o.parent,delete o.children,delete o.upTolerance,delete o.downTolerance,delete o.pinStart,delete o.calcHeightOnResize;var l=o.style,i=o.wrapperStyle,u=p(o,["style","wrapperStyle"]),s={position:this.props.disable||"unfixed"===this.state.state?"relative":"fixed",top:0,left:0,right:0,zIndex:1,WebkitTransform:"translate3D(0, "+this.state.translateY+", 0)",MsTransform:"translate3D(0, "+this.state.translateY+", 0)",transform:"translate3D(0, "+this.state.translateY+", 0)"},c=this.state.className;this.state.animation&&(s=r({},s,{WebkitTransition:"all .2s ease-in-out",MozTransition:"all .2s ease-in-out",OTransition:"all .2s ease-in-out",transition:"all .2s ease-in-out"}),c+=" headroom--scrolled"),s=this.props.disableInlineStyles?l:r({},s,l);var d=r({},i,{height:this.state.height?this.state.height:null});return a.default.createElement(n,{style:d,className:t?t+" headroom-wrapper":"headroom-wrapper"},a.default.createElement("div",r({ref:this.setRef},u,{style:s,className:c}),this.props.children))}}]),t}(l.Component);m.propTypes={className:i.default.string,parent:i.default.func,children:i.default.any.isRequired,disableInlineStyles:i.default.bool,disable:i.default.bool,pin:i.default.bool,upTolerance:i.default.number,downTolerance:i.default.number,onPin:i.default.func,onUnpin:i.default.func,onUnfix:i.default.func,wrapperStyle:i.default.object,pinStart:i.default.number,style:i.default.object,calcHeightOnResize:i.default.bool,tag:i.default.string},m.defaultProps={parent:function(){return window},disableInlineStyles:!1,disable:!1,pin:!1,upTolerance:5,downTolerance:0,onPin:h,onUnpin:h,onUnfix:h,wrapperStyle:{},pinStart:0,calcHeightOnResize:!0,tag:"div"},t.Z=m},17158:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t>=e?"down":"up",l=Math.abs(t-e);if(n.disable)return{action:"none",scrollDirection:o,distanceScrolled:l};if(n.pin)return{action:"pinned"!==r.state?"pin":"none",scrollDirection:o,distanceScrolled:l};if(t<=n.pinStart&&"unfixed"!==r.state)return{action:"unfix",scrollDirection:o,distanceScrolled:l};if(t<=r.height&&"down"===o&&"unfixed"===r.state)return{action:"none",scrollDirection:o,distanceScrolled:l};if(t>r.height+n.pinStart&&"down"===o&&"unfixed"===r.state)return{action:"unpin-snap",scrollDirection:o,distanceScrolled:l};if("down"===o&&["pinned","unfixed"].indexOf(r.state)>=0&&t>r.height+n.pinStart&&l>n.downTolerance)return{action:"unpin",scrollDirection:o,distanceScrolled:l};if("up"===o&&l>n.upTolerance&&0>["pinned","unfixed"].indexOf(r.state))return{action:"pin",scrollDirection:o,distanceScrolled:l};else if("up"===o&&t<=r.height&&0>["pinned","unfixed"].indexOf(r.state))return{action:"pin",scrollDirection:o,distanceScrolled:l};else return{action:"none",scrollDirection:o,distanceScrolled:l}}},12066:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=!1;try{var t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){e=!1}return e}},6889:function(e){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),u=0;u<l.length;u++){var s=l[u];if(!i(s))return!1;var c=e[s],d=t[s];if(!1===(o=n?n.call(r,c,d,s):void 0)||void 0===o&&c!==d)return!1}return!0}},56800:function(e,t){var n;/*! 2 Copyright (c) 2018 Jed Watson. 3 Licensed under the MIT License (MIT), see 4 http://jedwatson.github.io/classnames 5*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=l(t,n));return t}(n)))}return e}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0!==(n=(function(){return o}).apply(t,[]))&&(e.exports=n)}()},54981:function(e,t,n){"use strict";n.d(t,{BuyButtonPreloadedIDQueryRenderer:function(){return P},BuyButtonPreloadedSlugQueryRenderer:function(){return T},Z:function(){return L}});let r=(a=[{defaultValue:null,kind:"LocalArgument",name:"collectionSlug"}
5],i=[{kind:"Variable",name:"name",variableName:"collectionSlug"}],s={alias:null,args:null,concreteType:"Sku",kind:"LinkedField",name:"sku",plural:!1,selections:[u={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BuyButtonSlugQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:i,concreteType:"Slug",kind:"LinkedField",name:"slug",plural:!1,selections:[{kind:"RequiredField",field:{alias:"collection",args:null,concreteType:"FontCollection",kind:"LinkedField",name:"fontCollection",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"BuyButton_collection"}],storageKey:null},action:"THROW",path:"viewer.slug.collection"}],storageKey:null}],storageKey:null}],type:"RootQueryType",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BuyButtonSlugQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:i,concreteType:"Slug",kind:"LinkedField",name:"slug",plural:!1,selections:[{alias:"collection",args:null,concreteType:"FontCollection",kind:"LinkedField",name:"fontCollection",plural:!1,selections:[u,s,{alias:null,args:null,concreteType:"FontStyle",kind:"LinkedField",name:"fontStyles",plural:!0,selections:[s,u],storageKey:null}],storageKey:null},u],storageKey:null},u],storageKey:null}]},params:{cacheID:"3cfe89cdb72a2a307ef7af6e33a90a95",id:null,metadata:{},name:"BuyButtonSlugQuery",operationKind:"query",text:"query BuyButtonSlugQuery(\n $collectionSlug: String!\n) {\n viewer {\n slug(name: $collectionSlug) {\n collection: fontCollection {\n ...BuyButton_collection\n id\n }\n id\n }\n id\n }\n}\n\nfragment BuyButton_collection on FontCollection {\n id\n sku {\n id\n }\n fontStyles {\n sku {\n id\n }\n id\n }\n}\n"}});r.hash="6e750adea09698f7cb61f435cd88fd26";let o=(c=[{defaultValue:null,kind:"LocalArgument",name:"collectionId"}],d=[{kind:"Variable",name:"id",variableName:"collectionId"}],p={alias:null,args:null,concreteType:"Sku",kind:"LinkedField",name:"sku",plural:!1,selections:[f={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},{fragment:{argumentDefinitions:c,kind:"Fragment",metadata:null,name:"BuyButtonIDQuery",selections:[{kind:"RequiredField",field:{alias:"collection",args:d,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"BuyButton_collection"}],storageKey:null},action:"THROW",path:"collection"}],type:"RootQueryType",abstractKey:null},kind:"Request",operation:{argumentDefinitions:c,kind:"Operation",name:"BuyButtonIDQuery",selections:[{alias:"collection",args:d,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},f,{kind:"InlineFragment",selections:[p,{alias:null,args:null,concreteType:"FontStyle",kind:"LinkedField",name:"fontStyles",plural:!0,selections:[p,f],storageKey:null}],type:"FontCollection",abstractKey:null}],storageKey:null}]},params:{cacheID:"fce9f583257b6bc49f50e90a44a8bea9",id:null,metadata:{},name:"BuyButtonIDQuery",operationKind:"query",text:"query BuyButtonIDQuery(\n $collectionId: ID!\n) {\n collection: node(id: $collectionId) {\n __typename\n ...BuyButton_collection\n id\n }\n}\n\nfragment BuyButton_collection on FontCollection {\n id\n sku {\n id\n }\n fontStyles {\n sku {\n id\n }\n id\n }\n}\n"}});o.hash="4fbf1dbf9e6c530a5d38c697b174d8b0";let l=(m={alias:null,args:null,concreteType:"Sku",kind:"LinkedField",name:"sku",plural:!1,selections:[h={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BuyButton_collection",selections:[h,m,{alias:null,args:null,concreteType:"FontStyle",kind:"LinkedField",name:"fontStyles",plural:!0,selections:[m],storageKey:null}],type:"FontCollection",abstractKey:null});l.hash="9c47030d7450494449d4aa5bda16e27e";var a,i,u,s,c,d,f,p,h,m,g=n(2265),y=n(97701),v=n(11444),b=n(66288),_=n(60182);
5n(87098);var k=n(36414),S=n(46823);function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function w(e){let{collection:t,label:n,collectionName:r}=e,o=(0,y.useFragment)((l.hash&&"9c47030d7450494449d4aa5bda16e27e"!==l.hash&&console.error("The definition of 'BuyButton_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),l),t),a=(0,v.oR)(),i=(0,g.useContext)(b.Z),u=(0,v.I0)(),s=(0,y.useRelayEnvironment)(),c=(0,g.useCallback)(()=>{o&&(u({type:"STORE_MODAL_NAVIGATE",route:"product",variables:{productId:o.id}}),u({type:"OPEN_CART"}))},[u,o]);return((0,g.useEffect)(()=>{o&&(0,_.D)(a,s,o.id)},[null==o?void 0:o.id]),i.BuyButton)?g.createElement(i.BuyButton,{innerProps:{onClick:c}}):g.createElement("button",{className:"buy-button",onClick:c,type:"button"},n||"Buy ".concat(null!=r?r:""))}let E=(o.hash&&"4fbf1dbf9e6c530a5d38c697b174d8b0"!==o.hash&&console.error("The definition of 'BuyButtonIDQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),o),x=(r.hash&&"6e750adea09698f7cb61f435cd88fd26"!==r.hash&&console.error("The definition of 'BuyButtonSlugQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),r);function R(e){let{collectionId:t,...n}=e,r=(0,y.useLazyLoadQuery)(E,{collectionId:t});return g.createElement(w,O({},n,r))}function P(e){let{preloadedQuery:t,...n}=e,r=(0,k.Z)(t,"store-or-network",E),o=(0,y.usePreloadedQuery)(E,r);return g.createElement(w,O({},n,o))}function C(e){var t,n,r;let{collectionSlug:o,...l}=e,a=(0,y.useLazyLoadQuery)(x,{collectionSlug:o});return g.createElement(w,O({},l,{collection:null!==(r=null===(t=a.viewer)||void 0===t?void 0:null===(n=t.slug)||void 0===n?void 0:n.collection)&&void 0!==r?r:null}))}function T(e){var t,n,r;let{preloadedQuery:o,...l}=e,a=(0,k.Z)(o,"store-or-network",x),i=(0,y.usePreloadedQuery)(x,a);return g.createElement(w,O({},l,{collection:null!==(r=null===(t=i.viewer)||void 0===t?void 0:null===(n=t.slug)||void 0===n?void 0:n.collection)&&void 0!==r?r:null}))}function j(e){let{preloadedQuery:t,...n}=e;return"BuyButtonIDQuery"===t.params.name?g.createElement(P,O({preloadedQuery:t},n)):g.createElement(T,O({preloadedQuery:t},n))}function L(e){let t;if("preloadedQuery"in e&&e.preloadedQuery){let{preloadedQuery:n,...r}=e;t=g.createElement(j,O({preloadedQuery:n},r))}else if("collectionId"in e&&e.collectionId){let{collectionId:n,...r}=e;t=g.createElement(S.$3,null,g.createElement(R,O({collectionId:n},r)))}else if("collectionSlug"in e&&e.collectionSlug){let{collectionSlug:n,...r}=e;t=g.createElement(S.$3,null,g.createElement(C,O({collectionSlug:n},r)))}else throw Error("BuyButton expected one of preloadedQuery, collectionId, or collectionSlug");return g.createElement(S.QY,{config:e.config},t)}},10149:function(e,t,n){"use strict";n.d(t,{default:function(){return _}});let r={fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CartButtonQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"Order",kind:"LinkedField",name:"currentOrder",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"CartButton_order"}],storageKey:null}],storageKey:null}],type:"RootQueryType",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"CartButtonQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"Order",kind:"LinkedField",name:"currentOrder",plural:!1,selections:[{alias:null,args:null,concreteType:"StripeCharge",kind:"LinkedField",name:"stripeCharge",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"paid",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"OrderItem",kind:"LinkedField",name:"orderItems",plural:!0,selections:[l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Money",kind:"LinkedField",name:"subtotal",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],storageKey:null},l],storageKey:null},l],storageKey:null}]}
5,params:{cacheID:"276e86b52bb6b3c63ce1eae274f10f86",id:null,metadata:{},name:"CartButtonQuery",operationKind:"query",text:"query CartButtonQuery {\n viewer {\n currentOrder {\n ...CartButton_order\n id\n }\n id\n }\n}\n\nfragment CartButton_order on Order {\n stripeCharge {\n paid\n }\n orderItems {\n id\n }\n subtotal {\n ...Price_price\n }\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n"}};r.hash="5c0da5849bf1215a9d1f264831830f71";let o={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CartButton_order",selections:[{alias:null,args:null,concreteType:"StripeCharge",kind:"LinkedField",name:"stripeCharge",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"paid",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"OrderItem",kind:"LinkedField",name:"orderItems",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Money",kind:"LinkedField",name:"subtotal",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"Price_price"}],storageKey:null}],type:"Order",abstractKey:null};o.hash="26a092d7efb579c98adda18413349b3b";var l,a=n(2265),i=n(11444),u=n(97701),s=n(66288),c=n(4342),d=n(60098),f=n(39887),p=n(46823);function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}let m=e=>e&&e.orderItems?e.orderItems.length:0,g=()=>({type:"OPEN_CART"});function y(e){var t;let{label:n,buttonStyle:r="inline",order:l,children:p,suffix:h,pending:y=!1}=e,v=(0,u.useFragment)((o.hash&&"26a092d7efb579c98adda18413349b3b"!==o.hash&&console.error("The definition of 'CartButton_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),o),l),[b,_]=(0,a.useState)(0),k=(0,i.I0)(),{storeModal:S}=(0,a.useContext)(c.ZP),O=(0,a.useCallback)(()=>{if(!h||/\{(count|subtotal)\}/.test(h)&&0===b)return null;let e=h.split(/(\{[^}]+\})/).map((e,t)=>{let n=e.match(/^\{([^}]+)\}$/);if(!n)return e||null;switch(n[1]){case"count":return b>0?b.toString():null;case"subtotal":return null!=v&&v.subtotal?a.createElement(f.ZP,{key:"price-".concat(t),price:v.subtotal,format:f.Ek.Truncated}):null;default:return e}}).filter(Boolean);return e.length>0?e:null},[h,b,null==v?void 0:v.subtotal]),w=(0,a.useCallback)(()=>{(b>0||S.hideAllCollections)&&k({type:"STORE_MODAL_REPLACE",route:"cart"}),k(g())},[b,k,S.hideAllCollections]);if((0,a.useEffect)(()=>{_(m(v))},[v,_]),!v&&!y||null!=v&&null!==(t=v.stripeCharge)&&void 0!==t&&t.paid)return null;let E=O();return a.createElement(s.Z.Consumer,null,e=>e.CartButton?a.createElement(e.CartButton,{count:b,innerProps:{onClick:w}}):a.createElement("button",{className:"cart-button",onClick:w,"data-count":b,"data-active":b>=1,"data-button-style":r},p||("icon"===r?a.createElement(d.gj,null):a.createElement("span",{className:"cart-button__label"},n||"Cart",E&&a.createElement("span",{className:"cart-button__suffix"},E)))))}let v=(r.hash&&"5c0da5849bf1215a9d1f264831830f71"!==r.hash&&console.error("The definition of 'CartButtonQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),r);function b(e){var t,n;let r=(0,u.useLazyLoadQuery)(v,{});return a.createElement(y,h({},e,{order:null!==(n=null===(t=r.viewer)||void 0===t?void 0:t.currentOrder)&&void 0!==n?n:null}))}function _(e){let{config:t,...n}=e,[r,o]=(0,a.useState)(!1);return(0,a.useEffect)(()=>o(!0),[]),a.createElement(p.QY,{config:t},r?a.createElement(a.Suspense,{fallback:a.createElement(y,h({},n,{order:null,pending:!0}))},a.createElement(b,n)):a.createElement(y,h({},n,{order:null,pending:!0})))}},73478:function(e,t,n){"use strict";n.d(t,{gW:function(){return L}});var r=n(2265);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)t.indexOf(n=l[r])>=0||(o[n]=e[n]);return o}function a(e){var t=(0,r.useRef)(e),n=(0,r.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var i,u=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},s=function(e){return"touches"in e},c=function(e){return e&&e.ownerDocument.defaultView||self},d=function(e,t,n){var r=e.getBoundingClientRect(),o=s(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:u((o.pageX-(r.left+c(e).pageXOffset))/r.width),top:u((o.pageY-(r.top+c(e).pageYOffset))/r.height)}},f=function(e){s(e)||e.preventDefault()},p=r.memo(function(e){var t=e.onMove,n=e.onKey,i=l(e,["onMove","onKey"]),u=(0,r.useRef)(null),p=a(t),h=a(n),m=(0,r.useRef)(null),g=(0,r.useRef)(!1),y=(0,r.useMemo)(function(){var e=function(e){f(e),
5(s(e)?e.touches.length>0:e.buttons>0)&&u.current?p(d(u.current,e,m.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=g.current,o=c(u.current),l=n?o.addEventListener:o.removeEventListener;l(r?"touchmove":"mousemove",e),l(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=u.current;if(r&&(f(t),(!g.current||s(t))&&r)){if(s(t)){g.current=!0;var o=t.changedTouches||[];o.length&&(m.current=o[0].identifier)}r.focus(),p(d(r,t,m.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),h({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]},[h,p]),v=y[0],b=y[1],_=y[2];return(0,r.useEffect)(function(){return _},[_]),r.createElement("div",o({},i,{onTouchStart:v,onMouseDown:v,className:"react-colorful__interactive",ref:u,onKeyDown:b,tabIndex:0,role:"slider"}))}),h=function(e){return e.filter(Boolean).join(" ")},m=function(e){var t=e.color,n=e.left,o=e.top,l=h(["react-colorful__pointer",e.className]);return r.createElement("div",{className:l,style:{top:100*(void 0===o?.5:o)+"%",left:100*n+"%"}},r.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},g=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},y=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?g(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?g(parseInt(e.substring(6,8),16)/255,2):1}},v=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:g(e.h),s:g(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:g(o/2),a:g(r,2)}},b=function(e){var t=v(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},_=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var l=Math.floor(t),a=r*(1-n),i=r*(1-(t-l)*n),u=r*(1-(1-t+l)*n),s=l%6;return{r:g(255*[r,i,a,a,u,r][s]),g:g(255*[u,r,r,i,a,a][s]),b:g(255*[a,a,u,r,r,i][s]),a:g(o,2)}},k=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},S=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,l=o<1?k(g(255*o)):"";return"#"+k(t)+k(n)+k(r)+l},O=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,l=Math.max(t,n,r),a=l-Math.min(t,n,r),i=a?l===t?(n-r)/a:l===n?2+(r-t)/a:4+(t-n)/a:0;return{h:g(60*(i<0?i+6:i)),s:g(l?a/l*100:0),v:g(l/255*100),a:o}},w=r.memo(function(e){var t=e.hue,n=e.onChange,o=h(["react-colorful__hue",e.className]);return r.createElement("div",{className:o},r.createElement(p,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:u(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":g(t),"aria-valuemax":"360","aria-valuemin":"0"},r.createElement(m,{className:"react-colorful__hue-pointer",left:t/360,color:b({h:t,s:100,v:100,a:1})})))}),E=r.memo(function(e){var t=e.hsva,n=e.onChange,o={backgroundColor:b({h:t.h,s:100,v:100,a:1})};return r.createElement("div",{className:"react-colorful__saturation",style:o},r.createElement(p,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:u(t.s+100*e.left,0,100),v:u(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+g(t.s)+"%, Brightness "+g(t.v)+"%"},r.createElement(m,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:b(t)})))}),x=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},R="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,P=new Map,C=function(e){R(function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!P.has(t)){var r=t.createElement("style");r.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;
5left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',P.set(t,r);var o=i||n.nc;o&&r.setAttribute("nonce",o),t.head.appendChild(r)}},[])},T=function(e){var t,n,i,u,s,c=e.className,d=e.colorModel,f=e.color,p=void 0===f?d.defaultColor:f,m=e.onChange,g=l(e,["className","colorModel","color","onChange"]),y=(0,r.useRef)(null);C(y);var v=(t=a(m),i=(n=(0,r.useState)(function(){return d.toHsva(p)}))[0],u=n[1],s=(0,r.useRef)({color:p,hsva:i}),(0,r.useEffect)(function(){if(!d.equal(p,s.current.color)){var e=d.toHsva(p);s.current={hsva:e,color:p},u(e)}},[p,d]),(0,r.useEffect)(function(){var e;x(i,s.current.hsva)||d.equal(e=d.fromHsva(i),s.current.color)||(s.current={hsva:i,color:e},t(e))},[i,d,t]),[i,(0,r.useCallback)(function(e){u(function(t){return Object.assign({},t,e)})},[])]),b=v[0],_=v[1],k=h(["react-colorful",c]);return r.createElement("div",o({},g,{ref:y,className:k}),r.createElement(E,{hsva:b,onChange:_}),r.createElement(w,{hue:b.h,onChange:_,className:"react-colorful__last-control"}))},j={defaultColor:"000",toHsva:function(e){return O(y(e))},fromHsva:function(e){return S(_({h:e.h,s:e.s,v:e.v,a:1}))},equal:function(e,t){return e.toLowerCase()===t.toLowerCase()||x(y(e),y(t))}},L=function(e){return r.createElement(T,o({},e,{colorModel:j}))}}}]);
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.