"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5839],{51:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RequestHandler=void 0;let n=r(166),a=r(6308);class o{setTokens(e){this.tokens=e}getTokens(){return this.tokens}clearTokens(){this.tokens=null}isAuthenticated(){var e;return!!(null==(e=this.tokens)?void 0:e.accessToken)}async request(e){var t;let{method:r,path:o,params:i,data:s,headers:c={},requiresAuth:l=!1,timeout:d=this.timeout}=e;if(l&&!this.isAuthenticated())throw new n.AuthenticationError("Authentication required");let u="".concat(this.baseUrl).concat(o.startsWith("/")?o:"/".concat(o));if(i&&Object.keys(i).length>0){let e=new URLSearchParams;for(let[t,r]of Object.entries(i))void 0!==r&&e.append(t,String(r));let t=e.toString();t&&(u+="?".concat(t))}let p={...this.defaultHeaders,...c};(null==(t=this.tokens)?void 0:t.accessToken)&&(p.Authorization="Bearer ".concat(this.tokens.accessToken));let h={method:r,headers:p,credentials:"include"};void 0!==s&&(r===a.HttpMethod.POST||r===a.HttpMethod.PUT)&&(h.body=JSON.stringify(s));try{let e=new AbortController,t=setTimeout(()=>e.abort(),d);h.signal=e.signal;let r=await fetch(u,h);if(clearTimeout(t),r.ok||await this.handleErrorResponse(r),204===r.status)return{};let n=r.headers.get("content-type");if(n&&n.includes("application/json"))return await r.json();return await r.text()}catch(e){if(e instanceof n.APIError)throw e;if(e instanceof DOMException&&"AbortError"===e.name)throw new n.APIError("Request timeout",408);throw new n.APIError("Network error: ".concat(e.message),0)}}async handleErrorResponse(e){let t;try{t=await e.json()}catch(r){t={message:e.statusText}}let r=t.message||"Unknown error",a=e.status;switch(a){case 400:throw new n.ValidationError(r,t);case 401:throw this.clearTokens(),new n.AuthenticationError(r);case 404:throw new n.NotFoundError(r);case 429:throw new n.RateLimitError(r);case 500:case 502:case 503:case 504:throw new n.ServerError(r,a);default:throw new n.APIError(r,a,t)}}constructor(e){this.tokens=null,this.baseUrl=e.baseUrl.endsWith("/")?e.baseUrl.slice(0,-1):e.baseUrl,this.timeout=e.timeout||3e4,this.defaultHeaders={"Content-Type":"application/json",Accept:"application/json",...e.headers}}}t.RequestHandler=o},166:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ServerError=t.RateLimitError=t.ValidationError=t.NotFoundError=t.UnauthorizedError=t.AuthenticationError=t.APIError=t.UPSXError=void 0;class r extends Error{constructor(e){super(e),this.name="UPSXError",Object.setPrototypeOf(this,r.prototype)}}t.UPSXError=r;class n extends r{constructor(e,t,r){super(e),this.name="APIError",this.code=t,this.data=r,Object.setPrototypeOf(this,n.prototype)}}t.APIError=n;class a extends r{constructor(e){super(e),this.name="AuthenticationError",Object.setPrototypeOf(this,a.prototype)}}t.AuthenticationError=a;class o extends a{constructor(e="Authentication required"){super(e),this.name="UnauthorizedError",Object.setPrototypeOf(this,o.prototype)}}t.UnauthorizedError=o;class i extends n{constructor(e="Resource not found"){super(e,404),this.name="NotFoundError",Object.setPrototypeOf(this,i.prototype)}}t.NotFoundError=i;class s extends n{constructor(e="Invalid request",t){super(e,400,t),this.name="ValidationError",Object.setPrototypeOf(this,s.prototype)}}t.ValidationError=s;class c extends n{constructor(e="Rate limit exceeded"){super(e,429),this.name="RateLimitError",Object.setPrototypeOf(this,c.prototype)}}t.RateLimitError=c;class l extends n{constructor(e="Server error",t=500){super(e,t),this.name="ServerError",Object.setPrototypeOf(this,l.prototype)}}t.ServerError=l},928:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},1355:(e,t,r)=>{r.d(t,{B:()=>n});let n=(0,r(27472).eU)({timestamp:new Date().toISOString()})},1409:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},3491:(e,t,r)=>{r.d(t,{A:()=>c,_:()=>s});var n=r(19948),a=r(91712),o=r(68093),i=r(24484);let s=(0,a.forwardRef)((e,t)=>{let{src:r,alt:a,shadow:s,rounded:c=!0,className:l,wrapperClassName:d,width:u=320,height:p=180,quality:h,priority:m=!1,loading:y,objectFit:g="contain",fill:f=!1,sizes:v,...P}=e;if(!r)return null;let w=(0,n.jsx)(o.default,{ref:t,src:r,alt:a,width:f?void 0:u,height:f?void 0:p,quality:h,priority:m,loading:y,fill:f,sizes:v,className:(0,i.cn)({"shadow-md":s,"rounded-lg":c,"object-contain":"contain"===g,"object-cover":"cover"===g,"object-fill":"fill"===g,"object-none":"none"===g,"object-scale-down":"scale-down"===g,"h-auto w-full":!f},l),...P});return f?(0,n.jsx)("div",{className:(0,i.cn)("relative h-full w-full",d),children:w}):w});s.displayName="Image";let c=s},6139:(e,t,r)=>{t.h=function e(t){let r=(0,n.default)("".concat(o,":").concat(t)),i=(0,n.default)("".concat(o,":").concat(t,":error")),s=(0,n.default)("".concat(o,":").concat(t,":warn")),c=(0,n.default)("".concat(o,":").concat(t,":lifecycle"));i.log=a;let l=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a1?t-1:0),a=1;a1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;ne("".concat(t,":").concat(r)),l};let n=function(e){return e&&e.__esModule?e:{default:e}}(r(53283));n.default.log=console.info.bind(console);let a=console.error.bind(console),o="wx-next"},6306:(e,t,r)=>{r.d(t,{r:()=>n});function n(e){let{displayName:t,adminDistrict:r,adminDistrictCode:n,countryCode:a,country:o,disputedArea:i=!0,localeCountryCode:s="US",separator:c=", "}=e,l=[];return t&&l.push(t),"IL"===s||(n?l.push(n):r&&l.push(r)),a!==s&&!i&&o&&l.push(o),l.join(c)}},6308:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.HttpMethod=void 0,function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e.PATCH="PATCH"}(r||(t.HttpMethod=r={}))},6482:(e,t,r)=>{r.d(t,{Bu:()=>d,Uo:()=>o,cl:()=>a,lr:()=>l,tE:()=>n,xP:()=>u});let n="Imperial",a="Metric",o="Hybrid",i={code:"e",name:n,temp:"F",speed:"mph",distance:"mi",accumulation:"in",precip:"in",pressure:"in"},s={code:"m",name:a,temp:"C",speed:"km/h",distance:"km",accumulation:"cm",precip:"mm",pressure:"mb"},c={code:"h",name:o,temp:"C",speed:"mph",distance:"mi",accumulation:"in",precip:"in",pressure:"mb"},l="unitOfMeasurement";function d(e){switch(null==e?void 0:e.toLowerCase()){case"e":case"f":return i;case"m":case"c":return s;case"h":return c;default:return null}}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(e.toLowerCase()){case"imperial":case"Imperial":return i;case"metric":case"Metric":return s;case"hybrid":case"Hybrid":return c;default:return null}}},6681:(e,t,r)=>{r.d(t,{i:()=>y,s:()=>g});var n,a=r(152),o=r(55184),i=r(64035),s=r(97387),c=r(27472);let l=(null==(n=(0,r(58475).getCookie)("twc-location-geocode"))?void 0:n.toString())||null,d=(0,c.eU)(l);var u=r(18303),p=r(49399),h=r(26299),m=r(34158),y=function(e){return e.PREFER_FAVORITES="preferFavorites",e.PREFER_RECENT="preferRecent",e}({});function g(e){var t;let r,{location:n,fallbackOrder:c="preferFavorites"}=e,l=(0,m.useParams)(),y=null==l?void 0:l.locale,g=(0,a.md)(p.G),f=(0,a.md)(i.nU),v=(0,a.md)(s.I6),P=(0,a.md)(d),w=Array.isArray(f)&&f.length>0?null==(t=f[0])?void 0:t.coordinate:null,E=Array.isArray(v)&&v.length>0?v[0]:null,H="preferRecent"===c,I=e=>(0,u.PT)(e,y),{data:q,error:A,isLoading:T}=(0,o.Ay)(!n&&w?["location-data",w]:null,()=>w?I(w):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{data:C,error:M,isLoading:D}=(0,o.Ay)(!n&&!w&&E&&H?["recent-location-data",E]:null,()=>E?(0,u.$M)(E,y):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{data:b,error:L,isLoading:S}=(0,o.Ay)(n||w||"preferFavorites"!==c&&(!H||E)||!P?null:["geoip-location-data",P],()=>P?I(P):null,{revalidateOnFocus:!1,dedupingInterval:3e5});return n?r=n:g?r=g:q&&w?r=(0,h.I)(q):A&&w?(console.error("Error fetching favorite location data:",A),r={displayName:"Favorite Location",adminDistrict:"",geocode:w,placeId:"unknown"}):H&&C&&E?r=(0,h.I)(C):H&&M&&E?(console.error("Error fetching recent location data:",M),r={displayName:"Recent Location",adminDistrict:"",geocode:"",placeId:E}):b&&P?r=(0,h.I)(b):L&&P&&(console.error("Error fetching geoip location data:",L),r={displayName:"Unknown Location",adminDistrict:"",geocode:P,placeId:"unknown",city:"",countryCode:"",adminDistrictCode:""}),{effectiveLocation:r,isLocationLoading:T||!!H&&D||S,locationError:A||(H?M:null)||L}}},6688:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},7177:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getLocationSearchUrlConfig=function(e){let{query:t,language:r,locationType:n,countryCode:a,adminDistrictCode:o}=e,i={query:t,language:r,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return n&&(i.locationType=n),a&&(i.countryCode=a),o&&(i.adminDistrictCode=o),{host:"api.weather.com",protocol:"https",pathname:"/v3/location/search",query:i}},t.getLocationPointUrlConfig=function(e){let{geocode:t,locId:r,placeId:n,language:a}=e,o={language:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return t&&(o.geocode=t),r&&(o.locId=r),n&&(o.placeid=n),{host:"api.weather.com",protocol:"https",pathname:"/v3/location/point",query:o}}},7626:(e,t,r)=>{r.d(t,{u:()=>n});let n=(0,r(27472).eU)("")},11981:(e,t,r)=>{r.d(t,{X:()=>n});let n=(0,r(27472).eU)("en-US")},13278:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionAPI=void 0;let n=r(6308);class a{async updateActivity(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/activity",data:e})}async updateAddress(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/address",data:e})}async createMultiple(e){return this.requestHandler.request({method:n.HttpMethod.PUT,path:"/subscription/create",data:e})}async create(e){return this.requestHandler.request({method:n.HttpMethod.POST,path:"/subscription/create",data:e})}async delete(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/subscription/delete",params:{subids:e}})}async updateEvent(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/event",data:e})}async find(e){let t={};return e.endpointId&&(t.endpointid=e.endpointId),e.address&&(t.address=e.address),e.userId&&(t.userid=e.userId),this.requestHandler.request({method:n.HttpMethod.GET,path:"/subscription/find",params:t})}async findAll(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/subscription/findall",params:{endpoints:e}})}async updateLocation(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/location",data:e})}async update(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/update",data:e})}async updateAll(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/updateall",data:e})}async deleteAll(e){let t={};e.endpoints&&(t.endpoints=e.endpoints),e.userId&&(t.userid=e.userId),await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/subscriptions",params:t})}constructor(e){this.requestHandler=e}}t.SubscriptionAPI=a},18303:(e,t,r)=>{t.$M=s,t.PT=c;let n=r(7177),a=r(82737),o=r(54714),i=r(42273);async function s(e,t){let r=(0,a.urlFrom)((0,n.getLocationPointUrlConfig)({placeId:e,language:t})),i=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,o.handleFetchResponse)(i)}async function c(e,t){let r=(0,a.urlFrom)((0,n.getLocationPointUrlConfig)({geocode:e,language:t})),i=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,o.handleFetchResponse)(i)}},20181:(e,t,r)=>{var n=Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},a=function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(99502),t),a(r(81880),t),a(r(53530),t),a(r(77507),t),a(r(30230),t),a(r(90456),t),a(r(31681),t),a(r(13278),t)},23733:(e,t,r)=>{r.d(t,{J:()=>s,U:()=>i});var n=r(54286),a=r(6482),o=r(23313);let i=(0,n.tG)("userProfile",null),s=(0,n.tG)("userPreferences",{userID:(0,o.A)(),unit:a.tE,locations:[],locale:"en_US",mapSettings:{animationSpeed:1,autoplay:!0,opacity:100,roadOverlay:"default",style:"default"},favoriteWeatherComponents:[],favoriteActivityComponents:[],dashboard:[]})},24484:(e,t,r)=>{r.d(t,{cn:()=>o});var n=r(71857);let a=(0,r(48337).zu)({extend:{classGroups:{"font-size":[{text:["xxs"]}]},theme:{color:[{brand:["100","200","300","400","dark","light"]}]}}});function o(){for(var e=arguments.length,t=Array(e),r=0;r{r.d(t,{I:()=>a});var n=r(6306);function a(e){return{displayName:e.location.displayName,adminDistrict:e.location.adminDistrict,geocode:function(e){if(!e||!e.includes(","))return e;let t=e.split(",");if(2!==t.length)return e;let[r,n]=t,a=parseFloat(r||"0").toFixed(2),o=parseFloat(n||"0").toFixed(2);return"".concat(a,",").concat(o)}("".concat(e.location.latitude,",").concat(e.location.longitude)),placeId:e.location.placeId,city:e.location.city,countryCode:e.location.countryCode,adminDistrictCode:e.location.adminDistrictCode||"",presentationName:(0,n.r)(e.location)}}},30230:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PreferenceAPI=void 0;let n=r(6308);class a{async getPreference(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/preference"})}async updatePreference(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/preference",data:e})}async createPreference(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/preference",data:e})}async getWUPreference(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/preference/wu"})}async updateWUPreference(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/preference/wu",data:e})}async createWUPreference(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/preference/wu",data:e})}async getUserPreference(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/preference/".concat(e)})}async deleteUserPreference(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/preference/".concat(e)})}async createUserWUPreference(e,t){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/preference/wu/".concat(e),data:t})}constructor(e){this.requestHandler=e}}t.PreferenceAPI=a},30651:(e,t,r)=>{r.d(t,{_:()=>n});let n=new(r(75750)).UPSXClient({baseUrl:"https://upsx.weather.com"})},31681:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentationAPI=void 0;let n=r(6308);class a{async getEndpointSegmentation(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/segmentation/endpoint"})}async updateEndpointSegmentation(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/segmentation/endpoint",data:e})}async deleteEndpointSegmentation(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/endpoint",data:{keys:e}})}async getEndpointMetrics(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/segmentation/metrics/endpoint"})}async getUserSegmentation(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/segmentation/user"})}async updateUserSegmentation(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/segmentation/user",data:e})}async deleteUserSegmentation(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/user",data:{keys:e}})}async getUserMetrics(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/segmentation/metrics/user"})}async getBulkSegmentation(e,t){let r={};return e&&(r.endpointIDs=e),t&&(r.userID=t),this.requestHandler.request({method:n.HttpMethod.GET,path:"/segmentation/bulk",params:r})}async deleteBulkSegmentation(e,t){let r={};e&&(r.endpointIDs=e),t&&(r.userID=t),await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/bulk",params:r})}async updateBulkSegmentation(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/segmentation/analytics/bulk",data:e})}async updateKeyOnCondition(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/segmentation/analytics/condition",data:e})}async deleteKeyOnCondition(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/analytics/condition",data:e})}async deleteKeyForIds(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/analytics/key",data:e})}async deleteKeyForAll(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/analytics/key/all",data:{key:e}})}constructor(e){this.requestHandler=e}}t.SegmentationAPI=a},31907:(e,t,r)=>{var n=Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},a=function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(6688),t),a(r(93710),t),a(r(48644),t),a(r(1409),t),a(r(99729),t),a(r(69344),t),a(r(74810),t),a(r(95139),t),a(r(928),t)},36286:(e,t,r)=>{r.d(t,{m:()=>n});let n=(0,r(27472).eU)()},41741:(e,t,r)=>{r.d(t,{K:()=>i});var n=r(152),a=r(91712),o=r(1355);function i(){let[e,t]=(0,n.fp)(o.B),r=(0,a.useCallback)((e,r)=>{t(t=>{let n=(null==t?void 0:t[e])||{},a="object"==typeof r&&null!==r&&"object"==typeof n?{...n,...r}:r;return{...t,[e]:a}})},[t]),i=(0,a.useCallback)((e,r)=>{t(t=>{let n=t||{timestamp:new Date().toISOString()},a=n.components||{};if(null===r){let t={...a};return delete t[e],{...n,components:t}}return{...n,components:{...a,[e]:r}}})},[t]),s=(0,a.useCallback)(e=>{r("page",e)},[r]),c=(0,a.useCallback)(e=>{r("route",e)},[r]),l=(0,a.useCallback)(e=>{Object.entries(e).forEach(e=>{let[t,n]=e;n&&r(t,n)})},[r]);return{debugData:e,updateSection:r,updateComponentData:i,setPageData:s,clearAllDebugData:(0,a.useCallback)(()=>{t({timestamp:new Date().toISOString()})},[t]),updateRouteInfo:c,updatePageDebug:l}}},42273:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrInvalidCanonicalCityID=t.ErrInvalidPlaceID=t.ErrInvalidPartialLocID9=t.ErrInvalidPartialLocID1=t.ErrInvalidUSZipCode=t.ErrInvalidLocID=t.ErrInvalidLatOrLong=t.ErrInvalidGeocode=t.ErrInvalid=t.LocationError=t.RegExpCanonicalCityID=t.RegExpPlaceID=t.RegExpPartialLocID9=t.RegExpPartialLocID1=t.RegExpUSZipCode=t.RegExpLocID=t.RegExpGeocode=t.LocationTypeMap=t.LocationType=void 0,t.valid=a,t.normalized=function(e,t){switch(t){case r.Geocode:return i(e);case r.LocID:return c(e);case r.USZipCode:return l(e);case r.PartialLocID1:return d(e);case r.PartialLocID9:return u(e);case r.PlaceID:return p(e);case r.CanonicalCityID:return h(e);default:return e}},t.testLocId=function(e){for(let t of o)if(t.regex.test(e))return{type:t.type,locId:t.normalize(e)};return null},t.normalizedGeocode=i,t.parseLatLonFromGeocode=function(e){let r=i(e).split(",");if(2!==r.length||!r[0]||!r[1])throw t.ErrInvalidGeocode;let n=parseFloat(r[0].trim()),a=parseFloat(r[1].trim());if(isNaN(n)||isNaN(a))throw t.ErrInvalidGeocode;return[n,a]},t.normalizeLatOrLong=s,t.normalizedLocID=c,t.normalizedUSZipCode=l,t.normalizedPartialLocID1=d,t.normalizedPartialLocID9=u,t.normalizedPlaceID=p,t.normalizedCanonicalCityID=h,t.geocodeFromLatLong=function(e,t){return"".concat(e.toFixed(2),",").concat(t.toFixed(2))},function(e){e[e.Geocode=0]="Geocode",e[e.LocID=1]="LocID",e[e.USZipCode=2]="USZipCode",e[e.PartialLocID1=3]="PartialLocID1",e[e.PartialLocID9=4]="PartialLocID9",e[e.PlaceID=5]="PlaceID",e[e.CanonicalCityID=6]="CanonicalCityID"}(r||(t.LocationType=r={})),t.LocationTypeMap={Geocode:"geocode",LocID:"locId",USZipCode:"locId",PartialLocID1:"locId",PartialLocID9:"locId",PlaceID:"placeId",CanonicalCityID:"canonicalCityId"},t.RegExpGeocode=/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/,t.RegExpLocID=/^([^+|^:]*):(1|4|5|9|11|13|16|17|19|21|25|27):\w{2}$/,t.RegExpUSZipCode=/^\d{5}(:\d)?(\w{2})?$/,t.RegExpPartialLocID1=/^\w{4}\d{4}(:1)?$/,t.RegExpPartialLocID9=/^([a-zA-Z]{3}):.*$/,t.RegExpPlaceID=/^([0-9a-f]){32,}$/,t.RegExpCanonicalCityID=t.RegExpPlaceID;class n extends Error{constructor(e){super(e),this.name="LocationError"}}function a(e,n){switch(n){case r.Geocode:return t.RegExpGeocode.test(e)&&"0.00,0.00"!==e;case r.LocID:return t.RegExpLocID.test(e);case r.USZipCode:return t.RegExpUSZipCode.test(e);case r.PartialLocID1:return t.RegExpPartialLocID1.test(e);case r.PartialLocID9:return t.RegExpPartialLocID9.test(e);case r.PlaceID:return t.RegExpPlaceID.test(e);case r.CanonicalCityID:return t.RegExpCanonicalCityID.test(e);default:return!1}}t.LocationError=n,t.ErrInvalid=new n("location: invalid location"),t.ErrInvalidGeocode=new n("location: invalid location: invalid geocode"),t.ErrInvalidLatOrLong=new n("location: invalid location: invalid latitude or longitude"),t.ErrInvalidLocID=new n("location: invalid location: invalid locid"),t.ErrInvalidUSZipCode=new n("location: invalid location: invalid US zip code"),t.ErrInvalidPartialLocID1=new n("location: invalid location: invalid partial locid type 1"),t.ErrInvalidPartialLocID9=new n("location: invalid location: invalid partial locid type 9"),t.ErrInvalidPlaceID=new n("location: invalid location: invalid placeid"),t.ErrInvalidCanonicalCityID=new n("location: invalid location: invalid canonical city ID");let o=[{regex:t.RegExpGeocode,type:t.LocationTypeMap.Geocode,normalize:i},{regex:t.RegExpLocID,type:t.LocationTypeMap.LocID,normalize:c},{regex:t.RegExpUSZipCode,type:t.LocationTypeMap.USZipCode,normalize:l},{regex:t.RegExpPartialLocID1,type:t.LocationTypeMap.PartialLocID1,normalize:d},{regex:t.RegExpPartialLocID9,type:t.LocationTypeMap.PartialLocID9,normalize:u},{regex:t.RegExpPlaceID,type:t.LocationTypeMap.PlaceID,normalize:p},{regex:t.RegExpCanonicalCityID,type:t.LocationTypeMap.CanonicalCityID,normalize:h}];function i(e){if(""===e||!a(e,r.Geocode))throw t.ErrInvalidGeocode;let n=e.split(",");if(2!==n.length)throw t.ErrInvalidGeocode;try{for(let e=0;e{r.d(t,{C:()=>l,Hg:()=>d,SZ:()=>u,Wy:()=>c,kB:()=>s,mj:()=>p});var n=r(33949),a=r(23313);let o="wxu-metrics-session",i="new-metrics-session",s=()=>{let e=(0,n.getCookie)(o);if(!e)return null;let[t="",r="",a=""]=e.split(":"),i=parseInt(r,10);return{sessionId:t,sessionStartTime:i,pageCount:parseInt(a,10)}},c=e=>{let t=(null==e?void 0:e.sessionId)||(0,a.A)(),r=(null==e?void 0:e.sessionStartTime)||new Date().getTime(),i=(null==e?void 0:e.pageCount)||0,s="".concat(t,":").concat(r,":").concat(i);(0,n.setCookie)(o,decodeURIComponent(s),{domain:".weather.com",path:"/",maxAge:1800})},l=()=>{let e=s();e&&c({...e,pageCount:(null==e?void 0:e.pageCount)+1})},d=()=>{localStorage.setItem(i,"true")},u=()=>{localStorage.removeItem(i)},p=()=>localStorage.getItem(i)},48644:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},48886:(e,t,r)=>{r.d(t,{C:()=>n});var n=function(e){return e[e.none=-1]="none",e[e.standard=0]="standard",e[e.premium=1]="premium",e[e.adFree=2]="adFree",e[e.premiumWithAd=3]="premiumWithAd",e}({})},49399:(e,t,r)=>{r.d(t,{G:()=>n});let n=(0,r(27472).eU)()},53530:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AssetsAPI=void 0;let n=r(6308);class a{async getAssets(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/assets"})}async getUserAssets(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/assets/".concat(e)})}async deleteUserAssets(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/assets/".concat(e)})}async createWUAssets(e,t){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/assets/wu/".concat(e),data:t})}async updateWUAssets(e,t){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/assets/wu/".concat(e),data:t})}async createWUAssetsMigration(e,t){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/assets/migration/".concat(e),data:t})}constructor(e){this.requestHandler=e}}t.AssetsAPI=a},54714:(e,t)=>{async function r(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 ".concat(e.status,")"));throw Error("Unhandled error (status ".concat(e.status,")"))}try{if(204===e.status)return null;return await e.json()}catch(e){throw Error("Invalid JSON response: ".concat(e.message))}}Object.defineProperty(t,"__esModule",{value:!0}),t.handleFetchResponse=r},55027:(e,t,r)=>{var n=r(24688).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.AuthAPI=void 0;let a=r(166),o=r(6308);class i{async login(e){try{let t=await this.requestHandler.request({method:o.HttpMethod.POST,path:"/login",data:e,requiresAuth:!1}),r={accessToken:"access_token_from_cookies",idToken:"id_token_from_cookies",refreshToken:"refresh_token_from_cookies",expiresAt:Date.now()+36e5};return this.requestHandler.setTokens(r),t}catch(e){if(e instanceof a.AuthenticationError)throw e;throw new a.AuthenticationError("Login failed: ".concat(e.message))}}async logout(){try{await this.requestHandler.request({method:o.HttpMethod.POST,path:"/logout"})}finally{this.requestHandler.clearTokens()}}async getMachineToken(e){try{let t=n.from("".concat(e.clientId,":").concat(e.clientSecret)).toString("base64"),r=await this.requestHandler.request({method:o.HttpMethod.POST,path:"/oauth/token",requiresAuth:!1,headers:{Authorization:"Basic ".concat(t)}}),a={accessToken:r.access_token,expiresAt:Date.now()+1e3*r.expires_in};return this.requestHandler.setTokens(a),r}catch(e){throw new a.AuthenticationError("Machine authentication failed: ".concat(e.message))}}async refreshToken(){try{let e=await this.requestHandler.request({method:o.HttpMethod.GET,path:"/refresh",requiresAuth:!1}),t={accessToken:"new_access_token_from_cookies",idToken:"new_id_token_from_cookies",refreshToken:"new_refresh_token_from_cookies",expiresAt:Date.now()+36e5};return this.requestHandler.setTokens(t),e}catch(e){throw this.requestHandler.clearTokens(),new a.AuthenticationError("Token refresh failed: ".concat(e.message))}}async register(e){try{return await this.requestHandler.request({method:o.HttpMethod.POST,path:"/register",data:e,requiresAuth:!1})}catch(e){throw new a.AuthenticationError("Registration failed: ".concat(e.message))}}async verifyEmail(e,t){try{return await this.requestHandler.request({method:o.HttpMethod.PUT,path:"/register/verify/email",data:{email:e,otp:t},requiresAuth:!1})}catch(e){throw new a.AuthenticationError("Email verification failed: ".concat(e.message))}}constructor(e){this.requestHandler=e}}t.AuthAPI=i},61305:(e,t,r)=>{r.d(t,{X:()=>n});let n=e=>{if(!e)return"";let t="[";return Array.isArray(e)&&e.forEach((r,n)=>{t+="'".concat(r,"'").concat(n!==e.length-1?",":"")}),t+="]"}},63305:(e,t,r)=>{r.d(t,{i:()=>a});var n=r(61710);let a=()=>!(0,n.Ub)({query:"(min-width: 768px)"})},64035:(e,t,r)=>{r.d(t,{nU:()=>o});var n=r(27472),a=r(23733);let o=(0,r(21334).I)(a.J,e=>e.prop("locations")||[]);(0,n.eU)(e=>{var t;return(null==(t=e(a.J))?void 0:t.locations)||[]}),(0,n.eU)(e=>{let t=e(o);return(null==t?void 0:t.find(e=>0===e.position))||(null==t?void 0:t[0])||null}),(0,n.eU)(e=>{var t;return(null==(t=e(o))?void 0:t.length)||!1})},69344:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},72185:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(152),a=r(92629);let o=()=>(0,n.md)(a.$)},74810:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},75750:(e,t,r)=>{var n=Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},a=function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationError=t.APIError=t.UPSXClient=void 0;let o=r(93393);Object.defineProperty(t,"UPSXClient",{enumerable:!0,get:function(){return o.UPSXClient}});let i=r(166);Object.defineProperty(t,"APIError",{enumerable:!0,get:function(){return i.APIError}}),Object.defineProperty(t,"AuthenticationError",{enumerable:!0,get:function(){return i.AuthenticationError}}),a(r(6308),t),a(r(31907),t),a(r(20181),t)},76361:(e,t,r)=>{r.d(t,{AI:()=>f,EY:()=>d,Hd:()=>y,IA:()=>c,Js:()=>g,dM:()=>s,mT:()=>v,mn:()=>p,pW:()=>P,t9:()=>h,tm:()=>m,wo:()=>l});var n=r(48886),a=r(80531),o=r(33949),i=r(61305);function s(){var e;return!!a.A&&null!=(e=navigator)&&!!e.cookieEnabled}let c=e=>{let t=[];return(null==e?void 0:e.v1)&&t.push(e.v1),(null==e?void 0:e.v2)&&t.push(e.v2),(null==e?void 0:e.v3)&&t.push(e.v3),(0,i.X)(t)};function l(e){var t,r,n;let a=function(e){var t,r;let n=e,a=null==e||null==(t=e.indexOf)?void 0:t.call(e,"?"),o=null==e||null==(r=e.indexOf)?void 0:r.call(e,"#");return a>-1?n=n.substring(0,a):o>-1&&(n=n.substring(0,o)),n}(e);if("/index.html"===(a=null==(t=a)||null==(r=t.replace)?void 0:r.call(t,/\/l\/[^/]+/gi,"/l"))||"/"===a||""===a)a="/";else{let e=(null==a?void 0:a.split("/"))||[],t=e.length-1,r=null!=(n=e[t])?n:"";"news"!==(t>0?e[t-1]:"")&&(r.match(/[A-Z]/)||r.match(/[0-9]/)||r.match(/[@#$%&!*:]/)||""===r)&&e.pop(),a=e.join("/")}return a}let d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/");return(null==t?void 0:t[t.length-1])===""&&t.pop(),t.slice(0,t.length-1).join("/")},u=()=>a.A?Object.fromEntries(new URLSearchParams(window.location.search.replace("+","%2B")).entries()):{},p=()=>{var e;return(null==(e=u())?void 0:e.traffic_source)||null},h=()=>(0,o.getCookie)("twc-partner")||null,m=()=>{let e=u(),t=null,r=!0,n=[];return e.cm_ven&&n.push(e.cm_ven),e.cm_date&&n.push(e.cm_date),e.cm_cat&&n.push(e.cm_cat),e.cm_pla&&n.push(e.cm_pla),e.cm_ite&&n.push(e.cm_ite),n.length>0?t=n.join(":"):(t=(0,o.getCookie)("campaign-values")||null,r=!1),r&&t&&(0,o.setCookie)("campaign-values",t,{domain:".weather.com",path:"/",maxAge:1800}),t},y=()=>{var e;let t=(null==(e=u())?void 0:e.tpcc)||(0,o.getCookie)("tpcc")||null;return t&&(0,o.setCookie)("tpcc",t,{path:"/",domain:".weather.com",maxAge:1800}),t},g=e=>Object.keys(e).every(t=>void 0!==e[t]);function f(e){switch(e){case n.C.premium:return"premium";case n.C.standard:return"standard";case n.C.premiumWithAd:return"premiumWithAd";case n.C.adFree:return"adFree";case n.C.none:default:return"none"}}function v(e){if(!e)return{};let t=e.split("."),r=(Array.isArray(t)&&t.length>=2&&t[1]||"").replace("-","+").replace("_","/");try{return JSON.parse(window.atob(r))||{}}catch(e){return{}}}let P=["SUN","MON","TUE","WED","THU","FRI","SAT"]},77507:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConsentAPI=void 0;let n=r(6308);class a{async getConsent(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/consent",params:{endpointID:e}})}async updateConsent(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/consent",data:e})}async createConsent(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/consent",data:e})}async deleteConsent(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/consent",params:{endpointID:e}})}async getUserConsent(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/consent/user"})}async updateUserConsent(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/consent/user",data:e})}async createUserConsent(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/consent/user",data:e})}async deleteUserConsent(){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/consent/user"})}async getBulkConsent(e,t){let r={};return e&&(r.endpointIDs=e),t&&(r.userID=t),this.requestHandler.request({method:n.HttpMethod.GET,path:"/consent/bulk",params:r})}async deleteBulkConsent(e,t){let r={};e&&(r.endpointIDs=e),t&&(r.userID=t),await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/consent/bulk",params:r})}async migrateUserConsent(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/consent/user/migration",data:e})}async updateUserConsentWebhook(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/consent/user/update",data:e})}constructor(e){this.requestHandler=e}}t.ConsentAPI=a},78702:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var n=r(19948),a=r(14157),o=r.n(a);r(91712);let i=e=>{let{mpa:t=!0,...r}=e;if(t){let{href:e,children:t,...a}=r;return(0,n.jsx)("a",{href:e.toString(),...a,children:t})}return(0,n.jsx)(o(),{...r})}},79591:(e,t,r)=>{r.d(t,{J:()=>y});var n=r(91712),a=r(152),o=r(55184),i=r(61887),s=r(3176),c=r(58475),l=r(95732),d=r(23733),u=r(30651),p=r(97387),h=r(48886),m=r(23313);function y(){var e,t;let[r,y]=(0,n.useState)(null),[g,f]=(0,a.fp)(d.U),[v,P]=(0,a.fp)(p.pX),[w,E]=(0,a.fp)(p.lr),{refresh:H}=(0,l.b)(),I=parseInt((null==(e=(0,c.useGetCookie)()("twc-user"))?void 0:e.toString())||h.C.none.toString()),q=parseInt((null==(t=(0,c.getCookie)("twc-user"))?void 0:t.toString())||h.C.none.toString()),A=(0,c.getCookie)("ANON_C"),T=A||v||(0,m.A)();A||(0,c.setCookie)("ANON_C",T,{path:"/",domain:".weather.com",secure:!0}),(!v||v&&A&&v!==A)&&P(T),!g&&w&&f(w);let C=I>h.C.none?"upsx/id":null,M=(0,s.A)(C,()=>u._.account.getAccountId(),{shouldRetryOnError:e=>"APIError"!==e.name}),{userID:D=""}=(null==M?void 0:M.data)||{};(0,o.Ay)(!g&&D?"upsx/account":null,()=>u._.account.getAccount(),{shouldRetryOnError:e=>"APIError"!==e.name,onSuccess:e=>{f(e),E(e)}});let b=async()=>{try{return await u._.auth.logout(),(0,i.j)(e=>"string"==typeof e&&e.startsWith("/upsx"),void 0,{revalidate:!1}),f(null),E(null),(0,c.deleteCookie)("twc-user",{domain:".weather.com"}),H({mpa:!0}),!0}catch(e){return y(e instanceof Error?e:Error("Failed to log out")),!1}};return{error:r,DISCONNECTED_user:{isUserLoggedIn:q>h.C.none,subscriptionTier:q,isUserPremium:q>h.C.standard},user:{userID:D,isUserLoggedIn:I>h.C.none,subscriptionTier:I,isUserPremium:I>h.C.standard},userProfile:g,logout:b}}},80531:(e,t,r)=>{r.d(t,{A:()=>n});let n=!!window.document&&!!window.document.createElement},81880:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ApplicationsAPI=void 0;let n=r(6308);class a{async getApplications(e,t){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/applications",params:{appId:e,endpointId:t}})}async createApplication(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/applications",data:e})}async addPartner(e,t,r){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/applications/app-id/".concat(e,"/endpoint-id/").concat(t),data:r})}async deletePartner(e,t,r){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/applications/partner/app-id/".concat(e,"/endpoint-id/").concat(t),params:{partner:r}})}async updateLastActivity(e,t,r){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/applications/activity/user/".concat(e,"/app-id/").concat(t,"/endpoint-id/").concat(r)})}async getUserApplications(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/applications/user/".concat(e)})}async createUserApplication(e,t){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/applications/user/".concat(e),data:t})}async deleteUserApplications(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/applications/user/".concat(e)})}async deleteUserApplication(e,t,r){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/applications/user/".concat(e,"/app-id/").concat(t,"/endpoint-id/").concat(r)})}async getUserEndpointIds(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/applications/endpoint-ids",params:{userID:e}})}constructor(e){this.requestHandler=e}}t.ApplicationsAPI=a},81999:(e,t,r)=>{r.d(t,{Ay:()=>c,EY:()=>s});var n=r(19948),a=r(91712),o=r(34025),i=r(24484);let s=a.forwardRef((e,t)=>{let{className:r,variant:a,elementType:o,lineClamp:s,color:c,children:d,...u}=e,p=o||function(e){let{variant:t}=e;switch(t){case"Display.XL":case"Display.L":case"Title.XL":return"h1";case"Display.M":case"Display.S":case"Title.L":case"Title.M":return"h2";case"Title.S":return"h3";default:return"p"}}({variant:a});return(0,n.jsx)(p,{className:(0,i.cn)(l({variant:a,color:c,lineClamp:s,className:r})),ref:t,...u,children:d})});s.displayName="Text";let c=s,l=(0,o.F)("",{variants:{variant:{"Display.XL":["text-6xl","leading-relaxed","tracking-tighter"],"Display.L":["text-5xl","leading-normal","tracking-tighter","font-medium"],"Display.M":["text-4xl","leading-tight","tracking-tight","font-medium"],"Display.S":["text-xl","leading-relaxed","tracking-tight","font-medium"],"Title.XL":["text-4xl","leading-snug","tracking-tight","font-semibold"],"Title.L":["text-3xl","leading-tight","tracking-tight","font-medium"],"Title.M":["text-2xl","leading-tight","tracking-tight","font-semibold"],"Title.S":["text-xl","leading-tight","tracking-tight","font-semibold"],"Body.L":["text-lg","leading-looser","tracking-normal","font-medium"],"Body.L.Bold":["text-lg","leading-looser","tracking-normal","font-bold"],"Body.M":["text-base","leading-looser","tracking-tight","font-medium"],"Body.M.Bold":["text-base","leading-looser","tracking-tight","font-bold"],"Body.S":["text-sm","leading-normal","tracking-tight","font-medium"],"Body.S.Bold":["text-sm","leading-normal","tracking-normal","font-bold"],"Caption.M":["text-xs","leading-normal","tracking-normal","font-medium"],"Caption.S":["text-xxs","leading-loose","tracking-tight","font-medium"]},color:{primary:"text-gray-900",secondary:"text-gray-500",default:"text-gray-900",disabled:"text-gray-400",placeholder:"text-gray-600",brandDark:"text-brand-dark",brandLight:"text-brand-light",inverse:"text-white",error:"text-[var(--color-alert-severe)]"},lineClamp:{1:"line-clamp-1",2:"line-clamp-2",3:"line-clamp-3",4:"line-clamp-4"}},defaultVariants:{variant:"Body.M",color:"default"}})},82737:(e,t)=>{function r(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))void 0!==n&&t.append(r,n);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.queryStringToSearchParams=r,t.urlFrom=function(e){let{host:t,...n}=e;if(!t)throw Error("Host is missing");let a=new URL("https://".concat(t));return Object.assign(a,{...n,hostname:t}),n.query&&(a.search=r(n.query).toString()),a}},88113:(e,t,r)=>{function n(e){let{src:t,width:r,quality:n}=e;if(!t||-1===t.indexOf("w-x.co"))return t;let a=new URL(t);return a.searchParams.set("format","auto"),a.searchParams.set("optimize","medium"),a.searchParams.set("width",r.toString()),n&&a.searchParams.set("quality",n.toString()),a.href}r.r(t),r.d(t,{default:()=>n})},90456:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseAPI=void 0;let n=r(6308);class a{async getPurchases(e){let t={};return e&&(t.platform=e),this.requestHandler.request({method:n.HttpMethod.GET,path:"/purchase/",params:t})}async createPurchase(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/purchase/app/user",data:e})}async getPurchaseRecord(e,t,r){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/purchase/record",params:{platform:e,vendor:t,product:r}})}async getPurchaseToken(e){let t={};return e&&(t.platform=e),this.requestHandler.request({method:n.HttpMethod.GET,path:"/purchase/token",params:t})}async updatePurchase(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/purchase",data:e})}async createPurchaseTransaction(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/purchase",data:e})}async getUserPurchases(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/purchase/".concat(e)})}async deleteUserPurchases(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/purchase/".concat(e)})}async getUserPurchaseSnapshot(e,t){let r={};return t&&(r.platform=t),this.requestHandler.request({method:n.HttpMethod.GET,path:"/purchase/".concat(e,"/getSnapshot"),params:r})}async getUserPurchaseRecord(e,t,r,a){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/purchase/".concat(e,"/record"),params:{platform:t,vendor:r,product:a}})}constructor(e){this.requestHandler=e}}t.PurchaseAPI=a},92629:(e,t,r)=>{r.d(t,{$:()=>n});let n=(0,r(27472).eU)()},93393:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UPSXClient=void 0;let n=r(99502),a=r(81880),o=r(53530),i=r(55027),s=r(77507),c=r(30230),l=r(90456),d=r(31681),u=r(13278),p=r(51);class h{constructor(e){this.requestHandler=new p.RequestHandler(e),this.auth=new i.AuthAPI(this.requestHandler),this.account=new n.AccountAPI(this.requestHandler),this.applications=new a.ApplicationsAPI(this.requestHandler),this.assets=new o.AssetsAPI(this.requestHandler),this.consent=new s.ConsentAPI(this.requestHandler),this.preference=new c.PreferenceAPI(this.requestHandler),this.purchase=new l.PurchaseAPI(this.requestHandler),this.segmentation=new d.SegmentationAPI(this.requestHandler),this.subscription=new u.SubscriptionAPI(this.requestHandler)}}t.UPSXClient=h},93710:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},95139:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},95732:(e,t,r)=>{r.d(t,{b:()=>a});var n=r(34158);let a=()=>{let e=(0,n.useRouter)();return{navigate:function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mpa:n=!0,replace:a=!1}=r;n?a?window.location.replace(t):window.location.href=t:a?e.replace(t):e.push(t)},refresh:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mpa:r=!0}=t;r?window.location.reload():e.refresh()},router:e}}},97387:(e,t,r)=>{r.d(t,{I6:()=>c,P9:()=>s,YA:()=>l,lr:()=>u,pX:()=>i});var n=r(21334),a=r(54286);let o=(0,a.tG)("wxu-web/keyval:user",{},void 0,{getOnInit:!0}),i=(0,n.I)(o,e=>e.prop("anonymousId")),s=(0,n.I)(o,e=>e.prop("userHasLoggedInBefore")||!1),c=(0,n.I)(o,e=>e.prop("recentLocations")||[]),l=(0,n.I)(o,e=>e.prop("userPreference")||{}),d=(0,a.tG)("wxu-web/keyval:user-account",{},void 0,{getOnInit:!0}),u=(0,n.I)(d,e=>e.prop("userAccountResponse")||null)},99502:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AccountAPI=void 0;let n=r(6308);class a{async getAccount(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/account"})}async updateAccount(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/account",data:e})}async getAccountId(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/account/id"})}async changeEmail(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/email/change",data:{email:e}})}async changePassword(e,t){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/password/change",data:{old_password:e,new_password:t}})}async forgotPassword(e,t,r){let a={};t&&(a.reset_password_url=t),r&&(a.platform=r),await this.requestHandler.request({method:n.HttpMethod.POST,path:"/password/forgotten",data:{email:e},params:a,requiresAuth:!1})}async resetPassword(e,t,r,a){let o={};a&&(o.platform=a),await this.requestHandler.request({method:n.HttpMethod.POST,path:"/password/reset",data:{email:e,otp:t,password:r},params:o,requiresAuth:!1})}async getUserId(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/user/id"})}async getUserInfo(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/user/id/email"})}async getUserAccountById(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/users/".concat(e,"/account")})}async getUserAccountByEmail(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/users/email/".concat(encodeURIComponent(e),"/account")})}async updateAccountLockStatus(e,t){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/users/".concat(e,"/account/lockStatus"),data:{accountLockStatus:t}})}constructor(e){this.requestHandler=e}}t.AccountAPI=a},99580:(e,t,r)=>{r.d(t,{N:()=>m});var n=r(152),a=r(48537),o=r(76361),i=r(36286),s=r(91712),c=r(11981),l=r(7626),d=r(33949),u=r(34158),p=r(80531),h=r(6681);let m=()=>{var e,t,r,m,y,g,f,v,P,w,E;let H=(0,o.tm)(),I=(0,o.Hd)(),q=(0,o.t9)(),A=(0,o.dM)(),T=(0,d.getCookie)("twc-location-country"),C=(0,d.getCookie)("twc-location-region"),M=(0,a.kB)(),D=(null==M?void 0:M.pageCount)?(null==M?void 0:M.pageCount)+1:1,b=(null==M?void 0:M.sessionId)||"",L=(null==M?void 0:M.sessionStartTime)||0,S=(0,n.md)(i.m)||"",U=(0,n.md)(c.X),k=(0,n.md)(l.u),x=(0,u.usePathname)(),O="article"===S?(0,o.EY)(x):(0,o.wo)(x),_=(0,o.mn)(),j="undefined"!=typeof document?document.referrer:null,G=(0,h.s)({}),R=null==G||null==(e=G.effectiveLocation)?void 0:e.displayName,F=null==G||null==(t=G.effectiveLocation)?void 0:t.adminDistrict,N=null==G||null==(r=G.effectiveLocation)?void 0:r.adminDistrictCode,W=new Date,z=W.getHours(),B=W.getDay(),Z=o.pW[B]||null,X=(0,d.getCookie)("twc-privacy"),$=p.A&&null!=(f=null==(m=window.DprSdk)?void 0:m.getCcpaSaleOptInString())?f:"",V=p.A&&null!=(v=null==(y=window.DprSdk)?void 0:y.getGdprConsentOptInsString())?v:"",K=!!p.A&&null!=(P=null==(g=window.navigator)?void 0:g.globalPrivacyControl)&&P,J=null!=(w=null==V?void 0:V.includes("functional-technology"))&&w,Q=null!=(E=null==V?void 0:V.includes("geographically-relevant-advertising"))&&E;return(0,s.useMemo)(()=>({campaign:H,tpcc:I,cookiesEnabled:A,physicalCountry:T,physicalState:C,pageId:S,partner:q,locale:U,deviceClass:k,url:O,linkReferral:_,referrer:j,pageCount:D,sessionId:b,sessionStartTime:L,schemaVersion:"nextgen",hourOfDay:z,dayOfWeek:Z,wlocCity:R,wlocCountry:F,wlocState:N,privProducts:$,priv:V,gpcSignalOptOut:K,functionalTechnologies:J,geographicallyRelevantAds:Q,regime:X}),[H,I,A,T,C,S,q,U,O,_,j,D,b,L,z,Z,R,F,N,V,$,K,J,Q,X])}},99729:(e,t)=>{var r,n,a,o,i,s,c,l,d,u,p,h,m,y,g,f;Object.defineProperty(t,"__esModule",{value:!0}),t.LocationType=t.Role=t.PermissionType=t.ActivityCondition=t.WigetPropType=t.WigetPropPeriod=t.WigetPropCondition=t.WidgetType=t.StrikeTypeCode=t.GeometryType=t.InterruptionLevel=t.Weekday=t.Platform=t.Unit=t.ActivityType=t.AlertType=void 0,function(e){e[e.News=1]="News",e[e.AirQuality=2]="AirQuality",e[e.Avalanche=3]="Avalanche",e[e.Coastal=4]="Coastal",e[e.Miscellaneous=5]="Miscellaneous",e[e.RainFlood=6]="RainFlood",e[e.Temperature=7]="Temperature",e[e.Thunderstorm=8]="Thunderstorm",e[e.Visibility=9]="Visibility",e[e.Wind=10]="Wind",e[e.Lightning=11]="Lightning",e[e.Precipitation=12]="Precipitation",e[e.ExtremeCold=13]="ExtremeCold",e[e.ExtremeHeat=14]="ExtremeHeat",e[e.WinterPrecipitation=15]="WinterPrecipitation",e[e.HeavySnow=16]="HeavySnow",e[e.DenseFog=17]="DenseFog",e[e.HeavyRain=18]="HeavyRain",e[e.HighWind=19]="HighWind",e[e.Flux=20]="Flux",e[e.IcyForecast=21]="IcyForecast",e[e.Pollen=22]="Pollen",e[e.Flu=23]="Flu",e[e.DailyPrecip=24]="DailyPrecip",e[e.WebEmail=25]="WebEmail",e[e.DailyDigest=26]="DailyDigest",e[e.HeavyThunderstorm=27]="HeavyThunderstorm",e[e.Custom=28]="Custom",e[e.Activity=29]="Activity"}(r||(t.AlertType=r={})),function(e){e[e.Running=1]="Running",e[e.Golfing=2]="Golfing",e[e.Hiking=3]="Hiking",e[e.Gardening=4]="Gardening",e[e.Tennis=5]="Tennis",e[e.Cycling=6]="Cycling"}(n||(t.ActivityType=n={})),function(e){e[e.English=1]="English",e[e.Metric=2]="Metric",e[e.Hybrid=3]="Hybrid"}(a||(t.Unit=a={})),function(e){e[e.Apple=1]="Apple",e[e.Android=2]="Android",e[e.Http=3]="Http",e[e.Web=4]="Web",e[e.Email=5]="Email",e[e.Sms=6]="Sms"}(o||(t.Platform=o={})),function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(i||(t.Weekday=i={})),function(e){e[e.Passive=0]="Passive",e[e.Active=1]="Active",e[e.TimeSensitive=2]="TimeSensitive",e[e.Critical=3]="Critical"}(s||(t.InterruptionLevel=s={})),function(e){e.GeometryPoint="Point",e.GeometryMultiPoint="MultiPoint",e.GeometryPolygon="Polygon",e.GeometryMultiPolygon="MultiPolygon",e.GeometryLineString="LineString",e.GeometryMultiLineString="MultiLineString",e.GeometryCollection="GeometryCollection",e.Feature="Feature",e.FeatureCollection="FeatureCollection"}(c||(t.GeometryType=c={})),function(e){e[e.CloudToGround=0]="CloudToGround",e[e.CloudToCloud=1]="CloudToCloud"}(l||(t.StrikeTypeCode=l={})),function(e){e.WXLocation="wxlocation",e.WXComparison="wxcomparison"}(d||(t.WidgetType=d={})),function(e){e.Humidity="humidity",e.Wind="wind",e.Pressure="pressure",e.Visibility="visibility",e.DewPoint="dewPoint",e.UV="uv",e.AirQuality="airQuality",e.Temperature="temperature",e.TemperatureFeelsLike="temperatureFeelsLike",e.Precip="precip"}(u||(t.WigetPropCondition=u={})),function(e){e.Daily="daily",e.Hourly="hourly"}(p||(t.WigetPropPeriod=p={})),function(e){e.Forecast="forecast",e.Historical="historical"}(h||(t.WigetPropType=h={})),function(e){e[e.Poor=1]="Poor",e[e.Fair=2]="Fair",e[e.Good=3]="Good"}(m||(t.ActivityCondition=m={})),function(e){e[e.EndpointLookup=1]="EndpointLookup",e[e.LocationLookup=2]="LocationLookup",e[e.UserLookup=3]="UserLookup",e[e.NotificationMetric=4]="NotificationMetric",e[e.ClickMetric=5]="ClickMetric",e[e.AlertMap=6]="AlertMap",e[e.AlertNews=7]="AlertNews",e[e.AlertSegment=8]="AlertSegment",e[e.NotificationApps=9]="NotificationApps",e[e.NotificationTemplates=10]="NotificationTemplates",e[e.NotificationHeadlines=11]="NotificationHeadlines",e[e.NotificationDateFormats=12]="NotificationDateFormats",e[e.NotificationTranslations=13]="NotificationTranslations",e[e.Permissions=14]="Permissions",e[e.AgentActivity=15]="AgentActivity",e[e.DeleteSubscriptions=16]="DeleteSubscriptions",e[e.AlertSent=17]="AlertSent",e[e.Culture=18]="Culture",e[e.SendNotification=19]="SendNotification",e[e.Headlines=20]="Headlines",e[e.Templates=21]="Templates",e[e.UpdateAccountLockStatus=22]="UpdateAccountLockStatus"}(y||(t.PermissionType=y={})),function(e){e[e.Admin=1]="Admin",e[e.User=2]="User",e[e.UnAuthorized=3]="UnAuthorized",e[e.AppAgent=4]="AppAgent"}(g||(t.Role=g={})),function(e){e[e.Globe=0]="Globe",e[e.PollenID=1]="PollenID",e[e.TideID=2]="TideID",e[e.ZoneID=3]="ZoneID",e[e.PostalKey=4]="PostalKey",e[e.CountyID=5]="CountyID",e[e.CityID=6]="CityID",e[e.AdminDistrict=7]="AdminDistrict",e[e.DmaID=8]="DmaID",e[e.TimeZone=9]="TimeZone",e[e.CountryCode=10]="CountryCode"}(f||(t.LocationType=f={}))}}]);