(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,630585,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getLocationSearchUrlConfig=function({query:e,language:t,locationType:r,countryCode:o,adminDistrictCode:n}){let a={query:e,language:t,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return r&&(a.locationType=r),o&&(a.countryCode=o),n&&(a.adminDistrictCode=n),{host:"api.weather.com",protocol:"https",pathname:"/v3/location/search",query:a}},r.getLocationPointUrlConfig=function({geocode:e,locId:t,placeId:r,canonicalCityId:o,language:n}){let a={language:n,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return e&&(a.geocode=e),t&&(a.locid=t),r&&(a.placeid=r),o&&(a.canonicalCityId=o),{host:"api.weather.com",protocol:"https",pathname:"/v3/location/point",query:a}}},678651,(e,t,r)=>{"use strict";function o(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e))void 0!==o&&t.append(r,o);return t}Object.defineProperty(r,"__esModule",{value:!0}),r.queryStringToSearchParams=o,r.urlFrom=function({host:e,...t}){if(!e)throw Error("Host is missing");let r=new URL(`https://${e}`);return Object.assign(r,{...t,hostname:e}),t.query&&(r.search=o(t.query).toString()),r}},414655,(e,t,r)=>{"use strict";async function o(e){if(!e.ok)switch(e.status){case 401:throw Error("Unauthorized (status 401)");case 403:throw Error("Forbidden (status 403)");case 404:throw Error("Not found (status 404)");case 400:throw Error("Bad Request (status 400)");default:if(e.status>=500)throw Error(`Server error (status ${e.status})`);throw Error(`Unhandled error (status ${e.status})`)}try{if(204===e.status)return null;return await e.json()}catch(e){throw Error(`Invalid JSON response: ${e.message}`)}}async function n(e){if(!e.ok)switch(e.status){case 401:throw Error("Unauthorized (status 401)");case 403:throw Error("Forbidden (status 403)");case 404:throw Error("Not found (status 404)");case 400:throw Error("Bad Request (status 400)");default:if(e.status>=500)throw Error(`Server error (status ${e.status})`);throw Error(`Unhandled error (status ${e.status})`)}try{if(204===e.status)return"";return await e.text()}catch(e){throw Error(`Invalid text response: ${e.message}`)}}Object.defineProperty(r,"__esModule",{value:!0}),r.handleFetchResponse=o,r.handleFetchTextResponse=n},330091,(e,t,r)=>{"use strict";var o,n;Object.defineProperty(r,"__esModule",{value:!0}),r.ErrInvalidCanonicalCityID=r.ErrInvalidPlaceID=r.ErrInvalidPartialLocID9=r.ErrInvalidPartialLocID1=r.ErrInvalidUSZipCode=r.ErrInvalidLocID=r.ErrInvalidLatOrLong=r.ErrInvalidGeocode=r.ErrInvalid=r.LocationError=r.RegExpCanonicalCityID=r.RegExpPlaceID=r.RegExpPartialLocID9=r.RegExpPartialLocID1=r.RegExpUSZipCode=r.RegExpLocID=r.RegExpGeocode=r.LocationTypeMap=r.LocationType=void 0,r.valid=l,r.normalized=function(e,t){switch(t){case o.Geocode:return f(e);case o.LocID:return g(e);case o.USZipCode:return m(e);case o.PartialLocID1:return h(e);case o.PartialLocID9:return y(e);case o.PlaceID:return v(e);case o.CanonicalCityID:return C(e);default:return e}},r.testLocId=function(e){let t="";try{t=decodeURIComponent(e)}catch{}for(let e of(t=d(t),c))if(e.regex.test(t))return{type:e.type,locId:e.normalize(t)};return null},r.locIdFromSeoPhrase=d,r.normalizedGeocode=f,r.parseLatLonFromGeocode=function(e){let t=f(e).split(",");if(2!==t.length||!t[0]||!t[1])throw r.ErrInvalidGeocode;let o=parseFloat(t[0].trim()),n=parseFloat(t[1].trim());if(isNaN(o)||isNaN(n))throw r.ErrInvalidGeocode;return[o,n]},r.normalizeLatOrLong=p,r.normalizedLocID=g,r.normalizedUSZipCode=m,r.normalizedPartialLocID1=h,r.normalizedPartialLocID9=y,r.normalizedPlaceID=v,r.normalizedCanonicalCityID=C,r.geocodeFromLatLong=function(e,t){return`${e.toFixed(2)},${t.toFixed(2)}`},(n=o||(r.LocationType=o={}))[n.Geocode=0]="Geocode",n[n.LocID=1]="LocID",n[n.USZipCode=2]="USZipCode",n[n.PartialLocID1=3]="PartialLocID1",n[n.PartialLocID9=4]="PartialLocID9",n[n.PlaceID=5]="PlaceID",n[n.CanonicalCityID=6]="CanonicalCityID",r.LocationTypeMap={Geocode:"geocode",LocID:"locId",USZipCode:"locId",PartialLocID1:"locId",PartialLocID9:"locId",PlaceID:"placeId",CanonicalCityID:"canonicalCityId"},r.RegExpGeocode=/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/;let a=/.*(\+|-|\s)+(\w*|(\w{4}\d{4})|(\d+))(:(1|4|5|9|11|13|16|17|19|21|25|27))?(:\w{2})?$/;r.RegExpLocID=/^([^+|^:]*):(1|4|5|9|11|13|16|17|19|21|25|27):\w{2}$/,r.RegExpUSZipCode=/^\d{5}(:\d)?(\w{2})?$/,r.RegExpPartialLocID1=/^\w{4}\d{4}(:1)?$/,r.RegExpPartialLocID9=/^([a-zA-Z]{3}):.*$/,r.RegExpPlaceID=/^([0-9a-f]){32,}$/,r.RegExpCanonicalCityID=r.RegExpPlaceID;class i extends Error{constructor(e){super(e),this.name="LocationError"}}function l(e,t){switch(t){case o.Geocode:return r.RegExpGeocode.test(e)&&"0.00,0.00"!==e;case o.LocID:return r.RegExpLocID.test(e);case o.USZipCode:return r.RegExpUSZipCode.test(e);case o.PartialLocID1:return r.RegExpPartialLocID1.test(e);case o.PartialLocID9:return r.RegExpPartialLocID9.test(e);case o.PlaceID:return r.RegExpPlaceID.test(e);case o.CanonicalCityID:return r.RegExpCanonicalCityID.test(e);default:return!1}}r.LocationError=i,r.ErrInvalid=new i("location: invalid location"),r.ErrInvalidGeocode=new i("location: invalid location: invalid geocode"),r.ErrInvalidLatOrLong=new i("location: invalid location: invalid latitude or longitude"),r.ErrInvalidLocID=new i("location: invalid location: invalid locid"),r.ErrInvalidUSZipCode=new i("location: invalid location: invalid US zip code"),r.ErrInvalidPartialLocID1=new i("location: invalid location: invalid partial locid type 1"),r.ErrInvalidPartialLocID9=new i("location: invalid location: invalid partial locid type 9"),r.ErrInvalidPlaceID=new i("location: invalid location: invalid placeid"),r.ErrInvalidCanonicalCityID=new i("location: invalid location: invalid canonical city ID");let c=[{regex:r.RegExpGeocode,type:r.LocationTypeMap.Geocode,normalize:f},{regex:r.RegExpLocID,type:r.LocationTypeMap.LocID,normalize:g},{regex:r.RegExpUSZipCode,type:r.LocationTypeMap.USZipCode,normalize:m},{regex:r.RegExpPartialLocID1,type:r.LocationTypeMap.PartialLocID1,normalize:h},{regex:r.RegExpPartialLocID9,type:r.LocationTypeMap.PartialLocID9,normalize:y},{regex:r.RegExpPlaceID,type:r.LocationTypeMap.PlaceID,normalize:v},{regex:r.RegExpCanonicalCityID,type:r.LocationTypeMap.CanonicalCityID,normalize:C}],s=/-/,u=/\s/;function d(e){let t=e;if(a.test(e))if(s.test(e)){let r=e.split("-").pop();r&&(t=r)}else if(u.test(e)){let r=e.split(" ").pop();r&&(t=r)}else{let r=e.split("+").pop();r&&(t=r)}return t}function f(e){if(""===e||!l(e,o.Geocode))throw r.ErrInvalidGeocode;let t=e.split(",");if(2!==t.length)throw r.ErrInvalidGeocode;try{for(let e=0;e{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getLocationPointByPlaceId=l,r.getLocationPointByGeocode=c,r.getLocationPointByLocIdParam=s,r.getLocationPointByCanonicalCityId=u;let o=e.r(630585),n=e.r(678651),a=e.r(414655),i=e.r(330091);async function l(e,t){let r=(0,n.urlFrom)((0,o.getLocationPointUrlConfig)({placeId:e,language:t})),i=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,a.handleFetchResponse)(i)}async function c(e,t){let r=(0,n.urlFrom)((0,o.getLocationPointUrlConfig)({geocode:e,language:t})),i=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,a.handleFetchResponse)(i)}async function s(e,t){let r=(0,i.testLocId)(e);if(!r)throw Error("Not a valid locId or type supported");let l=(0,n.urlFrom)((0,o.getLocationPointUrlConfig)({[r.type]:r.locId,language:t})),c=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,a.handleFetchResponse)(c)}async function u(e,t){let r=(0,n.urlFrom)((0,o.getLocationPointUrlConfig)({canonicalCityId:e,language:t})),i=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,a.handleFetchResponse)(i)}},295553,e=>{"use strict";let t=(0,e.i(751931).atom)();e.s(["pageLocationDataAtom",0,t])},579310,427309,150137,e=>{"use strict";var t=e.i(751931),r=e.i(889753);let o=(0,e.i(834354).focusAtom)(r.userPreferencesAtom,e=>e.prop("locations")),n=(0,t.atom)(e=>e(r.userPreferencesAtom)?.locations||[]);(0,t.atom)(e=>{let t=e(o);return t?.find(e=>0===e.position)||t?.[0]||null}),(0,t.atom)(e=>e(o)?.length||!1),e.s(["userLocationsAtom",0,o,"userLocationsGetAtom",0,n],579310);var a=e.i(186316);let i=(0,a.getCookie)("twc-location-geocode")?.toString()||null,l=(0,t.atom)(i),c=(0,a.getCookie)("twc-location-country")?.toString()||null,s=(0,t.atom)(c);e.s(["geoipCountry",0,s,"geoipGeocode",0,l],427309);var u=e.i(405052),d=e.i(695881),f=e.i(233601);let p=(0,d.createLogger)("getGeolocationAPIGeocode");async function g(e=1e4){try{let t=sessionStorage.getItem("wxu-web/key-val:html5Geolocation");if(t){let{latitude:e,longitude:r,timestamp:o,permissionDenied:n}=JSON.parse(t),a=Date.now()-o;if(n&&anavigator.geolocation.getCurrentPosition(e=>{let{latitude:r,longitude:o}=e.coords;sessionStorage.setItem("wxu-web/key-val:html5Geolocation",JSON.stringify({latitude:r,longitude:o,permissionDenied:!1,timestamp:Date.now()})),t({latitude:r,longitude:o})},e=>{e.code===e.PERMISSION_DENIED&&sessionStorage.setItem("wxu-web/key-val:html5Geolocation",JSON.stringify({permissionDenied:!0,timestamp:Date.now()})),r(e)},{enableHighAccuracy:!0,timeout:e,maximumAge:0}))}catch(e){p.error("getGeolocationAPIGeocode error: ",e)}}var m=e.i(333350);let h=(0,d.createLogger)("geolocationApi");(0,t.atom)(async()=>{try{return(await navigator.permissions.query({name:"geolocation"})).state}catch(e){h.error(e)}});let y=(0,t.atom)(async()=>{if(!m.default)return;let e=await g();if(e?.latitude&&e?.longitude)return(0,u.formatGeocode)(`${e?.latitude},${e?.longitude}`)}),v=(0,t.atom)(void 0),C=(0,t.atom)(e=>{let t=e((0,f.loadable)(y));return"hasData"===t.state?t.data:void 0});e.s(["geolocationAPIGeocodeAtom",0,C,"undefinedAtom",0,v],150137)},335355,e=>{"use strict";var t=e.i(751931),r=e.i(889753);let o=(0,t.atom)(e=>e(r.userPreferencesAtom)?.locale||"en_US");(0,t.atom)(e=>e(o).split("_")[0]);let n=(0,t.atom)(e=>e(o).split("_")[1]);e.s(["userCountryAtom",0,n,"userLocaleAtom",0,o])},405052,935807,919101,e=>{"use strict";function t(e){if(!e||!e.includes(","))return e;let t=e.split(",");if(2!==t.length)return e;let[r,o]=t,n=parseFloat(r||"0").toFixed(2),a=parseFloat(o||"0").toFixed(2);return`${n},${a}`}function r(e,t=[],o=!1,n="US",i){let l,c=t.find(t=>t.placeID===e.placeId);if(c&&o){let t=c.userTag||c.name;if(t&&"Other"!==t){let r=e.displayName,o=a(e,n,"");if(t!==r&&t!==o)return t}}if(e?.disputedCountries)l=e.displayName||"";else{switch(e?.type){case"address":l=e?.address?.split(",")[0]?.trim()||"";break;case"city":l=e?.locale?.locale2||"";break;case"locality":l=e?.locale?.locale3||"";break;case"neighborhood":l=e?.locale?.locale4||"";break;case"airport":l=e?.airportName||"";break;case"postal":{let t=e?.locale?.locale4||e?.locale?.locale3||e?.locale?.locale2||"",r=e?.postalCode||"";l=i?`${t} ${r}`.trim():`${t}`.trim();break}default:l=e?.displayName||""}0===l.length&&(l=e?.displayName||"")}return l}function o(e,t=[],r=!1,n="US",i){let l,c=t.find(t=>t.placeID===e.placeId);if(c&&r){let t=c.userTag||c.name;if(t&&"Other"!==t){let r=e.displayName,o=a(e,n,"");if(t!==r&&t!==o)return function(e,t="US"){if(e?.disputedCountries)return e?.displayName||"";let r=t===e?.countryCode?"":e?.country||"";switch(e?.type){case"city":{let t=e?.adminDistrict||"";return[e?.locale?.locale2||"",t,r].filter(Boolean).join(", ")}case"locality":{let t=e?.adminDistrict||e?.locale?.locale2||"";return[e.locale?.locale3||"",t,r].filter(Boolean).join(", ")}case"neighborhood":{let t=e?.adminDistrict||"";return[e?.locale?.locale4||"",e?.locale?.locale3||e?.locale?.locale2||"",t,r].filter(Boolean).join(", ")}case"postal":{let t=e?.adminDistrict||"",o=e?.postalCode||"";return[e?.locale?.locale4||e?.locale?.locale3||e?.locale?.locale2||"",`${t} ${o}`.trim(),r].filter(Boolean).join(", ")}default:{let t=e?.adminDistrict||"";return[e?.locale?.locale2||"",t,r].filter(Boolean).join(", ")}}}(e,n)}}if(e?.disputedCountries)l=e?.displayName||"";else{let t=n===e?.countryCode?"":e?.country||"",r=e?.adminDistrict||"",o=e?.postalCode||"",a=e.city||"";switch(e?.type){case"address":l=[a,r,t].filter(Boolean).join(", ");break;case"city":default:l=[r,t].filter(Boolean).join(", ");break;case"locality":l=[e?.locale?.locale2||"",r,t].filter(Boolean).join(", ");break;case"neighborhood":l=[e?.locale?.locale3||e?.locale?.locale2||"",r,t].filter(Boolean).join(", ");break;case"postal":{let n=r||e?.locale?.locale2||"";l=[i?`${n} ${o}`.trim():n,t].filter(Boolean).join(", ")}}}return l}function n(e,t=[],a=!1,i="US"){let l=r(e,t,a,i,!1),c=o(e,t,a,i,!0),s=e?.separator?e?.separator:l&&c?", ":"";return`${l}${s}${c}`.trim()}function a(e,t,r){let{displayName:o,adminDistrictCode:n,adminDistrict:a,countryCode:i,disputedArea:l,country:c}=e,s=[];return o&&s.push(o),"IL"!==t&&(n?s.push(n):a&&s.push(a)),i!==t&&!1===l&&c&&s.push(c),s.join(r)}e.s(["formatGeocode",()=>t],405052),e.s(["getLocationContext",()=>o,"getLocationName",()=>r,"getLocationPresentationName",()=>n],935807),e.s(["getAddressForLocationData",0,(e,t)=>{if(!e||!Array.isArray(t))return e;let r=t.find(t=>t.placeId===e.placeId);return r?{...e,displayName:r.address,address:r.address}:e}],919101)},472737,77323,e=>{"use strict";var t,r=e.i(477716),o=e.i(475566),n=e.i(381477),a=e.i(579310),i=e.i(310847),l=e.i(427309),c=e.i(343277),s=e.i(295553),u=e.i(375570),d=e.i(150137),f=e.i(405052),p=e.i(528600),g=e.i(935807),m=e.i(335355);function h(){let e=(0,o.useAtomValue)(a.userLocationsGetAtom),t=(0,o.useAtomValue)(m.userLocaleAtom),n=t?.slice(3)||"US",{user:i}=(0,p.useUser)(),l=i.isUserLoggedIn;return(0,r.useMemo)(()=>({getLocationName:(t,r)=>(0,g.getLocationName)(t,e,l,n,r),getLocationContext:(t,r)=>(0,g.getLocationContext)(t,e,l,n,r),getLocationPresentationName:t=>(0,g.getLocationPresentationName)(t,e,l,n)}),[])}e.s(["usePresentationName",()=>h],77323);var y=e.i(919101),v=((t={}).PREFER_FAVORITES="preferFavorites",t.PREFER_RECENT="preferRecent",t);function C({location:e,fallbackOrder:t="preferFavorites"}={}){let p=(0,u.useParams)(),g=p?.locale,m=(0,r.useMemo)(()=>e,[e?.placeId,e?.geocode,e?.address]),v=(0,o.useAtomValue)(s.pageLocationDataAtom),I=(0,o.useAtomValue)(a.userLocationsAtom),w=(0,o.useAtomValue)(i.wxuUserRecentLocationsAtom),E=!p?.locId&&!m&&!I?.length&&!w?.length,b=(0,o.useAtomValue)(E?d.geolocationAPIGeocodeAtom:d.undefinedAtom),L=(0,o.useAtomValue)(l.geoipGeocode),D=Array.isArray(I)&&I.length>0?I[0]?.coordinate:null,P=Array.isArray(w)&&w.length>0?w[0]:null,F="preferFavorites"===t,S="preferRecent"===t,x=e=>(0,c.getLocationPointByGeocode)(e,g),{data:A,error:_,isLoading:O}=(0,n.default)(!m&&D&&(F||S&&!P)?["/v3/location/point",D]:null,()=>D?x(D):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{data:R,error:N,isLoading:T}=(0,n.default)(!m&&P&&(S||F&&!D)?["/v3/location/point",P]:null,()=>P?(0,c.getLocationPointByPlaceId)(P,g):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{data:j,error:$,isLoading:U}=(0,n.default)(E&&b?["/v3/location/point",b]:null,()=>b?x(b):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{data:k,error:M,isLoading:G}=(0,n.default)(m||!L||D||P||b?null:["/v3/location/point",L],()=>L?x(L):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{fromLocationPoint:z}=function(){let{getLocationName:e,getLocationContext:t,getLocationPresentationName:r}=h(),n=(0,o.useAtomValue)(i.wxuUserRecentAddressesAtom);return{fromLocationPoint:o=>{let a=(0,y.getAddressForLocationData)(o.location,n);return{displayName:a.displayName,adminDistrict:a.adminDistrict,geocode:(0,f.formatGeocode)(`${a.latitude},${a.longitude}`),placeId:a.placeId,city:a.city,countryCode:a.countryCode,adminDistrictCode:a.adminDistrictCode||"",presentationName:r(a),name:e(a),context:t(a),ianaTimeZone:a.ianaTimeZone,postalCode:a.postalCode,address:a.address||"",type:a.type}},fromLocationSearchItem:o=>{let a=(0,y.getAddressForLocationData)(o,n);return{displayName:a.displayName,adminDistrict:a.adminDistrict,geocode:(0,f.formatGeocode)(`${a.latitude},${a.longitude}`),placeId:a.placeId,city:a.city,countryCode:a.countryCode,adminDistrictCode:a.adminDistrictCode||"",presentationName:r(a),name:e(a),context:t(a),ianaTimeZone:a.ianaTimeZone,postalCode:a.postalCode,address:a.address||"",type:a.type}}}}();return{effectiveLocation:(0,r.useMemo)(()=>{let e;return m?e=m:v?e=v:A&&D?e=z(A):_&&D?(console.error("Error fetching favorite location data:",_),e={displayName:"Favorite Location",adminDistrict:"",geocode:D,placeId:"unknown",ianaTimeZone:""}):R&&P?e=z(R):N&&P?(console.error("Error fetching recent location data:",N),e={displayName:"Recent Location",adminDistrict:"",geocode:"",placeId:P,ianaTimeZone:""}):j&&b?e=z(j):$&&b?(console.error("Error fetching geolocation API data:",$),e={displayName:"Unknown Location",adminDistrict:"",geocode:b,placeId:"unknown",city:"",countryCode:"",adminDistrictCode:"",ianaTimeZone:""}):k&&L?e=z(k):M&&L&&(console.error("Error fetching geoip location data:",M),e={displayName:"Unknown Location",adminDistrict:"",geocode:L,placeId:"unknown",city:"",countryCode:"",adminDistrictCode:"",ianaTimeZone:""}),e},[m,A,_,R,P,b,j,L,k,v,D,S,M,N]),isLocationLoading:!!F&&O||!!S&&T||U||G,locationError:(F?_:null)||(S?N:null)||$||M}}e.s(["LocationFallbackOrder",()=>v,"useLocationSource",()=>C],472737)},695018,(e,t,r)=>{function o(e,t,r,o){return Math.round(e/r)+" "+o+(t>=1.5*r?"s":"")}t.exports=function(e,t){t=t||{};var r,n,a,i,l=typeof e;if("string"===l&&e.length>0){var c=e;if(!((c=String(c)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(s){var u=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*u;case"weeks":case"week":case"w":return 6048e5*u;case"days":case"day":case"d":return 864e5*u;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*u;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*u;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:break}}}return}if("number"===l&&isFinite(e)){return t.long?(n=Math.abs(r=e))>=864e5?o(r,n,864e5,"day"):n>=36e5?o(r,n,36e5,"hour"):n>=6e4?o(r,n,6e4,"minute"):n>=1e3?o(r,n,1e3,"second"):r+" ms":(i=Math.abs(a=e))>=864e5?Math.round(a/864e5)+"d":i>=36e5?Math.round(a/36e5)+"h":i>=6e4?Math.round(a/6e4)+"m":i>=1e3?Math.round(a/1e3)+"s":a+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},702660,(e,t,r)=>{t.exports=function(t){function r(e){let t,n,a,i=null;function l(...e){if(!l.enabled)return;let o=Number(new Date);l.diff=o-(t||o),l.prev=t,l.curr=o,t=o,e[0]=r.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let n=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,o)=>{if("%%"===t)return"%";n++;let a=r.formatters[o];if("function"==typeof a){let r=e[n];t=a.call(l,r),e.splice(n,1),n--}return t}),r.formatArgs.call(l,e),(l.log||r.log).apply(l,e)}return l.namespace=e,l.useColors=r.useColors(),l.color=r.selectColor(e),l.extend=o,l.destroy=r.destroy,Object.defineProperty(l,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(n!==r.namespaces&&(n=r.namespaces,a=r.enabled(e)),a),set:e=>{i=e}}),"function"==typeof r.init&&r.init(l),l}function o(e,t){let o=r(this.namespace+(void 0===t?":":t)+e);return o.log=this.log,o}function n(e,t){let r=0,o=0,n=-1,a=0;for(;r"-"+e)].join(",");return r.enable(""),e},r.enable=function(e){for(let t of(r.save(e),r.namespaces=e,r.names=[],r.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===t[0]?r.skips.push(t.slice(1)):r.names.push(t)},r.enabled=function(e){for(let t of r.skips)if(n(e,t))return!1;for(let t of r.names)if(n(e,t))return!0;return!1},r.humanize=e.r(695018),r.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach(e=>{r[e]=t[e]}),r.names=[],r.skips=[],r.formatters={},r.selectColor=function(e){let t=0;for(let r=0;r{let o;var n=e.i(694914);r.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;e.splice(1,0,r,"color: inherit");let o=0,n=0;e[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(o++,"%c"===e&&(n=o))}),e.splice(n,0,r)},r.save=function(e){try{e?r.storage.setItem("debug",e):r.storage.removeItem("debug")}catch(e){}},r.load=function(){let e;try{e=r.storage.getItem("debug")||r.storage.getItem("DEBUG")}catch(e){}return!e&&void 0!==n.default&&"env"in n.default&&(e=n.default.env.DEBUG),e},r.useColors=function(){let e;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},r.storage=function(){try{return localStorage}catch(e){}}(),o=!1,r.destroy=()=>{o||(o=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],r.log=console.debug||console.log||(()=>{}),t.exports=e.r(702660)(r);let{formatters:a}=t.exports;a.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},695881,(e,t,r)=>{"use strict";var o=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.createLogger=l,r.log=function(e,t,...r){l(e)(t,...r)};let n=o(e.r(272851));n.default.log=console.info.bind(console);let a=console.error.bind(console),i="wx-next";function l(e){let t=(0,n.default)(`${i}:${e}`),r=(0,n.default)(`${i}:debug:${e}`),o=(0,n.default)(`${i}:error:${e}`),c=(0,n.default)(`${i}:warn:${e}`),s=(0,n.default)(`${i}:lifecycle:${e}`);o.log=a;let u=(e,...r)=>{t(e,...r)};return u.info=(e,...r)=>{t(e,...r)},u.debug=(e,...t)=>{r(e,...t)},u.error=(e,...t)=>{o(e,...t)},u.warn=(e,...t)=>{c(e,...t)},u.lifecycle=(e,...t)=>{s(e,...t)},u.extend=t=>l(`${e}:${t}`),u}},751931,233338,e=>{"use strict";let t,r,o={get url(){return`file://${e.P("node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]/node_modules/jotai/esm/vanilla/internals.mjs")}`}};function n(e){return!!e.write}function a(e){return"v"in e||"e"in e}function i(e){if("e"in e)throw e.e;if((o.env?o.env.MODE:void 0)!=="production"&&!("v"in e))throw Error("[Bug] atom state is not initialized");return e.v}let l=new WeakMap;function c(e){var t;return u(e)&&!!(null==(t=l.get(e))?void 0:t[0])}function s(e,t){let r=l.get(e);if(!r){r=[!0,new Set],l.set(e,r);let t=()=>{r[0]=!1};e.then(t,t)}r[1].add(t)}function u(e){return"function"==typeof(null==e?void 0:e.then)}function d(e,t,r){if(!r.p.has(e)){r.p.add(e);let o=()=>r.p.delete(e);t.then(o,o)}}function f(e,t,r){var o;let n=new Set;for(let t of(null==(o=r.get(e))?void 0:o.t)||[])r.has(t)&&n.add(t);for(let e of t.p)n.add(e);return n}let p=(e,t,...r)=>t.read(...r),g=(e,t,...r)=>t.write(...r),m=(e,t)=>{var r;return null==(r=t.unstable_onInit)?void 0:r.call(t,e)},h=(e,t,r)=>{var o;return null==(o=t.onMount)?void 0:o.call(t,r)},y=(e,t)=>{var r;let n=O(e),a=n[0],i=n[6],l=n[9];if((o.env?o.env.MODE:void 0)!=="production"&&!t)throw Error("Atom is undefined or null");let c=a.get(t);return c||(c={d:new Map,p:new Set,n:0},a.set(t,c),null==(r=i.i)||r.call(i,t),null==l||l(e,t)),c},v=e=>{let t=O(e),r=t[1],o=t[3],n=t[4],a=t[5],i=t[6],l=t[13],c=[],s=e=>{try{e()}catch(e){c.push(e)}};do{i.f&&s(i.f);let t=new Set,c=t.add.bind(t);o.forEach(e=>{var t;return null==(t=r.get(e))?void 0:t.l.forEach(c)}),o.clear(),a.forEach(c),a.clear(),n.forEach(c),n.clear(),t.forEach(s),o.size&&l(e)}while(o.size||a.size||n.size)if(c.length)throw AggregateError(c)},C=e=>{let t=O(e),r=t[1],n=t[2],a=t[3],i=t[11],l=t[14],c=t[17],s=[],u=new WeakSet,d=new WeakSet,p=Array.from(a);for(;p.length;){let t=p[p.length-1],a=i(e,t);if(d.has(t)){p.pop();continue}if(u.has(t)){if(n.get(t)===a.n)s.push([t,a]);else if((o.env?o.env.MODE:void 0)!=="production"&&n.has(t))throw Error("[Bug] invalidated atom exists");d.add(t),p.pop();continue}for(let e of(u.add(t),f(t,a,r)))u.has(e)||p.push(e)}for(let t=s.length-1;t>=0;--t){let[r,o]=s[t],i=!1;for(let e of o.d.keys())if(e!==r&&a.has(e)){i=!0;break}i&&(l(e,r),c(e,r)),n.delete(r)}},I=new WeakSet,w=(e,t)=>{var r,l;let f,p,g=O(e),m=g[1],h=g[2],y=g[3],v=g[6],C=g[7],w=g[11],E=g[12],b=g[13],L=g[14],D=g[16],P=g[17],S=w(e,t);if(a(S)&&(m.has(t)&&h.get(t)!==S.n||Array.from(S.d).every(([t,r])=>L(e,t).n===r)))return S;S.d.clear();let x=!0;function A(){m.has(t)&&(P(e,t),b(e),E(e))}let _=S.n;try{(o.env?o.env.MODE:void 0)!=="production"&&I.delete(e);let l=C(e,t,function(r){var o;if(r===t){let t=w(e,r);if(!a(t))if("init"in r)F(e,r,r.init);else throw Error("no atom init");return i(t)}let n=L(e,r);try{return i(n)}finally{S.d.set(r,n.n),c(S.v)&&d(t,S.v,n),null==(o=m.get(r))||o.t.add(t),x||A()}},{get signal(){return f||(f=new AbortController),f.signal},get setSelf(){return(o.env?o.env.MODE:void 0)==="production"||n(t)||console.warn("setSelf function cannot be used with read-only atom"),!p&&n(t)&&(p=(...r)=>{if((o.env?o.env.MODE:void 0)!=="production"&&x&&console.warn("setSelf function cannot be called in sync"),!x)try{return D(e,t,...r)}finally{b(e),E(e)}}),p}});return(o.env?o.env.MODE:void 0)!=="production"&&I.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),F(e,t,l),u(l)&&(s(l,()=>null==f?void 0:f.abort()),l.then(A,A)),null==(r=v.r)||r.call(v,t),S}catch(e){return delete S.v,S.e=e,++S.n,S}finally{x=!1,_!==S.n&&h.get(t)===_&&(h.set(t,S.n),y.add(t),null==(l=v.c)||l.call(v,t))}},E=(e,t)=>{let r=O(e),o=r[1],n=r[2],a=r[11],i=[t];for(;i.length;){let t=i.pop(),r=a(e,t);for(let l of f(t,r,o)){let t=a(e,l);n.set(l,t.n),i.push(l)}}},b=(e,t,...r)=>{let n=O(e),a=n[3],l=n[6],c=n[8],s=n[11],u=n[12],d=n[13],f=n[14],p=n[15],g=n[17],m=!0;try{return c(e,t,t=>i(f(e,t)),(r,...n)=>{var i;let c=s(e,r);try{if(r!==t)return b(e,r,...n);{if(!("init"in r))throw Error("atom not writable");(o.env?o.env.MODE:void 0)!=="production"&&I.add(e);let t=c.n,s=n[0];F(e,r,s),g(e,r),t!==c.n&&(a.add(r),null==(i=l.c)||i.call(l,r),p(e,r));return}}finally{m||(d(e),u(e))}},...r)}finally{m=!1}},L=(e,t)=>{var r;let o=O(e),n=o[1],a=o[3],i=o[6],l=o[11],s=o[15],u=o[18],d=o[19],f=l(e,t),p=n.get(t);if(p&&!c(f.v)){for(let[o,n]of f.d)if(!p.d.has(o)){let c=l(e,o);u(e,o).t.add(t),p.d.add(o),n!==c.n&&(a.add(o),null==(r=i.c)||r.call(i,o),s(e,o))}for(let r of p.d||[])if(!f.d.has(r)){p.d.delete(r);let o=d(e,r);null==o||o.t.delete(t)}}},D=(e,t)=>{var r;let o=O(e),a=o[1],i=o[4],l=o[6],c=o[10],s=o[11],u=o[12],d=o[13],f=o[14],p=o[16],g=s(e,t),m=a.get(t);if(!m){for(let r of(f(e,t),g.d.keys()))D(e,r).t.add(t);m={l:new Set,d:new Set(g.d.keys()),t:new Set},a.set(t,m),null==(r=l.m)||r.call(l,t),n(t)&&i.add(()=>{let r=!0;try{let o=c(e,t,(...o)=>{try{return p(e,t,...o)}finally{r||(d(e),u(e))}});o&&(m.u=()=>{r=!0;try{o()}finally{r=!1}})}finally{r=!1}})}return m},P=(e,t)=>{var r;let o=O(e),n=o[1],a=o[5],i=o[6],l=o[11],c=o[19],s=l(e,t),u=n.get(t);if(u&&!u.l.size&&!Array.from(u.t).some(e=>{var r;return null==(r=n.get(e))?void 0:r.d.has(t)})){for(let o of(u.u&&a.add(u.u),u=void 0,n.delete(t),null==(r=i.u)||r.call(i,t),s.d.keys())){let r=c(e,o);null==r||r.t.delete(t)}return}return u},F=(e,t,r)=>{let o=O(e)[11],n=o(e,t),a="v"in n,i=n.v;if(u(r))for(let a of n.d.keys())d(t,r,o(e,a));if(n.v=r,delete n.e,!a||!Object.is(i,n.v)){let e;++n.n,u(i)&&(null==(e=l.get(i))?void 0:e[0])&&(e[0]=!1,e[1].forEach(e=>e()))}},S=(e,t)=>i((0,O(e)[14])(e,t)),x=(e,t,...r)=>{let o=O(e),n=o[12],a=o[13],i=o[16];try{return i(e,t,...r)}finally{a(e),n(e)}},A=(e,t,r)=>{let o=O(e),n=o[12],a=o[18],i=o[19],l=a(e,t).l;return l.add(r),n(e),()=>{l.delete(r),i(e,t),n(e)}},_=new WeakMap,O=e=>{let t=_.get(e);if((o.env?o.env.MODE:void 0)!=="production"&&!t)throw Error("Store must be created by buildStore to read its building blocks");return t};function R(...e){let t={get:e=>(0,O(t)[21])(t,e),set:(e,...r)=>(0,O(t)[22])(t,e,...r),sub:(e,r)=>(0,O(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},p,g,m,h,y,v,C,w,E,b,L,D,P,F,S,x,A,void 0].map((t,r)=>e[r]||t);return _.set(t,Object.freeze(r)),t}e.s(["INTERNAL_buildStoreRev2",()=>R,"INTERNAL_registerAbortHandler",()=>s],233338);let N={get url(){return`file://${e.P("node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]/node_modules/jotai/esm/vanilla.mjs")}`}},T=0;function j(e,t){let r=`atom${++T}`,o={toString(){return(N.env?N.env.MODE:void 0)!=="production"&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?o.read=e:(o.init=e,o.read=$,o.write=U),t&&(o.write=t),o}function $(e){return e(this)}function U(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function k(){return t?t():R()}function M(){return r||(r=k(),(N.env?N.env.MODE:void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=r),globalThis.__JOTAI_DEFAULT_STORE__!==r&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),r}e.s(["atom",()=>j,"createStore",()=>k,"getDefaultStore",()=>M],751931)},475566,e=>{"use strict";var t=e.i(477716),r=e.i(751931),o=e.i(233338);let n={get url(){return`file://${e.P("node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]/node_modules/jotai/esm/react.mjs")}`}},a=(0,t.createContext)(void 0);function i(e){let o=(0,t.useContext)(a);return(null==e?void 0:e.store)||o||(0,r.getDefaultStore)()}function l({children:e,store:o}){let n=(0,t.useRef)(null);return o?(0,t.createElement)(a.Provider,{value:o},e):(null===n.current&&(n.current=(0,r.createStore)()),(0,t.createElement)(a.Provider,{value:n.current},e))}let c=e=>"function"==typeof(null==e?void 0:e.then),s=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},u=t.default.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw s(e),e}),d=new WeakMap,f=(e,t)=>{let r=d.get(e);return r||(r=new Promise((n,a)=>{let i=e,l=e=>t=>{i===e&&n(t)},s=e=>t=>{i===e&&a(t)},u=()=>{try{let e=t();c(e)?(d.set(e,r),i=e,e.then(l(e),s(e)),(0,o.INTERNAL_registerAbortHandler)(e,u)):n(e)}catch(e){a(e)}};e.then(l(e),s(e)),(0,o.INTERNAL_registerAbortHandler)(e,u)}),d.set(e,r)),r};function p(e,r){let{delay:o,unstable_promiseStatus:n=!t.default.use}=r||{},a=i(r),[[l,d,p],g]=(0,t.useReducer)(t=>{let r=a.get(e);return Object.is(t[0],r)&&t[1]===a&&t[2]===e?t:[r,a,e]},void 0,()=>[a.get(e),a,e]),m=l;if((d!==a||p!==e)&&(g(),m=a.get(e)),(0,t.useEffect)(()=>{let t=a.sub(e,()=>{if(n)try{let t=a.get(e);c(t)&&s(f(t,()=>a.get(e)))}catch(e){}"number"==typeof o?setTimeout(g,o):g()});return g(),t},[a,e,o,n]),(0,t.useDebugValue)(m),c(m)){let t=f(m,()=>a.get(e));return n&&s(t),u(t)}return m}function g(e,r){let o=i(r);return(0,t.useCallback)((...t)=>{if((n.env?n.env.MODE:void 0)!=="production"&&!("write"in e))throw Error("not writable atom");return o.set(e,...t)},[o,e])}function m(e,t){return[p(e,t),g(e,t)]}e.s(["Provider",()=>l,"useAtom",()=>m,"useAtomValue",()=>p,"useSetAtom",()=>g,"useStore",()=>i])},375570,(e,t,r)=>{t.exports=e.r(135997)},240058,e=>{"use strict";var t=e.i(297647),r=e.i(87328);e.s(["default",0,({mpa:e=!0,...o})=>{if(e){let{href:e,children:r,...n}=o;return(0,t.jsx)("a",{href:e.toString(),...n,children:r})}return(0,t.jsx)(r.default,{...o})}])},632137,e=>{"use strict";var t=e.i(7284);let r=(0,e.i(923191).extendTailwindMerge)({extend:{classGroups:{"font-size":[{text:["xxs"]}]},theme:{color:[{brand:["100","200","300","400","dark","light"]}]}}});function o(...e){return r((0,t.clsx)(e))}e.s(["cn",()=>o])},235318,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o={assign:function(){return c},searchParamsToUrlQuery:function(){return a},urlQueryToSearchParams:function(){return l}};for(var n in o)Object.defineProperty(r,n,{enumerable:!0,get:o[n]});function a(e){let t={};for(let[r,o]of e.entries()){let e=t[r];void 0===e?t[r]=o:Array.isArray(e)?e.push(o):t[r]=[e,o]}return t}function i(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,o]of Object.entries(e))if(Array.isArray(o))for(let e of o)t.append(r,i(e));else t.set(r,i(o));return t}function c(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,o]of r.entries())e.append(t,o)}return e}},609609,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o={formatUrl:function(){return l},formatWithValidation:function(){return s},urlObjectKeys:function(){return c}};for(var n in o)Object.defineProperty(r,n,{enumerable:!0,get:o[n]});let a=e.r(744066)._(e.r(235318)),i=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,o=e.protocol||"",n=e.pathname||"",l=e.hash||"",c=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(s+=":"+e.port)),c&&"object"==typeof c&&(c=String(a.urlQueryToSearchParams(c)));let u=e.search||c&&`?${c}`||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||i.test(o))&&!1!==s?(s="//"+(s||""),n&&"/"!==n[0]&&(n="/"+n)):s||(s=""),l&&"#"!==l[0]&&(l="#"+l),u&&"?"!==u[0]&&(u="?"+u),n=n.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${o}${s}${n}${u}${l}`}let c=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return l(e)}},522848,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return I},NormalizeError:function(){return v},PageNotFoundError:function(){return C},SP:function(){return m},ST:function(){return h},WEB_VITALS:function(){return a},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return s},getURL:function(){return u},isAbsoluteUrl:function(){return c},isResSent:function(){return f},loadGetInitialProps:function(){return g},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return E}};for(var n in o)Object.defineProperty(r,n,{enumerable:!0,get:o[n]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...o)=>(r||(r=!0,t=e(...o)),t)}let l=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,c=e=>l.test(e);function s(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=s();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 p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function g(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await g(t.Component,t.ctx)}:{};let o=await e.getInitialProps(t);if(r&&f(r))return o;if(!o)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${o}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return o}let m="u">typeof performance,h=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class v extends Error{}class C extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class I 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 E(e){return JSON.stringify({message:e.message,stack:e.stack})}},99064,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let o=e.r(522848),n=e.r(21757);function a(e){if(!(0,o.isAbsoluteUrl)(e))return!0;try{let t=(0,o.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,n.hasBasePath)(r.pathname)}catch(e){return!1}}},338938,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return o}});let o=e=>{}},87328,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o={default:function(){return y},useLinkStatus:function(){return C}};for(var n in o)Object.defineProperty(r,n,{enumerable:!0,get:o[n]});let a=e.r(744066),i=e.r(297647),l=a._(e.r(477716)),c=e.r(609609),s=e.r(116064),u=e.r(20104),d=e.r(522848),f=e.r(243529);e.r(976174);let p=e.r(4952),g=e.r(99064),m=e.r(94791);function h(e){return"string"==typeof e?e:(0,c.formatUrl)(e)}function y(t){var r;let o,n,a,[c,y]=(0,l.useOptimistic)(p.IDLE_LINK_STATUS),C=(0,l.useRef)(null),{href:I,as:w,children:E,prefetch:b=null,passHref:L,replace:D,shallow:P,scroll:F,onClick:S,onMouseEnter:x,onTouchStart:A,legacyBehavior:_=!1,onNavigate:O,ref:R,unstable_dynamicOnHover:N,...T}=t;o=E,_&&("string"==typeof o||"number"==typeof o)&&(o=(0,i.jsx)("a",{children:o}));let j=l.default.useContext(s.AppRouterContext),$=!1!==b,U=!1!==b?null===(r=b)||"auto"===r?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,{href:k,as:M}=l.default.useMemo(()=>{let e=h(I);return{href:e,as:w?h(w):e}},[I,w]);if(_){if(o?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`` 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 `` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});n=l.default.Children.only(o)}let G=_?n&&"object"==typeof n&&n.ref:R,z=l.default.useCallback(e=>(null!==j&&(C.current=(0,p.mountLinkInstance)(e,k,j,U,$,y)),()=>{C.current&&((0,p.unmountLinkForCurrentNavigation)(C.current),C.current=null),(0,p.unmountPrefetchableInstance)(e)}),[$,k,j,U,y]),B={ref:(0,u.useMergedRef)(z,G),onClick(t){_||"function"!=typeof S||S(t),_&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(t),!j||t.defaultPrevented||function(t,r,o,n,a,i,c){if("u">typeof window){let s,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((s=t.currentTarget.getAttribute("target"))&&"_self"!==s||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),c){let e=!1;if(c({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(89105);l.default.startTransition(()=>{d(o||r,a?"replace":"push",i??!0,n.current)})}}(t,k,M,C,D,F,O)},onMouseEnter(e){_||"function"!=typeof x||x(e),_&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),j&&$&&(0,p.onNavigationIntent)(e.currentTarget,!0===N)},onTouchStart:function(e){_||"function"!=typeof A||A(e),_&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),j&&$&&(0,p.onNavigationIntent)(e.currentTarget,!0===N)}};return(0,d.isAbsoluteUrl)(M)?B.href=M:_&&!L&&("a"!==n.type||"href"in n.props)||(B.href=(0,f.addBasePath)(M)),a=_?l.default.cloneElement(n,B):(0,i.jsx)("a",{...T,...B,children:o}),(0,i.jsx)(v.Provider,{value:c,children:a})}e.r(338938);let v=(0,l.createContext)(p.IDLE_LINK_STATUS),C=()=>(0,l.useContext)(v);("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)}]);