diff --git a/404.html b/404.html index c6c48ed63c05c7dda2c44271a67abac4ff9a63c1..23b55b116a179a44f327a5be351667cd4e148c72 100644 --- a/404.html +++ b/404.html @@ -1 +1,847 @@ -404: This page could not be found.Translator demo app built with Transformers.js + Tamagui + Next.js

404

This page could not be found.

\ No newline at end of file +404: This page could not be found.Translator demo app built with Transformers.js + Tamagui + Next.js

404

This page could not be found.

\ No newline at end of file diff --git a/_next/static/UK4_LsC65D_d_sZP_6S_5/_buildManifest.js b/_next/static/T4kgNp_52zYV_hplOcNWG/_buildManifest.js similarity index 100% rename from _next/static/UK4_LsC65D_d_sZP_6S_5/_buildManifest.js rename to _next/static/T4kgNp_52zYV_hplOcNWG/_buildManifest.js diff --git a/_next/static/UK4_LsC65D_d_sZP_6S_5/_ssgManifest.js b/_next/static/T4kgNp_52zYV_hplOcNWG/_ssgManifest.js similarity index 100% rename from _next/static/UK4_LsC65D_d_sZP_6S_5/_ssgManifest.js rename to _next/static/T4kgNp_52zYV_hplOcNWG/_ssgManifest.js diff --git a/_next/static/chunks/107-a2d03d0af5235836.js b/_next/static/chunks/107-a2d03d0af5235836.js deleted file mode 100644 index ee4c7231f08c5c146465ae4617f85378adadf457..0000000000000000000000000000000000000000 --- a/_next/static/chunks/107-a2d03d0af5235836.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[107],{542:function(e,t,r){r.d(t,{G:function(){return m}});var o=r(281),l=r(9087),s=r(7449),n=r.n(s),a=r(2265);let i=["light","dark"],u="(prefers-color-scheme: dark)",h=(e,t)=>{let r;if(!(typeof window>"u")){try{r=localStorage.getItem(e)||void 0}catch{}return r||t}},d=e=>(e||(e=window.matchMedia(u)),e.matches?"dark":"light");var c=r(1636),f=r(2281);let m=(0,a.memo)(({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:s=!0,storageKey:n="theme",themes:m=i,defaultTheme:b=r?"system":"light",attribute:p="class",skipNextHead:k,onChangeTheme:v,value:y={dark:"t_dark",light:"t_light"},children:w})=>{let[$,C]=(0,a.useState)(()=>h(n,b)),[S,_]=(0,a.useState)(()=>h(n)),O=y?Object.values(y):m,j=(0,l.z)(r=>{let o=d(r),l=()=>_(o);t?l():a.startTransition(()=>l()),"system"!==$||e||E(o,!1)}),E=(0,l.z)((e,t=!0,o=!0)=>{let l=y?.[e]||e;if(t)try{localStorage.setItem(n,e)}catch{}if("system"===e&&r){let e=d();l=y?.[e]||e}if(v?.(l.replace("t_","")),o){let e=document.documentElement;"class"===p?(e.classList.remove(...O),e.classList.add(l)):e.setAttribute(p,l)}});(0,o.LI)(()=>{let e=window.matchMedia(u);return e.addListener(j),j(e),()=>{e.removeListener(j)}},[]);let T=(0,l.z)(t=>{e?E(t,!0,!1):E(t),C(t)});(0,a.useEffect)(()=>{let e=e=>{e.key===n&&T(e.newValue||b)};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}},[b,T,n]),(0,o.LI)(()=>{if(!s)return;let t=e&&i.includes(e)?e:$&&i.includes($)?$:"system"===$&&S||null;("u">typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")!==(t||"light")&&document.documentElement.style.setProperty("color-scheme",t)},[s,$,S,e]);let P=(0,l.z)(()=>{let e="dark"===S?["system","light","dark"]:["system","dark","light"];T(e[(e.indexOf($)+1)%e.length])}),x=r?S:void 0,M=(0,a.useMemo)(()=>({theme:$,current:$,set:T,toggle:P,forcedTheme:e,resolvedTheme:"system"===$?S:$,themes:r?[...m,"system"]:m,systemTheme:x}),[$,T,P,e,S,r,m,x]);return(0,f.jsxs)(c.m.Provider,{value:M,children:[(0,f.jsx)(g,{forcedTheme:e,storageKey:n,systemTheme:S,attribute:p,value:y,enableSystem:r,defaultTheme:b,attrs:O,skipNextHead:k}),(0,a.useMemo)(()=>w,[w])]})}),g=(0,a.memo)(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:o,defaultTheme:l,value:s,attrs:a,skipNextHead:i})=>{let h="class"===r?`var d=document.documentElement.classList;${a.map(e=>`d.remove('${e}')`).join(";")};`:"var d=document.documentElement;",d=(e,t)=>{e=s?.[e]||e;let o=t?e:`'${e}'`;return"class"===r?`d.add(${o})`:`d.setAttribute('${r}', ${o})`},c="system"===l,m=(0,f.jsx)(f.Fragment,{children:e?(0,f.jsx)("script",{dangerouslySetInnerHTML:{__html:`!function(){${h}${d(e)}}()`}},"next-themes-script"):o?(0,f.jsx)("script",{dangerouslySetInnerHTML:{__html:`!function(){try {${h}var e=localStorage.getItem('${t}');${c?"":d(l)+";"}if("system"===e||(!e&&${c})){var t="${u}",m=window.matchMedia(t);m.media!==t||m.matches?${d("dark")}:${d("light")}}else if(e) ${s?`var x=${JSON.stringify(s)};`:""}${d(s?"x[e]":"e",!0)}}catch(e){}}()`}},"next-themes-script"):(0,f.jsx)("script",{dangerouslySetInnerHTML:{__html:`!function(){try{${h}var e=localStorage.getItem("${t}");if(e){${s?`var x=${JSON.stringify(s)};`:""}${d(s?"x[e]":"e",!0)}}else{${d(l)};}}catch(t){}}();`}},"next-themes-script")});return i?m:(0,f.jsx)(n(),{children:m})},(e,t)=>e.forcedTheme===t.forcedTheme)},1636:function(e,t,r){r.d(t,{m:function(){return o}});let o=(0,r(2265).createContext)({toggle:()=>{},set:e=>{},themes:[]})},9010:function(e,t,r){r.d(t,{U:function(){return s}});var o=r(281),l=r(2265);let s=({fallback:e="light"}={})=>{let t=e;if(o.C5){let r=[...document.documentElement.classList];t=r.includes("t_dark")?"dark":r.includes("t_light")?"light":e}return(0,l.useState)(t)}},1542:function(e,t,r){r.d(t,{P:function(){return s}});var o=r(2265),l=r(1636);let s=()=>(0,o.useContext)(l.m)},6463:function(e,t,r){var o=r(1169);r.o(o,"permanentRedirect")&&r.d(t,{permanentRedirect:function(){return o.permanentRedirect}}),r.o(o,"useParams")&&r.d(t,{useParams:function(){return o.useParams}}),r.o(o,"usePathname")&&r.d(t,{usePathname:function(){return o.usePathname}}),r.o(o,"useSearchParams")&&r.d(t,{useSearchParams:function(){return o.useSearchParams}}),r.o(o,"useServerInsertedHTML")&&r.d(t,{useServerInsertedHTML:function(){return o.useServerInsertedHTML}})},7449:function(e,t){function r(){return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7376:function(e,t,r){r.d(t,{vc:function(){return ev}});let o={ussel:"userSelect",cur:"cursor",pe:"pointerEvents",col:"color",ff:"fontFamily",fos:"fontSize",fost:"fontStyle",fow:"fontWeight",ls:"letterSpacing",lh:"lineHeight",ta:"textAlign",tt:"textTransform",ww:"wordWrap",ac:"alignContent",ai:"alignItems",als:"alignSelf",b:"bottom",bg:"backgroundColor",bbc:"borderBottomColor",bblr:"borderBottomLeftRadius",bbrr:"borderBottomRightRadius",bbw:"borderBottomWidth",blc:"borderLeftColor",blw:"borderLeftWidth",bc:"borderColor",br:"borderRadius",bs:"borderStyle",brw:"borderRightWidth",brc:"borderRightColor",btc:"borderTopColor",btlr:"borderTopLeftRadius",btrr:"borderTopRightRadius",btw:"borderTopWidth",bw:"borderWidth",dsp:"display",f:"flex",fb:"flexBasis",fd:"flexDirection",fg:"flexGrow",fs:"flexShrink",fw:"flexWrap",h:"height",jc:"justifyContent",l:"left",m:"margin",mah:"maxHeight",maw:"maxWidth",mb:"marginBottom",mih:"minHeight",miw:"minWidth",ml:"marginLeft",mr:"marginRight",mt:"marginTop",mx:"marginHorizontal",my:"marginVertical",o:"opacity",ov:"overflow",p:"padding",pb:"paddingBottom",pl:"paddingLeft",pos:"position",pr:"paddingRight",pt:"paddingTop",px:"paddingHorizontal",py:"paddingVertical",r:"right",shac:"shadowColor",shar:"shadowRadius",shof:"shadowOffset",shop:"shadowOpacity",t:"top",w:"width",zi:"zIndex"};function l(e){return Object.entries(e)}function s(e){return Object.fromEntries(e)}o.bls="borderLeftStyle",o.brs="borderRightStyle",o.bts="borderTopStyle",o.bbs="borderBottomStyle",o.bxs="boxSizing",o.bxsh="boxShadow",o.ox="overflowX",o.oy="overflowY";let n=e=>"function"==typeof e?{name:e.name||"unnamed",mask:e}:e,a=(e,t)=>{let{skip:r}=t;return Object.fromEntries(Object.entries(e).filter(([e])=>!r||!(e in r)).map(([e,r])=>[e,function(e,t,r){let o,l=r.overrideStrategy,s=r.overrideSwap?.[e];if("u">typeof s)o=s,l="swap";else{let t=r.overrideShift?.[e];if("u">typeof t)o=t,l="shift";else{let t=r.override?.[e];"u">typeof t&&(o=t,l=r.overrideStrategy)}}return typeof o>"u"||"string"==typeof o?t:"swap"===l?o:t}(e,r,t)]))},i=()=>({name:"inverse-mask",mask:(e,t)=>a(s(l(e).map(([e,t])=>[e,-t])),t)}),u=({inverse:e}={},t)=>({name:"shift-mask",mask:(r,o)=>{let{override:l,overrideStrategy:s="shift",max:n,palette:i,min:u=0,strength:h=1}={...t,...o},d=Object.entries(r),c=n??(i?Object.values(i).length-1:1/0),f={};for(let[t,r]of d){if("string"==typeof r)continue;if("number"==typeof l?.[t]){let e=l[t];f[t]="shift"===s?r+e:e;continue}if("string"==typeof l?.[t]){f[t]=l[t];continue}let o=0===r?1/r!=-1/0:r>=0,n=r+h*(o?1:-1)*(e?-1:1),a=o?Math.max(u,Math.min(c,n)):Math.min(-u,Math.max(-c,n));f[t]=a}return a(f,o)}}),h=e=>({name:"soften-mask",mask:u({},e).mask}),d=e=>({name:"strengthen-mask",mask:u({inverse:!0},e).mask}),c=new Map,f=(e,t)=>c.get(t||JSON.stringify(e)),m=(e,t)=>{let r={...t,cache:new Map};c.set(t.name||JSON.stringify(e),r),c.set(JSON.stringify(t.definition),r)},g=new Map;function b(e,t,r,o,l=!1){let s=l?"":JSON.stringify([o,e,t,r]);if(!l&&g.has(s))return g.get(s);let n={...Object.fromEntries(Object.entries(t).map(([t,r])=>[t,p(e,r)])),...r?.nonInheritedValues};return m(n,{palette:e,definition:t,options:r,name:o}),s&&g.set(s,n),n}let p=(e,t)=>{if(!e)throw Error("No palette!");if("string"==typeof t)return t;let r=e.length-1;return e[Math.min(Math.max(0,(0===t?1/t!=-1/0:t>=0)?t:r+t),r)]};function k(e,t,r={},o){let l={...r.skip};if(e.options?.nonInheritedValues)for(let t in e.options.nonInheritedValues)l[t]=1;let s={parentName:o,palette:e.palette,...r,skip:l},n=t.mask(e.definition,s),a=b(e.palette,n);return{...e,cache:new Map,definition:n,theme:a}}class v{constructor(e){this.state=e}addPalettes(e){return this.state.palettes={...this.state.palettes,...e},this}addTemplates(e){return this.state.templates={...this.state.templates,...e},this}addMasks(e){return this.state.masks={...this.state.masks,...s(l(e).map(([e,t])=>[e,n(t)]))},this}_addedThemes=[];addThemes(e){return this._addedThemes.push({type:"themes",args:[e]}),this.state.themes={...this.state.themes,...e},this}addComponentThemes(e,t){return this.addChildThemes(e,t),this}addChildThemes(e,t){let r=this.state.themes;if(!r)throw Error("No themes defined yet, use addThemes first to set your base themes");this._addedThemes.push({type:"childThemes",args:[e,t]});let o=Object.keys(r),l=Object.keys(e),s=Object.fromEntries(o.flatMap(r=>{let o=t?.avoidNestingWithin;return o&&o.some(e=>r.startsWith(e)||r.endsWith(e))?[]:l.map(t=>{let o=`${r}_${t}`,l=e[t];return"avoidNestingWithin"in l&&l.avoidNestingWithin.some(e=>r.startsWith(e)||r.endsWith(e))?null:[o,l]}).filter(Boolean)})),n={...this.state.themes,...s};return this.state.themes=n,this}build(){if(!this.state.themes)return{};let e={},t=[];for(let r in this.state.themes){let o=r.split("_"),l=o.slice(0,o.length-1).join("_"),s=this.state.themes[r],n=Array.isArray(s)?s.find(e=>!e.parent||l.endsWith(e.parent)||l.startsWith(e.parent))||null:s;if(n){if("theme"in n)e[r]=n.theme;else if("mask"in n)t.push({parentName:l,themeName:r,mask:n});else{let{palette:t="",template:s,...a}=n;if(this.state.themes[l],!this.state.palettes)throw Error(`No palettes defined for theme with palette expected: ${r}`);let i=this.state.palettes[t||""],u=`${l}_${t}`;for(;!i&&u;)u in this.state.palettes?(i=this.state.palettes[u],t=u):u=u.split("_").slice(0,-1).join("_");if(!i)throw Error("No palette for theme");let h=this.state.templates?.[s]??this.state.templates?.[`${o[0]}_${s}`];if(!h)throw Error(`No template for theme ${r}: ${s}`);e[r]=function(e,t,r,o,l,s=!1){if(!e[t])throw Error(`No pallete: ${t}`);let n={...r};for(let o in r){let l=r[o];if("string"==typeof l&&"$"===l[0]){let[r,s]=l.split("."),a=r.slice(1),i=t.split("_")[0],u=e[a]||e[`${i}_${a}`];if(u){let e=p(u,+s);"u">typeof e&&(n[o]=e)}}}return b(e[t],n,o,l,s)}(this.state.palettes,t,h,a,r,!0)}}}for(let{mask:r,themeName:o,parentName:l}of t){let t=e[l];if(!t)continue;let{mask:s,...n}=r,a=this.state.masks?.[s];if(!a)throw Error(`No mask ${s}`);let i=this.state.themes[l];if(i&&"childOptions"in i){let{mask:e,...t}=i.childOptions;e&&(a=this.state.masks?.[e]),Object.assign(n,t)}e[o]=function(e,t,r={},o,l){let s=f(e,o);if(!s)throw Error("❌ Err2");let n=k(s,t,r,o);return m(n.theme,{definition:n.definition,palette:s.palette,name:l}),n.theme}(t,a,n,l,o)}return e}}let y=(...e)=>({name:"combine-mask",mask:(t,r)=>{let o=f(t,r.parentName),l;for(let s of e){if(!o)throw Error(`Nothing returned from mask: ${o}, for template: ${t} and mask: ${s.toString()}, given opts ${JSON.stringify(r,null,2)}`);let e=k(o,s,r);o=e,l=e.theme}return l}});h(),h({strength:2}),h({strength:3}),d(),i(),y(i(),h({strength:2})),y(i(),h({strength:3})),y(i(),h({strength:4})),y(i(),d({strength:2})),n((e,t)=>{let r=d().mask(e,t),o=h().mask(e,t);return{...r,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus}}),n((e,t)=>{let r=h({strength:2}).mask(e,t),o=h({strength:1}).mask(e,t);return{...r,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus}}),n((e,t)=>{let r=h({strength:2}).mask(e,t);return{...h({strength:3}).mask(e,t),borderColor:r.borderColor,borderColorHover:r.borderColorHover,borderColorPress:r.borderColorPress,borderColorFocus:r.borderColorFocus}}),n((e,t)=>{let r=a(e,t),o=h().mask(e,t);return{...r,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus}}),n((e,t)=>{let r=a(e,t),o=h({strength:2}).mask(e,t);return{...r,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus}});var w,$,C=r(7104);let S={blue:{blue1:"hsl(206, 100%, 99.2%)",blue2:"hsl(210, 100%, 98.0%)",blue3:"hsl(209, 100%, 96.5%)",blue4:"hsl(210, 98.8%, 94.0%)",blue5:"hsl(209, 95.0%, 90.1%)",blue6:"hsl(209, 81.2%, 84.5%)",blue7:"hsl(208, 77.5%, 76.9%)",blue8:"hsl(206, 81.9%, 65.3%)",blue9:"hsl(206, 100%, 50.0%)",blue10:"hsl(208, 100%, 47.3%)",blue11:"hsl(211, 100%, 43.2%)",blue12:"hsl(211, 100%, 15.0%)"},gray:{gray1:"hsl(0, 0%, 99.0%)",gray2:"hsl(0, 0%, 97.3%)",gray3:"hsl(0, 0%, 95.1%)",gray4:"hsl(0, 0%, 93.0%)",gray5:"hsl(0, 0%, 90.9%)",gray6:"hsl(0, 0%, 88.7%)",gray7:"hsl(0, 0%, 85.8%)",gray8:"hsl(0, 0%, 78.0%)",gray9:"hsl(0, 0%, 56.1%)",gray10:"hsl(0, 0%, 52.3%)",gray11:"hsl(0, 0%, 43.5%)",gray12:"hsl(0, 0%, 9.0%)"},green:{green1:"hsl(136, 50.0%, 98.9%)",green2:"hsl(138, 62.5%, 96.9%)",green3:"hsl(139, 55.2%, 94.5%)",green4:"hsl(140, 48.7%, 91.0%)",green5:"hsl(141, 43.7%, 86.0%)",green6:"hsl(143, 40.3%, 79.0%)",green7:"hsl(146, 38.5%, 69.0%)",green8:"hsl(151, 40.2%, 54.1%)",green9:"hsl(151, 55.0%, 41.5%)",green10:"hsl(152, 57.5%, 37.6%)",green11:"hsl(153, 67.0%, 28.5%)",green12:"hsl(155, 40.0%, 14.0%)"},orange:{orange1:"hsl(24, 70.0%, 99.0%)",orange2:"hsl(24, 83.3%, 97.6%)",orange3:"hsl(24, 100%, 95.3%)",orange4:"hsl(25, 100%, 92.2%)",orange5:"hsl(25, 100%, 88.2%)",orange6:"hsl(25, 100%, 82.8%)",orange7:"hsl(24, 100%, 75.3%)",orange8:"hsl(24, 94.5%, 64.3%)",orange9:"hsl(24, 94.0%, 50.0%)",orange10:"hsl(24, 100%, 46.5%)",orange11:"hsl(24, 100%, 37.0%)",orange12:"hsl(15, 60.0%, 17.0%)"},pink:{pink1:"hsl(322, 100%, 99.4%)",pink2:"hsl(323, 100%, 98.4%)",pink3:"hsl(323, 86.3%, 96.5%)",pink4:"hsl(323, 78.7%, 94.2%)",pink5:"hsl(323, 72.2%, 91.1%)",pink6:"hsl(323, 66.3%, 86.6%)",pink7:"hsl(323, 62.0%, 80.1%)",pink8:"hsl(323, 60.3%, 72.4%)",pink9:"hsl(322, 65.0%, 54.5%)",pink10:"hsl(322, 63.9%, 50.7%)",pink11:"hsl(322, 75.0%, 46.0%)",pink12:"hsl(320, 70.0%, 13.5%)"},purple:{purple1:"hsl(280, 65.0%, 99.4%)",purple2:"hsl(276, 100%, 99.0%)",purple3:"hsl(276, 83.1%, 97.0%)",purple4:"hsl(275, 76.4%, 94.7%)",purple5:"hsl(275, 70.8%, 91.8%)",purple6:"hsl(274, 65.4%, 87.8%)",purple7:"hsl(273, 61.0%, 81.7%)",purple8:"hsl(272, 60.0%, 73.5%)",purple9:"hsl(272, 51.0%, 54.0%)",purple10:"hsl(272, 46.8%, 50.3%)",purple11:"hsl(272, 50.0%, 45.8%)",purple12:"hsl(272, 66.0%, 16.0%)"},red:{red1:"hsl(359, 100%, 99.4%)",red2:"hsl(359, 100%, 98.6%)",red3:"hsl(360, 100%, 96.8%)",red4:"hsl(360, 97.9%, 94.8%)",red5:"hsl(360, 90.2%, 91.9%)",red6:"hsl(360, 81.7%, 87.8%)",red7:"hsl(359, 74.2%, 81.7%)",red8:"hsl(359, 69.5%, 74.3%)",red9:"hsl(358, 75.0%, 59.0%)",red10:"hsl(358, 69.4%, 55.2%)",red11:"hsl(358, 65.0%, 48.7%)",red12:"hsl(354, 50.0%, 14.6%)"},yellow:{yellow1:"hsl(60, 54.0%, 98.5%)",yellow2:"hsl(52, 100%, 95.5%)",yellow3:"hsl(55, 100%, 90.9%)",yellow4:"hsl(54, 100%, 86.6%)",yellow5:"hsl(52, 97.9%, 82.0%)",yellow6:"hsl(50, 89.4%, 76.1%)",yellow7:"hsl(47, 80.4%, 68.0%)",yellow8:"hsl(48, 100%, 46.1%)",yellow9:"hsl(53, 92.0%, 50.0%)",yellow10:"hsl(50, 100%, 48.5%)",yellow11:"hsl(42, 100%, 29.0%)",yellow12:"hsl(40, 55.0%, 13.5%)"}},_={blue:{blue1:"hsl(212, 35.0%, 9.2%)",blue2:"hsl(216, 50.0%, 11.8%)",blue3:"hsl(214, 59.4%, 15.3%)",blue4:"hsl(214, 65.8%, 17.9%)",blue5:"hsl(213, 71.2%, 20.2%)",blue6:"hsl(212, 77.4%, 23.1%)",blue7:"hsl(211, 85.1%, 27.4%)",blue8:"hsl(211, 89.7%, 34.1%)",blue9:"hsl(206, 100%, 50.0%)",blue10:"hsl(209, 100%, 60.6%)",blue11:"hsl(210, 100%, 66.1%)",blue12:"hsl(206, 98.0%, 95.8%)"},gray:{gray1:"hsl(0, 0%, 8.5%)",gray2:"hsl(0, 0%, 11.0%)",gray3:"hsl(0, 0%, 13.6%)",gray4:"hsl(0, 0%, 15.8%)",gray5:"hsl(0, 0%, 17.9%)",gray6:"hsl(0, 0%, 20.5%)",gray7:"hsl(0, 0%, 24.3%)",gray8:"hsl(0, 0%, 31.2%)",gray9:"hsl(0, 0%, 43.9%)",gray10:"hsl(0, 0%, 49.4%)",gray11:"hsl(0, 0%, 62.8%)",gray12:"hsl(0, 0%, 93.0%)"},green:{green1:"hsl(146, 30.0%, 7.4%)",green2:"hsl(155, 44.2%, 8.4%)",green3:"hsl(155, 46.7%, 10.9%)",green4:"hsl(154, 48.4%, 12.9%)",green5:"hsl(154, 49.7%, 14.9%)",green6:"hsl(154, 50.9%, 17.6%)",green7:"hsl(153, 51.8%, 21.8%)",green8:"hsl(151, 51.7%, 28.4%)",green9:"hsl(151, 55.0%, 41.5%)",green10:"hsl(151, 49.3%, 46.5%)",green11:"hsl(151, 50.0%, 53.2%)",green12:"hsl(137, 72.0%, 94.0%)"},orange:{orange1:"hsl(30, 70.0%, 7.2%)",orange2:"hsl(28, 100%, 8.4%)",orange3:"hsl(26, 91.1%, 11.6%)",orange4:"hsl(25, 88.3%, 14.1%)",orange5:"hsl(24, 87.6%, 16.6%)",orange6:"hsl(24, 88.6%, 19.8%)",orange7:"hsl(24, 92.4%, 24.0%)",orange8:"hsl(25, 100%, 29.0%)",orange9:"hsl(24, 94.0%, 50.0%)",orange10:"hsl(24, 100%, 58.5%)",orange11:"hsl(24, 100%, 62.2%)",orange12:"hsl(24, 97.0%, 93.2%)"},pink:{pink1:"hsl(318, 25.0%, 9.6%)",pink2:"hsl(319, 32.2%, 11.6%)",pink3:"hsl(319, 41.0%, 16.0%)",pink4:"hsl(320, 45.4%, 18.7%)",pink5:"hsl(320, 49.0%, 21.1%)",pink6:"hsl(321, 53.6%, 24.4%)",pink7:"hsl(321, 61.1%, 29.7%)",pink8:"hsl(322, 74.9%, 37.5%)",pink9:"hsl(322, 65.0%, 54.5%)",pink10:"hsl(323, 72.8%, 59.2%)",pink11:"hsl(325, 90.0%, 66.4%)",pink12:"hsl(322, 90.0%, 95.8%)"},purple:{purple1:"hsl(284, 20.0%, 9.6%)",purple2:"hsl(283, 30.0%, 11.8%)",purple3:"hsl(281, 37.5%, 16.5%)",purple4:"hsl(280, 41.2%, 20.0%)",purple5:"hsl(279, 43.8%, 23.3%)",purple6:"hsl(277, 46.4%, 27.5%)",purple7:"hsl(275, 49.3%, 34.6%)",purple8:"hsl(272, 52.1%, 45.9%)",purple9:"hsl(272, 51.0%, 54.0%)",purple10:"hsl(273, 57.3%, 59.1%)",purple11:"hsl(275, 80.0%, 71.0%)",purple12:"hsl(279, 75.0%, 95.7%)"},red:{red1:"hsl(353, 23.0%, 9.8%)",red2:"hsl(357, 34.4%, 12.0%)",red3:"hsl(356, 43.4%, 16.4%)",red4:"hsl(356, 47.6%, 19.2%)",red5:"hsl(356, 51.1%, 21.9%)",red6:"hsl(356, 55.2%, 25.9%)",red7:"hsl(357, 60.2%, 31.8%)",red8:"hsl(358, 65.0%, 40.4%)",red9:"hsl(358, 75.0%, 59.0%)",red10:"hsl(358, 85.3%, 64.0%)",red11:"hsl(358, 100%, 69.5%)",red12:"hsl(351, 89.0%, 96.0%)"},yellow:{yellow1:"hsl(45, 100%, 5.5%)",yellow2:"hsl(46, 100%, 6.7%)",yellow3:"hsl(45, 100%, 8.7%)",yellow4:"hsl(45, 100%, 10.4%)",yellow5:"hsl(47, 100%, 12.1%)",yellow6:"hsl(49, 100%, 14.3%)",yellow7:"hsl(49, 90.3%, 18.4%)",yellow8:"hsl(50, 100%, 22.0%)",yellow9:"hsl(53, 92.0%, 50.0%)",yellow10:"hsl(54, 100%, 68.0%)",yellow11:"hsl(48, 100%, 47.0%)",yellow12:"hsl(53, 100%, 91.0%)"}},O="rgba(0,0,0,0.04)",j="rgba(0,0,0,0.085)",E="rgba(0,0,0,0.2)",T="rgba(0,0,0,0.3)",P={..._.blue,..._.gray,..._.green,..._.orange,..._.pink,..._.purple,..._.red,..._.yellow},x={...S.blue,...S.gray,...S.green,...S.orange,...S.pink,...S.purple,...S.red,...S.yellow},M={white0:"rgba(255,255,255,0)",white075:"rgba(255,255,255,0.75)",white05:"rgba(255,255,255,0.5)",white025:"rgba(255,255,255,0.25)",black0:"rgba(10,10,10,0)",black075:"rgba(10,10,10,0.75)",black05:"rgba(10,10,10,0.5)",black025:"rgba(10,10,10,0.25)",white1:"#fff",white2:"#f8f8f8",white3:"hsl(0, 0%, 96.3%)",white4:"hsl(0, 0%, 94.1%)",white5:"hsl(0, 0%, 92.0%)",white6:"hsl(0, 0%, 90.0%)",white7:"hsl(0, 0%, 88.5%)",white8:"hsl(0, 0%, 81.0%)",white9:"hsl(0, 0%, 56.1%)",white10:"hsl(0, 0%, 50.3%)",white11:"hsl(0, 0%, 42.5%)",white12:"hsl(0, 0%, 9.0%)",black1:"#050505",black2:"#151515",black3:"#191919",black4:"#232323",black5:"#282828",black6:"#323232",black7:"#424242",black8:"#494949",black9:"#545454",black10:"#626262",black11:"#a5a5a5",black12:"#fff",...X(x,"Light"),...X(P,"Dark")},H=(()=>{let e=(e,t=0)=>e.replace("%)",`%, ${t})`).replace("hsl(","hsla("),t=(t,r)=>{let o=Object.values(t),l=o.length-4,s=Object.values(r),n=s[0],a=s[s.length-1];return[n,e(o[0],0),e(o[0],.25),e(o[0],.5),e(o[0],.75),...o,e(o[l],.75),e(o[l],.5),e(o[l],.25),e(o[l],0),a]},r={light:M.blue4Light,dark:M.blue4Dark},o=[r.light,M.white0,M.white025,M.white05,M.white075,M.white1,M.white2,M.white3,M.white4,M.white5,M.white6,M.white7,M.white8,M.white9,M.white10,M.white11,M.white12,M.black075,M.black05,M.black025,M.black0,r.dark],l=[r.dark,M.black0,M.black025,M.black05,M.black075,M.black1,M.black2,M.black3,M.black4,M.black5,M.black6,M.black7,M.black8,M.black9,M.black10,M.black11,M.black12,M.white075,M.white05,M.white025,M.white0,r.light],s=q(S),n=K(s.map((e,r)=>[`light_${e}`,t(S[e],S[s[(r+1)%s.length]])])),a=q(_),i=K(a.map((e,r)=>[`dark_${e}`,t(_[e],S[a[(r+1)%a.length]])]));return{light:o,dark:l,...{...n,...i}}})(),F=e=>{let t="light"===e?-1:1,r=-t,o={accentBackground:0,accentColor:-0,background0:1,background025:2,background05:3,background075:4,color1:5,color2:6,color3:7,color4:8,color5:9,color6:10,color7:11,color8:12,color9:13,color10:14,color11:15,color12:16,color0:-1,color025:-2,color05:-3,color075:-4,background:5,backgroundHover:5+t,backgroundPress:5+r,backgroundFocus:5+r,borderColor:8,borderColorHover:8+t,borderColorPress:8+r,borderColorFocus:8,color:-5,colorHover:-6,colorPress:-5,colorFocus:-6,colorTransparent:-1,placeholderColor:-8,outlineColor:-2},l={background:o.background+1,backgroundHover:o.backgroundHover+1,backgroundPress:o.backgroundPress+1,backgroundFocus:o.backgroundFocus+1,borderColor:o.borderColor+1,borderColorHover:o.borderColorHover+1,borderColorFocus:o.borderColorFocus+1,borderColorPress:o.borderColorPress+1},s={background:o.background+2,backgroundHover:o.backgroundHover+2,backgroundPress:o.backgroundPress+2,backgroundFocus:o.backgroundFocus+2,borderColor:o.borderColor+2,borderColorHover:o.borderColorHover+2,borderColorFocus:o.borderColorFocus+2,borderColorPress:o.borderColorPress+2},n={background:o.background+3,backgroundHover:o.backgroundHover+3,backgroundPress:o.backgroundPress+3,backgroundFocus:o.backgroundFocus+3,borderColor:o.borderColor+3,borderColorHover:o.borderColorHover+3,borderColorFocus:o.borderColorFocus+3,borderColorPress:o.borderColorPress+3},a={background:o.background+5,backgroundHover:o.background+5,backgroundPress:o.backgroundPress+5,backgroundFocus:o.backgroundFocus+5},i={...a,borderColor:a.background,borderColorHover:a.backgroundHover,borderColorFocus:a.backgroundFocus,borderColorPress:a.backgroundPress},u={color:l.background,colorHover:l.backgroundHover,colorPress:l.backgroundPress,colorFocus:l.backgroundFocus,background:o.color,backgroundHover:o.colorHover,backgroundPress:o.colorPress,backgroundFocus:o.colorFocus,borderColor:o.color-2,borderColorHover:o.color-3,borderColorFocus:o.color-4,borderColorPress:o.color-5},h={...u,background:o.color-2,backgroundHover:o.colorHover-2,backgroundPress:o.colorPress-2,backgroundFocus:o.colorFocus-2,borderColor:o.color-2-2,borderColorHover:o.color-3-2,borderColorFocus:o.color-4-2,borderColorPress:o.color-5-2},d={color:o.color-1,colorHover:o.colorHover-1,colorPress:o.colorPress-1,colorFocus:o.colorFocus-1},c={color:o.color-2,colorHover:o.colorHover-2,colorPress:o.colorPress-2,colorFocus:o.colorFocus-2};return{base:o,alt1:d,alt2:c,surface1:l,surface2:s,surface3:n,inverseSurface1:u,inverseActive:h,surfaceActive:i}},L=F("light"),R=F("dark"),I={...K(q(L).map(e=>[`light_${e}`,L[e]])),...K(q(R).map(e=>[`dark_${e}`,R[e]]))},A={light:{...x,shadowColor:j,shadowColorHover:j,shadowColorPress:O,shadowColorFocus:O},dark:{...P,shadowColor:T,shadowColorHover:T,shadowColorPress:E,shadowColorFocus:E}},W=[{parent:"light",theme:{background:"rgba(0,0,0,0.5)"}},{parent:"dark",theme:{background:"rgba(0,0,0,0.8)"}}],N=[{parent:"active",template:"inverseActive"},{parent:"",template:"inverseSurface1"}],z=[{parent:"active",template:"surfaceActive"},{parent:"",template:"surface1"}],B=[{parent:"active",template:"surfaceActive"},{parent:"",template:"surface2"}],D=new v({}).addPalettes(H).addTemplates(I).addThemes({light:{template:"base",palette:"light",nonInheritedValues:A.light},dark:{template:"base",palette:"dark",nonInheritedValues:A.dark}}).addChildThemes({orange:{palette:"orange",template:"base"},yellow:{palette:"yellow",template:"base"},green:{palette:"green",template:"base"},blue:{palette:"blue",template:"base"},purple:{palette:"purple",template:"base"},pink:{palette:"pink",template:"base"},red:{palette:"red",template:"base"},gray:{palette:"gray",template:"base"}}).addChildThemes({alt1:{template:"alt1"},alt2:{template:"alt2"},active:{template:"surface3"},surface1:{template:"surface1"},surface2:{template:"surface2"},surface3:{template:"surface3"},surface4:{template:"surfaceActive"}}).addComponentThemes({ListItem:{template:"surface1"},SelectTrigger:z,Card:z,Button:[{parent:"active",template:"surfaceActive"},{parent:"",template:"surface3"}],Checkbox:B,Switch:B,SwitchThumb:N,TooltipContent:B,Progress:{template:"surface1"},RadioGroupItem:B,TooltipArrow:{template:"surface1"},SliderTrackActive:{template:"surface3"},SliderTrack:{template:"surface1"},SliderThumb:N,Tooltip:N,ProgressIndicator:N,SheetOverlay:W,DialogOverlay:W,ModalOverlay:W,Input:z,TextArea:z},{avoidNestingWithin:["alt1","alt2","surface1","surface2","surface3","surface4"]}).build(),V={$0:0,"$0.25":2,"$0.5":4,"$0.75":8,$1:20,"$1.5":24,$2:28,"$2.5":32,$3:36,"$3.5":40,$4:44,$true:44,"$4.5":48,$5:52,$6:64,$7:74,$8:84,$9:94,$10:104,$11:124,$12:144,$13:164,$14:184,$15:204,$16:224,$17:224,$18:244,$19:264,$20:284},G=Object.entries(V).map(([e,t])=>[e,0===t?0:2===t?.5:4===t?1:8===t?1.5:t<=16?Math.round(.333*t):Math.floor(.7*t-12)]),U=G.slice(1).map(([e,t])=>[`-${e.slice(1)}`,-t]),J=(w={color:M,radius:{0:0,1:3,2:5,3:7,4:9,true:9,5:10,6:16,7:19,8:22,9:26,10:34,11:42,12:50},zIndex:{0:0,1:100,2:200,3:300,4:400,5:500},space:{...Object.fromEntries(G),...Object.fromEntries(U)},size:V},(0,C.D)(w));function X(e,t){return Object.fromEntries(Object.entries(e).map(([e,r])=>[`${e}${t}`,r]))}function K(e){return Object.fromEntries(e)}function q(e){return Object.keys(e)}var Y=r(281),Q=r(1333),Z=r(5390),ee=r(2265);let et="cubic-bezier(0.215, 0.610, 0.355, 1.000)",er=function(e){let t=new WeakMap;return{animations:e,usePresence:Z.oO,ResetPresence:Z.il,supportsCSSVars:!0,useAnimatedNumber(e){let[r,o]=(0,ee.useState)(e);return{getInstance:()=>o,getValue:()=>r,setValue(e,r,l){o(e);let s=t.get(o);s&&s.forEach(t=>t(e)),l?.()},stop(){}}},useAnimatedNumberReaction({value:e},r){(0,ee.useEffect)(()=>{let o=e.getInstance(),l=t.get(o);if(!l){let e=new Set;t.set(o,e),l=e}return l.add(r),()=>{l?.delete(r)}},[])},useAnimatedNumberStyle:(e,t)=>t(e.getValue()),useAnimations:({props:t,presence:r,style:o,componentState:l,stateRef:s})=>{l.unmounted;let n=r?.[0]===!1,a=r?.[1],[i,u]=[].concat(t.animation),h=e[i],d=t.animateOnly??["all"];return(0,Y.LI)(()=>{let e=s.current.host;if(!a||!n||!e)return;let t=()=>{a?.()};return e.addEventListener("transitionend",t),e.addEventListener("transitioncancel",t),()=>{e.removeEventListener("transitionend",t),e.removeEventListener("transitioncancel",t)}},[a,n]),h?(Array.isArray(o.transform)&&(o.transform=(0,Q.m)(o.transform)),o.transition=d.map(t=>{let r=e[u?.[t]]??h;return`${t} ${r}`}).join(", "),{style:o}):null}}}({"75ms":"ease-in 75ms","100ms":"ease-in 100ms","200ms":"ease-in 200ms",bouncy:"ease-in 200ms",superBouncy:"ease-in 500ms",lazy:"ease-in 1000ms",medium:"ease-in 300ms",slow:"ease-in 500ms",quick:`${et} 400ms`,quicker:`${et} 300ms`,quickest:`${et} 200ms`,tooltip:"ease-in 400ms"}),eo=["100","200","300","400","500","600","700","800","900"],el=(e,t,r)=>{if("string"==typeof e)return e;let o=Object.keys(e),l=e[o[0]];return Object.fromEntries([...new Set([...t,...o])].map(t=>{let o=e[t]??r??l;return l=o,r=o,[t,o]}))},es=e=>{let t=Object.keys(e.size);return Object.freeze(Object.fromEntries(Object.entries(e).map(([r,o])=>[r,el(o,"face"===r?eo:t,"face"===r?{normal:e.family}:void 0)])))};var en=r(2202);let ea=(e={},{sizeLineHeight:t=e=>e+10,sizeSize:r=e=>1*e}={})=>{let o=Object.fromEntries(Object.entries({...ei,...e.size}).map(([e,t])=>[e,r(+t)]));return es({family:Y.$L?'Inter, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif':"Inter",lineHeight:Object.fromEntries(Object.entries(o).map(([e,r])=>[e,t((0,en.Ve)(r))])),weight:{4:"300"},letterSpacing:{4:0},...e,size:o})},ei={1:11,2:12,3:13,4:14,true:14,5:16,6:18,7:20,8:23,9:30,10:46,11:55,12:62,13:72,14:92,15:114,16:134},eu={1:11,2:12,3:13,4:14,5:15,6:16,7:18,8:21,9:28,10:42,11:52,12:62,13:72,14:92,15:114,16:124},eh={1:10,2:11,3:12,4:14,5:15,6:16,7:20,8:22,9:30,10:42,11:52,12:62,13:72,14:92,15:114,16:124},ed=((e={})=>es({family:Y.$L?"Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace":"Silkscreen",size:eu,lineHeight:Object.fromEntries(Object.entries(e.size||eu).map(([e,t])=>[e,"number"==typeof t?Math.round(1.2*t+6):t])),weight:{4:"300"},letterSpacing:{4:1,5:3,6:3,9:-2,10:-3,12:-4},...e}))(),ec=ea({size:{5:13,6:15,9:32,10:44},transform:{6:"uppercase",7:"none"},weight:{6:"400",7:"700"},color:{6:"$colorFocus",7:"$color"},letterSpacing:{5:2,6:1,7:0,8:0,9:-1,10:-1.5,12:-2,14:-3,15:-4},face:{700:{normal:"InterBold"},800:{normal:"InterBold"},900:{normal:"InterBold"}}},{sizeLineHeight:e=>Math.round(1.1*e+(e<30?10:5))}),ef=ea({weight:{1:"400",7:"600"}},{sizeSize:e=>Math.round(e),sizeLineHeight:e=>Math.round(1.1*e+(e>=12?8:4))}),em=function(e,t={},{sizeLineHeight:r=e=>1.35*e}={}){let o=t.size||eh;return es({family:e,size:o,lineHeight:Object.fromEntries(Object.entries(o).map(([e,t])=>[e,r(+t)])),weight:{0:"300"},letterSpacing:{4:0},...t})}('"ui-monospace", "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',{weight:{1:"500"},size:{1:11,2:12,3:13,4:14,5:16,6:18,7:20,8:22,9:30,10:42,11:52,12:62,13:72,14:92,15:114,16:124}},{sizeLineHeight:e=>1.5*e});var eg=r(9533);let eb=globalThis.matchMedia,ep=($={xl:{maxWidth:1650},lg:{maxWidth:1280},md:{maxWidth:1020},sm:{maxWidth:800},xs:{maxWidth:660},xxs:{maxWidth:390},gtXs:{minWidth:661},gtSm:{minWidth:801},gtMd:{minWidth:1021},gtLg:{minWidth:1281},gtXl:{minWidth:1651}},(0,eg.D)(eb),$);var ek=r(357);globalThis.global||=globalThis;let ev={animations:er,defaultFont:"body",shouldAddPrefersColorThemes:!0,themeClassNameOnRoot:!0,themes:"true"===ek.env.TAMAGUI_OPTIMIZE_THEMES?{}:D,media:ep,shorthands:o,tokens:J,fonts:{heading:ec,body:ef,mono:em,silkscreen:ed},mediaQueryDefaultActive:{xl:!0,lg:!0,md:!0,sm:!0,xs:!0,xxs:!1},selectionStyles:e=>e.color5?{backgroundColor:e.color5,color:e.color11}:null}},7104:function(e,t,r){r.d(t,{D:function(){return n}});var o=r(8338),l=r(2202);let s=new WeakMap,n=(e,t="",r=!1)=>{if(s.has(e))return e;let a={},i=0;for(let s in e){i++;let u=e[s],h="$"===s[0],d=h?s:`$${s}`,c=h?d.slice(1):s;if((0,l.cG)(u)){a[c]=u;continue}let f=(0,o.M)(c),m=r?f.slice(0,2):i;if(m=t?`${t}-${m}`:f,u&&"object"==typeof u){a[c]=n(e[c],m,!1);continue}let g=(0,l.cG)(u)?u:(0,l.Os)({val:u,name:m,key:d});a[c]=g}return s.set(a,!0),a}},3742:function(e,t,r){r.d(t,{KO:function(){return u}});var o=r(2265),l=r(9910);let s=(0,o.createContext)(void 0),n=e=>{let t=(0,o.useContext)(s);return(null==e?void 0:e.store)||t||(0,l.K7)()},a=e=>"function"==typeof(null==e?void 0:e.then),i=o.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e});function u(e,t){return[function(e,t){let r=n(t),[[l,s,u],h]=(0,o.useReducer)(t=>{let o=r.get(e);return Object.is(t[0],o)&&t[1]===r&&t[2]===e?t:[o,r,e]},void 0,()=>[r.get(e),r,e]),d=l;(s!==r||u!==e)&&(h(),d=r.get(e));let c=null==t?void 0:t.delay;return(0,o.useEffect)(()=>{let t=r.sub(e,()=>{if("number"==typeof c){setTimeout(h,c);return}h()});return h(),t},[r,e,c]),(0,o.useDebugValue)(d),a(d)?i(d):d}(e,t),function(e,t){let r=n(t);return(0,o.useCallback)(function(){for(var t=arguments.length,o=Array(t),l=0;lr};return"function"==typeof e?o.read=e:(o.init=e,o.read=n,o.write=a),t&&(o.write=t),o}function n(e){return e(this)}function a(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}let i=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,u=e=>"init"in e,h=e=>!!e.write,d=new WeakMap,c=(e,t)=>{d.set(e,t),e.catch(()=>{}).finally(()=>d.delete(e))},f=(e,t)=>{let r=d.get(e);r&&(d.delete(e),r(t))},m=(e,t)=>{e.status="fulfilled",e.value=t},g=(e,t)=>{e.status="rejected",e.reason=t},b=e=>"function"==typeof(null==e?void 0:e.then),p=(e,t)=>!!e&&"v"in e&&"v"in t&&Object.is(e.v,t.v),k=(e,t)=>!!e&&"e"in e&&"e"in t&&Object.is(e.e,t.e),v=e=>!!e&&"v"in e&&e.v instanceof Promise,y=(e,t)=>"v"in e&&"v"in t&&e.v.orig&&e.v.orig===t.v.orig,w=e=>{if("e"in e)throw e.e;return e.v},$=()=>{let e,t;let r=new WeakMap,o=new WeakMap,l=[],s=new WeakMap;e=new Set,t=new Set;let n=e=>r.get(e),a=(e,t)=>{t.d.forEach((t,r)=>{var o;if(!s.has(r)){let e=n(r);null==(o=l[l.length-1])||o.add(r),s.set(r,[e,new Set]),e&&a(r,e)}s.get(r)[1].add(e)})},d=(e,t)=>{var o;Object.freeze(t);let i=n(e);if(r.set(e,t),s.has(e)||(null==(o=l[l.length-1])||o.add(e),s.set(e,[i,new Set]),a(e,t)),v(i)){let e="v"in t?t.v instanceof Promise?t.v:Promise.resolve(t.v):Promise.reject(t.e);i.v!==e&&f(i.v,e)}},$=(e,t,r,o)=>{let l=new Map(o?t.d:null),s=!1;r.forEach((r,o)=>{!r&&i(e,o)&&(r=t),r?(l.set(o,r),t.d.get(o)!==r&&(s=!0)):console.warn("[Bug] atom state not found")}),(s||t.d.size!==l.size)&&(t.d=l)},C=(e,t,r,o)=>{let l=n(e),s={d:(null==l?void 0:l.d)||new Map,v:t};if(r&&$(e,s,r,o),p(l,s)&&l.d===s.d)return l;if(v(l)&&v(s)&&y(l,s)){if(l.d===s.d)return l;s.v=l.v}return d(e,s),s},S=(e,t,r,l)=>{if(b(t)){let s;let a=()=>{let t=n(e);if(!v(t)||t.v!==i)return;let l=C(e,i,r);o.has(e)&&t.d!==l.d&&H(e,l,t.d)},i=new Promise((e,r)=>{let o=!1;t.then(t=>{o||(o=!0,m(i,t),e(t),a())},e=>{o||(o=!0,g(i,e),r(e),a())}),s=t=>{o||(o=!0,t.then(e=>m(i,e),e=>g(i,e)),e(t))}});return i.orig=t,i.status="pending",c(i,e=>{e&&s(e),null==l||l()}),C(e,i,r,!0)}return C(e,t,r)},_=(e,t,r)=>{let o=n(e),l={d:(null==o?void 0:o.d)||new Map,e:t};return(r&&$(e,l,r),k(o,l)&&o.d===l.d)?o:(d(e,l),l)},O=(e,t)=>{let r,l;let s=n(e);if(!t&&s&&(o.has(e)||Array.from(s.d).every(([t,r])=>{if(t===e)return!0;let o=O(t);return o===r||p(o,r)})))return s;let a=new Map,d=!0;try{let t=e.read(t=>{if(i(e,t)){let e=n(t);if(e)return a.set(t,e),w(e);if(u(t))return a.set(t,void 0),t.init;throw Error("no atom init")}let r=O(t);return a.set(t,r),w(r)},{get signal(){return r||(r=new AbortController),r.signal},get setSelf(){return h(e)||console.warn("setSelf function cannot be used with read-only atom"),!l&&h(e)&&(l=(...t)=>{if(d&&console.warn("setSelf function cannot be called in sync"),!d)return T(e,...t)}),l}});return S(e,t,a,()=>null==r?void 0:r.abort())}catch(t){return _(e,t,a)}finally{d=!1}},j=e=>{let t=e=>{var t,r;let l=new Set(null==(t=o.get(e))?void 0:t.t);return null==(r=s.get(e))||r[1].forEach(e=>{l.add(e)}),l},r=[],l=new Set,a=e=>{if(!l.has(e)){for(let r of(l.add(e),t(e)))e!==r&&a(r);r.push(e)}};a(e);let i=new Set([e]);for(let e=r.length-1;e>=0;--e){let t=r[e],o=n(t);if(!o)continue;let l=!1;for(let e of o.d.keys())if(e!==t&&i.has(e)){l=!0;break}l&&!p(o,O(t,!0))&&i.add(t)}},E=(t,...r)=>t.write(e=>w(O(e)),(r,...o)=>{let s;let a=l.length>0;if(a||l.push(new Set([r])),i(t,r)){if(!u(r))throw Error("atom not writable");p(n(r),S(r,o[0]))||j(r)}else s=E(r,...o);if(!a){let t=F(l.pop());e.forEach(e=>e({type:"async-write",flushed:t}))}return s},...r),T=(t,...r)=>{l.push(new Set([t]));let o=E(t,...r),s=F(l.pop());return e.forEach(e=>e({type:"write",flushed:s})),o},P=(e,r,l)=>{var s;let a=o.get(e);if(a)return r&&a.t.add(r),a;let i=l||[];null==(s=n(e))||s.d.forEach((t,r)=>{r!==e&&P(r,e,i)}),O(e);let u={t:new Set(r&&[r]),l:new Set};if(o.set(e,u),t.add(e),h(e)&&e.onMount){let{onMount:t}=e;i.push(()=>{let r=t((...t)=>T(e,...t));r&&(u.u=r)})}return l||i.forEach(e=>e()),u},x=(e,t)=>!t.l.size&&(!t.t.size||1===t.t.size&&t.t.has(e)),M=(e,r)=>{if(!x(e,r))return;let l=r.u;l&&l(),o.delete(e),t.delete(e);let s=n(e);s?(v(s)&&f(s.v),s.d.forEach((t,r)=>{if(r!==e){let t=o.get(r);t&&(t.t.delete(e),M(r,t))}})):console.warn("[Bug] could not find atom state to unmount",e)},H=(e,t,r)=>{let l=new Set(t.d.keys()),s=new Set;null==r||r.forEach((t,r)=>{if(l.has(r)){l.delete(r);return}s.add(r);let n=o.get(r);n&&n.t.delete(e)}),l.forEach(t=>{P(t,e)}),s.forEach(e=>{let t=o.get(e);t&&M(e,t)})},F=e=>{let t;t=new Set;let r=[],l=e=>{var t;if(!s.has(e))return;let[o,a]=s.get(e);s.delete(e),r.push([e,o]),a.forEach(l),null==(t=n(e))||t.d.forEach((e,t)=>l(t))};return e.forEach(l),r.forEach(([e,r])=>{let l=n(e);if(!l){console.warn("[Bug] no atom state to flush");return}if(l!==r){let s=o.get(e);s&&l.d!==(null==r?void 0:r.d)&&H(e,l,null==r?void 0:r.d),s&&!(!v(r)&&(p(r,l)||k(r,l)))&&(s.l.forEach(e=>e()),t.add(e))}}),t};return{get:e=>w(O(e)),set:T,sub:(t,r)=>{let o=P(t),l=F([t]),s=o.l;return s.add(r),e.forEach(e=>e({type:"sub",flushed:l})),()=>{s.delete(r),M(t,o),e.forEach(e=>e({type:"unsub"}))}},dev_subscribe_store:t=>(e.add(t),()=>{e.delete(t)}),dev_get_mounted_atoms:()=>t.values(),dev_get_atom_state:e=>r.get(e),dev_get_mounted:e=>o.get(e),dev_restore_atoms:t=>{for(let[e,r]of(l.push(new Set),t))u(e)&&(S(e,r),j(e));let r=F(l.pop());e.forEach(e=>e({type:"restore",flushed:r}))}}};Symbol("CONTINUE_PROMISE");let C=()=>(o||(o=$(),globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=o),globalThis.__JOTAI_DEFAULT_STORE__!==o&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044")),o)},1564:function(e,t,r){r.d(t,{_:function(){return w}});var o=r(281),l=r(5986),s=r(7104),n=r(8338),a=r(9242),i=r(2202),u=r(357);let h=e=>{c.set((0,i.Ve)(e),e)},d=(e,t=!1)=>`--${u.env.TAMAGUI_CSS_VARIABLE_PREFIX||""}${(0,i.bK)(e.name,!1)}:${t||"number"!=typeof e.val?e.val:`${e.val}px`}`,c=new Map;var f=r(357);let m=".t_dark",g=".t_light",b=e=>e===m||e===g||e.startsWith(".t_dark ")||e.startsWith(".t_light ");var p=r(7393);let k={};var v=r(9097);let y=new WeakMap,w=function(e){let t;if(y.has(e))return e;let r={},u=(0,s.D)(e.tokens||{});if(e.tokens){let e={};for(let t in u){r[t]={},e[t]={};let o=u[t];for(let l in o){let s=o[l],n=`$${l}`;r[t][n]=s,e[t][n]=s,e[t][l]=s}}(0,l.d0)(e)}if(e.themes){let o=0===Object.keys(e.themes).length;t=(0,p.jc)(o,r)}(0,p.OJ)();let w=null,$;if(e.fonts){let t=Object.fromEntries(Object.entries(e.fonts).map(([e,t])=>[e,(0,s.D)(t,"f",!0)]));$=(()=>{let e={};for(let r in t){let o=function(e){let t={};for(let r in e){let o=e[r];if("family"===r||"face"===r)t[r]=o;else for(let e in t[r]={},o){let l=o[e];l.val?.[0]==="$"&&(l=l.val),t[r][`$${e}`]=l}}return t}(t[r]);e[`$${r}`]=o,!w&&o.size&&(w=new Set(Object.keys(o.size)))}return e})()}let C={},S=(()=>{let r=[],s=[],p={};for(let e in u)for(let t in u[e]){let r=u[e][t];C[`$${e}.${t}`]=r,o.$L&&(h(r),s.push(d(r,"zIndex"===e)))}if(o.$L){let t=function(e,t=""){return`:root${t} {${o}${[...e].join(`;${o}`)}${o}}`};for(let e in $){let t=$[e],[r,o]=e.includes("_")?e.split("_"):[e],l=function(e){let t=[];for(let r in e)if("face"!==r){if("family"===r){let o=e[r];h(o),t.push(d(o))}else for(let o in e[r])if("string"!=typeof e[r][o]){let l=e[r][o];h(l),t.push(d(l))}}return t}(t);p[e]={name:r.slice(1),declarations:l,language:o}}let o=e.cssStyleSeparator||"";if(r.push(t(s)),p)for(let e in p){let{name:o,declarations:l,language:s="default"}=p[e],n=`.font_${o}`,a=`:root .t_lang-${o}-${s} ${n}`,i=t(l,"default"===s?` ${n}, ${a}`:a);r.push(i)}}let v={...e.themes},y=t??function(e){let t=[],r=new Map;for(let o in e){let l=o.startsWith("dark")?"dark":o.startsWith("light")?"light":"",s=e[o],n=l+JSON.stringify(s);if(r.has(n)){r.get(n).names.push(o);continue}let a={...s};for(let e in a)!function(e,t){let r=e[t];(0,i.cG)(r)?r.name!==t&&(e[t]=(0,i.Os)({key:r.name,name:t,val:r.val})):e[t]=(0,i.Os)({key:t,name:t,val:r})}(a,e);let u={names:[o],theme:a};t.push(u),r.set(n,u)}return t}(v);return{themes:function(e){for(let{names:t,theme:r}of e)for(let e of t)k[e]=r;let t={};for(let{names:r,theme:o}of e)for(let e of r){let r=function(e,t){let r=[],o=e.split("_").slice(0,-1).map(e=>(r.push(e),r.join("_"))),s=o.length;return new Proxy(t,{get(e,t){if(!t||"undefined"==t||Reflect.has(e,t))return Reflect.get(e,t);for(let e=s-1;e>=0;e--){let r=k[o[e]];if(r&&Reflect.has(r,t))return Reflect.get(r,t)}return(0,l.p_)(t)}})}(e,o);t[e]=r}return t}(y),cssRuleSets:r,getThemeRulesSets(){let t=[];if(o.$L)for(let{names:r,theme:o}of y)t=[...t,...function(e){let t=[];if(!f.env.TAMAGUI_DOES_SSR_CSS||"mutates-themes"===f.env.TAMAGUI_DOES_SSR_CSS||"false"===f.env.TAMAGUI_DOES_SSR_CSS){let{config:r,themeName:o,theme:l,names:s}=e,u=e.hasDarkLight??(r.themes&&("light"in r.themes||"dark"in r.themes)),h=`.${a.nx}`,d="";for(let e in l){let t=l[e],r=null;r=c.has(t.val)?c.get(t.val).variable:t.val,d+=`--${f.env.TAMAGUI_CSS_VARIABLE_PREFIX||""}${(0,n.M)(e,40)}:${r};`}let p="dark"===o,k="light"===o,v=s.map(e=>`${h}${e}`),y=new Set(p||k?v:[]);if(u){let e=r.maxDarkLightNesting??3;for(let t of s){let r=p||t.startsWith("dark_"),o=!r&&(k||t.startsWith("light_"));if(!(r||o)){y.add(`${h}${t}`);continue}let l=`${h}${t.replace(/^(dark|light)_/,"")}`,[s,n]=r?["dark","light"]:["light","dark"],a=Math.round(1.5*e);for(let e=0;e`${h}${t%2==0?s:n}`),o=r.length>1?r.slice(1):r;if(t){let[e,t,...r]=o;o=[t,...r,t]}let a=l===o[o.length-1]?"":l;y.add(`${o.join(" ")} ${a}`.trim())}}}let w=[...y].sort((e,t)=>e.localeCompare(t)),$=`${w.map(e=>`:root${b(e)&&r.themeClassNameOnRoot?"":" "}${e}`).join(", ")} {${d}}`;if(t.push($),r.shouldAddPrefersColorThemes){let e=l.background?`background:${(0,i.lk)(l.background)};`:"",r=l.color?`color:${(0,i.lk)(l.color)}`:"",s=`body{${e}${r}}`,n=o.startsWith("dark"),a=`${w.map(e=>e==m||e===g?":root":n&&e.startsWith(g)||!n&&e.startsWith(m)?void 0:e.replace(/^\.t_(dark|light) /,"").trim()).filter(Boolean).join(", ")} {${d}}`,u=`@media(prefers-color-scheme:${n?"dark":"light"}){ - ${s} - ${a} - }`;t.push(u)}if(r.selectionStyles){let e=r.selectionStyles(l);if(e){let r=v.map(e=>`${e} ::selection`).join(", "),o=Object.entries(e).flatMap(([e,t])=>t?`${"backgroundColor"===e?"background":e}:${(0,i.lk)(t)}`:[]).join(";");if(o){let e=`${r}{${o}}`;t.push(e)}}}}return t}({config:e,themeName:r[0],names:r,theme:o})];return t}}})(),_=e.shorthands||{},O=-1,j=(e={})=>{let{separator:t=` -`,sinceLastCall:r,exclude:o}=e;if(r&&O>=0){let e=(0,p.UY)();return O=e.length,e.slice(O).join(t)}O=0;let l=(0,p.UY)().join(t);return"design-system"===o?l:`._ovs-contain {overscroll-behavior:contain;} -.is_Text .is_Text {display:inline-flex;} -._dsp_contents {display:contents;} -${S.cssRuleSets.join(t)} -${o?"":S.getThemeRulesSets().join(t)} -${l}`},E=e.defaultFont||e.fonts&&("body"in e.fonts?"body":"");!E&&e.fonts&&(E=Object.keys(e.fonts)[0]),E?.[0]==="$"&&(E=E.slice(1));let T=`$${E}`,P={fonts:{},onlyAllowShorthands:!1,fontLanguages:[],animations:{},media:{},...e,unset:{fontFamily:e.defaultFont?T:void 0,...e.unset},settings:{webContainerType:"inline-size",...e.settings},tokens:u,shorthands:_,inverseShorthands:_?Object.fromEntries(Object.entries(_).map(([e,t])=>[t,e])):{},themes:S.themes,fontsParsed:$||{},themeConfig:S,tokensParsed:r,parsed:!0,getNewCSS:e=>j({...e,sinceLastCall:!0}),getCSS:j,defaultFont:T,fontSizeTokens:w||new Set,specificTokens:C};return(0,v.jl)(P),(0,l.v6)(P),y.set(P,!0),l.zG.size&&(l.zG.forEach(e=>e(P)),l.zG.clear()),P}},6608:function(e,t,r){r.d(t,{r:function(){return f}});var o=r(281),l=r(2265),s=r(7562),n=r(9097),a=r(9242),i=r(1130),u=r(2281);let h=e=>(o.C5&&(0,l.useLayoutEffect)(()=>{if(e.disableRootThemeClass)return;let t=`${a.nx}${e.defaultTheme}`,r=e.themeClassNameOnRoot?document.documentElement:document.body;return r.classList.add(t),()=>{r.classList.remove(t)}},[e.defaultTheme,e.disableRootThemeClass,e.themeClassNameOnRoot]),(0,u.jsx)(i.Q,{className:e.className,name:e.defaultTheme,forceClassName:!e.disableRootThemeClass,_isRoot:!0,children:e.children}));function d({children:e,disableInjectCSS:t,config:r,...a}){return(0,n.yL)(),o.C5&&l.useInsertionEffect(()=>{if(r&&(r.disableSSR||document.documentElement.classList.contains("t_unmounted")&&document.documentElement.classList.remove("t_unmounted"),!t)){let e=document.createElement("style");return e.appendChild(document.createTextNode(r.getCSS())),document.head.appendChild(e),()=>{document.head.removeChild(e)}}},[r,t]),(0,u.jsx)(s.s.Provider,{animationDriver:r?.animations,children:(0,u.jsx)(h,{themeClassNameOnRoot:r?.themeClassNameOnRoot,disableRootThemeClass:r?.disableRootThemeClass,...a,defaultTheme:a.defaultTheme??(r?Object.keys(r.themes)[0]:""),children:e})})}d.displayName="TamaguiProvider";var c=r(4624);let f=({children:e,...t})=>(0,u.jsx)(d,{...t,children:(0,u.jsx)(c.Xp,{shouldAddRootHost:!0,children:e})})}}]); \ No newline at end of file diff --git a/_next/static/chunks/143-a7c9eb267a2325a2.js b/_next/static/chunks/143-a7c9eb267a2325a2.js deleted file mode 100644 index 519c25f60050022bb6924a00afaf472c08424429..0000000000000000000000000000000000000000 --- a/_next/static/chunks/143-a7c9eb267a2325a2.js +++ /dev/null @@ -1,7 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[143],{44:function(e){"use strict";let t;function n(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function r(e,t,r){let i=r<.5?r*(1+t):r+t-r*t,o=2*r-i;return Math.round(255*n(o,i,e+1/3))<<24|Math.round(255*n(o,i,e))<<16|Math.round(255*n(o,i,e-1/3))<<8}let i="[-+]?\\d*\\.?\\d+",o=i+"%";function a(...e){return"\\(\\s*("+e.join(")\\s*,?\\s*(")+")\\s*\\)"}function s(...e){return"\\(\\s*("+e.slice(0,e.length-1).join(")\\s*,?\\s*(")+")\\s*/\\s*("+e[e.length-1]+")\\s*\\)"}function l(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}function u(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function c(e){return(parseFloat(e)%360+360)%360/360}function f(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function d(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}e.exports=function(e){let p;if("number"==typeof e)return e>>>0===e&&e>=0&&e<=4294967295?e:null;if("string"!=typeof e)return null;let h=(void 0===t&&(t={rgb:RegExp("rgb"+a(i,i,i)),rgba:RegExp("rgba("+l(i,i,i,i)+"|"+s(i,i,i,i)+")"),hsl:RegExp("hsl"+a(i,o,o)),hsla:RegExp("hsla("+l(i,o,o,i)+"|"+s(i,o,o,i)+")"),hwb:RegExp("hwb"+a(i,o,o)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),t);if(p=h.hex6.exec(e))return parseInt(p[1]+"ff",16)>>>0;let m=function(e){switch(e){case"transparent":return 0;case"aliceblue":return 4042850303;case"antiquewhite":return 4209760255;case"aqua":case"cyan":return 16777215;case"aquamarine":return 2147472639;case"azure":return 4043309055;case"beige":return 4126530815;case"bisque":return 4293182719;case"black":return 255;case"blanchedalmond":return 4293643775;case"blue":return 65535;case"blueviolet":return 2318131967;case"brown":return 2771004159;case"burlywood":return 3736635391;case"burntsienna":return 3934150143;case"cadetblue":return 1604231423;case"chartreuse":return 2147418367;case"chocolate":return 3530104575;case"coral":return 4286533887;case"cornflowerblue":return 1687547391;case"cornsilk":return 4294499583;case"crimson":return 3692313855;case"darkblue":return 35839;case"darkcyan":return 9145343;case"darkgoldenrod":return 3095792639;case"darkgray":case"darkgrey":return 2846468607;case"darkgreen":return 6553855;case"darkkhaki":return 3182914559;case"darkmagenta":return 2332068863;case"darkolivegreen":return 1433087999;case"darkorange":return 4287365375;case"darkorchid":return 2570243327;case"darkred":return 2332033279;case"darksalmon":return 3918953215;case"darkseagreen":return 2411499519;case"darkslateblue":return 1211993087;case"darkslategray":case"darkslategrey":return 793726975;case"darkturquoise":return 13554175;case"darkviolet":return 2483082239;case"deeppink":return 4279538687;case"deepskyblue":return 12582911;case"dimgray":case"dimgrey":return 1768516095;case"dodgerblue":return 512819199;case"firebrick":return 2988581631;case"floralwhite":return 4294635775;case"forestgreen":return 579543807;case"fuchsia":case"magenta":return 4278255615;case"gainsboro":return 3705462015;case"ghostwhite":return 4177068031;case"gold":return 4292280575;case"goldenrod":return 3668254975;case"gray":case"grey":return 2155905279;case"green":return 8388863;case"greenyellow":return 2919182335;case"honeydew":return 4043305215;case"hotpink":return 4285117695;case"indianred":return 3445382399;case"indigo":return 1258324735;case"ivory":return 4294963455;case"khaki":return 4041641215;case"lavender":return 3873897215;case"lavenderblush":return 4293981695;case"lawngreen":return 2096890111;case"lemonchiffon":return 4294626815;case"lightblue":return 2916673279;case"lightcoral":return 4034953471;case"lightcyan":return 3774873599;case"lightgoldenrodyellow":return 4210742015;case"lightgray":case"lightgrey":return 3553874943;case"lightgreen":return 2431553791;case"lightpink":return 4290167295;case"lightsalmon":return 4288707327;case"lightseagreen":return 548580095;case"lightskyblue":return 2278488831;case"lightslategray":case"lightslategrey":return 2005441023;case"lightsteelblue":return 2965692159;case"lightyellow":return 4294959359;case"lime":return 16711935;case"limegreen":return 852308735;case"linen":return 4210091775;case"maroon":return 2147483903;case"mediumaquamarine":return 1724754687;case"mediumblue":return 52735;case"mediumorchid":return 3126187007;case"mediumpurple":return 2473647103;case"mediumseagreen":return 1018393087;case"mediumslateblue":return 2070474495;case"mediumspringgreen":return 16423679;case"mediumturquoise":return 1221709055;case"mediumvioletred":return 3340076543;case"midnightblue":return 421097727;case"mintcream":return 4127193855;case"mistyrose":return 4293190143;case"moccasin":return 4293178879;case"navajowhite":return 4292783615;case"navy":return 33023;case"oldlace":return 4260751103;case"olive":return 2155872511;case"olivedrab":return 1804477439;case"orange":return 4289003775;case"orangered":return 4282712319;case"orchid":return 3664828159;case"palegoldenrod":return 4008225535;case"palegreen":return 2566625535;case"paleturquoise":return 2951671551;case"palevioletred":return 3681588223;case"papayawhip":return 4293907967;case"peachpuff":return 4292524543;case"peru":return 3448061951;case"pink":return 4290825215;case"plum":return 3718307327;case"powderblue":return 2967529215;case"purple":return 2147516671;case"rebeccapurple":return 1714657791;case"red":return 4278190335;case"rosybrown":return 3163525119;case"royalblue":return 1097458175;case"saddlebrown":return 2336560127;case"salmon":return 4202722047;case"sandybrown":return 4104413439;case"seagreen":return 780883967;case"seashell":return 4294307583;case"sienna":return 2689740287;case"silver":return 3233857791;case"skyblue":return 2278484991;case"slateblue":return 1784335871;case"slategray":case"slategrey":return 1887473919;case"snow":return 4294638335;case"springgreen":return 16744447;case"steelblue":return 1182971135;case"tan":return 3535047935;case"teal":return 8421631;case"thistle":return 3636451583;case"tomato":return 4284696575;case"turquoise":return 1088475391;case"violet":return 4001558271;case"wheat":return 4125012991;case"white":return 4294967295;case"whitesmoke":return 4126537215;case"yellow":return 4294902015;case"yellowgreen":return 2597139199}return null}(e);return null!=m?m:(p=h.rgb.exec(e))?(u(p[1])<<24|u(p[2])<<16|u(p[3])<<8|255)>>>0:(p=h.rgba.exec(e))?void 0!==p[6]?(u(p[6])<<24|u(p[7])<<16|u(p[8])<<8|f(p[9]))>>>0:(u(p[2])<<24|u(p[3])<<16|u(p[4])<<8|f(p[5]))>>>0:(p=h.hex3.exec(e))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+"ff",16)>>>0:(p=h.hex8.exec(e))?parseInt(p[1],16)>>>0:(p=h.hex4.exec(e))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+p[4]+p[4],16)>>>0:(p=h.hsl.exec(e))?(255|r(c(p[1]),d(p[2]),d(p[3])))>>>0:(p=h.hsla.exec(e))?void 0!==p[6]?(r(c(p[6]),d(p[7]),d(p[8]))|f(p[9]))>>>0:(r(c(p[2]),d(p[3]),d(p[4]))|f(p[5]))>>>0:(p=h.hwb.exec(e))?(255|function(e,t,r){if(t+r>=1){let e=Math.round(255*t/(t+r));return e<<24|e<<16|e<<8}return Math.round(255*(n(0,1,e+1/3)*(1-t-r)+t))<<24|Math.round(255*(n(0,1,e)*(1-t-r)+t))<<16|Math.round(255*(n(0,1,e-1/3)*(1-t-r)+t))<<8}(c(p[1]),d(p[2]),d(p[3])))>>>0:null}},7961:function(){void 0===globalThis.__DEV__&&(globalThis.__DEV__=!1)},357:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(8081)},8081:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],u=!1,c=-1;function f(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&d())}function d(){if(!u){var e=s(f);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;ne.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})}function o(...e){return r.useCallback(i(...e),e)}},281:function(e,t,n){"use strict";n.d(t,{ob:function(){return p},Dt:function(){return f},C5:function(){return s},s:function(){return d},sk:function(){return a},wT:function(){return c},$L:function(){return i},LI:function(){return l}});var r=n(2265);let i=!0,o="u">typeof window,a=!o,s=o,l=a?r.useEffect:r.useLayoutEffect,u=("u">typeof navigator&&/Chrome/.test(navigator.userAgent||""),s&&("ontouchstart"in window||navigator.maxTouchPoints>0)),c=!i||u,f=!1,d=!1,p="web"},2166:function(e,t,n){"use strict";n.d(t,{Kq:function(){return ei},xv:function(){return eo},G7:function(){return er}});var r=n(2265);let i="__reactResponderId",o=!!("u">typeof window&&window.document&&window.document.createElement),a=e=>{if(e&&1===e.nodeType&&e.getBoundingClientRect)return e.getBoundingClientRect()};function s(e){let t=[];for(;null!=e&&e!==document.body;)t.push(e),e=e.parentNode;return t}let l=()=>{},u={},c=[];function f(e){return e>20?e%20:e}function d(e,t){let n,r=!1,i,o,s=e.changedTouches,d=e.type,p=!0===e.metaKey,h=!0===e.shiftKey,m=s?.[0].force||0,g=f(s?.[0].identifier||0),y=s?.[0].clientX||e.clientX,b=s?.[0].clientY||e.clientY,v=s?.[0].pageX||e.pageX,S=s?.[0].pageY||e.pageY,w="function"==typeof e.preventDefault?e.preventDefault.bind(e):l,x=e.timeStamp;function $(e){return Array.prototype.slice.call(e).map(e=>({force:e.force,identifier:f(e.identifier),get locationX(){return C(e.clientX)},get locationY(){return E(e.clientY)},pageX:e.pageX,pageY:e.pageY,target:e.target,timestamp:x}))}if(null!=s)i=$(s),o=$(e.touches);else{let t=[{force:m,identifier:g,get locationX(){return C(y)},get locationY(){return E(b)},pageX:v,pageY:S,target:e.target,timestamp:x}];i=t,o="mouseup"===d||"dragstart"===d?c:t}let T={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:e.defaultPrevented,dispatchConfig:u,eventPhase:e.eventPhase,isDefaultPrevented:()=>e.defaultPrevented,isPropagationStopped:()=>r,isTrusted:e.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:p,shiftKey:h,changedTouches:i,force:m,identifier:g,get locationX(){return C(y)},get locationY(){return E(b)},pageX:v,pageY:S,target:e.target,timestamp:x,touches:o,type:d},persist:l,preventDefault:w,stopPropagation(){r=!0},target:e.target,timeStamp:x,touchHistory:t.touchHistory};function C(e){if(n=n||a(T.currentTarget))return e-n.left}function E(e){if(n=n||a(T.currentTarget))return e-n.top}return T}function p(e){return"touchstart"===e||"mousedown"===e}function h(e){return"touchmove"===e||"mousemove"===e}function m(e){return"touchend"===e||"mouseup"===e||g(e)}function g(e){return"touchcancel"===e||"dragstart"===e}class y{_touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};recordTouchTrack(e,t){let n=this._touchHistory;if(h(e))t.changedTouches.forEach(e=>(function(e,t){let n=t.touchBank[v(e)];n?(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=b(e),t.mostRecentTimeStamp=b(e)):console.warn(`Cannot record touch move without a touch start. -`,`Touch Move: ${S(e)} -`,`Touch Bank: ${w(t)}`)})(e,n));else if(p(e))t.changedTouches.forEach(e=>(function(e,t){let n=v(e),r=t.touchBank[n];r?(r.touchActive=!0,r.startPageX=e.pageX,r.startPageY=e.pageY,r.startTimeStamp=b(e),r.currentPageX=e.pageX,r.currentPageY=e.pageY,r.currentTimeStamp=b(e),r.previousPageX=e.pageX,r.previousPageY=e.pageY,r.previousTimeStamp=b(e)):t.touchBank[n]={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:b(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:b(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:b(e)},t.mostRecentTimeStamp=b(e)})(e,n)),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches&&(n.indexOfSingleActiveTouch=t.touches[0].identifier);else if(m(e)&&(t.changedTouches.forEach(e=>(function(e,t){let n=t.touchBank[v(e)];n?(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=b(e),t.mostRecentTimeStamp=b(e)):console.warn(`Cannot record touch end without a touch start. -`,`Touch End: ${S(e)} -`,`Touch Bank: ${w(t)}`)})(e,n)),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches)){let{touchBank:e}=n;for(let t=0;t20&&(n+=` (original size: ${t.length})`),n}let x={},$=["onStartShouldSetResponderCapture","onStartShouldSetResponder",{bubbles:!0}],T=["onMoveShouldSetResponderCapture","onMoveShouldSetResponder",{bubbles:!0}],C={touchstart:$,mousedown:$,touchmove:T,mousemove:T,scroll:["onScrollShouldSetResponderCapture","onScrollShouldSetResponder",{bubbles:!1}]},E={id:null,idPath:null,node:null},R=new Map,k=!1,P=0,N={id:null,node:null,idPath:null},O=new y;function L(e){return R.get(e)??x}function _(e){let t=e.type,n=e.target;if("touchstart"===t&&(k=!0),("touchmove"===t||P>1)&&(k=!1),"mousedown"===t&&k||"mousemove"===t&&k||"mousemove"===t&&P<1)return;if(k&&"mouseup"===t){0===P&&(k=!1);return}let r=p(t)&&function(e){let{altKey:t,button:n,buttons:r,ctrlKey:i,type:o}=e,a=!1===t&&!1===i;return!!("touchstart"===o||"touchmove"===o||"mousedown"===o&&(0===n||1===r)&&a||"mousemove"===o&&1===r&&a)}(e),o=h(t),a=m(t),l="scroll"===t,u="select"===t||"selectionchange"===t,c=d(e,O);(r||o||a)&&(e.touches?P=e.touches.length:r?P=1:a&&(P=0),O.recordTouchTrack(t,c.nativeEvent));let f=function(e){let t=[],n=[],r="selectionchange"===e.type?s(window.getSelection()?.anchorNode):null!=e.composedPath?e.composedPath():s(e.target);for(let e=0;e0){let t=N.idPath,n=f.idPath;if(null!=t&&null!=n){let e=function(e,t){let n=e.length,r=t.length;if(0===n||0===r||e[n-1]!==t[r-1])return null;let i=e[0],o=0,a=t[0],s=0;n-r>0&&(i=e[o=n-r],n=r),r-n>0&&(a=t[s=r-n],r=n);let l=n;for(;l--;){if(i===a)return i;i=e[o++],a=t[s++]}return null}(t,n);if(null!=e){let t=n.indexOf(e)+(e===N.id?1:0);f={idPath:n.slice(t),nodePath:f.nodePath.slice(t)}}else f=null}null!=f&&null!=(b=function(e,t,n){let r=C[t.type];if(null!=r){let{idPath:i,nodePath:o}=e,a=r[0],s=r[1],{bubbles:l}=r[2],u=(e,t,r)=>{let o=L(e)[r];if(null!=o&&(n.currentTarget=t,!0===o(n))){let n=i.slice(i.indexOf(e));return{id:e,node:t,idPath:n}}};for(let e=i.length-1;e>=0;e--){let t=u(i[e],o[e],a);if(null!=t)return t;if(!0===n.isPropagationStopped())return}if(l)for(let e=0;e=1&&t!==` -`&&!!i}():"select"===e.type),i=a&&!r&&!function(e,t){if(!t||0===t.length)return!1;for(let n=0;n{if(!(!e||1!==e.nodeType))return e.getBoundingClientRect?.()},U=new WeakMap,K=new Set,Q=null;if("u">typeof window&&"ResizeObserver"in window&&(Q=new ResizeObserver(e=>{for(let{target:t}of e){let e=U.get(t);if("function"!=typeof e)return;q(t).then(t=>{e(t)})}}),"function"==typeof window.addEventListener)){let e;window.addEventListener("resize",()=>{clearTimeout(e),e=setTimeout(()=>{K.forEach(e=>e())},4)})}let q=async e=>new Promise(t=>{J(e,null,(n,r,i,o,a,s)=>{t({nativeEvent:{layout:{x:n,y:r,width:i,height:o,left:a,top:s},target:e},timeStamp:Date.now()})})}),Z=new WeakMap,J=(e,t,n)=>{let r=t||e?.parentNode;if(r instanceof HTMLElement){let t=Date.now();Z.set(e,t),Promise.all([et(e),et(r)]).then(([r,i])=>{if(i&&r&&Z.get(e)===t){let{x:e,y:t,width:o,height:a,left:s,top:l}=ee(r,i);n(e,t,o,a,s,l)}})}},ee=(e,t)=>{let{height:n,left:r,top:i,width:o}=e;return{x:r-t.left,y:i-t.top,width:o,height:n,left:r,top:i}},et=e=>new Promise(t=>{let n=setTimeout(function(){t(G(e))},10);new IntersectionObserver((e,r)=>{clearTimeout(n),r.disconnect(),t(e[0]?.boundingClientRect)},{threshold:1e-4}).observe(e)}),en=e=>{let t=G(e);if(!t)return;let{x:n,y:r,top:i,left:o}=t;return{x:n,y:r,width:e.offsetWidth,height:e.offsetHeight,top:i,left:o}};X(),(0,z.b)({getBaseViews:X,usePropsTransform(e,t,n,a){{let l="string"==typeof e,{onMoveShouldSetResponder:u,onMoveShouldSetResponderCapture:c,onResponderEnd:f,onResponderGrant:d,onResponderMove:p,onResponderReject:h,onResponderRelease:m,onResponderStart:g,onResponderTerminate:y,onResponderTerminationRequest:b,onScrollShouldSetResponder:v,onScrollShouldSetResponderCapture:S,onSelectionChangeShouldSetResponder:w,onSelectionChangeShouldSetResponderCapture:x,onStartShouldSetResponder:$,onStartShouldSetResponderCapture:T,collapsable:C,focusable:E,accessible:k,accessibilityDisabled:P,onLayout:N,hrefAttrs:O,...L}=t;if(a||l){var s;let e=(0,r.useMemo)(()=>({get current(){return n.current.host}}),[n]);(0,H.LI)(()=>{let t=e.current;t&&(t.measure||=e=>J(t,null,e),t.measureLayout||=(e,n)=>J(t,e,n),t.measureInWindow||=e=>{t&&setTimeout(()=>{let{height:n,left:r,top:i,width:o}=en(t);e(r,i,o,n)},0)})},[e]),s=l?N:void 0,(0,H.LI)(()=>{if(!s)return;let t=e.current;t&&U.set(t,s)},[e,s]),(0,H.LI)(()=>{if(!Q)return;let t=e.current;if(!t||!U.has(t))return;let n=()=>{q(t).then(s)};return K.add(n),Q.observe(t),()=>{K.delete(n),Q?.unobserve(t)}},[e]),function(e,t=W){let n=r.useId(),a=r.useRef(!1);r.useEffect(()=>(o&&!window[j]&&(window.addEventListener("blur",_),M.forEach(e=>{document.addEventListener(e,_)}),A.forEach(e=>{document.addEventListener(e,_,!0)}),window[j]=!0),()=>{I(n)}),[n]),r.useEffect(()=>{let{onMoveShouldSetResponder:r,onMoveShouldSetResponderCapture:o,onScrollShouldSetResponder:s,onScrollShouldSetResponderCapture:l,onSelectionChangeShouldSetResponder:u,onSelectionChangeShouldSetResponderCapture:c,onStartShouldSetResponder:f,onStartShouldSetResponderCapture:d}=t,p=e.current;null!=r||null!=o||null!=s||null!=l||null!=u||null!=c||null!=f||null!=d?(null!=p&&(p[i]=n),R.set(n,t),a.current=!0):a.current&&(I(n),a.current=!1)},[t,e,n])}(e,l?{onMoveShouldSetResponder:u,onMoveShouldSetResponderCapture:c,onResponderEnd:f,onResponderGrant:d,onResponderMove:p,onResponderReject:h,onResponderRelease:m,onResponderStart:g,onResponderTerminate:y,onResponderTerminationRequest:b,onScrollShouldSetResponder:v,onScrollShouldSetResponderCapture:S,onSelectionChangeShouldSetResponder:w,onSelectionChangeShouldSetResponderCapture:x,onStartShouldSetResponder:$,onStartShouldSetResponderCapture:T}:void 0)}if(l){if(L.href&&O){let{download:e,rel:t,target:n}=O;null!=e&&(L.download=e),t&&(L.rel=t),"string"==typeof n&&(L.target="_"!==n.charAt(0)?`_${n}`:n)}return L}}},useEvents(e,t,{pseudos:n},r,i){}});let er=B,ei=D.K,eo=V.x},8338:function(e,t,n){"use strict";n.d(t,{Mj:function(){return a},M:function(){return i},cC:function(){return m},FB:function(){return h},hT:function(){return p},Dc:function(){return f},O0:function(){return c},CV:function(){return u},M6:function(){return g},Qn:function(){return y},$e:function(){return S}});let r=new Map,i=(e,t=10)=>{if(r.has(e))return r.get(e);let n=0,i="",a=e.length;for(let r=0;r=65&&s<=90||s>=97&&s<=122||95===s||45===s||s>=48&&s<=57)&&a<=t)){i+=e[r];continue}n=o(n,e[r])}let s=i+(n?Math.abs(n):"");return r.size>1e4&&r.clear(),r.set(e,s),s},o=(e,t)=>Math.imul(31,e)+t.charCodeAt(0)|0;function a(e,t,{checkDefaultPrevented:n=!0}={}){return e&&t?r=>{if(e?.(r),!r||!(n&&"defaultPrevented"in r)||"defaultPrevented"in r&&!r.defaultPrevented)return t?.(r)}:t||e||void 0}var s=n(281);let l={color:!0,textDecorationColor:!0,textShadowColor:!0},u={radius:{borderRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderStartStartRadius:!0,borderStartEndRadius:!0,borderEndStartRadius:!0,borderEndEndRadius:!0},size:{width:!0,height:!0,minWidth:!0,minHeight:!0,maxWidth:!0,maxHeight:!0},zIndex:{zIndex:!0},color:{backgroundColor:!0,borderColor:!0,borderBlockStartColor:!0,borderBlockEndColor:!0,borderBlockColor:!0,borderBottomColor:!0,borderTopColor:!0,borderLeftColor:!0,borderRightColor:!0,borderEndColor:!0,borderStartColor:!0,shadowColor:!0,...l,outlineColor:!0}},c={WebkitLineClamp:!0,animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},f={x:!0,y:!0,scale:!0,perspective:!0,scaleX:!0,scaleY:!0,skewX:!0,skewY:!0,matrix:!0,rotate:!0,rotateY:!0,rotateX:!0,rotateZ:!0},d={backfaceVisibility:!0,borderBottomEndRadius:!0,borderBottomStartRadius:!0,borderBottomWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderStyle:!0,borderTopEndRadius:!0,borderTopStartRadius:!0,borderTopWidth:!0,borderWidth:!0,transform:!0,transformOrigin:!0,alignContent:!0,alignItems:!0,alignSelf:!0,borderEndWidth:!0,borderStartWidth:!0,bottom:!0,display:!0,end:!0,flexBasis:!0,flexDirection:!0,flexWrap:!0,gap:!0,columnGap:!0,rowGap:!0,justifyContent:!0,left:!0,margin:!0,marginBlockEnd:!0,marginBlockStart:!0,marginInlineEnd:!0,marginInline:!0,marginInlineStart:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,overflow:!0,padding:!0,paddingBottom:!0,paddingInline:!0,paddingBlock:!0,paddingBlockStart:!0,paddingInlineEnd:!0,paddingInlineStart:!0,paddingEnd:!0,paddingHorizontal:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,position:!0,right:!0,start:!0,top:!0,direction:!0,shadowOffset:!0,shadowRadius:!0,...u.color,...u.radius,...u.size,...u.radius,...f,...c,borderBottomStyle:!0,borderTopStyle:!0,borderLeftStyle:!0,borderRightStyle:!0,overflowX:!0,overflowY:!0,userSelect:!0,cursor:!0,contain:!0,pointerEvents:!0,boxSizing:!0,boxShadow:!0,outlineStyle:!0,outlineOffset:!0,outlineWidth:!0,touchAction:!0,...s.Dt?{elevationAndroid:!0}:{}},p={fontFamily:!0,fontSize:!0,fontStyle:!0,fontWeight:!0,letterSpacing:!0,lineHeight:!0,textTransform:!0,textAlign:!0,textDecorationLine:!0,textDecorationStyle:!0,...l,textShadowOffset:!0,textShadowRadius:!0,whiteSpace:!0,wordWrap:!0,textOverflow:!0,textDecorationDistance:!0,userSelect:!0,selectable:!0,cursor:!0,WebkitLineClamp:!0,WebkitBoxOrient:!0},h={...d,...p},m=h,g={enterStyle:!0,exitStyle:!0,hoverStyle:!0,pressStyle:!0,focusStyle:!0,disabledStyle:!0,focusVisibleStyle:!0},y={...g,...d};var b=n(2265);let v=Symbol(),S=(e,t)=>{let n=(()=>{if(e[v]){let t=(0,b.forwardRef)((t,n)=>(0,b.createElement)(e,{...t,ref:n}));for(let n in e){let r=e[n];t[n]=r&&"object"==typeof r?{...r}:r}}return e})();return Object.assign(n,t),n[v]=!0,n}},4624:function(e,t,n){"use strict";let r;n.d(t,{h_:function(){return u},$2:function(){return C},b5:function(){return E},Xp:function(){return $}}),n(7961);var i=n(281),o=n(5377),a=n(2265),s=n(4887),l=n(2281);let u=a.memo(({host:e=globalThis.document?.body,...t})=>{let n=(0,l.jsx)(o.FA,{contain:"strict",fullscreen:!0,position:i.$L?"fixed":"absolute",maxWidth:i.$L?"100vw":"100%",maxHeight:i.$L?"100vh":"100%",pointerEvents:"none",...t}),[r,u]=a.useState(null);return(0,i.LI)(()=>{u(e)},[e]),r&&t.children?(0,s.createPortal)(n,r):null});var c=n(9087),f=n(6616),d=((r=d||{})[r.REGISTER_HOST=0]="REGISTER_HOST",r[r.DEREGISTER_HOST=1]="DEREGISTER_HOST",r[r.ADD_UPDATE_PORTAL=2]="ADD_UPDATE_PORTAL",r[r.REMOVE_PORTAL=3]="REMOVE_PORTAL",r);let p={},h=(e,t)=>(t in e||(e[t]=[]),e),m=(e,t)=>(delete e[t],e),g=(e,t,n,r)=>{t in e||(e=h(e,t));let i=e[t].findIndex(e=>e.name===n);return -1!==i?e[t][i].node=r:e[t].push({name:n,node:r}),e},y=(e,t,n)=>{if(!(t in e))return console.info(`Failed to remove portal '${n}', '${t}' was not registered!`),e;let r=e[t].findIndex(e=>e.name===n);return -1!==r&&e[t].splice(r,1),e},b=(e,t)=>{let{type:n}=t;switch(n){case 0:return h({...e},t.hostName);case 1:return m({...e},t.hostName);case 2:return g({...e},t.hostName,t.portalName,t.node);case 3:return y({...e},t.hostName,t.portalName);default:return e}},v=(0,a.createContext)(null),S=(0,a.createContext)(null),w=e=>{let t=(0,a.useContext)(v);if(null===t)throw Error("'PortalStateContext' cannot be null, please add 'PortalProvider' to the root component.");return t[e]||[]},x=(e="root")=>{let t=(0,a.useContext)(S);if(null===t)throw Error("'PortalDispatchContext' cannot be null, please add 'PortalProvider' to the root component.");let n=(0,a.useCallback)(()=>{t({type:0,hostName:e})},[]),r=(0,a.useCallback)(()=>{t({type:1,hostName:e})},[]),i=(0,a.useCallback)((n,r)=>{t({type:2,hostName:e,portalName:n,node:r})},[]);return{registerHost:n,deregisterHost:r,addPortal:i,updatePortal:i,removePortal:(0,a.useCallback)(n=>{t({type:3,hostName:e,portalName:n})},[])}},$=(0,a.memo)(({rootHostName:e="root",shouldAddRootHost:t=!0,children:n})=>{let[r,i]=(0,a.useReducer)(b,p),o=(0,a.useMemo)(()=>e=>{(0,a.startTransition)(()=>{i(e)})},[i]);return(0,l.jsx)(S.Provider,{value:o,children:(0,l.jsxs)(v.Provider,{value:r,children:[n,t&&(0,l.jsx)(C,{name:e})]})})});$.displayName="PortalProvider";let T=e=>(0,l.jsx)(l.Fragment,{children:e}),C=(0,a.memo)(e=>{let{name:t,forwardProps:n,render:r=T}=e,i=!(0,f.S)(),o=w(t),{registerHost:s,deregisterHost:l}=x(e.name);return(0,a.useEffect)(()=>{if(!i)return s(),()=>{l()}},[i]),r(n?o.map(e=>{let t=e.node;return n?a.Children.map(t,e=>a.isValidElement(e)?a.cloneElement(e,{key:e.key,...n}):e):t}):o.map(e=>e.node))});C.displayName="PortalHost";let E=(0,a.memo)(e=>{let{name:t,hostName:n,handleOnMount:r,handleOnUnmount:o,handleOnUpdate:s,children:l}=e,{addPortal:u,removePortal:f}=x(n),d=(0,a.useId)(),p=t||d,h=(0,c.z)(()=>{r?r(()=>u(p,l)):u(p,l)}),m=(0,c.z)(()=>{o?o(()=>f(p)):f(p)}),g=(0,c.z)(()=>{s?s(()=>u(p,l)):u(p,l)});return(0,i.LI)(()=>(h(),()=>{m()}),[]),(0,a.useEffect)(()=>{g()},[l]),null});E.displayName="Portal"},5377:function(e,t,n){"use strict";n.d(t,{FA:function(){return l},Xu:function(){return a},sL:function(){return u}});var r=n(4975),i=n(2166),o=n(8587);let a={position:"absolute",top:0,left:0,right:0,bottom:0},s={fullscreen:{true:a},elevation:{"...size":o.y,":number":o.y},inset:e=>e&&"object"==typeof e?e:{top:e,left:e,bottom:e,right:e}},l=(0,r.z)(i.G7,{flexDirection:"column",variants:s});l.displayName="YStack";let u=(0,r.z)(i.G7,{flexDirection:"row",variants:s});u.displayName="XStack",(0,r.z)(l,{position:"relative"},{neverFlatten:!0,isZStack:!0}).displayName="ZStack"},8587:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});var r=n(2202),i=n(281);let o=(e,t)=>{if(!e)return;let{tokens:n}=t,i=n.size[e];return a((0,r.cG)(i)?+i.val:e,t)},a=(e,{theme:t,tokens:n})=>{let o=0;if(!0===e){let e=(0,r.Ve)(n.size.true);o="number"==typeof e?e:10}else o=+e;if(0===o)return;let[a,s]=[Math.round(o/4+1),Math.round(o/2+2)];return{shadowColor:t.shadowColor,shadowRadius:s,shadowOffset:{height:a,width:0},...i.Dt?{elevationAndroid:2*a}:{}}}},6616:function(e,t,n){"use strict";n.d(t,{S:function(){return a}});var r=n(2265);let i=()=>{},o=()=>i;function a(e){return(0,r.useSyncExternalStore)(o,()=>e??!0,()=>!1)}},9087:function(e,t,n){"use strict";n.d(t,{z:function(){return a},X:function(){return o}});var r=n(281),i=n(2265);function o(e,t,n){let o=(0,i.useRef)(t??e);return(0,r.LI)(()=>{o.current=e}),(0,i.useCallback)(n?(...e)=>o.current?.apply(null,e):()=>o.current,[])}function a(e){return o(e,s,!0)}let s=()=>{throw Error("Cannot call an event handler while rendering.")}},5390:function(e,t,n){"use strict";n.d(t,{Oy:function(){return o},il:function(){return a},oO:function(){return s}});var r=n(2265),i=n(2281);let o=(0,r.createContext)(null),a=e=>(0,i.jsx)(o.Provider,{value:null,children:e.children});function s(){let e=(0,r.useContext)(o);if(!e)return[!0,null,e];let{id:t,isPresent:n,onExitComplete:i,register:a}=e;return(0,r.useEffect)(()=>a(t),[]),!n&&i?[!1,()=>i?.(t),e]:[!0,void 0,e]}},5986:function(e,t,n){"use strict";let r,i;n.d(t,{RC:function(){return p},Wi:function(){return d},d0:function(){return l},iE:function(){return s},lz:function(){return u},p_:function(){return c},v6:function(){return a},xC:function(){return m},zG:function(){return h}});var o=n(281);let a=e=>{r=e},s=()=>{if(!r)throw Error("Err0");return r};function l(e){i=e}let u=({prefixed:e}={})=>{let{tokens:t,tokensParsed:n}=r;return!1===e?t:!0===e?n:i},c=(e,t)=>r.specificTokens[e]??(t?i[t]?.[e]:i[Object.keys(i).find(t=>i[t][e])||""]?.[e]),f=(e,t,n=o.$L)=>{let r=c(e,t);return n?r?.variable:r?.val},d=(e,t)=>{if(!("unset"===e||"auto"===e))return f(e,t,!1)},p=()=>r.themes,h=new Set,m=e=>{r?e(r):h.add(e)}},9242:function(e,t,n){"use strict";n.d(t,{L2:function(){return r},nx:function(){return i},tn:function(){return o},zm:function(){return a}});let r="_",i="t_",o={},a={display:"flex",alignItems:"stretch",flexDirection:"column",flexBasis:"auto",boxSizing:"border-box",position:"relative",minHeight:0,minWidth:0,flexShrink:0};Object.assign(o,a)},7562:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});let r=(0,n(925).i)({disableSSR:void 0,inText:!1,language:null,animationDriver:null,groups:{emit:null,subscribe:null,state:{}}})},9100:function(e,t,n){"use strict";let r,i;n.d(t,{LZ:function(){return W},LM:function(){return j},P9:function(){return z},En:function(){return X},Ee:function(){return A}});var o=n(9046),a=n(281),s=n(8338),l=n(6616),u=n(2265),c=n(5986),f=n(9242),d=n(7562),p=n(2202);let h={hover:!1,press:!1,pressIn:!1,focus:!1,focusVisible:!1,unmounted:!0,disabled:!1},m={...h,unmounted:!1},g={...h,unmounted:"should-enter"};var y=n(3820),b=n(8075),v=n(1616),S=n(9097),w=n(7440);let x=(e,t,n)=>{let r={};for(let i in e)$(r,e,t,i,n);if(t)for(let e in t)$(r,t,void 0,e,n);return r};function $(e,t,n,r,i){let o=i?.[r]||null,a=t[r];if(r in w.Qy||S.Lk.has(r)){e[r]={...e[r],...a};return}n&&(r in n||o&&o in n)||(e[o||r]=a)}var T=n(9235),C=n(8411),E=n(4283),R=n(2281);let k=(0,u.forwardRef)(function(e,t){let{children:n,...r}=e;if((0,u.isValidElement)(n)){let e=function(e,t){let n=e.props,r={...n},i="string"==typeof e.type;if(i)for(let e in P)e in t&&(t[P[e]]=t[e],delete t[e]);for(let e in n){let o=t[e],a=n[e];i&&e in P&&(e=P[e],delete r[e]),N.test(e)?r[e]=(0,s.Mj)(a,o):"style"===e?r[e]={...o,...a}:"className"===e&&(r[e]=[o,a].filter(Boolean).join(" "))}return{...t,...r}}(n,r);return(0,u.cloneElement)(n,n.type.avoidForwardRef?e:{...e,ref:(0,o.FE)(t,n.ref)})}return u.Children.count(n)>1?u.Children.only(null):null});k.displayName="Slot";let P=a.$L?{onPress:"onClick",onPressOut:"onMouseUp",onPressIn:"onMouseDown"}:{},N=/^on[A-Z]/;var O=n(1130),L=n(357);let _=new Set;if("u">typeof document){let e=()=>{_.forEach(e=>e(e=>e.press||e.pressIn?{...e,press:!1,pressIn:!1}:e)),_.clear()};addEventListener("mouseup",e),addEventListener("touchend",e),addEventListener("touchcancel",e)}let A=(e,{animationDriver:t,groups:n},r,i)=>{var o;let s=t?.useAnimations,c=(0,u.useRef)({}),f=!!("animation"in e||e.style&&Object.keys(o=e.style).some(e=>{let t=o[e];return t&&"object"==typeof t&&"_animation"in t})),d=t?.supportsCSSVars,p=c.current,b=!!(f&&!r.isHOC&&s||p.hasAnimated),S=!a.sk&&b;S&&!p.hasAnimated&&(p.hasAnimated=!0);let w=!!i?.disableSSR||(0,l.S)(),x=S&&!1!==e.animatePresence&&t?.usePresence?.()||null,$=x?.[2],T=$?.isPresent===!1,C=$?.isPresent===!0&&!1!==$.initial,E=!!e.enterStyle,R=f&&t?.isReactNative,k=r.isReactNative,P=S;k||!R||r.isHOC||w||(P=!1,p.willHydrate=!0);let N=!w||!p.host,O=E||C?N?g:h:m,L=V(e);null!=L&&(O.disabled=L);let _=(0,u.useState)(O),A=e.forceStyle?{..._[0],[e.forceStyle]:!0}:_[0],M=_[1];L!==A.disabled&&(A.disabled=L,L&&Object.assign(A,m),M({...A}));let j=(0,y.JL)(M,L,e.debug);if(w&&"should-enter"===A.unmounted&&(A.unmounted=!0),$&&P&&w&&r.variants){let{enterVariant:t,exitVariant:n,enterExitVariant:i,custom:o}=$;(0,v.B)(o)&&Object.assign(e,o);let a=n??i,s=t??i;A.unmounted&&s&&r.variants[s]?e[s]=!0:T&&a&&(e[a]=n!==i)}let I=!!(!a.$L||P&&!d||!r.acceptsClassName||e.disableClassName&&w),W=e.group;if(W&&!p.group){let e=new Set;p.group={listeners:e,emit(t,n){e.forEach(e=>e(t,n))},subscribe:t=>(e.add(t),()=>{e.delete(t)})}}if(W){let e=n.state,t=j;j=n=>{t(n),p.group.emit(W,{pseudo:n});let r={...e[W],...n};e[W]=r}}return{curStateRef:p,disabled:L,groupName:W,hasAnimationProp:f,hasEnterStyle:E,isAnimated:P,isExiting:T,isHydrated:w,presence:x,presenceState:$,setState:M,setStateShallow:j,shouldAvoidClasses:I,state:A,stateRef:c,supportsCSSVars:d,willBeAnimated:S,willBeAnimatedClient:b}},M={value:!1};function j(e){let{componentName:t}=e,n=null,l=e.defaultProps;(0,c.xC)(e=>{if(n=e,t){let n=e.defaultProps?.[t];n&&(l={...n,...l})}});let{Component:f,isText:h,isZStack:g,isHOC:y,validStyles:v={},variants:w={}}=e,$=(0,u.forwardRef)((t,$)=>{let T,P,N,j,W;let F=(0,u.useContext)(d.s),{context:Y,isReactNative:B}=e;if(Y){N=(0,u.useContext)(Y);let{inverseShorthands:e}=(0,c.iE)();for(let n in Y.props){let r=t[n]??t[e[n]]??l?.[n]??l?.[e[n]];void 0===r?N&&(n in v||n in w)&&((T||={})[n]=N[n]):(P||={})[n]=r}}let V=T?{...l,...T}:l,H=t;V&&(H=x(V,t));let G=H.debug,U=H.componentName||e.componentName;L.env.TAMAGUI_IS_CORE_NODE;let K=F.animationDriver,Q=K?.useAnimations,{curStateRef:q,disabled:Z,groupName:J,hasAnimationProp:ee,hasEnterStyle:et,isAnimated:en,isExiting:er,isHydrated:ei,presence:eo,presenceState:ea,setState:es,setStateShallow:el,shouldAvoidClasses:eu,state:ec,stateRef:ef,supportsCSSVars:ed,willBeAnimated:ep,willBeAnimatedClient:eh}=A(H,F,e,n),em=!!t.forceStyle,eg=eu||em,ey=!!(a.$L&&h&&F.inText),eb=!f||"string"==typeof f,ev=H.tag,eS=a.$L&&eb&&ev||f,ew=h?r||eS||"span":i||eS||(ey?"span":"div");K&&en&&(ew=K[h?"Text":"View"]||ew);let ex=H["data-disable-theme"]||y;H.themeShallow&&(q.themeShallow=!0);let e$={name:H.theme,componentName:U,disable:ex,shallow:q.themeShallow,inverse:H.themeInverse,debug:G};"boolean"==typeof q.isListeningToTheme&&(e$.shouldUpdate=()=>ef.current.isListeningToTheme);let[eT,eC]=(0,C.WU)(e$);ew=f||ew;let eE=(0,S.GS)(ef,F);(0,p.zY)(!1);let eR={mediaState:eE,noClassNames:eg,resolveValues:en&&!ed||y&&!1==ec.unmounted&&ee?"value":"auto",isExiting:er,isAnimated:en},ek=(0,b.DP)(H,e,eC,eT?.state?.name||"",ec,eR,null,F,ew,G);H.group&&"hide"===H.untilMeasured&&!q.hasMeasured&&(ek.style||={},ek.style.opacity=0),q.isListeningToTheme=ek.dynamicThemeAccess;let eP=ek.hasMedia&&Array.isArray(ek.hasMedia),eN=(0,p.yx)()||eP||eg&&!0===ek.hasMedia,eO=eP?ek.hasMedia:null;(0,S.Zv)(ef,{enabled:eN,keys:eO});let{viewProps:eL,pseudos:e_,style:eA,classNames:eM,space:ej}=ek,eI=H,{asChild:eW,children:ez,themeShallow:eF,spaceDirection:eY,onPress:eB,onLongPress:eD,onPressIn:eV,onPressOut:eX,onHoverIn:eH,onHoverOut:eG,onMouseUp:eU,onMouseDown:eK,onMouseEnter:eQ,onMouseLeave:eq,onFocus:eZ,onBlur:eJ,separator:e0,forceStyle:e1,onClick:e2,theme:e5,defaultVariants:e3,...e4}=eL,e9=e4;if(!eb&&H.forceStyle&&(e9.forceStyle=H.forceStyle),y&&e5&&(e9.theme=e5),ew.acceptTagProp&&(e9.tag=ev),(ed?eh:ep)&&Q&&!y){let t=Q({props:eI,style:eA||{},presence:eo,componentState:ec,styleProps:eR,theme:eT.state?.theme,pseudos:e_||null,staticConfig:e,stateRef:ef});(en||ed)&&t&&(j=t.style,e9.style=j)}J&&(e4.onLayout=(0,s.Mj)(e4.onLayout,e=>{ef.current.group.emit(J,{layout:e.nativeEvent.layout}),ef.current.hasMeasured||"hide"!==H.untilMeasured||es(e=>({...e})),ef.current.hasMeasured=!0})),e9=E.P.usePropsTransform?.(ew,e4,ef,q.willHydrate)||e4,q.composedRef||(q.composedRef=(0,o.FE)(e=>ef.current.host=e,$)),e9.ref=q.composedRef;let{pseudoGroups:e8,mediaGroups:e7}=ek,e6=()=>el({press:!1,pressIn:!1});(0,u.useEffect)(()=>{if(Z)return;if(ec.unmounted){el({unmounted:!1});return}let e=X({disabled:Z,componentContext:F,setStateShallow:el,state:ec,mediaGroups:e7,pseudoGroups:e8});return()=>{e?.(),_.delete(es)}},[Z,e8?Object.keys([...e8]).join(""):0,e7?Object.keys([...e7]).join(""):0]);let te=!Z&&eg&&e_?.pressStyle,tt=!Z&&eg&&e_?.focusStyle,tn=!Z&&eg&&e_?.focusVisibleStyle,tr=!!(te||tt||tn||eZ||eJ),ti=!!(J||te||eB||eX||eV||eK||eU||eD||e2||e_?.focusVisibleStyle),to=!Z&&eg&&e_?.hoverStyle,ta=!!(J||to||eH||eG),ts=a.$L&&!!(J||ta||eQ||eq),tl=!Z&&!H.asChild&&!!(tr||ti||ts||te||to||tt),tu=!!(J||te),tc=tl?{onPressOut:ti?e=>{e6(),eX?.(e),eU?.(e)}:void 0,...(ts||ti)&&{onMouseEnter:e=>{let t={};ta&&(t.hover=!0),tu&&ec.pressIn&&(t.press=!0),el(t),eH?.(e),eQ?.(e)},onMouseLeave:e=>{let t={};ta&&(t.hover=!1),tu&&ec.pressIn&&(t.press=!1,t.pressIn=!1),el(t),eG?.(e),eq?.(e)}},onPressIn:ti?e=>{(te||J)&&el({press:!0,pressIn:!0}),eV?.(e),eK?.(e),a.$L&&_.add(es)}:void 0,onPress:ti?e=>{e6(),a.$L&&e2?.(e),eB?.(e),eD?.(e)}:void 0,...tr&&{onFocus:e=>{e_?.focusVisibleStyle?setTimeout(()=>{el({focus:!0,focusVisible:!!M.value})},0):el({focus:!0,focusVisible:!1}),eZ?.(e)},onBlur:e=>{el({focus:!1,focusVisible:!1}),eJ?.(e)}}}:null;tc&&!B&&Object.assign(e9,I(tc)),E.P.useEvents?.(e9,tc,ek,el,e);let tf=H.spaceDirection||"both",td=!ez||eW?ez:z({separator:e0,children:ez,space:ej,direction:tf,isZStack:g,debug:G});eW&&(ew=k,Object.assign(e9,I({onPress:eB,onLongPress:eD,onPressIn:eV,onPressOut:eX,onMouseUp:eU,onMouseDown:eK,onMouseEnter:eQ,onMouseLeave:eq},"web"===eW||"except-style-web"===eW))),E.P.useChildren&&(W=E.P.useChildren(ew,td,e9,tc,e)),td=W||(0,u.createElement)(ew,e9,td);let tp=n?.animations?.ResetPresence;tp&&ep&&(et||ea)&&td&&"string"!=typeof td&&(td=(0,R.jsx)(tp,{children:td}));let th=q.group,tm=(0,u.useMemo)(()=>{if(!(!th||!J))return th.listeners.clear(),{...F.groups,state:{...F.groups.state,[J]:{pseudo:m,layout:{width:D(ek.style?.width),height:D(ek.style?.height)}}},emit:th.emit,subscribe:th.subscribe}},[J]);if(J&&tm&&(td=(0,R.jsx)(d.s.Provider,{...F,groups:tm,children:td})),td=ex?td:(0,O.u)(eT,td,e$,!1),B&&!eW&&(td=(0,R.jsx)("span",{className:"_dsp_contents",...ei&&tc&&I(tc),children:td})),e.context){let t=e.context.props;for(let e in t)(e9.style&&e in e9.style||e in e9)&&((P||={})[e]=e9.style?.[e]??e9[e])}if(P){let t=e.context.Provider;td=(0,R.jsx)(t,{...N,...P,children:td})}return td});e.componentName&&($.displayName=e.componentName);let P=$;function N(t){return{...e,...t,neverFlatten:!0,isHOC:!0,isStyledHOC:!1}}function j(e,t){let n=e.render?.length===2?e:(0,u.forwardRef)(e),r=N(t?.staticConfig);return n=t?.disableTheme?n:(0,T.Y)(n,r),L.env.TAMAGUI_MEMOIZE_STYLEABLE&&(n=(0,u.memo)(n)),n.staticConfig=r,n.styleable=j,n}return(L.env.TAMAGUI_FORCE_MEMO||e.memo)&&(P=(0,u.memo)(P)),P.staticConfig=e,P.extractable=function(e,t){return e.staticConfig=N(t),e.styleable=j,e},P.styleable=j,P}function I(e,t=!0){return{onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,[t?"onClick":"onPress"]:e.onPress,onMouseDown:e.onPressIn,onMouseUp:e.onPressOut,onTouchStart:e.onPressIn,onTouchEnd:e.onPressOut,onFocus:e.onFocus,onBlur:e.onBlur}}a.$L&&globalThis.document&&(document.addEventListener("keydown",()=>{M.value=!0}),document.addEventListener("mousedown",()=>{M.value=!1}),document.addEventListener("mousemove",()=>{M.value=!1}));let W=j({acceptsClassName:!0,memo:!0,componentName:"Spacer",validStyles:s.Qn,defaultProps:{...f.tn,tag:"span",size:!0,pointerEvents:"none"},variants:{size:{"...":(e,{tokens:t})=>{e=!0===e?"$true":e;let n=t.space[e]??e;return{width:n,height:n,minWidth:n,minHeight:n}}},flex:{true:{flexGrow:1}},direction:{horizontal:{height:0,minHeight:0},vertical:{width:0,minWidth:0},both:{}}}});function z(e){let{isZStack:t,children:n,space:r,direction:i,spaceFlex:o,separator:a}=e,s=!!(r||o),l=null!=a;if(!(s||l||t))return n;let c=u.Children.toArray(n);if(c.length<=1&&!t&&!c[0]?.type?.shouldForwardSpace)return c;let f=[];for(let[e,n]of c.entries()){let l=null==n||Array.isArray(n)&&0===n.length;if(!l&&u.isValidElement(n)&&n.type?.shouldForwardSpace&&(n=u.cloneElement(n,{space:r,spaceFlex:o,separator:a,key:n.key})),l||!n||n.key&&!t?f.push(n):f.push((0,R.jsx)(u.Fragment,{children:t?(0,R.jsx)(B,{children:n}):n},e)),Y(n)&&0===e||t)continue;let d=c[e+1];d&&!Y(d)&&(a?(s&&f.push(F({key:`_${e}_00tmgui`,direction:i,space:r,spaceFlex:o})),f.push(u.isValidElement(a)?u.cloneElement(a,{key:`sep_${e}`}):a),s&&f.push(F({key:`_${e}01tmgui`,direction:i,space:r,spaceFlex:o}))):f.push(F({key:`_${e}02tmgui`,direction:i,space:r,spaceFlex:o})))}return f}function F({key:e,direction:t,space:n,spaceFlex:r}){return(0,R.jsx)(W,{size:n,direction:t,..."u">typeof r&&{flex:!0===r?1:!1===r?0:r}},e)}function Y(e){let t=e?.type;return t?.isVisuallyHidden||t?.isUnspaced}let B=j({defaultProps:{...f.tn,flexDirection:"column",position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"box-none"}}),D=e=>"string"!=typeof e?e:+e.replace("px",""),V=e=>e.disabled||e.accessibilityState?.disabled||e["aria-disabled"]||e.accessibilityDisabled||!1,X=({disabled:e=!1,setStateShallow:t,pseudoGroups:n,mediaGroups:r,componentContext:i,state:o})=>{if(n||r){let e={pseudo:{},media:{}};return i.groups?.subscribe((i,{layout:a,pseudo:s})=>{if(s&&n?.has(String(i)))Object.assign(e.pseudo,s),l();else if(a&&r){let t=Object.fromEntries([...r].map(e=>[e,(0,S.yj)(e,a)])),n=y.xK(e.media,t);n!==e.media&&(Object.assign(e.media,n),l())}function l(){t({group:{...o.group,[i]:e}})}})}}},2202:function(e,t,n){"use strict";n.d(t,{E0:function(){return d},Os:function(){return u},Ve:function(){return g},bK:function(){return y},cG:function(){return f},lk:function(){return c},yx:function(){return m},zY:function(){return h}});var r=n(281),i=n(8338),o=n(5986),a=n(357);let s="isVar";function l(e){return`var(--${a.env.TAMAGUI_CSS_VARIABLE_PREFIX||""}${e})`}let u=(e,t=!1)=>{if(!t&&f(e))return e;let{key:n,name:o,val:a}=e;return{[s]:!0,key:n,name:t?"":(0,i.M)(o,40),val:a,variable:r.$L?t?l(o):y(o):""}};function c(e,t=!1){return f(e)?!t&&r.$L&&e.variable?e.variable:`${e.val}`:`${e||""}`}function f(e){return e&&"object"==typeof e&&s in e}function d(e){return(h(!0),f(e))?c(e):c((0,o.iE)().tokensParsed[e]??e)}let p=!1,h=e=>p=e,m=()=>p;function g(e){return f(e)?(h(!0),e.val):e}let y=(e,t=!0)=>{let n=(0,i.M)(e,60);return t?l(n):n}},9033:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});let r=(0,n(2265).createContext)(1)},3820:function(e,t,n){"use strict";function r(e,t,n){return r=>e(e=>i(e,r,t,n))}function i(e,t,n,r){return n||!e||!t||o(e,t)?e||t:{...e,...t}}function o(e,t){for(let n in t)if(e[n]!==t[n])return!1;return!0}n.d(t,{JL:function(){return r},N2:function(){return o},xK:function(){return i}})},925:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(2265);let i=new WeakMap;var o=n(2281);function a(e){let t=(0,r.createContext)(e),n=t.Provider,a=new Map;return t.Provider=({children:t,scope:s,...l})=>{let u=(0,r.useMemo)(()=>({...e,...l}),[function(e){let t="";for(let n in e){t+=n;let r=e[n],o=typeof r;if(r&&("object"===o||"function"===o)){if(i.has(r))t+=i.get(r);else{let e=Math.random();i.set(r,e),t+=e}}else t+=o+r}return t}(l)]),c=n;if(s){let t=a.get(s);t||(t=(0,r.createContext)(e),a.set(s,t)),c=t.Provider}return(0,o.jsx)(c,{value:u,children:t})},t.props=e,t.context=t,t.useStyledContext=e=>{let n=e?a.get(e):t;return(0,r.useContext)(n)},t}},8075:function(e,t,n){"use strict";let r,i;n.d(t,{DP:function(){return ep}});var o=n(281),a=n(8338),s=n(2265),l=n(5986);let u={};{let e={Hidden:!0,ActiveDescendant:!0,Atomic:!0,AutoComplete:!0,Busy:!0,Checked:!0,ColumnCount:"colcount",ColumnIndex:"colindex",ColumnSpan:"colspan",Current:!0,Details:!0,ErrorMessage:!0,Expanded:!0,HasPopup:!0,Invalid:!0,Label:!0,Level:!0,Modal:!0,Multiline:!0,MultiSelectable:!0,Orientation:!0,Owns:!0,Placeholder:!0,PosInSet:!0,Pressed:!0,RoleDescription:!0,RowCount:!0,RowIndex:!0,RowSpan:!0,Selected:!0,SetSize:!0,Sort:!0,ValueMax:!0,ValueMin:!0,ValueNow:!0,ValueText:!0};for(let t in e){let n=e[t];!0===n&&(n=t.toLowerCase()),u[`accessibility${t}`]=`aria-${n}`}}var c=n(9242),f=n(9097);function d(e){let t=(0,f.om)(),[n,r,i,o]=e.split("-"),a=i in t?i:void 0;return{name:r,pseudo:a?o:i,media:a}}let p=null,h=null,m={press:"active"},g=(e,t,n,r,i,o)=>{let{property:a,identifier:s,rules:u}=e,c=(0,l.iE)(),g=c.settings.mediaPropOrder,y="theme"===r,b="group"===r,v=y||"platform"===r||b,S=s.slice(0,s.indexOf("-")+1),w=`${S}_${t.replace("-","")}${i?"0":""}_`,x="",$,T,C=s.replace(S,w),E=u.map(e=>e.replace(s,C)).join(";");if(v){let e=Array((o||0)+(b?1:0)).fill(":root").join("");if(y||b){let n=d(t),r=n?.name;$=n?.media,b&&(T=r);let i=E.indexOf(":root"),o=E.lastIndexOf("{"),a=E.slice(i,o),s=c.themeClassNameOnRoot&&y?"":" ",l=n.pseudo?m[n.pseudo]||n.pseudo:void 0,u=l?`:${l}`:"",f=`:root${e}${s}`,p=`.t_${(b?"group_":"")+r}${u}`,h=`${f}${p} ${a.replace(":root","")}`;x=E.replace(a,h)}else x=`${e}${E}`}if(!v||$){if(!h){let e=Object.keys(n);h=Object.fromEntries(e.map(e=>[e,(0,f.yS)(n[e])])),g||(p=Object.fromEntries(e.map((e,t)=>[e,Array(t+1).fill(":root").join("")])))}let e=$||t,r=h[e],a=`${i?"not all and ":""}${r}`,s=$?"":g?Array(o).fill(":root").join(""):p[e],l=$?`@container ${T}`:"@media";$&&(E=x),x=E.includes(l)?E.replace("{",` and ${a} {`).replace("and screen and","and"):`${l} ${a}{${s}${E}}`,$&&(x=`@supports (contain: ${c.settings.webContainerType||"inline-size"}) {${x}}`)}return{property:a,rules:[x],identifier:C}},y={height:0,width:0};var b=n(2117);function v(e){for(let t in(null!=e.shadowRadius||e.shadowColor||null!=e.shadowOpacity||e.shadowOffset)&&Object.assign(e,function({shadowColor:e,shadowOffset:t,shadowOpacity:n,shadowRadius:r}){let{height:i,width:o}=t||y;return{shadowOffset:{width:o||0,height:i||0},shadowRadius:r||0,shadowColor:(0,b.ut)(e,1),shadowOpacity:n??(e?b.HY(e)?.a:1)}}(e)),w)t in e&&(e[w[t]]||="solid")}let S=o.$L?null:"borderStyle",w={borderWidth:"borderStyle",borderBottomWidth:S||"borderBottomStyle",borderTopWidth:S||"borderTopStyle",borderLeftWidth:S||"borderLeftStyle",borderRightWidth:S||"borderRightStyle"};var x=n(8829),$=n(7440),T=n(1333);function C(e){k(e);let t=[];for(let n in e){let r=e[n];if(n in $.Qy)r&&t.push(...E(r,$.Qy[n]));else{let r=R(e,n);r&&t.push(r)}}return t}let E=(e,t)=>{k(e);let n=[];for(let r in e){let i=R(e,r,t);i&&n.push(i)}return n},R=(e,t,n)=>{let i=e[t];if(null==i)return;"transform"===t&&Array.isArray(e.transform)&&(i=(0,T.m)(i));let o=(0,x.Y)(i,t),s=(0,a.M)(`${o}`),u=n?`0${n.name}-`:"";r||=(0,l.iE)();let c=`_${r.inverseShorthands[t]||t}-${u}${s}`,f=function(e,t,n,r){let i=r?"disabled"===r.name?"[aria-disabled]":`:${r.name}`:"",o=r?r?.selector?`${r?.selector} .${e}`:`${_[r.name]} .${e}${i}`:`:root .${e}`,a=!!r,s=[];switch(t){case"placeholderTextColor":{let e=P([["color",n],["opacity",1]],a);s.push(`${o}::placeholder${e}`);break}case"backgroundClip":case"userSelect":{let e=`Webkit${t[0].toUpperCase()}${t.slice(1)}`,r=P([[t,n],[e,n]],a);s.push(`${o}${r}`);break}case"pointerEvents":{let e=n;"auto"===n||"box-only"===n?(e="auto","box-only"===n&&s.push(`${o}>*${M}`)):("none"===n||"box-none"===n)&&(e="none","box-none"===n&&s.push(`${o}>*${A}`));let t=P([["pointerEvents",e]],!0);s.push(`${o}${t}`);break}default:{let e=P([[t,n]],a);s.push(`${o}${e}`)}}return r?.name==="hover"&&(s=s.map(e=>`@media (hover) {${e}}`)),s}(c,t,o,n);return{property:t,pseudo:n?.name,identifier:c,rules:f,value:o}};function k(e){let{shadowOffset:t,shadowRadius:n,shadowColor:r,shadowOpacity:i}=e;if(n||r){let o=t||y,a=(0,x.Y)(o.width),s=(0,x.Y)(o.height),l=(0,x.Y)(n),u=(0,b.ut)(r,i),c=`${a} ${s} ${l} ${u}`;e.boxShadow=e.boxShadow?`${e.boxShadow}, ${c}`:c,delete e.shadowOffset,delete e.shadowRadius,delete e.shadowColor,delete e.shadowOpacity}let{textShadowColor:o,textShadowOffset:a,textShadowRadius:s}=e;if(o||a||s){let{height:t,width:n}=a||y,r=s||0,i=(0,x.Y)(o,"textShadowColor");if(i&&(0!==t||0!==n||0!==r)){let o=(0,x.Y)(r),a=(0,x.Y)(n),s=(0,x.Y)(t);e.textShadow=`${a} ${s} ${o} ${i}`}delete e.textShadowColor,delete e.textShadowOffset,delete e.textShadowRadius}}function P(e,t=!1){let n="";for(let[r,i]of e)n+=`${L(r)}:${i}${t?" !important":""};`;return`{${n}}`}let N={},O=e=>`-${e.toLowerCase()}`,L=e=>{if(e in N)return N[e];let t=e.replace(/[A-Z]/g,O);return N[e]=t,t},_=(()=>{let e={};for(let t in $.Qy){let n=$.Qy[t];e[n.name]=`${[...Array(n.priority)].map(()=>":root").join("")} `}return e})(),A=P([["pointerEvents","auto"]],!0),M=P([["pointerEvents","none"]],!0);var j=n(7393),I=n(2202);function W(e,t){if("flex"===e)return[["flexGrow",t],["flexShrink",1],["flexBasis","auto"]];switch(e){case"textAlignVertical":return[["verticalAlign","center"===t?"middle":t]];case"writingDirection":return[["direction",t]]}if(e in D)return D[e].map(e=>[e,t])}let z=["Top","Right","Bottom","Left"],F=["Right","Left"],Y=["Top","Bottom"],B=["X","Y"],D={borderColor:["TopColor","RightColor","BottomColor","LeftColor"],borderRadius:["TopLeftRadius","TopRightRadius","BottomRightRadius","BottomLeftRadius"],borderWidth:["TopWidth","RightWidth","BottomWidth","LeftWidth"],margin:z,marginHorizontal:F,marginVertical:Y,overscrollBehavior:B,padding:z,paddingHorizontal:F,paddingVertical:Y,...o.$L&&{borderStyle:["TopStyle","RightStyle","BottomStyle","LeftStyle"],overflow:B}};for(let e in D){let t=e.slice(0,/[A-Z]/.exec(e)?.index??e.length);D[e]=D[e].map(e=>`${t}${e}`)}var V=n(1616);let X=new WeakMap;function H(e,t){if(X.has(t))return X.get(t);let n={...e,...Object.fromEntries(Object.entries(t).map(([t,n])=>{if("default"===n)return[];let r=`$${t}_${n}`;return[`$${t}`,e[r]]}))};return X.set(t,n),n}let G={untilMeasured:1,animation:1,space:1,animateOnly:1,disableClassName:1,debug:1,componentName:1,disableOptimization:1,tag:1,style:1,group:1,themeInverse:1,animatePresence:1};var U=n(357);let K=(e,t,n,r)=>{if(er=null,"elevationAndroid"===e)return;if("unset"===t){let r=n.conf.unset?.[e];if(null==r)return;t=r}let i=n.styleProps.fallbackProps||r,o=i?new Proxy(n,{get:(e,t)=>"curProps"===t?i:Reflect.get(e,t)}):n,{conf:a,styleProps:s,fontFamily:l,staticConfig:u,skipThemeTokenResolution:c}=o,{variants:f}=u;if(!s.noExpand&&f&&e in f){o.curProps[e]=t;let n=Q(e,t,s,o,"");if(n)return n}if(s.disableExpandShorthands||e in a.shorthands&&(e=a.shorthands[e]),t&&("$"===t[0]?t=ei(e,t,s.resolveValues,o):(0,I.cG)(t)&&(t=eo(e,t,s.resolveValues))),null!=t){let n=(s.noExpand?null:W(e,t))||[[e,t]];return"fontFamily"===e&&er&&Z.set(n,er),n}},Q=(e,t,n,r,i)=>{let o;let{staticConfig:a,conf:s,debug:l}=r,{variants:u}=a;if(!u)return;let c=function(e,t,n){if("function"==typeof e)return e;let r=e[t];if(r)return r;if(null!=t){let{tokensParsed:r}=n;for(let{name:n,spreadName:i}of et)if(i in e&&t in r[n])return e[i];let i=e["...fontSize"];if(i&&n.fontSizeTokens.has(t))return i}return e[`:${typeof t}`]||e["..."]}(u[e],t,s);if(!c){if("1"===U.env.TAMAGUI_WARN_ON_MISSING_VARIANT&&"boolean"!=typeof t){let n=a.componentName||"[UnnamedComponent]";console.warn(`No variant found: ${n} has variant "${e}", but no matching value "${t}"`)}return}if("function"==typeof c&&(c=c(t,function(e){let{curProps:t,props:n,conf:r,context:i,theme:o}=e,a=r.fontsParsed;i?.language&&(a=H(r.fontsParsed,i.language));let s=(0,I.Ve)(e.fontFamily||e.curProps.fontFamily||e.conf.defaultFont),l=a[s]||a[e.conf.defaultFont];return{fonts:a,tokens:r.tokensParsed,theme:o,fontFamily:s,font:l,props:new Proxy(n,{get(e,n){for(let i of[n,r.inverseShorthands[n]])if(i)return Reflect.has(t,i)?Reflect.get(t,i):Reflect.get(e,i)}})}}(r))),(0,V.B)(c)){let t=c.fontFamily||c[s.inverseShorthands.fontFamily];t&&(o=function(e,t){if((0,I.cG)(e)){let n=q.get(e);if(n)return n;for(let n in t.fontsParsed){let r=t.fontsParsed[n].family;if((0,I.cG)(r)&&(q.set(r,n),r===e))return n}}else if("string"==typeof e&&"$"===e[0])return e}(t,s),r.fontFamily=o),c=ee(e,c,n,r,i)}if(c){let e=Object.entries(function e(t,n=!1){let r={};for(let i in t){let o=t[i];if(null==o)continue;if(i in $.Qy||"$"===i[0]&&(0,V.B)(o)){r[i]=e(o,n);continue}let a=n?o:(0,x.Y)(o,i),s=W(i,a);s?Object.assign(r,Object.fromEntries(s)):r[i]=a}return v(r),r}(c,!!n.noNormalize));return o&&"$"===o[0]&&Z.set(e,(0,I.Ve)(o)),e}},q=new WeakMap,Z=new WeakMap,J=e=>e&&Z.get(e),ee=(e,t,n,r,i)=>{let{conf:o,staticConfig:a,debug:s,theme:l}=r,{variants:u}=a,c={};for(let a in t){let s=o.shorthands[a]||a,l=t[a];if(!(!n.noSkip&&s in G)){if(n.noExpand)c[s]=l;else if(u&&s in u){if(r.curProps[s]=l,i&&i===e)c[s]="$"===l[0]?ei(s,l,n.resolveValues,r):l;else{let t=Q(s,l,n,r,e);if(t)for(let[e,n]of t)null!=n&&(e in $.Qy?(c[e]??={},Object.assign(c[e],n)):c[e]=n)}continue}if((0,I.cG)(l)){c[s]=eo(s,l,n.resolveValues);continue}if("string"==typeof l){let e="$"===l[0]?ei(s,l,n.resolveValues,r):l;c[s]=e;continue}if((0,V.B)(l)){let t=ee(s,l,n,r,e);c[s]??={},Object.assign(c[s],t)}else c[s]=l}}return c},et=["size","color","radius","space","zIndex"].map(e=>({name:e,spreadName:`...${e}`})),en={fontSize:"size",fontWeight:"weight"},er=null,ei=(e,t,n="none",r)=>{if("none"===n)return t;let{theme:i,conf:o=(0,l.iE)(),context:s,fontFamily:u,staticConfig:c}=r,f=o.tokensParsed,d,p=!1,h=c?.accept?.[e];if(h){let e=i?.[t]??f[h][t];null!=e&&(n="value",d=e,p=!0)}if(i&&t in i){if(d=i[t],r.skipThemeTokenResolution&&d?.val)return t;p=!0}else{if(t in o.specificTokens)p=!0,d=o.specificTokens[t];else{switch(e){case"fontFamily":d=(s?.language?H(o.fontsParsed,s.language):o.fontsParsed)[t]?.family||t,er=t,p=!0;break;case"fontSize":case"lineHeight":case"letterSpacing":case"fontWeight":{let n=o.defaultFont||"$body",r=u||n;if(r){let i=s?.language?H(o.fontsParsed,s.language):o.fontsParsed;d=(i[r]||i[n])?.[en[e]||e]?.[t]||t,p=!0}}}for(let n in a.CV)if(e in a.CV[n]){let e=f[n][t];null!=e&&(d=e,p=!0)}}if(!p){let e=f.space[t];null!=e&&(d=e,p=!0)}}if(p)return eo(e,d,n)};function eo(e,t,n){if("none"===n)return t;if((0,I.cG)(t)){if("value"===n)return t.val;let e=t?.get;return"function"==typeof e?e("web"===n?"web":void 0):t.variable}return t}var ea=n(357);function es(e,t){return(t.validStyles||(t.isText||t.isInput?a.FB:a.Qn))[e]||t.accept?.[e]}let el=(e,t,n,r,s,p,h,m,y,b,S)=>{i=i||(0,l.iE)(),o.$L&&p.isAnimated&&i.animations.isReactNative&&!p.noNormalize&&(p.noNormalize="values");let{shorthands:w}=i,{isHOC:R,isText:P,isInput:N,variants:O,isReactNative:L,inlineProps:_,inlineWhenUnflattened:A,parentStaticConfig:M,acceptsClassName:I}=t,W={},z=p.mediaState||f.nA,F={},Y=I&&o.$L&&!p.noClassNames,B=[],D={},V={},X=null,H=e.space,U=!1,Q,q,Z,ee=(e.className,0),et={curProps:{},classNames:D,conf:i,props:e,styleProps:p,componentState:s,staticConfig:t,style:null,theme:n,usedKeys:F,viewProps:W,context:m,debug:b,skipThemeTokenResolution:S};for(let n in e){let l=n,h=e[n];if(t.accept&&("style"===t.accept[l]||"textStyle"===t.accept[l])&&"object"==typeof h){let e=ef(et,l,h,p.noClassNames);W[l]=e;continue}if(p.disableExpandShorthands||l in w&&(l=w[l]),"className"===l||l in F||e.asChild&&c.zm[l]===h)continue;if(l in G&&!p.noSkip&&!R){if("group"===l){let e=`t_group_${h}`,t=i.settings.webContainerType||"inline-size";eh(B,{identifier:e,property:"container",rules:[`.${e} { container-name: ${h}; container-type: ${t}; }`]})}continue}let b=typeof h,v=es(l,t);if(v&&"string"===b&&"_"===h[0]){let e=l in a.Qn,t=!e&&l.includes("-")&&a.Qn[l.split("-")[0]];if(e||t){Y?(eu(V,D,l,h,t),et.style&&delete et.style[l]):(et.style||={},et.style[l]=(0,x.R)(l,h),delete D[l]);continue}}if(h!==e[l]&&(et.curProps[l]=h),"dataSet"===l){for(let e in h)W[`data-${eb(e)}`]=h[e];continue}if(!p.noExpand){if("disabled"===l&&!0===h&&(W["aria-disabled"]=!0,("button"===y||"form"===y||"input"===y||"select"===y||"textarea"===y)&&(W.disabled=!0),!O?.disabled))continue;if("testID"===l){W[L?l:"data-testid"]=h;continue}if("id"===l||"nativeID"===l){W.id=h;continue}let e=!1;if(L){if(l in u||l.startsWith("accessibility")){W[l]=h;continue}}else{if(e=!0,l in u){W[u[l]]=h;continue}switch(l){case"accessibilityRole":"none"===h?W.role="presentation":W.role=ew[h]||h;continue;case"accessibilityLabelledBy":case"accessibilityFlowTo":case"accessibilityControls":case"accessibilityDescribedBy":W[`aria-${l.replace("accessibility","").toLowerCase()}`]=Array.isArray(h)?h.join(" "):h;continue;case"accessibilityKeyShortcuts":Array.isArray(h)&&(W["aria-keyshortcuts"]=h.join(" "));continue;case"accessibilityLiveRegion":W["aria-live"]="none"===h?"off":h;continue;case"accessibilityReadOnly":W["aria-readonly"]=h,("input"===y||"select"===y||"textarea"===y)&&(W.readOnly=!0);continue;case"accessibilityRequired":W["aria-required"]=h,("input"===y||"select"===y||"textarea"===y)&&(W.required=h);continue;default:e=!1}}if(e)continue}let S=l in w,T=!v&&O&&l in O,k=S||v||T,A=l in a.M6,j=!k&&!A&&(0,f._z)(l),I=!!(j||A);if(I&&l.startsWith("$group-")){let e=l.split("-")[1];m?.groups.subscribe&&!m?.groups.state[e]&&(l=l.replace("$group-","$group-true-"))}let en=v||I||T&&!p.noExpand||S;if(en&&("except-style"===e.asChild||"except-style-web"===e.asChild))continue;let er=!en||R&&M?.variants&&l in M.variants||_?.has(l),ei=M?.variants?.[l],eo=!!(R&&(S||v||I||ei||l in G));if((er||eo)&&(ex(W,l,h,I),!T)||!p.noSkip&&l in G)continue;(P||N)&&h&&("fontFamily"===l||l===w.fontFamily)&&h in i.fontsParsed&&(et.fontFamily=h);let ea=I||!T&&!v,el=ea?null:K(l,h,et);if(!ea){if(!el)continue;let e=J(el);e&&(et.fontFamily=e)}let ed=l,ep=h,em=el?el.length:1;for(let n=0;n=(F[t]||0)&&(X||={},X[ed]||={},X[ed][t]=n,ec(et,t,n))}if(!i)for(let e in ep){let t=w[e]||e;F[t]=Math.max(o,F[t]||0)}}continue}if(j){if(!ep)continue;if("platform"===j){let e=ed.slice(10);if(e!==o.ob&&"web"!==e)continue}U||=!0;let e=ed.slice(1),t=ep.space;if((t||!Y)&&(Array.isArray(U)||(U=[]),U.push(e)),Y){let n=ef(et,ed,ep,!1);if(t&&(delete n.space,z[e])){let t=(0,f.ae)(e,"space",F,!0);t&&(H=ep.space,F.space=t)}let r=C(n),i=ee;for(let t of(ee+=1,r)){let n=g(t,e,f.aN,j,!1,i),r=`${t.property}-${e}${t.pseudo||""}`;r in F||(eh(B,n),eu(V,D,r,n.identifier,!0,!0))}}else{let t=ef(et,ed,ep,!0),n="theme"===j,i="group"===j;if(!n&&"platform"!==j&&!i&&!z[e])continue;let o=0;if(n){Q=!0;let t=e.slice(6);if(!(r===t||r.startsWith(t)))continue}else if(i){let t=d(e),n=t.name,r=m?.groups.state[n];if(!r)continue;let i=t.pseudo,a=t.media,l=s.group?.[n];if(a){(Z||=new Set).add(a);let e=l?.media,t=e?.[a];if(!e&&r.layout&&(t=(0,f.yj)(a,r.layout)),!t)continue;o=2}if(i){if((q||=new Set).add(n),!(l||m.groups.state[n]).pseudo?.[i])continue;o=$.MX[i]}}for(let n in t){if("space"===n){H=h.space;continue}et.style||={},function(e,t,n,r,i,o,a){let s=(0,f.ae)(t,n,i,o);a&&(s=(s||0)+a),null!==s&&(i[n]=s,ec(e,n,r))}(et,e,n,t[n],F,z[e],o),"fontFamily"===ed&&(et.fontFamily=t.fontFamily)}}continue}if(!R&&es(ed,t)){ec(et,ed,ep);continue}T||(W[ed]=ep)}}}if(!1!==p.noNormalize&&(et.style&&(v(et.style),o.$L&&!t.isReactNative&&k(et.style)),et.flatTransforms&&(et.style||={},Object.entries(et.flatTransforms).sort(([e],[t])=>e.localeCompare(t)).forEach(([e,t])=>{ev(et.style,e,t,!0)})),h)){if(Y)for(let e in h.classNames){let t=h.classNames[e];et.style&&e in et.style||e in D||(D[e]=t)}if(!Y)for(let e in h.style)e in D||et.style&&e in et.style||(et.style||={},et.style[e]=h.style[e])}if(!p.noNormalize&&!t.isReactNative&&!t.isHOC&&(!p.isAnimated||i.animations.supportsCSSVars)&&Array.isArray(et.style?.transform)&&(et.style.transform=(0,T.m)(et.style.transform)),et.style&&Y){let t;if(!et.style.$$css){for(let n of C(et.style)){let r=n.property,i=p.isAnimated&&p.noClassNames&&(!e.animateOnly||e.animateOnly.includes(r)),o=!i&&!p.isAnimated&&e.animateOnly?.includes(r);i?(t||={})[r]=et.style[r]:o?(t||={})[r]=n.value:(eh(B,n),eu(V,D,r,n.identifier,!1,!0))}et.style=t||{}}if(V)for(let e in V){if(!V[e])continue;let[t,n]=V[e],r=`_transform${t}`;if(o.C5&&!j.MD[r]){let t=`.${r} { transform: ${n}; }`;eh(B,{identifier:r,rules:[t],property:e})}D[e]=r}}if(!L&&null==W.tabIndex){let t=W.focusable??W.accessible;W.focusable&&delete W.focusable;let n=W.role;!1===t&&(W.tabIndex="-1"),"a"===y||"button"===y||"input"===y||"select"===y||"textarea"===y?(!1===t||!0===e.accessibilityDisabled)&&(W.tabIndex="-1"):("button"===n||"checkbox"===n||"link"===n||"radio"===n||"textbox"===n||"switch"===n)&&!1!==t&&(W.tabIndex="0"),t&&(W.tabIndex="0",delete W.focusable)}let en=e.style;if(en){if(R)W.style=e$(en);else{let e=Array.isArray(en),t=e?en.length:1;for(let n=0;n{let{staticConfig:i,props:o,conf:s,styleProps:l}=e,u={};for(let c in n){let f=n[c],d=K(c=s.shorthands[c]||c,f,e,{...o,...o[t]});if(!(!d||!i.isHOC&&c in G&&!l.noSkip))for(let[e,t]of d)!r&&e in a.Dc?ev(u,e,t):u[e]=l.noNormalize?t:(0,x.Y)(t,c)}return l.noNormalize||v(u),u},ed=o.$L?s.useInsertionEffect||o.LI:()=>{},ep=(e,t,n,r,i,o,a,s,l,u)=>{let c=el(e,t,n,r,i,o,a,s,l,u);return ed(()=>{(0,j._N)(c.rulesToInsert)},[c.rulesToInsert]),c};function eh(e,t){(0,j.Jt)(t.identifier)&&((0,j.GU)(t.identifier,t.rules),e.push(t))}let em=ea.env.TAMAGUI_DEFAULT_COLOR||"rgba(0,0,0,0)",eg={...Object.fromEntries(Object.entries(a.CV.color).map(([e,t])=>[e,em])),opacity:1,scale:1,rotate:"0deg",rotateY:"0deg",rotateX:"0deg",x:0,y:0,borderRadius:0},ey=e=>`-${e.toLowerCase()}`,eb=e=>e.replace(/[A-Z]/g,ey),ev=(e,t,n,r=!1)=>{"string"!=typeof e.transform&&(e.transform||=[],e.transform[r?"unshift":"push"]({[eS[t]||t]:n}))},eS={x:"translateX",y:"translateY"},ew={adjustable:"slider",header:"heading",image:"img",link:"link",none:"presentation",summary:"region"};function ex(e,t,n,r=!1){if(r){let r={...e[t],...n};delete e[t],e[t]=r}else e[t]=n}function e$(e){let t={};for(let n in e){let r=e[n];n in a.Dc?ev(t,n,r):t[n]=(0,x.Y)(r,n)}return o.$L&&Array.isArray(t.transform)&&(t.transform=(0,T.m)(t.transform)),v(t),t}},7393:function(e,t,n){"use strict";n.d(t,{GU:function(){return E},Jt:function(){return P},MD:function(){return c},OJ:function(){return h},UY:function(){return d},_N:function(){return R},jc:function(){return g},tN:function(){return f}});var r=n(281),i=n(2202),o=n(357);let a=new WeakMap,s=new Map,l={},u={},c={},f=()=>l,d=()=>Object.values(u);function p(e,t,n){let r=t.indexOf("transform:");if(-1===r)return;let i=t.indexOf(";"),o=t.slice(r+10,i);if(!c[e])return c[e]=o,!0}function h(){r.C5&&new MutationObserver(e=>{for(let t of e)if(t instanceof HTMLStyleElement&&t.sheet||t instanceof HTMLLinkElement&&t.href.endsWith(".css")){g();break}}).observe(document.head,{childList:!0})}let m=null;function g(e=!1,t){let n;if(!r.C5)return;let i=document.styleSheets||[],o=m,a=new Set(i);if(document.styleSheets){for(let r of a)if(r){let i=S(r,!1,e,t);i&&(n=i)}m=a}if(o)for(let e of o)e&&!a.has(e)&&S(e,!0);return n}function y(e,t=!1){let n=(s.get(e)||0)+(t?-1:1);return s.set(e,n),n}let b=o.env.TAMAGUI_BAIL_AFTER_SCANNING_X_CSS_RULES,v=b?+b:250;function S(e,t=!1,n=!1,r){let s;try{if(!(s=e.cssRules))return}catch{return}let u=$(s[0],n)?.[0],c=$(s[s.length-1],n)?.[0],f=`${s.length}${u}${c}`,d=a.get(e);if(!t&&d===f)return;let h=s.length,m=0,g;for(let e=0;ev)return;continue}let[c,f,d]=u;if(d){let e=function(e,t){let n=e.selectorText.split(",");if(!n.length)return;if(t&&!w)for(let e in w={},t.color){let n=t.color[e];w[n.name]=n.val}let r=(e.cssText||"").slice(e.selectorText.length+2,-1).trim().split(";"),a={};for(let e of r){let t;let n=e.indexOf(":");if(-1===n)continue;let r=e.indexOf("--"),s=e.slice(-1===r?0:r+2,n);o.env.TAMAGUI_CSS_VARIABLE_PREFIX&&(s=s.replace(o.env.TAMAGUI_CSS_VARIABLE_PREFIX,""));let l=e.slice(n+2);if(l.startsWith("var(")){let e=l.slice(6,-1),n=w[e];n?t=n:(x||=getComputedStyle(document.body),t=x.getPropertyValue("--"+e))}else t=l;a[s]=(0,i.Os)({key:s,name:s,val:t},!0)}let s={names:[],theme:a};for(let e of n){let[t,n,r,i,o]=e.match(/(.t_(light|dark))?[\s]?(.t_([a-z0-9_]+))[\s]*$/i)||[],a=o&&r&&r!==o?`${r}_${o}`:o||r;!a||s.names.includes(a)||"light_dark"===a||"dark_light"===a||s.names.push(a)}return s}(f,r);e&&(g||=[]).push(e);continue}let h=y(c,t);t?0===h&&delete l[c]:c in l||(!c.startsWith("_transform-")||p(c,f.cssText,f))&&(l[c]=f.cssText)}return a.set(e,f),g}let w,x=null;function $(e,t=!1){if(e instanceof CSSStyleRule){let n=e.selectorText;if(":"===n[0]&&"r"===n[1]){if(n.startsWith(":root ._"))return[T(n),e];if(t&&(n.startsWith(":root.t_")||n.startsWith(":root .t_")))return[n.slice(0,20),e,!0]}}else if(e instanceof CSSMediaRule)return e.cssRules.length>1?void 0:$(e.cssRules[0])}let T=e=>{let t=e.slice(7);return e.includes(":")?t.replace(/:[a-z]+$/,""):t},C=r.C5?document.head.appendChild(document.createElement("style")).sheet:null;function E(e,t){return!(e in u)&&(u[e]=t.join(" "),!e.startsWith("_transform-")||p(e,t[0]))}function R(e){if(!(!e.length||!C)){for(let{identifier:t,rules:n}of e)if(P(t))for(let e of(l[t]=n.join(` -`),y(t),E(t,n),n))try{C.insertRule(e,C.cssRules.length)}catch(e){console.error("Error inserting CSS",e)}}}let k=o.env.TAMAGUI_INSERT_SELECTOR_TRIES?+o.env.TAMAGUI_INSERT_SELECTOR_TRIES:2;function P(e){let t=s.get(e);return void 0===t||te&&!Array.isArray(e)&&"object"==typeof e},9533:function(e,t,n){"use strict";n.d(t,{D:function(){return i},L:function(){return r}});let r="u">typeof window&&window.matchMedia||function(e){return{match:(e,t)=>!1,addListener(){},removeListener(){},matches:!1}};function i(e){}},2117:function(e,t,n){"use strict";n.d(t,{HY:function(){return s},ut:function(){return a}});var r=n(44),i=n.t(r,2);let o=r||i,a=(e,t)=>{if(e){if("$"===e[0])return e;if(e.startsWith("var(")){if("number"==typeof t&&t<1)return`color-mix(in srgb, ${e} ${100*t}%, transparent)`}else{let n=s(e);if(n){let e=`${n.r},${n.g},${n.b}`;return 1===t?`rgb(${e})`:`rgba(${e},${t??n.a??1})`}}return e}},s=e=>{let t=o(e);if(null!=t)return{r:Math.round((4278190080&t)>>>24),g:Math.round((16711680&t)>>>16),b:Math.round((65280&t)>>>8),a:((255&t)>>>0)/255}}},8829:function(e,t,n){"use strict";n.d(t,{R:function(){return u},Y:function(){return s}});var r=n(281),i=n(8338),o=n(7393);let a={...i.cC,translateX:!0,translateY:!0};function s(e,t=""){if(!r.$L||i.O0[t]||t&&!a[t]||"boolean"==typeof e)return e;let n=e;return e&&"object"==typeof e?e:("number"==typeof e?n=`${e}px`:t&&(n=`${n}`),n)}let l={};function u(e,t){let n;let r=(0,o.tN)()[t];if(l[r])return l[r];if(!r)return;let a=r.replace(/.*:/,"").replace(/;.*/,"").trim();return n=a.startsWith("var(")?a:i.O0[e]?+a:a.endsWith("px")?+a.replace("px",""):a,l[r]=n,n}},7440:function(e,t,n){"use strict";n.d(t,{MX:function(){return r},Qy:function(){return i}});let r={hover:1,press:2,focus:3,focusVisible:3,disabled:4},i={hoverStyle:{name:"hover",priority:1},pressStyle:{name:"active",stateKey:"press",priority:2},focusVisibleStyle:{name:"focus-visible",priority:3,stateKey:"focusVisible"},focusStyle:{name:"focus",priority:3},disabledStyle:{name:"disabled",priority:4,stateKey:"disabled"},enterStyle:{name:"enter",selector:".t_unmounted",priority:4},exitStyle:{name:"exit",priority:5}}},9235:function(e,t,n){"use strict";n.d(t,{Y:function(){return a}});var r=n(2265),i=n(1130),o=n(2281);function a(e,t){let n=(0,r.forwardRef)(function(n,r){let{themeInverse:a,theme:s,componentName:l,themeReset:u,...c}=n,f=(0,o.jsx)(e,{ref:r,...c,"data-disable-theme":!0});return(0,o.jsx)(i.Q,{componentName:l||t?.componentName,name:s,"disable-child-theme":!0,debug:n.debug,inverse:a,reset:u,children:f})});return n.displayName=`Themed(${e?.displayName||e?.name||"Anonymous"})`,n}},1333:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var r=n(8829);function i(e){return e.map(e=>{let t=Object.keys(e)[0],n=e[t];return"matrix"===t||"matrix3d"===t?`${t}(${n.join(",")})`:`${t}(${(0,r.Y)(n,t)})`}).join(" ")}},9097:function(e,t,n){"use strict";let r,i;n.d(t,{jl:function(){return v},om:function(){return d},ae:function(){return N},_z:function(){return h},yj:function(){return A},Lk:function(){return p},yS:function(){return _},aN:function(){return f},nA:function(){return c},Zv:function(){return R},yL:function(){return w},GS:function(){return P}});var o=n(281),a=n(2265),s=n(5986),l=n(9533),u=n(7440);let c={},f={},d=()=>c,p=new Set,h=e=>{if(p.has(e))return!0;if("$"===e[0]){if(e.startsWith("$platform-"))return"platform";if(e.startsWith("$theme-"))return"theme";if(e.startsWith("$group-"))return"group"}return!1},m=Object.keys(u.Qy).length,g=e=>(0,s.iE)().settings.mediaPropOrder?m:i.indexOf(e)+100,y=new Set,b=0,v=e=>{let{media:t,mediaQueryDefaultActive:n}=e;if(t){for(let e in b++,t)c[e]=n?.[e]||!1,p.add(`$${e}`);Object.assign(f,t),r={...c},i=Object.keys(t),e.disableSSR?w():C()}},S=-1;function w(){if(!(o.$L&&o.sk)&&S!==b)for(let e in S=b,y.forEach(e=>e()),y.clear(),f){let t=function(){let t=!!r().matches;t!==c[e]&&(c={...c,[e]:t},C())},n=_(f[e],e),r=()=>(0,l.L)(n),i=r();if(!i)throw Error("⚠️ No match");i.addListener(t),y.add(()=>{i.removeListener(t)}),t()}}let x=new Set,$=!1,T=-1;function C(){$&&T===b||(T=b,$=!0,Promise.resolve().then(()=>{$=!1,x.forEach(e=>e(c))}))}let E=new WeakMap;function R(e,t){return E.set(e,t)}function k(e){return x.add(e),()=>x.delete(e)}function P(e,t){let n=(0,a.useRef)(),i=((t?.disableSSR??(0,s.iE)().disableSSR)||!o.$L?c:r)||{},l=(0,a.useSyncExternalStore)(k,()=>{if(!n.current)return i;let{touched:t,prev:r}=n.current,o=e?E.get(e):void 0;if(o&&!1===o.enabled)return r;let a=o?.keys??((!o||o.enabled)&&t?[...t]:null);return!a||a?.every(e=>c[e]===r[e])?r:(n.current.prev=c,c)},()=>i);return new Proxy(l,{get:(e,t)=>("string"==typeof t&&(n.current||={prev:i},n.current.touched||=new Set,n.current.touched.add(t)),Reflect.get(l,t))})}let N=(e,t,n,r)=>{let i=(0,s.iE)(),o=r&&!i.settings.mediaPropOrder?g(e):m;return!n[t]||o>n[t]?o:null},O=new WeakMap,L={};function _(e,t){if("string"==typeof e)return e;if(O.has(e))return O.get(e);let n=Object.entries(e).map(([e,t])=>(e=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).toLowerCase(),"string"==typeof t||"number"==typeof t&&/[height|width]$/.test(e)&&(t=`${t}px`),`(${e}: ${t})`)).join(" and ");return t&&(L[t]=n),O.set(e,n),n}function A(e,t){let n=f[e];return Object.keys(n).every(e=>{let r=+n[e],i=e.startsWith("max"),o=t[e.endsWith("Width")?"width":"height"];return i?or})}},8411:function(e,t,n){"use strict";let r;n.d(t,{q4:function(){return T},fe:function(){return E},Fg:function(){return y},WU:function(){return b}});var i=n(281),o=n(2265),a=n(5986),s=n(2202),l=n(9242);let u={name:""};function c(e){return!!(e.name||e.componentName||e.inverse||e.reset)}let f=0;class d{constructor(e={},t){if(this.props=e,f=(f+1)%Number.MAX_VALUE,this.id=f,"root"===t){this.updateStateFromProps(e,!1);return}if(!t)throw"❌ 000";if(this.parentManager=t,!this.updateStateFromProps(e,!1))return t}id=0;themeListeners=new Set;parentManager=null;state=u;updateStateFromProps(e=this.props||{},t=!0){if(this.props=e,e.forceTheme)return this.state.theme=e.forceTheme,this.state.name=e.name||"",this.updateState(this.state,!0),this.state;let n=this.getStateIfChanged(e);if(n)return this.updateState(n,t),n}updateState(e,t=!0){this.state=e,this._allKeys=null,t&&queueMicrotask(()=>{this.notify()})}getStateIfChanged(e=this.props,t=this.state,n=this.parentManager){let r=this.getState(e,n);return t&&t!==u&&!r?n?.state:this.getStateShouldChange(r,t)?r:void 0}getStateShouldChange(e,t=this.state){return!(!e?.theme||e.theme===t?.theme)}getState(e=this.props,t=this.parentManager){return function(e,t){if(e.name&&e.reset)throw Error("❌004");if(!c(e))return null;let n=(0,a.RC)(),[r,o]=function(e){let t=[],n=[],r=e;for(;r;)n.push(r),r.state.isComponent&&t.push(r),r=r.parentManager;return[n,t]}(t),s=!!t?.state.isComponent,u=e.reset&&!s?1:0,f=r[u],d=r[u+1];if(!f&&e.reset)return null;let{componentName:h}=e,m=null,g=f?.state.name||"";f?.state.isComponent&&(g=g.replace(/_[A-Z][A-Za-z]+/,""));let y=e.reset?g:e.name||"",b=o.map(e=>e?.state.name||"");s&&b.shift();let v=g.split(l.L2),S=v.length,w=e.componentName&&!y?S:0;for(let t=S;t>=w;t--){let r=v.slice(0,t).join(l.L2);e.inverse&&(r=p(r));let o=[];if(r&&r!==g&&r.includes(y)&&o.push(r),y&&o.unshift(r?`${r}_${y}`:y),1===t){let e=o.findIndex(e=>!e.includes("_"));e>0&&o.splice(e,0,y)}if(h&&!e.reset){let e=v.length,n=[];if(y&&e>1){let e=v[0];n.push(`${e}_${y}_${h}`)}if(n.push(`${r}_${h}`),y){if(t>e){let e=v.slice(0,t-1).join(l.L2);if(e){let t=`${e}_${y}_${h}`;n.unshift(t)}}let i=`${r}_${y}_${h}`;n.unshift(i)}o=[...n,...o,...b]}let a=o.find(e=>e in n);if(a){let e=a.split("_"),[t,...r]=e,o=e[e.length-1],s=o[0]===o[0].toUpperCase(),u="light"===t?"light":"dark"===t?"dark":void 0,c=l.nx,p=i.$L?`${c}sub_theme ${c}${u&&r.length?r.join("_"):t}`:"";m={name:a,parentName:(f||d)?.state?.name,theme:n[a],className:p,isComponent:s,scheme:u};break}}return m}(e,t)||null}_allKeys=null;get allKeys(){return this._allKeys||=new Set([...this.parentManager?.allKeys||[],...Object.keys(this.state.theme||{})]),this._allKeys}notify(e=!1){this.themeListeners.forEach(t=>t(this.state.name,this,e))}onChangeTheme(e,t){return this.themeListeners.add(e),()=>{this.themeListeners.delete(e)}}}let p=e=>e.startsWith("light")?e.replace(/^light/,"dark"):e.replace(/^dark/,"light");var h=n(9033),m=n(3820);let g={name:null},y=(e=g)=>{let[t,n]=b(e);return n||function(){if(r)return r;let e=(0,a.iE)(),t=e.themes.light?"light":Object.keys(e.themes)[0];return r=v({theme:e.themes[t],name:t})}()},b=e=>{let t=(0,o.useRef)([]),n=E(e,!1,t.current,i.sk?void 0:()=>e.shouldUpdate?.()??(t.current.length>0||void 0)),{themeManager:r,state:a}=n;return[n,(0,o.useMemo)(()=>r&&a?.theme?v(a,e.deopt,r,t.current,e.debug):{},[a?.theme,r,e.deopt,e.debug])]};function v({theme:e,name:t,scheme:n},r=!1,i,o,l){return e?((0,a.iE)(),new Proxy(e,{has:(t,n)=>!!Reflect.has(e,n)||("string"==typeof n?("$"===n[0]&&(n=n.slice(1)),i?.allKeys.has(n)):void 0),get(t,n){if("undefined"!==n&&"string"==typeof n){let t="$"===n[0]?n.slice(1):n,r=e[t];if(r&&"object"==typeof r)return new Proxy(r,{get(e,n){if("val"===n)o&&!o.includes(t)&&o.push(t);else if("get"===n)return e=>(0,s.E0)(r);return Reflect.get(r,n)}})}return Reflect.get(t,n)}})):{}}let S=new Set,w=new WeakMap,x={},$=e=>x[e],T=e=>w.get($(e)),C=e=>{if(!x[e.id]){let t=x[e.id]={};w.set(t,e)}},E=(e,t=!1,n,r)=>{let{disable:s}=e,l=T((0,o.useContext)(h.s));if(!t&&!l||s)return{isNewTheme:!1,state:l?.state,themeManager:l};let[u,f]=(0,o.useState)($),{state:p,mounted:g,isNewTheme:y,themeManager:b,inversed:v}=u,w=!!(!u.mounted&&e.inverse);function x(t=b,n,i=p,o=!1){let a=r?.();if(!t||!o&&!1===a)return;let s=n||t.getState(e,l);if(o||s&&!(!0!==a&&!t.getStateShouldChange(s,i)))return s}if(i.sk||(0,o.useEffect)(()=>{if(!b)return;if(e.inverse&&!g){f(e=>$({...e,mounted:!0}));return}(y||x(b))&&(S.add(b),f($));let t=b.onChangeTheme((e,t,n)=>{n&&f(e=>$(e,!0))}),i=l?.onChangeTheme((t,i,o)=>{let a=o||r?.()||e.deopt||void 0;(a??!!(n?.length||y))&&f(e=>$(e,a))},b.id);return()=>{t(),i?.(),y&&S.delete(b)}},[b,l,y,e.componentName,e.inverse,e.name,e.reset,g]),i.$L&&w)return{isNewTheme:!1,inversed:!1,themeManager:l,state:{name:"",...l?.state,className:""}};return{state:p,isNewTheme:y,inversed:v,themeManager:b};function $(o,s=!1){if(o&&r?.()===!1&&!s)return o;let u=l,f;if(c(e)){let r=()=>new d(e,t?"root":l);if(o?.themeManager){u=o.themeManager;let i=s||!!n?.length,a=u.getState(e,l),c=x(u,a,o.state,i);c?(f=c,o.isNewTheme||t?u.updateState(c):u=r()):o.isNewTheme&&l&&!a&&(u=l)}else f={...(u=r()).state}}let p=!!(u!==l||e.inverse);p&&C(u);let h=!!i.$L&&!(0,a.iE)().disableSSR,g=!h||t||o?.mounted;f||(p?f=u.state:(f=l.state,u=l));let y=o?.inversed,b=!!p&&f.scheme!==l?.state.scheme||(h?null==y&&null:e.inverse),v={themeManager:u,isNewTheme:p,mounted:g,inversed:b},S=o&&!s&&(0,m.N2)(o,v)&&(0,m.N2)(o.state,f);return o&&S?o:(v.state=f,v)}}},4283:function(e,t,n){"use strict";n.d(t,{P:function(){return r},b:function(){return i}});let r={};function i(e){Object.assign(r,e)}},4975:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(9100);let i=(e,t,n=0)=>{let r={};for(let o in t){let a=e?.[o],s=t[o];a&&"function"!=typeof s?a&&!s?r[o]=a[o]:0===n?r[o]=i(a,s,n+1):r[o]={...a,...s}:r[o]=s}return{...e,...r}},o=new WeakMap,a={Image:{isReactNative:!0,inlineProps:new Set(["src","width","height"])},Text:{isReactNative:!0,isText:!0},TextInput:{isReactNative:!0,isInput:!0,isText:!0},default:{isReactNative:!0}};function s(e,t,n){let s=e.staticConfig,l=!!s&&!(s.isReactNative||s.isHOC),u=s?.isHOC&&!s?.isStyledHOC||l?e:s?.Component||e,c=s?void 0:function(e){if(e)return e.getSize&&e.prefetch?a.Image:"Text"===e.displayName&&e.render?a.Text:e.render&&("ScrollView"===e.displayName||"View"===e.displayName)?a.default:e.State?.blurTextInput?a.TextInput:o.get(e)}(u),f=!!(c||n?.isReactNative||s?.isReactNative),d=(()=>{if(t){let{variants:e,name:r,defaultVariants:o,acceptsClassName:a,context:d,...p}=t;o&&(p={...o,...p}),s&&(s.isHOC&&!s.isStyledHOC||(p={...s.defaultProps,...p},s.variants&&(e=i(s.variants,e)))),s?.isHOC&&r&&(p.componentName=r);let h=!!(n?.isText||s?.isText),m=a??(l||f||s?.isHOC&&s?.acceptsClassName),g={...s,...n,...!l&&{Component:u},variants:e,defaultProps:p,defaultVariants:o,componentName:r||s?.componentName,isReactNative:f,isText:h,acceptsClassName:m,context:d,...c,isStyledHOC:!!s?.isHOC,parentStaticConfig:s};return(p.children||!m||d)&&(g.neverFlatten=!0),g}})(),p=(0,r.LM)(d||{});for(let t in e)"propTypes"!==t&&(t in p||(p[t]=e[t]));return p}},5566:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var r=n(8338),i=n(9242);let o=(0,n(9100).LM)({acceptsClassName:!0,defaultProps:i.tn,validStyles:r.Qn});o.displayName="Stack"},8475:function(e,t,n){"use strict";n.d(t,{x:function(){return a}});var r=n(8338),i=n(9100);let o={maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},a=(0,i.LM)({acceptsClassName:!0,isText:!0,defaultProps:{fontFamily:"unset",display:"inline",boxSizing:"border-box",wordWrap:"break-word",whiteSpace:"pre-wrap",margin:0},inlineWhenUnflattened:new Set(["fontFamily"]),variants:{numberOfLines:{1:o,":number":e=>e>=1?{WebkitLineClamp:e,WebkitBoxOrient:"vertical",display:"-webkit-box",overflow:"hidden"}:null},selectable:{true:{userSelect:"text",cursor:"text"},false:{userSelect:"none",cursor:"default"}},ellipse:{true:o},ellipsis:{true:o}},validStyles:{...r.Qn,...r.hT}});a.displayName="Text"},1130:function(e,t,n){"use strict";n.d(t,{Q:function(){return u},u:function(){return c}});var r=n(281),i=n(2265),o=n(2202),a=n(9033),s=n(8411),l=n(2281);let u=(0,i.forwardRef)(function({children:e,...t},n){if(t.disable)return e;let r=!!t._isRoot,o=(0,s.fe)(t,r),a=t["disable-child-theme"]?i.Children.map(e,e=>(0,i.cloneElement)(e,{"data-disable-theme":!0})):e;if(n)try{i.Children.only(a),a=(0,i.cloneElement)(a,{ref:n})}catch{}return c(o,a,t,r)});function c(e,t,n,s=!1){let{themeManager:c,isNewTheme:d}=e;if(!c)throw Error("❌ 005");let{shallow:p,forceClassName:h}=n,m=(0,i.useRef)(!1),g=d||n.inverse||m.current||h||s;if(g&&(m.current=!0),!g)return t;let y=t;p&&(y=i.Children.toArray(t).map(e=>(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,(0,l.jsx)(u,{name:c.state.parentName,children:e.props.children})):e));let b=(0,l.jsx)(a.s.Provider,{value:c.id,children:y});return!1===h?b:r.$L?function({children:e,themeState:t,forceClassName:n,isRoot:r}){if(r&&!1===n)return e;let i=t.inversed,{className:a,style:s}=function(e,t=!1){if(!e.isNewTheme)return{className:"",style:f};let n=e.state?.theme&&e.isNewTheme?(0,o.lk)(e.state.theme.color):"",r=e.state?.className||"";return t&&(r=r.replace("t_sub_theme","")),{style:n?{color:n}:void 0,className:r}}(t,r),u=(0,l.jsx)("span",{className:`${a} _dsp_contents is_Theme`,style:s,children:e});if(null!=i||n){let e=t.state?.name||"",n=e.startsWith("light")?"t_light is_inversed":e.startsWith("dark")?"t_dark is_inversed":"";u=(0,l.jsx)("span",{className:`${i?n:""} _dsp_contents`,children:u})}return u}({children:b,themeState:e,forceClassName:h,isRoot:s}):b}u.displayName="Theme",u.avoidForwardRef=!0;let f={}}}]); \ No newline at end of file diff --git a/_next/static/chunks/143-c7b592a3726d7fed.js b/_next/static/chunks/143-c7b592a3726d7fed.js new file mode 100644 index 0000000000000000000000000000000000000000..591e3481c28214c7b5a83f287de06b32ed95c73a --- /dev/null +++ b/_next/static/chunks/143-c7b592a3726d7fed.js @@ -0,0 +1,8 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[143],{44:function(e){"use strict";let t;function n(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function r(e,t,r){let i=r<.5?r*(1+t):r+t-r*t,o=2*r-i;return Math.round(255*n(o,i,e+1/3))<<24|Math.round(255*n(o,i,e))<<16|Math.round(255*n(o,i,e-1/3))<<8}let i="[-+]?\\d*\\.?\\d+",o=i+"%";function a(...e){return"\\(\\s*("+e.join(")\\s*,?\\s*(")+")\\s*\\)"}function l(...e){return"\\(\\s*("+e.slice(0,e.length-1).join(")\\s*,?\\s*(")+")\\s*/\\s*("+e[e.length-1]+")\\s*\\)"}function s(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}function u(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function c(e){return(parseFloat(e)%360+360)%360/360}function f(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function d(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}e.exports=function(e){let p;if("number"==typeof e)return e>>>0===e&&e>=0&&e<=4294967295?e:null;if("string"!=typeof e)return null;let h=(void 0===t&&(t={rgb:RegExp("rgb"+a(i,i,i)),rgba:RegExp("rgba("+s(i,i,i,i)+"|"+l(i,i,i,i)+")"),hsl:RegExp("hsl"+a(i,o,o)),hsla:RegExp("hsla("+s(i,o,o,i)+"|"+l(i,o,o,i)+")"),hwb:RegExp("hwb"+a(i,o,o)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),t);if(p=h.hex6.exec(e))return parseInt(p[1]+"ff",16)>>>0;let m=function(e){switch(e){case"transparent":return 0;case"aliceblue":return 4042850303;case"antiquewhite":return 4209760255;case"aqua":case"cyan":return 16777215;case"aquamarine":return 2147472639;case"azure":return 4043309055;case"beige":return 4126530815;case"bisque":return 4293182719;case"black":return 255;case"blanchedalmond":return 4293643775;case"blue":return 65535;case"blueviolet":return 2318131967;case"brown":return 2771004159;case"burlywood":return 3736635391;case"burntsienna":return 3934150143;case"cadetblue":return 1604231423;case"chartreuse":return 2147418367;case"chocolate":return 3530104575;case"coral":return 4286533887;case"cornflowerblue":return 1687547391;case"cornsilk":return 4294499583;case"crimson":return 3692313855;case"darkblue":return 35839;case"darkcyan":return 9145343;case"darkgoldenrod":return 3095792639;case"darkgray":case"darkgrey":return 2846468607;case"darkgreen":return 6553855;case"darkkhaki":return 3182914559;case"darkmagenta":return 2332068863;case"darkolivegreen":return 1433087999;case"darkorange":return 4287365375;case"darkorchid":return 2570243327;case"darkred":return 2332033279;case"darksalmon":return 3918953215;case"darkseagreen":return 2411499519;case"darkslateblue":return 1211993087;case"darkslategray":case"darkslategrey":return 793726975;case"darkturquoise":return 13554175;case"darkviolet":return 2483082239;case"deeppink":return 4279538687;case"deepskyblue":return 12582911;case"dimgray":case"dimgrey":return 1768516095;case"dodgerblue":return 512819199;case"firebrick":return 2988581631;case"floralwhite":return 4294635775;case"forestgreen":return 579543807;case"fuchsia":case"magenta":return 4278255615;case"gainsboro":return 3705462015;case"ghostwhite":return 4177068031;case"gold":return 4292280575;case"goldenrod":return 3668254975;case"gray":case"grey":return 2155905279;case"green":return 8388863;case"greenyellow":return 2919182335;case"honeydew":return 4043305215;case"hotpink":return 4285117695;case"indianred":return 3445382399;case"indigo":return 1258324735;case"ivory":return 4294963455;case"khaki":return 4041641215;case"lavender":return 3873897215;case"lavenderblush":return 4293981695;case"lawngreen":return 2096890111;case"lemonchiffon":return 4294626815;case"lightblue":return 2916673279;case"lightcoral":return 4034953471;case"lightcyan":return 3774873599;case"lightgoldenrodyellow":return 4210742015;case"lightgray":case"lightgrey":return 3553874943;case"lightgreen":return 2431553791;case"lightpink":return 4290167295;case"lightsalmon":return 4288707327;case"lightseagreen":return 548580095;case"lightskyblue":return 2278488831;case"lightslategray":case"lightslategrey":return 2005441023;case"lightsteelblue":return 2965692159;case"lightyellow":return 4294959359;case"lime":return 16711935;case"limegreen":return 852308735;case"linen":return 4210091775;case"maroon":return 2147483903;case"mediumaquamarine":return 1724754687;case"mediumblue":return 52735;case"mediumorchid":return 3126187007;case"mediumpurple":return 2473647103;case"mediumseagreen":return 1018393087;case"mediumslateblue":return 2070474495;case"mediumspringgreen":return 16423679;case"mediumturquoise":return 1221709055;case"mediumvioletred":return 3340076543;case"midnightblue":return 421097727;case"mintcream":return 4127193855;case"mistyrose":return 4293190143;case"moccasin":return 4293178879;case"navajowhite":return 4292783615;case"navy":return 33023;case"oldlace":return 4260751103;case"olive":return 2155872511;case"olivedrab":return 1804477439;case"orange":return 4289003775;case"orangered":return 4282712319;case"orchid":return 3664828159;case"palegoldenrod":return 4008225535;case"palegreen":return 2566625535;case"paleturquoise":return 2951671551;case"palevioletred":return 3681588223;case"papayawhip":return 4293907967;case"peachpuff":return 4292524543;case"peru":return 3448061951;case"pink":return 4290825215;case"plum":return 3718307327;case"powderblue":return 2967529215;case"purple":return 2147516671;case"rebeccapurple":return 1714657791;case"red":return 4278190335;case"rosybrown":return 3163525119;case"royalblue":return 1097458175;case"saddlebrown":return 2336560127;case"salmon":return 4202722047;case"sandybrown":return 4104413439;case"seagreen":return 780883967;case"seashell":return 4294307583;case"sienna":return 2689740287;case"silver":return 3233857791;case"skyblue":return 2278484991;case"slateblue":return 1784335871;case"slategray":case"slategrey":return 1887473919;case"snow":return 4294638335;case"springgreen":return 16744447;case"steelblue":return 1182971135;case"tan":return 3535047935;case"teal":return 8421631;case"thistle":return 3636451583;case"tomato":return 4284696575;case"turquoise":return 1088475391;case"violet":return 4001558271;case"wheat":return 4125012991;case"white":return 4294967295;case"whitesmoke":return 4126537215;case"yellow":return 4294902015;case"yellowgreen":return 2597139199}return null}(e);return null!=m?m:(p=h.rgb.exec(e))?(u(p[1])<<24|u(p[2])<<16|u(p[3])<<8|255)>>>0:(p=h.rgba.exec(e))?void 0!==p[6]?(u(p[6])<<24|u(p[7])<<16|u(p[8])<<8|f(p[9]))>>>0:(u(p[2])<<24|u(p[3])<<16|u(p[4])<<8|f(p[5]))>>>0:(p=h.hex3.exec(e))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+"ff",16)>>>0:(p=h.hex8.exec(e))?parseInt(p[1],16)>>>0:(p=h.hex4.exec(e))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+p[4]+p[4],16)>>>0:(p=h.hsl.exec(e))?(255|r(c(p[1]),d(p[2]),d(p[3])))>>>0:(p=h.hsla.exec(e))?void 0!==p[6]?(r(c(p[6]),d(p[7]),d(p[8]))|f(p[9]))>>>0:(r(c(p[2]),d(p[3]),d(p[4]))|f(p[5]))>>>0:(p=h.hwb.exec(e))?(255|function(e,t,r){if(t+r>=1){let e=Math.round(255*t/(t+r));return e<<24|e<<16|e<<8}return Math.round(255*(n(0,1,e+1/3)*(1-t-r)+t))<<24|Math.round(255*(n(0,1,e)*(1-t-r)+t))<<16|Math.round(255*(n(0,1,e-1/3)*(1-t-r)+t))<<8}(c(p[1]),d(p[2]),d(p[3])))>>>0:null}},7961:function(){void 0===globalThis.__DEV__&&(globalThis.__DEV__=!1)},357:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(8081)},8081:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s=[],u=!1,c=-1;function f(){u&&r&&(u=!1,r.length?s=r.concat(s):c=-1,s.length&&d())}function d(){if(!u){var e=l(f);u=!0;for(var t=s.length;t;){for(r=s,s=[];++c1)for(var n=1;ne.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})}function o(...e){return r.useCallback(i(...e),e)}},281:function(e,t,n){"use strict";n.d(t,{ob:function(){return p},Dt:function(){return f},C5:function(){return l},s:function(){return d},sk:function(){return a},wT:function(){return c},$L:function(){return i},LI:function(){return s}});var r=n(2265);let i=!0,o="u">typeof window,a=!o,l=o,s=a?r.useEffect:r.useLayoutEffect,u=("u">typeof navigator&&/Chrome/.test(navigator.userAgent||""),l&&("ontouchstart"in window||navigator.maxTouchPoints>0)),c=!i||u,f=!1,d=!1,p="web"},2166:function(e,t,n){"use strict";n.d(t,{Kq:function(){return ei},xv:function(){return eo},G7:function(){return er}});var r=n(2265);let i="__reactResponderId",o=!!("u">typeof window&&window.document&&window.document.createElement),a=e=>{if(e&&1===e.nodeType&&e.getBoundingClientRect)return e.getBoundingClientRect()};function l(e){let t=[];for(;null!=e&&e!==document.body;)t.push(e),e=e.parentNode;return t}let s=()=>{},u={},c=[];function f(e){return e>20?e%20:e}function d(e,t){let n,r=!1,i,o,l=e.changedTouches,d=e.type,p=!0===e.metaKey,h=!0===e.shiftKey,m=l?.[0].force||0,g=f(l?.[0].identifier||0),y=l?.[0].clientX||e.clientX,b=l?.[0].clientY||e.clientY,v=l?.[0].pageX||e.pageX,S=l?.[0].pageY||e.pageY,w="function"==typeof e.preventDefault?e.preventDefault.bind(e):s,x=e.timeStamp;function T(e){return Array.prototype.slice.call(e).map(e=>({force:e.force,identifier:f(e.identifier),get locationX(){return $(e.clientX)},get locationY(){return E(e.clientY)},pageX:e.pageX,pageY:e.pageY,target:e.target,timestamp:x}))}if(null!=l)i=T(l),o=T(e.touches);else{let t=[{force:m,identifier:g,get locationX(){return $(y)},get locationY(){return E(b)},pageX:v,pageY:S,target:e.target,timestamp:x}];i=t,o="mouseup"===d||"dragstart"===d?c:t}let C={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:e.defaultPrevented,dispatchConfig:u,eventPhase:e.eventPhase,isDefaultPrevented:()=>e.defaultPrevented,isPropagationStopped:()=>r,isTrusted:e.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:p,shiftKey:h,changedTouches:i,force:m,identifier:g,get locationX(){return $(y)},get locationY(){return E(b)},pageX:v,pageY:S,target:e.target,timestamp:x,touches:o,type:d},persist:s,preventDefault:w,stopPropagation(){r=!0},target:e.target,timeStamp:x,touchHistory:t.touchHistory};function $(e){if(n=n||a(C.currentTarget))return e-n.left}function E(e){if(n=n||a(C.currentTarget))return e-n.top}return C}function p(e){return"touchstart"===e||"mousedown"===e}function h(e){return"touchmove"===e||"mousemove"===e}function m(e){return"touchend"===e||"mouseup"===e||g(e)}function g(e){return"touchcancel"===e||"dragstart"===e}class y{_touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};recordTouchTrack(e,t){let n=this._touchHistory;if(h(e))t.changedTouches.forEach(e=>(function(e,t){let n=t.touchBank[v(e)];n?(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=b(e),t.mostRecentTimeStamp=b(e)):console.warn(`Cannot record touch move without a touch start. +`,`Touch Move: ${S(e)} +`,`Touch Bank: ${w(t)}`)})(e,n));else if(p(e))t.changedTouches.forEach(e=>(function(e,t){let n=v(e),r=t.touchBank[n];r?(r.touchActive=!0,r.startPageX=e.pageX,r.startPageY=e.pageY,r.startTimeStamp=b(e),r.currentPageX=e.pageX,r.currentPageY=e.pageY,r.currentTimeStamp=b(e),r.previousPageX=e.pageX,r.previousPageY=e.pageY,r.previousTimeStamp=b(e)):t.touchBank[n]={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:b(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:b(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:b(e)},t.mostRecentTimeStamp=b(e)})(e,n)),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches&&(n.indexOfSingleActiveTouch=t.touches[0].identifier);else if(m(e)&&(t.changedTouches.forEach(e=>(function(e,t){let n=t.touchBank[v(e)];n?(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=b(e),t.mostRecentTimeStamp=b(e)):console.warn(`Cannot record touch end without a touch start. +`,`Touch End: ${S(e)} +`,`Touch Bank: ${w(t)}`)})(e,n)),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches)){let{touchBank:e}=n;for(let t=0;t20&&(n+=` (original size: ${t.length})`),n}let x={},T=["onStartShouldSetResponderCapture","onStartShouldSetResponder",{bubbles:!0}],C=["onMoveShouldSetResponderCapture","onMoveShouldSetResponder",{bubbles:!0}],$={touchstart:T,mousedown:T,touchmove:C,mousemove:C,scroll:["onScrollShouldSetResponderCapture","onScrollShouldSetResponder",{bubbles:!1}]},E={id:null,idPath:null,node:null},k=new Map,R=!1,P=0,A={id:null,node:null,idPath:null},_=new y;function O(e){return k.get(e)??x}function N(e){let t=e.type,n=e.target;if("touchstart"===t&&(R=!0),("touchmove"===t||P>1)&&(R=!1),"mousedown"===t&&R||"mousemove"===t&&R||"mousemove"===t&&P<1)return;if(R&&"mouseup"===t){0===P&&(R=!1);return}let r=p(t)&&function(e){let{altKey:t,button:n,buttons:r,ctrlKey:i,type:o}=e,a=!1===t&&!1===i;return!!("touchstart"===o||"touchmove"===o||"mousedown"===o&&(0===n||1===r)&&a||"mousemove"===o&&1===r&&a)}(e),o=h(t),a=m(t),s="scroll"===t,u="select"===t||"selectionchange"===t,c=d(e,_);(r||o||a)&&(e.touches?P=e.touches.length:r?P=1:a&&(P=0),_.recordTouchTrack(t,c.nativeEvent));let f=function(e){let t=[],n=[],r="selectionchange"===e.type?l(window.getSelection()?.anchorNode):null!=e.composedPath?e.composedPath():l(e.target);for(let e=0;e0){let t=A.idPath,n=f.idPath;if(null!=t&&null!=n){let e=function(e,t){let n=e.length,r=t.length;if(0===n||0===r||e[n-1]!==t[r-1])return null;let i=e[0],o=0,a=t[0],l=0;n-r>0&&(i=e[o=n-r],n=r),r-n>0&&(a=t[l=r-n],r=n);let s=n;for(;s--;){if(i===a)return i;i=e[o++],a=t[l++]}return null}(t,n);if(null!=e){let t=n.indexOf(e)+(e===A.id?1:0);f={idPath:n.slice(t),nodePath:f.nodePath.slice(t)}}else f=null}null!=f&&null!=(b=function(e,t,n){let r=$[t.type];if(null!=r){let{idPath:i,nodePath:o}=e,a=r[0],l=r[1],{bubbles:s}=r[2],u=(e,t,r)=>{let o=O(e)[r];if(null!=o&&(n.currentTarget=t,!0===o(n))){let n=i.slice(i.indexOf(e));return{id:e,node:t,idPath:n}}};for(let e=i.length-1;e>=0;e--){let t=u(i[e],o[e],a);if(null!=t)return t;if(!0===n.isPropagationStopped())return}if(s)for(let e=0;e=1&&t!==` +`&&!!i}():"select"===e.type),i=a&&!r&&!function(e,t){if(!t||0===t.length)return!1;for(let n=0;n{if(!(!e||1!==e.nodeType))return e.getBoundingClientRect?.()},U=new WeakMap,K=new Set,Q=null;if("u">typeof window&&"ResizeObserver"in window&&(Q=new ResizeObserver(e=>{for(let{target:t}of e){let e=U.get(t);if("function"!=typeof e)return;q(t).then(t=>{e(t)})}}),"function"==typeof window.addEventListener)){let e;window.addEventListener("resize",()=>{clearTimeout(e),e=setTimeout(()=>{K.forEach(e=>e())},4)})}let q=async e=>new Promise(t=>{J(e,null,(n,r,i,o,a,l)=>{t({nativeEvent:{layout:{x:n,y:r,width:i,height:o,left:a,top:l},target:e},timeStamp:Date.now()})})}),Z=new WeakMap,J=(e,t,n)=>{let r=t||e?.parentNode;if(r instanceof HTMLElement){let t=Date.now();Z.set(e,t),Promise.all([et(e),et(r)]).then(([r,i])=>{if(i&&r&&Z.get(e)===t){let{x:e,y:t,width:o,height:a,left:l,top:s}=ee(r,i);n(e,t,o,a,l,s)}})}},ee=(e,t)=>{let{height:n,left:r,top:i,width:o}=e;return{x:r-t.left,y:i-t.top,width:o,height:n,left:r,top:i}},et=e=>new Promise(t=>{let n=setTimeout(function(){t(G(e))},10);new IntersectionObserver((e,r)=>{clearTimeout(n),r.disconnect(),t(e[0]?.boundingClientRect)},{threshold:1e-4}).observe(e)}),en=e=>{let t=G(e);if(!t)return;let{x:n,y:r,top:i,left:o}=t;return{x:n,y:r,width:e.offsetWidth,height:e.offsetHeight,top:i,left:o}};X(),(0,B.b)({getBaseViews:X,usePropsTransform(e,t,n,a){{let s="string"==typeof e,{onMoveShouldSetResponder:u,onMoveShouldSetResponderCapture:c,onResponderEnd:f,onResponderGrant:d,onResponderMove:p,onResponderReject:h,onResponderRelease:m,onResponderStart:g,onResponderTerminate:y,onResponderTerminationRequest:b,onScrollShouldSetResponder:v,onScrollShouldSetResponderCapture:S,onSelectionChangeShouldSetResponder:w,onSelectionChangeShouldSetResponderCapture:x,onStartShouldSetResponder:T,onStartShouldSetResponderCapture:C,collapsable:$,focusable:E,accessible:R,accessibilityDisabled:P,onLayout:A,hrefAttrs:_,...O}=t;if(a||s){var l;let e=(0,r.useMemo)(()=>({get current(){return n.current.host}}),[n]);(0,H.LI)(()=>{let t=e.current;t&&(t.measure||=e=>J(t,null,e),t.measureLayout||=(e,n)=>J(t,e,n),t.measureInWindow||=e=>{t&&setTimeout(()=>{let{height:n,left:r,top:i,width:o}=en(t);e(r,i,o,n)},0)})},[e]),l=s?A:void 0,(0,H.LI)(()=>{if(!l)return;let t=e.current;t&&U.set(t,l)},[e,l]),(0,H.LI)(()=>{if(!Q)return;let t=e.current;if(!t||!U.has(t))return;let n=()=>{q(t).then(l)};return K.add(n),Q.observe(t),()=>{K.delete(n),Q?.unobserve(t)}},[e]),function(e,t=W){let n=r.useId(),a=r.useRef(!1);r.useEffect(()=>(o&&!window[M]&&(window.addEventListener("blur",N),I.forEach(e=>{document.addEventListener(e,N)}),L.forEach(e=>{document.addEventListener(e,N,!0)}),window[M]=!0),()=>{j(n)}),[n]),r.useEffect(()=>{let{onMoveShouldSetResponder:r,onMoveShouldSetResponderCapture:o,onScrollShouldSetResponder:l,onScrollShouldSetResponderCapture:s,onSelectionChangeShouldSetResponder:u,onSelectionChangeShouldSetResponderCapture:c,onStartShouldSetResponder:f,onStartShouldSetResponderCapture:d}=t,p=e.current;null!=r||null!=o||null!=l||null!=s||null!=u||null!=c||null!=f||null!=d?(null!=p&&(p[i]=n),k.set(n,t),a.current=!0):a.current&&(j(n),a.current=!1)},[t,e,n])}(e,s?{onMoveShouldSetResponder:u,onMoveShouldSetResponderCapture:c,onResponderEnd:f,onResponderGrant:d,onResponderMove:p,onResponderReject:h,onResponderRelease:m,onResponderStart:g,onResponderTerminate:y,onResponderTerminationRequest:b,onScrollShouldSetResponder:v,onScrollShouldSetResponderCapture:S,onSelectionChangeShouldSetResponder:w,onSelectionChangeShouldSetResponderCapture:x,onStartShouldSetResponder:T,onStartShouldSetResponderCapture:C}:void 0)}if(s){if(O.href&&_){let{download:e,rel:t,target:n}=_;null!=e&&(O.download=e),t&&(O.rel=t),"string"==typeof n&&(O.target="_"!==n.charAt(0)?`_${n}`:n)}return O}}},useEvents(e,t,{pseudos:n},r,i){}});let er=Y,ei=D.K,eo=V.x},8338:function(e,t,n){"use strict";n.d(t,{Mj:function(){return a},M:function(){return i},cC:function(){return m},FB:function(){return h},hT:function(){return p},Dc:function(){return f},O0:function(){return c},CV:function(){return u},M6:function(){return g},Qn:function(){return y},$e:function(){return S}});let r=new Map,i=(e,t=10)=>{if(r.has(e))return r.get(e);let n=0,i="",a=e.length;for(let r=0;r=65&&l<=90||l>=97&&l<=122||95===l||45===l||l>=48&&l<=57)&&a<=t)){i+=e[r];continue}n=o(n,e[r])}let l=i+(n?Math.abs(n):"");return r.size>1e4&&r.clear(),r.set(e,l),l},o=(e,t)=>Math.imul(31,e)+t.charCodeAt(0)|0;function a(e,t,{checkDefaultPrevented:n=!0}={}){return e&&t?r=>{if(e?.(r),!r||!(n&&"defaultPrevented"in r)||"defaultPrevented"in r&&!r.defaultPrevented)return t?.(r)}:t||e||void 0}var l=n(281);let s={color:!0,textDecorationColor:!0,textShadowColor:!0},u={radius:{borderRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderStartStartRadius:!0,borderStartEndRadius:!0,borderEndStartRadius:!0,borderEndEndRadius:!0},size:{width:!0,height:!0,minWidth:!0,minHeight:!0,maxWidth:!0,maxHeight:!0,blockSize:!0,minBlockSize:!0,maxBlockSize:!0,inlineSize:!0,minInlineSize:!0,maxInlineSize:!0},zIndex:{zIndex:!0},color:{backgroundColor:!0,borderColor:!0,borderBlockStartColor:!0,borderBlockEndColor:!0,borderBlockColor:!0,borderBottomColor:!0,borderInlineColor:!0,borderInlineStartColor:!0,borderInlineEndColor:!0,borderTopColor:!0,borderLeftColor:!0,borderRightColor:!0,borderEndColor:!0,borderStartColor:!0,shadowColor:!0,...s,outlineColor:!0,caretColor:!0}},c={WebkitLineClamp:!0,animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},f={x:!0,y:!0,scale:!0,perspective:!0,scaleX:!0,scaleY:!0,skewX:!0,skewY:!0,matrix:!0,rotate:!0,rotateY:!0,rotateX:!0,rotateZ:!0},d={backfaceVisibility:!0,borderBottomEndRadius:!0,borderBottomStartRadius:!0,borderBottomWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderBlockWidth:!0,borderBlockEndWidth:!0,borderBlockStartWidth:!0,borderInlineWidth:!0,borderInlineEndWidth:!0,borderInlineStartWidth:!0,borderStyle:!0,borderBlockStyle:!0,borderBlockEndStyle:!0,borderBlockStartStyle:!0,borderInlineStyle:!0,borderInlineEndStyle:!0,borderInlineStartStyle:!0,borderTopEndRadius:!0,borderTopStartRadius:!0,borderTopWidth:!0,borderWidth:!0,transform:!0,transformOrigin:!0,alignContent:!0,alignItems:!0,alignSelf:!0,borderEndWidth:!0,borderStartWidth:!0,bottom:!0,display:!0,end:!0,flexBasis:!0,flexDirection:!0,flexWrap:!0,gap:!0,columnGap:!0,rowGap:!0,justifyContent:!0,left:!0,margin:!0,marginBlock:!0,marginBlockEnd:!0,marginBlockStart:!0,marginInline:!0,marginInlineStart:!0,marginInlineEnd:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,overflow:!0,padding:!0,paddingBottom:!0,paddingInline:!0,paddingBlock:!0,paddingBlockStart:!0,paddingInlineEnd:!0,paddingInlineStart:!0,paddingEnd:!0,paddingHorizontal:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,position:!0,right:!0,start:!0,top:!0,inset:!0,insetBlock:!0,insetBlockEnd:!0,insetBlockStart:!0,insetInline:!0,insetInlineEnd:!0,insetInlineStart:!0,direction:!0,shadowOffset:!0,shadowRadius:!0,...u.color,...u.radius,...u.size,...u.radius,...f,...c,backdropFilter:!0,background:!0,backgroundAttachment:!0,backgroundBlendMode:!0,backgroundClip:!0,backgroundColor:!0,backgroundImage:!0,backgroundOrigin:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundSize:!0,borderBottomStyle:!0,borderImage:!0,borderLeftStyle:!0,borderRightStyle:!0,borderTopStyle:!0,boxShadow:!0,boxSizing:!0,caretColor:!0,clipPath:!0,contain:!0,content:!0,cursor:!0,filter:!0,float:!0,mask:!0,maskBorder:!0,maskBorderMode:!0,maskBorderOutset:!0,maskBorderRepeat:!0,maskBorderSlice:!0,maskBorderSource:!0,maskBorderWidth:!0,maskClip:!0,maskComposite:!0,maskImage:!0,maskMode:!0,maskOrigin:!0,maskPosition:!0,maskRepeat:!0,maskSize:!0,maskType:!0,mixBlendMode:!0,objectFit:!0,objectPosition:!0,outlineOffset:!0,outlineStyle:!0,outlineWidth:!0,overflowBlock:!0,overflowInline:!0,overflowX:!0,overflowY:!0,pointerEvents:!0,scrollbarWidth:!0,textEmphasis:!0,touchAction:!0,transformStyle:!0,userSelect:!0,...l.Dt?{elevationAndroid:!0}:{}},p={fontFamily:!0,fontSize:!0,fontStyle:!0,fontWeight:!0,letterSpacing:!0,lineHeight:!0,textTransform:!0,textAlign:!0,textDecorationLine:!0,textDecorationStyle:!0,...s,textShadowOffset:!0,textShadowRadius:!0,userSelect:!0,selectable:!0,verticalAlign:!0,whiteSpace:!0,wordWrap:!0,textOverflow:!0,textDecorationDistance:!0,cursor:!0,WebkitLineClamp:!0,WebkitBoxOrient:!0},h={...d,...p},m=h,g={enterStyle:!0,exitStyle:!0,hoverStyle:!0,pressStyle:!0,focusStyle:!0,disabledStyle:!0,focusVisibleStyle:!0},y={...g,...d};var b=n(2265);let v=Symbol(),S=(e,t)=>{let n=(()=>{if(e[v]){let t=(0,b.forwardRef)((t,n)=>(0,b.createElement)(e,{...t,ref:n}));for(let n in e){let r=e[n];t[n]=r&&"object"==typeof r?{...r}:r}}return e})();return Object.assign(n,t),n[v]=!0,n}},4624:function(e,t,n){"use strict";let r;n.d(t,{h_:function(){return u},$2:function(){return C},b5:function(){return $},Xp:function(){return x}}),n(7961);var i=n(281),o=n(5377),a=n(2265),l=n(4887),s=n(2281);let u=a.memo(({host:e=globalThis.document?.body,...t})=>{let n=(0,s.jsx)(o.FA,{contain:"strict",fullscreen:!0,position:i.$L?"fixed":"absolute",maxWidth:i.$L?"100vw":"100%",maxHeight:i.$L?"100vh":"100%",pointerEvents:"none",...t}),[r,u]=a.useState(null);return a.useEffect(()=>{u(e)},[e]),r&&t.children?(0,l.createPortal)(n,r):null});var c=n(9087),f=((r=f||{})[r.REGISTER_HOST=0]="REGISTER_HOST",r[r.DEREGISTER_HOST=1]="DEREGISTER_HOST",r[r.ADD_UPDATE_PORTAL=2]="ADD_UPDATE_PORTAL",r[r.REMOVE_PORTAL=3]="REMOVE_PORTAL",r);let d={},p=(e,t)=>(t in e||(e[t]=[]),e),h=(e,t)=>(delete e[t],e),m=(e,t,n,r)=>{t in e||(e=p(e,t));let i=e[t].findIndex(e=>e.name===n);return -1!==i?e[t][i].node=r:e[t].push({name:n,node:r}),e},g=(e,t,n)=>{if(!(t in e))return console.info(`Failed to remove portal '${n}', '${t}' was not registered!`),e;let r=e[t].findIndex(e=>e.name===n);return -1!==r&&e[t].splice(r,1),e},y=(e,t)=>{let{type:n}=t;switch(n){case 0:return p({...e},t.hostName);case 1:return h({...e},t.hostName);case 2:return m({...e},t.hostName,t.portalName,t.node);case 3:return g({...e},t.hostName,t.portalName);default:return e}},b=(0,a.createContext)(null),v=(0,a.createContext)(null),S=e=>{let t=(0,a.useContext)(b);if(null===t)throw Error("'PortalStateContext' cannot be null, please add 'PortalProvider' to the root component.");return t[e]||[]},w=(e="root")=>{let t=(0,a.useContext)(v);if(null===t)throw Error("'PortalDispatchContext' cannot be null, please add 'PortalProvider' to the root component.");let n=(0,a.useCallback)(()=>{t({type:0,hostName:e})},[]),r=(0,a.useCallback)(()=>{t({type:1,hostName:e})},[]),i=(0,a.useCallback)((n,r)=>{t({type:2,hostName:e,portalName:n,node:r})},[]);return{registerHost:n,deregisterHost:r,addPortal:i,updatePortal:i,removePortal:(0,a.useCallback)(n=>{t({type:3,hostName:e,portalName:n})},[])}},x=(0,a.memo)(({rootHostName:e="root",shouldAddRootHost:t=!0,children:n})=>{let[r,i]=(0,a.useReducer)(y,d),o=(0,a.useMemo)(()=>e=>{(0,a.startTransition)(()=>{i(e)})},[i]);return(0,s.jsx)(v.Provider,{value:o,children:(0,s.jsxs)(b.Provider,{value:r,children:[n,t&&(0,s.jsx)(C,{name:e})]})})});x.displayName="PortalProvider";let T=e=>(0,s.jsx)(s.Fragment,{children:e}),C=(0,a.memo)(e=>{let{name:t,forwardProps:n,render:r=T}=e,i=S(t),{registerHost:o,deregisterHost:l}=w(e.name);return(0,a.useEffect)(()=>{if(!(typeof window>"u"))return o(),()=>{l()}},[]),r(n?i.map(e=>{let t=e.node;return n?a.Children.map(t,e=>a.isValidElement(e)?a.cloneElement(e,{key:e.key,...n}):e):t}):i.map(e=>e.node))});C.displayName="PortalHost";let $=(0,a.memo)(e=>{let{name:t,hostName:n,handleOnMount:r,handleOnUnmount:o,handleOnUpdate:l,children:s}=e,{addPortal:u,removePortal:f}=w(n),d=(0,a.useId)(),p=t||d,h=(0,c.z)(()=>{r?r(()=>u(p,s)):u(p,s)}),m=(0,c.z)(()=>{o?o(()=>f(p)):f(p)}),g=(0,c.z)(()=>{l?l(()=>u(p,s)):u(p,s)});return(0,i.LI)(()=>(h(),()=>{m()}),[]),(0,a.useEffect)(()=>{g()},[s]),null});$.displayName="Portal"},5377:function(e,t,n){"use strict";n.d(t,{FA:function(){return s},Xu:function(){return a},sL:function(){return u}});var r=n(4975),i=n(2166),o=n(8587);let a={position:"absolute",top:0,left:0,right:0,bottom:0},l={fullscreen:{true:a},elevation:{"...size":o.y,":number":o.y},inset:e=>e&&"object"==typeof e?e:{top:e,left:e,bottom:e,right:e}},s=(0,r.z)(i.G7,{flexDirection:"column",variants:l});s.displayName="YStack";let u=(0,r.z)(i.G7,{flexDirection:"row",variants:l});u.displayName="XStack",(0,r.z)(s,{position:"relative"},{neverFlatten:!0,isZStack:!0}).displayName="ZStack"},8587:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});var r=n(2202),i=n(281);let o=(e,t)=>{if(!e)return;let{tokens:n}=t,i=n.size[e];return a((0,r.cG)(i)?+i.val:e,t)},a=(e,{theme:t,tokens:n})=>{let o=0;if(!0===e){let e=(0,r.Ve)(n.size.true);o="number"==typeof e?e:10}else o=+e;if(0===o)return;let[a,l]=[Math.round(o/4+1),Math.round(o/2+2)];return{shadowColor:t.shadowColor,shadowRadius:l,shadowOffset:{height:a,width:0},...i.Dt?{elevationAndroid:2*a}:{}}}},9087:function(e,t,n){"use strict";n.d(t,{z:function(){return a},X:function(){return o}});var r=n(281),i=n(2265);function o(e,t,n){let o=(0,i.useRef)(t??e);return(0,r.LI)(()=>{o.current=e}),(0,i.useCallback)(n?(...e)=>o.current?.apply(null,e):()=>o.current,[])}function a(e){return o(e,l,!0)}let l=()=>{throw Error("Cannot call an event handler while rendering.")}},5390:function(e,t,n){"use strict";n.d(t,{Oy:function(){return o},il:function(){return a},oO:function(){return l}});var r=n(2265),i=n(2281);let o=(0,r.createContext)(null),a=e=>(0,i.jsx)(o.Provider,{value:null,children:e.children});function l(){let e=(0,r.useContext)(o);if(!e)return[!0,null,e];let{id:t,isPresent:n,onExitComplete:i,register:a}=e;return(0,r.useEffect)(()=>a(t),[]),!n&&i?[!1,()=>i?.(t),e]:[!0,void 0,e]}},5986:function(e,t,n){"use strict";let r,i;n.d(t,{RC:function(){return p},Wi:function(){return d},d0:function(){return s},iE:function(){return l},lz:function(){return u},p_:function(){return c},v6:function(){return a},xC:function(){return m},zG:function(){return h}});var o=n(281);let a=e=>{r=e},l=()=>{if(!r)throw Error("Err0");return r};function s(e){i=e}let u=({prefixed:e}={})=>{let{tokens:t,tokensParsed:n}=r;return!1===e?t:!0===e?n:i},c=(e,t)=>r.specificTokens[e]??(t?i[t]?.[e]:i[Object.keys(i).find(t=>i[t][e])||""]?.[e]),f=(e,t,n=o.$L)=>{let r=c(e,t);return n?r?.variable:r?.val},d=(e,t)=>{if(!("unset"===e||"auto"===e))return f(e,t,!1)},p=()=>r.themes,h=new Set,m=e=>{r?e(r):h.add(e)}},9242:function(e,t,n){"use strict";n.d(t,{L2:function(){return r},nx:function(){return i},tn:function(){return o},zm:function(){return a}});let r="_",i="t_",o={},a={display:"flex",alignItems:"stretch",flexDirection:"column",flexBasis:"auto",boxSizing:"border-box",position:"relative",minHeight:0,minWidth:0,flexShrink:0};Object.assign(o,a)},7562:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});let r=(0,n(925).i)({disableSSR:void 0,inText:!1,language:null,animationDriver:null,groups:{emit:null,subscribe:null,state:{}}})},5902:function(e,t,n){"use strict";let r,i;n.d(t,{LZ:function(){return z},LM:function(){return W},P9:function(){return F},En:function(){return G},Ee:function(){return M}});var o=n(9046),a=n(281),l=n(8338),s=n(2265),u=n(5986),c=n(9242),f=n(7562),d=n(2202);let p={hover:!1,press:!1,pressIn:!1,focus:!1,focusVisible:!1,unmounted:!0,disabled:!1},h={...p,unmounted:!1},m={...p,unmounted:"should-enter"};var g=n(3820),y=n(2622),b=n(1616),v=n(9097),S=n(7440);let w=(e,t,n)=>{let r={};for(let i in e)x(r,e,t,i,n);if(t)for(let e in t)x(r,t,void 0,e,n);return r};function x(e,t,n,r,i){let o=i?.[r]||null,a=t[r];if(r in S.Qy||v.Lk.has(r)){e[r]={...e[r],...a};return}n&&(r in n||o&&o in n)||(e[o||r]=a)}let T=void 0;var C=n(9235),$=n(8411),E=n(4283),k=n(2281);let R=s.version.startsWith("19."),P=(0,s.forwardRef)(function(e,t){let{children:n,...r}=e;if((0,s.isValidElement)(n)){let e=function(e,t){let n=e.props,r={...n},i="string"==typeof e.type;if(i)for(let e in A)e in t&&(t[A[e]]=t[e],delete t[e]);for(let e in n){let o=t[e],a=n[e];i&&e in A&&(e=A[e],delete r[e]),_.test(e)?r[e]=(0,l.Mj)(a,o):"style"===e?r[e]={...o,...a}:"className"===e&&(r[e]=[o,a].filter(Boolean).join(" "))}return{...t,...r}}(n,r);return(0,s.cloneElement)(n,n.type.avoidForwardRef?e:{...e,ref:(0,o.FE)(t,R?n.props.ref:n.ref)})}return s.Children.count(n)>1?s.Children.only(null):null});P.displayName="Slot";let A=a.$L?{onPress:"onClick",onPressOut:"onMouseUp",onPressIn:"onMouseDown"}:{},_=/^on[A-Z]/;var O=n(1130),N=n(6962),L=n(357);let I=new Set;if("u">typeof document){let e=()=>{I.forEach(e=>e(e=>e.press||e.pressIn?{...e,press:!1,pressIn:!1}:e)),I.clear()};addEventListener("mouseup",e),addEventListener("touchend",e),addEventListener("touchcancel",e)}let M=(e,{animationDriver:t,groups:n},r,i)=>{var o;let l=t?.useAnimations,u=(0,s.useRef)({}),c=!!("animation"in e||e.style&&Object.keys(o=e.style).some(e=>{let t=o[e];return t&&"object"==typeof t&&"_animation"in t})),f=t?.supportsCSSVars,d=u.current,y=!!(c&&!r.isHOC&&l||d.hasAnimated),v=!a.sk&&y;v&&!d.hasAnimated&&(d.hasAnimated=!0);let S=v&&!1!==e.animatePresence&&t?.usePresence?.()||null,w=S?.[2],x=w?.isPresent===!1,T=w?.isPresent===!0&&!1!==w.initial,C=!!e.enterStyle,$=c&&t?.isReactNative,E=(0,N.f)(),k=C||T||!E&&$?a.$L&&!E?p:m:h,R=H(e);null!=R&&(k.disabled=R);let P=(0,s.useState)(k),A=e.forceStyle?{...P[0],[e.forceStyle]:!0}:P[0],_=P[1],O=!1===A.unmounted||"should-enter"===A.unmounted,L=v;a.$L&&$&&!r.isHOC&&!0===A.unmounted&&(L=!1,d.willHydrate=!0),R!==A.disabled&&(A.disabled=R,R&&Object.assign(A,h),_({...A}));let I=(0,g.JL)(_,R,!1,e.debug);if(w&&L&&O&&r.variants){let{enterVariant:t,exitVariant:n,enterExitVariant:i,custom:o}=w;(0,b.B)(o)&&Object.assign(e,o);let a=n??i,l=t??i;A.unmounted&&l&&r.variants[l]?e[l]=!0:x&&a&&(e[a]=n!==i)}let M=!!(!a.$L||L&&!f||!r.acceptsClassName||e.disableClassName&&O),j=e.group;if(j&&!d.group){let e=new Set;d.group={listeners:e,emit(t,n){e.forEach(e=>e(t,n))},subscribe:t=>(e.add(t),()=>{e.delete(t)})}}if(j){let e=n.state,t=I;I=n=>{t(n),d.group.emit(j,{pseudo:n});let r={...e[j],...n};e[j]=r}}return{curStateRef:d,disabled:R,groupName:j,hasAnimationProp:c,hasEnterStyle:C,isAnimated:L,isExiting:x,isHydrated:O,presence:S,presenceState:w,setState:_,setStateShallow:I,shouldAvoidClasses:M,state:A,stateRef:u,supportsCSSVars:f,willBeAnimated:v,willBeAnimatedClient:y}},j={value:!1};function W(e){let{componentName:t}=e,n=null,c=e.defaultProps;(0,u.xC)(e=>{if(n=e,t){let n=e.defaultProps?.[t];n&&(c={...n,...c})}});let{Component:p,isText:m,isZStack:g,isHOC:b,validStyles:S={},variants:x={}}=e,R=(0,s.forwardRef)((t,C)=>{let R,A,_,N,W;let z=(0,s.useContext)(f.s),{context:Y,isReactNative:D}=e;if(Y){_=(0,s.useContext)(Y);let{inverseShorthands:e}=(0,u.iE)();for(let n in Y.props){let r=t[n]??t[e[n]]??c?.[n]??c?.[e[n]];void 0===r?_&&(n in S||n in x)&&((R||={})[n]=_[n]):(A||={})[n]=r}}let V=R?{...c,...R}:c,H=t;V&&(H=w(V,t));let U=H.debug,K=H.componentName||e.componentName;L.env.TAMAGUI_IS_CORE_NODE;let Q=z.animationDriver,q=Q?.useAnimations,{curStateRef:Z,disabled:J,groupName:ee,hasAnimationProp:et,hasEnterStyle:en,isAnimated:er,isExiting:ei,isHydrated:eo,presence:ea,presenceState:el,setState:es,setStateShallow:eu,shouldAvoidClasses:ec,state:ef,stateRef:ed,supportsCSSVars:ep,willBeAnimated:eh,willBeAnimatedClient:em}=M(H,z,e,n),eg=!!t.forceStyle,ey=ec||eg,eb=!!(a.$L&&m&&z.inText),ev=!p||"string"==typeof p,eS=H.tag,ew=a.$L&&ev&&eS||p,ex=m?r||ew||"span":i||ew||(eb?"span":"div");Q&&er&&(ex=Q[m?"Text":"View"]||ex);let eT=H["data-disable-theme"]||b;H.themeShallow&&(Z.themeShallow=!0);let eC={componentName:K,disable:eT,shallow:Z.themeShallow,debug:U};"themeInverse"in H&&(eC.inverse=H.themeInverse),"theme"in H&&(eC.name=H.theme),"boolean"==typeof Z.isListeningToTheme&&(eC.shouldUpdate=()=>ed.current.isListeningToTheme);let[e$,eE]=(0,$.WU)(eC);ex=p||ex;let ek=(0,v.GS)(ed,z);(0,d.zY)(!1);let eR={mediaState:ek,noClassNames:ey,resolveValues:er&&!ep||b&&!1==ef.unmounted&&et?"value":"auto",isExiting:ei,isAnimated:er},eP=(0,y.DP)(H,e,eE,e$?.state?.name||"",ef,eR,null,z,ex,U);H.group&&"hide"===H.untilMeasured&&!Z.hasMeasured&&(eP.style||={},eP.style.opacity=0),Z.isListeningToTheme=eP.dynamicThemeAccess;let eA=eP.hasMedia&&Array.isArray(eP.hasMedia),e_=(0,d.yx)()||eA||ey&&!0===eP.hasMedia,eO=eA?eP.hasMedia:null;(0,v.Zv)(ed,{enabled:e_,keys:eO});let{viewProps:eN,pseudos:eL,style:eI,classNames:eM,space:ej}=eP,eW=H,{asChild:eB,children:ez,themeShallow:eF,spaceDirection:eY,onPress:eD,onLongPress:eV,onPressIn:eX,onPressOut:eH,onHoverIn:eG,onHoverOut:eU,onMouseUp:eK,onMouseDown:eQ,onMouseEnter:eq,onMouseLeave:eZ,onFocus:eJ,onBlur:e0,separator:e1,forceStyle:e2,onClick:e5,theme:e3,defaultVariants:e9,...e4}=eN,e8=e4;if(!ev&&H.forceStyle&&(e8.forceStyle=H.forceStyle),b&&e3&&(e8.theme=e3),ex.acceptTagProp&&(e8.tag=eS),(ep?em:eh)&&q&&!b){let t=q({props:eW,style:eI||{},presence:ea,componentState:ef,styleProps:eR,theme:e$.state?.theme,pseudos:eL||null,staticConfig:e,stateRef:ed});(er||ep)&&t&&(N=t.style,e8.style=N)}ee&&(e4.onLayout=(0,l.Mj)(e4.onLayout,e=>{ed.current.group.emit(ee,{layout:e.nativeEvent.layout}),ed.current.hasMeasured||"hide"!==H.untilMeasured||es(e=>({...e})),ed.current.hasMeasured=!0})),e8=E.P.usePropsTransform?.(ex,e4,ed,Z.willHydrate)||e4,Z.composedRef||(Z.composedRef=(0,o.FE)(e=>ed.current.host=e,C,T)),e8.ref=Z.composedRef;let{pseudoGroups:e7,mediaGroups:e6}=eP,te=()=>eu({press:!1,pressIn:!1});(0,s.useEffect)(()=>{if(J)return;if(!0===ef.unmounted&&en){eu({unmounted:"should-enter"});return}if(ef.unmounted){eu({unmounted:!1});return}let e=G({disabled:J,componentContext:z,setStateShallow:eu,state:ef,mediaGroups:e6,pseudoGroups:e7});return()=>{e?.(),I.delete(es)}},[ef.unmounted,J,e7?Object.keys([...e7]).join(""):0,e6?Object.keys([...e6]).join(""):0]);let tt=!J&&ey&&eL?.pressStyle,tn=!J&&ey&&eL?.focusStyle,tr=!J&&ey&&eL?.focusVisibleStyle,ti=!!(tt||tn||tr||eJ||e0),to=!!(ee||tt||eD||eH||eX||eQ||eK||eV||e5||eL?.focusVisibleStyle),ta=!J&&ey&&eL?.hoverStyle,tl=!!(ee||ta||eG||eU),ts=a.$L&&!!(ee||tl||eq||eZ),tu=!J&&!H.asChild&&!!(ti||to||ts||tt||ta||tn),tc=!!(ee||tt),tf=tu?{onPressOut:to?e=>{te(),eH?.(e),eK?.(e)}:void 0,...(ts||to)&&{onMouseEnter:e=>{let t={};tl&&(t.hover=!0),tc&&ef.pressIn&&(t.press=!0),eu(t),eG?.(e),eq?.(e)},onMouseLeave:e=>{let t={};tl&&(t.hover=!1),tc&&ef.pressIn&&(t.press=!1,t.pressIn=!1),eu(t),eU?.(e),eZ?.(e)}},onPressIn:to?e=>{(tt||ee)&&eu({press:!0,pressIn:!0}),eX?.(e),eQ?.(e),a.$L&&I.add(es)}:void 0,onPress:to?e=>{te(),a.$L&&e5?.(e),eD?.(e),eV?.(e)}:void 0,...ti&&{onFocus:e=>{eL?.focusVisibleStyle?setTimeout(()=>{eu({focus:!0,focusVisible:!!j.value})},0):eu({focus:!0,focusVisible:!1}),eJ?.(e)},onBlur:e=>{eu({focus:!1,focusVisible:!1}),e0?.(e)}}}:null;tf&&!D&&Object.assign(e8,B(tf)),E.P.useEvents?.(e8,tf,eP,eu,e);let td=H.spaceDirection||"both",tp=!ez||eB?ez:F({separator:e1,children:ez,space:ej,direction:td,isZStack:g,debug:U});eB&&(ex=P,Object.assign(e8,B({onPress:eD,onLongPress:eV,onPressIn:eX,onPressOut:eH,onMouseUp:eK,onMouseDown:eQ,onMouseEnter:eq,onMouseLeave:eZ},"web"===eB||"except-style-web"===eB))),E.P.useChildren&&(W=E.P.useChildren(ex,tp,e8,tf,e)),tp=W||(0,s.createElement)(ex,e8,tp);let th=n?.animations?.ResetPresence;th&&eh&&(en||el)&&tp&&"string"!=typeof tp&&(tp=(0,k.jsx)(th,{children:tp}));let tm=Z.group,tg=(0,s.useMemo)(()=>{if(!(!tm||!ee))return tm.listeners.clear(),{...z.groups,state:{...z.groups.state,[ee]:{pseudo:h,layout:{width:X(eP.style?.width),height:X(eP.style?.height)}}},emit:tm.emit,subscribe:tm.subscribe}},[ee]);if(ee&&tg&&(tp=(0,k.jsx)(f.s.Provider,{...z,groups:tg,children:tp})),tp=eT?tp:(0,O.u)(e$,tp,eC,!1,ed),D&&!eB&&(tp=(0,k.jsx)("span",{className:"_dsp_contents",...eo&&tf&&B(tf),children:tp})),e.context){let t=e.context.props;for(let e in t)(e8.style&&e in e8.style||e in e8)&&((A||={})[e]=e8.style?.[e]??e8[e])}if(A){let t=e.context.Provider;tp=(0,k.jsx)(t,{..._,...A,children:tp})}return L.env.TAMAGUI_REACT_19&&eP.rulesToInsert.length&&(tp=(0,k.jsxs)(k.Fragment,{children:[tp,eP.rulesToInsert.map(({rules:e,identifier:t})=>(0,k.jsx)("style",{href:`t_${t}`,precedence:"default",children:e.join(` +`)},t))]})),tp});e.componentName&&(R.displayName=e.componentName);let A=R;function _(t){return{...e,...t,neverFlatten:!0,isHOC:!0,isStyledHOC:!1}}function N(e,t){let n=e.render?.length===2?e:(0,s.forwardRef)(e),r=_(t?.staticConfig);return n=t?.disableTheme?n:(0,C.Y)(n,r),L.env.TAMAGUI_MEMOIZE_STYLEABLE&&(n=(0,s.memo)(n)),n.staticConfig=r,n.styleable=N,n}return(L.env.TAMAGUI_FORCE_MEMO||e.memo)&&(A=(0,s.memo)(A)),A.staticConfig=e,A.extractable=function(e,t){return e.staticConfig=_(t),e.styleable=N,e},A.styleable=N,A}function B(e,t=!0){return{onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,[t?"onClick":"onPress"]:e.onPress,onMouseDown:e.onPressIn,onMouseUp:e.onPressOut,onTouchStart:e.onPressIn,onTouchEnd:e.onPressOut,onFocus:e.onFocus,onBlur:e.onBlur}}a.$L&&globalThis.document&&(document.addEventListener("keydown",()=>{j.value=!0}),document.addEventListener("mousedown",()=>{j.value=!1}),document.addEventListener("mousemove",()=>{j.value=!1}));let z=W({acceptsClassName:!0,memo:!0,componentName:"Spacer",validStyles:l.Qn,defaultProps:{...c.tn,tag:"span",size:!0,pointerEvents:"none"},variants:{size:{"...":(e,{tokens:t})=>{e=!0===e?"$true":e;let n=t.space[e]??e;return{width:n,height:n,minWidth:n,minHeight:n}}},flex:{true:{flexGrow:1}},direction:{horizontal:{height:0,minHeight:0},vertical:{width:0,minWidth:0},both:{}}}});function F(e){let{isZStack:t,children:n,space:r,direction:i,spaceFlex:o,separator:a}=e,l=!!(r||o),u=null!=a;if(!(l||u||t))return n;let c=s.Children.toArray(n);if(c.length<=1&&!t&&!c[0]?.type?.shouldForwardSpace)return c;let f=[];for(let[e,n]of c.entries()){let u=null==n||Array.isArray(n)&&0===n.length;if(!u&&s.isValidElement(n)&&n.type?.shouldForwardSpace&&(n=s.cloneElement(n,{space:r,spaceFlex:o,separator:a,key:n.key})),u||!n||n.key&&!t?f.push(n):f.push((0,k.jsx)(s.Fragment,{children:t?(0,k.jsx)(V,{children:n}):n},e)),D(n)&&0===e||t)continue;let d=c[e+1];d&&!D(d)&&(a?(l&&f.push(Y({key:`_${e}_00tmgui`,direction:i,space:r,spaceFlex:o})),f.push(s.isValidElement(a)?s.cloneElement(a,{key:`sep_${e}`}):a),l&&f.push(Y({key:`_${e}01tmgui`,direction:i,space:r,spaceFlex:o}))):f.push(Y({key:`_${e}02tmgui`,direction:i,space:r,spaceFlex:o})))}return f}function Y({key:e,direction:t,space:n,spaceFlex:r}){return(0,k.jsx)(z,{size:n,direction:t,..."u">typeof r&&{flex:!0===r?1:!1===r?0:r}},e)}function D(e){let t=e?.type;return t?.isVisuallyHidden||t?.isUnspaced}let V=W({defaultProps:{...c.tn,flexDirection:"column",position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"box-none"}}),X=e=>"string"!=typeof e?e:+e.replace("px",""),H=e=>e.disabled||e.accessibilityState?.disabled||e["aria-disabled"]||e.accessibilityDisabled||!1,G=({disabled:e=!1,setStateShallow:t,pseudoGroups:n,mediaGroups:r,componentContext:i,state:o})=>{if(n||r){let e={pseudo:{},media:{}};return i.groups?.subscribe((i,{layout:a,pseudo:l})=>{if(l&&n?.has(String(i)))Object.assign(e.pseudo,l),s();else if(a&&r){let t=Object.fromEntries([...r].map(e=>[e,(0,v.yj)(e,a)])),n=g.xK(e.media,t);n!==e.media&&(Object.assign(e.media,n),s())}function s(){t({group:{...o.group,[i]:e}})}})}}},2202:function(e,t,n){"use strict";n.d(t,{E0:function(){return f},Os:function(){return s},Ve:function(){return m},bK:function(){return g},cG:function(){return c},lk:function(){return u},yx:function(){return h},zY:function(){return p}});var r=n(281),i=n(8338),o=n(5986),a=n(357);function l(e){return`var(--${a.env.TAMAGUI_CSS_VARIABLE_PREFIX||""}${e})`}let s=(e,t=!1)=>{if(!t&&c(e))return e;let{key:n,name:o,val:a}=e;return{isVar:!0,key:n,name:t?o:(0,i.M)(o,40),val:a,variable:r.$L?t?l(o):g(o):""}};function u(e,t=!1){return c(e)?!t&&r.$L&&e.variable?e.variable:`${e.val}`:`${e||""}`}function c(e){return e&&"object"==typeof e&&"isVar"in e}function f(e,t="size"){if(p(!0),c(e))return u(e);let n=(0,o.iE)().tokensParsed;return u(n[t]?.[e]??e)}let d=!1,p=e=>d=e,h=()=>d;function m(e,t){if(c(e))return p(!0),e.val;if(t){let n=o.iE().tokensParsed[t]?.[e];if(n)return p(!0),n.val}return e}let g=(e,t=!0)=>{let n=(0,i.M)(e,60);return t?l(n):n}},9033:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});let r=(0,n(2265).createContext)(1)},3820:function(e,t,n){"use strict";n.d(t,{JL:function(){return o},N2:function(){return l},xK:function(){return a}});var r=n(2265);let i=e=>e();function o(e,t,n,o){return l=>{(n?r.startTransition:i)(()=>{e(e=>a(e,l,t,o))})}}function a(e,t,n,r){return n||!e||!t||l(e,t)?e||t:{...e,...t}}function l(e,t){for(let n in t)if(e[n]!==t[n])return!1;return!0}},925:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(2265);let i=new WeakMap;var o=n(2281);function a(e){let t=(0,r.createContext)(e),n=t.Provider,a=new Map;return t.Provider=({children:t,scope:l,...s})=>{let u=(0,r.useMemo)(()=>({...e,...s}),[function(e){let t="";for(let n in e){t+=n;let r=e[n],o=typeof r;if(r&&("object"===o||"function"===o)){if(i.has(r))t+=i.get(r);else{let e=Math.random();i.set(r,e),t+=e}}else t+=o+r}return t}(s)]),c=n;if(l){let t=a.get(l);t||(t=(0,r.createContext)(e),a.set(l,t)),c=t.Provider}return(0,o.jsx)(c,{value:u,children:t})},t.props=e,t.context=t,t.useStyledContext=e=>{let n=e?a.get(e):t;return(0,r.useContext)(n)},t}},2622:function(e,t,n){"use strict";let r,i;n.d(t,{DP:function(){return ey}});var o=n(281),a=n(8338),l=n(2265),s=n(5986);let u={};{let e={Hidden:!0,ActiveDescendant:!0,Atomic:!0,AutoComplete:!0,Busy:!0,Checked:!0,ColumnCount:"colcount",ColumnIndex:"colindex",ColumnSpan:"colspan",Current:!0,Details:!0,ErrorMessage:!0,Expanded:!0,HasPopup:!0,Invalid:!0,Label:!0,Level:!0,Modal:!0,Multiline:!0,MultiSelectable:!0,Orientation:!0,Owns:!0,Placeholder:!0,PosInSet:!0,Pressed:!0,RoleDescription:!0,RowCount:!0,RowIndex:!0,RowSpan:!0,Selected:!0,SetSize:!0,Sort:!0,ValueMax:!0,ValueMin:!0,ValueNow:!0,ValueText:!0};for(let t in e){let n=e[t];!0===n&&(n=t.toLowerCase()),u[`accessibility${t}`]=`aria-${n}`}}var c=n(9242),f=n(9097);function d(e){let t=(0,f.om)(),[n,r,i,o]=e.split("-"),a=i in t?i:void 0;return{name:r,pseudo:a?o:i,media:a}}let p=null,h=null,m={press:"active"},g=(e,t,n,r,i,o)=>{let{property:a,identifier:l,rules:u}=e,c=(0,s.iE)(),g=c.settings.mediaPropOrder,y="theme"===r,b="group"===r,v=y||"platform"===r||b,S=l.slice(0,l.indexOf("-")+1),w=`${S}_${t.replace("-","")}${i?"0":""}_`,x="",T,C,$=l.replace(S,w),E=u.map(e=>e.replace(l,$)).join(";");if(v){let e=Array((o||0)+(b?1:0)).fill(":root").join("");if(y||b){let n=d(t),r=n?.name;T=n?.media,b&&(C=r);let i=E.indexOf(":root"),o=E.lastIndexOf("{"),a=E.slice(i,o),l=c.themeClassNameOnRoot&&y?"":" ",s=n.pseudo?m[n.pseudo]||n.pseudo:void 0,u=s?`:${s}`:"",f=`:root${e}${l}`,p=`.t_${(b?"group_":"")+r}${u}`,h=`${f}${p} ${a.replace(":root","")}`;x=E.replace(a,h)}else x=`${e}${E}`}if(!v||T){if(!h){let e=Object.keys(n);h=Object.fromEntries(e.map(e=>[e,(0,f.yS)(n[e])])),g||(p=Object.fromEntries(e.map((e,t)=>[e,Array(t+1).fill(":root").join("")])))}let e=T||t,r=h[e],a=`${i?"not all and ":""}${r}`,l=T?"":g?Array(o).fill(":root").join(""):p[e],s=T?`@container ${C}`:"@media";T&&(E=x),x=E.includes(s)?E.replace("{",` and ${a} {`).replace("and screen and","and"):`${s} ${a}{${l}${E}}`,T&&(x=`@supports (contain: ${c.settings.webContainerType||"inline-size"}) {${x}}`)}return{property:a,rules:[x],identifier:$}},y={height:0,width:0};var b=n(2117);function v(e){for(let t in(null!=e.shadowRadius||e.shadowColor||null!=e.shadowOpacity||e.shadowOffset)&&Object.assign(e,function({shadowColor:e,shadowOffset:t,shadowOpacity:n,shadowRadius:r}){let{height:i,width:o}=t||y;return{shadowOffset:{width:o||0,height:i||0},shadowRadius:r||0,shadowColor:(0,b.ut)(e,1),shadowOpacity:n??(e?b.HY(e)?.a:1)}}(e)),w)t in e&&(e[w[t]]||="solid")}let S=o.$L?null:"borderStyle",w={borderWidth:"borderStyle",borderBottomWidth:S||"borderBottomStyle",borderTopWidth:S||"borderTopStyle",borderLeftWidth:S||"borderLeftStyle",borderRightWidth:S||"borderRightStyle"};var x=n(8829),T=n(7440),C=n(1333);function $(e){R(e);let t=[];for(let n in e){let r=e[n];if(n in T.Qy)r&&t.push(...E(r,T.Qy[n]));else{let r=k(e,n);r&&t.push(r)}}return t}let E=(e,t)=>{R(e);let n=[];for(let r in e){let i=k(e,r,t);i&&n.push(i)}return n},k=(e,t,n)=>{let i=e[t];if(null==i)return;"transform"===t&&Array.isArray(e.transform)&&(i=(0,C.m)(i));let o=(0,x.Y)(i,t),l=(0,a.M)(`${o}`),u=n?`0${n.name}-`:"";r||=(0,s.iE)();let c=`_${r.inverseShorthands[t]||t}-${u}${l}`,f=function(e,t,n,r){let i=r?"disabled"===r.name?"[aria-disabled]":`:${r.name}`:"",o=r?r?.selector?`${r?.selector} .${e}`:`${N[r.name]} .${e}${i}`:`:root .${e}`,a=!!r,l=[];switch(t){case"placeholderTextColor":{let e=P([["color",n],["opacity",1]],a);l.push(`${o}::placeholder${e}`);break}case"backgroundClip":case"userSelect":{let e=`Webkit${t[0].toUpperCase()}${t.slice(1)}`,r=P([[t,n],[e,n]],a);l.push(`${o}${r}`);break}case"pointerEvents":{let e=n;"auto"===n||"box-only"===n?(e="auto","box-only"===n&&l.push(`${o}>*${I}`)):("none"===n||"box-none"===n)&&(e="none","box-none"===n&&l.push(`${o}>*${L}`));let t=P([["pointerEvents",e]],!0);l.push(`${o}${t}`);break}default:{let e=P([[t,n]],a);l.push(`${o}${e}`)}}return r?.name==="hover"&&(l=l.map(e=>`@media (hover) {${e}}`)),l}(c,t,o,n);return{property:t,pseudo:n?.name,identifier:c,rules:f,value:o}};function R(e){let{shadowOffset:t,shadowRadius:n,shadowColor:r,shadowOpacity:i}=e;if(n||r){let o=t||y,a=(0,x.Y)(o.width),l=(0,x.Y)(o.height),s=(0,x.Y)(n),u=(0,b.ut)(r,i),c=`${a} ${l} ${s} ${u}`;e.boxShadow=e.boxShadow?`${e.boxShadow}, ${c}`:c,delete e.shadowOffset,delete e.shadowRadius,delete e.shadowColor,delete e.shadowOpacity}let{textShadowColor:o,textShadowOffset:a,textShadowRadius:l}=e;if(o||a||l){let{height:t,width:n}=a||y,r=l||0,i=(0,x.Y)(o,"textShadowColor");if(i&&(0!==t||0!==n||0!==r)){let o=(0,x.Y)(r),a=(0,x.Y)(n),l=(0,x.Y)(t);e.textShadow=`${a} ${l} ${o} ${i}`}delete e.textShadowColor,delete e.textShadowOffset,delete e.textShadowRadius}}function P(e,t=!1){let n="";for(let[r,i]of e)n+=`${O(r)}:${i}${t?" !important":""};`;return`{${n}}`}let A={},_=e=>`-${e.toLowerCase()}`,O=e=>{if(e in A)return A[e];let t=e.replace(/[A-Z]/g,_);return A[e]=t,t},N=(()=>{let e={};for(let t in T.Qy){let n=T.Qy[t];e[n.name]=`${[...Array(n.priority)].map(()=>":root").join("")} `}return e})(),L=P([["pointerEvents","auto"]],!0),I=P([["pointerEvents","none"]],!0);var M=n(7393),j=n(2202);let W={},B={};function z(e,t){if("flex"===e)return[["flexGrow",t],["flexShrink",1],["flexBasis","auto"]];switch(e){case"textAlignVertical":return[["verticalAlign","center"===t?"middle":t]];case"writingDirection":return[["direction",t]]}return e in X?X[e].map(e=>[e,t]):e in B?B[e].map(e=>[e,t]):e in W?W[e](t):void 0}let F=["Top","Right","Bottom","Left"],Y=["Right","Left"],D=["Top","Bottom"],V=["X","Y"],X={borderColor:["TopColor","RightColor","BottomColor","LeftColor"],borderRadius:["TopLeftRadius","TopRightRadius","BottomRightRadius","BottomLeftRadius"],borderWidth:["TopWidth","RightWidth","BottomWidth","LeftWidth"],margin:F,marginHorizontal:Y,marginVertical:D,overscrollBehavior:V,padding:F,paddingHorizontal:Y,paddingVertical:D,...o.$L&&{borderStyle:["TopStyle","RightStyle","BottomStyle","LeftStyle"],overflow:V}};for(let e in X){let t=e.slice(0,/[A-Z]/.exec(e)?.index??e.length);X[e]=X[e].map(e=>`${t}${e}`)}var H=n(1616);let G=new WeakMap,U=e=>{if(G.has(e))return G.get(e);let{curProps:t,props:n,conf:r,context:i,theme:o}=e,a=r.fontsParsed;i?.language&&(a=Q(r.fontsParsed,i.language));let l={fonts:a,tokens:r.tokensParsed,theme:o,get fontFamily(){return(0,j.Ve)(e.fontFamily||e.curProps.fontFamily||e.conf.defaultFont)},get font(){return a[this.fontFamily]||a[e.conf.defaultFont]},props:new Proxy(n,{get(e,n){for(let i of[n,r.inverseShorthands[n]])if(i)return Reflect.has(t,i)?Reflect.get(t,i):Reflect.get(e,i)}})};return G.set(e,l),l},K=new WeakMap;function Q(e,t){if(K.has(t))return K.get(t);let n={...e,...Object.fromEntries(Object.entries(t).map(([t,n])=>{if("default"===n)return[];let r=`$${t}_${n}`;return[`$${t}`,e[r]]}))};return K.set(t,n),n}let q={untilMeasured:1,animation:1,space:1,animateOnly:1,disableClassName:1,debug:1,componentName:1,disableOptimization:1,tag:1,style:1,group:1,themeInverse:1,animatePresence:1};var Z=n(357);let J=(e,t,n,r)=>{if(el=null,"elevationAndroid"===e)return;if("unset"===t){let r=n.conf.unset?.[e];if(null==r)return;t=r}let i=n.styleProps.fallbackProps||r,o=i?new Proxy(n,{get:(e,t)=>"curProps"===t?i:Reflect.get(e,t)}):n,{conf:a,styleProps:l,fontFamily:s,staticConfig:u,skipThemeTokenResolution:c}=o,{variants:f}=u;if(!l.noExpand&&f&&e in f){o.curProps[e]=t;let n=ee(e,t,l,o,"");if(n)return n}if(l.disableExpandShorthands||e in a.shorthands&&(e=a.shorthands[e]),t&&("$"===t[0]?t=es(e,t,l.resolveValues,o):(0,j.cG)(t)&&(t=eu(e,t,l.resolveValues))),null!=t){let n=(l.noExpand?null:z(e,t))||[[e,t]];return"fontFamily"===e&&el&&en.set(n,el),n}},ee=(e,t,n,r,i)=>{let o;let{staticConfig:a,conf:l,debug:s}=r,{variants:u}=a;if(!u)return;let c=function(e,t,n){if("function"==typeof e)return e;let r=e[t];if(r)return r;if(null!=t){let{tokensParsed:r}=n;for(let{name:n,spreadName:i}of eo)if(i in e&&t in r[n])return e[i];let i=e["...fontSize"];if(i&&n.fontSizeTokens.has(t))return i}return e[`:${typeof t}`]||e["..."]}(u[e],t,l);if(!c){if("1"===Z.env.TAMAGUI_WARN_ON_MISSING_VARIANT&&"boolean"!=typeof t){let n=a.componentName||"[UnnamedComponent]";console.warn(`No variant found: ${n} has variant "${e}", but no matching value "${t}"`)}return}if("function"==typeof c&&(c=c(t,U(r))),(0,H.B)(c)){let t=c.fontFamily||c[l.inverseShorthands.fontFamily];t&&(o=function(e,t){if((0,j.cG)(e)){let n=et.get(e);if(n)return n;for(let n in t.fontsParsed){let r=t.fontsParsed[n].family;if((0,j.cG)(r)&&(et.set(r,n),r===e))return n}}else if("string"==typeof e&&"$"===e[0])return e}(t,l),r.fontFamily=o),c=ei(e,c,n,r,i)}if(c){let e=Object.entries(function e(t,n=!1){let r={};for(let i in t){let o=t[i];if(null==o)continue;if(i in T.Qy||"$"===i[0]&&(0,H.B)(o)){r[i]=e(o,n);continue}let a=n?o:(0,x.Y)(o,i),l=z(i,a);l?Object.assign(r,Object.fromEntries(l)):r[i]=a}return v(r),r}(c,!!n.noNormalize));return o&&"$"===o[0]&&en.set(e,(0,j.Ve)(o)),e}},et=new WeakMap,en=new WeakMap,er=e=>e&&en.get(e),ei=(e,t,n,r,i)=>{let{conf:o,staticConfig:a,debug:l,theme:s}=r,{variants:u}=a,c={};for(let a in t){let l=o.shorthands[a]||a,s=t[a];if(!(!n.noSkip&&l in q)){if(n.noExpand)c[l]=s;else if(u&&l in u){if(r.curProps[l]=s,i&&i===e)c[l]="$"===s[0]?es(l,s,n.resolveValues,r):s;else{let t=ee(l,s,n,r,e);if(t)for(let[e,n]of t)null!=n&&(e in T.Qy?(c[e]??={},Object.assign(c[e],n)):c[e]=n)}continue}if((0,j.cG)(s)){c[l]=eu(l,s,n.resolveValues);continue}if("string"==typeof s){let e="$"===s[0]?es(l,s,n.resolveValues,r):s;c[l]=e;continue}if((0,H.B)(s)){let t=ei(l,s,n,r,e);c[l]??={},Object.assign(c[l],t)}else c[l]=s}}return c},eo=["size","color","radius","space","zIndex"].map(e=>({name:e,spreadName:`...${e}`})),ea={fontSize:"size",fontWeight:"weight"},el=null,es=(e,t,n="none",r)=>{if("none"===n)return t;let{theme:i,conf:o=(0,s.iE)(),context:l,fontFamily:u,staticConfig:c}=r,f=o.tokensParsed,d,p=!1,h=c?.accept?.[e];if(h){let e=i?.[t]??f[h][t];null!=e&&(n="value",d=e,p=!0)}if(i&&t in i){if(d=i[t],r.skipThemeTokenResolution&&d?.val)return t;p=!0}else{if(t in o.specificTokens)p=!0,d=o.specificTokens[t];else{switch(e){case"fontFamily":d=(l?.language?Q(o.fontsParsed,l.language):o.fontsParsed)[t]?.family||t,el=t,p=!0;break;case"fontSize":case"lineHeight":case"letterSpacing":case"fontWeight":{let n=o.defaultFont||"$body",r=u||n;if(r){let i=l?.language?Q(o.fontsParsed,l.language):o.fontsParsed;d=(i[r]||i[n])?.[ea[e]||e]?.[t]||t,p=!0}}}for(let n in a.CV)if(e in a.CV[n]){let e=f[n][t];null!=e&&(d=e,p=!0)}}if(!p){let e=f.space[t];null!=e&&(d=e,p=!0)}}if(p)return eu(e,d,n)};function eu(e,t,n){if("none"===n)return t;if((0,j.cG)(t)){if("value"===n)return t.val;let e=t?.get;return"function"==typeof e?e("web"===n?"web":void 0):t.variable}return t}var ec=n(357);function ef(e,t){return(t.validStyles||(t.isText||t.isInput?a.FB:a.Qn))[e]||t.accept?.[e]}let ed=(e,t,n,r,l,p,h,m,y,b,S)=>{i=i||(0,s.iE)(),o.$L&&p.isAnimated&&i.animations.isReactNative&&!p.noNormalize&&(p.noNormalize="values");let{shorthands:w}=i,{isHOC:k,isText:P,isInput:A,variants:_,isReactNative:O,inlineProps:N,inlineWhenUnflattened:L,parentStaticConfig:I,acceptsClassName:j}=t,W={},B=p.mediaState||f.nA,z={},F=j&&o.$L&&!p.noClassNames,Y=[],D={},V={},X=null,H=e.space,G=!1,U,K,Q,Z=(e.className,0),ee={curProps:{},classNames:D,conf:i,props:e,styleProps:p,componentState:l,staticConfig:t,style:null,theme:n,usedKeys:z,viewProps:W,context:m,debug:b,skipThemeTokenResolution:S};for(let n in e){let s=n,h=e[n];if(t.accept&&("style"===t.accept[s]||"textStyle"===t.accept[s])&&"object"==typeof h){let e=em(ee,s,h,p.noClassNames);W[s]=e;continue}if(p.disableExpandShorthands||s in w&&(s=w[s]),"className"===s||s in z||e.asChild&&c.zm[s]===h)continue;if(s in q&&!p.noSkip&&!k){if("group"===s){let e=`t_group_${h}`,t=i.settings.webContainerType||"inline-size";eb(Y,{identifier:e,property:"container",rules:[`.${e} { container-name: ${h}; container-type: ${t}; }`]})}continue}let b=typeof h,v=ef(s,t);if(v&&"string"===b&&"_"===h[0]){let e=s in a.Qn,t=!e&&s.includes("-")&&a.Qn[s.split("-")[0]];if(e||t){F?(ep(V,D,s,h,t),ee.style&&delete ee.style[s]):(ee.style||={},ee.style[s]=(0,x.R)(s,h),delete D[s]);continue}}if(h!==e[s]&&(ee.curProps[s]=h),"dataSet"===s){for(let e in h)W[`data-${ex(e)}`]=h[e];continue}if(!p.noExpand){if("disabled"===s&&!0===h&&(W["aria-disabled"]=!0,("button"===y||"form"===y||"input"===y||"select"===y||"textarea"===y)&&(W.disabled=!0),!_?.disabled))continue;if("testID"===s){W[O?s:"data-testid"]=h;continue}if("id"===s||"nativeID"===s){W.id=h;continue}let e=!1;if(O){if(s in u||s.startsWith("accessibility")){W[s]=h;continue}}else{if(e=!0,s in u){W[u[s]]=h;continue}switch(s){case"accessibilityRole":"none"===h?W.role="presentation":W.role=e$[h]||h;continue;case"accessibilityLabelledBy":case"accessibilityFlowTo":case"accessibilityControls":case"accessibilityDescribedBy":W[`aria-${s.replace("accessibility","").toLowerCase()}`]=Array.isArray(h)?h.join(" "):h;continue;case"accessibilityKeyShortcuts":Array.isArray(h)&&(W["aria-keyshortcuts"]=h.join(" "));continue;case"accessibilityLiveRegion":W["aria-live"]="none"===h?"off":h;continue;case"accessibilityReadOnly":W["aria-readonly"]=h,("input"===y||"select"===y||"textarea"===y)&&(W.readOnly=!0);continue;case"accessibilityRequired":W["aria-required"]=h,("input"===y||"select"===y||"textarea"===y)&&(W.required=h);continue;default:e=!1}}if(e)continue}let S=s in w,C=!v&&_&&s in _,R=S||v||C,L=s in a.M6,M=!R&&!L&&(0,f._z)(s),j=!!(M||L);if(j&&s.startsWith("$group-")){let e=s.split("-")[1];m?.groups.subscribe&&!m?.groups.state[e]&&(s=s.replace("$group-","$group-true-"))}let et=v||j||C&&!p.noExpand||S;if(et&&("except-style"===e.asChild||"except-style-web"===e.asChild))continue;let en=!et||k&&I?.variants&&s in I.variants||N?.has(s),ei=I?.variants?.[s],eo=!!(k&&(S||v||j||ei||s in q));if((en||eo)&&(eE(W,s,h,j),!C)||!p.noSkip&&s in q)continue;(P||A)&&h&&("fontFamily"===s||s===w.fontFamily)&&h in i.fontsParsed&&(ee.fontFamily=h);let ea=j||!C&&!v,el=ea?null:J(s,h,ee);if(!ea){if(!el)continue;let e=er(el);e&&(ee.fontFamily=e)}let es=s,eu=h,ec=el?el.length:1;for(let n=0;n=(z[t]||0)&&(X||={},X[es]||={},X[es][t]=n,eh(ee,t,n))}if(!i)for(let e in eu){let t=w[e]||e;z[t]=Math.max(o,z[t]||0)}}continue}if(M){if(!eu)continue;if("platform"===M){let e=es.slice(10);if(e!==o.ob&&"web"!==e)continue}G||=!0;let e=es.slice(1),t=eu.space;if((t||!F)&&(Array.isArray(G)||(G=[]),G.push(e)),F){let n=em(ee,es,eu,!1);if(t&&(delete n.space,B[e])){let t=(0,f.ae)(e,"space",z,!0);t&&(H=eu.space,z.space=t)}let r=$(n),i=Z;for(let t of(Z+=1,r)){let n=g(t,e,f.aN,M,!1,i),r=`${t.property}-${e}${t.pseudo||""}`;r in z||(eb(Y,n),ep(V,D,r,n.identifier,!0,!0))}}else{let t=em(ee,es,eu,!0),n="theme"===M,i="group"===M;if(!n&&"platform"!==M&&!i&&!B[e])continue;let o=0;if(n){U=!0;let t=e.slice(6);if(!(r===t||r.startsWith(t)))continue}else if(i){let t=d(e),n=t.name,r=m?.groups.state[n];if(!r)continue;let i=t.pseudo,a=t.media,s=l.group?.[n];if(a){(Q||=new Set).add(a);let e=s?.media,t=e?.[a];if(!e&&r.layout&&(t=(0,f.yj)(a,r.layout)),!t)continue;o=2}if(i){if((K||=new Set).add(n),!(s||m.groups.state[n]).pseudo?.[i])continue;o=T.MX[i]}}for(let n in t){if("space"===n){H=h.space;continue}ee.style||={},function(e,t,n,r,i,o,a){let l=(0,f.ae)(t,n,i,o);a&&(l=(l||0)+a),null!==l&&(i[n]=l,eh(e,n,r))}(ee,e,n,t[n],z,B[e],o),"fontFamily"===es&&(ee.fontFamily=t.fontFamily)}}continue}if(!k&&ef(es,t)){eh(ee,es,eu);continue}C||(W[es]=eu)}}}if(!1!==p.noNormalize&&(ee.style&&(v(ee.style),o.$L&&!t.isReactNative&&R(ee.style)),ee.flatTransforms&&(ee.style||={},Object.entries(ee.flatTransforms).sort(([e],[t])=>e.localeCompare(t)).forEach(([e,t])=>{eT(ee.style,e,t,!0)})),h)){if(F)for(let e in h.classNames){let t=h.classNames[e];ee.style&&e in ee.style||e in D||(D[e]=t)}if(!F)for(let e in h.style)e in D||ee.style&&e in ee.style||(ee.style||={},ee.style[e]=h.style[e])}if(!p.noNormalize&&!t.isReactNative&&!t.isHOC&&(!p.isAnimated||i.animations.supportsCSSVars)&&Array.isArray(ee.style?.transform)&&(ee.style.transform=(0,C.m)(ee.style.transform)),ee.style&&F){let t;if(!ee.style.$$css){for(let n of $(ee.style)){let r=n.property,i=p.isAnimated&&p.noClassNames&&(!e.animateOnly||e.animateOnly.includes(r)),o=!i&&!p.isAnimated&&e.animateOnly?.includes(r);i?(t||={})[r]=ee.style[r]:o?(t||={})[r]=n.value:(eb(Y,n),ep(V,D,r,n.identifier,!1,!0))}ee.style=t||{}}if(V)for(let e in V){if(!V[e])continue;let[t,n]=V[e],r=`_transform${t}`;if(o.C5&&!M.MD[r]){let t=`.${r} { transform: ${n}; }`;eb(Y,{identifier:r,rules:[t],property:e})}D[e]=r}}if(!O&&null==W.tabIndex){let t=W.focusable??W.accessible;W.focusable&&delete W.focusable;let n=W.role;!1===t&&(W.tabIndex="-1"),"a"===y||"button"===y||"input"===y||"select"===y||"textarea"===y?(!1===t||!0===e.accessibilityDisabled)&&(W.tabIndex="-1"):("button"===n||"checkbox"===n||"link"===n||"radio"===n||"textbox"===n||"switch"===n)&&!1!==t&&(W.tabIndex="0"),t&&(W.tabIndex="0",delete W.focusable)}let et=e.style;if(et){if(k)W.style=ek(et);else{let e=Array.isArray(et),t=e?et.length:1;for(let n=0;n{let{staticConfig:i,props:o,conf:l,styleProps:s}=e,u={};for(let c in n){let f=n[c],d=J(c=l.shorthands[c]||c,f,e,{...o,...o[t]});if(!(!d||!i.isHOC&&c in q&&!s.noSkip))for(let[e,t]of d)!r&&e in a.Dc?eT(u,e,t):u[e]=s.noNormalize?t:(0,x.Y)(t,c)}return s.noNormalize||v(u),u},eg=o.$L?l.useInsertionEffect||o.LI:()=>{},ey=(e,t,n,r,o,a,l,u,c,f)=>{i=i||(0,s.iE)();let d=ed(e,t,n,r,o,a,l,u,c,f);return ec.env.TAMAGUI_REACT_19||eg(()=>{(0,M._N)(d.rulesToInsert)},[d.rulesToInsert]),d};function eb(e,t){(0,M.Jt)(t.identifier)&&(ec.env.TAMAGUI_REACT_19||(0,M.GU)(t.identifier,t.rules),e.push(t))}let ev=ec.env.TAMAGUI_DEFAULT_COLOR||"rgba(0,0,0,0)",eS={...Object.fromEntries(Object.entries(a.CV.color).map(([e,t])=>[e,ev])),opacity:1,scale:1,rotate:"0deg",rotateY:"0deg",rotateX:"0deg",x:0,y:0,borderRadius:0},ew=e=>`-${e.toLowerCase()}`,ex=e=>e.replace(/[A-Z]/g,ew),eT=(e,t,n,r=!1)=>{"string"!=typeof e.transform&&(e.transform||=[],e.transform[r?"unshift":"push"]({[eC[t]||t]:n}))},eC={x:"translateX",y:"translateY"},e$={adjustable:"slider",header:"heading",image:"img",link:"link",none:"presentation",summary:"region"};function eE(e,t,n,r=!1){if(r){let r={...e[t],...n};delete e[t],e[t]=r}else e[t]=n}function ek(e){let t={};for(let n in e){let r=e[n];n in a.Dc?eT(t,n,r):t[n]=(0,x.Y)(r,n)}return o.$L&&Array.isArray(t.transform)&&(t.transform=(0,C.m)(t.transform)),v(t),t}},7393:function(e,t,n){"use strict";n.d(t,{GU:function(){return E},Jt:function(){return P},MD:function(){return c},OJ:function(){return h},UY:function(){return d},_N:function(){return k},jc:function(){return g},tN:function(){return f}});var r=n(281),i=n(2202),o=n(357);let a=new WeakMap,l=new Map,s={},u={},c={},f=()=>s,d=()=>Object.values(u);function p(e,t,n){let r=t.indexOf("transform:");if(-1===r)return;let i=t.indexOf(";"),o=t.slice(r+10,i);if(!c[e])return c[e]=o,!0}function h(){r.C5&&new MutationObserver(e=>{for(let t of e)if(t instanceof HTMLStyleElement&&t.sheet||t instanceof HTMLLinkElement&&t.href.endsWith(".css")){g();break}}).observe(document.head,{childList:!0})}let m=null;function g(e=!1,t){let n;if(!r.C5)return;let i=document.styleSheets||[],o=m,a=new Set(i);if(document.styleSheets){for(let r of a)if(r){let i=S(r,!1,e,t);i&&(n=i)}m=a}if(o)for(let e of o)e&&!a.has(e)&&S(e,!0);return n}function y(e,t=!1){let n=(l.get(e)||0)+(t?-1:1);return l.set(e,n),n}let b=o.env.TAMAGUI_BAIL_AFTER_SCANNING_X_CSS_RULES,v=b?+b:250;function S(e,t=!1,n=!1,r){let l;try{if(!(l=e.cssRules))return}catch{return}let u=T(l[0],n)?.[0],c=T(l[l.length-1],n)?.[0],f=`${l.length}${u}${c}`,d=a.get(e);if(!t&&d===f)return;let h=l.length,m=0,g;for(let e=0;ev)return;continue}let[c,f,d]=u;if(d){let e=function(e,t){let n=e.selectorText.split(",");if(!n.length)return;if(t&&!w)for(let e in w={},t.color){let n=t.color[e];w[n.name]=n.val}let r=(e.cssText||"").slice(e.selectorText.length+2,-1).split(";"),a={};for(let e of r){let t;let n=e.indexOf(":");if(-1===n)continue;let r=e.indexOf("--"),l=e.slice(-1===r?0:r+2,n);o.env.TAMAGUI_CSS_VARIABLE_PREFIX&&(l=l.replace(o.env.TAMAGUI_CSS_VARIABLE_PREFIX,""));let s=e.slice(n+2);if("v"===s[0]&&s.startsWith("var(")){let e=s.slice(6,-1),n=w[e];n?t=n:(x||=getComputedStyle(document.body),t=x.getPropertyValue("--"+e))}else t=s;a[l]=(0,i.Os)({key:l,name:l,val:t},!0)}let l=new Set;for(let e of n){let t=e.lastIndexOf(".t_"),n=e.slice(t).slice(3),[r]=e[t-5],i="d"===r?"dark":"i"===r?"light":"",o=i&&i!==n?`${i}_${n}`:n;o&&"light_dark"!==o&&"dark_light"!==o&&l.add(o)}return{names:[...l],theme:a}}(f,r);e&&(g||=[]).push(e);continue}if(!o.env.TAMAGUI_REACT_19){let e=y(c,t);t?0===e&&delete s[c]:c in s||(!c.startsWith("_transform-")||p(c,f.cssText,f))&&(s[c]=f.cssText)}}return a.set(e,f),g}let w,x=null;function T(e,t=!1){if(e instanceof CSSStyleRule){let n=e.selectorText;if(":"===n[0]&&"r"===n[1]){if(n.startsWith(":root ._"))return[C(n),e];if(t&&(n.startsWith(":root.t_")||n.startsWith(":root .t_")))return[n.slice(0,20),e,!0]}}else if(e instanceof CSSMediaRule)return e.cssRules.length>1?void 0:T(e.cssRules[0])}let C=e=>{let t=e.indexOf(":");return t>-1?e.slice(7,t):e.slice(7)},$=r.C5?document.head.appendChild(document.createElement("style")).sheet:null;function E(e,t){if(!o.env.TAMAGUI_REACT_19)return!(e in u)&&(u[e]=t.join(" "),!e.startsWith("_transform-")||p(e,t[0]))}function k(e){if(!o.env.TAMAGUI_REACT_19&&e.length&&$){for(let{identifier:t,rules:n}of e)if(P(t))for(let e of(s[t]=n.join(` +`),y(t),E(t,n),n))try{$.insertRule(e,$.cssRules.length)}catch(e){console.error("Error inserting CSS",e)}}}let R=o.env.TAMAGUI_INSERT_SELECTOR_TRIES?+o.env.TAMAGUI_INSERT_SELECTOR_TRIES:2;function P(e){if(o.env.TAMAGUI_REACT_19)return!0;{let t=l.get(e);return void 0===t||te&&!Array.isArray(e)&&"object"==typeof e},9533:function(e,t,n){"use strict";n.d(t,{D:function(){return i},L:function(){return r}});let r="u">typeof window&&window.matchMedia||function(e){return{match:(e,t)=>!1,addListener(){},removeListener(){},matches:!1}};function i(e){}},2117:function(e,t,n){"use strict";n.d(t,{HY:function(){return l},ut:function(){return a}});var r=n(44),i=n.t(r,2);let o=r||i,a=(e,t)=>{if(e){if("$"===e[0])return e;if(e.startsWith("var(")){if("number"==typeof t&&t<1)return`color-mix(in srgb, ${e} ${100*t}%, transparent)`}else{let n=l(e);if(n){let e=`${n.r},${n.g},${n.b}`;return 1===t?`rgb(${e})`:`rgba(${e},${t??n.a??1})`}}return e}},l=e=>{let t=o(e);if(null!=t)return{r:Math.round((4278190080&t)>>>24),g:Math.round((16711680&t)>>>16),b:Math.round((65280&t)>>>8),a:((255&t)>>>0)/255}}},8829:function(e,t,n){"use strict";n.d(t,{R:function(){return u},Y:function(){return l}});var r=n(281),i=n(8338),o=n(7393);let a={...i.cC,translateX:!0,translateY:!0};function l(e,t=""){if(!r.$L||i.O0[t]||t&&!a[t]||"boolean"==typeof e)return e;let n=e;return e&&"object"==typeof e?e:("number"==typeof e?n=`${e}px`:t&&(n=`${n}`),n)}let s={};function u(e,t){let n;let r=(0,o.tN)()[t];if(s[r])return s[r];if(!r)return;let a=r.replace(/.*:/,"").replace(/;.*/,"").trim();return n=a.startsWith("var(")?a:i.O0[e]?+a:a.endsWith("px")?+a.replace("px",""):a,s[r]=n,n}},7440:function(e,t,n){"use strict";n.d(t,{MX:function(){return r},Qy:function(){return i}});let r={hover:1,press:2,focus:3,focusVisible:3,disabled:4},i={hoverStyle:{name:"hover",priority:1},pressStyle:{name:"active",stateKey:"press",priority:2},focusVisibleStyle:{name:"focus-visible",priority:3,stateKey:"focusVisible"},focusStyle:{name:"focus",priority:3},disabledStyle:{name:"disabled",priority:4,stateKey:"disabled"},enterStyle:{name:"enter",selector:".t_unmounted",priority:4},exitStyle:{name:"exit",priority:5}}},9235:function(e,t,n){"use strict";n.d(t,{Y:function(){return a}});var r=n(2265),i=n(1130),o=n(2281);function a(e,t){let n=(0,r.forwardRef)(function(n,r){let{themeInverse:a,theme:l,componentName:s,themeReset:u,...c}=n,f=(0,o.jsx)(e,{ref:r,...c,"data-disable-theme":!0});return(0,o.jsx)(i.Q,{componentName:s||t?.componentName,name:l,"disable-child-theme":!0,debug:n.debug,inverse:a,reset:u,children:f})});return n.displayName=`Themed(${e?.displayName||e?.name||"Anonymous"})`,n}},1333:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var r=n(8829);function i(e){return e.map(e=>{let t=Object.keys(e)[0],n=e[t];return"matrix"===t||"matrix3d"===t?`${t}(${n.join(",")})`:`${t}(${(0,r.Y)(n,t)})`}).join(" ")}},6962:function(e,t,n){"use strict";n.d(t,{U:function(){return o},f:function(){return l}});var r=n(2265);let i=!1;function o(){(0,r.useEffect)(()=>{let e=setInterval(()=>{Date.now()-a>32&&(i=!0,clearInterval(e))},16);return()=>{clearInterval(e)}},[])}let a=Date.now();function l(){return i||(a=Date.now()),i}},9097:function(e,t,n){"use strict";let r,i;n.d(t,{jl:function(){return S},om:function(){return p},ae:function(){return A},_z:function(){return m},yj:function(){return L},Lk:function(){return h},yS:function(){return N},aN:function(){return d},nA:function(){return f},Zv:function(){return R},yL:function(){return x},GS:function(){return P}});var o=n(281),a=n(2265),l=n(5986),s=n(9533),u=n(7440),c=n(6962);let f={},d={},p=()=>f,h=new Set,m=e=>{if(h.has(e))return!0;if("$"===e[0]){if(e.startsWith("$platform-"))return"platform";if(e.startsWith("$theme-"))return"theme";if(e.startsWith("$group-"))return"group"}return!1},g=Object.keys(u.Qy).length,y=e=>(0,l.iE)().settings.mediaPropOrder?g:i.indexOf(e)+100,b=new Set,v=0,S=e=>{let{media:t,mediaQueryDefaultActive:n}=e;if(t){for(let e in v++,t)f[e]=n?.[e]||!1,h.add(`$${e}`);Object.assign(d,t),r={...f},i=Object.keys(t),e.disableSSR?x():E()}},w=-1;function x(){if(!(o.$L&&o.sk)&&w!==v)for(let e in w=v,d){let t=function(){let t=!!r().matches;t!==f[e]&&(f={...f,[e]:t},E())},n=N(d[e],e),r=()=>(0,s.L)(n),i=r();if(!i)throw Error("⚠️ No match");i.addListener(t),b.add(()=>{i.removeListener(t)}),t()}}let T=new Set,C=!1,$=-1;function E(){C&&$===v||($=v,C=!0,Promise.resolve().then(()=>{C=!1,T.forEach(e=>e(f))}))}let k=new WeakMap;function R(e,t){return k.set(e,{...k.get(e),...t})}function P(e,t){let n=e??(0,a.useRef)(),i=(0,c.f)(),s=!o.$L||(t?.disableSSR??(0,l.iE)().disableSSR)||i?f:r,u=k.get(n);u||(u={prev:s},k.set(n,u)),u.touched=void 0;let[d,p]=(0,a.useState)(s);return(0,o.LI)(()=>{function e(){p(e=>{let t=k.get(n),r=function({touched:e,prev:t,enabled:n,keys:r}){if(!1===n)return t;let i=r||e?[...r||[],...e||[]]:null;return!i||i?.every(e=>f[e]===t[e])?t:f}(t);return r!==e?(t.prev=r,r):e})}return Promise.resolve().then(e),T.add(e),()=>{T.delete(e)}},[n]),new Proxy(d,{get:(e,t)=>("string"==typeof t&&(u.touched||=new Set,u.touched.add(t)),Reflect.get(d,t))})}let A=(e,t,n,r)=>{let i=(0,l.iE)(),o=r&&!i.settings.mediaPropOrder?y(e):g;return!n[t]||o>n[t]?o:null},_=new WeakMap,O={};function N(e,t){if("string"==typeof e)return e;if(_.has(e))return _.get(e);let n=Object.entries(e).map(([e,t])=>(e=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).toLowerCase(),"string"==typeof t||"number"==typeof t&&/[height|width]$/.test(e)&&(t=`${t}px`),`(${e}: ${t})`)).join(" and ");return t&&(O[t]=n),_.set(e,n),n}function L(e,t){let n=d[e];return Object.keys(n).every(e=>{let r=+n[e],i=e.startsWith("max"),o=t[e.endsWith("Width")?"width":"height"];return i?or})}},8411:function(e,t,n){"use strict";let r;n.d(t,{q4:function(){return C},fe:function(){return E},Fg:function(){return y},WU:function(){return b}});var i=n(281),o=n(2265),a=n(5986),l=n(2202),s=n(9242);let u={name:""};function c(e){return!!(e.name||e.componentName||e.inverse||e.reset)}let f=0;class d{constructor(e={},t){if(this.props=e,f=(f+1)%Number.MAX_VALUE,this.id=f,"root"===t){this.updateStateFromProps(e,!1);return}if(!t)throw"❌ 000";if(this.parentManager=t,!this.updateStateFromProps(e,!1))return t}id=0;themeListeners=new Set;parentManager=null;state=u;updateStateFromProps(e=this.props||{},t=!0){if(this.props=e,e.forceTheme)return this.state.theme=e.forceTheme,this.state.name=e.name||"",this.updateState(this.state,!0),this.state;let n=this.getStateIfChanged(e);if(n)return this.updateState(n,t),n}updateState(e,t=!0){this.state=e,this._allKeys=null,t&&queueMicrotask(()=>{this.notify()})}getStateIfChanged(e=this.props,t=this.state,n=this.parentManager){let r=this.getState(e,n);return t&&t!==u&&!r?n?.state:this.getStateShouldChange(r,t)?r:void 0}getStateShouldChange(e,t=this.state){return!(!e?.theme||e.theme===t?.theme)}getState(e=this.props,t=this.parentManager){return function(e,t){if(e.name&&e.reset)throw Error("❌004");if(!c(e))return null;let n=(0,a.RC)(),[r,o]=function(e){let t=[],n=[],r=e;for(;r;)n.push(r),r.state.isComponent&&t.push(r),r=r.parentManager;return[n,t]}(t),l=!!t?.state.isComponent,u=e.reset&&!l?1:0,f=r[u],d=r[u+1];if(!f&&e.reset)return null;let{componentName:h}=e,m=null,g=f?.state.name||"";f?.state.isComponent&&(g=g.replace(/_[A-Z][A-Za-z]+/,""));let y=e.reset?g:e.name||"",b=o.map(e=>e?.state.name||"");l&&b.shift();let v=g.split(s.L2),S=v.length,w=e.componentName&&!y?S:0;for(let t=S;t>=w;t--){let r=v.slice(0,t).join(s.L2);e.inverse&&(r=p(r));let o=[];if(r&&r!==g&&r.includes(y)&&o.push(r),y&&o.unshift(r?`${r}_${y}`:y),1===t){let e=o.findIndex(e=>!e.includes("_"));e>0&&o.splice(e,0,y)}if(h&&!e.reset){let e=v.length,n=[];if(y&&e>1){let e=v[0];n.push(`${e}_${y}_${h}`)}if(n.push(`${r}_${h}`),y){if(t>e){let e=v.slice(0,t-1).join(s.L2);if(e){let t=`${e}_${y}_${h}`;n.unshift(t)}}let i=`${r}_${y}_${h}`;n.unshift(i)}o=[...n,...o,...b]}let a=o.find(e=>e in n);if(a){let e=a.split("_"),[t,...r]=e,o=e[e.length-1],l=o[0]===o[0].toUpperCase(),u="light"===t?"light":"dark"===t?"dark":void 0,c=s.nx,p=i.$L?`${c}sub_theme ${c}${u&&r.length?r.join("_"):t}`:"";m={name:a,parentName:(f||d)?.state?.name,theme:n[a],className:p,isComponent:l,scheme:u};break}}return m}(e,t)||null}_allKeys=null;get allKeys(){return this._allKeys||=new Set([...this.parentManager?.allKeys||[],...Object.keys(this.state.theme||{})]),this._allKeys}notify(e=!1){this.themeListeners.forEach(t=>t(this.state.name,this,e))}onChangeTheme(e,t){return this.themeListeners.add(e),()=>{this.themeListeners.delete(e)}}}let p=e=>e.startsWith("light")?e.replace(/^light/,"dark"):e.replace(/^dark/,"light");var h=n(9033),m=n(3820);let g={name:null},y=(e=g)=>{let[t,n]=b(e);return n||function(){if(r)return r;let e=(0,a.iE)(),t=e.themes.light?"light":Object.keys(e.themes)[0];return r=v({theme:e.themes[t],name:t})}()},b=e=>{let t=(0,o.useRef)([]),n=E(e,!1,t.current,i.sk?void 0:()=>e.shouldUpdate?.()??(t.current.length>0||void 0)),{themeManager:r,state:a}=n;return[n,(0,o.useMemo)(()=>r&&a?.theme?v(a,e.deopt,r,t.current,e.debug):{},[a?.theme,r,e.deopt,e.debug])]};function v({theme:e,name:t,scheme:n},r=!1,i,o,s){return e?((0,a.iE)(),new Proxy(e,{has:(t,n)=>!!Reflect.has(e,n)||("string"==typeof n?("$"===n[0]&&(n=n.slice(1)),i?.allKeys.has(n)):void 0),get(t,n){if("undefined"!==n&&"string"==typeof n){let t="$"===n[0]?n.slice(1):n,r=e[t];if(r&&"object"==typeof r)return new Proxy(r,{get(e,n){if("val"===n)o&&!o.includes(t)&&o.push(t);else if("get"===n)return e=>(0,l.E0)(r);return Reflect.get(r,n)}})}return Reflect.get(t,n)}})):{}}let S=new Set,w=new WeakMap,x={},T=e=>x[e],C=e=>w.get(T(e)),$=e=>{if(!x[e.id]){let t=x[e.id]={};w.set(t,e)}},E=(e,t=!1,n,r)=>{let{disable:l}=e,s=C((0,o.useContext)(h.s));if(!t&&!s||l)return{isNewTheme:!1,state:s?.state,themeManager:s};let[u,f]=(0,o.useState)(T),{state:p,mounted:g,isNewTheme:y,themeManager:b,inversed:v}=u,w=!!(!u.mounted&&e.inverse);function x(t=b,n,i=p,o=!1){let a=r?.();if(!t||!o&&!1===a)return;let l=n||t.getState(e,s);if(o||l&&!(!0!==a&&!t.getStateShouldChange(l,i)))return l}if(i.sk||(0,o.useEffect)(()=>{if(!b)return;if(e.inverse&&!g){f(e=>T({...e,mounted:!0}));return}(y||x(b))&&(S.add(b),f(T));let t=b.onChangeTheme((e,t,n)=>{n&&f(e=>T(e,!0))}),i=s?.onChangeTheme((t,i,o)=>{let a=o||r?.()||e.deopt||void 0;(a??!!(n?.length||y))&&f(e=>T(e,a))},b.id);return()=>{t(),i?.(),y&&S.delete(b)}},[b,s,y,e.componentName,e.inverse,e.name,e.reset,g]),i.$L&&w)return{isNewTheme:!1,inversed:!1,themeManager:s,state:{name:"",...s?.state,className:""}};return{state:p,isNewTheme:y,inversed:v,themeManager:b};function T(o,l=!1){if(o&&r?.()===!1&&!l)return o;let u=s,f;if(c(e)){let r=()=>new d(e,t?"root":s);if(o?.themeManager){u=o.themeManager;let i=l||!!n?.length,a=u.getState(e,s),c=x(u,a,o.state,i);c?(f=c,o.isNewTheme||t?u.updateState(c):u=r()):o.isNewTheme&&s&&!a&&(u=s)}else f={...(u=r()).state}}let p=!!(u!==s||e.inverse);p&&$(u);let h=!!i.$L&&!(0,a.iE)().disableSSR,g=!h||t||o?.mounted;f||(p?f=u.state:(f=s.state,u=s));let y=o?.inversed,b=p&&f.scheme!==s?.state.scheme,v={themeManager:u,isNewTheme:p,mounted:g,inversed:!t&&(!!b||(h?null==y&&null:e.inverse))},S=o&&!l&&(0,m.N2)(o,v)&&(0,m.N2)(o.state,f);return o&&S?o:(v.state=f,v)}}},4283:function(e,t,n){"use strict";n.d(t,{P:function(){return r},b:function(){return i}});let r={};function i(e){Object.assign(r,e)}},4975:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});var r=n(5902);let i=(e,t,n=0)=>{let r={};for(let o in t){let a=e?.[o],l=t[o];a&&"function"!=typeof l?a&&!l?r[o]=a[o]:0===n?r[o]=i(a,l,n+1):r[o]={...a,...l}:r[o]=l}return{...e,...r}},o=new WeakMap,a={Image:{isReactNative:!0,inlineProps:new Set(["src","width","height"])},Text:{isReactNative:!0,isText:!0},TextInput:{isReactNative:!0,isInput:!0,isText:!0},default:{isReactNative:!0}};function l(e,t,n){let l=e.staticConfig,s=!!l&&!(l.isReactNative||l.isHOC),u=l?.isHOC&&!l?.isStyledHOC||s?e:l?.Component||e,c=l?void 0:function(e){if(e)return e.getSize&&e.prefetch?a.Image:"Text"===e.displayName&&e.render?a.Text:e.render&&("ScrollView"===e.displayName||"View"===e.displayName)?a.default:e.State?.blurTextInput?a.TextInput:o.get(e)}(u),f=!!(c||n?.isReactNative||l?.isReactNative),d=(()=>{if(t){let{variants:e,name:r,defaultVariants:o,acceptsClassName:a,context:d,...p}=t;o&&(p={...o,...p}),l&&(l.isHOC&&!l.isStyledHOC||(p={...l.defaultProps,...p},l.variants&&(e=i(l.variants,e)))),l?.isHOC&&r&&(p.componentName=r);let h=!!(n?.isText||l?.isText),m=a??(s||f||l?.isHOC&&l?.acceptsClassName),g={...l,...n,...!s&&{Component:u},variants:e,defaultProps:p,defaultVariants:o,componentName:r||l?.componentName,isReactNative:f,isText:h,acceptsClassName:m,context:d,...c,isStyledHOC:!!l?.isHOC,parentStaticConfig:l};return(p.children||!m||d)&&(g.neverFlatten=!0),g}})(),p=(0,r.LM)(d||{});for(let t in e)"propTypes"!==t&&(t in p||(p[t]=e[t]));return p}},5566:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var r=n(8338),i=n(9242);let o=(0,n(5902).LM)({acceptsClassName:!0,defaultProps:i.tn,validStyles:r.Qn});o.displayName="Stack"},8475:function(e,t,n){"use strict";n.d(t,{x:function(){return a}});var r=n(8338),i=n(5902);let o={maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},a=(0,i.LM)({acceptsClassName:!0,isText:!0,defaultProps:{fontFamily:"unset",display:"inline",boxSizing:"border-box",wordWrap:"break-word",whiteSpace:"pre-wrap",margin:0},inlineWhenUnflattened:new Set(["fontFamily"]),variants:{numberOfLines:{1:o,":number":e=>e>=1?{WebkitLineClamp:e,WebkitBoxOrient:"vertical",display:"-webkit-box",overflow:"hidden"}:null},selectable:{true:{userSelect:"text",cursor:"text"},false:{userSelect:"none",cursor:"default"}},ellipse:{true:o},ellipsis:{true:o}},validStyles:{...r.Qn,...r.hT}});a.displayName="Text"},1130:function(e,t,n){"use strict";n.d(t,{Q:function(){return u},u:function(){return c}});var r=n(281),i=n(2265),o=n(2202),a=n(9033),l=n(8411),s=n(2281);let u=(0,i.forwardRef)(function({children:e,...t},n){if(t.disable)return e;let r=!!t._isRoot,o=(0,l.fe)(t,r),a=t["disable-child-theme"]?i.Children.map(e,e=>(0,i.cloneElement)(e,{"data-disable-theme":!0})):e;if(n)try{i.Children.only(a),a=(0,i.cloneElement)(a,{ref:n})}catch{}return c(o,a,t,r,(0,i.useRef)({hasEverThemed:!1}))});function c(e,t,n,l=!1,c){let{themeManager:d,isNewTheme:p}=e;if(!d)throw Error("❌ 005");let{shallow:h,forceClassName:m}=n,g=p||"inverse"in n||"name"in n||c.current.hasEverThemed||l;if(g&&(c.current.hasEverThemed=!0),!g)return t;let y=t;h&&(y=i.Children.toArray(t).map(e=>(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,(0,s.jsx)(u,{name:d.state.parentName,children:e.props.children})):e));let b=(0,s.jsx)(a.s.Provider,{value:d.id,children:y});return!1===m?b:r.$L?function({children:e,themeState:t,forceClassName:n,isRoot:r}){if(r&&!1===n)return e;let i=t.inversed,{className:a,style:l}=function(e,t=!1){if(!e.isNewTheme)return{className:"",style:f};let n=e.state?.theme&&e.isNewTheme?(0,o.lk)(e.state.theme.color):"",r=e.state?.className||"";return t&&(r=r.replace("t_sub_theme","")),{style:n?{color:n}:void 0,className:r}}(t,r),u=(0,s.jsx)("span",{className:`${a} _dsp_contents is_Theme`,style:l,children:e});if(null!=i||n){let e=t.state?.name||"",n=e.startsWith("light")?"t_light is_inversed":e.startsWith("dark")?"t_dark is_inversed":"";u=(0,s.jsx)("span",{className:`${i?n:""} _dsp_contents`,children:u})}return u}({children:b,themeState:e,forceClassName:m,isRoot:l}):b}u.displayName="Theme",u.avoidForwardRef=!0;let f={}}}]); \ No newline at end of file diff --git a/_next/static/chunks/190-74c2ef00dd22af5b.js b/_next/static/chunks/190-74c2ef00dd22af5b.js new file mode 100644 index 0000000000000000000000000000000000000000..3fa808b00757533fb5f16df27682d795bb793f9e --- /dev/null +++ b/_next/static/chunks/190-74c2ef00dd22af5b.js @@ -0,0 +1,10 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[190],{9492:function(e,t){"use strict";function n(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return n}})},7108:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)})},4897:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return u}});let r=n(2707),o=n(8157);function u(e,t){return(0,o.normalizePathTrailingSlash)((0,r.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5684:function(e,t){"use strict";function n(e){var t,n;t=self.__next_s,n=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[n,r]=t;return e.then(()=>new Promise((e,t)=>{let o=document.createElement("script");if(r)for(let e in r)"children"!==e&&o.setAttribute(e,r[e]);n?(o.src=n,o.onload=()=>e(),o.onerror=t):r&&(o.innerHTML=r.children,setTimeout(e)),document.head.appendChild(o)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{n()}):n()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appBootstrap",{enumerable:!0,get:function(){return n}}),window.next={version:"14.2.4",appDir:!0},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4590:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callServer",{enumerable:!0,get:function(){return o}});let r=n(5751);async function o(e,t){let n=(0,r.getServerActionDispatcher)();if(!n)throw Error("Invariant: missing action dispatcher.");return new Promise((r,o)=>{n({actionId:e,actionArgs:t,resolve:r,reject:o})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},353:function(e,t,n){"use strict";let r,o;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return C}});let u=n(9920),l=n(1452),a=n(2281);n(7108);let i=u._(n(4040)),c=l._(n(2265)),s=n(6671),f=n(6590),d=u._(n(6124)),p=n(4590),h=n(2128),y=n(1427);n(3243);let v=window.console.error;window.console.error=function(){for(var e=arguments.length,t=Array(e),n=0;n{if((0,h.isNextRouterError)(e.error)){e.preventDefault();return}});let g=document,b=new TextEncoder,m=!1,P=!1,R=null;function j(e){if(0===e[0])r=[];else if(1===e[0]){if(!r)throw Error("Unexpected server data: missing bootstrap script.");o?o.enqueue(b.encode(e[1])):r.push(e[1])}else 2===e[0]&&(R=e[1])}let O=function(){o&&!P&&(o.close(),P=!0,r=void 0),m=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",O,!1):O();let S=self.__next_f=self.__next_f||[];S.forEach(j),S.push=j;let E=new ReadableStream({start(e){r&&(r.forEach(t=>{e.enqueue(b.encode(t))}),m&&!P&&(e.close(),P=!0,r=void 0)),o=e}}),w=(0,s.createFromReadableStream)(E,{callServer:p.callServer});function T(){return(0,c.use)(w)}let M=c.default.StrictMode;function x(e){let{children:t}=e;return t}function C(){let e=(0,y.createMutableActionQueue)(),t=(0,a.jsx)(M,{children:(0,a.jsx)(f.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,a.jsx)(y.ActionQueueContext.Provider,{value:e,children:(0,a.jsx)(x,{children:(0,a.jsx)(T,{})})})})}),n=window.__next_root_layout_missing_tags,r=!!(null==n?void 0:n.length),o={onRecoverableError:d.default};"__next_error__"===document.documentElement.id||r?i.default.createRoot(g,o).render(t):c.default.startTransition(()=>i.default.hydrateRoot(g,t,{...o,formState:R}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1028:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(5820),(0,n(5684).appBootstrap)(()=>{let{hydrate:e}=n(353);n(5751),n(9275),e()}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5820:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(9492);{let e=n.u;n.u=function(){for(var t=arguments.length,n=Array(t),r=0;r(l(function(){var e;let t=document.getElementsByName(u)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(u);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(u)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[a,i]=(0,r.useState)(""),c=(0,r.useRef)();return(0,r.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==c.current&&c.current!==e&&i(e),c.current=e},[t]),n?(0,o.createPortal)(a,n):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7325:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION:function(){return r},FLIGHT_PARAMETERS:function(){return i},NEXT_DID_POSTPONE_HEADER:function(){return s},NEXT_ROUTER_PREFETCH_HEADER:function(){return u},NEXT_ROUTER_STATE_TREE:function(){return o},NEXT_RSC_UNION_QUERY:function(){return c},NEXT_URL:function(){return l},RSC_CONTENT_TYPE_HEADER:function(){return a},RSC_HEADER:function(){return n}});let n="RSC",r="Next-Action",o="Next-Router-State-Tree",u="Next-Router-Prefetch",l="Next-Url",a="text/x-component",i=[[n],[o],[u]],c="_rsc",s="x-nextjs-postponed";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5751:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createEmptyCacheNode:function(){return A},default:function(){return k},getServerActionDispatcher:function(){return w},urlToUrlWithoutFlightMarker:function(){return M}});let r=n(1452),o=n(2281),u=r._(n(2265)),l=n(4467),a=n(1507),i=n(3174),c=n(8056),s=n(2114),f=n(6130),d=n(322),p=n(4092),h=n(4897),y=n(1012),v=n(6585),g=n(315),b=n(1108),m=n(7325),P=n(7599),R=n(9404),j=n(0),O="undefined"==typeof window,S=O?null:new Map,E=null;function w(){return E}let T={};function M(e){let t=new URL(e,location.origin);if(t.searchParams.delete(m.NEXT_RSC_UNION_QUERY),t.pathname.endsWith(".txt")){let{pathname:e}=t,n=e.endsWith("/index.txt")?10:4;t.pathname=e.slice(0,-n)}return t}function x(e){return e.origin!==window.location.origin}function C(e){let{appRouterState:t,sync:n}=e;return(0,u.useInsertionEffect)(()=>{let{tree:e,pushRef:r,canonicalUrl:o}=t,u={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};r.pendingPush&&(0,i.createHrefFromUrl)(new URL(window.location.href))!==o?(r.pendingPush=!1,window.history.pushState(u,"",o)):window.history.replaceState(u,"",o),n(t)},[t,n]),null}function A(){return{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null}}function N(e){null==e&&(e={});let t=window.history.state,n=null==t?void 0:t.__NA;n&&(e.__NA=n);let r=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return r&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=r),e}function I(e){let{headCacheNode:t}=e,n=null!==t?t.head:null,r=null!==t?t.prefetchHead:null,o=null!==r?r:n;return(0,u.useDeferredValue)(n,o)}function D(e){let t,{buildId:n,initialHead:r,initialTree:i,initialCanonicalUrl:f,initialSeedData:m,couldBeIntercepted:w,assetPrefix:M,missingSlots:A}=e,D=(0,u.useMemo)(()=>(0,d.createInitialRouterState)({buildId:n,initialSeedData:m,initialCanonicalUrl:f,initialTree:i,initialParallelRoutes:S,location:O?null:window.location,initialHead:r,couldBeIntercepted:w}),[n,m,f,i,r,w]),[k,U,L]=(0,s.useReducerWithReduxDevtools)(D);(0,u.useEffect)(()=>{S=null},[]);let{canonicalUrl:F}=(0,s.useUnwrapState)(k),{searchParams:H,pathname:$}=(0,u.useMemo)(()=>{let e=new URL(F,"undefined"==typeof window?"http://n":window.location.href);return{searchParams:e.searchParams,pathname:(0,R.hasBasePath)(e.pathname)?(0,P.removeBasePath)(e.pathname):e.pathname}},[F]),G=(0,u.useCallback)(e=>{let{previousTree:t,serverResponse:n}=e;(0,u.startTransition)(()=>{U({type:a.ACTION_SERVER_PATCH,previousTree:t,serverResponse:n})})},[U]),z=(0,u.useCallback)((e,t,n)=>{let r=new URL((0,h.addBasePath)(e),location.href);return U({type:a.ACTION_NAVIGATE,url:r,isExternalUrl:x(r),locationSearch:location.search,shouldScroll:null==n||n,navigateType:t})},[U]);E=(0,u.useCallback)(e=>{(0,u.startTransition)(()=>{U({...e,type:a.ACTION_SERVER_ACTION})})},[U]);let W=(0,u.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{let n;if(!(0,p.isBot)(window.navigator.userAgent)){try{n=new URL((0,h.addBasePath)(e),window.location.href)}catch(t){throw Error("Cannot prefetch '"+e+"' because it cannot be converted to a URL.")}x(n)||(0,u.startTransition)(()=>{var e;U({type:a.ACTION_PREFETCH,url:n,kind:null!=(e=null==t?void 0:t.kind)?e:a.PrefetchKind.FULL})})}},replace:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var n;z(e,"replace",null==(n=t.scroll)||n)})},push:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var n;z(e,"push",null==(n=t.scroll)||n)})},refresh:()=>{(0,u.startTransition)(()=>{U({type:a.ACTION_REFRESH,origin:window.location.origin})})},fastRefresh:()=>{throw Error("fastRefresh can only be used in development mode. Please use refresh instead.")}}),[U,z]);(0,u.useEffect)(()=>{window.next&&(window.next.router=W)},[W]),(0,u.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&(T.pendingMpaPath=void 0,U({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[U]);let{pushRef:B}=(0,s.useUnwrapState)(k);if(B.mpaNavigation){if(T.pendingMpaPath!==F){let e=window.location;B.pendingPush?e.assign(F):e.replace(F),T.pendingMpaPath=F}(0,u.use)(b.unresolvedThenable)}(0,u.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),n=e=>{var t;let n=window.location.href,r=null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,u.startTransition)(()=>{U({type:a.ACTION_RESTORE,url:new URL(null!=e?e:n,n),tree:r})})};window.history.pushState=function(t,r,o){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=N(t),o&&n(o)),e(t,r,o)},window.history.replaceState=function(e,r,o){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=N(e),o&&n(o)),t(e,r,o)};let r=e=>{let{state:t}=e;if(t){if(!t.__NA){window.location.reload();return}(0,u.startTransition)(()=>{U({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:t.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener("popstate",r),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",r)}},[U]);let{cache:K,tree:V,nextUrl:Y,focusAndScrollRef:X}=(0,s.useUnwrapState)(k),q=(0,u.useMemo)(()=>(0,g.findHeadInCache)(K,V[1]),[K,V]),J=(0,u.useMemo)(()=>(function e(t,n){for(let r of(void 0===n&&(n={}),Object.values(t[1]))){let t=r[0],o=Array.isArray(t),u=o?t[1]:t;!u||u.startsWith(j.PAGE_SEGMENT_KEY)||(o&&("c"===t[2]||"oc"===t[2])?n[t[0]]=t[1].split("/"):o&&(n[t[0]]=t[1]),n=e(r,n))}return n})(V),[V]);if(null!==q){let[e,n]=q;t=(0,o.jsx)(I,{headCacheNode:e},n)}else t=null;let Q=(0,o.jsxs)(v.RedirectBoundary,{children:[t,K.rsc,(0,o.jsx)(y.AppRouterAnnouncer,{tree:V})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(C,{appRouterState:(0,s.useUnwrapState)(k),sync:L}),(0,o.jsx)(c.PathParamsContext.Provider,{value:J,children:(0,o.jsx)(c.PathnameContext.Provider,{value:$,children:(0,o.jsx)(c.SearchParamsContext.Provider,{value:H,children:(0,o.jsx)(l.GlobalLayoutRouterContext.Provider,{value:{buildId:n,changeByServerResponse:G,tree:V,focusAndScrollRef:X,nextUrl:Y},children:(0,o.jsx)(l.AppRouterContext.Provider,{value:W,children:(0,o.jsx)(l.LayoutRouterContext.Provider,{value:{childNodes:K.parallelRoutes,tree:V,url:F,loading:K.loading},children:Q})})})})})})]})}function k(e){let{globalErrorComponent:t,...n}=e;return(0,o.jsx)(f.ErrorBoundary,{errorComponent:t,children:(0,o.jsx)(D,{...n})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4804:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bailoutToClientRendering",{enumerable:!0,get:function(){return u}});let r=n(5592),o=n(4936);function u(e){let t=o.staticGenerationAsyncStorage.getStore();if((null==t||!t.forceStatic)&&(null==t?void 0:t.isStaticGeneration))throw new r.BailoutToCSRError(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6513:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ClientPageRoot",{enumerable:!0,get:function(){return u}});let r=n(2281),o=n(8897);function u(e){let{Component:t,props:n}=e;return n.searchParams=(0,o.createDynamicallyTrackedSearchParams)(n.searchParams||{}),(0,r.jsx)(t,{...n})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6130:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ErrorBoundary:function(){return h},ErrorBoundaryHandler:function(){return f},GlobalError:function(){return d},default:function(){return p}});let r=n(9920),o=n(2281),u=r._(n(2265)),l=n(1169),a=n(2128),i=n(4936),c={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function s(e){let{error:t}=e,n=i.staticGenerationAsyncStorage.getStore();if((null==n?void 0:n.isRevalidate)||(null==n?void 0:n.isStaticGeneration))throw console.error(t),t;return null}class f extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,o.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function d(e){let{error:t}=e,n=null==t?void 0:t.digest;return(0,o.jsxs)("html",{id:"__next_error__",children:[(0,o.jsx)("head",{}),(0,o.jsxs)("body",{children:[(0,o.jsx)(s,{error:t}),(0,o.jsx)("div",{style:c.error,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{style:c.text,children:"Application error: a "+(n?"server":"client")+"-side exception has occurred (see the "+(n?"server logs":"browser console")+" for more information)."}),n?(0,o.jsx)("p",{style:c.text,children:"Digest: "+n}):null]})})]})]})}let p=d;function h(e){let{errorComponent:t,errorStyles:n,errorScripts:r,children:u}=e,a=(0,l.usePathname)();return t?(0,o.jsx)(f,{pathname:a,errorComponent:t,errorStyles:n,errorScripts:r,children:u}):(0,o.jsx)(o.Fragment,{children:u})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7910:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DynamicServerError:function(){return r},isDynamicServerError:function(){return o}});let n="DYNAMIC_SERVER_USAGE";class r extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=n}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2128:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return u}});let r=n(2496),o=n(7909);function u(e){return e&&e.digest&&((0,o.isRedirectError)(e)||(0,r.isNotFoundError)(e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9275:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return E}});let r=n(9920),o=n(1452),u=n(2281),l=o._(n(2265)),a=r._(n(4887)),i=n(4467),c=n(1283),s=n(1108),f=n(6130),d=n(6237),p=n(6180),h=n(6585),y=n(5324),v=n(4640),g=n(1784),b=n(5914),m=["bottom","height","left","right","top","width","x","y"];function P(e,t){let n=e.getBoundingClientRect();return n.top>=0&&n.top<=t}class R extends l.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){var n;if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,n)=>(0,d.matchSegment)(t,e[n]))))return;let r=null,o=e.hashFragment;if(o&&(r="top"===o?document.body:null!=(n=document.getElementById(o))?n:document.getElementsByName(o)[0]),r||(r="undefined"==typeof window?null:a.default.findDOMNode(this)),!(r instanceof Element))return;for(;!(r instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return m.every(e=>0===t[e])}(r);){if(null===r.nextElementSibling)return;r=r.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,p.handleSmoothScroll)(()=>{if(o){r.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!P(r,t)&&(e.scrollTop=0,P(r,t)||r.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,r.focus()}}}}function j(e){let{segmentPath:t,children:n}=e,r=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!r)throw Error("invariant global layout router not mounted");return(0,u.jsx)(R,{segmentPath:t,focusAndScrollRef:r.focusAndScrollRef,children:n})}function O(e){let{parallelRouterKey:t,url:n,childNodes:r,segmentPath:o,tree:a,cacheKey:f}=e,p=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!p)throw Error("invariant global layout router not mounted");let{buildId:h,changeByServerResponse:y,tree:v}=p,g=r.get(f);if(void 0===g){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};g=e,r.set(f,e)}let m=null!==g.prefetchRsc?g.prefetchRsc:g.rsc,P=(0,l.useDeferredValue)(g.rsc,m),R="object"==typeof P&&null!==P&&"function"==typeof P.then?(0,l.use)(P):P;if(!R){let e=g.lazyData;if(null===e){let t=function e(t,n){if(t){let[r,o]=t,u=2===t.length;if((0,d.matchSegment)(n[0],r)&&n[1].hasOwnProperty(o)){if(u){let t=e(void 0,n[1][o]);return[n[0],{...n[1],[o]:[t[0],t[1],t[2],"refetch"]}]}return[n[0],{...n[1],[o]:e(t.slice(2),n[1][o])}]}}return n}(["",...o],v),r=(0,b.hasInterceptionRouteInCurrentTree)(v);g.lazyData=e=(0,c.fetchServerResponse)(new URL(n,location.origin),t,r?p.nextUrl:null,h),g.lazyDataResolved=!1}let t=(0,l.use)(e);g.lazyDataResolved||(setTimeout(()=>{(0,l.startTransition)(()=>{y({previousTree:v,serverResponse:t})})}),g.lazyDataResolved=!0),(0,l.use)(s.unresolvedThenable)}return(0,u.jsx)(i.LayoutRouterContext.Provider,{value:{tree:a[1][t],childNodes:g.parallelRoutes,url:n,loading:g.loading},children:R})}function S(e){let{children:t,hasLoading:n,loading:r,loadingStyles:o,loadingScripts:a}=e;return n?(0,u.jsx)(l.Suspense,{fallback:(0,u.jsxs)(u.Fragment,{children:[o,a,r]}),children:t}):(0,u.jsx)(u.Fragment,{children:t})}function E(e){let{parallelRouterKey:t,segmentPath:n,error:r,errorStyles:o,errorScripts:a,templateStyles:c,templateScripts:s,template:d,notFound:p,notFoundStyles:b,styles:m}=e,P=(0,l.useContext)(i.LayoutRouterContext);if(!P)throw Error("invariant expected layout router to be mounted");let{childNodes:R,tree:E,url:w,loading:T}=P,M=R.get(t);M||(M=new Map,R.set(t,M));let x=E[1][t][0],C=(0,v.getSegmentValue)(x),A=[x];return(0,u.jsxs)(u.Fragment,{children:[m,A.map(e=>{let l=(0,v.getSegmentValue)(e),m=(0,g.createRouterCacheKey)(e);return(0,u.jsxs)(i.TemplateContext.Provider,{value:(0,u.jsx)(j,{segmentPath:n,children:(0,u.jsx)(f.ErrorBoundary,{errorComponent:r,errorStyles:o,errorScripts:a,children:(0,u.jsx)(S,{hasLoading:!!T,loading:null==T?void 0:T[0],loadingStyles:null==T?void 0:T[1],loadingScripts:null==T?void 0:T[2],children:(0,u.jsx)(y.NotFoundBoundary,{notFound:p,notFoundStyles:b,children:(0,u.jsx)(h.RedirectBoundary,{children:(0,u.jsx)(O,{parallelRouterKey:t,url:w,tree:E,childNodes:M,segmentPath:n,cacheKey:m,isActive:C===l})})})})})}),children:[c,s,d]},(0,g.createRouterCacheKey)(e,!0))})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6237:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{canSegmentBeOverridden:function(){return u},matchSegment:function(){return o}});let r=n(4286),o=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1],u=(e,t)=>{var n;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(n=(0,r.getSegmentParam)(e))?void 0:n.param)===t[0]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1169:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return i.ReadonlyURLSearchParams},RedirectType:function(){return i.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},notFound:function(){return i.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect},useParams:function(){return p},usePathname:function(){return f},useRouter:function(){return d},useSearchParams:function(){return s},useSelectedLayoutSegment:function(){return y},useSelectedLayoutSegments:function(){return h},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let r=n(2265),o=n(4467),u=n(8056),l=n(4640),a=n(0),i=n(2152),c=n(8005);function s(){let e=(0,r.useContext)(u.SearchParamsContext),t=(0,r.useMemo)(()=>e?new i.ReadonlyURLSearchParams(e):null,[e]);if("undefined"==typeof window){let{bailoutToClientRendering:e}=n(4804);e("useSearchParams()")}return t}function f(){return(0,r.useContext)(u.PathnameContext)}function d(){let e=(0,r.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function p(){return(0,r.useContext)(u.PathParamsContext)}function h(e){void 0===e&&(e="children");let t=(0,r.useContext)(o.LayoutRouterContext);return t?function e(t,n,r,o){let u;if(void 0===r&&(r=!0),void 0===o&&(o=[]),r)u=t[1][n];else{var i;let e=t[1];u=null!=(i=e.children)?i:Object.values(e)[0]}if(!u)return o;let c=u[0],s=(0,l.getSegmentValue)(c);return!s||s.startsWith(a.PAGE_SEGMENT_KEY)?o:(o.push(s),e(u,n,!1,o))}(t.tree,e):null}function y(e){void 0===e&&(e="children");let t=h(e);if(!t||0===t.length)return null;let n="children"===e?t[0]:t[t.length-1];return n===a.DEFAULT_SEGMENT_KEY?null:n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2152:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return l},RedirectType:function(){return r.RedirectType},notFound:function(){return o.notFound},permanentRedirect:function(){return r.permanentRedirect},redirect:function(){return r.redirect}});let r=n(7909),o=n(2496);class u extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class l extends URLSearchParams{append(){throw new u}delete(){throw new u}set(){throw new u}sort(){throw new u}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5324:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NotFoundBoundary",{enumerable:!0,get:function(){return s}});let r=n(1452),o=n(2281),u=r._(n(2265)),l=n(1169),a=n(2496);n(2301);let i=n(4467);class c extends u.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,a.isNotFoundError)(e))return{notFoundTriggered:!0};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.notFoundTriggered?{notFoundTriggered:!1,previousPathname:e.pathname}:{notFoundTriggered:t.notFoundTriggered,previousPathname:e.pathname}}render(){return this.state.notFoundTriggered?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("meta",{name:"robots",content:"noindex"}),!1,this.props.notFoundStyles,this.props.notFound]}):this.props.children}constructor(e){super(e),this.state={notFoundTriggered:!!e.asNotFound,previousPathname:e.pathname}}}function s(e){let{notFound:t,notFoundStyles:n,asNotFound:r,children:a}=e,s=(0,l.usePathname)(),f=(0,u.useContext)(i.MissingSlotContext);return t?(0,o.jsx)(c,{pathname:s,notFound:t,notFoundStyles:n,asNotFound:r,missingSlots:f,children:a}):(0,o.jsx)(o.Fragment,{children:a})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2496:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isNotFoundError:function(){return o},notFound:function(){return r}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3858:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return c}});let r=n(3449),o=n(7614);var u=o._("_maxConcurrency"),l=o._("_runningCount"),a=o._("_queue"),i=o._("_processNext");class c{enqueue(e){let t,n;let o=new Promise((e,r)=>{t=e,n=r}),u=async()=>{try{r._(this,l)[l]++;let n=await e();t(n)}catch(e){n(e)}finally{r._(this,l)[l]--,r._(this,i)[i]()}};return r._(this,a)[a].push({promiseFn:o,task:u}),r._(this,i)[i](),o}bump(e){let t=r._(this,a)[a].findIndex(t=>t.promiseFn===e);if(t>-1){let e=r._(this,a)[a].splice(t,1)[0];r._(this,a)[a].unshift(e),r._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:s}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),r._(this,u)[u]=e,r._(this,l)[l]=0,r._(this,a)[a]=[]}}function s(e){if(void 0===e&&(e=!1),(r._(this,l)[l]0){var t;null==(t=r._(this,a)[a].shift())||t.task()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6585:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectBoundary:function(){return s},RedirectErrorBoundary:function(){return c}});let r=n(1452),o=n(2281),u=r._(n(2265)),l=n(1169),a=n(7909);function i(e){let{redirect:t,reset:n,redirectType:r}=e,o=(0,l.useRouter)();return(0,u.useEffect)(()=>{u.default.startTransition(()=>{r===a.RedirectType.push?o.push(t,{}):o.replace(t,{}),n()})},[t,r,n,o]),null}class c extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isRedirectError)(e))return{redirect:(0,a.getURLFromRedirectError)(e),redirectType:(0,a.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,o.jsx)(i,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function s(e){let{children:t}=e,n=(0,l.useRouter)();return(0,o.jsx)(c,{router:n,children:t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4785:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),(r=n||(n={}))[r.SeeOther=303]="SeeOther",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7909:function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return c},getRedirectStatusCodeFromError:function(){return y},getRedirectTypeFromError:function(){return h},getURLFromRedirectError:function(){return p},isRedirectError:function(){return d},permanentRedirect:function(){return f},redirect:function(){return s}});let u=n(8512),l=n(9440),a=n(4785),i="NEXT_REDIRECT";function c(e,t,n){void 0===n&&(n=a.RedirectStatusCode.TemporaryRedirect);let r=Error(i);r.digest=i+";"+t+";"+e+";"+n+";";let o=u.requestAsyncStorage.getStore();return o&&(r.mutableCookies=o.mutableCookies),r}function s(e,t){void 0===t&&(t="replace");let n=l.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.TemporaryRedirect)}function f(e,t){void 0===t&&(t="replace");let n=l.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.PermanentRedirect)}function d(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,n,r,o]=e.digest.split(";",4),u=Number(o);return t===i&&("replace"===n||"push"===n)&&"string"==typeof r&&!isNaN(u)&&u in a.RedirectStatusCode}function p(e){return d(e)?e.digest.split(";",3)[2]:null}function h(e){if(!d(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function y(e){if(!d(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(o=r||(r={})).push="push",o.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1343:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(1452),o=n(2281),u=r._(n(2265)),l=n(4467);function a(){let e=(0,u.useContext)(l.TemplateContext);return(0,o.jsx)(o.Fragment,{children:e})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8512:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getExpectedRequestStore:function(){return o},requestAsyncStorage:function(){return r.requestAsyncStorage}});let r=n(38);function o(e){let t=r.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9607:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return u}});let r=n(3821),o=n(1133);function u(e,t,n,u){let[l,a,i]=n.slice(-3);if(null===a)return!1;if(3===n.length){let n=a[2],o=a[3];t.loading=o,t.rsc=n,t.prefetchRsc=null,(0,r.fillLazyItemsTillLeafWithHead)(t,e,l,a,i,u)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),t.loading=e.loading,(0,o.fillCacheWithNewSubTreeData)(t,e,n,u);return!0}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9684:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return function e(t,n,r,a){let i;let[c,s,f,d,p]=n;if(1===t.length){let e=l(n,r,t);return(0,u.addRefreshMarkerToActiveParallelSegments)(e,a),e}let[h,y]=t;if(!(0,o.matchSegment)(h,c))return null;if(2===t.length)i=l(s[y],r,t);else if(null===(i=e(t.slice(2),s[y],r,a)))return null;let v=[t[0],{...s,[y]:i},f,d];return p&&(v[4]=!0),(0,u.addRefreshMarkerToActiveParallelSegments)(v,a),v}}});let r=n(0),o=n(6237),u=n(4922);function l(e,t,n){let[u,a]=e,[i,c]=t;if(i===r.DEFAULT_SEGMENT_KEY&&u!==r.DEFAULT_SEGMENT_KEY)return e;if((0,o.matchSegment)(u,i)){let t={};for(let e in a)void 0!==c[e]?t[e]=l(a[e],c[e],n):t[e]=a[e];for(let e in c)t[e]||(t[e]=c[e]);let r=[u,t];return e[2]&&(r[2]=e[2]),e[3]&&(r[3]=e[3]),e[4]&&(r[4]=e[4]),r}return t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9559:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clearCacheNodeDataForSegmentPath",{enumerable:!0,get:function(){return function e(t,n,o){let u=o.length<=2,[l,a]=o,i=(0,r.createRouterCacheKey)(a),c=n.parallelRoutes.get(l),s=t.parallelRoutes.get(l);s&&s!==c||(s=new Map(c),t.parallelRoutes.set(l,s));let f=null==c?void 0:c.get(i),d=s.get(i);if(u){d&&d.lazyData&&d!==f||s.set(i,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}if(!d||!f){d||s.set(i,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}return d===f&&(d={lazyData:d.lazyData,rsc:d.rsc,prefetchRsc:d.prefetchRsc,head:d.head,prefetchHead:d.prefetchHead,parallelRoutes:new Map(d.parallelRoutes),lazyDataResolved:d.lazyDataResolved,loading:d.loading},s.set(i,d)),e(d,f,o.slice(2))}}});let r=n(1784);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6626:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{computeChangedPath:function(){return s},extractPathFromFlightRouterState:function(){return c}});let r=n(2269),o=n(0),u=n(6237),l=e=>"/"===e[0]?e.slice(1):e,a=e=>"string"==typeof e?"children"===e?"":e:e[1];function i(e){return e.reduce((e,t)=>""===(t=l(t))||(0,o.isGroupSegment)(t)?e:e+"/"+t,"")||"/"}function c(e){var t;let n=Array.isArray(e[0])?e[0][1]:e[0];if(n===o.DEFAULT_SEGMENT_KEY||r.INTERCEPTION_ROUTE_MARKERS.some(e=>n.startsWith(e)))return;if(n.startsWith(o.PAGE_SEGMENT_KEY))return"";let u=[a(n)],l=null!=(t=e[1])?t:{},s=l.children?c(l.children):void 0;if(void 0!==s)u.push(s);else for(let[e,t]of Object.entries(l)){if("children"===e)continue;let n=c(t);void 0!==n&&u.push(n)}return i(u)}function s(e,t){let n=function e(t,n){let[o,l]=t,[i,s]=n,f=a(o),d=a(i);if(r.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)||d.startsWith(e)))return"";if(!(0,u.matchSegment)(o,i)){var p;return null!=(p=c(n))?p:""}for(let t in l)if(s[t]){let n=e(l[t],s[t]);if(null!==n)return a(i)+"/"+n}return null}(e,t);return null==n||"/"===n?n:i(n.split("/"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3174:function(e,t){"use strict";function n(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},322:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return c}});let r=n(3174),o=n(3821),u=n(6626),l=n(6004),a=n(1507),i=n(4922);function c(e){var t;let{buildId:n,initialTree:c,initialSeedData:s,initialCanonicalUrl:f,initialParallelRoutes:d,location:p,initialHead:h,couldBeIntercepted:y}=e,v=!p,g={lazyData:null,rsc:s[2],prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:v?new Map:d,lazyDataResolved:!1,loading:s[3]},b=p?(0,r.createHrefFromUrl)(p):f;(0,i.addRefreshMarkerToActiveParallelSegments)(c,b);let m=new Map;(null===d||0===d.size)&&(0,o.fillLazyItemsTillLeafWithHead)(g,void 0,c,s,h);let P={buildId:n,tree:c,cache:g,prefetchCache:m,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:b,nextUrl:null!=(t=(0,u.extractPathFromFlightRouterState)(c)||(null==p?void 0:p.pathname))?t:null};if(p){let e=new URL(p.pathname,p.origin),t=[["",c,null,null]];(0,l.createPrefetchCacheEntryForInitialLoad)({url:e,kind:a.PrefetchKind.AUTO,data:[t,void 0,!1,y],tree:P.tree,prefetchCache:P.prefetchCache,nextUrl:P.nextUrl})}return P}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1784:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return o}});let r=n(0);function o(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?e[0]+"|"+e[1]+"|"+e[2]:t&&e.startsWith(r.PAGE_SEGMENT_KEY)?r.PAGE_SEGMENT_KEY:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1283:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fetchServerResponse",{enumerable:!0,get:function(){return s}});let r=n(7325),o=n(5751),u=n(4590),l=n(1507),a=n(4736),{createFromFetch:i}=n(6671);function c(e){return[(0,o.urlToUrlWithoutFlightMarker)(e).toString(),void 0,!1,!1]}async function s(e,t,n,s,f){let d={[r.RSC_HEADER]:"1",[r.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(t))};f===l.PrefetchKind.AUTO&&(d[r.NEXT_ROUTER_PREFETCH_HEADER]="1"),n&&(d[r.NEXT_URL]=n);let p=(0,a.hexHash)([d[r.NEXT_ROUTER_PREFETCH_HEADER]||"0",d[r.NEXT_ROUTER_STATE_TREE],d[r.NEXT_URL]].join(","));try{var h;let t=new URL(e);t.pathname.endsWith("/")?t.pathname+="index.txt":t.pathname+=".txt",t.searchParams.set(r.NEXT_RSC_UNION_QUERY,p);let n=await fetch(t,{credentials:"same-origin",headers:d}),l=(0,o.urlToUrlWithoutFlightMarker)(n.url),a=n.redirected?l:void 0,f=n.headers.get("content-type")||"",y=!!n.headers.get(r.NEXT_DID_POSTPONE_HEADER),v=!!(null==(h=n.headers.get("vary"))?void 0:h.includes(r.NEXT_URL)),g=f===r.RSC_CONTENT_TYPE_HEADER;if(g||(g=f.startsWith("text/plain")),!g||!n.ok)return e.hash&&(l.hash=e.hash),c(l.toString());let[b,m]=await i(Promise.resolve(n),{callServer:u.callServer});if(s!==b)return c(n.url);return[m,a,y,v]}catch(t){return console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),[e.toString(),void 0,!1,!1]}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1133:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithNewSubTreeData",{enumerable:!0,get:function(){return function e(t,n,l,a){let i=l.length<=5,[c,s]=l,f=(0,u.createRouterCacheKey)(s),d=n.parallelRoutes.get(c);if(!d)return;let p=t.parallelRoutes.get(c);p&&p!==d||(p=new Map(d),t.parallelRoutes.set(c,p));let h=d.get(f),y=p.get(f);if(i){if(!y||!y.lazyData||y===h){let e=l[3];y={lazyData:null,rsc:e[2],prefetchRsc:null,head:null,prefetchHead:null,loading:e[3],parallelRoutes:h?new Map(h.parallelRoutes):new Map,lazyDataResolved:!1},h&&(0,r.invalidateCacheByRouterState)(y,h,l[2]),(0,o.fillLazyItemsTillLeafWithHead)(y,h,l[2],e,l[4],a),p.set(f,y)}return}y&&h&&(y===h&&(y={lazyData:y.lazyData,rsc:y.rsc,prefetchRsc:y.prefetchRsc,head:y.head,prefetchHead:y.prefetchHead,parallelRoutes:new Map(y.parallelRoutes),lazyDataResolved:!1,loading:y.loading},p.set(f,y)),e(y,h,l.slice(2),a))}}});let r=n(4213),o=n(3821),u=n(1784);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3821:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,n,u,l,a,i){if(0===Object.keys(u[1]).length){t.head=a;return}for(let c in u[1]){let s;let f=u[1][c],d=f[0],p=(0,r.createRouterCacheKey)(d),h=null!==l&&void 0!==l[1][c]?l[1][c]:null;if(n){let r=n.parallelRoutes.get(c);if(r){let n;let u=(null==i?void 0:i.kind)==="auto"&&i.status===o.PrefetchCacheEntryStatus.reusable,l=new Map(r),s=l.get(p);n=null!==h?{lazyData:null,rsc:h[2],prefetchRsc:null,head:null,prefetchHead:null,loading:h[3],parallelRoutes:new Map(null==s?void 0:s.parallelRoutes),lazyDataResolved:!1}:u&&s?{lazyData:s.lazyData,rsc:s.rsc,prefetchRsc:s.prefetchRsc,head:s.head,prefetchHead:s.prefetchHead,parallelRoutes:new Map(s.parallelRoutes),lazyDataResolved:s.lazyDataResolved,loading:s.loading}:{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map(null==s?void 0:s.parallelRoutes),lazyDataResolved:!1,loading:null},l.set(p,n),e(n,s,f,h||null,a,i),t.parallelRoutes.set(c,l);continue}}if(null!==h){let e=h[2],t=h[3];s={lazyData:null,rsc:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:t}}else s={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};let y=t.parallelRoutes.get(c);y?y.set(p,s):t.parallelRoutes.set(c,new Map([[p,s]])),e(s,void 0,f,h,a,i)}}}});let r=n(1784),o=n(1507);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6416:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleMutable",{enumerable:!0,get:function(){return u}});let r=n(6626);function o(e){return void 0!==e}function u(e,t){var n,u,l;let a=null==(u=t.shouldScroll)||u,i=e.nextUrl;if(o(t.patchedTree)){let n=(0,r.computeChangedPath)(e.tree,t.patchedTree);n?i=n:i||(i=e.canonicalUrl)}return{buildId:e.buildId,canonicalUrl:o(t.canonicalUrl)?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:o(t.pendingPush)?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:o(t.mpaNavigation)?t.mpaNavigation:e.pushRef.mpaNavigation,preserveCustomHistoryState:o(t.preserveCustomHistoryState)?t.preserveCustomHistoryState:e.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!a&&(!!o(null==t?void 0:t.scrollableSegments)||e.focusAndScrollRef.apply),onlyHashChange:!!t.hashFragment&&e.canonicalUrl.split("#",1)[0]===(null==(n=t.canonicalUrl)?void 0:n.split("#",1)[0]),hashFragment:a?t.hashFragment&&""!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:a?null!=(l=null==t?void 0:t.scrollableSegments)?l:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:o(t.patchedTree)?t.patchedTree:e.tree,nextUrl:i}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},774:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSegmentMismatch",{enumerable:!0,get:function(){return o}});let r=n(1294);function o(e,t,n){return(0,r.handleExternalUrl)(e,{},e.canonicalUrl,!0)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9863:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function e(t,n,o){let u=o.length<=2,[l,a]=o,i=(0,r.createRouterCacheKey)(a),c=n.parallelRoutes.get(l);if(!c)return;let s=t.parallelRoutes.get(l);if(s&&s!==c||(s=new Map(c),t.parallelRoutes.set(l,s)),u){s.delete(i);return}let f=c.get(i),d=s.get(i);d&&f&&(d===f&&(d={lazyData:d.lazyData,rsc:d.rsc,prefetchRsc:d.prefetchRsc,head:d.head,prefetchHead:d.prefetchHead,parallelRoutes:new Map(d.parallelRoutes),lazyDataResolved:d.lazyDataResolved},s.set(i,d)),e(d,f,o.slice(2)))}}});let r=n(1784);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4213:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return o}});let r=n(1784);function o(e,t,n){for(let o in n[1]){let u=n[1][o][0],l=(0,r.createRouterCacheKey)(u),a=t.parallelRoutes.get(o);if(a){let t=new Map(a);t.delete(l),e.parallelRoutes.set(o,t)}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},139:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,n){let r=t[0],o=n[0];if(Array.isArray(r)&&Array.isArray(o)){if(r[0]!==o[0]||r[2]!==o[2])return!0}else if(r!==o)return!0;if(t[4])return!n[4];if(n[4])return!0;let u=Object.values(t[1])[0],l=Object.values(n[1])[0];return!u||!l||e(u,l)}}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3060:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{abortTask:function(){return c},listenForDynamicRequest:function(){return a},updateCacheNodeOnNavigation:function(){return function e(t,n,a,c,s){let f=n[1],d=a[1],p=c[1],h=t.parallelRoutes,y=new Map(h),v={},g=null;for(let t in d){let n;let a=d[t],c=f[t],b=h.get(t),m=p[t],P=a[0],R=(0,u.createRouterCacheKey)(P),j=void 0!==c?c[0]:void 0,O=void 0!==b?b.get(R):void 0;if(null!==(n=P===r.PAGE_SEGMENT_KEY?l(a,void 0!==m?m:null,s):P===r.DEFAULT_SEGMENT_KEY?void 0!==c?{route:c,node:null,children:null}:l(a,void 0!==m?m:null,s):void 0!==j&&(0,o.matchSegment)(P,j)&&void 0!==O&&void 0!==c?null!=m?e(O,c,a,m,s):function(e){let t=i(e,null,null);return{route:e,node:t,children:null}}(a):l(a,void 0!==m?m:null,s))){null===g&&(g=new Map),g.set(t,n);let e=n.node;if(null!==e){let n=new Map(b);n.set(R,e),y.set(t,n)}v[t]=n.route}else v[t]=a}if(null===g)return null;let b={lazyData:null,rsc:t.rsc,prefetchRsc:t.prefetchRsc,head:t.head,prefetchHead:t.prefetchHead,loading:t.loading,parallelRoutes:y,lazyDataResolved:!1};return{route:function(e,t){let n=[e[0],t];return 2 in e&&(n[2]=e[2]),3 in e&&(n[3]=e[3]),4 in e&&(n[4]=e[4]),n}(a,v),node:b,children:g}}},updateCacheNodeOnPopstateRestoration:function(){return function e(t,n){let r=n[1],o=t.parallelRoutes,l=new Map(o);for(let t in r){let n=r[t],a=n[0],i=(0,u.createRouterCacheKey)(a),c=o.get(t);if(void 0!==c){let r=c.get(i);if(void 0!==r){let o=e(r,n),u=new Map(c);u.set(i,o),l.set(t,u)}}}let a=t.rsc,i=d(a)&&"pending"===a.status;return{lazyData:null,rsc:a,head:t.head,prefetchHead:i?t.prefetchHead:null,prefetchRsc:i?t.prefetchRsc:null,loading:i?t.loading:null,parallelRoutes:l,lazyDataResolved:!1}}}});let r=n(0),o=n(6237),u=n(1784);function l(e,t,n){let r=i(e,t,n);return{route:e,node:r,children:null}}function a(e,t){t.then(t=>{for(let n of t[0]){let t=n.slice(0,-3),r=n[n.length-3],l=n[n.length-2],a=n[n.length-1];"string"!=typeof t&&function(e,t,n,r,l){let a=e;for(let e=0;e{c(e,t)})}function i(e,t,n){let r=e[1],o=null!==t?t[1]:null,l=new Map;for(let e in r){let t=r[e],a=null!==o?o[e]:null,c=t[0],s=(0,u.createRouterCacheKey)(c),f=i(t,void 0===a?null:a,n),d=new Map;d.set(s,f),l.set(e,d)}let a=0===l.size,c=null!==t?t[2]:null,s=null!==t?t[3]:null;return{lazyData:null,parallelRoutes:l,prefetchRsc:void 0!==c?c:null,prefetchHead:a?n:null,loading:void 0!==s?s:null,rsc:p(),head:a?p():null,lazyDataResolved:!1}}function c(e,t){let n=e.node;if(null===n)return;let r=e.children;if(null===r)s(e.route,n,t);else for(let e of r.values())c(e,t);e.node=null}function s(e,t,n){let r=e[1],o=t.parallelRoutes;for(let e in r){let t=r[e],l=o.get(e);if(void 0===l)continue;let a=t[0],i=(0,u.createRouterCacheKey)(a),c=l.get(i);void 0!==c&&s(t,c,n)}let l=t.rsc;d(l)&&(null===n?l.resolve(null):l.reject(n));let a=t.head;d(a)&&a.resolve(null)}let f=Symbol();function d(e){return e&&e.tag===f}function p(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});return n.status="pending",n.resolve=t=>{"pending"===n.status&&(n.status="fulfilled",n.value=t,e(t))},n.reject=e=>{"pending"===n.status&&(n.status="rejected",n.reason=e,t(e))},n.tag=f,n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6004:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createPrefetchCacheEntryForInitialLoad:function(){return c},getOrCreatePrefetchCacheEntry:function(){return i},prunePrefetchCache:function(){return f}});let r=n(3174),o=n(1283),u=n(1507),l=n(9218);function a(e,t){let n=(0,r.createHrefFromUrl)(e,!1);return t?t+"%"+n:n}function i(e){let t,{url:n,nextUrl:r,tree:o,buildId:l,prefetchCache:i,kind:c}=e,f=a(n,r),d=i.get(f);if(d)t=d;else{let e=a(n),r=i.get(e);r&&(t=r)}return t?(t.status=h(t),t.kind!==u.PrefetchKind.FULL&&c===u.PrefetchKind.FULL)?s({tree:o,url:n,buildId:l,nextUrl:r,prefetchCache:i,kind:null!=c?c:u.PrefetchKind.TEMPORARY}):(c&&t.kind===u.PrefetchKind.TEMPORARY&&(t.kind=c),t):s({tree:o,url:n,buildId:l,nextUrl:r,prefetchCache:i,kind:c||u.PrefetchKind.TEMPORARY})}function c(e){let{nextUrl:t,tree:n,prefetchCache:r,url:o,kind:l,data:i}=e,[,,,c]=i,s=c?a(o,t):a(o),f={treeAtTimeOfPrefetch:n,data:Promise.resolve(i),kind:l,prefetchTime:Date.now(),lastUsedTime:Date.now(),key:s,status:u.PrefetchCacheEntryStatus.fresh};return r.set(s,f),f}function s(e){let{url:t,kind:n,tree:r,nextUrl:i,buildId:c,prefetchCache:s}=e,f=a(t),d=l.prefetchQueue.enqueue(()=>(0,o.fetchServerResponse)(t,r,i,c,n).then(e=>{let[,,,n]=e;return n&&function(e){let{url:t,nextUrl:n,prefetchCache:r}=e,o=a(t),u=r.get(o);if(!u)return;let l=a(t,n);r.set(l,u),r.delete(o)}({url:t,nextUrl:i,prefetchCache:s}),e})),p={treeAtTimeOfPrefetch:r,data:d,kind:n,prefetchTime:Date.now(),lastUsedTime:null,key:f,status:u.PrefetchCacheEntryStatus.fresh};return s.set(f,p),p}function f(e){for(let[t,n]of e)h(n)===u.PrefetchCacheEntryStatus.expired&&e.delete(t)}let d=1e3*Number("30"),p=1e3*Number("300");function h(e){let{kind:t,prefetchTime:n,lastUsedTime:r}=e;return Date.now()<(null!=r?r:n)+d?r?u.PrefetchCacheEntryStatus.reusable:u.PrefetchCacheEntryStatus.fresh:"auto"===t&&Date.now(){let[n,f]=t,h=!1;if(E.lastUsedTime||(E.lastUsedTime=Date.now(),h=!0),"string"==typeof n)return v(e,R,n,S);if(document.getElementById("__next-page-redirect"))return v(e,R,O,S);let b=e.tree,m=e.cache,T=[];for(let t of n){let n=t.slice(0,-4),r=t.slice(-3)[0],c=["",...n],f=(0,u.applyRouterStatePatchToTree)(c,b,r,O);if(null===f&&(f=(0,u.applyRouterStatePatchToTree)(c,w,r,O)),null!==f){if((0,a.isNavigatingToNewRootLayout)(b,f))return v(e,R,O,S);let u=(0,d.createEmptyCacheNode)(),P=!1;for(let e of(E.status!==i.PrefetchCacheEntryStatus.stale||h?P=(0,s.applyFlightData)(m,u,t,E):(P=function(e,t,n,r){let o=!1;for(let u of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.loading=t.loading,e.parallelRoutes=new Map(t.parallelRoutes),g(r).map(e=>[...n,...e])))(0,y.clearCacheNodeDataForSegmentPath)(e,t,u),o=!0;return o}(u,m,n,r),E.lastUsedTime=Date.now()),(0,l.shouldHardNavigate)(c,b)?(u.rsc=m.rsc,u.prefetchRsc=m.prefetchRsc,(0,o.invalidateCacheBelowFlightSegmentPath)(u,m,n),R.cache=u):P&&(R.cache=u,m=u),b=f,g(r))){let t=[...n,...e];t[t.length-1]!==p.DEFAULT_SEGMENT_KEY&&T.push(t)}}}return R.patchedTree=b,R.canonicalUrl=f?(0,r.createHrefFromUrl)(f):O,R.pendingPush=S,R.scrollableSegments=T,R.hashFragment=j,R.shouldScroll=P,(0,c.handleMutable)(e,R)},()=>e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9218:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{prefetchQueue:function(){return l},prefetchReducer:function(){return a}});let r=n(7325),o=n(3858),u=n(6004),l=new o.PromiseQueue(5);function a(e,t){(0,u.prunePrefetchCache)(e.prefetchCache);let{url:n}=t;return n.searchParams.delete(r.NEXT_RSC_UNION_QUERY),(0,u.getOrCreatePrefetchCacheEntry)({url:n,nextUrl:e.nextUrl,prefetchCache:e.prefetchCache,kind:t.kind,tree:e.tree,buildId:e.buildId}),e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5239:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return h}});let r=n(1283),o=n(3174),u=n(9684),l=n(139),a=n(1294),i=n(6416),c=n(3821),s=n(5751),f=n(774),d=n(5914),p=n(4922);function h(e,t){let{origin:n}=t,h={},y=e.canonicalUrl,v=e.tree;h.preserveCustomHistoryState=!1;let g=(0,s.createEmptyCacheNode)(),b=(0,d.hasInterceptionRouteInCurrentTree)(e.tree);return g.lazyData=(0,r.fetchServerResponse)(new URL(y,n),[v[0],v[1],v[2],"refetch"],b?e.nextUrl:null,e.buildId),g.lazyData.then(async n=>{let[r,s]=n;if("string"==typeof r)return(0,a.handleExternalUrl)(e,h,r,e.pushRef.pendingPush);for(let n of(g.lazyData=null,r)){if(3!==n.length)return console.log("REFRESH FAILED"),e;let[r]=n,i=(0,u.applyRouterStatePatchToTree)([""],v,r,e.canonicalUrl);if(null===i)return(0,f.handleSegmentMismatch)(e,t,r);if((0,l.isNavigatingToNewRootLayout)(v,i))return(0,a.handleExternalUrl)(e,h,y,e.pushRef.pendingPush);let d=s?(0,o.createHrefFromUrl)(s):void 0;s&&(h.canonicalUrl=d);let[m,P]=n.slice(-2);if(null!==m){let e=m[2];g.rsc=e,g.prefetchRsc=null,(0,c.fillLazyItemsTillLeafWithHead)(g,void 0,r,m,P),h.prefetchCache=new Map}await (0,p.refreshInactiveParallelSegments)({state:e,updatedTree:i,updatedCache:g,includeNextUrl:b,canonicalUrl:h.canonicalUrl||e.canonicalUrl}),h.cache=g,h.patchedTree=i,h.canonicalUrl=y,v=i}return(0,i.handleMutable)(e,h)},()=>e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6131:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return u}});let r=n(3174),o=n(6626);function u(e,t){var n;let{url:u,tree:l}=t,a=(0,r.createHrefFromUrl)(u),i=l||e.tree,c=e.cache;return{buildId:e.buildId,canonicalUrl:a,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:c,prefetchCache:e.prefetchCache,tree:i,nextUrl:null!=(n=(0,o.extractPathFromFlightRouterState)(i))?n:u.pathname}}n(3060),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4549:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return m}});let r=n(4590),o=n(7325),u=n(4897),l=n(3174),a=n(1294),i=n(9684),c=n(139),s=n(6416),f=n(3821),d=n(5751),p=n(5914),h=n(774),y=n(4922),{createFromFetch:v,encodeReply:g}=n(6671);async function b(e,t,n){let l,{actionId:a,actionArgs:i}=n,c=await g(i),s=await fetch("",{method:"POST",headers:{Accept:o.RSC_CONTENT_TYPE_HEADER,[o.ACTION]:a,[o.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(e.tree)),...t?{[o.NEXT_URL]:t}:{}},body:c}),f=s.headers.get("x-action-redirect");try{let e=JSON.parse(s.headers.get("x-action-revalidated")||"[[],0,0]");l={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){l={paths:[],tag:!1,cookie:!1}}let d=f?new URL((0,u.addBasePath)(f),new URL(e.canonicalUrl,window.location.href)):void 0;if(s.headers.get("content-type")===o.RSC_CONTENT_TYPE_HEADER){let e=await v(Promise.resolve(s),{callServer:r.callServer});if(f){let[,t]=null!=e?e:[];return{actionFlightData:t,redirectLocation:d,revalidatedParts:l}}let[t,[,n]]=null!=e?e:[];return{actionResult:t,actionFlightData:n,redirectLocation:d,revalidatedParts:l}}return{redirectLocation:d,revalidatedParts:l}}function m(e,t){let{resolve:n,reject:r}=t,o={},u=e.canonicalUrl,v=e.tree;o.preserveCustomHistoryState=!1;let g=e.nextUrl&&(0,p.hasInterceptionRouteInCurrentTree)(e.tree)?e.nextUrl:null;return o.inFlightServerAction=b(e,g,t),o.inFlightServerAction.then(async r=>{let{actionResult:p,actionFlightData:b,redirectLocation:m}=r;if(m&&(e.pushRef.pendingPush=!0,o.pendingPush=!0),!b)return(n(p),m)?(0,a.handleExternalUrl)(e,o,m.href,e.pushRef.pendingPush):e;if("string"==typeof b)return(0,a.handleExternalUrl)(e,o,b,e.pushRef.pendingPush);if(o.inFlightServerAction=null,m){let e=(0,l.createHrefFromUrl)(m,!1);o.canonicalUrl=e}for(let n of b){if(3!==n.length)return console.log("SERVER ACTION APPLY FAILED"),e;let[r]=n,s=(0,i.applyRouterStatePatchToTree)([""],v,r,m?(0,l.createHrefFromUrl)(m):e.canonicalUrl);if(null===s)return(0,h.handleSegmentMismatch)(e,t,r);if((0,c.isNavigatingToNewRootLayout)(v,s))return(0,a.handleExternalUrl)(e,o,u,e.pushRef.pendingPush);let[p,b]=n.slice(-2),P=null!==p?p[2]:null;if(null!==P){let t=(0,d.createEmptyCacheNode)();t.rsc=P,t.prefetchRsc=null,(0,f.fillLazyItemsTillLeafWithHead)(t,void 0,r,p,b),await (0,y.refreshInactiveParallelSegments)({state:e,updatedTree:s,updatedCache:t,includeNextUrl:!!g,canonicalUrl:o.canonicalUrl||e.canonicalUrl}),o.cache=t,o.prefetchCache=new Map}o.patchedTree=s,v=s}return n(p),(0,s.handleMutable)(e,o)},t=>(r(t),e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8289:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return f}});let r=n(3174),o=n(9684),u=n(139),l=n(1294),a=n(9607),i=n(6416),c=n(5751),s=n(774);function f(e,t){let{serverResponse:n}=t,[f,d]=n,p={};if(p.preserveCustomHistoryState=!1,"string"==typeof f)return(0,l.handleExternalUrl)(e,p,f,e.pushRef.pendingPush);let h=e.tree,y=e.cache;for(let n of f){let i=n.slice(0,-4),[f]=n.slice(-3,-2),v=(0,o.applyRouterStatePatchToTree)(["",...i],h,f,e.canonicalUrl);if(null===v)return(0,s.handleSegmentMismatch)(e,t,f);if((0,u.isNavigatingToNewRootLayout)(h,v))return(0,l.handleExternalUrl)(e,p,e.canonicalUrl,e.pushRef.pendingPush);let g=d?(0,r.createHrefFromUrl)(d):void 0;g&&(p.canonicalUrl=g);let b=(0,c.createEmptyCacheNode)();(0,a.applyFlightData)(y,b,n),p.patchedTree=v,p.cache=b,y=b,h=v}return(0,i.handleMutable)(e,p)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4922:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{addRefreshMarkerToActiveParallelSegments:function(){return function e(t,n){let[r,o,,l]=t;for(let a in r.includes(u.PAGE_SEGMENT_KEY)&&"refresh"!==l&&(t[2]=n,t[3]="refresh"),o)e(o[a],n)}},refreshInactiveParallelSegments:function(){return l}});let r=n(9607),o=n(1283),u=n(0);async function l(e){let t=new Set;await a({...e,rootTree:e.updatedTree,fetchedSegments:t})}async function a(e){let{state:t,updatedTree:n,updatedCache:u,includeNextUrl:l,fetchedSegments:i,rootTree:c=n,canonicalUrl:s}=e,[,f,d,p]=n,h=[];if(d&&d!==s&&"refresh"===p&&!i.has(d)){i.add(d);let e=(0,o.fetchServerResponse)(new URL(d,location.origin),[c[0],c[1],c[2],"refetch"],l?t.nextUrl:null,t.buildId).then(e=>{let t=e[0];if("string"!=typeof t)for(let e of t)(0,r.applyFlightData)(u,u,e)});h.push(e)}for(let e in f){let n=a({state:t,updatedTree:f[e],updatedCache:u,includeNextUrl:l,fetchedSegments:i,rootTree:c,canonicalUrl:s});h.push(n)}await Promise.all(h)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1507:function(e,t){"use strict";var n,r,o,u;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return f},ACTION_NAVIGATE:function(){return a},ACTION_PREFETCH:function(){return s},ACTION_REFRESH:function(){return l},ACTION_RESTORE:function(){return i},ACTION_SERVER_ACTION:function(){return d},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return p}});let l="refresh",a="navigate",i="restore",c="server-patch",s="prefetch",f="fast-refresh",d="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(o=n||(n={})).AUTO="auto",o.FULL="full",o.TEMPORARY="temporary",(u=r||(r={})).fresh="fresh",u.reusable="reusable",u.expired="expired",u.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},643:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return f}});let r=n(1507),o=n(1294),u=n(8289),l=n(6131),a=n(5239),i=n(9218),c=n(1129),s=n(4549),f="undefined"==typeof window?function(e,t){return e}:function(e,t){switch(t.type){case r.ACTION_NAVIGATE:return(0,o.navigateReducer)(e,t);case r.ACTION_SERVER_PATCH:return(0,u.serverPatchReducer)(e,t);case r.ACTION_RESTORE:return(0,l.restoreReducer)(e,t);case r.ACTION_REFRESH:return(0,a.refreshReducer)(e,t);case r.ACTION_FAST_REFRESH:return(0,c.fastRefreshReducer)(e,t);case r.ACTION_PREFETCH:return(0,i.prefetchReducer)(e,t);case r.ACTION_SERVER_ACTION:return(0,s.serverActionReducer)(e,t);default:throw Error("Unknown action")}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4740:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,n){let[o,u]=n,[l,a]=t;return(0,r.matchSegment)(l,o)?!(t.length<=2)&&e(t.slice(2),u[a]):!!Array.isArray(l)}}});let r=n(6237);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8897:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createDynamicallyTrackedSearchParams:function(){return a},createUntrackedSearchParams:function(){return l}});let r=n(4936),o=n(2441),u=n(7991);function l(e){let t=r.staticGenerationAsyncStorage.getStore();return t&&t.forceStatic?{}:e}function a(e){let t=r.staticGenerationAsyncStorage.getStore();return t?t.forceStatic?{}:t.isStaticGeneration||t.dynamicShouldError?new Proxy({},{get:(e,n,r)=>("string"==typeof n&&(0,o.trackDynamicDataAccessed)(t,"searchParams."+n),u.ReflectAdapter.get(e,n,r)),has:(e,n)=>("string"==typeof n&&(0,o.trackDynamicDataAccessed)(t,"searchParams."+n),Reflect.has(e,n)),ownKeys:e=>((0,o.trackDynamicDataAccessed)(t,"searchParams"),Reflect.ownKeys(e))}):e:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4936:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return r.staticGenerationAsyncStorage}});let r=n(7685);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5108:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{StaticGenBailoutError:function(){return r},isStaticGenBailoutError:function(){return o}});let n="NEXT_STATIC_GEN_BAILOUT";class r extends Error{constructor(...e){super(...e),this.code=n}}function o(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1108:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unresolvedThenable",{enumerable:!0,get:function(){return n}});let n={then:()=>{}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2114:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{useReducerWithReduxDevtools:function(){return i},useUnwrapState:function(){return a}});let r=n(1452)._(n(2265)),o=n(1507),u=n(1427);function l(e){if(e instanceof Map){let t={};for(let[n,r]of e.entries()){if("function"==typeof r){t[n]="fn()";continue}if("object"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r._bundlerConfig){t[n]="FlightData";continue}}t[n]=l(r)}return t}if("object"==typeof e&&null!==e){let t={};for(let n in e){let r=e[n];if("function"==typeof r){t[n]="fn()";continue}if("object"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r.hasOwnProperty("_bundlerConfig")){t[n]="FlightData";continue}}t[n]=l(r)}return t}return Array.isArray(e)?e.map(l):e}function a(e){return(0,o.isThenable)(e)?(0,r.use)(e):e}let i="undefined"!=typeof window?function(e){let[t,n]=r.default.useState(e),o=(0,r.useContext)(u.ActionQueueContext);if(!o)throw Error("Invariant: Missing ActionQueueContext");let a=(0,r.useRef)(),i=(0,r.useRef)();return(0,r.useEffect)(()=>{if(!a.current&&!1!==i.current){if(void 0===i.current&&void 0===window.__REDUX_DEVTOOLS_EXTENSION__){i.current=!1;return}return a.current=window.__REDUX_DEVTOOLS_EXTENSION__.connect({instanceId:8e3,name:"next-router"}),a.current&&(a.current.init(l(e)),o&&(o.devToolsInstance=a.current)),()=>{a.current=void 0}}},[e,o]),[t,(0,r.useCallback)(t=>{o.state||(o.state=e),o.dispatch(t,n)},[o,e]),(0,r.useCallback)(e=>{a.current&&a.current.send({type:"RENDER_SYNC"},l(e))},[])]}:function(e){return[e,()=>{},()=>{}]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9404:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let r=n(5121);function o(e){return(0,r.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8157:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return u}});let r=n(7741),o=n(1465),u=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:n,hash:u}=(0,o.parsePath)(e);return""+(0,r.removeTrailingSlash)(t)+n+u};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6124:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(5592);function o(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};(0,r.isBailoutToCSRError)(e)||t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7599:function(e,t,n){"use strict";function r(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return r}}),n(9404),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9176:function(e,t){"use strict";function n(e,t){var n=e.length;for(e.push(t);0>>1,o=e[r];if(0>>1;ru(i,n))cu(s,i)?(e[r]=s,e[c]=n,r=c):(e[r]=i,e[a]=n,r=a);else if(cu(s,n))e[r]=s,e[c]=n,r=c;else break}}return t}function u(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var l,a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,c=i.now();t.unstable_now=function(){return i.now()-c}}var s=[],f=[],d=1,p=null,h=3,y=!1,v=!1,g=!1,b="function"==typeof setTimeout?setTimeout:null,m="function"==typeof clearTimeout?clearTimeout:null,P="undefined"!=typeof setImmediate?setImmediate:null;function R(e){for(var t=r(f);null!==t;){if(null===t.callback)o(f);else if(t.startTime<=e)o(f),t.sortIndex=t.expirationTime,n(s,t);else break;t=r(f)}}function j(e){if(g=!1,R(e),!v){if(null!==r(s))v=!0,A();else{var t=r(f);null!==t&&N(j,t.startTime-e)}}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var O=!1,S=-1,E=5,w=-1;function T(){return!(t.unstable_now()-we&&T());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var i=a(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){p.callback=i,R(e),n=!0;break t}p===r(s)&&o(s),R(e)}else o(s);p=r(s)}if(null!==p)n=!0;else{var c=r(f);null!==c&&N(j,c.startTime-e),n=!1}}break e}finally{p=null,h=u,y=!1}n=void 0}}finally{n?l():O=!1}}}if("function"==typeof P)l=function(){P(M)};else if("undefined"!=typeof MessageChannel){var x=new MessageChannel,C=x.port2;x.port1.onmessage=M,l=function(){C.postMessage(null)}}else l=function(){b(M,0)};function A(){O||(O=!0,l())}function N(e,n){S=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||y||(v=!0,A())},t.unstable_forceFrameRate=function(e){0>e||125l?(e.sortIndex=u,n(f,e),null===r(s)&&e===r(f)&&(g?(m(S),S=-1):g=!0,N(j,u-l))):(e.sortIndex=a,n(s,e),v||y||(v=!0,A())),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},5689:function(e,t,n){"use strict";e.exports=n(9176)},1358:function(e,t){"use strict";function n(e){return new URL(e,"http://n").pathname}function r(e){return/https?:\/\//.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getPathname:function(){return n},isFullStringUrl:function(){return r}})},2441:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Postpone:function(){return d},createPostponedAbortSignal:function(){return b},createPrerenderState:function(){return c},formatDynamicAPIAccesses:function(){return v},markCurrentScopeAsDynamic:function(){return s},trackDynamicDataAccessed:function(){return f},trackDynamicFetch:function(){return p},usedDynamicAPIs:function(){return y}});let o=(r=n(2265))&&r.__esModule?r:{default:r},u=n(7910),l=n(5108),a=n(1358),i="function"==typeof o.default.unstable_postpone;function c(e){return{isDebugSkeleton:e,dynamicAccesses:[]}}function s(e,t){let n=(0,a.getPathname)(e.urlPathname);if(!e.isUnstableCacheCallback){if(e.dynamicShouldError)throw new l.StaticGenBailoutError(`Route ${n} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)h(e.prerenderState,t,n);else if(e.revalidate=0,e.isStaticGeneration){let r=new u.DynamicServerError(`Route ${n} couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=r.stack,r}}}function f(e,t){let n=(0,a.getPathname)(e.urlPathname);if(e.isUnstableCacheCallback)throw Error(`Route ${n} used "${t}" inside a function cached with "unstable_cache(...)". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "${t}" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`);if(e.dynamicShouldError)throw new l.StaticGenBailoutError(`Route ${n} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)h(e.prerenderState,t,n);else if(e.revalidate=0,e.isStaticGeneration){let r=new u.DynamicServerError(`Route ${n} couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=r.stack,r}}function d({reason:e,prerenderState:t,pathname:n}){h(t,e,n)}function p(e,t){e.prerenderState&&h(e.prerenderState,t,e.urlPathname)}function h(e,t,n){g();let r=`Route ${n} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;e.dynamicAccesses.push({stack:e.isDebugSkeleton?Error().stack:void 0,expression:t}),o.default.unstable_postpone(r)}function y(e){return e.dynamicAccesses.length>0}function v(e){return e.dynamicAccesses.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" ()")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}: +${t}`))}function g(){if(!i)throw Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js")}function b(e){g();let t=new AbortController;try{o.default.unstable_postpone(e)}catch(e){t.abort(e)}return t.signal}},4286:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentParam",{enumerable:!0,get:function(){return o}});let r=n(2269);function o(e){let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:t?"catchall-intercepted":"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:t?"dynamic-intercepted":"dynamic",param:e.slice(1,-1)}:null}},3243:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HMR_ACTIONS_SENT_TO_BROWSER",{enumerable:!0,get:function(){return n}}),(r=n||(n={})).ADDED_PAGE="addedPage",r.REMOVED_PAGE="removedPage",r.RELOAD_PAGE="reloadPage",r.SERVER_COMPONENT_CHANGES="serverComponentChanges",r.MIDDLEWARE_CHANGES="middlewareChanges",r.CLIENT_CHANGES="clientChanges",r.SERVER_ONLY_CHANGES="serverOnlyChanges",r.SYNC="sync",r.BUILT="built",r.BUILDING="building",r.DEV_PAGES_MANIFEST_UPDATE="devPagesManifestUpdate",r.TURBOPACK_MESSAGE="turbopack-message",r.SERVER_ERROR="serverError",r.TURBOPACK_CONNECTED="turbopack-connected"},2269:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return l},isInterceptionRouteAppPath:function(){return u}});let r=n(3330),o=["(..)(..)","(.)","(..)","(...)"];function u(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function l(e){let t,n,u;for(let r of e.split("/"))if(n=o.find(e=>r.startsWith(e))){[t,u]=e.split(n,2);break}if(!t||!n||!u)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,r.normalizeAppPath)(t),n){case"(.)":u="/"===t?`/${u}`:t+"/"+u;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);u=t.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":let l=t.split("/");if(l.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);u=l.slice(0,-2).concat(u).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:u}}},7991:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return n}});class n{static get(e,t,n){let r=Reflect.get(e,t,n);return"function"==typeof r?r.bind(e):r}static set(e,t,n,r){return Reflect.set(e,t,n,r)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},4467:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return l},LayoutRouterContext:function(){return u},MissingSlotContext:function(){return i},TemplateContext:function(){return a}});let r=n(9920)._(n(2265)),o=r.default.createContext(null),u=r.default.createContext(null),l=r.default.createContext(null),a=r.default.createContext(null),i=r.default.createContext(new Set)},4736:function(e,t){"use strict";function n(e){let t=5381;for(let n=0;n>>0}function r(e){return n(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{djb2Hash:function(){return n},hexHash:function(){return r}})},6590:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return r}});let r=n(9920)._(n(2265)).default.createContext({})},8056:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PathParamsContext:function(){return l},PathnameContext:function(){return u},SearchParamsContext:function(){return o}});let r=n(2265),o=(0,r.createContext)(null),u=(0,r.createContext)(null),l=(0,r.createContext)(null)},5592:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{BailoutToCSRError:function(){return r},isBailoutToCSRError:function(){return o}});let n="BAILOUT_TO_CLIENT_SIDE_RENDERING";class r extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=n}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}},8558:function(e,t){"use strict";function n(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return n}})},1427:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ActionQueueContext:function(){return a},createMutableActionQueue:function(){return s}});let r=n(1452),o=n(1507),u=n(643),l=r._(n(2265)),a=l.default.createContext(null);function i(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending?c({actionQueue:e,action:e.pending,setState:t}):e.needsRefresh&&(e.needsRefresh=!1,e.dispatch({type:o.ACTION_REFRESH,origin:window.location.origin},t)))}async function c(e){let{actionQueue:t,action:n,setState:r}=e,u=t.state;if(!u)throw Error("Invariant: Router state not initialized");t.pending=n;let l=n.payload,a=t.action(u,l);function c(e){n.discarded||(t.state=e,t.devToolsInstance&&t.devToolsInstance.send(l,e),i(t,r),n.resolve(e))}(0,o.isThenable)(a)?a.then(c,e=>{i(t,r),n.reject(e)}):c(a)}function s(){let e={state:null,dispatch:(t,n)=>(function(e,t,n){let r={resolve:n,reject:()=>{}};if(t.type!==o.ACTION_RESTORE){let e=new Promise((e,t)=>{r={resolve:e,reject:t}});(0,l.startTransition)(()=>{n(e)})}let u={payload:t,next:null,resolve:r.resolve,reject:r.reject};null===e.pending?(e.last=u,c({actionQueue:e,action:u,setState:n})):t.type===o.ACTION_NAVIGATE||t.type===o.ACTION_RESTORE?(e.pending.discarded=!0,e.last=u,e.pending.payload.type===o.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),c({actionQueue:e,action:u,setState:n})):(null!==e.last&&(e.last.next=u),e.last=u)})(e,t,n),action:async(e,t)=>{if(null===e)throw Error("Invariant: Router state not initialized");return(0,u.reducer)(e,t)},pending:null,last:null};return e}},2707:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let r=n(1465);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:n,query:o,hash:u}=(0,r.parsePath)(e);return""+t+n+o+u}},3330:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{normalizeAppPath:function(){return u},normalizeRscURL:function(){return l}});let r=n(8558),o=n(0);function u(e){return(0,r.ensureLeadingSlash)(e.split("/").reduce((e,t,n,r)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&n===r.length-1?e:e+"/"+t,""))}function l(e){return e.replace(/\.rsc($|\?)/,"$1")}},6180:function(e,t){"use strict";function n(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let n=document.documentElement,r=n.style.scrollBehavior;n.style.scrollBehavior="auto",t.dontForceLayout||n.getClientRects(),e(),n.style.scrollBehavior=r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return n}})},4092:function(e,t){"use strict";function n(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return n}})},1465:function(e,t){"use strict";function n(e){let t=e.indexOf("#"),n=e.indexOf("?"),r=n>-1&&(t<0||n-1?{pathname:e.substring(0,r?n:t),query:r?e.substring(n,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return n}})},5121:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let r=n(1465);function o(e,t){if("string"!=typeof e)return!1;let{pathname:n}=(0,r.parsePath)(e);return n===t||n.startsWith(t+"/")}},7741:function(e,t){"use strict";function n(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return n}})},0:function(e,t){"use strict";function n(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DEFAULT_SEGMENT_KEY:function(){return o},PAGE_SEGMENT_KEY:function(){return r},isGroupSegment:function(){return n}});let r="__PAGE__",o="__DEFAULT__"},8005:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return u}});let r=n(1452)._(n(2265)),o=r.default.createContext(null);function u(e){let t=(0,r.useContext)(o);t&&t(e)}},2301:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},1493:function(e,t,n){"use strict";/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r=n(2265),o=Symbol.for("react.element"),u=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,u={},c=null,s=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(s=t.ref),t)l.call(t,r)&&!i.hasOwnProperty(r)&&(u[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===u[r]&&(u[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:s,props:u,_owner:a.current}}t.Fragment=u,t.jsx=c,t.jsxs=c},2281:function(e,t,n){"use strict";e.exports=n(1493)},8293:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(6713).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6713:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return u}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let o=globalThis.AsyncLocalStorage;function u(){return o?new o:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(6713).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7685:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(6713).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4040:function(e,t,n){"use strict";var r=n(4887);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},4887:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4417)},7950:function(e,t,n){"use strict";var r=n(4887),o={stream:!0},u=new Map;function l(e){var t=n(e);return"function"!=typeof t.then||"fulfilled"===t.status?null:(t.then(function(e){t.status="fulfilled",t.value=e},function(e){t.status="rejected",t.reason=e}),t)}function a(){}var i=new Map,c=n.u;n.u=function(e){var t=i.get(e);return void 0!==t?t:c(e)};var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,f=Symbol.for("react.element"),d=Symbol.for("react.lazy"),p=Symbol.iterator,h=Array.isArray,y=Object.getPrototypeOf,v=Object.prototype,g=new WeakMap;function b(e,t,n,r){this.status=e,this.value=t,this.reason=n,this._response=r}function m(e){switch(e.status){case"resolved_model":w(e);break;case"resolved_module":T(e)}switch(e.status){case"fulfilled":return e.value;case"pending":case"blocked":case"cyclic":throw e;default:throw e.reason}}function P(e,t){for(var n=0;nh?(v=h,h=3,p++):(v=0,h=3);continue;case 2:44===(P=d[p++])?h=4:g=g<<4|(96d.length&&(P=-1)}var S=d.byteOffset+p;if(-1e.length)&&(t=e.length);for(var n=0,r=Array(t);n0||!u(t.scriptURL,n.sn.toString())||performance.now()>n.un+6e4?(n.vn=t,e.removeEventListener("updatefound",n.cn)):(n.hn=t,n.an.add(t),n.rn.resolve(t)),++n.tn,t.addEventListener("statechange",n.ln)},n.ln=function(e){var t=n.fn,r=e.target,o=r.state,u=r===n.vn,a={sw:r,isExternal:u,originalEvent:e};!u&&n.mn&&(a.isUpdate=!0),n.dispatchEvent(new l(o,a)),"installed"===o?n.wn=self.setTimeout(function(){"installed"===o&&t.waiting===r&&n.dispatchEvent(new l("waiting",a))},200):"activating"===o&&(clearTimeout(n.wn),u||n.en.resolve(r))},n.yn=function(e){var t=n.hn,r=t!==navigator.serviceWorker.controller;n.dispatchEvent(new l("controlling",{isExternal:r,originalEvent:e,sw:t,isUpdate:n.mn})),r||n.on.resolve(t)},n.gn=(i=function(e){var t=e.data,r=e.ports,o=e.source;return a(n.getSW(),function(){n.an.has(o)&&n.dispatchEvent(new l("message",{data:t,originalEvent:e,ports:r,sw:o}))})},function(){for(var e=[],t=0;t=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.jn(e.type));!(t=n()).done;)(0,t.value)(e)},t.jn=function(e){return this.Pn.has(e)||this.Pn.set(e,new Set),this.Pn.get(e)},e}());if("undefined"!=typeof window&&"serviceWorker"in navigator&&"undefined"!=typeof caches){let e;window.workbox=new f(window.location.origin+"/sw.js",{scope:"/"}),window.workbox.register();{let t=async t=>{if(!window.navigator.onLine||!t)return;let n=t instanceof URL?t.toString():"string"==typeof t?t:void 0;if("string"==typeof n&&"/"===n){if(e)e.postMessage({type:"__START_URL_CACHE__",url:n});else{let e=await fetch(t);if(!e.redirected)return(await caches.open("start-url")).put(t,e)}}},n=history.pushState;history.pushState=(...e)=>{n.apply(history,e),t(e[2])};let r=history.replaceState;history.replaceState=(...e)=>{r.apply(history,e),t(e[2])},window.addEventListener("online",()=>{t(window.location.pathname)})}window.addEventListener("online",()=>location.reload())}},3449:function(e,t,n){"use strict";function r(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}n.r(t),n.d(t,{_:function(){return r},_class_private_field_loose_base:function(){return r}})},7614:function(e,t,n){"use strict";n.r(t),n.d(t,{_:function(){return o},_class_private_field_loose_key:function(){return o}});var r=0;function o(e){return"__private_"+r+++"_"+e}},9920:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.r(t),n.d(t,{_:function(){return r},_interop_require_default:function(){return r}})},1452:function(e,t,n){"use strict";function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var a=u?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(o,l,a):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}n.r(t),n.d(t,{_:function(){return o},_interop_require_wildcard:function(){return o}})}}]); \ No newline at end of file diff --git a/_next/static/chunks/190-fbd7e2ae978b3f7a.js b/_next/static/chunks/190-fbd7e2ae978b3f7a.js deleted file mode 100644 index b8efa779c1297fff67e0eda1c678474d8334933a..0000000000000000000000000000000000000000 --- a/_next/static/chunks/190-fbd7e2ae978b3f7a.js +++ /dev/null @@ -1,10 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[190],{9492:function(e,t){"use strict";function n(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return n}})},7108:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)})},4897:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return u}});let r=n(2707),o=n(8157);function u(e,t){return(0,o.normalizePathTrailingSlash)((0,r.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5684:function(e,t){"use strict";function n(e){var t,n;t=self.__next_s,n=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[n,r]=t;return e.then(()=>new Promise((e,t)=>{let o=document.createElement("script");if(r)for(let e in r)"children"!==e&&o.setAttribute(e,r[e]);n?(o.src=n,o.onload=()=>e(),o.onerror=t):r&&(o.innerHTML=r.children,setTimeout(e)),document.head.appendChild(o)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{n()}):n()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appBootstrap",{enumerable:!0,get:function(){return n}}),window.next={version:"14.2.3",appDir:!0},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4590:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callServer",{enumerable:!0,get:function(){return o}});let r=n(5751);async function o(e,t){let n=(0,r.getServerActionDispatcher)();if(!n)throw Error("Invariant: missing action dispatcher.");return new Promise((r,o)=>{n({actionId:e,actionArgs:t,resolve:r,reject:o})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},353:function(e,t,n){"use strict";let r,o;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return C}});let u=n(1609),l=n(6720),a=n(2281);n(7108);let i=u._(n(4040)),c=l._(n(2265)),s=n(6671),f=n(6590),d=u._(n(6124)),p=n(4590),h=n(2128),y=n(1427);n(3243);let v=window.console.error;window.console.error=function(){for(var e=arguments.length,t=Array(e),n=0;n{if((0,h.isNextRouterError)(e.error)){e.preventDefault();return}});let g=document,b=new TextEncoder,m=!1,P=!1,R=null;function j(e){if(0===e[0])r=[];else if(1===e[0]){if(!r)throw Error("Unexpected server data: missing bootstrap script.");o?o.enqueue(b.encode(e[1])):r.push(e[1])}else 2===e[0]&&(R=e[1])}let O=function(){o&&!P&&(o.close(),P=!0,r=void 0),m=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",O,!1):O();let S=self.__next_f=self.__next_f||[];S.forEach(j),S.push=j;let E=new ReadableStream({start(e){r&&(r.forEach(t=>{e.enqueue(b.encode(t))}),m&&!P&&(e.close(),P=!0,r=void 0)),o=e}}),w=(0,s.createFromReadableStream)(E,{callServer:p.callServer});function T(){return(0,c.use)(w)}let M=c.default.StrictMode;function x(e){let{children:t}=e;return t}function C(){let e=(0,y.createMutableActionQueue)(),t=(0,a.jsx)(M,{children:(0,a.jsx)(f.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,a.jsx)(y.ActionQueueContext.Provider,{value:e,children:(0,a.jsx)(x,{children:(0,a.jsx)(T,{})})})})}),n=window.__next_root_layout_missing_tags,r=!!(null==n?void 0:n.length),o={onRecoverableError:d.default};"__next_error__"===document.documentElement.id||r?i.default.createRoot(g,o).render(t):c.default.startTransition(()=>i.default.hydrateRoot(g,t,{...o,formState:R}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1028:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(5820),(0,n(5684).appBootstrap)(()=>{let{hydrate:e}=n(353);n(5751),n(9275),e()}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5820:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(9492);{let e=n.u;n.u=function(){for(var t=arguments.length,n=Array(t),r=0;r(l(function(){var e;let t=document.getElementsByName(u)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(u);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(u)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[a,i]=(0,r.useState)(""),c=(0,r.useRef)();return(0,r.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==c.current&&c.current!==e&&i(e),c.current=e},[t]),n?(0,o.createPortal)(a,n):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7325:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION:function(){return r},FLIGHT_PARAMETERS:function(){return i},NEXT_DID_POSTPONE_HEADER:function(){return s},NEXT_ROUTER_PREFETCH_HEADER:function(){return u},NEXT_ROUTER_STATE_TREE:function(){return o},NEXT_RSC_UNION_QUERY:function(){return c},NEXT_URL:function(){return l},RSC_CONTENT_TYPE_HEADER:function(){return a},RSC_HEADER:function(){return n}});let n="RSC",r="Next-Action",o="Next-Router-State-Tree",u="Next-Router-Prefetch",l="Next-Url",a="text/x-component",i=[[n],[o],[u]],c="_rsc",s="x-nextjs-postponed";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5751:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createEmptyCacheNode:function(){return A},default:function(){return k},getServerActionDispatcher:function(){return w},urlToUrlWithoutFlightMarker:function(){return M}});let r=n(6720),o=n(2281),u=r._(n(2265)),l=n(4467),a=n(1507),i=n(3174),c=n(8056),s=n(2114),f=n(6130),d=n(322),p=n(4092),h=n(4897),y=n(1012),v=n(6585),g=n(315),b=n(1108),m=n(7325),P=n(7599),R=n(9404),j=n(0),O="undefined"==typeof window,S=O?null:new Map,E=null;function w(){return E}let T={};function M(e){let t=new URL(e,location.origin);if(t.searchParams.delete(m.NEXT_RSC_UNION_QUERY),t.pathname.endsWith(".txt")){let{pathname:e}=t,n=e.endsWith("/index.txt")?10:4;t.pathname=e.slice(0,-n)}return t}function x(e){return e.origin!==window.location.origin}function C(e){let{appRouterState:t,sync:n}=e;return(0,u.useInsertionEffect)(()=>{let{tree:e,pushRef:r,canonicalUrl:o}=t,u={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};r.pendingPush&&(0,i.createHrefFromUrl)(new URL(window.location.href))!==o?(r.pendingPush=!1,window.history.pushState(u,"",o)):window.history.replaceState(u,"",o),n(t)},[t,n]),null}function A(){return{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null}}function N(e){null==e&&(e={});let t=window.history.state,n=null==t?void 0:t.__NA;n&&(e.__NA=n);let r=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return r&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=r),e}function I(e){let{headCacheNode:t}=e,n=null!==t?t.head:null,r=null!==t?t.prefetchHead:null,o=null!==r?r:n;return(0,u.useDeferredValue)(n,o)}function D(e){let t,{buildId:n,initialHead:r,initialTree:i,initialCanonicalUrl:f,initialSeedData:m,couldBeIntercepted:w,assetPrefix:M,missingSlots:A}=e,D=(0,u.useMemo)(()=>(0,d.createInitialRouterState)({buildId:n,initialSeedData:m,initialCanonicalUrl:f,initialTree:i,initialParallelRoutes:S,location:O?null:window.location,initialHead:r,couldBeIntercepted:w}),[n,m,f,i,r,w]),[k,U,L]=(0,s.useReducerWithReduxDevtools)(D);(0,u.useEffect)(()=>{S=null},[]);let{canonicalUrl:F}=(0,s.useUnwrapState)(k),{searchParams:H,pathname:$}=(0,u.useMemo)(()=>{let e=new URL(F,"undefined"==typeof window?"http://n":window.location.href);return{searchParams:e.searchParams,pathname:(0,R.hasBasePath)(e.pathname)?(0,P.removeBasePath)(e.pathname):e.pathname}},[F]),G=(0,u.useCallback)(e=>{let{previousTree:t,serverResponse:n}=e;(0,u.startTransition)(()=>{U({type:a.ACTION_SERVER_PATCH,previousTree:t,serverResponse:n})})},[U]),z=(0,u.useCallback)((e,t,n)=>{let r=new URL((0,h.addBasePath)(e),location.href);return U({type:a.ACTION_NAVIGATE,url:r,isExternalUrl:x(r),locationSearch:location.search,shouldScroll:null==n||n,navigateType:t})},[U]);E=(0,u.useCallback)(e=>{(0,u.startTransition)(()=>{U({...e,type:a.ACTION_SERVER_ACTION})})},[U]);let W=(0,u.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{if((0,p.isBot)(window.navigator.userAgent))return;let n=new URL((0,h.addBasePath)(e),window.location.href);x(n)||(0,u.startTransition)(()=>{var e;U({type:a.ACTION_PREFETCH,url:n,kind:null!=(e=null==t?void 0:t.kind)?e:a.PrefetchKind.FULL})})},replace:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var n;z(e,"replace",null==(n=t.scroll)||n)})},push:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var n;z(e,"push",null==(n=t.scroll)||n)})},refresh:()=>{(0,u.startTransition)(()=>{U({type:a.ACTION_REFRESH,origin:window.location.origin})})},fastRefresh:()=>{throw Error("fastRefresh can only be used in development mode. Please use refresh instead.")}}),[U,z]);(0,u.useEffect)(()=>{window.next&&(window.next.router=W)},[W]),(0,u.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&(T.pendingMpaPath=void 0,U({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[U]);let{pushRef:B}=(0,s.useUnwrapState)(k);if(B.mpaNavigation){if(T.pendingMpaPath!==F){let e=window.location;B.pendingPush?e.assign(F):e.replace(F),T.pendingMpaPath=F}(0,u.use)(b.unresolvedThenable)}(0,u.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),n=e=>{var t;let n=window.location.href,r=null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,u.startTransition)(()=>{U({type:a.ACTION_RESTORE,url:new URL(null!=e?e:n,n),tree:r})})};window.history.pushState=function(t,r,o){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=N(t),o&&n(o)),e(t,r,o)},window.history.replaceState=function(e,r,o){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=N(e),o&&n(o)),t(e,r,o)};let r=e=>{let{state:t}=e;if(t){if(!t.__NA){window.location.reload();return}(0,u.startTransition)(()=>{U({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:t.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener("popstate",r),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",r)}},[U]);let{cache:K,tree:V,nextUrl:Y,focusAndScrollRef:X}=(0,s.useUnwrapState)(k),q=(0,u.useMemo)(()=>(0,g.findHeadInCache)(K,V[1]),[K,V]),J=(0,u.useMemo)(()=>(function e(t,n){for(let r of(void 0===n&&(n={}),Object.values(t[1]))){let t=r[0],o=Array.isArray(t),u=o?t[1]:t;!u||u.startsWith(j.PAGE_SEGMENT_KEY)||(o&&("c"===t[2]||"oc"===t[2])?n[t[0]]=t[1].split("/"):o&&(n[t[0]]=t[1]),n=e(r,n))}return n})(V),[V]);if(null!==q){let[e,n]=q;t=(0,o.jsx)(I,{headCacheNode:e},n)}else t=null;let Q=(0,o.jsxs)(v.RedirectBoundary,{children:[t,K.rsc,(0,o.jsx)(y.AppRouterAnnouncer,{tree:V})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(C,{appRouterState:(0,s.useUnwrapState)(k),sync:L}),(0,o.jsx)(c.PathParamsContext.Provider,{value:J,children:(0,o.jsx)(c.PathnameContext.Provider,{value:$,children:(0,o.jsx)(c.SearchParamsContext.Provider,{value:H,children:(0,o.jsx)(l.GlobalLayoutRouterContext.Provider,{value:{buildId:n,changeByServerResponse:G,tree:V,focusAndScrollRef:X,nextUrl:Y},children:(0,o.jsx)(l.AppRouterContext.Provider,{value:W,children:(0,o.jsx)(l.LayoutRouterContext.Provider,{value:{childNodes:K.parallelRoutes,tree:V,url:F,loading:K.loading},children:Q})})})})})})]})}function k(e){let{globalErrorComponent:t,...n}=e;return(0,o.jsx)(f.ErrorBoundary,{errorComponent:t,children:(0,o.jsx)(D,{...n})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4804:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bailoutToClientRendering",{enumerable:!0,get:function(){return u}});let r=n(5592),o=n(4936);function u(e){let t=o.staticGenerationAsyncStorage.getStore();if((null==t||!t.forceStatic)&&(null==t?void 0:t.isStaticGeneration))throw new r.BailoutToCSRError(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6513:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ClientPageRoot",{enumerable:!0,get:function(){return u}});let r=n(2281),o=n(8897);function u(e){let{Component:t,props:n}=e;return n.searchParams=(0,o.createDynamicallyTrackedSearchParams)(n.searchParams||{}),(0,r.jsx)(t,{...n})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6130:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ErrorBoundary:function(){return h},ErrorBoundaryHandler:function(){return f},GlobalError:function(){return d},default:function(){return p}});let r=n(1609),o=n(2281),u=r._(n(2265)),l=n(1169),a=n(2128),i=n(4936),c={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function s(e){let{error:t}=e,n=i.staticGenerationAsyncStorage.getStore();if((null==n?void 0:n.isRevalidate)||(null==n?void 0:n.isStaticGeneration))throw console.error(t),t;return null}class f extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,o.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function d(e){let{error:t}=e,n=null==t?void 0:t.digest;return(0,o.jsxs)("html",{id:"__next_error__",children:[(0,o.jsx)("head",{}),(0,o.jsxs)("body",{children:[(0,o.jsx)(s,{error:t}),(0,o.jsx)("div",{style:c.error,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{style:c.text,children:"Application error: a "+(n?"server":"client")+"-side exception has occurred (see the "+(n?"server logs":"browser console")+" for more information)."}),n?(0,o.jsx)("p",{style:c.text,children:"Digest: "+n}):null]})})]})]})}let p=d;function h(e){let{errorComponent:t,errorStyles:n,errorScripts:r,children:u}=e,a=(0,l.usePathname)();return t?(0,o.jsx)(f,{pathname:a,errorComponent:t,errorStyles:n,errorScripts:r,children:u}):(0,o.jsx)(o.Fragment,{children:u})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7910:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DynamicServerError:function(){return r},isDynamicServerError:function(){return o}});let n="DYNAMIC_SERVER_USAGE";class r extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=n}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2128:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return u}});let r=n(2496),o=n(7909);function u(e){return e&&e.digest&&((0,o.isRedirectError)(e)||(0,r.isNotFoundError)(e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9275:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return E}});let r=n(1609),o=n(6720),u=n(2281),l=o._(n(2265)),a=r._(n(4887)),i=n(4467),c=n(1283),s=n(1108),f=n(6130),d=n(6237),p=n(6180),h=n(6585),y=n(5324),v=n(4640),g=n(1784),b=n(5914),m=["bottom","height","left","right","top","width","x","y"];function P(e,t){let n=e.getBoundingClientRect();return n.top>=0&&n.top<=t}class R extends l.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){var n;if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,n)=>(0,d.matchSegment)(t,e[n]))))return;let r=null,o=e.hashFragment;if(o&&(r="top"===o?document.body:null!=(n=document.getElementById(o))?n:document.getElementsByName(o)[0]),r||(r="undefined"==typeof window?null:a.default.findDOMNode(this)),!(r instanceof Element))return;for(;!(r instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return m.every(e=>0===t[e])}(r);){if(null===r.nextElementSibling)return;r=r.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,p.handleSmoothScroll)(()=>{if(o){r.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!P(r,t)&&(e.scrollTop=0,P(r,t)||r.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,r.focus()}}}}function j(e){let{segmentPath:t,children:n}=e,r=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!r)throw Error("invariant global layout router not mounted");return(0,u.jsx)(R,{segmentPath:t,focusAndScrollRef:r.focusAndScrollRef,children:n})}function O(e){let{parallelRouterKey:t,url:n,childNodes:r,segmentPath:o,tree:a,cacheKey:f}=e,p=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!p)throw Error("invariant global layout router not mounted");let{buildId:h,changeByServerResponse:y,tree:v}=p,g=r.get(f);if(void 0===g){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};g=e,r.set(f,e)}let m=null!==g.prefetchRsc?g.prefetchRsc:g.rsc,P=(0,l.useDeferredValue)(g.rsc,m),R="object"==typeof P&&null!==P&&"function"==typeof P.then?(0,l.use)(P):P;if(!R){let e=g.lazyData;if(null===e){let t=function e(t,n){if(t){let[r,o]=t,u=2===t.length;if((0,d.matchSegment)(n[0],r)&&n[1].hasOwnProperty(o)){if(u){let t=e(void 0,n[1][o]);return[n[0],{...n[1],[o]:[t[0],t[1],t[2],"refetch"]}]}return[n[0],{...n[1],[o]:e(t.slice(2),n[1][o])}]}}return n}(["",...o],v),r=(0,b.hasInterceptionRouteInCurrentTree)(v);g.lazyData=e=(0,c.fetchServerResponse)(new URL(n,location.origin),t,r?p.nextUrl:null,h),g.lazyDataResolved=!1}let t=(0,l.use)(e);g.lazyDataResolved||(setTimeout(()=>{(0,l.startTransition)(()=>{y({previousTree:v,serverResponse:t})})}),g.lazyDataResolved=!0,(0,l.use)(s.unresolvedThenable))}return(0,u.jsx)(i.LayoutRouterContext.Provider,{value:{tree:a[1][t],childNodes:g.parallelRoutes,url:n,loading:g.loading},children:R})}function S(e){let{children:t,hasLoading:n,loading:r,loadingStyles:o,loadingScripts:a}=e;return n?(0,u.jsx)(l.Suspense,{fallback:(0,u.jsxs)(u.Fragment,{children:[o,a,r]}),children:t}):(0,u.jsx)(u.Fragment,{children:t})}function E(e){let{parallelRouterKey:t,segmentPath:n,error:r,errorStyles:o,errorScripts:a,templateStyles:c,templateScripts:s,template:d,notFound:p,notFoundStyles:b,styles:m}=e,P=(0,l.useContext)(i.LayoutRouterContext);if(!P)throw Error("invariant expected layout router to be mounted");let{childNodes:R,tree:E,url:w,loading:T}=P,M=R.get(t);M||(M=new Map,R.set(t,M));let x=E[1][t][0],C=(0,v.getSegmentValue)(x),A=[x];return(0,u.jsxs)(u.Fragment,{children:[m,A.map(e=>{let l=(0,v.getSegmentValue)(e),m=(0,g.createRouterCacheKey)(e);return(0,u.jsxs)(i.TemplateContext.Provider,{value:(0,u.jsx)(j,{segmentPath:n,children:(0,u.jsx)(f.ErrorBoundary,{errorComponent:r,errorStyles:o,errorScripts:a,children:(0,u.jsx)(S,{hasLoading:!!T,loading:null==T?void 0:T[0],loadingStyles:null==T?void 0:T[1],loadingScripts:null==T?void 0:T[2],children:(0,u.jsx)(y.NotFoundBoundary,{notFound:p,notFoundStyles:b,children:(0,u.jsx)(h.RedirectBoundary,{children:(0,u.jsx)(O,{parallelRouterKey:t,url:w,tree:E,childNodes:M,segmentPath:n,cacheKey:m,isActive:C===l})})})})})}),children:[c,s,d]},(0,g.createRouterCacheKey)(e,!0))})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6237:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{canSegmentBeOverridden:function(){return u},matchSegment:function(){return o}});let r=n(4286),o=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1],u=(e,t)=>{var n;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(n=(0,r.getSegmentParam)(e))?void 0:n.param)===t[0]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1169:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return i.ReadonlyURLSearchParams},RedirectType:function(){return i.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},notFound:function(){return i.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect},useParams:function(){return p},usePathname:function(){return f},useRouter:function(){return d},useSearchParams:function(){return s},useSelectedLayoutSegment:function(){return y},useSelectedLayoutSegments:function(){return h},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let r=n(2265),o=n(4467),u=n(8056),l=n(4640),a=n(0),i=n(2152),c=n(8005);function s(){let e=(0,r.useContext)(u.SearchParamsContext),t=(0,r.useMemo)(()=>e?new i.ReadonlyURLSearchParams(e):null,[e]);if("undefined"==typeof window){let{bailoutToClientRendering:e}=n(4804);e("useSearchParams()")}return t}function f(){return(0,r.useContext)(u.PathnameContext)}function d(){let e=(0,r.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function p(){return(0,r.useContext)(u.PathParamsContext)}function h(e){void 0===e&&(e="children");let t=(0,r.useContext)(o.LayoutRouterContext);return t?function e(t,n,r,o){let u;if(void 0===r&&(r=!0),void 0===o&&(o=[]),r)u=t[1][n];else{var i;let e=t[1];u=null!=(i=e.children)?i:Object.values(e)[0]}if(!u)return o;let c=u[0],s=(0,l.getSegmentValue)(c);return!s||s.startsWith(a.PAGE_SEGMENT_KEY)?o:(o.push(s),e(u,n,!1,o))}(t.tree,e):null}function y(e){void 0===e&&(e="children");let t=h(e);if(!t||0===t.length)return null;let n="children"===e?t[0]:t[t.length-1];return n===a.DEFAULT_SEGMENT_KEY?null:n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2152:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return l},RedirectType:function(){return r.RedirectType},notFound:function(){return o.notFound},permanentRedirect:function(){return r.permanentRedirect},redirect:function(){return r.redirect}});let r=n(7909),o=n(2496);class u extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class l extends URLSearchParams{append(){throw new u}delete(){throw new u}set(){throw new u}sort(){throw new u}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5324:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NotFoundBoundary",{enumerable:!0,get:function(){return s}});let r=n(6720),o=n(2281),u=r._(n(2265)),l=n(1169),a=n(2496);n(2301);let i=n(4467);class c extends u.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,a.isNotFoundError)(e))return{notFoundTriggered:!0};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.notFoundTriggered?{notFoundTriggered:!1,previousPathname:e.pathname}:{notFoundTriggered:t.notFoundTriggered,previousPathname:e.pathname}}render(){return this.state.notFoundTriggered?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("meta",{name:"robots",content:"noindex"}),!1,this.props.notFoundStyles,this.props.notFound]}):this.props.children}constructor(e){super(e),this.state={notFoundTriggered:!!e.asNotFound,previousPathname:e.pathname}}}function s(e){let{notFound:t,notFoundStyles:n,asNotFound:r,children:a}=e,s=(0,l.usePathname)(),f=(0,u.useContext)(i.MissingSlotContext);return t?(0,o.jsx)(c,{pathname:s,notFound:t,notFoundStyles:n,asNotFound:r,missingSlots:f,children:a}):(0,o.jsx)(o.Fragment,{children:a})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2496:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isNotFoundError:function(){return o},notFound:function(){return r}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3858:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return c}});let r=n(8123),o=n(2365);var u=o._("_maxConcurrency"),l=o._("_runningCount"),a=o._("_queue"),i=o._("_processNext");class c{enqueue(e){let t,n;let o=new Promise((e,r)=>{t=e,n=r}),u=async()=>{try{r._(this,l)[l]++;let n=await e();t(n)}catch(e){n(e)}finally{r._(this,l)[l]--,r._(this,i)[i]()}};return r._(this,a)[a].push({promiseFn:o,task:u}),r._(this,i)[i](),o}bump(e){let t=r._(this,a)[a].findIndex(t=>t.promiseFn===e);if(t>-1){let e=r._(this,a)[a].splice(t,1)[0];r._(this,a)[a].unshift(e),r._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:s}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),r._(this,u)[u]=e,r._(this,l)[l]=0,r._(this,a)[a]=[]}}function s(e){if(void 0===e&&(e=!1),(r._(this,l)[l]0){var t;null==(t=r._(this,a)[a].shift())||t.task()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6585:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectBoundary:function(){return s},RedirectErrorBoundary:function(){return c}});let r=n(6720),o=n(2281),u=r._(n(2265)),l=n(1169),a=n(7909);function i(e){let{redirect:t,reset:n,redirectType:r}=e,o=(0,l.useRouter)();return(0,u.useEffect)(()=>{u.default.startTransition(()=>{r===a.RedirectType.push?o.push(t,{}):o.replace(t,{}),n()})},[t,r,n,o]),null}class c extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isRedirectError)(e))return{redirect:(0,a.getURLFromRedirectError)(e),redirectType:(0,a.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,o.jsx)(i,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function s(e){let{children:t}=e,n=(0,l.useRouter)();return(0,o.jsx)(c,{router:n,children:t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4785:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),(r=n||(n={}))[r.SeeOther=303]="SeeOther",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7909:function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return c},getRedirectStatusCodeFromError:function(){return y},getRedirectTypeFromError:function(){return h},getURLFromRedirectError:function(){return p},isRedirectError:function(){return d},permanentRedirect:function(){return f},redirect:function(){return s}});let u=n(8512),l=n(9440),a=n(4785),i="NEXT_REDIRECT";function c(e,t,n){void 0===n&&(n=a.RedirectStatusCode.TemporaryRedirect);let r=Error(i);r.digest=i+";"+t+";"+e+";"+n+";";let o=u.requestAsyncStorage.getStore();return o&&(r.mutableCookies=o.mutableCookies),r}function s(e,t){void 0===t&&(t="replace");let n=l.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.TemporaryRedirect)}function f(e,t){void 0===t&&(t="replace");let n=l.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.PermanentRedirect)}function d(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,n,r,o]=e.digest.split(";",4),u=Number(o);return t===i&&("replace"===n||"push"===n)&&"string"==typeof r&&!isNaN(u)&&u in a.RedirectStatusCode}function p(e){return d(e)?e.digest.split(";",3)[2]:null}function h(e){if(!d(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function y(e){if(!d(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(o=r||(r={})).push="push",o.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1343:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(6720),o=n(2281),u=r._(n(2265)),l=n(4467);function a(){let e=(0,u.useContext)(l.TemplateContext);return(0,o.jsx)(o.Fragment,{children:e})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8512:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getExpectedRequestStore:function(){return o},requestAsyncStorage:function(){return r.requestAsyncStorage}});let r=n(38);function o(e){let t=r.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9607:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return u}});let r=n(3821),o=n(1133);function u(e,t,n,u){let[l,a,i]=n.slice(-3);if(null===a)return!1;if(3===n.length){let n=a[2],o=a[3];t.loading=o,t.rsc=n,t.prefetchRsc=null,(0,r.fillLazyItemsTillLeafWithHead)(t,e,l,a,i,u)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),t.loading=e.loading,(0,o.fillCacheWithNewSubTreeData)(t,e,n,u);return!0}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9684:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return function e(t,n,r,a){let i;let[c,s,f,d,p]=n;if(1===t.length){let e=l(n,r,t);return(0,u.addRefreshMarkerToActiveParallelSegments)(e,a),e}let[h,y]=t;if(!(0,o.matchSegment)(h,c))return null;if(2===t.length)i=l(s[y],r,t);else if(null===(i=e(t.slice(2),s[y],r,a)))return null;let v=[t[0],{...s,[y]:i},f,d];return p&&(v[4]=!0),(0,u.addRefreshMarkerToActiveParallelSegments)(v,a),v}}});let r=n(0),o=n(6237),u=n(4922);function l(e,t,n){let[u,a]=e,[i,c]=t;if(i===r.DEFAULT_SEGMENT_KEY&&u!==r.DEFAULT_SEGMENT_KEY)return e;if((0,o.matchSegment)(u,i)){let t={};for(let e in a)void 0!==c[e]?t[e]=l(a[e],c[e],n):t[e]=a[e];for(let e in c)t[e]||(t[e]=c[e]);let r=[u,t];return e[2]&&(r[2]=e[2]),e[3]&&(r[3]=e[3]),e[4]&&(r[4]=e[4]),r}return t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9559:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clearCacheNodeDataForSegmentPath",{enumerable:!0,get:function(){return function e(t,n,o){let u=o.length<=2,[l,a]=o,i=(0,r.createRouterCacheKey)(a),c=n.parallelRoutes.get(l),s=t.parallelRoutes.get(l);s&&s!==c||(s=new Map(c),t.parallelRoutes.set(l,s));let f=null==c?void 0:c.get(i),d=s.get(i);if(u){d&&d.lazyData&&d!==f||s.set(i,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}if(!d||!f){d||s.set(i,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}return d===f&&(d={lazyData:d.lazyData,rsc:d.rsc,prefetchRsc:d.prefetchRsc,head:d.head,prefetchHead:d.prefetchHead,parallelRoutes:new Map(d.parallelRoutes),lazyDataResolved:d.lazyDataResolved,loading:d.loading},s.set(i,d)),e(d,f,o.slice(2))}}});let r=n(1784);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6626:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{computeChangedPath:function(){return s},extractPathFromFlightRouterState:function(){return c}});let r=n(2269),o=n(0),u=n(6237),l=e=>"/"===e[0]?e.slice(1):e,a=e=>"string"==typeof e?"children"===e?"":e:e[1];function i(e){return e.reduce((e,t)=>""===(t=l(t))||(0,o.isGroupSegment)(t)?e:e+"/"+t,"")||"/"}function c(e){var t;let n=Array.isArray(e[0])?e[0][1]:e[0];if(n===o.DEFAULT_SEGMENT_KEY||r.INTERCEPTION_ROUTE_MARKERS.some(e=>n.startsWith(e)))return;if(n.startsWith(o.PAGE_SEGMENT_KEY))return"";let u=[a(n)],l=null!=(t=e[1])?t:{},s=l.children?c(l.children):void 0;if(void 0!==s)u.push(s);else for(let[e,t]of Object.entries(l)){if("children"===e)continue;let n=c(t);void 0!==n&&u.push(n)}return i(u)}function s(e,t){let n=function e(t,n){let[o,l]=t,[i,s]=n,f=a(o),d=a(i);if(r.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)||d.startsWith(e)))return"";if(!(0,u.matchSegment)(o,i)){var p;return null!=(p=c(n))?p:""}for(let t in l)if(s[t]){let n=e(l[t],s[t]);if(null!==n)return a(i)+"/"+n}return null}(e,t);return null==n||"/"===n?n:i(n.split("/"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3174:function(e,t){"use strict";function n(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},322:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return c}});let r=n(3174),o=n(3821),u=n(6626),l=n(6004),a=n(1507),i=n(4922);function c(e){var t;let{buildId:n,initialTree:c,initialSeedData:s,initialCanonicalUrl:f,initialParallelRoutes:d,location:p,initialHead:h,couldBeIntercepted:y}=e,v=!p,g={lazyData:null,rsc:s[2],prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:v?new Map:d,lazyDataResolved:!1,loading:s[3]},b=p?(0,r.createHrefFromUrl)(p):f;(0,i.addRefreshMarkerToActiveParallelSegments)(c,b);let m=new Map;(null===d||0===d.size)&&(0,o.fillLazyItemsTillLeafWithHead)(g,void 0,c,s,h);let P={buildId:n,tree:c,cache:g,prefetchCache:m,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:b,nextUrl:null!=(t=(0,u.extractPathFromFlightRouterState)(c)||(null==p?void 0:p.pathname))?t:null};if(p){let e=new URL(p.pathname,p.origin),t=[["",c,null,null]];(0,l.createPrefetchCacheEntryForInitialLoad)({url:e,kind:a.PrefetchKind.AUTO,data:[t,void 0,!1,y],tree:P.tree,prefetchCache:P.prefetchCache,nextUrl:P.nextUrl})}return P}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1784:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return o}});let r=n(0);function o(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?e[0]+"|"+e[1]+"|"+e[2]:t&&e.startsWith(r.PAGE_SEGMENT_KEY)?r.PAGE_SEGMENT_KEY:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1283:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fetchServerResponse",{enumerable:!0,get:function(){return s}});let r=n(7325),o=n(5751),u=n(4590),l=n(1507),a=n(4736),{createFromFetch:i}=n(6671);function c(e){return[(0,o.urlToUrlWithoutFlightMarker)(e).toString(),void 0,!1,!1]}async function s(e,t,n,s,f){let d={[r.RSC_HEADER]:"1",[r.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(t))};f===l.PrefetchKind.AUTO&&(d[r.NEXT_ROUTER_PREFETCH_HEADER]="1"),n&&(d[r.NEXT_URL]=n);let p=(0,a.hexHash)([d[r.NEXT_ROUTER_PREFETCH_HEADER]||"0",d[r.NEXT_ROUTER_STATE_TREE],d[r.NEXT_URL]].join(","));try{var h;let t=new URL(e);t.pathname.endsWith("/")?t.pathname+="index.txt":t.pathname+=".txt",t.searchParams.set(r.NEXT_RSC_UNION_QUERY,p);let n=await fetch(t,{credentials:"same-origin",headers:d}),l=(0,o.urlToUrlWithoutFlightMarker)(n.url),a=n.redirected?l:void 0,f=n.headers.get("content-type")||"",y=!!n.headers.get(r.NEXT_DID_POSTPONE_HEADER),v=!!(null==(h=n.headers.get("vary"))?void 0:h.includes(r.NEXT_URL)),g=f===r.RSC_CONTENT_TYPE_HEADER;if(g||(g=f.startsWith("text/plain")),!g||!n.ok)return e.hash&&(l.hash=e.hash),c(l.toString());let[b,m]=await i(Promise.resolve(n),{callServer:u.callServer});if(s!==b)return c(n.url);return[m,a,y,v]}catch(t){return console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),[e.toString(),void 0,!1,!1]}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1133:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithNewSubTreeData",{enumerable:!0,get:function(){return function e(t,n,l,a){let i=l.length<=5,[c,s]=l,f=(0,u.createRouterCacheKey)(s),d=n.parallelRoutes.get(c);if(!d)return;let p=t.parallelRoutes.get(c);p&&p!==d||(p=new Map(d),t.parallelRoutes.set(c,p));let h=d.get(f),y=p.get(f);if(i){if(!y||!y.lazyData||y===h){let e=l[3];y={lazyData:null,rsc:e[2],prefetchRsc:null,head:null,prefetchHead:null,loading:e[3],parallelRoutes:h?new Map(h.parallelRoutes):new Map,lazyDataResolved:!1},h&&(0,r.invalidateCacheByRouterState)(y,h,l[2]),(0,o.fillLazyItemsTillLeafWithHead)(y,h,l[2],e,l[4],a),p.set(f,y)}return}y&&h&&(y===h&&(y={lazyData:y.lazyData,rsc:y.rsc,prefetchRsc:y.prefetchRsc,head:y.head,prefetchHead:y.prefetchHead,parallelRoutes:new Map(y.parallelRoutes),lazyDataResolved:!1,loading:y.loading},p.set(f,y)),e(y,h,l.slice(2),a))}}});let r=n(4213),o=n(3821),u=n(1784);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3821:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,n,u,l,a,i){if(0===Object.keys(u[1]).length){t.head=a;return}for(let c in u[1]){let s;let f=u[1][c],d=f[0],p=(0,r.createRouterCacheKey)(d),h=null!==l&&void 0!==l[1][c]?l[1][c]:null;if(n){let r=n.parallelRoutes.get(c);if(r){let n;let u=(null==i?void 0:i.kind)==="auto"&&i.status===o.PrefetchCacheEntryStatus.reusable,l=new Map(r),s=l.get(p);n=null!==h?{lazyData:null,rsc:h[2],prefetchRsc:null,head:null,prefetchHead:null,loading:h[3],parallelRoutes:new Map(null==s?void 0:s.parallelRoutes),lazyDataResolved:!1}:u&&s?{lazyData:s.lazyData,rsc:s.rsc,prefetchRsc:s.prefetchRsc,head:s.head,prefetchHead:s.prefetchHead,parallelRoutes:new Map(s.parallelRoutes),lazyDataResolved:s.lazyDataResolved,loading:s.loading}:{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map(null==s?void 0:s.parallelRoutes),lazyDataResolved:!1,loading:null},l.set(p,n),e(n,s,f,h||null,a,i),t.parallelRoutes.set(c,l);continue}}if(null!==h){let e=h[2],t=h[3];s={lazyData:null,rsc:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:t}}else s={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};let y=t.parallelRoutes.get(c);y?y.set(p,s):t.parallelRoutes.set(c,new Map([[p,s]])),e(s,void 0,f,h,a,i)}}}});let r=n(1784),o=n(1507);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6416:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleMutable",{enumerable:!0,get:function(){return u}});let r=n(6626);function o(e){return void 0!==e}function u(e,t){var n,u,l;let a=null==(u=t.shouldScroll)||u,i=e.nextUrl;if(o(t.patchedTree)){let n=(0,r.computeChangedPath)(e.tree,t.patchedTree);n?i=n:i||(i=e.canonicalUrl)}return{buildId:e.buildId,canonicalUrl:o(t.canonicalUrl)?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:o(t.pendingPush)?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:o(t.mpaNavigation)?t.mpaNavigation:e.pushRef.mpaNavigation,preserveCustomHistoryState:o(t.preserveCustomHistoryState)?t.preserveCustomHistoryState:e.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!a&&(!!o(null==t?void 0:t.scrollableSegments)||e.focusAndScrollRef.apply),onlyHashChange:!!t.hashFragment&&e.canonicalUrl.split("#",1)[0]===(null==(n=t.canonicalUrl)?void 0:n.split("#",1)[0]),hashFragment:a?t.hashFragment&&""!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:a?null!=(l=null==t?void 0:t.scrollableSegments)?l:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:o(t.patchedTree)?t.patchedTree:e.tree,nextUrl:i}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},774:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSegmentMismatch",{enumerable:!0,get:function(){return o}});let r=n(1294);function o(e,t,n){return(0,r.handleExternalUrl)(e,{},e.canonicalUrl,!0)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9863:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function e(t,n,o){let u=o.length<=2,[l,a]=o,i=(0,r.createRouterCacheKey)(a),c=n.parallelRoutes.get(l);if(!c)return;let s=t.parallelRoutes.get(l);if(s&&s!==c||(s=new Map(c),t.parallelRoutes.set(l,s)),u){s.delete(i);return}let f=c.get(i),d=s.get(i);d&&f&&(d===f&&(d={lazyData:d.lazyData,rsc:d.rsc,prefetchRsc:d.prefetchRsc,head:d.head,prefetchHead:d.prefetchHead,parallelRoutes:new Map(d.parallelRoutes),lazyDataResolved:d.lazyDataResolved},s.set(i,d)),e(d,f,o.slice(2)))}}});let r=n(1784);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4213:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return o}});let r=n(1784);function o(e,t,n){for(let o in n[1]){let u=n[1][o][0],l=(0,r.createRouterCacheKey)(u),a=t.parallelRoutes.get(o);if(a){let t=new Map(a);t.delete(l),e.parallelRoutes.set(o,t)}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},139:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,n){let r=t[0],o=n[0];if(Array.isArray(r)&&Array.isArray(o)){if(r[0]!==o[0]||r[2]!==o[2])return!0}else if(r!==o)return!0;if(t[4])return!n[4];if(n[4])return!0;let u=Object.values(t[1])[0],l=Object.values(n[1])[0];return!u||!l||e(u,l)}}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3060:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{abortTask:function(){return c},listenForDynamicRequest:function(){return a},updateCacheNodeOnNavigation:function(){return function e(t,n,a,c,s){let f=n[1],d=a[1],p=c[1],h=t.parallelRoutes,y=new Map(h),v={},g=null;for(let t in d){let n;let a=d[t],c=f[t],b=h.get(t),m=p[t],P=a[0],R=(0,u.createRouterCacheKey)(P),j=void 0!==c?c[0]:void 0,O=void 0!==b?b.get(R):void 0;if(null!==(n=P===r.PAGE_SEGMENT_KEY?l(a,void 0!==m?m:null,s):P===r.DEFAULT_SEGMENT_KEY?void 0!==c?{route:c,node:null,children:null}:l(a,void 0!==m?m:null,s):void 0!==j&&(0,o.matchSegment)(P,j)&&void 0!==O&&void 0!==c?null!=m?e(O,c,a,m,s):function(e){let t=i(e,null,null);return{route:e,node:t,children:null}}(a):l(a,void 0!==m?m:null,s))){null===g&&(g=new Map),g.set(t,n);let e=n.node;if(null!==e){let n=new Map(b);n.set(R,e),y.set(t,n)}v[t]=n.route}else v[t]=a}if(null===g)return null;let b={lazyData:null,rsc:t.rsc,prefetchRsc:t.prefetchRsc,head:t.head,prefetchHead:t.prefetchHead,loading:t.loading,parallelRoutes:y,lazyDataResolved:!1};return{route:function(e,t){let n=[e[0],t];return 2 in e&&(n[2]=e[2]),3 in e&&(n[3]=e[3]),4 in e&&(n[4]=e[4]),n}(a,v),node:b,children:g}}},updateCacheNodeOnPopstateRestoration:function(){return function e(t,n){let r=n[1],o=t.parallelRoutes,l=new Map(o);for(let t in r){let n=r[t],a=n[0],i=(0,u.createRouterCacheKey)(a),c=o.get(t);if(void 0!==c){let r=c.get(i);if(void 0!==r){let o=e(r,n),u=new Map(c);u.set(i,o),l.set(t,u)}}}let a=t.rsc,i=d(a)&&"pending"===a.status;return{lazyData:null,rsc:a,head:t.head,prefetchHead:i?t.prefetchHead:null,prefetchRsc:i?t.prefetchRsc:null,loading:i?t.loading:null,parallelRoutes:l,lazyDataResolved:!1}}}});let r=n(0),o=n(6237),u=n(1784);function l(e,t,n){let r=i(e,t,n);return{route:e,node:r,children:null}}function a(e,t){t.then(t=>{for(let n of t[0]){let t=n.slice(0,-3),r=n[n.length-3],l=n[n.length-2],a=n[n.length-1];"string"!=typeof t&&function(e,t,n,r,l){let a=e;for(let e=0;e{c(e,t)})}function i(e,t,n){let r=e[1],o=null!==t?t[1]:null,l=new Map;for(let e in r){let t=r[e],a=null!==o?o[e]:null,c=t[0],s=(0,u.createRouterCacheKey)(c),f=i(t,void 0===a?null:a,n),d=new Map;d.set(s,f),l.set(e,d)}let a=0===l.size,c=null!==t?t[2]:null,s=null!==t?t[3]:null;return{lazyData:null,parallelRoutes:l,prefetchRsc:void 0!==c?c:null,prefetchHead:a?n:null,loading:void 0!==s?s:null,rsc:p(),head:a?p():null,lazyDataResolved:!1}}function c(e,t){let n=e.node;if(null===n)return;let r=e.children;if(null===r)s(e.route,n,t);else for(let e of r.values())c(e,t);e.node=null}function s(e,t,n){let r=e[1],o=t.parallelRoutes;for(let e in r){let t=r[e],l=o.get(e);if(void 0===l)continue;let a=t[0],i=(0,u.createRouterCacheKey)(a),c=l.get(i);void 0!==c&&s(t,c,n)}let l=t.rsc;d(l)&&(null===n?l.resolve(null):l.reject(n));let a=t.head;d(a)&&a.resolve(null)}let f=Symbol();function d(e){return e&&e.tag===f}function p(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});return n.status="pending",n.resolve=t=>{"pending"===n.status&&(n.status="fulfilled",n.value=t,e(t))},n.reject=e=>{"pending"===n.status&&(n.status="rejected",n.reason=e,t(e))},n.tag=f,n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6004:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createPrefetchCacheEntryForInitialLoad:function(){return c},getOrCreatePrefetchCacheEntry:function(){return i},prunePrefetchCache:function(){return f}});let r=n(3174),o=n(1283),u=n(1507),l=n(9218);function a(e,t){let n=(0,r.createHrefFromUrl)(e,!1);return t?t+"%"+n:n}function i(e){let t,{url:n,nextUrl:r,tree:o,buildId:l,prefetchCache:i,kind:c}=e,f=a(n,r),d=i.get(f);if(d)t=d;else{let e=a(n),r=i.get(e);r&&(t=r)}return t?(t.status=h(t),t.kind!==u.PrefetchKind.FULL&&c===u.PrefetchKind.FULL)?s({tree:o,url:n,buildId:l,nextUrl:r,prefetchCache:i,kind:null!=c?c:u.PrefetchKind.TEMPORARY}):(c&&t.kind===u.PrefetchKind.TEMPORARY&&(t.kind=c),t):s({tree:o,url:n,buildId:l,nextUrl:r,prefetchCache:i,kind:c||u.PrefetchKind.TEMPORARY})}function c(e){let{nextUrl:t,tree:n,prefetchCache:r,url:o,kind:l,data:i}=e,[,,,c]=i,s=c?a(o,t):a(o),f={treeAtTimeOfPrefetch:n,data:Promise.resolve(i),kind:l,prefetchTime:Date.now(),lastUsedTime:Date.now(),key:s,status:u.PrefetchCacheEntryStatus.fresh};return r.set(s,f),f}function s(e){let{url:t,kind:n,tree:r,nextUrl:i,buildId:c,prefetchCache:s}=e,f=a(t),d=l.prefetchQueue.enqueue(()=>(0,o.fetchServerResponse)(t,r,i,c,n).then(e=>{let[,,,n]=e;return n&&function(e){let{url:t,nextUrl:n,prefetchCache:r}=e,o=a(t),u=r.get(o);if(!u)return;let l=a(t,n);r.set(l,u),r.delete(o)}({url:t,nextUrl:i,prefetchCache:s}),e})),p={treeAtTimeOfPrefetch:r,data:d,kind:n,prefetchTime:Date.now(),lastUsedTime:null,key:f,status:u.PrefetchCacheEntryStatus.fresh};return s.set(f,p),p}function f(e){for(let[t,n]of e)h(n)===u.PrefetchCacheEntryStatus.expired&&e.delete(t)}let d=1e3*Number("30"),p=1e3*Number("300");function h(e){let{kind:t,prefetchTime:n,lastUsedTime:r}=e;return Date.now()<(null!=r?r:n)+d?r?u.PrefetchCacheEntryStatus.reusable:u.PrefetchCacheEntryStatus.fresh:"auto"===t&&Date.now(){let[n,f]=t,h=!1;if(E.lastUsedTime||(E.lastUsedTime=Date.now(),h=!0),"string"==typeof n)return v(e,R,n,S);if(document.getElementById("__next-page-redirect"))return v(e,R,O,S);let b=e.tree,m=e.cache,T=[];for(let t of n){let n=t.slice(0,-4),r=t.slice(-3)[0],c=["",...n],f=(0,u.applyRouterStatePatchToTree)(c,b,r,O);if(null===f&&(f=(0,u.applyRouterStatePatchToTree)(c,w,r,O)),null!==f){if((0,a.isNavigatingToNewRootLayout)(b,f))return v(e,R,O,S);let u=(0,d.createEmptyCacheNode)(),P=!1;for(let e of(E.status!==i.PrefetchCacheEntryStatus.stale||h?P=(0,s.applyFlightData)(m,u,t,E):(P=function(e,t,n,r){let o=!1;for(let u of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.loading=t.loading,e.parallelRoutes=new Map(t.parallelRoutes),g(r).map(e=>[...n,...e])))(0,y.clearCacheNodeDataForSegmentPath)(e,t,u),o=!0;return o}(u,m,n,r),E.lastUsedTime=Date.now()),(0,l.shouldHardNavigate)(c,b)?(u.rsc=m.rsc,u.prefetchRsc=m.prefetchRsc,(0,o.invalidateCacheBelowFlightSegmentPath)(u,m,n),R.cache=u):P&&(R.cache=u),b=f,g(r))){let t=[...n,...e];t[t.length-1]!==p.DEFAULT_SEGMENT_KEY&&T.push(t)}}}return R.patchedTree=b,R.canonicalUrl=f?(0,r.createHrefFromUrl)(f):O,R.pendingPush=S,R.scrollableSegments=T,R.hashFragment=j,R.shouldScroll=P,(0,c.handleMutable)(e,R)},()=>e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9218:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{prefetchQueue:function(){return l},prefetchReducer:function(){return a}});let r=n(7325),o=n(3858),u=n(6004),l=new o.PromiseQueue(5);function a(e,t){(0,u.prunePrefetchCache)(e.prefetchCache);let{url:n}=t;return n.searchParams.delete(r.NEXT_RSC_UNION_QUERY),(0,u.getOrCreatePrefetchCacheEntry)({url:n,nextUrl:e.nextUrl,prefetchCache:e.prefetchCache,kind:t.kind,tree:e.tree,buildId:e.buildId}),e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5239:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return h}});let r=n(1283),o=n(3174),u=n(9684),l=n(139),a=n(1294),i=n(6416),c=n(3821),s=n(5751),f=n(774),d=n(5914),p=n(4922);function h(e,t){let{origin:n}=t,h={},y=e.canonicalUrl,v=e.tree;h.preserveCustomHistoryState=!1;let g=(0,s.createEmptyCacheNode)(),b=(0,d.hasInterceptionRouteInCurrentTree)(e.tree);return g.lazyData=(0,r.fetchServerResponse)(new URL(y,n),[v[0],v[1],v[2],"refetch"],b?e.nextUrl:null,e.buildId),g.lazyData.then(async n=>{let[r,s]=n;if("string"==typeof r)return(0,a.handleExternalUrl)(e,h,r,e.pushRef.pendingPush);for(let n of(g.lazyData=null,r)){if(3!==n.length)return console.log("REFRESH FAILED"),e;let[r]=n,i=(0,u.applyRouterStatePatchToTree)([""],v,r,e.canonicalUrl);if(null===i)return(0,f.handleSegmentMismatch)(e,t,r);if((0,l.isNavigatingToNewRootLayout)(v,i))return(0,a.handleExternalUrl)(e,h,y,e.pushRef.pendingPush);let d=s?(0,o.createHrefFromUrl)(s):void 0;s&&(h.canonicalUrl=d);let[m,P]=n.slice(-2);if(null!==m){let e=m[2];g.rsc=e,g.prefetchRsc=null,(0,c.fillLazyItemsTillLeafWithHead)(g,void 0,r,m,P),h.prefetchCache=new Map}await (0,p.refreshInactiveParallelSegments)({state:e,updatedTree:i,updatedCache:g,includeNextUrl:b}),h.cache=g,h.patchedTree=i,h.canonicalUrl=y,v=i}return(0,i.handleMutable)(e,h)},()=>e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6131:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return u}});let r=n(3174),o=n(6626);function u(e,t){var n;let{url:u,tree:l}=t,a=(0,r.createHrefFromUrl)(u),i=l||e.tree,c=e.cache;return{buildId:e.buildId,canonicalUrl:a,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:c,prefetchCache:e.prefetchCache,tree:i,nextUrl:null!=(n=(0,o.extractPathFromFlightRouterState)(i))?n:u.pathname}}n(3060),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4549:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return m}});let r=n(4590),o=n(7325),u=n(4897),l=n(3174),a=n(1294),i=n(9684),c=n(139),s=n(6416),f=n(3821),d=n(5751),p=n(5914),h=n(774),y=n(4922),{createFromFetch:v,encodeReply:g}=n(6671);async function b(e,t,n){let l,{actionId:a,actionArgs:i}=n,c=await g(i),s=await fetch("",{method:"POST",headers:{Accept:o.RSC_CONTENT_TYPE_HEADER,[o.ACTION]:a,[o.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(e.tree)),...t?{[o.NEXT_URL]:t}:{}},body:c}),f=s.headers.get("x-action-redirect");try{let e=JSON.parse(s.headers.get("x-action-revalidated")||"[[],0,0]");l={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){l={paths:[],tag:!1,cookie:!1}}let d=f?new URL((0,u.addBasePath)(f),new URL(e.canonicalUrl,window.location.href)):void 0;if(s.headers.get("content-type")===o.RSC_CONTENT_TYPE_HEADER){let e=await v(Promise.resolve(s),{callServer:r.callServer});if(f){let[,t]=null!=e?e:[];return{actionFlightData:t,redirectLocation:d,revalidatedParts:l}}let[t,[,n]]=null!=e?e:[];return{actionResult:t,actionFlightData:n,redirectLocation:d,revalidatedParts:l}}return{redirectLocation:d,revalidatedParts:l}}function m(e,t){let{resolve:n,reject:r}=t,o={},u=e.canonicalUrl,v=e.tree;o.preserveCustomHistoryState=!1;let g=e.nextUrl&&(0,p.hasInterceptionRouteInCurrentTree)(e.tree)?e.nextUrl:null;return o.inFlightServerAction=b(e,g,t),o.inFlightServerAction.then(async r=>{let{actionResult:p,actionFlightData:b,redirectLocation:m}=r;if(m&&(e.pushRef.pendingPush=!0,o.pendingPush=!0),!b)return(n(p),m)?(0,a.handleExternalUrl)(e,o,m.href,e.pushRef.pendingPush):e;if("string"==typeof b)return(0,a.handleExternalUrl)(e,o,b,e.pushRef.pendingPush);for(let n of(o.inFlightServerAction=null,b)){if(3!==n.length)return console.log("SERVER ACTION APPLY FAILED"),e;let[r]=n,s=(0,i.applyRouterStatePatchToTree)([""],v,r,m?(0,l.createHrefFromUrl)(m):e.canonicalUrl);if(null===s)return(0,h.handleSegmentMismatch)(e,t,r);if((0,c.isNavigatingToNewRootLayout)(v,s))return(0,a.handleExternalUrl)(e,o,u,e.pushRef.pendingPush);let[p,b]=n.slice(-2),P=null!==p?p[2]:null;if(null!==P){let t=(0,d.createEmptyCacheNode)();t.rsc=P,t.prefetchRsc=null,(0,f.fillLazyItemsTillLeafWithHead)(t,void 0,r,p,b),await (0,y.refreshInactiveParallelSegments)({state:e,updatedTree:s,updatedCache:t,includeNextUrl:!!g}),o.cache=t,o.prefetchCache=new Map}o.patchedTree=s,o.canonicalUrl=u,v=s}if(m){let e=(0,l.createHrefFromUrl)(m,!1);o.canonicalUrl=e}return n(p),(0,s.handleMutable)(e,o)},t=>(r(t),e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8289:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return f}});let r=n(3174),o=n(9684),u=n(139),l=n(1294),a=n(9607),i=n(6416),c=n(5751),s=n(774);function f(e,t){let{serverResponse:n}=t,[f,d]=n,p={};if(p.preserveCustomHistoryState=!1,"string"==typeof f)return(0,l.handleExternalUrl)(e,p,f,e.pushRef.pendingPush);let h=e.tree,y=e.cache;for(let n of f){let i=n.slice(0,-4),[f]=n.slice(-3,-2),v=(0,o.applyRouterStatePatchToTree)(["",...i],h,f,e.canonicalUrl);if(null===v)return(0,s.handleSegmentMismatch)(e,t,f);if((0,u.isNavigatingToNewRootLayout)(h,v))return(0,l.handleExternalUrl)(e,p,e.canonicalUrl,e.pushRef.pendingPush);let g=d?(0,r.createHrefFromUrl)(d):void 0;g&&(p.canonicalUrl=g);let b=(0,c.createEmptyCacheNode)();(0,a.applyFlightData)(y,b,n),p.patchedTree=v,p.cache=b,y=b,h=v}return(0,i.handleMutable)(e,p)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4922:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{addRefreshMarkerToActiveParallelSegments:function(){return function e(t,n){let[r,o,,l]=t;for(let a in r.includes(u.PAGE_SEGMENT_KEY)&&"refresh"!==l&&(t[2]=n,t[3]="refresh"),o)e(o[a],n)}},refreshInactiveParallelSegments:function(){return l}});let r=n(9607),o=n(1283),u=n(0);async function l(e){let t=new Set;await a({...e,rootTree:e.updatedTree,fetchedSegments:t})}async function a(e){let{state:t,updatedTree:n,updatedCache:u,includeNextUrl:l,fetchedSegments:i,rootTree:c=n}=e,[,s,f,d]=n,p=[];if(f&&f!==location.pathname+location.search&&"refresh"===d&&!i.has(f)){i.add(f);let e=(0,o.fetchServerResponse)(new URL(f,location.origin),[c[0],c[1],c[2],"refetch"],l?t.nextUrl:null,t.buildId).then(e=>{let t=e[0];if("string"!=typeof t)for(let e of t)(0,r.applyFlightData)(u,u,e)});p.push(e)}for(let e in s){let n=a({state:t,updatedTree:s[e],updatedCache:u,includeNextUrl:l,fetchedSegments:i,rootTree:c});p.push(n)}await Promise.all(p)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1507:function(e,t){"use strict";var n,r,o,u;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return f},ACTION_NAVIGATE:function(){return a},ACTION_PREFETCH:function(){return s},ACTION_REFRESH:function(){return l},ACTION_RESTORE:function(){return i},ACTION_SERVER_ACTION:function(){return d},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return p}});let l="refresh",a="navigate",i="restore",c="server-patch",s="prefetch",f="fast-refresh",d="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(o=n||(n={})).AUTO="auto",o.FULL="full",o.TEMPORARY="temporary",(u=r||(r={})).fresh="fresh",u.reusable="reusable",u.expired="expired",u.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},643:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return f}});let r=n(1507),o=n(1294),u=n(8289),l=n(6131),a=n(5239),i=n(9218),c=n(1129),s=n(4549),f="undefined"==typeof window?function(e,t){return e}:function(e,t){switch(t.type){case r.ACTION_NAVIGATE:return(0,o.navigateReducer)(e,t);case r.ACTION_SERVER_PATCH:return(0,u.serverPatchReducer)(e,t);case r.ACTION_RESTORE:return(0,l.restoreReducer)(e,t);case r.ACTION_REFRESH:return(0,a.refreshReducer)(e,t);case r.ACTION_FAST_REFRESH:return(0,c.fastRefreshReducer)(e,t);case r.ACTION_PREFETCH:return(0,i.prefetchReducer)(e,t);case r.ACTION_SERVER_ACTION:return(0,s.serverActionReducer)(e,t);default:throw Error("Unknown action")}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4740:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,n){let[o,u]=n,[l,a]=t;return(0,r.matchSegment)(l,o)?!(t.length<=2)&&e(t.slice(2),u[a]):!!Array.isArray(l)}}});let r=n(6237);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8897:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createDynamicallyTrackedSearchParams:function(){return a},createUntrackedSearchParams:function(){return l}});let r=n(4936),o=n(2441),u=n(7991);function l(e){let t=r.staticGenerationAsyncStorage.getStore();return t&&t.forceStatic?{}:e}function a(e){let t=r.staticGenerationAsyncStorage.getStore();return t?t.forceStatic?{}:t.isStaticGeneration||t.dynamicShouldError?new Proxy({},{get:(e,n,r)=>("string"==typeof n&&(0,o.trackDynamicDataAccessed)(t,"searchParams."+n),u.ReflectAdapter.get(e,n,r)),has:(e,n)=>("string"==typeof n&&(0,o.trackDynamicDataAccessed)(t,"searchParams."+n),Reflect.has(e,n)),ownKeys:e=>((0,o.trackDynamicDataAccessed)(t,"searchParams"),Reflect.ownKeys(e))}):e:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4936:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return r.staticGenerationAsyncStorage}});let r=n(7685);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5108:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{StaticGenBailoutError:function(){return r},isStaticGenBailoutError:function(){return o}});let n="NEXT_STATIC_GEN_BAILOUT";class r extends Error{constructor(...e){super(...e),this.code=n}}function o(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1108:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unresolvedThenable",{enumerable:!0,get:function(){return n}});let n={then:()=>{}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2114:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{useReducerWithReduxDevtools:function(){return i},useUnwrapState:function(){return a}});let r=n(6720)._(n(2265)),o=n(1507),u=n(1427);function l(e){if(e instanceof Map){let t={};for(let[n,r]of e.entries()){if("function"==typeof r){t[n]="fn()";continue}if("object"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r._bundlerConfig){t[n]="FlightData";continue}}t[n]=l(r)}return t}if("object"==typeof e&&null!==e){let t={};for(let n in e){let r=e[n];if("function"==typeof r){t[n]="fn()";continue}if("object"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r.hasOwnProperty("_bundlerConfig")){t[n]="FlightData";continue}}t[n]=l(r)}return t}return Array.isArray(e)?e.map(l):e}function a(e){return(0,o.isThenable)(e)?(0,r.use)(e):e}let i="undefined"!=typeof window?function(e){let[t,n]=r.default.useState(e),o=(0,r.useContext)(u.ActionQueueContext);if(!o)throw Error("Invariant: Missing ActionQueueContext");let a=(0,r.useRef)(),i=(0,r.useRef)();return(0,r.useEffect)(()=>{if(!a.current&&!1!==i.current){if(void 0===i.current&&void 0===window.__REDUX_DEVTOOLS_EXTENSION__){i.current=!1;return}return a.current=window.__REDUX_DEVTOOLS_EXTENSION__.connect({instanceId:8e3,name:"next-router"}),a.current&&(a.current.init(l(e)),o&&(o.devToolsInstance=a.current)),()=>{a.current=void 0}}},[e,o]),[t,(0,r.useCallback)(t=>{o.state||(o.state=e),o.dispatch(t,n)},[o,e]),(0,r.useCallback)(e=>{a.current&&a.current.send({type:"RENDER_SYNC"},l(e))},[])]}:function(e){return[e,()=>{},()=>{}]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9404:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let r=n(5121);function o(e){return(0,r.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8157:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return u}});let r=n(7741),o=n(1465),u=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:n,hash:u}=(0,o.parsePath)(e);return""+(0,r.removeTrailingSlash)(t)+n+u};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6124:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(5592);function o(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};(0,r.isBailoutToCSRError)(e)||t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7599:function(e,t,n){"use strict";function r(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return r}}),n(9404),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9176:function(e,t){"use strict";function n(e,t){var n=e.length;for(e.push(t);0>>1,o=e[r];if(0>>1;ru(i,n))cu(s,i)?(e[r]=s,e[c]=n,r=c):(e[r]=i,e[a]=n,r=a);else if(cu(s,n))e[r]=s,e[c]=n,r=c;else break}}return t}function u(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var l,a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,c=i.now();t.unstable_now=function(){return i.now()-c}}var s=[],f=[],d=1,p=null,h=3,y=!1,v=!1,g=!1,b="function"==typeof setTimeout?setTimeout:null,m="function"==typeof clearTimeout?clearTimeout:null,P="undefined"!=typeof setImmediate?setImmediate:null;function R(e){for(var t=r(f);null!==t;){if(null===t.callback)o(f);else if(t.startTime<=e)o(f),t.sortIndex=t.expirationTime,n(s,t);else break;t=r(f)}}function j(e){if(g=!1,R(e),!v){if(null!==r(s))v=!0,A();else{var t=r(f);null!==t&&N(j,t.startTime-e)}}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var O=!1,S=-1,E=5,w=-1;function T(){return!(t.unstable_now()-we&&T());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var i=a(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){p.callback=i,R(e),n=!0;break t}p===r(s)&&o(s),R(e)}else o(s);p=r(s)}if(null!==p)n=!0;else{var c=r(f);null!==c&&N(j,c.startTime-e),n=!1}}break e}finally{p=null,h=u,y=!1}n=void 0}}finally{n?l():O=!1}}}if("function"==typeof P)l=function(){P(M)};else if("undefined"!=typeof MessageChannel){var x=new MessageChannel,C=x.port2;x.port1.onmessage=M,l=function(){C.postMessage(null)}}else l=function(){b(M,0)};function A(){O||(O=!0,l())}function N(e,n){S=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||y||(v=!0,A())},t.unstable_forceFrameRate=function(e){0>e||125l?(e.sortIndex=u,n(f,e),null===r(s)&&e===r(f)&&(g?(m(S),S=-1):g=!0,N(j,u-l))):(e.sortIndex=a,n(s,e),v||y||(v=!0,A())),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},5689:function(e,t,n){"use strict";e.exports=n(9176)},1358:function(e,t){"use strict";function n(e){return new URL(e,"http://n").pathname}function r(e){return/https?:\/\//.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getPathname:function(){return n},isFullStringUrl:function(){return r}})},2441:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Postpone:function(){return d},createPostponedAbortSignal:function(){return b},createPrerenderState:function(){return c},formatDynamicAPIAccesses:function(){return v},markCurrentScopeAsDynamic:function(){return s},trackDynamicDataAccessed:function(){return f},trackDynamicFetch:function(){return p},usedDynamicAPIs:function(){return y}});let o=(r=n(2265))&&r.__esModule?r:{default:r},u=n(7910),l=n(5108),a=n(1358),i="function"==typeof o.default.unstable_postpone;function c(e){return{isDebugSkeleton:e,dynamicAccesses:[]}}function s(e,t){let n=(0,a.getPathname)(e.urlPathname);if(!e.isUnstableCacheCallback){if(e.dynamicShouldError)throw new l.StaticGenBailoutError(`Route ${n} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)h(e.prerenderState,t,n);else if(e.revalidate=0,e.isStaticGeneration){let r=new u.DynamicServerError(`Route ${n} couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=r.stack,r}}}function f(e,t){let n=(0,a.getPathname)(e.urlPathname);if(e.isUnstableCacheCallback)throw Error(`Route ${n} used "${t}" inside a function cached with "unstable_cache(...)". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "${t}" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`);if(e.dynamicShouldError)throw new l.StaticGenBailoutError(`Route ${n} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)h(e.prerenderState,t,n);else if(e.revalidate=0,e.isStaticGeneration){let r=new u.DynamicServerError(`Route ${n} couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=r.stack,r}}function d({reason:e,prerenderState:t,pathname:n}){h(t,e,n)}function p(e,t){e.prerenderState&&h(e.prerenderState,t,e.urlPathname)}function h(e,t,n){g();let r=`Route ${n} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;e.dynamicAccesses.push({stack:e.isDebugSkeleton?Error().stack:void 0,expression:t}),o.default.unstable_postpone(r)}function y(e){return e.dynamicAccesses.length>0}function v(e){return e.dynamicAccesses.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" ()")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}: -${t}`))}function g(){if(!i)throw Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js")}function b(e){g();let t=new AbortController;try{o.default.unstable_postpone(e)}catch(e){t.abort(e)}return t.signal}},4286:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentParam",{enumerable:!0,get:function(){return o}});let r=n(2269);function o(e){let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:t?"catchall-intercepted":"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:t?"dynamic-intercepted":"dynamic",param:e.slice(1,-1)}:null}},3243:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HMR_ACTIONS_SENT_TO_BROWSER",{enumerable:!0,get:function(){return n}}),(r=n||(n={})).ADDED_PAGE="addedPage",r.REMOVED_PAGE="removedPage",r.RELOAD_PAGE="reloadPage",r.SERVER_COMPONENT_CHANGES="serverComponentChanges",r.MIDDLEWARE_CHANGES="middlewareChanges",r.CLIENT_CHANGES="clientChanges",r.SERVER_ONLY_CHANGES="serverOnlyChanges",r.SYNC="sync",r.BUILT="built",r.BUILDING="building",r.DEV_PAGES_MANIFEST_UPDATE="devPagesManifestUpdate",r.TURBOPACK_MESSAGE="turbopack-message",r.SERVER_ERROR="serverError",r.TURBOPACK_CONNECTED="turbopack-connected"},2269:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return l},isInterceptionRouteAppPath:function(){return u}});let r=n(3330),o=["(..)(..)","(.)","(..)","(...)"];function u(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function l(e){let t,n,u;for(let r of e.split("/"))if(n=o.find(e=>r.startsWith(e))){[t,u]=e.split(n,2);break}if(!t||!n||!u)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,r.normalizeAppPath)(t),n){case"(.)":u="/"===t?`/${u}`:t+"/"+u;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);u=t.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":let l=t.split("/");if(l.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);u=l.slice(0,-2).concat(u).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:u}}},7991:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return n}});class n{static get(e,t,n){let r=Reflect.get(e,t,n);return"function"==typeof r?r.bind(e):r}static set(e,t,n,r){return Reflect.set(e,t,n,r)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},4467:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return l},LayoutRouterContext:function(){return u},MissingSlotContext:function(){return i},TemplateContext:function(){return a}});let r=n(1609)._(n(2265)),o=r.default.createContext(null),u=r.default.createContext(null),l=r.default.createContext(null),a=r.default.createContext(null),i=r.default.createContext(new Set)},4736:function(e,t){"use strict";function n(e){let t=5381;for(let n=0;n>>0}function r(e){return n(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{djb2Hash:function(){return n},hexHash:function(){return r}})},6590:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return r}});let r=n(1609)._(n(2265)).default.createContext({})},8056:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PathParamsContext:function(){return l},PathnameContext:function(){return u},SearchParamsContext:function(){return o}});let r=n(2265),o=(0,r.createContext)(null),u=(0,r.createContext)(null),l=(0,r.createContext)(null)},5592:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{BailoutToCSRError:function(){return r},isBailoutToCSRError:function(){return o}});let n="BAILOUT_TO_CLIENT_SIDE_RENDERING";class r extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=n}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}},8558:function(e,t){"use strict";function n(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return n}})},1427:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ActionQueueContext:function(){return a},createMutableActionQueue:function(){return s}});let r=n(6720),o=n(1507),u=n(643),l=r._(n(2265)),a=l.default.createContext(null);function i(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending?c({actionQueue:e,action:e.pending,setState:t}):e.needsRefresh&&(e.needsRefresh=!1,e.dispatch({type:o.ACTION_REFRESH,origin:window.location.origin},t)))}async function c(e){let{actionQueue:t,action:n,setState:r}=e,u=t.state;if(!u)throw Error("Invariant: Router state not initialized");t.pending=n;let l=n.payload,a=t.action(u,l);function c(e){n.discarded||(t.state=e,t.devToolsInstance&&t.devToolsInstance.send(l,e),i(t,r),n.resolve(e))}(0,o.isThenable)(a)?a.then(c,e=>{i(t,r),n.reject(e)}):c(a)}function s(){let e={state:null,dispatch:(t,n)=>(function(e,t,n){let r={resolve:n,reject:()=>{}};if(t.type!==o.ACTION_RESTORE){let e=new Promise((e,t)=>{r={resolve:e,reject:t}});(0,l.startTransition)(()=>{n(e)})}let u={payload:t,next:null,resolve:r.resolve,reject:r.reject};null===e.pending?(e.last=u,c({actionQueue:e,action:u,setState:n})):t.type===o.ACTION_NAVIGATE||t.type===o.ACTION_RESTORE?(e.pending.discarded=!0,e.last=u,e.pending.payload.type===o.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),c({actionQueue:e,action:u,setState:n})):(null!==e.last&&(e.last.next=u),e.last=u)})(e,t,n),action:async(e,t)=>{if(null===e)throw Error("Invariant: Router state not initialized");return(0,u.reducer)(e,t)},pending:null,last:null};return e}},2707:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let r=n(1465);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:n,query:o,hash:u}=(0,r.parsePath)(e);return""+t+n+o+u}},3330:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{normalizeAppPath:function(){return u},normalizeRscURL:function(){return l}});let r=n(8558),o=n(0);function u(e){return(0,r.ensureLeadingSlash)(e.split("/").reduce((e,t,n,r)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&n===r.length-1?e:e+"/"+t,""))}function l(e){return e.replace(/\.rsc($|\?)/,"$1")}},6180:function(e,t){"use strict";function n(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let n=document.documentElement,r=n.style.scrollBehavior;n.style.scrollBehavior="auto",t.dontForceLayout||n.getClientRects(),e(),n.style.scrollBehavior=r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return n}})},4092:function(e,t){"use strict";function n(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return n}})},1465:function(e,t){"use strict";function n(e){let t=e.indexOf("#"),n=e.indexOf("?"),r=n>-1&&(t<0||n-1?{pathname:e.substring(0,r?n:t),query:r?e.substring(n,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return n}})},5121:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let r=n(1465);function o(e,t){if("string"!=typeof e)return!1;let{pathname:n}=(0,r.parsePath)(e);return n===t||n.startsWith(t+"/")}},7741:function(e,t){"use strict";function n(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return n}})},0:function(e,t){"use strict";function n(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DEFAULT_SEGMENT_KEY:function(){return o},PAGE_SEGMENT_KEY:function(){return r},isGroupSegment:function(){return n}});let r="__PAGE__",o="__DEFAULT__"},8005:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return u}});let r=n(6720)._(n(2265)),o=r.default.createContext(null);function u(e){let t=(0,r.useContext)(o);t&&t(e)}},2301:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},1493:function(e,t,n){"use strict";/** - * @license React - * react-jsx-runtime.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r=n(2265),o=Symbol.for("react.element"),u=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,u={},c=null,s=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(s=t.ref),t)l.call(t,r)&&!i.hasOwnProperty(r)&&(u[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===u[r]&&(u[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:s,props:u,_owner:a.current}}t.Fragment=u,t.jsx=c,t.jsxs=c},2281:function(e,t,n){"use strict";e.exports=n(1493)},8293:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(6713).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6713:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return u}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let o=globalThis.AsyncLocalStorage;function u(){return o?new o:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(6713).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7685:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(6713).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4040:function(e,t,n){"use strict";var r=n(4887);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},4887:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4417)},7950:function(e,t,n){"use strict";var r=n(4887),o={stream:!0},u=new Map;function l(e){var t=n(e);return"function"!=typeof t.then||"fulfilled"===t.status?null:(t.then(function(e){t.status="fulfilled",t.value=e},function(e){t.status="rejected",t.reason=e}),t)}function a(){}var i=new Map,c=n.u;n.u=function(e){var t=i.get(e);return void 0!==t?t:c(e)};var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,f=Symbol.for("react.element"),d=Symbol.for("react.lazy"),p=Symbol.iterator,h=Array.isArray,y=Object.getPrototypeOf,v=Object.prototype,g=new WeakMap;function b(e,t,n,r){this.status=e,this.value=t,this.reason=n,this._response=r}function m(e){switch(e.status){case"resolved_model":w(e);break;case"resolved_module":T(e)}switch(e.status){case"fulfilled":return e.value;case"pending":case"blocked":case"cyclic":throw e;default:throw e.reason}}function P(e,t){for(var n=0;nh?(v=h,h=3,p++):(v=0,h=3);continue;case 2:44===(P=d[p++])?h=4:g=g<<4|(96d.length&&(P=-1)}var S=d.byteOffset+p;if(-1e.length)&&(t=e.length);for(var n=0,r=Array(t);n0||!o(t.scriptURL,a.sn.toString())||performance.now()>a.un+6e4?(a.vn=t,e.removeEventListener("updatefound",a.cn)):(a.hn=t,a.an.add(t),a.rn.resolve(t)),++a.tn,t.addEventListener("statechange",a.ln)},a.ln=function(e){var t=a.fn,n=e.target,r=n.state,o=n===a.vn,l={sw:n,isExternal:o,originalEvent:e};!o&&a.mn&&(l.isUpdate=!0),a.dispatchEvent(new u(r,l)),"installed"===r?a.wn=self.setTimeout(function(){"installed"===r&&t.waiting===n&&a.dispatchEvent(new u("waiting",l))},200):"activating"===r&&(clearTimeout(a.wn),o||a.en.resolve(n))},a.dn=function(e){var t=a.hn,n=t!==navigator.serviceWorker.controller;a.dispatchEvent(new u("controlling",{isExternal:n,originalEvent:e,sw:t,isUpdate:a.mn})),n||a.on.resolve(t)},a.gn=(i=function(e){var t=e.data,n=e.ports,r=e.source;return l(a.getSW(),function(){a.an.has(r)&&a.dispatchEvent(new u("message",{data:t,originalEvent:e,ports:n,sw:r}))})},function(){for(var e=[],t=0;t=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}(this.Sn(e.type));!(t=r()).done;)(0,t.value)(e)},t.Sn=function(e){return this.Pn.has(e)||this.Pn.set(e,new Set),this.Pn.get(e)},e}());if("undefined"!=typeof window&&"serviceWorker"in navigator&&"undefined"!=typeof caches){let e;window.workbox=new s(window.location.origin+"/sw.js",{scope:"/"}),window.workbox.register();{let t=async t=>{if(!window.navigator.onLine||!t)return;let n=t instanceof URL?t.toString():"string"==typeof t?t:void 0;if("string"==typeof n&&"/"===n){if(e)e.postMessage({type:"__START_URL_CACHE__",url:n});else{let e=await fetch(t);if(!e.redirected)return(await caches.open("start-url")).put(t,e)}}},n=history.pushState;history.pushState=(...e)=>{n.apply(history,e),t(e[2])};let r=history.replaceState;history.replaceState=(...e)=>{r.apply(history,e),t(e[2])},window.addEventListener("online",()=>{t(window.location.pathname)})}window.addEventListener("online",()=>location.reload())}},8123:function(e,t,n){"use strict";function r(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}n.r(t),n.d(t,{_:function(){return r},_class_private_field_loose_base:function(){return r}})},2365:function(e,t,n){"use strict";n.r(t),n.d(t,{_:function(){return o},_class_private_field_loose_key:function(){return o}});var r=0;function o(e){return"__private_"+r+++"_"+e}},1609:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.r(t),n.d(t,{_:function(){return r},_interop_require_default:function(){return r}})},6720:function(e,t,n){"use strict";function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var a=u?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(o,l,a):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}n.r(t),n.d(t,{_:function(){return o},_interop_require_wildcard:function(){return o}})}}]); \ No newline at end of file diff --git a/_next/static/chunks/466-8cc490905f2721ca.js b/_next/static/chunks/466-8cc490905f2721ca.js deleted file mode 100644 index dec41c4df778e1ec82472662467a0f2872af08a3..0000000000000000000000000000000000000000 --- a/_next/static/chunks/466-8cc490905f2721ca.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[466],{7470:function(e,t,n){"use strict";n.d(t,{H:function(){return c}});var r=n(1386),o=n(2166),i=n(2202),l=n(5986),a=n(2265),u=n(2281),s=n(357);function c(e,t={defaultThemeColor:s.env.DEFAULT_ICON_THEME_COLOR||"$color",defaultStrokeWidth:2,fallbackColor:"#000"}){return n=>{let[a,s,c]=(0,r.Lb)(n,{...t,forComponent:o.xv,resolveValues:"web"}),d=s.color??t.defaultThemeColor,f=(0,i.E0)((d?c[d]:void 0)||s.color||(a.disableTheme?null:c.color)||t.fallbackColor),p="string"==typeof a.size?(0,l.Wi)(a.size,"size"):a.size,h="string"==typeof a.strokeWidth?(0,l.Wi)(a.strokeWidth,"size"):a.strokeWidth??`${t.defaultStrokeWidth}`;return(0,u.jsx)(e,{...a,color:f,size:p,strokeWidth:h,style:s})}}a.keep},3085:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2?o-2:0),l=2;l0&&(a[u]=c)}else{var h=(0,o.default)(n,u,s,a,t);h&&(a[u]=h),a=(0,r.default)(t,u,a)}}return a}};var r=a(n(9886)),o=a(n(6054)),i=a(n(2065)),l=a(n(22));function a(e){return e&&e.__esModule?e:{default:e}}},1677:function(e,t){"use strict";t.Z=function(){return null}},9699:function(e,t,n){"use strict";t.Z=function(e,t){if("string"==typeof t&&!(0,r.isPrefixedValue)(t)&&-1!==t.indexOf("cross-fade("))return i.map(function(e){return t.replace(o,e+"cross-fade(")})};var r=n(3085),o=/cross-fade\(/g,i=["-webkit-",""]},5019:function(e,t){"use strict";t.Z=function(e,t){if("cursor"===e&&r.hasOwnProperty(t))return n.map(function(e){return e+t})};var n=["-webkit-","-moz-",""],r={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0}},8527:function(e,t,n){"use strict";t.Z=function(e,t){if("string"==typeof t&&!(0,r.isPrefixedValue)(t)&&-1!==t.indexOf("filter("))return i.map(function(e){return t.replace(o,e+"filter(")})};var r=n(3085),o=/filter\(/g,i=["-webkit-",""]},9779:function(e,t,n){"use strict";t.Z=function(e,t){if("string"==typeof t&&!(0,o.default)(t)&&t.indexOf("image-set(")>-1)return i.map(function(e){return t.replace(/image-set\(/g,e+"image-set(")})};var r,o=(r=n(2702))&&r.__esModule?r:{default:r},i=["-webkit-",""]},2316:function(e,t){"use strict";t.Z=function(e,t,r){if(Object.prototype.hasOwnProperty.call(n,e))for(var o=n[e],i=0,l=o.length;i-1&&"order"!==d)for(var f=t[c],p=0,h=f.length;p-1)return c;var d=s.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(",");return e.indexOf("Moz")>-1?d:(n["Webkit"+(0,i.default)(e)]=c,n["Moz"+(0,i.default)(e)]=d,s)}};var r=l(n(1442)),o=l(n(2702)),i=l(n(8937));function l(e){return e&&e.__esModule?e:{default:e}}var a={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},u={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"}},2065:function(e,t){"use strict";function n(e,t){-1===e.indexOf(t)&&e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(Array.isArray(t))for(var r=0,o=t.length;rv[e]),y=g.length;var S=e=>{for(let t=0;te.onPress||e.onPressIn||e.onPressOut||e.onLongPress,R=e=>e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase());function E(e){let t=[];return null!=e.translate&&t.push(`translate(${e.translate})`),(null!=e.translateX||null!=e.translateY)&&t.push(`translate(${e.translateX||0}, ${e.translateY||0})`),null!=e.scale&&t.push(`scale(${e.scale})`),(null!=e.scaleX||null!=e.scaleY)&&t.push(`scale(${e.scaleX||1}, ${e.scaleY||1})`),null!=e.rotation&&t.push(`rotate(${e.rotation})`),null!=e.skewX&&t.push(`skewX(${e.skewX})`),null!=e.skewY&&t.push(`skewY(${e.skewY})`),t}function k(e,t){let n=[];if(t&&n.push(...E(t)),Array.isArray(e)){if("number"==typeof e[0])n.push(`matrix(${e.join(" ")})`);else{let t=function(e){let t={};return null==e||e.forEach(e=>{let n=Object.keys(e);1!==n.length&&console.error("You must specify exactly one property per transform object.");let r=n[0],o=e[r];t[r]=o}),t}(e);n.push(...E(t))}}else"string"==typeof e&&n.push(e);return n.length?n.join(" "):void 0}let C=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.props,{transform:n,origin:r,originX:o,originY:i,fontFamily:l,fontSize:a,fontWeight:u,fontStyle:s,style:c,forwardedRef:d,gradientTransform:f,patternTransform:p,...h}=t,m={...x(t)?{onStartShouldSetResponder:e.touchableHandleStartShouldSetResponder,onResponderTerminationRequest:e.touchableHandleResponderTerminationRequest,onResponderGrant:e.touchableHandleResponderGrant,onResponderMove:e.touchableHandleResponderMove,onResponderRelease:e.touchableHandleResponderRelease,onResponderTerminate:e.touchableHandleResponderTerminate}:null,...h};null!=r?m["transform-origin"]=r.toString().replace(","," "):(null!=o||null!=i)&&(m["transform-origin"]=`${o||0} ${i||0}`);let v=k(n,t);v&&(m.transform=v);let g=k(f);g&&(m.gradientTransform=g);let b=k(p);b&&(m.patternTransform=b),m.ref=t=>{e.elementRef.current=t,"function"==typeof d?d(t):d&&(d.current=t)};let y={};return null!=l&&(y.fontFamily=l),null!=a&&(y.fontSize=a),null!=u&&(y.fontWeight=u),null!=s&&(y.fontStyle=s),m.style=c?w.Z?[c,y]:c[Symbol.iterator]?Object.assign({},...c,y):Object.assign({},c,y):y,m},T=e=>{if(e&&1===e.nodeType&&"function"==typeof e.getBoundingClientRect)return e.getBoundingClientRect();throw Error("Can not get boundingClientRect of "+e)},O=(e,t)=>{let n=null==e?void 0:e.parentNode;n&&setTimeout(()=>{let r=T(n),{height:o,left:i,top:l,width:a}=T(e);t(i-r.left,l-r.top,a,o,i,l)},0)};function M(){let e=this.state.touchable.responderID;null!==e&&O(e,this._handleQueryLayout)}class A extends r.Component{prepareProps(e){return e}elementRef=r.createRef();lastMergedProps={};setNativeProps(e){let t=Object.assign({},this.props,this.lastMergedProps,e.style);this.lastMergedProps=t;let n=C(this,this.prepareProps(t)),r=this.elementRef.current;if(r)for(let e of Object.keys(n)){let t=n[e];switch(e){case"ref":case"children":break;case"style":for(let e of[].concat(n.style??[]))Object.assign(r.style,e);break;default:r.setAttribute(R(e),t)}}}constructor(e){super(e),x(e)&&S(this),this._remeasureMetricsOnActivation=M.bind(this)}render(){if(!this.tag)throw Error("When extending `WebShape` you need to overwrite either `tag` or `render`!");return this.lastMergedProps={},(0,o.Z)(this.tag,C(this,this.prepareProps(this.props)))}}class P extends A{tag="circle"}class I extends A{tag="line"}class L extends A{tag="path"}class D extends A{tag="rect"}class B extends A{tag="svg";toDataURL(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.elementRef.current;if(null===r)return;let o=T(r),i=Number(n.width)||o.width,l=Number(n.height)||o.height,a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttribute("viewBox",`0 0 ${o.width} ${o.height}`),a.setAttribute("width",String(i)),a.setAttribute("height",String(l)),a.appendChild(r.cloneNode(!0));let u=new window.Image;u.onload=()=>{let t=document.createElement("canvas");t.width=i,t.height=l;let n=t.getContext("2d");null==n||n.drawImage(u,0,0),e(t.toDataURL().replace("data:image/png;base64,",""))},u.src=`data:image/svg+xml;utf8,${(t=new window.XMLSerializer().serializeToString(a)).replace("/g,"%3E").replace(/\s+/g," ")}`}}},7873:function(e){"use strict";function t(e,n,r,o){this.message=e,this.expected=n,this.found=r,this.location=o,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t)}!function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(t,Error),t.buildMessage=function(e,t){var n={literal:function(e){return'"'+o(e.text)+'"'},class:function(e){var t,n="";for(t=0;t0){for(r=1,o=1;rZ&&(Z=F,V=[]),V.push(e))}function q(){var e,t,n,r,o;for(e=F,t=[],n=el();n!==d;)t.push(n),n=el();if(t!==d){if((n=function e(){var t,n,r,o,i,l,a,u,s,c,f,p,h,m,v,g,b,y;if(t=F,(n=G())!==d){for(r=[],o=ee();o!==d;)r.push(o),o=ee();r!==d&&(o=e())!==d?(i=n,l=o,a=i[0],u=i[1],s=i[2],c=i[3],f=i[4],p=i[5],h=l[0],m=l[1],v=l[2],g=l[3],t=n=[a*h+u*g,a*m+u*(b=l[4]),a*v+u*(y=l[5])+s,c*h+f*g,c*m+f*b,c*v+f*y+p]):(F=t,t=d)}else F=t,t=d;return t===d&&(t=G()),t}())===d&&(n=null),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();r!==d?e=t=n:(F=e,e=d)}else F=e,e=d}else F=e,e=d;return e}function G(){var t;return(t=function(){var t,n,r,o,i,l,a,u,s,c,f,p,b;if(t=F,e.substr(F,6)===h?(n=h,F+=6):(n=d,0===$&&X(m)),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();if(r!==d){if(40===e.charCodeAt(F)?(o="(",F++):(o=d,0===$&&X(v)),o!==d){for(i=[],l=el();l!==d;)i.push(l),l=el();if(i!==d){if((l=J())!==d){if(ee()!==d){if((a=J())!==d){if(ee()!==d){if((u=J())!==d){if(ee()!==d){if((s=J())!==d){if(ee()!==d){if((c=J())!==d){if(ee()!==d){if((f=J())!==d){for(p=[],b=el();b!==d;)p.push(b),b=el();p!==d&&(41===e.charCodeAt(F)?(b=")",F++):(b=d,0===$&&X(g)),b!==d)?t=n=[l,u,c,a,s,f]:(F=t,t=d)}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d;return t}())===d&&(t=function(){var t,n,r,o,i,l,a,u,s;if(t=F,e.substr(F,9)===b?(n=b,F+=9):(n=d,0===$&&X(y)),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();if(r!==d){if(40===e.charCodeAt(F)?(o="(",F++):(o=d,0===$&&X(v)),o!==d){for(i=[],l=el();l!==d;)i.push(l),l=el();if(i!==d){if((l=J())!==d){if((a=Q())===d&&(a=null),a!==d){for(u=[],s=el();s!==d;)u.push(s),s=el();u!==d&&(41===e.charCodeAt(F)?(s=")",F++):(s=d,0===$&&X(g)),s!==d)?t=n=[1,0,l,0,1,a||0]:(F=t,t=d)}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d;return t}())===d&&(t=function(){var t,n,r,o,i,l,a,u,s,c,f;if(t=F,e.substr(F,5)===S?(n=S,F+=5):(n=d,0===$&&X(w)),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();if(r!==d){if(40===e.charCodeAt(F)?(o="(",F++):(o=d,0===$&&X(v)),o!==d){for(i=[],l=el();l!==d;)i.push(l),l=el();if(i!==d){if((l=J())!==d){if((a=Q())===d&&(a=null),a!==d){for(u=[],s=el();s!==d;)u.push(s),s=el();u!==d&&(41===e.charCodeAt(F)?(s=")",F++):(s=d,0===$&&X(g)),s!==d)?t=n=[c=l,0,0,0,null===(f=a)?c:f,0]:(F=t,t=d)}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d;return t}())===d&&(t=function(){var t,n,r,o,i,l,a,u,s,c,f,p;if(t=F,e.substr(F,6)===x?(n=x,F+=6):(n=d,0===$&&X(R)),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();if(r!==d){if(40===e.charCodeAt(F)?(o="(",F++):(o=d,0===$&&X(v)),o!==d){for(i=[],l=el();l!==d;)i.push(l),l=el();if(i!==d){if((l=J())!==d){if((c=F,ee()!==d&&(f=J())!==d&&ee()!==d&&(p=J())!==d)?c=[f,p]:(F=c,c=d),(a=c)===d&&(a=null),a!==d){for(u=[],s=el();s!==d;)u.push(s),s=el();u!==d?(41===e.charCodeAt(F)?(s=")",F++):(s=d,0===$&&X(g)),s!==d?t=n=E(l,a):(F=t,t=d)):(F=t,t=d)}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d;return t}())===d&&(t=function(){var t,n,r,o,i,l,a,u;if(t=F,e.substr(F,5)===k?(n=k,F+=5):(n=d,0===$&&X(C)),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();if(r!==d){if(40===e.charCodeAt(F)?(o="(",F++):(o=d,0===$&&X(v)),o!==d){for(i=[],l=el();l!==d;)i.push(l),l=el();if(i!==d){if((l=J())!==d){for(a=[],u=el();u!==d;)a.push(u),u=el();a!==d&&(41===e.charCodeAt(F)?(u=")",F++):(u=d,0===$&&X(g)),u!==d)?t=n=[1,Math.tan(ea*l),0,0,1,0]:(F=t,t=d)}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d;return t}())===d&&(t=function(){var t,n,r,o,i,l,a,u;if(t=F,e.substr(F,5)===T?(n=T,F+=5):(n=d,0===$&&X(O)),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();if(r!==d){if(40===e.charCodeAt(F)?(o="(",F++):(o=d,0===$&&X(v)),o!==d){for(i=[],l=el();l!==d;)i.push(l),l=el();if(i!==d){if((l=J())!==d){for(a=[],u=el();u!==d;)a.push(u),u=el();a!==d&&(41===e.charCodeAt(F)?(u=")",F++):(u=d,0===$&&X(g)),u!==d)?t=n=[1,0,0,Math.tan(ea*l),1,0]:(F=t,t=d)}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d;return t}()),t}function J(){var t,n,r,o,i,l,a,u,s,c,f,p,h,m;if(t=F,n=F,(r=er())===d&&(r=null),r!==d&&(i=F,l=F,(($++,c=F,(f=eo())===d&&(f=null),f!==d&&(46===e.charCodeAt(F)?(p=".",F++):(p=d,0===$&&X(I)),p!==d&&(h=eo())!==d))?c=f=[(m=f)?m.join(""):null,".",h.join("")].join(""):(F=c,c=d),c===d&&(c=F,(f=eo())!==d?(46===e.charCodeAt(F)?(p=".",F++):(p=d,0===$&&X(I)),p!==d?c=f=A(f):(F=c,c=d)):(F=c,c=d)),$--,c===d&&(f=d,0===$&&X(P)),(a=c)!==d)?((u=en())===d&&(u=null),u!==d?l=a=[a,u]:(F=l,l=d)):(F=l,l=d),l!==d&&(l=l.join("")),(i=l)===d&&(i=F,l=F,(a=eo())!==d&&(u=en())!==d?l=a=[a,u]:(F=l,l=d),l!==d&&(l=A(l)),i=l),(o=i)!==d)?n=r=[r,o]:(F=n,n=d),n!==d)n=parseFloat(n.join(""));return(t=n)===d&&(t=F,n=F,(r=er())===d&&(r=null),r!==d&&((s=eo())!==d&&(s=s.join("")),(o=s)!==d)?n=r=[r,o]:(F=n,n=d),n!==d&&(n=parseInt(n.join(""))),t=n),t}function Q(){var e,t;return(e=F,ee()!==d&&(t=J())!==d)?e=t:(F=e,e=d),e}function ee(){var e,t,n,r,o;if(e=F,t=[],(n=el())!==d)for(;n!==d;)t.push(n),n=el();else t=d;if(t!==d){if((n=et())===d&&(n=null),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();r!==d?e=t=[t,n,r]:(F=e,e=d)}else F=e,e=d}else F=e,e=d;if(e===d){if(e=F,(t=et())!==d){for(n=[],r=el();r!==d;)n.push(r),r=el();n!==d?e=t=[t,n]:(F=e,e=d)}else F=e,e=d}return e}function et(){var t;return 44===e.charCodeAt(F)?(t=",",F++):(t=d,0===$&&X(M)),t}function en(){var t,n,r,o,i;return t=F,L.test(e.charAt(F))?(n=e.charAt(F),F++):(n=d,0===$&&X(D)),n!==d?((r=er())===d&&(r=null),r!==d&&(o=eo())!==d?t=n=[n,r,o]:(F=t,t=d)):(F=t,t=d),t!==d&&(t=[(i=t)[0],i[1],i[2].join("")].join("")),t}function er(){var t;return B.test(e.charAt(F))?(t=e.charAt(F),F++):(t=d,0===$&&X(W)),t}function eo(){var e,t;if(e=[],(t=ei())!==d)for(;t!==d;)e.push(t),t=ei();else e=d;return e}function ei(){var t;return N.test(e.charAt(F))?(t=e.charAt(F),F++):(t=d,0===$&&X(z)),t}function el(){var t;return j.test(e.charAt(F))?(t=e.charAt(F),F++):(t=d,0===$&&X(H)),t}var ea=Math.PI/180;if((c=p())!==d&&F===e.length)return c;throw c!==d&&Fe(l))}class d{static get(e){return u&&(u=!1,s()),o()(l[e],"No dimension set for key "+e),l[e]}static set(e){e&&(i.Z?o()(!1,"Dimensions cannot be set in the browser"):(null!=e.screen&&(l.screen=e.screen),null!=e.window&&(l.window=e.window)))}static addEventListener(e,t){return a[e]=a[e]||[],a[e].push(t),{remove:()=>{this.removeEventListener(e,t)}}}static removeEventListener(e,t){Array.isArray(a[e])&&(a[e]=a[e].filter(e=>e!==t))}}i.Z&&(window.visualViewport?window.visualViewport.addEventListener("resize",c,!1):window.addEventListener("resize",c,!1))},1775:function(e,t,n){"use strict";var r=n(5832);t.Z={isVisible:()=>!1,addListener:()=>({remove:()=>{}}),dismiss(){(0,r.Z)()},removeAllListeners(){},removeListener(){}}},1840:function(e,t){"use strict";t.Z={OS:"web",select:e=>"web"in e?e.web:e.default,get isTesting(){return!1}}},5589:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(7998),o=n(2988),i=n(3950),l=n(1090),a=n(5832),u=n(7445),s=n.n(u),c=n(2050),d=n(1840),f=n(2265),p=n(929),h=n(5275),m=n(9926),v=["onScroll","onTouchMove","onWheel","scrollEnabled","scrollEventThrottle","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","style"];function g(e){return{nativeEvent:{contentOffset:{get x(){return e.target.scrollLeft},get y(){return e.target.scrollTop}},contentSize:{get height(){return e.target.scrollHeight},get width(){return e.target.scrollWidth}},layoutMeasurement:{get height(){return e.target.offsetHeight},get width(){return e.target.offsetWidth}}},timeStamp:Date.now()}}var b=f.forwardRef((e,t)=>{var n=e.onScroll,r=e.onTouchMove,l=e.onWheel,a=e.scrollEnabled,u=void 0===a||a,s=e.scrollEventThrottle,c=void 0===s?0:s,d=e.showsHorizontalScrollIndicator,p=e.showsVerticalScrollIndicator,b=e.style,S=(0,i.Z)(e,v),w=f.useRef({isScrolling:!1,scrollLastTick:0}),x=f.useRef(null),R=f.useRef(null);function E(e){return t=>{u&&e&&e(t)}}function k(e){w.current.scrollLastTick=Date.now(),n&&n(g(e))}return f.createElement(h.Z,(0,o.Z)({},S,{onScroll:function(e){if(e.stopPropagation(),e.target===R.current){var t,r;(e.persist(),null!=x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{w.current.isScrolling=!1,n&&n(g(e))},100),w.current.isScrolling)?(t=w.current.scrollLastTick,r=Date.now()-t,c>0&&r>=c&&k(e)):(w.current.isScrolling=!0,k(e))}},onTouchMove:E(r),onWheel:E(l),ref:(0,m.Z)(R,t),style:[b,!u&&y.scrollDisabled,(!1===d||!1===p)&&y.hideScrollbar]}))}),y=p.Z.create({scrollDisabled:{overflowX:"hidden",overflowY:"hidden",touchAction:"none"},hideScrollbar:{scrollbarWidth:"none"}}),S=n(3013),w=n(2319),x=n(9895),R=n.n(x),E=["contentContainerStyle","horizontal","onContentSizeChange","refreshControl","stickyHeaderIndices","pagingEnabled","forwardedRef","keyboardDismissMode","onScroll","centerContent"],k={};class C extends f.Component{constructor(){super(...arguments),this._scrollNodeRef=null,this._innerViewRef=null,this.isTouching=!1,this.lastMomentumScrollBeginTime=0,this.lastMomentumScrollEndTime=0,this.observedScrollSinceBecomingResponder=!1,this.becameResponderWhileAnimating=!1,this.scrollResponderHandleScrollShouldSetResponder=()=>this.isTouching,this.scrollResponderHandleStartShouldSetResponderCapture=e=>this.scrollResponderIsAnimating(),this.scrollResponderHandleTerminationRequest=()=>!this.observedScrollSinceBecomingResponder,this.scrollResponderHandleTouchEnd=e=>{var t=e.nativeEvent;this.isTouching=0!==t.touches.length,this.props.onTouchEnd&&this.props.onTouchEnd(e)},this.scrollResponderHandleResponderRelease=e=>{this.props.onResponderRelease&&this.props.onResponderRelease(e);var t=S.Z.currentlyFocusedField();this.props.keyboardShouldPersistTaps||null==t||e.target===t||this.observedScrollSinceBecomingResponder||this.becameResponderWhileAnimating||(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(e),S.Z.blurTextInput(t))},this.scrollResponderHandleScroll=e=>{this.observedScrollSinceBecomingResponder=!0,this.props.onScroll&&this.props.onScroll(e)},this.scrollResponderHandleResponderGrant=e=>{this.observedScrollSinceBecomingResponder=!1,this.props.onResponderGrant&&this.props.onResponderGrant(e),this.becameResponderWhileAnimating=this.scrollResponderIsAnimating()},this.scrollResponderHandleScrollBeginDrag=e=>{this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this.scrollResponderHandleScrollEndDrag=e=>{this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this.scrollResponderHandleMomentumScrollBegin=e=>{this.lastMomentumScrollBeginTime=Date.now(),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this.scrollResponderHandleMomentumScrollEnd=e=>{this.lastMomentumScrollEndTime=Date.now(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this.scrollResponderHandleTouchStart=e=>{this.isTouching=!0,this.props.onTouchStart&&this.props.onTouchStart(e)},this.scrollResponderHandleTouchMove=e=>{this.props.onTouchMove&&this.props.onTouchMove(e)},this.scrollResponderIsAnimating=()=>Date.now()-this.lastMomentumScrollEndTime<16||this.lastMomentumScrollEndTime{if("number"==typeof e)console.warn("`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||k;e=r.x,t=r.y,n=r.animated}var o=this.getScrollableNode(),i=e||0,l=t||0;null!=o&&("function"==typeof o.scroll?o.scroll({top:l,left:i,behavior:n?"smooth":"auto"}):(o.scrollLeft=i,o.scrollTop=l))},this.scrollResponderZoomTo=(e,t)=>{"ios"!==d.Z.OS&&s()("zoomToRect is not implemented")},this.scrollResponderScrollNativeHandleToKeyboard=(e,t,n)=>{this.additionalScrollOffset=t||0,this.preventNegativeScrollOffset=!!n,w.Z.measureLayout(e,this.getInnerViewNode(),this.scrollResponderTextInputFocusError,this.scrollResponderInputMeasureAndScrollToKeyboard)},this.scrollResponderInputMeasureAndScrollToKeyboard=(e,t,n,r)=>{var o=l.Z.get("window").height;this.keyboardWillOpenTo&&(o=this.keyboardWillOpenTo.endCoordinates.screenY);var i=t-o+r+this.additionalScrollOffset;this.preventNegativeScrollOffset&&(i=Math.max(0,i)),this.scrollResponderScrollTo({x:0,y:i,animated:!0}),this.additionalOffset=0,this.preventNegativeScrollOffset=!1},this.scrollResponderKeyboardWillShow=e=>{this.keyboardWillOpenTo=e,this.props.onKeyboardWillShow&&this.props.onKeyboardWillShow(e)},this.scrollResponderKeyboardWillHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardWillHide&&this.props.onKeyboardWillHide(e)},this.scrollResponderKeyboardDidShow=e=>{e&&(this.keyboardWillOpenTo=e),this.props.onKeyboardDidShow&&this.props.onKeyboardDidShow(e)},this.scrollResponderKeyboardDidHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardDidHide&&this.props.onKeyboardDidHide(e)},this.flashScrollIndicators=()=>{this.scrollResponderFlashScrollIndicators()},this.getScrollResponder=()=>this,this.getScrollableNode=()=>this._scrollNodeRef,this.getInnerViewRef=()=>this._innerViewRef,this.getInnerViewNode=()=>this._innerViewRef,this.getNativeScrollRef=()=>this._scrollNodeRef,this.scrollTo=(e,t,n)=>{if("number"==typeof e)console.warn("`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||k;t=r.x,e=r.y,n=r.animated}this.scrollResponderScrollTo({x:t||0,y:e||0,animated:!1!==n})},this.scrollToEnd=e=>{var t=!1!==(e&&e.animated),n=this.props.horizontal,r=this.getScrollableNode(),o=n?r.scrollWidth:0,i=n?0:r.scrollHeight;this.scrollResponderScrollTo({x:o,y:i,animated:t})},this._handleContentOnLayout=e=>{var t=e.nativeEvent.layout,n=t.width,r=t.height;this.props.onContentSizeChange(n,r)},this._handleScroll=e=>{"on-drag"===this.props.keyboardDismissMode&&(0,a.Z)(),this.scrollResponderHandleScroll(e)},this._setInnerViewRef=e=>{this._innerViewRef=e},this._setScrollNodeRef=e=>{this._scrollNodeRef=e,null!=e&&(e.getScrollResponder=this.getScrollResponder,e.getInnerViewNode=this.getInnerViewNode,e.getInnerViewRef=this.getInnerViewRef,e.getNativeScrollRef=this.getNativeScrollRef,e.getScrollableNode=this.getScrollableNode,e.scrollTo=this.scrollTo,e.scrollToEnd=this.scrollToEnd,e.flashScrollIndicators=this.flashScrollIndicators,e.scrollResponderZoomTo=this.scrollResponderZoomTo,e.scrollResponderScrollNativeHandleToKeyboard=this.scrollResponderScrollNativeHandleToKeyboard),(0,c.Z)(this.props.forwardedRef)(e)}}scrollResponderHandleStartShouldSetResponder(){return!1}scrollResponderHandleResponderReject(){R()(!1,"ScrollView doesn't take rejection well - scrolls anyway")}scrollResponderFlashScrollIndicators(){}scrollResponderTextInputFocusError(e){console.error("Error measuring text field: ",e)}render(){var e=this.props,t=e.contentContainerStyle,n=e.horizontal,l=e.onContentSizeChange,a=e.refreshControl,u=e.stickyHeaderIndices,c=e.pagingEnabled,d=(e.forwardedRef,e.keyboardDismissMode,e.onScroll,e.centerContent),p=(0,i.Z)(e,E),m={};l&&(m={onLayout:this._handleContentOnLayout});var v=!n&&Array.isArray(u),g=v||c?f.Children.map(this.props.children,(e,t)=>{var n=v&&u.indexOf(t)>-1;return null!=e&&(n||c)?f.createElement(h.Z,{style:[n&&O.stickyHeader,c&&O.pagingEnabledChild]},e):e}):this.props.children,y=f.createElement(h.Z,(0,o.Z)({},m,{children:g,collapsable:!1,ref:this._setInnerViewRef,style:[n&&O.contentContainerHorizontal,d&&O.contentContainerCenterContent,t]})),S=n?O.baseHorizontal:O.baseVertical,w=n?O.pagingEnabledHorizontal:O.pagingEnabledVertical,x=(0,r.Z)((0,r.Z)({},p),{},{style:[S,c&&w,this.props.style],onTouchStart:this.scrollResponderHandleTouchStart,onTouchMove:this.scrollResponderHandleTouchMove,onTouchEnd:this.scrollResponderHandleTouchEnd,onScrollBeginDrag:this.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this.scrollResponderHandleScrollEndDrag,onMomentumScrollBegin:this.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this.scrollResponderHandleMomentumScrollEnd,onStartShouldSetResponder:this.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this.scrollResponderHandleStartShouldSetResponderCapture,onScrollShouldSetResponder:this.scrollResponderHandleScrollShouldSetResponder,onScroll:this._handleScroll,onResponderGrant:this.scrollResponderHandleResponderGrant,onResponderTerminationRequest:this.scrollResponderHandleTerminationRequest,onResponderTerminate:this.scrollResponderHandleTerminate,onResponderRelease:this.scrollResponderHandleResponderRelease,onResponderReject:this.scrollResponderHandleResponderReject});s()(void 0!==b,"ScrollViewClass must not be undefined");var R=f.createElement(b,(0,o.Z)({},x,{ref:this._setScrollNodeRef}),y);return a?f.cloneElement(a,{style:x.style},R):R}}var T={flexGrow:1,flexShrink:1,transform:"translateZ(0)",WebkitOverflowScrolling:"touch"},O=p.Z.create({baseVertical:(0,r.Z)((0,r.Z)({},T),{},{flexDirection:"column",overflowX:"hidden",overflowY:"auto"}),baseHorizontal:(0,r.Z)((0,r.Z)({},T),{},{flexDirection:"row",overflowX:"auto",overflowY:"hidden"}),contentContainerHorizontal:{flexDirection:"row"},contentContainerCenterContent:{justifyContent:"center",flexGrow:1},stickyHeader:{position:"sticky",top:0,zIndex:10},pagingEnabledHorizontal:{scrollSnapType:"x mandatory"},pagingEnabledVertical:{scrollSnapType:"y mandatory"},pagingEnabledChild:{scrollSnapAlign:"start"}}),M=f.forwardRef((e,t)=>f.createElement(C,(0,o.Z)({},e,{forwardedRef:t})));M.displayName="ScrollView";var A=M},929:function(e,t,n){"use strict";n.d(t,{Z:function(){return eZ}});var r=n(7998),o=n(3950),i={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},l=["ms","Moz","O","Webkit"],a=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1);Object.keys(i).forEach(e=>{l.forEach(t=>{i[a(t,e)]=i[e]})});var u=e=>"currentcolor"===e||"currentColor"===e||"inherit"===e||0===e.indexOf("var("),s=n(7340),c=n.n(s),d=e=>{if(null==e)return e;var t=c()(e);if(null!=t)return(t<<24|t>>>8)>>>0},f=function(e,t){if(void 0===t&&(t=1),null!=e){if("string"==typeof e&&u(e))return e;var n=d(e);if(null!=n){var r=((n>>24&255)/255*t).toFixed(2);return"rgba("+(n>>16&255)+","+(n>>8&255)+","+(255&n)+","+r+")"}}},p={backgroundColor:!0,borderColor:!0,borderTopColor:!0,borderRightColor:!0,borderBottomColor:!0,borderLeftColor:!0,color:!0,shadowColor:!0,textDecorationColor:!0,textShadowColor:!0};function h(e,t){var n=e;return null!=t&&i[t]||"number"!=typeof e?null!=t&&p[t]&&(n=f(e)):n=e+"px",n}var m=n(1213),v={},g=!m.Z||null!=window.CSS&&null!=window.CSS.supports&&(window.CSS.supports("text-decoration-line","none")||window.CSS.supports("-webkit-text-decoration-line","none")),b='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif',y={borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderBlockColor:["borderTopColor","borderBottomColor"],borderInlineColor:["borderRightColor","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderStyle:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderInlineStyle:["borderRightStyle","borderLeftStyle"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderInlineWidth:["borderRightWidth","borderLeftWidth"],insetBlock:["top","bottom"],insetInline:["left","right"],marginBlock:["marginTop","marginBottom"],marginInline:["marginRight","marginLeft"],paddingBlock:["paddingTop","paddingBottom"],paddingInline:["paddingRight","paddingLeft"],overflow:["overflowX","overflowY"],overscrollBehavior:["overscrollBehaviorX","overscrollBehaviorY"],borderBlockStartColor:["borderTopColor"],borderBlockStartStyle:["borderTopStyle"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndColor:["borderBottomColor"],borderBlockEndStyle:["borderBottomStyle"],borderBlockEndWidth:["borderBottomWidth"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],insetBlockEnd:["bottom"],insetBlockStart:["top"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"]},S=(e,t)=>{if(!e)return v;var n={};for(var r in e)if("continue"===function(){var o=e[r];if(null==o)return"continue";if("backgroundClip"===r)"text"===o&&(n.backgroundClip=o,n.WebkitBackgroundClip=o);else if("flex"===r)-1===o?(n.flexGrow=0,n.flexShrink=1,n.flexBasis="auto"):n.flex=o;else if("font"===r)n[r]=o.replace("System",b);else if("fontFamily"===r){if(o.indexOf("System")>-1){var i=o.split(/,\s*/);i[i.indexOf("System")]=b,n[r]=i.join(",")}else"monospace"===o?n[r]="monospace,monospace":n[r]=o}else if("textDecorationLine"===r)g?n.textDecorationLine=o:n.textDecoration=o;else if("writingDirection"===r)n.direction=o;else{var l=h(e[r],r),a=y[r];t&&"inset"===r?(null==e.insetInline&&(n.left=l,n.right=l),null==e.insetBlock&&(n.top=l,n.bottom=l)):t&&"margin"===r?(null==e.marginInline&&(n.marginLeft=l,n.marginRight=l),null==e.marginBlock&&(n.marginTop=l,n.marginBottom=l)):t&&"padding"===r?(null==e.paddingInline&&(n.paddingLeft=l,n.paddingRight=l),null==e.paddingBlock&&(n.paddingTop=l,n.paddingBottom=l)):a?a.forEach((t,r)=>{null==e[t]&&(n[t]=l)}):n[r]=l}}())continue;return n},w=e=>(function(e,t){for(var n,r=e.length,o=1^r,i=0;r>=4;)n=(65535&(n=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))*1540483477+(((n>>>16)*1540483477&65535)<<16),n^=n>>>24,o=(65535&o)*1540483477+(((o>>>16)*1540483477&65535)<<16)^(n=(65535&n)*1540483477+(((n>>>16)*1540483477&65535)<<16)),r-=4,++i;switch(r){case 3:o^=(255&e.charCodeAt(i+2))<<16;case 2:o^=(255&e.charCodeAt(i+1))<<8;case 1:o^=255&e.charCodeAt(i),o=(65535&o)*1540483477+(((o>>>16)*1540483477&65535)<<16)}return o^=o>>>13,o=(65535&o)*1540483477+(((o>>>16)*1540483477&65535)<<16),(o^=o>>>15)>>>0})(e,0).toString(36),x=/[A-Z]/g,R=/^ms-/,E={};function k(e){return"-"+e.toLowerCase()}var C=function(e){if(e in E)return E[e];var t=e.replace(x,k);return E[e]=R.test(t)?"-"+t:t},T=n(2933),O=n(1677),M=n(9699),A=n(5019),P=n(8527),I=n(9779),L=n(2316),D=n(9832),B=n(8579),W=n(4633),N=["Webkit"],z=["Webkit","ms"],j={plugins:[O.Z,M.Z,A.Z,P.Z,I.Z,L.Z,D.Z,B.Z,W.Z],prefixMap:{appearance:["Webkit","Moz","ms"],userSelect:["Webkit","Moz"],textEmphasisPosition:z,textEmphasis:z,textEmphasisStyle:z,textEmphasisColor:z,boxDecorationBreak:z,clipPath:N,maskImage:z,maskMode:z,maskRepeat:z,maskPosition:z,maskClip:z,maskOrigin:z,maskSize:z,maskComposite:z,mask:z,maskBorderSource:z,maskBorderMode:z,maskBorderSlice:z,maskBorderWidth:z,maskBorderOutset:z,maskBorderRepeat:z,maskBorder:z,maskType:z,textDecorationStyle:N,textDecorationSkip:N,textDecorationLine:N,textDecorationColor:N,filter:N,breakAfter:N,breakBefore:N,breakInside:N,columnCount:N,columnFill:N,columnGap:N,columnRule:N,columnRuleColor:N,columnRuleStyle:N,columnRuleWidth:N,columns:N,columnSpan:N,columnWidth:N,backdropFilter:N,hyphens:N,flowInto:N,flowFrom:N,regionFragment:N,textOrientation:N,tabSize:["Moz"],fontKerning:N,textSizeAdjust:N}},H=(0,T.Z)(j),F=["animationKeyframes"],_=new Map,Z={},V={borderColor:2,borderRadius:2,borderStyle:2,borderWidth:2,display:2,flex:2,inset:2,margin:2,overflow:2,overscrollBehavior:2,padding:2,insetBlock:2.1,insetInline:2.1,marginInline:2.1,marginBlock:2.1,paddingInline:2.1,paddingBlock:2.1,borderBlockStartColor:2.2,borderBlockStartStyle:2.2,borderBlockStartWidth:2.2,borderBlockEndColor:2.2,borderBlockEndStyle:2.2,borderBlockEndWidth:2.2,borderInlineStartColor:2.2,borderInlineStartStyle:2.2,borderInlineStartWidth:2.2,borderInlineEndColor:2.2,borderInlineEndStyle:2.2,borderInlineEndWidth:2.2,borderEndStartRadius:2.2,borderEndEndRadius:2.2,borderStartStartRadius:2.2,borderStartEndRadius:2.2,insetBlockEnd:2.2,insetBlockStart:2.2,insetInlineEnd:2.2,insetInlineStart:2.2,marginBlockStart:2.2,marginBlockEnd:2.2,marginInlineStart:2.2,marginInlineEnd:2.2,paddingBlockStart:2.2,paddingBlockEnd:2.2,paddingInlineStart:2.2,paddingInlineEnd:2.2},$="borderTopLeftRadius",K="borderTopRightRadius",U="borderBottomLeftRadius",Y="borderBottomRightRadius",X="borderLeftColor",q="borderLeftStyle",G="borderLeftWidth",J="borderRightColor",Q="borderRightStyle",ee="borderRightWidth",et="right",en="marginLeft",er="marginRight",eo="paddingLeft",ei="paddingRight",el="left",ea={[$]:K,[K]:$,[U]:Y,[Y]:U,[X]:J,[q]:Q,[G]:ee,[J]:X,[Q]:q,[ee]:G,[el]:et,[en]:er,[er]:en,[eo]:ei,[ei]:eo,[et]:el},eu={borderStartStartRadius:$,borderStartEndRadius:K,borderEndStartRadius:U,borderEndEndRadius:Y,borderInlineStartColor:X,borderInlineStartStyle:q,borderInlineStartWidth:G,borderInlineEndColor:J,borderInlineEndStyle:Q,borderInlineEndWidth:ee,insetInlineEnd:et,insetInlineStart:el,marginInlineStart:en,marginInlineEnd:er,paddingInlineStart:eo,paddingInlineEnd:ei},es=["clear","float","textAlign"];function ec(e){var t=H(S(e));return"{"+Object.keys(t).map(e=>{var n=t[e],r=C(e);return Array.isArray(n)?n.map(e=>r+":"+e).join(";"):r+":"+n}).sort().join(";")+";}"}function ed(e){if("number"==typeof e)throw Error("Invalid CSS keyframes type: "+typeof e);var t=[],n=[];return(Array.isArray(e)?e:[e]).forEach(e=>{if("string"==typeof e)t.push(e);else{var r,o,i,l=(r="r-"+w("animation"+JSON.stringify(e)),o="{"+Object.keys(e).map(t=>{var n=ec(e[t]);return""+t+n}).join("")+"}",i=["-webkit-",""].map(e=>"@"+e+"keyframes "+r+o),[r,i]),a=l[0],u=l[1];t.push(a),n.push(...u)}}),[t,n]}function ef(e,t,n){if(!m.Z)return null;var r=null!=t?t:document,o=r.getElementById(e);if(null==o){if((o=document.createElement("style")).setAttribute("id",e),"string"==typeof n&&o.appendChild(document.createTextNode(n)),r instanceof ShadowRoot)r.insertBefore(o,r.firstChild);else{var i=r.head;i&&i.insertBefore(o,i.firstChild)}}return o.sheet}var ep=Array.prototype.slice;function eh(e){var t,n={},r={};function o(e,t,r){var o=ev(n),i=o.indexOf(t)+1,l=o[i],a=null!=l&&null!=n[l].start?n[l].start:e.cssRules.length,u=function(e,t,n){try{return e.insertRule(t,n),!0}catch(e){return!1}}(e,r,a);if(u){null==n[t].start&&(n[t].start=a);for(var s=i;s{var i=e.cssText;if(i.indexOf("stylesheet-group")>-1)n[t=Number(e.selectorText.split(em)[1])]={start:o,rules:[i]};else{var l=eb(i);null!=l&&(r[l]=!0,n[t].rules.push(i))}}),{getTextContent:()=>ev(n).map(e=>{var t=n[e].rules,r=t.shift();return t.sort(),t.unshift(r),t.join("\n")}).join("\n"),insert(t,i){var l=Number(i);if(null==n[l]){var a='[stylesheet-group="'+l+'"]{}';n[l]={start:null,rules:[a]},null!=e&&o(e,l,a)}var u=eb(t);null==u||null!=r[u]||(r[u]=!0,n[l].rules.push(t),null==e||o(e,l,t)||n[l].rules.pop())}}}var em=/["']/g;function ev(e){return Object.keys(e).map(Number).sort((e,t)=>e>t?1:-1)}var eg=/\s*([,])\s*/g;function eb(e){var t=e.split("{")[0].trim();return""!==t?t.replace(eg,"$1"):null}var ey=new WeakMap,eS=[],ew=["html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}","body{margin:0;}","button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}","input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}"],ex=n(7106),eR=n(131),eE={},ek={height:0,width:0},eC=e=>{var t=e.shadowColor,n=e.shadowOffset,r=e.shadowOpacity,o=e.shadowRadius,i=n||ek,l=i.height,a=h(i.width),u=h(l),s=h(o||0),c=f(t||"black",r);if(null!=c&&null!=a&&null!=u&&null!=s)return a+" "+u+" "+s+" "+c},eT=e=>{var t=e.textShadowColor,n=e.textShadowOffset,r=e.textShadowRadius,o=n||ek,i=o.height,l=o.width,a=r||0,u=h(l),s=h(i),c=h(a),d=h(t,"textShadowColor");if(d&&(0!==i||0!==l||0!==a)&&null!=u&&null!=s&&null!=c)return u+" "+s+" "+c+" "+d},eO=e=>{var t=Object.keys(e)[0],n=e[t];if("matrix"===t||"matrix3d"===t)return t+"("+n.join(",")+")";var r=h(n,t);return t+"("+r+")"},eM=e=>e.map(eO).join(" "),eA={borderBottomEndRadius:"borderEndEndRadius",borderBottomStartRadius:"borderEndStartRadius",borderTopEndRadius:"borderStartEndRadius",borderTopStartRadius:"borderStartStartRadius",borderEndColor:"borderInlineEndColor",borderEndStyle:"borderInlineEndStyle",borderEndWidth:"borderInlineEndWidth",borderStartColor:"borderInlineStartColor",borderStartStyle:"borderInlineStartStyle",borderStartWidth:"borderInlineStartWidth",end:"insetInlineEnd",marginEnd:"marginInlineEnd",marginHorizontal:"marginInline",marginStart:"marginInlineStart",marginVertical:"marginBlock",paddingEnd:"paddingInlineEnd",paddingHorizontal:"paddingInline",paddingStart:"paddingInlineStart",paddingVertical:"paddingBlock",start:"insetInlineStart"},eP={elevation:!0,overlayColor:!0,resizeMode:!0,tintColor:!0},eI=function(e,t){void 0===t&&(t={});var n=e||eE,r={};if(t.shadow,null!=n.shadowColor||null!=n.shadowOffset||null!=n.shadowOpacity||null!=n.shadowRadius){(0,eR.O)("shadowStyles",'"shadow*" style props are deprecated. Use "boxShadow".');var o=eC(n);if(null!=o&&null==r.boxShadow){var i=n.boxShadow;r.boxShadow=i?i+", "+o:o}}if(t.textShadow,null!=n.textShadowColor||null!=n.textShadowOffset||null!=n.textShadowRadius){(0,eR.O)("textShadowStyles",'"textShadow*" style props are deprecated. Use "textShadow".');var l=eT(n);if(null!=l&&null==r.textShadow){var a=n.textShadow;r.textShadow=a?a+", "+l:l}}for(var u in n)if(null==eP[u]&&"shadowColor"!==u&&"shadowOffset"!==u&&"shadowOpacity"!==u&&"shadowRadius"!==u&&"textShadowColor"!==u&&"textShadowOffset"!==u&&"textShadowRadius"!==u){var s=n[u],c=eA[u]||u,d=s;Object.prototype.hasOwnProperty.call(n,u)&&(c===u||null==n[c])&&("aspectRatio"===c&&"number"==typeof d?r[c]=d.toString():"fontVariant"===c?(Array.isArray(d)&&d.length>0&&((0,eR.O)("fontVariant",'"fontVariant" style array value is deprecated. Use space-separated values.'),d=d.join(" ")),r[c]=d):"textAlignVertical"===c?((0,eR.O)("textAlignVertical",'"textAlignVertical" style is deprecated. Use "verticalAlign".'),null==n.verticalAlign&&(r.verticalAlign="center"===d?"middle":d)):"transform"===c?(Array.isArray(d)&&(d=eM(d)),r.transform=d):r[c]=d)}return r},eL=n(8650),eD=["writingDirection"],eB=new WeakMap,eW=function(e,t){if(void 0===t&&(t="react-native-stylesheet"),m.Z){var n,r=document;if(0===eS.length)n=eh(ef(t)),ew.forEach(e=>{n.insert(e,0)}),ey.set(r,eS.length),eS.push(n);else{var o=ey.get(r);if(null==o){var i=eS[0];n=eh(ef(t,r,null!=i?i.getTextContent():"")),ey.set(r,eS.length),eS.push(n)}else n=eS[o]}}else 0===eS.length?(n=eh(ef(t)),ew.forEach(e=>{n.insert(e,0)}),eS.push(n)):n=eS[0];return{getTextContent:()=>n.getTextContent(),id:t,insert(e,t){eS.forEach(n=>{n.insert(e,t)})}}}(),eN={shadow:!0,textShadow:!0};function ez(e){e.forEach(e=>{var t=e[0],n=e[1];null!=eW&&t.forEach(e=>{eW.insert(e,n)})})}var ej={position:"absolute",left:0,right:0,top:0,bottom:0},eH=eF({x:(0,r.Z)({},ej)}).x;function eF(e){return Object.keys(e).forEach(t=>{var n,i,l,a,u,s=e[t];null!=s&&!0!==s.$$css&&(t.indexOf("$raw")>-1?(i=(n=function(e,t){var n,i={$$css:!0},l=[],a=e.animationKeyframes,u=(0,o.Z)(e,F),s="css-"+w(t+JSON.stringify(e));if(null!=a){var c=ed(a),d=c[0],f=c[1];n=d.join(","),l.push(...f)}var p=ec((0,r.Z)((0,r.Z)({},u),{},{animationName:n}));return l.push("."+s+p),i[s]=s,[i,[[l,1]]]}(s,t.split("$raw")[0]))[0],ez(n[1]),u=i):(a=(l=function(e){var t={$$css:!0},n=[];function r(e,t,r){var o,i,l="string"!=typeof(o=h(r,t))?JSON.stringify(o||""):o,a=t+l,u=_.get(a);if(null!=u)i=u[0],n.push(u[1]);else{i="r-"+w(e+(e!==t?a:l));var s=V[e]||3,c=[function(e,t,n){var r=[],o="."+e;switch(t){case"animationKeyframes":var i=ed(n),l=i[0],a=i[1],u=ec({animationName:l.join(",")});r.push(""+o+u,...a);break;case"placeholderTextColor":var s=ec({color:n,opacity:1});r.push(o+"::-webkit-input-placeholder"+s,o+"::-moz-placeholder"+s,o+":-ms-input-placeholder"+s,o+"::placeholder"+s);break;case"pointerEvents":var c=n;if("auto"===n||"box-only"===n){if(c="auto!important","box-only"===n){var d=ec({pointerEvents:"none"});r.push(o+">*"+d)}}else if(("none"===n||"box-none"===n)&&(c="none!important","box-none"===n)){var f=ec({pointerEvents:"auto"});r.push(o+">*"+f)}var p=ec({pointerEvents:c});r.push(""+o+p);break;case"scrollbarWidth":"none"===n&&r.push(o+"::-webkit-scrollbar{display:none}");var h=ec({scrollbarWidth:n});r.push(""+o+h);break;default:var m=ec({[t]:n});r.push(""+o+m)}return r}(i,t,r),s];n.push(c),_.set(a,[i,c])}return i}return Object.keys(e).sort().forEach(n=>{var o=e[n];if(null!=o){if(es.indexOf(n)>-1){var i,l=r(n,n,"left"),a=r(n,n,"right");"start"===o?i=[l,a]:"end"===o&&(i=[a,l])}var u=eu[n];if(null!=u&&(i=[r(n,u,o),r(n,ea[u],o)]),"transitionProperty"===n){for(var s=Array.isArray(o)?o:[o],c=[],d=0;d0){var p=[...s],h=[...s];c.forEach(e=>{var t=p[e];if("string"==typeof t){var o=eu[t],l=ea[o];p[e]=o,h[e]=l,i=[r(n,n,p),r(n,n,h)]}})}}null==i?i=r(n,n,o):t.$$css$localize=!0,t[n]=i}}),[t,n]}(eI(s,eN)))[0],ez(l[1]),u=a),eB.set(s,u))}),e}function e_(e,t){void 0===t&&(t={});var n,i,l,a,u,s="rtl"===t.writingDirection,c=(void 0===(n=t)&&(n={}),l=(i=n).writingDirection,a=(0,o.Z)(i,eD),u="rtl"===l,eL.D.factory({transform(e){var t=eB.get(e);return null!=t?(0,ex.j)(t,u):eI(e,(0,r.Z)((0,r.Z)({},eN),a))}})(e));return Array.isArray(c)&&null!=c[1]&&(c[1]=function(e,t){var n=e||Z,r={},o={};for(var i in n)if("continue"===function(){var e=n[i],l=i,a=e;if(!Object.prototype.hasOwnProperty.call(n,i)||null==e)return"continue";es.indexOf(i)>-1&&("start"===e?a=t?"right":"left":"end"===e&&(a=t?"left":"right"));var u=eu[i];if(null!=u&&(l=t?ea[u]:u),"transitionProperty"===i){var s=Array.isArray(e)?e:[e];s.forEach((e,n)=>{if("string"==typeof e){var r=eu[e];null!=r&&(s[n]=t?ea[r]:r,a=s.join(" "))}})}r[l]||(o[l]=a),l===i&&(r[l]=!0)}())continue;return S(o,!0)}(c[1],s)),c}e_.absoluteFill=eH,e_.absoluteFillObject=ej,e_.create=eF,e_.compose=function(e,t){return[e,t]},e_.flatten=function(){for(var e=arguments.length,t=Array(e),n=0;nReflect.has(n,r)?Reflect.get(n,r):e(),apply:()=>e()})}(!0)},2319:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(2141),o={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},i=["ms","Moz","O","Webkit"],l=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1);Object.keys(o).forEach(e=>{i.forEach(t=>{o[l(t,e)]=o[e]})});var a=function(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i,l,a=0===r.indexOf("--"),u=(i=r,null==(l=t[r])||"boolean"==typeof l||""===l?"":a||"number"!=typeof l||0===l||o.hasOwnProperty(i)&&o[i]?(""+l).trim():l+"px");"float"===r&&(r="cssFloat"),a?n.setProperty(r,u):n[r]=u}},u=e=>{var t=e.offsetHeight,n=e.offsetWidth,r=e.offsetLeft,o=e.offsetTop;for(e=e.offsetParent;e&&1===e.nodeType;)r+=e.offsetLeft+e.clientLeft-e.scrollLeft,o+=e.offsetTop+e.clientTop-e.scrollTop,e=e.offsetParent;return{width:n,height:t,top:o-=window.scrollY,left:r-=window.scrollX}},s=(e,t,n)=>{var r=t||e&&e.parentNode;e&&r&&setTimeout(()=>{if(e.isConnected&&r.isConnected){var t=u(r),o=u(e),i=o.height,l=o.left,a=o.top,s=o.width;n(l-t.left,a-t.top,s,i,l,a)}},0)},c={A:!0,BODY:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0},d={blur(e){try{e.blur()}catch(e){}},focus(e){try{var t=e.nodeName;null==e.getAttribute("tabIndex")&&!0!==e.isContentEditable&&null==c[t]&&e.setAttribute("tabIndex","-1"),e.focus()}catch(e){}},measure(e,t){s(e,null,t)},measureInWindow(e,t){e&&setTimeout(()=>{var n=(0,r.Z)(e),o=n.height;t(n.left,n.top,n.width,o)},0)},measureLayout(e,t,n,r){s(e,t,r)},updateView(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];switch(n){case"style":a(e,r);break;case"class":case"className":e.setAttribute("class",r);break;case"text":case"value":e.value=r;break;default:e.setAttribute(n,r)}}},configureNextLayoutAnimation(e,t){t()},setLayoutAnimationEnabledExperimental(){}}},5275:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(3950),o=n(2265),i=n(5803),l=n(7792),a=n(2675),u=n(9647),s=n(9926),c=n(5158),d=n(4886),f=n(929),p=(0,o.createContext)(!1),h=n(3201),m=["hrefAttrs","onLayout","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture"],v=Object.assign({},l.lG,l.LO,l._T,l.YB,l.Uy,l.hJ,l.E5,l.vr,{href:!0,lang:!0,onScroll:!0,onWheel:!0,pointerEvents:!0}),g=e=>(0,a.Z)(e,v),b=o.forwardRef((e,t)=>{var n=e.hrefAttrs,l=e.onLayout,a=e.onMoveShouldSetResponder,f=e.onMoveShouldSetResponderCapture,v=e.onResponderEnd,b=e.onResponderGrant,S=e.onResponderMove,w=e.onResponderReject,x=e.onResponderRelease,R=e.onResponderStart,E=e.onResponderTerminate,k=e.onResponderTerminationRequest,C=e.onScrollShouldSetResponder,T=e.onScrollShouldSetResponderCapture,O=e.onSelectionChangeShouldSetResponder,M=e.onSelectionChangeShouldSetResponderCapture,A=e.onStartShouldSetResponder,P=e.onStartShouldSetResponderCapture,I=(0,r.Z)(e,m),L=o.useContext(p),D=o.useRef(null),B=(0,h.PE)().direction;(0,u.Z)(D,l),(0,d.Z)(D,{onMoveShouldSetResponder:a,onMoveShouldSetResponderCapture:f,onResponderEnd:v,onResponderGrant:b,onResponderMove:S,onResponderReject:w,onResponderRelease:x,onResponderStart:R,onResponderTerminate:E,onResponderTerminationRequest:k,onScrollShouldSetResponder:C,onScrollShouldSetResponderCapture:T,onSelectionChangeShouldSetResponder:O,onSelectionChangeShouldSetResponderCapture:M,onStartShouldSetResponder:A,onStartShouldSetResponderCapture:P});var W="div",N=null!=e.lang?(0,h.w1)(e.lang):null,z=e.dir||N,j=z||B,H=g(I);if(H.dir=z,H.style=[y.view$raw,L&&y.inline,e.style],null!=e.href&&(W="a",null!=n)){var F=n.download,_=n.rel,Z=n.target;null!=F&&(H.download=F),null!=_&&(H.rel=_),"string"==typeof Z&&(H.target="_"!==Z.charAt(0)?"_"+Z:Z)}var V=(0,c.Z)(H),$=(0,s.Z)(D,V,t);return H.ref=$,(0,i.Z)(W,H,{writingDirection:j})});b.displayName="View";var y=f.Z.create({view$raw:{alignItems:"stretch",backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",display:"flex",flexBasis:"auto",flexDirection:"column",flexShrink:0,listStyle:"none",margin:0,minHeight:0,minWidth:0,padding:0,position:"relative",textDecoration:"none",zIndex:0},inline:{display:"inline-flex"}}),S=b},5803:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var r={adjustable:"slider",button:"button",header:"heading",image:"img",imagebutton:null,keyboardkey:null,label:null,link:"link",none:"presentation",search:"search",summary:"region",text:null},o=e=>{var t=e.accessibilityRole,n=e.role||t;if(n){var o=r[n];if(null!==o)return o||n}},i={article:"article",banner:"header",blockquote:"blockquote",button:"button",code:"code",complementary:"aside",contentinfo:"footer",deletion:"del",emphasis:"em",figure:"figure",insertion:"ins",form:"form",list:"ul",listitem:"li",main:"main",navigation:"nav",paragraph:"p",region:"section",strong:"strong"},l={},a={propsToAccessibilityComponent:function(e){if(void 0===e&&(e=l),"label"===e.accessibilityRole)return"label";var t=o(e);if(t){if("heading"===t){var n=e.accessibilityLevel||e["aria-level"];return null!=n?"h"+n:"h1"}return i[t]}},propsToAriaRole:o},u=n(7998),s=n(3950),c=n(929),d=n(131),f=["aria-activedescendant","accessibilityActiveDescendant","aria-atomic","accessibilityAtomic","aria-autocomplete","accessibilityAutoComplete","aria-busy","accessibilityBusy","aria-checked","accessibilityChecked","aria-colcount","accessibilityColumnCount","aria-colindex","accessibilityColumnIndex","aria-colspan","accessibilityColumnSpan","aria-controls","accessibilityControls","aria-current","accessibilityCurrent","aria-describedby","accessibilityDescribedBy","aria-details","accessibilityDetails","aria-disabled","accessibilityDisabled","aria-errormessage","accessibilityErrorMessage","aria-expanded","accessibilityExpanded","aria-flowto","accessibilityFlowTo","aria-haspopup","accessibilityHasPopup","aria-hidden","accessibilityHidden","aria-invalid","accessibilityInvalid","aria-keyshortcuts","accessibilityKeyShortcuts","aria-label","accessibilityLabel","aria-labelledby","accessibilityLabelledBy","aria-level","accessibilityLevel","aria-live","accessibilityLiveRegion","aria-modal","accessibilityModal","aria-multiline","accessibilityMultiline","aria-multiselectable","accessibilityMultiSelectable","aria-orientation","accessibilityOrientation","aria-owns","accessibilityOwns","aria-placeholder","accessibilityPlaceholder","aria-posinset","accessibilityPosInSet","aria-pressed","accessibilityPressed","aria-readonly","accessibilityReadOnly","aria-required","accessibilityRequired","role","accessibilityRole","aria-roledescription","accessibilityRoleDescription","aria-rowcount","accessibilityRowCount","aria-rowindex","accessibilityRowIndex","aria-rowspan","accessibilityRowSpan","aria-selected","accessibilitySelected","aria-setsize","accessibilitySetSize","aria-sort","accessibilitySort","aria-valuemax","accessibilityValueMax","aria-valuemin","accessibilityValueMin","aria-valuenow","accessibilityValueNow","aria-valuetext","accessibilityValueText","dataSet","focusable","id","nativeID","pointerEvents","style","tabIndex","testID"],p={},h=Object.prototype.hasOwnProperty,m=Array.isArray,v=/[A-Z]/g;function g(e){return"-"+e.toLowerCase()}function b(e){return m(e)?e.join(" "):e}var y=c.Z.create({auto:{pointerEvents:"auto"},"box-none":{pointerEvents:"box-none"},"box-only":{pointerEvents:"box-only"},none:{pointerEvents:"none"}}),S=(e,t,n)=>{t||(t=p);var r=t,o=r["aria-activedescendant"],i=r.accessibilityActiveDescendant,l=r["aria-atomic"],m=r.accessibilityAtomic,S=r["aria-autocomplete"],w=r.accessibilityAutoComplete,x=r["aria-busy"],R=r.accessibilityBusy,E=r["aria-checked"],k=r.accessibilityChecked,C=r["aria-colcount"],T=r.accessibilityColumnCount,O=r["aria-colindex"],M=r.accessibilityColumnIndex,A=r["aria-colspan"],P=r.accessibilityColumnSpan,I=r["aria-controls"],L=r.accessibilityControls,D=r["aria-current"],B=r.accessibilityCurrent,W=r["aria-describedby"],N=r.accessibilityDescribedBy,z=r["aria-details"],j=r.accessibilityDetails,H=r["aria-disabled"],F=r.accessibilityDisabled,_=r["aria-errormessage"],Z=r.accessibilityErrorMessage,V=r["aria-expanded"],$=r.accessibilityExpanded,K=r["aria-flowto"],U=r.accessibilityFlowTo,Y=r["aria-haspopup"],X=r.accessibilityHasPopup,q=r["aria-hidden"],G=r.accessibilityHidden,J=r["aria-invalid"],Q=r.accessibilityInvalid,ee=r["aria-keyshortcuts"],et=r.accessibilityKeyShortcuts,en=r["aria-label"],er=r.accessibilityLabel,eo=r["aria-labelledby"],ei=r.accessibilityLabelledBy,el=r["aria-level"],ea=r.accessibilityLevel,eu=r["aria-live"],es=r.accessibilityLiveRegion,ec=r["aria-modal"],ed=r.accessibilityModal,ef=r["aria-multiline"],ep=r.accessibilityMultiline,eh=r["aria-multiselectable"],em=r.accessibilityMultiSelectable,ev=r["aria-orientation"],eg=r.accessibilityOrientation,eb=r["aria-owns"],ey=r.accessibilityOwns,eS=r["aria-placeholder"],ew=r.accessibilityPlaceholder,ex=r["aria-posinset"],eR=r.accessibilityPosInSet,eE=r["aria-pressed"],ek=r.accessibilityPressed,eC=r["aria-readonly"],eT=r.accessibilityReadOnly,eO=r["aria-required"],eM=r.accessibilityRequired,eA=(r.role,r.accessibilityRole),eP=r["aria-roledescription"],eI=r.accessibilityRoleDescription,eL=r["aria-rowcount"],eD=r.accessibilityRowCount,eB=r["aria-rowindex"],eW=r.accessibilityRowIndex,eN=r["aria-rowspan"],ez=r.accessibilityRowSpan,ej=r["aria-selected"],eH=r.accessibilitySelected,eF=r["aria-setsize"],e_=r.accessibilitySetSize,eZ=r["aria-sort"],eV=r.accessibilitySort,e$=r["aria-valuemax"],eK=r.accessibilityValueMax,eU=r["aria-valuemin"],eY=r.accessibilityValueMin,eX=r["aria-valuenow"],eq=r.accessibilityValueNow,eG=r["aria-valuetext"],eJ=r.accessibilityValueText,eQ=r.dataSet,e0=r.focusable,e1=r.id,e2=r.nativeID,e5=r.pointerEvents,e3=r.style,e4=r.tabIndex,e7=r.testID,e9=(0,s.Z)(r,f);null!=F&&(0,d.O)("accessibilityDisabled","accessibilityDisabled is deprecated.");var e8=a.propsToAriaRole(t);null!=i&&(0,d.O)("accessibilityActiveDescendant","accessibilityActiveDescendant is deprecated. Use aria-activedescendant.");var e6=null!=o?o:i;null!=e6&&(e9["aria-activedescendant"]=e6),null!=m&&(0,d.O)("accessibilityAtomic","accessibilityAtomic is deprecated. Use aria-atomic.");var te=null!=l?o:m;null!=te&&(e9["aria-atomic"]=te),null!=w&&(0,d.O)("accessibilityAutoComplete","accessibilityAutoComplete is deprecated. Use aria-autocomplete.");var tt=null!=S?S:w;null!=tt&&(e9["aria-autocomplete"]=tt),null!=R&&(0,d.O)("accessibilityBusy","accessibilityBusy is deprecated. Use aria-busy.");var tn=null!=x?x:R;null!=tn&&(e9["aria-busy"]=tn),null!=k&&(0,d.O)("accessibilityChecked","accessibilityChecked is deprecated. Use aria-checked.");var tr=null!=E?E:k;null!=tr&&(e9["aria-checked"]=tr),null!=T&&(0,d.O)("accessibilityColumnCount","accessibilityColumnCount is deprecated. Use aria-colcount.");var to=null!=C?C:T;null!=to&&(e9["aria-colcount"]=to),null!=M&&(0,d.O)("accessibilityColumnIndex","accessibilityColumnIndex is deprecated. Use aria-colindex.");var ti=null!=O?O:M;null!=ti&&(e9["aria-colindex"]=ti),null!=P&&(0,d.O)("accessibilityColumnSpan","accessibilityColumnSpan is deprecated. Use aria-colspan.");var tl=null!=A?A:P;null!=tl&&(e9["aria-colspan"]=tl),null!=L&&(0,d.O)("accessibilityControls","accessibilityControls is deprecated. Use aria-controls.");var ta=null!=I?I:L;null!=ta&&(e9["aria-controls"]=b(ta)),null!=B&&(0,d.O)("accessibilityCurrent","accessibilityCurrent is deprecated. Use aria-current.");var tu=null!=D?D:B;null!=tu&&(e9["aria-current"]=tu),null!=N&&(0,d.O)("accessibilityDescribedBy","accessibilityDescribedBy is deprecated. Use aria-describedby.");var ts=null!=W?W:N;null!=ts&&(e9["aria-describedby"]=b(ts)),null!=j&&(0,d.O)("accessibilityDetails","accessibilityDetails is deprecated. Use aria-details.");var tc=null!=z?z:j;null!=tc&&(e9["aria-details"]=tc),!0===(H||F)&&(e9["aria-disabled"]=!0,("button"===e||"form"===e||"input"===e||"select"===e||"textarea"===e)&&(e9.disabled=!0)),null!=Z&&(0,d.O)("accessibilityErrorMessage","accessibilityErrorMessage is deprecated. Use aria-errormessage.");var td=null!=_?_:Z;null!=td&&(e9["aria-errormessage"]=td),null!=$&&(0,d.O)("accessibilityExpanded","accessibilityExpanded is deprecated. Use aria-expanded.");var tf=null!=V?V:$;null!=tf&&(e9["aria-expanded"]=tf),null!=U&&(0,d.O)("accessibilityFlowTo","accessibilityFlowTo is deprecated. Use aria-flowto.");var tp=null!=K?K:U;null!=tp&&(e9["aria-flowto"]=b(tp)),null!=X&&(0,d.O)("accessibilityHasPopup","accessibilityHasPopup is deprecated. Use aria-haspopup.");var th=null!=Y?Y:X;null!=th&&(e9["aria-haspopup"]=th),null!=G&&(0,d.O)("accessibilityHidden","accessibilityHidden is deprecated. Use aria-hidden.");var tm=null!=q?q:G;!0===tm&&(e9["aria-hidden"]=tm),null!=Q&&(0,d.O)("accessibilityInvalid","accessibilityInvalid is deprecated. Use aria-invalid.");var tv=null!=J?J:Q;null!=tv&&(e9["aria-invalid"]=tv),null!=et&&(0,d.O)("accessibilityKeyShortcuts","accessibilityKeyShortcuts is deprecated. Use aria-keyshortcuts.");var tg=null!=ee?ee:et;null!=tg&&(e9["aria-keyshortcuts"]=b(tg)),null!=er&&(0,d.O)("accessibilityLabel","accessibilityLabel is deprecated. Use aria-label.");var tb=null!=en?en:er;null!=tb&&(e9["aria-label"]=tb),null!=ei&&(0,d.O)("accessibilityLabelledBy","accessibilityLabelledBy is deprecated. Use aria-labelledby.");var ty=null!=eo?eo:ei;null!=ty&&(e9["aria-labelledby"]=b(ty)),null!=ea&&(0,d.O)("accessibilityLevel","accessibilityLevel is deprecated. Use aria-level.");var tS=null!=el?el:ea;null!=tS&&(e9["aria-level"]=tS),null!=es&&(0,d.O)("accessibilityLiveRegion","accessibilityLiveRegion is deprecated. Use aria-live.");var tw=null!=eu?eu:es;null!=tw&&(e9["aria-live"]="none"===tw?"off":tw),null!=ed&&(0,d.O)("accessibilityModal","accessibilityModal is deprecated. Use aria-modal.");var tx=null!=ec?ec:ed;null!=tx&&(e9["aria-modal"]=tx),null!=ep&&(0,d.O)("accessibilityMultiline","accessibilityMultiline is deprecated. Use aria-multiline.");var tR=null!=ef?ef:ep;null!=tR&&(e9["aria-multiline"]=tR),null!=em&&(0,d.O)("accessibilityMultiSelectable","accessibilityMultiSelectable is deprecated. Use aria-multiselectable.");var tE=null!=eh?eh:em;null!=tE&&(e9["aria-multiselectable"]=tE),null!=eg&&(0,d.O)("accessibilityOrientation","accessibilityOrientation is deprecated. Use aria-orientation.");var tk=null!=ev?ev:eg;null!=tk&&(e9["aria-orientation"]=tk),null!=ey&&(0,d.O)("accessibilityOwns","accessibilityOwns is deprecated. Use aria-owns.");var tC=null!=eb?eb:ey;null!=tC&&(e9["aria-owns"]=b(tC)),null!=ew&&(0,d.O)("accessibilityPlaceholder","accessibilityPlaceholder is deprecated. Use aria-placeholder.");var tT=null!=eS?eS:ew;null!=tT&&(e9["aria-placeholder"]=tT),null!=eR&&(0,d.O)("accessibilityPosInSet","accessibilityPosInSet is deprecated. Use aria-posinset.");var tO=null!=ex?ex:eR;null!=tO&&(e9["aria-posinset"]=tO),null!=ek&&(0,d.O)("accessibilityPressed","accessibilityPressed is deprecated. Use aria-pressed.");var tM=null!=eE?eE:ek;null!=tM&&(e9["aria-pressed"]=tM),null!=eT&&(0,d.O)("accessibilityReadOnly","accessibilityReadOnly is deprecated. Use aria-readonly.");var tA=null!=eC?eC:eT;null!=tA&&(e9["aria-readonly"]=tA,("input"===e||"select"===e||"textarea"===e)&&(e9.readOnly=!0)),null!=eM&&(0,d.O)("accessibilityRequired","accessibilityRequired is deprecated. Use aria-required.");var tP=null!=eO?eO:eM;null!=tP&&(e9["aria-required"]=tP,("input"===e||"select"===e||"textarea"===e)&&(e9.required=eM)),null!=eA&&(0,d.O)("accessibilityRole","accessibilityRole is deprecated. Use role."),null!=e8&&(e9.role="none"===e8?"presentation":e8),null!=eI&&(0,d.O)("accessibilityRoleDescription","accessibilityRoleDescription is deprecated. Use aria-roledescription.");var tI=null!=eP?eP:eI;null!=tI&&(e9["aria-roledescription"]=tI),null!=eD&&(0,d.O)("accessibilityRowCount","accessibilityRowCount is deprecated. Use aria-rowcount.");var tL=null!=eL?eL:eD;null!=tL&&(e9["aria-rowcount"]=tL),null!=eW&&(0,d.O)("accessibilityRowIndex","accessibilityRowIndex is deprecated. Use aria-rowindex.");var tD=null!=eB?eB:eW;null!=tD&&(e9["aria-rowindex"]=tD),null!=ez&&(0,d.O)("accessibilityRowSpan","accessibilityRowSpan is deprecated. Use aria-rowspan.");var tB=null!=eN?eN:ez;null!=tB&&(e9["aria-rowspan"]=tB),null!=eH&&(0,d.O)("accessibilitySelected","accessibilitySelected is deprecated. Use aria-selected.");var tW=null!=ej?ej:eH;null!=tW&&(e9["aria-selected"]=tW),null!=e_&&(0,d.O)("accessibilitySetSize","accessibilitySetSize is deprecated. Use aria-setsize.");var tN=null!=eF?eF:e_;null!=tN&&(e9["aria-setsize"]=tN),null!=eV&&(0,d.O)("accessibilitySort","accessibilitySort is deprecated. Use aria-sort.");var tz=null!=eZ?eZ:eV;null!=tz&&(e9["aria-sort"]=tz),null!=eK&&(0,d.O)("accessibilityValueMax","accessibilityValueMax is deprecated. Use aria-valuemax.");var tj=null!=e$?e$:eK;null!=tj&&(e9["aria-valuemax"]=tj),null!=eY&&(0,d.O)("accessibilityValueMin","accessibilityValueMin is deprecated. Use aria-valuemin.");var tH=null!=eU?eU:eY;null!=tH&&(e9["aria-valuemin"]=tH),null!=eq&&(0,d.O)("accessibilityValueNow","accessibilityValueNow is deprecated. Use aria-valuenow.");var tF=null!=eX?eX:eq;null!=tF&&(e9["aria-valuenow"]=tF),null!=eJ&&(0,d.O)("accessibilityValueText","accessibilityValueText is deprecated. Use aria-valuetext.");var t_=null!=eG?eG:eJ;if(null!=t_&&(e9["aria-valuetext"]=t_),null!=eQ){for(var tZ in eQ)if(h.call(eQ,tZ)){var tV=tZ.replace(v,g),t$=eQ[tZ];null!=t$&&(e9["data-"+tV]=t$)}}0===e4||"0"===e4||-1===e4||"-1"===e4?e9.tabIndex=e4:(null!=e0&&(0,d.O)("focusable","focusable is deprecated."),!1===e0&&(e9.tabIndex="-1"),"a"===e||"button"===e||"input"===e||"select"===e||"textarea"===e?(!1===e0||!0===F)&&(e9.tabIndex="-1"):"button"===e8||"checkbox"===e8||"link"===e8||"radio"===e8||"textbox"===e8||"switch"===e8?!1!==e0&&(e9.tabIndex="0"):!0===e0&&(e9.tabIndex="0")),null!=e5&&(0,d.O)("pointerEvents","props.pointerEvents is deprecated. Use style.pointerEvents");var tK=(0,c.Z)([e3,e5&&y[e5]],(0,u.Z)({writingDirection:"ltr"},n)),tU=tK[0],tY=tK[1];tU&&(e9.className=tU),tY&&(e9.style=tY),null!=e2&&(0,d.O)("nativeID","nativeID is deprecated. Use id.");var tX=null!=e1?e1:e2;return null!=tX&&(e9.id=tX),null!=e7&&(e9["data-testid"]=e7),null==e9.type&&"button"===e&&(e9.type="button"),e9},w=n(2265),x=n(3201),R=(e,t,n)=>{e&&e.constructor===String&&(r=a.propsToAccessibilityComponent(t));var r,o=r||e,i=S(o,t,n),l=w.createElement(o,i);return i.dir?w.createElement(x.Iw,{children:l,direction:i.dir,locale:i.lang}):l}},3013:function(e,t,n){"use strict";var r=n(2319);t.Z={_currentlyFocusedNode:null,currentlyFocusedField(){return document.activeElement!==this._currentlyFocusedNode&&(this._currentlyFocusedNode=null),this._currentlyFocusedNode},focusTextInput(e){null!==e&&(this._currentlyFocusedNode=e,document.activeElement!==e&&r.Z.focus(e))},blurTextInput(e){null!==e&&(this._currentlyFocusedNode=null,document.activeElement===e&&r.Z.blur(e))}}},1213:function(e,t){"use strict";var n=!!("undefined"!=typeof window&&window.document&&window.document.createElement);t.Z=n},5832:function(e,t,n){"use strict";var r=n(3013);t.Z=()=>{r.Z.blurTextInput(r.Z.currentlyFocusedField())}},7792:function(e,t,n){"use strict";n.d(t,{E5:function(){return s},LO:function(){return o},Uy:function(){return a},YB:function(){return l},_T:function(){return i},hJ:function(){return u},lG:function(){return r},vr:function(){return c}});var r={children:!0,dataSet:!0,dir:!0,id:!0,ref:!0,suppressHydrationWarning:!0,tabIndex:!0,testID:!0,focusable:!0,nativeID:!0},o={"aria-activedescendant":!0,"aria-atomic":!0,"aria-autocomplete":!0,"aria-busy":!0,"aria-checked":!0,"aria-colcount":!0,"aria-colindex":!0,"aria-colspan":!0,"aria-controls":!0,"aria-current":!0,"aria-describedby":!0,"aria-details":!0,"aria-disabled":!0,"aria-errormessage":!0,"aria-expanded":!0,"aria-flowto":!0,"aria-haspopup":!0,"aria-hidden":!0,"aria-invalid":!0,"aria-keyshortcuts":!0,"aria-label":!0,"aria-labelledby":!0,"aria-level":!0,"aria-live":!0,"aria-modal":!0,"aria-multiline":!0,"aria-multiselectable":!0,"aria-orientation":!0,"aria-owns":!0,"aria-placeholder":!0,"aria-posinset":!0,"aria-pressed":!0,"aria-readonly":!0,"aria-required":!0,role:!0,"aria-roledescription":!0,"aria-rowcount":!0,"aria-rowindex":!0,"aria-rowspan":!0,"aria-selected":!0,"aria-setsize":!0,"aria-sort":!0,"aria-valuemax":!0,"aria-valuemin":!0,"aria-valuenow":!0,"aria-valuetext":!0,accessibilityActiveDescendant:!0,accessibilityAtomic:!0,accessibilityAutoComplete:!0,accessibilityBusy:!0,accessibilityChecked:!0,accessibilityColumnCount:!0,accessibilityColumnIndex:!0,accessibilityColumnSpan:!0,accessibilityControls:!0,accessibilityCurrent:!0,accessibilityDescribedBy:!0,accessibilityDetails:!0,accessibilityDisabled:!0,accessibilityErrorMessage:!0,accessibilityExpanded:!0,accessibilityFlowTo:!0,accessibilityHasPopup:!0,accessibilityHidden:!0,accessibilityInvalid:!0,accessibilityKeyShortcuts:!0,accessibilityLabel:!0,accessibilityLabelledBy:!0,accessibilityLevel:!0,accessibilityLiveRegion:!0,accessibilityModal:!0,accessibilityMultiline:!0,accessibilityMultiSelectable:!0,accessibilityOrientation:!0,accessibilityOwns:!0,accessibilityPlaceholder:!0,accessibilityPosInSet:!0,accessibilityPressed:!0,accessibilityReadOnly:!0,accessibilityRequired:!0,accessibilityRole:!0,accessibilityRoleDescription:!0,accessibilityRowCount:!0,accessibilityRowIndex:!0,accessibilityRowSpan:!0,accessibilitySelected:!0,accessibilitySetSize:!0,accessibilitySort:!0,accessibilityValueMax:!0,accessibilityValueMin:!0,accessibilityValueNow:!0,accessibilityValueText:!0},i={onClick:!0,onAuxClick:!0,onContextMenu:!0,onGotPointerCapture:!0,onLostPointerCapture:!0,onPointerCancel:!0,onPointerDown:!0,onPointerEnter:!0,onPointerMove:!0,onPointerLeave:!0,onPointerOut:!0,onPointerOver:!0,onPointerUp:!0},l={onBlur:!0,onFocus:!0},a={onKeyDown:!0,onKeyDownCapture:!0,onKeyUp:!0,onKeyUpCapture:!0},u={onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOver:!0,onMouseOut:!0,onMouseUp:!0},s={onTouchCancel:!0,onTouchCancelCapture:!0,onTouchEnd:!0,onTouchEndCapture:!0,onTouchMove:!0,onTouchMoveCapture:!0,onTouchStart:!0,onTouchStartCapture:!0},c={style:!0}},2141:function(e,t){"use strict";t.Z=e=>{if(null!=e&&1===e.nodeType&&"function"==typeof e.getBoundingClientRect)return e.getBoundingClientRect()}},2050:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n{if(null!=t){if("function"==typeof t){t(e);return}if("object"==typeof t){t.current=e;return}console.error("mergeRefs cannot handle Refs of type boolean, number or string, received ref "+String(t))}})}}n.d(t,{Z:function(){return r}}),n(2265)},2675:function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&!0===t[r]&&(n[r]=e[r]);return n}n.d(t,{Z:function(){return r}})},9647:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(1435),o=n(2319),i=n(1213),l="__reactLayoutHandler",a=(i.Z,null);function u(e,t){var n=(i.Z&&void 0!==window.ResizeObserver&&null==a&&(a=new window.ResizeObserver(function(e){e.forEach(e=>{var t=e.target,n=t[l];"function"==typeof n&&o.Z.measure(t,(t,r,o,i,l,a)=>{var u={nativeEvent:{layout:{x:t,y:r,width:o,height:i,left:l,top:a}},timeStamp:Date.now()};Object.defineProperty(u.nativeEvent,"target",{enumerable:!0,get:()=>e.target}),n(u)})})})),a);(0,r.Z)(()=>{var n=e.current;null!=n&&(n[l]=t)},[e,t]),(0,r.Z)(()=>{var t=e.current;return null!=t&&null!=n&&("function"==typeof t[l]?n.observe(t):n.unobserve(t)),()=>{null!=t&&null!=n&&n.unobserve(t)}},[e,n])}},1435:function(e,t,n){"use strict";var r=n(2265),o=n(1213).Z?r.useLayoutEffect:r.useEffect;t.Z=o},3201:function(e,t,n){"use strict";n.d(t,{Iw:function(){return s},w1:function(){return u},PE:function(){return c}});var r=n(2265),o=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),i=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","far","glk","he","iw","khw","ks","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]),l=new Map,a=(0,r.createContext)({direction:"ltr",locale:"en-US"});function u(e){return!function(e){var t=l.get(e);if(t)return t;var n=!1;if(Intl.Locale){var r=new Intl.Locale(e).maximize().script;n=o.has(r)}else{var a=e.split("-")[0];n=i.has(a)}return l.set(e,n),n}(e)?"ltr":"rtl"}function s(e){var t=e.direction,n=e.locale,o=e.children;return t||n?r.createElement(a.Provider,{children:o,value:{direction:n?u(n):t,locale:n}}):o}function c(){return(0,r.useContext)(a)}},9926:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2265),o=n(2050);function i(){for(var e=arguments.length,t=Array(e),n=0;n(0,o.Z)(...t),[...t])}},5158:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2319),o=n(2265),i="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():Object.freeze({});function l(e){var t,n;return e.pointerEvents,e.style,t=()=>e=>{null!=e&&(e.measure=t=>r.Z.measure(e,t),e.measureLayout=(t,n,o)=>r.Z.measureLayout(e,t,o,n),e.measureInWindow=t=>r.Z.measureInWindow(e,t))},(n=o.useRef(i)).current===i&&(n.current=t()),n.current}},4886:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=n(2265),o=n(2141),i=()=>{},l={},a=[];function u(e){return e>20?e%20:e}function s(e,t){var n,r,s,c=!1,d=e.changedTouches,f=e.type,p=!0===e.metaKey,h=!0===e.shiftKey,m=d&&d[0].force||0,v=u(d&&d[0].identifier||0),g=d&&d[0].clientX||e.clientX,b=d&&d[0].clientY||e.clientY,y=d&&d[0].pageX||e.pageX,S=d&&d[0].pageY||e.pageY,w="function"==typeof e.preventDefault?e.preventDefault.bind(e):i,x=e.timeStamp;function R(e){return Array.prototype.slice.call(e).map(e=>({force:e.force,identifier:u(e.identifier),get locationX(){return C(e.clientX)},get locationY(){return T(e.clientY)},pageX:e.pageX,pageY:e.pageY,target:e.target,timestamp:x}))}if(null!=d)r=R(d),s=R(e.touches);else{var E=[{force:m,identifier:v,get locationX(){return C(g)},get locationY(){return T(b)},pageX:y,pageY:S,target:e.target,timestamp:x}];r=E,s="mouseup"===f||"dragstart"===f?a:E}var k={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:e.defaultPrevented,dispatchConfig:l,eventPhase:e.eventPhase,isDefaultPrevented:()=>e.defaultPrevented,isPropagationStopped:()=>c,isTrusted:e.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:p,shiftKey:h,changedTouches:r,force:m,identifier:v,get locationX(){return C(g)},get locationY(){return T(b)},pageX:y,pageY:S,target:e.target,timestamp:x,touches:s,type:f},persist:i,preventDefault:w,stopPropagation(){c=!0},target:e.target,timeStamp:x,touchHistory:t.touchHistory};function C(e){if(n=n||(0,o.Z)(k.currentTarget))return e-n.left}function T(e){if(n=n||(0,o.Z)(k.currentTarget))return e-n.top}return k}function c(e){return"touchstart"===e||"mousedown"===e}function d(e){return"touchmove"===e||"mousemove"===e}function f(e){return"touchend"===e||"mouseup"===e||p(e)}function p(e){return"touchcancel"===e||"dragstart"===e}var h="__reactResponderId";function m(e){for(var t=[];null!=e&&e!==document.body;)t.push(e),e=e.parentNode;return t}function v(e){return e.timeStamp||e.timestamp}function g(e){var t=e.identifier;return null==t&&console.error("Touch object is missing identifier."),t}function b(e){return JSON.stringify({identifier:e.identifier,pageX:e.pageX,pageY:e.pageY,timestamp:v(e)})}function y(e){var t=e.touchBank,n=JSON.stringify(t.slice(0,20));return t.length>20&&(n+=" (original size: "+t.length+")"),n}class S{constructor(){this._touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0}}recordTouchTrack(e,t){var n=this._touchHistory;if(d(e))t.changedTouches.forEach(e=>{var t;(t=n.touchBank[g(e)])?(t.touchActive=!0,t.previousPageX=t.currentPageX,t.previousPageY=t.currentPageY,t.previousTimeStamp=t.currentTimeStamp,t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=v(e),n.mostRecentTimeStamp=v(e)):console.warn("Cannot record touch move without a touch start.\n","Touch Move: "+b(e)+"\n","Touch Bank: "+y(n))});else if(c(e))t.changedTouches.forEach(e=>{var t,r,o,i;return t=e,r=n,o=g(t),void((i=r.touchBank[o])?(i.touchActive=!0,i.startPageX=t.pageX,i.startPageY=t.pageY,i.startTimeStamp=v(t),i.currentPageX=t.pageX,i.currentPageY=t.pageY,i.currentTimeStamp=v(t),i.previousPageX=t.pageX,i.previousPageY=t.pageY,i.previousTimeStamp=v(t)):r.touchBank[o]={touchActive:!0,startPageX:t.pageX,startPageY:t.pageY,startTimeStamp:v(t),currentPageX:t.pageX,currentPageY:t.pageY,currentTimeStamp:v(t),previousPageX:t.pageX,previousPageY:t.pageY,previousTimeStamp:v(t)},r.mostRecentTimeStamp=v(t))}),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches&&(n.indexOfSingleActiveTouch=t.touches[0].identifier);else if(f(e)&&(t.changedTouches.forEach(e=>{var t;(t=n.touchBank[g(e)])?(t.touchActive=!1,t.previousPageX=t.currentPageX,t.previousPageY=t.currentPageY,t.previousTimeStamp=t.currentTimeStamp,t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=v(e),n.mostRecentTimeStamp=v(e)):console.warn("Cannot record touch end without a touch start.\n","Touch End: "+b(e)+"\n","Touch Bank: "+y(n))}),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches))for(var r=n.touchBank,o=0;o1)&&(O=!1),("mousedown"!==u||!O)&&("mousemove"!==u||!O)&&("mousemove"!==u||!(M<1))){if(O&&"mouseup"===u){0===M&&(O=!1);return}var g=c(u)&&(t=e.altKey,n=e.button,r=e.buttons,o=e.ctrlKey,i=e.type,l=!1===t&&!1===o,"touchstart"===i||"touchmove"===i||"mousedown"===i&&(0===n||1===r)&&!!l||"mousemove"===i&&1===r&&!!l),b=d(u),y=f(u),S="scroll"===u,w="select"===u||"selectionchange"===u,x=s(e,P);(g||b||y)&&(e.touches?M=e.touches.length:g?M=1:y&&(M=0),P.recordTouchTrack(u,x.nativeEvent));var R=function(e){for(var t=[],n=[],r="selectionchange"===e.type?m(window.getSelection().anchorNode):null!=e.composedPath?e.composedPath():m(e.target),o=0;o0){var T=A.idPath,L=R.idPath;if(null!=T&&null!=L){var D=function(e,t){var n=e.length,r=t.length;if(0===n||0===r||e[n-1]!==t[r-1])return null;var o=e[0],i=0,l=t[0],a=0;n-r>0&&(o=e[i=n-r],n=r),r-n>0&&(l=t[a=r-n],r=n);for(var u=n;u--;){if(o===l)return o;o=e[i++],l=t[a++]}return null}(T,L);if(null!=D){var B=L.indexOf(D)+(D===A.id?1:0);R={idPath:L.slice(B),nodePath:R.nodePath.slice(B)}}else R=null}null!=R&&null!=(a=function(e,t,n){var r=k[t.type];if(null!=r){for(var o=e.idPath,i=e.nodePath,l=r[0],a=r[1],u=r[2].bubbles,s=function(e,t,r){var i=I(e)[r];if(null!=i&&(n.currentTarget=t,!0===i(n))){var l=o.slice(o.indexOf(e));return{id:e,node:t,idPath:l}}},c=o.length-1;c>=0;c--){var d=s(o[c],i[c],l);if(null!=d)return d;if(!0===n.isPropagationStopped())return}if(u)for(var f=0;f=1&&"\n"!==n&&i}return"select"===e.type}(e),U=y&&!K&&!function(e,t){if(!t||0===t.length)return!1;for(var n=0;nz++,null==(o=r.useRef(null)).current&&(o.current=n()),o.current),l=r.useRef(!1);r.useEffect(()=>(w.Z&&null==window.__reactResponderSystemActive&&(window.addEventListener("blur",L),B.forEach(e=>{document.addEventListener(e,L)}),D.forEach(e=>{document.addEventListener(e,L,!0)}),window.__reactResponderSystemActive=!0),()=>{W(i)}),[i]),r.useEffect(()=>{var n,r=t,o=r.onMoveShouldSetResponder,a=r.onMoveShouldSetResponderCapture,u=r.onScrollShouldSetResponder,s=r.onScrollShouldSetResponderCapture,c=r.onSelectionChangeShouldSetResponder,d=r.onSelectionChangeShouldSetResponderCapture,f=r.onStartShouldSetResponder,p=r.onStartShouldSetResponderCapture,m=e.current;null!=o||null!=a||null!=u||null!=s||null!=c||null!=d||null!=f||null!=p?(n=t,null!=m&&(m[h]=i),T.set(i,n),l.current=!0):l.current&&(W(i),l.current=!1)},[t,e,i]),r.useDebugValue({isResponder:e.current===A.node}),r.useDebugValue(t)}},131:function(e,t,n){"use strict";function r(e,t){}n.d(t,{O:function(){return r}})},7340:function(e){"use strict";let t;function n(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function r(e,t,r){let o=r<.5?r*(1+t):r+t-r*t,i=2*r-o;return Math.round(255*n(i,o,e+1/3))<<24|Math.round(255*n(i,o,e))<<16|Math.round(255*n(i,o,e-1/3))<<8}let o="[-+]?\\d*\\.?\\d+",i=o+"%";function l(...e){return"\\(\\s*("+e.join(")\\s*,?\\s*(")+")\\s*\\)"}function a(...e){return"\\(\\s*("+e.slice(0,e.length-1).join(")\\s*,?\\s*(")+")\\s*/\\s*("+e[e.length-1]+")\\s*\\)"}function u(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}function s(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function c(e){return(parseFloat(e)%360+360)%360/360}function d(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function f(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}e.exports=function(e){let p;if("number"==typeof e)return e>>>0===e&&e>=0&&e<=4294967295?e:null;if("string"!=typeof e)return null;let h=(void 0===t&&(t={rgb:RegExp("rgb"+l(o,o,o)),rgba:RegExp("rgba("+u(o,o,o,o)+"|"+a(o,o,o,o)+")"),hsl:RegExp("hsl"+l(o,i,i)),hsla:RegExp("hsla("+u(o,i,i,o)+"|"+a(o,i,i,o)+")"),hwb:RegExp("hwb"+l(o,i,i)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),t);if(p=h.hex6.exec(e))return parseInt(p[1]+"ff",16)>>>0;let m=function(e){switch(e){case"transparent":return 0;case"aliceblue":return 4042850303;case"antiquewhite":return 4209760255;case"aqua":case"cyan":return 16777215;case"aquamarine":return 2147472639;case"azure":return 4043309055;case"beige":return 4126530815;case"bisque":return 4293182719;case"black":return 255;case"blanchedalmond":return 4293643775;case"blue":return 65535;case"blueviolet":return 2318131967;case"brown":return 2771004159;case"burlywood":return 3736635391;case"burntsienna":return 3934150143;case"cadetblue":return 1604231423;case"chartreuse":return 2147418367;case"chocolate":return 3530104575;case"coral":return 4286533887;case"cornflowerblue":return 1687547391;case"cornsilk":return 4294499583;case"crimson":return 3692313855;case"darkblue":return 35839;case"darkcyan":return 9145343;case"darkgoldenrod":return 3095792639;case"darkgray":case"darkgrey":return 2846468607;case"darkgreen":return 6553855;case"darkkhaki":return 3182914559;case"darkmagenta":return 2332068863;case"darkolivegreen":return 1433087999;case"darkorange":return 4287365375;case"darkorchid":return 2570243327;case"darkred":return 2332033279;case"darksalmon":return 3918953215;case"darkseagreen":return 2411499519;case"darkslateblue":return 1211993087;case"darkslategray":case"darkslategrey":return 793726975;case"darkturquoise":return 13554175;case"darkviolet":return 2483082239;case"deeppink":return 4279538687;case"deepskyblue":return 12582911;case"dimgray":case"dimgrey":return 1768516095;case"dodgerblue":return 512819199;case"firebrick":return 2988581631;case"floralwhite":return 4294635775;case"forestgreen":return 579543807;case"fuchsia":case"magenta":return 4278255615;case"gainsboro":return 3705462015;case"ghostwhite":return 4177068031;case"gold":return 4292280575;case"goldenrod":return 3668254975;case"gray":case"grey":return 2155905279;case"green":return 8388863;case"greenyellow":return 2919182335;case"honeydew":return 4043305215;case"hotpink":return 4285117695;case"indianred":return 3445382399;case"indigo":return 1258324735;case"ivory":return 4294963455;case"khaki":return 4041641215;case"lavender":return 3873897215;case"lavenderblush":return 4293981695;case"lawngreen":return 2096890111;case"lemonchiffon":return 4294626815;case"lightblue":return 2916673279;case"lightcoral":return 4034953471;case"lightcyan":return 3774873599;case"lightgoldenrodyellow":return 4210742015;case"lightgray":case"lightgrey":return 3553874943;case"lightgreen":return 2431553791;case"lightpink":return 4290167295;case"lightsalmon":return 4288707327;case"lightseagreen":return 548580095;case"lightskyblue":return 2278488831;case"lightslategray":case"lightslategrey":return 2005441023;case"lightsteelblue":return 2965692159;case"lightyellow":return 4294959359;case"lime":return 16711935;case"limegreen":return 852308735;case"linen":return 4210091775;case"maroon":return 2147483903;case"mediumaquamarine":return 1724754687;case"mediumblue":return 52735;case"mediumorchid":return 3126187007;case"mediumpurple":return 2473647103;case"mediumseagreen":return 1018393087;case"mediumslateblue":return 2070474495;case"mediumspringgreen":return 16423679;case"mediumturquoise":return 1221709055;case"mediumvioletred":return 3340076543;case"midnightblue":return 421097727;case"mintcream":return 4127193855;case"mistyrose":return 4293190143;case"moccasin":return 4293178879;case"navajowhite":return 4292783615;case"navy":return 33023;case"oldlace":return 4260751103;case"olive":return 2155872511;case"olivedrab":return 1804477439;case"orange":return 4289003775;case"orangered":return 4282712319;case"orchid":return 3664828159;case"palegoldenrod":return 4008225535;case"palegreen":return 2566625535;case"paleturquoise":return 2951671551;case"palevioletred":return 3681588223;case"papayawhip":return 4293907967;case"peachpuff":return 4292524543;case"peru":return 3448061951;case"pink":return 4290825215;case"plum":return 3718307327;case"powderblue":return 2967529215;case"purple":return 2147516671;case"rebeccapurple":return 1714657791;case"red":return 4278190335;case"rosybrown":return 3163525119;case"royalblue":return 1097458175;case"saddlebrown":return 2336560127;case"salmon":return 4202722047;case"sandybrown":return 4104413439;case"seagreen":return 780883967;case"seashell":return 4294307583;case"sienna":return 2689740287;case"silver":return 3233857791;case"skyblue":return 2278484991;case"slateblue":return 1784335871;case"slategray":case"slategrey":return 1887473919;case"snow":return 4294638335;case"springgreen":return 16744447;case"steelblue":return 1182971135;case"tan":return 3535047935;case"teal":return 8421631;case"thistle":return 3636451583;case"tomato":return 4284696575;case"turquoise":return 1088475391;case"violet":return 4001558271;case"wheat":return 4125012991;case"white":return 4294967295;case"whitesmoke":return 4126537215;case"yellow":return 4294902015;case"yellowgreen":return 2597139199}return null}(e);return null!=m?m:(p=h.rgb.exec(e))?(s(p[1])<<24|s(p[2])<<16|s(p[3])<<8|255)>>>0:(p=h.rgba.exec(e))?void 0!==p[6]?(s(p[6])<<24|s(p[7])<<16|s(p[8])<<8|d(p[9]))>>>0:(s(p[2])<<24|s(p[3])<<16|s(p[4])<<8|d(p[5]))>>>0:(p=h.hex3.exec(e))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+"ff",16)>>>0:(p=h.hex8.exec(e))?parseInt(p[1],16)>>>0:(p=h.hex4.exec(e))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+p[4]+p[4],16)>>>0:(p=h.hsl.exec(e))?(255|r(c(p[1]),f(p[2]),f(p[3])))>>>0:(p=h.hsla.exec(e))?void 0!==p[6]?(r(c(p[6]),f(p[7]),f(p[8]))|d(p[9]))>>>0:(r(c(p[2]),f(p[3]),f(p[4]))|d(p[5]))>>>0:(p=h.hwb.exec(e))?(255|function(e,t,r){if(t+r>=1){let e=Math.round(255*t/(t+r));return e<<24|e<<16|e<<8}return Math.round(255*(n(0,1,e+1/3)*(1-t-r)+t))<<24|Math.round(255*(n(0,1,e)*(1-t-r)+t))<<16|Math.round(255*(n(0,1,e-1/3)*(1-t-r)+t))<<8}(c(p[1]),f(p[2]),f(p[3])))>>>0:null}},8650:function(e,t){"use strict";t.D=void 0;var n=new WeakMap;function r(e){var t,r,o;return null!=e&&(t=!0===e.disableCache,r=!0===e.disableMix,o=e.transform),function(){for(var e=[],i="",l=null,a=t?null:n,u=Array(arguments.length),s=0;s0;){var c=u.pop();if(null!=c&&!1!==c){if(Array.isArray(c)){for(var d=0;d=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},151:function(e,t,n){"use strict";n.d(t,{RR:function(){return u},US:function(){return l},cv:function(){return c},dp:function(){return f},oo:function(){return i},uY:function(){return d},x7:function(){return a}});var r=n(7848);function o(e,t,n){let o,{reference:i,floating:l}=e,a=(0,r.Qq)(t),u=(0,r.Wh)(t),s=(0,r.I4)(u),c=(0,r.k3)(t),d="y"===a,f=i.x+i.width/2-l.width/2,p=i.y+i.height/2-l.height/2,h=i[s]/2-l[s]/2;switch(c){case"top":o={x:f,y:i.y-l.height};break;case"bottom":o={x:f,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:p};break;case"left":o={x:i.x-l.width,y:p};break;default:o={x:i.x,y:i.y}}switch((0,r.hp)(t)){case"start":o[u]-=h*(n&&d?-1:1);break;case"end":o[u]+=h*(n&&d?-1:1)}return o}let i=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:a}=n,u=l.filter(Boolean),s=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=o(c,r,s),p=r,h={},m=0;for(let n=0;n({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:i,rects:l,platform:a,elements:u,middlewareData:s}=t,{element:c,padding:d=0}=(0,r.ku)(e,t)||{};if(null==c)return{};let f=(0,r.yd)(d),p={x:n,y:o},h=(0,r.Wh)(i),m=(0,r.I4)(h),v=await a.getDimensions(c),g="y"===h,b=g?"clientHeight":"clientWidth",y=l.reference[m]+l.reference[h]-p[h]-l.floating[m],S=p[h]-l.reference[h],w=await (null==a.getOffsetParent?void 0:a.getOffsetParent(c)),x=w?w[b]:0;x&&await (null==a.isElement?void 0:a.isElement(w))||(x=u.floating[b]||l.floating[m]);let R=x/2-v[m]/2-1,E=(0,r.VV)(f[g?"top":"left"],R),k=(0,r.VV)(f[g?"bottom":"right"],R),C=x-v[m]-k,T=x/2-v[m]/2+(y/2-S/2),O=(0,r.uZ)(E,T,C),M=!s.arrow&&null!=(0,r.hp)(i)&&T!==O&&l.reference[m]/2-(Te<=0)){let e=((null==(i=c.flip)?void 0:i.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:M},reset:{placement:t}};let n=null==(a=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(b){case"bestFit":{let e=null==(u=M.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:u[0];e&&(n=e);break}case"initialPlacement":n=f}if(s!==n)return{reset:{placement:n}}}return{}}}};async function s(e,t){let{placement:n,platform:o,elements:i}=e,l=await (null==o.isRTL?void 0:o.isRTL(i.floating)),a=(0,r.k3)(n),u=(0,r.hp)(n),s="y"===(0,r.Qq)(n),c=["left","top"].includes(a)?-1:1,d=l&&s?-1:1,f=(0,r.ku)(t,e),{mainAxis:p,crossAxis:h,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return u&&"number"==typeof m&&(h="end"===u?-1*m:m),s?{x:h*d,y:p*c}:{x:p*c,y:h*d}}let c=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await s(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}},d=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:o,placement:i}=t,{mainAxis:a=!0,crossAxis:u=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,r.ku)(e,t),d={x:n,y:o},f=await l(t,c),p=(0,r.Qq)((0,r.k3)(i)),h=(0,r.Rn)(p),m=d[h],v=d[p];if(a){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=m+f[e],o=m-f[t];m=(0,r.uZ)(n,m,o)}if(u){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=v+f[e],o=v-f[t];v=(0,r.uZ)(n,v,o)}let g=s.fn({...t,[h]:m,[p]:v});return{...g,data:{x:g.x-n,y:g.y-o}}}}},f=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,o;let{placement:i,rects:a,platform:u,elements:s}=t,{apply:c=()=>{},...d}=(0,r.ku)(e,t),f=await l(t,d),p=(0,r.k3)(i),h=(0,r.hp)(i),m="y"===(0,r.Qq)(i),{width:v,height:g}=a.floating;"top"===p||"bottom"===p?(n=p,o=h===(await (null==u.isRTL?void 0:u.isRTL(s.floating))?"start":"end")?"left":"right"):(o=p,n="end"===h?"top":"bottom");let b=g-f[n],y=v-f[o],S=!t.middlewareData.shift,w=b,x=y;if(m){let e=v-f.left-f.right;x=h||S?(0,r.VV)(y,e):e}else{let e=g-f.top-f.bottom;w=h||S?(0,r.VV)(b,e):e}if(S&&!h){let e=(0,r.Fp)(f.left,0),t=(0,r.Fp)(f.right,0),n=(0,r.Fp)(f.top,0),o=(0,r.Fp)(f.bottom,0);m?x=v-2*(0!==e||0!==t?e+t:(0,r.Fp)(f.left,f.right)):w=g-2*(0!==n||0!==o?n+o:(0,r.Fp)(f.top,f.bottom))}await c({...t,availableWidth:x,availableHeight:w});let R=await u.getDimensions(s.floating);return v!==R.width||g!==R.height?{reset:{rects:!0}}:{}}}}},4016:function(e,t,n){"use strict";n.d(t,{Me:function(){return S},RR:function(){return x},dp:function(){return R},oo:function(){return k},uY:function(){return w},x7:function(){return E}});var r=n(7848),o=n(151),i=n(5224);function l(e){let t=(0,i.Dx)(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,l=(0,i.Re)(e),a=l?e.offsetWidth:n,u=l?e.offsetHeight:o,s=(0,r.NM)(n)!==a||(0,r.NM)(o)!==u;return s&&(n=a,o=u),{width:n,height:o,$:s}}function a(e){return(0,i.kK)(e)?e:e.contextElement}function u(e){let t=a(e);if(!(0,i.Re)(t))return(0,r.ze)(1);let n=t.getBoundingClientRect(),{width:o,height:u,$:s}=l(t),c=(s?(0,r.NM)(n.width):n.width)/o,d=(s?(0,r.NM)(n.height):n.height)/u;return c&&Number.isFinite(c)||(c=1),d&&Number.isFinite(d)||(d=1),{x:c,y:d}}let s=(0,r.ze)(0);function c(e){let t=(0,i.Jj)(e);return(0,i.Pf)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:s}function d(e,t,n,o){var l;void 0===t&&(t=!1),void 0===n&&(n=!1);let s=e.getBoundingClientRect(),d=a(e),f=(0,r.ze)(1);t&&(o?(0,i.kK)(o)&&(f=u(o)):f=u(e));let p=(void 0===(l=n)&&(l=!1),o&&(!l||o===(0,i.Jj)(d))&&l)?c(d):(0,r.ze)(0),h=(s.left+p.x)/f.x,m=(s.top+p.y)/f.y,v=s.width/f.x,g=s.height/f.y;if(d){let e=(0,i.Jj)(d),t=o&&(0,i.kK)(o)?(0,i.Jj)(o):o,n=e,r=n.frameElement;for(;r&&o&&t!==n;){let e=u(r),t=r.getBoundingClientRect(),o=(0,i.Dx)(r),l=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;h*=e.x,m*=e.y,v*=e.x,g*=e.y,h+=l,m+=a,r=(n=(0,i.Jj)(r)).frameElement}}return(0,r.JB)({width:v,height:g,x:h,y:m})}let f=[":popover-open",":modal"];function p(e){return f.some(t=>{try{return e.matches(t)}catch(e){return!1}})}function h(e){return d((0,i.tF)(e)).left+(0,i.Lw)(e).scrollLeft}function m(e,t,n){let o;if("viewport"===t)o=function(e,t){let n=(0,i.Jj)(e),r=(0,i.tF)(e),o=n.visualViewport,l=r.clientWidth,a=r.clientHeight,u=0,s=0;if(o){l=o.width,a=o.height;let e=(0,i.Pf)();(!e||e&&"fixed"===t)&&(u=o.offsetLeft,s=o.offsetTop)}return{width:l,height:a,x:u,y:s}}(e,n);else if("document"===t)o=function(e){let t=(0,i.tF)(e),n=(0,i.Lw)(e),o=e.ownerDocument.body,l=(0,r.Fp)(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=(0,r.Fp)(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),u=-n.scrollLeft+h(e),s=-n.scrollTop;return"rtl"===(0,i.Dx)(o).direction&&(u+=(0,r.Fp)(t.clientWidth,o.clientWidth)-l),{width:l,height:a,x:u,y:s}}((0,i.tF)(e));else if((0,i.kK)(t))o=function(e,t){let n=d(e,!0,"fixed"===t),o=n.top+e.clientTop,l=n.left+e.clientLeft,a=(0,i.Re)(e)?u(e):(0,r.ze)(1),s=e.clientWidth*a.x;return{width:s,height:e.clientHeight*a.y,x:l*a.x,y:o*a.y}}(t,n);else{let n=c(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return(0,r.JB)(o)}function v(e,t){return(0,i.Re)(e)&&"fixed"!==(0,i.Dx)(e).position?t?t(e):e.offsetParent:null}function g(e,t){let n=(0,i.Jj)(e);if(!(0,i.Re)(e)||p(e))return n;let r=v(e,t);for(;r&&(0,i.Ze)(r)&&"static"===(0,i.Dx)(r).position;)r=v(r,t);return r&&("html"===(0,i.wk)(r)||"body"===(0,i.wk)(r)&&"static"===(0,i.Dx)(r).position&&!(0,i.hT)(r))?n:r||(0,i.gQ)(e)||n}let b=async function(e){let t=this.getOffsetParent||g,n=this.getDimensions;return{reference:function(e,t,n){let o=(0,i.Re)(t),l=(0,i.tF)(t),a="fixed"===n,u=d(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=(0,r.ze)(0);if(o||!o&&!a){if(("body"!==(0,i.wk)(t)||(0,i.ao)(l))&&(s=(0,i.Lw)(t)),o){let e=d(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else l&&(c.x=h(l))}return{x:u.left+s.scrollLeft-c.x,y:u.top+s.scrollTop-c.y,width:u.width,height:u.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},y={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:l}=e,a="fixed"===l,s=(0,i.tF)(o),c=!!t&&p(t.floating);if(o===s||c&&a)return n;let f={scrollLeft:0,scrollTop:0},h=(0,r.ze)(1),m=(0,r.ze)(0),v=(0,i.Re)(o);if((v||!v&&!a)&&(("body"!==(0,i.wk)(o)||(0,i.ao)(s))&&(f=(0,i.Lw)(o)),(0,i.Re)(o))){let e=d(o);h=u(o),m.x=e.x+o.clientLeft,m.y=e.y+o.clientTop}return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+m.x,y:n.y*h.y-f.scrollTop*h.y+m.y}},getDocumentElement:i.tF,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:l}=e,a=[..."clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let r=(0,i.Kx)(e,[],!1).filter(e=>(0,i.kK)(e)&&"body"!==(0,i.wk)(e)),o=null,l="fixed"===(0,i.Dx)(e).position,a=l?(0,i.Ow)(e):e;for(;(0,i.kK)(a)&&!(0,i.Py)(a);){let t=(0,i.Dx)(a),n=(0,i.hT)(a);n||"fixed"!==t.position||(o=null),(l?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||(0,i.ao)(a)&&!n&&function e(t,n){let r=(0,i.Ow)(t);return!(r===n||!(0,i.kK)(r)||(0,i.Py)(r))&&("fixed"===(0,i.Dx)(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):o=t,a=(0,i.Ow)(a)}return t.set(e,r),r}(t,this._c):[].concat(n),o],u=a[0],s=a.reduce((e,n)=>{let o=m(t,n,l);return e.top=(0,r.Fp)(o.top,e.top),e.right=(0,r.VV)(o.right,e.right),e.bottom=(0,r.VV)(o.bottom,e.bottom),e.left=(0,r.Fp)(o.left,e.left),e},m(t,u,l));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:g,getElementRects:b,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=l(e);return{width:t,height:n}},getScale:u,isElement:i.kK,isRTL:function(e){return"rtl"===(0,i.Dx)(e).direction}};function S(e,t,n,o){let l;void 0===o&&(o={});let{ancestorScroll:u=!0,ancestorResize:s=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:p=!1}=o,h=a(e),m=u||s?[...h?(0,i.Kx)(h):[],...(0,i.Kx)(t)]:[];m.forEach(e=>{u&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let v=h&&f?function(e,t){let n,o=null,l=(0,i.tF)(e);function a(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return!function i(u,s){void 0===u&&(u=!1),void 0===s&&(s=1),a();let{left:c,top:d,width:f,height:p}=e.getBoundingClientRect();if(u||t(),!f||!p)return;let h=(0,r.GW)(d),m=(0,r.GW)(l.clientWidth-(c+f)),v={rootMargin:-h+"px "+-m+"px "+-(0,r.GW)(l.clientHeight-(d+p))+"px "+-(0,r.GW)(c)+"px",threshold:(0,r.Fp)(0,(0,r.VV)(1,s))||1},g=!0;function b(e){let t=e[0].intersectionRatio;if(t!==s){if(!g)return i();t?i(!1,t):n=setTimeout(()=>{i(!1,1e-7)},100)}g=!1}try{o=new IntersectionObserver(b,{...v,root:l.ownerDocument})}catch(e){o=new IntersectionObserver(b,v)}o.observe(e)}(!0),a}(h,n):null,g=-1,b=null;c&&(b=new ResizeObserver(e=>{let[r]=e;r&&r.target===h&&b&&(b.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=b)||e.observe(t)})),n()}),h&&!p&&b.observe(h),b.observe(t));let y=p?d(e):null;return p&&function t(){let r=d(e);y&&(r.x!==y.x||r.y!==y.y||r.width!==y.width||r.height!==y.height)&&n(),y=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{u&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==v||v(),null==(e=b)||e.disconnect(),b=null,p&&cancelAnimationFrame(l)}}let w=o.uY,x=o.RR,R=o.dp,E=o.x7,k=(e,t,n)=>{let r=new Map,i={platform:y,...n},l={...i.platform,_c:r};return(0,o.oo)(e,t,{...i,platform:l})}},4674:function(e,t,n){"use strict";n.d(t,{Me:function(){return r.Me},RR:function(){return r.RR},YF:function(){return p},cv:function(){return o.cv},uY:function(){return r.uY},x7:function(){return a}});var r=n(4016),o=n(151),i=n(2265),l=n(4887);let a=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:o}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.x7)({element:n.current,padding:o}).fn(t):{}:n?(0,r.x7)({element:n,padding:o}).fn(t):{}}});var u="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function s(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!s(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!s(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function c(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function d(e,t){let n=c(e);return Math.round(t*n)/n}function f(e){let t=i.useRef(e);return u(()=>{t.current=e}),t}function p(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:a,elements:{reference:p,floating:h}={},transform:m=!0,whileElementsMounted:v,open:g}=e,[b,y]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[S,w]=i.useState(o);s(S,o)||w(o);let[x,R]=i.useState(null),[E,k]=i.useState(null),C=i.useCallback(e=>{e!==A.current&&(A.current=e,R(e))},[]),T=i.useCallback(e=>{e!==P.current&&(P.current=e,k(e))},[]),O=p||x,M=h||E,A=i.useRef(null),P=i.useRef(null),I=i.useRef(b),L=null!=v,D=f(v),B=f(a),W=i.useCallback(()=>{if(!A.current||!P.current)return;let e={placement:t,strategy:n,middleware:S};B.current&&(e.platform=B.current),(0,r.oo)(A.current,P.current,e).then(e=>{let t={...e,isPositioned:!0};N.current&&!s(I.current,t)&&(I.current=t,l.flushSync(()=>{y(t)}))})},[S,t,n,B]);u(()=>{!1===g&&I.current.isPositioned&&(I.current.isPositioned=!1,y(e=>({...e,isPositioned:!1})))},[g]);let N=i.useRef(!1);u(()=>(N.current=!0,()=>{N.current=!1}),[]),u(()=>{if(O&&(A.current=O),M&&(P.current=M),O&&M){if(D.current)return D.current(O,M,W);W()}},[O,M,W,D,L]);let z=i.useMemo(()=>({reference:A,floating:P,setReference:C,setFloating:T}),[C,T]),j=i.useMemo(()=>({reference:O,floating:M}),[O,M]),H=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=d(j.floating,b.x),r=d(j.floating,b.y);return m?{...e,transform:"translate("+t+"px, "+r+"px)",...c(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,m,j.floating,b.x,b.y]);return i.useMemo(()=>({...b,update:W,refs:z,elements:j,floatingStyles:H}),[b,W,z,j,H])}},4243:function(e,t,n){"use strict";let r;n.d(t,{wD:function(){return e1},y0:function(){return e5},ll:function(){return eX},aN:function(){return tv},xp:function(){return ty},eS:function(){return e4},Qu:function(){return eM},tj:function(){return eO},bQ:function(){return e6},YF:function(){return te},KK:function(){return tt},XI:function(){return ek},Rz:function(){return tg},NI:function(){return ti},c0:function(){return td},qs:function(){return tp},ox:function(){return th}});var o=n(2265),i=n.t(o,2),l=n(5224);function a(e){let t=e.activeElement;for(;(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function u(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,l.Zq)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function s(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function c(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function d(e){return 0===e.mozInputSource&&!!e.isTrusted||(h()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function f(e){return!c().includes("jsdom/")&&(!h()&&0===e.width&&0===e.height||h()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function p(){return/apple/i.test(navigator.vendor)}function h(){let e=/android/i;return e.test(s())||e.test(c())}function m(){return s().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function v(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function g(e){return(null==e?void 0:e.ownerDocument)||document}function b(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function y(e){return"composedPath"in e?e.composedPath()[0]:e.target}function S(e){return(0,l.Re)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function w(e){e.preventDefault(),e.stopPropagation()}function x(e){return!!e&&"combobox"===e.getAttribute("role")&&S(e)}var R=n(7848),E=n(4674),k=n(151),C='input:not([inert]),select:not([inert]),textarea:not([inert]),a[href]:not([inert]),button:not([inert]),[tabindex]:not(slot):not([inert]),audio[controls]:not([inert]),video[controls]:not([inert]),[contenteditable]:not([contenteditable="false"]):not([inert]),details>summary:first-of-type:not([inert]),details:not([inert])',T="undefined"==typeof Element,O=T?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,M=!T&&Element.prototype.getRootNode?function(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},A=function e(t,n){void 0===n&&(n=!0);var r,o=null==t?void 0:null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},P=function(e){var t,n=null==e?void 0:null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n},I=function(e,t,n){if(A(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(C));return t&&O.call(e,C)&&r.unshift(e),r=r.filter(n)},L=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var l=i.shift();if(!A(l,!1)){if("SLOT"===l.tagName){var a=l.assignedElements(),u=e(a.length?a:l.children,!0,r);r.flatten?o.push.apply(o,u):o.push({scopeParent:l,candidates:u})}else{O.call(l,C)&&r.filter(l)&&(n||!t.includes(l))&&o.push(l);var s=l.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(l),c=!A(s,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(s&&c){var d=e(!0===s?l.children:s.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:l,candidates:d})}else i.unshift.apply(i,l.children)}}}return o},D=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},B=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||P(e))&&!D(e)?0:e.tabIndex},W=function(e,t){var n=B(e);return n<0&&t&&!D(e)?0:n},N=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},z=function(e){return"INPUT"===e.tagName},j=function(e,t){for(var n=0;nsummary:first-of-type")?e.parentElement:e;if(O.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return _(e)}else{if("function"==typeof r){for(var i=e;e;){var l=e.parentElement,a=M(e);if(l&&!l.shadowRoot&&!0===r(l))return _(e);e=e.assignedSlot?e.assignedSlot:l||a===e.ownerDocument?l:a.host}e=i}if(F(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},V=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;nB(t))&&(r=e,!((o=t).disabled||A(o)||z(o)&&"hidden"===o.type||Z(o,r)||"DETAILS"===o.tagName&&Array.prototype.slice.apply(o.children).some(function(e){return"SUMMARY"===e.tagName})||V(o)))},K=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||t>=0},U=function e(t){var n=[],r=[];return t.forEach(function(t,o){var i=!!t.scopeParent,l=i?t.scopeParent:t,a=W(l,i),u=i?e(t.candidates):l;0===a?i?n.push.apply(n,u):n.push(l):r.push({documentOrder:o,tabIndex:a,item:t,isScope:i,content:u})}),r.sort(N).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},Y=function(e,t){return U((t=t||{}).getShadowRoot?L([e],t.includeContainer,{filter:$.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:K}):I(e,t.includeContainer,$.bind(null,t)))},X=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==O.call(e,C)&&$(t,e)},q=n(4887);let G={...i},J=G.useInsertionEffect||(e=>e());function Q(e){let t=o.useRef(()=>{});return J(()=>{t.current=e}),o.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r=e.current.length}function el(e,t){return eu(e,{disabledIndices:t})}function ea(e,t){return eu(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function eu(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=void 0===t?{}:t,l=e.current,a=o?e=>o.includes(e):e=>{let t=l[e];return null==t||t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")},u=n;do u+=r?-i:i;while(u>=0&&u<=l.length-1&&a(u));return u}let es=0;function ec(e,t){void 0===t&&(t={});let{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(es);let i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():es=requestAnimationFrame(i)}var ed="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function ef(){return(ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t"floating-ui-"+Math.random().toString(36).slice(2,6)+eh++,ev=G.useId||function(){let[e,t]=o.useState(()=>ep?em():void 0);return ed(()=>{null==e&&t(em())},[]),o.useEffect(()=>{ep=!0},[]),e},eg=o.createContext(null),eb=o.createContext(null),ey=()=>{var e;return(null==(e=o.useContext(eg))?void 0:e.id)||null},eS=()=>o.useContext(eb);function ew(e){return"data-floating-ui-"+e}function ex(e){let t=(0,o.useRef)(e);return ed(()=>{t.current=e}),t}let eR=ew("safe-polygon");function eE(e,t,n){return n&&!v(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function ek(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,dataRef:i,events:a,elements:{domReference:s,floating:c},refs:d}=e,{enabled:f=!0,delay:p=0,handleClose:h=null,mouseOnly:m=!1,restMs:b=0,move:y=!0}=t,S=eS(),w=ey(),x=ex(h),R=ex(p),E=o.useRef(),k=o.useRef(),C=o.useRef(),T=o.useRef(),O=o.useRef(!0),M=o.useRef(!1),A=o.useRef(()=>{}),P=o.useCallback(()=>{var e;let t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[i]);o.useEffect(()=>{if(f)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(k.current),clearTimeout(T.current),O.current=!0)}},[f,a]),o.useEffect(()=>{if(!f||!x.current||!n)return;function e(e){P()&&r(!1,e,"hover")}let t=g(c).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[c,n,r,f,x,P]);let I=o.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");let o=eE(R.current,"close",E.current);o&&!C.current?(clearTimeout(k.current),k.current=setTimeout(()=>r(!1,e,n),o)):t&&(clearTimeout(k.current),r(!1,e,n))},[R,r]),L=o.useCallback(()=>{A.current(),C.current=void 0},[]),D=o.useCallback(()=>{if(M.current){let e=g(d.floating.current).body;e.style.pointerEvents="",e.removeAttribute(eR),M.current=!1}},[d]);return o.useEffect(()=>{if(f&&(0,l.kK)(s))return n&&s.addEventListener("mouseleave",d),null==c||c.addEventListener("mouseleave",d),y&&s.addEventListener("mousemove",o,{once:!0}),s.addEventListener("mouseenter",o),s.addEventListener("mouseleave",a),()=>{n&&s.removeEventListener("mouseleave",d),null==c||c.removeEventListener("mouseleave",d),y&&s.removeEventListener("mousemove",o),s.removeEventListener("mouseenter",o),s.removeEventListener("mouseleave",a)};function t(){return!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type)}function o(e){if(clearTimeout(k.current),O.current=!1,m&&!v(E.current)||b>0&&0===eE(R.current,"open"))return;let t=eE(R.current,"open",E.current);t?k.current=setTimeout(()=>{r(!0,e,"hover")},t):r(!0,e,"hover")}function a(r){if(t())return;A.current();let o=g(c);if(clearTimeout(T.current),x.current){n||clearTimeout(k.current),C.current=x.current({...e,tree:S,x:r.clientX,y:r.clientY,onClose(){D(),L(),I(r,!0,"safe-polygon")}});let t=C.current;o.addEventListener("mousemove",t),A.current=()=>{o.removeEventListener("mousemove",t)};return}"touch"===E.current&&u(c,r.relatedTarget)||I(r)}function d(n){t()||null==x.current||x.current({...e,tree:S,x:n.clientX,y:n.clientY,onClose(){D(),L(),I(n)}})(n)}},[s,c,f,e,m,b,y,I,L,D,r,n,S,R,x,i]),ed(()=>{var e,t;if(f&&n&&null!=(e=x.current)&&e.__options.blockPointerEvents&&P()){let e=g(c).body;if(e.setAttribute(eR,""),e.style.pointerEvents="none",M.current=!0,(0,l.kK)(s)&&c){let e=null==S||null==(t=S.nodesRef.current.find(e=>e.id===w))||null==(t=t.context)?void 0:t.elements.floating;return e&&(e.style.pointerEvents=""),s.style.pointerEvents="auto",c.style.pointerEvents="auto",()=>{s.style.pointerEvents="",c.style.pointerEvents=""}}}},[f,n,w,c,s,S,x,P]),ed(()=>{n||(E.current=void 0,L(),D())},[n,L,D]),o.useEffect(()=>()=>{L(),clearTimeout(k.current),clearTimeout(T.current),D()},[f,s,L,D]),o.useMemo(()=>{if(!f)return{};function e(e){E.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(e){function t(){O.current||r(!0,e.nativeEvent,"hover")}(!m||v(E.current))&&!n&&0!==b&&(clearTimeout(T.current),"touch"===E.current?t():T.current=setTimeout(t,b))}},floating:{onMouseEnter(){clearTimeout(k.current)},onMouseLeave(e){I(e.nativeEvent,!1)}}}},[f,m,n,b,r,I])}let eC=()=>{},eT=o.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:eC,setState:eC,isInstantPhase:!1}),eO=()=>o.useContext(eT);function eM(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,floatingId:o}=e,{id:i}=t,l=null!=i?i:o,a=eO(),{currentId:u,setCurrentId:s,initialDelay:c,setState:d,timeoutMs:f}=a;return ed(()=>{u&&(d({delay:{open:1,close:eE(c,"close")}}),u!==l&&r(!1))},[l,r,d,u,c]),ed(()=>{function e(){r(!1),d({delay:c,currentId:null})}if(u&&!n&&u===l){if(f){let t=window.setTimeout(e,f);return()=>{clearTimeout(t)}}e()}},[n,d,u,l,r,c,f]),ed(()=>{s!==eC&&n&&s(l)},[n,s,l]),a}function eA(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(r);return n}let eP=new WeakMap,eI=new WeakSet,eL={},eD=0,eB=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,eW=e=>e&&(e.host||eW(e.parentNode)),eN=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=eW(t);return e.contains(n)?n:null}).filter(e=>null!=e);function ez(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);let r=g(e[0]).body;return function(e,t,n,r){let o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,l=eN(t,e),a=new Set,u=new Set(l),s=[];eL[o]||(eL[o]=new WeakMap);let c=eL[o];return l.forEach(function e(t){!(!t||a.has(t))&&(a.add(t),t.parentNode&&e(t.parentNode))}),function e(t){!t||u.has(t)||Array.prototype.forEach.call(t.children,t=>{if(a.has(t))e(t);else{let e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(eP.get(t)||0)+1,l=(c.get(t)||0)+1;eP.set(t,r),c.set(t,l),s.push(t),1===r&&n&&eI.add(t),1===l&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}})}(t),a.clear(),eD++,()=>{s.forEach(e=>{let t=(eP.get(e)||0)-1,n=(c.get(e)||0)-1;eP.set(e,t),c.set(e,n),t||(!eI.has(e)&&i&&e.removeAttribute(i),eI.delete(e)),n||e.removeAttribute(o)}),--eD||(eP=new WeakMap,eP=new WeakMap,eI=new WeakSet,eL={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}let ej=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function eH(e,t){let n=Y(e,ej());"prev"===t&&n.reverse();let r=n.indexOf(a(g(e)));return n.slice(r+1)[0]}function eF(){return eH(document.body,"next")}function e_(){return eH(document.body,"prev")}function eZ(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!u(n,r)}let eV={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function e$(e){"Tab"===e.key&&(e.target,clearTimeout(r))}let eK=o.forwardRef(function(e,t){let[n,r]=o.useState();ed(()=>(p()&&r("button"),document.addEventListener("keydown",e$),()=>{document.removeEventListener("keydown",e$)}),[]);let i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[ew("focus-guard")]:"",style:eV};return o.createElement("span",ef({},e,i))}),eU=o.createContext(null),eY=ew("portal");function eX(e){let{children:t,id:n,root:r=null,preserveTabOrder:i=!0}=e,a=function(e){void 0===e&&(e={});let{id:t,root:n}=e,r=ev(),i=eq(),[a,u]=o.useState(null),s=o.useRef(null);return ed(()=>()=>{null==a||a.remove(),queueMicrotask(()=>{s.current=null})},[a]),ed(()=>{if(s.current)return;let e=t?document.getElementById(t):null;if(!e)return;let n=document.createElement("div");n.id=r,n.setAttribute(eY,""),e.appendChild(n),s.current=n,u(n)},[t,r]),ed(()=>{if(s.current)return;let e=n||(null==i?void 0:i.portalNode);e&&!(0,l.kK)(e)&&(e=e.current),e=e||document.body;let o=null;t&&((o=document.createElement("div")).id=t,e.appendChild(o));let a=document.createElement("div");a.id=r,a.setAttribute(eY,""),(e=o||e).appendChild(a),s.current=a,u(a)},[t,n,r,i]),a}({id:n,root:r}),[u,s]=o.useState(null),c=o.useRef(null),d=o.useRef(null),f=o.useRef(null),p=o.useRef(null),h=!!u&&!u.modal&&u.open&&i&&!!(r||a);return o.useEffect(()=>{if(a&&i&&(null==u||!u.modal))return a.addEventListener("focusin",e,!0),a.addEventListener("focusout",e,!0),()=>{a.removeEventListener("focusin",e,!0),a.removeEventListener("focusout",e,!0)};function e(e){a&&eZ(e)&&("focusin"===e.type?function(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}:function(e){Y(e,ej()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})})(a)}},[a,i,null==u?void 0:u.modal]),o.createElement(eU.Provider,{value:o.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:c,afterOutsideRef:d,beforeInsideRef:f,afterInsideRef:p,portalNode:a,setFocusManagerState:s}),[i,a])},h&&a&&o.createElement(eK,{"data-type":"outside",ref:c,onFocus:e=>{if(eZ(e,a)){var t;null==(t=f.current)||t.focus()}else{let e=e_()||(null==u?void 0:u.refs.domReference.current);null==e||e.focus()}}}),h&&a&&o.createElement("span",{"aria-owns":a.id,style:eV}),a&&(0,q.createPortal)(t,a),h&&a&&o.createElement(eK,{"data-type":"outside",ref:d,onFocus:e=>{if(eZ(e,a)){var t;null==(t=p.current)||t.focus()}else{let t=eF()||(null==u?void 0:u.refs.domReference.current);null==t||t.focus(),(null==u?void 0:u.closeOnFocusOut)&&(null==u||u.onOpenChange(!1,e.nativeEvent))}}}))}let eq=()=>o.useContext(eU),eG=[];function eJ(e){eG=eG.filter(e=>e.isConnected);let t=e;if(t&&"body"!==(0,l.wk)(t)){if(!X(t,ej())){let e=Y(t,ej())[0];if(!e)return;t=e}eG.push(t),eG.length>20&&(eG=eG.slice(-20))}}function eQ(){return eG.slice().reverse().find(e=>e.isConnected)}let e0=o.forwardRef(function(e,t){return o.createElement("button",ef({},e,{type:"button",ref:t,tabIndex:-1,style:eV}))});function e1(e){let{context:t,children:n,disabled:r=!1,order:i=["content"],guards:s=!0,initialFocus:c=0,returnFocus:p=!0,modal:h=!0,visuallyHiddenDismiss:m=!1,closeOnFocusOut:v=!0}=e,{open:b,refs:S,nodeId:R,onOpenChange:E,events:k,dataRef:C,elements:{domReference:T,floating:O}}=t,M="number"==typeof c&&c<0,A=x(T)&&M,P=!eB()||s,I=ex(i),L=ex(c),D=ex(p),B=eS(),W=eq(),N=o.useRef(null),z=o.useRef(null),j=o.useRef(!1),H=o.useRef(!1),F=null!=W,_=o.useCallback(function(e){return void 0===e&&(e=O),e?Y(e,ej()):[]},[O]),Z=o.useCallback(e=>{let t=_(e);return I.current.map(e=>T&&"reference"===e?T:O&&"floating"===e?O:t).filter(Boolean).flat()},[T,O,I,_]);function V(e){return!r&&m&&h?o.createElement(e0,{ref:"start"===e?N:z,onClick:e=>E(!1,e.nativeEvent)},"string"==typeof m?m:"Dismiss"):null}o.useEffect(()=>{if(r||!h)return;function e(e){if("Tab"===e.key){u(O,a(g(O)))&&0===_().length&&!A&&w(e);let t=Z(),n=y(e);"reference"===I.current[0]&&n===T&&(w(e),e.shiftKey?ec(t[t.length-1]):ec(t[1])),"floating"===I.current[1]&&n===O&&e.shiftKey&&(w(e),ec(t[0]))}}let t=g(O);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,T,O,h,I,A,_,Z]),o.useEffect(()=>{if(!r&&v&&O&&(0,l.Re)(T))return T.addEventListener("focusout",t),T.addEventListener("pointerdown",e),h||O.addEventListener("focusout",t),()=>{T.removeEventListener("focusout",t),T.removeEventListener("pointerdown",e),h||O.removeEventListener("focusout",t)};function e(){H.current=!0,setTimeout(()=>{H.current=!1})}function t(e){let t=e.relatedTarget;queueMicrotask(()=>{let n=!(u(T,t)||u(O,t)||u(t,O)||u(null==W?void 0:W.portalNode,t)||null!=t&&t.hasAttribute(ew("focus-guard"))||B&&(eA(B.nodesRef.current,R).find(e=>{var n,r;return u(null==(n=e.context)?void 0:n.elements.floating,t)||u(null==(r=e.context)?void 0:r.elements.domReference,t)})||(function(e,t){var n;let r=[],o=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;o;){let t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r})(B.nodesRef.current,R).find(e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t})));t&&n&&!H.current&&t!==eQ()&&(j.current=!0,E(!1,e))})}},[r,T,O,h,R,B,W,E,v]),o.useEffect(()=>{var e;if(r)return;let t=Array.from((null==W||null==(e=W.portalNode)?void 0:e.querySelectorAll("["+ew("portal")+"]"))||[]);if(O){let e=[O,...t,N.current,z.current,I.current.includes("reference")||A?T:null].filter(e=>null!=e),n=h||A?ez(e,P,!P):ez(e);return()=>{n()}}},[r,T,O,h,I,W,A,P]),ed(()=>{if(r||!O)return;let e=a(g(O));queueMicrotask(()=>{let t=Z(O),n=L.current,r=("number"==typeof n?t[n]:n.current)||O,o=u(O,e);M||o||!b||ec(r,{preventScroll:r===O})})},[r,b,O,M,Z,L]),ed(()=>{if(r||!O)return;let e=!1,t=g(O),n=a(t),o=C.current;function i(t){let{reason:n,event:r,nested:o}=t;"escape-key"===n&&S.domReference.current&&eJ(S.domReference.current),"hover"===n&&"mouseleave"===r.type&&(j.current=!0),"outside-press"===n&&(o?(j.current=!1,e=!0):j.current=!(d(r)||f(r)))}return eJ(n),k.on("openchange",i),()=>{k.off("openchange",i);let n=a(t),r=u(O,n)||B&&eA(B.nodesRef.current,R).some(e=>{var t;return u(null==(t=e.context)?void 0:t.elements.floating,n)});(r||o.openEvent&&["click","mousedown"].includes(o.openEvent.type))&&S.domReference.current&&eJ(S.domReference.current);let s=eQ();D.current&&!j.current&&(0,l.Re)(s)&&(s===n||n===t.body||r)&&ec(s,{cancelPrevious:!1,preventScroll:e})}},[r,O,D,C,S,k,B,R]),ed(()=>{if(!r&&W)return W.setFocusManagerState({modal:h,closeOnFocusOut:v,open:b,onOpenChange:E,refs:S}),()=>{W.setFocusManagerState(null)}},[r,W,h,b,E,S,v]),ed(()=>{if(r||!O||"function"!=typeof MutationObserver||M)return;let e=()=>{let e=O.getAttribute("tabindex");I.current.includes("floating")||a(g(O))!==S.domReference.current&&0===_().length?"0"!==e&&O.setAttribute("tabindex","0"):"-1"!==e&&O.setAttribute("tabindex","-1")};e();let t=new MutationObserver(e);return t.observe(O,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}},[r,O,S,I,_,M]);let $=!r&&P&&(F||h);return o.createElement(o.Fragment,null,$&&o.createElement(eK,{"data-type":"inside",ref:null==W?void 0:W.beforeInsideRef,onFocus:e=>{if(h){let e=Z();ec("reference"===i[0]?e[0]:e[e.length-1])}else if(null!=W&&W.preserveTabOrder&&W.portalNode){if(j.current=!1,eZ(e,W.portalNode)){let e=eF()||T;null==e||e.focus()}else{var t;null==(t=W.beforeOutsideRef.current)||t.focus()}}}}),!A&&V("start"),n,V("end"),$&&o.createElement(eK,{"data-type":"inside",ref:null==W?void 0:W.afterInsideRef,onFocus:e=>{if(h)ec(Z()[0]);else if(null!=W&&W.preserveTabOrder&&W.portalNode){if(v&&(j.current=!0),eZ(e,W.portalNode)){let e=e_()||T;null==e||e.focus()}else{var t;null==(t=W.afterOutsideRef.current)||t.focus()}}}}))}let e2=new Set,e5=o.forwardRef(function(e,t){let{lockScroll:n=!1,...r}=e,i=ev();return ed(()=>{if(!n)return;e2.add(i);let e=/iP(hone|ad|od)|iOS/.test(s()),t=document.body.style,r=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth,l=t.left?parseFloat(t.left):window.pageXOffset,a=t.top?parseFloat(t.top):window.pageYOffset;if(t.overflow="hidden",o&&(t[r]=o+"px"),e){var u,c;let e=(null==(u=window.visualViewport)?void 0:u.offsetLeft)||0;Object.assign(t,{position:"fixed",top:-(a-Math.floor((null==(c=window.visualViewport)?void 0:c.offsetTop)||0))+"px",left:-(l-Math.floor(e))+"px",right:"0"})}return()=>{e2.delete(i),0===e2.size&&(Object.assign(t,{overflow:"",[r]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(l,a)))}},[i,n]),o.createElement("div",ef({ref:t},r,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}}))});function e3(e){return(0,l.Re)(e.target)&&"BUTTON"===e.target.tagName}function e4(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,dataRef:i,elements:{domReference:l}}=e,{enabled:a=!0,event:u="click",toggle:s=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0}=t,f=o.useRef(),p=o.useRef(!1);return o.useMemo(()=>a?{reference:{onPointerDown(e){f.current=e.pointerType},onMouseDown(e){0!==e.button||v(f.current,!0)&&c||"click"===u||(n&&s&&(!i.current.openEvent||"mousedown"===i.current.openEvent.type)?r(!1,e.nativeEvent,"click"):(e.preventDefault(),r(!0,e.nativeEvent,"click")))},onClick(e){if("mousedown"===u&&f.current){f.current=void 0;return}v(f.current,!0)&&c||(n&&s&&(!i.current.openEvent||"click"===i.current.openEvent.type)?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!d||e3(e)||(" "!==e.key||S(l)||(e.preventDefault(),p.current=!0),"Enter"===e.key&&(n&&s?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click")))},onKeyUp(e){!(e.defaultPrevented||!d||e3(e)||S(l))&&" "===e.key&&p.current&&(p.current=!1,n&&s?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click"))}}}:{},[a,i,u,c,d,l,s,n,r])}let e7={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},e9={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},e8=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function e6(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,nodeId:i,elements:{reference:a,domReference:s,floating:c},dataRef:d}=e,{enabled:f=!0,escapeKey:p=!0,outsidePress:h=!0,outsidePressEvent:m="pointerdown",referencePress:v=!1,referencePressEvent:S="pointerdown",ancestorScroll:w=!1,bubbles:x,capture:R}=t,E=eS(),k=Q("function"==typeof h?h:()=>!1),C="function"==typeof h?k:h,T=o.useRef(!1),O=o.useRef(!1),{escapeKey:M,outsidePress:A}=e8(x),{escapeKey:P,outsidePress:I}=e8(R),L=Q(e=>{if(!n||!f||!p||"Escape"!==e.key)return;let t=E?eA(E.nodesRef.current,i):[];if(!M&&(e.stopPropagation(),t.length>0)){let e=!0;if(t.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,"nativeEvent"in e?e.nativeEvent:e,"escape-key")}),D=Q(e=>{var t;let n=()=>{var t;L(e),null==(t=y(e))||t.removeEventListener("keydown",n)};null==(t=y(e))||t.addEventListener("keydown",n)}),B=Q(e=>{let t=T.current;T.current=!1;let n=O.current;if(O.current=!1,"click"===m&&n||t||"function"==typeof C&&!C(e))return;let o=y(e),a="["+ew("inert")+"]",d=g(c).querySelectorAll(a),f=(0,l.kK)(o)?o:null;for(;f&&!(0,l.Py)(f);){let e=(0,l.Ow)(f);if((0,l.Py)(e)||!(0,l.kK)(e))break;f=e}if(d.length&&(0,l.kK)(o)&&!o.matches("html,body")&&!u(o,c)&&Array.from(d).every(e=>!u(f,e)))return;if((0,l.Re)(o)&&c){let t=o.clientWidth>0&&o.scrollWidth>o.clientWidth,n=o.clientHeight>0&&o.scrollHeight>o.clientHeight,r=n&&e.offsetX>o.clientWidth;if(n&&"rtl"===(0,l.Dx)(o).direction&&(r=e.offsetX<=o.offsetWidth-o.clientWidth),r||t&&e.offsetY>o.clientHeight)return}let p=E&&eA(E.nodesRef.current,i).some(t=>{var n;return b(e,null==(n=t.context)?void 0:n.elements.floating)});if(b(e,c)||b(e,s)||p)return;let h=E?eA(E.nodesRef.current,i):[];if(h.length>0){let e=!0;if(h.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,"outside-press")}),W=Q(e=>{var t;let n=()=>{var t;B(e),null==(t=y(e))||t.removeEventListener(m,n)};null==(t=y(e))||t.addEventListener(m,n)});return o.useEffect(()=>{if(!n||!f)return;function e(e){r(!1,e,"ancestor-scroll")}d.current.__escapeKeyBubbles=M,d.current.__outsidePressBubbles=A;let t=g(c);p&&t.addEventListener("keydown",P?D:L,P),C&&t.addEventListener(m,I?W:B,I);let o=[];return w&&((0,l.kK)(s)&&(o=(0,l.Kx)(s)),(0,l.kK)(c)&&(o=o.concat((0,l.Kx)(c))),!(0,l.kK)(a)&&a&&a.contextElement&&(o=o.concat((0,l.Kx)(a.contextElement)))),(o=o.filter(e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})).forEach(t=>{t.addEventListener("scroll",e,{passive:!0})}),()=>{p&&t.removeEventListener("keydown",P?D:L,P),C&&t.removeEventListener(m,I?W:B,I),o.forEach(t=>{t.removeEventListener("scroll",e)})}},[d,c,s,a,p,C,m,n,r,w,f,M,A,L,P,D,B,I,W]),o.useEffect(()=>{T.current=!1},[C,m]),o.useMemo(()=>f?{reference:{onKeyDown:L,[e7[S]]:e=>{v&&r(!1,e.nativeEvent,"reference-press")}},floating:{onKeyDown:L,onMouseDown(){O.current=!0},onMouseUp(){O.current=!0},[e9[m]]:()=>{T.current=!0}}}:{},[f,v,m,S,r,L])}function te(e){var t;void 0===e&&(e={});let{open:n=!1,onOpenChange:r,nodeId:i}=e,[a,u]=o.useState(null),[s,c]=o.useState(null),d=(null==(t=e.elements)?void 0:t.reference)||a;ed(()=>{d&&(v.current=d)},[d]);let f=(0,E.YF)({...e,elements:{...e.elements,...s&&{reference:s}}}),p=eS(),h=null!=ey(),m=Q((e,t,n)=>{g.current.openEvent=e?t:void 0,b.emit("openchange",{open:e,event:t,reason:n,nested:h}),null==r||r(e,t,n)}),v=o.useRef(null),g=o.useRef({}),b=o.useState(()=>(function(){let e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}})())[0],y=ev(),S=o.useCallback(e=>{let t=(0,l.kK)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),f.refs.setReference(t)},[f.refs]),w=o.useCallback(e=>{((0,l.kK)(e)||null===e)&&(v.current=e,u(e)),((0,l.kK)(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!(0,l.kK)(e))&&f.refs.setReference(e)},[f.refs]),x=o.useMemo(()=>({...f.refs,setReference:w,setPositionReference:S,domReference:v}),[f.refs,w,S]),R=o.useMemo(()=>({...f.elements,domReference:d}),[f.elements,d]),k=o.useMemo(()=>({...f,refs:x,elements:R,dataRef:g,nodeId:i,floatingId:y,events:b,open:n,onOpenChange:m}),[f,i,y,b,n,m,x,R]);return ed(()=>{let e=null==p?void 0:p.nodesRef.current.find(e=>e.id===i);e&&(e.context=k)}),o.useMemo(()=>({...f,context:k,refs:x,elements:R}),[f,x,R,k])}function tt(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,events:i,refs:s,elements:{domReference:c}}=e,{enabled:d=!0,visibleOnly:h=!0}=t,v=o.useRef(!1),b=o.useRef(),w=o.useRef(!0);return o.useEffect(()=>{if(!d)return;let e=(0,l.Jj)(c);function t(){!n&&(0,l.Re)(c)&&c===a(g(c))&&(v.current=!0)}function r(){w.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}},[c,n,d]),o.useEffect(()=>{if(d)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{reason:t}=e;("reference-press"===t||"escape-key"===t)&&(v.current=!0)}},[i,d]),o.useEffect(()=>()=>{clearTimeout(b.current)},[]),o.useMemo(()=>d?{reference:{onPointerDown(e){f(e.nativeEvent)||(w.current=!1)},onMouseLeave(){v.current=!1},onFocus(e){if(v.current)return;let t=y(e.nativeEvent);if(h&&(0,l.kK)(t))try{if(p()&&m())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!w.current&&!S(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){v.current=!1;let t=e.relatedTarget,n=(0,l.kK)(t)&&t.hasAttribute(ew("focus-guard"))&&"outside"===t.getAttribute("data-type");b.current=window.setTimeout(()=>{let o=a(c?c.ownerDocument:document);if(t||o!==c){if(u(s.floating.current,o)||u(c,o)||n)return;r(!1,e.nativeEvent,"focus")}})}}}:{},[d,h,c,s,r])}let tn="active",tr="selected";function to(e,t,n){let r=new Map,o="item"===n,i=e;if(o&&e){let{[tn]:t,[tr]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1},...i,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,i]=t;if(!(o&&[tn,tr].includes(n))){if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof i){var l;null==(l=r.get(n))||l.push(i),e[n]=function(){for(var e,t=arguments.length,o=Array(t),i=0;ie(...o)).find(e=>void 0!==e)}}}else e[n]=i}}),e),{})}}function ti(e){void 0===e&&(e=[]);let t=e,n=o.useCallback(t=>to(t,e,"reference"),t),r=o.useCallback(t=>to(t,e,"floating"),t),i=o.useCallback(t=>to(t,e,"item"),e.map(e=>null==e?void 0:e.item));return o.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:i}),[n,r,i])}let tl=!1;function ta(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function tu(e,t){return ta(t,e===ee||e===et,e===en||e===er)}function ts(e,t,n){return ta(t,e===et,n?e===en:e===er)||"Enter"===e||" "===e||""===e}function tc(e,t,n){return ta(t,n?e===er:e===en,e===ee)}function td(e,t){let{open:n,onOpenChange:r,refs:i,elements:{domReference:s,floating:c}}=e,{listRef:h,activeIndex:v,onNavigate:b=()=>{},enabled:y=!0,selectedIndex:S=null,allowEscape:E=!1,loop:k=!1,nested:C=!1,rtl:T=!1,virtual:O=!1,focusItemOnOpen:M="auto",focusItemOnHover:A=!0,openOnArrowKeyDown:P=!0,disabledIndices:I,orientation:L="vertical",cols:D=1,scrollItemIntoView:B=!0,virtualItemRef:W,itemSizes:N,dense:z=!1}=t,j=ey(),H=eS(),F=Q(b),_=o.useRef(M),Z=o.useRef(null!=S?S:-1),V=o.useRef(null),$=o.useRef(!0),K=o.useRef(F),U=o.useRef(!!c),Y=o.useRef(!1),X=o.useRef(!1),q=ex(I),G=ex(n),J=ex(B),[es,ef]=o.useState(),[ep,eh]=o.useState(),em=Q(function(e,t,n){void 0===n&&(n=!1);let r=e.current[t.current];r&&(O?(ef(r.id),null==H||H.events.emit("virtualfocus",r),W&&(W.current=r)):ec(r,{preventScroll:!0,sync:!!(m()&&p())&&(tl||Y.current)}),requestAnimationFrame(()=>{let e=J.current;e&&r&&(n||!$.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof e?{block:"nearest",inline:"nearest"}:e))}))});ed(()=>{document.createElement("div").focus({get preventScroll(){return tl=!0,!1}})},[]),ed(()=>{y&&(n&&c?_.current&&null!=S&&(X.current=!0,Z.current=S,F(S)):U.current&&(Z.current=-1,K.current(null)))},[y,n,c,S,F]),ed(()=>{if(y&&n&&c){if(null==v){if(Y.current=!1,null==S&&(U.current&&(Z.current=-1,em(h,Z)),!U.current&&_.current&&(null!=V.current||!0===_.current&&null==V.current))){let e=0,t=()=>{null==h.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(Z.current=null==V.current||ts(V.current,L,T)||C?el(h,q.current):ea(h,q.current),V.current=null,F(Z.current))};t()}}else ei(h,v)||(Z.current=v,em(h,Z,X.current),X.current=!1)}},[y,n,c,v,S,C,h,L,T,F,em,q]),ed(()=>{var e;if(!y||c||!H||O||!U.current)return;let t=H.nodesRef.current,n=null==(e=t.find(e=>e.id===j))||null==(e=e.context)?void 0:e.elements.floating,r=a(g(c)),o=t.some(e=>e.context&&u(e.context.elements.floating,r));n&&!o&&$.current&&n.focus({preventScroll:!0})},[y,c,H,j,O]),ed(()=>{if(y&&H&&O&&!j)return H.events.on("virtualfocus",e),()=>{H.events.off("virtualfocus",e)};function e(e){eh(e.id),W&&(W.current=e)}},[y,H,O,j,W]),ed(()=>{K.current=F,U.current=!!c}),ed(()=>{n||(V.current=null)},[n]);let ev=null!=v,eg=o.useMemo(()=>{function e(e){if(!n)return;let t=h.current.indexOf(e);-1!==t&&F(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...A&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;$.current&&"touch"!==t&&(Z.current=-1,em(h,Z),F(null),O||ec(i.floating.current,{preventScroll:!0}))}}}},[n,i,em,A,h,F,O]);return o.useMemo(()=>{if(!y)return{};let e=q.current;function t(t){if($.current=!1,Y.current=!0,!G.current&&t.currentTarget===i.floating.current)return;if(C&&tc(t.key,L,T)){w(t),r(!1,t.nativeEvent,"list-navigation"),(0,l.Re)(s)&&!O&&s.focus();return}let o=Z.current,u=el(h,e),c=ea(h,e);if("Home"===t.key&&(w(t),Z.current=u,F(Z.current)),"End"===t.key&&(w(t),Z.current=c,F(Z.current)),D>1){var d;let n=N||Array.from({length:h.current.length},()=>({width:1,height:1})),r=function(e,t,n){let r=[],o=0;return e.forEach((e,i)=>{let{width:l,height:a}=e,u=!1;for(n&&(o=0);!u;){let e=[];for(let n=0;nnull==r[e])?(e.forEach(e=>{r[e]=i}),u=!0):o++}}),[...r]}(n,D,z),o=r.findIndex(t=>null!=t&&!(null!=e&&e.includes(t))),i=r.reduce((t,n,r)=>null==n||null!=e&&e.includes(n)?t:r,-1);if(Z.current=r[function(e,t){let{event:n,orientation:r,loop:o,cols:i,disabledIndices:l,minIndex:a,maxIndex:u,prevIndex:s,stopEvent:c=!1}=t,d=s;if(n.key===ee){if(c&&w(n),-1===s)d=u;else if(d=eu(e,{startingIndex:d,amount:i,decrement:!0,disabledIndices:l}),o&&(s-ie?n:n-i}ei(e,d)&&(d=s)}if(n.key===et&&(c&&w(n),-1===s?d=a:(d=eu(e,{startingIndex:s,amount:i,disabledIndices:l}),o&&s+i>u&&(d=eu(e,{startingIndex:s%i-i,amount:i,disabledIndices:l}))),ei(e,d)&&(d=s)),"both"===r){let t=(0,R.GW)(s/i);n.key===er&&(c&&w(n),s%i!=i-1?(d=eu(e,{startingIndex:s,disabledIndices:l}),o&&eo(d,i,t)&&(d=eu(e,{startingIndex:s-s%i-1,disabledIndices:l}))):o&&(d=eu(e,{startingIndex:s-s%i-1,disabledIndices:l})),eo(d,i,t)&&(d=s)),n.key===en&&(c&&w(n),s%i!=0?(d=eu(e,{startingIndex:s,disabledIndices:l,decrement:!0}),o&&eo(d,i,t)&&(d=eu(e,{startingIndex:s+(i-s%i),decrement:!0,disabledIndices:l}))):o&&(d=eu(e,{startingIndex:s+(i-s%i),decrement:!0,disabledIndices:l})),eo(d,i,t)&&(d=s));let r=(0,R.GW)(u/i)===t;ei(e,d)&&(d=o&&r?n.key===en?u:eu(e,{startingIndex:s-s%i-1,disabledIndices:l}):s)}return d}({current:r.map(e=>null!=e?h.current[e]:null)},{event:t,orientation:L,loop:k,cols:D,disabledIndices:(d=[...e||[],void 0],r.flatMap((e,t)=>d.includes(e)?[t]:[])),minIndex:o,maxIndex:i,prevIndex:function(e,t,n,r,o){if(-1===e)return -1;let i=n.indexOf(e);switch(o){case"tl":return i;case"tr":return i+t[e].width-1;case"bl":return i+(t[e].height-1)*r;case"br":return n.lastIndexOf(e)}}(Z.current,n,r,D,t.key===et?"bl":t.key===er?"tr":"tl"),stopEvent:!0})],F(Z.current),"both"===L)return}if(tu(t.key,L)){if(w(t),n&&!O&&a(t.currentTarget.ownerDocument)===t.currentTarget){Z.current=ts(t.key,L,T)?u:c,F(Z.current);return}ts(t.key,L,T)?k?Z.current=o>=c?E&&o!==h.current.length?-1:u:eu(h,{startingIndex:o,disabledIndices:e}):Z.current=Math.min(c,eu(h,{startingIndex:o,disabledIndices:e})):k?Z.current=o<=u?E&&-1!==o?h.current.length:c:eu(h,{startingIndex:o,decrement:!0,disabledIndices:e}):Z.current=Math.max(u,eu(h,{startingIndex:o,decrement:!0,disabledIndices:e})),ei(h,Z.current)?F(null):F(Z.current)}}function o(e){"auto"===M&&d(e.nativeEvent)&&(_.current=!0)}let u=O&&n&&ev&&{"aria-activedescendant":ep||es},c=h.current.find(e=>(null==e?void 0:e.id)===es);return{reference:{...u,onKeyDown(o){var i,l,a,u,s,d;$.current=!1;let f=0===o.key.indexOf("Arrow"),p=(i=o.key,ta(L,T?i===en:i===er,i===et)),m=tc(o.key,L,T),v=tu(o.key,L),g=(C?p:v)||"Enter"===o.key||""===o.key.trim();if(O&&n){let e,n;let r=null==H?void 0:H.nodesRef.current.find(e=>null==e.parentId),i=H&&r?(l=H.nodesRef.current,a=r.id,n=-1,!function t(r,o){o>n&&(e=r,n=o),eA(l,r).forEach(e=>{t(e.id,o+1)})}(a,0),l.find(t=>t.id===e)):null;if(f&&i&&W){let e=new KeyboardEvent("keydown",{key:o.key,bubbles:!0});if(p||m){let t=(null==(u=i.context)?void 0:u.elements.domReference)===o.currentTarget,n=m&&!t?null==(s=i.context)?void 0:s.elements.domReference:p?c:null;n&&(w(o),n.dispatchEvent(e),eh(void 0))}if(v&&i.context&&i.context.open&&i.parentId&&o.currentTarget!==i.context.elements.domReference){w(o),null==(d=i.context.elements.domReference)||d.dispatchEvent(e);return}}return t(o)}if(n||P||!f){if(g&&(V.current=C&&v?null:o.key),C){p&&(w(o),n?(Z.current=el(h,e),F(Z.current)):r(!0,o.nativeEvent,"list-navigation"));return}v&&(null!=S&&(Z.current=S),w(o),!n&&P?r(!0,o.nativeEvent,"list-navigation"):t(o),n&&F(Z.current))}},onFocus(){n&&F(null)},onPointerDown:function(e){_.current=M,"auto"===M&&f(e.nativeEvent)&&(_.current=!0)},onMouseDown:o,onClick:o},floating:{"aria-orientation":"both"===L?void 0:L,...!x(s)&&u,onKeyDown:t,onPointerMove(){$.current=!0}},item:eg}},[s,i,es,ep,q,G,h,y,L,T,O,n,ev,C,S,P,E,D,k,M,F,r,eg,H,W,N,z])}let tf=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function tp(e,t){var n;void 0===t&&(t={});let{open:r,floatingId:i}=e,{enabled:l=!0,role:a="dialog"}=t,u=null!=(n=tf.get(a))?n:a,s=ev(),c=null!=ey();return o.useMemo(()=>{if(!l)return{};let e={id:i,...u&&{role:u}};return"tooltip"===u||"label"===a?{reference:{["aria-"+("label"===a?"labelledby":"describedby")]:r?i:void 0},floating:e}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===u?"dialog":u,"aria-controls":r?i:void 0,..."listbox"===u&&{role:"combobox"},..."menu"===u&&{id:s},..."menu"===u&&c&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}},floating:{...e,..."menu"===u&&{"aria-labelledby":s}},item(e){let{active:t,selected:n}=e,r={role:"option",...t&&{id:i+"-option"}};switch(a){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}}},[l,a,u,r,i,s,c])}function th(e,t){var n;let{open:r,dataRef:i}=e,{listRef:l,activeIndex:a,onMatch:u,onTypingChange:s,enabled:c=!0,findMatch:d=null,resetMs:f=750,ignoreKeys:p=[],selectedIndex:h=null}=t,m=o.useRef(),v=o.useRef(""),g=o.useRef(null!=(n=null!=h?h:a)?n:-1),b=o.useRef(null),y=Q(u),S=Q(s),x=ex(d),R=ex(p);return ed(()=>{r&&(clearTimeout(m.current),b.current=null,v.current="")},[r]),ed(()=>{if(r&&""===v.current){var e;g.current=null!=(e=null!=h?h:a)?e:-1}},[r,h,a]),o.useMemo(()=>{if(!c)return{};function e(e){e?i.current.typing||(i.current.typing=e,S(e)):i.current.typing&&(i.current.typing=e,S(e))}function t(e,t,n){let r=x.current?x.current(t,n):t.find(e=>(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))===0);return r?e.indexOf(r):-1}function n(n){let o=l.current;if(v.current.length>0&&" "!==v.current[0]&&(-1===t(o,o,v.current)?e(!1):" "===n.key&&w(n)),null==o||R.current.includes(n.key)||1!==n.key.length||n.ctrlKey||n.metaKey||n.altKey)return;r&&" "!==n.key&&(w(n),e(!0)),o.every(e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())})&&v.current===n.key&&(v.current="",g.current=b.current),v.current+=n.key,clearTimeout(m.current),m.current=setTimeout(()=>{v.current="",g.current=b.current,e(!1)},f);let i=g.current,a=t(o,[...o.slice((i||0)+1),...o.slice(0,(i||0)+1)],v.current);-1!==a?(y(a),b.current=a):" "!==n.key&&(v.current="",e(!1))}return{reference:{onKeyDown:n},floating:{onKeyDown:n,onKeyUp(t){" "===t.key&&e(!1)}}}},[c,r,i,l,f,R,x,y,S])}function tm(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}let tv=e=>({name:"inner",options:e,async fn(t){let{listRef:n,overflowRef:r,onFallbackChange:o,offset:i=0,index:l=0,minItemsVisible:a=4,referenceOverflowThreshold:u=0,scrollRef:s,...c}=e,{rects:d,elements:{floating:f}}=t,p=n.current[l];if(!p)return{};let h={...t,...await (0,k.cv)(-p.offsetTop-f.clientTop-d.reference.height/2-p.offsetHeight/2-i).fn(t)},m=(null==s?void 0:s.current)||f,v=await (0,k.US)(tm(h,m.scrollHeight),c),g=await (0,k.US)(h,{...c,elementContext:"reference"}),b=Math.max(0,v.top),y=h.y+b,S=Math.max(0,m.scrollHeight-b-Math.max(0,v.bottom));return m.style.maxHeight=S+"px",m.scrollTop=b,o&&(m.offsetHeight=-u||g.bottom>=-u?(0,q.flushSync)(()=>o(!0)):(0,q.flushSync)(()=>o(!1))),r&&(r.current=await (0,k.US)(tm({...h,y:y},m.offsetHeight),c)),{y:y}}});function tg(e,t){let{open:n,elements:r}=e,{enabled:i=!0,overflowRef:l,scrollRef:a,onChange:u}=t,s=Q(u),d=o.useRef(!1),f=o.useRef(null),p=o.useRef(null);return o.useEffect(()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==l.current)return;let n=e.deltaY,r=l.current.top>=-.5,o=l.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,a=n<0?-1:1,u=n<0?"max":"min";!(t.scrollHeight<=t.clientHeight)&&(!r&&n>0||!o&&n<0?(e.preventDefault(),(0,q.flushSync)(()=>{s(e=>e+Math[u](n,i*a))})):/firefox/i.test(c())&&(t.scrollTop+=n))}let t=(null==a?void 0:a.current)||r.floating;if(n&&t)return t.addEventListener("wheel",e),requestAnimationFrame(()=>{f.current=t.scrollTop,null!=l.current&&(p.current={...l.current})}),()=>{f.current=null,p.current=null,t.removeEventListener("wheel",e)}},[i,n,r.floating,l,a,s]),o.useMemo(()=>i?{floating:{onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){let e=(null==a?void 0:a.current)||r.floating;if(l.current&&e&&d.current){if(null!==f.current){let t=e.scrollTop-f.current;(l.current.bottom<-.5&&t<-1||l.current.top<-.5&&t>1)&&(0,q.flushSync)(()=>s(e=>e+t))}requestAnimationFrame(()=>{f.current=e.scrollTop})}}}}:{},[i,l,r.floating,a,s])}function tb(e,t){let[n,r]=e,o=!1,i=t.length;for(let e=0,l=i-1;e=r!=s>=r&&n<=(u-i)*(r-a)/(s-a)+i&&(o=!o)}return o}function ty(e){let t;void 0===e&&(e={});let{buffer:n=.5,blockPointerEvents:r=!1,requireIntent:o=!0}=e,i=!1,a=null,s=null,c=performance.now(),d=e=>{let{x:r,y:d,placement:f,elements:p,onClose:h,nodeId:m,tree:v}=e;return function(e){function g(){clearTimeout(t),h()}if(clearTimeout(t),!p.domReference||!p.floating||null==f||null==r||null==d)return;let{clientX:b,clientY:S}=e,w=[b,S],x=y(e),R="mouseleave"===e.type,E=u(p.floating,x),k=u(p.domReference,x),C=p.domReference.getBoundingClientRect(),T=p.floating.getBoundingClientRect(),O=f.split("-")[0],M=r>T.right-T.width/2,A=d>T.bottom-T.height/2,P=w[0]>=C.x&&w[0]<=C.x+C.width&&w[1]>=C.y&&w[1]<=C.y+C.height,I=T.width>C.width,L=T.height>C.height,D=(I?C:T).left,B=(I?C:T).right,W=(L?C:T).top,N=(L?C:T).bottom;if(E&&(i=!0,!R))return;if(k&&(i=!1),k&&!R){i=!0;return}if(R&&(0,l.kK)(e.relatedTarget)&&u(p.floating,e.relatedTarget)||v&&eA(v.nodesRef.current,m).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===O&&d>=C.bottom-1||"bottom"===O&&d<=C.top+1||"left"===O&&r>=C.right-1||"right"===O&&r<=C.left+1)return g();let z=[];switch(O){case"top":z=[[D,C.top+1],[D,T.bottom-1],[B,T.bottom-1],[B,C.top+1]];break;case"bottom":z=[[D,T.top+1],[D,C.bottom-1],[B,C.bottom-1],[B,T.top+1]];break;case"left":z=[[T.right-1,N],[T.right-1,W],[C.left+1,W],[C.left+1,N]];break;case"right":z=[[C.right-1,N],[C.right-1,W],[T.left+1,W],[T.left+1,N]]}if(!tb([b,S],z)){if(i&&!P)return g();if(!R&&o){let t=function(e,t){let n=performance.now(),r=n-c;if(null===a||null===s||0===r)return a=e,s=t,c=n,null;let o=e-a,i=t-s;return a=e,s=t,c=n,Math.sqrt(o*o+i*i)/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}tb([b,S],function(e){let[t,r]=e;switch(O){case"top":{let e=[[T.left,M?T.bottom-n:I?T.bottom-n:T.top],[T.right,M?I?T.bottom-n:T.top:T.bottom-n]];return[[I?t+n/2:M?t+4*n:t-4*n,r+n+1],[I?t-n/2:M?t+4*n:t-4*n,r+n+1],...e]}case"bottom":{let e=[[T.left,M?T.top+n:I?T.top+n:T.bottom],[T.right,M?I?T.top+n:T.bottom:T.top+n]];return[[I?t+n/2:M?t+4*n:t-4*n,r-n],[I?t-n/2:M?t+4*n:t-4*n,r-n],...e]}case"left":return[[A?T.right-n:L?T.right-n:T.left,T.top],[A?L?T.right-n:T.left:T.right-n,T.bottom],[t+n+1,L?r+n/2:A?r+4*n:r-4*n],[t+n+1,L?r-n/2:A?r+4*n:r-4*n]];case"right":{let e=[[A?T.left+n:L?T.left+n:T.right,T.top],[A?L?T.left+n:T.right:T.left+n,T.bottom]];return[[t-n,L?r+n/2:A?r+4*n:r-4*n],[t-n,L?r-n/2:A?r+4*n:r-4*n],...e]}}}([r,d]))?!i&&o&&(t=window.setTimeout(g,40)):g()}}};return d.__options={blockPointerEvents:r},d}},5224:function(e,t,n){"use strict";function r(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function i(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return e instanceof Node||e instanceof o(e).Node}function a(e){return e instanceof Element||e instanceof o(e).Element}function u(e){return e instanceof HTMLElement||e instanceof o(e).HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function c(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=v(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function d(e){return["table","td","th"].includes(r(e))}function f(e){let t=h(),n=v(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function p(e){let t=b(e);for(;u(t)&&!m(t);){if(f(t))return t;t=b(t)}return null}function h(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function m(e){return["html","body","#document"].includes(r(e))}function v(e){return o(e).getComputedStyle(e)}function g(e){return a(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function b(e){if("html"===r(e))return e;let t=e.assignedSlot||e.parentNode||s(e)&&e.host||i(e);return s(t)?t.host:t}n.d(t,{Dx:function(){return v},Jj:function(){return o},Kx:function(){return function e(t,n,r){var i;void 0===n&&(n=[]),void 0===r&&(r=!0);let l=function e(t){let n=b(t);return m(n)?t.ownerDocument?t.ownerDocument.body:t.body:u(n)&&c(n)?n:e(n)}(t),a=l===(null==(i=t.ownerDocument)?void 0:i.body),s=o(l);return a?n.concat(s,s.visualViewport||[],c(l)?l:[],s.frameElement&&r?e(s.frameElement):[]):n.concat(l,e(l,[],r))}},Lw:function(){return g},Ow:function(){return b},Pf:function(){return h},Py:function(){return m},Re:function(){return u},Ze:function(){return d},Zq:function(){return s},ao:function(){return c},gQ:function(){return p},hT:function(){return f},kK:function(){return a},tF:function(){return i},wk:function(){return r}})},7848:function(e,t,n){"use strict";n.d(t,{Fp:function(){return o},GW:function(){return l},I4:function(){return m},JB:function(){return E},KX:function(){return w},NM:function(){return i},Qq:function(){return v},Rn:function(){return h},VV:function(){return r},Wh:function(){return g},gy:function(){return y},hp:function(){return p},i8:function(){return b},k3:function(){return f},ku:function(){return d},pw:function(){return x},uZ:function(){return c},yd:function(){return R},ze:function(){return a}});let r=Math.min,o=Math.max,i=Math.round,l=Math.floor,a=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function c(e,t,n){return o(e,r(t,n))}function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function v(e){return["top","bottom"].includes(f(e))?"y":"x"}function g(e){return h(v(e))}function b(e,t,n){void 0===n&&(n=!1);let r=p(e),o=g(e),i=m(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=x(l)),[l,x(l)]}function y(e){let t=x(e);return[S(e),t,S(t)]}function S(e){return e.replace(/start|end/g,e=>s[e])}function w(e,t,n,r){let o=p(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(f(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(S)))),i}function x(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function R(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function E(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}},3370:function(e,t,n){"use strict";n.d(t,{Tr:function(){return d},fG:function(){return u},pV:function(){return c}});var r=n(281),o=n(9097),i=n(8338),l=n(2265),a=n(2281);let u=(0,l.createContext)(null),s=e=>{let t=(0,l.useContext)(u);if(!t?.Contents)throw Error("tamagui.dev/docs/intro/errors#warning-002");return(0,l.createElement)(t.Contents,e)};s.shouldForwardSpace=!0;let c=({Contents:e})=>{let[t,n]=(0,l.useState)(null);return{AdaptProvider:(0,l.useMemo)(()=>{let t={Contents:e,setWhen:n};return function(e){return(0,a.jsx)(u.Provider,{value:t,children:e.children})}},[e]),when:t}},d=(0,i.$e)(function({platform:e,when:t,children:n}){let i=(0,l.useContext)(u),a=(0,o.GS)(),s=!e;return"touch"===e&&(s=r.wT),"native"===e&&(s=!r.$L),"web"===e&&(s=r.$L),"ios"===e&&(s=r.s),"android"===e&&(s=r.Dt),t&&!a[t]&&(s=!1),(0,r.LI)(()=>{s&&i?.setWhen(t||s)},[t,i,s]),s?n:null},{Contents:s})},126:function(e,t,n){"use strict";n.d(t,{M:function(){return c}});var r=n(2265);let o=typeof window>"u",i=()=>{},l=(0,r.createContext)({});var a=n(5794),u=n(2281);let s=e=>e.key||"",c=({children:e,enterVariant:t,exitVariant:n,enterExitVariant:c,initial:d=!0,onExitComplete:f,exitBeforeEnter:p,presenceAffectsLayout:h=!0,custom:m})=>{let v=(0,r.useContext)(l).forceRender??(o?i:(0,r.useReducer)(e=>Math.random(),0)[1]),g=function(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}(e),b=(0,r.useRef)(g),y=(0,r.useRef)(new Map).current,S=(0,r.useRef)(new Set).current;!function(e,t){e.forEach(e=>{let n=s(e);t.set(n,e)})}(g,y);let w=(0,r.useRef)(!0);if(w.current)return w.current=!1,(0,u.jsx)(u.Fragment,{children:g.map(e=>(0,u.jsx)(a.g,{isPresent:!0,enterExitVariant:c,exitVariant:n,enterVariant:t,initial:!!d&&void 0,presenceAffectsLayout:h,custom:m,children:e},s(e)))});let x=[...g],R=b.current.map(s),E=g.map(s),k=R.length;for(let e=0;e{if(-1!==E.indexOf(e))return;let r=y.get(e);if(!r)return;let o=R.indexOf(e),i=(0,u.jsx)(a.g,{isPresent:!1,onExitComplete:()=>{y.delete(e),S.delete(e);let t=b.current.findIndex(t=>t.key===e);b.current.splice(t,1),S.size||(b.current=g,v(),f?.())},presenceAffectsLayout:h,enterExitVariant:c,enterVariant:t,exitVariant:n,custom:m,children:r},s(r));x.splice(o,0,i)}),x=x.map(e=>{let r=e.key;return S.has(r)?e:(0,u.jsx)(a.g,{isPresent:!0,exitVariant:n,enterVariant:t,enterExitVariant:c,presenceAffectsLayout:h,custom:m,children:e},s(e))}),b.current=x,(0,u.jsx)(u.Fragment,{children:S.size?x:x.map(e=>(0,r.cloneElement)(e))})};c.displayName="AnimatePresence"},5794:function(e,t,n){"use strict";n.d(t,{g:function(){return a}});var r=n(3020),o=n(5390),i=n(2265),l=n(2281);let a=i.memo(({children:e,initial:t,isPresent:n,onExitComplete:a,exitVariant:s,enterVariant:c,enterExitVariant:d,presenceAffectsLayout:f,custom:p})=>{let h=(0,r.h)(u),m=(0,i.useId)()||"",v=i.useMemo(()=>({id:m,initial:t,isPresent:n,custom:p,exitVariant:s,enterVariant:c,enterExitVariant:d,onExitComplete:()=>{for(let e of(h.set(m,!0),h.values()))if(!e)return;a?.()},register:()=>(h.set(m,!1),()=>h.delete(m))}),f?void 0:[n,s,c]);return i.useMemo(()=>{h.forEach((e,t)=>h.set(t,!1))},[n]),i.useEffect(()=>{n||h.size||a?.()},[n]),(0,l.jsx)(o.Oy.Provider,{value:v,children:e})});function u(){return new Map}},3187:function(e,t,n){"use strict";n.d(t,{zx:function(){return R}});var r=n(3924),o=n(8306),i=n(8338),l=n(1676),a=n(1092),u=n(2265);let s=(0,u.createContext)(!1);var c=n(2026),d=n(2875),f=n(925),p=n(4975),h=n(1386),m=n(2202),v=n(9100),g=n(2281),b=n(357);let y=(0,f.i)({color:void 0,ellipse:void 0,fontFamily:void 0,fontSize:void 0,fontStyle:void 0,fontWeight:void 0,letterSpacing:void 0,maxFontSizeMultiplier:void 0,size:void 0,textAlign:void 0,variant:void 0}),S=(0,p.z)(a.K,{name:"Button",tag:"button",context:y,role:"button",focusable:!0,variants:{unstyled:{false:{size:"$true",justifyContent:"center",alignItems:"center",flexWrap:"nowrap",flexDirection:"row",cursor:"pointer",hoverTheme:!0,pressTheme:!0,backgrounded:!0,borderWidth:1,borderColor:"transparent",focusVisibleStyle:{outlineColor:"$outlineColor",outlineStyle:"solid",outlineWidth:2}}},variant:{outlined:{backgroundColor:"transparent",borderWidth:2,borderColor:"$borderColor",hoverStyle:{backgroundColor:"transparent",borderColor:"$borderColorHover"},pressStyle:{backgroundColor:"transparent",borderColor:"$borderColorPress"},focusVisibleStyle:{backgroundColor:"transparent",borderColor:"$borderColorFocus"}}},size:{"...size":o.f,":number":o.f},disabled:{true:{pointerEvents:"none"}}},defaultVariants:{unstyled:"1"===b.env.TAMAGUI_HEADLESS}}),w=(0,p.z)(c.J,{name:"Button",context:y,variants:{unstyled:{false:{userSelect:"none",cursor:"pointer",flexGrow:0,flexShrink:1,ellipse:!0,color:"$color"}}},defaultVariants:{unstyled:"1"===b.env.TAMAGUI_HEADLESS}}),x=S.styleable(function(e,t){let{props:n}=function({textProps:e,...t},{Text:n=R.Text}={Text:R.Text}){let o=(0,u.useContext)(s),i=(0,h.wN)(t,{noNormalize:!0,noExpand:!0}),{icon:a,iconAfter:c,space:f,spaceFlex:p,scaleIcon:y=1,scaleSpace:S=.66,separator:x,noTextWrap:E,fontFamily:k,fontSize:C,fontWeight:T,fontStyle:O,letterSpacing:M,tag:A,ellipse:P,maxFontSizeMultiplier:I,...L}=i,D=i.size||(i.unstyled?void 0:"$true"),B=i.color,W=("number"==typeof D?.5*D:(0,r.yv)(D,{font:k?.[0]==="$"?k:void 0}))*y,[N,z]=[a,c].map((0,l.Zw)({size:W,color:B})),j=f??(0,m.Ve)(W)*S,H=E?[t.children]:(0,d.k)(n,{children:t.children,fontFamily:k,fontSize:C,textProps:e,fontWeight:T,fontStyle:O,letterSpacing:M,ellipse:P,maxFontSizeMultiplier:I},n===w&&!0!==i.unstyled?{unstyled:"1"===b.env.TAMAGUI_HEADLESS,size:D}:void 0),F=(0,v.P9)({space:j,spaceFlex:p,separator:x,direction:"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal",children:[N,...H,z]}),_={size:D,...t.disabled&&{focusable:void 0,focusVisibleStyle:{borderColor:"$background"}},tag:A??(o?"span":"link"===i.accessibilityRole||"link"===i.role?"a":"button"),...L,children:(0,g.jsx)(s.Provider,{value:!0,children:F}),disableClassName:!0};return{spaceSize:j,isNested:o,props:_}}(e);return(0,g.jsx)(S,{...n,ref:t})}),R=(0,i.$e)(x,{Text:w,Icon:e=>{let{children:t,scaleIcon:n=1}=e,{size:o,color:i}=(0,u.useContext)(y),a=("number"==typeof o?.5*o:(0,r.yv)(o))*n;return(0,l.Zw)({size:a,color:i})(t)}})},301:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(2265),o=n(2281);function i(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let l=r.createContext(i),a=n.length;function u(t){let{scope:n,children:i,...u}=t,s=n?.[e]?.[a]||l,c=r.useMemo(()=>u,Object.values(u));return(0,o.jsx)(s.Provider,{value:c,children:i})}return n=[...n,i],u.displayName=`${t}Provider`,[u,function(n,o,u){let s=o?.[e]?.[a]||l,c=r.useContext(s);if(c)return c;if(void 0!==i)return i;let d=`\`${n}\` must be used within \`${t}\``;if(u?.fallback)return u?.warn!==!1&&console.warn(d),u.fallback;throw Error(d)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},9018:function(e,t,n){"use strict";let r;n.d(t,{M:function(){return d}});var o=n(9046),i=n(9087),l=n(2265),a=n(2281);let u="focusScope.autoFocusOnMount",s="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},d=l.forwardRef(function(e,t){let n=function(e,t){let{loop:n=!1,enabled:r=!0,trapped:a=!1,onMountAutoFocus:d,onUnmountAutoFocus:v,forceUnmount:g,children:b,...y}=e,[S,w]=l.useState(null),x=(0,i.z)(d),R=(0,i.z)(v),E=l.useRef(null),k=(0,o.ex)(t,e=>w(e)),C=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(!r||!a)return;let e=new AbortController;function t(t){if(C.paused||!S)return;let n=t.target;S.contains(n)?(n?.addEventListener("blur",o,{signal:e.signal}),E.current=n):h(E.current,{select:!0})}function n(t){e.abort(),!(C.paused||!S)&&(S.contains(t.relatedTarget)||h(E.current,{select:!0}))}function o(){E.current=S}return document.addEventListener("focusin",t),document.addEventListener("focusout",n),()=>{e.abort(),document.removeEventListener("focusin",t),document.removeEventListener("focusout",n)}},[a,g,S,C.paused]),l.useEffect(()=>{if(!r||!S||g)return;m.add(C);let e=document.activeElement;if(!S.contains(e)){let t=new CustomEvent(u,c);S.addEventListener(u,x),S.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(h(r,{select:t}),document.activeElement!==n)return}(f(S).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&h(S))}return()=>{S.removeEventListener(u,x);let t=new CustomEvent(s,c);S.addEventListener(s,R),S.dispatchEvent(t),t.defaultPrevented||h(e??document.body,{select:!0}),S.removeEventListener(s,R),m.remove(C)}},[r,S,g,x,R,C]);let T=l.useCallback(e=>{if(!a||!n||C.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[o,i]=function(e){let t=f(e);return[p(t,e),p(t.reverse(),e)]}(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&h(i,{select:!0})):(e.preventDefault(),n&&h(o,{select:!0})):r===t&&e.preventDefault()}},[n,a,C.paused]);return{tabIndex:-1,...y,ref:k,onKeyDown:T}}(e,t);return"function"==typeof e.children?(0,a.jsx)(a.Fragment,{children:e.children(n)}):l.cloneElement(l.Children.only(e.children),n)});function f(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function h(e,{select:t=!1}={}){if(e?.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}let m=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=v(r,e)).unshift(e)},remove(e){r=v(r,e),r[0]?.resume()}});function v(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},3924:function(e,t,n){"use strict";n.d(t,{yv:function(){return i}});var r=n(2202),o=n(5986);let i=(e,t)=>{let n=l(e,t);return(0,r.cG)(n)?+n.val:n?+n:16},l=(e,t)=>{let n=a(e,t);return n?(0,o.iE)().fontsParsed[t?.font||"$body"].size[n]:e},a=(e,t)=>{if("number"==typeof e)return null;let n=t?.relativeSize||0,r=(0,o.iE)().fontsParsed[t?.font||"$body"].size,i=("$true"!==e||"$true"in r?e:"$4")??("$true"in r?"$true":"$4"),l=Object.keys(r),a=l.indexOf(i);-1===a&&i.endsWith(".5")&&(a=l.indexOf(i.replace(".5","")));let u=Math.min(Math.max(0,a+n),l.length-1);return l[u]??i}},8306:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(6748);let o=(e,{tokens:t,props:n})=>{if(!e||n.circular)return;if("number"==typeof e)return{paddingHorizontal:.25*e,height:e,borderRadius:n.circular?1e5:.2*e};let o=(0,r.Pj)(e),i=t.radius[e]??t.radius.$true;return{paddingHorizontal:o,height:e,borderRadius:n.circular?1e5:i}}},8970:function(e,t,n){"use strict";n.d(t,{H:function(){return o}});var r=n(5986);let o=(e="$true",{font:t,fontFamily:n,props:o})=>{if(!t)return;let l="$true"===e?function(e){if("object"==typeof e&&i.has(e))return i.get(e);let t="$true"in e.size?e.size:(0,r.lz)().size,n=t.$true,o=n?Object.keys(t).find(e=>"$true"!==e&&t[e].val===n.val):null;return n&&o?(i.set(e,o),o):Object.keys(e.size)[3]}(t):e,a=t.size[l],u=t.lineHeight?.[l],s=t.weight?.[l],c=t.letterSpacing?.[l],d=t.transform?.[l],f=o.fontStyle??t.style?.[l];return{color:o.color??t.color?.[l],fontStyle:f,textTransform:d,fontFamily:n,fontWeight:s,letterSpacing:c,fontSize:a,lineHeight:u}},i=new WeakMap},6748:function(e,t,n){"use strict";n.d(t,{Pj:function(){return a},ap:function(){return l}});var r=n(5986),o=n(2202);let i={shift:0,bounds:[0]},l=(e,t)=>f("size",e,t),a=(e,t)=>f("space",e,t),u={},s={},c={},d={},f=(e,t,n=i)=>{let l=(0,r.lz)({prefixed:!0})[e];if(!(e in u)){c[e]=[],u[e]=[],d[e]=[],s[e]=[];let t=Object.keys(l).map(e=>l[e]).sort((e,t)=>e.val-t.val);for(let n of t)c[e].push(n.key),u[e].push(n);for(let n of t.filter(e=>!e.key.endsWith(".5")))d[e].push(n.key),s[e].push(n)}let a="string"==typeof t,f=(n.excludeHalfSteps?a?d:s:a?c:u)[e],p=n.bounds?.[0]??0,h=n.bounds?.[1]??f.length-1,m=f.indexOf(t),v=n.shift||0;v&&("$true"===t||(0,o.cG)(t)&&"true"===t.name)&&(v+=v>0?1:-1);let g=f[Math.min(h,Math.max(p,m+v))];return("string"==typeof g?l[g]:g)||l.$true}},1676:function(e,t,n){"use strict";n.d(t,{Zw:function(){return a}}),n(8338);var r=n(2265),o=n(8411),i=n(2202);let l=e=>{let t=(0,o.Fg)();return(0,i.E0)(e||t[e]?.get("web")||t.color?.get("web"))},a=e=>{let t=l(e.color);return n=>n&&((0,r.isValidElement)(n)?(0,r.cloneElement)(n,{...e,color:t,...n.props}):(0,r.createElement)(n,e))}},2583:function(e,t,n){"use strict";n.d(t,{f:function(){return G}});var r,o,i,l,a,u,s,c=n(2265),d=function(){return(d=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}"function"==typeof SuppressedError&&SuppressedError;var p="right-scroll-bar-position",h="width-before-scroll-bar";function m(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var v="undefined"!=typeof window?c.useLayoutEffect:c.useEffect,g=new WeakMap,b=(void 0===r&&(r={}),(void 0===o&&(o=function(e){return e}),i=[],l=!1,a={read:function(){if(l)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var t=o(e,l);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(l=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){l=!0;var t=[];if(i.length){var n=i;i=[],n.forEach(e),t=i}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),i={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),i}}}}).options=d({async:!0,ssr:!1},r),a),y=function(){},S=c.forwardRef(function(e,t){var n,r,o,i,l=c.useRef(null),a=c.useState({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:y}),u=a[0],s=a[1],p=e.forwardProps,h=e.children,S=e.className,w=e.removeScrollBar,x=e.enabled,R=e.shards,E=e.sideCar,k=e.noIsolation,C=e.inert,T=e.allowPinchZoom,O=e.as,M=f(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),A=(n=[l,t],r=function(e){return n.forEach(function(t){return m(t,e)})},(o=(0,c.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,v(function(){var e=g.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||m(e,null)}),r.forEach(function(e){t.has(e)||m(e,o)})}g.set(i,n)},[n]),i),P=d(d({},M),u);return c.createElement(c.Fragment,null,x&&c.createElement(E,{sideCar:b,removeScrollBar:w,shards:R,noIsolation:k,inert:C,setCallbacks:s,allowPinchZoom:!!T,lockRef:l}),p?c.cloneElement(c.Children.only(h),d(d({},P),{ref:A})):c.createElement(void 0===O?"div":O,d({},P,{className:S,ref:A}),h))});S.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},S.classNames={fullWidth:h,zeroRight:p};var w=function(e){var t=e.sideCar,n=f(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return c.createElement(r,d({},n))};w.isSideCarExport=!0;var x=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=s||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,i;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},R=function(){var e=x();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},E=function(){var e=R();return function(t){return e(t.styles,t.dynamic),null}},k={left:0,top:0,right:0,gap:0},C=function(e){return parseInt(e||"",10)||0},T=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[C(n),C(r),C(o)]},O=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return k;var t=T(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},M=E(),A="data-scroll-locked",P=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(A,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(l,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(p," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(h," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(p," .").concat(p," {\n right: 0 ").concat(r,";\n }\n \n .").concat(h," .").concat(h," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(A,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},I=function(){var e=parseInt(document.body.getAttribute(A)||"0",10);return isFinite(e)?e:0},L=function(){c.useEffect(function(){return document.body.setAttribute(A,(I()+1).toString()),function(){var e=I()-1;e<=0?document.body.removeAttribute(A):document.body.setAttribute(A,e.toString())}},[])},D=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;L();var i=c.useMemo(function(){return O(o)},[o]);return c.createElement(M,{styles:P(i,!t,o,n?"":"!important")})},B=!1;if("undefined"!=typeof window)try{var W=Object.defineProperty({},"passive",{get:function(){return B=!0,!0}});window.addEventListener("test",W,W),window.removeEventListener("test",W,W)}catch(e){B=!1}var N=!!B&&{passive:!1},z=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},j=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),H(e,n)){var r=F(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},H=function(e,t){return"v"===e?z(t,"overflowY"):z(t,"overflowX")},F=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},_=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,u=n.target,s=t.contains(u),c=!1,d=a>0,f=0,p=0;do{var h=F(e,u),m=h[0],v=h[1]-h[2]-l*m;(m||v)&&H(e,u)&&(f+=v,p+=m),u=u.parentNode}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return d&&(o&&0===f||!o&&a>f)?c=!0:!d&&(o&&0===p||!o&&-a>p)&&(c=!0),c},Z=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},V=function(e){return[e.deltaX,e.deltaY]},$=function(e){return e&&"current"in e?e.current:e},K=0,U=[],Y=(u=function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(K++)[0],i=c.useState(function(){return E()})[0],l=c.useRef(e);c.useEffect(function(){l.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;oMath.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=j(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=j(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var p=r.current||o;return _(p,t,e,"h"===p?u:s,!0)},[]),u=c.useCallback(function(e){if(U.length&&U[U.length-1]===i){var n="deltaY"in e?V(e):Z(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map($).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?a(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=c.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=c.useCallback(function(e){n.current=Z(e),r.current=void 0},[]),f=c.useCallback(function(t){s(t.type,V(t),t.target,a(t,e.lockRef.current))},[]),p=c.useCallback(function(t){s(t.type,Z(t),t.target,a(t,e.lockRef.current))},[]);c.useEffect(function(){return U.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,N),document.addEventListener("touchmove",u,N),document.addEventListener("touchstart",d,N),function(){U=U.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,N),document.removeEventListener("touchmove",u,N),document.removeEventListener("touchstart",d,N)}},[]);var h=e.removeScrollBar,m=e.inert;return c.createElement(c.Fragment,null,m?c.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?c.createElement(D,{gapMode:"margin"}):null)},b.useMedium(u),w),X=c.forwardRef(function(e,t){return c.createElement(S,d({},e,{ref:t,sideCar:Y}))});X.classNames=S.classNames;var q=n(2281);let G=(0,c.memo)(e=>e.children?(0,q.jsx)(X,{...e}):null);X.classNames},5295:function(e,t,n){"use strict";n.d(t,{p:function(){return l}});var r=n(5377),o=n(4975),i=n(5589);let l=(0,o.z)(i.Z,{name:"ScrollView",scrollEnabled:!0,variants:{fullscreen:{true:r.Xu}}},{accept:{contentContainerStyle:"style"}})},6505:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(281),o=n(4975),i=n(2166);let l=(0,o.z)(i.Kq,{name:"Separator",borderColor:"$borderColor",flexShrink:0,borderWidth:0,flex:1,height:0,maxHeight:0,borderBottomWidth:1,y:-.5,variants:{vertical:{true:{y:0,x:-.5,height:r.$L?"initial":"auto",maxHeight:r.$L?"initial":"auto",width:0,maxWidth:0,borderBottomWidth:0,borderRightWidth:1}}}})},1510:function(e,t,n){"use strict";n.d(t,{yo:function(){return ek}});var r=n(4975),o=n(5377),i=n(1092),l=n(281);let a="Sheet",u="SheetHandle",s="SheetOverlay",c=l.C5?document.createElement("style"):null;c&&"u">typeof document.head&&document.head.appendChild(c);var d=n(9046),f=n(2166),p=n(8338),h=n(2583),m=n(6616),v=n(2265),g=n(1840);let[b,y]=(0,n(301).b)(a),[S,w]=b(a,{});var x=n(3370),R=n(126),E=n(9235),k=n(5986),C=n(7562);let T=()=>{let{groups:e,animationDriver:t,...n}=(0,v.useContext)(C.s),{animations:r,...o}=(0,k.iE)();return{...o,...n,animationDriver:t??(0,k.iE)().animations}};var O=n(9087),M=n(4582),A=n(1130),P=n(4624),I=n(1775);let L=()=>{let[e,t]=(0,v.useState)(!1);return(0,v.useEffect)(()=>{let e=I.Z.addListener("keyboardDidShow",()=>{t(!0)}),n=I.Z.addListener("keyboardDidHide",()=>{t(!1)});return()=>{n.remove(),e.remove()}},[]),e};var D=n(7445),B=n.n(D),W=n(7998);class N{constructor(e){var t=e.onMoreTasks;this._onMoreTasks=t,this._queueStack=[{tasks:[],popable:!0}]}enqueue(e){this._getCurrentQueue().push(e)}enqueueTasks(e){e.forEach(e=>this.enqueue(e))}cancelTasks(e){this._queueStack=this._queueStack.map(t=>(0,W.Z)((0,W.Z)({},t),{},{tasks:t.tasks.filter(t=>-1===e.indexOf(t))})).filter((e,t)=>e.tasks.length>0||0===t)}hasTasksToProcess(){return this._getCurrentQueue().length>0}processNext(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{"object"==typeof t&&t.gen?this._genPromise(t):"object"==typeof t&&t.run?t.run():(B()("function"==typeof t,"Expected Function, SimpleTask, or PromiseTask, but got:\n"+JSON.stringify(t,null,2)),t())}catch(e){throw e.message="TaskQueue: Error with task "+(t.name||"")+": "+e.message,e}}}_getCurrentQueue(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&0===t.tasks.length&&e>0?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}_genPromise(e){var t=this._queueStack.push({tasks:[],popable:!1}),n=this._queueStack[t-1];e.gen().then(()=>{n.popable=!0,this.hasTasksToProcess()&&this._onMoreTasks()}).catch(t=>{setTimeout(()=>{throw t.message="TaskQueue: Error resolving Promise in task "+e.name+": "+t.message,t},0)})}}class z{constructor(){this._registry={}}addListener(e,t,n){var r,o,i=(null==(o=(r=this._registry)[e])&&(o=new Set,r[e]=o),o),l={context:n,listener:t,remove(){i.delete(l)}};return i.add(l),l}emit(e){var t=this._registry[e];if(null!=t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o{var t=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)};j&&window.cancelIdleCallback;var F=new z,_={Events:{interactionStart:"interactionStart",interactionComplete:"interactionComplete"},runAfterInteractions(e){var t=[],n=new Promise(n=>{q(),e&&t.push(e),t.push({run:n,name:"resolve "+(e&&e.name||"?")}),K.enqueueTasks(t)});return{then:n.then.bind(n),done:n.then.bind(n),cancel:()=>{K.cancelTasks(t)}}},createInteractionHandle(){q();var e=++Y;return V.add(e),e},clearInteractionHandle(e){B()(!!e,"Must provide a handle to clear."),q(),V.delete(e),$.add(e)},addListener:F.addListener.bind(F),setDeadline(e){X=e}},Z=new Set,V=new Set,$=new Set,K=new N({onMoreTasks:q}),U=0,Y=0,X=-1;function q(){U||(U=X>0?setTimeout(G):H(G))}function G(){U=0;var e=Z.size;V.forEach(e=>Z.add(e)),$.forEach(e=>Z.delete(e));var t=Z.size;if(0!==e&&0===t?F.emit(_.Events.interactionComplete):0===e&&0!==t&&F.emit(_.Events.interactionStart),0===t){for(var n=Date.now();K.hasTasksToProcess();)if(K.processNext(),X>0&&Date.now()-n>=X){q();break}}V.clear(),$.clear()}var J={centroidDimension:function(e,t,n,r){var o=e.touchBank,i=0,l=0,a=1===e.numberActiveTouches?e.touchBank[e.indexOfSingleActiveTouch]:null;if(null!==a)a.touchActive&&a.currentTimeStamp>t&&(i+=r&&n?a.currentPageX:r&&!n?a.currentPageY:!r&&n?a.previousPageX:a.previousPageY,l=1);else for(var u=0;u=t&&(i+=r&&n?s.currentPageX:r&&!n?s.currentPageY:!r&&n?s.previousPageX:s.previousPageY,l++)}return l>0?i/l:J.noCentroid},currentCentroidXOfTouchesChangedAfter:function(e,t){return J.centroidDimension(e,t,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(e,t){return J.centroidDimension(e,t,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(e,t){return J.centroidDimension(e,t,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(e,t){return J.centroidDimension(e,t,!1,!1)},currentCentroidX:function(e){return J.centroidDimension(e,0,!0,!0)},currentCentroidY:function(e){return J.centroidDimension(e,0,!1,!0)},noCentroid:-1},Q=J.currentCentroidXOfTouchesChangedAfter,ee=J.currentCentroidYOfTouchesChangedAfter,et=J.previousCentroidXOfTouchesChangedAfter,en=J.previousCentroidYOfTouchesChangedAfter,er=J.currentCentroidX,eo=J.currentCentroidY,ei={_initializeGestureState(e){e.moveX=0,e.moveY=0,e.x0=0,e.y0=0,e.dx=0,e.dy=0,e.vx=0,e.vy=0,e.numberActiveTouches=0,e._accountsForMovesUpTo=0},_updateGestureStateOnMove(e,t){e.numberActiveTouches=t.numberActiveTouches,e.moveX=Q(t,e._accountsForMovesUpTo),e.moveY=ee(t,e._accountsForMovesUpTo);var n=e._accountsForMovesUpTo,r=et(t,n),o=Q(t,n),i=en(t,n),l=ee(t,n),a=e.dx+(o-r),u=e.dy+(l-i),s=t.mostRecentTimeStamp-e._accountsForMovesUpTo;e.vx=(a-e.dx)/s,e.vy=(u-e.dy)/s,e.dx=a,e.dy=u,e._accountsForMovesUpTo=t.mostRecentTimeStamp},create(e){var t={handle:null,shouldCancelClick:!1,timeout:null},n={stateID:Math.random(),moveX:0,moveY:0,x0:0,y0:0,dx:0,dy:0,vx:0,vy:0,numberActiveTouches:0,_accountsForMovesUpTo:0};return{panHandlers:{onStartShouldSetResponder:t=>null!=e.onStartShouldSetPanResponder&&e.onStartShouldSetPanResponder(t,n),onMoveShouldSetResponder:t=>null!=e.onMoveShouldSetPanResponder&&e.onMoveShouldSetPanResponder(t,n),onStartShouldSetResponderCapture:t=>(1===t.nativeEvent.touches.length&&ei._initializeGestureState(n),n.numberActiveTouches=t.touchHistory.numberActiveTouches,null!=e.onStartShouldSetPanResponderCapture&&e.onStartShouldSetPanResponderCapture(t,n)),onMoveShouldSetResponderCapture(t){var r=t.touchHistory;return n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(ei._updateGestureStateOnMove(n,r),!!e.onMoveShouldSetPanResponderCapture&&e.onMoveShouldSetPanResponderCapture(t,n))},onResponderGrant:r=>(t.handle||(t.handle=_.createInteractionHandle()),t.timeout&&clearTimeout(t.timeout),t.shouldCancelClick=!0,n.x0=er(r.touchHistory),n.y0=eo(r.touchHistory),n.dx=0,n.dy=0,e.onPanResponderGrant&&e.onPanResponderGrant(r,n),null==e.onShouldBlockNativeResponder||e.onShouldBlockNativeResponder(r,n)),onResponderReject(r){el(t,e.onPanResponderReject,r,n)},onResponderRelease(r){el(t,e.onPanResponderRelease,r,n),ea(t),ei._initializeGestureState(n)},onResponderStart(t){var r=t.touchHistory;n.numberActiveTouches=r.numberActiveTouches,e.onPanResponderStart&&e.onPanResponderStart(t,n)},onResponderMove(t){var r=t.touchHistory;n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(ei._updateGestureStateOnMove(n,r),e.onPanResponderMove&&e.onPanResponderMove(t,n))},onResponderEnd(r){var o=r.touchHistory;n.numberActiveTouches=o.numberActiveTouches,el(t,e.onPanResponderEnd,r,n)},onResponderTerminate(r){el(t,e.onPanResponderTerminate,r,n),ea(t),ei._initializeGestureState(n)},onResponderTerminationRequest:t=>null==e.onPanResponderTerminationRequest||e.onPanResponderTerminationRequest(t,n),onClickCapture:e=>{!0===t.shouldCancelClick&&(e.stopPropagation(),e.preventDefault())}},getInteractionHandle:()=>t.handle}}};function el(e,t,n,r){e.handle&&(_.clearInteractionHandle(e.handle),e.handle=null),t&&t(n,r)}function ea(e){e.timeout=setTimeout(()=>{e.shouldCancelClick=!1},250)}var eu=n(1090),es=n(5275);let ec=(0,v.createContext)({zIndex:1e5}),ed=(0,v.createContext)(null);function ef(e,t,n=25){return e{let{isHidden:t,controller:n}=(0,eh.$)(),[r,o]=(0,ep.T)({prop:n?.open??e.open,defaultProp:e.defaultOpen??!1,onChange:t=>{n?.onOpenChange?.(t),e.onOpenChange?.(t)},strategy:"most-recent-wins",transition:!0});return{open:r,setOpen:o,isHidden:t,controller:n}};var ev=n(3020),eg=n(2281);let eb=(0,E.Y)((0,v.forwardRef)(function(e,t){let n=(0,v.useContext)(ec),{animation:r,animationConfig:o,modal:i=!1,zIndex:a=n.zIndex+1,moveOnKeyboardChange:u=!1,unmountChildrenWhenHidden:s=!1,portalProps:p,containerComponent:h=v.Fragment}=e,m=L(),g=em(e),[b,y]=(0,v.useState)(null),w=function(e,t,n={}){let r=v.useRef(null),o=v.useRef(null),[i,l]=(0,v.useState)(0),[a,u]=(0,v.useState)(0),s=e.snapPointsMode??"percent",c=e.snapPoints??("percent"===s?[80]:"constant"===s?[256]:["fit"]),d="fit"===c[0],f=(0,v.useMemo)(()=>e.dismissOnSnapToBottom?[...c,0]:c,[JSON.stringify(c),e.dismissOnSnapToBottom]),[p,h]=(0,ep.T)({prop:e.position,defaultProp:e.defaultPosition||(t.open?0:-1),onChange:e.onPositionChange,strategy:"most-recent-wins",transition:!0}),m=!1===t.open?-1:p,{open:g}=t,b=(0,v.useCallback)(n=>{e.dismissOnSnapToBottom&&n===f.length-1?t.setOpen(!1):h(n)},[e.dismissOnSnapToBottom,f.length,h,t.setOpen]);g&&e.dismissOnSnapToBottom&&m===f.length-1&&h(0);let y=g&&m<0;(0,v.useEffect)(()=>{y&&b(0)},[b,y]);let{animationDriver:S}=T();if(!S)throw Error("Must set animations in tamagui.config.ts");let w=(0,ev.h)(()=>({enabled:!1,y:0,paneY:0,paneMinY:0,scrollStartY:-1,drag:()=>{},release:()=>{},scrollLock:!1})),x=e.forceRemoveScrollEnabled??(g&&e.modal),R=f[0];return{screenSize:"percent"===s?i/(("number"==typeof R?R:100)/100):a,maxSnapPoint:R,removeScrollEnabled:x,scrollBridge:w,modal:!!e.modal,open:t.open,setOpen:t.setOpen,hidden:!!t.isHidden,contentRef:o,handleRef:r,frameSize:i,setFrameSize:l,dismissOnOverlayPress:e.dismissOnOverlayPress??!0,dismissOnSnapToBottom:e.dismissOnSnapToBottom??!1,onOverlayComponent:n.onOverlayComponent,scope:e.__scopeSheet,hasFit:d,position:m,snapPoints:f,snapPointsMode:s,setMaxContentSize:u,setPosition:b,setPositionImmediate:h,onlyShowFrame:!1}}(e,g,{onOverlayComponent:y}),{frameSize:E,setFrameSize:C,snapPoints:D,snapPointsMode:B,hasFit:W,position:N,setPosition:z,scrollBridge:j,screenSize:H,setMaxContentSize:F,maxSnapPoint:_}=w,{open:Z,controller:V,isHidden:$}=g,K=(0,v.useRef)(null),U=(0,d.ex)(t,K),Y=(()=>{let[e,t]=r?Array.isArray(r)?r:[r]:[];return o??(e?{...(0,k.iE)().animations.animations[e],...t}:null)})(),[X,q]=(0,v.useState)(!1),G=!l.$L&&i&&X,J=(0,v.useContext)(ed),Q=(0,v.useCallback)(e=>{q(e)},[]),ee=(0,v.useMemo)(()=>D.map(e=>(function(e,t,n,r){if(!n||!r)return 0;if("mixed"===e){if("number"==typeof t)return n-Math.min(n,Math.max(0,t));if("fit"===t)return n-Math.min(n,r);if(t.endsWith("%")){let e=Math.min(100,Math.max(0,Number(t.slice(0,-1))))/100;return Number.isNaN(e)?(console.warn("Invalid snapPoint percentage string"),0):Math.round(n-e*n)}return console.warn("Invalid snapPoint unknown value"),0}if("fit"===e)return 0===t?n:n-Math.min(n,r);if("constant"===e&&"number"==typeof t)return n-Math.min(n,Math.max(0,t));let o=Math.min(100,Math.max(0,Number(t)))/100;return Number.isNaN(o)?(console.warn("Invalid snapPoint percentage"),0):Math.round(n-o*n)})(B,e,H,E)),[H,E,D,B]),{animationDriver:et}=T(),{useAnimatedNumber:en,useAnimatedNumberStyle:er,useAnimatedNumberReaction:eo}=et,el=et.View??f.Kq;(0,l.LI)(()=>{if(J&&Z)return J(!0),()=>{J(!1)}},[J,Z]);let ea=(0,v.useMemo)(()=>({zIndex:a}),[a]),eh=en(10000.1),eb=(0,v.useRef)(10000.1);function ey(){eh.stop(),j.onFinishAnimate&&(j.onFinishAnimate(),j.onFinishAnimate=void 0)}eo({value:eh,hostRef:K},(0,v.useCallback)(e=>{eb.current=e,j.paneY=e},[et]));let eS=10000.1===eb.current,ew=(0,O.z)(e=>{if(0===E)return;let t=$||-1===e?H:ee[e];if(eb.current!==t){if(eb.current=t,ey(),eS||$){eh.setValue(H,{type:"timing",duration:0},()=>{$||(t=ee[e],eb.current=t,eh.setValue(t,{type:"spring",...Y}))});return}eh.setValue(t,{type:"spring",...Y})}});(0,l.LI)(()=>{H&&eS&&eh.setValue(H,{type:"timing",duration:0})},[eS,H]),(0,l.LI)(()=>{E&&H&&!$&&(!eS||Z)&&ew(N)},[$,E,H,Z,N]);let ex=e.disableDrag??V?.disableDrag,eR=(0,M.C)(),[eE,ek]=(0,v.useState)(!1),eC=(0,v.useMemo)(()=>{if(ex||!E||X)return;let e=ee[0];j.paneMinY=e;let t=eb.current;function n(e){ek(e),c&&(e?c.innerText=":root * { user-select: none !important; -webkit-user-select: none !important; }":c.innerText="")}let r=({vy:e,dragAt:r})=>{a=!1,n(!1);let o=r+t+E*e*.2,i=0,l=1/0;for(let e=0;et?o-t:t-o;n{r({vy:t.vy,dragAt:t.dy})},i=()=>{n(!0),ey(),t=eb.current},a=!1;return j.drag=n=>{a||(a=!0,i());let r=n+t;eh.setValue(ef(r,e),{type:"direct"})},j.release=r,ei.create({onMoveShouldSetPanResponder:(e,{dy:t})=>{if(e.target===w.handleRef.current)return!0;let n=0!==j.y,r=j.paneY-5<=j.paneMinY;return!n&&(!r||!!n||!(t<0)||!!l.$L)&&Math.abs(t)>5},onPanResponderGrant:i,onPanResponderMove:(n,{dy:r})=>{let o=ef(r+t,e);eh.setValue(o,{type:"direct"})},onPanResponderEnd:o,onPanResponderTerminate:o,onPanResponderRelease:o})},[ex,X,ew,E,ee,z]),eT=(0,v.useCallback)(e=>{let t=Math.min(e.nativeEvent?.layout.height,eu.Z.get("window").height);t&&C(t)},[m]),eO=(0,v.useCallback)(e=>{let t=Math.min(e.nativeEvent?.layout.height,eu.Z.get("window").height);t&&F(t)},[m]),eM=er(eh,e=>({transform:[{translateY:0===E?10000.1:e}]})),eA=(0,v.useRef)(null);(0,v.useEffect)(()=>{if(l.$L||!u)return;let e=I.Z.addListener("keyboardDidShow",e=>{null===eA.current&&(eA.current=eh.getValue(),eh.setValue(Math.max(eh.getValue()-e.endCoordinates.height,0)))}),t=I.Z.addListener("keyboardDidHide",()=>{null!==eA.current&&(eh.setValue(eA.current),eA.current=null)});return()=>{t.remove(),e.remove()}},[u]);let[eP,eI]=(0,v.useState)(Z?1:0);Z&&0===eP&&eI(1),(0,v.useEffect)(()=>{if(!Z){let e=setTimeout(()=>{eI(0)},400);return()=>{clearTimeout(e)}}},[Z]);let eL=W?void 0:"percent"===B?`${_}${l.$L?"dvh":"%"}`:_,eD=(0,eg.jsx)(ec.Provider,{value:ea,children:(0,eg.jsxs)(S,{...w,children:[(0,eg.jsx)(R.M,{custom:{open:Z},children:G||!Z?null:b}),"percent"!==B&&(0,eg.jsx)(es.Z,{style:{opacity:0,position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none"},onLayout:eO}),(0,eg.jsx)(el,{ref:U,...eC?.panHandlers,onLayout:eT,...!eE&&{animation:r},disableClassName:!0,style:[{position:"absolute",zIndex:a,width:"100%",height:eL,minHeight:eL,opacity:eP,...(G||!Z)&&{pointerEvents:"none"}},eM],children:e.children})]})}),eB=(0,v.useContext)(x.fG);if(i){let e=(0,eg.jsx)(P.h_,{zIndex:a,...p,children:!!(eP||!s)&&(0,eg.jsx)(h,{children:(0,eg.jsx)(A.Q,{forceClassName:!0,name:eR,children:(0,eg.jsx)(x.fG.Provider,{value:eB,children:eD})})})});return l.$L?e:(0,eg.jsx)(ed.Provider,{value:Q,children:e})}return eD}));var ey=n(5295);let eS=(0,v.forwardRef)(({__scopeSheet:e,children:t,onScroll:n,...r},o)=>{let{scrollBridge:i}=w("SheetScrollView",e),l=(0,v.useRef)(null),a=(0,v.useRef)({lastPageY:0,dragAt:0,dys:[],isScrolling:!1,isDragging:!1});return(0,eg.jsx)(ey.p,{ref:(0,d.FE)(l,o),flex:1,scrollEventThrottle:8,onScroll:e=>{let{y:t}=e.nativeEvent.contentOffset;i.y=t,t>0&&(i.scrollStartY=-1),n?.(e)},onStartShouldSetResponder:()=>(i.scrollStartY=-1,a.current.isDragging=!0,!0),onMoveShouldSetResponder:()=>!1,onResponderRelease:()=>{if(!a.current.isDragging)return;a.current.isDragging=!1,i.scrollStartY=-1,a.current.isScrolling=!1;let e=0;if(a.current.dys.length){let t=a.current.dys.slice(-10);e=(t.length?t.reduce((e,t)=>e+t,0):0)/t.length*.04}a.current.dys=[],i.release({dragAt:a.current.dragAt,vy:e})},className:"_ovs-contain",...r,children:(0,v.useMemo)(()=>t,[t])})}),ew=({snapPoints:e,position:t,screenSize:n,frameSize:r,snapPointsMode:o})=>{if("fit"===o)return 0;if("constant"===o)return Number(e[0])-Number(e[t]??0);if("percent"===o)return(Number(e[0])/100-Number(e[t]??0)/100)*n;let i=e[0];if("fit"===i)return 0;let l="string"==typeof i?Number(i.slice(0,-1))/100*n:i,a=e[t]??0,u=l-("string"==typeof a?Number(a.slice(0,-1))/100*n:a);return Number.isNaN(u)?0:u};var ex=n(357);let eR=(0,r.z)(o.sL,{name:u,variants:{open:{true:{pointerEvents:"auto"},false:{opacity:0,pointerEvents:"none"}},unstyled:{false:{height:10,borderRadius:100,backgroundColor:"$background",zIndex:10,marginHorizontal:"35%",marginBottom:"$2",opacity:.5,hoverStyle:{opacity:.7}}}},defaultVariants:{unstyled:"1"===ex.env.TAMAGUI_HEADLESS}}),eE=(0,r.z)(i.K,{name:s,variants:{open:{true:{opacity:1,pointerEvents:"auto"},false:{opacity:0,pointerEvents:"none"}},unstyled:{false:{fullscreen:!0,position:"absolute",backgrounded:!0,zIndex:99999,pointerEvents:"auto"}}},defaultVariants:{unstyled:"1"===ex.env.TAMAGUI_HEADLESS}}),ek=function({Handle:e,Frame:t,Overlay:n}){let r=e.styleable(({__scopeSheet:t,...n},r)=>{let o=w(u,t),i=(0,d.ex)(o.handleRef,r);return o.onlyShowFrame?null:(0,eg.jsx)(e,{ref:i,onPress:()=>{let e=o.snapPoints.length+(o.dismissOnSnapToBottom?-1:0),t=(o.position+1)%e;o.setPosition(t)},open:o.open,...n})}),o=n.extractable((0,v.memo)(e=>{let{__scopeSheet:t,...r}=e,o=w(s,t),i=(0,v.useMemo)(()=>(0,eg.jsx)(n,{...r,onPress:(0,p.Mj)(r.onPress,o.dismissOnOverlayPress?()=>{o.setOpen(!1)}:void 0)}),[r.onPress,o.dismissOnOverlayPress]);return(0,l.LI)(()=>{o.onOverlayComponent?.(i)},[i]),o.onlyShowFrame,null})),i=t.extractable((0,v.forwardRef)(({__scopeSheet:e,adjustPaddingForOffscreenContent:n,disableHideBottomOverflow:r,children:o,...i},l)=>{let u=w(a,e),{hasFit:s,removeScrollEnabled:c,frameSize:p,contentRef:m,open:g}=u,b=(0,d.ex)(l,m),y=ew(u),S=(0,v.useMemo)(()=>(0,eg.jsxs)(t,{ref:b,flex:s?0:1,height:s?void 0:p,pointerEvents:g?"auto":"none",...i,children:[o,n&&(0,eg.jsx)(f.Kq,{"data-sheet-offscreen-pad":!0,height:y,width:"100%"})]}),[g,i,p,y,n,s]);return(0,eg.jsxs)(eg.Fragment,{children:[(0,eg.jsx)(h.f,{forwardProps:!0,enabled:c,allowPinchZoom:!0,shards:[m],removeScrollBar:!1,children:S}),!r&&(0,eg.jsx)(t,{...i,componentName:"SheetCover",children:null,position:"absolute",bottom:"-100%",zIndex:-1,height:u.frameSize,left:0,right:0,borderWidth:0,borderRadius:0,shadowOpacity:0})]})})),c=(0,v.forwardRef)(function(e,t){let n=(0,m.S)(),{isShowingNonSheet:r}=(0,eh.$)();return e.native&&g.Z.OS,r||!n?null:(0,eg.jsx)(eb,{ref:t,...e})}),b={Frame:i,Overlay:o,Handle:r,ScrollView:eS},y=(0,p.$e)(c,b);return(0,p.$e)(c,{...b,Controlled:y})}({Frame:(0,r.z)(o.FA,{name:a,variants:{unstyled:{false:{flex:1,backgroundColor:"$background",borderTopLeftRadius:"$true",borderTopRightRadius:"$true",width:"100%",maxHeight:"100%",overflow:"hidden"}}},defaultVariants:{unstyled:"1"===ex.env.TAMAGUI_HEADLESS}}),Handle:eR,Overlay:eE})},4077:function(e,t,n){"use strict";n.d(t,{f:function(){return a}});var r=n(9087),o=n(2265),i=n(7657),l=n(2281);let a=({children:e,onOpenChange:t,...n})=>{let a=(0,r.z)(t),u=(0,o.useMemo)(()=>({open:n.open,hidden:n.hidden,disableDrag:n.disableDrag,onOpenChange:a}),[a,n.open,n.hidden,n.disableDrag]);return(0,l.jsx)(i.W.Provider,{value:u,children:e})}},7657:function(e,t,n){"use strict";n.d(t,{$:function(){return o},W:function(){return i}});var r=n(2265);let o=()=>{let e=(0,r.useContext)(i),t=e?.hidden,n=t&&e?.open;return{controller:e,isHidden:t,isShowingNonSheet:n,disableDrag:e?.disableDrag}},i=(0,r.createContext)(null)},1092:function(e,t,n){"use strict";n.d(t,{K:function(){return s}});var r=n(4975),o=n(5377),i=n(8587);let l={borderRadius:1e5,padding:0},a={backgroundColor:"transparent",borderColor:"transparent",shadowColor:"transparent",hoverStyle:{borderColor:"transparent"}},u={backgrounded:{true:{backgroundColor:"$background"}},radiused:{true:(e,t)=>{let{tokens:n,props:r}=t;return{borderRadius:n.radius[r.size]||n.radius.$true}}},hoverTheme:{true:{hoverStyle:{backgroundColor:"$backgroundHover",borderColor:"$borderColorHover"}},false:{}},pressTheme:{true:{cursor:"pointer",pressStyle:{backgroundColor:"$backgroundPress",borderColor:"$borderColorPress"}},false:{}},focusTheme:{true:{focusStyle:{backgroundColor:"$backgroundFocus",borderColor:"$borderColorFocus"}},false:{}},circular:{true:(e,{props:t,tokens:n})=>{if(!("size"in t))return l;let r="number"==typeof t.size?t.size:n.size[t.size];return{...l,width:r,height:r,maxWidth:r,maxHeight:r,minWidth:r,minHeight:r}}},padded:{true:(e,t)=>{let{tokens:n,props:r}=t;return{padding:n.space[r.size]||n.space.$true}}},elevate:{true:(e,t)=>(0,i.y)(t.props.size,t)},bordered:(e,{props:t})=>({borderWidth:"number"==typeof e?e:1,borderColor:"$borderColor",...t.hoverTheme&&{hoverStyle:{borderColor:"$borderColorHover"}},...t.pressTheme&&{pressStyle:{borderColor:"$borderColorPress"}},...t.focusTheme&&{focusStyle:{borderColor:"$borderColorFocus"}}}),transparent:{true:{backgroundColor:"transparent"}},chromeless:{true:a,all:{...a,hoverStyle:a,pressStyle:a,focusStyle:a}}},s=(0,r.z)(o.FA,{variants:u})},1217:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(4975),o=n(2026);let i=(0,r.z)(o.J,{name:"Paragraph",tag:"p",userSelect:"auto",color:"$color",size:"$true",whiteSpace:"normal"})},2026:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});var r=n(8970),o=n(4975),i=n(8475),l=n(357);let a=(0,o.z)(i.x,{name:"SizableText",fontFamily:"$body",variants:{unstyled:{false:{size:"$true",color:"$color"}},size:r.H},defaultVariants:{unstyled:"1"===l.env.TAMAGUI_HEADLESS}});a.staticConfig.variants.fontFamily={"...":(e,t)=>{let n=t.props.size||"$true";return(0,r.H)(n,t)}}},2875:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(2265),o=n(2281);function i(e,t,n){let{children:i,textProps:l,size:a,noTextWrap:u,color:s,fontFamily:c,fontSize:d,fontWeight:f,letterSpacing:p,textAlign:h,fontStyle:m,maxFontSizeMultiplier:v}=t;if(u||!i)return[i];let g={...n};return s&&(g.color=s),c&&(g.fontFamily=c),d&&(g.fontSize=d),f&&(g.fontWeight=f),p&&(g.letterSpacing=p),h&&(g.textAlign=h),a&&(g.size=a),m&&(g.fontStyle=m),v&&(g.maxFontSizeMultiplier=v),r.Children.toArray(i).map((t,n)=>"string"==typeof t?(0,o.jsx)(e,{...g,...l,children:t},n):t)}},3020:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(2265);function o(e){if(typeof document>"u")return(0,r.useMemo)(()=>e(),[]);let t=(0,r.useRef)();return t.current||(t.current={v:e()}),t.current.v}},3277:function(e,t,n){"use strict";n.d(t,{T:function(){return l}});var r=n(9087),o=n(2265);let i=e=>e();function l({prop:e,defaultProp:t,onChange:n,strategy:l="prop-wins",preventUpdate:u,transition:s}){let[c,d]=(0,o.useState)(e??t),f=(0,o.useRef)(c),p="prop-wins"===l&&void 0!==e,h=p?e:c,m=(0,r.z)(n||a),v=s?o.startTransition:i;return(0,o.useEffect)(()=>{void 0!==e&&(f.current=e,v(()=>{d(e)}))},[e]),(0,o.useEffect)(()=>{p||c!==f.current&&(f.current=c,m(c))},[m,c,p]),[h,(0,r.z)(e=>{u||(p?m("function"==typeof e?e(f.current):e):v(()=>{d(e)}))})]}let a=()=>{}},1386:function(e,t,n){"use strict";n.d(t,{Lb:function(){return f},wN:function(){return d}});var r=n(2265),o=n(5986),i=n(7562),l=n(9100),a=n(8075),u=n(5566),s=n(9097),c=n(8411);function d(e,t){let[n,r]=f(e,{...t,noExpand:!0,noNormalize:!0,resolveValues:"none"});return{...n,...r}}function f(e,t){let n=t?.forComponent?.staticConfig??u.K.staticConfig,[d,f]=(0,c.WU)({componentName:n.componentName}),p=(0,r.useContext)(i.s),{state:h,disabled:m,setStateShallow:v}=(0,l.Ee)(e,p,n,(0,o.iE)()),g=(0,s.GS)(),b=(0,a.DP)(e,n,f,d.state?.name||"",h,{isAnimated:!1,mediaState:g,noSkip:!0,noMergeStyle:!0,noClassNames:!0,resolveValues:"auto",...t},null,p),{mediaGroups:y,pseudoGroups:S}=b;return(0,r.useEffect)(()=>{if(!m){if(h.unmounted){v({unmounted:!1});return}return(0,l.En)({disabled:m,componentContext:p,setStateShallow:v,state:h,mediaGroups:y,pseudoGroups:S})}},[m,S?Object.keys([...S]).join(""):0,y?Object.keys([...y]).join(""):0]),[b.viewProps,b.style||{},f,g]}},4582:function(e,t,n){"use strict";n.d(t,{C:function(){return a}});var r=n(281),o=n(2265),i=n(9033),l=n(8411);function a(e){let t=(0,l.q4)((0,o.useContext)(i.s)),[n,a]=(0,o.useState)(t?.state.name||"");return(0,r.LI)(()=>{if(t)return a(t.state.name),t.onChangeTheme((t,n)=>{let r=e?.parent&&n.state.parentName||t;r&&a(r)})},[t?.state.name]),n}}}]); \ No newline at end of file diff --git a/_next/static/chunks/466-f54fd63f687cc06e.js b/_next/static/chunks/466-f54fd63f687cc06e.js new file mode 100644 index 0000000000000000000000000000000000000000..b514609c4836ad690bbcc88581f1806cef26a9c6 --- /dev/null +++ b/_next/static/chunks/466-f54fd63f687cc06e.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[466],{5554:function(e){"use strict";let t;function n(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function r(e,t,r){let o=r<.5?r*(1+t):r+t-r*t,i=2*r-o;return Math.round(255*n(i,o,e+1/3))<<24|Math.round(255*n(i,o,e))<<16|Math.round(255*n(i,o,e-1/3))<<8}let o="[-+]?\\d*\\.?\\d+",i=o+"%";function l(...e){return"\\(\\s*("+e.join(")\\s*,?\\s*(")+")\\s*\\)"}function a(...e){return"\\(\\s*("+e.slice(0,e.length-1).join(")\\s*,?\\s*(")+")\\s*/\\s*("+e[e.length-1]+")\\s*\\)"}function u(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}function s(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function c(e){return(parseFloat(e)%360+360)%360/360}function d(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function f(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}e.exports=function(e){let p;if("number"==typeof e)return e>>>0===e&&e>=0&&e<=4294967295?e:null;if("string"!=typeof e)return null;let h=(void 0===t&&(t={rgb:RegExp("rgb"+l(o,o,o)),rgba:RegExp("rgba("+u(o,o,o,o)+"|"+a(o,o,o,o)+")"),hsl:RegExp("hsl"+l(o,i,i)),hsla:RegExp("hsla("+u(o,i,i,o)+"|"+a(o,i,i,o)+")"),hwb:RegExp("hwb"+l(o,i,i)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),t);if(p=h.hex6.exec(e))return parseInt(p[1]+"ff",16)>>>0;let m=function(e){switch(e){case"transparent":return 0;case"aliceblue":return 4042850303;case"antiquewhite":return 4209760255;case"aqua":case"cyan":return 16777215;case"aquamarine":return 2147472639;case"azure":return 4043309055;case"beige":return 4126530815;case"bisque":return 4293182719;case"black":return 255;case"blanchedalmond":return 4293643775;case"blue":return 65535;case"blueviolet":return 2318131967;case"brown":return 2771004159;case"burlywood":return 3736635391;case"burntsienna":return 3934150143;case"cadetblue":return 1604231423;case"chartreuse":return 2147418367;case"chocolate":return 3530104575;case"coral":return 4286533887;case"cornflowerblue":return 1687547391;case"cornsilk":return 4294499583;case"crimson":return 3692313855;case"darkblue":return 35839;case"darkcyan":return 9145343;case"darkgoldenrod":return 3095792639;case"darkgray":case"darkgrey":return 2846468607;case"darkgreen":return 6553855;case"darkkhaki":return 3182914559;case"darkmagenta":return 2332068863;case"darkolivegreen":return 1433087999;case"darkorange":return 4287365375;case"darkorchid":return 2570243327;case"darkred":return 2332033279;case"darksalmon":return 3918953215;case"darkseagreen":return 2411499519;case"darkslateblue":return 1211993087;case"darkslategray":case"darkslategrey":return 793726975;case"darkturquoise":return 13554175;case"darkviolet":return 2483082239;case"deeppink":return 4279538687;case"deepskyblue":return 12582911;case"dimgray":case"dimgrey":return 1768516095;case"dodgerblue":return 512819199;case"firebrick":return 2988581631;case"floralwhite":return 4294635775;case"forestgreen":return 579543807;case"fuchsia":case"magenta":return 4278255615;case"gainsboro":return 3705462015;case"ghostwhite":return 4177068031;case"gold":return 4292280575;case"goldenrod":return 3668254975;case"gray":case"grey":return 2155905279;case"green":return 8388863;case"greenyellow":return 2919182335;case"honeydew":return 4043305215;case"hotpink":return 4285117695;case"indianred":return 3445382399;case"indigo":return 1258324735;case"ivory":return 4294963455;case"khaki":return 4041641215;case"lavender":return 3873897215;case"lavenderblush":return 4293981695;case"lawngreen":return 2096890111;case"lemonchiffon":return 4294626815;case"lightblue":return 2916673279;case"lightcoral":return 4034953471;case"lightcyan":return 3774873599;case"lightgoldenrodyellow":return 4210742015;case"lightgray":case"lightgrey":return 3553874943;case"lightgreen":return 2431553791;case"lightpink":return 4290167295;case"lightsalmon":return 4288707327;case"lightseagreen":return 548580095;case"lightskyblue":return 2278488831;case"lightslategray":case"lightslategrey":return 2005441023;case"lightsteelblue":return 2965692159;case"lightyellow":return 4294959359;case"lime":return 16711935;case"limegreen":return 852308735;case"linen":return 4210091775;case"maroon":return 2147483903;case"mediumaquamarine":return 1724754687;case"mediumblue":return 52735;case"mediumorchid":return 3126187007;case"mediumpurple":return 2473647103;case"mediumseagreen":return 1018393087;case"mediumslateblue":return 2070474495;case"mediumspringgreen":return 16423679;case"mediumturquoise":return 1221709055;case"mediumvioletred":return 3340076543;case"midnightblue":return 421097727;case"mintcream":return 4127193855;case"mistyrose":return 4293190143;case"moccasin":return 4293178879;case"navajowhite":return 4292783615;case"navy":return 33023;case"oldlace":return 4260751103;case"olive":return 2155872511;case"olivedrab":return 1804477439;case"orange":return 4289003775;case"orangered":return 4282712319;case"orchid":return 3664828159;case"palegoldenrod":return 4008225535;case"palegreen":return 2566625535;case"paleturquoise":return 2951671551;case"palevioletred":return 3681588223;case"papayawhip":return 4293907967;case"peachpuff":return 4292524543;case"peru":return 3448061951;case"pink":return 4290825215;case"plum":return 3718307327;case"powderblue":return 2967529215;case"purple":return 2147516671;case"rebeccapurple":return 1714657791;case"red":return 4278190335;case"rosybrown":return 3163525119;case"royalblue":return 1097458175;case"saddlebrown":return 2336560127;case"salmon":return 4202722047;case"sandybrown":return 4104413439;case"seagreen":return 780883967;case"seashell":return 4294307583;case"sienna":return 2689740287;case"silver":return 3233857791;case"skyblue":return 2278484991;case"slateblue":return 1784335871;case"slategray":case"slategrey":return 1887473919;case"snow":return 4294638335;case"springgreen":return 16744447;case"steelblue":return 1182971135;case"tan":return 3535047935;case"teal":return 8421631;case"thistle":return 3636451583;case"tomato":return 4284696575;case"turquoise":return 1088475391;case"violet":return 4001558271;case"wheat":return 4125012991;case"white":return 4294967295;case"whitesmoke":return 4126537215;case"yellow":return 4294902015;case"yellowgreen":return 2597139199}return null}(e);return null!=m?m:(p=h.rgb.exec(e))?(s(p[1])<<24|s(p[2])<<16|s(p[3])<<8|255)>>>0:(p=h.rgba.exec(e))?void 0!==p[6]?(s(p[6])<<24|s(p[7])<<16|s(p[8])<<8|d(p[9]))>>>0:(s(p[2])<<24|s(p[3])<<16|s(p[4])<<8|d(p[5]))>>>0:(p=h.hex3.exec(e))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+"ff",16)>>>0:(p=h.hex8.exec(e))?parseInt(p[1],16)>>>0:(p=h.hex4.exec(e))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+p[4]+p[4],16)>>>0:(p=h.hsl.exec(e))?(255|r(c(p[1]),f(p[2]),f(p[3])))>>>0:(p=h.hsla.exec(e))?void 0!==p[6]?(r(c(p[6]),f(p[7]),f(p[8]))|d(p[9]))>>>0:(r(c(p[2]),f(p[3]),f(p[4]))|d(p[5]))>>>0:(p=h.hwb.exec(e))?(255|function(e,t,r){if(t+r>=1){let e=Math.round(255*t/(t+r));return e<<24|e<<16|e<<8}return Math.round(255*(n(0,1,e+1/3)*(1-t-r)+t))<<24|Math.round(255*(n(0,1,e)*(1-t-r)+t))<<16|Math.round(255*(n(0,1,e-1/3)*(1-t-r)+t))<<8}(c(p[1]),f(p[2]),f(p[3])))>>>0:null}},7470:function(e,t,n){"use strict";n.d(t,{H:function(){return c}});var r=n(1386),o=n(2166),i=n(2202),l=n(5986),a=n(2265),u=n(2281),s=n(357);function c(e,t={defaultThemeColor:s.env.DEFAULT_ICON_THEME_COLOR||"$color",defaultStrokeWidth:2,fallbackColor:"#000"}){return n=>{let[a,s,c]=(0,r.Lb)(n,{...t,forComponent:o.xv,resolveValues:"web"}),d=s.color??t.defaultThemeColor,f=(0,i.E0)((d?c[d]:void 0)||s.color||(a.disableTheme?null:c.color)||t.fallbackColor),p="string"==typeof a.size?(0,l.Wi)(a.size,"size"):a.size,h="string"==typeof a.strokeWidth?(0,l.Wi)(a.strokeWidth,"size"):a.strokeWidth??`${t.defaultStrokeWidth}`;return(0,u.jsx)(e,{...a,color:f,size:p,strokeWidth:h,style:s})}}a.keep},3085:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2?o-2:0),l=2;l0&&(a[u]=c)}else{var h=(0,o.default)(n,u,s,a,t);h&&(a[u]=h),a=(0,r.default)(t,u,a)}}return a}};var r=a(n(9886)),o=a(n(6054)),i=a(n(2065)),l=a(n(22));function a(e){return e&&e.__esModule?e:{default:e}}},1677:function(e,t){"use strict";t.Z=function(){return null}},9699:function(e,t,n){"use strict";t.Z=function(e,t){if("string"==typeof t&&!(0,r.isPrefixedValue)(t)&&-1!==t.indexOf("cross-fade("))return i.map(function(e){return t.replace(o,e+"cross-fade(")})};var r=n(3085),o=/cross-fade\(/g,i=["-webkit-",""]},5019:function(e,t){"use strict";t.Z=function(e,t){if("cursor"===e&&r.hasOwnProperty(t))return n.map(function(e){return e+t})};var n=["-webkit-","-moz-",""],r={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0}},8527:function(e,t,n){"use strict";t.Z=function(e,t){if("string"==typeof t&&!(0,r.isPrefixedValue)(t)&&-1!==t.indexOf("filter("))return i.map(function(e){return t.replace(o,e+"filter(")})};var r=n(3085),o=/filter\(/g,i=["-webkit-",""]},9779:function(e,t,n){"use strict";t.Z=function(e,t){if("string"==typeof t&&!(0,o.default)(t)&&t.indexOf("image-set(")>-1)return i.map(function(e){return t.replace(/image-set\(/g,e+"image-set(")})};var r,o=(r=n(2702))&&r.__esModule?r:{default:r},i=["-webkit-",""]},2316:function(e,t){"use strict";t.Z=function(e,t,r){if(Object.prototype.hasOwnProperty.call(n,e))for(var o=n[e],i=0,l=o.length;i-1&&"order"!==d)for(var f=t[c],p=0,h=f.length;p-1)return c;var d=s.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(",");return e.indexOf("Moz")>-1?d:(n["Webkit"+(0,i.default)(e)]=c,n["Moz"+(0,i.default)(e)]=d,s)}};var r=l(n(1442)),o=l(n(2702)),i=l(n(8937));function l(e){return e&&e.__esModule?e:{default:e}}var a={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},u={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"}},2065:function(e,t){"use strict";function n(e,t){-1===e.indexOf(t)&&e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(Array.isArray(t))for(var r=0,o=t.length;rv[e]),y=g.length;var S=e=>{for(let t=0;te.onPress||e.onPressIn||e.onPressOut||e.onLongPress,R=e=>e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase());function E(e){let t=[];return null!=e.translate&&t.push(`translate(${e.translate})`),(null!=e.translateX||null!=e.translateY)&&t.push(`translate(${e.translateX||0}, ${e.translateY||0})`),null!=e.scale&&t.push(`scale(${e.scale})`),(null!=e.scaleX||null!=e.scaleY)&&t.push(`scale(${e.scaleX||1}, ${e.scaleY||1})`),null!=e.rotation&&t.push(`rotate(${e.rotation})`),null!=e.skewX&&t.push(`skewX(${e.skewX})`),null!=e.skewY&&t.push(`skewY(${e.skewY})`),t}function k(e,t){let n=[];if(t&&n.push(...E(t)),Array.isArray(e)){if("number"==typeof e[0])n.push(`matrix(${e.join(" ")})`);else{let t=function(e){let t={};return null==e||e.forEach(e=>{let n=Object.keys(e);1!==n.length&&console.error("You must specify exactly one property per transform object.");let r=n[0],o=e[r];t[r]=o}),t}(e);n.push(...E(t))}}else"string"==typeof e&&n.push(e);return n.length?n.join(" "):void 0}let C=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.props,{transform:n,origin:r,originX:o,originY:i,fontFamily:l,fontSize:a,fontWeight:u,fontStyle:s,style:c,forwardedRef:d,gradientTransform:f,patternTransform:p,...h}=t,m={...x(t)?{onStartShouldSetResponder:e.touchableHandleStartShouldSetResponder,onResponderTerminationRequest:e.touchableHandleResponderTerminationRequest,onResponderGrant:e.touchableHandleResponderGrant,onResponderMove:e.touchableHandleResponderMove,onResponderRelease:e.touchableHandleResponderRelease,onResponderTerminate:e.touchableHandleResponderTerminate}:null,...h};null!=r?m["transform-origin"]=r.toString().replace(","," "):(null!=o||null!=i)&&(m["transform-origin"]=`${o||0} ${i||0}`);let v=k(n,t);v&&(m.transform=v);let g=k(f);g&&(m.gradientTransform=g);let b=k(p);b&&(m.patternTransform=b),m.ref=t=>{e.elementRef.current=t,"function"==typeof d?d(t):d&&(d.current=t)};let y={};return null!=l&&(y.fontFamily=l),null!=a&&(y.fontSize=a),null!=u&&(y.fontWeight=u),null!=s&&(y.fontStyle=s),m.style=c?w.Z?[c,y]:c[Symbol.iterator]?Object.assign({},...c,y):Object.assign({},c,y):y,m},T=e=>{if(e&&1===e.nodeType&&"function"==typeof e.getBoundingClientRect)return e.getBoundingClientRect();throw Error("Can not get boundingClientRect of "+e)},O=(e,t)=>{let n=null==e?void 0:e.parentNode;n&&setTimeout(()=>{let r=T(n),{height:o,left:i,top:l,width:a}=T(e);t(i-r.left,l-r.top,a,o,i,l)},0)};function M(){let e=this.state.touchable.responderID;null!==e&&O(e,this._handleQueryLayout)}class A extends r.Component{prepareProps(e){return e}elementRef=r.createRef();lastMergedProps={};setNativeProps(e){let t=Object.assign({},this.props,this.lastMergedProps,e.style);this.lastMergedProps=t;let n=C(this,this.prepareProps(t)),r=this.elementRef.current;if(r)for(let e of Object.keys(n)){let t=n[e];switch(e){case"ref":case"children":break;case"style":for(let e of[].concat(n.style??[]))Object.assign(r.style,e);break;default:r.setAttribute(R(e),t)}}}constructor(e){super(e),x(e)&&S(this),this._remeasureMetricsOnActivation=M.bind(this)}render(){if(!this.tag)throw Error("When extending `WebShape` you need to overwrite either `tag` or `render`!");return this.lastMergedProps={},(0,o.Z)(this.tag,C(this,this.prepareProps(this.props)))}}class P extends A{tag="circle"}class I extends A{tag="line"}class L extends A{tag="path"}class D extends A{tag="rect"}class B extends A{tag="svg";toDataURL(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.elementRef.current;if(null===r)return;let o=T(r),i=Number(n.width)||o.width,l=Number(n.height)||o.height,a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttribute("viewBox",`0 0 ${o.width} ${o.height}`),a.setAttribute("width",String(i)),a.setAttribute("height",String(l)),a.appendChild(r.cloneNode(!0));let u=new window.Image;u.onload=()=>{let t=document.createElement("canvas");t.width=i,t.height=l;let n=t.getContext("2d");null==n||n.drawImage(u,0,0),e(t.toDataURL().replace("data:image/png;base64,",""))},u.src=`data:image/svg+xml;utf8,${(t=new window.XMLSerializer().serializeToString(a)).replace("/g,"%3E").replace(/\s+/g," ")}`}}},7873:function(e){"use strict";function t(e,n,r,o){this.message=e,this.expected=n,this.found=r,this.location=o,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t)}!function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(t,Error),t.buildMessage=function(e,t){var n={literal:function(e){return'"'+o(e.text)+'"'},class:function(e){var t,n="";for(t=0;t0){for(r=1,o=1;rZ&&(Z=F,V=[]),V.push(e))}function q(){var e,t,n,r,o;for(e=F,t=[],n=el();n!==d;)t.push(n),n=el();if(t!==d){if((n=function e(){var t,n,r,o,i,l,a,u,s,c,f,p,h,m,v,g,b,y;if(t=F,(n=G())!==d){for(r=[],o=ee();o!==d;)r.push(o),o=ee();r!==d&&(o=e())!==d?(i=n,l=o,a=i[0],u=i[1],s=i[2],c=i[3],f=i[4],p=i[5],h=l[0],m=l[1],v=l[2],g=l[3],t=n=[a*h+u*g,a*m+u*(b=l[4]),a*v+u*(y=l[5])+s,c*h+f*g,c*m+f*b,c*v+f*y+p]):(F=t,t=d)}else F=t,t=d;return t===d&&(t=G()),t}())===d&&(n=null),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();r!==d?e=t=n:(F=e,e=d)}else F=e,e=d}else F=e,e=d;return e}function G(){var t;return(t=function(){var t,n,r,o,i,l,a,u,s,c,f,p,b;if(t=F,e.substr(F,6)===h?(n=h,F+=6):(n=d,0===$&&X(m)),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();if(r!==d){if(40===e.charCodeAt(F)?(o="(",F++):(o=d,0===$&&X(v)),o!==d){for(i=[],l=el();l!==d;)i.push(l),l=el();if(i!==d){if((l=J())!==d){if(ee()!==d){if((a=J())!==d){if(ee()!==d){if((u=J())!==d){if(ee()!==d){if((s=J())!==d){if(ee()!==d){if((c=J())!==d){if(ee()!==d){if((f=J())!==d){for(p=[],b=el();b!==d;)p.push(b),b=el();p!==d&&(41===e.charCodeAt(F)?(b=")",F++):(b=d,0===$&&X(g)),b!==d)?t=n=[l,u,c,a,s,f]:(F=t,t=d)}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d;return t}())===d&&(t=function(){var t,n,r,o,i,l,a,u,s;if(t=F,e.substr(F,9)===b?(n=b,F+=9):(n=d,0===$&&X(y)),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();if(r!==d){if(40===e.charCodeAt(F)?(o="(",F++):(o=d,0===$&&X(v)),o!==d){for(i=[],l=el();l!==d;)i.push(l),l=el();if(i!==d){if((l=J())!==d){if((a=Q())===d&&(a=null),a!==d){for(u=[],s=el();s!==d;)u.push(s),s=el();u!==d&&(41===e.charCodeAt(F)?(s=")",F++):(s=d,0===$&&X(g)),s!==d)?t=n=[1,0,l,0,1,a||0]:(F=t,t=d)}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d;return t}())===d&&(t=function(){var t,n,r,o,i,l,a,u,s,c,f;if(t=F,e.substr(F,5)===S?(n=S,F+=5):(n=d,0===$&&X(w)),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();if(r!==d){if(40===e.charCodeAt(F)?(o="(",F++):(o=d,0===$&&X(v)),o!==d){for(i=[],l=el();l!==d;)i.push(l),l=el();if(i!==d){if((l=J())!==d){if((a=Q())===d&&(a=null),a!==d){for(u=[],s=el();s!==d;)u.push(s),s=el();u!==d&&(41===e.charCodeAt(F)?(s=")",F++):(s=d,0===$&&X(g)),s!==d)?t=n=[c=l,0,0,0,null===(f=a)?c:f,0]:(F=t,t=d)}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d;return t}())===d&&(t=function(){var t,n,r,o,i,l,a,u,s,c,f,p;if(t=F,e.substr(F,6)===x?(n=x,F+=6):(n=d,0===$&&X(R)),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();if(r!==d){if(40===e.charCodeAt(F)?(o="(",F++):(o=d,0===$&&X(v)),o!==d){for(i=[],l=el();l!==d;)i.push(l),l=el();if(i!==d){if((l=J())!==d){if((c=F,ee()!==d&&(f=J())!==d&&ee()!==d&&(p=J())!==d)?c=[f,p]:(F=c,c=d),(a=c)===d&&(a=null),a!==d){for(u=[],s=el();s!==d;)u.push(s),s=el();u!==d?(41===e.charCodeAt(F)?(s=")",F++):(s=d,0===$&&X(g)),s!==d?t=n=E(l,a):(F=t,t=d)):(F=t,t=d)}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d;return t}())===d&&(t=function(){var t,n,r,o,i,l,a,u;if(t=F,e.substr(F,5)===k?(n=k,F+=5):(n=d,0===$&&X(C)),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();if(r!==d){if(40===e.charCodeAt(F)?(o="(",F++):(o=d,0===$&&X(v)),o!==d){for(i=[],l=el();l!==d;)i.push(l),l=el();if(i!==d){if((l=J())!==d){for(a=[],u=el();u!==d;)a.push(u),u=el();a!==d&&(41===e.charCodeAt(F)?(u=")",F++):(u=d,0===$&&X(g)),u!==d)?t=n=[1,Math.tan(ea*l),0,0,1,0]:(F=t,t=d)}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d;return t}())===d&&(t=function(){var t,n,r,o,i,l,a,u;if(t=F,e.substr(F,5)===T?(n=T,F+=5):(n=d,0===$&&X(O)),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();if(r!==d){if(40===e.charCodeAt(F)?(o="(",F++):(o=d,0===$&&X(v)),o!==d){for(i=[],l=el();l!==d;)i.push(l),l=el();if(i!==d){if((l=J())!==d){for(a=[],u=el();u!==d;)a.push(u),u=el();a!==d&&(41===e.charCodeAt(F)?(u=")",F++):(u=d,0===$&&X(g)),u!==d)?t=n=[1,0,0,Math.tan(ea*l),1,0]:(F=t,t=d)}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d}else F=t,t=d;return t}()),t}function J(){var t,n,r,o,i,l,a,u,s,c,f,p,h,m;if(t=F,n=F,(r=er())===d&&(r=null),r!==d&&(i=F,l=F,(($++,c=F,(f=eo())===d&&(f=null),f!==d&&(46===e.charCodeAt(F)?(p=".",F++):(p=d,0===$&&X(I)),p!==d&&(h=eo())!==d))?c=f=[(m=f)?m.join(""):null,".",h.join("")].join(""):(F=c,c=d),c===d&&(c=F,(f=eo())!==d?(46===e.charCodeAt(F)?(p=".",F++):(p=d,0===$&&X(I)),p!==d?c=f=A(f):(F=c,c=d)):(F=c,c=d)),$--,c===d&&(f=d,0===$&&X(P)),(a=c)!==d)?((u=en())===d&&(u=null),u!==d?l=a=[a,u]:(F=l,l=d)):(F=l,l=d),l!==d&&(l=l.join("")),(i=l)===d&&(i=F,l=F,(a=eo())!==d&&(u=en())!==d?l=a=[a,u]:(F=l,l=d),l!==d&&(l=A(l)),i=l),(o=i)!==d)?n=r=[r,o]:(F=n,n=d),n!==d)n=parseFloat(n.join(""));return(t=n)===d&&(t=F,n=F,(r=er())===d&&(r=null),r!==d&&((s=eo())!==d&&(s=s.join("")),(o=s)!==d)?n=r=[r,o]:(F=n,n=d),n!==d&&(n=parseInt(n.join(""))),t=n),t}function Q(){var e,t;return(e=F,ee()!==d&&(t=J())!==d)?e=t:(F=e,e=d),e}function ee(){var e,t,n,r,o;if(e=F,t=[],(n=el())!==d)for(;n!==d;)t.push(n),n=el();else t=d;if(t!==d){if((n=et())===d&&(n=null),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();r!==d?e=t=[t,n,r]:(F=e,e=d)}else F=e,e=d}else F=e,e=d;if(e===d){if(e=F,(t=et())!==d){for(n=[],r=el();r!==d;)n.push(r),r=el();n!==d?e=t=[t,n]:(F=e,e=d)}else F=e,e=d}return e}function et(){var t;return 44===e.charCodeAt(F)?(t=",",F++):(t=d,0===$&&X(M)),t}function en(){var t,n,r,o,i;return t=F,L.test(e.charAt(F))?(n=e.charAt(F),F++):(n=d,0===$&&X(D)),n!==d?((r=er())===d&&(r=null),r!==d&&(o=eo())!==d?t=n=[n,r,o]:(F=t,t=d)):(F=t,t=d),t!==d&&(t=[(i=t)[0],i[1],i[2].join("")].join("")),t}function er(){var t;return B.test(e.charAt(F))?(t=e.charAt(F),F++):(t=d,0===$&&X(W)),t}function eo(){var e,t;if(e=[],(t=ei())!==d)for(;t!==d;)e.push(t),t=ei();else e=d;return e}function ei(){var t;return N.test(e.charAt(F))?(t=e.charAt(F),F++):(t=d,0===$&&X(z)),t}function el(){var t;return j.test(e.charAt(F))?(t=e.charAt(F),F++):(t=d,0===$&&X(H)),t}var ea=Math.PI/180;if((c=p())!==d&&F===e.length)return c;throw c!==d&&Fe(l))}class d{static get(e){return u&&(u=!1,s()),o()(l[e],"No dimension set for key "+e),l[e]}static set(e){e&&(i.Z?o()(!1,"Dimensions cannot be set in the browser"):(null!=e.screen&&(l.screen=e.screen),null!=e.window&&(l.window=e.window)))}static addEventListener(e,t){return a[e]=a[e]||[],a[e].push(t),{remove:()=>{this.removeEventListener(e,t)}}}static removeEventListener(e,t){Array.isArray(a[e])&&(a[e]=a[e].filter(e=>e!==t))}}i.Z&&(window.visualViewport?window.visualViewport.addEventListener("resize",c,!1):window.addEventListener("resize",c,!1))},1775:function(e,t,n){"use strict";var r=n(5832);t.Z={isVisible:()=>!1,addListener:()=>({remove:()=>{}}),dismiss(){(0,r.Z)()},removeAllListeners(){},removeListener(){}}},1840:function(e,t){"use strict";t.Z={OS:"web",select:e=>"web"in e?e.web:e.default,get isTesting(){return!1}}},5589:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(7998),o=n(2988),i=n(3950),l=n(1090),a=n(5832),u=n(7445),s=n.n(u),c=n(2050),d=n(1840),f=n(2265),p=n(929),h=n(5275),m=n(9926),v=["onScroll","onTouchMove","onWheel","scrollEnabled","scrollEventThrottle","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","style"];function g(e){return{nativeEvent:{contentOffset:{get x(){return e.target.scrollLeft},get y(){return e.target.scrollTop}},contentSize:{get height(){return e.target.scrollHeight},get width(){return e.target.scrollWidth}},layoutMeasurement:{get height(){return e.target.offsetHeight},get width(){return e.target.offsetWidth}}},timeStamp:Date.now()}}var b=f.forwardRef((e,t)=>{var n=e.onScroll,r=e.onTouchMove,l=e.onWheel,a=e.scrollEnabled,u=void 0===a||a,s=e.scrollEventThrottle,c=void 0===s?0:s,d=e.showsHorizontalScrollIndicator,p=e.showsVerticalScrollIndicator,b=e.style,S=(0,i.Z)(e,v),w=f.useRef({isScrolling:!1,scrollLastTick:0}),x=f.useRef(null),R=f.useRef(null);function E(e){return t=>{u&&e&&e(t)}}function k(e){w.current.scrollLastTick=Date.now(),n&&n(g(e))}return f.createElement(h.Z,(0,o.Z)({},S,{onScroll:function(e){if(e.stopPropagation(),e.target===R.current){var t,r;(e.persist(),null!=x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{w.current.isScrolling=!1,n&&n(g(e))},100),w.current.isScrolling)?(t=w.current.scrollLastTick,r=Date.now()-t,c>0&&r>=c&&k(e)):(w.current.isScrolling=!0,k(e))}},onTouchMove:E(r),onWheel:E(l),ref:(0,m.Z)(R,t),style:[b,!u&&y.scrollDisabled,(!1===d||!1===p)&&y.hideScrollbar]}))}),y=p.Z.create({scrollDisabled:{overflowX:"hidden",overflowY:"hidden",touchAction:"none"},hideScrollbar:{scrollbarWidth:"none"}}),S=n(3013),w=n(2319),x=n(9895),R=n.n(x),E=["contentContainerStyle","horizontal","onContentSizeChange","refreshControl","stickyHeaderIndices","pagingEnabled","forwardedRef","keyboardDismissMode","onScroll","centerContent"],k={};class C extends f.Component{constructor(){super(...arguments),this._scrollNodeRef=null,this._innerViewRef=null,this.isTouching=!1,this.lastMomentumScrollBeginTime=0,this.lastMomentumScrollEndTime=0,this.observedScrollSinceBecomingResponder=!1,this.becameResponderWhileAnimating=!1,this.scrollResponderHandleScrollShouldSetResponder=()=>this.isTouching,this.scrollResponderHandleStartShouldSetResponderCapture=e=>this.scrollResponderIsAnimating(),this.scrollResponderHandleTerminationRequest=()=>!this.observedScrollSinceBecomingResponder,this.scrollResponderHandleTouchEnd=e=>{var t=e.nativeEvent;this.isTouching=0!==t.touches.length,this.props.onTouchEnd&&this.props.onTouchEnd(e)},this.scrollResponderHandleResponderRelease=e=>{this.props.onResponderRelease&&this.props.onResponderRelease(e);var t=S.Z.currentlyFocusedField();this.props.keyboardShouldPersistTaps||null==t||e.target===t||this.observedScrollSinceBecomingResponder||this.becameResponderWhileAnimating||(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(e),S.Z.blurTextInput(t))},this.scrollResponderHandleScroll=e=>{this.observedScrollSinceBecomingResponder=!0,this.props.onScroll&&this.props.onScroll(e)},this.scrollResponderHandleResponderGrant=e=>{this.observedScrollSinceBecomingResponder=!1,this.props.onResponderGrant&&this.props.onResponderGrant(e),this.becameResponderWhileAnimating=this.scrollResponderIsAnimating()},this.scrollResponderHandleScrollBeginDrag=e=>{this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this.scrollResponderHandleScrollEndDrag=e=>{this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this.scrollResponderHandleMomentumScrollBegin=e=>{this.lastMomentumScrollBeginTime=Date.now(),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this.scrollResponderHandleMomentumScrollEnd=e=>{this.lastMomentumScrollEndTime=Date.now(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this.scrollResponderHandleTouchStart=e=>{this.isTouching=!0,this.props.onTouchStart&&this.props.onTouchStart(e)},this.scrollResponderHandleTouchMove=e=>{this.props.onTouchMove&&this.props.onTouchMove(e)},this.scrollResponderIsAnimating=()=>Date.now()-this.lastMomentumScrollEndTime<16||this.lastMomentumScrollEndTime{if("number"==typeof e)console.warn("`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||k;e=r.x,t=r.y,n=r.animated}var o=this.getScrollableNode(),i=e||0,l=t||0;null!=o&&("function"==typeof o.scroll?o.scroll({top:l,left:i,behavior:n?"smooth":"auto"}):(o.scrollLeft=i,o.scrollTop=l))},this.scrollResponderZoomTo=(e,t)=>{"ios"!==d.Z.OS&&s()("zoomToRect is not implemented")},this.scrollResponderScrollNativeHandleToKeyboard=(e,t,n)=>{this.additionalScrollOffset=t||0,this.preventNegativeScrollOffset=!!n,w.Z.measureLayout(e,this.getInnerViewNode(),this.scrollResponderTextInputFocusError,this.scrollResponderInputMeasureAndScrollToKeyboard)},this.scrollResponderInputMeasureAndScrollToKeyboard=(e,t,n,r)=>{var o=l.Z.get("window").height;this.keyboardWillOpenTo&&(o=this.keyboardWillOpenTo.endCoordinates.screenY);var i=t-o+r+this.additionalScrollOffset;this.preventNegativeScrollOffset&&(i=Math.max(0,i)),this.scrollResponderScrollTo({x:0,y:i,animated:!0}),this.additionalOffset=0,this.preventNegativeScrollOffset=!1},this.scrollResponderKeyboardWillShow=e=>{this.keyboardWillOpenTo=e,this.props.onKeyboardWillShow&&this.props.onKeyboardWillShow(e)},this.scrollResponderKeyboardWillHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardWillHide&&this.props.onKeyboardWillHide(e)},this.scrollResponderKeyboardDidShow=e=>{e&&(this.keyboardWillOpenTo=e),this.props.onKeyboardDidShow&&this.props.onKeyboardDidShow(e)},this.scrollResponderKeyboardDidHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardDidHide&&this.props.onKeyboardDidHide(e)},this.flashScrollIndicators=()=>{this.scrollResponderFlashScrollIndicators()},this.getScrollResponder=()=>this,this.getScrollableNode=()=>this._scrollNodeRef,this.getInnerViewRef=()=>this._innerViewRef,this.getInnerViewNode=()=>this._innerViewRef,this.getNativeScrollRef=()=>this._scrollNodeRef,this.scrollTo=(e,t,n)=>{if("number"==typeof e)console.warn("`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||k;t=r.x,e=r.y,n=r.animated}this.scrollResponderScrollTo({x:t||0,y:e||0,animated:!1!==n})},this.scrollToEnd=e=>{var t=!1!==(e&&e.animated),n=this.props.horizontal,r=this.getScrollableNode(),o=n?r.scrollWidth:0,i=n?0:r.scrollHeight;this.scrollResponderScrollTo({x:o,y:i,animated:t})},this._handleContentOnLayout=e=>{var t=e.nativeEvent.layout,n=t.width,r=t.height;this.props.onContentSizeChange(n,r)},this._handleScroll=e=>{"on-drag"===this.props.keyboardDismissMode&&(0,a.Z)(),this.scrollResponderHandleScroll(e)},this._setInnerViewRef=e=>{this._innerViewRef=e},this._setScrollNodeRef=e=>{this._scrollNodeRef=e,null!=e&&(e.getScrollResponder=this.getScrollResponder,e.getInnerViewNode=this.getInnerViewNode,e.getInnerViewRef=this.getInnerViewRef,e.getNativeScrollRef=this.getNativeScrollRef,e.getScrollableNode=this.getScrollableNode,e.scrollTo=this.scrollTo,e.scrollToEnd=this.scrollToEnd,e.flashScrollIndicators=this.flashScrollIndicators,e.scrollResponderZoomTo=this.scrollResponderZoomTo,e.scrollResponderScrollNativeHandleToKeyboard=this.scrollResponderScrollNativeHandleToKeyboard),(0,c.Z)(this.props.forwardedRef)(e)}}scrollResponderHandleStartShouldSetResponder(){return!1}scrollResponderHandleResponderReject(){R()(!1,"ScrollView doesn't take rejection well - scrolls anyway")}scrollResponderFlashScrollIndicators(){}scrollResponderTextInputFocusError(e){console.error("Error measuring text field: ",e)}render(){var e=this.props,t=e.contentContainerStyle,n=e.horizontal,l=e.onContentSizeChange,a=e.refreshControl,u=e.stickyHeaderIndices,c=e.pagingEnabled,d=(e.forwardedRef,e.keyboardDismissMode,e.onScroll,e.centerContent),p=(0,i.Z)(e,E),m={};l&&(m={onLayout:this._handleContentOnLayout});var v=!n&&Array.isArray(u),g=v||c?f.Children.map(this.props.children,(e,t)=>{var n=v&&u.indexOf(t)>-1;return null!=e&&(n||c)?f.createElement(h.Z,{style:[n&&O.stickyHeader,c&&O.pagingEnabledChild]},e):e}):this.props.children,y=f.createElement(h.Z,(0,o.Z)({},m,{children:g,collapsable:!1,ref:this._setInnerViewRef,style:[n&&O.contentContainerHorizontal,d&&O.contentContainerCenterContent,t]})),S=n?O.baseHorizontal:O.baseVertical,w=n?O.pagingEnabledHorizontal:O.pagingEnabledVertical,x=(0,r.Z)((0,r.Z)({},p),{},{style:[S,c&&w,this.props.style],onTouchStart:this.scrollResponderHandleTouchStart,onTouchMove:this.scrollResponderHandleTouchMove,onTouchEnd:this.scrollResponderHandleTouchEnd,onScrollBeginDrag:this.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this.scrollResponderHandleScrollEndDrag,onMomentumScrollBegin:this.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this.scrollResponderHandleMomentumScrollEnd,onStartShouldSetResponder:this.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this.scrollResponderHandleStartShouldSetResponderCapture,onScrollShouldSetResponder:this.scrollResponderHandleScrollShouldSetResponder,onScroll:this._handleScroll,onResponderGrant:this.scrollResponderHandleResponderGrant,onResponderTerminationRequest:this.scrollResponderHandleTerminationRequest,onResponderTerminate:this.scrollResponderHandleTerminate,onResponderRelease:this.scrollResponderHandleResponderRelease,onResponderReject:this.scrollResponderHandleResponderReject});s()(void 0!==b,"ScrollViewClass must not be undefined");var R=f.createElement(b,(0,o.Z)({},x,{ref:this._setScrollNodeRef}),y);return a?f.cloneElement(a,{style:x.style},R):R}}var T={flexGrow:1,flexShrink:1,transform:"translateZ(0)",WebkitOverflowScrolling:"touch"},O=p.Z.create({baseVertical:(0,r.Z)((0,r.Z)({},T),{},{flexDirection:"column",overflowX:"hidden",overflowY:"auto"}),baseHorizontal:(0,r.Z)((0,r.Z)({},T),{},{flexDirection:"row",overflowX:"auto",overflowY:"hidden"}),contentContainerHorizontal:{flexDirection:"row"},contentContainerCenterContent:{justifyContent:"center",flexGrow:1},stickyHeader:{position:"sticky",top:0,zIndex:10},pagingEnabledHorizontal:{scrollSnapType:"x mandatory"},pagingEnabledVertical:{scrollSnapType:"y mandatory"},pagingEnabledChild:{scrollSnapAlign:"start"}}),M=f.forwardRef((e,t)=>f.createElement(C,(0,o.Z)({},e,{forwardedRef:t})));M.displayName="ScrollView";var A=M},929:function(e,t,n){"use strict";n.d(t,{Z:function(){return eZ}});var r=n(7998),o=n(3950),i={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},l=["ms","Moz","O","Webkit"],a=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1);Object.keys(i).forEach(e=>{l.forEach(t=>{i[a(t,e)]=i[e]})});var u=e=>"currentcolor"===e||"currentColor"===e||"inherit"===e||0===e.indexOf("var("),s=n(5554),c=n.n(s),d=e=>{if(null==e)return e;var t=c()(e);if(null!=t)return(t<<24|t>>>8)>>>0},f=function(e,t){if(void 0===t&&(t=1),null!=e){if("string"==typeof e&&u(e))return e;var n=d(e);if(null!=n){var r=((n>>24&255)/255*t).toFixed(2);return"rgba("+(n>>16&255)+","+(n>>8&255)+","+(255&n)+","+r+")"}}},p={backgroundColor:!0,borderColor:!0,borderTopColor:!0,borderRightColor:!0,borderBottomColor:!0,borderLeftColor:!0,color:!0,shadowColor:!0,textDecorationColor:!0,textShadowColor:!0};function h(e,t){var n=e;return null!=t&&i[t]||"number"!=typeof e?null!=t&&p[t]&&(n=f(e)):n=e+"px",n}var m=n(1213),v={},g=!m.Z||null!=window.CSS&&null!=window.CSS.supports&&(window.CSS.supports("text-decoration-line","none")||window.CSS.supports("-webkit-text-decoration-line","none")),b='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif',y={borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderBlockColor:["borderTopColor","borderBottomColor"],borderInlineColor:["borderRightColor","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderStyle:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderInlineStyle:["borderRightStyle","borderLeftStyle"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderInlineWidth:["borderRightWidth","borderLeftWidth"],insetBlock:["top","bottom"],insetInline:["left","right"],marginBlock:["marginTop","marginBottom"],marginInline:["marginRight","marginLeft"],paddingBlock:["paddingTop","paddingBottom"],paddingInline:["paddingRight","paddingLeft"],overflow:["overflowX","overflowY"],overscrollBehavior:["overscrollBehaviorX","overscrollBehaviorY"],borderBlockStartColor:["borderTopColor"],borderBlockStartStyle:["borderTopStyle"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndColor:["borderBottomColor"],borderBlockEndStyle:["borderBottomStyle"],borderBlockEndWidth:["borderBottomWidth"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],insetBlockEnd:["bottom"],insetBlockStart:["top"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"]},S=(e,t)=>{if(!e)return v;var n={};for(var r in e)if("continue"===function(){var o=e[r];if(null==o)return"continue";if("backgroundClip"===r)"text"===o&&(n.backgroundClip=o,n.WebkitBackgroundClip=o);else if("flex"===r)-1===o?(n.flexGrow=0,n.flexShrink=1,n.flexBasis="auto"):n.flex=o;else if("font"===r)n[r]=o.replace("System",b);else if("fontFamily"===r){if(o.indexOf("System")>-1){var i=o.split(/,\s*/);i[i.indexOf("System")]=b,n[r]=i.join(",")}else"monospace"===o?n[r]="monospace,monospace":n[r]=o}else if("textDecorationLine"===r)g?n.textDecorationLine=o:n.textDecoration=o;else if("writingDirection"===r)n.direction=o;else{var l=h(e[r],r),a=y[r];t&&"inset"===r?(null==e.insetInline&&(n.left=l,n.right=l),null==e.insetBlock&&(n.top=l,n.bottom=l)):t&&"margin"===r?(null==e.marginInline&&(n.marginLeft=l,n.marginRight=l),null==e.marginBlock&&(n.marginTop=l,n.marginBottom=l)):t&&"padding"===r?(null==e.paddingInline&&(n.paddingLeft=l,n.paddingRight=l),null==e.paddingBlock&&(n.paddingTop=l,n.paddingBottom=l)):a?a.forEach((t,r)=>{null==e[t]&&(n[t]=l)}):n[r]=l}}())continue;return n},w=e=>(function(e,t){for(var n,r=e.length,o=1^r,i=0;r>=4;)n=(65535&(n=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))*1540483477+(((n>>>16)*1540483477&65535)<<16),n^=n>>>24,o=(65535&o)*1540483477+(((o>>>16)*1540483477&65535)<<16)^(n=(65535&n)*1540483477+(((n>>>16)*1540483477&65535)<<16)),r-=4,++i;switch(r){case 3:o^=(255&e.charCodeAt(i+2))<<16;case 2:o^=(255&e.charCodeAt(i+1))<<8;case 1:o^=255&e.charCodeAt(i),o=(65535&o)*1540483477+(((o>>>16)*1540483477&65535)<<16)}return o^=o>>>13,o=(65535&o)*1540483477+(((o>>>16)*1540483477&65535)<<16),(o^=o>>>15)>>>0})(e,0).toString(36),x=/[A-Z]/g,R=/^ms-/,E={};function k(e){return"-"+e.toLowerCase()}var C=function(e){if(e in E)return E[e];var t=e.replace(x,k);return E[e]=R.test(t)?"-"+t:t},T=n(2933),O=n(1677),M=n(9699),A=n(5019),P=n(8527),I=n(9779),L=n(2316),D=n(9832),B=n(8579),W=n(4633),N=["Webkit"],z=["Webkit","ms"],j={plugins:[O.Z,M.Z,A.Z,P.Z,I.Z,L.Z,D.Z,B.Z,W.Z],prefixMap:{appearance:["Webkit","Moz","ms"],userSelect:["Webkit","Moz"],textEmphasisPosition:z,textEmphasis:z,textEmphasisStyle:z,textEmphasisColor:z,boxDecorationBreak:z,clipPath:N,maskImage:z,maskMode:z,maskRepeat:z,maskPosition:z,maskClip:z,maskOrigin:z,maskSize:z,maskComposite:z,mask:z,maskBorderSource:z,maskBorderMode:z,maskBorderSlice:z,maskBorderWidth:z,maskBorderOutset:z,maskBorderRepeat:z,maskBorder:z,maskType:z,textDecorationStyle:N,textDecorationSkip:N,textDecorationLine:N,textDecorationColor:N,filter:N,breakAfter:N,breakBefore:N,breakInside:N,columnCount:N,columnFill:N,columnGap:N,columnRule:N,columnRuleColor:N,columnRuleStyle:N,columnRuleWidth:N,columns:N,columnSpan:N,columnWidth:N,backdropFilter:N,hyphens:N,flowInto:N,flowFrom:N,regionFragment:N,textOrientation:N,tabSize:["Moz"],fontKerning:N,textSizeAdjust:N}},H=(0,T.Z)(j),F=["animationKeyframes"],_=new Map,Z={},V={borderColor:2,borderRadius:2,borderStyle:2,borderWidth:2,display:2,flex:2,inset:2,margin:2,overflow:2,overscrollBehavior:2,padding:2,insetBlock:2.1,insetInline:2.1,marginInline:2.1,marginBlock:2.1,paddingInline:2.1,paddingBlock:2.1,borderBlockStartColor:2.2,borderBlockStartStyle:2.2,borderBlockStartWidth:2.2,borderBlockEndColor:2.2,borderBlockEndStyle:2.2,borderBlockEndWidth:2.2,borderInlineStartColor:2.2,borderInlineStartStyle:2.2,borderInlineStartWidth:2.2,borderInlineEndColor:2.2,borderInlineEndStyle:2.2,borderInlineEndWidth:2.2,borderEndStartRadius:2.2,borderEndEndRadius:2.2,borderStartStartRadius:2.2,borderStartEndRadius:2.2,insetBlockEnd:2.2,insetBlockStart:2.2,insetInlineEnd:2.2,insetInlineStart:2.2,marginBlockStart:2.2,marginBlockEnd:2.2,marginInlineStart:2.2,marginInlineEnd:2.2,paddingBlockStart:2.2,paddingBlockEnd:2.2,paddingInlineStart:2.2,paddingInlineEnd:2.2},$="borderTopLeftRadius",K="borderTopRightRadius",U="borderBottomLeftRadius",Y="borderBottomRightRadius",X="borderLeftColor",q="borderLeftStyle",G="borderLeftWidth",J="borderRightColor",Q="borderRightStyle",ee="borderRightWidth",et="right",en="marginLeft",er="marginRight",eo="paddingLeft",ei="paddingRight",el="left",ea={[$]:K,[K]:$,[U]:Y,[Y]:U,[X]:J,[q]:Q,[G]:ee,[J]:X,[Q]:q,[ee]:G,[el]:et,[en]:er,[er]:en,[eo]:ei,[ei]:eo,[et]:el},eu={borderStartStartRadius:$,borderStartEndRadius:K,borderEndStartRadius:U,borderEndEndRadius:Y,borderInlineStartColor:X,borderInlineStartStyle:q,borderInlineStartWidth:G,borderInlineEndColor:J,borderInlineEndStyle:Q,borderInlineEndWidth:ee,insetInlineEnd:et,insetInlineStart:el,marginInlineStart:en,marginInlineEnd:er,paddingInlineStart:eo,paddingInlineEnd:ei},es=["clear","float","textAlign"];function ec(e){var t=H(S(e));return"{"+Object.keys(t).map(e=>{var n=t[e],r=C(e);return Array.isArray(n)?n.map(e=>r+":"+e).join(";"):r+":"+n}).sort().join(";")+";}"}function ed(e){if("number"==typeof e)throw Error("Invalid CSS keyframes type: "+typeof e);var t=[],n=[];return(Array.isArray(e)?e:[e]).forEach(e=>{if("string"==typeof e)t.push(e);else{var r,o,i,l=(r="r-"+w("animation"+JSON.stringify(e)),o="{"+Object.keys(e).map(t=>{var n=ec(e[t]);return""+t+n}).join("")+"}",i=["-webkit-",""].map(e=>"@"+e+"keyframes "+r+o),[r,i]),a=l[0],u=l[1];t.push(a),n.push(...u)}}),[t,n]}function ef(e,t,n){if(!m.Z)return null;var r=null!=t?t:document,o=r.getElementById(e);if(null==o){if((o=document.createElement("style")).setAttribute("id",e),"string"==typeof n&&o.appendChild(document.createTextNode(n)),r instanceof ShadowRoot)r.insertBefore(o,r.firstChild);else{var i=r.head;i&&i.insertBefore(o,i.firstChild)}}return o.sheet}var ep=Array.prototype.slice;function eh(e){var t,n={},r={};function o(e,t,r){var o=ev(n),i=o.indexOf(t)+1,l=o[i],a=null!=l&&null!=n[l].start?n[l].start:e.cssRules.length,u=function(e,t,n){try{return e.insertRule(t,n),!0}catch(e){return!1}}(e,r,a);if(u){null==n[t].start&&(n[t].start=a);for(var s=i;s{var i=e.cssText;if(i.indexOf("stylesheet-group")>-1)n[t=Number(e.selectorText.split(em)[1])]={start:o,rules:[i]};else{var l=eb(i);null!=l&&(r[l]=!0,n[t].rules.push(i))}}),{getTextContent:()=>ev(n).map(e=>{var t=n[e].rules,r=t.shift();return t.sort(),t.unshift(r),t.join("\n")}).join("\n"),insert(t,i){var l=Number(i);if(null==n[l]){var a='[stylesheet-group="'+l+'"]{}';n[l]={start:null,rules:[a]},null!=e&&o(e,l,a)}var u=eb(t);null==u||null!=r[u]||(r[u]=!0,n[l].rules.push(t),null==e||o(e,l,t)||n[l].rules.pop())}}}var em=/["']/g;function ev(e){return Object.keys(e).map(Number).sort((e,t)=>e>t?1:-1)}var eg=/\s*([,])\s*/g;function eb(e){var t=e.split("{")[0].trim();return""!==t?t.replace(eg,"$1"):null}var ey=new WeakMap,eS=[],ew=["html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}","body{margin:0;}","button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}","input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}"],ex=n(7106),eR=n(131),eE={},ek={height:0,width:0},eC=e=>{var t=e.shadowColor,n=e.shadowOffset,r=e.shadowOpacity,o=e.shadowRadius,i=n||ek,l=i.height,a=h(i.width),u=h(l),s=h(o||0),c=f(t||"black",r);if(null!=c&&null!=a&&null!=u&&null!=s)return a+" "+u+" "+s+" "+c},eT=e=>{var t=e.textShadowColor,n=e.textShadowOffset,r=e.textShadowRadius,o=n||ek,i=o.height,l=o.width,a=r||0,u=h(l),s=h(i),c=h(a),d=h(t,"textShadowColor");if(d&&(0!==i||0!==l||0!==a)&&null!=u&&null!=s&&null!=c)return u+" "+s+" "+c+" "+d},eO=e=>{var t=Object.keys(e)[0],n=e[t];if("matrix"===t||"matrix3d"===t)return t+"("+n.join(",")+")";var r=h(n,t);return t+"("+r+")"},eM=e=>e.map(eO).join(" "),eA={borderBottomEndRadius:"borderEndEndRadius",borderBottomStartRadius:"borderEndStartRadius",borderTopEndRadius:"borderStartEndRadius",borderTopStartRadius:"borderStartStartRadius",borderEndColor:"borderInlineEndColor",borderEndStyle:"borderInlineEndStyle",borderEndWidth:"borderInlineEndWidth",borderStartColor:"borderInlineStartColor",borderStartStyle:"borderInlineStartStyle",borderStartWidth:"borderInlineStartWidth",end:"insetInlineEnd",marginEnd:"marginInlineEnd",marginHorizontal:"marginInline",marginStart:"marginInlineStart",marginVertical:"marginBlock",paddingEnd:"paddingInlineEnd",paddingHorizontal:"paddingInline",paddingStart:"paddingInlineStart",paddingVertical:"paddingBlock",start:"insetInlineStart"},eP={elevation:!0,overlayColor:!0,resizeMode:!0,tintColor:!0},eI=function(e,t){void 0===t&&(t={});var n=e||eE,r={};if(t.shadow,null!=n.shadowColor||null!=n.shadowOffset||null!=n.shadowOpacity||null!=n.shadowRadius){(0,eR.O)("shadowStyles",'"shadow*" style props are deprecated. Use "boxShadow".');var o=eC(n);if(null!=o&&null==r.boxShadow){var i=n.boxShadow;r.boxShadow=i?i+", "+o:o}}if(t.textShadow,null!=n.textShadowColor||null!=n.textShadowOffset||null!=n.textShadowRadius){(0,eR.O)("textShadowStyles",'"textShadow*" style props are deprecated. Use "textShadow".');var l=eT(n);if(null!=l&&null==r.textShadow){var a=n.textShadow;r.textShadow=a?a+", "+l:l}}for(var u in n)if(null==eP[u]&&"shadowColor"!==u&&"shadowOffset"!==u&&"shadowOpacity"!==u&&"shadowRadius"!==u&&"textShadowColor"!==u&&"textShadowOffset"!==u&&"textShadowRadius"!==u){var s=n[u],c=eA[u]||u,d=s;Object.prototype.hasOwnProperty.call(n,u)&&(c===u||null==n[c])&&("aspectRatio"===c&&"number"==typeof d?r[c]=d.toString():"fontVariant"===c?(Array.isArray(d)&&d.length>0&&((0,eR.O)("fontVariant",'"fontVariant" style array value is deprecated. Use space-separated values.'),d=d.join(" ")),r[c]=d):"textAlignVertical"===c?((0,eR.O)("textAlignVertical",'"textAlignVertical" style is deprecated. Use "verticalAlign".'),null==n.verticalAlign&&(r.verticalAlign="center"===d?"middle":d)):"transform"===c?(Array.isArray(d)&&(d=eM(d)),r.transform=d):r[c]=d)}return r},eL=n(8650),eD=["writingDirection"],eB=new WeakMap,eW=function(e,t){if(void 0===t&&(t="react-native-stylesheet"),m.Z){var n,r=document;if(0===eS.length)n=eh(ef(t)),ew.forEach(e=>{n.insert(e,0)}),ey.set(r,eS.length),eS.push(n);else{var o=ey.get(r);if(null==o){var i=eS[0];n=eh(ef(t,r,null!=i?i.getTextContent():"")),ey.set(r,eS.length),eS.push(n)}else n=eS[o]}}else 0===eS.length?(n=eh(ef(t)),ew.forEach(e=>{n.insert(e,0)}),eS.push(n)):n=eS[0];return{getTextContent:()=>n.getTextContent(),id:t,insert(e,t){eS.forEach(n=>{n.insert(e,t)})}}}(),eN={shadow:!0,textShadow:!0};function ez(e){e.forEach(e=>{var t=e[0],n=e[1];null!=eW&&t.forEach(e=>{eW.insert(e,n)})})}var ej={position:"absolute",left:0,right:0,top:0,bottom:0},eH=eF({x:(0,r.Z)({},ej)}).x;function eF(e){return Object.keys(e).forEach(t=>{var n,i,l,a,u,s=e[t];null!=s&&!0!==s.$$css&&(t.indexOf("$raw")>-1?(i=(n=function(e,t){var n,i={$$css:!0},l=[],a=e.animationKeyframes,u=(0,o.Z)(e,F),s="css-"+w(t+JSON.stringify(e));if(null!=a){var c=ed(a),d=c[0],f=c[1];n=d.join(","),l.push(...f)}var p=ec((0,r.Z)((0,r.Z)({},u),{},{animationName:n}));return l.push("."+s+p),i[s]=s,[i,[[l,1]]]}(s,t.split("$raw")[0]))[0],ez(n[1]),u=i):(a=(l=function(e){var t={$$css:!0},n=[];function r(e,t,r){var o,i,l="string"!=typeof(o=h(r,t))?JSON.stringify(o||""):o,a=t+l,u=_.get(a);if(null!=u)i=u[0],n.push(u[1]);else{i="r-"+w(e+(e!==t?a:l));var s=V[e]||3,c=[function(e,t,n){var r=[],o="."+e;switch(t){case"animationKeyframes":var i=ed(n),l=i[0],a=i[1],u=ec({animationName:l.join(",")});r.push(""+o+u,...a);break;case"placeholderTextColor":var s=ec({color:n,opacity:1});r.push(o+"::-webkit-input-placeholder"+s,o+"::-moz-placeholder"+s,o+":-ms-input-placeholder"+s,o+"::placeholder"+s);break;case"pointerEvents":var c=n;if("auto"===n||"box-only"===n){if(c="auto!important","box-only"===n){var d=ec({pointerEvents:"none"});r.push(o+">*"+d)}}else if(("none"===n||"box-none"===n)&&(c="none!important","box-none"===n)){var f=ec({pointerEvents:"auto"});r.push(o+">*"+f)}var p=ec({pointerEvents:c});r.push(""+o+p);break;case"scrollbarWidth":"none"===n&&r.push(o+"::-webkit-scrollbar{display:none}");var h=ec({scrollbarWidth:n});r.push(""+o+h);break;default:var m=ec({[t]:n});r.push(""+o+m)}return r}(i,t,r),s];n.push(c),_.set(a,[i,c])}return i}return Object.keys(e).sort().forEach(n=>{var o=e[n];if(null!=o){if(es.indexOf(n)>-1){var i,l=r(n,n,"left"),a=r(n,n,"right");"start"===o?i=[l,a]:"end"===o&&(i=[a,l])}var u=eu[n];if(null!=u&&(i=[r(n,u,o),r(n,ea[u],o)]),"transitionProperty"===n){for(var s=Array.isArray(o)?o:[o],c=[],d=0;d0){var p=[...s],h=[...s];c.forEach(e=>{var t=p[e];if("string"==typeof t){var o=eu[t],l=ea[o];p[e]=o,h[e]=l,i=[r(n,n,p),r(n,n,h)]}})}}null==i?i=r(n,n,o):t.$$css$localize=!0,t[n]=i}}),[t,n]}(eI(s,eN)))[0],ez(l[1]),u=a),eB.set(s,u))}),e}function e_(e,t){void 0===t&&(t={});var n,i,l,a,u,s="rtl"===t.writingDirection,c=(void 0===(n=t)&&(n={}),l=(i=n).writingDirection,a=(0,o.Z)(i,eD),u="rtl"===l,eL.D.factory({transform(e){var t=eB.get(e);return null!=t?(0,ex.j)(t,u):eI(e,(0,r.Z)((0,r.Z)({},eN),a))}})(e));return Array.isArray(c)&&null!=c[1]&&(c[1]=function(e,t){var n=e||Z,r={},o={};for(var i in n)if("continue"===function(){var e=n[i],l=i,a=e;if(!Object.prototype.hasOwnProperty.call(n,i)||null==e)return"continue";es.indexOf(i)>-1&&("start"===e?a=t?"right":"left":"end"===e&&(a=t?"left":"right"));var u=eu[i];if(null!=u&&(l=t?ea[u]:u),"transitionProperty"===i){var s=Array.isArray(e)?e:[e];s.forEach((e,n)=>{if("string"==typeof e){var r=eu[e];null!=r&&(s[n]=t?ea[r]:r,a=s.join(" "))}})}r[l]||(o[l]=a),l===i&&(r[l]=!0)}())continue;return S(o,!0)}(c[1],s)),c}e_.absoluteFill=eH,e_.absoluteFillObject=ej,e_.create=eF,e_.compose=function(e,t){return[e,t]},e_.flatten=function(){for(var e=arguments.length,t=Array(e),n=0;nReflect.has(n,r)?Reflect.get(n,r):e(),apply:()=>e()})}(!0)},2319:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(2141),o={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},i=["ms","Moz","O","Webkit"],l=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1);Object.keys(o).forEach(e=>{i.forEach(t=>{o[l(t,e)]=o[e]})});var a=function(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i,l,a=0===r.indexOf("--"),u=(i=r,null==(l=t[r])||"boolean"==typeof l||""===l?"":a||"number"!=typeof l||0===l||o.hasOwnProperty(i)&&o[i]?(""+l).trim():l+"px");"float"===r&&(r="cssFloat"),a?n.setProperty(r,u):n[r]=u}},u=e=>{var t=e.offsetHeight,n=e.offsetWidth,r=e.offsetLeft,o=e.offsetTop;for(e=e.offsetParent;e&&1===e.nodeType;)r+=e.offsetLeft+e.clientLeft-e.scrollLeft,o+=e.offsetTop+e.clientTop-e.scrollTop,e=e.offsetParent;return{width:n,height:t,top:o-=window.scrollY,left:r-=window.scrollX}},s=(e,t,n)=>{var r=t||e&&e.parentNode;e&&r&&setTimeout(()=>{if(e.isConnected&&r.isConnected){var t=u(r),o=u(e),i=o.height,l=o.left,a=o.top,s=o.width;n(l-t.left,a-t.top,s,i,l,a)}},0)},c={A:!0,BODY:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0},d={blur(e){try{e.blur()}catch(e){}},focus(e){try{var t=e.nodeName;null==e.getAttribute("tabIndex")&&!0!==e.isContentEditable&&null==c[t]&&e.setAttribute("tabIndex","-1"),e.focus()}catch(e){}},measure(e,t){s(e,null,t)},measureInWindow(e,t){e&&setTimeout(()=>{var n=(0,r.Z)(e),o=n.height;t(n.left,n.top,n.width,o)},0)},measureLayout(e,t,n,r){s(e,t,r)},updateView(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];switch(n){case"style":a(e,r);break;case"class":case"className":e.setAttribute("class",r);break;case"text":case"value":e.value=r;break;default:e.setAttribute(n,r)}}},configureNextLayoutAnimation(e,t){t()},setLayoutAnimationEnabledExperimental(){}}},5275:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(3950),o=n(2265),i=n(5803),l=n(7792),a=n(2675),u=n(9647),s=n(9926),c=n(5158),d=n(4886),f=n(929),p=(0,o.createContext)(!1),h=n(3201),m=["hrefAttrs","onLayout","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture"],v=Object.assign({},l.lG,l.LO,l._T,l.YB,l.Uy,l.hJ,l.E5,l.vr,{href:!0,lang:!0,onScroll:!0,onWheel:!0,pointerEvents:!0}),g=e=>(0,a.Z)(e,v),b=o.forwardRef((e,t)=>{var n=e.hrefAttrs,l=e.onLayout,a=e.onMoveShouldSetResponder,f=e.onMoveShouldSetResponderCapture,v=e.onResponderEnd,b=e.onResponderGrant,S=e.onResponderMove,w=e.onResponderReject,x=e.onResponderRelease,R=e.onResponderStart,E=e.onResponderTerminate,k=e.onResponderTerminationRequest,C=e.onScrollShouldSetResponder,T=e.onScrollShouldSetResponderCapture,O=e.onSelectionChangeShouldSetResponder,M=e.onSelectionChangeShouldSetResponderCapture,A=e.onStartShouldSetResponder,P=e.onStartShouldSetResponderCapture,I=(0,r.Z)(e,m),L=o.useContext(p),D=o.useRef(null),B=(0,h.PE)().direction;(0,u.Z)(D,l),(0,d.Z)(D,{onMoveShouldSetResponder:a,onMoveShouldSetResponderCapture:f,onResponderEnd:v,onResponderGrant:b,onResponderMove:S,onResponderReject:w,onResponderRelease:x,onResponderStart:R,onResponderTerminate:E,onResponderTerminationRequest:k,onScrollShouldSetResponder:C,onScrollShouldSetResponderCapture:T,onSelectionChangeShouldSetResponder:O,onSelectionChangeShouldSetResponderCapture:M,onStartShouldSetResponder:A,onStartShouldSetResponderCapture:P});var W="div",N=null!=e.lang?(0,h.w1)(e.lang):null,z=e.dir||N,j=z||B,H=g(I);if(H.dir=z,H.style=[y.view$raw,L&&y.inline,e.style],null!=e.href&&(W="a",null!=n)){var F=n.download,_=n.rel,Z=n.target;null!=F&&(H.download=F),null!=_&&(H.rel=_),"string"==typeof Z&&(H.target="_"!==Z.charAt(0)?"_"+Z:Z)}var V=(0,c.Z)(H),$=(0,s.Z)(D,V,t);return H.ref=$,(0,i.Z)(W,H,{writingDirection:j})});b.displayName="View";var y=f.Z.create({view$raw:{alignItems:"stretch",backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",display:"flex",flexBasis:"auto",flexDirection:"column",flexShrink:0,listStyle:"none",margin:0,minHeight:0,minWidth:0,padding:0,position:"relative",textDecoration:"none",zIndex:0},inline:{display:"inline-flex"}}),S=b},5803:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var r={adjustable:"slider",button:"button",header:"heading",image:"img",imagebutton:null,keyboardkey:null,label:null,link:"link",none:"presentation",search:"search",summary:"region",text:null},o=e=>{var t=e.accessibilityRole,n=e.role||t;if(n){var o=r[n];if(null!==o)return o||n}},i={article:"article",banner:"header",blockquote:"blockquote",button:"button",code:"code",complementary:"aside",contentinfo:"footer",deletion:"del",emphasis:"em",figure:"figure",insertion:"ins",form:"form",list:"ul",listitem:"li",main:"main",navigation:"nav",paragraph:"p",region:"section",strong:"strong"},l={},a={propsToAccessibilityComponent:function(e){if(void 0===e&&(e=l),"label"===(e.role||e.accessibilityRole))return"label";var t=o(e);if(t){if("heading"===t){var n=e.accessibilityLevel||e["aria-level"];return null!=n?"h"+n:"h1"}return i[t]}},propsToAriaRole:o},u=n(7998),s=n(3950),c=n(929),d=n(131),f=["aria-activedescendant","accessibilityActiveDescendant","aria-atomic","accessibilityAtomic","aria-autocomplete","accessibilityAutoComplete","aria-busy","accessibilityBusy","aria-checked","accessibilityChecked","aria-colcount","accessibilityColumnCount","aria-colindex","accessibilityColumnIndex","aria-colspan","accessibilityColumnSpan","aria-controls","accessibilityControls","aria-current","accessibilityCurrent","aria-describedby","accessibilityDescribedBy","aria-details","accessibilityDetails","aria-disabled","accessibilityDisabled","aria-errormessage","accessibilityErrorMessage","aria-expanded","accessibilityExpanded","aria-flowto","accessibilityFlowTo","aria-haspopup","accessibilityHasPopup","aria-hidden","accessibilityHidden","aria-invalid","accessibilityInvalid","aria-keyshortcuts","accessibilityKeyShortcuts","aria-label","accessibilityLabel","aria-labelledby","accessibilityLabelledBy","aria-level","accessibilityLevel","aria-live","accessibilityLiveRegion","aria-modal","accessibilityModal","aria-multiline","accessibilityMultiline","aria-multiselectable","accessibilityMultiSelectable","aria-orientation","accessibilityOrientation","aria-owns","accessibilityOwns","aria-placeholder","accessibilityPlaceholder","aria-posinset","accessibilityPosInSet","aria-pressed","accessibilityPressed","aria-readonly","accessibilityReadOnly","aria-required","accessibilityRequired","role","accessibilityRole","aria-roledescription","accessibilityRoleDescription","aria-rowcount","accessibilityRowCount","aria-rowindex","accessibilityRowIndex","aria-rowspan","accessibilityRowSpan","aria-selected","accessibilitySelected","aria-setsize","accessibilitySetSize","aria-sort","accessibilitySort","aria-valuemax","accessibilityValueMax","aria-valuemin","accessibilityValueMin","aria-valuenow","accessibilityValueNow","aria-valuetext","accessibilityValueText","dataSet","focusable","id","nativeID","pointerEvents","style","tabIndex","testID"],p={},h=Object.prototype.hasOwnProperty,m=Array.isArray,v=/[A-Z]/g;function g(e){return"-"+e.toLowerCase()}function b(e){return m(e)?e.join(" "):e}var y=c.Z.create({auto:{pointerEvents:"auto"},"box-none":{pointerEvents:"box-none"},"box-only":{pointerEvents:"box-only"},none:{pointerEvents:"none"}}),S=(e,t,n)=>{t||(t=p);var r=t,o=r["aria-activedescendant"],i=r.accessibilityActiveDescendant,l=r["aria-atomic"],m=r.accessibilityAtomic,S=r["aria-autocomplete"],w=r.accessibilityAutoComplete,x=r["aria-busy"],R=r.accessibilityBusy,E=r["aria-checked"],k=r.accessibilityChecked,C=r["aria-colcount"],T=r.accessibilityColumnCount,O=r["aria-colindex"],M=r.accessibilityColumnIndex,A=r["aria-colspan"],P=r.accessibilityColumnSpan,I=r["aria-controls"],L=r.accessibilityControls,D=r["aria-current"],B=r.accessibilityCurrent,W=r["aria-describedby"],N=r.accessibilityDescribedBy,z=r["aria-details"],j=r.accessibilityDetails,H=r["aria-disabled"],F=r.accessibilityDisabled,_=r["aria-errormessage"],Z=r.accessibilityErrorMessage,V=r["aria-expanded"],$=r.accessibilityExpanded,K=r["aria-flowto"],U=r.accessibilityFlowTo,Y=r["aria-haspopup"],X=r.accessibilityHasPopup,q=r["aria-hidden"],G=r.accessibilityHidden,J=r["aria-invalid"],Q=r.accessibilityInvalid,ee=r["aria-keyshortcuts"],et=r.accessibilityKeyShortcuts,en=r["aria-label"],er=r.accessibilityLabel,eo=r["aria-labelledby"],ei=r.accessibilityLabelledBy,el=r["aria-level"],ea=r.accessibilityLevel,eu=r["aria-live"],es=r.accessibilityLiveRegion,ec=r["aria-modal"],ed=r.accessibilityModal,ef=r["aria-multiline"],ep=r.accessibilityMultiline,eh=r["aria-multiselectable"],em=r.accessibilityMultiSelectable,ev=r["aria-orientation"],eg=r.accessibilityOrientation,eb=r["aria-owns"],ey=r.accessibilityOwns,eS=r["aria-placeholder"],ew=r.accessibilityPlaceholder,ex=r["aria-posinset"],eR=r.accessibilityPosInSet,eE=r["aria-pressed"],ek=r.accessibilityPressed,eC=r["aria-readonly"],eT=r.accessibilityReadOnly,eO=r["aria-required"],eM=r.accessibilityRequired,eA=(r.role,r.accessibilityRole),eP=r["aria-roledescription"],eI=r.accessibilityRoleDescription,eL=r["aria-rowcount"],eD=r.accessibilityRowCount,eB=r["aria-rowindex"],eW=r.accessibilityRowIndex,eN=r["aria-rowspan"],ez=r.accessibilityRowSpan,ej=r["aria-selected"],eH=r.accessibilitySelected,eF=r["aria-setsize"],e_=r.accessibilitySetSize,eZ=r["aria-sort"],eV=r.accessibilitySort,e$=r["aria-valuemax"],eK=r.accessibilityValueMax,eU=r["aria-valuemin"],eY=r.accessibilityValueMin,eX=r["aria-valuenow"],eq=r.accessibilityValueNow,eG=r["aria-valuetext"],eJ=r.accessibilityValueText,eQ=r.dataSet,e0=r.focusable,e1=r.id,e2=r.nativeID,e5=r.pointerEvents,e3=r.style,e4=r.tabIndex,e7=r.testID,e9=(0,s.Z)(r,f);null!=F&&(0,d.O)("accessibilityDisabled","accessibilityDisabled is deprecated.");var e8=a.propsToAriaRole(t);null!=i&&(0,d.O)("accessibilityActiveDescendant","accessibilityActiveDescendant is deprecated. Use aria-activedescendant.");var e6=null!=o?o:i;null!=e6&&(e9["aria-activedescendant"]=e6),null!=m&&(0,d.O)("accessibilityAtomic","accessibilityAtomic is deprecated. Use aria-atomic.");var te=null!=l?o:m;null!=te&&(e9["aria-atomic"]=te),null!=w&&(0,d.O)("accessibilityAutoComplete","accessibilityAutoComplete is deprecated. Use aria-autocomplete.");var tt=null!=S?S:w;null!=tt&&(e9["aria-autocomplete"]=tt),null!=R&&(0,d.O)("accessibilityBusy","accessibilityBusy is deprecated. Use aria-busy.");var tn=null!=x?x:R;null!=tn&&(e9["aria-busy"]=tn),null!=k&&(0,d.O)("accessibilityChecked","accessibilityChecked is deprecated. Use aria-checked.");var tr=null!=E?E:k;null!=tr&&(e9["aria-checked"]=tr),null!=T&&(0,d.O)("accessibilityColumnCount","accessibilityColumnCount is deprecated. Use aria-colcount.");var to=null!=C?C:T;null!=to&&(e9["aria-colcount"]=to),null!=M&&(0,d.O)("accessibilityColumnIndex","accessibilityColumnIndex is deprecated. Use aria-colindex.");var ti=null!=O?O:M;null!=ti&&(e9["aria-colindex"]=ti),null!=P&&(0,d.O)("accessibilityColumnSpan","accessibilityColumnSpan is deprecated. Use aria-colspan.");var tl=null!=A?A:P;null!=tl&&(e9["aria-colspan"]=tl),null!=L&&(0,d.O)("accessibilityControls","accessibilityControls is deprecated. Use aria-controls.");var ta=null!=I?I:L;null!=ta&&(e9["aria-controls"]=b(ta)),null!=B&&(0,d.O)("accessibilityCurrent","accessibilityCurrent is deprecated. Use aria-current.");var tu=null!=D?D:B;null!=tu&&(e9["aria-current"]=tu),null!=N&&(0,d.O)("accessibilityDescribedBy","accessibilityDescribedBy is deprecated. Use aria-describedby.");var ts=null!=W?W:N;null!=ts&&(e9["aria-describedby"]=b(ts)),null!=j&&(0,d.O)("accessibilityDetails","accessibilityDetails is deprecated. Use aria-details.");var tc=null!=z?z:j;null!=tc&&(e9["aria-details"]=tc),!0===(H||F)&&(e9["aria-disabled"]=!0,("button"===e||"form"===e||"input"===e||"select"===e||"textarea"===e)&&(e9.disabled=!0)),null!=Z&&(0,d.O)("accessibilityErrorMessage","accessibilityErrorMessage is deprecated. Use aria-errormessage.");var td=null!=_?_:Z;null!=td&&(e9["aria-errormessage"]=td),null!=$&&(0,d.O)("accessibilityExpanded","accessibilityExpanded is deprecated. Use aria-expanded.");var tf=null!=V?V:$;null!=tf&&(e9["aria-expanded"]=tf),null!=U&&(0,d.O)("accessibilityFlowTo","accessibilityFlowTo is deprecated. Use aria-flowto.");var tp=null!=K?K:U;null!=tp&&(e9["aria-flowto"]=b(tp)),null!=X&&(0,d.O)("accessibilityHasPopup","accessibilityHasPopup is deprecated. Use aria-haspopup.");var th=null!=Y?Y:X;null!=th&&(e9["aria-haspopup"]=th),null!=G&&(0,d.O)("accessibilityHidden","accessibilityHidden is deprecated. Use aria-hidden.");var tm=null!=q?q:G;!0===tm&&(e9["aria-hidden"]=tm),null!=Q&&(0,d.O)("accessibilityInvalid","accessibilityInvalid is deprecated. Use aria-invalid.");var tv=null!=J?J:Q;null!=tv&&(e9["aria-invalid"]=tv),null!=et&&(0,d.O)("accessibilityKeyShortcuts","accessibilityKeyShortcuts is deprecated. Use aria-keyshortcuts.");var tg=null!=ee?ee:et;null!=tg&&(e9["aria-keyshortcuts"]=b(tg)),null!=er&&(0,d.O)("accessibilityLabel","accessibilityLabel is deprecated. Use aria-label.");var tb=null!=en?en:er;null!=tb&&(e9["aria-label"]=tb),null!=ei&&(0,d.O)("accessibilityLabelledBy","accessibilityLabelledBy is deprecated. Use aria-labelledby.");var ty=null!=eo?eo:ei;null!=ty&&(e9["aria-labelledby"]=b(ty)),null!=ea&&(0,d.O)("accessibilityLevel","accessibilityLevel is deprecated. Use aria-level.");var tS=null!=el?el:ea;null!=tS&&(e9["aria-level"]=tS),null!=es&&(0,d.O)("accessibilityLiveRegion","accessibilityLiveRegion is deprecated. Use aria-live.");var tw=null!=eu?eu:es;null!=tw&&(e9["aria-live"]="none"===tw?"off":tw),null!=ed&&(0,d.O)("accessibilityModal","accessibilityModal is deprecated. Use aria-modal.");var tx=null!=ec?ec:ed;null!=tx&&(e9["aria-modal"]=tx),null!=ep&&(0,d.O)("accessibilityMultiline","accessibilityMultiline is deprecated. Use aria-multiline.");var tR=null!=ef?ef:ep;null!=tR&&(e9["aria-multiline"]=tR),null!=em&&(0,d.O)("accessibilityMultiSelectable","accessibilityMultiSelectable is deprecated. Use aria-multiselectable.");var tE=null!=eh?eh:em;null!=tE&&(e9["aria-multiselectable"]=tE),null!=eg&&(0,d.O)("accessibilityOrientation","accessibilityOrientation is deprecated. Use aria-orientation.");var tk=null!=ev?ev:eg;null!=tk&&(e9["aria-orientation"]=tk),null!=ey&&(0,d.O)("accessibilityOwns","accessibilityOwns is deprecated. Use aria-owns.");var tC=null!=eb?eb:ey;null!=tC&&(e9["aria-owns"]=b(tC)),null!=ew&&(0,d.O)("accessibilityPlaceholder","accessibilityPlaceholder is deprecated. Use aria-placeholder.");var tT=null!=eS?eS:ew;null!=tT&&(e9["aria-placeholder"]=tT),null!=eR&&(0,d.O)("accessibilityPosInSet","accessibilityPosInSet is deprecated. Use aria-posinset.");var tO=null!=ex?ex:eR;null!=tO&&(e9["aria-posinset"]=tO),null!=ek&&(0,d.O)("accessibilityPressed","accessibilityPressed is deprecated. Use aria-pressed.");var tM=null!=eE?eE:ek;null!=tM&&(e9["aria-pressed"]=tM),null!=eT&&(0,d.O)("accessibilityReadOnly","accessibilityReadOnly is deprecated. Use aria-readonly.");var tA=null!=eC?eC:eT;null!=tA&&(e9["aria-readonly"]=tA,("input"===e||"select"===e||"textarea"===e)&&(e9.readOnly=!0)),null!=eM&&(0,d.O)("accessibilityRequired","accessibilityRequired is deprecated. Use aria-required.");var tP=null!=eO?eO:eM;null!=tP&&(e9["aria-required"]=tP,("input"===e||"select"===e||"textarea"===e)&&(e9.required=eM)),null!=eA&&(0,d.O)("accessibilityRole","accessibilityRole is deprecated. Use role."),null!=e8&&(e9.role="none"===e8?"presentation":e8),null!=eI&&(0,d.O)("accessibilityRoleDescription","accessibilityRoleDescription is deprecated. Use aria-roledescription.");var tI=null!=eP?eP:eI;null!=tI&&(e9["aria-roledescription"]=tI),null!=eD&&(0,d.O)("accessibilityRowCount","accessibilityRowCount is deprecated. Use aria-rowcount.");var tL=null!=eL?eL:eD;null!=tL&&(e9["aria-rowcount"]=tL),null!=eW&&(0,d.O)("accessibilityRowIndex","accessibilityRowIndex is deprecated. Use aria-rowindex.");var tD=null!=eB?eB:eW;null!=tD&&(e9["aria-rowindex"]=tD),null!=ez&&(0,d.O)("accessibilityRowSpan","accessibilityRowSpan is deprecated. Use aria-rowspan.");var tB=null!=eN?eN:ez;null!=tB&&(e9["aria-rowspan"]=tB),null!=eH&&(0,d.O)("accessibilitySelected","accessibilitySelected is deprecated. Use aria-selected.");var tW=null!=ej?ej:eH;null!=tW&&(e9["aria-selected"]=tW),null!=e_&&(0,d.O)("accessibilitySetSize","accessibilitySetSize is deprecated. Use aria-setsize.");var tN=null!=eF?eF:e_;null!=tN&&(e9["aria-setsize"]=tN),null!=eV&&(0,d.O)("accessibilitySort","accessibilitySort is deprecated. Use aria-sort.");var tz=null!=eZ?eZ:eV;null!=tz&&(e9["aria-sort"]=tz),null!=eK&&(0,d.O)("accessibilityValueMax","accessibilityValueMax is deprecated. Use aria-valuemax.");var tj=null!=e$?e$:eK;null!=tj&&(e9["aria-valuemax"]=tj),null!=eY&&(0,d.O)("accessibilityValueMin","accessibilityValueMin is deprecated. Use aria-valuemin.");var tH=null!=eU?eU:eY;null!=tH&&(e9["aria-valuemin"]=tH),null!=eq&&(0,d.O)("accessibilityValueNow","accessibilityValueNow is deprecated. Use aria-valuenow.");var tF=null!=eX?eX:eq;null!=tF&&(e9["aria-valuenow"]=tF),null!=eJ&&(0,d.O)("accessibilityValueText","accessibilityValueText is deprecated. Use aria-valuetext.");var t_=null!=eG?eG:eJ;if(null!=t_&&(e9["aria-valuetext"]=t_),null!=eQ){for(var tZ in eQ)if(h.call(eQ,tZ)){var tV=tZ.replace(v,g),t$=eQ[tZ];null!=t$&&(e9["data-"+tV]=t$)}}0===e4||"0"===e4||-1===e4||"-1"===e4?e9.tabIndex=e4:(null!=e0&&(0,d.O)("focusable","focusable is deprecated."),!1===e0&&(e9.tabIndex="-1"),"a"===e||"button"===e||"input"===e||"select"===e||"textarea"===e?(!1===e0||!0===F)&&(e9.tabIndex="-1"):"button"===e8||"checkbox"===e8||"link"===e8||"radio"===e8||"textbox"===e8||"switch"===e8?!1!==e0&&(e9.tabIndex="0"):!0===e0&&(e9.tabIndex="0")),null!=e5&&(0,d.O)("pointerEvents","props.pointerEvents is deprecated. Use style.pointerEvents");var tK=(0,c.Z)([e3,e5&&y[e5]],(0,u.Z)({writingDirection:"ltr"},n)),tU=tK[0],tY=tK[1];tU&&(e9.className=tU),tY&&(e9.style=tY),null!=e2&&(0,d.O)("nativeID","nativeID is deprecated. Use id.");var tX=null!=e1?e1:e2;return null!=tX&&(e9.id=tX),null!=e7&&(e9["data-testid"]=e7),null==e9.type&&"button"===e&&(e9.type="button"),e9},w=n(2265),x=n(3201),R=(e,t,n)=>{e&&e.constructor===String&&(r=a.propsToAccessibilityComponent(t));var r,o=r||e,i=S(o,t,n),l=w.createElement(o,i);return i.dir?w.createElement(x.Iw,{children:l,direction:i.dir,locale:i.lang}):l}},3013:function(e,t,n){"use strict";var r=n(2319);t.Z={_currentlyFocusedNode:null,currentlyFocusedField(){return document.activeElement!==this._currentlyFocusedNode&&(this._currentlyFocusedNode=null),this._currentlyFocusedNode},focusTextInput(e){null!==e&&(this._currentlyFocusedNode=e,document.activeElement!==e&&r.Z.focus(e))},blurTextInput(e){null!==e&&(this._currentlyFocusedNode=null,document.activeElement===e&&r.Z.blur(e))}}},1213:function(e,t){"use strict";var n=!!("undefined"!=typeof window&&window.document&&window.document.createElement);t.Z=n},5832:function(e,t,n){"use strict";var r=n(3013);t.Z=()=>{r.Z.blurTextInput(r.Z.currentlyFocusedField())}},7792:function(e,t,n){"use strict";n.d(t,{E5:function(){return s},LO:function(){return o},Uy:function(){return a},YB:function(){return l},_T:function(){return i},hJ:function(){return u},lG:function(){return r},vr:function(){return c}});var r={children:!0,dataSet:!0,dir:!0,id:!0,ref:!0,suppressHydrationWarning:!0,tabIndex:!0,testID:!0,focusable:!0,nativeID:!0},o={"aria-activedescendant":!0,"aria-atomic":!0,"aria-autocomplete":!0,"aria-busy":!0,"aria-checked":!0,"aria-colcount":!0,"aria-colindex":!0,"aria-colspan":!0,"aria-controls":!0,"aria-current":!0,"aria-describedby":!0,"aria-details":!0,"aria-disabled":!0,"aria-errormessage":!0,"aria-expanded":!0,"aria-flowto":!0,"aria-haspopup":!0,"aria-hidden":!0,"aria-invalid":!0,"aria-keyshortcuts":!0,"aria-label":!0,"aria-labelledby":!0,"aria-level":!0,"aria-live":!0,"aria-modal":!0,"aria-multiline":!0,"aria-multiselectable":!0,"aria-orientation":!0,"aria-owns":!0,"aria-placeholder":!0,"aria-posinset":!0,"aria-pressed":!0,"aria-readonly":!0,"aria-required":!0,role:!0,"aria-roledescription":!0,"aria-rowcount":!0,"aria-rowindex":!0,"aria-rowspan":!0,"aria-selected":!0,"aria-setsize":!0,"aria-sort":!0,"aria-valuemax":!0,"aria-valuemin":!0,"aria-valuenow":!0,"aria-valuetext":!0,accessibilityActiveDescendant:!0,accessibilityAtomic:!0,accessibilityAutoComplete:!0,accessibilityBusy:!0,accessibilityChecked:!0,accessibilityColumnCount:!0,accessibilityColumnIndex:!0,accessibilityColumnSpan:!0,accessibilityControls:!0,accessibilityCurrent:!0,accessibilityDescribedBy:!0,accessibilityDetails:!0,accessibilityDisabled:!0,accessibilityErrorMessage:!0,accessibilityExpanded:!0,accessibilityFlowTo:!0,accessibilityHasPopup:!0,accessibilityHidden:!0,accessibilityInvalid:!0,accessibilityKeyShortcuts:!0,accessibilityLabel:!0,accessibilityLabelledBy:!0,accessibilityLevel:!0,accessibilityLiveRegion:!0,accessibilityModal:!0,accessibilityMultiline:!0,accessibilityMultiSelectable:!0,accessibilityOrientation:!0,accessibilityOwns:!0,accessibilityPlaceholder:!0,accessibilityPosInSet:!0,accessibilityPressed:!0,accessibilityReadOnly:!0,accessibilityRequired:!0,accessibilityRole:!0,accessibilityRoleDescription:!0,accessibilityRowCount:!0,accessibilityRowIndex:!0,accessibilityRowSpan:!0,accessibilitySelected:!0,accessibilitySetSize:!0,accessibilitySort:!0,accessibilityValueMax:!0,accessibilityValueMin:!0,accessibilityValueNow:!0,accessibilityValueText:!0},i={onClick:!0,onAuxClick:!0,onContextMenu:!0,onGotPointerCapture:!0,onLostPointerCapture:!0,onPointerCancel:!0,onPointerDown:!0,onPointerEnter:!0,onPointerMove:!0,onPointerLeave:!0,onPointerOut:!0,onPointerOver:!0,onPointerUp:!0},l={onBlur:!0,onFocus:!0},a={onKeyDown:!0,onKeyDownCapture:!0,onKeyUp:!0,onKeyUpCapture:!0},u={onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOver:!0,onMouseOut:!0,onMouseUp:!0},s={onTouchCancel:!0,onTouchCancelCapture:!0,onTouchEnd:!0,onTouchEndCapture:!0,onTouchMove:!0,onTouchMoveCapture:!0,onTouchStart:!0,onTouchStartCapture:!0},c={style:!0}},2141:function(e,t){"use strict";t.Z=e=>{if(null!=e&&1===e.nodeType&&"function"==typeof e.getBoundingClientRect)return e.getBoundingClientRect()}},2050:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n{if(null!=t){if("function"==typeof t){t(e);return}if("object"==typeof t){t.current=e;return}console.error("mergeRefs cannot handle Refs of type boolean, number or string, received ref "+String(t))}})}}n.d(t,{Z:function(){return r}}),n(2265)},2675:function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&!0===t[r]&&(n[r]=e[r]);return n}n.d(t,{Z:function(){return r}})},9647:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(1435),o=n(2319),i=n(1213),l="__reactLayoutHandler",a=(i.Z,null);function u(e,t){var n=(i.Z&&void 0!==window.ResizeObserver&&null==a&&(a=new window.ResizeObserver(function(e){e.forEach(e=>{var t=e.target,n=t[l];"function"==typeof n&&o.Z.measure(t,(t,r,o,i,l,a)=>{var u={nativeEvent:{layout:{x:t,y:r,width:o,height:i,left:l,top:a}},timeStamp:Date.now()};Object.defineProperty(u.nativeEvent,"target",{enumerable:!0,get:()=>e.target}),n(u)})})})),a);(0,r.Z)(()=>{var n=e.current;null!=n&&(n[l]=t)},[e,t]),(0,r.Z)(()=>{var t=e.current;return null!=t&&null!=n&&("function"==typeof t[l]?n.observe(t):n.unobserve(t)),()=>{null!=t&&null!=n&&n.unobserve(t)}},[e,n])}},1435:function(e,t,n){"use strict";var r=n(2265),o=n(1213).Z?r.useLayoutEffect:r.useEffect;t.Z=o},3201:function(e,t,n){"use strict";n.d(t,{Iw:function(){return s},w1:function(){return u},PE:function(){return c}});var r=n(2265),o=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),i=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","far","glk","he","iw","khw","ks","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]),l=new Map,a=(0,r.createContext)({direction:"ltr",locale:"en-US"});function u(e){return!function(e){var t=l.get(e);if(t)return t;var n=!1;if(Intl.Locale){var r=new Intl.Locale(e).maximize().script;n=o.has(r)}else{var a=e.split("-")[0];n=i.has(a)}return l.set(e,n),n}(e)?"ltr":"rtl"}function s(e){var t=e.direction,n=e.locale,o=e.children;return t||n?r.createElement(a.Provider,{children:o,value:{direction:n?u(n):t,locale:n}}):o}function c(){return(0,r.useContext)(a)}},9926:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2265),o=n(2050);function i(){for(var e=arguments.length,t=Array(e),n=0;n(0,o.Z)(...t),[...t])}},5158:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2319),o=n(2265),i="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():Object.freeze({});function l(e){var t,n;return e.pointerEvents,e.style,t=()=>e=>{null!=e&&(e.measure=t=>r.Z.measure(e,t),e.measureLayout=(t,n,o)=>r.Z.measureLayout(e,t,o,n),e.measureInWindow=t=>r.Z.measureInWindow(e,t))},(n=o.useRef(i)).current===i&&(n.current=t()),n.current}},4886:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=n(2265),o=n(2141),i=()=>{},l={},a=[];function u(e){return e>20?e%20:e}function s(e,t){var n,r,s,c=!1,d=e.changedTouches,f=e.type,p=!0===e.metaKey,h=!0===e.shiftKey,m=d&&d[0].force||0,v=u(d&&d[0].identifier||0),g=d&&d[0].clientX||e.clientX,b=d&&d[0].clientY||e.clientY,y=d&&d[0].pageX||e.pageX,S=d&&d[0].pageY||e.pageY,w="function"==typeof e.preventDefault?e.preventDefault.bind(e):i,x=e.timeStamp;function R(e){return Array.prototype.slice.call(e).map(e=>({force:e.force,identifier:u(e.identifier),get locationX(){return C(e.clientX)},get locationY(){return T(e.clientY)},pageX:e.pageX,pageY:e.pageY,target:e.target,timestamp:x}))}if(null!=d)r=R(d),s=R(e.touches);else{var E=[{force:m,identifier:v,get locationX(){return C(g)},get locationY(){return T(b)},pageX:y,pageY:S,target:e.target,timestamp:x}];r=E,s="mouseup"===f||"dragstart"===f?a:E}var k={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:e.defaultPrevented,dispatchConfig:l,eventPhase:e.eventPhase,isDefaultPrevented:()=>e.defaultPrevented,isPropagationStopped:()=>c,isTrusted:e.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:p,shiftKey:h,changedTouches:r,force:m,identifier:v,get locationX(){return C(g)},get locationY(){return T(b)},pageX:y,pageY:S,target:e.target,timestamp:x,touches:s,type:f},persist:i,preventDefault:w,stopPropagation(){c=!0},target:e.target,timeStamp:x,touchHistory:t.touchHistory};function C(e){if(n=n||(0,o.Z)(k.currentTarget))return e-n.left}function T(e){if(n=n||(0,o.Z)(k.currentTarget))return e-n.top}return k}function c(e){return"touchstart"===e||"mousedown"===e}function d(e){return"touchmove"===e||"mousemove"===e}function f(e){return"touchend"===e||"mouseup"===e||p(e)}function p(e){return"touchcancel"===e||"dragstart"===e}var h="__reactResponderId";function m(e){for(var t=[];null!=e&&e!==document.body;)t.push(e),e=e.parentNode;return t}function v(e){return e.timeStamp||e.timestamp}function g(e){var t=e.identifier;return null==t&&console.error("Touch object is missing identifier."),t}function b(e){return JSON.stringify({identifier:e.identifier,pageX:e.pageX,pageY:e.pageY,timestamp:v(e)})}function y(e){var t=e.touchBank,n=JSON.stringify(t.slice(0,20));return t.length>20&&(n+=" (original size: "+t.length+")"),n}class S{constructor(){this._touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0}}recordTouchTrack(e,t){var n=this._touchHistory;if(d(e))t.changedTouches.forEach(e=>{var t;(t=n.touchBank[g(e)])?(t.touchActive=!0,t.previousPageX=t.currentPageX,t.previousPageY=t.currentPageY,t.previousTimeStamp=t.currentTimeStamp,t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=v(e),n.mostRecentTimeStamp=v(e)):console.warn("Cannot record touch move without a touch start.\n","Touch Move: "+b(e)+"\n","Touch Bank: "+y(n))});else if(c(e))t.changedTouches.forEach(e=>{var t,r,o,i;return t=e,r=n,o=g(t),void((i=r.touchBank[o])?(i.touchActive=!0,i.startPageX=t.pageX,i.startPageY=t.pageY,i.startTimeStamp=v(t),i.currentPageX=t.pageX,i.currentPageY=t.pageY,i.currentTimeStamp=v(t),i.previousPageX=t.pageX,i.previousPageY=t.pageY,i.previousTimeStamp=v(t)):r.touchBank[o]={touchActive:!0,startPageX:t.pageX,startPageY:t.pageY,startTimeStamp:v(t),currentPageX:t.pageX,currentPageY:t.pageY,currentTimeStamp:v(t),previousPageX:t.pageX,previousPageY:t.pageY,previousTimeStamp:v(t)},r.mostRecentTimeStamp=v(t))}),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches&&(n.indexOfSingleActiveTouch=t.touches[0].identifier);else if(f(e)&&(t.changedTouches.forEach(e=>{var t;(t=n.touchBank[g(e)])?(t.touchActive=!1,t.previousPageX=t.currentPageX,t.previousPageY=t.currentPageY,t.previousTimeStamp=t.currentTimeStamp,t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=v(e),n.mostRecentTimeStamp=v(e)):console.warn("Cannot record touch end without a touch start.\n","Touch End: "+b(e)+"\n","Touch Bank: "+y(n))}),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches))for(var r=n.touchBank,o=0;o1)&&(O=!1),("mousedown"!==u||!O)&&("mousemove"!==u||!O)&&("mousemove"!==u||!(M<1))){if(O&&"mouseup"===u){0===M&&(O=!1);return}var g=c(u)&&(t=e.altKey,n=e.button,r=e.buttons,o=e.ctrlKey,i=e.type,l=!1===t&&!1===o,"touchstart"===i||"touchmove"===i||"mousedown"===i&&(0===n||1===r)&&!!l||"mousemove"===i&&1===r&&!!l),b=d(u),y=f(u),S="scroll"===u,w="select"===u||"selectionchange"===u,x=s(e,P);(g||b||y)&&(e.touches?M=e.touches.length:g?M=1:y&&(M=0),P.recordTouchTrack(u,x.nativeEvent));var R=function(e){for(var t=[],n=[],r="selectionchange"===e.type?m(window.getSelection().anchorNode):null!=e.composedPath?e.composedPath():m(e.target),o=0;o0){var T=A.idPath,L=R.idPath;if(null!=T&&null!=L){var D=function(e,t){var n=e.length,r=t.length;if(0===n||0===r||e[n-1]!==t[r-1])return null;var o=e[0],i=0,l=t[0],a=0;n-r>0&&(o=e[i=n-r],n=r),r-n>0&&(l=t[a=r-n],r=n);for(var u=n;u--;){if(o===l)return o;o=e[i++],l=t[a++]}return null}(T,L);if(null!=D){var B=L.indexOf(D)+(D===A.id?1:0);R={idPath:L.slice(B),nodePath:R.nodePath.slice(B)}}else R=null}null!=R&&null!=(a=function(e,t,n){var r=k[t.type];if(null!=r){for(var o=e.idPath,i=e.nodePath,l=r[0],a=r[1],u=r[2].bubbles,s=function(e,t,r){var i=I(e)[r];if(null!=i&&(n.currentTarget=t,!0===i(n))){var l=o.slice(o.indexOf(e));return{id:e,node:t,idPath:l}}},c=o.length-1;c>=0;c--){var d=s(o[c],i[c],l);if(null!=d)return d;if(!0===n.isPropagationStopped())return}if(u)for(var f=0;f=1&&"\n"!==n&&i}return"select"===e.type}(e),U=y&&!K&&!function(e,t){if(!t||0===t.length)return!1;for(var n=0;nz++,null==(o=r.useRef(null)).current&&(o.current=n()),o.current),l=r.useRef(!1);r.useEffect(()=>(w.Z&&null==window.__reactResponderSystemActive&&(window.addEventListener("blur",L),B.forEach(e=>{document.addEventListener(e,L)}),D.forEach(e=>{document.addEventListener(e,L,!0)}),window.__reactResponderSystemActive=!0),()=>{W(i)}),[i]),r.useEffect(()=>{var n,r=t,o=r.onMoveShouldSetResponder,a=r.onMoveShouldSetResponderCapture,u=r.onScrollShouldSetResponder,s=r.onScrollShouldSetResponderCapture,c=r.onSelectionChangeShouldSetResponder,d=r.onSelectionChangeShouldSetResponderCapture,f=r.onStartShouldSetResponder,p=r.onStartShouldSetResponderCapture,m=e.current;null!=o||null!=a||null!=u||null!=s||null!=c||null!=d||null!=f||null!=p?(n=t,null!=m&&(m[h]=i),T.set(i,n),l.current=!0):l.current&&(W(i),l.current=!1)},[t,e,i]),r.useDebugValue({isResponder:e.current===A.node}),r.useDebugValue(t)}},131:function(e,t,n){"use strict";function r(e,t){}n.d(t,{O:function(){return r}})},8650:function(e,t){"use strict";t.D=void 0;var n=new WeakMap;function r(e){var t,r,o;return null!=e&&(t=!0===e.disableCache,r=!0===e.disableMix,o=e.transform),function(){for(var e=[],i="",l=null,a=t?null:n,u=Array(arguments.length),s=0;s0;){var c=u.pop();if(null!=c&&!1!==c){if(Array.isArray(c)){for(var d=0;d=0)continue;n[r]=e[r]}return n}n.d(t,{Z:function(){return r}})},8143:function(e,t,n){"use strict";n.d(t,{x7:function(){return A},Me:function(){return E},oo:function(){return P},US:function(){return k},RR:function(){return O},cv:function(){return C},Jv:function(){return R},uY:function(){return T},dp:function(){return M}});var r=n(7848);function o(e,t,n){let o,{reference:i,floating:l}=e,a=(0,r.Qq)(t),u=(0,r.Wh)(t),s=(0,r.I4)(u),c=(0,r.k3)(t),d="y"===a,f=i.x+i.width/2-l.width/2,p=i.y+i.height/2-l.height/2,h=i[s]/2-l[s]/2;switch(c){case"top":o={x:f,y:i.y-l.height};break;case"bottom":o={x:f,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:p};break;case"left":o={x:i.x-l.width,y:p};break;default:o={x:i.x,y:i.y}}switch((0,r.hp)(t)){case"start":o[u]-=h*(n&&d?-1:1);break;case"end":o[u]+=h*(n&&d?-1:1)}return o}let i=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:a}=n,u=l.filter(Boolean),s=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=o(c,r,s),p=r,h={},m=0;for(let n=0;n{try{return e.matches(t)}catch(e){return!1}})}function g(e){return h((0,u.tF)(e)).left+(0,u.Lw)(e).scrollLeft}function b(e,t,n){let o;if("viewport"===t)o=function(e,t){let n=(0,u.Jj)(e),r=(0,u.tF)(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;let e=(0,u.Pf)();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}(e,n);else if("document"===t)o=function(e){let t=(0,u.tF)(e),n=(0,u.Lw)(e),o=e.ownerDocument.body,i=(0,r.Fp)(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=(0,r.Fp)(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),a=-n.scrollLeft+g(e),s=-n.scrollTop;return"rtl"===(0,u.Dx)(o).direction&&(a+=(0,r.Fp)(t.clientWidth,o.clientWidth)-i),{width:i,height:l,x:a,y:s}}((0,u.tF)(e));else if((0,u.kK)(t))o=function(e,t){let n=h(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,l=(0,u.Re)(e)?d(e):(0,r.ze)(1),a=e.clientWidth*l.x;return{width:a,height:e.clientHeight*l.y,x:i*l.x,y:o*l.y}}(t,n);else{let n=p(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return(0,r.JB)(o)}function y(e){return"static"===(0,u.Dx)(e).position}function S(e,t){return(0,u.Re)(e)&&"fixed"!==(0,u.Dx)(e).position?t?t(e):e.offsetParent:null}function w(e,t){let n=(0,u.Jj)(e);if(v(e))return n;if(!(0,u.Re)(e)){let t=(0,u.Ow)(e);for(;t&&!(0,u.Py)(t);){if((0,u.kK)(t)&&!y(t))return t;t=(0,u.Ow)(t)}return n}let r=S(e,t);for(;r&&(0,u.Ze)(r)&&y(r);)r=S(r,t);return r&&(0,u.Py)(r)&&y(r)&&!(0,u.hT)(r)?n:r||(0,u.gQ)(e)||n}let x=async function(e){let t=this.getOffsetParent||w,n=this.getDimensions,o=await n(e.floating);return{reference:function(e,t,n){let o=(0,u.Re)(t),i=(0,u.tF)(t),l="fixed"===n,a=h(e,!0,l,t),s={scrollLeft:0,scrollTop:0},c=(0,r.ze)(0);if(o||!o&&!l){if(("body"!==(0,u.wk)(t)||(0,u.ao)(i))&&(s=(0,u.Lw)(t)),o){let e=h(t,!0,l,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=g(i))}return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},R={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e,l="fixed"===i,a=(0,u.tF)(o),s=!!t&&v(t.floating);if(o===a||s&&l)return n;let c={scrollLeft:0,scrollTop:0},f=(0,r.ze)(1),p=(0,r.ze)(0),m=(0,u.Re)(o);if((m||!m&&!l)&&(("body"!==(0,u.wk)(o)||(0,u.ao)(a))&&(c=(0,u.Lw)(o)),(0,u.Re)(o))){let e=h(o);f=d(o),p.x=e.x+o.clientLeft,p.y=e.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+p.x,y:n.y*f.y-c.scrollTop*f.y+p.y}},getDocumentElement:u.tF,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e,l=[..."clippingAncestors"===n?v(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,u.Kx)(e,[],!1).filter(e=>(0,u.kK)(e)&&"body"!==(0,u.wk)(e)),o=null,i="fixed"===(0,u.Dx)(e).position,l=i?(0,u.Ow)(e):e;for(;(0,u.kK)(l)&&!(0,u.Py)(l);){let t=(0,u.Dx)(l),n=(0,u.hT)(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||(0,u.ao)(l)&&!n&&function e(t,n){let r=(0,u.Ow)(t);return!(r===n||!(0,u.kK)(r)||(0,u.Py)(r))&&("fixed"===(0,u.Dx)(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=(0,u.Ow)(l)}return t.set(e,r),r}(t,this._c):[].concat(n),o],a=l[0],s=l.reduce((e,n)=>{let o=b(t,n,i);return e.top=(0,r.Fp)(o.top,e.top),e.right=(0,r.VV)(o.right,e.right),e.bottom=(0,r.VV)(o.bottom,e.bottom),e.left=(0,r.Fp)(o.left,e.left),e},b(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:w,getElementRects:x,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=s(e);return{width:t,height:n}},getScale:d,isElement:u.kK,isRTL:function(e){return"rtl"===(0,u.Dx)(e).direction}};function E(e,t,n,o){let i;void 0===o&&(o={});let{ancestorScroll:l=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=o,p=c(e),m=l||a?[...p?(0,u.Kx)(p):[],...(0,u.Kx)(t)]:[];m.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let v=p&&d?function(e,t){let n,o=null,i=(0,u.tF)(e);function l(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return!function a(u,s){void 0===u&&(u=!1),void 0===s&&(s=1),l();let{left:c,top:d,width:f,height:p}=e.getBoundingClientRect();if(u||t(),!f||!p)return;let h=(0,r.GW)(d),m=(0,r.GW)(i.clientWidth-(c+f)),v={rootMargin:-h+"px "+-m+"px "+-(0,r.GW)(i.clientHeight-(d+p))+"px "+-(0,r.GW)(c)+"px",threshold:(0,r.Fp)(0,(0,r.VV)(1,s))||1},g=!0;function b(e){let t=e[0].intersectionRatio;if(t!==s){if(!g)return a();t?a(!1,t):n=setTimeout(()=>{a(!1,1e-7)},1e3)}g=!1}try{o=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(b,v)}o.observe(e)}(!0),l}(p,n):null,g=-1,b=null;s&&(b=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&b&&(b.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=b)||e.observe(t)})),n()}),p&&!f&&b.observe(p),b.observe(t));let y=f?h(e):null;return f&&function t(){let r=h(e);y&&(r.x!==y.x||r.y!==y.y||r.width!==y.width||r.height!==y.height)&&n(),y=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{l&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==v||v(),null==(e=b)||e.disconnect(),b=null,f&&cancelAnimationFrame(i)}}let k=l,C=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:u}=t,s=await a(t,e);return l===(null==(n=u.offset)?void 0:n.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}},T=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:o,placement:i}=t,{mainAxis:a=!0,crossAxis:u=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,r.ku)(e,t),d={x:n,y:o},f=await l(t,c),p=(0,r.Qq)((0,r.k3)(i)),h=(0,r.Rn)(p),m=d[h],v=d[p];if(a){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=m+f[e],o=m-f[t];m=(0,r.uZ)(n,m,o)}if(u){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=v+f[e],o=v-f[t];v=(0,r.uZ)(n,v,o)}let g=s.fn({...t,[h]:m,[p]:v});return{...g,data:{x:g.x-n,y:g.y-o}}}}},O=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o,i,a,u;let{placement:s,middlewareData:c,rects:d,initialPlacement:f,platform:p,elements:h}=t,{mainAxis:m=!0,crossAxis:v=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:S=!0,...w}=(0,r.ku)(e,t);if(null!=(n=c.arrow)&&n.alignmentOffset)return{};let x=(0,r.k3)(s),R=(0,r.k3)(f)===f,E=await (null==p.isRTL?void 0:p.isRTL(h.floating)),k=g||(R||!S?[(0,r.pw)(f)]:(0,r.gy)(f));g||"none"===y||k.push(...(0,r.KX)(f,S,y,E));let C=[f,...k],T=await l(t,w),O=[],M=(null==(o=c.flip)?void 0:o.overflows)||[];if(m&&O.push(T[x]),v){let e=(0,r.i8)(s,d,E);O.push(T[e[0]],T[e[1]])}if(M=[...M,{placement:s,overflows:O}],!O.every(e=>e<=0)){let e=((null==(i=c.flip)?void 0:i.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:M},reset:{placement:t}};let n=null==(a=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(b){case"bestFit":{let e=null==(u=M.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:u[0];e&&(n=e);break}case"initialPlacement":n=f}if(s!==n)return{reset:{placement:n}}}return{}}}},M=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,o;let{placement:i,rects:a,platform:u,elements:s}=t,{apply:c=()=>{},...d}=(0,r.ku)(e,t),f=await l(t,d),p=(0,r.k3)(i),h=(0,r.hp)(i),m="y"===(0,r.Qq)(i),{width:v,height:g}=a.floating;"top"===p||"bottom"===p?(n=p,o=h===(await (null==u.isRTL?void 0:u.isRTL(s.floating))?"start":"end")?"left":"right"):(o=p,n="end"===h?"top":"bottom");let b=g-f.top-f.bottom,y=v-f.left-f.right,S=(0,r.VV)(g-f[n],b),w=(0,r.VV)(v-f[o],y),x=!t.middlewareData.shift,R=S,E=w;if(m?E=h||x?(0,r.VV)(w,y):y:R=h||x?(0,r.VV)(S,b):b,x&&!h){let e=(0,r.Fp)(f.left,0),t=(0,r.Fp)(f.right,0),n=(0,r.Fp)(f.top,0),o=(0,r.Fp)(f.bottom,0);m?E=v-2*(0!==e||0!==t?e+t:(0,r.Fp)(f.left,f.right)):R=g-2*(0!==n||0!==o?n+o:(0,r.Fp)(f.top,f.bottom))}await c({...t,availableWidth:E,availableHeight:R});let k=await u.getDimensions(s.floating);return v!==k.width||g!==k.height?{reset:{rects:!0}}:{}}}},A=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:i,rects:l,platform:a,elements:u,middlewareData:s}=t,{element:c,padding:d=0}=(0,r.ku)(e,t)||{};if(null==c)return{};let f=(0,r.yd)(d),p={x:n,y:o},h=(0,r.Wh)(i),m=(0,r.I4)(h),v=await a.getDimensions(c),g="y"===h,b=g?"clientHeight":"clientWidth",y=l.reference[m]+l.reference[h]-p[h]-l.floating[m],S=p[h]-l.reference[h],w=await (null==a.getOffsetParent?void 0:a.getOffsetParent(c)),x=w?w[b]:0;x&&await (null==a.isElement?void 0:a.isElement(w))||(x=u.floating[b]||l.floating[m]);let R=x/2-v[m]/2-1,E=(0,r.VV)(f[g?"top":"left"],R),k=(0,r.VV)(f[g?"bottom":"right"],R),C=x-v[m]-k,T=x/2-v[m]/2+(y/2-S/2),O=(0,r.uZ)(E,T,C),M=!s.arrow&&null!=(0,r.hp)(i)&&T!==O&&l.reference[m]/2-(T{let r=new Map,o={platform:R,...n},l={...o.platform,_c:r};return i(e,t,{...o,platform:l})}},4674:function(e,t,n){"use strict";n.d(t,{Jv:function(){return r.Jv},Me:function(){return r.Me},RR:function(){return m},YF:function(){return d},cv:function(){return p},dp:function(){return v},uY:function(){return h},x7:function(){return g}});var r=n(8143),o=n(2265),i=n(4887),l="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function a(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!a(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function u(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function s(e,t){let n=u(e);return Math.round(t*n)/n}function c(e){let t=o.useRef(e);return l(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:f,elements:{reference:p,floating:h}={},transform:m=!0,whileElementsMounted:v,open:g}=e,[b,y]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[S,w]=o.useState(d);a(S,d)||w(d);let[x,R]=o.useState(null),[E,k]=o.useState(null),C=o.useCallback(e=>{e!==A.current&&(A.current=e,R(e))},[]),T=o.useCallback(e=>{e!==P.current&&(P.current=e,k(e))},[]),O=p||x,M=h||E,A=o.useRef(null),P=o.useRef(null),I=o.useRef(b),L=null!=v,D=c(v),B=c(f),W=o.useCallback(()=>{if(!A.current||!P.current)return;let e={placement:t,strategy:n,middleware:S};B.current&&(e.platform=B.current),(0,r.oo)(A.current,P.current,e).then(e=>{let t={...e,isPositioned:!0};N.current&&!a(I.current,t)&&(I.current=t,i.flushSync(()=>{y(t)}))})},[S,t,n,B]);l(()=>{!1===g&&I.current.isPositioned&&(I.current.isPositioned=!1,y(e=>({...e,isPositioned:!1})))},[g]);let N=o.useRef(!1);l(()=>(N.current=!0,()=>{N.current=!1}),[]),l(()=>{if(O&&(A.current=O),M&&(P.current=M),O&&M){if(D.current)return D.current(O,M,W);W()}},[O,M,W,D,L]);let z=o.useMemo(()=>({reference:A,floating:P,setReference:C,setFloating:T}),[C,T]),j=o.useMemo(()=>({reference:O,floating:M}),[O,M]),H=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=s(j.floating,b.x),r=s(j.floating,b.y);return m?{...e,transform:"translate("+t+"px, "+r+"px)",...u(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,m,j.floating,b.x,b.y]);return o.useMemo(()=>({...b,update:W,refs:z,elements:j,floatingStyles:H}),[b,W,z,j,H])}let f=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:o}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.x7)({element:n.current,padding:o}).fn(t):{}:n?(0,r.x7)({element:n,padding:o}).fn(t):{}}}),p=(e,t)=>({...(0,r.cv)(e),options:[e,t]}),h=(e,t)=>({...(0,r.uY)(e),options:[e,t]}),m=(e,t)=>({...(0,r.RR)(e),options:[e,t]}),v=(e,t)=>({...(0,r.dp)(e),options:[e,t]}),g=(e,t)=>({...f(e),options:[e,t]})},4243:function(e,t,n){"use strict";let r;n.d(t,{wD:function(){return e2},y0:function(){return e3},ll:function(){return eq},aN:function(){return tg},xp:function(){return tS},eS:function(){return e7},Qu:function(){return eA},tj:function(){return eM},bQ:function(){return te},YF:function(){return tt},KK:function(){return tn},XI:function(){return eC},Rz:function(){return tb},NI:function(){return tl},c0:function(){return tf},qs:function(){return th},ox:function(){return tm}});var o=n(2265),i=n.t(o,2),l=n(5224);function a(e){let t=e.activeElement;for(;(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function u(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,l.Zq)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function s(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function c(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function d(e){return 0===e.mozInputSource&&!!e.isTrusted||(h()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function f(e){return!c().includes("jsdom/")&&(!h()&&0===e.width&&0===e.height||h()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function p(){return/apple/i.test(navigator.vendor)}function h(){let e=/android/i;return e.test(s())||e.test(c())}function m(){return s().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function v(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function g(e){return(null==e?void 0:e.ownerDocument)||document}function b(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function y(e){return"composedPath"in e?e.composedPath()[0]:e.target}function S(e){return(0,l.Re)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function w(e){e.preventDefault(),e.stopPropagation()}function x(e){return!!e&&"combobox"===e.getAttribute("role")&&S(e)}var R=n(7848),E=n(4674),k=n(8143),C='input:not([inert]),select:not([inert]),textarea:not([inert]),a[href]:not([inert]),button:not([inert]),[tabindex]:not(slot):not([inert]),audio[controls]:not([inert]),video[controls]:not([inert]),[contenteditable]:not([contenteditable="false"]):not([inert]),details>summary:first-of-type:not([inert]),details:not([inert])',T="undefined"==typeof Element,O=T?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,M=!T&&Element.prototype.getRootNode?function(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},A=function e(t,n){void 0===n&&(n=!0);var r,o=null==t?void 0:null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},P=function(e){var t,n=null==e?void 0:null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n},I=function(e,t,n){if(A(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(C));return t&&O.call(e,C)&&r.unshift(e),r=r.filter(n)},L=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var l=i.shift();if(!A(l,!1)){if("SLOT"===l.tagName){var a=l.assignedElements(),u=e(a.length?a:l.children,!0,r);r.flatten?o.push.apply(o,u):o.push({scopeParent:l,candidates:u})}else{O.call(l,C)&&r.filter(l)&&(n||!t.includes(l))&&o.push(l);var s=l.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(l),c=!A(s,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(s&&c){var d=e(!0===s?l.children:s.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:l,candidates:d})}else i.unshift.apply(i,l.children)}}}return o},D=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},B=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||P(e))&&!D(e)?0:e.tabIndex},W=function(e,t){var n=B(e);return n<0&&t&&!D(e)?0:n},N=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},z=function(e){return"INPUT"===e.tagName},j=function(e,t){for(var n=0;nsummary:first-of-type")?e.parentElement:e;if(O.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return _(e)}else{if("function"==typeof r){for(var i=e;e;){var l=e.parentElement,a=M(e);if(l&&!l.shadowRoot&&!0===r(l))return _(e);e=e.assignedSlot?e.assignedSlot:l||a===e.ownerDocument?l:a.host}e=i}if(F(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},V=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;nB(t))&&(r=e,!((o=t).disabled||A(o)||z(o)&&"hidden"===o.type||Z(o,r)||"DETAILS"===o.tagName&&Array.prototype.slice.apply(o.children).some(function(e){return"SUMMARY"===e.tagName})||V(o)))},K=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||t>=0},U=function e(t){var n=[],r=[];return t.forEach(function(t,o){var i=!!t.scopeParent,l=i?t.scopeParent:t,a=W(l,i),u=i?e(t.candidates):l;0===a?i?n.push.apply(n,u):n.push(l):r.push({documentOrder:o,tabIndex:a,item:t,isScope:i,content:u})}),r.sort(N).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},Y=function(e,t){return U((t=t||{}).getShadowRoot?L([e],t.includeContainer,{filter:$.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:K}):I(e,t.includeContainer,$.bind(null,t)))},X=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==O.call(e,C)&&$(t,e)},q=n(4887);let G={...i},J=G.useInsertionEffect||(e=>e());function Q(e){let t=o.useRef(()=>{});return J(()=>{t.current=e}),o.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r=e.current.length}function el(e,t){return eu(e,{disabledIndices:t})}function ea(e,t){return eu(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function eu(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=void 0===t?{}:t,l=e.current,a=n;do a+=r?-i:i;while(a>=0&&a<=l.length-1&&es(l,a,o));return a}function es(e,t,n){if(n)return n.includes(t);let r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}let ec=0;function ed(e,t){void 0===t&&(t={});let{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(ec);let i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():ec=requestAnimationFrame(i)}var ef="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function ep(){return(ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t"floating-ui-"+Math.random().toString(36).slice(2,6)+em++,eg=G.useId||function(){let[e,t]=o.useState(()=>eh?ev():void 0);return ef(()=>{null==e&&t(ev())},[]),o.useEffect(()=>{eh=!0},[]),e},eb=o.createContext(null),ey=o.createContext(null),eS=()=>{var e;return(null==(e=o.useContext(eb))?void 0:e.id)||null},ew=()=>o.useContext(ey);function ex(e){return"data-floating-ui-"+e}function eR(e){let t=(0,o.useRef)(e);return ef(()=>{t.current=e}),t}let eE=ex("safe-polygon");function ek(e,t,n){return n&&!v(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function eC(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,dataRef:i,events:a,elements:{domReference:s,floating:c}}=e,{enabled:d=!0,delay:f=0,handleClose:p=null,mouseOnly:h=!1,restMs:m=0,move:b=!0}=t,y=ew(),S=eS(),w=eR(p),x=eR(f),R=o.useRef(),E=o.useRef(-1),k=o.useRef(),C=o.useRef(-1),T=o.useRef(!0),O=o.useRef(!1),M=o.useRef(()=>{}),A=o.useCallback(()=>{var e;let t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[i]);o.useEffect(()=>{if(d)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(E.current),clearTimeout(C.current),T.current=!0)}},[d,a]),o.useEffect(()=>{if(!d||!w.current||!n)return;function e(e){A()&&r(!1,e,"hover")}let t=g(c).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[c,n,r,d,w,A]);let P=o.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");let o=ek(x.current,"close",R.current);o&&!k.current?(clearTimeout(E.current),E.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(clearTimeout(E.current),r(!1,e,n))},[x,r]),I=Q(()=>{M.current(),k.current=void 0}),L=Q(()=>{if(O.current){let e=g(c).body;e.style.pointerEvents="",e.removeAttribute(eE),O.current=!1}});return o.useEffect(()=>{if(d&&(0,l.kK)(s))return n&&s.addEventListener("mouseleave",a),null==c||c.addEventListener("mouseleave",a),b&&s.addEventListener("mousemove",t,{once:!0}),s.addEventListener("mouseenter",t),s.addEventListener("mouseleave",o),()=>{n&&s.removeEventListener("mouseleave",a),null==c||c.removeEventListener("mouseleave",a),b&&s.removeEventListener("mousemove",t),s.removeEventListener("mouseenter",t),s.removeEventListener("mouseleave",o)};function e(){return!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type)}function t(e){if(clearTimeout(E.current),T.current=!1,h&&!v(R.current)||m>0&&!ek(x.current,"open"))return;let t=ek(x.current,"open",R.current);t?E.current=window.setTimeout(()=>{r(!0,e,"hover")},t):r(!0,e,"hover")}function o(t){if(e())return;M.current();let r=g(c);if(clearTimeout(C.current),w.current&&i.current.floatingContext){n||clearTimeout(E.current),k.current=w.current({...i.current.floatingContext,tree:y,x:t.clientX,y:t.clientY,onClose(){L(),I(),P(t,!0,"safe-polygon")}});let e=k.current;r.addEventListener("mousemove",e),M.current=()=>{r.removeEventListener("mousemove",e)};return}"touch"===R.current&&u(c,t.relatedTarget)||P(t)}function a(t){!e()&&i.current.floatingContext&&(null==w.current||w.current({...i.current.floatingContext,tree:y,x:t.clientX,y:t.clientY,onClose(){L(),I(),P(t)}})(t))}},[s,c,d,e,h,m,b,P,I,L,r,n,y,x,w,i]),ef(()=>{var e,t;if(d&&n&&null!=(e=w.current)&&e.__options.blockPointerEvents&&A()){let e=g(c).body;if(e.setAttribute(eE,""),e.style.pointerEvents="none",O.current=!0,(0,l.kK)(s)&&c){let e=null==y||null==(t=y.nodesRef.current.find(e=>e.id===S))||null==(t=t.context)?void 0:t.elements.floating;return e&&(e.style.pointerEvents=""),s.style.pointerEvents="auto",c.style.pointerEvents="auto",()=>{s.style.pointerEvents="",c.style.pointerEvents=""}}}},[d,n,S,c,s,y,w,A]),ef(()=>{n||(R.current=void 0,I(),L())},[n,I,L]),o.useEffect(()=>()=>{I(),clearTimeout(E.current),clearTimeout(C.current),L()},[d,s,I,L]),o.useMemo(()=>{if(!d)return{};function e(e){R.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(e){function t(){T.current||r(!0,e.nativeEvent,"hover")}(!h||v(R.current))&&!n&&0!==m&&(clearTimeout(C.current),"touch"===R.current?t():C.current=window.setTimeout(t,m))}},floating:{onMouseEnter(){clearTimeout(E.current)},onMouseLeave(e){P(e.nativeEvent,!1)}}}},[d,h,n,m,r,P])}let eT=()=>{},eO=o.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:eT,setState:eT,isInstantPhase:!1}),eM=()=>o.useContext(eO);function eA(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,floatingId:o}=e,{id:i}=t,l=null!=i?i:o,a=eM(),{currentId:u,setCurrentId:s,initialDelay:c,setState:d,timeoutMs:f}=a;return ef(()=>{u&&(d({delay:{open:1,close:ek(c,"close")}}),u!==l&&r(!1))},[l,r,d,u,c]),ef(()=>{function e(){r(!1),d({delay:c,currentId:null})}if(u&&!n&&u===l){if(f){let t=window.setTimeout(e,f);return()=>{clearTimeout(t)}}e()}},[n,d,u,l,r,c,f]),ef(()=>{s!==eT&&n&&s(l)},[n,s,l]),a}function eP(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(r);return n}let eI=new WeakMap,eL=new WeakSet,eD={},eB=0,eW=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,eN=e=>e&&(e.host||eN(e.parentNode)),ez=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=eN(t);return e.contains(n)?n:null}).filter(e=>null!=e);function ej(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);let r=g(e[0]).body;return function(e,t,n,r){let o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,a=ez(t,e),u=new Set,s=new Set(a),c=[];eD[o]||(eD[o]=new WeakMap);let d=eD[o];return a.forEach(function e(t){!(!t||u.has(t))&&(u.add(t),t.parentNode&&e(t.parentNode))}),function e(t){!t||s.has(t)||[].forEach.call(t.children,t=>{if("script"!==(0,l.wk)(t)){if(u.has(t))e(t);else{let e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(eI.get(t)||0)+1,l=(d.get(t)||0)+1;eI.set(t,r),d.set(t,l),c.push(t),1===r&&n&&eL.add(t),1===l&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}}})}(t),u.clear(),eB++,()=>{c.forEach(e=>{let t=(eI.get(e)||0)-1,n=(d.get(e)||0)-1;eI.set(e,t),d.set(e,n),t||(!eL.has(e)&&i&&e.removeAttribute(i),eL.delete(e)),n||e.removeAttribute(o)}),--eB||(eI=new WeakMap,eI=new WeakMap,eL=new WeakSet,eD={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}let eH=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function eF(e,t){let n=Y(e,eH());"prev"===t&&n.reverse();let r=n.indexOf(a(g(e)));return n.slice(r+1)[0]}function e_(){return eF(document.body,"next")}function eZ(){return eF(document.body,"prev")}function eV(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!u(n,r)}let e$={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function eK(e){"Tab"===e.key&&(e.target,clearTimeout(r))}let eU=o.forwardRef(function(e,t){let[n,r]=o.useState();ef(()=>(p()&&r("button"),document.addEventListener("keydown",eK),()=>{document.removeEventListener("keydown",eK)}),[]);let i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[ex("focus-guard")]:"",style:e$};return o.createElement("span",ep({},e,i))}),eY=o.createContext(null),eX=ex("portal");function eq(e){let{children:t,id:n,root:r=null,preserveTabOrder:i=!0}=e,a=function(e){void 0===e&&(e={});let{id:t,root:n}=e,r=eg(),i=eG(),[a,u]=o.useState(null),s=o.useRef(null);return ef(()=>()=>{null==a||a.remove(),queueMicrotask(()=>{s.current=null})},[a]),ef(()=>{if(!r||s.current)return;let e=t?document.getElementById(t):null;if(!e)return;let n=document.createElement("div");n.id=r,n.setAttribute(eX,""),e.appendChild(n),s.current=n,u(n)},[t,r]),ef(()=>{if(!r||s.current)return;let e=n||(null==i?void 0:i.portalNode);e&&!(0,l.kK)(e)&&(e=e.current),e=e||document.body;let o=null;t&&((o=document.createElement("div")).id=t,e.appendChild(o));let a=document.createElement("div");a.id=r,a.setAttribute(eX,""),(e=o||e).appendChild(a),s.current=a,u(a)},[t,n,r,i]),a}({id:n,root:r}),[u,s]=o.useState(null),c=o.useRef(null),d=o.useRef(null),f=o.useRef(null),p=o.useRef(null),h=!!u&&!u.modal&&u.open&&i&&!!(r||a);return o.useEffect(()=>{if(a&&i&&(null==u||!u.modal))return a.addEventListener("focusin",e,!0),a.addEventListener("focusout",e,!0),()=>{a.removeEventListener("focusin",e,!0),a.removeEventListener("focusout",e,!0)};function e(e){a&&eV(e)&&("focusin"===e.type?function(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}:function(e){Y(e,eH()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})})(a)}},[a,i,null==u?void 0:u.modal]),o.createElement(eY.Provider,{value:o.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:c,afterOutsideRef:d,beforeInsideRef:f,afterInsideRef:p,portalNode:a,setFocusManagerState:s}),[i,a])},h&&a&&o.createElement(eU,{"data-type":"outside",ref:c,onFocus:e=>{if(eV(e,a)){var t;null==(t=f.current)||t.focus()}else{let e=eZ()||(null==u?void 0:u.refs.domReference.current);null==e||e.focus()}}}),h&&a&&o.createElement("span",{"aria-owns":a.id,style:e$}),a&&(0,q.createPortal)(t,a),h&&a&&o.createElement(eU,{"data-type":"outside",ref:d,onFocus:e=>{if(eV(e,a)){var t;null==(t=p.current)||t.focus()}else{let t=e_()||(null==u?void 0:u.refs.domReference.current);null==t||t.focus(),(null==u?void 0:u.closeOnFocusOut)&&(null==u||u.onOpenChange(!1,e.nativeEvent))}}}))}let eG=()=>o.useContext(eY),eJ=[];function eQ(e){eJ=eJ.filter(e=>e.isConnected);let t=e;if(t&&"body"!==(0,l.wk)(t)){if(!X(t,eH())){let e=Y(t,eH())[0];e&&(t=e)}eJ.push(t),eJ.length>20&&(eJ=eJ.slice(-20))}}function e0(){return eJ.slice().reverse().find(e=>e.isConnected)}let e1=o.forwardRef(function(e,t){return o.createElement("button",ep({},e,{type:"button",ref:t,tabIndex:-1,style:e$}))});function e2(e){let{context:t,children:n,disabled:r=!1,order:i=["content"],guards:s=!0,initialFocus:c=0,returnFocus:p=!0,modal:h=!0,visuallyHiddenDismiss:m=!1,closeOnFocusOut:v=!0}=e,{open:b,refs:S,nodeId:R,onOpenChange:E,events:k,dataRef:C,elements:{domReference:T,floating:O}}=t,M="number"==typeof c&&c<0,A=x(T)&&M,P=!eW()||s,I=eR(i),L=eR(c),D=eR(p),B=ew(),W=eG(),N=o.useRef(null),z=o.useRef(null),j=o.useRef(!1),H=o.useRef(!1),F=null!=W,_=o.useCallback(function(e){return void 0===e&&(e=O),e?Y(e,eH()):[]},[O]),Z=o.useCallback(e=>{let t=_(e);return I.current.map(e=>T&&"reference"===e?T:O&&"floating"===e?O:t).filter(Boolean).flat()},[T,O,I,_]);function V(e){return!r&&m&&h?o.createElement(e1,{ref:"start"===e?N:z,onClick:e=>E(!1,e.nativeEvent)},"string"==typeof m?m:"Dismiss"):null}o.useEffect(()=>{if(r||!h)return;function e(e){if("Tab"===e.key){u(O,a(g(O)))&&0===_().length&&!A&&w(e);let t=Z(),n=y(e);"reference"===I.current[0]&&n===T&&(w(e),e.shiftKey?ed(t[t.length-1]):ed(t[1])),"floating"===I.current[1]&&n===O&&e.shiftKey&&(w(e),ed(t[0]))}}let t=g(O);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,T,O,h,I,A,_,Z]),o.useEffect(()=>{if(!r&&v&&O&&(0,l.Re)(T))return T.addEventListener("focusout",t),T.addEventListener("pointerdown",e),h||O.addEventListener("focusout",t),()=>{T.removeEventListener("focusout",t),T.removeEventListener("pointerdown",e),h||O.removeEventListener("focusout",t)};function e(){H.current=!0,setTimeout(()=>{H.current=!1})}function t(e){let t=e.relatedTarget;queueMicrotask(()=>{let n=!(u(T,t)||u(O,t)||u(t,O)||u(null==W?void 0:W.portalNode,t)||null!=t&&t.hasAttribute(ex("focus-guard"))||B&&(eP(B.nodesRef.current,R).find(e=>{var n,r;return u(null==(n=e.context)?void 0:n.elements.floating,t)||u(null==(r=e.context)?void 0:r.elements.domReference,t)})||(function(e,t){var n;let r=[],o=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;o;){let t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r})(B.nodesRef.current,R).find(e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t})));t&&n&&!H.current&&t!==e0()&&(j.current=!0,E(!1,e))})}},[r,T,O,h,R,B,W,E,v]),o.useEffect(()=>{var e;if(r)return;let t=Array.from((null==W||null==(e=W.portalNode)?void 0:e.querySelectorAll("["+ex("portal")+"]"))||[]);if(O){let e=[O,...t,N.current,z.current,I.current.includes("reference")||A?T:null].filter(e=>null!=e),n=h||A?ej(e,P,!P):ej(e);return()=>{n()}}},[r,T,O,h,I,W,A,P]),ef(()=>{if(r||!O)return;let e=a(g(O));queueMicrotask(()=>{let t=Z(O),n=L.current,r=("number"==typeof n?t[n]:n.current)||O,o=u(O,e);M||o||!b||ed(r,{preventScroll:r===O})})},[r,b,O,M,Z,L]),ef(()=>{if(r||!O)return;let e=!1,t=g(O),n=a(t),o=C.current.openEvent;function i(t){let{open:n,reason:r,event:i,nested:l}=t;n&&(o=i),"escape-key"===r&&S.domReference.current&&eQ(S.domReference.current),"hover"===r&&"mouseleave"===i.type&&(j.current=!0),"outside-press"===r&&(l?(j.current=!1,e=!0):j.current=!(d(i)||f(i)))}return eQ(n),k.on("openchange",i),()=>{k.off("openchange",i);let n=a(t),r=u(O,n)||B&&eP(B.nodesRef.current,R).some(e=>{var t;return u(null==(t=e.context)?void 0:t.elements.floating,n)});(r||o&&["click","mousedown"].includes(o.type))&&S.domReference.current&&eQ(S.domReference.current);let s=e0();D.current&&!j.current&&(0,l.Re)(s)&&(s===n||n===t.body||r)&&ed(s,{cancelPrevious:!1,preventScroll:e})}},[r,O,D,C,S,k,B,R]),ef(()=>{if(!r&&W)return W.setFocusManagerState({modal:h,closeOnFocusOut:v,open:b,onOpenChange:E,refs:S}),()=>{W.setFocusManagerState(null)}},[r,W,h,b,E,S,v]),ef(()=>{if(r||!O||"function"!=typeof MutationObserver||M)return;let e=()=>{let e=O.getAttribute("tabindex");I.current.includes("floating")||a(g(O))!==S.domReference.current&&0===_().length?"0"!==e&&O.setAttribute("tabindex","0"):"-1"!==e&&O.setAttribute("tabindex","-1")};e();let t=new MutationObserver(e);return t.observe(O,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}},[r,O,S,I,_,M]);let $=!r&&P&&(F||h);return o.createElement(o.Fragment,null,$&&o.createElement(eU,{"data-type":"inside",ref:null==W?void 0:W.beforeInsideRef,onFocus:e=>{if(h){let e=Z();ed("reference"===i[0]?e[0]:e[e.length-1])}else if(null!=W&&W.preserveTabOrder&&W.portalNode){if(j.current=!1,eV(e,W.portalNode)){let e=e_()||T;null==e||e.focus()}else{var t;null==(t=W.beforeOutsideRef.current)||t.focus()}}}}),!A&&V("start"),n,V("end"),$&&o.createElement(eU,{"data-type":"inside",ref:null==W?void 0:W.afterInsideRef,onFocus:e=>{if(h)ed(Z()[0]);else if(null!=W&&W.preserveTabOrder&&W.portalNode){if(v&&(j.current=!0),eV(e,W.portalNode)){let e=eZ()||T;null==e||e.focus()}else{var t;null==(t=W.afterOutsideRef.current)||t.focus()}}}}))}let e5=new Set,e3=o.forwardRef(function(e,t){let{lockScroll:n=!1,...r}=e,i=eg();return ef(()=>{if(!n)return;e5.add(i);let e=/iP(hone|ad|od)|iOS/.test(s()),t=document.body.style,r=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth,l=t.left?parseFloat(t.left):window.pageXOffset,a=t.top?parseFloat(t.top):window.pageYOffset;if(t.overflow="hidden",o&&(t[r]=o+"px"),e){var u,c;let e=(null==(u=window.visualViewport)?void 0:u.offsetLeft)||0;Object.assign(t,{position:"fixed",top:-(a-Math.floor((null==(c=window.visualViewport)?void 0:c.offsetTop)||0))+"px",left:-(l-Math.floor(e))+"px",right:"0"})}return()=>{e5.delete(i),0===e5.size&&(Object.assign(t,{overflow:"",[r]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(l,a)))}},[i,n]),o.createElement("div",ep({ref:t},r,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}}))});function e4(e){return(0,l.Re)(e.target)&&"BUTTON"===e.target.tagName}function e7(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,dataRef:i,elements:{domReference:l}}=e,{enabled:a=!0,event:u="click",toggle:s=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0}=t,f=o.useRef(),p=o.useRef(!1);return o.useMemo(()=>a?{reference:{onPointerDown(e){f.current=e.pointerType},onMouseDown(e){0!==e.button||v(f.current,!0)&&c||"click"===u||(n&&s&&(!i.current.openEvent||"mousedown"===i.current.openEvent.type)?r(!1,e.nativeEvent,"click"):(e.preventDefault(),r(!0,e.nativeEvent,"click")))},onClick(e){if("mousedown"===u&&f.current){f.current=void 0;return}v(f.current,!0)&&c||(n&&s&&(!i.current.openEvent||"click"===i.current.openEvent.type)?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!d||e4(e)||(" "!==e.key||S(l)||(e.preventDefault(),p.current=!0),"Enter"===e.key&&(n&&s?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click")))},onKeyUp(e){!(e.defaultPrevented||!d||e4(e)||S(l))&&" "===e.key&&p.current&&(p.current=!1,n&&s?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click"))}}}:{},[a,i,u,c,d,l,s,n,r])}let e9={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},e8={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},e6=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function te(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,elements:{reference:i,domReference:a,floating:s},dataRef:c}=e,{enabled:d=!0,escapeKey:f=!0,outsidePress:p=!0,outsidePressEvent:h="pointerdown",referencePress:m=!1,referencePressEvent:v="pointerdown",ancestorScroll:S=!1,bubbles:w,capture:x}=t,R=ew(),E=Q("function"==typeof p?p:()=>!1),k="function"==typeof p?E:p,C=o.useRef(!1),T=o.useRef(!1),{escapeKey:O,outsidePress:M}=e6(w),{escapeKey:A,outsidePress:P}=e6(x),I=Q(e=>{var t;if(!n||!d||!f||"Escape"!==e.key)return;let o=null==(t=c.current.floatingContext)?void 0:t.nodeId,i=R?eP(R.nodesRef.current,o):[];if(!O&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,"nativeEvent"in e?e.nativeEvent:e,"escape-key")}),L=Q(e=>{var t;let n=()=>{var t;I(e),null==(t=y(e))||t.removeEventListener("keydown",n)};null==(t=y(e))||t.addEventListener("keydown",n)}),D=Q(e=>{var t;let n=C.current;C.current=!1;let o=T.current;if(T.current=!1,"click"===h&&o||n||"function"==typeof k&&!k(e))return;let i=y(e),d="["+ex("inert")+"]",f=g(s).querySelectorAll(d),p=(0,l.kK)(i)?i:null;for(;p&&!(0,l.Py)(p);){let e=(0,l.Ow)(p);if((0,l.Py)(e)||!(0,l.kK)(e))break;p=e}if(f.length&&(0,l.kK)(i)&&!i.matches("html,body")&&!u(i,s)&&Array.from(f).every(e=>!u(p,e)))return;if((0,l.Re)(i)&&s){let t=i.clientWidth>0&&i.scrollWidth>i.clientWidth,n=i.clientHeight>0&&i.scrollHeight>i.clientHeight,r=n&&e.offsetX>i.clientWidth;if(n&&"rtl"===(0,l.Dx)(i).direction&&(r=e.offsetX<=i.offsetWidth-i.clientWidth),r||t&&e.offsetY>i.clientHeight)return}let m=null==(t=c.current.floatingContext)?void 0:t.nodeId,v=R&&eP(R.nodesRef.current,m).some(t=>{var n;return b(e,null==(n=t.context)?void 0:n.elements.floating)});if(b(e,s)||b(e,a)||v)return;let S=R?eP(R.nodesRef.current,m):[];if(S.length>0){let e=!0;if(S.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,"outside-press")}),B=Q(e=>{var t;let n=()=>{var t;D(e),null==(t=y(e))||t.removeEventListener(h,n)};null==(t=y(e))||t.addEventListener(h,n)});return o.useEffect(()=>{if(!n||!d)return;function e(e){r(!1,e,"ancestor-scroll")}c.current.__escapeKeyBubbles=O,c.current.__outsidePressBubbles=M;let t=g(s);f&&t.addEventListener("keydown",A?L:I,A),k&&t.addEventListener(h,P?B:D,P);let o=[];return S&&((0,l.kK)(a)&&(o=(0,l.Kx)(a)),(0,l.kK)(s)&&(o=o.concat((0,l.Kx)(s))),!(0,l.kK)(i)&&i&&i.contextElement&&(o=o.concat((0,l.Kx)(i.contextElement)))),(o=o.filter(e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})).forEach(t=>{t.addEventListener("scroll",e,{passive:!0})}),()=>{f&&t.removeEventListener("keydown",A?L:I,A),k&&t.removeEventListener(h,P?B:D,P),o.forEach(t=>{t.removeEventListener("scroll",e)})}},[c,s,a,i,f,k,h,n,r,S,d,O,M,I,A,L,D,P,B]),o.useEffect(()=>{C.current=!1},[k,h]),o.useMemo(()=>d?{reference:{onKeyDown:I,[e9[v]]:e=>{m&&r(!1,e.nativeEvent,"reference-press")}},floating:{onKeyDown:I,onMouseDown(){T.current=!0},onMouseUp(){T.current=!0},[e8[h]]:()=>{C.current=!0}}}:{},[d,m,h,v,r,I])}function tt(e){void 0===e&&(e={});let{nodeId:t}=e,n=function(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=eg(),l=o.useRef({}),[a]=o.useState(()=>(function(){let e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}})()),u=null!=eS(),[s,c]=o.useState(r.reference),d=Q((e,t,r)=>{l.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:u}),null==n||n(e,t,r)}),f=o.useMemo(()=>({setPositionReference:c}),[]),p=o.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return o.useMemo(()=>({dataRef:l,open:t,onOpenChange:d,elements:p,events:a,floatingId:i,refs:f}),[t,d,p,a,i,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,u]=o.useState(null),[s,c]=o.useState(null),d=(null==i?void 0:i.reference)||a,f=o.useRef(null),p=ew();ef(()=>{d&&(f.current=d)},[d]);let h=(0,E.YF)({...e,elements:{...i,...s&&{reference:s}}}),m=o.useCallback(e=>{let t=(0,l.kK)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),h.refs.setReference(t)},[h.refs]),v=o.useCallback(e=>{((0,l.kK)(e)||null===e)&&(f.current=e,u(e)),((0,l.kK)(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!(0,l.kK)(e))&&h.refs.setReference(e)},[h.refs]),g=o.useMemo(()=>({...h.refs,setReference:v,setPositionReference:m,domReference:f}),[h.refs,v,m]),b=o.useMemo(()=>({...h.elements,domReference:d}),[h.elements,d]),y=o.useMemo(()=>({...h,...r,refs:g,elements:b,nodeId:t}),[h,g,b,t,r]);return ef(()=>{r.dataRef.current.floatingContext=y;let e=null==p?void 0:p.nodesRef.current.find(e=>e.id===t);e&&(e.context=y)}),o.useMemo(()=>({...h,context:y,refs:g,elements:b}),[h,g,b,y])}function tn(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,events:i,dataRef:s,elements:{domReference:c}}=e,{enabled:d=!0,visibleOnly:h=!0}=t,v=o.useRef(!1),b=o.useRef(),w=o.useRef(!0);return o.useEffect(()=>{if(!d)return;let e=(0,l.Jj)(c);function t(){!n&&(0,l.Re)(c)&&c===a(g(c))&&(v.current=!0)}function r(){w.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}},[c,n,d]),o.useEffect(()=>{if(d)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{reason:t}=e;("reference-press"===t||"escape-key"===t)&&(v.current=!0)}},[i,d]),o.useEffect(()=>()=>{clearTimeout(b.current)},[]),o.useMemo(()=>d?{reference:{onPointerDown(e){f(e.nativeEvent)||(w.current=!1)},onMouseLeave(){v.current=!1},onFocus(e){if(v.current)return;let t=y(e.nativeEvent);if(h&&(0,l.kK)(t))try{if(p()&&m())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!w.current&&!S(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){v.current=!1;let t=e.relatedTarget,n=(0,l.kK)(t)&&t.hasAttribute(ex("focus-guard"))&&"outside"===t.getAttribute("data-type");b.current=window.setTimeout(()=>{var o;let i=a(c?c.ownerDocument:document);if(t||i!==c){if(u(null==(o=s.current.floatingContext)?void 0:o.refs.floating.current,i)||u(c,i)||n)return;r(!1,e.nativeEvent,"focus")}})}}}:{},[d,h,s,c,r])}let tr="active",to="selected";function ti(e,t,n){let r=new Map,o="item"===n,i=e;if(o&&e){let{[tr]:t,[to]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1},...i,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,i]=t;if(!(o&&[tr,to].includes(n))){if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof i){var l;null==(l=r.get(n))||l.push(i),e[n]=function(){for(var e,t=arguments.length,o=Array(t),i=0;ie(...o)).find(e=>void 0!==e)}}}else e[n]=i}}),e),{})}}function tl(e){void 0===e&&(e=[]);let t=e,n=o.useCallback(t=>ti(t,e,"reference"),t),r=o.useCallback(t=>ti(t,e,"floating"),t),i=o.useCallback(t=>ti(t,e,"item"),e.map(e=>null==e?void 0:e.item));return o.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:i}),[n,r,i])}let ta=!1;function tu(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function ts(e,t){return tu(t,e===ee||e===et,e===en||e===er)}function tc(e,t,n){return tu(t,e===et,n?e===en:e===er)||"Enter"===e||" "===e||""===e}function td(e,t,n){return tu(t,n?e===er:e===en,e===ee)}function tf(e,t){let{open:n,onOpenChange:r,elements:{domReference:i,floating:s}}=e,{listRef:c,activeIndex:h,onNavigate:v=()=>{},enabled:b=!0,selectedIndex:y=null,allowEscape:S=!1,loop:E=!1,nested:k=!1,rtl:C=!1,virtual:T=!1,focusItemOnOpen:O="auto",focusItemOnHover:M=!0,openOnArrowKeyDown:A=!0,disabledIndices:P,orientation:I="vertical",cols:L=1,scrollItemIntoView:D=!0,virtualItemRef:B,itemSizes:W,dense:N=!1}=t,z=eS(),j=ew(),H=Q(v),F=o.useRef(O),_=o.useRef(null!=y?y:-1),Z=o.useRef(null),V=o.useRef(!0),$=o.useRef(H),K=o.useRef(!!s),U=o.useRef(!1),Y=o.useRef(!1),X=eR(P),q=eR(n),G=eR(D),J=eR(s),ec=eR(y),[ep,eh]=o.useState(),[em,ev]=o.useState(),eg=Q(function(e,t,n){function r(e){T?(eh(e.id),null==j||j.events.emit("virtualfocus",e),B&&(B.current=e)):ed(e,{preventScroll:!0,sync:!!(m()&&p())&&(ta||U.current)})}void 0===n&&(n=!1);let o=e.current[t.current];o&&r(o),requestAnimationFrame(()=>{let i=e.current[t.current]||o;if(!i)return;o||r(i);let l=G.current;l&&ey&&(n||!V.current)&&(null==i.scrollIntoView||i.scrollIntoView("boolean"==typeof l?{block:"nearest",inline:"nearest"}:l))})});ef(()=>{document.createElement("div").focus({get preventScroll(){return ta=!0,!1}})},[]),ef(()=>{b&&(n&&s?F.current&&null!=y&&(Y.current=!0,_.current=y,H(y)):K.current&&(_.current=-1,$.current(null)))},[b,n,s,y,H]),ef(()=>{if(b&&n&&s){if(null==h){if(U.current=!1,null==ec.current&&(K.current&&(_.current=-1,eg(c,_)),!K.current&&F.current&&(null!=Z.current||!0===F.current&&null==Z.current))){let e=0,t=()=>{null==c.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(_.current=null==Z.current||tc(Z.current,I,C)||k?el(c,X.current):ea(c,X.current),Z.current=null,H(_.current))};t()}}else ei(c,h)||(_.current=h,eg(c,_,Y.current),Y.current=!1)}},[b,n,s,h,ec,k,c,I,C,H,eg,X]),ef(()=>{var e;if(!b||s||!j||T||!K.current)return;let t=j.nodesRef.current,n=null==(e=t.find(e=>e.id===z))||null==(e=e.context)?void 0:e.elements.floating,r=a(g(s)),o=t.some(e=>e.context&&u(e.context.elements.floating,r));n&&!o&&V.current&&n.focus({preventScroll:!0})},[b,s,j,z,T]),ef(()=>{if(b&&j&&T&&!z)return j.events.on("virtualfocus",e),()=>{j.events.off("virtualfocus",e)};function e(e){ev(e.id),B&&(B.current=e)}},[b,j,T,z,B]),ef(()=>{$.current=H,K.current=!!s}),ef(()=>{n||(Z.current=null)},[n]);let eb=null!=h,ey=o.useMemo(()=>{function e(e){if(!n)return;let t=c.current.indexOf(e);-1!==t&&H(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...M&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;V.current&&"touch"!==t&&(_.current=-1,eg(c,_),H(null),T||ed(J.current,{preventScroll:!0}))}}}},[n,J,eg,M,c,H,T]);return o.useMemo(()=>{if(!b)return{};let e=X.current;function t(t){if(V.current=!1,U.current=!0,!q.current&&t.currentTarget===J.current)return;if(k&&td(t.key,I,C)){w(t),r(!1,t.nativeEvent,"list-navigation"),(0,l.Re)(i)&&!T&&i.focus();return}let o=_.current,u=el(c,e),s=ea(c,e);if("Home"===t.key&&(w(t),_.current=u,H(_.current)),"End"===t.key&&(w(t),_.current=s,H(_.current)),L>1){var d;let n=W||Array.from({length:c.current.length},()=>({width:1,height:1})),r=function(e,t,n){let r=[],o=0;return e.forEach((e,i)=>{let{width:l,height:a}=e,u=!1;for(n&&(o=0);!u;){let e=[];for(let n=0;nnull==r[e])?(e.forEach(e=>{r[e]=i}),u=!0):o++}}),[...r]}(n,L,N),o=r.findIndex(t=>null!=t&&!es(c.current,t,e)),i=r.reduce((t,n,r)=>null==n||es(c.current,n,e)?t:r,-1);if(_.current=r[function(e,t){let{event:n,orientation:r,loop:o,cols:i,disabledIndices:l,minIndex:a,maxIndex:u,prevIndex:s,stopEvent:c=!1}=t,d=s;if(n.key===ee){if(c&&w(n),-1===s)d=u;else if(d=eu(e,{startingIndex:d,amount:i,decrement:!0,disabledIndices:l}),o&&(s-ie?n:n-i}ei(e,d)&&(d=s)}if(n.key===et&&(c&&w(n),-1===s?d=a:(d=eu(e,{startingIndex:s,amount:i,disabledIndices:l}),o&&s+i>u&&(d=eu(e,{startingIndex:s%i-i,amount:i,disabledIndices:l}))),ei(e,d)&&(d=s)),"both"===r){let t=(0,R.GW)(s/i);n.key===er&&(c&&w(n),s%i!=i-1?(d=eu(e,{startingIndex:s,disabledIndices:l}),o&&eo(d,i,t)&&(d=eu(e,{startingIndex:s-s%i-1,disabledIndices:l}))):o&&(d=eu(e,{startingIndex:s-s%i-1,disabledIndices:l})),eo(d,i,t)&&(d=s)),n.key===en&&(c&&w(n),s%i!=0?(d=eu(e,{startingIndex:s,decrement:!0,disabledIndices:l}),o&&eo(d,i,t)&&(d=eu(e,{startingIndex:s+(i-s%i),decrement:!0,disabledIndices:l}))):o&&(d=eu(e,{startingIndex:s+(i-s%i),decrement:!0,disabledIndices:l})),eo(d,i,t)&&(d=s));let r=(0,R.GW)(u/i)===t;ei(e,d)&&(d=o&&r?n.key===en?u:eu(e,{startingIndex:s-s%i-1,disabledIndices:l}):s)}return d}({current:r.map(e=>null!=e?c.current[e]:null)},{event:t,orientation:I,loop:E,cols:L,disabledIndices:(d=[...e||c.current.map((e,t)=>es(c.current,t)?t:void 0),void 0],r.flatMap((e,t)=>d.includes(e)?[t]:[])),minIndex:o,maxIndex:i,prevIndex:function(e,t,n,r,o){if(-1===e)return -1;let i=n.indexOf(e),l=t[e];switch(o){case"tl":return i;case"tr":if(!l)return i;return i+l.width-1;case"bl":if(!l)return i;return i+(l.height-1)*r;case"br":return n.lastIndexOf(e)}}(_.current>s?u:_.current,n,r,L,t.key===et?"bl":t.key===er?"tr":"tl"),stopEvent:!0})],H(_.current),"both"===I)return}if(ts(t.key,I)){if(w(t),n&&!T&&a(t.currentTarget.ownerDocument)===t.currentTarget){_.current=tc(t.key,I,C)?u:s,H(_.current);return}tc(t.key,I,C)?E?_.current=o>=s?S&&o!==c.current.length?-1:u:eu(c,{startingIndex:o,disabledIndices:e}):_.current=Math.min(s,eu(c,{startingIndex:o,disabledIndices:e})):E?_.current=o<=u?S&&-1!==o?c.current.length:s:eu(c,{startingIndex:o,decrement:!0,disabledIndices:e}):_.current=Math.max(u,eu(c,{startingIndex:o,decrement:!0,disabledIndices:e})),ei(c,_.current)?H(null):H(_.current)}}function o(e){"auto"===O&&d(e.nativeEvent)&&(F.current=!0)}let u=T&&n&&eb&&{"aria-activedescendant":em||ep},s=c.current.find(e=>(null==e?void 0:e.id)===ep);return{reference:{...u,onKeyDown(o){var i,l,a,u,d,f;V.current=!1;let p=0===o.key.indexOf("Arrow"),h=(i=o.key,tu(I,C?i===en:i===er,i===et)),m=td(o.key,I,C),v=ts(o.key,I),g=(k?h:v)||"Enter"===o.key||""===o.key.trim();if(T&&n){let e,n;let r=null==j?void 0:j.nodesRef.current.find(e=>null==e.parentId),i=j&&r?(l=j.nodesRef.current,a=r.id,n=-1,!function t(r,o){o>n&&(e=r,n=o),eP(l,r).forEach(e=>{t(e.id,o+1)})}(a,0),l.find(t=>t.id===e)):null;if(p&&i&&B){let e=new KeyboardEvent("keydown",{key:o.key,bubbles:!0});if(h||m){let t=(null==(u=i.context)?void 0:u.elements.domReference)===o.currentTarget,n=m&&!t?null==(d=i.context)?void 0:d.elements.domReference:h?s:null;n&&(w(o),n.dispatchEvent(e),ev(void 0))}if(v&&i.context&&i.context.open&&i.parentId&&o.currentTarget!==i.context.elements.domReference){w(o),null==(f=i.context.elements.domReference)||f.dispatchEvent(e);return}}return t(o)}if(n||A||!p){if(g&&(Z.current=k&&v?null:o.key),k){h&&(w(o),n?(_.current=el(c,e),H(_.current)):r(!0,o.nativeEvent,"list-navigation"));return}v&&(null!=y&&(_.current=y),w(o),!n&&A?r(!0,o.nativeEvent,"list-navigation"):t(o),n&&H(_.current))}},onFocus(){n&&!T&&H(null)},onPointerDown:function(e){F.current=O,"auto"===O&&f(e.nativeEvent)&&(F.current=!0)},onMouseDown:o,onClick:o},floating:{"aria-orientation":"both"===I?void 0:I,...!x(i)&&u,onKeyDown:t,onPointerMove(){V.current=!0}},item:ey}},[i,J,ep,em,X,q,c,b,I,C,T,n,eb,k,y,A,S,L,E,O,H,r,ey,j,B,W,N])}let tp=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function th(e,t){var n;void 0===t&&(t={});let{open:r,floatingId:i}=e,{enabled:l=!0,role:a="dialog"}=t,u=null!=(n=tp.get(a))?n:a,s=eg(),c=null!=eS();return o.useMemo(()=>{if(!l)return{};let e={id:i,...u&&{role:u}};return"tooltip"===u||"label"===a?{reference:{["aria-"+("label"===a?"labelledby":"describedby")]:r?i:void 0},floating:e}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===u?"dialog":u,"aria-controls":r?i:void 0,..."listbox"===u&&{role:"combobox"},..."menu"===u&&{id:s},..."menu"===u&&c&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}},floating:{...e,..."menu"===u&&{"aria-labelledby":s}},item(e){let{active:t,selected:n}=e,r={role:"option",...t&&{id:i+"-option"}};switch(a){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}}},[l,a,u,r,i,s,c])}function tm(e,t){var n;let{open:r,dataRef:i}=e,{listRef:l,activeIndex:a,onMatch:u,onTypingChange:s,enabled:c=!0,findMatch:d=null,resetMs:f=750,ignoreKeys:p=[],selectedIndex:h=null}=t,m=o.useRef(),v=o.useRef(""),g=o.useRef(null!=(n=null!=h?h:a)?n:-1),b=o.useRef(null),y=Q(u),S=Q(s),x=eR(d),R=eR(p);return ef(()=>{r&&(clearTimeout(m.current),b.current=null,v.current="")},[r]),ef(()=>{if(r&&""===v.current){var e;g.current=null!=(e=null!=h?h:a)?e:-1}},[r,h,a]),o.useMemo(()=>{if(!c)return{};function e(e){e?i.current.typing||(i.current.typing=e,S(e)):i.current.typing&&(i.current.typing=e,S(e))}function t(e,t,n){let r=x.current?x.current(t,n):t.find(e=>(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))===0);return r?e.indexOf(r):-1}function n(n){let o=l.current;if(v.current.length>0&&" "!==v.current[0]&&(-1===t(o,o,v.current)?e(!1):" "===n.key&&w(n)),null==o||R.current.includes(n.key)||1!==n.key.length||n.ctrlKey||n.metaKey||n.altKey)return;r&&" "!==n.key&&(w(n),e(!0)),o.every(e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())})&&v.current===n.key&&(v.current="",g.current=b.current),v.current+=n.key,clearTimeout(m.current),m.current=setTimeout(()=>{v.current="",g.current=b.current,e(!1)},f);let i=g.current,a=t(o,[...o.slice((i||0)+1),...o.slice(0,(i||0)+1)],v.current);-1!==a?(y(a),b.current=a):" "!==n.key&&(v.current="",e(!1))}return{reference:{onKeyDown:n},floating:{onKeyDown:n,onKeyUp(t){" "===t.key&&e(!1)}}}},[c,r,i,l,f,R,x,y,S])}function tv(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}let tg=e=>({name:"inner",options:e,async fn(t){let{listRef:n,overflowRef:r,onFallbackChange:o,offset:i=0,index:l=0,minItemsVisible:a=4,referenceOverflowThreshold:u=0,scrollRef:s,...c}=e,{rects:d,elements:{floating:f}}=t,p=n.current[l];if(!p)return{};let h={...t,...await (0,E.cv)(-p.offsetTop-f.clientTop-d.reference.height/2-p.offsetHeight/2-i).fn(t)},m=(null==s?void 0:s.current)||f,v=await (0,k.US)(tv(h,m.scrollHeight),c),g=await (0,k.US)(h,{...c,elementContext:"reference"}),b=Math.max(0,v.top),y=h.y+b,S=Math.max(0,m.scrollHeight-b-Math.max(0,v.bottom));return m.style.maxHeight=S+"px",m.scrollTop=b,o&&(m.offsetHeight=-u||g.bottom>=-u?(0,q.flushSync)(()=>o(!0)):(0,q.flushSync)(()=>o(!1))),r&&(r.current=await (0,k.US)(tv({...h,y:y},m.offsetHeight),c)),{y:y}}});function tb(e,t){let{open:n,elements:r}=e,{enabled:i=!0,overflowRef:l,scrollRef:a,onChange:u}=t,s=Q(u),d=o.useRef(!1),f=o.useRef(null),p=o.useRef(null);return o.useEffect(()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==l.current)return;let n=e.deltaY,r=l.current.top>=-.5,o=l.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,a=n<0?-1:1,u=n<0?"max":"min";!(t.scrollHeight<=t.clientHeight)&&(!r&&n>0||!o&&n<0?(e.preventDefault(),(0,q.flushSync)(()=>{s(e=>e+Math[u](n,i*a))})):/firefox/i.test(c())&&(t.scrollTop+=n))}let t=(null==a?void 0:a.current)||r.floating;if(n&&t)return t.addEventListener("wheel",e),requestAnimationFrame(()=>{f.current=t.scrollTop,null!=l.current&&(p.current={...l.current})}),()=>{f.current=null,p.current=null,t.removeEventListener("wheel",e)}},[i,n,r.floating,l,a,s]),o.useMemo(()=>i?{floating:{onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){let e=(null==a?void 0:a.current)||r.floating;if(l.current&&e&&d.current){if(null!==f.current){let t=e.scrollTop-f.current;(l.current.bottom<-.5&&t<-1||l.current.top<-.5&&t>1)&&(0,q.flushSync)(()=>s(e=>e+t))}requestAnimationFrame(()=>{f.current=e.scrollTop})}}}}:{},[i,l,r.floating,a,s])}function ty(e,t){let[n,r]=e,o=!1,i=t.length;for(let e=0,l=i-1;e=r!=s>=r&&n<=(u-i)*(r-a)/(s-a)+i&&(o=!o)}return o}function tS(e){let t;void 0===e&&(e={});let{buffer:n=.5,blockPointerEvents:r=!1,requireIntent:o=!0}=e,i=!1,a=null,s=null,c=performance.now(),d=e=>{let{x:r,y:d,placement:f,elements:p,onClose:h,nodeId:m,tree:v}=e;return function(e){function g(){clearTimeout(t),h()}if(clearTimeout(t),!p.domReference||!p.floating||null==f||null==r||null==d)return;let{clientX:b,clientY:S}=e,w=[b,S],x=y(e),R="mouseleave"===e.type,E=u(p.floating,x),k=u(p.domReference,x),C=p.domReference.getBoundingClientRect(),T=p.floating.getBoundingClientRect(),O=f.split("-")[0],M=r>T.right-T.width/2,A=d>T.bottom-T.height/2,P=w[0]>=C.x&&w[0]<=C.x+C.width&&w[1]>=C.y&&w[1]<=C.y+C.height,I=T.width>C.width,L=T.height>C.height,D=(I?C:T).left,B=(I?C:T).right,W=(L?C:T).top,N=(L?C:T).bottom;if(E&&(i=!0,!R))return;if(k&&(i=!1),k&&!R){i=!0;return}if(R&&(0,l.kK)(e.relatedTarget)&&u(p.floating,e.relatedTarget)||v&&eP(v.nodesRef.current,m).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===O&&d>=C.bottom-1||"bottom"===O&&d<=C.top+1||"left"===O&&r>=C.right-1||"right"===O&&r<=C.left+1)return g();let z=[];switch(O){case"top":z=[[D,C.top+1],[D,T.bottom-1],[B,T.bottom-1],[B,C.top+1]];break;case"bottom":z=[[D,T.top+1],[D,C.bottom-1],[B,C.bottom-1],[B,T.top+1]];break;case"left":z=[[T.right-1,N],[T.right-1,W],[C.left+1,W],[C.left+1,N]];break;case"right":z=[[C.right-1,N],[C.right-1,W],[T.left+1,W],[T.left+1,N]]}if(!ty([b,S],z)){if(i&&!P)return g();if(!R&&o){let t=function(e,t){let n=performance.now(),r=n-c;if(null===a||null===s||0===r)return a=e,s=t,c=n,null;let o=e-a,i=t-s;return a=e,s=t,c=n,Math.sqrt(o*o+i*i)/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}ty([b,S],function(e){let[t,r]=e;switch(O){case"top":{let e=[[T.left,M?T.bottom-n:I?T.bottom-n:T.top],[T.right,M?I?T.bottom-n:T.top:T.bottom-n]];return[[I?t+n/2:M?t+4*n:t-4*n,r+n+1],[I?t-n/2:M?t+4*n:t-4*n,r+n+1],...e]}case"bottom":{let e=[[T.left,M?T.top+n:I?T.top+n:T.bottom],[T.right,M?I?T.top+n:T.bottom:T.top+n]];return[[I?t+n/2:M?t+4*n:t-4*n,r-n],[I?t-n/2:M?t+4*n:t-4*n,r-n],...e]}case"left":return[[A?T.right-n:L?T.right-n:T.left,T.top],[A?L?T.right-n:T.left:T.right-n,T.bottom],[t+n+1,L?r+n/2:A?r+4*n:r-4*n],[t+n+1,L?r-n/2:A?r+4*n:r-4*n]];case"right":{let e=[[A?T.left+n:L?T.left+n:T.right,T.top],[A?L?T.left+n:T.right:T.left+n,T.bottom]];return[[t-n,L?r+n/2:A?r+4*n:r-4*n],[t-n,L?r-n/2:A?r+4*n:r-4*n],...e]}}}([r,d]))?!i&&o&&(t=window.setTimeout(g,40)):g()}}};return d.__options={blockPointerEvents:r},d}},5224:function(e,t,n){"use strict";function r(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function i(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return e instanceof Node||e instanceof o(e).Node}function a(e){return e instanceof Element||e instanceof o(e).Element}function u(e){return e instanceof HTMLElement||e instanceof o(e).HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function c(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=v(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function d(e){return["table","td","th"].includes(r(e))}function f(e){let t=h(),n=v(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function p(e){let t=b(e);for(;u(t)&&!m(t);){if(f(t))return t;t=b(t)}return null}function h(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function m(e){return["html","body","#document"].includes(r(e))}function v(e){return o(e).getComputedStyle(e)}function g(e){return a(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function b(e){if("html"===r(e))return e;let t=e.assignedSlot||e.parentNode||s(e)&&e.host||i(e);return s(t)?t.host:t}n.d(t,{Dx:function(){return v},Jj:function(){return o},Kx:function(){return function e(t,n,r){var i;void 0===n&&(n=[]),void 0===r&&(r=!0);let l=function e(t){let n=b(t);return m(n)?t.ownerDocument?t.ownerDocument.body:t.body:u(n)&&c(n)?n:e(n)}(t),a=l===(null==(i=t.ownerDocument)?void 0:i.body),s=o(l);return a?n.concat(s,s.visualViewport||[],c(l)?l:[],s.frameElement&&r?e(s.frameElement):[]):n.concat(l,e(l,[],r))}},Lw:function(){return g},Ow:function(){return b},Pf:function(){return h},Py:function(){return m},Re:function(){return u},Ze:function(){return d},Zq:function(){return s},ao:function(){return c},gQ:function(){return p},hT:function(){return f},kK:function(){return a},tF:function(){return i},wk:function(){return r}})},7848:function(e,t,n){"use strict";n.d(t,{Fp:function(){return o},GW:function(){return l},I4:function(){return m},JB:function(){return E},KX:function(){return w},NM:function(){return i},Qq:function(){return v},Rn:function(){return h},VV:function(){return r},Wh:function(){return g},gy:function(){return y},hp:function(){return p},i8:function(){return b},k3:function(){return f},ku:function(){return d},pw:function(){return x},uZ:function(){return c},yd:function(){return R},ze:function(){return a}});let r=Math.min,o=Math.max,i=Math.round,l=Math.floor,a=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function c(e,t,n){return o(e,r(t,n))}function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function v(e){return["top","bottom"].includes(f(e))?"y":"x"}function g(e){return h(v(e))}function b(e,t,n){void 0===n&&(n=!1);let r=p(e),o=g(e),i=m(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=x(l)),[l,x(l)]}function y(e){let t=x(e);return[S(e),t,S(t)]}function S(e){return e.replace(/start|end/g,e=>s[e])}function w(e,t,n,r){let o=p(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(f(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(S)))),i}function x(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function R(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function E(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}},3370:function(e,t,n){"use strict";n.d(t,{Tr:function(){return d},fG:function(){return u},pV:function(){return c}});var r=n(281),o=n(9097),i=n(8338),l=n(2265),a=n(2281);let u=(0,l.createContext)(null),s=e=>{let t=(0,l.useContext)(u);if(!t?.Contents)throw Error("tamagui.dev/docs/intro/errors#warning-002");return(0,l.createElement)(t.Contents,e)};s.shouldForwardSpace=!0;let c=({Contents:e})=>{let[t,n]=(0,l.useState)(null);return{AdaptProvider:(0,l.useMemo)(()=>{let t={Contents:e,setWhen:n};return function(e){return(0,a.jsx)(u.Provider,{value:t,children:e.children})}},[e]),when:t}},d=(0,i.$e)(function({platform:e,when:t,children:n}){let i=(0,l.useContext)(u),a=(0,o.GS)(),s=!e;return"touch"===e&&(s=r.wT),"native"===e&&(s=!r.$L),"web"===e&&(s=r.$L),"ios"===e&&(s=r.s),"android"===e&&(s=r.Dt),t&&!a[t]&&(s=!1),(0,r.LI)(()=>{s&&i?.setWhen(t||s)},[t,i,s]),s?n:null},{Contents:s})},126:function(e,t,n){"use strict";n.d(t,{M:function(){return c}});var r=n(2265);let o=typeof window>"u",i=()=>{},l=(0,r.createContext)({});var a=n(5794),u=n(2281);let s=e=>e.key||"",c=({children:e,enterVariant:t,exitVariant:n,enterExitVariant:c,initial:d=!0,onExitComplete:f,exitBeforeEnter:p,presenceAffectsLayout:h=!0,custom:m})=>{let v=(0,r.useContext)(l).forceRender??(o?i:(0,r.useReducer)(e=>Math.random(),0)[1]),g=function(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}(e),b=(0,r.useRef)(g),y=(0,r.useRef)(new Map).current,S=(0,r.useRef)(new Set).current;!function(e,t){e.forEach(e=>{let n=s(e);t.set(n,e)})}(g,y);let w=(0,r.useRef)(!0);if(w.current)return w.current=!1,(0,u.jsx)(u.Fragment,{children:g.map(e=>(0,u.jsx)(a.g,{isPresent:!0,enterExitVariant:c,exitVariant:n,enterVariant:t,initial:!!d&&void 0,presenceAffectsLayout:h,custom:m,children:e},s(e)))});let x=[...g],R=b.current.map(s),E=g.map(s),k=R.length;for(let e=0;e{if(-1!==E.indexOf(e))return;let r=y.get(e);if(!r)return;let o=R.indexOf(e),i=(0,u.jsx)(a.g,{isPresent:!1,onExitComplete:()=>{y.delete(e),S.delete(e);let t=b.current.findIndex(t=>t.key===e);b.current.splice(t,1),S.size||(b.current=g,v(),f?.())},presenceAffectsLayout:h,enterExitVariant:c,enterVariant:t,exitVariant:n,custom:m,children:r},s(r));x.splice(o,0,i)}),x=x.map(e=>{let r=e.key;return S.has(r)?e:(0,u.jsx)(a.g,{isPresent:!0,exitVariant:n,enterVariant:t,enterExitVariant:c,presenceAffectsLayout:h,custom:m,children:e},s(e))}),b.current=x,(0,u.jsx)(u.Fragment,{children:S.size?x:x.map(e=>(0,r.cloneElement)(e))})};c.displayName="AnimatePresence"},5794:function(e,t,n){"use strict";n.d(t,{g:function(){return a}});var r=n(3020),o=n(5390),i=n(2265),l=n(2281);let a=i.memo(({children:e,initial:t,isPresent:n,onExitComplete:a,exitVariant:s,enterVariant:c,enterExitVariant:d,presenceAffectsLayout:f,custom:p})=>{let h=(0,r.h)(u),m=(0,i.useId)()||"",v=i.useMemo(()=>({id:m,initial:t,isPresent:n,custom:p,exitVariant:s,enterVariant:c,enterExitVariant:d,onExitComplete:()=>{for(let e of(h.set(m,!0),h.values()))if(!e)return;a?.()},register:()=>(h.set(m,!1),()=>h.delete(m))}),f?void 0:[n,s,c]);return i.useMemo(()=>{h.forEach((e,t)=>h.set(t,!1))},[n]),i.useEffect(()=>{n||h.size||a?.()},[n]),(0,l.jsx)(o.Oy.Provider,{value:v,children:e})});function u(){return new Map}},3187:function(e,t,n){"use strict";n.d(t,{zx:function(){return R}});var r=n(3924),o=n(8306),i=n(8338),l=n(1676),a=n(1092),u=n(2265);let s=(0,u.createContext)(!1);var c=n(2026),d=n(2875),f=n(925),p=n(4975),h=n(1386),m=n(2202),v=n(5902),g=n(2281),b=n(357);let y=(0,f.i)({color:void 0,ellipse:void 0,fontFamily:void 0,fontSize:void 0,fontStyle:void 0,fontWeight:void 0,letterSpacing:void 0,maxFontSizeMultiplier:void 0,size:void 0,textAlign:void 0,variant:void 0}),S=(0,p.z)(a.K,{name:"Button",tag:"button",context:y,role:"button",focusable:!0,variants:{unstyled:{false:{size:"$true",justifyContent:"center",alignItems:"center",flexWrap:"nowrap",flexDirection:"row",cursor:"pointer",hoverTheme:!0,pressTheme:!0,backgrounded:!0,borderWidth:1,borderColor:"transparent",focusVisibleStyle:{outlineColor:"$outlineColor",outlineStyle:"solid",outlineWidth:2}}},variant:{outlined:{backgroundColor:"transparent",borderWidth:2,borderColor:"$borderColor",hoverStyle:{backgroundColor:"transparent",borderColor:"$borderColorHover"},pressStyle:{backgroundColor:"transparent",borderColor:"$borderColorPress"},focusVisibleStyle:{backgroundColor:"transparent",borderColor:"$borderColorFocus"}}},size:{"...size":o.f,":number":o.f},disabled:{true:{pointerEvents:"none"}}},defaultVariants:{unstyled:"1"===b.env.TAMAGUI_HEADLESS}}),w=(0,p.z)(c.J,{name:"Button",context:y,variants:{unstyled:{false:{userSelect:"none",cursor:"pointer",flexGrow:0,flexShrink:1,ellipse:!0,color:"$color"}}},defaultVariants:{unstyled:"1"===b.env.TAMAGUI_HEADLESS}}),x=S.styleable(function(e,t){let{props:n}=function({textProps:e,...t},{Text:n=R.Text}={Text:R.Text}){let o=(0,u.useContext)(s),i=(0,h.wN)(t,{noNormalize:!0,noExpand:!0}),{icon:a,iconAfter:c,space:f,spaceFlex:p,scaleIcon:y=1,scaleSpace:S=.66,separator:x,noTextWrap:E,fontFamily:k,fontSize:C,fontWeight:T,fontStyle:O,letterSpacing:M,tag:A,ellipse:P,maxFontSizeMultiplier:I,...L}=i,D=i.size||(i.unstyled?void 0:"$true"),B=i.color,W=("number"==typeof D?.5*D:(0,r.yv)(D,{font:k?.[0]==="$"?k:void 0}))*y,[N,z]=[a,c].map((0,l.Zw)({size:W,color:B})),j=f??(0,m.Ve)(W)*S,H=E?[t.children]:(0,d.k)(n,{children:t.children,fontFamily:k,fontSize:C,textProps:e,fontWeight:T,fontStyle:O,letterSpacing:M,ellipse:P,maxFontSizeMultiplier:I},n===w&&!0!==i.unstyled?{unstyled:"1"===b.env.TAMAGUI_HEADLESS,size:D}:void 0),F=(0,v.P9)({space:j,spaceFlex:p,separator:x,direction:"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal",children:[N,...H,z]}),_={size:D,...t.disabled&&{focusable:void 0,focusVisibleStyle:{borderColor:"$background"}},tag:A??(o?"span":"link"===i.accessibilityRole||"link"===i.role?"a":"button"),...L,children:(0,g.jsx)(s.Provider,{value:!0,children:F}),disableClassName:!0};return{spaceSize:j,isNested:o,props:_}}(e);return(0,g.jsx)(S,{...n,ref:t})}),R=(0,i.$e)(x,{Text:w,Icon:e=>{let{children:t,scaleIcon:n=1}=e,{size:o,color:i}=(0,u.useContext)(y),a=("number"==typeof o?.5*o:(0,r.yv)(o))*n;return(0,l.Zw)({size:a,color:i})(t)}})},301:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(2265),o=n(2281);function i(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let l=r.createContext(i),a=n.length;function u(t){let{scope:n,children:i,...u}=t,s=n?.[e]?.[a]||l,c=r.useMemo(()=>u,Object.values(u));return(0,o.jsx)(s.Provider,{value:c,children:i})}return n=[...n,i],u.displayName=`${t}Provider`,[u,function(n,o,u){let s=o?.[e]?.[a]||l,c=r.useContext(s);if(c)return c;if(void 0!==i)return i;let d=`\`${n}\` must be used within \`${t}\``;if(u?.fallback)return u?.warn!==!1&&console.warn(d),u.fallback;throw Error(d)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},9018:function(e,t,n){"use strict";let r;n.d(t,{M:function(){return d}});var o=n(9046),i=n(9087),l=n(2265),a=n(2281);let u="focusScope.autoFocusOnMount",s="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},d=l.forwardRef(function(e,t){let n=function(e,t){let{loop:n=!1,enabled:r=!0,trapped:a=!1,onMountAutoFocus:d,onUnmountAutoFocus:v,forceUnmount:g,children:b,...y}=e,[S,w]=l.useState(null),x=(0,i.z)(d),R=(0,i.z)(v),E=l.useRef(null),k=(0,o.ex)(t,e=>{l.startTransition(()=>{w(e)})}),C=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(!r||!a)return;let e=new AbortController;function t(t){if(C.paused||!S)return;let n=t.target;S.contains(n)?(n?.addEventListener("blur",o,{signal:e.signal}),E.current=n):h(E.current,{select:!0})}function n(t){e.abort(),!(C.paused||!S)&&(S.contains(t.relatedTarget)||h(E.current,{select:!0}))}function o(){E.current=S}return document.addEventListener("focusin",t),document.addEventListener("focusout",n),()=>{e.abort(),document.removeEventListener("focusin",t),document.removeEventListener("focusout",n)}},[a,g,S,C.paused]),l.useEffect(()=>{if(!r||!S||g)return;m.add(C);let e=document.activeElement;if(!S.contains(e)){let t=new CustomEvent(u,c);S.addEventListener(u,x),S.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(h(r,{select:t}),document.activeElement!==n)return}(f(S).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&h(S))}return()=>{S.removeEventListener(u,x);let t=new CustomEvent(s,c);S.addEventListener(s,R),S.dispatchEvent(t),t.defaultPrevented||h(e??document.body,{select:!0}),S.removeEventListener(s,R),m.remove(C)}},[r,S,g,x,R,C]);let T=l.useCallback(e=>{if(!a||!n||C.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[o,i]=function(e){let t=f(e);return[p(t,e),p(t.reverse(),e)]}(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&h(i,{select:!0})):(e.preventDefault(),n&&h(o,{select:!0})):r===t&&e.preventDefault()}},[n,a,C.paused]);return{tabIndex:-1,...y,ref:k,onKeyDown:T}}(e,t);return"function"==typeof e.children?(0,a.jsx)(a.Fragment,{children:e.children(n)}):l.cloneElement(l.Children.only(e.children),n)});function f(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function h(e,{select:t=!1}={}){if(e?.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}let m=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=v(r,e)).unshift(e)},remove(e){r=v(r,e),r[0]?.resume()}});function v(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},3924:function(e,t,n){"use strict";n.d(t,{yv:function(){return i}});var r=n(2202),o=n(5986);let i=(e,t)=>{let n=l(e,t);return(0,r.cG)(n)?+n.val:n?+n:16},l=(e,t)=>{let n=a(e,t);return n?(0,o.iE)().fontsParsed[t?.font||"$body"].size[n]:e},a=(e,t)=>{if("number"==typeof e)return null;let n=t?.relativeSize||0,r=(0,o.iE)().fontsParsed[t?.font||"$body"].size,i=("$true"!==e||"$true"in r?e:"$4")??("$true"in r?"$true":"$4"),l=Object.keys(r),a=l.indexOf(i);-1===a&&i.endsWith(".5")&&(a=l.indexOf(i.replace(".5","")));let u=Math.min(Math.max(0,a+n),l.length-1);return l[u]??i}},8306:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(6748);let o=(e,{tokens:t,props:n})=>{if(!e||n.circular)return;if("number"==typeof e)return{paddingHorizontal:.25*e,height:e,borderRadius:n.circular?1e5:.2*e};let o=(0,r.Pj)(e),i=t.radius[e]??t.radius.$true;return{paddingHorizontal:o,height:e,borderRadius:n.circular?1e5:i}}},8970:function(e,t,n){"use strict";n.d(t,{H:function(){return o}});var r=n(5986);let o=(e="$true",{font:t,fontFamily:n,props:o})=>{if(!t)return;let l="$true"===e?function(e){if("object"==typeof e&&i.has(e))return i.get(e);let t="$true"in e.size?e.size:(0,r.lz)().size,n=t.$true,o=n?Object.keys(t).find(e=>"$true"!==e&&t[e].val===n.val):null;return n&&o?(i.set(e,o),o):Object.keys(e.size)[3]}(t):e,a=t.size[l],u=t.lineHeight?.[l],s=t.weight?.[l],c=t.letterSpacing?.[l],d=t.transform?.[l],f=o.fontStyle??t.style?.[l];return{color:o.color??t.color?.[l],fontStyle:f,textTransform:d,fontFamily:n,fontWeight:s,letterSpacing:c,fontSize:a,lineHeight:u}},i=new WeakMap},6748:function(e,t,n){"use strict";n.d(t,{Pj:function(){return a},ap:function(){return l}});var r=n(5986),o=n(2202);let i={shift:0,bounds:[0]},l=(e,t)=>f("size",e,t),a=(e,t)=>f("space",e,t),u={},s={},c={},d={},f=(e,t,n=i)=>{let l=(0,r.lz)({prefixed:!0})[e];if(!(e in u)){c[e]=[],u[e]=[],d[e]=[],s[e]=[];let t=Object.keys(l).map(e=>l[e]).sort((e,t)=>e.val-t.val);for(let n of t)c[e].push(n.key),u[e].push(n);for(let n of t.filter(e=>!e.key.endsWith(".5")))d[e].push(n.key),s[e].push(n)}let a="string"==typeof t,f=(n.excludeHalfSteps?a?d:s:a?c:u)[e],p=n.bounds?.[0]??0,h=n.bounds?.[1]??f.length-1,m=f.indexOf(t),v=n.shift||0;v&&("$true"===t||(0,o.cG)(t)&&"true"===t.name)&&(v+=v>0?1:-1);let g=f[Math.min(h,Math.max(p,m+v))];return("string"==typeof g?l[g]:g)||l.$true}},1676:function(e,t,n){"use strict";n.d(t,{Zw:function(){return a}}),n(8338);var r=n(2265),o=n(8411),i=n(2202);let l=e=>{let t=(0,o.Fg)();return(0,i.E0)(e||t[e]?.get("web")||t.color?.get("web"))},a=e=>{let t=l(e.color);return n=>n&&((0,r.isValidElement)(n)?(0,r.cloneElement)(n,{...e,color:t,...n.props}):(0,r.createElement)(n,e))}},2583:function(e,t,n){"use strict";n.d(t,{f:function(){return G}});var r,o,i,l,a,u,s,c=n(2265),d=function(){return(d=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}"function"==typeof SuppressedError&&SuppressedError;var p="right-scroll-bar-position",h="width-before-scroll-bar";function m(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var v="undefined"!=typeof window?c.useLayoutEffect:c.useEffect,g=new WeakMap,b=(void 0===r&&(r={}),(void 0===o&&(o=function(e){return e}),i=[],l=!1,a={read:function(){if(l)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var t=o(e,l);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(l=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){l=!0;var t=[];if(i.length){var n=i;i=[],n.forEach(e),t=i}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),i={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),i}}}}).options=d({async:!0,ssr:!1},r),a),y=function(){},S=c.forwardRef(function(e,t){var n,r,o,i,l=c.useRef(null),a=c.useState({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:y}),u=a[0],s=a[1],p=e.forwardProps,h=e.children,S=e.className,w=e.removeScrollBar,x=e.enabled,R=e.shards,E=e.sideCar,k=e.noIsolation,C=e.inert,T=e.allowPinchZoom,O=e.as,M=f(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),A=(n=[l,t],r=function(e){return n.forEach(function(t){return m(t,e)})},(o=(0,c.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,v(function(){var e=g.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||m(e,null)}),r.forEach(function(e){t.has(e)||m(e,o)})}g.set(i,n)},[n]),i),P=d(d({},M),u);return c.createElement(c.Fragment,null,x&&c.createElement(E,{sideCar:b,removeScrollBar:w,shards:R,noIsolation:k,inert:C,setCallbacks:s,allowPinchZoom:!!T,lockRef:l}),p?c.cloneElement(c.Children.only(h),d(d({},P),{ref:A})):c.createElement(void 0===O?"div":O,d({},P,{className:S,ref:A}),h))});S.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},S.classNames={fullWidth:h,zeroRight:p};var w=function(e){var t=e.sideCar,n=f(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return c.createElement(r,d({},n))};w.isSideCarExport=!0;var x=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=s||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,i;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},R=function(){var e=x();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},E=function(){var e=R();return function(t){return e(t.styles,t.dynamic),null}},k={left:0,top:0,right:0,gap:0},C=function(e){return parseInt(e||"",10)||0},T=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[C(n),C(r),C(o)]},O=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return k;var t=T(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},M=E(),A="data-scroll-locked",P=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(A,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(l,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(p," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(h," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(p," .").concat(p," {\n right: 0 ").concat(r,";\n }\n \n .").concat(h," .").concat(h," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(A,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},I=function(){var e=parseInt(document.body.getAttribute(A)||"0",10);return isFinite(e)?e:0},L=function(){c.useEffect(function(){return document.body.setAttribute(A,(I()+1).toString()),function(){var e=I()-1;e<=0?document.body.removeAttribute(A):document.body.setAttribute(A,e.toString())}},[])},D=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;L();var i=c.useMemo(function(){return O(o)},[o]);return c.createElement(M,{styles:P(i,!t,o,n?"":"!important")})},B=!1;if("undefined"!=typeof window)try{var W=Object.defineProperty({},"passive",{get:function(){return B=!0,!0}});window.addEventListener("test",W,W),window.removeEventListener("test",W,W)}catch(e){B=!1}var N=!!B&&{passive:!1},z=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},j=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),H(e,n)){var r=F(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},H=function(e,t){return"v"===e?z(t,"overflowY"):z(t,"overflowX")},F=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},_=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,u=n.target,s=t.contains(u),c=!1,d=a>0,f=0,p=0;do{var h=F(e,u),m=h[0],v=h[1]-h[2]-l*m;(m||v)&&H(e,u)&&(f+=v,p+=m),u=u.parentNode}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return d&&(o&&0===f||!o&&a>f)?c=!0:!d&&(o&&0===p||!o&&-a>p)&&(c=!0),c},Z=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},V=function(e){return[e.deltaX,e.deltaY]},$=function(e){return e&&"current"in e?e.current:e},K=0,U=[],Y=(u=function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(K++)[0],i=c.useState(function(){return E()})[0],l=c.useRef(e);c.useEffect(function(){l.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;oMath.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=j(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=j(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var p=r.current||o;return _(p,t,e,"h"===p?u:s,!0)},[]),u=c.useCallback(function(e){if(U.length&&U[U.length-1]===i){var n="deltaY"in e?V(e):Z(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map($).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?a(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=c.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=c.useCallback(function(e){n.current=Z(e),r.current=void 0},[]),f=c.useCallback(function(t){s(t.type,V(t),t.target,a(t,e.lockRef.current))},[]),p=c.useCallback(function(t){s(t.type,Z(t),t.target,a(t,e.lockRef.current))},[]);c.useEffect(function(){return U.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,N),document.addEventListener("touchmove",u,N),document.addEventListener("touchstart",d,N),function(){U=U.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,N),document.removeEventListener("touchmove",u,N),document.removeEventListener("touchstart",d,N)}},[]);var h=e.removeScrollBar,m=e.inert;return c.createElement(c.Fragment,null,m?c.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?c.createElement(D,{gapMode:"margin"}):null)},b.useMedium(u),w),X=c.forwardRef(function(e,t){return c.createElement(S,d({},e,{ref:t,sideCar:Y}))});X.classNames=S.classNames;var q=n(2281);let G=(0,c.memo)(e=>e.children?(0,q.jsx)(X,{...e}):null);X.classNames},5295:function(e,t,n){"use strict";n.d(t,{p:function(){return l}});var r=n(5377),o=n(4975),i=n(5589);let l=(0,o.z)(i.Z,{name:"ScrollView",scrollEnabled:!0,variants:{fullscreen:{true:r.Xu}}},{accept:{contentContainerStyle:"style"}})},6505:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(281),o=n(4975),i=n(2166);let l=(0,o.z)(i.Kq,{name:"Separator",borderColor:"$borderColor",flexShrink:0,borderWidth:0,flex:1,height:0,maxHeight:0,borderBottomWidth:1,y:-.5,variants:{vertical:{true:{y:0,x:-.5,height:r.$L?"initial":"auto",maxHeight:r.$L?"initial":"auto",width:0,maxWidth:0,borderBottomWidth:0,borderRightWidth:1}}}})},1510:function(e,t,n){"use strict";n.d(t,{yo:function(){return ek}});var r=n(4975),o=n(5377),i=n(1092),l=n(281);let a="Sheet",u="SheetHandle",s="SheetOverlay",c=l.C5?document.createElement("style"):null;c&&"u">typeof document.head&&document.head.appendChild(c);var d=n(9046),f=n(2166),p=n(8338),h=n(2583),m=n(6616),v=n(2265),g=n(1840);let[b,y]=(0,n(301).b)(a),[S,w]=b(a,{});var x=n(3370),R=n(126),E=n(9235),k=n(5986),C=n(7562);let T=()=>{let{groups:e,animationDriver:t,...n}=(0,v.useContext)(C.s),{animations:r,...o}=(0,k.iE)();return{...o,...n,animationDriver:t??(0,k.iE)().animations}};var O=n(9087),M=n(4582),A=n(1130),P=n(4624),I=n(1775);let L=()=>{let[e,t]=(0,v.useState)(!1);return(0,v.useEffect)(()=>{let e=I.Z.addListener("keyboardDidShow",()=>{t(!0)}),n=I.Z.addListener("keyboardDidHide",()=>{t(!1)});return()=>{n.remove(),e.remove()}},[]),e};var D=n(7445),B=n.n(D),W=n(7998);class N{constructor(e){var t=e.onMoreTasks;this._onMoreTasks=t,this._queueStack=[{tasks:[],popable:!0}]}enqueue(e){this._getCurrentQueue().push(e)}enqueueTasks(e){e.forEach(e=>this.enqueue(e))}cancelTasks(e){this._queueStack=this._queueStack.map(t=>(0,W.Z)((0,W.Z)({},t),{},{tasks:t.tasks.filter(t=>-1===e.indexOf(t))})).filter((e,t)=>e.tasks.length>0||0===t)}hasTasksToProcess(){return this._getCurrentQueue().length>0}processNext(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{"object"==typeof t&&t.gen?this._genPromise(t):"object"==typeof t&&t.run?t.run():(B()("function"==typeof t,"Expected Function, SimpleTask, or PromiseTask, but got:\n"+JSON.stringify(t,null,2)),t())}catch(e){throw e.message="TaskQueue: Error with task "+(t.name||"")+": "+e.message,e}}}_getCurrentQueue(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&0===t.tasks.length&&e>0?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}_genPromise(e){var t=this._queueStack.push({tasks:[],popable:!1}),n=this._queueStack[t-1];e.gen().then(()=>{n.popable=!0,this.hasTasksToProcess()&&this._onMoreTasks()}).catch(t=>{setTimeout(()=>{throw t.message="TaskQueue: Error resolving Promise in task "+e.name+": "+t.message,t},0)})}}class z{constructor(){this._registry={}}addListener(e,t,n){var r,o,i=(null==(o=(r=this._registry)[e])&&(o=new Set,r[e]=o),o),l={context:n,listener:t,remove(){i.delete(l)}};return i.add(l),l}emit(e){var t=this._registry[e];if(null!=t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o{var t=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)};j&&window.cancelIdleCallback;var F=new z,_={Events:{interactionStart:"interactionStart",interactionComplete:"interactionComplete"},runAfterInteractions(e){var t=[],n=new Promise(n=>{q(),e&&t.push(e),t.push({run:n,name:"resolve "+(e&&e.name||"?")}),K.enqueueTasks(t)});return{then:n.then.bind(n),done:n.then.bind(n),cancel:()=>{K.cancelTasks(t)}}},createInteractionHandle(){q();var e=++Y;return V.add(e),e},clearInteractionHandle(e){B()(!!e,"Must provide a handle to clear."),q(),V.delete(e),$.add(e)},addListener:F.addListener.bind(F),setDeadline(e){X=e}},Z=new Set,V=new Set,$=new Set,K=new N({onMoreTasks:q}),U=0,Y=0,X=-1;function q(){U||(U=X>0?setTimeout(G):H(G))}function G(){U=0;var e=Z.size;V.forEach(e=>Z.add(e)),$.forEach(e=>Z.delete(e));var t=Z.size;if(0!==e&&0===t?F.emit(_.Events.interactionComplete):0===e&&0!==t&&F.emit(_.Events.interactionStart),0===t){for(var n=Date.now();K.hasTasksToProcess();)if(K.processNext(),X>0&&Date.now()-n>=X){q();break}}V.clear(),$.clear()}var J={centroidDimension:function(e,t,n,r){var o=e.touchBank,i=0,l=0,a=1===e.numberActiveTouches?e.touchBank[e.indexOfSingleActiveTouch]:null;if(null!==a)a.touchActive&&a.currentTimeStamp>t&&(i+=r&&n?a.currentPageX:r&&!n?a.currentPageY:!r&&n?a.previousPageX:a.previousPageY,l=1);else for(var u=0;u=t&&(i+=r&&n?s.currentPageX:r&&!n?s.currentPageY:!r&&n?s.previousPageX:s.previousPageY,l++)}return l>0?i/l:J.noCentroid},currentCentroidXOfTouchesChangedAfter:function(e,t){return J.centroidDimension(e,t,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(e,t){return J.centroidDimension(e,t,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(e,t){return J.centroidDimension(e,t,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(e,t){return J.centroidDimension(e,t,!1,!1)},currentCentroidX:function(e){return J.centroidDimension(e,0,!0,!0)},currentCentroidY:function(e){return J.centroidDimension(e,0,!1,!0)},noCentroid:-1},Q=J.currentCentroidXOfTouchesChangedAfter,ee=J.currentCentroidYOfTouchesChangedAfter,et=J.previousCentroidXOfTouchesChangedAfter,en=J.previousCentroidYOfTouchesChangedAfter,er=J.currentCentroidX,eo=J.currentCentroidY,ei={_initializeGestureState(e){e.moveX=0,e.moveY=0,e.x0=0,e.y0=0,e.dx=0,e.dy=0,e.vx=0,e.vy=0,e.numberActiveTouches=0,e._accountsForMovesUpTo=0},_updateGestureStateOnMove(e,t){e.numberActiveTouches=t.numberActiveTouches,e.moveX=Q(t,e._accountsForMovesUpTo),e.moveY=ee(t,e._accountsForMovesUpTo);var n=e._accountsForMovesUpTo,r=et(t,n),o=Q(t,n),i=en(t,n),l=ee(t,n),a=e.dx+(o-r),u=e.dy+(l-i),s=t.mostRecentTimeStamp-e._accountsForMovesUpTo;e.vx=(a-e.dx)/s,e.vy=(u-e.dy)/s,e.dx=a,e.dy=u,e._accountsForMovesUpTo=t.mostRecentTimeStamp},create(e){var t={handle:null,shouldCancelClick:!1,timeout:null},n={stateID:Math.random(),moveX:0,moveY:0,x0:0,y0:0,dx:0,dy:0,vx:0,vy:0,numberActiveTouches:0,_accountsForMovesUpTo:0};return{panHandlers:{onStartShouldSetResponder:t=>null!=e.onStartShouldSetPanResponder&&e.onStartShouldSetPanResponder(t,n),onMoveShouldSetResponder:t=>null!=e.onMoveShouldSetPanResponder&&e.onMoveShouldSetPanResponder(t,n),onStartShouldSetResponderCapture:t=>(1===t.nativeEvent.touches.length&&ei._initializeGestureState(n),n.numberActiveTouches=t.touchHistory.numberActiveTouches,null!=e.onStartShouldSetPanResponderCapture&&e.onStartShouldSetPanResponderCapture(t,n)),onMoveShouldSetResponderCapture(t){var r=t.touchHistory;return n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(ei._updateGestureStateOnMove(n,r),!!e.onMoveShouldSetPanResponderCapture&&e.onMoveShouldSetPanResponderCapture(t,n))},onResponderGrant:r=>(t.handle||(t.handle=_.createInteractionHandle()),t.timeout&&clearTimeout(t.timeout),t.shouldCancelClick=!0,n.x0=er(r.touchHistory),n.y0=eo(r.touchHistory),n.dx=0,n.dy=0,e.onPanResponderGrant&&e.onPanResponderGrant(r,n),null==e.onShouldBlockNativeResponder||e.onShouldBlockNativeResponder(r,n)),onResponderReject(r){el(t,e.onPanResponderReject,r,n)},onResponderRelease(r){el(t,e.onPanResponderRelease,r,n),ea(t),ei._initializeGestureState(n)},onResponderStart(t){var r=t.touchHistory;n.numberActiveTouches=r.numberActiveTouches,e.onPanResponderStart&&e.onPanResponderStart(t,n)},onResponderMove(t){var r=t.touchHistory;n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(ei._updateGestureStateOnMove(n,r),e.onPanResponderMove&&e.onPanResponderMove(t,n))},onResponderEnd(r){var o=r.touchHistory;n.numberActiveTouches=o.numberActiveTouches,el(t,e.onPanResponderEnd,r,n)},onResponderTerminate(r){el(t,e.onPanResponderTerminate,r,n),ea(t),ei._initializeGestureState(n)},onResponderTerminationRequest:t=>null==e.onPanResponderTerminationRequest||e.onPanResponderTerminationRequest(t,n),onClickCapture:e=>{!0===t.shouldCancelClick&&(e.stopPropagation(),e.preventDefault())}},getInteractionHandle:()=>t.handle}}};function el(e,t,n,r){e.handle&&(_.clearInteractionHandle(e.handle),e.handle=null),t&&t(n,r)}function ea(e){e.timeout=setTimeout(()=>{e.shouldCancelClick=!1},250)}var eu=n(1090),es=n(5275);let ec=(0,v.createContext)({zIndex:1e5}),ed=(0,v.createContext)(null);function ef(e,t,n=25){return e{let{isHidden:t,controller:n}=(0,eh.$)(),[r,o]=(0,ep.T)({prop:n?.open??e.open,defaultProp:e.defaultOpen??!1,onChange:t=>{n?.onOpenChange?.(t),e.onOpenChange?.(t)},strategy:"most-recent-wins",transition:!0});return{open:r,setOpen:o,isHidden:t,controller:n}};var ev=n(3020),eg=n(2281);let eb=(0,E.Y)((0,v.forwardRef)(function(e,t){let n=(0,v.useContext)(ec),{animation:r,animationConfig:o,modal:i=!1,zIndex:a=n.zIndex+1,moveOnKeyboardChange:u=!1,unmountChildrenWhenHidden:s=!1,portalProps:p,containerComponent:h=v.Fragment}=e,m=L(),g=em(e),[b,y]=(0,v.useState)(null),w=function(e,t,n={}){let r=v.useRef(null),o=v.useRef(null),[i,l]=(0,v.useState)(0),[a,u]=(0,v.useState)(0),s=e.snapPointsMode??"percent",c=e.snapPoints??("percent"===s?[80]:"constant"===s?[256]:["fit"]),d="fit"===c[0],f=(0,v.useMemo)(()=>e.dismissOnSnapToBottom?[...c,0]:c,[JSON.stringify(c),e.dismissOnSnapToBottom]),[p,h]=(0,ep.T)({prop:e.position,defaultProp:e.defaultPosition||(t.open?0:-1),onChange:e.onPositionChange,strategy:"most-recent-wins",transition:!0}),m=!1===t.open?-1:p,{open:g}=t,b=(0,v.useCallback)(n=>{e.dismissOnSnapToBottom&&n===f.length-1?t.setOpen(!1):h(n)},[e.dismissOnSnapToBottom,f.length,h,t.setOpen]);g&&e.dismissOnSnapToBottom&&m===f.length-1&&h(0);let y=g&&m<0;(0,v.useEffect)(()=>{y&&b(0)},[b,y]);let{animationDriver:S}=T();if(!S)throw Error("Must set animations in tamagui.config.ts");let w=(0,ev.h)(()=>({enabled:!1,y:0,paneY:0,paneMinY:0,scrollStartY:-1,drag:()=>{},release:()=>{},scrollLock:!1})),x=e.forceRemoveScrollEnabled??(g&&e.modal),R=f[0];return{screenSize:"percent"===s?i/(("number"==typeof R?R:100)/100):a,maxSnapPoint:R,removeScrollEnabled:x,scrollBridge:w,modal:!!e.modal,open:t.open,setOpen:t.setOpen,hidden:!!t.isHidden,contentRef:o,handleRef:r,frameSize:i,setFrameSize:l,dismissOnOverlayPress:e.dismissOnOverlayPress??!0,dismissOnSnapToBottom:e.dismissOnSnapToBottom??!1,onOverlayComponent:n.onOverlayComponent,scope:e.__scopeSheet,hasFit:d,position:m,snapPoints:f,snapPointsMode:s,setMaxContentSize:u,setPosition:b,setPositionImmediate:h,onlyShowFrame:!1}}(e,g,{onOverlayComponent:y}),{frameSize:E,setFrameSize:C,snapPoints:D,snapPointsMode:B,hasFit:W,position:N,setPosition:z,scrollBridge:j,screenSize:H,setMaxContentSize:F,maxSnapPoint:_}=w,{open:Z,controller:V,isHidden:$}=g,K=(0,v.useRef)(null),U=(0,d.ex)(t,K),Y=(()=>{let[e,t]=r?Array.isArray(r)?r:[r]:[];return o??(e?{...(0,k.iE)().animations.animations[e],...t}:null)})(),[X,q]=(0,v.useState)(!1),G=!l.$L&&i&&X,J=(0,v.useContext)(ed),Q=(0,v.useCallback)(e=>{q(e)},[]),ee=(0,v.useMemo)(()=>D.map(e=>(function(e,t,n,r){if(!n||!r)return 0;if("mixed"===e){if("number"==typeof t)return n-Math.min(n,Math.max(0,t));if("fit"===t)return n-Math.min(n,r);if(t.endsWith("%")){let e=Math.min(100,Math.max(0,Number(t.slice(0,-1))))/100;return Number.isNaN(e)?(console.warn("Invalid snapPoint percentage string"),0):Math.round(n-e*n)}return console.warn("Invalid snapPoint unknown value"),0}if("fit"===e)return 0===t?n:n-Math.min(n,r);if("constant"===e&&"number"==typeof t)return n-Math.min(n,Math.max(0,t));let o=Math.min(100,Math.max(0,Number(t)))/100;return Number.isNaN(o)?(console.warn("Invalid snapPoint percentage"),0):Math.round(n-o*n)})(B,e,H,E)),[H,E,D,B]),{animationDriver:et}=T(),{useAnimatedNumber:en,useAnimatedNumberStyle:er,useAnimatedNumberReaction:eo}=et,el=et.View??f.Kq;(0,l.LI)(()=>{if(J&&Z)return J(!0),()=>{J(!1)}},[J,Z]);let ea=(0,v.useMemo)(()=>({zIndex:a}),[a]),eh=en(10000.1),eb=(0,v.useRef)(10000.1);function ey(){eh.stop(),j.onFinishAnimate&&(j.onFinishAnimate(),j.onFinishAnimate=void 0)}eo({value:eh,hostRef:K},(0,v.useCallback)(e=>{eb.current=e,j.paneY=e},[et]));let eS=10000.1===eb.current,ew=(0,O.z)(e=>{if(0===E)return;let t=$||-1===e?H:ee[e];if(eb.current!==t){if(eb.current=t,ey(),eS||$){eh.setValue(H,{type:"timing",duration:0},()=>{$||(t=ee[e],eb.current=t,eh.setValue(t,{type:"spring",...Y}))});return}eh.setValue(t,{type:"spring",...Y})}});(0,l.LI)(()=>{H&&eS&&eh.setValue(H,{type:"timing",duration:0})},[eS,H]),(0,l.LI)(()=>{E&&H&&!$&&(!eS||Z)&&ew(N)},[$,E,H,Z,N]);let ex=e.disableDrag??V?.disableDrag,eR=(0,M.C)(),[eE,ek]=(0,v.useState)(!1),eC=(0,v.useMemo)(()=>{if(ex||!E||X)return;let e=ee[0];j.paneMinY=e;let t=eb.current;function n(e){ek(e),c&&(e?c.innerText=":root * { user-select: none !important; -webkit-user-select: none !important; }":c.innerText="")}let r=({vy:e,dragAt:r})=>{a=!1,n(!1);let o=r+t+E*e*.2,i=0,l=Number.POSITIVE_INFINITY;for(let e=0;et?o-t:t-o;n{r({vy:t.vy,dragAt:t.dy})},i=()=>{n(!0),ey(),t=eb.current},a=!1;return j.drag=n=>{a||(a=!0,i());let r=n+t;eh.setValue(ef(r,e),{type:"direct"})},j.release=r,ei.create({onMoveShouldSetPanResponder:(e,{dy:t})=>{if(e.target===w.handleRef.current)return!0;let n=0!==j.y,r=j.paneY-5<=j.paneMinY;return!n&&(!r||!!n||!(t<0)||!!l.$L)&&Math.abs(t)>5},onPanResponderGrant:i,onPanResponderMove:(n,{dy:r})=>{let o=ef(r+t,e);eh.setValue(o,{type:"direct"})},onPanResponderEnd:o,onPanResponderTerminate:o,onPanResponderRelease:o})},[ex,X,ew,E,ee,z]),eT=(0,v.useCallback)(e=>{let t=Math.min(e.nativeEvent?.layout.height,eu.Z.get("window").height);t&&C(t)},[m]),eO=(0,v.useCallback)(e=>{let t=Math.min(e.nativeEvent?.layout.height,eu.Z.get("window").height);t&&F(t)},[m]),eM=er(eh,e=>({transform:[{translateY:0===E?10000.1:e}]})),eA=(0,v.useRef)(null);(0,v.useEffect)(()=>{if(l.$L||!u)return;let e=I.Z.addListener("keyboardDidShow",e=>{null===eA.current&&(eA.current=eh.getValue(),eh.setValue(Math.max(eh.getValue()-e.endCoordinates.height,0)))}),t=I.Z.addListener("keyboardDidHide",()=>{null!==eA.current&&(eh.setValue(eA.current),eA.current=null)});return()=>{t.remove(),e.remove()}},[u]);let[eP,eI]=(0,v.useState)(Z?1:0);Z&&0===eP&&eI(1),(0,v.useEffect)(()=>{if(!Z){let e=setTimeout(()=>{eI(0)},400);return()=>{clearTimeout(e)}}},[Z]);let eL=W?void 0:"percent"===B?`${_}${l.$L?"dvh":"%"}`:_,eD=(0,eg.jsx)(ec.Provider,{value:ea,children:(0,eg.jsxs)(S,{...w,children:[(0,eg.jsx)(R.M,{custom:{open:Z},children:G||!Z?null:b}),"percent"!==B&&(0,eg.jsx)(es.Z,{style:{opacity:0,position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none"},onLayout:eO}),(0,eg.jsx)(el,{ref:U,...eC?.panHandlers,onLayout:eT,...!eE&&{animation:r},disableClassName:!0,style:[{position:"absolute",zIndex:a,width:"100%",height:eL,minHeight:eL,opacity:eP,...(G||!Z)&&{pointerEvents:"none"}},eM],children:e.children})]})}),eB=(0,v.useContext)(x.fG);if(i){let e=(0,eg.jsx)(P.h_,{zIndex:a,...p,children:!!(eP||!s)&&(0,eg.jsx)(h,{children:(0,eg.jsx)(A.Q,{forceClassName:!0,name:eR,children:(0,eg.jsx)(x.fG.Provider,{value:eB,children:eD})})})});return l.$L?e:(0,eg.jsx)(ed.Provider,{value:Q,children:e})}return eD}));var ey=n(5295);let eS=(0,v.forwardRef)(({__scopeSheet:e,children:t,onScroll:n,...r},o)=>{let{scrollBridge:i}=w("SheetScrollView",e),l=(0,v.useRef)(null),a=(0,v.useRef)({lastPageY:0,dragAt:0,dys:[],isScrolling:!1,isDragging:!1});return(0,eg.jsx)(ey.p,{ref:(0,d.FE)(l,o),flex:1,scrollEventThrottle:8,onScroll:e=>{let{y:t}=e.nativeEvent.contentOffset;i.y=t,t>0&&(i.scrollStartY=-1),n?.(e)},onStartShouldSetResponder:()=>(i.scrollStartY=-1,a.current.isDragging=!0,!0),onMoveShouldSetResponder:()=>!1,onResponderRelease:()=>{if(!a.current.isDragging)return;a.current.isDragging=!1,i.scrollStartY=-1,a.current.isScrolling=!1;let e=0;if(a.current.dys.length){let t=a.current.dys.slice(-10);e=(t.length?t.reduce((e,t)=>e+t,0):0)/t.length*.04}a.current.dys=[],i.release({dragAt:a.current.dragAt,vy:e})},className:"_ovs-contain",...r,children:(0,v.useMemo)(()=>t,[t])})}),ew=({snapPoints:e,position:t,screenSize:n,frameSize:r,snapPointsMode:o})=>{if("fit"===o)return 0;if("constant"===o)return Number(e[0])-Number(e[t]??0);if("percent"===o)return(Number(e[0])/100-Number(e[t]??0)/100)*n;let i=e[0];if("fit"===i)return 0;let l="string"==typeof i?Number(i.slice(0,-1))/100*n:i,a=e[t]??0,u=l-("string"==typeof a?Number(a.slice(0,-1))/100*n:a);return Number.isNaN(u)?0:u};var ex=n(357);let eR=(0,r.z)(o.sL,{name:u,variants:{open:{true:{pointerEvents:"auto"},false:{opacity:0,pointerEvents:"none"}},unstyled:{false:{height:10,borderRadius:100,backgroundColor:"$background",zIndex:10,marginHorizontal:"35%",marginBottom:"$2",opacity:.5,hoverStyle:{opacity:.7}}}},defaultVariants:{unstyled:"1"===ex.env.TAMAGUI_HEADLESS}}),eE=(0,r.z)(i.K,{name:s,variants:{open:{true:{opacity:1,pointerEvents:"auto"},false:{opacity:0,pointerEvents:"none"}},unstyled:{false:{fullscreen:!0,position:"absolute",backgrounded:!0,zIndex:99999,pointerEvents:"auto"}}},defaultVariants:{unstyled:"1"===ex.env.TAMAGUI_HEADLESS}}),ek=function({Handle:e,Frame:t,Overlay:n}){let r=e.styleable(({__scopeSheet:t,...n},r)=>{let o=w(u,t),i=(0,d.ex)(o.handleRef,r);return o.onlyShowFrame?null:(0,eg.jsx)(e,{ref:i,onPress:()=>{let e=o.snapPoints.length+(o.dismissOnSnapToBottom?-1:0),t=(o.position+1)%e;o.setPosition(t)},open:o.open,...n})}),o=n.extractable((0,v.memo)(e=>{let{__scopeSheet:t,...r}=e,o=w(s,t),i=(0,v.useMemo)(()=>(0,eg.jsx)(n,{...r,onPress:(0,p.Mj)(r.onPress,o.dismissOnOverlayPress?()=>{o.setOpen(!1)}:void 0)}),[r.onPress,o.dismissOnOverlayPress]);return(0,l.LI)(()=>{o.onOverlayComponent?.(i)},[i]),o.onlyShowFrame,null})),i=t.extractable((0,v.forwardRef)(({__scopeSheet:e,adjustPaddingForOffscreenContent:n,disableHideBottomOverflow:r,children:o,...i},l)=>{let u=w(a,e),{hasFit:s,removeScrollEnabled:c,frameSize:p,contentRef:m,open:g}=u,b=(0,d.ex)(l,m),y=ew(u),S=(0,v.useMemo)(()=>(0,eg.jsxs)(t,{ref:b,flex:s?0:1,height:s?void 0:p,pointerEvents:g?"auto":"none",...i,children:[o,n&&(0,eg.jsx)(f.Kq,{"data-sheet-offscreen-pad":!0,height:y,width:"100%"})]}),[g,i,p,y,n,s]);return(0,eg.jsxs)(eg.Fragment,{children:[(0,eg.jsx)(h.f,{forwardProps:!0,enabled:c,allowPinchZoom:!0,shards:[m],removeScrollBar:!1,children:S}),!r&&(0,eg.jsx)(t,{...i,componentName:"SheetCover",children:null,position:"absolute",bottom:"-100%",zIndex:-1,height:u.frameSize,left:0,right:0,borderWidth:0,borderRadius:0,shadowOpacity:0})]})})),c=(0,v.forwardRef)(function(e,t){let n=(0,m.SZ)(),{isShowingNonSheet:r}=(0,eh.$)();return e.native&&g.Z.OS,r||!n?null:(0,eg.jsx)(eb,{ref:t,...e})}),b={Frame:i,Overlay:o,Handle:r,ScrollView:eS},y=(0,p.$e)(c,b);return(0,p.$e)(c,{...b,Controlled:y})}({Frame:(0,r.z)(o.FA,{name:a,variants:{unstyled:{false:{flex:1,backgroundColor:"$background",borderTopLeftRadius:"$true",borderTopRightRadius:"$true",width:"100%",maxHeight:"100%",overflow:"hidden"}}},defaultVariants:{unstyled:"1"===ex.env.TAMAGUI_HEADLESS}}),Handle:eR,Overlay:eE})},4077:function(e,t,n){"use strict";n.d(t,{f:function(){return a}});var r=n(9087),o=n(2265),i=n(7657),l=n(2281);let a=({children:e,onOpenChange:t,...n})=>{let a=(0,r.z)(t),u=(0,o.useMemo)(()=>({open:n.open,hidden:n.hidden,disableDrag:n.disableDrag,onOpenChange:a}),[a,n.open,n.hidden,n.disableDrag]);return(0,l.jsx)(i.W.Provider,{value:u,children:e})}},7657:function(e,t,n){"use strict";n.d(t,{$:function(){return o},W:function(){return i}});var r=n(2265);let o=()=>{let e=(0,r.useContext)(i),t=e?.hidden,n=t&&e?.open;return{controller:e,isHidden:t,isShowingNonSheet:n,disableDrag:e?.disableDrag}},i=(0,r.createContext)(null)},1092:function(e,t,n){"use strict";n.d(t,{K:function(){return s}});var r=n(4975),o=n(5377),i=n(8587);let l={borderRadius:1e5,padding:0},a={backgroundColor:"transparent",borderColor:"transparent",shadowColor:"transparent",hoverStyle:{borderColor:"transparent"}},u={backgrounded:{true:{backgroundColor:"$background"}},radiused:{true:(e,t)=>{let{tokens:n,props:r}=t;return{borderRadius:n.radius[r.size]||n.radius.$true}}},hoverTheme:{true:{hoverStyle:{backgroundColor:"$backgroundHover",borderColor:"$borderColorHover"}},false:{}},pressTheme:{true:{cursor:"pointer",pressStyle:{backgroundColor:"$backgroundPress",borderColor:"$borderColorPress"}},false:{}},focusTheme:{true:{focusStyle:{backgroundColor:"$backgroundFocus",borderColor:"$borderColorFocus"}},false:{}},circular:{true:(e,{props:t,tokens:n})=>{if(!("size"in t))return l;let r="number"==typeof t.size?t.size:n.size[t.size];return{...l,width:r,height:r,maxWidth:r,maxHeight:r,minWidth:r,minHeight:r}}},padded:{true:(e,t)=>{let{tokens:n,props:r}=t;return{padding:n.space[r.size]||n.space.$true}}},elevate:{true:(e,t)=>(0,i.y)(t.props.size,t)},bordered:(e,{props:t})=>({borderWidth:"number"==typeof e?e:1,borderColor:"$borderColor",...t.hoverTheme&&{hoverStyle:{borderColor:"$borderColorHover"}},...t.pressTheme&&{pressStyle:{borderColor:"$borderColorPress"}},...t.focusTheme&&{focusStyle:{borderColor:"$borderColorFocus"}}}),transparent:{true:{backgroundColor:"transparent"}},chromeless:{true:a,all:{...a,hoverStyle:a,pressStyle:a,focusStyle:a}}},s=(0,r.z)(o.FA,{variants:u})},1217:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(4975),o=n(2026);let i=(0,r.z)(o.J,{name:"Paragraph",tag:"p",userSelect:"auto",color:"$color",size:"$true",whiteSpace:"normal"})},2026:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});var r=n(8970),o=n(4975),i=n(8475),l=n(357);let a=(0,o.z)(i.x,{name:"SizableText",fontFamily:"$body",variants:{unstyled:{false:{size:"$true",color:"$color"}},size:r.H},defaultVariants:{unstyled:"1"===l.env.TAMAGUI_HEADLESS}});a.staticConfig.variants.fontFamily={"...":(e,t)=>{let n=t.props.size||"$true";return(0,r.H)(n,t)}}},2875:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(2265),o=n(2281);function i(e,t,n){let{children:i,textProps:l,size:a,noTextWrap:u,color:s,fontFamily:c,fontSize:d,fontWeight:f,letterSpacing:p,textAlign:h,fontStyle:m,maxFontSizeMultiplier:v}=t;if(u||!i)return[i];let g={...n};return s&&(g.color=s),c&&(g.fontFamily=c),d&&(g.fontSize=d),f&&(g.fontWeight=f),p&&(g.letterSpacing=p),h&&(g.textAlign=h),a&&(g.size=a),m&&(g.fontStyle=m),v&&(g.maxFontSizeMultiplier=v),r.Children.toArray(i).map((t,n)=>"string"==typeof t?(0,o.jsx)(e,{...g,...l,children:t},n):t)}},3020:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(2265);function o(e){if(typeof document>"u")return(0,r.useMemo)(()=>e(),[]);let t=(0,r.useRef)();return t.current||(t.current={v:e()}),t.current.v}},3277:function(e,t,n){"use strict";n.d(t,{T:function(){return l}});var r=n(9087),o=n(2265);let i=e=>e();function l({prop:e,defaultProp:t,onChange:n,strategy:l="prop-wins",preventUpdate:u,transition:s}){let[c,d]=(0,o.useState)(e??t),f=(0,o.useRef)(c),p="prop-wins"===l&&void 0!==e,h=p?e:c,m=(0,r.z)(n||a),v=s?o.startTransition:i;return(0,o.useEffect)(()=>{void 0!==e&&(f.current=e,v(()=>{d(e)}))},[e]),(0,o.useEffect)(()=>{p||c!==f.current&&(f.current=c,m(c))},[m,c,p]),[h,(0,r.z)(e=>{u||(p?m("function"==typeof e?e(f.current):e):v(()=>{d(e)}))})]}let a=()=>{}},6616:function(e,t,n){"use strict";n.d(t,{SZ:function(){return l}});var r=n(2265);let o=()=>{},i=()=>o;function l(e,t){if(t?.sync)return(0,r.useSyncExternalStore)(i,()=>e??!0,()=>!1);let[n,o]=(0,r.useState)(e);return(0,r.useEffect)(()=>{o(e??!0)},[]),n??!1}},1386:function(e,t,n){"use strict";n.d(t,{Lb:function(){return f},wN:function(){return d}});var r=n(2265),o=n(5986),i=n(7562),l=n(5902),a=n(2622),u=n(5566),s=n(9097),c=n(8411);function d(e,t){let[n,r]=f(e,{...t,noExpand:!0,noNormalize:!0,resolveValues:"none"});return{...n,...r}}function f(e,t){let n=t?.forComponent?.staticConfig??u.K.staticConfig,[d,f]=(0,c.WU)({componentName:n.componentName}),p=(0,r.useContext)(i.s),{state:h,disabled:m,setStateShallow:v}=(0,l.Ee)(e,p,n,(0,o.iE)()),g=(0,s.GS)(),b=(0,a.DP)(e,n,f,d.state?.name||"",h,{isAnimated:!1,mediaState:g,noSkip:!0,noMergeStyle:!0,noClassNames:!0,resolveValues:"auto",...t},null,p),{mediaGroups:y,pseudoGroups:S}=b;return(0,r.useEffect)(()=>{if(!m){if(h.unmounted){v({unmounted:!1});return}return(0,l.En)({disabled:m,componentContext:p,setStateShallow:v,state:h,mediaGroups:y,pseudoGroups:S})}},[m,S?Object.keys([...S]).join(""):0,y?Object.keys([...y]).join(""):0]),[b.viewProps,b.style||{},f,g]}},4582:function(e,t,n){"use strict";n.d(t,{C:function(){return a}});var r=n(281),o=n(2265),i=n(9033),l=n(8411);function a(e){let t=(0,l.q4)((0,o.useContext)(i.s)),[n,a]=(0,o.useState)(t?.state.name||"");return(0,r.LI)(()=>{if(t)return a(t.state.name),t.onChangeTheme((t,n)=>{let r=e?.parent&&n.state.parentName||t;r&&a(r)})},[t?.state.name]),n}}}]); \ No newline at end of file diff --git a/_next/static/chunks/50bd76a3-3480b2f334cc5792.js b/_next/static/chunks/50bd76a3-7f4929e6d77cc44d.js similarity index 99% rename from _next/static/chunks/50bd76a3-3480b2f334cc5792.js rename to _next/static/chunks/50bd76a3-7f4929e6d77cc44d.js index 34aca35121c4272901069d1dece1b241aa6a6b58..5e76cc54bfbcba973490a4ef4654ff1d769d3724 100644 --- a/_next/static/chunks/50bd76a3-3480b2f334cc5792.js +++ b/_next/static/chunks/50bd76a3-7f4929e6d77cc44d.js @@ -2,7 +2,7 @@ * ONNX Runtime Web v1.14.0 * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. -*/!function(t,e){module.exports=e(__webpack_require__(3426))}(self,__WEBPACK_EXTERNAL_MODULE__1670__=>(()=>{var __webpack_modules__={3474:(t,e,r)=>{var n,i=(n=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(t){function e(){return k.buffer!=F&&W(k.buffer),N}function i(){return k.buffer!=F&&W(k.buffer),L}function o(){return k.buffer!=F&&W(k.buffer),R}function a(){return k.buffer!=F&&W(k.buffer),j}function s(){return k.buffer!=F&&W(k.buffer),M}t=t||{},u||(u=void 0!==t?t:{}),u.ready=new Promise(function(t,e){l=t,c=e});var u,l,c,p,f,d,h,g,b,m=Object.assign({},u),y="./this.program",_=(t,e)=>{throw e},v="object"==typeof window,x="function"==typeof importScripts,w="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,T=u.ENVIRONMENT_IS_PTHREAD||!1,S="";function O(t){return u.locateFile?u.locateFile(t,S):S+t}if(w){let t;S=x?r(908).dirname(S)+"/":"//",b=()=>{g||(h=r(1384),g=r(908))},p=function(t,e){return b(),t=g.normalize(t),h.readFileSync(t,e?void 0:"utf8")},d=t=>((t=p(t,!0)).buffer||(t=new Uint8Array(t)),t),f=(t,e,r)=>{b(),t=g.normalize(t),h.readFile(t,function(t,n){t?r(t):e(n.buffer)})},1{if(Q())throw process.exitCode=t,e;e instanceof tl||D("exiting due to exception: "+e),process.exit(t)},u.inspect=function(){return"[Emscripten Module object]"};try{t=r(9925)}catch(t){throw console.error('The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?'),t}r.g.Worker=t.Worker}else(v||x)&&(x?S=self.location.href:"undefined"!=typeof document&&document.currentScript&&(S=document.currentScript.src),n&&(S=n),S=0!==S.indexOf("blob:")?S.substr(0,S.replace(/[?#].*/,"").lastIndexOf("/")+1):"",w||(p=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},x&&(d=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),f=(t,e,r)=>{var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)}));w&&"undefined"==typeof performance&&(r.g.performance=r(6953).performance);var A=console.log.bind(console),E=console.warn.bind(console);w&&(b(),A=t=>h.writeSync(1,t+"\n"),E=t=>h.writeSync(2,t+"\n"));var I,P=u.print||A,D=u.printErr||E;Object.assign(u,m),m=null,u.thisProgram&&(y=u.thisProgram),u.quit&&(_=u.quit),u.wasmBinary&&(I=u.wasmBinary);var $=u.noExitRuntime||!1;"object"!=typeof WebAssembly&&to("no native wasm support detected");var k,C,F,N,L,R,j,M,U=!1,V="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function B(t,e,r){var n=(e>>>=0)+r;for(r=e;t[r]&&!(r>=n);)++r;if(16(i=224==(240&i)?(15&i)<<12|o<<6|a:(7&i)<<18|o<<12|a<<6|63&t[e++])?n+=String.fromCharCode(i):(i-=65536,n+=String.fromCharCode(55296|i>>10,56320|1023&i))}}else n+=String.fromCharCode(i)}return n}function z(t,e){return(t>>>=0)?B(i(),t,e):""}function G(t,e,r,n){if(!(0>>=0;n=r+n-1;for(var o=0;o=a&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++o)),127>=a){if(r>=n)break;e[r++>>>0]=a}else{if(2047>=a){if(r+1>=n)break;e[r++>>>0]=192|a>>6}else{if(65535>=a){if(r+2>=n)break;e[r++>>>0]=224|a>>12}else{if(r+3>=n)break;e[r++>>>0]=240|a>>18,e[r++>>>0]=128|a>>12&63}e[r++>>>0]=128|a>>6&63}e[r++>>>0]=128|63&a}}return e[r>>>0]=0,r-i}function H(t){for(var e=0,r=0;r=n?e++:2047>=n?e+=2:55296<=n&&57343>=n?(e+=4,++r):e+=3}return e}function W(t){F=t,u.HEAP8=N=new Int8Array(t),u.HEAP16=new Int16Array(t),u.HEAP32=R=new Int32Array(t),u.HEAPU8=L=new Uint8Array(t),u.HEAPU16=new Uint16Array(t),u.HEAPU32=j=new Uint32Array(t),u.HEAPF32=new Float32Array(t),u.HEAPF64=M=new Float64Array(t)}T&&(F=u.buffer);var q=u.INITIAL_MEMORY||16777216;if(T)k=u.wasmMemory,F=u.buffer;else if(u.wasmMemory)k=u.wasmMemory;else if(!((k=new WebAssembly.Memory({initial:q/65536,maximum:65536,shared:!0})).buffer instanceof SharedArrayBuffer))throw D("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),w&&console.log("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and also use a recent version)"),Error("bad memory");k&&(F=k.buffer),q=F.byteLength,W(F);var X,Y=[],K=[],Z=[],J=[];function Q(){return $||!1}function tt(){var t=u.preRun.shift();Y.unshift(t)}var te,tr=0,tn=null,ti=null;function to(t){throw T?postMessage({cmd:"onAbort",arg:t}):u.onAbort&&u.onAbort(t),D(t="Aborted("+t+")"),U=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),c(t),t}function ta(){return te.startsWith("data:application/octet-stream;base64,")}function ts(){var t=te;try{if(t==te&&I)return new Uint8Array(I);if(d)return d(t);throw"both async and sync fetching of the wasm failed"}catch(t){to(t)}}te="ort-wasm-threaded.wasm",ta()||(te=O(te));var tu={};function tl(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function tc(t){(t=th.Vb[t])||to(),th.mc(t)}function tp(t){var e=th.Cc();if(!e)return 6;th.ac.push(e),th.Vb[t.Ub]=e,e.Ub=t.Ub;var r={cmd:"run",start_routine:t.Ic,arg:t.zc,pthread_ptr:t.Ub};return e.$b=()=>{r.time=performance.now(),e.postMessage(r,t.Nc)},e.loaded&&(e.$b(),delete e.$b),0}function tf(t){if(T)return tX(1,1,t);Q()||(th.oc(),u.onExit&&u.onExit(t),U=!0),_(t,new tl(t))}function td(t,e){if(!e&&T)throw tm(t),"unwind";Q()||T||(eu(),tg(Z),es(0),t4[1].length&&t6(1,10),t4[2].length&&t6(2,10),th.oc()),tf(t)}var th={Yb:[],ac:[],qc:[],Vb:{},fc:function(){T&&th.Ec()},Pc:function(){},Ec:function(){th.receiveObjectTransfer=th.Gc,th.threadInitTLS=th.pc,th.setExitStatus=th.nc,$=!1},nc:function(){},oc:function(){for(var t of Object.values(th.Vb))th.mc(t);for(t of th.Yb)t.terminate();th.Yb=[]},mc:function(t){var e=t.Ub;delete th.Vb[e],th.Yb.push(t),th.ac.splice(th.ac.indexOf(t),1),t.Ub=0,ed(e)},Gc:function(){},pc:function(){th.qc.forEach(t=>t())},Fc:function(t,e){t.onmessage=r=>{var n=(r=r.data).cmd;if(t.Ub&&(th.Bc=t.Ub),r.targetThread&&r.targetThread!=ei()){var i=th.Vb[r.Qc];i?i.postMessage(r,r.transferList):D('Internal error! Worker sent a message "'+n+'" to target pthread '+r.targetThread+", but that thread no longer exists!")}else"processProxyingQueue"===n?tB(r.queue):"spawnThread"===n?tp(r):"cleanupThread"===n?tc(r.thread):"killThread"===n?(r=r.thread,n=th.Vb[r],delete th.Vb[r],n.terminate(),ed(r),th.ac.splice(th.ac.indexOf(n),1),n.Ub=0):"cancelThread"===n?th.Vb[r.thread].postMessage({cmd:"cancel"}):"loaded"===n?(t.loaded=!0,e&&e(t),t.$b&&(t.$b(),delete t.$b)):"print"===n?P("Thread "+r.threadId+": "+r.text):"printErr"===n?D("Thread "+r.threadId+": "+r.text):"alert"===n?alert("Thread "+r.threadId+": "+r.text):"setimmediate"===r.target?t.postMessage(r):"onAbort"===n?u.onAbort&&u.onAbort(r.arg):n&&D("worker sent an unknown command "+n);th.Bc=void 0},t.onerror=t=>{throw D("worker sent an error! "+t.filename+":"+t.lineno+": "+t.message),t},w&&(t.on("message",function(e){t.onmessage({data:e})}),t.on("error",function(e){t.onerror(e)}),t.on("detachedExit",function(){})),t.postMessage({cmd:"load",urlOrBlob:u.mainScriptUrlOrBlob||n,wasmMemory:k,wasmModule:C})},yc:function(){var t=O("ort-wasm-threaded.worker.js");th.Yb.push(new Worker(t))},Cc:function(){return 0==th.Yb.length&&(th.yc(),th.Fc(th.Yb[0])),th.Yb.pop()}};function tg(t){for(;0>2>>>0];t=o()[t+48>>2>>>0],eb(e,e-t),ey(e)};var ty=[];function t_(t){var e=ty[t];return e||(t>=ty.length&&(ty.length=t+1),ty[t]=e=X.get(t)),e}u.invokeEntryPoint=function(t,e){t=t_(t)(e),Q()?th.nc(t):eh(t)};var tv,tx,tw=[],tT=0,tS=0;function tO(t){this.Zb=t,this.Sb=t-24,this.xc=function(t){a()[this.Sb+4>>2>>>0]=t},this.bc=function(){return a()[this.Sb+4>>2>>>0]},this.wc=function(t){a()[this.Sb+8>>2>>>0]=t},this.Dc=function(){return a()[this.Sb+8>>2>>>0]},this.rc=function(){o()[this.Sb>>2>>>0]=0},this.hc=function(t){t=t?1:0,e()[this.Sb+12>>0>>>0]=t},this.uc=function(){return 0!=e()[this.Sb+12>>0>>>0]},this.ic=function(t){t=t?1:0,e()[this.Sb+13>>0>>>0]=t},this.kc=function(){return 0!=e()[this.Sb+13>>0>>>0]},this.fc=function(t,e){this.cc(0),this.xc(t),this.wc(e),this.rc(),this.hc(!1),this.ic(!1)},this.sc=function(){Atomics.add(o(),this.Sb>>2,1)},this.Hc=function(){return 1===Atomics.sub(o(),this.Sb>>2,1)},this.cc=function(t){a()[this.Sb+16>>2>>>0]=t},this.tc=function(){return a()[this.Sb+16>>2>>>0]},this.vc=function(){if(ex(this.bc()))return a()[this.Zb>>2>>>0];var t=this.tc();return 0!==t?t:this.Zb}}function tA(t){return ea(new tO(t).Sb)}function tE(t,e,r,n){return T?tX(3,1,t,e,r,n):tI(t,e,r,n)}function tI(t,e,r,n){if("undefined"==typeof SharedArrayBuffer)return D("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var i=[];return T&&0===i.length?tE(t,e,r,n):(t={Ic:r,Ub:t,zc:n,Nc:i},T?(t.Oc="spawnThread",postMessage(t,i),0):tp(t))}function tP(t,e,r){return T?tX(4,1,t,e,r):0}function tD(t,e){if(T)return tX(5,1,t,e)}function t$(t,e){if(T)return tX(6,1,t,e)}function tk(t,e,r){if(T)return tX(7,1,t,e,r)}function tC(t,e,r){return T?tX(8,1,t,e,r):0}function tF(t,e){if(T)return tX(9,1,t,e)}function tN(t,e,r){if(T)return tX(10,1,t,e,r)}function tL(t,e,r,n){if(T)return tX(11,1,t,e,r,n)}function tR(t,e,r,n){if(T)return tX(12,1,t,e,r,n)}function tj(t,e,r,n){if(T)return tX(13,1,t,e,r,n)}function tM(t){if(T)return tX(14,1,t)}function tU(t,e){if(T)return tX(15,1,t,e)}function tV(t,e,r){if(T)return tX(16,1,t,e,r)}function tB(t){Atomics.store(o(),t>>2,1),ei()&&ef(t),Atomics.compareExchange(o(),t>>2,1,0)}function tz(t){return a()[t>>>2]+4294967296*o()[t+4>>>2]}function tG(t,e,r,n,i,o){return T?tX(17,1,t,e,r,n,i,o):-52}function tH(t,e,r,n,i,o){if(T)return tX(18,1,t,e,r,n,i,o)}function tW(t){var r=H(t)+1,n=eo(r);return n&&G(t,e(),n,r),n}function tq(t,e,r){function n(t){return(t=t.toTimeString().match(/\(([A-Za-z ]+)\)$/))?t[1]:"GMT"}if(T)return tX(19,1,t,e,r);var i=(new Date).getFullYear(),s=new Date(i,0,1),u=new Date(i,6,1);i=s.getTimezoneOffset();var l=u.getTimezoneOffset(),c=Math.max(i,l);o()[t>>2>>>0]=60*c,o()[e>>2>>>0]=Number(i!=l),t=n(s),e=n(u),t=tW(t),e=tW(e),l>2>>>0]=t,a()[r+4>>2>>>0]=e):(a()[r>>2>>>0]=e,a()[r+4>>2>>>0]=t)}function tX(t,e){var r=arguments.length-2,n=arguments;return tb(()=>{for(var i=e_(8*r),o=i>>3,a=0;a>>0]=u}return ep(t,r,i,e)})}u.executeNotifiedProxyingQueue=tB,tx=w?()=>{var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:T?()=>performance.now()-u.__performance_now_clock_drift:()=>performance.now();var tY,tK=[],tZ={};function tJ(){if(!tY){var t,e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:y||"./this.program"};for(t in tZ)void 0===tZ[t]?delete e[t]:e[t]=tZ[t];var r=[];for(t in e)r.push(t+"="+e[t]);tY=r}return tY}function tQ(t,r){if(T)return tX(20,1,t,r);var n=0;return tJ().forEach(function(i,o){var s=r+n;for(o=a()[t+4*o>>2>>>0]=s,s=0;s>0>>>0]=i.charCodeAt(s);e()[o>>0>>>0]=0,n+=i.length+1}),0}function t0(t,e){if(T)return tX(21,1,t,e);var r=tJ();a()[t>>2>>>0]=r.length;var n=0;return r.forEach(function(t){n+=t.length+1}),a()[e>>2>>>0]=n,0}function t1(t){return T?tX(22,1,t):52}function t2(t,e,r,n){return T?tX(23,1,t,e,r,n):52}function t3(t,e,r,n,i){return T?tX(24,1,t,e,r,n,i):70}var t4=[null,[],[]];function t6(t,e){var r=t4[t];0===e||10===e?((1===t?P:D)(B(r,0)),r.length=0):r.push(e)}function t8(t,e,r,n){if(T)return tX(25,1,t,e,r,n);for(var o=0,s=0;s>2>>>0],l=a()[e+4>>2>>>0];e+=8;for(var c=0;c>>0]);o+=l}return a()[n>>2>>>0]=o,0}var t5=0;function t7(t){return 0==t%4&&(0!=t%100||0==t%400)}var t9=[31,29,31,30,31,30,31,31,30,31,30,31],et=[31,28,31,30,31,30,31,31,30,31,30,31];function ee(t,r,n,i){function a(t,e,r){for(t="number"==typeof t?t.toString():t||"";t.lengtht?-1:0n-t.getDate())){t.setDate(t.getDate()+e);break}e-=n-t.getDate()+1,t.setDate(1),11>r?t.setMonth(r+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return r=new Date(t.getFullYear()+1,0,4),e=l(new Date(t.getFullYear(),0,4)),r=l(r),0>=u(e,t)?0>=u(r,t)?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var p=o()[i+40>>2>>>0];for(var f in i={Lc:o()[i>>2>>>0],Kc:o()[i+4>>2>>>0],dc:o()[i+8>>2>>>0],jc:o()[i+12>>2>>>0],ec:o()[i+16>>2>>>0],Xb:o()[i+20>>2>>>0],Tb:o()[i+24>>2>>>0],Wb:o()[i+28>>2>>>0],Rc:o()[i+32>>2>>>0],Jc:o()[i+36>>2>>>0],Mc:p?z(p):""},n=z(n),p={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})n=n.replace(RegExp(f,"g"),p[f]);var d="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),h="January February March April May June July August September October November December".split(" ");for(f in p={"%a":function(t){return d[t.Tb].substring(0,3)},"%A":function(t){return d[t.Tb]},"%b":function(t){return h[t.ec].substring(0,3)},"%B":function(t){return h[t.ec]},"%C":function(t){return s((t.Xb+1900)/100|0,2)},"%d":function(t){return s(t.jc,2)},"%e":function(t){return a(t.jc,2," ")},"%g":function(t){return c(t).toString().substring(2)},"%G":function(t){return c(t)},"%H":function(t){return s(t.dc,2)},"%I":function(t){return 0==(t=t.dc)?t=12:12t.dc?"AM":"PM"},"%S":function(t){return s(t.Lc,2)},"%t":function(){return" "},"%u":function(t){return t.Tb||7},"%U":function(t){return s(Math.floor((t.Wb+7-t.Tb)/7),2)},"%V":function(t){var e=Math.floor((t.Wb+7-(t.Tb+6)%7)/7);if(2>=(t.Tb+371-t.Wb-2)%7&&e++,e)53==e&&(4==(r=(t.Tb+371-t.Wb)%7)||3==r&&t7(t.Xb)||(e=1));else{e=52;var r=(t.Tb+7-t.Wb-1)%7;(4==r||5==r&&t7(t.Xb%400-1))&&e++}return s(e,2)},"%w":function(t){return t.Tb},"%W":function(t){return s(Math.floor((t.Wb+7-(t.Tb+6)%7)/7),2)},"%y":function(t){return(t.Xb+1900).toString().substring(2)},"%Y":function(t){return t.Xb+1900},"%z":function(t){var e=0<=(t=t.Jc);return(e?"+":"-")+String("0000"+((t=Math.abs(t)/60)/60*100+t%60)).slice(-4)},"%Z":function(t){return t.Mc},"%%":function(){return"%"}},n=n.replace(/%%/g,"\0\0"),p)n.includes(f)&&(n=n.replace(RegExp(f,"g"),p[f](i)));return(f=function(t){var e=Array(H(t)+1);return G(t,e,0,e.length),e}(n=n.replace(/\0\0/g,"%"))).length>r?0:(function(t,r){e().set(t,r>>>0)}(f,t),f.length-1)}th.fc();var er=[null,tf,tm,tE,tP,tD,t$,tk,tC,tF,tN,tL,tR,tj,tM,tU,tV,tG,tH,tq,tQ,t0,t1,t2,t3,t8],en={b:function(t){return eo(t+24)+24},n:function(t){return(t=new tO(t)).uc()||(t.hc(!0),tT--),t.ic(!1),tw.push(t),t.sc(),t.vc()},ma:function(t){throw D("Unexpected exception thrown, this is not properly supported - aborting"),U=!0,t},x:function(){eg(0);var t=tw.pop();if(t.Hc()&&!t.kc()){var e=t.Dc();e&&t_(e)(t.Zb),tA(t.Zb)}tS=0},e:function(){var t=tS;if(!t)return t5=0;var e=new tO(t);e.cc(t);var r=e.bc();if(!r)return t5=0,t;for(var n=Array.prototype.slice.call(arguments),i=0;itB(n));else if(T)postMessage({targetThread:t,cmd:"processProxyingQueue",queue:n});else{if(!(t=th.Vb[t]))return;t.postMessage({cmd:"processProxyingQueue",queue:n})}return 1},Ea:function(){return -1},Pa:function(t,e){t=new Date(1e3*tz(t)),o()[e>>2>>>0]=t.getUTCSeconds(),o()[e+4>>2>>>0]=t.getUTCMinutes(),o()[e+8>>2>>>0]=t.getUTCHours(),o()[e+12>>2>>>0]=t.getUTCDate(),o()[e+16>>2>>>0]=t.getUTCMonth(),o()[e+20>>2>>>0]=t.getUTCFullYear()-1900,o()[e+24>>2>>>0]=t.getUTCDay(),t=(t.getTime()-Date.UTC(t.getUTCFullYear(),0,1,0,0,0,0))/864e5|0,o()[e+28>>2>>>0]=t},Qa:function(t,e){t=new Date(1e3*tz(t)),o()[e>>2>>>0]=t.getSeconds(),o()[e+4>>2>>>0]=t.getMinutes(),o()[e+8>>2>>>0]=t.getHours(),o()[e+12>>2>>>0]=t.getDate(),o()[e+16>>2>>>0]=t.getMonth(),o()[e+20>>2>>>0]=t.getFullYear()-1900,o()[e+24>>2>>>0]=t.getDay();var r=new Date(t.getFullYear(),0,1),n=(t.getTime()-r.getTime())/864e5|0;o()[e+28>>2>>>0]=n,o()[e+36>>2>>>0]=-60*t.getTimezoneOffset(),t=0|((n=new Date(t.getFullYear(),6,1).getTimezoneOffset())!=(r=r.getTimezoneOffset())&&t.getTimezoneOffset()==Math.min(r,n)),o()[e+32>>2>>>0]=t},Ra:function(t){var e=new Date(o()[t+20>>2>>>0]+1900,o()[t+16>>2>>>0],o()[t+12>>2>>>0],o()[t+8>>2>>>0],o()[t+4>>2>>>0],o()[t>>2>>>0],0),r=o()[t+32>>2>>>0],n=e.getTimezoneOffset(),i=new Date(e.getFullYear(),0,1),a=new Date(e.getFullYear(),6,1).getTimezoneOffset(),s=i.getTimezoneOffset(),u=Math.min(s,a);return 0>r?o()[t+32>>2>>>0]=Number(a!=s&&u==n):0>2>>>0]=e.getDay(),r=(e.getTime()-i.getTime())/864e5|0,o()[t+28>>2>>>0]=r,o()[t>>2>>>0]=e.getSeconds(),o()[t+4>>2>>>0]=e.getMinutes(),o()[t+8>>2>>>0]=e.getHours(),o()[t+12>>2>>>0]=e.getDate(),o()[t+16>>2>>>0]=e.getMonth(),e.getTime()/1e3|0},Aa:tG,Ba:tH,Sa:function t(e,r,n){t.Ac||(t.Ac=!0,tq(e,r,n))},y:function(){to("")},U:function(){if(!w&&!x){var t="Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread";tv||(tv={}),tv[t]||(tv[t]=1,w&&(t="warning: "+t),D(t))}},ra:function(){return 4294901760},B:tx,Ia:function(t,e,r){i().copyWithin(t>>>0,e>>>0,e+r>>>0)},F:function(){return w?r(3993).cpus().length:navigator.hardwareConcurrency},Da:function(t,e,r){tK.length=e,r>>=3;for(var n=0;n>>0];return(0>t?tu[-t-1]:er[t]).apply(null,tK)},qa:function(t){var e=i().length;if((t>>>=0)<=e||4294901760=r;r*=2){var n=e*(1+.2/r);n=Math.min(n,t+100663296);var o=Math;n=Math.max(t,n),o=o.min.call(o,4294901760,n+(65536-n%65536)%65536);t:{try{k.grow(o-F.byteLength+65535>>>16),W(k.buffer);var a=1;break t}catch(t){}a=void 0}if(a)return!0}return!1},Na:function(){throw"unwind"},Ga:tQ,Ha:t0,J:td,I:t1,S:t2,ga:t3,R:t8,d:function(){return t5},na:function t(n,i){t.lc||(t.lc=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var t=new Uint8Array(1);return()=>(crypto.getRandomValues(t),t[0])}if(w)try{var e=r(Object(function(){var t=Error("Cannot find module 'crypto'");throw t.code="MODULE_NOT_FOUND",t}()));return()=>e.randomBytes(1)[0]}catch(t){}return()=>to("randomDevice")}());for(var o=0;o>0>>>0]=t.lc();return 0},ia:function(t,e,r){var n=em();try{return t_(t)(e,r)}catch(t){if(ey(n),t!==t+0)throw t;eg(1,0)}},ja:function(t,e,r){var n=em();try{return t_(t)(e,r)}catch(t){if(ey(n),t!==t+0)throw t;eg(1,0)}},K:function(t){var e=em();try{return t_(t)()}catch(t){if(ey(e),t!==t+0)throw t;eg(1,0)}},f:function(t,e){var r=em();try{return t_(t)(e)}catch(t){if(ey(r),t!==t+0)throw t;eg(1,0)}},P:function(t,e,r){var n=em();try{return t_(t)(e,r)}catch(t){if(ey(n),t!==t+0)throw t;eg(1,0)}},Q:function(t,e,r){var n=em();try{return t_(t)(e,r)}catch(t){if(ey(n),t!==t+0)throw t;eg(1,0)}},k:function(t,e,r){var n=em();try{return t_(t)(e,r)}catch(t){if(ey(n),t!==t+0)throw t;eg(1,0)}},p:function(t,e,r,n){var i=em();try{return t_(t)(e,r,n)}catch(t){if(ey(i),t!==t+0)throw t;eg(1,0)}},q:function(t,e,r,n,i){var o=em();try{return t_(t)(e,r,n,i)}catch(t){if(ey(o),t!==t+0)throw t;eg(1,0)}},N:function(t,e,r,n,i,o){var a=em();try{return t_(t)(e,r,n,i,o)}catch(t){if(ey(a),t!==t+0)throw t;eg(1,0)}},s:function(t,e,r,n,i,o){var a=em();try{return t_(t)(e,r,n,i,o)}catch(t){if(ey(a),t!==t+0)throw t;eg(1,0)}},w:function(t,e,r,n,i,o,a){var s=em();try{return t_(t)(e,r,n,i,o,a)}catch(t){if(ey(s),t!==t+0)throw t;eg(1,0)}},L:function(t,e,r,n,i,o,a,s){var u=em();try{return t_(t)(e,r,n,i,o,a,s)}catch(t){if(ey(u),t!==t+0)throw t;eg(1,0)}},E:function(t,e,r,n,i,o,a,s,u,l,c,p){var f=em();try{return t_(t)(e,r,n,i,o,a,s,u,l,c,p)}catch(t){if(ey(f),t!==t+0)throw t;eg(1,0)}},aa:function(t,e,r,n,i,o,a,s){var u=em();try{return eD(t,e,r,n,i,o,a,s)}catch(t){if(ey(u),t!==t+0)throw t;eg(1,0)}},_:function(t,e,r,n,i,o,a){var s=em();try{return eT(t,e,r,n,i,o,a)}catch(t){if(ey(s),t!==t+0)throw t;eg(1,0)}},Z:function(t,e,r,n,i){var o=em();try{return e$(t,e,r,n,i)}catch(t){if(ey(o),t!==t+0)throw t;eg(1,0)}},ca:function(t,e,r,n){var i=em();try{return eI(t,e,r,n)}catch(t){if(ey(i),t!==t+0)throw t;eg(1,0)}},$:function(t){var e=em();try{return ew(t)}catch(t){if(ey(e),t!==t+0)throw t;eg(1,0)}},ba:function(t,e){var r=em();try{return eP(t,e)}catch(t){if(ey(r),t!==t+0)throw t;eg(1,0)}},Y:function(t,e,r){var n=em();try{return eS(t,e,r)}catch(t){if(ey(n),t!==t+0)throw t;eg(1,0)}},g:function(t){var e=em();try{t_(t)()}catch(t){if(ey(e),t!==t+0)throw t;eg(1,0)}},r:function(t,e){var r=em();try{t_(t)(e)}catch(t){if(ey(r),t!==t+0)throw t;eg(1,0)}},i:function(t,e,r){var n=em();try{t_(t)(e,r)}catch(t){if(ey(n),t!==t+0)throw t;eg(1,0)}},ha:function(t,e,r,n){var i=em();try{t_(t)(e,r,n)}catch(t){if(ey(i),t!==t+0)throw t;eg(1,0)}},m:function(t,e,r,n){var i=em();try{t_(t)(e,r,n)}catch(t){if(ey(i),t!==t+0)throw t;eg(1,0)}},v:function(t,e,r,n,i){var o=em();try{t_(t)(e,r,n,i)}catch(t){if(ey(o),t!==t+0)throw t;eg(1,0)}},u:function(t,e,r,n,i,o){var a=em();try{t_(t)(e,r,n,i,o)}catch(t){if(ey(a),t!==t+0)throw t;eg(1,0)}},O:function(t,e,r,n,i,o,a){var s=em();try{t_(t)(e,r,n,i,o,a)}catch(t){if(ey(s),t!==t+0)throw t;eg(1,0)}},A:function(t,e,r,n,i,o,a,s){var u=em();try{t_(t)(e,r,n,i,o,a,s)}catch(t){if(ey(u),t!==t+0)throw t;eg(1,0)}},ka:function(t,e,r,n,i,o,a,s,u){var l=em();try{t_(t)(e,r,n,i,o,a,s,u)}catch(t){if(ey(l),t!==t+0)throw t;eg(1,0)}},C:function(t,e,r,n,i,o,a,s,u,l,c){var p=em();try{t_(t)(e,r,n,i,o,a,s,u,l,c)}catch(t){if(ey(p),t!==t+0)throw t;eg(1,0)}},D:function(t,e,r,n,i,o,a,s,u,l,c,p,f,d,h,g){var b=em();try{t_(t)(e,r,n,i,o,a,s,u,l,c,p,f,d,h,g)}catch(t){if(ey(b),t!==t+0)throw t;eg(1,0)}},fa:function(t,e,r,n,i,o,a,s){var u=em();try{eO(t,e,r,n,i,o,a,s)}catch(t){if(ey(u),t!==t+0)throw t;eg(1,0)}},da:function(t,e,r,n,i,o,a,s,u,l,c,p){var f=em();try{eE(t,e,r,n,i,o,a,s,u,l,c,p)}catch(t){if(ey(f),t!==t+0)throw t;eg(1,0)}},ea:function(t,e,r,n,i,o){var a=em();try{eA(t,e,r,n,i,o)}catch(t){if(ey(a),t!==t+0)throw t;eg(1,0)}},o:function(t){return t},a:k||u.wasmMemory,G:function(t){t5=t},la:ee,z:function(t,e,r,n){return ee(t,e,r,n)}};(function(){function t(t,e){u.asm=t.exports,th.qc.push(u.asm.sb),X=u.asm.ub,K.unshift(u.asm.Va),C=e,T||(tr--,u.monitorRunDependencies&&u.monitorRunDependencies(tr),0==tr&&(null!==tn&&(clearInterval(tn),tn=null),ti&&(t=ti,ti=null,t())))}function e(e){t(e.instance,e.module)}function r(t){return(function(){if(!I&&(v||x)){if("function"==typeof fetch&&!te.startsWith("file://"))return fetch(te,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+te+"'";return t.arrayBuffer()}).catch(function(){return ts()});if(f)return new Promise(function(t,e){f(te,function(e){t(new Uint8Array(e))},e)})}return Promise.resolve().then(function(){return ts()})})().then(function(t){return WebAssembly.instantiate(t,n)}).then(function(t){return t}).then(t,function(t){D("failed to asynchronously prepare wasm: "+t),to(t)})}var n={a:en};if(T||(tr++,u.monitorRunDependencies&&u.monitorRunDependencies(tr)),u.instantiateWasm)try{return u.instantiateWasm(n,t)}catch(t){return D("Module.instantiateWasm callback failed with error: "+t),!1}(I||"function"!=typeof WebAssembly.instantiateStreaming||ta()||te.startsWith("file://")||w||"function"!=typeof fetch?r(e):fetch(te,{credentials:"same-origin"}).then(function(t){return WebAssembly.instantiateStreaming(t,n).then(e,function(t){return D("wasm streaming compile failed: "+t),D("falling back to ArrayBuffer instantiation"),r(e)})})).catch(c)})(),u.___wasm_call_ctors=function(){return(u.___wasm_call_ctors=u.asm.Va).apply(null,arguments)},u._OrtInit=function(){return(u._OrtInit=u.asm.Wa).apply(null,arguments)},u._OrtCreateSessionOptions=function(){return(u._OrtCreateSessionOptions=u.asm.Xa).apply(null,arguments)},u._OrtAppendExecutionProvider=function(){return(u._OrtAppendExecutionProvider=u.asm.Ya).apply(null,arguments)},u._OrtAddSessionConfigEntry=function(){return(u._OrtAddSessionConfigEntry=u.asm.Za).apply(null,arguments)},u._OrtReleaseSessionOptions=function(){return(u._OrtReleaseSessionOptions=u.asm._a).apply(null,arguments)},u._OrtCreateSession=function(){return(u._OrtCreateSession=u.asm.$a).apply(null,arguments)},u._OrtReleaseSession=function(){return(u._OrtReleaseSession=u.asm.ab).apply(null,arguments)},u._OrtGetInputCount=function(){return(u._OrtGetInputCount=u.asm.bb).apply(null,arguments)},u._OrtGetOutputCount=function(){return(u._OrtGetOutputCount=u.asm.cb).apply(null,arguments)},u._OrtGetInputName=function(){return(u._OrtGetInputName=u.asm.db).apply(null,arguments)},u._OrtGetOutputName=function(){return(u._OrtGetOutputName=u.asm.eb).apply(null,arguments)},u._OrtFree=function(){return(u._OrtFree=u.asm.fb).apply(null,arguments)},u._OrtCreateTensor=function(){return(u._OrtCreateTensor=u.asm.gb).apply(null,arguments)},u._OrtGetTensorData=function(){return(u._OrtGetTensorData=u.asm.hb).apply(null,arguments)},u._OrtReleaseTensor=function(){return(u._OrtReleaseTensor=u.asm.ib).apply(null,arguments)},u._OrtCreateRunOptions=function(){return(u._OrtCreateRunOptions=u.asm.jb).apply(null,arguments)},u._OrtAddRunConfigEntry=function(){return(u._OrtAddRunConfigEntry=u.asm.kb).apply(null,arguments)},u._OrtReleaseRunOptions=function(){return(u._OrtReleaseRunOptions=u.asm.lb).apply(null,arguments)},u._OrtRun=function(){return(u._OrtRun=u.asm.mb).apply(null,arguments)},u._OrtEndProfiling=function(){return(u._OrtEndProfiling=u.asm.nb).apply(null,arguments)};var ei=u._pthread_self=function(){return(ei=u._pthread_self=u.asm.ob).apply(null,arguments)},eo=u._malloc=function(){return(eo=u._malloc=u.asm.pb).apply(null,arguments)},ea=u._free=function(){return(ea=u._free=u.asm.qb).apply(null,arguments)},es=u._fflush=function(){return(es=u._fflush=u.asm.rb).apply(null,arguments)};u.__emscripten_tls_init=function(){return(u.__emscripten_tls_init=u.asm.sb).apply(null,arguments)};var eu=u.___funcs_on_exit=function(){return(eu=u.___funcs_on_exit=u.asm.tb).apply(null,arguments)},el=u.__emscripten_thread_init=function(){return(el=u.__emscripten_thread_init=u.asm.vb).apply(null,arguments)};u.__emscripten_thread_crashed=function(){return(u.__emscripten_thread_crashed=u.asm.wb).apply(null,arguments)};var ec,ep=u._emscripten_run_in_main_runtime_thread_js=function(){return(ep=u._emscripten_run_in_main_runtime_thread_js=u.asm.xb).apply(null,arguments)},ef=u.__emscripten_proxy_execute_task_queue=function(){return(ef=u.__emscripten_proxy_execute_task_queue=u.asm.yb).apply(null,arguments)},ed=u.__emscripten_thread_free_data=function(){return(ed=u.__emscripten_thread_free_data=u.asm.zb).apply(null,arguments)},eh=u.__emscripten_thread_exit=function(){return(eh=u.__emscripten_thread_exit=u.asm.Ab).apply(null,arguments)},eg=u._setThrew=function(){return(eg=u._setThrew=u.asm.Bb).apply(null,arguments)},eb=u._emscripten_stack_set_limits=function(){return(eb=u._emscripten_stack_set_limits=u.asm.Cb).apply(null,arguments)},em=u.stackSave=function(){return(em=u.stackSave=u.asm.Db).apply(null,arguments)},ey=u.stackRestore=function(){return(ey=u.stackRestore=u.asm.Eb).apply(null,arguments)},e_=u.stackAlloc=function(){return(e_=u.stackAlloc=u.asm.Fb).apply(null,arguments)},ev=u.___cxa_can_catch=function(){return(ev=u.___cxa_can_catch=u.asm.Gb).apply(null,arguments)},ex=u.___cxa_is_pointer_type=function(){return(ex=u.___cxa_is_pointer_type=u.asm.Hb).apply(null,arguments)},ew=u.dynCall_j=function(){return(ew=u.dynCall_j=u.asm.Ib).apply(null,arguments)},eT=u.dynCall_iiiiij=function(){return(eT=u.dynCall_iiiiij=u.asm.Jb).apply(null,arguments)},eS=u.dynCall_jii=function(){return(eS=u.dynCall_jii=u.asm.Kb).apply(null,arguments)},eO=u.dynCall_viiiiij=function(){return(eO=u.dynCall_viiiiij=u.asm.Lb).apply(null,arguments)},eA=u.dynCall_vjji=function(){return(eA=u.dynCall_vjji=u.asm.Mb).apply(null,arguments)},eE=u.dynCall_viiijjjii=function(){return(eE=u.dynCall_viiijjjii=u.asm.Nb).apply(null,arguments)},eI=u.dynCall_iij=function(){return(eI=u.dynCall_iij=u.asm.Ob).apply(null,arguments)},eP=u.dynCall_ji=function(){return(eP=u.dynCall_ji=u.asm.Pb).apply(null,arguments)},eD=u.dynCall_iiiiiij=function(){return(eD=u.dynCall_iiiiiij=u.asm.Qb).apply(null,arguments)},e$=u.dynCall_iiij=function(){return(e$=u.dynCall_iiij=u.asm.Rb).apply(null,arguments)};function ek(){function t(){if(!ec&&(ec=!0,u.calledRun=!0,!U)&&(T||tg(K),l(u),u.onRuntimeInitialized&&u.onRuntimeInitialized(),!T)){if(u.postRun)for("function"==typeof u.postRun&&(u.postRun=[u.postRun]);u.postRun.length;){var t=u.postRun.shift();J.unshift(t)}tg(J)}}if(!(0{var n,i=(n=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(t){t=t||{},e||(e=void 0!==t?t:{}),e.ready=new Promise(function(t,e){i=t,o=e});var e,i,o,a,s,u,l,c,p,f=Object.assign({},e),d="./this.program",h=(t,e)=>{throw e},g="object"==typeof window,b="function"==typeof importScripts,m="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,y="";m?(y=b?r(908).dirname(y)+"/":"//",p=()=>{c||(l=r(1384),c=r(908))},a=function(t,e){return p(),t=c.normalize(t),l.readFileSync(t,e?void 0:"utf8")},u=t=>((t=a(t,!0)).buffer||(t=new Uint8Array(t)),t),s=(t,e,r)=>{p(),t=c.normalize(t),l.readFile(t,function(t,n){t?r(t):e(n.buffer)})},1{if(w||0{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},b&&(u=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),s=(t,e,r)=>{var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)});var _,v=e.print||console.log.bind(console),x=e.printErr||console.warn.bind(console);Object.assign(e,f),f=null,e.thisProgram&&(d=e.thisProgram),e.quit&&(h=e.quit),e.wasmBinary&&(_=e.wasmBinary);var w=e.noExitRuntime||!1;"object"!=typeof WebAssembly&&q("no native wasm support detected");var T,S,O,A,E,I,P=!1,D="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function $(t,e,r){var n=(e>>>=0)+r;for(r=e;t[r]&&!(r>=n);)++r;if(16(i=224==(240&i)?(15&i)<<12|o<<6|a:(7&i)<<18|o<<12|a<<6|63&t[e++])?n+=String.fromCharCode(i):(i-=65536,n+=String.fromCharCode(55296|i>>10,56320|1023&i))}}else n+=String.fromCharCode(i)}return n}function k(t,e){return(t>>>=0)?$(A,t,e):""}function C(t,e,r,n){if(!(0>>=0;n=r+n-1;for(var o=0;o=a&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++o)),127>=a){if(r>=n)break;e[r++>>>0]=a}else{if(2047>=a){if(r+1>=n)break;e[r++>>>0]=192|a>>6}else{if(65535>=a){if(r+2>=n)break;e[r++>>>0]=224|a>>12}else{if(r+3>=n)break;e[r++>>>0]=240|a>>18,e[r++>>>0]=128|a>>12&63}e[r++>>>0]=128|a>>6&63}e[r++>>>0]=128|63&a}}return e[r>>>0]=0,r-i}function F(t){for(var e=0,r=0;r=n?e++:2047>=n?e+=2:55296<=n&&57343>=n?(e+=4,++r):e+=3}return e}function N(){var t=T.buffer;S=t,e.HEAP8=O=new Int8Array(t),e.HEAP16=new Int16Array(t),e.HEAP32=E=new Int32Array(t),e.HEAPU8=A=new Uint8Array(t),e.HEAPU16=new Uint16Array(t),e.HEAPU32=I=new Uint32Array(t),e.HEAPF32=new Float32Array(t),e.HEAPF64=new Float64Array(t)}var L,R=[],j=[],M=[],U=[],V=0;function B(){var t=e.preRun.shift();R.unshift(t)}var z,G=0,H=null,W=null;function q(t){throw e.onAbort&&e.onAbort(t),x(t="Aborted("+t+")"),P=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),o(t),t}function X(){return z.startsWith("data:application/octet-stream;base64,")}if(z="ort-wasm.wasm",!X()){var Y=z;z=e.locateFile?e.locateFile(Y,y):y+Y}function K(){var t=z;try{if(t==z&&_)return new Uint8Array(_);if(u)return u(t);throw"both async and sync fetching of the wasm failed"}catch(t){q(t)}}function Z(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function J(t){for(;0>2>>>0]=t},this.Eb=function(){return I[this.zb+4>>2>>>0]},this.Sb=function(t){I[this.zb+8>>2>>>0]=t},this.Wb=function(){return I[this.zb+8>>2>>>0]},this.Tb=function(){E[this.zb>>2>>>0]=0},this.Ib=function(t){O[this.zb+12>>0>>>0]=t?1:0},this.Pb=function(){return 0!=O[this.zb+12>>0>>>0]},this.Jb=function(t){O[this.zb+13>>0>>>0]=t?1:0},this.Lb=function(){return 0!=O[this.zb+13>>0>>>0]},this.Rb=function(t,e){this.Fb(0),this.Ub(t),this.Sb(e),this.Tb(),this.Ib(!1),this.Jb(!1)},this.Nb=function(){E[this.zb>>2>>>0]+=1},this.Xb=function(){var t=E[this.zb>>2>>>0];return E[this.zb>>2>>>0]=t-1,1===t},this.Fb=function(t){I[this.zb+16>>2>>>0]=t},this.Ob=function(){return I[this.zb+16>>2>>>0]},this.Qb=function(){if(tI(this.Eb()))return I[this.Db>>2>>>0];var t=this.Ob();return 0!==t?t:this.Db}}function tn(t){return tv(new tr(t).zb)}var ti=[];function to(t){var e=ti[t];return e||(t>=ti.length&&(ti.length=t+1),ti[t]=e=L.get(t)),e}function ta(t){var e=F(t)+1,r=t_(e);return r&&C(t,O,r,e),r}var ts={};function tu(){if(!tl){var t,e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:d||"./this.program"};for(t in ts)void 0===ts[t]?delete e[t]:e[t]=ts[t];var r=[];for(t in e)r.push(t+"="+e[t]);tl=r}return tl}var tl,tc=[null,[],[]];function tp(t,e){var r=tc[t];0===e||10===e?((1===t?v:x)($(r,0)),r.length=0):r.push(e)}var tf=0;function td(t){return 0==t%4&&(0!=t%100||0==t%400)}var th=[31,29,31,30,31,30,31,31,30,31,30,31],tg=[31,28,31,30,31,30,31,31,30,31,30,31];function tb(t,e,r,n){function i(t,e,r){for(t="number"==typeof t?t.toString():t||"";t.lengtht?-1:0n-t.getDate())){t.setDate(t.getDate()+e);break}e-=n-t.getDate()+1,t.setDate(1),11>r?t.setMonth(r+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return r=new Date(t.getFullYear()+1,0,4),e=s(new Date(t.getFullYear(),0,4)),r=s(r),0>=a(e,t)?0>=a(r,t)?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var l=E[n+40>>2>>>0];for(var c in n={$b:E[n>>2>>>0],Zb:E[n+4>>2>>>0],Gb:E[n+8>>2>>>0],Kb:E[n+12>>2>>>0],Hb:E[n+16>>2>>>0],Cb:E[n+20>>2>>>0],Ab:E[n+24>>2>>>0],Bb:E[n+28>>2>>>0],bc:E[n+32>>2>>>0],Yb:E[n+36>>2>>>0],ac:l?k(l):""},r=k(r),l={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})r=r.replace(RegExp(c,"g"),l[c]);var p="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),f="January February March April May June July August September October November December".split(" ");for(c in l={"%a":function(t){return p[t.Ab].substring(0,3)},"%A":function(t){return p[t.Ab]},"%b":function(t){return f[t.Hb].substring(0,3)},"%B":function(t){return f[t.Hb]},"%C":function(t){return o((t.Cb+1900)/100|0,2)},"%d":function(t){return o(t.Kb,2)},"%e":function(t){return i(t.Kb,2," ")},"%g":function(t){return u(t).toString().substring(2)},"%G":function(t){return u(t)},"%H":function(t){return o(t.Gb,2)},"%I":function(t){return 0==(t=t.Gb)?t=12:12t.Gb?"AM":"PM"},"%S":function(t){return o(t.$b,2)},"%t":function(){return" "},"%u":function(t){return t.Ab||7},"%U":function(t){return o(Math.floor((t.Bb+7-t.Ab)/7),2)},"%V":function(t){var e=Math.floor((t.Bb+7-(t.Ab+6)%7)/7);if(2>=(t.Ab+371-t.Bb-2)%7&&e++,e)53==e&&(4==(r=(t.Ab+371-t.Bb)%7)||3==r&&td(t.Cb)||(e=1));else{e=52;var r=(t.Ab+7-t.Bb-1)%7;(4==r||5==r&&td(t.Cb%400-1))&&e++}return o(e,2)},"%w":function(t){return t.Ab},"%W":function(t){return o(Math.floor((t.Bb+7-(t.Ab+6)%7)/7),2)},"%y":function(t){return(t.Cb+1900).toString().substring(2)},"%Y":function(t){return t.Cb+1900},"%z":function(t){var e=0<=(t=t.Yb);return(e?"+":"-")+String("0000"+((t=Math.abs(t)/60)/60*100+t%60)).slice(-4)},"%Z":function(t){return t.ac},"%%":function(){return"%"}},r=r.replace(/%%/g,"\0\0"),l)r.includes(c)&&(r=r.replace(RegExp(c,"g"),l[c](n)));return(c=function(t){var e=Array(F(t)+1);return C(t,e,0,e.length),e}(r=r.replace(/\0\0/g,"%"))).length>e?0:(O.set(c,t>>>0),c.length-1)}var tm={a:function(t){return t_(t+24)+24},m:function(t){return(t=new tr(t)).Pb()||(t.Ib(!0),tt--),t.Jb(!1),Q.push(t),t.Nb(),t.Qb()},ia:function(t){throw x("Unexpected exception thrown, this is not properly supported - aborting"),P=!0,t},w:function(){tT(0);var t=Q.pop();if(t.Xb()&&!t.Lb()){var e=t.Wb();e&&to(e)(t.Db),tn(t.Db)}te=0},d:function(){var t=te;if(!t)return tf=0;var e=new tr(t);e.Fb(t);var r=e.Eb();if(!r)return tf=0,t;for(var n=Array.prototype.slice.call(arguments),i=0;i>>2]+4294967296*E[t+4>>>2])),E[e>>2>>>0]=t.getUTCSeconds(),E[e+4>>2>>>0]=t.getUTCMinutes(),E[e+8>>2>>>0]=t.getUTCHours(),E[e+12>>2>>>0]=t.getUTCDate(),E[e+16>>2>>>0]=t.getUTCMonth(),E[e+20>>2>>>0]=t.getUTCFullYear()-1900,E[e+24>>2>>>0]=t.getUTCDay(),E[e+28>>2>>>0]=(t.getTime()-Date.UTC(t.getUTCFullYear(),0,1,0,0,0,0))/864e5|0},Ea:function(t,e){t=new Date(1e3*(I[t>>>2]+4294967296*E[t+4>>>2])),E[e>>2>>>0]=t.getSeconds(),E[e+4>>2>>>0]=t.getMinutes(),E[e+8>>2>>>0]=t.getHours(),E[e+12>>2>>>0]=t.getDate(),E[e+16>>2>>>0]=t.getMonth(),E[e+20>>2>>>0]=t.getFullYear()-1900,E[e+24>>2>>>0]=t.getDay();var r=new Date(t.getFullYear(),0,1);E[e+28>>2>>>0]=(t.getTime()-r.getTime())/864e5|0,E[e+36>>2>>>0]=-60*t.getTimezoneOffset();var n=new Date(t.getFullYear(),6,1).getTimezoneOffset();r=r.getTimezoneOffset(),E[e+32>>2>>>0]=0|(n!=r&&t.getTimezoneOffset()==Math.min(r,n))},Fa:function(t){var e=new Date(E[t+20>>2>>>0]+1900,E[t+16>>2>>>0],E[t+12>>2>>>0],E[t+8>>2>>>0],E[t+4>>2>>>0],E[t>>2>>>0],0),r=E[t+32>>2>>>0],n=e.getTimezoneOffset(),i=new Date(e.getFullYear(),0,1),o=new Date(e.getFullYear(),6,1).getTimezoneOffset(),a=i.getTimezoneOffset(),s=Math.min(a,o);return 0>r?E[t+32>>2>>>0]=Number(o!=a&&s==n):0>2>>>0]=e.getDay(),E[t+28>>2>>>0]=(e.getTime()-i.getTime())/864e5|0,E[t>>2>>>0]=e.getSeconds(),E[t+4>>2>>>0]=e.getMinutes(),E[t+8>>2>>>0]=e.getHours(),E[t+12>>2>>>0]=e.getDate(),E[t+16>>2>>>0]=e.getMonth(),e.getTime()/1e3|0},sa:function(){return -52},ta:function(){},Ga:function t(e,r,n){t.Vb||(t.Vb=!0,function(t,e,r){function n(t){return(t=t.toTimeString().match(/\(([A-Za-z ]+)\)$/))?t[1]:"GMT"}var i=(new Date).getFullYear(),o=new Date(i,0,1),a=new Date(i,6,1);i=o.getTimezoneOffset();var s=a.getTimezoneOffset();E[t>>2>>>0]=60*Math.max(i,s),E[e>>2>>>0]=Number(i!=s),t=n(o),e=n(a),t=ta(t),e=ta(e),s>2>>>0]=t,I[r+4>>2>>>0]=e):(I[r>>2>>>0]=e,I[r+4>>2>>>0]=t)}(e,r,n))},B:function(){q("")},ma:function(){return 4294901760},I:m?()=>{var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:()=>performance.now(),xa:function(t,e,r){A.copyWithin(t>>>0,e>>>0,e+r>>>0)},G:function(t){var e=A.length;if(4294901760<(t>>>=0))return!1;for(var r=1;4>=r;r*=2){var n=e*(1+.2/r);n=Math.min(n,t+100663296);var i=Math;n=Math.max(t,n),i=i.min.call(i,4294901760,n+(65536-n%65536)%65536);t:{try{T.grow(i-S.byteLength+65535>>>16),N();var o=1;break t}catch(t){}o=void 0}if(o)return!0}return!1},va:function(t,e){var r=0;return tu().forEach(function(n,i){var o=e+r;for(i=I[t+4*i>>2>>>0]=o,o=0;o>0>>>0]=n.charCodeAt(o);O[i>>0>>>0]=0,r+=n.length+1}),0},wa:function(t,e){var r=tu();I[t>>2>>>0]=r.length;var n=0;return r.forEach(function(t){n+=t.length+1}),I[e>>2>>>0]=n,0},ba:function(t){w||0>2>>>0],s=I[e+4>>2>>>0];e+=8;for(var u=0;u>>0]);i+=s}return I[n>>2>>>0]=i,0},c:function(){return tf},ja:function t(e,n){t.Mb||(t.Mb=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var t=new Uint8Array(1);return()=>(crypto.getRandomValues(t),t[0])}if(m)try{var e=r(Object(function(){var t=Error("Cannot find module 'crypto'");throw t.code="MODULE_NOT_FOUND",t}()));return()=>e.randomBytes(1)[0]}catch(t){}return()=>q("randomDevice")}());for(var i=0;i>0>>>0]=t.Mb();return 0},ea:function(t,e,r){var n=tS();try{return to(t)(e,r)}catch(t){if(tO(n),t!==t+0)throw t;tT(1,0)}},fa:function(t,e,r){var n=tS();try{return to(t)(e,r)}catch(t){if(tO(n),t!==t+0)throw t;tT(1,0)}},J:function(t){var e=tS();try{return to(t)()}catch(t){if(tO(e),t!==t+0)throw t;tT(1,0)}},e:function(t,e){var r=tS();try{return to(t)(e)}catch(t){if(tO(r),t!==t+0)throw t;tT(1,0)}},N:function(t,e,r){var n=tS();try{return to(t)(e,r)}catch(t){if(tO(n),t!==t+0)throw t;tT(1,0)}},O:function(t,e,r){var n=tS();try{return to(t)(e,r)}catch(t){if(tO(n),t!==t+0)throw t;tT(1,0)}},j:function(t,e,r){var n=tS();try{return to(t)(e,r)}catch(t){if(tO(n),t!==t+0)throw t;tT(1,0)}},o:function(t,e,r,n){var i=tS();try{return to(t)(e,r,n)}catch(t){if(tO(i),t!==t+0)throw t;tT(1,0)}},p:function(t,e,r,n,i){var o=tS();try{return to(t)(e,r,n,i)}catch(t){if(tO(o),t!==t+0)throw t;tT(1,0)}},M:function(t,e,r,n,i,o){var a=tS();try{return to(t)(e,r,n,i,o)}catch(t){if(tO(a),t!==t+0)throw t;tT(1,0)}},r:function(t,e,r,n,i,o){var a=tS();try{return to(t)(e,r,n,i,o)}catch(t){if(tO(a),t!==t+0)throw t;tT(1,0)}},v:function(t,e,r,n,i,o,a){var s=tS();try{return to(t)(e,r,n,i,o,a)}catch(t){if(tO(s),t!==t+0)throw t;tT(1,0)}},K:function(t,e,r,n,i,o,a,s){var u=tS();try{return to(t)(e,r,n,i,o,a,s)}catch(t){if(tO(u),t!==t+0)throw t;tT(1,0)}},D:function(t,e,r,n,i,o,a,s,u,l,c,p){var f=tS();try{return to(t)(e,r,n,i,o,a,s,u,l,c,p)}catch(t){if(tO(f),t!==t+0)throw t;tT(1,0)}},X:function(t,e,r,n,i,o,a,s){var u=tS();try{return tR(t,e,r,n,i,o,a,s)}catch(t){if(tO(u),t!==t+0)throw t;tT(1,0)}},V:function(t,e,r,n,i,o,a){var s=tS();try{return tD(t,e,r,n,i,o,a)}catch(t){if(tO(s),t!==t+0)throw t;tT(1,0)}},U:function(t,e,r,n,i){var o=tS();try{return tj(t,e,r,n,i)}catch(t){if(tO(o),t!==t+0)throw t;tT(1,0)}},Z:function(t,e,r,n){var i=tS();try{return tN(t,e,r,n)}catch(t){if(tO(i),t!==t+0)throw t;tT(1,0)}},W:function(t){var e=tS();try{return tP(t)}catch(t){if(tO(e),t!==t+0)throw t;tT(1,0)}},Y:function(t,e){var r=tS();try{return tL(t,e)}catch(t){if(tO(r),t!==t+0)throw t;tT(1,0)}},T:function(t,e,r){var n=tS();try{return t$(t,e,r)}catch(t){if(tO(n),t!==t+0)throw t;tT(1,0)}},f:function(t){var e=tS();try{to(t)()}catch(t){if(tO(e),t!==t+0)throw t;tT(1,0)}},q:function(t,e){var r=tS();try{to(t)(e)}catch(t){if(tO(r),t!==t+0)throw t;tT(1,0)}},h:function(t,e,r){var n=tS();try{to(t)(e,r)}catch(t){if(tO(n),t!==t+0)throw t;tT(1,0)}},da:function(t,e,r,n){var i=tS();try{to(t)(e,r,n)}catch(t){if(tO(i),t!==t+0)throw t;tT(1,0)}},l:function(t,e,r,n){var i=tS();try{to(t)(e,r,n)}catch(t){if(tO(i),t!==t+0)throw t;tT(1,0)}},t:function(t,e,r,n,i){var o=tS();try{to(t)(e,r,n,i)}catch(t){if(tO(o),t!==t+0)throw t;tT(1,0)}},u:function(t,e,r,n,i,o){var a=tS();try{to(t)(e,r,n,i,o)}catch(t){if(tO(a),t!==t+0)throw t;tT(1,0)}},x:function(t,e,r,n,i,o,a){var s=tS();try{to(t)(e,r,n,i,o,a)}catch(t){if(tO(s),t!==t+0)throw t;tT(1,0)}},z:function(t,e,r,n,i,o,a,s){var u=tS();try{to(t)(e,r,n,i,o,a,s)}catch(t){if(tO(u),t!==t+0)throw t;tT(1,0)}},ga:function(t,e,r,n,i,o,a,s,u){var l=tS();try{to(t)(e,r,n,i,o,a,s,u)}catch(t){if(tO(l),t!==t+0)throw t;tT(1,0)}},A:function(t,e,r,n,i,o,a,s,u,l,c){var p=tS();try{to(t)(e,r,n,i,o,a,s,u,l,c)}catch(t){if(tO(p),t!==t+0)throw t;tT(1,0)}},C:function(t,e,r,n,i,o,a,s,u,l,c,p,f,d,h,g){var b=tS();try{to(t)(e,r,n,i,o,a,s,u,l,c,p,f,d,h,g)}catch(t){if(tO(b),t!==t+0)throw t;tT(1,0)}},aa:function(t,e,r,n,i,o,a,s){var u=tS();try{tk(t,e,r,n,i,o,a,s)}catch(t){if(tO(u),t!==t+0)throw t;tT(1,0)}},_:function(t,e,r,n,i,o,a,s,u,l,c,p){var f=tS();try{tF(t,e,r,n,i,o,a,s,u,l,c,p)}catch(t){if(tO(f),t!==t+0)throw t;tT(1,0)}},$:function(t,e,r,n,i,o){var a=tS();try{tC(t,e,r,n,i,o)}catch(t){if(tO(a),t!==t+0)throw t;tT(1,0)}},n:function(t){return t},F:function(t){tf=t},ha:tb,y:function(t,e,r,n){return tb(t,e,r,n)}};(function(){function t(t){e.asm=t.exports,T=e.asm.Ka,N(),L=e.asm.ib,j.unshift(e.asm.La),G--,e.monitorRunDependencies&&e.monitorRunDependencies(G),0==G&&(null!==H&&(clearInterval(H),H=null),W&&(t=W,W=null,t()))}function r(e){t(e.instance)}function n(t){return(function(){if(!_&&(g||b)){if("function"==typeof fetch&&!z.startsWith("file://"))return fetch(z,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+z+"'";return t.arrayBuffer()}).catch(function(){return K()});if(s)return new Promise(function(t,e){s(z,function(e){t(new Uint8Array(e))},e)})}return Promise.resolve().then(function(){return K()})})().then(function(t){return WebAssembly.instantiate(t,i)}).then(function(t){return t}).then(t,function(t){x("failed to asynchronously prepare wasm: "+t),q(t)})}var i={a:tm};if(G++,e.monitorRunDependencies&&e.monitorRunDependencies(G),e.instantiateWasm)try{return e.instantiateWasm(i,t)}catch(t){return x("Module.instantiateWasm callback failed with error: "+t),!1}(_||"function"!=typeof WebAssembly.instantiateStreaming||X()||z.startsWith("file://")||m||"function"!=typeof fetch?n(r):fetch(z,{credentials:"same-origin"}).then(function(t){return WebAssembly.instantiateStreaming(t,i).then(r,function(t){return x("wasm streaming compile failed: "+t),x("falling back to ArrayBuffer instantiation"),n(r)})})).catch(o)})(),e.___wasm_call_ctors=function(){return(e.___wasm_call_ctors=e.asm.La).apply(null,arguments)},e._OrtInit=function(){return(e._OrtInit=e.asm.Ma).apply(null,arguments)},e._OrtCreateSessionOptions=function(){return(e._OrtCreateSessionOptions=e.asm.Na).apply(null,arguments)},e._OrtAppendExecutionProvider=function(){return(e._OrtAppendExecutionProvider=e.asm.Oa).apply(null,arguments)},e._OrtAddSessionConfigEntry=function(){return(e._OrtAddSessionConfigEntry=e.asm.Pa).apply(null,arguments)},e._OrtReleaseSessionOptions=function(){return(e._OrtReleaseSessionOptions=e.asm.Qa).apply(null,arguments)},e._OrtCreateSession=function(){return(e._OrtCreateSession=e.asm.Ra).apply(null,arguments)},e._OrtReleaseSession=function(){return(e._OrtReleaseSession=e.asm.Sa).apply(null,arguments)},e._OrtGetInputCount=function(){return(e._OrtGetInputCount=e.asm.Ta).apply(null,arguments)},e._OrtGetOutputCount=function(){return(e._OrtGetOutputCount=e.asm.Ua).apply(null,arguments)},e._OrtGetInputName=function(){return(e._OrtGetInputName=e.asm.Va).apply(null,arguments)},e._OrtGetOutputName=function(){return(e._OrtGetOutputName=e.asm.Wa).apply(null,arguments)},e._OrtFree=function(){return(e._OrtFree=e.asm.Xa).apply(null,arguments)},e._OrtCreateTensor=function(){return(e._OrtCreateTensor=e.asm.Ya).apply(null,arguments)},e._OrtGetTensorData=function(){return(e._OrtGetTensorData=e.asm.Za).apply(null,arguments)},e._OrtReleaseTensor=function(){return(e._OrtReleaseTensor=e.asm._a).apply(null,arguments)},e._OrtCreateRunOptions=function(){return(e._OrtCreateRunOptions=e.asm.$a).apply(null,arguments)},e._OrtAddRunConfigEntry=function(){return(e._OrtAddRunConfigEntry=e.asm.ab).apply(null,arguments)},e._OrtReleaseRunOptions=function(){return(e._OrtReleaseRunOptions=e.asm.bb).apply(null,arguments)},e._OrtRun=function(){return(e._OrtRun=e.asm.cb).apply(null,arguments)},e._OrtEndProfiling=function(){return(e._OrtEndProfiling=e.asm.db).apply(null,arguments)};var ty,t_=e._malloc=function(){return(t_=e._malloc=e.asm.eb).apply(null,arguments)},tv=e._free=function(){return(tv=e._free=e.asm.fb).apply(null,arguments)},tx=e._fflush=function(){return(tx=e._fflush=e.asm.gb).apply(null,arguments)},tw=e.___funcs_on_exit=function(){return(tw=e.___funcs_on_exit=e.asm.hb).apply(null,arguments)},tT=e._setThrew=function(){return(tT=e._setThrew=e.asm.jb).apply(null,arguments)},tS=e.stackSave=function(){return(tS=e.stackSave=e.asm.kb).apply(null,arguments)},tO=e.stackRestore=function(){return(tO=e.stackRestore=e.asm.lb).apply(null,arguments)},tA=e.stackAlloc=function(){return(tA=e.stackAlloc=e.asm.mb).apply(null,arguments)},tE=e.___cxa_can_catch=function(){return(tE=e.___cxa_can_catch=e.asm.nb).apply(null,arguments)},tI=e.___cxa_is_pointer_type=function(){return(tI=e.___cxa_is_pointer_type=e.asm.ob).apply(null,arguments)},tP=e.dynCall_j=function(){return(tP=e.dynCall_j=e.asm.pb).apply(null,arguments)},tD=e.dynCall_iiiiij=function(){return(tD=e.dynCall_iiiiij=e.asm.qb).apply(null,arguments)},t$=e.dynCall_jii=function(){return(t$=e.dynCall_jii=e.asm.rb).apply(null,arguments)},tk=e.dynCall_viiiiij=function(){return(tk=e.dynCall_viiiiij=e.asm.sb).apply(null,arguments)},tC=e.dynCall_vjji=function(){return(tC=e.dynCall_vjji=e.asm.tb).apply(null,arguments)},tF=e.dynCall_viiijjjii=function(){return(tF=e.dynCall_viiijjjii=e.asm.ub).apply(null,arguments)},tN=e.dynCall_iij=function(){return(tN=e.dynCall_iij=e.asm.vb).apply(null,arguments)},tL=e.dynCall_ji=function(){return(tL=e.dynCall_ji=e.asm.wb).apply(null,arguments)},tR=e.dynCall_iiiiiij=function(){return(tR=e.dynCall_iiiiiij=e.asm.xb).apply(null,arguments)},tj=e.dynCall_iiij=function(){return(tj=e.dynCall_iiij=e.asm.yb).apply(null,arguments)};function tM(){function t(){if(!ty&&(ty=!0,e.calledRun=!0,!P)){if(J(j),i(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;){var t=e.postRun.shift();U.unshift(t)}J(U)}}if(!(0{"use strict";t.exports=function(t,e){for(var r=Array(arguments.length-1),n=0,i=2,o=!0;i{"use strict";var r=e;r.length=function(t){var e=t.length;if(!e)return 0;for(var r=0;--e%4>1&&"="===t.charAt(e);)++r;return Math.ceil(3*t.length)/4-r};for(var n=Array(64),i=Array(123),o=0;o<64;)i[n[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;r.encode=function(t,e,r){for(var i,o=null,a=[],s=0,u=0;e>2],i=(3&l)<<4,u=1;break;case 1:a[s++]=n[i|l>>4],i=(15&l)<<2,u=2;break;case 2:a[s++]=n[i|l>>6],a[s++]=n[63&l],u=0}s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,a)),s=0)}return u&&(a[s++]=n[i],a[s++]=61,1===u&&(a[s++]=61)),o?(s&&o.push(String.fromCharCode.apply(String,a.slice(0,s))),o.join("")):String.fromCharCode.apply(String,a.slice(0,s))};var a="invalid encoding";r.decode=function(t,e,r){for(var n,o=r,s=0,u=0;u1)break;if(void 0===(l=i[l]))throw Error(a);switch(s){case 0:n=l,s=1;break;case 1:e[r++]=n<<2|(48&l)>>4,n=l,s=2;break;case 2:e[r++]=(15&n)<<4|(60&l)>>2,n=l,s=3;break;case 3:e[r++]=(3&n)<<6|l,s=0}}if(1===s)throw Error(a);return r-o},r.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},9211:t=>{"use strict";function e(){this._listeners={}}t.exports=e,e.prototype.on=function(t,e,r){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:r||this}),this},e.prototype.off=function(t,e){if(void 0===t)this._listeners={};else if(void 0===e)this._listeners[t]=[];else for(var r=this._listeners[t],n=0;n{"use strict";function e(t){return"undefined"!=typeof Float32Array?function(){var e=new Float32Array([-0]),r=new Uint8Array(e.buffer),n=128===r[3];function i(t,n,i){e[0]=t,n[i]=r[0],n[i+1]=r[1],n[i+2]=r[2],n[i+3]=r[3]}function o(t,n,i){e[0]=t,n[i]=r[3],n[i+1]=r[2],n[i+2]=r[1],n[i+3]=r[0]}function a(t,n){return r[0]=t[n],r[1]=t[n+1],r[2]=t[n+2],r[3]=t[n+3],e[0]}function s(t,n){return r[3]=t[n],r[2]=t[n+1],r[1]=t[n+2],r[0]=t[n+3],e[0]}t.writeFloatLE=n?i:o,t.writeFloatBE=n?o:i,t.readFloatLE=n?a:s,t.readFloatBE=n?s:a}():function(){function e(t,e,r,n){var i=e<0?1:0;if(i&&(e=-e),0===e)t(1/e>0?0:2147483648,r,n);else if(isNaN(e))t(2143289344,r,n);else if(e>34028234663852886e22)t((i<<31|2139095040)>>>0,r,n);else if(e<11754943508222875e-54)t((i<<31|Math.round(e/1401298464324817e-60))>>>0,r,n);else{var o=Math.floor(Math.log(e)/Math.LN2);t((i<<31|o+127<<23|8388607&Math.round(e*Math.pow(2,-o)*8388608))>>>0,r,n)}}function a(t,e,r){var n=t(e,r),i=2*(n>>31)+1,o=n>>>23&255,a=8388607&n;return 255===o?a?NaN:1/0*i:0===o?1401298464324817e-60*i*a:i*Math.pow(2,o-150)*(a+8388608)}t.writeFloatLE=e.bind(null,r),t.writeFloatBE=e.bind(null,n),t.readFloatLE=a.bind(null,i),t.readFloatBE=a.bind(null,o)}(),"undefined"!=typeof Float64Array?function(){var e=new Float64Array([-0]),r=new Uint8Array(e.buffer),n=128===r[7];function i(t,n,i){e[0]=t,n[i]=r[0],n[i+1]=r[1],n[i+2]=r[2],n[i+3]=r[3],n[i+4]=r[4],n[i+5]=r[5],n[i+6]=r[6],n[i+7]=r[7]}function o(t,n,i){e[0]=t,n[i]=r[7],n[i+1]=r[6],n[i+2]=r[5],n[i+3]=r[4],n[i+4]=r[3],n[i+5]=r[2],n[i+6]=r[1],n[i+7]=r[0]}function a(t,n){return r[0]=t[n],r[1]=t[n+1],r[2]=t[n+2],r[3]=t[n+3],r[4]=t[n+4],r[5]=t[n+5],r[6]=t[n+6],r[7]=t[n+7],e[0]}function s(t,n){return r[7]=t[n],r[6]=t[n+1],r[5]=t[n+2],r[4]=t[n+3],r[3]=t[n+4],r[2]=t[n+5],r[1]=t[n+6],r[0]=t[n+7],e[0]}t.writeDoubleLE=n?i:o,t.writeDoubleBE=n?o:i,t.readDoubleLE=n?a:s,t.readDoubleBE=n?s:a}():function(){function e(t,e,r,n,i,o){var a,s=n<0?1:0;if(s&&(n=-n),0===n)t(0,i,o+e),t(1/n>0?0:2147483648,i,o+r);else if(isNaN(n))t(0,i,o+e),t(2146959360,i,o+r);else if(n>17976931348623157e292)t(0,i,o+e),t((s<<31|2146435072)>>>0,i,o+r);else if(n<22250738585072014e-324)t((a=n/5e-324)>>>0,i,o+e),t((s<<31|a/4294967296)>>>0,i,o+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),t(4503599627370496*(a=n*Math.pow(2,-u))>>>0,i,o+e),t((s<<31|u+1023<<20|1048576*a&1048575)>>>0,i,o+r)}}function a(t,e,r,n,i){var o=t(n,i+e),a=t(n,i+r),s=2*(a>>31)+1,u=a>>>20&2047,l=4294967296*(1048575&a)+o;return 2047===u?l?NaN:1/0*s:0===u?5e-324*s*l:s*Math.pow(2,u-1075)*(l+4503599627370496)}t.writeDoubleLE=e.bind(null,r,0,4),t.writeDoubleBE=e.bind(null,n,4,0),t.readDoubleLE=a.bind(null,i,0,4),t.readDoubleBE=a.bind(null,o,4,0)}(),t}function r(t,e,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}function n(t,e,r){e[r]=t>>>24,e[r+1]=t>>>16&255,e[r+2]=t>>>8&255,e[r+3]=255&t}function i(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function o(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}t.exports=e(e)},7199:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(t){}return null}module.exports=inquire},6662:t=>{"use strict";t.exports=function(t,e,r){var n=r||8192,i=n>>>1,o=null,a=n;return function(r){if(r<1||r>i)return t(r);a+r>n&&(o=t(n),a=0);var s=e.call(o,a,a+=r);return 7&a&&(a=1+(7|a)),s}}},4997:(t,e)=>{"use strict";var r=e;r.length=function(t){for(var e=0,r=0,n=0;n191&&n<224?o[a++]=(31&n)<<6|63&t[e++]:n>239&&n<365?(n=((7&n)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,o[a++]=55296+(n>>10),o[a++]=56320+(1023&n)):o[a++]=(15&n)<<12|(63&t[e++])<<6|63&t[e++],a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,o)),a=0);return i?(a&&i.push(String.fromCharCode.apply(String,o.slice(0,a))),i.join("")):String.fromCharCode.apply(String,o.slice(0,a))},r.write=function(t,e,r){for(var n,i,o=r,a=0;a>6|192:(55296==(64512&n)&&56320==(64512&(i=t.charCodeAt(a+1)))?(n=65536+((1023&n)<<10)+(1023&i),++a,e[r++]=n>>18|240,e[r++]=n>>12&63|128):e[r++]=n>>12|224,e[r++]=n>>6&63|128),e[r++]=63&n|128);return r-o}},3442:(t,e)=>{"use strict";e.__esModule=!0;var r=function(){function t(e){if(!e)throw TypeError("Invalid argument; `value` has no value.");this.value=t.EMPTY,e&&t.isGuid(e)&&(this.value=e)}return t.isGuid=function(e){var r=e.toString();return e&&(e instanceof t||t.validator.test(r))},t.create=function(){return new t([t.gen(2),t.gen(1),t.gen(1),t.gen(1),t.gen(3)].join("-"))},t.createEmpty=function(){return new t("emptyguid")},t.parse=function(e){return new t(e)},t.raw=function(){return[t.gen(2),t.gen(1),t.gen(1),t.gen(1),t.gen(3)].join("-")},t.gen=function(t){for(var e="",r=0;r{t.exports=r;var e=null;try{e=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(t){}function r(t,e,r){this.low=0|t,this.high=0|e,this.unsigned=!!r}function n(t){return!0===(t&&t.__isLong__)}r.prototype.__isLong__,Object.defineProperty(r.prototype,"__isLong__",{value:!0}),r.isLong=n;var i={},o={};function a(t,e){var r,n,a;return e?(a=0<=(t>>>=0)&&t<256)&&(n=o[t])?n:(r=u(t,(0|t)<0?-1:0,!0),a&&(o[t]=r),r):(a=-128<=(t|=0)&&t<128)&&(n=i[t])?n:(r=u(t,t<0?-1:0,!1),a&&(i[t]=r),r)}function s(t,e){if(isNaN(t))return e?m:b;if(e){if(t<0)return m;if(t>=d)return w}else{if(t<=-h)return T;if(t+1>=h)return x}return t<0?s(-t,e).neg():u(t%f|0,t/f|0,e)}function u(t,e,n){return new r(t,e,n)}r.fromInt=a,r.fromNumber=s,r.fromBits=u;var l=Math.pow;function c(t,e,r){if(0===t.length)throw Error("empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return b;if("number"==typeof e?(r=e,e=!1):e=!!e,(r=r||10)<2||360)throw Error("interior hyphen");if(0===n)return c(t.substring(1),e,r).neg();for(var n,i=s(l(r,8)),o=b,a=0;a>>0:this.low},S.toNumber=function(){return this.unsigned?(this.high>>>0)*f+(this.low>>>0):this.high*f+(this.low>>>0)},S.toString=function(t){if((t=t||10)<2||36>>0).toString(t);if((o=u).isZero())return c+a;for(;c.length<6;)c="0"+c;a=""+c+a}},S.getHighBits=function(){return this.high},S.getHighBitsUnsigned=function(){return this.high>>>0},S.getLowBits=function(){return this.low},S.getLowBitsUnsigned=function(){return this.low>>>0},S.getNumBitsAbs=function(){if(this.isNegative())return this.eq(T)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,e=31;e>0&&0==(t&1<=0},S.isOdd=function(){return 1==(1&this.low)},S.isEven=function(){return 0==(1&this.low)},S.equals=function(t){return n(t)||(t=p(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&this.high===t.high&&this.low===t.low},S.eq=S.equals,S.notEquals=function(t){return!this.eq(t)},S.neq=S.notEquals,S.ne=S.notEquals,S.lessThan=function(t){return 0>this.comp(t)},S.lt=S.lessThan,S.lessThanOrEqual=function(t){return 0>=this.comp(t)},S.lte=S.lessThanOrEqual,S.le=S.lessThanOrEqual,S.greaterThan=function(t){return this.comp(t)>0},S.gt=S.greaterThan,S.greaterThanOrEqual=function(t){return this.comp(t)>=0},S.gte=S.greaterThanOrEqual,S.ge=S.greaterThanOrEqual,S.compare=function(t){if(n(t)||(t=p(t)),this.eq(t))return 0;var e=this.isNegative(),r=t.isNegative();return e&&!r?-1:!e&&r?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},S.comp=S.compare,S.negate=function(){return!this.unsigned&&this.eq(T)?T:this.not().add(y)},S.neg=S.negate,S.add=function(t){n(t)||(t=p(t));var e,r,i,o,a=this.high>>>16,s=65535&this.high,l=this.low>>>16,c=65535&this.low,f=t.high>>>16,d=65535&t.high,h=t.low>>>16;return o=0+(((i=0+((e=0+((r=0+(c+(65535&t.low)))>>>16)+(l+h))>>>16)+(s+d))>>>16)+(a+f)),u((e&=65535)<<16|(r&=65535),(o&=65535)<<16|(i&=65535),this.unsigned)},S.subtract=function(t){return n(t)||(t=p(t)),this.add(t.neg())},S.sub=S.subtract,S.multiply=function(t){if(this.isZero())return b;if(n(t)||(t=p(t)),e)return u(e.mul(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned);if(t.isZero())return b;if(this.eq(T))return t.isOdd()?T:b;if(t.eq(T))return this.isOdd()?T:b;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(g)&&t.lt(g))return s(this.toNumber()*t.toNumber(),this.unsigned);var r,i,o,a=this.high>>>16,l=65535&this.high,c=this.low>>>16,f=65535&this.low,d=t.high>>>16,h=65535&t.high,m=t.low>>>16,y=65535&t.low,_=0;return o=0+((r=0+((i=0+f*y)>>>16)+c*y)>>>16),r&=65535,o+=(r+=f*m)>>>16,_+=(o+=l*y)>>>16,o&=65535,_+=(o+=c*m)>>>16,o&=65535,_+=((o+=f*h)>>>16)+(a*y+l*m+c*h+f*d),u((r&=65535)<<16|(i&=65535),(_&=65535)<<16|(o&=65535),this.unsigned)},S.mul=S.multiply,S.divide=function(t){if(n(t)||(t=p(t)),t.isZero())throw Error("division by zero");if(e)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?u((this.unsigned?e.div_u:e.div_s)(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?m:b;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return m;if(t.gt(this.shru(1)))return _;o=m}else{if(this.eq(T))return t.eq(y)||t.eq(v)?T:t.eq(T)?y:(r=this.shr(1).div(t).shl(1)).eq(b)?t.isNegative()?y:v:(i=this.sub(t.mul(r)),o=r.add(i.div(t)));if(t.eq(T))return this.unsigned?m:b;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();o=b}for(i=this;i.gte(t);){r=Math.max(1,Math.floor(i.toNumber()/t.toNumber()));for(var r,i,o,a=Math.ceil(Math.log(r)/Math.LN2),c=a<=48?1:l(2,a-48),f=s(r),d=f.mul(t);d.isNegative()||d.gt(i);)d=(f=s(r-=c,this.unsigned)).mul(t);f.isZero()&&(f=y),o=o.add(f),i=i.sub(d)}return o},S.div=S.divide,S.modulo=function(t){return n(t)||(t=p(t)),e?u((this.unsigned?e.rem_u:e.rem_s)(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},S.mod=S.modulo,S.rem=S.modulo,S.not=function(){return u(~this.low,~this.high,this.unsigned)},S.and=function(t){return n(t)||(t=p(t)),u(this.low&t.low,this.high&t.high,this.unsigned)},S.or=function(t){return n(t)||(t=p(t)),u(this.low|t.low,this.high|t.high,this.unsigned)},S.xor=function(t){return n(t)||(t=p(t)),u(this.low^t.low,this.high^t.high,this.unsigned)},S.shiftLeft=function(t){return n(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?u(this.low<>>32-t,this.unsigned):u(0,this.low<>>t|this.high<<32-t,this.high>>t,this.unsigned):u(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},S.shr=S.shiftRight,S.shiftRightUnsigned=function(t){if(n(t)&&(t=t.toInt()),0==(t&=63))return this;var e=this.high;return t<32?u(this.low>>>t|e<<32-t,e>>>t,this.unsigned):u(32===t?e:e>>>t-32,0,this.unsigned)},S.shru=S.shiftRightUnsigned,S.shr_u=S.shiftRightUnsigned,S.toSigned=function(){return this.unsigned?u(this.low,this.high,!1):this},S.toUnsigned=function(){return this.unsigned?this:u(this.low,this.high,!0)},S.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},S.toBytesLE=function(){var t=this.high,e=this.low;return[255&e,e>>>8&255,e>>>16&255,e>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]},S.toBytesBE=function(){var t=this.high,e=this.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,e>>>24,e>>>16&255,e>>>8&255,255&e]},r.fromBytes=function(t,e,n){return n?r.fromBytesLE(t,e):r.fromBytesBE(t,e)},r.fromBytesLE=function(t,e){return new r(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,e)},r.fromBytesBE=function(t,e){return new r(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],e)}},1446:(t,e,r)=>{"use strict";var n,i,o,a=r(2100),s=a.Reader,u=a.Writer,l=a.util,c=a.roots.default||(a.roots.default={});c.onnx=((o={}).Version=((i=Object.create(n={}))[n[0]="_START_VERSION"]=0,i[n[1]="IR_VERSION_2017_10_10"]=1,i[n[2]="IR_VERSION_2017_10_30"]=2,i[n[3]="IR_VERSION_2017_11_3"]=3,i[n[4]="IR_VERSION_2019_1_22"]=4,i[n[5]="IR_VERSION"]=5,i),o.AttributeProto=function(){function t(t){if(this.floats=[],this.ints=[],this.strings=[],this.tensors=[],this.graphs=[],t)for(var e=Object.keys(t),r=0;r>>3){case 1:n.name=t.string();break;case 21:n.refAttrName=t.string();break;case 13:n.docString=t.string();break;case 20:n.type=t.int32();break;case 2:n.f=t.float();break;case 3:n.i=t.int64();break;case 4:n.s=t.bytes();break;case 5:n.t=c.onnx.TensorProto.decode(t,t.uint32());break;case 6:n.g=c.onnx.GraphProto.decode(t,t.uint32());break;case 7:if(n.floats&&n.floats.length||(n.floats=[]),2==(7&i))for(var o=t.uint32()+t.pos;t.pos>>0,t.i.high>>>0).toNumber())),null!=t.s&&("string"==typeof t.s?l.base64.decode(t.s,e.s=l.newBuffer(l.base64.length(t.s)),0):t.s.length&&(e.s=t.s)),null!=t.t){if("object"!=typeof t.t)throw TypeError(".onnx.AttributeProto.t: object expected");e.t=c.onnx.TensorProto.fromObject(t.t)}if(null!=t.g){if("object"!=typeof t.g)throw TypeError(".onnx.AttributeProto.g: object expected");e.g=c.onnx.GraphProto.fromObject(t.g)}if(t.floats){if(!Array.isArray(t.floats))throw TypeError(".onnx.AttributeProto.floats: array expected");e.floats=[];for(var r=0;r>>0,t.ints[r].high>>>0).toNumber())}if(t.strings){if(!Array.isArray(t.strings))throw TypeError(".onnx.AttributeProto.strings: array expected");for(e.strings=[],r=0;r>>0,t.i.high>>>0).toNumber():t.i),null!=t.s&&t.hasOwnProperty("s")&&(r.s=e.bytes===String?l.base64.encode(t.s,0,t.s.length):e.bytes===Array?Array.prototype.slice.call(t.s):t.s),null!=t.t&&t.hasOwnProperty("t")&&(r.t=c.onnx.TensorProto.toObject(t.t,e)),null!=t.g&&t.hasOwnProperty("g")&&(r.g=c.onnx.GraphProto.toObject(t.g,e)),t.floats&&t.floats.length){r.floats=[];for(var i=0;i>>0,t.ints[i].high>>>0).toNumber():t.ints[i];if(t.strings&&t.strings.length)for(r.strings=[],i=0;i>>3){case 1:n.name=t.string();break;case 2:n.type=c.onnx.TypeProto.decode(t,t.uint32());break;case 3:n.docString=t.string();break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.name&&t.hasOwnProperty("name")&&!l.isString(t.name))return"name: string expected";if(null!=t.type&&t.hasOwnProperty("type")){var e=c.onnx.TypeProto.verify(t.type);if(e)return"type."+e}return null!=t.docString&&t.hasOwnProperty("docString")&&!l.isString(t.docString)?"docString: string expected":null},t.fromObject=function(t){if(t instanceof c.onnx.ValueInfoProto)return t;var e=new c.onnx.ValueInfoProto;if(null!=t.name&&(e.name=String(t.name)),null!=t.type){if("object"!=typeof t.type)throw TypeError(".onnx.ValueInfoProto.type: object expected");e.type=c.onnx.TypeProto.fromObject(t.type)}return null!=t.docString&&(e.docString=String(t.docString)),e},t.toObject=function(t,e){e||(e={});var r={};return e.defaults&&(r.name="",r.type=null,r.docString=""),null!=t.name&&t.hasOwnProperty("name")&&(r.name=t.name),null!=t.type&&t.hasOwnProperty("type")&&(r.type=c.onnx.TypeProto.toObject(t.type,e)),null!=t.docString&&t.hasOwnProperty("docString")&&(r.docString=t.docString),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t}(),o.NodeProto=function(){function t(t){if(this.input=[],this.output=[],this.attribute=[],t)for(var e=Object.keys(t),r=0;r>>3){case 1:n.input&&n.input.length||(n.input=[]),n.input.push(t.string());break;case 2:n.output&&n.output.length||(n.output=[]),n.output.push(t.string());break;case 3:n.name=t.string();break;case 4:n.opType=t.string();break;case 7:n.domain=t.string();break;case 5:n.attribute&&n.attribute.length||(n.attribute=[]),n.attribute.push(c.onnx.AttributeProto.decode(t,t.uint32()));break;case 6:n.docString=t.string();break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.input&&t.hasOwnProperty("input")){if(!Array.isArray(t.input))return"input: array expected";for(var e=0;e>>3){case 1:n.irVersion=t.int64();break;case 8:n.opsetImport&&n.opsetImport.length||(n.opsetImport=[]),n.opsetImport.push(c.onnx.OperatorSetIdProto.decode(t,t.uint32()));break;case 2:n.producerName=t.string();break;case 3:n.producerVersion=t.string();break;case 4:n.domain=t.string();break;case 5:n.modelVersion=t.int64();break;case 6:n.docString=t.string();break;case 7:n.graph=c.onnx.GraphProto.decode(t,t.uint32());break;case 14:n.metadataProps&&n.metadataProps.length||(n.metadataProps=[]),n.metadataProps.push(c.onnx.StringStringEntryProto.decode(t,t.uint32()));break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.irVersion&&t.hasOwnProperty("irVersion")&&!(l.isInteger(t.irVersion)||t.irVersion&&l.isInteger(t.irVersion.low)&&l.isInteger(t.irVersion.high)))return"irVersion: integer|Long expected";if(null!=t.opsetImport&&t.hasOwnProperty("opsetImport")){if(!Array.isArray(t.opsetImport))return"opsetImport: array expected";for(var e,r=0;r>>0,t.irVersion.high>>>0).toNumber())),t.opsetImport){if(!Array.isArray(t.opsetImport))throw TypeError(".onnx.ModelProto.opsetImport: array expected");e.opsetImport=[];for(var r=0;r>>0,t.modelVersion.high>>>0).toNumber())),null!=t.docString&&(e.docString=String(t.docString)),null!=t.graph){if("object"!=typeof t.graph)throw TypeError(".onnx.ModelProto.graph: object expected");e.graph=c.onnx.GraphProto.fromObject(t.graph)}if(t.metadataProps){if(!Array.isArray(t.metadataProps))throw TypeError(".onnx.ModelProto.metadataProps: array expected");for(e.metadataProps=[],r=0;r>>0,t.irVersion.high>>>0).toNumber():t.irVersion),null!=t.producerName&&t.hasOwnProperty("producerName")&&(r.producerName=t.producerName),null!=t.producerVersion&&t.hasOwnProperty("producerVersion")&&(r.producerVersion=t.producerVersion),null!=t.domain&&t.hasOwnProperty("domain")&&(r.domain=t.domain),null!=t.modelVersion&&t.hasOwnProperty("modelVersion")&&("number"==typeof t.modelVersion?r.modelVersion=e.longs===String?String(t.modelVersion):t.modelVersion:r.modelVersion=e.longs===String?l.Long.prototype.toString.call(t.modelVersion):e.longs===Number?new l.LongBits(t.modelVersion.low>>>0,t.modelVersion.high>>>0).toNumber():t.modelVersion),null!=t.docString&&t.hasOwnProperty("docString")&&(r.docString=t.docString),null!=t.graph&&t.hasOwnProperty("graph")&&(r.graph=c.onnx.GraphProto.toObject(t.graph,e)),t.opsetImport&&t.opsetImport.length){r.opsetImport=[];for(var i=0;i>>3){case 1:n.key=t.string();break;case 2:n.value=t.string();break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.key&&t.hasOwnProperty("key")&&!l.isString(t.key)?"key: string expected":null!=t.value&&t.hasOwnProperty("value")&&!l.isString(t.value)?"value: string expected":null},t.fromObject=function(t){if(t instanceof c.onnx.StringStringEntryProto)return t;var e=new c.onnx.StringStringEntryProto;return null!=t.key&&(e.key=String(t.key)),null!=t.value&&(e.value=String(t.value)),e},t.toObject=function(t,e){e||(e={});var r={};return e.defaults&&(r.key="",r.value=""),null!=t.key&&t.hasOwnProperty("key")&&(r.key=t.key),null!=t.value&&t.hasOwnProperty("value")&&(r.value=t.value),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t}(),o.TensorAnnotation=function(){function t(t){if(this.quantParameterTensorNames=[],t)for(var e=Object.keys(t),r=0;r>>3){case 1:n.tensorName=t.string();break;case 2:n.quantParameterTensorNames&&n.quantParameterTensorNames.length||(n.quantParameterTensorNames=[]),n.quantParameterTensorNames.push(c.onnx.StringStringEntryProto.decode(t,t.uint32()));break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.tensorName&&t.hasOwnProperty("tensorName")&&!l.isString(t.tensorName))return"tensorName: string expected";if(null!=t.quantParameterTensorNames&&t.hasOwnProperty("quantParameterTensorNames")){if(!Array.isArray(t.quantParameterTensorNames))return"quantParameterTensorNames: array expected";for(var e=0;e>>3){case 1:n.node&&n.node.length||(n.node=[]),n.node.push(c.onnx.NodeProto.decode(t,t.uint32()));break;case 2:n.name=t.string();break;case 5:n.initializer&&n.initializer.length||(n.initializer=[]),n.initializer.push(c.onnx.TensorProto.decode(t,t.uint32()));break;case 10:n.docString=t.string();break;case 11:n.input&&n.input.length||(n.input=[]),n.input.push(c.onnx.ValueInfoProto.decode(t,t.uint32()));break;case 12:n.output&&n.output.length||(n.output=[]),n.output.push(c.onnx.ValueInfoProto.decode(t,t.uint32()));break;case 13:n.valueInfo&&n.valueInfo.length||(n.valueInfo=[]),n.valueInfo.push(c.onnx.ValueInfoProto.decode(t,t.uint32()));break;case 14:n.quantizationAnnotation&&n.quantizationAnnotation.length||(n.quantizationAnnotation=[]),n.quantizationAnnotation.push(c.onnx.TensorAnnotation.decode(t,t.uint32()));break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.node&&t.hasOwnProperty("node")){if(!Array.isArray(t.node))return"node: array expected";for(var e,r=0;r>>3){case 1:if(n.dims&&n.dims.length||(n.dims=[]),2==(7&i))for(var o=t.uint32()+t.pos;t.pos>>0,t.dims[r].high>>>0).toNumber())}if(null!=t.dataType&&(e.dataType=0|t.dataType),null!=t.segment){if("object"!=typeof t.segment)throw TypeError(".onnx.TensorProto.segment: object expected");e.segment=c.onnx.TensorProto.Segment.fromObject(t.segment)}if(t.floatData){if(!Array.isArray(t.floatData))throw TypeError(".onnx.TensorProto.floatData: array expected");for(e.floatData=[],r=0;r>>0,t.int64Data[r].high>>>0).toNumber())}if(null!=t.name&&(e.name=String(t.name)),null!=t.docString&&(e.docString=String(t.docString)),null!=t.rawData&&("string"==typeof t.rawData?l.base64.decode(t.rawData,e.rawData=l.newBuffer(l.base64.length(t.rawData)),0):t.rawData.length&&(e.rawData=t.rawData)),t.externalData){if(!Array.isArray(t.externalData))throw TypeError(".onnx.TensorProto.externalData: array expected");for(e.externalData=[],r=0;r>>0,t.uint64Data[r].high>>>0).toNumber(!0))}return e},t.toObject=function(t,e){e||(e={});var r={};if((e.arrays||e.defaults)&&(r.dims=[],r.floatData=[],r.int32Data=[],r.stringData=[],r.int64Data=[],r.doubleData=[],r.uint64Data=[],r.externalData=[]),e.defaults&&(r.dataType=0,r.segment=null,r.name="",e.bytes===String?r.rawData="":(r.rawData=[],e.bytes!==Array&&(r.rawData=l.newBuffer(r.rawData))),r.docString="",r.dataLocation=e.enums===String?"DEFAULT":0),t.dims&&t.dims.length){r.dims=[];for(var n=0;n>>0,t.dims[n].high>>>0).toNumber():t.dims[n]}if(null!=t.dataType&&t.hasOwnProperty("dataType")&&(r.dataType=t.dataType),null!=t.segment&&t.hasOwnProperty("segment")&&(r.segment=c.onnx.TensorProto.Segment.toObject(t.segment,e)),t.floatData&&t.floatData.length)for(r.floatData=[],n=0;n>>0,t.int64Data[n].high>>>0).toNumber():t.int64Data[n];if(null!=t.name&&t.hasOwnProperty("name")&&(r.name=t.name),null!=t.rawData&&t.hasOwnProperty("rawData")&&(r.rawData=e.bytes===String?l.base64.encode(t.rawData,0,t.rawData.length):e.bytes===Array?Array.prototype.slice.call(t.rawData):t.rawData),t.doubleData&&t.doubleData.length)for(r.doubleData=[],n=0;n>>0,t.uint64Data[n].high>>>0).toNumber(!0):t.uint64Data[n];if(null!=t.docString&&t.hasOwnProperty("docString")&&(r.docString=t.docString),t.externalData&&t.externalData.length)for(r.externalData=[],n=0;n>>3){case 1:n.begin=t.int64();break;case 2:n.end=t.int64();break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.begin&&t.hasOwnProperty("begin")&&!(l.isInteger(t.begin)||t.begin&&l.isInteger(t.begin.low)&&l.isInteger(t.begin.high))?"begin: integer|Long expected":null!=t.end&&t.hasOwnProperty("end")&&!(l.isInteger(t.end)||t.end&&l.isInteger(t.end.low)&&l.isInteger(t.end.high))?"end: integer|Long expected":null},t.fromObject=function(t){if(t instanceof c.onnx.TensorProto.Segment)return t;var e=new c.onnx.TensorProto.Segment;return null!=t.begin&&(l.Long?(e.begin=l.Long.fromValue(t.begin)).unsigned=!1:"string"==typeof t.begin?e.begin=parseInt(t.begin,10):"number"==typeof t.begin?e.begin=t.begin:"object"==typeof t.begin&&(e.begin=new l.LongBits(t.begin.low>>>0,t.begin.high>>>0).toNumber())),null!=t.end&&(l.Long?(e.end=l.Long.fromValue(t.end)).unsigned=!1:"string"==typeof t.end?e.end=parseInt(t.end,10):"number"==typeof t.end?e.end=t.end:"object"==typeof t.end&&(e.end=new l.LongBits(t.end.low>>>0,t.end.high>>>0).toNumber())),e},t.toObject=function(t,e){e||(e={});var r={};if(e.defaults){if(l.Long){var n=new l.Long(0,0,!1);r.begin=e.longs===String?n.toString():e.longs===Number?n.toNumber():n}else r.begin=e.longs===String?"0":0;l.Long?(n=new l.Long(0,0,!1),r.end=e.longs===String?n.toString():e.longs===Number?n.toNumber():n):r.end=e.longs===String?"0":0}return null!=t.begin&&t.hasOwnProperty("begin")&&("number"==typeof t.begin?r.begin=e.longs===String?String(t.begin):t.begin:r.begin=e.longs===String?l.Long.prototype.toString.call(t.begin):e.longs===Number?new l.LongBits(t.begin.low>>>0,t.begin.high>>>0).toNumber():t.begin),null!=t.end&&t.hasOwnProperty("end")&&("number"==typeof t.end?r.end=e.longs===String?String(t.end):t.end:r.end=e.longs===String?l.Long.prototype.toString.call(t.end):e.longs===Number?new l.LongBits(t.end.low>>>0,t.end.high>>>0).toNumber():t.end),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t}(),t.DataLocation=function(){var t={},e=Object.create(t);return e[t[0]="DEFAULT"]=0,e[t[1]="EXTERNAL"]=1,e}(),t}(),o.TensorShapeProto=function(){function t(t){if(this.dim=[],t)for(var e=Object.keys(t),r=0;r>>3==1?(n.dim&&n.dim.length||(n.dim=[]),n.dim.push(c.onnx.TensorShapeProto.Dimension.decode(t,t.uint32()))):t.skipType(7&i)}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.dim&&t.hasOwnProperty("dim")){if(!Array.isArray(t.dim))return"dim: array expected";for(var e=0;e>>3){case 1:n.dimValue=t.int64();break;case 2:n.dimParam=t.string();break;case 3:n.denotation=t.string();break;default:t.skipType(7&i)}}return n},e.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},e.verify=function(t){if("object"!=typeof t||null===t)return"object expected";var e={};if(null!=t.dimValue&&t.hasOwnProperty("dimValue")&&(e.value=1,!(l.isInteger(t.dimValue)||t.dimValue&&l.isInteger(t.dimValue.low)&&l.isInteger(t.dimValue.high))))return"dimValue: integer|Long expected";if(null!=t.dimParam&&t.hasOwnProperty("dimParam")){if(1===e.value)return"value: multiple values";if(e.value=1,!l.isString(t.dimParam))return"dimParam: string expected"}return null!=t.denotation&&t.hasOwnProperty("denotation")&&!l.isString(t.denotation)?"denotation: string expected":null},e.fromObject=function(t){if(t instanceof c.onnx.TensorShapeProto.Dimension)return t;var e=new c.onnx.TensorShapeProto.Dimension;return null!=t.dimValue&&(l.Long?(e.dimValue=l.Long.fromValue(t.dimValue)).unsigned=!1:"string"==typeof t.dimValue?e.dimValue=parseInt(t.dimValue,10):"number"==typeof t.dimValue?e.dimValue=t.dimValue:"object"==typeof t.dimValue&&(e.dimValue=new l.LongBits(t.dimValue.low>>>0,t.dimValue.high>>>0).toNumber())),null!=t.dimParam&&(e.dimParam=String(t.dimParam)),null!=t.denotation&&(e.denotation=String(t.denotation)),e},e.toObject=function(t,e){e||(e={});var r={};return e.defaults&&(r.denotation=""),null!=t.dimValue&&t.hasOwnProperty("dimValue")&&("number"==typeof t.dimValue?r.dimValue=e.longs===String?String(t.dimValue):t.dimValue:r.dimValue=e.longs===String?l.Long.prototype.toString.call(t.dimValue):e.longs===Number?new l.LongBits(t.dimValue.low>>>0,t.dimValue.high>>>0).toNumber():t.dimValue,e.oneofs&&(r.value="dimValue")),null!=t.dimParam&&t.hasOwnProperty("dimParam")&&(r.dimParam=t.dimParam,e.oneofs&&(r.value="dimParam")),null!=t.denotation&&t.hasOwnProperty("denotation")&&(r.denotation=t.denotation),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},e}(),t}(),o.TypeProto=function(){var t;function e(t){if(t)for(var e=Object.keys(t),r=0;r>>3){case 1:n.tensorType=c.onnx.TypeProto.Tensor.decode(t,t.uint32());break;case 6:n.denotation=t.string();break;default:t.skipType(7&i)}}return n},e.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},e.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.tensorType&&t.hasOwnProperty("tensorType")){var e=c.onnx.TypeProto.Tensor.verify(t.tensorType);if(e)return"tensorType."+e}return null!=t.denotation&&t.hasOwnProperty("denotation")&&!l.isString(t.denotation)?"denotation: string expected":null},e.fromObject=function(t){if(t instanceof c.onnx.TypeProto)return t;var e=new c.onnx.TypeProto;if(null!=t.tensorType){if("object"!=typeof t.tensorType)throw TypeError(".onnx.TypeProto.tensorType: object expected");e.tensorType=c.onnx.TypeProto.Tensor.fromObject(t.tensorType)}return null!=t.denotation&&(e.denotation=String(t.denotation)),e},e.toObject=function(t,e){e||(e={});var r={};return e.defaults&&(r.denotation=""),null!=t.tensorType&&t.hasOwnProperty("tensorType")&&(r.tensorType=c.onnx.TypeProto.Tensor.toObject(t.tensorType,e),e.oneofs&&(r.value="tensorType")),null!=t.denotation&&t.hasOwnProperty("denotation")&&(r.denotation=t.denotation),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},e.Tensor=function(){function t(t){if(t)for(var e=Object.keys(t),r=0;r>>3){case 1:n.elemType=t.int32();break;case 2:n.shape=c.onnx.TensorShapeProto.decode(t,t.uint32());break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.elemType&&t.hasOwnProperty("elemType")&&!l.isInteger(t.elemType))return"elemType: integer expected";if(null!=t.shape&&t.hasOwnProperty("shape")){var e=c.onnx.TensorShapeProto.verify(t.shape);if(e)return"shape."+e}return null},t.fromObject=function(t){if(t instanceof c.onnx.TypeProto.Tensor)return t;var e=new c.onnx.TypeProto.Tensor;if(null!=t.elemType&&(e.elemType=0|t.elemType),null!=t.shape){if("object"!=typeof t.shape)throw TypeError(".onnx.TypeProto.Tensor.shape: object expected");e.shape=c.onnx.TensorShapeProto.fromObject(t.shape)}return e},t.toObject=function(t,e){e||(e={});var r={};return e.defaults&&(r.elemType=0,r.shape=null),null!=t.elemType&&t.hasOwnProperty("elemType")&&(r.elemType=t.elemType),null!=t.shape&&t.hasOwnProperty("shape")&&(r.shape=c.onnx.TensorShapeProto.toObject(t.shape,e)),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t}(),e}(),o.OperatorSetIdProto=function(){function t(t){if(t)for(var e=Object.keys(t),r=0;r>>3){case 1:n.domain=t.string();break;case 2:n.version=t.int64();break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.domain&&t.hasOwnProperty("domain")&&!l.isString(t.domain)?"domain: string expected":null!=t.version&&t.hasOwnProperty("version")&&!(l.isInteger(t.version)||t.version&&l.isInteger(t.version.low)&&l.isInteger(t.version.high))?"version: integer|Long expected":null},t.fromObject=function(t){if(t instanceof c.onnx.OperatorSetIdProto)return t;var e=new c.onnx.OperatorSetIdProto;return null!=t.domain&&(e.domain=String(t.domain)),null!=t.version&&(l.Long?(e.version=l.Long.fromValue(t.version)).unsigned=!1:"string"==typeof t.version?e.version=parseInt(t.version,10):"number"==typeof t.version?e.version=t.version:"object"==typeof t.version&&(e.version=new l.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber())),e},t.toObject=function(t,e){e||(e={});var r={};if(e.defaults){if(r.domain="",l.Long){var n=new l.Long(0,0,!1);r.version=e.longs===String?n.toString():e.longs===Number?n.toNumber():n}else r.version=e.longs===String?"0":0}return null!=t.domain&&t.hasOwnProperty("domain")&&(r.domain=t.domain),null!=t.version&&t.hasOwnProperty("version")&&("number"==typeof t.version?r.version=e.longs===String?String(t.version):t.version:r.version=e.longs===String?l.Long.prototype.toString.call(t.version):e.longs===Number?new l.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber():t.version),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t}(),o),t.exports=c},2100:(t,e,r)=>{"use strict";t.exports=r(9482)},9482:(t,e,r)=>{"use strict";var n=e;function i(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=r(1173),n.BufferWriter=r(3155),n.Reader=r(1408),n.BufferReader=r(593),n.util=r(9693),n.rpc=r(5994),n.roots=r(5054),n.configure=i,i()},1408:(t,e,r)=>{"use strict";t.exports=u;var n,i=r(9693),o=i.LongBits,a=i.utf8;function s(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function u(t){this.buf=t,this.pos=0,this.len=t.length}var l,c="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new u(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new u(t);throw Error("illegal buffer")},p=function(){return i.Buffer?function(t){return(u.create=function(t){return i.Buffer.isBuffer(t)?new n(t):c(t)})(t)}:c};function f(){var t=new o(0,0),e=0;if(!(this.len-this.pos>4)){for(;e<3;++e){if(this.pos>=this.len)throw s(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*e)>>>0,t}for(;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;if(e=0,this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw s(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function d(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw s(this,8);return new o(d(this.buf,this.pos+=4),d(this.buf,this.pos+=4))}u.create=p(),u.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,u.prototype.uint32=(l=4294967295,function(){if(l=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(l=(l|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(l=(l|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(l=(l|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(l=(l|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return l;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return l}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return d(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|d(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var t=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},u.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var t=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},u.prototype.bytes=function(){var t=this.uint32(),e=this.pos,r=this.pos+t;if(r>this.len)throw s(this,t);return this.pos+=t,Array.isArray(this.buf)?this.buf.slice(e,r):e===r?new this.buf.constructor(0):this._slice.call(this.buf,e,r)},u.prototype.string=function(){var t=this.bytes();return a.read(t,0,t.length)},u.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw s(this,t);this.pos+=t}else do if(this.pos>=this.len)throw s(this);while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},u._configure=function(t){n=t,u.create=p(),n._configure();var e=i.Long?"toLong":"toNumber";i.merge(u.prototype,{int64:function(){return f.call(this)[e](!1)},uint64:function(){return f.call(this)[e](!0)},sint64:function(){return f.call(this).zzDecode()[e](!1)},fixed64:function(){return h.call(this)[e](!0)},sfixed64:function(){return h.call(this)[e](!1)}})}},593:(t,e,r)=>{"use strict";t.exports=o;var n=r(1408);(o.prototype=Object.create(n.prototype)).constructor=o;var i=r(9693);function o(t){n.call(this,t)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},o._configure()},5054:t=>{"use strict";t.exports={}},5994:(t,e,r)=>{"use strict";e.Service=r(7948)},7948:(t,e,r)=>{"use strict";t.exports=i;var n=r(9693);function i(t,e,r){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!e,this.responseDelimited=!!r}(i.prototype=Object.create(n.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function t(e,r,i,o,a){if(!o)throw TypeError("request must be specified");var s=this;if(!a)return n.asPromise(t,s,e,r,i,o);if(s.rpcImpl)try{return s.rpcImpl(e,r[s.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(t,r){if(t)return s.emit("error",t,e),a(t);if(null!==r){if(!(r instanceof i))try{r=i[s.responseDelimited?"decodeDelimited":"decode"](r)}catch(t){return s.emit("error",t,e),a(t)}return s.emit("data",r,e),a(null,r)}s.end(!0)})}catch(t){return s.emit("error",t,e),void setTimeout(function(){a(t)},0)}else setTimeout(function(){a(Error("already ended"))},0)},i.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},1945:(t,e,r)=>{"use strict";t.exports=i;var n=r(9693);function i(t,e){this.lo=t>>>0,this.hi=e>>>0}var o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var a=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(t){if(0===t)return o;var e=t<0;e&&(t=-t);var r=t>>>0,n=(t-r)/4294967296>>>0;return e&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new i(r,n)},i.from=function(t){if("number"==typeof t)return i.fromNumber(t);if(n.isString(t)){if(!n.Long)return i.fromNumber(parseInt(t,10));t=n.Long.fromString(t)}return t.low||t.high?new i(t.low>>>0,t.high>>>0):o},i.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=1+~this.lo>>>0,r=~this.hi>>>0;return e||(r=r+1>>>0),-(e+4294967296*r)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(t){return n.Long?new n.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var s=String.prototype.charCodeAt;i.fromHash=function(t){return t===a?o:new i((s.call(t,0)|s.call(t,1)<<8|s.call(t,2)<<16|s.call(t,3)<<24)>>>0,(s.call(t,4)|s.call(t,5)<<8|s.call(t,6)<<16|s.call(t,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},i.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},i.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===e?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:r<128?9:10}},9693:function(t,e,r){"use strict";var n=e;function i(t,e,r){for(var n=Object.keys(e),i=0;i0)},n.Buffer=function(){try{var t=n.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(t){return"number"==typeof t?n.Buffer?n._Buffer_allocUnsafe(t):new n.Array(t):n.Buffer?n._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(t){return t?n.LongBits.from(t).toHash():n.LongBits.zeroHash},n.longFromHash=function(t,e){var r=n.LongBits.fromHash(t);return n.Long?n.Long.fromBits(r.lo,r.hi,e):r.toNumber(!!e)},n.merge=i,n.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},n.newError=o,n.ProtocolError=o("ProtocolError"),n.oneOfGetter=function(t){for(var e={},r=0;r-1;--r)if(1===e[t[r]]&&void 0!==this[t[r]]&&null!==this[t[r]])return t[r]}},n.oneOfSetter=function(t){return function(e){for(var r=0;r{"use strict";t.exports=p;var n,i=r(9693),o=i.LongBits,a=i.base64,s=i.utf8;function u(t,e,r){this.fn=t,this.len=e,this.next=void 0,this.val=r}function l(){}function c(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function p(){this.len=0,this.head=new u(l,0,0),this.tail=this.head,this.states=null}var f=function(){return i.Buffer?function(){return(p.create=function(){return new n})()}:function(){return new p}};function d(t,e,r){e[r]=255&t}function h(t,e){this.len=t,this.next=void 0,this.val=e}function g(t,e,r){for(;t.hi;)e[r++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[r++]=127&t.lo|128,t.lo=t.lo>>>7;e[r++]=t.lo}function b(t,e,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}p.create=f(),p.alloc=function(t){return new i.Array(t)},i.Array!==Array&&(p.alloc=i.pool(p.alloc,i.Array.prototype.subarray)),p.prototype._push=function(t,e,r){return this.tail=this.tail.next=new u(t,e,r),this.len+=e,this},h.prototype=Object.create(u.prototype),h.prototype.fn=function(t,e,r){for(;t>127;)e[r++]=127&t|128,t>>>=7;e[r]=t},p.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new h((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this},p.prototype.int32=function(t){return t<0?this._push(g,10,o.fromNumber(t)):this.uint32(t)},p.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},p.prototype.uint64=function(t){var e=o.from(t);return this._push(g,e.length(),e)},p.prototype.int64=p.prototype.uint64,p.prototype.sint64=function(t){var e=o.from(t).zzEncode();return this._push(g,e.length(),e)},p.prototype.bool=function(t){return this._push(d,1,t?1:0)},p.prototype.fixed32=function(t){return this._push(b,4,t>>>0)},p.prototype.sfixed32=p.prototype.fixed32,p.prototype.fixed64=function(t){var e=o.from(t);return this._push(b,4,e.lo)._push(b,4,e.hi)},p.prototype.sfixed64=p.prototype.fixed64,p.prototype.float=function(t){return this._push(i.float.writeFloatLE,4,t)},p.prototype.double=function(t){return this._push(i.float.writeDoubleLE,8,t)};var m=i.Array.prototype.set?function(t,e,r){e.set(t,r)}:function(t,e,r){for(var n=0;n>>0;if(!e)return this._push(d,1,0);if(i.isString(t)){var r=p.alloc(e=a.length(t));a.decode(t,r,0),t=r}return this.uint32(e)._push(m,e,t)},p.prototype.string=function(t){var e=s.length(t);return e?this.uint32(e)._push(s.write,e,t):this._push(d,1,0)},p.prototype.fork=function(){return this.states=new c(this),this.head=this.tail=new u(l,0,0),this.len=0,this},p.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(l,0,0),this.len=0),this},p.prototype.ldelim=function(){var t=this.head,e=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=t.next,this.tail=e,this.len+=r),this},p.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),r=0;t;)t.fn(t.val,e,r),r+=t.len,t=t.next;return e},p._configure=function(t){n=t,p.create=f(),n._configure()}},3155:(t,e,r)=>{"use strict";t.exports=o;var n=r(1173);(o.prototype=Object.create(n.prototype)).constructor=o;var i=r(9693);function o(){n.call(this)}function a(t,e,r){t.length<40?i.utf8.write(t,e,r):e.utf8Write?e.utf8Write(t,r):e.write(t,r)}o._configure=function(){o.alloc=i._Buffer_allocUnsafe,o.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(t,e,r){e.set(t,r)}:function(t,e,r){if(t.copy)t.copy(e,r,0,t.length);else for(var n=0;n>>0;return this.uint32(e),e&&this._push(o.writeBytesBuffer,e,t),this},o.prototype.string=function(t){var e=i.Buffer.byteLength(t);return this.uint32(e),e&&this._push(a,e,t),this},o._configure()},7714:(t,e,r)=>{"use strict";e.R=void 0;let n=r(6919),i=r(7448);e.R=new class{async init(){}async createSessionHandler(t,e){let r=new n.Session(e);return await r.loadModel(t),new i.OnnxjsSessionHandler(r)}}},4200:(t,e,r)=>{"use strict";e.c8=e.rX=void 0;let n=r(1670),i=r(5381),o=r(2157),a=r(2306);e.rX=()=>{if(("number"!=typeof n.env.wasm.initTimeout||n.env.wasm.initTimeout<0)&&(n.env.wasm.initTimeout=0),"boolean"!=typeof n.env.wasm.simd&&(n.env.wasm.simd=!0),"boolean"!=typeof n.env.wasm.proxy&&(n.env.wasm.proxy=!1),"number"!=typeof n.env.wasm.numThreads||!Number.isInteger(n.env.wasm.numThreads)||n.env.wasm.numThreads<=0){let t="undefined"==typeof navigator?(0,i.cpus)().length:navigator.hardwareConcurrency;n.env.wasm.numThreads=Math.min(4,Math.ceil((t||1)/2))}},e.c8=new class{async init(){(0,e.rX)(),await (0,o.initWasm)()}async createSessionHandler(t,e){let r=new a.OnnxruntimeWebAssemblySessionHandler;return await r.loadModel(t,e),Promise.resolve(r)}}},6018:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(1670),e);let o=r(1670);{let t=r(7714).R;(0,o.registerBackend)("webgl",t,-10)}{let t=r(4200).c8;(0,o.registerBackend)("cpu",t,10),(0,o.registerBackend)("wasm",t,10),(0,o.registerBackend)("xnnpack",t,9)}},246:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createAttributeWithCacheKey=void 0;class r{constructor(t){Object.assign(this,t)}get cacheKey(){return this._cacheKey||(this._cacheKey=Object.getOwnPropertyNames(this).sort().map(t=>`${this[t]}`).join(";")),this._cacheKey}}e.createAttributeWithCacheKey=t=>new r(t)},7778:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Attribute=void 0;let n=r(1446),i=r(9395),o=r(9162),a=r(2517);var s=i.onnxruntime.experimental.fbs;class u{constructor(t){if(this._attributes=new Map,null!=t){for(let e of t)e instanceof n.onnx.AttributeProto?this._attributes.set(e.name,[u.getValue(e),u.getType(e)]):e instanceof s.Attribute&&this._attributes.set(e.name(),[u.getValue(e),u.getType(e)]);if(this._attributes.sizeo.Tensor.fromProto(t));if(t instanceof s.Attribute)return r.map(t=>o.Tensor.fromOrtTensor(t))}if(e===n.onnx.AttributeProto.AttributeType.STRING&&t instanceof n.onnx.AttributeProto){let t=r;return(0,a.decodeUtf8String)(t)}return e===n.onnx.AttributeProto.AttributeType.STRINGS&&t instanceof n.onnx.AttributeProto?r.map(a.decodeUtf8String):r}static getValueNoCheck(t){return t instanceof n.onnx.AttributeProto?this.getValueNoCheckFromOnnxFormat(t):this.getValueNoCheckFromOrtFormat(t)}static getValueNoCheckFromOnnxFormat(t){switch(t.type){case n.onnx.AttributeProto.AttributeType.FLOAT:return t.f;case n.onnx.AttributeProto.AttributeType.INT:return t.i;case n.onnx.AttributeProto.AttributeType.STRING:return t.s;case n.onnx.AttributeProto.AttributeType.TENSOR:return t.t;case n.onnx.AttributeProto.AttributeType.GRAPH:return t.g;case n.onnx.AttributeProto.AttributeType.FLOATS:return t.floats;case n.onnx.AttributeProto.AttributeType.INTS:return t.ints;case n.onnx.AttributeProto.AttributeType.STRINGS:return t.strings;case n.onnx.AttributeProto.AttributeType.TENSORS:return t.tensors;case n.onnx.AttributeProto.AttributeType.GRAPHS:return t.graphs;default:throw Error(`unsupported attribute type: ${n.onnx.AttributeProto.AttributeType[t.type]}`)}}static getValueNoCheckFromOrtFormat(t){switch(t.type()){case s.AttributeType.FLOAT:return t.f();case s.AttributeType.INT:return t.i();case s.AttributeType.STRING:return t.s();case s.AttributeType.TENSOR:return t.t();case s.AttributeType.GRAPH:return t.g();case s.AttributeType.FLOATS:return t.floatsArray();case s.AttributeType.INTS:{let e=[];for(let r=0;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolveBackend=e.backend=void 0;let n=r(5038),i=new Map;async function o(t){let r=e.backend;if(void 0!==r[t]&&function(t){let e=t;return"initialize"in e&&"function"==typeof e.initialize&&"createSessionHandler"in e&&"function"==typeof e.createSessionHandler&&"dispose"in e&&"function"==typeof e.dispose}(r[t])){let e=r[t],n=e.initialize();if("object"==typeof n&&"then"in n&&(n=await n),n)return i.set(t,e),e}}e.backend={webgl:new n.WebGLBackend},e.resolveBackend=async function t(e){if(!e)return t(["webgl"]);for(let t of"string"==typeof e?[e]:e){let e=i.get(t);if(e)return e;let r=await o(t);if(r)return r}throw Error("no available backend to use")}},5038:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebGLBackend=void 0;let n=r(1670),i=r(6231),o=r(6416),a=r(7305);e.WebGLBackend=class{get contextId(){return n.env.webgl.contextId}set contextId(t){n.env.webgl.contextId=t}get matmulMaxBatchSize(){return n.env.webgl.matmulMaxBatchSize}set matmulMaxBatchSize(t){n.env.webgl.matmulMaxBatchSize=t}get textureCacheMode(){return n.env.webgl.textureCacheMode}set textureCacheMode(t){n.env.webgl.textureCacheMode=t}get pack(){return n.env.webgl.pack}set pack(t){n.env.webgl.pack=t}get async(){return n.env.webgl.async}set async(t){n.env.webgl.async=t}initialize(){try{return this.glContext=(0,a.createWebGLContext)(this.contextId),"number"!=typeof this.matmulMaxBatchSize&&(this.matmulMaxBatchSize=16),"string"!=typeof this.textureCacheMode&&(this.textureCacheMode="full"),"boolean"!=typeof this.pack&&(this.pack=!1),"boolean"!=typeof this.async&&(this.async=!1),i.Logger.setWithEnv(n.env),i.Logger.verbose("WebGLBackend",`Created WebGLContext: ${typeof this.glContext} with matmulMaxBatchSize: ${this.matmulMaxBatchSize}; textureCacheMode: ${this.textureCacheMode}; pack: ${this.pack}; async: ${this.async}.`),!0}catch(t){return i.Logger.warning("WebGLBackend",`Unable to initialize WebGLBackend. ${t}`),!1}}createSessionHandler(t){return new o.WebGLSessionHandler(this,t)}dispose(){this.glContext.dispose()}}},5107:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CoordsGlslLib=void 0;let n=r(2517),i=r(8520),o=r(5060),a=r(7859),s=r(9390);class u extends i.GlslLib{constructor(t){super(t)}getFunctions(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.offsetToCoords()),this.coordsToOffset()),this.toVec()),this.valueFrom()),this.getCommonUtilFuncs()),this.getInputsSamplingSnippets()),this.getOutputSamplingSnippet())}getCustomTypes(){return{}}offsetToCoords(){return{offsetToCoords:new i.GlslLibRoutine("\n vec2 offsetToCoords(int offset, int width, int height) {\n int t = offset / width;\n int s = offset - t*width;\n vec2 coords = (vec2(s,t) + vec2(0.5,0.5)) / vec2(width, height);\n return coords;\n }\n ")}}coordsToOffset(){return{coordsToOffset:new i.GlslLibRoutine("\n int coordsToOffset(vec2 coords, int width, int height) {\n float s = coords.s * float(width);\n float t = coords.t * float(height);\n int offset = int(t) * width + int(s);\n return offset;\n }\n ")}}getOutputSamplingSnippet(){let t=this.context.outputTextureLayout;return t.isPacked?this.getPackedOutputSamplingSnippet(t):this.getUnpackedOutputSamplingSnippet(t)}getPackedOutputSamplingSnippet(t){let e=t.unpackedShape,r=[t.width,t.height],n={},a="getOutputCoords";switch(e.length){case 0:n[a]=this.getOutputScalarCoords();break;case 1:n[a]=this.getOutputPacked1DCoords(e,r);break;case 2:n[a]=this.getOutputPacked2DCoords(e,r);break;case 3:n[a]=this.getOutputPacked3DCoords(e,r);break;default:n[a]=this.getOutputPackedNDCoords(e,r)}let s=` +*/!function(t,e){module.exports=e(__webpack_require__(7746))}(self,__WEBPACK_EXTERNAL_MODULE__1670__=>(()=>{var __webpack_modules__={3474:(t,e,r)=>{var n,i=(n=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(t){function e(){return k.buffer!=F&&W(k.buffer),N}function i(){return k.buffer!=F&&W(k.buffer),L}function o(){return k.buffer!=F&&W(k.buffer),R}function a(){return k.buffer!=F&&W(k.buffer),j}function s(){return k.buffer!=F&&W(k.buffer),M}t=t||{},u||(u=void 0!==t?t:{}),u.ready=new Promise(function(t,e){l=t,c=e});var u,l,c,p,f,d,h,g,b,m=Object.assign({},u),y="./this.program",_=(t,e)=>{throw e},v="object"==typeof window,x="function"==typeof importScripts,w="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,T=u.ENVIRONMENT_IS_PTHREAD||!1,S="";function O(t){return u.locateFile?u.locateFile(t,S):S+t}if(w){let t;S=x?r(908).dirname(S)+"/":"//",b=()=>{g||(h=r(1384),g=r(908))},p=function(t,e){return b(),t=g.normalize(t),h.readFileSync(t,e?void 0:"utf8")},d=t=>((t=p(t,!0)).buffer||(t=new Uint8Array(t)),t),f=(t,e,r)=>{b(),t=g.normalize(t),h.readFile(t,function(t,n){t?r(t):e(n.buffer)})},1{if(Q())throw process.exitCode=t,e;e instanceof tl||D("exiting due to exception: "+e),process.exit(t)},u.inspect=function(){return"[Emscripten Module object]"};try{t=r(9925)}catch(t){throw console.error('The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?'),t}r.g.Worker=t.Worker}else(v||x)&&(x?S=self.location.href:"undefined"!=typeof document&&document.currentScript&&(S=document.currentScript.src),n&&(S=n),S=0!==S.indexOf("blob:")?S.substr(0,S.replace(/[?#].*/,"").lastIndexOf("/")+1):"",w||(p=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},x&&(d=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),f=(t,e,r)=>{var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)}));w&&"undefined"==typeof performance&&(r.g.performance=r(6953).performance);var A=console.log.bind(console),E=console.warn.bind(console);w&&(b(),A=t=>h.writeSync(1,t+"\n"),E=t=>h.writeSync(2,t+"\n"));var I,P=u.print||A,D=u.printErr||E;Object.assign(u,m),m=null,u.thisProgram&&(y=u.thisProgram),u.quit&&(_=u.quit),u.wasmBinary&&(I=u.wasmBinary);var $=u.noExitRuntime||!1;"object"!=typeof WebAssembly&&to("no native wasm support detected");var k,C,F,N,L,R,j,M,U=!1,V="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function B(t,e,r){var n=(e>>>=0)+r;for(r=e;t[r]&&!(r>=n);)++r;if(16(i=224==(240&i)?(15&i)<<12|o<<6|a:(7&i)<<18|o<<12|a<<6|63&t[e++])?n+=String.fromCharCode(i):(i-=65536,n+=String.fromCharCode(55296|i>>10,56320|1023&i))}}else n+=String.fromCharCode(i)}return n}function z(t,e){return(t>>>=0)?B(i(),t,e):""}function G(t,e,r,n){if(!(0>>=0;n=r+n-1;for(var o=0;o=a&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++o)),127>=a){if(r>=n)break;e[r++>>>0]=a}else{if(2047>=a){if(r+1>=n)break;e[r++>>>0]=192|a>>6}else{if(65535>=a){if(r+2>=n)break;e[r++>>>0]=224|a>>12}else{if(r+3>=n)break;e[r++>>>0]=240|a>>18,e[r++>>>0]=128|a>>12&63}e[r++>>>0]=128|a>>6&63}e[r++>>>0]=128|63&a}}return e[r>>>0]=0,r-i}function H(t){for(var e=0,r=0;r=n?e++:2047>=n?e+=2:55296<=n&&57343>=n?(e+=4,++r):e+=3}return e}function W(t){F=t,u.HEAP8=N=new Int8Array(t),u.HEAP16=new Int16Array(t),u.HEAP32=R=new Int32Array(t),u.HEAPU8=L=new Uint8Array(t),u.HEAPU16=new Uint16Array(t),u.HEAPU32=j=new Uint32Array(t),u.HEAPF32=new Float32Array(t),u.HEAPF64=M=new Float64Array(t)}T&&(F=u.buffer);var q=u.INITIAL_MEMORY||16777216;if(T)k=u.wasmMemory,F=u.buffer;else if(u.wasmMemory)k=u.wasmMemory;else if(!((k=new WebAssembly.Memory({initial:q/65536,maximum:65536,shared:!0})).buffer instanceof SharedArrayBuffer))throw D("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),w&&console.log("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and also use a recent version)"),Error("bad memory");k&&(F=k.buffer),q=F.byteLength,W(F);var X,Y=[],K=[],Z=[],J=[];function Q(){return $||!1}function tt(){var t=u.preRun.shift();Y.unshift(t)}var te,tr=0,tn=null,ti=null;function to(t){throw T?postMessage({cmd:"onAbort",arg:t}):u.onAbort&&u.onAbort(t),D(t="Aborted("+t+")"),U=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),c(t),t}function ta(){return te.startsWith("data:application/octet-stream;base64,")}function ts(){var t=te;try{if(t==te&&I)return new Uint8Array(I);if(d)return d(t);throw"both async and sync fetching of the wasm failed"}catch(t){to(t)}}te="ort-wasm-threaded.wasm",ta()||(te=O(te));var tu={};function tl(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function tc(t){(t=th.Vb[t])||to(),th.mc(t)}function tp(t){var e=th.Cc();if(!e)return 6;th.ac.push(e),th.Vb[t.Ub]=e,e.Ub=t.Ub;var r={cmd:"run",start_routine:t.Ic,arg:t.zc,pthread_ptr:t.Ub};return e.$b=()=>{r.time=performance.now(),e.postMessage(r,t.Nc)},e.loaded&&(e.$b(),delete e.$b),0}function tf(t){if(T)return tX(1,1,t);Q()||(th.oc(),u.onExit&&u.onExit(t),U=!0),_(t,new tl(t))}function td(t,e){if(!e&&T)throw tm(t),"unwind";Q()||T||(eu(),tg(Z),es(0),t4[1].length&&t6(1,10),t4[2].length&&t6(2,10),th.oc()),tf(t)}var th={Yb:[],ac:[],qc:[],Vb:{},fc:function(){T&&th.Ec()},Pc:function(){},Ec:function(){th.receiveObjectTransfer=th.Gc,th.threadInitTLS=th.pc,th.setExitStatus=th.nc,$=!1},nc:function(){},oc:function(){for(var t of Object.values(th.Vb))th.mc(t);for(t of th.Yb)t.terminate();th.Yb=[]},mc:function(t){var e=t.Ub;delete th.Vb[e],th.Yb.push(t),th.ac.splice(th.ac.indexOf(t),1),t.Ub=0,ed(e)},Gc:function(){},pc:function(){th.qc.forEach(t=>t())},Fc:function(t,e){t.onmessage=r=>{var n=(r=r.data).cmd;if(t.Ub&&(th.Bc=t.Ub),r.targetThread&&r.targetThread!=ei()){var i=th.Vb[r.Qc];i?i.postMessage(r,r.transferList):D('Internal error! Worker sent a message "'+n+'" to target pthread '+r.targetThread+", but that thread no longer exists!")}else"processProxyingQueue"===n?tB(r.queue):"spawnThread"===n?tp(r):"cleanupThread"===n?tc(r.thread):"killThread"===n?(r=r.thread,n=th.Vb[r],delete th.Vb[r],n.terminate(),ed(r),th.ac.splice(th.ac.indexOf(n),1),n.Ub=0):"cancelThread"===n?th.Vb[r.thread].postMessage({cmd:"cancel"}):"loaded"===n?(t.loaded=!0,e&&e(t),t.$b&&(t.$b(),delete t.$b)):"print"===n?P("Thread "+r.threadId+": "+r.text):"printErr"===n?D("Thread "+r.threadId+": "+r.text):"alert"===n?alert("Thread "+r.threadId+": "+r.text):"setimmediate"===r.target?t.postMessage(r):"onAbort"===n?u.onAbort&&u.onAbort(r.arg):n&&D("worker sent an unknown command "+n);th.Bc=void 0},t.onerror=t=>{throw D("worker sent an error! "+t.filename+":"+t.lineno+": "+t.message),t},w&&(t.on("message",function(e){t.onmessage({data:e})}),t.on("error",function(e){t.onerror(e)}),t.on("detachedExit",function(){})),t.postMessage({cmd:"load",urlOrBlob:u.mainScriptUrlOrBlob||n,wasmMemory:k,wasmModule:C})},yc:function(){var t=O("ort-wasm-threaded.worker.js");th.Yb.push(new Worker(t))},Cc:function(){return 0==th.Yb.length&&(th.yc(),th.Fc(th.Yb[0])),th.Yb.pop()}};function tg(t){for(;0>2>>>0];t=o()[t+48>>2>>>0],eb(e,e-t),ey(e)};var ty=[];function t_(t){var e=ty[t];return e||(t>=ty.length&&(ty.length=t+1),ty[t]=e=X.get(t)),e}u.invokeEntryPoint=function(t,e){t=t_(t)(e),Q()?th.nc(t):eh(t)};var tv,tx,tw=[],tT=0,tS=0;function tO(t){this.Zb=t,this.Sb=t-24,this.xc=function(t){a()[this.Sb+4>>2>>>0]=t},this.bc=function(){return a()[this.Sb+4>>2>>>0]},this.wc=function(t){a()[this.Sb+8>>2>>>0]=t},this.Dc=function(){return a()[this.Sb+8>>2>>>0]},this.rc=function(){o()[this.Sb>>2>>>0]=0},this.hc=function(t){t=t?1:0,e()[this.Sb+12>>0>>>0]=t},this.uc=function(){return 0!=e()[this.Sb+12>>0>>>0]},this.ic=function(t){t=t?1:0,e()[this.Sb+13>>0>>>0]=t},this.kc=function(){return 0!=e()[this.Sb+13>>0>>>0]},this.fc=function(t,e){this.cc(0),this.xc(t),this.wc(e),this.rc(),this.hc(!1),this.ic(!1)},this.sc=function(){Atomics.add(o(),this.Sb>>2,1)},this.Hc=function(){return 1===Atomics.sub(o(),this.Sb>>2,1)},this.cc=function(t){a()[this.Sb+16>>2>>>0]=t},this.tc=function(){return a()[this.Sb+16>>2>>>0]},this.vc=function(){if(ex(this.bc()))return a()[this.Zb>>2>>>0];var t=this.tc();return 0!==t?t:this.Zb}}function tA(t){return ea(new tO(t).Sb)}function tE(t,e,r,n){return T?tX(3,1,t,e,r,n):tI(t,e,r,n)}function tI(t,e,r,n){if("undefined"==typeof SharedArrayBuffer)return D("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var i=[];return T&&0===i.length?tE(t,e,r,n):(t={Ic:r,Ub:t,zc:n,Nc:i},T?(t.Oc="spawnThread",postMessage(t,i),0):tp(t))}function tP(t,e,r){return T?tX(4,1,t,e,r):0}function tD(t,e){if(T)return tX(5,1,t,e)}function t$(t,e){if(T)return tX(6,1,t,e)}function tk(t,e,r){if(T)return tX(7,1,t,e,r)}function tC(t,e,r){return T?tX(8,1,t,e,r):0}function tF(t,e){if(T)return tX(9,1,t,e)}function tN(t,e,r){if(T)return tX(10,1,t,e,r)}function tL(t,e,r,n){if(T)return tX(11,1,t,e,r,n)}function tR(t,e,r,n){if(T)return tX(12,1,t,e,r,n)}function tj(t,e,r,n){if(T)return tX(13,1,t,e,r,n)}function tM(t){if(T)return tX(14,1,t)}function tU(t,e){if(T)return tX(15,1,t,e)}function tV(t,e,r){if(T)return tX(16,1,t,e,r)}function tB(t){Atomics.store(o(),t>>2,1),ei()&&ef(t),Atomics.compareExchange(o(),t>>2,1,0)}function tz(t){return a()[t>>>2]+4294967296*o()[t+4>>>2]}function tG(t,e,r,n,i,o){return T?tX(17,1,t,e,r,n,i,o):-52}function tH(t,e,r,n,i,o){if(T)return tX(18,1,t,e,r,n,i,o)}function tW(t){var r=H(t)+1,n=eo(r);return n&&G(t,e(),n,r),n}function tq(t,e,r){function n(t){return(t=t.toTimeString().match(/\(([A-Za-z ]+)\)$/))?t[1]:"GMT"}if(T)return tX(19,1,t,e,r);var i=(new Date).getFullYear(),s=new Date(i,0,1),u=new Date(i,6,1);i=s.getTimezoneOffset();var l=u.getTimezoneOffset(),c=Math.max(i,l);o()[t>>2>>>0]=60*c,o()[e>>2>>>0]=Number(i!=l),t=n(s),e=n(u),t=tW(t),e=tW(e),l>2>>>0]=t,a()[r+4>>2>>>0]=e):(a()[r>>2>>>0]=e,a()[r+4>>2>>>0]=t)}function tX(t,e){var r=arguments.length-2,n=arguments;return tb(()=>{for(var i=e_(8*r),o=i>>3,a=0;a>>0]=u}return ep(t,r,i,e)})}u.executeNotifiedProxyingQueue=tB,tx=w?()=>{var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:T?()=>performance.now()-u.__performance_now_clock_drift:()=>performance.now();var tY,tK=[],tZ={};function tJ(){if(!tY){var t,e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:y||"./this.program"};for(t in tZ)void 0===tZ[t]?delete e[t]:e[t]=tZ[t];var r=[];for(t in e)r.push(t+"="+e[t]);tY=r}return tY}function tQ(t,r){if(T)return tX(20,1,t,r);var n=0;return tJ().forEach(function(i,o){var s=r+n;for(o=a()[t+4*o>>2>>>0]=s,s=0;s>0>>>0]=i.charCodeAt(s);e()[o>>0>>>0]=0,n+=i.length+1}),0}function t0(t,e){if(T)return tX(21,1,t,e);var r=tJ();a()[t>>2>>>0]=r.length;var n=0;return r.forEach(function(t){n+=t.length+1}),a()[e>>2>>>0]=n,0}function t1(t){return T?tX(22,1,t):52}function t2(t,e,r,n){return T?tX(23,1,t,e,r,n):52}function t3(t,e,r,n,i){return T?tX(24,1,t,e,r,n,i):70}var t4=[null,[],[]];function t6(t,e){var r=t4[t];0===e||10===e?((1===t?P:D)(B(r,0)),r.length=0):r.push(e)}function t8(t,e,r,n){if(T)return tX(25,1,t,e,r,n);for(var o=0,s=0;s>2>>>0],l=a()[e+4>>2>>>0];e+=8;for(var c=0;c>>0]);o+=l}return a()[n>>2>>>0]=o,0}var t5=0;function t7(t){return 0==t%4&&(0!=t%100||0==t%400)}var t9=[31,29,31,30,31,30,31,31,30,31,30,31],et=[31,28,31,30,31,30,31,31,30,31,30,31];function ee(t,r,n,i){function a(t,e,r){for(t="number"==typeof t?t.toString():t||"";t.lengtht?-1:0n-t.getDate())){t.setDate(t.getDate()+e);break}e-=n-t.getDate()+1,t.setDate(1),11>r?t.setMonth(r+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return r=new Date(t.getFullYear()+1,0,4),e=l(new Date(t.getFullYear(),0,4)),r=l(r),0>=u(e,t)?0>=u(r,t)?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var p=o()[i+40>>2>>>0];for(var f in i={Lc:o()[i>>2>>>0],Kc:o()[i+4>>2>>>0],dc:o()[i+8>>2>>>0],jc:o()[i+12>>2>>>0],ec:o()[i+16>>2>>>0],Xb:o()[i+20>>2>>>0],Tb:o()[i+24>>2>>>0],Wb:o()[i+28>>2>>>0],Rc:o()[i+32>>2>>>0],Jc:o()[i+36>>2>>>0],Mc:p?z(p):""},n=z(n),p={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})n=n.replace(RegExp(f,"g"),p[f]);var d="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),h="January February March April May June July August September October November December".split(" ");for(f in p={"%a":function(t){return d[t.Tb].substring(0,3)},"%A":function(t){return d[t.Tb]},"%b":function(t){return h[t.ec].substring(0,3)},"%B":function(t){return h[t.ec]},"%C":function(t){return s((t.Xb+1900)/100|0,2)},"%d":function(t){return s(t.jc,2)},"%e":function(t){return a(t.jc,2," ")},"%g":function(t){return c(t).toString().substring(2)},"%G":function(t){return c(t)},"%H":function(t){return s(t.dc,2)},"%I":function(t){return 0==(t=t.dc)?t=12:12t.dc?"AM":"PM"},"%S":function(t){return s(t.Lc,2)},"%t":function(){return" "},"%u":function(t){return t.Tb||7},"%U":function(t){return s(Math.floor((t.Wb+7-t.Tb)/7),2)},"%V":function(t){var e=Math.floor((t.Wb+7-(t.Tb+6)%7)/7);if(2>=(t.Tb+371-t.Wb-2)%7&&e++,e)53==e&&(4==(r=(t.Tb+371-t.Wb)%7)||3==r&&t7(t.Xb)||(e=1));else{e=52;var r=(t.Tb+7-t.Wb-1)%7;(4==r||5==r&&t7(t.Xb%400-1))&&e++}return s(e,2)},"%w":function(t){return t.Tb},"%W":function(t){return s(Math.floor((t.Wb+7-(t.Tb+6)%7)/7),2)},"%y":function(t){return(t.Xb+1900).toString().substring(2)},"%Y":function(t){return t.Xb+1900},"%z":function(t){var e=0<=(t=t.Jc);return(e?"+":"-")+String("0000"+((t=Math.abs(t)/60)/60*100+t%60)).slice(-4)},"%Z":function(t){return t.Mc},"%%":function(){return"%"}},n=n.replace(/%%/g,"\0\0"),p)n.includes(f)&&(n=n.replace(RegExp(f,"g"),p[f](i)));return(f=function(t){var e=Array(H(t)+1);return G(t,e,0,e.length),e}(n=n.replace(/\0\0/g,"%"))).length>r?0:(function(t,r){e().set(t,r>>>0)}(f,t),f.length-1)}th.fc();var er=[null,tf,tm,tE,tP,tD,t$,tk,tC,tF,tN,tL,tR,tj,tM,tU,tV,tG,tH,tq,tQ,t0,t1,t2,t3,t8],en={b:function(t){return eo(t+24)+24},n:function(t){return(t=new tO(t)).uc()||(t.hc(!0),tT--),t.ic(!1),tw.push(t),t.sc(),t.vc()},ma:function(t){throw D("Unexpected exception thrown, this is not properly supported - aborting"),U=!0,t},x:function(){eg(0);var t=tw.pop();if(t.Hc()&&!t.kc()){var e=t.Dc();e&&t_(e)(t.Zb),tA(t.Zb)}tS=0},e:function(){var t=tS;if(!t)return t5=0;var e=new tO(t);e.cc(t);var r=e.bc();if(!r)return t5=0,t;for(var n=Array.prototype.slice.call(arguments),i=0;itB(n));else if(T)postMessage({targetThread:t,cmd:"processProxyingQueue",queue:n});else{if(!(t=th.Vb[t]))return;t.postMessage({cmd:"processProxyingQueue",queue:n})}return 1},Ea:function(){return -1},Pa:function(t,e){t=new Date(1e3*tz(t)),o()[e>>2>>>0]=t.getUTCSeconds(),o()[e+4>>2>>>0]=t.getUTCMinutes(),o()[e+8>>2>>>0]=t.getUTCHours(),o()[e+12>>2>>>0]=t.getUTCDate(),o()[e+16>>2>>>0]=t.getUTCMonth(),o()[e+20>>2>>>0]=t.getUTCFullYear()-1900,o()[e+24>>2>>>0]=t.getUTCDay(),t=(t.getTime()-Date.UTC(t.getUTCFullYear(),0,1,0,0,0,0))/864e5|0,o()[e+28>>2>>>0]=t},Qa:function(t,e){t=new Date(1e3*tz(t)),o()[e>>2>>>0]=t.getSeconds(),o()[e+4>>2>>>0]=t.getMinutes(),o()[e+8>>2>>>0]=t.getHours(),o()[e+12>>2>>>0]=t.getDate(),o()[e+16>>2>>>0]=t.getMonth(),o()[e+20>>2>>>0]=t.getFullYear()-1900,o()[e+24>>2>>>0]=t.getDay();var r=new Date(t.getFullYear(),0,1),n=(t.getTime()-r.getTime())/864e5|0;o()[e+28>>2>>>0]=n,o()[e+36>>2>>>0]=-60*t.getTimezoneOffset(),t=0|((n=new Date(t.getFullYear(),6,1).getTimezoneOffset())!=(r=r.getTimezoneOffset())&&t.getTimezoneOffset()==Math.min(r,n)),o()[e+32>>2>>>0]=t},Ra:function(t){var e=new Date(o()[t+20>>2>>>0]+1900,o()[t+16>>2>>>0],o()[t+12>>2>>>0],o()[t+8>>2>>>0],o()[t+4>>2>>>0],o()[t>>2>>>0],0),r=o()[t+32>>2>>>0],n=e.getTimezoneOffset(),i=new Date(e.getFullYear(),0,1),a=new Date(e.getFullYear(),6,1).getTimezoneOffset(),s=i.getTimezoneOffset(),u=Math.min(s,a);return 0>r?o()[t+32>>2>>>0]=Number(a!=s&&u==n):0>2>>>0]=e.getDay(),r=(e.getTime()-i.getTime())/864e5|0,o()[t+28>>2>>>0]=r,o()[t>>2>>>0]=e.getSeconds(),o()[t+4>>2>>>0]=e.getMinutes(),o()[t+8>>2>>>0]=e.getHours(),o()[t+12>>2>>>0]=e.getDate(),o()[t+16>>2>>>0]=e.getMonth(),e.getTime()/1e3|0},Aa:tG,Ba:tH,Sa:function t(e,r,n){t.Ac||(t.Ac=!0,tq(e,r,n))},y:function(){to("")},U:function(){if(!w&&!x){var t="Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread";tv||(tv={}),tv[t]||(tv[t]=1,w&&(t="warning: "+t),D(t))}},ra:function(){return 4294901760},B:tx,Ia:function(t,e,r){i().copyWithin(t>>>0,e>>>0,e+r>>>0)},F:function(){return w?r(3993).cpus().length:navigator.hardwareConcurrency},Da:function(t,e,r){tK.length=e,r>>=3;for(var n=0;n>>0];return(0>t?tu[-t-1]:er[t]).apply(null,tK)},qa:function(t){var e=i().length;if((t>>>=0)<=e||4294901760=r;r*=2){var n=e*(1+.2/r);n=Math.min(n,t+100663296);var o=Math;n=Math.max(t,n),o=o.min.call(o,4294901760,n+(65536-n%65536)%65536);t:{try{k.grow(o-F.byteLength+65535>>>16),W(k.buffer);var a=1;break t}catch(t){}a=void 0}if(a)return!0}return!1},Na:function(){throw"unwind"},Ga:tQ,Ha:t0,J:td,I:t1,S:t2,ga:t3,R:t8,d:function(){return t5},na:function t(n,i){t.lc||(t.lc=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var t=new Uint8Array(1);return()=>(crypto.getRandomValues(t),t[0])}if(w)try{var e=r(Object(function(){var t=Error("Cannot find module 'crypto'");throw t.code="MODULE_NOT_FOUND",t}()));return()=>e.randomBytes(1)[0]}catch(t){}return()=>to("randomDevice")}());for(var o=0;o>0>>>0]=t.lc();return 0},ia:function(t,e,r){var n=em();try{return t_(t)(e,r)}catch(t){if(ey(n),t!==t+0)throw t;eg(1,0)}},ja:function(t,e,r){var n=em();try{return t_(t)(e,r)}catch(t){if(ey(n),t!==t+0)throw t;eg(1,0)}},K:function(t){var e=em();try{return t_(t)()}catch(t){if(ey(e),t!==t+0)throw t;eg(1,0)}},f:function(t,e){var r=em();try{return t_(t)(e)}catch(t){if(ey(r),t!==t+0)throw t;eg(1,0)}},P:function(t,e,r){var n=em();try{return t_(t)(e,r)}catch(t){if(ey(n),t!==t+0)throw t;eg(1,0)}},Q:function(t,e,r){var n=em();try{return t_(t)(e,r)}catch(t){if(ey(n),t!==t+0)throw t;eg(1,0)}},k:function(t,e,r){var n=em();try{return t_(t)(e,r)}catch(t){if(ey(n),t!==t+0)throw t;eg(1,0)}},p:function(t,e,r,n){var i=em();try{return t_(t)(e,r,n)}catch(t){if(ey(i),t!==t+0)throw t;eg(1,0)}},q:function(t,e,r,n,i){var o=em();try{return t_(t)(e,r,n,i)}catch(t){if(ey(o),t!==t+0)throw t;eg(1,0)}},N:function(t,e,r,n,i,o){var a=em();try{return t_(t)(e,r,n,i,o)}catch(t){if(ey(a),t!==t+0)throw t;eg(1,0)}},s:function(t,e,r,n,i,o){var a=em();try{return t_(t)(e,r,n,i,o)}catch(t){if(ey(a),t!==t+0)throw t;eg(1,0)}},w:function(t,e,r,n,i,o,a){var s=em();try{return t_(t)(e,r,n,i,o,a)}catch(t){if(ey(s),t!==t+0)throw t;eg(1,0)}},L:function(t,e,r,n,i,o,a,s){var u=em();try{return t_(t)(e,r,n,i,o,a,s)}catch(t){if(ey(u),t!==t+0)throw t;eg(1,0)}},E:function(t,e,r,n,i,o,a,s,u,l,c,p){var f=em();try{return t_(t)(e,r,n,i,o,a,s,u,l,c,p)}catch(t){if(ey(f),t!==t+0)throw t;eg(1,0)}},aa:function(t,e,r,n,i,o,a,s){var u=em();try{return eD(t,e,r,n,i,o,a,s)}catch(t){if(ey(u),t!==t+0)throw t;eg(1,0)}},_:function(t,e,r,n,i,o,a){var s=em();try{return eT(t,e,r,n,i,o,a)}catch(t){if(ey(s),t!==t+0)throw t;eg(1,0)}},Z:function(t,e,r,n,i){var o=em();try{return e$(t,e,r,n,i)}catch(t){if(ey(o),t!==t+0)throw t;eg(1,0)}},ca:function(t,e,r,n){var i=em();try{return eI(t,e,r,n)}catch(t){if(ey(i),t!==t+0)throw t;eg(1,0)}},$:function(t){var e=em();try{return ew(t)}catch(t){if(ey(e),t!==t+0)throw t;eg(1,0)}},ba:function(t,e){var r=em();try{return eP(t,e)}catch(t){if(ey(r),t!==t+0)throw t;eg(1,0)}},Y:function(t,e,r){var n=em();try{return eS(t,e,r)}catch(t){if(ey(n),t!==t+0)throw t;eg(1,0)}},g:function(t){var e=em();try{t_(t)()}catch(t){if(ey(e),t!==t+0)throw t;eg(1,0)}},r:function(t,e){var r=em();try{t_(t)(e)}catch(t){if(ey(r),t!==t+0)throw t;eg(1,0)}},i:function(t,e,r){var n=em();try{t_(t)(e,r)}catch(t){if(ey(n),t!==t+0)throw t;eg(1,0)}},ha:function(t,e,r,n){var i=em();try{t_(t)(e,r,n)}catch(t){if(ey(i),t!==t+0)throw t;eg(1,0)}},m:function(t,e,r,n){var i=em();try{t_(t)(e,r,n)}catch(t){if(ey(i),t!==t+0)throw t;eg(1,0)}},v:function(t,e,r,n,i){var o=em();try{t_(t)(e,r,n,i)}catch(t){if(ey(o),t!==t+0)throw t;eg(1,0)}},u:function(t,e,r,n,i,o){var a=em();try{t_(t)(e,r,n,i,o)}catch(t){if(ey(a),t!==t+0)throw t;eg(1,0)}},O:function(t,e,r,n,i,o,a){var s=em();try{t_(t)(e,r,n,i,o,a)}catch(t){if(ey(s),t!==t+0)throw t;eg(1,0)}},A:function(t,e,r,n,i,o,a,s){var u=em();try{t_(t)(e,r,n,i,o,a,s)}catch(t){if(ey(u),t!==t+0)throw t;eg(1,0)}},ka:function(t,e,r,n,i,o,a,s,u){var l=em();try{t_(t)(e,r,n,i,o,a,s,u)}catch(t){if(ey(l),t!==t+0)throw t;eg(1,0)}},C:function(t,e,r,n,i,o,a,s,u,l,c){var p=em();try{t_(t)(e,r,n,i,o,a,s,u,l,c)}catch(t){if(ey(p),t!==t+0)throw t;eg(1,0)}},D:function(t,e,r,n,i,o,a,s,u,l,c,p,f,d,h,g){var b=em();try{t_(t)(e,r,n,i,o,a,s,u,l,c,p,f,d,h,g)}catch(t){if(ey(b),t!==t+0)throw t;eg(1,0)}},fa:function(t,e,r,n,i,o,a,s){var u=em();try{eO(t,e,r,n,i,o,a,s)}catch(t){if(ey(u),t!==t+0)throw t;eg(1,0)}},da:function(t,e,r,n,i,o,a,s,u,l,c,p){var f=em();try{eE(t,e,r,n,i,o,a,s,u,l,c,p)}catch(t){if(ey(f),t!==t+0)throw t;eg(1,0)}},ea:function(t,e,r,n,i,o){var a=em();try{eA(t,e,r,n,i,o)}catch(t){if(ey(a),t!==t+0)throw t;eg(1,0)}},o:function(t){return t},a:k||u.wasmMemory,G:function(t){t5=t},la:ee,z:function(t,e,r,n){return ee(t,e,r,n)}};(function(){function t(t,e){u.asm=t.exports,th.qc.push(u.asm.sb),X=u.asm.ub,K.unshift(u.asm.Va),C=e,T||(tr--,u.monitorRunDependencies&&u.monitorRunDependencies(tr),0==tr&&(null!==tn&&(clearInterval(tn),tn=null),ti&&(t=ti,ti=null,t())))}function e(e){t(e.instance,e.module)}function r(t){return(function(){if(!I&&(v||x)){if("function"==typeof fetch&&!te.startsWith("file://"))return fetch(te,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+te+"'";return t.arrayBuffer()}).catch(function(){return ts()});if(f)return new Promise(function(t,e){f(te,function(e){t(new Uint8Array(e))},e)})}return Promise.resolve().then(function(){return ts()})})().then(function(t){return WebAssembly.instantiate(t,n)}).then(function(t){return t}).then(t,function(t){D("failed to asynchronously prepare wasm: "+t),to(t)})}var n={a:en};if(T||(tr++,u.monitorRunDependencies&&u.monitorRunDependencies(tr)),u.instantiateWasm)try{return u.instantiateWasm(n,t)}catch(t){return D("Module.instantiateWasm callback failed with error: "+t),!1}(I||"function"!=typeof WebAssembly.instantiateStreaming||ta()||te.startsWith("file://")||w||"function"!=typeof fetch?r(e):fetch(te,{credentials:"same-origin"}).then(function(t){return WebAssembly.instantiateStreaming(t,n).then(e,function(t){return D("wasm streaming compile failed: "+t),D("falling back to ArrayBuffer instantiation"),r(e)})})).catch(c)})(),u.___wasm_call_ctors=function(){return(u.___wasm_call_ctors=u.asm.Va).apply(null,arguments)},u._OrtInit=function(){return(u._OrtInit=u.asm.Wa).apply(null,arguments)},u._OrtCreateSessionOptions=function(){return(u._OrtCreateSessionOptions=u.asm.Xa).apply(null,arguments)},u._OrtAppendExecutionProvider=function(){return(u._OrtAppendExecutionProvider=u.asm.Ya).apply(null,arguments)},u._OrtAddSessionConfigEntry=function(){return(u._OrtAddSessionConfigEntry=u.asm.Za).apply(null,arguments)},u._OrtReleaseSessionOptions=function(){return(u._OrtReleaseSessionOptions=u.asm._a).apply(null,arguments)},u._OrtCreateSession=function(){return(u._OrtCreateSession=u.asm.$a).apply(null,arguments)},u._OrtReleaseSession=function(){return(u._OrtReleaseSession=u.asm.ab).apply(null,arguments)},u._OrtGetInputCount=function(){return(u._OrtGetInputCount=u.asm.bb).apply(null,arguments)},u._OrtGetOutputCount=function(){return(u._OrtGetOutputCount=u.asm.cb).apply(null,arguments)},u._OrtGetInputName=function(){return(u._OrtGetInputName=u.asm.db).apply(null,arguments)},u._OrtGetOutputName=function(){return(u._OrtGetOutputName=u.asm.eb).apply(null,arguments)},u._OrtFree=function(){return(u._OrtFree=u.asm.fb).apply(null,arguments)},u._OrtCreateTensor=function(){return(u._OrtCreateTensor=u.asm.gb).apply(null,arguments)},u._OrtGetTensorData=function(){return(u._OrtGetTensorData=u.asm.hb).apply(null,arguments)},u._OrtReleaseTensor=function(){return(u._OrtReleaseTensor=u.asm.ib).apply(null,arguments)},u._OrtCreateRunOptions=function(){return(u._OrtCreateRunOptions=u.asm.jb).apply(null,arguments)},u._OrtAddRunConfigEntry=function(){return(u._OrtAddRunConfigEntry=u.asm.kb).apply(null,arguments)},u._OrtReleaseRunOptions=function(){return(u._OrtReleaseRunOptions=u.asm.lb).apply(null,arguments)},u._OrtRun=function(){return(u._OrtRun=u.asm.mb).apply(null,arguments)},u._OrtEndProfiling=function(){return(u._OrtEndProfiling=u.asm.nb).apply(null,arguments)};var ei=u._pthread_self=function(){return(ei=u._pthread_self=u.asm.ob).apply(null,arguments)},eo=u._malloc=function(){return(eo=u._malloc=u.asm.pb).apply(null,arguments)},ea=u._free=function(){return(ea=u._free=u.asm.qb).apply(null,arguments)},es=u._fflush=function(){return(es=u._fflush=u.asm.rb).apply(null,arguments)};u.__emscripten_tls_init=function(){return(u.__emscripten_tls_init=u.asm.sb).apply(null,arguments)};var eu=u.___funcs_on_exit=function(){return(eu=u.___funcs_on_exit=u.asm.tb).apply(null,arguments)},el=u.__emscripten_thread_init=function(){return(el=u.__emscripten_thread_init=u.asm.vb).apply(null,arguments)};u.__emscripten_thread_crashed=function(){return(u.__emscripten_thread_crashed=u.asm.wb).apply(null,arguments)};var ec,ep=u._emscripten_run_in_main_runtime_thread_js=function(){return(ep=u._emscripten_run_in_main_runtime_thread_js=u.asm.xb).apply(null,arguments)},ef=u.__emscripten_proxy_execute_task_queue=function(){return(ef=u.__emscripten_proxy_execute_task_queue=u.asm.yb).apply(null,arguments)},ed=u.__emscripten_thread_free_data=function(){return(ed=u.__emscripten_thread_free_data=u.asm.zb).apply(null,arguments)},eh=u.__emscripten_thread_exit=function(){return(eh=u.__emscripten_thread_exit=u.asm.Ab).apply(null,arguments)},eg=u._setThrew=function(){return(eg=u._setThrew=u.asm.Bb).apply(null,arguments)},eb=u._emscripten_stack_set_limits=function(){return(eb=u._emscripten_stack_set_limits=u.asm.Cb).apply(null,arguments)},em=u.stackSave=function(){return(em=u.stackSave=u.asm.Db).apply(null,arguments)},ey=u.stackRestore=function(){return(ey=u.stackRestore=u.asm.Eb).apply(null,arguments)},e_=u.stackAlloc=function(){return(e_=u.stackAlloc=u.asm.Fb).apply(null,arguments)},ev=u.___cxa_can_catch=function(){return(ev=u.___cxa_can_catch=u.asm.Gb).apply(null,arguments)},ex=u.___cxa_is_pointer_type=function(){return(ex=u.___cxa_is_pointer_type=u.asm.Hb).apply(null,arguments)},ew=u.dynCall_j=function(){return(ew=u.dynCall_j=u.asm.Ib).apply(null,arguments)},eT=u.dynCall_iiiiij=function(){return(eT=u.dynCall_iiiiij=u.asm.Jb).apply(null,arguments)},eS=u.dynCall_jii=function(){return(eS=u.dynCall_jii=u.asm.Kb).apply(null,arguments)},eO=u.dynCall_viiiiij=function(){return(eO=u.dynCall_viiiiij=u.asm.Lb).apply(null,arguments)},eA=u.dynCall_vjji=function(){return(eA=u.dynCall_vjji=u.asm.Mb).apply(null,arguments)},eE=u.dynCall_viiijjjii=function(){return(eE=u.dynCall_viiijjjii=u.asm.Nb).apply(null,arguments)},eI=u.dynCall_iij=function(){return(eI=u.dynCall_iij=u.asm.Ob).apply(null,arguments)},eP=u.dynCall_ji=function(){return(eP=u.dynCall_ji=u.asm.Pb).apply(null,arguments)},eD=u.dynCall_iiiiiij=function(){return(eD=u.dynCall_iiiiiij=u.asm.Qb).apply(null,arguments)},e$=u.dynCall_iiij=function(){return(e$=u.dynCall_iiij=u.asm.Rb).apply(null,arguments)};function ek(){function t(){if(!ec&&(ec=!0,u.calledRun=!0,!U)&&(T||tg(K),l(u),u.onRuntimeInitialized&&u.onRuntimeInitialized(),!T)){if(u.postRun)for("function"==typeof u.postRun&&(u.postRun=[u.postRun]);u.postRun.length;){var t=u.postRun.shift();J.unshift(t)}tg(J)}}if(!(0{var n,i=(n=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(t){t=t||{},e||(e=void 0!==t?t:{}),e.ready=new Promise(function(t,e){i=t,o=e});var e,i,o,a,s,u,l,c,p,f=Object.assign({},e),d="./this.program",h=(t,e)=>{throw e},g="object"==typeof window,b="function"==typeof importScripts,m="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,y="";m?(y=b?r(908).dirname(y)+"/":"//",p=()=>{c||(l=r(1384),c=r(908))},a=function(t,e){return p(),t=c.normalize(t),l.readFileSync(t,e?void 0:"utf8")},u=t=>((t=a(t,!0)).buffer||(t=new Uint8Array(t)),t),s=(t,e,r)=>{p(),t=c.normalize(t),l.readFile(t,function(t,n){t?r(t):e(n.buffer)})},1{if(w||0{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},b&&(u=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),s=(t,e,r)=>{var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)});var _,v=e.print||console.log.bind(console),x=e.printErr||console.warn.bind(console);Object.assign(e,f),f=null,e.thisProgram&&(d=e.thisProgram),e.quit&&(h=e.quit),e.wasmBinary&&(_=e.wasmBinary);var w=e.noExitRuntime||!1;"object"!=typeof WebAssembly&&q("no native wasm support detected");var T,S,O,A,E,I,P=!1,D="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function $(t,e,r){var n=(e>>>=0)+r;for(r=e;t[r]&&!(r>=n);)++r;if(16(i=224==(240&i)?(15&i)<<12|o<<6|a:(7&i)<<18|o<<12|a<<6|63&t[e++])?n+=String.fromCharCode(i):(i-=65536,n+=String.fromCharCode(55296|i>>10,56320|1023&i))}}else n+=String.fromCharCode(i)}return n}function k(t,e){return(t>>>=0)?$(A,t,e):""}function C(t,e,r,n){if(!(0>>=0;n=r+n-1;for(var o=0;o=a&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++o)),127>=a){if(r>=n)break;e[r++>>>0]=a}else{if(2047>=a){if(r+1>=n)break;e[r++>>>0]=192|a>>6}else{if(65535>=a){if(r+2>=n)break;e[r++>>>0]=224|a>>12}else{if(r+3>=n)break;e[r++>>>0]=240|a>>18,e[r++>>>0]=128|a>>12&63}e[r++>>>0]=128|a>>6&63}e[r++>>>0]=128|63&a}}return e[r>>>0]=0,r-i}function F(t){for(var e=0,r=0;r=n?e++:2047>=n?e+=2:55296<=n&&57343>=n?(e+=4,++r):e+=3}return e}function N(){var t=T.buffer;S=t,e.HEAP8=O=new Int8Array(t),e.HEAP16=new Int16Array(t),e.HEAP32=E=new Int32Array(t),e.HEAPU8=A=new Uint8Array(t),e.HEAPU16=new Uint16Array(t),e.HEAPU32=I=new Uint32Array(t),e.HEAPF32=new Float32Array(t),e.HEAPF64=new Float64Array(t)}var L,R=[],j=[],M=[],U=[],V=0;function B(){var t=e.preRun.shift();R.unshift(t)}var z,G=0,H=null,W=null;function q(t){throw e.onAbort&&e.onAbort(t),x(t="Aborted("+t+")"),P=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),o(t),t}function X(){return z.startsWith("data:application/octet-stream;base64,")}if(z="ort-wasm.wasm",!X()){var Y=z;z=e.locateFile?e.locateFile(Y,y):y+Y}function K(){var t=z;try{if(t==z&&_)return new Uint8Array(_);if(u)return u(t);throw"both async and sync fetching of the wasm failed"}catch(t){q(t)}}function Z(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function J(t){for(;0>2>>>0]=t},this.Eb=function(){return I[this.zb+4>>2>>>0]},this.Sb=function(t){I[this.zb+8>>2>>>0]=t},this.Wb=function(){return I[this.zb+8>>2>>>0]},this.Tb=function(){E[this.zb>>2>>>0]=0},this.Ib=function(t){O[this.zb+12>>0>>>0]=t?1:0},this.Pb=function(){return 0!=O[this.zb+12>>0>>>0]},this.Jb=function(t){O[this.zb+13>>0>>>0]=t?1:0},this.Lb=function(){return 0!=O[this.zb+13>>0>>>0]},this.Rb=function(t,e){this.Fb(0),this.Ub(t),this.Sb(e),this.Tb(),this.Ib(!1),this.Jb(!1)},this.Nb=function(){E[this.zb>>2>>>0]+=1},this.Xb=function(){var t=E[this.zb>>2>>>0];return E[this.zb>>2>>>0]=t-1,1===t},this.Fb=function(t){I[this.zb+16>>2>>>0]=t},this.Ob=function(){return I[this.zb+16>>2>>>0]},this.Qb=function(){if(tI(this.Eb()))return I[this.Db>>2>>>0];var t=this.Ob();return 0!==t?t:this.Db}}function tn(t){return tv(new tr(t).zb)}var ti=[];function to(t){var e=ti[t];return e||(t>=ti.length&&(ti.length=t+1),ti[t]=e=L.get(t)),e}function ta(t){var e=F(t)+1,r=t_(e);return r&&C(t,O,r,e),r}var ts={};function tu(){if(!tl){var t,e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:d||"./this.program"};for(t in ts)void 0===ts[t]?delete e[t]:e[t]=ts[t];var r=[];for(t in e)r.push(t+"="+e[t]);tl=r}return tl}var tl,tc=[null,[],[]];function tp(t,e){var r=tc[t];0===e||10===e?((1===t?v:x)($(r,0)),r.length=0):r.push(e)}var tf=0;function td(t){return 0==t%4&&(0!=t%100||0==t%400)}var th=[31,29,31,30,31,30,31,31,30,31,30,31],tg=[31,28,31,30,31,30,31,31,30,31,30,31];function tb(t,e,r,n){function i(t,e,r){for(t="number"==typeof t?t.toString():t||"";t.lengtht?-1:0n-t.getDate())){t.setDate(t.getDate()+e);break}e-=n-t.getDate()+1,t.setDate(1),11>r?t.setMonth(r+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return r=new Date(t.getFullYear()+1,0,4),e=s(new Date(t.getFullYear(),0,4)),r=s(r),0>=a(e,t)?0>=a(r,t)?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var l=E[n+40>>2>>>0];for(var c in n={$b:E[n>>2>>>0],Zb:E[n+4>>2>>>0],Gb:E[n+8>>2>>>0],Kb:E[n+12>>2>>>0],Hb:E[n+16>>2>>>0],Cb:E[n+20>>2>>>0],Ab:E[n+24>>2>>>0],Bb:E[n+28>>2>>>0],bc:E[n+32>>2>>>0],Yb:E[n+36>>2>>>0],ac:l?k(l):""},r=k(r),l={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})r=r.replace(RegExp(c,"g"),l[c]);var p="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),f="January February March April May June July August September October November December".split(" ");for(c in l={"%a":function(t){return p[t.Ab].substring(0,3)},"%A":function(t){return p[t.Ab]},"%b":function(t){return f[t.Hb].substring(0,3)},"%B":function(t){return f[t.Hb]},"%C":function(t){return o((t.Cb+1900)/100|0,2)},"%d":function(t){return o(t.Kb,2)},"%e":function(t){return i(t.Kb,2," ")},"%g":function(t){return u(t).toString().substring(2)},"%G":function(t){return u(t)},"%H":function(t){return o(t.Gb,2)},"%I":function(t){return 0==(t=t.Gb)?t=12:12t.Gb?"AM":"PM"},"%S":function(t){return o(t.$b,2)},"%t":function(){return" "},"%u":function(t){return t.Ab||7},"%U":function(t){return o(Math.floor((t.Bb+7-t.Ab)/7),2)},"%V":function(t){var e=Math.floor((t.Bb+7-(t.Ab+6)%7)/7);if(2>=(t.Ab+371-t.Bb-2)%7&&e++,e)53==e&&(4==(r=(t.Ab+371-t.Bb)%7)||3==r&&td(t.Cb)||(e=1));else{e=52;var r=(t.Ab+7-t.Bb-1)%7;(4==r||5==r&&td(t.Cb%400-1))&&e++}return o(e,2)},"%w":function(t){return t.Ab},"%W":function(t){return o(Math.floor((t.Bb+7-(t.Ab+6)%7)/7),2)},"%y":function(t){return(t.Cb+1900).toString().substring(2)},"%Y":function(t){return t.Cb+1900},"%z":function(t){var e=0<=(t=t.Yb);return(e?"+":"-")+String("0000"+((t=Math.abs(t)/60)/60*100+t%60)).slice(-4)},"%Z":function(t){return t.ac},"%%":function(){return"%"}},r=r.replace(/%%/g,"\0\0"),l)r.includes(c)&&(r=r.replace(RegExp(c,"g"),l[c](n)));return(c=function(t){var e=Array(F(t)+1);return C(t,e,0,e.length),e}(r=r.replace(/\0\0/g,"%"))).length>e?0:(O.set(c,t>>>0),c.length-1)}var tm={a:function(t){return t_(t+24)+24},m:function(t){return(t=new tr(t)).Pb()||(t.Ib(!0),tt--),t.Jb(!1),Q.push(t),t.Nb(),t.Qb()},ia:function(t){throw x("Unexpected exception thrown, this is not properly supported - aborting"),P=!0,t},w:function(){tT(0);var t=Q.pop();if(t.Xb()&&!t.Lb()){var e=t.Wb();e&&to(e)(t.Db),tn(t.Db)}te=0},d:function(){var t=te;if(!t)return tf=0;var e=new tr(t);e.Fb(t);var r=e.Eb();if(!r)return tf=0,t;for(var n=Array.prototype.slice.call(arguments),i=0;i>>2]+4294967296*E[t+4>>>2])),E[e>>2>>>0]=t.getUTCSeconds(),E[e+4>>2>>>0]=t.getUTCMinutes(),E[e+8>>2>>>0]=t.getUTCHours(),E[e+12>>2>>>0]=t.getUTCDate(),E[e+16>>2>>>0]=t.getUTCMonth(),E[e+20>>2>>>0]=t.getUTCFullYear()-1900,E[e+24>>2>>>0]=t.getUTCDay(),E[e+28>>2>>>0]=(t.getTime()-Date.UTC(t.getUTCFullYear(),0,1,0,0,0,0))/864e5|0},Ea:function(t,e){t=new Date(1e3*(I[t>>>2]+4294967296*E[t+4>>>2])),E[e>>2>>>0]=t.getSeconds(),E[e+4>>2>>>0]=t.getMinutes(),E[e+8>>2>>>0]=t.getHours(),E[e+12>>2>>>0]=t.getDate(),E[e+16>>2>>>0]=t.getMonth(),E[e+20>>2>>>0]=t.getFullYear()-1900,E[e+24>>2>>>0]=t.getDay();var r=new Date(t.getFullYear(),0,1);E[e+28>>2>>>0]=(t.getTime()-r.getTime())/864e5|0,E[e+36>>2>>>0]=-60*t.getTimezoneOffset();var n=new Date(t.getFullYear(),6,1).getTimezoneOffset();r=r.getTimezoneOffset(),E[e+32>>2>>>0]=0|(n!=r&&t.getTimezoneOffset()==Math.min(r,n))},Fa:function(t){var e=new Date(E[t+20>>2>>>0]+1900,E[t+16>>2>>>0],E[t+12>>2>>>0],E[t+8>>2>>>0],E[t+4>>2>>>0],E[t>>2>>>0],0),r=E[t+32>>2>>>0],n=e.getTimezoneOffset(),i=new Date(e.getFullYear(),0,1),o=new Date(e.getFullYear(),6,1).getTimezoneOffset(),a=i.getTimezoneOffset(),s=Math.min(a,o);return 0>r?E[t+32>>2>>>0]=Number(o!=a&&s==n):0>2>>>0]=e.getDay(),E[t+28>>2>>>0]=(e.getTime()-i.getTime())/864e5|0,E[t>>2>>>0]=e.getSeconds(),E[t+4>>2>>>0]=e.getMinutes(),E[t+8>>2>>>0]=e.getHours(),E[t+12>>2>>>0]=e.getDate(),E[t+16>>2>>>0]=e.getMonth(),e.getTime()/1e3|0},sa:function(){return -52},ta:function(){},Ga:function t(e,r,n){t.Vb||(t.Vb=!0,function(t,e,r){function n(t){return(t=t.toTimeString().match(/\(([A-Za-z ]+)\)$/))?t[1]:"GMT"}var i=(new Date).getFullYear(),o=new Date(i,0,1),a=new Date(i,6,1);i=o.getTimezoneOffset();var s=a.getTimezoneOffset();E[t>>2>>>0]=60*Math.max(i,s),E[e>>2>>>0]=Number(i!=s),t=n(o),e=n(a),t=ta(t),e=ta(e),s>2>>>0]=t,I[r+4>>2>>>0]=e):(I[r>>2>>>0]=e,I[r+4>>2>>>0]=t)}(e,r,n))},B:function(){q("")},ma:function(){return 4294901760},I:m?()=>{var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:()=>performance.now(),xa:function(t,e,r){A.copyWithin(t>>>0,e>>>0,e+r>>>0)},G:function(t){var e=A.length;if(4294901760<(t>>>=0))return!1;for(var r=1;4>=r;r*=2){var n=e*(1+.2/r);n=Math.min(n,t+100663296);var i=Math;n=Math.max(t,n),i=i.min.call(i,4294901760,n+(65536-n%65536)%65536);t:{try{T.grow(i-S.byteLength+65535>>>16),N();var o=1;break t}catch(t){}o=void 0}if(o)return!0}return!1},va:function(t,e){var r=0;return tu().forEach(function(n,i){var o=e+r;for(i=I[t+4*i>>2>>>0]=o,o=0;o>0>>>0]=n.charCodeAt(o);O[i>>0>>>0]=0,r+=n.length+1}),0},wa:function(t,e){var r=tu();I[t>>2>>>0]=r.length;var n=0;return r.forEach(function(t){n+=t.length+1}),I[e>>2>>>0]=n,0},ba:function(t){w||0>2>>>0],s=I[e+4>>2>>>0];e+=8;for(var u=0;u>>0]);i+=s}return I[n>>2>>>0]=i,0},c:function(){return tf},ja:function t(e,n){t.Mb||(t.Mb=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var t=new Uint8Array(1);return()=>(crypto.getRandomValues(t),t[0])}if(m)try{var e=r(Object(function(){var t=Error("Cannot find module 'crypto'");throw t.code="MODULE_NOT_FOUND",t}()));return()=>e.randomBytes(1)[0]}catch(t){}return()=>q("randomDevice")}());for(var i=0;i>0>>>0]=t.Mb();return 0},ea:function(t,e,r){var n=tS();try{return to(t)(e,r)}catch(t){if(tO(n),t!==t+0)throw t;tT(1,0)}},fa:function(t,e,r){var n=tS();try{return to(t)(e,r)}catch(t){if(tO(n),t!==t+0)throw t;tT(1,0)}},J:function(t){var e=tS();try{return to(t)()}catch(t){if(tO(e),t!==t+0)throw t;tT(1,0)}},e:function(t,e){var r=tS();try{return to(t)(e)}catch(t){if(tO(r),t!==t+0)throw t;tT(1,0)}},N:function(t,e,r){var n=tS();try{return to(t)(e,r)}catch(t){if(tO(n),t!==t+0)throw t;tT(1,0)}},O:function(t,e,r){var n=tS();try{return to(t)(e,r)}catch(t){if(tO(n),t!==t+0)throw t;tT(1,0)}},j:function(t,e,r){var n=tS();try{return to(t)(e,r)}catch(t){if(tO(n),t!==t+0)throw t;tT(1,0)}},o:function(t,e,r,n){var i=tS();try{return to(t)(e,r,n)}catch(t){if(tO(i),t!==t+0)throw t;tT(1,0)}},p:function(t,e,r,n,i){var o=tS();try{return to(t)(e,r,n,i)}catch(t){if(tO(o),t!==t+0)throw t;tT(1,0)}},M:function(t,e,r,n,i,o){var a=tS();try{return to(t)(e,r,n,i,o)}catch(t){if(tO(a),t!==t+0)throw t;tT(1,0)}},r:function(t,e,r,n,i,o){var a=tS();try{return to(t)(e,r,n,i,o)}catch(t){if(tO(a),t!==t+0)throw t;tT(1,0)}},v:function(t,e,r,n,i,o,a){var s=tS();try{return to(t)(e,r,n,i,o,a)}catch(t){if(tO(s),t!==t+0)throw t;tT(1,0)}},K:function(t,e,r,n,i,o,a,s){var u=tS();try{return to(t)(e,r,n,i,o,a,s)}catch(t){if(tO(u),t!==t+0)throw t;tT(1,0)}},D:function(t,e,r,n,i,o,a,s,u,l,c,p){var f=tS();try{return to(t)(e,r,n,i,o,a,s,u,l,c,p)}catch(t){if(tO(f),t!==t+0)throw t;tT(1,0)}},X:function(t,e,r,n,i,o,a,s){var u=tS();try{return tR(t,e,r,n,i,o,a,s)}catch(t){if(tO(u),t!==t+0)throw t;tT(1,0)}},V:function(t,e,r,n,i,o,a){var s=tS();try{return tD(t,e,r,n,i,o,a)}catch(t){if(tO(s),t!==t+0)throw t;tT(1,0)}},U:function(t,e,r,n,i){var o=tS();try{return tj(t,e,r,n,i)}catch(t){if(tO(o),t!==t+0)throw t;tT(1,0)}},Z:function(t,e,r,n){var i=tS();try{return tN(t,e,r,n)}catch(t){if(tO(i),t!==t+0)throw t;tT(1,0)}},W:function(t){var e=tS();try{return tP(t)}catch(t){if(tO(e),t!==t+0)throw t;tT(1,0)}},Y:function(t,e){var r=tS();try{return tL(t,e)}catch(t){if(tO(r),t!==t+0)throw t;tT(1,0)}},T:function(t,e,r){var n=tS();try{return t$(t,e,r)}catch(t){if(tO(n),t!==t+0)throw t;tT(1,0)}},f:function(t){var e=tS();try{to(t)()}catch(t){if(tO(e),t!==t+0)throw t;tT(1,0)}},q:function(t,e){var r=tS();try{to(t)(e)}catch(t){if(tO(r),t!==t+0)throw t;tT(1,0)}},h:function(t,e,r){var n=tS();try{to(t)(e,r)}catch(t){if(tO(n),t!==t+0)throw t;tT(1,0)}},da:function(t,e,r,n){var i=tS();try{to(t)(e,r,n)}catch(t){if(tO(i),t!==t+0)throw t;tT(1,0)}},l:function(t,e,r,n){var i=tS();try{to(t)(e,r,n)}catch(t){if(tO(i),t!==t+0)throw t;tT(1,0)}},t:function(t,e,r,n,i){var o=tS();try{to(t)(e,r,n,i)}catch(t){if(tO(o),t!==t+0)throw t;tT(1,0)}},u:function(t,e,r,n,i,o){var a=tS();try{to(t)(e,r,n,i,o)}catch(t){if(tO(a),t!==t+0)throw t;tT(1,0)}},x:function(t,e,r,n,i,o,a){var s=tS();try{to(t)(e,r,n,i,o,a)}catch(t){if(tO(s),t!==t+0)throw t;tT(1,0)}},z:function(t,e,r,n,i,o,a,s){var u=tS();try{to(t)(e,r,n,i,o,a,s)}catch(t){if(tO(u),t!==t+0)throw t;tT(1,0)}},ga:function(t,e,r,n,i,o,a,s,u){var l=tS();try{to(t)(e,r,n,i,o,a,s,u)}catch(t){if(tO(l),t!==t+0)throw t;tT(1,0)}},A:function(t,e,r,n,i,o,a,s,u,l,c){var p=tS();try{to(t)(e,r,n,i,o,a,s,u,l,c)}catch(t){if(tO(p),t!==t+0)throw t;tT(1,0)}},C:function(t,e,r,n,i,o,a,s,u,l,c,p,f,d,h,g){var b=tS();try{to(t)(e,r,n,i,o,a,s,u,l,c,p,f,d,h,g)}catch(t){if(tO(b),t!==t+0)throw t;tT(1,0)}},aa:function(t,e,r,n,i,o,a,s){var u=tS();try{tk(t,e,r,n,i,o,a,s)}catch(t){if(tO(u),t!==t+0)throw t;tT(1,0)}},_:function(t,e,r,n,i,o,a,s,u,l,c,p){var f=tS();try{tF(t,e,r,n,i,o,a,s,u,l,c,p)}catch(t){if(tO(f),t!==t+0)throw t;tT(1,0)}},$:function(t,e,r,n,i,o){var a=tS();try{tC(t,e,r,n,i,o)}catch(t){if(tO(a),t!==t+0)throw t;tT(1,0)}},n:function(t){return t},F:function(t){tf=t},ha:tb,y:function(t,e,r,n){return tb(t,e,r,n)}};(function(){function t(t){e.asm=t.exports,T=e.asm.Ka,N(),L=e.asm.ib,j.unshift(e.asm.La),G--,e.monitorRunDependencies&&e.monitorRunDependencies(G),0==G&&(null!==H&&(clearInterval(H),H=null),W&&(t=W,W=null,t()))}function r(e){t(e.instance)}function n(t){return(function(){if(!_&&(g||b)){if("function"==typeof fetch&&!z.startsWith("file://"))return fetch(z,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+z+"'";return t.arrayBuffer()}).catch(function(){return K()});if(s)return new Promise(function(t,e){s(z,function(e){t(new Uint8Array(e))},e)})}return Promise.resolve().then(function(){return K()})})().then(function(t){return WebAssembly.instantiate(t,i)}).then(function(t){return t}).then(t,function(t){x("failed to asynchronously prepare wasm: "+t),q(t)})}var i={a:tm};if(G++,e.monitorRunDependencies&&e.monitorRunDependencies(G),e.instantiateWasm)try{return e.instantiateWasm(i,t)}catch(t){return x("Module.instantiateWasm callback failed with error: "+t),!1}(_||"function"!=typeof WebAssembly.instantiateStreaming||X()||z.startsWith("file://")||m||"function"!=typeof fetch?n(r):fetch(z,{credentials:"same-origin"}).then(function(t){return WebAssembly.instantiateStreaming(t,i).then(r,function(t){return x("wasm streaming compile failed: "+t),x("falling back to ArrayBuffer instantiation"),n(r)})})).catch(o)})(),e.___wasm_call_ctors=function(){return(e.___wasm_call_ctors=e.asm.La).apply(null,arguments)},e._OrtInit=function(){return(e._OrtInit=e.asm.Ma).apply(null,arguments)},e._OrtCreateSessionOptions=function(){return(e._OrtCreateSessionOptions=e.asm.Na).apply(null,arguments)},e._OrtAppendExecutionProvider=function(){return(e._OrtAppendExecutionProvider=e.asm.Oa).apply(null,arguments)},e._OrtAddSessionConfigEntry=function(){return(e._OrtAddSessionConfigEntry=e.asm.Pa).apply(null,arguments)},e._OrtReleaseSessionOptions=function(){return(e._OrtReleaseSessionOptions=e.asm.Qa).apply(null,arguments)},e._OrtCreateSession=function(){return(e._OrtCreateSession=e.asm.Ra).apply(null,arguments)},e._OrtReleaseSession=function(){return(e._OrtReleaseSession=e.asm.Sa).apply(null,arguments)},e._OrtGetInputCount=function(){return(e._OrtGetInputCount=e.asm.Ta).apply(null,arguments)},e._OrtGetOutputCount=function(){return(e._OrtGetOutputCount=e.asm.Ua).apply(null,arguments)},e._OrtGetInputName=function(){return(e._OrtGetInputName=e.asm.Va).apply(null,arguments)},e._OrtGetOutputName=function(){return(e._OrtGetOutputName=e.asm.Wa).apply(null,arguments)},e._OrtFree=function(){return(e._OrtFree=e.asm.Xa).apply(null,arguments)},e._OrtCreateTensor=function(){return(e._OrtCreateTensor=e.asm.Ya).apply(null,arguments)},e._OrtGetTensorData=function(){return(e._OrtGetTensorData=e.asm.Za).apply(null,arguments)},e._OrtReleaseTensor=function(){return(e._OrtReleaseTensor=e.asm._a).apply(null,arguments)},e._OrtCreateRunOptions=function(){return(e._OrtCreateRunOptions=e.asm.$a).apply(null,arguments)},e._OrtAddRunConfigEntry=function(){return(e._OrtAddRunConfigEntry=e.asm.ab).apply(null,arguments)},e._OrtReleaseRunOptions=function(){return(e._OrtReleaseRunOptions=e.asm.bb).apply(null,arguments)},e._OrtRun=function(){return(e._OrtRun=e.asm.cb).apply(null,arguments)},e._OrtEndProfiling=function(){return(e._OrtEndProfiling=e.asm.db).apply(null,arguments)};var ty,t_=e._malloc=function(){return(t_=e._malloc=e.asm.eb).apply(null,arguments)},tv=e._free=function(){return(tv=e._free=e.asm.fb).apply(null,arguments)},tx=e._fflush=function(){return(tx=e._fflush=e.asm.gb).apply(null,arguments)},tw=e.___funcs_on_exit=function(){return(tw=e.___funcs_on_exit=e.asm.hb).apply(null,arguments)},tT=e._setThrew=function(){return(tT=e._setThrew=e.asm.jb).apply(null,arguments)},tS=e.stackSave=function(){return(tS=e.stackSave=e.asm.kb).apply(null,arguments)},tO=e.stackRestore=function(){return(tO=e.stackRestore=e.asm.lb).apply(null,arguments)},tA=e.stackAlloc=function(){return(tA=e.stackAlloc=e.asm.mb).apply(null,arguments)},tE=e.___cxa_can_catch=function(){return(tE=e.___cxa_can_catch=e.asm.nb).apply(null,arguments)},tI=e.___cxa_is_pointer_type=function(){return(tI=e.___cxa_is_pointer_type=e.asm.ob).apply(null,arguments)},tP=e.dynCall_j=function(){return(tP=e.dynCall_j=e.asm.pb).apply(null,arguments)},tD=e.dynCall_iiiiij=function(){return(tD=e.dynCall_iiiiij=e.asm.qb).apply(null,arguments)},t$=e.dynCall_jii=function(){return(t$=e.dynCall_jii=e.asm.rb).apply(null,arguments)},tk=e.dynCall_viiiiij=function(){return(tk=e.dynCall_viiiiij=e.asm.sb).apply(null,arguments)},tC=e.dynCall_vjji=function(){return(tC=e.dynCall_vjji=e.asm.tb).apply(null,arguments)},tF=e.dynCall_viiijjjii=function(){return(tF=e.dynCall_viiijjjii=e.asm.ub).apply(null,arguments)},tN=e.dynCall_iij=function(){return(tN=e.dynCall_iij=e.asm.vb).apply(null,arguments)},tL=e.dynCall_ji=function(){return(tL=e.dynCall_ji=e.asm.wb).apply(null,arguments)},tR=e.dynCall_iiiiiij=function(){return(tR=e.dynCall_iiiiiij=e.asm.xb).apply(null,arguments)},tj=e.dynCall_iiij=function(){return(tj=e.dynCall_iiij=e.asm.yb).apply(null,arguments)};function tM(){function t(){if(!ty&&(ty=!0,e.calledRun=!0,!P)){if(J(j),i(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;){var t=e.postRun.shift();U.unshift(t)}J(U)}}if(!(0{"use strict";t.exports=function(t,e){for(var r=Array(arguments.length-1),n=0,i=2,o=!0;i{"use strict";var r=e;r.length=function(t){var e=t.length;if(!e)return 0;for(var r=0;--e%4>1&&"="===t.charAt(e);)++r;return Math.ceil(3*t.length)/4-r};for(var n=Array(64),i=Array(123),o=0;o<64;)i[n[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;r.encode=function(t,e,r){for(var i,o=null,a=[],s=0,u=0;e>2],i=(3&l)<<4,u=1;break;case 1:a[s++]=n[i|l>>4],i=(15&l)<<2,u=2;break;case 2:a[s++]=n[i|l>>6],a[s++]=n[63&l],u=0}s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,a)),s=0)}return u&&(a[s++]=n[i],a[s++]=61,1===u&&(a[s++]=61)),o?(s&&o.push(String.fromCharCode.apply(String,a.slice(0,s))),o.join("")):String.fromCharCode.apply(String,a.slice(0,s))};var a="invalid encoding";r.decode=function(t,e,r){for(var n,o=r,s=0,u=0;u1)break;if(void 0===(l=i[l]))throw Error(a);switch(s){case 0:n=l,s=1;break;case 1:e[r++]=n<<2|(48&l)>>4,n=l,s=2;break;case 2:e[r++]=(15&n)<<4|(60&l)>>2,n=l,s=3;break;case 3:e[r++]=(3&n)<<6|l,s=0}}if(1===s)throw Error(a);return r-o},r.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},9211:t=>{"use strict";function e(){this._listeners={}}t.exports=e,e.prototype.on=function(t,e,r){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:r||this}),this},e.prototype.off=function(t,e){if(void 0===t)this._listeners={};else if(void 0===e)this._listeners[t]=[];else for(var r=this._listeners[t],n=0;n{"use strict";function e(t){return"undefined"!=typeof Float32Array?function(){var e=new Float32Array([-0]),r=new Uint8Array(e.buffer),n=128===r[3];function i(t,n,i){e[0]=t,n[i]=r[0],n[i+1]=r[1],n[i+2]=r[2],n[i+3]=r[3]}function o(t,n,i){e[0]=t,n[i]=r[3],n[i+1]=r[2],n[i+2]=r[1],n[i+3]=r[0]}function a(t,n){return r[0]=t[n],r[1]=t[n+1],r[2]=t[n+2],r[3]=t[n+3],e[0]}function s(t,n){return r[3]=t[n],r[2]=t[n+1],r[1]=t[n+2],r[0]=t[n+3],e[0]}t.writeFloatLE=n?i:o,t.writeFloatBE=n?o:i,t.readFloatLE=n?a:s,t.readFloatBE=n?s:a}():function(){function e(t,e,r,n){var i=e<0?1:0;if(i&&(e=-e),0===e)t(1/e>0?0:2147483648,r,n);else if(isNaN(e))t(2143289344,r,n);else if(e>34028234663852886e22)t((i<<31|2139095040)>>>0,r,n);else if(e<11754943508222875e-54)t((i<<31|Math.round(e/1401298464324817e-60))>>>0,r,n);else{var o=Math.floor(Math.log(e)/Math.LN2);t((i<<31|o+127<<23|8388607&Math.round(e*Math.pow(2,-o)*8388608))>>>0,r,n)}}function a(t,e,r){var n=t(e,r),i=2*(n>>31)+1,o=n>>>23&255,a=8388607&n;return 255===o?a?NaN:1/0*i:0===o?1401298464324817e-60*i*a:i*Math.pow(2,o-150)*(a+8388608)}t.writeFloatLE=e.bind(null,r),t.writeFloatBE=e.bind(null,n),t.readFloatLE=a.bind(null,i),t.readFloatBE=a.bind(null,o)}(),"undefined"!=typeof Float64Array?function(){var e=new Float64Array([-0]),r=new Uint8Array(e.buffer),n=128===r[7];function i(t,n,i){e[0]=t,n[i]=r[0],n[i+1]=r[1],n[i+2]=r[2],n[i+3]=r[3],n[i+4]=r[4],n[i+5]=r[5],n[i+6]=r[6],n[i+7]=r[7]}function o(t,n,i){e[0]=t,n[i]=r[7],n[i+1]=r[6],n[i+2]=r[5],n[i+3]=r[4],n[i+4]=r[3],n[i+5]=r[2],n[i+6]=r[1],n[i+7]=r[0]}function a(t,n){return r[0]=t[n],r[1]=t[n+1],r[2]=t[n+2],r[3]=t[n+3],r[4]=t[n+4],r[5]=t[n+5],r[6]=t[n+6],r[7]=t[n+7],e[0]}function s(t,n){return r[7]=t[n],r[6]=t[n+1],r[5]=t[n+2],r[4]=t[n+3],r[3]=t[n+4],r[2]=t[n+5],r[1]=t[n+6],r[0]=t[n+7],e[0]}t.writeDoubleLE=n?i:o,t.writeDoubleBE=n?o:i,t.readDoubleLE=n?a:s,t.readDoubleBE=n?s:a}():function(){function e(t,e,r,n,i,o){var a,s=n<0?1:0;if(s&&(n=-n),0===n)t(0,i,o+e),t(1/n>0?0:2147483648,i,o+r);else if(isNaN(n))t(0,i,o+e),t(2146959360,i,o+r);else if(n>17976931348623157e292)t(0,i,o+e),t((s<<31|2146435072)>>>0,i,o+r);else if(n<22250738585072014e-324)t((a=n/5e-324)>>>0,i,o+e),t((s<<31|a/4294967296)>>>0,i,o+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),t(4503599627370496*(a=n*Math.pow(2,-u))>>>0,i,o+e),t((s<<31|u+1023<<20|1048576*a&1048575)>>>0,i,o+r)}}function a(t,e,r,n,i){var o=t(n,i+e),a=t(n,i+r),s=2*(a>>31)+1,u=a>>>20&2047,l=4294967296*(1048575&a)+o;return 2047===u?l?NaN:1/0*s:0===u?5e-324*s*l:s*Math.pow(2,u-1075)*(l+4503599627370496)}t.writeDoubleLE=e.bind(null,r,0,4),t.writeDoubleBE=e.bind(null,n,4,0),t.readDoubleLE=a.bind(null,i,0,4),t.readDoubleBE=a.bind(null,o,4,0)}(),t}function r(t,e,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}function n(t,e,r){e[r]=t>>>24,e[r+1]=t>>>16&255,e[r+2]=t>>>8&255,e[r+3]=255&t}function i(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function o(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}t.exports=e(e)},7199:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(t){}return null}module.exports=inquire},6662:t=>{"use strict";t.exports=function(t,e,r){var n=r||8192,i=n>>>1,o=null,a=n;return function(r){if(r<1||r>i)return t(r);a+r>n&&(o=t(n),a=0);var s=e.call(o,a,a+=r);return 7&a&&(a=1+(7|a)),s}}},4997:(t,e)=>{"use strict";var r=e;r.length=function(t){for(var e=0,r=0,n=0;n191&&n<224?o[a++]=(31&n)<<6|63&t[e++]:n>239&&n<365?(n=((7&n)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,o[a++]=55296+(n>>10),o[a++]=56320+(1023&n)):o[a++]=(15&n)<<12|(63&t[e++])<<6|63&t[e++],a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,o)),a=0);return i?(a&&i.push(String.fromCharCode.apply(String,o.slice(0,a))),i.join("")):String.fromCharCode.apply(String,o.slice(0,a))},r.write=function(t,e,r){for(var n,i,o=r,a=0;a>6|192:(55296==(64512&n)&&56320==(64512&(i=t.charCodeAt(a+1)))?(n=65536+((1023&n)<<10)+(1023&i),++a,e[r++]=n>>18|240,e[r++]=n>>12&63|128):e[r++]=n>>12|224,e[r++]=n>>6&63|128),e[r++]=63&n|128);return r-o}},3442:(t,e)=>{"use strict";e.__esModule=!0;var r=function(){function t(e){if(!e)throw TypeError("Invalid argument; `value` has no value.");this.value=t.EMPTY,e&&t.isGuid(e)&&(this.value=e)}return t.isGuid=function(e){var r=e.toString();return e&&(e instanceof t||t.validator.test(r))},t.create=function(){return new t([t.gen(2),t.gen(1),t.gen(1),t.gen(1),t.gen(3)].join("-"))},t.createEmpty=function(){return new t("emptyguid")},t.parse=function(e){return new t(e)},t.raw=function(){return[t.gen(2),t.gen(1),t.gen(1),t.gen(1),t.gen(3)].join("-")},t.gen=function(t){for(var e="",r=0;r{t.exports=r;var e=null;try{e=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(t){}function r(t,e,r){this.low=0|t,this.high=0|e,this.unsigned=!!r}function n(t){return!0===(t&&t.__isLong__)}r.prototype.__isLong__,Object.defineProperty(r.prototype,"__isLong__",{value:!0}),r.isLong=n;var i={},o={};function a(t,e){var r,n,a;return e?(a=0<=(t>>>=0)&&t<256)&&(n=o[t])?n:(r=u(t,(0|t)<0?-1:0,!0),a&&(o[t]=r),r):(a=-128<=(t|=0)&&t<128)&&(n=i[t])?n:(r=u(t,t<0?-1:0,!1),a&&(i[t]=r),r)}function s(t,e){if(isNaN(t))return e?m:b;if(e){if(t<0)return m;if(t>=d)return w}else{if(t<=-h)return T;if(t+1>=h)return x}return t<0?s(-t,e).neg():u(t%f|0,t/f|0,e)}function u(t,e,n){return new r(t,e,n)}r.fromInt=a,r.fromNumber=s,r.fromBits=u;var l=Math.pow;function c(t,e,r){if(0===t.length)throw Error("empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return b;if("number"==typeof e?(r=e,e=!1):e=!!e,(r=r||10)<2||360)throw Error("interior hyphen");if(0===n)return c(t.substring(1),e,r).neg();for(var n,i=s(l(r,8)),o=b,a=0;a>>0:this.low},S.toNumber=function(){return this.unsigned?(this.high>>>0)*f+(this.low>>>0):this.high*f+(this.low>>>0)},S.toString=function(t){if((t=t||10)<2||36>>0).toString(t);if((o=u).isZero())return c+a;for(;c.length<6;)c="0"+c;a=""+c+a}},S.getHighBits=function(){return this.high},S.getHighBitsUnsigned=function(){return this.high>>>0},S.getLowBits=function(){return this.low},S.getLowBitsUnsigned=function(){return this.low>>>0},S.getNumBitsAbs=function(){if(this.isNegative())return this.eq(T)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,e=31;e>0&&0==(t&1<=0},S.isOdd=function(){return 1==(1&this.low)},S.isEven=function(){return 0==(1&this.low)},S.equals=function(t){return n(t)||(t=p(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&this.high===t.high&&this.low===t.low},S.eq=S.equals,S.notEquals=function(t){return!this.eq(t)},S.neq=S.notEquals,S.ne=S.notEquals,S.lessThan=function(t){return 0>this.comp(t)},S.lt=S.lessThan,S.lessThanOrEqual=function(t){return 0>=this.comp(t)},S.lte=S.lessThanOrEqual,S.le=S.lessThanOrEqual,S.greaterThan=function(t){return this.comp(t)>0},S.gt=S.greaterThan,S.greaterThanOrEqual=function(t){return this.comp(t)>=0},S.gte=S.greaterThanOrEqual,S.ge=S.greaterThanOrEqual,S.compare=function(t){if(n(t)||(t=p(t)),this.eq(t))return 0;var e=this.isNegative(),r=t.isNegative();return e&&!r?-1:!e&&r?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},S.comp=S.compare,S.negate=function(){return!this.unsigned&&this.eq(T)?T:this.not().add(y)},S.neg=S.negate,S.add=function(t){n(t)||(t=p(t));var e,r,i,o,a=this.high>>>16,s=65535&this.high,l=this.low>>>16,c=65535&this.low,f=t.high>>>16,d=65535&t.high,h=t.low>>>16;return o=0+(((i=0+((e=0+((r=0+(c+(65535&t.low)))>>>16)+(l+h))>>>16)+(s+d))>>>16)+(a+f)),u((e&=65535)<<16|(r&=65535),(o&=65535)<<16|(i&=65535),this.unsigned)},S.subtract=function(t){return n(t)||(t=p(t)),this.add(t.neg())},S.sub=S.subtract,S.multiply=function(t){if(this.isZero())return b;if(n(t)||(t=p(t)),e)return u(e.mul(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned);if(t.isZero())return b;if(this.eq(T))return t.isOdd()?T:b;if(t.eq(T))return this.isOdd()?T:b;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(g)&&t.lt(g))return s(this.toNumber()*t.toNumber(),this.unsigned);var r,i,o,a=this.high>>>16,l=65535&this.high,c=this.low>>>16,f=65535&this.low,d=t.high>>>16,h=65535&t.high,m=t.low>>>16,y=65535&t.low,_=0;return o=0+((r=0+((i=0+f*y)>>>16)+c*y)>>>16),r&=65535,o+=(r+=f*m)>>>16,_+=(o+=l*y)>>>16,o&=65535,_+=(o+=c*m)>>>16,o&=65535,_+=((o+=f*h)>>>16)+(a*y+l*m+c*h+f*d),u((r&=65535)<<16|(i&=65535),(_&=65535)<<16|(o&=65535),this.unsigned)},S.mul=S.multiply,S.divide=function(t){if(n(t)||(t=p(t)),t.isZero())throw Error("division by zero");if(e)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?u((this.unsigned?e.div_u:e.div_s)(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?m:b;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return m;if(t.gt(this.shru(1)))return _;o=m}else{if(this.eq(T))return t.eq(y)||t.eq(v)?T:t.eq(T)?y:(r=this.shr(1).div(t).shl(1)).eq(b)?t.isNegative()?y:v:(i=this.sub(t.mul(r)),o=r.add(i.div(t)));if(t.eq(T))return this.unsigned?m:b;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();o=b}for(i=this;i.gte(t);){r=Math.max(1,Math.floor(i.toNumber()/t.toNumber()));for(var r,i,o,a=Math.ceil(Math.log(r)/Math.LN2),c=a<=48?1:l(2,a-48),f=s(r),d=f.mul(t);d.isNegative()||d.gt(i);)d=(f=s(r-=c,this.unsigned)).mul(t);f.isZero()&&(f=y),o=o.add(f),i=i.sub(d)}return o},S.div=S.divide,S.modulo=function(t){return n(t)||(t=p(t)),e?u((this.unsigned?e.rem_u:e.rem_s)(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},S.mod=S.modulo,S.rem=S.modulo,S.not=function(){return u(~this.low,~this.high,this.unsigned)},S.and=function(t){return n(t)||(t=p(t)),u(this.low&t.low,this.high&t.high,this.unsigned)},S.or=function(t){return n(t)||(t=p(t)),u(this.low|t.low,this.high|t.high,this.unsigned)},S.xor=function(t){return n(t)||(t=p(t)),u(this.low^t.low,this.high^t.high,this.unsigned)},S.shiftLeft=function(t){return n(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?u(this.low<>>32-t,this.unsigned):u(0,this.low<>>t|this.high<<32-t,this.high>>t,this.unsigned):u(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},S.shr=S.shiftRight,S.shiftRightUnsigned=function(t){if(n(t)&&(t=t.toInt()),0==(t&=63))return this;var e=this.high;return t<32?u(this.low>>>t|e<<32-t,e>>>t,this.unsigned):u(32===t?e:e>>>t-32,0,this.unsigned)},S.shru=S.shiftRightUnsigned,S.shr_u=S.shiftRightUnsigned,S.toSigned=function(){return this.unsigned?u(this.low,this.high,!1):this},S.toUnsigned=function(){return this.unsigned?this:u(this.low,this.high,!0)},S.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},S.toBytesLE=function(){var t=this.high,e=this.low;return[255&e,e>>>8&255,e>>>16&255,e>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]},S.toBytesBE=function(){var t=this.high,e=this.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,e>>>24,e>>>16&255,e>>>8&255,255&e]},r.fromBytes=function(t,e,n){return n?r.fromBytesLE(t,e):r.fromBytesBE(t,e)},r.fromBytesLE=function(t,e){return new r(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,e)},r.fromBytesBE=function(t,e){return new r(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],e)}},1446:(t,e,r)=>{"use strict";var n,i,o,a=r(2100),s=a.Reader,u=a.Writer,l=a.util,c=a.roots.default||(a.roots.default={});c.onnx=((o={}).Version=((i=Object.create(n={}))[n[0]="_START_VERSION"]=0,i[n[1]="IR_VERSION_2017_10_10"]=1,i[n[2]="IR_VERSION_2017_10_30"]=2,i[n[3]="IR_VERSION_2017_11_3"]=3,i[n[4]="IR_VERSION_2019_1_22"]=4,i[n[5]="IR_VERSION"]=5,i),o.AttributeProto=function(){function t(t){if(this.floats=[],this.ints=[],this.strings=[],this.tensors=[],this.graphs=[],t)for(var e=Object.keys(t),r=0;r>>3){case 1:n.name=t.string();break;case 21:n.refAttrName=t.string();break;case 13:n.docString=t.string();break;case 20:n.type=t.int32();break;case 2:n.f=t.float();break;case 3:n.i=t.int64();break;case 4:n.s=t.bytes();break;case 5:n.t=c.onnx.TensorProto.decode(t,t.uint32());break;case 6:n.g=c.onnx.GraphProto.decode(t,t.uint32());break;case 7:if(n.floats&&n.floats.length||(n.floats=[]),2==(7&i))for(var o=t.uint32()+t.pos;t.pos>>0,t.i.high>>>0).toNumber())),null!=t.s&&("string"==typeof t.s?l.base64.decode(t.s,e.s=l.newBuffer(l.base64.length(t.s)),0):t.s.length&&(e.s=t.s)),null!=t.t){if("object"!=typeof t.t)throw TypeError(".onnx.AttributeProto.t: object expected");e.t=c.onnx.TensorProto.fromObject(t.t)}if(null!=t.g){if("object"!=typeof t.g)throw TypeError(".onnx.AttributeProto.g: object expected");e.g=c.onnx.GraphProto.fromObject(t.g)}if(t.floats){if(!Array.isArray(t.floats))throw TypeError(".onnx.AttributeProto.floats: array expected");e.floats=[];for(var r=0;r>>0,t.ints[r].high>>>0).toNumber())}if(t.strings){if(!Array.isArray(t.strings))throw TypeError(".onnx.AttributeProto.strings: array expected");for(e.strings=[],r=0;r>>0,t.i.high>>>0).toNumber():t.i),null!=t.s&&t.hasOwnProperty("s")&&(r.s=e.bytes===String?l.base64.encode(t.s,0,t.s.length):e.bytes===Array?Array.prototype.slice.call(t.s):t.s),null!=t.t&&t.hasOwnProperty("t")&&(r.t=c.onnx.TensorProto.toObject(t.t,e)),null!=t.g&&t.hasOwnProperty("g")&&(r.g=c.onnx.GraphProto.toObject(t.g,e)),t.floats&&t.floats.length){r.floats=[];for(var i=0;i>>0,t.ints[i].high>>>0).toNumber():t.ints[i];if(t.strings&&t.strings.length)for(r.strings=[],i=0;i>>3){case 1:n.name=t.string();break;case 2:n.type=c.onnx.TypeProto.decode(t,t.uint32());break;case 3:n.docString=t.string();break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.name&&t.hasOwnProperty("name")&&!l.isString(t.name))return"name: string expected";if(null!=t.type&&t.hasOwnProperty("type")){var e=c.onnx.TypeProto.verify(t.type);if(e)return"type."+e}return null!=t.docString&&t.hasOwnProperty("docString")&&!l.isString(t.docString)?"docString: string expected":null},t.fromObject=function(t){if(t instanceof c.onnx.ValueInfoProto)return t;var e=new c.onnx.ValueInfoProto;if(null!=t.name&&(e.name=String(t.name)),null!=t.type){if("object"!=typeof t.type)throw TypeError(".onnx.ValueInfoProto.type: object expected");e.type=c.onnx.TypeProto.fromObject(t.type)}return null!=t.docString&&(e.docString=String(t.docString)),e},t.toObject=function(t,e){e||(e={});var r={};return e.defaults&&(r.name="",r.type=null,r.docString=""),null!=t.name&&t.hasOwnProperty("name")&&(r.name=t.name),null!=t.type&&t.hasOwnProperty("type")&&(r.type=c.onnx.TypeProto.toObject(t.type,e)),null!=t.docString&&t.hasOwnProperty("docString")&&(r.docString=t.docString),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t}(),o.NodeProto=function(){function t(t){if(this.input=[],this.output=[],this.attribute=[],t)for(var e=Object.keys(t),r=0;r>>3){case 1:n.input&&n.input.length||(n.input=[]),n.input.push(t.string());break;case 2:n.output&&n.output.length||(n.output=[]),n.output.push(t.string());break;case 3:n.name=t.string();break;case 4:n.opType=t.string();break;case 7:n.domain=t.string();break;case 5:n.attribute&&n.attribute.length||(n.attribute=[]),n.attribute.push(c.onnx.AttributeProto.decode(t,t.uint32()));break;case 6:n.docString=t.string();break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.input&&t.hasOwnProperty("input")){if(!Array.isArray(t.input))return"input: array expected";for(var e=0;e>>3){case 1:n.irVersion=t.int64();break;case 8:n.opsetImport&&n.opsetImport.length||(n.opsetImport=[]),n.opsetImport.push(c.onnx.OperatorSetIdProto.decode(t,t.uint32()));break;case 2:n.producerName=t.string();break;case 3:n.producerVersion=t.string();break;case 4:n.domain=t.string();break;case 5:n.modelVersion=t.int64();break;case 6:n.docString=t.string();break;case 7:n.graph=c.onnx.GraphProto.decode(t,t.uint32());break;case 14:n.metadataProps&&n.metadataProps.length||(n.metadataProps=[]),n.metadataProps.push(c.onnx.StringStringEntryProto.decode(t,t.uint32()));break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.irVersion&&t.hasOwnProperty("irVersion")&&!(l.isInteger(t.irVersion)||t.irVersion&&l.isInteger(t.irVersion.low)&&l.isInteger(t.irVersion.high)))return"irVersion: integer|Long expected";if(null!=t.opsetImport&&t.hasOwnProperty("opsetImport")){if(!Array.isArray(t.opsetImport))return"opsetImport: array expected";for(var e,r=0;r>>0,t.irVersion.high>>>0).toNumber())),t.opsetImport){if(!Array.isArray(t.opsetImport))throw TypeError(".onnx.ModelProto.opsetImport: array expected");e.opsetImport=[];for(var r=0;r>>0,t.modelVersion.high>>>0).toNumber())),null!=t.docString&&(e.docString=String(t.docString)),null!=t.graph){if("object"!=typeof t.graph)throw TypeError(".onnx.ModelProto.graph: object expected");e.graph=c.onnx.GraphProto.fromObject(t.graph)}if(t.metadataProps){if(!Array.isArray(t.metadataProps))throw TypeError(".onnx.ModelProto.metadataProps: array expected");for(e.metadataProps=[],r=0;r>>0,t.irVersion.high>>>0).toNumber():t.irVersion),null!=t.producerName&&t.hasOwnProperty("producerName")&&(r.producerName=t.producerName),null!=t.producerVersion&&t.hasOwnProperty("producerVersion")&&(r.producerVersion=t.producerVersion),null!=t.domain&&t.hasOwnProperty("domain")&&(r.domain=t.domain),null!=t.modelVersion&&t.hasOwnProperty("modelVersion")&&("number"==typeof t.modelVersion?r.modelVersion=e.longs===String?String(t.modelVersion):t.modelVersion:r.modelVersion=e.longs===String?l.Long.prototype.toString.call(t.modelVersion):e.longs===Number?new l.LongBits(t.modelVersion.low>>>0,t.modelVersion.high>>>0).toNumber():t.modelVersion),null!=t.docString&&t.hasOwnProperty("docString")&&(r.docString=t.docString),null!=t.graph&&t.hasOwnProperty("graph")&&(r.graph=c.onnx.GraphProto.toObject(t.graph,e)),t.opsetImport&&t.opsetImport.length){r.opsetImport=[];for(var i=0;i>>3){case 1:n.key=t.string();break;case 2:n.value=t.string();break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.key&&t.hasOwnProperty("key")&&!l.isString(t.key)?"key: string expected":null!=t.value&&t.hasOwnProperty("value")&&!l.isString(t.value)?"value: string expected":null},t.fromObject=function(t){if(t instanceof c.onnx.StringStringEntryProto)return t;var e=new c.onnx.StringStringEntryProto;return null!=t.key&&(e.key=String(t.key)),null!=t.value&&(e.value=String(t.value)),e},t.toObject=function(t,e){e||(e={});var r={};return e.defaults&&(r.key="",r.value=""),null!=t.key&&t.hasOwnProperty("key")&&(r.key=t.key),null!=t.value&&t.hasOwnProperty("value")&&(r.value=t.value),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t}(),o.TensorAnnotation=function(){function t(t){if(this.quantParameterTensorNames=[],t)for(var e=Object.keys(t),r=0;r>>3){case 1:n.tensorName=t.string();break;case 2:n.quantParameterTensorNames&&n.quantParameterTensorNames.length||(n.quantParameterTensorNames=[]),n.quantParameterTensorNames.push(c.onnx.StringStringEntryProto.decode(t,t.uint32()));break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.tensorName&&t.hasOwnProperty("tensorName")&&!l.isString(t.tensorName))return"tensorName: string expected";if(null!=t.quantParameterTensorNames&&t.hasOwnProperty("quantParameterTensorNames")){if(!Array.isArray(t.quantParameterTensorNames))return"quantParameterTensorNames: array expected";for(var e=0;e>>3){case 1:n.node&&n.node.length||(n.node=[]),n.node.push(c.onnx.NodeProto.decode(t,t.uint32()));break;case 2:n.name=t.string();break;case 5:n.initializer&&n.initializer.length||(n.initializer=[]),n.initializer.push(c.onnx.TensorProto.decode(t,t.uint32()));break;case 10:n.docString=t.string();break;case 11:n.input&&n.input.length||(n.input=[]),n.input.push(c.onnx.ValueInfoProto.decode(t,t.uint32()));break;case 12:n.output&&n.output.length||(n.output=[]),n.output.push(c.onnx.ValueInfoProto.decode(t,t.uint32()));break;case 13:n.valueInfo&&n.valueInfo.length||(n.valueInfo=[]),n.valueInfo.push(c.onnx.ValueInfoProto.decode(t,t.uint32()));break;case 14:n.quantizationAnnotation&&n.quantizationAnnotation.length||(n.quantizationAnnotation=[]),n.quantizationAnnotation.push(c.onnx.TensorAnnotation.decode(t,t.uint32()));break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.node&&t.hasOwnProperty("node")){if(!Array.isArray(t.node))return"node: array expected";for(var e,r=0;r>>3){case 1:if(n.dims&&n.dims.length||(n.dims=[]),2==(7&i))for(var o=t.uint32()+t.pos;t.pos>>0,t.dims[r].high>>>0).toNumber())}if(null!=t.dataType&&(e.dataType=0|t.dataType),null!=t.segment){if("object"!=typeof t.segment)throw TypeError(".onnx.TensorProto.segment: object expected");e.segment=c.onnx.TensorProto.Segment.fromObject(t.segment)}if(t.floatData){if(!Array.isArray(t.floatData))throw TypeError(".onnx.TensorProto.floatData: array expected");for(e.floatData=[],r=0;r>>0,t.int64Data[r].high>>>0).toNumber())}if(null!=t.name&&(e.name=String(t.name)),null!=t.docString&&(e.docString=String(t.docString)),null!=t.rawData&&("string"==typeof t.rawData?l.base64.decode(t.rawData,e.rawData=l.newBuffer(l.base64.length(t.rawData)),0):t.rawData.length&&(e.rawData=t.rawData)),t.externalData){if(!Array.isArray(t.externalData))throw TypeError(".onnx.TensorProto.externalData: array expected");for(e.externalData=[],r=0;r>>0,t.uint64Data[r].high>>>0).toNumber(!0))}return e},t.toObject=function(t,e){e||(e={});var r={};if((e.arrays||e.defaults)&&(r.dims=[],r.floatData=[],r.int32Data=[],r.stringData=[],r.int64Data=[],r.doubleData=[],r.uint64Data=[],r.externalData=[]),e.defaults&&(r.dataType=0,r.segment=null,r.name="",e.bytes===String?r.rawData="":(r.rawData=[],e.bytes!==Array&&(r.rawData=l.newBuffer(r.rawData))),r.docString="",r.dataLocation=e.enums===String?"DEFAULT":0),t.dims&&t.dims.length){r.dims=[];for(var n=0;n>>0,t.dims[n].high>>>0).toNumber():t.dims[n]}if(null!=t.dataType&&t.hasOwnProperty("dataType")&&(r.dataType=t.dataType),null!=t.segment&&t.hasOwnProperty("segment")&&(r.segment=c.onnx.TensorProto.Segment.toObject(t.segment,e)),t.floatData&&t.floatData.length)for(r.floatData=[],n=0;n>>0,t.int64Data[n].high>>>0).toNumber():t.int64Data[n];if(null!=t.name&&t.hasOwnProperty("name")&&(r.name=t.name),null!=t.rawData&&t.hasOwnProperty("rawData")&&(r.rawData=e.bytes===String?l.base64.encode(t.rawData,0,t.rawData.length):e.bytes===Array?Array.prototype.slice.call(t.rawData):t.rawData),t.doubleData&&t.doubleData.length)for(r.doubleData=[],n=0;n>>0,t.uint64Data[n].high>>>0).toNumber(!0):t.uint64Data[n];if(null!=t.docString&&t.hasOwnProperty("docString")&&(r.docString=t.docString),t.externalData&&t.externalData.length)for(r.externalData=[],n=0;n>>3){case 1:n.begin=t.int64();break;case 2:n.end=t.int64();break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.begin&&t.hasOwnProperty("begin")&&!(l.isInteger(t.begin)||t.begin&&l.isInteger(t.begin.low)&&l.isInteger(t.begin.high))?"begin: integer|Long expected":null!=t.end&&t.hasOwnProperty("end")&&!(l.isInteger(t.end)||t.end&&l.isInteger(t.end.low)&&l.isInteger(t.end.high))?"end: integer|Long expected":null},t.fromObject=function(t){if(t instanceof c.onnx.TensorProto.Segment)return t;var e=new c.onnx.TensorProto.Segment;return null!=t.begin&&(l.Long?(e.begin=l.Long.fromValue(t.begin)).unsigned=!1:"string"==typeof t.begin?e.begin=parseInt(t.begin,10):"number"==typeof t.begin?e.begin=t.begin:"object"==typeof t.begin&&(e.begin=new l.LongBits(t.begin.low>>>0,t.begin.high>>>0).toNumber())),null!=t.end&&(l.Long?(e.end=l.Long.fromValue(t.end)).unsigned=!1:"string"==typeof t.end?e.end=parseInt(t.end,10):"number"==typeof t.end?e.end=t.end:"object"==typeof t.end&&(e.end=new l.LongBits(t.end.low>>>0,t.end.high>>>0).toNumber())),e},t.toObject=function(t,e){e||(e={});var r={};if(e.defaults){if(l.Long){var n=new l.Long(0,0,!1);r.begin=e.longs===String?n.toString():e.longs===Number?n.toNumber():n}else r.begin=e.longs===String?"0":0;l.Long?(n=new l.Long(0,0,!1),r.end=e.longs===String?n.toString():e.longs===Number?n.toNumber():n):r.end=e.longs===String?"0":0}return null!=t.begin&&t.hasOwnProperty("begin")&&("number"==typeof t.begin?r.begin=e.longs===String?String(t.begin):t.begin:r.begin=e.longs===String?l.Long.prototype.toString.call(t.begin):e.longs===Number?new l.LongBits(t.begin.low>>>0,t.begin.high>>>0).toNumber():t.begin),null!=t.end&&t.hasOwnProperty("end")&&("number"==typeof t.end?r.end=e.longs===String?String(t.end):t.end:r.end=e.longs===String?l.Long.prototype.toString.call(t.end):e.longs===Number?new l.LongBits(t.end.low>>>0,t.end.high>>>0).toNumber():t.end),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t}(),t.DataLocation=function(){var t={},e=Object.create(t);return e[t[0]="DEFAULT"]=0,e[t[1]="EXTERNAL"]=1,e}(),t}(),o.TensorShapeProto=function(){function t(t){if(this.dim=[],t)for(var e=Object.keys(t),r=0;r>>3==1?(n.dim&&n.dim.length||(n.dim=[]),n.dim.push(c.onnx.TensorShapeProto.Dimension.decode(t,t.uint32()))):t.skipType(7&i)}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.dim&&t.hasOwnProperty("dim")){if(!Array.isArray(t.dim))return"dim: array expected";for(var e=0;e>>3){case 1:n.dimValue=t.int64();break;case 2:n.dimParam=t.string();break;case 3:n.denotation=t.string();break;default:t.skipType(7&i)}}return n},e.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},e.verify=function(t){if("object"!=typeof t||null===t)return"object expected";var e={};if(null!=t.dimValue&&t.hasOwnProperty("dimValue")&&(e.value=1,!(l.isInteger(t.dimValue)||t.dimValue&&l.isInteger(t.dimValue.low)&&l.isInteger(t.dimValue.high))))return"dimValue: integer|Long expected";if(null!=t.dimParam&&t.hasOwnProperty("dimParam")){if(1===e.value)return"value: multiple values";if(e.value=1,!l.isString(t.dimParam))return"dimParam: string expected"}return null!=t.denotation&&t.hasOwnProperty("denotation")&&!l.isString(t.denotation)?"denotation: string expected":null},e.fromObject=function(t){if(t instanceof c.onnx.TensorShapeProto.Dimension)return t;var e=new c.onnx.TensorShapeProto.Dimension;return null!=t.dimValue&&(l.Long?(e.dimValue=l.Long.fromValue(t.dimValue)).unsigned=!1:"string"==typeof t.dimValue?e.dimValue=parseInt(t.dimValue,10):"number"==typeof t.dimValue?e.dimValue=t.dimValue:"object"==typeof t.dimValue&&(e.dimValue=new l.LongBits(t.dimValue.low>>>0,t.dimValue.high>>>0).toNumber())),null!=t.dimParam&&(e.dimParam=String(t.dimParam)),null!=t.denotation&&(e.denotation=String(t.denotation)),e},e.toObject=function(t,e){e||(e={});var r={};return e.defaults&&(r.denotation=""),null!=t.dimValue&&t.hasOwnProperty("dimValue")&&("number"==typeof t.dimValue?r.dimValue=e.longs===String?String(t.dimValue):t.dimValue:r.dimValue=e.longs===String?l.Long.prototype.toString.call(t.dimValue):e.longs===Number?new l.LongBits(t.dimValue.low>>>0,t.dimValue.high>>>0).toNumber():t.dimValue,e.oneofs&&(r.value="dimValue")),null!=t.dimParam&&t.hasOwnProperty("dimParam")&&(r.dimParam=t.dimParam,e.oneofs&&(r.value="dimParam")),null!=t.denotation&&t.hasOwnProperty("denotation")&&(r.denotation=t.denotation),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},e}(),t}(),o.TypeProto=function(){var t;function e(t){if(t)for(var e=Object.keys(t),r=0;r>>3){case 1:n.tensorType=c.onnx.TypeProto.Tensor.decode(t,t.uint32());break;case 6:n.denotation=t.string();break;default:t.skipType(7&i)}}return n},e.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},e.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.tensorType&&t.hasOwnProperty("tensorType")){var e=c.onnx.TypeProto.Tensor.verify(t.tensorType);if(e)return"tensorType."+e}return null!=t.denotation&&t.hasOwnProperty("denotation")&&!l.isString(t.denotation)?"denotation: string expected":null},e.fromObject=function(t){if(t instanceof c.onnx.TypeProto)return t;var e=new c.onnx.TypeProto;if(null!=t.tensorType){if("object"!=typeof t.tensorType)throw TypeError(".onnx.TypeProto.tensorType: object expected");e.tensorType=c.onnx.TypeProto.Tensor.fromObject(t.tensorType)}return null!=t.denotation&&(e.denotation=String(t.denotation)),e},e.toObject=function(t,e){e||(e={});var r={};return e.defaults&&(r.denotation=""),null!=t.tensorType&&t.hasOwnProperty("tensorType")&&(r.tensorType=c.onnx.TypeProto.Tensor.toObject(t.tensorType,e),e.oneofs&&(r.value="tensorType")),null!=t.denotation&&t.hasOwnProperty("denotation")&&(r.denotation=t.denotation),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},e.Tensor=function(){function t(t){if(t)for(var e=Object.keys(t),r=0;r>>3){case 1:n.elemType=t.int32();break;case 2:n.shape=c.onnx.TensorShapeProto.decode(t,t.uint32());break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.elemType&&t.hasOwnProperty("elemType")&&!l.isInteger(t.elemType))return"elemType: integer expected";if(null!=t.shape&&t.hasOwnProperty("shape")){var e=c.onnx.TensorShapeProto.verify(t.shape);if(e)return"shape."+e}return null},t.fromObject=function(t){if(t instanceof c.onnx.TypeProto.Tensor)return t;var e=new c.onnx.TypeProto.Tensor;if(null!=t.elemType&&(e.elemType=0|t.elemType),null!=t.shape){if("object"!=typeof t.shape)throw TypeError(".onnx.TypeProto.Tensor.shape: object expected");e.shape=c.onnx.TensorShapeProto.fromObject(t.shape)}return e},t.toObject=function(t,e){e||(e={});var r={};return e.defaults&&(r.elemType=0,r.shape=null),null!=t.elemType&&t.hasOwnProperty("elemType")&&(r.elemType=t.elemType),null!=t.shape&&t.hasOwnProperty("shape")&&(r.shape=c.onnx.TensorShapeProto.toObject(t.shape,e)),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t}(),e}(),o.OperatorSetIdProto=function(){function t(t){if(t)for(var e=Object.keys(t),r=0;r>>3){case 1:n.domain=t.string();break;case 2:n.version=t.int64();break;default:t.skipType(7&i)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.domain&&t.hasOwnProperty("domain")&&!l.isString(t.domain)?"domain: string expected":null!=t.version&&t.hasOwnProperty("version")&&!(l.isInteger(t.version)||t.version&&l.isInteger(t.version.low)&&l.isInteger(t.version.high))?"version: integer|Long expected":null},t.fromObject=function(t){if(t instanceof c.onnx.OperatorSetIdProto)return t;var e=new c.onnx.OperatorSetIdProto;return null!=t.domain&&(e.domain=String(t.domain)),null!=t.version&&(l.Long?(e.version=l.Long.fromValue(t.version)).unsigned=!1:"string"==typeof t.version?e.version=parseInt(t.version,10):"number"==typeof t.version?e.version=t.version:"object"==typeof t.version&&(e.version=new l.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber())),e},t.toObject=function(t,e){e||(e={});var r={};if(e.defaults){if(r.domain="",l.Long){var n=new l.Long(0,0,!1);r.version=e.longs===String?n.toString():e.longs===Number?n.toNumber():n}else r.version=e.longs===String?"0":0}return null!=t.domain&&t.hasOwnProperty("domain")&&(r.domain=t.domain),null!=t.version&&t.hasOwnProperty("version")&&("number"==typeof t.version?r.version=e.longs===String?String(t.version):t.version:r.version=e.longs===String?l.Long.prototype.toString.call(t.version):e.longs===Number?new l.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber():t.version),r},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t}(),o),t.exports=c},2100:(t,e,r)=>{"use strict";t.exports=r(9482)},9482:(t,e,r)=>{"use strict";var n=e;function i(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=r(1173),n.BufferWriter=r(3155),n.Reader=r(1408),n.BufferReader=r(593),n.util=r(9693),n.rpc=r(5994),n.roots=r(5054),n.configure=i,i()},1408:(t,e,r)=>{"use strict";t.exports=u;var n,i=r(9693),o=i.LongBits,a=i.utf8;function s(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function u(t){this.buf=t,this.pos=0,this.len=t.length}var l,c="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new u(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new u(t);throw Error("illegal buffer")},p=function(){return i.Buffer?function(t){return(u.create=function(t){return i.Buffer.isBuffer(t)?new n(t):c(t)})(t)}:c};function f(){var t=new o(0,0),e=0;if(!(this.len-this.pos>4)){for(;e<3;++e){if(this.pos>=this.len)throw s(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*e)>>>0,t}for(;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;if(e=0,this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw s(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function d(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw s(this,8);return new o(d(this.buf,this.pos+=4),d(this.buf,this.pos+=4))}u.create=p(),u.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,u.prototype.uint32=(l=4294967295,function(){if(l=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(l=(l|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(l=(l|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(l=(l|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(l=(l|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return l;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return l}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return d(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|d(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var t=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},u.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var t=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},u.prototype.bytes=function(){var t=this.uint32(),e=this.pos,r=this.pos+t;if(r>this.len)throw s(this,t);return this.pos+=t,Array.isArray(this.buf)?this.buf.slice(e,r):e===r?new this.buf.constructor(0):this._slice.call(this.buf,e,r)},u.prototype.string=function(){var t=this.bytes();return a.read(t,0,t.length)},u.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw s(this,t);this.pos+=t}else do if(this.pos>=this.len)throw s(this);while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},u._configure=function(t){n=t,u.create=p(),n._configure();var e=i.Long?"toLong":"toNumber";i.merge(u.prototype,{int64:function(){return f.call(this)[e](!1)},uint64:function(){return f.call(this)[e](!0)},sint64:function(){return f.call(this).zzDecode()[e](!1)},fixed64:function(){return h.call(this)[e](!0)},sfixed64:function(){return h.call(this)[e](!1)}})}},593:(t,e,r)=>{"use strict";t.exports=o;var n=r(1408);(o.prototype=Object.create(n.prototype)).constructor=o;var i=r(9693);function o(t){n.call(this,t)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},o._configure()},5054:t=>{"use strict";t.exports={}},5994:(t,e,r)=>{"use strict";e.Service=r(7948)},7948:(t,e,r)=>{"use strict";t.exports=i;var n=r(9693);function i(t,e,r){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!e,this.responseDelimited=!!r}(i.prototype=Object.create(n.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function t(e,r,i,o,a){if(!o)throw TypeError("request must be specified");var s=this;if(!a)return n.asPromise(t,s,e,r,i,o);if(s.rpcImpl)try{return s.rpcImpl(e,r[s.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(t,r){if(t)return s.emit("error",t,e),a(t);if(null!==r){if(!(r instanceof i))try{r=i[s.responseDelimited?"decodeDelimited":"decode"](r)}catch(t){return s.emit("error",t,e),a(t)}return s.emit("data",r,e),a(null,r)}s.end(!0)})}catch(t){return s.emit("error",t,e),void setTimeout(function(){a(t)},0)}else setTimeout(function(){a(Error("already ended"))},0)},i.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},1945:(t,e,r)=>{"use strict";t.exports=i;var n=r(9693);function i(t,e){this.lo=t>>>0,this.hi=e>>>0}var o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var a=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(t){if(0===t)return o;var e=t<0;e&&(t=-t);var r=t>>>0,n=(t-r)/4294967296>>>0;return e&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new i(r,n)},i.from=function(t){if("number"==typeof t)return i.fromNumber(t);if(n.isString(t)){if(!n.Long)return i.fromNumber(parseInt(t,10));t=n.Long.fromString(t)}return t.low||t.high?new i(t.low>>>0,t.high>>>0):o},i.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=1+~this.lo>>>0,r=~this.hi>>>0;return e||(r=r+1>>>0),-(e+4294967296*r)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(t){return n.Long?new n.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var s=String.prototype.charCodeAt;i.fromHash=function(t){return t===a?o:new i((s.call(t,0)|s.call(t,1)<<8|s.call(t,2)<<16|s.call(t,3)<<24)>>>0,(s.call(t,4)|s.call(t,5)<<8|s.call(t,6)<<16|s.call(t,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},i.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},i.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===e?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:r<128?9:10}},9693:function(t,e,r){"use strict";var n=e;function i(t,e,r){for(var n=Object.keys(e),i=0;i0)},n.Buffer=function(){try{var t=n.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(t){return"number"==typeof t?n.Buffer?n._Buffer_allocUnsafe(t):new n.Array(t):n.Buffer?n._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(t){return t?n.LongBits.from(t).toHash():n.LongBits.zeroHash},n.longFromHash=function(t,e){var r=n.LongBits.fromHash(t);return n.Long?n.Long.fromBits(r.lo,r.hi,e):r.toNumber(!!e)},n.merge=i,n.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},n.newError=o,n.ProtocolError=o("ProtocolError"),n.oneOfGetter=function(t){for(var e={},r=0;r-1;--r)if(1===e[t[r]]&&void 0!==this[t[r]]&&null!==this[t[r]])return t[r]}},n.oneOfSetter=function(t){return function(e){for(var r=0;r{"use strict";t.exports=p;var n,i=r(9693),o=i.LongBits,a=i.base64,s=i.utf8;function u(t,e,r){this.fn=t,this.len=e,this.next=void 0,this.val=r}function l(){}function c(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function p(){this.len=0,this.head=new u(l,0,0),this.tail=this.head,this.states=null}var f=function(){return i.Buffer?function(){return(p.create=function(){return new n})()}:function(){return new p}};function d(t,e,r){e[r]=255&t}function h(t,e){this.len=t,this.next=void 0,this.val=e}function g(t,e,r){for(;t.hi;)e[r++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[r++]=127&t.lo|128,t.lo=t.lo>>>7;e[r++]=t.lo}function b(t,e,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}p.create=f(),p.alloc=function(t){return new i.Array(t)},i.Array!==Array&&(p.alloc=i.pool(p.alloc,i.Array.prototype.subarray)),p.prototype._push=function(t,e,r){return this.tail=this.tail.next=new u(t,e,r),this.len+=e,this},h.prototype=Object.create(u.prototype),h.prototype.fn=function(t,e,r){for(;t>127;)e[r++]=127&t|128,t>>>=7;e[r]=t},p.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new h((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this},p.prototype.int32=function(t){return t<0?this._push(g,10,o.fromNumber(t)):this.uint32(t)},p.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},p.prototype.uint64=function(t){var e=o.from(t);return this._push(g,e.length(),e)},p.prototype.int64=p.prototype.uint64,p.prototype.sint64=function(t){var e=o.from(t).zzEncode();return this._push(g,e.length(),e)},p.prototype.bool=function(t){return this._push(d,1,t?1:0)},p.prototype.fixed32=function(t){return this._push(b,4,t>>>0)},p.prototype.sfixed32=p.prototype.fixed32,p.prototype.fixed64=function(t){var e=o.from(t);return this._push(b,4,e.lo)._push(b,4,e.hi)},p.prototype.sfixed64=p.prototype.fixed64,p.prototype.float=function(t){return this._push(i.float.writeFloatLE,4,t)},p.prototype.double=function(t){return this._push(i.float.writeDoubleLE,8,t)};var m=i.Array.prototype.set?function(t,e,r){e.set(t,r)}:function(t,e,r){for(var n=0;n>>0;if(!e)return this._push(d,1,0);if(i.isString(t)){var r=p.alloc(e=a.length(t));a.decode(t,r,0),t=r}return this.uint32(e)._push(m,e,t)},p.prototype.string=function(t){var e=s.length(t);return e?this.uint32(e)._push(s.write,e,t):this._push(d,1,0)},p.prototype.fork=function(){return this.states=new c(this),this.head=this.tail=new u(l,0,0),this.len=0,this},p.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(l,0,0),this.len=0),this},p.prototype.ldelim=function(){var t=this.head,e=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=t.next,this.tail=e,this.len+=r),this},p.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),r=0;t;)t.fn(t.val,e,r),r+=t.len,t=t.next;return e},p._configure=function(t){n=t,p.create=f(),n._configure()}},3155:(t,e,r)=>{"use strict";t.exports=o;var n=r(1173);(o.prototype=Object.create(n.prototype)).constructor=o;var i=r(9693);function o(){n.call(this)}function a(t,e,r){t.length<40?i.utf8.write(t,e,r):e.utf8Write?e.utf8Write(t,r):e.write(t,r)}o._configure=function(){o.alloc=i._Buffer_allocUnsafe,o.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(t,e,r){e.set(t,r)}:function(t,e,r){if(t.copy)t.copy(e,r,0,t.length);else for(var n=0;n>>0;return this.uint32(e),e&&this._push(o.writeBytesBuffer,e,t),this},o.prototype.string=function(t){var e=i.Buffer.byteLength(t);return this.uint32(e),e&&this._push(a,e,t),this},o._configure()},7714:(t,e,r)=>{"use strict";e.R=void 0;let n=r(6919),i=r(7448);e.R=new class{async init(){}async createSessionHandler(t,e){let r=new n.Session(e);return await r.loadModel(t),new i.OnnxjsSessionHandler(r)}}},4200:(t,e,r)=>{"use strict";e.c8=e.rX=void 0;let n=r(1670),i=r(5381),o=r(2157),a=r(2306);e.rX=()=>{if(("number"!=typeof n.env.wasm.initTimeout||n.env.wasm.initTimeout<0)&&(n.env.wasm.initTimeout=0),"boolean"!=typeof n.env.wasm.simd&&(n.env.wasm.simd=!0),"boolean"!=typeof n.env.wasm.proxy&&(n.env.wasm.proxy=!1),"number"!=typeof n.env.wasm.numThreads||!Number.isInteger(n.env.wasm.numThreads)||n.env.wasm.numThreads<=0){let t="undefined"==typeof navigator?(0,i.cpus)().length:navigator.hardwareConcurrency;n.env.wasm.numThreads=Math.min(4,Math.ceil((t||1)/2))}},e.c8=new class{async init(){(0,e.rX)(),await (0,o.initWasm)()}async createSessionHandler(t,e){let r=new a.OnnxruntimeWebAssemblySessionHandler;return await r.loadModel(t,e),Promise.resolve(r)}}},6018:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(1670),e);let o=r(1670);{let t=r(7714).R;(0,o.registerBackend)("webgl",t,-10)}{let t=r(4200).c8;(0,o.registerBackend)("cpu",t,10),(0,o.registerBackend)("wasm",t,10),(0,o.registerBackend)("xnnpack",t,9)}},246:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createAttributeWithCacheKey=void 0;class r{constructor(t){Object.assign(this,t)}get cacheKey(){return this._cacheKey||(this._cacheKey=Object.getOwnPropertyNames(this).sort().map(t=>`${this[t]}`).join(";")),this._cacheKey}}e.createAttributeWithCacheKey=t=>new r(t)},7778:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Attribute=void 0;let n=r(1446),i=r(9395),o=r(9162),a=r(2517);var s=i.onnxruntime.experimental.fbs;class u{constructor(t){if(this._attributes=new Map,null!=t){for(let e of t)e instanceof n.onnx.AttributeProto?this._attributes.set(e.name,[u.getValue(e),u.getType(e)]):e instanceof s.Attribute&&this._attributes.set(e.name(),[u.getValue(e),u.getType(e)]);if(this._attributes.sizeo.Tensor.fromProto(t));if(t instanceof s.Attribute)return r.map(t=>o.Tensor.fromOrtTensor(t))}if(e===n.onnx.AttributeProto.AttributeType.STRING&&t instanceof n.onnx.AttributeProto){let t=r;return(0,a.decodeUtf8String)(t)}return e===n.onnx.AttributeProto.AttributeType.STRINGS&&t instanceof n.onnx.AttributeProto?r.map(a.decodeUtf8String):r}static getValueNoCheck(t){return t instanceof n.onnx.AttributeProto?this.getValueNoCheckFromOnnxFormat(t):this.getValueNoCheckFromOrtFormat(t)}static getValueNoCheckFromOnnxFormat(t){switch(t.type){case n.onnx.AttributeProto.AttributeType.FLOAT:return t.f;case n.onnx.AttributeProto.AttributeType.INT:return t.i;case n.onnx.AttributeProto.AttributeType.STRING:return t.s;case n.onnx.AttributeProto.AttributeType.TENSOR:return t.t;case n.onnx.AttributeProto.AttributeType.GRAPH:return t.g;case n.onnx.AttributeProto.AttributeType.FLOATS:return t.floats;case n.onnx.AttributeProto.AttributeType.INTS:return t.ints;case n.onnx.AttributeProto.AttributeType.STRINGS:return t.strings;case n.onnx.AttributeProto.AttributeType.TENSORS:return t.tensors;case n.onnx.AttributeProto.AttributeType.GRAPHS:return t.graphs;default:throw Error(`unsupported attribute type: ${n.onnx.AttributeProto.AttributeType[t.type]}`)}}static getValueNoCheckFromOrtFormat(t){switch(t.type()){case s.AttributeType.FLOAT:return t.f();case s.AttributeType.INT:return t.i();case s.AttributeType.STRING:return t.s();case s.AttributeType.TENSOR:return t.t();case s.AttributeType.GRAPH:return t.g();case s.AttributeType.FLOATS:return t.floatsArray();case s.AttributeType.INTS:{let e=[];for(let r=0;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolveBackend=e.backend=void 0;let n=r(5038),i=new Map;async function o(t){let r=e.backend;if(void 0!==r[t]&&function(t){let e=t;return"initialize"in e&&"function"==typeof e.initialize&&"createSessionHandler"in e&&"function"==typeof e.createSessionHandler&&"dispose"in e&&"function"==typeof e.dispose}(r[t])){let e=r[t],n=e.initialize();if("object"==typeof n&&"then"in n&&(n=await n),n)return i.set(t,e),e}}e.backend={webgl:new n.WebGLBackend},e.resolveBackend=async function t(e){if(!e)return t(["webgl"]);for(let t of"string"==typeof e?[e]:e){let e=i.get(t);if(e)return e;let r=await o(t);if(r)return r}throw Error("no available backend to use")}},5038:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebGLBackend=void 0;let n=r(1670),i=r(6231),o=r(6416),a=r(7305);e.WebGLBackend=class{get contextId(){return n.env.webgl.contextId}set contextId(t){n.env.webgl.contextId=t}get matmulMaxBatchSize(){return n.env.webgl.matmulMaxBatchSize}set matmulMaxBatchSize(t){n.env.webgl.matmulMaxBatchSize=t}get textureCacheMode(){return n.env.webgl.textureCacheMode}set textureCacheMode(t){n.env.webgl.textureCacheMode=t}get pack(){return n.env.webgl.pack}set pack(t){n.env.webgl.pack=t}get async(){return n.env.webgl.async}set async(t){n.env.webgl.async=t}initialize(){try{return this.glContext=(0,a.createWebGLContext)(this.contextId),"number"!=typeof this.matmulMaxBatchSize&&(this.matmulMaxBatchSize=16),"string"!=typeof this.textureCacheMode&&(this.textureCacheMode="full"),"boolean"!=typeof this.pack&&(this.pack=!1),"boolean"!=typeof this.async&&(this.async=!1),i.Logger.setWithEnv(n.env),i.Logger.verbose("WebGLBackend",`Created WebGLContext: ${typeof this.glContext} with matmulMaxBatchSize: ${this.matmulMaxBatchSize}; textureCacheMode: ${this.textureCacheMode}; pack: ${this.pack}; async: ${this.async}.`),!0}catch(t){return i.Logger.warning("WebGLBackend",`Unable to initialize WebGLBackend. ${t}`),!1}}createSessionHandler(t){return new o.WebGLSessionHandler(this,t)}dispose(){this.glContext.dispose()}}},5107:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CoordsGlslLib=void 0;let n=r(2517),i=r(8520),o=r(5060),a=r(7859),s=r(9390);class u extends i.GlslLib{constructor(t){super(t)}getFunctions(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.offsetToCoords()),this.coordsToOffset()),this.toVec()),this.valueFrom()),this.getCommonUtilFuncs()),this.getInputsSamplingSnippets()),this.getOutputSamplingSnippet())}getCustomTypes(){return{}}offsetToCoords(){return{offsetToCoords:new i.GlslLibRoutine("\n vec2 offsetToCoords(int offset, int width, int height) {\n int t = offset / width;\n int s = offset - t*width;\n vec2 coords = (vec2(s,t) + vec2(0.5,0.5)) / vec2(width, height);\n return coords;\n }\n ")}}coordsToOffset(){return{coordsToOffset:new i.GlslLibRoutine("\n int coordsToOffset(vec2 coords, int width, int height) {\n float s = coords.s * float(width);\n float t = coords.t * float(height);\n int offset = int(t) * width + int(s);\n return offset;\n }\n ")}}getOutputSamplingSnippet(){let t=this.context.outputTextureLayout;return t.isPacked?this.getPackedOutputSamplingSnippet(t):this.getUnpackedOutputSamplingSnippet(t)}getPackedOutputSamplingSnippet(t){let e=t.unpackedShape,r=[t.width,t.height],n={},a="getOutputCoords";switch(e.length){case 0:n[a]=this.getOutputScalarCoords();break;case 1:n[a]=this.getOutputPacked1DCoords(e,r);break;case 2:n[a]=this.getOutputPacked2DCoords(e,r);break;case 3:n[a]=this.getOutputPacked3DCoords(e,r);break;default:n[a]=this.getOutputPackedNDCoords(e,r)}let s=` void setOutput(vec4 val) { ${(0,o.getGlsl)(this.context.glContext.version).output} = val; } diff --git a/_next/static/chunks/590caa2a-69a13df2d4716a9e.js b/_next/static/chunks/590caa2a-59a62e414f0cb318.js similarity index 60% rename from _next/static/chunks/590caa2a-69a13df2d4716a9e.js rename to _next/static/chunks/590caa2a-59a62e414f0cb318.js index 70666bedea2cc36c6aec346a0053428e517137a8..a13ff9c4af59d285b02440bccd8e2156cefdf76d 100644 --- a/_next/static/chunks/590caa2a-69a13df2d4716a9e.js +++ b/_next/static/chunks/590caa2a-59a62e414f0cb318.js @@ -1,7 +1,7 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{2018:function(e,t,s){s.d(t,{t2:function(){return e9}});var n=s(761),i=s(911),r=s(8709),o=s(2414),a=s(5878),l=s(4087);async function c(e,t){let s=await Promise.all([(0,i.yM)(e,"tokenizer.json",!0,t),(0,i.yM)(e,"tokenizer_config.json",!0,t)]);return null!==t.legacy&&(s[1].legacy=t.legacy),s}function h(e,t=!0){if(void 0!==e.Regex){let t=e.Regex.replace(/\\([#&~])/g,"$1");for(let[e,s]of g)t=t.replaceAll(e,s);return RegExp(t,"gu")}if(void 0===e.String)return console.warn("Unknown pattern type:",e),null;{let s=(0,n.hr)(e.String);return RegExp(t?s:`(${s})`,"gu")}}function u(e){return new Map(Object.entries(e))}function d(e){let t=e.dims;switch(t.length){case 1:return e.tolist();case 2:if(1!==t[0])throw Error("Unable to decode tensor with `batch size !== 1`. Use `tokenizer.batch_decode(...)` for batched inputs.");return e.tolist()[0];default:throw Error(`Expected tensor to have 1-2 dimensions, got ${t.length}.`)}}function _(e){return e.replace(/ \./g,".").replace(/ \?/g,"?").replace(/ \!/g,"!").replace(/ ,/g,",").replace(/ \' /g,"'").replace(/ n\'t/g,"n't").replace(/ \'m/g,"'m").replace(/ \'s/g,"'s").replace(/ \'ve/g,"'ve").replace(/ \'re/g,"'re")}function p(e){return e.replace(/[\u0300-\u036f]/g,"")}let f="\\p{P}\\u0021-\\u002F\\u003A-\\u0040\\u005B-\\u0060\\u007B-\\u007E",g=new Map([["(?i:'s|'t|'re|'ve|'m|'ll|'d)","(?:'([sS]|[tT]|[rR][eE]|[vV][eE]|[mM]|[lL][lL]|[dD]))"]]);class m{constructor(e){this.content=e.content,this.id=e.id,this.single_word=e.single_word??!1,this.lstrip=e.lstrip??!1,this.rstrip=e.rstrip??!1,this.special=e.special??!1,this.normalized=e.normalized??null}}class k extends n.Ag{constructor(e){super(),this.config=e,this.vocab=[],this.tokens_to_ids=new Map,this.unk_token_id=void 0,this.unk_token=void 0,this.end_of_word_suffix=void 0,this.fuse_unk=this.config.fuse_unk??!1}static fromConfig(e,...t){switch(e.type){case"WordPiece":return new x(e);case"Unigram":return new w(e,...t);case"BPE":return new v(e);default:if(e.vocab)return new z(e,...t);throw Error(`Unknown TokenizerModel type: ${e.type}`)}}_call(e){let t=this.encode(e);return this.fuse_unk&&(t=function(e,t,s){let n=[],i=0;for(;ithis.tokens_to_ids.get(e)??this.unk_token_id)}convert_ids_to_tokens(e){return e.map(e=>this.vocab[e]??this.unk_token)}}class x extends k{constructor(e){for(let[t,s]of(super(e),this.tokens_to_ids=u(e.vocab),this.unk_token_id=this.tokens_to_ids.get(e.unk_token),this.unk_token=e.unk_token,this.max_input_chars_per_word=e.max_input_chars_per_word??100,this.vocab=Array(this.tokens_to_ids.size),this.tokens_to_ids))this.vocab[s]=t}encode(e){let t=[];for(let s of e){let e=[...s];if(e.length>this.max_input_chars_per_word){t.push(this.unk_token);continue}let n=!1,i=0,r=[];for(;i0&&(n=this.config.continuing_subword_prefix+n),this.tokens_to_ids.has(n)){s=n;break}--t}if(null===s){n=!0;break}r.push(s),i=t}n?t.push(this.unk_token):t.push(...r)}return t}}class w extends k{constructor(e,t){super(e);let s=e.vocab.length;this.vocab=Array(s),this.scores=Array(s);for(let t=0;t[e,t])),this.bosToken=" ",this.bosTokenId=this.tokens_to_ids.get(this.bosToken),this.eosToken=t.eos_token,this.eosTokenId=this.tokens_to_ids.get(this.eosToken),this.unkToken=this.vocab[this.unk_token_id],this.minScore=(0,r.VV)(this.scores)[0],this.unkScore=this.minScore-10,this.scores[this.unk_token_id]=this.unkScore,this.trie=new a.GA,this.trie.extend(this.vocab),this.fuse_unk=!0}populateNodes(e){let t=e.sentence,s=t.length,n=0;for(;n{let e=[...Array.from({length:94},(e,t)=>t+33),...Array.from({length:12},(e,t)=>t+161),...Array.from({length:82},(e,t)=>t+174)],t=e.slice(),s=0;for(let n=0;n<256;++n)e.includes(n)||(e.push(n),t.push(256+s),s+=1);let n=t.map(e=>String.fromCharCode(e));return Object.fromEntries(e.map((e,t)=>[e,n[t]]))})(),b=(0,n.$2)(y);class v extends k{constructor(e){for(let[t,s]of(super(e),this.BPE_SPLIT_TOKEN=" ",this.tokens_to_ids=u(e.vocab),this.unk_token_id=this.tokens_to_ids.get(e.unk_token),this.unk_token=e.unk_token,this.vocab=Array(this.tokens_to_ids.size),this.tokens_to_ids))this.vocab[s]=t;this.bpe_ranks=new Map(e.merges.map((e,t)=>[e,t])),this.merges=e.merges.map(e=>e.split(this.BPE_SPLIT_TOKEN)),this.end_of_word_suffix=e.end_of_word_suffix,this.continuing_subword_suffix=e.continuing_subword_suffix??null,this.byte_fallback=this.config.byte_fallback??!1,this.byte_fallback&&(this.text_encoder=new TextEncoder),this.ignore_merges=this.config.ignore_merges??!1,this.cache=new Map}bpe(e){if(0===e.length)return[];let t=this.cache.get(e);if(void 0!==t)return t;let s=Array.from(e);this.end_of_word_suffix&&(s[s.length-1]+=this.end_of_word_suffix);let n=[];if(s.length>1){let e=new a.Z3((e,t)=>e.score`<0x${e.toString(16).toUpperCase().padStart(2,"0")}>`)):t.push(this.unk_token)}return t}}class z extends k{constructor(e,t){for(let[s,n]of(super(e),this.tokens_to_ids=u(t.target_lang?e.vocab[t.target_lang]:e.vocab),this.bos_token=t.bos_token,this.bos_token_id=this.tokens_to_ids.get(this.bos_token),this.eos_token=t.eos_token,this.eos_token_id=this.tokens_to_ids.get(this.eos_token),this.pad_token=t.pad_token,this.pad_token_id=this.tokens_to_ids.get(this.pad_token),this.unk_token=t.unk_token,this.unk_token_id=this.tokens_to_ids.get(this.unk_token),this.vocab=Array(this.tokens_to_ids.size),this.tokens_to_ids))this.vocab[n]=s}encode(e){return e}}class A extends n.Ag{constructor(e){super(),this.config=e}static fromConfig(e){if(null===e)return null;switch(e.type){case"BertNormalizer":return new N(e);case"Precompiled":return new eo(e);case"Sequence":return new R(e);case"Replace":return new S(e);case"NFC":return new E(e);case"NFKC":return new T(e);case"NFKD":return new C(e);case"Strip":return new j(e);case"StripAccents":return new M(e);case"Lowercase":return new P(e);case"Prepend":return new $(e);default:throw Error(`Unknown Normalizer type: ${e.type}`)}}normalize(e){throw Error("normalize should be implemented in subclass.")}_call(e){return this.normalize(e)}}class S extends A{normalize(e){let t=h(this.config.pattern);return null===t?e:e.replaceAll(t,this.config.content)}}class E extends A{normalize(e){return e=e.normalize("NFC")}}class T extends A{normalize(e){return e=e.normalize("NFKC")}}class C extends A{normalize(e){return e=e.normalize("NFKD")}}class j extends A{normalize(e){return this.config.strip_left&&this.config.strip_right?e=e.trim():(this.config.strip_left&&(e=e.trimStart()),this.config.strip_right&&(e=e.trimEnd())),e}}class M extends A{normalize(e){return e=p(e)}}class P extends A{normalize(e){return e=e.toLowerCase()}}class $ extends A{normalize(e){return e=this.config.prepend+e}}class R extends A{constructor(e){super(e),this.normalizers=e.normalizers.map(e=>A.fromConfig(e))}normalize(e){return this.normalizers.reduce((e,t)=>t.normalize(e),e)}}class N extends A{_tokenize_chinese_chars(e){let t=[];for(let s=0;s=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=63744&&e<=64255||e>=194560&&e<=195103}stripAccents(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}_is_control(e){switch(e){case" ":case"\n":case"\r":return!1;default:return/^\p{Cc}|\p{Cf}|\p{Co}|\p{Cs}$/u.test(e)}}_clean_text(e){let t=[];for(let s of e){let e=s.charCodeAt(0);0===e||65533===e||this._is_control(s)||(/^\s$/.test(s)?t.push(" "):t.push(s))}return t.join("")}normalize(e){return this.config.clean_text&&(e=this._clean_text(e)),this.config.handle_chinese_chars&&(e=this._tokenize_chinese_chars(e)),this.config.lowercase?(e=e.toLowerCase(),!1!==this.config.strip_accents&&(e=this.stripAccents(e))):this.config.strip_accents&&(e=this.stripAccents(e)),e}}class F extends n.Ag{static fromConfig(e){if(null===e)return null;switch(e.type){case"BertPreTokenizer":return new L(e);case"Sequence":return new ea(e);case"Whitespace":return new el(e);case"WhitespaceSplit":return new ec(e);case"Metaspace":return new ei(e);case"ByteLevel":return new O(e);case"Split":return new U(e);case"Punctuation":return new W(e);case"Digits":return new G(e);case"Replace":return new eh(e);default:throw Error(`Unknown PreTokenizer type: ${e.type}`)}}pre_tokenize_text(e,t){throw Error("pre_tokenize_text should be implemented in subclass.")}pre_tokenize(e,t){return(Array.isArray(e)?e.map(e=>this.pre_tokenize_text(e,t)):this.pre_tokenize_text(e,t)).flat()}_call(e,t){return this.pre_tokenize(e,t)}}class L extends F{constructor(e){super(),this.pattern=RegExp(`[^\\s${f}]+|[${f}]`,"gu")}pre_tokenize_text(e,t){return e.trim().match(this.pattern)||[]}}class O extends F{constructor(e){super(),this.config=e,this.add_prefix_space=this.config.add_prefix_space,this.trim_offsets=this.config.trim_offsets,this.use_regex=this.config.use_regex??!0,this.pattern=/'s|'t|'re|'ve|'m|'ll|'d| ?\p{L}+| ?\p{N}+| ?[^\s\p{L}\p{N}]+|\s+(?!\S)|\s+/gu,this.byte_encoder=y,this.text_encoder=new TextEncoder}pre_tokenize_text(e,t){return this.add_prefix_space&&!e.startsWith(" ")&&(e=" "+e),(this.use_regex?e.match(this.pattern)||[]:[e]).map(e=>Array.from(this.text_encoder.encode(e),e=>this.byte_encoder[e]).join(""))}}class U extends F{constructor(e){super(),this.config=e,this.pattern=h(this.config.pattern,this.config.invert)}pre_tokenize_text(e,t){return null===this.pattern?[]:this.config.invert?e.match(this.pattern)||[]:function(e,t){let s=[],n=0;for(let i of e.matchAll(t)){let t=i[0];n0&&s.push(t),n=i.index+t.length}return ne.replaceAll(t,this.config.content))}}class V extends K{constructor(e){super(e),this.text_decoder=new TextDecoder}decode_chain(e){let t=[],s=[];for(let n of e){let e=null;if(6===n.length&&n.startsWith("<0x")&&n.endsWith(">")){let t=parseInt(n.slice(3,5),16);isNaN(t)||(e=t)}if(null!==e)s.push(e);else{if(s.length>0){let e=this.text_decoder.decode(Uint8Array.from(s));t.push(e),s=[]}t.push(n)}}if(s.length>0){let e=this.text_decoder.decode(Uint8Array.from(s));t.push(e),s=[]}return t}}class H extends K{decode_chain(e){return[e.join("")]}}class J extends K{constructor(e){super(e),this.content=this.config.content,this.start=this.config.start,this.stop=this.config.stop}decode_chain(e){return e.map(e=>{let t=0;for(let s=0;s(0!==t&&(e=e.startsWith(this.config.prefix)?e.replace(this.config.prefix,""):" "+e),this.cleanup&&(e=_(e)),e))}}class X extends K{constructor(e){super(e),this.byte_decoder=b,this.text_decoder=new TextDecoder("utf-8",{fatal:!1,ignoreBOM:!0}),this.end_of_word_suffix=null}convert_tokens_to_string(e){let t=new Uint8Array([...e.join("")].map(e=>this.byte_decoder[e]));return this.text_decoder.decode(t)}decode_chain(e){let t=[],s=[];for(let n of e)void 0!==this.added_tokens.find(e=>e.content===n)?(s.length>0&&(t.push(this.convert_tokens_to_string(s)),s=[]),t.push(n)):s.push(n);return s.length>0&&t.push(this.convert_tokens_to_string(s)),t}}class ee extends K{constructor(e){super(e),this.pad_token=this.config.pad_token,this.word_delimiter_token=this.config.word_delimiter_token,this.cleanup=this.config.cleanup}convert_tokens_to_string(e){if(0===e.length)return"";let t=[e[0]];for(let s=1;se!==this.pad_token).join("");return this.cleanup&&(s=_(s).replaceAll(this.word_delimiter_token," ").trim()),s}decode_chain(e){return[this.convert_tokens_to_string(e)]}}class et extends K{constructor(e){super(e),this.decoders=e.decoders.map(e=>K.fromConfig(e))}decode_chain(e){return this.decoders.reduce((e,t)=>t.decode_chain(e),e)}}class es extends K{constructor(e){super(e),this.suffix=this.config.suffix}decode_chain(e){return e.map((t,s)=>t.replaceAll(this.suffix,s===e.length-1?"":" "))}}class en extends K{decode_chain(e){let t="";for(let s=1;se.normalize("NFKC")).join("~"):e.normalize("NFKC")}}class ea extends F{constructor(e){super(),this.tokenizers=e.pretokenizers.map(e=>F.fromConfig(e))}pre_tokenize_text(e,t){return this.tokenizers.reduce((e,s)=>s.pre_tokenize(e,t),[e])}}class el extends F{constructor(e){super()}pre_tokenize_text(e,t){return e.match(/\w+|[^\w\s]+/g)||[]}}class ec extends F{constructor(e){super()}pre_tokenize_text(e,t){return e.match(/\S+/g)||[]}}class eh extends F{constructor(e){super(),this.config=e,this.pattern=h(this.config.pattern),this.content=this.config.content}pre_tokenize_text(e,t){return null===this.pattern?[e]:[e.replaceAll(this.pattern,this.config.content)]}}let eu=["bos_token","eos_token","unk_token","sep_token","pad_token","cls_token","mask_token"];class ed extends n.Ag{return_token_type_ids=!1;_default_chat_template=`{% for message in messages %}{{'<|im_start|>' + message['role'] + ' +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{2018:function(e,t,s){s.d(t,{t2:function(){return e4}});var n=s(761),i=s(911),r=s(8709),o=s(2414),a=s(5878),l=s(4087);async function c(e,t){let s=await Promise.all([(0,i.yM)(e,"tokenizer.json",!0,t),(0,i.yM)(e,"tokenizer_config.json",!0,t)]);return null!==t.legacy&&(s[1].legacy=t.legacy),s}function h(e,t=!0){if(void 0!==e.Regex){let t=e.Regex.replace(/\\([#&~])/g,"$1");for(let[e,s]of g)t=t.replaceAll(e,s);return RegExp(t,"gu")}if(void 0===e.String)return console.warn("Unknown pattern type:",e),null;{let s=(0,n.hr)(e.String);return RegExp(t?s:`(${s})`,"gu")}}function u(e){return new Map(Object.entries(e))}function d(e){let t=e.dims;switch(t.length){case 1:return e.tolist();case 2:if(1!==t[0])throw Error("Unable to decode tensor with `batch size !== 1`. Use `tokenizer.batch_decode(...)` for batched inputs.");return e.tolist()[0];default:throw Error(`Expected tensor to have 1-2 dimensions, got ${t.length}.`)}}function _(e){return e.replace(/ \./g,".").replace(/ \?/g,"?").replace(/ \!/g,"!").replace(/ ,/g,",").replace(/ \' /g,"'").replace(/ n\'t/g,"n't").replace(/ \'m/g,"'m").replace(/ \'s/g,"'s").replace(/ \'ve/g,"'ve").replace(/ \'re/g,"'re")}function p(e){return e.replace(/[\u0300-\u036f]/g,"")}let f="\\p{P}\\u0021-\\u002F\\u003A-\\u0040\\u005B-\\u0060\\u007B-\\u007E",g=new Map([["(?i:'s|'t|'re|'ve|'m|'ll|'d)","(?:'([sS]|[tT]|[rR][eE]|[vV][eE]|[mM]|[lL][lL]|[dD]))"]]);class m{constructor(e){this.content=e.content,this.id=e.id,this.single_word=e.single_word??!1,this.lstrip=e.lstrip??!1,this.rstrip=e.rstrip??!1,this.special=e.special??!1,this.normalized=e.normalized??null}}class k extends n.Ag{constructor(e){super(),this.config=e,this.vocab=[],this.tokens_to_ids=new Map,this.unk_token_id=void 0,this.unk_token=void 0,this.end_of_word_suffix=void 0,this.fuse_unk=this.config.fuse_unk??!1}static fromConfig(e,...t){switch(e.type){case"WordPiece":return new x(e);case"Unigram":return new w(e,...t);case"BPE":return new v(e);default:if(e.vocab)return new z(e,...t);throw Error(`Unknown TokenizerModel type: ${e.type}`)}}_call(e){let t=this.encode(e);return this.fuse_unk&&(t=function(e,t,s){let n=[],i=0;for(;ithis.tokens_to_ids.get(e)??this.unk_token_id)}convert_ids_to_tokens(e){return e.map(e=>this.vocab[e]??this.unk_token)}}class x extends k{constructor(e){for(let[t,s]of(super(e),this.tokens_to_ids=u(e.vocab),this.unk_token_id=this.tokens_to_ids.get(e.unk_token),this.unk_token=e.unk_token,this.max_input_chars_per_word=e.max_input_chars_per_word??100,this.vocab=Array(this.tokens_to_ids.size),this.tokens_to_ids))this.vocab[s]=t}encode(e){let t=[];for(let s of e){let e=[...s];if(e.length>this.max_input_chars_per_word){t.push(this.unk_token);continue}let n=!1,i=0,r=[];for(;i0&&(n=this.config.continuing_subword_prefix+n),this.tokens_to_ids.has(n)){s=n;break}--t}if(null===s){n=!0;break}r.push(s),i=t}n?t.push(this.unk_token):t.push(...r)}return t}}class w extends k{constructor(e,t){super(e);let s=e.vocab.length;this.vocab=Array(s),this.scores=Array(s);for(let t=0;t[e,t])),this.bosToken=" ",this.bosTokenId=this.tokens_to_ids.get(this.bosToken),this.eosToken=t.eos_token,this.eosTokenId=this.tokens_to_ids.get(this.eosToken),this.unkToken=this.vocab[this.unk_token_id],this.minScore=(0,r.VV)(this.scores)[0],this.unkScore=this.minScore-10,this.scores[this.unk_token_id]=this.unkScore,this.trie=new a.GA,this.trie.extend(this.vocab),this.fuse_unk=!0}populateNodes(e){let t=e.sentence,s=t.length,n=0;for(;n{let e=[...Array.from({length:94},(e,t)=>t+33),...Array.from({length:12},(e,t)=>t+161),...Array.from({length:82},(e,t)=>t+174)],t=e.slice(),s=0;for(let n=0;n<256;++n)e.includes(n)||(e.push(n),t.push(256+s),s+=1);let n=t.map(e=>String.fromCharCode(e));return Object.fromEntries(e.map((e,t)=>[e,n[t]]))})(),b=(0,n.$2)(y);class v extends k{constructor(e){for(let[t,s]of(super(e),this.BPE_SPLIT_TOKEN=" ",this.tokens_to_ids=u(e.vocab),this.unk_token_id=this.tokens_to_ids.get(e.unk_token),this.unk_token=e.unk_token,this.vocab=Array(this.tokens_to_ids.size),this.tokens_to_ids))this.vocab[s]=t;this.bpe_ranks=new Map(e.merges.map((e,t)=>[e,t])),this.merges=e.merges.map(e=>e.split(this.BPE_SPLIT_TOKEN)),this.end_of_word_suffix=e.end_of_word_suffix,this.continuing_subword_suffix=e.continuing_subword_suffix??null,this.byte_fallback=this.config.byte_fallback??!1,this.byte_fallback&&(this.text_encoder=new TextEncoder),this.ignore_merges=this.config.ignore_merges??!1,this.cache=new Map}bpe(e){if(0===e.length)return[];let t=this.cache.get(e);if(void 0!==t)return t;let s=Array.from(e);this.end_of_word_suffix&&(s[s.length-1]+=this.end_of_word_suffix);let n=[];if(s.length>1){let e=new a.Z3((e,t)=>e.score`<0x${e.toString(16).toUpperCase().padStart(2,"0")}>`)):t.push(this.unk_token)}return t}}class z extends k{constructor(e,t){for(let[s,n]of(super(e),this.tokens_to_ids=u(t.target_lang?e.vocab[t.target_lang]:e.vocab),this.bos_token=t.bos_token,this.bos_token_id=this.tokens_to_ids.get(this.bos_token),this.eos_token=t.eos_token,this.eos_token_id=this.tokens_to_ids.get(this.eos_token),this.pad_token=t.pad_token,this.pad_token_id=this.tokens_to_ids.get(this.pad_token),this.unk_token=t.unk_token,this.unk_token_id=this.tokens_to_ids.get(this.unk_token),this.vocab=Array(this.tokens_to_ids.size),this.tokens_to_ids))this.vocab[n]=s}encode(e){return e}}class A extends n.Ag{constructor(e){super(),this.config=e}static fromConfig(e){if(null===e)return null;switch(e.type){case"BertNormalizer":return new N(e);case"Precompiled":return new ea(e);case"Sequence":return new R(e);case"Replace":return new S(e);case"NFC":return new E(e);case"NFKC":return new T(e);case"NFKD":return new C(e);case"Strip":return new j(e);case"StripAccents":return new M(e);case"Lowercase":return new P(e);case"Prepend":return new $(e);default:throw Error(`Unknown Normalizer type: ${e.type}`)}}normalize(e){throw Error("normalize should be implemented in subclass.")}_call(e){return this.normalize(e)}}class S extends A{normalize(e){let t=h(this.config.pattern);return null===t?e:e.replaceAll(t,this.config.content)}}class E extends A{normalize(e){return e=e.normalize("NFC")}}class T extends A{normalize(e){return e=e.normalize("NFKC")}}class C extends A{normalize(e){return e=e.normalize("NFKD")}}class j extends A{normalize(e){return this.config.strip_left&&this.config.strip_right?e=e.trim():(this.config.strip_left&&(e=e.trimStart()),this.config.strip_right&&(e=e.trimEnd())),e}}class M extends A{normalize(e){return e=p(e)}}class P extends A{normalize(e){return e=e.toLowerCase()}}class $ extends A{normalize(e){return e=this.config.prepend+e}}class R extends A{constructor(e){super(e),this.normalizers=e.normalizers.map(e=>A.fromConfig(e))}normalize(e){return this.normalizers.reduce((e,t)=>t.normalize(e),e)}}class N extends A{_tokenize_chinese_chars(e){let t=[];for(let s=0;s=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=63744&&e<=64255||e>=194560&&e<=195103}stripAccents(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}_is_control(e){switch(e){case" ":case"\n":case"\r":return!1;default:return/^\p{Cc}|\p{Cf}|\p{Co}|\p{Cs}$/u.test(e)}}_clean_text(e){let t=[];for(let s of e){let e=s.charCodeAt(0);0===e||65533===e||this._is_control(s)||(/^\s$/.test(s)?t.push(" "):t.push(s))}return t.join("")}normalize(e){return this.config.clean_text&&(e=this._clean_text(e)),this.config.handle_chinese_chars&&(e=this._tokenize_chinese_chars(e)),this.config.lowercase?(e=e.toLowerCase(),!1!==this.config.strip_accents&&(e=this.stripAccents(e))):this.config.strip_accents&&(e=this.stripAccents(e)),e}}class F extends n.Ag{static fromConfig(e){if(null===e)return null;switch(e.type){case"BertPreTokenizer":return new L(e);case"Sequence":return new el(e);case"Whitespace":return new ec(e);case"WhitespaceSplit":return new eh(e);case"Metaspace":return new er(e);case"ByteLevel":return new O(e);case"Split":return new U(e);case"Punctuation":return new W(e);case"Digits":return new G(e);case"Replace":return new eu(e);default:throw Error(`Unknown PreTokenizer type: ${e.type}`)}}pre_tokenize_text(e,t){throw Error("pre_tokenize_text should be implemented in subclass.")}pre_tokenize(e,t){return(Array.isArray(e)?e.map(e=>this.pre_tokenize_text(e,t)):this.pre_tokenize_text(e,t)).flat()}_call(e,t){return this.pre_tokenize(e,t)}}class L extends F{constructor(e){super(),this.pattern=RegExp(`[^\\s${f}]+|[${f}]`,"gu")}pre_tokenize_text(e,t){return e.trim().match(this.pattern)||[]}}class O extends F{constructor(e){super(),this.config=e,this.add_prefix_space=this.config.add_prefix_space,this.trim_offsets=this.config.trim_offsets,this.use_regex=this.config.use_regex??!0,this.pattern=/'s|'t|'re|'ve|'m|'ll|'d| ?\p{L}+| ?\p{N}+| ?[^\s\p{L}\p{N}]+|\s+(?!\S)|\s+/gu,this.byte_encoder=y,this.text_encoder=new TextEncoder}pre_tokenize_text(e,t){return this.add_prefix_space&&!e.startsWith(" ")&&(e=" "+e),(this.use_regex?e.match(this.pattern)||[]:[e]).map(e=>Array.from(this.text_encoder.encode(e),e=>this.byte_encoder[e]).join(""))}}class U extends F{constructor(e){super(),this.config=e,this.pattern=h(this.config.pattern,this.config.invert)}pre_tokenize_text(e,t){return null===this.pattern?[]:this.config.invert?e.match(this.pattern)||[]:function(e,t){let s=[],n=0;for(let i of e.matchAll(t)){let t=i[0];n0&&s.push(t),n=i.index+t.length}return nI.fromConfig(e))}post_process(e,t=null,s={}){let n;for(let i of this.processors)if(i instanceof Y)e=i.post_process(e).tokens,t&&(t=i.post_process(t).tokens);else{let r=i.post_process(e,t,s);e=r.tokens,n=r.token_type_ids}return{tokens:e,token_type_ids:n}}}class Z extends n.Ag{constructor(e){super(),this.config=e,this.added_tokens=[],this.end_of_word_suffix=null,this.trim_offsets=e.trim_offsets}static fromConfig(e){if(null===e)return null;switch(e.type){case"WordPiece":return new X(e);case"Metaspace":return new eo(e);case"ByteLevel":return new ee(e);case"Replace":return new V(e);case"ByteFallback":return new H(e);case"Fuse":return new J(e);case"Strip":return new Q(e);case"Sequence":return new es(e);case"CTC":return new et(e);case"BPEDecoder":return new en(e);default:throw Error(`Unknown Decoder type: ${e.type}`)}}_call(e){return this.decode(e)}decode(e){return this.decode_chain(e).join("")}decode_chain(e){throw Error("`decode_chain` should be implemented in subclass.")}}class V extends Z{decode_chain(e){let t=h(this.config.pattern);return null===t?e:e.map(e=>e.replaceAll(t,this.config.content))}}class H extends Z{constructor(e){super(e),this.text_decoder=new TextDecoder}decode_chain(e){let t=[],s=[];for(let n of e){let e=null;if(6===n.length&&n.startsWith("<0x")&&n.endsWith(">")){let t=parseInt(n.slice(3,5),16);isNaN(t)||(e=t)}if(null!==e)s.push(e);else{if(s.length>0){let e=this.text_decoder.decode(Uint8Array.from(s));t.push(e),s=[]}t.push(n)}}if(s.length>0){let e=this.text_decoder.decode(Uint8Array.from(s));t.push(e),s=[]}return t}}class J extends Z{decode_chain(e){return[e.join("")]}}class Q extends Z{constructor(e){super(e),this.content=this.config.content,this.start=this.config.start,this.stop=this.config.stop}decode_chain(e){return e.map(e=>{let t=0;for(let s=0;s(0!==t&&(e=e.startsWith(this.config.prefix)?e.replace(this.config.prefix,""):" "+e),this.cleanup&&(e=_(e)),e))}}class ee extends Z{constructor(e){super(e),this.byte_decoder=b,this.text_decoder=new TextDecoder("utf-8",{fatal:!1,ignoreBOM:!0}),this.end_of_word_suffix=null}convert_tokens_to_string(e){let t=new Uint8Array([...e.join("")].map(e=>this.byte_decoder[e]));return this.text_decoder.decode(t)}decode_chain(e){let t=[],s=[];for(let n of e)void 0!==this.added_tokens.find(e=>e.content===n)?(s.length>0&&(t.push(this.convert_tokens_to_string(s)),s=[]),t.push(n)):s.push(n);return s.length>0&&t.push(this.convert_tokens_to_string(s)),t}}class et extends Z{constructor(e){super(e),this.pad_token=this.config.pad_token,this.word_delimiter_token=this.config.word_delimiter_token,this.cleanup=this.config.cleanup}convert_tokens_to_string(e){if(0===e.length)return"";let t=[e[0]];for(let s=1;se!==this.pad_token).join("");return this.cleanup&&(s=_(s).replaceAll(this.word_delimiter_token," ").trim()),s}decode_chain(e){return[this.convert_tokens_to_string(e)]}}class es extends Z{constructor(e){super(e),this.decoders=e.decoders.map(e=>Z.fromConfig(e))}decode_chain(e){return this.decoders.reduce((e,t)=>t.decode_chain(e),e)}}class en extends Z{constructor(e){super(e),this.suffix=this.config.suffix}decode_chain(e){return e.map((t,s)=>t.replaceAll(this.suffix,s===e.length-1?"":" "))}}class ei extends Z{decode_chain(e){let t="";for(let s=1;se.normalize("NFKC")).join("~"):e.normalize("NFKC")}}class el extends F{constructor(e){super(),this.tokenizers=e.pretokenizers.map(e=>F.fromConfig(e))}pre_tokenize_text(e,t){return this.tokenizers.reduce((e,s)=>s.pre_tokenize(e,t),[e])}}class ec extends F{constructor(e){super()}pre_tokenize_text(e,t){return e.match(/\w+|[^\w\s]+/g)||[]}}class eh extends F{constructor(e){super()}pre_tokenize_text(e,t){return e.match(/\S+/g)||[]}}class eu extends F{constructor(e){super(),this.config=e,this.pattern=h(this.config.pattern),this.content=this.config.content}pre_tokenize_text(e,t){return null===this.pattern?[e]:[e.replaceAll(this.pattern,this.config.content)]}}let ed=["bos_token","eos_token","unk_token","sep_token","pad_token","cls_token","mask_token"];class e_ extends n.Ag{return_token_type_ids=!1;_default_chat_template=`{% for message in messages %}{{'<|im_start|>' + message['role'] + ' ' + message['content'] + '<|im_end|>' + ' '}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant -' }}{% endif %}`;constructor(e,t){for(let s of(super(),this._tokenizer_config=t,this.normalizer=A.fromConfig(e.normalizer),this.pre_tokenizer=F.fromConfig(e.pre_tokenizer),this.model=k.fromConfig(e.model,t),this.post_processor=I.fromConfig(e.post_processor),this.decoder=K.fromConfig(e.decoder),this.special_tokens=[],this.all_special_ids=[],this.added_tokens=[],e.added_tokens)){let e=new m(s);this.added_tokens.push(e),this.model.tokens_to_ids.set(e.content,e.id),this.model.vocab[e.id]=e.content,e.special&&(this.special_tokens.push(e.content),this.all_special_ids.push(e.id))}if(this.additional_special_tokens=t.additional_special_tokens??[],this.special_tokens.push(...this.additional_special_tokens),this.special_tokens=[...new Set(this.special_tokens)],this.decoder&&(this.decoder.added_tokens=this.added_tokens,this.decoder.end_of_word_suffix=this.model.end_of_word_suffix),this.added_tokens_regex=this.added_tokens.length>0?new RegExp(this.added_tokens.map(e=>`${e.lstrip?"\\s*":""}(${(0,n.hr)(e.content)})${e.rstrip?"\\s*":""}`).join("|")):null,this.mask_token=this.getToken("mask_token"),this.mask_token_id=this.model.tokens_to_ids.get(this.mask_token),this.pad_token=this.getToken("pad_token","eos_token"),this.pad_token_id=this.model.tokens_to_ids.get(this.pad_token),this.sep_token=this.getToken("sep_token"),this.sep_token_id=this.model.tokens_to_ids.get(this.sep_token),this.unk_token=this.getToken("unk_token"),this.unk_token_id=this.model.tokens_to_ids.get(this.unk_token),this.model_max_length=t.model_max_length,this.remove_space=t.remove_space,this.clean_up_tokenization_spaces=t.clean_up_tokenization_spaces??!0,this.do_lowercase_and_remove_accent=t.do_lowercase_and_remove_accent??!1,this.padding_side="right",this.legacy=!1,this.chat_template=t.chat_template??null,Array.isArray(this.chat_template)){let e=Object.create(null);for(let{name:t,template:s}of this.chat_template){if("string"!=typeof t||"string"!=typeof s)throw Error('Chat template must be a list of objects with "name" and "template" properties');e[t]=s}this.chat_template=e}this._compiled_template_cache=new Map}getToken(...e){for(let t of e){let e=this._tokenizer_config[t];if(e){if("object"!=typeof e)return e;if("AddedToken"===e.__type)return e.content;throw Error(`Unknown token: ${e}`)}}return null}static async from_pretrained(e,{progress_callback:t=null,config:s=null,cache_dir:n=null,local_files_only:i=!1,revision:r="main",legacy:o=null}={}){return new this(...await c(e,{progress_callback:t,config:s,cache_dir:n,local_files_only:i,revision:r,legacy:o}))}_call(e,{text_pair:t=null,add_special_tokens:s=!0,padding:i=!1,truncation:a=null,max_length:l=null,return_tensor:c=!0}={}){let h;let u=Array.isArray(e);if(u){if(0===e.length)throw Error("text array must be non-empty");if(null!==t){if(Array.isArray(t)){if(e.length!==t.length)throw Error("text and text_pair must have the same length")}else throw Error("text_pair must also be an array");h=e.map((e,n)=>this._encode_plus(e,t[n],{add_special_tokens:s}))}else h=e.map(e=>this._encode_plus(e,null,{add_special_tokens:s}))}else{if(null==e)throw Error("text may not be null or undefined");if(Array.isArray(t))throw Error("When specifying `text_pair`, since `text` is a string, `text_pair` must also be a string (i.e., not an array).");h=[this._encode_plus(e,t,{add_special_tokens:s})]}if(null===l?l="max_length"===i?this.model_max_length:(0,r.Fp)(h.map(e=>e.input_ids.length))[0]:a||console.warn("Truncation was not explicitly activated but `max_length` is provided a specific value, please use `truncation=true` to explicitly truncate examples to max length."),l=Math.min(l,this.model_max_length),i||a)for(let e=0;el?a&&function(e,t){for(let s of Object.keys(e))e[s].length=t}(h[e],l):i&&function(e,t,s,i){for(let r of Object.keys(e)){let o=t-e[r].length,a=s(r),l=Array(o).fill(a);e[r]="right"===i?(0,n.eG)(e[r],l):(0,n.eG)(l,e[r])}}(h[e],l,e=>"input_ids"===e?this.pad_token_id:0,this.padding_side));let d={};if(c){if(!(i&&a)&&h.some(e=>{for(let t of Object.keys(e))if(e[t].length!==h[0][t]?.length)return!0;return!1}))throw Error("Unable to create tensor, you should probably activate truncation and/or padding with 'padding=true' and 'truncation=true' to have batched tensors with the same length.");let e=[h.length,h[0].input_ids.length];for(let t of Object.keys(h[0]))d[t]=new o.es("int64",BigInt64Array.from(h.flatMap(e=>e[t]).map(BigInt)),e)}else{for(let e of Object.keys(h[0]))d[e]=h.map(t=>t[e]);if(!u)for(let e of Object.keys(d))d[e]=d[e][0]}return d}_encode_text(e){return null===e?null:(this.added_tokens_regex?e.split(this.added_tokens_regex).filter(e=>e):[e]).map((e,t)=>{if(void 0!==this.added_tokens.find(t=>t.content===e))return e;{if(!0===this.remove_space&&(e=e.trim().split(/\s+/).join(" ")),this.do_lowercase_and_remove_accent&&(e=p(e.toLowerCase())),null!==this.normalizer&&(e=this.normalizer(e)),0===e.length)return[];let s=null!==this.pre_tokenizer?this.pre_tokenizer(e,{section_index:t}):[e];return this.model(s)}}).flat()}_encode_plus(e,t=null,{add_special_tokens:s=!0}={}){let i=this._encode_text(e),r=this._encode_text(t),o=this.post_processor?this.post_processor(i,r,{add_special_tokens:s}):{tokens:(0,n.eG)(i??[],r??[])},a=this.model.convert_tokens_to_ids(o.tokens),l={input_ids:a,attention_mask:Array(a.length).fill(1)};return this.return_token_type_ids&&o.token_type_ids&&(l.token_type_ids=o.token_type_ids),l}encode(e,t=null,{add_special_tokens:s=!0}={}){let{input_ids:n}=this._encode_plus(e,t,{add_special_tokens:s});return n}batch_decode(e,t={}){return e instanceof o.es&&(e=e.tolist()),e.map(e=>this.decode(e,t))}decode(e,t={}){if(e instanceof o.es&&(e=d(e)),!Array.isArray(e)||0===e.length||!(0,n.Wy)(e[0]))throw Error("token_ids must be a non-empty array of integers.");return this.decode_single(e,t)}decode_single(e,{skip_special_tokens:t=!1,clean_up_tokenization_spaces:s=null}){let n=this.model.convert_ids_to_tokens(e);t&&(n=n.filter(e=>!this.special_tokens.includes(e)));let i=this.decoder?this.decoder(n):n.join(" ");return this.decoder&&this.decoder.end_of_word_suffix&&(i=i.replaceAll(this.decoder.end_of_word_suffix," "),t&&(i=i.trim())),(s??this.clean_up_tokenization_spaces)&&(i=_(i)),i}get default_chat_template(){return this._warned_about_chat_template||(console.warn("No chat template is defined for this tokenizer - using a default chat template that implements the ChatML format. If the default is not appropriate for your model, please set `tokenizer.chat_template` to an appropriate template. See https://huggingface.co/docs/transformers/main/chat_templating for more information."),this._warned_about_chat_template=!0),this._default_chat_template}apply_chat_template(e,{chat_template:t=null,add_generation_prompt:s=!1,tokenize:n=!0,padding:i=!1,truncation:r=!1,max_length:o=null,return_tensor:a=!0,tokenizer_kwargs:c={},...h}={}){if(this.chat_template&&"object"==typeof this.chat_template||null===this.chat_template&&this.default_chat_template&&"object"==typeof this.default_chat_template){let e=this.chat_template??this.default_chat_template;if(null!==t&&Object.hasOwn(e,t))t=e[t];else if(null===t&&"default"in e)t=e.default;else if(null===t)throw Error(`This model has multiple chat templates with no default specified! Please either pass a chat template or the name of the template you wish to use to the 'chat_template' argument. Available template names are ${Object.keys(e).sort()}.`)}else t??=this.chat_template??this.default_chat_template;if("string"!=typeof t)throw Error(`chat_template must be a string, but got ${typeof t}`);let u=this._compiled_template_cache.get(t);void 0===u&&(u=new l.YS(t),this._compiled_template_cache.set(t,u));let d=Object.create(null);for(let e of eu){let t=this.getToken(e);t&&(d[e]=t)}let _=u.render({messages:e,add_generation_prompt:s,...d,...h});return n?this._call(_,{add_special_tokens:!1,padding:i,truncation:r,max_length:o,return_tensor:a,...c}).input_ids:_}}class e_ extends ed{return_token_type_ids=!0}class ep extends ed{return_token_type_ids=!0}class ef extends ed{return_token_type_ids=!0}class eg extends ed{return_token_type_ids=!0}class em extends ed{return_token_type_ids=!0}class ek extends ed{return_token_type_ids=!0}class ex extends ed{return_token_type_ids=!0}class ew extends ed{return_token_type_ids=!0}class ey extends ed{return_token_type_ids=!0}class eb extends ed{}class ev extends ed{}class ez extends ed{return_token_type_ids=!0;constructor(e,t){super(e,t),console.warn('WARNING: `XLMTokenizer` is not yet supported by Hugging Face\'s "fast" tokenizers library. Therefore, you may experience slightly inaccurate results.')}}class eA extends ed{return_token_type_ids=!0}class eS extends ed{}class eE extends ed{_default_chat_template='{% for message in messages %}" "{{ message.content }}{{ eos_token }}" "{% endfor %}'}class eT extends ed{}class eC extends ed{constructor(e,t){super(e,t),this.languageRegex=/^[a-z]{2}_[A-Z]{2}$/,this.language_codes=this.special_tokens.filter(e=>this.languageRegex.test(e)),this.lang_to_token=e=>e}_build_translation_inputs(e,t,s){return eB(this,e,t,s)}}class ej extends eC{}class eM extends ed{}class eP extends eE{constructor(e,t){let s=".,!?…。,、।۔،",n=e.pre_tokenizer?.pretokenizers[0]?.pattern;n&&n.Regex===` ?[^(\\s|[${s}])]+`&&(n.Regex=` ?[^\\s${s}]+`),super(e,t)}}class e$ extends ed{_default_chat_template=`{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% elif USE_DEFAULT_PROMPT == true and not '<>' in messages[0]['content'] %}{% set loop_messages = messages %}{% set system_message = 'DEFAULT_SYSTEM_MESSAGE' %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<> +' }}{% endif %}`;constructor(e,t){for(let s of(super(),this._tokenizer_config=t,this.normalizer=A.fromConfig(e.normalizer),this.pre_tokenizer=F.fromConfig(e.pre_tokenizer),this.model=k.fromConfig(e.model,t),this.post_processor=I.fromConfig(e.post_processor),this.decoder=Z.fromConfig(e.decoder),this.special_tokens=[],this.all_special_ids=[],this.added_tokens=[],e.added_tokens)){let e=new m(s);this.added_tokens.push(e),this.model.tokens_to_ids.set(e.content,e.id),this.model.vocab[e.id]=e.content,e.special&&(this.special_tokens.push(e.content),this.all_special_ids.push(e.id))}if(this.additional_special_tokens=t.additional_special_tokens??[],this.special_tokens.push(...this.additional_special_tokens),this.special_tokens=[...new Set(this.special_tokens)],this.decoder&&(this.decoder.added_tokens=this.added_tokens,this.decoder.end_of_word_suffix=this.model.end_of_word_suffix),this.added_tokens_regex=this.added_tokens.length>0?new RegExp(this.added_tokens.map(e=>`${e.lstrip?"\\s*":""}(${(0,n.hr)(e.content)})${e.rstrip?"\\s*":""}`).join("|")):null,this.mask_token=this.getToken("mask_token"),this.mask_token_id=this.model.tokens_to_ids.get(this.mask_token),this.pad_token=this.getToken("pad_token","eos_token"),this.pad_token_id=this.model.tokens_to_ids.get(this.pad_token),this.sep_token=this.getToken("sep_token"),this.sep_token_id=this.model.tokens_to_ids.get(this.sep_token),this.unk_token=this.getToken("unk_token"),this.unk_token_id=this.model.tokens_to_ids.get(this.unk_token),this.model_max_length=t.model_max_length,this.remove_space=t.remove_space,this.clean_up_tokenization_spaces=t.clean_up_tokenization_spaces??!0,this.do_lowercase_and_remove_accent=t.do_lowercase_and_remove_accent??!1,this.padding_side="right",this.legacy=!1,this.chat_template=t.chat_template??null,Array.isArray(this.chat_template)){let e=Object.create(null);for(let{name:t,template:s}of this.chat_template){if("string"!=typeof t||"string"!=typeof s)throw Error('Chat template must be a list of objects with "name" and "template" properties');e[t]=s}this.chat_template=e}this._compiled_template_cache=new Map}getToken(...e){for(let t of e){let e=this._tokenizer_config[t];if(e){if("object"!=typeof e)return e;if("AddedToken"===e.__type)return e.content;throw Error(`Unknown token: ${e}`)}}return null}static async from_pretrained(e,{progress_callback:t=null,config:s=null,cache_dir:n=null,local_files_only:i=!1,revision:r="main",legacy:o=null}={}){return new this(...await c(e,{progress_callback:t,config:s,cache_dir:n,local_files_only:i,revision:r,legacy:o}))}_call(e,{text_pair:t=null,add_special_tokens:s=!0,padding:i=!1,truncation:a=null,max_length:l=null,return_tensor:c=!0,return_token_type_ids:h=null}={}){let u;let d=Array.isArray(e);if(d){if(0===e.length)throw Error("text array must be non-empty");if(null!==t){if(Array.isArray(t)){if(e.length!==t.length)throw Error("text and text_pair must have the same length")}else throw Error("text_pair must also be an array");u=e.map((e,n)=>this._encode_plus(e,t[n],{add_special_tokens:s,return_token_type_ids:h}))}else u=e.map(e=>this._encode_plus(e,null,{add_special_tokens:s,return_token_type_ids:h}))}else{if(null==e)throw Error("text may not be null or undefined");if(Array.isArray(t))throw Error("When specifying `text_pair`, since `text` is a string, `text_pair` must also be a string (i.e., not an array).");u=[this._encode_plus(e,t,{add_special_tokens:s,return_token_type_ids:h})]}if(null===l?l="max_length"===i?this.model_max_length:(0,r.Fp)(u.map(e=>e.input_ids.length))[0]:a||console.warn("Truncation was not explicitly activated but `max_length` is provided a specific value, please use `truncation=true` to explicitly truncate examples to max length."),l=Math.min(l,this.model_max_length),i||a)for(let e=0;el?a&&function(e,t){for(let s of Object.keys(e))e[s].length=t}(u[e],l):i&&function(e,t,s,i){for(let r of Object.keys(e)){let o=t-e[r].length,a=s(r),l=Array(o).fill(a);e[r]="right"===i?(0,n.eG)(e[r],l):(0,n.eG)(l,e[r])}}(u[e],l,e=>"input_ids"===e?this.pad_token_id:0,this.padding_side));let _={};if(c){if(!(i&&a)&&u.some(e=>{for(let t of Object.keys(e))if(e[t].length!==u[0][t]?.length)return!0;return!1}))throw Error("Unable to create tensor, you should probably activate truncation and/or padding with 'padding=true' and 'truncation=true' to have batched tensors with the same length.");let e=[u.length,u[0].input_ids.length];for(let t of Object.keys(u[0]))_[t]=new o.es("int64",BigInt64Array.from(u.flatMap(e=>e[t]).map(BigInt)),e)}else{for(let e of Object.keys(u[0]))_[e]=u.map(t=>t[e]);if(!d)for(let e of Object.keys(_))_[e]=_[e][0]}return _}_encode_text(e){return null===e?null:(this.added_tokens_regex?e.split(this.added_tokens_regex).filter(e=>e):[e]).map((e,t)=>{if(void 0!==this.added_tokens.find(t=>t.content===e))return e;{if(!0===this.remove_space&&(e=e.trim().split(/\s+/).join(" ")),this.do_lowercase_and_remove_accent&&(e=p(e.toLowerCase())),null!==this.normalizer&&(e=this.normalizer(e)),0===e.length)return[];let s=null!==this.pre_tokenizer?this.pre_tokenizer(e,{section_index:t}):[e];return this.model(s)}}).flat()}_encode_plus(e,t=null,{add_special_tokens:s=!0,return_token_type_ids:i=null}={}){let r=this._encode_text(e),o=this._encode_text(t),a=this.post_processor?this.post_processor(r,o,{add_special_tokens:s}):{tokens:(0,n.eG)(r??[],o??[])},l=this.model.convert_tokens_to_ids(a.tokens),c={input_ids:l,attention_mask:Array(l.length).fill(1)};return(i??this.return_token_type_ids)&&a.token_type_ids&&(c.token_type_ids=a.token_type_ids),c}encode(e,t=null,{add_special_tokens:s=!0,return_token_type_ids:n=null}={}){let{input_ids:i}=this._encode_plus(e,t,{add_special_tokens:s,return_token_type_ids:n});return i}batch_decode(e,t={}){return e instanceof o.es&&(e=e.tolist()),e.map(e=>this.decode(e,t))}decode(e,t={}){if(e instanceof o.es&&(e=d(e)),!Array.isArray(e)||0===e.length||!(0,n.Wy)(e[0]))throw Error("token_ids must be a non-empty array of integers.");return this.decode_single(e,t)}decode_single(e,{skip_special_tokens:t=!1,clean_up_tokenization_spaces:s=null}){let n=this.model.convert_ids_to_tokens(e);t&&(n=n.filter(e=>!this.special_tokens.includes(e)));let i=this.decoder?this.decoder(n):n.join(" ");return this.decoder&&this.decoder.end_of_word_suffix&&(i=i.replaceAll(this.decoder.end_of_word_suffix," "),t&&(i=i.trim())),(s??this.clean_up_tokenization_spaces)&&(i=_(i)),i}get default_chat_template(){return this._warned_about_chat_template||(console.warn("No chat template is defined for this tokenizer - using a default chat template that implements the ChatML format. If the default is not appropriate for your model, please set `tokenizer.chat_template` to an appropriate template. See https://huggingface.co/docs/transformers/main/chat_templating for more information."),this._warned_about_chat_template=!0),this._default_chat_template}apply_chat_template(e,{chat_template:t=null,add_generation_prompt:s=!1,tokenize:n=!0,padding:i=!1,truncation:r=!1,max_length:o=null,return_tensor:a=!0,tokenizer_kwargs:c={},...h}={}){if(this.chat_template&&"object"==typeof this.chat_template||null===this.chat_template&&this.default_chat_template&&"object"==typeof this.default_chat_template){let e=this.chat_template??this.default_chat_template;if(null!==t&&Object.hasOwn(e,t))t=e[t];else if(null===t&&"default"in e)t=e.default;else if(null===t)throw Error(`This model has multiple chat templates with no default specified! Please either pass a chat template or the name of the template you wish to use to the 'chat_template' argument. Available template names are ${Object.keys(e).sort()}.`)}else t??=this.chat_template??this.default_chat_template;if("string"!=typeof t)throw Error(`chat_template must be a string, but got ${typeof t}`);let u=this._compiled_template_cache.get(t);void 0===u&&(u=new l.YS(t),this._compiled_template_cache.set(t,u));let d=Object.create(null);for(let e of ed){let t=this.getToken(e);t&&(d[e]=t)}let _=u.render({messages:e,add_generation_prompt:s,...d,...h});return n?this._call(_,{add_special_tokens:!1,padding:i,truncation:r,max_length:o,return_tensor:a,...c}).input_ids:_}}class ep extends e_{return_token_type_ids=!0}class ef extends e_{return_token_type_ids=!0}class eg extends e_{return_token_type_ids=!0}class em extends e_{return_token_type_ids=!0}class ek extends e_{return_token_type_ids=!0}class ex extends e_{return_token_type_ids=!0}class ew extends e_{return_token_type_ids=!0}class ey extends e_{return_token_type_ids=!0}class eb extends e_{return_token_type_ids=!0}class ev extends e_{}class ez extends e_{}class eA extends e_{return_token_type_ids=!0;constructor(e,t){super(e,t),console.warn('WARNING: `XLMTokenizer` is not yet supported by Hugging Face\'s "fast" tokenizers library. Therefore, you may experience slightly inaccurate results.')}}class eS extends e_{return_token_type_ids=!0}class eE extends e_{}class eT extends e_{_default_chat_template='{% for message in messages %}" "{{ message.content }}{{ eos_token }}" "{% endfor %}'}class eC extends e_{}class ej extends e_{constructor(e,t){super(e,t),this.languageRegex=/^[a-z]{2}_[A-Z]{2}$/,this.language_codes=this.special_tokens.filter(e=>this.languageRegex.test(e)),this.lang_to_token=e=>e}_build_translation_inputs(e,t,s){return eD(this,e,t,s)}}class eM extends ej{}class eP extends e_{}class e$ extends eT{constructor(e,t){let s=".,!?…。,、।۔،",n=e.pre_tokenizer?.pretokenizers[0]?.pattern;n&&n.Regex===` ?[^(\\s|[${s}])]+`&&(n.Regex=` ?[^\\s${s}]+`),super(e,t)}}class eR extends e_{_default_chat_template=`{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% elif USE_DEFAULT_PROMPT == true and not '<>' in messages[0]['content'] %}{% set loop_messages = messages %}{% set system_message = 'DEFAULT_SYSTEM_MESSAGE' %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<> ' + system_message + ' <> @@ -9,4 +9,4 @@ ' + content.strip() + ' <> -' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content.strip() + ' ' + eos_token }}{% endif %}{% endfor %}`;DEFAULT_SYSTEM_PROMPT="You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.\n\nIf a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.";constructor(e,t){super(e,t),this.use_default_system_prompt=t.use_default_system_prompt??!1,this.legacy=t.legacy??!0,this.legacy||(this.normalizer=null,this.pre_tokenizer=new ei({replacement:"▁",add_prefix_space:!0,prepend_scheme:"first"}))}_encode_text(e){if(null===e)return null;if(this.legacy||0===e.length)return super._encode_text(e);let t=super._encode_text("▁"+e.replaceAll("▁"," "));return t.length>1&&"▁"===t[0]&&this.special_tokens.includes(t[1])&&(t=t.slice(1)),t}get default_chat_template(){return super.default_chat_template.replaceAll("USE_DEFAULT_PROMPT",this.use_default_system_prompt?"true":"false").replaceAll("DEFAULT_SYSTEM_MESSAGE",this.DEFAULT_SYSTEM_PROMPT.replaceAll("\n","\\n").replaceAll("'","\\'"))}}class eR extends e${}class eN extends ed{}class eF extends ed{}class eL extends ed{}class eO extends ed{}class eU extends ed{}class eW extends ed{}class eG extends ed{_default_chat_template="{% if messages[0]['role'] == 'system' %}{{ raise_exception('System role not supported') }}{% endif %}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '' + role + '\n' + message['content'] | trim + '\n' }}{% endfor %}{% if add_generation_prompt %}{{'model\n'}}{% endif %}"}class eI extends ed{}function eB(e,t,s,n){if(!("language_codes"in e)||!Array.isArray(e.language_codes))throw Error("Tokenizer must have `language_codes` attribute set and it should be an array of language ids.");if(!("languageRegex"in e)||!(e.languageRegex instanceof RegExp))throw Error("Tokenizer must have `languageRegex` attribute set and it should be a regular expression.");if(!("lang_to_token"in e)||"function"!=typeof e.lang_to_token)throw Error("Tokenizer must have `lang_to_token` attribute set and it should be a function.");let i=n.src_lang,r=n.tgt_lang;if(!e.language_codes.includes(r))throw Error(`Target language code "${r}" is not valid. Must be one of: {${e.language_codes.join(", ")}}`);if(void 0!==i){if(!e.language_codes.includes(i))throw Error(`Source language code "${i}" is not valid. Must be one of: {${e.language_codes.join(", ")}}`);for(let t of e.post_processor.config.single)if("SpecialToken"in t&&e.languageRegex.test(t.SpecialToken.id)){t.SpecialToken.id=e.lang_to_token(i);break}}return n.forced_bos_token_id=e.model.convert_tokens_to_ids([e.lang_to_token(r)])[0],e._call(t,s)}class eD extends ed{constructor(e,t){super(e,t),this.languageRegex=/^[a-z]{3}_[A-Z][a-z]{3}$/,this.language_codes=this.special_tokens.filter(e=>this.languageRegex.test(e)),this.lang_to_token=e=>e}_build_translation_inputs(e,t,s){return eB(this,e,t,s)}}class eq extends ed{constructor(e,t){super(e,t),this.languageRegex=/^__[a-z]{2,3}__$/,this.language_codes=this.special_tokens.filter(e=>this.languageRegex.test(e)).map(e=>e.slice(2,-2)),this.lang_to_token=e=>`__${e}__`}_build_translation_inputs(e,t,s){return eB(this,e,t,s)}}let eY=[["en","english"],["zh","chinese"],["de","german"],["es","spanish"],["ru","russian"],["ko","korean"],["fr","french"],["ja","japanese"],["pt","portuguese"],["tr","turkish"],["pl","polish"],["ca","catalan"],["nl","dutch"],["ar","arabic"],["sv","swedish"],["it","italian"],["id","indonesian"],["hi","hindi"],["fi","finnish"],["vi","vietnamese"],["he","hebrew"],["uk","ukrainian"],["el","greek"],["ms","malay"],["cs","czech"],["ro","romanian"],["da","danish"],["hu","hungarian"],["ta","tamil"],["no","norwegian"],["th","thai"],["ur","urdu"],["hr","croatian"],["bg","bulgarian"],["lt","lithuanian"],["la","latin"],["mi","maori"],["ml","malayalam"],["cy","welsh"],["sk","slovak"],["te","telugu"],["fa","persian"],["lv","latvian"],["bn","bengali"],["sr","serbian"],["az","azerbaijani"],["sl","slovenian"],["kn","kannada"],["et","estonian"],["mk","macedonian"],["br","breton"],["eu","basque"],["is","icelandic"],["hy","armenian"],["ne","nepali"],["mn","mongolian"],["bs","bosnian"],["kk","kazakh"],["sq","albanian"],["sw","swahili"],["gl","galician"],["mr","marathi"],["pa","punjabi"],["si","sinhala"],["km","khmer"],["sn","shona"],["yo","yoruba"],["so","somali"],["af","afrikaans"],["oc","occitan"],["ka","georgian"],["be","belarusian"],["tg","tajik"],["sd","sindhi"],["gu","gujarati"],["am","amharic"],["yi","yiddish"],["lo","lao"],["uz","uzbek"],["fo","faroese"],["ht","haitian creole"],["ps","pashto"],["tk","turkmen"],["nn","nynorsk"],["mt","maltese"],["sa","sanskrit"],["lb","luxembourgish"],["my","myanmar"],["bo","tibetan"],["tl","tagalog"],["mg","malagasy"],["as","assamese"],["tt","tatar"],["haw","hawaiian"],["ln","lingala"],["ha","hausa"],["ba","bashkir"],["jw","javanese"],["su","sundanese"]],eK=new Map(eY),eZ=new Map([...eY.map(([e,t])=>[t,e]),["burmese","my"],["valencian","ca"],["flemish","nl"],["haitian","ht"],["letzeburgesch","lb"],["pushto","ps"],["panjabi","pa"],["moldavian","ro"],["moldovan","ro"],["sinhalese","si"],["castilian","es"]]);class eV extends ed{_default_chat_template='{% for message in messages %}" "{{ message.content }}{{ eos_token }}" "{% endfor %}';_decode_asr(e,{return_timestamps:t=!1,return_language:s=!1,time_precision:n=null,force_full_sequences:i=!0}={}){if(null===n)throw Error("Must specify time_precision");let o=null,a="word"===t;function l(){return{language:o,timestamp:[null,null],text:""}}let c=[],h=l(),u=0,d=this.model.convert_tokens_to_ids(["<|notimestamps|>"])[0]+1,_=[],p=[],f=!1,g=null,m=new Set(this.all_special_ids);for(let s of e){let e=s.tokens,i=a?s.token_timestamps:null,k=null,x=d;if("stride"in s){let[t,i,r]=s.stride;if(u-=i,g=t-r,i&&(x=i/n+d),r)for(let t=e.length-1;t>=0;--t){let s=e[t];if(s>=d){if(null!==k&&(s-d)*n=d){let e=(g-d)*n+u,t=(0,r.NM)(e,2);if(null!==k&&g>=k)f=!0;else if(f||_.length>0&&g0?(_.push(w),a&&p.push(y)):_.every(e=>0===e.length)&&(h=l(),_=[],w=[],p=[],y=[])}if(_.length>0){if(i&&t)throw Error("Whisper did not predict an ending timestamp, which can happen if audio is cut off in the middle of a word. Also make sure WhisperTimeStampLogitsProcessor was used during generation.");let[e,s]=this.findLongestCommonSequence(_,p),n=this.decode(e);h.text=n,a&&(h.words=this.collateWordTimestamps(e,s,o)),c.push(h)}let k=Object.create(null),x=c.map(e=>e.text).join("");if(t||s){for(let e=0;e0,o=r?[]:null,a=r?t[0]:null;for(let l=1;le===_[t]).length,f=p/e+t;p>1&&f>h&&(h=f,u=[i,r,a,l])}let[_,p,f,g]=u,m=Math.floor((p+_)/2),k=Math.floor((g+f)/2);i.push(...s.slice(0,m)),n=(s=c.slice(k)).length,r&&(o.push(...a.slice(0,m)),a=t[l].slice(k))}return(i.push(...s),r)?(o.push(...a),[i,o]):[i,[]]}collateWordTimestamps(e,t,s){let[n,i,r]=this.combineTokensIntoWords(e,s),o=[];for(let e=0;e=n){let e=(0,r.NM)((t-n)*s,2);i.push(`<|${e}|>`),i.push([])}else i[i.length-1].push(t);return(i=i.map(e=>"string"==typeof e?e:super.decode(e,t))).join("")}splitTokensOnUnicode(e){let t=this.decode(e,{decode_with_timestamps:!0}),s=[],n=[],i=[],r=[],o=[],a=0;for(let l=0;l=this.model.tokens_to_ids.get("<|endoftext|>"),d=l.startsWith(" "),_=l.trim(),p=a.test(_);if(u||d||p||0===i.length)i.push(l),r.push(c),o.push(h);else{let e=i.length-1;i[e]+=l,r[e].push(...c),o[e].push(...h)}}return[i,r,o]}mergePunctuations(e,t,s,i,r){let o=structuredClone(e),a=structuredClone(t),l=structuredClone(s),c=o.length-2,h=o.length-1;for(;c>=0;)o[c].startsWith(" ")&&i.includes(o[c].trim())?(o[h]=o[c]+o[h],a[h]=(0,n.eG)(a[c],a[h]),l[h]=(0,n.eG)(l[c],l[h]),o[c]="",a[c]=[],l[c]=[]):h=c,--c;for(c=0,h=1;he),a.filter(e=>e.length>0),l.filter(e=>e.length>0)]}get_decoder_prompt_ids({language:e=null,task:t=null,no_timestamps:s=!0}={}){let n=[];if(e){e=e.toLowerCase();let t=eZ.get(e);if(void 0===t){if(eK.has(e))t=e;else{let t=2===e.length?eK.keys():eK.values();throw Error(`Language "${e}" is not supported. Must be one of: ${JSON.stringify(t)}`)}}let s=this.model.tokens_to_ids.get(`<|${t}|>`);if(void 0===s)throw Error(`Unable to find language "${t}" in model vocabulary. Please report this issue at https://github.com/xenova/transformers.js/issues/new/choose.`);n.push(s)}else n.push(null);if(t){if("transcribe"!==(t=t.toLowerCase())&&"translate"!==t)throw Error(`Task "${t}" is not supported. Must be one of: ["transcribe", "translate"]`);let e=this.model.tokens_to_ids.get(`<|${t}|>`);if(void 0===e)throw Error(`Unable to find task "${t}" in model vocabulary. Please report this issue at https://github.com/xenova/transformers.js/issues/new/choose.`);n.push(e)}else n.push(null);if(s){let e=this.model.tokens_to_ids.get("<|notimestamps|>");if(void 0===e)throw Error('Unable to find "<|notimestamps|>" in model vocabulary. Please report this issue at https://github.com/xenova/transformers.js/issues/new/choose.');n.push(e)}return n.map((e,t)=>[t+1,e]).filter(e=>null!==e[1])}}class eH extends ed{}class eJ extends ed{}class eQ extends ed{}class eX extends ed{constructor(e,t){super(e,t),this.languageRegex=/^(>>\w+<<)\s*/g,this.supported_language_codes=this.model.vocab.filter(e=>this.languageRegex.test(e)),console.warn('WARNING: `MarianTokenizer` is not yet supported by Hugging Face\'s "fast" tokenizers library. Therefore, you may experience slightly inaccurate results.')}_encode_text(e){if(null===e)return null;let[t,...s]=e.trim().split(this.languageRegex);if(0===s.length)return super._encode_text(t);if(2===s.length){let[e,t]=s;return this.supported_language_codes.includes(e)||console.warn(`Unsupported language code "${e}" detected, which may lead to unexpected behavior. Should be one of: ${JSON.stringify(this.supported_language_codes)}`),(0,n.eG)([e],super._encode_text(t))}}}class e0 extends ed{}class e1 extends ed{_default_chat_template="{% for message in messages %}{% if message['role'] == 'user' %}{{ ' ' }}{% endif %}{{ message['content'] }}{% if not loop.last %}{{ ' ' }}{% endif %}{% endfor %}{{ eos_token }}"}class e2 extends e1{}class e3 extends ed{}class e8 extends ed{}class e7 extends ed{constructor(e,t){super(e,t),this.decoder=new en({})}}class e6 extends ed{}class e9{static TOKENIZER_CLASS_MAPPING={T5Tokenizer:eS,DistilBertTokenizer:eb,CamembertTokenizer:ev,DebertaTokenizer:em,DebertaV2Tokenizer:ek,BertTokenizer:e_,HerbertTokenizer:ex,ConvBertTokenizer:ew,RoFormerTokenizer:ey,XLMTokenizer:ez,ElectraTokenizer:eA,MobileBertTokenizer:ef,SqueezeBertTokenizer:eg,AlbertTokenizer:ep,GPT2Tokenizer:eE,BartTokenizer:eT,MBartTokenizer:eC,MBart50Tokenizer:ej,RobertaTokenizer:eM,WhisperTokenizer:eV,CodeGenTokenizer:eH,CLIPTokenizer:eJ,SiglipTokenizer:eQ,MarianTokenizer:eX,BloomTokenizer:eP,NllbTokenizer:eD,M2M100Tokenizer:eq,LlamaTokenizer:e$,CodeLlamaTokenizer:eR,XLMRobertaTokenizer:eN,MPNetTokenizer:eF,FalconTokenizer:eL,GPTNeoXTokenizer:eO,EsmTokenizer:eU,Wav2Vec2CTCTokenizer:e0,BlenderbotTokenizer:e1,BlenderbotSmallTokenizer:e2,SpeechT5Tokenizer:e3,NougatTokenizer:e8,VitsTokenizer:e7,Qwen2Tokenizer:eW,GemmaTokenizer:eG,Grok1Tokenizer:eI,CohereTokenizer:e6,PreTrainedTokenizer:ed};static async from_pretrained(e,{quantized:t=!0,progress_callback:s=null,config:n=null,cache_dir:i=null,local_files_only:r=!1,revision:o="main",legacy:a=null}={}){let[l,h]=await c(e,{quantized:t,progress_callback:s,config:n,cache_dir:i,local_files_only:r,revision:o,legacy:a}),u=h.tokenizer_class?.replace(/Fast$/,"")??"PreTrainedTokenizer",d=this.TOKENIZER_CLASS_MAPPING[u];return d||(console.warn(`Unknown tokenizer class "${u}", attempting to construct from base class.`),d=ed),new d(l,h)}}}}]); \ No newline at end of file +' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content.strip() + ' ' + eos_token }}{% endif %}{% endfor %}`;DEFAULT_SYSTEM_PROMPT="You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.\n\nIf a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.";constructor(e,t){super(e,t),this.use_default_system_prompt=t.use_default_system_prompt??!1,this.legacy=t.legacy??!0,this.legacy||(this.normalizer=null,this.pre_tokenizer=new er({replacement:"▁",add_prefix_space:!0,prepend_scheme:"first"}))}_encode_text(e){if(null===e)return null;if(this.legacy||0===e.length)return super._encode_text(e);let t=super._encode_text("▁"+e.replaceAll("▁"," "));return t.length>1&&"▁"===t[0]&&this.special_tokens.includes(t[1])&&(t=t.slice(1)),t}get default_chat_template(){return super.default_chat_template.replaceAll("USE_DEFAULT_PROMPT",this.use_default_system_prompt?"true":"false").replaceAll("DEFAULT_SYSTEM_MESSAGE",this.DEFAULT_SYSTEM_PROMPT.replaceAll("\n","\\n").replaceAll("'","\\'"))}}class eN extends eR{}class eF extends e_{}class eL extends e_{}class eO extends e_{}class eU extends e_{}class eW extends e_{}class eG extends e_{}class eI extends e_{_default_chat_template="{% if messages[0]['role'] == 'system' %}{{ raise_exception('System role not supported') }}{% endif %}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '' + role + '\n' + message['content'] | trim + '\n' }}{% endfor %}{% if add_generation_prompt %}{{'model\n'}}{% endif %}"}class eB extends e_{}function eD(e,t,s,n){if(!("language_codes"in e)||!Array.isArray(e.language_codes))throw Error("Tokenizer must have `language_codes` attribute set and it should be an array of language ids.");if(!("languageRegex"in e)||!(e.languageRegex instanceof RegExp))throw Error("Tokenizer must have `languageRegex` attribute set and it should be a regular expression.");if(!("lang_to_token"in e)||"function"!=typeof e.lang_to_token)throw Error("Tokenizer must have `lang_to_token` attribute set and it should be a function.");let i=n.src_lang,r=n.tgt_lang;if(!e.language_codes.includes(r))throw Error(`Target language code "${r}" is not valid. Must be one of: {${e.language_codes.join(", ")}}`);if(void 0!==i){if(!e.language_codes.includes(i))throw Error(`Source language code "${i}" is not valid. Must be one of: {${e.language_codes.join(", ")}}`);for(let t of e.post_processor.config.single)if("SpecialToken"in t&&e.languageRegex.test(t.SpecialToken.id)){t.SpecialToken.id=e.lang_to_token(i);break}}return n.forced_bos_token_id=e.model.convert_tokens_to_ids([e.lang_to_token(r)])[0],e._call(t,s)}class eq extends e_{constructor(e,t){super(e,t),this.languageRegex=/^[a-z]{3}_[A-Z][a-z]{3}$/,this.language_codes=this.special_tokens.filter(e=>this.languageRegex.test(e)),this.lang_to_token=e=>e}_build_translation_inputs(e,t,s){return eD(this,e,t,s)}}class eY extends e_{constructor(e,t){super(e,t),this.languageRegex=/^__[a-z]{2,3}__$/,this.language_codes=this.special_tokens.filter(e=>this.languageRegex.test(e)).map(e=>e.slice(2,-2)),this.lang_to_token=e=>`__${e}__`}_build_translation_inputs(e,t,s){return eD(this,e,t,s)}}let eK=[["en","english"],["zh","chinese"],["de","german"],["es","spanish"],["ru","russian"],["ko","korean"],["fr","french"],["ja","japanese"],["pt","portuguese"],["tr","turkish"],["pl","polish"],["ca","catalan"],["nl","dutch"],["ar","arabic"],["sv","swedish"],["it","italian"],["id","indonesian"],["hi","hindi"],["fi","finnish"],["vi","vietnamese"],["he","hebrew"],["uk","ukrainian"],["el","greek"],["ms","malay"],["cs","czech"],["ro","romanian"],["da","danish"],["hu","hungarian"],["ta","tamil"],["no","norwegian"],["th","thai"],["ur","urdu"],["hr","croatian"],["bg","bulgarian"],["lt","lithuanian"],["la","latin"],["mi","maori"],["ml","malayalam"],["cy","welsh"],["sk","slovak"],["te","telugu"],["fa","persian"],["lv","latvian"],["bn","bengali"],["sr","serbian"],["az","azerbaijani"],["sl","slovenian"],["kn","kannada"],["et","estonian"],["mk","macedonian"],["br","breton"],["eu","basque"],["is","icelandic"],["hy","armenian"],["ne","nepali"],["mn","mongolian"],["bs","bosnian"],["kk","kazakh"],["sq","albanian"],["sw","swahili"],["gl","galician"],["mr","marathi"],["pa","punjabi"],["si","sinhala"],["km","khmer"],["sn","shona"],["yo","yoruba"],["so","somali"],["af","afrikaans"],["oc","occitan"],["ka","georgian"],["be","belarusian"],["tg","tajik"],["sd","sindhi"],["gu","gujarati"],["am","amharic"],["yi","yiddish"],["lo","lao"],["uz","uzbek"],["fo","faroese"],["ht","haitian creole"],["ps","pashto"],["tk","turkmen"],["nn","nynorsk"],["mt","maltese"],["sa","sanskrit"],["lb","luxembourgish"],["my","myanmar"],["bo","tibetan"],["tl","tagalog"],["mg","malagasy"],["as","assamese"],["tt","tatar"],["haw","hawaiian"],["ln","lingala"],["ha","hausa"],["ba","bashkir"],["jw","javanese"],["su","sundanese"]],eZ=new Map(eK),eV=new Map([...eK.map(([e,t])=>[t,e]),["burmese","my"],["valencian","ca"],["flemish","nl"],["haitian","ht"],["letzeburgesch","lb"],["pushto","ps"],["panjabi","pa"],["moldavian","ro"],["moldovan","ro"],["sinhalese","si"],["castilian","es"]]);class eH extends e_{_default_chat_template='{% for message in messages %}" "{{ message.content }}{{ eos_token }}" "{% endfor %}';_decode_asr(e,{return_timestamps:t=!1,return_language:s=!1,time_precision:n=null,force_full_sequences:i=!0}={}){if(null===n)throw Error("Must specify time_precision");let o=null,a="word"===t;function l(){return{language:o,timestamp:[null,null],text:""}}let c=[],h=l(),u=0,d=this.model.convert_tokens_to_ids(["<|notimestamps|>"])[0]+1,_=[],p=[],f=!1,g=null,m=new Set(this.all_special_ids);for(let s of e){let e=s.tokens,i=a?s.token_timestamps:null,k=null,x=d;if("stride"in s){let[t,i,r]=s.stride;if(u-=i,g=t-r,i&&(x=i/n+d),r)for(let t=e.length-1;t>=0;--t){let s=e[t];if(s>=d){if(null!==k&&(s-d)*n=d){let e=(g-d)*n+u,t=(0,r.NM)(e,2);if(null!==k&&g>=k)f=!0;else if(f||_.length>0&&g0?(_.push(w),a&&p.push(y)):_.every(e=>0===e.length)&&(h=l(),_=[],w=[],p=[],y=[])}if(_.length>0){if(i&&t)throw Error("Whisper did not predict an ending timestamp, which can happen if audio is cut off in the middle of a word. Also make sure WhisperTimeStampLogitsProcessor was used during generation.");let[e,s]=this.findLongestCommonSequence(_,p),n=this.decode(e);h.text=n,a&&(h.words=this.collateWordTimestamps(e,s,o)),c.push(h)}let k=Object.create(null),x=c.map(e=>e.text).join("");if(t||s){for(let e=0;e0,o=r?[]:null,a=r?t[0]:null;for(let l=1;le===_[t]).length,f=p/e+t;p>1&&f>h&&(h=f,u=[i,r,a,l])}let[_,p,f,g]=u,m=Math.floor((p+_)/2),k=Math.floor((g+f)/2);i.push(...s.slice(0,m)),n=(s=c.slice(k)).length,r&&(o.push(...a.slice(0,m)),a=t[l].slice(k))}return(i.push(...s),r)?(o.push(...a),[i,o]):[i,[]]}collateWordTimestamps(e,t,s){let[n,i,r]=this.combineTokensIntoWords(e,s),o=[];for(let e=0;e=n){let e=(0,r.NM)((t-n)*s,2);i.push(`<|${e}|>`),i.push([])}else i[i.length-1].push(t);return(i=i.map(e=>"string"==typeof e?e:super.decode(e,t))).join("")}splitTokensOnUnicode(e){let t=this.decode(e,{decode_with_timestamps:!0}),s=[],n=[],i=[],r=[],o=[],a=0;for(let l=0;l=this.model.tokens_to_ids.get("<|endoftext|>"),d=l.startsWith(" "),_=l.trim(),p=a.test(_);if(u||d||p||0===i.length)i.push(l),r.push(c),o.push(h);else{let e=i.length-1;i[e]+=l,r[e].push(...c),o[e].push(...h)}}return[i,r,o]}mergePunctuations(e,t,s,i,r){let o=structuredClone(e),a=structuredClone(t),l=structuredClone(s),c=o.length-2,h=o.length-1;for(;c>=0;)o[c].startsWith(" ")&&i.includes(o[c].trim())?(o[h]=o[c]+o[h],a[h]=(0,n.eG)(a[c],a[h]),l[h]=(0,n.eG)(l[c],l[h]),o[c]="",a[c]=[],l[c]=[]):h=c,--c;for(c=0,h=1;he),a.filter(e=>e.length>0),l.filter(e=>e.length>0)]}get_decoder_prompt_ids({language:e=null,task:t=null,no_timestamps:s=!0}={}){let n=[];if(e){e=e.toLowerCase();let t=eV.get(e);if(void 0===t){if(eZ.has(e))t=e;else{let t=2===e.length?eZ.keys():eZ.values();throw Error(`Language "${e}" is not supported. Must be one of: ${JSON.stringify(t)}`)}}let s=this.model.tokens_to_ids.get(`<|${t}|>`);if(void 0===s)throw Error(`Unable to find language "${t}" in model vocabulary. Please report this issue at https://github.com/xenova/transformers.js/issues/new/choose.`);n.push(s)}else n.push(null);if(t){if("transcribe"!==(t=t.toLowerCase())&&"translate"!==t)throw Error(`Task "${t}" is not supported. Must be one of: ["transcribe", "translate"]`);let e=this.model.tokens_to_ids.get(`<|${t}|>`);if(void 0===e)throw Error(`Unable to find task "${t}" in model vocabulary. Please report this issue at https://github.com/xenova/transformers.js/issues/new/choose.`);n.push(e)}else n.push(null);if(s){let e=this.model.tokens_to_ids.get("<|notimestamps|>");if(void 0===e)throw Error('Unable to find "<|notimestamps|>" in model vocabulary. Please report this issue at https://github.com/xenova/transformers.js/issues/new/choose.');n.push(e)}return n.map((e,t)=>[t+1,e]).filter(e=>null!==e[1])}}class eJ extends e_{}class eQ extends e_{}class eX extends e_{}class e0 extends e_{constructor(e,t){super(e,t),this.languageRegex=/^(>>\w+<<)\s*/g,this.supported_language_codes=this.model.vocab.filter(e=>this.languageRegex.test(e)),console.warn('WARNING: `MarianTokenizer` is not yet supported by Hugging Face\'s "fast" tokenizers library. Therefore, you may experience slightly inaccurate results.')}_encode_text(e){if(null===e)return null;let[t,...s]=e.trim().split(this.languageRegex);if(0===s.length)return super._encode_text(t);if(2===s.length){let[e,t]=s;return this.supported_language_codes.includes(e)||console.warn(`Unsupported language code "${e}" detected, which may lead to unexpected behavior. Should be one of: ${JSON.stringify(this.supported_language_codes)}`),(0,n.eG)([e],super._encode_text(t))}}}class e1 extends e_{}class e2 extends e_{_default_chat_template="{% for message in messages %}{% if message['role'] == 'user' %}{{ ' ' }}{% endif %}{{ message['content'] }}{% if not loop.last %}{{ ' ' }}{% endif %}{% endfor %}{{ eos_token }}"}class e3 extends e2{}class e8 extends e_{}class e7 extends e_{}class e6 extends e_{constructor(e,t){super(e,t),this.decoder=new ei({})}}class e9 extends e_{}class e4{static TOKENIZER_CLASS_MAPPING={T5Tokenizer:eE,DistilBertTokenizer:ev,CamembertTokenizer:ez,DebertaTokenizer:ek,DebertaV2Tokenizer:ex,BertTokenizer:ep,HerbertTokenizer:ew,ConvBertTokenizer:ey,RoFormerTokenizer:eb,XLMTokenizer:eA,ElectraTokenizer:eS,MobileBertTokenizer:eg,SqueezeBertTokenizer:em,AlbertTokenizer:ef,GPT2Tokenizer:eT,BartTokenizer:eC,MBartTokenizer:ej,MBart50Tokenizer:eM,RobertaTokenizer:eP,WhisperTokenizer:eH,CodeGenTokenizer:eJ,CLIPTokenizer:eQ,SiglipTokenizer:eX,MarianTokenizer:e0,BloomTokenizer:e$,NllbTokenizer:eq,M2M100Tokenizer:eY,LlamaTokenizer:eR,CodeLlamaTokenizer:eN,XLMRobertaTokenizer:eF,MPNetTokenizer:eL,FalconTokenizer:eO,GPTNeoXTokenizer:eU,EsmTokenizer:eW,Wav2Vec2CTCTokenizer:e1,BlenderbotTokenizer:e2,BlenderbotSmallTokenizer:e3,SpeechT5Tokenizer:e8,NougatTokenizer:e7,VitsTokenizer:e6,Qwen2Tokenizer:eG,GemmaTokenizer:eI,Grok1Tokenizer:eB,CohereTokenizer:e9,PreTrainedTokenizer:e_};static async from_pretrained(e,{quantized:t=!0,progress_callback:s=null,config:n=null,cache_dir:i=null,local_files_only:r=!1,revision:o="main",legacy:a=null}={}){let[l,h]=await c(e,{quantized:t,progress_callback:s,config:n,cache_dir:i,local_files_only:r,revision:o,legacy:a}),u=h.tokenizer_class?.replace(/Fast$/,"")??"PreTrainedTokenizer",d=this.TOKENIZER_CLASS_MAPPING[u];return d||(console.warn(`Unknown tokenizer class "${u}", attempting to construct from base class.`),d=e_),new d(l,h)}}}}]); \ No newline at end of file diff --git a/_next/static/chunks/6139e184-0267cebb3003fcd3.js b/_next/static/chunks/6139e184-0267cebb3003fcd3.js deleted file mode 100644 index daa39f0c62deffab9e041421c7f6550605b88f0f..0000000000000000000000000000000000000000 --- a/_next/static/chunks/6139e184-0267cebb3003fcd3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[132],{9454:function(e,s,t){t.d(s,{$Bv:function(){return ia},$Sz:function(){return a2},DcG:function(){return ic},ENH:function(){return ir},En$:function(){return is},Hqk:function(){return a7},IFL:function(){return iu},K2m:function(){return il},Kf0:function(){return a4},LdW:function(){return io},OjJ:function(){return a1},S2d:function(){return id},U$$:function(){return it},Zn:function(){return ii},hY6:function(){return i_},hZO:function(){return a3},lbf:function(){return a5},o$X:function(){return a0},t78:function(){return a9},tLj:function(){return ie},wiU:function(){return a8},z6E:function(){return a6}});var n=t(16),a=t(761),i=t(911),o=t(5774),r=t(2414),l=t(967),c=t(9078);let{InferenceSession:d,Tensor:_,env:u}=l.ONNX,h={EncoderOnly:0,EncoderDecoder:1,Seq2Seq:2,Vision2Seq:3,DecoderOnly:4,MaskGeneration:5},m=new Map,p=new Map,f=new Map;async function g(e,s,t){let n=`onnx/${s}${t.quantized?"_quantized":""}.onnx`,a=await (0,i.st)(e,n,!0,t);try{return await d.create(a,{executionProviders:l.p})}catch(e){if(1===l.p.length&&"wasm"===l.p[0])throw e;return console.warn(e),console.warn("Something went wrong during model construction (most likely a missing operation). Using `wasm` as a fallback. "),await d.create(a,{executionProviders:["wasm"]})}}async function w(e,s){let t=function(e,s){let t=Object.create(null),n=[];for(let a of e.inputNames){let e=s[a];if(!(e instanceof r.es)){n.push(a);continue}t[a]=u.wasm.proxy?e.clone():e}if(n.length>0)throw Error(`An error occurred during model execution: "Missing the following inputs: ${n.join(", ")}.`);let a=Object.keys(s).length,i=e.inputNames.length;if(a>i){let t=Object.keys(s).filter(s=>!e.inputNames.includes(s));console.warn(`WARNING: Too many inputs were provided (${a} > ${i}). The following inputs will be ignored: "${t.join(", ")}".`)}return t}(e,s);try{let s=await e.run(t);return s=function e(s){for(let t in s)s[t]instanceof _?s[t]=new r.es(s[t]):"object"==typeof s[t]&&e(s[t]);return s}(s)}catch(e){throw console.error(`An error occurred during model execution: "${e}".`),console.error("Inputs given to model:",t),e}}function x(e,s){let t=e.config.pad_token_id??null,n=e.config.eos_token_id??null;(0,a.Wy)(n)&&(n=[n]);let i=-1!==s.indexOf(t),o=null===n||!n.includes(t);if(!i||!o)return(0,r.r6)(s);{let e=BigInt64Array.from(s.data.map(e=>e!=t));return new r.es("int64",e,s.dims)}}function y(e,s,t){if(!e.inputNames.includes("position_ids"))return;let n=new BigInt64Array(s.attention_mask.data.length);for(let e=0;eBigInt(e))),[1,e.length]);if(e.some(s=>s.length!==e[0].length))throw Error("Unable to create tensor, you should probably activate truncation and/or padding with 'padding=True' and/or 'truncation=True' to have batched tensors with the same length.");return new r.es("int64",BigInt64Array.from(e.flat().map(e=>BigInt(e))),[e.length,e[0].length])}(n),encoder_outputs:s.encoder_outputs,past_key_values:s.prev_model_outputs?.past_key_values};s.attention_mask&&(a.attention_mask=s.attention_mask);let i=await e.forward(a);return s.prev_model_outputs=i,s.encoder_outputs=i.encoder_outputs,i}function S(e,s){e.output_token_ids=[...e.output_token_ids,s]}async function C(e,s){let t=Object.create(null);for(let n of e.session.inputNames)t[n]=s[n];return e.session.inputNames.includes("token_type_ids")&&!t.token_type_ids&&(t.token_type_ids=new r.es("int64",new BigInt64Array(t.input_ids.data.length),t.input_ids.dims)),await w(e.session,t)}async function F(e,s){let{input_ids:t,past_key_values:n,attention_mask:a}=s,i={input_ids:t,attention_mask:a??x(e,t)},o=!!n;e.session.inputNames.includes("use_cache_branch")&&(i.use_cache_branch=M(o)),y(e.session,i,o),e.addPastKeyValues(i,n);let r=await w(e.session,i);return{logits:r.logits,past_key_values:n=e.getPastKeyValues(r,n)}}function L(e,s,t,n,a){let i=[],o=0;for(let t of s){let s,r=t.tolist().map(Number);t.dims=[1,...t.dims],a?(s=a[o]).dims=[1,...s.dims]:s=x(e,t);let l={input:t,model_input_ids:t,attention_mask:s,prev_model_outputs:null,output_token_ids:r,num_output_tokens:n,done:!1,score:0,id:o++};i.push(l)}return i}async function A(e,s){let t=new BigInt64Array(s.output_token_ids.length).fill(1n),n={input_ids:s.model_input_ids,attention_mask:new r.es("int64",t,[1,t.length]),past_key_values:s.prev_model_outputs?.past_key_values},a=await e.forward(n);return s.prev_model_outputs=a,a}function P(e,s){e.output_token_ids=[...e.output_token_ids,s],e.model_input_ids=new r.es("int64",[BigInt(s)],[1,1])}class E extends a.Ag{main_input_name="input_ids";constructor(e,s){super(),this.config=e,this.session=s;let t=f.get(this.constructor),n=m.get(t);this.can_generate=!1,this._runBeam=null,this._getStartBeams=null,this._updateBeam=null,this._forward=null,n===h.DecoderOnly?(this.can_generate=!0,this._runBeam=A,this._getStartBeams=L,this._updateBeam=P,this._forward=F):n===h.Seq2Seq||n===h.Vision2Seq?(this.can_generate=!0,this._runBeam=v,this._getStartBeams=b,this._updateBeam=S,this._forward=k):(h.EncoderDecoder,this._forward=C)}async dispose(){let e=[];for(let s of Object.keys(this)){let t=this[s];t instanceof d&&e.push(t.handler.dispose())}return await Promise.all(e)}static async from_pretrained(e,{quantized:s=!0,progress_callback:t=null,config:a=null,cache_dir:o=null,local_files_only:r=!1,revision:l="main",model_file_name:c=null}={}){let d,_={quantized:s,progress_callback:t,config:a,cache_dir:o,local_files_only:r,revision:l,model_file_name:c},u=f.get(this),p=m.get(u);return p===h.DecoderOnly?d=await Promise.all([n.z.from_pretrained(e,_),g(e,_.model_file_name??"decoder_model_merged",_),(0,i.yM)(e,"generation_config.json",!1,_)]):p===h.Seq2Seq||p===h.Vision2Seq?d=await Promise.all([n.z.from_pretrained(e,_),g(e,"encoder_model",_),g(e,"decoder_model_merged",_),(0,i.yM)(e,"generation_config.json",!1,_)]):p===h.MaskGeneration?d=await Promise.all([n.z.from_pretrained(e,_),g(e,"vision_encoder",_),g(e,"prompt_encoder_mask_decoder",_)]):p===h.EncoderDecoder?d=await Promise.all([n.z.from_pretrained(e,_),g(e,"encoder_model",_),g(e,"decoder_model_merged",_)]):(p!==h.EncoderOnly&&console.warn(`Model type for '${u??a?.model_type}' not found, assuming encoder-only architecture. Please report this at https://github.com/xenova/transformers.js/issues/new/choose.`),d=await Promise.all([n.z.from_pretrained(e,_),g(e,_.model_file_name??"model",_)])),new this(...d)}async _call(e){return await this.forward(e)}async forward(e){return await this._forward(this,e)}_get_logits_processor(e,s,t=null){let n=new o.Jm;if(null!==e.repetition_penalty&&1!==e.repetition_penalty&&n.push(new o.Jj(e.repetition_penalty)),null!==e.no_repeat_ngram_size&&e.no_repeat_ngram_size>0&&n.push(new o.jF(e.no_repeat_ngram_size)),null!==e.bad_words_ids&&n.push(new o.AE(e.bad_words_ids,e.eos_token_id)),null!==e.min_length&&null!==e.eos_token_id&&e.min_length>0&&n.push(new o.ez(e.min_length,e.eos_token_id)),null!==e.min_new_tokens&&null!==e.eos_token_id&&e.min_new_tokens>0&&n.push(new o.CJ(s,e.min_new_tokens,e.eos_token_id)),null!==e.forced_bos_token_id&&n.push(new o.C9(e.forced_bos_token_id)),null!==e.forced_eos_token_id&&n.push(new o.dZ(e.max_length,e.forced_eos_token_id)),null!==e.begin_suppress_tokens){let t=s>1||null===e.forced_bos_token_id?s:s+1;null!==e.forced_decoder_ids&&(t+=e.forced_decoder_ids[e.forced_decoder_ids.length-1][0]),n.push(new o.GU(e.begin_suppress_tokens,t))}return null!==e.forced_decoder_ids&&n.push(new o.E(e.forced_decoder_ids)),null!==t&&n.extend(t),n}_get_generation_config(e){let s=new o.aP(this.config);return"generation_config"in this&&Object.assign(s,this.generation_config),null!==e&&Object.assign(s,e),s}async generate(e,s=null,t=null,{inputs_attention_mask:n=null}={}){let i;if(!this.can_generate){let e=f.get(this.constructor),s=`The current model class (${e}) is not compatible with \`.generate()\`, as it doesn't have a language model head.`,t=this.config.model_type,n=aT.get(t)??aB.get(t)??aL.get(t)??aq.get(t);throw n&&(s+=` Please use the following class instead: '${n[0]}'`),Error(s)}if(!(e instanceof r.es)&&!(0,a.fU)(e)&&!Array.isArray(e))throw Error(`\`inputs\` must be a Tensor, TypedArray, or Array, but is "${e.constructor.name}".`);if(this.config.is_encoder_decoder)i=0;else if(0===(i=e instanceof r.es?e.dims.at(-1):e.length))throw Error("Must supply a non-empty array of input token ids.");s=this._get_generation_config(s),t=t??new o.Jm,t=this._get_logits_processor(s,i,t);let l=s.eos_token_id;null===l||Array.isArray(l)||(l=[l]);let c=1,d=1+(s.max_new_tokens??1/0),_=Number.isInteger(s.max_length)&&(s.max_new_tokens??null)===null,u=o.Z4.getSampler(s),h=this.getStartBeams(e,s,c,n);for(;h.some(e=>!e.done)&&c=s.max_length){n.done=!0,e.push(n);continue}let a=await this.runBeam(n);s.output_attentions&&this.addAttentionsToBeam(n,a),s.output_scores;let i=a.logits.slice(null,-1,null);for(let[s,a]of(t(n.output_token_ids,i),u(i))){let t={...n};this.updateBeam(t,s),t.score+=a,l&&l.includes(s)&&(t.done=!0),e.push(t)}}++c,h=(e=this.groupBeams(e).map(e=>e.sort((e,s)=>s.score-e.score).slice(0,s.num_beams))).flat(),s.callback_function&&s.callback_function(h)}let m=this.groupBeams(h),p=e=>m.map(t=>s.num_return_sequences>1?t.slice(0,s.num_return_sequences).map(s=>s[e]):[t[0][e]]).flat(),g=p("output_token_ids");return s.return_dict_in_generate?{sequences:g,decoder_attentions:p("decoder_attentions"),cross_attentions:p("cross_attentions")}:g}addAttentionsToBeam(e,s){if(this.config.is_encoder_decoder){if(!s.cross_attentions||0===s.cross_attentions.length)throw Error("`output_attentions` is true, but the model did not produce cross-attentions. This is most likely because the model was not exported with `output_attentions=True`.");e.cross_attentions||(e.cross_attentions=[]),e.cross_attentions.push(s.cross_attentions)}if(!s.decoder_attentions||0===s.decoder_attentions.length)throw Error("`output_attentions` is true, but the model did not produce decoder-attentions. This is most likely because the model was not exported with `output_attentions=True`.");e.decoder_attentions||(e.decoder_attentions=[]),e.decoder_attentions.push(s.decoder_attentions)}groupBeams(e){let s=Object.create(null);for(let t of e)void 0===s[t.id]?s[t.id]=[t]:s[t.id].push(t);return Object.values(s)}getPastKeyValues(e,s){let t=Object.create(null);for(let n in e)if(n.startsWith("present")){let a=n.replace("present","past_key_values");s&&n.includes("encoder")?t[a]=s[a]:t[a]=e[n]}return t}getAttentions(e){let s=Object.create(null);for(let t of["cross_attentions","decoder_attentions"]){let n=[];for(let s in e)s.startsWith(t)&&(n[s.split(".").pop()]=e[s]);s[t]=n}return s}addPastKeyValues(e,s){if(s)Object.assign(e,s);else if(this.config.is_encoder_decoder&&(this.add_encoder_pkv??!0)){let s=[1,this.num_encoder_heads,0,this.encoder_dim_kv],t=[1,this.num_decoder_heads,0,this.decoder_dim_kv];for(let n=0;n{let n=Array.from({length:this.config.decoder_layers},(s,t)=>(0,r.d3)(e.map(e=>e[t]),2)),a=(0,r.kn)(s.map(([e,s])=>t?n[e].slice(null,s,null,[0,t]):n[e].slice(null,s)));a=a.transpose(1,0,2,3);let[o,l]=(0,r.f3)(a,-2,0,!0),d=a.clone();for(let e=0;et[s+1]-t[s]),c=(0,a.eG)([1],l).map(e=>!!e),_=[];for(let e=0;ee*s,1);e.input_labels=new r.es("int64",new BigInt64Array(t).fill(1n),s)}return await w(this.prompt_encoder_mask_decoder,{input_points:e.input_points,input_labels:e.input_labels,image_embeddings:e.image_embeddings,image_positional_embeddings:e.image_positional_embeddings})}async _call(e){return new nS(await super._call(e))}}class nS extends O{constructor({iou_scores:e,pred_masks:s}){super(),this.iou_scores=e,this.pred_masks=s}}class nC extends E{}class nF extends nC{}class nL extends nC{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class nA extends E{}class nP extends nA{}class nE extends nA{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class nO extends E{}class nB extends nO{}class nT extends nO{async _call(e){return new iy(await super._call(e))}}class nD extends nO{async _call(e){return new im(await super._call(e))}}class nI extends nO{async _call(e){return new ig(await super._call(e))}}class nq extends E{}class nN extends nq{}class nG extends nq{async _call(e){return new iy(await super._call(e))}}class nV extends nq{async _call(e){return new im(await super._call(e))}}class nz extends E{}class nj extends nz{}class n$ extends nz{async _call(e){return new iy(await super._call(e))}}class nW extends nz{async _call(e){return new im(await super._call(e))}}class nR extends nz{async _call(e){return new ig(await super._call(e))}}class nQ extends E{}class nU extends nQ{}class nX extends nQ{async _call(e){return new iy(await super._call(e))}}class nK extends nQ{async _call(e){return new im(await super._call(e))}}class nH extends nO{}class nJ extends nO{async _call(e){return new iy(await super._call(e))}}class nZ extends nO{async _call(e){return new im(await super._call(e))}}class nY extends E{}class n2 extends nY{}class n0 extends nY{async _call(e){return new iy(await super._call(e))}}class n1 extends nY{async _call(e){return new im(await super._call(e))}}class n4 extends nY{async _call(e){return new ip(await super._call(e))}}class n3 extends nY{async _call(e){return new ig(await super._call(e))}}class n5 extends E{}class n6 extends n5{}class n7 extends n5{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.hidden_size/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.hidden_size/this.num_encoder_heads}async generate_speech(e,s,{threshold:t=.5,minlenratio:n=0,maxlenratio:a=20,vocoder:i=null}={}){let{encoder_outputs:o,encoder_attention_mask:l}=await C(this,{input_ids:e}),c=o.dims[1]/this.config.reduction_factor,d=Math.floor(c*a),_=Math.floor(c*n),u=this.config.num_mel_bins,h=[],m=null,p=null,f=0;for(;;){++f;let e={use_cache_branch:M(!!p),output_sequence:p?p.output_sequence_out:new r.es("float32",new Float32Array(u),[1,1,u]),encoder_attention_mask:l,speaker_embeddings:s,encoder_hidden_states:o};this.addPastKeyValues(e,m),p=await w(this.decoder_merged_session,e),m=this.getPastKeyValues(p,m);let{prob:n,spectrum:a}=p;if(h.push(a),f>=_&&(Array.from(n.data).filter(e=>e>=t).length>0||f>=d))break}let g=(0,r.d3)(h),{waveform:x}=await w(i.session,{spectrogram:g});return{spectrogram:g,waveform:x}}}class n9 extends E{main_input_name="spectrogram"}class n8 extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_encoder_layers=this.num_decoder_layers=this.config.decoder_layers,this.num_encoder_heads=this.num_decoder_heads=this.config.decoder_attention_heads,this.encoder_dim_kv=this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads}}class ae extends n8{}class as extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_key_value_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class at extends as{}class an extends as{}class aa extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_key_value_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class ai extends aa{}class ao extends aa{}class ar extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class al extends ar{}class ac extends ar{}class ad extends E{}class a_ extends ad{}class au extends ad{static async from_pretrained(e,s={}){return s.model_file_name??="text_model",super.from_pretrained(e,s)}}class ah extends ad{static async from_pretrained(e,s={}){return s.model_file_name??="audio_model",super.from_pretrained(e,s)}}class am extends E{}class ap extends am{async _call(e){return new ik(await super._call(e))}}class af extends E{}class ag extends af{}class aw extends af{}class ax extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class ay extends ax{}class aM extends E{}class ak extends aM{}class ab extends aM{async _call(e){return new im(await super._call(e))}}class av{static MODEL_CLASS_MAPPINGS=null;static BASE_IF_FAIL=!1;static async from_pretrained(e,{quantized:s=!0,progress_callback:t=null,config:a=null,cache_dir:i=null,local_files_only:o=!1,revision:r="main",model_file_name:l=null}={}){let c={quantized:s,progress_callback:t,config:a,cache_dir:i,local_files_only:o,revision:r,model_file_name:l};if(a=await n.z.from_pretrained(e,c),c.config||(c.config=a),!this.MODEL_CLASS_MAPPINGS)throw Error("`MODEL_CLASS_MAPPINGS` not implemented for this type of `AutoClass`: "+this.name);for(let s of this.MODEL_CLASS_MAPPINGS){let t=s.get(a.model_type);if(t)return await t[1].from_pretrained(e,c)}if(this.BASE_IF_FAIL)return console.warn(`Unknown model class "${a.model_type}", attempting to construct from base class.`),await E.from_pretrained(e,c);throw Error(`Unsupported model type: ${a.model_type}`)}}let aS=new Map([["bert",["BertModel",T]],["nomic_bert",["NomicBertModel",V]],["roformer",["RoFormerModel",j]],["electra",["ElectraModel",ee]],["esm",["EsmModel",eP]],["convbert",["ConvBertModel",X]],["camembert",["CamembertModel",eo]],["deberta",["DebertaModel",eu]],["deberta-v2",["DebertaV2Model",ew]],["mpnet",["MPNetModel",eV]],["albert",["AlbertModel",eJ]],["distilbert",["DistilBertModel",ev]],["roberta",["RobertaModel",sf]],["xlm",["XLMModel",sk]],["xlm-roberta",["XLMRobertaModel",sL]],["clap",["ClapModel",a_]],["clip",["CLIPModel",sz]],["clipseg",["CLIPSegModel",sJ]],["chinese_clip",["ChineseCLIPModel",sK]],["siglip",["SiglipModel",sR]],["mobilebert",["MobileBertModel",eD]],["squeezebert",["SqueezeBertModel",eQ]],["wav2vec2",["Wav2Vec2Model",nB]],["wav2vec2-bert",["Wav2Vec2BertModel",nU]],["unispeech",["UniSpeechModel",nN]],["unispeech-sat",["UniSpeechSatModel",nj]],["hubert",["HubertModel",nH]],["wavlm",["WavLMModel",n2]],["audio-spectrogram-transformer",["ASTModel",sT]],["vits",["VitsModel",ap]],["detr",["DetrModel",t$]],["table-transformer",["TableTransformerModel",tK]],["vit",["ViTModel",tC]],["mobilevit",["MobileViTModel",tE]],["owlvit",["OwlViTModel",tT]],["owlv2",["Owlv2Model",tq]],["beit",["BeitModel",tV]],["deit",["DeiTModel",tY]],["convnext",["ConvNextModel",n_]],["convnextv2",["ConvNextV2Model",nm]],["dinov2",["Dinov2Model",ng]],["resnet",["ResNetModel",t1]],["swin",["SwinModel",t5]],["swin2sr",["Swin2SRModel",t9]],["donut-swin",["DonutSwinModel",nc]],["yolos",["YolosModel",ny]],["dpt",["DPTModel",ns]],["glpn",["GLPNModel",no]],["hifigan",["SpeechT5HifiGan",n9]],["efficientnet",["EfficientNetModel",ak]]]),aC=new Map([["t5",["T5Model",e1]],["longt5",["LongT5Model",e5]],["mt5",["MT5Model",e9]],["bart",["BartModel",ss]],["mbart",["MBartModel",si]],["marian",["MarianModel",nF]],["whisper",["WhisperModel",sq]],["m2m_100",["M2M100Model",nP]],["blenderbot",["BlenderbotModel",sd]],["blenderbot-small",["BlenderbotSmallModel",sh]]]),aF=new Map([["bloom",["BloomModel",tg]],["gpt2",["GPT2Model",s2]],["gptj",["GPTJModel",s8]],["gpt_bigcode",["GPTBigCodeModel",tt]],["gpt_neo",["GPTNeoModel",s4]],["gpt_neox",["GPTNeoXModel",s6]],["codegen",["CodeGenModel",ti]],["llama",["LlamaModel",tl]],["qwen2",["Qwen2Model",t_]],["phi",["PhiModel",tm]],["mpt",["MptModel",ty]],["opt",["OPTModel",tb]],["mistral",["MistralModel",at]],["starcoder2",["Starcoder2Model",ai]],["falcon",["FalconModel",al]]]),aL=new Map([["speecht5",["SpeechT5ForSpeechToText",n6]],["whisper",["WhisperForConditionalGeneration",sN]]]),aA=new Map([["speecht5",["SpeechT5ForTextToSpeech",n7]]]),aP=new Map([["vits",["VitsModel",ap]]]),aE=new Map([["bert",["BertForSequenceClassification",I]],["roformer",["RoFormerForSequenceClassification",W]],["electra",["ElectraForSequenceClassification",et]],["esm",["EsmForSequenceClassification",eO]],["convbert",["ConvBertForSequenceClassification",H]],["camembert",["CamembertForSequenceClassification",el]],["deberta",["DebertaForSequenceClassification",em]],["deberta-v2",["DebertaV2ForSequenceClassification",ey]],["mpnet",["MPNetForSequenceClassification",ej]],["albert",["AlbertForSequenceClassification",eZ]],["distilbert",["DistilBertForSequenceClassification",eS]],["roberta",["RobertaForSequenceClassification",sw]],["xlm",["XLMForSequenceClassification",sv]],["xlm-roberta",["XLMRobertaForSequenceClassification",sP]],["bart",["BartForSequenceClassification",sn]],["mbart",["MBartForSequenceClassification",sr]],["mobilebert",["MobileBertForSequenceClassification",eq]],["squeezebert",["SqueezeBertForSequenceClassification",eX]]]),aO=new Map([["bert",["BertForTokenClassification",q]],["roformer",["RoFormerForTokenClassification",R]],["electra",["ElectraForTokenClassification",en]],["esm",["EsmForTokenClassification",eB]],["convbert",["ConvBertForTokenClassification",J]],["camembert",["CamembertForTokenClassification",ec]],["deberta",["DebertaForTokenClassification",ep]],["deberta-v2",["DebertaV2ForTokenClassification",eM]],["mpnet",["MPNetForTokenClassification",e$]],["distilbert",["DistilBertForTokenClassification",eC]],["roberta",["RobertaForTokenClassification",sx]],["xlm",["XLMForTokenClassification",sS]],["xlm-roberta",["XLMRobertaForTokenClassification",sE]]]),aB=new Map([["t5",["T5ForConditionalGeneration",e4]],["longt5",["LongT5ForConditionalGeneration",e6]],["mt5",["MT5ForConditionalGeneration",e8]],["bart",["BartForConditionalGeneration",st]],["mbart",["MBartForConditionalGeneration",so]],["marian",["MarianMTModel",nL]],["m2m_100",["M2M100ForConditionalGeneration",nE]],["blenderbot",["BlenderbotForConditionalGeneration",s_]],["blenderbot-small",["BlenderbotSmallForConditionalGeneration",sm]]]),aT=new Map([["bloom",["BloomForCausalLM",tw]],["gpt2",["GPT2LMHeadModel",s0]],["gptj",["GPTJForCausalLM",te]],["gpt_bigcode",["GPTBigCodeForCausalLM",tn]],["gpt_neo",["GPTNeoForCausalLM",s3]],["gpt_neox",["GPTNeoXForCausalLM",s7]],["codegen",["CodeGenForCausalLM",to]],["llama",["LlamaForCausalLM",tc]],["qwen2",["Qwen2ForCausalLM",tu]],["phi",["PhiForCausalLM",tp]],["mpt",["MptForCausalLM",tM]],["opt",["OPTForCausalLM",tv]],["mbart",["MBartForCausalLM",sl]],["mistral",["MistralForCausalLM",an]],["starcoder2",["Starcoder2ForCausalLM",ao]],["falcon",["FalconForCausalLM",ac]],["trocr",["TrOCRForCausalLM",ae]],["stablelm",["StableLmForCausalLM",ay]]]),aD=new Map([["bert",["BertForMaskedLM",D]],["roformer",["RoFormerForMaskedLM",$]],["electra",["ElectraForMaskedLM",es]],["esm",["EsmForMaskedLM",eE]],["convbert",["ConvBertForMaskedLM",K]],["camembert",["CamembertForMaskedLM",er]],["deberta",["DebertaForMaskedLM",eh]],["deberta-v2",["DebertaV2ForMaskedLM",ex]],["mpnet",["MPNetForMaskedLM",ez]],["albert",["AlbertForMaskedLM",e2]],["distilbert",["DistilBertForMaskedLM",eL]],["roberta",["RobertaForMaskedLM",sg]],["xlm",["XLMWithLMHeadModel",sb]],["xlm-roberta",["XLMRobertaForMaskedLM",sA]],["mobilebert",["MobileBertForMaskedLM",eI]],["squeezebert",["SqueezeBertForMaskedLM",eU]]]),aI=new Map([["bert",["BertForQuestionAnswering",N]],["roformer",["RoFormerForQuestionAnswering",Q]],["electra",["ElectraForQuestionAnswering",ea]],["convbert",["ConvBertForQuestionAnswering",Z]],["camembert",["CamembertForQuestionAnswering",ed]],["deberta",["DebertaForQuestionAnswering",ef]],["deberta-v2",["DebertaV2ForQuestionAnswering",ek]],["mpnet",["MPNetForQuestionAnswering",eW]],["albert",["AlbertForQuestionAnswering",eY]],["distilbert",["DistilBertForQuestionAnswering",eF]],["roberta",["RobertaForQuestionAnswering",sy]],["xlm",["XLMForQuestionAnswering",sC]],["xlm-roberta",["XLMRobertaForQuestionAnswering",sO]],["mobilebert",["MobileBertForQuestionAnswering",eN]],["squeezebert",["SqueezeBertForQuestionAnswering",eK]]]),aq=new Map([["vision-encoder-decoder",["VisionEncoderDecoderModel",sG]]]),aN=new Map([["vision-encoder-decoder",["VisionEncoderDecoderModel",sG]]]),aG=new Map([["vit",["ViTForImageClassification",tF]],["mobilevit",["MobileViTForImageClassification",tO]],["beit",["BeitForImageClassification",tz]],["deit",["DeiTForImageClassification",t2]],["convnext",["ConvNextForImageClassification",nu]],["convnextv2",["ConvNextV2ForImageClassification",np]],["dinov2",["Dinov2ForImageClassification",nw]],["resnet",["ResNetForImageClassification",t4]],["swin",["SwinForImageClassification",t6]],["segformer",["SegformerForImageClassification",ag]],["efficientnet",["EfficientNetForImageClassification",ab]]]),aV=new Map([["detr",["DetrForObjectDetection",tW]],["table-transformer",["TableTransformerForObjectDetection",tH]],["yolos",["YolosForObjectDetection",nM]]]),az=new Map([["owlvit",["OwlViTForObjectDetection",tD]],["owlv2",["Owlv2ForObjectDetection",tN]]]),aj=new Map([["detr",["DetrForSegmentation",tR]],["clipseg",["CLIPSegForImageSegmentation",sZ]]]),a$=new Map([["segformer",["SegformerForSemanticSegmentation",aw]]]),aW=new Map([["sam",["SamModel",nv]]]),aR=new Map([["wav2vec2",["Wav2Vec2ForCTC",nT]],["wav2vec2-bert",["Wav2Vec2BertForCTC",nX]],["unispeech",["UniSpeechForCTC",nG]],["unispeech-sat",["UniSpeechSatForCTC",n$]],["wavlm",["WavLMForCTC",n0]],["hubert",["HubertForCTC",nJ]]]),aQ=new Map([["wav2vec2",["Wav2Vec2ForSequenceClassification",nD]],["wav2vec2-bert",["Wav2Vec2BertForSequenceClassification",nK]],["unispeech",["UniSpeechForSequenceClassification",nV]],["unispeech-sat",["UniSpeechSatForSequenceClassification",nW]],["wavlm",["WavLMForSequenceClassification",n1]],["hubert",["HubertForSequenceClassification",nZ]],["audio-spectrogram-transformer",["ASTForAudioClassification",sD]]]),aU=new Map([["wavlm",["WavLMForXVector",n4]]]),aX=new Map([["unispeech-sat",["UniSpeechSatForAudioFrameClassification",nR]],["wavlm",["WavLMForAudioFrameClassification",n3]],["wav2vec2",["Wav2Vec2ForAudioFrameClassification",nI]]]),aK=new Map([["vitmatte",["VitMatteForImageMatting",tA]]]),aH=new Map([["swin2sr",["Swin2SRForImageSuperResolution",t8]]]),aJ=new Map([["dpt",["DPTForDepthEstimation",nt]],["depth_anything",["DepthAnythingForDepthEstimation",na]],["glpn",["GLPNForDepthEstimation",nr]]]),aZ=new Map([["clip",["CLIPVisionModelWithProjection",s$]],["siglip",["SiglipVisionModel",sU]]]),aY=[[aS,h.EncoderOnly],[aC,h.EncoderDecoder],[aF,h.DecoderOnly],[aE,h.EncoderOnly],[aO,h.EncoderOnly],[aB,h.Seq2Seq],[aL,h.Seq2Seq],[aT,h.DecoderOnly],[aD,h.EncoderOnly],[aI,h.EncoderOnly],[aq,h.Vision2Seq],[aG,h.EncoderOnly],[aj,h.EncoderOnly],[a$,h.EncoderOnly],[aK,h.EncoderOnly],[aH,h.EncoderOnly],[aJ,h.EncoderOnly],[aV,h.EncoderOnly],[az,h.EncoderOnly],[aW,h.MaskGeneration],[aR,h.EncoderOnly],[aQ,h.EncoderOnly],[aA,h.Seq2Seq],[aP,h.EncoderOnly],[aU,h.EncoderOnly],[aX,h.EncoderOnly],[aZ,h.EncoderOnly]];for(let[e,s]of aY)for(let[t,n]of e.values())m.set(t,s),f.set(n,t),p.set(t,n);for(let[e,s,t]of[["CLIPTextModelWithProjection",sj,h.EncoderOnly],["SiglipTextModel",sQ,h.EncoderOnly],["ClapTextModelWithProjection",au,h.EncoderOnly],["ClapAudioModelWithProjection",ah,h.EncoderOnly]])m.set(e,t),f.set(s,e),p.set(e,s);class a2 extends av{static MODEL_CLASS_MAPPINGS=aY.map(e=>e[0]);static BASE_IF_FAIL=!0}class a0 extends av{static MODEL_CLASS_MAPPINGS=[aE]}class a1 extends av{static MODEL_CLASS_MAPPINGS=[aO]}class a4 extends av{static MODEL_CLASS_MAPPINGS=[aB]}class a3 extends av{static MODEL_CLASS_MAPPINGS=[aL]}class a5 extends av{static MODEL_CLASS_MAPPINGS=[aA]}class a6 extends av{static MODEL_CLASS_MAPPINGS=[aP]}class a7 extends av{static MODEL_CLASS_MAPPINGS=[aT]}class a9 extends av{static MODEL_CLASS_MAPPINGS=[aD]}class a8 extends av{static MODEL_CLASS_MAPPINGS=[aI]}class ie extends av{static MODEL_CLASS_MAPPINGS=[aq]}class is extends av{static MODEL_CLASS_MAPPINGS=[aG]}class it extends av{static MODEL_CLASS_MAPPINGS=[aj]}class ia extends av{static MODEL_CLASS_MAPPINGS=[a$]}class ii extends av{static MODEL_CLASS_MAPPINGS=[aV]}class io extends av{static MODEL_CLASS_MAPPINGS=[az]}class ir extends av{static MODEL_CLASS_MAPPINGS=[aR]}class il extends av{static MODEL_CLASS_MAPPINGS=[aQ]}class ic extends av{static MODEL_CLASS_MAPPINGS=[aN]}class id extends av{static MODEL_CLASS_MAPPINGS=[aH]}class i_ extends av{static MODEL_CLASS_MAPPINGS=[aJ]}class iu extends av{static MODEL_CLASS_MAPPINGS=[aZ]}class ih extends O{constructor({logits:e,past_key_values:s,encoder_outputs:t,decoder_attentions:n=null,cross_attentions:a=null}){super(),this.logits=e,this.past_key_values=s,this.encoder_outputs=t,this.decoder_attentions=n,this.cross_attentions=a}}class im extends O{constructor({logits:e}){super(),this.logits=e}}class ip extends O{constructor({logits:e,embeddings:s}){super(),this.logits=e,this.embeddings=s}}class ig extends O{constructor({logits:e}){super(),this.logits=e}}class iw extends O{constructor({logits:e}){super(),this.logits=e}}class ix extends O{constructor({start_logits:e,end_logits:s}){super(),this.start_logits=e,this.end_logits=s}}class iy extends O{constructor({logits:e}){super(),this.logits=e}}class iM extends O{constructor({alphas:e}){super(),this.alphas=e}}class ik extends O{constructor({waveform:e,spectrogram:s}){super(),this.waveform=e,this.spectrogram=s}}}}]); \ No newline at end of file diff --git a/_next/static/chunks/6139e184-f911fd69801d47e5.js b/_next/static/chunks/6139e184-f911fd69801d47e5.js new file mode 100644 index 0000000000000000000000000000000000000000..55f03e8006982d83f4d76317e04a1e447b8a63a5 --- /dev/null +++ b/_next/static/chunks/6139e184-f911fd69801d47e5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[132],{9454:function(e,s,t){t.d(s,{$Bv:function(){return id},$Sz:function(){return a6},DcG:function(){return ip},ENH:function(){return ih},En$:function(){return il},Hqk:function(){return ia},IFL:function(){return ix},K2m:function(){return im},Kf0:function(){return a8},LdW:function(){return iu},OjJ:function(){return a9},S2d:function(){return ig},U$$:function(){return ic},Zn:function(){return i_},hY6:function(){return iw},hZO:function(){return ie},lbf:function(){return is},o$X:function(){return a7},t78:function(){return ii},tLj:function(){return ir},wiU:function(){return io},z6E:function(){return it}});var n=t(16),a=t(761),i=t(911),o=t(5774),r=t(2414),l=t(967),c=t(9078);let{InferenceSession:d,Tensor:_,env:u}=l.ONNX,h={EncoderOnly:0,EncoderDecoder:1,Seq2Seq:2,Vision2Seq:3,DecoderOnly:4,MaskGeneration:5},m=new Map,p=new Map,f=new Map;async function g(e,s,t){let n=`onnx/${s}${t.quantized?"_quantized":""}.onnx`,a=await (0,i.st)(e,n,!0,t);try{return await d.create(a,{executionProviders:l.p})}catch(e){if(1===l.p.length&&"wasm"===l.p[0])throw e;return console.warn(e),console.warn("Something went wrong during model construction (most likely a missing operation). Using `wasm` as a fallback. "),await d.create(a,{executionProviders:["wasm"]})}}async function w(e,s){let t=function(e,s){let t=Object.create(null),n=[];for(let a of e.inputNames){let e=s[a];if(!(e instanceof r.es)){n.push(a);continue}t[a]=u.wasm.proxy?e.clone():e}if(n.length>0)throw Error(`An error occurred during model execution: "Missing the following inputs: ${n.join(", ")}.`);let a=Object.keys(s).length,i=e.inputNames.length;if(a>i){let t=Object.keys(s).filter(s=>!e.inputNames.includes(s));console.warn(`WARNING: Too many inputs were provided (${a} > ${i}). The following inputs will be ignored: "${t.join(", ")}".`)}return t}(e,s);try{let s=await e.run(t);return s=function e(s){for(let t in s)s[t]instanceof _?s[t]=new r.es(s[t]):"object"==typeof s[t]&&e(s[t]);return s}(s)}catch(e){throw console.error(`An error occurred during model execution: "${e}".`),console.error("Inputs given to model:",t),e}}function x(e,s){let t=e.config.pad_token_id??null,n=e.config.eos_token_id??null;(0,a.Wy)(n)&&(n=[n]);let i=-1!==s.indexOf(t),o=null===n||!n.includes(t);if(!i||!o)return(0,r.r6)(s);{let e=BigInt64Array.from(s.data.map(e=>e!=t));return new r.es("int64",e,s.dims)}}function y(e,s,t){if(!e.inputNames.includes("position_ids"))return;let n=new BigInt64Array(s.attention_mask.data.length);for(let e=0;eBigInt(e))),[1,e.length]);if(e.some(s=>s.length!==e[0].length))throw Error("Unable to create tensor, you should probably activate truncation and/or padding with 'padding=True' and/or 'truncation=True' to have batched tensors with the same length.");return new r.es("int64",BigInt64Array.from(e.flat().map(e=>BigInt(e))),[e.length,e[0].length])}(n),encoder_outputs:s.encoder_outputs,past_key_values:s.prev_model_outputs?.past_key_values};s.attention_mask&&(a.attention_mask=s.attention_mask);let i=await e.forward(a);return s.prev_model_outputs=i,s.encoder_outputs=i.encoder_outputs,i}function S(e,s){e.output_token_ids=[...e.output_token_ids,s]}async function F(e,s){let t=Object.create(null);for(let n of e.session.inputNames)t[n]=s[n];return e.session.inputNames.includes("token_type_ids")&&!t.token_type_ids&&(t.token_type_ids=new r.es("int64",new BigInt64Array(t.input_ids.data.length),t.input_ids.dims)),await w(e.session,t)}async function C(e,s){let{input_ids:t,past_key_values:n,attention_mask:a}=s,i={input_ids:t,attention_mask:a??x(e,t)},o=!!n;e.session.inputNames.includes("use_cache_branch")&&(i.use_cache_branch=M(o)),y(e.session,i,o),e.addPastKeyValues(i,n);let r=await w(e.session,i);return{logits:r.logits,past_key_values:n=e.getPastKeyValues(r,n)}}function L(e,s,t,n,a){let i=[],o=0;for(let t of s){let s,r=t.tolist().map(Number);t.dims=[1,...t.dims],a?(s=a[o]).dims=[1,...s.dims]:s=x(e,t);let l={input:t,model_input_ids:t,attention_mask:s,prev_model_outputs:null,output_token_ids:r,num_output_tokens:n,done:!1,score:0,id:o++};i.push(l)}return i}async function A(e,s){let t=new BigInt64Array(s.output_token_ids.length).fill(1n),n={input_ids:s.model_input_ids,attention_mask:new r.es("int64",t,[1,t.length]),past_key_values:s.prev_model_outputs?.past_key_values},a=await e.forward(n);return s.prev_model_outputs=a,a}function P(e,s){e.output_token_ids=[...e.output_token_ids,s],e.model_input_ids=new r.es("int64",[BigInt(s)],[1,1])}class E extends a.Ag{main_input_name="input_ids";constructor(e,s){super(),this.config=e,this.session=s;let t=f.get(this.constructor),n=m.get(t);this.can_generate=!1,this._runBeam=null,this._getStartBeams=null,this._updateBeam=null,this._forward=null,n===h.DecoderOnly?(this.can_generate=!0,this._runBeam=A,this._getStartBeams=L,this._updateBeam=P,this._forward=C):n===h.Seq2Seq||n===h.Vision2Seq?(this.can_generate=!0,this._runBeam=v,this._getStartBeams=b,this._updateBeam=S,this._forward=k):(h.EncoderDecoder,this._forward=F)}async dispose(){let e=[];for(let s of Object.keys(this)){let t=this[s];t instanceof d&&e.push(t.handler.dispose())}return await Promise.all(e)}static async from_pretrained(e,{quantized:s=!0,progress_callback:t=null,config:a=null,cache_dir:o=null,local_files_only:r=!1,revision:l="main",model_file_name:c=null}={}){let d,_={quantized:s,progress_callback:t,config:a,cache_dir:o,local_files_only:r,revision:l,model_file_name:c},u=f.get(this),p=m.get(u);return p===h.DecoderOnly?d=await Promise.all([n.z.from_pretrained(e,_),g(e,_.model_file_name??"decoder_model_merged",_),(0,i.yM)(e,"generation_config.json",!1,_)]):p===h.Seq2Seq||p===h.Vision2Seq?d=await Promise.all([n.z.from_pretrained(e,_),g(e,"encoder_model",_),g(e,"decoder_model_merged",_),(0,i.yM)(e,"generation_config.json",!1,_)]):p===h.MaskGeneration?d=await Promise.all([n.z.from_pretrained(e,_),g(e,"vision_encoder",_),g(e,"prompt_encoder_mask_decoder",_)]):p===h.EncoderDecoder?d=await Promise.all([n.z.from_pretrained(e,_),g(e,"encoder_model",_),g(e,"decoder_model_merged",_)]):(p!==h.EncoderOnly&&console.warn(`Model type for '${u??a?.model_type}' not found, assuming encoder-only architecture. Please report this at https://github.com/xenova/transformers.js/issues/new/choose.`),d=await Promise.all([n.z.from_pretrained(e,_),g(e,_.model_file_name??"model",_)])),new this(...d)}async _call(e){return await this.forward(e)}async forward(e){return await this._forward(this,e)}_get_logits_processor(e,s,t=null){let n=new o.Jm;if(null!==e.repetition_penalty&&1!==e.repetition_penalty&&n.push(new o.Jj(e.repetition_penalty)),null!==e.no_repeat_ngram_size&&e.no_repeat_ngram_size>0&&n.push(new o.jF(e.no_repeat_ngram_size)),null!==e.bad_words_ids&&n.push(new o.AE(e.bad_words_ids,e.eos_token_id)),null!==e.min_length&&null!==e.eos_token_id&&e.min_length>0&&n.push(new o.ez(e.min_length,e.eos_token_id)),null!==e.min_new_tokens&&null!==e.eos_token_id&&e.min_new_tokens>0&&n.push(new o.CJ(s,e.min_new_tokens,e.eos_token_id)),null!==e.forced_bos_token_id&&n.push(new o.C9(e.forced_bos_token_id)),null!==e.forced_eos_token_id&&n.push(new o.dZ(e.max_length,e.forced_eos_token_id)),null!==e.begin_suppress_tokens){let t=s>1||null===e.forced_bos_token_id?s:s+1;null!==e.forced_decoder_ids&&(t+=e.forced_decoder_ids[e.forced_decoder_ids.length-1][0]),n.push(new o.GU(e.begin_suppress_tokens,t))}return null!==e.forced_decoder_ids&&n.push(new o.E(e.forced_decoder_ids)),null!==t&&n.extend(t),n}_get_generation_config(e){let s=new o.aP(this.config);return"generation_config"in this&&Object.assign(s,this.generation_config),null!==e&&Object.assign(s,e),s}async generate(e,s=null,t=null,{inputs_attention_mask:n=null}={}){let i;if(!this.can_generate){let e=f.get(this.constructor),s=`The current model class (${e}) is not compatible with \`.generate()\`, as it doesn't have a language model head.`,t=this.config.model_type,n=aV.get(t)??aG.get(t)??aB.get(t)??a$.get(t);throw n&&(s+=` Please use the following class instead: '${n[0]}'`),Error(s)}if(!(e instanceof r.es)&&!(0,a.fU)(e)&&!Array.isArray(e))throw Error(`\`inputs\` must be a Tensor, TypedArray, or Array, but is "${e.constructor.name}".`);if(this.config.is_encoder_decoder)i=0;else if(0===(i=e instanceof r.es?e.dims.at(-1):e.length))throw Error("Must supply a non-empty array of input token ids.");s=this._get_generation_config(s),t=t??new o.Jm,t=this._get_logits_processor(s,i,t);let l=s.eos_token_id;null===l||Array.isArray(l)||(l=[l]);let c=1,d=1+(s.max_new_tokens??1/0),_=Number.isInteger(s.max_length)&&(s.max_new_tokens??null)===null,u=o.Z4.getSampler(s),h=this.getStartBeams(e,s,c,n);for(;h.some(e=>!e.done)&&c=s.max_length){n.done=!0,e.push(n);continue}let a=await this.runBeam(n);s.output_attentions&&this.addAttentionsToBeam(n,a),s.output_scores;let i=a.logits.slice(null,-1,null);for(let[s,a]of(t(n.output_token_ids,i),u(i))){let t={...n};this.updateBeam(t,s),t.score+=a,l&&l.includes(s)&&(t.done=!0),e.push(t)}}++c,h=(e=this.groupBeams(e).map(e=>e.sort((e,s)=>s.score-e.score).slice(0,s.num_beams))).flat(),s.callback_function&&s.callback_function(h)}let m=this.groupBeams(h),p=e=>m.map(t=>s.num_return_sequences>1?t.slice(0,s.num_return_sequences).map(s=>s[e]):[t[0][e]]).flat(),g=p("output_token_ids");return s.return_dict_in_generate?{sequences:g,decoder_attentions:p("decoder_attentions"),cross_attentions:p("cross_attentions")}:g}addAttentionsToBeam(e,s){if(this.config.is_encoder_decoder){if(!s.cross_attentions||0===s.cross_attentions.length)throw Error("`output_attentions` is true, but the model did not produce cross-attentions. This is most likely because the model was not exported with `output_attentions=True`.");e.cross_attentions||(e.cross_attentions=[]),e.cross_attentions.push(s.cross_attentions)}if(!s.decoder_attentions||0===s.decoder_attentions.length)throw Error("`output_attentions` is true, but the model did not produce decoder-attentions. This is most likely because the model was not exported with `output_attentions=True`.");e.decoder_attentions||(e.decoder_attentions=[]),e.decoder_attentions.push(s.decoder_attentions)}groupBeams(e){let s=Object.create(null);for(let t of e)void 0===s[t.id]?s[t.id]=[t]:s[t.id].push(t);return Object.values(s)}getPastKeyValues(e,s){let t=Object.create(null);for(let n in e)if(n.startsWith("present")){let a=n.replace("present","past_key_values");s&&n.includes("encoder")?t[a]=s[a]:t[a]=e[n]}return t}getAttentions(e){let s=Object.create(null);for(let t of["cross_attentions","decoder_attentions"]){let n=[];for(let s in e)s.startsWith(t)&&(n[s.split(".").pop()]=e[s]);s[t]=n}return s}addPastKeyValues(e,s){if(s)Object.assign(e,s);else if(this.config.is_encoder_decoder&&(this.add_encoder_pkv??!0)){let s=[1,this.num_encoder_heads,0,this.encoder_dim_kv],t=[1,this.num_decoder_heads,0,this.decoder_dim_kv];for(let n=0;n{let n=Array.from({length:this.config.decoder_layers},(s,t)=>(0,r.d3)(e.map(e=>e[t]),2)),a=(0,r.kn)(s.map(([e,s])=>t?n[e].slice(null,s,null,[0,t]):n[e].slice(null,s)));a=a.transpose(1,0,2,3);let[o,l]=(0,r.f3)(a,-2,0,!0),d=a.clone();for(let e=0;et[s+1]-t[s]),c=(0,a.eG)([1],l).map(e=>!!e),_=[];for(let e=0;ee*s,1);e.input_labels=new r.es("int64",new BigInt64Array(t).fill(1n),s)}return await w(this.prompt_encoder_mask_decoder,{input_points:e.input_points,input_labels:e.input_labels,image_embeddings:e.image_embeddings,image_positional_embeddings:e.image_positional_embeddings})}async _call(e){return new nE(await super._call(e))}}class nE extends T{constructor({iou_scores:e,pred_masks:s}){super(),this.iou_scores=e,this.pred_masks=s}}class nT extends E{}class nO extends nT{}class nB extends nT{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class nD extends E{}class nI extends nD{}class nq extends nD{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class nN extends E{}class nG extends nN{}class nV extends nN{async _call(e){return new iF(await super._call(e))}}class nz extends nN{async _call(e){return new iM(await super._call(e))}}class nj extends nN{async _call(e){return new ib(await super._call(e))}}class n$ extends E{}class nW extends n${}class nR extends n${async _call(e){return new iF(await super._call(e))}}class nQ extends n${async _call(e){return new iM(await super._call(e))}}class nU extends E{}class nX extends nU{}class nK extends nU{async _call(e){return new iF(await super._call(e))}}class nH extends nU{async _call(e){return new iM(await super._call(e))}}class nJ extends nU{async _call(e){return new ib(await super._call(e))}}class nZ extends E{}class nY extends nZ{}class n2 extends nZ{async _call(e){return new iF(await super._call(e))}}class n0 extends nZ{async _call(e){return new iM(await super._call(e))}}class n1 extends nN{}class n4 extends nN{async _call(e){return new iF(await super._call(e))}}class n3 extends nN{async _call(e){return new iM(await super._call(e))}}class n5 extends E{}class n6 extends n5{}class n7 extends n5{async _call(e){return new iF(await super._call(e))}}class n9 extends n5{async _call(e){return new iM(await super._call(e))}}class n8 extends n5{async _call(e){return new ik(await super._call(e))}}class ae extends n5{async _call(e){return new ib(await super._call(e))}}class as extends E{}class at extends as{}class an extends as{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.hidden_size/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.hidden_size/this.num_encoder_heads}async generate_speech(e,s,{threshold:t=.5,minlenratio:n=0,maxlenratio:a=20,vocoder:i=null}={}){let{encoder_outputs:o,encoder_attention_mask:l}=await F(this,{input_ids:e}),c=o.dims[1]/this.config.reduction_factor,d=Math.floor(c*a),_=Math.floor(c*n),u=this.config.num_mel_bins,h=[],m=null,p=null,f=0;for(;;){++f;let e={use_cache_branch:M(!!p),output_sequence:p?p.output_sequence_out:new r.es("float32",new Float32Array(u),[1,1,u]),encoder_attention_mask:l,speaker_embeddings:s,encoder_hidden_states:o};this.addPastKeyValues(e,m),p=await w(this.decoder_merged_session,e),m=this.getPastKeyValues(p,m);let{prob:n,spectrum:a}=p;if(h.push(a),f>=_&&(Array.from(n.data).filter(e=>e>=t).length>0||f>=d))break}let g=(0,r.d3)(h),{waveform:x}=await w(i.session,{spectrogram:g});return{spectrogram:g,waveform:x}}}class aa extends E{main_input_name="spectrogram"}class ai extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_encoder_layers=this.num_decoder_layers=this.config.decoder_layers,this.num_encoder_heads=this.num_decoder_heads=this.config.decoder_attention_heads,this.encoder_dim_kv=this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads}}class ao extends ai{}class ar extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_key_value_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class al extends ar{}class ac extends ar{}class ad extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_key_value_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class a_ extends ad{}class au extends ad{}class ah extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class am extends ah{}class ap extends ah{}class af extends E{}class ag extends af{}class aw extends af{static async from_pretrained(e,s={}){return s.model_file_name??="text_model",super.from_pretrained(e,s)}}class ax extends af{static async from_pretrained(e,s={}){return s.model_file_name??="audio_model",super.from_pretrained(e,s)}}class ay extends E{}class aM extends ay{async _call(e){return new iL(await super._call(e))}}class ak extends E{}class ab extends ak{}class av extends ak{}class aS extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class aF extends aS{}class aC extends E{}class aL extends aC{}class aA extends aC{async _call(e){return new iM(await super._call(e))}}class aP{static MODEL_CLASS_MAPPINGS=null;static BASE_IF_FAIL=!1;static async from_pretrained(e,{quantized:s=!0,progress_callback:t=null,config:a=null,cache_dir:i=null,local_files_only:o=!1,revision:r="main",model_file_name:l=null}={}){let c={quantized:s,progress_callback:t,config:a,cache_dir:i,local_files_only:o,revision:r,model_file_name:l};if(a=await n.z.from_pretrained(e,c),c.config||(c.config=a),!this.MODEL_CLASS_MAPPINGS)throw Error("`MODEL_CLASS_MAPPINGS` not implemented for this type of `AutoClass`: "+this.name);for(let s of this.MODEL_CLASS_MAPPINGS){let t=s.get(a.model_type);if(t)return await t[1].from_pretrained(e,c)}if(this.BASE_IF_FAIL)return console.warn(`Unknown model class "${a.model_type}", attempting to construct from base class.`),await E.from_pretrained(e,c);throw Error(`Unsupported model type: ${a.model_type}`)}}let aE=new Map([["bert",["BertModel",B]],["nomic_bert",["NomicBertModel",V]],["roformer",["RoFormerModel",j]],["electra",["ElectraModel",ee]],["esm",["EsmModel",eP]],["convbert",["ConvBertModel",X]],["camembert",["CamembertModel",eo]],["deberta",["DebertaModel",eu]],["deberta-v2",["DebertaV2Model",ew]],["mpnet",["MPNetModel",eV]],["albert",["AlbertModel",eJ]],["distilbert",["DistilBertModel",ev]],["roberta",["RobertaModel",sf]],["xlm",["XLMModel",sk]],["xlm-roberta",["XLMRobertaModel",sL]],["clap",["ClapModel",ag]],["clip",["CLIPModel",sz]],["clipseg",["CLIPSegModel",sJ]],["chinese_clip",["ChineseCLIPModel",sK]],["siglip",["SiglipModel",sR]],["mobilebert",["MobileBertModel",eD]],["squeezebert",["SqueezeBertModel",eQ]],["wav2vec2",["Wav2Vec2Model",nG]],["wav2vec2-bert",["Wav2Vec2BertModel",nY]],["unispeech",["UniSpeechModel",nW]],["unispeech-sat",["UniSpeechSatModel",nX]],["hubert",["HubertModel",n1]],["wavlm",["WavLMModel",n6]],["audio-spectrogram-transformer",["ASTModel",sB]],["vits",["VitsModel",aM]],["detr",["DetrModel",tK]],["table-transformer",["TableTransformerModel",t0]],["vit",["ViTModel",tF]],["fastvit",["FastViTModel",tA]],["mobilevit",["MobileViTModel",tB]],["mobilevitv2",["MobileViTV2Model",tq]],["owlvit",["OwlViTModel",tV]],["owlv2",["Owlv2Model",t$]],["beit",["BeitModel",tQ]],["deit",["DeiTModel",t5]],["convnext",["ConvNextModel",ng]],["convnextv2",["ConvNextV2Model",ny]],["dinov2",["Dinov2Model",nb]],["resnet",["ResNetModel",t9]],["swin",["SwinModel",ns]],["swin2sr",["Swin2SRModel",na]],["donut-swin",["DonutSwinModel",np]],["yolos",["YolosModel",nF]],["dpt",["DPTModel",nr]],["glpn",["GLPNModel",nu]],["hifigan",["SpeechT5HifiGan",aa]],["efficientnet",["EfficientNetModel",aL]]]),aT=new Map([["t5",["T5Model",e1]],["longt5",["LongT5Model",e5]],["mt5",["MT5Model",e9]],["bart",["BartModel",ss]],["mbart",["MBartModel",si]],["marian",["MarianModel",nO]],["whisper",["WhisperModel",sq]],["m2m_100",["M2M100Model",nI]],["blenderbot",["BlenderbotModel",sd]],["blenderbot-small",["BlenderbotSmallModel",sh]]]),aO=new Map([["bloom",["BloomModel",tg]],["gpt2",["GPT2Model",s2]],["gptj",["GPTJModel",s8]],["gpt_bigcode",["GPTBigCodeModel",tt]],["gpt_neo",["GPTNeoModel",s4]],["gpt_neox",["GPTNeoXModel",s6]],["codegen",["CodeGenModel",ti]],["llama",["LlamaModel",tl]],["qwen2",["Qwen2Model",t_]],["phi",["PhiModel",tm]],["mpt",["MptModel",ty]],["opt",["OPTModel",tb]],["mistral",["MistralModel",al]],["starcoder2",["Starcoder2Model",a_]],["falcon",["FalconModel",am]]]),aB=new Map([["speecht5",["SpeechT5ForSpeechToText",at]],["whisper",["WhisperForConditionalGeneration",sN]]]),aD=new Map([["speecht5",["SpeechT5ForTextToSpeech",an]]]),aI=new Map([["vits",["VitsModel",aM]]]),aq=new Map([["bert",["BertForSequenceClassification",I]],["roformer",["RoFormerForSequenceClassification",W]],["electra",["ElectraForSequenceClassification",et]],["esm",["EsmForSequenceClassification",eT]],["convbert",["ConvBertForSequenceClassification",H]],["camembert",["CamembertForSequenceClassification",el]],["deberta",["DebertaForSequenceClassification",em]],["deberta-v2",["DebertaV2ForSequenceClassification",ey]],["mpnet",["MPNetForSequenceClassification",ej]],["albert",["AlbertForSequenceClassification",eZ]],["distilbert",["DistilBertForSequenceClassification",eS]],["roberta",["RobertaForSequenceClassification",sw]],["xlm",["XLMForSequenceClassification",sv]],["xlm-roberta",["XLMRobertaForSequenceClassification",sP]],["bart",["BartForSequenceClassification",sn]],["mbart",["MBartForSequenceClassification",sr]],["mobilebert",["MobileBertForSequenceClassification",eq]],["squeezebert",["SqueezeBertForSequenceClassification",eX]]]),aN=new Map([["bert",["BertForTokenClassification",q]],["roformer",["RoFormerForTokenClassification",R]],["electra",["ElectraForTokenClassification",en]],["esm",["EsmForTokenClassification",eO]],["convbert",["ConvBertForTokenClassification",J]],["camembert",["CamembertForTokenClassification",ec]],["deberta",["DebertaForTokenClassification",ep]],["deberta-v2",["DebertaV2ForTokenClassification",eM]],["mpnet",["MPNetForTokenClassification",e$]],["distilbert",["DistilBertForTokenClassification",eF]],["roberta",["RobertaForTokenClassification",sx]],["xlm",["XLMForTokenClassification",sS]],["xlm-roberta",["XLMRobertaForTokenClassification",sE]]]),aG=new Map([["t5",["T5ForConditionalGeneration",e4]],["longt5",["LongT5ForConditionalGeneration",e6]],["mt5",["MT5ForConditionalGeneration",e8]],["bart",["BartForConditionalGeneration",st]],["mbart",["MBartForConditionalGeneration",so]],["marian",["MarianMTModel",nB]],["m2m_100",["M2M100ForConditionalGeneration",nq]],["blenderbot",["BlenderbotForConditionalGeneration",s_]],["blenderbot-small",["BlenderbotSmallForConditionalGeneration",sm]]]),aV=new Map([["bloom",["BloomForCausalLM",tw]],["gpt2",["GPT2LMHeadModel",s0]],["gptj",["GPTJForCausalLM",te]],["gpt_bigcode",["GPTBigCodeForCausalLM",tn]],["gpt_neo",["GPTNeoForCausalLM",s3]],["gpt_neox",["GPTNeoXForCausalLM",s7]],["codegen",["CodeGenForCausalLM",to]],["llama",["LlamaForCausalLM",tc]],["qwen2",["Qwen2ForCausalLM",tu]],["phi",["PhiForCausalLM",tp]],["mpt",["MptForCausalLM",tM]],["opt",["OPTForCausalLM",tv]],["mbart",["MBartForCausalLM",sl]],["mistral",["MistralForCausalLM",ac]],["starcoder2",["Starcoder2ForCausalLM",au]],["falcon",["FalconForCausalLM",ap]],["trocr",["TrOCRForCausalLM",ao]],["stablelm",["StableLmForCausalLM",aF]]]),az=new Map([["bert",["BertForMaskedLM",D]],["roformer",["RoFormerForMaskedLM",$]],["electra",["ElectraForMaskedLM",es]],["esm",["EsmForMaskedLM",eE]],["convbert",["ConvBertForMaskedLM",K]],["camembert",["CamembertForMaskedLM",er]],["deberta",["DebertaForMaskedLM",eh]],["deberta-v2",["DebertaV2ForMaskedLM",ex]],["mpnet",["MPNetForMaskedLM",ez]],["albert",["AlbertForMaskedLM",e2]],["distilbert",["DistilBertForMaskedLM",eL]],["roberta",["RobertaForMaskedLM",sg]],["xlm",["XLMWithLMHeadModel",sb]],["xlm-roberta",["XLMRobertaForMaskedLM",sA]],["mobilebert",["MobileBertForMaskedLM",eI]],["squeezebert",["SqueezeBertForMaskedLM",eU]]]),aj=new Map([["bert",["BertForQuestionAnswering",N]],["roformer",["RoFormerForQuestionAnswering",Q]],["electra",["ElectraForQuestionAnswering",ea]],["convbert",["ConvBertForQuestionAnswering",Z]],["camembert",["CamembertForQuestionAnswering",ed]],["deberta",["DebertaForQuestionAnswering",ef]],["deberta-v2",["DebertaV2ForQuestionAnswering",ek]],["mpnet",["MPNetForQuestionAnswering",eW]],["albert",["AlbertForQuestionAnswering",eY]],["distilbert",["DistilBertForQuestionAnswering",eC]],["roberta",["RobertaForQuestionAnswering",sy]],["xlm",["XLMForQuestionAnswering",sF]],["xlm-roberta",["XLMRobertaForQuestionAnswering",sT]],["mobilebert",["MobileBertForQuestionAnswering",eN]],["squeezebert",["SqueezeBertForQuestionAnswering",eK]]]),a$=new Map([["vision-encoder-decoder",["VisionEncoderDecoderModel",sG]]]),aW=new Map([["vision-encoder-decoder",["VisionEncoderDecoderModel",sG]]]),aR=new Map([["vit",["ViTForImageClassification",tC]],["fastvit",["FastViTForImageClassification",tP]],["mobilevit",["MobileViTForImageClassification",tD]],["mobilevitv2",["MobileViTV2ForImageClassification",tN]],["beit",["BeitForImageClassification",tU]],["deit",["DeiTForImageClassification",t6]],["convnext",["ConvNextForImageClassification",nw]],["convnextv2",["ConvNextV2ForImageClassification",nM]],["dinov2",["Dinov2ForImageClassification",nv]],["resnet",["ResNetForImageClassification",t8]],["swin",["SwinForImageClassification",nt]],["segformer",["SegformerForImageClassification",ab]],["efficientnet",["EfficientNetForImageClassification",aA]]]),aQ=new Map([["detr",["DetrForObjectDetection",tH]],["table-transformer",["TableTransformerForObjectDetection",t1]],["yolos",["YolosForObjectDetection",nC]]]),aU=new Map([["owlvit",["OwlViTForObjectDetection",tz]],["owlv2",["Owlv2ForObjectDetection",tW]]]),aX=new Map([["detr",["DetrForSegmentation",tJ]],["clipseg",["CLIPSegForImageSegmentation",sZ]]]),aK=new Map([["segformer",["SegformerForSemanticSegmentation",av]]]),aH=new Map([["sam",["SamModel",nP]]]),aJ=new Map([["wav2vec2",["Wav2Vec2ForCTC",nV]],["wav2vec2-bert",["Wav2Vec2BertForCTC",n2]],["unispeech",["UniSpeechForCTC",nR]],["unispeech-sat",["UniSpeechSatForCTC",nK]],["wavlm",["WavLMForCTC",n7]],["hubert",["HubertForCTC",n4]]]),aZ=new Map([["wav2vec2",["Wav2Vec2ForSequenceClassification",nz]],["wav2vec2-bert",["Wav2Vec2BertForSequenceClassification",n0]],["unispeech",["UniSpeechForSequenceClassification",nQ]],["unispeech-sat",["UniSpeechSatForSequenceClassification",nH]],["wavlm",["WavLMForSequenceClassification",n9]],["hubert",["HubertForSequenceClassification",n3]],["audio-spectrogram-transformer",["ASTForAudioClassification",sD]]]),aY=new Map([["wavlm",["WavLMForXVector",n8]]]),a2=new Map([["unispeech-sat",["UniSpeechSatForAudioFrameClassification",nJ]],["wavlm",["WavLMForAudioFrameClassification",ae]],["wav2vec2",["Wav2Vec2ForAudioFrameClassification",nj]]]),a0=new Map([["vitmatte",["VitMatteForImageMatting",tT]]]),a1=new Map([["swin2sr",["Swin2SRForImageSuperResolution",ni]]]),a4=new Map([["dpt",["DPTForDepthEstimation",nl]],["depth_anything",["DepthAnythingForDepthEstimation",nd]],["glpn",["GLPNForDepthEstimation",nh]]]),a3=new Map([["clip",["CLIPVisionModelWithProjection",s$]],["siglip",["SiglipVisionModel",sU]]]),a5=[[aE,h.EncoderOnly],[aT,h.EncoderDecoder],[aO,h.DecoderOnly],[aq,h.EncoderOnly],[aN,h.EncoderOnly],[aG,h.Seq2Seq],[aB,h.Seq2Seq],[aV,h.DecoderOnly],[az,h.EncoderOnly],[aj,h.EncoderOnly],[a$,h.Vision2Seq],[aR,h.EncoderOnly],[aX,h.EncoderOnly],[aK,h.EncoderOnly],[a0,h.EncoderOnly],[a1,h.EncoderOnly],[a4,h.EncoderOnly],[aQ,h.EncoderOnly],[aU,h.EncoderOnly],[aH,h.MaskGeneration],[aJ,h.EncoderOnly],[aZ,h.EncoderOnly],[aD,h.Seq2Seq],[aI,h.EncoderOnly],[aY,h.EncoderOnly],[a2,h.EncoderOnly],[a3,h.EncoderOnly]];for(let[e,s]of a5)for(let[t,n]of e.values())m.set(t,s),f.set(n,t),p.set(t,n);for(let[e,s,t]of[["CLIPTextModelWithProjection",sj,h.EncoderOnly],["SiglipTextModel",sQ,h.EncoderOnly],["ClapTextModelWithProjection",aw,h.EncoderOnly],["ClapAudioModelWithProjection",ax,h.EncoderOnly]])m.set(e,t),f.set(s,e),p.set(e,s);class a6 extends aP{static MODEL_CLASS_MAPPINGS=a5.map(e=>e[0]);static BASE_IF_FAIL=!0}class a7 extends aP{static MODEL_CLASS_MAPPINGS=[aq]}class a9 extends aP{static MODEL_CLASS_MAPPINGS=[aN]}class a8 extends aP{static MODEL_CLASS_MAPPINGS=[aG]}class ie extends aP{static MODEL_CLASS_MAPPINGS=[aB]}class is extends aP{static MODEL_CLASS_MAPPINGS=[aD]}class it extends aP{static MODEL_CLASS_MAPPINGS=[aI]}class ia extends aP{static MODEL_CLASS_MAPPINGS=[aV]}class ii extends aP{static MODEL_CLASS_MAPPINGS=[az]}class io extends aP{static MODEL_CLASS_MAPPINGS=[aj]}class ir extends aP{static MODEL_CLASS_MAPPINGS=[a$]}class il extends aP{static MODEL_CLASS_MAPPINGS=[aR]}class ic extends aP{static MODEL_CLASS_MAPPINGS=[aX]}class id extends aP{static MODEL_CLASS_MAPPINGS=[aK]}class i_ extends aP{static MODEL_CLASS_MAPPINGS=[aQ]}class iu extends aP{static MODEL_CLASS_MAPPINGS=[aU]}class ih extends aP{static MODEL_CLASS_MAPPINGS=[aJ]}class im extends aP{static MODEL_CLASS_MAPPINGS=[aZ]}class ip extends aP{static MODEL_CLASS_MAPPINGS=[aW]}class ig extends aP{static MODEL_CLASS_MAPPINGS=[a1]}class iw extends aP{static MODEL_CLASS_MAPPINGS=[a4]}class ix extends aP{static MODEL_CLASS_MAPPINGS=[a3]}class iy extends T{constructor({logits:e,past_key_values:s,encoder_outputs:t,decoder_attentions:n=null,cross_attentions:a=null}){super(),this.logits=e,this.past_key_values=s,this.encoder_outputs=t,this.decoder_attentions=n,this.cross_attentions=a}}class iM extends T{constructor({logits:e}){super(),this.logits=e}}class ik extends T{constructor({logits:e,embeddings:s}){super(),this.logits=e,this.embeddings=s}}class ib extends T{constructor({logits:e}){super(),this.logits=e}}class iv extends T{constructor({logits:e}){super(),this.logits=e}}class iS extends T{constructor({start_logits:e,end_logits:s}){super(),this.start_logits=e,this.end_logits=s}}class iF extends T{constructor({logits:e}){super(),this.logits=e}}class iC extends T{constructor({alphas:e}){super(),this.alphas=e}}class iL extends T{constructor({waveform:e,spectrogram:s}){super(),this.waveform=e,this.spectrogram=s}}}}]); \ No newline at end of file diff --git a/_next/static/chunks/755-7de149ecff927fc3.js b/_next/static/chunks/755-7de149ecff927fc3.js new file mode 100644 index 0000000000000000000000000000000000000000..245359d023393615d2510375f8b55b463551caa4 --- /dev/null +++ b/_next/static/chunks/755-7de149ecff927fc3.js @@ -0,0 +1,10 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[755],{542:function(e,t,r){"use strict";r.d(t,{G:function(){return m}});var o=r(281),s=r(9087),n=r(7449),l=r.n(n),i=r(2265);let a=["light","dark"],u="(prefers-color-scheme: dark)",h=(e,t)=>{let r;if(!(typeof window>"u")){try{r=localStorage.getItem(e)||void 0}catch{}return r||t}},d=e=>(e||(e=window.matchMedia(u)),e.matches?"dark":"light");var c=r(1636),f=r(2281);let m=(0,i.memo)(({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:l="theme",themes:m=a,defaultTheme:g=r?"system":"light",attribute:b="class",skipNextHead:v,onChangeTheme:y,value:k={dark:"t_dark",light:"t_light"},children:w})=>{let[_,S]=(0,i.useState)(()=>h(l,g)),[C,$]=(0,i.useState)(()=>h(l)),j=k?Object.values(k):m,O=(0,s.z)(r=>{let o=d(r),s=()=>$(o);t?s():i.startTransition(()=>s()),"system"!==_||e||T(o,!1)}),T=(0,s.z)((e,t=!0,o=!0)=>{let s=k?.[e]||e;if(t)try{localStorage.setItem(l,e)}catch{}if("system"===e&&r){let e=d();s=k?.[e]||e}if(y?.(s.replace("t_","")),o){let e=document.documentElement;"class"===b?(e.classList.remove(...j),e.classList.add(s)):e.setAttribute(b,s)}});(0,o.LI)(()=>{let e=window.matchMedia(u);return e.addListener(O),O(e),()=>{e.removeListener(O)}},[]);let E=(0,s.z)(t=>{e?T(t,!0,!1):T(t),S(t)});(0,i.useEffect)(()=>{let e=e=>{e.key===l&&E(e.newValue||g)};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}},[g,E,l]),(0,o.LI)(()=>{if(!n)return;let t=e&&a.includes(e)?e:_&&a.includes(_)?_:"system"===_&&C||null;("u">typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")!==(t||"light")&&document.documentElement.style.setProperty("color-scheme",t)},[n,_,C,e]);let x=(0,s.z)(()=>{let e="dark"===C?["system","light","dark"]:["system","dark","light"];E(e[(e.indexOf(_)+1)%e.length])}),F=r?C:void 0,R=(0,i.useMemo)(()=>({theme:_,current:_,set:E,toggle:x,forcedTheme:e,resolvedTheme:"system"===_?C:_,themes:r?[...m,"system"]:m,systemTheme:F}),[_,E,x,e,C,r,m,F]);return(0,f.jsxs)(c.m.Provider,{value:R,children:[(0,f.jsx)(p,{forcedTheme:e,storageKey:l,systemTheme:C,attribute:b,value:k,enableSystem:r,defaultTheme:g,attrs:j,skipNextHead:v}),(0,i.useMemo)(()=>w,[w])]})}),p=(0,i.memo)(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:o,defaultTheme:s,value:n,attrs:i,skipNextHead:a})=>{let h="class"===r?`var d=document.documentElement.classList;${i.map(e=>`d.remove('${e}')`).join(";")};`:"var d=document.documentElement;",d=(e,t)=>{e=n?.[e]||e;let o=t?e:`'${e}'`;return"class"===r?`d.add(${o})`:`d.setAttribute('${r}', ${o})`},c="system"===s,m=(0,f.jsx)(f.Fragment,{children:e?(0,f.jsx)("script",{dangerouslySetInnerHTML:{__html:`!function(){${h}${d(e)}}()`}},"next-themes-script"):o?(0,f.jsx)("script",{dangerouslySetInnerHTML:{__html:`!function(){try {${h}var e=localStorage.getItem('${t}');${c?"":d(s)+";"}if("system"===e||(!e&&${c})){var t="${u}",m=window.matchMedia(t);m.media!==t||m.matches?${d("dark")}:${d("light")}}else if(e) ${n?`var x=${JSON.stringify(n)};`:""}${d(n?"x[e]":"e",!0)}}catch(e){}}()`}},"next-themes-script"):(0,f.jsx)("script",{dangerouslySetInnerHTML:{__html:`!function(){try{${h}var e=localStorage.getItem("${t}");if(e){${n?`var x=${JSON.stringify(n)};`:""}${d(n?"x[e]":"e",!0)}}else{${d(s)};}}catch(t){}}();`}},"next-themes-script")});return a?m:(0,f.jsx)(l(),{children:m})},(e,t)=>e.forcedTheme===t.forcedTheme)},1636:function(e,t,r){"use strict";r.d(t,{m:function(){return o}});let o=(0,r(2265).createContext)({toggle:()=>{},set:e=>{},themes:[]})},9010:function(e,t,r){"use strict";r.d(t,{U:function(){return n}});var o=r(281),s=r(2265);let n=({fallback:e="light"}={})=>{let t=e;if(o.C5){let r=[...document.documentElement.classList];t=r.includes("t_dark")?"dark":r.includes("t_light")?"light":e}return(0,s.useState)(t)}},1542:function(e,t,r){"use strict";r.d(t,{P:function(){return n}});var o=r(2265),s=r(1636);let n=()=>(0,o.useContext)(s.m)},6463:function(e,t,r){"use strict";var o=r(1169);r.o(o,"permanentRedirect")&&r.d(t,{permanentRedirect:function(){return o.permanentRedirect}}),r.o(o,"useParams")&&r.d(t,{useParams:function(){return o.useParams}}),r.o(o,"usePathname")&&r.d(t,{usePathname:function(){return o.usePathname}}),r.o(o,"useSearchParams")&&r.d(t,{useSearchParams:function(){return o.useSearchParams}}),r.o(o,"useServerInsertedHTML")&&r.d(t,{useServerInsertedHTML:function(){return o.useServerInsertedHTML}})},7449:function(e,t){"use strict";function r(){return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},622:function(){},3398:function(e,t,r){"use strict";var o=r(357);r(622);var s=r(2265),n=s&&"object"==typeof s&&"default"in s?s:{default:s},l=void 0!==o&&o.env&&!0,i=function(e){return"[object String]"===Object.prototype.toString.call(e)},a=function(){function e(e){var t=void 0===e?{}:e,r=t.name,o=void 0===r?"stylesheet":r,s=t.optimizeForSpeed,n=void 0===s?l:s;u(i(o),"`name` must be a string"),this._name=o,this._deletedRulePlaceholder="#"+o+"-deleted-rule____{}",u("boolean"==typeof n,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=n,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var a="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=a?a.getAttribute("content"):null}var t=e.prototype;return t.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(l||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t>>0},d={};function c(e,t){if(!t)return"jsx-"+e;var r=String(t),o=e+r;return d[o]||(d[o]="jsx-"+h(e+"-"+r)),d[o]}function f(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var r=e+t;return d[r]||(d[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[r]}var m=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,o=void 0===r?null:r,s=t.optimizeForSpeed,n=void 0!==s&&s;this._sheet=o||new a({name:"styled-jsx",optimizeForSpeed:n}),this._sheet.inject(),o&&"boolean"==typeof n&&(this._sheet.setOptimizeForSpeed(n),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),o=r.styleId,s=r.rules;if(o in this._instancesCounts){this._instancesCounts[o]+=1;return}var n=s.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[o]=n,this._instancesCounts[o]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var o=this._fromServer&&this._fromServer[r];o?(o.parentNode.removeChild(o),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],o=e[1];return n.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:o}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,o=e.id;if(r){var s=c(o,r);return{styleId:s,rules:Array.isArray(t)?t.map(function(e){return f(s,e)}):[f(s,t)]}}return{styleId:c(o),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),p=s.createContext(null);p.displayName="StyleSheetContext";var g=n.default.useInsertionEffect||n.default.useLayoutEffect,b="undefined"!=typeof window?new m:void 0;function v(e){var t=b||s.useContext(p);return t&&("undefined"==typeof window?t.add(e):g(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}v.dynamic=function(e){return e.map(function(e){return c(e[0],e[1])}).join(" ")},t.style=v},8059:function(e,t,r){"use strict";e.exports=r(3398).style},7376:function(e,t,r){"use strict";r.d(t,{vc:function(){return ek}});let o={ussel:"userSelect",cur:"cursor",pe:"pointerEvents",col:"color",ff:"fontFamily",fos:"fontSize",fost:"fontStyle",fow:"fontWeight",ls:"letterSpacing",lh:"lineHeight",ta:"textAlign",tt:"textTransform",ww:"wordWrap",ac:"alignContent",ai:"alignItems",als:"alignSelf",b:"bottom",bg:"backgroundColor",bbc:"borderBottomColor",bblr:"borderBottomLeftRadius",bbrr:"borderBottomRightRadius",bbw:"borderBottomWidth",blc:"borderLeftColor",blw:"borderLeftWidth",bc:"borderColor",br:"borderRadius",bs:"borderStyle",brw:"borderRightWidth",brc:"borderRightColor",btc:"borderTopColor",btlr:"borderTopLeftRadius",btrr:"borderTopRightRadius",btw:"borderTopWidth",bw:"borderWidth",dsp:"display",f:"flex",fb:"flexBasis",fd:"flexDirection",fg:"flexGrow",fs:"flexShrink",fw:"flexWrap",h:"height",jc:"justifyContent",l:"left",m:"margin",mah:"maxHeight",maw:"maxWidth",mb:"marginBottom",mih:"minHeight",miw:"minWidth",ml:"marginLeft",mr:"marginRight",mt:"marginTop",mx:"marginHorizontal",my:"marginVertical",o:"opacity",ov:"overflow",p:"padding",pb:"paddingBottom",pl:"paddingLeft",pos:"position",pr:"paddingRight",pt:"paddingTop",px:"paddingHorizontal",py:"paddingVertical",r:"right",shac:"shadowColor",shar:"shadowRadius",shof:"shadowOffset",shop:"shadowOpacity",t:"top",w:"width",zi:"zIndex"};function s(e){return Object.entries(e)}function n(e){return Object.fromEntries(e)}function l(e){return 1/e===Number.NEGATIVE_INFINITY}o.bls="borderLeftStyle",o.brs="borderRightStyle",o.bts="borderTopStyle",o.bbs="borderBottomStyle",o.bxs="boxSizing",o.bxsh="boxShadow",o.ox="overflowX",o.oy="overflowY";let i=e=>"function"==typeof e?{name:e.name||"unnamed",mask:e}:e,a=(e,t)=>{let{skip:r}=t;return Object.fromEntries(Object.entries(e).filter(([e])=>!r||!(e in r)).map(([e,r])=>[e,function(e,t,r){let o,s=r.overrideStrategy,n=r.overrideSwap?.[e];if("u">typeof n)o=n,s="swap";else{let t=r.overrideShift?.[e];if("u">typeof t)o=t,s="shift";else{let t=r.override?.[e];"u">typeof t&&(o=t,s=r.overrideStrategy)}}return typeof o>"u"||"string"==typeof o?t:"swap"===s?o:t}(e,r,t)]))},u=()=>({name:"inverse-mask",mask:(e,t)=>a(n(s(e).map(([e,t])=>[e,-t])),t)}),h=({inverse:e}={},t)=>({name:"shift-mask",mask:(r,o)=>{let{override:s,overrideStrategy:n="shift",max:i,palette:u,min:h=0,strength:d=1}={...t,...o},c=Object.entries(r),f=i??(u?Object.values(u).length-1:Number.POSITIVE_INFINITY),m={};for(let[t,r]of c){if("string"==typeof r)continue;if("number"==typeof s?.[t]){let e=s[t];m[t]="shift"===n?r+e:e;continue}if("string"==typeof s?.[t]){m[t]=s[t];continue}let o=0===r?!l(r):r>=0,i=r+d*(o?1:-1)*(e?-1:1),a=o?Math.max(h,Math.min(f,i)):Math.min(-h,Math.max(-f,i));m[t]=a}return a(m,o)}}),d=e=>({name:"soften-mask",mask:h({},e).mask}),c=e=>({name:"strengthen-mask",mask:h({inverse:!0},e).mask}),f=new Map,m=(e,t)=>f.get(t||JSON.stringify(e)),p=(e,t)=>{let r={...t,cache:new Map};f.set(t.name||JSON.stringify(e),r),f.set(JSON.stringify(t.definition),r)},g=new Map;function b(e,t,r,o,s=!1){let n=s?"":JSON.stringify([o,e,t,r]);if(!s&&g.has(n))return g.get(n);let l={...Object.fromEntries(Object.entries(t).map(([t,r])=>[t,v(e,r)])),...r?.nonInheritedValues};return p(l,{palette:e,definition:t,options:r,name:o}),n&&g.set(n,l),l}let v=(e,t)=>{if(!e)throw Error("No palette!");if("string"==typeof t)return t;let r=e.length-1;return e[Math.min(Math.max(0,(0===t?!l(t):t>=0)?t:r+t),r)]};function y(e,t,r={},o){let s={...r.skip};if(e.options?.nonInheritedValues)for(let t in e.options.nonInheritedValues)s[t]=1;let n={parentName:o,palette:e.palette,...r,skip:s},l=t.mask(e.definition,n),i=b(e.palette,l);return{...e,cache:new Map,definition:l,theme:i}}class k{constructor(e){this.state=e}addPalettes(e){return this.state.palettes={...this.state.palettes,...e},this}addTemplates(e){return this.state.templates={...this.state.templates,...e},this}addMasks(e){return this.state.masks={...this.state.masks,...n(s(e).map(([e,t])=>[e,i(t)]))},this}_addedThemes=[];addThemes(e){return this._addedThemes.push({type:"themes",args:[e]}),this.state.themes={...this.state.themes,...e},this}addComponentThemes(e,t){return this.addChildThemes(e,t),this}addChildThemes(e,t){let r=this.state.themes;if(!r)throw Error("No themes defined yet, use addThemes first to set your base themes");this._addedThemes.push({type:"childThemes",args:[e,t]});let o=Object.keys(r),s=Object.keys(e),n=Object.fromEntries(o.flatMap(r=>{let o=t?.avoidNestingWithin;return o&&o.some(e=>r.startsWith(e)||r.endsWith(e))?[]:s.map(t=>{let o=`${r}_${t}`,s=e[t];return"avoidNestingWithin"in s&&s.avoidNestingWithin.some(e=>r.startsWith(e)||r.endsWith(e))?null:[o,s]}).filter(Boolean)})),l={...this.state.themes,...n};return this.state.themes=l,this}build(){if(!this.state.themes)return{};let e={},t=[];for(let r in this.state.themes){let o=r.split("_"),s=o.slice(0,o.length-1).join("_"),n=this.state.themes[r],l=Array.isArray(n)?n.find(e=>!e.parent||s.endsWith(e.parent)||s.startsWith(e.parent))||null:n;if(l){if("theme"in l)e[r]=l.theme;else if("mask"in l)t.push({parentName:s,themeName:r,mask:l});else{let{palette:t="",template:n,...i}=l;if(this.state.themes[s],!this.state.palettes)throw Error(`No palettes defined for theme with palette expected: ${r}`);let a=this.state.palettes[t||""],u=`${s}_${t}`;for(;!a&&u;)u in this.state.palettes?(a=this.state.palettes[u],t=u):u=u.split("_").slice(0,-1).join("_");if(!a)throw Error("No palette for theme");let h=this.state.templates?.[n]??this.state.templates?.[`${o[0]}_${n}`];if(!h)throw Error(`No template for theme ${r}: ${n}`);e[r]=function(e,t,r,o,s,n=!1){if(!e[t])throw Error(`No pallete: ${t}`);let l={...r};for(let o in r){let s=r[o];if("string"==typeof s&&"$"===s[0]){let[r,n]=s.split("."),i=r.slice(1),a=t.split("_")[0],u=e[i]||e[`${a}_${i}`];if(u){let e=v(u,+n);"u">typeof e&&(l[o]=e)}}}return b(e[t],l,o,s,n)}(this.state.palettes,t,h,i,r,!0)}}}for(let{mask:r,themeName:o,parentName:s}of t){let t=e[s];if(!t)continue;let{mask:n,...l}=r,i=this.state.masks?.[n];if(!i)throw Error(`No mask ${n}`);let a=this.state.themes[s];if(a&&"childOptions"in a){let{mask:e,...t}=a.childOptions;e&&(i=this.state.masks?.[e]),Object.assign(l,t)}e[o]=function(e,t,r={},o,s){let n=m(e,o);if(!n)throw Error("❌ Err2");let l=y(n,t,r,o);return p(l.theme,{definition:l.definition,palette:n.palette,name:s}),l.theme}(t,i,l,s,o)}return e}}let w=(...e)=>({name:"combine-mask",mask:(t,r)=>{let o=m(t,r.parentName),s;for(let n of e){if(!o)throw Error(`Nothing returned from mask: ${o}, for template: ${t} and mask: ${n.toString()}, given opts ${JSON.stringify(r,null,2)}`);let e=y(o,n,r);o=e,s=e.theme}return s}});d(),d({strength:2}),d({strength:3}),c(),u(),w(u(),d({strength:2})),w(u(),d({strength:3})),w(u(),d({strength:4})),w(u(),c({strength:2})),i((e,t)=>{let r=c().mask(e,t),o=d().mask(e,t);return{...r,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus}}),i((e,t)=>{let r=d({strength:2}).mask(e,t),o=d({strength:1}).mask(e,t);return{...r,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus}}),i((e,t)=>{let r=d({strength:2}).mask(e,t);return{...d({strength:3}).mask(e,t),borderColor:r.borderColor,borderColorHover:r.borderColorHover,borderColorPress:r.borderColorPress,borderColorFocus:r.borderColorFocus}}),i((e,t)=>{let r=a(e,t),o=d().mask(e,t);return{...r,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus}}),i((e,t)=>{let r=a(e,t),o=d({strength:2}).mask(e,t);return{...r,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus}});var _,S,C=r(7104);let $={blue:{blue1:"hsl(206, 100%, 99.2%)",blue2:"hsl(210, 100%, 98.0%)",blue3:"hsl(209, 100%, 96.5%)",blue4:"hsl(210, 98.8%, 94.0%)",blue5:"hsl(209, 95.0%, 90.1%)",blue6:"hsl(209, 81.2%, 84.5%)",blue7:"hsl(208, 77.5%, 76.9%)",blue8:"hsl(206, 81.9%, 65.3%)",blue9:"hsl(206, 100%, 50.0%)",blue10:"hsl(208, 100%, 47.3%)",blue11:"hsl(211, 100%, 43.2%)",blue12:"hsl(211, 100%, 15.0%)"},gray:{gray1:"hsl(0, 0%, 99.0%)",gray2:"hsl(0, 0%, 97.3%)",gray3:"hsl(0, 0%, 95.1%)",gray4:"hsl(0, 0%, 93.0%)",gray5:"hsl(0, 0%, 90.9%)",gray6:"hsl(0, 0%, 88.7%)",gray7:"hsl(0, 0%, 85.8%)",gray8:"hsl(0, 0%, 78.0%)",gray9:"hsl(0, 0%, 56.1%)",gray10:"hsl(0, 0%, 52.3%)",gray11:"hsl(0, 0%, 43.5%)",gray12:"hsl(0, 0%, 9.0%)"},green:{green1:"hsl(136, 50.0%, 98.9%)",green2:"hsl(138, 62.5%, 96.9%)",green3:"hsl(139, 55.2%, 94.5%)",green4:"hsl(140, 48.7%, 91.0%)",green5:"hsl(141, 43.7%, 86.0%)",green6:"hsl(143, 40.3%, 79.0%)",green7:"hsl(146, 38.5%, 69.0%)",green8:"hsl(151, 40.2%, 54.1%)",green9:"hsl(151, 55.0%, 41.5%)",green10:"hsl(152, 57.5%, 37.6%)",green11:"hsl(153, 67.0%, 28.5%)",green12:"hsl(155, 40.0%, 14.0%)"},orange:{orange1:"hsl(24, 70.0%, 99.0%)",orange2:"hsl(24, 83.3%, 97.6%)",orange3:"hsl(24, 100%, 95.3%)",orange4:"hsl(25, 100%, 92.2%)",orange5:"hsl(25, 100%, 88.2%)",orange6:"hsl(25, 100%, 82.8%)",orange7:"hsl(24, 100%, 75.3%)",orange8:"hsl(24, 94.5%, 64.3%)",orange9:"hsl(24, 94.0%, 50.0%)",orange10:"hsl(24, 100%, 46.5%)",orange11:"hsl(24, 100%, 37.0%)",orange12:"hsl(15, 60.0%, 17.0%)"},pink:{pink1:"hsl(322, 100%, 99.4%)",pink2:"hsl(323, 100%, 98.4%)",pink3:"hsl(323, 86.3%, 96.5%)",pink4:"hsl(323, 78.7%, 94.2%)",pink5:"hsl(323, 72.2%, 91.1%)",pink6:"hsl(323, 66.3%, 86.6%)",pink7:"hsl(323, 62.0%, 80.1%)",pink8:"hsl(323, 60.3%, 72.4%)",pink9:"hsl(322, 65.0%, 54.5%)",pink10:"hsl(322, 63.9%, 50.7%)",pink11:"hsl(322, 75.0%, 46.0%)",pink12:"hsl(320, 70.0%, 13.5%)"},purple:{purple1:"hsl(280, 65.0%, 99.4%)",purple2:"hsl(276, 100%, 99.0%)",purple3:"hsl(276, 83.1%, 97.0%)",purple4:"hsl(275, 76.4%, 94.7%)",purple5:"hsl(275, 70.8%, 91.8%)",purple6:"hsl(274, 65.4%, 87.8%)",purple7:"hsl(273, 61.0%, 81.7%)",purple8:"hsl(272, 60.0%, 73.5%)",purple9:"hsl(272, 51.0%, 54.0%)",purple10:"hsl(272, 46.8%, 50.3%)",purple11:"hsl(272, 50.0%, 45.8%)",purple12:"hsl(272, 66.0%, 16.0%)"},red:{red1:"hsl(359, 100%, 99.4%)",red2:"hsl(359, 100%, 98.6%)",red3:"hsl(360, 100%, 96.8%)",red4:"hsl(360, 97.9%, 94.8%)",red5:"hsl(360, 90.2%, 91.9%)",red6:"hsl(360, 81.7%, 87.8%)",red7:"hsl(359, 74.2%, 81.7%)",red8:"hsl(359, 69.5%, 74.3%)",red9:"hsl(358, 75.0%, 59.0%)",red10:"hsl(358, 69.4%, 55.2%)",red11:"hsl(358, 65.0%, 48.7%)",red12:"hsl(354, 50.0%, 14.6%)"},yellow:{yellow1:"hsl(60, 54.0%, 98.5%)",yellow2:"hsl(52, 100%, 95.5%)",yellow3:"hsl(55, 100%, 90.9%)",yellow4:"hsl(54, 100%, 86.6%)",yellow5:"hsl(52, 97.9%, 82.0%)",yellow6:"hsl(50, 89.4%, 76.1%)",yellow7:"hsl(47, 80.4%, 68.0%)",yellow8:"hsl(48, 100%, 46.1%)",yellow9:"hsl(53, 92.0%, 50.0%)",yellow10:"hsl(50, 100%, 48.5%)",yellow11:"hsl(42, 100%, 29.0%)",yellow12:"hsl(40, 55.0%, 13.5%)"}},j={blue:{blue1:"hsl(212, 35.0%, 9.2%)",blue2:"hsl(216, 50.0%, 11.8%)",blue3:"hsl(214, 59.4%, 15.3%)",blue4:"hsl(214, 65.8%, 17.9%)",blue5:"hsl(213, 71.2%, 20.2%)",blue6:"hsl(212, 77.4%, 23.1%)",blue7:"hsl(211, 85.1%, 27.4%)",blue8:"hsl(211, 89.7%, 34.1%)",blue9:"hsl(206, 100%, 50.0%)",blue10:"hsl(209, 100%, 60.6%)",blue11:"hsl(210, 100%, 66.1%)",blue12:"hsl(206, 98.0%, 95.8%)"},gray:{gray1:"hsl(0, 0%, 8.5%)",gray2:"hsl(0, 0%, 11.0%)",gray3:"hsl(0, 0%, 13.6%)",gray4:"hsl(0, 0%, 15.8%)",gray5:"hsl(0, 0%, 17.9%)",gray6:"hsl(0, 0%, 20.5%)",gray7:"hsl(0, 0%, 24.3%)",gray8:"hsl(0, 0%, 31.2%)",gray9:"hsl(0, 0%, 43.9%)",gray10:"hsl(0, 0%, 49.4%)",gray11:"hsl(0, 0%, 62.8%)",gray12:"hsl(0, 0%, 93.0%)"},green:{green1:"hsl(146, 30.0%, 7.4%)",green2:"hsl(155, 44.2%, 8.4%)",green3:"hsl(155, 46.7%, 10.9%)",green4:"hsl(154, 48.4%, 12.9%)",green5:"hsl(154, 49.7%, 14.9%)",green6:"hsl(154, 50.9%, 17.6%)",green7:"hsl(153, 51.8%, 21.8%)",green8:"hsl(151, 51.7%, 28.4%)",green9:"hsl(151, 55.0%, 41.5%)",green10:"hsl(151, 49.3%, 46.5%)",green11:"hsl(151, 50.0%, 53.2%)",green12:"hsl(137, 72.0%, 94.0%)"},orange:{orange1:"hsl(30, 70.0%, 7.2%)",orange2:"hsl(28, 100%, 8.4%)",orange3:"hsl(26, 91.1%, 11.6%)",orange4:"hsl(25, 88.3%, 14.1%)",orange5:"hsl(24, 87.6%, 16.6%)",orange6:"hsl(24, 88.6%, 19.8%)",orange7:"hsl(24, 92.4%, 24.0%)",orange8:"hsl(25, 100%, 29.0%)",orange9:"hsl(24, 94.0%, 50.0%)",orange10:"hsl(24, 100%, 58.5%)",orange11:"hsl(24, 100%, 62.2%)",orange12:"hsl(24, 97.0%, 93.2%)"},pink:{pink1:"hsl(318, 25.0%, 9.6%)",pink2:"hsl(319, 32.2%, 11.6%)",pink3:"hsl(319, 41.0%, 16.0%)",pink4:"hsl(320, 45.4%, 18.7%)",pink5:"hsl(320, 49.0%, 21.1%)",pink6:"hsl(321, 53.6%, 24.4%)",pink7:"hsl(321, 61.1%, 29.7%)",pink8:"hsl(322, 74.9%, 37.5%)",pink9:"hsl(322, 65.0%, 54.5%)",pink10:"hsl(323, 72.8%, 59.2%)",pink11:"hsl(325, 90.0%, 66.4%)",pink12:"hsl(322, 90.0%, 95.8%)"},purple:{purple1:"hsl(284, 20.0%, 9.6%)",purple2:"hsl(283, 30.0%, 11.8%)",purple3:"hsl(281, 37.5%, 16.5%)",purple4:"hsl(280, 41.2%, 20.0%)",purple5:"hsl(279, 43.8%, 23.3%)",purple6:"hsl(277, 46.4%, 27.5%)",purple7:"hsl(275, 49.3%, 34.6%)",purple8:"hsl(272, 52.1%, 45.9%)",purple9:"hsl(272, 51.0%, 54.0%)",purple10:"hsl(273, 57.3%, 59.1%)",purple11:"hsl(275, 80.0%, 71.0%)",purple12:"hsl(279, 75.0%, 95.7%)"},red:{red1:"hsl(353, 23.0%, 9.8%)",red2:"hsl(357, 34.4%, 12.0%)",red3:"hsl(356, 43.4%, 16.4%)",red4:"hsl(356, 47.6%, 19.2%)",red5:"hsl(356, 51.1%, 21.9%)",red6:"hsl(356, 55.2%, 25.9%)",red7:"hsl(357, 60.2%, 31.8%)",red8:"hsl(358, 65.0%, 40.4%)",red9:"hsl(358, 75.0%, 59.0%)",red10:"hsl(358, 85.3%, 64.0%)",red11:"hsl(358, 100%, 69.5%)",red12:"hsl(351, 89.0%, 96.0%)"},yellow:{yellow1:"hsl(45, 100%, 5.5%)",yellow2:"hsl(46, 100%, 6.7%)",yellow3:"hsl(45, 100%, 8.7%)",yellow4:"hsl(45, 100%, 10.4%)",yellow5:"hsl(47, 100%, 12.1%)",yellow6:"hsl(49, 100%, 14.3%)",yellow7:"hsl(49, 90.3%, 18.4%)",yellow8:"hsl(50, 100%, 22.0%)",yellow9:"hsl(53, 92.0%, 50.0%)",yellow10:"hsl(54, 100%, 68.0%)",yellow11:"hsl(48, 100%, 47.0%)",yellow12:"hsl(53, 100%, 91.0%)"}},O="rgba(0,0,0,0.04)",T="rgba(0,0,0,0.085)",E="rgba(0,0,0,0.2)",x="rgba(0,0,0,0.3)",F={...j.blue,...j.gray,...j.green,...j.orange,...j.pink,...j.purple,...j.red,...j.yellow},R={...$.blue,...$.gray,...$.green,...$.orange,...$.pink,...$.purple,...$.red,...$.yellow},P={white0:"rgba(255,255,255,0)",white075:"rgba(255,255,255,0.75)",white05:"rgba(255,255,255,0.5)",white025:"rgba(255,255,255,0.25)",black0:"rgba(10,10,10,0)",black075:"rgba(10,10,10,0.75)",black05:"rgba(10,10,10,0.5)",black025:"rgba(10,10,10,0.25)",white1:"#fff",white2:"#f8f8f8",white3:"hsl(0, 0%, 96.3%)",white4:"hsl(0, 0%, 94.1%)",white5:"hsl(0, 0%, 92.0%)",white6:"hsl(0, 0%, 90.0%)",white7:"hsl(0, 0%, 88.5%)",white8:"hsl(0, 0%, 81.0%)",white9:"hsl(0, 0%, 56.1%)",white10:"hsl(0, 0%, 50.3%)",white11:"hsl(0, 0%, 42.5%)",white12:"hsl(0, 0%, 9.0%)",black1:"#050505",black2:"#151515",black3:"#191919",black4:"#232323",black5:"#282828",black6:"#323232",black7:"#424242",black8:"#494949",black9:"#545454",black10:"#626262",black11:"#a5a5a5",black12:"#fff",...X(R,"Light"),...X(F,"Dark")},I=(()=>{let e=(e,t=0)=>e.replace("%)",`%, ${t})`).replace("hsl(","hsla("),t=(t,r)=>{let o=Object.values(t),s=o.length-4,n=Object.values(r),l=n[0],i=n[n.length-1];return[l,e(o[0],0),e(o[0],.25),e(o[0],.5),e(o[0],.75),...o,e(o[s],.75),e(o[s],.5),e(o[s],.25),e(o[s],0),i]},r={light:P.blue4Light,dark:P.blue4Dark},o=[r.light,P.white0,P.white025,P.white05,P.white075,P.white1,P.white2,P.white3,P.white4,P.white5,P.white6,P.white7,P.white8,P.white9,P.white10,P.white11,P.white12,P.black075,P.black05,P.black025,P.black0,r.dark],s=[r.dark,P.black0,P.black025,P.black05,P.black075,P.black1,P.black2,P.black3,P.black4,P.black5,P.black6,P.black7,P.black8,P.black9,P.black10,P.black11,P.black12,P.white075,P.white05,P.white025,P.white0,r.light],n=K($),l=Y(n.map((e,r)=>[`light_${e}`,t($[e],$[n[(r+1)%n.length]])])),i=K(j),a=Y(i.map((e,r)=>[`dark_${e}`,t(j[e],$[i[(r+1)%i.length]])]));return{light:o,dark:s,...{...l,...a}}})(),M=e=>{let t="light"===e?-1:1,r=-t,o={accentBackground:0,accentColor:-0,background0:1,background025:2,background05:3,background075:4,color1:5,color2:6,color3:7,color4:8,color5:9,color6:10,color7:11,color8:12,color9:13,color10:14,color11:15,color12:16,color0:-1,color025:-2,color05:-3,color075:-4,background:5,backgroundHover:5+t,backgroundPress:5+r,backgroundFocus:5+r,borderColor:8,borderColorHover:8+t,borderColorPress:8+r,borderColorFocus:8,color:-5,colorHover:-6,colorPress:-5,colorFocus:-6,colorTransparent:-1,placeholderColor:-8,outlineColor:-2},s={background:o.background+1,backgroundHover:o.backgroundHover+1,backgroundPress:o.backgroundPress+1,backgroundFocus:o.backgroundFocus+1,borderColor:o.borderColor+1,borderColorHover:o.borderColorHover+1,borderColorFocus:o.borderColorFocus+1,borderColorPress:o.borderColorPress+1},n={background:o.background+2,backgroundHover:o.backgroundHover+2,backgroundPress:o.backgroundPress+2,backgroundFocus:o.backgroundFocus+2,borderColor:o.borderColor+2,borderColorHover:o.borderColorHover+2,borderColorFocus:o.borderColorFocus+2,borderColorPress:o.borderColorPress+2},l={background:o.background+3,backgroundHover:o.backgroundHover+3,backgroundPress:o.backgroundPress+3,backgroundFocus:o.backgroundFocus+3,borderColor:o.borderColor+3,borderColorHover:o.borderColorHover+3,borderColorFocus:o.borderColorFocus+3,borderColorPress:o.borderColorPress+3},i={background:o.background+5,backgroundHover:o.background+5,backgroundPress:o.backgroundPress+5,backgroundFocus:o.backgroundFocus+5},a={...i,borderColor:i.background,borderColorHover:i.backgroundHover,borderColorFocus:i.backgroundFocus,borderColorPress:i.backgroundPress},u={color:s.background,colorHover:s.backgroundHover,colorPress:s.backgroundPress,colorFocus:s.backgroundFocus,background:o.color,backgroundHover:o.colorHover,backgroundPress:o.colorPress,backgroundFocus:o.colorFocus,borderColor:o.color-2,borderColorHover:o.color-3,borderColorFocus:o.color-4,borderColorPress:o.color-5},h={...u,background:o.color-2,backgroundHover:o.colorHover-2,backgroundPress:o.colorPress-2,backgroundFocus:o.colorFocus-2,borderColor:o.color-2-2,borderColorHover:o.color-3-2,borderColorFocus:o.color-4-2,borderColorPress:o.color-5-2},d={color:o.color-1,colorHover:o.colorHover-1,colorPress:o.colorPress-1,colorFocus:o.colorFocus-1},c={color:o.color-2,colorHover:o.colorHover-2,colorPress:o.colorPress-2,colorFocus:o.colorFocus-2};return{base:o,alt1:d,alt2:c,surface1:s,surface2:n,surface3:l,inverseSurface1:u,inverseActive:h,surfaceActive:a}},z=M("light"),A=M("dark"),H={...Y(K(z).map(e=>[`light_${e}`,z[e]])),...Y(K(A).map(e=>[`dark_${e}`,A[e]]))},L={light:{...R,shadowColor:T,shadowColorHover:T,shadowColorPress:O,shadowColorFocus:O},dark:{...F,shadowColor:x,shadowColorHover:x,shadowColorPress:E,shadowColorFocus:E}},N=[{parent:"light",theme:{background:"rgba(0,0,0,0.5)"}},{parent:"dark",theme:{background:"rgba(0,0,0,0.8)"}}],W=[{parent:"active",template:"inverseActive"},{parent:"",template:"inverseSurface1"}],B=[{parent:"active",template:"surfaceActive"},{parent:"",template:"surface1"}],D=[{parent:"active",template:"surfaceActive"},{parent:"",template:"surface2"}],V=new k({}).addPalettes(I).addTemplates(H).addThemes({light:{template:"base",palette:"light",nonInheritedValues:L.light},dark:{template:"base",palette:"dark",nonInheritedValues:L.dark}}).addChildThemes({orange:{palette:"orange",template:"base"},yellow:{palette:"yellow",template:"base"},green:{palette:"green",template:"base"},blue:{palette:"blue",template:"base"},purple:{palette:"purple",template:"base"},pink:{palette:"pink",template:"base"},red:{palette:"red",template:"base"},gray:{palette:"gray",template:"base"}}).addChildThemes({alt1:{template:"alt1"},alt2:{template:"alt2"},active:{template:"surface3"},surface1:{template:"surface1"},surface2:{template:"surface2"},surface3:{template:"surface3"},surface4:{template:"surfaceActive"}}).addComponentThemes({ListItem:{template:"surface1"},SelectTrigger:B,Card:B,Button:[{parent:"active",template:"surfaceActive"},{parent:"",template:"surface3"}],Checkbox:D,Switch:D,SwitchThumb:W,TooltipContent:D,Progress:{template:"surface1"},RadioGroupItem:D,TooltipArrow:{template:"surface1"},SliderTrackActive:{template:"surface3"},SliderTrack:{template:"surface1"},SliderThumb:W,Tooltip:W,ProgressIndicator:W,SheetOverlay:N,DialogOverlay:N,ModalOverlay:N,Input:B,TextArea:B},{avoidNestingWithin:["alt1","alt2","surface1","surface2","surface3","surface4"]}).build(),G={$0:0,"$0.25":2,"$0.5":4,"$0.75":8,$1:20,"$1.5":24,$2:28,"$2.5":32,$3:36,"$3.5":40,$4:44,$true:44,"$4.5":48,$5:52,$6:64,$7:74,$8:84,$9:94,$10:104,$11:124,$12:144,$13:164,$14:184,$15:204,$16:224,$17:224,$18:244,$19:264,$20:284},U=Object.entries(G).map(([e,t])=>[e,0===t?0:2===t?.5:4===t?1:8===t?1.5:t<=16?Math.round(.333*t):Math.floor(.7*t-12)]),J=U.slice(1).map(([e,t])=>[`-${e.slice(1)}`,-t]),q=(_={color:P,radius:{0:0,1:3,2:5,3:7,4:9,true:9,5:10,6:16,7:19,8:22,9:26,10:34,11:42,12:50},zIndex:{0:0,1:100,2:200,3:300,4:400,5:500},space:{...Object.fromEntries(U),...Object.fromEntries(J)},size:G},(0,C.D)(_));function X(e,t){return Object.fromEntries(Object.entries(e).map(([e,r])=>[`${e}${t}`,r]))}function Y(e){return Object.fromEntries(e)}function K(e){return Object.keys(e)}var Q=r(281),Z=r(1333),ee=r(5390),et=r(2265);let er="cubic-bezier(0.215, 0.610, 0.355, 1.000)",eo=function(e){let t=new WeakMap;return{animations:e,usePresence:ee.oO,ResetPresence:ee.il,supportsCSSVars:!0,useAnimatedNumber(e){let[r,o]=(0,et.useState)(e);return{getInstance:()=>o,getValue:()=>r,setValue(e,r,s){o(e);let n=t.get(o);n&&n.forEach(t=>t(e)),s?.()},stop(){}}},useAnimatedNumberReaction({value:e},r){(0,et.useEffect)(()=>{let o=e.getInstance(),s=t.get(o);if(!s){let e=new Set;t.set(o,e),s=e}return s.add(r),()=>{s?.delete(r)}},[])},useAnimatedNumberStyle:(e,t)=>t(e.getValue()),useAnimations:({props:t,presence:r,style:o,componentState:s,stateRef:n})=>{s.unmounted;let l=r?.[0]===!1,i=r?.[1],[a,u]=[].concat(t.animation),h=e[a],d=t.animateOnly??["all"];return(0,Q.LI)(()=>{let e=n.current.host;if(!i||!l||!e)return;let t=()=>{i?.()};return e.addEventListener("transitionend",t),e.addEventListener("transitioncancel",t),()=>{e.removeEventListener("transitionend",t),e.removeEventListener("transitioncancel",t)}},[i,l]),h?(Array.isArray(o.transform)&&(o.transform=(0,Z.m)(o.transform)),o.transition=d.map(t=>{let r=e[u?.[t]]??h;return`${t} ${r}`}).join(", "),{style:o}):null}}}({"75ms":"ease-in 75ms","100ms":"ease-in 100ms","200ms":"ease-in 200ms",bouncy:"ease-in 200ms",superBouncy:"ease-in 500ms",lazy:"ease-in 1000ms",medium:"ease-in 300ms",slow:"ease-in 500ms",quick:`${er} 400ms`,quicker:`${er} 300ms`,quickest:`${er} 200ms`,tooltip:"ease-in 400ms"}),es=["100","200","300","400","500","600","700","800","900"],en=(e,t,r)=>{if("string"==typeof e)return e;let o=Object.keys(e),s=e[o[0]];return Object.fromEntries([...new Set([...t,...o])].map(t=>{let o=e[t]??r??s;return s=o,r=o,[t,o]}))},el=e=>{let t=Object.keys(e.size);return Object.freeze(Object.fromEntries(Object.entries(e).map(([r,o])=>[r,en(o,"face"===r?es:t,"face"===r?{normal:e.family}:void 0)])))};var ei=r(2202);let ea=(e={},{sizeLineHeight:t=e=>e+10,sizeSize:r=e=>1*e}={})=>{let o=Object.fromEntries(Object.entries({...eu,...e.size}).map(([e,t])=>[e,r(+t)]));return el({family:Q.$L?'Inter, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif':"Inter",lineHeight:Object.fromEntries(Object.entries(o).map(([e,r])=>[e,t((0,ei.Ve)(r))])),weight:{4:"300"},letterSpacing:{4:0},...e,size:o})},eu={1:11,2:12,3:13,4:14,true:14,5:16,6:18,7:20,8:23,9:30,10:46,11:55,12:62,13:72,14:92,15:114,16:134},eh={1:11,2:12,3:13,4:14,5:15,6:16,7:18,8:21,9:28,10:42,11:52,12:62,13:72,14:92,15:114,16:124},ed={1:10,2:11,3:12,4:14,5:15,6:16,7:20,8:22,9:30,10:42,11:52,12:62,13:72,14:92,15:114,16:124},ec=((e={})=>el({family:Q.$L?"Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace":"Silkscreen",size:eh,lineHeight:Object.fromEntries(Object.entries(e.size||eh).map(([e,t])=>[e,"number"==typeof t?Math.round(1.2*t+6):t])),weight:{4:"300"},letterSpacing:{4:1,5:3,6:3,9:-2,10:-3,12:-4},...e}))(),ef=ea({size:{5:13,6:15,9:32,10:44},transform:{6:"uppercase",7:"none"},weight:{6:"400",7:"700"},color:{6:"$colorFocus",7:"$color"},letterSpacing:{5:2,6:1,7:0,8:0,9:-1,10:-1.5,12:-2,14:-3,15:-4},face:{700:{normal:"InterBold"},800:{normal:"InterBold"},900:{normal:"InterBold"}}},{sizeLineHeight:e=>Math.round(1.1*e+(e<30?10:5))}),em=ea({weight:{1:"400",7:"600"}},{sizeSize:e=>Math.round(e),sizeLineHeight:e=>Math.round(1.1*e+(e>=12?8:4))}),ep=function(e,t={},{sizeLineHeight:r=e=>1.35*e}={}){let o=t.size||ed;return el({family:e,size:o,lineHeight:Object.fromEntries(Object.entries(o).map(([e,t])=>[e,r(+t)])),weight:{0:"300"},letterSpacing:{4:0},...t})}('"ui-monospace", "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',{weight:{1:"500"},size:{1:11,2:12,3:13,4:14,5:16,6:18,7:20,8:22,9:30,10:42,11:52,12:62,13:72,14:92,15:114,16:124}},{sizeLineHeight:e=>1.5*e});var eg=r(9533);let eb=globalThis.matchMedia,ev=(S={xl:{maxWidth:1650},lg:{maxWidth:1280},md:{maxWidth:1020},sm:{maxWidth:800},xs:{maxWidth:660},xxs:{maxWidth:390},gtXs:{minWidth:661},gtSm:{minWidth:801},gtMd:{minWidth:1021},gtLg:{minWidth:1281},gtXl:{minWidth:1651}},(0,eg.D)(eb),S);var ey=r(357);globalThis.global||=globalThis;let ek={animations:eo,defaultFont:"body",shouldAddPrefersColorThemes:!0,themeClassNameOnRoot:!0,themes:"true"===ey.env.TAMAGUI_OPTIMIZE_THEMES?{}:V,media:ev,shorthands:o,tokens:q,fonts:{heading:ef,body:em,mono:ep,silkscreen:ec},mediaQueryDefaultActive:{xl:!0,lg:!0,md:!0,sm:!0,xs:!0,xxs:!1},selectionStyles:e=>e.color5?{backgroundColor:e.color5,color:e.color11}:null}},7104:function(e,t,r){"use strict";r.d(t,{D:function(){return l}});var o=r(8338),s=r(2202);let n=new WeakMap,l=(e,t="",r=!1)=>{if(n.has(e))return e;let i={},a=0;for(let n in e){a++;let u=e[n],h="$"===n[0],d=h?n:`$${n}`,c=h?d.slice(1):n;if((0,s.cG)(u)){i[c]=u;continue}let f=(0,o.M)(c),m=r?f.slice(0,2):a;if(m=t?`${t}-${m}`:f,u&&"object"==typeof u){i[c]=l(e[c],m,!1);continue}let p=(0,s.cG)(u)?u:(0,s.Os)({val:u,name:m,key:d});i[c]=p}return n.set(i,!0),i}},3742:function(e,t,r){"use strict";r.d(t,{KO:function(){return u}});var o=r(2265),s=r(9910);let n=(0,o.createContext)(void 0),l=e=>{let t=(0,o.useContext)(n);return(null==e?void 0:e.store)||t||(0,s.K7)()},i=e=>"function"==typeof(null==e?void 0:e.then),a=o.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e});function u(e,t){return[function(e,t){let r=l(t),[[s,n,u],h]=(0,o.useReducer)(t=>{let o=r.get(e);return Object.is(t[0],o)&&t[1]===r&&t[2]===e?t:[o,r,e]},void 0,()=>[r.get(e),r,e]),d=s;(n!==r||u!==e)&&(h(),d=r.get(e));let c=null==t?void 0:t.delay;return(0,o.useEffect)(()=>{let t=r.sub(e,()=>{if("number"==typeof c){setTimeout(h,c);return}h()});return h(),t},[r,e,c]),(0,o.useDebugValue)(d),i(d)?a(d):d}(e,t),function(e,t){let r=l(t);return(0,o.useCallback)(function(){for(var t=arguments.length,o=Array(t),s=0;sr};return"function"==typeof e?o.read=e:(o.init=e,o.read=l,o.write=i),t&&(o.write=t),o}function l(e){return e(this)}function i(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}let a=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,u=e=>"init"in e,h=e=>!!e.write,d=new WeakMap,c=(e,t)=>{d.set(e,t),e.catch(()=>{}).finally(()=>d.delete(e))},f=(e,t)=>{let r=d.get(e);r&&(d.delete(e),r(t))},m=(e,t)=>{e.status="fulfilled",e.value=t},p=(e,t)=>{e.status="rejected",e.reason=t},g=e=>"function"==typeof(null==e?void 0:e.then),b=(e,t)=>!!e&&"v"in e&&"v"in t&&Object.is(e.v,t.v),v=(e,t)=>!!e&&"e"in e&&"e"in t&&Object.is(e.e,t.e),y=e=>!!e&&"v"in e&&e.v instanceof Promise,k=(e,t)=>"v"in e&&"v"in t&&e.v.orig&&e.v.orig===t.v.orig,w=e=>{if("e"in e)throw e.e;return e.v},_=()=>{let e,t;let r=new WeakMap,o=new WeakMap,s=[],n=new WeakMap;e=new Set,t=new Set;let l=e=>r.get(e),i=(e,t)=>{t.d.forEach((t,r)=>{if(!n.has(r)){let e=l(r);n.set(r,[e,new Set]),e&&i(r,e)}n.get(r)[1].add(e)})},d=(e,t)=>{var o;Object.freeze(t);let a=l(e);if(r.set(e,t),null==(o=s[s.length-1])||o.add(e),n.has(e)||(n.set(e,[a,new Set]),i(e,t)),y(a)){let e="v"in t?t.v instanceof Promise?t.v:Promise.resolve(t.v):Promise.reject(t.e);a.v!==e&&f(a.v,e)}},_=(e,t,r,o)=>{let s=new Map(o?t.d:null),n=!1;r.forEach((r,o)=>{!r&&a(e,o)&&(r=t),r?(s.set(o,r),t.d.get(o)!==r&&(n=!0)):console.warn("[Bug] atom state not found")}),(n||t.d.size!==s.size)&&(t.d=s)},S=(e,t,r,o)=>{let s=l(e),n={d:(null==s?void 0:s.d)||new Map,v:t};if(r&&_(e,n,r,o),b(s,n)&&s.d===n.d)return s;if(y(s)&&y(n)&&k(s,n)){if(s.d===n.d)return s;n.v=s.v}return d(e,n),n},C=(e,t,r,s)=>{if(g(t)){let n;let i=()=>{let t=l(e);if(!y(t)||t.v!==a)return;let s=S(e,a,r);o.has(e)&&t.d!==s.d&&P(e,s,t.d)},a=new Promise((e,r)=>{let o=!1;t.then(t=>{o||(o=!0,m(a,t),e(t),i())},e=>{o||(o=!0,p(a,e),r(e),i())}),n=t=>{o||(o=!0,t.then(e=>m(a,e),e=>p(a,e)),e(t))}});return a.orig=t,a.status="pending",c(a,e=>{e&&n(e),null==s||s()}),S(e,a,r,!0)}return S(e,t,r)},$=(e,t,r)=>{let o=l(e),s={d:(null==o?void 0:o.d)||new Map,e:t};return(r&&_(e,s,r),v(o,s)&&o.d===s.d)?o:(d(e,s),s)},j=(e,t)=>{let r,s;let n=l(e);if(!(null==t?void 0:t(e))&&n&&(o.has(e)||Array.from(n.d).every(([r,o])=>{if(r===e)return!0;let s=j(r,t);return s===o||b(s,o)})))return n;let i=new Map,d=!0;try{let o=e.read(r=>{if(a(e,r)){let e=l(r);if(e)return i.set(r,e),w(e);if(u(r))return i.set(r,void 0),r.init;throw Error("no atom init")}let o=j(r,t);return i.set(r,o),w(o)},{get signal(){return r||(r=new AbortController),r.signal},get setSelf(){return h(e)||console.warn("setSelf function cannot be used with read-only atom"),!s&&h(e)&&(s=(...t)=>{if(d&&console.warn("setSelf function cannot be called in sync"),!d)return E(e,...t)}),s}});return C(e,o,i,()=>null==r?void 0:r.abort())}catch(t){return $(e,t,i)}finally{d=!1}},O=e=>{let t=e=>{var t,r;let s=new Set(null==(t=o.get(e))?void 0:t.t);return null==(r=n.get(e))||r[1].forEach(e=>{s.add(e)}),s},r=[],s=new Set,a=e=>{if(!s.has(e)){for(let r of(s.add(e),t(e)))e!==r&&a(r);r.push(e)}};a(e);let u=new Set([e]),h=e=>s.has(e);for(let e=r.length-1;e>=0;--e){let t=r[e],o=l(t);if(!o)continue;let n=!1;for(let e of o.d.keys())if(e!==t&&u.has(e)){n=!0;break}if(n){let e=j(t,h);i(t,e),b(o,e)||u.add(t)}s.delete(t)}},T=(t,...r)=>t.write(e=>w(j(e)),(r,...o)=>{let n;let i=s.length>0;if(i||s.push(new Set([r])),a(t,r)){if(!u(r))throw Error("atom not writable");b(l(r),C(r,o[0]))||O(r)}else n=T(r,...o);if(!i){let t=I(s.pop());e.forEach(e=>e({type:"async-write",flushed:t}))}return n},...r),E=(t,...r)=>{s.push(new Set([t]));let o=T(t,...r),n=I(s.pop());return e.forEach(e=>e({type:"write",flushed:n})),o},x=(e,r,s)=>{var n;let i=o.get(e);if(i)return r&&i.t.add(r),i;let a=s||[];null==(n=l(e))||n.d.forEach((t,r)=>{r!==e&&x(r,e,a)}),j(e);let u={t:new Set(r&&[r]),l:new Set};if(o.set(e,u),t.add(e),h(e)&&e.onMount){let{onMount:t}=e;a.push(()=>{let r=t((...t)=>E(e,...t));r&&(u.u=r)})}return s||a.forEach(e=>e()),u},F=(e,t)=>!t.l.size&&(!t.t.size||1===t.t.size&&t.t.has(e)),R=(e,r)=>{if(!F(e,r))return;let s=r.u;s&&s(),o.delete(e),t.delete(e);let n=l(e);n?(y(n)&&f(n.v),n.d.forEach((t,r)=>{if(r!==e){let t=o.get(r);t&&(t.t.delete(e),R(r,t))}})):console.warn("[Bug] could not find atom state to unmount",e)},P=(e,t,r)=>{let s=new Set(t.d.keys()),n=new Set;null==r||r.forEach((t,r)=>{if(s.has(r)){s.delete(r);return}n.add(r);let l=o.get(r);l&&l.t.delete(e)}),s.forEach(t=>{x(t,e)}),n.forEach(e=>{let t=o.get(e);t&&R(e,t)})},I=e=>{let t;t=new Set;let r=[],s=e=>{var t;if(!n.has(e))return;let[o,i]=n.get(e);n.delete(e),r.push([e,o]),i.forEach(s),null==(t=l(e))||t.d.forEach((e,t)=>s(t))};return e.forEach(s),r.forEach(([e,r])=>{let s=l(e);if(!s){console.warn("[Bug] no atom state to flush");return}if(s!==r){let n=o.get(e);n&&s.d!==(null==r?void 0:r.d)&&P(e,s,null==r?void 0:r.d),n&&!(!y(r)&&(b(r,s)||v(r,s)))&&(n.l.forEach(e=>e()),t.add(e))}}),t};return{get:e=>w(j(e)),set:E,sub:(t,r)=>{let o=x(t),s=I([t]),n=o.l;return n.add(r),e.forEach(e=>e({type:"sub",flushed:s})),()=>{n.delete(r),R(t,o),e.forEach(e=>e({type:"unsub"}))}},dev_subscribe_store:t=>(e.add(t),()=>{e.delete(t)}),dev_get_mounted_atoms:()=>t.values(),dev_get_atom_state:e=>r.get(e),dev_get_mounted:e=>o.get(e),dev_restore_atoms:t=>{for(let[e,r]of(s.push(new Set),t))u(e)&&(C(e,r),O(e));let r=I(s.pop());e.forEach(e=>e({type:"restore",flushed:r}))}}};Symbol("CONTINUE_PROMISE");let S=()=>(o||(o=_(),globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=o),globalThis.__JOTAI_DEFAULT_STORE__!==o&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044")),o)},1564:function(e,t,r){"use strict";r.d(t,{_:function(){return w}});var o=r(281),s=r(5986),n=r(7104),l=r(8338),i=r(9242),a=r(2202),u=r(357);let h=e=>{c.set((0,a.Ve)(e),e)},d=(e,t=!1)=>`--${u.env.TAMAGUI_CSS_VARIABLE_PREFIX||""}${(0,a.bK)(e.name,!1)}:${t||"number"!=typeof e.val?e.val:`${e.val}px`}`,c=new Map;var f=r(357);let m=".t_dark",p=".t_light",g=e=>e===m||e===p||e.startsWith(".t_dark ")||e.startsWith(".t_light ");var b=r(7393);let v={};var y=r(9097);let k=new WeakMap,w=function(e){let t;if(k.has(e))return e;let r={},u=(0,n.D)(e.tokens||{});if(e.tokens){let e={};for(let t in u){r[t]={},e[t]={};let o=u[t];for(let s in o){let n=o[s],l=`$${s}`;r[t][l]=n,e[t][l]=n,e[t][s]=n}}(0,s.d0)(e)}if(e.themes){let o=0===Object.keys(e.themes).length;t=(0,b.jc)(o,r)}(0,b.OJ)();let w=null,_;if(e.fonts){let t=Object.fromEntries(Object.entries(e.fonts).map(([e,t])=>[e,(0,n.D)(t,"f",!0)]));_=(()=>{let e={};for(let r in t){let o=function(e){let t={};for(let r in e){let o=e[r];if("family"===r||"face"===r)t[r]=o;else for(let e in t[r]={},o){let s=o[e];s.val?.[0]==="$"&&(s=s.val),t[r][`$${e}`]=s}}return t}(t[r]);e[`$${r}`]=o,!w&&o.size&&(w=new Set(Object.keys(o.size)))}return e})()}let S={},C=(()=>{let r=[],n=[],b={};for(let e in u)for(let t in u[e]){let r=u[e][t];S[`$${e}.${t}`]=r,o.$L&&(h(r),n.push(d(r,"zIndex"===e)))}if(o.$L){let t=function(e,t=""){return`:root${t} {${o}${[...e].join(`;${o}`)}${o}}`};for(let e in _){let t=_[e],[r,o]=e.includes("_")?e.split("_"):[e],s=function(e){let t=[];for(let r in e)if("face"!==r){if("family"===r){let o=e[r];h(o),t.push(d(o))}else for(let o in e[r])if("string"!=typeof e[r][o]){let s=e[r][o];h(s),t.push(d(s))}}return t}(t);b[e]={name:r.slice(1),declarations:s,language:o}}let o=e.cssStyleSeparator||"";if(r.push(t(n)),b)for(let e in b){let{name:o,declarations:s,language:n="default"}=b[e],l=`.font_${o}`,i=`:root .t_lang-${o}-${n} ${l}`,a=t(s,"default"===n?` ${l}, ${i}`:i);r.push(a)}}let y={...e.themes},k=t??function(e){let t=[],r=new Map;for(let o in e){let s=o.startsWith("dark")?"dark":o.startsWith("light")?"light":"",n=e[o],l=s+JSON.stringify(n);if(r.has(l)){r.get(l).names.push(o);continue}let i={...n};for(let e in i)!function(e,t){let r=e[t];(0,a.cG)(r)?r.name!==t&&(e[t]=(0,a.Os)({key:r.name,name:t,val:r.val})):e[t]=(0,a.Os)({key:t,name:t,val:r})}(i,e);let u={names:[o],theme:i};t.push(u),r.set(l,u)}return t}(y);return{themes:function(e){for(let{names:t,theme:r}of e)for(let e of t)v[e]=r;let t={};for(let{names:r,theme:o}of e)for(let e of r){let r=function(e,t){let r=[],o=e.split("_").slice(0,-1).map(e=>(r.push(e),r.join("_"))),n=o.length;return new Proxy(t,{get(e,t){if(!t||"undefined"==t||Reflect.has(e,t))return Reflect.get(e,t);for(let e=n-1;e>=0;e--){let r=v[o[e]];if(r&&Reflect.has(r,t))return Reflect.get(r,t)}return(0,s.p_)(t)}})}(e,o);t[e]=r}return t}(k),cssRuleSets:r,getThemeRulesSets(){let t=[];if(o.$L)for(let{names:r,theme:o}of k)t=[...t,...function(e){let t=[];if(!f.env.TAMAGUI_DOES_SSR_CSS||"mutates-themes"===f.env.TAMAGUI_DOES_SSR_CSS||"false"===f.env.TAMAGUI_DOES_SSR_CSS){let{config:r,themeName:o,theme:s,names:n}=e,u=e.hasDarkLight??(r.themes&&("light"in r.themes||"dark"in r.themes)),h=`.${i.nx}`,d="";for(let e in s){let t=s[e],r=null;r=c.has(t.val)?c.get(t.val).variable:t.val,d+=`--${f.env.TAMAGUI_CSS_VARIABLE_PREFIX||""}${(0,l.M)(e,40)}:${r};`}let b="dark"===o,v="light"===o,y=n.map(e=>`${h}${e}`),k=new Set(b||v?y:[]);if(u){let e=r.maxDarkLightNesting??3;for(let t of n){let r=b||t.startsWith("dark_"),o=!r&&(v||t.startsWith("light_"));if(!(r||o)){k.add(`${h}${t}`);continue}let s=`${h}${t.replace(/^(dark|light)_/,"")}`,[n,l]=r?["dark","light"]:["light","dark"],i=Math.round(1.5*e);for(let e=0;e`${h}${t%2==0?n:l}`),o=r.length>1?r.slice(1):r;if(t){let[e,t,...r]=o;o=[t,...r,t]}let i=s===o[o.length-1]?"":s;k.add(`${o.join(" ")} ${i}`.trim())}}}let w=[...k].sort((e,t)=>e.localeCompare(t)),_=`${w.map(e=>`:root${g(e)&&r.themeClassNameOnRoot?"":" "}${e}`).join(", ")} {${d}}`;if(t.push(_),r.shouldAddPrefersColorThemes){let e=s.background?`background:${(0,a.lk)(s.background)};`:"",r=s.color?`color:${(0,a.lk)(s.color)}`:"",n=`body{${e}${r}}`,l=o.startsWith("dark"),i=`${w.map(e=>e==m||e===p?":root":l&&e.startsWith(p)||!l&&e.startsWith(m)?void 0:e.replace(/^\.t_(dark|light) /,"").trim()).filter(Boolean).join(", ")} {${d}}`,u=`@media(prefers-color-scheme:${l?"dark":"light"}){ + ${n} + ${i} + }`;t.push(u)}if(r.selectionStyles){let e=r.selectionStyles(s);if(e){let r=y.map(e=>`${e} ::selection`).join(", "),o=Object.entries(e).flatMap(([e,t])=>t?`${"backgroundColor"===e?"background":e}:${(0,a.lk)(t)}`:[]).join(";");if(o){let e=`${r}{${o}}`;t.push(e)}}}}return t}({config:e,themeName:r[0],names:r,theme:o})];return t}}})(),$=e.shorthands||{},j=-1,O=(e={})=>{let{separator:t=` +`,sinceLastCall:r,exclude:o}=e;if(r&&j>=0){let e=(0,b.UY)();return j=e.length,e.slice(j).join(t)}j=0;let s=(0,b.UY)().join(t);return"design-system"===o?s:`._ovs-contain {overscroll-behavior:contain;} +.is_Text .is_Text {display:inline-flex;} +._dsp_contents {display:contents;} +${C.cssRuleSets.join(t)} +${o?"":C.getThemeRulesSets().join(t)} +${s}`},T=e.defaultFont||e.fonts&&("body"in e.fonts?"body":"");!T&&e.fonts&&(T=Object.keys(e.fonts)[0]),T?.[0]==="$"&&(T=T.slice(1));let E=`$${T}`,x={fonts:{},onlyAllowShorthands:!1,fontLanguages:[],animations:{},media:{},...e,unset:{fontFamily:e.defaultFont?E:void 0,...e.unset},settings:{webContainerType:"inline-size",...e.settings},tokens:u,shorthands:$,inverseShorthands:$?Object.fromEntries(Object.entries($).map(([e,t])=>[t,e])):{},themes:C.themes,fontsParsed:_||{},themeConfig:C,tokensParsed:r,parsed:!0,getNewCSS:e=>O({...e,sinceLastCall:!0}),getCSS:O,defaultFont:E,fontSizeTokens:w||new Set,specificTokens:S};return(0,y.jl)(x),(0,s.v6)(x),k.set(x,!0),s.zG.size&&(s.zG.forEach(e=>e(x)),s.zG.clear()),x}},6608:function(e,t,r){"use strict";r.d(t,{r:function(){return m}});var o=r(281),s=r(2265),n=r(7562),l=r(9097),i=r(9242),a=r(1130),u=r(2281);let h=e=>(o.C5&&(0,s.useLayoutEffect)(()=>{if(e.disableRootThemeClass)return;let t=`${i.nx}${e.defaultTheme}`,r=e.themeClassNameOnRoot?document.documentElement:document.body;return r.classList.add(t),()=>{r.classList.remove(t)}},[e.defaultTheme,e.disableRootThemeClass,e.themeClassNameOnRoot]),(0,u.jsx)(a.Q,{className:e.className,name:e.defaultTheme,forceClassName:!e.disableRootThemeClass,_isRoot:!0,children:e.children}));var d=r(6962);function c({children:e,disableInjectCSS:t,config:r,...i}){return(0,l.yL)(),o.C5&&((0,d.U)(),s.useInsertionEffect(()=>{if(r&&(r.disableSSR||document.documentElement.classList.contains("t_unmounted")&&document.documentElement.classList.remove("t_unmounted"),!t)){let e=document.createElement("style");return e.appendChild(document.createTextNode(r.getCSS())),document.head.appendChild(e),()=>{document.head.removeChild(e)}}},[r,t])),(0,u.jsx)(n.s.Provider,{animationDriver:r?.animations,children:(0,u.jsx)(h,{themeClassNameOnRoot:r?.themeClassNameOnRoot,disableRootThemeClass:r?.disableRootThemeClass,...i,defaultTheme:i.defaultTheme??(r?Object.keys(r.themes)[0]:""),children:e})})}c.displayName="TamaguiProvider";var f=r(4624);let m=({children:e,...t})=>(0,u.jsx)(c,{...t,children:(0,u.jsx)(f.Xp,{shouldAddRootHost:!0,children:e})})}}]); \ No newline at end of file diff --git a/_next/static/chunks/853-9e79209ace0b06cf.js b/_next/static/chunks/853-9e79209ace0b06cf.js deleted file mode 100644 index 287597afb375f94a973a1efb55ebc5e307f46087..0000000000000000000000000000000000000000 --- a/_next/static/chunks/853-9e79209ace0b06cf.js +++ /dev/null @@ -1,16 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[853],{1957:function(e,t,r){"use strict";r.d(t,{J:function(){return l}});var n=r(2265),i=r(2989),a=r(7470),o=r(2281);let s=e=>{let{color:t="black",size:r=24,...n}=e;return(0,o.jsx)(i.ny,{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:(0,o.jsx)(i.y$,{d:"M20 6 9 17l-5-5",stroke:t})})};s.displayName="Check";let l=(0,n.memo)((0,a.H)(s))},1569:function(e,t,r){"use strict";r.d(t,{_:function(){return l}});var n=r(2265),i=r(2989),a=r(7470),o=r(2281);let s=e=>{let{color:t="black",size:r=24,...n}=e;return(0,o.jsx)(i.ny,{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:(0,o.jsx)(i.y$,{d:"m6 9 6 6 6-6",stroke:t})})};s.displayName="ChevronDown";let l=(0,n.memo)((0,a.H)(s))},1378:function(e,t,r){"use strict";r.d(t,{K:function(){return l}});var n=r(2265),i=r(2989),a=r(7470),o=r(2281);let s=e=>{let{color:t="black",size:r=24,...n}=e;return(0,o.jsx)(i.ny,{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:(0,o.jsx)(i.y$,{d:"m18 15-6-6-6 6",stroke:t})})};s.displayName="ChevronUp";let l=(0,n.memo)((0,a.H)(s))},6916:function(e,t,r){"use strict";r.d(t,{l:function(){return l}});var n=r(2265),i=r(2989),a=r(7470),o=r(2281);let s=e=>{let{color:t="black",size:r=24,...n}=e;return(0,o.jsxs)(i.ny,{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[(0,o.jsx)(i.y$,{d:"m5 8 6 6",stroke:t}),(0,o.jsx)(i.y$,{d:"m4 14 6-6 2-3",stroke:t}),(0,o.jsx)(i.y$,{d:"M2 5h12",stroke:t}),(0,o.jsx)(i.y$,{d:"M7 2h1",stroke:t}),(0,o.jsx)(i.y$,{d:"m22 22-5-10-5 10",stroke:t}),(0,o.jsx)(i.y$,{d:"M14 18h6",stroke:t})]})};s.displayName="Languages";let l=(0,n.memo)((0,a.H)(s))},8738:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,a=l(e),o=a[0],s=a[1],u=new i((o+s)*3/4-s),h=0,c=s>0?o-4:o;for(r=0;r>16&255,u[h++]=t>>8&255,u[h++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[h++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[h++]=t>>8&255,u[h++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}(e,o,o+16383>s?s:o+16383));return 1===i?a.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&a.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},9109:function(e,t,r){"use strict";/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */var n=r(8738),i=r(6868),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return h(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|p(e,t),n=o(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(I(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return c(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(I(e,ArrayBuffer)||e&&I(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(I(e,SharedArrayBuffer)||e&&I(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);var i=function(e){if(s.isBuffer(e)){var t,r=0|d(e.length),n=o(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?o(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function h(e){return u(e),o(e<0?0:0|d(e))}function c(e){for(var t=e.length<0?0:0|d(e.length),r=o(t),n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return S(e).length;default:if(i)return n?-1:C(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){var i,a,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(a=r=+r)!=a&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:w(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):w(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function w(e,t,r,n,i){var a,o=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;o=2,s/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var h=-1;for(a=r;as&&(r=s-l),a=r;a>=0;a--){for(var c=!0,f=0;f239?4:u>223?3:u>191?2:1;if(i+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:(192&(a=e[i+1]))==128&&(l=(31&u)<<6|63&a)>127&&(h=l);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(h=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(h=l)}null===h?(h=65533,c=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=c}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function b(e,t,r,n,i,a){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function x(e,t,r,n,i,a){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function E(e,t,r,n,a){return t=+t,r>>>=0,a||x(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function k(e,t,r,n,a){return t=+t,r>>>=0,a||x(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)},s.allocUnsafe=function(e){return h(e)},s.allocUnsafeSlow=function(e){return h(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),I(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);in.length?s.from(a).copy(n,i):Uint8Array.prototype.set.call(n,a,i);else if(s.isBuffer(a))a.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=a.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tr&&(e+=" ... "),""},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,o=r-t,l=Math.min(a,o),u=this.slice(n,i),h=e.slice(t,r),c=0;c>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,o,s,l,u,h,c,f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var d=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;n>a/2&&(n=a/2);for(var o=0;o>8,i.push(r%256),i.push(n);return i}(e,this.length-h),this,h,c);default:if(d)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||v(e,t,this.length);for(var n=this[e],i=1,a=0;++a>>=0,t>>>=0,r||v(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||v(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var n=this[e],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return(e>>>=0,t||v(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||v(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||v(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||v(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||v(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;b(this,e,t,r,i,0)}var a=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;b(this,e,t,r,i,0)}var a=r-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);b(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);b(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return E(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return E(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!i){if(r>56319||o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function S(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,r,n){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function I(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var M=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},6868:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,r,n,i){var a,o,s=8*i-n-1,l=(1<>1,h=-7,c=r?i-1:0,f=r?-1:1,d=e[t+c];for(c+=f,a=d&(1<<-h)-1,d>>=-h,h+=s;h>0;a=256*a+e[t+c],c+=f,h-=8);for(o=a&(1<<-h)-1,a>>=-h,h+=n;h>0;o=256*o+e[t+c],c+=f,h-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),a-=u}return(d?-1:1)*o*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var o,s,l,u=8*a-i-1,h=(1<>1,f=23===i?5960464477539062e-23:0,d=n?0:a-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,o=h):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+c>=1?t+=f/l:t+=f*Math.pow(2,1-c),t*l>=2&&(o++,l/=2),o+c>=h?(s=0,o=h):o+c>=1?(s=(t*l-1)*Math.pow(2,i),o+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(o=o<0;e[r+d]=255&o,d+=p,o/=256,u-=8);e[r+d-p]|=128*m}},8464:function(e,t,r){!function(){var t={452:function(e){"use strict";e.exports=r(6405)}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}},o=!0;try{t[e](a,a.exports,i),o=!1}finally{o&&delete n[e]}return a.exports}i.ab="//";var a={};!function(){var e,t=(e=i(452))&&"object"==typeof e&&"default"in e?e.default:e,r=/https?|ftp|gopher|file/;function n(e){"string"==typeof e&&(e=y(e));var n,i,a,o,s,l,u,h,c,f=(i=(n=e).auth,a=n.hostname,o=n.protocol||"",s=n.pathname||"",l=n.hash||"",u=n.query||"",h=!1,i=i?encodeURIComponent(i).replace(/%3A/i,":")+"@":"",n.host?h=i+n.host:a&&(h=i+(~a.indexOf(":")?"["+a+"]":a),n.port&&(h+=":"+n.port)),u&&"object"==typeof u&&(u=t.encode(u)),c=n.search||u&&"?"+u||"",o&&":"!==o.substr(-1)&&(o+=":"),n.slashes||(!o||r.test(o))&&!1!==h?(h="//"+(h||""),s&&"/"!==s[0]&&(s="/"+s)):h||(h=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),{protocol:o,host:h,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:c=c.replace("#","%23"),hash:l});return""+f.protocol+f.host+f.pathname+f.search+f.hash}var o="http://",s=o+"w.w",l=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,u=/https?|ftp|gopher|file/;function h(e,t){var r="string"==typeof e?y(e):e;e="object"==typeof e?n(e):e;var i=y(t),a="";r.protocol&&!r.slashes&&(a=r.protocol,e=e.replace(r.protocol,""),a+="/"===t[0]||"/"===e[0]?"/":""),a&&i.protocol&&(a="",i.slashes||(a=i.protocol,t=t.replace(i.protocol,"")));var h=e.match(l);h&&!i.protocol&&(e=e.substr((a=h[1]+(h[2]||"")).length),/^\/\/[^/]/.test(t)&&(a=a.slice(0,-1)));var c=new URL(e,s+"/"),f=new URL(t,c).toString().replace(s,""),d=i.protocol||r.protocol;return d+=r.slashes||i.slashes?"//":"",!a&&d?f=f.replace(o,d):a&&(f=f.replace(o,"")),u.test(f)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==f.slice(-1)||(f=f.slice(0,-1)),a&&(f=a+("/"===f[0]?f.substr(1):f)),f}function c(){}c.prototype.parse=y,c.prototype.format=n,c.prototype.resolve=h,c.prototype.resolveObject=h;var f=/^https?|ftp|gopher|file/,d=/^(.*?)([#?].*)/,p=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,m=/^([a-z0-9.+-]*:)?\/\/\/*/i,g=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function y(e,r,i){if(void 0===r&&(r=!1),void 0===i&&(i=!1),e&&"object"==typeof e&&e instanceof c)return e;var a=(e=e.trim()).match(d);e=a?a[1].replace(/\\/g,"/")+a[2]:e.replace(/\\/g,"/"),g.test(e)&&"/"!==e.slice(-1)&&(e+="/");var o=!/(^javascript)/.test(e)&&e.match(p),l=m.test(e),u="";o&&(f.test(o[1])||(u=o[1].toLowerCase(),e=""+o[2]+o[3]),o[2]||(l=!1,f.test(o[1])?(u=o[1],e=""+o[3]):e="//"+o[3]),3!==o[2].length&&1!==o[2].length||(u=o[1],e="/"+o[3]));var h,y=(a?a[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),w=y&&y[1],_=new c,v="",b="";try{h=new URL(e)}catch(t){v=t,u||i||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(b="/",e=e.substr(1));try{h=new URL(e,s)}catch(e){return _.protocol=u,_.href=u,_}}_.slashes=l&&!b,_.host="w.w"===h.host?"":h.host,_.hostname="w.w"===h.hostname?"":h.hostname.replace(/(\[|\])/g,""),_.protocol=v?u||null:h.protocol,_.search=h.search.replace(/\\/g,"%5C"),_.hash=h.hash.replace(/\\/g,"%5C");var x=e.split("#");!_.search&&~x[0].indexOf("?")&&(_.search="?"),_.hash||""!==x[1]||(_.hash="#"),_.query=r?t.decode(h.search.substr(1)):_.search.substr(1),_.pathname=b+(o?h.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):h.pathname),"about:"===_.protocol&&"blank"===_.pathname&&(_.protocol="",_.pathname=""),v&&"/"!==e[0]&&(_.pathname=_.pathname.substr(1)),u&&!f.test(u)&&"/"!==e.slice(-1)&&"/"===_.pathname&&(_.pathname=""),_.path=_.pathname+_.search,_.auth=[h.username,h.password].map(decodeURIComponent).filter(Boolean).join(":"),_.port=h.port,w&&!_.host.endsWith(w)&&(_.host+=w,_.port=w.slice(1)),_.href=b?""+_.pathname+_.search+_.hash:n(_);var E=/^(file)/.test(_.href)?["host","hostname"]:[];return Object.keys(_).forEach(function(e){~E.indexOf(e)||(_[e]=_[e]||null)}),_}a.parse=y,a.format=n,a.resolve=h,a.resolveObject=function(e,t){return y(h(e,t))},a.Url=c}(),e.exports=a}()},6405:function(e){!function(){"use strict";var t={815:function(e){e.exports=function(e,r,n,i){r=r||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var o=/\+/g;e=e.split(r);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var u=0;u=0?(h=p.substr(0,m),c=p.substr(m+1)):(h=p,c=""),f=decodeURIComponent(h),d=decodeURIComponent(c),Object.prototype.hasOwnProperty.call(a,f))?t(a[f])?a[f].push(d):a[f]=[a[f],d]:a[f]=d}return a};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,a,o,s){return(a=a||"&",o=o||"=",null===e&&(e=void 0),"object"==typeof e)?n(i(e),function(i){var s=encodeURIComponent(t(i))+o;return r(e[i])?n(e[i],function(e){return s+encodeURIComponent(t(e))}).join(a):s+encodeURIComponent(t(e[i]))}).join(a):s?encodeURIComponent(t(s))+o+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n{if(t&&"function"==typeof t.init&&"function"==typeof t.createSessionHandler){let a=n[e];if(void 0===a)n[e]={backend:t,priority:r};else if(a.priority>r)return;else if(a.priority===r&&a.backend!==t)throw Error(`cannot register backend "${e}" using priority ${r}`);if(r>=0){let t=i.indexOf(e);-1!==t&&i.splice(t,1);for(let t=0;t{let t=0===e.length?i:e,r=[];for(let e of t){let t=n[e];if(t){if(t.initialized)return t.backend;if(t.aborted)continue;let n=!!t.initPromise;try{return n||(t.initPromise=t.backend.init()),await t.initPromise,t.initialized=!0,t.backend}catch(i){n||r.push({name:e,err:i}),t.aborted=!0}finally{delete t.initPromise}}}throw Error(`no available backend found. ERR: ${r.map(e=>`[${e.name}] ${e.err}`).join(", ")}`)};class s{constructor(){this.wasm={},this.webgl={},this.logLevelInternal="warning"}set logLevel(e){if(void 0!==e){if("string"!=typeof e||-1===["verbose","info","warning","error","fatal"].indexOf(e))throw Error(`Unsupported logging level: ${e}`);this.logLevelInternal=e}}get logLevel(){return this.logLevelInternal}}let l=new s,u="undefined"!=typeof BigInt64Array&&"function"==typeof BigInt64Array.from,h="undefined"!=typeof BigUint64Array&&"function"==typeof BigUint64Array.from,c=new Map([["float32",Float32Array],["uint8",Uint8Array],["int8",Int8Array],["uint16",Uint16Array],["int16",Int16Array],["int32",Int32Array],["bool",Uint8Array],["float64",Float64Array],["uint32",Uint32Array]]),f=new Map([[Float32Array,"float32"],[Uint8Array,"uint8"],[Int8Array,"int8"],[Uint16Array,"uint16"],[Int16Array,"int16"],[Int32Array,"int32"],[Float64Array,"float64"],[Uint32Array,"uint32"]]);u&&(c.set("int64",BigInt64Array),f.set(BigInt64Array,"int64")),h&&(c.set("uint64",BigUint64Array),f.set(BigUint64Array,"uint64"));let d=e=>{let t=1;for(let r=0;r{let i=document.createElement("canvas"),a=i.getContext("2d");if(!e||!a)return n();let o=new Image;o.crossOrigin="Anonymous",o.src=e,o.onload=()=>{i.width=o.width,i.height=o.height,a.drawImage(o,0,0,i.width,i.height);let e=a.getImageData(0,0,i.width,i.height);if(void 0!==t){if(void 0!==t.height&&t.height!==i.height)throw Error("Image input config height doesn't match ImageBitmap height");if(s.height=i.height,void 0!==t.width&&t.width!==i.width)throw Error("Image input config width doesn't match ImageBitmap width");s.width=i.width}else s.height=i.height,s.width=i.width;r(p.bufferToTensor(e.data,s))}});else throw Error("Input data provided is not supported - aborted tensor creation");if(void 0!==r)return p.bufferToTensor(r,s);throw Error("Input data provided is not supported - aborted tensor creation")}toImageData(e){var t,r;let n;let i=document.createElement("canvas").getContext("2d");if(null!=i){let a=this.dims[3],o=this.dims[2],s=this.dims[1],l=void 0!==e&&void 0!==e.format?e.format:"RGB",u=void 0!==e&&(null===(t=e.norm)||void 0===t?void 0:t.mean)!==void 0?e.norm.mean:255,h=void 0!==e&&(null===(r=e.norm)||void 0===r?void 0:r.bias)!==void 0?e.norm.bias:0,c=o*a;if(void 0!==e){if(void 0!==e.height&&e.height!==o)throw Error("Image output config height doesn't match tensor height");if(void 0!==e.width&&e.width!==a)throw Error("Image output config width doesn't match tensor width");if(void 0!==e.format&&4===s&&"RGBA"!==e.format||3===s&&"RGB"!==e.format&&"BGR"!==e.format)throw Error("Tensor format doesn't match input tensor dims")}let f=0,d=1,p=2,m=3,g=0,y=c,w=2*c,_=-1;"RGBA"===l?(g=0,y=c,w=2*c,_=3*c):"RGB"===l?(g=0,y=c,w=2*c):"RBG"===l&&(g=0,w=c,y=2*c),n=i.createImageData(a,o);for(let e=0;e=e.byteLength)throw RangeError(`'byteOffset' is out of range [0, ${e.byteLength}).`);if(s=e.byteLength-o,"number"==typeof r){if(!Number.isSafeInteger(s=r))throw RangeError("'byteLength' must be an integer.");if(s<=0||o+s>e.byteLength)throw RangeError(`'byteLength' is out of range (0, ${e.byteLength-o}].`);if("object"==typeof n&&null!==n)a=n;else if(void 0!==n)throw TypeError("'options' must be an object.")}else if(void 0!==r)throw TypeError("'byteLength' must be a number.")}else if(void 0!==t)throw TypeError("'options' must be an object.");i=new Uint8Array(e,o,s)}else throw TypeError("Unexpected argument[0]: must be 'path' or 'buffer'.");let s=(a.executionProviders||[]).map(e=>"string"==typeof e?e:e.name),l=await o(s);return new g(await l.createSessionHandler(i,a))}startProfiling(){this.handler.startProfiling()}endProfiling(){this.handler.endProfiling()}get inputNames(){return this.handler.inputNames}get outputNames(){return this.handler.outputNames}}let y=g},4087:function(e,t,r){"use strict";r.d(t,{YS:function(){return G}});var n=Object.freeze({Text:"Text",NumericLiteral:"NumericLiteral",BooleanLiteral:"BooleanLiteral",StringLiteral:"StringLiteral",Identifier:"Identifier",Equals:"Equals",OpenParen:"OpenParen",CloseParen:"CloseParen",OpenStatement:"OpenStatement",CloseStatement:"CloseStatement",OpenExpression:"OpenExpression",CloseExpression:"CloseExpression",OpenSquareBracket:"OpenSquareBracket",CloseSquareBracket:"CloseSquareBracket",OpenCurlyBracket:"OpenCurlyBracket",CloseCurlyBracket:"CloseCurlyBracket",Comma:"Comma",Dot:"Dot",Colon:"Colon",Pipe:"Pipe",CallOperator:"CallOperator",AdditiveBinaryOperator:"AdditiveBinaryOperator",MultiplicativeBinaryOperator:"MultiplicativeBinaryOperator",ComparisonBinaryOperator:"ComparisonBinaryOperator",UnaryOperator:"UnaryOperator",Set:"Set",If:"If",For:"For",In:"In",Is:"Is",NotIn:"NotIn",Else:"Else",EndIf:"EndIf",ElseIf:"ElseIf",EndFor:"EndFor",And:"And",Or:"Or",Not:"UnaryOperator"}),i=Object.freeze({set:n.Set,for:n.For,in:n.In,is:n.Is,if:n.If,else:n.Else,endif:n.EndIf,elif:n.ElseIf,endfor:n.EndFor,and:n.And,or:n.Or,not:n.Not,"not in":n.NotIn,true:n.BooleanLiteral,false:n.BooleanLiteral}),a=class{constructor(e,t){this.value=e,this.type=t}};function o(e){return/\w/.test(e)}function s(e){return/[0-9]/.test(e)}var l=[["{%",n.OpenStatement],["%}",n.CloseStatement],["{{",n.OpenExpression],["}}",n.CloseExpression],["(",n.OpenParen],[")",n.CloseParen],["{",n.OpenCurlyBracket],["}",n.CloseCurlyBracket],["[",n.OpenSquareBracket],["]",n.CloseSquareBracket],[",",n.Comma],[".",n.Dot],[":",n.Colon],["|",n.Pipe],["<=",n.ComparisonBinaryOperator],[">=",n.ComparisonBinaryOperator],["==",n.ComparisonBinaryOperator],["!=",n.ComparisonBinaryOperator],["<",n.ComparisonBinaryOperator],[">",n.ComparisonBinaryOperator],["+",n.AdditiveBinaryOperator],["-",n.AdditiveBinaryOperator],["*",n.MultiplicativeBinaryOperator],["/",n.MultiplicativeBinaryOperator],["%",n.MultiplicativeBinaryOperator],["=",n.Equals]],u=new Map([["n","\n"],["t"," "],["r","\r"],["b","\b"],["f","\f"],["v","\v"],["'","'"],['"','"'],["\\","\\"]]),h=class{type="Statement"},c=class extends h{constructor(e){super(),this.body=e}type="Program"},f=class extends h{constructor(e,t,r){super(),this.test=e,this.body=t,this.alternate=r}type="If"},d=class extends h{constructor(e,t,r){super(),this.loopvar=e,this.iterable=t,this.body=r}type="For"},p=class extends h{constructor(e,t){super(),this.assignee=e,this.value=t}type="Set"},m=class extends h{type="Expression"},g=class extends m{constructor(e,t,r){super(),this.object=e,this.property=t,this.computed=r}type="MemberExpression"},y=class extends m{constructor(e,t){super(),this.callee=e,this.args=t}type="CallExpression"},w=class extends m{constructor(e){super(),this.value=e}type="Identifier"},_=class extends m{constructor(e){super(),this.value=e}type="Literal"},v=class extends _{type="NumericLiteral"},b=class extends _{type="StringLiteral"},x=class extends _{type="BooleanLiteral"},E=class extends _{type="ArrayLiteral"},k=class extends _{type="TupleLiteral"},A=class extends _{type="ObjectLiteral"},C=class extends m{constructor(e,t,r){super(),this.operator=e,this.left=t,this.right=r}type="BinaryExpression"},S=class extends m{constructor(e,t){super(),this.operand=e,this.filter=t}type="FilterExpression"},z=class extends m{constructor(e,t,r){super(),this.operand=e,this.negate=t,this.test=r}type="TestExpression"},I=class extends m{constructor(e,t){super(),this.operator=e,this.argument=t}type="UnaryExpression"},M=class extends m{constructor(e,t,r){super(),this.start=e,this.stop=t,this.step=r}type="SliceExpression"},T=class extends m{constructor(e,t){super(),this.key=e,this.value=t}type="KeywordArgumentExpression"};function O(e,t,r=1){void 0===t&&(t=e,e=0);let n=[];for(let i=e;i=0?(t=(t??=0)<0?Math.max(e.length+t,0):Math.min(t,e.length),r=(r??=e.length)<0?Math.max(e.length+r,0):Math.min(r,e.length)):(t=(t??=e.length-1)<0?Math.max(e.length+t,-1):Math.min(t,e.length-1),r=(r??=-1)<-1?Math.max(e.length+r,-1):Math.min(r,e.length-1));let a=[];for(let o=t;i*oe.toUpperCase())}var $=class{type="RuntimeValue";value;builtins=new Map;constructor(e){this.value=e}__bool__(){return new R(!!this.value)}},U=class extends ${type="NumericValue"},L=class extends ${type="StringValue";builtins=new Map([["upper",new V(()=>new L(this.value.toUpperCase()))],["lower",new V(()=>new L(this.value.toLowerCase()))],["strip",new V(()=>new L(this.value.trim()))],["title",new V(()=>new L(j(this.value)))],["length",new U(this.value.length)]])},R=class extends ${type="BooleanValue"},F=class extends ${type="ObjectValue";__bool__(){return new R(this.value.size>0)}builtins=new Map([["get",new V(([e,t])=>{if(!(e instanceof L))throw Error(`Object key must be a string: got ${e.type}`);return this.value.get(e.value)??t??new D})],["items",new V(()=>new N(Array.from(this.value.entries()).map(([e,t])=>new N([new L(e),t]))))]])},N=class extends ${type="ArrayValue";builtins=new Map([["length",new U(this.value.length)]]);__bool__(){return new R(this.value.length>0)}},P=class extends N{type="TupleValue"},V=class extends ${type="FunctionValue"},D=class extends ${type="NullValue"},q=class extends ${type="UndefinedValue"},H=class{constructor(e){this.parent=e}variables=new Map([["namespace",new V(e=>{if(0===e.length)return new F(new Map);if(1!==e.length||!(e[0]instanceof F))throw Error("`namespace` expects either zero arguments or a single object argument");return e[0]})]]);tests=new Map([["boolean",e=>"BooleanValue"===e.type],["callable",e=>e instanceof V],["odd",e=>{if("NumericValue"!==e.type)throw Error(`Cannot apply test "odd" to type: ${e.type}`);return e.value%2!=0}],["even",e=>{if("NumericValue"!==e.type)throw Error(`Cannot apply test "even" to type: ${e.type}`);return e.value%2==0}],["false",e=>"BooleanValue"===e.type&&!e.value],["true",e=>"BooleanValue"===e.type&&e.value],["number",e=>"NumericValue"===e.type],["integer",e=>"NumericValue"===e.type&&Number.isInteger(e.value)],["iterable",e=>e instanceof N||e instanceof L],["lower",e=>{let t=e.value;return"StringValue"===e.type&&t===t.toLowerCase()}],["upper",e=>{let t=e.value;return"StringValue"===e.type&&t===t.toUpperCase()}],["none",e=>"NullValue"===e.type],["defined",e=>"UndefinedValue"!==e.type],["undefined",e=>"UndefinedValue"===e.type],["equalto",(e,t)=>e.value===t.value]]);set(e,t){return this.declareVariable(e,function e(t){switch(typeof t){case"number":return new U(t);case"string":return new L(t);case"boolean":return new R(t);case"object":if(null===t)return new D;if(Array.isArray(t))return new N(t.map(e));return new F(new Map(Object.entries(t).map(([t,r])=>[t,e(r)])));case"function":return new V((r,n)=>e(t(...r.map(e=>e.value))??null));default:throw Error(`Cannot convert to runtime value: ${t}`)}}(t))}declareVariable(e,t){if(this.variables.has(e))throw SyntaxError(`Variable already declared: ${e}`);return this.variables.set(e,t),t}setVariable(e,t){return this.variables.set(e,t),t}resolve(e){if(this.variables.has(e))return this;if(this.parent)return this.parent.resolve(e);throw Error(`Unknown variable: ${e}`)}lookupVariable(e){try{return this.resolve(e).variables.get(e)??new q}catch{return new q}}},W=class{global;constructor(e){this.global=e??new H}run(e){return this.evaluate(e,this.global)}evaluateBinaryExpression(e,t){let r=this.evaluate(e.left,t);switch(e.operator.value){case"and":return r.__bool__().value?this.evaluate(e.right,t):r;case"or":return r.__bool__().value?r:this.evaluate(e.right,t)}let n=this.evaluate(e.right,t);switch(e.operator.value){case"==":return new R(r.value==n.value);case"!=":return new R(r.value!=n.value)}if(r instanceof q||n instanceof q)throw Error("Cannot perform operation on undefined values");if(r instanceof D||n instanceof D)throw Error("Cannot perform operation on null values");if(r instanceof U&&n instanceof U)switch(e.operator.value){case"+":return new U(r.value+n.value);case"-":return new U(r.value-n.value);case"*":return new U(r.value*n.value);case"/":return new U(r.value/n.value);case"%":return new U(r.value%n.value);case"<":return new R(r.value":return new R(r.value>n.value);case">=":return new R(r.value>=n.value);case"<=":return new R(r.value<=n.value)}else if(r instanceof N&&n instanceof N){if("+"===e.operator.value)return new N(r.value.concat(n.value))}else if(n instanceof N){let t=void 0!==n.value.find(e=>e.value===r.value);switch(e.operator.value){case"in":return new R(t);case"not in":return new R(!t)}}if((r instanceof L||n instanceof L)&&"+"===e.operator.value)return new L(r.value.toString()+n.value.toString());if(r instanceof L&&n instanceof L)switch(e.operator.value){case"in":return new R(n.value.includes(r.value));case"not in":return new R(!n.value.includes(r.value))}if(r instanceof L&&n instanceof F)switch(e.operator.value){case"in":return new R(n.value.has(r.value));case"not in":return new R(!n.value.has(r.value))}throw SyntaxError(`Unknown operator "${e.operator.value}" between ${r.type} and ${n.type}`)}evaluateFilterExpression(e,t){let r=this.evaluate(e.operand,t);if("Identifier"===e.filter.type){let t=e.filter;if(r instanceof N)switch(t.value){case"list":return r;case"first":return r.value[0];case"last":return r.value[r.value.length-1];case"length":return new U(r.value.length);case"reverse":return new N(r.value.reverse());case"sort":return new N(r.value.sort((e,t)=>{if(e.type!==t.type)throw Error(`Cannot compare different types: ${e.type} and ${t.type}`);switch(e.type){case"NumericValue":return e.value-t.value;case"StringValue":return e.value.localeCompare(t.value);default:throw Error(`Cannot compare type: ${e.type}`)}}));default:throw Error(`Unknown ArrayValue filter: ${t.value}`)}else if(r instanceof L)switch(t.value){case"length":return new U(r.value.length);case"upper":return new L(r.value.toUpperCase());case"lower":return new L(r.value.toLowerCase());case"title":return new L(j(r.value));case"capitalize":return new L(r.value.charAt(0).toUpperCase()+r.value.slice(1));case"trim":return new L(r.value.trim());default:throw Error(`Unknown StringValue filter: ${t.value}`)}else if(r instanceof U){if("abs"===t.value)return new U(Math.abs(r.value));throw Error(`Unknown NumericValue filter: ${t.value}`)}else if(r instanceof F)switch(t.value){case"items":return new N(Array.from(r.value.entries()).map(([e,t])=>new N([new L(e),t])));case"length":return new U(r.value.size);default:throw Error(`Unknown ObjectValue filter: ${t.value}`)}throw Error(`Cannot apply filter "${t.value}" to type: ${r.type}`)}if("CallExpression"===e.filter.type){let n=e.filter;if("Identifier"!==n.callee.type)throw Error(`Unknown filter: ${n.callee.type}`);let i=n.callee.value;if(r instanceof N){if("selectattr"===i){let e;if(r.value.some(e=>!(e instanceof F)))throw Error("`selectattr` can only be applied to array of objects");if(n.args.some(e=>"StringLiteral"!==e.type))throw Error("arguments of `selectattr` must be strings");let[i,a,o]=n.args.map(e=>this.evaluate(e,t));if(a){let r=t.tests.get(a.value);if(!r)throw Error(`Unknown test: ${a.value}`);e=r}else e=(...e)=>e[0].__bool__().value;return new N(r.value.filter(t=>{let r=t.value.get(i.value);return!!r&&e(r,o)}))}throw Error(`Unknown ArrayValue filter: ${i}`)}throw Error(`Cannot apply filter "${i}" to type: ${r.type}`)}throw Error(`Unknown filter: ${e.filter.type}`)}evaluateTestExpression(e,t){let r=this.evaluate(e.operand,t),n=t.tests.get(e.test.value);if(!n)throw Error(`Unknown test: ${e.test.value}`);let i=n(r);return new R(e.negate?!i:i)}evaluateUnaryExpression(e,t){let r=this.evaluate(e.argument,t);if("not"===e.operator.value)return new R(!r.value);throw SyntaxError(`Unknown operator: ${e.operator.value}`)}evalProgram(e,t){return this.evaluateBlock(e.body,t)}evaluateBlock(e,t){let r="";for(let n of e){let e=this.evaluate(n,t);"NullValue"!==e.type&&"UndefinedValue"!==e.type&&(r+=e.value)}return new L(r)}evaluateIdentifier(e,t){return t.lookupVariable(e.value)}evaluateCallExpression(e,t){let r=[],n=new Map;for(let i of e.args)"KeywordArgumentExpression"===i.type?n.set(i.key.value,this.evaluate(i.value,t)):r.push(this.evaluate(i,t));n.size>0&&r.push(new F(n));let i=this.evaluate(e.callee,t);if("FunctionValue"!==i.type)throw Error(`Cannot call something that is not a function: got ${i.type}`);return i.value(r,t)}evaluateSliceExpression(e,t,r){if(!(e instanceof N||e instanceof L))throw Error("Slice object must be an array or string");let n=this.evaluate(t.start,r),i=this.evaluate(t.stop,r),a=this.evaluate(t.step,r);if(!(n instanceof U||n instanceof q))throw Error("Slice start must be numeric or undefined");if(!(i instanceof U||i instanceof q))throw Error("Slice stop must be numeric or undefined");if(!(a instanceof U||a instanceof q))throw Error("Slice step must be numeric or undefined");return e instanceof N?new N(B(e.value,n.value,i.value,a.value)):new L(B(Array.from(e.value),n.value,i.value,a.value).join(""))}evaluateMemberExpression(e,t){let r,n;let i=this.evaluate(e.object,t);if(e.computed){if("SliceExpression"===e.property.type)return this.evaluateSliceExpression(i,e.property,t);r=this.evaluate(e.property,t)}else r=new L(e.property.value);if(i instanceof F){if(!(r instanceof L))throw Error(`Cannot access property with non-string: got ${r.type}`);n=i.value.get(r.value)??i.builtins.get(r.value)}else if(i instanceof N||i instanceof L){if(r instanceof U)n=i.value.at(r.value),i instanceof L&&(n=new L(i.value.at(r.value)));else if(r instanceof L)n=i.builtins.get(r.value);else throw Error(`Cannot access property with non-string/non-number: got ${r.type}`)}else{if(!(r instanceof L))throw Error(`Cannot access property with non-string: got ${r.type}`);n=i.builtins.get(r.value)}return n instanceof $?n:new q}evaluateSet(e,t){let r=this.evaluate(e.value,t);if("Identifier"===e.assignee.type){let n=e.assignee.value;t.setVariable(n,r)}else if("MemberExpression"===e.assignee.type){let n=e.assignee,i=this.evaluate(n.object,t);if(!(i instanceof F))throw Error("Cannot assign to member of non-object");if("Identifier"!==n.property.type)throw Error("Cannot assign to member with non-identifier property");i.value.set(n.property.value,r)}else throw Error(`Invalid LHS inside assignment expression: ${JSON.stringify(e.assignee)}`);return new D}evaluateIf(e,t){let r=this.evaluate(e.test,t);return this.evaluateBlock(r.__bool__().value?e.body:e.alternate,t)}evaluateFor(e,t){let r=new H(t),n=this.evaluate(e.iterable,r);if(!(n instanceof N))throw Error(`Expected iterable type in for loop: got ${n.type}`);let i="";for(let t=0;t0?n.value[t-1]:new q],["nextitem",to.value.length?"few":"many"} items to unpack`);for(let e=0;ethis.evaluate(e,t)));case"TupleLiteral":return new P(e.value.map(e=>this.evaluate(e,t)));case"ObjectLiteral":{let r=new Map;for(let[n,i]of e.value){let e=this.evaluate(n,t);if(!(e instanceof L))throw Error(`Object keys must be strings: got ${e.type}`);r.set(e.value,this.evaluate(i,t))}return new F(r)}case"Identifier":return this.evaluateIdentifier(e,t);case"CallExpression":return this.evaluateCallExpression(e,t);case"MemberExpression":return this.evaluateMemberExpression(e,t);case"UnaryExpression":return this.evaluateUnaryExpression(e,t);case"BinaryExpression":return this.evaluateBinaryExpression(e,t);case"FilterExpression":return this.evaluateFilterExpression(e,t);case"TestExpression":return this.evaluateTestExpression(e,t);default:throw SyntaxError(`Unknown node type: ${e.type}`)}}},G=class{parsed;constructor(e){let t=function(e,t={}){let r=[],h=function(e,t={}){return e.endsWith("\n")&&(e=e.slice(0,-1)),e=e.replace(/{#.*?#}/gs,"{##}"),t.lstrip_blocks&&(e=e.replace(/^[ \t]*({[#%])/gm,"$1")),t.trim_blocks&&(e=e.replace(/([#%]})\n/g,"$1")),e.replace(/{##}/g,"").replace(/-%}\s*/g,"%}").replace(/\s*{%-/g,"{%").replace(/-}}\s*/g,"}}").replace(/\s*{{-/g,"{{")}(e,t),c=0,f=e=>{let t="";for(;e(h[c]);){if("\\"===h[c]){if(++c>=h.length)throw SyntaxError("Unexpected end of input");let e=h[c++],r=u.get(e);if(void 0===r)throw SyntaxError(`Unexpected escaped character: ${e}`);t+=r;continue}if(t+=h[c++],c>=h.length)throw SyntaxError("Unexpected end of input")}return t};e:for(;c0){r.push(new a(e,n.Text));continue}}f(e=>/\s/.test(e));let t=h[c];if("-"===t||"+"===t){let e=r.at(-1)?.type;if(e===n.Text||void 0===e)throw SyntaxError(`Unexpected character: ${t}`);switch(e){case n.Identifier:case n.NumericLiteral:case n.BooleanLiteral:case n.StringLiteral:case n.CloseParen:case n.CloseSquareBracket:break;default:{++c;let e=f(s);r.push(new a(`${t}${e}`,e.length>0?n.NumericLiteral:n.UnaryOperator));continue}}}for(let[e,t]of l)if(h.slice(c,c+e.length)===e){r.push(new a(e,t)),c+=e.length;continue e}if("'"===t||'"'===t){++c;let e=f(e=>e!==t);r.push(new a(e,n.StringLiteral)),++c;continue}if(s(t)){let e=f(s);r.push(new a(e,n.NumericLiteral));continue}if(o(t)){let e=f(o),t=Object.hasOwn(i,e)?i[e]:n.Identifier;t===n.In&&r.at(-1)?.type===n.Not?(r.pop(),r.push(new a("not in",n.NotIn))):r.push(new a(e,t));continue}throw SyntaxError(`Unexpected character: ${t}`)}return r}(e,{lstrip_blocks:!0,trim_blocks:!0});this.parsed=function(e){let t=new c([]),r=0;function i(t,n){let i=e[r++];if(!i||i.type!==t)throw Error(`Parser Error: ${n}. ${i.type} !== ${t}.`);return i}function a(...t){return r+t.length<=e.length&&t.every((t,n)=>t===e[r+n].type)}function o(e=!1){let t=e?j:s,i=[t()],o=a(n.Comma);for(;o&&(++r,i.push(t()),a(n.Comma)););return o?new k(i):i[0]}function s(){return function(){let e=l();if(a(n.If)){++r;let t=l();return i(n.Else,"Expected else token"),new f(t,[e],[l()])}return e}()}function l(){let t=u();for(;a(n.Or);){let n=e[r];++r,t=new C(n,t,u())}return t}function u(){let t=h();for(;a(n.And);){let n=e[r];++r,t=new C(n,t,h())}return t}function h(){let t;for(;a(n.Not);){let n=e[r];++r,t=new I(n,h())}return t??function(){let t=m();for(;a(n.ComparisonBinaryOperator)||a(n.In)||a(n.NotIn);){let n=e[r];++r,t=new C(n,t,m())}return t}()}function m(){let t=O();for(;a(n.AdditiveBinaryOperator);){let n=e[r];++r,t=new C(n,t,O())}return t}function _(e){let t=new y(e,function(){i(n.OpenParen,"Expected opening parenthesis for arguments list");let e=function(){let e=[];for(;!a(n.CloseParen);){let t=s();if(a(n.Equals)){if(++r,!(t instanceof w))throw SyntaxError("Expected identifier for keyword argument");t=new T(t,s())}e.push(t),a(n.Comma)&&++r}return e}();return i(n.CloseParen,"Expected closing parenthesis for arguments list"),e}());return a(n.OpenParen)&&(t=_(t)),t}function O(){let t=B();for(;a(n.MultiplicativeBinaryOperator);){let n=e[r];++r,t=new C(n,t,B())}return t}function B(){let t=function(){let t=function(){let t=function(){let t=j();for(;a(n.Dot)||a(n.OpenSquareBracket);){let o;let l=e[r];++r;let u=l.type!==n.Dot;if(u)o=function(){let e=[],t=!1;for(;!a(n.CloseSquareBracket);)a(n.Colon)?(e.push(void 0),++r,t=!0):(e.push(s()),a(n.Colon)&&(++r,t=!0));if(0===e.length)throw SyntaxError("Expected at least one argument for member/slice expression");if(t){if(e.length>3)throw SyntaxError("Expected 0-3 arguments for slice expression");return new M(...e)}return e[0]}(),i(n.CloseSquareBracket,"Expected closing square bracket");else if("Identifier"!==(o=j()).type)throw SyntaxError("Expected identifier following dot operator");t=new g(t,o,u)}return t}();return a(n.OpenParen)?_(t):t}();for(;a(n.Pipe);){++r;let e=j();if(!(e instanceof w))throw SyntaxError("Expected identifier for the filter");a(n.OpenParen)&&(e=_(e)),t=new S(t,e)}return t}();for(;a(n.Is);){++r;let e=a(n.Not);e&&++r;let i=j();if(i instanceof x&&(i=new w(i.value.toString())),!(i instanceof w))throw SyntaxError("Expected identifier for the test");t=new z(t,e,i)}return t}function j(){let t=e[r];switch(t.type){case n.NumericLiteral:return++r,new v(Number(t.value));case n.StringLiteral:return++r,new b(t.value);case n.BooleanLiteral:return++r,new x("true"===t.value);case n.Identifier:return++r,new w(t.value);case n.OpenParen:{++r;let t=o();if(e[r].type!==n.CloseParen)throw SyntaxError(`Expected closing parenthesis, got ${e[r].type} instead`);return++r,t}case n.OpenSquareBracket:{++r;let e=[];for(;!a(n.CloseSquareBracket);)e.push(s()),a(n.Comma)&&++r;return++r,new E(e)}case n.OpenCurlyBracket:{++r;let e=new Map;for(;!a(n.CloseCurlyBracket);){let t=s();i(n.Colon,"Expected colon between key and value in object literal");let o=s();e.set(t,o),a(n.Comma)&&++r}return++r,new A(e)}default:throw SyntaxError(`Unexpected token: ${t.type}`)}}for(;rt!==e[r+n].type)}(n.OpenStatement,n.EndFor);)u.push(t());return new d(a,l,u)}(),i(n.OpenStatement,"Expected {% token"),i(n.EndFor,"Expected endfor token"),i(n.CloseStatement,"Expected %} token");break;default:throw SyntaxError(`Unknown statement type: ${e[r].type}`)}return l}();case n.OpenExpression:return function(){i(n.OpenExpression,"Expected opening expression token");let e=s();return i(n.CloseExpression,"Expected closing expression token"),e}();default:throw SyntaxError(`Unexpected token type: ${e[r].type}`)}}());return t}(t)}render(e){let t=new H;for(let[r,n]of(t.set("false",!1),t.set("true",!0),t.set("raise_exception",e=>{throw Error(e)}),t.set("range",O),Object.entries(e)))t.set(r,n);return new W(t).run(this.parsed).value}}},8030:function(e,t,r){"use strict";r.d(t,{o:function(){return d}});var n=r(4975),i=r(1386),a=r(8411),o=r(5377),s=r(2117),l=r(2265),u=r(5275),h=r(2281);function c({colors:e,locations:t,start:r,end:n,...i}){let[{height:a,width:o},c]=l.useState({height:1,width:1}),f=l.useMemo(()=>(function(e,t,r,n,i=1,a=1){let o=e.map((e,r)=>{let n=(0,s.ut)(e);if(t&&t[r]){let e=100*Math.max(0,Math.min(1,t[r]));return`${n} ${e}%`}return n});return`linear-gradient(${function(e,t,r,n){let i,a;let[o,s]=(i=[0,0],Array.isArray(r)&&(i=[null!=r[0]?r[0]:0,null!=r[1]?r[1]:0]),a=[0,1],Array.isArray(n)&&(a=[null!=n[0]?n[0]:0,null!=n[1]?n[1]:1]),[i,a]);return o[0]*=e,s[0]*=e,o[1]*=t,s[1]*=t,90+180*Math.atan2(s[1]-o[1],s[0]-o[0])/Math.PI}(i,a,r,n)}deg, ${o.join(", ")})`})(e,t,r,n,o,a),[e,t,r,n,o,a]);return(0,h.jsx)(u.Z,{...i,style:[i.style,{backgroundImage:f}],onLayout:e=>{let{width:t,height:r}=e.nativeEvent.layout;c(e=>t!==e.width||r!==e.height?{height:r,width:t}:e),i.onLayout&&i.onLayout(e)}})}let f=(0,n.z)(o.FA,{name:"LinearGradient",overflow:"hidden",position:"relative"}),d=f.styleable((e,t)=>{let r=(0,i.wN)(e),{start:n,end:o,colors:s,locations:l,children:u,...d}=r,m=(0,a.Fg)(),g=r.colors?.map(e=>m[e]?.get("web")??e)||[];return(0,h.jsxs)(f,{ref:t,...d,children:[(0,h.jsx)(c,{start:n,end:o,colors:g,locations:l,style:p}),u]})}),p={position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:0}},663:function(e,t,r){"use strict";r.d(t,{Ex:function(){return k}});var n=r(4975),i=r(2202),a=r(301),o=r(6748),s=r(8338),l=r(1092),u=r(2265),h=r(2281),c=r(357);let f="Progress",[d,p]=(0,a.b)(f),[m,g]=d(f),y="ProgressIndicator",w=(0,n.z)(l.K,{name:y,variants:{unstyled:{false:{height:"100%",width:"100%",backgrounded:!0}}},defaultVariants:{unstyled:"1"===c.env.TAMAGUI_HEADLESS}}),_=w.styleable(function(e,t){let{__scopeProgress:r,...n}=e,i=g(y,r),a=i.max-(i.value??0),o=-(0===i.width?300:i.width)*(a/100);return(0,h.jsx)(w,{"data-state":b(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,x:o,width:i.width,...!e.unstyled&&{animateOnly:["transform"],opacity:0===i.width?0:1},...n,ref:t})});function v(e,t){return`${Math.round(e/t*100)}%`}function b(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function x(e){return"number"==typeof e}let E=(0,n.z)(l.K,{name:"Progress",variants:{unstyled:{false:{borderRadius:1e5,overflow:"hidden",backgrounded:!0}},size:{"...size":e=>{let t=Math.round(.25*(0,i.Ve)((0,o.ap)(e)));return{height:t,minWidth:20*(0,i.Ve)(t),width:"100%"}}}},defaultVariants:{unstyled:"1"===c.env.TAMAGUI_HEADLESS}}),k=(0,s.$e)(E.styleable(function(e,t){let{__scopeProgress:r,value:n,max:i,getValueLabel:a=v,size:o="$true",...s}=e,l=x(i)&&!Number.isNaN(i)&&i>0?i:100,c=x(n)&&!Number.isNaN(n)&&n<=l&&n>=0?n:null,f=x(c)?a(c,l):void 0,[d,p]=u.useState(0);return(0,h.jsx)(m,{scope:r,value:c,max:l,width:d,children:(0,h.jsx)(E,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":x(c)?c:void 0,"aria-valuetext":f,role:"progressbar","data-state":b(c,l),"data-value":c??void 0,"data-max":l,...!0!==s.unstyled&&{size:o},...s,onLayout:e=>{p(e.nativeEvent.layout.width),s.onLayout?.(e)},ref:t})})}),{Indicator:_})},312:function(e,t,r){"use strict";r.d(t,{Ph:function(){return eK}});var n=r(3370),i=r(9046),a=r(281),o=r(4975),s=r(2202),l=r(9087),u=r(6748),h=r(8338),c=r(3924),f=r(8970),d=r(1676),p=r(1092),m=r(5377),g=r(2026),y=r(2875),w=r(1386),_=r(5986),v=r(9100),b=r(2281),x=r(357);let E=(0,o.z)(p.K,{name:"ListItem",tag:"li",variants:{unstyled:{false:{size:"$true",alignItems:"center",justifyContent:"space-between",flexWrap:"nowrap",width:"100%",borderColor:"$borderColor",maxWidth:"100%",overflow:"hidden",flexDirection:"row",backgroundColor:"$background"}},size:{"...size":(e,{tokens:t})=>({minHeight:t.size[e],paddingHorizontal:t.space[e],paddingVertical:(0,u.Pj)(t.space[e],{shift:-4})})},active:{true:{hoverStyle:{backgroundColor:"$background"}}},disabled:{true:{opacity:.5,pointerEvents:"none"}}},defaultVariants:{unstyled:"1"===x.env.TAMAGUI_HEADLESS}}),k=(0,o.z)(g.J,{name:"ListItemText",variants:{unstyled:{false:{color:"$color",size:"$true",flexGrow:1,flexShrink:1,ellipse:!0,cursor:"default"}}},defaultVariants:{unstyled:"1"===x.env.TAMAGUI_HEADLESS}}),A=(0,o.z)(k,{name:"ListItemSubtitle",variants:{unstyled:{false:{opacity:.6,maxWidth:"100%",color:"$color"}},size:{"...size":(e,t)=>{let r=(0,u.ap)(e,{shift:-1,excludeHalfSteps:!0});return(0,f.H)(r.key,t)}}},defaultVariants:{unstyled:"1"===x.env.TAMAGUI_HEADLESS}}),C=(0,o.z)(k,{name:"ListItemTitle"}),S=(e,{Text:t=k,Subtitle:r=A,Title:n=C}={Text:k,Subtitle:A,Title:C})=>{let i=(0,w.wN)(e),{children:a,icon:o,iconAfter:l,noTextWrap:u,theme:h,space:f,spaceFlex:p,scaleIcon:g=1,scaleSpace:x=1,unstyled:E=!1,subTitle:S,title:z,color:I,fontWeight:M,fontSize:T,fontFamily:O,letterSpacing:B,textAlign:j,ellipse:$,...U}=i,L=i.size||"$true",R=(0,c.yv)(L)*g,[F,N]=[o,l].map((0,d.Zw)({size:R,color:I})),P=(0,s.Ve)((0,_.lz)().space[i.space]??R)*x,V=(0,y.k)(t,{color:I,fontWeight:M,fontSize:T,fontFamily:O,letterSpacing:B,textAlign:j,ellipse:$,children:a});return{props:{...U,children:(0,b.jsxs)(b.Fragment,{children:[F?(0,b.jsxs)(b.Fragment,{children:[F,(0,b.jsx)(v.LZ,{size:P})]}):null,z||S?(0,b.jsxs)(m.FA,{flex:1,children:["all"===u?z:(0,b.jsx)(n,{size:L,children:z}),S?(0,b.jsx)(b.Fragment,{children:"string"==typeof S&&"all"!==u?(0,b.jsx)(r,{unstyled:E,size:L,children:S}):S}):null,V]}):V,N?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(v.LZ,{size:P}),N]}):null]})}}},z=E.styleable(function(e,t){let{props:r}=S(e);return(0,b.jsx)(E,{ref:t,...r})}),I=(0,h.$e)(z,{Text:k,Subtitle:A});var M=r(4624),T=r(6505),O=r(4077),B=r(1510),j=r(1217),$=r(3277),U=r(2265);let L={leading:!1},R="Select",F="SelectViewport";var N=r(301);let[P,V]=(0,N.b)(R),[D,q]=P(R),[H,W]=(0,N.b)(R),[G,X]=P(R),K=({__scopeSelect:e,context:t,itemContext:r,children:n})=>(0,b.jsx)(D,{isInSheet:!0,scope:e,...t,children:(0,b.jsx)(G,{scope:e,...r,children:n})});var Z=r(4243),J=r(4582),Y=r(1130),Q=r(6616);let ee=()=>!a.$L||!!(0,Q.S)()&&a.wT;var et=r(9018),er=r(9097);let en=e=>{let t=(0,er.GS)();return!!e&&(!0===e||!!e&&t[e])},ei=e=>{let t=en(e.sheetBreakpoint);return!1!==e.open&&t},ea="SelectContent";var eo=r(4016),es=r(151),el=r(4887);let eu=e=>{let{__scopeSelect:t,children:r,open:n=!1,selectedIndexRef:i,listContentRef:o}=e,s=q("SelectSheetImpl",t),u=X("SelectSheetImpl",t),{setActiveIndex:h,selectedIndex:c,activeIndex:f,forceUpdate:d}=s,{setOpen:p,setSelectedIndex:m}=u,[g,y]=U.useState(0),w=ee(),_=U.useRef([]),v=U.useRef(null),x=U.useRef(null),E=U.useRef(null),k=U.useRef(!1),A=U.useRef(!0),C=U.useRef(),S=U.useRef({isMouseOutside:!1}),[z,I]=U.useState(!1),[M,T]=U.useState(!1),[O,B]=U.useState(0),[j,$]=U.useState(!1),L=U.useRef({});(0,a.LI)(()=>{queueMicrotask(()=>{n||(y(0),T(!1),h(null),I(!1))})},[n,h]),a.$L&&a.C5&&(0,a.LI)(()=>{if(!n)return;let e=e=>{S.current.isMouseOutside&&p(!1)};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}},[n]);let{x:R,y:F,strategy:N,context:P,refs:V,update:H}=(0,Z.YF)({open:n,onOpenChange:p,placement:"bottom-start",whileElementsMounted:eo.Me,middleware:[(0,eo.dp)({apply({rects:{reference:{width:e}}}){Object.assign(L.current,{minWidth:e+8}),V.floating.current&&Object.assign(V.floating.current.style,L.current)}}),(0,Z.aN)({listRef:_,overflowRef:v,index:c,offset:O,onFallbackChange:T,padding:10,minItemsVisible:w?10:4,referenceOverflowThreshold:20}),(0,es.cv)({crossAxis:-5})]}),W=V.floating,K=n&&g>8,J=n&&W.current&&g(window.addEventListener("resize",H),n&&H(),()=>window.removeEventListener("resize",H)),[H,n]);let Y=(0,l.z)(e=>(n?h:m)(e)),Q=[(0,Z.eS)(P,{event:"mousedown",keyboardHandlers:!1}),(0,Z.bQ)(P,{outsidePress:!1}),(0,Z.qs)(P,{role:"listbox"}),(0,Z.Rz)(P,{enabled:!M&&(J||K),onChange:B,overflowRef:v,scrollRef:V.floating}),(0,Z.c0)(P,{listRef:_,activeIndex:f||0,selectedIndex:c,onNavigate:h}),(0,Z.ox)(P,{listRef:o,onMatch:Y,selectedIndex:c,activeIndex:f})],et=(0,Z.NI)(U.useMemo(()=>Q,Q)),er=U.useMemo(()=>({...et,getReferenceProps:()=>et.getReferenceProps({ref:V.reference,className:"SelectTrigger",onKeyDown(e){"Enter"!==e.key&&"Space"!==e.code&&(" "!==e.key||P.dataRef.current.typing)||(e.preventDefault(),p(!0))}}),getFloatingProps:e=>et.getFloatingProps({ref:V.floating,className:"Select",...e,style:{position:N,top:F??"",left:R??"",outline:0,scrollbarWidth:"none",...L.current,...e?.style},onPointerEnter(){I(!1),S.current.isMouseOutside=!1},onPointerLeave(){S.current.isMouseOutside=!0},onPointerMove(){S.current.isMouseOutside=!1,I(!1)},onKeyDown(){I(!0)},onContextMenu(e){e.preventDefault()},onScroll(e){(0,el.flushSync)(()=>{y(e.currentTarget.scrollTop)})}})}),[V.reference.current,R,F,V.floating.current,et]);return(0,a.LI)(()=>{if(n)return C.current=setTimeout(()=>{k.current=!0},300),()=>{clearTimeout(C.current)};k.current=!1,A.current=!0,B(0),T(!1),$(!1)},[n]),(0,a.LI)(()=>{!n&&S.current.isMouseOutside&&(S.current.isMouseOutside=!1)},[n]),(0,a.LI)(()=>{function e(e){let t=e.target;V.floating.current?.contains(t)||x.current?.contains(t)||E.current?.contains(t)||(p(!1),I(!1))}if(n)return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[n,V,p]),U.useEffect(()=>{n&&z&&null!=f&&_.current[f]?.scrollIntoView({block:"nearest"}),y(V.floating.current?.scrollTop??0)},[n,V,z,f]),U.useEffect(()=>{n&&M&&null!=c&&_.current[c]?.scrollIntoView({block:"nearest"})},[n,M,c]),(0,a.LI)(()=>{V.floating.current&&M&&(V.floating.current.style.maxHeight="")},[V,M]),(0,b.jsx)(D,{scope:t,...s,setScrollTop:y,setInnerOffset:B,fallback:M,floatingContext:P,activeIndex:f,canScrollDown:!!J,canScrollUp:!!K,controlledScrolling:z,blockSelection:j,upArrowRef:x,downArrowRef:E,update:H,children:(0,b.jsx)(G,{scope:t,...u,allowMouseUpRef:A,allowSelectRef:k,dataRef:P.dataRef,interactions:er,listRef:_,selectTimeoutRef:C,children:r})})},eh="SelectItem",[ec,ef]=P(eh),ed=E.styleable(function(e,t){let{__scopeSelect:r,value:n,disabled:o=!1,textValue:s,index:l,...u}=e,{props:h}=S({...!e.unstyled&&{ellipse:!0},...u}),{setSelectedIndex:c,listRef:f,setOpen:d,onChange:p,activeIndexSubscribe:m,valueSubscribe:g,allowMouseUpRef:y,allowSelectRef:w,setValueAtIndex:_,selectTimeoutRef:v,dataRef:x,interactions:k,shouldRenderWebNative:A,size:C,onActiveChange:z,initialValue:I}=X(eh,r),[M,T]=U.useState(I===n);U.useEffect(()=>m(e=>{l===e&&(z(n,l),f?.current[l]?.focus())}),[l]),U.useEffect(()=>g(e=>{T(e===n)}),[n]);let O=U.useId(),B=(0,i.ex)(t,e=>{a.$L&&e instanceof HTMLElement&&f&&(f.current[l]=e)});function j(){c(l),p(n),d(!1)}(0,a.LI)(()=>{_(l,n)},[l,_,n]);let $=U.useMemo(()=>k?k.getItemProps({onTouchMove(){w.current=!0,y.current=!1},onTouchEnd(){w.current=!1,y.current=!0},onKeyDown(e){"Enter"!==e.key&&(" "!==e.key||x?.current.typing)?w.current=!0:(e.preventDefault(),j())},onClick(){w.current&&j()},onMouseUp(){y.current&&(w.current&&j(),clearTimeout(v.current),v.current=setTimeout(()=>{w.current=!0}))}}):{onPress:j},[j]);return(0,b.jsx)(ec,{scope:r,value:n,textId:O||"",isSelected:M,children:A?(0,b.jsx)("option",{value:n,children:e.children}):(0,b.jsx)(E,{tag:"div",componentName:eh,ref:B,"aria-labelledby":O,"aria-selected":M,"data-state":M?"active":"inactive","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...!e.unstyled&&{backgrounded:!0,pressTheme:!0,hoverTheme:!0,focusTheme:!0,cursor:"default",size:C,outlineOffset:-.5,focusVisibleStyle:{outlineColor:"$outlineColor",outlineWidth:1,outlineStyle:"solid"}},...h,...$})})},{disableTheme:!0});var ep=r(357);let em="SelectItemText",eg=(0,o.z)(g.J,{name:em,variants:{unstyled:{false:{userSelect:"none",color:"$color",ellipse:!0}}},defaultVariants:{unstyled:"1"===ep.env.TAMAGUI_HEADLESS}}),ey=eg.styleable(function(e,t){let{__scopeSelect:r,className:n,...a}=e,o=q(em,r),s=X(em,r),l=U.useRef(null),u=(0,i.ex)(t,l),h=ef(em,r),c=U.useRef();return c.current=(0,b.jsx)(eg,{className:n,size:s.size,id:h.textId,...a,ref:u}),U.useEffect(()=>{s.initialValue!==h.value||o.selectedIndex||o.setSelectedItem(c.current)},[]),U.useEffect(()=>s.valueSubscribe(e=>{e===h.value&&o.setSelectedItem(c.current)}),[h.value]),s.shouldRenderWebNative?(0,b.jsx)(b.Fragment,{children:e.children}):(0,b.jsx)(b.Fragment,{children:c.current})}),ew="SelectScrollUpButton",e_=U.forwardRef((e,t)=>(0,b.jsx)(ex,{componentName:ew,...e,dir:"up",ref:t}));e_.displayName=ew;let ev="SelectScrollDownButton",eb=U.forwardRef((e,t)=>(0,b.jsx)(ex,{componentName:ev,...e,dir:"down",ref:t}));eb.displayName=ev;let ex=U.memo(U.forwardRef((e,t)=>{let{__scopeSelect:r,dir:n,componentName:a,...o}=e,{forceUpdate:s,open:l,fallback:u,setScrollTop:h,setInnerOffset:c,...f}=q(a,r),d=f.floatingContext?.refs.floating,p=U.useRef("idle"),g=f["down"===n?"canScrollDown":"canScrollUp"],y=U.useRef(),{x:w,y:_,refs:v,strategy:x}=(0,Z.YF)({open:l&&g,strategy:"fixed",elements:{reference:d?.current},placement:"up"===n?"top":"bottom",middleware:[(0,es.cv)(({rects:e})=>-e.floating.height)],whileElementsMounted:(...e)=>(0,eo.Me)(...e,{animationFrame:!0})}),E=(0,i.ex)(t,v.setFloating);if(!g)return null;let k=e=>{d&&(u?d.current&&(d.current.scrollTop-=e,(0,el.flushSync)(()=>h(d.current?.scrollTop??0))):(0,el.flushSync)(()=>c(t=>t-e)))};return(0,b.jsx)(m.FA,{ref:E,componentName:a,"aria-hidden":!0,...o,zIndex:1e3,position:x,left:w||0,top:_||0,width:`calc(${(d?.current?.offsetWidth??0)-2}px)`,onPointerEnter:()=>{p.current="active";let e=Date.now();cancelAnimationFrame(y.current),y.current=requestAnimationFrame(function t(){let r=d?.current;if(r){let i=Date.now(),a=i-e;e=i;let o=a/2,s="up"===n?r.scrollTop:r.scrollHeight-r.clientHeight-r.scrollTop,l="up"===n?r.scrollTop-o>0:r.scrollTop+o{p.current="idle",cancelAnimationFrame(y.current)}})})),eE="SelectTrigger",ek=!a.$L||!a.C5||window.matchMedia("(pointer:coarse)").matches,eA=U.forwardRef(function(e,t){let{__scopeSelect:r,disabled:n=!1,unstyled:a=!1,...o}=e,s=q(eE,r),l=X(eE,r),u=(0,i.ex)(t,s.floatingContext?.refs.setReference);return l.shouldRenderWebNative?null:(0,b.jsx)(I,{componentName:eE,unstyled:a,tag:"button",id:l.id,...!a&&{backgrounded:!0,radiused:!0,hoverTheme:!0,pressTheme:!0,focusable:!0,focusVisibleStyle:{outlineStyle:"solid",outlineWidth:2,outlineColor:"$outlineColor"},borderWidth:1,size:l.size},"aria-expanded":s.open,"aria-autocomplete":"none",dir:s.dir,disabled:n,"data-disabled":n?"":void 0,...o,ref:u,...l.interactions?{...l.interactions.getReferenceProps(),...ek?{onPress(){l.setOpen(!s.open)}}:{onMouseDown(){s.floatingContext?.update(),l.setOpen(!s.open)}}}:{onPress(){l.setOpen(!s.open)}}})});var eC=r(126),eS=r(357);let ez=(0,o.z)(p.K,{name:F,variants:{unstyled:{false:{size:"$2",backgroundColor:"$background",elevate:!0,bordered:!0,userSelect:"none",outlineWidth:0}},size:{"...size":(e,{tokens:t})=>({borderRadius:t.radius[e]??e})}},defaultVariants:{unstyled:"1"===eS.env.TAMAGUI_HEADLESS}}),eI=ez.styleable(function(e,t){let{__scopeSelect:r,children:n,disableScroll:o,...s}=e,l=q(F,r),u=X(F,r),h=en(l.sheetBreakpoint);if((0,a.LI)(()=>{l.update&&l.update()},[h]),u.shouldRenderWebNative)return(0,b.jsx)(b.Fragment,{children:n});if(h||!a.$L)return(0,b.jsx)(M.b5,{hostName:`${l.scopeKey}SheetContents`,children:(0,b.jsx)(K,{__scopeSelect:r,itemContext:u,context:l,children:n})});if(!u.interactions)return null;let{style:c,className:f,onScroll:d,...p}=u.interactions.getFloatingProps(),m=(0,i.FE)(t,l.floatingContext?.refs.setFloating);return(0,b.jsxs)(b.Fragment,{children:[!o&&!e.unstyled&&(0,b.jsx)("style",{dangerouslySetInnerHTML:{__html:eM}}),(0,b.jsx)(eC.M,{children:l.open?(0,b.jsx)(Z.wD,{context:l.floatingContext,modal:!1,children:(0,b.jsx)(ez,{size:u.size,role:"presentation",...s,...c,...p,...!e.unstyled&&{overflowY:o?void 0:c.overflow??"auto"},ref:m,children:n},"select-viewport")}):null}),!l.open&&(0,b.jsx)("div",{style:{display:"none"},children:e.children})]})}),eM=` -.is_SelectViewport { - scrollbar-width: none; - -webkit-overflow-scrolling: touch; - overscroll-behavior: contain; -} - -.is_SelectViewport::-webkit-scrollbar{ - display:none -} -`,eT="SelectValue",eO=(0,o.z)(g.J,{name:eT,userSelect:"none"}),eB=eO.styleable(function({__scopeSelect:e,children:t,placeholder:r,...n},a){let o=q(eT,e),s=X(eT,e),l=(0,i.ex)(a,o.onValueNodeChange),u=t??o.selectedItem,h=null==o.value||""===o.value?r??u:u;return(0,b.jsx)(eO,{...!n.unstyled&&{size:s.size,ellipse:!0,pointerEvents:"none"},ref:l,...n,children:function e(t){return U.Children.map(t,t=>{if(t){if(t.type?.staticConfig?.componentName===em)return t.props.children;if(t.props?.children)return e(t.props.children)}return t})}(h)})}),ej=(0,o.z)(m.sL,{name:"SelectIcon","aria-hidden":!0,children:(0,b.jsx)(j.n,{children:"▼"})}),e$="SelectItemIndicator",eU=(0,o.z)(m.sL,{name:em}),eL=U.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=X(e$,r),a=ef(e$,r);return i.shouldRenderWebNative?null:a.isSelected?(0,b.jsx)(eU,{"aria-hidden":!0,...n,ref:t}):null});eL.displayName=e$;let eR="SelectGroup",[eF,eN]=P(eR),eP=(0,o.z)(m.FA,{name:eR,width:"100%"}),eV=(0,o.z)(g.J,{tag:"select",backgroundColor:"$background",borderColor:"$borderColor",hoverStyle:{backgroundColor:"$backgroundHover"}}),eD=(0,o.z)(p.K,{name:"NativeSelect",bordered:!0,userSelect:"none",outlineWidth:0,paddingRight:10,variants:{size:{"...size":(e,t)=>{let{tokens:r}=t,n=(0,s.Ve)(r.space[e]);return{borderRadius:r.radius[e]??e,minHeight:r.size[e],paddingRight:n+20,paddingLeft:n,paddingVertical:(0,u.Pj)(e,{shift:-3})}}}},defaultVariants:{size:"$2"}}),eq=U.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=U.useId(),a=q(eR,r),o=X(eR,r),s=o.size??"$true",l=U.useRef(null),u=o.shouldRenderWebNative?(0,b.jsx)(eD,{asChild:!0,size:s,value:a.value,id:o.id,children:(0,b.jsx)(eV,{onChange:e=>{o.onChange(e.currentTarget.value)},size:s,ref:l,style:{color:"var(--color)",appearance:"none"},children:e.children})}):(0,b.jsx)(eP,{role:"group","aria-labelledby":i,...n,ref:t});return(0,b.jsx)(eF,{scope:r,id:i||"",children:u})});eq.displayName=eR;let eH="SelectLabel",eW=U.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=X(eH,r),a=eN(eH,r);return i.shouldRenderWebNative?null:(0,b.jsx)(I,{tag:"div",componentName:eH,fontWeight:"800",id:a.id,size:i.size,...n,ref:t})});eW.displayName=eH,(0,o.z)(T.Z,{name:"SelectSeparator"});let eG=e=>{let t=q("SelectSheetController",e.__scopeSelect),r=ei(t),n=en(t.sheetBreakpoint),i=(0,l.X)(r);return(0,b.jsx)(O.f,{onOpenChange:t=>{i()&&e.onOpenChange(t)},open:t.open,hidden:!1===n,children:e.children})},eX=e=>(0,b.jsx)(b.Fragment,{children:e.children}),eK=(0,h.$e)(e=>{let{__scopeSelect:t,native:r,children:i,open:o,defaultOpen:s,onOpenChange:u,value:h,defaultValue:c,onValueChange:f,disablePreventBodyScroll:d,size:p="$true",onActiveChange:m,dir:g,id:y}=e,w=U.useId(),_=t?Object.keys(t)[0]??w:w,{when:v,AdaptProvider:x}=(0,n.pV)({Contents:U.useCallback(()=>(0,b.jsx)(M.$2,{name:`${_}SheetContents`}),[_])}),E=en(v)||!a.$L?eX:eu,k=U.useReducer(()=>({}),{})[1],[A,C]=U.useState(null),[S,z]=(0,$.T)({prop:o,defaultProp:s||!1,onChange:u}),[I,T]=(0,$.T)({prop:h,defaultProp:c||"",onChange:f,transition:!0});U.useEffect(()=>{S&&j(I)},[S]),U.useEffect(()=>{j(I)},[I]);let[O,B]=U.useState(0),[j,R]=eZ(),[F,N]=eZ(),P=U.useRef(null),V=U.useRef(null),q=U.useRef([]),[H,W]=U.useState(0),[X,K]=U.useState(null);(0,a.LI)(()=>{P.current=H,V.current=O});let Z=a.$L&&(!0===r||"web"===r||Array.isArray(r)&&r.includes("web")),J=function(e,t,r=L,n=[e]){let i=(0,U.useRef)(null);return(0,U.useEffect)(()=>()=>{i.current?.cancel()},[]),(0,U.useMemo)(()=>(i.current=function(e,t,r){let n,i=!1;function a(){i=!1;let a=arguments;r&&!n&&e.apply(this,a),clearTimeout(n),n=setTimeout(()=>{n=null,r||i||e.apply(this,a),i=!1},t)}return a.cancel=()=>{i=!0},a}(e,1,r.leading),i.current),[r.leading,...n])}(e=>{B(t=>t!==e?("number"==typeof e&&F(e),e):t)},0,{},[]);return(0,b.jsx)(x,{children:(0,b.jsx)(G,{scope:t,initialValue:U.useMemo(()=>I,[S]),size:p,activeIndexSubscribe:N,valueSubscribe:R,setOpen:z,id:y,onChange:U.useCallback(e=>{T(e),j(e)},[]),onActiveChange:(0,l.z)((...e)=>{m?.(...e)}),setSelectedIndex:W,setValueAtIndex:U.useCallback((e,t)=>{q.current[e]=t},[]),shouldRenderWebNative:Z,children:(0,b.jsx)(D,{scope:t,disablePreventBodyScroll:d,dir:g,blockSelection:!1,fallback:!1,selectedItem:A,setSelectedItem:C,forceUpdate:k,valueNode:X,onValueNodeChange:K,scopeKey:_,sheetBreakpoint:v,activeIndex:O,selectedIndex:H,setActiveIndex:J,value:I,open:S,native:r,children:(0,b.jsx)(eG,{onOpenChange:z,__scopeSelect:t,children:Z?i:(0,b.jsx)(E,{activeIndexRef:V,listContentRef:q,selectedIndexRef:P,...e,open:S,value:I,children:i})})})})})},{Adapt:n.Tr,Content:({children:e,__scopeSelect:t,zIndex:r=1e3,...n})=>{let i=q(ea,t),a=X(ea,t),o=(0,J.C)(),s=ei(i),l=(0,b.jsx)(Y.Q,{forceClassName:!0,name:o,children:e}),u=ee(),h=(0,U.useMemo)(()=>({zIndex:r,pointerEvents:i.open?"auto":"none"}),[i.open]);return a.shouldRenderWebNative?(0,b.jsx)(b.Fragment,{children:e}):s?i.open?(0,b.jsx)(b.Fragment,{children:l}):null:(0,b.jsx)(Z.ll,{children:(0,b.jsx)(Z.y0,{style:h,lockScroll:!i.disablePreventBodyScroll&&!!i.open&&!u,children:(0,b.jsx)(et.M,{loop:!0,enabled:!!i.open,trapped:!0,...n,children:l})})})},Group:eq,Icon:ej,Item:ed,ItemIndicator:eL,ItemText:ey,Label:eW,ScrollDownButton:eb,ScrollUpButton:e_,Trigger:eA,Value:eB,Viewport:eI,Sheet:B.yo.Controlled});function eZ(){let e=U.useRef();return e.current||(e.current=new Set),[t=>{e.current.forEach(e=>e(t))},U.useCallback(t=>(e.current.add(t),()=>{e.current.delete(t)}),[])]}eK.displayName=R},967:function(e,t,r){"use strict";let n;r.d(t,{ONNX:function(){return n},p:function(){return u}});var i,a,o=r(495),s=r(6388),l=r(357);let u=["wasm"];void 0!==l&&l?.release?.name==="node"?(n=o??(i||(i=r.t(o,2))),u.unshift("cpu")):(n=s??(a||(a=r.t(s,2))),"undefined"!=typeof navigator&&/iP(hone|od|ad).+16_4.+AppleWebKit/.test(navigator.userAgent)&&(n.env.wasm.simd=!1))},16:function(e,t,r){"use strict";r.d(t,{z:function(){return o}});var n=r(911);async function i(e,t){return await (0,n.yM)(e,"config.json",!0,t)}class a{constructor(e){this.model_type=null,this.is_encoder_decoder=!1,Object.assign(this,e)}static async from_pretrained(e,{progress_callback:t=null,config:r=null,cache_dir:n=null,local_files_only:a=!1,revision:o="main"}={}){return new this(r??await i(e,{progress_callback:t,config:r,cache_dir:n,local_files_only:a,revision:o}))}}class o{static async from_pretrained(...e){return a.from_pretrained(...e)}}},851:function(e,t,r){"use strict";r.d(t,{O:function(){return g}});var n=r(8386),i=r(3342),a=r(8464);let{env:o}=r(967).ONNX,s="2.17.1",l="undefined"!=typeof self&&"caches"in self,u=!y(n),h=!y(i),c=u&&h,f=c?i.dirname(i.dirname(a.fileURLToPath("file:///mnt/c/tools/projects/translator-tamagui/node_modules/@xenova/transformers/src/env.js"))):"./",d=c?i.join(f,"/.cache/"):null,p="/models/",m=c?i.join(f,p):p;o?.wasm&&(o.wasm.wasmPaths=c?i.join(f,"/dist/"):`https://cdn.jsdelivr.net/npm/@xenova/transformers@${s}/dist/`);let g={backends:{onnx:o,tfjs:{}},__dirname:f,version:s,allowRemoteModels:!0,remoteHost:"https://huggingface.co/",remotePathTemplate:"{model}/resolve/{revision}/",allowLocalModels:!0,localModelPath:m,useFS:u,useBrowserCache:l,useFSCache:u,cacheDir:d,useCustomCache:!1,customCache:null};function y(e){return 0===Object.keys(e).length}},9078:function(e,t,r){"use strict";let n,i,a;r.d(t,{qCb:function(){return h.qC},EUT:function(){return eZ}});var o=r(2018),s=r(9454),l=r(761),u=r(911),h=r(8709),c=r(2414),f=r(851),d=r(8741);let p="undefined"!=typeof self,m=p&&"DedicatedWorkerGlobalScope"===self.constructor.name;if(p)n=(e,t)=>{if(!self.OffscreenCanvas)throw Error("OffscreenCanvas not supported by this browser.");return new self.OffscreenCanvas(e,t)},a=self.createImageBitmap,i=self.ImageData;else if(d)a=async e=>{let t=(await e.metadata()).channels,{data:r,info:n}=await e.raw().toBuffer({resolveWithObject:!0}),i=new w(new Uint8ClampedArray(r),n.width,n.height,n.channels);return void 0!==t&&t!==n.channels&&i.convert(t),i};else throw Error("Unable to load image processing library.");let g={0:"nearest",1:"lanczos",2:"bilinear",3:"bicubic",4:"box",5:"hamming"},y=new Map([["png","image/png"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["gif","image/gif"]]);class w{constructor(e,t,r,n){this.data=e,this.width=t,this.height=r,this.channels=n}get size(){return[this.width,this.height]}static async read(e){if(e instanceof w)return e;if("string"==typeof e||e instanceof URL)return await this.fromURL(e);throw Error(`Unsupported input type: ${typeof e}`)}static async fromURL(e){let t=await (0,u.hn)(e);if(200!==t.status)throw Error(`Unable to read image from "${e}" (${t.status} ${t.statusText})`);let r=await t.blob();return this.fromBlob(r)}static async fromBlob(e){if(p){let t=await a(e),r=n(t.width,t.height).getContext("2d");return r.drawImage(t,0,0),new this(r.getImageData(0,0,t.width,t.height).data,t.width,t.height,4)}{let t=d(await e.arrayBuffer());return await a(t)}}static fromTensor(e,t="CHW"){if(3!==e.dims.length)throw Error(`Tensor should have 3 dimensions, but has ${e.dims.length} dimensions.`);if("CHW"===t)e=e.transpose(1,2,0);else if("HWC"===t);else throw Error(`Unsupported channel format: ${t}`);if(!(e.data instanceof Uint8ClampedArray||e.data instanceof Uint8Array))throw Error(`Unsupported tensor type: ${e.type}`);switch(e.dims[2]){case 1:case 2:case 3:case 4:return new w(e.data,e.dims[1],e.dims[0],e.dims[2]);default:throw Error(`Unsupported number of channels: ${e.dims[2]}`)}}grayscale(){if(1===this.channels)return this;let e=new Uint8ClampedArray(this.width*this.height*1);switch(this.channels){case 3:case 4:for(let t=0,r=0;t=0?l=r:h=-r,i>=0?u=i:c=-i,s.drawImage(o,l,u,e,t,h,c,e,t),new w(s.getImageData(0,0,e,t).data,e,t,4).convert(a)}{let n=this.toSharp();if(r>=0&&i>=0)n=n.extract({left:Math.floor(r),top:Math.floor(i),width:e,height:t});else if(r<=0&&i<=0){let a=Math.floor(-i),o=Math.floor(-r);n=n.extend({top:a,left:o,right:e-this.width-o,bottom:t-this.height-a})}else{let a=[0,0],o=0;i<0?(a[0]=Math.floor(-i),a[1]=t-this.height-a[0]):o=Math.floor(i);let s=[0,0],l=0;r<0?(s[0]=Math.floor(-r),s[1]=e-this.width-s[0]):l=Math.floor(r),n=n.extend({top:a[0],bottom:a[1],left:s[0],right:s[1]}).extract({left:l,top:o,width:e,height:t})}return await a(n)}}async toBlob(e="image/png",t=1){if(!p)throw Error("toBlob() is only supported in browser environments.");let r=this.toCanvas();return await r.convertToBlob({type:e,quality:t})}toTensor(e="CHW"){let t=new c.es("uint8",new Uint8Array(this.data),[this.height,this.width,this.channels]);if("HWC"===e);else if("CHW"===e)t=t.permute(2,0,1);else throw Error(`Unsupported channel format: ${e}`);return t}toCanvas(){if(!p)throw Error("toCanvas() is only supported in browser environments.");let e=this.clone().rgba(),t=n(e.width,e.height),r=new i(e.data,e.width,e.height);return t.getContext("2d").putImageData(r,0,0),t}_update(e,t,r,n=null){return this.data=e,this.width=t,this.height=r,null!==n&&(this.channels=n),this}clone(){return new w(this.data.slice(),this.width,this.height,this.channels)}convert(e){if(this.channels===e)return this;switch(e){case 1:this.grayscale();break;case 3:this.rgb();break;case 4:this.rgba();break;default:throw Error(`Conversion failed due to unsupported number of channels: ${this.channels}`)}return this}async save(e){if(p){if(m)throw Error("Unable to save an image from a Web Worker.");let t=e.split(".").pop().toLowerCase(),r=y.get(t)??"image/png",n=await this.toBlob(r),i=URL.createObjectURL(n),a=document.createElement("a");a.href=i,a.download=e,a.click(),a.remove()}else if(f.O.useFS){let t=this.toSharp();return await t.toFile(e)}else throw Error("Unable to save the image because filesystem is disabled in this environment.")}toSharp(){if(p)throw Error("toSharp() is only supported in server-side environments.");return d(this.data,{raw:{width:this.width,height:this.height,channels:this.channels}})}}async function _(e,t){let r;if("undefined"==typeof AudioContext)throw Error("Unable to load audio from path/URL since `AudioContext` is not available in your environment. Instead, audio data should be passed directly to the pipeline/processor. For more information and some example code, see https://huggingface.co/docs/transformers.js/guides/node-audio-processing.");let n=await (await (0,u.hn)(e)).arrayBuffer(),i=new AudioContext({sampleRate:t});void 0===t&&console.warn(`No sampling rate provided, using default of ${i.sampleRate}Hz.`);let a=await i.decodeAudioData(n);if(2===a.numberOfChannels){let e=Math.sqrt(2),t=a.getChannelData(0),n=a.getChannelData(1);r=new Float32Array(t.length);for(let i=0;i2595*Math.log10(1+e/700),kaldi:e=>1127*Math.log(1+e/700),slaney:(e,t=1e3,r=15,n=27/Math.log(6.4))=>e>=t?r+Math.log(e/t)*n:3*e/200};function x(e,t="htk"){let r=b[t];if(!r)throw Error('mel_scale should be one of "htk", "slaney" or "kaldi".');return"number"==typeof e?r(e):e.map(e=>r(e))}let E={htk:e=>700*(10**(e/2595)-1),kaldi:e=>700*(Math.exp(e/1127)-1),slaney:(e,t=1e3,r=15,n=Math.log(6.4)/27)=>e>=r?t*Math.exp(n*(e-r)):200*e/3};function k(e,t,r){let n=(t-e)/(r-1);return Float64Array.from({length:r},(t,r)=>e+n*r)}function A(e,t,r,n,i,a=null,o="htk",s=!1){let l;if(null!==a&&"slaney"!==a)throw Error('norm must be one of null or "slaney"');let u=k(x(r,o),x(n,o),t+2),h=function(e,t="htk"){let r=E[t];if(!r)throw Error('mel_scale should be one of "htk", "slaney" or "kaldi".');return"number"==typeof e?r(e):e.map(e=>r(e))}(u,o);if(s){let t=i/(2*e);l=x(Float64Array.from({length:e},(e,r)=>r*t),o),h=u}else l=k(0,Math.floor(i/2),e);let c=function(e,t){let r=Float64Array.from({length:t.length-1},(e,r)=>t[r+1]-t[r]),n=Array.from({length:e.length},()=>Array(t.length));for(let r=0;rArray(e.length));for(let t=0;ti)throw Error(`frame_length (${r}) may not be larger than fft_length (${i})`);if(x!==r)throw Error(`Length of the window (${x}) must equal frame_length (${r})`);if(n<=0)throw Error("hop_length must be greater than zero");if(o){if("reflect"!==s)throw Error(`pad_mode="${s}" not implemented yet.`);let t=Math.floor((i-1)/2)+1;e=function(e,t,r){let n=new e.constructor(e.length+t+r),i=e.length-1;for(let r=0;rE?v&&(S=_):S=A=_);let z=new h.vw(i),I=new Float64Array(i),M=new Float64Array(z.outputBufferSize),T=Array(A);for(let i=0;i=1;--e)I[e]-=c*I[e-1];I[0]*=1-c}for(let e=0;eMath.pow(e,.85));break;default:throw Error(`Unknown window type ${t}.`)}if(r&&(a=a.subarray(0,e)),null===n)return a;if(e>n)throw Error(`Length of the window (${e}) may not be larger than frame_length (${n})`);return a}function I(e,t=.5,r=null,n=!1){let i=e.logits,a=e.pred_boxes,[o,s,l]=i.dims;if(null!==r&&r.length!==o)throw Error("Make sure that you pass in as many target sizes as the batch dimension of the logits");let u=[];for(let e=0;et&&a.push(e)}else{let e=(0,h.Fp)(i.data)[1];if(e===l-1)continue;a.push(e),r=(0,h.XA)(i.data)}for(let t of a){let n=d[e].data;n=function([e,t,r,n]){return[e-r/2,t-n/2,e+r/2,t+n/2]}(n),null!==o&&(n=n.map((e,t)=>e*o[(t+1)%2])),c.boxes.push(n),c.classes.push(t),c.scores.push(r[t])}}u.push(c)}return u}function M(e,t){if(!(e instanceof Float32Array||e instanceof Float64Array))throw Error(`${t} expects input to be a Float32Array or a Float64Array, but got ${e?.constructor?.name??typeof e} instead. If using the feature extractor directly, remember to use \`read_audio(url, sampling_rate)\` to obtain the raw audio data of the file/url.`)}function T(e,t,r=0,n=null){let i=e/t,a=(0,h.eT)(i)*t;return null!==n&&a>n&&(a=Math.floor(i)*t),ai?l=Math.floor(i*s/n):i>n&&(s=Math.floor(n*l/i)),await e.resize(l,s,{resample:r}))}async crop_margin(e,t=200){let r=e.clone().grayscale(),n=(0,h.VV)(r.data)[0],i=(0,h.Fp)(r.data)[0]-n;if(0===i)return e;let a=t/255,o=r.width,s=r.height,l=0,u=0;for(let e=0;ethis.preprocess(e)));return{pixel_values:(0,c.kn)(r.map(e=>e.pixel_values),0),original_sizes:r.map(e=>e.original_size),reshaped_input_sizes:r.map(e=>e.reshaped_input_size)}}}class $ extends j{post_process_semantic_segmentation(e,t=null){let r=e.logits,n=r.dims[0];if(null!==t&&t.length!==n)throw Error("Make sure that you pass in as many target sizes as the batch dimension of the logits");let i=[];for(let e=0;eu[r]&&(u[r]=t[r],l.data[r]=e)}let h=Array(a.dims[0]),f=l.data;for(let e=0;evoid 0!==e);i.push({segmentation:l,labels:d})}return i}}class U extends j{}class L extends U{}class R extends j{}class F extends j{}class N extends j{}class P extends j{}class V extends j{}class D extends j{constructor(e){super(e),this.crop_pct=this.config.crop_pct??.875}async resize(e){let t=this.size?.shortest_edge;if(void 0===t)throw Error("Size dictionary must contain 'shortest_edge' key.");if(t<384){let r=Math.floor(t/this.crop_pct),[n,i]=this.get_resize_output_image_size(e,{shortest_edge:r});e=await e.resize(n,i,{resample:this.resample}),e=await e.center_crop(t,t)}else e=await e.resize(t,t,{resample:this.resample});return e}}class q extends D{}class H extends j{}class W extends j{}class G extends j{constructor(e){super(e),this.include_top=this.config.include_top??!0,this.include_top&&(this.image_std=this.image_std.map(e=>e*e))}}class X extends j{}class K extends j{post_process_object_detection(...e){return I(...e)}}class Z extends K{}class J extends j{}class Y extends j{}class Q extends j{pad_image(e,t,r,n={}){let[i,a,o]=t,s=this.image_mean;Array.isArray(this.image_mean)||(s=Array(o).fill(s));let l=this.image_std;Array.isArray(l)||(l=Array(o).fill(s));let u=s.map((e,t)=>-e/l[t]);return super.pad_image(e,t,r,{center:!0,constant_values:u,...n})}}class ee extends Q{}class et extends j{async _call(e){let t=await super._call(e),r=[t.pixel_values.dims[0],64,64],n=new c.es("int64",new BigInt64Array(r.reduce((e,t)=>e*t)).fill(1n),r);return{...t,pixel_mask:n}}post_process_object_detection(...e){return I(...e)}remove_low_and_no_objects(e,t,r,n){let i=[],a=[],o=[];for(let s=0;sr&&(i.push(u),a.push(f),o.push(c))}return[i,a,o]}check_segment_validity(e,t,r,n=.5,i=.8){let a=[],o=0,s=0;for(let i=0;i=n&&++s;let l=o>0&&s>0;return l&&(l=o/s>i),[l,a]}compute_segments(e,t,r,n,i,a=null,o=null){let[s,l]=o??e[0].dims,u=new c.es("int32",new Int32Array(s*l),[s,l]),h=[];if(null!==o)for(let t=0;td[t]&&(f[t]=r,d[t]=e[r].data[t])}let p=0;for(let a=0;ae!==t.dims[r]))throw Error(`The first ${r.length} dimensions of 'input_points' and 'input_labels' must be the same.`);return new c.es("int64",e.flat(1/0).map(BigInt),r)}async _call(e,t=null,r=null){let n=await super._call(e);if(t&&(n.input_points=this.reshape_input_points(t,n.original_sizes,n.reshaped_input_sizes)),r){if(!n.input_points)throw Error("`input_points` must be provided if `input_labels` are provided.");n.input_labels=this.add_input_labels(r,n.input_points)}return n}post_process_masks(e,t,r,{mask_threshold:n=0,binarize:i=!0,pad_size:a=null}={}){let o=[],s=[(a=a??this.pad_size).height,a.width];for(let a=0;an&&(e[t]=1);r=new c.es("bool",e,r.dims)}f.push(r)}o.push((0,c.kn)(f))}return o}}class ei extends j{pad_image(e,t,r,n={}){let[i,a,o]=t;return super.pad_image(e,t,{width:a+(r-a%r)%r,height:i+(r-i%r)%r},{mode:"symmetric",center:!1,constant_values:-1,...n})}}class ea extends j{async _call(e,t){Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]);let r=await Promise.all(e.map(e=>this.preprocess(e))),n=await Promise.all(t.map(e=>this.preprocess(e,{do_normalize:!1,do_convert_rgb:!1,do_convert_grayscale:!0})));return{pixel_values:(0,c.kn)(r.map((e,t)=>(0,c.d3)([e.pixel_values,n[t].pixel_values],0)),0),original_sizes:r.map(e=>e.original_size),reshaped_input_sizes:r.map(e=>e.reshaped_input_size)}}}class eo extends B{constructor(e){super(e),this.config.mel_filters??=A(Math.floor(1+this.config.n_fft/2),this.config.feature_size,0,8e3,this.config.sampling_rate,"slaney","slaney"),this.window=z(this.config.n_fft,"hann")}_extract_fbank_features(e){let{data:t,dims:r}=S(e,this.window,this.config.n_fft,this.config.hop_length,{power:2,mel_filters:this.config.mel_filters,log_mel:"log10",max_num_frames:this.config.nb_max_frames}),n=(0,h.Fp)(t)[0];for(let e=0;ethis.config.n_samples?(console.warn("Attempting to extract features for audio longer than 30 seconds. If using a pipeline to extract transcript from a long audio clip, remember to specify `chunk_length_s` and/or `stride_length_s`."),t=e.slice(0,this.config.n_samples)):(t=new Float32Array(this.config.n_samples)).set(e);let{data:r,dims:n}=this._extract_fbank_features(t);return{input_features:new c.es("float32",r,[1,...n])}}}class es extends B{_zero_mean_unit_var_norm(e){let t=e.reduce((e,t)=>e+t,0)/e.length,r=e.reduce((e,r)=>e+(r-t)**2,0)/e.length;return e.map(e=>(e-t)/Math.sqrt(r+1e-7))}async _call(e){M(e,"Wav2Vec2FeatureExtractor"),e instanceof Float64Array&&(e=new Float32Array(e));let t=e;this.config.do_normalize&&(t=this._zero_mean_unit_var_norm(t));let r=[1,t.length];return{input_values:new c.es("float32",t,r),attention_mask:new c.es("int64",new BigInt64Array(t.length).fill(1n),r)}}}class el extends B{constructor(e){super(e);let t=this.config.sampling_rate,r=A(256,this.config.num_mel_bins,20,Math.floor(t/2),t,null,"kaldi",!0);for(let e=0;e32768*e),this.window,400,160,{fft_length:512,power:2,center:!1,preemphasis:.97,mel_filters:this.mel_filters,log_mel:"log",mel_floor:1192092955078125e-22,remove_dc_offset:!0,max_num_frames:t,transpose:!0})}async _call(e,{padding:t=!0,pad_to_multiple_of:r=2,do_normalize_per_mel_bins:n=!0,return_attention_mask:i=!0}={}){let a;M(e,"SeamlessM4TFeatureExtractor");let o=this._extract_fbank_features(e,this.config.max_length);if(n){let[e,t]=o.dims;for(let r=0;r0){let r=new Float32Array(t*(e+n));r.set(o.data),r.fill(this.config.padding_value,o.data.length);let s=e+n;o={data:r,dims:[s,t]},i&&(a=new c.es("int64",new BigInt64Array(s),[1,s])).data.fill(1n,0,e)}}let[s,l]=o.dims,u=this.config.stride;if(0!=s%u)throw Error(`The number of frames (${s}) must be a multiple of the stride (${u}).`);let h=new c.es("float32",o.data,o.dims).view(1,Math.floor(s/u),l*u),f={input_features:h};if(i){let e=h.dims[1],t=new c.es("int64",new BigInt64Array(e),[1,e]);if(a)for(let e=1,r=0;e0){if("rand_trunc"===r){a=!0;let r=Math.floor(Math.random()*(o+1));e=e.subarray(r,r+t),(i=this._extract_fbank_features(e,this.mel_filters_slaney,this.config.nb_max_samples)).dims=[1,...i.dims]}else throw Error(`Truncation strategy "${r}" not implemented`)}else{if(o<0){let r=new Float64Array(t);if(r.set(e),"repeat"===n)for(let n=e.length;nw.read(e)))}async function ev(e,t){return Array.isArray(e)||(e=[e]),await Promise.all(e.map(e=>"string"==typeof e||e instanceof URL?_(e,t):e instanceof Float64Array?new Float32Array(e):e))}function eb(e,t){t&&(e=e.map(e=>0|e));let[r,n,i,a]=e;return{xmin:r,ymin:n,xmax:i,ymax:a}}class ex extends l.Ag{constructor({task:e,model:t,tokenizer:r=null,processor:n=null}){super(),this.task=e,this.model=t,this.tokenizer=r,this.processor=n}async dispose(){await this.model.dispose()}}class eE extends ex{constructor(e){super(e)}async _call(e,{topk:t=1}={}){let r=this.tokenizer(e,{padding:!0,truncation:!0}),n=await this.model(r),i="multi_label_classification"===this.model.config.problem_type?e=>e.sigmoid().data:e=>(0,h.XA)(e.data),a=this.model.config.id2label,o=[];for(let e of n.logits){let r=i(e),n=(0,h.em)(r,t).map(e=>({label:a[e[0]],score:e[1]}));1===t?o.push(...n):o.push(n)}return Array.isArray(e)||1===t?o:o[0]}}class ek extends ex{constructor(e){super(e)}async _call(e,{ignore_labels:t=["O"]}={}){let r=Array.isArray(e),n=this.tokenizer(r?e:[e],{padding:!0,truncation:!0}),i=(await this.model(n)).logits,a=this.model.config.id2label,o=[];for(let e=0;e[e,t]).filter(e=>e[1]>o),u=Array.from((0,h.XA)(i.end_logits[e].data)).map((e,t)=>[e,t]).filter(e=>e[1]>o),c=(0,l.O7)(s,u).filter(e=>e[0][1]<=e[1][1]).map(e=>[e[0][1],e[1][1],e[0][0]*e[1][0]]).sort((e,t)=>t[2]-e[2]);for(let e=0;e{let t=[...a];return t[o]=e[0],{score:e[1],token:e[0],token_str:this.tokenizer.model.vocab[e[0]],sequence:this.tokenizer.decode(t,{skip_special_tokens:!0})}}))}return Array.isArray(e)?i:i[0]}}class eS extends ex{_key="generated_text";constructor(e){super(e)}async _call(e,t={}){let r;Array.isArray(e)||(e=[e]),this.model.config.prefix&&(e=e.map(e=>this.model.config.prefix+e));let n=this.model.config.task_specific_params;n&&n[this.task]&&n[this.task].prefix&&(e=e.map(e=>n[this.task].prefix+e));let i=this.tokenizer,a={padding:!0,truncation:!0};r=this instanceof eI&&"_build_translation_inputs"in i?i._build_translation_inputs(e,a,t).input_ids:i(e,a).input_ids;let o=await this.model.generate(r,t);return i.batch_decode(o,{skip_special_tokens:!0}).map(e=>({[this._key]:e}))}}class ez extends eS{_key="summary_text";constructor(e){super(e)}}class eI extends eS{_key="translation_text";constructor(e){super(e)}}function eM(e){return Array.isArray(e)&&e.every(e=>"role"in e&&"content"in e)}class eT extends ex{constructor(e){super(e)}async _call(e,t={}){let r,n,i=!1,a=!1;if("string"==typeof e)r=e=[e];else if(Array.isArray(e)&&e.every(e=>"string"==typeof e))i=!0,r=e;else{if(eM(e))e=[e];else if(Array.isArray(e)&&e.every(eM))i=!0;else throw Error("Input must be a string, an array of strings, a Chat, or an array of Chats");a=!0,r=e.map(e=>this.tokenizer.apply_chat_template(e,{tokenize:!1,add_generation_prompt:!0}))}let o=t.add_special_tokens??!1,s=!a&&(t.return_full_text??!0);this.tokenizer.padding_side="left";let{input_ids:l,attention_mask:u}=this.tokenizer(r,{add_special_tokens:o,padding:!0,truncation:!0}),h=await this.model.generate(l,t,null,{inputs_attention_mask:u}),c=this.tokenizer.batch_decode(h,{skip_special_tokens:!0});!s&&l.dims.at(-1)>0&&(n=this.tokenizer.batch_decode(l,{skip_special_tokens:!0}).map(e=>e.length));let f=Array.from({length:e.length},e=>[]);for(let t=0;t[e.toLowerCase(),t])),this.entailment_id=this.label2id.entailment,void 0===this.entailment_id&&(console.warn("Could not find 'entailment' in label2id mapping. Using 2 as entailment_id."),this.entailment_id=2),this.contradiction_id=this.label2id.contradiction??this.label2id.not_entailment,void 0===this.contradiction_id&&(console.warn("Could not find 'contradiction' in label2id mapping. Using 0 as contradiction_id."),this.contradiction_id=0)}async _call(e,t,{hypothesis_template:r="This example is {}.",multi_label:n=!1}={}){let i=Array.isArray(e);i||(e=[e]),Array.isArray(t)||(t=[t]);let a=t.map(e=>r.replace("{}",e)),o=n||1===t.length,s=[];for(let r of e){let e=[];for(let t of a){let n=this.tokenizer(r,{text_pair:t,padding:!0,truncation:!0}),i=await this.model(n);o?e.push([i.logits.data[this.contradiction_id],i.logits.data[this.entailment_id]]):e.push(i.logits.data[this.entailment_id])}let n=(o?e.map(e=>(0,h.XA)(e)[1]):(0,h.XA)(e)).map((e,t)=>[e,t]).sort((e,t)=>t[0]-e[0]);s.push({sequence:r,labels:n.map(e=>t[e[1]]),scores:n.map(e=>e[0])})}return i?s:s[0]}}class eB extends ex{constructor(e){super(e)}async _call(e,{pooling:t="none",normalize:r=!1,quantize:n=!1,precision:i="binary"}={}){let a=this.tokenizer(e,{padding:!0,truncation:!0}),o=await this.model(a),s=o.last_hidden_state??o.logits;if("none"===t);else if("mean"===t)s=(0,c.v6)(s,a.attention_mask);else if("cls"===t)s=s.slice(null,0);else throw Error(`Pooling method '${t}' not supported.`);return r&&(s=s.normalize(2,-1)),n&&(s=(0,c.e)(s,i)),s}}class ej extends ex{constructor(e){super(e)}async _call(e,{pool:t=null}={}){let r;let n=await e_(e),{pixel_values:i}=await this.processor(n),a=await this.model({pixel_values:i});if(t){if(!("pooler_output"in a))throw Error("No pooled output was returned. Make sure the model has a 'pooler' layer when using the 'pool' option.");r=a.pooler_output}else r=a.last_hidden_state??a.logits??a.image_embeds;return r}}class e$ extends ex{constructor(e){super(e)}async _call(e,{topk:t=null}={}){let r=!Array.isArray(e),n=this.processor.feature_extractor.config.sampling_rate,i=await ev(e,n),a=this.model.config.id2label,o=[];for(let e of i){let r=await this.processor(e),n=(await this.model(r)).logits[0],i=(0,h.em)((0,h.XA)(n.data),t).map(e=>({label:a[e[0]],score:e[1]}));1===t?o.push(...i):o.push(i)}return r&&1!==t?o[0]:o}}class eU extends ex{constructor(e){super(e)}async _call(e,t,{hypothesis_template:r="This is a sound of {}."}={}){let n=!Array.isArray(e);n&&(e=[e]);let i=t.map(e=>r.replace("{}",e)),a=this.tokenizer(i,{padding:!0,truncation:!0}),o=this.processor.feature_extractor.config.sampling_rate,s=await ev(e,o),l=[];for(let e of s){let r=await this.processor(e),n=await this.model({...a,...r}),i=(0,h.XA)(n.logits_per_audio.data);l.push([...i].map((e,r)=>({score:e,label:t[r]})))}return n?l[0]:l}}class eL extends ex{constructor(e){super(e)}async _call(e,t={}){switch(this.model.config.model_type){case"whisper":return this._call_whisper(e,t);case"wav2vec2":case"wav2vec2-bert":case"unispeech":case"unispeech-sat":case"hubert":return this._call_wav2vec2(e,t);default:throw Error(`AutomaticSpeechRecognitionPipeline does not support model type '${this.model.config.model_type}'.`)}}async _call_wav2vec2(e,t={}){t.language&&console.warn('`language` parameter is not yet supported for `wav2vec2` models, defaulting to "English".'),t.task&&console.warn('`task` parameter is not yet supported for `wav2vec2` models, defaulting to "transcribe".');let r=!Array.isArray(e);r&&(e=[e]);let n=this.processor.feature_extractor.config.sampling_rate,i=await ev(e,n),a=[];for(let e of i){let t=await this.processor(e),r=(await this.model(t)).logits[0],n=[];for(let e of r)n.push((0,h.Fp)(e.data)[1]);let i=this.tokenizer.decode(n);a.push({text:i})}return r?a[0]:a}async _call_whisper(e,t={}){let r=t.return_timestamps??!1,n=t.chunk_length_s??0,i=t.chunk_callback??null,a=t.force_full_sequences??!1,o=t.stride_length_s??null;"word"===r&&(t.return_token_timestamps=!0);let s=(0,l.Sw)(t,"language",null),u=(0,l.Sw)(t,"task",null);if(s||u||r){if(t.forced_decoder_ids)throw Error("Cannot specify `language`/`task`/`return_timestamps` and `forced_decoder_ids` at the same time.");let e=this.tokenizer.get_decoder_prompt_ids({language:s,task:u,no_timestamps:!r});e.length>0&&(t.forced_decoder_ids=e)}let c=!Array.isArray(e);c&&(e=[e]);let f=this.processor.feature_extractor.config.chunk_length/this.model.config.max_source_positions,d=this.processor.feature_extractor.config.hop_length,p=this.processor.feature_extractor.config.sampling_rate,m=await ev(e,p),g=[];for(let e of m){let s=[];if(n>0){if(null===o)o=n/6;else if(n<=o)throw Error("`chunk_length_s` must be larger than `stride_length_s`.");let t=p*n,r=p*o,i=t-2*r,a=0;for(;a=e.length;s.push({stride:[n.length,l?0:r,u?0:r],input_features:o.input_features,is_last:u}),a+=i}}else s=[{stride:[e.length,0,0],input_features:(await this.processor(e)).input_features,is_last:!0}];for(let e of s){t.num_frames=Math.floor(e.stride[0]/d);let n=await this.model.generate(e.input_features,t);"word"===r?(e.tokens=n.sequences[0],e.token_timestamps=n.token_timestamps.tolist()[0].map(e=>(0,h.NM)(e,2))):e.tokens=n[0],e.stride=e.stride.map(e=>e/p),null!==i&&i(e)}let[l,u]=this.tokenizer._decode_asr(s,{time_precision:f,return_timestamps:r,force_full_sequences:a});g.push({text:l,...u})}return c?g[0]:g}}class eR extends ex{constructor(e){super(e)}async _call(e,t={}){let r=Array.isArray(e),n=await e_(e),{pixel_values:i}=await this.processor(n),a=[];for(let e of i){e.dims=[1,...e.dims];let r=await this.model.generate(e,t),n=this.tokenizer.batch_decode(r,{skip_special_tokens:!0}).map(e=>({generated_text:e.trim()}));a.push(n)}return r?a:a[0]}}class eF extends ex{constructor(e){super(e)}async _call(e,{topk:t=1}={}){let r=Array.isArray(e),n=await e_(e),{pixel_values:i}=await this.processor(n),a=await this.model({pixel_values:i}),o=this.model.config.id2label,s=[];for(let e of a.logits){let r=(0,h.em)((0,h.XA)(e.data),t).map(e=>({label:o[e[0]],score:e[1]}));1===t?s.push(...r):s.push(r)}return r||1===t?s:s[0]}}class eN extends ex{constructor(e){super(e),this.subtasks_mapping={panoptic:"post_process_panoptic_segmentation",instance:"post_process_instance_segmentation",semantic:"post_process_semantic_segmentation"}}async _call(e,{threshold:t=.5,mask_threshold:r=.5,overlap_mask_area_threshold:n=.8,label_ids_to_fuse:i=null,target_sizes:a=null,subtask:o=null}={}){if(Array.isArray(e)&&1!==e.length)throw Error("Image segmentation pipeline currently only supports a batch size of 1.");let s=await e_(e),l=s.map(e=>[e.height,e.width]),{pixel_values:u,pixel_mask:h}=await this.processor(s),c=await this.model({pixel_values:u,pixel_mask:h}),f=null;if(null!==o)f=this.subtasks_mapping[o];else for(let[e,t]of Object.entries(this.subtasks_mapping))if(t in this.processor.feature_extractor){f=this.processor.feature_extractor[t].bind(this.processor.feature_extractor),o=e;break}let d=this.model.config.id2label,p=[];if("panoptic"===o||"instance"===o){let e=f(c,t,r,n,i,a??l)[0],o=e.segmentation;for(let t of e.segments_info){let e=new Uint8ClampedArray(o.data.length);for(let r=0;rr.replace("{}",e)),o=this.tokenizer(a,{padding:"siglip"!==this.model.config.model_type||"max_length",truncation:!0}),{pixel_values:s}=await this.processor(i),l=await this.model({...o,pixel_values:s}),u="siglip"===this.model.config.model_type?e=>e.sigmoid().data:e=>(0,h.XA)(e.data),c=[];for(let e of l.logits_per_image){let r=[...u(e)].map((e,r)=>({score:e,label:t[r]}));r.sort((e,t)=>t.score-e.score),c.push(r)}return n?c:c[0]}}class eV extends ex{constructor(e){super(e)}async _call(e,{threshold:t=.9,percentage:r=!1}={}){let n=Array.isArray(e);if(n&&1!==e.length)throw Error("Object detection pipeline currently only supports a batch size of 1.");let i=await e_(e),a=r?null:i.map(e=>[e.height,e.width]),{pixel_values:o,pixel_mask:s}=await this.processor(i),l=await this.model({pixel_values:o,pixel_mask:s}),u=this.processor.feature_extractor.post_process_object_detection(l,t,a),h=this.model.config.id2label,c=u.map(e=>e.boxes.map((t,n)=>({score:e.scores[n],label:h[e.classes[n]],box:eb(t,!r)})));return n?c:c[0]}}class eD extends ex{constructor(e){super(e)}async _call(e,t,{threshold:r=.1,topk:n=null,percentage:i=!1}={}){let a=Array.isArray(e),o=await e_(e),s=this.tokenizer(t,{padding:!0,truncation:!0}),l=await this.processor(o),u=[];for(let e=0;e({score:d.scores[r],label:t[d.classes[r]],box:eb(e,!i)})).sort((e,t)=>t.score-e.score);null!==n&&(p=p.slice(0,n)),u.push(p)}return a?u:u[0]}}class eq extends ex{constructor(e){super(e)}async _call(e,t,r={}){let n=(await e_(e))[0],{pixel_values:i}=await this.processor(n),a=`${t}`,o=this.tokenizer(a,{add_special_tokens:!1,padding:!0,truncation:!0}).input_ids,s=await this.model.generate(i,{...r,decoder_input_ids:o,max_length:this.model.config.decoder.max_position_embeddings}),l=this.tokenizer.batch_decode(s)[0].match(/(.*?)<\/s_answer>/),u=null;return l&&l.length>=2&&(u=l[1].trim()),[{answer:u}]}}class eH extends ex{DEFAULT_VOCODER_ID="Xenova/speecht5_hifigan";constructor(e){super(e),this.vocoder=e.vocoder??null}async _call(e,{speaker_embeddings:t=null}={}){return this.processor?this._call_text_to_spectrogram(e,{speaker_embeddings:t}):this._call_text_to_waveform(e)}async _call_text_to_waveform(e){let t=this.tokenizer(e,{padding:!0,truncation:!0}),{waveform:r}=await this.model(t),n=this.model.config.sampling_rate;return{audio:r.data,sampling_rate:n}}async _call_text_to_spectrogram(e,{speaker_embeddings:t}){if(this.vocoder||(console.log("No vocoder specified, using default HifiGan vocoder."),this.vocoder=await s.$Sz.from_pretrained(this.DEFAULT_VOCODER_ID,{quantized:!1})),("string"==typeof t||t instanceof URL)&&(t=new Float32Array(await (await fetch(t)).arrayBuffer())),t instanceof Float32Array)t=new c.es("float32",t,[1,t.length]);else if(!(t instanceof c.es))throw Error("Speaker embeddings must be a `Tensor`, `Float32Array`, `string`, or `URL`.");let{input_ids:r}=this.tokenizer(e,{padding:!0,truncation:!0}),{waveform:n}=await this.model.generate_speech(r,t,{vocoder:this.vocoder}),i=this.processor.feature_extractor.config.sampling_rate;return{audio:n.data,sampling_rate:i}}}class eW extends ex{constructor(e){super(e)}async _call(e){let t=await e_(e),r=await this.processor(t),n=await this.model(r),i=[];for(let e of n.reconstruction){let t=e.squeeze().clamp_(0,1).mul_(255).round_().to("uint8");i.push(w.fromTensor(t))}return i.length>1?i:i[0]}}class eG extends ex{constructor(e){super(e)}async _call(e){let t=await e_(e),r=await this.processor(t),{predicted_depth:n}=await this.model(r),i=[];for(let e=0;e1?i:i[0]}}let eX=Object.freeze({"text-classification":{tokenizer:o.t2,pipeline:eE,model:s.o$X,default:{model:"Xenova/distilbert-base-uncased-finetuned-sst-2-english"},type:"text"},"token-classification":{tokenizer:o.t2,pipeline:ek,model:s.OjJ,default:{model:"Xenova/bert-base-multilingual-cased-ner-hrl"},type:"text"},"question-answering":{tokenizer:o.t2,pipeline:eA,model:s.wiU,default:{model:"Xenova/distilbert-base-cased-distilled-squad"},type:"text"},"fill-mask":{tokenizer:o.t2,pipeline:eC,model:s.t78,default:{model:"Xenova/bert-base-uncased"},type:"text"},summarization:{tokenizer:o.t2,pipeline:ez,model:s.Kf0,default:{model:"Xenova/distilbart-cnn-6-6"},type:"text"},translation:{tokenizer:o.t2,pipeline:eI,model:s.Kf0,default:{model:"Xenova/t5-small"},type:"text"},"text2text-generation":{tokenizer:o.t2,pipeline:eS,model:s.Kf0,default:{model:"Xenova/flan-t5-small"},type:"text"},"text-generation":{tokenizer:o.t2,pipeline:eT,model:s.Hqk,default:{model:"Xenova/gpt2"},type:"text"},"zero-shot-classification":{tokenizer:o.t2,pipeline:eO,model:s.o$X,default:{model:"Xenova/distilbert-base-uncased-mnli"},type:"text"},"audio-classification":{pipeline:e$,model:s.K2m,processor:ew,default:{model:"Xenova/wav2vec2-base-superb-ks"},type:"audio"},"zero-shot-audio-classification":{tokenizer:o.t2,pipeline:eU,model:s.$Sz,processor:ew,default:{model:"Xenova/clap-htsat-unfused"},type:"multimodal"},"automatic-speech-recognition":{tokenizer:o.t2,pipeline:eL,model:[s.hZO,s.ENH],processor:ew,default:{model:"Xenova/whisper-tiny.en"},type:"multimodal"},"text-to-audio":{tokenizer:o.t2,pipeline:eH,model:[s.z6E,s.lbf],processor:[ew,null],default:{model:"Xenova/speecht5_tts"},type:"text"},"image-to-text":{tokenizer:o.t2,pipeline:eR,model:s.tLj,processor:ew,default:{model:"Xenova/vit-gpt2-image-captioning"},type:"multimodal"},"image-classification":{pipeline:eF,model:s.En$,processor:ew,default:{model:"Xenova/vit-base-patch16-224"},type:"multimodal"},"image-segmentation":{pipeline:eN,model:[s.U$$,s.$Bv],processor:ew,default:{model:"Xenova/detr-resnet-50-panoptic"},type:"multimodal"},"zero-shot-image-classification":{tokenizer:o.t2,pipeline:eP,model:s.$Sz,processor:ew,default:{model:"Xenova/clip-vit-base-patch32"},type:"multimodal"},"object-detection":{pipeline:eV,model:s.Zn,processor:ew,default:{model:"Xenova/detr-resnet-50"},type:"multimodal"},"zero-shot-object-detection":{tokenizer:o.t2,pipeline:eD,model:s.LdW,processor:ew,default:{model:"Xenova/owlvit-base-patch32"},type:"multimodal"},"document-question-answering":{tokenizer:o.t2,pipeline:eq,model:s.DcG,processor:ew,default:{model:"Xenova/donut-base-finetuned-docvqa"},type:"multimodal"},"image-to-image":{pipeline:eW,model:s.S2d,processor:ew,default:{model:"Xenova/swin2SR-classical-sr-x2-64"},type:"image"},"depth-estimation":{pipeline:eG,model:s.hY6,processor:ew,default:{model:"Xenova/dpt-large"},type:"image"},"feature-extraction":{tokenizer:o.t2,pipeline:eB,model:s.$Sz,default:{model:"Xenova/all-MiniLM-L6-v2"},type:"text"},"image-feature-extraction":{processor:ew,pipeline:ej,model:[s.IFL,s.$Sz],default:{model:"Xenova/vit-base-patch16-224-in21k"},type:"image"}}),eK=Object.freeze({"sentiment-analysis":"text-classification",ner:"token-classification",asr:"automatic-speech-recognition","text-to-speech":"text-to-audio",embeddings:"feature-extraction"});async function eZ(e,t=null,{quantized:r=!0,progress_callback:n=null,config:i=null,cache_dir:a=null,local_files_only:o=!1,revision:s="main"}={}){let u=eX[(e=eK[e]??e).split("_",1)[0]];if(!u)throw Error(`Unsupported pipeline: ${e}. Must be one of [${Object.keys(eX)}]`);t||(t=u.default.model,console.log(`No model specified. Using default model: "${t}".`));let h=new Map([["tokenizer",u.tokenizer],["model",u.model],["processor",u.processor]]),c=await eJ(h,t,{quantized:r,progress_callback:n,config:i,cache_dir:a,local_files_only:o,revision:s});return c.task=e,(0,l.T2)(n,{status:"ready",task:e,model:t}),new u.pipeline(c)}async function eJ(e,t,r){let n=Object.create(null),i=[];for(let[a,o]of e.entries()){let e;o&&(e=Array.isArray(o)?new Promise(async(e,n)=>{let i;for(let n of o){if(null===n){e(null);return}try{e(await n.from_pretrained(t,r));return}catch(e){i=e}}n(i)}):o.from_pretrained(t,r),n[a]=e,i.push(e))}for(let[e,t]of(await Promise.all(i),Object.entries(n)))n[e]=await t;return n}r(16)},761:function(e,t,r){"use strict";function n(e,t){e&&e(t)}function i(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[t,e]))}function a(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}r.d(t,{$2:function(){return i},Ag:function(){return o},Gg:function(){return u},O7:function(){return d},Sw:function(){return c},T2:function(){return n},Wy:function(){return l},eG:function(){return f},fU:function(){return s},hr:function(){return a},hs:function(){return p},jg:function(){return h}});let o=class{constructor(){let e=function(...t){return e._call(...t)};return Object.setPrototypeOf(e,new.target.prototype)}_call(...e){throw Error("Must implement _call method in subclass")}};function s(e){return e?.prototype?.__proto__?.constructor?.name==="TypedArray"}function l(e){return Number.isInteger(e)||"bigint"==typeof e}function u(e){return null!=e}function h(e){let t=[],r=e;for(;Array.isArray(r);)t.push(r.length),r=r[0];return t}function c(e,t,r){let n=e[t];if(void 0!==n)return delete e[t],n;if(void 0===r)throw Error(`Key ${t} does not exist in object.`);return r}function f(...e){return Array.prototype.concat.apply([],e)}function d(...e){return e.reduce((e,t)=>e.flatMap(e=>t.map(t=>[e,t])))}function p(e,t){return Math.abs((e+t)%(2*t)-t)}},5878:function(e,t,r){"use strict";r.d(t,{GA:function(){return i},Z3:function(){return n},pQ:function(){return o}});class n{constructor(e=(e,t)=>e>t){this._heap=[],this._comparator=e}get size(){return this._heap.length}isEmpty(){return 0===this.size}peek(){return this._heap[0]}push(...e){return this.extend(e)}extend(e){for(let t of e)this._heap.push(t),this._siftUp();return this.size}pop(){let e=this.peek(),t=this.size-1;return t>0&&this._swap(0,t),this._heap.pop(),this._siftDown(),e}replace(e){let t=this.peek();return this._heap[0]=e,this._siftDown(),t}_parent(e){return(e+1>>>1)-1}_left(e){return(e<<1)+1}_right(e){return e+1<<1}_greater(e,t){return this._comparator(this._heap[e],this._heap[t])}_swap(e,t){let r=this._heap[e];this._heap[e]=this._heap[t],this._heap[t]=r}_siftUp(){let e=this.size-1;for(;e>0&&this._greater(e,this._parent(e));)this._swap(e,this._parent(e)),e=this._parent(e)}_siftDown(){let e=0;for(;this._left(e)[]),this.endNodes=Array.from({length:this.len+1},()=>[]);let n=new s(this.bosTokenId,0,0,0,0),i=new s(this.eosTokenId,1,this.len,0,0);this.nodes.push(n.clone()),this.nodes.push(i.clone()),this.beginNodes[this.len].push(i),this.endNodes[0].push(n)}insert(e,t,r,n){let i=new s(n,this.nodes.length,e,t,r);this.beginNodes[e].push(i),this.endNodes[e+t].push(i),this.nodes.push(i)}viterbi(){let e=this.len,t=0;for(;t<=e;){if(0==this.beginNodes[t].length)return[];for(let e of this.beginNodes[t]){e.prev=null;let r=0,n=null;for(let i of this.endNodes[t]){let t=i.backtraceScore+e.score;(null===n||t>r)&&(n=i.clone(),r=t)}if(null===n)return[];e.prev=n,e.backtraceScore=r}++t}let r=[],n=this.beginNodes[e][0].prev;if(null===n)return[];let i=n.clone();for(;null!==i.prev;)r.push(i.clone()),i=i.clone().prev.clone();return r.reverse(),r}piece(e){return this.sentence.slice(e.pos,e.pos+e.length)}tokens(){return this.viterbi().map(e=>this.piece(e))}tokenIds(){return this.viterbi().map(e=>e.tokenId)}}class s{constructor(e,t,r,n,i){this.tokenId=e,this.nodeId=t,this.pos=r,this.length=n,this.score=i,this.prev=null,this.backtraceScore=0}clone(){let e=new s(this.tokenId,this.nodeId,this.pos,this.length,this.score);return e.prev=this.prev,e.backtraceScore=this.backtraceScore,e}}},5774:function(e,t,r){"use strict";r.d(t,{AE:function(){return g},C9:function(){return l},CJ:function(){return m},E:function(){return s},GU:function(){return h},Jj:function(){return d},Jm:function(){return a},Pg:function(){return c},Z4:function(){return w},aP:function(){return y},dZ:function(){return u},ez:function(){return p},jF:function(){return f}}),r(2414);var n=r(761),i=r(8709);class a extends n.Ag{constructor(){super(),this.processors=[]}push(e){this.processors.push(e)}extend(e){this.processors.push(...e)}_call(e,t){for(let r of t)this.processors.forEach(t=>t(e,r))}[Symbol.iterator](){return this.processors.values()}}class o extends n.Ag{_call(e,t){throw Error("`_call` should be implemented in a subclass")}}class s extends o{constructor(e){super(),this.force_token_map=Object.fromEntries(e??[])}_call(e,t){let r=this.force_token_map[e.length];return(0,n.Gg)(r)&&(t.data.fill(-1/0),t.data[r]=0),t}}class l extends o{constructor(e){super(),this.bos_token_id=e}_call(e,t){return 1===e.length&&(t.data.fill(-1/0),t.data[this.bos_token_id]=0),t}}class u extends o{constructor(e,t){super(),this.max_length=e,this.forced_eos_token_id=t}_call(e,t){}}class h extends o{constructor(e,t){super(),this.begin_suppress_tokens=e,this.begin_index=t}_call(e,t){if(e.length===this.begin_index)for(let e of this.begin_suppress_tokens)t.data[e]=-1/0;return t}}class c extends o{constructor(e){super(),this.eos_token_id=e.eos_token_id,this.no_timestamps_token_id=e.no_timestamps_token_id,this.timestamp_begin=this.no_timestamps_token_id+1,this.begin_index=(e.forced_decoder_ids||[]).length+2,e.forced_decoder_ids.slice(-1)[0][1]===this.no_timestamps_token_id&&(this.begin_index-=1),this.max_initial_timestamp_index=e.max_initial_timestamp_index}_call(e,t){let r=t.data;if(r[this.no_timestamps_token_id]=-1/0,e.length===this.begin_index-1)return r.fill(-1/0),r[this.timestamp_begin]=0,t;let n=e.slice(this.begin_index),a=n.length>=1&&n[n.length-1]>=this.timestamp_begin,o=n.length<2||n[n.length-2]>=this.timestamp_begin;if(a&&(o?r.subarray(this.timestamp_begin).fill(-1/0):r.subarray(0,this.eos_token_id).fill(-1/0)),e.length===this.begin_index&&null!==this.max_initial_timestamp_index){let e=this.timestamp_begin+this.max_initial_timestamp_index;r.subarray(e+1).fill(-1/0)}let s=(0,i.CI)(r);return Math.log(s.subarray(this.timestamp_begin).map(Math.exp).reduce((e,t)=>e+t))>(0,i.Fp)(s.subarray(0,this.timestamp_begin))[0]&&r.subarray(0,this.timestamp_begin).fill(-1/0),t}}class f extends o{constructor(e){super(),this.no_repeat_ngram_size=e}getNgrams(e){let t=e.length,r=[];for(let n=0;n0&&(n=n.map(e=>e/this.generation_config.temperature)),n}randomSelect(e){let t=Math.random()*e.reduce((e,t)=>e+t,0);for(let r=0;r1)return new b(e);if(e.num_return_sequences>1)throw Error(`num_return_sequences has to be 1 when doing greedy search, but is ${e.num_return_sequences}.`);return new _(e)}}class _ extends w{sample(e,t=-1){let r=this.getLogits(e,t);return[[(0,i.Fp)(r)[1],0]]}}class v extends w{sample(e,t=-1){let r=e.dims.at(-1);this.generation_config.top_k>0&&(r=Math.min(this.generation_config.top_k,r));let n=this.getLogits(e,t),a=(0,i.em)(n,r),o=(0,i.XA)(a.map(e=>e[1]));return Array.from({length:this.generation_config.num_beams},()=>{let e=this.randomSelect(o);return[a[e][0],Math.log(o[e])]})}}class b extends w{sample(e,t=-1){let r=e.dims.at(-1);this.generation_config.top_k>0&&(r=Math.min(this.generation_config.top_k,r));let n=this.getLogits(e,t),a=(0,i.em)(n,r),o=(0,i.XA)(a.map(e=>e[1]));return Array.from({length:this.generation_config.num_beams},(e,t)=>[a[t][0],Math.log(o[t])])}}},911:function(e,t,r){"use strict";r.d(t,{hn:function(){return f},st:function(){return g},yM:function(){return y}});var n=r(7147),i=r(1418),a=r(319),o=r(851),s=r(761),l=r(357),u=r(9109).lW;globalThis.ReadableStream||(globalThis.ReadableStream=a.ReadableStream);class h{_CONTENT_TYPE_MAP={txt:"text/plain",html:"text/html",css:"text/css",js:"text/javascript",json:"application/json",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif"};constructor(e){if(this.filePath=e,this.headers=new Headers,this.exists=n.existsSync(e),this.exists){this.status=200,this.statusText="OK";let t=n.statSync(e);this.headers.set("content-length",t.size.toString()),this.updateContentType();let r=this;this.body=new ReadableStream({start(e){r.arrayBuffer().then(t=>{e.enqueue(new Uint8Array(t)),e.close()})}})}else this.status=404,this.statusText="Not Found",this.body=null}updateContentType(){let e=this.filePath.toString().split(".").pop().toLowerCase();this.headers.set("content-type",this._CONTENT_TYPE_MAP[e]??"application/octet-stream")}clone(){let e=new h(this.filePath);return e.exists=this.exists,e.status=this.status,e.statusText=this.statusText,e.headers=new Headers(this.headers),e}async arrayBuffer(){return(await n.promises.readFile(this.filePath)).buffer}async blob(){return new Blob([await n.promises.readFile(this.filePath)],{type:this.headers.get("content-type")})}async text(){return await n.promises.readFile(this.filePath,"utf8")}async json(){return JSON.parse(await this.text())}}function c(e,t=null){let r;try{r=new URL(e)}catch(e){return!1}return(!t||!!t.includes(r.hostname))&&("http:"===r.protocol||"https:"===r.protocol)}async function f(e){if(o.O.useFS&&!c(e))return new h(e);if(void 0===l||l?.release?.name!=="node")return fetch(e);{let t=!!l.env?.TESTING_REMOTELY,r=o.O.version,n=new Headers;if(n.set("User-Agent",`transformers.js/${r}; is_ci/${t};`),c(e,["huggingface.co","hf.co"])){let e=l.env?.HF_TOKEN??l.env?.HF_ACCESS_TOKEN;e&&n.set("Authorization",`Bearer ${e}`)}return fetch(e,{headers:n})}}let d={400:"Bad request error occurred while trying to load file",401:"Unauthorized access to file",403:"Forbidden access to file",404:"Could not locate file",408:"Request timeout error occurred while trying to load file",500:"Internal server error error occurred while trying to load file",502:"Bad gateway error occurred while trying to load file",503:"Service unavailable error occurred while trying to load file",504:"Gateway timeout error occurred while trying to load file"};class p{constructor(e){this.path=e}async match(e){let t=new h(i.join(this.path,e));return t.exists?t:void 0}async put(e,t){let r=u.from(await t.arrayBuffer()),a=i.join(this.path,e);try{await n.promises.mkdir(i.dirname(a),{recursive:!0}),await n.promises.writeFile(a,r)}catch(e){console.warn("An error occurred while writing the file to cache:",e)}}}async function m(e,...t){for(let r of t)try{let t=await e.match(r);if(t)return t}catch(e){continue}}async function g(e,t,r=!0,n={}){let i,a,l,u;if(!o.O.allowLocalModels){if(n.local_files_only)throw Error("Invalid configuration detected: local models are disabled (`env.allowLocalModels=false`) but you have requested to only use local models (`local_files_only=true`).");if(!o.O.allowRemoteModels)throw Error("Invalid configuration detected: both local and remote models are disabled. Fix by setting `env.allowLocalModels` or `env.allowRemoteModels` to `true`.")}if((0,s.T2)(n.progress_callback,{status:"initiate",name:e,file:t}),!i&&o.O.useBrowserCache){if("undefined"==typeof caches)throw Error("Browser cache is not available in this environment.");try{i=await caches.open("transformers-cache")}catch(e){console.warn("An error occurred while opening the browser cache:",e)}}if(!i&&o.O.useFSCache&&(i=new p(n.cache_dir??o.O.cacheDir)),!i&&o.O.useCustomCache){if(!o.O.customCache)throw Error("`env.useCustomCache=true`, but `env.customCache` is not defined.");if(!o.O.customCache.match||!o.O.customCache.put)throw Error("`env.customCache` must be an object which implements the `match` and `put` functions of the Web Cache API. For more information, see https://developer.mozilla.org/en-US/docs/Web/API/Cache");i=o.O.customCache}let h=n.revision??"main",g=_(e,t),y=_(o.O.localModelPath,g),v=_(o.O.remoteHost,o.O.remotePathTemplate.replaceAll("{model}",e).replaceAll("{revision}",encodeURIComponent(h)),t),b="main"===h?g:_(e,h,t),x=i instanceof p?b:v,E=!1;i&&(l=await m(i,y,x));let k=void 0!==l;if(void 0===l){if(o.O.allowLocalModels){if(c(g)){if(n.local_files_only)throw Error(`\`local_files_only=true\`, but attempted to load a remote file from: ${g}.`);if(!o.O.allowRemoteModels)throw Error(`\`env.allowRemoteModels=false\`, but attempted to load a remote file from: ${g}.`)}else try{l=await f(y),a=y}catch(e){console.warn(`Unable to load from local path "${y}": "${e}"`)}}if(void 0===l||404===l.status){if(n.local_files_only||!o.O.allowRemoteModels){if(!r)return null;throw Error(`\`local_files_only=true\` or \`env.allowRemoteModels=false\` and file was not found locally at "${y}".`)}if(200!==(l=await f(v)).status)return function(e,t,r){if(!r)return null;let n=d[e]??`Error (${e}) occurred while trying to load file`;throw Error(`${n}: "${t}".`)}(l.status,v,r);a=x}E=i&&"undefined"!=typeof Response&&l instanceof Response&&200===l.status}(0,s.T2)(n.progress_callback,{status:"download",name:e,file:t});let A={status:"progress",name:e,file:t};return n.progress_callback?k&&"undefined"!=typeof navigator&&/firefox/i.test(navigator.userAgent)?(u=new Uint8Array(await l.arrayBuffer()),(0,s.T2)(n.progress_callback,{...A,progress:100,loaded:u.length,total:u.length})):u=await w(l,e=>{(0,s.T2)(n.progress_callback,{...A,...e})}):u=new Uint8Array(await l.arrayBuffer()),E&&a&&await i.match(a)===void 0&&await i.put(a,new Response(u,{headers:l.headers})).catch(e=>{console.warn(`Unable to add response to browser cache: ${e}.`)}),(0,s.T2)(n.progress_callback,{status:"done",name:e,file:t}),u}async function y(e,t,r=!0,n={}){let i=await g(e,t,r,n);return null===i?{}:JSON.parse(new TextDecoder("utf-8").decode(i))}async function w(e,t){let r=e.headers.get("Content-Length");null===r&&console.warn("Unable to determine content-length from response headers. Will expand buffer when needed.");let n=parseInt(r??"0"),i=new Uint8Array(n),a=0,o=e.body.getReader();async function s(){let{done:e,value:r}=await o.read();if(e)return;let l=a+r.length;if(l>n){let e=new Uint8Array(n=l);e.set(i),i=e}return i.set(r,a),t({progress:(a=l)/n*100,loaded:a,total:n}),s()}return await s(),i}function _(...e){return(e=e.map((t,r)=>(r&&(t=t.replace(RegExp("^/"),"")),r!==e.length-1&&(t=t.replace(RegExp("/$"),"")),t))).join("/")}},8709:function(e,t,r){"use strict";function n(e,[t,r,n],[i,a],o="bilinear",s=!1){let l=a/n,u=i/r,h=new e.constructor(i*a*t),c=r*n,f=i*a;for(let o=0;o=0;--e)i[e]=a,n[e]=t[r[e]],a*=n[e];let a=r.map((e,t)=>i[r.indexOf(t)]),o=new e.constructor(e.length);for(let r=0;r=0;--e)n+=i%t[e]*a[e],i=Math.floor(i/t[e]);o[n]=e[r]}return[o,n]}function a(e){let t=u(e)[0],r=e.map(e=>Math.exp(e-t)),n=r.reduce((e,t)=>e+t,0);return r.map(e=>e/n)}function o(e){return a(e).map(e=>Math.log(e))}function s(e,t=0){return e=Array.from(e).map((e,t)=>[t,e]).sort((e,t)=>t[1]-e[1]),null!==t&&t>0&&(e=e.slice(0,t)),e}function l(e){if(0===e.length)throw Error("Array must not be empty");let t=e[0],r=0;for(let n=1;nt&&(t=e[n],r=n);return[Number(t),r]}function h(e){return e>0&&(e&e-1)==0}r.d(t,{CI:function(){return o},Fp:function(){return u},NM:function(){return m},Nq:function(){return n},VV:function(){return l},XA:function(){return a},eT:function(){return g},em:function(){return s},nu:function(){return i},qC:function(){return p},vw:function(){return d}});class c{constructor(e){if(this.size=0|e,this.size<=1||!h(this.size))throw Error("FFT size must be a power of two larger than 1");this._csize=e<<1,this.table=new Float64Array(2*this.size);for(let e=0;ee;e<<=1)++t;this._width=t%2==0?t-1:t,this._bitrev=new Int32Array(1<>>t&3)<>>1);for(let t=0;t>>1]=e[t];return r}toComplexArray(e,t){let r=t||this.createComplexArray();for(let t=0;t>>1],r[t+1]=0;return r}completeSpectrum(e){let t=this._csize,r=t>>>1;for(let n=2;n>=2;o>=2;o>>=2){let t=(s=a/o<<1)>>>2;for(n=0;n>>1,o>>>1)}else for(n=0,i=0;n>>1,o>>>1,r)}for(o>>=2;o>=2;o>>=2){let t=(s=a/o<<1)>>>2;for(n=0;n>1;++t){let r=(t+1-e)**2/2,n=Math.sqrt(s**2+l**2)**r,o=r*Math.atan2(l,s),u=2*t;i[u]=n*Math.cos(o),i[u+1]=n*Math.sin(o),a[u]=i[u],a[u+1]=-i[u+1]}this._slicedChirpBuffer=i.subarray(t,r),this._f=new c(n>>1),this._f.transform(this._chirpBuffer,a)}_transform(e,t,r){let n=this._buffer1,i=this._buffer2,a=this._outBuffer1,o=this._outBuffer2,s=this._chirpBuffer,l=this._slicedChirpBuffer,u=this._a;if(r)for(let e=0;e>1];n[e]=i*l[e],n[r]=i*l[r]}else for(let e=0;e=e.length&&(i=2*(e.length-1)-i),n[a++]=e[i]}n.sort(),r[t]=n[i]}return r}function m(e,t){let r=Math.pow(10,t);return Math.round(e*r)/r}function g(e){let t=Math.round(e);return Math.abs(e)%1==.5?t%2==0?t:t-1:t}},2414:function(e,t,r){"use strict";r.d(t,{J6:function(){return g},Ks:function(){return y},d3:function(){return d},e:function(){return _},es:function(){return s},f3:function(){return m},kn:function(){return p},r6:function(){return w},sX:function(){return l},v6:function(){return u}});var n=r(967),i=r(8709);let a=Object.freeze({float32:Float32Array,float64:Float64Array,string:Array,int8:Int8Array,uint8:Uint8Array,int16:Int16Array,uint16:Uint16Array,int32:Int32Array,uint32:Uint32Array,int64:BigInt64Array,uint64:BigUint64Array,bool:Uint8Array}),o=n.ONNX.Tensor;class s{dims;type;data;size;constructor(...e){return e[0]instanceof o?Object.assign(this,e[0]):Object.assign(this,new o(e[0],e[1],e[2])),new Proxy(this,{get:(e,t)=>{if("string"==typeof t){let r=Number(t);if(Number.isInteger(r))return e._getitem(r)}return e[t]},set:(e,t,r)=>e[t]=r})}*[Symbol.iterator](){let[e,...t]=this.dims;if(t.length>0){let r=t.reduce((e,t)=>e*t);for(let n=0;n0))return new s(this.type,[this.data[e]],r);{let t=r.reduce((e,t)=>e*t);return this._subarray(e,t,r)}}indexOf(e){for(let t=0;te*t))throw Error(`cannot reshape array of size ${r} into shape (${t})`);let n=e;for(let e=t.length-1;e>=0;e--)n=n.reduce((r,n)=>{let i=r[r.length-1];return i.lengthi[1])throw Error(`Invalid slice: ${i}`);let e=[Math.max(i[0],0),Math.min(i[1],this.dims[n])];r.push(e),t.push(e[1]-e[0])}else throw Error(`Invalid slice: ${i}`)}let n=r.map(([e,t])=>t-e),i=n.reduce((e,t)=>e*t),a=new this.data.constructor(i),o=this.stride();for(let e=0;e=0;--i){let e=n[i];t+=(a%e+r[i][0])*o[i],a=Math.floor(a/e)}a[e]=this.data[t]}return new s(this.type,a,t)}permute(...e){return function(e,t){let[r,n]=(0,i.nu)(e.data,e.dims,t);return new s(e.type,r,n)}(this,e)}transpose(...e){return this.permute(...e)}sum(e=null,t=!1){return this.norm(1,e,t)}norm(e="fro",t=null,r=!1){if("fro"===e)e=2;else if("string"==typeof e)throw Error(`Unsupported norm: ${e}`);if(null===t){let t=this.data.reduce((t,r)=>t+r**e,0)**(1/e);return new s(this.type,[t],[])}t=f(t,this.dims.length);let n=this.dims.slice();n[t]=1;let i=new this.data.constructor(this.data.length/this.dims[t]);for(let r=0;r=0;--e){let r=this.dims[e];e!==t&&(a+=i%r*o,o*=n[e]),i=Math.floor(i/r)}i[a]+=this.data[r]**e}if(1!==e)for(let t=0;t=0;--r){let e=this.dims[r];r!==t&&(n+=i%e*a,a*=this.dims[r]),i=Math.floor(i/e)}this.data[e]/=r.data[n]}return this}normalize(e=2,t=1){return this.clone().normalize_(e,t)}stride(){return function(e){let t=Array(e.length);for(let r=e.length-1,n=1;r>=0;--r)t[r]=n,n*=e[r];return t}(this.dims)}squeeze(e=null){return new s(this.type,this.data,h(this.dims,e))}squeeze_(e=null){return this.dims=h(this.dims,e),this}unsqueeze(e=null){return new s(this.type,this.data,c(this.dims,e))}unsqueeze_(e=null){return this.dims=c(this.dims,e),this}flatten_(e=0,t=-1){t=(t+this.dims.length)%this.dims.length;let r=this.dims.slice(0,e),n=this.dims.slice(e,t+1),i=this.dims.slice(t+1);return this.dims=[...r,n.reduce((e,t)=>e*t,1),...i],this}flatten(e=0,t=-1){return this.clone().flatten_(e,t)}view(...e){let t=-1;for(let r=0;rn!==t?e*r:e,1);e[t]=this.data.length/r}return new s(this.type,this.data,e)}neg_(){for(let e=0;e1!==e):"number"==typeof t?1===e[t]&&e.splice(t,1):Array.isArray(t)&&(e=e.filter((e,r)=>1!==e||!t.includes(r))),e}function c(e,t){return t=f(t,e.length+1),(e=e.slice()).splice(t,0,1),e}function f(e,t,r=null){if(e<-t||e>=t)throw Error(`IndexError: index ${e} is out of bounds for dimension${null===r?"":" "+r} with size ${t}`);return e<0&&(e=(e%t+t)%t),e}function d(e,t=0){t=f(t,e[0].dims.length);let r=e[0].dims.slice();r[t]=e.reduce((e,r)=>e+r.dims[t],0);let n=r.reduce((e,t)=>e*t,1),i=new e[0].data.constructor(n),a=e[0].type;if(0===t){let t=0;for(let r of e)i.set(r.data,t),t+=r.data.length}else{let n=0;for(let a=0;a=0;--i){let e=o.dims[i],u=s%e;i===t&&(u+=n),a+=u*l,l*=r[i],s=Math.floor(s/e)}i[a]=o.data[e]}n+=o.dims[t]}}return new s(a,i,r)}function p(e,t=0){return d(e.map(e=>e.unsqueeze(t)),t)}function m(e,t=null,r=1,n=!1){if(null===t){let t=e.data.reduce((e,t)=>e+t,0)/e.data.length,n=Math.sqrt(e.data.reduce((e,r)=>e+(r-t)**2,0)/(e.data.length-r)),i=new s(e.type,[t],[]);return[new s(e.type,[n],[]),i]}t=f(t,e.dims.length);let i=g(e,t,n),a=e.dims.slice();a[t]=1;let o=new e.data.constructor(e.data.length/e.dims[t]);for(let r=0;r=0;--i){let r=e.dims[i];i!==t&&(n+=o%r*s,s*=a[i]),o=Math.floor(o/r)}o[n]+=(e.data[r]-i.data[n])**2}for(let n=0;ne+t,0);return new s(e.type,[t/e.data.length],[])}t=f(t,e.dims.length);let n=e.dims.slice();n[t]=1;let i=new e.data.constructor(e.data.length/e.dims[t]);for(let r=0;r=0;--i){let r=e.dims[i];i!==t&&(a+=o%r*s,s*=n[i]),o=Math.floor(o/r)}i[a]+=e.data[r]}if(1!==e.dims[t])for(let r=0;r0||l>0;)switch(u.push(o-1),h.push(l-1),a[o][l].item()){case 0:--o,--l;break;case 1:--o;break;case 2:--l;break;default:throw Error(`Internal error in dynamic time warping. Unexpected trace[${o}, ${l}]. Please file a bug report.`)}return u.reverse(),h.reverse(),[u,h]}function w(e){var t;return new s("int64",new BigInt64Array((t=e.dims).reduce((e,t)=>e*t,1)).fill(1n),t)}function _(e,t){if(2!==e.dims.length)throw Error("The tensor must have 2 dimensions");if(e.dims.at(-1)%8!=0)throw Error("The last dimension of the tensor must be a multiple of 8");if(!["binary","ubinary"].includes(t))throw Error("The precision must be either 'binary' or 'ubinary'");let r="binary"===t,n=r?Int8Array:Uint8Array,i=e.data,a=new n(i.length/8);for(let e=0;e0?1:0,n=Math.floor(e/8),o=e%8;a[n]|=t<<7-o,r&&0===o&&(a[n]-=128)}return new s(r?"int8":"uint8",a,[e.dims[0],e.dims[1]/8])}},2869:function(e,t,r){"use strict";r.d(t,{$:function(){return w}});var n=r(9235),i=r(8411),a=r(2202),o=r(5377),s=r(2265),l=r(2988),u=r(3950),h=r(929),c=r(5275),f=["animating","color","hidesWhenStopped","size","style"],d=e=>s.createElement("circle",{cx:"16",cy:"16",fill:"none",r:"14",strokeWidth:"4",style:e}),p=s.forwardRef((e,t)=>{var r=e.animating,n=void 0===r||r,i=e.color,a=void 0===i?"#1976D2":i,o=e.hidesWhenStopped,h=e.size,p=void 0===h?"small":h,y=e.style,w=(0,u.Z)(e,f),_=s.createElement("svg",{height:"100%",viewBox:"0 0 32 32",width:"100%"},d({stroke:a,opacity:.2}),d({stroke:a,strokeDasharray:80,strokeDashoffset:60}));return s.createElement(c.Z,(0,l.Z)({},w,{"aria-valuemax":1,"aria-valuemin":0,ref:t,role:"progressbar",style:[m.container,y]}),s.createElement(c.Z,{children:_,style:["number"==typeof p?{height:p,width:p}:g[p],m.animation,!n&&m.animationPause,!n&&(void 0===o||o)&&m.hidesWhenStopped]}))});p.displayName="ActivityIndicator";var m=h.Z.create({container:{alignItems:"center",justifyContent:"center"},hidesWhenStopped:{visibility:"hidden"},animation:{animationDuration:"0.75s",animationKeyframes:[{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"},animationPause:{animationPlayState:"paused"}}),g=h.Z.create({small:{width:20,height:20},large:{width:36,height:36}}),y=r(2281);let w=o.FA.extractable((0,n.Y)(s.forwardRef((e,t)=>{let{size:r,color:n,...s}=e,l=(0,i.Fg)(),u=n;return u&&"$"===u[0]&&(u=(0,a.lk)(l[u])),(0,y.jsx)(o.FA,{ref:t,...s,children:(0,y.jsx)(p,{size:r,color:u})})}),{componentName:"Spinner"}))},9175:function(e,t,r){"use strict";r.d(t,{K:function(){return P}});var n=r(281),i=r(4975),a=r(9046),o=r(2202),s=r(8306),l=r(8970),u=r(6748);let h=(e="$true",t)=>{let{props:r}=t,n=(0,s.f)(e,t),i=(0,l.H)(e,t),a=r.rows??r.numberOfLines,h="number"==typeof a?a*(0,o.Ve)(i.lineHeight):"auto",c=(0,u.Pj)(e,{shift:-2,bounds:[2]}),f=(0,u.Pj)(e,{shift:-1,bounds:[2]});return{...n,...i,paddingVertical:c,paddingHorizontal:f,height:h}};var c=r(8411),f=r(9087),d=r(2265);let p=(e,t)=>()=>{};var m=r(2281),g=r(5803),y=r(7792),w=r(2675),_=r(9647),v=r(1435),b=r(9926),x=r(5158),E=r(4886),k=r(3201),A=r(929),C=r(3013),S=r(131),z=(e,t)=>{var r=e.selectionEnd,n=e.selectionStart,i=t.start,a=t.end;return i!==n||a!==r},I=(e,t)=>{if(z(e,t)){var r=t.start,n=t.end;try{e.setSelectionRange(r,n||r)}catch(e){}}},M=Object.assign({},y.lG,y.LO,y._T,y.YB,y.Uy,y.hJ,y.E5,y.vr,{autoCapitalize:!0,autoComplete:!0,autoCorrect:!0,autoFocus:!0,defaultValue:!0,disabled:!0,lang:!0,maxLength:!0,onChange:!0,onScroll:!0,placeholder:!0,pointerEvents:!0,readOnly:!0,rows:!0,spellCheck:!0,value:!0,type:!0}),T=e=>(0,w.Z)(e,M),O=null,B=d.forwardRef((e,t)=>{var r,n,i=e.autoCapitalize,a=e.autoComplete,o=e.autoCompleteType,s=e.autoCorrect,l=void 0===s||s,u=e.blurOnSubmit,h=e.caretHidden,c=e.clearTextOnFocus,f=e.dir,p=e.editable,m=e.enterKeyHint,y=e.inputMode,w=e.keyboardType,A=e.multiline,z=void 0!==A&&A,M=e.numberOfLines,B=e.onBlur,$=e.onChange,U=e.onChangeText,L=e.onContentSizeChange,R=e.onFocus,F=e.onKeyPress,N=e.onLayout,P=e.onMoveShouldSetResponder,V=e.onMoveShouldSetResponderCapture,D=e.onResponderEnd,q=e.onResponderGrant,H=e.onResponderMove,W=e.onResponderReject,G=e.onResponderRelease,X=e.onResponderStart,K=e.onResponderTerminate,Z=e.onResponderTerminationRequest,J=e.onScrollShouldSetResponder,Y=e.onScrollShouldSetResponderCapture,Q=e.onSelectionChange,ee=e.onSelectionChangeShouldSetResponder,et=e.onSelectionChangeShouldSetResponderCapture,er=e.onStartShouldSetResponder,en=e.onStartShouldSetResponderCapture,ei=e.onSubmitEditing,ea=e.placeholderTextColor,eo=e.readOnly,es=e.returnKeyType,el=e.rows,eu=e.secureTextEntry,eh=void 0!==eu&&eu,ec=e.selection,ef=e.selectTextOnFocus,ed=e.spellCheck;if(null!=y)n=y,r="email"===y?"email":"tel"===y?"tel":"search"===y?"search":"url"===y?"url":"text";else if(null!=w)switch((0,S.O)("keyboardType","keyboardType is deprecated. Use inputMode."),w){case"email-address":r="email";break;case"number-pad":case"numeric":n="numeric";break;case"decimal-pad":n="decimal";break;case"phone-pad":r="tel";break;case"search":case"web-search":r="search";break;case"url":r="url";break;default:r="text"}eh&&(r="password");var ep=d.useRef({height:null,width:null}),em=d.useRef(null),eg=d.useRef(null),ey=d.useRef(!1);d.useEffect(()=>{em.current&&eg.current&&I(em.current,eg.current),ey.current=eh},[eh]);var ew=d.useCallback(e=>{if(z&&L&&null!=e){var t=e.scrollHeight,r=e.scrollWidth;(t!==ep.current.height||r!==ep.current.width)&&(ep.current.height=t,ep.current.width=r,L({nativeEvent:{contentSize:{height:ep.current.height,width:ep.current.width}}}))}},[z,L]),e_=d.useMemo(()=>e=>{null!=e&&(e.clear=function(){null!=e&&(e.value="")},e.isFocused=function(){return null!=e&&C.Z.currentlyFocusedField()===e},ew(e))},[ew]);(0,v.Z)(()=>{var e=em.current;null!=e&&null!=ec&&I(e,ec),document.activeElement===e&&(C.Z._currentlyFocusedNode=e)},[em,ec]),(0,_.Z)(em,N),(0,E.Z)(em,{onMoveShouldSetResponder:P,onMoveShouldSetResponderCapture:V,onResponderEnd:D,onResponderGrant:q,onResponderMove:H,onResponderReject:W,onResponderRelease:G,onResponderStart:X,onResponderTerminate:K,onResponderTerminationRequest:Z,onScrollShouldSetResponder:J,onScrollShouldSetResponderCapture:Y,onSelectionChangeShouldSetResponder:ee,onSelectionChangeShouldSetResponderCapture:et,onStartShouldSetResponder:er,onStartShouldSetResponderCapture:en});var ev=(0,k.PE)().direction,eb=T(e);eb.autoCapitalize=void 0===i?"sentences":i,eb.autoComplete=a||o||"on",eb.autoCorrect=l?"on":"off",eb.dir=void 0!==f?f:"auto",null!=es&&(0,S.O)("returnKeyType","returnKeyType is deprecated. Use enterKeyHint."),eb.enterKeyHint=m||es,eb.inputMode=n,eb.onBlur=function(e){C.Z._currentlyFocusedNode=null,B&&(e.nativeEvent.text=e.target.value,B(e))},eb.onChange=function(e){var t=e.target,r=t.value;e.nativeEvent.text=r,ew(t),$&&$(e),U&&U(r)},eb.onFocus=function(e){var t=e.target;R&&(e.nativeEvent.text=t.value,R(e)),null!=t&&(C.Z._currentlyFocusedNode=t,c&&(t.value=""),ef&&(null!=O&&clearTimeout(O),O=setTimeout(()=>{null!=t&&t.select()},0)))},eb.onKeyDown=function(e){var t=e.target;e.stopPropagation();var r=!z,n=e.nativeEvent,i=n.isComposing||229===n.keyCode;F&&F(e),"Enter"!==e.key||e.shiftKey||i||e.isDefaultPrevented()||((u||!z)&&ei&&(e.preventDefault(),n.text=e.target.value,ei(e)),(null==u?r:u)&&null!=t&&setTimeout(()=>t.blur(),0))},eb.onSelect=function(e){try{var t=e.target,r=t.selectionStart,n=t.selectionEnd,i={start:r,end:n};Q&&(e.nativeEvent.selection=i,e.nativeEvent.text=e.target.value,Q(e)),ey.current===eh&&(eg.current=i)}catch(e){}},null!=p&&(0,S.O)("editable","editable is deprecated. Use readOnly."),eb.readOnly=!0===(void 0!==eo&&eo)||!1===p,null!=M&&(0,S.O)("numberOfLines","TextInput numberOfLines is deprecated. Use rows."),eb.rows=z?null!=el?el:M:1,eb.spellCheck=null!=ed?ed:l,eb.style=[{"--placeholderTextColor":ea},j.textinput$raw,j.placeholder,e.style,h&&j.caretHidden],eb.type=z?void 0:r;var ex=(0,x.Z)(eb),eE=(0,b.Z)(em,ex,e_,t);eb.ref=eE;var ek=null!=e.lang?(0,k.w1)(e.lang):null,eA=e.dir||ek;return(0,g.Z)(z?"textarea":"input",eb,{writingDirection:eA||ev})});B.displayName="TextInput",B.State=C.Z;var j=A.Z.create({textinput$raw:{MozAppearance:"textfield",WebkitAppearance:"none",backgroundColor:"transparent",border:"0 solid black",borderRadius:0,boxSizing:"border-box",font:"14px System",margin:0,padding:0,resize:"none"},placeholder:{placeholderTextColor:"var(--placeholderTextColor)"},caretHidden:{caretColor:"transparent"}}),$=r(357);let U={size:"$true",fontFamily:"$body",borderWidth:1,outlineWidth:0,color:"$color",...n.$L?{tabIndex:0}:{focusable:!0},borderColor:"$borderColor",backgroundColor:"$background",minWidth:0,hoverStyle:{borderColor:"$borderColorHover"},focusStyle:{borderColor:"$borderColorFocus"},focusVisibleStyle:{outlineColor:"$outlineColor",outlineWidth:2,outlineStyle:"solid"}},L=(0,i.z)(B,{name:"Input",variants:{unstyled:{false:U},size:{"...size":(e="$true",t)=>{if(t.props.multiline||t.props.numberOfLines>1)return h(e,t);let r=(0,s.f)(e,t),i=(0,u.Pj)(e,{shift:-1,bounds:[2]}),a=(0,l.H)(e,t);return!n.$L&&a&&delete a.lineHeight,{...a,...r,paddingHorizontal:i}}},disabled:{true:{}}},defaultVariants:{unstyled:"1"===$.env.TAMAGUI_HEADLESS}},{isInput:!0,accept:{placeholderTextColor:"color",selectionColor:"color"}});function R(e,t){let r=(0,c.Fg)(),{onChangeText:n,ref:i}=function({isInput:e,props:t,ref:r}){let{id:n,onChangeText:i,value:o,defaultValue:s}=t,l=(0,d.useRef)(o||s||""),u=(0,d.useRef)(),h=(0,d.useCallback)(t=>{n&&t&&(u.current?.(),u.current=p(n,{focus:t.focus,...e&&{focusAndSelect(){t.focus(),t.setSelection&&"string"==typeof l.current&&t.setSelection(0,l.current.length)}}}))},[e,n]),c=(0,a.FE)(r,h);return(0,d.useEffect)(()=>()=>{u.current?.()},[]),{ref:c,onChangeText:(0,f.z)(e=>{l.current=e,i?.(e)})}}({props:e,ref:t,isInput:!0}),o=e.placeholderTextColor,s=r[o]?.get()??o??r.placeholderColor?.get();return{ref:i,readOnly:e.disabled,...e,placeholderTextColor:s,onChangeText:n}}L.styleable((e,t)=>{let r=(0,d.useRef)(null),n=R(e,(0,a.ex)(t,r));return(0,m.jsx)(L,{...n})});var F=r(357);let N=(0,i.z)(L,{name:"TextArea",multiline:!0,whiteSpace:"pre-wrap",variants:{unstyled:{false:{height:"auto",...U}},size:{"...size":h}},defaultVariants:{unstyled:"1"===F.env.TAMAGUI_HEADLESS}}),P=N.styleable((e,t)=>{let r=(0,d.useRef)(null),i=R(e,(0,a.ex)(t,r)),o={[n.$L?"rows":"numberOfLines"]:e.unstyled?void 0:4};return(0,m.jsx)(N,{...o,...i})})}}]); \ No newline at end of file diff --git a/_next/static/chunks/876-318ea795d18aa12d.js b/_next/static/chunks/876-318ea795d18aa12d.js new file mode 100644 index 0000000000000000000000000000000000000000..6f782a53700c0860c7338347dbc3f66cca54ce6b --- /dev/null +++ b/_next/static/chunks/876-318ea795d18aa12d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[876],{6855:function(e,t,n){n.d(t,{u:function(){return s}});var r=n(2265),o=n(2989),i=n(7470),a=n(2281);let l=e=>{let{color:t="black",size:n=24,...r}=e;return(0,a.jsxs)(o.ny,{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:[(0,a.jsx)(o.UL,{width:"20",height:"14",x:"2",y:"3",rx:"2",stroke:t}),(0,a.jsx)(o.x1,{x1:"8",x2:"16",y1:"21",y2:"21",stroke:t}),(0,a.jsx)(o.x1,{x1:"12",x2:"12",y1:"17",y2:"21",stroke:t})]})};l.displayName="Monitor";let s=(0,r.memo)((0,i.H)(l))},2890:function(e,t,n){n.d(t,{J:function(){return s}});var r=n(2265),o=n(2989),i=n(7470),a=n(2281);let l=e=>{let{color:t="black",size:n=24,...r}=e;return(0,a.jsx)(o.ny,{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:(0,a.jsx)(o.y$,{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",stroke:t})})};l.displayName="Moon";let s=(0,r.memo)((0,i.H)(l))},896:function(e,t,n){n.d(t,{k:function(){return s}});var r=n(2265),o=n(2989),i=n(7470),a=n(2281);let l=e=>{let{color:t="black",size:n=24,...r}=e;return(0,a.jsxs)(o.ny,{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:[(0,a.jsx)(o.Cd,{cx:"12",cy:"12",r:"4",stroke:t}),(0,a.jsx)(o.y$,{d:"M12 2v2",stroke:t}),(0,a.jsx)(o.y$,{d:"M12 20v2",stroke:t}),(0,a.jsx)(o.y$,{d:"m4.93 4.93 1.41 1.41",stroke:t}),(0,a.jsx)(o.y$,{d:"m17.66 17.66 1.41 1.41",stroke:t}),(0,a.jsx)(o.y$,{d:"M2 12h2",stroke:t}),(0,a.jsx)(o.y$,{d:"M20 12h2",stroke:t}),(0,a.jsx)(o.y$,{d:"m6.34 17.66-1.41 1.41",stroke:t}),(0,a.jsx)(o.y$,{d:"m19.07 4.93-1.41 1.41",stroke:t})]})};l.displayName="Sun";let s=(0,r.memo)((0,i.H)(l))},7138:function(e,t,n){n.d(t,{default:function(){return o.a}});var r=n(231),o=n.n(r)},844:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(8157);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;ri?e.prefetch(t,o):e.prefetch(t,n,r))().catch(e=>{})}}function v(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let x=i.default.forwardRef(function(e,t){let n,r;let{href:s,as:y,children:x,prefetch:j=null,passHref:P,replace:w,shallow:R,scroll:_,locale:k,onClick:C,onMouseEnter:O,onTouchStart:S,legacyBehavior:E=!1,...A}=e;n=x,E&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let M=i.default.useContext(f.RouterContext),L=i.default.useContext(d.AppRouterContext),I=null!=M?M:L,N=!M,T=!1!==j,z=null===j?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:U,as:$}=i.default.useMemo(()=>{if(!M){let e=v(s);return{href:e,as:y?v(y):e}}let[e,t]=(0,a.resolveHref)(M,s,!0);return{href:e,as:y?(0,a.resolveHref)(M,y):t||e}},[M,s,y]),W=i.default.useRef(U),F=i.default.useRef($);E&&(r=i.default.Children.only(n));let D=E?r&&"object"==typeof r&&r.ref:t,[Z,B,H]=(0,p.useIntersection)({rootMargin:"200px"}),K=i.default.useCallback(e=>{(F.current!==$||W.current!==U)&&(H(),F.current=$,W.current=U),Z(e),D&&("function"==typeof D?D(e):"object"==typeof D&&(D.current=e))},[$,D,U,H,Z]);i.default.useEffect(()=>{I&&B&&T&&b(I,U,$,{locale:k},{kind:z},N)},[$,U,B,k,T,null==M?void 0:M.locale,I,N,z]);let V={ref:K,onClick(e){E||"function"!=typeof C||C(e),E&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),I&&!e.defaultPrevented&&function(e,t,n,r,o,a,s,u,c){let{nodeName:f}=e.currentTarget;if("A"===f.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,l.isLocalURL)(n)))return;e.preventDefault();let d=()=>{let e=null==s||s;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:a,locale:u,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};c?i.default.startTransition(d):d()}(e,I,U,$,w,R,_,k,N)},onMouseEnter(e){E||"function"!=typeof O||O(e),E&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),I&&(T||!N)&&b(I,U,$,{locale:k,priority:!0,bypassPrefetchedCheck:!0},{kind:z},N)},onTouchStart:function(e){E||"function"!=typeof S||S(e),E&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),I&&(T||!N)&&b(I,U,$,{locale:k,priority:!0,bypassPrefetchedCheck:!0},{kind:z},N)}};if((0,u.isAbsoluteUrl)($))V.href=$;else if(!E||P||"a"===r.type&&!("href"in r.props)){let e=void 0!==k?k:null==M?void 0:M.locale,t=(null==M?void 0:M.isLocaleDomain)&&(0,h.getDomainLocale)($,e,null==M?void 0:M.locales,null==M?void 0:M.domainLocales);V.href=t||(0,m.addBasePath)((0,c.addLocale)($,e,null==M?void 0:M.defaultLocale))}return E?i.default.cloneElement(r,V):(0,o.jsx)("a",{...A,...V,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9189:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8016:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let r=n(8323),o=n(1142),i=n(5519),a=n(3461),l=n(8157),s=n(8029),u=n(9195),c=n(20);function f(e,t,n){let f;let d="string"==typeof t?t:(0,o.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\/\//),h=p?d.slice(p[0].length):d;if((h.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,a.normalizeRepeatedSlashes)(h);d=(p?p[0]:"")+t}if(!(0,s.isLocalURL)(d))return n?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,l.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:a,params:l}=(0,c.interpolateAs)(e.pathname,e.pathname,n);a&&(t=(0,o.formatWithValidation)({pathname:a,hash:e.hash,query:(0,i.omit)(n,l)}))}let a=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return n?[a,t||a]:a}catch(e){return n?[d]:d}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3106:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let r=n(2265),o=n(9189),i="function"==typeof IntersectionObserver,a=new Map,l=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,u=s||!i,[c,f]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);return(0,r.useEffect)(()=>{if(i){if(u||c)return;let e=d.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=l.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},l.push(n),a.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let e=l.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,o.requestIdleCallback)(()=>f(!0));return()=>(0,o.cancelIdleCallback)(e)}},[u,n,t,c,d.current]),[p,c,(0,r.useCallback)(()=>{f(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1943:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function o(e){return n.test(e)?e.replace(r,"\\$&"):e}},291:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(9920)._(n(2265)).default.createContext(null)},1142:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return i},formatWithValidation:function(){return l},urlObjectKeys:function(){return a}});let r=n(1452)._(n(8323)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:n}=e,i=e.protocol||"",a=e.pathname||"",l=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(r.urlQueryToSearchParams(s)));let c=e.search||s&&"?"+s||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),""+i+u+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+l}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return i(e)}},9195:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let r=n(9089),o=n(8083)},20:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return i}});let r=n(1533),o=n(3169);function i(e,t,n){let i="",a=(0,o.getRouteRegex)(e),l=a.groups,s=(t!==e?(0,r.getRouteMatcher)(a)(t):"")||n;i=e;let u=Object.keys(l);return u.every(e=>{let t=s[e]||"",{repeat:n,optional:r}=l[e],o="["+(n?"...":"")+e+"]";return r&&(o=(t?"":"/")+"["+o+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in s)&&(i=i.replace(o,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(i=""),{params:u,result:i}}},8083:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return i}});let r=n(2269),o=/\/\[[^/]+?\](?=\/|$)/;function i(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},8029:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return i}});let r=n(3461),o=n(9404);function i(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,o.hasBasePath)(n.pathname)}catch(e){return!1}}},5519:function(e,t){function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},8323:function(e,t){function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,o]=e;Array.isArray(o)?o.forEach(e=>t.append(n,r(e))):t.set(n,r(o))}),t}function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return i},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return o}})},1533:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let r=n(3461);function o(e){let{re:t,groups:n}=e;return e=>{let o=t.exec(e);if(!o)return!1;let i=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},a={};return Object.keys(n).forEach(e=>{let t=n[e],r=o[t.pos];void 0!==r&&(a[e]=~r.indexOf("/")?r.split("/").map(e=>i(e)):t.repeat?[i(r)]:i(r))}),a}}},3169:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getNamedMiddlewareRegex:function(){return d},getNamedRouteRegex:function(){return f},getRouteRegex:function(){return s}});let r=n(2269),o=n(1943),i=n(7741);function a(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function l(e){let t=(0,i.removeTrailingSlash)(e).slice(1).split("/"),n={},l=1;return{parameterizedRoute:t.map(e=>{let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&i){let{key:e,optional:r,repeat:s}=a(i[1]);return n[e]={pos:l++,repeat:s,optional:r},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!i)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:r}=a(i[1]);return n[e]={pos:l++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function s(e){let{parameterizedRoute:t,groups:n}=l(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function u(e){let{interceptionMarker:t,getSafeRouteKey:n,segment:r,routeKeys:i,keyPrefix:l}=e,{key:s,optional:u,repeat:c}=a(r),f=s.replace(/\W/g,"");l&&(f=""+l+f);let d=!1;(0===f.length||f.length>30)&&(d=!0),isNaN(parseInt(f.slice(0,1)))||(d=!0),d&&(f=n()),l?i[f]=""+l+s:i[f]=s;let p=t?(0,o.escapeStringRegexp)(t):"";return c?u?"(?:/"+p+"(?<"+f+">.+?))?":"/"+p+"(?<"+f+">.+?)":"/"+p+"(?<"+f+">[^/]+?)"}function c(e,t){let n;let a=(0,i.removeTrailingSlash)(e).slice(1).split("/"),l=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),s={};return{namedParameterizedRoute:a.map(e=>{let n=r.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(n&&i){let[n]=e.split(i[0]);return u({getSafeRouteKey:l,interceptionMarker:n,segment:i[1],routeKeys:s,keyPrefix:t?"nxtI":void 0})}return i?u({getSafeRouteKey:l,segment:i[1],routeKeys:s,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:s}}function f(e,t){let n=c(e,t);return{...s(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function d(e,t){let{parameterizedRoute:n}=l(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:"^"+o+(r?"(?:(/.*)?)":"")+"$"}}},9089:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let n=o.slice(1,-1),a=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),a=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function i(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(a){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');i(this.optionalRestSlugName,n),this.optionalRestSlugName=n,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');i(this.restSlugName,n),this.restSlugName=n,o="[...]"}}else{if(a)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');i(this.slugName,n),this.slugName=n,o="[]"}}this.children.has(o)||this.children.set(o,new n),this.children.get(o)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},3461:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return y},NormalizeError:function(){return m},PageNotFoundError:function(){return g},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return s},getLocationOrigin:function(){return a},getURL:function(){return l},isAbsoluteUrl:function(){return i},isResSent:function(){return u},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return v}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,o=Array(r),i=0;io.test(e);function a(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function l(){let{href:e}=window.location,t=a();return e.substring(t.length)}function s(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&u(n))return r;if(!r)throw Error('"'+s(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(e){return JSON.stringify({message:e.message,stack:e.stack})}},391:function(e,t,n){n.d(t,{H1:function(){return a}});var r=n(4975),o=n(1217);let i=(0,r.z)(o.n,{tag:"span",name:"Heading",accessibilityRole:"header",fontFamily:"$heading",size:"$8",margin:0}),a=(0,r.z)(i,{name:"H1",tag:"h1",size:"$10"});(0,r.z)(i,{name:"H2",tag:"h2",size:"$9"}),(0,r.z)(i,{name:"H3",tag:"h3",size:"$8"}),(0,r.z)(i,{name:"H4",tag:"h4",size:"$7"}),(0,r.z)(i,{name:"H5",tag:"h5",size:"$6"}),(0,r.z)(i,{name:"H6",tag:"h6",size:"$5"})},1170:function(e,t,n){n.d(t,{u:function(){return eA}}),n(7961);var r=n(4243),o=n(9087),i=n(4674),a=n(2265);let l=(0,a.createContext)(null),s=e=>(a.useContext(l)||i.YF)?.(e);var u=n(6748),c=n(8338),f=n(3370),d=n(5794),p=n(126),h=n(2281);function m({children:e,type:t,...n}){return"presence"===t?n.keepChildrenMounted?(0,h.jsx)(d.g,{initial:!!n.initial&&void 0,onExitComplete:n.onExitComplete,enterVariant:n.enterVariant,exitVariant:n.exitVariant,enterExitVariant:n.enterExitVariant,presenceAffectsLayout:!1,isPresent:n.present,custom:n.custom,children:e}):(0,h.jsx)(p.M,{...n,children:n.present?e:null}):(0,h.jsx)(h.Fragment,{children:e})}var g=n(5390),y=new WeakMap,b=new WeakMap,v={},x=0,j=function(e){return e&&(e.host||j(e.parentNode))},P=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=j(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});v[n]||(v[n]=new WeakMap);var i=v[n],a=[],l=new Set,s=new Set(o),u=function(e){!e||l.has(e)||(l.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(y.get(e)||0)+1,u=(i.get(e)||0)+1;y.set(e,s),i.set(e,u),a.push(e),1===s&&o&&b.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),l.clear(),x++,function(){a.forEach(function(e){var t=y.get(e)-1,o=i.get(e)-1;y.set(e,t),i.set(e,o),t||(b.has(e)||e.removeAttribute(r),b.delete(e)),o||e.removeAttribute(n)}),--x||(y=new WeakMap,y=new WeakMap,b=new WeakMap,v={})}},w=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),P(r,o,n,"aria-hidden")):function(){return null}},R=n(9046),_=n(281),k=n(925),C=n(2166),O=n(4582),S=n(1130),E=n(3820),A=n(9097),M=n(9018),L=n(6616),I=n(4975),N=n(1386),T=n(2202),z=n(5377),U=n(1092),$=n(1090),W=n(1775),F=n(357);let D=(0,k.i)({}),{useStyledContext:Z,Provider:B}=D,H=void 0,K={};function V(e){let{children:t,size:n,strategy:r="absolute",placement:o="bottom",stayInFrame:l,allowFlip:u,offset:c,disableRTL:f,__scopePopper:d}=e,p=(0,L.SZ)(),[m,g]=a.useState(null),[y,b]=a.useState(0),v=c??y,x=s({strategy:r,placement:o,sameScrollView:!1,platform:f??K.disableRTL?{...i.Jv,isRTL:e=>!1}:i.Jv,middleware:[l?(0,i.uY)("boolean"==typeof l?{}:l):null,u?(0,i.RR)("boolean"==typeof u?{}:u):null,m?(0,i.x7)({element:m}):null,"u">typeof v?(0,i.cv)(v):null,H].filter(Boolean)}),{refs:j,middlewareData:P,open:w}=x;if(_.$L)(0,_.LI)(()=>{if(w&&j.reference.current&&j.floating.current)return(0,i.Me)(j.reference.current,j.floating.current,x.update)},[w,x.update,j.floating,j.reference]);else{var R,k,C;let e=(k=(R=(0,a.useState)(()=>$.Z.get("window")))[0],C=R[1],(0,a.useEffect)(()=>{function e(e){var t=e.window;null!=t&&C(t)}return $.Z.addEventListener("change",e),C($.Z.get("window")),()=>{$.Z.removeEventListener("change",e)}},[]),k),[t,n]=a.useState(!1);a.useEffect(()=>{let e=W.Z.addListener("keyboardDidShow",()=>{a.startTransition(()=>{n(!0)})}),t=W.Z.addListener("keyboardDidHide",()=>{a.startTransition(()=>{n(!1)})});return()=>{e.remove(),t.remove()}},[]),(0,_.LI)(()=>{x.update()},[e,t])}let O={size:n,arrowRef:g,arrowStyle:P.arrow,onArrowSize:b,isMounted:p,scope:d,hasFloating:P.checkFloating?.hasFloating,...x};return(0,h.jsx)(B,{...O,children:t})}let q=z.FA.extractable(a.forwardRef(function(e,t){let{virtualRef:n,__scopePopper:r,...o}=e,{getReferenceProps:i,refs:l}=Z(r),s=a.useRef(null),u=(0,R.ex)(t,s,l.setReference);if(a.useEffect(()=>{n&&l.setReference(n.current)},[n]),n)return null;let c={ref:u,...o};return(0,h.jsx)(C.G7,{...i?i(c):c})})),Y=(0,I.z)(U.K,{name:"PopperContent",variants:{unstyled:{false:{size:"$true",backgroundColor:"$background",alignItems:"center",radiused:!0}},size:{"...size":(e,{tokens:t})=>({padding:t.space[e],borderRadius:t.radius[e]})}},defaultVariants:{unstyled:"1"===F.env.TAMAGUI_HEADLESS}}),Q=a.forwardRef(function(e,t){let{__scopePopper:n,enableAnimationForPositionChange:r,...o}=e,{strategy:i,placement:l,refs:s,x:u,y:c,getFloatingProps:f,size:d,isMounted:p,update:m,floatingStyles:g,hasFloating:y}=Z(n),b=(0,R.ex)(s.setFloating,t),v=!1;if(_.Dt){let e=a.useRef(!0),t=a.useRef(!1);!1===y&&(e.current=!1),e.current||(t.current=y),v=t.current}let x=a.useMemo(()=>(0,h.jsx)(Y,{"data-placement":l,"data-strategy":i,contain:"layout",size:d,...o},"popper-content-frame"),[l,i,e]),[j,P]=a.useState(!0);a.useEffect(()=>{(u||c)&&P(!1)},[u,c]),(0,_.LI)(()=>{p&&m()},[p]);let w=!0;if(_.Dt){let[e,t]=a.useState(!1);w=e,a.useEffect(()=>{v&&t(!0)},[v,u,c])}if(!p)return null;let k={ref:b,x:u||0,y:c||0,top:0,left:0,position:i,opacity:w?1:0,...r&&{animation:o.animation,animateOnly:j?["none"]:o.animateOnly,animatePresence:!1}};return(0,h.jsx)(C.Kq,{...f?f(k):k,children:x})}),G=(0,I.z)(z.FA,{name:"PopperArrow",variants:{unstyled:{false:{borderColor:"$borderColor",backgroundColor:"$background",position:"relative"}}},defaultVariants:{unstyled:"1"===F.env.TAMAGUI_HEADLESS}}),J=(0,I.z)(z.FA,{name:"PopperArrowOuter",variants:{unstyled:{false:{position:"absolute",zIndex:1e6,pointerEvents:"none",overflow:"hidden",alignItems:"center",justifyContent:"center"}}},defaultVariants:{unstyled:"1"===F.env.TAMAGUI_HEADLESS}}),X={top:"bottom",right:"left",bottom:"top",left:"right"},ee=G.styleable(function(e,t){let{__scopePopper:n,...r}=e,{offset:o,size:i,borderWidth:a=0,...l}=(0,N.wN)(r),s=Z(n),c=Math.max(0,+("number"==typeof i?i:(0,T.Ve)((0,u.Pj)(i??s.size,{shift:-2,bounds:[2]})))),{placement:f}=s,d=(0,R.ex)(s.arrowRef,t),p=s.arrowStyle?.x||0,m=s.arrowStyle?.y||0,g=f?f.split("-")[0]:"top",y={x:p,y:m,width:c,height:c},b={};if(g){y["bottom"===g||"top"===g?"width":"height"]=2*c;let e=X[g];e&&(y[e]=-c,b[e]=c/2),("top"===e||"bottom"===e)&&(y.left=0),("left"===e||"right"===e)&&(y.top=0),(0,_.LI)(()=>{s.onArrowSize?.(c)},[c,s.onArrowSize])}return(0,h.jsx)(J,{ref:d,...y,children:(0,h.jsx)(G,{width:c,height:c,...l,...b,rotate:"45deg",..."bottom"===g&&{borderLeftWidth:a,borderTopWidth:a},..."top"===g&&{borderBottomWidth:a,borderRightWidth:a},..."right"===g&&{borderLeftWidth:a,borderBottomWidth:a},..."left"===g&&{borderTopWidth:a,borderRightWidth:a}})})});var et=n(4624),en=n(2583),er=n(1510),eo=n(4077),ei=n(3277),ea=n(1840),el=n(5589);let es=({open:e,setOpen:t,disable:n,disableFocus:o,hoverable:i})=>(0,a.useCallback)(a=>{let l=(0,r.YF)({...a,open:e,onOpenChange:(e,n)=>{t(e,n?.type==="mousemove"||n?.type==="mouseenter"||n?.type==="mouseleave"?"hover":"press")}}),{getReferenceProps:s,getFloatingProps:u}=(0,r.NI)([i?(0,r.XI)(l.context,{enabled:!n&&i,handleClose:(0,r.xp)({requireIntent:!0,blockPointerEvents:!0,buffer:1}),...i&&"object"==typeof i&&i}):(0,r.XI)(l.context,{enabled:!1}),(0,r.KK)(l.context,{enabled:!n&&!o,visibleOnly:!0}),(0,r.qs)(l.context,{role:"dialog"}),(0,r.bQ)(l.context,{enabled:!n})]);return{...l,open:e,getReferenceProps:s,getFloatingProps:u}},[e,t,n,o,i]),eu="PopoverScope",ec=(0,k.i)({}),ef=ec.useStyledContext,ed=a.forwardRef(function(e,t){let{__scopePopover:n,...r}=e,{onCustomAnchorAdd:o,onCustomAnchorRemove:i}=ef(n)||{};return a.useEffect(()=>(o(),()=>i()),[o,i]),(0,h.jsx)(q,{__scopePopper:n||eu,...r,ref:t})}),ep=a.forwardRef(function(e,t){let{__scopePopover:n,...r}=e,o=ef(n),i=o.anchorTo,a=(0,R.ex)(t,o.triggerRef);if(i){let e={current:{getBoundingClientRect:()=>_.$L?DOMRect.fromRect(i):i,...!_.$L&&{measure:e=>e(i?.x,i?.y,i?.width,i?.height),measureInWindow:e=>e(i?.x,i?.y,i?.width,i?.height)}}};return(0,h.jsx)(q,{virtualRef:e,__scopePopper:n||eu})}if(!e.children)return null;let l=(0,h.jsx)(C.G7,{"aria-haspopup":"dialog","aria-expanded":o.open,"data-state":ej(o.open),...r,ref:a,onPress:(0,c.Mj)(e.onPress,o.onOpenToggle)});return o.hasCustomAnchor?l:(0,h.jsx)(q,{__scopePopper:n||eu,asChild:!0,children:l})}),eh=Y.extractable(a.forwardRef(function(e,t){let{allowPinchZoom:n,trapFocus:r,disableRemoveScroll:o=!0,zIndex:i,__scopePopover:l,...s}=e,u=ef(l),f=a.useRef(null),d=(0,R.ex)(t,f),p=a.useRef(!1),[m,g]=a.useState(!u.open);return u.open&&m&&g(!1),a.useEffect(()=>{if(!u.open)return;let e=f.current;if(e)return w(e)},[u.open]),!u.keepChildrenMounted&&m?null:(0,h.jsx)(eg,{__scopePopover:l,zIndex:e.zIndex,children:(0,h.jsx)(C.Kq,{pointerEvents:u.open?"auto":"none",children:(0,h.jsx)(ey,{...s,disableRemoveScroll:o,ref:d,setIsFullyHidden:g,__scopePopover:l,trapFocus:r??u.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,c.Mj)(e.onCloseAutoFocus,e=>{e.preventDefault(),p.current||u.triggerRef.current?.focus()}),onPointerDownOutside:(0,c.Mj)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;p.current=r},{checkDefaultPrevented:!1}),onFocusOutside:(0,c.Mj)(e.onFocusOutside,e=>e.preventDefault(),{checkDefaultPrevented:!1})})})})}));function em(e){return(0,h.jsx)(D.Provider,{scope:e.scope,...e.popperContext,children:(0,h.jsx)(ec.Provider,{...e.context,children:e.children})})}function eg(e){let{__scopePopover:t}=e,n=e.zIndex??15e4,r=ef(t),o=Z(t||eu),i=(0,O.C)(),a=e.children;return("android"===ea.Z.OS||"ios"===ea.Z.OS)&&(a=(0,h.jsx)(em,{scope:t||eu,popperContext:o,context:r,children:e.children})),(0,h.jsx)(et.h_,{zIndex:n,children:(0,h.jsxs)(S.Q,{forceClassName:!0,name:i,children:[!!r.open&&!r.breakpointActive&&(0,h.jsx)(z.FA,{fullscreen:!0,onPress:(0,c.Mj)(e.onPress,r.onOpenToggle)}),a]})})}let ey=a.forwardRef(function(e,t){let{trapFocus:n,__scopePopover:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,disableFocusScope:s,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,children:p,disableRemoveScroll:y,freezeContentsWhenHidden:b,setIsFullyHidden:v,...x}=e,j=ef(r),{open:P,keepChildrenMounted:w}=j,R=Z(r||eu),k=a.useCallback(()=>{v?.(!0)},[v]);if(j.breakpointActive){let e=a.Children.toArray(p).map(e=>a.isValidElement(e)&&e.type===el.Z?e.props.children:e),t=(0,h.jsx)(g.il,{children:e});return("android"===ea.Z.OS||"ios"===ea.Z.OS)&&(t=(0,h.jsx)(D.Provider,{scope:r||eu,...R,children:e})),(0,h.jsx)(et.b5,{hostName:`${j.id}PopoverContents`,children:t})}return(0,h.jsx)(m,{type:"presence",present:!!P,keepChildrenMounted:w,onExitComplete:k,children:(0,h.jsx)(Q,{__scopePopper:r||eu,"data-state":ej(P),id:j.contentId,ref:t,...x,children:(0,h.jsx)(en.f,{enabled:!y&&P,allowPinchZoom:!0,removeScrollBar:!1,style:eb,children:(0,h.jsx)(g.il,{children:(0,h.jsx)(M.M,{loop:!0,enabled:!s&&P,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:_.$L?(0,h.jsx)("div",{style:eb,children:p}):p})})})},j.contentId)})}),eb={display:"contents"},ev=a.forwardRef(function(e,t){let{__scopePopover:n,...r}=e,o=ef(n);return(0,h.jsx)(z.FA,{...r,ref:t,componentName:"PopoverClose",onPress:(0,c.Mj)(e.onPress,()=>o.onOpenChange(!1,"press"))})}),ex=ee.styleable(function(e,t){let{__scopePopover:n,...r}=e;return ew(ef(n).sheetBreakpoint)?null:(0,h.jsx)(ee,{__scopePopper:n||eu,componentName:"PopoverArrow",...r,ref:t})});function ej(e){return e?"open":"closed"}(0,c.$e)(a.forwardRef((e,t)=>{let{children:n,open:r,defaultOpen:i,onOpenChange:s,__scopePopover:u,keepChildrenMounted:c,hoverable:d,disableFocus:p,...m}=e,g=a.useId(),{when:y,AdaptProvider:b}=(0,f.pV)({Contents:a.useCallback(()=>(0,h.jsx)(et.$2,{name:`${g}PopoverContents`}),[])}),v=a.useRef(null),[x,j]=a.useState(!1),P=a.useRef(),[w,R]=(0,ei.T)({prop:r,defaultProp:i||!1,onChange:e=>{s?.(e,P.current)}}),k=(0,o.z)((e,t)=>{P.current=t,R(e)}),C=ew(y),O=es({open:w,setOpen:k,disable:C,hoverable:d,disableFocus:p}),[S,A]=a.useState(),M=(0,E.JL)(A);a.useImperativeHandle(t,()=>({anchorTo:M,toggle:()=>R(e=>!e),open:()=>R(!0),close:()=>R(!1),setOpen:R}));let L={id:g,sheetBreakpoint:y,contentId:a.useId(),triggerRef:v,open:w,breakpointActive:C,onOpenChange:k,onOpenToggle:(0,o.z)(()=>{w&&C||R(!w)}),hasCustomAnchor:x,anchorTo:S,onCustomAnchorAdd:a.useCallback(()=>j(!0),[]),onCustomAnchorRemove:a.useCallback(()=>j(!1),[]),keepChildrenMounted:c},I=(0,h.jsx)(V,{__scopePopper:u||eu,stayInFrame:!0,...m,children:(0,h.jsx)(ec.Provider,{scope:u,...L,children:(0,h.jsx)(eP,{onOpenChange:R,children:n})})});return(0,h.jsx)(b,{children:_.$L?(0,h.jsx)(l.Provider,{value:O,children:I}):I})}),{Anchor:ed,Arrow:ex,Trigger:ep,Content:eh,Close:ev,Adapt:f.Tr,ScrollView:el.Z,Sheet:er.yo.Controlled});let eP=({__scopePopover:e,...t})=>{let n=ef(e),r=eR(n),i=n.breakpointActive,a=(0,o.X)(r);return(0,h.jsx)(eo.f,{onOpenChange:e=>{a()&&t.onOpenChange(e)},open:n.open,hidden:!1===i,children:t.children})},ew=e=>{let t=(0,A.GS)();return"boolean"!=typeof e&&e?t[e]:!!e},eR=e=>{let t=ew(e.sheetBreakpoint);return!1!==e.open&&t},e_="tooltip",ek=Y.extractable(a.forwardRef(({__scopeTooltip:e,...t},n)=>{let r=Z(e||e_),o=t.padding??t.size??r.size??(0,u.ap)("$true",{shift:-2});return(0,h.jsx)(eh,{__scopePopover:e||e_,componentName:"Tooltip",disableRemoveScroll:!0,disableFocusScope:!0,...!t.unstyled&&{padding:o},ref:n,...t})})),eC=a.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e;return(0,h.jsx)(ex,{__scopePopper:n||e_,componentName:"Tooltip",ref:t,...r})}),eO=a.forwardRef(function(e,t){let{children:n,delay:i,restMs:s=typeof i>"u"?500:"number"==typeof i?i:0,onOpenChange:c,focus:f,open:d,disableAutoCloseOnScroll:p,__scopeTooltip:m,...g}=e,y=a.useRef(null),[b,v]=a.useState(!1),{delay:x,setCurrentId:j}=(0,r.tj)(),P=i??x,[w,R]=(0,ei.T)({prop:d,defaultProp:!1,onChange:c}),_=e.groupId,k=(0,o.z)(e=>{e&&j(_),R(e)});a.useEffect(()=>{if(!w||p||typeof document>"u")return;let e=()=>{R(!1)};return document.documentElement.addEventListener("scroll",e),()=>{document.documentElement.removeEventListener("scroll",e)}},[w,p]);let C=a.useCallback(e=>{let t=(0,r.YF)({...e,open:w,onOpenChange:k}),{delay:n}=(0,r.Qu)(t.context,{id:_}),{getReferenceProps:o,getFloatingProps:i}=(0,r.NI)([(0,r.XI)(t.context,{delay:P??n,restMs:s}),(0,r.KK)(t.context,f),(0,r.qs)(t.context,{role:"tooltip"}),(0,r.bQ)(t.context)]);return{...t,open:w,getReferenceProps:o,getFloatingProps:i}},[_,P,w,s,f?JSON.stringify(f):0]),O=a.useCallback(()=>v(!0),[]),S=a.useCallback(()=>v(!1),[]),E=a.useId(),A=e.unstyled?null:(0,u.ap)("$true",{shift:-2,bounds:[0]});return(0,h.jsx)(l.Provider,{value:C,children:(0,h.jsx)(V,{__scopePopper:m||e_,size:A?.key,allowFlip:!0,stayInFrame:!0,...g,children:(0,h.jsx)(ec.Provider,{contentId:E,triggerRef:y,sheetBreakpoint:!1,open:w,scope:m||e_,onOpenChange:R,onOpenToggle:eM,hasCustomAnchor:b,onCustomAnchorAdd:O,onCustomAnchorRemove:S,children:n})})})}),eS=a.forwardRef(function(e,t){let{__scopeTooltip:n,...r}=e;return(0,h.jsx)(ep,{...r,__scopePopover:n||e_,ref:t})}),eE=a.forwardRef(function(e,t){let{__scopeTooltip:n,...r}=e;return(0,h.jsx)(ed,{...r,__scopePopover:n||e_,ref:t})}),eA=(0,c.$e)(eO,{Anchor:eE,Arrow:eC,Content:ek,Trigger:eS}),eM=()=>{}},5737:function(e,t,n){n.d(t,{e:function(){return m}});var r=n(281),o=n(4975),i=n(2026),a=n(7445),l=n.n(a),s=n(1213),u=s.Z?window.location.href:"";class c{constructor(){this._eventCallbacks={}}_dispatchEvent(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{e(...n)})}addEventListener(e,t){var n=this;return n._eventCallbacks[e]||(n._eventCallbacks[e]=[t]),n._eventCallbacks[e].push(t),{remove(){var r=n._eventCallbacks[e].filter(e=>e.toString()!==t.toString());n._eventCallbacks[e]=r}}}removeEventListener(e,t){console.error("Linking.removeEventListener('"+e+"', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `Linking.addEventListener`.");var n=this._eventCallbacks[e].filter(e=>e.toString()!==t.toString());this._eventCallbacks[e]=n}canOpenURL(){return Promise.resolve(!0)}getInitialURL(){return Promise.resolve(u)}openURL(e,t){1==arguments.length&&(t="_blank");try{return f(e,t),this._dispatchEvent("onOpen",e),Promise.resolve()}catch(e){return Promise.reject(e)}}_validateURL(e){l()("string"==typeof e,"Invalid URL: should be a string. Was: "+e),l()(e,"Invalid URL: cannot be empty")}}var f=(e,t)=>{if(s.Z){var n=new URL(e,window.location).toString();0===n.indexOf("tel:")?window.location=n:window.open(n,t,"noopener")}},d=new c,p=n(2281);let h=(0,o.z)(i.J,{name:"Anchor",tag:"a",accessibilityRole:"link"}),m=h.styleable(({href:e,target:t,...n},o)=>(0,p.jsx)(h,{...n,...r.$L?{href:e,target:t}:{onPress:t=>{n.onPress?.(t),void 0!==e&&d.openURL(e)}},ref:o}))}}]); \ No newline at end of file diff --git a/_next/static/chunks/876-502e9e9269cbab5a.js b/_next/static/chunks/876-502e9e9269cbab5a.js deleted file mode 100644 index e831c4cfd7b662aa59957d084cb527640b49a09b..0000000000000000000000000000000000000000 --- a/_next/static/chunks/876-502e9e9269cbab5a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[876],{6855:function(e,t,n){n.d(t,{u:function(){return s}});var r=n(2265),o=n(2989),i=n(7470),a=n(2281);let l=e=>{let{color:t="black",size:n=24,...r}=e;return(0,a.jsxs)(o.ny,{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:[(0,a.jsx)(o.UL,{width:"20",height:"14",x:"2",y:"3",rx:"2",stroke:t}),(0,a.jsx)(o.x1,{x1:"8",x2:"16",y1:"21",y2:"21",stroke:t}),(0,a.jsx)(o.x1,{x1:"12",x2:"12",y1:"17",y2:"21",stroke:t})]})};l.displayName="Monitor";let s=(0,r.memo)((0,i.H)(l))},2890:function(e,t,n){n.d(t,{J:function(){return s}});var r=n(2265),o=n(2989),i=n(7470),a=n(2281);let l=e=>{let{color:t="black",size:n=24,...r}=e;return(0,a.jsx)(o.ny,{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:(0,a.jsx)(o.y$,{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",stroke:t})})};l.displayName="Moon";let s=(0,r.memo)((0,i.H)(l))},896:function(e,t,n){n.d(t,{k:function(){return s}});var r=n(2265),o=n(2989),i=n(7470),a=n(2281);let l=e=>{let{color:t="black",size:n=24,...r}=e;return(0,a.jsxs)(o.ny,{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:[(0,a.jsx)(o.Cd,{cx:"12",cy:"12",r:"4",stroke:t}),(0,a.jsx)(o.y$,{d:"M12 2v2",stroke:t}),(0,a.jsx)(o.y$,{d:"M12 20v2",stroke:t}),(0,a.jsx)(o.y$,{d:"m4.93 4.93 1.41 1.41",stroke:t}),(0,a.jsx)(o.y$,{d:"m17.66 17.66 1.41 1.41",stroke:t}),(0,a.jsx)(o.y$,{d:"M2 12h2",stroke:t}),(0,a.jsx)(o.y$,{d:"M20 12h2",stroke:t}),(0,a.jsx)(o.y$,{d:"m6.34 17.66-1.41 1.41",stroke:t}),(0,a.jsx)(o.y$,{d:"m19.07 4.93-1.41 1.41",stroke:t})]})};l.displayName="Sun";let s=(0,r.memo)((0,i.H)(l))},7138:function(e,t,n){n.d(t,{default:function(){return o.a}});var r=n(231),o=n.n(r)},844:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(8157);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{})}}function v(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let x=i.default.forwardRef(function(e,t){let n,r;let{href:s,as:y,children:x,prefetch:j=null,passHref:P,replace:w,shallow:R,scroll:_,locale:k,onClick:C,onMouseEnter:O,onTouchStart:S,legacyBehavior:E=!1,...A}=e;n=x,E&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let M=i.default.useContext(f.RouterContext),L=i.default.useContext(d.AppRouterContext),I=null!=M?M:L,N=!M,T=!1!==j,z=null===j?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:U,as:$}=i.default.useMemo(()=>{if(!M){let e=v(s);return{href:e,as:y?v(y):e}}let[e,t]=(0,a.resolveHref)(M,s,!0);return{href:e,as:y?(0,a.resolveHref)(M,y):t||e}},[M,s,y]),W=i.default.useRef(U),F=i.default.useRef($);E&&(r=i.default.Children.only(n));let D=E?r&&"object"==typeof r&&r.ref:t,[B,H,K]=(0,p.useIntersection)({rootMargin:"200px"}),Z=i.default.useCallback(e=>{(F.current!==$||W.current!==U)&&(K(),F.current=$,W.current=U),B(e),D&&("function"==typeof D?D(e):"object"==typeof D&&(D.current=e))},[$,D,U,K,B]);i.default.useEffect(()=>{I&&H&&T&&b(I,U,$,{locale:k},{kind:z},N)},[$,U,H,k,T,null==M?void 0:M.locale,I,N,z]);let V={ref:Z,onClick(e){E||"function"!=typeof C||C(e),E&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),I&&!e.defaultPrevented&&function(e,t,n,r,o,a,s,u,c){let{nodeName:f}=e.currentTarget;if("A"===f.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,l.isLocalURL)(n)))return;e.preventDefault();let d=()=>{let e=null==s||s;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:a,locale:u,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};c?i.default.startTransition(d):d()}(e,I,U,$,w,R,_,k,N)},onMouseEnter(e){E||"function"!=typeof O||O(e),E&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),I&&(T||!N)&&b(I,U,$,{locale:k,priority:!0,bypassPrefetchedCheck:!0},{kind:z},N)},onTouchStart:function(e){E||"function"!=typeof S||S(e),E&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),I&&(T||!N)&&b(I,U,$,{locale:k,priority:!0,bypassPrefetchedCheck:!0},{kind:z},N)}};if((0,u.isAbsoluteUrl)($))V.href=$;else if(!E||P||"a"===r.type&&!("href"in r.props)){let e=void 0!==k?k:null==M?void 0:M.locale,t=(null==M?void 0:M.isLocaleDomain)&&(0,h.getDomainLocale)($,e,null==M?void 0:M.locales,null==M?void 0:M.domainLocales);V.href=t||(0,m.addBasePath)((0,c.addLocale)($,e,null==M?void 0:M.defaultLocale))}return E?i.default.cloneElement(r,V):(0,o.jsx)("a",{...A,...V,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9189:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8016:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let r=n(8323),o=n(1142),i=n(5519),a=n(3461),l=n(8157),s=n(8029),u=n(9195),c=n(20);function f(e,t,n){let f;let d="string"==typeof t?t:(0,o.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\/\//),h=p?d.slice(p[0].length):d;if((h.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,a.normalizeRepeatedSlashes)(h);d=(p?p[0]:"")+t}if(!(0,s.isLocalURL)(d))return n?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,l.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:a,params:l}=(0,c.interpolateAs)(e.pathname,e.pathname,n);a&&(t=(0,o.formatWithValidation)({pathname:a,hash:e.hash,query:(0,i.omit)(n,l)}))}let a=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return n?[a,t||a]:a}catch(e){return n?[d]:d}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3106:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let r=n(2265),o=n(9189),i="function"==typeof IntersectionObserver,a=new Map,l=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,u=s||!i,[c,f]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);return(0,r.useEffect)(()=>{if(i){if(u||c)return;let e=d.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=l.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},l.push(n),a.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let e=l.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,o.requestIdleCallback)(()=>f(!0));return()=>(0,o.cancelIdleCallback)(e)}},[u,n,t,c,d.current]),[p,c,(0,r.useCallback)(()=>{f(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1943:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function o(e){return n.test(e)?e.replace(r,"\\$&"):e}},291:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(1609)._(n(2265)).default.createContext(null)},1142:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return i},formatWithValidation:function(){return l},urlObjectKeys:function(){return a}});let r=n(6720)._(n(8323)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:n}=e,i=e.protocol||"",a=e.pathname||"",l=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(r.urlQueryToSearchParams(s)));let c=e.search||s&&"?"+s||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),""+i+u+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+l}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return i(e)}},9195:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let r=n(9089),o=n(8083)},20:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return i}});let r=n(1533),o=n(3169);function i(e,t,n){let i="",a=(0,o.getRouteRegex)(e),l=a.groups,s=(t!==e?(0,r.getRouteMatcher)(a)(t):"")||n;i=e;let u=Object.keys(l);return u.every(e=>{let t=s[e]||"",{repeat:n,optional:r}=l[e],o="["+(n?"...":"")+e+"]";return r&&(o=(t?"":"/")+"["+o+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in s)&&(i=i.replace(o,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(i=""),{params:u,result:i}}},8083:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return i}});let r=n(2269),o=/\/\[[^/]+?\](?=\/|$)/;function i(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},8029:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return i}});let r=n(3461),o=n(9404);function i(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,o.hasBasePath)(n.pathname)}catch(e){return!1}}},5519:function(e,t){function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},8323:function(e,t){function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,o]=e;Array.isArray(o)?o.forEach(e=>t.append(n,r(e))):t.set(n,r(o))}),t}function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return i},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return o}})},1533:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let r=n(3461);function o(e){let{re:t,groups:n}=e;return e=>{let o=t.exec(e);if(!o)return!1;let i=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},a={};return Object.keys(n).forEach(e=>{let t=n[e],r=o[t.pos];void 0!==r&&(a[e]=~r.indexOf("/")?r.split("/").map(e=>i(e)):t.repeat?[i(r)]:i(r))}),a}}},3169:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getNamedMiddlewareRegex:function(){return d},getNamedRouteRegex:function(){return f},getRouteRegex:function(){return s}});let r=n(2269),o=n(1943),i=n(7741);function a(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function l(e){let t=(0,i.removeTrailingSlash)(e).slice(1).split("/"),n={},l=1;return{parameterizedRoute:t.map(e=>{let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&i){let{key:e,optional:r,repeat:s}=a(i[1]);return n[e]={pos:l++,repeat:s,optional:r},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!i)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:r}=a(i[1]);return n[e]={pos:l++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function s(e){let{parameterizedRoute:t,groups:n}=l(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function u(e){let{interceptionMarker:t,getSafeRouteKey:n,segment:r,routeKeys:i,keyPrefix:l}=e,{key:s,optional:u,repeat:c}=a(r),f=s.replace(/\W/g,"");l&&(f=""+l+f);let d=!1;(0===f.length||f.length>30)&&(d=!0),isNaN(parseInt(f.slice(0,1)))||(d=!0),d&&(f=n()),l?i[f]=""+l+s:i[f]=s;let p=t?(0,o.escapeStringRegexp)(t):"";return c?u?"(?:/"+p+"(?<"+f+">.+?))?":"/"+p+"(?<"+f+">.+?)":"/"+p+"(?<"+f+">[^/]+?)"}function c(e,t){let n;let a=(0,i.removeTrailingSlash)(e).slice(1).split("/"),l=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),s={};return{namedParameterizedRoute:a.map(e=>{let n=r.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(n&&i){let[n]=e.split(i[0]);return u({getSafeRouteKey:l,interceptionMarker:n,segment:i[1],routeKeys:s,keyPrefix:t?"nxtI":void 0})}return i?u({getSafeRouteKey:l,segment:i[1],routeKeys:s,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:s}}function f(e,t){let n=c(e,t);return{...s(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function d(e,t){let{parameterizedRoute:n}=l(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:"^"+o+(r?"(?:(/.*)?)":"")+"$"}}},9089:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let n=o.slice(1,-1),a=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),a=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function i(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(a){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');i(this.optionalRestSlugName,n),this.optionalRestSlugName=n,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');i(this.restSlugName,n),this.restSlugName=n,o="[...]"}}else{if(a)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');i(this.slugName,n),this.slugName=n,o="[]"}}this.children.has(o)||this.children.set(o,new n),this.children.get(o)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},3461:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return y},NormalizeError:function(){return m},PageNotFoundError:function(){return g},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return s},getLocationOrigin:function(){return a},getURL:function(){return l},isAbsoluteUrl:function(){return i},isResSent:function(){return u},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return v}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,o=Array(r),i=0;io.test(e);function a(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function l(){let{href:e}=window.location,t=a();return e.substring(t.length)}function s(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&u(n))return r;if(!r)throw Error('"'+s(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(e){return JSON.stringify({message:e.message,stack:e.stack})}},391:function(e,t,n){n.d(t,{H1:function(){return a}});var r=n(4975),o=n(1217);let i=(0,r.z)(o.n,{tag:"span",name:"Heading",accessibilityRole:"header",fontFamily:"$heading",size:"$8",margin:0}),a=(0,r.z)(i,{name:"H1",tag:"h1",size:"$10"});(0,r.z)(i,{name:"H2",tag:"h2",size:"$9"}),(0,r.z)(i,{name:"H3",tag:"h3",size:"$8"}),(0,r.z)(i,{name:"H4",tag:"h4",size:"$7"}),(0,r.z)(i,{name:"H5",tag:"h5",size:"$6"}),(0,r.z)(i,{name:"H6",tag:"h6",size:"$5"})},1170:function(e,t,n){n.d(t,{u:function(){return eE}}),n(7961);var r=n(4243),o=n(9087),i=n(4674),a=n(2265);let l=(0,a.createContext)(null),s=e=>(a.useContext(l)||i.YF)?.(e);var u=n(6748),c=n(8338),f=n(3370),d=n(5794),p=n(126),h=n(2281);function m({children:e,type:t,...n}){return"presence"===t?n.keepChildrenMounted?(0,h.jsx)(d.g,{initial:!!n.initial&&void 0,onExitComplete:n.onExitComplete,enterVariant:n.enterVariant,exitVariant:n.exitVariant,enterExitVariant:n.enterExitVariant,presenceAffectsLayout:!1,isPresent:n.present,custom:n.custom,children:e}):(0,h.jsx)(p.M,{...n,children:n.present?e:null}):(0,h.jsx)(h.Fragment,{children:e})}var g=n(5390),y=new WeakMap,b=new WeakMap,v={},x=0,j=function(e){return e&&(e.host||j(e.parentNode))},P=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=j(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});v[n]||(v[n]=new WeakMap);var i=v[n],a=[],l=new Set,s=new Set(o),u=function(e){!e||l.has(e)||(l.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(y.get(e)||0)+1,u=(i.get(e)||0)+1;y.set(e,s),i.set(e,u),a.push(e),1===s&&o&&b.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),l.clear(),x++,function(){a.forEach(function(e){var t=y.get(e)-1,o=i.get(e)-1;y.set(e,t),i.set(e,o),t||(b.has(e)||e.removeAttribute(r),b.delete(e)),o||e.removeAttribute(n)}),--x||(y=new WeakMap,y=new WeakMap,b=new WeakMap,v={})}},w=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),P(r,o,n,"aria-hidden")):function(){return null}},R=n(9046),_=n(281),k=n(925),C=n(2166),O=n(4582),S=n(1130),E=n(3820),A=n(9097),M=n(9018),L=n(6616),I=n(4975),N=n(1386),T=n(2202),z=n(5377),U=n(1092),$=n(1090),W=n(1775),F=n(357);let D=(0,k.i)({}),{useStyledContext:B,Provider:H}=D,K=void 0;function Z(e){let{children:t,size:n,strategy:r="absolute",placement:o="bottom",stayInFrame:l,allowFlip:u,offset:c,__scopePopper:f}=e,d=(0,L.S)(),[p,m]=a.useState(null),[g,y]=a.useState(0),b=c??g,v=s({strategy:r,placement:o,sameScrollView:!1,middleware:[l?(0,i.uY)("boolean"==typeof l?{}:l):null,u?(0,i.RR)("boolean"==typeof u?{}:u):null,p?(0,i.x7)({element:p}):null,"u">typeof b?(0,i.cv)(b):null,K].filter(Boolean)}),{refs:x,middlewareData:j,open:P,floatingStyles:w}=v;if(_.$L)(0,_.LI)(()=>{if(P&&x.reference.current&&x.floating.current)return(0,i.Me)(x.reference.current,x.floating.current,v.update)},[P,v.update,x.floating,x.reference]);else{var R,k,C;let e=(k=(R=(0,a.useState)(()=>$.Z.get("window")))[0],C=R[1],(0,a.useEffect)(()=>{function e(e){var t=e.window;null!=t&&C(t)}return $.Z.addEventListener("change",e),C($.Z.get("window")),()=>{$.Z.removeEventListener("change",e)}},[]),k),[t,n]=a.useState(!1);a.useEffect(()=>{let e=W.Z.addListener("keyboardDidShow",()=>{n(!0)}),t=W.Z.addListener("keyboardDidHide",()=>{n(!1)});return()=>{e.remove(),t.remove()}},[]),(0,_.LI)(()=>{v.update()},[e,t])}let O={size:n,arrowRef:m,arrowStyle:j.arrow,onArrowSize:y,isMounted:d,scope:f,hasFloating:j.checkFloating?.hasFloating,...v};return(0,h.jsx)(H,{...O,children:t})}let V=z.FA.extractable(a.forwardRef(function(e,t){let{virtualRef:n,__scopePopper:r,...o}=e,{getReferenceProps:i,refs:l}=B(r),s=a.useRef(null),u=(0,R.ex)(t,s,l.setReference);if(a.useEffect(()=>{n&&l.setReference(n.current)},[n]),n)return null;let c={ref:u,...o};return(0,h.jsx)(C.G7,{...i?i(c):c})})),q=(0,I.z)(U.K,{name:"PopperContent",variants:{unstyled:{false:{size:"$true",backgroundColor:"$background",alignItems:"center",radiused:!0}},size:{"...size":(e,{tokens:t})=>({padding:t.space[e],borderRadius:t.radius[e]})}},defaultVariants:{unstyled:"1"===F.env.TAMAGUI_HEADLESS}}),Y=a.forwardRef(function(e,t){let{__scopePopper:n,enableAnimationForPositionChange:r,...o}=e,{strategy:i,placement:l,refs:s,x:u,y:c,getFloatingProps:f,size:d,isMounted:p,update:m,floatingStyles:g,hasFloating:y}=B(n),b=(0,R.ex)(s.setFloating,t),v=!1;if(_.Dt){let e=a.useRef(!0),t=a.useRef(!1);!1===y&&(e.current=!1),e.current||(t.current=y),v=t.current}let x=a.useMemo(()=>(0,h.jsx)(q,{"data-placement":l,"data-strategy":i,contain:"layout",size:d,...o},"popper-content-frame"),[l,i,e]),[j,P]=a.useState(!0);if(a.useEffect(()=>{(u||c)&&P(!1)},[u,c]),(0,_.LI)(()=>{p&&m()},[p]),!p)return null;let w=!0,k;_.Dt&&([w,k]=a.useState(!1),a.useEffect(()=>{v&&k(!0)},[v,u,c]));let O={ref:b,x:u||0,y:c||0,top:0,left:0,position:i,opacity:w?1:0,...r&&{animation:o.animation,animateOnly:j?["none"]:o.animateOnly,animatePresence:!1}};return(0,h.jsx)(C.Kq,{...f?f(O):O,children:x})}),Q=(0,I.z)(z.FA,{name:"PopperArrow",variants:{unstyled:{false:{borderColor:"$borderColor",backgroundColor:"$background",position:"relative"}}},defaultVariants:{unstyled:"1"===F.env.TAMAGUI_HEADLESS}}),G=(0,I.z)(z.FA,{name:"PopperArrowOuter",variants:{unstyled:{false:{position:"absolute",zIndex:1e6,pointerEvents:"none",overflow:"hidden",alignItems:"center",justifyContent:"center"}}},defaultVariants:{unstyled:"1"===F.env.TAMAGUI_HEADLESS}}),J={top:"bottom",right:"left",bottom:"top",left:"right"},X=Q.styleable(function(e,t){let{__scopePopper:n,...r}=e,{offset:o,size:i,borderWidth:a=0,...l}=(0,N.wN)(r),s=B(n),c=i??s.size,f=Math.max(0,+(0,T.Ve)((0,u.Pj)(c,{shift:-2,bounds:[2]}))),{placement:d}=s,p=(0,R.ex)(s.arrowRef,t),m=s.arrowStyle?.x||0,g=s.arrowStyle?.y||0,y=d?d.split("-")[0]:"top",b={x:m,y:g,width:f,height:f},v={};if(y){b["bottom"===y||"top"===y?"width":"height"]=2*f;let e=J[y];e&&(b[e]=-f,v[e]=f/2),("top"===e||"bottom"===e)&&(b.left=0),("left"===e||"right"===e)&&(b.top=0),(0,_.LI)(()=>{s.onArrowSize?.(f)},[f,s.onArrowSize])}return(0,h.jsx)(G,{ref:p,...b,children:(0,h.jsx)(Q,{width:f,height:f,...l,...v,rotate:"45deg",..."bottom"===y&&{borderLeftWidth:a,borderTopWidth:a},..."top"===y&&{borderBottomWidth:a,borderRightWidth:a},..."right"===y&&{borderLeftWidth:a,borderBottomWidth:a},..."left"===y&&{borderTopWidth:a,borderRightWidth:a}})})});var ee=n(4624),et=n(2583),en=n(1510),er=n(4077),eo=n(3277),ei=n(1840),ea=n(5589);let el=({open:e,setOpen:t,disable:n,disableFocus:o,hoverable:i})=>(0,a.useCallback)(a=>{let l=(0,r.YF)({...a,open:e,onOpenChange:(e,n)=>{t(e,n?.type==="mousemove"||n?.type==="mouseenter"||n?.type==="mouseleave"?"hover":"press")}}),{getReferenceProps:s,getFloatingProps:u}=(0,r.NI)([i?(0,r.XI)(l.context,{enabled:!n&&i,handleClose:(0,r.xp)({requireIntent:!0,blockPointerEvents:!0,buffer:1}),...i&&"object"==typeof i&&i}):(0,r.XI)(l.context,{enabled:!1}),(0,r.KK)(l.context,{enabled:!n&&!o,visibleOnly:!0}),(0,r.qs)(l.context,{role:"dialog"}),(0,r.bQ)(l.context,{enabled:!n})]);return{...l,open:e,getReferenceProps:s,getFloatingProps:u}},[e,t,n,o,i]),es="PopoverScope",eu=(0,k.i)({}),ec=eu.useStyledContext,ef=a.forwardRef(function(e,t){let{__scopePopover:n,...r}=e,{onCustomAnchorAdd:o,onCustomAnchorRemove:i}=ec(n)||{};return a.useEffect(()=>(o(),()=>i()),[o,i]),(0,h.jsx)(V,{__scopePopper:n||es,...r,ref:t})}),ed=a.forwardRef(function(e,t){let{__scopePopover:n,...r}=e,o=ec(n),i=o.anchorTo,a=(0,R.ex)(t,o.triggerRef);if(i){let e={current:{getBoundingClientRect:()=>_.$L?DOMRect.fromRect(i):i,...!_.$L&&{measure:e=>e(i?.x,i?.y,i?.width,i?.height),measureInWindow:e=>e(i?.x,i?.y,i?.width,i?.height)}}};return(0,h.jsx)(V,{virtualRef:e,__scopePopper:n||es})}if(!e.children)return null;let l=(0,h.jsx)(C.G7,{"aria-haspopup":"dialog","aria-expanded":o.open,"data-state":ex(o.open),...r,ref:a,onPress:(0,c.Mj)(e.onPress,o.onOpenToggle)});return o.hasCustomAnchor?l:(0,h.jsx)(V,{__scopePopper:n||es,asChild:!0,children:l})}),ep=q.extractable(a.forwardRef(function(e,t){let{allowPinchZoom:n,trapFocus:r,disableRemoveScroll:o=!0,zIndex:i,__scopePopover:l,...s}=e,u=ec(l),f=a.useRef(null),d=(0,R.ex)(t,f),p=a.useRef(!1),[m,g]=a.useState(!u.open);return u.open&&m&&g(!1),a.useEffect(()=>{if(!u.open)return;let e=f.current;if(e)return w(e)},[u.open]),!u.keepChildrenMounted&&m?null:(0,h.jsx)(em,{__scopePopover:l,zIndex:e.zIndex,children:(0,h.jsx)(C.Kq,{pointerEvents:u.open?"auto":"none",children:(0,h.jsx)(eg,{...s,disableRemoveScroll:o,ref:d,setIsFullyHidden:g,__scopePopover:l,trapFocus:r??u.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,c.Mj)(e.onCloseAutoFocus,e=>{e.preventDefault(),p.current||u.triggerRef.current?.focus()}),onPointerDownOutside:(0,c.Mj)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;p.current=r},{checkDefaultPrevented:!1}),onFocusOutside:(0,c.Mj)(e.onFocusOutside,e=>e.preventDefault(),{checkDefaultPrevented:!1})})})})}));function eh(e){return(0,h.jsx)(D.Provider,{scope:e.scope,...e.popperContext,children:(0,h.jsx)(eu.Provider,{...e.context,children:e.children})})}function em(e){let{__scopePopover:t}=e,n=e.zIndex??15e4,r=ec(t),o=B(t||es),i=(0,O.C)(),a=e.children;return("android"===ei.Z.OS||"ios"===ei.Z.OS)&&(a=(0,h.jsx)(eh,{scope:t||es,popperContext:o,context:r,children:e.children})),(0,h.jsx)(ee.h_,{zIndex:n,children:(0,h.jsxs)(S.Q,{forceClassName:!0,name:i,children:[!!r.open&&!r.breakpointActive&&(0,h.jsx)(z.FA,{fullscreen:!0,onPress:(0,c.Mj)(e.onPress,r.onOpenToggle)}),a]})})}let eg=a.forwardRef(function(e,t){let{trapFocus:n,__scopePopover:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,disableFocusScope:s,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,children:p,disableRemoveScroll:y,freezeContentsWhenHidden:b,setIsFullyHidden:v,...x}=e,j=ec(r),{open:P,keepChildrenMounted:w}=j,R=B(r||es),k=a.useCallback(()=>{v?.(!0)},[v]);if(j.breakpointActive){let e=a.Children.toArray(p).map(e=>a.isValidElement(e)&&e.type===ea.Z?e.props.children:e),t=(0,h.jsx)(g.il,{children:e});return("android"===ei.Z.OS||"ios"===ei.Z.OS)&&(t=(0,h.jsx)(D.Provider,{scope:r||es,...R,children:e})),(0,h.jsx)(ee.b5,{hostName:`${j.id}PopoverContents`,children:t})}return(0,h.jsx)(m,{type:"presence",present:!!P,keepChildrenMounted:w,onExitComplete:k,children:(0,h.jsx)(Y,{__scopePopper:r||es,"data-state":ex(P),id:j.contentId,ref:t,...x,children:(0,h.jsx)(et.f,{enabled:!y&&P,allowPinchZoom:!0,removeScrollBar:!1,style:ey,children:(0,h.jsx)(g.il,{children:(0,h.jsx)(M.M,{loop:!0,enabled:!s&&P,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:_.$L?(0,h.jsx)("div",{style:ey,children:p}):p})})})},j.contentId)})}),ey={display:"contents"},eb=a.forwardRef(function(e,t){let{__scopePopover:n,...r}=e,o=ec(n);return(0,h.jsx)(z.FA,{...r,ref:t,componentName:"PopoverClose",onPress:(0,c.Mj)(e.onPress,()=>o.onOpenChange(!1,"press"))})}),ev=X.styleable(function(e,t){let{__scopePopover:n,...r}=e;return eP(ec(n).sheetBreakpoint)?null:(0,h.jsx)(X,{__scopePopper:n||es,componentName:"PopoverArrow",...r,ref:t})});function ex(e){return e?"open":"closed"}(0,c.$e)(a.forwardRef((e,t)=>{let{children:n,open:r,defaultOpen:i,onOpenChange:s,__scopePopover:u,keepChildrenMounted:c,hoverable:d,disableFocus:p,...m}=e,g=a.useId(),{when:y,AdaptProvider:b}=(0,f.pV)({Contents:a.useCallback(()=>(0,h.jsx)(ee.$2,{name:`${g}PopoverContents`}),[])}),v=a.useRef(null),[x,j]=a.useState(!1),P=a.useRef(),[w,R]=(0,eo.T)({prop:r,defaultProp:i||!1,onChange:e=>{s?.(e,P.current)}}),k=(0,o.z)((e,t)=>{P.current=t,R(e)}),C=eP(y),O=el({open:w,setOpen:k,disable:C,hoverable:d,disableFocus:p}),[S,A]=a.useState(),M=(0,E.JL)(A);a.useImperativeHandle(t,()=>({anchorTo:M,toggle:()=>R(e=>!e),open:()=>R(!0),close:()=>R(!1),setOpen:R}));let L={id:g,sheetBreakpoint:y,contentId:a.useId(),triggerRef:v,open:w,breakpointActive:C,onOpenChange:k,onOpenToggle:(0,o.z)(()=>{w&&C||R(!w)}),hasCustomAnchor:x,anchorTo:S,onCustomAnchorAdd:a.useCallback(()=>j(!0),[]),onCustomAnchorRemove:a.useCallback(()=>j(!1),[]),keepChildrenMounted:c},I=(0,h.jsx)(Z,{__scopePopper:u||es,stayInFrame:!0,...m,children:(0,h.jsx)(eu.Provider,{scope:u,...L,children:(0,h.jsx)(ej,{onOpenChange:R,children:n})})});return(0,h.jsx)(b,{children:_.$L?(0,h.jsx)(l.Provider,{value:O,children:I}):I})}),{Anchor:ef,Arrow:ev,Trigger:ed,Content:ep,Close:eb,Adapt:f.Tr,ScrollView:ea.Z,Sheet:en.yo.Controlled});let ej=({__scopePopover:e,...t})=>{let n=ec(e),r=ew(n),i=n.breakpointActive,a=(0,o.X)(r);return(0,h.jsx)(er.f,{onOpenChange:e=>{a()&&t.onOpenChange(e)},open:n.open,hidden:!1===i,children:t.children})},eP=e=>{let t=(0,A.GS)();return"boolean"!=typeof e&&e?t[e]:!!e},ew=e=>{let t=eP(e.sheetBreakpoint);return!1!==e.open&&t},eR="tooltip",e_=q.extractable(a.forwardRef(({__scopeTooltip:e,...t},n)=>{let r=B(e||eR),o=t.padding??t.size??r.size??(0,u.ap)("$true",{shift:-2});return(0,h.jsx)(ep,{__scopePopover:e||eR,componentName:"Tooltip",disableRemoveScroll:!0,disableFocusScope:!0,...!t.unstyled&&{padding:o},ref:n,...t})})),ek=a.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e;return(0,h.jsx)(ev,{__scopePopper:n||eR,componentName:"Tooltip",ref:t,...r})}),eC=a.forwardRef(function(e,t){let{children:n,delay:i,restMs:s=typeof i>"u"?500:"number"==typeof i?i:0,onOpenChange:c,focus:f,open:d,disableAutoCloseOnScroll:p,__scopeTooltip:m,...g}=e,y=a.useRef(null),[b,v]=a.useState(!1),{delay:x,setCurrentId:j}=(0,r.tj)(),P=i??x,[w,R]=(0,eo.T)({prop:d,defaultProp:!1,onChange:c}),_=e.groupId,k=(0,o.z)(e=>{e&&j(_),R(e)});a.useEffect(()=>{if(!w||p||typeof document>"u")return;let e=()=>{R(!1)};return document.documentElement.addEventListener("scroll",e),()=>{document.documentElement.removeEventListener("scroll",e)}},[w,p]);let C=a.useCallback(e=>{let t=(0,r.YF)({...e,open:w,onOpenChange:k}),{getReferenceProps:n,getFloatingProps:o}=(0,r.NI)([(0,r.XI)(t.context,{delay:P,restMs:s}),(0,r.KK)(t.context,f),(0,r.qs)(t.context,{role:"tooltip"}),(0,r.bQ)(t.context),(0,r.Qu)(t.context,{id:_})]);return{...t,open:w,getReferenceProps:n,getFloatingProps:o}},[_,P,w,s,f?JSON.stringify(f):0]),O=a.useCallback(()=>v(!0),[]),S=a.useCallback(()=>v(!1),[]),E=a.useId(),A=e.unstyled?null:(0,u.ap)("$true",{shift:-2,bounds:[0]});return(0,h.jsx)(l.Provider,{value:C,children:(0,h.jsx)(Z,{__scopePopper:m||eR,size:A?.key,allowFlip:!0,stayInFrame:!0,...g,children:(0,h.jsx)(eu.Provider,{contentId:E,triggerRef:y,sheetBreakpoint:!1,open:w,scope:m||eR,onOpenChange:R,onOpenToggle:eA,hasCustomAnchor:b,onCustomAnchorAdd:O,onCustomAnchorRemove:S,children:n})})})}),eO=a.forwardRef(function(e,t){let{__scopeTooltip:n,...r}=e;return(0,h.jsx)(ed,{...r,__scopePopover:n||eR,ref:t})}),eS=a.forwardRef(function(e,t){let{__scopeTooltip:n,...r}=e;return(0,h.jsx)(ef,{...r,__scopePopover:n||eR,ref:t})}),eE=(0,c.$e)(eC,{Anchor:eS,Arrow:ek,Content:e_,Trigger:eO}),eA=()=>{}},5737:function(e,t,n){n.d(t,{e:function(){return m}});var r=n(281),o=n(4975),i=n(2026),a=n(7445),l=n.n(a),s=n(1213),u=s.Z?window.location.href:"";class c{constructor(){this._eventCallbacks={}}_dispatchEvent(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{e(...n)})}addEventListener(e,t){var n=this;return n._eventCallbacks[e]||(n._eventCallbacks[e]=[t]),n._eventCallbacks[e].push(t),{remove(){var r=n._eventCallbacks[e].filter(e=>e.toString()!==t.toString());n._eventCallbacks[e]=r}}}removeEventListener(e,t){console.error("Linking.removeEventListener('"+e+"', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `Linking.addEventListener`.");var n=this._eventCallbacks[e].filter(e=>e.toString()!==t.toString());this._eventCallbacks[e]=n}canOpenURL(){return Promise.resolve(!0)}getInitialURL(){return Promise.resolve(u)}openURL(e,t){1==arguments.length&&(t="_blank");try{return f(e,t),this._dispatchEvent("onOpen",e),Promise.resolve()}catch(e){return Promise.reject(e)}}_validateURL(e){l()("string"==typeof e,"Invalid URL: should be a string. Was: "+e),l()(e,"Invalid URL: cannot be empty")}}var f=(e,t)=>{if(s.Z){var n=new URL(e,window.location).toString();0===n.indexOf("tel:")?window.location=n:window.open(n,t,"noopener")}},d=new c,p=n(2281);let h=(0,o.z)(i.J,{name:"Anchor",tag:"a",accessibilityRole:"link"}),m=h.styleable(({href:e,target:t,...n},o)=>(0,p.jsx)(h,{...n,...r.$L?{href:e,target:t}:{onPress:t=>{n.onPress?.(t),void 0!==e&&d.openURL(e)}},ref:o}))}}]); \ No newline at end of file diff --git a/_next/static/chunks/946-a8fc9ef4b57da2f1.js b/_next/static/chunks/946-a8fc9ef4b57da2f1.js new file mode 100644 index 0000000000000000000000000000000000000000..262b00e40b313ad2c407b7007a283275504cd36e --- /dev/null +++ b/_next/static/chunks/946-a8fc9ef4b57da2f1.js @@ -0,0 +1,16 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[946],{1957:function(e,t,r){"use strict";r.d(t,{J:function(){return l}});var n=r(2265),i=r(2989),o=r(7470),a=r(2281);let s=e=>{let{color:t="black",size:r=24,...n}=e;return(0,a.jsx)(i.ny,{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:(0,a.jsx)(i.y$,{d:"M20 6 9 17l-5-5",stroke:t})})};s.displayName="Check";let l=(0,n.memo)((0,o.H)(s))},1569:function(e,t,r){"use strict";r.d(t,{_:function(){return l}});var n=r(2265),i=r(2989),o=r(7470),a=r(2281);let s=e=>{let{color:t="black",size:r=24,...n}=e;return(0,a.jsx)(i.ny,{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:(0,a.jsx)(i.y$,{d:"m6 9 6 6 6-6",stroke:t})})};s.displayName="ChevronDown";let l=(0,n.memo)((0,o.H)(s))},1378:function(e,t,r){"use strict";r.d(t,{K:function(){return l}});var n=r(2265),i=r(2989),o=r(7470),a=r(2281);let s=e=>{let{color:t="black",size:r=24,...n}=e;return(0,a.jsx)(i.ny,{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:(0,a.jsx)(i.y$,{d:"m18 15-6-6-6 6",stroke:t})})};s.displayName="ChevronUp";let l=(0,n.memo)((0,o.H)(s))},6916:function(e,t,r){"use strict";r.d(t,{l:function(){return l}});var n=r(2265),i=r(2989),o=r(7470),a=r(2281);let s=e=>{let{color:t="black",size:r=24,...n}=e;return(0,a.jsxs)(i.ny,{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[(0,a.jsx)(i.y$,{d:"m5 8 6 6",stroke:t}),(0,a.jsx)(i.y$,{d:"m4 14 6-6 2-3",stroke:t}),(0,a.jsx)(i.y$,{d:"M2 5h12",stroke:t}),(0,a.jsx)(i.y$,{d:"M7 2h1",stroke:t}),(0,a.jsx)(i.y$,{d:"m22 22-5-10-5 10",stroke:t}),(0,a.jsx)(i.y$,{d:"M14 18h6",stroke:t})]})};s.displayName="Languages";let l=(0,n.memo)((0,o.H)(s))},7746:function(e,t,r){"use strict";r.r(t),r.d(t,{InferenceSession:function(){return y},Tensor:function(){return m},env:function(){return l},registerBackend:function(){return o}});let n={},i=[],o=(e,t,r)=>{if(t&&"function"==typeof t.init&&"function"==typeof t.createSessionHandler){let o=n[e];if(void 0===o)n[e]={backend:t,priority:r};else if(o.priority>r)return;else if(o.priority===r&&o.backend!==t)throw Error(`cannot register backend "${e}" using priority ${r}`);if(r>=0){let t=i.indexOf(e);-1!==t&&i.splice(t,1);for(let t=0;t{let t=0===e.length?i:e,r=[];for(let e of t){let t=n[e];if(t){if(t.initialized)return t.backend;if(t.aborted)continue;let n=!!t.initPromise;try{return n||(t.initPromise=t.backend.init()),await t.initPromise,t.initialized=!0,t.backend}catch(i){n||r.push({name:e,err:i}),t.aborted=!0}finally{delete t.initPromise}}}throw Error(`no available backend found. ERR: ${r.map(e=>`[${e.name}] ${e.err}`).join(", ")}`)};class s{constructor(){this.wasm={},this.webgl={},this.logLevelInternal="warning"}set logLevel(e){if(void 0!==e){if("string"!=typeof e||-1===["verbose","info","warning","error","fatal"].indexOf(e))throw Error(`Unsupported logging level: ${e}`);this.logLevelInternal=e}}get logLevel(){return this.logLevelInternal}}let l=new s,u="undefined"!=typeof BigInt64Array&&"function"==typeof BigInt64Array.from,h="undefined"!=typeof BigUint64Array&&"function"==typeof BigUint64Array.from,c=new Map([["float32",Float32Array],["uint8",Uint8Array],["int8",Int8Array],["uint16",Uint16Array],["int16",Int16Array],["int32",Int32Array],["bool",Uint8Array],["float64",Float64Array],["uint32",Uint32Array]]),f=new Map([[Float32Array,"float32"],[Uint8Array,"uint8"],[Int8Array,"int8"],[Uint16Array,"uint16"],[Int16Array,"int16"],[Int32Array,"int32"],[Float64Array,"float64"],[Uint32Array,"uint32"]]);u&&(c.set("int64",BigInt64Array),f.set(BigInt64Array,"int64")),h&&(c.set("uint64",BigUint64Array),f.set(BigUint64Array,"uint64"));let d=e=>{let t=1;for(let r=0;r{let i=document.createElement("canvas"),o=i.getContext("2d");if(!e||!o)return n();let a=new Image;a.crossOrigin="Anonymous",a.src=e,a.onload=()=>{i.width=a.width,i.height=a.height,o.drawImage(a,0,0,i.width,i.height);let e=o.getImageData(0,0,i.width,i.height);if(void 0!==t){if(void 0!==t.height&&t.height!==i.height)throw Error("Image input config height doesn't match ImageBitmap height");if(s.height=i.height,void 0!==t.width&&t.width!==i.width)throw Error("Image input config width doesn't match ImageBitmap width");s.width=i.width}else s.height=i.height,s.width=i.width;r(p.bufferToTensor(e.data,s))}});else throw Error("Input data provided is not supported - aborted tensor creation");if(void 0!==r)return p.bufferToTensor(r,s);throw Error("Input data provided is not supported - aborted tensor creation")}toImageData(e){var t,r;let n;let i=document.createElement("canvas").getContext("2d");if(null!=i){let o=this.dims[3],a=this.dims[2],s=this.dims[1],l=void 0!==e&&void 0!==e.format?e.format:"RGB",u=void 0!==e&&(null===(t=e.norm)||void 0===t?void 0:t.mean)!==void 0?e.norm.mean:255,h=void 0!==e&&(null===(r=e.norm)||void 0===r?void 0:r.bias)!==void 0?e.norm.bias:0,c=a*o;if(void 0!==e){if(void 0!==e.height&&e.height!==a)throw Error("Image output config height doesn't match tensor height");if(void 0!==e.width&&e.width!==o)throw Error("Image output config width doesn't match tensor width");if(void 0!==e.format&&4===s&&"RGBA"!==e.format||3===s&&"RGB"!==e.format&&"BGR"!==e.format)throw Error("Tensor format doesn't match input tensor dims")}let f=0,d=1,p=2,m=3,g=0,y=c,w=2*c,_=-1;"RGBA"===l?(g=0,y=c,w=2*c,_=3*c):"RGB"===l?(g=0,y=c,w=2*c):"RBG"===l&&(g=0,w=c,y=2*c),n=i.createImageData(o,a);for(let e=0;e=e.byteLength)throw RangeError(`'byteOffset' is out of range [0, ${e.byteLength}).`);if(s=e.byteLength-a,"number"==typeof r){if(!Number.isSafeInteger(s=r))throw RangeError("'byteLength' must be an integer.");if(s<=0||a+s>e.byteLength)throw RangeError(`'byteLength' is out of range (0, ${e.byteLength-a}].`);if("object"==typeof n&&null!==n)o=n;else if(void 0!==n)throw TypeError("'options' must be an object.")}else if(void 0!==r)throw TypeError("'byteLength' must be a number.")}else if(void 0!==t)throw TypeError("'options' must be an object.");i=new Uint8Array(e,a,s)}else throw TypeError("Unexpected argument[0]: must be 'path' or 'buffer'.");let s=(o.executionProviders||[]).map(e=>"string"==typeof e?e:e.name),l=await a(s);return new g(await l.createSessionHandler(i,o))}startProfiling(){this.handler.startProfiling()}endProfiling(){this.handler.endProfiling()}get inputNames(){return this.handler.inputNames}get outputNames(){return this.handler.outputNames}}let y=g},8738:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),h=0,c=s>0?a-4:a;for(r=0;r>16&255,u[h++]=t>>8&255,u[h++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[h++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[h++]=t>>8&255,u[h++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},9109:function(e,t,r){"use strict";/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */var n=r(8738),i=r(6868),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return h(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|p(e,t),n=a(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(I(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return c(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(I(e,ArrayBuffer)||e&&I(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(I(e,SharedArrayBuffer)||e&&I(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);var i=function(e){if(s.isBuffer(e)){var t,r=0|d(e.length),n=a(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function h(e){return u(e),a(e<0?0:0|d(e))}function c(e){for(var t=e.length<0?0:0|d(e.length),r=a(t),n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return S(e).length;default:if(i)return n?-1:C(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:w(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):w(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function w(e,t,r,n,i){var o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var h=-1;for(o=r;os&&(r=s-l),o=r;o>=0;o--){for(var c=!0,f=0;f239?4:u>223?3:u>191?2:1;if(i+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(h=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(h=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(h=l)}null===h?(h=65533,c=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=c}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function b(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function x(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function E(e,t,r,n,o){return t=+t,r>>>=0,o||x(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function k(e,t,r,n,o){return t=+t,r>>>=0,o||x(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return h(e)},s.allocUnsafeSlow=function(e){return h(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),I(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);in.length?s.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else if(s.isBuffer(o))o.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tr&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,l=Math.min(o,a),u=this.slice(n,i),h=e.slice(t,r),c=0;c>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,h,c,f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var d=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a>8,i.push(r%256),i.push(n);return i}(e,this.length-h),this,h,c);default:if(d)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||v(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||v(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||v(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||v(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||v(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||v(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||v(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||v(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;b(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;b(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);b(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);b(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return E(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return E(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function S(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,r,n){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function I(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var M=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},6868:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,l=(1<>1,h=-7,c=r?i-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;h>0;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=u}return(d?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,l,u=8*o-i-1,h=(1<>1,f=23===i?5960464477539062e-23:0,d=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+c>=1?t+=f/l:t+=f*Math.pow(2,1-c),t*l>=2&&(a++,l/=2),a+c>=h?(s=0,a=h):a+c>=1?(s=(t*l-1)*Math.pow(2,i),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},8464:function(e,t,r){!function(){var t={452:function(e){"use strict";e.exports=r(6405)}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,i),a=!1}finally{a&&delete n[e]}return o.exports}i.ab="//";var o={};!function(){var e,t=(e=i(452))&&"object"==typeof e&&"default"in e?e.default:e,r=/https?|ftp|gopher|file/;function n(e){"string"==typeof e&&(e=y(e));var n,i,o,a,s,l,u,h,c,f=(i=(n=e).auth,o=n.hostname,a=n.protocol||"",s=n.pathname||"",l=n.hash||"",u=n.query||"",h=!1,i=i?encodeURIComponent(i).replace(/%3A/i,":")+"@":"",n.host?h=i+n.host:o&&(h=i+(~o.indexOf(":")?"["+o+"]":o),n.port&&(h+=":"+n.port)),u&&"object"==typeof u&&(u=t.encode(u)),c=n.search||u&&"?"+u||"",a&&":"!==a.substr(-1)&&(a+=":"),n.slashes||(!a||r.test(a))&&!1!==h?(h="//"+(h||""),s&&"/"!==s[0]&&(s="/"+s)):h||(h=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),{protocol:a,host:h,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:c=c.replace("#","%23"),hash:l});return""+f.protocol+f.host+f.pathname+f.search+f.hash}var a="http://",s=a+"w.w",l=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,u=/https?|ftp|gopher|file/;function h(e,t){var r="string"==typeof e?y(e):e;e="object"==typeof e?n(e):e;var i=y(t),o="";r.protocol&&!r.slashes&&(o=r.protocol,e=e.replace(r.protocol,""),o+="/"===t[0]||"/"===e[0]?"/":""),o&&i.protocol&&(o="",i.slashes||(o=i.protocol,t=t.replace(i.protocol,"")));var h=e.match(l);h&&!i.protocol&&(e=e.substr((o=h[1]+(h[2]||"")).length),/^\/\/[^/]/.test(t)&&(o=o.slice(0,-1)));var c=new URL(e,s+"/"),f=new URL(t,c).toString().replace(s,""),d=i.protocol||r.protocol;return d+=r.slashes||i.slashes?"//":"",!o&&d?f=f.replace(a,d):o&&(f=f.replace(a,"")),u.test(f)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==f.slice(-1)||(f=f.slice(0,-1)),o&&(f=o+("/"===f[0]?f.substr(1):f)),f}function c(){}c.prototype.parse=y,c.prototype.format=n,c.prototype.resolve=h,c.prototype.resolveObject=h;var f=/^https?|ftp|gopher|file/,d=/^(.*?)([#?].*)/,p=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,m=/^([a-z0-9.+-]*:)?\/\/\/*/i,g=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function y(e,r,i){if(void 0===r&&(r=!1),void 0===i&&(i=!1),e&&"object"==typeof e&&e instanceof c)return e;var o=(e=e.trim()).match(d);e=o?o[1].replace(/\\/g,"/")+o[2]:e.replace(/\\/g,"/"),g.test(e)&&"/"!==e.slice(-1)&&(e+="/");var a=!/(^javascript)/.test(e)&&e.match(p),l=m.test(e),u="";a&&(f.test(a[1])||(u=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(l=!1,f.test(a[1])?(u=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(u=a[1],e="/"+a[3]));var h,y=(o?o[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),w=y&&y[1],_=new c,v="",b="";try{h=new URL(e)}catch(t){v=t,u||i||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(b="/",e=e.substr(1));try{h=new URL(e,s)}catch(e){return _.protocol=u,_.href=u,_}}_.slashes=l&&!b,_.host="w.w"===h.host?"":h.host,_.hostname="w.w"===h.hostname?"":h.hostname.replace(/(\[|\])/g,""),_.protocol=v?u||null:h.protocol,_.search=h.search.replace(/\\/g,"%5C"),_.hash=h.hash.replace(/\\/g,"%5C");var x=e.split("#");!_.search&&~x[0].indexOf("?")&&(_.search="?"),_.hash||""!==x[1]||(_.hash="#"),_.query=r?t.decode(h.search.substr(1)):_.search.substr(1),_.pathname=b+(a?h.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):h.pathname),"about:"===_.protocol&&"blank"===_.pathname&&(_.protocol="",_.pathname=""),v&&"/"!==e[0]&&(_.pathname=_.pathname.substr(1)),u&&!f.test(u)&&"/"!==e.slice(-1)&&"/"===_.pathname&&(_.pathname=""),_.path=_.pathname+_.search,_.auth=[h.username,h.password].map(decodeURIComponent).filter(Boolean).join(":"),_.port=h.port,w&&!_.host.endsWith(w)&&(_.host+=w,_.port=w.slice(1)),_.href=b?""+_.pathname+_.search+_.hash:n(_);var E=/^(file)/.test(_.href)?["host","hostname"]:[];return Object.keys(_).forEach(function(e){~E.indexOf(e)||(_[e]=_[e]||null)}),_}o.parse=y,o.format=n,o.resolve=h,o.resolveObject=function(e,t){return y(h(e,t))},o.Url=c}(),e.exports=o}()},6405:function(e){!function(){"use strict";var t={815:function(e){e.exports=function(e,r,n,i){r=r||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(r);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var u=0;u=0?(h=p.substr(0,m),c=p.substr(m+1)):(h=p,c=""),f=decodeURIComponent(h),d=decodeURIComponent(c),Object.prototype.hasOwnProperty.call(o,f))?t(o[f])?o[f].push(d):o[f]=[o[f],d]:o[f]=d}return o};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,a,s){return(o=o||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?n(i(e),function(i){var s=encodeURIComponent(t(i))+a;return r(e[i])?n(e[i],function(e){return s+encodeURIComponent(t(e))}).join(o):s+encodeURIComponent(t(e[i]))}).join(o):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n=",n.ComparisonBinaryOperator],["==",n.ComparisonBinaryOperator],["!=",n.ComparisonBinaryOperator],["<",n.ComparisonBinaryOperator],[">",n.ComparisonBinaryOperator],["+",n.AdditiveBinaryOperator],["-",n.AdditiveBinaryOperator],["*",n.MultiplicativeBinaryOperator],["/",n.MultiplicativeBinaryOperator],["%",n.MultiplicativeBinaryOperator],["=",n.Equals]],u=new Map([["n","\n"],["t"," "],["r","\r"],["b","\b"],["f","\f"],["v","\v"],["'","'"],['"','"'],["\\","\\"]]),h=class{type="Statement"},c=class extends h{constructor(e){super(),this.body=e}type="Program"},f=class extends h{constructor(e,t,r){super(),this.test=e,this.body=t,this.alternate=r}type="If"},d=class extends h{constructor(e,t,r){super(),this.loopvar=e,this.iterable=t,this.body=r}type="For"},p=class extends h{constructor(e,t){super(),this.assignee=e,this.value=t}type="Set"},m=class extends h{type="Expression"},g=class extends m{constructor(e,t,r){super(),this.object=e,this.property=t,this.computed=r}type="MemberExpression"},y=class extends m{constructor(e,t){super(),this.callee=e,this.args=t}type="CallExpression"},w=class extends m{constructor(e){super(),this.value=e}type="Identifier"},_=class extends m{constructor(e){super(),this.value=e}type="Literal"},v=class extends _{type="NumericLiteral"},b=class extends _{type="StringLiteral"},x=class extends _{type="BooleanLiteral"},E=class extends _{type="ArrayLiteral"},k=class extends _{type="TupleLiteral"},A=class extends _{type="ObjectLiteral"},C=class extends m{constructor(e,t,r){super(),this.operator=e,this.left=t,this.right=r}type="BinaryExpression"},S=class extends m{constructor(e,t){super(),this.operand=e,this.filter=t}type="FilterExpression"},z=class extends m{constructor(e,t,r){super(),this.operand=e,this.negate=t,this.test=r}type="TestExpression"},I=class extends m{constructor(e,t){super(),this.operator=e,this.argument=t}type="UnaryExpression"},M=class extends m{constructor(e,t,r){super(),this.start=e,this.stop=t,this.step=r}type="SliceExpression"},T=class extends m{constructor(e,t){super(),this.key=e,this.value=t}type="KeywordArgumentExpression"};function O(e,t,r=1){void 0===t&&(t=e,e=0);let n=[];for(let i=e;i=0?(t=(t??=0)<0?Math.max(e.length+t,0):Math.min(t,e.length),r=(r??=e.length)<0?Math.max(e.length+r,0):Math.min(r,e.length)):(t=(t??=e.length-1)<0?Math.max(e.length+t,-1):Math.min(t,e.length-1),r=(r??=-1)<-1?Math.max(e.length+r,-1):Math.min(r,e.length-1));let o=[];for(let a=t;i*ae.toUpperCase())}var $=class{type="RuntimeValue";value;builtins=new Map;constructor(e){this.value=e}__bool__(){return new R(!!this.value)}},U=class extends ${type="NumericValue"},L=class extends ${type="StringValue";builtins=new Map([["upper",new V(()=>new L(this.value.toUpperCase()))],["lower",new V(()=>new L(this.value.toLowerCase()))],["strip",new V(()=>new L(this.value.trim()))],["title",new V(()=>new L(j(this.value)))],["length",new U(this.value.length)]])},R=class extends ${type="BooleanValue"},F=class extends ${type="ObjectValue";__bool__(){return new R(this.value.size>0)}builtins=new Map([["get",new V(([e,t])=>{if(!(e instanceof L))throw Error(`Object key must be a string: got ${e.type}`);return this.value.get(e.value)??t??new D})],["items",new V(()=>new N(Array.from(this.value.entries()).map(([e,t])=>new N([new L(e),t]))))]])},N=class extends ${type="ArrayValue";builtins=new Map([["length",new U(this.value.length)]]);__bool__(){return new R(this.value.length>0)}},P=class extends N{type="TupleValue"},V=class extends ${type="FunctionValue"},D=class extends ${type="NullValue"},q=class extends ${type="UndefinedValue"},H=class{constructor(e){this.parent=e}variables=new Map([["namespace",new V(e=>{if(0===e.length)return new F(new Map);if(1!==e.length||!(e[0]instanceof F))throw Error("`namespace` expects either zero arguments or a single object argument");return e[0]})]]);tests=new Map([["boolean",e=>"BooleanValue"===e.type],["callable",e=>e instanceof V],["odd",e=>{if("NumericValue"!==e.type)throw Error(`Cannot apply test "odd" to type: ${e.type}`);return e.value%2!=0}],["even",e=>{if("NumericValue"!==e.type)throw Error(`Cannot apply test "even" to type: ${e.type}`);return e.value%2==0}],["false",e=>"BooleanValue"===e.type&&!e.value],["true",e=>"BooleanValue"===e.type&&e.value],["number",e=>"NumericValue"===e.type],["integer",e=>"NumericValue"===e.type&&Number.isInteger(e.value)],["iterable",e=>e instanceof N||e instanceof L],["lower",e=>{let t=e.value;return"StringValue"===e.type&&t===t.toLowerCase()}],["upper",e=>{let t=e.value;return"StringValue"===e.type&&t===t.toUpperCase()}],["none",e=>"NullValue"===e.type],["defined",e=>"UndefinedValue"!==e.type],["undefined",e=>"UndefinedValue"===e.type],["equalto",(e,t)=>e.value===t.value]]);set(e,t){return this.declareVariable(e,function e(t){switch(typeof t){case"number":return new U(t);case"string":return new L(t);case"boolean":return new R(t);case"object":if(null===t)return new D;if(Array.isArray(t))return new N(t.map(e));return new F(new Map(Object.entries(t).map(([t,r])=>[t,e(r)])));case"function":return new V((r,n)=>e(t(...r.map(e=>e.value))??null));default:throw Error(`Cannot convert to runtime value: ${t}`)}}(t))}declareVariable(e,t){if(this.variables.has(e))throw SyntaxError(`Variable already declared: ${e}`);return this.variables.set(e,t),t}setVariable(e,t){return this.variables.set(e,t),t}resolve(e){if(this.variables.has(e))return this;if(this.parent)return this.parent.resolve(e);throw Error(`Unknown variable: ${e}`)}lookupVariable(e){try{return this.resolve(e).variables.get(e)??new q}catch{return new q}}},W=class{global;constructor(e){this.global=e??new H}run(e){return this.evaluate(e,this.global)}evaluateBinaryExpression(e,t){let r=this.evaluate(e.left,t);switch(e.operator.value){case"and":return r.__bool__().value?this.evaluate(e.right,t):r;case"or":return r.__bool__().value?r:this.evaluate(e.right,t)}let n=this.evaluate(e.right,t);switch(e.operator.value){case"==":return new R(r.value==n.value);case"!=":return new R(r.value!=n.value)}if(r instanceof q||n instanceof q)throw Error("Cannot perform operation on undefined values");if(r instanceof D||n instanceof D)throw Error("Cannot perform operation on null values");if(r instanceof U&&n instanceof U)switch(e.operator.value){case"+":return new U(r.value+n.value);case"-":return new U(r.value-n.value);case"*":return new U(r.value*n.value);case"/":return new U(r.value/n.value);case"%":return new U(r.value%n.value);case"<":return new R(r.value":return new R(r.value>n.value);case">=":return new R(r.value>=n.value);case"<=":return new R(r.value<=n.value)}else if(r instanceof N&&n instanceof N){if("+"===e.operator.value)return new N(r.value.concat(n.value))}else if(n instanceof N){let t=void 0!==n.value.find(e=>e.value===r.value);switch(e.operator.value){case"in":return new R(t);case"not in":return new R(!t)}}if((r instanceof L||n instanceof L)&&"+"===e.operator.value)return new L(r.value.toString()+n.value.toString());if(r instanceof L&&n instanceof L)switch(e.operator.value){case"in":return new R(n.value.includes(r.value));case"not in":return new R(!n.value.includes(r.value))}if(r instanceof L&&n instanceof F)switch(e.operator.value){case"in":return new R(n.value.has(r.value));case"not in":return new R(!n.value.has(r.value))}throw SyntaxError(`Unknown operator "${e.operator.value}" between ${r.type} and ${n.type}`)}evaluateFilterExpression(e,t){let r=this.evaluate(e.operand,t);if("Identifier"===e.filter.type){let t=e.filter;if(r instanceof N)switch(t.value){case"list":return r;case"first":return r.value[0];case"last":return r.value[r.value.length-1];case"length":return new U(r.value.length);case"reverse":return new N(r.value.reverse());case"sort":return new N(r.value.sort((e,t)=>{if(e.type!==t.type)throw Error(`Cannot compare different types: ${e.type} and ${t.type}`);switch(e.type){case"NumericValue":return e.value-t.value;case"StringValue":return e.value.localeCompare(t.value);default:throw Error(`Cannot compare type: ${e.type}`)}}));default:throw Error(`Unknown ArrayValue filter: ${t.value}`)}else if(r instanceof L)switch(t.value){case"length":return new U(r.value.length);case"upper":return new L(r.value.toUpperCase());case"lower":return new L(r.value.toLowerCase());case"title":return new L(j(r.value));case"capitalize":return new L(r.value.charAt(0).toUpperCase()+r.value.slice(1));case"trim":return new L(r.value.trim());default:throw Error(`Unknown StringValue filter: ${t.value}`)}else if(r instanceof U){if("abs"===t.value)return new U(Math.abs(r.value));throw Error(`Unknown NumericValue filter: ${t.value}`)}else if(r instanceof F)switch(t.value){case"items":return new N(Array.from(r.value.entries()).map(([e,t])=>new N([new L(e),t])));case"length":return new U(r.value.size);default:throw Error(`Unknown ObjectValue filter: ${t.value}`)}throw Error(`Cannot apply filter "${t.value}" to type: ${r.type}`)}if("CallExpression"===e.filter.type){let n=e.filter;if("Identifier"!==n.callee.type)throw Error(`Unknown filter: ${n.callee.type}`);let i=n.callee.value;if(r instanceof N){if("selectattr"===i){let e;if(r.value.some(e=>!(e instanceof F)))throw Error("`selectattr` can only be applied to array of objects");if(n.args.some(e=>"StringLiteral"!==e.type))throw Error("arguments of `selectattr` must be strings");let[i,o,a]=n.args.map(e=>this.evaluate(e,t));if(o){let r=t.tests.get(o.value);if(!r)throw Error(`Unknown test: ${o.value}`);e=r}else e=(...e)=>e[0].__bool__().value;return new N(r.value.filter(t=>{let r=t.value.get(i.value);return!!r&&e(r,a)}))}throw Error(`Unknown ArrayValue filter: ${i}`)}throw Error(`Cannot apply filter "${i}" to type: ${r.type}`)}throw Error(`Unknown filter: ${e.filter.type}`)}evaluateTestExpression(e,t){let r=this.evaluate(e.operand,t),n=t.tests.get(e.test.value);if(!n)throw Error(`Unknown test: ${e.test.value}`);let i=n(r);return new R(e.negate?!i:i)}evaluateUnaryExpression(e,t){let r=this.evaluate(e.argument,t);if("not"===e.operator.value)return new R(!r.value);throw SyntaxError(`Unknown operator: ${e.operator.value}`)}evalProgram(e,t){return this.evaluateBlock(e.body,t)}evaluateBlock(e,t){let r="";for(let n of e){let e=this.evaluate(n,t);"NullValue"!==e.type&&"UndefinedValue"!==e.type&&(r+=e.value)}return new L(r)}evaluateIdentifier(e,t){return t.lookupVariable(e.value)}evaluateCallExpression(e,t){let r=[],n=new Map;for(let i of e.args)"KeywordArgumentExpression"===i.type?n.set(i.key.value,this.evaluate(i.value,t)):r.push(this.evaluate(i,t));n.size>0&&r.push(new F(n));let i=this.evaluate(e.callee,t);if("FunctionValue"!==i.type)throw Error(`Cannot call something that is not a function: got ${i.type}`);return i.value(r,t)}evaluateSliceExpression(e,t,r){if(!(e instanceof N||e instanceof L))throw Error("Slice object must be an array or string");let n=this.evaluate(t.start,r),i=this.evaluate(t.stop,r),o=this.evaluate(t.step,r);if(!(n instanceof U||n instanceof q))throw Error("Slice start must be numeric or undefined");if(!(i instanceof U||i instanceof q))throw Error("Slice stop must be numeric or undefined");if(!(o instanceof U||o instanceof q))throw Error("Slice step must be numeric or undefined");return e instanceof N?new N(B(e.value,n.value,i.value,o.value)):new L(B(Array.from(e.value),n.value,i.value,o.value).join(""))}evaluateMemberExpression(e,t){let r,n;let i=this.evaluate(e.object,t);if(e.computed){if("SliceExpression"===e.property.type)return this.evaluateSliceExpression(i,e.property,t);r=this.evaluate(e.property,t)}else r=new L(e.property.value);if(i instanceof F){if(!(r instanceof L))throw Error(`Cannot access property with non-string: got ${r.type}`);n=i.value.get(r.value)??i.builtins.get(r.value)}else if(i instanceof N||i instanceof L){if(r instanceof U)n=i.value.at(r.value),i instanceof L&&(n=new L(i.value.at(r.value)));else if(r instanceof L)n=i.builtins.get(r.value);else throw Error(`Cannot access property with non-string/non-number: got ${r.type}`)}else{if(!(r instanceof L))throw Error(`Cannot access property with non-string: got ${r.type}`);n=i.builtins.get(r.value)}return n instanceof $?n:new q}evaluateSet(e,t){let r=this.evaluate(e.value,t);if("Identifier"===e.assignee.type){let n=e.assignee.value;t.setVariable(n,r)}else if("MemberExpression"===e.assignee.type){let n=e.assignee,i=this.evaluate(n.object,t);if(!(i instanceof F))throw Error("Cannot assign to member of non-object");if("Identifier"!==n.property.type)throw Error("Cannot assign to member with non-identifier property");i.value.set(n.property.value,r)}else throw Error(`Invalid LHS inside assignment expression: ${JSON.stringify(e.assignee)}`);return new D}evaluateIf(e,t){let r=this.evaluate(e.test,t);return this.evaluateBlock(r.__bool__().value?e.body:e.alternate,t)}evaluateFor(e,t){let r=new H(t),n=this.evaluate(e.iterable,r);if(!(n instanceof N))throw Error(`Expected iterable type in for loop: got ${n.type}`);let i="";for(let t=0;t0?n.value[t-1]:new q],["nextitem",ta.value.length?"few":"many"} items to unpack`);for(let e=0;ethis.evaluate(e,t)));case"TupleLiteral":return new P(e.value.map(e=>this.evaluate(e,t)));case"ObjectLiteral":{let r=new Map;for(let[n,i]of e.value){let e=this.evaluate(n,t);if(!(e instanceof L))throw Error(`Object keys must be strings: got ${e.type}`);r.set(e.value,this.evaluate(i,t))}return new F(r)}case"Identifier":return this.evaluateIdentifier(e,t);case"CallExpression":return this.evaluateCallExpression(e,t);case"MemberExpression":return this.evaluateMemberExpression(e,t);case"UnaryExpression":return this.evaluateUnaryExpression(e,t);case"BinaryExpression":return this.evaluateBinaryExpression(e,t);case"FilterExpression":return this.evaluateFilterExpression(e,t);case"TestExpression":return this.evaluateTestExpression(e,t);default:throw SyntaxError(`Unknown node type: ${e.type}`)}}},G=class{parsed;constructor(e){let t=function(e,t={}){let r=[],h=function(e,t={}){return e.endsWith("\n")&&(e=e.slice(0,-1)),e=e.replace(/{#.*?#}/gs,"{##}"),t.lstrip_blocks&&(e=e.replace(/^[ \t]*({[#%])/gm,"$1")),t.trim_blocks&&(e=e.replace(/([#%]})\n/g,"$1")),e.replace(/{##}/g,"").replace(/-%}\s*/g,"%}").replace(/\s*{%-/g,"{%").replace(/-}}\s*/g,"}}").replace(/\s*{{-/g,"{{")}(e,t),c=0,f=e=>{let t="";for(;e(h[c]);){if("\\"===h[c]){if(++c>=h.length)throw SyntaxError("Unexpected end of input");let e=h[c++],r=u.get(e);if(void 0===r)throw SyntaxError(`Unexpected escaped character: ${e}`);t+=r;continue}if(t+=h[c++],c>=h.length)throw SyntaxError("Unexpected end of input")}return t};e:for(;c0){r.push(new o(e,n.Text));continue}}f(e=>/\s/.test(e));let t=h[c];if("-"===t||"+"===t){let e=r.at(-1)?.type;if(e===n.Text||void 0===e)throw SyntaxError(`Unexpected character: ${t}`);switch(e){case n.Identifier:case n.NumericLiteral:case n.BooleanLiteral:case n.StringLiteral:case n.CloseParen:case n.CloseSquareBracket:break;default:{++c;let e=f(s);r.push(new o(`${t}${e}`,e.length>0?n.NumericLiteral:n.UnaryOperator));continue}}}for(let[e,t]of l)if(h.slice(c,c+e.length)===e){r.push(new o(e,t)),c+=e.length;continue e}if("'"===t||'"'===t){++c;let e=f(e=>e!==t);r.push(new o(e,n.StringLiteral)),++c;continue}if(s(t)){let e=f(s);r.push(new o(e,n.NumericLiteral));continue}if(a(t)){let e=f(a),t=Object.hasOwn(i,e)?i[e]:n.Identifier;t===n.In&&r.at(-1)?.type===n.Not?(r.pop(),r.push(new o("not in",n.NotIn))):r.push(new o(e,t));continue}throw SyntaxError(`Unexpected character: ${t}`)}return r}(e,{lstrip_blocks:!0,trim_blocks:!0});this.parsed=function(e){let t=new c([]),r=0;function i(t,n){let i=e[r++];if(!i||i.type!==t)throw Error(`Parser Error: ${n}. ${i.type} !== ${t}.`);return i}function o(...t){return r+t.length<=e.length&&t.every((t,n)=>t===e[r+n].type)}function a(e=!1){let t=e?j:s,i=[t()],a=o(n.Comma);for(;a&&(++r,i.push(t()),o(n.Comma)););return a?new k(i):i[0]}function s(){return function(){let e=l();if(o(n.If)){++r;let t=l();return i(n.Else,"Expected else token"),new f(t,[e],[l()])}return e}()}function l(){let t=u();for(;o(n.Or);){let n=e[r];++r,t=new C(n,t,u())}return t}function u(){let t=h();for(;o(n.And);){let n=e[r];++r,t=new C(n,t,h())}return t}function h(){let t;for(;o(n.Not);){let n=e[r];++r,t=new I(n,h())}return t??function(){let t=m();for(;o(n.ComparisonBinaryOperator)||o(n.In)||o(n.NotIn);){let n=e[r];++r,t=new C(n,t,m())}return t}()}function m(){let t=O();for(;o(n.AdditiveBinaryOperator);){let n=e[r];++r,t=new C(n,t,O())}return t}function _(e){let t=new y(e,function(){i(n.OpenParen,"Expected opening parenthesis for arguments list");let e=function(){let e=[];for(;!o(n.CloseParen);){let t=s();if(o(n.Equals)){if(++r,!(t instanceof w))throw SyntaxError("Expected identifier for keyword argument");t=new T(t,s())}e.push(t),o(n.Comma)&&++r}return e}();return i(n.CloseParen,"Expected closing parenthesis for arguments list"),e}());return o(n.OpenParen)&&(t=_(t)),t}function O(){let t=B();for(;o(n.MultiplicativeBinaryOperator);){let n=e[r];++r,t=new C(n,t,B())}return t}function B(){let t=function(){let t=function(){let t=function(){let t=j();for(;o(n.Dot)||o(n.OpenSquareBracket);){let a;let l=e[r];++r;let u=l.type!==n.Dot;if(u)a=function(){let e=[],t=!1;for(;!o(n.CloseSquareBracket);)o(n.Colon)?(e.push(void 0),++r,t=!0):(e.push(s()),o(n.Colon)&&(++r,t=!0));if(0===e.length)throw SyntaxError("Expected at least one argument for member/slice expression");if(t){if(e.length>3)throw SyntaxError("Expected 0-3 arguments for slice expression");return new M(...e)}return e[0]}(),i(n.CloseSquareBracket,"Expected closing square bracket");else if("Identifier"!==(a=j()).type)throw SyntaxError("Expected identifier following dot operator");t=new g(t,a,u)}return t}();return o(n.OpenParen)?_(t):t}();for(;o(n.Pipe);){++r;let e=j();if(!(e instanceof w))throw SyntaxError("Expected identifier for the filter");o(n.OpenParen)&&(e=_(e)),t=new S(t,e)}return t}();for(;o(n.Is);){++r;let e=o(n.Not);e&&++r;let i=j();if(i instanceof x&&(i=new w(i.value.toString())),!(i instanceof w))throw SyntaxError("Expected identifier for the test");t=new z(t,e,i)}return t}function j(){let t=e[r];switch(t.type){case n.NumericLiteral:return++r,new v(Number(t.value));case n.StringLiteral:return++r,new b(t.value);case n.BooleanLiteral:return++r,new x("true"===t.value);case n.Identifier:return++r,new w(t.value);case n.OpenParen:{++r;let t=a();if(e[r].type!==n.CloseParen)throw SyntaxError(`Expected closing parenthesis, got ${e[r].type} instead`);return++r,t}case n.OpenSquareBracket:{++r;let e=[];for(;!o(n.CloseSquareBracket);)e.push(s()),o(n.Comma)&&++r;return++r,new E(e)}case n.OpenCurlyBracket:{++r;let e=new Map;for(;!o(n.CloseCurlyBracket);){let t=s();i(n.Colon,"Expected colon between key and value in object literal");let a=s();e.set(t,a),o(n.Comma)&&++r}return++r,new A(e)}default:throw SyntaxError(`Unexpected token: ${t.type}`)}}for(;rt!==e[r+n].type)}(n.OpenStatement,n.EndFor);)u.push(t());return new d(o,l,u)}(),i(n.OpenStatement,"Expected {% token"),i(n.EndFor,"Expected endfor token"),i(n.CloseStatement,"Expected %} token");break;default:throw SyntaxError(`Unknown statement type: ${e[r].type}`)}return l}();case n.OpenExpression:return function(){i(n.OpenExpression,"Expected opening expression token");let e=s();return i(n.CloseExpression,"Expected closing expression token"),e}();default:throw SyntaxError(`Unexpected token type: ${e[r].type}`)}}());return t}(t)}render(e){let t=new H;for(let[r,n]of(t.set("false",!1),t.set("true",!0),t.set("raise_exception",e=>{throw Error(e)}),t.set("range",O),Object.entries(e)))t.set(r,n);return new W(t).run(this.parsed).value}}},8030:function(e,t,r){"use strict";r.d(t,{o:function(){return d}});var n=r(4975),i=r(1386),o=r(8411),a=r(5377),s=r(2117),l=r(2265),u=r(5275),h=r(2281);function c({colors:e,locations:t,start:r,end:n,...i}){let[{height:o,width:a},c]=l.useState({height:1,width:1}),f=l.useMemo(()=>(function(e,t,r,n,i=1,o=1){let a=e.map((e,r)=>{let n=(0,s.ut)(e);if(t&&t[r]){let e=100*Math.max(0,Math.min(1,t[r]));return`${n} ${e}%`}return n});return`linear-gradient(${function(e,t,r,n){let i,o;let[a,s]=(i=[0,0],Array.isArray(r)&&(i=[null!=r[0]?r[0]:0,null!=r[1]?r[1]:0]),o=[0,1],Array.isArray(n)&&(o=[null!=n[0]?n[0]:0,null!=n[1]?n[1]:1]),[i,o]);return a[0]*=e,s[0]*=e,a[1]*=t,s[1]*=t,90+180*Math.atan2(s[1]-a[1],s[0]-a[0])/Math.PI}(i,o,r,n)}deg, ${a.join(", ")})`})(e,t,r,n,a,o),[e,t,r,n,a,o]);return(0,h.jsx)(u.Z,{...i,style:[i.style,{backgroundImage:f}],onLayout:e=>{let{width:t,height:r}=e.nativeEvent.layout;c(e=>t!==e.width||r!==e.height?{height:r,width:t}:e),i.onLayout&&i.onLayout(e)}})}let f=(0,n.z)(a.FA,{name:"LinearGradient",overflow:"hidden",position:"relative"}),d=f.styleable((e,t)=>{let r=(0,i.wN)(e),{start:n,end:a,colors:s,locations:l,children:u,...d}=r,m=(0,o.Fg)(),g=r.colors?.map(e=>m[e]?.get("web")??e)||[];return(0,h.jsxs)(f,{ref:t,...d,children:[(0,h.jsx)(c,{start:n,end:a,colors:g,locations:l,style:p}),u]})}),p={position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:0}},663:function(e,t,r){"use strict";r.d(t,{Ex:function(){return k}});var n=r(4975),i=r(2202),o=r(301),a=r(6748),s=r(8338),l=r(1092),u=r(2265),h=r(2281),c=r(357);let f="Progress",[d,p]=(0,o.b)(f),[m,g]=d(f),y="ProgressIndicator",w=(0,n.z)(l.K,{name:y,variants:{unstyled:{false:{height:"100%",width:"100%",backgrounded:!0}}},defaultVariants:{unstyled:"1"===c.env.TAMAGUI_HEADLESS}}),_=w.styleable(function(e,t){let{__scopeProgress:r,...n}=e,i=g(y,r),o=i.max-(i.value??0),a=-(0===i.width?300:i.width)*(o/100);return(0,h.jsx)(w,{"data-state":b(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,x:a,width:i.width,...!e.unstyled&&{animateOnly:["transform"],opacity:0===i.width?0:1},...n,ref:t})});function v(e,t){return`${Math.round(e/t*100)}%`}function b(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function x(e){return"number"==typeof e}let E=(0,n.z)(l.K,{name:"Progress",variants:{unstyled:{false:{borderRadius:1e5,overflow:"hidden",backgrounded:!0}},size:{"...size":e=>{let t=Math.round(.25*(0,i.Ve)((0,a.ap)(e)));return{height:t,minWidth:20*(0,i.Ve)(t),width:"100%"}}}},defaultVariants:{unstyled:"1"===c.env.TAMAGUI_HEADLESS}}),k=(0,s.$e)(E.styleable(function(e,t){let{__scopeProgress:r,value:n,max:i,getValueLabel:o=v,size:a="$true",...s}=e,l=x(i)&&!Number.isNaN(i)&&i>0?i:100,c=x(n)&&!Number.isNaN(n)&&n<=l&&n>=0?n:null,f=x(c)?o(c,l):void 0,[d,p]=u.useState(0);return(0,h.jsx)(m,{scope:r,value:c,max:l,width:d,children:(0,h.jsx)(E,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":x(c)?c:void 0,"aria-valuetext":f,role:"progressbar","data-state":b(c,l),"data-value":c??void 0,"data-max":l,...!0!==s.unstyled&&{size:a},...s,onLayout:e=>{p(e.nativeEvent.layout.width),s.onLayout?.(e)},ref:t})})}),{Indicator:_})},312:function(e,t,r){"use strict";r.d(t,{Ph:function(){return eK}});var n=r(3370),i=r(9046),o=r(281),a=r(4975),s=r(2202),l=r(9087),u=r(6748),h=r(8338),c=r(3924),f=r(8970),d=r(1676),p=r(1092),m=r(5377),g=r(2026),y=r(2875),w=r(1386),_=r(5986),v=r(5902),b=r(2281),x=r(357);let E=(0,a.z)(p.K,{name:"ListItem",tag:"li",variants:{unstyled:{false:{size:"$true",alignItems:"center",justifyContent:"space-between",flexWrap:"nowrap",width:"100%",borderColor:"$borderColor",maxWidth:"100%",overflow:"hidden",flexDirection:"row",backgroundColor:"$background"}},size:{"...size":(e,{tokens:t})=>({minHeight:t.size[e],paddingHorizontal:t.space[e],paddingVertical:(0,u.Pj)(t.space[e],{shift:-4})})},active:{true:{hoverStyle:{backgroundColor:"$background"}}},disabled:{true:{opacity:.5,pointerEvents:"none"}}},defaultVariants:{unstyled:"1"===x.env.TAMAGUI_HEADLESS}}),k=(0,a.z)(g.J,{name:"ListItemText",variants:{unstyled:{false:{color:"$color",size:"$true",flexGrow:1,flexShrink:1,ellipse:!0,cursor:"default"}}},defaultVariants:{unstyled:"1"===x.env.TAMAGUI_HEADLESS}}),A=(0,a.z)(k,{name:"ListItemSubtitle",variants:{unstyled:{false:{opacity:.6,maxWidth:"100%",color:"$color"}},size:{"...size":(e,t)=>{let r=(0,u.ap)(e,{shift:-1,excludeHalfSteps:!0});return(0,f.H)(r.key,t)}}},defaultVariants:{unstyled:"1"===x.env.TAMAGUI_HEADLESS}}),C=(0,a.z)(k,{name:"ListItemTitle"}),S=(e,{Text:t=k,Subtitle:r=A,Title:n=C}={Text:k,Subtitle:A,Title:C})=>{let i=(0,w.wN)(e),{children:o,icon:a,iconAfter:l,noTextWrap:u,theme:h,space:f,spaceFlex:p,scaleIcon:g=1,scaleSpace:x=1,unstyled:E=!1,subTitle:S,title:z,color:I,fontWeight:M,fontSize:T,fontFamily:O,letterSpacing:B,textAlign:j,ellipse:$,...U}=i,L=i.size||"$true",R=(0,c.yv)(L)*g,[F,N]=[a,l].map((0,d.Zw)({size:R,color:I})),P=(0,s.Ve)((0,_.lz)().space[i.space]??R)*x,V=(0,y.k)(t,{color:I,fontWeight:M,fontSize:T,fontFamily:O,letterSpacing:B,textAlign:j,ellipse:$,children:o});return{props:{...U,children:(0,b.jsxs)(b.Fragment,{children:[F?(0,b.jsxs)(b.Fragment,{children:[F,(0,b.jsx)(v.LZ,{size:P})]}):null,z||S?(0,b.jsxs)(m.FA,{flex:1,children:["all"===u?z:(0,b.jsx)(n,{size:L,children:z}),S?(0,b.jsx)(b.Fragment,{children:"string"==typeof S&&"all"!==u?(0,b.jsx)(r,{unstyled:E,size:L,children:S}):S}):null,V]}):V,N?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(v.LZ,{size:P}),N]}):null]})}}},z=E.styleable(function(e,t){let{props:r}=S(e);return(0,b.jsx)(E,{ref:t,...r})}),I=(0,h.$e)(z,{Text:k,Subtitle:A});var M=r(4624),T=r(6505),O=r(4077),B=r(1510),j=r(1217),$=r(3277),U=r(2265);let L={leading:!1},R="Select",F="SelectViewport";var N=r(301);let[P,V]=(0,N.b)(R),[D,q]=P(R),[H,W]=(0,N.b)(R),[G,X]=P(R),K=({__scopeSelect:e,context:t,itemContext:r,children:n})=>(0,b.jsx)(D,{isInSheet:!0,scope:e,...t,children:(0,b.jsx)(G,{scope:e,...r,children:n})});var Z=r(4243),J=r(4582),Y=r(1130),Q=r(6616);let ee=()=>!o.$L||!!(0,Q.SZ)()&&o.wT;var et=r(9018),er=r(9097);let en=e=>{let t=(0,er.GS)();return!!e&&(!0===e||!!e&&t[e])},ei=e=>{let t=en(e.sheetBreakpoint);return!1!==e.open&&t},eo="SelectContent";var ea=r(8143),es=r(4674),el=r(4887);let eu=e=>{let{__scopeSelect:t,children:r,open:n=!1,selectedIndexRef:i,listContentRef:a}=e,s=q("SelectSheetImpl",t),u=X("SelectSheetImpl",t),{setActiveIndex:h,selectedIndex:c,activeIndex:f,forceUpdate:d}=s,{setOpen:p,setSelectedIndex:m}=u,[g,y]=U.useState(0),w=ee(),_=U.useRef([]),v=U.useRef(null),x=U.useRef(null),E=U.useRef(null),k=U.useRef(!1),A=U.useRef(!0),C=U.useRef(),S=U.useRef({isMouseOutside:!1,isTyping:!1}),[z,I]=U.useState(!1),[M,T]=U.useState(!1),[O,B]=U.useState(0),[j,$]=U.useState(!1),L=U.useRef({});(0,o.LI)(()=>{queueMicrotask(()=>{n||(y(0),T(!1),h(null),I(!1))})},[n,h]),o.$L&&o.C5&&(0,o.LI)(()=>{if(!n)return;let e=e=>{S.current.isMouseOutside&&p(!1)};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}},[n]);let{x:R,y:F,strategy:N,context:P,refs:V,update:H}=(0,Z.YF)({open:n,onOpenChange:p,placement:"bottom-start",whileElementsMounted:ea.Me,middleware:[(0,es.dp)({apply({rects:{reference:{width:e}}}){Object.assign(L.current,{minWidth:e+8}),V.floating.current&&Object.assign(V.floating.current.style,L.current)}}),(0,Z.aN)({listRef:_,overflowRef:v,index:c,offset:O,onFallbackChange:T,padding:10,minItemsVisible:w?10:4,referenceOverflowThreshold:20}),(0,es.cv)({crossAxis:-5})]}),W=V.floating,K=n&&g>8,J=n&&W.current&&g(window.addEventListener("resize",H),n&&H(),()=>window.removeEventListener("resize",H)),[H,n]);let Y=(0,l.z)(e=>(n?h:m)(e)),Q=[(0,Z.eS)(P,{event:"mousedown",keyboardHandlers:!1}),(0,Z.bQ)(P,{outsidePress:!1}),(0,Z.qs)(P,{role:"listbox"}),(0,Z.Rz)(P,{enabled:!M&&(J||K),onChange:B,overflowRef:v,scrollRef:V.floating}),(0,Z.c0)(P,{listRef:_,activeIndex:f||0,selectedIndex:c,onNavigate:h,scrollItemIntoView:!1}),(0,Z.ox)(P,{listRef:a,onMatch:Y,selectedIndex:c,activeIndex:f,onTypingChange:e=>{S.current.isTyping=e}})],et=(0,Z.NI)(U.useMemo(()=>Q,Q)),er=U.useMemo(()=>({...et,getReferenceProps:()=>et.getReferenceProps({ref:V.reference,className:"SelectTrigger",onKeyDown(e){"Enter"!==e.key&&"Space"!==e.code&&(" "!==e.key||S.current.isTyping)||(e.preventDefault(),p(!0))}}),getFloatingProps:e=>et.getFloatingProps({ref:V.floating,className:"Select",...e,style:{position:N,top:F??"",left:R??"",outline:0,scrollbarWidth:"none",...L.current,...e?.style},onPointerEnter(){I(!1),S.current.isMouseOutside=!1},onPointerLeave(){S.current.isMouseOutside=!0},onPointerMove(){S.current.isMouseOutside=!1,I(!1)},onKeyDown(){I(!0)},onContextMenu(e){e.preventDefault()},onScroll(e){(0,el.flushSync)(()=>{y(e.currentTarget.scrollTop)})}})}),[V.reference.current,R,F,V.floating.current,et]);return(0,o.LI)(()=>{if(n)return C.current=setTimeout(()=>{k.current=!0},300),()=>{clearTimeout(C.current)};k.current=!1,A.current=!0,B(0),T(!1),$(!1)},[n]),(0,o.LI)(()=>{!n&&S.current.isMouseOutside&&(S.current.isMouseOutside=!1)},[n]),(0,o.LI)(()=>{function e(e){let t=e.target;V.floating.current?.contains(t)||x.current?.contains(t)||E.current?.contains(t)||(p(!1),I(!1))}if(n)return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[n,V,p]),U.useEffect(()=>{n&&z&&null!=f&&_.current[f]?.scrollIntoView({block:"nearest"}),y(V.floating.current?.scrollTop??0)},[n,V,z,f]),U.useEffect(()=>{n&&M&&null!=c&&_.current[c]?.scrollIntoView({block:"nearest"})},[n,M,c]),(0,o.LI)(()=>{V.floating.current&&M&&(V.floating.current.style.maxHeight="")},[V,M]),(0,b.jsx)(D,{scope:t,...s,setScrollTop:y,setInnerOffset:B,fallback:M,floatingContext:P,activeIndex:f,canScrollDown:!!J,canScrollUp:!!K,controlledScrolling:z,blockSelection:j,upArrowRef:x,downArrowRef:E,update:H,children:(0,b.jsx)(G,{scope:t,...u,allowMouseUpRef:A,allowSelectRef:k,dataRef:P.dataRef,interactions:er,listRef:_,selectTimeoutRef:C,children:r})})},eh="SelectItem",[ec,ef]=P(eh),ed=E.styleable(function(e,t){let{__scopeSelect:r,value:n,disabled:a=!1,textValue:s,index:l,...u}=e,{props:h}=S({...!e.unstyled&&{ellipse:!0},...u}),{setSelectedIndex:c,listRef:f,setOpen:d,onChange:p,activeIndexSubscribe:m,valueSubscribe:g,allowMouseUpRef:y,allowSelectRef:w,setValueAtIndex:_,selectTimeoutRef:v,dataRef:x,interactions:k,shouldRenderWebNative:A,size:C,onActiveChange:z,initialValue:I}=X(eh,r),[M,T]=U.useState(I===n);U.useEffect(()=>m(e=>{l===e&&(z(n,l),f?.current[l]?.focus())}),[l]),U.useEffect(()=>g(e=>{T(e===n)}),[n]);let O=U.useId(),B=(0,i.ex)(t,e=>{o.$L&&e instanceof HTMLElement&&f&&(f.current[l]=e)});function j(){c(l),p(n),d(!1)}(0,o.LI)(()=>{_(l,n)},[l,_,n]);let $=U.useMemo(()=>k?k.getItemProps({onTouchMove(){w.current=!0,y.current=!1},onTouchEnd(){w.current=!1,y.current=!0},onKeyDown(e){"Enter"!==e.key&&(" "!==e.key||x?.current.typing)?w.current=!0:(e.preventDefault(),j())},onClick(){w.current&&j()},onMouseUp(){y.current&&(w.current&&j(),clearTimeout(v.current),v.current=setTimeout(()=>{w.current=!0}))}}):{onPress:j},[j]);return(0,b.jsx)(ec,{scope:r,value:n,textId:O||"",isSelected:M,children:A?(0,b.jsx)("option",{value:n,children:e.children}):(0,b.jsx)(E,{tag:"div",componentName:eh,ref:B,"aria-labelledby":O,"aria-selected":M,"data-state":M?"active":"inactive","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...!e.unstyled&&{backgrounded:!0,pressTheme:!0,hoverTheme:!0,focusTheme:!0,cursor:"default",size:C,outlineOffset:-.5,focusVisibleStyle:{outlineColor:"$outlineColor",outlineWidth:1,outlineStyle:"solid"}},...h,...$})})},{disableTheme:!0});var ep=r(357);let em="SelectItemText",eg=(0,a.z)(g.J,{name:em,variants:{unstyled:{false:{userSelect:"none",color:"$color",ellipse:!0}}},defaultVariants:{unstyled:"1"===ep.env.TAMAGUI_HEADLESS}}),ey=eg.styleable(function(e,t){let{__scopeSelect:r,className:n,...o}=e,a=q(em,r),s=X(em,r),l=U.useRef(null),u=(0,i.ex)(t,l),h=ef(em,r),c=U.useRef();return c.current=(0,b.jsx)(eg,{className:n,size:s.size,id:h.textId,...o,ref:u}),U.useEffect(()=>{s.initialValue!==h.value||a.selectedIndex||a.setSelectedItem(c.current)},[]),U.useEffect(()=>s.valueSubscribe(e=>{e===h.value&&a.setSelectedItem(c.current)}),[h.value]),s.shouldRenderWebNative?(0,b.jsx)(b.Fragment,{children:e.children}):(0,b.jsx)(b.Fragment,{children:c.current})}),ew="SelectScrollUpButton",e_=U.forwardRef((e,t)=>(0,b.jsx)(ex,{componentName:ew,...e,dir:"up",ref:t}));e_.displayName=ew;let ev="SelectScrollDownButton",eb=U.forwardRef((e,t)=>(0,b.jsx)(ex,{componentName:ev,...e,dir:"down",ref:t}));eb.displayName=ev;let ex=U.memo(U.forwardRef((e,t)=>{let{__scopeSelect:r,dir:n,componentName:o,...a}=e,{forceUpdate:s,open:l,fallback:u,setScrollTop:h,setInnerOffset:c,...f}=q(o,r),d=f.floatingContext?.refs.floating,p=U.useRef("idle"),g=f["down"===n?"canScrollDown":"canScrollUp"],y=U.useRef(),{x:w,y:_,refs:v,strategy:x}=(0,Z.YF)({open:l&&g,strategy:"fixed",elements:{reference:d?.current},placement:"up"===n?"top":"bottom",middleware:[(0,es.cv)(({rects:e})=>-e.floating.height)],whileElementsMounted:(...e)=>(0,ea.Me)(...e,{animationFrame:!0})}),E=(0,i.ex)(t,v.setFloating);if(!g)return null;let k=e=>{d&&(u?d.current&&(d.current.scrollTop-=e,(0,el.flushSync)(()=>h(d.current?.scrollTop??0))):(0,el.flushSync)(()=>c(t=>t-e)))};return(0,b.jsx)(m.FA,{ref:E,componentName:o,"aria-hidden":!0,...a,zIndex:1e3,position:x,left:w||0,top:_||0,width:`calc(${(d?.current?.offsetWidth??0)-2}px)`,onPointerEnter:()=>{p.current="active";let e=Date.now();cancelAnimationFrame(y.current),y.current=requestAnimationFrame(function t(){let r=d?.current;if(r){let i=Date.now(),o=i-e;e=i;let a=o/2,s="up"===n?r.scrollTop:r.scrollHeight-r.clientHeight-r.scrollTop,l="up"===n?r.scrollTop-a>0:r.scrollTop+a{p.current="idle",cancelAnimationFrame(y.current)}})})),eE="SelectTrigger",ek=!o.$L||!o.C5||window.matchMedia("(pointer:coarse)").matches,eA=U.forwardRef(function(e,t){let{__scopeSelect:r,disabled:n=!1,unstyled:o=!1,...a}=e,s=q(eE,r),l=X(eE,r),u=(0,i.ex)(t,s.floatingContext?.refs.setReference);return l.shouldRenderWebNative?null:(0,b.jsx)(I,{componentName:eE,unstyled:o,tag:"button",type:"button",id:l.id,...!o&&{backgrounded:!0,radiused:!0,hoverTheme:!0,pressTheme:!0,focusable:!0,focusVisibleStyle:{outlineStyle:"solid",outlineWidth:2,outlineColor:"$outlineColor"},borderWidth:1,size:l.size},"aria-expanded":s.open,"aria-autocomplete":"none",dir:s.dir,disabled:n,"data-disabled":n?"":void 0,...a,ref:u,...l.interactions?{...l.interactions.getReferenceProps(),...ek?{onPress(){l.setOpen(!s.open)}}:{onMouseDown(){s.floatingContext?.update(),l.setOpen(!s.open)}}}:{onPress(){l.setOpen(!s.open)}}})});var eC=r(126),eS=r(357);let ez=(0,a.z)(p.K,{name:F,variants:{unstyled:{false:{size:"$2",backgroundColor:"$background",elevate:!0,bordered:!0,userSelect:"none",outlineWidth:0}},size:{"...size":(e,{tokens:t})=>({borderRadius:t.radius[e]??e})}},defaultVariants:{unstyled:"1"===eS.env.TAMAGUI_HEADLESS}}),eI=ez.styleable(function(e,t){let{__scopeSelect:r,children:n,disableScroll:a,...s}=e,l=q(F,r),u=X(F,r),h=en(l.sheetBreakpoint);if((0,o.LI)(()=>{l.update&&l.update()},[h]),u.shouldRenderWebNative)return(0,b.jsx)(b.Fragment,{children:n});if(h||!o.$L)return(0,b.jsx)(M.b5,{hostName:`${l.scopeKey}SheetContents`,children:(0,b.jsx)(K,{__scopeSelect:r,itemContext:u,context:l,children:n})});if(!u.interactions)return null;let{style:c,className:f,...d}=u.interactions.getFloatingProps(),p=(0,i.FE)(t,l.floatingContext?.refs.setFloating);return(0,b.jsxs)(b.Fragment,{children:[!a&&!e.unstyled&&(0,b.jsx)("style",{dangerouslySetInnerHTML:{__html:eM}}),(0,b.jsx)(eC.M,{children:l.open?(0,b.jsx)(Z.wD,{context:l.floatingContext,modal:!1,children:(0,b.jsx)(ez,{size:u.size,role:"presentation",...s,...c,...d,...!e.unstyled&&{overflowY:a?void 0:c.overflow??"auto"},ref:p,children:n},"select-viewport")}):null}),!l.open&&(0,b.jsx)("div",{style:{display:"none"},children:e.children})]})}),eM=` +.is_SelectViewport { + scrollbar-width: none; + -webkit-overflow-scrolling: touch; + overscroll-behavior: contain; +} + +.is_SelectViewport::-webkit-scrollbar{ + display:none +} +`,eT="SelectValue",eO=(0,a.z)(g.J,{name:eT,userSelect:"none"}),eB=eO.styleable(function({__scopeSelect:e,children:t,placeholder:r,...n},o){let a=q(eT,e),s=X(eT,e),l=(0,i.ex)(o,a.onValueNodeChange),u=t??a.selectedItem,h=null==a.value||""===a.value?r??u:u;return(0,b.jsx)(eO,{...!n.unstyled&&{size:s.size,ellipse:!0,pointerEvents:"none"},ref:l,...n,children:function e(t){return U.Children.map(t,t=>{if(t){if(t.type?.staticConfig?.componentName===em)return t.props.children;if(t.props?.children)return e(t.props.children)}return t})}(h)})}),ej=(0,a.z)(m.sL,{name:"SelectIcon","aria-hidden":!0,children:(0,b.jsx)(j.n,{children:"▼"})}),e$="SelectItemIndicator",eU=(0,a.z)(m.sL,{name:em}),eL=U.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=X(e$,r),o=ef(e$,r);return i.shouldRenderWebNative?null:o.isSelected?(0,b.jsx)(eU,{"aria-hidden":!0,...n,ref:t}):null});eL.displayName=e$;let eR="SelectGroup",[eF,eN]=P(eR),eP=(0,a.z)(m.FA,{name:eR,width:"100%"}),eV=(0,a.z)(g.J,{tag:"select",backgroundColor:"$background",borderColor:"$borderColor",hoverStyle:{backgroundColor:"$backgroundHover"}}),eD=(0,a.z)(p.K,{name:"NativeSelect",bordered:!0,userSelect:"none",outlineWidth:0,paddingRight:10,variants:{size:{"...size":(e,t)=>{let{tokens:r}=t,n=(0,s.Ve)(r.space[e]);return{borderRadius:r.radius[e]??e,minHeight:r.size[e],paddingRight:n+20,paddingLeft:n,paddingVertical:(0,u.Pj)(e,{shift:-3})}}}},defaultVariants:{size:"$2"}}),eq=U.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=U.useId(),o=q(eR,r),a=X(eR,r),s=a.size??"$true",l=U.useRef(null),u=a.shouldRenderWebNative?(0,b.jsx)(eD,{asChild:!0,size:s,value:o.value,id:a.id,children:(0,b.jsx)(eV,{onChange:e=>{a.onChange(e.currentTarget.value)},size:s,ref:l,style:{color:"var(--color)",appearance:"none"},children:e.children})}):(0,b.jsx)(eP,{role:"group","aria-labelledby":i,...n,ref:t});return(0,b.jsx)(eF,{scope:r,id:i||"",children:u})});eq.displayName=eR;let eH="SelectLabel",eW=U.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=X(eH,r),o=eN(eH,r);return i.shouldRenderWebNative?null:(0,b.jsx)(I,{tag:"div",componentName:eH,fontWeight:"800",id:o.id,size:i.size,...n,ref:t})});eW.displayName=eH,(0,a.z)(T.Z,{name:"SelectSeparator"});let eG=e=>{let t=q("SelectSheetController",e.__scopeSelect),r=ei(t),n=en(t.sheetBreakpoint),i=(0,l.X)(r);return(0,b.jsx)(O.f,{onOpenChange:t=>{i()&&e.onOpenChange(t)},open:t.open,hidden:!1===n,children:e.children})},eX=e=>(0,b.jsx)(b.Fragment,{children:e.children}),eK=(0,h.$e)(e=>{let{__scopeSelect:t,native:r,children:i,open:a,defaultOpen:s,onOpenChange:u,value:h,defaultValue:c,onValueChange:f,disablePreventBodyScroll:d,size:p="$true",onActiveChange:m,dir:g,id:y}=e,w=U.useId(),_=t?Object.keys(t)[0]??w:w,{when:v,AdaptProvider:x}=(0,n.pV)({Contents:U.useCallback(()=>(0,b.jsx)(M.$2,{name:`${_}SheetContents`}),[_])}),E=en(v)||!o.$L?eX:eu,k=U.useReducer(()=>({}),{})[1],[A,C]=U.useState(null),[S,z]=(0,$.T)({prop:a,defaultProp:s||!1,onChange:u}),[I,T]=(0,$.T)({prop:h,defaultProp:c||"",onChange:f,transition:!0});U.useEffect(()=>{S&&j(I)},[S]),U.useEffect(()=>{j(I)},[I]);let[O,B]=U.useState(0),[j,R]=eZ(),[F,N]=eZ(),P=U.useRef(null),V=U.useRef(null),q=U.useRef([]),[H,W]=U.useState(0),[X,K]=U.useState(null);(0,o.LI)(()=>{P.current=H,V.current=O});let Z=o.$L&&(!0===r||"web"===r||Array.isArray(r)&&r.includes("web")),J=function(e,t,r=L,n=[e]){let i=(0,U.useRef)(null);return(0,U.useEffect)(()=>()=>{i.current?.cancel()},[]),(0,U.useMemo)(()=>(i.current=function(e,t,r){let n,i=!1;function o(){i=!1;let o=arguments;r&&!n&&e.apply(this,o),clearTimeout(n),n=setTimeout(()=>{n=null,r||i||e.apply(this,o),i=!1},t)}return o.cancel=()=>{i=!0},o}(e,1,r.leading),i.current),[r.leading,...n])}(e=>{B(t=>t!==e&&"number"==typeof e&&V.current!==e?(F(e),e):null)},0,{},[]);return(0,b.jsx)(x,{children:(0,b.jsx)(G,{scope:t,initialValue:U.useMemo(()=>I,[S]),size:p,activeIndexSubscribe:N,valueSubscribe:R,setOpen:z,id:y,onChange:U.useCallback(e=>{T(e),j(e)},[]),onActiveChange:(0,l.z)((...e)=>{m?.(...e)}),setSelectedIndex:W,setValueAtIndex:U.useCallback((e,t)=>{q.current[e]=t},[]),shouldRenderWebNative:Z,children:(0,b.jsx)(D,{scope:t,disablePreventBodyScroll:d,dir:g,blockSelection:!1,fallback:!1,selectedItem:A,setSelectedItem:C,forceUpdate:k,valueNode:X,onValueNodeChange:K,scopeKey:_,sheetBreakpoint:v,activeIndex:O,selectedIndex:H,setActiveIndex:J,value:I,open:S,native:r,children:(0,b.jsx)(eG,{onOpenChange:z,__scopeSelect:t,children:Z?i:(0,b.jsx)(E,{activeIndexRef:V,listContentRef:q,selectedIndexRef:P,...e,open:S,value:I,children:i})})})})})},{Adapt:n.Tr,Content:({children:e,__scopeSelect:t,zIndex:r=1e3,...n})=>{let i=q(eo,t),o=X(eo,t),a=(0,J.C)(),s=ei(i),l=(0,b.jsx)(Y.Q,{forceClassName:!0,name:a,children:e}),u=ee(),h=(0,U.useMemo)(()=>({zIndex:r,pointerEvents:i.open?"auto":"none"}),[i.open]);return o.shouldRenderWebNative?(0,b.jsx)(b.Fragment,{children:e}):s?i.open?(0,b.jsx)(b.Fragment,{children:l}):null:(0,b.jsx)(Z.ll,{children:(0,b.jsx)(Z.y0,{style:h,lockScroll:!i.disablePreventBodyScroll&&!!i.open&&!u,children:(0,b.jsx)(et.M,{loop:!0,enabled:!!i.open,trapped:!0,...n,children:l})})})},Group:eq,Icon:ej,Item:ed,ItemIndicator:eL,ItemText:ey,Label:eW,ScrollDownButton:eb,ScrollUpButton:e_,Trigger:eA,Value:eB,Viewport:eI,Sheet:B.yo.Controlled});function eZ(){let e=U.useRef();return e.current||(e.current=new Set),[t=>{e.current.forEach(e=>e(t))},U.useCallback(t=>(e.current.add(t),()=>{e.current.delete(t)}),[])]}eK.displayName=R},967:function(e,t,r){"use strict";let n;r.d(t,{ONNX:function(){return n},p:function(){return u}});var i,o,a=r(495),s=r(6388),l=r(357);let u=["wasm"];void 0!==l&&l?.release?.name==="node"?(n=a??(i||(i=r.t(a,2))),u.unshift("cpu")):(n=s??(o||(o=r.t(s,2))),"undefined"!=typeof navigator&&/iP(hone|od|ad).+16_4.+AppleWebKit/.test(navigator.userAgent)&&(n.env.wasm.simd=!1))},16:function(e,t,r){"use strict";r.d(t,{z:function(){return a}});var n=r(911);async function i(e,t){return await (0,n.yM)(e,"config.json",!0,t)}class o{constructor(e){this.model_type=null,this.is_encoder_decoder=!1,Object.assign(this,e)}static async from_pretrained(e,{progress_callback:t=null,config:r=null,cache_dir:n=null,local_files_only:o=!1,revision:a="main"}={}){return new this(r??await i(e,{progress_callback:t,config:r,cache_dir:n,local_files_only:o,revision:a}))}}class a{static async from_pretrained(...e){return o.from_pretrained(...e)}}},851:function(e,t,r){"use strict";r.d(t,{O:function(){return g}});var n=r(8386),i=r(3342),o=r(8464);let{env:a}=r(967).ONNX,s="2.17.2",l="undefined"!=typeof self&&"caches"in self,u=!y(n),h=!y(i),c=u&&h,f=c?i.dirname(i.dirname(o.fileURLToPath("file:///mnt/c/tools/projects/translator-tamagui/node_modules/@xenova/transformers/src/env.js"))):"./",d=c?i.join(f,"/.cache/"):null,p="/models/",m=c?i.join(f,p):p;a?.wasm&&(a.wasm.wasmPaths=c?i.join(f,"/dist/"):`https://cdn.jsdelivr.net/npm/@xenova/transformers@${s}/dist/`);let g={backends:{onnx:a,tfjs:{}},__dirname:f,version:s,allowRemoteModels:!0,remoteHost:"https://huggingface.co/",remotePathTemplate:"{model}/resolve/{revision}/",allowLocalModels:!0,localModelPath:m,useFS:u,useBrowserCache:l,useFSCache:u,cacheDir:d,useCustomCache:!1,customCache:null};function y(e){return 0===Object.keys(e).length}},9078:function(e,t,r){"use strict";let n,i,o;r.d(t,{qCb:function(){return h.qC},EUT:function(){return eJ}});var a=r(2018),s=r(9454),l=r(761),u=r(911),h=r(8709),c=r(2414),f=r(851),d=r(8741);let p="undefined"!=typeof self,m=p&&"DedicatedWorkerGlobalScope"===self.constructor.name;if(p)n=(e,t)=>{if(!self.OffscreenCanvas)throw Error("OffscreenCanvas not supported by this browser.");return new self.OffscreenCanvas(e,t)},o=self.createImageBitmap,i=self.ImageData;else if(d)o=async e=>{let t=(await e.metadata()).channels,{data:r,info:n}=await e.rotate().raw().toBuffer({resolveWithObject:!0}),i=new w(new Uint8ClampedArray(r),n.width,n.height,n.channels);return void 0!==t&&t!==n.channels&&i.convert(t),i};else throw Error("Unable to load image processing library.");let g={0:"nearest",1:"lanczos",2:"bilinear",3:"bicubic",4:"box",5:"hamming"},y=new Map([["png","image/png"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["gif","image/gif"]]);class w{constructor(e,t,r,n){this.data=e,this.width=t,this.height=r,this.channels=n}get size(){return[this.width,this.height]}static async read(e){if(e instanceof w)return e;if("string"==typeof e||e instanceof URL)return await this.fromURL(e);throw Error(`Unsupported input type: ${typeof e}`)}static async fromURL(e){let t=await (0,u.hn)(e);if(200!==t.status)throw Error(`Unable to read image from "${e}" (${t.status} ${t.statusText})`);let r=await t.blob();return this.fromBlob(r)}static async fromBlob(e){if(p){let t=await o(e),r=n(t.width,t.height).getContext("2d");return r.drawImage(t,0,0),new this(r.getImageData(0,0,t.width,t.height).data,t.width,t.height,4)}{let t=d(await e.arrayBuffer());return await o(t)}}static fromTensor(e,t="CHW"){if(3!==e.dims.length)throw Error(`Tensor should have 3 dimensions, but has ${e.dims.length} dimensions.`);if("CHW"===t)e=e.transpose(1,2,0);else if("HWC"===t);else throw Error(`Unsupported channel format: ${t}`);if(!(e.data instanceof Uint8ClampedArray||e.data instanceof Uint8Array))throw Error(`Unsupported tensor type: ${e.type}`);switch(e.dims[2]){case 1:case 2:case 3:case 4:return new w(e.data,e.dims[1],e.dims[0],e.dims[2]);default:throw Error(`Unsupported number of channels: ${e.dims[2]}`)}}grayscale(){if(1===this.channels)return this;let e=new Uint8ClampedArray(this.width*this.height*1);switch(this.channels){case 3:case 4:for(let t=0,r=0;t=0?l=r:h=-r,i>=0?u=i:c=-i,s.drawImage(a,l,u,e,t,h,c,e,t),new w(s.getImageData(0,0,e,t).data,e,t,4).convert(o)}{let n=this.toSharp();if(r>=0&&i>=0)n=n.extract({left:Math.floor(r),top:Math.floor(i),width:e,height:t});else if(r<=0&&i<=0){let o=Math.floor(-i),a=Math.floor(-r);n=n.extend({top:o,left:a,right:e-this.width-a,bottom:t-this.height-o})}else{let o=[0,0],a=0;i<0?(o[0]=Math.floor(-i),o[1]=t-this.height-o[0]):a=Math.floor(i);let s=[0,0],l=0;r<0?(s[0]=Math.floor(-r),s[1]=e-this.width-s[0]):l=Math.floor(r),n=n.extend({top:o[0],bottom:o[1],left:s[0],right:s[1]}).extract({left:l,top:a,width:e,height:t})}return await o(n)}}async toBlob(e="image/png",t=1){if(!p)throw Error("toBlob() is only supported in browser environments.");let r=this.toCanvas();return await r.convertToBlob({type:e,quality:t})}toTensor(e="CHW"){let t=new c.es("uint8",new Uint8Array(this.data),[this.height,this.width,this.channels]);if("HWC"===e);else if("CHW"===e)t=t.permute(2,0,1);else throw Error(`Unsupported channel format: ${e}`);return t}toCanvas(){if(!p)throw Error("toCanvas() is only supported in browser environments.");let e=this.clone().rgba(),t=n(e.width,e.height),r=new i(e.data,e.width,e.height);return t.getContext("2d").putImageData(r,0,0),t}_update(e,t,r,n=null){return this.data=e,this.width=t,this.height=r,null!==n&&(this.channels=n),this}clone(){return new w(this.data.slice(),this.width,this.height,this.channels)}convert(e){if(this.channels===e)return this;switch(e){case 1:this.grayscale();break;case 3:this.rgb();break;case 4:this.rgba();break;default:throw Error(`Conversion failed due to unsupported number of channels: ${this.channels}`)}return this}async save(e){if(p){if(m)throw Error("Unable to save an image from a Web Worker.");let t=e.split(".").pop().toLowerCase(),r=y.get(t)??"image/png",n=await this.toBlob(r),i=URL.createObjectURL(n),o=document.createElement("a");o.href=i,o.download=e,o.click(),o.remove()}else if(f.O.useFS){let t=this.toSharp();return await t.toFile(e)}else throw Error("Unable to save the image because filesystem is disabled in this environment.")}toSharp(){if(p)throw Error("toSharp() is only supported in server-side environments.");return d(this.data,{raw:{width:this.width,height:this.height,channels:this.channels}})}}async function _(e,t){let r;if("undefined"==typeof AudioContext)throw Error("Unable to load audio from path/URL since `AudioContext` is not available in your environment. Instead, audio data should be passed directly to the pipeline/processor. For more information and some example code, see https://huggingface.co/docs/transformers.js/guides/node-audio-processing.");let n=await (await (0,u.hn)(e)).arrayBuffer(),i=new AudioContext({sampleRate:t});void 0===t&&console.warn(`No sampling rate provided, using default of ${i.sampleRate}Hz.`);let o=await i.decodeAudioData(n);if(2===o.numberOfChannels){let e=Math.sqrt(2),t=o.getChannelData(0),n=o.getChannelData(1);r=new Float32Array(t.length);for(let i=0;i2595*Math.log10(1+e/700),kaldi:e=>1127*Math.log(1+e/700),slaney:(e,t=1e3,r=15,n=27/Math.log(6.4))=>e>=t?r+Math.log(e/t)*n:3*e/200};function x(e,t="htk"){let r=b[t];if(!r)throw Error('mel_scale should be one of "htk", "slaney" or "kaldi".');return"number"==typeof e?r(e):e.map(e=>r(e))}let E={htk:e=>700*(10**(e/2595)-1),kaldi:e=>700*(Math.exp(e/1127)-1),slaney:(e,t=1e3,r=15,n=Math.log(6.4)/27)=>e>=r?t*Math.exp(n*(e-r)):200*e/3};function k(e,t,r){let n=(t-e)/(r-1);return Float64Array.from({length:r},(t,r)=>e+n*r)}function A(e,t,r,n,i,o=null,a="htk",s=!1){let l;if(null!==o&&"slaney"!==o)throw Error('norm must be one of null or "slaney"');let u=k(x(r,a),x(n,a),t+2),h=function(e,t="htk"){let r=E[t];if(!r)throw Error('mel_scale should be one of "htk", "slaney" or "kaldi".');return"number"==typeof e?r(e):e.map(e=>r(e))}(u,a);if(s){let t=i/(2*e);l=x(Float64Array.from({length:e},(e,r)=>r*t),a),h=u}else l=k(0,Math.floor(i/2),e);let c=function(e,t){let r=Float64Array.from({length:t.length-1},(e,r)=>t[r+1]-t[r]),n=Array.from({length:e.length},()=>Array(t.length));for(let r=0;rArray(e.length));for(let t=0;ti)throw Error(`frame_length (${r}) may not be larger than fft_length (${i})`);if(x!==r)throw Error(`Length of the window (${x}) must equal frame_length (${r})`);if(n<=0)throw Error("hop_length must be greater than zero");if(null===o&&null!==f)throw Error("You have provided `mel_filters` but `power` is `None`. Mel spectrogram computation is not yet supported for complex-valued spectrogram. Specify `power` to fix this issue.");if(a){if("reflect"!==s)throw Error(`pad_mode="${s}" not implemented yet.`);let t=Math.floor((i-1)/2)+1;e=function(e,t,r){let n=new e.constructor(e.length+t+r),i=e.length-1;for(let r=0;rE?v&&(S=_):S=A=_);let z=new h.vw(i),I=new Float64Array(i),M=new Float64Array(z.outputBufferSize),T=Array(A);for(let i=0;i=1;--e)I[e]-=c*I[e-1];I[0]*=1-c}for(let e=0;eMath.pow(e,.85));break;default:throw Error(`Unknown window type ${t}.`)}if(r&&(o=o.subarray(0,e)),null===n)return o;if(e>n)throw Error(`Length of the window (${e}) may not be larger than frame_length (${n})`);return o}function I(e,t=.5,r=null,n=!1){let i=e.logits,o=e.pred_boxes,[a,s,l]=i.dims;if(null!==r&&r.length!==a)throw Error("Make sure that you pass in as many target sizes as the batch dimension of the logits");let u=[];for(let e=0;et&&o.push(e)}else{let e=(0,h.Fp)(i.data)[1];if(e===l-1)continue;o.push(e),r=(0,h.XA)(i.data)}for(let t of o){let n=d[e].data;n=function([e,t,r,n]){return[e-r/2,t-n/2,e+r/2,t+n/2]}(n),null!==a&&(n=n.map((e,t)=>e*a[(t+1)%2])),c.boxes.push(n),c.classes.push(t),c.scores.push(r[t])}}u.push(c)}return u}function M(e,t){if(!(e instanceof Float32Array||e instanceof Float64Array))throw Error(`${t} expects input to be a Float32Array or a Float64Array, but got ${e?.constructor?.name??typeof e} instead. If using the feature extractor directly, remember to use \`read_audio(url, sampling_rate)\` to obtain the raw audio data of the file/url.`)}function T(e,t,r=0,n=null){let i=e/t,o=(0,h.eT)(i)*t;return null!==n&&o>n&&(o=Math.floor(i)*t),oi?l=Math.floor(i*s/n):i>n&&(s=Math.floor(n*l/i)),await e.resize(l,s,{resample:r}))}async crop_margin(e,t=200){let r=e.clone().grayscale(),n=(0,h.VV)(r.data)[0],i=(0,h.Fp)(r.data)[0]-n;if(0===i)return e;let o=t/255,a=r.width,s=r.height,l=0,u=0;for(let e=0;ethis.preprocess(e)));return{pixel_values:(0,c.kn)(r.map(e=>e.pixel_values),0),original_sizes:r.map(e=>e.original_size),reshaped_input_sizes:r.map(e=>e.reshaped_input_size)}}}class $ extends j{post_process_semantic_segmentation(e,t=null){let r=e.logits,n=r.dims[0];if(null!==t&&t.length!==n)throw Error("Make sure that you pass in as many target sizes as the batch dimension of the logits");let i=[];for(let e=0;eu[r]&&(u[r]=t[r],l.data[r]=e)}let h=Array(o.dims[0]),f=l.data;for(let e=0;evoid 0!==e);i.push({segmentation:l,labels:d})}return i}}class U extends j{}class L extends U{}class R extends j{}class F extends j{}class N extends j{}class P extends j{}class V extends j{}class D extends j{constructor(e){super(e),this.crop_pct=this.config.crop_pct??.875}async resize(e){let t=this.size?.shortest_edge;if(void 0===t)throw Error("Size dictionary must contain 'shortest_edge' key.");if(t<384){let r=Math.floor(t/this.crop_pct),[n,i]=this.get_resize_output_image_size(e,{shortest_edge:r});e=await e.resize(n,i,{resample:this.resample}),e=await e.center_crop(t,t)}else e=await e.resize(t,t,{resample:this.resample});return e}}class q extends D{}class H extends j{}class W extends j{}class G extends j{constructor(e){super(e),this.include_top=this.config.include_top??!0,this.include_top&&(this.image_std=this.image_std.map(e=>e*e))}}class X extends j{}class K extends X{}class Z extends j{post_process_object_detection(...e){return I(...e)}}class J extends Z{}class Y extends j{}class Q extends j{}class ee extends j{pad_image(e,t,r,n={}){let[i,o,a]=t,s=this.image_mean;Array.isArray(this.image_mean)||(s=Array(a).fill(s));let l=this.image_std;Array.isArray(l)||(l=Array(a).fill(s));let u=s.map((e,t)=>-e/l[t]);return super.pad_image(e,t,r,{center:!0,constant_values:u,...n})}}class et extends ee{}class er extends j{async _call(e){let t=await super._call(e),r=[t.pixel_values.dims[0],64,64],n=new c.es("int64",new BigInt64Array(r.reduce((e,t)=>e*t)).fill(1n),r);return{...t,pixel_mask:n}}post_process_object_detection(...e){return I(...e)}remove_low_and_no_objects(e,t,r,n){let i=[],o=[],a=[];for(let s=0;sr&&(i.push(u),o.push(f),a.push(c))}return[i,o,a]}check_segment_validity(e,t,r,n=.5,i=.8){let o=[],a=0,s=0;for(let i=0;i=n&&++s;let l=a>0&&s>0;return l&&(l=a/s>i),[l,o]}compute_segments(e,t,r,n,i,o=null,a=null){let[s,l]=a??e[0].dims,u=new c.es("int32",new Int32Array(s*l),[s,l]),h=[];if(null!==a)for(let t=0;td[t]&&(f[t]=r,d[t]=e[r].data[t])}let p=0;for(let o=0;oe!==t.dims[r]))throw Error(`The first ${r.length} dimensions of 'input_points' and 'input_labels' must be the same.`);return new c.es("int64",e.flat(1/0).map(BigInt),r)}async _call(e,t=null,r=null){let n=await super._call(e);if(t&&(n.input_points=this.reshape_input_points(t,n.original_sizes,n.reshaped_input_sizes)),r){if(!n.input_points)throw Error("`input_points` must be provided if `input_labels` are provided.");n.input_labels=this.add_input_labels(r,n.input_points)}return n}post_process_masks(e,t,r,{mask_threshold:n=0,binarize:i=!0,pad_size:o=null}={}){let a=[],s=[(o=o??this.pad_size).height,o.width];for(let o=0;on&&(e[t]=1);r=new c.es("bool",e,r.dims)}f.push(r)}a.push((0,c.kn)(f))}return a}}class eo extends j{pad_image(e,t,r,n={}){let[i,o,a]=t;return super.pad_image(e,t,{width:o+(r-o%r)%r,height:i+(r-i%r)%r},{mode:"symmetric",center:!1,constant_values:-1,...n})}}class ea extends j{async _call(e,t){Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]);let r=await Promise.all(e.map(e=>this.preprocess(e))),n=await Promise.all(t.map(e=>this.preprocess(e,{do_normalize:!1,do_convert_rgb:!1,do_convert_grayscale:!0})));return{pixel_values:(0,c.kn)(r.map((e,t)=>(0,c.d3)([e.pixel_values,n[t].pixel_values],0)),0),original_sizes:r.map(e=>e.original_size),reshaped_input_sizes:r.map(e=>e.reshaped_input_size)}}}class es extends B{constructor(e){super(e),this.config.mel_filters??=A(Math.floor(1+this.config.n_fft/2),this.config.feature_size,0,8e3,this.config.sampling_rate,"slaney","slaney"),this.window=z(this.config.n_fft,"hann")}_extract_fbank_features(e){let{data:t,dims:r}=S(e,this.window,this.config.n_fft,this.config.hop_length,{power:2,mel_filters:this.config.mel_filters,log_mel:"log10",max_num_frames:this.config.nb_max_frames}),n=(0,h.Fp)(t)[0];for(let e=0;ethis.config.n_samples?(console.warn("Attempting to extract features for audio longer than 30 seconds. If using a pipeline to extract transcript from a long audio clip, remember to specify `chunk_length_s` and/or `stride_length_s`."),t=e.slice(0,this.config.n_samples)):(t=new Float32Array(this.config.n_samples)).set(e);let{data:r,dims:n}=this._extract_fbank_features(t);return{input_features:new c.es("float32",r,[1,...n])}}}class el extends B{_zero_mean_unit_var_norm(e){let t=e.reduce((e,t)=>e+t,0)/e.length,r=e.reduce((e,r)=>e+(r-t)**2,0)/e.length;return e.map(e=>(e-t)/Math.sqrt(r+1e-7))}async _call(e){M(e,"Wav2Vec2FeatureExtractor"),e instanceof Float64Array&&(e=new Float32Array(e));let t=e;this.config.do_normalize&&(t=this._zero_mean_unit_var_norm(t));let r=[1,t.length];return{input_values:new c.es("float32",t,r),attention_mask:new c.es("int64",new BigInt64Array(t.length).fill(1n),r)}}}class eu extends B{constructor(e){super(e);let t=this.config.sampling_rate,r=A(256,this.config.num_mel_bins,20,Math.floor(t/2),t,null,"kaldi",!0);for(let e=0;e32768*e),this.window,400,160,{fft_length:512,power:2,center:!1,preemphasis:.97,mel_filters:this.mel_filters,log_mel:"log",mel_floor:1192092955078125e-22,remove_dc_offset:!0,max_num_frames:t,transpose:!0})}async _call(e,{padding:t=!0,pad_to_multiple_of:r=2,do_normalize_per_mel_bins:n=!0,return_attention_mask:i=!0}={}){let o;M(e,"SeamlessM4TFeatureExtractor");let a=this._extract_fbank_features(e,this.config.max_length);if(n){let[e,t]=a.dims;for(let r=0;r0){let r=new Float32Array(t*(e+n));r.set(a.data),r.fill(this.config.padding_value,a.data.length);let s=e+n;a={data:r,dims:[s,t]},i&&(o=new c.es("int64",new BigInt64Array(s),[1,s])).data.fill(1n,0,e)}}let[s,l]=a.dims,u=this.config.stride;if(0!=s%u)throw Error(`The number of frames (${s}) must be a multiple of the stride (${u}).`);let h=new c.es("float32",a.data,a.dims).view(1,Math.floor(s/u),l*u),f={input_features:h};if(i){let e=h.dims[1],t=new c.es("int64",new BigInt64Array(e),[1,e]);if(o)for(let e=1,r=0;e0){if("rand_trunc"===r){o=!0;let r=Math.floor(Math.random()*(a+1));e=e.subarray(r,r+t),(i=this._extract_fbank_features(e,this.mel_filters_slaney,this.config.nb_max_samples)).dims=[1,...i.dims]}else throw Error(`Truncation strategy "${r}" not implemented`)}else{if(a<0){let r=new Float64Array(t);if(r.set(e),"repeat"===n)for(let n=e.length;nw.read(e)))}async function eb(e,t){return Array.isArray(e)||(e=[e]),await Promise.all(e.map(e=>"string"==typeof e||e instanceof URL?_(e,t):e instanceof Float64Array?new Float32Array(e):e))}function ex(e,t){t&&(e=e.map(e=>0|e));let[r,n,i,o]=e;return{xmin:r,ymin:n,xmax:i,ymax:o}}class eE extends l.Ag{constructor({task:e,model:t,tokenizer:r=null,processor:n=null}){super(),this.task=e,this.model=t,this.tokenizer=r,this.processor=n}async dispose(){await this.model.dispose()}}class ek extends eE{constructor(e){super(e)}async _call(e,{topk:t=1}={}){let r=this.tokenizer(e,{padding:!0,truncation:!0}),n=await this.model(r),i="multi_label_classification"===this.model.config.problem_type?e=>e.sigmoid().data:e=>(0,h.XA)(e.data),o=this.model.config.id2label,a=[];for(let e of n.logits){let r=i(e),n=(0,h.em)(r,t).map(e=>({label:o[e[0]],score:e[1]}));1===t?a.push(...n):a.push(n)}return Array.isArray(e)||1===t?a:a[0]}}class eA extends eE{constructor(e){super(e)}async _call(e,{ignore_labels:t=["O"]}={}){let r=Array.isArray(e),n=this.tokenizer(r?e:[e],{padding:!0,truncation:!0}),i=(await this.model(n)).logits,o=this.model.config.id2label,a=[];for(let e=0;e[e,t]).filter(e=>e[1]>a),u=Array.from((0,h.XA)(i.end_logits[e].data)).map((e,t)=>[e,t]).filter(e=>e[1]>a),c=(0,l.O7)(s,u).filter(e=>e[0][1]<=e[1][1]).map(e=>[e[0][1],e[1][1],e[0][0]*e[1][0]]).sort((e,t)=>t[2]-e[2]);for(let e=0;e{let t=[...o];return t[a]=e[0],{score:e[1],token:e[0],token_str:this.tokenizer.model.vocab[e[0]],sequence:this.tokenizer.decode(t,{skip_special_tokens:!0})}}))}return Array.isArray(e)?i:i[0]}}class ez extends eE{_key="generated_text";constructor(e){super(e)}async _call(e,t={}){let r;Array.isArray(e)||(e=[e]),this.model.config.prefix&&(e=e.map(e=>this.model.config.prefix+e));let n=this.model.config.task_specific_params;n&&n[this.task]&&n[this.task].prefix&&(e=e.map(e=>n[this.task].prefix+e));let i=this.tokenizer,o={padding:!0,truncation:!0};r=this instanceof eM&&"_build_translation_inputs"in i?i._build_translation_inputs(e,o,t).input_ids:i(e,o).input_ids;let a=await this.model.generate(r,t);return i.batch_decode(a,{skip_special_tokens:!0}).map(e=>({[this._key]:e}))}}class eI extends ez{_key="summary_text";constructor(e){super(e)}}class eM extends ez{_key="translation_text";constructor(e){super(e)}}function eT(e){return Array.isArray(e)&&e.every(e=>"role"in e&&"content"in e)}class eO extends eE{constructor(e){super(e)}async _call(e,t={}){let r,n,i=!1,o=!1;if("string"==typeof e)r=e=[e];else if(Array.isArray(e)&&e.every(e=>"string"==typeof e))i=!0,r=e;else{if(eT(e))e=[e];else if(Array.isArray(e)&&e.every(eT))i=!0;else throw Error("Input must be a string, an array of strings, a Chat, or an array of Chats");o=!0,r=e.map(e=>this.tokenizer.apply_chat_template(e,{tokenize:!1,add_generation_prompt:!0}))}let a=t.add_special_tokens??!1,s=!o&&(t.return_full_text??!0);this.tokenizer.padding_side="left";let{input_ids:l,attention_mask:u}=this.tokenizer(r,{add_special_tokens:a,padding:!0,truncation:!0}),h=await this.model.generate(l,t,null,{inputs_attention_mask:u}),c=this.tokenizer.batch_decode(h,{skip_special_tokens:!0});!s&&l.dims.at(-1)>0&&(n=this.tokenizer.batch_decode(l,{skip_special_tokens:!0}).map(e=>e.length));let f=Array.from({length:e.length},e=>[]);for(let t=0;t[e.toLowerCase(),t])),this.entailment_id=this.label2id.entailment,void 0===this.entailment_id&&(console.warn("Could not find 'entailment' in label2id mapping. Using 2 as entailment_id."),this.entailment_id=2),this.contradiction_id=this.label2id.contradiction??this.label2id.not_entailment,void 0===this.contradiction_id&&(console.warn("Could not find 'contradiction' in label2id mapping. Using 0 as contradiction_id."),this.contradiction_id=0)}async _call(e,t,{hypothesis_template:r="This example is {}.",multi_label:n=!1}={}){let i=Array.isArray(e);i||(e=[e]),Array.isArray(t)||(t=[t]);let o=t.map(e=>r.replace("{}",e)),a=n||1===t.length,s=[];for(let r of e){let e=[];for(let t of o){let n=this.tokenizer(r,{text_pair:t,padding:!0,truncation:!0}),i=await this.model(n);a?e.push([i.logits.data[this.contradiction_id],i.logits.data[this.entailment_id]]):e.push(i.logits.data[this.entailment_id])}let n=(a?e.map(e=>(0,h.XA)(e)[1]):(0,h.XA)(e)).map((e,t)=>[e,t]).sort((e,t)=>t[0]-e[0]);s.push({sequence:r,labels:n.map(e=>t[e[1]]),scores:n.map(e=>e[0])})}return i?s:s[0]}}class ej extends eE{constructor(e){super(e)}async _call(e,{pooling:t="none",normalize:r=!1,quantize:n=!1,precision:i="binary"}={}){let o=this.tokenizer(e,{padding:!0,truncation:!0}),a=await this.model(o),s=a.last_hidden_state??a.logits??a.token_embeddings;if("none"===t);else if("mean"===t)s=(0,c.v6)(s,o.attention_mask);else if("cls"===t)s=s.slice(null,0);else throw Error(`Pooling method '${t}' not supported.`);return r&&(s=s.normalize(2,-1)),n&&(s=(0,c.e)(s,i)),s}}class e$ extends eE{constructor(e){super(e)}async _call(e,{pool:t=null}={}){let r;let n=await ev(e),{pixel_values:i}=await this.processor(n),o=await this.model({pixel_values:i});if(t){if(!("pooler_output"in o))throw Error("No pooled output was returned. Make sure the model has a 'pooler' layer when using the 'pool' option.");r=o.pooler_output}else r=o.last_hidden_state??o.logits??o.image_embeds;return r}}class eU extends eE{constructor(e){super(e)}async _call(e,{topk:t=null}={}){let r=!Array.isArray(e),n=this.processor.feature_extractor.config.sampling_rate,i=await eb(e,n),o=this.model.config.id2label,a=[];for(let e of i){let r=await this.processor(e),n=(await this.model(r)).logits[0],i=(0,h.em)((0,h.XA)(n.data),t).map(e=>({label:o[e[0]],score:e[1]}));1===t?a.push(...i):a.push(i)}return r&&1!==t?a[0]:a}}class eL extends eE{constructor(e){super(e)}async _call(e,t,{hypothesis_template:r="This is a sound of {}."}={}){let n=!Array.isArray(e);n&&(e=[e]);let i=t.map(e=>r.replace("{}",e)),o=this.tokenizer(i,{padding:!0,truncation:!0}),a=this.processor.feature_extractor.config.sampling_rate,s=await eb(e,a),l=[];for(let e of s){let r=await this.processor(e),n=await this.model({...o,...r}),i=(0,h.XA)(n.logits_per_audio.data);l.push([...i].map((e,r)=>({score:e,label:t[r]})))}return n?l[0]:l}}class eR extends eE{constructor(e){super(e)}async _call(e,t={}){switch(this.model.config.model_type){case"whisper":return this._call_whisper(e,t);case"wav2vec2":case"wav2vec2-bert":case"unispeech":case"unispeech-sat":case"hubert":return this._call_wav2vec2(e,t);default:throw Error(`AutomaticSpeechRecognitionPipeline does not support model type '${this.model.config.model_type}'.`)}}async _call_wav2vec2(e,t={}){t.language&&console.warn('`language` parameter is not yet supported for `wav2vec2` models, defaulting to "English".'),t.task&&console.warn('`task` parameter is not yet supported for `wav2vec2` models, defaulting to "transcribe".');let r=!Array.isArray(e);r&&(e=[e]);let n=this.processor.feature_extractor.config.sampling_rate,i=await eb(e,n),o=[];for(let e of i){let t=await this.processor(e),r=(await this.model(t)).logits[0],n=[];for(let e of r)n.push((0,h.Fp)(e.data)[1]);let i=this.tokenizer.decode(n);o.push({text:i})}return r?o[0]:o}async _call_whisper(e,t={}){let r=t.return_timestamps??!1,n=t.chunk_length_s??0,i=t.chunk_callback??null,o=t.force_full_sequences??!1,a=t.stride_length_s??null;"word"===r&&(t.return_token_timestamps=!0);let s=(0,l.Sw)(t,"language",null),u=(0,l.Sw)(t,"task",null);if(s||u||r){if(t.forced_decoder_ids)throw Error("Cannot specify `language`/`task`/`return_timestamps` and `forced_decoder_ids` at the same time.");let e=this.tokenizer.get_decoder_prompt_ids({language:s,task:u,no_timestamps:!r});e.length>0&&(t.forced_decoder_ids=e)}let c=!Array.isArray(e);c&&(e=[e]);let f=this.processor.feature_extractor.config.chunk_length/this.model.config.max_source_positions,d=this.processor.feature_extractor.config.hop_length,p=this.processor.feature_extractor.config.sampling_rate,m=await eb(e,p),g=[];for(let e of m){let s=[];if(n>0){if(null===a)a=n/6;else if(n<=a)throw Error("`chunk_length_s` must be larger than `stride_length_s`.");let t=p*n,r=p*a,i=t-2*r,o=0;for(;o=e.length;s.push({stride:[n.length,l?0:r,u?0:r],input_features:a.input_features,is_last:u}),o+=i}}else s=[{stride:[e.length,0,0],input_features:(await this.processor(e)).input_features,is_last:!0}];for(let e of s){t.num_frames=Math.floor(e.stride[0]/d);let n=await this.model.generate(e.input_features,t);"word"===r?(e.tokens=n.sequences[0],e.token_timestamps=n.token_timestamps.tolist()[0].map(e=>(0,h.NM)(e,2))):e.tokens=n[0],e.stride=e.stride.map(e=>e/p),null!==i&&i(e)}let[l,u]=this.tokenizer._decode_asr(s,{time_precision:f,return_timestamps:r,force_full_sequences:o});g.push({text:l,...u})}return c?g[0]:g}}class eF extends eE{constructor(e){super(e)}async _call(e,t={}){let r=Array.isArray(e),n=await ev(e),{pixel_values:i}=await this.processor(n),o=[];for(let e of i){e.dims=[1,...e.dims];let r=await this.model.generate(e,t),n=this.tokenizer.batch_decode(r,{skip_special_tokens:!0}).map(e=>({generated_text:e.trim()}));o.push(n)}return r?o:o[0]}}class eN extends eE{constructor(e){super(e)}async _call(e,{topk:t=1}={}){let r=Array.isArray(e),n=await ev(e),{pixel_values:i}=await this.processor(n),o=await this.model({pixel_values:i}),a=this.model.config.id2label,s=[];for(let e of o.logits){let r=(0,h.em)((0,h.XA)(e.data),t).map(e=>({label:a[e[0]],score:e[1]}));1===t?s.push(...r):s.push(r)}return r||1===t?s:s[0]}}class eP extends eE{constructor(e){super(e),this.subtasks_mapping={panoptic:"post_process_panoptic_segmentation",instance:"post_process_instance_segmentation",semantic:"post_process_semantic_segmentation"}}async _call(e,{threshold:t=.5,mask_threshold:r=.5,overlap_mask_area_threshold:n=.8,label_ids_to_fuse:i=null,target_sizes:o=null,subtask:a=null}={}){if(Array.isArray(e)&&1!==e.length)throw Error("Image segmentation pipeline currently only supports a batch size of 1.");let s=await ev(e),l=s.map(e=>[e.height,e.width]),{pixel_values:u,pixel_mask:h}=await this.processor(s),c=await this.model({pixel_values:u,pixel_mask:h}),f=null;if(null!==a)f=this.subtasks_mapping[a];else for(let[e,t]of Object.entries(this.subtasks_mapping))if(t in this.processor.feature_extractor){f=this.processor.feature_extractor[t].bind(this.processor.feature_extractor),a=e;break}let d=this.model.config.id2label,p=[];if("panoptic"===a||"instance"===a){let e=f(c,t,r,n,i,o??l)[0],a=e.segmentation;for(let t of e.segments_info){let e=new Uint8ClampedArray(a.data.length);for(let r=0;rr.replace("{}",e)),a=this.tokenizer(o,{padding:"siglip"!==this.model.config.model_type||"max_length",truncation:!0}),{pixel_values:s}=await this.processor(i),l=await this.model({...a,pixel_values:s}),u="siglip"===this.model.config.model_type?e=>e.sigmoid().data:e=>(0,h.XA)(e.data),c=[];for(let e of l.logits_per_image){let r=[...u(e)].map((e,r)=>({score:e,label:t[r]}));r.sort((e,t)=>t.score-e.score),c.push(r)}return n?c:c[0]}}class eD extends eE{constructor(e){super(e)}async _call(e,{threshold:t=.9,percentage:r=!1}={}){let n=Array.isArray(e);if(n&&1!==e.length)throw Error("Object detection pipeline currently only supports a batch size of 1.");let i=await ev(e),o=r?null:i.map(e=>[e.height,e.width]),{pixel_values:a,pixel_mask:s}=await this.processor(i),l=await this.model({pixel_values:a,pixel_mask:s}),u=this.processor.feature_extractor.post_process_object_detection(l,t,o),h=this.model.config.id2label,c=u.map(e=>e.boxes.map((t,n)=>({score:e.scores[n],label:h[e.classes[n]],box:ex(t,!r)})));return n?c:c[0]}}class eq extends eE{constructor(e){super(e)}async _call(e,t,{threshold:r=.1,topk:n=null,percentage:i=!1}={}){let o=Array.isArray(e),a=await ev(e),s=this.tokenizer(t,{padding:!0,truncation:!0}),l=await this.processor(a),u=[];for(let e=0;e({score:d.scores[r],label:t[d.classes[r]],box:ex(e,!i)})).sort((e,t)=>t.score-e.score);null!==n&&(p=p.slice(0,n)),u.push(p)}return o?u:u[0]}}class eH extends eE{constructor(e){super(e)}async _call(e,t,r={}){let n=(await ev(e))[0],{pixel_values:i}=await this.processor(n),o=`${t}`,a=this.tokenizer(o,{add_special_tokens:!1,padding:!0,truncation:!0}).input_ids,s=await this.model.generate(i,{...r,decoder_input_ids:a,max_length:this.model.config.decoder.max_position_embeddings}),l=this.tokenizer.batch_decode(s)[0].match(/(.*?)<\/s_answer>/),u=null;return l&&l.length>=2&&(u=l[1].trim()),[{answer:u}]}}class eW extends eE{DEFAULT_VOCODER_ID="Xenova/speecht5_hifigan";constructor(e){super(e),this.vocoder=e.vocoder??null}async _call(e,{speaker_embeddings:t=null}={}){return this.processor?this._call_text_to_spectrogram(e,{speaker_embeddings:t}):this._call_text_to_waveform(e)}async _call_text_to_waveform(e){let t=this.tokenizer(e,{padding:!0,truncation:!0}),{waveform:r}=await this.model(t),n=this.model.config.sampling_rate;return{audio:r.data,sampling_rate:n}}async _call_text_to_spectrogram(e,{speaker_embeddings:t}){if(this.vocoder||(console.log("No vocoder specified, using default HifiGan vocoder."),this.vocoder=await s.$Sz.from_pretrained(this.DEFAULT_VOCODER_ID,{quantized:!1})),("string"==typeof t||t instanceof URL)&&(t=new Float32Array(await (await fetch(t)).arrayBuffer())),t instanceof Float32Array)t=new c.es("float32",t,[1,t.length]);else if(!(t instanceof c.es))throw Error("Speaker embeddings must be a `Tensor`, `Float32Array`, `string`, or `URL`.");let{input_ids:r}=this.tokenizer(e,{padding:!0,truncation:!0}),{waveform:n}=await this.model.generate_speech(r,t,{vocoder:this.vocoder}),i=this.processor.feature_extractor.config.sampling_rate;return{audio:n.data,sampling_rate:i}}}class eG extends eE{constructor(e){super(e)}async _call(e){let t=await ev(e),r=await this.processor(t),n=await this.model(r),i=[];for(let e of n.reconstruction){let t=e.squeeze().clamp_(0,1).mul_(255).round_().to("uint8");i.push(w.fromTensor(t))}return i.length>1?i:i[0]}}class eX extends eE{constructor(e){super(e)}async _call(e){let t=await ev(e),r=await this.processor(t),{predicted_depth:n}=await this.model(r),i=[];for(let e=0;e1?i:i[0]}}let eK=Object.freeze({"text-classification":{tokenizer:a.t2,pipeline:ek,model:s.o$X,default:{model:"Xenova/distilbert-base-uncased-finetuned-sst-2-english"},type:"text"},"token-classification":{tokenizer:a.t2,pipeline:eA,model:s.OjJ,default:{model:"Xenova/bert-base-multilingual-cased-ner-hrl"},type:"text"},"question-answering":{tokenizer:a.t2,pipeline:eC,model:s.wiU,default:{model:"Xenova/distilbert-base-cased-distilled-squad"},type:"text"},"fill-mask":{tokenizer:a.t2,pipeline:eS,model:s.t78,default:{model:"Xenova/bert-base-uncased"},type:"text"},summarization:{tokenizer:a.t2,pipeline:eI,model:s.Kf0,default:{model:"Xenova/distilbart-cnn-6-6"},type:"text"},translation:{tokenizer:a.t2,pipeline:eM,model:s.Kf0,default:{model:"Xenova/t5-small"},type:"text"},"text2text-generation":{tokenizer:a.t2,pipeline:ez,model:s.Kf0,default:{model:"Xenova/flan-t5-small"},type:"text"},"text-generation":{tokenizer:a.t2,pipeline:eO,model:s.Hqk,default:{model:"Xenova/gpt2"},type:"text"},"zero-shot-classification":{tokenizer:a.t2,pipeline:eB,model:s.o$X,default:{model:"Xenova/distilbert-base-uncased-mnli"},type:"text"},"audio-classification":{pipeline:eU,model:s.K2m,processor:e_,default:{model:"Xenova/wav2vec2-base-superb-ks"},type:"audio"},"zero-shot-audio-classification":{tokenizer:a.t2,pipeline:eL,model:s.$Sz,processor:e_,default:{model:"Xenova/clap-htsat-unfused"},type:"multimodal"},"automatic-speech-recognition":{tokenizer:a.t2,pipeline:eR,model:[s.hZO,s.ENH],processor:e_,default:{model:"Xenova/whisper-tiny.en"},type:"multimodal"},"text-to-audio":{tokenizer:a.t2,pipeline:eW,model:[s.z6E,s.lbf],processor:[e_,null],default:{model:"Xenova/speecht5_tts"},type:"text"},"image-to-text":{tokenizer:a.t2,pipeline:eF,model:s.tLj,processor:e_,default:{model:"Xenova/vit-gpt2-image-captioning"},type:"multimodal"},"image-classification":{pipeline:eN,model:s.En$,processor:e_,default:{model:"Xenova/vit-base-patch16-224"},type:"multimodal"},"image-segmentation":{pipeline:eP,model:[s.U$$,s.$Bv],processor:e_,default:{model:"Xenova/detr-resnet-50-panoptic"},type:"multimodal"},"zero-shot-image-classification":{tokenizer:a.t2,pipeline:eV,model:s.$Sz,processor:e_,default:{model:"Xenova/clip-vit-base-patch32"},type:"multimodal"},"object-detection":{pipeline:eD,model:s.Zn,processor:e_,default:{model:"Xenova/detr-resnet-50"},type:"multimodal"},"zero-shot-object-detection":{tokenizer:a.t2,pipeline:eq,model:s.LdW,processor:e_,default:{model:"Xenova/owlvit-base-patch32"},type:"multimodal"},"document-question-answering":{tokenizer:a.t2,pipeline:eH,model:s.DcG,processor:e_,default:{model:"Xenova/donut-base-finetuned-docvqa"},type:"multimodal"},"image-to-image":{pipeline:eG,model:s.S2d,processor:e_,default:{model:"Xenova/swin2SR-classical-sr-x2-64"},type:"image"},"depth-estimation":{pipeline:eX,model:s.hY6,processor:e_,default:{model:"Xenova/dpt-large"},type:"image"},"feature-extraction":{tokenizer:a.t2,pipeline:ej,model:s.$Sz,default:{model:"Xenova/all-MiniLM-L6-v2"},type:"text"},"image-feature-extraction":{processor:e_,pipeline:e$,model:[s.IFL,s.$Sz],default:{model:"Xenova/vit-base-patch16-224-in21k"},type:"image"}}),eZ=Object.freeze({"sentiment-analysis":"text-classification",ner:"token-classification",asr:"automatic-speech-recognition","text-to-speech":"text-to-audio",embeddings:"feature-extraction"});async function eJ(e,t=null,{quantized:r=!0,progress_callback:n=null,config:i=null,cache_dir:o=null,local_files_only:a=!1,revision:s="main",model_file_name:u=null}={}){let h=eK[(e=eZ[e]??e).split("_",1)[0]];if(!h)throw Error(`Unsupported pipeline: ${e}. Must be one of [${Object.keys(eK)}]`);t||(t=h.default.model,console.log(`No model specified. Using default model: "${t}".`));let c=new Map([["tokenizer",h.tokenizer],["model",h.model],["processor",h.processor]]),f=await eY(c,t,{quantized:r,progress_callback:n,config:i,cache_dir:o,local_files_only:a,revision:s,model_file_name:u});return f.task=e,(0,l.T2)(n,{status:"ready",task:e,model:t}),new h.pipeline(f)}async function eY(e,t,r){let n=Object.create(null),i=[];for(let[o,a]of e.entries()){let e;a&&(e=Array.isArray(a)?new Promise(async(e,n)=>{let i;for(let n of a){if(null===n){e(null);return}try{e(await n.from_pretrained(t,r));return}catch(e){i=e}}n(i)}):a.from_pretrained(t,r),n[o]=e,i.push(e))}for(let[e,t]of(await Promise.all(i),Object.entries(n)))n[e]=await t;return n}r(16)},761:function(e,t,r){"use strict";function n(e,t){e&&e(t)}function i(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[t,e]))}function o(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}r.d(t,{$2:function(){return i},Ag:function(){return a},Gg:function(){return u},O7:function(){return d},Sw:function(){return c},T2:function(){return n},Wy:function(){return l},eG:function(){return f},fU:function(){return s},hr:function(){return o},hs:function(){return p},jg:function(){return h}});let a=class{constructor(){let e=function(...t){return e._call(...t)};return Object.setPrototypeOf(e,new.target.prototype)}_call(...e){throw Error("Must implement _call method in subclass")}};function s(e){return e?.prototype?.__proto__?.constructor?.name==="TypedArray"}function l(e){return Number.isInteger(e)||"bigint"==typeof e}function u(e){return null!=e}function h(e){let t=[],r=e;for(;Array.isArray(r);)t.push(r.length),r=r[0];return t}function c(e,t,r){let n=e[t];if(void 0!==n)return delete e[t],n;if(void 0===r)throw Error(`Key ${t} does not exist in object.`);return r}function f(...e){return Array.prototype.concat.apply([],e)}function d(...e){return e.reduce((e,t)=>e.flatMap(e=>t.map(t=>[e,t])))}function p(e,t){return Math.abs((e+t)%(2*t)-t)}},5878:function(e,t,r){"use strict";r.d(t,{GA:function(){return i},Z3:function(){return n},pQ:function(){return a}});class n{constructor(e=(e,t)=>e>t){this._heap=[],this._comparator=e}get size(){return this._heap.length}isEmpty(){return 0===this.size}peek(){return this._heap[0]}push(...e){return this.extend(e)}extend(e){for(let t of e)this._heap.push(t),this._siftUp();return this.size}pop(){let e=this.peek(),t=this.size-1;return t>0&&this._swap(0,t),this._heap.pop(),this._siftDown(),e}replace(e){let t=this.peek();return this._heap[0]=e,this._siftDown(),t}_parent(e){return(e+1>>>1)-1}_left(e){return(e<<1)+1}_right(e){return e+1<<1}_greater(e,t){return this._comparator(this._heap[e],this._heap[t])}_swap(e,t){let r=this._heap[e];this._heap[e]=this._heap[t],this._heap[t]=r}_siftUp(){let e=this.size-1;for(;e>0&&this._greater(e,this._parent(e));)this._swap(e,this._parent(e)),e=this._parent(e)}_siftDown(){let e=0;for(;this._left(e)[]),this.endNodes=Array.from({length:this.len+1},()=>[]);let n=new s(this.bosTokenId,0,0,0,0),i=new s(this.eosTokenId,1,this.len,0,0);this.nodes.push(n.clone()),this.nodes.push(i.clone()),this.beginNodes[this.len].push(i),this.endNodes[0].push(n)}insert(e,t,r,n){let i=new s(n,this.nodes.length,e,t,r);this.beginNodes[e].push(i),this.endNodes[e+t].push(i),this.nodes.push(i)}viterbi(){let e=this.len,t=0;for(;t<=e;){if(0==this.beginNodes[t].length)return[];for(let e of this.beginNodes[t]){e.prev=null;let r=0,n=null;for(let i of this.endNodes[t]){let t=i.backtraceScore+e.score;(null===n||t>r)&&(n=i.clone(),r=t)}if(null===n)return[];e.prev=n,e.backtraceScore=r}++t}let r=[],n=this.beginNodes[e][0].prev;if(null===n)return[];let i=n.clone();for(;null!==i.prev;)r.push(i.clone()),i=i.clone().prev.clone();return r.reverse(),r}piece(e){return this.sentence.slice(e.pos,e.pos+e.length)}tokens(){return this.viterbi().map(e=>this.piece(e))}tokenIds(){return this.viterbi().map(e=>e.tokenId)}}class s{constructor(e,t,r,n,i){this.tokenId=e,this.nodeId=t,this.pos=r,this.length=n,this.score=i,this.prev=null,this.backtraceScore=0}clone(){let e=new s(this.tokenId,this.nodeId,this.pos,this.length,this.score);return e.prev=this.prev,e.backtraceScore=this.backtraceScore,e}}},5774:function(e,t,r){"use strict";r.d(t,{AE:function(){return g},C9:function(){return l},CJ:function(){return m},E:function(){return s},GU:function(){return h},Jj:function(){return d},Jm:function(){return o},Pg:function(){return c},Z4:function(){return w},aP:function(){return y},dZ:function(){return u},ez:function(){return p},jF:function(){return f}}),r(2414);var n=r(761),i=r(8709);class o extends n.Ag{constructor(){super(),this.processors=[]}push(e){this.processors.push(e)}extend(e){this.processors.push(...e)}_call(e,t){for(let r of t)this.processors.forEach(t=>t(e,r))}[Symbol.iterator](){return this.processors.values()}}class a extends n.Ag{_call(e,t){throw Error("`_call` should be implemented in a subclass")}}class s extends a{constructor(e){super(),this.force_token_map=Object.fromEntries(e??[])}_call(e,t){let r=this.force_token_map[e.length];return(0,n.Gg)(r)&&(t.data.fill(-1/0),t.data[r]=0),t}}class l extends a{constructor(e){super(),this.bos_token_id=e}_call(e,t){return 1===e.length&&(t.data.fill(-1/0),t.data[this.bos_token_id]=0),t}}class u extends a{constructor(e,t){super(),this.max_length=e,this.forced_eos_token_id=t}_call(e,t){}}class h extends a{constructor(e,t){super(),this.begin_suppress_tokens=e,this.begin_index=t}_call(e,t){if(e.length===this.begin_index)for(let e of this.begin_suppress_tokens)t.data[e]=-1/0;return t}}class c extends a{constructor(e){super(),this.eos_token_id=e.eos_token_id,this.no_timestamps_token_id=e.no_timestamps_token_id,this.timestamp_begin=this.no_timestamps_token_id+1,this.begin_index=(e.forced_decoder_ids||[]).length+2,e.forced_decoder_ids.slice(-1)[0][1]===this.no_timestamps_token_id&&(this.begin_index-=1),this.max_initial_timestamp_index=e.max_initial_timestamp_index}_call(e,t){let r=t.data;if(r[this.no_timestamps_token_id]=-1/0,e.length===this.begin_index-1)return r.fill(-1/0),r[this.timestamp_begin]=0,t;let n=e.slice(this.begin_index),o=n.length>=1&&n[n.length-1]>=this.timestamp_begin,a=n.length<2||n[n.length-2]>=this.timestamp_begin;if(o&&(a?r.subarray(this.timestamp_begin).fill(-1/0):r.subarray(0,this.eos_token_id).fill(-1/0)),e.length===this.begin_index&&null!==this.max_initial_timestamp_index){let e=this.timestamp_begin+this.max_initial_timestamp_index;r.subarray(e+1).fill(-1/0)}let s=(0,i.CI)(r);return Math.log(s.subarray(this.timestamp_begin).map(Math.exp).reduce((e,t)=>e+t))>(0,i.Fp)(s.subarray(0,this.timestamp_begin))[0]&&r.subarray(0,this.timestamp_begin).fill(-1/0),t}}class f extends a{constructor(e){super(),this.no_repeat_ngram_size=e}getNgrams(e){let t=e.length,r=[];for(let n=0;n0&&(n=n.map(e=>e/this.generation_config.temperature)),n}randomSelect(e){let t=Math.random()*e.reduce((e,t)=>e+t,0);for(let r=0;r1)return new b(e);if(e.num_return_sequences>1)throw Error(`num_return_sequences has to be 1 when doing greedy search, but is ${e.num_return_sequences}.`);return new _(e)}}class _ extends w{sample(e,t=-1){let r=this.getLogits(e,t);return[[(0,i.Fp)(r)[1],0]]}}class v extends w{sample(e,t=-1){let r=e.dims.at(-1);this.generation_config.top_k>0&&(r=Math.min(this.generation_config.top_k,r));let n=this.getLogits(e,t),o=(0,i.em)(n,r),a=(0,i.XA)(o.map(e=>e[1]));return Array.from({length:this.generation_config.num_beams},()=>{let e=this.randomSelect(a);return[o[e][0],Math.log(a[e])]})}}class b extends w{sample(e,t=-1){let r=e.dims.at(-1);this.generation_config.top_k>0&&(r=Math.min(this.generation_config.top_k,r));let n=this.getLogits(e,t),o=(0,i.em)(n,r),a=(0,i.XA)(o.map(e=>e[1]));return Array.from({length:this.generation_config.num_beams},(e,t)=>[o[t][0],Math.log(a[t])])}}},911:function(e,t,r){"use strict";r.d(t,{hn:function(){return c},st:function(){return m},yM:function(){return g}});var n=r(7147),i=r(1418),o=r(851),a=r(761),s=r(357),l=r(9109).lW;class u{_CONTENT_TYPE_MAP={txt:"text/plain",html:"text/html",css:"text/css",js:"text/javascript",json:"application/json",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif"};constructor(e){if(this.filePath=e,this.headers=new Headers,this.exists=n.existsSync(e),this.exists){this.status=200,this.statusText="OK";let t=n.statSync(e);this.headers.set("content-length",t.size.toString()),this.updateContentType();let r=this;this.body=new ReadableStream({start(e){r.arrayBuffer().then(t=>{e.enqueue(new Uint8Array(t)),e.close()})}})}else this.status=404,this.statusText="Not Found",this.body=null}updateContentType(){let e=this.filePath.toString().split(".").pop().toLowerCase();this.headers.set("content-type",this._CONTENT_TYPE_MAP[e]??"application/octet-stream")}clone(){let e=new u(this.filePath);return e.exists=this.exists,e.status=this.status,e.statusText=this.statusText,e.headers=new Headers(this.headers),e}async arrayBuffer(){return(await n.promises.readFile(this.filePath)).buffer}async blob(){return new Blob([await n.promises.readFile(this.filePath)],{type:this.headers.get("content-type")})}async text(){return await n.promises.readFile(this.filePath,"utf8")}async json(){return JSON.parse(await this.text())}}function h(e,t=null,r=null){let n;try{n=new URL(e)}catch(e){return!1}return(!t||!!t.includes(n.protocol))&&(!r||!!r.includes(n.hostname))}async function c(e){if(o.O.useFS&&!h(e,["http:","https:","blob:"]))return new u(e);if(void 0===s||s?.release?.name!=="node")return fetch(e);{let t=!!s.env?.TESTING_REMOTELY,r=o.O.version,n=new Headers;if(n.set("User-Agent",`transformers.js/${r}; is_ci/${t};`),h(e,["http:","https:"],["huggingface.co","hf.co"])){let e=s.env?.HF_TOKEN??s.env?.HF_ACCESS_TOKEN;e&&n.set("Authorization",`Bearer ${e}`)}return fetch(e,{headers:n})}}let f={400:"Bad request error occurred while trying to load file",401:"Unauthorized access to file",403:"Forbidden access to file",404:"Could not locate file",408:"Request timeout error occurred while trying to load file",500:"Internal server error error occurred while trying to load file",502:"Bad gateway error occurred while trying to load file",503:"Service unavailable error occurred while trying to load file",504:"Gateway timeout error occurred while trying to load file"};class d{constructor(e){this.path=e}async match(e){let t=new u(i.join(this.path,e));return t.exists?t:void 0}async put(e,t){let r=l.from(await t.arrayBuffer()),o=i.join(this.path,e);try{await n.promises.mkdir(i.dirname(o),{recursive:!0}),await n.promises.writeFile(o,r)}catch(e){console.warn("An error occurred while writing the file to cache:",e)}}}async function p(e,...t){for(let r of t)try{let t=await e.match(r);if(t)return t}catch(e){continue}}async function m(e,t,r=!0,n={}){let i,s,l,u;if(!o.O.allowLocalModels){if(n.local_files_only)throw Error("Invalid configuration detected: local models are disabled (`env.allowLocalModels=false`) but you have requested to only use local models (`local_files_only=true`).");if(!o.O.allowRemoteModels)throw Error("Invalid configuration detected: both local and remote models are disabled. Fix by setting `env.allowLocalModels` or `env.allowRemoteModels` to `true`.")}if((0,a.T2)(n.progress_callback,{status:"initiate",name:e,file:t}),!i&&o.O.useBrowserCache){if("undefined"==typeof caches)throw Error("Browser cache is not available in this environment.");try{i=await caches.open("transformers-cache")}catch(e){console.warn("An error occurred while opening the browser cache:",e)}}if(!i&&o.O.useFSCache&&(i=new d(n.cache_dir??o.O.cacheDir)),!i&&o.O.useCustomCache){if(!o.O.customCache)throw Error("`env.useCustomCache=true`, but `env.customCache` is not defined.");if(!o.O.customCache.match||!o.O.customCache.put)throw Error("`env.customCache` must be an object which implements the `match` and `put` functions of the Web Cache API. For more information, see https://developer.mozilla.org/en-US/docs/Web/API/Cache");i=o.O.customCache}let m=n.revision??"main",g=w(e,t),_=w(o.O.localModelPath,g),v=w(o.O.remoteHost,o.O.remotePathTemplate.replaceAll("{model}",e).replaceAll("{revision}",encodeURIComponent(m)),t),b="main"===m?g:w(e,m,t),x=i instanceof d?b:v,E=!1;i&&(l=await p(i,_,x));let k=void 0!==l;if(void 0===l){if(o.O.allowLocalModels){if(h(g,["http:","https:"])){if(n.local_files_only)throw Error(`\`local_files_only=true\`, but attempted to load a remote file from: ${g}.`);if(!o.O.allowRemoteModels)throw Error(`\`env.allowRemoteModels=false\`, but attempted to load a remote file from: ${g}.`)}else try{l=await c(_),s=_}catch(e){console.warn(`Unable to load from local path "${_}": "${e}"`)}}if(void 0===l||404===l.status){if(n.local_files_only||!o.O.allowRemoteModels){if(!r)return null;throw Error(`\`local_files_only=true\` or \`env.allowRemoteModels=false\` and file was not found locally at "${_}".`)}if(200!==(l=await c(v)).status)return function(e,t,r){if(!r)return null;let n=f[e]??`Error (${e}) occurred while trying to load file`;throw Error(`${n}: "${t}".`)}(l.status,v,r);s=x}E=i&&"undefined"!=typeof Response&&l instanceof Response&&200===l.status}(0,a.T2)(n.progress_callback,{status:"download",name:e,file:t});let A={status:"progress",name:e,file:t};return n.progress_callback?k&&"undefined"!=typeof navigator&&/firefox/i.test(navigator.userAgent)?(u=new Uint8Array(await l.arrayBuffer()),(0,a.T2)(n.progress_callback,{...A,progress:100,loaded:u.length,total:u.length})):u=await y(l,e=>{(0,a.T2)(n.progress_callback,{...A,...e})}):u=new Uint8Array(await l.arrayBuffer()),E&&s&&await i.match(s)===void 0&&await i.put(s,new Response(u,{headers:l.headers})).catch(e=>{console.warn(`Unable to add response to browser cache: ${e}.`)}),(0,a.T2)(n.progress_callback,{status:"done",name:e,file:t}),u}async function g(e,t,r=!0,n={}){let i=await m(e,t,r,n);return null===i?{}:JSON.parse(new TextDecoder("utf-8").decode(i))}async function y(e,t){let r=e.headers.get("Content-Length");null===r&&console.warn("Unable to determine content-length from response headers. Will expand buffer when needed.");let n=parseInt(r??"0"),i=new Uint8Array(n),o=0,a=e.body.getReader();async function s(){let{done:e,value:r}=await a.read();if(e)return;let l=o+r.length;if(l>n){let e=new Uint8Array(n=l);e.set(i),i=e}return i.set(r,o),t({progress:(o=l)/n*100,loaded:o,total:n}),s()}return await s(),i}function w(...e){return(e=e.map((t,r)=>(r&&(t=t.replace(RegExp("^/"),"")),r!==e.length-1&&(t=t.replace(RegExp("/$"),"")),t))).join("/")}},8709:function(e,t,r){"use strict";function n(e,[t,r,n],[i,o],a="bilinear",s=!1){let l=o/n,u=i/r,h=new e.constructor(i*o*t),c=r*n,f=i*o;for(let a=0;a=0;--e)i[e]=o,n[e]=t[r[e]],o*=n[e];let o=r.map((e,t)=>i[r.indexOf(t)]),a=new e.constructor(e.length);for(let r=0;r=0;--e)n+=i%t[e]*o[e],i=Math.floor(i/t[e]);a[n]=e[r]}return[a,n]}function o(e){let t=u(e)[0],r=e.map(e=>Math.exp(e-t)),n=r.reduce((e,t)=>e+t,0);return r.map(e=>e/n)}function a(e){return o(e).map(e=>Math.log(e))}function s(e,t=0){return e=Array.from(e).map((e,t)=>[t,e]).sort((e,t)=>t[1]-e[1]),null!==t&&t>0&&(e=e.slice(0,t)),e}function l(e){if(0===e.length)throw Error("Array must not be empty");let t=e[0],r=0;for(let n=1;nt&&(t=e[n],r=n);return[Number(t),r]}function h(e){return e>0&&(e&e-1)==0}r.d(t,{CI:function(){return a},Fp:function(){return u},NM:function(){return m},Nq:function(){return n},VV:function(){return l},XA:function(){return o},eT:function(){return g},em:function(){return s},nu:function(){return i},qC:function(){return p},vw:function(){return d}});class c{constructor(e){if(this.size=0|e,this.size<=1||!h(this.size))throw Error("FFT size must be a power of two larger than 1");this._csize=e<<1,this.table=new Float64Array(2*this.size);for(let e=0;ee;e<<=1)++t;this._width=t%2==0?t-1:t,this._bitrev=new Int32Array(1<>>t&3)<>>1);for(let t=0;t>>1]=e[t];return r}toComplexArray(e,t){let r=t||this.createComplexArray();for(let t=0;t>>1],r[t+1]=0;return r}transform(e,t){if(e===t)throw Error("Input and output buffers must be different");this._transform4(e,t,1)}realTransform(e,t){if(e===t)throw Error("Input and output buffers must be different");this._realTransform4(e,t,1)}inverseTransform(e,t){if(e===t)throw Error("Input and output buffers must be different");this._transform4(e,t,-1);for(let t=0;t>=2;a>=2;a>>=2){let t=(s=o/a<<1)>>>2;for(n=0;n>>1,a>>>1)}else for(n=0,i=0;n>>1,a>>>1,r)}let u=this.table;for(a>>=2;a>=2;a>>=2){let t=(s=o/a<<1)>>>1,i=t>>>1,l=i>>>1;for(n=0;n>>1;for(let t=2;t>1;++t){let r=(t+1-e)**2/2,n=Math.sqrt(s**2+l**2)**r,a=r*Math.atan2(l,s),u=2*t;i[u]=n*Math.cos(a),i[u+1]=n*Math.sin(a),o[u]=i[u],o[u+1]=-i[u+1]}this._slicedChirpBuffer=i.subarray(t,r),this._f=new c(n>>1),this._f.transform(this._chirpBuffer,o)}_transform(e,t,r){let n=this._buffer1,i=this._buffer2,o=this._outBuffer1,a=this._outBuffer2,s=this._chirpBuffer,l=this._slicedChirpBuffer,u=this._a;if(r)for(let e=0;e>1];n[e]=i*l[e],n[r]=i*l[r]}else for(let e=0;e=e.length&&(i=2*(e.length-1)-i),n[o++]=e[i]}n.sort(),r[t]=n[i]}return r}function m(e,t){let r=Math.pow(10,t);return Math.round(e*r)/r}function g(e){let t=Math.round(e);return Math.abs(e)%1==.5?t%2==0?t:t-1:t}},2414:function(e,t,r){"use strict";r.d(t,{J6:function(){return g},Ks:function(){return y},d3:function(){return d},e:function(){return _},es:function(){return s},f3:function(){return m},kn:function(){return p},r6:function(){return w},sX:function(){return l},v6:function(){return u}});var n=r(967),i=r(8709);let o=Object.freeze({float32:Float32Array,float64:Float64Array,string:Array,int8:Int8Array,uint8:Uint8Array,int16:Int16Array,uint16:Uint16Array,int32:Int32Array,uint32:Uint32Array,int64:BigInt64Array,uint64:BigUint64Array,bool:Uint8Array}),a=n.ONNX.Tensor;class s{dims;type;data;size;constructor(...e){return e[0]instanceof a?Object.assign(this,e[0]):Object.assign(this,new a(e[0],e[1],e[2])),new Proxy(this,{get:(e,t)=>{if("string"==typeof t){let r=Number(t);if(Number.isInteger(r))return e._getitem(r)}return e[t]},set:(e,t,r)=>e[t]=r})}*[Symbol.iterator](){let[e,...t]=this.dims;if(t.length>0){let r=t.reduce((e,t)=>e*t);for(let n=0;n0))return new s(this.type,[this.data[e]],r);{let t=r.reduce((e,t)=>e*t);return this._subarray(e,t,r)}}indexOf(e){for(let t=0;te*t))throw Error(`cannot reshape array of size ${r} into shape (${t})`);let n=e;for(let e=t.length-1;e>=0;e--)n=n.reduce((r,n)=>{let i=r[r.length-1];return i.lengthi[1])throw Error(`Invalid slice: ${i}`);let e=[Math.max(i[0],0),Math.min(i[1],this.dims[n])];r.push(e),t.push(e[1]-e[0])}else throw Error(`Invalid slice: ${i}`)}let n=r.map(([e,t])=>t-e),i=n.reduce((e,t)=>e*t),o=new this.data.constructor(i),a=this.stride();for(let e=0;e=0;--i){let e=n[i];t+=(o%e+r[i][0])*a[i],o=Math.floor(o/e)}o[e]=this.data[t]}return new s(this.type,o,t)}permute(...e){return function(e,t){let[r,n]=(0,i.nu)(e.data,e.dims,t);return new s(e.type,r,n)}(this,e)}transpose(...e){return this.permute(...e)}sum(e=null,t=!1){return this.norm(1,e,t)}norm(e="fro",t=null,r=!1){if("fro"===e)e=2;else if("string"==typeof e)throw Error(`Unsupported norm: ${e}`);if(null===t){let t=this.data.reduce((t,r)=>t+r**e,0)**(1/e);return new s(this.type,[t],[])}t=f(t,this.dims.length);let n=this.dims.slice();n[t]=1;let i=new this.data.constructor(this.data.length/this.dims[t]);for(let r=0;r=0;--e){let r=this.dims[e];e!==t&&(o+=i%r*a,a*=n[e]),i=Math.floor(i/r)}i[o]+=this.data[r]**e}if(1!==e)for(let t=0;t=0;--r){let e=this.dims[r];r!==t&&(n+=i%e*o,o*=this.dims[r]),i=Math.floor(i/e)}this.data[e]/=r.data[n]}return this}normalize(e=2,t=1){return this.clone().normalize_(e,t)}stride(){return function(e){let t=Array(e.length);for(let r=e.length-1,n=1;r>=0;--r)t[r]=n,n*=e[r];return t}(this.dims)}squeeze(e=null){return new s(this.type,this.data,h(this.dims,e))}squeeze_(e=null){return this.dims=h(this.dims,e),this}unsqueeze(e=null){return new s(this.type,this.data,c(this.dims,e))}unsqueeze_(e=null){return this.dims=c(this.dims,e),this}flatten_(e=0,t=-1){t=(t+this.dims.length)%this.dims.length;let r=this.dims.slice(0,e),n=this.dims.slice(e,t+1),i=this.dims.slice(t+1);return this.dims=[...r,n.reduce((e,t)=>e*t,1),...i],this}flatten(e=0,t=-1){return this.clone().flatten_(e,t)}view(...e){let t=-1;for(let r=0;rn!==t?e*r:e,1);e[t]=this.data.length/r}return new s(this.type,this.data,e)}neg_(){for(let e=0;e1!==e):"number"==typeof t?1===e[t]&&e.splice(t,1):Array.isArray(t)&&(e=e.filter((e,r)=>1!==e||!t.includes(r))),e}function c(e,t){return t=f(t,e.length+1),(e=e.slice()).splice(t,0,1),e}function f(e,t,r=null){if(e<-t||e>=t)throw Error(`IndexError: index ${e} is out of bounds for dimension${null===r?"":" "+r} with size ${t}`);return e<0&&(e=(e%t+t)%t),e}function d(e,t=0){t=f(t,e[0].dims.length);let r=e[0].dims.slice();r[t]=e.reduce((e,r)=>e+r.dims[t],0);let n=r.reduce((e,t)=>e*t,1),i=new e[0].data.constructor(n),o=e[0].type;if(0===t){let t=0;for(let r of e)i.set(r.data,t),t+=r.data.length}else{let n=0;for(let o=0;o=0;--i){let e=a.dims[i],u=s%e;i===t&&(u+=n),o+=u*l,l*=r[i],s=Math.floor(s/e)}i[o]=a.data[e]}n+=a.dims[t]}}return new s(o,i,r)}function p(e,t=0){return d(e.map(e=>e.unsqueeze(t)),t)}function m(e,t=null,r=1,n=!1){if(null===t){let t=e.data.reduce((e,t)=>e+t,0)/e.data.length,n=Math.sqrt(e.data.reduce((e,r)=>e+(r-t)**2,0)/(e.data.length-r)),i=new s(e.type,[t],[]);return[new s(e.type,[n],[]),i]}t=f(t,e.dims.length);let i=g(e,t,n),o=e.dims.slice();o[t]=1;let a=new e.data.constructor(e.data.length/e.dims[t]);for(let r=0;r=0;--i){let r=e.dims[i];i!==t&&(n+=a%r*s,s*=o[i]),a=Math.floor(a/r)}a[n]+=(e.data[r]-i.data[n])**2}for(let n=0;ne+t,0);return new s(e.type,[t/e.data.length],[])}t=f(t,e.dims.length);let n=e.dims.slice();n[t]=1;let i=new e.data.constructor(e.data.length/e.dims[t]);for(let r=0;r=0;--i){let r=e.dims[i];i!==t&&(o+=a%r*s,s*=n[i]),a=Math.floor(a/r)}i[o]+=e.data[r]}if(1!==e.dims[t])for(let r=0;r0||l>0;)switch(u.push(a-1),h.push(l-1),o[a][l].item()){case 0:--a,--l;break;case 1:--a;break;case 2:--l;break;default:throw Error(`Internal error in dynamic time warping. Unexpected trace[${a}, ${l}]. Please file a bug report.`)}return u.reverse(),h.reverse(),[u,h]}function w(e){var t;return new s("int64",new BigInt64Array((t=e.dims).reduce((e,t)=>e*t,1)).fill(1n),t)}function _(e,t){if(2!==e.dims.length)throw Error("The tensor must have 2 dimensions");if(e.dims.at(-1)%8!=0)throw Error("The last dimension of the tensor must be a multiple of 8");if(!["binary","ubinary"].includes(t))throw Error("The precision must be either 'binary' or 'ubinary'");let r="binary"===t,n=r?Int8Array:Uint8Array,i=e.data,o=new n(i.length/8);for(let e=0;e0?1:0,n=Math.floor(e/8),a=e%8;o[n]|=t<<7-a,r&&0===a&&(o[n]-=128)}return new s(r?"int8":"uint8",o,[e.dims[0],e.dims[1]/8])}},2869:function(e,t,r){"use strict";r.d(t,{$:function(){return w}});var n=r(9235),i=r(8411),o=r(2202),a=r(5377),s=r(2265),l=r(2988),u=r(3950),h=r(929),c=r(5275),f=["animating","color","hidesWhenStopped","size","style"],d=e=>s.createElement("circle",{cx:"16",cy:"16",fill:"none",r:"14",strokeWidth:"4",style:e}),p=s.forwardRef((e,t)=>{var r=e.animating,n=void 0===r||r,i=e.color,o=void 0===i?"#1976D2":i,a=e.hidesWhenStopped,h=e.size,p=void 0===h?"small":h,y=e.style,w=(0,u.Z)(e,f),_=s.createElement("svg",{height:"100%",viewBox:"0 0 32 32",width:"100%"},d({stroke:o,opacity:.2}),d({stroke:o,strokeDasharray:80,strokeDashoffset:60}));return s.createElement(c.Z,(0,l.Z)({},w,{"aria-valuemax":1,"aria-valuemin":0,ref:t,role:"progressbar",style:[m.container,y]}),s.createElement(c.Z,{children:_,style:["number"==typeof p?{height:p,width:p}:g[p],m.animation,!n&&m.animationPause,!n&&(void 0===a||a)&&m.hidesWhenStopped]}))});p.displayName="ActivityIndicator";var m=h.Z.create({container:{alignItems:"center",justifyContent:"center"},hidesWhenStopped:{visibility:"hidden"},animation:{animationDuration:"0.75s",animationKeyframes:[{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"},animationPause:{animationPlayState:"paused"}}),g=h.Z.create({small:{width:20,height:20},large:{width:36,height:36}}),y=r(2281);let w=a.FA.extractable((0,n.Y)(s.forwardRef((e,t)=>{let{size:r,color:n,...s}=e,l=(0,i.Fg)(),u=n;return u&&"$"===u[0]&&(u=(0,o.lk)(l[u])),(0,y.jsx)(a.FA,{ref:t,...s,children:(0,y.jsx)(p,{size:r,color:u})})}),{componentName:"Spinner"}))},9175:function(e,t,r){"use strict";r.d(t,{K:function(){return P}});var n=r(281),i=r(4975),o=r(9046),a=r(2202),s=r(8306),l=r(8970),u=r(6748);let h=(e="$true",t)=>{let{props:r}=t,n=(0,s.f)(e,t),i=(0,l.H)(e,t),o=r.rows??r.numberOfLines,h="number"==typeof o?o*(0,a.Ve)(i.lineHeight):"auto",c=(0,u.Pj)(e,{shift:-2,bounds:[2]}),f=(0,u.Pj)(e,{shift:-1,bounds:[2]});return{...n,...i,paddingVertical:c,paddingHorizontal:f,height:h}};var c=r(8411),f=r(9087),d=r(2265);let p=(e,t)=>()=>{};var m=r(2281),g=r(5803),y=r(7792),w=r(2675),_=r(9647),v=r(1435),b=r(9926),x=r(5158),E=r(4886),k=r(3201),A=r(929),C=r(3013),S=r(131),z=(e,t)=>{var r=e.selectionEnd,n=e.selectionStart,i=t.start,o=t.end;return i!==n||o!==r},I=(e,t)=>{if(z(e,t)){var r=t.start,n=t.end;try{e.setSelectionRange(r,n||r)}catch(e){}}},M=Object.assign({},y.lG,y.LO,y._T,y.YB,y.Uy,y.hJ,y.E5,y.vr,{autoCapitalize:!0,autoComplete:!0,autoCorrect:!0,autoFocus:!0,defaultValue:!0,disabled:!0,lang:!0,maxLength:!0,onChange:!0,onScroll:!0,placeholder:!0,pointerEvents:!0,readOnly:!0,rows:!0,spellCheck:!0,value:!0,type:!0}),T=e=>(0,w.Z)(e,M),O=null,B=d.forwardRef((e,t)=>{var r,n,i=e.autoCapitalize,o=e.autoComplete,a=e.autoCompleteType,s=e.autoCorrect,l=void 0===s||s,u=e.blurOnSubmit,h=e.caretHidden,c=e.clearTextOnFocus,f=e.dir,p=e.editable,m=e.enterKeyHint,y=e.inputMode,w=e.keyboardType,A=e.multiline,z=void 0!==A&&A,M=e.numberOfLines,B=e.onBlur,$=e.onChange,U=e.onChangeText,L=e.onContentSizeChange,R=e.onFocus,F=e.onKeyPress,N=e.onLayout,P=e.onMoveShouldSetResponder,V=e.onMoveShouldSetResponderCapture,D=e.onResponderEnd,q=e.onResponderGrant,H=e.onResponderMove,W=e.onResponderReject,G=e.onResponderRelease,X=e.onResponderStart,K=e.onResponderTerminate,Z=e.onResponderTerminationRequest,J=e.onScrollShouldSetResponder,Y=e.onScrollShouldSetResponderCapture,Q=e.onSelectionChange,ee=e.onSelectionChangeShouldSetResponder,et=e.onSelectionChangeShouldSetResponderCapture,er=e.onStartShouldSetResponder,en=e.onStartShouldSetResponderCapture,ei=e.onSubmitEditing,eo=e.placeholderTextColor,ea=e.readOnly,es=e.returnKeyType,el=e.rows,eu=e.secureTextEntry,eh=void 0!==eu&&eu,ec=e.selection,ef=e.selectTextOnFocus,ed=e.showSoftInputOnFocus,ep=e.spellCheck;if(null!=y)n=y,r="email"===y?"email":"tel"===y?"tel":"search"===y?"search":"url"===y?"url":"text";else if(null!=w)switch((0,S.O)("keyboardType","keyboardType is deprecated. Use inputMode."),w){case"email-address":r="email";break;case"number-pad":case"numeric":n="numeric";break;case"decimal-pad":n="decimal";break;case"phone-pad":r="tel";break;case"search":case"web-search":r="search";break;case"url":r="url";break;default:r="text"}eh&&(r="password");var em=d.useRef({height:null,width:null}),eg=d.useRef(null),ey=d.useRef(null),ew=d.useRef(!1);d.useEffect(()=>{eg.current&&ey.current&&I(eg.current,ey.current),ew.current=eh},[eh]);var e_=d.useCallback(e=>{if(z&&L&&null!=e){var t=e.scrollHeight,r=e.scrollWidth;(t!==em.current.height||r!==em.current.width)&&(em.current.height=t,em.current.width=r,L({nativeEvent:{contentSize:{height:em.current.height,width:em.current.width}}}))}},[z,L]),ev=d.useMemo(()=>e=>{null!=e&&(e.clear=function(){null!=e&&(e.value="")},e.isFocused=function(){return null!=e&&C.Z.currentlyFocusedField()===e},e_(e))},[e_]);(0,v.Z)(()=>{var e=eg.current;null!=e&&null!=ec&&I(e,ec),document.activeElement===e&&(C.Z._currentlyFocusedNode=e)},[eg,ec]),(0,_.Z)(eg,N),(0,E.Z)(eg,{onMoveShouldSetResponder:P,onMoveShouldSetResponderCapture:V,onResponderEnd:D,onResponderGrant:q,onResponderMove:H,onResponderReject:W,onResponderRelease:G,onResponderStart:X,onResponderTerminate:K,onResponderTerminationRequest:Z,onScrollShouldSetResponder:J,onScrollShouldSetResponderCapture:Y,onSelectionChangeShouldSetResponder:ee,onSelectionChangeShouldSetResponderCapture:et,onStartShouldSetResponder:er,onStartShouldSetResponderCapture:en});var eb=(0,k.PE)().direction,ex=T(e);ex.autoCapitalize=void 0===i?"sentences":i,ex.autoComplete=o||a||"on",ex.autoCorrect=l?"on":"off",ex.dir=void 0!==f?f:"auto",null!=es&&(0,S.O)("returnKeyType","returnKeyType is deprecated. Use enterKeyHint."),ex.enterKeyHint=m||es,ex.inputMode=n,ex.onBlur=function(e){C.Z._currentlyFocusedNode=null,B&&(e.nativeEvent.text=e.target.value,B(e))},ex.onChange=function(e){var t=e.target,r=t.value;e.nativeEvent.text=r,e_(t),$&&$(e),U&&U(r)},ex.onFocus=function(e){var t=e.target;R&&(e.nativeEvent.text=t.value,R(e)),null!=t&&(C.Z._currentlyFocusedNode=t,c&&(t.value=""),ef&&(null!=O&&clearTimeout(O),O=setTimeout(()=>{null!=t&&t.select()},0)))},ex.onKeyDown=function(e){var t=e.target;e.stopPropagation();var r=!z,n=e.nativeEvent,i=n.isComposing||229===n.keyCode;F&&F(e),"Enter"!==e.key||e.shiftKey||i||e.isDefaultPrevented()||((u||!z)&&ei&&(e.preventDefault(),n.text=e.target.value,ei(e)),(null==u?r:u)&&null!=t&&setTimeout(()=>t.blur(),0))},ex.onSelect=function(e){try{var t=e.target,r=t.selectionStart,n=t.selectionEnd,i={start:r,end:n};Q&&(e.nativeEvent.selection=i,e.nativeEvent.text=e.target.value,Q(e)),ew.current===eh&&(ey.current=i)}catch(e){}},null!=p&&(0,S.O)("editable","editable is deprecated. Use readOnly."),ex.readOnly=!0===(void 0!==ea&&ea)||!1===p,null!=M&&(0,S.O)("numberOfLines","TextInput numberOfLines is deprecated. Use rows."),ex.rows=z?null!=el?el:M:1,ex.spellCheck=null!=ep?ep:l,ex.style=[{"--placeholderTextColor":eo},j.textinput$raw,j.placeholder,e.style,h&&j.caretHidden],ex.type=z?void 0:r,ex.virtualkeyboardpolicy=!1===ed?"manual":"auto";var eE=(0,x.Z)(ex),ek=(0,b.Z)(eg,eE,ev,t);ex.ref=ek;var eA=null!=e.lang?(0,k.w1)(e.lang):null,eC=e.dir||eA;return(0,g.Z)(z?"textarea":"input",ex,{writingDirection:eC||eb})});B.displayName="TextInput",B.State=C.Z;var j=A.Z.create({textinput$raw:{MozAppearance:"textfield",WebkitAppearance:"none",backgroundColor:"transparent",border:"0 solid black",borderRadius:0,boxSizing:"border-box",font:"14px System",margin:0,padding:0,resize:"none"},placeholder:{placeholderTextColor:"var(--placeholderTextColor)"},caretHidden:{caretColor:"transparent"}}),$=r(357);let U={size:"$true",fontFamily:"$body",borderWidth:1,outlineWidth:0,color:"$color",...n.$L?{tabIndex:0}:{focusable:!0},borderColor:"$borderColor",backgroundColor:"$background",minWidth:0,hoverStyle:{borderColor:"$borderColorHover"},focusStyle:{borderColor:"$borderColorFocus"},focusVisibleStyle:{outlineColor:"$outlineColor",outlineWidth:2,outlineStyle:"solid"}},L=(0,i.z)(B,{name:"Input",variants:{unstyled:{false:U},size:{"...size":(e="$true",t)=>{if(t.props.multiline||t.props.numberOfLines>1)return h(e,t);let r=(0,s.f)(e,t),i=(0,u.Pj)(e,{shift:-1,bounds:[2]}),o=(0,l.H)(e,t);return!n.$L&&o&&delete o.lineHeight,{...o,...r,paddingHorizontal:i}}},disabled:{true:{}}},defaultVariants:{unstyled:"1"===$.env.TAMAGUI_HEADLESS}},{isInput:!0,accept:{placeholderTextColor:"color",selectionColor:"color"}});function R(e,t){let r=(0,c.Fg)(),{onChangeText:n,ref:i}=function({isInput:e,props:t,ref:r}){let{id:n,onChangeText:i,value:a,defaultValue:s}=t,l=(0,d.useRef)(a||s||""),u=(0,d.useRef)(),h=(0,d.useCallback)(t=>{n&&t&&(u.current?.(),u.current=p(n,{focus:t.focus,...e&&{focusAndSelect(){t.focus(),t.setSelection&&"string"==typeof l.current&&t.setSelection(0,l.current.length)}}}))},[e,n]),c=(0,o.FE)(r,h);return(0,d.useEffect)(()=>()=>{u.current?.()},[]),{ref:c,onChangeText:(0,f.z)(e=>{l.current=e,i?.(e)})}}({props:e,ref:t,isInput:!0}),a=e.placeholderTextColor,s=r[a]?.get()??a??r.placeholderColor?.get();return{ref:i,readOnly:e.disabled,...e,placeholderTextColor:s,onChangeText:n}}L.styleable((e,t)=>{let r=(0,d.useRef)(null),n=R(e,(0,o.ex)(t,r));return(0,m.jsx)(L,{...n})});var F=r(357);let N=(0,i.z)(L,{name:"TextArea",multiline:!0,whiteSpace:"pre-wrap",variants:{unstyled:{false:{height:"auto",...U}},size:{"...size":h}},defaultVariants:{unstyled:"1"===F.env.TAMAGUI_HEADLESS}}),P=N.styleable((e,t)=>{let r=(0,d.useRef)(null),i=R(e,(0,o.ex)(t,r)),a={[n.$L?"rows":"numberOfLines"]:e.unstyled?void 0:4};return(0,m.jsx)(N,{...a,...i})})}}]); \ No newline at end of file diff --git a/_next/static/chunks/app/[model]/layout-889e22c304268157.js b/_next/static/chunks/app/[model]/layout-81c98ff8b290c9fd.js similarity index 67% rename from _next/static/chunks/app/[model]/layout-889e22c304268157.js rename to _next/static/chunks/app/[model]/layout-81c98ff8b290c9fd.js index 085ef4342c5b8e7a2def960d7455b625f7bcb996..9ecaf0930b88e04d39a69afba8fcc41aedde648c 100644 --- a/_next/static/chunks/app/[model]/layout-889e22c304268157.js +++ b/_next/static/chunks/app/[model]/layout-81c98ff8b290c9fd.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[762],{9743:function(e,t,n){Promise.resolve().then(n.bind(n,9115))},9115:function(e,t,n){"use strict";n.d(t,{default:function(){return v}});var s=n(2281),i=n(6657),r=n(6855),l=n(2890),a=n(896),c=n(3742),o=n(7138),u=n(6463),h=n(5295),d=n(5377),m=n(391),x=n(2026),j=n(1170),g=n(6505),f=n(5737),p=n(3187);let y={dark:(0,s.jsx)(l.J,{}),light:(0,s.jsx)(a.k,{}),system:(0,s.jsx)(r.u,{})},b=[{label:"NLLB200",slug:"nllb200",tooltip:"No Language Left Behind"},{label:"VinAI Vi-En",slug:"vinaivi2en",tooltip:"VinAI translate Vietnamese to English v2"},{label:"VinAI En-Vi",slug:"vinaien2vi",tooltip:"VinAI translate English to Vietnamese v2"},{label:"VietAI Vi-En",slug:"vietai",tooltip:"VietAI Vietnamese <-> English translation"}];function v(e){let{children:t}=e,[n,r]=(0,c.KO)(i.themeAtom),l=(0,u.usePathname)();return(0,s.jsx)(h.p,{h:"100%",w:"100%",br:"$4",children:(0,s.jsxs)(d.FA,{f:1,h:"100%",w:"100%",jc:"center",ai:"center",p:"$4",gap:"$4",children:[(0,s.jsxs)(d.FA,{bc:"$",jc:"center",gap:"$4",children:[(0,s.jsx)(m.H1,{ta:"center",children:"Transformers.js + Tamagui"}),(0,s.jsx)(x.J,{ta:"center",children:"ML-powered multilingual translation directly in your browser!"})]}),(0,s.jsxs)(d.sL,{jc:"center",gap:"$4",children:[(0,s.jsx)(x.J,{children:"Model:"}),b.map(e=>{let{label:t,slug:n,tooltip:i}=e;return(0,s.jsxs)(j.u,{placement:"bottom",children:[(0,s.jsx)(j.u.Trigger,{children:(0,s.jsx)(o.default,{href:"/".concat(n),style:{textDecoration:"".concat(l==="/".concat(n)?"none":"underline")},children:(0,s.jsx)(x.J,{size:"$4",children:t})})}),(0,s.jsxs)(j.u.Content,{enterStyle:{x:0,y:-5,opacity:0,scale:.9},exitStyle:{x:0,y:-5,opacity:0,scale:.9},scale:1,x:0,y:0,opacity:1,animation:["quick",{opacity:{overshootClamping:!0}}],children:[(0,s.jsx)(j.u.Arrow,{}),(0,s.jsx)(x.J,{size:"$2",lineHeight:"$1",children:i})]})]},n)})]}),(0,s.jsx)(g.Z,{als:"stretch"}),t,(0,s.jsx)(d.sL,{pos:"absolute",b:"$4",children:(0,s.jsxs)(x.J,{ta:"center",children:["Made with"," ",(0,s.jsx)(f.e,{href:"https://github.com/xenova/transformers.js",children:"\uD83E\uDD17 Transformers.js"})," + ",(0,s.jsx)(f.e,{href:"https://github.com/tamagui/tamagui",children:"Tamagui \uD83E\uDE84"}),". ",(0,s.jsx)(f.e,{href:"https://github.com/huuquyet/tranlator-tamagui",children:"Give it a ⭐️"})]})}),(0,s.jsx)(p.zx,{pos:"absolute",b:40,l:30,icon:y[n],onPress:r,circular:!0})]})})}},6657:function(e,t,n){"use strict";n.d(t,{default:function(){return x},themeAtom:function(){return m}});var s=n(2281),i=n(9910),r=n(9010),l=n(1542),a=n(542),c=n(3742),o=n(6463),u=n(6608),h=n(7376);let d=(0,n(1564)._)(h.vc),m=function(e){let t=(0,i.cn)(e,(e,n,s)=>{let i="dark"===e(t)?"light":"light"===e(t)?"system":"dark";n(t,i)});return t}("system");function x(e){let{children:t,...n}=e,[i,h]=(0,r.U)(),x=(0,l.P)(),[j]=(0,c.KO)(m);return(0,o.useServerInsertedHTML)(()=>(0,s.jsx)("style",{dangerouslySetInnerHTML:{__html:d.getNewCSS({exclude:"design-system"})}})),(0,s.jsx)(a.G,{onChangeTheme:h,children:(0,s.jsx)(u.r,{config:d,defaultTheme:"system"===j?x.systemTheme:j,disableInjectCSS:!0,...n,children:t})})}}},function(e){e.O(0,[143,466,107,876,971,190,744],function(){return e(e.s=9743)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[762],{9743:function(e,t,n){Promise.resolve().then(n.bind(n,9115))},9115:function(e,t,n){"use strict";n.d(t,{default:function(){return v}});var s=n(2281),i=n(6657),r=n(6855),l=n(2890),a=n(896),c=n(3742),o=n(7138),u=n(6463),h=n(5295),d=n(5377),m=n(391),x=n(2026),j=n(1170),g=n(6505),f=n(5737),p=n(3187);let y={dark:(0,s.jsx)(l.J,{}),light:(0,s.jsx)(a.k,{}),system:(0,s.jsx)(r.u,{})},b=[{label:"NLLB200",slug:"nllb200",tooltip:"No Language Left Behind"},{label:"VinAI Vi-En",slug:"vinaivi2en",tooltip:"VinAI translate Vietnamese to English v2"},{label:"VinAI En-Vi",slug:"vinaien2vi",tooltip:"VinAI translate English to Vietnamese v2"},{label:"VietAI Vi-En",slug:"vietai",tooltip:"VietAI Vietnamese <-> English translation"}];function v(e){let{children:t}=e,[n,r]=(0,c.KO)(i.themeAtom),l=(0,u.usePathname)();return(0,s.jsx)(h.p,{h:"100%",w:"100%",br:"$4",children:(0,s.jsxs)(d.FA,{f:1,h:"100%",w:"100%",jc:"center",ai:"center",p:"$4",gap:"$4",children:[(0,s.jsxs)(d.FA,{bc:"$",jc:"center",gap:"$4",children:[(0,s.jsx)(m.H1,{ta:"center",children:"Transformers.js + Tamagui"}),(0,s.jsx)(x.J,{ta:"center",children:"ML-powered multilingual translation directly in your browser!"})]}),(0,s.jsxs)(d.sL,{jc:"center",gap:"$4",children:[(0,s.jsx)(x.J,{children:"Model:"}),b.map(e=>{let{label:t,slug:n,tooltip:i}=e;return(0,s.jsxs)(j.u,{placement:"bottom",children:[(0,s.jsx)(j.u.Trigger,{children:(0,s.jsx)(o.default,{href:"/".concat(n),style:{textDecoration:"".concat(l==="/".concat(n)?"none":"underline")},children:(0,s.jsx)(x.J,{size:"$4",children:t})})}),(0,s.jsxs)(j.u.Content,{enterStyle:{x:0,y:-5,opacity:0,scale:.9},exitStyle:{x:0,y:-5,opacity:0,scale:.9},scale:1,x:0,y:0,opacity:1,animation:["quick",{opacity:{overshootClamping:!0}}],children:[(0,s.jsx)(j.u.Arrow,{}),(0,s.jsx)(x.J,{size:"$2",lineHeight:"$1",children:i})]})]},n)})]}),(0,s.jsx)(g.Z,{als:"stretch"}),t,(0,s.jsx)(d.sL,{pos:"absolute",b:"$4",children:(0,s.jsxs)(x.J,{ta:"center",children:["Made with"," ",(0,s.jsx)(f.e,{href:"https://github.com/xenova/transformers.js",children:"\uD83E\uDD17 Transformers.js"})," + ",(0,s.jsx)(f.e,{href:"https://github.com/tamagui/tamagui",children:"Tamagui \uD83E\uDE84"}),". ",(0,s.jsx)(f.e,{href:"https://github.com/huuquyet/tranlator-tamagui",children:"Give it a ⭐️"})]})}),(0,s.jsx)(p.zx,{pos:"absolute",b:40,l:30,icon:y[n],onPress:r,circular:!0})]})})}},6657:function(e,t,n){"use strict";n.d(t,{default:function(){return f},themeAtom:function(){return j}});var s=n(2281),i=n(8059),r=n.n(i),l=n(9910),a=n(9010),c=n(1542),o=n(542),u=n(3742),h=n(6463),d=n(6608),m=n(7376);let x=(0,n(1564)._)(m.vc),j=function(e){let t=(0,l.cn)(e,(e,n,s)=>{let i="dark"===e(t)?"light":"light"===e(t)?"system":"dark";n(t,i)});return t}("system"),g=e=>{let{children:t,...n}=e,[i,r]=(0,a.U)(),l=(0,c.P)(),[h]=(0,u.KO)(j);return(0,s.jsx)(o.G,{onChangeTheme:r,children:(0,s.jsx)(d.r,{config:x,defaultTheme:"system"===h?l.systemTheme:h,disableInjectCSS:!0,...n,children:t})})};function f(e){let{children:t}=e;return(0,h.useServerInsertedHTML)(()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("style",{dangerouslySetInnerHTML:{__html:x.getNewCSS()}}),(0,s.jsx)("style",{dangerouslySetInnerHTML:{__html:x.getCSS({exclude:"design-system"})}}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"document.documentElement.classList.add('t_unmounted')"},className:"jsx-6d3d93ee53889f68"}),(0,s.jsx)(r(),{id:"6d3d93ee53889f68",children:'html{font-family:" "}'})]})),(0,s.jsx)(g,{children:t})}}},function(e){e.O(0,[143,466,755,876,971,190,744],function(){return e(e.s=9743)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/[model]/page-1ad28b3ad643ed0e.js b/_next/static/chunks/app/[model]/page-1ad28b3ad643ed0e.js new file mode 100644 index 0000000000000000000000000000000000000000..dc5f934660f69fd18dc1fec27d5f7f2444c83a92 --- /dev/null +++ b/_next/static/chunks/app/[model]/page-1ad28b3ad643ed0e.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[400],{495:function(){},7147:function(){},1418:function(){},8741:function(){},8386:function(){},3342:function(){},8997:function(e,n,t){Promise.resolve().then(t.bind(t,9750))},9750:function(e,n,t){"use strict";t.r(n),t.d(n,{Translator:function(){return y}});var s=t(2281),a=t(6916),l=t(9078),r=t(2265),i=t(5377),c=t(9175),o=t(3187),u=t(2869),d=t(8030),h=t(1957),x=t(1569),j=t(1378),f=t(2026),g=t(312),p=t(3370),m=t(1510);let b=e=>{let{type:n,onChange:t,defaultLanguage:a,disableSelect:l,LANGUAGES:r}=e;return(0,s.jsxs)(i.sL,{f:1,ai:"center",jc:"space-evenly",children:[(0,s.jsxs)(f.J,{children:[n,": "]}),(0,s.jsxs)(g.Ph,{onValueChange:t,defaultValue:a,children:[(0,s.jsx)(g.Ph.Trigger,{w:"$15",iconAfter:x._,disabled:l,children:(0,s.jsx)(g.Ph.Value,{placeholder:"Languages"})}),(0,s.jsx)(p.Tr,{when:"sm",platform:"touch",children:(0,s.jsxs)(m.yo,{native:!1,modal:!0,dismissOnSnapToBottom:!0,animation:"quick",children:[(0,s.jsx)(m.yo.Frame,{children:(0,s.jsx)(m.yo.ScrollView,{children:(0,s.jsx)(p.Tr.Contents,{})})}),(0,s.jsx)(m.yo.Overlay,{animation:"lazy",enterStyle:{opacity:0},exitStyle:{opacity:0}})]})}),(0,s.jsxs)(g.Ph.Content,{zIndex:2e5,children:[(0,s.jsxs)(g.Ph.ScrollUpButton,{ai:"center",jc:"center",pos:"relative",w:"100%",h:"$3",children:[(0,s.jsx)(i.FA,{zi:10,children:(0,s.jsx)(j.K,{size:20})}),(0,s.jsx)(d.o,{start:[0,0],end:[0,1],fullscreen:!0,colors:["$background","transparent"],br:"$4"})]}),(0,s.jsx)(g.Ph.Viewport,{minWidth:"$15",children:(0,s.jsxs)(g.Ph.Group,{children:[(0,s.jsx)(g.Ph.Label,{children:"Languages"}),Object.entries(r).map((e,n)=>{let[t,a]=e;return(0,s.jsxs)(g.Ph.Item,{index:n,value:a,children:[(0,s.jsx)(g.Ph.ItemText,{children:t}),(0,s.jsx)(g.Ph.ItemIndicator,{ml:"auto",children:(0,s.jsx)(h.J,{size:16})})]},t)})]})}),(0,s.jsxs)(g.Ph.ScrollDownButton,{ai:"center",jc:"center",pos:"relative",w:"100%",h:"$3",children:[(0,s.jsx)(i.FA,{zi:10,children:(0,s.jsx)(x._,{size:20})}),(0,s.jsx)(d.o,{start:[0,0],end:[0,1],fullscreen:!0,colors:["transparent","$background"],br:"$4"})]})]})]})]})};var S=t(663);let $=e=>{let{text:n,percentage:t}=e;return t=null!=t?t:0,(0,s.jsxs)(i.FA,{h:"$8",ai:"center",gap:"$4",children:[(0,s.jsxs)(f.J,{h:30,o:.5,children:[n," "]}),100!==t&&(0,s.jsx)(S.Ex,{size:"$6",value:t,children:(0,s.jsx)(S.Ex.Indicator,{animation:"bouncy"})})]})},y=e=>{let{initSource:n,initTarget:t,model:d,example:h,size:x,disableSelect:j,LANGUAGES:f}=e,[g,p]=(0,r.useState)(!0),[m,S]=(0,r.useState)({}),[y,v]=(0,r.useState)(0),[_,w]=(0,r.useState)("Loading ".concat(d," model (").concat(x,")...")),[z,P]=(0,r.useState)(h),[k,L]=(0,r.useState)(n),[A,E]=(0,r.useState)(t),[T,C]=(0,r.useState)(""),F=(0,r.useRef)(null);(0,r.useEffect)(()=>{var e;null!==(e=F.current)&&void 0!==e||(F.current=(0,l.EUT)("translation",d,{quantized:!0,progress_callback:e=>{"progress"===e.status&&S(n=>({...n,[e.file]:e}))}}))},[]),(0,r.useEffect)(()=>{Object.values(m);let e=0,n=0;for(let t of Object.values(m))e+=t.loaded,n+=t.total;let t=e/n*100;v(t),w(100===t?"Ready!":"Loading ".concat(d," model (").concat(t.toFixed(2),"% of ").concat(x,")...")),p(100!==t)},[m]);let O=async()=>{p(!0),w("Translating..."),C("");let e=await F.current;await e(z,{src_lang:k,tgt_lang:A,callback_function:async n=>{C(e.tokenizer.decode(n[0].output_token_ids,{skip_special_tokens:!0})),w("Done!"),p(!1)}})};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i.sL,{gap:"$4",children:[(0,s.jsxs)(i.FA,{gap:"$4",children:[(0,s.jsx)(b,{type:"Source",defaultLanguage:n,onChange:L,disableSelect:j,LANGUAGES:f}),(0,s.jsx)(c.K,{value:z,size:"$6",maw:340,rows:7,multiline:!0,br:"$4",onChange:P})]}),(0,s.jsxs)(i.FA,{gap:"$4",children:[(0,s.jsx)(b,{type:"Target",defaultLanguage:t,onChange:E,disableSelect:j,LANGUAGES:f}),(0,s.jsx)(c.K,{value:T,size:"$6",maw:340,rows:7,multiline:!0,br:"$4",readOnly:!0})]})]}),(0,s.jsx)(o.zx,{disabled:g,icon:g?(0,s.jsx)(u.$,{size:"small"}):(0,s.jsx)(a.l,{}),onPress:O,children:"Translate"}),(0,s.jsx)($,{text:_,percentage:y})]})}}},function(e){e.O(0,[165,132,193,143,466,946,971,190,744],function(){return e(e.s=8997)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/[model]/page-7fa5ce95c1379084.js b/_next/static/chunks/app/[model]/page-7fa5ce95c1379084.js deleted file mode 100644 index 3ac5f8100e3cf4c6756a5e5dc9d5dd15061a303b..0000000000000000000000000000000000000000 --- a/_next/static/chunks/app/[model]/page-7fa5ce95c1379084.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[400],{495:function(){},7147:function(){},1418:function(){},8741:function(){},319:function(){},8386:function(){},3342:function(){},8997:function(e,n,t){Promise.resolve().then(t.bind(t,9750))},9750:function(e,n,t){"use strict";t.r(n),t.d(n,{Translator:function(){return y}});var s=t(2281),a=t(6916),l=t(9078),r=t(2265),i=t(5377),c=t(9175),o=t(3187),u=t(2869),d=t(8030),h=t(1957),x=t(1569),j=t(1378),f=t(2026),g=t(312),p=t(3370),m=t(1510);let b=e=>{let{type:n,onChange:t,defaultLanguage:a,disableSelect:l,LANGUAGES:r}=e;return(0,s.jsxs)(i.sL,{f:1,ai:"center",jc:"space-evenly",children:[(0,s.jsxs)(f.J,{children:[n,": "]}),(0,s.jsxs)(g.Ph,{onValueChange:t,defaultValue:a,children:[(0,s.jsx)(g.Ph.Trigger,{w:"$15",iconAfter:x._,disabled:l,children:(0,s.jsx)(g.Ph.Value,{placeholder:"Languages"})}),(0,s.jsx)(p.Tr,{when:"sm",platform:"touch",children:(0,s.jsxs)(m.yo,{native:!1,modal:!0,dismissOnSnapToBottom:!0,animation:"quick",children:[(0,s.jsx)(m.yo.Frame,{children:(0,s.jsx)(m.yo.ScrollView,{children:(0,s.jsx)(p.Tr.Contents,{})})}),(0,s.jsx)(m.yo.Overlay,{animation:"lazy",enterStyle:{opacity:0},exitStyle:{opacity:0}})]})}),(0,s.jsxs)(g.Ph.Content,{zIndex:2e5,children:[(0,s.jsxs)(g.Ph.ScrollUpButton,{ai:"center",jc:"center",pos:"relative",w:"100%",h:"$3",children:[(0,s.jsx)(i.FA,{zi:10,children:(0,s.jsx)(j.K,{size:20})}),(0,s.jsx)(d.o,{start:[0,0],end:[0,1],fullscreen:!0,colors:["$background","transparent"],br:"$4"})]}),(0,s.jsx)(g.Ph.Viewport,{minWidth:"$15",children:(0,s.jsxs)(g.Ph.Group,{children:[(0,s.jsx)(g.Ph.Label,{children:"Languages"}),Object.entries(r).map((e,n)=>{let[t,a]=e;return(0,s.jsxs)(g.Ph.Item,{index:n,value:a,children:[(0,s.jsx)(g.Ph.ItemText,{children:t}),(0,s.jsx)(g.Ph.ItemIndicator,{ml:"auto",children:(0,s.jsx)(h.J,{size:16})})]},t)})]})}),(0,s.jsxs)(g.Ph.ScrollDownButton,{ai:"center",jc:"center",pos:"relative",w:"100%",h:"$3",children:[(0,s.jsx)(i.FA,{zi:10,children:(0,s.jsx)(x._,{size:20})}),(0,s.jsx)(d.o,{start:[0,0],end:[0,1],fullscreen:!0,colors:["transparent","$background"],br:"$4"})]})]})]})]})};var S=t(663);let $=e=>{let{text:n,percentage:t}=e;return t=null!=t?t:0,(0,s.jsxs)(i.FA,{h:"$8",ai:"center",gap:"$4",children:[(0,s.jsxs)(f.J,{h:30,o:.5,children:[n," "]}),100!==t&&(0,s.jsx)(S.Ex,{size:"$6",value:t,children:(0,s.jsx)(S.Ex.Indicator,{animation:"bouncy"})})]})},y=e=>{let{initSource:n,initTarget:t,model:d,example:h,size:x,disableSelect:j,LANGUAGES:f}=e,[g,p]=(0,r.useState)(!0),[m,S]=(0,r.useState)({}),[y,v]=(0,r.useState)(0),[_,w]=(0,r.useState)("Loading ".concat(d," model (").concat(x,")...")),[z,P]=(0,r.useState)(h),[k,L]=(0,r.useState)(n),[A,E]=(0,r.useState)(t),[T,C]=(0,r.useState)(""),F=(0,r.useRef)(null);(0,r.useEffect)(()=>{var e;null!==(e=F.current)&&void 0!==e||(F.current=(0,l.EUT)("translation",d,{quantized:!0,progress_callback:e=>{"progress"===e.status&&S(n=>({...n,[e.file]:e}))}}))},[]),(0,r.useEffect)(()=>{Object.values(m);let e=0,n=0;for(let t of Object.values(m))e+=t.loaded,n+=t.total;let t=e/n*100;v(t),w(100===t?"Ready!":"Loading ".concat(d," model (").concat(t.toFixed(2),"% of ").concat(x,")...")),p(100!==t)},[m]);let O=async()=>{p(!0),w("Translating..."),C("");let e=await F.current;await e(z,{src_lang:k,tgt_lang:A,callback_function:async n=>{C(e.tokenizer.decode(n[0].output_token_ids,{skip_special_tokens:!0})),w("Done!"),p(!1)}})};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i.sL,{gap:"$4",children:[(0,s.jsxs)(i.FA,{gap:"$4",children:[(0,s.jsx)(b,{type:"Source",defaultLanguage:n,onChange:L,disableSelect:j,LANGUAGES:f}),(0,s.jsx)(c.K,{value:z,size:"$6",maw:340,rows:7,multiline:!0,br:"$4",onChange:P})]}),(0,s.jsxs)(i.FA,{gap:"$4",children:[(0,s.jsx)(b,{type:"Target",defaultLanguage:t,onChange:E,disableSelect:j,LANGUAGES:f}),(0,s.jsx)(c.K,{value:T,size:"$6",maw:340,rows:7,multiline:!0,br:"$4",readOnly:!0})]})]}),(0,s.jsx)(o.zx,{disabled:g,icon:g?(0,s.jsx)(u.$,{size:"small"}):(0,s.jsx)(a.l,{}),onPress:O,children:"Translate"}),(0,s.jsx)($,{text:_,percentage:y})]})}}},function(e){e.O(0,[165,132,193,143,466,853,971,190,744],function(){return e(e.s=8997)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/_not-found/page-c5dd59427aa64169.js b/_next/static/chunks/app/_not-found/page-3a53a291d7cc6d0c.js similarity index 96% rename from _next/static/chunks/app/_not-found/page-c5dd59427aa64169.js rename to _next/static/chunks/app/_not-found/page-3a53a291d7cc6d0c.js index 5ff53a7e41967b2fb5f467d779871f1eb63e934f..79d46a2c8386fad37245a3b49f261d5adcb46725 100644 --- a/_next/static/chunks/app/_not-found/page-c5dd59427aa64169.js +++ b/_next/static/chunks/app/_not-found/page-3a53a291d7cc6d0c.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[409],{7589:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return n(5457)}])},5457:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}}),n(1609);let i=n(2281);n(2265);let o={fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},l={display:"inline-block"},r={display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},d={fontSize:14,fontWeight:400,lineHeight:"49px",margin:0};function s(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("title",{children:"404: This page could not be found."}),(0,i.jsx)("div",{style:o,children:(0,i.jsxs)("div",{children:[(0,i.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,i.jsx)("h1",{className:"next-error-h1",style:r,children:"404"}),(0,i.jsx)("div",{style:l,children:(0,i.jsx)("h2",{style:d,children:"This page could not be found."})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},function(e){e.O(0,[971,190,744],function(){return e(e.s=7589)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[409],{7589:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return n(5457)}])},5457:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}}),n(9920);let i=n(2281);n(2265);let o={fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},l={display:"inline-block"},r={display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},d={fontSize:14,fontWeight:400,lineHeight:"49px",margin:0};function s(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("title",{children:"404: This page could not be found."}),(0,i.jsx)("div",{style:o,children:(0,i.jsxs)("div",{children:[(0,i.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,i.jsx)("h1",{className:"next-error-h1",style:r,children:"404"}),(0,i.jsx)("div",{style:l,children:(0,i.jsx)("h2",{style:d,children:"This page could not be found."})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},function(e){e.O(0,[971,190,744],function(){return e(e.s=7589)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/layout-29d12073e48dc3e9.js b/_next/static/chunks/app/layout-29d12073e48dc3e9.js deleted file mode 100644 index 2fc3c172278be0e13d0837c27e5e837e5b7a4ad5..0000000000000000000000000000000000000000 --- a/_next/static/chunks/app/layout-29d12073e48dc3e9.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{9617:function(e,t,n){Promise.resolve().then(n.t.bind(n,4400,23)),Promise.resolve().then(n.bind(n,2944)),Promise.resolve().then(n.t.bind(n,8121,23)),Promise.resolve().then(n.bind(n,6657))},6657:function(e,t,n){"use strict";n.d(t,{default:function(){return h},themeAtom:function(){return m}});var r=n(2281),o=n(9910),a=n(9010),c=n(1542),i=n(542),s=n(3742),u=n(6463),l=n(6608),d=n(7376);let f=(0,n(1564)._)(d.vc),m=function(e){let t=(0,o.cn)(e,(e,n,r)=>{let o="dark"===e(t)?"light":"light"===e(t)?"system":"dark";n(t,o)});return t}("system");function h(e){let{children:t,...n}=e,[o,d]=(0,a.U)(),h=(0,c.P)(),[w]=(0,s.KO)(m);return(0,u.useServerInsertedHTML)(()=>(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:f.getNewCSS({exclude:"design-system"})}})),(0,r.jsx)(i.G,{onChangeTheme:d,children:(0,r.jsx)(l.r,{config:f,defaultTheme:"system"===w?h.systemTheme:w,disableInjectCSS:!0,...n,children:t})})}},4400:function(){},8121:function(){},2944:function(e,t,n){"use strict";n.d(t,{Analytics:function(){return f}});var r=n(2265),o=n(6463),a=()=>{window.va||(window.va=function(){for(var e=arguments.length,t=Array(e),n=0;n{!function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{debug:!0};if(!c())return;(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto";if("auto"===e){window.vam=i();return}window.vam=e})(t.mode),a(),t.beforeSend&&(null==(e=window.va)||e.call(window,"beforeSend",t.beforeSend));let n=t.scriptSrc||(s()?"https://va.vercel-scripts.com/v1/script.debug.js":"/_vercel/insights/script.js");if(document.head.querySelector('script[src*="'.concat(n,'"]')))return;let r=document.createElement("script");r.src=n,r.defer=!0,r.dataset.sdkn="@vercel/analytics"+(t.framework?"/".concat(t.framework):""),r.dataset.sdkv="1.2.2",t.disableAutoTrack&&(r.dataset.disableAutoTrack="1"),t.endpoint&&(r.dataset.endpoint=t.endpoint),t.dsn&&(r.dataset.dsn=t.dsn),r.onerror=()=>{let e=s()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log("[Vercel Web Analytics] Failed to load script from ".concat(n,". ").concat(e))},s()&&!1===t.debug&&(r.dataset.debug="false"),document.head.appendChild(r)}({framework:e.framework||"react",...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,r.useEffect)(()=>{e.route&&e.path&&function(e){var t;let{route:n,path:r}=e;null==(t=window.va)||t.call(window,"pageview",{route:n,path:r})}({route:e.route,path:e.path})},[e.route,e.path]),null}var l=()=>{let e=(0,o.useParams)(),t=(0,o.useSearchParams)(),n=(0,o.usePathname)(),r={...Object.fromEntries(t.entries()),...e||{}};return{route:e?function(e,t){if(!e||!t)return e;let n=e;try{for(let[e,r]of Object.entries(t)){let t=Array.isArray(r),o=t?r.join("/"):r,a=t?"...".concat(e):e,c=new RegExp("/".concat(o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"(?=[/?#]|$)"));c.test(n)&&(n=n.replace(c,"/[".concat(a,"]")))}return n}catch(t){return e}}(n,r):null,path:n}};function d(e){let{route:t,path:n}=l();return r.createElement(u,{path:n,route:t,...e,framework:"next"})}function f(e){return r.createElement(r.Suspense,{fallback:null},r.createElement(d,{...e}))}}},function(e){e.O(0,[843,120,143,107,971,190,744],function(){return e(e.s=9617)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/layout-f833b5332569507c.js b/_next/static/chunks/app/layout-f833b5332569507c.js new file mode 100644 index 0000000000000000000000000000000000000000..05bf0f86759e192421efe970a2dc118c3a64fb2f --- /dev/null +++ b/_next/static/chunks/app/layout-f833b5332569507c.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{9617:function(e,t,n){Promise.resolve().then(n.t.bind(n,4400,23)),Promise.resolve().then(n.bind(n,2944)),Promise.resolve().then(n.t.bind(n,8121,23)),Promise.resolve().then(n.bind(n,6657))},6657:function(e,t,n){"use strict";n.d(t,{default:function(){return v},themeAtom:function(){return p}});var r=n(2281),o=n(8059),a=n.n(o),c=n(9910),s=n(9010),i=n(1542),l=n(542),u=n(3742),d=n(6463),f=n(6608),m=n(7376);let h=(0,n(1564)._)(m.vc),p=function(e){let t=(0,c.cn)(e,(e,n,r)=>{let o="dark"===e(t)?"light":"light"===e(t)?"system":"dark";n(t,o)});return t}("system"),w=e=>{let{children:t,...n}=e,[o,a]=(0,s.U)(),c=(0,i.P)(),[d]=(0,u.KO)(p);return(0,r.jsx)(l.G,{onChangeTheme:a,children:(0,r.jsx)(f.r,{config:h,defaultTheme:"system"===d?c.systemTheme:d,disableInjectCSS:!0,...n,children:t})})};function v(e){let{children:t}=e;return(0,d.useServerInsertedHTML)(()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:h.getNewCSS()}}),(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:h.getCSS({exclude:"design-system"})}}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"document.documentElement.classList.add('t_unmounted')"},className:"jsx-6d3d93ee53889f68"}),(0,r.jsx)(a(),{id:"6d3d93ee53889f68",children:'html{font-family:" "}'})]})),(0,r.jsx)(w,{children:t})}},4400:function(){},8121:function(){},2944:function(e,t,n){"use strict";n.d(t,{Analytics:function(){return m}});var r=n(2265),o=n(6463),a=()=>{window.va||(window.va=function(){for(var e=arguments.length,t=Array(e),n=0;n{!function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{debug:!0};if(!c())return;(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto";if("auto"===e){window.vam=s();return}window.vam=e})(t.mode),a(),t.beforeSend&&(null==(e=window.va)||e.call(window,"beforeSend",t.beforeSend));let n=t.scriptSrc||(i()?"https://va.vercel-scripts.com/v1/script.debug.js":"/_vercel/insights/script.js");if(document.head.querySelector('script[src*="'.concat(n,'"]')))return;let r=document.createElement("script");r.src=n,r.defer=!0,r.dataset.sdkn="@vercel/analytics"+(t.framework?"/".concat(t.framework):""),r.dataset.sdkv="1.3.1",t.disableAutoTrack&&(r.dataset.disableAutoTrack="1"),t.endpoint&&(r.dataset.endpoint=t.endpoint),t.dsn&&(r.dataset.dsn=t.dsn),r.onerror=()=>{let e=i()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log("[Vercel Web Analytics] Failed to load script from ".concat(n,". ").concat(e))},i()&&!1===t.debug&&(r.dataset.debug="false"),document.head.appendChild(r)}({framework:e.framework||"react",...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,r.useEffect)(()=>{e.route&&e.path&&function(e){var t;let{route:n,path:r}=e;null==(t=window.va)||t.call(window,"pageview",{route:n,path:r})}({route:e.route,path:e.path})},[e.route,e.path]),null}var d=()=>{let e=(0,o.useParams)(),t=(0,o.useSearchParams)(),n=(0,o.usePathname)(),r={...Object.fromEntries(t.entries()),...e||{}};return{route:e?function(e,t){if(!e||!t)return e;let n=e;try{let e=Object.entries(t);for(let[t,r]of e)if(!Array.isArray(r)){let e=l(r);e.test(n)&&(n=n.replace(e,"/[".concat(t,"]")))}for(let[t,r]of e)if(Array.isArray(r)){let e=l(r.join("/"));e.test(n)&&(n=n.replace(e,"/[...".concat(t,"]")))}return n}catch(t){return e}}(n,r):null,path:n}};function f(e){let{route:t,path:n}=d();return r.createElement(u,{path:n,route:t,...e,framework:"next"})}function m(e){return r.createElement(r.Suspense,{fallback:null},r.createElement(f,{...e}))}}},function(e){e.O(0,[843,120,143,755,971,190,744],function(){return e(e.s=9617)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/fd9d1056-33d9a072d21d5daf.js b/_next/static/chunks/fd9d1056-81dbe5a32ad27c5b.js similarity index 100% rename from _next/static/chunks/fd9d1056-33d9a072d21d5daf.js rename to _next/static/chunks/fd9d1056-81dbe5a32ad27c5b.js diff --git a/_next/static/chunks/framework-aec844d2ccbe7592.js b/_next/static/chunks/framework-aec844d2ccbe7592.js deleted file mode 100644 index d22a999dc477d8a5f7ba2d2ddfba42617ef97de0..0000000000000000000000000000000000000000 --- a/_next/static/chunks/framework-aec844d2ccbe7592.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[774],{4448:function(e,n,t){/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r,l,a,u,o,i,s=t(7294),c=t(3840);function f(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t