6 lines
70 KiB
JavaScript
6 lines
70 KiB
JavaScript
;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="cad63ee7-8f8e-7a33-5c9e-df06dbecd3f6")}catch(e){}}();
|
||
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,883647,e=>{"use strict";var t,r,o,s,n,i,a=e.i(907358),l=e.i(209157);class h extends Error{constructor(e,t){let r=e;t&&(r+=": "+t),super(r),this.code=e,t&&(this.originalMessage=t)}}var c=((t=c||{}).MISSING_MESSAGE="MISSING_MESSAGE",t.MISSING_FORMAT="MISSING_FORMAT",t.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",t.INSUFFICIENT_PATH="INSUFFICIENT_PATH",t.INVALID_MESSAGE="INVALID_MESSAGE",t.INVALID_KEY="INVALID_KEY",t.FORMATTING_ERROR="FORMATTING_ERROR",t);function u(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function m(e,t){return(0,l.memoize)(e,{cache:{create:()=>({get:e=>t[e],set(e,r){t[e]=r}})},strategy:l.strategies.variadic})}function d(e,t){return m((...t)=>new e(...t),t)}function p(e){return{getDateTimeFormat:d(Intl.DateTimeFormat,e.dateTime),getNumberFormat:d(Intl.NumberFormat,e.number),getPluralRules:d(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:d(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:d(Intl.ListFormat,e.list),getDisplayNames:d(Intl.DisplayNames,e.displayNames)}}let f=/(?:[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,b=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,g=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,E=/^(@+)?(\+|#+)?[rs]?$/g,y=/(\*)(0+)|(#+)(0+)|(0+)/g,w=/^(0+)$/;function T(e){let t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(E,function(e,r,o){return"string"!=typeof o?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===o?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof o?o.length:0)),""}),t}function v(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 x(e){let t=v(e);return t||{}}let H=((r={})[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",r),B=((o={})[o.number=0]="number",o[o.dateTime=1]="dateTime",o);function k(e){return e.type===H.literal}function A(e){return e.type===H.number}function _(e){return e.type===H.date}function N(e){return e.type===H.time}function I(e){return e.type===H.select}function S(e){return e.type===H.plural}function L(e){return e.type===H.tag}function M(e){return!!(e&&"object"==typeof e&&e.type===B.number)}function P(e){return!!(e&&"object"==typeof e&&e.type===B.dateTime)}let R=((s={})[s.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",s[s.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",s[s.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",s[s.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",s[s.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",s[s.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",s[s.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",s[s.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",s[s.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",s[s.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",s[s.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",s[s.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",s[s.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",s[s.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",s[s.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",s[s.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",s[s.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",s[s.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",s[s.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",s[s.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",s[s.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",s[s.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",s[s.INVALID_TAG=23]="INVALID_TAG",s[s.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",s[s.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",s[s.UNCLOSED_TAG=27]="UNCLOSED_TAG",s),C=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,O={"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"],GS:["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"],"ku-SY":["H","hB"],"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"]},G=RegExp(`^${C.source}*`),U=RegExp(`${C.source}*$`);function F(e,t){return{start:e,end:t}}let D=!!Object.fromEntries,z=!!String.prototype.trimStart,V=!!String.prototype.trimEnd,j=D?Object.fromEntries:function(e){let t={};for(let[r,o]of e)t[r]=o;return t},K=z?function(e){return e.trimStart()}:function(e){return e.replace(G,"")},X=V?function(e){return e.trimEnd()}:function(e){return e.replace(U,"")},Z=RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");class ${message;position;locale;ignoreTag;requiresOtherClause;shouldParseSkeletons;constructor(e,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}parse(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)}parseMessage(e,t,r){let o=[];for(;!this.isEOF();){let s=this.char();if(123===s){let t=this.parseArgument(e,r);if(t.err)return t;o.push(t.val)}else if(125===s&&e>0)break;else if(35===s&&("plural"===t||"selectordinal"===t)){let e=this.clonePosition();this.bump(),o.push({type:H.pound,location:F(e,this.clonePosition())})}else if(60!==s||this.ignoreTag||47!==this.peek())if(60===s&&!this.ignoreTag&&Y(this.peek()||0)){let r=this.parseTag(e,t);if(r.err)return r;o.push(r.val)}else{let r=this.parseLiteral(e,t);if(r.err)return r;o.push(r.val)}else if(!r)return this.error(R.UNMATCHED_CLOSING_TAG,F(this.clonePosition(),this.clonePosition()));else break}return{val:o,err:null}}parseTag(e,t){let r=this.clonePosition();this.bump();let o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:H.literal,value:`<${o}/>`,location:F(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(R.INVALID_TAG,F(r,this.clonePosition()));{let s=this.parseMessage(e+1,t,!0);if(s.err)return s;let n=s.val,i=this.clonePosition();if(!this.bumpIf("</"))return this.error(R.UNCLOSED_TAG,F(r,this.clonePosition()));{if(this.isEOF()||!Y(this.char()))return this.error(R.INVALID_TAG,F(i,this.clonePosition()));let e=this.clonePosition();return o!==this.parseTagName()?this.error(R.UNMATCHED_CLOSING_TAG,F(e,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:H.tag,value:o,children:n,location:F(r,this.clonePosition())},err:null}:this.error(R.INVALID_TAG,F(i,this.clonePosition()))}}}parseTagName(){var e;let t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())}parseLiteral(e,t){let r=this.clonePosition(),o="";for(;;){let r=this.tryParseQuote(t);if(r){o+=r;continue}let s=this.tryParseUnquoted(e,t);if(s){o+=s;continue}let n=this.tryParseLeftAngleBracket();if(n){o+=n;continue}break}let s=F(r,this.clonePosition());return{val:{type:H.literal,value:o,location:s},err:null}}tryParseLeftAngleBracket(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Y(e=this.peek()||0)||47===e)?null:(this.bump(),"<")}tryParseQuote(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(39===e)if(39===this.peek())t.push(39),this.bump();else{this.bump();break}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),String.fromCodePoint(r))}parseArgument(e,t){let r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE,F(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(R.EMPTY_ARGUMENT,F(r,this.clonePosition()));let o=this.parseIdentifierIfPossible().value;if(!o)return this.error(R.MALFORMED_ARGUMENT,F(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE,F(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:H.argument,value:o,location:F(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE,F(r,this.clonePosition()));return this.parseArgumentOptions(e,t,o,r);default:return this.error(R.MALFORMED_ARGUMENT,F(r,this.clonePosition()))}}parseIdentifierIfPossible(){var e;let t=this.clonePosition(),r=this.offset(),o=(e=this.message,Z.lastIndex=r,Z.exec(e)[1]??""),s=r+o.length;return this.bumpTo(s),{value:o,location:F(t,this.clonePosition())}}parseArgumentOptions(e,t,r,o){let s=this.clonePosition(),n=this.parseIdentifierIfPossible().value,i=this.clonePosition();switch(n){case"":return this.error(R.EXPECT_ARGUMENT_TYPE,F(s,i));case"number":case"date":case"time":{this.bumpSpace();let e=null;if(this.bumpIf(",")){this.bumpSpace();let t=this.clonePosition(),r=this.parseSimpleArgStyleIfPossible();if(r.err)return r;let o=X(r.val);if(0===o.length)return this.error(R.EXPECT_ARGUMENT_STYLE,F(this.clonePosition(),this.clonePosition()));e={style:o,styleLocation:F(t,this.clonePosition())}}let t=this.tryParseArgumentClose(o);if(t.err)return t;let s=F(o,this.clonePosition());if(e&&e.style.startsWith("::")){let t=K(e.style.slice(2));if("number"===n){let o=this.parseNumberSkeletonFromString(t,e.styleLocation);if(o.err)return o;return{val:{type:H.number,value:r,location:s,style:o.val},err:null}}{let o;if(0===t.length)return this.error(R.EXPECT_DATE_TIME_SKELETON,s);let i=t;this.locale&&(i=function(e,t){let r="";for(let o=0;o<e.length;o++){let s=e.charAt(o);if("j"===s){let n=0;for(;o+1<e.length&&e.charAt(o+1)===s;)n++,o++;let i=1+(1&n),a=n<2?1:3+(n>>1),l=function(e){let 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")}let o=e.language;return"root"!==o&&(t=e.maximize().region),(O[t||""]||O[o||""]||O[`${o}-001`]||O["001"])[0]}(t);for(("H"==l||"k"==l)&&(a=0);a-- >0;)r+="a";for(;i-- >0;)r=l+r}else"J"===s?r+="H":r+=s}return r}(t,this.locale));let a={type:B.dateTime,pattern:i,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},i.replace(f,e=>{let t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.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":o.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":o.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":o.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":o.minute=["numeric","2-digit"][t-1];break;case"s":o.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),o):{}};return{val:{type:"date"===n?H.date:H.time,value:r,location:s,style:a},err:null}}}return{val:{type:"number"===n?H.number:"date"===n?H.date:H.time,value:r,location:s,style:e?.style??null},err:null}}case"plural":case"selectordinal":case"select":{let s=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(R.EXPECT_SELECT_ARGUMENT_OPTIONS,F(s,{...s}));this.bumpSpace();let i=this.parseIdentifierIfPossible(),a=0;if("select"!==n&&"offset"===i.value){if(!this.bumpIf(":"))return this.error(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,F(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,R.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(e.err)return e;this.bumpSpace(),i=this.parseIdentifierIfPossible(),a=e.val}let l=this.tryParsePluralOrSelectOptions(e,n,t,i);if(l.err)return l;let h=this.tryParseArgumentClose(o);if(h.err)return h;let c=F(o,this.clonePosition());if("select"===n)return{val:{type:H.select,value:r,options:j(l.val),location:c},err:null};return{val:{type:H.plural,value:r,options:j(l.val),offset:a,pluralType:"plural"===n?"cardinal":"ordinal",location:c},err:null}}default:return this.error(R.INVALID_ARGUMENT_TYPE,F(s,i))}}tryParseArgumentClose(e){return this.isEOF()||125!==this.char()?this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE,F(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil("'"))return this.error(R.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,F(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(!(e>0))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}}parseNumberSkeletonFromString(e,t){let r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");let t=e.split(b).filter(e=>e.length>0),r=[];for(let e of t){let t=e.split("/");if(0===t.length)throw Error("Invalid number skeleton");let[o,...s]=t;for(let e of s)if(0===e.length)throw Error("Invalid number skeleton");r.push({stem:o,options:s})}return r}(e)}catch{return this.error(R.INVALID_NUMBER_SKELETON,t)}return{val:{type:B.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){let t={};for(let r of e){switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t={...t,notation:"scientific",...r.options.reduce((e,t)=>({...e,...x(t)}),{})};continue;case"engineering":t={...t,notation:"engineering",...r.options.reduce((e,t)=>({...e,...x(t)}),{})};continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(y,function(e,r,o,s,n,i){if(r)t.minimumIntegerDigits=o.length;else if(s&&n)throw Error("We currently do not support maximum integer digits");else if(i)throw Error("We currently do not support exact integer digits");return""});continue}if(w.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(g.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(g,function(e,r,o,s,n,i){return"*"===o?t.minimumFractionDigits=r.length:s&&"#"===s[0]?t.maximumFractionDigits=s.length:n&&i?(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length+i.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});let e=r.options[0];"w"===e?t={...t,trailingZeroDisplay:"stripIfInteger"}:e&&(t={...t,...T(e)});continue}if(E.test(r.stem)){t={...t,...T(r.stem)};continue}let e=v(r.stem);e&&(t={...t,...e});let o=function(e){let 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){let r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!w.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);o&&(t={...t,...o})}return t}(r):{}},err:null}}tryParsePluralOrSelectOptions(e,t,r,o){let s=!1,n=[],i=new Set,{value:a,location:l}=o;for(;;){if(0===a.length){let e=this.clonePosition();if("select"!==t&&this.bumpIf("=")){let t=this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_SELECTOR,R.INVALID_PLURAL_ARGUMENT_SELECTOR);if(t.err)return t;l=F(e,this.clonePosition()),a=this.message.slice(e.offset,this.offset())}else break}if(i.has(a))return this.error("select"===t?R.DUPLICATE_SELECT_ARGUMENT_SELECTOR:R.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(s=!0),this.bumpSpace();let o=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?R.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:R.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,F(this.clonePosition(),this.clonePosition()));let h=this.parseMessage(e+1,t,r);if(h.err)return h;let c=this.tryParseArgumentClose(o);if(c.err)return c;n.push([a,{value:h.val,location:F(o,this.clonePosition())}]),i.add(a),this.bumpSpace(),{value:a,location:l}=this.parseIdentifierIfPossible()}return 0===n.length?this.error("select"===t?R.EXPECT_SELECT_ARGUMENT_SELECTOR:R.EXPECT_PLURAL_ARGUMENT_SELECTOR,F(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(R.MISSING_OTHER_CLAUSE,F(this.clonePosition(),this.clonePosition())):{val:n,err:null}}tryParseDecimalInteger(e,t){let r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);let s=!1,n=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)s=!0,n=10*n+(e-48),this.bump();else break}let i=F(o,this.clonePosition());return s?Number.isSafeInteger(n*=r)?{val:n,err:null}:this.error(t,i):this.error(e,i)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");let t=this.message.codePointAt(e);if(void 0===t)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let 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<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){let t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(var e;!this.isEOF()&&((e=this.char())>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e);)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}}function Y(e){return e>=97&&e<=122||e>=65&&e<=90}function W(e,t={}){let r=new $(e,t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t}).parse();if(r.err){let e=SyntaxError(R[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return t?.captureLocation||function e(t){t.forEach(t=>{if(delete t.location,I(t)||S(t))for(let r in t.options)delete t.options[r].location,e(t.options[r].value);else A(t)&&M(t.style)||(_(t)||N(t))&&P(t.style)?delete t.style.location:L(t)&&e(t.children)})}(r.val),r.val}let q=((n={}).MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API",n);class Q extends Error{code;originalMessage;constructor(e,t,r){super(e),this.code=t,this.originalMessage=r}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}}class J extends Q{constructor(e,t,r,o){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(r).join('", "')}"`,q.INVALID_VALUE,o)}}class ee extends Q{constructor(e,t,r){super(`Value for "${e}" must be of type ${t}`,q.INVALID_VALUE,r)}}class et extends Q{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,q.MISSING_VALUE,t)}}let er=((i={})[i.literal=0]="literal",i[i.object=1]="object",i);function eo(e){return{create:()=>({get:t=>e[t],set(t,r){e[t]=r}})}}class es{ast;locales;resolvedLocale;formatters;formats;message;formatterCache={number:{},dateTime:{},pluralRules:{}};constructor(e,t=es.defaultLocale,r,o){if(this.locales=t,this.resolvedLocale=es.resolveLocale(t),"string"==typeof e){if(this.message=e,!es.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");const{...t}=o||{};this.ast=es.__parse(e,{...t,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=function(e,t){return t?Object.keys(e).reduce((r,o)=>{var s,n;return r[o]=(s=e[o],(n=t[o])?{...s,...n,...Object.keys(s).reduce((e,t)=>(e[t]={...s[t],...n[t]},e),{})}:s),r},{...e}):e}(es.formats,r),this.formatters=o&&o.formatters||function(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:(0,l.memoize)((...e)=>new Intl.NumberFormat(...e),{cache:eo(e.number),strategy:l.strategies.variadic}),getDateTimeFormat:(0,l.memoize)((...e)=>new Intl.DateTimeFormat(...e),{cache:eo(e.dateTime),strategy:l.strategies.variadic}),getPluralRules:(0,l.memoize)((...e)=>new Intl.PluralRules(...e),{cache:eo(e.pluralRules),strategy:l.strategies.variadic})}}(this.formatterCache)}format=e=>{let t=this.formatToParts(e);if(1===t.length)return t[0].value;let r=t.reduce((e,t)=>(e.length&&t.type===er.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e),[]);return r.length<=1?r[0]||"":r};formatToParts=e=>(function e(t,r,o,s,n,i,a){if(1===t.length&&k(t[0]))return[{type:er.literal,value:t[0].value}];let l=[];for(let h of t){if(k(h)){l.push({type:er.literal,value:h.value});continue}if(h.type===H.pound){"number"==typeof i&&l.push({type:er.literal,value:o.getNumberFormat(r).format(i)});continue}let{value:t}=h;if(!(n&&t in n))throw new et(t,a);let c=n[t];if(h.type===H.argument){c&&"string"!=typeof c&&"number"!=typeof c&&"bigint"!=typeof c||(c="string"==typeof c||"number"==typeof c||"bigint"==typeof c?String(c):""),l.push({type:"string"==typeof c?er.literal:er.object,value:c});continue}if(_(h)){let e="string"==typeof h.style?s.date[h.style]:P(h.style)?h.style.parsedOptions:void 0;l.push({type:er.literal,value:o.getDateTimeFormat(r,e).format(c)});continue}if(N(h)){let e="string"==typeof h.style?s.time[h.style]:P(h.style)?h.style.parsedOptions:s.time.medium;l.push({type:er.literal,value:o.getDateTimeFormat(r,e).format(c)});continue}if(A(h)){let e="string"==typeof h.style?s.number[h.style]:M(h.style)?h.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if("bigint"==typeof c){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);c*=BigInt(t)}else c*=t}l.push({type:er.literal,value:o.getNumberFormat(r,e).format(c)});continue}if(L(h)){let{children:t,value:c}=h,u=n[c];if("function"!=typeof u)throw new ee(c,"function",a);let m=u(e(t,r,o,s,n,i).map(e=>e.value));Array.isArray(m)||(m=[m]),l.push(...m.map(e=>({type:"string"==typeof e?er.literal:er.object,value:e})))}if(I(h)){let t=c,i=(Object.prototype.hasOwnProperty.call(h.options,t)?h.options[t]:void 0)||h.options.other;if(!i)throw new J(h.value,c,Object.keys(h.options),a);l.push(...e(i.value,r,o,s,n));continue}if(S(h)){let t=`=${c}`,i=Object.prototype.hasOwnProperty.call(h.options,t)?h.options[t]:void 0;if(!i){if(!Intl.PluralRules)throw new Q(`Intl.PluralRules is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-pluralrules"
|
||
`,q.MISSING_INTL_API,a);let e="bigint"==typeof c?Number(c):c,t=o.getPluralRules(r,{type:h.pluralType}).select(e-(h.offset||0));i=(Object.prototype.hasOwnProperty.call(h.options,t)?h.options[t]:void 0)||h.options.other}if(!i)throw new J(h.value,c,Object.keys(h.options),a);let u="bigint"==typeof c?Number(c):c;l.push(...e(i.value,r,o,s,n,u-(h.offset||0)));continue}}return l.length<2?l:l.reduce((e,t)=>{let r=e[e.length-1];return r&&r.type===er.literal&&t.type===er.literal?r.value+=t.value:e.push(t),e},[])})(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message);resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]});getAst=()=>this.ast;static memoizedDefaultLocale=null;static get defaultLocale(){return es.memoizedDefaultLocale||(es.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),es.memoizedDefaultLocale}static resolveLocale=e=>{if(void 0===Intl.Locale)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])};static __parse=W;static 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"}}}}function en(...[e,t,r,o]){let s;if(Array.isArray(t))throw new h(c.INVALID_MESSAGE,void 0);if("object"==typeof t)throw new h(c.INSUFFICIENT_PATH,void 0);if("string"==typeof t){let e=r||/'[{}]/.test(t)?void 0:t;if(e)return e}let{cache:n,formats:i,formatters:l,globalFormats:u,locale:d,timeZone:p}=o;l.getMessageFormat||(l.getMessageFormat=m((...e)=>new es(e[0],e[1],e[2],{formatters:l,...e[3]}),n.message));try{let e,r,o,n;s=l.getMessageFormat(t,d,(e=es.formats.date,r=es.formats.time,o={...u?.dateTime,...i?.dateTime},n={date:{...e,...o},time:{...r,...o},number:{...u?.number,...i?.number}},p&&["date","time"].forEach(e=>{let t=n[e];for(let[e,r]of Object.entries(t))t[e]={timeZone:p,...r}}),n),{formatters:{...l,getDateTimeFormat:(e,t)=>l.getDateTimeFormat(e,{...t,timeZone:t?.timeZone??p})}})}catch(e){throw new h(c.INVALID_MESSAGE,void 0)}let f=s.format(r);return(0,a.isValidElement)(f)||Array.isArray(f)||"string"==typeof f?f:String(f)}function ei(...e){return e.filter(Boolean).join(".")}function ea(e){return ei(e.namespace,e.key)}function el(e){console.error(e)}function eh(e,t,r,o){let s=ei(o,r);if(!t)throw Error(s);let n=t;return r.split(".").forEach(t=>{let r=n[t];if(null==t||null==r)throw Error(s+` (${e})`);n=r}),n}en.raw=!0;let ec={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 eu=e.i(452797);let em=(0,a.createContext)(void 0);function ed({children:e,formats:t,getMessageFallback:r,locale:o,messages:s,now:n,onError:i,timeZone:l}){let h=(0,a.useContext)(em),c=(0,a.useMemo)(()=>h?.cache||u(),[o,h?.cache]),m=(0,a.useMemo)(()=>h?.formatters||p(c),[c,h?.formatters]),d=(0,a.useMemo)(()=>({...function({formats:e,getMessageFallback:t,messages:r,onError:o,...s}){return{...s,formats:e||void 0,messages:r||void 0,onError:o||el,getMessageFallback:t||ea}}({locale:o,formats:void 0===t?h?.formats:t,getMessageFallback:r||h?.getMessageFallback,messages:void 0===s?h?.messages:s,now:n||h?.now,onError:i||h?.onError,timeZone:l||h?.timeZone}),formatters:m,cache:c}),[c,t,m,r,o,s,n,i,h,l]);return(0,eu.jsx)(em.Provider,{value:d,children:e})}function ep(){let e=(0,a.useContext)(em);if(!e)throw Error(void 0);return e}let ef=!1,eb="u"<typeof window;function eg(e){return function(e,t,r){let{cache:o,formats:s,formatters:n,getMessageFallback:i,locale:l,onError:u,timeZone:m}=ep(),d=e["!"],p="!"===t?void 0:t.slice(2);return m||ef||!eb||(ef=!0,u(new h(c.ENVIRONMENT_FALLBACK,void 0))),(0,a.useMemo)(()=>{var e;let t;return t=function(e,t,r){try{if(!t)throw Error(void 0);let o=r?eh(e,t,r):t;if(!o)throw Error(r);return o}catch(e){return new h(c.MISSING_MESSAGE,e.message)}}((e={cache:o,formatters:n,getMessageFallback:i,messages:d,namespace:p,onError:u,formats:s,locale:l,timeZone:m}).locale,e.messages,e.namespace),function({cache:e,formats:t,formatters:r,getMessageFallback:o=ea,locale:s,messagesOrError:n,namespace:i,onError:l,timeZone:u}){let m=n instanceof h;function d(e,t,r,s){let n=new h(t,r);return l(n),s??o({error:n,key:e,namespace:i})}function p(p,f,b,g){let E;if(m){if(!g)return l(n),o({error:n,key:p,namespace:i});E=g}else try{E=eh(s,n,p,i)}catch(e){if(!g)return d(p,c.MISSING_MESSAGE,e.message,g);E=g}try{let o,n=ei(i,p);return en(n,E,f?(o={},Object.keys(f).forEach(e=>{let t,r=0,s=f[e];t="function"==typeof s?t=>{let o=s(t);return(0,a.isValidElement)(o)?(0,a.cloneElement)(o,{key:e+r++}):o}:s,o[e]=t}),o):f,{cache:e,formatters:r,globalFormats:t,formats:b,locale:s,timeZone:u})}catch(r){let e,t;return r instanceof h?(e=r.code,t=r.originalMessage):(e=c.FORMATTING_ERROR,t=r.message),d(p,e,t,g)}}function f(e,t,r,o){let s=p(e,t,r,o);return"string"!=typeof s?d(e,c.INVALID_MESSAGE,void 0):s}return f.rich=p,f.markup=(e,t,r,o)=>p(e,t,r,o),f.raw=e=>{if(m)return l(n),o({error:n,key:e,namespace:i});try{return eh(s,n,e,i)}catch(t){return d(e,c.MISSING_MESSAGE,t.message)}},f.has=e=>{if(m)return!1;try{return eh(s,n,e,i),!0}catch{return!1}},f}({...e,messagesOrError:t})},[o,n,i,d,p,u,s,l,m])}({"!":ep().messages},e?`!.${e}`:"!",0)}function eE(){let{formats:e,formatters:t,locale:r,now:o,onError:s,timeZone:n}=ep();return(0,a.useMemo)(()=>(function(e){let{_cache:t=u(),_formatters:r=p(t),formats:o,locale:s,onError:n=el,timeZone:i}=e;function a(e){return e?.timeZone||(i?e={...e,timeZone:i}:n(new h(c.ENVIRONMENT_FALLBACK,void 0))),e}function l(e,t,r,o,s){let i;try{i=function(e,t,r){let o;if("string"==typeof t){if(!(o=e?.[t])){let e=new h(c.MISSING_FORMAT,void 0);throw n(e),e}}else o=t;return r&&(o={...o,...r}),o}(r,e,t)}catch{return s()}try{return o(i)}catch(e){return n(new h(c.FORMATTING_ERROR,e.message)),s()}}function m(e,t,n){return l(t,n,o?.dateTime,t=>(t=a(t),r.getDateTimeFormat(s,t).format(e)),()=>String(e))}function d(){return e.now?e.now:(n(new h(c.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:m,number:function(e,t,n){return l(t,n,o?.number,t=>r.getNumberFormat(s,t).format(e),()=>String(e))},relativeTime:function(e,t){try{var o;let n,i,a,l={};t instanceof Date||"number"==typeof t?n=new Date(t):t&&(n=null!=t.now?new Date(t.now):d(),i=t.unit,l.style=t.style,l.numberingSystem=t.numberingSystem),n||(n=d());let h=(new Date(e).getTime()-n.getTime())/1e3;i||(i=(a=Math.abs(h))<60?"second":a<3600?"minute":a<86400?"hour":a<604800?"day":a<2628e3?"week":a<31536e3?"month":"year"),l.numeric="second"===i?"auto":"always";let c=(o=i,Math.round(h/ec[o]));return r.getRelativeTimeFormat(s,l).format(c,i)}catch(t){return n(new h(c.FORMATTING_ERROR,t.message)),String(e)}},list:function(e,t,n){let i=[],a=new Map,h=0;for(let t of e){let e;"object"==typeof t?(e=String(h),a.set(e,t)):e=String(t),i.push(e),h++}return l(t,n,o?.list,e=>{let t=r.getListFormat(s,e).formatToParts(i).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,n,i){return l(n,i,o?.dateTime,o=>(o=a(o),r.getDateTimeFormat(s,o).formatRange(e,t)),()=>[m(e),m(t)].join(" – "))}}})({formats:e,locale:r,now:o,onError:s,timeZone:n,_formatters:t}),[e,t,o,r,s,n])}e.s(["IntlProvider",()=>ed,"useFormatter",()=>eE,"useTranslations",()=>eg],883647)},190422,e=>{"use strict";var t=e.i(883647);function r(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let o=r(0,t.useTranslations);r(0,t.useFormatter),e.s(["useTranslations",()=>o])},111023,e=>{"use strict";let t,r,o,s,n;var i,a=e.i(7284);let l=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),h=[],c=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let o=e[t],s=r.nextPart.get(o);if(s){let r=c(e,t+1,s);if(r)return r}let n=r.validators;if(null===n)return;let i=0===t?e.join("-"):e.slice(t).join("-"),a=n.length;for(let e=0;e<a;e++){let t=n[e];if(t.validator(i))return t.classGroupId}},u=(e,t)=>{let r=l();for(let o in e)m(e[o],r,o,t);return r},m=(e,t,r,o)=>{let s=e.length;for(let n=0;n<s;n++)d(e[n],t,r,o)},d=(e,t,r,o)=>{"string"==typeof e?p(e,t,r):"function"==typeof e?f(e,t,r,o):b(e,t,r,o)},p=(e,t,r)=>{(""===e?t:g(t,e)).classGroupId=r},f=(e,t,r,o)=>{E(e)?m(e(o),t,r,o):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e}))},b=(e,t,r,o)=>{let s=Object.entries(e),n=s.length;for(let e=0;e<n;e++){let[n,i]=s[e];m(i,g(t,n),r,o)}},g=(e,t)=>{let r=e,o=t.split("-"),s=o.length;for(let e=0;e<s;e++){let t=o[e],s=r.nextPart.get(t);s||(s=l(),r.nextPart.set(t,s)),r=s}return r},E=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,y=[],w=(e,t,r,o,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:o,isExternal:s}),T=/\s+/,v=e=>{let t;if("string"==typeof e)return e;let r="";for(let o=0;o<e.length;o++)e[o]&&(t=v(e[o]))&&(r&&(r+=" "),r+=t);return r},x=[],H=e=>{let t=t=>t[e]||x;return t.isThemeGetter=!0,t},B=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,k=/^\((?:(\w[\w-]*):)?(.+)\)$/i,A=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,N=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,I=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,S=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,L=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,M=e=>A.test(e),P=e=>!!e&&!Number.isNaN(Number(e)),R=e=>!!e&&Number.isInteger(Number(e)),C=e=>e.endsWith("%")&&P(e.slice(0,-1)),O=e=>_.test(e),G=()=>!0,U=e=>N.test(e)&&!I.test(e),F=()=>!1,D=e=>S.test(e),z=e=>L.test(e),V=e=>!K(e)&&!J(e),j=e=>ea(e,eu,F),K=e=>B.test(e),X=e=>ea(e,em,U),Z=e=>ea(e,ed,P),$=e=>ea(e,ef,G),Y=e=>ea(e,ep,F),W=e=>ea(e,eh,F),q=e=>ea(e,ec,z),Q=e=>ea(e,eb,D),J=e=>k.test(e),ee=e=>el(e,em),et=e=>el(e,ep),er=e=>el(e,eh),eo=e=>el(e,eu),es=e=>el(e,ec),en=e=>el(e,eb,!0),ei=e=>el(e,ef,!0),ea=(e,t,r)=>{let o=B.exec(e);return!!o&&(o[1]?t(o[1]):r(o[2]))},el=(e,t,r=!1)=>{let o=k.exec(e);return!!o&&(o[1]?t(o[1]):r)},eh=e=>"position"===e||"percentage"===e,ec=e=>"image"===e||"url"===e,eu=e=>"length"===e||"size"===e||"bg-size"===e,em=e=>"length"===e,ed=e=>"number"===e,ep=e=>"family-name"===e,ef=e=>"number"===e||"weight"===e,eb=e=>"shadow"===e,eg=(i=()=>{let e=H("color"),t=H("font"),r=H("text"),o=H("font-weight"),s=H("tracking"),n=H("leading"),i=H("breakpoint"),a=H("container"),l=H("spacing"),h=H("radius"),c=H("shadow"),u=H("inset-shadow"),m=H("text-shadow"),d=H("drop-shadow"),p=H("blur"),f=H("perspective"),b=H("aspect"),g=H("ease"),E=H("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...w(),J,K],v=()=>["auto","hidden","clip","visible","scroll"],x=()=>["auto","contain","none"],B=()=>[J,K,l],k=()=>[M,"full","auto",...B()],A=()=>[R,"none","subgrid",J,K],_=()=>["auto",{span:["full",R,J,K]},R,J,K],N=()=>[R,"auto",J,K],I=()=>["auto","min","max","fr",J,K],S=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],L=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...B()],F=()=>[M,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...B()],D=()=>[M,"screen","full","dvw","lvw","svw","min","max","fit",...B()],z=()=>[M,"screen","full","lh","dvh","lvh","svh","min","max","fit",...B()],ea=()=>[e,J,K],el=()=>[...w(),er,W,{position:[J,K]}],eh=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ec=()=>["auto","cover","contain",eo,j,{size:[J,K]}],eu=()=>[C,ee,X],em=()=>["","none","full",h,J,K],ed=()=>["",P,ee,X],ep=()=>["solid","dashed","dotted","double"],ef=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],eb=()=>[P,C,er,W],eg=()=>["","none",p,J,K],eE=()=>["none",P,J,K],ey=()=>["none",P,J,K],ew=()=>[P,J,K],eT=()=>[M,"full",...B()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[O],breakpoint:[O],color:[G],container:[O],"drop-shadow":[O],ease:["in","out","in-out"],font:[V],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[O],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[O],shadow:[O],spacing:["px",P],text:[O],"text-shadow":[O],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",M,K,J,b]}],container:["container"],columns:[{columns:[P,K,J,a]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:v()}],"overflow-x":[{"overflow-x":v()}],"overflow-y":[{"overflow-y":v()}],overscroll:[{overscroll:x()}],"overscroll-x":[{"overscroll-x":x()}],"overscroll-y":[{"overscroll-y":x()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{"inset-s":k(),start:k()}],end:[{"inset-e":k(),end:k()}],"inset-bs":[{"inset-bs":k()}],"inset-be":[{"inset-be":k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[R,"auto",J,K]}],basis:[{basis:[M,"full","auto",a,...B()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[P,M,"auto","initial","none",K]}],grow:[{grow:["",P,J,K]}],shrink:[{shrink:["",P,J,K]}],order:[{order:[R,"first","last","none",J,K]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:_()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:_()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":I()}],"auto-rows":[{"auto-rows":I()}],gap:[{gap:B()}],"gap-x":[{"gap-x":B()}],"gap-y":[{"gap-y":B()}],"justify-content":[{justify:[...S(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",...S()]}],"align-items":[{items:[...L(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...L(),{baseline:["","last"]}]}],"place-content":[{"place-content":S()}],"place-items":[{"place-items":[...L(),"baseline"]}],"place-self":[{"place-self":["auto",...L()]}],p:[{p:B()}],px:[{px:B()}],py:[{py:B()}],ps:[{ps:B()}],pe:[{pe:B()}],pbs:[{pbs:B()}],pbe:[{pbe:B()}],pt:[{pt:B()}],pr:[{pr:B()}],pb:[{pb:B()}],pl:[{pl:B()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mbs:[{mbs:U()}],mbe:[{mbe:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":B()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":B()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],"inline-size":[{inline:["auto",...D()]}],"min-inline-size":[{"min-inline":["auto",...D()]}],"max-inline-size":[{"max-inline":["none",...D()]}],"block-size":[{block:["auto",...z()]}],"min-block-size":[{"min-block":["auto",...z()]}],"max-block-size":[{"max-block":["none",...z()]}],w:[{w:[a,"screen",...F()]}],"min-w":[{"min-w":[a,"screen","none",...F()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",r,ee,X]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,ei,$]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",C,K]}],"font-family":[{font:[et,Y,t]}],"font-features":[{"font-features":[K]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,J,K]}],"line-clamp":[{"line-clamp":[P,"none",J,Z]}],leading:[{leading:[n,...B()]}],"list-image":[{"list-image":["none",J,K]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",J,K]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ea()}],"text-color":[{text:ea()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ep(),"wavy"]}],"text-decoration-thickness":[{decoration:[P,"from-font","auto",J,X]}],"text-decoration-color":[{decoration:ea()}],"underline-offset":[{"underline-offset":[P,"auto",J,K]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J,K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",J,K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:el()}],"bg-repeat":[{bg:eh()}],"bg-size":[{bg:ec()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},R,J,K],radial:["",J,K],conic:[R,J,K]},es,q]}],"bg-color":[{bg:ea()}],"gradient-from-pos":[{from:eu()}],"gradient-via-pos":[{via:eu()}],"gradient-to-pos":[{to:eu()}],"gradient-from":[{from:ea()}],"gradient-via":[{via:ea()}],"gradient-to":[{to:ea()}],rounded:[{rounded:em()}],"rounded-s":[{"rounded-s":em()}],"rounded-e":[{"rounded-e":em()}],"rounded-t":[{"rounded-t":em()}],"rounded-r":[{"rounded-r":em()}],"rounded-b":[{"rounded-b":em()}],"rounded-l":[{"rounded-l":em()}],"rounded-ss":[{"rounded-ss":em()}],"rounded-se":[{"rounded-se":em()}],"rounded-ee":[{"rounded-ee":em()}],"rounded-es":[{"rounded-es":em()}],"rounded-tl":[{"rounded-tl":em()}],"rounded-tr":[{"rounded-tr":em()}],"rounded-br":[{"rounded-br":em()}],"rounded-bl":[{"rounded-bl":em()}],"border-w":[{border:ed()}],"border-w-x":[{"border-x":ed()}],"border-w-y":[{"border-y":ed()}],"border-w-s":[{"border-s":ed()}],"border-w-e":[{"border-e":ed()}],"border-w-bs":[{"border-bs":ed()}],"border-w-be":[{"border-be":ed()}],"border-w-t":[{"border-t":ed()}],"border-w-r":[{"border-r":ed()}],"border-w-b":[{"border-b":ed()}],"border-w-l":[{"border-l":ed()}],"divide-x":[{"divide-x":ed()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ed()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ep(),"hidden","none"]}],"divide-style":[{divide:[...ep(),"hidden","none"]}],"border-color":[{border:ea()}],"border-color-x":[{"border-x":ea()}],"border-color-y":[{"border-y":ea()}],"border-color-s":[{"border-s":ea()}],"border-color-e":[{"border-e":ea()}],"border-color-bs":[{"border-bs":ea()}],"border-color-be":[{"border-be":ea()}],"border-color-t":[{"border-t":ea()}],"border-color-r":[{"border-r":ea()}],"border-color-b":[{"border-b":ea()}],"border-color-l":[{"border-l":ea()}],"divide-color":[{divide:ea()}],"outline-style":[{outline:[...ep(),"none","hidden"]}],"outline-offset":[{"outline-offset":[P,J,K]}],"outline-w":[{outline:["",P,ee,X]}],"outline-color":[{outline:ea()}],shadow:[{shadow:["","none",c,en,Q]}],"shadow-color":[{shadow:ea()}],"inset-shadow":[{"inset-shadow":["none",u,en,Q]}],"inset-shadow-color":[{"inset-shadow":ea()}],"ring-w":[{ring:ed()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ea()}],"ring-offset-w":[{"ring-offset":[P,X]}],"ring-offset-color":[{"ring-offset":ea()}],"inset-ring-w":[{"inset-ring":ed()}],"inset-ring-color":[{"inset-ring":ea()}],"text-shadow":[{"text-shadow":["none",m,en,Q]}],"text-shadow-color":[{"text-shadow":ea()}],opacity:[{opacity:[P,J,K]}],"mix-blend":[{"mix-blend":[...ef(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ef()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[P]}],"mask-image-linear-from-pos":[{"mask-linear-from":eb()}],"mask-image-linear-to-pos":[{"mask-linear-to":eb()}],"mask-image-linear-from-color":[{"mask-linear-from":ea()}],"mask-image-linear-to-color":[{"mask-linear-to":ea()}],"mask-image-t-from-pos":[{"mask-t-from":eb()}],"mask-image-t-to-pos":[{"mask-t-to":eb()}],"mask-image-t-from-color":[{"mask-t-from":ea()}],"mask-image-t-to-color":[{"mask-t-to":ea()}],"mask-image-r-from-pos":[{"mask-r-from":eb()}],"mask-image-r-to-pos":[{"mask-r-to":eb()}],"mask-image-r-from-color":[{"mask-r-from":ea()}],"mask-image-r-to-color":[{"mask-r-to":ea()}],"mask-image-b-from-pos":[{"mask-b-from":eb()}],"mask-image-b-to-pos":[{"mask-b-to":eb()}],"mask-image-b-from-color":[{"mask-b-from":ea()}],"mask-image-b-to-color":[{"mask-b-to":ea()}],"mask-image-l-from-pos":[{"mask-l-from":eb()}],"mask-image-l-to-pos":[{"mask-l-to":eb()}],"mask-image-l-from-color":[{"mask-l-from":ea()}],"mask-image-l-to-color":[{"mask-l-to":ea()}],"mask-image-x-from-pos":[{"mask-x-from":eb()}],"mask-image-x-to-pos":[{"mask-x-to":eb()}],"mask-image-x-from-color":[{"mask-x-from":ea()}],"mask-image-x-to-color":[{"mask-x-to":ea()}],"mask-image-y-from-pos":[{"mask-y-from":eb()}],"mask-image-y-to-pos":[{"mask-y-to":eb()}],"mask-image-y-from-color":[{"mask-y-from":ea()}],"mask-image-y-to-color":[{"mask-y-to":ea()}],"mask-image-radial":[{"mask-radial":[J,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":eb()}],"mask-image-radial-to-pos":[{"mask-radial-to":eb()}],"mask-image-radial-from-color":[{"mask-radial-from":ea()}],"mask-image-radial-to-color":[{"mask-radial-to":ea()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[P]}],"mask-image-conic-from-pos":[{"mask-conic-from":eb()}],"mask-image-conic-to-pos":[{"mask-conic-to":eb()}],"mask-image-conic-from-color":[{"mask-conic-from":ea()}],"mask-image-conic-to-color":[{"mask-conic-to":ea()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:el()}],"mask-repeat":[{mask:eh()}],"mask-size":[{mask:ec()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",J,K]}],filter:[{filter:["","none",J,K]}],blur:[{blur:eg()}],brightness:[{brightness:[P,J,K]}],contrast:[{contrast:[P,J,K]}],"drop-shadow":[{"drop-shadow":["","none",d,en,Q]}],"drop-shadow-color":[{"drop-shadow":ea()}],grayscale:[{grayscale:["",P,J,K]}],"hue-rotate":[{"hue-rotate":[P,J,K]}],invert:[{invert:["",P,J,K]}],saturate:[{saturate:[P,J,K]}],sepia:[{sepia:["",P,J,K]}],"backdrop-filter":[{"backdrop-filter":["","none",J,K]}],"backdrop-blur":[{"backdrop-blur":eg()}],"backdrop-brightness":[{"backdrop-brightness":[P,J,K]}],"backdrop-contrast":[{"backdrop-contrast":[P,J,K]}],"backdrop-grayscale":[{"backdrop-grayscale":["",P,J,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[P,J,K]}],"backdrop-invert":[{"backdrop-invert":["",P,J,K]}],"backdrop-opacity":[{"backdrop-opacity":[P,J,K]}],"backdrop-saturate":[{"backdrop-saturate":[P,J,K]}],"backdrop-sepia":[{"backdrop-sepia":["",P,J,K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":B()}],"border-spacing-x":[{"border-spacing-x":B()}],"border-spacing-y":[{"border-spacing-y":B()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",J,K]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[P,"initial",J,K]}],ease:[{ease:["linear","initial",g,J,K]}],delay:[{delay:[P,J,K]}],animate:[{animate:["none",E,J,K]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,J,K]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:eE()}],"rotate-x":[{"rotate-x":eE()}],"rotate-y":[{"rotate-y":eE()}],"rotate-z":[{"rotate-z":eE()}],scale:[{scale:ey()}],"scale-x":[{"scale-x":ey()}],"scale-y":[{"scale-y":ey()}],"scale-z":[{"scale-z":ey()}],"scale-3d":["scale-3d"],skew:[{skew:ew()}],"skew-x":[{"skew-x":ew()}],"skew-y":[{"skew-y":ew()}],transform:[{transform:[J,K,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:eT()}],"translate-x":[{"translate-x":eT()}],"translate-y":[{"translate-y":eT()}],"translate-z":[{"translate-z":eT()}],"translate-none":["translate-none"],accent:[{accent:ea()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ea()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",J,K]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mbs":[{"scroll-mbs":B()}],"scroll-mbe":[{"scroll-mbe":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pbs":[{"scroll-pbs":B()}],"scroll-pbe":[{"scroll-pbe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",J,K]}],fill:[{fill:["none",...ea()]}],"stroke-w":[{stroke:[P,ee,X,Z]}],stroke:[{stroke:["none",...ea()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},n=e=>{let s=r(e);if(s)return s;let n=((e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s,sortModifiers:n}=t,i=[],a=e.trim().split(T),l="";for(let e=a.length-1;e>=0;e-=1){let t=a[e],{isExternal:h,modifiers:c,hasImportantModifier:u,baseClassName:m,maybePostfixModifierPosition:d}=r(t);if(h){l=t+(l.length>0?" "+l:l);continue}let p=!!d,f=o(p?m.substring(0,d):m);if(!f){if(!p||!(f=o(m))){l=t+(l.length>0?" "+l:l);continue}p=!1}let b=0===c.length?"":1===c.length?c[0]:n(c).join(":"),g=u?b+"!":b,E=g+f;if(i.indexOf(E)>-1)continue;i.push(E);let y=s(f,p);for(let e=0;e<y.length;++e){let t=y[e];i.push(g+t)}l=t+(l.length>0?" "+l:l)}return l})(e,t);return o(e,n),n},s=e=>{var a;let l;return r=(t={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),o=Object.create(null),s=(s,n)=>{r[s]=n,++t>e&&(t=0,o=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=o[e])?(s(e,t),t):void 0},set(e,t){e in r?r[e]=t:s(e,t)}}})((a=[].reduce((e,t)=>t(e),i())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,o=e=>{let t,r=[],o=0,s=0,n=0,i=e.length;for(let a=0;a<i;a++){let i=e[a];if(0===o&&0===s){if(":"===i){r.push(e.slice(n,a)),n=a+1;continue}if("/"===i){t=a;continue}}"["===i?o++:"]"===i?o--:"("===i?s++:")"===i&&s--}let a=0===r.length?e:e.slice(n),l=a,h=!1;return a.endsWith("!")?(l=a.slice(0,-1),h=!0):a.startsWith("!")&&(l=a.slice(1),h=!0),w(r,h,l,t&&t>n?t-n:void 0)};if(t){let e=t+":",r=o;o=t=>t.startsWith(e)?r(t.slice(e.length)):w(y,!1,t,void 0,!0)}if(r){let e=o;o=t=>r({className:t,parseClassName:e})}return o})(a),sortModifiers:(l=new Map,a.orderSensitiveModifiers.forEach((e,t)=>{l.set(e,1e6+t)}),e=>{let t=[],r=[];for(let o=0;o<e.length;o++){let s=e[o],n="["===s[0],i=l.has(s);n||i?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(s)):r.push(s)}return r.length>0&&(r.sort(),t.push(...r)),t}),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e;return u(r,t)})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var r;let t,o,s;return -1===(r=e).slice(1,-1).indexOf(":")?void 0:(o=(t=r.slice(1,-1)).indexOf(":"),(s=t.slice(0,o))?"arbitrary.."+s:void 0)}let o=e.split("-"),s=+(""===o[0]&&o.length>1);return c(o,s,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=o[e],s=r[e];if(t){if(s){let e=Array(s.length+t.length);for(let t=0;t<s.length;t++)e[t]=s[t];for(let r=0;r<t.length;r++)e[s.length+r]=t[r];return e}return t}return s||h}return r[e]||h}}})(a)}).cache.get,o=t.cache.set,s=n,n(e)},(...e)=>s(((...e)=>{let t,r,o=0,s="";for(;o<e.length;)(t=e[o++])&&(r=v(t))&&(s&&(s+=" "),s+=r);return s})(...e)));function eE(...e){return eg((0,a.clsx)(e))}e.s(["cn",()=>eE],111023)},676525,e=>{"use strict";var t=e.i(452797),r=e.i(184868),o=e.i(111023);function s({className:e,variant:s="primary",size:n="md",href:i,...a}){let l=(0,o.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-full font-semibold transition-all duration-500 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none active:scale-95 hover:-translate-y-1 hover:scale-[1.02] relative overflow-hidden group/btn isolate",{primary:"bg-primary text-white shadow-md hover:shadow-primary/30 hover:shadow-2xl",secondary:"bg-secondary text-white shadow-md hover:shadow-secondary/30 hover:shadow-2xl",accent:"bg-accent text-primary-dark shadow-md hover:shadow-accent/30 hover:shadow-2xl",saturated:"bg-saturated text-white shadow-md hover:shadow-primary/30 hover:shadow-2xl",outline:"border-2 border-primary bg-transparent text-primary hover:text-white hover:shadow-primary/20 hover:shadow-xl",ghost:"text-primary hover:shadow-lg",white:"bg-white text-primary shadow-md hover:shadow-primary/30 hover:shadow-2xl hover:text-white",destructive:"bg-destructive text-destructive-foreground shadow-md hover:shadow-destructive/30 hover:shadow-2xl"}[s],{sm:"h-9 px-4 text-sm md:text-base",md:"h-11 px-6 text-base md:text-lg",lg:"h-14 px-5 md:px-8 text-base md:text-lg",xl:"h-16 px-6 md:px-10 text-lg md:text-xl"}[n],e),h=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:(0,o.cn)("relative z-10 flex items-center justify-center gap-2 transition-colors duration-500","white"===s?"group-hover/btn:text-primary-dark":""),children:a.children}),(0,t.jsx)("span",{className:(0,o.cn)("absolute inset-0 translate-y-[101%] group-hover/btn:translate-y-0 transition-transform duration-500 ease-out",{primary:"bg-primary-dark",secondary:"bg-secondary-light",accent:"bg-accent-dark",saturated:"bg-primary",outline:"bg-primary",ghost:"bg-primary-light/10",white:"bg-primary-light",destructive:"bg-destructive/90"}[s])})]});return i?(0,t.jsx)(r.default,{href:i,className:l,children:h}):(0,t.jsx)("button",{className:l,...a,children:h})}e.s(["Button",()=>s])},445774,370476,575003,982016,105050,801206,587778,9797,e=>{"use strict";var t=e.i(111023);e.i(676525);var r=e.i(452797);function o({className:e,children:o,...s}){return(0,r.jsx)("section",{className:(0,t.cn)("py-16 md:py-28 lg:py-36 overflow-hidden content-visibility-auto",e),...s,children:o})}function s({className:e,children:o,...s}){return(0,r.jsx)("div",{className:(0,t.cn)("container mx-auto px-4 md:px-12 lg:px-16 max-w-7xl",e),...s,children:o})}function n({level:e=2,children:o,className:s,subtitle:n,align:i="left"}){let a=`h${e}`;return(0,r.jsxs)("div",{className:(0,t.cn)("mb-6 md:mb-12 text-primary",{left:"text-left",center:"text-center mx-auto",right:"text-right"}[i],s),children:[n&&(0,r.jsx)("span",{className:"inline-block text-accent font-bold tracking-widest uppercase text-xs md:text-sm mb-3 md:mb-4 animate-fade-in",children:n}),(0,r.jsx)(a,{className:(0,t.cn)({1:"text-2xl md:text-4xl lg:text-5xl font-bold leading-[1.1] tracking-tight",2:"text-xl md:text-3xl lg:text-4xl font-bold leading-[1.2] tracking-tight",3:"text-lg md:text-2xl lg:text-3xl font-bold leading-[1.3] tracking-tight",4:"text-lg md:text-xl lg:text-2xl font-bold leading-[1.4]",5:"text-base md:text-lg font-bold leading-[1.5]",6:"text-base md:text-lg font-semibold leading-[1.6]"}[e]),children:o})]})}function i({className:e,children:o,tag:s="div",...n}){return(0,r.jsx)(s,{className:(0,t.cn)("premium-card overflow-hidden",e),...n,children:o})}function a({className:e,...o}){return(0,r.jsx)("input",{className:(0,t.cn)("w-full px-4 md:px-6 py-2.5 md:py-4 bg-neutral-light/50 border border-neutral-dark/10 rounded-xl md:rounded-2xl focus:outline-none focus:ring-2 focus:ring-accent/20 focus:border-accent focus:bg-white transition-all duration-300 placeholder:text-neutral-dark/40 text-sm md:text-lg",e),...o})}function l({className:e,...o}){return(0,r.jsx)("textarea",{className:(0,t.cn)("w-full px-4 md:px-6 py-2.5 md:py-4 bg-neutral-light/50 border border-neutral-dark/10 rounded-xl md:rounded-2xl focus:outline-none focus:ring-2 focus:ring-accent/20 focus:border-accent focus:bg-white transition-all duration-300 placeholder:text-neutral-dark/40 text-sm md:text-lg resize-none",e),...o})}function h({className:e,...o}){return(0,r.jsx)("label",{className:(0,t.cn)("text-[10px] md:text-xs font-extrabold text-primary uppercase tracking-widest",e),...o})}e.s(["Section",()=>o],370476),e.s(["Container",()=>s],575003),e.s(["Heading",()=>n],982016),e.s(["Card",()=>i],105050),e.s(["Input",()=>a],801206),e.s(["Textarea",()=>l],587778),e.s(["Label",()=>h],9797),e.s([],445774)}]);
|
||
|
||
//# debugId=cad63ee7-8f8e-7a33-5c9e-df06dbecd3f6
|