huuquyet commited on
Commit
59099ca
1 Parent(s): 856e4b9

Update demo audio

Browse files
404.html CHANGED
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-6addcd937cf61756.js" crossorigin=""/><script src="/_next/static/chunks/fd9d1056-0eb0600a38930bac.js" async="" crossorigin=""></script><script src="/_next/static/chunks/69-562b36989091d38e.js" async="" crossorigin=""></script><script src="/_next/static/chunks/main-app-290a67753bff4b34.js" async="" crossorigin=""></script><script src="/_next/static/chunks/app/layout-55582ca56590b1ae.js" async=""></script><title>404: This page could not be found.</title><title>PhoWhisper</title><meta name="description" content="PhoWhisper built with Transformers.js + Next.js"/><script src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js" crossorigin="" noModule=""></script></head><body><div id="root"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>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)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div></div><script src="/_next/static/chunks/webpack-6addcd937cf61756.js" crossorigin="" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"0:\"$L1\"\n"])</script><script>self.__next_f.push([1,"2:I[7690,[],\"\"]\n4:I[5613,[],\"\"]\n5:I[1778,[],\"\"]\na:I[4274,[\"185\",\"static/chunks/app/layout-55582ca56590b1ae.js\"],\"Analytics\"]\nc:I[8955,[],\"\"]\n6:{\"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\"}\n7:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n8:{\"display\":\"inline-block\"}\n9:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nd:[]\n"])</script><script>self.__next_f.push([1,"1:[null,[\"$\",\"$L2\",null,{\"buildId\":\"1wsf04hB-ccdV1-3hVvLa\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/_not-found\",\"initialTree\":[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"__PAGE__\",{},[\"$L3\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"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\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"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)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null]]},[null,[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"id\":\"root\",\"children\":[[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"loading\":\"$undefined\",\"loadingStyles\":\"$undefined\",\"loadingScripts\":\"$undefined\",\"hasLoading\":false,\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$6\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"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)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$7\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$8\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$9\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":null}],[\"$\",\"$La\",null,{}]]}]}]}],null]],\"initialHead\":[false,\"$Lb\"],\"globalErrorComponent\":\"$c\",\"missingSlots\":\"$Wd\"}]]\n"])</script><script>self.__next_f.push([1,"b:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"PhoWhisper\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"PhoWhisper built with Transformers.js + Next.js\"}]]\n3:null\n"])</script><script>self.__next_f.push([1,""])</script></body></html>
 
