-
Notifications
You must be signed in to change notification settings - Fork 0
/
bundle.js
1 lines (1 loc) · 59.7 KB
/
bundle.js
1
(()=>{"use strict";var t={208:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(601),a=n.n(r),i=n(314),o=n.n(i)()(a());o.push([t.id,'* {border: 0px solid rgba(255, 0, 0, 0.199);}\n\n:root {\n --primary-color: rgb(63, 97, 45); \n --main-txt: rgb(228, 228, 228); \n --neautral-txt: rgb(53, 53, 53); \n --border-color: rgb(202, 202, 202); \n --complementary-color: rgb(205, 80, 75); \n --analogous-color-1: rgba(0, 0, 0, 0.185); \n --analogous-color-2: rgb(213, 245, 253); \n --neutral-color-1: rgb(240, 240, 230); \n --neutral-color-2: rgb(220, 220, 220); \n --accent-color-1: rgb(200, 160, 70); \n --accent-color-2: rgb(250, 245, 225); \n}\n\nbody {\n height: 120vh;\n margin: 0%;\n max-width: 100%;\n display: grid;\n grid-template-columns: repeat(4, 25%);\n grid-template-rows: repeat(20, 5%);\n font-family: "Nunito Sans", sans-serif;\n}\n\n#headercontainer {\n grid-row: 1/3;\n grid-column: span 4;\n background-color: var(--primary-color);\n font-family: "Nunito Sans", sans-serif;\n font-weight: 800;\n font-style: italic;\n font-size: 24px;\n display: flex;\n flex: 1;\n align-items: center;\n justify-content:space-around;\n color: var(--main-txt);\n}\n\n#logoContainer {\n display: flex;\n margin-top: 0.5%;\n}\n\n\n#iconLogo {\n height: 45px;\n width: 45px;\n border-radius: 10%;\n}\n\n#logotxt {\n display: flex;\n align-items: flex-end;\n color: var(--analogous-color-2);\n}\n\n#currentWeatherDiv {\n grid-row: 3/10;\n grid-column: span 4;\n display: grid;\n grid-template-columns: repeat(10, 10%);\n grid-template-rows: repeat(10, 10%);\n background-color: var(--neutral-color-1);\n}\n\n#dayOfContainer {\n grid-column: 1/4;\n grid-row: span 10;\n display: grid;\n grid-template-columns: repeat(10,10%);\n grid-template-rows: repeat(10,10%);\n}\n\n#gifDiv {\n position: relative;\n grid-column: 4/11;\n grid-row: span 10;\n}\n\n@media (max-width:1300px) {\n \n #dayOfContainer {\n grid-column: span 10;\n grid-row: 1/6;\n display: grid;\n grid-template-columns: repeat(10,10%);\n grid-template-rows: repeat(10,10%);\n }\n #dayDescription {\n grid-row: 9/11;\n grid-column: span 10;\n display: flex;\n flex-direction: column;\n flex: 2;\n justify-content: center;\n align-items: center;\n margin-top: 2%;\n }\n\n #gifDiv {\n position: relative;\n grid-column: span 10;\n grid-row: 6/11;\n margin-top: 2%;\n }\n}\n\n#conditionAndLocation {\n grid-row: 1/3;\n grid-column: span 10;\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n text-wrap:wrap;\n border-bottom: 1px var(--border-color) solid;\n font-weight: 600;\n}\n\n#tempContainer {\n grid-row: 3/9;\n grid-column:span 10;\n display: flex;\n border-bottom: 1px var(--border-color) solid;\n color: var(--neautral-txt);\n}\n\n#tempLow, #tempHigh {\n flex: 2;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 40px;\n font-weight: 600;\n}\n\n#tempLow {\n border-right: 1px var(--border-color) solid; \n}\n\n#tempHigh {\n border-left: 1px var(--border-color) solid; \n}\n\n#tempMiddleSection {\n flex: 2;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n font-size: 40px;\n font-weight: 600;\n}\n\n\n#dayDescription {\n grid-row: 9/11;\n grid-column: span 10;\n display: flex;\n flex-direction: column;\n flex: 2;\n justify-content: center;\n align-items: center;\n font-weight: 700;\n}\n\n#dayDescriptionTxt {\n font-weight: 500;\n font-size: small;\n}\n\n#dayOfDetailsContainer {\n grid-column: span 4;\n grid-row: 10/11;\n display: flex;\n flex: 1;\n justify-content: space-evenly;\n align-items: center;\n letter-spacing: 1px; \n font-style: italic;\n background-color: var(--accent-color-1);\n}\n\n#dayOfForecastContainer {\n grid-row: 11/15;\n grid-column: span 4;\n display:flex;\n background:var(--primary-color);\n overflow-y:hidden;\n overflow-x:auto;\n gap: 3%; \n padding: 10px; \n white-space: nowrap; \n}\n\n.scroll {\n margin: 4px, 4px;\n padding: 4px;\n background-color: var(--primary-color);\n}\n\n.measurementContainerHour {\n display: flex;\n flex-direction: column;\n flex: 1;\n justify-content: space-evenly;\n border-left: 1px var(--analogous-color-1) solid;\n border-right: 1px var(--analogous-color-1) solid;\n\n}\n\n#hourContainer, #precipContainer, #iconContainer, #currentTempContainer {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n#precipContainer {\n height: 5%;\n font-size: small;\n color: rgb(1, 42, 156);\n font-weight: 600;\n}\n\n#weekForecastContainer {\n margin: 10%;\n margin-top: 2%;\n grid-column: span 4;\n grid-row: span 6;\n display: flex;\n flex: 1;\n flex-direction: column;\n}\n\n.measurementContainerWeekDay {\n display: grid;\n grid-template-columns: repeat(14,1fr);\n align-items: center;\n}\n\n#measurementWeekHeader {\n display: grid;\n grid-template-columns: repeat(14,1fr);\n border-bottom: 1px var(--border-color) solid;\n}\n\n.dayStatHeader {\n width: fit-content;\n grid-column: span 2;\n right: 2%;\n}\n\n.dayStat {\n width: fit-content;\n grid-column: span 2;\n}\n\n\n#recordDiv {\n position: absolute;\n display: flex;\n align-items: center;\n color: whitesmoke;\n background-color: rgba(0, 0, 0, 0.541);\n font-family: "Nunito Sans", sans-serif;\n font-size: 12px;\n font-weight: 500;\n width: 100%;\n height: 10%;\n}\n\n#recordGif {\n height: 24px;\n}\n\n#bgGif {\n width: 100%;\n height: 100%;\n}\n\n#bgGifDiv {\n position: absolute;\n display: flex;\n flex: 1;\n width: 100%;\n height: 100%;\n}\n\n#forumcontainer {\n grid-row: 18;\n width: 30%;\n height: 45%;\n display: flex;\n}\n\n#weatherForum {\n grid-row: 8/9;\n display: flex;\n flex: 1;\n}\n\n#input, #submitbtn {\n padding: 10px;\n}\n\n#inputContainer {\n display: flex;\n flex: 1;\n}\n\n#locationInput {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n display: flex;\n flex: 1;\n background-color: var(--neutral-color-1);\n \n}\n\ninput[type="text"] {\n font-size: 18px;\n font-family: "Nunito Sans", sans-serif;\n}\n\ninput:focus {\n outline: none; \n}\n\n#submitbtn {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n display: flex;\n flex: 1;\n justify-content: center;\n align-items: center;\n background-color: var(--accent-color-1);\n height: 100%;\n color: var(--accent-color-2);\n font-size: 14px;\n font-weight: 500;\n}\n\n#submitbtn:hover {\n cursor: pointer;\n}\n\n#logoContainer:hover, #currentWeatherDiv:hover, #dayOfForecastContainer:hover, #weekForecastContainer:hover, #dayOfDetailsContainer:hover {\n cursor: default;\n}\n',""]);const s=o},314:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,a,i){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(o[c]=!0)}for(var d=0;d<t.length;d++){var u=[].concat(t[d]);r&&o[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),e.push(u))}},e}},601:t=>{t.exports=function(t){return t[1]}},72:t=>{var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var i={},o=[],s=0;s<t.length;s++){var c=t[s],d=r.base?c[0]+r.base:c[0],u=i[d]||0,l="".concat(d," ").concat(u);i[d]=u+1;var h=n(l),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==h)e[h].references++,e[h].updater(f);else{var m=a(f,r);r.byIndex=s,e.splice(s,0,{identifier:l,updater:m,references:1})}o.push(l)}return o}function a(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,a){var i=r(t=t||[],a=a||{});return function(t){t=t||[];for(var o=0;o<i.length;o++){var s=n(i[o]);e[s].references--}for(var c=r(t,a),d=0;d<i.length;d++){var u=n(i[d]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}i=c}}},659:t=>{var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},56:(t,e,n)=>{t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},825:t=>{t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var a=void 0!==n.layer;a&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,a&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},113:t=>{t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}}},e={};function n(r){var a=e[r];if(void 0!==a)return a.exports;var i=e[r]={id:r,exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t;n.g.importScripts&&(t=n.g.location+"");var e=n.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");if(r.length)for(var a=r.length-1;a>-1&&(!t||!/^http(s?):/.test(t));)t=r[a--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=t})(),n.nc=void 0;var r=n(72),a=n.n(r),i=n(825),o=n.n(i),s=n(659),c=n.n(s),d=n(56),u=n.n(d),l=n(540),h=n.n(l),f=n(113),m=n.n(f),p=n(208),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=o(),g.insertStyleElement=h(),a()(p.A,g),p.A&&p.A.locals&&p.A.locals;const w=n.p+"3db5d5b984b392e5c108.png",y=n.p+"bc50f3d9d6ff56ce988d.png",b=n.p+"957f2f53440a45ab8009.png",v=n.p+"8bea60f0d46669b41c51.png",x=n.p+"4978c32b7a950b200a48.png",C=n.p+"88d7f95a470038d29670.png",k=n.p+"967cc409c1807a01ae5d.gif",T=n.p+"787c16111e93b2ae655f.gif",D=n.p+"069906ee535d5dc5d475.gif",M=n.p+"8e2336b91e44381c66b3.gif",S=n.p+"7d14177b077c220aacff.gif",E=n.p+"21c2e98112e9c493c5e9.gif",H=n.p+"adfc4ddb4427e7613b96.gif",P=n.p+"d7611e89ab7e68158c88.gif",q=n.p+"ce4eb32eaed3ef4a4cae.gif",L=n.p+"4c7505c2b5b2d891fb68.gif",O=n.p+"aa317a995560eec6d217.gif",N=n.p+"221a48e0d24f5686e98c.gif",W=n.p+"b5718a9d238c34f232d0.gif",Y=n.p+"3dc32c1c40916e690c19.gif",F=n.p+"5e459661fdfe885cca6c.svg",I=n.p+"e2ee1327119fc35fa95e.gif",A=n.p+"dce3f5e7e7d2c7e342ff.svg",j=n.p+"3be1e2a1569fa9b0bbc6.svg",Q=n.p+"19ff3c30164844769f3c.svg",G=n.p+"a8183a992545bbb02f27.svg",R=n.p+"523a54b86f32a04f4415.svg",B=n.p+"24f9a4741fe33f66bc0d.svg",X=n.p+"213f9a41fb1665620980.svg",z=n.p+"4e6a9fdeed0f295b3dfb.svg",$=n.p+"c33ef66438b2725bead5.svg",V=n.p+"6cf4adcd3e5042b69048.svg";function K(t){const e=Object.prototype.toString.call(t);return t instanceof Date||"object"==typeof t&&"[object Date]"===e?new t.constructor(+t):"number"==typeof t||"[object Number]"===e||"string"==typeof t||"[object String]"===e?new Date(t):new Date(NaN)}function J(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}function Z(t,e){const n=K(t);return isNaN(e)?J(t,NaN):e?(n.setDate(n.getDate()+e),n):n}const U={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function _(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const tt={date:_({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:_({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:_({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},et={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function nt(t){return(e,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):e;r=t.formattingValues[a]||t.formattingValues[e]}else{const e=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;r=t.values[a]||t.values[e]}return r[t.argumentCallback?t.argumentCallback(e):e]}}const rt={ordinalNumber:(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:nt({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:nt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:nt({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:nt({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:nt({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function at(t){return(e,n={})=>{const r=n.width,a=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(a);if(!i)return null;const o=i[0],s=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(s)?function(t){for(let e=0;e<t.length;e++)if(t[e].test(o))return e}(s):function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&t[e].test(o))return e}(s);let d;return d=t.valueCallback?t.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d,{value:d,rest:e.slice(o.length)}}}const it={ordinalNumber:(ot={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{const n=t.match(ot.matchPattern);if(!n)return null;const r=n[0],a=t.match(ot.parsePattern);if(!a)return null;let i=ot.valueCallback?ot.valueCallback(a[0]):a[0];return i=e.valueCallback?e.valueCallback(i):i,{value:i,rest:t.slice(r.length)}}),era:at({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:at({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:t=>t+1}),month:at({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:at({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:at({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var ot;const st={code:"en-US",formatDistance:(t,e,n)=>{let r;const a=U[t];return r="string"==typeof a?a:1===e?a.one:a.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:tt,formatRelative:(t,e,n,r)=>et[t],localize:rt,match:it,options:{weekStartsOn:0,firstWeekContainsDate:1}};let ct={};function dt(){return ct}Math.pow(10,8);const ut=6048e5,lt=864e5;function ht(t){const e=K(t);return e.setHours(0,0,0,0),e}function ft(t){const e=K(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function mt(t){const e=K(t);return function(t,e){const n=ht(t),r=ht(e),a=+n-ft(n),i=+r-ft(r);return Math.round((a-i)/lt)}(e,function(t){const e=K(t),n=J(t,0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}(e))+1}function pt(t,e){const n=dt(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=K(t),i=a.getDay(),o=(i<r?7:0)+i-r;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function gt(t){return pt(t,{weekStartsOn:1})}function wt(t){const e=K(t),n=e.getFullYear(),r=J(t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=gt(r),i=J(t,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const o=gt(i);return e.getTime()>=a.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function yt(t){const e=K(t),n=+gt(e)-+function(t){const e=wt(t),n=J(t,0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),gt(n)}(e);return Math.round(n/ut)+1}function bt(t,e){const n=K(t),r=n.getFullYear(),a=dt(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,o=J(t,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const s=pt(o,e),c=J(t,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const d=pt(c,e);return n.getTime()>=s.getTime()?r+1:n.getTime()>=d.getTime()?r:r-1}function vt(t,e){const n=K(t),r=+pt(n,e)-+function(t,e){const n=dt(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=bt(t,e),i=J(t,0);return i.setFullYear(a,0,r),i.setHours(0,0,0,0),pt(i,e)}(n,e);return Math.round(r/ut)+1}function xt(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const Ct={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return xt("yy"===e?r%100:r,e.length)},M(t,e){const n=t.getMonth();return"M"===e?String(n+1):xt(n+1,2)},d:(t,e)=>xt(t.getDate(),e.length),a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(t,e)=>xt(t.getHours()%12||12,e.length),H:(t,e)=>xt(t.getHours(),e.length),m:(t,e)=>xt(t.getMinutes(),e.length),s:(t,e)=>xt(t.getSeconds(),e.length),S(t,e){const n=e.length,r=t.getMilliseconds();return xt(Math.trunc(r*Math.pow(10,n-3)),e.length)}},kt={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){const e=t.getFullYear(),r=e>0?e:1-e;return n.ordinalNumber(r,{unit:"year"})}return Ct.y(t,e)},Y:function(t,e,n,r){const a=bt(t,r),i=a>0?a:1-a;return"YY"===e?xt(i%100,2):"Yo"===e?n.ordinalNumber(i,{unit:"year"}):xt(i,e.length)},R:function(t,e){return xt(wt(t),e.length)},u:function(t,e){return xt(t.getFullYear(),e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return xt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return xt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return Ct.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return xt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const a=vt(t,r);return"wo"===e?n.ordinalNumber(a,{unit:"week"}):xt(a,e.length)},I:function(t,e,n){const r=yt(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):xt(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getDate(),{unit:"date"}):Ct.d(t,e)},D:function(t,e,n){const r=mt(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):xt(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const a=t.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return xt(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const a=t.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return xt(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),a=0===r?7:r;switch(e){case"i":return String(a);case"ii":return xt(a,e.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let a;switch(a=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let a;switch(a=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",e){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),n.ordinalNumber(e,{unit:"hour"})}return Ct.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getHours(),{unit:"hour"}):Ct.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):xt(r,e.length)},k:function(t,e,n){let r=t.getHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):xt(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Ct.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Ct.s(t,e)},S:function(t,e){return Ct.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return Dt(r);case"XXXX":case"XX":return Mt(r);default:return Mt(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return Dt(r);case"xxxx":case"xx":return Mt(r);default:return Mt(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Tt(r,":");default:return"GMT"+Mt(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Tt(r,":");default:return"GMT"+Mt(r,":")}},t:function(t,e,n){return xt(Math.trunc(t.getTime()/1e3),e.length)},T:function(t,e,n){return xt(t.getTime(),e.length)}};function Tt(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=Math.trunc(r/60),i=r%60;return 0===i?n+String(a):n+String(a)+e+xt(i,2)}function Dt(t,e){return t%60==0?(t>0?"-":"+")+xt(Math.abs(t)/60,2):Mt(t,e)}function Mt(t,e=""){const n=t>0?"-":"+",r=Math.abs(t);return n+xt(Math.trunc(r/60),2)+e+xt(r%60,2)}const St=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},Et=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},Ht={p:Et,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return St(t,e);let i;switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",St(r,e)).replace("{{time}}",Et(a,e))}},Pt=/^D+$/,qt=/^Y+$/,Lt=["D","DD","YY","YYYY"];function Ot(t){return Pt.test(t)}function Nt(t){return qt.test(t)}function Wt(t,e,n){const r=function(t,e,n){const r="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(t,e,n);if(console.warn(r),Lt.includes(t))throw new RangeError(r)}function Yt(t){if(!(e=t,e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)||"number"==typeof t))return!1;var e;const n=K(t);return!isNaN(Number(n))}const Ft=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,It=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,At=/^'([^]*?)'?$/,jt=/''/g,Qt=/[a-zA-Z]/;function Gt(t,e,n){const r=dt(),a=n?.locale??r.locale??st,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=K(t);if(!Yt(s))throw new RangeError("Invalid time value");let c=e.match(It).map((t=>{const e=t[0];return"p"===e||"P"===e?(0,Ht[e])(t,a.formatLong):t})).join("").match(Ft).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:Rt(t)};if(kt[e])return{isToken:!0,value:t};if(e.match(Qt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));a.localize.preprocessor&&(c=a.localize.preprocessor(s,c));const d={firstWeekContainsDate:i,weekStartsOn:o,locale:a};return c.map((r=>{if(!r.isToken)return r.value;const i=r.value;return(!n?.useAdditionalWeekYearTokens&&Nt(i)||!n?.useAdditionalDayOfYearTokens&&Ot(i))&&Wt(i,e,String(t)),(0,kt[i[0]])(s,i,a.localize,d)})).join("")}function Rt(t){const e=t.match(At);return e?e[1].replace(jt,"'"):t}async function Bt(t){try{const e=await async function(t){const e=`https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/${t}/next7days?iconSet=icons2&key=F9HSLGSNS2LUJYXZA84KV9H2M`;try{const t=await fetch(e,{mode:"cors"});if(!t.ok)throw new Error(`Response status: ${t.status}`);const n=await t.json();return console.log(n),n}catch(t){console.log(t)}}(t);ze(e)}catch(t){console.log(t)}}function Xt(t,e,n,r){const a=parseInt(t.currentConditions.temp),i=t.currentConditions.conditions,o=t.description,s=parseInt(t.currentConditions.feelslike),c=t.currentConditions.icon,d=zt(t,e,n).getCurrentCondition(!0),u=parseInt(zt(t,e,n).getAvg()),l=parseInt(zt(t,e,n).getHigh()),h=parseInt(zt(t,e,n).getLow()),f=zt(t,e,n).getVisibility(),m=zt(t,e,n).getCloudCoverage(),p=zt(t,e,n).getRainChance(),g=zt(t,e,n).getRainChance(!0),w=parseInt(zt(t,e,n).getHumidity()),y=parseInt(zt(t,e,n).getHumidity(!0));return{currentTemp:a,currentFeel:s,forecastCondition:d,dayOfCondition:i,currentCondition:c,currentDescription:o,todayAvg:u,todayHigh:l,todayLow:h,currentVisibility:f,todayClouds:m,currentRain:p,currentHumidity:w,currentWind:zt(t,e,n).getWind(),currentSevere:zt(t,e,n).getSeverity(),dayOfHoursData:zt(t,e,n).getHoursData(r),dayOfRain:g,dayOfHumidity:y}}const zt=function(t,e,n){return{getCurrentCondition:function(e){let r=null;return r=e?t.days[n].icon:t.currentConditions.icon,r},getAvg:function(){let r=parseInt(t.days[n].temp);return e?(r=(r-30)/2,r):r},getHigh:function(){let r=parseInt(t.days[n].tempmax);return e?(r=(r-30)/2,r):r},getLow:function(){let r=parseInt(t.days[n].tempmin);return e?(r=(r-30)/2,r):r},getDayOfDescription:function(){return t.days[n].description},getVisibility:function(){return t.currentConditions.visibility},getCloudCoverage:function(){return t.currentConditions.cloudcover},getRainChance:function(e){let r=null;return r=e?t.days[n].precipprob:t.currentConditions.precipprob,r},getHumidity:function(e){let r=null;return r=e?t.days[n].humidity:t.currentConditions.humidity,r},getWind:function(e){let r=null;return r=e?t.days[n].windspeed:t.currentConditions.windspeed,r},getSeverity:function(){return t.days[n].severerisk},getFeelsLike:function(){return t.currentConditions.feelslike},getHoursData:function(e){return t.days[0].hours[e]}}};class $t{subPriority=0;validate(t,e){return!0}}class Vt extends $t{constructor(t,e,n,r,a){super(),this.value=t,this.validateValue=e,this.setValue=n,this.priority=r,a&&(this.subPriority=a)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,n){return this.setValue(t,e,this.value,n)}}class Kt extends $t{priority=10;subPriority=-1;set(t,e){return e.timestampIsSet?t:J(t,function(t,e){const n=e instanceof Date?J(e,0):new e(0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}(t,Date))}}class Jt{run(t,e,n,r){const a=this.parse(t,e,n,r);return a?{setter:new Vt(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(t,e,n){return!0}}const Zt=/^(1[0-2]|0?\d)/,Ut=/^(3[0-1]|[0-2]?\d)/,_t=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,te=/^(5[0-3]|[0-4]?\d)/,ee=/^(2[0-3]|[0-1]?\d)/,ne=/^(2[0-4]|[0-1]?\d)/,re=/^(1[0-1]|0?\d)/,ae=/^(1[0-2]|0?\d)/,ie=/^[0-5]?\d/,oe=/^[0-5]?\d/,se=/^\d/,ce=/^\d{1,2}/,de=/^\d{1,3}/,ue=/^\d{1,4}/,le=/^-?\d+/,he=/^-?\d/,fe=/^-?\d{1,2}/,me=/^-?\d{1,3}/,pe=/^-?\d{1,4}/,ge=/^([+-])(\d{2})(\d{2})?|Z/,we=/^([+-])(\d{2})(\d{2})|Z/,ye=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,be=/^([+-])(\d{2}):(\d{2})|Z/,ve=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function xe(t,e){return t?{value:e(t.value),rest:t.rest}:t}function Ce(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function ke(t,e){const n=e.match(t);return n?"Z"===n[0]?{value:0,rest:e.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:e.slice(n[0].length)}:null}function Te(t){return Ce(le,t)}function De(t,e){switch(t){case 1:return Ce(se,e);case 2:return Ce(ce,e);case 3:return Ce(de,e);case 4:return Ce(ue,e);default:return Ce(new RegExp("^\\d{1,"+t+"}"),e)}}function Me(t,e){switch(t){case 1:return Ce(he,e);case 2:return Ce(fe,e);case 3:return Ce(me,e);case 4:return Ce(pe,e);default:return Ce(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Se(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Ee(t,e){const n=e>0,r=n?e:1-e;let a;if(r<=50)a=t||100;else{const e=r+50;a=t+100*Math.trunc(e/100)-(t>=e%100?100:0)}return n?a:1-a}function He(t){return t%400==0||t%4==0&&t%100!=0}const Pe=[31,28,31,30,31,30,31,31,30,31,30,31],qe=[31,29,31,30,31,30,31,31,30,31,30,31];function Le(t,e,n){const r=dt(),a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=K(t),o=i.getDay(),s=7-a;return Z(i,e<0||e>6?e-(o+s)%7:((e%7+7)%7+s)%7-(o+s)%7)}function Oe(t,e){const n=K(t);return Z(n,e-function(t){let e=K(t).getDay();return 0===e&&(e=7),e}(n))}const Ne={G:new class extends Jt{priority=140;parse(t,e,n){switch(e){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}set(t,e,n){return e.era=n,t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]},y:new class extends Jt{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,e,n){const r=t=>({year:t,isTwoDigitYear:"yy"===e});switch(e){case"y":return xe(De(4,t),r);case"yo":return xe(n.ordinalNumber(t,{unit:"year"}),r);default:return xe(De(e.length,t),r)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,n){const r=t.getFullYear();if(n.isTwoDigitYear){const e=Ee(n.year,r);return t.setFullYear(e,0,1),t.setHours(0,0,0,0),t}const a="era"in e&&1!==e.era?1-n.year:n.year;return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}},Y:new class extends Jt{priority=130;parse(t,e,n){const r=t=>({year:t,isTwoDigitYear:"YY"===e});switch(e){case"Y":return xe(De(4,t),r);case"Yo":return xe(n.ordinalNumber(t,{unit:"year"}),r);default:return xe(De(e.length,t),r)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,n,r){const a=bt(t,r);if(n.isTwoDigitYear){const e=Ee(n.year,a);return t.setFullYear(e,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),pt(t,r)}const i="era"in e&&1!==e.era?1-n.year:n.year;return t.setFullYear(i,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),pt(t,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends Jt{priority=130;parse(t,e){return Me("R"===e?4:e.length,t)}set(t,e,n){const r=J(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),gt(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends Jt{priority=130;parse(t,e){return Me("u"===e?4:e.length,t)}set(t,e,n){return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends Jt{priority=120;parse(t,e,n){switch(e){case"Q":case"QQ":return De(e.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,n){return t.setMonth(3*(n-1),1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends Jt{priority=120;parse(t,e,n){switch(e){case"q":case"qq":return De(e.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,n){return t.setMonth(3*(n-1),1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends Jt{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,e,n){const r=t=>t-1;switch(e){case"M":return xe(Ce(Zt,t),r);case"MM":return xe(De(2,t),r);case"Mo":return xe(n.ordinalNumber(t,{unit:"month"}),r);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}},L:new class extends Jt{priority=110;parse(t,e,n){const r=t=>t-1;switch(e){case"L":return xe(Ce(Zt,t),r);case"LL":return xe(De(2,t),r);case"Lo":return xe(n.ordinalNumber(t,{unit:"month"}),r);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends Jt{priority=100;parse(t,e,n){switch(e){case"w":return Ce(te,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return De(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,n,r){return pt(function(t,e,n){const r=K(t),a=vt(r,n)-e;return r.setDate(r.getDate()-7*a),r}(t,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends Jt{priority=100;parse(t,e,n){switch(e){case"I":return Ce(te,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return De(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,n){return gt(function(t,e){const n=K(t),r=yt(n)-e;return n.setDate(n.getDate()-7*r),n}(t,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends Jt{priority=90;subPriority=1;parse(t,e,n){switch(e){case"d":return Ce(Ut,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return De(e.length,t)}}validate(t,e){const n=He(t.getFullYear()),r=t.getMonth();return n?e>=1&&e<=qe[r]:e>=1&&e<=Pe[r]}set(t,e,n){return t.setDate(n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends Jt{priority=90;subpriority=1;parse(t,e,n){switch(e){case"D":case"DD":return Ce(_t,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return De(e.length,t)}}validate(t,e){return He(t.getFullYear())?e>=1&&e<=366:e>=1&&e<=365}set(t,e,n){return t.setMonth(0,n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends Jt{priority=90;parse(t,e,n){switch(e){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,n,r){return(t=Le(t,n,r)).setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends Jt{priority=90;parse(t,e,n,r){const a=t=>{const e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return xe(De(e.length,t),a);case"eo":return xe(n.ordinalNumber(t,{unit:"day"}),a);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,n,r){return(t=Le(t,n,r)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends Jt{priority=90;parse(t,e,n,r){const a=t=>{const e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return xe(De(e.length,t),a);case"co":return xe(n.ordinalNumber(t,{unit:"day"}),a);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,n,r){return(t=Le(t,n,r)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends Jt{priority=90;parse(t,e,n){const r=t=>0===t?7:t;switch(e){case"i":case"ii":return De(e.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return xe(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return xe(n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return xe(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);default:return xe(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r)}}validate(t,e){return e>=1&&e<=7}set(t,e,n){return(t=Oe(t,n)).setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends Jt{priority=80;parse(t,e,n){switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,n){return t.setHours(Se(n),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends Jt{priority=80;parse(t,e,n){switch(e){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,n){return t.setHours(Se(n),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends Jt{priority=80;parse(t,e,n){switch(e){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,n){return t.setHours(Se(n),0,0,0),t}incompatibleTokens=["a","b","t","T"]},h:new class extends Jt{priority=70;parse(t,e,n){switch(e){case"h":return Ce(ae,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return De(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,n){const r=t.getHours()>=12;return r&&n<12?t.setHours(n+12,0,0,0):r||12!==n?t.setHours(n,0,0,0):t.setHours(0,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]},H:new class extends Jt{priority=70;parse(t,e,n){switch(e){case"H":return Ce(ee,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return De(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,n){return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends Jt{priority=70;parse(t,e,n){switch(e){case"K":return Ce(re,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return De(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,n){return t.getHours()>=12&&n<12?t.setHours(n+12,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]},k:new class extends Jt{priority=70;parse(t,e,n){switch(e){case"k":return Ce(ne,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return De(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,n){const r=n<=24?n%24:n;return t.setHours(r,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends Jt{priority=60;parse(t,e,n){switch(e){case"m":return Ce(ie,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return De(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,n){return t.setMinutes(n,0,0),t}incompatibleTokens=["t","T"]},s:new class extends Jt{priority=50;parse(t,e,n){switch(e){case"s":return Ce(oe,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return De(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,n){return t.setSeconds(n,0),t}incompatibleTokens=["t","T"]},S:new class extends Jt{priority=30;parse(t,e){return xe(De(e.length,t),(t=>Math.trunc(t*Math.pow(10,3-e.length))))}set(t,e,n){return t.setMilliseconds(n),t}incompatibleTokens=["t","T"]},X:new class extends Jt{priority=10;parse(t,e){switch(e){case"X":return ke(ge,t);case"XX":return ke(we,t);case"XXXX":return ke(ye,t);case"XXXXX":return ke(ve,t);default:return ke(be,t)}}set(t,e,n){return e.timestampIsSet?t:J(t,t.getTime()-ft(t)-n)}incompatibleTokens=["t","T","x"]},x:new class extends Jt{priority=10;parse(t,e){switch(e){case"x":return ke(ge,t);case"xx":return ke(we,t);case"xxxx":return ke(ye,t);case"xxxxx":return ke(ve,t);default:return ke(be,t)}}set(t,e,n){return e.timestampIsSet?t:J(t,t.getTime()-ft(t)-n)}incompatibleTokens=["t","T","X"]},t:new class extends Jt{priority=40;parse(t){return Te(t)}set(t,e,n){return[J(t,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends Jt{priority=20;parse(t){return Te(t)}set(t,e,n){return[J(t,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},We=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ye=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Fe=/^'([^]*?)'?$/,Ie=/''/g,Ae=/\S/,je=/[a-zA-Z]/;function Qe(t,e,n,r){const a=Object.assign({},dt()),i=r?.locale??a.locale??st,o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(""===e)return""===t?K(n):J(n,NaN);const c={firstWeekContainsDate:o,weekStartsOn:s,locale:i},d=[new Kt],u=e.match(Ye).map((t=>{const e=t[0];return e in Ht?(0,Ht[e])(t,i.formatLong):t})).join("").match(We),l=[];for(let a of u){!r?.useAdditionalWeekYearTokens&&Nt(a)&&Wt(a,e,t),!r?.useAdditionalDayOfYearTokens&&Ot(a)&&Wt(a,e,t);const o=a[0],s=Ne[o];if(s){const{incompatibleTokens:e}=s;if(Array.isArray(e)){const t=l.find((t=>e.includes(t.token)||t.token===o));if(t)throw new RangeError(`The format string mustn't contain \`${t.fullToken}\` and \`${a}\` at the same time`)}else if("*"===s.incompatibleTokens&&l.length>0)throw new RangeError(`The format string mustn't contain \`${a}\` and any other token at the same time`);l.push({token:o,fullToken:a});const r=s.run(t,a,i.match,c);if(!r)return J(n,NaN);d.push(r.setter),t=r.rest}else{if(o.match(je))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");if("''"===a?a="'":"'"===o&&(a=a.match(Fe)[1].replace(Ie,"'")),0!==t.indexOf(a))return J(n,NaN);t=t.slice(a.length)}}if(t.length>0&&Ae.test(t))return J(n,NaN);const h=d.map((t=>t.priority)).sort(((t,e)=>e-t)).filter(((t,e,n)=>n.indexOf(t)===e)).map((t=>d.filter((e=>e.priority===t)).sort(((t,e)=>e.subPriority-t.subPriority)))).map((t=>t[0]));let f=K(n);if(isNaN(f.getTime()))return J(n,NaN);const m={};for(const t of h){if(!t.validate(f,c))return J(n,NaN);const e=t.set(f,m,c);Array.isArray(e)?(f=e[0],Object.assign(m,e[1])):f=e}return J(n,f)}let Ge=null,Re=document.querySelector("body"),Be=!1;function Xe(){if(!Be){Be=!0;const t=document.createElement("div");t.id="currentWeatherDiv";const e=document.createElement("div"),n=document.createElement("div"),r=document.createElement("div"),a=document.createElement("div"),i=document.createElement("div"),o=document.createElement("div"),s=document.createElement("div");e.id="dayOfContainer",n.id="conditionAndLocation",r.id="tempContainer",a.id="tempLow",i.id="tempMiddleSection",o.id="tempHigh",s.id="dayDescription",r.appendChild(a),r.appendChild(i),r.appendChild(o),e.appendChild(n),e.appendChild(r),e.appendChild(s);const c=document.createElement("img");c.id="bgGif";const d=document.createElement("div");d.id="bgGifDiv",d.appendChild(c);const u=document.createElement("img");u.src=I,u.id="recordGif";const l=document.createElement("div");l.id="gifDiv";const h=document.createElement("div");h.id="recordDiv";const f=document.createElement("p");f.textContent="Live View",h.appendChild(u),h.appendChild(f);const m=document.createElement("div");m.id="dayOfDetailsContainer";const p=document.createElement("div");p.id="dayOfForecastContainer",p.classList.add("scroll");const g=document.createElement("div");g.id="weekForecastContainer",t.appendChild(e),l.appendChild(d),l.appendChild(h),t.appendChild(l),Re.appendChild(t),Re.appendChild(m),Re.appendChild(p),Re.appendChild(g)}return{setupDayOfDetailsDisplay:function(t,e,n){const r=document.createElement("div");return r.id="measurementContainer",r.textContent=n?`${t} ${e} ${n}`:`${t} ${e}`,r},setupDayOfForecastDisplay:function(t,e,n,r){const a=document.createElement("div");a.classList.add("measurementContainerHour");const i=document.createElement("div");i.id="hourContainer",i.innerText=t;const o=document.createElement("div");o.id="precipContainer",r&&(o.innerText=r+"%");const s=document.createElement("div");s.id="iconContainer";const c=document.createElement("img");c.id="iconSvg",c.src=n,s.appendChild(c);const d=document.createElement("div");return d.id="currentTempContainer",d.innerText=e,a.appendChild(i),a.appendChild(o),a.appendChild(s),a.appendChild(d),a},setupWeekForecastDisplay:function(t,e,n,r,a,i,o){const s=document.createElement("div");s.classList.add("measurementContainerWeekDay");const c=document.createElement("p");c.innerText=t;const d=document.createElement("div");d.classList.add("dayContainer"),d.appendChild(c);const u=document.createElement("div");u.id="iconContainer";const l=document.createElement("img");l.id="iconSvgDay",l.src=e;const h=document.createElement("div");0!=n&&(h.innerText=n);const f=document.createElement("div");f.innerText=r;const m=document.createElement("div");m.innerText=o;const p=document.createElement("div");p.innerText=a;const g=document.createElement("div");g.innerText=i,u.appendChild(l);const w="dayStat";return d.classList.add(w),u.classList.add(w),h.classList.add(w),h.id="rainContainer",f.classList.add(w),m.classList.add(w),p.classList.add(w),g.classList.add(w),s.appendChild(d),s.appendChild(u),s.appendChild(h),s.appendChild(f),s.appendChild(m),s.appendChild(p),s.appendChild(g),s},resetDisplay:function(t){if(t.firstChild)for(;t.children.length>0;)t.removeChild(t.firstChild)}}}const ze=function(t){const e=document.querySelector("#conditionAndLocation"),n=document.querySelector("#tempLow"),r=document.querySelector("#tempMiddleSection"),a=document.querySelector("#tempHigh"),i=document.querySelector("#dayDescription"),o=(document.querySelector("#dayOfContainer"),document.querySelector("#dayOfDetailsContainer")),s=document.querySelector("#dayOfForecastContainer"),c=document.querySelector("#weekForecastContainer");Xe().resetDisplay(o),Xe().resetDisplay(s),Xe().resetDisplay(e),Xe().resetDisplay(n),Xe().resetDisplay(r),Xe().resetDisplay(a),Xe().resetDisplay(c),Xe().resetDisplay(i);let d=!1,u=Xt(t,d,0),l=u.dayOfCondition,h=u.currentCondition,f=u.currentDescription,m=parseInt(u.currentTemp),p=u.currentFeel,g=u.todayLow,F=u.todayAvg,I=u.todayHigh,A=parseInt(u.currentVisibility),j=u.todayClouds,Q=u.currentRain,G=u.currentHumidity,R=u.currentWind,B=u.currentSevere;const X=document.querySelector("#bgGif"),z=function(t,e,n,r){if("snow-showers-day"===t||"snow"===t)return r>85?P:Y;if("snow-showers-night"===t)return E;if("thunder-showers-day"===t||"thunder-rain"===t){if(n<1)return M;if(r>80)return T;if(e<70&&e>50)return L;if(e>=70)return N}else{if("thunder-showers-night"===t)return n<1?M:H;if("showers-day"===t||"rain"===t){if(r>80)return k;if(e<70&&e>50)return q;if(e<=50&&e>32)return W;if(e>=70)return O}else{if("showers-night"===t)return n<1?D:S;if("fog"===t)return b;if("cloudy"===t)return y;if("partly-cloudy-night"===t||"clear-night"===t)return v;if("partly-cloudy-day"===t||"clear-day"===t||"windy"===t){if(e<70&&e>50)return x;if(e>=70)return C;if(e<=50&&e>=40)return y;if(e<40)return w}}}}(h,m,A,j);X.src=z;const $=t.resolvedAddress;e.textContent=l+" in "+$;const V=document.createElement("div");V.textContent=g+"° L",n.appendChild(V);let K=document.createElement("div"),J=document.createElement("div");K.textContent="Avg",J.textContent=F+"°",r.appendChild(K),r.appendChild(J);const U=document.createElement("div");U.textContent=I+"° H",a.appendChild(U);const _=document.createElement("div"),tt=document.createElement("div");function et(t,e,n){let r=null;r=Xe().setupDayOfDetailsDisplay(t,e,n),o.appendChild(r)}function nt(t,e,n,r){const a=$e(r),i=Xe().setupDayOfForecastDisplay(t,e,a,n);s.appendChild(i)}function rt(t,e,n,r,a,i,o){const s=$e(o),d=Xe().setupWeekForecastDisplay(t,s,e,n,a,i,r,o);if(!c.hasChildNodes()){const t=document.createElement("div"),e=document.createElement("div");e.innerText="Day of Week";const n=document.createElement("div");n.innerText="Condition";const r=document.createElement("div");r.innerText="Rain Chance";const a=document.createElement("div");a.innerText="Humidity";const i=document.createElement("div");i.innerText="Low";const o=document.createElement("div");o.innerText="Average";const s=document.createElement("div");s.innerText="High",[e,n,r,a,i,o,s].forEach((t=>{t.classList.add("dayStatHeader")})),t.append(e,n,r,a,i,o,s),t.id="measurementWeekHeader",c.appendChild(t)}c.appendChild(d)}tt.id="dayDescriptionTxt",_.innerText="Currently feels like "+p+"°",tt.innerText=f,i.append(_,tt),function(t){[].push(t.days[0])}(t),function(t){const e=[];for(let n=0;n<t.days.length;n++)e.push(t.days[n]);console.log(e)}(t);for(let e=0;e<24;e++){let n=Xt(t,d,0,e).dayOfHoursData;const r=10*Math.floor(n.precipprob/10);nt(Gt(Qe(n.datetime,"HH:mm:ss",new Date),"hh a"),parseInt(n.temp),r,n.icon)}const at=function(){const t=new Date,e=[];for(let n=0;n<7;n++){const r=Z(t,n+1);console.log(r);const a=Gt(r,"EEEE");console.log(a),e.push(a)}return e}();for(let e=0;e<7;e++){let n=Xt(t,d,e);const r=10*Math.floor(n.dayOfRain/10),a=10*Math.round(n.dayOfHumidity/10);rt(at[e],r,a,n.todayLow,n.todayAvg,n.todayHigh,n.forecastCondition)}return et("Rain",Q,"%"),et("Humidity",G,"%"),et("Wind",R,"KT"),et("Visibility",A,"KM"),et("Severe",B,"%"),{displayDayOf:et,displayHourly:nt}};function $e(t){switch(t){case"snow":case"snow-showers-night":return A;case"snow-showers-day":return j;case"thunder-rain":case"thunder-showers-day":case"thunder-showers-night":return Q;case"rain":case"showers-night":return G;case"showers-day":return R;case"fog":case"wind":case"cloudy":return B;case"partly-cloudy-day":default:return X;case"partly-cloudy-night":return z;case"clear-day":return $;case"clear-night":return V}}document.addEventListener("DOMContentLoaded",(()=>{!function(){let t=document.querySelector("#submitbtn");const e=document.getElementById("iconLogo"),n=document.createElement("img");n.src=F,e.appendChild(n);const r="Washington";Ge=r,Xe(),Bt(r),t.addEventListener("click",(t=>{Ge=document.querySelector("#locationInput").value,t.preventDefault(),Bt(Ge)}))}()}))})();