sammoftah commited on
Commit
4e84956
·
verified ·
1 Parent(s): 814dcf8

Publish premium LapLens video analysis workspace

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +4 -0
  2. 404.html +1 -0
  3. LICENSE +21 -0
  4. README.md +18 -6
  5. THIRD_PARTY_NOTICES.md +36 -0
  6. __next.__PAGE__.txt +24 -0
  7. __next._full.txt +19 -0
  8. __next._tree.txt +3 -0
  9. _next/static/UbbMpeloSgsLDdLmZN7Jl/_buildManifest.js +1 -0
  10. _next/static/UbbMpeloSgsLDdLmZN7Jl/_ssgManifest.js +1 -0
  11. _next/static/chunks/133.fef9f5df5a87e46f.js +1 -0
  12. _next/static/chunks/350.fd4228ac6dc2eafc.js +0 -0
  13. _next/static/chunks/378-e1415e3472e2a5c2.js +0 -0
  14. _next/static/chunks/459.a9a610540184e44d.js +1 -0
  15. _next/static/chunks/467.554de8b78b8dc3b7.js +0 -0
  16. _next/static/chunks/511.a79d442b66bd893c.js +3 -0
  17. _next/static/chunks/5870499b-2e103d20394dec0d.js +0 -0
  18. _next/static/chunks/60183702.d0d3b92c17a6ee51.js +0 -0
  19. _next/static/chunks/646-1bd1579a68abce61.js +3 -0
  20. _next/static/chunks/app/_global-error/page-ea79b7848455bd3d.js +1 -0
  21. _next/static/chunks/app/_not-found/page-43906e5ab9d380d2.js +1 -0
  22. _next/static/chunks/app/layout-95c6c6c3b6b73ef5.js +1 -0
  23. _next/static/chunks/app/page-f0819ff71b122272.js +1 -0
  24. _next/static/chunks/d3b70fbf.e4eb8687391a72a6.js +3 -0
  25. _next/static/chunks/framework-2c54b687e37a74cc.js +0 -0
  26. _next/static/chunks/main-a7b283087b71692e.js +0 -0
  27. _next/static/chunks/main-app-28a40e14f1aa193f.js +1 -0
  28. _next/static/chunks/next/dist/client/components/builtin/app-error-ea79b7848455bd3d.js +1 -0
  29. _next/static/chunks/next/dist/client/components/builtin/forbidden-ea79b7848455bd3d.js +1 -0
  30. _next/static/chunks/next/dist/client/components/builtin/global-error-dd919eca02e9e57a.js +1 -0
  31. _next/static/chunks/next/dist/client/components/builtin/not-found-ea79b7848455bd3d.js +1 -0
  32. _next/static/chunks/next/dist/client/components/builtin/unauthorized-ea79b7848455bd3d.js +1 -0
  33. _next/static/chunks/polyfills-42372ed130431b0a.js +0 -0
  34. _next/static/chunks/webpack-970336a6a28eefb1.js +1 -0
  35. _next/static/css/ee70b33c5fe95b49.css +3 -0
  36. _next/static/media/barlow-condensed-latin-600-normal.a0aeaff6.woff +0 -0
  37. _next/static/media/barlow-condensed-latin-600-normal.b506a7ca.woff2 +0 -0
  38. _next/static/media/barlow-condensed-latin-ext-600-normal.646ca2c5.woff2 +0 -0
  39. _next/static/media/barlow-condensed-latin-ext-600-normal.b10b40bc.woff +0 -0
  40. _next/static/media/barlow-condensed-vietnamese-600-normal.6d7e2f90.woff2 +0 -0
  41. _next/static/media/barlow-condensed-vietnamese-600-normal.7f364a4c.woff +0 -0
  42. _next/static/media/ibm-plex-mono-cyrillic-400-normal.651bc97e.woff2 +0 -0
  43. _next/static/media/ibm-plex-mono-cyrillic-400-normal.9533b520.woff +0 -0
  44. _next/static/media/ibm-plex-mono-cyrillic-ext-400-normal.66a2e865.woff2 +0 -0
  45. _next/static/media/ibm-plex-mono-cyrillic-ext-400-normal.88f8fd5b.woff +0 -0
  46. _next/static/media/ibm-plex-mono-latin-400-normal.06ac09dc.woff2 +0 -0
  47. _next/static/media/ibm-plex-mono-latin-400-normal.e32cf7a4.woff +0 -0
  48. _next/static/media/ibm-plex-mono-latin-ext-400-normal.9faee8e8.woff2 +0 -0
  49. _next/static/media/ibm-plex-mono-latin-ext-400-normal.f14ffb91.woff +0 -0
  50. _next/static/media/ibm-plex-mono-vietnamese-400-normal.110e2a76.woff2 +0 -0
.gitattributes CHANGED
@@ -33,3 +33,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ _next/static/chunks/d3b70fbf.e4eb8687391a72a6.js filter=lfs diff=lfs merge=lfs -text
37
+ demo/baylands-race.webm filter=lfs diff=lfs merge=lfs -text
38
+ design/direction-a.png filter=lfs diff=lfs merge=lfs -text
39
+ design/direction-b.png filter=lfs diff=lfs merge=lfs -text
404.html ADDED
@@ -0,0 +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/ee70b33c5fe95b49.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-970336a6a28eefb1.js"/><script src="/_next/static/chunks/5870499b-2e103d20394dec0d.js" async=""></script><script src="/_next/static/chunks/378-e1415e3472e2a5c2.js" async=""></script><script src="/_next/static/chunks/main-app-28a40e14f1aa193f.js" async=""></script><meta name="robots" content="noindex"/><title>LapLens — race exposure analysis</title><meta name="description" content="Review racing footage, find sponsor marks, and inspect the moments behind every exposure count."/><title>404: This page could not be found.</title><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><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><!--$--><!--/$--><script src="/_next/static/chunks/webpack-970336a6a28eefb1.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[2600,[],\"\"]\n3:I[4519,[],\"\"]\n7:I[8738,[],\"OutletBoundary\"]\n8:\"$Sreact.suspense\"\na:\"ViewportBoundary\"\nb:I[8738,[],\"$a\"]\nd:\"MetadataBoundary\"\ne:I[8738,[],\"$d\"]\n10:I[8401,[],\"default\",1]\n:HL[\"/_next/static/css/ee70b33c5fe95b49.css\",\"style\"]\n5:X\n6:[[\"children\",{\"s\":\"__PAGE__\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"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,[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@9\"}]}]]}],\"p\":false,\"v\":null}}]]\n4:[[\"children\",{\"s\":\"_not-found\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$5\"},\"c\":\"$Q6\"}]]\n0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/ee70b33c5fe95b49.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],\"p\":false,\"v\":null},\"c\":\"$Q4\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"$Le\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lf\"}]}],null]}],null]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$10\",[]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"UbbMpeloSgsLDdLmZN7Jl\"}\n5:C\nc:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n9:null\nf:[[\"$\",\"title\",\"0\",{\"children\":\"LapLens — race exposure analysis\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Review racing footage, find sponsor marks, and inspect the moments behind every exposure count.\"}]]\n"])</script></body></html>
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 LapLens contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
README.md CHANGED
@@ -1,10 +1,22 @@
1
  ---
2
- title: Laplens
3
- emoji: 👀
4
- colorFrom: indigo
5
- colorTo: green
6
  sdk: static
7
- pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: LapLens
3
+ emoji: 🏁
4
+ colorFrom: yellow
5
+ colorTo: red
6
  sdk: static
7
+ app_file: index.html
8
+ license: mit
9
+ short_description: Motorsport video review with local browser computer vision.
10
  ---
11
 