1
+ <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-6addcd937cf61756.js" crossorigin=""/><script src="/_next/static/chunks/fd9d1056-0eb0600a38930bac.js" async="" crossorigin=""></script><script src="/_next/static/chunks/468-66d30219005587b4.js" async="" crossorigin=""></script><script src="/_next/static/chunks/main-app-286279f593f5766f.js" async="" crossorigin=""></script><title>404: This page could not be found.</title><title>PhoWhisper using Transformers.js + Next.js</title><meta name="description" content="PhoWhisper: Automatic Speech Recognition for Vietnamese (2024) using Transformer.js + Next.js"/><meta name="application-name" content="R3F Gallery"/><link rel="manifest" href="/manifest.json"/><meta name="keywords" content="PhoWhisper,Transformers.js,Next.js,speech-regconition,vietnamese"/><meta name="format-detection" content="telephone=no"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="PhoWhisper using Transformers.js + Next.js"/><meta name="apple-mobile-web-app-status-bar-style" content="default"/><meta property="og:title" content="PhoWhisper using Transformers.js + Next.js"/><meta property="og:description" content="PhoWhisper: Automatic Speech Recognition for Vietnamese (2024) using Transformer.js + Next.js"/><meta property="og:url" content="https://hf.co/spaces/huuquyet/PhoWhisper-next/"/><meta property="og:site_name" content="R3F Gallery"/><meta property="og:image" content="https://${process.env.vercel_url}/icon/share.png"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta name="twitter:site" content="@HuuQuyetNg"/><meta name="twitter:title" content="PhoWhisper using Transformers.js + Next.js"/><meta name="twitter:description" content="PhoWhisper: Automatic Speech Recognition for Vietnamese (2024) using Transformer.js + Next.js"/><meta name="twitter:image" content="https://${process.env.vercel_url}/icon/share.png"/><script src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js" crossorigin="" noModule=""></script></head><body><div id="root"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>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)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div></div><script src="/_next/static/chunks/webpack-6addcd937cf61756.js" crossorigin="" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"0:\"$L1\"\n"])</script><script>self.__next_f.push([1,"2:I[7690,[],\"\"]\n4:I[5613,[],\"\"]\n5:I[1778,[],\"\"]\nb:I[8955,[],\"\"]\n6:{\"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\"}\n7:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n8:{\"display\":\"inline-block\"}\n9:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nc:[]\n"])</script><script>self.__next_f.push([1,"1:[null,[\"$\",\"$L2\",null,{\"buildId\":\"w95gh3KpHkqEcWA-N_3Ki\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/_not-found\",\"initialTree\":[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"__PAGE__\",{},[\"$L3\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"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\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"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)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null]]},[null,[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[[\"$\",\"head\",null,{}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"id\":\"root\",\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"loading\":\"$undefined\",\"loadingStyles\":\"$undefined\",\"loadingScripts\":\"$undefined\",\"hasLoading\":false,\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$6\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"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)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$7\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$8\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$9\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":null}]}]}]]}],null]],\"initialHead\":[false,\"$La\"],\"globalErrorComponent\":\"$b\",\"missingSlots\":\"$Wc\"}]]\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"PhoWhisper using Transformers.js + Next.js\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"PhoWhisper: Automatic Speech Recognition for Vietnamese (2024) using Transformer.js + Next.js\"}],[\"$\",\"meta\",\"4\",{\"name\":\"application-name\",\"content\":\"R3F Gallery\"}],[\"$\",\"link\",\"5\",{\"rel\":\"manifest\",\"href\":\"/manifest.json\"}],[\"$\",\"meta\",\"6\",{\"name\":\"keywords\",\"content\":\"PhoWhisper,Transformers.js,Next.js,speech-regconition,vietnamese\"}],[\"$\",\"meta\",\"7\",{\"name\":\"format-detection\",\"content\":\"telephone=no\"}],[\"$\",\"meta\",\"8\",{\"name\":\"apple-mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"9\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"PhoWhisper using Transformers.js + Next.js\"}],[\"$\",\"meta\",\"10\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"default\"}],[\"$\",\"meta\",\"11\",{\"property\":\"og:title\",\"content\":\"PhoWhisper using Transformers.js + Next.js\"}],[\"$\",\"meta\",\"12\",{\"property\":\"og:description\",\"content\":\"PhoWhisper: Automatic Speech Recognition for Vietnamese (2024) using Transformer.js + Next.js\"}],[\"$\",\"meta\",\"13\",{\"property\":\"og:url\",\"content\":\"https://hf.co/spaces/huuquyet/PhoWhisper-next/\"}],[\"$\",\"meta\",\"14\",{\"property\":\"og:site_name\",\"content\":\"R3F Gallery\"}],[\"$\",\"meta\",\"15\",{\"property\":\"og:image\",\"content\":\"https://${process.env.vercel_url}/icon/share.png\"}],[\"$\",\"meta\",\"16\",{\"property\":\"og:type\",\"content\":\"website\"}],[\"$\",\"meta\",\"17\",{\"name\":\"twitter:card\",\"content\":\"summary\"}],[\"$\",\"meta\",\"18\",{\"name\":\"twitter:site\",\"content\":\"@HuuQuyetNg\"}],[\"$\",\"meta\",\"19\",{\"name\":\"twitter:title\",\"content\":\"PhoWhisper using Transformers.js + Next.js\"}],[\"$\",\"meta\",\"20\",{\"name\":\"twitter:description\",\"content\":\"PhoWhisper: Automatic Speech Recognition for Vietnamese (2024) using Transformer.js + Next.js\"}],[\"$\",\"meta\",\"21\",{\"name\":\"twitter:image\",\"content\":\"https://${process.env.vercel_url}/icon/share.png\"}]]\n3:null\n"])</script><script>self.__next_f.push([1,""])</script></body></html>
_next/static/chunks/215-2f9ff0d23c73524a.js ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[215],{9721:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return o}});let r=n(9775);function o(e){let{reason:t,children:n}=e;if("undefined"==typeof window)throw new r.BailoutToCSRError(t);return n}},8324:function(e,t,n){let r,o;n.d(t,{V:function(){return eD}});var i,a,l,s,u,c,d,f,p,h,m,g,v,E,b=n(2265),y=n.t(b,2),w=n(44),S=n(641),O=n(5235);function T(e,t,n,r){let o=(0,O.E)(n);(0,b.useEffect)(()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)},[e,t,r])}var R=n(2219),A=n(1210);function C(e){let t=(0,S.z)(e),n=(0,b.useRef)(!1);(0,b.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,A.Y)(()=>{n.current&&t()})}),[t])}var P=n(1879);function N(e){return P.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function F(...e){return(0,b.useMemo)(()=>N(...e),[...e])}var L=n(2144),x=n(6601);function k(e,t,n){let r=(0,O.E)(t);(0,b.useEffect)(()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)},[e,n])}var j=((i=j||{})[i.Forwards=0]="Forwards",i[i.Backwards=1]="Backwards",i);function D(e,t){let n=(0,b.useRef)([]),r=(0,S.z)(e);(0,b.useEffect)(()=>{let e=[...n.current];for(let[o,i]of t.entries())if(n.current[o]!==i){let o=r(t,e);return n.current=t,o}},[r,...t])}var M=n(8318),_=((a=_||{})[a.None=1]="None",a[a.Focusable=2]="Focusable",a[a.Hidden=4]="Hidden",a);let U=(0,M.yV)(function(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(2&r)==2||(null!=(n=o["aria-hidden"])?n:void 0),style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,M.sY)({ourProps:i,theirProps:o,slot:{},defaultTag:"div",name:"Hidden"})}),B=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&B[0]!==e.target&&(B.unshift(e.target),(B=B.filter(e=>null!=e&&e.isConnected)).splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var H=n(2640);let I=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var z=((l=z||{})[l.First=1]="First",l[l.Previous=2]="Previous",l[l.Next=4]="Next",l[l.Last=8]="Last",l[l.WrapAround=16]="WrapAround",l[l.NoScroll=32]="NoScroll",l),q=((s=q||{})[s.Error=0]="Error",s[s.Overflow=1]="Overflow",s[s.Success=2]="Success",s[s.Underflow=3]="Underflow",s),V=((u=V||{})[u.Previous=-1]="Previous",u[u.Next=1]="Next",u),W=((c=W||{})[c.Strict=0]="Strict",c[c.Loose=1]="Loose",c),$=((d=$||{})[d.Keyboard=0]="Keyboard",d[d.Mouse=1]="Mouse",d);function Y(e){null==e||e.focus({preventScroll:!0})}function J(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var i,a,l;let s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,u=Array.isArray(e)?n?function(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(I)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);o.length>0&&u.length>1&&(u=u.filter(e=>!o.includes(e))),r=null!=r?r:s.activeElement;let c=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(r))-1;if(4&t)return Math.max(0,u.indexOf(r))+1;if(8&t)return u.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},p=0,h=u.length,m;do{if(p>=h||p+h<=0)return 0;let e=d+p;if(16&t)e=(e+h)%h;else{if(e<0)return 3;if(e>=h)return 1}null==(m=u[e])||m.focus(f),p+=c}while(m!==s.activeElement);return 6&t&&null!=(l=null==(a=null==(i=m)?void 0:i.matches)?void 0:a.call(i,"textarea,input"))&&l&&m.select(),2}function G(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));var K=((f=K||{})[f.None=1]="None",f[f.InitialFocus=2]="InitialFocus",f[f.TabLock=4]="TabLock",f[f.FocusLock=8]="FocusLock",f[f.RestoreFocus=16]="RestoreFocus",f[f.All=30]="All",f);let Z=Object.assign((0,M.yV)(function(e,t){let n,r=(0,b.useRef)(null),o=(0,x.T)(r,t),{initialFocus:i,containers:a,features:l=30,...s}=e;(0,L.H)()||(l=1);let u=F(r);!function({ownerDocument:e},t){let n=function(e=!0){let t=(0,b.useRef)(B.slice());return D(([e],[n])=>{!0===n&&!1===e&&(0,A.Y)(()=>{t.current.splice(0)}),!1===n&&!0===e&&(t.current=B.slice())},[e,B,t]),(0,S.z)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);D(()=>{t||(null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&Y(n())},[t]),C(()=>{t&&Y(n())})}({ownerDocument:u},!!(16&l));let c=function({ownerDocument:e,container:t,initialFocus:n},r){let o=(0,b.useRef)(null),i=(0,R.t)();return D(()=>{if(!r)return;let a=t.current;a&&(0,A.Y)(()=>{if(!i.current)return;let t=null==e?void 0:e.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===t){o.current=t;return}}else if(a.contains(t)){o.current=t;return}null!=n&&n.current?Y(n.current):J(a,z.First)===q.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=null==e?void 0:e.activeElement})},[r]),o}({ownerDocument:u,container:r,initialFocus:i},!!(2&l));!function({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=(0,R.t)();T(null==e?void 0:e.defaultView,"focus",e=>{if(!o||!i.current)return;let a=G(n);t.current instanceof HTMLElement&&a.add(t.current);let l=r.current;if(!l)return;let s=e.target;s&&s instanceof HTMLElement?X(a,s)?(r.current=s,Y(s)):(e.preventDefault(),e.stopPropagation(),Y(l)):Y(r.current)},!0)}({ownerDocument:u,container:r,containers:a,previousActiveElement:c},!!(8&l));let d=(n=(0,b.useRef)(0),k("keydown",e=>{"Tab"===e.key&&(n.current=e.shiftKey?1:0)},!0),n),f=(0,S.z)(e=>{let t=r.current;t&&(0,H.E)(d.current,{[j.Forwards]:()=>{J(t,z.First,{skipElements:[e.relatedTarget]})},[j.Backwards]:()=>{J(t,z.Last,{skipElements:[e.relatedTarget]})}})}),p=(0,w.G)(),h=(0,b.useRef)(!1);return b.createElement(b.Fragment,null,!!(4&l)&&b.createElement(U,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:_.Focusable}),(0,M.sY)({ourProps:{ref:o,onKeyDown(e){"Tab"==e.key&&(h.current=!0,p.requestAnimationFrame(()=>{h.current=!1}))},onBlur(e){let t=G(a);r.current instanceof HTMLElement&&t.add(r.current);let n=e.relatedTarget;n instanceof HTMLElement&&"true"!==n.dataset.headlessuiFocusGuard&&(X(t,n)||(h.current?J(r.current,(0,H.E)(d.current,{[j.Forwards]:()=>z.Next,[j.Backwards]:()=>z.Previous})|z.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&Y(e.target)))}},theirProps:s,defaultTag:"div",name:"FocusTrap"}),!!(4&l)&&b.createElement(U,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:_.Focusable}))}),{features:K});function X(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var Q=n(4887),ee=n(9790);let et=(0,b.createContext)(!1);function en(e){return b.createElement(et.Provider,{value:e.force},e.children)}let er=b.Fragment,eo=b.Fragment,ei=(0,b.createContext)(null),ea=(0,b.createContext)(null),el=Object.assign((0,M.yV)(function(e,t){let n=(0,b.useRef)(null),r=(0,x.T)((0,x.h)(e=>{n.current=e}),t),o=F(n),i=function(e){let t=(0,b.useContext)(et),n=(0,b.useContext)(ei),r=F(e),[o,i]=(0,b.useState)(()=>{if(!t&&null!==n||P.O.isServer)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)});return(0,b.useEffect)(()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))},[o,r]),(0,b.useEffect)(()=>{t||null!==n&&i(n.current)},[n,i,t]),o}(n),[a]=(0,b.useState)(()=>{var e;return P.O.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null}),l=(0,b.useContext)(ea),s=(0,L.H)();return(0,ee.e)(()=>{!i||!a||i.contains(a)||(a.setAttribute("data-headlessui-portal",""),i.appendChild(a))},[i,a]),(0,ee.e)(()=>{if(a&&l)return l.register(a)},[l,a]),C(()=>{var e;i&&a&&(a instanceof Node&&i.contains(a)&&i.removeChild(a),i.childNodes.length<=0&&(null==(e=i.parentElement)||e.removeChild(i)))}),s&&i&&a?(0,Q.createPortal)((0,M.sY)({ourProps:{ref:r},theirProps:e,defaultTag:er,name:"Portal"}),a):null}),{Group:(0,M.yV)(function(e,t){let{target:n,...r}=e,o={ref:(0,x.T)(t)};return b.createElement(ei.Provider,{value:n},(0,M.sY)({ourProps:o,theirProps:r,defaultTag:eo,name:"Popover.Group"}))})}),{useState:es,useEffect:eu,useLayoutEffect:ec,useDebugValue:ed}=y;"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;let ef=y.useSyncExternalStore;var ep=n(5205);function eh(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}let em=(p={PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,ep.k)(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r;let o={doc:e,d:t,meta:function(e){let t={};for(let n of e)Object.assign(t,n(t));return t}(n)},i=[eh()?{before({doc:e,d:t,meta:n}){function r(e){return n.containers.flatMap(e=>e()).some(t=>t.contains(e))}t.microTask(()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=(0,ep.k)();n.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>n.dispose()))}let o=null!=(n=window.scrollY)?n:window.pageYOffset,i=null;t.addEventListener(e,"click",t=>{if(t.target instanceof HTMLElement)try{let n=t.target.closest("a");if(!n)return;let{hash:o}=new URL(n.href),a=e.querySelector(o);a&&!r(a)&&(i=a)}catch{}},!0),t.addEventListener(e,"touchstart",e=>{if(e.target instanceof HTMLElement){if(r(e.target)){let n=e.target;for(;n.parentElement&&r(n.parentElement);)n=n.parentElement;t.style(n,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")}}),t.addEventListener(e,"touchmove",e=>{if(e.target instanceof HTMLElement){if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),t.add(()=>{var e;o!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,o),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{},{before({doc:e}){var t;let n=e.documentElement;r=(null!=(t=e.defaultView)?t:window).innerWidth-n.clientWidth},after({doc:e,d:t}){let n=e.documentElement,o=n.clientWidth-n.offsetWidth,i=r-o;t.style(n,"paddingRight",`${i}px`)}},{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];i.forEach(({before:e})=>null==e?void 0:e(o)),i.forEach(({after:e})=>null==e?void 0:e(o))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}},r=new Map,o=new Set,{getSnapshot:()=>r,subscribe:e=>(o.add(e),()=>o.delete(e)),dispatch(e,...t){let n=p[e].call(r,...t);n&&(r=n,o.forEach(e=>e()))}});em.subscribe(()=>{let e=em.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&em.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&em.dispatch("TEARDOWN",n)}});let eg=null!=(E=b.useId)?E:function(){let e=(0,L.H)(),[t,n]=b.useState(e?()=>P.O.nextId():null);return(0,ee.e)(()=>{null===t&&n(P.O.nextId())},[t]),null!=t?""+t:void 0},ev=new Map,eE=new Map;function eb(e,t=!0){(0,ee.e)(()=>{var n;if(!t)return;let r="function"==typeof e?e():e.current;if(!r)return;let o=null!=(n=eE.get(r))?n:0;return eE.set(r,o+1),0!==o||(ev.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),function(){var e;if(!r)return;let t=null!=(e=eE.get(r))?e:1;if(1===t?eE.delete(r):eE.set(r,t-1),1!==t)return;let n=ev.get(r);n&&(null===n["aria-hidden"]?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",n["aria-hidden"]),r.inert=n.inert,ev.delete(r))}},[e,t])}function ey(e,t,n){let r=(0,O.E)(t);(0,b.useEffect)(()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)},[e,n])}var ew=n(8358);let eS=(0,b.createContext)(()=>{});eS.displayName="StackContext";var eO=((h=eO||{})[h.Add=0]="Add",h[h.Remove=1]="Remove",h);function eT({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=(0,b.useContext)(eS),a=(0,S.z)((...e)=>{null==t||t(...e),i(...e)});return(0,ee.e)(()=>{let e=void 0===o||!0===o;return e&&a(0,n,r),()=>{e&&a(1,n,r)}},[a,n,r,o]),b.createElement(eS.Provider,{value:a},e)}let eR=(0,b.createContext)(null),eA=Object.assign((0,M.yV)(function(e,t){let n=eg(),{id:r=`headlessui-description-${n}`,...o}=e,i=function e(){let t=(0,b.useContext)(eR);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),a=(0,x.T)(t);(0,ee.e)(()=>i.register(r),[r,i.register]);let l={ref:a,...i.props,id:r};return(0,M.sY)({ourProps:l,theirProps:o,slot:i.slot||{},defaultTag:"p",name:i.name||"Description"})}),{});var eC=((m=eC||{}).Space=" ",m.Enter="Enter",m.Escape="Escape",m.Backspace="Backspace",m.Delete="Delete",m.ArrowLeft="ArrowLeft",m.ArrowUp="ArrowUp",m.ArrowRight="ArrowRight",m.ArrowDown="ArrowDown",m.Home="Home",m.End="End",m.PageUp="PageUp",m.PageDown="PageDown",m.Tab="Tab",m),eP=((g=eP||{})[g.Open=0]="Open",g[g.Closed=1]="Closed",g),eN=((v=eN||{})[v.SetTitleId=0]="SetTitleId",v);let eF={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},eL=(0,b.createContext)(null);function ex(e){let t=(0,b.useContext)(eL);if(null===t){let t=Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ex),t}return t}function ek(e,t){return(0,H.E)(t.type,eF,e,t)}eL.displayName="DialogContext";let ej=M.AN.RenderStrategy|M.AN.Static,eD=Object.assign((0,M.yV)(function(e,t){let n,r,o,i,a,l=eg(),{id:s=`headlessui-dialog-${l}`,open:u,onClose:c,initialFocus:d,role:f="dialog",__demoMode:p=!1,...h}=e,[m,g]=(0,b.useState)(0),v=(0,b.useRef)(!1);f="dialog"===f||"alertdialog"===f?f:(v.current||(v.current=!0,console.warn(`Invalid role [${f}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let E=(0,ew.oJ)();void 0===u&&null!==E&&(u=(E&ew.ZM.Open)===ew.ZM.Open);let y=(0,b.useRef)(null),w=(0,x.T)(y,t),O=F(y),R=e.hasOwnProperty("open")||null!==E,A=e.hasOwnProperty("onClose");if(!R&&!A)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!R)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!A)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof u)throw Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${u}`);if("function"!=typeof c)throw Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${c}`);let C=u?0:1,[P,j]=(0,b.useReducer)(ek,{titleId:null,descriptionId:null,panelRef:(0,b.createRef)()}),D=(0,S.z)(()=>c(!1)),B=(0,S.z)(e=>j({type:0,id:e})),z=!!(0,L.H)()&&!p&&0===C,q=m>1,V=null!==(0,b.useContext)(eL),[$,Y]=(n=(0,b.useContext)(ea),r=(0,b.useRef)([]),o=(0,S.z)(e=>(r.current.push(e),n&&n.register(e),()=>i(e))),i=(0,S.z)(e=>{let t=r.current.indexOf(e);-1!==t&&r.current.splice(t,1),n&&n.unregister(e)}),a=(0,b.useMemo)(()=>({register:o,unregister:i,portals:r}),[o,i,r]),[r,(0,b.useMemo)(()=>function({children:e}){return b.createElement(ea.Provider,{value:a},e)},[a])]),{resolveContainers:J,mainTreeNodeRef:G,MainTreeNode:K}=function({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let o=(0,b.useRef)(null!=(r=null==n?void 0:n.current)?r:null),i=F(o),a=(0,S.z)(()=>{var n,r,a;let l=[];for(let t of e)null!==t&&(t instanceof HTMLElement?l.push(t):"current"in t&&t.current instanceof HTMLElement&&l.push(t.current));if(null!=t&&t.current)for(let e of t.current)l.push(e);for(let e of null!=(n=null==i?void 0:i.querySelectorAll("html > *, body > *"))?n:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(e.contains(o.current)||e.contains(null==(a=null==(r=o.current)?void 0:r.getRootNode())?void 0:a.host)||l.some(t=>e.contains(t))||l.push(e));return l});return{resolveContainers:a,contains:(0,S.z)(e=>a().some(t=>t.contains(e))),mainTreeNodeRef:o,MainTreeNode:(0,b.useMemo)(()=>function(){return null!=n?null:b.createElement(U,{features:_.Hidden,ref:o})},[o,n])}}({portals:$,defaultContainers:[{get current(){var X;return null!=(X=P.panelRef.current)?X:y.current}}]}),Q=null!==E&&(E&ew.ZM.Closing)===ew.ZM.Closing,et=!V&&!Q&&z;eb((0,b.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==O?void 0:O.querySelectorAll("body > *"))?e:[]).find(e=>"headlessui-portal-root"!==e.id&&e.contains(G.current)&&e instanceof HTMLElement))?t:null},[G]),et);let er=!!q||z;eb((0,b.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==O?void 0:O.querySelectorAll("[data-headlessui-portal]"))?e:[]).find(e=>e.contains(G.current)&&e instanceof HTMLElement))?t:null},[G]),er),function(e,t,n=!0){let r=(0,b.useRef)(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=o(n);if(null!==i&&i.getRootNode().contains(i)&&i.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(i)||n.composed&&n.composedPath().includes(e))return}return!function(e,t=0){var n;return e!==(null==(n=N(e))?void 0:n.body)&&(0,H.E)(t,{0:()=>e.matches(I),1(){let t=e;for(;null!==t;){if(t.matches(I))return!0;t=t.parentElement}return!1}})}(i,W.Loose)&&-1!==i.tabIndex&&n.preventDefault(),t(n,i)}}(0,b.useEffect)(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);let i=(0,b.useRef)(null);ey("pointerdown",e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),ey("mousedown",e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),ey("click",e=>{eh()||/Android/gi.test(window.navigator.userAgent)||i.current&&(o(e,()=>i.current),i.current=null)},!0),ey("touchend",e=>o(e,()=>e.target instanceof HTMLElement?e.target:null),!0),k("blur",e=>o(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}(J,D,!(!z||q));let eo=!(q||0!==C);T(null==O?void 0:O.defaultView,"keydown",e=>{eo&&(e.defaultPrevented||e.key===eC.Escape&&(e.preventDefault(),e.stopPropagation(),D()))}),function(e,t,n=()=>[document.body]){var r;let o,i;r=e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}},o=ef(em.subscribe,em.getSnapshot,em.getSnapshot),(i=e?o.get(e):void 0)&&i.count,(0,ee.e)(()=>{if(!(!e||!t))return em.dispatch("PUSH",e,r),()=>em.dispatch("POP",e,r)},[t,e])}(O,!(Q||0!==C||V),J),(0,b.useEffect)(()=>{if(0!==C||!y.current)return;let e=new ResizeObserver(e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&D()}});return e.observe(y.current),()=>e.disconnect()},[C,y,D]);let[ei,es]=function(){let[e,t]=(0,b.useState)([]);return[e.length>0?e.join(" "):void 0,(0,b.useMemo)(()=>function(e){let n=(0,S.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),r=(0,b.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props}),[n,e.slot,e.name,e.props]);return b.createElement(eR.Provider,{value:r},e.children)},[t])]}(),eu=(0,b.useMemo)(()=>[{dialogState:C,close:D,setTitleId:B},P],[C,P,D,B]),ec=(0,b.useMemo)(()=>({open:0===C}),[C]),ed={ref:w,id:s,role:f,"aria-modal":0===C||void 0,"aria-labelledby":P.titleId,"aria-describedby":ei};return b.createElement(eT,{type:"Dialog",enabled:0===C,element:y,onUpdate:(0,S.z)((e,t)=>{"Dialog"===t&&(0,H.E)(e,{[eO.Add]:()=>g(e=>e+1),[eO.Remove]:()=>g(e=>e-1)})})},b.createElement(en,{force:!0},b.createElement(el,null,b.createElement(eL.Provider,{value:eu},b.createElement(el.Group,{target:y},b.createElement(en,{force:!1},b.createElement(es,{slot:ec,name:"Dialog.Description"},b.createElement(Z,{initialFocus:d,containers:J,features:z?(0,H.E)(q?"parent":"leaf",{parent:Z.features.RestoreFocus,leaf:Z.features.All&~Z.features.FocusLock}):Z.features.None},b.createElement(Y,null,(0,M.sY)({ourProps:ed,theirProps:h,slot:ec,defaultTag:"div",features:ej,visible:0===C,name:"Dialog"}))))))))),b.createElement(K,null))}),{Backdrop:(0,M.yV)(function(e,t){let n=eg(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},a]=ex("Dialog.Backdrop"),l=(0,x.T)(t);(0,b.useEffect)(()=>{if(null===a.panelRef.current)throw Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[a.panelRef]);let s=(0,b.useMemo)(()=>({open:0===i}),[i]);return b.createElement(en,{force:!0},b.createElement(el,null,(0,M.sY)({ourProps:{ref:l,id:r,"aria-hidden":!0},theirProps:o,slot:s,defaultTag:"div",name:"Dialog.Backdrop"})))}),Panel:(0,M.yV)(function(e,t){let n=eg(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},a]=ex("Dialog.Panel"),l=(0,x.T)(t,a.panelRef),s=(0,b.useMemo)(()=>({open:0===i}),[i]),u=(0,S.z)(e=>{e.stopPropagation()});return(0,M.sY)({ourProps:{ref:l,id:r,onClick:u},theirProps:o,slot:s,defaultTag:"div",name:"Dialog.Panel"})}),Overlay:(0,M.yV)(function(e,t){let n=eg(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:a}]=ex("Dialog.Overlay"),l=(0,x.T)(t),s=(0,S.z)(e=>{if(e.target===e.currentTarget){if(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),a()}}),u=(0,b.useMemo)(()=>({open:0===i}),[i]);return(0,M.sY)({ourProps:{ref:l,id:r,"aria-hidden":!0,onClick:s},theirProps:o,slot:u,defaultTag:"div",name:"Dialog.Overlay"})}),Title:(0,M.yV)(function(e,t){let n=eg(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:a}]=ex("Dialog.Title"),l=(0,x.T)(t);(0,b.useEffect)(()=>(a(r),()=>a(null)),[r,a]);let s=(0,b.useMemo)(()=>({open:0===i}),[i]);return(0,M.sY)({ourProps:{ref:l,id:r},theirProps:o,slot:s,defaultTag:"h2",name:"Dialog.Title"})}),Description:eA})},129:function(e,t,n){n.d(t,{u:function(){return x}});var r,o=n(2265),i=n(44),a=n(641),l=n(2219),s=n(9790),u=n(5235),c=n(2144),d=n(6601),f=n(5205),p=n(2640);function h(e,...t){e&&t.length>0&&e.classList.add(...t)}function m(e,...t){e&&t.length>0&&e.classList.remove(...t)}var g=n(8358),v=n(2466),E=n(8318);function b(e=""){return e.split(/\s+/).filter(e=>e.length>1)}let y=(0,o.createContext)(null);y.displayName="TransitionContext";var w=((r=w||{}).Visible="visible",r.Hidden="hidden",r);let S=(0,o.createContext)(null);function O(e){return"children"in e?O(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function T(e,t){let n=(0,u.E)(e),r=(0,o.useRef)([]),s=(0,l.t)(),c=(0,i.G)(),d=(0,a.z)((e,t=E.l4.Hidden)=>{let o=r.current.findIndex(({el:t})=>t===e);-1!==o&&((0,p.E)(t,{[E.l4.Unmount](){r.current.splice(o,1)},[E.l4.Hidden](){r.current[o].state="hidden"}}),c.microTask(()=>{var e;!O(r)&&s.current&&(null==(e=n.current)||e.call(n))}))}),f=(0,a.z)(e=>{let t=r.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>d(e,E.l4.Unmount)}),h=(0,o.useRef)([]),m=(0,o.useRef)(Promise.resolve()),g=(0,o.useRef)({enter:[],leave:[],idle:[]}),v=(0,a.z)((e,n,r)=>{h.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(([t])=>t!==e)),null==t||t.chains.current[n].push([e,new Promise(e=>{h.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(g.current[n].map(([e,t])=>t)).then(()=>e())})]),"enter"===n?m.current=m.current.then(()=>null==t?void 0:t.wait.current).then(()=>r(n)):r(n)}),b=(0,a.z)((e,t,n)=>{Promise.all(g.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=h.current.shift())||e()}).then(()=>n(t))});return(0,o.useMemo)(()=>({children:r,register:f,unregister:d,onStart:v,onStop:b,wait:m,chains:g}),[f,d,r,v,b,g,m])}function R(){}S.displayName="NestingContext";let A=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function C(e){var t;let n={};for(let r of A)n[r]=null!=(t=e[r])?t:R;return n}let P=E.AN.RenderStrategy,N=(0,E.yV)(function(e,t){let{show:n,appear:r=!1,unmount:i=!0,...l}=e,u=(0,o.useRef)(null),f=(0,d.T)(u,t);(0,c.H)();let p=(0,g.oJ)();if(void 0===n&&null!==p&&(n=(p&g.ZM.Open)===g.ZM.Open),![!0,!1].includes(n))throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[h,m]=(0,o.useState)(n?"visible":"hidden"),v=T(()=>{m("hidden")}),[b,w]=(0,o.useState)(!0),R=(0,o.useRef)([n]);(0,s.e)(()=>{!1!==b&&R.current[R.current.length-1]!==n&&(R.current.push(n),w(!1))},[R,n]);let A=(0,o.useMemo)(()=>({show:n,appear:r,initial:b}),[n,r,b]);(0,o.useEffect)(()=>{if(n)m("visible");else if(O(v)){let e=u.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&m("hidden")}else m("hidden")},[n,v]);let C={unmount:i},N=(0,a.z)(()=>{var t;b&&w(!1),null==(t=e.beforeEnter)||t.call(e)}),L=(0,a.z)(()=>{var t;b&&w(!1),null==(t=e.beforeLeave)||t.call(e)});return o.createElement(S.Provider,{value:v},o.createElement(y.Provider,{value:A},(0,E.sY)({ourProps:{...C,as:o.Fragment,children:o.createElement(F,{ref:f,...C,...l,beforeEnter:N,beforeLeave:L})},theirProps:{},defaultTag:o.Fragment,features:P,visible:"visible"===h,name:"Transition"})))}),F=(0,E.yV)(function(e,t){var n,r,w;let R;let{beforeEnter:A,afterEnter:N,beforeLeave:F,afterLeave:L,enter:x,enterFrom:k,enterTo:j,entered:D,leave:M,leaveFrom:_,leaveTo:U,...B}=e,H=(0,o.useRef)(null),I=(0,d.T)(H,t),z=null==(n=B.unmount)||n?E.l4.Unmount:E.l4.Hidden,{show:q,appear:V,initial:W}=function(){let e=(0,o.useContext)(y);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[$,Y]=(0,o.useState)(q?"visible":"hidden"),J=function(){let e=(0,o.useContext)(S);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:G,unregister:K}=J;(0,o.useEffect)(()=>G(H),[G,H]),(0,o.useEffect)(()=>{if(z===E.l4.Hidden&&H.current){if(q&&"visible"!==$){Y("visible");return}return(0,p.E)($,{hidden:()=>K(H),visible:()=>G(H)})}},[$,H,G,K,q,z]);let Z=(0,u.E)({base:b(B.className),enter:b(x),enterFrom:b(k),enterTo:b(j),entered:b(D),leave:b(M),leaveFrom:b(_),leaveTo:b(U)}),X=(w={beforeEnter:A,afterEnter:N,beforeLeave:F,afterLeave:L},R=(0,o.useRef)(C(w)),(0,o.useEffect)(()=>{R.current=C(w)},[w]),R),Q=(0,c.H)();(0,o.useEffect)(()=>{if(Q&&"visible"===$&&null===H.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[H,$,Q]);let ee=V&&q&&W,et=Q&&(!W||V)?q?"enter":"leave":"idle",en=function(e=0){let[t,n]=(0,o.useState)(e),r=(0,l.t)(),i=(0,o.useCallback)(e=>{r.current&&n(t=>t|e)},[t,r]),a=(0,o.useCallback)(e=>!!(t&e),[t]);return{flags:t,addFlag:i,hasFlag:a,removeFlag:(0,o.useCallback)(e=>{r.current&&n(t=>t&~e)},[n,r]),toggleFlag:(0,o.useCallback)(e=>{r.current&&n(t=>t^e)},[n])}}(0),er=(0,a.z)(e=>(0,p.E)(e,{enter:()=>{en.addFlag(g.ZM.Opening),X.current.beforeEnter()},leave:()=>{en.addFlag(g.ZM.Closing),X.current.beforeLeave()},idle:()=>{}})),eo=(0,a.z)(e=>(0,p.E)(e,{enter:()=>{en.removeFlag(g.ZM.Opening),X.current.afterEnter()},leave:()=>{en.removeFlag(g.ZM.Closing),X.current.afterLeave()},idle:()=>{}})),ei=T(()=>{Y("hidden"),K(H)},J),ea=(0,o.useRef)(!1);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:a}){let c=(0,l.t)(),d=(0,i.G)(),g=(0,u.E)(n);(0,s.e)(()=>{e&&(g.current="enter")},[e]),(0,s.e)(()=>{let e=(0,f.k)();d.add(e.dispose);let n=t.current;if(n&&"idle"!==g.current&&c.current){var i,l,s;let t,u,c,d,v,E,b;return e.dispose(),o.current(g.current),e.add((i=r.current,l="enter"===g.current,s=()=>{e.dispose(),a.current(g.current)},u=l?"enter":"leave",c=(0,f.k)(),d=void 0!==s?(t={called:!1},(...e)=>{if(!t.called)return t.called=!0,s(...e)}):()=>{},"enter"===u&&(n.removeAttribute("hidden"),n.style.display=""),v=(0,p.E)(u,{enter:()=>i.enter,leave:()=>i.leave}),E=(0,p.E)(u,{enter:()=>i.enterTo,leave:()=>i.leaveTo}),b=(0,p.E)(u,{enter:()=>i.enterFrom,leave:()=>i.leaveFrom}),m(n,...i.base,...i.enter,...i.enterTo,...i.enterFrom,...i.leave,...i.leaveFrom,...i.leaveTo,...i.entered),h(n,...i.base,...v,...b),c.nextFrame(()=>{m(n,...i.base,...v,...b),h(n,...i.base,...v,...E),function(e,t){let n=(0,f.k)();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,a]=[r,o].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),l=i+a;if(0!==l){n.group(n=>{n.setTimeout(()=>{t(),n.dispose()},l),n.addEventListener(e,"transitionrun",e=>{e.target===e.currentTarget&&n.dispose()})});let r=n.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),r())})}else t();n.add(()=>t()),n.dispose}(n,()=>(m(n,...i.base,...v),h(n,...i.base,...i.entered),d()))}),c.dispose)),e.dispose}},[n])}({immediate:ee,container:H,classes:Z,direction:et,onStart:(0,u.E)(e=>{ea.current=!0,ei.onStart(H,e,er)}),onStop:(0,u.E)(e=>{ea.current=!1,ei.onStop(H,e,eo),"leave"!==e||O(ei)||(Y("hidden"),K(H))})});let el=B;return ee?el={...el,className:(0,v.A)(B.className,...Z.current.enter,...Z.current.enterFrom)}:ea.current&&(el.className=(0,v.A)(B.className,null==(r=H.current)?void 0:r.className),""===el.className&&delete el.className),o.createElement(S.Provider,{value:ei},o.createElement(g.up,{value:(0,p.E)($,{visible:g.ZM.Open,hidden:g.ZM.Closed})|en.flags},(0,E.sY)({ourProps:{ref:I},theirProps:el,defaultTag:"div",features:P,visible:"visible"===$,name:"Transition.Child"})))}),L=(0,E.yV)(function(e,t){let n=null!==(0,o.useContext)(y),r=null!==(0,g.oJ)();return o.createElement(o.Fragment,null,!n&&r?o.createElement(N,{ref:t,...e}):o.createElement(F,{ref:t,...e}))}),x=Object.assign(N,{Child:L,Root:N})},44:function(e,t,n){n.d(t,{G:function(){return i}});var r=n(2265),o=n(5205);function i(){let[e]=(0,r.useState)(o.k);return(0,r.useEffect)(()=>()=>e.dispose(),[e]),e}},641:function(e,t,n){n.d(t,{z:function(){return i}});var r=n(2265),o=n(5235);let i=function(e){let t=(0,o.E)(e);return r.useCallback((...e)=>t.current(...e),[t])}},2219:function(e,t,n){n.d(t,{t:function(){return i}});var r=n(2265),o=n(9790);function i(){let e=(0,r.useRef)(!1);return(0,o.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},9790:function(e,t,n){n.d(t,{e:function(){return i}});var r=n(2265),o=n(1879);let i=(e,t)=>{o.O.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},5235:function(e,t,n){n.d(t,{E:function(){return i}});var r=n(2265),o=n(9790);function i(e){let t=(0,r.useRef)(e);return(0,o.e)(()=>{t.current=e},[e]),t}},2144:function(e,t,n){n.d(t,{H:function(){return a}});var r,o=n(2265),i=n(1879);function a(){let e;let t=(e="undefined"==typeof document,(0,(r||(r=n.t(o,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[a,l]=o.useState(i.O.isHandoffComplete);return a&&!1===i.O.isHandoffComplete&&l(!1),o.useEffect(()=>{!0!==a&&l(!0)},[a]),o.useEffect(()=>i.O.handoff(),[]),!t&&a}},6601:function(e,t,n){n.d(t,{T:function(){return l},h:function(){return a}});var r=n(2265),o=n(641);let i=Symbol();function a(e,t=!0){return Object.assign(e,{[i]:t})}function l(...e){let t=(0,r.useRef)(e);(0,r.useEffect)(()=>{t.current=e},[e]);let n=(0,o.z)(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)});return e.every(e=>null==e||(null==e?void 0:e[i]))?void 0:n}},8358:function(e,t,n){n.d(t,{ZM:function(){return a},oJ:function(){return l},up:function(){return s}});var r,o=n(2265);let i=(0,o.createContext)(null);i.displayName="OpenClosedContext";var a=((r=a||{})[r.Open=1]="Open",r[r.Closed=2]="Closed",r[r.Closing=4]="Closing",r[r.Opening=8]="Opening",r);function l(){return(0,o.useContext)(i)}function s({value:e,children:t}){return o.createElement(i.Provider,{value:e},t)}},2466:function(e,t,n){n.d(t,{A:function(){return r}});function r(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}},5205:function(e,t,n){n.d(t,{k:function(){return function e(){let t=[],n={addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add(()=>e.removeEventListener(t,r,o))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add(()=>cancelAnimationFrame(t))},nextFrame:(...e)=>n.requestAnimationFrame(()=>n.requestAnimationFrame(...e)),setTimeout(...e){let t=setTimeout(...e);return n.add(()=>clearTimeout(t))},microTask(...e){let t={current:!0};return(0,r.Y)(()=>{t.current&&e[0]()}),n.add(()=>{t.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(t){let n=e();return t(n),this.add(()=>n.dispose())},add:e=>(t.push(e),()=>{let n=t.indexOf(e);if(n>=0)for(let e of t.splice(n,1))e()}),dispose(){for(let e of t.splice(0))e()}};return n}}});var r=n(1210)},1879:function(e,t,n){n.d(t,{O:function(){return l}});var r=Object.defineProperty,o=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,i=(e,t,n)=>(o(e,"symbol"!=typeof t?t+"":t,n),n);class a{constructor(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}let l=new a},2640:function(e,t,n){n.d(t,{E:function(){return r}});function r(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let o=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,r),o}},1210:function(e,t,n){n.d(t,{Y:function(){return r}});function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}},8318:function(e,t,n){n.d(t,{AN:function(){return s},l4:function(){return u},sY:function(){return c},yV:function(){return h}});var r,o,i=n(2265),a=n(2466),l=n(2640),s=((r=s||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),u=((o=u||{})[o.Unmount=0]="Unmount",o[o.Hidden=1]="Hidden",o);function c({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:f;let u=p(t,e);if(i)return d(u,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=u;if(e)return d(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=u;return(0,l.E)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return d(u,n,r,a,s)}function d(e,t={},n,r,o){let{as:l=n,children:s,refName:u="ref",...c}=g(e,["unmount","static"]),d=void 0!==e.ref?{[u]:e.ref}:{},f="function"==typeof s?s(t):s;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t));let h={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(h["data-headlessui-state"]=n.join(" "))}if(l===i.Fragment&&Object.keys(m(c)).length>0){if(!(0,i.isValidElement)(f)||Array.isArray(f)&&f.length>1)throw Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map(e=>` - ${e}`).join(`
2
+ `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join(`
3
+ `)].join(`
4
+ `));let e=f.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>(0,a.A)(null==e?void 0:e.className(...t),c.className):(0,a.A)(null==e?void 0:e.className,c.className);return(0,i.cloneElement)(f,Object.assign({},p(f.props,m(g(c,["ref"]))),h,d,{ref:o(f.ref,d.ref)},t?{className:t}:{}))}return(0,i.createElement)(l,Object.assign({},g(c,["ref"]),l!==i.Fragment&&d,l!==i.Fragment&&h),f)}function f(...e){return e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function p(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(e=>[e,void 0])));for(let e in n)Object.assign(t,{[e](t,...r){for(let o of n[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;o(t,...r)}}});return t}function h(e){var t;return Object.assign((0,i.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function m(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function g(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},4254:function(e,t,n){n.d(t,{f3:function(){return l}});var r=()=>{window.va||(window.va=function(...e){(window.vaq=window.vaq||[]).push(e)})};function o(){return"undefined"!=typeof window}function i(){return"production"}function a(){return"development"===((o()?window.vam:i())||"production")}function l(e={debug:!0}){var t;if(!o())return;!function(e="auto"){if("auto"===e){window.vam=i();return}window.vam=e}(e.mode),r(),e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend));let n=e.scriptSrc||(a()?"https://va.vercel-scripts.com/v1/script.debug.js":"/_vercel/insights/script.js");if(document.head.querySelector(`script[src*="${n}"]`))return;let l=document.createElement("script");l.src=n,l.defer=!0,l.dataset.sdkn="@vercel/analytics"+(e.framework?`/${e.framework}`:""),l.dataset.sdkv="1.2.2",e.disableAutoTrack&&(l.dataset.disableAutoTrack="1"),e.endpoint&&(l.dataset.endpoint=e.endpoint),e.dsn&&(l.dataset.dsn=e.dsn),l.onerror=()=>{let e=a()?"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 ${n}. ${e}`)},a()&&!1===e.debug&&(l.dataset.debug="false"),document.head.appendChild(l)}},7908:function(e,t,n){n.d(t,{Z:function(){return eV}});var r,o,i,a={};function l(e,t){return function(){return e.apply(t,arguments)}}n.r(a),n.d(a,{hasBrowserEnv:function(){return ei},hasStandardBrowserEnv:function(){return ea},hasStandardBrowserWebWorkerEnv:function(){return el}});let{toString:s}=Object.prototype,{getPrototypeOf:u}=Object,c=(r=Object.create(null),e=>{let t=s.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())}),d=e=>(e=e.toLowerCase(),t=>c(t)===e),f=e=>t=>typeof t===e,{isArray:p}=Array,h=f("undefined"),m=d("ArrayBuffer"),g=f("string"),v=f("function"),E=f("number"),b=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==c(e))return!1;let t=u(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},w=d("Date"),S=d("File"),O=d("Blob"),T=d("FileList"),R=d("URLSearchParams");function A(e,t,{allOwnKeys:n=!1}={}){let r,o;if(null!=e){if("object"!=typeof e&&(e=[e]),p(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{let o;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}}function C(e,t){let n;t=t.toLowerCase();let r=Object.keys(e),o=r.length;for(;o-- >0;)if(t===(n=r[o]).toLowerCase())return n;return null}let P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,N=e=>!h(e)&&e!==P,F=(o="undefined"!=typeof Uint8Array&&u(Uint8Array),e=>o&&e instanceof o),L=d("HTMLFormElement"),x=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),k=d("RegExp"),j=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};A(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)},D="abcdefghijklmnopqrstuvwxyz",M="0123456789",_={DIGIT:M,ALPHA:D,ALPHA_DIGIT:D+D.toUpperCase()+M},U=d("AsyncFunction");var B={isArray:p,isArrayBuffer:m,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||v(e.append)&&("formdata"===(t=c(e))||"object"===t&&v(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer)},isString:g,isNumber:E,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:y,isUndefined:h,isDate:w,isFile:S,isBlob:O,isRegExp:k,isFunction:v,isStream:e=>b(e)&&v(e.pipe),isURLSearchParams:R,isTypedArray:F,isFileList:T,forEach:A,merge:function e(){let{caseless:t}=N(this)&&this||{},n={},r=(r,o)=>{let i=t&&C(n,o)||o;y(n[i])&&y(r)?n[i]=e(n[i],r):y(r)?n[i]=e({},r):p(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&A(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(A(t,(t,r)=>{n&&v(t)?e[r]=l(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;let l={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=!1!==n&&u(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return -1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!E(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n;let r=(e&&e[Symbol.iterator]).call(e);for(;(n=r.next())&&!n.done;){let r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let n;let r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:L,hasOwnProperty:x,hasOwnProp:x,reduceDescriptors:j,freezeMethods:e=>{j(e,(t,n)=>{if(v(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;if(v(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(e=>{e.forEach(e=>{n[e]=!0})})(p(e)?e:String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>Number.isFinite(e=+e)?e:t,findKey:C,global:P,isContextDefined:N,ALPHABET:_,generateString:(e=16,t=_.ALPHA_DIGIT)=>{let n="",{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;let o=p(e)?[]:{};return A(e,(e,t)=>{let i=n(e,r+1);h(i)||(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:U,isThenable:e=>e&&(b(e)||v(e))&&v(e.then)&&v(e.catch)};function H(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}B.inherits(H,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:B.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let I=H.prototype,z={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{z[e]={value:e}}),Object.defineProperties(H,z),Object.defineProperty(I,"isAxiosError",{value:!0}),H.from=(e,t,n,r,o,i)=>{let a=Object.create(I);return B.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),H.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var q=n(3663).lW;function V(e){return B.isPlainObject(e)||B.isArray(e)}function W(e){return B.endsWith(e,"[]")?e.slice(0,-2):e}function $(e,t,n){return e?e.concat(t).map(function(e,t){return e=W(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let Y=B.toFlatObject(B,{},null,function(e){return/^is[A-Z]/.test(e)});var J=function(e,t,n){if(!B.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let r=(n=B.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!B.isUndefined(t[e])})).metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,l=(n.Blob||"undefined"!=typeof Blob&&Blob)&&B.isSpecCompliantForm(t);if(!B.isFunction(o))throw TypeError("visitor must be a function");function s(e){if(null===e)return"";if(B.isDate(e))return e.toISOString();if(!l&&B.isBlob(e))throw new H("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(e)||B.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):q.from(e):e}function u(e,n,o){let l=e;if(e&&!o&&"object"==typeof e){if(B.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else{var u;if(B.isArray(e)&&(u=e,B.isArray(u)&&!u.some(V))||(B.isFileList(e)||B.endsWith(n,"[]"))&&(l=B.toArray(e)))return n=W(n),l.forEach(function(e,r){B.isUndefined(e)||null===e||t.append(!0===a?$([n],r,i):null===a?n:n+"[]",s(e))}),!1}}return!!V(e)||(t.append($(o,n,i),s(e)),!1)}let c=[],d=Object.assign(Y,{defaultVisitor:u,convertValue:s,isVisitable:V});if(!B.isObject(e))throw TypeError("data must be an object");return!function e(n,r){if(!B.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),B.forEach(n,function(n,i){!0===(!(B.isUndefined(n)||null===n)&&o.call(t,n,B.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),c.pop()}}(e),t};function G(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function K(e,t){this._pairs=[],e&&J(e,this,t)}let Z=K.prototype;function X(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Q(e,t,n){let r;if(!t)return e;let o=n&&n.encode||X,i=n&&n.serialize;if(r=i?i(t,n):B.isURLSearchParams(t)?t.toString():new K(t,n).toString(o)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}Z.append=function(e,t){this._pairs.push([e,t])},Z.toString=function(e){let t=e?function(t){return e.call(this,t,G)}:G;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class ee{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){B.forEach(this.handlers,function(t){null!==t&&e(t)})}}var et={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},en="undefined"!=typeof URLSearchParams?URLSearchParams:K,er="undefined"!=typeof FormData?FormData:null,eo="undefined"!=typeof Blob?Blob:null;let ei="undefined"!=typeof window&&"undefined"!=typeof document,ea=(i="undefined"!=typeof navigator&&navigator.product,ei&&0>["ReactNative","NativeScript","NS"].indexOf(i)),el="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var es={...a,isBrowser:!0,classes:{URLSearchParams:en,FormData:er,Blob:eo},protocols:["http","https","file","blob","url","data"]},eu=function(e){if(B.isFormData(e)&&B.isFunction(e.entries)){let t={};return B.forEachEntry(e,(e,n)=>{!function e(t,n,r,o){let i=t[o++];if("__proto__"===i)return!0;let a=Number.isFinite(+i),l=o>=t.length;return(i=!i&&B.isArray(r)?r.length:i,l)?B.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n:(r[i]&&B.isObject(r[i])||(r[i]=[]),e(t,n,r[i],o)&&B.isArray(r[i])&&(r[i]=function(e){let t,n;let r={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)r[n=o[t]]=e[n];return r}(r[i]))),!a}(B.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),n,t,0)}),t}return null};let ec={transitional:et,adapter:["xhr","http"],transformRequest:[function(e,t){let n;let r=t.getContentType()||"",o=r.indexOf("application/json")>-1,i=B.isObject(e);if(i&&B.isHTMLForm(e)&&(e=new FormData(e)),B.isFormData(e))return o?JSON.stringify(eu(e)):e;if(B.isArrayBuffer(e)||B.isBuffer(e)||B.isStream(e)||B.isFile(e)||B.isBlob(e))return e;if(B.isArrayBufferView(e))return e.buffer;if(B.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1){var a,l;return(a=e,l=this.formSerializer,J(a,new es.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return es.isNode&&B.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},l))).toString()}if((n=B.isFileList(e))||r.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return J(n?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function(e,t,n){if(B.isString(e))try{return(0,JSON.parse)(e),B.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||ec.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&B.isString(e)&&(n&&!this.responseType||r)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!n&&r){if("SyntaxError"===e.name)throw H.from(e,H.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:es.classes.FormData,Blob:es.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],e=>{ec.headers[e]={}});let ed=B.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var ef=e=>{let t,n,r;let o={};return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||o[t]&&ed[t]||("set-cookie"===t?o[t]?o[t].push(n):o[t]=[n]:o[t]=o[t]?o[t]+", "+n:n)}),o};let ep=Symbol("internals");function eh(e){return e&&String(e).trim().toLowerCase()}function em(e){return!1===e||null==e?e:B.isArray(e)?e.map(em):String(e)}let eg=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ev(e,t,n,r,o){if(B.isFunction(r))return r.call(this,t,n);if(o&&(t=n),B.isString(t)){if(B.isString(r))return -1!==t.indexOf(r);if(B.isRegExp(r))return r.test(t)}}class eE{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function o(e,t,n){let o=eh(t);if(!o)throw Error("header name must be a non-empty string");let i=B.findKey(r,o);i&&void 0!==r[i]&&!0!==n&&(void 0!==n||!1===r[i])||(r[i||t]=em(e))}let i=(e,t)=>B.forEach(e,(e,n)=>o(e,n,t));return B.isPlainObject(e)||e instanceof this.constructor?i(e,t):B.isString(e)&&(e=e.trim())&&!eg(e)?i(ef(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=eh(e)){let n=B.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t)return function(e){let t;let n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=r.exec(e);)n[t[1]]=t[2];return n}(e);if(B.isFunction(t))return t.call(this,e,n);if(B.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eh(e)){let n=B.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||ev(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function o(e){if(e=eh(e)){let o=B.findKey(n,e);o&&(!t||ev(n,n[o],o,t))&&(delete n[o],r=!0)}}return B.isArray(e)?e.forEach(o):o(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let o=t[n];(!e||ev(this,this[o],o,e,!0))&&(delete this[o],r=!0)}return r}normalize(e){let t=this,n={};return B.forEach(this,(r,o)=>{let i=B.findKey(n,o);if(i){t[i]=em(r),delete t[o];return}let a=e?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(o).trim();a!==o&&delete t[o],t[a]=em(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return B.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&B.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[ep]=this[ep]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=eh(e);t[r]||(!function(e,t){let n=B.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return B.isArray(e)?e.forEach(r):r(e),this}}function eb(e,t){let n=this||ec,r=t||n,o=eE.from(r.headers),i=r.data;return B.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function ey(e){return!!(e&&e.__CANCEL__)}function ew(e,t,n){H.call(this,null==e?"canceled":e,H.ERR_CANCELED,t,n),this.name="CanceledError"}eE.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),B.reduceDescriptors(eE.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),B.freezeMethods(eE),B.inherits(ew,H,{__CANCEL__:!0});var eS=es.hasStandardBrowserEnv?{write(e,t,n,r,o,i){let a=[e+"="+encodeURIComponent(t)];B.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),B.isString(r)&&a.push("path="+r),B.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function eO(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}var eT=es.hasStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){let r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){let n=B.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},eR=function(e,t){let n;let r=Array(e=e||10),o=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(l){let s=Date.now(),u=o[a];n||(n=s),r[i]=l,o[i]=s;let c=a,d=0;for(;c!==i;)d+=r[c++],c%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),s-n<t)return;let f=u&&s-u;return f?Math.round(1e3*d/f):void 0}};function eA(e,t){let n=0,r=eR(50,250);return o=>{let i=o.loaded,a=o.lengthComputable?o.total:void 0,l=i-n,s=r(l);n=i;let u={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:s||void 0,estimated:s&&a&&i<=a?(a-i)/s:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}let eC={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,o,i=e.data,a=eE.from(e.headers).normalize(),{responseType:l,withXSRFToken:s}=e;function u(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}if(B.isFormData(i)){if(es.hasStandardBrowserEnv||es.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if(!1!==(o=a.getContentType())){let[e,...t]=o?o.split(";").map(e=>e.trim()).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}}let c=new XMLHttpRequest;if(e.auth){let t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(t+":"+n))}let d=eO(e.baseURL,e.url);function f(){if(!c)return;let r=eE.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new H("Request failed with status code "+n.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}(function(e){t(e),u()},function(e){n(e),u()},{data:l&&"text"!==l&&"json"!==l?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:e,request:c}),c=null}if(c.open(e.method.toUpperCase(),Q(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(f)},c.onabort=function(){c&&(n(new H("Request aborted",H.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new H("Network Error",H.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||et;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new H(t,r.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,e,c)),c=null},es.hasStandardBrowserEnv&&(s&&B.isFunction(s)&&(s=s(e)),s||!1!==s&&eT(d))){let t=e.xsrfHeaderName&&e.xsrfCookieName&&eS.read(e.xsrfCookieName);t&&a.set(e.xsrfHeaderName,t)}void 0===i&&a.setContentType(null),"setRequestHeader"in c&&B.forEach(a.toJSON(),function(e,t){c.setRequestHeader(t,e)}),B.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),l&&"json"!==l&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",eA(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",eA(e.onUploadProgress)),(e.cancelToken||e.signal)&&(r=t=>{c&&(n(!t||t.type?new ew(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r)));let p=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);if(p&&-1===es.protocols.indexOf(p)){n(new H("Unsupported protocol "+p+":",H.ERR_BAD_REQUEST,e));return}c.send(i||null)})}};B.forEach(eC,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let eP=e=>`- ${e}`,eN=e=>B.isFunction(e)||null===e||!1===e;var eF={getAdapter:e=>{let t,n;let{length:r}=e=B.isArray(e)?e:[e],o={};for(let i=0;i<r;i++){let r;if(n=t=e[i],!eN(t)&&void 0===(n=eC[(r=String(t)).toLowerCase()]))throw new H(`Unknown adapter '${r}'`);if(n)break;o[r||"#"+i]=n}if(!n){let e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new H("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(eP).join("\n"):" "+eP(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n},adapters:eC};function eL(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ew(null,e)}function ex(e){return eL(e),e.headers=eE.from(e.headers),e.data=eb.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),eF.getAdapter(e.adapter||ec.adapter)(e).then(function(t){return eL(e),t.data=eb.call(e,e.transformResponse,t),t.headers=eE.from(t.headers),t},function(t){return!ey(t)&&(eL(e),t&&t.response&&(t.response.data=eb.call(e,e.transformResponse,t.response),t.response.headers=eE.from(t.response.headers))),Promise.reject(t)})}let ek=e=>e instanceof eE?{...e}:e;function ej(e,t){t=t||{};let n={};function r(e,t,n){return B.isPlainObject(e)&&B.isPlainObject(t)?B.merge.call({caseless:n},e,t):B.isPlainObject(t)?B.merge({},t):B.isArray(t)?t.slice():t}function o(e,t,n){return B.isUndefined(t)?B.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!B.isUndefined(t))return r(void 0,t)}function a(e,t){return B.isUndefined(t)?B.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function l(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}let s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(e,t)=>o(ek(e),ek(t),!0)};return B.forEach(Object.keys(Object.assign({},e,t)),function(r){let i=s[r]||o,a=i(e[r],t[r],r);B.isUndefined(a)&&i!==l||(n[r]=a)}),n}let eD="1.6.8",eM={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{eM[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let e_={};eM.transitional=function(e,t,n){function r(e,t){return"[Axios v"+eD+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new H(r(o," has been removed"+(t?" in "+t:"")),H.ERR_DEPRECATED);return t&&!e_[o]&&(e_[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var eU={assertOptions:function(e,t,n){if("object"!=typeof e)throw new H("options must be an object",H.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),o=r.length;for(;o-- >0;){let i=r[o],a=t[i];if(a){let t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new H("option "+i+" must be "+n,H.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new H("Unknown option "+i,H.ERR_BAD_OPTION)}},validators:eM};let eB=eU.validators;class eH{constructor(e){this.defaults=e,this.interceptors={request:new ee,response:new ee}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){let n,r;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:o,paramsSerializer:i,headers:a}=t=ej(this.defaults,t);void 0!==o&&eU.assertOptions(o,{silentJSONParsing:eB.transitional(eB.boolean),forcedJSONParsing:eB.transitional(eB.boolean),clarifyTimeoutError:eB.transitional(eB.boolean)},!1),null!=i&&(B.isFunction(i)?t.paramsSerializer={serialize:i}:eU.assertOptions(i,{encode:eB.function,serialize:eB.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let l=a&&B.merge(a.common,a[t.method]);a&&B.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=eE.concat(l,a);let s=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,s.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[ex.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),r=e.length,n=Promise.resolve(t);d<r;)n=n.then(e[d++],e[d++]);return n}r=s.length;let f=t;for(d=0;d<r;){let e=s[d++],t=s[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{n=ex.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,r=c.length;d<r;)n=n.then(c[d++],c[d++]);return n}getUri(e){return Q(eO((e=ej(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}B.forEach(["delete","get","head","options"],function(e){eH.prototype[e]=function(t,n){return this.request(ej(n||{},{method:e,url:t,data:(n||{}).data}))}}),B.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(ej(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}eH.prototype[e]=t(),eH.prototype[e+"Form"]=t(!0)});class eI{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;let r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new ew(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new eI(function(t){e=t}),cancel:e}}}let ez={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ez).forEach(([e,t])=>{ez[t]=e});let eq=function e(t){let n=new eH(t),r=l(eH.prototype.request,n);return B.extend(r,eH.prototype,n,{allOwnKeys:!0}),B.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ej(t,n))},r}(ec);eq.Axios=eH,eq.CanceledError=ew,eq.CancelToken=eI,eq.isCancel=ey,eq.VERSION=eD,eq.toFormData=J,eq.AxiosError=H,eq.Cancel=eq.CanceledError,eq.all=function(e){return Promise.all(e)},eq.spread=function(e){return function(t){return e.apply(null,t)}},eq.isAxiosError=function(e){return B.isObject(e)&&!0===e.isAxiosError},eq.mergeConfig=ej,eq.AxiosHeaders=eE,eq.formToJSON=e=>eu(B.isHTMLForm(e)?new FormData(e):e),eq.getAdapter=eF.getAdapter,eq.HttpStatusCode=ez,eq.default=eq;var eV=eq}}]);
_next/static/chunks/468-66d30219005587b4.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/app/_not-found-f13840ac75ee0073.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[540],{3155:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found",function(){return n(4032)}])},4032:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}}),n(6921);let o=n(7437);n(2265);let r={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"},desc:{display:"inline-block"},h1:{display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};function i(){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:"404: This page could not be found."}),(0,o.jsx)("div",{style:r.error,children:(0,o.jsxs)("div",{children:[(0,o.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,o.jsx)("h1",{className:"next-error-h1",style:r.h1,children:"404"}),(0,o.jsx)("div",{style:r.desc,children:(0,o.jsx)("h2",{style:r.h2,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,468,744],function(){return e(e.s=3155)}),_N_E=e.O()}]);
_next/static/chunks/app/layout-464bbb7a64cea06b.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{3521:function(){}},function(n){n.O(0,[971,468,744],function(){return n(n.s=3521)}),_N_E=n.O()}]);
_next/static/chunks/app/page-5fdd51431da8a1dc.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{1402:function(e,t,n){Promise.resolve().then(n.bind(n,9721)),Promise.resolve().then(n.bind(n,3377)),Promise.resolve().then(n.t.bind(n,6057,23))},3377:function(e,t,n){"use strict";let a;n.r(t),n.d(t,{default:function(){return Q}});var i,r,s,o=n(7437),l=n(4254),c=n(7908),u=n(2265),d={SAMPLING_RATE:16e3,DEFAULT_AUDIO_URL:"https://huggingface.co/datasets/VINH123/tiengviet/resolve/main/wa2vec2/Datasets/wavs/LJ004-0169.wav",DEFAULT_MODEL:"huuquyet/PhoWhisper-tiny",DEFAULT_SUBTASK:"transcribe",DEFAULT_LANGUAGE:"vietnamese",DEFAULT_QUANTIZED:(a=!1,i=navigator.userAgent||navigator.vendor||("opera"in window&&"string"==typeof window.opera?window.opera:""),(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(i.substr(0,4)))&&(a=!0),a),DEFAULT_MULTILINGUAL:!1};function m(e){let t=(0,u.useRef)(null),n=(0,u.useRef)(null);return(0,u.useEffect)(()=>{t.current&&n.current&&(n.current.src=e.audioUrl,t.current.load())},[e.audioUrl]),(0,o.jsx)("div",{className:"flex relative z-10 p-4 w-full",children:(0,o.jsx)("audio",{ref:t,controls:!0,className:"w-full h-14 rounded-lg bg-white shadow-xl shadow-black/5 ring-1 ring-slate-700/10",children:(0,o.jsx)("source",{ref:n,type:e.mimeType})})})}function p(e){return String(e).padStart(2,"0")}function y(e){let t=e/3600|0,n=(e-=3600*t)/60|0,a=0|(e-=60*n);return"".concat(t?"".concat(p(t),":"):"").concat(p(n),":").concat(p(a))}var h=n(1759);let g={172351395:{name:"EBML",type:"Container"},646:{name:"EBMLVersion",type:"Uint"},759:{name:"EBMLReadVersion",type:"Uint"},754:{name:"EBMLMaxIDLength",type:"Uint"},755:{name:"EBMLMaxSizeLength",type:"Uint"},642:{name:"DocType",type:"String"},647:{name:"DocTypeVersion",type:"Uint"},645:{name:"DocTypeReadVersion",type:"Uint"},108:{name:"Void",type:"Binary"},63:{name:"CRC-32",type:"Binary"},190023271:{name:"SignatureSlot",type:"Container"},16010:{name:"SignatureAlgo",type:"Uint"},16026:{name:"SignatureHash",type:"Uint"},16037:{name:"SignaturePublicKey",type:"Binary"},16053:{name:"Signature",type:"Binary"},15963:{name:"SignatureElements",type:"Container"},15995:{name:"SignatureElementList",type:"Container"},9522:{name:"SignedElement",type:"Binary"},139690087:{name:"Segment",type:"Container"},21863284:{name:"SeekHead",type:"Container"},3515:{name:"Seek",type:"Container"},5035:{name:"SeekID",type:"Binary"},5036:{name:"SeekPosition",type:"Uint"},88713574:{name:"Info",type:"Container"},13220:{name:"SegmentUID",type:"Binary"},13188:{name:"SegmentFilename",type:"String"},1882403:{name:"PrevUID",type:"Binary"},1868715:{name:"PrevFilename",type:"String"},2013475:{name:"NextUID",type:"Binary"},1999803:{name:"NextFilename",type:"String"},1092:{name:"SegmentFamily",type:"Binary"},10532:{name:"ChapterTranslate",type:"Container"},10748:{name:"ChapterTranslateEditionUID",type:"Uint"},10687:{name:"ChapterTranslateCodec",type:"Uint"},10661:{name:"ChapterTranslateID",type:"Binary"},710577:{name:"TimecodeScale",type:"Uint"},1161:{name:"Duration",type:"Float"},1121:{name:"DateUTC",type:"Date"},15273:{name:"Title",type:"String"},3456:{name:"MuxingApp",type:"String"},5953:{name:"WritingApp",type:"String"},103:{name:"Timecode",type:"Uint"},6228:{name:"SilentTracks",type:"Container"},6359:{name:"SilentTrackNumber",type:"Uint"},39:{name:"Position",type:"Uint"},43:{name:"PrevSize",type:"Uint"},35:{name:"SimpleBlock",type:"Binary"},32:{name:"BlockGroup",type:"Container"},33:{name:"Block",type:"Binary"},34:{name:"BlockVirtual",type:"Binary"},13729:{name:"BlockAdditions",type:"Container"},38:{name:"BlockMore",type:"Container"},110:{name:"BlockAddID",type:"Uint"},37:{name:"BlockAdditional",type:"Binary"},27:{name:"BlockDuration",type:"Uint"},122:{name:"ReferencePriority",type:"Uint"},123:{name:"ReferenceBlock",type:"Int"},125:{name:"ReferenceVirtual",type:"Int"},36:{name:"CodecState",type:"Binary"},13730:{name:"DiscardPadding",type:"Int"},14:{name:"Slices",type:"Container"},104:{name:"TimeSlice",type:"Container"},76:{name:"LaceNumber",type:"Uint"},77:{name:"FrameNumber",type:"Uint"},75:{name:"BlockAdditionID",type:"Uint"},78:{name:"Delay",type:"Uint"},79:{name:"SliceDuration",type:"Uint"},72:{name:"ReferenceFrame",type:"Container"},73:{name:"ReferenceOffset",type:"Uint"},74:{name:"ReferenceTimeCode",type:"Uint"},47:{name:"EncryptedBlock",type:"Binary"},106212971:{name:"Tracks",type:"Container"},46:{name:"TrackEntry",type:"Container"},87:{name:"TrackNumber",type:"Uint"},13253:{name:"TrackUID",type:"Uint"},3:{name:"TrackType",type:"Uint"},57:{name:"FlagEnabled",type:"Uint"},8:{name:"FlagDefault",type:"Uint"},5546:{name:"FlagForced",type:"Uint"},28:{name:"FlagLacing",type:"Uint"},11751:{name:"MinCache",type:"Uint"},11768:{name:"MaxCache",type:"Uint"},254851:{name:"DefaultDuration",type:"Uint"},216698:{name:"DefaultDecodedFieldDuration",type:"Uint"},209231:{name:"TrackTimecodeScale",type:"Float"},4991:{name:"TrackOffset",type:"Int"},5614:{name:"MaxBlockAdditionID",type:"Uint"},4974:{name:"Name",type:"String"},177564:{name:"Language",type:"String"},6:{name:"CodecID",type:"String"},9122:{name:"CodecPrivate",type:"Binary"},362120:{name:"CodecName",type:"String"},13382:{name:"AttachmentLink",type:"Uint"},1742487:{name:"CodecSettings",type:"String"},1785920:{name:"CodecInfoURL",type:"String"},438848:{name:"CodecDownloadURL",type:"String"},42:{name:"CodecDecodeAll",type:"Uint"},12203:{name:"TrackOverlay",type:"Uint"},5802:{name:"CodecDelay",type:"Uint"},5819:{name:"SeekPreRoll",type:"Uint"},9764:{name:"TrackTranslate",type:"Container"},9980:{name:"TrackTranslateEditionUID",type:"Uint"},9919:{name:"TrackTranslateCodec",type:"Uint"},9893:{name:"TrackTranslateTrackID",type:"Binary"},96:{name:"Video",type:"Container"},26:{name:"FlagInterlaced",type:"Uint"},5048:{name:"StereoMode",type:"Uint"},5056:{name:"AlphaMode",type:"Uint"},5049:{name:"OldStereoMode",type:"Uint"},48:{name:"PixelWidth",type:"Uint"},58:{name:"PixelHeight",type:"Uint"},5290:{name:"PixelCropBottom",type:"Uint"},5307:{name:"PixelCropTop",type:"Uint"},5324:{name:"PixelCropLeft",type:"Uint"},5341:{name:"PixelCropRight",type:"Uint"},5296:{name:"DisplayWidth",type:"Uint"},5306:{name:"DisplayHeight",type:"Uint"},5298:{name:"DisplayUnit",type:"Uint"},5299:{name:"AspectRatioType",type:"Uint"},963876:{name:"ColourSpace",type:"Binary"},1029411:{name:"GammaValue",type:"Float"},230371:{name:"FrameRate",type:"Float"},97:{name:"Audio",type:"Container"},53:{name:"SamplingFrequency",type:"Float"},14517:{name:"OutputSamplingFrequency",type:"Float"},31:{name:"Channels",type:"Uint"},15739:{name:"ChannelPositions",type:"Binary"},8804:{name:"BitDepth",type:"Uint"},98:{name:"TrackOperation",type:"Container"},99:{name:"TrackCombinePlanes",type:"Container"},100:{name:"TrackPlane",type:"Container"},101:{name:"TrackPlaneUID",type:"Uint"},102:{name:"TrackPlaneType",type:"Uint"},105:{name:"TrackJoinBlocks",type:"Container"},109:{name:"TrackJoinUID",type:"Uint"},64:{name:"TrickTrackUID",type:"Uint"},65:{name:"TrickTrackSegmentUID",type:"Binary"},70:{name:"TrickTrackFlag",type:"Uint"},71:{name:"TrickMasterTrackUID",type:"Uint"},68:{name:"TrickMasterTrackSegmentUID",type:"Binary"},11648:{name:"ContentEncodings",type:"Container"},8768:{name:"ContentEncoding",type:"Container"},4145:{name:"ContentEncodingOrder",type:"Uint"},4146:{name:"ContentEncodingScope",type:"Uint"},4147:{name:"ContentEncodingType",type:"Uint"},4148:{name:"ContentCompression",type:"Container"},596:{name:"ContentCompAlgo",type:"Uint"},597:{name:"ContentCompSettings",type:"Binary"},4149:{name:"ContentEncryption",type:"Container"},2017:{name:"ContentEncAlgo",type:"Uint"},2018:{name:"ContentEncKeyID",type:"Binary"},2019:{name:"ContentSignature",type:"Binary"},2020:{name:"ContentSigKeyID",type:"Binary"},2021:{name:"ContentSigAlgo",type:"Uint"},2022:{name:"ContentSigHashAlgo",type:"Uint"},206814059:{name:"Cues",type:"Container"},59:{name:"CuePoint",type:"Container"},51:{name:"CueTime",type:"Uint"},55:{name:"CueTrackPositions",type:"Container"},119:{name:"CueTrack",type:"Uint"},113:{name:"CueClusterPosition",type:"Uint"},112:{name:"CueRelativePosition",type:"Uint"},50:{name:"CueDuration",type:"Uint"},4984:{name:"CueBlockNumber",type:"Uint"},106:{name:"CueCodecState",type:"Uint"},91:{name:"CueReference",type:"Container"},22:{name:"CueRefTime",type:"Uint"},23:{name:"CueRefCluster",type:"Uint"},4959:{name:"CueRefNumber",type:"Uint"},107:{name:"CueRefCodecState",type:"Uint"},155296873:{name:"Attachments",type:"Container"},8615:{name:"AttachedFile",type:"Container"},1662:{name:"FileDescription",type:"String"},1646:{name:"FileName",type:"String"},1632:{name:"FileMimeType",type:"String"},1628:{name:"FileData",type:"Binary"},1710:{name:"FileUID",type:"Uint"},1653:{name:"FileReferral",type:"Binary"},1633:{name:"FileUsedStartTime",type:"Uint"},1634:{name:"FileUsedEndTime",type:"Uint"},4433776:{name:"Chapters",type:"Container"},1465:{name:"EditionEntry",type:"Container"},1468:{name:"EditionUID",type:"Uint"},1469:{name:"EditionFlagHidden",type:"Uint"},1499:{name:"EditionFlagDefault",type:"Uint"},1501:{name:"EditionFlagOrdered",type:"Uint"},54:{name:"ChapterAtom",type:"Container"},13252:{name:"ChapterUID",type:"Uint"},5716:{name:"ChapterStringUID",type:"String"},17:{name:"ChapterTimeStart",type:"Uint"},18:{name:"ChapterTimeEnd",type:"Uint"},24:{name:"ChapterFlagHidden",type:"Uint"},1432:{name:"ChapterFlagEnabled",type:"Uint"},11879:{name:"ChapterSegmentUID",type:"Binary"},11964:{name:"ChapterSegmentEditionUID",type:"Uint"},9155:{name:"ChapterPhysicalEquiv",type:"Uint"},15:{name:"ChapterTrack",type:"Container"},9:{name:"ChapterTrackNumber",type:"Uint"},0:{name:"ChapterDisplay",type:"Container"},5:{name:"ChapString",type:"String"},892:{name:"ChapLanguage",type:"String"},894:{name:"ChapCountry",type:"String"},10564:{name:"ChapProcess",type:"Container"},10581:{name:"ChapProcessCodecID",type:"Uint"},1293:{name:"ChapProcessPrivate",type:"Binary"},10513:{name:"ChapProcessCommand",type:"Container"},10530:{name:"ChapProcessTime",type:"Uint"},10547:{name:"ChapProcessData",type:"Binary"},39109479:{name:"Tags",type:"Container"},13171:{name:"Tag",type:"Container"},9152:{name:"Targets",type:"Container"},10442:{name:"TargetTypeValue",type:"Uint"},9162:{name:"TargetType",type:"String"},9157:{name:"TagTrackUID",type:"Uint"},9161:{name:"TagEditionUID",type:"Uint"},9156:{name:"TagChapterUID",type:"Uint"},9158:{name:"TagAttachmentUID",type:"Uint"},10184:{name:"SimpleTag",type:"Container"},1443:{name:"TagName",type:"String"},1146:{name:"TagLanguage",type:"String"},1156:{name:"TagDefault",type:"Uint"},1159:{name:"TagString",type:"String"},1157:{name:"TagBinary",type:"Binary"}};class f{updateBySource(){}setSource(e){this.source=e,this.updateBySource()}updateByData(){}setData(e){this.data=e,this.updateByData()}constructor(e="Unknown",t="Unknown"){(0,h._)(this,"name",void 0),(0,h._)(this,"type",void 0),(0,h._)(this,"source",void 0),(0,h._)(this,"data",void 0),this.name=e,this.type=t}}class b extends f{updateBySource(){this.data="";for(let e=0;e<this.source.length;e++){let t=this.source[e].toString(16);this.data+=x(t)}}updateByData(){let e=this.data.length/2;this.source=new Uint8Array(e);for(let t=0;t<e;t++){let e=this.data.substr(2*t,2);this.source[t]=Number.parseInt(e,16)}}getValue(){return Number.parseInt(this.data,16)}setValue(e){this.setData(x(e.toString(16)))}constructor(e,t){super(e,t||"Uint")}}function x(e){return e.length%2==1?"0".concat(e):e}class k extends f{getFloatArrayType(){return this.source&&4===this.source.length?Float32Array:Float64Array}updateBySource(){let e=this.source.reverse(),t=new(this.getFloatArrayType())(e.buffer);this.data=t[0]}updateByData(){let e=new(this.getFloatArrayType())([this.data]),t=new Uint8Array(e.buffer);this.source=t.reverse()}getValue(){return this.data}setValue(e){this.setData(e)}constructor(e,t){super(e,t||"Float")}}class v extends f{readByte(){return this.source[this.offset++]}readUint(){let e=this.readByte(),t=8-e.toString(2).length,n=e-(1<<7-t);for(let e=0;e<t;e++)n*=256,n+=this.readByte();return n}updateBySource(){let e;for(this.data=[],this.offset=0;this.offset<this.source.length;this.offset=e){let t=this.readUint(),n=this.readUint();e=Math.min(this.offset+n,this.source.length);let a=this.source.slice(this.offset,e),i=g[t]||{name:"Unknown",type:"Unknown"},r=f;switch(i.type){case"Container":r=v;break;case"Uint":r=b;break;case"Float":r=k}let s=new r(i.name,i.type);s.setSource(a),this.data.push({id:t,idHex:t.toString(16),data:s})}}writeUint(e){let t,n,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(t=1,n=128;e>=n&&t<8;t++,n*=128);if(!a){let a=n+e;for(let e=t-1;e>=0;e--){let t=a%256;this.source[this.offset+e]=t,a=(a-t)/256}}this.offset+=t}writeSections(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.offset=0;for(let t=0;t<this.data.length;t++){let n=this.data[t],a=n.data.source,i=a.length;this.writeUint(n.id,e),this.writeUint(i,e),e||this.source.set(a,this.offset),this.offset+=i}return this.offset}updateByData(){let e=this.writeSections(!0);this.source=new Uint8Array(e),this.writeSections()}getSectionById(e){for(let t=0;t<this.data.length;t++){let n=this.data[t];if(n.id===e)return n.data}}constructor(e,t){super(e,t||"Container"),(0,h._)(this,"offset",0),(0,h._)(this,"data",[])}}class C extends v{fixDuration(e){let t=this.getSectionById(139690087);if(!t)return!1;let n=t.getSectionById(88713574);if(!n)return!1;let a=n.getSectionById(710577);if(!a)return!1;let i=n.getSectionById(1161);if(i){if(!(0>=i.getValue()))return!1;i.setValue(e)}else(i=new k("Duration","Float")).setValue(e),n.data.push({id:1161,data:i});return a.setValue(1e6),n.updateByData(),t.updateByData(),this.updateByData(),!0}toBlob(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"video/webm";return new Blob([this.source.buffer],{type:e})}constructor(e){super("File","File"),this.setSource(e)}}let w=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"video/webm";return new Promise((a,i)=>{try{let r=new FileReader;r.addEventListener("loadend",()=>{try{let i=r.result,s=new C(new Uint8Array(i));s.fixDuration(t)?a(s.toBlob(n)):a(e)}catch(e){i(e)}}),r.addEventListener("error",()=>i()),r.readAsArrayBuffer(e)}catch(e){i(e)}})};function U(e){let[t,n]=(0,u.useState)(!1),[a,i]=(0,u.useState)(0),[r,s]=(0,u.useState)(null),l=(0,u.useRef)(null),c=(0,u.useRef)(null),d=(0,u.useRef)([]),m=(0,u.useRef)(null),p=async()=>{s(null);let t=Date.now();try{l.current||(l.current=await navigator.mediaDevices.getUserMedia({audio:!0}));let a=function(){let e=["audio/webm","audio/mp4","audio/ogg","audio/wav","audio/aac"];for(let t=0;t<e.length;t++)if(MediaRecorder.isTypeSupported(e[t]))return e[t]}(),i=new MediaRecorder(l.current,{mimeType:a});c.current=i,i.addEventListener("dataavailable",async n=>{if(n.data.size>0&&d.current.push(n.data),"inactive"===i.state){let n=Date.now()-t,i=new Blob(d.current,{type:a});"audio/webm"===a&&(i=await w(i,n,i.type)),s(i),e.onRecordingComplete(i),d.current=[]}}),i.start(),n(!0)}catch(e){console.error("Error accessing microphone:",e)}},h=()=>{c.current&&"recording"===c.current.state&&(c.current.stop(),i(0),n(!1))};return(0,u.useEffect)(()=>{if(t){let e=setInterval(()=>{i(e=>e+1)},1e3);return()=>{clearInterval(e)}}return()=>{}},[t]),(0,o.jsxs)("div",{className:"flex flex-col justify-center items-center",children:[(0,o.jsx)("button",{type:"button",className:"m-2 inline-flex justify-center rounded-md border border-transparent px-4 py-2 text-sm font-medium text-white focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2 transition-all duration-200 ".concat(t?"bg-red-500 hover:bg-red-600":"bg-green-500 hover:bg-green-600"),onClick:()=>{t?h():p()},children:t?"Stop Recording (".concat(y(a),")"):"Start Recording"}),r&&(0,o.jsx)("audio",{className:"w-full",ref:m,controls:!0,children:(0,o.jsx)("source",{src:URL.createObjectURL(r),type:r.type})})]})}function j(e){let{text:t,percentage:n}=e;return n=null!=n?n:0,(0,o.jsx)("div",{className:"mt-0.5 w-full relative text-sm text-white background-bg-cyan-400 bg-gray-200 border-1 border-gray-400 rounded-lg text-left overflow-hidden",children:(0,o.jsxs)("div",{className:"top-0 h-full bg-blue-500 whitespace-nowrap px-2",style:{width:"".concat(n,"%")},children:[t," (","".concat(n.toFixed(2),"%"),")"]})})}function S(e){let{isModelLoading:t,isTranscribing:n,onClick:a,...i}=e;return(0,o.jsx)("button",{...i,onClick:e=>{!a||n||t||a(e)},disabled:n,className:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center mr-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 inline-flex items-center",children:t?(0,o.jsx)(T,{text:"Loading model..."}):n?(0,o.jsx)(T,{text:"Transcribing..."}):"Transcribe Audio"})}function T(e){return(0,o.jsxs)("div",{role:"status",children:[(0,o.jsxs)("svg",{"aria-hidden":"true",role:"status",className:"inline w-4 h-4 mr-3 text-white animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#E5E7EB"}),(0,o.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})]}),e.text]})}var D=n(129),B=n(8324);function F(e){let{show:t,onClose:n,onSubmit:a,title:i,content:r,submitText:s,submitEnabled:l=!0}=e;return(0,o.jsx)(D.u,{appear:!0,show:t,as:u.Fragment,children:(0,o.jsxs)(B.V,{as:"div",className:"relative z-10",onClose:n,children:[(0,o.jsx)(D.u.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,o.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-25"})}),(0,o.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,o.jsx)("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:(0,o.jsx)(D.u.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,o.jsxs)(B.V.Panel,{className:"w-full max-w-md transform overflow-hidden rounded-2xl bg-white p-6 text-left align-middle shadow-xl transition-all",children:[(0,o.jsx)(B.V.Title,{as:"h3",className:"text-lg font-medium leading-6 text-gray-900",children:i}),(0,o.jsx)("div",{className:"mt-3 text-sm text-gray-500",children:r}),(0,o.jsxs)("div",{className:"mt-4 flex flex-row-reverse",children:[s&&(0,o.jsx)("button",{type:"button",disabled:!l,className:"inline-flex ml-4 justify-center rounded-md border border-transparent ".concat(l?"bg-indigo-600":"bg-grey-300"," px-4 py-2 text-sm font-medium text-indigo-100 ").concat(l?"hover:bg-indigo-500 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2":""," transition-all duration-300"),onClick:a,children:s}),(0,o.jsx)("button",{type:"button",className:"inline-flex justify-center rounded-md border border-transparent bg-indigo-100 px-4 py-2 text-sm font-medium text-indigo-900 hover:bg-indigo-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2 transition-all duration-300",onClick:n,children:"Close"})]})]})})})})]})})}function L(e){return(0,o.jsx)("div",{children:(0,o.jsx)("input",{...e,type:"url",className:"my-2 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"www.example.com",required:!0})})}function N(e){return((e=e.toLowerCase()).match(/\w+.?/g)||[]).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")}let E={en:"english",zh:"chinese",de:"german",es:"spanish/castilian",ru:"russian",ko:"korean",fr:"french",ja:"japanese",pt:"portuguese",tr:"turkish",pl:"polish",ca:"catalan/valencian",nl:"dutch/flemish",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/moldavian/moldovan",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/panjabi",si:"sinhala/sinhalese",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/haitian",ps:"pashto/pushto",tk:"turkmen",nn:"nynorsk",mt:"maltese",sa:"sanskrit",lb:"luxembourgish/letzeburgesch",my:"myanmar/burmese",bo:"tibetan",tl:"tagalog",mg:"malagasy",as:"assamese",tt:"tatar",haw:"hawaiian",ln:"lingala",ha:"hausa",ba:"bashkir",jw:"javanese",su:"sundanese"};function A(e){let[t,n]=(0,u.useState)(void 0),[a,i]=(0,u.useState)(void 0),[r,s]=(0,u.useState)(void 0),l=void 0!==t,p=()=>{i(void 0),s(void 0)},y=async(e,t)=>{let n=new AudioContext({sampleRate:d.SAMPLING_RATE}),a=URL.createObjectURL(new Blob([e],{type:"audio/*"}));i({buffer:await n.decodeAudioData(e),url:a,source:"URL",mimeType:t})},h=async e=>{p(),n(0);let t=URL.createObjectURL(e),a=new FileReader;a.onprogress=e=>{n(e.loaded/e.total||0)},a.onloadend=async()=>{let r=new AudioContext({sampleRate:d.SAMPLING_RATE}),s=a.result,o=await r.decodeAudioData(s);n(void 0),i({buffer:o,url:t,source:"RECORDING",mimeType:e.type})},a.readAsArrayBuffer(e)},g=async e=>{if(r)try{i(void 0),n(0);let{data:t,headers:a}=await c.Z.get(r,{signal:e.signal,responseType:"arraybuffer",onDownloadProgress(e){n(e.progress||0)}}),s=a["content-type"];s&&"audio/wave"!==s||(s="audio/wav"),y(t,s)}catch(e){console.log("Request failed or aborted",e)}finally{n(void 0)}};return(0,u.useEffect)(()=>{if(r){let e=new AbortController;return g(e),()=>{e.abort()}}},[r]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex flex-col justify-center items-center rounded-lg bg-white shadow-xl shadow-black/5 ring-1 ring-slate-700/10",children:[(0,o.jsxs)("div",{className:"flex flex-row space-x-2 py-2 w-full px-2",children:[(0,o.jsx)(_,{icon:(0,o.jsx)(H,{}),text:"From URL",onUrlUpdate:t=>{e.transcriber.onInputChange(),s(t)}}),(0,o.jsx)(M,{}),(0,o.jsx)(V,{icon:(0,o.jsx)(Z,{}),text:"From file",onFileUpdate:(t,n,a)=>{e.transcriber.onInputChange(),i({buffer:t,url:n,source:"FILE",mimeType:a})}}),navigator.mediaDevices&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(M,{}),(0,o.jsx)(q,{icon:(0,o.jsx)(K,{}),text:"Record",setAudioData:t=>{e.transcriber.onInputChange(),h(t)}})]})]}),(0,o.jsx)(P,{progress:l?t:+!!a})]}),a&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(m,{audioUrl:a.url,mimeType:a.mimeType}),(0,o.jsxs)("div",{className:"relative w-full flex justify-center items-center",children:[(0,o.jsx)(S,{onClick:()=>{e.transcriber.start(a.buffer)},isModelLoading:e.transcriber.isModelLoading,isTranscribing:e.transcriber.isBusy}),(0,o.jsx)(R,{className:"absolute right-4",transcriber:e.transcriber,icon:(0,o.jsx)(J,{})})]}),e.transcriber.progressItems.length>0&&(0,o.jsxs)("div",{className:"relative z-10 p-4 w-full",children:[(0,o.jsx)("label",{children:"Loading model files... (only run once)"}),e.transcriber.progressItems.map(e=>(0,o.jsx)("div",{children:(0,o.jsx)(j,{text:e.file,percentage:e.progress})},e.file))]})]})]})}function R(e){let[t,n]=(0,u.useState)(!1),a=()=>{n(!1)};return(0,o.jsxs)("div",{className:e.className,children:[(0,o.jsx)(G,{icon:e.icon,onClick:()=>{n(!0)}}),(0,o.jsx)(I,{show:t,onSubmit:e=>{a()},onClose:a,transcriber:e.transcriber})]})}function I(e){let t=Object.values(E).map(N),n={"huuquyet/PhoWhisper-tiny":[43,154],"huuquyet/PhoWhisper-base":[75,285],"huuquyet/PhoWhisper-small":[250,970],"Xenova/whisper-tiny":[41,152],"Xenova/whisper-base":[77,291],"Xenova/whisper-small":[249],"Xenova/whisper-medium":[776],"distil-whisper/distil-medium.en":[402],"distil-whisper/distil-large-v2":[767]};return(0,o.jsx)(F,{show:e.show,title:"Settings",content:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("label",{children:"Select the model to use."}),(0,o.jsx)("select",{className:"mt-1 mb-1 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:e.transcriber.model,onChange:t=>{e.transcriber.setModel(t.target.value)},children:Object.keys(n).filter(t=>e.transcriber.quantized||2===n[t].length).filter(t=>!e.transcriber.multilingual||!t.startsWith("distil-whisper/")).map(t=>(0,o.jsx)("option",{value:t,children:"".concat(t).concat(e.transcriber.multilingual||t.startsWith("distil-whisper/")||t.startsWith("huuquyet")?"":".en"," (").concat(n[t][e.transcriber.quantized?0:1],"MB)")},t))}),(0,o.jsxs)("div",{className:"flex justify-between items-center mb-3 px-1",children:[(0,o.jsxs)("div",{className:"flex",children:[(0,o.jsx)("input",{id:"multilingual",type:"checkbox",checked:e.transcriber.multilingual,onChange:t=>{e.transcriber.setMultilingual(t.target.checked)}}),(0,o.jsx)("label",{htmlFor:"multilingual",className:"ms-1",children:"Multilingual"})]}),(0,o.jsxs)("div",{className:"flex",children:[(0,o.jsx)("input",{id:"quantize",type:"checkbox",checked:e.transcriber.quantized,onChange:t=>{e.transcriber.setQuantized(t.target.checked)}}),(0,o.jsx)("label",{htmlFor:"quantize",className:"ms-1",children:"Quantized"})]})]}),e.transcriber.multilingual&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("label",{children:"Select the source language."}),(0,o.jsx)("select",{className:"mt-1 mb-3 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:e.transcriber.language,onChange:t=>{e.transcriber.setLanguage(t.target.value)},children:Object.keys(E).map((e,n)=>(0,o.jsx)("option",{value:e,children:t[n]},e))}),(0,o.jsx)("label",{children:"Select the task to perform."}),(0,o.jsxs)("select",{className:"mt-1 mb-3 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:e.transcriber.subtask,onChange:t=>{e.transcriber.setSubtask(t.target.value)},children:[(0,o.jsx)("option",{value:"transcribe",children:"Transcribe"}),(0,o.jsx)("option",{value:"translate",children:"Translate (to Vietnamese)"})]})]})]}),onClose:e.onClose,onSubmit:()=>{}})}function M(){return(0,o.jsx)("div",{className:"w-[1px] bg-slate-200"})}function P(e){return(0,o.jsx)(z,{progress:"".concat(Math.round(100*e.progress),"%")})}function z(e){return(0,o.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-1 dark:bg-gray-700",children:(0,o.jsx)("div",{className:"bg-blue-600 h-1 rounded-full transition-all duration-100",style:{width:e.progress}})})}function _(e){let[t,n]=(0,u.useState)(!1),a=()=>{n(!1)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(G,{icon:e.icon,text:e.text,onClick:()=>{n(!0)}}),(0,o.jsx)(O,{show:t,onSubmit:t=>{e.onUrlUpdate(t),a()},onClose:a})]})}function O(e){let[t,n]=(0,u.useState)(d.DEFAULT_AUDIO_URL);return(0,o.jsx)(F,{show:e.show,title:"From URL",content:(0,o.jsxs)(o.Fragment,{children:["Enter the URL of the audio file you want to load.",(0,o.jsx)(L,{onChange:e=>{n(e.target.value)},value:t})]}),onClose:e.onClose,submitText:"Load",onSubmit:()=>{e.onSubmit(t)}})}function V(e){let t=document.createElement("input");return t.type="file",t.oninput=n=>{let a=n.target.files;if(!a)return;let i=URL.createObjectURL(a[0]),r=a[0].type,s=new FileReader;s.addEventListener("load",async t=>{var n;let a=null===(n=t.target)||void 0===n?void 0:n.result;if(!a)return;let s=new AudioContext({sampleRate:d.SAMPLING_RATE}),o=await s.decodeAudioData(a);e.onFileUpdate(o,i,r)}),s.readAsArrayBuffer(a[0]),t.value=""},(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(G,{icon:e.icon,text:e.text,onClick:()=>t.click()})})}function q(e){let[t,n]=(0,u.useState)(!1),a=()=>{n(!1)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(G,{icon:e.icon,text:e.text,onClick:()=>{n(!0)}}),(0,o.jsx)(W,{show:t,onSubmit:t=>{t&&(e.setAudioData(t),a())},onClose:a})]})}function W(e){let[t,n]=(0,u.useState)();return(0,o.jsx)(F,{show:e.show,title:"From Recording",content:(0,o.jsxs)(o.Fragment,{children:["Record audio using your microphone",(0,o.jsx)(U,{onRecordingComplete:e=>{n(e)}})]}),onClose:()=>{e.onClose(),n(void 0)},submitText:"Load",submitEnabled:void 0!==t,onSubmit:()=>{e.onSubmit(t),n(void 0)}})}function G(e){return(0,o.jsxs)("button",{type:"button",onClick:e.onClick,className:"flex items-center justify-center rounded-lg p-2 bg-blue text-slate-500 hover:text-indigo-600 hover:bg-indigo-50 transition-all duration-200",children:[(0,o.jsx)("div",{className:"w-7 h-7",children:e.icon}),e.text&&(0,o.jsx)("div",{className:"ml-2 break-text text-center text-md w-30",children:e.text})]})}function H(){return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244"})})}function Z(){return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 00-1.883 2.542l.857 6a2.25 2.25 0 002.227 1.932H19.05a2.25 2.25 0 002.227-1.932l.857-6a2.25 2.25 0 00-1.883-2.542m-16.5 0V6A2.25 2.25 0 016 3.75h3.879a1.5 1.5 0 011.06.44l2.122 2.12a1.5 1.5 0 001.06.44H18A2.25 2.25 0 0120.25 9v.776"})})}function J(){return(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.25",stroke:"currentColor",children:[(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z"}),(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})}function K(){return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18.75a6 6 0 006-6v-1.5m-6 7.5a6 6 0 01-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 01-3-3V4.5a3 3 0 116 0v8.25a3 3 0 01-3 3z"})})}function X(e){var t;let{transcribedData:n}=e,a=(0,u.useRef)(null),i=(e,t)=>{let n=URL.createObjectURL(e),a=document.createElement("a");a.href=n,a.download=t,a.click(),URL.revokeObjectURL(n)};return(0,u.useEffect)(()=>{a.current&&64>=Math.abs(a.current.offsetHeight+a.current.scrollTop-a.current.scrollHeight)&&(a.current.scrollTop=a.current.scrollHeight)}),(0,o.jsxs)("div",{ref:a,className:"w-full flex flex-col my-2 p-4 max-h-[20rem] overflow-y-auto",children:[null==n?void 0:null===(t=n.chunks)||void 0===t?void 0:t.map((e,t)=>(0,o.jsxs)("div",{className:"w-full flex flex-row mb-2 bg-white rounded-lg p-4 shadow-xl shadow-black/5 ring-1 ring-slate-700/10",children:[(0,o.jsx)("div",{className:"mr-5",children:y(e.timestamp[0])}),e.text]},"".concat(t,"-").concat(e.text))),n&&!n.isBusy&&(0,o.jsxs)("div",{className:"w-full text-right",children:[(0,o.jsx)("button",{type:"button",onClick:()=>{var e;let t=(null!==(e=null==n?void 0:n.chunks)&&void 0!==e?e:[]).map(e=>e.text).join("").trim();i(new Blob([t],{type:"text/plain"}),"transcript.txt")},className:"text-white bg-green-500 hover:bg-green-600 focus:ring-4 focus:ring-green-300 font-medium rounded-lg text-sm px-4 py-2 text-center mr-2 dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800 inline-flex items-center",children:"Export TXT"}),(0,o.jsx)("button",{type:"button",onClick:()=>{var e;let t=JSON.stringify(null!==(e=null==n?void 0:n.chunks)&&void 0!==e?e:[],null,2);t=t.replace(/( {4}"timestamp": )\[\s+(\S+)\s+(\S+)\s+\]/gm,"$1[$2 $3]"),i(new Blob([t],{type:"application/json"}),"transcript.json")},className:"text-white bg-green-500 hover:bg-green-600 focus:ring-4 focus:ring-green-300 font-medium rounded-lg text-sm px-4 py-2 text-center mr-2 dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800 inline-flex items-center",children:"Export JSON"})]})]})}function Q(){let e=function(){let[e,t]=(0,u.useState)(void 0),[a,i]=(0,u.useState)(!1),[r,s]=(0,u.useState)(!1),[o,l]=(0,u.useState)([]),c=function(e){let[t]=(0,u.useState)(()=>(function(e){let t=new Worker(n.tu(new URL(n.p+n.u(184),n.b)),{type:void 0});return t.addEventListener("message",e),t})(e));return t}(e=>{let n=e.data;switch(n.status){case"progress":l(e=>e.map(e=>e.file===n.file?{...e,progress:n.progress}:e));break;case"update":t({isBusy:!0,text:n.data[0],chunks:n.data[1].chunks});break;case"complete":t({isBusy:!1,text:n.data.text,chunks:n.data.chunks}),i(!1);break;case"initiate":s(!0),l(e=>[...e,n]);break;case"ready":s(!1);break;case"error":i(!1),alert("".concat(n.data.message," This is most likely because you are using Safari on an M1/M2 Mac. Please try again from Chrome, Firefox, or Edge.\n\nIf this is not the case, please file a bug report."));break;case"done":l(e=>e.filter(e=>e.file!==n.file))}}),[m,p]=(0,u.useState)(d.DEFAULT_MODEL),[y,h]=(0,u.useState)(d.DEFAULT_SUBTASK),[g,f]=(0,u.useState)(d.DEFAULT_QUANTIZED),[b,x]=(0,u.useState)(d.DEFAULT_MULTILINGUAL),[k,v]=(0,u.useState)(d.DEFAULT_LANGUAGE),C=(0,u.useCallback)(()=>{t(void 0)},[]),w=(0,u.useCallback)(async e=>{if(e){let n;if(t(void 0),i(!0),2===e.numberOfChannels){let t=Math.sqrt(2),a=e.getChannelData(0),i=e.getChannelData(1);n=new Float32Array(a.length);for(let r=0;r<e.length;++r)n[r]=t*(a[r]+i[r])/2}else n=e.getChannelData(0);c.postMessage({audio:n,model:m,multilingual:b,quantized:g,subtask:b?y:null,language:b&&"auto"!==k?k:null})}},[c,m,b,g,y,k]);return(0,u.useMemo)(()=>({onInputChange:C,isBusy:a,isModelLoading:r,progressItems:o,start:w,output:e,model:m,setModel:p,multilingual:b,setMultilingual:x,quantized:g,setQuantized:f,subtask:y,setSubtask:h,language:k,setLanguage:v}),[a,r,o,w,e,m,b,g,y,k])}();return(0,l.f3)(),(0,o.jsxs)("div",{className:"flex justify-center items-center min-h-screen",children:[(0,o.jsxs)("div",{className:"container flex flex-col justify-center items-center",children:[(0,o.jsx)("h1",{className:"text-5xl font-extrabold tracking-tight text-slate-900 sm:text-7xl text-center",children:"PhoWhisper Web"}),(0,o.jsx)("h2",{className:"mt-3 mb-5 px-4 text-center text-1xl font-semibold tracking-tight text-slate-900 sm:text-2xl",children:"ML-powered speech recognition for Vietnamese directly in your browser"}),(0,o.jsx)(A,{transcriber:e}),(0,o.jsx)(X,{transcribedData:e.output})]}),(0,o.jsxs)("div",{className:"absolute bottom-4",children:["Made with"," ",(0,o.jsx)("a",{className:"underline",href:"https://github.com/xenova/transformers.js",children:"\uD83E\uDD17 Transformers.js"})," ","+ Next.js"," ",(0,o.jsx)("a",{className:"underline",href:"https://github.com/huuquyet/PhoWhisper-next",children:"Give it a ⭐️"})]})]})}(r=s||(s={})).URL="URL",r.FILE="FILE",r.RECORDING="RECORDING"},6057:function(){}},function(e){e.O(0,[934,215,971,468,744],function(){return e(e.s=1402)}),_N_E=e.O()}]);
_next/static/chunks/main-4d7699e8c079dc75.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/main-app-286279f593f5766f.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[744],{4150:function(e,n,t){Promise.resolve().then(t.t.bind(t,7690,23)),Promise.resolve().then(t.t.bind(t,8955,23)),Promise.resolve().then(t.t.bind(t,5613,23)),Promise.resolve().then(t.t.bind(t,1902,23)),Promise.resolve().then(t.t.bind(t,1778,23)),Promise.resolve().then(t.t.bind(t,7831,23))}},function(e){var n=function(n){return e(e.s=n)};e.O(0,[971,468],function(){return n(2980),n(5317),n(4150)}),_N_E=e.O()}]);
_next/static/w95gh3KpHkqEcWA-N_3Ki/_buildManifest.js ADDED
@@ -0,0 +1 @@
 
 
1
+ self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-9a890acb1e81c3fc.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
_next/static/w95gh3KpHkqEcWA-N_3Ki/_ssgManifest.js ADDED
@@ -0,0 +1 @@
 
 
1
+ self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()
favicon.ico ADDED
icons/android-icon-192x192.png ADDED
icons/android-icon-512x512.png ADDED
icons/apple-icon-16x16.png ADDED
icons/apple-icon-32x32.png ADDED
icons/apple-icon.png ADDED
icons/safari-pinned-tab.svg ADDED
icons/share.png ADDED
index.html CHANGED
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/7f9a00ba16d0880a.css" crossorigin="" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-6addcd937cf61756.js" crossorigin=""/><script src="/_next/static/chunks/fd9d1056-0eb0600a38930bac.js" async="" crossorigin=""></script><script src="/_next/static/chunks/69-562b36989091d38e.js" async="" crossorigin=""></script><script src="/_next/static/chunks/main-app-290a67753bff4b34.js" async="" crossorigin=""></script><script src="/_next/static/chunks/934-098a52c8c01ffb39.js" async=""></script><script src="/_next/static/chunks/92-fe67838a7d1913f4.js" async=""></script><script src="/_next/static/chunks/app/page-3daf3d110bbe5562.js" async=""></script><script src="/_next/static/chunks/app/layout-55582ca56590b1ae.js" async=""></script><title>PhoWhisper</title><meta name="description" content="PhoWhisper built with Transformers.js + Next.js"/><script src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js" crossorigin="" noModule=""></script></head><body><div id="root"><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--></div><script src="/_next/static/chunks/webpack-6addcd937cf61756.js" crossorigin="" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"0:\"$L1\"\n"])</script><script>self.__next_f.push([1,"2:HL[\"/_next/static/css/7f9a00ba16d0880a.css\",\"style\",{\"crossOrigin\":\"\"}]\n"])</script><script>self.__next_f.push([1,"3:I[7690,[],\"\"]\n5:\"$Sreact.suspense\"\n6:I[9721,[\"934\",\"static/chunks/934-098a52c8c01ffb39.js\",\"92\",\"static/chunks/92-fe67838a7d1913f4.js\",\"931\",\"static/chunks/app/page-3daf3d110bbe5562.js\"],\"BailoutToCSR\"]\n8:I[5613,[],\"\"]\n9:I[1778,[],\"\"]\na:I[4274,[\"185\",\"static/chunks/app/layout-55582ca56590b1ae.js\"],\"Analytics\"]\nc:I[8955,[],\"\"]\nd:[]\n"])</script><script>self.__next_f.push([1,"1:[null,[\"$\",\"$L3\",null,{\"buildId\":\"1wsf04hB-ccdV1-3hVvLa\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/\",\"initialTree\":[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"__PAGE__\",{},[\"$L4\",[\"$\",\"$5\",null,{\"fallback\":null,\"children\":[\"$\",\"$L6\",null,{\"reason\":\"next/dynamic\",\"children\":\"$L7\"}]}],null]]},[null,[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"id\":\"root\",\"children\":[[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"loading\":\"$undefined\",\"loadingStyles\":\"$undefined\",\"loadingScripts\":\"$undefined\",\"hasLoading\":false,\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"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\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"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)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/7f9a00ba16d0880a.css\",\"precedence\":\"next\",\"crossOrigin\":\"\"}]]}],[\"$\",\"$La\",null,{}]]}]}]}],null]],\"initialHead\":[false,\"$Lb\"],\"globalErrorComponent\":\"$c\",\"missingSlots\":\"$Wd\"}]]\n"])</script><script>self.__next_f.push([1,"e:I[3377,[\"934\",\"static/chunks/934-098a52c8c01ffb39.js\",\"92\",\"static/chunks/92-fe67838a7d1913f4.js\",\"931\",\"static/chunks/app/page-3daf3d110bbe5562.js\"],\"\"]\n7:[\"$\",\"$Le\",null,{}]\nb:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"PhoWhisper\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"PhoWhisper built with Transformers.js + Next.js\"}]]\n4:null\n"])</script><script>self.__next_f.push([1,""])</script></body></html>
 
1
+ <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/7f9a00ba16d0880a.css" crossorigin="" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-6addcd937cf61756.js" crossorigin=""/><script src="/_next/static/chunks/fd9d1056-0eb0600a38930bac.js" async="" crossorigin=""></script><script src="/_next/static/chunks/468-66d30219005587b4.js" async="" crossorigin=""></script><script src="/_next/static/chunks/main-app-286279f593f5766f.js" async="" crossorigin=""></script><script src="/_next/static/chunks/934-098a52c8c01ffb39.js" async=""></script><script src="/_next/static/chunks/215-2f9ff0d23c73524a.js" async=""></script><script src="/_next/static/chunks/app/page-5fdd51431da8a1dc.js" async=""></script><title>PhoWhisper using Transformers.js + Next.js</title><meta name="description" content="PhoWhisper: Automatic Speech Recognition for Vietnamese (2024) using Transformer.js + Next.js"/><meta name="application-name" content="R3F Gallery"/><link rel="manifest" href="/manifest.json"/><meta name="keywords" content="PhoWhisper,Transformers.js,Next.js,speech-regconition,vietnamese"/><meta name="format-detection" content="telephone=no"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="PhoWhisper using Transformers.js + Next.js"/><meta name="apple-mobile-web-app-status-bar-style" content="default"/><meta property="og:title" content="PhoWhisper using Transformers.js + Next.js"/><meta property="og:description" content="PhoWhisper: Automatic Speech Recognition for Vietnamese (2024) using Transformer.js + Next.js"/><meta property="og:url" content="https://hf.co/spaces/huuquyet/PhoWhisper-next/"/><meta property="og:site_name" content="R3F Gallery"/><meta property="og:image" content="https://${process.env.vercel_url}/icon/share.png"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta name="twitter:site" content="@HuuQuyetNg"/><meta name="twitter:title" content="PhoWhisper using Transformers.js + Next.js"/><meta name="twitter:description" content="PhoWhisper: Automatic Speech Recognition for Vietnamese (2024) using Transformer.js + Next.js"/><meta name="twitter:image" content="https://${process.env.vercel_url}/icon/share.png"/><script src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js" crossorigin="" noModule=""></script></head><body><div id="root"><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--></div><script src="/_next/static/chunks/webpack-6addcd937cf61756.js" crossorigin="" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"0:\"$L1\"\n"])</script><script>self.__next_f.push([1,"2:HL[\"/_next/static/css/7f9a00ba16d0880a.css\",\"style\",{\"crossOrigin\":\"\"}]\n"])</script><script>self.__next_f.push([1,"3:I[7690,[],\"\"]\n5:\"$Sreact.suspense\"\n6:I[9721,[\"934\",\"static/chunks/934-098a52c8c01ffb39.js\",\"215\",\"static/chunks/215-2f9ff0d23c73524a.js\",\"931\",\"static/chunks/app/page-5fdd51431da8a1dc.js\"],\"BailoutToCSR\"]\n8:I[5613,[],\"\"]\n9:I[1778,[],\"\"]\nb:I[8955,[],\"\"]\nc:[]\n"])</script><script>self.__next_f.push([1,"1:[null,[\"$\",\"$L3\",null,{\"buildId\":\"w95gh3KpHkqEcWA-N_3Ki\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/\",\"initialTree\":[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"__PAGE__\",{},[\"$L4\",[\"$\",\"$5\",null,{\"fallback\":null,\"children\":[\"$\",\"$L6\",null,{\"reason\":\"next/dynamic\",\"children\":\"$L7\"}]}],null]]},[null,[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[[\"$\",\"head\",null,{}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"id\":\"root\",\"children\":[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"loading\":\"$undefined\",\"loadingStyles\":\"$undefined\",\"loadingScripts\":\"$undefined\",\"hasLoading\":false,\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"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\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"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)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/7f9a00ba16d0880a.css\",\"precedence\":\"next\",\"crossOrigin\":\"\"}]]}]}]}]]}],null]],\"initialHead\":[false,\"$La\"],\"globalErrorComponent\":\"$b\",\"missingSlots\":\"$Wc\"}]]\n"])</script><script>self.__next_f.push([1,"d:I[3377,[\"934\",\"static/chunks/934-098a52c8c01ffb39.js\",\"215\",\"static/chunks/215-2f9ff0d23c73524a.js\",\"931\",\"static/chunks/app/page-5fdd51431da8a1dc.js\"],\"\"]\n7:[\"$\",\"$Ld\",null,{}]\na:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"PhoWhisper using Transformers.js + Next.js\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"PhoWhisper: Automatic Speech Recognition for Vietnamese (2024) using Transformer.js + Next.js\"}],[\"$\",\"meta\",\"4\",{\"name\":\"application-name\",\"content\":\"R3F Gallery\"}],[\"$\",\"link\",\"5\",{\"rel\":\"manifest\",\"href\":\"/manifest.json\"}],[\"$\",\"meta\",\"6\",{\"name\":\"keywords\",\"content\":\"PhoWhisper,Transformers.js,Next.js,speech-regconition,vietnamese\"}],[\"$\",\"meta\",\"7\",{\"name\":\"format-detection\",\"content\":\"telephone=no\"}],[\"$\",\"meta\",\"8\",{\"name\":\"apple-mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"9\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"PhoWhisper using Transformers.js + Next.js\"}],[\"$\",\"meta\",\"10\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"default\"}],[\"$\",\"meta\",\"11\",{\"property\":\"og:title\",\"content\":\"PhoWhisper using Transformers.js + Next.js\"}],[\"$\",\"meta\",\"12\",{\"property\":\"og:description\",\"content\":\"PhoWhisper: Automatic Speech Recognition for Vietnamese (2024) using Transformer.js + Next.js\"}],[\"$\",\"meta\",\"13\",{\"property\":\"og:url\",\"content\":\"https://hf.co/spaces/huuquyet/PhoWhisper-next/\"}],[\"$\",\"meta\",\"14\",{\"property\":\"og:site_name\",\"content\":\"R3F Gallery\"}],[\"$\",\"meta\",\"15\",{\"property\":\"og:image\",\"content\":\"https://${process.env.vercel_url}/icon/share.png\"}],[\"$\",\"meta\",\"16\",{\"property\":\"og:type\",\"content\":\"website\"}],[\"$\",\"meta\",\"17\",{\"name\":\"twitter:card\",\"content\":\"summary\"}],[\"$\",\"meta\",\"18\",{\"name\":\"twitter:site\",\"content\":\"@HuuQuyetNg\"}],[\"$\",\"meta\",\"19\",{\"name\":\"twitter:title\",\"content\":\"PhoWhisper using Transformers.js + Next.js\"}],[\"$\",\"meta\",\"20\",{\"name\":\"twitter:description\",\"content\":\"PhoWhisper: Automatic Speech Recognition for Vietnamese (2024) using T"])</script><script>self.__next_f.push([1,"ransformer.js + Next.js\"}],[\"$\",\"meta\",\"21\",{\"name\":\"twitter:image\",\"content\":\"https://${process.env.vercel_url}/icon/share.png\"}]]\n4:null\n"])</script><script>self.__next_f.push([1,""])</script></body></html>
index.txt CHANGED
@@ -1,10 +1,9 @@
1
  2:"$Sreact.suspense"
2
- 3:I[9721,["934","static/chunks/934-098a52c8c01ffb39.js","92","static/chunks/92-fe67838a7d1913f4.js","931","static/chunks/app/page-3daf3d110bbe5562.js"],"BailoutToCSR"]
3
  5:I[5613,[],""]
4
  6:I[1778,[],""]
5
- 7:I[4274,["185","static/chunks/app/layout-55582ca56590b1ae.js"],"Analytics"]
6
- 0:["1wsf04hB-ccdV1-3hVvLa",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},["$L1",["$","$2",null,{"fallback":null,"children":["$","$L3",null,{"reason":"next/dynamic","children":"$L4"}]}],null]]},[null,["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","div",null,{"id":"root","children":[["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"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"},"children":["$","div",null,{"children":[["$","style",null,{"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)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7f9a00ba16d0880a.css","precedence":"next","crossOrigin":""}]]}],["$","$L7",null,{}]]}]}]}],null]],[null,"$L8"]]]]
7
- 9:I[3377,["934","static/chunks/934-098a52c8c01ffb39.js","92","static/chunks/92-fe67838a7d1913f4.js","931","static/chunks/app/page-3daf3d110bbe5562.js"],""]
8
- 4:["$","$L9",null,{}]
9
- 8:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"PhoWhisper"}],["$","meta","3",{"name":"description","content":"PhoWhisper built with Transformers.js + Next.js"}]]
10
  1:null
 
1
  2:"$Sreact.suspense"
2
+ 3:I[9721,["934","static/chunks/934-098a52c8c01ffb39.js","215","static/chunks/215-2f9ff0d23c73524a.js","931","static/chunks/app/page-5fdd51431da8a1dc.js"],"BailoutToCSR"]
3
  5:I[5613,[],""]
4
  6:I[1778,[],""]
5
+ 0:["w95gh3KpHkqEcWA-N_3Ki",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},["$L1",["$","$2",null,{"fallback":null,"children":["$","$L3",null,{"reason":"next/dynamic","children":"$L4"}]}],null]]},[null,["$","html",null,{"lang":"en","children":[["$","head",null,{}],["$","body",null,{"children":["$","div",null,{"id":"root","children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"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"},"children":["$","div",null,{"children":[["$","style",null,{"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)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7f9a00ba16d0880a.css","precedence":"next","crossOrigin":""}]]}]}]}]]}],null]],[null,"$L7"]]]]
6
+ 8:I[3377,["934","static/chunks/934-098a52c8c01ffb39.js","215","static/chunks/215-2f9ff0d23c73524a.js","931","static/chunks/app/page-5fdd51431da8a1dc.js"],""]
7
+ 4:["$","$L8",null,{}]
8
+ 7:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"PhoWhisper using Transformers.js + Next.js"}],["$","meta","3",{"name":"description","content":"PhoWhisper: Automatic Speech Recognition for Vietnamese (2024) using Transformer.js + Next.js"}],["$","meta","4",{"name":"application-name","content":"R3F Gallery"}],["$","link","5",{"rel":"manifest","href":"/manifest.json"}],["$","meta","6",{"name":"keywords","content":"PhoWhisper,Transformers.js,Next.js,speech-regconition,vietnamese"}],["$","meta","7",{"name":"format-detection","content":"telephone=no"}],["$","meta","8",{"name":"apple-mobile-web-app-capable","content":"yes"}],["$","meta","9",{"name":"apple-mobile-web-app-title","content":"PhoWhisper using Transformers.js + Next.js"}],["$","meta","10",{"name":"apple-mobile-web-app-status-bar-style","content":"default"}],["$","meta","11",{"property":"og:title","content":"PhoWhisper using Transformers.js + Next.js"}],["$","meta","12",{"property":"og:description","content":"PhoWhisper: Automatic Speech Recognition for Vietnamese (2024) using Transformer.js + Next.js"}],["$","meta","13",{"property":"og:url","content":"https://hf.co/spaces/huuquyet/PhoWhisper-next/"}],["$","meta","14",{"property":"og:site_name","content":"R3F Gallery"}],["$","meta","15",{"property":"og:image","content":"https://${process.env.vercel_url}/icon/share.png"}],["$","meta","16",{"property":"og:type","content":"website"}],["$","meta","17",{"name":"twitter:card","content":"summary"}],["$","meta","18",{"name":"twitter:site","content":"@HuuQuyetNg"}],["$","meta","19",{"name":"twitter:title","content":"PhoWhisper using Transformers.js + Next.js"}],["$","meta","20",{"name":"twitter:description","content":"PhoWhisper: Automatic Speech Recognition for Vietnamese (2024) using Transformer.js + Next.js"}],["$","meta","21",{"name":"twitter:image","content":"https://${process.env.vercel_url}/icon/share.png"}]]
 
9
  1:null
manifest.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "PhoWhisper-next",
3
+ "short_name": "PhoWhisper-next",
4
+ "icons": [
5
+ {
6
+ "src": "/icons/apple-touch-icon.png",
7
+ "sizes": "64x64 32x32 24x24 16x16",
8
+ "type": "image/x-icon",
9
+ "purpose": "any maskable"
10
+ },
11
+ {
12
+ "src": "/icons/android-icon-192x192.png",
13
+ "sizes": "192x192",
14
+ "type": "image/png",
15
+ "purpose": "any maskable"
16
+ },
17
+ {
18
+ "src": "/icons/android-icon-512x512.png",
19
+ "sizes": "512x512",
20
+ "type": "image/png",
21
+ "purpose": "any maskable"
22
+ }
23
+ ],
24
+ "start_url": "/",
25
+ "scope": "/",
26
+ "display": "standalone",
27
+ "theme_color": "#a0a0a0",
28
+ "background_color": "#151515"
29
+ }
sw.js ADDED
@@ -0,0 +1 @@
 
 
1
+ if(!self.define){let e,s={};const n=(n,a)=>(n=new URL(n+".js",a).href,s[n]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=s,document.head.appendChild(e)}else e=n,importScripts(n),s()})).then((()=>{let e=s[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(a,i)=>{const c=e||("document"in self?document.currentScript.src:"")||location.href;if(s[c])return;let t={};const r=e=>n(e,c),o={module:{uri:c},exports:t,require:r};s[c]=Promise.all(a.map((e=>o[e]||r(e)))).then((e=>(i(...e),t)))}}define(["./workbox-c06b064f"],(function(e){"use strict";importScripts(),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/_next/static/chunks/184.46764577977b1e81.js",revision:"46764577977b1e81"},{url:"/_next/static/chunks/215-2f9ff0d23c73524a.js",revision:"w95gh3KpHkqEcWA-N_3Ki"},{url:"/_next/static/chunks/468-66d30219005587b4.js",revision:"w95gh3KpHkqEcWA-N_3Ki"},{url:"/_next/static/chunks/590caa2a.cfba197c52c6d5c6.js",revision:"cfba197c52c6d5c6"},{url:"/_next/static/chunks/6139e184.332ff36d19ddc24a.js",revision:"332ff36d19ddc24a"},{url:"/_next/static/chunks/766.ac1f284a05b82eb3.js",revision:"ac1f284a05b82eb3"},{url:"/_next/static/chunks/934-098a52c8c01ffb39.js",revision:"w95gh3KpHkqEcWA-N_3Ki"},{url:"/_next/static/chunks/app/_not-found-f13840ac75ee0073.js",revision:"w95gh3KpHkqEcWA-N_3Ki"},{url:"/_next/static/chunks/app/layout-464bbb7a64cea06b.js",revision:"w95gh3KpHkqEcWA-N_3Ki"},{url:"/_next/static/chunks/app/page-5fdd51431da8a1dc.js",revision:"w95gh3KpHkqEcWA-N_3Ki"},{url:"/_next/static/chunks/b2db8554.64d1a60571cad9c0.js",revision:"64d1a60571cad9c0"},{url:"/_next/static/chunks/fd9d1056-0eb0600a38930bac.js",revision:"w95gh3KpHkqEcWA-N_3Ki"},{url:"/_next/static/chunks/framework-aec844d2ccbe7592.js",revision:"w95gh3KpHkqEcWA-N_3Ki"},{url:"/_next/static/chunks/main-4d7699e8c079dc75.js",revision:"w95gh3KpHkqEcWA-N_3Ki"},{url:"/_next/static/chunks/main-app-286279f593f5766f.js",revision:"w95gh3KpHkqEcWA-N_3Ki"},{url:"/_next/static/chunks/pages/_app-75f6107b0260711c.js",revision:"w95gh3KpHkqEcWA-N_3Ki"},{url:"/_next/static/chunks/pages/_error-9a890acb1e81c3fc.js",revision:"w95gh3KpHkqEcWA-N_3Ki"},{url:"/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js",revision:"837c0df77fd5009c9e46d446188ecfd0"},{url:"/_next/static/chunks/webpack-6addcd937cf61756.js",revision:"w95gh3KpHkqEcWA-N_3Ki"},{url:"/_next/static/css/7f9a00ba16d0880a.css",revision:"7f9a00ba16d0880a"},{url:"/_next/static/w95gh3KpHkqEcWA-N_3Ki/_buildManifest.js",revision:"e0a21c7d7f93d89dce16df0231dc76f2"},{url:"/_next/static/w95gh3KpHkqEcWA-N_3Ki/_ssgManifest.js",revision:"b6652df95db52feb4daf4eca35380933"},{url:"/favicon.ico",revision:"4106c96e0a55d35b1b13fa4281a907b7"},{url:"/icons/android-icon-192x192.png",revision:"9f29f1d7c8f6da2d2e64bce1d3136d3f"},{url:"/icons/android-icon-512x512.png",revision:"9f29f1d7c8f6da2d2e64bce1d3136d3f"},{url:"/icons/apple-icon-16x16.png",revision:"5998cde017dee1b68827ac575ce6a300"},{url:"/icons/apple-icon-32x32.png",revision:"2a82680a8c270c3ad4b8341f5ef897f8"},{url:"/icons/apple-icon.png",revision:"538a91302401ac461adfe1b509181921"},{url:"/icons/safari-pinned-tab.svg",revision:"5876746bbc008fdab40fd1abf568ca6b"},{url:"/icons/share.png",revision:"f04a8d2b41543ef4669c07e6d04e2d94"},{url:"/manifest.json",revision:"45969c86ec9c2473bbafdaab03ef0162"}],{ignoreURLParametersMatching:[/^utm_/,/^fbclid$/]}),e.cleanupOutdatedCaches(),e.registerRoute("/",new e.NetworkFirst({cacheName:"start-url",plugins:[{cacheWillUpdate:async({response:e})=>e&&"opaqueredirect"===e.type?new Response(e.body,{status:200,statusText:"OK",headers:e.headers}):e}]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,new e.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:31536e3})]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,new e.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,new e.StaleWhileRevalidate({cacheName:"static-font-assets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,new e.StaleWhileRevalidate({cacheName:"static-image-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:2592e3})]}),"GET"),e.registerRoute(/\/_next\/static.+\.js$/i,new e.CacheFirst({cacheName:"next-static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/image\?url=.+$/i,new e.StaleWhileRevalidate({cacheName:"next-image",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp3|wav|ogg)$/i,new e.CacheFirst({cacheName:"static-audio-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp4|webm)$/i,new e.CacheFirst({cacheName:"static-video-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:js)$/i,new e.StaleWhileRevalidate({cacheName:"static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:48,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:css|less)$/i,new e.StaleWhileRevalidate({cacheName:"static-style-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/data\/.+\/.+\.json$/i,new e.StaleWhileRevalidate({cacheName:"next-data",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:json|xml|csv)$/i,new e.NetworkFirst({cacheName:"static-data-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({sameOrigin:e,url:{pathname:s}})=>!(!e||s.startsWith("/api/auth/callback")||!s.startsWith("/api/"))),new e.NetworkFirst({cacheName:"apis",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:16,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({request:e,url:{pathname:s},sameOrigin:n})=>"1"===e.headers.get("RSC")&&"1"===e.headers.get("Next-Router-Prefetch")&&n&&!s.startsWith("/api/")),new e.NetworkFirst({cacheName:"pages-rsc-prefetch",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({request:e,url:{pathname:s},sameOrigin:n})=>"1"===e.headers.get("RSC")&&n&&!s.startsWith("/api/")),new e.NetworkFirst({cacheName:"pages-rsc",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({url:{pathname:e},sameOrigin:s})=>s&&!e.startsWith("/api/")),new e.NetworkFirst({cacheName:"pages",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({sameOrigin:e})=>!e),new e.NetworkFirst({cacheName:"cross-origin",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:3600})]}),"GET")}));
vite.svg DELETED
workbox-c06b064f.js ADDED
@@ -0,0 +1 @@
 
 
1
+ define(["exports"],(function(t){"use strict";try{self["workbox:core:7.0.0"]&&_()}catch(t){}const e=(t,...e)=>{let s=t;return e.length>0&&(s+=` :: ${JSON.stringify(e)}`),s};class s extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}try{self["workbox:routing:7.0.0"]&&_()}catch(t){}const n=t=>t&&"object"==typeof t?t:{handle:t};class r{constructor(t,e,s="GET"){this.handler=n(e),this.match=t,this.method=s}setCatchHandler(t){this.catchHandler=n(t)}}class i extends r{constructor(t,e,s){super((({url:e})=>{const s=t.exec(e.href);if(s&&(e.origin===location.origin||0===s.index))return s.slice(1)}),e,s)}}class a{constructor(){this.t=new Map,this.i=new Map}get routes(){return this.t}addFetchListener(){self.addEventListener("fetch",(t=>{const{request:e}=t,s=this.handleRequest({request:e,event:t});s&&t.respondWith(s)}))}addCacheListener(){self.addEventListener("message",(t=>{if(t.data&&"CACHE_URLS"===t.data.type){const{payload:e}=t.data,s=Promise.all(e.urlsToCache.map((e=>{"string"==typeof e&&(e=[e]);const s=new Request(...e);return this.handleRequest({request:s,event:t})})));t.waitUntil(s),t.ports&&t.ports[0]&&s.then((()=>t.ports[0].postMessage(!0)))}}))}handleRequest({request:t,event:e}){const s=new URL(t.url,location.href);if(!s.protocol.startsWith("http"))return;const n=s.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:e,request:t,sameOrigin:n,url:s});let a=i&&i.handler;const o=t.method;if(!a&&this.i.has(o)&&(a=this.i.get(o)),!a)return;let c;try{c=a.handle({url:s,request:t,event:e,params:r})}catch(t){c=Promise.reject(t)}const h=i&&i.catchHandler;return c instanceof Promise&&(this.o||h)&&(c=c.catch((async n=>{if(h)try{return await h.handle({url:s,request:t,event:e,params:r})}catch(t){t instanceof Error&&(n=t)}if(this.o)return this.o.handle({url:s,request:t,event:e});throw n}))),c}findMatchingRoute({url:t,sameOrigin:e,request:s,event:n}){const r=this.t.get(s.method)||[];for(const i of r){let r;const a=i.match({url:t,sameOrigin:e,request:s,event:n});if(a)return r=a,(Array.isArray(r)&&0===r.length||a.constructor===Object&&0===Object.keys(a).length||"boolean"==typeof a)&&(r=void 0),{route:i,params:r}}return{}}setDefaultHandler(t,e="GET"){this.i.set(e,n(t))}setCatchHandler(t){this.o=n(t)}registerRoute(t){this.t.has(t.method)||this.t.set(t.method,[]),this.t.get(t.method).push(t)}unregisterRoute(t){if(!this.t.has(t.method))throw new s("unregister-route-but-not-found-with-method",{method:t.method});const e=this.t.get(t.method).indexOf(t);if(!(e>-1))throw new s("unregister-route-route-not-registered");this.t.get(t.method).splice(e,1)}}let o;const c=()=>(o||(o=new a,o.addFetchListener(),o.addCacheListener()),o);function h(t,e,n){let a;if("string"==typeof t){const s=new URL(t,location.href);a=new r((({url:t})=>t.href===s.href),e,n)}else if(t instanceof RegExp)a=new i(t,e,n);else if("function"==typeof t)a=new r(t,e,n);else{if(!(t instanceof r))throw new s("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});a=t}return c().registerRoute(a),a}try{self["workbox:strategies:7.0.0"]&&_()}catch(t){}const u={cacheWillUpdate:async({response:t})=>200===t.status||0===t.status?t:null},l={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},f=t=>[l.prefix,t,l.suffix].filter((t=>t&&t.length>0)).join("-"),w=t=>t||f(l.precache),d=t=>t||f(l.runtime);function p(t,e){const s=new URL(t);for(const t of e)s.searchParams.delete(t);return s.href}class y{constructor(){this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}}const g=new Set;function m(t){return"string"==typeof t?new Request(t):t}class R{constructor(t,e){this.h={},Object.assign(this,e),this.event=e.event,this.u=t,this.l=new y,this.p=[],this.m=[...t.plugins],this.R=new Map;for(const t of this.m)this.R.set(t,{});this.event.waitUntil(this.l.promise)}async fetch(t){const{event:e}=this;let n=m(t);if("navigate"===n.mode&&e instanceof FetchEvent&&e.preloadResponse){const t=await e.preloadResponse;if(t)return t}const r=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const t of this.iterateCallbacks("requestWillFetch"))n=await t({request:n.clone(),event:e})}catch(t){if(t instanceof Error)throw new s("plugin-error-request-will-fetch",{thrownErrorMessage:t.message})}const i=n.clone();try{let t;t=await fetch(n,"navigate"===n.mode?void 0:this.u.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))t=await s({event:e,request:i,response:t});return t}catch(t){throw r&&await this.runCallbacks("fetchDidFail",{error:t,event:e,originalRequest:r.clone(),request:i.clone()}),t}}async fetchAndCachePut(t){const e=await this.fetch(t),s=e.clone();return this.waitUntil(this.cachePut(t,s)),e}async cacheMatch(t){const e=m(t);let s;const{cacheName:n,matchOptions:r}=this.u,i=await this.getCacheKey(e,"read"),a=Object.assign(Object.assign({},r),{cacheName:n});s=await caches.match(i,a);for(const t of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await t({cacheName:n,matchOptions:r,cachedResponse:s,request:i,event:this.event})||void 0;return s}async cachePut(t,e){const n=m(t);var r;await(r=0,new Promise((t=>setTimeout(t,r))));const i=await this.getCacheKey(n,"write");if(!e)throw new s("cache-put-with-no-response",{url:(a=i.url,new URL(String(a),location.href).href.replace(new RegExp(`^${location.origin}`),""))});var a;const o=await this.v(e);if(!o)return!1;const{cacheName:c,matchOptions:h}=this.u,u=await self.caches.open(c),l=this.hasCallback("cacheDidUpdate"),f=l?await async function(t,e,s,n){const r=p(e.url,s);if(e.url===r)return t.match(e,n);const i=Object.assign(Object.assign({},n),{ignoreSearch:!0}),a=await t.keys(e,i);for(const e of a)if(r===p(e.url,s))return t.match(e,n)}(u,i.clone(),["__WB_REVISION__"],h):null;try{await u.put(i,l?o.clone():o)}catch(t){if(t instanceof Error)throw"QuotaExceededError"===t.name&&await async function(){for(const t of g)await t()}(),t}for(const t of this.iterateCallbacks("cacheDidUpdate"))await t({cacheName:c,oldResponse:f,newResponse:o.clone(),request:i,event:this.event});return!0}async getCacheKey(t,e){const s=`${t.url} | ${e}`;if(!this.h[s]){let n=t;for(const t of this.iterateCallbacks("cacheKeyWillBeUsed"))n=m(await t({mode:e,request:n,event:this.event,params:this.params}));this.h[s]=n}return this.h[s]}hasCallback(t){for(const e of this.u.plugins)if(t in e)return!0;return!1}async runCallbacks(t,e){for(const s of this.iterateCallbacks(t))await s(e)}*iterateCallbacks(t){for(const e of this.u.plugins)if("function"==typeof e[t]){const s=this.R.get(e),n=n=>{const r=Object.assign(Object.assign({},n),{state:s});return e[t](r)};yield n}}waitUntil(t){return this.p.push(t),t}async doneWaiting(){let t;for(;t=this.p.shift();)await t}destroy(){this.l.resolve(null)}async v(t){let e=t,s=!1;for(const t of this.iterateCallbacks("cacheWillUpdate"))if(e=await t({request:this.request,response:e,event:this.event})||void 0,s=!0,!e)break;return s||e&&200!==e.status&&(e=void 0),e}}class v{constructor(t={}){this.cacheName=d(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}handle(t){const[e]=this.handleAll(t);return e}handleAll(t){t instanceof FetchEvent&&(t={event:t,request:t.request});const e=t.event,s="string"==typeof t.request?new Request(t.request):t.request,n="params"in t?t.params:void 0,r=new R(this,{event:e,request:s,params:n}),i=this.q(r,s,e);return[i,this.D(i,r,s,e)]}async q(t,e,n){let r;await t.runCallbacks("handlerWillStart",{event:n,request:e});try{if(r=await this.U(e,t),!r||"error"===r.type)throw new s("no-response",{url:e.url})}catch(s){if(s instanceof Error)for(const i of t.iterateCallbacks("handlerDidError"))if(r=await i({error:s,event:n,request:e}),r)break;if(!r)throw s}for(const s of t.iterateCallbacks("handlerWillRespond"))r=await s({event:n,request:e,response:r});return r}async D(t,e,s,n){let r,i;try{r=await t}catch(i){}try{await e.runCallbacks("handlerDidRespond",{event:n,request:s,response:r}),await e.doneWaiting()}catch(t){t instanceof Error&&(i=t)}if(await e.runCallbacks("handlerDidComplete",{event:n,request:s,response:r,error:i}),e.destroy(),i)throw i}}function b(t){t.then((()=>{}))}function q(){return q=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var s=arguments[e];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t[n]=s[n])}return t},q.apply(this,arguments)}const D=(t,e)=>e.some((e=>t instanceof e));let U,x;const L=new WeakMap,I=new WeakMap,C=new WeakMap,E=new WeakMap,N=new WeakMap;let O={get(t,e,s){if(t instanceof IDBTransaction){if("done"===e)return I.get(t);if("objectStoreNames"===e)return t.objectStoreNames||C.get(t);if("store"===e)return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return B(t[e])},set:(t,e,s)=>(t[e]=s,!0),has:(t,e)=>t instanceof IDBTransaction&&("done"===e||"store"===e)||e in t};function T(t){return t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(x||(x=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(P(this),e),B(L.get(this))}:function(...e){return B(t.apply(P(this),e))}:function(e,...s){const n=t.call(P(this),e,...s);return C.set(n,e.sort?e.sort():[e]),B(n)}}function k(t){return"function"==typeof t?T(t):(t instanceof IDBTransaction&&function(t){if(I.has(t))return;const e=new Promise(((e,s)=>{const n=()=>{t.removeEventListener("complete",r),t.removeEventListener("error",i),t.removeEventListener("abort",i)},r=()=>{e(),n()},i=()=>{s(t.error||new DOMException("AbortError","AbortError")),n()};t.addEventListener("complete",r),t.addEventListener("error",i),t.addEventListener("abort",i)}));I.set(t,e)}(t),D(t,U||(U=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(t,O):t)}function B(t){if(t instanceof IDBRequest)return function(t){const e=new Promise(((e,s)=>{const n=()=>{t.removeEventListener("success",r),t.removeEventListener("error",i)},r=()=>{e(B(t.result)),n()},i=()=>{s(t.error),n()};t.addEventListener("success",r),t.addEventListener("error",i)}));return e.then((e=>{e instanceof IDBCursor&&L.set(e,t)})).catch((()=>{})),N.set(e,t),e}(t);if(E.has(t))return E.get(t);const e=k(t);return e!==t&&(E.set(t,e),N.set(e,t)),e}const P=t=>N.get(t);const M=["get","getKey","getAll","getAllKeys","count"],W=["put","add","delete","clear"],j=new Map;function S(t,e){if(!(t instanceof IDBDatabase)||e in t||"string"!=typeof e)return;if(j.get(e))return j.get(e);const s=e.replace(/FromIndex$/,""),n=e!==s,r=W.includes(s);if(!(s in(n?IDBIndex:IDBObjectStore).prototype)||!r&&!M.includes(s))return;const i=async function(t,...e){const i=this.transaction(t,r?"readwrite":"readonly");let a=i.store;return n&&(a=a.index(e.shift())),(await Promise.all([a[s](...e),r&&i.done]))[0]};return j.set(e,i),i}O=(t=>q({},t,{get:(e,s,n)=>S(e,s)||t.get(e,s,n),has:(e,s)=>!!S(e,s)||t.has(e,s)}))(O);try{self["workbox:expiration:7.0.0"]&&_()}catch(t){}const K="cache-entries",A=t=>{const e=new URL(t,location.href);return e.hash="",e.href};class F{constructor(t){this._=null,this.L=t}I(t){const e=t.createObjectStore(K,{keyPath:"id"});e.createIndex("cacheName","cacheName",{unique:!1}),e.createIndex("timestamp","timestamp",{unique:!1})}C(t){this.I(t),this.L&&function(t,{blocked:e}={}){const s=indexedDB.deleteDatabase(t);e&&s.addEventListener("blocked",(t=>e(t.oldVersion,t))),B(s).then((()=>{}))}(this.L)}async setTimestamp(t,e){const s={url:t=A(t),timestamp:e,cacheName:this.L,id:this.N(t)},n=(await this.getDb()).transaction(K,"readwrite",{durability:"relaxed"});await n.store.put(s),await n.done}async getTimestamp(t){const e=await this.getDb(),s=await e.get(K,this.N(t));return null==s?void 0:s.timestamp}async expireEntries(t,e){const s=await this.getDb();let n=await s.transaction(K).store.index("timestamp").openCursor(null,"prev");const r=[];let i=0;for(;n;){const s=n.value;s.cacheName===this.L&&(t&&s.timestamp<t||e&&i>=e?r.push(n.value):i++),n=await n.continue()}const a=[];for(const t of r)await s.delete(K,t.id),a.push(t.url);return a}N(t){return this.L+"|"+A(t)}async getDb(){return this._||(this._=await function(t,e,{blocked:s,upgrade:n,blocking:r,terminated:i}={}){const a=indexedDB.open(t,e),o=B(a);return n&&a.addEventListener("upgradeneeded",(t=>{n(B(a.result),t.oldVersion,t.newVersion,B(a.transaction),t)})),s&&a.addEventListener("blocked",(t=>s(t.oldVersion,t.newVersion,t))),o.then((t=>{i&&t.addEventListener("close",(()=>i())),r&&t.addEventListener("versionchange",(t=>r(t.oldVersion,t.newVersion,t)))})).catch((()=>{})),o}("workbox-expiration",1,{upgrade:this.C.bind(this)})),this._}}class H{constructor(t,e={}){this.O=!1,this.T=!1,this.k=e.maxEntries,this.B=e.maxAgeSeconds,this.P=e.matchOptions,this.L=t,this.M=new F(t)}async expireEntries(){if(this.O)return void(this.T=!0);this.O=!0;const t=this.B?Date.now()-1e3*this.B:0,e=await this.M.expireEntries(t,this.k),s=await self.caches.open(this.L);for(const t of e)await s.delete(t,this.P);this.O=!1,this.T&&(this.T=!1,b(this.expireEntries()))}async updateTimestamp(t){await this.M.setTimestamp(t,Date.now())}async isURLExpired(t){if(this.B){const e=await this.M.getTimestamp(t),s=Date.now()-1e3*this.B;return void 0===e||e<s}return!1}async delete(){this.T=!1,await this.M.expireEntries(1/0)}}try{self["workbox:range-requests:7.0.0"]&&_()}catch(t){}async function $(t,e){try{if(206===e.status)return e;const n=t.headers.get("range");if(!n)throw new s("no-range-header");const r=function(t){const e=t.trim().toLowerCase();if(!e.startsWith("bytes="))throw new s("unit-must-be-bytes",{normalizedRangeHeader:e});if(e.includes(","))throw new s("single-range-only",{normalizedRangeHeader:e});const n=/(\d*)-(\d*)/.exec(e);if(!n||!n[1]&&!n[2])throw new s("invalid-range-values",{normalizedRangeHeader:e});return{start:""===n[1]?void 0:Number(n[1]),end:""===n[2]?void 0:Number(n[2])}}(n),i=await e.blob(),a=function(t,e,n){const r=t.size;if(n&&n>r||e&&e<0)throw new s("range-not-satisfiable",{size:r,end:n,start:e});let i,a;return void 0!==e&&void 0!==n?(i=e,a=n+1):void 0!==e&&void 0===n?(i=e,a=r):void 0!==n&&void 0===e&&(i=r-n,a=r),{start:i,end:a}}(i,r.start,r.end),o=i.slice(a.start,a.end),c=o.size,h=new Response(o,{status:206,statusText:"Partial Content",headers:e.headers});return h.headers.set("Content-Length",String(c)),h.headers.set("Content-Range",`bytes ${a.start}-${a.end-1}/${i.size}`),h}catch(t){return new Response("",{status:416,statusText:"Range Not Satisfiable"})}}function z(t,e){const s=e();return t.waitUntil(s),s}try{self["workbox:precaching:7.0.0"]&&_()}catch(t){}function G(t){if(!t)throw new s("add-to-cache-list-unexpected-type",{entry:t});if("string"==typeof t){const e=new URL(t,location.href);return{cacheKey:e.href,url:e.href}}const{revision:e,url:n}=t;if(!n)throw new s("add-to-cache-list-unexpected-type",{entry:t});if(!e){const t=new URL(n,location.href);return{cacheKey:t.href,url:t.href}}const r=new URL(n,location.href),i=new URL(n,location.href);return r.searchParams.set("__WB_REVISION__",e),{cacheKey:r.href,url:i.href}}class V{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:t,state:e})=>{e&&(e.originalRequest=t)},this.cachedResponseWillBeUsed=async({event:t,state:e,cachedResponse:s})=>{if("install"===t.type&&e&&e.originalRequest&&e.originalRequest instanceof Request){const t=e.originalRequest.url;s?this.notUpdatedURLs.push(t):this.updatedURLs.push(t)}return s}}}class J{constructor({precacheController:t}){this.cacheKeyWillBeUsed=async({request:t,params:e})=>{const s=(null==e?void 0:e.cacheKey)||this.W.getCacheKeyForURL(t.url);return s?new Request(s,{headers:t.headers}):t},this.W=t}}let Q,X;async function Y(t,e){let n=null;if(t.url){n=new URL(t.url).origin}if(n!==self.location.origin)throw new s("cross-origin-copy-response",{origin:n});const r=t.clone(),i={headers:new Headers(r.headers),status:r.status,statusText:r.statusText},a=e?e(i):i,o=function(){if(void 0===Q){const t=new Response("");if("body"in t)try{new Response(t.body),Q=!0}catch(t){Q=!1}Q=!1}return Q}()?r.body:await r.blob();return new Response(o,a)}class Z extends v{constructor(t={}){t.cacheName=w(t.cacheName),super(t),this.j=!1!==t.fallbackToNetwork,this.plugins.push(Z.copyRedirectedCacheableResponsesPlugin)}async U(t,e){const s=await e.cacheMatch(t);return s||(e.event&&"install"===e.event.type?await this.S(t,e):await this.K(t,e))}async K(t,e){let n;const r=e.params||{};if(!this.j)throw new s("missing-precache-entry",{cacheName:this.cacheName,url:t.url});{const s=r.integrity,i=t.integrity,a=!i||i===s;n=await e.fetch(new Request(t,{integrity:"no-cors"!==t.mode?i||s:void 0})),s&&a&&"no-cors"!==t.mode&&(this.A(),await e.cachePut(t,n.clone()))}return n}async S(t,e){this.A();const n=await e.fetch(t);if(!await e.cachePut(t,n.clone()))throw new s("bad-precaching-response",{url:t.url,status:n.status});return n}A(){let t=null,e=0;for(const[s,n]of this.plugins.entries())n!==Z.copyRedirectedCacheableResponsesPlugin&&(n===Z.defaultPrecacheCacheabilityPlugin&&(t=s),n.cacheWillUpdate&&e++);0===e?this.plugins.push(Z.defaultPrecacheCacheabilityPlugin):e>1&&null!==t&&this.plugins.splice(t,1)}}Z.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:t})=>!t||t.status>=400?null:t},Z.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:t})=>t.redirected?await Y(t):t};class tt{constructor({cacheName:t,plugins:e=[],fallbackToNetwork:s=!0}={}){this.F=new Map,this.H=new Map,this.$=new Map,this.u=new Z({cacheName:w(t),plugins:[...e,new J({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this.u}precache(t){this.addToCacheList(t),this.G||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this.G=!0)}addToCacheList(t){const e=[];for(const n of t){"string"==typeof n?e.push(n):n&&void 0===n.revision&&e.push(n.url);const{cacheKey:t,url:r}=G(n),i="string"!=typeof n&&n.revision?"reload":"default";if(this.F.has(r)&&this.F.get(r)!==t)throw new s("add-to-cache-list-conflicting-entries",{firstEntry:this.F.get(r),secondEntry:t});if("string"!=typeof n&&n.integrity){if(this.$.has(t)&&this.$.get(t)!==n.integrity)throw new s("add-to-cache-list-conflicting-integrities",{url:r});this.$.set(t,n.integrity)}if(this.F.set(r,t),this.H.set(r,i),e.length>0){const t=`Workbox is precaching URLs without revision info: ${e.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(t)}}}install(t){return z(t,(async()=>{const e=new V;this.strategy.plugins.push(e);for(const[e,s]of this.F){const n=this.$.get(s),r=this.H.get(e),i=new Request(e,{integrity:n,cache:r,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:i,event:t}))}const{updatedURLs:s,notUpdatedURLs:n}=e;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(t){return z(t,(async()=>{const t=await self.caches.open(this.strategy.cacheName),e=await t.keys(),s=new Set(this.F.values()),n=[];for(const r of e)s.has(r.url)||(await t.delete(r),n.push(r.url));return{deletedURLs:n}}))}getURLsToCacheKeys(){return this.F}getCachedURLs(){return[...this.F.keys()]}getCacheKeyForURL(t){const e=new URL(t,location.href);return this.F.get(e.href)}getIntegrityForCacheKey(t){return this.$.get(t)}async matchPrecache(t){const e=t instanceof Request?t.url:t,s=this.getCacheKeyForURL(e);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(t){const e=this.getCacheKeyForURL(t);if(!e)throw new s("non-precached-url",{url:t});return s=>(s.request=new Request(t),s.params=Object.assign({cacheKey:e},s.params),this.strategy.handle(s))}}const et=()=>(X||(X=new tt),X);class st extends r{constructor(t,e){super((({request:s})=>{const n=t.getURLsToCacheKeys();for(const r of function*(t,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:r}={}){const i=new URL(t,location.href);i.hash="",yield i.href;const a=function(t,e=[]){for(const s of[...t.searchParams.keys()])e.some((t=>t.test(s)))&&t.searchParams.delete(s);return t}(i,e);if(yield a.href,s&&a.pathname.endsWith("/")){const t=new URL(a.href);t.pathname+=s,yield t.href}if(n){const t=new URL(a.href);t.pathname+=".html",yield t.href}if(r){const t=r({url:i});for(const e of t)yield e.href}}(s.url,e)){const e=n.get(r);if(e){return{cacheKey:e,integrity:t.getIntegrityForCacheKey(e)}}}}),t.strategy)}}t.CacheFirst=class extends v{async U(t,e){let n,r=await e.cacheMatch(t);if(!r)try{r=await e.fetchAndCachePut(t)}catch(t){t instanceof Error&&(n=t)}if(!r)throw new s("no-response",{url:t.url,error:n});return r}},t.ExpirationPlugin=class{constructor(t={}){this.cachedResponseWillBeUsed=async({event:t,request:e,cacheName:s,cachedResponse:n})=>{if(!n)return null;const r=this.V(n),i=this.J(s);b(i.expireEntries());const a=i.updateTimestamp(e.url);if(t)try{t.waitUntil(a)}catch(t){}return r?n:null},this.cacheDidUpdate=async({cacheName:t,request:e})=>{const s=this.J(t);await s.updateTimestamp(e.url),await s.expireEntries()},this.X=t,this.B=t.maxAgeSeconds,this.Y=new Map,t.purgeOnQuotaError&&function(t){g.add(t)}((()=>this.deleteCacheAndMetadata()))}J(t){if(t===d())throw new s("expire-custom-caches-only");let e=this.Y.get(t);return e||(e=new H(t,this.X),this.Y.set(t,e)),e}V(t){if(!this.B)return!0;const e=this.Z(t);if(null===e)return!0;return e>=Date.now()-1e3*this.B}Z(t){if(!t.headers.has("date"))return null;const e=t.headers.get("date"),s=new Date(e).getTime();return isNaN(s)?null:s}async deleteCacheAndMetadata(){for(const[t,e]of this.Y)await self.caches.delete(t),await e.delete();this.Y=new Map}},t.NetworkFirst=class extends v{constructor(t={}){super(t),this.plugins.some((t=>"cacheWillUpdate"in t))||this.plugins.unshift(u),this.tt=t.networkTimeoutSeconds||0}async U(t,e){const n=[],r=[];let i;if(this.tt){const{id:s,promise:a}=this.et({request:t,logs:n,handler:e});i=s,r.push(a)}const a=this.st({timeoutId:i,request:t,logs:n,handler:e});r.push(a);const o=await e.waitUntil((async()=>await e.waitUntil(Promise.race(r))||await a)());if(!o)throw new s("no-response",{url:t.url});return o}et({request:t,logs:e,handler:s}){let n;return{promise:new Promise((e=>{n=setTimeout((async()=>{e(await s.cacheMatch(t))}),1e3*this.tt)})),id:n}}async st({timeoutId:t,request:e,logs:s,handler:n}){let r,i;try{i=await n.fetchAndCachePut(e)}catch(t){t instanceof Error&&(r=t)}return t&&clearTimeout(t),!r&&i||(i=await n.cacheMatch(e)),i}},t.RangeRequestsPlugin=class{constructor(){this.cachedResponseWillBeUsed=async({request:t,cachedResponse:e})=>e&&t.headers.has("range")?await $(t,e):e}},t.StaleWhileRevalidate=class extends v{constructor(t={}){super(t),this.plugins.some((t=>"cacheWillUpdate"in t))||this.plugins.unshift(u)}async U(t,e){const n=e.fetchAndCachePut(t).catch((()=>{}));e.waitUntil(n);let r,i=await e.cacheMatch(t);if(i);else try{i=await n}catch(t){t instanceof Error&&(r=t)}if(!i)throw new s("no-response",{url:t.url,error:r});return i}},t.cleanupOutdatedCaches=function(){self.addEventListener("activate",(t=>{const e=w();t.waitUntil((async(t,e="-precache-")=>{const s=(await self.caches.keys()).filter((s=>s.includes(e)&&s.includes(self.registration.scope)&&s!==t));return await Promise.all(s.map((t=>self.caches.delete(t)))),s})(e).then((t=>{})))}))},t.clientsClaim=function(){self.addEventListener("activate",(()=>self.clients.claim()))},t.precacheAndRoute=function(t,e){!function(t){et().precache(t)}(t),function(t){const e=et();h(new st(e,t))}(e)},t.registerRoute=h}));