(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,824627,e=>{"use strict";var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)};function r(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function o(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;in,"__extends",()=>r,"__rest",()=>i,"__spreadArray",()=>o])},862336,e=>{"use strict";var t,r,n,i,o,s,a,l,h,c,u,m,p,f=e.i(477716),g=e.i(824627);function E(e,t){var r=t&&t.cache?t.cache:v,n=t&&t.serializer?t.serializer:y;return(t&&t.strategy?t.strategy:function(e,t){var r,n,i=1===e.length?d:b;return r=t.cache.create(),n=t.serializer,i.bind(this,e,r,n)})(e,{cache:r,serializer:n})}function d(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),o=t.get(i);return void 0===o&&(o=e.call(this,n),t.set(i,o)),o}function b(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}var y=function(){return JSON.stringify(arguments)},_=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),v={create:function(){return new _}},T={variadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,b.bind(this,e,r,n)},monadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,d.bind(this,e,r,n)}};function A(e){return e.type===l.literal}function S(e){return e.type===l.number}function H(e){return e.type===l.date}function B(e){return e.type===l.time}function I(e){return e.type===l.select}function L(e){return e.type===l.plural}function N(e){return e.type===l.tag}function x(e){return!!(e&&"object"==typeof e&&e.type===h.number)}function M(e){return!!(e&&"object"==typeof e&&e.type===h.dateTime)}(t=a||(a={}))[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG",(r=l||(l={}))[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag",(n=h||(h={}))[n.number=0]="number",n[n.dateTime=1]="dateTime";var P=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,C=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,R=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,O=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,w=/^(@+)?(\+|#+)?[rs]?$/g,D=/(\*)(0+)|(#+)(0+)|(0+)/g,G=/^(0+)$/;function U(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(w,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),t}function F(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function k(e){var t=F(e);return t||{}}var V={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},j=new RegExp("^".concat(P.source,"*")),X=new RegExp("".concat(P.source,"*$"));function K(e,t){return{start:e,end:t}}var Z=!!String.prototype.startsWith&&"_a".startsWith("a",1),Y=!!String.fromCodePoint,W=!!Object.fromEntries,z=!!String.prototype.codePointAt,Q=!!String.prototype.trimStart,q=!!String.prototype.trimEnd,J=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&0x1fffffffffffff>=Math.abs(e)},$=!0;try{$=(null==(c=es("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:c[0])==="a"}catch(e){$=!1}var ee=Z?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},et=Y?String.fromCodePoint:function(){for(var e,t=[],r=0;ro;){if((e=t[o++])>1114111)throw RangeError(e+" is not a valid code point");n+=e>10)+55296,e%1024+56320)}return n},er=W?Object.fromEntries:function(e){for(var t={},r=0;r=n)){var i=e.charCodeAt(t);return i56319||t+1===n||(r=e.charCodeAt(t+1))57343?i:(i-55296=33&&n=37&&n=46&&n=58&&n=60&&n=63&&n=162&&n=8208&&n=8214&&n=8219&&n=8224&&n=8240&&n=8251&&n=8257&&n=8263&&n=8277&&n=8592&&n=8597&&n=8602&&n=8604&&n=8609&&n=8612&&n=8615&&n=8623&&n=8654&&n=8656&&n=8661&&n=8692&&n=8960&&n=8972&&n=8992&&n=8994&&n=9003&&n=9085&&n=9115&&n=9140&&n=9180&&n=9186&&n=9255&&n=9280&&n=9291&&n=9472&&n=9656&&n=9666&&n=9720&&n=9728&&n=9840&&n=10132&&n=10176&&n=10183&&n=10224&&n=10240&&n=10496&&n=10649&&n=10716&&n=10750&&n=11008&&n=11056&&n=11077&&n=11079&&n=11085&&n=11124&&n=11126&&n=11159&&n=11776&&n=11782&&n=11790&&n=11800&&n=11806&&n=11818&&n=11824&&n=11834&&n=11836&&n=11843&&n=11856&&n=11859&&n=12289&&n=12306&&n=12318&&n=65093&&n=65536?2:1}return et.apply(void 0,r)};var el=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){var o=this.parseArgument(e,r);if(o.err)return o;n.push(o.val)}else if(125===i&&e>0)break;else if(35===i&&("plural"===t||"selectordinal"===t)){var s=this.clonePosition();this.bump(),n.push({type:l.pound,location:K(s,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek())if(60===i&&!this.ignoreTag&&eh(this.peek()||0)){var o=this.parseTag(e,t);if(o.err)return o;n.push(o.val)}else{var o=this.parseLiteral(e,t);if(o.err)return o;n.push(o.val)}else if(!r)return this.error(a.UNMATCHED_CLOSING_TAG,K(this.clonePosition(),this.clonePosition()));else break}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:l.literal,value:""),location:K(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(a.INVALID_TAG,K(r,this.clonePosition()));var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();if(!this.bumpIf(""))return this.error(a.UNCLOSED_TAG,K(r,this.clonePosition()));if(this.isEOF()||!eh(this.char()))return this.error(a.INVALID_TAG,K(s,this.clonePosition()));var h=this.clonePosition();return n!==this.parseTagName()?this.error(a.UNMATCHED_CLOSING_TAG,K(h,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:l.tag,value:n,children:o,location:K(r,this.clonePosition())},err:null}:this.error(a.INVALID_TAG,K(s,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e=97&&e=65&&e=192&&e=216&&e=248&&e=895&&e=8204&&e=8255&&e=8304&&e=11264&&e=12289&&e=63744&&e=65008&&e=65536&&e0?null:(this.bump(),et(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,K(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(a.EMPTY_ARGUMENT,K(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(a.MALFORMED_ARGUMENT,K(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,K(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:l.argument,value:n,location:K(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,K(r,this.clonePosition()));return this.parseArgumentOptions(e,t,n,r);default:return this.error(a.MALFORMED_ARGUMENT,K(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=u(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:K(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(s){case"":return this.error(a.EXPECT_ARGUMENT_TYPE,K(o,c));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var m=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var f=eo(p.val);if(0===f.length)return this.error(a.EXPECT_ARGUMENT_STYLE,K(this.clonePosition(),this.clonePosition()));u={style:f,styleLocation:K(m,this.clonePosition())}}var E=this.tryParseArgumentClose(n);if(E.err)return E;var d=K(n,this.clonePosition());if(u&&ee(null==u?void 0:u.style,"::",0)){var b=ei(u.style.slice(2));if("number"===s){var p=this.parseNumberSkeletonFromString(b,u.styleLocation);if(p.err)return p;return{val:{type:l.number,value:r,location:d,style:p.val},err:null}}if(0===b.length)return this.error(a.EXPECT_DATE_TIME_SKELETON,d);var y,_=b;this.locale&&(_=function(e,t){for(var r="",n=0;n>1),l=function(e){var t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var n=e.language;return"root"!==n&&(t=e.maximize().region),(V[t||""]||V[n||""]||V["".concat(n,"-001")]||V["001"])[0]}(t);for(("H"==l||"k"==l)&&(a=0);a-- >0;)r+="a";for(;s-- >0;)r=l+r}else"J"===i?r+="H":r+=i}return r}(b,this.locale));var f={type:h.dateTime,pattern:_,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?(y={},_.replace(C,function(e){var t=e.length;switch(e[0]){case"G":y.era=4===t?"long":5===t?"narrow":"short";break;case"y":y.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":y.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":y.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":y.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(R).filter(function(e){return e.length>0}),r=[],n=0;n1)throw RangeError("integer-width stems only accept a single optional option");n.options[0].replace(D,function(e,r,n,i,o,s){if(r)t.minimumIntegerDigits=n.length;else if(i&&o)throw Error("We currently do not support maximum integer digits");else if(s)throw Error("We currently do not support exact integer digits");return""});continue}if(G.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(O.test(n.stem)){if(n.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(O,function(e,r,n,i,o,s){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var i=n.options[0];"w"===i?t=(0,g.__assign)((0,g.__assign)({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=(0,g.__assign)((0,g.__assign)({},t),U(i)));continue}if(w.test(n.stem)){t=(0,g.__assign)((0,g.__assign)({},t),U(n.stem));continue}var o=F(n.stem);o&&(t=(0,g.__assign)((0,g.__assign)({},t),o));var s=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!G.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem);s&&(t=(0,g.__assign)((0,g.__assign)({},t),s))}return t}(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,s=[],l=new Set,h=n.value,c=n.location;;){if(0===h.length){var u=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(a.EXPECT_PLURAL_ARGUMENT_SELECTOR,a.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;c=K(u,this.clonePosition()),h=this.message.slice(u.offset,this.offset())}else break}if(l.has(h))return this.error("select"===t?a.DUPLICATE_SELECT_ARGUMENT_SELECTOR:a.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===h&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?a.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:a.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,K(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,r);if(f.err)return f;var g=this.tryParseArgumentClose(p);if(g.err)return g;s.push([h,{value:f.val,location:K(p,this.clonePosition())}]),l.add(h),this.bumpSpace(),h=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===s.length?this.error("select"===t?a.EXPECT_SELECT_ARGUMENT_SELECTOR:a.EXPECT_PLURAL_ARGUMENT_SELECTOR,K(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(a.MISSING_OTHER_CLAUSE,K(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s=this.message.length)throw Error("out of bound");var t=en(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ec(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function eh(e){return e>=97&&e=65&&e=9&&e=8206&&e0?t[0]:"string"==typeof e?e:e[0])}},e.__parse=eu,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();class eb extends Error{constructor(e,t){let r=e;t&&(r+=": "+t),super(r),this.code=e,t&&(this.originalMessage=t)}}var ey=((s=ey||{}).MISSING_MESSAGE="MISSING_MESSAGE",s.MISSING_FORMAT="MISSING_FORMAT",s.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",s.INSUFFICIENT_PATH="INSUFFICIENT_PATH",s.INVALID_MESSAGE="INVALID_MESSAGE",s.INVALID_KEY="INVALID_KEY",s.FORMATTING_ERROR="FORMATTING_ERROR",s);function e_(...e){return e.filter(Boolean).join(".")}function ev(e){return e_(e.namespace,e.key)}function eT(e){console.error(e)}function eA(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function eS(e,t){return E(e,{cache:{create:()=>({get:e=>t[e],set(e,r){t[e]=r}})},strategy:T.variadic})}function eH(e,t){return eS((...t)=>new e(...t),t)}function eB(e){return{getDateTimeFormat:eH(Intl.DateTimeFormat,e.dateTime),getNumberFormat:eH(Intl.NumberFormat,e.number),getPluralRules:eH(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:eH(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:eH(Intl.ListFormat,e.list),getDisplayNames:eH(Intl.DisplayNames,e.displayNames)}}function eI(e,t,r,n){let i=e_(n,r);if(!t)throw Error(i);let o=t;return r.split(".").forEach(t=>{let r=o[t];if(null==t||null==r)throw Error(i+` (${e})`);o=r}),o}let eL={second:1,seconds:1,minute:60,minutes:60,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:2628e3,months:2628e3,quarter:7884e3,quarters:7884e3,year:31536e3,years:31536e3};var eN=e.i(297647);let ex=(0,f.createContext)(void 0);function eM({children:e,formats:t,getMessageFallback:r,locale:n,messages:i,now:o,onError:s,timeZone:a}){let l=(0,f.useContext)(ex),h=(0,f.useMemo)(()=>l?.cache||eA(),[n,l?.cache]),c=(0,f.useMemo)(()=>l?.formatters||eB(h),[h,l?.formatters]),u=(0,f.useMemo)(()=>({...function({formats:e,getMessageFallback:t,messages:r,onError:n,...i}){return{...i,formats:e||void 0,messages:r||void 0,onError:n||eT,getMessageFallback:t||ev}}({locale:n,formats:void 0===t?l?.formats:t,getMessageFallback:r||l?.getMessageFallback,messages:void 0===i?l?.messages:i,now:o||l?.now,onError:s||l?.onError,timeZone:a||l?.timeZone}),formatters:c,cache:h}),[h,t,c,r,n,i,o,s,l,a]);return(0,eN.jsx)(ex.Provider,{value:u,children:e})}function eP(){let e=(0,f.useContext)(ex);if(!e)throw Error(void 0);return e}let eC=!1,eR="u"{var e;let t;return t=function(e,t,r){try{if(!t)throw Error(void 0);let n=r?eI(e,t,r):t;if(!n)throw Error(r);return n}catch(e){return new eb(ey.MISSING_MESSAGE,e.message)}}((e={cache:n,formatters:o,getMessageFallback:s,messages:c,namespace:u,onError:l,formats:i,locale:a,timeZone:h}).locale,e.messages,e.namespace),function({cache:e,formats:t,formatters:r,getMessageFallback:n=ev,locale:i,messagesOrError:o,namespace:s,onError:a,timeZone:l}){let h=o instanceof eb;function c(e,t,r,i){let o=new eb(t,r);return a(o),i??n({error:o,key:e,namespace:s})}function u(u,m,p,g){var E;let d,b;if(h){if(!g)return a(o),n({error:o,key:u,namespace:s});d=g}else try{d=eI(i,o,u,s)}catch(e){if(!g)return c(u,ey.MISSING_MESSAGE,e.message,g);d=g}if("object"==typeof d){let e;return c(u,Array.isArray(d)?ey.INVALID_MESSAGE:ey.INSUFFICIENT_PATH,e)}let y=(E=d,m||/'[{}]/.test(E)?void 0:E);if(y)return y;r.getMessageFormat||(r.getMessageFormat=eS((...e)=>new ed(e[0],e[1],e[2],{formatters:r,...e[3]}),e.message));try{let e,n,o,s;b=r.getMessageFormat(d,i,(e=ed.formats.date,n=ed.formats.time,o={...t?.dateTime,...p?.dateTime},s={date:{...e,...o},time:{...n,...o},number:{...t?.number,...p?.number}},l&&["date","time"].forEach(e=>{let t=s[e];for(let[e,r]of Object.entries(t))t[e]={timeZone:l,...r}}),s),{formatters:{...r,getDateTimeFormat:(e,t)=>r.getDateTimeFormat(e,{timeZone:l,...t})}})}catch(e){return c(u,ey.INVALID_MESSAGE,e.message,g)}try{let e,t=b.format(m?(e={},Object.keys(m).forEach(t=>{let r,n=0,i=m[t];r="function"==typeof i?e=>{let r=i(e);return(0,f.isValidElement)(r)?(0,f.cloneElement)(r,{key:t+n++}):r}:i,e[t]=r}),e):m);if(null==t)throw Error(void 0);return(0,f.isValidElement)(t)||Array.isArray(t)||"string"==typeof t?t:String(t)}catch(e){return c(u,ey.FORMATTING_ERROR,e.message,g)}}function m(e,t,r,n){let i=u(e,t,r,n);return"string"!=typeof i?c(e,ey.INVALID_MESSAGE,void 0):i}return m.rich=u,m.markup=(e,t,r,n)=>u(e,t,r,n),m.raw=e=>{if(h)return a(o),n({error:o,key:e,namespace:s});try{return eI(i,o,e,s)}catch(t){return c(e,ey.MISSING_MESSAGE,t.message)}},m.has=e=>{if(h)return!1;try{return eI(i,o,e,s),!0}catch{return!1}},m}({...e,messagesOrError:t})},[n,o,s,c,u,l,i,a,h])}({"!":eP().messages},e?`!.${e}`:"!",0)}function ew(){return eP().locale}function eD(){let{formats:e,formatters:t,locale:r,now:n,onError:i,timeZone:o}=eP();return(0,f.useMemo)(()=>(function(e){let{_cache:t=eA(),_formatters:r=eB(t),formats:n,locale:i,onError:o=eT,timeZone:s}=e;function a(e){return e?.timeZone||(s?e={...e,timeZone:s}:o(new eb(ey.ENVIRONMENT_FALLBACK,void 0))),e}function l(e,t,r,n,i){let s;try{s=function(e,t,r){let n;if("string"==typeof t){if(!(n=e?.[t])){let e=new eb(ey.MISSING_FORMAT,void 0);throw o(e),e}}else n=t;return r&&(n={...n,...r}),n}(r,e,t)}catch{return i()}try{return n(s)}catch(e){return o(new eb(ey.FORMATTING_ERROR,e.message)),i()}}function h(e,t,o){return l(t,o,n?.dateTime,t=>(t=a(t),r.getDateTimeFormat(i,t).format(e)),()=>String(e))}function c(){return e.now?e.now:(o(new eb(ey.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:h,number:function(e,t,o){return l(t,o,n?.number,t=>r.getNumberFormat(i,t).format(e),()=>String(e))},relativeTime:function(e,t){try{var n;let o,s,a,l={};t instanceof Date||"number"==typeof t?o=new Date(t):t&&(o=null!=t.now?new Date(t.now):c(),s=t.unit,l.style=t.style,l.numberingSystem=t.numberingSystem),o||(o=c());let h=(new Date(e).getTime()-o.getTime())/1e3;s||(s=(a=Math.abs(h)){let t=r.getListFormat(i,e).formatToParts(s).map(e=>"literal"===e.type?e.value:a.get(e.value)||e.value);return a.size>0?t:t.join("")},()=>String(e))},dateTimeRange:function(e,t,o,s){return l(o,s,n?.dateTime,n=>(n=a(n),r.getDateTimeFormat(i,n).formatRange(e,t)),()=>[h(e),h(t)].join(" – "))}}})({formats:e,locale:r,now:n,onError:i,timeZone:o,_formatters:t}),[e,t,n,r,i,o])}e.s(["IntlProvider",()=>eM,"useFormatter",()=>eD,"useLocale",()=>ew,"useTranslations",()=>eO],862336)},352194,e=>{"use strict";var t=e.i(862336);function r(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let n=r(0,t.useTranslations);r(0,t.useFormatter),e.s(["useTranslations",()=>n])},368847,341669,e=>{"use strict";var t=e.i(297647),r=e.i(477716),n=e.i(294237),i=e.i(632137);let o=({skeletonClassName:e,elementType:r="span"})=>(0,t.jsx)(r,{className:(0,i.cn)("square inline-block animate-pulse rounded bg-gray-200",e)});e.s(["default",0,o],341669);let s=r.default.forwardRef(({className:e,isLoading:r,skeletonClassName:n,variant:s,elementType:l,lineClamp:h,color:c,responsive:u,children:m,...p},f)=>{if(r)return(0,t.jsx)(o,{skeletonClassName:n||""});let g=l||function({variant:e}){switch(e){case"Display.XL":case"Display.L":case"Title.XL":return"h1";case"Display.M":case"Display.S":case"Title.L":case"Title.M":case"Title.S":return"h2";default:return"p"}}({variant:s}),E=(0,t.jsx)(g,{className:(0,i.cn)(a({variant:s,color:c,lineClamp:h,responsive:u}),e),ref:f,...p,children:m});return u?(0,t.jsx)("div",{className:"@container/text",children:E}):E});s.displayName="Text";let a=(0,n.cva)("",{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-extrabold"],"Title.L":["text-3xl","leading-normal","tracking-tight","font-extrabold"],"Title.M":["text-2xl","leading-normal","tracking-tight","font-extrabold"],"Title.S":["text-xl","leading-normal","tracking-tight","font-bold"],"Title.XS":["text-base","leading-relaxed","tracking-tight","font-bold"],"Body.L":["text-lg","leading-loose","tracking-normal","font-medium"],"Body.L.Bold":["text-lg","leading-loose","tracking-normal","font-bold"],"Body.M":["text-base","leading-loose","tracking-tight","font-medium"],"Body.M.Bold":["text-base","leading-loose","tracking-tight","font-bold"],"Body.S":["text-sm","leading-loose","tracking-tight","font-medium"],"Body.S.Bold":["text-sm","leading-loose","tracking-normal","font-bold"],"Caption.M":["text-xs","leading-normal","tracking-normal","font-medium"],"Caption.S":["text-xxs","leading-loose","tracking-tight","font-medium"],"Caption.S.Bold":["text-xxs","leading-loose","tracking-normal","font-bold"]},responsive:{true:"",false:""},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 pb-0.5",2:"line-clamp-2 pb-0.5",3:"line-clamp-3 pb-0.5",4:"line-clamp-4 pb-0.5",5:"line-clamp-5 pb-0.5"}},compoundVariants:[{variant:"Display.XL",responsive:!0,class:"text-4xl @sm/text:text-5xl @lg/text:text-6xl"},{variant:"Display.L",responsive:!0,class:"text-2xl @sm/text:text-4xl @lg/text:text-5xl"},{variant:"Display.M",responsive:!0,class:"text-xl @sm/text:text-2xl @lg/text:text-4xl"},{variant:"Display.S",responsive:!0,class:"text-lg @sm/text:text-xl @lg/text:text-2xl"},{variant:"Title.XL",responsive:!0,class:"text-2xl @sm/text:text-3xl @lg/text:text-4xl"},{variant:"Title.L",responsive:!0,class:"text-xl @sm/text:text-2xl @lg/text:text-3xl"},{variant:"Title.M",responsive:!0,class:"text-lg @sm/text:text-xl @lg/text:text-2xl"},{variant:"Title.S",responsive:!0,class:"text-base @sm/text:text-lg @lg/text:text-xl"},{variant:"Title.XS",responsive:!0,class:"text-sm @sm/text:text-base"},{variant:"Body.L",responsive:!0,class:"text-base @sm/text:text-lg @lg/text:text-xl"},{variant:"Body.L.Bold",responsive:!0,class:"text-base @sm/text:text-lg @lg/text:text-xl"},{variant:"Body.M",responsive:!0,class:"text-sm @sm/text:text-base @lg/text:text-lg"},{variant:"Body.M.Bold",responsive:!0,class:"text-sm @sm/text:text-base @lg/text:text-lg"},{variant:"Body.S",responsive:!0,class:"text-xs @sm/text:text-sm @lg/text:text-base"},{variant:"Body.S.Bold",responsive:!0,class:"text-xs @sm/text:text-sm @lg/text:text-base"},{variant:"Caption.M",responsive:!0,class:"text-xxs @sm/text:text-xs @lg/text:text-sm"},{variant:"Caption.S",responsive:!0,class:"text-xxs @sm/text:text-xxs @lg/text:text-xs"},{variant:"Caption.S.Bold",responsive:!0,class:"text-xxs @sm/text:text-xxs @lg/text:text-xs"}],defaultVariants:{variant:"Body.M",color:"default",responsive:!1}});e.s(["Text",()=>s,"default",0,s,"textVariants",()=>a],368847)},827049,e=>{"use strict";let t=(0,e.i(751931).atom)("en-US");e.s(["pageLocaleAtom",0,t])},710746,e=>{"use strict";var t=e.i(297647),r=e.i(477716),n=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:n,descId:i,...o},s)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,t.jsx)("desc",{id:i,children:n}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Close"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M12.809 4.113a.652.652 0 1 0-.922-.922L8 7.078 4.113 3.19a.652.652 0 1 0-.922.922L7.078 8 3.19 11.887a.652.652 0 0 0 .922.922L8 8.922l3.887 3.887a.652.652 0 1 0 .922-.922L8.922 8z"})]})),o=r.default.forwardRef((e,r)=>(0,t.jsx)(n.BaseIcon,{ref:r,icon:i,...e}));o.displayName="Close",e.s(["Close",0,o])},947118,e=>{"use strict";var t=e.i(477716);let r=e=>(window.mParticle?.ready?.(e),()=>{}),n=()=>!!window.mParticle?.isInitialized?.(),i=()=>!1;e.s(["useIsInitialized",0,()=>(0,t.useSyncExternalStore)(r,n,i)])},521350,e=>{"use strict";var t=e.i(333350);function r(){if(t.default){document.cookie="cookietest=1; max-age=1";let e=document?.cookie?.indexOf?.("cookietest=")!==-1;return document.cookie="cookietest=1; max-age=0",e}return!1}function n(){if(t.default)try{return localStorage.setItem("__storage_test__","__storage_test__"),localStorage.removeItem("__storage_test__"),!0}catch(e){if(e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&localStorage&&0!==localStorage.length)return!0}return!1}e.s(["areCookiesEnabled",()=>r,"isLocalStorageAvailable",()=>n])},959194,896363,e=>{"use strict";var t=e.i(333350),r=e.i(296835);let n=e=>{if(!e)return"";let t="[";return Array.isArray(e)&&e.forEach((r,n)=>{t+=`'${r}'${n!==e.length-1?",":""}`}),t+="]"};function i(e){var t;let r,n,i,o=(r=e,n=e?.indexOf?.("?"),i=e?.indexOf?.("#"),n>-1?r=r.substring(0,n):i>-1&&(r=r.substring(0,i)),r);if(t=o,"/index.html"===(o=t?.replace?.(/\/l\/[^/]+/gi,"/l"))||"/"===o||""===o)o="/";else{let e=o?.split("/")||[],t=e.length-1,r=e[t]??"";"news"!==(t>0?e[t-1]:"")&&(r.match(/[A-Z]/)||r.match(/[0-9]/)||r.match(/[@#$%&!*:]/)||""===r)&&e.pop(),o=e.join("/")}return o}e.s(["parseArrayToString",0,n],896363);let o=()=>t.default?Object.fromEntries(new URLSearchParams(window.location.search.replace("+","%2B")).entries()):{};function s(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{return{}}}let a=function(){if(t.default)return((0,r.getCookie)("ci")||"").split("&").reduce((e,t)=>{let r=t.split("=");return r[0]&&"string"==typeof r[1]&&(e[r[0]]=r[1]),e},{})}()?.["TWC-GeoIP-DMA"]||null;function l(e,t=new Date){if(!e)throw Error("Invalid timeZone provided.");try{let r=t.getTime(),n=new Intl.DateTimeFormat("en-US",{timeZone:e,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hourCycle:"h23"}).formatToParts(t).reduce((e,t)=>{if("literal"!==t.type){let r=parseInt(t.value,10);"hour"===t.type&&24===r&&(r=0),e[t.type]=r}return e},{});return(Date.UTC(n.year??0,(n.month??1)-1,n.day??1,n.hour??0,n.minute??0,n.second??0)-r)/36e5}catch(e){return e instanceof Error&&console.error(e.message),0}}e.s(["WEEK_DAYS",0,["SUN","MON","TUE","WED","THU","FRI","SAT"],"areObjectValuesDefined",0,e=>Object.keys(e).every(t=>void 0!==e[t]),"geoIPDma",0,a,"getAnonymizedPath",()=>i,"getCampaign",0,()=>{let e=o(),t=null,n=!0,i=[];return e.cm_ven&&i.push(e.cm_ven),e.cm_date&&i.push(e.cm_date),e.cm_cat&&i.push(e.cm_cat),e.cm_pla&&i.push(e.cm_pla),e.cm_ite&&i.push(e.cm_ite),i.length>0?t=i.join(":"):(t=(0,r.getCookie)("campaign-values")||null,n=!1),n&&t&&(0,r.setCookie)("campaign-values",t,{domain:".weather.com",path:"/",maxAge:1800}),t},"getLinkReferral",0,()=>o()?.traffic_source||null,"getPartner",0,()=>(0,r.getCookie)("twc-partner")||null,"getTimezoneOffsetInHours",()=>l,"getTpcc",0,()=>{let e=o()?.tpcc||(0,r.getCookie)("tpcc")||null;return e&&(0,r.setCookie)("tpcc",e,{path:"/",domain:".weather.com",maxAge:1800}),e},"jwtDecoder",()=>s,"mapIabTagsToIabContent",0,e=>{let t=[];return e?.v1&&t.push(e.v1),e?.v2&&t.push(e.v2),e?.v3&&t.push(e.v3),n(t)},"stripLastPartOfSlug",0,(e="")=>{let t=e.split("/");return t?.[t.length-1]===""&&t.pop(),t.slice(0,t.length-1).join("/")}],959194)},537989,695203,e=>{"use strict";var t=e.i(751931);let r=(0,t.atom)();e.s(["pageIdAtom",0,r],537989);let n=(0,t.atom)("");e.s(["deviceClassAtom",0,n],695203)},737801,358273,e=>{"use strict";e.i(694914);var t=e.i(475566),r=e.i(296835),n=e.i(521350),i=e.i(627897);let o="wxu-metrics-session",s="new-metrics-session",a="metric-session-last-active-time",l=()=>{let e=(0,r.getCookie)(o);if(!e)return null;let[t="",n="",i=""]=e.split(":"),s=parseInt(n,10);return{sessionId:t,sessionStartTime:s,pageCount:parseInt(i,10)}},h=e=>{let t=new Date().getTime(),n=e&&!c();n&&u(t);let s=n?e:{},a=s.sessionId||(0,i.v4)(),l=s.sessionStartTime||t,h=s.pageCount||0,m=`${a}:${l}:${h}`;(0,r.setCookie)(o,decodeURIComponent(m),{domain:".weather.com",path:"/",maxAge:1800})},c=(e=30)=>{try{let t=new Date().getTime(),r=m(),n=new Date(r).getTime(),i=new Date(t).getTime();if(Number.isNaN(n)||Number.isNaN(i))return console.error("Invalid timestamp"),!1;return Math.abs(n-i)>60*e*1e3}catch(e){return console.error("Error in isDifferenceMoreThanMinutes",e instanceof Error?e.message:String(e)),!1}},u=e=>{(0,n.isLocalStorageAvailable)()&&localStorage.setItem(a,e.toString())},m=()=>{if(!(0,n.isLocalStorageAvailable)())return"";let e=localStorage.getItem(a);return e?parseInt(e):""};e.s(["checkSessionTimestampExpired",0,c,"deleteIsNewMestricsSession",0,()=>{(0,n.isLocalStorageAvailable)()&&localStorage.removeItem(s)},"getMetricsSession",0,l,"incrementMetricsSessionCount",0,()=>{let e=l();e&&h({...e,pageCount:e?.pageCount+1})},"isNewMetricsSession",0,()=>{if((0,n.isLocalStorageAvailable)())return localStorage.getItem(s)},"setIsNewMestricsSession",0,()=>{(0,n.isLocalStorageAvailable)()&&localStorage.setItem(s,"true")},"setMetricsSession",0,h],358273);var p=e.i(959194),f=e.i(537989),g=e.i(477716),E=e.i(827049),d=e.i(695203),b=e.i(375570),y=e.i(333350),_=e.i(472737);e.s(["useEventAttributes",0,()=>{let e=(0,p.getCampaign)(),i=(0,p.getTpcc)(),o=(0,p.getPartner)(),s=(0,n.areCookiesEnabled)(),a=(0,r.getCookie)("twc-location-country"),h=(0,r.getCookie)("twc-location-region"),c=l(),u=c?.pageCount?c?.pageCount+1:1,m=c?.sessionId||"",v=c?.sessionStartTime||0,T=(0,t.useAtomValue)(f.pageIdAtom)||"",A=(0,t.useAtomValue)(E.pageLocaleAtom),S=(0,t.useAtomValue)(d.deviceClassAtom),H=(0,b.usePathname)(),B=["article","video"].includes(T)?(0,p.stripLastPartOfSlug)(H):(0,p.getAnonymizedPath)(H),I=(0,p.getLinkReferral)(),L="u">typeof document?document.referrer:null,N=(0,_.useLocationSource)({}),x=N?.effectiveLocation?.displayName,M=N?.effectiveLocation?.adminDistrict,P=N?.effectiveLocation?.adminDistrictCode,C=new Date,R=C.getHours(),O=C.getDay(),w=p.WEEK_DAYS[O]||null,D=(0,r.getCookie)("twc-privacy"),G=y.default?window.DprSdk?.getCcpaSaleOptInString()??"":"",U=y.default?window.DprSdk?.getGdprConsentOptInsString()??"":"",F=!!y.default&&(window.navigator?.globalPrivacyControl??!1),k=U?.includes("functional-technology")??!1,V=U?.includes("geographically-relevant-advertising")??!1;return(0,g.useMemo)(()=>({campaign:e,tpcc:i,cookiesEnabled:s,physicalCountry:a??"",physicalState:h??"",pageId:T,partner:o,locale:A,deviceClass:S,url:B,linkReferral:I,referrer:L,pageCount:u,sessionId:m,sessionStartTime:v,schemaVersion:"nextgen",hourOfDay:R,dayOfWeek:w,wlocCity:x,wlocCountry:M,wlocState:P,privProducts:G,priv:U,gpcSignalOptOut:F,functionalTechnologies:k,geographicallyRelevantAds:V,regime:D??"",appVersion:"7536342c21f24fe256131c82006fdd5007fe5669",wlocDMA:p.geoIPDma||null,siteMode:"normal"}),[e,i,s,a,h,T,o,A,B,I,L,u,m,v,R,w,x,M,P,U,G,F,k,V,D,p.geoIPDma])}],737801)}]);