12
+ # LapLens
13
+
14
+ Review racing footage with car detections, a synchronized timeline, optional sponsor-reference matching, and calibrated section-speed estimates. Video and logo files remain in your browser.
15
+
16
+ **[Source code and setup](https://github.com/OsamaMoftah/laplens)** · **[Design direction A](https://sammoftah-laplens.static.hf.space/design/direction-a.html)** · **[Design direction B](https://sammoftah-laplens.static.hf.space/design/direction-b.html)**
17
+
18
+ Use a desktop browser and a clip from 1 to 30 seconds. The first analysis downloads the included model. WebGPU is preferred where available, with a WebAssembly fallback. Analysis time depends on the device.
19
+
20
+ This portfolio MVP has no validated detection-accuracy or speed-error figures. Track IDs can switch. Dashed boxes are visual estimates; sponsor results require a supplied logo reference and are limited to detected car crops. Speed requires a fixed camera and a measured physical distance between gates.
21
+
22
+ Sample footage: Sarah Stierch, *Salute to Baylands Raceway Park — July 8, 2023*, [Wikimedia Commons](https://commons.wikimedia.org/wiki/File:Salute_to_Baylands_Raceway_Park_-_July_8_2023_-_Sarah_Stierch.webm), CC BY 4.0. Included model, libraries, and fonts retain their own licenses; see THIRD_PARTY_NOTICES.md.
THIRD_PARTY_NOTICES.md ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Third-party notices
2
+
3
+ Application source code is MIT licensed. These notices cover assets and libraries distributed with the app; each keeps its own license.
4
+
5
+ ## Sample footage
6
+
7
+ **Salute to Baylands Raceway Park**, recorded and published by Sarah Stierch (Missvain), 2023. The bundled 10-second 1920 × 1080 WebM is an excerpt resized from the 4K source.
8
+
9
+ - Source: https://commons.wikimedia.org/wiki/File:Salute_to_Baylands_Raceway_Park_-_July_8_2023_-_Sarah_Stierch.webm
10
+ - Creator: Sarah Stierch (Missvain)
11
+ - License: [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/)
12
+ - Changes: excerpted and resized for the demo; no ownership of the source footage is claimed.
13
+
14
+ ## RF-DETR Nano model
15
+
16
+ The quantized COCO model in `public/models/rfdetr-nano/` is from [onnx-community/rfdetr_nano-ONNX](https://huggingface.co/onnx-community/rfdetr_nano-ONNX). The source model repository identifies the model package as Apache License 2.0. The included `LICENSE.txt`, `NOTICE.txt`, and configuration files are retained with the weights. RF-DETR and its upstream software are credited to Roboflow; LapLens makes no claim of model authorship.
17
+
18
+ ## Libraries
19
+
20
+ - [OpenCV.js (`@techstark/opencv-js`)](https://github.com/TechStark/opencv-js), Apache License 2.0.
21
+ - [ONNX Runtime Web](https://github.com/microsoft/onnxruntime), MIT License.
22
+ - [Next.js](https://github.com/vercel/next.js), MIT License.
23
+ - [React](https://github.com/facebook/react), MIT License.
24
+ - [Tailwind CSS](https://github.com/tailwindlabs/tailwindcss), MIT License.
25
+ - [Lucide](https://github.com/lucide-icons/lucide), ISC License.
26
+
27
+ ## Fonts
28
+
29
+ - [Jost](https://github.com/indestructible-type/Jost), SIL Open Font License 1.1.
30
+ - [Karla](https://github.com/googlefonts/karla), SIL Open Font License 1.1.
31
+
32
+ Font packages are included through Fontsource. Their upstream OFL license texts are retained in `public/fonts/jost/OFL.txt` and `public/fonts/karla/OFL.txt`.
33
+
34
+ ### Barlow Condensed and IBM Plex Mono
35
+
36
+ These fonts are distributed under the SIL Open Font License 1.1 through Fontsource. Their license texts are included in `public/fonts/barlow-condensed/OFL.txt` and `public/fonts/ibm-plex-mono/OFL.txt`.
__next.__PAGE__.txt ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[2600,[],""]
3
+ 3:I[4519,[],""]
4
+ 7:"static/chunks/646-1bd1579a68abce61.js"
5
+ 8:"static/chunks/app/page-f0819ff71b122272.js"
6
+ 9:I[9866,["646","$7","974","$8"],"Workspace"]
7
+ a:I[8738,[],"OutletBoundary"]
8
+ b:"$Sreact.suspense"
9
+ e:"ViewportBoundary"
10
+ f:I[8738,[],"$e"]
11
+ 10:"MetadataBoundary"
12
+ 11:I[8738,[],"$10"]
13
+ :HL["/_next/static/css/ee70b33c5fe95b49.css","style"]
14
+ 5:X
15
+ 6:[["children",{"s":"__PAGE__","h":160,"d":{"r":["$","$1","c",{"children":[["$","$L9",null,{}],null,["$","$La",null,{"children":["$","$b",null,{"name":"Next.MetadataOutlet","children":"$@c"}]}]]}],"p":"$@d","v":null,"s":"$5"}}]]
16
+ 0:{"t":{"t":{"s":"","h":80,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ee70b33c5fe95b49.css","precedence":"next"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}],"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."}]}]]}]}]],[]]}]}]}]]}],"p":"$@4","v":null,"s":"$5"},"c":"$Q6"},"h":{"r":["$","$1","h",{"children":[null,["$","$Lf",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","$L11",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$b",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"LapLens — race exposure analysis"}],["$","meta","1",{"name":"description","content":"Review racing footage, find sponsor marks, and inspect the moments behind every exposure count."}]]}]}],null]}],null]}],"p":"$@12","v":null,"s":"$5"}},"a":"$@13","u":"$@14","b":"UbbMpeloSgsLDdLmZN7Jl"}
17
+ c:null
18
+ 5:300
19
+ 14:true
20
+ 5:C
21
+ 13:0
22
+ 4:"$undefined"
23
+ 12:"$undefined"
24
+ d:"$undefined"
__next._full.txt ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[2600,[],""]
3
+ 3:I[4519,[],""]
4
+ 5:"static/chunks/646-1bd1579a68abce61.js"
5
+ 6:"static/chunks/app/page-f0819ff71b122272.js"
6
+ 7:I[9866,["646","$5","974","$6"],"Workspace"]
7
+ 8:I[8738,[],"OutletBoundary"]
8
+ 9:"$Sreact.suspense"
9
+ b:"ViewportBoundary"
10
+ c:I[8738,[],"$b"]
11
+ e:"MetadataBoundary"
12
+ f:I[8738,[],"$e"]
13
+ 11:I[8401,[],"default",1]
14
+ :HL["/_next/static/css/ee70b33c5fe95b49.css","style"]
15
+ 4:[["children",{"s":"__PAGE__","h":512,"d":{"r":["$","$1","c",{"children":[["$","$L7",null,{}],null,["$","$L8",null,{"children":["$","$9",null,{"name":"Next.MetadataOutlet","children":"$@a"}]}]]}],"p":false,"v":null}}]]
16
+ 0:{"P":null,"c":["",""],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ee70b33c5fe95b49.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",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."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],"p":false,"v":null},"c":"$Q4"},"h":{"r":["$","$1","h",{"children":[null,["$","$Lc",null,{"children":"$Ld"}],["$","$Lf",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$9",null,{"name":"Next.Metadata","children":"$L10"}]}],null]}],null]}],"p":false,"v":null}},"m":"$undefined","G":["$11",[]],"S":true,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"UbbMpeloSgsLDdLmZN7Jl"}
17
+ d:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
18
+ a:null
19
+ 10:[["$","title","0",{"children":"LapLens — race exposure analysis"}],["$","meta","1",{"name":"description","content":"Review racing footage, find sponsor marks, and inspect the moments behind every exposure count."}]]
__next._tree.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ :HL["/_next/static/css/ee70b33c5fe95b49.css","style"]
2
+ 1:[["children",{"s":"__PAGE__","h":160}]]
3
+ 0:{"b":"UbbMpeloSgsLDdLmZN7Jl","t":{"t":{"s":"","h":80,"c":"$Q1"}}}
_next/static/UbbMpeloSgsLDdLmZN7Jl/_buildManifest.js ADDED
@@ -0,0 +1 @@
 
 
1
+ self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:3,errorRate:1e-4,numBits:58,numHashes:14,bitArray:[1,1,1,1,0,1,1,0,1,1,0,1,1,1,0,1,0,1,1,0,0,0,1,0,0,0,0,0,1,0,1,1,1,1,0,1,1,0,1,1,0,1,1,0,1,0,0,1,1,1,0,0,1,1,0,0,1,1]},__routerFilterDynamic:{numItems:0,errorRate:1e-4,numBits:0,numHashes:0/0,bitArray:[]},sortedPages:["/_app"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
_next/static/UbbMpeloSgsLDdLmZN7Jl/_ssgManifest.js ADDED
@@ -0,0 +1 @@
 
 
1
+ self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()
_next/static/chunks/133.fef9f5df5a87e46f.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (()=>{var e,t,r,a,i,n,o={},l={};function h(e){var t=l[e];if(void 0!==t)return t.exports;var r=l[e]={exports:{}},a=!0;try{o[e](r,r.exports,h),a=!1}finally{a&&delete l[e]}return r.exports}h.m=o,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,h.t=function(r,a){if(1&a&&(r=this(r)),8&a||"object"==typeof r&&r&&(4&a&&r.__esModule||16&a&&"function"==typeof r.then))return r;var i=Object.create(null);h.r(i);var n={};e=e||[null,t({}),t([]),t(t)];for(var o=2&a&&r;"object"==typeof o&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach(e=>n[e]=()=>r[e]);return n.default=()=>r,h.d(i,n),i},h.d=(e,t)=>{for(var r in t)h.o(t,r)&&!h.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},h.f={},h.e=e=>Promise.all(Object.keys(h.f).reduce((t,r)=>(h.f[r](e,t),t),[])),h.u=e=>"static/chunks/"+(({339:"d3b70fbf",982:"60183702"})[e]||e)+"."+({339:"e4eb8687391a72a6",350:"fd4228ac6dc2eafc",459:"a9a610540184e44d",467:"554de8b78b8dc3b7",511:"a79d442b66bd893c",982:"d0d3b92c17a6ee51"})[e]+".js",h.miniCssF=e=>{},h.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),h.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},h.U=function(e){var t=new URL(e,"x:/"),r={};for(var a in t)r[a]=t[a];for(var a in r.href=e,r.pathname=e.replace(/[?#].*/,""),r.origin=r.protocol="",r.toString=r.toJSON=()=>e,r)Object.defineProperty(this,a,{enumerable:!0,configurable:!0,value:r[a]})},h.U.prototype=URL.prototype,h.tt=()=>(void 0===r&&(r={createScriptURL:e=>e},"u">typeof trustedTypes&&trustedTypes.createPolicy&&(r=trustedTypes.createPolicy("nextjs#bundler",r))),r),h.tu=e=>h.tt().createScriptURL(e),h.p="/_next/",a={133:1},h.f.i=(e,t)=>{a[e]||importScripts(h.tu(h.p+h.u(e)))},n=(i=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push.bind(i),i.push=e=>{var[t,r,i]=e;for(var o in r)h.o(r,o)&&(h.m[o]=r[o]);for(i&&i(h);t.length;)a[t.pop()]=1;n(e)},(()=>{"use strict";let e,t,r,a,i,n=self,o="WASM",l=1,s=[],f=new Map;function d(){return i||(i=(async()=>{let e=await Promise.all([h.e(982),h.e(339),h.e(350),h.e(459)]).then(h.t.bind(h,3068,23)),t=e.default??e;t instanceof Promise?a=await t:(a=t).Mat||await new Promise((e,t)=>{let r=setTimeout(()=>t(Error("OpenCV initialization timed out.")),3e4);a.onRuntimeInitialized=()=>{clearTimeout(r),e()}})})()),i}async function c(){let a=await fetch("/models/rfdetr-nano/model_quantized.onnx",{cache:"force-cache"});if(!a.ok)throw Error(`Car detector could not load (${a.status}).`);if(r=await a.arrayBuffer(),"gpu"in navigator)try{let a=await h.e(467).then(h.bind(h,6467));t=await a.InferenceSession.create(r,{executionProviders:["webgpu"],graphOptimizationLevel:"all"}),e=a,o="WebGPU";return}catch{t=void 0}await u()}async function u(){if(!r)throw Error("Car detector weights are unavailable.");(e=await h.e(511).then(h.bind(h,1511))).env.wasm.numThreads=1,e.env.wasm.wasmPaths=new URL("/ort/",n.location.origin).href,t=await e.InferenceSession.create(r,{executionProviders:["wasm"],graphOptimizationLevel:"all"}),o="WASM"}function w(e,t,r){return a.matFromImageData(new ImageData(new Uint8ClampedArray(r),e,t))}function g(e){let t=new a.Mat,r=new a.KeyPointVector,i=new a.Mat,n=new a.ORB(650,1.2,7,19,0,2,a.ORB_HARRIS_SCORE,31,12);try{4===e.channels()?a.cvtColor(e,t,a.COLOR_RGBA2GRAY):3===e.channels()?a.cvtColor(e,t,a.COLOR_RGB2GRAY):e.copyTo(t),n.detectAndCompute(t,new a.Mat,r,i);let o=[];for(let e=0;e<r.size();e++){let t=r.get(e).pt;o.push([t.x,t.y])}return{points:o,descriptors:Uint8Array.from(i.data),cols:i.cols}}finally{t.delete(),r.delete(),i.delete(),n.delete()}}async function p(r){if(!t)throw Error("Car detector is not initialized.");let a=new OffscreenCanvas(r.width,r.height),i=a.getContext("2d",{willReadFrequently:!0}),n=new OffscreenCanvas(384,384).getContext("2d",{willReadFrequently:!0});if(!i||!n)throw Error("Browser canvas is unavailable.");i.putImageData(new ImageData(new Uint8ClampedArray(r.pixels),r.width,r.height),0,0);let h=[];for(let i of[{x:0,y:.2,width:.6,height:.65},{x:.4,y:.2,width:.6,height:.65}]){let l,s=Math.round(i.x*r.width),f=Math.round(i.y*r.height),d=Math.min(r.width-s,Math.round(i.width*r.width)),c=Math.min(r.height-f,Math.round(i.height*r.height));n.clearRect(0,0,384,384),n.drawImage(a,s,f,d,c,0,0,384,384);let w=n.getImageData(0,0,384,384).data,g=new Float32Array(442368);for(let e=0;e<147456;e++)g[e]=w[4*e]/255,g[147456+e]=w[4*e+1]/255,g[294912+e]=w[4*e+2]/255;let p=new e.Tensor("float32",g,[1,3,384,384]);try{l=await t.run({pixel_values:p})}catch(r){if(p.dispose(),"WebGPU"!==o)throw r;try{await t.release()}catch{}await u(),p=new e.Tensor("float32",g,[1,3,384,384]),l=await t.run({pixel_values:p})}let y=l.pred_boxes.data,m=l.logits.data,x=y.length/4;for(let e=0;e<x;e++){let t=1/(1+Math.exp(-m[91*e+3]));if(t<.3)continue;let[r,a,n,o]=y.subarray(4*e,4*e+4);if(![r,a,n,o].every(Number.isFinite)||n<=0||o<=0)continue;let l=Math.max(0,Math.min(1,i.x+(r-n/2)*i.width)),s=Math.max(0,Math.min(1,i.y+(a-o/2)*i.height)),f=Math.max(0,Math.min(1,i.x+(r+n/2)*i.width)),d=Math.max(0,Math.min(1,i.y+(a+o/2)*i.height));f<=l||d<=s||h.push({x:l,y:s,width:f-l,height:d-s,trackId:0,detectorScore:t,observed:!0,score:t})}for(let e of(p.dispose(),Object.values(l)))e.dispose()}let f=[];for(let e of h.sort((e,t)=>t.score-e.score))f.some(t=>m(t,e)>.45)||f.push(e);return function(e,t){let r=(s=s.filter(e=>t-e.seen<=1.6&&t>=e.seen)).length+e.length,a=Array.from({length:r},()=>Array(r).fill(0)),i=Array.from({length:s.length},()=>Array(e.length).fill(!1));for(let n=0;n<s.length;n++){let o=s[n];for(let r=0;r<e.length;r++){let l=e[r],h=m(o,l),s=o.x+o.width/2,f=o.y+o.height/2,d=t-o.seen,c=s,u=f;if(o.previous&&o.seen>o.previous.time){let e=o.seen-o.previous.time;c+=(s-o.previous.x)/e*d,u+=(f-o.previous.y)/e*d}let w=Math.hypot(c-l.x-l.width/2,u-l.y-l.height/2),g=Math.max(.025,(o.width+o.height+l.width+l.height)/4),p=1-h+w/g*.72+.12*Math.abs(Math.log(l.width*l.height/Math.max(1e-8,o.width*o.height))),y=h>.01||w<2.8*g;i[n][r]=y,a[n][r]=y?p:1e6}for(let t=e.length;t<r;t++)a[n][t]=1.65}for(let t=s.length;t<r;t++)for(let r=0;r<e.length;r++)a[t][r]=1.65;let n=function(e){let t=e.length;if(!t)return[];let r=Array(t+1).fill(0),a=Array(t+1).fill(0),i=Array(t+1).fill(0),n=Array(t+1).fill(0);for(let o=1;o<=t;o++){i[0]=o;let l=0,h=Array(t+1).fill(1/0),s=Array(t+1).fill(!1);do{s[l]=!0;let o=i[l],f=1/0,d=0;for(let i=1;i<=t;i++){if(s[i])continue;let t=e[o-1][i-1]-r[o]-a[i];t<h[i]&&(h[i]=t,n[i]=l),h[i]<f&&(f=h[i],d=i)}for(let e=0;e<=t;e++)s[e]?(r[i[e]]+=f,a[e]-=f):h[e]-=f;l=d}while(0!==i[l]);do{let e=n[l];i[l]=i[e],l=e}while(0!==l)}let o=Array(t).fill(t);for(let e=1;e<=t;e++)i[e]&&(o[i[e]-1]=e-1);return o}(a),o=new Map,h=new Set;for(let t=0;t<s.length;t++){let r=n[t];r<e.length&&i[t][r]&&a[t][r]<3.3&&(o.set(r,s[t]),h.add(s[t].trackId))}let f=e.map((e,t)=>{let r=o.get(t);return{x:e.x,y:e.y,width:e.width,height:e.height,trackId:r?.trackId??l++,detectorScore:e.detectorScore,observed:!0,previous:r?{x:r.x+r.width/2,y:r.y+r.height/2,time:r.seen}:void 0}});return s=[...s.filter(e=>!h.has(e.trackId)),...f.map(e=>({...e,seen:t}))],f}(f,y)}let y=0;function m(e,t){let r=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),a=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return r*a/Math.max(1e-8,e.width*e.height+t.width*t.height-r*a)}n.onmessage=async({data:e})=>{let{id:r,type:i}=e;try{if("load"===i){await c(),n.postMessage({id:r,result:{provider:o}});return}if(!t)throw Error("The vision engine is not ready.");if("add-reference"===i){await d();let t=e.reference;if(t.width<20||t.height<12)throw Error("Use a logo crop at least 20 \xd7 12 pixels.");let a=w(t.width,t.height,t.pixels);try{let e=g(a);if(e.points.length<8)throw Error("This mark has too few distinct visual features. Try a tighter, sharper crop.");f.set(t.id,{name:t.name,width:t.width,height:t.height,...e})}finally{a.delete()}n.postMessage({id:r,result:!0});return}if("analyze-frame"===i){f.size&&await d();let t={width:e.width,height:e.height,pixels:e.pixels};y=e.time,e.resetTracks&&(s=[],l=1);let i=await p(t),o=function(e,t){if(!f.size)return[];let r=w(e.width,e.height,e.pixels),i=[];try{for(let n of t){let t=.08*n.width,o=.08*n.height,l={x:Math.max(0,n.x-t),y:Math.max(0,n.y-o),width:Math.min(1,n.x+n.width+t)-Math.max(0,n.x-t),height:Math.min(1,n.y+n.height+o)-Math.max(0,n.y-o)},h=new a.Rect(Math.floor(l.x*e.width),Math.floor(l.y*e.height),Math.max(1,Math.floor(l.width*e.width)),Math.max(1,Math.floor(l.height*e.height))),s=r.roi(h);try{for(let[e,t]of f){let r=function(e,t,r,i,n){let o,l=g(t);if(e.points.length<6||l.points.length<6||!l.cols)return null;let h=[];for(let t=0;t<e.points.length;t++){let r=257,a=257,i=-1;for(let n=0;n<l.points.length;n++){let o=function(e,t,r,a){let i=0;for(let n=0;n<32;n++){let o=e[t+n]^r[a+n];o-=o>>>1&85,i+=(o=(51&o)+(o>>>2&51))+(o>>>4)&15}return i}(e.descriptors,32*t,l.descriptors,32*n);o<r?(a=r,r=o,i=n):o<a&&(a=o)}i>=0&&r<64&&r<.78*a&&h.push({src:e.points[t],dst:l.points[i],distance:r})}if(h.length<6)return null;let s=a.matFromArray(h.length,1,a.CV_32FC2,h.flatMap(e=>e.src)),f=a.matFromArray(h.length,1,a.CV_32FC2,h.flatMap(e=>e.dst)),d=new a.Mat;try{if((o=a.findHomography(s,f,a.RANSAC,4,d,800,.99)).empty())return null;let l=d.data,c=0;for(let e of l)e&&c++;let u=c/h.length;if(c<6||u<.48)return null;let w=a.matFromArray(4,1,a.CV_32FC2,[0,0,e.width,0,e.width,e.height,0,e.height]),g=new a.Mat;try{a.perspectiveTransform(w,g,o);let e=g.data32F,l=[e[0],e[2],e[4],e[6]],h=[e[1],e[3],e[5],e[7]],s=Math.max(0,Math.min(...l)),f=Math.max(0,Math.min(...h)),d=Math.min(t.cols,Math.max(...l)),p=Math.min(t.rows,Math.max(...h)),y=d-s,m=p-f;if(y<7||m<5||y>.9*t.cols||m>.9*t.rows)return null;return{x:r.x+s/t.cols*r.width,y:r.y+f/t.rows*r.height,width:y/t.cols*r.width,height:m/t.rows*r.height,sponsorId:i,trackId:n,inliers:c,matchRatio:u}}finally{w.delete(),g.delete()}}finally{s.delete(),f.delete(),d.delete(),o?.delete()}}(t,s,l,e,n.trackId);r&&i.push(r)}}finally{s.delete()}}}finally{r.delete()}return i}(t,i);n.postMessage({id:r,result:{cars:i,logos:o}})}}catch(e){n.postMessage({id:r,error:e instanceof Error?e.message:String(e)})}}})(),_N_E={}})();
_next/static/chunks/350.fd4228ac6dc2eafc.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/378-e1415e3472e2a5c2.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/459.a9a610540184e44d.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{3459:()=>{}}]);
_next/static/chunks/467.554de8b78b8dc3b7.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/511.a79d442b66bd893c.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[511],{1511:(e,t,r)=>{let n;r.r(t),r.d(t,{InferenceSession:()=>k,TRACE:()=>_,TRACE_EVENT_BEGIN:()=>M,TRACE_EVENT_END:()=>$,TRACE_FUNC_BEGIN:()=>S,TRACE_FUNC_END:()=>L,Tensor:()=>U,default:()=>tk,env:()=>d,registerBackend:()=>i});var a,o,i,s,u,f,l,c,d,p,h,m,y,w,g,b,v,E,T,A,O,C,R,x,U,_,I,S,L,M,$,P,k,B=Object.defineProperty,D=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,F=Object.prototype.hasOwnProperty,G=(n=function(e){if("u">typeof require)return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')},"u">typeof require?require:"u">typeof Proxy?new Proxy(n,{get:(e,t)=>("u">typeof require?require:e)[t]}):n),W=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(e){throw r=[e],e}},j=(e,t)=>{for(var r in t)B(e,r,{get:t[r],enumerable:!0})},V=e=>((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of N(t))F.call(e,n)||void 0===n||B(e,n,{get:()=>t[n],enumerable:!(r=D(t,n))||r.enumerable});return e})(B({},"__esModule",{value:!0}),e),H=W(()=>{a=new Map,o=[],i=(e,t,r)=>{if(t&&"function"==typeof t.init&&"function"==typeof t.createInferenceSessionHandler){let n=a.get(e);if(void 0===n)a.set(e,{backend:t,priority:r});else{if(n.priority>r)return;if(n.priority===r&&n.backend!==t)throw Error(`cannot register backend "${e}" using priority ${r}`)}if(r>=0){let t=o.indexOf(e);-1!==t&&o.splice(t,1);for(let t=0;t<o.length;t++)if(a.get(o[t]).priority<=r)return void o.splice(t,0,e);o.push(e)}return}throw TypeError("not a valid backend")},s=async e=>{let t=a.get(e);if(!t)return"backend not found.";if(t.initialized)return t.backend;if(t.aborted)return t.error;{let r=!!t.initPromise;try{return r||(t.initPromise=t.backend.init(e)),await t.initPromise,t.initialized=!0,t.backend}catch(e){return r||(t.error=`${e}`,t.aborted=!0),t.error}finally{delete t.initPromise}}},u=async e=>{let t=e.executionProviders||[],r=t.map(e=>"string"==typeof e?e:e.name),n=0===r.length?o:r,a,i=[],u=new Set;for(let e of n){let t=await s(e);"string"==typeof t?i.push({name:e,err:t}):(a||(a=t),a===t&&u.add(e))}if(!a)throw Error(`no available backend found. ERR: ${i.map(e=>`[${e.name}] ${e.err}`).join(", ")}`);for(let{name:e,err:t}of i)r.includes(e)&&console.warn(`removing requested execution provider "${e}" from session options because it is not available: ${t}`);let f=t.filter(e=>u.has("string"==typeof e?e:e.name));return[a,new Proxy(e,{get:(e,t)=>"executionProviders"===t?f:Reflect.get(e,t)})]}}),z=W(()=>{H()}),q=W(()=>{f="1.30.0"}),Y=W(()=>{q(),l="warning",Object.defineProperty(c={wasm:{},webgl:{},webgpu:{},versions:{common:f},set logLevel(e){if(void 0!==e){if("string"!=typeof e||-1===["verbose","info","warning","error","fatal"].indexOf(e))throw Error(`Unsupported logging level: ${e}`);l=e}},get logLevel(){return l}},"logLevel",{enumerable:!0})}),Z=W(()=>{Y(),d=c}),Q=W(()=>{p=(e,t)=>{let r="u">typeof document?document.createElement("canvas"):new OffscreenCanvas(1,1);r.width=e.dims[3],r.height=e.dims[2];let n=r.getContext("2d");if(null!=n){let a,o;t?.tensorLayout!==void 0&&"NHWC"===t.tensorLayout?(a=e.dims[2],o=e.dims[3]):(a=e.dims[3],o=e.dims[2]);let i=t?.format!==void 0?t.format:"RGB",s=t?.norm,u,f;void 0===s||void 0===s.mean?u=[255,255,255,255]:"number"==typeof s.mean?u=[s.mean,s.mean,s.mean,s.mean]:(u=[s.mean[0],s.mean[1],s.mean[2],0],void 0!==s.mean[3]&&(u[3]=s.mean[3])),void 0===s||void 0===s.bias?f=[0,0,0,0]:"number"==typeof s.bias?f=[s.bias,s.bias,s.bias,s.bias]:(f=[s.bias[0],s.bias[1],s.bias[2],0],void 0!==s.bias[3]&&(f[3]=s.bias[3]));let l=o*a,c=0,d=l,p=2*l,h=-1;"RGBA"===i?(c=0,d=l,p=2*l,h=3*l):"RGB"===i?(c=0,d=l,p=2*l):"RBG"===i&&(c=0,p=l,d=2*l);for(let t=0;t<o;t++)for(let r=0;r<a;r++)n.fillStyle="rgba("+(e.data[c++]-f[0])*u[0]+","+(e.data[d++]-f[1])*u[1]+","+(e.data[p++]-f[2])*u[2]+","+(-1===h?255:(e.data[h++]-f[3])*u[3])+")",n.fillRect(r,t,1,1);if("toDataURL"in r)return r.toDataURL();throw Error("toDataURL is not supported")}throw Error("Can not access image data")},h=(e,t)=>{let r="u">typeof document?document.createElement("canvas").getContext("2d"):new OffscreenCanvas(1,1).getContext("2d"),n;if(null!=r){let a,o,i;t?.tensorLayout!==void 0&&"NHWC"===t.tensorLayout?(a=e.dims[2],o=e.dims[1],i=e.dims[3]):(a=e.dims[3],o=e.dims[2],i=e.dims[1]);let s=void 0!==t&&void 0!==t.format?t.format:"RGB",u=t?.norm,f,l;void 0===u||void 0===u.mean?f=[255,255,255,255]:"number"==typeof u.mean?f=[u.mean,u.mean,u.mean,u.mean]:(f=[u.mean[0],u.mean[1],u.mean[2],255],void 0!==u.mean[3]&&(f[3]=u.mean[3])),void 0===u||void 0===u.bias?l=[0,0,0,0]:"number"==typeof u.bias?l=[u.bias,u.bias,u.bias,u.bias]:(l=[u.bias[0],u.bias[1],u.bias[2],0],void 0!==u.bias[3]&&(l[3]=u.bias[3]));let c=o*a;if(void 0!==t&&(void 0!==t.format&&4===i&&"RGBA"!==t.format||3===i&&"RGB"!==t.format&&"BGR"!==t.format))throw Error("Tensor format doesn't match input tensor dims");let d=0,p=1,h=2,m=3,y=0,w=c,g=2*c,b=-1;"RGBA"===s?(y=0,w=c,g=2*c,b=3*c):"RGB"===s?(y=0,w=c,g=2*c):"RBG"===s&&(y=0,g=c,w=2*c),n=r.createImageData(a,o);for(let t=0;t<o*a;d+=4,p+=4,h+=4,m+=4,t++)n.data[d]=(e.data[y++]-l[0])*f[0],n.data[p]=(e.data[w++]-l[1])*f[1],n.data[h]=(e.data[g++]-l[2])*f[2],n.data[m]=-1===b?255:(e.data[b++]-l[3])*f[3]}else throw Error("Can not access image data");return n}}),X=W(()=>{ee(),m=(e,t)=>{if(void 0===e)throw Error("Image buffer must be defined");if(void 0===t.height||void 0===t.width)throw Error("Image height and width must be defined");if("NHWC"===t.tensorLayout)throw Error("NHWC Tensor layout is not supported yet");let{height:r,width:n}=t,a=t.norm??{mean:255,bias:0},o,i;o="number"==typeof a.mean?[a.mean,a.mean,a.mean,a.mean]:[a.mean[0],a.mean[1],a.mean[2],a.mean[3]??255],i="number"==typeof a.bias?[a.bias,a.bias,a.bias,a.bias]:[a.bias[0],a.bias[1],a.bias[2],a.bias[3]??0];let s=void 0!==t.format?t.format:"RGBA",u=void 0!==t.tensorFormat&&void 0!==t.tensorFormat?t.tensorFormat:"RGB",f=r*n,l=new Float32Array("RGBA"===u?4*f:3*f),c=4,d=0,p=1,h=2,m=3,y=0,w=f,g=2*f,b=-1;"RGB"===s&&(c=3,d=0,p=1,h=2,m=-1),"RGBA"===u?b=3*f:"RBG"===u?(y=0,g=f,w=2*f):"BGR"===u&&(g=0,w=f,y=2*f);for(let t=0;t<f;t++,d+=c,h+=c,p+=c,m+=c)l[y++]=(e[d]+i[0])/o[0],l[w++]=(e[p]+i[1])/o[1],l[g++]=(e[h]+i[2])/o[2],-1!==b&&-1!==m&&(l[b++]=(e[m]+i[3])/o[3]);return"RGBA"===u?new x("float32",l,[1,4,r,n]):new x("float32",l,[1,3,r,n])},y=async(e,t)=>{let r="u">typeof HTMLImageElement&&e instanceof HTMLImageElement,n="u">typeof ImageData&&e instanceof ImageData,a="u">typeof ImageBitmap&&e instanceof ImageBitmap,o="string"==typeof e,i,s=t??{},u=()=>{if("u">typeof document)return document.createElement("canvas");if("u">typeof OffscreenCanvas)return new OffscreenCanvas(1,1);throw Error("Canvas is not supported")},f=e=>"u">typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||e instanceof OffscreenCanvas?e.getContext("2d"):null;if(r){let r=u();r.width=e.width,r.height=e.height;let n=f(r);if(null!=n){let r=e.height,a=e.width;if(void 0!==t&&void 0!==t.resizedHeight&&void 0!==t.resizedWidth&&(r=t.resizedHeight,a=t.resizedWidth),void 0!==t){if(s=t,void 0!==t.tensorFormat)throw Error("Image input config format must be RGBA for HTMLImageElement");s.tensorFormat="RGBA",s.height=r,s.width=a}else s.tensorFormat="RGBA",s.height=r,s.width=a;n.drawImage(e,0,0),i=n.getImageData(0,0,a,r).data}else throw Error("Can not access image data")}else if(n){let r,n;if(void 0!==t&&void 0!==t.resizedWidth&&void 0!==t.resizedHeight?(r=t.resizedHeight,n=t.resizedWidth):(r=e.height,n=e.width),void 0!==t&&(s=t),s.format="RGBA",s.height=r,s.width=n,void 0!==t){let t=u();t.width=n,t.height=r;let a=f(t);if(null!=a)a.putImageData(e,0,0),i=a.getImageData(0,0,n,r).data;else throw Error("Can not access image data")}else i=e.data}else if(a){if(void 0===t)throw Error("Please provide image config with format for Imagebitmap");let r=u();r.width=e.width,r.height=e.height;let n=f(r);if(null!=n){let t=e.height,r=e.width;return n.drawImage(e,0,0,r,t),i=n.getImageData(0,0,r,t).data,s.height=t,s.width=r,m(i,s)}throw Error("Can not access image data")}else{if(o)return new Promise((t,r)=>{let n=u(),a=f(n);if(!e||!a)return r();let o=new Image;o.crossOrigin="Anonymous",o.src=e,o.onload=()=>{n.width=o.width,n.height=o.height,a.drawImage(o,0,0,n.width,n.height);let e=a.getImageData(0,0,n.width,n.height);s.height=n.height,s.width=n.width,t(m(e.data,s))}});throw Error("Input data provided is not supported - aborted tensor creation")}if(void 0!==i)return m(i,s);throw Error("Input data provided is not supported - aborted tensor creation")},w=(e,t)=>{let{width:r,height:n,download:a,dispose:o}=t;return new x({location:"texture",type:"float32",texture:e,dims:[1,n,r,4],download:a,dispose:o})},g=(e,t)=>{let{dataType:r,dims:n,download:a,dispose:o}=t;return new x({location:"gpu-buffer",type:r??"float32",gpuBuffer:e,dims:n,download:a,dispose:o})},b=(e,t)=>{let{dataType:r,dims:n,download:a,dispose:o}=t;return new x({location:"ml-tensor",type:r??"float32",mlTensor:e,dims:n,download:a,dispose:o})},v=(e,t,r)=>new x({location:"cpu-pinned",type:e,data:t,dims:r??[t.length]})}),K=W(()=>{E=new Map([["float32",Float32Array],["uint8",Uint8Array],["int8",Int8Array],["uint16",Uint16Array],["int16",Int16Array],["int32",Int32Array],["bool",Uint8Array],["float64",Float64Array],["uint32",Uint32Array],["int4",Uint8Array],["uint4",Uint8Array]]),T=new Map([[Float32Array,"float32"],[Uint8Array,"uint8"],[Int8Array,"int8"],[Uint16Array,"uint16"],[Int16Array,"int16"],[Int32Array,"int32"],[Float64Array,"float64"],[Uint32Array,"uint32"]]),A=!1,O=()=>{if(!A){A=!0;let e="u">typeof BigInt64Array&&BigInt64Array.from,t="u">typeof BigUint64Array&&BigUint64Array.from,r=globalThis.Float16Array,n="u">typeof r&&r.from;e&&(E.set("int64",BigInt64Array),T.set(BigInt64Array,"int64")),t&&(E.set("uint64",BigUint64Array),T.set(BigUint64Array,"uint64")),n?(E.set("float16",r),T.set(r,"float16")):E.set("float16",Uint16Array)}}}),J=W(()=>{ee(),C=e=>{let t=1;for(let r=0;r<e.length;r++){let n=e[r];if("number"!=typeof n||!Number.isSafeInteger(n))throw TypeError(`dims[${r}] must be an integer, got: ${n}`);if(n<0)throw RangeError(`dims[${r}] must be a non-negative integer, got: ${n}`);t*=n}return t},R=(e,t)=>{switch(e.location){case"cpu":return new x(e.type,e.data,t);case"cpu-pinned":return new x({location:"cpu-pinned",data:e.data,type:e.type,dims:t});case"texture":return new x({location:"texture",texture:e.texture,type:e.type,dims:t});case"gpu-buffer":return new x({location:"gpu-buffer",gpuBuffer:e.gpuBuffer,type:e.type,dims:t});case"ml-tensor":return new x({location:"ml-tensor",mlTensor:e.mlTensor,type:e.type,dims:t});default:throw Error(`tensorReshape: tensor location ${e.location} is not supported`)}}}),ee=W(()=>{Q(),X(),K(),J(),x=class{constructor(e,t,r){let n,a;if(O(),"object"==typeof e&&"location"in e)switch(this.dataLocation=e.location,n=e.type,a=e.dims,e.location){case"cpu-pinned":{let t=E.get(n);if(!t)throw TypeError(`unsupported type "${n}" to create tensor from pinned buffer`);if(!(e.data instanceof t))throw TypeError(`buffer should be of type ${t.name}`);this.cpuData=e.data;break}case"texture":if("float32"!==n)throw TypeError(`unsupported type "${n}" to create tensor from texture`);this.gpuTextureData=e.texture,this.downloader=e.download,this.disposer=e.dispose;break;case"gpu-buffer":if("float32"!==n&&"float16"!==n&&"int32"!==n&&"int64"!==n&&"uint32"!==n&&"uint8"!==n&&"bool"!==n&&"uint4"!==n&&"int4"!==n)throw TypeError(`unsupported type "${n}" to create tensor from gpu buffer`);this.gpuBufferData=e.gpuBuffer,this.downloader=e.download,this.disposer=e.dispose;break;case"ml-tensor":if("float32"!==n&&"float16"!==n&&"int32"!==n&&"int64"!==n&&"uint32"!==n&&"uint64"!==n&&"int8"!==n&&"uint8"!==n&&"bool"!==n&&"uint4"!==n&&"int4"!==n)throw TypeError(`unsupported type "${n}" to create tensor from MLTensor`);this.mlTensorData=e.mlTensor,this.downloader=e.download,this.disposer=e.dispose;break;default:throw Error(`Tensor constructor: unsupported location '${this.dataLocation}'`)}else{let o,i;if("string"==typeof e)if(n=e,i=r,"string"===e){if(!Array.isArray(t))throw TypeError("A string tensor's data must be a string array.");o=t}else{let r=E.get(e);if(void 0===r)throw TypeError(`Unsupported tensor type: ${e}.`);if(Array.isArray(t)){if("float16"===e&&r===Uint16Array||"uint4"===e||"int4"===e)throw TypeError(`Creating a ${e} tensor from number array is not supported. Please use ${r.name} as data.`);o="uint64"===e||"int64"===e?r.from(t,BigInt):r.from(t)}else if(t instanceof r)o=t;else if(t instanceof Uint8ClampedArray)if("uint8"===e)o=Uint8Array.from(t);else throw TypeError("A Uint8ClampedArray tensor's data must be type of uint8");else if("float16"===e&&t instanceof Uint16Array&&r!==Uint16Array)o=new globalThis.Float16Array(t.buffer,t.byteOffset,t.length);else throw TypeError(`A ${n} tensor's data must be type of ${r}`)}else if(i=t,Array.isArray(e)){if(0===e.length)throw TypeError("Tensor type cannot be inferred from an empty array.");let t=typeof e[0];if("string"===t)n="string",o=e;else if("boolean"===t)n="bool",o=Uint8Array.from(e);else throw TypeError(`Invalid element type of data array: ${t}.`)}else if(e instanceof Uint8ClampedArray)n="uint8",o=Uint8Array.from(e);else{let t=T.get(e.constructor);if(void 0===t)throw TypeError(`Unsupported type for tensor data: ${e.constructor}.`);n=t,o=e}if(void 0===i)i=[o.length];else if(!Array.isArray(i))throw TypeError("A tensor's dims must be a number array");a=i,this.cpuData=o,this.dataLocation="cpu"}let o=C(a);if(this.cpuData&&o!==this.cpuData.length&&("uint4"!==n&&"int4"!==n||Math.ceil(o/2)!==this.cpuData.length))throw Error(`Tensor's size(${o}) does not match data length(${this.cpuData.length}).`);this.type=n,this.dims=a,this.size=o}static async fromImage(e,t){return y(e,t)}static fromTexture(e,t){return w(e,t)}static fromGpuBuffer(e,t){return g(e,t)}static fromMLTensor(e,t){return b(e,t)}static fromPinnedBuffer(e,t,r){return v(e,t,r)}toDataURL(e){return p(this,e)}toImageData(e){return h(this,e)}get data(){if(this.ensureValid(),!this.cpuData)throw Error("The data is not on CPU. Use `getData()` to download GPU data to CPU, or use `texture` or `gpuBuffer` property to access the GPU data directly.");return this.cpuData}get location(){return this.dataLocation}get texture(){if(this.ensureValid(),!this.gpuTextureData)throw Error("The data is not stored as a WebGL texture.");return this.gpuTextureData}get gpuBuffer(){if(this.ensureValid(),!this.gpuBufferData)throw Error("The data is not stored as a WebGPU buffer.");return this.gpuBufferData}get mlTensor(){if(this.ensureValid(),!this.mlTensorData)throw Error("The data is not stored as a WebNN MLTensor.");return this.mlTensorData}async getData(e){switch(this.ensureValid(),this.dataLocation){case"cpu":case"cpu-pinned":return this.data;case"texture":case"gpu-buffer":case"ml-tensor":if(!this.downloader)throw Error("The current tensor is not created with a specified data downloader.");if(this.isDownloading)throw Error("The current tensor is being downloaded.");try{this.isDownloading=!0;let t=await this.downloader();return this.downloader=void 0,this.dataLocation="cpu",this.cpuData=t,e&&this.disposer&&(this.disposer(),this.disposer=void 0),t}finally{this.isDownloading=!1}default:throw Error(`cannot get data from location: ${this.dataLocation}`)}}dispose(){if(this.isDownloading)throw Error("The current tensor is being downloaded.");this.disposer&&(this.disposer(),this.disposer=void 0),this.cpuData=void 0,this.gpuTextureData=void 0,this.gpuBufferData=void 0,this.mlTensorData=void 0,this.downloader=void 0,this.isDownloading=void 0,this.dataLocation="none"}ensureValid(){if("none"===this.dataLocation)throw Error("The tensor is disposed.")}reshape(e){if(this.ensureValid(),this.downloader||this.disposer)throw Error("Cannot reshape a tensor that owns GPU resource.");return R(this,e)}}}),et=W(()=>{ee(),U=x}),er=W(()=>{Y(),_=(e,t)=>{(typeof c.trace>"u"?c.wasm.trace:c.trace)&&console.timeStamp(`${e}::ORT::${t}`)},I=(e,t)=>{let r=Error().stack?.split(/\r\n|\r|\n/g)||[],n=!1;for(let a=0;a<r.length;a++){if(n&&!r[a].includes("TRACE_FUNC")){let n=`FUNC_${e}::${r[a].trim().split(" ")[1]}`;t&&(n+=`::${t}`),_("CPU",n);return}r[a].includes("TRACE_FUNC")&&(n=!0)}},S=e=>{(typeof c.trace>"u"?c.wasm.trace:c.trace)&&I("BEGIN",e)},L=e=>{(typeof c.trace>"u"?c.wasm.trace:c.trace)&&I("END",e)},M=e=>{(typeof c.trace>"u"?c.wasm.trace:c.trace)&&console.time(`ORT::${e}`)},$=e=>{(typeof c.trace>"u"?c.wasm.trace:c.trace)&&console.timeEnd(`ORT::${e}`)}}),en=W(()=>{H(),et(),er(),P=class e{constructor(e){this.handler=e}async run(e,t,r){S(),M("InferenceSession.run");let n={},a={};if("object"!=typeof e||null===e||e instanceof U||Array.isArray(e))throw TypeError("'feeds' must be an object that use input names as keys and OnnxValue as corresponding values.");let o=!0;if("object"==typeof t){if(null===t)throw TypeError("Unexpected argument[1]: cannot be null.");if(t instanceof U)throw TypeError("'fetches' cannot be a Tensor");if(Array.isArray(t)){if(0===t.length)throw TypeError("'fetches' cannot be an empty array.");for(let e of(o=!1,t)){if("string"!=typeof e)throw TypeError("'fetches' must be a string array or an object.");if(-1===this.outputNames.indexOf(e))throw RangeError(`'fetches' contains invalid output name: ${e}.`);n[e]=null}if("object"==typeof r&&null!==r)a=r;else if("u">typeof r)throw TypeError("'options' must be an object.")}else{let e=!1,i=Object.getOwnPropertyNames(t);for(let r of this.outputNames)if(-1!==i.indexOf(r)){let a=t[r];(null===a||a instanceof U)&&(e=!0,o=!1,n[r]=a)}if(e){if("object"==typeof r&&null!==r)a=r;else if("u">typeof r)throw TypeError("'options' must be an object.")}else a=t}}else if("u">typeof t)throw TypeError("Unexpected argument[1]: must be 'fetches' or 'options'.");for(let t of this.inputNames)if(typeof e[t]>"u")throw Error(`input '${t}' is missing in 'feeds'.`);if(o)for(let e of this.outputNames)n[e]=null;let i=await this.handler.run(e,n,a),s={};for(let e in i)if(Object.hasOwnProperty.call(i,e)){let t=i[e];t instanceof U?s[e]=t:s[e]=new U(t.type,t.data,t.dims)}return $("InferenceSession.run"),L(),s}async release(){return this.handler.dispose()}static async create(t,r,n,a){S(),M("InferenceSession.create");let o,i={};if("string"==typeof t){if(o=t,"object"==typeof r&&null!==r)i=r;else if("u">typeof r)throw TypeError("'options' must be an object.")}else if(t instanceof Uint8Array){if(o=t,"object"==typeof r&&null!==r)i=r;else if("u">typeof r)throw TypeError("'options' must be an object.")}else if(t instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer){let e=0,s=t.byteLength;if("object"==typeof r&&null!==r)i=r;else if("number"==typeof r){if(!Number.isSafeInteger(e=r))throw RangeError("'byteOffset' must be an integer.");if(e<0||e>=t.byteLength)throw RangeError(`'byteOffset' is out of range [0, ${t.byteLength}).`);if(s=t.byteLength-e,"number"==typeof n){if(!Number.isSafeInteger(s=n))throw RangeError("'byteLength' must be an integer.");if(s<=0||e+s>t.byteLength)throw RangeError(`'byteLength' is out of range (0, ${t.byteLength-e}].`);if("object"==typeof a&&null!==a)i=a;else if("u">typeof a)throw TypeError("'options' must be an object.")}else if("u">typeof n)throw TypeError("'byteLength' must be a number.")}else if("u">typeof r)throw TypeError("'options' must be an object.");o=new Uint8Array(t,e,s)}else throw TypeError("Unexpected argument[0]: must be 'path' or 'buffer'.");let[s,f]=await u(i),l=await s.createInferenceSessionHandler(o,f);return $("InferenceSession.create"),L(),new e(l)}startProfiling(){this.handler.startProfiling()}endProfiling(){this.handler.endProfiling()}get inputNames(){return this.handler.inputNames}get outputNames(){return this.handler.outputNames}get inputMetadata(){return this.handler.inputMetadata}get outputMetadata(){return this.handler.outputMetadata}}}),ea=W(()=>{en(),k=P}),eo=W(()=>{}),ei=W(()=>{}),es=W(()=>{}),eu=W(()=>{}),ef={};j(ef,{InferenceSession:()=>k,TRACE:()=>_,TRACE_EVENT_BEGIN:()=>M,TRACE_EVENT_END:()=>$,TRACE_FUNC_BEGIN:()=>S,TRACE_FUNC_END:()=>L,Tensor:()=>U,env:()=>d,registerBackend:()=>i});var el=W(()=>{z(),Z(),ea(),et(),eo(),ei(),er(),es(),eu()}),ec=W(()=>{}),ed={};j(ed,{default:()=>eh});var ep,eh,em=W(()=>{tU(),tT(),tE(),(ep=globalThis.self?.name==="ort-wasm-proxy-worker")&&(self.onmessage=e=>{let{type:t,in:r}=e.data;try{switch(t){case"init-wasm":e$(r.wasm).then(()=>{eK(r).then(()=>{postMessage({type:t})},e=>{postMessage({type:t,err:e})})},e=>{postMessage({type:t,err:e})});break;case"init-ep":{let{epName:e,env:n}=r;eJ(n,e).then(()=>{postMessage({type:t})},e=>{postMessage({type:t,err:e})});break}case"copy-from":{let{buffer:e}=r,n=e2(e);postMessage({type:t,out:n});break}case"create":{let{model:e,options:n}=r;e3(e,n).then(e=>{postMessage({type:t,out:e})},e=>{postMessage({type:t,err:e})});break}case"release":e6(r),postMessage({type:t});break;case"run":{let{sessionId:e,inputIndices:n,inputs:a,outputIndices:o,options:i}=r;e8(e,n,a,o,Array(o.length).fill(null),i).then(e=>{e.some(e=>"cpu"!==e[3])?postMessage({type:t,err:"Proxy does not support non-cpu tensor location."}):postMessage({type:t,out:e},e9([...a,...e]))},e=>{postMessage({type:t,err:e})});break}case"end-profiling":e5(r),postMessage({type:t})}}catch(e){postMessage({type:t,err:e})}}),eh=ep?null:e=>new Worker(e??eE,{type:"module",name:"ort-wasm-proxy-worker"})}),ey={};async function ew(e={}){var t=!!globalThis.window,n=!!globalThis.WorkerGlobalScope,a=n&&self.name?.startsWith("em-pthread");e.mountExternalData=(t,r)=>{t.startsWith("./")&&(t=t.substring(2)),(e.Tb||(e.Tb=new Map)).set(t,r)},e.unmountExternalData=()=>{delete e.Tb,delete e.mc,delete e.lc,delete e.nc},globalThis.SharedArrayBuffer??new WebAssembly.Memory({initial:0,maximum:0,shared:!0}).buffer.constructor;var o,i,s=(e,t)=>{throw t},u="";if(t||n){try{u=new URL(".","file:///Users/samiol/race-exposure-lab/node_modules/.pnpm/onnxruntime-web@1.30.0/node_modules/onnxruntime-web/dist/ort.wasm.bundle.min.mjs").href}catch{}n&&(i=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),o=async e=>{if(v(e))return new Promise((t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r(n.status)},n.onerror=r,n.send(null)});var t=await fetch(e,{credentials:"same-origin"});if(t.ok)return t.arrayBuffer();throw Error(t.status+" : "+t.url)}}var f,l,c,d,p,h,m=console.log.bind(console),y=console.error.bind(console),w=m,g=y,b=!1,v=e=>e.startsWith("file://");function E(){en.buffer!=A.buffer&&M()}if(a){let t=function(r){try{var n,a,o=r.data,i=o.Rb;if("load"===i){let r=[];for(let n of(self.onmessage=e=>r.push(e),h=()=>{for(let e of(postMessage({Rb:"loaded"}),r))t(e);self.onmessage=t},o.ac))e[n]&&!e[n].proxy||(e[n]=(...e)=>{postMessage({Rb:"callHandler",$b:n,args:e})},"print"==n&&(w=e[n]),"printErr"==n&&(g=e[n]));en=o.fc,M(),l=o.hc,B(),rS()}else if("run"===i){n=o.Qb,a=(E(),x)[n+52>>>2>>>0],n=(E(),x)[n+56>>>2>>>0],tV(a,a-n),tH(a),tP(o.Qb,0,0,1,0,0),ee(),ez(o.Qb),T||=!0;try{ei(o.dc,o.Vb)}catch(e){if("unwind"!=e)throw e}}else"setimmediate"!==o.target&&("checkMailbox"===i?T&&eq():i&&(g(`worker: received unknown command ${i}`),g(o)))}catch(e){throw tk(),e}};var T=!1;self.onunhandledrejection=e=>{throw e.reason||e},self.onmessage=t}var A,O,C,R,x,U,_,I,S,L=!1;function M(){var t=en.buffer;e.HEAP8=A=new Int8Array(t),C=new Int16Array(t),e.HEAPU8=O=new Uint8Array(t),new Uint16Array(t),e.HEAP32=R=new Int32Array(t),e.HEAPU32=x=new Uint32Array(t),U=new Float32Array(t),_=new Float64Array(t),I=new BigInt64Array(t),new BigUint64Array(t)}function $(){L=!0,a?h():tJ.Va()}function P(e){throw g(e="Aborted("+e+")"),b=!0,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),p?.(e),e}function k(){return{a:{T:t2,f:ef,w:ec,e:ey,k:eg,h:eb,L:ev,b:eE,G:eT,ua:eO,j:eC,M:e_,La:eI,qa:eS,sa:eL,Ma:eM,Ja:e$,Ca:eP,Ia:ek,Z:eB,ra:eD,oa:eN,Ka:eF,pa:eG,Ra:eW,Fa:ej,ma:eY,va:eQ,ja:eX,U:eK,Ea:ez,Oa:eJ,za:e0,Aa:e6,Ba:e4,xa:e8,ya:e5,ka:te,Ta:tr,Qa:ta,W:ti,V:ts,Pa:tn,F:tu,Na:tf,na:tl,u:e7,H:tc,S:tw,la:tg,ba:ty,Ua:tb,Ga:tA,Ha:tO,ta:Y,I:tC,wa:tR,Y:tx,Da:tU,X:tI,$:r_,N:rO,aa:rU,O:rA,v:rd,d:t8,m:t6,n:t3,r:ri,ca:rv,E:rb,o:t7,P:rE,C:rC,J:rg,da:rw,ea:ry,z:rs,fa:rh,Q:rm,ga:rp,y:rl,D:rT,c:t4,q:t9,i:t5,_:rI,l:rt,p:rr,s:re,t:rn,x:ru,R:rc,A:rR,K:rf,B:rx,ha:ro,ia:ra,g:tS,a:en,Sa:z}}}async function B(){function t(t,r){var n,a,o;return n=tJ=t.exports,a=e=>()=>e()>>>0,o=e=>t=>e(t)>>>0,(n=Object.assign({},n)).ub=a(n.ub),n.wb=o(n.wb),n.Kb=o(n.Kb),n.Lb=a(n.Lb),n.Pb=o(n.Pb),tJ=n,X.push(tJ.xb),e._OrtInit=(t=tJ).Wa,e._OrtGetLastError=t.Xa,e._OrtCreateSessionOptions=t.Ya,e._OrtAppendExecutionProvider=t.Za,e._OrtAddFreeDimensionOverride=t._a,e._OrtAddSessionConfigEntry=t.$a,e._OrtReleaseSessionOptions=t.ab,e._OrtCreateSession=t.bb,e._OrtReleaseSession=t.cb,e._OrtGetInputOutputCount=t.db,e._OrtGetInputOutputMetadata=t.eb,e._OrtFree=t.fb,e._OrtCreateTensor=t.gb,e._OrtGetTensorData=t.hb,e._OrtReleaseTensor=t.ib,e._OrtCreateRunOptions=t.jb,e._OrtAddRunConfigEntry=t.kb,e._OrtReleaseRunOptions=t.lb,e._OrtCreateBinding=t.mb,e._OrtBindInput=t.nb,e._OrtBindOutput=t.ob,e._OrtClearBoundOutputs=t.pb,e._OrtReleaseBinding=t.qb,e._OrtRunWithBinding=t.rb,e._OrtRun=t.sb,e._OrtEndProfiling=t.tb,tL=t.ub,tM=e._free=t.vb,t$=e._malloc=t.wb,tP=t.zb,tk=t.Ab,tB=t.Bb,tD=t.Cb,tN=t.Db,tF=t.Eb,tG=t.Fb,tW=t.Gb,tj=t.Hb,tV=t.Ib,tH=t.Jb,tz=t.Kb,tq=t.Lb,tY=t.Mb,tZ=t.Nb,tQ=t.Ob,tX=t.Pb,tK=t.yb,l=r,tJ}var n,s=k();return e.instantiateWasm?new Promise(r=>{e.instantiateWasm(s,(e,n)=>{r(t(e,n))})}):a?t(new WebAssembly.Instance(l,k()),l):(S??=e.locateFile?e.locateFile?e.locateFile("ort-wasm-simd-threaded.wasm",u):u+"ort-wasm-simd-threaded.wasm":new r.U(r(3899)).href,t((n=await async function(e){if(!f&&!v(S))try{var t=fetch(S,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(t,e)}catch(e){g(`wasm streaming compile failed: ${e}`),g("falling back to ArrayBuffer instantiation")}return async function(e,t){try{var r=await async function(e){if(!f)try{var t=await o(e);return new Uint8Array(t)}catch{}if(e==S&&f)e=new Uint8Array(f);else{if(!i)throw"both async and sync fetching of the wasm failed";e=i(e)}return e}(e);return await WebAssembly.instantiate(r,t)}catch(e){g(`failed to asynchronously prepare wasm: ${e}`),P(e)}}(S,e)}(s)).instance,n.module))}class D{name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var N=e=>{e.terminate(),e.onmessage=()=>{}},F=[],G=0,W=null,j=e=>{0==Z.length&&(er(),et(Z[0]));var t=Z.pop();if(!t)return 6;Q.push(t),K[e.Qb]=t,t.Qb=e.Qb;var r={Rb:"run",dc:e.cc,Vb:e.Vb,Qb:e.Qb};return t.postMessage(r,e.Zb),0},V=0,H=(e,t,...r)=>{var n,a=16*r.length,o=tq(),i=tz(a),s=i>>>3;for(n of r)"bigint"==typeof n?((E(),I)[s++>>>0]=1n,(E(),I)[s++>>>0]=n):((E(),I)[s++>>>0]=0n,(E(),_)[s++>>>0]=n);return e=tB(e,0,a,i,t),tH(o),e};function z(e){if(a)return H(0,1,e);if(c=e,!(0<V)){for(var t of Q)N(t);for(t of Z)N(t);Z=[],Q=[],K={},b=!0}s(0,new D(e))}function q(e){if(a)return H(1,0,e);Y(e)}var Y=e=>{if(c=e,a)throw q(e),"unwind";z(e)},Z=[],Q=[],X=[],K={},J=e=>{var t=e.Qb;delete K[t],Z.push(e),Q.splice(Q.indexOf(e),1),e.Qb=0,tD(t)};function ee(){X.forEach(e=>e())}var et=t=>new Promise(r=>{t.onmessage=n=>{var a=n.data;if(n=a.Rb,a.Ub&&a.Ub!=tL()){var o=K[a.Ub];o?o.postMessage(a,a.Zb):g(`Internal error! Worker sent a message "${n}" to target pthread ${a.Ub}, but that thread no longer exists!`)}else"checkMailbox"===n?eq():"spawnThread"===n?j(a):"cleanupThread"===n?eV(()=>{J(K[a.ec])}):"loaded"===n?(t.loaded=!0,r(t)):"setimmediate"===a.target?t.postMessage(a):"uncaughtException"===n?t.onerror(a.error):"callHandler"===n?e[a.$b](...a.args):n&&g(`worker sent an unknown command ${n}`)},t.onerror=e=>{throw g(`worker sent an error! ${e.filename}:${e.lineno}: ${e.message}`),e};var n,a=[];for(n of[])e.propertyIsEnumerable(n)&&a.push(n);t.postMessage({Rb:"load",ac:a,fc:en,hc:l})});function er(){var e=new Worker((URL,new r.U(r(5853))),{type:"module",workerData:"em-pthread",name:"em-pthread"});Z.push(e)}var en,ea=[],eo=e=>{var t=ea[e];return t||(ea[e]=t=tK.get(e)),t},ei=(e,t)=>{V=0,e=eo(e)(t),0<V?c=e:tN(e)},es=[],eu=0;function ef(e){var t=new eh(e>>>=0);return 0==(E(),A)[t.Sb+12>>>0]&&(ed(t,!0),eu--),ep(t,!1),es.push(t),tX(e)}var el=0,ec=()=>{tW(0,0);var e=es.pop();tY(e.Wb),el=0};function ed(e,t){t=+!!t,(E(),A)[e.Sb+12>>>0]=t}function ep(e,t){t=+!!t,(E(),A)[e.Sb+13>>>0]=t}class eh{constructor(e){this.Wb=e,this.Sb=e-24}}var em=e=>{var t=el;if(!t)return tj(0),0;var r=new eh(t);(E(),x)[r.Sb+16>>>2>>>0]=t;var n=(E(),x)[r.Sb+4>>>2>>>0];if(!n)return tj(0),t;for(var a of e){if(0===a||a===n)break;if(tQ(a,n,r.Sb+16))return tj(a),t}return tj(n),t};function ey(){return em([])}function eg(e){return em([e>>>0])}function eb(e,t,r,n){return em([e>>>0,t>>>0,r>>>0,n>>>0])}var ev=()=>{var e=es.pop();e||P("no exception to throw");var t=e.Wb;throw 0==(E(),A)[e.Sb+13>>>0]&&(es.push(e),ep(e,!0),ed(e,!1),eu++),tZ(t),el=t};function eE(e,t,r){var n=new eh(e>>>=0);throw t>>>=0,r>>>=0,(E(),x)[n.Sb+16>>>2>>>0]=0,(E(),x)[n.Sb+4>>>2>>>0]=t,(E(),x)[n.Sb+8>>>2>>>0]=r,tZ(e),eu++,el=e}var eT=()=>eu;function eA(e,t,r,n){return a?H(2,1,e,t,r,n):eO(e,t,r,n)}function eO(e,t,r,n){if(e>>>=0,t>>>=0,r>>>=0,n>>>=0,!globalThis.SharedArrayBuffer)return 6;var o=[];return a&&0===o.length?eA(e,t,r,n):(e={cc:r,Qb:e,Vb:n,Zb:o},a?(e.Rb="spawnThread",postMessage(e,o),0):j(e))}function eC(e){throw el||=e>>>0}var eR=globalThis.TextDecoder&&new TextDecoder,ex=(e,t=0,r,n)=>{var a=t>>>=0;if(r=a+r,n)n=r;else{for(;e[a]&&!(a>=r);)++a;n=a}if(16<n-t&&e.buffer&&eR)return eR.decode(e.buffer instanceof ArrayBuffer?e.subarray(t,n):e.slice(t,n));for(a="";t<n;)if(128&(r=e[t++])){var o=63&e[t++];if((224&r)==192)a+=String.fromCharCode((31&r)<<6|o);else{var i=63&e[t++];65536>(r=(240&r)==224?(15&r)<<12|o<<6|i:(7&r)<<18|o<<12|i<<6|63&e[t++])?a+=String.fromCharCode(r):(r-=65536,a+=String.fromCharCode(55296|r>>10,56320|1023&r))}}else a+=String.fromCharCode(r);return a},eU=(e,t,r)=>(e>>>=0)?ex((E(),O),e,t,r):"";function e_(e,t,r){return a?H(3,1,e,t,r):0}function eI(e,t){if(a)return H(4,1,e,t)}function eS(e,t){if(a)return H(5,1,e,t)}function eL(e,t,r){if(a)return H(6,1,e,t,r)}function eM(e,t,r){return a?H(7,1,e,t,r):0}function e$(e,t){if(a)return H(8,1,e,t)}function eP(e,t,r){if(a)return H(9,1,e,t,r)}function ek(e,t,r,n){if(a)return H(10,1,e,t,r,n)}function eB(e,t,r,n){if(a)return H(11,1,e,t,r,n)}function eD(e,t,r,n){if(a)return H(12,1,e,t,r,n)}function eN(e){if(a)return H(13,1,e)}function eF(e,t){if(a)return H(14,1,e,t)}function eG(e,t,r){if(a)return H(15,1,e,t,r)}var eW=()=>P("");function ej(e){tP(e>>>0,!n,1,!t,131072,!1),ee()}var eV=e=>{if(!b)try{if(e(),!(0<V))try{a?tL()&&tN(c):Y(c)}catch(e){e instanceof D||"unwind"==e||s(0,e)}}catch(e){e instanceof D||"unwind"==e||s(0,e)}},eH=!Atomics.waitAsync||globalThis.navigator?.userAgent&&91>Number((navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)||[])[2]);function ez(e){e>>>=0,eH||(Atomics.waitAsync((E(),R),e>>>2,e).value.then(eq),e+=128,Atomics.store((E(),R),e>>>2,1))}var eq=()=>eV(()=>{var e=tL();e&&(ez(e),tG())});function eY(e,t){(e>>>=0)==t>>>0?setTimeout(eq):a?postMessage({Ub:e,Rb:"checkMailbox"}):(e=K[e])&&e.postMessage({Rb:"checkMailbox"})}var eZ=[];function eQ(e,t,r,n,a){for(t>>>=0,a>>>=0,eZ.length=0,r=a>>>3,n=a+n>>>3;r<n;){var o;o=(E(),I)[r++>>>0]?(E(),I)[r++>>>0]:(E(),_)[r++>>>0],eZ.push(o)}return(t?t1[t]:t0[e])(...eZ)}var eX=()=>{V=0};function eK(e){e>>>=0,a?postMessage({Rb:"cleanupThread",ec:e}):J(K[e])}function eJ(e){}function e0(e,t){e=-0x20000000000000>e||0x20000000000000<e?0/0:Number(e),t>>>=0,e=new Date(1e3*e),(E(),R)[t>>>2>>>0]=e.getUTCSeconds(),(E(),R)[t+4>>>2>>>0]=e.getUTCMinutes(),(E(),R)[t+8>>>2>>>0]=e.getUTCHours(),(E(),R)[t+12>>>2>>>0]=e.getUTCDate(),(E(),R)[t+16>>>2>>>0]=e.getUTCMonth(),(E(),R)[t+20>>>2>>>0]=e.getUTCFullYear()-1900,(E(),R)[t+24>>>2>>>0]=e.getUTCDay(),e=(e.getTime()-Date.UTC(e.getUTCFullYear(),0,1,0,0,0,0))/864e5|0,(E(),R)[t+28>>>2>>>0]=e}var e1=e=>e%4==0&&(e%100!=0||e%400==0),e2=[0,31,60,91,121,152,182,213,244,274,305,335],e3=[0,31,59,90,120,151,181,212,243,273,304,334];function e6(e,t){e=-0x20000000000000>e||0x20000000000000<e?0/0:Number(e),t>>>=0,e=new Date(1e3*e),(E(),R)[t>>>2>>>0]=e.getSeconds(),(E(),R)[t+4>>>2>>>0]=e.getMinutes(),(E(),R)[t+8>>>2>>>0]=e.getHours(),(E(),R)[t+12>>>2>>>0]=e.getDate(),(E(),R)[t+16>>>2>>>0]=e.getMonth(),(E(),R)[t+20>>>2>>>0]=e.getFullYear()-1900,(E(),R)[t+24>>>2>>>0]=e.getDay();var r=(e1(e.getFullYear())?e2:e3)[e.getMonth()]+e.getDate()-1|0;(E(),R)[t+28>>>2>>>0]=r,(E(),R)[t+36>>>2>>>0]=-60*e.getTimezoneOffset(),r=new Date(e.getFullYear(),6,1).getTimezoneOffset();var n=new Date(e.getFullYear(),0,1).getTimezoneOffset();e=0|(r!=n&&e.getTimezoneOffset()==Math.min(n,r)),(E(),R)[t+32>>>2>>>0]=e}function e4(e){e>>>=0;var t=new Date((E(),R)[e+20>>>2>>>0]+1900,(E(),R)[e+16>>>2>>>0],(E(),R)[e+12>>>2>>>0],(E(),R)[e+8>>>2>>>0],(E(),R)[e+4>>>2>>>0],(E(),R)[e>>>2>>>0],0),r=(E(),R)[e+32>>>2>>>0],n=t.getTimezoneOffset(),a=new Date(t.getFullYear(),6,1).getTimezoneOffset(),o=new Date(t.getFullYear(),0,1).getTimezoneOffset(),i=Math.min(o,a);return 0>r?(E(),R)[e+32>>>2>>>0]=+(a!=o&&i==n):0<r!=(i==n)&&(a=Math.max(o,a),t.setTime(t.getTime()+6e4*((0<r?i:a)-n))),(E(),R)[e+24>>>2>>>0]=t.getDay(),r=(e1(t.getFullYear())?e2:e3)[t.getMonth()]+t.getDate()-1|0,(E(),R)[e+28>>>2>>>0]=r,(E(),R)[e>>>2>>>0]=t.getSeconds(),(E(),R)[e+4>>>2>>>0]=t.getMinutes(),(E(),R)[e+8>>>2>>>0]=t.getHours(),(E(),R)[e+12>>>2>>>0]=t.getDate(),(E(),R)[e+16>>>2>>>0]=t.getMonth(),(E(),R)[e+20>>>2>>>0]=t.getYear(),BigInt(isNaN(e=t.getTime())?-1:e/1e3)}function e8(e,t,r,n,o,i,s){return a?H(16,1,e,t,r,n,o,i,s):-52}function e5(e,t,r,n,o,i){if(a)return H(17,1,e,t,r,n,o,i)}var e9={},e7=()=>performance.timeOrigin+performance.now();function te(e,t){if(a)return H(18,1,e,t);if(e9[e]&&(clearTimeout(e9[e].id),delete e9[e]),!t)return 0;var r=setTimeout(()=>{delete e9[e],eV(()=>tF(e,performance.timeOrigin+performance.now()))},t);return e9[e]={id:r,oc:t},0}var tt=(e,t,r)=>{var n=(E(),O);if(t>>>=0,0<r){var a=t;r=t+r-1;for(var o=0;o<e.length;++o){var i=e.codePointAt(o);if(127>=i){if(t>=r)break;n[t++>>>0]=i}else if(2047>=i){if(t+1>=r)break;n[t++>>>0]=192|i>>6,n[t++>>>0]=128|63&i}else if(65535>=i){if(t+2>=r)break;n[t++>>>0]=224|i>>12,n[t++>>>0]=128|i>>6&63,n[t++>>>0]=128|63&i}else{if(t+3>=r)break;n[t++>>>0]=240|i>>18,n[t++>>>0]=128|i>>12&63,n[t++>>>0]=128|i>>6&63,n[t++>>>0]=128|63&i,o++}}n[t>>>0]=0,e=t-a}else e=0;return e};function tr(e,t,r,n){e>>>=0,t>>>=0,r>>>=0,n>>>=0;var a=new Date().getFullYear(),o=new Date(a,0,1).getTimezoneOffset(),i=Math.max(o,a=new Date(a,6,1).getTimezoneOffset());(E(),x)[e>>>2>>>0]=60*i,(E(),R)[t>>>2>>>0]=+(o!=a),e=(t=e=>{var t=Math.abs(e);return`UTC${0<=e?"-":"+"}${String(Math.floor(t/60)).padStart(2,"0")}${String(t%60).padStart(2,"0")}`})(o),t=t(a),a<o?(tt(e,r,17),tt(t,n,17)):(tt(e,n,17),tt(t,r,17))}var tn=()=>Date.now();function ta(e,t,r){return(r>>>=0,0<=e&&3>=e)?(e=Math.round(1e6*(e=0===e?Date.now():performance.timeOrigin+performance.now())),(E(),I)[r>>>3>>>0]=BigInt(e),0):28}var to=[];function ti(e,t,r){e>>>=0,t>>>=0,r>>>=0,to.length=0;for(var n;n=(E(),O)[t++>>>0];){var a=105!=n;r+=(a&=112!=n)&&r%8?4:0,to.push(112==n?(E(),x)[r>>>2>>>0]:106==n?(E(),I)[r>>>3>>>0]:105==n?(E(),R)[r>>>2>>>0]:(E(),_)[r>>>3>>>0]),r+=a?8:4}return t1[e](...to)}var ts=()=>{};function tu(e,t){return g(eU(e>>>0,t>>>0))}var tf=()=>{throw V+=1,"unwind"};function tl(){return 0xffff0000}var tc=()=>navigator.hardwareConcurrency,td={},tp=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);127>=n?t++:2047>=n?t+=2:55296<=n&&57343>=n?(t+=4,++r):t+=3}return t},th=e=>{var t;return(t=/\bwasm-function\[\d+\]:(0x[0-9a-f]+)/.exec(e))?+t[1]:(t=/:(\d+):\d+(?:\)|$)/.exec(e))?0x80000000|t[1]:0},tm=e=>{for(var t of e)(e=th(t))&&(td[e]=t)};function ty(){var e=Error().stack.toString().split(`
2
+ `);return"Error"==e[0]&&e.shift(),tm(e),td.Xb=th(e[3]),td.bc=e,td.Xb}function tw(e){if(!(e=td[e>>>0]))return 0;if(t=/^\s+at .*\.wasm\.(.*) \(.*\)$/.exec(e))e=t[1];else if(t=/^\s+at (.*) \(.*\)$/.exec(e))e=t[1];else{if(!(t=/^(.+?)@/.exec(e)))return 0;e=t[1]}tM(tw.Yb??0),t=tp(e)+1;var t,r=t$(t);return r&&tt(e,r,t),tw.Yb=r,tw.Yb}function tg(e){e>>>=0;var t=(E(),O).length;if(e<=t||0xffff0000<e)return!1;for(var r=1;4>=r;r*=2){var n=t*(1+.2/r);n=Math.min(n,e+0x6000000);e:{n=(Math.min(0xffff0000,65536*Math.ceil(Math.max(e,n)/65536))-en.buffer.byteLength+65535)/65536|0;try{en.grow(n),M();var a=1;break e}catch{}a=void 0}if(a)return!0}return!1}function tb(e,t,r){if(e>>>=0,t>>>=0,td.Xb==e)var n=td.bc;else"Error"==(n=Error().stack.toString().split(`
3
+ `))[0]&&n.shift(),tm(n);for(var a=3;n[a]&&th(n[a])!=e;)++a;for(e=0;e<r&&n[e+a];++e)(E(),R)[t+4*e>>>2>>>0]=th(n[e+a]);return e}var tv,tE={},tT=()=>{if(!tv){var e,t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(globalThis.navigator?.language??"C").replace("-","_")+".UTF-8",_:"./this.program"};for(e in tE)void 0===tE[e]?delete t[e]:t[e]=tE[e];var r=[];for(e in t)r.push(`${e}=${t[e]}`);tv=r}return tv};function tA(e,t){if(a)return H(19,1,e,t);e>>>=0,t>>>=0;var r,n=0,o=0;for(r of tT()){var i=t+n;(E(),x)[e+o>>>2>>>0]=i,n+=tt(r,i,1/0)+1,o+=4}return 0}function tO(e,t){if(a)return H(20,1,e,t);e>>>=0,t>>>=0;var r=tT();for(var n of((E(),x)[e>>>2>>>0]=r.length,e=0,r))e+=tp(n)+1;return(E(),x)[t>>>2>>>0]=e,0}function tC(e){return a?H(21,1,e):52}function tR(e,t,r,n,o){return a?H(22,1,e,t,r,n,o):52}function tx(e,t,r,n){return a?H(23,1,e,t,r,n):52}function tU(e,t,r,n){return a?H(24,1,e,t,r,n):70}var t_=[null,[],[]];function tI(e,t,r,n){if(a)return H(25,1,e,t,r,n);t>>>=0,r>>>=0,n>>>=0;for(var o=0,i=0;i<r;i++){var s=(E(),x)[t>>>2>>>0],u=(E(),x)[t+4>>>2>>>0];t+=8;for(var f=0;f<u;f++){var l=(E(),O)[s+f>>>0],c=t_[e];0===l||10===l?((1===e?w:g)(ex(c)),c.length=0):c.push(l)}o+=u}return(E(),x)[n>>>2>>>0]=o,0}function tS(e){return e>>>0}a||function(){for(var t=e.numThreads-1;t--;)er();F.push(async()=>{var e=async function(){if(!a)return Promise.all(Z.map(et))}();G++,await e,0==--G&&W&&(e=W,W=null,e())})}(),a||(en=new WebAssembly.Memory({initial:256,maximum:65536,shared:!0}),M()),e.wasmBinary&&(f=e.wasmBinary),e.stackSave=()=>tq(),e.stackRestore=e=>tH(e),e.stackAlloc=e=>tz(e),e.setValue=function(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":(E(),A)[e>>>0]=t;break;case"i16":(E(),C)[e>>>1>>>0]=t;break;case"i32":(E(),R)[e>>>2>>>0]=t;break;case"i64":(E(),I)[e>>>3>>>0]=BigInt(t);break;case"float":(E(),U)[e>>>2>>>0]=t;break;case"double":(E(),_)[e>>>3>>>0]=t;break;case"*":(E(),x)[e>>>2>>>0]=t;break;default:P(`invalid type for setValue: ${r}`)}},e.getValue=function(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return(E(),A)[e>>>0];case"i16":return(E(),C)[e>>>1>>>0];case"i32":return(E(),R)[e>>>2>>>0];case"i64":return(E(),I)[e>>>3>>>0];case"float":return(E(),U)[e>>>2>>>0];case"double":return(E(),_)[e>>>3>>>0];case"*":return(E(),x)[e>>>2>>>0];default:P(`invalid type for getValue: ${t}`)}},e.UTF8ToString=eU,e.stringToUTF8=tt,e.lengthBytesUTF8=tp;var tL,tM,t$,tP,tk,tB,tD,tN,tF,tG,tW,tj,tV,tH,tz,tq,tY,tZ,tQ,tX,tK,tJ,t0=[z,q,eA,e_,eI,eS,eL,eM,e$,eP,ek,eB,eD,eN,eF,eG,e8,e5,te,tA,tO,tC,tR,tx,tU,tI],t1={1042604:(t,r,n,a,o)=>{if(void 0===e||!e.Tb)return 1;if((t=eU(Number(t>>>0))).startsWith("./")&&(t=t.substring(2)),!(t=e.Tb.get(t)))return 2;if(r=Number(r>>>0),n=Number(n>>>0),a=Number(a>>>0),r+n>t.byteLength)return 3;try{let i=t.subarray(r,r+n);switch(o){case 0:(E(),O).set(i,a>>>0);break;case 1:e.ic?e.ic(a,i):e.kc(a,i);break;default:return 4}return 0}catch{return 4}},1043428:()=>"u">typeof wasmOffsetConverter};function t2(){return"u">typeof wasmOffsetConverter}function t3(e,t,r,n){var a=tq();try{return eo(e)(t,r,n)}catch(e){if(tH(a),e!==e+0)throw e;tW(1,0)}}function t6(e,t,r){var n=tq();try{return eo(e)(t,r)}catch(e){if(tH(n),e!==e+0)throw e;tW(1,0)}}function t4(e){var t=tq();try{eo(e)()}catch(e){if(tH(t),e!==e+0)throw e;tW(1,0)}}function t8(e,t){var r=tq();try{return eo(e)(t)}catch(e){if(tH(r),e!==e+0)throw e;tW(1,0)}}function t5(e,t,r){var n=tq();try{eo(e)(t,r)}catch(e){if(tH(n),e!==e+0)throw e;tW(1,0)}}function t9(e,t){var r=tq();try{eo(e)(t)}catch(e){if(tH(r),e!==e+0)throw e;tW(1,0)}}function t7(e,t,r,n,a,o,i){var s=tq();try{return eo(e)(t,r,n,a,o,i)}catch(e){if(tH(s),e!==e+0)throw e;tW(1,0)}}function re(e,t,r,n,a,o){var i=tq();try{eo(e)(t,r,n,a,o)}catch(e){if(tH(i),e!==e+0)throw e;tW(1,0)}}function rt(e,t,r,n){var a=tq();try{eo(e)(t,r,n)}catch(e){if(tH(a),e!==e+0)throw e;tW(1,0)}}function rr(e,t,r,n,a){var o=tq();try{eo(e)(t,r,n,a)}catch(e){if(tH(o),e!==e+0)throw e;tW(1,0)}}function rn(e,t,r,n,a,o,i){var s=tq();try{eo(e)(t,r,n,a,o,i)}catch(e){if(tH(s),e!==e+0)throw e;tW(1,0)}}function ra(e,t,r,n,a,o,i){var s=tq();try{eo(e)(t,r,n,a,o,i)}catch(e){if(tH(s),e!==e+0)throw e;tW(1,0)}}function ro(e,t,r,n,a,o,i,s){var u=tq();try{eo(e)(t,r,n,a,o,i,s)}catch(e){if(tH(u),e!==e+0)throw e;tW(1,0)}}function ri(e,t,r,n,a){var o=tq();try{return eo(e)(t,r,n,a)}catch(e){if(tH(o),e!==e+0)throw e;tW(1,0)}}function rs(e,t,r){var n=tq();try{return eo(e)(t,r)}catch(e){if(tH(n),e!==e+0)throw e;tW(1,0)}}function ru(e,t,r,n,a,o,i,s){var u=tq();try{eo(e)(t,r,n,a,o,i,s)}catch(e){if(tH(u),e!==e+0)throw e;tW(1,0)}}function rf(e,t,r,n,a,o,i,s,u,f,l,c){var d=tq();try{eo(e)(t,r,n,a,o,i,s,u,f,l,c)}catch(e){if(tH(d),e!==e+0)throw e;tW(1,0)}}function rl(e,t,r){var n=tq();try{return eo(e)(t,r)}catch(e){if(tH(n),e!==e+0)throw e;return tW(1,0),0n}}function rc(e,t,r,n,a,o,i,s,u){var f=tq();try{eo(e)(t,r,n,a,o,i,s,u)}catch(e){if(tH(f),e!==e+0)throw e;tW(1,0)}}function rd(e){var t=tq();try{return eo(e)()}catch(e){if(tH(t),e!==e+0)throw e;tW(1,0)}}function rp(e,t){var r=tq();try{return eo(e)(t)}catch(e){if(tH(r),e!==e+0)throw e;return tW(1,0),0n}}function rh(e,t,r,n){var a=tq();try{return eo(e)(t,r,n)}catch(e){if(tH(a),e!==e+0)throw e;tW(1,0)}}function rm(e){var t=tq();try{return eo(e)()}catch(e){if(tH(t),e!==e+0)throw e;return tW(1,0),0n}}function ry(e,t,r,n){var a=tq();try{return eo(e)(t,r,n)}catch(e){if(tH(a),e!==e+0)throw e;tW(1,0)}}function rw(e,t,r,n,a){var o=tq();try{return eo(e)(t,r,n,a)}catch(e){if(tH(o),e!==e+0)throw e;tW(1,0)}}function rg(e,t,r,n,a,o){var i=tq();try{return eo(e)(t,r,n,a,o)}catch(e){if(tH(i),e!==e+0)throw e;tW(1,0)}}function rb(e,t,r,n,a,o){var i=tq();try{return eo(e)(t,r,n,a,o)}catch(e){if(tH(i),e!==e+0)throw e;tW(1,0)}}function rv(e,t,r,n,a,o){var i=tq();try{return eo(e)(t,r,n,a,o)}catch(e){if(tH(i),e!==e+0)throw e;tW(1,0)}}function rE(e,t,r,n,a,o,i,s){var u=tq();try{return eo(e)(t,r,n,a,o,i,s)}catch(e){if(tH(u),e!==e+0)throw e;tW(1,0)}}function rT(e,t,r,n,a){var o=tq();try{return eo(e)(t,r,n,a)}catch(e){if(tH(o),e!==e+0)throw e;return tW(1,0),0n}}function rA(e,t,r,n){var a=tq();try{return eo(e)(t,r,n)}catch(e){if(tH(a),e!==e+0)throw e;tW(1,0)}}function rO(e,t,r,n){var a=tq();try{return eo(e)(t,r,n)}catch(e){if(tH(a),e!==e+0)throw e;tW(1,0)}}function rC(e,t,r,n,a,o,i,s,u,f,l,c){var d=tq();try{return eo(e)(t,r,n,a,o,i,s,u,f,l,c)}catch(e){if(tH(d),e!==e+0)throw e;tW(1,0)}}function rR(e,t,r,n,a,o,i,s,u,f,l){var c=tq();try{eo(e)(t,r,n,a,o,i,s,u,f,l)}catch(e){if(tH(c),e!==e+0)throw e;tW(1,0)}}function rx(e,t,r,n,a,o,i,s,u,f,l,c,d,p,h,m){var y=tq();try{eo(e)(t,r,n,a,o,i,s,u,f,l,c,d,p,h,m)}catch(e){if(tH(y),e!==e+0)throw e;tW(1,0)}}function rU(e,t,r){var n=tq();try{return eo(e)(t,r)}catch(e){if(tH(n),e!==e+0)throw e;tW(1,0)}}function r_(e,t,r){var n=tq();try{return eo(e)(t,r)}catch(e){if(tH(n),e!==e+0)throw e;tW(1,0)}}function rI(e,t,r,n){var a=tq();try{eo(e)(t,r,n)}catch(e){if(tH(a),e!==e+0)throw e;tW(1,0)}}function rS(){if(0<G)W=rS;else if(a)d?.(e),$();else{for(;0<F.length;)F.shift()(e);0<G?W=rS:(e.calledRun=!0,b||($(),d?.(e)))}}return a||(tJ=await B(),rS()),e.PTR_SIZE=4,L?e:new Promise((e,t)=>{d=e,p=t})}j(ey,{default:()=>eg});var eg,eb,ev,eE,eT,eA,eO,eC,eR,ex,eU,e_,eI,eS,eL,eM,e$,eP,ek,eB,eD,eN,eF,eG,eW,ej,eV,eH,ez,eq,eY,eZ,eQ,eX,eK,eJ,e0,e1,e2,e3,e6,e4,e8,e5,e9,e7,te,tt,tr,tn,ta,to,ti,ts,tu,tf,tl,tc,td,tp,th,tm,ty,tw,tg,tb,tv=W(()=>{eg=ew,globalThis.self?.name?.startsWith("em-pthread")&&ew()}),tE=W(()=>{ec(),eb=typeof location>"u"?void 0:location.origin,eE=(ev=!0,URL,new URL(new r.U(r(5853)).href,eb).href),eT=()=>{if(eE&&!eE.startsWith("blob:"))return eE.substring(0,eE.lastIndexOf("/")+1)},eA=(e,t)=>{try{let r=t??eE;return(r?new URL(e,r):new URL(e)).origin===eb}catch{return!1}},eO=async e=>{let t=await (await fetch(e,{credentials:"same-origin"})).blob();return URL.createObjectURL(t)},eC=async e=>(await import(e)).default,eR=(em(),V(ed)).default,ex=async()=>{if(!eE)throw Error("Failed to load proxy worker: cannot determine the script source URL.");if(eA(eE))return[void 0,eR()];let e=await eO(eE);return[e,eR(e)]},eU=(tv(),V(ey)).default,e_=async(e,t,r,n)=>{let a=eU&&!(e||t);if(a)if(eE)a=eA(eE)||n&&!r;else if(n&&!r)a=!0;else throw Error("cannot determine the script source URL.");if(a)return[void 0,eU];{let n,a,o="ort-wasm-simd-threaded.mjs",i=e??((e,t)=>{let r=t??eE;try{return(r?new URL(e,r):new URL(e)).href}catch{return}})(o,t),s=r&&i&&!eA(i,t),u=s?await eO(i):i??(n=o,a=t,`${a??"./"}${n}`);return[s?u:void 0,await eC(u)]}}}),tT=W(()=>{tE(),eS=!1,eL=!1,eM=!1,e$=async e=>{if(eS)return Promise.resolve();if(eL)throw Error("multiple calls to 'initializeWebAssembly()' detected.");if(eM)throw Error("previous call to 'initializeWebAssembly()' failed.");eL=!0;let t=e.initTimeout,r=e.numThreads;if(!1!==e.simd){if("relaxed"===e.simd){if(!(()=>{try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,19,1,17,0,65,1,253,15,65,2,253,15,65,3,253,15,253,147,2,11]))}catch{return!1}})())throw Error("Relaxed WebAssembly SIMD is not supported in the current environment.")}else if(!(()=>{try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,30,1,28,0,65,0,253,15,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,253,186,1,26,11]))}catch{return!1}})())throw Error("WebAssembly SIMD is not supported in the current environment.")}let n=(()=>{if(typeof SharedArrayBuffer>"u")return!1;try{return"u">typeof MessageChannel&&new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]))}catch{return!1}})();r>1&&!n&&("u">typeof self&&!self.crossOriginIsolated&&console.warn("env.wasm.numThreads is set to "+r+", but this will not work unless you enable crossOriginIsolated mode. See https://web.dev/cross-origin-isolation-guide/ for more info."),console.warn("WebAssembly multi-threading is not supported in the current environment. Falling back to single-threading."),e.numThreads=r=1);let a=e.wasmPaths,o="string"==typeof a?a:void 0,i=a?.mjs,s=i?.href??i,u=a?.wasm,f=u?.href??u,l=e.wasmBinary,[c,d]=await e_(s,o,r>1,!!l||!!f),p=!1,h=[];if(t>0&&h.push(new Promise(e=>{setTimeout(()=>{p=!0,e()},t)})),h.push(new Promise((e,t)=>{let n={numThreads:r};if(l)n.wasmBinary=l,n.locateFile=e=>e;else if(f||o)n.locateFile=e=>f??o+e;else if(s&&0!==s.indexOf("blob:"))n.locateFile=e=>new URL(e,s).href;else if(c){let e=eT();e&&(n.locateFile=t=>e+t)}d(n).then(t=>{eL=!1,eS=!0,eI=t,e(),c&&URL.revokeObjectURL(c)},e=>{eL=!1,eM=!0,t(e)})})),await Promise.race(h),p)throw Error(`WebAssembly backend initializing failed due to timeout: ${t}ms`)},eP=()=>{if(eS&&eI)return eI;throw Error("WebAssembly is not initialized yet.")}}),tA=W(()=>{tT(),ek=(e,t)=>{let r=eP(),n=r.lengthBytesUTF8(e)+1,a=r._malloc(n);return r.stringToUTF8(e,a,n),t.push(a),a},eB=(e,t,r,n)=>{if("object"==typeof e&&null!==e){if(r.has(e))throw Error("Circular reference in options");r.add(e)}Object.entries(e).forEach(([e,a])=>{let o=t?t+e:e;if("object"==typeof a)eB(a,o+".",r,n);else if("string"==typeof a||"number"==typeof a)n(o,a.toString());else if("boolean"==typeof a)n(o,a?"1":"0");else throw Error(`Can't handle extra config type: ${typeof a}`)})},eD=e=>{let t=eP(),r=t.stackSave();try{let r=t.PTR_SIZE,n=t.stackAlloc(2*r);t._OrtGetLastError(n,n+r);let a=Number(t.getValue(n,4===r?"i32":"i64")),o=t.getValue(n+r,"*"),i=o?t.UTF8ToString(o):"";throw Error(`${e} ERROR_CODE: ${a}, ERROR_MESSAGE: ${i}`)}finally{t.stackRestore(r)}}}),tO=W(()=>{tT(),tA(),eN=e=>{let t=eP(),r=0,n=[],a=e||{};try{if(e?.logSeverityLevel===void 0)a.logSeverityLevel=2;else if("number"!=typeof e.logSeverityLevel||!Number.isInteger(e.logSeverityLevel)||e.logSeverityLevel<0||e.logSeverityLevel>4)throw Error(`log severity level is not valid: ${e.logSeverityLevel}`);if(e?.logVerbosityLevel===void 0)a.logVerbosityLevel=0;else if("number"!=typeof e.logVerbosityLevel||!Number.isInteger(e.logVerbosityLevel))throw Error(`log verbosity level is not valid: ${e.logVerbosityLevel}`);e?.terminate===void 0&&(a.terminate=!1);let o=0;return e?.tag!==void 0&&(o=ek(e.tag,n)),r=t._OrtCreateRunOptions(a.logSeverityLevel,a.logVerbosityLevel,!!a.terminate,o),0===r&&eD("Can't create run options."),e?.extra!==void 0&&eB(e.extra,"",new WeakSet,(e,a)=>{let o=ek(e,n),i=ek(a,n);0!==t._OrtAddRunConfigEntry(r,o,i)&&eD(`Can't set a run config entry: ${e} - ${a}.`)}),[r,n]}catch(e){throw 0!==r&&t._OrtReleaseRunOptions(r),n.forEach(e=>t._free(e)),e}}}),tC=W(()=>{tT(),tA(),eF=(e,t,r,n)=>{let a=ek(t,n),o=ek(r,n);0!==eP()._OrtAddSessionConfigEntry(e,a,o)&&eD(`Can't set a session config entry: ${t} - ${r}.`)},eG=async(e,t,r)=>{for(let n of t.executionProviders){let t="string"==typeof n?n:n.name,a=[];switch(t){case"webnn":if(t="WEBNN",eF(e,"session.disable_quant_qdq","1",r),eF(e,"session.disable_qdq_constant_folding","1",r),"string"!=typeof n){let t=n?.deviceType;t&&eF(e,"deviceType",t,r)}break;case"webgpu":if(t="JS","string"!=typeof n&&n?.preferredLayout){if("NCHW"!==n.preferredLayout&&"NHWC"!==n.preferredLayout)throw Error(`preferredLayout must be either 'NCHW' or 'NHWC': ${n.preferredLayout}`);eF(e,"preferredLayout",n.preferredLayout,r)}break;case"wasm":case"cpu":continue;default:throw Error(`not supported execution provider: ${t}`)}let o=ek(t,r),i=a.length,s=0,u=0;if(i>0){s=eP()._malloc(i*eP().PTR_SIZE),r.push(s),u=eP()._malloc(i*eP().PTR_SIZE),r.push(u);for(let e=0;e<i;e++)eP().setValue(s+e*eP().PTR_SIZE,a[e][0],"*"),eP().setValue(u+e*eP().PTR_SIZE,a[e][1],"*")}await eP()._OrtAppendExecutionProvider(e,o,s,u,i)!==0&&eD(`Can't append execution provider: ${t}.`)}},eW=async e=>{var t;let r,n=eP(),a=0,o=[],i=e||{};(t=i).extra||(t.extra={}),t.extra.session||(t.extra.session={}),(r=t.extra.session).use_ort_model_bytes_directly||(r.use_ort_model_bytes_directly="1"),t.executionProviders&&t.executionProviders.some(e=>("string"==typeof e?e:e.name)==="webgpu")&&(t.enableMemPattern=!1);try{let e=(e=>{switch(e){case"disabled":return 0;case"basic":return 1;case"extended":return 2;case"layout":return 3;case"all":return 99;default:throw Error(`unsupported graph optimization level: ${e}`)}})(i.graphOptimizationLevel??"all"),t=(e=>{switch(e){case"sequential":return 0;case"parallel":return 1;default:throw Error(`unsupported execution mode: ${e}`)}})(i.executionMode??"sequential"),r="string"==typeof i.logId?ek(i.logId,o):0,s=i.logSeverityLevel??2;if(!Number.isInteger(s)||s<0||s>4)throw Error(`log severity level is not valid: ${s}`);let u=i.logVerbosityLevel??0;if(!Number.isInteger(u)||u<0||u>4)throw Error(`log verbosity level is not valid: ${u}`);let f="string"==typeof i.optimizedModelFilePath?ek(i.optimizedModelFilePath,o):0;if(a=n._OrtCreateSessionOptions(e,!!i.enableCpuMemArena,!!i.enableMemPattern,t,!!i.enableProfiling,0,r,s,u,f),0===a&&eD("Can't create session options."),i.executionProviders&&await eG(a,i,o),void 0!==i.enableGraphCapture){if("boolean"!=typeof i.enableGraphCapture)throw Error(`enableGraphCapture must be a boolean value: ${i.enableGraphCapture}`);eF(a,"enableGraphCapture",i.enableGraphCapture.toString(),o)}if(i.freeDimensionOverrides)for(let[e,t]of Object.entries(i.freeDimensionOverrides)){if("string"!=typeof e)throw Error(`free dimension override name must be a string: ${e}`);if("number"!=typeof t||!Number.isInteger(t)||t<0)throw Error(`free dimension override value must be a non-negative integer: ${t}`);let r=ek(e,o);0!==n._OrtAddFreeDimensionOverride(a,r,t)&&eD(`Can't set a free dimension override: ${e} - ${t}.`)}return void 0!==i.extra&&eB(i.extra,"",new WeakSet,(e,t)=>{eF(a,e,t,o)}),[a,o]}catch(e){throw 0!==a&&0!==n._OrtReleaseSessionOptions(a)&&eD("Can't release session options."),o.forEach(e=>n._free(e)),e}}}),tR=W(()=>{ej=e=>{switch(e){case"int8":return 3;case"uint8":return 2;case"bool":return 9;case"int16":return 5;case"uint16":return 4;case"int32":return 6;case"uint32":return 12;case"float16":return 10;case"float32":return 1;case"float64":return 11;case"string":return 8;case"int64":return 7;case"uint64":return 13;case"int4":return 22;case"uint4":return 21;default:throw Error(`unsupported data type: ${e}`)}},eV=e=>{switch(e){case 3:return"int8";case 2:return"uint8";case 9:return"bool";case 5:return"int16";case 4:return"uint16";case 6:return"int32";case 12:return"uint32";case 10:return"float16";case 1:return"float32";case 11:return"float64";case 8:return"string";case 7:return"int64";case 13:return"uint64";case 22:return"int4";case 21:return"uint4";default:throw Error(`unsupported data type: ${e}`)}},eH=(e,t)=>{let r=[-1,4,1,1,2,2,4,8,-1,1,2,8,4,8,-1,-1,-1,-1,-1,-1,-1,.5,.5][e],n="number"==typeof t?t:t.reduce((e,t)=>e*t,1);return r>0?Math.ceil(n*r):void 0},ez=e=>{switch(e){case"float16":return"u">typeof Float16Array?Float16Array:Uint16Array;case"float32":return Float32Array;case"uint8":case"bool":return Uint8Array;case"int8":return Int8Array;case"uint16":return Uint16Array;case"int16":return Int16Array;case"int32":return Int32Array;case"float64":return Float64Array;case"uint32":return Uint32Array;case"int64":return BigInt64Array;case"uint64":return BigUint64Array;default:throw Error(`unsupported type: ${e}`)}},eq=e=>{switch(e){case"verbose":return 0;case"info":return 1;case"warning":return 2;case"error":return 3;case"fatal":return 4;default:throw Error(`unsupported logging level: ${e}`)}},eY=e=>"float32"===e||"float16"===e||"int32"===e||"int64"===e||"uint32"===e||"uint8"===e||"bool"===e||"uint4"===e||"int4"===e,eZ=e=>"float32"===e||"float16"===e||"int32"===e||"int64"===e||"uint32"===e||"uint64"===e||"int8"===e||"uint8"===e||"bool"===e||"uint4"===e||"int4"===e,eQ=e=>{switch(e){case"none":return 0;case"cpu":return 1;case"cpu-pinned":return 2;case"texture":return 3;case"gpu-buffer":return 4;case"ml-tensor":return 5;default:throw Error(`unsupported data location: ${e}`)}}}),tx=W(()=>{ec(),eX=async e=>{if("string"!=typeof e)return e instanceof Blob?new Uint8Array(await e.arrayBuffer()):e instanceof Uint8Array?e:new Uint8Array(e);{let t=await fetch(e);if(!t.ok)throw Error(`failed to load external data file: ${e}`);let r=t.headers.get("Content-Length"),n=r?parseInt(r,10):0;if(n<0x40000000)return new Uint8Array(await t.arrayBuffer());{if(!t.body)throw Error(`failed to load external data file: ${e}, no response body.`);let r=t.body.getReader(),a;try{a=new ArrayBuffer(n)}catch(e){if(e instanceof RangeError){let e=Math.ceil(n/65536);a=new WebAssembly.Memory({initial:e,maximum:e}).buffer}else throw e}let o=0;for(;;){let{done:e,value:t}=await r.read();if(e)break;let n=t.byteLength;new Uint8Array(a,o,n).set(t),o+=n}return new Uint8Array(a,0,n)}}}}),tU=W(()=>{el(),tO(),tC(),tR(),tT(),tA(),tx(),eK=async e=>{var t,r;t=e.wasm.numThreads,r=eq(e.logLevel),0!==eP()._OrtInit(t,r)&&eD("Can't initialize onnxruntime.")},eJ=async(e,t)=>{eP().asyncInit?.();let r=e.webgpu.adapter;if("webgpu"===t){if(typeof navigator>"u"||!navigator.gpu)throw Error("WebGPU is not supported in current environment");if(r){if("object"!=typeof r.limits||"object"!=typeof r.features||"function"!=typeof r.requestDevice)throw Error("Invalid GPU adapter set in `env.webgpu.adapter`. It must be a GPUAdapter object.")}else{let t=e.webgpu.powerPreference;if(void 0!==t&&"low-power"!==t&&"high-performance"!==t)throw Error(`Invalid powerPreference setting: "${t}"`);let n=e.webgpu.forceFallbackAdapter;if(void 0!==n&&"boolean"!=typeof n)throw Error(`Invalid forceFallbackAdapter setting: "${n}"`);if(!(r=await navigator.gpu.requestAdapter({powerPreference:t,forceFallbackAdapter:n})))throw Error('Failed to get GPU adapter. You may need to enable flag "--enable-unsafe-webgpu" if you are using Chrome.')}}if("webnn"===t&&(typeof navigator>"u"||!navigator.ml))throw Error("WebNN is not supported in current environment")},e0=new Map,e1=(e,t)=>{let r=eP(),n=r.stackSave(),a=0;try{let n=r.PTR_SIZE,o=r.stackAlloc(2*n);0!==r._OrtGetInputOutputMetadata(e,t,o,o+n)&&eD("Can't get session input/output metadata.");let i=Number(r.getValue(o,"*"));a=Number(r.getValue(o+n,"*"));let s=r.HEAP32[a/4];if(0===s)return[i,0];let u=r.HEAPU32[a/4+1],f=[];for(let e=0;e<u;e++){let t=Number(r.getValue(a+8+e*n,"*"));f.push(0!==t?r.UTF8ToString(t):Number(r.getValue(a+8+(e+u)*n,"*")))}return[i,s,f]}finally{r.stackRestore(n),0!==a&&r._OrtFree(a)}},e2=e=>{let t=eP(),r=t._malloc(e.byteLength);if(0===r)throw Error(`Can't create a session. failed to allocate a buffer of size ${e.byteLength}.`);return t.HEAPU8.set(e,r),[r,e.byteLength]},e3=async(e,t)=>{let r,n,a=eP();Array.isArray(e)?[r,n]=e:e.buffer===a.HEAPU8.buffer?[r,n]=[e.byteOffset,e.byteLength]:[r,n]=e2(e);let o=0,i=0,s=[],u=[],f=[];try{if([i,s]=await eW(t),t?.externalData&&a.mountExternalData){let e=[];for(let r of t.externalData){let t="string"==typeof r?r:r.path,n="string"==typeof r?r:r.data;e.push(eX(n).then(e=>{a.mountExternalData(t,e)}))}await Promise.all(e)}for(let e of t?.executionProviders??[])if(("string"==typeof e?e:e.name)==="webnn"){if(a.shouldTransferToMLTensor=!1,"string"!=typeof e){let t=e?.context,r=e?.gpuDevice,n=e?.deviceType,o=e?.powerPreference;t?a.currentContext=t:r?a.currentContext=await a.webnnCreateMLContext(r):a.currentContext=await a.webnnCreateMLContext({deviceType:n,powerPreference:o})}else a.currentContext=await a.webnnCreateMLContext();break}o=await a._OrtCreateSession(r,n,i),a.webgpuOnCreateSession?.(o),0===o&&eD("Can't create a session."),a.jsepOnCreateSession?.(),a.currentContext&&(a.webnnRegisterMLContext(o,a.currentContext),a.currentContext=void 0,a.shouldTransferToMLTensor=!0);let[e,l]=(e=>{let t=eP(),r=t.stackSave();try{let r=t.PTR_SIZE,n=t.stackAlloc(2*r);0!==t._OrtGetInputOutputCount(e,n,n+r)&&eD("Can't get session input/output count.");let a=4===r?"i32":"i64";return[Number(t.getValue(n,a)),Number(t.getValue(n+r,a))]}finally{t.stackRestore(r)}})(o),c=!!t?.enableGraphCapture,d=[],p=[],h=[],m=[];for(let t=0;t<e;t++){let[e,r,n]=e1(o,t);0===e&&eD("Can't get an input name."),u.push(e);let i=a.UTF8ToString(e);d.push(i),h.push(0===r?{name:i,isTensor:!1}:{name:i,isTensor:!0,type:eV(r),shape:n})}for(let t=0;t<l;t++){let[r,n,i]=e1(o,t+e);0===r&&eD("Can't get an output name."),f.push(r);let s=a.UTF8ToString(r);p.push(s),m.push(0===n?{name:s,isTensor:!1}:{name:s,isTensor:!0,type:eV(n),shape:i})}return e0.set(o,[o,u,f,null,c,!1]),[o,d,p,h,m]}catch(e){throw u.forEach(e=>a._OrtFree(e)),f.forEach(e=>a._OrtFree(e)),0!==o&&0!==a._OrtReleaseSession(o)&&eD("Can't release session."),e}finally{a._free(r),0!==i&&0!==a._OrtReleaseSessionOptions(i)&&eD("Can't release session options."),s.forEach(e=>a._free(e)),a.unmountExternalData?.()}},e6=e=>{let t=eP(),r=e0.get(e);if(!r)throw Error(`cannot release session. invalid session id: ${e}`);let[n,a,o,i,s]=r;i&&(s&&0!==t._OrtClearBoundOutputs(i.handle)&&eD("Can't clear bound outputs."),0!==t._OrtReleaseBinding(i.handle)&&eD("Can't release IO binding.")),t.jsepOnReleaseSession?.(e),t.webnnOnReleaseSession?.(e),t.webgpuOnReleaseSession?.(e),a.forEach(e=>t._OrtFree(e)),o.forEach(e=>t._OrtFree(e)),0!==t._OrtReleaseSession(n)&&eD("Can't release session."),e0.delete(e)},e4=async(e,t,r,n,a,o,i=!1)=>{if(!e)return void t.push(0);let s=eP(),u=s.PTR_SIZE,f=e[0],l=e[1],c=e[3],d=c,p,h;if("string"===f&&("gpu-buffer"===c||"ml-tensor"===c))throw Error("String tensor is not supported on GPU.");if(i&&"gpu-buffer"!==c)throw Error(`External buffer must be provided for input/output index ${o} when enableGraphCapture is true.`);if("gpu-buffer"===c){let t=e[2].gpuBuffer;h=eH(ej(f),l);{let e=s.jsepRegisterBuffer;if(!e)throw Error('Tensor location "gpu-buffer" is not supported without using WebGPU.');p=e(n,o,t,h)}}else if("ml-tensor"===c){let t=e[2].mlTensor;h=eH(ej(f),l);let r=s.webnnRegisterMLTensor;if(!r)throw Error('Tensor location "ml-tensor" is not supported without using WebNN.');p=r(n,t,ej(f),l)}else{let t=e[2];if(Array.isArray(t)){h=u*t.length,p=s._malloc(h),r.push(p);for(let e=0;e<t.length;e++){if("string"!=typeof t[e])throw TypeError(`tensor data at index ${e} is not a string`);s.setValue(p+e*u,ek(t[e],r),"*")}}else{let e=s.webnnIsGraphInput,o=s.webnnIsGraphOutput;if("string"!==f&&e&&o){let i=s.UTF8ToString(a);if(e(n,i)||o(n,i)){let e=ej(f);h=eH(e,l),d="ml-tensor";let r=s.webnnCreateTemporaryTensor,a=s.webnnUploadTensor;if(!r||!a)throw Error('Tensor location "ml-tensor" is not supported without using WebNN.');let o=await r(n,e,l);a(o,new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),p=o}else h=t.byteLength,p=s._malloc(h),r.push(p),s.HEAPU8.set(new Uint8Array(t.buffer,t.byteOffset,h),p)}else h=t.byteLength,p=s._malloc(h),r.push(p),s.HEAPU8.set(new Uint8Array(t.buffer,t.byteOffset,h),p)}}let m=s.stackSave(),y=s.stackAlloc(4*l.length);try{l.forEach((e,t)=>s.setValue(y+t*u,e,4===u?"i32":"i64"));let e=s._OrtCreateTensor(ej(f),p,h,y,l.length,eQ(d));0===e&&eD(`Can't create tensor for input/output. session=${n}, index=${o}.`),t.push(e)}finally{s.stackRestore(m)}},e8=async(e,t,r,n,a,o)=>{let i=eP(),s=i.PTR_SIZE,u=e0.get(e);if(!u)throw Error(`cannot run inference. invalid session id: ${e}`);let f=u[0],l=u[1],c=u[2],d=u[3],p=u[4],h=(u[5],t.length),m=n.length,y=0,w=[],g=[],b=[],v=[],E=[],T=i.stackSave(),A=i.stackAlloc(h*s),O=i.stackAlloc(h*s),C=i.stackAlloc(m*s),R=i.stackAlloc(m*s);try{let u;[y,w]=eN(o),M("wasm prepareInputOutputTensor");for(let n=0;n<h;n++)await e4(r[n],g,v,e,l[t[n]],t[n],p);for(let t=0;t<m;t++)await e4(a[t],b,v,e,c[n[t]],h+n[t],p);$("wasm prepareInputOutputTensor");for(let e=0;e<h;e++)i.setValue(A+e*s,g[e],"*"),i.setValue(O+e*s,l[t[e]],"*");for(let e=0;e<m;e++)i.setValue(C+e*s,b[e],"*"),i.setValue(R+e*s,c[n[e]],"*");i.jsepOnRunStart?.(f),i.webnnOnRunStart?.(f),u=await i._OrtRun(f,O,A,h,R,m,C,y),0!==u&&eD("failed to call OrtRun().");let T=[],x=[];M("wasm ProcessOutputTensor");for(let t=0;t<m;t++){let r=Number(i.getValue(C+t*s,"*"));if(r===b[t]||E.includes(b[t])){T.push(a[t]),r!==b[t]&&0!==i._OrtReleaseTensor(r)&&eD("Can't release tensor.");continue}let o=i.stackSave(),u=i.stackAlloc(4*s),f=!1,l,c=0;try{0!==i._OrtGetTensorData(r,u,u+s,u+2*s,u+3*s)&&eD(`Can't access output tensor data on index ${t}.`);let a=4===s?"i32":"i64",o=Number(i.getValue(u,a));c=i.getValue(u+s,"*");let p=i.getValue(u+2*s,"*"),h=Number(i.getValue(u+3*s,a)),m=[];for(let e=0;e<h;e++)m.push(Number(i.getValue(p+e*s,a)));0!==i._OrtFree(p)&&eD("Can't free memory for tensor dims.");let y=m.reduce((e,t)=>e*t,1);l=eV(o);let w=d?.outputPreferredLocations[n[t]];if("string"===l){if("gpu-buffer"===w||"ml-tensor"===w)throw Error("String tensor is not supported on GPU.");let e=[];for(let t=0;t<y;t++){let r=i.getValue(c+t*s,"*"),n=i.getValue(c+(t+1)*s,"*"),a=t===y-1?void 0:n-r;e.push(i.UTF8ToString(r,a))}T.push([l,m,e,"cpu"])}else if("gpu-buffer"===w&&y>0){let e=i.jsepGetBuffer;if(!e)throw Error('preferredLocation "gpu-buffer" is not supported without using WebGPU.');let t=e(c),n=eH(o,y);if(void 0===n||!eY(l))throw Error(`Unsupported data type: ${l}`);f=!0,T.push([l,m,{gpuBuffer:t,download:i.jsepCreateDownloader(t,n,l),dispose:()=>{0!==i._OrtReleaseTensor(r)&&eD("Can't release tensor.")}},"gpu-buffer"])}else if("ml-tensor"===w&&y>0){let t=i.webnnEnsureTensor,n=i.webnnIsGraphInputOutputTypeSupported;if(!t||!n)throw Error('preferredLocation "ml-tensor" is not supported without using WebNN.');if(void 0===eH(o,y)||!eZ(l))throw Error(`Unsupported data type: ${l}`);if(!n(e,l,!1))throw Error(`preferredLocation "ml-tensor" for ${l} output is not supported by current WebNN Context.`);let a=await t(e,c,o,m,!1);f=!0,T.push([l,m,{mlTensor:a,download:i.webnnCreateMLTensorDownloader(c,l),dispose:()=>{i.webnnReleaseTensorId(c),i._OrtReleaseTensor(r)}},"ml-tensor"])}else if("ml-tensor-cpu-output"===w&&y>0){let e=i.webnnCreateMLTensorDownloader(c,l)(),t=T.length;f=!0,x.push((async()=>{let n=[t,await e];return i.webnnReleaseTensorId(c),i._OrtReleaseTensor(r),n})()),T.push([l,m,[],"cpu"])}else{let e=new(ez(l))(y);new Uint8Array(e.buffer,e.byteOffset,e.byteLength).set(i.HEAPU8.subarray(c,c+e.byteLength)),T.push([l,m,e,"cpu"])}}finally{i.stackRestore(o),"string"===l&&c&&i._free(c),f||i._OrtReleaseTensor(r)}}for(let[t,r]of(d&&!p&&(0!==i._OrtClearBoundOutputs(d.handle)&&eD("Can't clear bound outputs."),e0.set(e,[f,l,c,d,p,!1])),await Promise.all(x)))T[t][2]=r;return $("wasm ProcessOutputTensor"),T}finally{i.webnnOnRunEnd?.(f),i.stackRestore(T),g.forEach(e=>i._OrtReleaseTensor(e)),b.forEach(e=>i._OrtReleaseTensor(e)),v.forEach(e=>i._free(e)),0!==y&&i._OrtReleaseRunOptions(y),w.forEach(e=>i._free(e))}},e5=e=>{let t=eP(),r=e0.get(e);if(!r)throw Error("invalid session id");let n=r[0],a=t._OrtEndProfiling(n);0===a&&eD("Can't get an profile file name."),t._OrtFree(a)},e9=e=>{let t=[];for(let r of e){let e=r[2];!Array.isArray(e)&&"buffer"in e&&t.push(e.buffer)}return t}}),t_=W(()=>{el(),tU(),tT(),tE(),e7=()=>!!d.wasm.proxy&&"u">typeof document,tt=!1,tr=!1,tn=!1,ti=new Map,ts=(e,t)=>{let r=ti.get(e);r?r.push(t):ti.set(e,[t])},tu=()=>{if(tt||!tr||tn||!te)throw Error("worker not ready")},tf=e=>{switch(e.data.type){case"init-wasm":tt=!1,e.data.err?(tn=!0,to[1](e.data.err)):(tr=!0,to[0]()),ta&&(URL.revokeObjectURL(ta),ta=void 0);break;case"init-ep":case"copy-from":case"create":case"release":case"run":case"end-profiling":{let t=ti.get(e.data.type);e.data.err?t.shift()[1](e.data.err):t.shift()[0](e.data.out)}}},tl=async()=>{if(!tr){if(tt)throw Error("multiple calls to 'initWasm()' detected.");if(tn)throw Error("previous call to 'initWasm()' failed.");if(tt=!0,e7())return new Promise((e,t)=>{te?.terminate(),ex().then(([n,a])=>{try{(te=a).onerror=e=>t(e),te.onmessage=tf,to=[e,t];let o={type:"init-wasm",in:d};!o.in.wasm.wasmPaths&&(n||ev)&&(o.in.wasm.wasmPaths={wasm:new r.U(r(3899)).href}),te.postMessage(o),ta=n}catch(e){t(e)}},t)});try{await e$(d.wasm),await eK(d),tr=!0}catch(e){throw tn=!0,e}finally{tt=!1}}},tc=async e=>{if(e7())return tu(),new Promise((t,r)=>{ts("init-ep",[t,r]);let n={type:"init-ep",in:{epName:e,env:d}};te.postMessage(n)});await eJ(d,e)},td=async e=>e7()?(tu(),new Promise((t,r)=>{ts("copy-from",[t,r]),te.postMessage({type:"copy-from",in:{buffer:e}},[e.buffer])})):e2(e),tp=async(e,t)=>{if(!e7())return e3(e,t);if(t?.preferredOutputLocation)throw Error('session option "preferredOutputLocation" is not supported for proxy.');return tu(),new Promise((r,n)=>{ts("create",[r,n]);let a={type:"create",in:{model:e,options:{...t}}},o=[];e instanceof Uint8Array&&o.push(e.buffer),te.postMessage(a,o)})},th=async e=>{if(e7())return tu(),new Promise((t,r)=>{ts("release",[t,r]),te.postMessage({type:"release",in:e})});e6(e)},tm=async(e,t,r,n,a,o)=>{if(!e7())return e8(e,t,r,n,a,o);if(r.some(e=>"cpu"!==e[3]))throw Error("input tensor on GPU is not supported for proxy.");if(a.some(e=>e))throw Error("pre-allocated output tensor is not supported for proxy.");return tu(),new Promise((a,i)=>{ts("run",[a,i]),te.postMessage({type:"run",in:{sessionId:e,inputIndices:t,inputs:r,outputIndices:n,options:o}},e9(r))})},ty=async e=>{if(e7())return tu(),new Promise((t,r)=>{ts("end-profiling",[t,r]),te.postMessage({type:"end-profiling",in:e})});e5(e)}}),tI=W(()=>{el(),t_(),tR(),ec(),tx(),tw=(e,t)=>{switch(e.location){case"cpu":return[e.type,e.dims,e.data,"cpu"];case"gpu-buffer":return[e.type,e.dims,{gpuBuffer:e.gpuBuffer},"gpu-buffer"];case"ml-tensor":return[e.type,e.dims,{mlTensor:e.mlTensor},"ml-tensor"];default:throw Error(`invalid data location: ${e.location} for ${t()}`)}},tg=e=>{switch(e[3]){case"cpu":return new U(e[0],e[2],e[1]);case"gpu-buffer":{let t=e[0];if(!eY(t))throw Error(`not supported data type: ${t} for deserializing GPU tensor`);let{gpuBuffer:r,download:n,dispose:a}=e[2];return U.fromGpuBuffer(r,{dataType:t,dims:e[1],download:n,dispose:a})}case"ml-tensor":{let t=e[0];if(!eZ(t))throw Error(`not supported data type: ${t} for deserializing MLTensor tensor`);let{mlTensor:r,download:n,dispose:a}=e[2];return U.fromMLTensor(r,{dataType:t,dims:e[1],download:n,dispose:a})}default:throw Error(`invalid data location: ${e[3]}`)}},tb=class{async fetchModelAndCopyToWasmMemory(e){return td(await eX(e))}async loadModel(e,t){let r;S(),r="string"==typeof e?await this.fetchModelAndCopyToWasmMemory(e):e,[this.sessionId,this.inputNames,this.outputNames,this.inputMetadata,this.outputMetadata]=await tp(r,t),L()}async dispose(){return th(this.sessionId)}async run(e,t,r){S();let n=[],a=[];Object.entries(e).forEach(e=>{let t=e[0],r=e[1],o=this.inputNames.indexOf(t);if(-1===o)throw Error(`invalid input '${t}'`);n.push(r),a.push(o)});let o=[],i=[];Object.entries(t).forEach(e=>{let t=e[0],r=e[1],n=this.outputNames.indexOf(t);if(-1===n)throw Error(`invalid output '${t}'`);o.push(r),i.push(n)});let s=n.map((e,t)=>tw(e,()=>`input "${this.inputNames[a[t]]}"`)),u=o.map((e,t)=>e?tw(e,()=>`output "${this.outputNames[i[t]]}"`):null),f=await tm(this.sessionId,a,s,i,u,r),l={};for(let e=0;e<f.length;e++)l[this.outputNames[i[e]]]=o[e]??tg(f[e]);return L(),l}startProfiling(){}endProfiling(){ty(this.sessionId)}}}),tS={};j(tS,{OnnxruntimeWebAssemblyBackend:()=>tM,initializeFlags:()=>tL,wasmBackend:()=>t$});var tL,tM,t$,tP=W(()=>{el(),t_(),tI(),tL=()=>{("number"!=typeof d.wasm.initTimeout||d.wasm.initTimeout<0)&&(d.wasm.initTimeout=0);let e=d.wasm.simd;if("boolean"!=typeof e&&void 0!==e&&"fixed"!==e&&"relaxed"!==e&&(console.warn(`Property "env.wasm.simd" is set to unknown value "${e}". Reset it to \`false\` and ignore SIMD feature checking.`),d.wasm.simd=!1),"boolean"!=typeof d.wasm.proxy&&(d.wasm.proxy=!1),"boolean"!=typeof d.wasm.trace&&(d.wasm.trace=!1),"number"!=typeof d.wasm.numThreads||!Number.isInteger(d.wasm.numThreads)||d.wasm.numThreads<=0)if("u">typeof self&&!self.crossOriginIsolated)d.wasm.numThreads=1;else{let e=typeof navigator>"u"?G("node:os").cpus().length:navigator.hardwareConcurrency;d.wasm.numThreads=Math.min(4,Math.ceil((e||1)/2))}},t$=new(tM=class{async init(e){tL(),await tl(),await tc(e)}async createInferenceSessionHandler(e,t){let r=new tb;return await r.loadModel(e,t),r}})});el(),el(),el();var tk=ef;{let e=(tP(),V(tS)).wasmBackend;i("cpu",e,10),i("wasm",e,10)}Object.defineProperty(d.versions,"web",{value:"1.30.0",enumerable:!0})},3899:(e,t,r)=>{e.exports=r.p+"static/media/ort-wasm-simd-threaded.276d9114.wasm"},5853:(e,t,r)=>{e.exports=r.p+"static/media/ort.wasm.bundle.min.fc58db5b.mjs"}}]);
_next/static/chunks/5870499b-2e103d20394dec0d.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/60183702.d0d3b92c17a6ee51.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/646-1bd1579a68abce61.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[646],{136:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},216:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("ArrowDownToLine",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]])},472:(e,t,r)=>{let i=r(1147),n=r(6904),l=r(5195),a=Reflect.get(i._(r(1121)),"default"),o=(0,n.prepareImageConfig)({deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1})},591:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return v}});let i=r(138),n=r(1147),l=r(6407),a=n._(r(8479)),o=i._(r(3838)),d=i._(r(6052)),s=r(5195),u=r(7725),c=r(6224),f=i._(r(1121)),p=r(8022);function y(e,t,r,i,n,l,a){let o=e?.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&n(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let i=!1,n=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>i,isPropagationStopped:()=>n,persist:()=>{},preventDefault:()=>{i=!0,t.preventDefault()},stopPropagation:()=>{n=!0,t.stopPropagation()}})}i?.current&&i.current(e)}}))}function h(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}let m=a.useLayoutEffect,g=(0,a.forwardRef)(({src:e,srcSet:t,sizes:r,height:i,width:n,decoding:o,className:d,style:s,fetchPriority:u,placeholder:c,loading:f,unoptimized:g,fill:k,onLoadRef:v,onLoadingCompleteRef:x,setBlurComplete:b,setShowAltText:w,sizesInput:A,onLoad:_,onError:j,...M},C)=>{let P=(0,a.useRef)(!1),S=(0,a.useRef)(null);m(()=>{let{current:e}=P,{current:t}=S;e||null===t||(j&&(t.src=t.src),t.complete&&y(t,c,v,x,b,g,A),P.current=!0)},[e,c,v,x,j,g,A]);let z=(0,p.useMergedRef)(C,S);return(0,l.jsx)("img",{...M,...h(u),loading:f,width:n,height:i,decoding:o,"data-nimg":k?"fill":"1",className:d,style:s,sizes:r,srcSet:t,src:e,ref:z,onLoad:e=>{y(e.currentTarget,c,v,x,b,g,A)},onError:e=>{w(!0),"empty"!==c&&b(!0),j&&j(e)}})});function k({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...h(t.fetchPriority)};return e&&o.default.preload?(o.default.preload(t.src,r),null):(0,l.jsx)(d.default,{children:(0,l.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let v=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(u.RouterContext),i=(0,c.useImageConfig)(),{onLoad:n,onLoadingComplete:o}=e,d=(0,a.useRef)(n);(0,a.useEffect)(()=>{d.current=n},[n]);let p=(0,a.useRef)(o);(0,a.useEffect)(()=>{p.current=o},[o]);let[y,h]=(0,a.useState)(!1),[m,v]=(0,a.useState)(!1),{props:x,meta:b}=(0,s.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:m});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g,{...x,unoptimized:b.unoptimized,placeholder:b.placeholder,fill:b.fill,onLoadRef:d,onLoadingCompleteRef:p,setBlurComplete:h,setShowAltText:v,sizesInput:e.sizes,ref:t}),b.preload?(0,l.jsx)(k,{isAppRouter:!r,imgAttributes:x}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},937:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},960:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},1121:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let i=r(4399),n=r(6713);function l({config:e,src:t,width:r,quality:a}){let o=(0,n.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//"))if(t.includes("/_next/static/immutable")&&!(0,n.getAssetToken)())o=void 0;else{let e=t.indexOf("?");if(-1!==e){let r=new URLSearchParams(t.slice(e+1)),i=r.get("dpl");if(i){o=i,r.delete("dpl");let n=r.toString();t=t.slice(0,e)+(n?"?"+n:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
2
+ Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`);let d=(0,i.findClosestQuality)(a,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${d}${t.startsWith("/")&&o?`&dpl=${o}`:""}`}l.__next_img_default=!0;let a=l},1223:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},1821:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},2553:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("Flag",[["path",{d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z",key:"i9b6wo"}],["line",{x1:"4",x2:"4",y1:"22",y2:"15",key:"1cm3nv"}]])},2596:(e,t)=>{function r({widthInt:e,heightInt:t,blurWidth:i,blurHeight:n,blurDataURL:l,objectFit:a}){let o=i?40*i:e,d=n?40*n:t,s=o&&d?`viewBox='0 0 ${o} ${d}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${s}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${s?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${l}'/%3E%3C/svg%3E`}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},3224:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("SkipBack",[["polygon",{points:"19 20 9 12 19 4 19 20",key:"o2sva"}],["line",{x1:"5",x2:"5",y1:"19",y2:"5",key:"1ocqjk"}]])},3361:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]])},3525:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},3533:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},4399:(e,t)=>{function r(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,t.qualities[0]):r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findClosestQuality",{enumerable:!0,get:function(){return r}})},4488:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]])},4581:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("Crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]])},5195:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return d}});let i=r(6713),n=r(2596),l=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:0/0:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):0/0}function d({src:e,sizes:t,unoptimized:r=!1,priority:s=!1,preload:u=!1,loading:c,className:f,quality:p,width:y,height:h,fill:m=!1,style:g,overrideSrc:k,onLoad:v,onLoadingComplete:x,placeholder:b="empty",blurDataURL:w,fetchPriority:A,decoding:_="async",layout:j,objectFit:M,objectPosition:C,lazyBoundary:P,lazyRoot:S,...z},O){var R;let E,I,{imgConf:$,showAltText:L,blurComplete:q,defaultLoader:D}=O;if(void 0===D)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let U=z.loader||D;delete z.loader,delete z.srcSet;let W="__next_img_default"in U;if(W){if("custom"===$.loader)throw Error(`Image with src "${e}" is missing "loader" prop.
3
+ Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{let e=U;U=t=>{let{config:r,...i}=t;return e(i)}}if(j){"fill"===j&&(m=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[j];e&&(g={...g,...e});let r={responsive:"100vw",fill:"100vw"}[j];r&&!t&&(t=r)}let V="",F=o(y),B=o(h);if((R=e)&&"object"==typeof R&&(a(R)||void 0!==R.src)){let t=a(e)?e.default:e;if(!t.src)throw Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`);if(!t.height||!t.width)throw Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`);if(E=t.blurWidth,I=t.blurHeight,w=w||t.blurDataURL,V=t.src,!m)if(F||B){if(F&&!B){let e=F/t.width;B=Math.round(t.height*e)}else if(!F&&B){let e=B/t.height;F=Math.round(t.width*e)}}else F=t.width,B=t.height}let G=!s&&!u&&("lazy"===c||void 0===c);(!(e="string"==typeof e?e:V)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,G=!1),$.unoptimized&&(r=!0),W&&!$.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let H=o(p),N=Object.assign(m?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:M,objectPosition:C}:{},L?{}:{color:"transparent"},g),T=q||"empty"===b?null:"blur"===b?`url("data:image/svg+xml;charset=utf-8,${(0,n.getImageBlurSvg)({widthInt:F,heightInt:B,blurWidth:E,blurHeight:I,blurDataURL:w||"",objectFit:N.objectFit})}")`:`url("${b}")`,J=l.includes(N.objectFit)?"fill"===N.objectFit?"100% 100%":"cover":N.objectFit,Q=T?{backgroundSize:J,backgroundPosition:N.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:T}:{},Y=function({config:e,src:t,unoptimized:r,width:n,quality:l,sizes:a,loader:o}){if(r){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,i.getDeploymentId)();if(t.includes("/_next/static/immutable")&&!(0,i.getAssetToken)())e=void 0;else if(e){let r=t.indexOf("?");if(-1!==r){let i=new URLSearchParams(t.slice(r+1));i.get("dpl")||(i.append("dpl",e),t=t.slice(0,r)+"?"+i.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:d,kind:s}=function({deviceSizes:e,allSizes:t},r,i){if(i){let r=/(^|\s)(1?\d?\d)vw/g,n=[];for(let e;e=r.exec(i);)n.push(parseInt(e[2]));if(n.length){let r=.01*Math.min(...n);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,n,a),u=d.length-1;return{sizes:a||"w"!==s?a:"100vw",srcSet:d.map((r,i)=>`${o({config:e,src:t,quality:l,width:r})} ${"w"===s?r:i+1}${s}`).join(", "),src:o({config:e,src:t,quality:l,width:d[u]})}}({config:$,src:e,unoptimized:r,width:F,quality:H,sizes:t,loader:U}),K=G?"lazy":c;return{props:{...z,loading:K,fetchPriority:A,width:F,height:B,decoding:_,className:f,style:{...N,...Q},sizes:Y.sizes,srcSet:Y.srcSet,src:k||Y.src},meta:{unoptimized:r,preload:u||s,placeholder:b,fill:m}}}},5288:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return l}});let i=r(138)._(r(8479)),n=r(6904),l=i.default.createContext(n.imageConfigDefault)},5478:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},5603:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("ImagePlus",[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]])},5847:(e,t,r)=>{r.d(t,{A:()=>o});var i=r(8479);let n=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,i.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:o="",children:d,iconNode:s,...u},c)=>(0,i.createElement)("svg",{ref:c,...l,width:t,height:t,stroke:e,strokeWidth:a?24*Number(r)/Number(t):r,className:n("lucide",o),...u},[...s.map(([e,t])=>(0,i.createElement)(e,t)),...Array.isArray(d)?d:[d]])),o=(e,t)=>{let r=(0,i.forwardRef)(({className:r,...l},o)=>(0,i.createElement)(a,{ref:o,iconNode:t,className:n(`lucide-${e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,r),...l}));return r.displayName=`${e}`,r}},5862:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]])},5886:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},5936:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},6052:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});var i={default:function(){return h},defaultHead:function(){return c}};for(var n in i)Object.defineProperty(t,n,{enumerable:!0,get:i[n]});let l=r(138),a=r(1147),o=r(6407),d=a._(r(8479)),s=l._(r(7373)),u=r(150);function c(){return[(0,o.jsx)("meta",{charSet:"utf-8"},"charset"),(0,o.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===d.default.Fragment?e.concat(d.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}let p=["name","httpEquiv","charSet","itemProp"];function y(e){let t,r,i,n;return e.reduce(f,[]).reverse().concat(c().reverse()).filter((t=new Set,r=new Set,i=new Set,n={},e=>{let l=!0,a=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){a=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?l=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?l=!1:r.add(e.type);break;case"meta":for(let t=0,r=p.length;t<r;t++){let r=p[t];if(e.props.hasOwnProperty(r))if("charSet"===r)i.has(r)?l=!1:i.add(r);else{let t=e.props[r],i=n[r]||new Set;("name"!==r||!a)&&i.has(t)?l=!1:(i.add(t),n[r]=i)}}}return l})).reverse().map((e,t)=>{let r=e.key||t;return d.default.cloneElement(e,{key:r})})}let h=function({children:e}){let t=(0,d.useContext)(u.HeadManagerContext);return(0,o.jsx)(s.default,{reduceComponentsToState:y,headManager:t,children:e})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6224:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useImageConfig",{enumerable:!0,get:function(){return o}});let i=r(8479),n=r(6904),l=r(5288),a={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function o(){let e=(0,i.useContext)(l.ImageConfigContext);return(0,n.prepareImageConfig)(a,e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6443:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("ScanLine",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 12h10",key:"b7w52i"}]])},6737:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]])},6904:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var r={VALID_LOADERS:function(){return n},imageConfigDefault:function(){return d},prepareImageConfig:function(){return o}};for(var i in r)Object.defineProperty(t,i,{enumerable:!0,get:r[i]});let n=["default","imgix","cloudinary","akamai","custom"],l={},a=new WeakMap;function o(e,t){let r=e??l,i=t??l,n=a.get(r);if(n){let e=n.get(i);if(e)return e}let o=e||t||d,s=[...o.deviceSizes].sort((e,t)=>e-t),u=[...o.imageSizes],c={deviceSizes:s,imageSizes:u,allSizes:[...s,...u].sort((e,t)=>e-t),qualities:void 0===o.qualities?void 0:[...o.qualities].sort((e,t)=>e-t),path:o.path,loader:o.loader,dangerouslyAllowSVG:o.dangerouslyAllowSVG,unoptimized:o.unoptimized,domains:o.domains,remotePatterns:o.remotePatterns,localPatterns:o.localPatterns,output:o.output};return n||(n=new WeakMap,a.set(r,n)),n.set(i,c),c}let d={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},7373:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let i=r(8479),n=i.useLayoutEffect,l=i.useEffect;function a(e){let{headManager:t,reduceComponentsToState:r}=e;function a(){if(t&&t.mountedInstances){let e=i.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return n(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),n(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),l(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},7725:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return i}});let i=(r(138)._(r(8479))).default.createContext(null)},7825:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},7972:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]])},8022:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return n}});let i=r(8479);function n(e,t){let r=(0,i.useRef)(null),n=(0,i.useRef)(null);return(0,i.useCallback)(i=>{if(null===i){let e=r.current;e&&(r.current=null,e());let t=n.current;t&&(n.current=null,t())}else e&&(r.current=l(e,i)),t&&(n.current=l(t,i))},[e,t])}function l(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8260:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]])},8531:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},9158:(e,t,r)=>{r.d(t,{A:()=>i.Image});var i=r(591);r(472)},9443:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]])},9730:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(5847).A)("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]])}}]);
_next/static/chunks/app/_global-error/page-ea79b7848455bd3d.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[167,819,851,896,988],{6733:()=>{}},_=>{_.O(0,[929,378,358],()=>_(_.s=6733)),_N_E=_.O()}]);
_next/static/chunks/app/_not-found/page-43906e5ab9d380d2.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[492],{3873:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return l(5183)}])},5183:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=l(6407),n=l(5539),o=function(){return(0,r.jsx)("html",{children:(0,r.jsx)("body",{children:(0,r.jsx)(n.HTTPAccessErrorFallback,{status:404,message:"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)},5539:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTTPAccessErrorFallback",{enumerable:!0,get:function(){return o}});let r=l(6407),n=l(7518);function o({status:e,message:t}){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:`${e}: ${t}`}),(0,r.jsx)("div",{style:n.styles.error,children:(0,r.jsxs)("div",{children:[(0,r.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,r.jsx)("h1",{className:"next-error-h1",style:n.styles.h1,children:e}),(0,r.jsx)("div",{style:n.styles.desc,children:(0,r.jsx)("h2",{style:n.styles.h2,children:t})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7518:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"styles",{enumerable:!0,get:function(){return l}});let l={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"==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)}},e=>{e.O(0,[929,378,358],()=>e(e.s=3873)),_N_E=e.O()}]);
_next/static/chunks/app/layout-95c6c6c3b6b73ef5.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{1194:()=>{},3737:()=>{},4600:()=>{},5426:()=>{},7721:()=>{},8117:()=>{},8898:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,1194,23)),Promise.resolve().then(n.t.bind(n,4600,23)),Promise.resolve().then(n.t.bind(n,5426,23)),Promise.resolve().then(n.t.bind(n,3737,23)),Promise.resolve().then(n.t.bind(n,7721,23)),Promise.resolve().then(n.t.bind(n,8117,23))}},e=>{e.O(0,[341,929,378,358],()=>e(e.s=8898)),_N_E=e.O()}]);
_next/static/chunks/app/page-f0819ff71b122272.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{7703:(e,t,s)=>{Promise.resolve().then(s.bind(s,9866))},9866:(e,t,s)=>{"use strict";s.d(t,{Workspace:()=>D});var a=s(6407),i=s(8479),r=s(9158),n=s(6443),l=s(2553),o=s(9730),c=s(5478),d=s(3361),h=s(7972),m=s(3525),u=s(5886),p=s(216),x=s(937),f=s(136),g=s(7825),v=s(4581),j=s(9443),b=s(3533),w=s(3224),y=s(4488),k=s(5936),N=s(960),S=s(8260),A=s(6737),M=s(5862),E=s(5603),T=s(8531),C=s(1821),R=s(1223);class L{constructor(){this.provider="WASM",this.nextId=1,this.pending=new Map,this.worker=new Worker(s.tu(new URL(s.p+s.u(133),s.b)),{type:void 0}),this.worker.onmessage=({data:e})=>{let t=this.pending.get(e.id);t&&(this.pending.delete(e.id),e.error?t.reject(Error(e.error)):t.resolve(e.result??e.ok))},this.ready=this.request("load").then(e=>{this.provider=e?.provider??"WASM"})}request(e,t={},s=[]){let a=this.nextId++,i=new Promise((e,t)=>this.pending.set(a,{resolve:e,reject:t}));return this.worker.postMessage({id:a,type:e,...t},s),i}async addReference(e,t){await this.ready;let s=t.data.buffer.slice(0);await this.request("add-reference",{reference:{id:e.id,name:e.name,width:t.width,height:t.height,pixels:s}},[s])}async analyze(e,t,s,a){await this.ready;let{videoWidth:i,videoHeight:r,duration:n}=e;if(!i||!r||!Number.isFinite(n))throw Error("The video could not be decoded.");if(n>30)throw Error("For this browser demo, choose a clip up to 30 seconds.");if(n<1)throw Error("Choose a clip at least one second long.");let l=n<=12?3:1,o=Math.ceil(n*l),c=document.createElement("canvas");c.width=i,c.height=r;let d=c.getContext("2d",{willReadFrequently:!0});if(!d)throw Error("Canvas is unavailable in this browser.");let h=[],m=performance.now(),u=-1;try{for(let t=0;t<o;t++){if(s.aborted)throw new DOMException("Analysis cancelled.","AbortError");let c=Math.min(n-.01,t/l);Math.abs(e.currentTime-c)>.001&&await new Promise((t,a)=>{let i=window.setTimeout(()=>l(Error("Video seek timed out.")),1e4),r=()=>l(),n=()=>l(new DOMException("Analysis cancelled.","AbortError")),l=l=>{window.clearTimeout(i),e.removeEventListener("seeked",r),s.removeEventListener("abort",n),l?a(l):t()};e.addEventListener("seeked",r,{once:!0}),s.addEventListener("abort",n,{once:!0}),e.currentTime=c}),d.drawImage(e,0,0,i,r);let m=d.getImageData(0,0,i,r).data.buffer,p=await this.request("analyze-frame",{time:c,width:i,height:r,pixels:m,resetTracks:u<0||c-u>1.25},[m]);h.push({time:c,...p}),u=c,a(t+1,o,p.logos.length?"Matching sponsor marks":"Finding and following cars")}}finally{e.pause()}return{width:i,height:r,duration:n,sampleHz:l,elapsedMs:Math.round(performance.now()-m),frames:h,exposures:function(e,t){let s=new Map;for(let t of e)for(let e of t.logos){let a=s.get(e.sponsorId)??[];a.push({time:t.time,trackId:e.trackId}),s.set(e.sponsorId,a)}let a=[];for(let[e,i]of s){let s=i[0].time,r=s,n=new Set([i[0].trackId]),l=1,o=()=>a.push({sponsorId:e,start:s,end:r,observations:l,carTrackIds:[...n]});for(let e of i.slice(1))e.time-r<=1.5/t?(r=e.time,n.add(e.trackId),l++):(o(),s=r=e.time,n=new Set([e.trackId]),l=1);o()}return a}(h,l),engine:`RF-DETR Nano / ${this.provider} / COCO car detections${t.length?" + ORB logo matching / RANSAC":""}`}}dispose(){for(let{reject:e}of this.pending.values())e(Error("Analysis worker closed."));this.pending.clear(),this.worker.terminate()}}function I({src:e,duration:t,currentTime:s,disabled:n,onSeek:l}){let[o,c]=(0,i.useState)([]),[d,h]=(0,i.useState)(!1),m=Math.min(5,Math.floor(s/Math.max(t,.01)*6));return(0,i.useEffect)(()=>{let t=new AbortController,s=document.createElement("video");s.muted=!0,s.playsInline=!0,s.preload="auto";let a=document.createElement("canvas");a.width=240,a.height=135;let i=a.getContext("2d");return(async()=>{try{let r=z(s,"loadeddata",t.signal);if(s.src=e,s.load(),await r,!i||!Number.isFinite(s.duration)||!s.videoWidth)throw Error("Video dimensions unavailable.");let n=[];for(let e=0;e<6;e++){let r=Math.min(s.duration-.01,s.duration*(e+.5)/6),l=z(s,"seeked",t.signal);s.currentTime=r,await l,i.drawImage(s,0,0,a.width,a.height),n.push({time:r,image:a.toDataURL("image/jpeg",.7)})}t.signal.aborted||c(n)}catch{t.signal.aborted||h(!0)}})(),()=>{t.abort(),s.removeAttribute("src"),s.load()}},[e]),(0,a.jsx)("div",{className:"filmstrip",role:"group","aria-label":"Video frame previews",children:o.length?o.map((e,t)=>(0,a.jsxs)("button",{className:`filmstrip-frame${t===m?" is-current":""}`,onClick:()=>l(e.time),disabled:n,"aria-label":`Seek to ${e.time.toFixed(2)} seconds`,children:[(0,a.jsx)(r.A,{src:e.image,alt:"",width:240,height:135,unoptimized:!0}),(0,a.jsxs)("span",{children:[e.time.toFixed(2),"s"]})]},t)):(0,a.jsx)("div",{className:"filmstrip-placeholder",children:d?"Frame previews unavailable \xb7 use the timeline to seek":"Preparing frame previews…"})})}function z(e,t,s){return new Promise((a,i)=>{let r=()=>{window.clearTimeout(c),e.removeEventListener(t,n),e.removeEventListener("error",l),s.removeEventListener("abort",o)},n=()=>{r(),a()},l=()=>{r(),i(Error("Video preview could not decode."))},o=()=>{r(),i(new DOMException("Cancelled","AbortError"))},c=window.setTimeout(l,1e4);e.addEventListener(t,n,{once:!0}),e.addEventListener("error",l,{once:!0}),s.addEventListener("abort",o,{once:!0}),s.aborted&&o()})}let $="/demo/baylands-race.webm",P="Baylands Raceway \xb7 practice laps";function D(){let e=(0,i.useRef)(null),t=(0,i.useRef)(null),s=(0,i.useRef)(null),z=(0,i.useRef)(null),D=(0,i.useRef)(null),_=(0,i.useRef)(null),H=(0,i.useRef)(null),B=(0,i.useRef)(null),Y=(0,i.useRef)(null),G=(0,i.useRef)(null),[K,J]=(0,i.useState)($),[X,Z]=(0,i.useState)(P),[Q,ee]=(0,i.useState)(10),[et,es]=(0,i.useState)(0),[ea,ei]=(0,i.useState)(!1),[er,en]=(0,i.useState)(!1),[el,eo]=(0,i.useState)(!0),[ec,ed]=(0,i.useState)(1),[eh,em]=(0,i.useState)(!1),[eu,ep]=(0,i.useState)({width:0,height:0}),[ex,ef]=(0,i.useState)(null),[eg,ev]=(0,i.useState)(0),[ej,eb]=(0,i.useState)(""),[ew,ey]=(0,i.useState)(null),[ek,eN]=(0,i.useState)(null),[eS,eA]=(0,i.useState)(null),[eM,eE]=(0,i.useState)(""),[eT,eC]=(0,i.useState)(!1),[eR,eL]=(0,i.useState)([]),[eI,ez]=(0,i.useState)(20),[e$,eP]=(0,i.useState)(!1),[eD,eO]=(0,i.useState)(null),[eF,eW]=(0,i.useState)(null),[eU,eq]=(0,i.useState)(null),eV=ek?.frames.reduce((e,t)=>e+t.logos.length,0)??0,e_=ek?.frames.reduce((e,t)=>e+t.cars.length,0)??0,eH=new Set(ek?.frames.flatMap(e=>e.cars.map(e=>e.trackId))??[]).size,eB=null!==eS,eY=eS&&eS.total>0?Math.round(eS.current/eS.total*100):0,eG=ek?.frames.reduce((e,t)=>!e||Math.abs(t.time-et)<Math.abs(e.time-et)?t:e,null);(0,i.useEffect)(()=>{if(!eB||null===ex)return;let e=window.setInterval(()=>ev(Math.floor((Date.now()-ex)/1e3)),1e3);return()=>window.clearInterval(e)},[eB,ex]),(0,i.useEffect)(()=>()=>{Y.current?.abort(),B.current?.dispose()},[]),(0,i.useEffect)(()=>()=>{eU&&URL.revokeObjectURL(eU)},[eU]),(0,i.useEffect)(()=>{if(!eh)return;let e=document.activeElement,t=document.body.style.overflowY;document.body.style.overflowY="hidden",s.current?.focus();let a=e=>{if("Escape"===e.key&&(e.preventDefault(),em(!1)),"Tab"!==e.key)return;let t=Array.from(s.current?.querySelectorAll("button:not(:disabled), select:not(:disabled), input:not(:disabled)")??[]),a=t[0],i=t[t.length-1];e.shiftKey&&(document.activeElement===a||document.activeElement===s.current)?(e.preventDefault(),i?.focus()):e.shiftKey||document.activeElement!==i||(e.preventDefault(),a?.focus())};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a),document.body.style.overflowY=t,e?.focus({preventScroll:!0})}},[eh]),(0,i.useEffect)(()=>{let t=e.current;if(!t)return;let s=()=>{en(t.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA&&t.videoWidth>0&&Number.isFinite(t.duration)),t.videoWidth&&ep({width:t.videoWidth,height:t.videoHeight}),Number.isFinite(t.duration)&&ee(t.duration)},a=requestAnimationFrame(s);return t.addEventListener("loadeddata",s),t.addEventListener("canplay",s),t.addEventListener("emptied",s),()=>{cancelAnimationFrame(a),t.removeEventListener("loadeddata",s),t.removeEventListener("canplay",s),t.removeEventListener("emptied",s)}},[K]),(0,i.useEffect)(()=>{let t=H.current,s=e.current,a=_.current,i=t?.getContext("2d");if(!t||!s||!a||!i)return;let r=getComputedStyle(document.documentElement),n={yellow:r.getPropertyValue("--color-yellow").trim(),red:r.getPropertyValue("--color-red").trim(),ink:r.getPropertyValue("--color-ink").trim(),outline:r.getPropertyValue("--color-overlay-outline").trim(),onDark:r.getPropertyValue("--color-on-dark").trim(),mono:r.getPropertyValue("--font-mono").trim()},l=0,o=0,c=()=>{let e=a.getBoundingClientRect(),r=Math.min(window.devicePixelRatio||1,2.5),d=Math.max(1,Math.round(e.width*r)),h=Math.max(1,Math.round(e.height*r));if((t.width!==d||t.height!==h)&&(t.width=d,t.height=h),i.setTransform(r,0,0,r,0,0),i.clearRect(0,0,e.width,e.height),s.videoWidth&&s.videoHeight){let t=Math.min(e.width/s.videoWidth,e.height/s.videoHeight),a=s.videoWidth*t,r=s.videoHeight*t,l=(e.width-a)/2,c=(e.height-r)/2,d=s.currentTime;!s.paused&&performance.now()-o>50&&(es(d),o=performance.now());let h=ek?.frames.reduce((e,t)=>!e||Math.abs(t.time-d)<Math.abs(e.time-d)?t:e,null)??null,m=!!h&&Math.abs(h.time-d)<=Math.min(.16,.5/(ek?.sampleHz??3)),u=(e,a)=>[l+e*s.videoWidth*t,c+a*s.videoHeight*t];if(ek&&h&&el){let e=[],t=new Map;for(let e of ek.frames)if(!(e.time<d-1.6)&&!(e.time>d+.02))for(let s of e.cars){let a=t.get(s.trackId)??[];a.push({x:s.x+s.width/2,y:s.y+s.height/2,time:e.time}),t.set(s.trackId,a)}for(let e of t.values())if(!(e.length<2))for(let t=1;t<e.length;t++){if(e[t].time-e[t-1].time>.75||Math.hypot(e[t].x-e[t-1].x,e[t].y-e[t-1].y)>.105)continue;let s=u(e[t-1].x,e[t-1].y),a=u(e[t].x,e[t].y),r=d-e[t].time;i.beginPath(),i.moveTo(s[0],s[1]),i.lineTo(a[0],a[1]),i.lineWidth=1.5,i.lineCap="round",i.strokeStyle=n.yellow,i.globalAlpha=Math.max(.12,.6-.35*r),i.stroke(),i.globalAlpha=1}for(let t of function(e,t){let{frames:s,sampleHz:a}=e,i=[...s].reverse().find(e=>e.time<=t),r=s.find(e=>e.time>=t);if(!i&&!r)return[];if(!i||!r||i===r){let e=i??r;return Math.abs(e.time-t)<=.52/a?e.cars.map(e=>({observation:e,interpolated:!1,stableTrackId:!0})):[]}let n=r.time-i.time;if(n>1.52/a)return[];let l=U((t-i.time)/n),o=new Map(r.cars.map(e=>[e.trackId,e])),c=[],d=new Set,h=new Set;for(let e of i.cars){let t=o.get(e.trackId);t&&(d.add(e.trackId),h.add(t.trackId),c.push(F(e,t,l,!0)))}let m=[];for(let e of i.cars)if(!d.has(e.trackId))for(let t of r.cars){if(h.has(t.trackId))continue;let s=Math.max(.025,(e.width+e.height+t.width+t.height)/4),a=Math.hypot(e.x+e.width/2-t.x-t.width/2,e.y+e.height/2-t.y-t.height/2),i=function(e,t){let s=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x))*Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return s/Math.max(1e-8,e.width*e.height+t.width*t.height-s)}(e,t);i<=.01&&a>Math.max(2.8*s,.035)||m.push({before:e,after:t,cost:1-i+a/s*.72})}for(let e of(m.sort((e,t)=>e.cost-t.cost),m))d.has(e.before.trackId)||h.has(e.after.trackId)||(d.add(e.before.trackId),h.add(e.after.trackId),c.push(F(e.before,e.after,l,!1)));let u=Math.min(.08,.24/a);if(t-i.time<=u)for(let e of i.cars)d.has(e.trackId)||c.push({observation:e,interpolated:!0,stableTrackId:!1});if(r.time-t<=u)for(let e of r.cars)h.has(e.trackId)||c.push({observation:e,interpolated:!0,stableTrackId:!1});return c}(ek,d)){let s=t.observation,a=t.interpolated?t.stableTrackId?`C${String(s.trackId).padStart(2,"0")} EST`:"CAR EST":`C${String(s.trackId).padStart(2,"0")} ${Math.round(100*s.detectorScore)}%`;O(i,s,u,n.yellow,a,t.interpolated,n,e)}if(m)for(let t of h.logos)O(i,t,u,n.red,`${ew?.name??"SPONSOR"} \xb7 ${t.inliers} pts`,!1,n,e)}!function(e,t,s,a){for(let i=0;i<Math.floor(t.length/2);i++){let r=t[2*i],n=t[2*i+1],l=s(r[0],r[1]),o=s(n[0],n[1]);e.save(),e.strokeStyle=0===i?a.yellow:a.red,e.lineWidth=2,e.setLineDash([8,5]),e.beginPath(),e.moveTo(l[0],l[1]),e.lineTo(o[0],o[1]),e.stroke(),e.setLineDash([]),e.beginPath(),e.arc(l[0],l[1],4,0,2*Math.PI),e.arc(o[0],o[1],4,0,2*Math.PI),e.fillStyle=0===i?a.yellow:a.red,e.fill(),e.font=`400 10px ${a.mono}`,e.fillText(0===i?"GATE A":"GATE B",l[0]+7,l[1]-7),e.restore()}if(t.length%2==1){let i=s(t.at(-1)[0],t.at(-1)[1]);e.beginPath(),e.arc(i[0],i[1],5,0,2*Math.PI),e.fillStyle=a.red,e.fill()}}(i,eR,u,n)}l=requestAnimationFrame(c)};return l=requestAnimationFrame(c),()=>cancelAnimationFrame(l)},[ek,ew,eR,el]);let eK=async e=>{let t=e.target.files?.[0];if(e.target.value="",t){if(!t.type.startsWith("image/"))return void eE("Choose a PNG, JPEG, or WebP logo image.");try{let e=await createImageBitmap(t);if(e.width<20||e.height<12){e.close(),eE("Choose a sharper logo image at least 20 \xd7 12 pixels.");return}let s=Math.min(1,1e3/Math.max(e.width,e.height)),a=Math.max(1,Math.round(e.width*s)),i=Math.max(1,Math.round(e.height*s)),r=document.createElement("canvas");r.width=a,r.height=i;let n=r.getContext("2d",{willReadFrequently:!0});if(!n)throw Error("Image processing is unavailable in this browser.");n.drawImage(e,0,0,a,i);let l=n.getImageData(0,0,a,i);e.close(),G.current=l;let o=crypto.randomUUID(),c=URL.createObjectURL(t);ew&&URL.revokeObjectURL(ew.previewUrl),ey({id:o,name:t.name.replace(/\.[^.]+$/,"").slice(0,32),previewUrl:c,width:a,height:i,fileName:t.name}),eN(null),eO(null),eE("")}catch(e){eE(e instanceof Error?e.message:"Could not read this logo image.")}}},eJ=async()=>{let t=e.current;if(!t||!er||eB)return;if(eE(""),eb(""),eN(null),eO(null),eW(null),eC(!1),eL([]),t.duration>30)return void eE("This browser demo samples clips up to 30 seconds. Trim the video and try again.");let s=t.currentTime,a=!t.paused;t.pause(),ei(!1);let i=new AbortController;Y.current=i,ef(Date.now()),ev(0);let r=t.duration<=12?3:1;eA({current:0,total:Math.ceil(t.duration*r),stage:"Loading local vision engine"});try{B.current||(B.current=new L);let e=B.current;ew&&G.current&&await e.addReference(ew,G.current);let r=await e.analyze(t,ew?[ew]:[],i.signal,(e,t,s)=>eA({current:e,total:t,stage:s}));if(eN(r),t.currentTime=Math.min(s,Math.max(0,t.duration-.01)),es(t.currentTime),a)try{await t.play()}catch{ei(!1)}}catch(e){e instanceof DOMException&&"AbortError"===e.name?eb("Run cancelled. Your clip is ready to analyze again."):eE(e instanceof Error?e.message:"Analysis could not complete. Try the sample clip or choose another video.")}finally{Y.current=null,eA(null)}},eX=()=>{eL([]),eO(null),eC(!0),eE(""),e.current?.pause(),ei(!1)},eZ=t=>{let s=e.current;s&&(s.currentTime=Math.max(0,Math.min(Q,t)),es(s.currentTime))},eQ=e=>{eW(e),eZ(e.start)},e0=async()=>{let t=e.current;if(t)if(t.paused)try{await t.play(),ei(!0)}catch{eE("This video could not play in the current browser.")}else t.pause(),ei(!1)},e1=()=>{eq(null),J($),Z(P),en(!1),eN(null),eO(null),eW(null),es(0),eE(""),eb(""),eL([]),eC(!1)};return(0,a.jsxs)("div",{className:"app-shell pitwall",children:[(0,a.jsxs)("aside",{inert:eh,className:"tool-rail","aria-label":"Workspace navigation",children:[(0,a.jsxs)("a",{className:"rail-brand",href:"#top","aria-label":"LapLens home",children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]}),(0,a.jsxs)("nav",{className:"tool-links",children:[(0,a.jsx)("a",{className:"tool-link active",href:"#analysis","aria-label":"Video analysis",title:"Video analysis",children:(0,a.jsx)(n.A,{size:20})}),(0,a.jsx)("a",{className:"tool-link",href:"#sponsors","aria-label":"Sponsor evidence",title:"Sponsor evidence",children:(0,a.jsx)(l.A,{size:19})}),(0,a.jsx)("a",{className:"tool-link",href:"#speed","aria-label":"Speed calibration",title:"Speed calibration",onClick:()=>{t.current&&(t.current.open=!0)},children:(0,a.jsx)(o.A,{size:20})})]}),(0,a.jsxs)("div",{className:"rail-bottom",children:[(0,a.jsxs)("details",{className:"workspace-help",children:[(0,a.jsx)("summary",{"aria-label":"About this demo",title:"About this demo",children:(0,a.jsx)(c.A,{size:20})}),(0,a.jsxs)("div",{className:"help-popover",children:[(0,a.jsx)("strong",{children:"Every finding has a frame."}),(0,a.jsx)("p",{children:"LapLens samples racing footage for cars and supplied sponsor references. Track IDs can change; estimated boxes are dashed. Speed requires measured gates and a fixed camera."}),(0,a.jsxs)("a",{href:"https://github.com/OsamaMoftah/laplens",target:"_blank",rel:"noreferrer",children:["View source ",(0,a.jsx)(d.A,{size:13})]})]})]}),(0,a.jsx)("span",{className:"rail-avatar","aria-label":"Local workspace",children:"LL"})]})]}),(0,a.jsxs)("div",{className:"workspace",id:"top",children:[(0,a.jsxs)("header",{inert:eh,className:"workspace-header",children:[(0,a.jsxs)("a",{href:"#top",className:"workspace-wordmark",children:["LAPLENS",(0,a.jsx)("span",{children:"MOTORSPORT ANALYSIS"})]}),(0,a.jsxs)("div",{className:"workspace-presence",children:[(0,a.jsx)(h.A,{size:13}),(0,a.jsx)("span",{children:"Local workspace"})]})]}),(0,a.jsxs)("main",{className:"review-content",id:"analysis",children:[(0,a.jsxs)("div",{inert:eh,className:"review-heading",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"workspace-path",children:["Workspace ",(0,a.jsx)(m.A,{size:12})," Session review"]}),(0,a.jsx)("h1",{children:"Exposure review"}),(0,a.jsx)("p",{className:"review-description",children:"Follow the cars. Inspect the evidence behind every match."})]}),(0,a.jsxs)("div",{className:"heading-actions",children:[(0,a.jsx)("input",{ref:z,className:"hidden-input",id:"video-file","aria-label":"Choose race video",type:"file",accept:"video/mp4,video/webm,video/quicktime,video/*",disabled:eB,onChange:e=>{let t=e.target.files?.[0];if(e.target.value="",!t)return;if(!t.type.startsWith("video/"))return void eE("Choose a video file such as MP4 or WebM.");if(t.size>262144e3)return void eE("For this local browser demo, choose a clip under 250 MB.");eU&&URL.revokeObjectURL(eU);let s=URL.createObjectURL(t);eq(s),J(s),Z(t.name),en(!1),es(0),ei(!1),eN(null),eO(null),eW(null),eE(""),eL([]),eC(!1),eb("")}}),(0,a.jsxs)("button",{className:"button",onClick:()=>z.current?.click(),disabled:eB,children:[(0,a.jsx)(u.A,{size:15})," Choose clip"]}),(0,a.jsxs)("button",{className:"button export-button",disabled:!ek||eB,onClick:()=>{if(!ek)return;let e=new Blob([JSON.stringify({product:"LapLens",source:{fileName:X,durationSeconds:ek.duration},method:{engine:ek.engine,sampleHz:ek.sampleHz,elapsedMs:ek.elapsedMs,note:"Browser-side sampled detections and logo-template matches. Exposure windows are estimated from observed samples."},carDetections:{observations:e_,uniqueTrackIds:eH},sponsorReference:ew?{name:ew.name,fileName:ew.fileName}:null,logoObservations:eV,exposureWindows:ek.exposures,frameObservations:ek.frames,speedEstimate:eD},null,2)],{type:"application/json"}),t=URL.createObjectURL(e),s=document.createElement("a");s.href=t,s.download="laplens-analysis.json",document.body.append(s),s.click(),s.remove(),window.setTimeout(()=>URL.revokeObjectURL(t),6e4)},title:ek?"Download the measured analysis as JSON":"Analyze a clip to enable export",children:[(0,a.jsx)(p.A,{size:15}),(0,a.jsx)("span",{children:"Export report"})]}),(0,a.jsx)("button",{className:`button primary${eB?" is-running":""}`,disabled:!er,onClick:eB?()=>Y.current?.abort():eJ,children:eB?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x.A,{size:16})," Cancel run"]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.A,{size:16})," Analyze clip"]})})]})]}),eM?(0,a.jsxs)("div",{className:"analysis-alert",role:"alert",children:[(0,a.jsx)(f.A,{size:19}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Analysis needs your attention"}),(0,a.jsx)("p",{children:eM})]}),(0,a.jsxs)("button",{className:"text-action",onClick:K===$?eJ:e1,disabled:eB||K===$&&!er,children:[K===$?"Try again":"Use sample clip",(0,a.jsx)(d.A,{size:14})]}),(0,a.jsx)("button",{className:"quiet-icon",onClick:()=>eE(""),"aria-label":"Dismiss error",children:(0,a.jsx)(x.A,{size:16})})]}):null,ej?(0,a.jsxs)("div",{className:"analysis-notice",role:"status",children:[(0,a.jsx)(g.A,{size:15}),ej]}):null,(0,a.jsxs)("div",{className:"review-grid",children:[(0,a.jsxs)("section",{className:"review-player-column","aria-label":"Video review",children:[(0,a.jsxs)("div",{ref:s,className:"video-panel","data-expanded":eh,role:eh?"dialog":"region","aria-modal":eh||void 0,tabIndex:0,"aria-label":"Video player. Space to play or pause; arrow keys to seek.",onKeyDown:e=>{e.target!==e.currentTarget||eB||(" "===e.key&&(e.preventDefault(),e0()),("ArrowLeft"===e.key||"ArrowRight"===e.key)&&(e.preventDefault(),eZ(et+("ArrowRight"===e.key?.5:-.5))))},children:[(0,a.jsxs)("div",{className:"video-head",children:[(0,a.jsxs)("div",{className:"video-title",children:[(0,a.jsx)("span",{className:"live-square"}),(0,a.jsx)("span",{title:X,children:X})]}),(0,a.jsxs)("span",{className:"video-meta",children:[eu.width?`${eu.width} \xd7 ${eu.height}`:"LOADING VIDEO",(0,a.jsx)("span",{className:"meta-divider",children:"/"}),Q.toFixed(1)," SEC"]})]}),(0,a.jsxs)("div",{ref:_,className:`stage${eT?" gate-mode":""}`,children:[(0,a.jsx)("video",{ref:e,src:K,playsInline:!0,preload:"auto",onLoadedMetadata:e=>{let t=e.currentTarget;ee(Number.isFinite(t.duration)?t.duration:0),ep({width:t.videoWidth,height:t.videoHeight}),t.playbackRate=ec},onLoadedData:()=>en(!0),onError:()=>{en(!1),eE("This video could not be decoded. Choose an MP4 or WebM with a browser-supported codec, or use the sample clip.")},onTimeUpdate:()=>{es(e.current?.currentTime??0)},onPlay:()=>ei(!0),onPause:()=>ei(!1),onEnded:()=>ei(!1)}),(0,a.jsx)("canvas",{ref:H,onClick:t=>{if(!eT||!_.current||!e.current)return;let s=_.current.getBoundingClientRect(),a=e.current,i=Math.min(s.width/a.videoWidth,s.height/a.videoHeight),r=a.videoWidth*i,n=a.videoHeight*i,l=(s.width-r)/2,o=(s.height-n)/2,c=[U((t.clientX-s.left-l)/r),U((t.clientY-s.top-o)/n)],d=eR.length>=4?[c]:[...eR,c];eL(d),4===d.length&&(eC(!1),ek&&e$&&eI>0&&eO(function(e,t,s){let a=new Map;for(let t of e.frames)for(let e of t.cars){let s=a.get(e.trackId)??[];s.push({time:t.time,car:e}),a.set(e.trackId,s)}let i=null;for(let[e,r]of a){r.sort((e,t)=>e.time-t.time);let a=null,n=null;for(let e=1;e<r.length;e++){let s=r[e-1],i=r[e];if(i.time-s.time>1.1)continue;let l=[s.car.x+s.car.width/2,s.car.y+s.car.height/2],o=[i.car.x+i.car.width/2,i.car.y+i.car.height/2];null===a?a=W(l,o,t[0],t[1],s.time,i.time):null===n&&null!==a&&(n=W(l,o,t[2],t[3],s.time,i.time))}if(null===a||null===n||n<=a)continue;let l=n-a;if(l<.1||l>20)continue;let o={trackId:e,firstTime:a,secondTime:n,distanceM:s,speedKmh:s/l*3.6};(!i||o.speedKmh<i.speedKmh)&&(i=o)}return i}(ek,d,eI)))},"aria-label":eT?"Click four points to draw two speed gates":"Synchronized car detection overlay"}),(0,a.jsxs)("div",{className:`frame-status${eB?" processing":""}`,children:[(0,a.jsx)("span",{className:"status-square"}),eB?"ANALYSIS IN PROGRESS":ek?el?"TRACKING OVERLAY":"CLEAN VIDEO":"UNANALYZED CLIP"]}),ek&&eG&&el?(0,a.jsxs)("div",{className:"frame-readout",children:[eG.cars.length," cars at ",V(eG.time),(0,a.jsx)("span",{children:"NEAREST SAMPLE"})]}):null,eT?(0,a.jsxs)("div",{className:"gate-instruction",children:[(0,a.jsx)(v.A,{size:15}),(0,a.jsx)("span",{children:eR.length<2?"Click two points for gate A":"Click two points for gate B"}),(0,a.jsx)("button",{onClick:()=>{eC(!1),eL([])},"aria-label":"Cancel gate calibration",children:(0,a.jsx)(x.A,{size:14})})]}):null]}),(0,a.jsxs)("div",{className:"transport",children:[(0,a.jsx)("button",{className:"play-button",disabled:eB||!er,onClick:e0,"aria-label":ea?"Pause video":"Play video",children:ea?(0,a.jsx)(j.A,{size:16,fill:"currentColor"}):(0,a.jsx)(b.A,{size:16,fill:"currentColor"})}),(0,a.jsxs)("div",{className:"transport-steps",children:[(0,a.jsx)("button",{className:"quiet-icon",disabled:eB||!er,onClick:()=>eZ(et-.5),"aria-label":"Back half a second",children:(0,a.jsx)(w.A,{size:16})}),(0,a.jsx)("button",{className:"quiet-icon",disabled:eB||!er,onClick:()=>eZ(et+.5),"aria-label":"Forward half a second",children:(0,a.jsx)(y.A,{size:16})})]}),(0,a.jsxs)("span",{className:"precise-time",children:[V(et),(0,a.jsxs)("span",{children:[" / ",V(Q)]})]}),(0,a.jsx)("input",{"aria-label":"Video timeline",className:"scrubber",type:"range",min:"0",max:Math.max(.01,Q),step:"0.01",value:Math.min(et,Q),disabled:eB||!er,onChange:e=>eZ(Number(e.target.value))}),(0,a.jsxs)("label",{className:"playback-rate",children:[(0,a.jsx)("span",{className:"sr-only",children:"Playback speed"}),(0,a.jsxs)("select",{value:ec,onChange:t=>{let s=Number(t.target.value);ed(s),e.current&&(e.current.playbackRate=s)},disabled:eB,children:[(0,a.jsx)("option",{value:"0.5",children:"0.5\xd7"}),(0,a.jsx)("option",{value:"1",children:"1\xd7"}),(0,a.jsx)("option",{value:"1.5",children:"1.5\xd7"}),(0,a.jsx)("option",{value:"2",children:"2\xd7"})]})]}),(0,a.jsx)("button",{className:"quiet-icon overlay-control",disabled:!ek||eB,onClick:()=>eo(e=>!e),"aria-label":el?"Hide tracking overlay":"Show tracking overlay","aria-pressed":el,title:el?"Hide overlay":"Show overlay",children:el?(0,a.jsx)(k.A,{size:18}):(0,a.jsx)(N.A,{size:18})}),(0,a.jsx)("button",{className:"quiet-icon",onClick:()=>em(e=>!e),"aria-label":eh?"Exit expanded video":"Expand video",title:eh?"Exit expanded video (Esc)":"Expand video",children:eh?(0,a.jsx)(S.A,{size:17}):(0,a.jsx)(A.A,{size:17})})]}),eB?(0,a.jsxs)("div",{className:"player-progress",role:"status","aria-live":"polite",children:[(0,a.jsx)("span",{className:"running-indicator"}),(0,a.jsx)("span",{children:eS.stage}),(0,a.jsxs)("strong",{children:[eS.current,(0,a.jsxs)("span",{children:[" / ",eS.total," frames"]})]}),(0,a.jsx)("div",{className:"progress-bar",children:(0,a.jsx)("span",{style:{transform:`scaleX(${eY/100})`}})}),(0,a.jsxs)("span",{className:"elapsed",children:[q(eg)," elapsed"]})]}):null]}),(0,a.jsxs)("section",{inert:eh,className:"session-timeline","aria-label":"Analysis timeline",children:[(0,a.jsxs)("div",{className:"timeline-heading",children:[(0,a.jsx)("h2",{children:"Session timeline"}),(0,a.jsxs)("div",{className:"timeline-legend",children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("i",{className:"legend-car"}),"Cars"]}),(0,a.jsxs)("span",{children:[(0,a.jsx)("i",{className:"legend-sponsor"}),"Sponsor matches"]})]})]}),(0,a.jsx)(I,{src:K,duration:Q,currentTime:et,disabled:eB,onSeek:eZ},K),(0,a.jsx)("div",{className:"timeline-ruler",children:[0,.25,.5,.75,1].map(e=>(0,a.jsx)("span",{children:V(Q*e)},e))}),(0,a.jsxs)("div",{className:"timeline-lane",children:[(0,a.jsx)("span",{className:"lane-name",children:"CARS"}),(0,a.jsxs)("div",{className:"lane-content",children:[(0,a.jsx)("button",{className:"activity-lane",disabled:eB,onClick:e=>{let t=e.currentTarget.getBoundingClientRect();eZ(U((e.clientX-t.left)/t.width)*Q)},"aria-label":"Seek car detection timeline",children:ek?ek.frames.map((e,t)=>e.cars.length?(0,a.jsx)("span",{className:"activity-mark",style:{left:`${e.time/Math.max(Q,.01)*100}%`,height:`${Math.min(28,8+3*e.cars.length)}px`}},t):null):(0,a.jsx)("span",{className:"lane-empty",children:"Run analysis to see observed detections"})}),(0,a.jsx)("span",{className:"lane-playhead",style:{left:`${100*U(et/Math.max(Q,.01))}%`}})]})]}),(0,a.jsxs)("div",{className:"timeline-lane",children:[(0,a.jsx)("span",{className:"lane-name",children:"SPONSORS"}),(0,a.jsxs)("div",{className:"lane-content sponsor-lane",children:[ek?.exposures.map((e,t)=>(0,a.jsx)("button",{className:`exposure-mark${eF===e?" selected":""}`,style:{left:`${e.start/Math.max(Q,.01)*100}%`,width:`${Math.max(1,(e.end-e.start+1/ek.sampleHz)/Math.max(Q,.01)*100)}%`},onClick:()=>eQ(e),"aria-label":`Exposure from ${q(e.start)} to ${q(e.end)}`,title:`${ew?.name}: ${V(e.start)}–${V(e.end)}`},`${e.sponsorId}-${t}`)),ek?.exposures.length?null:(0,a.jsx)("span",{className:"lane-empty",children:ew?ek?"No qualifying visual matches in this run":"Logo matches will appear after analysis":"Add a logo reference to look for matching frames"}),(0,a.jsx)("span",{className:"lane-playhead",style:{left:`${100*U(et/Math.max(Q,.01))}%`}})]})]}),(0,a.jsxs)("div",{className:"evidence-key",children:[(0,a.jsx)("span",{className:"observed-key"}),"Observed box",(0,a.jsx)("span",{className:"estimate-key"}),"Display estimate",(0,a.jsx)("span",{className:"evidence-key-note",children:"Estimates add no measured detections."})]})]})]}),(0,a.jsxs)("aside",{inert:eh,className:"analysis-desk","aria-label":"Analysis details",children:[(0,a.jsxs)("div",{className:"desk-title",children:[(0,a.jsx)("h2",{children:"Analysis desk"}),(0,a.jsx)("span",{className:`desk-state${eB?" running":ek?" complete":""}`,children:eB?"RUNNING":ek?"COMPLETE":"READY"})]}),(0,a.jsxs)("section",{className:"desk-section run-state","aria-live":"polite",children:[(0,a.jsx)("div",{className:"section-kicker",children:eB?"ANALYZING THIS CLIP":ek?"REVIEW READY":"START YOUR REVIEW"}),(0,a.jsx)("h3",{children:eB?`${eY}% of frames analyzed`:ek?"The footage, examined.":"Start with the footage."}),(0,a.jsx)("p",{children:eB?0===eS.current?"Loading the local model. The first run can take longer.":"Finding cars in sampled frames. Keep this tab open while the run finishes.":ek?`${ek.frames.length} frames sampled at ${ek.sampleHz} fps. Select a frame below the video to inspect the detections.`:"Scan a short race clip for cars. Add a logo reference when you want to inspect sponsor visibility."}),eB?(0,a.jsxs)("div",{className:"desk-progress",children:[(0,a.jsx)("div",{className:"progress-bar",children:(0,a.jsx)("span",{style:{transform:`scaleX(${eY/100})`}})}),(0,a.jsxs)("span",{children:[q(eg)," elapsed ",(0,a.jsxs)("span",{children:[eS.current," / ",eS.total]})]})]}):(0,a.jsxs)("div",{className:"run-facts",children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"small-square"}),ek?`${(ek.elapsedMs/1e3).toFixed(1)}s processing time`:"1–30 seconds per clip"]}),(0,a.jsx)("span",{children:ek?ek.engine.includes("WebGPU")?"WebGPU":"WASM":"On this device"})]})]}),(0,a.jsxs)("section",{className:"desk-section vehicle-section",children:[(0,a.jsxs)("div",{className:"section-row",children:[(0,a.jsx)("h3",{children:"Vehicle activity"}),(0,a.jsx)(M.A,{size:17})]}),(0,a.jsxs)("div",{className:"activity-totals",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:ek?e_:"—"}),(0,a.jsx)("span",{children:"car observations"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:ek?eH:"—"}),(0,a.jsx)("span",{children:"track IDs"})]})]}),(0,a.jsx)("p",{className:"desk-caption",children:ek?"Track IDs may change through occlusion or camera cuts. They are not verified unique vehicles.":"Measured counts appear when analysis completes."})]}),(0,a.jsxs)("section",{className:"desk-section sponsor-section",id:"sponsors",children:[(0,a.jsxs)("div",{className:"section-row",children:[(0,a.jsx)("h3",{children:"Sponsor evidence"}),(0,a.jsx)(l.A,{size:17})]}),(0,a.jsx)("input",{ref:D,className:"hidden-input",id:"logo-file",type:"file","aria-label":"Choose sponsor logo reference",accept:"image/png,image/jpeg,image/webp",disabled:eB,onChange:eK}),ew?(0,a.jsxs)("div",{className:"sponsor-reference",children:[(0,a.jsx)(r.A,{src:ew.previewUrl,alt:`${ew.name} reference`,width:44,height:44,unoptimized:!0}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{title:ew.name,children:ew.name}),(0,a.jsx)("span",{children:ek?`${eV} observed matches`:"Reference ready"})]}),(0,a.jsx)("button",{className:"quiet-icon",disabled:eB,onClick:()=>{URL.revokeObjectURL(ew.previewUrl),ey(null),G.current=null,eN(null)},"aria-label":"Remove sponsor logo",children:(0,a.jsx)(x.A,{size:15})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:"Add a clear logo crop. LapLens looks for visual matches inside detected cars."}),(0,a.jsxs)("button",{className:"add-reference",disabled:eB,onClick:()=>D.current?.click(),children:[(0,a.jsx)(E.A,{size:17}),(0,a.jsx)("span",{children:"Add logo reference"}),(0,a.jsx)(T.A,{size:15})]})]}),ew&&ek?(0,a.jsxs)("div",{className:"match-summary",children:[(0,a.jsx)("strong",{children:eV}),(0,a.jsx)("span",{children:eV?`matched frames across ${ek.exposures.length} exposure windows`:"No qualifying visual matches. Try a sharper reference or closer footage."})]}):null,ek&&!ew?(0,a.jsxs)("div",{className:"reference-needed",children:[(0,a.jsx)("span",{className:"small-square"}),"Logo reference needed for sponsor results"]}):null,ek?.exposures.length?(0,a.jsx)("div",{className:"exposure-list",children:ek.exposures.map((e,t)=>(0,a.jsxs)("button",{className:`exposure-row${eF===e?" active":""}`,onClick:()=>eQ(e),children:[(0,a.jsxs)("span",{className:"exposure-time",children:[V(e.start),(0,a.jsx)("span",{children:"–"}),V(e.end)]}),(0,a.jsxs)("span",{children:[e.observations," frames",(0,a.jsx)(m.A,{size:14})]})]},`${e.start}-${t}`))}):null,ew?(0,a.jsxs)("button",{className:"text-action",disabled:eB,onClick:()=>D.current?.click(),children:["Change reference ",(0,a.jsx)(d.A,{size:13})]}):null]}),(0,a.jsxs)("details",{className:"speed-disclosure",id:"speed",ref:t,children:[(0,a.jsxs)("summary",{children:[(0,a.jsxs)("span",{className:"section-row",children:[(0,a.jsxs)("span",{children:[(0,a.jsx)(o.A,{size:18}),"Section speed"]}),(0,a.jsx)(C.A,{size:16})]}),(0,a.jsx)("span",{className:"disclosure-sub",children:eD?`${eD.speedKmh.toFixed(1)} km/h \xb7 section average`:"Calibrate two measured gates"})]}),(0,a.jsx)("div",{className:"speed-content",children:eD?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"speed-result",children:[(0,a.jsxs)("strong",{children:[eD.speedKmh.toFixed(1),(0,a.jsx)("small",{children:" km/h"})]}),(0,a.jsxs)("span",{children:["section average",(0,a.jsx)("br",{}),"Track ",String(eD.trackId).padStart(2,"0")]})]}),(0,a.jsx)("p",{className:"desk-caption",children:"Average between gate crossings. Camera movement or track switches can invalidate this estimate."}),(0,a.jsxs)("button",{className:"text-action",onClick:()=>{eO(null),eX()},children:["Recalibrate gates ",(0,a.jsx)(v.A,{size:14})]})]}):(0,a.jsxs)("div",{className:"speed-setup",children:[(0,a.jsx)("p",{children:"Use a stationary camera and a known physical distance between two lines across the track."}),(0,a.jsxs)("label",{className:"field",children:["Distance between gates",(0,a.jsxs)("span",{className:"distance-control",children:[(0,a.jsx)("input",{type:"number",min:"1",max:"500",step:"0.5",value:eI,disabled:eB,onChange:e=>{ez(Number(e.target.value)),eO(null)}}),(0,a.jsx)("span",{children:"metres"})]})]}),(0,a.jsxs)("label",{className:"check-row",children:[(0,a.jsx)("input",{type:"checkbox",checked:e$,disabled:eB,onChange:e=>{eP(e.target.checked),eO(null)}}),(0,a.jsx)("span",{children:"Camera stayed fixed through this section"})]}),(0,a.jsxs)("div",{className:"gate-status",children:[(0,a.jsx)("span",{className:`gate-dot${eR.length>=2?" set":""}`}),"Gate A ",eR.length>=2?"placed":"not set",(0,a.jsx)("span",{className:`gate-dot${eR.length>=4?" set":""}`}),"Gate B ",eR.length>=4?"placed":"not set"]}),(0,a.jsxs)("button",{className:"button yellow full-width",disabled:!ek||eB||!e$||!Number.isFinite(eI)||eI<=0||eT,onClick:eX,children:[(0,a.jsx)(v.A,{size:15}),eT?"Place gates on footage":"Place gates on video"]}),ek?null:(0,a.jsx)("span",{className:"desk-caption",children:"Run car detection to enable gate measurement."}),4!==eR.length||eD||eT?null:(0,a.jsx)("p",{className:"error-note",children:"No track crossed both gates in order. Try a clearer section of the clip."})]})})]}),(0,a.jsxs)("div",{className:"desk-privacy",children:[(0,a.jsx)(R.A,{size:15}),(0,a.jsxs)("span",{children:["Private by design",(0,a.jsx)("small",{children:"Video and logo files stay on this device."})]})]})]})]}),(0,a.jsxs)("footer",{inert:eh,className:"workspace-footer",children:[(0,a.jsxs)("span",{children:["RF-DETR NANO ",(0,a.jsx)("span",{className:"footer-divider",children:"/"})," SAMPLED BROWSER INFERENCE"]}),K===$?(0,a.jsxs)("a",{href:"https://commons.wikimedia.org/wiki/File:Salute_to_Baylands_Raceway_Park_-_July_8_2023_-_Sarah_Stierch.webm",target:"_blank",rel:"noreferrer",children:["Sample footage \xb7 Sarah Stierch \xb7 CC BY 4.0 ",(0,a.jsx)(d.A,{size:12})]}):(0,a.jsxs)("button",{className:"text-action",disabled:eB,onClick:e1,children:["Use sample clip ",(0,a.jsx)(d.A,{size:12})]})]})]})]})]})}function O(e,t,s,a,i,r,n,l){let[o,c]=s(t.x,t.y),[d,h]=s(t.x+t.width,t.y+t.height),m=d-o,u=h-c,p=Math.min(10,m/3,u/3);e.save(),e.setLineDash(r?[3,3]:[]),e.beginPath(),r?e.rect(o,c,m,u):(e.moveTo(o,c+p),e.lineTo(o,c),e.lineTo(o+p,c),e.moveTo(d-p,c),e.lineTo(d,c),e.lineTo(d,c+p),e.moveTo(d,h-p),e.lineTo(d,h),e.lineTo(d-p,h),e.moveTo(o+p,h),e.lineTo(o,h),e.lineTo(o,h-p)),e.strokeStyle=n.outline,e.lineWidth=3.5,e.stroke(),e.strokeStyle=a,e.lineWidth=1.5,e.stroke(),e.font=`400 10px ${n.mono}`;let x=e.measureText(i).width,f=Math.max(3,Math.min(o,e.canvas.width/e.getTransform().a-x-12)),g=Math.max(3,c-19),v=()=>l.some(e=>f<e.x+e.width&&f+x+10>e.x&&g<e.y+e.height&&g+16>e.y),j=0;for(;v()&&j<4;)g=Math.max(3,g-18),j++;v()||(l.push({x:f,y:g,width:x+12,height:18}),e.setLineDash([]),e.fillStyle=a,e.fillRect(f,g,x+10,16),e.fillStyle=a===n.red?n.onDark:n.ink,e.fillText(i,f+5,g+11)),e.restore()}function F(e,t,s,a){var i,r,n,l,o,c,d,h;return{observation:{...e,x:(i=e.x,r=t.x,i+(r-i)*s),y:(n=e.y,l=t.y,n+(l-n)*s),width:(o=e.width,c=t.width,o+(c-o)*s),height:(d=e.height,h=t.height,d+(h-d)*s),detectorScore:Math.min(e.detectorScore,t.detectorScore)},interpolated:s>.025&&s<.975,stableTrackId:a}}function W(e,t,s,a,i,r){let n=[t[0]-e[0],t[1]-e[1]],l=[a[0]-s[0],a[1]-s[1]],o=n[0]*l[1]-n[1]*l[0];if(1e-8>Math.abs(o))return null;let c=[s[0]-e[0],s[1]-e[1]],d=(c[0]*l[1]-c[1]*l[0])/o,h=(c[0]*n[1]-c[1]*n[0])/o;return d>=0&&d<=1&&h>=0&&h<=1?i+(r-i)*d:null}function U(e){return Math.max(0,Math.min(1,e))}function q(e){let t=Math.max(0,Math.floor(e||0));return`${String(Math.floor(t/60)).padStart(2,"0")}:${String(t%60).padStart(2,"0")}`}function V(e){let t=Math.max(0,Number.isFinite(e)?e:0);return`${q(t)}.${String(Math.floor(100*t)%100).padStart(2,"0")}`}}},e=>{e.O(0,[646,929,378,358],()=>e(e.s=7703)),_N_E=e.O()}]);
_next/static/chunks/d3b70fbf.e4eb8687391a72a6.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90f305f5c9396e5c0028b99bec8250363811d9e05b4c7785682c085b59d90914
3
+ size 26597316
_next/static/chunks/framework-2c54b687e37a74cc.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/main-a7b283087b71692e.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/main-app-28a40e14f1aa193f.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[358],{7501:()=>{},8252:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,8401,23)),Promise.resolve().then(n.t.bind(n,1478,23)),Promise.resolve().then(n.t.bind(n,1618,23)),Promise.resolve().then(n.t.bind(n,6327,23)),Promise.resolve().then(n.t.bind(n,2600,23)),Promise.resolve().then(n.t.bind(n,4519,23)),Promise.resolve().then(n.t.bind(n,8738,23)),Promise.resolve().then(n.bind(n,2740))}},e=>{var s=s=>e(e.s=s);e.O(0,[929,378],()=>(s(5439),s(8252))),_N_E=e.O()}]);
_next/static/chunks/next/dist/client/components/builtin/app-error-ea79b7848455bd3d.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[167,819,851,896,988],{6733:()=>{}},_=>{_.O(0,[929,378,358],()=>_(_.s=6733)),_N_E=_.O()}]);
_next/static/chunks/next/dist/client/components/builtin/forbidden-ea79b7848455bd3d.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[167,819,851,896,988],{6733:()=>{}},_=>{_.O(0,[929,378,358],()=>_(_.s=6733)),_N_E=_.O()}]);
_next/static/chunks/next/dist/client/components/builtin/global-error-dd919eca02e9e57a.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[337],{2150:(e,s,_)=>{Promise.resolve().then(_.t.bind(_,8401,23))}},e=>{e.O(0,[929,378,358],()=>e(e.s=2150)),_N_E=e.O()}]);
_next/static/chunks/next/dist/client/components/builtin/not-found-ea79b7848455bd3d.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[167,819,851,896,988],{6733:()=>{}},_=>{_.O(0,[929,378,358],()=>_(_.s=6733)),_N_E=_.O()}]);
_next/static/chunks/next/dist/client/components/builtin/unauthorized-ea79b7848455bd3d.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[167,819,851,896,988],{6733:()=>{}},_=>{_.O(0,[929,378,358],()=>_(_.s=6733)),_N_E=_.O()}]);
_next/static/chunks/polyfills-42372ed130431b0a.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/webpack-970336a6a28eefb1.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (()=>{"use strict";var e,t,r,o,n,a,i,u,l={},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={exports:{}},o=!0;try{l[e](r,r.exports,s),o=!1}finally{o&&delete c[e]}return r.exports}s.m=l,e=[],s.O=(t,r,o,n)=>{if(r){n=n||0;for(var a=e.length;a>0&&e[a-1][2]>n;a--)e[a]=e[a-1];e[a]=[r,o,n];return}for(var i=1/0,a=0;a<e.length;a++){for(var[r,o,n]=e[a],u=!0,l=0;l<r.length;l++)(!1&n||i>=n)&&Object.keys(s.O).every(e=>s.O[e](r[l]))?r.splice(l--,1):(u=!1,n<i&&(i=n));if(u){e.splice(a--,1);var c=o();void 0!==c&&(t=c)}}return t},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,o){if(1&o&&(e=this(e)),8&o||"object"==typeof e&&e&&(4&o&&e.__esModule||16&o&&"function"==typeof e.then))return e;var n=Object.create(null);s.r(n);var a={};t=t||[null,r({}),r([]),r(r)];for(var i=2&o&&e;"object"==typeof i&&!~t.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach(t=>a[t]=()=>e[t]);return a.default=()=>e,s.d(n,a),n},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,r)=>(s.f[r](e,t),t),[])),s.u=e=>"static/chunks/"+e+".fef9f5df5a87e46f.js",s.miniCssF=e=>{},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},s.l=(e,t,r,n)=>{if(o[e])return void o[e].push(t);if(void 0!==r)for(var a,i,u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var c=u[l];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")=="_N_E:"+r){a=c;break}}a||(i=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack","_N_E:"+r),a.src=s.tu(e)),o[e]=[t];var f=(t,r)=>{a.onerror=a.onload=null,clearTimeout(d);var n=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach(e=>e(r)),t)return t(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),i&&document.head.appendChild(a)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.tt=()=>(void 0===n&&(n={createScriptURL:e=>e},"u">typeof trustedTypes&&trustedTypes.createPolicy&&(n=trustedTypes.createPolicy("nextjs#bundler",n))),n),s.tu=e=>s.tt().createScriptURL(e),s.p="/_next/",s.b=document.baseURI||self.location.href,a={68:0,341:0},s.f.j=(e,t)=>{var r=s.o(a,e)?a[e]:void 0;if(0!==r)if(r)t.push(r[2]);else if(/^(341|68)$/.test(e))a[e]=0;else{var o=new Promise((t,o)=>r=a[e]=[t,o]);t.push(r[2]=o);var n=s.p+s.u(e),i=Error();s.l(n,t=>{if(s.o(a,e)&&(0!==(r=a[e])&&(a[e]=void 0),r)){var o=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+o+": "+n+")",i.name="ChunkLoadError",i.type=o,i.request=n,r[1](i)}},"chunk-"+e,e)}},s.O.j=e=>0===a[e],i=(e,t)=>{var r,o,[n,i,u]=t,l=0;if(n.some(e=>0!==a[e])){for(r in i)s.o(i,r)&&(s.m[r]=i[r]);if(u)var c=u(s)}for(e&&e(t);l<n.length;l++)o=n[l],s.o(a,o)&&a[o]&&a[o][0](),a[o]=0;return s.O(c)},(u=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(i.bind(null,0)),u.push=i.bind(null,u.push.bind(u))})();
_next/static/css/ee70b33c5fe95b49.css ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ @font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:600;src:url(/_next/static/media/barlow-condensed-vietnamese-600-normal.6d7e2f90.woff2) format("woff2"),url(/_next/static/media/barlow-condensed-vietnamese-600-normal.7f364a4c.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:600;src:url(/_next/static/media/barlow-condensed-latin-ext-600-normal.646ca2c5.woff2) format("woff2"),url(/_next/static/media/barlow-condensed-latin-ext-600-normal.b10b40bc.woff) format("woff");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:600;src:url(/_next/static/media/barlow-condensed-latin-600-normal.b506a7ca.woff2) format("woff2"),url(/_next/static/media/barlow-condensed-latin-600-normal.a0aeaff6.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Karla Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/_next/static/media/karla-latin-ext-wght-normal.2a4b426b.woff2) format("woff2-variations");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Karla Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/_next/static/media/karla-latin-wght-normal.a60048f4.woff2) format("woff2-variations");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/_next/static/media/ibm-plex-mono-cyrillic-ext-400-normal.66a2e865.woff2) format("woff2"),url(/_next/static/media/ibm-plex-mono-cyrillic-ext-400-normal.88f8fd5b.woff) format("woff");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/_next/static/media/ibm-plex-mono-cyrillic-400-normal.651bc97e.woff2) format("woff2"),url(/_next/static/media/ibm-plex-mono-cyrillic-400-normal.9533b520.woff) format("woff");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/_next/static/media/ibm-plex-mono-vietnamese-400-normal.110e2a76.woff2) format("woff2"),url(/_next/static/media/ibm-plex-mono-vietnamese-400-normal.7d495472.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/_next/static/media/ibm-plex-mono-latin-ext-400-normal.9faee8e8.woff2) format("woff2"),url(/_next/static/media/ibm-plex-mono-latin-ext-400-normal.f14ffb91.woff) format("woff");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/_next/static/media/ibm-plex-mono-latin-400-normal.06ac09dc.woff2) format("woff2"),url(/_next/static/media/ibm-plex-mono-latin-400-normal.e32cf7a4.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}:root{color-scheme:light;--color-paper:oklch(97% 0.011 85);--color-paper-raised:oklch(99% 0.006 85);--color-paper-warm:oklch(93% 0.015 85);--color-ink:oklch(23% 0.014 60);--color-muted:oklch(47% 0.014 60);--color-subtle:oklch(50% 0.014 60);--color-line:oklch(86% 0.014 80);--color-line-strong:oklch(70% 0.02 80);--color-yellow:oklch(84% 0.16 88);--color-yellow-soft:oklch(94% 0.067 90);--color-red:oklch(53% 0.20 29);--color-red-deep:oklch(43% 0.16 29);--color-red-soft:oklch(95% 0.025 30);--color-green:oklch(46% 0.09 148);--color-black:oklch(20% 0.014 60);--color-on-dark:oklch(98% 0.005 85);--color-stage-line:oklch(56% 0.018 80);--color-overlay-outline:oklch(19% 0.015 60);--color-accent-ink:oklch(23% 0.014 60);--color-focus:oklch(18% 0.014 60);--font-display:"Barlow Condensed","Arial Narrow",sans-serif;--font-body:"Karla Variable","Avenir Next",sans-serif;--font-mono:"IBM Plex Mono",monospace;--space-inspector:1.25rem;--space-section:1.75rem;--space-2xs:0.25rem;--space-xs:0.5rem;--space-sm:0.75rem;--space-md:1rem;--space-lg:1.5rem;--space-xl:2rem;--space-2xl:3rem;--space-3xl:4.5rem;--radius-sm:3px;--radius-md:4px;--radius-lg:6px;--ease-out:cubic-bezier(0.16,1,0.3,1);--ease-in-out:cubic-bezier(0.65,0,0.35,1);--dur-short:180ms;--dur-medium:260ms}
2
+
3
+ /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-outline-style:solid}}}@layer theme{:host,:root{--font-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-black:#000;--radius-sm:.25rem;--radius-md:.375rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,optgroup,select,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.fixed{position:fixed}.static{position:static}.block{display:block}.contents{display:contents}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}}*{box-sizing:border-box}html{min-height:100%}body,html{background:var(--color-paper)}body{color:var(--color-ink);font-family:var(--font-body);margin:0;font-size:16px}button,input,select{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,label:focus-within{outline:3px solid var(--color-focus);outline-offset:3px}::selection{background:var(--color-yellow);color:var(--color-ink)}.app-shell{grid-template-columns:224px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{border-right:1px solid var(--color-line);background:var(--color-paper-raised);flex-direction:column;height:100vh;padding:25px 17px 18px;display:flex;position:sticky;top:0}.brand{color:var(--color-ink);align-items:center;gap:10px;padding:0 8px;text-decoration:none;display:flex}.brand-mark{width:32px;height:32px;color:var(--color-red);background:var(--color-yellow);border-radius:10px;place-items:center;display:grid}.brand-copy{gap:4px;display:grid}.brand-name{font:600 22px/1 var(--font-display);letter-spacing:-.045em}.brand-caption{color:var(--color-muted);font:600 9px/1 var(--font-mono);letter-spacing:.12em;margin:4px 0 0}.rail-label{color:var(--color-subtle);font:10px/1.3 var(--font-mono);letter-spacing:.13em;text-transform:uppercase;margin:35px 12px 10px}.rail-link{width:100%;color:var(--color-muted);text-align:left;cursor:pointer;transition:background var(--dur-short) var(--ease-out),color var(--dur-short) var(--ease-out);background:0 0;border:0;border-radius:9px;align-items:center;gap:11px;padding:11px 12px;font-size:15px;display:flex}.rail-link:hover{color:var(--color-ink);background:var(--color-paper-warm)}.rail-link.active{color:var(--color-ink);background:var(--color-yellow-soft);font-weight:700}.rail-link.active svg{color:var(--color-red)}.rail-spacer{flex:1}.privacy-note{border:1px solid var(--color-line);color:var(--color-muted);border-radius:11px;margin:15px 5px 2px;padding:12px 11px;font-size:13px;line-height:1.35}.privacy-note strong{color:var(--color-ink);align-items:center;gap:7px;margin-bottom:5px;font-size:13px;display:flex}.workspace{min-width:0}.topbar{border-bottom:1px solid var(--color-line);background:var(--color-paper-raised);justify-content:space-between;height:67px;padding:0 38px}.crumbs,.topbar{align-items:center;display:flex}.crumbs{color:var(--color-muted);gap:9px;font-size:14px}.crumbs strong{color:var(--color-ink);font-weight:700}.top-actions{gap:10px}.status-pill,.top-actions{align-items:center;display:flex}.status-pill{border:1px solid var(--color-line);color:var(--color-muted);border-radius:999px;gap:7px;padding:7px 10px;font-size:12px}.status-dot{background:var(--color-green);border-radius:50%;width:7px;height:7px}.icon-button{width:36px;height:36px;color:var(--color-muted);cursor:pointer;transition:background var(--dur-short) var(--ease-out),color var(--dur-short) var(--ease-out);background:0 0;border:1px solid #0000;border-radius:9px;place-items:center;display:grid}.icon-button:hover{color:var(--color-ink);background:var(--color-paper-warm)}.content{max-width:1620px;margin:0 auto;padding:31px 38px 42px}.page-heading{justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px;display:flex}.page-heading h1{font:500 clamp(31px,3.2vw,43px)/.98 var(--font-display);letter-spacing:-.045em;margin:0}.page-heading p{color:var(--color-muted);margin:9px 0 0;font-size:15px}.heading-actions{align-items:center;gap:9px;display:flex}.button{border:1px solid var(--color-line-strong);background:var(--color-paper-raised);min-height:39px;color:var(--color-ink);cursor:pointer;transition:transform var(--dur-short) var(--ease-out),background var(--dur-short) var(--ease-out),border-color var(--dur-short) var(--ease-out);border-radius:8px;justify-content:center;align-items:center;gap:8px;padding:0 14px;font-size:14px;font-weight:700;display:inline-flex}.button:hover:not(:disabled){border-color:var(--color-ink);background:#fff;transform:translateY(-1px)}.button:active:not(:disabled){transform:translateY(1px)}.button:disabled{cursor:not-allowed;opacity:.48}.button.primary{border-color:var(--color-red);color:#fff;background:var(--color-red)}.button.primary:hover:not(:disabled){border-color:var(--color-red-deep);background:var(--color-red-deep)}.button.yellow{border-color:var(--color-yellow);background:var(--color-yellow)}.button.yellow:hover:not(:disabled){background:oklch(71% .145 91);border-color:oklch(71% .145 91)}.button.small{min-height:32px;padding:0 10px;font-size:12px}.run-summary{color:var(--color-muted);font:11px/1.4 var(--font-mono);flex-wrap:wrap;align-items:center;gap:8px 19px;padding:0 0 18px;display:flex}.run-summary span{align-items:center;gap:7px;display:inline-flex}.run-summary strong{color:var(--color-ink);font-weight:600}.run-summary .bullet{background:var(--color-line-strong);border-radius:50%;width:4px;height:4px}.main-grid{grid-template-columns:minmax(0,1fr) 306px;align-items:start;gap:18px;display:grid}.left-stack{gap:13px;min-width:0;display:grid}.video-panel{border:1px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-black);overflow:hidden;box-shadow:0 10px 28px oklch(28% .04 60/.08)}.video-head{color:#fff;background:oklch(25% .025 54);border-bottom:1px solid oklch(100% 0 0/.14);justify-content:space-between;gap:12px;min-height:46px;padding:0 14px}.video-head,.video-title{align-items:center;display:flex}.video-title{gap:8px;min-width:0;font-size:13px;font-weight:700}.video-title span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.video-meta{color:oklch(79% .02 70);font:10px/1.2 var(--font-mono);white-space:nowrap}.stage{aspect-ratio:16/9;background:#17130f;place-items:center;width:100%;display:grid;position:relative;overflow:hidden}.stage video{object-fit:contain}.stage canvas,.stage video{width:100%;height:100%;position:absolute;inset:0}.stage.gate-mode canvas{cursor:crosshair}.stage-empty{z-index:2;color:#fff;text-align:center;pointer-events:none;place-items:center;gap:10px;padding:20px;display:grid;position:relative}.stage-empty strong{font:500 24px var(--font-display)}.stage-empty span{color:oklch(80% .018 65);font-size:13px}.video-controls{color:#fff;background:oklch(25% .025 54);grid-template-columns:auto minmax(40px,1fr) auto auto;align-items:center;gap:12px;padding:10px 13px 12px;display:grid}.play-button{background:var(--color-yellow);width:32px;height:32px;color:var(--color-ink);cursor:pointer;border:0;border-radius:50%;place-items:center;display:grid}.scrubber{appearance:none;cursor:pointer;width:100%;height:4px;accent-color:var(--color-yellow);background:oklch(68% .02 68/.3);border-radius:999px}.scrubber::-webkit-slider-thumb{appearance:none;background:var(--color-yellow);border-radius:50%;width:12px;height:12px;box-shadow:0 0 0 3px oklch(100% 0 0/.12)}.timecode{color:oklch(87% .015 70);min-width:84px;font:10px var(--font-mono);text-align:center}.video-control-button{color:oklch(85% .012 70);cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;font-size:11px;display:flex}.video-control-button:hover{color:#fff}.timeline{border:1px solid var(--color-line);background:var(--color-paper-raised);border-radius:11px;padding:13px 16px 15px}.timeline-top{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.panel-title{font:600 16px/1.2 var(--font-display);letter-spacing:-.015em;margin:0}.micro-label{color:var(--color-subtle);font:9px/1.2 var(--font-mono);letter-spacing:.1em;text-transform:uppercase}.timeline-track{background:var(--color-paper-warm);border-radius:6px;height:34px;display:flex;position:relative;overflow:hidden}.timeline-segment{background:var(--color-yellow);border-radius:3px;min-width:4px;height:20px;position:absolute;top:7px}.timeline-segment.selected{background:var(--color-red)}.timeline-playhead{pointer-events:none;width:1px;top:0;bottom:0}.timeline-playhead,.timeline-playhead:before{background:var(--color-ink);position:absolute}.timeline-playhead:before{content:"";border-radius:50%;width:7px;height:7px;top:-1px;left:-3px}.timeline-ticks{color:var(--color-subtle);font:9px var(--font-mono);justify-content:space-between;margin-top:5px;display:flex}.side-panel{border:1px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-paper-raised);overflow:hidden}.side-section{border-bottom:1px solid var(--color-line);padding:16px}.side-section:last-child{border-bottom:0}.side-heading{justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px;display:flex}.inline-action{color:var(--color-red);cursor:pointer;background:0 0;border:0;align-items:center;gap:5px;font-size:12px;font-weight:700;display:inline-flex}.inline-action:hover{color:var(--color-red-deep);text-decoration:underline}.sponsor-entry{border-top:1px solid var(--color-line);grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 0;display:grid}.sponsor-entry:first-of-type{border-top:0}.sponsor-thumb{border:1px solid var(--color-line);object-fit:contain;background:#fff;border-radius:8px;place-items:center;width:38px;height:38px;display:grid;overflow:hidden}.sponsor-name{color:var(--color-ink);text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:700;overflow:hidden}.sponsor-sub{color:var(--color-muted);font:9px var(--font-mono);margin-top:3px}.sponsor-count{color:var(--color-ink);font:600 12px var(--font-mono)}.metric-value{font:500 38px/.96 var(--font-display);letter-spacing:-.04em;margin:4px 0 1px}.metric-value em{color:var(--color-red);font-style:normal}.metric-description{color:var(--color-muted);font-size:12px}.metric-rule{background:var(--color-line);height:1px;margin:13px 0}.metric-row{color:var(--color-muted);justify-content:space-between;gap:10px;margin:7px 0;font-size:12px;display:flex}.metric-row strong{color:var(--color-ink);font:600 11px var(--font-mono)}.metric-row .needs-input{color:var(--color-red)}.empty-copy{color:var(--color-muted);padding:9px 0 3px;font-size:12px;line-height:1.45}.reference-drop{border:1px dashed var(--color-line-strong);color:var(--color-muted);text-align:center;cursor:pointer;transition:background var(--dur-short) var(--ease-out),border-color var(--dur-short) var(--ease-out);border-radius:9px;justify-items:center;gap:6px;padding:17px 12px;display:grid}.reference-drop:hover{border-color:var(--color-red);background:var(--color-red-soft)}.reference-drop strong{color:var(--color-ink);font-size:12px}.reference-drop span{font-size:11px}.reference-list{gap:4px;display:grid}.progress-wrap{border-top:1px solid var(--color-line);background:var(--color-paper-raised);padding:10px 13px}.progress-copy{color:var(--color-muted);justify-content:space-between;align-items:center;gap:12px;margin-bottom:6px;font-size:11px;display:flex}.progress-bar{background:var(--color-paper-warm);border-radius:9px;height:5px;overflow:hidden}.progress-bar span{border-radius:inherit;background:var(--color-red);height:100%;transition:width var(--dur-medium) var(--ease-out);display:block}.error-note{border-left:3px solid var(--color-red);color:var(--color-red-deep);background:var(--color-red-soft);margin-top:10px;padding:9px 11px;font-size:12px}.speed-setup{gap:11px;display:grid}.speed-steps{flex-wrap:wrap;gap:5px;display:flex}.speed-step{color:var(--color-muted);background:var(--color-paper-warm);font:9px var(--font-mono);border-radius:6px;padding:5px 7px}.speed-step.active{color:var(--color-ink);background:var(--color-yellow)}.field{color:var(--color-muted);gap:5px;font-size:11px;display:grid}.field input[type=number]{border:1px solid var(--color-line-strong);width:100%;min-height:34px;color:var(--color-ink);font:12px var(--font-mono);background:#fff;border-radius:7px;padding:0 9px}.check-row{color:var(--color-muted);align-items:center;gap:8px;font-size:11px;line-height:1.3;display:flex}.check-row input{accent-color:var(--color-red)}.speed-result{border-top:1px solid var(--color-line);justify-content:space-between;align-items:end;gap:8px;padding-top:7px;display:flex}.speed-result strong{color:var(--color-red);font:500 30px/.9 var(--font-display)}.speed-result span{max-width:115px;color:var(--color-muted);text-align:right;font-size:10px}.note{color:var(--color-muted);font-size:11px;line-height:1.4}.source-line{color:var(--color-subtle);justify-content:space-between;gap:10px;padding:14px 2px 0;font-size:11px;display:flex}.source-line a{color:var(--color-muted);-webkit-text-decoration-color:var(--color-line-strong);text-decoration-color:var(--color-line-strong);text-underline-offset:2px}.source-line a:hover{color:var(--color-red)}.hidden-input{display:none}.icon-muted{color:var(--color-subtle)}.eyebrow{color:var(--color-red);font:10px/1 var(--font-mono);letter-spacing:.14em;align-items:center;gap:8px;margin-bottom:11px;display:flex}.eyebrow-rule{background:var(--color-red);opacity:.6;width:15px;height:1px}.summary-dot{border-radius:50%;width:7px;height:7px}.summary-dot.yellow{background:var(--color-yellow);box-shadow:0 0 0 2px var(--color-yellow-soft)}.live-square{background:var(--color-yellow);border-radius:2px;flex:none;width:7px;height:7px}.overlay-tip{z-index:3;color:oklch(90% .01 70);font:10px var(--font-mono);pointer-events:none;background:oklch(20% .02 53/.78);border:1px solid oklch(100% 0 0/.14);border-radius:7px;align-items:center;gap:7px;padding:7px 10px;display:flex;position:absolute;bottom:13px;right:13px}.tip-mark{color:var(--color-yellow);place-items:center;display:grid}.frame-badge{z-index:2;color:#fff;font:9px var(--font-mono);background:oklch(20% .02 53/.78);border:1px solid oklch(100% 0 0/.16);border-radius:6px;align-items:center;gap:6px;padding:6px 9px;display:flex;position:absolute;top:12px;left:12px}.frame-badge svg{color:var(--color-yellow)}.gate-instruction{z-index:4;color:#fff;font:10px var(--font-mono);white-space:nowrap;pointer-events:auto;background:oklch(20% .02 53/.9);border:1px solid oklch(100% 0 0/.18);border-radius:7px;align-items:center;gap:8px;padding:8px 9px 8px 12px;display:flex;position:absolute;top:12px;left:50%;transform:translate(-50%)}.gate-instruction>svg{color:var(--color-yellow)}.gate-instruction button{color:#fff;cursor:pointer;background:oklch(100% 0 0/.12);border:0;border-radius:4px;place-items:center;width:23px;height:23px;display:grid}.help-details{margin:9px auto 0;position:relative}.help-details summary{cursor:pointer;list-style:none}.help-details summary::-webkit-details-marker{display:none}.help-popover{z-index:12;border:1px solid var(--color-line);background:var(--color-paper-raised);border-radius:10px;width:235px;padding:13px;font-size:12px;position:absolute;bottom:42px;right:0;box-shadow:0 9px 28px oklch(28% .04 60/.12)}.help-popover strong{font:600 15px var(--font-display)}.help-popover p{color:var(--color-muted);margin:6px 0 0;line-height:1.45}.side-heading>div:first-child{min-width:0}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.remove-ref{width:24px;height:24px;color:var(--color-subtle);cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;display:grid}.remove-ref:hover{color:var(--color-red);background:var(--color-red-soft)}.exposure-list{border-top:1px solid var(--color-line);margin-top:8px}.exposure-row{border:0;border-bottom:1px solid var(--color-line);width:100%;color:var(--color-muted);cursor:pointer;text-align:left;background:0 0;justify-content:space-between;align-items:center;gap:7px;padding:9px 2px;font-size:10px;display:flex}.exposure-row:last-child{border-bottom:0}.exposure-row>span:last-child{white-space:nowrap;align-items:center;gap:3px;display:flex}.exposure-row.active,.exposure-row:hover{color:var(--color-ink);background:var(--color-yellow-soft)}.exposure-time{font:10px var(--font-mono);color:var(--color-ink)}.exposure-time span{color:var(--color-subtle)}.mini-icon{border-radius:8px;place-items:center;width:29px;height:29px;display:grid}.yellow-icon{color:var(--color-ink);background:var(--color-yellow-soft)}.red-icon{color:var(--color-red);background:var(--color-red-soft)}.stat-pair{grid-template-columns:1fr 1fr;gap:14px;display:grid}.metric-value.compact{margin-top:0;font-size:31px}.method-note{color:var(--color-muted);flex-wrap:wrap;align-items:center;gap:7px;margin:13px 0 9px;font-size:10px;display:flex}.method-chip{color:var(--color-ink);background:var(--color-yellow-soft);font:9px var(--font-mono);border-radius:4px;padding:4px 6px}.speed-setup{margin-top:0}.distance-control{align-items:center;gap:8px;display:flex}.distance-control input{border:1px solid var(--color-line-strong);width:85px;min-width:0;min-height:34px;color:var(--color-ink);font:12px var(--font-mono);background:#fff;border-radius:7px;padding:0 8px}.distance-control>span{color:var(--color-muted);font-size:10px}.gate-status{color:var(--color-muted);font:9px var(--font-mono);align-items:center;gap:5px;display:flex}.gate-dot{background:var(--color-line-strong);border-radius:50%;width:6px;height:6px;margin-left:2px}.gate-dot.set{background:var(--color-green)}.full-width{width:100%}.speed-lock{color:var(--color-subtle);align-items:center;gap:6px;font-size:10px;display:flex}.speed-result{padding:10px 0 5px}.speed-result strong small{font:500 14px var(--font-display)}.speed-caveat{margin:7px 0 10px}.side-foot{color:var(--color-subtle);flex-direction:column;gap:4px;padding:11px 16px 13px;font-size:10px;display:flex}.side-foot span:first-child{color:var(--color-green);font:9px var(--font-mono);letter-spacing:.06em;align-items:center;gap:6px;display:flex}.run-footer{border:1px solid var(--color-line);color:var(--color-muted);background:var(--color-paper-raised);border-radius:8px;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;margin-top:15px;padding:10px 12px;font-size:11px;display:flex}.run-footer span:first-child{color:var(--color-green);align-items:center;gap:6px;font-weight:700;display:inline-flex}.global-error{z-index:30;max-width:min(440px,100vw - 30px);color:var(--color-red-deep);background:var(--color-red-soft);border:1px solid oklch(75% .1 31);border-radius:9px;align-items:start;gap:14px;padding:12px 13px;font-size:13px;display:flex;position:fixed;bottom:20px;right:22px;box-shadow:0 8px 28px oklch(30% .04 40/.12)}.global-error button{color:currentColor;cursor:pointer;background:0 0;border:0;flex:none;place-items:center;display:grid}.stage canvas{pointer-events:none}.stage.gate-mode canvas{pointer-events:auto}.stage video::-webkit-media-controls{display:none!important}@media (min-width:1500px){.main-grid{grid-template-columns:minmax(0,1fr) 324px;gap:22px}}@media (max-width:1120px){.app-shell{grid-template-columns:76px minmax(0,1fr)}.sidebar{align-items:center;padding:20px 10px}.brand{padding:0}.brand-copy,.privacy-note,.rail-label,.rail-link span{display:none}.rail-link{justify-content:center;width:46px;height:44px;padding:0}.rail-link svg{flex:none}.sidebar-nav{gap:6px;margin-top:36px;display:grid}.sidebar .rail-spacer{min-height:40px}.main-grid{grid-template-columns:minmax(0,1fr) 280px}.content,.topbar{padding-inline:24px}}@media (max-width:820px){.main-grid{grid-template-columns:1fr}.side-panel{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.side-section:nth-child(2){border-right:0}.side-section:nth-child(3){border-right:1px solid var(--color-line)}.side-foot{border-top:1px solid var(--color-line)}.page-heading{flex-direction:column;align-items:start}.heading-actions{align-self:stretch}}@media (max-width:560px){.app-shell{grid-template-columns:1fr}.sidebar{z-index:10;border-top:1px solid var(--color-line);border-right:0;flex-direction:row;justify-content:space-around;width:100%;height:58px;padding:5px 9px;position:fixed;inset:auto 0 0}.brand,.rail-spacer,.sidebar>.icon-button{display:none}.sidebar-nav{justify-content:space-around;width:100%;margin:0;display:flex}.rail-link{width:50px;height:44px}.topbar{height:55px;padding:0 14px}.status-pill{padding:6px 8px;font-size:10px}.content{padding:22px 13px 79px}.page-heading h1{font-size:34px}.heading-actions{width:100%}.heading-actions .button{flex:1}.main-grid{gap:11px}.side-panel{grid-template-columns:1fr}.side-section{border-right:0!important}.video-controls{grid-template-columns:32px minmax(30px,1fr) auto;gap:8px}.video-controls .video-control-button{display:none}.timecode{min-width:73px;font-size:9px}.video-head{min-height:40px}.video-meta{font-size:9px}.source-line{flex-direction:column}}@media (prefers-reduced-motion:reduce){*,:after,:before{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}body,html{overflow-x:clip}a,button,input,select,summary{-webkit-tap-highlight-color:transparent}.button,button,nav a,summary{white-space:nowrap}button:disabled,input:disabled,select:disabled{cursor:not-allowed}.video-panel:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--color-focus);outline-offset:4px}h1,h2,h3{font-style:normal;min-width:0;overflow-wrap:anywhere}.pitwall{grid-template-columns:72px minmax(0,1fr);min-height:100dvh}.tool-rail{position:sticky;top:0;height:100dvh;flex-direction:column;gap:var(--space-2xl);padding:var(--space-lg) 0;border-right:1px solid var(--color-line);background:var(--color-paper-raised);z-index:10}.rail-brand,.tool-rail{display:flex;align-items:center}.rail-brand{gap:4px;justify-content:center;width:44px;height:32px}.rail-brand span{width:6px;height:25px;background:var(--color-red);transform:skew(-20deg)}.tool-links{display:grid;gap:var(--space-sm)}.tool-link{position:relative;display:grid;place-items:center;width:44px;height:44px;color:var(--color-muted);border-radius:var(--radius-sm)}.tool-link.active{background:var(--color-yellow);color:var(--color-ink)}.tool-link:hover{color:var(--color-red);background:var(--color-paper-warm)}.rail-bottom{margin-top:auto;display:grid;gap:var(--space-lg);justify-items:center}.rail-avatar{width:30px;height:30px;display:grid;place-items:center;border:1px solid var(--color-line);border-radius:50%;color:var(--color-muted);font:11px var(--font-mono)}.workspace-help{position:relative}.workspace-help summary{display:grid;place-items:center;width:44px;height:44px;cursor:pointer;color:var(--color-muted);list-style:none}.workspace-help summary::-webkit-details-marker{display:none}.workspace-help .help-popover{left:55px;right:auto;bottom:0;width:280px;z-index:100;border-radius:var(--radius-md);padding:var(--space-md);box-shadow:none;background:var(--color-paper-raised);font:14px/1.5 var(--font-body)}.workspace-help .help-popover strong{font:700 16px var(--font-body)}.help-popover a{display:inline-flex;align-items:center;gap:var(--space-xs);margin-top:var(--space-sm);color:var(--color-red);font-weight:700}.workspace-header{height:64px;padding:0 var(--space-xl);display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);background:var(--color-paper-raised);border-bottom:1px solid var(--color-line)}.workspace-wordmark{display:flex;align-items:center;gap:var(--space-lg);text-decoration:none;color:var(--color-ink);font:600 28px/1 var(--font-display);letter-spacing:-.025em}.workspace-wordmark>span{padding-top:4px;color:var(--color-muted);font:10px var(--font-mono);letter-spacing:.08em}.workspace-presence{display:flex;align-items:center;gap:var(--space-xs);color:var(--color-muted);font:11px var(--font-mono);white-space:nowrap}.workspace-presence svg{color:var(--color-red)}.review-content{max-width:1820px;margin-inline:auto;padding:var(--space-section) var(--space-xl) var(--space-lg)}.review-heading{display:flex;justify-content:space-between;align-items:end;gap:var(--space-lg);margin-bottom:var(--space-section)}.workspace-path{display:flex;gap:var(--space-xs);align-items:center;margin:0 0 var(--space-xs);color:var(--color-muted);font:10px var(--font-mono);text-transform:uppercase;letter-spacing:.055em}.review-heading h1{margin:0;font:600 clamp(36px,3.4vw,48px)/1.05 var(--font-display);text-transform:uppercase;letter-spacing:-.015em}.review-description{margin:var(--space-xs) 0 0;color:var(--color-muted);font-size:15px;line-height:1.5}.pitwall .heading-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:var(--space-xs)}.pitwall .button{min-height:44px;padding-inline:var(--space-md);border:1px solid var(--color-line);border-radius:var(--radius-sm);background:var(--color-paper-raised);color:var(--color-ink);font:700 14px var(--font-body);box-shadow:none;transition:transform var(--dur-short) var(--ease-out)}.pitwall .button:hover:not(:disabled){background:var(--color-paper-warm);color:var(--color-ink);border-color:var(--color-line-strong);transform:none}.pitwall .button:active:not(:disabled){transform:translateY(1px)}.pitwall .button.primary{color:var(--color-on-dark);background:var(--color-red);border-color:var(--color-red)}.pitwall .button.primary:hover:not(:disabled){color:var(--color-on-dark);background:var(--color-red-deep);border-color:var(--color-red-deep)}.pitwall .button.yellow{background:var(--color-yellow);color:var(--color-ink);border-color:var(--color-yellow)}.pitwall .button.yellow:hover:not(:disabled){background:var(--color-yellow-soft)}.pitwall .button:disabled{opacity:.45}.review-grid{display:grid;grid-template-columns:minmax(0,1fr) 304px;align-items:start;gap:var(--space-section)}.review-player-column{min-width:0}.pitwall .video-panel{border:0;border-radius:0;overflow:visible;background:transparent;box-shadow:none}.pitwall .video-head{padding:12px 0;min-height:46px;border-top:2px solid var(--color-ink);border-bottom:0;color:var(--color-ink);background:transparent}.pitwall .video-title{font:700 14px var(--font-body);gap:var(--space-xs)}.pitwall .video-meta{color:var(--color-muted);font:10px var(--font-mono);display:flex;gap:var(--space-sm);align-items:center}.meta-divider{color:var(--color-line-strong)}.pitwall .live-square{width:5px;height:5px;border-radius:0;background:var(--color-red)}.pitwall .stage{background:var(--color-black);border-radius:3px}.frame-status{position:absolute;top:var(--space-md);left:var(--space-md);z-index:2;display:flex;align-items:center;gap:var(--space-xs);padding:var(--space-xs) 10px;color:var(--color-on-dark);background:var(--color-black);border-radius:2px;font:10px var(--font-mono);pointer-events:none}.status-square{display:inline-block;width:5px;height:5px;background:var(--color-yellow)}.processing .status-square,.running-indicator{animation:working-pulse 1.2s var(--ease-in-out) infinite alternate}@keyframes working-pulse{0%{opacity:.3}to{opacity:1}}.frame-readout{position:absolute;bottom:var(--space-md);right:var(--space-md);padding:var(--space-xs) 10px;border-radius:2px;color:var(--color-on-dark);background:var(--color-black);font:11px var(--font-mono);pointer-events:none}.frame-readout span{display:block;margin-top:3px;color:var(--color-yellow);font-size:10px}.transport{min-height:68px;display:flex;gap:var(--space-xs);align-items:center;border-bottom:1px solid var(--color-line)}.pitwall .play-button{flex:none;width:40px;height:40px;color:var(--color-ink);background:var(--color-yellow);border-radius:var(--radius-sm)}.pitwall .play-button:hover:not(:disabled){background:var(--color-yellow-soft)}.play-button:disabled{opacity:.45;cursor:not-allowed}.transport-steps{display:flex}.quiet-icon{display:grid;place-items:center;flex:none;width:40px;height:44px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--color-muted);cursor:pointer}.quiet-icon:hover:not(:disabled){color:var(--color-ink);background:var(--color-paper-warm)}.quiet-icon:disabled{opacity:.35}.precise-time{flex:none;padding-inline:var(--space-xs);font:11px var(--font-mono);font-variant-numeric:tabular-nums;white-space:nowrap}.precise-time>span{color:var(--color-muted)}.pitwall .scrubber{flex:1;min-width:30px;height:44px;appearance:none;border-radius:0;background:transparent;box-shadow:none}.pitwall .scrubber::-webkit-slider-runnable-track{height:3px;background:var(--color-line-strong)}.pitwall .scrubber::-webkit-slider-thumb{appearance:none;height:16px;width:5px;margin-top:-6px;background:var(--color-red);border-radius:0;box-shadow:none}.pitwall .scrubber::-moz-range-track{height:3px;background:var(--color-line-strong)}.pitwall .scrubber::-moz-range-thumb{height:16px;width:5px;background:var(--color-red);border:0;border-radius:0}.playback-rate select{min-height:44px;width:57px;border:0;color:var(--color-muted);background:transparent;font:11px var(--font-mono);cursor:pointer;padding-inline:4px}.player-progress{display:flex;flex-wrap:wrap;gap:var(--space-sm);align-items:center;padding:var(--space-sm) 0;color:var(--color-muted);font-size:12px}.running-indicator{display:block;width:6px;height:6px;background:var(--color-red)}.player-progress strong{margin-left:auto;color:var(--color-ink);font:12px var(--font-mono)}.player-progress strong>span{color:var(--color-muted);font-size:10px}.pitwall .progress-bar{height:4px;border-radius:0;background:var(--color-line);overflow:hidden}.pitwall .progress-bar>span{width:100%;height:100%;border-radius:0;display:block;background:var(--color-red);transform-origin:left;transition:transform var(--dur-medium) var(--ease-out)}.player-progress .progress-bar{width:100%;order:2}.elapsed{font:10px var(--font-mono)}.session-timeline{padding-top:var(--space-lg)}.timeline-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);margin-bottom:var(--space-md)}.timeline-heading h2{margin:0;font:700 15px var(--font-body)}.timeline-legend{display:flex;gap:var(--space-md);color:var(--color-muted);font-size:11px}.timeline-legend>span{display:flex;align-items:center;gap:6px}.timeline-legend i{width:6px;height:6px;display:block}.legend-car{background:var(--color-yellow)}.legend-sponsor{background:var(--color-red)}.filmstrip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;overflow:hidden;border-radius:2px;min-height:55px;background:var(--color-paper-warm)}.filmstrip-frame{position:relative;padding:0;border:0;background:var(--color-black);color:var(--color-on-dark);overflow:hidden;cursor:pointer}.filmstrip-frame img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;opacity:.78;transition:opacity var(--dur-short) var(--ease-out)}.filmstrip-frame>span{position:absolute;bottom:3px;left:5px;padding:1px 3px;background:var(--color-black);color:var(--color-on-dark);font:10px var(--font-mono)}.filmstrip-frame.is-current:after{position:absolute;content:"";inset:0;border:2px solid var(--color-yellow);pointer-events:none}.filmstrip-frame:focus-visible img,.filmstrip-frame:hover img{opacity:1}.filmstrip-frame:focus-visible{z-index:2;outline-offset:-3px}.filmstrip-placeholder{grid-column:1/-1;padding:var(--space-md);align-self:center;color:var(--color-muted);font-size:12px}.timeline-ruler{display:flex;justify-content:space-between;padding:var(--space-sm) 0 var(--space-xs) 78px;color:var(--color-muted);font:10px var(--font-mono)}.timeline-lane{display:grid;grid-template-columns:66px minmax(0,1fr);gap:var(--space-sm);min-height:36px;align-items:center;border-bottom:1px solid var(--color-line)}.lane-name{color:var(--color-muted);font:10px var(--font-mono)}.lane-content{min-width:0;background:var(--color-paper-warm)}.activity-lane,.lane-content{position:relative;height:32px}.activity-lane{width:100%;padding:0;display:block;background:transparent;border:0;color:var(--color-muted);cursor:crosshair;overflow:hidden;text-align:left}.activity-mark{position:absolute;bottom:2px;width:5px;background:var(--color-yellow);border:1px solid var(--color-line-strong)}.lane-empty{position:absolute;inset:0;display:flex;align-items:center;padding-inline:var(--space-sm);font:12px var(--font-body);color:var(--color-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lane-playhead{top:0;bottom:0;width:1px;pointer-events:none}.lane-playhead,.lane-playhead:before{position:absolute;background:var(--color-red)}.lane-playhead:before{top:-3px;left:-2px;content:"";width:5px;height:5px}.exposure-mark{position:absolute;top:7px;bottom:7px;border:0;min-width:5px;background:var(--color-red);color:var(--color-on-dark);cursor:pointer}.exposure-mark.selected,.exposure-mark:hover{background:var(--color-red-deep);outline:1px solid var(--color-ink);outline-offset:2px}.evidence-key{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:var(--space-sm);color:var(--color-muted);font-size:11px}.estimate-key,.observed-key{width:11px;height:8px;border:1px solid var(--color-muted)}.estimate-key{margin-left:var(--space-sm);border-style:dashed}.evidence-key-note{margin-left:auto}.analysis-desk{border-top:2px solid var(--color-ink);background:var(--color-paper-raised)}.desk-title{display:flex;justify-content:space-between;align-items:center;gap:var(--space-sm);padding:var(--space-md) var(--space-inspector);border-bottom:1px solid var(--color-line)}.desk-title h2{margin:0;font:700 15px var(--font-body)}.desk-state{color:var(--color-muted);font:10px var(--font-mono)}.desk-state.running{color:var(--color-red)}.desk-state.complete{color:var(--color-green)}.desk-section{padding:var(--space-lg) var(--space-inspector);border-bottom:1px solid var(--color-line)}.section-kicker{margin-bottom:var(--space-sm);color:var(--color-red);font:10px var(--font-mono);letter-spacing:.03em}.desk-section h3{margin:0 0 var(--space-xs);font:700 16px/1.3 var(--font-body);letter-spacing:-.015em}.desk-section p,.speed-content p{margin:0;color:var(--color-muted);font-size:14px;line-height:1.5}.run-facts{display:flex;align-items:center;justify-content:space-between;gap:var(--space-xs);margin-top:var(--space-md);color:var(--color-muted);font:10px var(--font-mono)}.run-facts>span:first-child{display:flex;align-items:center;gap:6px}.small-square{display:inline-block;flex:none;width:5px;height:5px;background:var(--color-red)}.desk-progress{display:grid;gap:var(--space-xs);margin-top:var(--space-md)}.desk-progress>span{color:var(--color-muted);font:10px var(--font-mono)}.desk-progress>span,.section-row{display:flex;justify-content:space-between}.section-row{align-items:center;gap:var(--space-sm)}.section-row>svg{color:var(--color-muted)}.activity-totals{display:grid;grid-template-columns:1.3fr minmax(0,1fr);gap:var(--space-md);padding:var(--space-sm) 0 var(--space-md)}.activity-totals>div{display:grid;gap:4px}.activity-totals strong{color:var(--color-ink);font:600 48px/1 var(--font-display);font-variant-numeric:tabular-nums;letter-spacing:-.02em}.activity-totals span{color:var(--color-muted);font-size:12px}.desk-caption,.desk-section p.desk-caption{color:var(--color-muted);font-size:12px;line-height:1.5}.add-reference{margin-top:var(--space-md);min-height:48px;width:100%;display:flex;align-items:center;gap:var(--space-xs);padding:var(--space-sm);border:1px dashed var(--color-line-strong);border-radius:var(--radius-sm);color:var(--color-ink);background:transparent;font-size:13px;font-weight:700;cursor:pointer}.add-reference>svg:last-child{margin-left:auto}.add-reference:hover:not(:disabled){border-style:solid;background:var(--color-yellow-soft)}.add-reference:disabled{opacity:.45}.reference-needed{display:flex;gap:var(--space-xs);align-items:baseline;margin-top:var(--space-sm);color:var(--color-muted);font-size:12px}.sponsor-reference{display:flex;align-items:center;gap:var(--space-sm);margin-top:var(--space-md)}.sponsor-reference>img{width:44px;height:44px;object-fit:contain;border:1px solid var(--color-line);background:var(--color-paper)}.sponsor-reference>div{min-width:0;display:grid;gap:3px}.sponsor-reference strong{color:var(--color-ink);font-size:13px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.sponsor-reference>div>span{color:var(--color-muted);font-size:12px}.sponsor-reference .quiet-icon{margin-left:auto;width:32px}.match-summary{display:flex;gap:var(--space-sm);align-items:center;margin-block:var(--space-md)}.match-summary strong{font:600 40px/1 var(--font-display)}.match-summary>span{color:var(--color-muted);font-size:13px;line-height:1.4}.text-action{min-height:44px;display:inline-flex;gap:5px;align-items:center;justify-content:center;padding:0;border:0;color:var(--color-red);background:transparent;font:700 12px var(--font-body);cursor:pointer}.text-action:hover:not(:disabled){text-decoration:underline;text-underline-offset:3px}.text-action:disabled{opacity:.45}.pitwall .exposure-row{min-height:44px;font-size:11px}.pitwall .exposure-time{display:flex;gap:4px;font-size:10px}.speed-disclosure{border-bottom:1px solid var(--color-line)}.speed-disclosure>summary{list-style:none;padding:var(--space-inspector);cursor:pointer}.speed-disclosure>summary::-webkit-details-marker{display:none}.speed-disclosure .section-row{color:var(--color-ink);font:700 15px var(--font-body)}.speed-disclosure .section-row>span{display:flex;align-items:center;gap:var(--space-xs)}.speed-disclosure[open] summary .section-row>svg{transform:rotate(180deg)}.disclosure-sub{display:block;margin-top:5px;padding-left:26px;color:var(--color-muted);font-size:12px}.speed-content{padding:0 var(--space-inspector) var(--space-inspector)}.pitwall .speed-setup{gap:var(--space-md)}.pitwall .field{gap:var(--space-xs);color:var(--color-muted);font-size:12px}.pitwall .distance-control input{min-height:44px;border-radius:var(--radius-sm);color:var(--color-ink);background:var(--color-paper-raised);font:13px var(--font-mono)}.pitwall .distance-control>span{font-size:12px}.pitwall .check-row{align-items:start;line-height:1.5;font-size:12px}.pitwall .check-row input{margin-top:3px;min-width:16px;height:16px}.pitwall .gate-status{flex-wrap:wrap;font-size:10px}.pitwall .error-note{border-left:0;border:1px solid var(--color-line);background:var(--color-red-soft);font-size:13px}.pitwall .speed-result{padding-bottom:var(--space-md)}.pitwall .speed-result strong{font:600 44px/1 var(--font-display)}.desk-privacy{padding:var(--space-md) var(--space-inspector);display:flex;gap:var(--space-xs);color:var(--color-muted)}.desk-privacy>svg{margin-top:3px;color:var(--color-green);flex:none}.desk-privacy>span{display:grid;gap:3px;color:var(--color-ink);font-size:12px;font-weight:700}.desk-privacy small{color:var(--color-muted);font-size:11px;font-weight:400}.workspace-footer{display:flex;justify-content:space-between;gap:var(--space-lg);margin-top:var(--space-lg);padding-top:var(--space-md);border-top:1px solid var(--color-line);font:10px/1.5 var(--font-mono)}.workspace-footer,.workspace-footer>a{align-items:center;color:var(--color-muted)}.workspace-footer>a{display:inline-flex;gap:5px;text-decoration:none}.workspace-footer>a:hover{color:var(--color-red)}.footer-divider{margin-inline:var(--space-xs);color:var(--color-line-strong)}.analysis-alert{display:flex;gap:var(--space-sm);align-items:center;margin-bottom:var(--space-lg);padding:var(--space-md);background:var(--color-red-soft);color:var(--color-red-deep);border:1px solid var(--color-line);border-radius:var(--radius-sm)}.analysis-alert>svg{flex:none}.analysis-alert>div{flex:1;min-width:0}.analysis-alert strong{font-size:14px}.analysis-alert p{font-size:14px;margin:3px 0 0;line-height:1.5}.analysis-notice{display:flex;gap:var(--space-xs);align-items:center;padding:var(--space-sm) 0;margin-bottom:var(--space-sm);color:var(--color-muted);font-size:14px}.pitwall .gate-instruction{max-width:calc(100% - 24px);border-radius:var(--radius-sm);font-size:11px;background:var(--color-black);color:var(--color-on-dark)}.pitwall .gate-instruction>span{white-space:normal}.pitwall .gate-instruction button{min-width:32px;min-height:32px;background:var(--color-overlay-outline)}.pitwall .video-panel[data-expanded=true]{display:flex;flex-direction:column;padding:var(--space-md);background:var(--color-black);color:var(--color-on-dark)}.pitwall .video-panel[data-expanded=true] .stage{flex:1;aspect-ratio:auto}.pitwall .video-panel[data-expanded=true] .transport,.pitwall .video-panel[data-expanded=true] .video-head{background:var(--color-black);color:var(--color-on-dark);border-color:var(--color-stage-line)}.pitwall .video-panel[data-expanded=true] .precise-time>span,.pitwall .video-panel[data-expanded=true] .quiet-icon,.pitwall .video-panel[data-expanded=true] .video-meta,.pitwall .video-panel[data-expanded=true] select{color:var(--color-on-dark)}@media (min-width:1700px){.review-grid{grid-template-columns:minmax(0,1fr) 340px;gap:var(--space-xl)}}@media (max-width:1190px){.review-content,.workspace-header{padding-inline:var(--space-lg)}.review-grid{grid-template-columns:minmax(0,1fr) 280px;gap:var(--space-lg)}.transport-steps{display:none}.review-heading{align-items:start}.review-description{max-width:36ch}.pitwall .export-button{min-width:44px;padding:0}.export-button>span{display:none}}@media (max-width:1020px){.review-grid{grid-template-columns:minmax(0,1fr)}.analysis-desk{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.desk-privacy,.desk-title{grid-column:1/-1}.desk-section{border-right:1px solid var(--color-line)}.vehicle-section{border-right:0}.review-description{max-width:none}.transport-steps{display:flex}}@media (max-width:740px){.review-heading{flex-direction:column;align-items:stretch;gap:var(--space-md)}.pitwall .heading-actions{justify-content:start}.analysis-desk{display:block}.desk-section{border-right:0}.transport-steps,.workspace-wordmark>span{display:none}.evidence-key-note{width:100%;margin:3px 0 0}.workspace-footer{flex-direction:column;align-items:start;gap:var(--space-xs)}.analysis-alert{flex-wrap:wrap;align-items:start}.analysis-alert .text-action{margin-left:30px}}@media (max-width:560px){.pitwall{grid-template-columns:minmax(0,1fr)}.tool-rail{position:fixed;top:auto;bottom:0;width:100%;height:56px;padding:4px var(--space-md) max(4px,env(safe-area-inset-bottom));flex-direction:row;justify-content:space-between;border-right:0;border-top:1px solid var(--color-line);gap:0}.rail-avatar,.rail-brand{display:none}.tool-links{display:flex;gap:var(--space-lg)}.rail-bottom{margin:0}.workspace-help .help-popover{left:auto;right:0;bottom:52px;max-width:calc(100vw - 28px)}.workspace-header{height:58px;padding-inline:14px}.workspace-presence{font-size:10px}.workspace-wordmark{font-size:26px}.review-content{padding:var(--space-lg) 14px 82px}.review-heading{margin-bottom:var(--space-lg)}.review-heading h1{font-size:40px}.review-description{font-size:14px;max-width:32ch}.pitwall .heading-actions{display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);width:100%;gap:6px}.pitwall .heading-actions .button{padding-inline:var(--space-xs);font-size:13px}.review-grid{gap:var(--space-lg)}.pitwall .video-head{align-items:start;flex-direction:column;gap:5px;padding-block:10px}.pitwall .video-title{font-size:13px}.pitwall .video-meta{font-size:10px;padding-left:13px}.frame-status{top:var(--space-xs);left:var(--space-xs)}.frame-readout,.frame-status{padding:5px 6px;font-size:10px}.frame-readout{right:var(--space-xs);bottom:var(--space-xs)}.frame-readout span{display:none}.transport{display:grid;grid-template-columns:40px minmax(0,1fr) 44px 40px;gap:4px;min-height:90px;padding-top:var(--space-xs)}.transport>.play-button{grid-column:1;grid-row:1}.transport>.precise-time{grid-column:2;grid-row:1;padding:0 3px;font-size:10px}.transport>.playback-rate{grid-column:3;grid-row:1}.transport .playback-rate select{width:44px;font-size:10px;padding:0}.transport>.overlay-control{grid-column:4;grid-row:1}.transport>.quiet-icon:last-child{display:none}.pitwall .transport>.scrubber{grid-column:1/-1;grid-row:2;height:36px;margin:0}.timeline-heading{flex-wrap:wrap;gap:var(--space-xs)}.timeline-legend{font-size:10px}.filmstrip-frame>span{display:none}.filmstrip{min-height:30px;gap:2px}.timeline-ruler{padding-left:58px;font-size:10px}.timeline-ruler>span:nth-child(2n){display:none}.timeline-lane{grid-template-columns:50px minmax(0,1fr);gap:var(--space-xs)}.lane-name{font-size:10px}.lane-empty{font-size:11px;padding-inline:var(--space-xs)}.workspace-footer{font-size:10px}.workspace-footer>a{white-space:normal}.player-progress{gap:var(--space-xs)}.player-progress strong,.player-progress>span:nth-child(2){font-size:11px}.player-progress .elapsed{width:100%;text-align:right;order:3}}@media (prefers-reduced-motion:reduce){.processing .status-square,.running-indicator{animation:none}.filmstrip-frame img,.pitwall .progress-bar>span{transition:none}}.pitwall button:active:not(:disabled),.pitwall summary:active,.tool-link:active{opacity:.8}.pitwall select:focus-visible{outline:2px solid var(--color-focus);outline-offset:2px}.pitwall .distance-control input:hover:not(:disabled),.playback-rate select:hover:not(:disabled){background:var(--color-paper-warm)}.pitwall .video-panel[data-expanded=true]{position:fixed;inset:0;z-index:400}.pitwall .video-panel[data-expanded=true] .transport,.pitwall .video-panel[data-expanded=true] .video-head{flex:none}.pitwall .video-panel[data-expanded=true] .transport>.quiet-icon:last-child{display:grid;position:absolute;top:var(--space-md);right:var(--space-md);background:var(--color-black);color:var(--color-on-dark)}.pitwall .video-panel[data-expanded=true] .video-head{padding-right:48px}@media(max-width:560px){.pitwall .transport>.scrubber{height:44px}.transport{min-height:98px}}@media(max-width:900px){.review-heading{flex-direction:column;align-items:stretch}.pitwall .heading-actions{justify-content:flex-start}}
_next/static/media/barlow-condensed-latin-600-normal.a0aeaff6.woff ADDED
Binary file (18.9 kB). View file
 
_next/static/media/barlow-condensed-latin-600-normal.b506a7ca.woff2 ADDED
Binary file (22.3 kB). View file
 
_next/static/media/barlow-condensed-latin-ext-600-normal.646ca2c5.woff2 ADDED
Binary file (14.5 kB). View file
 
_next/static/media/barlow-condensed-latin-ext-600-normal.b10b40bc.woff ADDED
Binary file (12 kB). View file
 
_next/static/media/barlow-condensed-vietnamese-600-normal.6d7e2f90.woff2 ADDED
Binary file (7.7 kB). View file
 
_next/static/media/barlow-condensed-vietnamese-600-normal.7f364a4c.woff ADDED
Binary file (6.08 kB). View file
 
_next/static/media/ibm-plex-mono-cyrillic-400-normal.651bc97e.woff2 ADDED
Binary file (8.36 kB). View file
 
_next/static/media/ibm-plex-mono-cyrillic-400-normal.9533b520.woff ADDED
Binary file (7.2 kB). View file
 
_next/static/media/ibm-plex-mono-cyrillic-ext-400-normal.66a2e865.woff2 ADDED
Binary file (6.91 kB). View file
 
_next/static/media/ibm-plex-mono-cyrillic-ext-400-normal.88f8fd5b.woff ADDED
Binary file (5.82 kB). View file
 
_next/static/media/ibm-plex-mono-latin-400-normal.06ac09dc.woff2 ADDED
Binary file (14.7 kB). View file
 
_next/static/media/ibm-plex-mono-latin-400-normal.e32cf7a4.woff ADDED
Binary file (13.1 kB). View file
 
_next/static/media/ibm-plex-mono-latin-ext-400-normal.9faee8e8.woff2 ADDED
Binary file (13.3 kB). View file
 
_next/static/media/ibm-plex-mono-latin-ext-400-normal.f14ffb91.woff ADDED
Binary file (11.8 kB). View file
 
_next/static/media/ibm-plex-mono-vietnamese-400-normal.110e2a76.woff2 ADDED
Binary file (5.87 kB). View file